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

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 (74) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +775 -454
  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 +141 -109
  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 -75
  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/fesm2015/hmcts-ccd-case-ui-toolkit.js +745 -449
  32. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  33. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  34. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit-titles.enum.d.ts +6 -0
  35. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit-titles.enum.d.ts.map +1 -0
  36. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +1 -1
  37. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
  38. package/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.d.ts +6 -1
  39. package/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.d.ts.map +1 -1
  40. package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts +3 -1
  41. package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts.map +1 -1
  42. package/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.d.ts +5 -7
  43. package/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.d.ts.map +1 -1
  44. package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
  45. package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts +2 -1
  46. package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts.map +1 -1
  47. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts +6 -2
  48. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts.map +1 -1
  49. package/lib/shared/components/palette/case-flag/enums/add-comments-error-message.enum.d.ts +1 -0
  50. package/lib/shared/components/palette/case-flag/enums/add-comments-error-message.enum.d.ts.map +1 -1
  51. package/lib/shared/components/palette/case-flag/enums/add-comments-step.enum.d.ts +1 -0
  52. package/lib/shared/components/palette/case-flag/enums/add-comments-step.enum.d.ts.map +1 -1
  53. package/lib/shared/components/palette/case-flag/enums/case-flag-check-your-answers-step.enum.d.ts +11 -0
  54. package/lib/shared/components/palette/case-flag/enums/case-flag-check-your-answers-step.enum.d.ts.map +1 -0
  55. package/lib/shared/components/palette/case-flag/enums/case-flag-display-context-parameter.enum.d.ts +7 -1
  56. package/lib/shared/components/palette/case-flag/enums/case-flag-display-context-parameter.enum.d.ts.map +1 -1
  57. package/lib/shared/components/palette/case-flag/enums/case-flag-wizard-step-title.enum.d.ts +4 -1
  58. package/lib/shared/components/palette/case-flag/enums/case-flag-wizard-step-title.enum.d.ts.map +1 -1
  59. package/lib/shared/components/palette/case-flag/enums/index.d.ts +1 -0
  60. package/lib/shared/components/palette/case-flag/enums/index.d.ts.map +1 -1
  61. package/lib/shared/components/palette/case-flag/enums/select-flag-type-error-message.enum.d.ts +2 -0
  62. package/lib/shared/components/palette/case-flag/enums/select-flag-type-error-message.enum.d.ts.map +1 -1
  63. package/lib/shared/components/palette/case-flag/enums/update-flag-error-message.enum.d.ts +3 -1
  64. package/lib/shared/components/palette/case-flag/enums/update-flag-error-message.enum.d.ts.map +1 -1
  65. package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts +4 -2
  66. package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts.map +1 -1
  67. package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts.map +1 -1
  68. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts +2 -0
  69. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
  70. package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.d.ts +9 -1
  71. package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.d.ts.map +1 -1
  72. package/lib/shared/services/fields/fields.utils.d.ts +1 -0
  73. package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
  74. 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) {
@@ -9904,13 +9918,20 @@
9904
9918
  })();
9905
9919
 
9906
9920
  var ValidPageListCaseFieldsService = /** @class */ (function () {
9907
- function ValidPageListCaseFieldsService() {
9921
+ function ValidPageListCaseFieldsService(fieldsUtils) {
9922
+ this.fieldsUtils = fieldsUtils;
9908
9923
  }
9909
- ValidPageListCaseFieldsService.prototype.deleteNonValidatedFields = function (validPageList, data, notFromEventSubmit, fromPreviousPage) {
9924
+ ValidPageListCaseFieldsService.prototype.isShown = function (page, eventTriggerFields, data) {
9925
+ var fields = this.fieldsUtils
9926
+ .mergeCaseFieldsAndFormFields(eventTriggerFields, data);
9927
+ return page.parsedShowCondition.match(fields);
9928
+ };
9929
+ ValidPageListCaseFieldsService.prototype.deleteNonValidatedFields = function (validPageList, data, eventTriggerFields, fromPreviousPage) {
9930
+ var _this = this;
9910
9931
  if (fromPreviousPage === void 0) { fromPreviousPage = false; }
9911
9932
  var validPageListCaseFields = [];
9912
9933
  validPageList.forEach(function (page) {
9913
- if (notFromEventSubmit || ShowCondition.getInstance(page.show_condition).match(data)) {
9934
+ if (_this.isShown(page, eventTriggerFields, data)) {
9914
9935
  page.case_fields.forEach(function (field) { return validPageListCaseFields.push(field); });
9915
9936
  }
9916
9937
  });
@@ -9918,19 +9939,18 @@
9918
9939
  Object.keys(data).forEach(function (key) {
9919
9940
  if (validPageListCaseFields.findIndex(function (element) { return element.id === key; }) < 0) {
9920
9941
  delete data[key];
9921
- ;
9922
9942
  }
9923
9943
  });
9924
9944
  }
9925
9945
  };
9926
9946
  return ValidPageListCaseFieldsService;
9927
9947
  }());
9928
- ValidPageListCaseFieldsService.ɵfac = function ValidPageListCaseFieldsService_Factory(t) { return new (t || ValidPageListCaseFieldsService)(); };
9948
+ ValidPageListCaseFieldsService.ɵfac = function ValidPageListCaseFieldsService_Factory(t) { return new (t || ValidPageListCaseFieldsService)(i0__namespace.ɵɵinject(FieldsUtils)); };
9929
9949
  ValidPageListCaseFieldsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: ValidPageListCaseFieldsService, factory: ValidPageListCaseFieldsService.ɵfac });
9930
9950
  (function () {
9931
9951
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ValidPageListCaseFieldsService, [{
9932
9952
  type: i0.Injectable
9933
- }], null, null);
9953
+ }], function () { return [{ type: FieldsUtils }]; }, null);
9934
9954
  })();
9935
9955
 
9936
9956
  var CaseEditComponent = /** @class */ (function () {
@@ -10122,7 +10142,7 @@
10122
10142
  // Remove "Launcher"-type fields (these have no values and are not intended to be persisted)
10123
10143
  this.formValueService.removeCaseFieldsOfType(caseEventData.data, eventTrigger.case_fields, ['FlagLauncher', 'ComponentLauncher']);
10124
10144
  // delete fields which are not part of the case event journey wizard pages case fields
10125
- this.validPageListCaseFieldsService.deleteNonValidatedFields(this.validPageList, caseEventData.data, false);
10145
+ this.validPageListCaseFieldsService.deleteNonValidatedFields(this.validPageList, caseEventData.data, eventTrigger.case_fields, false);
10126
10146
  caseEventData.event_token = eventTrigger.event_token;
10127
10147
  caseEventData.ignore_warning = this.ignoreWarning;
10128
10148
  if (this.confirmation) {
@@ -11175,18 +11195,9 @@
11175
11195
  });
11176
11196
  }
11177
11197
  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
11198
  _this.validationErrors.push({
11188
11199
  id: id_1,
11189
- message: "Please select Next to complete the " + action + " of the " + (action === 'update' ? 'selected ' : '') + "case flag"
11200
+ message: FieldsUtils.getValidationErrorMessageForFlagLauncherCaseField(casefield)
11190
11201
  });
11191
11202
  }
11192
11203
  else {
@@ -11497,7 +11508,7 @@
11497
11508
  // Get hold of the CaseEventData.
11498
11509
  var caseEventData = this.formValueService.sanitise(formFields);
11499
11510
  // 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);
11511
+ this.validPageListCaseFieldsService.deleteNonValidatedFields(this.caseEdit.validPageList, caseEventData.data, this.eventTrigger.case_fields, fromPreviousPage);
11501
11512
  // Tidy it up before we return it.
11502
11513
  this.formValueService.removeUnnecessaryFields(caseEventData.data, caseFields, clearEmpty, clearNonCase, fromPreviousPage, this.currentPage.case_fields);
11503
11514
  return caseEventData;
@@ -12148,7 +12159,7 @@
12148
12159
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, "Enter the Postcode"));
12149
12160
  }
12150
12161
  }
12151
- var _c1$m = function (a0) { return { "form-group-error": a0 }; };
12162
+ var _c1$n = function (a0) { return { "form-group-error": a0 }; };
12152
12163
  var _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
12153
12164
  function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) {
12154
12165
  if (rf & 1) {
@@ -12171,7 +12182,7 @@
12171
12182
  }
12172
12183
  if (rf & 2) {
12173
12184
  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));
12185
+ i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(13, _c1$n, ctx_r2.missingPostcode));
12175
12186
  i0__namespace.ɵɵadvance(1);
12176
12187
  i0__namespace.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
12177
12188
  i0__namespace.ɵɵadvance(2);
@@ -12673,23 +12684,43 @@
12673
12684
  exports.AddCommentsErrorMessage = void 0;
12674
12685
  (function (AddCommentsErrorMessage) {
12675
12686
  AddCommentsErrorMessage["FLAG_COMMENTS_NOT_ENTERED"] = "Please enter comments for this flag";
12687
+ AddCommentsErrorMessage["FLAG_COMMENTS_NOT_ENTERED_EXTERNAL"] = "Please enter comments for this support request";
12676
12688
  AddCommentsErrorMessage["FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED"] = "Comments for this flag must be 200 characters or fewer";
12677
12689
  })(exports.AddCommentsErrorMessage || (exports.AddCommentsErrorMessage = {}));
12678
12690
 
12679
12691
  exports.AddCommentsStep = void 0;
12680
12692
  (function (AddCommentsStep) {
12681
12693
  AddCommentsStep["HINT_TEXT"] = "Explain why you are creating this flag. Do not include any sensitive information such as personal details.";
12694
+ AddCommentsStep["HINT_TEXT_EXTERNAL"] = "Explain why you are creating this support request. Do not include any sensitive information such as personal details.";
12682
12695
  AddCommentsStep["CHARACTER_LIMIT_INFO"] = "You can enter up to 200 characters";
12683
12696
  AddCommentsStep["WARNING_TEXT"] = "The details entered here MAY be visible to the party in the future.";
12684
12697
  })(exports.AddCommentsStep || (exports.AddCommentsStep = {}));
12685
12698
 
12699
+ exports.CaseFlagCheckYourAnswersPageStep = void 0;
12700
+ (function (CaseFlagCheckYourAnswersPageStep) {
12701
+ CaseFlagCheckYourAnswersPageStep["CASE_LEVEL_LOCATION"] = "Case level";
12702
+ CaseFlagCheckYourAnswersPageStep["ADD_FLAG_HEADER_TEXT"] = "Add flag to";
12703
+ CaseFlagCheckYourAnswersPageStep["ADD_FLAG_HEADER_TEXT_EXTERNAL"] = "Add support to";
12704
+ CaseFlagCheckYourAnswersPageStep["UPDATE_FLAG_HEADER_TEXT"] = "Update flag for";
12705
+ CaseFlagCheckYourAnswersPageStep["UPDATE_FLAG_HEADER_TEXT_EXTERNAL"] = "Update support for";
12706
+ CaseFlagCheckYourAnswersPageStep["FLAG_TYPE_HEADER_TEXT"] = "Flag type";
12707
+ CaseFlagCheckYourAnswersPageStep["FLAG_TYPE_HEADER_TEXT_EXTERNAL"] = "Support type";
12708
+ CaseFlagCheckYourAnswersPageStep["NONE"] = "";
12709
+ })(exports.CaseFlagCheckYourAnswersPageStep || (exports.CaseFlagCheckYourAnswersPageStep = {}));
12710
+
12711
+ /**
12712
+ * Create and update contexts for external users are, by definition, part of Case Flags 2.1 - thus there is no enum
12713
+ * value for these.
12714
+ */
12686
12715
  exports.CaseFlagDisplayContextParameter = void 0;
12687
12716
  (function (CaseFlagDisplayContextParameter) {
12688
12717
  CaseFlagDisplayContextParameter["CREATE"] = "#ARGUMENT(CREATE)";
12689
12718
  CaseFlagDisplayContextParameter["CREATE_EXTERNAL"] = "#ARGUMENT(CREATE,EXTERNAL)";
12719
+ CaseFlagDisplayContextParameter["CREATE_2_POINT_1"] = "#ARGUMENT(CREATE,VERSION2.1)";
12690
12720
  CaseFlagDisplayContextParameter["READ_EXTERNAL"] = "#ARGUMENT(READ,EXTERNAL)";
12691
12721
  CaseFlagDisplayContextParameter["UPDATE"] = "#ARGUMENT(UPDATE)";
12692
12722
  CaseFlagDisplayContextParameter["UPDATE_EXTERNAL"] = "#ARGUMENT(UPDATE,EXTERNAL)";
12723
+ CaseFlagDisplayContextParameter["UPDATE_2_POINT_1"] = "#ARGUMENT(UPDATE,VERSION2.1)";
12693
12724
  })(exports.CaseFlagDisplayContextParameter || (exports.CaseFlagDisplayContextParameter = {}));
12694
12725
 
12695
12726
  exports.CaseFlagFormFields = void 0;
@@ -12716,6 +12747,9 @@
12716
12747
  CaseFlagWizardStepTitle["SELECT_FLAG_LOCATION"] = "Where should this flag be added?";
12717
12748
  CaseFlagWizardStepTitle["SELECT_FLAG_LOCATION_EXTERNAL"] = "Who is the support for?";
12718
12749
  CaseFlagWizardStepTitle["SELECT_CASE_FLAG"] = "Select flag type";
12750
+ CaseFlagWizardStepTitle["SELECT_CASE_FLAG_EXTERNAL"] = "Select support type";
12751
+ CaseFlagWizardStepTitle["OTHER_FLAG_TYPE_DESCRIPTION"] = "Enter a flag type";
12752
+ CaseFlagWizardStepTitle["OTHER_FLAG_TYPE_DESCRIPTION_EXTERNAL"] = "Enter a support type";
12719
12753
  CaseFlagWizardStepTitle["ADD_FLAG_COMMENTS"] = "Add comments for this flag";
12720
12754
  CaseFlagWizardStepTitle["ADD_FLAG_COMMENTS_EXTERNAL_MODE"] = "Tell us more about the request";
12721
12755
  CaseFlagWizardStepTitle["CONFIRM_FLAG_STATUS"] = "Confirm the status of the flag";
@@ -12723,7 +12757,7 @@
12723
12757
  CaseFlagWizardStepTitle["MANAGE_CASE_FLAGS"] = "Manage case flags";
12724
12758
  CaseFlagWizardStepTitle["MANAGE_SUPPORT"] = "Which support is no longer needed?";
12725
12759
  CaseFlagWizardStepTitle["UPDATE_FLAG_TITLE"] = "Update flag";
12726
- CaseFlagWizardStepTitle["UPDATE_FLAG_TITLE_SUPPORT"] = "Tell us why the support is no longer needed";
12760
+ CaseFlagWizardStepTitle["UPDATE_FLAG_TITLE_EXTERNAL"] = "Tell us why the support is no longer needed";
12727
12761
  CaseFlagWizardStepTitle["UPDATE_FLAG_ADD_TRANSLATION"] = "Add translations to flag";
12728
12762
  CaseFlagWizardStepTitle["NONE"] = "";
12729
12763
  })(exports.CaseFlagWizardStepTitle || (exports.CaseFlagWizardStepTitle = {}));
@@ -12771,8 +12805,10 @@
12771
12805
  exports.SelectFlagTypeErrorMessage = void 0;
12772
12806
  (function (SelectFlagTypeErrorMessage) {
12773
12807
  SelectFlagTypeErrorMessage["FLAG_TYPE_NOT_SELECTED"] = "Please select a flag type";
12808
+ SelectFlagTypeErrorMessage["FLAG_TYPE_NOT_SELECTED_EXTERNAL"] = "Please select a support type";
12774
12809
  SelectFlagTypeErrorMessage["FLAG_TYPE_OPTION_NOT_SELECTED"] = "Select an option";
12775
12810
  SelectFlagTypeErrorMessage["FLAG_TYPE_NOT_ENTERED"] = "Please enter a flag type";
12811
+ SelectFlagTypeErrorMessage["FLAG_TYPE_NOT_ENTERED_EXTERNAL"] = "Please enter a support type";
12776
12812
  SelectFlagTypeErrorMessage["FLAG_TYPE_LIMIT_EXCEEDED"] = "You can enter up to 80 characters only";
12777
12813
  })(exports.SelectFlagTypeErrorMessage || (exports.SelectFlagTypeErrorMessage = {}));
12778
12814
 
@@ -12793,14 +12829,18 @@
12793
12829
  UpdateFlagErrorMessage["FLAG_COMMENTS_NOT_ENTERED"] = "Please enter comments for this flag";
12794
12830
  UpdateFlagErrorMessage["FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED"] = "Comments for this flag must be 200 characters or fewer";
12795
12831
  UpdateFlagErrorMessage["STATUS_REASON_NOT_ENTERED"] = "Comments and/or the name of the person approving the decision should be entered";
12832
+ UpdateFlagErrorMessage["STATUS_REASON_NOT_ENTERED_EXTERNAL"] = "You must explain why the support is no longer needed";
12796
12833
  UpdateFlagErrorMessage["STATUS_REASON_CHAR_LIMIT_EXCEEDED"] = "Comments must be 200 characters or fewer";
12834
+ UpdateFlagErrorMessage["NONE"] = "";
12797
12835
  })(exports.UpdateFlagErrorMessage || (exports.UpdateFlagErrorMessage = {}));
12798
12836
 
12799
12837
  exports.UpdateFlagStep = void 0;
12800
12838
  (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.";
12839
+ UpdateFlagStep["COMMENT_HINT_TEXT_INTERNAL"] = "Explain why you are updating this flag. Do not include any sensitive information such as personal details.";
12840
+ 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.";
12841
+ UpdateFlagStep["COMMENT_HINT_TEXT_EXTERNAL"] = "Do not include any sensitive information such as personal details.";
12802
12842
  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.";
12843
+ UpdateFlagStep["STATUS_HINT_TEXT"] = "Describe reason for status change.";
12804
12844
  UpdateFlagStep["WARNING_TEXT"] = "The details entered here MAY be visible to the party in the future.";
12805
12845
  })(exports.UpdateFlagStep || (exports.UpdateFlagStep = {}));
12806
12846
 
@@ -13050,6 +13090,7 @@
13050
13090
  // The FlagLauncher component holds a reference (selectedFlagsLocation) containing the CaseField instance to
13051
13091
  // which the new flag has been added
13052
13092
  if ((flagLauncherComponent.caseField.display_context_parameter === exports.CaseFlagDisplayContextParameter.CREATE ||
13093
+ flagLauncherComponent.caseField.display_context_parameter === exports.CaseFlagDisplayContextParameter.CREATE_2_POINT_1 ||
13053
13094
  flagLauncherComponent.caseField.display_context_parameter === exports.CaseFlagDisplayContextParameter.CREATE_EXTERNAL)
13054
13095
  && flagLauncherComponent.selectedFlagsLocation) {
13055
13096
  this.pathToFlagsFormGroup = flagLauncherComponent.selectedFlagsLocation.pathToFlagsFormGroup;
@@ -13058,6 +13099,7 @@
13058
13099
  // Manage Case Flags journey
13059
13100
  }
13060
13101
  else if ((flagLauncherComponent.caseField.display_context_parameter === exports.CaseFlagDisplayContextParameter.UPDATE ||
13102
+ flagLauncherComponent.caseField.display_context_parameter === exports.CaseFlagDisplayContextParameter.UPDATE_2_POINT_1 ||
13061
13103
  flagLauncherComponent.caseField.display_context_parameter === exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL) &&
13062
13104
  flagLauncherComponent.selectedFlag) {
13063
13105
  this.flagForSummaryDisplay =
@@ -13187,7 +13229,7 @@
13187
13229
  if (rf & 2) {
13188
13230
  var ctx_r8 = i0__namespace.ɵɵnextContext(2);
13189
13231
  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);
13232
+ 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
13233
  }
13192
13234
  }
13193
13235
  function WriteCaseFlagFieldComponent_div_1_ng_container_4_Template(rf, ctx) {
@@ -13217,7 +13259,7 @@
13217
13259
  if (rf & 2) {
13218
13260
  var ctx_r10 = i0__namespace.ɵɵnextContext(2);
13219
13261
  i0__namespace.ɵɵadvance(1);
13220
- i0__namespace.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional)("isDisplayContextParameterExternal", ctx_r10.isDisplayContextParameterExternal);
13262
+ i0__namespace.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional)("isDisplayContextParameterExternal", ctx_r10.isDisplayContextParameterExternal)("isDisplayContextParameter2Point1Enabled", ctx_r10.isDisplayContextParameter2Point1Enabled);
13221
13263
  }
13222
13264
  }
13223
13265
  function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template(rf, ctx) {
@@ -13240,9 +13282,9 @@
13240
13282
  i0__namespace.ɵɵelementStart(0, "div", 8);
13241
13283
  i0__namespace.ɵɵelementStart(1, "div", 9);
13242
13284
  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);
13285
+ i0__namespace.ɵɵtemplate(3, WriteCaseFlagFieldComponent_div_1_ng_container_3_Template, 2, 7, "ng-container", 10);
13244
13286
  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);
13287
+ i0__namespace.ɵɵtemplate(5, WriteCaseFlagFieldComponent_div_1_ng_container_5_Template, 2, 4, "ng-container", 10);
13246
13288
  i0__namespace.ɵɵtemplate(6, WriteCaseFlagFieldComponent_div_1_ng_container_6_Template, 2, 2, "ng-container", 10);
13247
13289
  i0__namespace.ɵɵelementEnd();
13248
13290
  i0__namespace.ɵɵelementEnd();
@@ -13432,6 +13474,8 @@
13432
13474
  this.isDisplayContextParameterUpdate = this.setDisplayContextParameterUpdate(this.displayContextParameter);
13433
13475
  // Set boolean indicating the display_context_parameter is "external"
13434
13476
  this.isDisplayContextParameterExternal = this.setDisplayContextParameterExternal(this.displayContextParameter);
13477
+ // Set boolean indicating the display_context_parameter is Case Flags v2.1 enabled
13478
+ this.isDisplayContextParameter2Point1Enabled = this.setDisplayContextParameter2Point1Enabled(this.displayContextParameter);
13435
13479
  // Set starting field state if fieldState not the right value
13436
13480
  if (!this.fieldState) {
13437
13481
  this.fieldState = this.isDisplayContextParameterUpdate ? exports.CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : exports.CaseFlagFieldState.FLAG_LOCATION;
@@ -13447,12 +13491,17 @@
13447
13491
  };
13448
13492
  WriteCaseFlagFieldComponent.prototype.setDisplayContextParameterUpdate = function (displayContextParameter) {
13449
13493
  return displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE ||
13450
- displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL;
13494
+ displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL ||
13495
+ displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_2_POINT_1;
13451
13496
  };
13452
13497
  WriteCaseFlagFieldComponent.prototype.setDisplayContextParameterExternal = function (displayContextParameter) {
13453
13498
  return displayContextParameter === exports.CaseFlagDisplayContextParameter.CREATE_EXTERNAL ||
13454
13499
  displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL;
13455
13500
  };
13501
+ WriteCaseFlagFieldComponent.prototype.setDisplayContextParameter2Point1Enabled = function (displayContextParameter) {
13502
+ return displayContextParameter === exports.CaseFlagDisplayContextParameter.CREATE_2_POINT_1 ||
13503
+ displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_2_POINT_1;
13504
+ };
13456
13505
  WriteCaseFlagFieldComponent.prototype.onCaseFlagStateEmitted = function (caseFlagState) {
13457
13506
  this.caseEditDataService.clearFormValidationErrors();
13458
13507
  this.errorMessages = caseFlagState.errorMessages;
@@ -13480,11 +13529,15 @@
13480
13529
  caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_UPDATE;
13481
13530
  }
13482
13531
  // If the current state is one of:
13483
- // * CaseFlagFieldState.FLAG_STATUS
13532
+ // * CaseFlagFieldState.FLAG_STATUS AND Case Flags v2.1 is enabled
13533
+ // * CaseFlagFieldState.FLAG_COMMENTS AND Case Flags v2.1 is not enabled
13484
13534
  // * CaseFlagFieldState.FLAG_UPDATE and Welsh translation checkbox is not selected
13485
13535
  // * CaseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION
13486
13536
  // then move to final review stage
13487
- return caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_STATUS ||
13537
+ return (caseFlagState.currentCaseFlagFieldState ===
13538
+ exports.CaseFlagFieldState.FLAG_STATUS && this.isDisplayContextParameter2Point1Enabled) ||
13539
+ (caseFlagState.currentCaseFlagFieldState ===
13540
+ exports.CaseFlagFieldState.FLAG_COMMENTS && !this.isDisplayContextParameter2Point1Enabled) ||
13488
13541
  (caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_UPDATE &&
13489
13542
  !((_a = this.caseFlagParentFormGroup.get(exports.CaseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)) === null || _a === void 0 ? void 0 : _a.value)) ||
13490
13543
  caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION;
@@ -13510,7 +13563,7 @@
13510
13563
  this.addFlagToCollection();
13511
13564
  break;
13512
13565
  case exports.CaseFlagFieldState.FLAG_COMMENTS:
13513
- if (this.isDisplayContextParameterExternal) {
13566
+ if (this.isDisplayContextParameterExternal || !this.isDisplayContextParameter2Point1Enabled) {
13514
13567
  this.addFlagToCollection();
13515
13568
  }
13516
13569
  break;
@@ -13725,7 +13778,9 @@
13725
13778
  WriteCaseFlagFieldComponent.prototype.isAtFinalState = function () {
13726
13779
  return this.isDisplayContextParameterUpdate
13727
13780
  ? this.fieldState === this.manageFlagFinalState
13728
- : this.fieldState === exports.CaseFlagFieldState.FLAG_STATUS;
13781
+ : !this.isDisplayContextParameter2Point1Enabled
13782
+ ? this.fieldState === exports.CaseFlagFieldState.FLAG_COMMENTS
13783
+ : this.fieldState === exports.CaseFlagFieldState.FLAG_STATUS;
13729
13784
  };
13730
13785
  WriteCaseFlagFieldComponent.prototype.navigateToErrorElement = function (elementId) {
13731
13786
  if (elementId) {
@@ -13767,8 +13822,12 @@
13767
13822
  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
13823
  hearingRelevant: ((_h = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _h === void 0 ? void 0 : _h.hearingRelevant) ? 'Yes' : 'No',
13769
13824
  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],
13825
+ // Status should be set to "Active" if Case Flags v2.1 is NOT enabled, otherwise it should be set to whatever
13826
+ // the default is for this flag type, if flag is being created by an external user
13827
+ status: !this.isDisplayContextParameter2Point1Enabled
13828
+ ? exports.CaseFlagStatus.ACTIVE
13829
+ : this.isDisplayContextParameterExternal
13830
+ ? (_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
13831
  availableExternally: ((_l = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _l === void 0 ? void 0 : _l.externallyAvailable) ? 'Yes' : 'No'
13773
13832
  };
13774
13833
  };
@@ -13807,7 +13866,7 @@
13807
13866
  return WriteCaseFlagFieldComponent;
13808
13867
  }(AbstractFieldWriteComponent));
13809
13868
  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) {
13869
+ 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
13870
  if (rf & 1) {
13812
13871
  i0__namespace.ɵɵtemplate(0, WriteCaseFlagFieldComponent_div_0_Template, 5, 4, "div", 0);
13813
13872
  i0__namespace.ɵɵtemplate(1, WriteCaseFlagFieldComponent_div_1_Template, 7, 7, "div", 1);
@@ -13955,7 +14014,7 @@
13955
14014
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label)), " ");
13956
14015
  }
13957
14016
  }
13958
- var _c1$l = function (a0) { return { "form-group-error": a0 }; };
14017
+ var _c1$m = function (a0) { return { "form-group-error": a0 }; };
13959
14018
  var WriteCaseLinkFieldComponent = /** @class */ (function (_super) {
13960
14019
  __extends(WriteCaseLinkFieldComponent, _super);
13961
14020
  function WriteCaseLinkFieldComponent() {
@@ -14039,7 +14098,7 @@
14039
14098
  i0__namespace.ɵɵelementEnd();
14040
14099
  }
14041
14100
  if (rf & 2) {
14042
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$l, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
14101
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$m, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
14043
14102
  i0__namespace.ɵɵadvance(1);
14044
14103
  i0__namespace.ɵɵproperty("for", ctx.id());
14045
14104
  i0__namespace.ɵɵadvance(1);
@@ -14084,7 +14143,7 @@
14084
14143
  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
14144
  }
14086
14145
  }
14087
- var _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
14146
+ var _c1$l = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
14088
14147
  function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) {
14089
14148
  if (rf & 1) {
14090
14149
  i0__namespace.ɵɵelementStart(0, "tr");
@@ -14098,7 +14157,7 @@
14098
14157
  var i_r5 = ctx.index;
14099
14158
  var ctx_r3 = i0__namespace.ɵɵnextContext(3);
14100
14159
  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));
14160
+ 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
14161
  }
14103
14162
  }
14104
14163
  function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) {
@@ -15426,7 +15485,7 @@
15426
15485
  i0__namespace.ɵɵproperty("caseField", ctx_r2.caseField);
15427
15486
  }
15428
15487
  }
15429
- var _c1$j = function (a0) { return { "form-group-error bottom-30": a0 }; };
15488
+ var _c1$k = function (a0) { return { "form-group-error bottom-30": a0 }; };
15430
15489
  var WriteDocumentFieldComponent = /** @class */ (function (_super) {
15431
15490
  __extends(WriteDocumentFieldComponent, _super);
15432
15491
  function WriteDocumentFieldComponent(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService, jurisdictionService) {
@@ -15748,7 +15807,7 @@
15748
15807
  i0__namespace.ɵɵelementEnd();
15749
15808
  }
15750
15809
  if (rf & 2) {
15751
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(20, _c1$j, !ctx.valid));
15810
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(20, _c1$k, !ctx.valid));
15752
15811
  i0__namespace.ɵɵadvance(1);
15753
15812
  i0__namespace.ɵɵproperty("for", ctx.id());
15754
15813
  i0__namespace.ɵɵadvance(1);
@@ -16453,7 +16512,7 @@
16453
16512
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 7, radioButton_r5.label));
16454
16513
  }
16455
16514
  }
16456
- var _c1$i = function (a0) { return { "form-group-error": a0 }; };
16515
+ var _c1$j = function (a0) { return { "form-group-error": a0 }; };
16457
16516
  var WriteDynamicRadioListFieldComponent = /** @class */ (function (_super) {
16458
16517
  __extends(WriteDynamicRadioListFieldComponent, _super);
16459
16518
  function WriteDynamicRadioListFieldComponent() {
@@ -16500,7 +16559,7 @@
16500
16559
  i0__namespace.ɵɵelementEnd();
16501
16560
  }
16502
16561
  if (rf & 2) {
16503
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$i, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
16562
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$j, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
16504
16563
  i0__namespace.ɵɵadvance(3);
16505
16564
  i0__namespace.ɵɵproperty("for", ctx.id());
16506
16565
  i0__namespace.ɵɵadvance(1);
@@ -16611,7 +16670,7 @@
16611
16670
  }
16612
16671
  }
16613
16672
  var _c0$L = function (a0) { return { "form-group-error": a0 }; };
16614
- var _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
16673
+ var _c1$i = function (a0) { return { "govuk-input--error": a0 }; };
16615
16674
  var WriteEmailFieldComponent = /** @class */ (function (_super) {
16616
16675
  __extends(WriteEmailFieldComponent, _super);
16617
16676
  function WriteEmailFieldComponent() {
@@ -16645,7 +16704,7 @@
16645
16704
  i0__namespace.ɵɵadvance(1);
16646
16705
  i0__namespace.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
16647
16706
  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);
16707
+ 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
16708
  }
16650
16709
  }, 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
16710
  var ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
@@ -16940,7 +16999,7 @@
16940
16999
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 7, radioButton_r4.label));
16941
17000
  }
16942
17001
  }
16943
- var _c1$g = function (a0) { return { "form-group-error": a0 }; };
17002
+ var _c1$h = function (a0) { return { "form-group-error": a0 }; };
16944
17003
  var WriteFixedRadioListFieldComponent = /** @class */ (function (_super) {
16945
17004
  __extends(WriteFixedRadioListFieldComponent, _super);
16946
17005
  function WriteFixedRadioListFieldComponent() {
@@ -16971,7 +17030,7 @@
16971
17030
  i0__namespace.ɵɵelementEnd();
16972
17031
  }
16973
17032
  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());
17033
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$h, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
16975
17034
  i0__namespace.ɵɵadvance(3);
16976
17035
  i0__namespace.ɵɵproperty("for", ctx.id());
16977
17036
  i0__namespace.ɵɵadvance(1);
@@ -17145,7 +17204,7 @@
17145
17204
  i0__namespace.ɵɵelementEnd();
17146
17205
  }
17147
17206
  }
17148
- var _c1$f = function (a0) { return { "form-group-error": a0 }; };
17207
+ var _c1$g = function (a0) { return { "form-group-error": a0 }; };
17149
17208
  var WriteJudicialUserFieldComponent = /** @class */ (function (_super) {
17150
17209
  __extends(WriteJudicialUserFieldComponent, _super);
17151
17210
  function WriteJudicialUserFieldComponent(jurisdictionService, sessionStorageService, caseFlagRefDataService, compoundPipe, validatorsService) {
@@ -17307,7 +17366,7 @@
17307
17366
  }
17308
17367
  if (rf & 2) {
17309
17368
  var _r3 = i0__namespace.ɵɵreference(7);
17310
- i0__namespace.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$f, !!ctx.judicialUserControl && ctx.errors));
17369
+ i0__namespace.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$g, !!ctx.judicialUserControl && ctx.errors));
17311
17370
  i0__namespace.ɵɵadvance(1);
17312
17371
  i0__namespace.ɵɵproperty("for", ctx.id());
17313
17372
  i0__namespace.ɵɵadvance(1);
@@ -18174,7 +18233,7 @@
18174
18233
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, reason_r19));
18175
18234
  }
18176
18235
  }
18177
- var _c1$e = function (a0) { return { "table-group-error": a0 }; };
18236
+ var _c1$f = function (a0) { return { "table-group-error": a0 }; };
18178
18237
  function LinkCasesComponent_tr_31_Template(rf, ctx) {
18179
18238
  if (rf & 1) {
18180
18239
  var _r21_1 = i0__namespace.ɵɵgetCurrentView();
@@ -18212,7 +18271,7 @@
18212
18271
  var case_r16 = ctx.$implicit;
18213
18272
  var ctx_r2 = i0__namespace.ɵɵnextContext();
18214
18273
  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));
18274
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(12, _c1$f, ctx_r2.caseSelectionError && case_r16.caseReference === ctx_r2.linkCaseForm.value.caseNumber));
18216
18275
  i0__namespace.ɵɵadvance(2);
18217
18276
  i0__namespace.ɵɵtextInterpolate1("", case_r16.caseName, " ");
18218
18277
  i0__namespace.ɵɵadvance(2);
@@ -20518,7 +20577,7 @@
20518
20577
  }
20519
20578
  }
20520
20579
  var _c0$D = function (a0) { return { "form-group-error": a0 }; };
20521
- var _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
20580
+ var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
20522
20581
  var WriteNumberFieldComponent = /** @class */ (function (_super) {
20523
20582
  __extends(WriteNumberFieldComponent, _super);
20524
20583
  function WriteNumberFieldComponent() {
@@ -20552,7 +20611,7 @@
20552
20611
  i0__namespace.ɵɵadvance(1);
20553
20612
  i0__namespace.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
20554
20613
  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);
20614
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$e, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
20556
20615
  }
20557
20616
  }, 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
20617
  var ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
@@ -21396,7 +21455,7 @@
21396
21455
  }
21397
21456
  }
21398
21457
  var _c0$B = function (a0) { return { "form-group-error": a0 }; };
21399
- var _c1$c = function (a0) { return { "govuk-input--error": a0 }; };
21458
+ var _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
21400
21459
  var WritePhoneUKFieldComponent = /** @class */ (function (_super) {
21401
21460
  __extends(WritePhoneUKFieldComponent, _super);
21402
21461
  function WritePhoneUKFieldComponent() {
@@ -21430,7 +21489,7 @@
21430
21489
  i0__namespace.ɵɵadvance(1);
21431
21490
  i0__namespace.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
21432
21491
  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);
21492
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$d, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
21434
21493
  }
21435
21494
  }, 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
21495
  var ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
@@ -21732,11 +21791,11 @@
21732
21791
  QualifyingQuestionsErrorMessage["SELECT_AN_OPTION"] = "Select an option";
21733
21792
  })(exports.QualifyingQuestionsErrorMessage || (exports.QualifyingQuestionsErrorMessage = {}));
21734
21793
 
21735
- function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_7_Template(rf, ctx) {
21794
+ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_10_Template(rf, ctx) {
21736
21795
  if (rf & 1) {
21737
21796
  i0__namespace.ɵɵelementContainerStart(0);
21738
- i0__namespace.ɵɵelementStart(1, "p", 7);
21739
- i0__namespace.ɵɵelementStart(2, "span", 8);
21797
+ i0__namespace.ɵɵelementStart(1, "p", 8);
21798
+ i0__namespace.ɵɵelementStart(2, "span", 9);
21740
21799
  i0__namespace.ɵɵtext(3);
21741
21800
  i0__namespace.ɵɵpipe(4, "rpxTranslate");
21742
21801
  i0__namespace.ɵɵelementEnd();
@@ -21753,23 +21812,52 @@
21753
21812
  i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(6, 4, ctx_r1.qualifyingQuestionsErrorMessage.SELECT_AN_OPTION), " ");
21754
21813
  }
21755
21814
  }
21756
- function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_9_ng_container_1_Template(rf, ctx) {
21815
+ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_container_1_Template(rf, ctx) {
21757
21816
  if (rf & 1) {
21758
21817
  i0__namespace.ɵɵelementContainerStart(0);
21759
- i0__namespace.ɵɵelement(1, "hr");
21818
+ i0__namespace.ɵɵelementStart(1, "div", 14);
21819
+ i0__namespace.ɵɵtext(2);
21820
+ i0__namespace.ɵɵpipe(3, "rpxTranslate");
21821
+ i0__namespace.ɵɵelementEnd();
21760
21822
  i0__namespace.ɵɵelementContainerEnd();
21761
21823
  }
21824
+ if (rf & 2) {
21825
+ i0__namespace.ɵɵadvance(2);
21826
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 1, "or"));
21827
+ }
21828
+ }
21829
+ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_div_7_Template(rf, ctx) {
21830
+ if (rf & 1) {
21831
+ var _r8_1 = i0__namespace.ɵɵgetCurrentView();
21832
+ i0__namespace.ɵɵelementStart(0, "div", 15);
21833
+ i0__namespace.ɵɵtext(1);
21834
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
21835
+ i0__namespace.ɵɵelementStart(3, "a", 16);
21836
+ 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(); });
21837
+ i0__namespace.ɵɵtext(4);
21838
+ i0__namespace.ɵɵpipe(5, "rpxTranslate");
21839
+ i0__namespace.ɵɵelementEnd();
21840
+ i0__namespace.ɵɵtext(6, ".) ");
21841
+ i0__namespace.ɵɵelementEnd();
21842
+ }
21843
+ if (rf & 2) {
21844
+ i0__namespace.ɵɵadvance(1);
21845
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, "(To reply to an existing query"), " ");
21846
+ i0__namespace.ɵɵadvance(3);
21847
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5, 4, "click here"));
21848
+ }
21762
21849
  }
21763
- function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_9_Template(rf, ctx) {
21850
+ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Template(rf, ctx) {
21764
21851
  if (rf & 1) {
21765
21852
  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);
21853
+ i0__namespace.ɵɵtemplate(1, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_container_1_Template, 4, 3, "ng-container", 0);
21854
+ i0__namespace.ɵɵelementStart(2, "div", 10);
21855
+ i0__namespace.ɵɵelement(3, "input", 11);
21856
+ i0__namespace.ɵɵelementStart(4, "label", 12);
21770
21857
  i0__namespace.ɵɵtext(5);
21771
21858
  i0__namespace.ɵɵpipe(6, "rpxTranslate");
21772
21859
  i0__namespace.ɵɵelementEnd();
21860
+ i0__namespace.ɵɵtemplate(7, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_div_7_Template, 7, 6, "div", 13);
21773
21861
  i0__namespace.ɵɵelementEnd();
21774
21862
  i0__namespace.ɵɵelementContainerEnd();
21775
21863
  }
@@ -21785,7 +21873,9 @@
21785
21873
  i0__namespace.ɵɵadvance(1);
21786
21874
  i0__namespace.ɵɵproperty("for", qualifyingQuestion_r3.name);
21787
21875
  i0__namespace.ɵɵadvance(1);
21788
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(6, 6, qualifyingQuestion_r3.name));
21876
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(6, 7, qualifyingQuestion_r3.name));
21877
+ i0__namespace.ɵɵadvance(2);
21878
+ i0__namespace.ɵɵproperty("ngIf", isLast_r4);
21789
21879
  }
21790
21880
  }
21791
21881
  function QualifyingQuestionOptionsComponent_ng_container_0_Template(rf, ctx) {
@@ -21799,10 +21889,14 @@
21799
21889
  i0__namespace.ɵɵpipe(6, "rpxTranslate");
21800
21890
  i0__namespace.ɵɵelementEnd();
21801
21891
  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");
21892
+ i0__namespace.ɵɵelementStart(7, "h2", 5);
21893
+ i0__namespace.ɵɵtext(8);
21894
+ i0__namespace.ɵɵpipe(9, "rpxTranslate");
21895
+ i0__namespace.ɵɵelementEnd();
21896
+ i0__namespace.ɵɵtemplate(10, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_10_Template, 7, 6, "ng-container", 0);
21897
+ i0__namespace.ɵɵelementStart(11, "div", 6);
21898
+ i0__namespace.ɵɵtemplate(12, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Template, 8, 9, "ng-container", 7);
21899
+ i0__namespace.ɵɵpipe(13, "async");
21806
21900
  i0__namespace.ɵɵelementEnd();
21807
21901
  i0__namespace.ɵɵelementEnd();
21808
21902
  i0__namespace.ɵɵelementEnd();
@@ -21813,17 +21907,27 @@
21813
21907
  i0__namespace.ɵɵadvance(1);
21814
21908
  i0__namespace.ɵɵclassProp("govuk-form-group--error", ctx_r0.displayError);
21815
21909
  i0__namespace.ɵɵadvance(4);
21816
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 5, "Are you contacting us about any of the following:"), " ");
21910
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 6, "Raise a new query"), " ");
21911
+ i0__namespace.ɵɵadvance(3);
21912
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(9, 8, "Select the type of query you are raising:"), " ");
21817
21913
  i0__namespace.ɵɵadvance(2);
21818
21914
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.displayError);
21819
21915
  i0__namespace.ɵɵadvance(2);
21820
- i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(10, 7, ctx_r0.qualifyingQuestions$));
21916
+ i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(13, 10, ctx_r0.qualifyingQuestions$));
21821
21917
  }
21822
21918
  }
21823
21919
  var QualifyingQuestionOptionsComponent = /** @class */ (function () {
21824
- function QualifyingQuestionOptionsComponent() {
21920
+ function QualifyingQuestionOptionsComponent(route, router) {
21921
+ this.route = route;
21922
+ this.router = router;
21825
21923
  this.qualifyingQuestionsErrorMessage = exports.QualifyingQuestionsErrorMessage;
21826
21924
  }
21925
+ QualifyingQuestionOptionsComponent.prototype.ngOnInit = function () {
21926
+ this.caseId = this.route.snapshot.params.cid;
21927
+ };
21928
+ QualifyingQuestionOptionsComponent.prototype.click = function () {
21929
+ this.router.navigate(['cases', 'case-details', this.caseId], { fragment: 'Queries' });
21930
+ };
21827
21931
  Object.defineProperty(QualifyingQuestionOptionsComponent.prototype, "displayError", {
21828
21932
  get: function () {
21829
21933
  return this.qualifyingQuestionsControl.touched && this.qualifyingQuestionsControl.hasError('required');
@@ -21833,10 +21937,10 @@
21833
21937
  });
21834
21938
  return QualifyingQuestionOptionsComponent;
21835
21939
  }());
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) {
21940
+ QualifyingQuestionOptionsComponent.ɵfac = function QualifyingQuestionOptionsComponent_Factory(t) { return new (t || QualifyingQuestionOptionsComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router)); };
21941
+ 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
21942
  if (rf & 1) {
21839
- i0__namespace.ɵɵtemplate(0, QualifyingQuestionOptionsComponent_ng_container_0_Template, 11, 9, "ng-container", 0);
21943
+ i0__namespace.ɵɵtemplate(0, QualifyingQuestionOptionsComponent_ng_container_0_Template, 14, 12, "ng-container", 0);
21840
21944
  }
21841
21945
  if (rf & 2) {
21842
21946
  i0__namespace.ɵɵproperty("ngIf", ctx.qualifyingQuestionsControl);
@@ -21849,7 +21953,7 @@
21849
21953
  selector: 'ccd-qualifying-question-options',
21850
21954
  templateUrl: './qualifying-question-options.component.html'
21851
21955
  }]
21852
- }], null, { qualifyingQuestionsControl: [{
21956
+ }], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }]; }, { qualifyingQuestionsControl: [{
21853
21957
  type: i0.Input
21854
21958
  }], qualifyingQuestions$: [{
21855
21959
  type: i0.Input
@@ -23891,7 +23995,7 @@
23891
23995
  }
23892
23996
  }
23893
23997
  var _c0$y = function (a0) { return { "form-group-error": a0 }; };
23894
- var _c1$b = function (a0) { return { "govuk-textarea--error": a0 }; };
23998
+ var _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
23895
23999
  var WriteTextAreaFieldComponent = /** @class */ (function (_super) {
23896
24000
  __extends(WriteTextAreaFieldComponent, _super);
23897
24001
  function WriteTextAreaFieldComponent(browserService) {
@@ -23936,7 +24040,7 @@
23936
24040
  i0__namespace.ɵɵadvance(1);
23937
24041
  i0__namespace.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
23938
24042
  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);
24043
+ 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
24044
  }
23941
24045
  }, 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
24046
  (function () {
@@ -24023,7 +24127,7 @@
24023
24127
  }
24024
24128
  }
24025
24129
  var _c0$x = function (a0) { return { "form-group-error": a0 }; };
24026
- var _c1$a = function (a0) { return { "govuk-input--error": a0 }; };
24130
+ var _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
24027
24131
  var WriteTextFieldComponent = /** @class */ (function (_super) {
24028
24132
  __extends(WriteTextFieldComponent, _super);
24029
24133
  function WriteTextFieldComponent() {
@@ -24062,7 +24166,7 @@
24062
24166
  i0__namespace.ɵɵadvance(1);
24063
24167
  i0__namespace.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
24064
24168
  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);
24169
+ 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
24170
  }
24067
24171
  }, 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
24172
  var ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteTextFieldComponent);
@@ -24290,7 +24394,7 @@
24290
24394
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 8, value_r4));
24291
24395
  }
24292
24396
  }
24293
- var _c1$9 = function (a0) { return { "form-group-error": a0 }; };
24397
+ var _c1$a = function (a0) { return { "form-group-error": a0 }; };
24294
24398
  var WriteYesNoFieldComponent = /** @class */ (function (_super) {
24295
24399
  __extends(WriteYesNoFieldComponent, _super);
24296
24400
  function WriteYesNoFieldComponent(yesNoService) {
@@ -24321,7 +24425,7 @@
24321
24425
  i0__namespace.ɵɵelementEnd();
24322
24426
  }
24323
24427
  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)));
24428
+ i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$a, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
24325
24429
  i0__namespace.ɵɵadvance(3);
24326
24430
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
24327
24431
  i0__namespace.ɵɵadvance(1);
@@ -24752,7 +24856,7 @@
24752
24856
  i0__namespace.ɵɵelementContainer(0);
24753
24857
  }
24754
24858
  }
24755
- var _c1$8 = function (a0, a1) { return { cat: a0, level: a1 }; };
24859
+ var _c1$9 = function (a0, a1) { return { cat: a0, level: a1 }; };
24756
24860
  function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) {
24757
24861
  if (rf & 1) {
24758
24862
  i0__namespace.ɵɵelementContainerStart(0);
@@ -24765,7 +24869,7 @@
24765
24869
  i0__namespace.ɵɵnextContext();
24766
24870
  var _r1 = i0__namespace.ɵɵreference(13);
24767
24871
  i0__namespace.ɵɵadvance(1);
24768
- i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$8, subcat_r8, level_r6 + 1));
24872
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$9, subcat_r8, level_r6 + 1));
24769
24873
  }
24770
24874
  }
24771
24875
  function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) {
@@ -24987,7 +25091,7 @@
24987
25091
  }
24988
25092
  }
24989
25093
  var _c0$r = [[["", "trigger", ""]]];
24990
- var _c1$7 = ["[trigger]"];
25094
+ var _c1$8 = ["[trigger]"];
24991
25095
  var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
24992
25096
  function CaseFileViewOverlayMenuComponent() {
24993
25097
  this.title = '';
@@ -25002,7 +25106,7 @@
25002
25106
  return CaseFileViewOverlayMenuComponent;
25003
25107
  }());
25004
25108
  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) {
25109
+ 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
25110
  if (rf & 1) {
25007
25111
  i0__namespace.ɵɵprojectionDef(_c0$r);
25008
25112
  i0__namespace.ɵɵelementStart(0, "div");
@@ -25703,6 +25807,7 @@
25703
25807
  function AddCommentsComponent() {
25704
25808
  this.optional = false;
25705
25809
  this.isDisplayContextParameterExternal = false;
25810
+ this.isDisplayContextParameter2Point1Enabled = false;
25706
25811
  this.caseFlagStateEmitter = new i0.EventEmitter();
25707
25812
  this.errorMessages = [];
25708
25813
  this.flagCommentsNotEnteredErrorMessage = null;
@@ -25714,6 +25819,8 @@
25714
25819
  AddCommentsComponent.prototype.ngOnInit = function () {
25715
25820
  this.addCommentsTitle = !this.isDisplayContextParameterExternal ?
25716
25821
  exports.CaseFlagWizardStepTitle.ADD_FLAG_COMMENTS : exports.CaseFlagWizardStepTitle.ADD_FLAG_COMMENTS_EXTERNAL_MODE;
25822
+ this.addCommentsHint = !this.isDisplayContextParameterExternal ?
25823
+ exports.AddCommentsStep.HINT_TEXT : exports.AddCommentsStep.HINT_TEXT_EXTERNAL;
25717
25824
  if (!this.formGroup.get(this.flagCommentsControlName)) {
25718
25825
  this.formGroup.addControl(this.flagCommentsControlName, new i3.FormControl(''));
25719
25826
  }
@@ -25729,10 +25836,12 @@
25729
25836
  this.flagCommentsCharLimitErrorMessage = null;
25730
25837
  this.errorMessages = [];
25731
25838
  if (!this.optional && !this.formGroup.get(this.flagCommentsControlName).value) {
25732
- this.flagCommentsNotEnteredErrorMessage = exports.AddCommentsErrorMessage.FLAG_COMMENTS_NOT_ENTERED;
25839
+ this.flagCommentsNotEnteredErrorMessage = this.isDisplayContextParameterExternal
25840
+ ? exports.AddCommentsErrorMessage.FLAG_COMMENTS_NOT_ENTERED_EXTERNAL
25841
+ : exports.AddCommentsErrorMessage.FLAG_COMMENTS_NOT_ENTERED;
25733
25842
  this.errorMessages.push({
25734
25843
  title: '',
25735
- description: exports.AddCommentsErrorMessage.FLAG_COMMENTS_NOT_ENTERED,
25844
+ description: this.flagCommentsNotEnteredErrorMessage,
25736
25845
  fieldId: this.flagCommentsControlName
25737
25846
  });
25738
25847
  }
@@ -25749,7 +25858,7 @@
25749
25858
  return AddCommentsComponent;
25750
25859
  }());
25751
25860
  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) {
25861
+ 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
25862
  if (rf & 1) {
25754
25863
  i0__namespace.ɵɵelementContainerStart(0, 0);
25755
25864
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -25795,9 +25904,9 @@
25795
25904
  i0__namespace.ɵɵadvance(2);
25796
25905
  i0__namespace.ɵɵproperty("ngIf", ctx.optional);
25797
25906
  i0__namespace.ɵɵadvance(2);
25798
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(10, 16, ctx.addCommentsStepEnum.HINT_TEXT), " ");
25907
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(10, 16, ctx.addCommentsHint), " ");
25799
25908
  i0__namespace.ɵɵadvance(2);
25800
- i0__namespace.ɵɵproperty("ngIf", !ctx.isDisplayContextParameterExternal);
25909
+ i0__namespace.ɵɵproperty("ngIf", !ctx.isDisplayContextParameterExternal && ctx.isDisplayContextParameter2Point1Enabled);
25801
25910
  i0__namespace.ɵɵadvance(1);
25802
25911
  i0__namespace.ɵɵproperty("ngIf", ctx.flagCommentsNotEnteredErrorMessage);
25803
25912
  i0__namespace.ɵɵadvance(1);
@@ -25823,6 +25932,8 @@
25823
25932
  type: i0.Input
25824
25933
  }], isDisplayContextParameterExternal: [{
25825
25934
  type: i0.Input
25935
+ }], isDisplayContextParameter2Point1Enabled: [{
25936
+ type: i0.Input
25826
25937
  }], caseFlagStateEmitter: [{
25827
25938
  type: i0.Output
25828
25939
  }] });
@@ -25830,7 +25941,7 @@
25830
25941
 
25831
25942
  function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) {
25832
25943
  if (rf & 1) {
25833
- var _r6_1 = i0__namespace.ɵɵgetCurrentView();
25944
+ var _r5_1 = i0__namespace.ɵɵgetCurrentView();
25834
25945
  i0__namespace.ɵɵelementStart(0, "div", 2);
25835
25946
  i0__namespace.ɵɵelementStart(1, "dt", 3);
25836
25947
  i0__namespace.ɵɵtext(2);
@@ -25841,7 +25952,7 @@
25841
25952
  i0__namespace.ɵɵelementEnd();
25842
25953
  i0__namespace.ɵɵelementStart(6, "dd", 5);
25843
25954
  i0__namespace.ɵɵelementStart(7, "a", 6);
25844
- i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_div_28_Template_a_click_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(2); return ctx_r5.changeButtonEmitter.emit(ctx_r5.summaryListDisplayMode === ctx_r5.displayMode.MANAGE ? ctx_r5.caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION : ctx_r5.caseFlagFieldState.FLAG_TYPE); });
25955
+ i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_div_28_Template_a_click_7_listener() { i0__namespace.ɵɵrestoreView(_r5_1); var ctx_r4 = i0__namespace.ɵɵnextContext(2); return ctx_r4.changeButtonEmitter.emit(ctx_r4.summaryListDisplayMode === ctx_r4.displayMode.MANAGE ? ctx_r4.caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION : ctx_r4.caseFlagFieldState.FLAG_TYPE); });
25845
25956
  i0__namespace.ɵɵtext(8);
25846
25957
  i0__namespace.ɵɵpipe(9, "rpxTranslate");
25847
25958
  i0__namespace.ɵɵelementStart(10, "span", 7);
@@ -25866,7 +25977,7 @@
25866
25977
  }
25867
25978
  function CaseFlagSummaryListComponent_dl_0_div_29_Template(rf, ctx) {
25868
25979
  if (rf & 1) {
25869
- var _r8_1 = i0__namespace.ɵɵgetCurrentView();
25980
+ var _r7_1 = i0__namespace.ɵɵgetCurrentView();
25870
25981
  i0__namespace.ɵɵelementStart(0, "div", 2);
25871
25982
  i0__namespace.ɵɵelementStart(1, "dt", 3);
25872
25983
  i0__namespace.ɵɵtext(2);
@@ -25877,7 +25988,7 @@
25877
25988
  i0__namespace.ɵɵelementEnd();
25878
25989
  i0__namespace.ɵɵelementStart(6, "dd", 5);
25879
25990
  i0__namespace.ɵɵelementStart(7, "a", 6);
25880
- i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_div_29_Template_a_click_7_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var ctx_r7 = i0__namespace.ɵɵnextContext(2); return ctx_r7.changeButtonEmitter.emit(ctx_r7.summaryListDisplayMode === ctx_r7.displayMode.MANAGE ? ctx_r7.caseFlagFieldState.FLAG_UPDATE : ctx_r7.caseFlagFieldState.FLAG_COMMENTS); });
25991
+ i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_div_29_Template_a_click_7_listener() { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r6 = i0__namespace.ɵɵnextContext(2); return ctx_r6.changeButtonEmitter.emit(ctx_r6.summaryListDisplayMode === ctx_r6.displayMode.MANAGE ? ctx_r6.caseFlagFieldState.FLAG_UPDATE : ctx_r6.caseFlagFieldState.FLAG_COMMENTS); });
25881
25992
  i0__namespace.ɵɵtext(8);
25882
25993
  i0__namespace.ɵɵpipe(9, "rpxTranslate");
25883
25994
  i0__namespace.ɵɵelementStart(10, "span", 7);
@@ -25902,7 +26013,7 @@
25902
26013
  }
25903
26014
  function CaseFlagSummaryListComponent_dl_0_div_30_Template(rf, ctx) {
25904
26015
  if (rf & 1) {
25905
- var _r10_1 = i0__namespace.ɵɵgetCurrentView();
26016
+ var _r9_1 = i0__namespace.ɵɵgetCurrentView();
25906
26017
  i0__namespace.ɵɵelementStart(0, "div", 2);
25907
26018
  i0__namespace.ɵɵelementStart(1, "dt", 3);
25908
26019
  i0__namespace.ɵɵtext(2);
@@ -25913,7 +26024,7 @@
25913
26024
  i0__namespace.ɵɵelementEnd();
25914
26025
  i0__namespace.ɵɵelementStart(6, "dd", 5);
25915
26026
  i0__namespace.ɵɵelementStart(7, "a", 6);
25916
- i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_div_30_Template_a_click_7_listener() { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r9 = i0__namespace.ɵɵnextContext(2); return ctx_r9.changeButtonEmitter.emit(ctx_r9.summaryListDisplayMode === ctx_r9.displayMode.MANAGE ? ctx_r9.caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION : ctx_r9.caseFlagFieldState.FLAG_COMMENTS); });
26027
+ i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_div_30_Template_a_click_7_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.changeButtonEmitter.emit(ctx_r8.summaryListDisplayMode === ctx_r8.displayMode.MANAGE ? ctx_r8.caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION : ctx_r8.caseFlagFieldState.FLAG_COMMENTS); });
25917
26028
  i0__namespace.ɵɵtext(8);
25918
26029
  i0__namespace.ɵɵpipe(9, "rpxTranslate");
25919
26030
  i0__namespace.ɵɵelementStart(10, "span", 7);
@@ -25936,46 +26047,9 @@
25936
26047
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(12, 8, "comments (Welsh)"), "");
25937
26048
  }
25938
26049
  }
25939
- function CaseFlagSummaryListComponent_dl_0_div_31_Template(rf, ctx) {
25940
- if (rf & 1) {
25941
- 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();
25961
- i0__namespace.ɵɵelementEnd();
25962
- i0__namespace.ɵɵelementEnd();
25963
- }
25964
- 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"), "");
25972
- i0__namespace.ɵɵadvance(3);
25973
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(13, 10, "status"), "");
25974
- }
25975
- }
25976
26050
  function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) {
25977
26051
  if (rf & 1) {
25978
- var _r14_1 = i0__namespace.ɵɵgetCurrentView();
26052
+ var _r11_1 = i0__namespace.ɵɵgetCurrentView();
25979
26053
  i0__namespace.ɵɵelementStart(0, "dl", 1);
25980
26054
  i0__namespace.ɵɵelementStart(1, "div", 2);
25981
26055
  i0__namespace.ɵɵelementStart(2, "dt", 3);
@@ -25988,7 +26062,7 @@
25988
26062
  i0__namespace.ɵɵelementEnd();
25989
26063
  i0__namespace.ɵɵelementStart(8, "dd", 5);
25990
26064
  i0__namespace.ɵɵelementStart(9, "a", 6);
25991
- i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_Template_a_click_9_listener() { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r13 = i0__namespace.ɵɵnextContext(); return ctx_r13.changeButtonEmitter.emit(ctx_r13.summaryListDisplayMode === ctx_r13.displayMode.MANAGE ? ctx_r13.caseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : ctx_r13.caseFlagFieldState.FLAG_LOCATION); });
26065
+ i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_Template_a_click_9_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r10 = i0__namespace.ɵɵnextContext(); return ctx_r10.changeButtonEmitter.emit(ctx_r10.summaryListDisplayMode === ctx_r10.displayMode.MANAGE ? ctx_r10.caseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : ctx_r10.caseFlagFieldState.FLAG_LOCATION); });
25992
26066
  i0__namespace.ɵɵtext(10);
25993
26067
  i0__namespace.ɵɵpipe(11, "rpxTranslate");
25994
26068
  i0__namespace.ɵɵelementStart(12, "span", 7);
@@ -26008,7 +26082,7 @@
26008
26082
  i0__namespace.ɵɵelementEnd();
26009
26083
  i0__namespace.ɵɵelementStart(21, "dd", 5);
26010
26084
  i0__namespace.ɵɵelementStart(22, "a", 6);
26011
- i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_Template_a_click_22_listener() { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r15 = i0__namespace.ɵɵnextContext(); return ctx_r15.changeButtonEmitter.emit(ctx_r15.summaryListDisplayMode === ctx_r15.displayMode.MANAGE ? ctx_r15.caseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : ctx_r15.caseFlagFieldState.FLAG_TYPE); });
26085
+ i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_Template_a_click_22_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r12 = i0__namespace.ɵɵnextContext(); return ctx_r12.changeButtonEmitter.emit(ctx_r12.summaryListDisplayMode === ctx_r12.displayMode.MANAGE ? ctx_r12.caseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : ctx_r12.caseFlagFieldState.FLAG_TYPE); });
26012
26086
  i0__namespace.ɵɵtext(23);
26013
26087
  i0__namespace.ɵɵpipe(24, "rpxTranslate");
26014
26088
  i0__namespace.ɵɵelementStart(25, "span", 7);
@@ -26021,35 +26095,61 @@
26021
26095
  i0__namespace.ɵɵtemplate(28, CaseFlagSummaryListComponent_dl_0_div_28_Template, 13, 10, "div", 8);
26022
26096
  i0__namespace.ɵɵtemplate(29, CaseFlagSummaryListComponent_dl_0_div_29_Template, 13, 10, "div", 8);
26023
26097
  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);
26098
+ i0__namespace.ɵɵelementStart(31, "div", 2);
26099
+ i0__namespace.ɵɵelementStart(32, "dt", 3);
26100
+ i0__namespace.ɵɵtext(33);
26101
+ i0__namespace.ɵɵpipe(34, "rpxTranslate");
26102
+ i0__namespace.ɵɵelementEnd();
26103
+ i0__namespace.ɵɵelementStart(35, "dd", 4);
26104
+ i0__namespace.ɵɵtext(36);
26105
+ i0__namespace.ɵɵpipe(37, "rpxTranslate");
26106
+ i0__namespace.ɵɵelementEnd();
26107
+ i0__namespace.ɵɵelementStart(38, "dd", 5);
26108
+ i0__namespace.ɵɵelementStart(39, "a", 6);
26109
+ i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_Template_a_click_39_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r13 = i0__namespace.ɵɵnextContext(); return ctx_r13.changeButtonEmitter.emit(ctx_r13.caseFlagFieldState.FLAG_UPDATE); });
26110
+ i0__namespace.ɵɵtext(40);
26111
+ i0__namespace.ɵɵpipe(41, "rpxTranslate");
26112
+ i0__namespace.ɵɵelementStart(42, "span", 7);
26113
+ i0__namespace.ɵɵtext(43);
26114
+ i0__namespace.ɵɵpipe(44, "rpxTranslate");
26115
+ i0__namespace.ɵɵelementEnd();
26116
+ i0__namespace.ɵɵelementEnd();
26117
+ i0__namespace.ɵɵelementEnd();
26118
+ i0__namespace.ɵɵelementEnd();
26025
26119
  i0__namespace.ɵɵelementEnd();
26026
26120
  }
26027
26121
  if (rf & 2) {
26028
26122
  var ctx_r0 = i0__namespace.ɵɵnextContext();
26029
26123
  i0__namespace.ɵɵadvance(3);
26030
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 12, ctx_r0.addUpdateFlagHeaderText), " ");
26124
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 15, ctx_r0.addUpdateFlagHeaderText), " ");
26031
26125
  i0__namespace.ɵɵadvance(3);
26032
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(7, 14, ctx_r0.flagForSummaryDisplay.partyName || ctx_r0.caseLevelLocation), " ");
26126
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(7, 17, ctx_r0.flagForSummaryDisplay.partyName || ctx_r0.caseFlagCheckYourAnswersPageStep.CASE_LEVEL_LOCATION), " ");
26033
26127
  i0__namespace.ɵɵadvance(4);
26034
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(11, 16, "Change"), "");
26128
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(11, 19, "Change"), "");
26035
26129
  i0__namespace.ɵɵadvance(3);
26036
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(14, 18, "party name"), "");
26130
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(14, 21, "party name"), "");
26037
26131
  i0__namespace.ɵɵadvance(4);
26038
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 20, "Flag type"), " ");
26132
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 23, ctx_r0.flagTypeHeaderText), " ");
26039
26133
  i0__namespace.ɵɵadvance(3);
26040
26134
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.flagDescription, " ");
26041
26135
  i0__namespace.ɵɵadvance(3);
26042
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(24, 22, "Change"), "");
26136
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(24, 25, "Change"), "");
26043
26137
  i0__namespace.ɵɵadvance(3);
26044
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(27, 24, "flag type"), "");
26138
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(27, 27, "flag type"), "");
26045
26139
  i0__namespace.ɵɵadvance(2);
26046
26140
  i0__namespace.ɵɵproperty("ngIf", (ctx_r0.flagDescriptionWelsh == null ? null : ctx_r0.flagDescriptionWelsh.length) > 0);
26047
26141
  i0__namespace.ɵɵadvance(1);
26048
26142
  i0__namespace.ɵɵproperty("ngIf", (ctx_r0.flagComments == null ? null : ctx_r0.flagComments.length) > 0);
26049
26143
  i0__namespace.ɵɵadvance(1);
26050
26144
  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);
26145
+ i0__namespace.ɵɵadvance(3);
26146
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(34, 29, "Status"), " ");
26147
+ i0__namespace.ɵɵadvance(3);
26148
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(37, 31, ctx_r0.flagStatus), " ");
26149
+ i0__namespace.ɵɵadvance(4);
26150
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(41, 33, "Change"), "");
26151
+ i0__namespace.ɵɵadvance(3);
26152
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(44, 35, "status"), "");
26053
26153
  }
26054
26154
  }
26055
26155
  var CaseFlagSummaryListComponent = /** @class */ (function () {
@@ -26057,11 +26157,8 @@
26057
26157
  this.rpxTranslationService = rpxTranslationService;
26058
26158
  this.changeButtonEmitter = new i0.EventEmitter();
26059
26159
  this.caseFlagFieldState = exports.CaseFlagFieldState;
26060
- this.caseLevelLocation = 'Case level';
26061
- this.updateFlagHeaderText = 'Update flag for';
26062
- this.addFlagHeaderText = 'Add flag to';
26063
26160
  this.displayMode = exports.CaseFlagSummaryListDisplayMode;
26064
- this.canDisplayStatus = false;
26161
+ this.caseFlagCheckYourAnswersPageStep = exports.CaseFlagCheckYourAnswersPageStep;
26065
26162
  }
26066
26163
  CaseFlagSummaryListComponent.prototype.ngOnInit = function () {
26067
26164
  if (this.flagForSummaryDisplay) {
@@ -26071,9 +26168,9 @@
26071
26168
  this.flagComments = flagDetail.flagComment;
26072
26169
  this.flagCommentsWelsh = flagDetail.flagComment_cy;
26073
26170
  this.flagStatus = flagDetail.status;
26074
- this.addUpdateFlagHeaderText = this.getHeaderText();
26171
+ this.addUpdateFlagHeaderText = this.getAddUpdateFlagHeaderText();
26172
+ this.flagTypeHeaderText = this.getFlagTypeHeaderText();
26075
26173
  this.summaryListDisplayMode = this.getSummaryListDisplayMode();
26076
- this.canDisplayStatus = this.getCanDisplayStatus();
26077
26174
  }
26078
26175
  };
26079
26176
  CaseFlagSummaryListComponent.prototype.getFlagDescription = function (flagDetail) {
@@ -26092,16 +26189,35 @@
26092
26189
  var subTypeValueForDisplay = subTypeValue ? " - " + subTypeValue : '';
26093
26190
  return "" + flagName + otherDescription + subTypeValueForDisplay;
26094
26191
  };
26095
- CaseFlagSummaryListComponent.prototype.getHeaderText = function () {
26096
- if (this.displayContextParameter === exports.CaseFlagDisplayContextParameter.CREATE ||
26097
- this.displayContextParameter === exports.CaseFlagDisplayContextParameter.CREATE_EXTERNAL) {
26098
- return this.addFlagHeaderText;
26192
+ CaseFlagSummaryListComponent.prototype.getAddUpdateFlagHeaderText = function () {
26193
+ switch (this.displayContextParameter) {
26194
+ case exports.CaseFlagDisplayContextParameter.CREATE:
26195
+ case exports.CaseFlagDisplayContextParameter.CREATE_2_POINT_1:
26196
+ return exports.CaseFlagCheckYourAnswersPageStep.ADD_FLAG_HEADER_TEXT;
26197
+ case exports.CaseFlagDisplayContextParameter.CREATE_EXTERNAL:
26198
+ return exports.CaseFlagCheckYourAnswersPageStep.ADD_FLAG_HEADER_TEXT_EXTERNAL;
26199
+ case exports.CaseFlagDisplayContextParameter.UPDATE:
26200
+ case exports.CaseFlagDisplayContextParameter.UPDATE_2_POINT_1:
26201
+ return exports.CaseFlagCheckYourAnswersPageStep.UPDATE_FLAG_HEADER_TEXT;
26202
+ case exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL:
26203
+ return exports.CaseFlagCheckYourAnswersPageStep.UPDATE_FLAG_HEADER_TEXT_EXTERNAL;
26204
+ default:
26205
+ return exports.CaseFlagCheckYourAnswersPageStep.NONE;
26099
26206
  }
26100
- if (this.displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE ||
26101
- this.displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL) {
26102
- return this.updateFlagHeaderText;
26207
+ };
26208
+ CaseFlagSummaryListComponent.prototype.getFlagTypeHeaderText = function () {
26209
+ switch (this.displayContextParameter) {
26210
+ case exports.CaseFlagDisplayContextParameter.CREATE:
26211
+ case exports.CaseFlagDisplayContextParameter.CREATE_2_POINT_1:
26212
+ case exports.CaseFlagDisplayContextParameter.UPDATE:
26213
+ case exports.CaseFlagDisplayContextParameter.UPDATE_2_POINT_1:
26214
+ return exports.CaseFlagCheckYourAnswersPageStep.FLAG_TYPE_HEADER_TEXT;
26215
+ case exports.CaseFlagDisplayContextParameter.CREATE_EXTERNAL:
26216
+ case exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL:
26217
+ return exports.CaseFlagCheckYourAnswersPageStep.FLAG_TYPE_HEADER_TEXT_EXTERNAL;
26218
+ default:
26219
+ return exports.CaseFlagCheckYourAnswersPageStep.NONE;
26103
26220
  }
26104
- return '';
26105
26221
  };
26106
26222
  CaseFlagSummaryListComponent.prototype.getSummaryListDisplayMode = function () {
26107
26223
  if (this.displayContextParameter === exports.CaseFlagDisplayContextParameter.CREATE ||
@@ -26110,17 +26226,12 @@
26110
26226
  }
26111
26227
  return exports.CaseFlagSummaryListDisplayMode.MANAGE;
26112
26228
  };
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);
26117
- };
26118
26229
  return CaseFlagSummaryListComponent;
26119
26230
  }());
26120
26231
  CaseFlagSummaryListComponent.ɵfac = function CaseFlagSummaryListComponent_Factory(t) { return new (t || CaseFlagSummaryListComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.RpxTranslationService)); };
26121
26232
  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) {
26122
26233
  if (rf & 1) {
26123
- i0__namespace.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template, 32, 26, "dl", 0);
26234
+ i0__namespace.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template, 45, 37, "dl", 0);
26124
26235
  }
26125
26236
  if (rf & 2) {
26126
26237
  i0__namespace.ɵɵproperty("ngIf", ctx.flagForSummaryDisplay);
@@ -26171,7 +26282,7 @@
26171
26282
  function CaseFlagTableComponent_table_0_tbody_20_tr_1_div_15_Template(rf, ctx) {
26172
26283
  if (rf & 1) {
26173
26284
  i0__namespace.ɵɵelementStart(0, "div");
26174
- i0__namespace.ɵɵelementStart(1, "span", 21);
26285
+ i0__namespace.ɵɵelementStart(1, "span", 23);
26175
26286
  i0__namespace.ɵɵtext(2);
26176
26287
  i0__namespace.ɵɵelementEnd();
26177
26288
  i0__namespace.ɵɵelementEnd();
@@ -26184,7 +26295,7 @@
26184
26295
  }
26185
26296
  function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_23_Template(rf, ctx) {
26186
26297
  if (rf & 1) {
26187
- i0__namespace.ɵɵelementStart(0, "strong", 22);
26298
+ i0__namespace.ɵɵelementStart(0, "strong", 24);
26188
26299
  i0__namespace.ɵɵtext(1);
26189
26300
  i0__namespace.ɵɵpipe(2, "rpxTranslate");
26190
26301
  i0__namespace.ɵɵelementEnd();
@@ -26196,7 +26307,7 @@
26196
26307
  }
26197
26308
  function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_24_Template(rf, ctx) {
26198
26309
  if (rf & 1) {
26199
- i0__namespace.ɵɵelementStart(0, "strong", 23);
26310
+ i0__namespace.ɵɵelementStart(0, "strong", 25);
26200
26311
  i0__namespace.ɵɵtext(1);
26201
26312
  i0__namespace.ɵɵpipe(2, "rpxTranslate");
26202
26313
  i0__namespace.ɵɵelementEnd();
@@ -26208,7 +26319,7 @@
26208
26319
  }
26209
26320
  function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_25_Template(rf, ctx) {
26210
26321
  if (rf & 1) {
26211
- i0__namespace.ɵɵelementStart(0, "strong", 23);
26322
+ i0__namespace.ɵɵelementStart(0, "strong", 26);
26212
26323
  i0__namespace.ɵɵtext(1);
26213
26324
  i0__namespace.ɵɵpipe(2, "rpxTranslate");
26214
26325
  i0__namespace.ɵɵelementEnd();
@@ -26220,7 +26331,7 @@
26220
26331
  }
26221
26332
  function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_26_Template(rf, ctx) {
26222
26333
  if (rf & 1) {
26223
- i0__namespace.ɵɵelementStart(0, "strong", 24);
26334
+ i0__namespace.ɵɵelementStart(0, "strong", 27);
26224
26335
  i0__namespace.ɵɵtext(1);
26225
26336
  i0__namespace.ɵɵpipe(2, "rpxTranslate");
26226
26337
  i0__namespace.ɵɵelementEnd();
@@ -26262,11 +26373,11 @@
26262
26373
  i0__namespace.ɵɵtext(20);
26263
26374
  i0__namespace.ɵɵpipe(21, "date");
26264
26375
  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);
26376
+ i0__namespace.ɵɵelementStart(22, "td", 18);
26377
+ i0__namespace.ɵɵtemplate(23, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_23_Template, 3, 3, "strong", 19);
26378
+ i0__namespace.ɵɵtemplate(24, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_24_Template, 3, 3, "strong", 20);
26379
+ i0__namespace.ɵɵtemplate(25, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_25_Template, 3, 3, "strong", 21);
26380
+ i0__namespace.ɵɵtemplate(26, CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_26_Template, 3, 3, "strong", 22);
26270
26381
  i0__namespace.ɵɵelementEnd();
26271
26382
  i0__namespace.ɵɵelementEnd();
26272
26383
  }
@@ -26376,14 +26487,14 @@
26376
26487
  return CaseFlagTableComponent;
26377
26488
  }());
26378
26489
  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) {
26490
+ 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
26491
  if (rf & 1) {
26381
26492
  i0__namespace.ɵɵtemplate(0, CaseFlagTableComponent_table_0_Template, 21, 16, "table", 0);
26382
26493
  }
26383
26494
  if (rf & 2) {
26384
26495
  i0__namespace.ɵɵproperty("ngIf", ctx.flagData);
26385
26496
  }
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%}"] });
26497
+ }, 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
26498
  (function () {
26388
26499
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFlagTableComponent, [{
26389
26500
  type: i0.Component,
@@ -27094,9 +27205,14 @@
27094
27205
  exports.CaseFlagWizardStepTitle.SELECT_FLAG_LOCATION_EXTERNAL : exports.CaseFlagWizardStepTitle.SELECT_FLAG_LOCATION;
27095
27206
  // Filter out any flags instances that don't have a party name, unless the instance is for case-level flags (this
27096
27207
  // is expected not to have a party name)
27208
+ // Also de-duplicate flags instances where the groupId, if present, is the same
27097
27209
  if (this.flagsData) {
27098
27210
  this.filteredFlagsData =
27099
- this.flagsData.filter(function (f) { return f.flags.partyName !== null || f.pathToFlagsFormGroup === _this.caseLevelCaseFlagsFieldId; });
27211
+ this.flagsData
27212
+ .filter(function (f) { return f.flags.partyName !== null || f.pathToFlagsFormGroup === _this.caseLevelCaseFlagsFieldId; })
27213
+ .filter(function (value, index, partyLevelFlags) { return !value.flags.groupId
27214
+ ? value
27215
+ : partyLevelFlags.findIndex(function (p) { return p.flags.groupId === value.flags.groupId; }) === index; });
27100
27216
  }
27101
27217
  // Add a FormControl for the selected flag location if there is at least one flags instance remaining after filtering
27102
27218
  if (this.filteredFlagsData && this.filteredFlagsData.length > 0) {
@@ -27259,12 +27375,13 @@
27259
27375
  i0__namespace.ɵɵelementContainerStart(0);
27260
27376
  i0__namespace.ɵɵtext(1);
27261
27377
  i0__namespace.ɵɵpipe(2, "rpxTranslate");
27378
+ i0__namespace.ɵɵpipe(3, "rpxTranslate");
27262
27379
  i0__namespace.ɵɵelementContainerEnd();
27263
27380
  }
27264
27381
  if (rf & 2) {
27265
27382
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
27266
27383
  i0__namespace.ɵɵadvance(1);
27267
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r2.caseFlagWizardStepTitle.SELECT_CASE_FLAG), " ");
27384
+ 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
27385
  }
27269
27386
  }
27270
27387
  function SelectFlagTypeComponent_ng_container_0_ng_template_6_Template(rf, ctx) {
@@ -27319,7 +27436,7 @@
27319
27436
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(4, 6, flagType_r8, "name"), " ");
27320
27437
  }
27321
27438
  }
27322
- function SelectFlagTypeComponent_ng_container_0_div_11_div_5_Template(rf, ctx) {
27439
+ function SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template(rf, ctx) {
27323
27440
  if (rf & 1) {
27324
27441
  i0__namespace.ɵɵelementStart(0, "div", 23);
27325
27442
  i0__namespace.ɵɵelementStart(1, "span", 14);
@@ -27338,7 +27455,7 @@
27338
27455
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r10.flagTypeErrorMessage), " ");
27339
27456
  }
27340
27457
  }
27341
- function SelectFlagTypeComponent_ng_container_0_div_11_div_7_Template(rf, ctx) {
27458
+ function SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template(rf, ctx) {
27342
27459
  if (rf & 1) {
27343
27460
  i0__namespace.ɵɵelementStart(0, "div", 24);
27344
27461
  i0__namespace.ɵɵelement(1, "input", 25);
@@ -27357,7 +27474,7 @@
27357
27474
  }
27358
27475
  }
27359
27476
  var _c0$m = function (a0) { return { "form-group-error": a0 }; };
27360
- var _c1$6 = function (a0) { return { "govuk-input--error": a0 }; };
27477
+ var _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
27361
27478
  function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) {
27362
27479
  if (rf & 1) {
27363
27480
  i0__namespace.ɵɵelementStart(0, "div", 18);
@@ -27365,25 +27482,26 @@
27365
27482
  i0__namespace.ɵɵelementStart(2, "label", 19);
27366
27483
  i0__namespace.ɵɵtext(3);
27367
27484
  i0__namespace.ɵɵpipe(4, "rpxTranslate");
27485
+ i0__namespace.ɵɵpipe(5, "rpxTranslate");
27368
27486
  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);
27487
+ i0__namespace.ɵɵtemplate(6, SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template, 6, 6, "div", 20);
27488
+ i0__namespace.ɵɵelement(7, "input", 21);
27489
+ i0__namespace.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template, 5, 5, "div", 22);
27372
27490
  i0__namespace.ɵɵelementEnd();
27373
27491
  i0__namespace.ɵɵelementEnd();
27374
27492
  }
27375
27493
  if (rf & 2) {
27376
27494
  var ctx_r7 = i0__namespace.ɵɵnextContext(2);
27377
27495
  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"));
27496
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$m, ctx_r7.flagTypeErrorMessage.length > 0));
27381
27497
  i0__namespace.ɵɵadvance(2);
27498
+ 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), " ");
27499
+ i0__namespace.ɵɵadvance(3);
27382
27500
  i0__namespace.ɵɵproperty("ngIf", ctx_r7.flagTypeErrorMessage.length > 0);
27383
27501
  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);
27502
+ 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
27503
  i0__namespace.ɵɵadvance(1);
27386
- i0__namespace.ɵɵproperty("ngIf", !ctx_r7.isDisplayContextParameterExternal && !ctx_r7.isCaseLevelFlag);
27504
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r7.isDisplayContextParameterExternal && !ctx_r7.isCaseLevelFlag && ctx_r7.isDisplayContextParameter2Point1Enabled);
27387
27505
  }
27388
27506
  }
27389
27507
  function SelectFlagTypeComponent_ng_container_0_Template(rf, ctx) {
@@ -27393,14 +27511,14 @@
27393
27511
  i0__namespace.ɵɵelementStart(2, "fieldset", 4);
27394
27512
  i0__namespace.ɵɵelementStart(3, "legend", 5);
27395
27513
  i0__namespace.ɵɵelementStart(4, "h1", 6);
27396
- i0__namespace.ɵɵtemplate(5, SelectFlagTypeComponent_ng_container_0_ng_container_5_Template, 3, 3, "ng-container", 7);
27514
+ i0__namespace.ɵɵtemplate(5, SelectFlagTypeComponent_ng_container_0_ng_container_5_Template, 4, 5, "ng-container", 7);
27397
27515
  i0__namespace.ɵɵtemplate(6, SelectFlagTypeComponent_ng_container_0_ng_template_6_Template, 2, 4, "ng-template", null, 8, i0__namespace.ɵɵtemplateRefExtractor);
27398
27516
  i0__namespace.ɵɵelementEnd();
27399
27517
  i0__namespace.ɵɵelementEnd();
27400
27518
  i0__namespace.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_8_Template, 6, 6, "div", 9);
27401
27519
  i0__namespace.ɵɵelementStart(9, "div", 10);
27402
27520
  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);
27521
+ i0__namespace.ɵɵtemplate(11, SelectFlagTypeComponent_ng_container_0_div_11_Template, 9, 15, "div", 12);
27404
27522
  i0__namespace.ɵɵelementEnd();
27405
27523
  i0__namespace.ɵɵelementEnd();
27406
27524
  i0__namespace.ɵɵelementEnd();
@@ -27442,6 +27560,7 @@
27442
27560
  function SelectFlagTypeComponent(caseFlagRefdataService) {
27443
27561
  this.caseFlagRefdataService = caseFlagRefdataService;
27444
27562
  this.isDisplayContextParameterExternal = false;
27563
+ this.isDisplayContextParameter2Point1Enabled = false;
27445
27564
  this.caseFlagStateEmitter = new i0.EventEmitter();
27446
27565
  this.flagCommentsOptionalEmitter = new i0.EventEmitter();
27447
27566
  this.flagTypeNotSelectedErrorMessage = '';
@@ -27566,17 +27685,25 @@
27566
27685
  this.errorMessages = [];
27567
27686
  if (!this.selectedFlagType) {
27568
27687
  // 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;
27688
+ var errorMessage = '';
27689
+ if (this.cachedFlagType) {
27690
+ errorMessage = exports.SelectFlagTypeErrorMessage.FLAG_TYPE_OPTION_NOT_SELECTED;
27691
+ }
27692
+ else {
27693
+ errorMessage = this.isDisplayContextParameterExternal
27694
+ ? exports.SelectFlagTypeErrorMessage.FLAG_TYPE_NOT_SELECTED_EXTERNAL
27695
+ : exports.SelectFlagTypeErrorMessage.FLAG_TYPE_NOT_SELECTED;
27696
+ }
27572
27697
  this.flagTypeNotSelectedErrorMessage = errorMessage;
27573
27698
  this.errorMessages.push({ title: '', description: errorMessage, fieldId: 'conditional-radios-list' });
27574
27699
  }
27575
27700
  if (this.otherFlagTypeSelected) {
27576
27701
  var otherFlagTypeDescription = this.formGroup.get(exports.CaseFlagFormFields.OTHER_FLAG_DESCRIPTION).value;
27577
27702
  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' });
27703
+ this.flagTypeErrorMessage = this.isDisplayContextParameterExternal
27704
+ ? exports.SelectFlagTypeErrorMessage.FLAG_TYPE_NOT_ENTERED_EXTERNAL
27705
+ : exports.SelectFlagTypeErrorMessage.FLAG_TYPE_NOT_ENTERED;
27706
+ this.errorMessages.push({ title: '', description: "" + this.flagTypeErrorMessage, fieldId: 'other-flag-type-description' });
27580
27707
  }
27581
27708
  if (otherFlagTypeDescription.length > this.maxCharactersForOtherFlagType) {
27582
27709
  this.flagTypeErrorMessage = exports.SelectFlagTypeErrorMessage.FLAG_TYPE_LIMIT_EXCEEDED;
@@ -27610,7 +27737,7 @@
27610
27737
  return SelectFlagTypeComponent;
27611
27738
  }());
27612
27739
  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) {
27740
+ 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
27741
  if (rf & 1) {
27615
27742
  i0__namespace.ɵɵtemplate(0, SelectFlagTypeComponent_ng_container_0_Template, 12, 10, "ng-container", 0);
27616
27743
  i0__namespace.ɵɵtemplate(1, SelectFlagTypeComponent_div_1_Template, 4, 3, "div", 1);
@@ -27639,6 +27766,8 @@
27639
27766
  type: i0.Input
27640
27767
  }], isDisplayContextParameterExternal: [{
27641
27768
  type: i0.Input
27769
+ }], isDisplayContextParameter2Point1Enabled: [{
27770
+ type: i0.Input
27642
27771
  }], selectedFlagsLocation: [{
27643
27772
  type: i0.Input
27644
27773
  }], caseFlagStateEmitter: [{
@@ -27650,7 +27779,7 @@
27650
27779
 
27651
27780
  function UpdateFlagComponent_div_7_Template(rf, ctx) {
27652
27781
  if (rf & 1) {
27653
- i0__namespace.ɵɵelementStart(0, "div", 8);
27782
+ i0__namespace.ɵɵelementStart(0, "div", 17);
27654
27783
  i0__namespace.ɵɵtext(1);
27655
27784
  i0__namespace.ɵɵpipe(2, "updateFlagTitleDisplay");
27656
27785
  i0__namespace.ɵɵelementEnd();
@@ -27661,14 +27790,27 @@
27661
27790
  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
27791
  }
27663
27792
  }
27664
- function UpdateFlagComponent_div_16_Template(rf, ctx) {
27793
+ function UpdateFlagComponent_div_13_Template(rf, ctx) {
27665
27794
  if (rf & 1) {
27666
27795
  i0__namespace.ɵɵelementStart(0, "div", 18);
27667
- i0__namespace.ɵɵelementStart(1, "span", 19);
27796
+ i0__namespace.ɵɵtext(1);
27797
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
27798
+ i0__namespace.ɵɵelementEnd();
27799
+ }
27800
+ if (rf & 2) {
27801
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
27802
+ i0__namespace.ɵɵadvance(1);
27803
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r1.updateFlagStepEnum.COMMENT_HINT_TEXT_EXTERNAL), " ");
27804
+ }
27805
+ }
27806
+ function UpdateFlagComponent_ng_container_14_div_5_Template(rf, ctx) {
27807
+ if (rf & 1) {
27808
+ i0__namespace.ɵɵelementStart(0, "div", 25);
27809
+ i0__namespace.ɵɵelementStart(1, "span", 26);
27668
27810
  i0__namespace.ɵɵtext(2, "!");
27669
27811
  i0__namespace.ɵɵelementEnd();
27670
- i0__namespace.ɵɵelementStart(3, "strong", 20);
27671
- i0__namespace.ɵɵelementStart(4, "span", 21);
27812
+ i0__namespace.ɵɵelementStart(3, "strong", 27);
27813
+ i0__namespace.ɵɵelementStart(4, "span", 28);
27672
27814
  i0__namespace.ɵɵtext(5);
27673
27815
  i0__namespace.ɵɵpipe(6, "rpxTranslate");
27674
27816
  i0__namespace.ɵɵelementEnd();
@@ -27678,17 +27820,17 @@
27678
27820
  i0__namespace.ɵɵelementEnd();
27679
27821
  }
27680
27822
  if (rf & 2) {
27681
- var ctx_r1 = i0__namespace.ɵɵnextContext();
27823
+ var ctx_r10 = i0__namespace.ɵɵnextContext(2);
27682
27824
  i0__namespace.ɵɵadvance(5);
27683
27825
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(6, 2, "Warning"));
27684
27826
  i0__namespace.ɵɵadvance(2);
27685
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(8, 4, ctx_r1.updateFlagStepEnum.WARNING_TEXT), " ");
27827
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(8, 4, ctx_r10.updateFlagStepEnum.WARNING_TEXT), " ");
27686
27828
  }
27687
27829
  }
27688
- function UpdateFlagComponent_div_17_Template(rf, ctx) {
27830
+ function UpdateFlagComponent_ng_container_14_div_6_Template(rf, ctx) {
27689
27831
  if (rf & 1) {
27690
- i0__namespace.ɵɵelementStart(0, "div", 22);
27691
- i0__namespace.ɵɵelementStart(1, "span", 23);
27832
+ i0__namespace.ɵɵelementStart(0, "div", 29);
27833
+ i0__namespace.ɵɵelementStart(1, "span", 30);
27692
27834
  i0__namespace.ɵɵtext(2);
27693
27835
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
27694
27836
  i0__namespace.ɵɵelementEnd();
@@ -27697,17 +27839,17 @@
27697
27839
  i0__namespace.ɵɵelementEnd();
27698
27840
  }
27699
27841
  if (rf & 2) {
27700
- var ctx_r2 = i0__namespace.ɵɵnextContext();
27842
+ var ctx_r11 = i0__namespace.ɵɵnextContext(2);
27701
27843
  i0__namespace.ɵɵadvance(2);
27702
27844
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
27703
27845
  i0__namespace.ɵɵadvance(2);
27704
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r2.updateFlagNotEnteredErrorMessage), " ");
27846
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r11.commentsNotEnteredErrorMessage), " ");
27705
27847
  }
27706
27848
  }
27707
- function UpdateFlagComponent_div_18_Template(rf, ctx) {
27849
+ function UpdateFlagComponent_ng_container_14_div_7_Template(rf, ctx) {
27708
27850
  if (rf & 1) {
27709
- i0__namespace.ɵɵelementStart(0, "div", 24);
27710
- i0__namespace.ɵɵelementStart(1, "span", 23);
27851
+ i0__namespace.ɵɵelementStart(0, "div", 31);
27852
+ i0__namespace.ɵɵelementStart(1, "span", 30);
27711
27853
  i0__namespace.ɵɵtext(2);
27712
27854
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
27713
27855
  i0__namespace.ɵɵelementEnd();
@@ -27716,38 +27858,80 @@
27716
27858
  i0__namespace.ɵɵelementEnd();
27717
27859
  }
27718
27860
  if (rf & 2) {
27719
- var ctx_r3 = i0__namespace.ɵɵnextContext();
27861
+ var ctx_r12 = i0__namespace.ɵɵnextContext(2);
27720
27862
  i0__namespace.ɵɵadvance(2);
27721
27863
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
27722
27864
  i0__namespace.ɵɵadvance(2);
27723
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r3.updateFlagCharLimitErrorMessage), " ");
27865
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r12.commentsCharLimitErrorMessage), " ");
27724
27866
  }
27725
27867
  }
27726
- function UpdateFlagComponent_div_24_div_8_Template(rf, ctx) {
27868
+ function UpdateFlagComponent_ng_container_14_Template(rf, ctx) {
27727
27869
  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);
27870
+ i0__namespace.ɵɵelementContainerStart(0);
27871
+ i0__namespace.ɵɵelementStart(1, "div", 19);
27872
+ i0__namespace.ɵɵtext(2);
27873
+ i0__namespace.ɵɵpipe(3, "rpxTranslate");
27732
27874
  i0__namespace.ɵɵpipe(4, "rpxTranslate");
27733
27875
  i0__namespace.ɵɵelementEnd();
27876
+ i0__namespace.ɵɵtemplate(5, UpdateFlagComponent_ng_container_14_div_5_Template, 9, 6, "div", 20);
27877
+ i0__namespace.ɵɵtemplate(6, UpdateFlagComponent_ng_container_14_div_6_Template, 6, 6, "div", 21);
27878
+ i0__namespace.ɵɵtemplate(7, UpdateFlagComponent_ng_container_14_div_7_Template, 6, 6, "div", 22);
27879
+ i0__namespace.ɵɵelementStart(8, "textarea", 23);
27880
+ i0__namespace.ɵɵtext(9, " ");
27881
+ i0__namespace.ɵɵelementEnd();
27882
+ i0__namespace.ɵɵelementStart(10, "div", 24);
27883
+ i0__namespace.ɵɵtext(11);
27884
+ i0__namespace.ɵɵpipe(12, "rpxTranslate");
27734
27885
  i0__namespace.ɵɵelementEnd();
27886
+ i0__namespace.ɵɵelementContainerEnd();
27735
27887
  }
27736
27888
  if (rf & 2) {
27737
- var status_r9 = ctx.$implicit;
27738
- var ctx_r6 = i0__namespace.ɵɵnextContext(2);
27889
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
27890
+ i0__namespace.ɵɵadvance(2);
27891
+ 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), " ");
27892
+ i0__namespace.ɵɵadvance(3);
27893
+ i0__namespace.ɵɵproperty("ngIf", ctx_r2.internalUser2Point1EnabledUpdate);
27739
27894
  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);
27895
+ i0__namespace.ɵɵproperty("ngIf", ctx_r2.commentsNotEnteredErrorMessage);
27741
27896
  i0__namespace.ɵɵadvance(1);
27742
- i0__namespace.ɵɵproperty("for", ctx_r6.caseFlagFormFields.STATUS + "_" + status_r9);
27897
+ i0__namespace.ɵɵproperty("ngIf", ctx_r2.commentsCharLimitErrorMessage);
27743
27898
  i0__namespace.ɵɵadvance(1);
27744
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 6, ctx_r6.caseFlagStatusEnum[status_r9]), " ");
27899
+ i0__namespace.ɵɵproperty("id", ctx_r2.caseFlagFormFields.COMMENTS)("name", ctx_r2.caseFlagFormFields.COMMENTS)("formControlName", ctx_r2.caseFlagFormFields.COMMENTS);
27900
+ i0__namespace.ɵɵadvance(3);
27901
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(12, 12, ctx_r2.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
27745
27902
  }
27746
27903
  }
27747
- function UpdateFlagComponent_div_24_div_12_Template(rf, ctx) {
27904
+ function UpdateFlagComponent_ng_template_15_ng_container_0_ng_container_1_Template(rf, ctx) {
27748
27905
  if (rf & 1) {
27749
- i0__namespace.ɵɵelementStart(0, "div", 39);
27750
- i0__namespace.ɵɵelementStart(1, "span", 23);
27906
+ i0__namespace.ɵɵelementContainer(0);
27907
+ }
27908
+ }
27909
+ function UpdateFlagComponent_ng_template_15_ng_container_0_Template(rf, ctx) {
27910
+ if (rf & 1) {
27911
+ i0__namespace.ɵɵelementContainerStart(0);
27912
+ i0__namespace.ɵɵtemplate(1, UpdateFlagComponent_ng_template_15_ng_container_0_ng_container_1_Template, 1, 0, "ng-container", 33);
27913
+ i0__namespace.ɵɵelementContainerEnd();
27914
+ }
27915
+ if (rf & 2) {
27916
+ i0__namespace.ɵɵnextContext(2);
27917
+ var _r5 = i0__namespace.ɵɵreference(18);
27918
+ i0__namespace.ɵɵadvance(1);
27919
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r5);
27920
+ }
27921
+ }
27922
+ function UpdateFlagComponent_ng_template_15_Template(rf, ctx) {
27923
+ if (rf & 1) {
27924
+ i0__namespace.ɵɵtemplate(0, UpdateFlagComponent_ng_template_15_ng_container_0_Template, 2, 1, "ng-container", 32);
27925
+ }
27926
+ if (rf & 2) {
27927
+ var ctx_r4 = i0__namespace.ɵɵnextContext();
27928
+ i0__namespace.ɵɵproperty("ngIf", ctx_r4.externalUserUpdate);
27929
+ }
27930
+ }
27931
+ function UpdateFlagComponent_ng_template_17_div_0_Template(rf, ctx) {
27932
+ if (rf & 1) {
27933
+ i0__namespace.ɵɵelementStart(0, "div", 38);
27934
+ i0__namespace.ɵɵelementStart(1, "span", 30);
27751
27935
  i0__namespace.ɵɵtext(2);
27752
27936
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
27753
27937
  i0__namespace.ɵɵelementEnd();
@@ -27756,17 +27940,17 @@
27756
27940
  i0__namespace.ɵɵelementEnd();
27757
27941
  }
27758
27942
  if (rf & 2) {
27759
- var ctx_r7 = i0__namespace.ɵɵnextContext(2);
27943
+ var ctx_r15 = i0__namespace.ɵɵnextContext(2);
27760
27944
  i0__namespace.ɵɵadvance(2);
27761
27945
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
27762
27946
  i0__namespace.ɵɵadvance(2);
27763
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r7.statusReasonNotEnteredErrorMessage), " ");
27947
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r15.statusReasonNotEnteredErrorMessage), " ");
27764
27948
  }
27765
27949
  }
27766
- function UpdateFlagComponent_div_24_div_13_Template(rf, ctx) {
27950
+ function UpdateFlagComponent_ng_template_17_div_1_Template(rf, ctx) {
27767
27951
  if (rf & 1) {
27768
- i0__namespace.ɵɵelementStart(0, "div", 40);
27769
- i0__namespace.ɵɵelementStart(1, "span", 23);
27952
+ i0__namespace.ɵɵelementStart(0, "div", 39);
27953
+ i0__namespace.ɵɵelementStart(1, "span", 30);
27770
27954
  i0__namespace.ɵɵtext(2);
27771
27955
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
27772
27956
  i0__namespace.ɵɵelementEnd();
@@ -27775,70 +27959,106 @@
27775
27959
  i0__namespace.ɵɵelementEnd();
27776
27960
  }
27777
27961
  if (rf & 2) {
27778
- var ctx_r8 = i0__namespace.ɵɵnextContext(2);
27962
+ var ctx_r16 = i0__namespace.ɵɵnextContext(2);
27779
27963
  i0__namespace.ɵɵadvance(2);
27780
27964
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
27781
27965
  i0__namespace.ɵɵadvance(2);
27782
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r8.statusReasonCharLimitErrorMessage), " ");
27966
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r16.statusReasonCharLimitErrorMessage), " ");
27783
27967
  }
27784
27968
  }
27785
- function UpdateFlagComponent_div_24_Template(rf, ctx) {
27969
+ function UpdateFlagComponent_ng_template_17_Template(rf, ctx) {
27786
27970
  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);
27971
+ i0__namespace.ɵɵtemplate(0, UpdateFlagComponent_ng_template_17_div_0_Template, 6, 6, "div", 34);
27972
+ i0__namespace.ɵɵtemplate(1, UpdateFlagComponent_ng_template_17_div_1_Template, 6, 6, "div", 35);
27973
+ i0__namespace.ɵɵelementStart(2, "textarea", 36);
27974
+ i0__namespace.ɵɵtext(3, " ");
27975
+ i0__namespace.ɵɵelementEnd();
27976
+ i0__namespace.ɵɵelementStart(4, "div", 37);
27977
+ i0__namespace.ɵɵtext(5);
27978
+ i0__namespace.ɵɵpipe(6, "rpxTranslate");
27979
+ i0__namespace.ɵɵelementEnd();
27980
+ }
27981
+ if (rf & 2) {
27982
+ var ctx_r6 = i0__namespace.ɵɵnextContext();
27983
+ i0__namespace.ɵɵproperty("ngIf", ctx_r6.statusReasonNotEnteredErrorMessage);
27984
+ i0__namespace.ɵɵadvance(1);
27985
+ i0__namespace.ɵɵproperty("ngIf", ctx_r6.statusReasonCharLimitErrorMessage);
27986
+ i0__namespace.ɵɵadvance(1);
27987
+ i0__namespace.ɵɵproperty("id", ctx_r6.caseFlagFormFields.STATUS_CHANGE_REASON)("name", ctx_r6.caseFlagFormFields.STATUS_CHANGE_REASON)("formControlName", ctx_r6.caseFlagFormFields.STATUS_CHANGE_REASON);
27988
+ i0__namespace.ɵɵadvance(3);
27989
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 6, ctx_r6.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
27990
+ }
27991
+ }
27992
+ function UpdateFlagComponent_div_19_div_8_Template(rf, ctx) {
27993
+ if (rf & 1) {
27994
+ i0__namespace.ɵɵelementStart(0, "div", 47);
27995
+ i0__namespace.ɵɵelement(1, "input", 48);
27996
+ i0__namespace.ɵɵelementStart(2, "label", 49);
27997
+ i0__namespace.ɵɵtext(3);
27998
+ i0__namespace.ɵɵpipe(4, "rpxTranslate");
27999
+ i0__namespace.ɵɵelementEnd();
28000
+ i0__namespace.ɵɵelementEnd();
28001
+ }
28002
+ if (rf & 2) {
28003
+ var status_r19 = ctx.$implicit;
28004
+ var ctx_r17 = i0__namespace.ɵɵnextContext(2);
28005
+ i0__namespace.ɵɵadvance(1);
28006
+ i0__namespace.ɵɵproperty("id", ctx_r17.caseFlagFormFields.STATUS + "_" + status_r19)("name", ctx_r17.caseFlagFormFields.STATUS)("formControlName", ctx_r17.caseFlagFormFields.STATUS)("value", status_r19);
28007
+ i0__namespace.ɵɵadvance(1);
28008
+ i0__namespace.ɵɵproperty("for", ctx_r17.caseFlagFormFields.STATUS + "_" + status_r19);
28009
+ i0__namespace.ɵɵadvance(1);
28010
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 6, ctx_r17.caseFlagStatusEnum[status_r19]), " ");
28011
+ }
28012
+ }
28013
+ function UpdateFlagComponent_div_19_ng_container_12_Template(rf, ctx) {
28014
+ if (rf & 1) {
28015
+ i0__namespace.ɵɵelementContainer(0);
28016
+ }
28017
+ }
28018
+ function UpdateFlagComponent_div_19_Template(rf, ctx) {
28019
+ if (rf & 1) {
28020
+ i0__namespace.ɵɵelementStart(0, "div", 40);
28021
+ i0__namespace.ɵɵelementStart(1, "fieldset", 41);
28022
+ i0__namespace.ɵɵelementStart(2, "legend", 42);
28023
+ i0__namespace.ɵɵelementStart(3, "h1", 43);
27791
28024
  i0__namespace.ɵɵtext(4);
27792
28025
  i0__namespace.ɵɵpipe(5, "rpxTranslate");
27793
28026
  i0__namespace.ɵɵpipe(6, "rpxTranslate");
27794
28027
  i0__namespace.ɵɵelementEnd();
27795
28028
  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);
28029
+ i0__namespace.ɵɵelementStart(7, "div", 44);
28030
+ i0__namespace.ɵɵtemplate(8, UpdateFlagComponent_div_19_div_8_Template, 5, 8, "div", 45);
27798
28031
  i0__namespace.ɵɵelementEnd();
27799
28032
  i0__namespace.ɵɵelementEnd();
27800
- i0__namespace.ɵɵelementStart(9, "div", 31);
28033
+ i0__namespace.ɵɵelementStart(9, "div", 46);
27801
28034
  i0__namespace.ɵɵtext(10);
27802
28035
  i0__namespace.ɵɵpipe(11, "rpxTranslate");
27803
28036
  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();
28037
+ i0__namespace.ɵɵtemplate(12, UpdateFlagComponent_div_19_ng_container_12_Template, 1, 0, "ng-container", 33);
27813
28038
  i0__namespace.ɵɵelementEnd();
27814
28039
  }
27815
28040
  if (rf & 2) {
27816
- var ctx_r4 = i0__namespace.ɵɵnextContext();
28041
+ var ctx_r7 = i0__namespace.ɵɵnextContext();
28042
+ var _r5 = i0__namespace.ɵɵreference(18);
27817
28043
  i0__namespace.ɵɵadvance(4);
27818
- i0__namespace.ɵɵtextInterpolate2(" ", i0__namespace.ɵɵpipeBind1(5, 11, ctx_r4.updateFlagTitle), " ", i0__namespace.ɵɵpipeBind1(6, 13, "status"), " ");
28044
+ i0__namespace.ɵɵtextInterpolate2(" ", i0__namespace.ɵɵpipeBind1(5, 6, ctx_r7.updateFlagTitle), " ", i0__namespace.ɵɵpipeBind1(6, 8, "status"), " ");
27819
28045
  i0__namespace.ɵɵadvance(3);
27820
- i0__namespace.ɵɵproperty("id", ctx_r4.caseFlagFormFields.STATUS);
28046
+ i0__namespace.ɵɵproperty("id", ctx_r7.caseFlagFormFields.STATUS);
27821
28047
  i0__namespace.ɵɵadvance(1);
27822
- i0__namespace.ɵɵproperty("ngForOf", ctx_r4.validStatusProgressions);
28048
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r7.validStatusProgressions);
27823
28049
  i0__namespace.ɵɵadvance(2);
27824
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(11, 15, ctx_r4.updateFlagStepEnum.STATUS_HINT_TEXT), " ");
28050
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(11, 10, ctx_r7.updateFlagStepEnum.STATUS_HINT_TEXT), " ");
27825
28051
  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), " ");
28052
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r5);
27833
28053
  }
27834
28054
  }
27835
- function UpdateFlagComponent_div_25_Template(rf, ctx) {
28055
+ function UpdateFlagComponent_div_20_Template(rf, ctx) {
27836
28056
  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);
28057
+ i0__namespace.ɵɵelementStart(0, "div", 50);
28058
+ i0__namespace.ɵɵelementStart(1, "div", 51);
28059
+ i0__namespace.ɵɵelementStart(2, "div", 52);
28060
+ i0__namespace.ɵɵelement(3, "input", 53);
28061
+ i0__namespace.ɵɵelementStart(4, "label", 54);
27842
28062
  i0__namespace.ɵɵtext(5);
27843
28063
  i0__namespace.ɵɵpipe(6, "rpxTranslate");
27844
28064
  i0__namespace.ɵɵelementEnd();
@@ -27847,24 +28067,71 @@
27847
28067
  i0__namespace.ɵɵelementEnd();
27848
28068
  }
27849
28069
  if (rf & 2) {
27850
- var ctx_r5 = i0__namespace.ɵɵnextContext();
28070
+ var ctx_r8 = i0__namespace.ɵɵnextContext();
27851
28071
  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);
28072
+ 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
28073
  i0__namespace.ɵɵadvance(1);
27854
- i0__namespace.ɵɵproperty("for", ctx_r5.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
28074
+ i0__namespace.ɵɵproperty("for", ctx_r8.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
27855
28075
  i0__namespace.ɵɵadvance(1);
27856
28076
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 5, "I need to add a translation"), " ");
27857
28077
  }
27858
28078
  }
27859
- var _c0$l = function (a0) { return { "form-group-error": a0 }; };
28079
+ function UpdateFlagComponent_div_21_button_10_Template(rf, ctx) {
28080
+ if (rf & 1) {
28081
+ var _r22_1 = i0__namespace.ɵɵgetCurrentView();
28082
+ i0__namespace.ɵɵelementStart(0, "button", 59);
28083
+ 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(); });
28084
+ i0__namespace.ɵɵtext(1);
28085
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
28086
+ i0__namespace.ɵɵelementEnd();
28087
+ }
28088
+ if (rf & 2) {
28089
+ i0__namespace.ɵɵadvance(1);
28090
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, "Make inactive"), " ");
28091
+ }
28092
+ }
28093
+ var _c0$l = function (a0) { return { "govuk-tag--grey": a0 }; };
28094
+ function UpdateFlagComponent_div_21_Template(rf, ctx) {
28095
+ if (rf & 1) {
28096
+ i0__namespace.ɵɵelementStart(0, "div", 55);
28097
+ i0__namespace.ɵɵelementStart(1, "div", 56);
28098
+ i0__namespace.ɵɵelementStart(2, "p");
28099
+ i0__namespace.ɵɵtext(3);
28100
+ i0__namespace.ɵɵpipe(4, "rpxTranslate");
28101
+ i0__namespace.ɵɵelementStart(5, "span");
28102
+ i0__namespace.ɵɵelementStart(6, "strong", 57);
28103
+ i0__namespace.ɵɵtext(7);
28104
+ i0__namespace.ɵɵpipe(8, "rpxTranslate");
28105
+ i0__namespace.ɵɵelementEnd();
28106
+ i0__namespace.ɵɵelementEnd();
28107
+ i0__namespace.ɵɵelementEnd();
28108
+ i0__namespace.ɵɵelementEnd();
28109
+ i0__namespace.ɵɵelementStart(9, "div", 56);
28110
+ i0__namespace.ɵɵtemplate(10, UpdateFlagComponent_div_21_button_10_Template, 3, 3, "button", 58);
28111
+ i0__namespace.ɵɵelementEnd();
28112
+ i0__namespace.ɵɵelementEnd();
28113
+ }
28114
+ if (rf & 2) {
28115
+ var ctx_r9 = i0__namespace.ɵɵnextContext();
28116
+ i0__namespace.ɵɵadvance(3);
28117
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(4, 4, "Flag status:"), " ");
28118
+ i0__namespace.ɵɵadvance(3);
28119
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$l, ctx_r9.selectedFlag.flagDetailDisplay.flagDetail.status === "Inactive"));
28120
+ i0__namespace.ɵɵadvance(1);
28121
+ 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), " ");
28122
+ i0__namespace.ɵɵadvance(3);
28123
+ i0__namespace.ɵɵproperty("ngIf", ctx_r9.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
28124
+ }
28125
+ }
28126
+ var _c1$6 = function (a0) { return { "form-group-error": a0 }; };
27860
28127
  var UpdateFlagComponent = /** @class */ (function () {
27861
28128
  function UpdateFlagComponent(rpxTranslationService) {
27862
28129
  this.rpxTranslationService = rpxTranslationService;
27863
28130
  this.caseFlagStateEmitter = new i0.EventEmitter();
27864
28131
  this.updateFlagTitle = '';
27865
28132
  this.errorMessages = [];
27866
- this.updateFlagNotEnteredErrorMessage = null;
27867
- this.updateFlagCharLimitErrorMessage = null;
28133
+ this.commentsNotEnteredErrorMessage = null;
28134
+ this.commentsCharLimitErrorMessage = null;
27868
28135
  this.statusReasonNotEnteredErrorMessage = null;
27869
28136
  this.statusReasonCharLimitErrorMessage = null;
27870
28137
  this.updateFlagStepEnum = exports.UpdateFlagStep;
@@ -27873,10 +28140,17 @@
27873
28140
  this.textMaxCharLimit = 200;
27874
28141
  this.selectedManageCaseLocation = 'selectedManageCaseLocation';
27875
28142
  this.caseFlagDisplayContextParameter = exports.CaseFlagDisplayContextParameter;
28143
+ this.externalUserUpdate = false;
28144
+ this.internalUserUpdate = false;
28145
+ this.internalUser2Point1EnabledUpdate = false;
27876
28146
  }
27877
28147
  UpdateFlagComponent.prototype.ngOnInit = function () {
27878
28148
  var _this = this;
27879
28149
  var _a, _b;
28150
+ // Set whether this is an external, internal, or internal Case Flags v2.1 enabled user update
28151
+ this.externalUserUpdate = this.displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL;
28152
+ this.internalUserUpdate = this.displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE;
28153
+ this.internalUser2Point1EnabledUpdate = this.displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_2_POINT_1;
27880
28154
  this.selectedFlag = this.formGroup.get(this.selectedManageCaseLocation).value;
27881
28155
  if ((_b = (_a = this.selectedFlag) === null || _a === void 0 ? void 0 : _a.flagDetailDisplay) === null || _b === void 0 ? void 0 : _b.flagDetail) {
27882
28156
  this.flagDetail = this.selectedFlag.flagDetailDisplay.flagDetail;
@@ -27893,7 +28167,8 @@
27893
28167
  }
27894
28168
  this.formGroup.addControl(exports.CaseFlagFormFields.COMMENTS, new i3.FormControl(existingComments));
27895
28169
  this.formGroup.addControl(exports.CaseFlagFormFields.STATUS, new i3.FormControl(currentFlagStatusKey));
27896
- this.formGroup.addControl(exports.CaseFlagFormFields.STATUS_CHANGE_REASON, new i3.FormControl(''));
28170
+ // Populate status reason only if the user is not external
28171
+ this.formGroup.addControl(exports.CaseFlagFormFields.STATUS_CHANGE_REASON, new i3.FormControl(this.externalUserUpdate ? '' : this.flagDetail.flagUpdateComment));
27897
28172
  this.formGroup.addControl(exports.CaseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED, new i3.FormControl(false));
27898
28173
  this.updateFlagTitle = this.setUpdateCaseFlagTitle(this.flagDetail);
27899
28174
  // Set the valid status options for display, based on current status of the selected flag. "Active" flags can
@@ -27916,12 +28191,14 @@
27916
28191
  UpdateFlagComponent.prototype.setUpdateCaseFlagTitle = function (flagDetail) {
27917
28192
  switch (this.displayContextParameter) {
27918
28193
  case exports.CaseFlagDisplayContextParameter.UPDATE:
28194
+ case exports.CaseFlagDisplayContextParameter.UPDATE_2_POINT_1:
27919
28195
  if (flagDetail === null || flagDetail === void 0 ? void 0 : flagDetail.name) {
27920
- return exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \"" + flagDetail.name + (flagDetail.subTypeValue ? ", " + flagDetail.subTypeValue + "\"" : '"');
28196
+ var subTypeValue = flagDetail.subTypeValue ? ", " + flagDetail.subTypeValue : '';
28197
+ return exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \"" + flagDetail.name + subTypeValue + "\"";
27921
28198
  }
27922
28199
  return "" + exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE;
27923
28200
  case exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL:
27924
- return exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE_SUPPORT;
28201
+ return exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE_EXTERNAL;
27925
28202
  default:
27926
28203
  return exports.CaseFlagWizardStepTitle.NONE;
27927
28204
  }
@@ -27929,6 +28206,10 @@
27929
28206
  UpdateFlagComponent.prototype.onNext = function () {
27930
28207
  // Validate flag comments and status reason entry
27931
28208
  this.validateTextEntry();
28209
+ // Set selected flag status to "Inactive" if update is by external user
28210
+ if (this.externalUserUpdate) {
28211
+ this.formGroup.get(exports.CaseFlagFormFields.STATUS).setValue(Object.keys(exports.CaseFlagStatus)[2]);
28212
+ }
27932
28213
  // Return case flag field state, error messages, and selected flag detail to the parent. The selected flag must be
27933
28214
  // re-emitted because the parent component repopulates this on handling this EventEmitter
27934
28215
  this.caseFlagStateEmitter.emit({
@@ -27938,9 +28219,14 @@
27938
28219
  });
27939
28220
  window.scrollTo(0, 0);
27940
28221
  };
28222
+ UpdateFlagComponent.prototype.onMakeInactive = function () {
28223
+ // Set selected flag status to "Inactive" on screen and in the FormGroup
28224
+ this.selectedFlag.flagDetailDisplay.flagDetail.status = exports.CaseFlagStatus.INACTIVE;
28225
+ this.formGroup.get(exports.CaseFlagFormFields.STATUS).setValue(Object.keys(exports.CaseFlagStatus)[2]);
28226
+ };
27941
28227
  UpdateFlagComponent.prototype.validateTextEntry = function () {
27942
- this.updateFlagNotEnteredErrorMessage = null;
27943
- this.updateFlagCharLimitErrorMessage = null;
28228
+ this.commentsNotEnteredErrorMessage = null;
28229
+ this.commentsCharLimitErrorMessage = null;
27944
28230
  this.statusReasonNotEnteredErrorMessage = null;
27945
28231
  this.statusReasonCharLimitErrorMessage = null;
27946
28232
  this.errorMessages = [];
@@ -27948,15 +28234,17 @@
27948
28234
  // is no existing comment then one is not required for validation to pass
27949
28235
  var comment = this.formGroup.get(exports.CaseFlagFormFields.COMMENTS).value;
27950
28236
  if (!comment && (this.flagDetail.flagComment || this.flagDetail.flagComment_cy)) {
27951
- this.updateFlagNotEnteredErrorMessage = exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED;
28237
+ this.commentsNotEnteredErrorMessage = !this.displayContextParameter
28238
+ ? exports.UpdateFlagErrorMessage.NONE
28239
+ : exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED;
27952
28240
  this.errorMessages.push({
27953
28241
  title: '',
27954
- description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED,
28242
+ description: this.commentsNotEnteredErrorMessage,
27955
28243
  fieldId: exports.CaseFlagFormFields.COMMENTS
27956
28244
  });
27957
28245
  }
27958
28246
  if (comment && comment.length > this.textMaxCharLimit) {
27959
- this.updateFlagCharLimitErrorMessage = exports.UpdateFlagErrorMessage.FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED;
28247
+ this.commentsCharLimitErrorMessage = exports.UpdateFlagErrorMessage.FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED;
27960
28248
  this.errorMessages.push({
27961
28249
  title: '',
27962
28250
  description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED,
@@ -27965,6 +28253,7 @@
27965
28253
  }
27966
28254
  var statusReason = this.formGroup.get(exports.CaseFlagFormFields.STATUS_CHANGE_REASON).value;
27967
28255
  var flagStatusNotApprovedKey = Object.keys(exports.CaseFlagStatus).find(function (key) { return exports.CaseFlagStatus[key] === exports.CaseFlagStatus.NOT_APPROVED; });
28256
+ // Status reason is mandatory if flag status is "Not approved" or user is external
27968
28257
  if (this.formGroup.get(exports.CaseFlagFormFields.STATUS).value === flagStatusNotApprovedKey && !statusReason) {
27969
28258
  this.statusReasonNotEnteredErrorMessage = exports.UpdateFlagErrorMessage.STATUS_REASON_NOT_ENTERED;
27970
28259
  this.errorMessages.push({
@@ -27973,6 +28262,14 @@
27973
28262
  fieldId: exports.CaseFlagFormFields.STATUS_CHANGE_REASON
27974
28263
  });
27975
28264
  }
28265
+ if (this.externalUserUpdate && !statusReason) {
28266
+ this.statusReasonNotEnteredErrorMessage = exports.UpdateFlagErrorMessage.STATUS_REASON_NOT_ENTERED_EXTERNAL;
28267
+ this.errorMessages.push({
28268
+ title: '',
28269
+ description: exports.UpdateFlagErrorMessage.STATUS_REASON_NOT_ENTERED_EXTERNAL,
28270
+ fieldId: exports.CaseFlagFormFields.STATUS_CHANGE_REASON
28271
+ });
28272
+ }
27976
28273
  if (statusReason && statusReason.length > this.textMaxCharLimit) {
27977
28274
  this.statusReasonCharLimitErrorMessage = exports.UpdateFlagErrorMessage.STATUS_REASON_CHAR_LIMIT_EXCEEDED;
27978
28275
  this.errorMessages.push({
@@ -27985,7 +28282,7 @@
27985
28282
  return UpdateFlagComponent;
27986
28283
  }());
27987
28284
  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) {
28285
+ 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
28286
  if (rf & 1) {
27990
28287
  i0__namespace.ɵɵelementContainerStart(0, 0);
27991
28288
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -28003,64 +28300,50 @@
28003
28300
  i0__namespace.ɵɵpipe(11, "rpxTranslate");
28004
28301
  i0__namespace.ɵɵpipe(12, "rpxTranslate");
28005
28302
  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, " ");
28303
+ i0__namespace.ɵɵtemplate(13, UpdateFlagComponent_div_13_Template, 3, 3, "div", 8);
28304
+ i0__namespace.ɵɵtemplate(14, UpdateFlagComponent_ng_container_14_Template, 13, 14, "ng-container", 9);
28305
+ i0__namespace.ɵɵtemplate(15, UpdateFlagComponent_ng_template_15_Template, 1, 1, "ng-template", null, 10, i0__namespace.ɵɵtemplateRefExtractor);
28015
28306
  i0__namespace.ɵɵelementEnd();
28016
- i0__namespace.ɵɵelementStart(21, "div", 13);
28017
- i0__namespace.ɵɵtext(22);
28018
- i0__namespace.ɵɵpipe(23, "rpxTranslate");
28019
- 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);
28307
+ i0__namespace.ɵɵtemplate(17, UpdateFlagComponent_ng_template_17_Template, 7, 8, "ng-template", null, 11, i0__namespace.ɵɵtemplateRefExtractor);
28308
+ i0__namespace.ɵɵtemplate(19, UpdateFlagComponent_div_19_Template, 13, 12, "div", 12);
28309
+ i0__namespace.ɵɵtemplate(20, UpdateFlagComponent_div_20_Template, 7, 7, "div", 13);
28310
+ i0__namespace.ɵɵtemplate(21, UpdateFlagComponent_div_21_Template, 11, 10, "div", 14);
28023
28311
  i0__namespace.ɵɵelementEnd();
28024
28312
  i0__namespace.ɵɵelementEnd();
28025
28313
  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");
28314
+ i0__namespace.ɵɵelementStart(22, "div", 15);
28315
+ i0__namespace.ɵɵelementStart(23, "button", 16);
28316
+ i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_23_listener() { return ctx.onNext(); });
28317
+ i0__namespace.ɵɵtext(24);
28318
+ i0__namespace.ɵɵpipe(25, "rpxTranslate");
28031
28319
  i0__namespace.ɵɵelementEnd();
28032
28320
  i0__namespace.ɵɵelementEnd();
28033
28321
  }
28034
28322
  if (rf & 2) {
28323
+ var _r3 = i0__namespace.ɵɵreference(16);
28035
28324
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
28036
28325
  i0__namespace.ɵɵadvance(2);
28037
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(30, _c0$l, ctx.errorMessages.length > 0));
28326
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(22, _c1$6, ctx.errorMessages.length > 0));
28038
28327
  i0__namespace.ɵɵadvance(3);
28039
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 18, ctx.updateFlagTitle), " ");
28328
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 14, ctx.updateFlagTitle), " ");
28040
28329
  i0__namespace.ɵɵadvance(2);
28041
- i0__namespace.ɵɵproperty("ngIf", ctx.displayContextParameter === ctx.caseFlagDisplayContextParameter.UPDATE_EXTERNAL);
28330
+ i0__namespace.ɵɵproperty("ngIf", ctx.externalUserUpdate);
28042
28331
  i0__namespace.ɵɵadvance(2);
28043
28332
  i0__namespace.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS);
28044
28333
  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);
28334
+ i0__namespace.ɵɵtextInterpolate2(" ", i0__namespace.ɵɵpipeBind1(11, 16, ctx.updateFlagTitle), " ", i0__namespace.ɵɵpipeBind1(12, 18, "comments"), " ");
28335
+ i0__namespace.ɵɵadvance(3);
28336
+ i0__namespace.ɵɵproperty("ngIf", ctx.externalUserUpdate);
28050
28337
  i0__namespace.ɵɵadvance(1);
28051
- i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagNotEnteredErrorMessage);
28338
+ i0__namespace.ɵɵproperty("ngIf", ctx.internalUserUpdate || ctx.internalUser2Point1EnabledUpdate || ctx.displayContextParameter === "")("ngIfElse", _r3);
28339
+ i0__namespace.ɵɵadvance(5);
28340
+ i0__namespace.ɵɵproperty("ngIf", ctx.internalUser2Point1EnabledUpdate);
28052
28341
  i0__namespace.ɵɵadvance(1);
28053
- i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagCharLimitErrorMessage);
28342
+ i0__namespace.ɵɵproperty("ngIf", ctx.internalUser2Point1EnabledUpdate);
28054
28343
  i0__namespace.ɵɵadvance(1);
28055
- i0__namespace.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS)("name", ctx.caseFlagFormFields.COMMENTS)("formControlName", ctx.caseFlagFormFields.COMMENTS);
28344
+ i0__namespace.ɵɵproperty("ngIf", ctx.internalUserUpdate);
28056
28345
  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"), " ");
28346
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(25, 20, "Next"), " ");
28064
28347
  }
28065
28348
  }, encapsulation: 2 });
28066
28349
  (function () {
@@ -32135,7 +32418,7 @@
32135
32418
  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
32419
  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
32420
  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]);
32421
+ 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
32422
  i0__namespace.ɵɵsetComponentScope(
32140
32423
  // Components for linked cases
32141
32424
  LinkedCasesToTableComponent, [i5__namespace.NgIf, i5__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
@@ -32160,12 +32443,19 @@
32160
32443
  CaseEventCompletionComponent
32161
32444
  ], []);
32162
32445
 
32163
- function CaseEditSubmitComponent_div_0_div_3_Template(rf, ctx) {
32446
+ var CaseEditSubmitTitles;
32447
+ (function (CaseEditSubmitTitles) {
32448
+ CaseEditSubmitTitles["REVIEW_SUPPORT_REQUEST"] = "Review support request";
32449
+ CaseEditSubmitTitles["REVIEW_FLAG_DETAILS"] = "Review flag details";
32450
+ CaseEditSubmitTitles["CHECK_YOUR_ANSWERS"] = "Check your answers";
32451
+ })(CaseEditSubmitTitles || (CaseEditSubmitTitles = {}));
32452
+
32453
+ function CaseEditSubmitComponent_div_0_div_4_Template(rf, ctx) {
32164
32454
  if (rf & 1) {
32165
32455
  i0__namespace.ɵɵelement(0, "div");
32166
32456
  }
32167
32457
  }
32168
- function CaseEditSubmitComponent_div_0_ng_template_4_Template(rf, ctx) {
32458
+ function CaseEditSubmitComponent_div_0_ng_template_5_Template(rf, ctx) {
32169
32459
  if (rf & 1) {
32170
32460
  i0__namespace.ɵɵelement(0, "ccd-markdown", 14);
32171
32461
  i0__namespace.ɵɵpipe(1, "ccdCaseTitle");
@@ -32175,7 +32465,7 @@
32175
32465
  i0__namespace.ɵɵproperty("content", i0__namespace.ɵɵpipeBind3(1, 1, ctx_r4.getCaseTitle(), ctx_r4.contextFields, ctx_r4.editForm.controls["data"]));
32176
32466
  }
32177
32467
  }
32178
- function CaseEditSubmitComponent_div_0_ng_template_6_h2_0_Template(rf, ctx) {
32468
+ function CaseEditSubmitComponent_div_0_ng_template_7_h2_0_Template(rf, ctx) {
32179
32469
  if (rf & 1) {
32180
32470
  i0__namespace.ɵɵelementStart(0, "h2", 16);
32181
32471
  i0__namespace.ɵɵtext(1);
@@ -32188,16 +32478,16 @@
32188
32478
  i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r10.getCaseId()), "");
32189
32479
  }
32190
32480
  }
32191
- function CaseEditSubmitComponent_div_0_ng_template_6_Template(rf, ctx) {
32481
+ function CaseEditSubmitComponent_div_0_ng_template_7_Template(rf, ctx) {
32192
32482
  if (rf & 1) {
32193
- i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_ng_template_6_h2_0_Template, 3, 3, "h2", 15);
32483
+ i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_ng_template_7_h2_0_Template, 3, 3, "h2", 15);
32194
32484
  }
32195
32485
  if (rf & 2) {
32196
32486
  var ctx_r6 = i0__namespace.ɵɵnextContext(2);
32197
32487
  i0__namespace.ɵɵproperty("ngIf", ctx_r6.getCaseId());
32198
32488
  }
32199
32489
  }
32200
- function CaseEditSubmitComponent_div_0_ng_container_11_span_4_Template(rf, ctx) {
32490
+ function CaseEditSubmitComponent_div_0_ng_container_12_span_4_Template(rf, ctx) {
32201
32491
  if (rf & 1) {
32202
32492
  i0__namespace.ɵɵelementStart(0, "span", 20);
32203
32493
  i0__namespace.ɵɵtext(1);
@@ -32209,9 +32499,9 @@
32209
32499
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, "Check the information below carefully."));
32210
32500
  }
32211
32501
  }
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) {
32502
+ 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
32503
  if (rf & 1) {
32214
- i0__namespace.ɵɵelementStart(0, "th", 27);
32504
+ i0__namespace.ɵɵelementStart(0, "th", 25);
32215
32505
  i0__namespace.ɵɵelementStart(1, "span", 20);
32216
32506
  i0__namespace.ɵɵtext(2);
32217
32507
  i0__namespace.ɵɵelementEnd();
@@ -32223,33 +32513,51 @@
32223
32513
  i0__namespace.ɵɵtextInterpolate(field_r16.label);
32224
32514
  }
32225
32515
  }
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) {
32516
+ 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
32517
  if (rf & 1) {
32228
- var _r23_1 = i0__namespace.ɵɵgetCurrentView();
32518
+ var _r24_1 = i0__namespace.ɵɵgetCurrentView();
32229
32519
  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); });
32520
+ 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(_r24_1); var page_r13 = i0__namespace.ɵɵnextContext(5).$implicit; var ctx_r22 = i0__namespace.ɵɵnextContext(3); return ctx_r22.navigateToPage(page_r13.id); });
32231
32521
  i0__namespace.ɵɵelementStart(1, "span", 20);
32232
- i0__namespace.ɵɵtext(2, "Change");
32522
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
32523
+ i0__namespace.ɵɵpipe(3, "rpxTranslate");
32524
+ i0__namespace.ɵɵtext(4);
32525
+ i0__namespace.ɵɵpipe(5, "rpxTranslate");
32233
32526
  i0__namespace.ɵɵelementEnd();
32234
32527
  i0__namespace.ɵɵelementEnd();
32235
32528
  }
32236
32529
  if (rf & 2) {
32237
- var field_r16 = i0__namespace.ɵɵnextContext(2).$implicit;
32530
+ var field_r16 = i0__namespace.ɵɵnextContext(3).$implicit;
32238
32531
  i0__namespace.ɵɵadvance(1);
32239
- i0__namespace.ɵɵattributeInterpolate1("aria-label", "Change ", field_r16.label, "");
32532
+ i0__namespace.ɵɵattributeInterpolate2("aria-label", "", i0__namespace.ɵɵpipeBind1(2, 3, "Change"), " ", i0__namespace.ɵɵpipeBind1(3, 5, field_r16.label), "");
32533
+ i0__namespace.ɵɵadvance(3);
32534
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 7, "Change"), " ");
32240
32535
  }
32241
32536
  }
32242
- function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_ng_container_1_ng_container_1_Template(rf, ctx) {
32537
+ 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) {
32538
+ if (rf & 1) {
32539
+ i0__namespace.ɵɵelementContainerStart(0);
32540
+ i0__namespace.ɵɵelementStart(1, "td", 26);
32541
+ 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);
32542
+ i0__namespace.ɵɵelementEnd();
32543
+ i0__namespace.ɵɵelementContainerEnd();
32544
+ }
32545
+ if (rf & 2) {
32546
+ var field_r16 = i0__namespace.ɵɵnextContext(2).$implicit;
32547
+ var ctx_r19 = i0__namespace.ɵɵnextContext(5);
32548
+ i0__namespace.ɵɵadvance(2);
32549
+ i0__namespace.ɵɵproperty("ngIf", ctx_r19.isChangeAllowed(field_r16));
32550
+ }
32551
+ }
32552
+ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_ng_container_1_Template(rf, ctx) {
32243
32553
  if (rf & 1) {
32244
32554
  i0__namespace.ɵɵelementContainerStart(0);
32245
32555
  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);
32556
+ 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
32557
  i0__namespace.ɵɵelementStart(3, "td", 23);
32248
32558
  i0__namespace.ɵɵelement(4, "ccd-field-read", 24);
32249
32559
  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();
32560
+ 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
32561
  i0__namespace.ɵɵelementEnd();
32254
32562
  i0__namespace.ɵɵelementContainerEnd();
32255
32563
  }
@@ -32264,14 +32572,14 @@
32264
32572
  i0__namespace.ɵɵattribute("colspan", ctx_r17.isLabel(field_r16) ? "2" : "1");
32265
32573
  i0__namespace.ɵɵadvance(1);
32266
32574
  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));
32575
+ i0__namespace.ɵɵadvance(1);
32576
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r17.caseEdit.isCaseFlagSubmission);
32269
32577
  }
32270
32578
  }
32271
- function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_ng_container_1_Template(rf, ctx) {
32579
+ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_Template(rf, ctx) {
32272
32580
  if (rf & 1) {
32273
32581
  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);
32582
+ 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
32583
  i0__namespace.ɵɵelementContainerEnd();
32276
32584
  }
32277
32585
  if (rf & 2) {
@@ -32282,10 +32590,10 @@
32282
32590
  }
32283
32591
  }
32284
32592
  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) {
32593
+ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_Template(rf, ctx) {
32286
32594
  if (rf & 1) {
32287
32595
  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);
32596
+ 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
32597
  i0__namespace.ɵɵpipe(2, "ccdCYAPageLabelFilter");
32290
32598
  i0__namespace.ɵɵpipe(3, "ccdReadFieldsFilter");
32291
32599
  i0__namespace.ɵɵpipe(4, "ccdPageFields");
@@ -32298,10 +32606,10 @@
32298
32606
  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"]))));
32299
32607
  }
32300
32608
  }
32301
- function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_Template(rf, ctx) {
32609
+ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_Template(rf, ctx) {
32302
32610
  if (rf & 1) {
32303
32611
  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);
32612
+ i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_Template, 5, 15, "ng-container", 0);
32305
32613
  i0__namespace.ɵɵelementContainerEnd();
32306
32614
  }
32307
32615
  if (rf & 2) {
@@ -32311,17 +32619,17 @@
32311
32619
  i0__namespace.ɵɵproperty("ngIf", ctx_r12.isShown(page_r13));
32312
32620
  }
32313
32621
  }
32314
- function CaseEditSubmitComponent_div_0_ng_container_11_Template(rf, ctx) {
32622
+ function CaseEditSubmitComponent_div_0_ng_container_12_Template(rf, ctx) {
32315
32623
  if (rf & 1) {
32316
32624
  i0__namespace.ɵɵelementContainerStart(0);
32317
32625
  i0__namespace.ɵɵelementStart(1, "h2", 16);
32318
32626
  i0__namespace.ɵɵtext(2);
32319
32627
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
32320
32628
  i0__namespace.ɵɵelementEnd();
32321
- i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_container_11_span_4_Template, 3, 3, "span", 17);
32629
+ i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_container_12_span_4_Template, 3, 3, "span", 17);
32322
32630
  i0__namespace.ɵɵelementStart(5, "table", 18);
32323
32631
  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);
32632
+ i0__namespace.ɵɵtemplate(7, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_Template, 2, 1, "ng-container", 19);
32325
32633
  i0__namespace.ɵɵelementEnd();
32326
32634
  i0__namespace.ɵɵelementEnd();
32327
32635
  i0__namespace.ɵɵelementContainerEnd();
@@ -32336,7 +32644,7 @@
32336
32644
  i0__namespace.ɵɵproperty("ngForOf", ctx_r7.wizard.pages);
32337
32645
  }
32338
32646
  }
32339
- function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_3_Template(rf, ctx) {
32647
+ function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_3_Template(rf, ctx) {
32340
32648
  if (rf & 1) {
32341
32649
  i0__namespace.ɵɵelementStart(0, "tr", 32);
32342
32650
  i0__namespace.ɵɵelementStart(1, "th", 33);
@@ -32348,16 +32656,16 @@
32348
32656
  i0__namespace.ɵɵelementEnd();
32349
32657
  }
32350
32658
  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);
32659
+ var field_r30 = i0__namespace.ɵɵnextContext().$implicit;
32660
+ var ctx_r31 = i0__namespace.ɵɵnextContext(3);
32661
+ i0__namespace.ɵɵproperty("caseField", field_r30)("formGroup", ctx_r31.editForm.controls["data"])("contextFields", ctx_r31.contextFields);
32354
32662
  i0__namespace.ɵɵadvance(2);
32355
- i0__namespace.ɵɵtextInterpolate(field_r28.label);
32663
+ i0__namespace.ɵɵtextInterpolate(field_r30.label);
32356
32664
  i0__namespace.ɵɵadvance(2);
32357
- i0__namespace.ɵɵproperty("formGroup", ctx_r29.editForm.controls["data"])("caseField", ctx_r29.summaryCaseField(field_r28));
32665
+ i0__namespace.ɵɵproperty("formGroup", ctx_r31.editForm.controls["data"])("caseField", ctx_r31.summaryCaseField(field_r30));
32358
32666
  }
32359
32667
  }
32360
- function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_4_Template(rf, ctx) {
32668
+ function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_4_Template(rf, ctx) {
32361
32669
  if (rf & 1) {
32362
32670
  i0__namespace.ɵɵelementStart(0, "tr", 36);
32363
32671
  i0__namespace.ɵɵelementStart(1, "td", 37);
@@ -32366,39 +32674,39 @@
32366
32674
  i0__namespace.ɵɵelementEnd();
32367
32675
  }
32368
32676
  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);
32677
+ var field_r30 = i0__namespace.ɵɵnextContext().$implicit;
32678
+ var ctx_r32 = i0__namespace.ɵɵnextContext(3);
32679
+ i0__namespace.ɵɵproperty("caseField", field_r30)("formGroup", ctx_r32.editForm.controls["data"])("contextFields", ctx_r32.contextFields);
32372
32680
  i0__namespace.ɵɵadvance(2);
32373
- i0__namespace.ɵɵproperty("formGroup", ctx_r30.editForm.controls["data"])("caseField", ctx_r30.summaryCaseField(field_r28))("caseFields", ctx_r30.contextFields);
32681
+ i0__namespace.ɵɵproperty("formGroup", ctx_r32.editForm.controls["data"])("caseField", ctx_r32.summaryCaseField(field_r30))("caseFields", ctx_r32.contextFields);
32374
32682
  }
32375
32683
  }
32376
- function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_Template(rf, ctx) {
32684
+ function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_Template(rf, ctx) {
32377
32685
  if (rf & 1) {
32378
32686
  i0__namespace.ɵɵelementContainerStart(0);
32379
32687
  i0__namespace.ɵɵelementContainerStart(1, 29);
32380
32688
  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);
32689
+ i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_3_Template, 5, 6, "tr", 30);
32690
+ i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_4_Template, 3, 6, "tr", 31);
32383
32691
  i0__namespace.ɵɵelementContainerEnd();
32384
32692
  i0__namespace.ɵɵelementContainerEnd();
32385
32693
  }
32386
32694
  if (rf & 2) {
32387
- var field_r28 = ctx.$implicit;
32695
+ var field_r30 = ctx.$implicit;
32388
32696
  i0__namespace.ɵɵadvance(1);
32389
- i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3, field_r28));
32697
+ i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3, field_r30));
32390
32698
  i0__namespace.ɵɵadvance(2);
32391
32699
  i0__namespace.ɵɵproperty("ngSwitchCase", true);
32392
32700
  i0__namespace.ɵɵadvance(1);
32393
32701
  i0__namespace.ɵɵproperty("ngSwitchCase", false);
32394
32702
  }
32395
32703
  }
32396
- function CaseEditSubmitComponent_div_0_ng_container_12_Template(rf, ctx) {
32704
+ function CaseEditSubmitComponent_div_0_ng_container_13_Template(rf, ctx) {
32397
32705
  if (rf & 1) {
32398
32706
  i0__namespace.ɵɵelementContainerStart(0);
32399
32707
  i0__namespace.ɵɵelementStart(1, "table", 28);
32400
32708
  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);
32709
+ i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_Template, 5, 5, "ng-container", 19);
32402
32710
  i0__namespace.ɵɵelementEnd();
32403
32711
  i0__namespace.ɵɵelementEnd();
32404
32712
  i0__namespace.ɵɵelementContainerEnd();
@@ -32409,84 +32717,78 @@
32409
32717
  i0__namespace.ɵɵproperty("ngForOf", ctx_r8.showSummaryFields);
32410
32718
  }
32411
32719
  }
32412
- function CaseEditSubmitComponent_div_0_ng_container_13_fieldset_1_Template(rf, ctx) {
32720
+ function CaseEditSubmitComponent_div_0_ng_container_14_Template(rf, ctx) {
32413
32721
  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.");
32722
+ i0__namespace.ɵɵelementContainerStart(0);
32723
+ i0__namespace.ɵɵelementStart(1, "fieldset", 39);
32724
+ i0__namespace.ɵɵelement(2, "legend", 40);
32725
+ i0__namespace.ɵɵelementStart(3, "div", 41);
32726
+ i0__namespace.ɵɵelementStart(4, "label", 42);
32727
+ i0__namespace.ɵɵtext(5, " Event summary (optional) ");
32728
+ i0__namespace.ɵɵelementStart(6, "span", 43);
32729
+ i0__namespace.ɵɵtext(7, "A few words describing the purpose of the event.");
32421
32730
  i0__namespace.ɵɵelementEnd();
32422
32731
  i0__namespace.ɵɵelementEnd();
32423
- i0__namespace.ɵɵelement(7, "input", 45);
32732
+ i0__namespace.ɵɵelement(8, "input", 44);
32424
32733
  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)");
32734
+ i0__namespace.ɵɵelementStart(9, "div", 41);
32735
+ i0__namespace.ɵɵelementStart(10, "label", 45);
32736
+ i0__namespace.ɵɵtext(11, "Event description (optional)");
32428
32737
  i0__namespace.ɵɵelementEnd();
32429
- i0__namespace.ɵɵelement(11, "textarea", 47);
32738
+ i0__namespace.ɵɵelement(12, "textarea", 46);
32430
32739
  i0__namespace.ɵɵelementEnd();
32431
32740
  i0__namespace.ɵɵelementEnd();
32432
- }
32433
- }
32434
- function CaseEditSubmitComponent_div_0_ng_container_13_Template(rf, ctx) {
32435
- 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
32741
  i0__namespace.ɵɵelementContainerEnd();
32439
32742
  }
32440
- if (rf & 2) {
32441
- var ctx_r9 = i0__namespace.ɵɵnextContext(2);
32442
- i0__namespace.ɵɵadvance(1);
32443
- i0__namespace.ɵɵproperty("ngIf", ctx_r9.profile && !ctx_r9.isSolicitor());
32444
- }
32445
32743
  }
32446
32744
  function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
32447
32745
  if (rf & 1) {
32448
- var _r35_1 = i0__namespace.ɵɵgetCurrentView();
32746
+ var _r36_1 = i0__namespace.ɵɵgetCurrentView();
32449
32747
  i0__namespace.ɵɵelementStart(0, "div");
32450
32748
  i0__namespace.ɵɵelementStart(1, "h1", 2);
32451
32749
  i0__namespace.ɵɵtext(2);
32750
+ i0__namespace.ɵɵpipe(3, "rpxTranslate");
32452
32751
  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();
32470
- i0__namespace.ɵɵelementStart(17, "button", 11);
32471
- i0__namespace.ɵɵtext(18);
32752
+ i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_div_4_Template, 1, 0, "div", 3);
32753
+ i0__namespace.ɵɵtemplate(5, CaseEditSubmitComponent_div_0_ng_template_5_Template, 2, 5, "ng-template", null, 4, i0__namespace.ɵɵtemplateRefExtractor);
32754
+ i0__namespace.ɵɵtemplate(7, CaseEditSubmitComponent_div_0_ng_template_7_Template, 1, 1, "ng-template", null, 5, i0__namespace.ɵɵtemplateRefExtractor);
32755
+ i0__namespace.ɵɵelement(9, "ccd-case-edit-generic-errors", 6);
32756
+ i0__namespace.ɵɵelementStart(10, "ccd-callback-errors", 7);
32757
+ i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0__namespace.ɵɵrestoreView(_r36_1); var ctx_r35 = i0__namespace.ɵɵnextContext(); return ctx_r35.callbackErrorsNotify($event); });
32758
+ i0__namespace.ɵɵelementEnd();
32759
+ i0__namespace.ɵɵelementStart(11, "form", 8);
32760
+ i0__namespace.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0__namespace.ɵɵrestoreView(_r36_1); var ctx_r37 = i0__namespace.ɵɵnextContext(); return ctx_r37.submit(); });
32761
+ i0__namespace.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 8, 5, "ng-container", 0);
32762
+ i0__namespace.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 4, 1, "ng-container", 0);
32763
+ i0__namespace.ɵɵtemplate(14, CaseEditSubmitComponent_div_0_ng_container_14_Template, 13, 0, "ng-container", 0);
32764
+ i0__namespace.ɵɵelementStart(15, "div", 9);
32765
+ i0__namespace.ɵɵelementStart(16, "button", 10);
32766
+ i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_button_click_16_listener() { i0__namespace.ɵɵrestoreView(_r36_1); var ctx_r38 = i0__namespace.ɵɵnextContext(); return ctx_r38.previous(); });
32767
+ i0__namespace.ɵɵtext(17);
32768
+ i0__namespace.ɵɵpipe(18, "rpxTranslate");
32472
32769
  i0__namespace.ɵɵelementEnd();
32770
+ i0__namespace.ɵɵelementStart(19, "button", 11);
32771
+ i0__namespace.ɵɵtext(20);
32772
+ i0__namespace.ɵɵpipe(21, "rpxTranslate");
32473
32773
  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);
32774
+ i0__namespace.ɵɵelementEnd();
32775
+ i0__namespace.ɵɵelementStart(22, "p", 12);
32776
+ i0__namespace.ɵɵelementStart(23, "a", 13);
32777
+ i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_23_listener() { i0__namespace.ɵɵrestoreView(_r36_1); var ctx_r39 = i0__namespace.ɵɵnextContext(); return ctx_r39.cancel(); });
32778
+ i0__namespace.ɵɵtext(24);
32779
+ i0__namespace.ɵɵpipe(25, "rpxTranslate");
32478
32780
  i0__namespace.ɵɵelementEnd();
32479
32781
  i0__namespace.ɵɵelementEnd();
32480
32782
  i0__namespace.ɵɵelementEnd();
32481
32783
  i0__namespace.ɵɵelementEnd();
32482
32784
  }
32483
32785
  if (rf & 2) {
32484
- var _r3 = i0__namespace.ɵɵreference(5);
32485
- var _r5 = i0__namespace.ɵɵreference(7);
32786
+ var _r3 = i0__namespace.ɵɵreference(6);
32787
+ var _r5 = i0__namespace.ɵɵreference(8);
32486
32788
  var ctx_r0 = i0__namespace.ɵɵnextContext();
32487
32789
  i0__namespace.ɵɵadvance(2);
32488
- i0__namespace.ɵɵtextInterpolate(ctx_r0.eventTrigger.name);
32489
- i0__namespace.ɵɵadvance(1);
32790
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 17, ctx_r0.eventTrigger.name));
32791
+ i0__namespace.ɵɵadvance(2);
32490
32792
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.getCaseTitle())("ngIfThen", _r3)("ngIfElse", _r5);
32491
32793
  i0__namespace.ɵɵadvance(5);
32492
32794
  i0__namespace.ɵɵproperty("error", ctx_r0.caseEdit.error);
@@ -32502,21 +32804,23 @@
32502
32804
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.showEventNotes());
32503
32805
  i0__namespace.ɵɵadvance(2);
32504
32806
  i0__namespace.ɵɵproperty("disabled", !ctx_r0.hasPrevious() || ctx_r0.caseEdit.isSubmitting);
32807
+ i0__namespace.ɵɵadvance(1);
32808
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 19, "Previous"), " ");
32505
32809
  i0__namespace.ɵɵadvance(2);
32506
32810
  i0__namespace.ɵɵproperty("disabled", ctx_r0.isDisabled);
32507
32811
  i0__namespace.ɵɵadvance(1);
32508
- i0__namespace.ɵɵtextInterpolate(ctx_r0.triggerText);
32509
- i0__namespace.ɵɵadvance(2);
32812
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(21, 21, ctx_r0.triggerText), " ");
32813
+ i0__namespace.ɵɵadvance(3);
32510
32814
  i0__namespace.ɵɵclassProp("disabled", ctx_r0.caseEdit.isSubmitting);
32511
32815
  i0__namespace.ɵɵadvance(1);
32512
- i0__namespace.ɵɵtextInterpolate(ctx_r0.getCancelText());
32816
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(25, 23, ctx_r0.getCancelText()), " ");
32513
32817
  }
32514
32818
  }
32515
32819
  function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) {
32516
32820
  if (rf & 1) {
32517
- var _r40_1 = i0__namespace.ɵɵgetCurrentView();
32518
- 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); });
32821
+ var _r41_1 = i0__namespace.ɵɵgetCurrentView();
32822
+ i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion", 47);
32823
+ i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(_r41_1); var ctx_r40 = i0__namespace.ɵɵnextContext(); return ctx_r40.onEventCanBeCompleted($event); });
32520
32824
  i0__namespace.ɵɵelementEnd();
32521
32825
  }
32522
32826
  if (rf & 2) {
@@ -32562,7 +32866,7 @@
32562
32866
  this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isCaseFieldOfType(caseField, ['FlagLauncher']); });
32563
32867
  this.caseEdit.isLinkedCasesSubmission =
32564
32868
  this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isCaseFieldOfType(caseField, ['ComponentLauncher']); });
32565
- this.pageTitle = this.caseEdit.isCaseFlagSubmission ? 'Review flag details' : 'Check your answers';
32869
+ this.pageTitle = this.getPageTitle();
32566
32870
  };
32567
32871
  CaseEditSubmitComponent.prototype.ngOnDestroy = function () {
32568
32872
  /* istanbul ignore else */
@@ -32587,6 +32891,17 @@
32587
32891
  submit: this.caseEdit.submit,
32588
32892
  });
32589
32893
  };
32894
+ CaseEditSubmitComponent.prototype.getPageTitle = function () {
32895
+ var caseFlagField = this.eventTrigger.case_fields.find(function (caseField) { return FieldsUtils.isCaseFieldOfType(caseField, ['FlagLauncher']); });
32896
+ if (caseFlagField) {
32897
+ var isCaseFlagExternalMode = caseFlagField.display_context_parameter === '#ARGUMENT(UPDATE,EXTERNAL)' ||
32898
+ caseFlagField.display_context_parameter === '#ARGUMENT(CREATE,EXTERNAL)';
32899
+ return isCaseFlagExternalMode
32900
+ ? CaseEditSubmitTitles.REVIEW_SUPPORT_REQUEST
32901
+ : CaseEditSubmitTitles.REVIEW_FLAG_DETAILS;
32902
+ }
32903
+ return CaseEditSubmitTitles.CHECK_YOUR_ANSWERS;
32904
+ };
32590
32905
  Object.defineProperty(CaseEditSubmitComponent.prototype, "hasErrors", {
32591
32906
  get: function () {
32592
32907
  var _a, _b, _c;
@@ -32677,7 +32992,16 @@
32677
32992
  return this.eventTrigger.case_fields.some(function (field) { return field.show_summary_content_option >= 0; });
32678
32993
  };
32679
32994
  CaseEditSubmitComponent.prototype.showEventNotes = function () {
32680
- return !!this.eventTrigger.show_event_notes;
32995
+ var _a;
32996
+ // Display event notes related controls only if the following conditions are met
32997
+ // 1. show_event_notes flag is set to true
32998
+ // 2. profile is not a solicitor
32999
+ // 3. is not a case flags journey, as it uses a custom check your answers component
33000
+ if (this.eventTrigger.show_event_notes) {
33001
+ return !((_a = this.profile) === null || _a === void 0 ? void 0 : _a.isSolicitor())
33002
+ && !this.caseEdit.isCaseFlagSubmission;
33003
+ }
33004
+ return false;
32681
33005
  };
32682
33006
  CaseEditSubmitComponent.prototype.getLastPageShown = function () {
32683
33007
  var _this = this;
@@ -32707,9 +33031,6 @@
32707
33031
  CaseEditSubmitComponent.prototype.canShowFieldInCYA = function (field) {
32708
33032
  return field.show_summary_change_option;
32709
33033
  };
32710
- CaseEditSubmitComponent.prototype.isSolicitor = function () {
32711
- return this.profile.isSolicitor();
32712
- };
32713
33034
  CaseEditSubmitComponent.prototype.sortFieldsByShowSummaryContent = function (fields) {
32714
33035
  return this.orderService
32715
33036
  .sort(fields, CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION)
@@ -32750,9 +33071,9 @@
32750
33071
  return a.show_summary_content_option - b.show_summary_content_option;
32751
33072
  };
32752
33073
  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) {
33074
+ 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", "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"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditSubmitComponent_Template(rf, ctx) {
32754
33075
  if (rf & 1) {
32755
- i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 22, 16, "div", 0);
33076
+ i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 26, 25, "div", 0);
32756
33077
  i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_ccd_case_event_completion_1_Template, 1, 1, "ccd-case-event-completion", 1);
32757
33078
  }
32758
33079
  if (rf & 2) {
@@ -33212,7 +33533,7 @@
33212
33533
  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
33534
  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
33535
  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]);
33536
+ 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
33537
  i0__namespace.ɵɵsetComponentScope(CaseCreateComponent, [i5__namespace.NgIf, CaseEditComponent], []);
33217
33538
  i0__namespace.ɵɵsetComponentScope(CaseProgressComponent, [i5__namespace.NgIf, CaseEditComponent], []);
33218
33539