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

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 (21) hide show
  1. package/esm2020/lib/shared/components/case-editor/case-edit/case-edit.component.mjs +2 -2
  2. package/esm2020/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +38 -83
  3. package/esm2020/lib/shared/components/case-editor/case-editor.module.mjs +5 -6
  4. package/esm2020/lib/shared/components/palette/base-field/abstract-form-field.component.mjs +1 -1
  5. package/esm2020/lib/shared/components/palette/text/write-text-field.component.mjs +1 -1
  6. package/esm2020/lib/shared/components/palette/utils/first-error.pipe.mjs +1 -4
  7. package/esm2020/lib/shared/services/form/form-validators.service.mjs +2 -27
  8. package/esm2020/lib/shared/services/form/form-value.service.mjs +7 -10
  9. package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +102 -187
  10. package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
  11. package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +102 -178
  12. package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
  13. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +3 -8
  14. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
  15. package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts.map +1 -1
  16. package/lib/shared/components/palette/utils/first-error.pipe.d.ts.map +1 -1
  17. package/lib/shared/services/form/form-validators.service.d.ts +0 -2
  18. package/lib/shared/services/form/form-validators.service.d.ts.map +1 -1
  19. package/lib/shared/services/form/form-value.service.d.ts +1 -1
  20. package/lib/shared/services/form/form-value.service.d.ts.map +1 -1
  21. package/package.json +1 -1
@@ -126,11 +126,11 @@ function FooterComponent_div_3_Template(rf, ctx) { if (rf & 1) {
126
126
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(18, 13, ctx_r1.workhours));
127
127
  } }
128
128
  const _c0$13 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
129
- const _c1$u = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
129
+ const _c1$t = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
130
130
  class FooterComponent {
131
131
  }
132
132
  FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
133
- 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) { if (rf & 1) {
133
+ 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) { if (rf & 1) {
134
134
  i0.ɵɵprojectionDef(_c0$13);
135
135
  i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
136
136
  i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2);
@@ -190,7 +190,7 @@ function HeaderBarComponent_div_10_Template(rf, ctx) { if (rf & 1) {
190
190
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 1, ctx_r2.title));
191
191
  } }
192
192
  const _c0$12 = [[["", "headerNavigation", ""]]];
193
- const _c1$t = ["[headerNavigation]"];
193
+ const _c1$s = ["[headerNavigation]"];
194
194
  class HeaderBarComponent {
195
195
  constructor() {
196
196
  this.signOutRequest = new EventEmitter();
@@ -200,7 +200,7 @@ class HeaderBarComponent {
200
200
  }
201
201
  }
202
202
  HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
203
- 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) { if (rf & 1) {
203
+ 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) { if (rf & 1) {
204
204
  i0.ɵɵprojectionDef(_c0$12);
205
205
  i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
206
206
  i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 5, 3, "div", 3);
@@ -251,11 +251,11 @@ HeaderBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBa
251
251
  }] }); })();
252
252
 
253
253
  const _c0$11 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
254
- const _c1$s = ["[leftNavLinks]", "[rightNavLinks]"];
254
+ const _c1$r = ["[leftNavLinks]", "[rightNavLinks]"];
255
255
  class NavigationComponent {
256
256
  }
257
257
  NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
258
- 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) { if (rf & 1) {
258
+ 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) { if (rf & 1) {
259
259
  i0.ɵɵprojectionDef(_c0$11);
260
260
  i0.ɵɵelementStart(0, "div")(1, "nav", 0);
261
261
  i0.ɵɵprojection(2);
@@ -366,11 +366,11 @@ HeadersModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModu
366
366
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
367
367
 
368
368
  const _c0$10 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
369
- const _c1$r = ["[topBody]", "[leftBody]", "[rightBody]"];
369
+ const _c1$q = ["[topBody]", "[leftBody]", "[rightBody]"];
370
370
  class BodyComponent {
371
371
  }
372
372
  BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
373
- 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) { if (rf & 1) {
373
+ 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) { if (rf & 1) {
374
374
  i0.ɵɵprojectionDef(_c0$10);
375
375
  i0.ɵɵelementStart(0, "div", 0);
376
376
  i0.ɵɵprojection(1);
@@ -980,11 +980,11 @@ NotificationBannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
980
980
  }] }); })();
981
981
 
982
982
  const _c0$Z = function (a0) { return { "js-hidden": a0 }; };
983
- const _c1$q = ["*"];
983
+ const _c1$p = ["*"];
984
984
  class TabComponent {
985
985
  }
986
986
  TabComponent.ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
987
- 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) { if (rf & 1) {
987
+ 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) { if (rf & 1) {
988
988
  i0.ɵɵprojectionDef();
989
989
  i0.ɵɵelementStart(0, "div", 0);
990
990
  i0.ɵɵprojection(1);
@@ -1005,8 +1005,8 @@ TabComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent,
1005
1005
  }] }); })();
1006
1006
 
1007
1007
  const _c0$Y = ["tab"];
1008
- const _c1$p = function () { return ["."]; };
1009
- const _c2$4 = function (a0) { return { "tabs-toggle-selected": a0 }; };
1008
+ const _c1$o = function () { return ["."]; };
1009
+ const _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
1010
1010
  function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
1011
1011
  const _r4 = i0.ɵɵgetCurrentView();
1012
1012
  i0.ɵɵelementStart(0, "li", 4)(1, "a", 5, 6);
@@ -1017,7 +1017,7 @@ function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
1017
1017
  } if (rf & 2) {
1018
1018
  const panel_r1 = ctx.$implicit;
1019
1019
  i0.ɵɵadvance(1);
1020
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction0(8, _c1$p))("fragment", panel_r1.id)("ngClass", i0.ɵɵpureFunction1(9, _c2$4, panel_r1.selected));
1020
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction0(8, _c1$o))("fragment", panel_r1.id)("ngClass", i0.ɵɵpureFunction1(9, _c2$3, panel_r1.selected));
1021
1021
  i0.ɵɵattribute("aria-controls", panel_r1.id)("aria-selected", panel_r1.selected);
1022
1022
  i0.ɵɵadvance(2);
1023
1023
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 6, panel_r1.title));
@@ -2729,9 +2729,6 @@ class FirstErrorPipe {
2729
2729
  else if (keys[0] === 'pattern') {
2730
2730
  errorMessage = 'The data entered is not valid for %FIELDLABEL%';
2731
2731
  }
2732
- else if (keys[0] === 'markDownPattern') {
2733
- errorMessage = 'The data entered is not valid for %FIELDLABEL%. Link mark up characters are not allowed in this field';
2734
- }
2735
2732
  else if (keys[0] === 'minlength') {
2736
2733
  errorMessage = '%FIELDLABEL% is below the minimum length';
2737
2734
  }
@@ -4548,7 +4545,6 @@ class FormValidatorsService {
4548
4545
  FormValidatorsService.CUSTOM_VALIDATED_TYPES.indexOf(caseField.field_type.type) === -1) {
4549
4546
  const validators = [Validators.required];
4550
4547
  if (caseField.field_type.type === 'Text') {
4551
- validators.push(this.markDownPatternValidator());
4552
4548
  if (caseField.field_type.regular_expression) {
4553
4549
  validators.push(Validators.pattern(caseField.field_type.regular_expression));
4554
4550
  }
@@ -4562,38 +4558,22 @@ class FormValidatorsService {
4562
4558
  validators.push(Validators.maxLength(caseField.field_type.max));
4563
4559
  }
4564
4560
  }
4565
- if (caseField.field_type.type === 'TextArea') {
4566
- validators.push(this.emptyValidator());
4567
- validators.push(this.markDownPatternValidator());
4568
- }
4569
4561
  if (control.validator) {
4570
4562
  validators.push(control.validator);
4571
4563
  }
4572
4564
  control.setValidators(validators);
4573
4565
  }
4574
- else if (caseField.display_context === 'OPTIONAL' && (caseField.field_type.type === 'Text' || caseField.field_type.type === 'TextArea')) {
4575
- control.setValidators(this.markDownPatternValidator());
4576
- }
4577
4566
  return control;
4578
4567
  }
4579
4568
  static emptyValidator() {
4580
4569
  const validator = (control) => {
4581
- if (control?.value?.toString().trim().length === 0) {
4570
+ if (control && control.value && control.value.toString().trim().length === 0) {
4582
4571
  return { required: {} };
4583
4572
  }
4584
4573
  return null;
4585
4574
  };
4586
4575
  return validator;
4587
4576
  }
4588
- static markDownPatternValidator() {
4589
- const pattern = /(\[[^\]]{0,500}\]\([^)]{0,500}\)|!\[[^\]]{0,500}\]\([^)]{0,500}\)|<img[^>]{0,500}>|<a[^>]{0,500}>.*?<\/a>)/;
4590
- return (control) => {
4591
- const value = control?.value?.toString().trim();
4592
- return value && pattern.test(value)
4593
- ? { markDownPattern: {} }
4594
- : null;
4595
- };
4596
- }
4597
4577
  // TODO: Strip this out as it's only here for the moment because
4598
4578
  // the service is being injected all over the place but it doesn't
4599
4579
  // need to be as FormValidatorsService.addValidators is perfectly
@@ -4601,14 +4581,6 @@ class FormValidatorsService {
4601
4581
  addValidators(caseField, control) {
4602
4582
  return FormValidatorsService.addValidators(caseField, control);
4603
4583
  }
4604
- addMarkDownValidators(formGroup, controlPath) {
4605
- const control = formGroup.get(controlPath);
4606
- if (control) {
4607
- control.setValidators(FormValidatorsService.markDownPatternValidator());
4608
- control.updateValueAndValidity();
4609
- }
4610
- return control;
4611
- }
4612
4584
  }
4613
4585
  FormValidatorsService.CUSTOM_VALIDATED_TYPES = [
4614
4586
  'Date', 'MoneyGBP', 'Label', 'JudicialUser'
@@ -5675,7 +5647,7 @@ class FormValueService {
5675
5647
  * @param clearEmpty Whether or not we should clear out empty, optional, complex objects.
5676
5648
  * @param clearNonCase Whether or not we should clear out non-case fields at the top level.
5677
5649
  */
5678
- removeUnnecessaryFields(data, caseFields, clearEmpty = false, clearNonCase = false, fromPreviousPage = false, currentPageCaseFields = [], isCalledFromSubmit = false) {
5650
+ removeUnnecessaryFields(data, caseFields, clearEmpty = false, clearNonCase = false, fromPreviousPage = false, currentPageCaseFields = []) {
5679
5651
  if (data && caseFields && caseFields.length > 0) {
5680
5652
  // check if there is any data at the top level of the form that's not in the caseFields
5681
5653
  if (clearNonCase) {
@@ -5686,13 +5658,10 @@ class FormValueService {
5686
5658
  // Retain anything that is readonly and not a label.
5687
5659
  continue;
5688
5660
  }
5689
- if (field.hidden === true && field.display_context !== 'HIDDEN' && field.display_context !== 'HIDDEN_TEMP' && field.id !== 'caseLinks') {
5661
+ if (field.hidden === true && field.display_context !== 'HIDDEN' && field.display_context !== 'HIDDEN_TEMP' && field.id !== 'caseLinks' && !field.retain_hidden_value) {
5690
5662
  // Delete anything that is hidden (that is NOT readonly), and that
5691
5663
  // hasn't had its display_context overridden to make it hidden.
5692
- // in event submission check for field's retain_hidden_value defore deletion
5693
- if ((isCalledFromSubmit && !field.retain_hidden_value) || !isCalledFromSubmit) {
5694
- delete data[field.id];
5695
- }
5664
+ delete data[field.id];
5696
5665
  }
5697
5666
  else if (field.field_type) {
5698
5667
  switch (field.field_type.type) {
@@ -5706,7 +5675,7 @@ class FormValueService {
5706
5675
  }
5707
5676
  break;
5708
5677
  case 'Complex':
5709
- this.removeUnnecessaryFields(data[field.id], field.field_type.complex_fields, clearEmpty, false, false, [], isCalledFromSubmit);
5678
+ this.removeUnnecessaryFields(data[field.id], field.field_type.complex_fields, clearEmpty);
5710
5679
  // Also remove any optional complex objects that are completely empty.
5711
5680
  // EUI-4244: Ritesh's fix, passing true instead of clearEmpty.
5712
5681
  if (FormValueService.clearOptionalEmpty(true, data[field.id], field)) {
@@ -5729,8 +5698,8 @@ class FormValueService {
5729
5698
  if (field.field_type.collection_field_type.type === 'Complex') {
5730
5699
  // Iterate through the elements and remove any unnecessary fields within.
5731
5700
  for (const item of collection) {
5732
- this.removeUnnecessaryFields(item, field.field_type.collection_field_type.complex_fields, clearEmpty, false, false, [], isCalledFromSubmit);
5733
- this.removeUnnecessaryFields(item.value, field.field_type.collection_field_type.complex_fields, false, false, false, [], isCalledFromSubmit);
5701
+ this.removeUnnecessaryFields(item, field.field_type.collection_field_type.complex_fields, clearEmpty);
5702
+ this.removeUnnecessaryFields(item.value, field.field_type.collection_field_type.complex_fields, false);
5734
5703
  }
5735
5704
  }
5736
5705
  }
@@ -8875,7 +8844,7 @@ class CaseEditComponent {
8875
8844
  const pageListCaseFields = this.validPageListCaseFieldsService.validPageListCaseFields(this.validPageList, eventTrigger.case_fields, form.controls['data'].value);
8876
8845
  // Remove unnecessary case fields which are hidden, only if the submission is *not* for Case Flags
8877
8846
  if (!this.isCaseFlagSubmission) {
8878
- this.formValueService.removeUnnecessaryFields(caseEventData.data, pageListCaseFields, true, true, false, [], true);
8847
+ this.formValueService.removeUnnecessaryFields(caseEventData.data, pageListCaseFields, true, true);
8879
8848
  }
8880
8849
  caseEventData.event_token = eventTrigger.event_token;
8881
8850
  caseEventData.ignore_warning = this.ignoreWarning;
@@ -10899,8 +10868,8 @@ function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (r
10899
10868
  i0.ɵɵadvance(1);
10900
10869
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Enter the Postcode"));
10901
10870
  } }
10902
- const _c1$o = function (a0) { return { "form-group-error": a0 }; };
10903
- const _c2$3 = function (a0) { return { "govuk-input--error": a0 }; };
10871
+ const _c1$n = function (a0) { return { "form-group-error": a0 }; };
10872
+ const _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
10904
10873
  function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1) {
10905
10874
  const _r7 = i0.ɵɵgetCurrentView();
10906
10875
  i0.ɵɵelementStart(0, "div", 8)(1, "label", 9)(2, "span", 10);
@@ -10916,7 +10885,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1)
10916
10885
  i0.ɵɵelementEnd()();
10917
10886
  } if (rf & 2) {
10918
10887
  const ctx_r2 = i0.ɵɵnextContext(2);
10919
- i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$o, ctx_r2.missingPostcode));
10888
+ i0.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$n, ctx_r2.missingPostcode));
10920
10889
  i0.ɵɵadvance(1);
10921
10890
  i0.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
10922
10891
  i0.ɵɵadvance(2);
@@ -10924,7 +10893,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1)
10924
10893
  i0.ɵɵadvance(2);
10925
10894
  i0.ɵɵproperty("ngIf", ctx_r2.missingPostcode);
10926
10895
  i0.ɵɵadvance(1);
10927
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c2$3, ctx_r2.missingPostcode))("id", ctx_r2.createElementId("postcodeInput"))("formControl", ctx_r2.postcode);
10896
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c2$2, ctx_r2.missingPostcode))("id", ctx_r2.createElementId("postcodeInput"))("formControl", ctx_r2.postcode);
10928
10897
  i0.ɵɵadvance(2);
10929
10898
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 11, "Find address"));
10930
10899
  } }
@@ -12340,7 +12309,7 @@ function WriteCaseLinkFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
12340
12309
  i0.ɵɵadvance(1);
12341
12310
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label), " ");
12342
12311
  } }
12343
- const _c1$n = function (a0) { return { "form-group-error": a0 }; };
12312
+ const _c1$m = function (a0) { return { "form-group-error": a0 }; };
12344
12313
  class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
12345
12314
  ngOnInit() {
12346
12315
  if (this.caseField.value) {
@@ -12401,7 +12370,7 @@ WriteCaseLinkFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
12401
12370
  i0.ɵɵelement(5, "input", 5);
12402
12371
  i0.ɵɵelementEnd();
12403
12372
  } if (rf & 2) {
12404
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$n, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
12373
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$m, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
12405
12374
  i0.ɵɵadvance(1);
12406
12375
  i0.ɵɵproperty("for", ctx.id());
12407
12376
  i0.ɵɵadvance(1);
@@ -12433,7 +12402,7 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
12433
12402
  i0.ɵɵadvance(4);
12434
12403
  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);
12435
12404
  } }
12436
- const _c1$m = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
12405
+ const _c1$l = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
12437
12406
  function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
12438
12407
  i0.ɵɵelementStart(0, "tr")(1, "td");
12439
12408
  i0.ɵɵelement(2, "ccd-field-read", 7);
@@ -12443,7 +12412,7 @@ function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { i
12443
12412
  const i_r5 = ctx.index;
12444
12413
  const ctx_r3 = i0.ɵɵnextContext(3);
12445
12414
  i0.ɵɵadvance(2);
12446
- 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));
12415
+ 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));
12447
12416
  } }
12448
12417
  function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) { if (rf & 1) {
12449
12418
  i0.ɵɵelementStart(0, "tbody");
@@ -13264,7 +13233,7 @@ function WriteDocumentFieldComponent_ccd_read_document_field_9_Template(rf, ctx)
13264
13233
  const ctx_r2 = i0.ɵɵnextContext();
13265
13234
  i0.ɵɵproperty("caseField", ctx_r2.caseField);
13266
13235
  } }
13267
- const _c1$l = function (a0) { return { "form-group-error bottom-30": a0 }; };
13236
+ const _c1$k = function (a0) { return { "form-group-error bottom-30": a0 }; };
13268
13237
  class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
13269
13238
  constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService, jurisdictionService) {
13270
13239
  super();
@@ -13570,7 +13539,7 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
13570
13539
  i0.ɵɵpipe(17, "rpxTranslate");
13571
13540
  i0.ɵɵelementEnd()();
13572
13541
  } if (rf & 2) {
13573
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$l, !ctx.valid));
13542
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$k, !ctx.valid));
13574
13543
  i0.ɵɵadvance(1);
13575
13544
  i0.ɵɵproperty("for", ctx.id());
13576
13545
  i0.ɵɵadvance(1);
@@ -14114,7 +14083,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
14114
14083
  i0.ɵɵadvance(1);
14115
14084
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, radioButton_r5.label));
14116
14085
  } }
14117
- const _c1$k = function (a0) { return { "form-group-error": a0 }; };
14086
+ const _c1$j = function (a0) { return { "form-group-error": a0 }; };
14118
14087
  class WriteDynamicRadioListFieldComponent extends AbstractFieldWriteComponent {
14119
14088
  ngOnInit() {
14120
14089
  /**
@@ -14152,7 +14121,7 @@ WriteDynamicRadioListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent
14152
14121
  i0.ɵɵelementContainerEnd();
14153
14122
  i0.ɵɵelementEnd()();
14154
14123
  } if (rf & 2) {
14155
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$k, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
14124
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$j, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
14156
14125
  i0.ɵɵadvance(3);
14157
14126
  i0.ɵɵproperty("for", ctx.id());
14158
14127
  i0.ɵɵadvance(1);
@@ -14233,7 +14202,7 @@ function WriteEmailFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
14233
14202
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
14234
14203
  } }
14235
14204
  const _c0$M = function (a0) { return { "form-group-error": a0 }; };
14236
- const _c1$j = function (a0) { return { "govuk-input--error": a0 }; };
14205
+ const _c1$i = function (a0) { return { "govuk-input--error": a0 }; };
14237
14206
  class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
14238
14207
  ngOnInit() {
14239
14208
  this.emailControl = this.registerControl(new FormControl(this.caseField.value));
@@ -14259,7 +14228,7 @@ WriteEmailFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wr
14259
14228
  i0.ɵɵadvance(1);
14260
14229
  i0.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
14261
14230
  i0.ɵɵadvance(1);
14262
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$j, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
14231
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$i, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
14263
14232
  } }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
14264
14233
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteEmailFieldComponent, [{
14265
14234
  type: Component,
@@ -14470,7 +14439,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
14470
14439
  i0.ɵɵadvance(1);
14471
14440
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 7, radioButton_r4.label));
14472
14441
  } }
14473
- const _c1$i = function (a0) { return { "form-group-error": a0 }; };
14442
+ const _c1$h = function (a0) { return { "form-group-error": a0 }; };
14474
14443
  class WriteFixedRadioListFieldComponent extends AbstractFieldWriteComponent {
14475
14444
  ngOnInit() {
14476
14445
  const notEmpty = this.caseField.value !== null && this.caseField.value !== undefined;
@@ -14490,7 +14459,7 @@ WriteFixedRadioListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
14490
14459
  i0.ɵɵelementContainerEnd();
14491
14460
  i0.ɵɵelementEnd()();
14492
14461
  } if (rf & 2) {
14493
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$i, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
14462
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$h, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
14494
14463
  i0.ɵɵadvance(3);
14495
14464
  i0.ɵɵproperty("for", ctx.id());
14496
14465
  i0.ɵɵadvance(1);
@@ -14612,7 +14581,7 @@ function WriteJudicialUserFieldComponent_mat_option_11_Template(rf, ctx) { if (r
14612
14581
  i0.ɵɵtext(1, " Invalid search term ");
14613
14582
  i0.ɵɵelementEnd();
14614
14583
  } }
14615
- const _c1$h = function (a0) { return { "form-group-error": a0 }; };
14584
+ const _c1$g = function (a0) { return { "form-group-error": a0 }; };
14616
14585
  class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
14617
14586
  constructor(jurisdictionService, sessionStorageService, caseFlagRefDataService, compoundPipe, validatorsService) {
14618
14587
  super(compoundPipe, validatorsService);
@@ -14759,7 +14728,7 @@ WriteJudicialUserFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ t
14759
14728
  i0.ɵɵelementEnd()();
14760
14729
  } if (rf & 2) {
14761
14730
  const _r3 = i0.ɵɵreference(7);
14762
- i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c1$h, !!ctx.judicialUserControl && ctx.errors));
14731
+ i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(15, _c1$g, !!ctx.judicialUserControl && ctx.errors));
14763
14732
  i0.ɵɵadvance(1);
14764
14733
  i0.ɵɵproperty("for", ctx.id());
14765
14734
  i0.ɵɵadvance(1);
@@ -15449,7 +15418,7 @@ function LinkCasesComponent_tr_31_span_15_Template(rf, ctx) { if (rf & 1) {
15449
15418
  i0.ɵɵadvance(1);
15450
15419
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, reason_r19));
15451
15420
  } }
15452
- const _c1$g = function (a0) { return { "table-group-error": a0 }; };
15421
+ const _c1$f = function (a0) { return { "table-group-error": a0 }; };
15453
15422
  function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
15454
15423
  const _r21 = i0.ɵɵgetCurrentView();
15455
15424
  i0.ɵɵelementStart(0, "tr", 10)(1, "td", 38);
@@ -15480,7 +15449,7 @@ function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
15480
15449
  const case_r16 = ctx.$implicit;
15481
15450
  const ctx_r2 = i0.ɵɵnextContext();
15482
15451
  i0.ɵɵadvance(2);
15483
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$g, ctx_r2.caseSelectionError && case_r16.caseReference === ctx_r2.linkCaseForm.value.caseNumber));
15452
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$f, ctx_r2.caseSelectionError && case_r16.caseReference === ctx_r2.linkCaseForm.value.caseNumber));
15484
15453
  i0.ɵɵadvance(2);
15485
15454
  i0.ɵɵtextInterpolate1("", case_r16.caseName, " ");
15486
15455
  i0.ɵɵadvance(2);
@@ -17380,7 +17349,7 @@ function WriteNumberFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
17380
17349
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label), " ");
17381
17350
  } }
17382
17351
  const _c0$E = function (a0) { return { "form-group-error": a0 }; };
17383
- const _c1$f = function (a0) { return { "govuk-input--error": a0 }; };
17352
+ const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
17384
17353
  class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
17385
17354
  ngOnInit() {
17386
17355
  this.numberControl = this.registerControl(new FormControl(this.caseField.value));
@@ -17406,7 +17375,7 @@ WriteNumberFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: W
17406
17375
  i0.ɵɵadvance(1);
17407
17376
  i0.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
17408
17377
  i0.ɵɵadvance(1);
17409
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$f, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
17378
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$e, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
17410
17379
  } }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NumberValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
17411
17380
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteNumberFieldComponent, [{
17412
17381
  type: Component,
@@ -18047,7 +18016,7 @@ function WritePhoneUKFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
18047
18016
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label), " ");
18048
18017
  } }
18049
18018
  const _c0$C = function (a0) { return { "form-group-error": a0 }; };
18050
- const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
18019
+ const _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
18051
18020
  class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
18052
18021
  ngOnInit() {
18053
18022
  this.phoneUkControl = this.registerControl(new FormControl(this.caseField.value));
@@ -18073,7 +18042,7 @@ WritePhoneUKFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
18073
18042
  i0.ɵɵadvance(1);
18074
18043
  i0.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
18075
18044
  i0.ɵɵadvance(1);
18076
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$e, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
18045
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$d, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
18077
18046
  } }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
18078
18047
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
18079
18048
  type: Component,
@@ -20089,7 +20058,7 @@ function WriteTextAreaFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
20089
20058
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.textareaControl.errors, ctx_r2.caseField.label), " ");
20090
20059
  } }
20091
20060
  const _c0$z = function (a0) { return { "form-group-error": a0 }; };
20092
- const _c1$d = function (a0) { return { "govuk-textarea--error": a0 }; };
20061
+ const _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
20093
20062
  class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
20094
20063
  constructor(browserService) {
20095
20064
  super();
@@ -20127,7 +20096,7 @@ WriteTextAreaFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
20127
20096
  i0.ɵɵadvance(1);
20128
20097
  i0.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
20129
20098
  i0.ɵɵadvance(1);
20130
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$d, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
20099
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$c, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
20131
20100
  } }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
20132
20101
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextAreaFieldComponent, [{
20133
20102
  type: Component,
@@ -20185,7 +20154,7 @@ function WriteTextFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
20185
20154
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.textControl.errors, ctx_r2.caseField.label), " ");
20186
20155
  } }
20187
20156
  const _c0$y = function (a0) { return { "form-group-error": a0 }; };
20188
- const _c1$c = function (a0) { return { "govuk-input--error": a0 }; };
20157
+ const _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
20189
20158
  class WriteTextFieldComponent extends AbstractFieldWriteComponent {
20190
20159
  ngOnInit() {
20191
20160
  this.textControl = this.registerControl(new FormControl(this.caseField.value));
@@ -20215,7 +20184,7 @@ WriteTextFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wri
20215
20184
  i0.ɵɵadvance(1);
20216
20185
  i0.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
20217
20186
  i0.ɵɵadvance(1);
20218
- 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);
20187
+ 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);
20219
20188
  } }, dependencies: [i4.NgClass, i4.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
20220
20189
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextFieldComponent, [{
20221
20190
  type: Component,
@@ -20391,7 +20360,7 @@ function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
20391
20360
  i0.ɵɵadvance(1);
20392
20361
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind3(4, 8, ctx_r3.caseField.label, null, value_r4));
20393
20362
  } }
20394
- const _c1$b = function (a0) { return { "form-group-error": a0 }; };
20363
+ const _c1$a = function (a0) { return { "form-group-error": a0 }; };
20395
20364
  class WriteYesNoFieldComponent extends AbstractFieldWriteComponent {
20396
20365
  constructor(yesNoService) {
20397
20366
  super();
@@ -20413,7 +20382,7 @@ WriteYesNoFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wr
20413
20382
  i0.ɵɵtemplate(7, WriteYesNoFieldComponent_div_7_Template, 5, 14, "div", 6);
20414
20383
  i0.ɵɵelementEnd()()();
20415
20384
  } if (rf & 2) {
20416
- i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$b, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
20385
+ i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c1$a, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
20417
20386
  i0.ɵɵadvance(3);
20418
20387
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
20419
20388
  i0.ɵɵadvance(1);
@@ -20770,7 +20739,7 @@ function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
20770
20739
  function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
20771
20740
  i0.ɵɵelementContainer(0);
20772
20741
  } }
20773
- const _c1$a = function (a0, a1) { return { cat: a0, level: a1 }; };
20742
+ const _c1$9 = function (a0, a1) { return { cat: a0, level: a1 }; };
20774
20743
  function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) { if (rf & 1) {
20775
20744
  i0.ɵɵelementContainerStart(0);
20776
20745
  i0.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
@@ -20781,7 +20750,7 @@ function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Templ
20781
20750
  i0.ɵɵnextContext();
20782
20751
  const _r1 = i0.ɵɵreference(13);
20783
20752
  i0.ɵɵadvance(1);
20784
- i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c1$a, subcat_r8, level_r6 + 1));
20753
+ i0.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c1$9, subcat_r8, level_r6 + 1));
20785
20754
  } }
20786
20755
  function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
20787
20756
  const _r12 = i0.ɵɵgetCurrentView();
@@ -20949,7 +20918,7 @@ function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) { if (
20949
20918
  i0.ɵɵproperty("ngForOf", ctx_r1.menuItems);
20950
20919
  } }
20951
20920
  const _c0$s = [[["", "trigger", ""]]];
20952
- const _c1$9 = ["[trigger]"];
20921
+ const _c1$8 = ["[trigger]"];
20953
20922
  class CaseFileViewOverlayMenuComponent {
20954
20923
  constructor() {
20955
20924
  this.title = '';
@@ -20963,7 +20932,7 @@ class CaseFileViewOverlayMenuComponent {
20963
20932
  }
20964
20933
  }
20965
20934
  CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
20966
- 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) { if (rf & 1) {
20935
+ 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) { if (rf & 1) {
20967
20936
  i0.ɵɵprojectionDef(_c0$s);
20968
20937
  i0.ɵɵelementStart(0, "div")(1, "button", 0, 1);
20969
20938
  i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener($event) { $event.stopPropagation(); return ctx.isOpen = !ctx.isOpen; });
@@ -23030,7 +22999,7 @@ function SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template(rf, ctx) {
23030
22999
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, "This flag should only be visible to HMCTS Staff"), " ");
23031
23000
  } }
23032
23001
  const _c0$n = function (a0) { return { "form-group-error": a0 }; };
23033
- const _c1$8 = function (a0) { return { "govuk-input--error": a0 }; };
23002
+ const _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
23034
23003
  function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) { if (rf & 1) {
23035
23004
  i0.ɵɵelementStart(0, "div", 18)(1, "div", 3)(2, "label", 19);
23036
23005
  i0.ɵɵtext(3);
@@ -23050,7 +23019,7 @@ function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) { if (r
23050
23019
  i0.ɵɵadvance(3);
23051
23020
  i0.ɵɵproperty("ngIf", ctx_r7.flagTypeErrorMessage.length > 0);
23052
23021
  i0.ɵɵadvance(1);
23053
- 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);
23022
+ 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);
23054
23023
  i0.ɵɵadvance(1);
23055
23024
  i0.ɵɵproperty("ngIf", !ctx_r7.isDisplayContextParameterExternal && !ctx_r7.isCaseLevelFlag && ctx_r7.isDisplayContextParameter2Point1Enabled);
23056
23025
  } }
@@ -23550,7 +23519,7 @@ function UpdateFlagComponent_div_22_Template(rf, ctx) { if (rf & 1) {
23550
23519
  i0.ɵɵadvance(3);
23551
23520
  i0.ɵɵproperty("ngIf", ctx_r9.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
23552
23521
  } }
23553
- const _c1$7 = function (a0) { return { "form-group-error": a0 }; };
23522
+ const _c1$6 = function (a0) { return { "form-group-error": a0 }; };
23554
23523
  class UpdateFlagComponent {
23555
23524
  constructor(rpxTranslationService) {
23556
23525
  this.rpxTranslationService = rpxTranslationService;
@@ -23752,7 +23721,7 @@ UpdateFlagComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateF
23752
23721
  const _r3 = i0.ɵɵreference(17);
23753
23722
  i0.ɵɵproperty("formGroup", ctx.formGroup);
23754
23723
  i0.ɵɵadvance(2);
23755
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c1$7, ctx.errorMessages.length > 0));
23724
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c1$6, ctx.errorMessages.length > 0));
23756
23725
  i0.ɵɵadvance(3);
23757
23726
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 13, ctx.updateFlagTitle), " ");
23758
23727
  i0.ɵɵadvance(2);
@@ -25022,7 +24991,7 @@ const CUSTOM_MOMENT_FORMATS = {
25022
24991
  };
25023
24992
 
25024
24993
  const _c0$g = ["picker"];
25025
- const _c1$6 = ["input"];
24994
+ const _c1$5 = ["input"];
25026
24995
  function DatetimePickerComponent_span_3_Template(rf, ctx) { if (rf & 1) {
25027
24996
  i0.ɵɵelementStart(0, "span", 11);
25028
24997
  i0.ɵɵtext(1);
@@ -25071,7 +25040,7 @@ function DatetimePickerComponent_span_7_Template(rf, ctx) { if (rf & 1) {
25071
25040
  i0.ɵɵadvance(1);
25072
25041
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "This date is later than the maximum date allowed"));
25073
25042
  } }
25074
- const _c2$2 = function (a0) { return { "form-group-error": a0 }; };
25043
+ const _c2$1 = function (a0) { return { "form-group-error": a0 }; };
25075
25044
  class DatetimePickerComponent extends AbstractFormFieldComponent {
25076
25045
  constructor(formatTranslationService, ngxMatDateFormats) {
25077
25046
  super();
@@ -25236,7 +25205,7 @@ class DatetimePickerComponent extends AbstractFormFieldComponent {
25236
25205
  DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { return new (t || DatetimePickerComponent)(i0.ɵɵdirectiveInject(FormatTranslatorService), i0.ɵɵdirectiveInject(NGX_MAT_DATE_FORMATS)); };
25237
25206
  DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DatetimePickerComponent, selectors: [["ccd-datetime-picker"]], viewQuery: function DatetimePickerComponent_Query(rf, ctx) { if (rf & 1) {
25238
25207
  i0.ɵɵviewQuery(_c0$g, 5);
25239
- i0.ɵɵviewQuery(_c1$6, 5);
25208
+ i0.ɵɵviewQuery(_c1$5, 5);
25240
25209
  } if (rf & 2) {
25241
25210
  let _t;
25242
25211
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.datetimePicker = _t.first);
@@ -25268,7 +25237,7 @@ DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Dat
25268
25237
  i0.ɵɵelementEnd()()()()()();
25269
25238
  } if (rf & 2) {
25270
25239
  const _r6 = i0.ɵɵreference(13);
25271
- i0.ɵɵproperty("id", ctx.caseField.id)("ngClass", i0.ɵɵpureFunction1(24, _c2$2, ctx.dateControl && !ctx.dateControl.valid && ctx.dateControl.dirty));
25240
+ i0.ɵɵproperty("id", ctx.caseField.id)("ngClass", i0.ɵɵpureFunction1(24, _c2$1, ctx.dateControl && !ctx.dateControl.valid && ctx.dateControl.dirty));
25272
25241
  i0.ɵɵadvance(3);
25273
25242
  i0.ɵɵproperty("ngIf", ctx.caseField.label);
25274
25243
  i0.ɵɵadvance(1);
@@ -25492,7 +25461,7 @@ function EventLogTableComponent_tr_20_div_6_Template(rf, ctx) { if (rf & 1) {
25492
25461
  i0.ɵɵadvance(3);
25493
25462
  i0.ɵɵtextInterpolate(ctx_r5.getSignificantItemDesc(event_r1));
25494
25463
  } }
25495
- const _c1$5 = function (a0) { return { "EventLogTable-Selected": a0 }; };
25464
+ const _c1$4 = function (a0) { return { "EventLogTable-Selected": a0 }; };
25496
25465
  function EventLogTableComponent_tr_20_Template(rf, ctx) { if (rf & 1) {
25497
25466
  const _r18 = i0.ɵɵgetCurrentView();
25498
25467
  i0.ɵɵelementStart(0, "tr", 4);
@@ -25523,7 +25492,7 @@ function EventLogTableComponent_tr_20_Template(rf, ctx) { if (rf & 1) {
25523
25492
  } if (rf & 2) {
25524
25493
  const event_r1 = ctx.$implicit;
25525
25494
  const ctx_r0 = i0.ɵɵnextContext();
25526
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(25, _c1$5, ctx_r0.selected === event_r1));
25495
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(25, _c1$4, ctx_r0.selected === event_r1));
25527
25496
  i0.ɵɵattribute("aria-label", ctx_r0.getAriaLabelforRow(event_r1));
25528
25497
  i0.ɵɵadvance(2);
25529
25498
  i0.ɵɵproperty("ngSwitch", ctx_r0.isPartOfCaseTimeline);
@@ -27411,30 +27380,6 @@ function CaseEditSubmitComponent_div_0_ng_container_13_Template(rf, ctx) { if (r
27411
27380
  i0.ɵɵadvance(3);
27412
27381
  i0.ɵɵproperty("ngForOf", ctx_r8.showSummaryFields);
27413
27382
  } }
27414
- function CaseEditSubmitComponent_div_0_ng_container_14_span_8_Template(rf, ctx) { if (rf & 1) {
27415
- i0.ɵɵelementStart(0, "span", 48);
27416
- i0.ɵɵtext(1);
27417
- i0.ɵɵpipe(2, "rpxTranslate");
27418
- i0.ɵɵpipe(3, "ccdFirstError");
27419
- i0.ɵɵelementEnd();
27420
- } if (rf & 2) {
27421
- const ctx_r36 = i0.ɵɵnextContext(3);
27422
- i0.ɵɵadvance(1);
27423
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r36.summary.errors, ctx_r36.eventSummaryLabel)), " ");
27424
- } }
27425
- function CaseEditSubmitComponent_div_0_ng_container_14_span_13_Template(rf, ctx) { if (rf & 1) {
27426
- i0.ɵɵelementStart(0, "span", 48);
27427
- i0.ɵɵtext(1);
27428
- i0.ɵɵpipe(2, "rpxTranslate");
27429
- i0.ɵɵpipe(3, "ccdFirstError");
27430
- i0.ɵɵelementEnd();
27431
- } if (rf & 2) {
27432
- const ctx_r37 = i0.ɵɵnextContext(3);
27433
- i0.ɵɵadvance(1);
27434
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r37.description.errors, ctx_r37.eventDescriptionLabel)), " ");
27435
- } }
27436
- const _c1$4 = function (a0) { return { "form-group-error": a0 }; };
27437
- const _c2$1 = function (a0) { return { "govuk-input--error": a0 }; };
27438
27383
  function CaseEditSubmitComponent_div_0_ng_container_14_Template(rf, ctx) { if (rf & 1) {
27439
27384
  i0.ɵɵelementContainerStart(0);
27440
27385
  i0.ɵɵelementStart(1, "fieldset", 39);
@@ -27444,35 +27389,19 @@ function CaseEditSubmitComponent_div_0_ng_container_14_Template(rf, ctx) { if (r
27444
27389
  i0.ɵɵelementStart(6, "span", 43);
27445
27390
  i0.ɵɵtext(7, "A few words describing the purpose of the event.");
27446
27391
  i0.ɵɵelementEnd()();
27447
- i0.ɵɵtemplate(8, CaseEditSubmitComponent_div_0_ng_container_14_span_8_Template, 4, 6, "span", 44);
27448
- i0.ɵɵelement(9, "input", 45);
27392
+ i0.ɵɵelement(8, "input", 44);
27449
27393
  i0.ɵɵelementEnd();
27450
- i0.ɵɵelementStart(10, "div", 41)(11, "label", 46);
27451
- i0.ɵɵtext(12, "Event description (optional)");
27394
+ i0.ɵɵelementStart(9, "div", 41)(10, "label", 45);
27395
+ i0.ɵɵtext(11, "Event description (optional)");
27452
27396
  i0.ɵɵelementEnd();
27453
- i0.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_14_span_13_Template, 4, 6, "span", 44);
27454
- i0.ɵɵelement(14, "textarea", 47);
27397
+ i0.ɵɵelement(12, "textarea", 46);
27455
27398
  i0.ɵɵelementEnd()();
27456
27399
  i0.ɵɵelementContainerEnd();
27457
- } if (rf & 2) {
27458
- const ctx_r9 = i0.ɵɵnextContext(2);
27459
- i0.ɵɵadvance(3);
27460
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c1$4, !!ctx_r9.summary && !ctx_r9.summary.valid && (ctx_r9.summary.dirty || ctx_r9.summary.touched)));
27461
- i0.ɵɵadvance(5);
27462
- i0.ɵɵproperty("ngIf", (ctx_r9.summary == null ? null : ctx_r9.summary.errors) && (ctx_r9.summary.dirty || ctx_r9.summary.touched));
27463
- i0.ɵɵadvance(1);
27464
- 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)));
27465
- i0.ɵɵadvance(1);
27466
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$4, !!ctx_r9.description && !ctx_r9.description.valid && (ctx_r9.description.dirty || ctx_r9.description.touched)));
27467
- i0.ɵɵadvance(3);
27468
- i0.ɵɵproperty("ngIf", (ctx_r9.description == null ? null : ctx_r9.description.errors) && (ctx_r9.description.dirty || ctx_r9.description.touched));
27469
- i0.ɵɵadvance(1);
27470
- 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)));
27471
27400
  } }
27472
27401
  function CaseEditSubmitComponent_div_0_button_16_Template(rf, ctx) { if (rf & 1) {
27473
- const _r39 = i0.ɵɵgetCurrentView();
27474
- i0.ɵɵelementStart(0, "button", 49);
27475
- 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()); });
27402
+ const _r37 = i0.ɵɵgetCurrentView();
27403
+ i0.ɵɵelementStart(0, "button", 47);
27404
+ 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()); });
27476
27405
  i0.ɵɵtext(1);
27477
27406
  i0.ɵɵpipe(2, "rpxTranslate");
27478
27407
  i0.ɵɵelementEnd();
@@ -27483,7 +27412,7 @@ function CaseEditSubmitComponent_div_0_button_16_Template(rf, ctx) { if (rf & 1)
27483
27412
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "Previous"), " ");
27484
27413
  } }
27485
27414
  function CaseEditSubmitComponent_div_0_Template(rf, ctx) { if (rf & 1) {
27486
- const _r41 = i0.ɵɵgetCurrentView();
27415
+ const _r39 = i0.ɵɵgetCurrentView();
27487
27416
  i0.ɵɵelementStart(0, "div")(1, "h1", 2);
27488
27417
  i0.ɵɵtext(2);
27489
27418
  i0.ɵɵpipe(3, "rpxTranslate");
@@ -27493,13 +27422,13 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) { if (rf & 1) {
27493
27422
  i0.ɵɵtemplate(7, CaseEditSubmitComponent_div_0_ng_template_7_Template, 1, 1, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
27494
27423
  i0.ɵɵelement(9, "ccd-case-edit-generic-errors", 6);
27495
27424
  i0.ɵɵelementStart(10, "ccd-callback-errors", 7);
27496
- 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)); });
27425
+ 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)); });
27497
27426
  i0.ɵɵelementEnd();
27498
27427
  i0.ɵɵelementStart(11, "form", 8);
27499
- 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()); });
27428
+ 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()); });
27500
27429
  i0.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 8, 5, "ng-container", 0);
27501
27430
  i0.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 4, 1, "ng-container", 0);
27502
- i0.ɵɵtemplate(14, CaseEditSubmitComponent_div_0_ng_container_14_Template, 15, 14, "ng-container", 0);
27431
+ i0.ɵɵtemplate(14, CaseEditSubmitComponent_div_0_ng_container_14_Template, 13, 0, "ng-container", 0);
27503
27432
  i0.ɵɵelementStart(15, "div", 9);
27504
27433
  i0.ɵɵtemplate(16, CaseEditSubmitComponent_div_0_button_16_Template, 3, 4, "button", 10);
27505
27434
  i0.ɵɵelementStart(17, "button", 11);
@@ -27507,7 +27436,7 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) { if (rf & 1) {
27507
27436
  i0.ɵɵpipe(19, "rpxTranslate");
27508
27437
  i0.ɵɵelementEnd()();
27509
27438
  i0.ɵɵelementStart(20, "p", 12)(21, "a", 13);
27510
- 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()); });
27439
+ 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()); });
27511
27440
  i0.ɵɵtext(22);
27512
27441
  i0.ɵɵpipe(23, "rpxTranslate");
27513
27442
  i0.ɵɵelementEnd()()()();
@@ -27543,9 +27472,9 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) { if (rf & 1) {
27543
27472
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 20, ctx_r0.getCancelText()));
27544
27473
  } }
27545
27474
  function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) { if (rf & 1) {
27546
- const _r45 = i0.ɵɵgetCurrentView();
27547
- i0.ɵɵelementStart(0, "ccd-case-event-completion", 50);
27548
- 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)); });
27475
+ const _r43 = i0.ɵɵgetCurrentView();
27476
+ i0.ɵɵelementStart(0, "ccd-case-event-completion", 48);
27477
+ 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)); });
27549
27478
  i0.ɵɵelementEnd();
27550
27479
  } if (rf & 2) {
27551
27480
  const ctx_r1 = i0.ɵɵnextContext();
@@ -27553,17 +27482,14 @@ function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) {
27553
27482
  } }
27554
27483
  // @dynamic
27555
27484
  class CaseEditSubmitComponent {
27556
- constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier, formValidatorsService) {
27485
+ constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier) {
27557
27486
  this.caseEdit = caseEdit;
27558
27487
  this.fieldsUtils = fieldsUtils;
27559
27488
  this.caseFieldService = caseFieldService;
27560
27489
  this.route = route;
27561
27490
  this.orderService = orderService;
27562
27491
  this.profileNotifier = profileNotifier;
27563
- this.formValidatorsService = formValidatorsService;
27564
27492
  this.paletteContext = PaletteContext.CHECK_YOUR_ANSWER;
27565
- this.eventSummaryLabel = 'Event summary';
27566
- this.eventDescriptionLabel = 'Event description';
27567
27493
  }
27568
27494
  get isDisabled() {
27569
27495
  // EUI-3452.
@@ -27573,7 +27499,7 @@ class CaseEditSubmitComponent {
27573
27499
  return this.caseEdit.isSubmitting || this.hasErrors;
27574
27500
  }
27575
27501
  ngOnInit() {
27576
- this.profileSubscription = this.profileNotifier.profile.subscribe((_) => this.profile = _);
27502
+ this.profileSubscription = this.profileNotifier.profile.subscribe(_ => this.profile = _);
27577
27503
  this.eventTrigger = this.caseEdit.eventTrigger;
27578
27504
  this.triggerText = this.eventTrigger.end_button_label || CallbackErrorsComponent.TRIGGER_TEXT_SUBMIT;
27579
27505
  this.editForm = this.caseEdit.form;
@@ -27587,12 +27513,10 @@ class CaseEditSubmitComponent {
27587
27513
  // Indicates if the submission is for a Case Flag, as opposed to a "regular" form submission, by the presence of
27588
27514
  // a FlagLauncher field in the event trigger
27589
27515
  this.caseEdit.isCaseFlagSubmission =
27590
- this.eventTrigger.case_fields.some((caseField) => FieldsUtils.isCaseFieldOfType(caseField, ['FlagLauncher']));
27516
+ this.eventTrigger.case_fields.some(caseField => FieldsUtils.isCaseFieldOfType(caseField, ['FlagLauncher']));
27591
27517
  this.caseEdit.isLinkedCasesSubmission =
27592
27518
  this.eventTrigger.case_fields.some(caseField => FieldsUtils.isCaseFieldOfType(caseField, ['ComponentLauncher']));
27593
27519
  this.pageTitle = this.getPageTitle();
27594
- this.summary = this.formValidatorsService.addMarkDownValidators(this.editForm, 'event.summary');
27595
- this.description = this.formValidatorsService.addMarkDownValidators(this.editForm, 'event.description');
27596
27520
  }
27597
27521
  ngOnDestroy() {
27598
27522
  /* istanbul ignore else */
@@ -27601,14 +27525,12 @@ class CaseEditSubmitComponent {
27601
27525
  }
27602
27526
  }
27603
27527
  submit() {
27604
- if (this.summary.valid && this.description.valid) {
27605
- this.caseEdit.submitForm({
27606
- eventTrigger: this.eventTrigger,
27607
- form: this.editForm,
27608
- submit: this.caseEdit.submit,
27609
- caseDetails: this.caseEdit.caseDetails
27610
- });
27611
- }
27528
+ this.caseEdit.submitForm({
27529
+ eventTrigger: this.eventTrigger,
27530
+ form: this.editForm,
27531
+ submit: this.caseEdit.submit,
27532
+ caseDetails: this.caseEdit.caseDetails,
27533
+ });
27612
27534
  }
27613
27535
  onEventCanBeCompleted(eventCanBeCompleted) {
27614
27536
  this.caseEdit.onEventCanBeCompleted({
@@ -27616,7 +27538,7 @@ class CaseEditSubmitComponent {
27616
27538
  eventCanBeCompleted,
27617
27539
  caseDetails: this.caseEdit.caseDetails,
27618
27540
  form: this.editForm,
27619
- submit: this.caseEdit.submit
27541
+ submit: this.caseEdit.submit,
27620
27542
  });
27621
27543
  }
27622
27544
  getPageTitle() {
@@ -27691,7 +27613,7 @@ class CaseEditSubmitComponent {
27691
27613
  }
27692
27614
  }
27693
27615
  readOnlySummaryFieldsToDisplayExists() {
27694
- return this.eventTrigger.case_fields.some((field) => field.show_summary_content_option >= 0);
27616
+ return this.eventTrigger.case_fields.some(field => field.show_summary_content_option >= 0);
27695
27617
  }
27696
27618
  showEventNotes() {
27697
27619
  // Display event notes related controls only if the following conditions are met
@@ -27706,7 +27628,7 @@ class CaseEditSubmitComponent {
27706
27628
  }
27707
27629
  getLastPageShown() {
27708
27630
  let lastPage;
27709
- this.wizard.reverse().forEach((page) => {
27631
+ this.wizard.reverse().forEach(page => {
27710
27632
  if (!lastPage && this.isShown(page)) {
27711
27633
  lastPage = page;
27712
27634
  }
@@ -27725,7 +27647,7 @@ class CaseEditSubmitComponent {
27725
27647
  }
27726
27648
  isShown(page) {
27727
27649
  const fields = this.fieldsUtils
27728
- .mergeCaseFieldsAndFormFields(this.eventTrigger.case_fields, this.editForm.controls.data.value);
27650
+ .mergeCaseFieldsAndFormFields(this.eventTrigger.case_fields, this.editForm.controls['data'].value);
27729
27651
  return page.parsedShowCondition.match(fields);
27730
27652
  }
27731
27653
  canShowFieldInCYA(field) {
@@ -27734,7 +27656,7 @@ class CaseEditSubmitComponent {
27734
27656
  sortFieldsByShowSummaryContent(fields) {
27735
27657
  return this.orderService
27736
27658
  .sort(fields, CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION)
27737
- .filter((cf) => cf.show_summary_content_option);
27659
+ .filter(cf => cf.show_summary_content_option);
27738
27660
  }
27739
27661
  getCaseFields() {
27740
27662
  if (this.caseEdit.caseDetails) {
@@ -27753,7 +27675,9 @@ class CaseEditSubmitComponent {
27753
27675
  if (this.eventTrigger.can_save_draft) {
27754
27676
  return 'Return to case list';
27755
27677
  }
27756
- return 'Cancel';
27678
+ else {
27679
+ return 'Cancel';
27680
+ }
27757
27681
  }
27758
27682
  }
27759
27683
  CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION = (a, b) => {
@@ -27767,8 +27691,8 @@ CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION = (a, b) => {
27767
27691
  }
27768
27692
  return a.show_summary_content_option - b.show_summary_content_option;
27769
27693
  };
27770
- 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)); };
27771
- 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) { if (rf & 1) {
27694
+ 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)); };
27695
+ 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) { if (rf & 1) {
27772
27696
  i0.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 24, 22, "div", 0);
27773
27697
  i0.ɵɵtemplate(1, CaseEditSubmitComponent_ccd_case_event_completion_1_Template, 1, 1, "ccd-case-event-completion", 1);
27774
27698
  } if (rf & 2) {
@@ -27778,8 +27702,8 @@ CaseEditSubmitComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Cas
27778
27702
  } }, styles: ["#fieldset-case-data[_ngcontent-%COMP%]{margin-bottom:30px}#fieldset-case-data[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:1%;white-space:nowrap;vertical-align:top}.compound-field[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0}#confirmation-header[_ngcontent-%COMP%]{width:630px;background-color:#17958b;border:solid 1px #979797;color:#fff;text-align:center}#confirmation-body[_ngcontent-%COMP%]{width:630px;background-color:#fff}.valign-top[_ngcontent-%COMP%]{vertical-align:top}.summary-fields[_ngcontent-%COMP%]{margin-bottom:30px}.summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:0px}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.case-field-label[_ngcontent-%COMP%]{width:45%}.case-field-content[_ngcontent-%COMP%]{width:50%}.no-bottom-border[_ngcontent-%COMP%]{border-bottom:none}.case-field-change[_ngcontent-%COMP%]{width:5%}"] });
27779
27703
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditSubmitComponent, [{
27780
27704
  type: Component,
27781
- 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"] }]
27782
- }], function () { return [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }, { type: FormValidatorsService }]; }, null); })();
27705
+ 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"] }]
27706
+ }], function () { return [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }]; }, null); })();
27783
27707
 
27784
27708
  function CaseProgressComponent_div_0_Template(rf, ctx) { if (rf & 1) {
27785
27709
  const _r2 = i0.ɵɵgetCurrentView();
@@ -28135,7 +28059,7 @@ i0.ɵɵsetComponentScope(CaseEditConfirmComponent, function () { return [i4.NgIf
28135
28059
  i0.ɵɵsetComponentScope(CaseEditPageComponent, function () { return [i4.NgForOf, i4.NgIf, i3.ɵNgNoValidate, i3.NgControlStatusGroup, i3.FormGroupDirective, CallbackErrorsComponent, MarkdownComponent, CaseEventCompletionComponent, CaseEditFormComponent,
28136
28060
  CaseEditGenericErrorsComponent]; }, function () { return [i4.AsyncPipe, CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
28137
28061
  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]; });
28138
- 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]; });
28062
+ 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]; });
28139
28063
  i0.ɵɵsetComponentScope(CaseCreateComponent, function () { return [i4.NgIf, CaseEditComponent]; }, []);
28140
28064
  i0.ɵɵsetComponentScope(CaseProgressComponent, function () { return [i4.NgIf, CaseEditComponent]; }, []);
28141
28065