@hmcts/ccd-case-ui-toolkit 7.0.7 → 7.0.8

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.
@@ -132,11 +132,11 @@ function FooterComponent_div_3_Template(rf, ctx) {
132
132
  }
133
133
  }
134
134
  const _c0$13 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
135
- const _c1$t = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
135
+ const _c1$u = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
136
136
  class FooterComponent {
137
137
  }
138
138
  FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
139
- FooterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵ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) {
139
+ FooterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$u, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) {
140
140
  if (rf & 1) {
141
141
  i0.ɵɵprojectionDef(_c0$13);
142
142
  i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
@@ -210,7 +210,7 @@ function HeaderBarComponent_div_10_Template(rf, ctx) {
210
210
  }
211
211
  }
212
212
  const _c0$12 = [[["", "headerNavigation", ""]]];
213
- const _c1$s = ["[headerNavigation]"];
213
+ const _c1$t = ["[headerNavigation]"];
214
214
  class HeaderBarComponent {
215
215
  constructor() {
216
216
  this.signOutRequest = new EventEmitter();
@@ -220,7 +220,7 @@ class HeaderBarComponent {
220
220
  }
221
221
  }
222
222
  HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
223
- HeaderBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵ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) {
223
+ HeaderBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$t, decls: 17, vars: 14, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["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) {
224
224
  if (rf & 1) {
225
225
  i0.ɵɵprojectionDef(_c0$12);
226
226
  i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
@@ -276,11 +276,11 @@ HeaderBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBa
276
276
  })();
277
277
 
278
278
  const _c0$11 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
279
- const _c1$r = ["[leftNavLinks]", "[rightNavLinks]"];
279
+ const _c1$s = ["[leftNavLinks]", "[rightNavLinks]"];
280
280
  class NavigationComponent {
281
281
  }
282
282
  NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
283
- NavigationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵ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) {
283
+ NavigationComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$s, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
284
284
  if (rf & 1) {
285
285
  i0.ɵɵprojectionDef(_c0$11);
286
286
  i0.ɵɵelementStart(0, "div")(1, "nav", 0);
@@ -411,11 +411,11 @@ HeadersModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModu
411
411
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
412
412
 
413
413
  const _c0$10 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
414
- const _c1$q = ["[topBody]", "[leftBody]", "[rightBody]"];
414
+ const _c1$r = ["[topBody]", "[leftBody]", "[rightBody]"];
415
415
  class BodyComponent {
416
416
  }
417
417
  BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
418
- BodyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$q, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
418
+ BodyComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$r, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
419
419
  if (rf & 1) {
420
420
  i0.ɵɵprojectionDef(_c0$10);
421
421
  i0.ɵɵelementStart(0, "div", 0);
@@ -1084,11 +1084,11 @@ NotificationBannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
1084
1084
  })();
1085
1085
 
1086
1086
  const _c0$Z = function (a0) { return { "js-hidden": a0 }; };
1087
- const _c1$p = ["*"];
1087
+ const _c1$q = ["*"];
1088
1088
  class TabComponent {
1089
1089
  }
1090
1090
  TabComponent.ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
1091
- TabComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵ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) {
1091
+ TabComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$q, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
1092
1092
  if (rf & 1) {
1093
1093
  i0.ɵɵprojectionDef();
1094
1094
  i0.ɵɵelementStart(0, "div", 0);
@@ -1114,8 +1114,8 @@ TabComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent,
1114
1114
  })();
1115
1115
 
1116
1116
  const _c0$Y = ["tab"];
1117
- const _c1$o = function () { return ["."]; };
1118
- const _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
1117
+ const _c1$p = function () { return ["."]; };
1118
+ const _c2$4 = function (a0) { return { "tabs-toggle-selected": a0 }; };
1119
1119
  function TabsComponent_li_2_Template(rf, ctx) {
1120
1120
  if (rf & 1) {
1121
1121
  const _r4 = i0.ɵɵgetCurrentView();
@@ -1128,7 +1128,7 @@ function TabsComponent_li_2_Template(rf, ctx) {
1128
1128
  if (rf & 2) {
1129
1129
  const panel_r1 = ctx.$implicit;
1130
1130
  i0.ɵɵadvance(1);
1131
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction0(8, _c1$o))("fragment", panel_r1.id)("ngClass", i0.ɵɵpureFunction1(9, _c2$3, panel_r1.selected));
1131
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction0(8, _c1$p))("fragment", panel_r1.id)("ngClass", i0.ɵɵpureFunction1(9, _c2$4, panel_r1.selected));
1132
1132
  i0.ɵɵattribute("aria-controls", panel_r1.id)("aria-selected", panel_r1.selected);
1133
1133
  i0.ɵɵadvance(2);
1134
1134
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 6, panel_r1.title));
@@ -2695,6 +2695,9 @@ class FirstErrorPipe {
2695
2695
  else if (keys[0] === 'pattern') {
2696
2696
  errorMessage = 'The data entered is not valid for %FIELDLABEL%';
2697
2697
  }
2698
+ else if (keys[0] === 'markDownPattern') {
2699
+ errorMessage = 'The data entered is not valid for %FIELDLABEL%. Link mark up characters are not allowed in this field';
2700
+ }
2698
2701
  else if (keys[0] === 'minlength') {
2699
2702
  errorMessage = '%FIELDLABEL% is below the minimum length';
2700
2703
  }
@@ -4542,6 +4545,7 @@ class FormValidatorsService {
4542
4545
  FormValidatorsService.CUSTOM_VALIDATED_TYPES.indexOf(caseField.field_type.type) === -1) {
4543
4546
  const validators = [Validators.required];
4544
4547
  if (caseField.field_type.type === 'Text') {
4548
+ validators.push(this.markDownPatternValidator());
4545
4549
  if (caseField.field_type.regular_expression) {
4546
4550
  validators.push(Validators.pattern(caseField.field_type.regular_expression));
4547
4551
  }
@@ -4555,22 +4559,40 @@ class FormValidatorsService {
4555
4559
  validators.push(Validators.maxLength(caseField.field_type.max));
4556
4560
  }
4557
4561
  }
4562
+ if (caseField.field_type.type === 'TextArea') {
4563
+ validators.push(this.emptyValidator());
4564
+ validators.push(this.markDownPatternValidator());
4565
+ }
4558
4566
  if (control.validator) {
4559
4567
  validators.push(control.validator);
4560
4568
  }
4561
4569
  control.setValidators(validators);
4562
4570
  }
4571
+ else if (caseField.display_context === 'OPTIONAL' && (caseField.field_type.type === 'Text' || caseField.field_type.type === 'TextArea')) {
4572
+ control.setValidators(this.markDownPatternValidator());
4573
+ }
4563
4574
  return control;
4564
4575
  }
4565
4576
  static emptyValidator() {
4566
4577
  const validator = (control) => {
4567
- if (control && control.value && control.value.toString().trim().length === 0) {
4578
+ var _a;
4579
+ if (((_a = control === null || control === void 0 ? void 0 : control.value) === null || _a === void 0 ? void 0 : _a.toString().trim().length) === 0) {
4568
4580
  return { required: {} };
4569
4581
  }
4570
4582
  return null;
4571
4583
  };
4572
4584
  return validator;
4573
4585
  }
4586
+ static markDownPatternValidator() {
4587
+ const pattern = /(\[[^\]]{0,500}\]\([^)]{0,500}\)|!\[[^\]]{0,500}\]\([^)]{0,500}\)|<img[^>]{0,500}>|<a[^>]{0,500}>.*?<\/a>)/;
4588
+ return (control) => {
4589
+ var _a;
4590
+ const value = (_a = control === null || control === void 0 ? void 0 : control.value) === null || _a === void 0 ? void 0 : _a.toString().trim();
4591
+ return value && pattern.test(value)
4592
+ ? { markDownPattern: {} }
4593
+ : null;
4594
+ };
4595
+ }
4574
4596
  // TODO: Strip this out as it's only here for the moment because
4575
4597
  // the service is being injected all over the place but it doesn't
4576
4598
  // need to be as FormValidatorsService.addValidators is perfectly
@@ -4578,6 +4600,14 @@ class FormValidatorsService {
4578
4600
  addValidators(caseField, control) {
4579
4601
  return FormValidatorsService.addValidators(caseField, control);
4580
4602
  }
4603
+ addMarkDownValidators(formGroup, controlPath) {
4604
+ const control = formGroup.get(controlPath);
4605
+ if (control) {
4606
+ control.setValidators(FormValidatorsService.markDownPatternValidator());
4607
+ control.updateValueAndValidity();
4608
+ }
4609
+ return control;
4610
+ }
4581
4611
  }
4582
4612
  FormValidatorsService.CUSTOM_VALIDATED_TYPES = [
4583
4613
  'Date', 'MoneyGBP', 'Label', 'JudicialUser'
@@ -11052,8 +11082,8 @@ function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) {
11052
11082
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Enter the Postcode"));
11053
11083
  }
11054
11084
  }
11055
- const _c1$n = function (a0) { return { "form-group-error": a0 }; };
11056
- const _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
11085
+ const _c1$o = function (a0) { return { "form-group-error": a0 }; };
11086
+ const _c2$3 = function (a0) { return { "govuk-input--error": a0 }; };
11057
11087
  function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
11058
11088
  if (rf & 1) {
11059
11089
  const _r7 = i0.ɵɵgetCurrentView();
@@ -11071,7 +11101,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
11071
11101
  }
11072
11102
  if (rf & 2) {
11073
11103
  const ctx_r2 = i0.ɵɵnextContext(2);
11074
- i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$n, ctx_r2.missingPostcode));
11104
+ i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$o, ctx_r2.missingPostcode));
11075
11105
  i0.ɵɵadvance(1);
11076
11106
  i0.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
11077
11107
  i0.ɵɵadvance(2);
@@ -11079,7 +11109,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
11079
11109
  i0.ɵɵadvance(2);
11080
11110
  i0.ɵɵproperty("ngIf", ctx_r2.missingPostcode);
11081
11111
  i0.ɵɵadvance(1);
11082
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c2$2, ctx_r2.missingPostcode))("id", ctx_r2.createElementId("postcodeInput"))("formControl", ctx_r2.postcode);
11112
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c2$3, ctx_r2.missingPostcode))("id", ctx_r2.createElementId("postcodeInput"))("formControl", ctx_r2.postcode);
11083
11113
  i0.ɵɵadvance(2);
11084
11114
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 11, "Find address"));
11085
11115
  }
@@ -12653,7 +12683,7 @@ function WriteCaseLinkFieldComponent_span_4_Template(rf, ctx) {
12653
12683
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label), " ");
12654
12684
  }
12655
12685
  }
12656
- const _c1$m = function (a0) { return { "form-group-error": a0 }; };
12686
+ const _c1$n = function (a0) { return { "form-group-error": a0 }; };
12657
12687
  class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
12658
12688
  ngOnInit() {
12659
12689
  if (this.caseField.value) {
@@ -12719,7 +12749,7 @@ WriteCaseLinkFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
12719
12749
  i0.ɵɵelementEnd();
12720
12750
  }
12721
12751
  if (rf & 2) {
12722
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$m, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
12752
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$n, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
12723
12753
  i0.ɵɵadvance(1);
12724
12754
  i0.ɵɵproperty("for", ctx.id());
12725
12755
  i0.ɵɵadvance(1);
@@ -12757,7 +12787,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) {
12757
12787
  i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(3, _c0$S, 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);
12758
12788
  }
12759
12789
  }
12760
- const _c1$l = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
12790
+ const _c1$m = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
12761
12791
  function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) {
12762
12792
  if (rf & 1) {
12763
12793
  i0.ɵɵelementStart(0, "tr")(1, "td");
@@ -12769,7 +12799,7 @@ function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) {
12769
12799
  const i_r5 = ctx.index;
12770
12800
  const ctx_r3 = i0.ɵɵnextContext(3);
12771
12801
  i0.ɵɵadvance(2);
12772
- i0.ɵɵproperty("caseField", i0.ɵɵ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));
12802
+ i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$m, 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));
12773
12803
  }
12774
12804
  }
12775
12805
  function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) {
@@ -13965,7 +13995,7 @@ function WriteDocumentFieldComponent_ccd_read_document_field_9_Template(rf, ctx)
13965
13995
  i0.ɵɵproperty("caseField", ctx_r2.caseField);
13966
13996
  }
13967
13997
  }
13968
- const _c1$k = function (a0) { return { "form-group-error bottom-30": a0 }; };
13998
+ const _c1$l = function (a0) { return { "form-group-error bottom-30": a0 }; };
13969
13999
  class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
13970
14000
  constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService, jurisdictionService) {
13971
14001
  super();
@@ -14271,7 +14301,7 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
14271
14301
  i0.ɵɵelementEnd()();
14272
14302
  }
14273
14303
  if (rf & 2) {
14274
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$k, !ctx.valid));
14304
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$l, !ctx.valid));
14275
14305
  i0.ɵɵadvance(1);
14276
14306
  i0.ɵɵproperty("for", ctx.id());
14277
14307
  i0.ɵɵadvance(1);
@@ -14901,7 +14931,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) {
14901
14931
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, radioButton_r5.label));
14902
14932
  }
14903
14933
  }
14904
- const _c1$j = function (a0) { return { "form-group-error": a0 }; };
14934
+ const _c1$k = function (a0) { return { "form-group-error": a0 }; };
14905
14935
  class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
14906
14936
  ngOnInit() {
14907
14937
  /**
@@ -14941,7 +14971,7 @@ WriteDynamicRadioListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent
14941
14971
  i0.ɵɵelementEnd()();
14942
14972
  }
14943
14973
  if (rf & 2) {
14944
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$j, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
14974
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$k, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
14945
14975
  i0.ɵɵadvance(3);
14946
14976
  i0.ɵɵproperty("for", ctx.id());
14947
14977
  i0.ɵɵadvance(1);
@@ -15042,7 +15072,7 @@ function WriteEmailFieldComponent_span_4_Template(rf, ctx) {
15042
15072
  }
15043
15073
  }
15044
15074
  const _c0$M = function (a0) { return { "form-group-error": a0 }; };
15045
- const _c1$i = function (a0) { return { "govuk-input--error": a0 }; };
15075
+ const _c1$j = function (a0) { return { "govuk-input--error": a0 }; };
15046
15076
  class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
15047
15077
  ngOnInit() {
15048
15078
  this.emailControl = this.registerControl(new FormControl(this.caseField.value));
@@ -15070,7 +15100,7 @@ WriteEmailFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wr
15070
15100
  i0.ɵɵadvance(1);
15071
15101
  i0.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
15072
15102
  i0.ɵɵadvance(1);
15073
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$i, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
15103
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$j, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
15074
15104
  }
15075
15105
  }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
15076
15106
  (function () {
@@ -15325,7 +15355,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) {
15325
15355
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, radioButton_r4.label));
15326
15356
  }
15327
15357
  }
15328
- const _c1$h = function (a0) { return { "form-group-error": a0 }; };
15358
+ const _c1$i = function (a0) { return { "form-group-error": a0 }; };
15329
15359
  class WriteFixedRadioListFieldComponent extends AbstractFieldWriteComponent {
15330
15360
  ngOnInit() {
15331
15361
  const notEmpty = this.caseField.value !== null && this.caseField.value !== undefined;
@@ -15347,7 +15377,7 @@ WriteFixedRadioListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
15347
15377
  i0.ɵɵelementEnd()();
15348
15378
  }
15349
15379
  if (rf & 2) {
15350
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$h, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
15380
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$i, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
15351
15381
  i0.ɵɵadvance(3);
15352
15382
  i0.ɵɵproperty("for", ctx.id());
15353
15383
  i0.ɵɵadvance(1);
@@ -15501,7 +15531,7 @@ function WriteJudicialUserFieldComponent_mat_option_11_Template(rf, ctx) {
15501
15531
  i0.ɵɵelementEnd();
15502
15532
  }
15503
15533
  }
15504
- const _c1$g = function (a0) { return { "form-group-error": a0 }; };
15534
+ const _c1$h = function (a0) { return { "form-group-error": a0 }; };
15505
15535
  class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
15506
15536
  constructor(jurisdictionService, sessionStorageService, caseFlagRefDataService, compoundPipe, validatorsService) {
15507
15537
  super(compoundPipe, validatorsService);
@@ -15654,7 +15684,7 @@ WriteJudicialUserFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ t
15654
15684
  }
15655
15685
  if (rf & 2) {
15656
15686
  const _r3 = i0.ɵɵreference(7);
15657
- i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c1$g, !!ctx.judicialUserControl && ctx.errors));
15687
+ i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c1$h, !!ctx.judicialUserControl && ctx.errors));
15658
15688
  i0.ɵɵadvance(1);
15659
15689
  i0.ɵɵproperty("for", ctx.id());
15660
15690
  i0.ɵɵadvance(1);
@@ -16441,7 +16471,7 @@ function LinkCasesComponent_tr_31_span_15_Template(rf, ctx) {
16441
16471
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, reason_r19));
16442
16472
  }
16443
16473
  }
16444
- const _c1$f = function (a0) { return { "table-group-error": a0 }; };
16474
+ const _c1$g = function (a0) { return { "table-group-error": a0 }; };
16445
16475
  function LinkCasesComponent_tr_31_Template(rf, ctx) {
16446
16476
  if (rf & 1) {
16447
16477
  const _r21 = i0.ɵɵgetCurrentView();
@@ -16474,7 +16504,7 @@ function LinkCasesComponent_tr_31_Template(rf, ctx) {
16474
16504
  const case_r16 = ctx.$implicit;
16475
16505
  const ctx_r2 = i0.ɵɵnextContext();
16476
16506
  i0.ɵɵadvance(2);
16477
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$f, ctx_r2.caseSelectionError && case_r16.caseReference === ctx_r2.linkCaseForm.value.caseNumber));
16507
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$g, ctx_r2.caseSelectionError && case_r16.caseReference === ctx_r2.linkCaseForm.value.caseNumber));
16478
16508
  i0.ɵɵadvance(2);
16479
16509
  i0.ɵɵtextInterpolate1("", case_r16.caseName, " ");
16480
16510
  i0.ɵɵadvance(2);
@@ -18561,7 +18591,7 @@ function WriteNumberFieldComponent_span_4_Template(rf, ctx) {
18561
18591
  }
18562
18592
  }
18563
18593
  const _c0$E = function (a0) { return { "form-group-error": a0 }; };
18564
- const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
18594
+ const _c1$f = function (a0) { return { "govuk-input--error": a0 }; };
18565
18595
  class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
18566
18596
  ngOnInit() {
18567
18597
  this.numberControl = this.registerControl(new FormControl(this.caseField.value));
@@ -18589,7 +18619,7 @@ WriteNumberFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: W
18589
18619
  i0.ɵɵadvance(1);
18590
18620
  i0.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
18591
18621
  i0.ɵɵadvance(1);
18592
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$e, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
18622
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$f, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
18593
18623
  }
18594
18624
  }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NumberValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
18595
18625
  (function () {
@@ -19305,7 +19335,7 @@ function WritePhoneUKFieldComponent_span_4_Template(rf, ctx) {
19305
19335
  }
19306
19336
  }
19307
19337
  const _c0$C = function (a0) { return { "form-group-error": a0 }; };
19308
- const _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
19338
+ const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
19309
19339
  class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
19310
19340
  ngOnInit() {
19311
19341
  this.phoneUkControl = this.registerControl(new FormControl(this.caseField.value));
@@ -19333,7 +19363,7 @@ WritePhoneUKFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
19333
19363
  i0.ɵɵadvance(1);
19334
19364
  i0.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
19335
19365
  i0.ɵɵadvance(1);
19336
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$d, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
19366
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$e, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
19337
19367
  }
19338
19368
  }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
19339
19369
  (function () {
@@ -21575,7 +21605,7 @@ function WriteTextAreaFieldComponent_span_4_Template(rf, ctx) {
21575
21605
  }
21576
21606
  }
21577
21607
  const _c0$z = function (a0) { return { "form-group-error": a0 }; };
21578
- const _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
21608
+ const _c1$d = function (a0) { return { "govuk-textarea--error": a0 }; };
21579
21609
  class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
21580
21610
  constructor(browserService) {
21581
21611
  super();
@@ -21615,7 +21645,7 @@ WriteTextAreaFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
21615
21645
  i0.ɵɵadvance(1);
21616
21646
  i0.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
21617
21647
  i0.ɵɵadvance(1);
21618
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$c, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
21648
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$d, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
21619
21649
  }
21620
21650
  }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
21621
21651
  (function () {
@@ -21690,7 +21720,7 @@ function WriteTextFieldComponent_span_4_Template(rf, ctx) {
21690
21720
  }
21691
21721
  }
21692
21722
  const _c0$y = function (a0) { return { "form-group-error": a0 }; };
21693
- const _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
21723
+ const _c1$c = function (a0) { return { "govuk-input--error": a0 }; };
21694
21724
  class WriteTextFieldComponent extends AbstractFieldWriteComponent {
21695
21725
  ngOnInit() {
21696
21726
  this.textControl = this.registerControl(new FormControl(this.caseField.value));
@@ -21722,7 +21752,7 @@ WriteTextFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wri
21722
21752
  i0.ɵɵadvance(1);
21723
21753
  i0.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
21724
21754
  i0.ɵɵadvance(1);
21725
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$b, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
21755
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$c, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
21726
21756
  }
21727
21757
  }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
21728
21758
  (function () {
@@ -21932,7 +21962,7 @@ function WriteYesNoFieldComponent_div_7_Template(rf, ctx) {
21932
21962
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind3(4, 8, ctx_r3.caseField.label, null, value_r4));
21933
21963
  }
21934
21964
  }
21935
- const _c1$a = function (a0) { return { "form-group-error": a0 }; };
21965
+ const _c1$b = function (a0) { return { "form-group-error": a0 }; };
21936
21966
  class WriteYesNoFieldComponent extends AbstractFieldWriteComponent {
21937
21967
  constructor(yesNoService) {
21938
21968
  super();
@@ -21956,7 +21986,7 @@ WriteYesNoFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wr
21956
21986
  i0.ɵɵelementEnd()()();
21957
21987
  }
21958
21988
  if (rf & 2) {
21959
- i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$a, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
21989
+ i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$b, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
21960
21990
  i0.ɵɵadvance(3);
21961
21991
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
21962
21992
  i0.ɵɵadvance(1);
@@ -22354,7 +22384,7 @@ function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_co
22354
22384
  i0.ɵɵelementContainer(0);
22355
22385
  }
22356
22386
  }
22357
- const _c1$9 = function (a0, a1) { return { cat: a0, level: a1 }; };
22387
+ const _c1$a = function (a0, a1) { return { cat: a0, level: a1 }; };
22358
22388
  function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) {
22359
22389
  if (rf & 1) {
22360
22390
  i0.ɵɵelementContainerStart(0);
@@ -22367,7 +22397,7 @@ function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Templ
22367
22397
  i0.ɵɵnextContext();
22368
22398
  const _r1 = i0.ɵɵreference(13);
22369
22399
  i0.ɵɵadvance(1);
22370
- i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c1$9, subcat_r8, level_r6 + 1));
22400
+ i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c1$a, subcat_r8, level_r6 + 1));
22371
22401
  }
22372
22402
  }
22373
22403
  function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) {
@@ -22558,7 +22588,7 @@ function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) {
22558
22588
  }
22559
22589
  }
22560
22590
  const _c0$s = [[["", "trigger", ""]]];
22561
- const _c1$8 = ["[trigger]"];
22591
+ const _c1$9 = ["[trigger]"];
22562
22592
  class CaseFileViewOverlayMenuComponent {
22563
22593
  constructor() {
22564
22594
  this.title = '';
@@ -22572,7 +22602,7 @@ class CaseFileViewOverlayMenuComponent {
22572
22602
  }
22573
22603
  }
22574
22604
  CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
22575
- CaseFileViewOverlayMenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵ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) {
22605
+ CaseFileViewOverlayMenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$9, 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) {
22576
22606
  if (rf & 1) {
22577
22607
  i0.ɵɵprojectionDef(_c0$s);
22578
22608
  i0.ɵɵelementStart(0, "div")(1, "button", 0, 1);
@@ -24833,7 +24863,7 @@ function SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template(rf, ctx) {
24833
24863
  }
24834
24864
  }
24835
24865
  const _c0$n = function (a0) { return { "form-group-error": a0 }; };
24836
- const _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
24866
+ const _c1$8 = function (a0) { return { "govuk-input--error": a0 }; };
24837
24867
  function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) {
24838
24868
  if (rf & 1) {
24839
24869
  i0.ɵɵelementStart(0, "div", 18)(1, "div", 3)(2, "label", 19);
@@ -24855,7 +24885,7 @@ function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) {
24855
24885
  i0.ɵɵadvance(3);
24856
24886
  i0.ɵɵproperty("ngIf", ctx_r7.flagTypeErrorMessage.length > 0);
24857
24887
  i0.ɵɵadvance(1);
24858
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c1$7, ctx_r7.flagTypeErrorMessage.length > 0))("name", ctx_r7.caseFlagFormField.OTHER_FLAG_DESCRIPTION)("formControlName", ctx_r7.caseFlagFormField.OTHER_FLAG_DESCRIPTION);
24888
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c1$8, ctx_r7.flagTypeErrorMessage.length > 0))("name", ctx_r7.caseFlagFormField.OTHER_FLAG_DESCRIPTION)("formControlName", ctx_r7.caseFlagFormField.OTHER_FLAG_DESCRIPTION);
24859
24889
  i0.ɵɵadvance(1);
24860
24890
  i0.ɵɵproperty("ngIf", !ctx_r7.isDisplayContextParameterExternal && !ctx_r7.isCaseLevelFlag && ctx_r7.isDisplayContextParameter2Point1Enabled);
24861
24891
  }
@@ -25425,7 +25455,7 @@ function UpdateFlagComponent_div_22_Template(rf, ctx) {
25425
25455
  i0.ɵɵproperty("ngIf", ctx_r9.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
25426
25456
  }
25427
25457
  }
25428
- const _c1$6 = function (a0) { return { "form-group-error": a0 }; };
25458
+ const _c1$7 = function (a0) { return { "form-group-error": a0 }; };
25429
25459
  class UpdateFlagComponent {
25430
25460
  constructor(rpxTranslationService) {
25431
25461
  this.rpxTranslationService = rpxTranslationService;
@@ -25634,7 +25664,7 @@ UpdateFlagComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateF
25634
25664
  const _r3 = i0.ɵɵreference(17);
25635
25665
  i0.ɵɵproperty("formGroup", ctx.formGroup);
25636
25666
  i0.ɵɵadvance(2);
25637
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c1$6, ctx.errorMessages.length > 0));
25667
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c1$7, ctx.errorMessages.length > 0));
25638
25668
  i0.ɵɵadvance(3);
25639
25669
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 13, ctx.updateFlagTitle), " ");
25640
25670
  i0.ɵɵadvance(2);
@@ -27030,7 +27060,7 @@ const CUSTOM_MOMENT_FORMATS = {
27030
27060
  };
27031
27061
 
27032
27062
  const _c0$g = ["picker"];
27033
- const _c1$5 = ["input"];
27063
+ const _c1$6 = ["input"];
27034
27064
  function DatetimePickerComponent_span_3_Template(rf, ctx) {
27035
27065
  if (rf & 1) {
27036
27066
  i0.ɵɵelementStart(0, "span", 11);
@@ -27094,7 +27124,7 @@ function DatetimePickerComponent_span_7_Template(rf, ctx) {
27094
27124
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "This date is later than the maximum date allowed"));
27095
27125
  }
27096
27126
  }
27097
- const _c2$1 = function (a0) { return { "form-group-error": a0 }; };
27127
+ const _c2$2 = function (a0) { return { "form-group-error": a0 }; };
27098
27128
  class DatetimePickerComponent extends AbstractFormFieldComponent {
27099
27129
  constructor(formatTranslationService, ngxMatDateFormats) {
27100
27130
  super();
@@ -27260,7 +27290,7 @@ DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { re
27260
27290
  DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DatetimePickerComponent, selectors: [["ccd-datetime-picker"]], viewQuery: function DatetimePickerComponent_Query(rf, ctx) {
27261
27291
  if (rf & 1) {
27262
27292
  i0.ɵɵviewQuery(_c0$g, 5);
27263
- i0.ɵɵviewQuery(_c1$5, 5);
27293
+ i0.ɵɵviewQuery(_c1$6, 5);
27264
27294
  }
27265
27295
  if (rf & 2) {
27266
27296
  let _t;
@@ -27296,7 +27326,7 @@ DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Dat
27296
27326
  }
27297
27327
  if (rf & 2) {
27298
27328
  const _r6 = i0.ɵɵreference(13);
27299
- i0.ɵɵproperty("id", ctx.caseField.id)("ngClass", i0.ɵɵpureFunction1(24, _c2$1, ctx.dateControl && !ctx.dateControl.valid && ctx.dateControl.dirty));
27329
+ i0.ɵɵproperty("id", ctx.caseField.id)("ngClass", i0.ɵɵpureFunction1(24, _c2$2, ctx.dateControl && !ctx.dateControl.valid && ctx.dateControl.dirty));
27300
27330
  i0.ɵɵadvance(3);
27301
27331
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
27302
27332
  i0.ɵɵadvance(1);
@@ -27550,7 +27580,7 @@ function EventLogTableComponent_tr_20_div_6_Template(rf, ctx) {
27550
27580
  i0.ɵɵtextInterpolate(ctx_r5.getSignificantItemDesc(event_r1));
27551
27581
  }
27552
27582
  }
27553
- const _c1$4 = function (a0) { return { "EventLogTable-Selected": a0 }; };
27583
+ const _c1$5 = function (a0) { return { "EventLogTable-Selected": a0 }; };
27554
27584
  function EventLogTableComponent_tr_20_Template(rf, ctx) {
27555
27585
  if (rf & 1) {
27556
27586
  const _r18 = i0.ɵɵgetCurrentView();
@@ -27583,7 +27613,7 @@ function EventLogTableComponent_tr_20_Template(rf, ctx) {
27583
27613
  if (rf & 2) {
27584
27614
  const event_r1 = ctx.$implicit;
27585
27615
  const ctx_r0 = i0.ɵɵnextContext();
27586
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(25, _c1$4, ctx_r0.selected === event_r1));
27616
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(25, _c1$5, ctx_r0.selected === event_r1));
27587
27617
  i0.ɵɵattribute("aria-label", ctx_r0.getAriaLabelforRow(event_r1));
27588
27618
  i0.ɵɵadvance(2);
27589
27619
  i0.ɵɵproperty("ngSwitch", ctx_r0.isPartOfCaseTimeline);
@@ -29651,6 +29681,36 @@ function CaseEditSubmitComponent_div_0_ng_container_13_Template(rf, ctx) {
29651
29681
  i0.ɵɵproperty("ngForOf", ctx_r8.showSummaryFields);
29652
29682
  }
29653
29683
  }
29684
+ function CaseEditSubmitComponent_div_0_ng_container_14_span_8_Template(rf, ctx) {
29685
+ if (rf & 1) {
29686
+ i0.ɵɵelementStart(0, "span", 48);
29687
+ i0.ɵɵtext(1);
29688
+ i0.ɵɵpipe(2, "rpxTranslate");
29689
+ i0.ɵɵpipe(3, "ccdFirstError");
29690
+ i0.ɵɵelementEnd();
29691
+ }
29692
+ if (rf & 2) {
29693
+ const ctx_r36 = i0.ɵɵnextContext(3);
29694
+ i0.ɵɵadvance(1);
29695
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r36.summary.errors, ctx_r36.eventSummaryLabel)), " ");
29696
+ }
29697
+ }
29698
+ function CaseEditSubmitComponent_div_0_ng_container_14_span_13_Template(rf, ctx) {
29699
+ if (rf & 1) {
29700
+ i0.ɵɵelementStart(0, "span", 48);
29701
+ i0.ɵɵtext(1);
29702
+ i0.ɵɵpipe(2, "rpxTranslate");
29703
+ i0.ɵɵpipe(3, "ccdFirstError");
29704
+ i0.ɵɵelementEnd();
29705
+ }
29706
+ if (rf & 2) {
29707
+ const ctx_r37 = i0.ɵɵnextContext(3);
29708
+ i0.ɵɵadvance(1);
29709
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r37.description.errors, ctx_r37.eventDescriptionLabel)), " ");
29710
+ }
29711
+ }
29712
+ const _c1$4 = function (a0) { return { "form-group-error": a0 }; };
29713
+ const _c2$1 = function (a0) { return { "govuk-input--error": a0 }; };
29654
29714
  function CaseEditSubmitComponent_div_0_ng_container_14_Template(rf, ctx) {
29655
29715
  if (rf & 1) {
29656
29716
  i0.ɵɵelementContainerStart(0);
@@ -29661,21 +29721,38 @@ function CaseEditSubmitComponent_div_0_ng_container_14_Template(rf, ctx) {
29661
29721
  i0.ɵɵelementStart(6, "span", 43);
29662
29722
  i0.ɵɵtext(7, "A few words describing the purpose of the event.");
29663
29723
  i0.ɵɵelementEnd()();
29664
- i0.ɵɵelement(8, "input", 44);
29724
+ i0.ɵɵtemplate(8, CaseEditSubmitComponent_div_0_ng_container_14_span_8_Template, 4, 6, "span", 44);
29725
+ i0.ɵɵelement(9, "input", 45);
29665
29726
  i0.ɵɵelementEnd();
29666
- i0.ɵɵelementStart(9, "div", 41)(10, "label", 45);
29667
- i0.ɵɵtext(11, "Event description (optional)");
29727
+ i0.ɵɵelementStart(10, "div", 41)(11, "label", 46);
29728
+ i0.ɵɵtext(12, "Event description (optional)");
29668
29729
  i0.ɵɵelementEnd();
29669
- i0.ɵɵelement(12, "textarea", 46);
29730
+ i0.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_14_span_13_Template, 4, 6, "span", 44);
29731
+ i0.ɵɵelement(14, "textarea", 47);
29670
29732
  i0.ɵɵelementEnd()();
29671
29733
  i0.ɵɵelementContainerEnd();
29672
29734
  }
29735
+ if (rf & 2) {
29736
+ const ctx_r9 = i0.ɵɵnextContext(2);
29737
+ i0.ɵɵadvance(3);
29738
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c1$4, !!ctx_r9.summary && !ctx_r9.summary.valid && (ctx_r9.summary.dirty || ctx_r9.summary.touched)));
29739
+ i0.ɵɵadvance(5);
29740
+ i0.ɵɵproperty("ngIf", (ctx_r9.summary == null ? null : ctx_r9.summary.errors) && (ctx_r9.summary.dirty || ctx_r9.summary.touched));
29741
+ i0.ɵɵadvance(1);
29742
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c2$1, (ctx_r9.summary == null ? null : ctx_r9.summary.errors) && (ctx_r9.summary.dirty || ctx_r9.summary.touched)));
29743
+ i0.ɵɵadvance(1);
29744
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$4, !!ctx_r9.description && !ctx_r9.description.valid && (ctx_r9.description.dirty || ctx_r9.description.touched)));
29745
+ i0.ɵɵadvance(3);
29746
+ i0.ɵɵproperty("ngIf", (ctx_r9.description == null ? null : ctx_r9.description.errors) && (ctx_r9.description.dirty || ctx_r9.description.touched));
29747
+ i0.ɵɵadvance(1);
29748
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c2$1, (ctx_r9.description == null ? null : ctx_r9.description.errors) && (ctx_r9.description.dirty || ctx_r9.description.touched)));
29749
+ }
29673
29750
  }
29674
29751
  function CaseEditSubmitComponent_div_0_button_16_Template(rf, ctx) {
29675
29752
  if (rf & 1) {
29676
- const _r37 = i0.ɵɵgetCurrentView();
29677
- i0.ɵɵelementStart(0, "button", 47);
29678
- i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_button_16_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r37); const ctx_r36 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r36.previous()); });
29753
+ const _r39 = i0.ɵɵgetCurrentView();
29754
+ i0.ɵɵelementStart(0, "button", 49);
29755
+ i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_button_16_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r39); const ctx_r38 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r38.previous()); });
29679
29756
  i0.ɵɵtext(1);
29680
29757
  i0.ɵɵpipe(2, "rpxTranslate");
29681
29758
  i0.ɵɵelementEnd();
@@ -29689,7 +29766,7 @@ function CaseEditSubmitComponent_div_0_button_16_Template(rf, ctx) {
29689
29766
  }
29690
29767
  function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
29691
29768
  if (rf & 1) {
29692
- const _r39 = i0.ɵɵgetCurrentView();
29769
+ const _r41 = i0.ɵɵgetCurrentView();
29693
29770
  i0.ɵɵelementStart(0, "div")(1, "h1", 2);
29694
29771
  i0.ɵɵtext(2);
29695
29772
  i0.ɵɵpipe(3, "rpxTranslate");
@@ -29699,13 +29776,13 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
29699
29776
  i0.ɵɵtemplate(7, CaseEditSubmitComponent_div_0_ng_template_7_Template, 1, 1, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
29700
29777
  i0.ɵɵelement(9, "ccd-case-edit-generic-errors", 6);
29701
29778
  i0.ɵɵelementStart(10, "ccd-callback-errors", 7);
29702
- i0.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0.ɵɵrestoreView(_r39); const ctx_r38 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r38.callbackErrorsNotify($event)); });
29779
+ i0.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0.ɵɵrestoreView(_r41); const ctx_r40 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r40.callbackErrorsNotify($event)); });
29703
29780
  i0.ɵɵelementEnd();
29704
29781
  i0.ɵɵelementStart(11, "form", 8);
29705
- i0.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0.ɵɵrestoreView(_r39); const ctx_r40 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r40.submit()); });
29782
+ i0.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0.ɵɵrestoreView(_r41); const ctx_r42 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r42.submit()); });
29706
29783
  i0.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 8, 5, "ng-container", 0);
29707
29784
  i0.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 4, 1, "ng-container", 0);
29708
- i0.ɵɵtemplate(14, CaseEditSubmitComponent_div_0_ng_container_14_Template, 13, 0, "ng-container", 0);
29785
+ i0.ɵɵtemplate(14, CaseEditSubmitComponent_div_0_ng_container_14_Template, 15, 14, "ng-container", 0);
29709
29786
  i0.ɵɵelementStart(15, "div", 9);
29710
29787
  i0.ɵɵtemplate(16, CaseEditSubmitComponent_div_0_button_16_Template, 3, 4, "button", 10);
29711
29788
  i0.ɵɵelementStart(17, "button", 11);
@@ -29713,7 +29790,7 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
29713
29790
  i0.ɵɵpipe(19, "rpxTranslate");
29714
29791
  i0.ɵɵelementEnd()();
29715
29792
  i0.ɵɵelementStart(20, "p", 12)(21, "a", 13);
29716
- i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_21_listener() { i0.ɵɵrestoreView(_r39); const ctx_r41 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r41.cancel()); });
29793
+ i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_21_listener() { i0.ɵɵrestoreView(_r41); const ctx_r43 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r43.cancel()); });
29717
29794
  i0.ɵɵtext(22);
29718
29795
  i0.ɵɵpipe(23, "rpxTranslate");
29719
29796
  i0.ɵɵelementEnd()()()();
@@ -29752,9 +29829,9 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
29752
29829
  }
29753
29830
  function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) {
29754
29831
  if (rf & 1) {
29755
- const _r43 = i0.ɵɵgetCurrentView();
29756
- i0.ɵɵelementStart(0, "ccd-case-event-completion", 48);
29757
- i0.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0.ɵɵrestoreView(_r43); const ctx_r42 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r42.onEventCanBeCompleted($event)); });
29832
+ const _r45 = i0.ɵɵgetCurrentView();
29833
+ i0.ɵɵelementStart(0, "ccd-case-event-completion", 50);
29834
+ i0.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0.ɵɵrestoreView(_r45); const ctx_r44 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r44.onEventCanBeCompleted($event)); });
29758
29835
  i0.ɵɵelementEnd();
29759
29836
  }
29760
29837
  if (rf & 2) {
@@ -29764,14 +29841,17 @@ function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) {
29764
29841
  }
29765
29842
  // @dynamic
29766
29843
  class CaseEditSubmitComponent {
29767
- constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier) {
29844
+ constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier, formValidatorsService) {
29768
29845
  this.caseEdit = caseEdit;
29769
29846
  this.fieldsUtils = fieldsUtils;
29770
29847
  this.caseFieldService = caseFieldService;
29771
29848
  this.route = route;
29772
29849
  this.orderService = orderService;
29773
29850
  this.profileNotifier = profileNotifier;
29851
+ this.formValidatorsService = formValidatorsService;
29774
29852
  this.paletteContext = PaletteContext.CHECK_YOUR_ANSWER;
29853
+ this.eventSummaryLabel = 'Event summary';
29854
+ this.eventDescriptionLabel = 'Event description';
29775
29855
  }
29776
29856
  get isDisabled() {
29777
29857
  // EUI-3452.
@@ -29782,7 +29862,7 @@ class CaseEditSubmitComponent {
29782
29862
  }
29783
29863
  ngOnInit() {
29784
29864
  var _a, _b, _c;
29785
- this.profileSubscription = this.profileNotifier.profile.subscribe(_ => this.profile = _);
29865
+ this.profileSubscription = this.profileNotifier.profile.subscribe((_) => this.profile = _);
29786
29866
  this.eventTrigger = this.caseEdit.eventTrigger;
29787
29867
  this.triggerText = this.eventTrigger.end_button_label || CallbackErrorsComponent.TRIGGER_TEXT_SUBMIT;
29788
29868
  this.editForm = this.caseEdit.form;
@@ -29795,10 +29875,12 @@ class CaseEditSubmitComponent {
29795
29875
  // Indicates if the submission is for a Case Flag, as opposed to a "regular" form submission, by the presence of
29796
29876
  // a FlagLauncher field in the event trigger
29797
29877
  this.caseEdit.isCaseFlagSubmission =
29798
- this.eventTrigger.case_fields.some(caseField => FieldsUtils.isCaseFieldOfType(caseField, ['FlagLauncher']));
29878
+ this.eventTrigger.case_fields.some((caseField) => FieldsUtils.isCaseFieldOfType(caseField, ['FlagLauncher']));
29799
29879
  this.caseEdit.isLinkedCasesSubmission =
29800
29880
  this.eventTrigger.case_fields.some(caseField => FieldsUtils.isCaseFieldOfType(caseField, ['ComponentLauncher']));
29801
29881
  this.pageTitle = this.getPageTitle();
29882
+ this.summary = this.formValidatorsService.addMarkDownValidators(this.editForm, 'event.summary');
29883
+ this.description = this.formValidatorsService.addMarkDownValidators(this.editForm, 'event.description');
29802
29884
  }
29803
29885
  ngOnDestroy() {
29804
29886
  /* istanbul ignore else */
@@ -29807,12 +29889,14 @@ class CaseEditSubmitComponent {
29807
29889
  }
29808
29890
  }
29809
29891
  submit() {
29810
- this.caseEdit.submitForm({
29811
- eventTrigger: this.eventTrigger,
29812
- form: this.editForm,
29813
- submit: this.caseEdit.submit,
29814
- caseDetails: this.caseEdit.caseDetails,
29815
- });
29892
+ if (this.summary.valid && this.description.valid) {
29893
+ this.caseEdit.submitForm({
29894
+ eventTrigger: this.eventTrigger,
29895
+ form: this.editForm,
29896
+ submit: this.caseEdit.submit,
29897
+ caseDetails: this.caseEdit.caseDetails
29898
+ });
29899
+ }
29816
29900
  }
29817
29901
  onEventCanBeCompleted(eventCanBeCompleted) {
29818
29902
  this.caseEdit.onEventCanBeCompleted({
@@ -29820,7 +29904,7 @@ class CaseEditSubmitComponent {
29820
29904
  eventCanBeCompleted,
29821
29905
  caseDetails: this.caseEdit.caseDetails,
29822
29906
  form: this.editForm,
29823
- submit: this.caseEdit.submit,
29907
+ submit: this.caseEdit.submit
29824
29908
  });
29825
29909
  }
29826
29910
  getPageTitle() {
@@ -29896,7 +29980,7 @@ class CaseEditSubmitComponent {
29896
29980
  }
29897
29981
  }
29898
29982
  readOnlySummaryFieldsToDisplayExists() {
29899
- return this.eventTrigger.case_fields.some(field => field.show_summary_content_option >= 0);
29983
+ return this.eventTrigger.case_fields.some((field) => field.show_summary_content_option >= 0);
29900
29984
  }
29901
29985
  showEventNotes() {
29902
29986
  var _a;
@@ -29912,7 +29996,7 @@ class CaseEditSubmitComponent {
29912
29996
  }
29913
29997
  getLastPageShown() {
29914
29998
  let lastPage;
29915
- this.wizard.reverse().forEach(page => {
29999
+ this.wizard.reverse().forEach((page) => {
29916
30000
  if (!lastPage && this.isShown(page)) {
29917
30001
  lastPage = page;
29918
30002
  }
@@ -29931,7 +30015,7 @@ class CaseEditSubmitComponent {
29931
30015
  }
29932
30016
  isShown(page) {
29933
30017
  const fields = this.fieldsUtils
29934
- .mergeCaseFieldsAndFormFields(this.eventTrigger.case_fields, this.editForm.controls['data'].value);
30018
+ .mergeCaseFieldsAndFormFields(this.eventTrigger.case_fields, this.editForm.controls.data.value);
29935
30019
  return page.parsedShowCondition.match(fields);
29936
30020
  }
29937
30021
  canShowFieldInCYA(field) {
@@ -29940,7 +30024,7 @@ class CaseEditSubmitComponent {
29940
30024
  sortFieldsByShowSummaryContent(fields) {
29941
30025
  return this.orderService
29942
30026
  .sort(fields, CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION)
29943
- .filter(cf => cf.show_summary_content_option);
30027
+ .filter((cf) => cf.show_summary_content_option);
29944
30028
  }
29945
30029
  getCaseFields() {
29946
30030
  if (this.caseEdit.caseDetails) {
@@ -29959,9 +30043,7 @@ class CaseEditSubmitComponent {
29959
30043
  if (this.eventTrigger.can_save_draft) {
29960
30044
  return 'Return to case list';
29961
30045
  }
29962
- else {
29963
- return 'Cancel';
29964
- }
30046
+ return 'Cancel';
29965
30047
  }
29966
30048
  }
29967
30049
  CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION = (a, b) => {
@@ -29975,8 +30057,8 @@ CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION = (a, b) => {
29975
30057
  }
29976
30058
  return a.show_summary_content_option - b.show_summary_content_option;
29977
30059
  };
29978
- CaseEditSubmitComponent.ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
29979
- CaseEditSubmitComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], [3, "error"], [3, "callbackErrorsSubject", "callbackErrorsContext"], [1, "check-your-answers", 3, "formGroup", "submit"], [1, "form-group", "form-group-related"], ["class", "button button-secondary", "type", "button", 3, "disabled", "click", 4, "ngIf"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "caseFields"], [1, "valign-top", "case-field-label"], [1, "valign-top", "check-your-answers__change", "case-field-change"], ["href", "javascript:void(0)", 3, "click", 4, "ngIf"], ["aria-describedby", "summary fields table", 1, "summary-fields"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["class", "compound-field", "ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], ["id", "summary-field-label"], [1, "form-cell"], [3, "formGroup", "caseField"], ["ccdLabelSubstitutor", "", 1, "compound-field", 3, "caseField", "formGroup", "contextFields"], ["colspan", "2"], [3, "formGroup", "caseField", "caseFields"], ["id", "fieldset-event", "formGroupName", "event"], [2, "display", "none"], [1, "form-group"], ["for", "field-trigger-summary", 1, "form-label"], [1, "form-hint"], ["type", "text", "id", "field-trigger-summary", "formControlName", "summary", "maxlength", "1024", 1, "form-control", "bottom-30", "width-50"], ["for", "field-trigger-description", 1, "form-label"], ["id", "field-trigger-description", "formControlName", "description", "maxlength", "65536", 1, "form-control", "bottom-30", "width-50"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditSubmitComponent_Template(rf, ctx) {
30060
+ CaseEditSubmitComponent.ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ProfileNotifier), i0.ɵɵdirectiveInject(FormValidatorsService)); };
30061
+ CaseEditSubmitComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], [3, "error"], [3, "callbackErrorsSubject", "callbackErrorsContext"], [1, "check-your-answers", 3, "formGroup", "submit"], [1, "form-group", "form-group-related"], ["class", "button button-secondary", "type", "button", 3, "disabled", "click", 4, "ngIf"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "caseFields"], [1, "valign-top", "case-field-label"], [1, "valign-top", "check-your-answers__change", "case-field-change"], ["href", "javascript:void(0)", 3, "click", 4, "ngIf"], ["aria-describedby", "summary fields table", 1, "summary-fields"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["class", "compound-field", "ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], ["id", "summary-field-label"], [1, "form-cell"], [3, "formGroup", "caseField"], ["ccdLabelSubstitutor", "", 1, "compound-field", 3, "caseField", "formGroup", "contextFields"], ["colspan", "2"], [3, "formGroup", "caseField", "caseFields"], ["id", "fieldset-event", "formGroupName", "event"], [2, "display", "none"], [1, "form-group", 3, "ngClass"], ["for", "field-trigger-summary", 1, "form-label"], [1, "form-hint"], ["class", "error-message", 4, "ngIf"], ["type", "text", "id", "field-trigger-summary", "formControlName", "summary", "maxlength", "1024", 1, "form-control", "bottom-30", "width-50", 3, "ngClass"], ["for", "field-trigger-description", 1, "form-label"], ["id", "field-trigger-description", "formControlName", "description", "maxlength", "65536", 1, "form-control", "bottom-30", "width-50", 3, "ngClass"], [1, "error-message"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditSubmitComponent_Template(rf, ctx) {
29980
30062
  if (rf & 1) {
29981
30063
  i0.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 24, 22, "div", 0);
29982
30064
  i0.ɵɵtemplate(1, CaseEditSubmitComponent_ccd_case_event_completion_1_Template, 1, 1, "ccd-case-event-completion", 1);
@@ -29990,8 +30072,8 @@ CaseEditSubmitComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Cas
29990
30072
  (function () {
29991
30073
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditSubmitComponent, [{
29992
30074
  type: Component,
29993
- args: [{ selector: 'ccd-case-edit-submit', template: "<div *ngIf=\"!caseEdit.isEventCompletionChecksRequired\">\n <!-- Event trigger name -->\n <h1 class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n\n <!--Case ID or Title -->\n <div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n <ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: contextFields : editForm.controls['data']\"></ccd-markdown>\n </ng-template>\n <ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n </ng-template>\n\n <ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n <ccd-callback-errors [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\"></ccd-callback-errors>\n\n <form class=\"check-your-answers\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\n\n <h2 class=\"heading-h2\">{{pageTitle | rpxTranslate }}</h2>\n <span class=\"text-16\" *ngIf=\"!caseEdit.isCaseFlagSubmission\">{{'Check the information below carefully.' | rpxTranslate}}</span>\n\n <table class=\"form-table\" aria-describedby=\"check your answers table\">\n <tbody>\n <ng-container *ngFor=\"let page of wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm\n | ccdReadFieldsFilter: false :undefined :true :allFieldsValues\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field) && !caseEdit.isCaseFlagSubmission\" class=\"valign-top case-field-label\">\n <span class=\"text-16\">{{field.label | rpxTranslate}}</span>\n </th>\n <td class=\"form-cell case-field-content\" [attr.colspan]=\"isLabel(field) ? '2' : '1'\">\n <ccd-field-read\n [formGroup]=\"editForm.controls['data']\" [topLevelFormGroup]=\"editForm.controls['data']\"\n [caseField]=\"summaryCaseField(field)\" [context]=\"paletteContext\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n <ng-container *ngIf=\"!caseEdit.isCaseFlagSubmission\">\n <td class=\"valign-top check-your-answers__change case-field-change\">\n <a *ngIf=\"isChangeAllowed(field)\" (click)=\"navigateToPage(page.id)\"\n href=\"javascript:void(0)\">\n <span class=\"text-16\" attr.aria-label=\"{{'Change' | rpxTranslate}} {{ field.label | rpxTranslate }}\">\n {{'Change' | rpxTranslate}}\n </span>\n </a>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"readOnlySummaryFieldsToDisplayExists()\">\n\n <table class=\"summary-fields\" aria-describedby=\"summary fields table\">\n <tbody>\n <ng-container *ngFor=\"let field of showSummaryFields\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th id=\"summary-field-label\">{{field.label}}</th>\n <td class=\"form-cell\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\"></ccd-field-read>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <td colspan=\"2\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"showEventNotes()\">\n <fieldset id=\"fieldset-event\" formGroupName=\"event\">\n <legend style=\"display: none;\"></legend>\n <div class=\"form-group\">\n <label for=\"field-trigger-summary\" class=\"form-label\">\n Event summary (optional)\n <span class=\"form-hint\">A few words describing the purpose of the event.</span>\n </label>\n <input type=\"text\" id=\"field-trigger-summary\" class=\"form-control bottom-30 width-50\" formControlName=\"summary\" maxlength=\"1024\">\n </div>\n <div class=\"form-group\">\n <label for=\"field-trigger-description\" class=\"form-label\">Event description (optional)</label>\n <textarea id=\"field-trigger-description\" class=\"form-control bottom-30 width-50\" formControlName=\"description\"\n maxlength=\"65536\"></textarea>\n </div>\n </fieldset>\n </ng-container>\n <div class=\"form-group form-group-related\">\n <button *ngIf=\"!caseEdit.isCaseFlagSubmission\" class=\"button button-secondary\" type=\"button\" [disabled]=\"!hasPrevious() || caseEdit.isSubmitting\" (click)=\"previous()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button type=\"submit\" [disabled]=\"isDisabled\" class=\"button\">\n {{triggerText | rpxTranslate}}\n </button>\n </div>\n <p class=\"cancel\">\n <a (click)=\"cancel()\" href=\"javascript:void(0)\" [class.disabled]=\"caseEdit.isSubmitting\">{{getCancelText() | rpxTranslate}}</a>\n </p>\n </form>\n</div>\n<ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n</ccd-case-event-completion>\n", styles: ["#fieldset-case-data{margin-bottom:30px}#fieldset-case-data th{width:1%;white-space:nowrap;vertical-align:top}.compound-field td{padding:0}#confirmation-header{width:630px;background-color:#17958b;border:solid 1px #979797;color:#fff;text-align:center}#confirmation-body{width:630px;background-color:#fff}.valign-top{vertical-align:top}.summary-fields{margin-bottom:30px}.summary-fields tbody tr th,.summary-fields tbody tr td{border-bottom:0px}a.disabled{pointer-events:none;cursor:default}.case-field-label{width:45%}.case-field-content{width:50%}.no-bottom-border{border-bottom:none}.case-field-change{width:5%}\n"] }]
29994
- }], function () { return [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }]; }, null);
30075
+ args: [{ selector: 'ccd-case-edit-submit', template: "<div *ngIf=\"!caseEdit.isEventCompletionChecksRequired\">\n <!-- Event trigger name -->\n <h1 class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n\n <!--Case ID or Title -->\n <div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n <ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: contextFields : editForm.controls['data']\"></ccd-markdown>\n </ng-template>\n <ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n </ng-template>\n\n <ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n <ccd-callback-errors [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\"></ccd-callback-errors>\n\n <form class=\"check-your-answers\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\n\n <h2 class=\"heading-h2\">{{pageTitle | rpxTranslate }}</h2>\n <span class=\"text-16\" *ngIf=\"!caseEdit.isCaseFlagSubmission\">{{'Check the information below carefully.' | rpxTranslate}}</span>\n\n <table class=\"form-table\" aria-describedby=\"check your answers table\">\n <tbody>\n <ng-container *ngFor=\"let page of wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm\n | ccdReadFieldsFilter: false :undefined :true :allFieldsValues\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field) && !caseEdit.isCaseFlagSubmission\" class=\"valign-top case-field-label\">\n <span class=\"text-16\">{{field.label | rpxTranslate}}</span>\n </th>\n <td class=\"form-cell case-field-content\" [attr.colspan]=\"isLabel(field) ? '2' : '1'\">\n <ccd-field-read\n [formGroup]=\"editForm.controls['data']\" [topLevelFormGroup]=\"editForm.controls['data']\"\n [caseField]=\"summaryCaseField(field)\" [context]=\"paletteContext\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n <ng-container *ngIf=\"!caseEdit.isCaseFlagSubmission\">\n <td class=\"valign-top check-your-answers__change case-field-change\">\n <a *ngIf=\"isChangeAllowed(field)\" (click)=\"navigateToPage(page.id)\"\n href=\"javascript:void(0)\">\n <span class=\"text-16\" attr.aria-label=\"{{'Change' | rpxTranslate}} {{ field.label | rpxTranslate }}\">\n {{'Change' | rpxTranslate}}\n </span>\n </a>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"readOnlySummaryFieldsToDisplayExists()\">\n\n <table class=\"summary-fields\" aria-describedby=\"summary fields table\">\n <tbody>\n <ng-container *ngFor=\"let field of showSummaryFields\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th id=\"summary-field-label\">{{field.label}}</th>\n <td class=\"form-cell\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\"></ccd-field-read>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <td colspan=\"2\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"showEventNotes()\">\n <fieldset id=\"fieldset-event\" formGroupName=\"event\">\n <legend style=\"display: none;\"></legend>\n <div class=\"form-group\" [ngClass]=\"{'form-group-error': !!summary && !summary.valid && (summary.dirty || summary.touched)}\">\n <label for=\"field-trigger-summary\" class=\"form-label\">\n Event summary (optional)\n <span class=\"form-hint\">A few words describing the purpose of the event.</span>\n </label>\n <span class=\"error-message\" *ngIf=\"summary?.errors && (summary.dirty || summary.touched)\">\n {{summary.errors | ccdFirstError: eventSummaryLabel | rpxTranslate}}\n </span>\n <input type=\"text\" id=\"field-trigger-summary\" class=\"form-control bottom-30 width-50\"\n [ngClass]=\"{'govuk-input--error': summary?.errors && (summary.dirty || summary.touched)}\" formControlName=\"summary\" maxlength=\"1024\">\n </div>\n <div class=\"form-group\" [ngClass]=\"{'form-group-error': !!description && !description.valid && (description.dirty || description.touched)}\">\n <label for=\"field-trigger-description\" class=\"form-label\">Event description (optional)</label>\n <span class=\"error-message\" *ngIf=\"description?.errors && (description.dirty || description.touched)\">\n {{description.errors | ccdFirstError: eventDescriptionLabel | rpxTranslate}}\n </span>\n <textarea id=\"field-trigger-description\" class=\"form-control bottom-30 width-50\" formControlName=\"description\"\n [ngClass]=\"{'govuk-input--error': description?.errors && (description.dirty || description.touched)}\" maxlength=\"65536\"></textarea>\n </div>\n </fieldset>\n </ng-container>\n <div class=\"form-group form-group-related\">\n <button *ngIf=\"!caseEdit.isCaseFlagSubmission\" class=\"button button-secondary\" type=\"button\" [disabled]=\"!hasPrevious() || caseEdit.isSubmitting\" (click)=\"previous()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button type=\"submit\" [disabled]=\"isDisabled\" class=\"button\">\n {{triggerText | rpxTranslate}}\n </button>\n </div>\n <p class=\"cancel\">\n <a (click)=\"cancel()\" href=\"javascript:void(0)\" [class.disabled]=\"caseEdit.isSubmitting\">{{getCancelText() | rpxTranslate}}</a>\n </p>\n </form>\n</div>\n<ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n</ccd-case-event-completion>\n", styles: ["#fieldset-case-data{margin-bottom:30px}#fieldset-case-data th{width:1%;white-space:nowrap;vertical-align:top}.compound-field td{padding:0}#confirmation-header{width:630px;background-color:#17958b;border:solid 1px #979797;color:#fff;text-align:center}#confirmation-body{width:630px;background-color:#fff}.valign-top{vertical-align:top}.summary-fields{margin-bottom:30px}.summary-fields tbody tr th,.summary-fields tbody tr td{border-bottom:0px}a.disabled{pointer-events:none;cursor:default}.case-field-label{width:45%}.case-field-content{width:50%}.no-bottom-border{border-bottom:none}.case-field-change{width:5%}\n"] }]
30076
+ }], function () { return [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }, { type: FormValidatorsService }]; }, null);
29995
30077
  })();
29996
30078
 
29997
30079
  function CaseProgressComponent_div_0_Template(rf, ctx) {
@@ -30389,7 +30471,7 @@ i0.ɵɵsetComponentScope(CaseEditPageComponent, function () {
30389
30471
  CaseEditGenericErrorsComponent];
30390
30472
  }, function () { return [i4.AsyncPipe, CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
30391
30473
  i0.ɵɵsetComponentScope(CaseEditFormComponent, function () { return [i4.NgForOf, i4.NgIf, i4.NgSwitch, i4.NgSwitchCase, i3.NgControlStatusGroup, i3.FormGroupDirective, LabelSubstitutorDirective, ConditionalShowFormDirective, FieldReadComponent, FieldWriteComponent]; }, function () { return [IsCompoundPipe, IsReadOnlyAndNotCollectionPipe]; });
30392
- i0.ɵɵsetComponentScope(CaseEditSubmitComponent, function () { return [i4.NgForOf, i4.NgIf, i4.NgSwitch, i4.NgSwitchCase, i3.ɵNgNoValidate, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.MaxLengthValidator, i3.FormGroupDirective, i3.FormControlName, i3.FormGroupName, LabelSubstitutorDirective, CallbackErrorsComponent, MarkdownComponent, FieldReadComponent, CaseEventCompletionComponent, CaseEditGenericErrorsComponent]; }, function () { return [IsCompoundPipe, CaseReferencePipe, CcdCaseTitlePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, i1.RpxTranslatePipe]; });
30474
+ i0.ɵɵsetComponentScope(CaseEditSubmitComponent, function () { return [i4.NgClass, i4.NgForOf, i4.NgIf, i4.NgSwitch, i4.NgSwitchCase, i3.ɵNgNoValidate, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.MaxLengthValidator, i3.FormGroupDirective, i3.FormControlName, i3.FormGroupName, LabelSubstitutorDirective, CallbackErrorsComponent, MarkdownComponent, FieldReadComponent, CaseEventCompletionComponent, CaseEditGenericErrorsComponent]; }, function () { return [FirstErrorPipe, IsCompoundPipe, CaseReferencePipe, CcdCaseTitlePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, i1.RpxTranslatePipe]; });
30393
30475
  i0.ɵɵsetComponentScope(CaseCreateComponent, function () { return [i4.NgIf, CaseEditComponent]; }, []);
30394
30476
  i0.ɵɵsetComponentScope(CaseProgressComponent, function () { return [i4.NgIf, CaseEditComponent]; }, []);
30395
30477