@hmcts/ccd-case-ui-toolkit 6.10.7-case-flags-multiple-case-flags-tabs-support → 6.10.7-case-flags-create-change-links

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 (44) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +742 -551
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +1 -1
  6. package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +41 -31
  7. package/esm2015/lib/shared/components/case-editor/case-editor.module.js +6 -3
  8. package/esm2015/lib/shared/components/case-editor/services/case-flag-state.service.js +17 -0
  9. package/esm2015/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.js +5 -3
  10. package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.js +70 -20
  11. package/esm2015/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter-control-names.enum.js +6 -0
  12. package/esm2015/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.js +18 -18
  13. package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.js +9 -5
  14. package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.js +119 -92
  15. package/esm2015/lib/shared/components/palette/case-flag/domain/case-flag-state.model.js +1 -1
  16. package/esm2015/lib/shared/components/palette/case-flag/read-case-flag-field.component.js +27 -13
  17. package/esm2015/lib/shared/components/palette/case-flag/write-case-flag-field.component.js +55 -68
  18. package/esm2015/lib/shared/domain/case-flag/flag-type.model.js +16 -1
  19. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +467 -321
  20. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  21. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  22. package/lib/shared/components/case-editor/case-editor.module.d.ts.map +1 -1
  23. package/lib/shared/components/case-editor/services/case-flag-state.service.d.ts +9 -0
  24. package/lib/shared/components/case-editor/services/case-flag-state.service.d.ts.map +1 -0
  25. package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts +1 -0
  26. package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts.map +1 -1
  27. package/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.d.ts +6 -3
  28. package/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.d.ts.map +1 -1
  29. package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter-control-names.enum.d.ts +5 -0
  30. package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter-control-names.enum.d.ts.map +1 -0
  31. package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.d.ts +3 -3
  32. package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.d.ts.map +1 -1
  33. package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
  34. package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts +4 -3
  35. package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts.map +1 -1
  36. package/lib/shared/components/palette/case-flag/domain/case-flag-state.model.d.ts +1 -10
  37. package/lib/shared/components/palette/case-flag/domain/case-flag-state.model.d.ts.map +1 -1
  38. package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts +5 -2
  39. package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts.map +1 -1
  40. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts +14 -22
  41. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
  42. package/lib/shared/domain/case-flag/flag-type.model.d.ts +1 -0
  43. package/lib/shared/domain/case-flag/flag-type.model.d.ts.map +1 -1
  44. package/package.json +1 -1
@@ -4,7 +4,7 @@ import * as i1 from '@angular/common';
4
4
  import { CommonModule, DOCUMENT, CurrencyPipe, formatDate } from '@angular/common';
5
5
  import * as i1$1 from '@angular/router';
6
6
  import { RouterModule, NavigationStart, NavigationEnd } from '@angular/router';
7
- import * as i2 from '@angular/forms';
7
+ import * as i1$3 from '@angular/forms';
8
8
  import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
9
9
  import polling from 'rx-polling';
10
10
  import { throwError, Subject, EMPTY, Observable, of, BehaviorSubject, timer, fromEvent } from 'rxjs';
@@ -17,11 +17,11 @@ import * as moment from 'moment';
17
17
  import { __decorate, __metadata } from 'tslib';
18
18
  import { isUndefined } from 'util';
19
19
  import { StateMachine } from '@edium/fsm';
20
- import * as i1$3 from '@angular/material/dialog';
20
+ import * as i1$4 from '@angular/material/dialog';
21
21
  import { MatDialogConfig, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
22
22
  import * as i4 from '@angular-material-components/datetime-picker';
23
23
  import { NGX_MAT_DATE_FORMATS, NgxMatDateAdapter, NgxMatDatetimePickerModule, NgxMatTimepickerModule, NgxMatNativeDateModule } from '@angular-material-components/datetime-picker';
24
- import * as i1$4 from '@angular/cdk/overlay';
24
+ import * as i1$5 from '@angular/cdk/overlay';
25
25
  import { OverlayModule } from '@angular/cdk/overlay';
26
26
  import * as i7 from '@angular/cdk/tree';
27
27
  import { NestedTreeControl, CdkTreeModule } from '@angular/cdk/tree';
@@ -39,14 +39,14 @@ import * as i3 from '@hmcts/ccpay-web-component';
39
39
  import { PaymentLibModule } from '@hmcts/ccpay-web-component';
40
40
  import * as i11 from '@hmcts/media-viewer';
41
41
  import { MediaViewerModule } from '@hmcts/media-viewer';
42
- import * as i2$1 from '@nicky-lenaers/ngx-scroll-to';
42
+ import * as i2 from '@nicky-lenaers/ngx-scroll-to';
43
43
  import { ScrollToModule } from '@nicky-lenaers/ngx-scroll-to';
44
- import * as i1$5 from 'ngx-md';
44
+ import * as i1$6 from 'ngx-md';
45
45
  import { NgxMdModule } from 'ngx-md';
46
46
  import { NgxMatMomentAdapter, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular-material-components/moment-adapter';
47
47
  import * as i6$2 from '@angular/cdk/portal';
48
48
  import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
49
- import * as i1$6 from 'ngx-pagination';
49
+ import * as i1$7 from 'ngx-pagination';
50
50
  import { NgxPaginationModule, PaginatePipe } from 'ngx-pagination';
51
51
  import * as i9 from '@angular/material/tabs';
52
52
  import { MatTabsModule } from '@angular/material/tabs';
@@ -8057,7 +8057,7 @@ class CaseEditComponent {
8057
8057
  }
8058
8058
  CaseEditComponent.ORIGIN_QUERY_PARAM = 'origin';
8059
8059
  CaseEditComponent.ALERT_MESSAGE = 'Page is being refreshed so you will be redirected to the first page of this event.';
8060
- CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0.ɵɵdirectiveInject(i2.FormBuilder), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(FieldsPurger), i0.ɵɵdirectiveInject(ConditionalShowRegistrarService), i0.ɵɵdirectiveInject(WizardFactoryService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(WindowService)); };
8060
+ CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0.ɵɵdirectiveInject(i1$3.FormBuilder), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(FieldsPurger), i0.ɵɵdirectiveInject(ConditionalShowRegistrarService), i0.ɵɵdirectiveInject(WizardFactoryService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(WindowService)); };
8061
8061
  CaseEditComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseEditComponent, selectors: [["ccd-case-edit"]], inputs: { eventTrigger: "eventTrigger", submit: "submit", validate: "validate", saveDraft: "saveDraft", caseDetails: "caseDetails" }, outputs: { cancelled: "cancelled", submitted: "submitted" }, features: [i0.ɵɵProvidersFeature([GreyBarService])], decls: 1, vars: 0, template: function CaseEditComponent_Template(rf, ctx) { if (rf & 1) {
8062
8062
  i0.ɵɵelement(0, "router-outlet");
8063
8063
  } }, directives: [i1$1.RouterOutlet], 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:1px solid #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%] td[_ngcontent-%COMP%], .summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:0}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.case-field-label[_ngcontent-%COMP%]{width:45%}.case-field-content[_ngcontent-%COMP%]{width:50%}.case-field-change[_ngcontent-%COMP%]{width:5%}"] });
@@ -8069,7 +8069,7 @@ CaseEditComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseEditComponent, sele
8069
8069
  styleUrls: ['../case-edit.scss'],
8070
8070
  providers: [GreyBarService]
8071
8071
  }]
8072
- }], function () { return [{ type: i2.FormBuilder }, { type: i1$1.Router }, { type: i1$1.ActivatedRoute }, { type: FieldsUtils }, { type: FieldsPurger }, { type: ConditionalShowRegistrarService }, { type: WizardFactoryService }, { type: SessionStorageService }, { type: WindowService }]; }, { eventTrigger: [{
8072
+ }], function () { return [{ type: i1$3.FormBuilder }, { type: i1$1.Router }, { type: i1$1.ActivatedRoute }, { type: FieldsUtils }, { type: FieldsPurger }, { type: ConditionalShowRegistrarService }, { type: WizardFactoryService }, { type: SessionStorageService }, { type: WindowService }]; }, { eventTrigger: [{
8073
8073
  type: Input
8074
8074
  }], submit: [{
8075
8075
  type: Input
@@ -8398,7 +8398,7 @@ class SaveOrDiscardDialogComponent {
8398
8398
  this.matDialogRef.close(this.result);
8399
8399
  }
8400
8400
  }
8401
- SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef)); };
8401
+ SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0.ɵɵdirectiveInject(i1$4.MatDialogRef)); };
8402
8402
  SaveOrDiscardDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SaveOrDiscardDialogComponent, selectors: [["ccd-save-or-discard-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Save", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Discard", 1, "button", "button-secondary", 3, "click"]], template: function SaveOrDiscardDialogComponent_Template(rf, ctx) { if (rf & 1) {
8403
8403
  i0.ɵɵelementStart(0, "div");
8404
8404
  i0.ɵɵelementStart(1, "div", 0);
@@ -8436,7 +8436,7 @@ SaveOrDiscardDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SaveOrDiscar
8436
8436
  templateUrl: './save-or-discard-dialog.component.html',
8437
8437
  styleUrls: ['../action-dialog.component.scss']
8438
8438
  }]
8439
- }], function () { return [{ type: i1$3.MatDialogRef }]; }, null); })();
8439
+ }], function () { return [{ type: i1$4.MatDialogRef }]; }, null); })();
8440
8440
 
8441
8441
  function initDialog() {
8442
8442
  const dialogConfig = new MatDialogConfig();
@@ -9066,7 +9066,7 @@ CaseEditPageComponent.RESUMED_FORM_SAVE = 'RESUMED_FORM_SAVE';
9066
9066
  CaseEditPageComponent.TRIGGER_TEXT_START = 'Continue';
9067
9067
  CaseEditPageComponent.TRIGGER_TEXT_SAVE = 'Save and continue';
9068
9068
  CaseEditPageComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Continue';
9069
- CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(CaseEditDataService)); };
9069
+ CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$4.MatDialog), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(CaseEditDataService)); };
9070
9070
  CaseEditPageComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 13, vars: 12, consts: [[4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "error-summary", "role", "status", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], ["role", "status", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading-3", 1, "heading-h3", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], ["class", "ccd-error-summary-li", 4, "ngFor", "ngForOf"], [1, "ccd-error-summary-li"], [1, "form", 3, "formGroup", "submit"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"]], template: function CaseEditPageComponent_Template(rf, ctx) { if (rf & 1) {
9071
9071
  i0.ɵɵtemplate(0, CaseEditPageComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
9072
9072
  i0.ɵɵtemplate(1, CaseEditPageComponent_ng_container_1_Template, 3, 2, "ng-container", 0);
@@ -9108,7 +9108,7 @@ CaseEditPageComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseEditPageCompone
9108
9108
  templateUrl: 'case-edit-page.html',
9109
9109
  styleUrls: ['./case-edit-page.scss']
9110
9110
  }]
9111
- }], function () { return [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$3.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }]; }, null); })();
9111
+ }], function () { return [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$4.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }]; }, null); })();
9112
9112
 
9113
9113
  class CallbackErrorsContext {
9114
9114
  }
@@ -10610,8 +10610,11 @@ var UpdateFlagStep;
10610
10610
  })(UpdateFlagStep || (UpdateFlagStep = {}));
10611
10611
 
10612
10612
  function ReadCaseFlagFieldComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
10613
+ const _r3 = i0.ɵɵgetCurrentView();
10613
10614
  i0.ɵɵelementContainerStart(0);
10614
- i0.ɵɵelement(1, "ccd-case-flag-summary-list", 3);
10615
+ i0.ɵɵelementStart(1, "ccd-case-flag-summary-list", 3);
10616
+ i0.ɵɵlistener("changeButtonEmitter", function ReadCaseFlagFieldComponent_ng_container_1_Template_ccd_case_flag_summary_list_changeButtonEmitter_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return ctx_r2.navigateBackToForm($event); });
10617
+ i0.ɵɵelementEnd();
10615
10618
  i0.ɵɵelementContainerEnd();
10616
10619
  } if (rf & 2) {
10617
10620
  const ctx_r0 = i0.ɵɵnextContext();
@@ -10621,26 +10624,26 @@ function ReadCaseFlagFieldComponent_ng_container_1_Template(rf, ctx) { if (rf &
10621
10624
  function ReadCaseFlagFieldComponent_ng_container_2_div_3_ccd_case_flag_table_1_Template(rf, ctx) { if (rf & 1) {
10622
10625
  i0.ɵɵelement(0, "ccd-case-flag-table", 8);
10623
10626
  } if (rf & 2) {
10624
- const flagData_r4 = i0.ɵɵnextContext().$implicit;
10625
- i0.ɵɵproperty("tableCaption", flagData_r4.flags.partyName)("flagData", flagData_r4)("firstColumnHeader", "Party level flags");
10627
+ const flagData_r6 = i0.ɵɵnextContext().$implicit;
10628
+ i0.ɵɵproperty("tableCaption", flagData_r6.flags.partyName)("flagData", flagData_r6)("firstColumnHeader", "Party level flags");
10626
10629
  } }
10627
10630
  function ReadCaseFlagFieldComponent_ng_container_2_div_3_Template(rf, ctx) { if (rf & 1) {
10628
10631
  i0.ɵɵelementStart(0, "div");
10629
10632
  i0.ɵɵtemplate(1, ReadCaseFlagFieldComponent_ng_container_2_div_3_ccd_case_flag_table_1_Template, 1, 3, "ccd-case-flag-table", 7);
10630
10633
  i0.ɵɵelementEnd();
10631
10634
  } if (rf & 2) {
10632
- const flagData_r4 = ctx.$implicit;
10635
+ const flagData_r6 = ctx.$implicit;
10633
10636
  i0.ɵɵadvance(1);
10634
- i0.ɵɵproperty("ngIf", flagData_r4.flags.partyName);
10637
+ i0.ɵɵproperty("ngIf", flagData_r6.flags.partyName);
10635
10638
  } }
10636
10639
  function ReadCaseFlagFieldComponent_ng_container_2_div_4_Template(rf, ctx) { if (rf & 1) {
10637
10640
  i0.ɵɵelementStart(0, "div");
10638
10641
  i0.ɵɵelement(1, "ccd-case-flag-table", 8);
10639
10642
  i0.ɵɵelementEnd();
10640
10643
  } if (rf & 2) {
10641
- const ctx_r3 = i0.ɵɵnextContext(2);
10644
+ const ctx_r5 = i0.ɵɵnextContext(2);
10642
10645
  i0.ɵɵadvance(1);
10643
- i0.ɵɵproperty("tableCaption", "Case level flags")("flagData", ctx_r3.caseLevelCaseFlagData)("firstColumnHeader", "Case flags");
10646
+ i0.ɵɵproperty("tableCaption", "Case level flags")("flagData", ctx_r5.caseLevelCaseFlagData)("firstColumnHeader", "Case flags");
10644
10647
  } }
10645
10648
  function ReadCaseFlagFieldComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
10646
10649
  i0.ɵɵelementContainerStart(0);
@@ -10658,9 +10661,10 @@ function ReadCaseFlagFieldComponent_ng_container_2_Template(rf, ctx) { if (rf &
10658
10661
  i0.ɵɵproperty("ngIf", ctx_r1.caseLevelCaseFlagData);
10659
10662
  } }
10660
10663
  class ReadCaseFlagFieldComponent extends AbstractFieldReadComponent {
10661
- constructor(route) {
10664
+ constructor(route, router) {
10662
10665
  super();
10663
10666
  this.route = route;
10667
+ this.router = router;
10664
10668
  this.paletteContext = PaletteContext;
10665
10669
  this.caseLevelCaseFlagsFieldId = 'caseFlags';
10666
10670
  this.caseNameMissing = 'Case name missing';
@@ -10699,6 +10703,8 @@ class ReadCaseFlagFieldComponent extends AbstractFieldReadComponent {
10699
10703
  // which the new flag has been added
10700
10704
  if (flagLauncherComponent.caseField.display_context_parameter === this.createMode &&
10701
10705
  flagLauncherComponent.selectedFlagsLocation) {
10706
+ // this.flagLocation = flagLauncherComponent.selectedFlagsLocation;
10707
+ this.pathToFlagsFormGroup = flagLauncherComponent.selectedFlagsLocation.pathToFlagsFormGroup;
10702
10708
  this.flagForSummaryDisplay = this.extractNewFlagToFlagDetailDisplayObject(flagLauncherComponent.selectedFlagsLocation);
10703
10709
  // Set the display mode for the "Review flag details" summary page
10704
10710
  this.summaryListDisplayMode = CaseFlagSummaryListDisplayMode.CREATE;
@@ -10733,9 +10739,17 @@ class ReadCaseFlagFieldComponent extends AbstractFieldReadComponent {
10733
10739
  }
10734
10740
  return null;
10735
10741
  }
10742
+ navigateBackToForm(fieldState) {
10743
+ this.router.navigate(['../createCaseFlagCaseFlagFormPage'], {
10744
+ relativeTo: this.route,
10745
+ state: {
10746
+ fieldState,
10747
+ }
10748
+ });
10749
+ }
10736
10750
  }
10737
- ReadCaseFlagFieldComponent.ɵfac = function ReadCaseFlagFieldComponent_Factory(t) { return new (t || ReadCaseFlagFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
10738
- ReadCaseFlagFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadCaseFlagFieldComponent, selectors: [["ccd-read-case-flag-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [[3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], [3, "flagForSummaryDisplay", "summaryListDisplayMode"], [1, "govuk-heading-l"], [4, "ngFor", "ngForOf"], [4, "ngIf"], [3, "tableCaption", "flagData", "firstColumnHeader", 4, "ngIf"], [3, "tableCaption", "flagData", "firstColumnHeader"]], template: function ReadCaseFlagFieldComponent_Template(rf, ctx) { if (rf & 1) {
10751
+ ReadCaseFlagFieldComponent.ɵfac = function ReadCaseFlagFieldComponent_Factory(t) { return new (t || ReadCaseFlagFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router)); };
10752
+ ReadCaseFlagFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadCaseFlagFieldComponent, selectors: [["ccd-read-case-flag-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [[3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], [3, "flagForSummaryDisplay", "summaryListDisplayMode", "changeButtonEmitter"], [1, "govuk-heading-l"], [4, "ngFor", "ngForOf"], [4, "ngIf"], [3, "tableCaption", "flagData", "firstColumnHeader", 4, "ngIf"], [3, "tableCaption", "flagData", "firstColumnHeader"]], template: function ReadCaseFlagFieldComponent_Template(rf, ctx) { if (rf & 1) {
10739
10753
  i0.ɵɵelementContainerStart(0, 0);
10740
10754
  i0.ɵɵtemplate(1, ReadCaseFlagFieldComponent_ng_container_1_Template, 2, 2, "ng-container", 1);
10741
10755
  i0.ɵɵtemplate(2, ReadCaseFlagFieldComponent_ng_container_2_Template, 5, 2, "ng-container", 2);
@@ -10752,7 +10766,21 @@ ReadCaseFlagFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadCaseFlagFi
10752
10766
  templateUrl: './read-case-flag-field.component.html',
10753
10767
  styleUrls: ['./read-case-flag-field.component.scss']
10754
10768
  }]
10755
- }], function () { return [{ type: i1$1.ActivatedRoute }]; }, null); })();
10769
+ }], function () { return [{ type: i1$1.ActivatedRoute }, { type: i1$1.Router }]; }, null); })();
10770
+
10771
+ class CaseFlagStateService {
10772
+ constructor() {
10773
+ this.formGroup = new FormGroup({});
10774
+ }
10775
+ resetCache() {
10776
+ this.formGroup = new FormGroup({});
10777
+ }
10778
+ }
10779
+ CaseFlagStateService.ɵfac = function CaseFlagStateService_Factory(t) { return new (t || CaseFlagStateService)(); };
10780
+ CaseFlagStateService.ɵprov = i0.ɵɵdefineInjectable({ token: CaseFlagStateService, factory: CaseFlagStateService.ɵfac });
10781
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFlagStateService, [{
10782
+ type: Injectable
10783
+ }], null, null); })();
10756
10784
 
10757
10785
  function WriteCaseFlagFieldComponent_div_0_div_3_Template(rf, ctx) { if (rf & 1) {
10758
10786
  const _r6 = i0.ɵɵgetCurrentView();
@@ -10817,7 +10845,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template(rf, ctx) { if
10817
10845
  } if (rf & 2) {
10818
10846
  const ctx_r9 = i0.ɵɵnextContext(2);
10819
10847
  i0.ɵɵadvance(1);
10820
- i0.ɵɵproperty("formGroup", ctx_r9.caseFlagParentFormGroup)("languages", ctx_r9.listOfValues)("flagCode", ctx_r9.flagCode);
10848
+ i0.ɵɵproperty("formGroup", ctx_r9.caseFlagParentFormGroup)("languages", ctx_r9.flagType.listOfValues)("flagCode", ctx_r9.flagType.flagCode);
10821
10849
  } }
10822
10850
  function WriteCaseFlagFieldComponent_div_1_ng_container_7_Template(rf, ctx) { if (rf & 1) {
10823
10851
  const _r19 = i0.ɵɵgetCurrentView();
@@ -10904,22 +10932,35 @@ function WriteCaseFlagFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
10904
10932
  i0.ɵɵproperty("ngSwitchCase", ctx_r2.caseFlagFieldState.FLAG_UPDATE);
10905
10933
  } }
10906
10934
  class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
10907
- constructor(route, caseEditDataService) {
10935
+ constructor(route, caseEditDataService, location, caseFlagStateService) {
10908
10936
  super();
10909
10937
  this.route = route;
10910
10938
  this.caseEditDataService = caseEditDataService;
10939
+ this.location = location;
10940
+ this.caseFlagStateService = caseFlagStateService;
10911
10941
  this.caseFlagFieldState = CaseFlagFieldState;
10912
10942
  this.errorMessages = [];
10913
- this.caseFlagParentFormGroup = new FormGroup({});
10914
10943
  this.flagCommentsOptional = false;
10915
- this.listOfValues = null;
10916
10944
  this.allCaseFlagStagesCompleted = false;
10917
10945
  this.updateMode = '#ARGUMENT(UPDATE)';
10918
10946
  // Code for "Other" flag type as defined in Reference Data
10919
10947
  this.otherFlagTypeCode = 'OT0001';
10920
10948
  this.caseNameMissing = 'Case name missing';
10921
10949
  }
10950
+ get flagType() {
10951
+ var _a;
10952
+ return (_a = this.caseFlagParentFormGroup) === null || _a === void 0 ? void 0 : _a.value.flagType;
10953
+ }
10954
+ get selectedFlagsLocation() {
10955
+ var _a;
10956
+ return (_a = this.caseFlagParentFormGroup) === null || _a === void 0 ? void 0 : _a.value.selectedLocation;
10957
+ }
10922
10958
  ngOnInit() {
10959
+ var _a, _b;
10960
+ if (!(((_a = this.location.getState()) === null || _a === void 0 ? void 0 : _a['fieldState']) >= 0)) {
10961
+ this.caseFlagStateService.resetCache();
10962
+ }
10963
+ this.caseFlagParentFormGroup = this.caseFlagStateService.formGroup;
10923
10964
  this.caseEditDataService.clearFormValidationErrors();
10924
10965
  // Check for existing FlagLauncher control in parent and remove it - this is the only way to ensure its invalidity
10925
10966
  // is set correctly at the start, when the component is reloaded and the control is re-registered. Otherwise, the
@@ -10953,12 +10994,17 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
10953
10994
  // Set boolean indicating the display_context_parameter is "update"
10954
10995
  this.isDisplayContextParameterUpdate =
10955
10996
  this.setDisplayContextParameterUpdate((this.route.snapshot.data.eventTrigger.case_fields));
10956
- // Set starting field state
10957
- this.fieldState = this.isDisplayContextParameterUpdate ? CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : CaseFlagFieldState.FLAG_LOCATION;
10997
+ // Set starting field state if fieldState not the right value
10998
+ if (!(((_b = this.location.getState()) === null || _b === void 0 ? void 0 : _b['fieldState']) >= 0)) {
10999
+ this.fieldState = this.isDisplayContextParameterUpdate ? CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : CaseFlagFieldState.FLAG_LOCATION;
11000
+ }
11001
+ else {
11002
+ this.fieldState = this.location.getState()['fieldState'];
11003
+ }
10958
11004
  // Get case title, to be used by child components
10959
- this.caseEditDataService.caseTitle$.subscribe({
11005
+ this.caseTitleSubscription = this.caseEditDataService.caseTitle$.subscribe({
10960
11006
  next: title => {
10961
- this.caseTitle = title.length > 0 ? title : this.caseNameMissing;
11007
+ this.caseTitle = (title === null || title === void 0 ? void 0 : title.length) > 0 ? title : this.caseNameMissing;
10962
11008
  }
10963
11009
  });
10964
11010
  }
@@ -10968,31 +11014,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
10968
11014
  }
10969
11015
  onCaseFlagStateEmitted(caseFlagState) {
10970
11016
  this.caseEditDataService.clearFormValidationErrors();
10971
- // If the current state is CaseFlagFieldState.FLAG_LOCATION and a flag location (a Flags instance) has been selected,
10972
- // set the parent Case Flag FormGroup for this component's children by using the provided pathToFlagsFormGroup, and
10973
- // set the selected flag location on this component
10974
- if (caseFlagState.currentCaseFlagFieldState === CaseFlagFieldState.FLAG_LOCATION
10975
- && caseFlagState.selectedFlagsLocation
10976
- && caseFlagState.selectedFlagsLocation.pathToFlagsFormGroup) {
10977
- this.setCaseFlagParentFormGroup(caseFlagState.selectedFlagsLocation.pathToFlagsFormGroup);
10978
- this.selectedFlagsLocation = caseFlagState.selectedFlagsLocation;
10979
- }
10980
- // If the current state is CaseFlagFieldState.FLAG_TYPE, cache the flag name, path, hearing relevant indicator, code,
10981
- // and "list of values" (currently applicable to language flag types)
10982
- if (caseFlagState.currentCaseFlagFieldState === CaseFlagFieldState.FLAG_TYPE) {
10983
- this.flagName = caseFlagState.flagName;
10984
- this.flagPath = caseFlagState.flagPath;
10985
- this.hearingRelevantFlag = caseFlagState.hearingRelevantFlag;
10986
- this.flagCode = caseFlagState.flagCode;
10987
- this.listOfValues = caseFlagState.listOfValues;
10988
- }
10989
- // If the current state is CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS and a flag has been selected, set the parent
10990
- // Case Flag FormGroup for this component's children by using the provided pathToFlagsFormGroup
10991
- if (caseFlagState.currentCaseFlagFieldState === CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS
10992
- && caseFlagState.selectedFlag
10993
- && caseFlagState.selectedFlag.pathToFlagsFormGroup) {
10994
- this.setCaseFlagParentFormGroup(caseFlagState.selectedFlag.pathToFlagsFormGroup);
10995
- }
10996
11017
  this.errorMessages = caseFlagState.errorMessages;
10997
11018
  this.selectedFlag = caseFlagState.selectedFlag;
10998
11019
  // Validation succeeded; proceed to next state or final review stage ("Check your answers")
@@ -11012,11 +11033,12 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
11012
11033
  }
11013
11034
  }
11014
11035
  proceedToNextState() {
11036
+ var _a;
11015
11037
  if (!this.isAtFinalState()) {
11016
11038
  // Skip the "language interpreter" state if current state is CaseFlagFieldState.FLAG_TYPE and the flag type doesn't
11017
11039
  // have a "list of values" - currently, this is present only for those flag types that require language interpreter
11018
11040
  // selection
11019
- if (this.fieldState === CaseFlagFieldState.FLAG_TYPE && !this.listOfValues) {
11041
+ if (this.fieldState === CaseFlagFieldState.FLAG_TYPE && !((_a = this.flagType) === null || _a === void 0 ? void 0 : _a.listOfValues)) {
11020
11042
  this.fieldState = CaseFlagFieldState.FLAG_COMMENTS;
11021
11043
  }
11022
11044
  else {
@@ -11056,10 +11078,11 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
11056
11078
  }
11057
11079
  }
11058
11080
  });
11059
- let flagsCaseFieldValue = this.selectedFlagsLocation.caseField.value;
11081
+ const path = this.selectedFlagsLocation.pathToFlagsFormGroup;
11082
+ const flagDataRef = this.flagsData.find(item => item.pathToFlagsFormGroup === path);
11083
+ let flagsCaseFieldValue = flagDataRef.caseField.value;
11060
11084
  // Use the pathToFlagsFormGroup property from the selected flag location to drill down to the correct part of the
11061
11085
  // CaseField value to apply changes to
11062
- const path = this.selectedFlagsLocation.pathToFlagsFormGroup;
11063
11086
  // Root-level Flags CaseFields don't have a dot-delimited path - just the CaseField ID itself - so don't drill down
11064
11087
  if (path.indexOf('.') > -1) {
11065
11088
  path.slice(path.indexOf('.') + 1).split('.').forEach(part => flagsCaseFieldValue = flagsCaseFieldValue[part]);
@@ -11067,8 +11090,8 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
11067
11090
  // If the CaseField for the selected flags location has no value, set it to an empty object so it can be populated
11068
11091
  // with flag details
11069
11092
  if (!flagsCaseFieldValue) {
11070
- this.selectedFlagsLocation.caseField.value = {};
11071
- flagsCaseFieldValue = this.selectedFlagsLocation.caseField.value;
11093
+ flagDataRef.caseField.value = {};
11094
+ flagsCaseFieldValue = flagDataRef.caseField.value;
11072
11095
  }
11073
11096
  // Create a details array if one does not exist
11074
11097
  if (!flagsCaseFieldValue.hasOwnProperty('details')) {
@@ -11149,38 +11172,22 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
11149
11172
  onFlagCommentsOptionalEmitted(_) {
11150
11173
  this.flagCommentsOptional = true;
11151
11174
  }
11152
- /**
11153
- * Set the parent {@link FormGroup} for this component's children, depending on the `Flags` {@link CaseField} instance
11154
- * to which data should be attached. **Note:** The parent is not _this_ component's `FormGroup` (as might otherwise be
11155
- * expected) because this component is not expected to have a value, given it is used for the empty `FlagLauncher` base
11156
- * field type.
11157
- *
11158
- * @param pathToFlagsFormGroup The dot-delimited string that is the path to the `FormGroup` for a `Flags` instance
11159
- */
11160
- setCaseFlagParentFormGroup(pathToFlagsFormGroup) {
11161
- this.caseFlagParentFormGroup = this.formGroup.parent.get(pathToFlagsFormGroup);
11162
- }
11163
11175
  populateNewFlagDetailInstance() {
11176
+ var _a, _b, _c, _d, _e, _f, _g;
11177
+ const formValues = (_a = this.caseFlagParentFormGroup) === null || _a === void 0 ? void 0 : _a.value;
11164
11178
  return {
11165
- name: this.flagName,
11179
+ name: (_b = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _b === void 0 ? void 0 : _b.name,
11166
11180
  // Currently, subTypeValue and subTypeKey are applicable only to language flag types
11167
- subTypeValue: this.caseFlagParentFormGroup.value.languageSearchTerm
11168
- ? this.caseFlagParentFormGroup.value.languageSearchTerm.value
11169
- : this.caseFlagParentFormGroup.value.manualLanguageEntry
11170
- ? this.caseFlagParentFormGroup.value.manualLanguageEntry
11171
- : null,
11181
+ subTypeValue: (formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm) ? formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm.value : (formValues === null || formValues === void 0 ? void 0 : formValues.manualLanguageEntry) ? formValues === null || formValues === void 0 ? void 0 : formValues.manualLanguageEntry : null,
11172
11182
  // For user-entered (i.e. non-Reference Data) languages, there is no key
11173
- subTypeKey: this.caseFlagParentFormGroup.value.languageSearchTerm
11174
- ? this.caseFlagParentFormGroup.value.languageSearchTerm.key
11175
- : null,
11176
- otherDescription: this.flagCode === this.otherFlagTypeCode && this.caseFlagParentFormGroup.value.otherFlagTypeDescription
11177
- ? this.caseFlagParentFormGroup.value.otherFlagTypeDescription
11178
- : null,
11179
- flagComment: this.caseFlagParentFormGroup.value.flagComments ? this.caseFlagParentFormGroup.value.flagComments : null,
11183
+ subTypeKey: (formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm) ? formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm.key : null,
11184
+ otherDescription: ((_c = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _c === void 0 ? void 0 : _c.flagCode) === this.otherFlagTypeCode && (formValues === null || formValues === void 0 ? void 0 : formValues.otherFlagTypeDescription)
11185
+ ? formValues === null || formValues === void 0 ? void 0 : formValues.otherFlagTypeDescription : null,
11186
+ flagComment: formValues === null || formValues === void 0 ? void 0 : formValues.flagComments,
11180
11187
  dateTimeCreated: new Date().toISOString(),
11181
- path: this.flagPath,
11182
- hearingRelevant: this.hearingRelevantFlag ? 'Yes' : 'No',
11183
- flagCode: this.flagCode,
11188
+ path: ((_d = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _d === void 0 ? void 0 : _d.Path) && ((_e = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _e === void 0 ? void 0 : _e.Path.map(pathValue => Object.assign({ id: null, value: pathValue }))),
11189
+ hearingRelevant: ((_f = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _f === void 0 ? void 0 : _f.hearingRelevantFlag) ? 'Yes' : 'No',
11190
+ flagCode: (_g = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _g === void 0 ? void 0 : _g.flagCode,
11184
11191
  status: CaseFlagStatus.ACTIVE
11185
11192
  };
11186
11193
  }
@@ -11191,8 +11198,12 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
11191
11198
  this.formGroup.updateValueAndValidity();
11192
11199
  this.caseEditDataService.setTriggerSubmitEvent(true);
11193
11200
  }
11201
+ ngOnDestroy() {
11202
+ var _a;
11203
+ (_a = this.caseTitleSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
11204
+ }
11194
11205
  }
11195
- WriteCaseFlagFieldComponent.ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseEditDataService)); };
11206
+ WriteCaseFlagFieldComponent.ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(i1.Location), i0.ɵɵdirectiveInject(CaseFlagStateService)); };
11196
11207
  WriteCaseFlagFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCaseFlagFieldComponent, selectors: [["ccd-write-case-flag-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], ["id", "create-flag-caption", 1, "govuk-caption-l", 3, "ngClass"], [4, "ngSwitchCase"], [3, "formGroup", "flagsData", "caseFlagStateEmitter"], [3, "formGroup", "jurisdiction", "caseFlagStateEmitter", "flagCommentsOptionalEmitter"], [3, "formGroup", "languages", "flagCode", "caseFlagStateEmitter"], [3, "formGroup", "optional", "caseFlagStateEmitter"], [3, "formGroup", "flagsData", "caseTitle", "caseFlagStateEmitter"], [3, "formGroup", "selectedFlag", "caseFlagStateEmitter"]], template: function WriteCaseFlagFieldComponent_Template(rf, ctx) { if (rf & 1) {
11197
11208
  i0.ɵɵtemplate(0, WriteCaseFlagFieldComponent_div_0_Template, 4, 1, "div", 0);
11198
11209
  i0.ɵɵtemplate(1, WriteCaseFlagFieldComponent_div_1_Template, 8, 10, "div", 1);
@@ -11211,7 +11222,7 @@ WriteCaseFlagFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCaseFlag
11211
11222
  templateUrl: './write-case-flag-field.component.html',
11212
11223
  styleUrls: ['./write-case-flag-field.component.scss']
11213
11224
  }]
11214
- }], function () { return [{ type: i1$1.ActivatedRoute }, { type: CaseEditDataService }]; }, null); })();
11225
+ }], function () { return [{ type: i1$1.ActivatedRoute }, { type: CaseEditDataService }, { type: i1.Location }, { type: CaseFlagStateService }]; }, null); })();
11215
11226
 
11216
11227
  function ReadCaseLinkFieldComponent_a_0_Template(rf, ctx) { if (rf & 1) {
11217
11228
  i0.ɵɵelementStart(0, "a", 1);
@@ -11349,7 +11360,7 @@ WriteCaseLinkFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCaseLink
11349
11360
  i0.ɵɵproperty("ngIf", ctx.caseReferenceControl.errors && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched));
11350
11361
  i0.ɵɵadvance(1);
11351
11362
  i0.ɵɵproperty("id", ctx.id())("formControl", ctx.caseReferenceControl);
11352
- } }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
11363
+ } }, directives: [i1.NgClass, i1.NgIf, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
11353
11364
  const ɵWriteCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteCaseLinkFieldComponent);
11354
11365
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteCaseLinkFieldComponent, [{
11355
11366
  type: Component,
@@ -11463,7 +11474,7 @@ class RemoveDialogComponent {
11463
11474
  this.matDialogRef.close(this.result);
11464
11475
  }
11465
11476
  }
11466
- RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef)); };
11477
+ RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0.ɵɵdirectiveInject(i1$4.MatDialogRef)); };
11467
11478
  RemoveDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RemoveDialogComponent, selectors: [["ccd-remove-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Remove", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function RemoveDialogComponent_Template(rf, ctx) { if (rf & 1) {
11468
11479
  i0.ɵɵelementStart(0, "div");
11469
11480
  i0.ɵɵelementStart(1, "div", 0);
@@ -11501,7 +11512,7 @@ RemoveDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RemoveDialogCompone
11501
11512
  templateUrl: './remove-dialog.component.html',
11502
11513
  styleUrls: ['../action-dialog.component.scss']
11503
11514
  }]
11504
- }], function () { return [{ type: i1$3.MatDialogRef }]; }, null); })();
11515
+ }], function () { return [{ type: i1$4.MatDialogRef }]; }, null); })();
11505
11516
 
11506
11517
  const _c0$L = ["collectionItem"];
11507
11518
  function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) { if (rf & 1) {
@@ -11875,7 +11886,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
11875
11886
  return notSimple.indexOf(caseField.field_type.collection_field_type.type) < 0;
11876
11887
  }
11877
11888
  }
11878
- WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(i2$1.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
11889
+ WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$4.MatDialog), i0.ɵɵdirectiveInject(i2.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
11879
11890
  WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) { if (rf & 1) {
11880
11891
  i0.ɵɵviewQuery(_c0$L, 1);
11881
11892
  } if (rf & 2) {
@@ -11917,7 +11928,7 @@ WriteCollectionFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCollec
11917
11928
  templateUrl: './write-collection-field.html',
11918
11929
  styleUrls: ['./collection-field.scss']
11919
11930
  }]
11920
- }], function () { return [{ type: i1$3.MatDialog }, { type: i2$1.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
11931
+ }], function () { return [{ type: i1$4.MatDialog }, { type: i2.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
11921
11932
  type: Input
11922
11933
  }], formGroup: [{
11923
11934
  type: Input
@@ -12143,7 +12154,7 @@ class DocumentDialogComponent {
12143
12154
  this.matDialogRef.close(this.result);
12144
12155
  }
12145
12156
  }
12146
- DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef)); };
12157
+ DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0.ɵɵdirectiveInject(i1$4.MatDialogRef)); };
12147
12158
  DocumentDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DocumentDialogComponent, selectors: [["ccd-document-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Replace", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DocumentDialogComponent_Template(rf, ctx) { if (rf & 1) {
12148
12159
  i0.ɵɵelementStart(0, "div");
12149
12160
  i0.ɵɵelementStart(1, "div", 0);
@@ -12181,7 +12192,7 @@ DocumentDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DocumentDialogCom
12181
12192
  templateUrl: './document-dialog.component.html',
12182
12193
  styleUrls: ['../action-dialog.component.scss']
12183
12194
  }]
12184
- }], function () { return [{ type: i1$3.MatDialogRef }]; }, null); })();
12195
+ }], function () { return [{ type: i1$4.MatDialogRef }]; }, null); })();
12185
12196
 
12186
12197
  class FileUploadStateService {
12187
12198
  setUploadInProgress(value) {
@@ -12473,7 +12484,7 @@ WriteDocumentFieldComponent.DOCUMENT_HASH = 'document_hash';
12473
12484
  WriteDocumentFieldComponent.UPLOAD_ERROR_FILE_REQUIRED = 'File required';
12474
12485
  WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
12475
12486
  WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
12476
- WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(FileUploadStateService)); };
12487
+ WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$4.MatDialog), i0.ɵɵdirectiveInject(FileUploadStateService)); };
12477
12488
  WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
12478
12489
  i0.ɵɵviewQuery(_c0$K, 1);
12479
12490
  } if (rf & 2) {
@@ -12538,7 +12549,7 @@ WriteDocumentFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDocument
12538
12549
  selector: 'ccd-write-document-field',
12539
12550
  templateUrl: './write-document-field.html'
12540
12551
  }]
12541
- }], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$3.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
12552
+ }], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$4.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
12542
12553
  type: ViewChild,
12543
12554
  args: ['fileInput', { static: false }]
12544
12555
  }], clickout: [{
@@ -12696,7 +12707,7 @@ WriteDynamicListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDynam
12696
12707
  i0.ɵɵproperty("ngValue", null);
12697
12708
  i0.ɵɵadvance(2);
12698
12709
  i0.ɵɵproperty("ngForOf", ctx.caseField.list_items);
12699
- } }, directives: [i1.NgClass, i1.NgIf, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.FormControlDirective, i2.NgSelectOption, i2.ɵangular_packages_forms_forms_z, i1.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
12710
+ } }, directives: [i1.NgClass, i1.NgIf, i1$3.SelectControlValueAccessor, i1$3.NgControlStatus, i1$3.FormControlDirective, i1$3.NgSelectOption, i1$3.ɵangular_packages_forms_forms_z, i1.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
12700
12711
  const ɵWriteDynamicListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteDynamicListFieldComponent);
12701
12712
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicListFieldComponent, [{
12702
12713
  type: Component,
@@ -12874,7 +12885,7 @@ WriteDynamicRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Write
12874
12885
  i0.ɵɵproperty("ngIf", ctx.dynamicRadioListControl.errors && ctx.dynamicRadioListControl.dirty);
12875
12886
  i0.ɵɵadvance(2);
12876
12887
  i0.ɵɵproperty("ngForOf", ctx.caseField.list_items);
12877
- } }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf, i2.RadioControlValueAccessor, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
12888
+ } }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf, i1$3.RadioControlValueAccessor, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
12878
12889
  const ɵWriteDynamicRadioListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteDynamicRadioListFieldComponent);
12879
12890
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicRadioListFieldComponent, [{
12880
12891
  type: Component,
@@ -12974,7 +12985,7 @@ WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldC
12974
12985
  i0.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
12975
12986
  i0.ɵɵadvance(1);
12976
12987
  i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$f, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
12977
- } }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
12988
+ } }, directives: [i1.NgClass, i1.NgIf, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
12978
12989
  const ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
12979
12990
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteEmailFieldComponent, [{
12980
12991
  type: Component,
@@ -13118,7 +13129,7 @@ WriteFixedListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFixedLi
13118
13129
  i0.ɵɵproperty("ngValue", null);
13119
13130
  i0.ɵɵadvance(2);
13120
13131
  i0.ɵɵproperty("ngForOf", ctx.listItems);
13121
- } }, directives: [i1.NgClass, i1.NgIf, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.FormControlDirective, i2.NgSelectOption, i2.ɵangular_packages_forms_forms_z, i1.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
13132
+ } }, directives: [i1.NgClass, i1.NgIf, i1$3.SelectControlValueAccessor, i1$3.NgControlStatus, i1$3.FormControlDirective, i1$3.NgSelectOption, i1$3.ɵangular_packages_forms_forms_z, i1.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
13122
13133
  const ɵWriteFixedListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteFixedListFieldComponent);
13123
13134
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteFixedListFieldComponent, [{
13124
13135
  type: Component,
@@ -13248,7 +13259,7 @@ WriteFixedRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFi
13248
13259
  i0.ɵɵproperty("ngIf", ctx.fixedRadioListControl.errors && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched));
13249
13260
  i0.ɵɵadvance(2);
13250
13261
  i0.ɵɵproperty("ngForOf", ctx.caseField.field_type.fixed_list_items);
13251
- } }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf, i2.RadioControlValueAccessor, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
13262
+ } }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf, i1$3.RadioControlValueAccessor, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
13252
13263
  const ɵWriteFixedRadioListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteFixedRadioListFieldComponent);
13253
13264
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteFixedRadioListFieldComponent, [{
13254
13265
  type: Component,
@@ -13420,7 +13431,7 @@ WriteJudicialUserFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteJudi
13420
13431
  i0.ɵɵproperty("ngForOf", ctx.filteredJudicialUsers);
13421
13432
  i0.ɵɵadvance(1);
13422
13433
  i0.ɵɵproperty("ngIf", !(ctx.filteredJudicialUsers == null ? null : ctx.filteredJudicialUsers.length) && ctx.showAutocomplete);
13423
- } }, directives: [i2.NgControlStatusGroup, i2.FormGroupDirective, i1.NgIf, i2.DefaultValueAccessor, i5.MatAutocompleteTrigger, i2.NgControlStatus, i2.FormControlDirective, i5.MatAutocomplete, i1.NgForOf, i6.MatOption, i1.NgClass], pipes: [FieldLabelPipe], styles: [".mat-option[_ngcontent-%COMP%]:hover{background:#2596be}.mat-option.select-option[_ngcontent-%COMP%]:hover{background:#1d70b8;color:#fff}.hide-autocomplete[_ngcontent-%COMP%]{display:none}"] });
13434
+ } }, directives: [i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, i1.NgIf, i1$3.DefaultValueAccessor, i5.MatAutocompleteTrigger, i1$3.NgControlStatus, i1$3.FormControlDirective, i5.MatAutocomplete, i1.NgForOf, i6.MatOption, i1.NgClass], pipes: [FieldLabelPipe], styles: [".mat-option[_ngcontent-%COMP%]:hover{background:#2596be}.mat-option.select-option[_ngcontent-%COMP%]:hover{background:#1d70b8;color:#fff}.hide-autocomplete[_ngcontent-%COMP%]{display:none}"] });
13424
13435
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteJudicialUserFieldComponent, [{
13425
13436
  type: Component,
13426
13437
  args: [{
@@ -13688,7 +13699,7 @@ WriteMoneyGbpFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteMoneyGbp
13688
13699
  i0.ɵɵproperty("ngIf", ctx.moneyGbpControl.errors && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched));
13689
13700
  i0.ɵɵadvance(4);
13690
13701
  i0.ɵɵproperty("id", ctx.id())("name", ctx.id())("mandatory", i0.ɵɵpipeBind1(9, 9, ctx.caseField))("formControl", ctx.moneyGbpControl);
13691
- } }, directives: [i1.NgClass, i1.NgIf, MoneyGbpInputComponent, i2.NgControlStatus, i2.FormControlDirective], pipes: [IsMandatoryPipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
13702
+ } }, directives: [i1.NgClass, i1.NgIf, MoneyGbpInputComponent, i1$3.NgControlStatus, i1$3.FormControlDirective], pipes: [IsMandatoryPipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
13692
13703
  const ɵWriteMoneyGbpFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteMoneyGbpFieldComponent);
13693
13704
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteMoneyGbpFieldComponent, [{
13694
13705
  type: Component,
@@ -13947,7 +13958,7 @@ WriteNumberFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteNumberFiel
13947
13958
  i0.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
13948
13959
  i0.ɵɵadvance(1);
13949
13960
  i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$d, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
13950
- } }, directives: [i1.NgClass, i1.NgIf, i2.NumberValueAccessor, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
13961
+ } }, directives: [i1.NgClass, i1.NgIf, i1$3.NumberValueAccessor, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
13951
13962
  const ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
13952
13963
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteNumberFieldComponent, [{
13953
13964
  type: Component,
@@ -14628,7 +14639,7 @@ WritePhoneUKFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WritePhoneUKFi
14628
14639
  i0.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
14629
14640
  i0.ɵɵadvance(1);
14630
14641
  i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$c, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
14631
- } }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
14642
+ } }, directives: [i1.NgClass, i1.NgIf, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
14632
14643
  const ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
14633
14644
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
14634
14645
  type: Component,
@@ -14729,7 +14740,7 @@ WriteTextAreaFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextArea
14729
14740
  i0.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
14730
14741
  i0.ɵɵadvance(1);
14731
14742
  i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$b, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
14732
- } }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
14743
+ } }, directives: [i1.NgClass, i1.NgIf, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
14733
14744
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextAreaFieldComponent, [{
14734
14745
  type: Component,
14735
14746
  args: [{
@@ -14822,7 +14833,7 @@ WriteTextFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextFieldCom
14822
14833
  i0.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
14823
14834
  i0.ɵɵadvance(1);
14824
14835
  i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$a, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
14825
- } }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
14836
+ } }, directives: [i1.NgClass, i1.NgIf, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
14826
14837
  const ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteTextFieldComponent);
14827
14838
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextFieldComponent, [{
14828
14839
  type: Component,
@@ -15034,7 +15045,7 @@ WriteYesNoFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteYesNoFieldC
15034
15045
  i0.ɵɵproperty("id", ctx.createElementId("radio"));
15035
15046
  i0.ɵɵadvance(1);
15036
15047
  i0.ɵɵproperty("ngForOf", ctx.yesNoValues);
15037
- } }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf, i2.RadioControlValueAccessor, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
15048
+ } }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf, i1$3.RadioControlValueAccessor, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
15038
15049
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteYesNoFieldComponent, [{
15039
15050
  type: Component,
15040
15051
  args: [{
@@ -15477,7 +15488,7 @@ class CaseFileViewFolderSelectorComponent {
15477
15488
  return null;
15478
15489
  }
15479
15490
  }
15480
- CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
15491
+ CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0.ɵɵdirectiveInject(i1$4.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
15481
15492
  CaseFileViewFolderSelectorComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [[1, "close", 3, "click"], [1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "cancel", 3, "click"], ["folder", ""], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "folder", "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "name", "id", "click"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "iconImg"]], template: function CaseFileViewFolderSelectorComponent_Template(rf, ctx) { if (rf & 1) {
15482
15493
  i0.ɵɵelementStart(0, "div", 0);
15483
15494
  i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_0_listener() { return ctx.cancel(); });
@@ -15516,7 +15527,7 @@ CaseFileViewFolderSelectorComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseF
15516
15527
  styleUrls: ['./case-file-view-folder-selector.component.scss'],
15517
15528
  encapsulation: ViewEncapsulation.None
15518
15529
  }]
15519
- }], function () { return [{ type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
15530
+ }], function () { return [{ type: i1$4.MatDialogRef }, { type: undefined, decorators: [{
15520
15531
  type: Inject,
15521
15532
  args: [MAT_DIALOG_DATA]
15522
15533
  }] }]; }, null); })();
@@ -15599,7 +15610,7 @@ CaseFileViewOverlayMenuComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFile
15599
15610
  const _r0 = i0.ɵɵreference(2);
15600
15611
  i0.ɵɵadvance(4);
15601
15612
  i0.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
15602
- } }, directives: [i1$4.CdkOverlayOrigin, i1$4.CdkConnectedOverlay, i1.NgIf, i1.NgForOf], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-6px;cursor:pointer}.overlay-menu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__item[_ngcontent-%COMP%], .overlay-menu__title[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__item[_ngcontent-%COMP%]:last-child, .overlay-menu__title[_ngcontent-%COMP%]:last-child{border:none}.overlay-menu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlay-menu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlay-menu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
15613
+ } }, directives: [i1$5.CdkOverlayOrigin, i1$5.CdkConnectedOverlay, i1.NgIf, i1.NgForOf], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-6px;cursor:pointer}.overlay-menu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__item[_ngcontent-%COMP%], .overlay-menu__title[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__item[_ngcontent-%COMP%]:last-child, .overlay-menu__title[_ngcontent-%COMP%]:last-child{border:none}.overlay-menu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlay-menu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlay-menu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
15603
15614
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
15604
15615
  type: Component,
15605
15616
  args: [{
@@ -16100,7 +16111,7 @@ class CaseFileViewFolderComponent {
16100
16111
  CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
16101
16112
  CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
16102
16113
  CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
16103
- CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatDialog)); };
16114
+ CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$4.MatDialog)); };
16104
16115
  CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, decls: 9, vars: 3, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], [1, "node", 3, "click"], ["disabled", "", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-options"], [3, "allowMoving", "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], [1, "document-tree-container__node", "document-tree-container__folder"], ["cdkTreeNodeToggle", "", 1, "node"], [1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) { if (rf & 1) {
16105
16116
  i0.ɵɵelementStart(0, "div", 0);
16106
16117
  i0.ɵɵelementStart(1, "div", 1);
@@ -16125,7 +16136,7 @@ CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewF
16125
16136
  i0.ɵɵtextInterpolate1("Documents (", ctx.documentCount, ")");
16126
16137
  i0.ɵɵadvance(3);
16127
16138
  i0.ɵɵproperty("ngIf", ctx.documentTreeData);
16128
- } }, directives: [i2.NgControlStatusGroup, i2.FormGroupDirective, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlName, CaseFileViewFolderSortComponent, i1.NgIf, i7.CdkTree, i7.CdkTreeNodeDef, i7.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i7.CdkTreeNodeToggle, i7.CdkTreeNodeOutlet], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 100% #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #c9c9c9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:6px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}"] });
16139
+ } }, directives: [i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlName, CaseFileViewFolderSortComponent, i1.NgIf, i7.CdkTree, i7.CdkTreeNodeDef, i7.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i7.CdkTreeNodeToggle, i7.CdkTreeNodeOutlet], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 100% #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #c9c9c9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:6px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}"] });
16129
16140
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
16130
16141
  type: Component,
16131
16142
  args: [{
@@ -16133,7 +16144,7 @@ CaseFileViewFolderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewF
16133
16144
  templateUrl: './case-file-view-folder.component.html',
16134
16145
  styleUrls: ['./case-file-view-folder.component.scss'],
16135
16146
  }]
16136
- }], function () { return [{ type: WindowService }, { type: i1$1.Router }, { type: DocumentManagementService }, { type: i1$3.MatDialog }]; }, { categoriesAndDocuments: [{
16147
+ }], function () { return [{ type: WindowService }, { type: i1$1.Router }, { type: DocumentManagementService }, { type: i1$4.MatDialog }]; }, { categoriesAndDocuments: [{
16137
16148
  type: Input
16138
16149
  }], allowMoving: [{
16139
16150
  type: Input
@@ -16295,82 +16306,156 @@ CaseFlagTableComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFlagTableCompo
16295
16306
  type: Input
16296
16307
  }] }); })();
16297
16308
 
16298
- function SelectFlagTypeComponent_div_6_Template(rf, ctx) { if (rf & 1) {
16299
- i0.ɵɵelementStart(0, "div", 10);
16300
- i0.ɵɵelementStart(1, "span", 11);
16309
+ /**
16310
+ * DTO to provide typing of the response from the Reference Data Common API for Case Flags data.
16311
+ *
16312
+ * @see {@link https://tools.hmcts.net/confluence/pages/viewpage.action?pageId=1525476616#CaseFlagsHLDVersion1.0-Output}
16313
+ * for full details
16314
+ */
16315
+ class FlagType {
16316
+ constructor() {
16317
+ this.listOfValuesLength = 0;
16318
+ this.listOfValues = [];
16319
+ }
16320
+ static searchPathByFlagTypeObject(singleFlag, flags, path = []) {
16321
+ var _a;
16322
+ for (const flag of flags) {
16323
+ if (flag.flagCode === singleFlag.flagCode && flag.Path.join(',') === singleFlag.Path.join(',')) {
16324
+ return [flag, path];
16325
+ }
16326
+ if ((_a = flag.childFlags) === null || _a === void 0 ? void 0 : _a.length) {
16327
+ const [result, childPath] = FlagType.searchPathByFlagTypeObject(singleFlag, flag.childFlags, [...path, flag]);
16328
+ if (result) {
16329
+ return [result, childPath];
16330
+ }
16331
+ }
16332
+ }
16333
+ return [undefined, []];
16334
+ }
16335
+ }
16336
+
16337
+ /**
16338
+ * DTO to provide typing of the response from the Reference Data Location API for HMCTS service details.
16339
+ */
16340
+ class HmctsServiceDetail {
16341
+ constructor() {
16342
+ this.service_id = 0;
16343
+ }
16344
+ }
16345
+
16346
+ var SearchLanguageInterpreterControlNames;
16347
+ (function (SearchLanguageInterpreterControlNames) {
16348
+ SearchLanguageInterpreterControlNames["LANGUAGE_SEARCH_TERM"] = "languageSearchTerm";
16349
+ SearchLanguageInterpreterControlNames["MANUAL_LANGUAGE_ENTRY"] = "manualLanguageEntry";
16350
+ })(SearchLanguageInterpreterControlNames || (SearchLanguageInterpreterControlNames = {}));
16351
+
16352
+ function SelectFlagTypeComponent_div_0_div_6_Template(rf, ctx) { if (rf & 1) {
16353
+ i0.ɵɵelementStart(0, "div", 11);
16354
+ i0.ɵɵelementStart(1, "span", 12);
16301
16355
  i0.ɵɵtext(2, "Error:");
16302
16356
  i0.ɵɵelementEnd();
16303
16357
  i0.ɵɵtext(3);
16304
16358
  i0.ɵɵelementEnd();
16305
16359
  } if (rf & 2) {
16306
- const ctx_r0 = i0.ɵɵnextContext();
16360
+ const ctx_r1 = i0.ɵɵnextContext(2);
16307
16361
  i0.ɵɵadvance(3);
16308
- i0.ɵɵtextInterpolate1(" ", ctx_r0.flagTypeNotSelectedErrorMessage, " ");
16362
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.flagTypeNotSelectedErrorMessage, " ");
16309
16363
  } }
16310
- function SelectFlagTypeComponent_div_8_Template(rf, ctx) { if (rf & 1) {
16311
- const _r7 = i0.ɵɵgetCurrentView();
16312
- i0.ɵɵelementStart(0, "div", 12);
16313
- i0.ɵɵelementStart(1, "input", 13);
16314
- i0.ɵɵlistener("change", function SelectFlagTypeComponent_div_8_Template_input_change_1_listener() { i0.ɵɵrestoreView(_r7); const flagType_r4 = ctx.$implicit; const ctx_r6 = i0.ɵɵnextContext(); return ctx_r6.onFlagTypeChanged(flagType_r4); });
16315
- i0.ɵɵelementEnd();
16316
- i0.ɵɵelementStart(2, "label", 14);
16364
+ function SelectFlagTypeComponent_div_0_div_8_Template(rf, ctx) { if (rf & 1) {
16365
+ i0.ɵɵelementStart(0, "div", 13);
16366
+ i0.ɵɵelement(1, "input", 14);
16367
+ i0.ɵɵelementStart(2, "label", 15);
16317
16368
  i0.ɵɵtext(3);
16318
16369
  i0.ɵɵelementEnd();
16319
16370
  i0.ɵɵelementEnd();
16320
16371
  } if (rf & 2) {
16321
- const flagType_r4 = ctx.$implicit;
16322
- const i_r5 = ctx.index;
16323
- const ctx_r1 = i0.ɵɵnextContext();
16372
+ const flagType_r5 = ctx.$implicit;
16373
+ const i_r6 = ctx.index;
16374
+ const ctx_r2 = i0.ɵɵnextContext(2);
16324
16375
  i0.ɵɵadvance(1);
16325
- i0.ɵɵpropertyInterpolate1("id", "flag-type-", i_r5, "");
16326
- i0.ɵɵproperty("name", ctx_r1.flagTypeControlName)("value", flagType_r4.flagCode === "CATGRY" ? flagType_r4.flagCode + i_r5 : flagType_r4.flagCode)("formControlName", ctx_r1.flagTypeControlName);
16376
+ i0.ɵɵpropertyInterpolate1("id", "flag-type-", i_r6, "");
16377
+ i0.ɵɵproperty("name", ctx_r2.flagTypeControlName)("value", flagType_r5)("formControlName", ctx_r2.flagTypeControlName);
16327
16378
  i0.ɵɵadvance(1);
16328
- i0.ɵɵpropertyInterpolate1("for", "flag-type-", i_r5, "");
16379
+ i0.ɵɵpropertyInterpolate1("for", "flag-type-", i_r6, "");
16329
16380
  i0.ɵɵadvance(1);
16330
- i0.ɵɵtextInterpolate(flagType_r4.name);
16381
+ i0.ɵɵtextInterpolate(flagType_r5.name);
16331
16382
  } }
16332
- function SelectFlagTypeComponent_div_9_div_4_Template(rf, ctx) { if (rf & 1) {
16333
- i0.ɵɵelementStart(0, "div", 19);
16334
- i0.ɵɵelementStart(1, "span", 11);
16383
+ function SelectFlagTypeComponent_div_0_div_9_div_4_Template(rf, ctx) { if (rf & 1) {
16384
+ i0.ɵɵelementStart(0, "div", 20);
16385
+ i0.ɵɵelementStart(1, "span", 12);
16335
16386
  i0.ɵɵtext(2, "Error:");
16336
16387
  i0.ɵɵelementEnd();
16337
16388
  i0.ɵɵtext(3);
16338
16389
  i0.ɵɵelementEnd();
16339
16390
  } if (rf & 2) {
16340
- const ctx_r8 = i0.ɵɵnextContext(2);
16391
+ const ctx_r7 = i0.ɵɵnextContext(3);
16341
16392
  i0.ɵɵadvance(3);
16342
- i0.ɵɵtextInterpolate1(" ", ctx_r8.flagTypeErrorMessage, " ");
16393
+ i0.ɵɵtextInterpolate1(" ", ctx_r7.flagTypeErrorMessage, " ");
16343
16394
  } }
16344
16395
  const _c0$q = function (a0) { return { "form-group-error": a0 }; };
16345
16396
  const _c1$6 = function (a0) { return { "govuk-input--error": a0 }; };
16346
- function SelectFlagTypeComponent_div_9_Template(rf, ctx) { if (rf & 1) {
16347
- i0.ɵɵelementStart(0, "div", 15);
16348
- i0.ɵɵelementStart(1, "div", 1);
16349
- i0.ɵɵelementStart(2, "label", 16);
16397
+ function SelectFlagTypeComponent_div_0_div_9_Template(rf, ctx) { if (rf & 1) {
16398
+ i0.ɵɵelementStart(0, "div", 16);
16399
+ i0.ɵɵelementStart(1, "div", 2);
16400
+ i0.ɵɵelementStart(2, "label", 17);
16350
16401
  i0.ɵɵtext(3, "Enter a flag type");
16351
16402
  i0.ɵɵelementEnd();
16352
- i0.ɵɵtemplate(4, SelectFlagTypeComponent_div_9_div_4_Template, 4, 1, "div", 17);
16353
- i0.ɵɵelement(5, "input", 18);
16403
+ i0.ɵɵtemplate(4, SelectFlagTypeComponent_div_0_div_9_div_4_Template, 4, 1, "div", 18);
16404
+ i0.ɵɵelement(5, "input", 19);
16354
16405
  i0.ɵɵelementEnd();
16355
16406
  i0.ɵɵelementEnd();
16356
16407
  } if (rf & 2) {
16357
- const ctx_r2 = i0.ɵɵnextContext();
16408
+ const ctx_r3 = i0.ɵɵnextContext(2);
16358
16409
  i0.ɵɵadvance(1);
16359
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$q, ctx_r2.flagTypeErrorMessage.length > 0));
16410
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$q, ctx_r3.flagTypeErrorMessage.length > 0));
16360
16411
  i0.ɵɵadvance(3);
16361
- i0.ɵɵproperty("ngIf", ctx_r2.flagTypeErrorMessage.length > 0);
16412
+ i0.ɵɵproperty("ngIf", ctx_r3.flagTypeErrorMessage.length > 0);
16362
16413
  i0.ɵɵadvance(1);
16363
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$6, ctx_r2.flagTypeErrorMessage.length > 0))("name", ctx_r2.descriptionControlName)("formControlName", ctx_r2.descriptionControlName);
16414
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$6, ctx_r3.flagTypeErrorMessage.length > 0))("name", ctx_r3.descriptionControlName)("formControlName", ctx_r3.descriptionControlName);
16364
16415
  } }
16365
- function SelectFlagTypeComponent_div_10_Template(rf, ctx) { if (rf & 1) {
16366
- const _r10 = i0.ɵɵgetCurrentView();
16367
- i0.ɵɵelementStart(0, "div", 20);
16368
- i0.ɵɵelementStart(1, "button", 21);
16369
- i0.ɵɵlistener("click", function SelectFlagTypeComponent_div_10_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.onNext(); });
16416
+ function SelectFlagTypeComponent_div_0_div_10_Template(rf, ctx) { if (rf & 1) {
16417
+ const _r9 = i0.ɵɵgetCurrentView();
16418
+ i0.ɵɵelementStart(0, "div", 21);
16419
+ i0.ɵɵelementStart(1, "button", 22);
16420
+ i0.ɵɵlistener("click", function SelectFlagTypeComponent_div_0_div_10_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(2); return ctx_r8.onNext(); });
16370
16421
  i0.ɵɵtext(2, "Next");
16371
16422
  i0.ɵɵelementEnd();
16372
16423
  i0.ɵɵelementEnd();
16373
16424
  } }
16425
+ function SelectFlagTypeComponent_div_0_Template(rf, ctx) { if (rf & 1) {
16426
+ i0.ɵɵelementStart(0, "div", 1);
16427
+ i0.ɵɵelementStart(1, "div", 2);
16428
+ i0.ɵɵelementStart(2, "fieldset", 3);
16429
+ i0.ɵɵelementStart(3, "legend", 4);
16430
+ i0.ɵɵelementStart(4, "h1", 5);
16431
+ i0.ɵɵtext(5);
16432
+ i0.ɵɵelementEnd();
16433
+ i0.ɵɵelementEnd();
16434
+ i0.ɵɵtemplate(6, SelectFlagTypeComponent_div_0_div_6_Template, 4, 1, "div", 6);
16435
+ i0.ɵɵelementStart(7, "div", 7);
16436
+ i0.ɵɵtemplate(8, SelectFlagTypeComponent_div_0_div_8_Template, 4, 6, "div", 8);
16437
+ i0.ɵɵtemplate(9, SelectFlagTypeComponent_div_0_div_9_Template, 6, 9, "div", 9);
16438
+ i0.ɵɵelementEnd();
16439
+ i0.ɵɵelementEnd();
16440
+ i0.ɵɵelementEnd();
16441
+ i0.ɵɵtemplate(10, SelectFlagTypeComponent_div_0_div_10_Template, 3, 0, "div", 10);
16442
+ i0.ɵɵelementEnd();
16443
+ } if (rf & 2) {
16444
+ const ctx_r0 = i0.ɵɵnextContext();
16445
+ i0.ɵɵproperty("formGroup", ctx_r0.formGroup);
16446
+ i0.ɵɵadvance(1);
16447
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$q, ctx_r0.flagTypeNotSelectedErrorMessage.length > 0));
16448
+ i0.ɵɵadvance(4);
16449
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
16450
+ i0.ɵɵadvance(1);
16451
+ i0.ɵɵproperty("ngIf", ctx_r0.flagTypeNotSelectedErrorMessage.length > 0);
16452
+ i0.ɵɵadvance(2);
16453
+ i0.ɵɵproperty("ngForOf", ctx_r0.flagTypes);
16454
+ i0.ɵɵadvance(1);
16455
+ i0.ɵɵproperty("ngIf", ctx_r0.otherFlagTypeSelected);
16456
+ i0.ɵɵadvance(1);
16457
+ i0.ɵɵproperty("ngIf", !ctx_r0.refdataError);
16458
+ } }
16374
16459
  class SelectFlagTypeComponent {
16375
16460
  constructor(caseFlagRefdataService) {
16376
16461
  this.caseFlagRefdataService = caseFlagRefdataService;
@@ -16378,7 +16463,6 @@ class SelectFlagTypeComponent {
16378
16463
  this.flagCommentsOptionalEmitter = new EventEmitter();
16379
16464
  this.flagTypeNotSelectedErrorMessage = '';
16380
16465
  this.flagTypeErrorMessage = '';
16381
- this.otherFlagTypeSelected = false;
16382
16466
  this.refdataError = false;
16383
16467
  this.flagTypeControlName = 'flagType';
16384
16468
  this.descriptionControlName = 'otherFlagTypeDescription';
@@ -16390,15 +16474,38 @@ class SelectFlagTypeComponent {
16390
16474
  get caseFlagWizardStepTitle() {
16391
16475
  return CaseFlagWizardStepTitle;
16392
16476
  }
16477
+ get selectedFlagType() {
16478
+ var _a;
16479
+ return (_a = this.formGroup.get(this.flagTypeControlName)) === null || _a === void 0 ? void 0 : _a.value;
16480
+ }
16481
+ get otherFlagTypeSelected() {
16482
+ var _a, _b;
16483
+ return ((_b = (_a = this.formGroup.get(this.flagTypeControlName)) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.flagCode) === this.otherFlagTypeCode;
16484
+ }
16393
16485
  ngOnInit() {
16394
16486
  this.flagTypes = [];
16395
- this.formGroup.addControl(this.flagTypeControlName, new FormControl(''));
16396
- this.formGroup.addControl(this.descriptionControlName, new FormControl(''));
16397
16487
  const flagType = this.formGroup['caseField']
16398
16488
  && this.formGroup['caseField'].id
16399
16489
  && this.formGroup['caseField'].id === this.caseLevelCaseFlagsFieldId
16400
16490
  ? RefdataCaseFlagType.CASE
16401
16491
  : RefdataCaseFlagType.PARTY;
16492
+ if (!this.formGroup.get(this.flagTypeControlName)) {
16493
+ this.formGroup.addControl(this.flagTypeControlName, new FormControl(''));
16494
+ }
16495
+ if (!this.formGroup.get(this.descriptionControlName)) {
16496
+ this.formGroup.addControl(this.descriptionControlName, new FormControl(''));
16497
+ }
16498
+ // Should clear descriptionControlName if flagTypeControlName is changed
16499
+ this.flagTypeControlChangesSubscription = this.formGroup.get(this.flagTypeControlName).valueChanges
16500
+ .subscribe(value => {
16501
+ this.formGroup.get(this.descriptionControlName).setValue('');
16502
+ this.cachedPath = [];
16503
+ // required to clear language interpreter
16504
+ this.formGroup.patchValue({
16505
+ [SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM]: '',
16506
+ [SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY]: ''
16507
+ });
16508
+ });
16402
16509
  // HMCTS service code for a given jurisdiction is required to retrieve the relevant list of flag types
16403
16510
  this.flagRefdata$ = this.caseFlagRefdataService.getHmctsServiceDetails(this.jurisdiction)
16404
16511
  .pipe(
@@ -16411,6 +16518,16 @@ class SelectFlagTypeComponent {
16411
16518
  next: flagTypes => {
16412
16519
  // First (and only) object in the returned array should be the top-level "Party" flag type
16413
16520
  this.flagTypes = flagTypes[0].childFlags;
16521
+ const formControl = this.formGroup.get(this.flagTypeControlName);
16522
+ if (formControl === null || formControl === void 0 ? void 0 : formControl.value) {
16523
+ // Cache Path based on existing flagCode -- needed for nested choices
16524
+ const [foundFlagType, path] = FlagType.searchPathByFlagTypeObject(formControl.value, this.flagTypes);
16525
+ this.cachedPath = [
16526
+ ...path,
16527
+ foundFlagType
16528
+ ];
16529
+ formControl.setValue(this.cachedPath[0], { emitEvent: false });
16530
+ }
16414
16531
  },
16415
16532
  error: error => {
16416
16533
  this.onRefdataError(error);
@@ -16418,16 +16535,14 @@ class SelectFlagTypeComponent {
16418
16535
  });
16419
16536
  }
16420
16537
  ngOnDestroy() {
16538
+ var _a;
16421
16539
  if (this.flagRefdata$) {
16422
16540
  this.flagRefdata$.unsubscribe();
16423
16541
  }
16424
- }
16425
- onFlagTypeChanged(flagType) {
16426
- this.selectedFlagType = flagType;
16427
- // Display description textbox if 'Other' flag type is selected
16428
- this.otherFlagTypeSelected = this.selectedFlagType.flagCode === this.otherFlagTypeCode;
16542
+ (_a = this.flagTypeControlChangesSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
16429
16543
  }
16430
16544
  onNext() {
16545
+ var _a, _b;
16431
16546
  // Validate form
16432
16547
  this.validateForm();
16433
16548
  // Return case flag field state, whether the selected flag type (if any) is a parent or not, error messages,
@@ -16436,14 +16551,6 @@ class SelectFlagTypeComponent {
16436
16551
  currentCaseFlagFieldState: CaseFlagFieldState.FLAG_TYPE,
16437
16552
  isParentFlagType: this.selectedFlagType ? this.selectedFlagType.isParent : null,
16438
16553
  errorMessages: this.errorMessages,
16439
- flagName: this.selectedFlagType ? this.selectedFlagType.name : null,
16440
- flagPath: this.selectedFlagType ? this.selectedFlagType.Path.map(pathValue => Object.assign({ id: null, value: pathValue })) : null,
16441
- hearingRelevantFlag: this.selectedFlagType ? this.selectedFlagType.hearingRelevant : null,
16442
- flagCode: this.selectedFlagType ? this.selectedFlagType.flagCode : null,
16443
- // Include the "list of values" (if any); currently applicable to language flag types
16444
- listOfValues: this.selectedFlagType && this.selectedFlagType.listOfValues && this.selectedFlagType.listOfValues.length > 0
16445
- ? this.selectedFlagType.listOfValues
16446
- : null
16447
16554
  });
16448
16555
  // Emit "flag comments optional" event if the user selects a flag type where comments are not mandatory
16449
16556
  if (this.selectedFlagType && !this.selectedFlagType.flagComment) {
@@ -16452,8 +16559,8 @@ class SelectFlagTypeComponent {
16452
16559
  // If the selected flag type is a parent, load the list of child flag types and reset the current selection
16453
16560
  if (this.selectedFlagType && this.selectedFlagType.isParent) {
16454
16561
  this.flagTypes = this.selectedFlagType.childFlags;
16455
- this.formGroup.get(this.flagTypeControlName).setValue('');
16456
- this.selectedFlagType = null;
16562
+ (_a = this.cachedPath) === null || _a === void 0 ? void 0 : _a.shift();
16563
+ this.formGroup.get(this.flagTypeControlName).setValue(((_b = this.cachedPath) === null || _b === void 0 ? void 0 : _b.length) ? this.cachedPath[0] : null, { emitEvent: false });
16457
16564
  }
16458
16565
  }
16459
16566
  validateForm() {
@@ -16486,39 +16593,11 @@ class SelectFlagTypeComponent {
16486
16593
  }
16487
16594
  }
16488
16595
  SelectFlagTypeComponent.ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0.ɵɵdirectiveInject(CaseFlagRefdataService)); };
16489
- SelectFlagTypeComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls: 11, vars: 9, consts: [[1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-type-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], ["id", "flag-type-heading", 1, "govuk-fieldset__heading"], ["id", "flag-type-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["class", "govuk-radios__conditional", "id", "conditional-flagType", 4, "ngIf"], ["class", "govuk-button-group", 4, "ngIf"], ["id", "flag-type-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName", "change"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "conditional-flagType", 1, "govuk-radios__conditional"], ["for", "other-flag-type-description", 1, "govuk-label"], ["id", "flag-type-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-flag-type-description", "type", "text", 1, "govuk-input", "govuk-!-width-one-half", 3, "ngClass", "name", "formControlName"], ["id", "flag-type-error-message", 1, "govuk-error-message"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagTypeComponent_Template(rf, ctx) { if (rf & 1) {
16490
- i0.ɵɵelementStart(0, "div", 0);
16491
- i0.ɵɵelementStart(1, "div", 1);
16492
- i0.ɵɵelementStart(2, "fieldset", 2);
16493
- i0.ɵɵelementStart(3, "legend", 3);
16494
- i0.ɵɵelementStart(4, "h1", 4);
16495
- i0.ɵɵtext(5);
16496
- i0.ɵɵelementEnd();
16497
- i0.ɵɵelementEnd();
16498
- i0.ɵɵtemplate(6, SelectFlagTypeComponent_div_6_Template, 4, 1, "div", 5);
16499
- i0.ɵɵelementStart(7, "div", 6);
16500
- i0.ɵɵtemplate(8, SelectFlagTypeComponent_div_8_Template, 4, 6, "div", 7);
16501
- i0.ɵɵtemplate(9, SelectFlagTypeComponent_div_9_Template, 6, 9, "div", 8);
16502
- i0.ɵɵelementEnd();
16503
- i0.ɵɵelementEnd();
16504
- i0.ɵɵelementEnd();
16505
- i0.ɵɵtemplate(10, SelectFlagTypeComponent_div_10_Template, 3, 0, "div", 9);
16506
- i0.ɵɵelementEnd();
16596
+ SelectFlagTypeComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls: 1, vars: 1, consts: [["class", "form-group", 3, "formGroup", 4, "ngIf"], [1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-type-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], ["id", "flag-type-heading", 1, "govuk-fieldset__heading"], ["id", "flag-type-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["class", "govuk-radios__conditional", "id", "conditional-flagType", 4, "ngIf"], ["class", "govuk-button-group", 4, "ngIf"], ["id", "flag-type-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "conditional-flagType", 1, "govuk-radios__conditional"], ["for", "other-flag-type-description", 1, "govuk-label"], ["id", "flag-type-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-flag-type-description", "type", "text", 1, "govuk-input", "govuk-!-width-one-half", 3, "ngClass", "name", "formControlName"], ["id", "flag-type-error-message", 1, "govuk-error-message"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagTypeComponent_Template(rf, ctx) { if (rf & 1) {
16597
+ i0.ɵɵtemplate(0, SelectFlagTypeComponent_div_0_Template, 11, 9, "div", 0);
16507
16598
  } if (rf & 2) {
16508
- i0.ɵɵproperty("formGroup", ctx.formGroup);
16509
- i0.ɵɵadvance(1);
16510
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$q, ctx.flagTypeNotSelectedErrorMessage.length > 0));
16511
- i0.ɵɵadvance(4);
16512
- i0.ɵɵtextInterpolate1(" ", ctx.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
16513
- i0.ɵɵadvance(1);
16514
- i0.ɵɵproperty("ngIf", ctx.flagTypeNotSelectedErrorMessage.length > 0);
16515
- i0.ɵɵadvance(2);
16516
- i0.ɵɵproperty("ngForOf", ctx.flagTypes);
16517
- i0.ɵɵadvance(1);
16518
- i0.ɵɵproperty("ngIf", ctx.otherFlagTypeSelected);
16519
- i0.ɵɵadvance(1);
16520
- i0.ɵɵproperty("ngIf", !ctx.refdataError);
16521
- } }, directives: [i2.NgControlStatusGroup, i2.FormGroupDirective, i1.NgClass, i1.NgIf, i1.NgForOf, i2.RadioControlValueAccessor, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlName], styles: [".hidden[_ngcontent-%COMP%]{display:none}.validation-error[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:#d4351c}"] });
16599
+ i0.ɵɵproperty("ngIf", ctx.flagTypes == null ? null : ctx.flagTypes.length);
16600
+ } }, directives: [i1.NgIf, i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, i1.NgClass, i1.NgForOf, i1$3.RadioControlValueAccessor, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlName], styles: [".hidden[_ngcontent-%COMP%]{display:none}.validation-error[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:#d4351c}"] });
16522
16601
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectFlagTypeComponent, [{
16523
16602
  type: Component,
16524
16603
  args: [{
@@ -16622,14 +16701,13 @@ function SearchLanguageInterpreterComponent_div_21_Template(rf, ctx) { if (rf &
16622
16701
  i0.ɵɵadvance(1);
16623
16702
  i0.ɵɵproperty("ngIf", ctx_r5.languageCharLimitErrorMessage);
16624
16703
  i0.ɵɵadvance(1);
16625
- i0.ɵɵproperty("name", ctx_r5.manualLanguageEntryControlName)("formControlName", ctx_r5.manualLanguageEntryControlName);
16704
+ i0.ɵɵproperty("name", ctx_r5.SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY)("formControlName", ctx_r5.SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY);
16626
16705
  } }
16627
16706
  class SearchLanguageInterpreterComponent {
16628
16707
  constructor() {
16708
+ this.SearchLanguageInterpreterControlNames = SearchLanguageInterpreterControlNames;
16629
16709
  this.caseFlagStateEmitter = new EventEmitter();
16630
16710
  this.minSearchCharacters = 3;
16631
- this.languageSearchTermControlName = 'languageSearchTerm';
16632
- this.manualLanguageEntryControlName = 'manualLanguageEntry';
16633
16711
  this.searchTerm = '';
16634
16712
  this.isCheckboxEnabled = false;
16635
16713
  this.errorMessages = [];
@@ -16651,9 +16729,9 @@ class SearchLanguageInterpreterComponent {
16651
16729
  this.searchLanguageInterpreterHint = this.flagCode === this.signLanguageFlagCode
16652
16730
  ? SearchLanguageInterpreterStep.SIGN_HINT_TEXT
16653
16731
  : SearchLanguageInterpreterStep.HINT_TEXT;
16654
- this.formGroup.addControl(this.languageSearchTermControlName, new FormControl());
16655
- this.formGroup.addControl(this.manualLanguageEntryControlName, new FormControl());
16656
- this.filteredLanguages$ = this.formGroup.get(this.languageSearchTermControlName).valueChanges.pipe(
16732
+ this.formGroup.addControl(SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM, new FormControl());
16733
+ this.formGroup.addControl(SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY, new FormControl());
16734
+ this.filteredLanguages$ = this.formGroup.get(SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM).valueChanges.pipe(
16657
16735
  // Need to check type of input because it changes to object (i.e. Language) when a value is selected from the
16658
16736
  // autocomplete panel, instead of string when a value is being typed in
16659
16737
  map(input => typeof input === 'string' ? input : input.value), map(searchTerm => {
@@ -16676,7 +16754,7 @@ class SearchLanguageInterpreterComponent {
16676
16754
  // If the checkbox is disabled, i.e. unchecked, then clear the manual language entry FormControl of any value to
16677
16755
  // prevent it being retained even when the field itself is hidden
16678
16756
  if (!this.isCheckboxEnabled) {
16679
- this.formGroup.get(this.manualLanguageEntryControlName).setValue(null);
16757
+ this.formGroup.get(SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY).setValue(null);
16680
16758
  }
16681
16759
  }
16682
16760
  displayLanguage(language) {
@@ -16689,39 +16767,39 @@ class SearchLanguageInterpreterComponent {
16689
16767
  this.languageEnteredInBothFieldsErrorMessage = null;
16690
16768
  this.errorMessages = [];
16691
16769
  // Checkbox not enabled means the user has opted to search for and select the language
16692
- if (!this.isCheckboxEnabled && !this.formGroup.get(this.languageSearchTermControlName).value) {
16770
+ if (!this.isCheckboxEnabled && !this.formGroup.get(SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM).value) {
16693
16771
  this.languageNotSelectedErrorMessage = SearchLanguageInterpreterErrorMessage.LANGUAGE_NOT_ENTERED;
16694
16772
  this.errorMessages.push({
16695
16773
  title: '',
16696
16774
  description: SearchLanguageInterpreterErrorMessage.LANGUAGE_NOT_ENTERED,
16697
- fieldId: this.languageSearchTermControlName
16775
+ fieldId: SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM
16698
16776
  });
16699
16777
  }
16700
16778
  // Checkbox enabled means the user has opted to enter the language manually
16701
16779
  if (this.isCheckboxEnabled) {
16702
- if (!this.formGroup.get(this.manualLanguageEntryControlName).value) {
16780
+ if (!this.formGroup.get(SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY).value) {
16703
16781
  this.languageNotEnteredErrorMessage = SearchLanguageInterpreterErrorMessage.LANGUAGE_NOT_ENTERED;
16704
16782
  this.errorMessages.push({
16705
16783
  title: '',
16706
16784
  description: SearchLanguageInterpreterErrorMessage.LANGUAGE_NOT_ENTERED,
16707
- fieldId: this.manualLanguageEntryControlName
16785
+ fieldId: SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY
16708
16786
  });
16709
16787
  }
16710
- else if (this.formGroup.get(this.manualLanguageEntryControlName).value.length > this.languageMaxCharLimit) {
16788
+ else if (this.formGroup.get(SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY).value.length > this.languageMaxCharLimit) {
16711
16789
  this.languageCharLimitErrorMessage = SearchLanguageInterpreterErrorMessage.LANGUAGE_CHAR_LIMIT_EXCEEDED;
16712
16790
  this.errorMessages.push({
16713
16791
  title: '',
16714
16792
  description: SearchLanguageInterpreterErrorMessage.LANGUAGE_CHAR_LIMIT_EXCEEDED,
16715
- fieldId: this.manualLanguageEntryControlName
16793
+ fieldId: SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY
16716
16794
  });
16717
16795
  }
16718
- else if (this.formGroup.get(this.languageSearchTermControlName).value) {
16796
+ else if (this.formGroup.get(SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM).value) {
16719
16797
  // Language entry is permitted in only one field at a time
16720
16798
  this.languageEnteredInBothFieldsErrorMessage = SearchLanguageInterpreterErrorMessage.LANGUAGE_ENTERED_IN_BOTH_FIELDS;
16721
16799
  this.errorMessages.push({
16722
16800
  title: '',
16723
16801
  description: SearchLanguageInterpreterErrorMessage.LANGUAGE_ENTERED_IN_BOTH_FIELDS,
16724
- fieldId: this.languageSearchTermControlName
16802
+ fieldId: SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM
16725
16803
  });
16726
16804
  }
16727
16805
  }
@@ -16782,7 +16860,7 @@ SearchLanguageInterpreterComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Search
16782
16860
  i0.ɵɵadvance(1);
16783
16861
  i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c0$p, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
16784
16862
  i0.ɵɵadvance(2);
16785
- i0.ɵɵproperty("for", ctx.languageSearchTermControlName);
16863
+ i0.ɵɵproperty("for", ctx.SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM);
16786
16864
  i0.ɵɵadvance(1);
16787
16865
  i0.ɵɵtextInterpolate1(" ", ctx.searchLanguageInterpreterTitle, " ");
16788
16866
  i0.ɵɵadvance(2);
@@ -16792,7 +16870,7 @@ SearchLanguageInterpreterComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Search
16792
16870
  i0.ɵɵadvance(1);
16793
16871
  i0.ɵɵproperty("ngIf", ctx.languageEnteredInBothFieldsErrorMessage);
16794
16872
  i0.ɵɵadvance(1);
16795
- i0.ɵɵproperty("formControlName", ctx.languageSearchTermControlName)("matAutocomplete", _r2);
16873
+ i0.ɵɵproperty("formControlName", ctx.SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM)("matAutocomplete", _r2);
16796
16874
  i0.ɵɵadvance(1);
16797
16875
  i0.ɵɵproperty("displayWith", ctx.displayLanguage);
16798
16876
  i0.ɵɵadvance(2);
@@ -16803,7 +16881,7 @@ SearchLanguageInterpreterComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Search
16803
16881
  i0.ɵɵtextInterpolate1(" ", ctx.searchLanguageInterpreterStep.CHECKBOX_LABEL, " ");
16804
16882
  i0.ɵɵadvance(1);
16805
16883
  i0.ɵɵproperty("ngIf", ctx.isCheckboxEnabled);
16806
- } }, directives: [i2.NgControlStatusGroup, i2.FormGroupDirective, i1.NgClass, i1.NgIf, i3$1.MatInput, i2.DefaultValueAccessor, i5.MatAutocompleteTrigger, i2.NgControlStatus, i2.FormControlName, i5.MatAutocomplete, i1.NgForOf, i6.MatOption], pipes: [i1.AsyncPipe], styles: [".autocomplete__input--show-all-values[_ngcontent-%COMP%]{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down[_ngcontent-%COMP%]{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu[_ngcontent-%COMP%]{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible[_ngcontent-%COMP%]{display:block}.autocomplete__menu--hidden[_ngcontent-%COMP%]{display:none}.autocomplete__menu--overlay[_ngcontent-%COMP%]{box-shadow:0 2px 6px rgba(0,0,0,.256863);left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline[_ngcontent-%COMP%]{position:relative}.autocomplete__option[_ngcontent-%COMP%]{border-left-width:0;border-bottom:1px solid #b1b4b6;border-right-width:0;border-top-width:1px;cursor:pointer;display:block;position:relative}.autocomplete__option[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{pointer-events:none}.autocomplete__option[_ngcontent-%COMP%]:first-of-type{border-top-width:0}.autocomplete__option[_ngcontent-%COMP%]:last-of-type{border-bottom-width:0}.autocomplete__option--odd[_ngcontent-%COMP%]{background-color:#fafafa}.autocomplete__option--focused[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results[_ngcontent-%COMP%]{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.25}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{padding:5px}@media (min-width:641px){.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.31579}}.div-action[_ngcontent-%COMP%]{display:inline-block}.add-location[_ngcontent-%COMP%]{display:inline}.remove-location-button[_ngcontent-%COMP%]{margin:5px}.hide-autocomplete[_ngcontent-%COMP%]{display:none}.auto-complete-container[_ngcontent-%COMP%]{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input[_ngcontent-%COMP%]{line-height:24px;font-size:19px}.hidden[_ngcontent-%COMP%]{display:none}.search-language__input[_ngcontent-%COMP%]{position:relative;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='40' height='40'%3E%3Cpath d='M25.7 24.8L21.9 21c.7-1 1.1-2.2 1.1-3.5 0-3.6-2.9-6.5-6.5-6.5S10 13.9 10 17.5s2.9 6.5 6.5 6.5c1.6 0 3-.6 4.1-1.5l3.7 3.7 1.4-1.4zM12 17.5c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5-2 4.5-4.5 4.5-4.5-2-4.5-4.5z' fill='%23505a5f'%3E%3C/path%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center left -2px;background-size:40px 40px;padding-left:35px}"] });
16884
+ } }, directives: [i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, i1.NgClass, i1.NgIf, i3$1.MatInput, i1$3.DefaultValueAccessor, i5.MatAutocompleteTrigger, i1$3.NgControlStatus, i1$3.FormControlName, i5.MatAutocomplete, i1.NgForOf, i6.MatOption], pipes: [i1.AsyncPipe], styles: [".autocomplete__input--show-all-values[_ngcontent-%COMP%]{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down[_ngcontent-%COMP%]{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu[_ngcontent-%COMP%]{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible[_ngcontent-%COMP%]{display:block}.autocomplete__menu--hidden[_ngcontent-%COMP%]{display:none}.autocomplete__menu--overlay[_ngcontent-%COMP%]{box-shadow:0 2px 6px rgba(0,0,0,.256863);left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline[_ngcontent-%COMP%]{position:relative}.autocomplete__option[_ngcontent-%COMP%]{border-left-width:0;border-bottom:1px solid #b1b4b6;border-right-width:0;border-top-width:1px;cursor:pointer;display:block;position:relative}.autocomplete__option[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{pointer-events:none}.autocomplete__option[_ngcontent-%COMP%]:first-of-type{border-top-width:0}.autocomplete__option[_ngcontent-%COMP%]:last-of-type{border-bottom-width:0}.autocomplete__option--odd[_ngcontent-%COMP%]{background-color:#fafafa}.autocomplete__option--focused[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results[_ngcontent-%COMP%]{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.25}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{padding:5px}@media (min-width:641px){.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.31579}}.div-action[_ngcontent-%COMP%]{display:inline-block}.add-location[_ngcontent-%COMP%]{display:inline}.remove-location-button[_ngcontent-%COMP%]{margin:5px}.hide-autocomplete[_ngcontent-%COMP%]{display:none}.auto-complete-container[_ngcontent-%COMP%]{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input[_ngcontent-%COMP%]{line-height:24px;font-size:19px}.hidden[_ngcontent-%COMP%]{display:none}.search-language__input[_ngcontent-%COMP%]{position:relative;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='40' height='40'%3E%3Cpath d='M25.7 24.8L21.9 21c.7-1 1.1-2.2 1.1-3.5 0-3.6-2.9-6.5-6.5-6.5S10 13.9 10 17.5s2.9 6.5 6.5 6.5c1.6 0 3-.6 4.1-1.5l3.7 3.7 1.4-1.4zM12 17.5c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5-2 4.5-4.5 4.5-4.5-2-4.5-4.5z' fill='%23505a5f'%3E%3C/path%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center left -2px;background-size:40px 40px;padding-left:35px}"] });
16807
16885
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchLanguageInterpreterComponent, [{
16808
16886
  type: Component,
16809
16887
  args: [{
@@ -16915,7 +16993,14 @@ class SelectFlagLocationComponent {
16915
16993
  }
16916
16994
  // Add a FormControl for the selected flag location if there is at least one flags instance remaining after filtering
16917
16995
  if (this.filteredFlagsData && this.filteredFlagsData.length > 0) {
16918
- this.formGroup.addControl(this.selectedLocationControlName, new FormControl(null));
16996
+ const formControl = this.formGroup.get(this.selectedLocationControlName);
16997
+ if (!formControl) {
16998
+ this.formGroup.addControl(this.selectedLocationControlName, new FormControl(null));
16999
+ }
17000
+ else {
17001
+ // Needs to be setValue as they have different object references -- we use the pathToFlagsFormGroup key
17002
+ formControl.setValue(this.filteredFlagsData.find(item => item.pathToFlagsFormGroup === formControl.value.pathToFlagsFormGroup));
17003
+ }
16919
17004
  }
16920
17005
  else {
16921
17006
  // No filtered flags instances mean there are no parties to select from. The case has not been configured properly
@@ -16932,9 +17017,6 @@ class SelectFlagLocationComponent {
16932
17017
  this.caseFlagStateEmitter.emit({
16933
17018
  currentCaseFlagFieldState: CaseFlagFieldState.FLAG_LOCATION,
16934
17019
  errorMessages: this.errorMessages,
16935
- selectedFlagsLocation: this.formGroup.get(this.selectedLocationControlName).value
16936
- ? this.formGroup.get(this.selectedLocationControlName).value
16937
- : null
16938
17020
  });
16939
17021
  }
16940
17022
  validateSelection() {
@@ -16988,7 +17070,7 @@ SelectFlagLocationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SelectFlagLoc
16988
17070
  i0.ɵɵproperty("ngForOf", ctx.filteredFlagsData);
16989
17071
  i0.ɵɵadvance(1);
16990
17072
  i0.ɵɵproperty("ngIf", !ctx.caseFlagsConfigError);
16991
- } }, directives: [i2.NgControlStatusGroup, i2.FormGroupDirective, i1.NgClass, i1.NgIf, i1.NgForOf, i2.RadioControlValueAccessor, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlName], encapsulation: 2 });
17073
+ } }, directives: [i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, i1.NgClass, i1.NgIf, i1.NgForOf, i1$3.RadioControlValueAccessor, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlName], encapsulation: 2 });
16992
17074
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectFlagLocationComponent, [{
16993
17075
  type: Component,
16994
17076
  args: [{
@@ -17047,7 +17129,9 @@ class AddCommentsComponent {
17047
17129
  this.addCommentsTitle = CaseFlagWizardStepTitle.ADD_FLAG_COMMENTS;
17048
17130
  this.addCommentsHint = AddCommentsStep.HINT_TEXT;
17049
17131
  this.addCommentsCharLimitInfo = AddCommentsStep.CHARACTER_LIMIT_INFO;
17050
- this.formGroup.addControl(this.flagCommentsControlName, new FormControl(''));
17132
+ if (!this.formGroup.get(this.flagCommentsControlName)) {
17133
+ this.formGroup.addControl(this.flagCommentsControlName, new FormControl(''));
17134
+ }
17051
17135
  }
17052
17136
  onNext() {
17053
17137
  // Validate flag comments entry
@@ -17127,14 +17211,14 @@ AddCommentsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AddCommentsComponent
17127
17211
  i0.ɵɵproperty("id", ctx.flagCommentsControlName)("name", ctx.flagCommentsControlName)("formControlName", ctx.flagCommentsControlName);
17128
17212
  i0.ɵɵadvance(2);
17129
17213
  i0.ɵɵtextInterpolate1(" ", ctx.addCommentsCharLimitInfo, " ");
17130
- } }, directives: [i2.NgControlStatusGroup, i2.FormGroupDirective, i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlName], encapsulation: 2 });
17214
+ } }, directives: [i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, i1.NgClass, i1.NgIf, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlName], encapsulation: 2 });
17131
17215
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddCommentsComponent, [{
17132
17216
  type: Component,
17133
17217
  args: [{
17134
17218
  selector: 'ccd-add-comments',
17135
17219
  templateUrl: './add-comments.component.html'
17136
17220
  }]
17137
- }], null, { formGroup: [{
17221
+ }], function () { return []; }, { formGroup: [{
17138
17222
  type: Input
17139
17223
  }], optional: [{
17140
17224
  type: Input
@@ -17347,7 +17431,7 @@ ManageCaseFlagsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ManageCaseFlagsC
17347
17431
  i0.ɵɵproperty("ngForOf", ctx.flagsDisplayData);
17348
17432
  i0.ɵɵadvance(1);
17349
17433
  i0.ɵɵproperty("ngIf", !ctx.noFlagsError);
17350
- } }, directives: [i2.NgControlStatusGroup, i2.FormGroupDirective, i1.NgClass, i1.NgIf, i1.NgForOf, i2.RadioControlValueAccessor, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlName], styles: [".flag-name-and-description{font-weight:700}"], encapsulation: 2 });
17434
+ } }, directives: [i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, i1.NgClass, i1.NgIf, i1.NgForOf, i1$3.RadioControlValueAccessor, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlName], styles: [".flag-name-and-description{font-weight:700}"], encapsulation: 2 });
17351
17435
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ManageCaseFlagsComponent, [{
17352
17436
  type: Component,
17353
17437
  args: [{
@@ -17578,7 +17662,7 @@ UpdateFlagComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UpdateFlagComponent,
17578
17662
  i0.ɵɵproperty("id", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME)("name", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME);
17579
17663
  i0.ɵɵadvance(1);
17580
17664
  i0.ɵɵproperty("for", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME);
17581
- } }, directives: [i2.NgControlStatusGroup, i2.FormGroupDirective, i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlName, i1.NgForOf], pipes: [EnumDisplayDescriptionPipe, i1.LowerCasePipe], encapsulation: 2 });
17665
+ } }, directives: [i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, i1.NgClass, i1.NgIf, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlName, i1.NgForOf], pipes: [EnumDisplayDescriptionPipe, i1.LowerCasePipe], encapsulation: 2 });
17582
17666
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UpdateFlagComponent, [{
17583
17667
  type: Component,
17584
17668
  args: [{
@@ -17593,7 +17677,43 @@ UpdateFlagComponent.ɵcmp = i0.ɵɵdefineComponent({ type: UpdateFlagComponent,
17593
17677
  type: Output
17594
17678
  }] }); })();
17595
17679
 
17596
- function CaseFlagSummaryListComponent_dl_0_div_16_Template(rf, ctx) { if (rf & 1) {
17680
+ function CaseFlagSummaryListComponent_dl_0_dd_6_Template(rf, ctx) { if (rf & 1) {
17681
+ const _r6 = i0.ɵɵgetCurrentView();
17682
+ i0.ɵɵelementStart(0, "dd", 7);
17683
+ i0.ɵɵelementStart(1, "a", 8);
17684
+ i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_dd_6_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(2); return ctx_r5.changeButtonEmitter.emit(ctx_r5.CaseFlagFieldState.FLAG_LOCATION); });
17685
+ i0.ɵɵtext(2, " Change");
17686
+ i0.ɵɵelementStart(3, "span", 9);
17687
+ i0.ɵɵtext(4, " party name");
17688
+ i0.ɵɵelementEnd();
17689
+ i0.ɵɵelementEnd();
17690
+ i0.ɵɵelementEnd();
17691
+ } }
17692
+ function CaseFlagSummaryListComponent_dl_0_dd_12_Template(rf, ctx) { if (rf & 1) {
17693
+ const _r8 = i0.ɵɵgetCurrentView();
17694
+ i0.ɵɵelementStart(0, "dd", 7);
17695
+ i0.ɵɵelementStart(1, "a", 8);
17696
+ i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_dd_12_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(2); return ctx_r7.changeButtonEmitter.emit(ctx_r7.CaseFlagFieldState.FLAG_TYPE); });
17697
+ i0.ɵɵtext(2, " Change");
17698
+ i0.ɵɵelementStart(3, "span", 9);
17699
+ i0.ɵɵtext(4, " description");
17700
+ i0.ɵɵelementEnd();
17701
+ i0.ɵɵelementEnd();
17702
+ i0.ɵɵelementEnd();
17703
+ } }
17704
+ function CaseFlagSummaryListComponent_dl_0_dd_18_Template(rf, ctx) { if (rf & 1) {
17705
+ const _r10 = i0.ɵɵgetCurrentView();
17706
+ i0.ɵɵelementStart(0, "dd", 7);
17707
+ i0.ɵɵelementStart(1, "a", 8);
17708
+ i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_dd_18_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(2); return ctx_r9.changeButtonEmitter.emit(ctx_r9.CaseFlagFieldState.FLAG_COMMENTS); });
17709
+ i0.ɵɵtext(2, " Change");
17710
+ i0.ɵɵelementStart(3, "span", 9);
17711
+ i0.ɵɵtext(4, " comments");
17712
+ i0.ɵɵelementEnd();
17713
+ i0.ɵɵelementEnd();
17714
+ i0.ɵɵelementEnd();
17715
+ } }
17716
+ function CaseFlagSummaryListComponent_dl_0_div_19_Template(rf, ctx) { if (rf & 1) {
17597
17717
  i0.ɵɵelementStart(0, "div", 2);
17598
17718
  i0.ɵɵelementStart(1, "dt", 3);
17599
17719
  i0.ɵɵtext(2, " Status ");
@@ -17601,11 +17721,12 @@ function CaseFlagSummaryListComponent_dl_0_div_16_Template(rf, ctx) { if (rf & 1
17601
17721
  i0.ɵɵelementStart(3, "dd", 4);
17602
17722
  i0.ɵɵtext(4);
17603
17723
  i0.ɵɵelementEnd();
17724
+ i0.ɵɵelement(5, "dd", 7);
17604
17725
  i0.ɵɵelementEnd();
17605
17726
  } if (rf & 2) {
17606
- const ctx_r1 = i0.ɵɵnextContext(2);
17727
+ const ctx_r4 = i0.ɵɵnextContext(2);
17607
17728
  i0.ɵɵadvance(4);
17608
- i0.ɵɵtextInterpolate1(" ", ctx_r1.flagStatus, " ");
17729
+ i0.ɵɵtextInterpolate1(" ", ctx_r4.flagStatus, " ");
17609
17730
  } }
17610
17731
  function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) { if (rf & 1) {
17611
17732
  i0.ɵɵelementStart(0, "dl", 1);
@@ -17616,24 +17737,27 @@ function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) { if (rf & 1) {
17616
17737
  i0.ɵɵelementStart(4, "dd", 4);
17617
17738
  i0.ɵɵtext(5);
17618
17739
  i0.ɵɵelementEnd();
17740
+ i0.ɵɵtemplate(6, CaseFlagSummaryListComponent_dl_0_dd_6_Template, 5, 0, "dd", 5);
17619
17741
  i0.ɵɵelementEnd();
17620
- i0.ɵɵelementStart(6, "div", 2);
17621
- i0.ɵɵelementStart(7, "dt", 3);
17622
- i0.ɵɵtext(8, " Flag type ");
17742
+ i0.ɵɵelementStart(7, "div", 2);
17743
+ i0.ɵɵelementStart(8, "dt", 3);
17744
+ i0.ɵɵtext(9, " Flag type ");
17623
17745
  i0.ɵɵelementEnd();
17624
- i0.ɵɵelementStart(9, "dd", 4);
17625
- i0.ɵɵtext(10);
17746
+ i0.ɵɵelementStart(10, "dd", 4);
17747
+ i0.ɵɵtext(11);
17626
17748
  i0.ɵɵelementEnd();
17749
+ i0.ɵɵtemplate(12, CaseFlagSummaryListComponent_dl_0_dd_12_Template, 5, 0, "dd", 5);
17627
17750
  i0.ɵɵelementEnd();
17628
- i0.ɵɵelementStart(11, "div", 2);
17629
- i0.ɵɵelementStart(12, "dt", 3);
17630
- i0.ɵɵtext(13, " Comments ");
17751
+ i0.ɵɵelementStart(13, "div", 2);
17752
+ i0.ɵɵelementStart(14, "dt", 3);
17753
+ i0.ɵɵtext(15, " Comments ");
17631
17754
  i0.ɵɵelementEnd();
17632
- i0.ɵɵelementStart(14, "dd", 4);
17633
- i0.ɵɵtext(15);
17755
+ i0.ɵɵelementStart(16, "dd", 4);
17756
+ i0.ɵɵtext(17);
17634
17757
  i0.ɵɵelementEnd();
17758
+ i0.ɵɵtemplate(18, CaseFlagSummaryListComponent_dl_0_dd_18_Template, 5, 0, "dd", 5);
17635
17759
  i0.ɵɵelementEnd();
17636
- i0.ɵɵtemplate(16, CaseFlagSummaryListComponent_dl_0_div_16_Template, 5, 1, "div", 5);
17760
+ i0.ɵɵtemplate(19, CaseFlagSummaryListComponent_dl_0_div_19_Template, 6, 1, "div", 6);
17637
17761
  i0.ɵɵelementEnd();
17638
17762
  } if (rf & 2) {
17639
17763
  const ctx_r0 = i0.ɵɵnextContext();
@@ -17641,16 +17765,24 @@ function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) { if (rf & 1) {
17641
17765
  i0.ɵɵtextInterpolate1(" ", ctx_r0.addUpdateFlagHeaderText, " ");
17642
17766
  i0.ɵɵadvance(2);
17643
17767
  i0.ɵɵtextInterpolate1(" ", ctx_r0.flagForSummaryDisplay.partyName || ctx_r0.caseLevelLocation, " ");
17768
+ i0.ɵɵadvance(1);
17769
+ i0.ɵɵproperty("ngIf", ctx_r0.summaryListDisplayMode === ctx_r0.displayMode.CREATE);
17644
17770
  i0.ɵɵadvance(5);
17645
17771
  i0.ɵɵtextInterpolate1(" ", ctx_r0.flagDescription, " ");
17772
+ i0.ɵɵadvance(1);
17773
+ i0.ɵɵproperty("ngIf", ctx_r0.summaryListDisplayMode === ctx_r0.displayMode.CREATE);
17646
17774
  i0.ɵɵadvance(5);
17647
17775
  i0.ɵɵtextInterpolate1(" ", ctx_r0.flagComments, " ");
17648
17776
  i0.ɵɵadvance(1);
17777
+ i0.ɵɵproperty("ngIf", ctx_r0.summaryListDisplayMode === ctx_r0.displayMode.CREATE);
17778
+ i0.ɵɵadvance(1);
17649
17779
  i0.ɵɵproperty("ngIf", ctx_r0.summaryListDisplayMode === ctx_r0.displayMode.MANAGE);
17650
17780
  } }
17651
17781
  class CaseFlagSummaryListComponent {
17652
17782
  constructor() {
17783
+ this.changeButtonEmitter = new EventEmitter();
17653
17784
  this.displayMode = CaseFlagSummaryListDisplayMode;
17785
+ this.CaseFlagFieldState = CaseFlagFieldState;
17654
17786
  this.caseLevelLocation = 'Case level';
17655
17787
  this.updateFlagHeaderText = 'Update flag for';
17656
17788
  this.addFlagHeaderText = 'Add flag to';
@@ -17669,8 +17801,8 @@ class CaseFlagSummaryListComponent {
17669
17801
  }
17670
17802
  }
17671
17803
  CaseFlagSummaryListComponent.ɵfac = function CaseFlagSummaryListComponent_Factory(t) { return new (t || CaseFlagSummaryListComponent)(); };
17672
- CaseFlagSummaryListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFlagSummaryListComponent, selectors: [["ccd-case-flag-summary-list"]], inputs: { flagForSummaryDisplay: "flagForSummaryDisplay", summaryListDisplayMode: "summaryListDisplayMode" }, decls: 1, vars: 1, consts: [["class", "govuk-summary-list", 4, "ngIf"], [1, "govuk-summary-list"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], ["class", "govuk-summary-list__row", 4, "ngIf"]], template: function CaseFlagSummaryListComponent_Template(rf, ctx) { if (rf & 1) {
17673
- i0.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template, 17, 5, "dl", 0);
17804
+ CaseFlagSummaryListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFlagSummaryListComponent, selectors: [["ccd-case-flag-summary-list"]], inputs: { flagForSummaryDisplay: "flagForSummaryDisplay", summaryListDisplayMode: "summaryListDisplayMode" }, outputs: { changeButtonEmitter: "changeButtonEmitter" }, decls: 1, vars: 1, consts: [["class", "govuk-summary-list", 4, "ngIf"], [1, "govuk-summary-list"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], ["class", "govuk-summary-list__actions", 4, "ngIf"], ["class", "govuk-summary-list__row", 4, "ngIf"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-visually-hidden"]], template: function CaseFlagSummaryListComponent_Template(rf, ctx) { if (rf & 1) {
17805
+ i0.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template, 20, 8, "dl", 0);
17674
17806
  } if (rf & 2) {
17675
17807
  i0.ɵɵproperty("ngIf", ctx.flagForSummaryDisplay);
17676
17808
  } }, directives: [i1.NgIf], encapsulation: 2 });
@@ -17680,10 +17812,12 @@ CaseFlagSummaryListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFlagSumm
17680
17812
  selector: 'ccd-case-flag-summary-list',
17681
17813
  templateUrl: './case-flag-summary-list.component.html'
17682
17814
  }]
17683
- }], null, { flagForSummaryDisplay: [{
17815
+ }], function () { return []; }, { flagForSummaryDisplay: [{
17684
17816
  type: Input
17685
17817
  }], summaryListDisplayMode: [{
17686
17818
  type: Input
17819
+ }], changeButtonEmitter: [{
17820
+ type: Output
17687
17821
  }] }); })();
17688
17822
 
17689
17823
  class CollectionCreateCheckerService {
@@ -18347,7 +18481,7 @@ WriteDateFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDateFieldCom
18347
18481
  i0.ɵɵproperty("ngIf", ctx.dateControl && ctx.dateControl.errors && (ctx.dateControl.dirty || ctx.dateControl.touched));
18348
18482
  i0.ɵɵadvance(1);
18349
18483
  i0.ɵɵproperty("id", ctx.id())("isDateTime", ctx.isDateTime())("mandatory", i0.ɵɵpipeBind1(7, 10, ctx.caseField))("isInvalid", ctx.dateControl.errors && (ctx.dateControl.dirty || ctx.dateControl.touched))("formControl", ctx.dateControl);
18350
- } }, directives: [i1.NgClass, i1.NgIf, DateInputComponent, i2.NgControlStatus, i2.FormControlDirective], pipes: [IsMandatoryPipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
18484
+ } }, directives: [i1.NgClass, i1.NgIf, DateInputComponent, i1$3.NgControlStatus, i1$3.FormControlDirective], pipes: [IsMandatoryPipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
18351
18485
  const ɵWriteDateFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteDateFieldComponent);
18352
18486
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDateFieldComponent, [{
18353
18487
  type: Component,
@@ -18625,7 +18759,7 @@ DatetimePickerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DatetimePickerCom
18625
18759
  i0.ɵɵproperty("for", _r6);
18626
18760
  i0.ɵɵadvance(1);
18627
18761
  i0.ɵɵproperty("color", ctx.color)("touchUi", ctx.touchUi)("hideTime", ctx.hideTime)("startView", ctx.startView)("stepHour", ctx.stepHour)("stepSecond", ctx.stepSecond)("stepMinute", ctx.stepMinute)("showSeconds", ctx.showSeconds)("showSpinners", ctx.showSpinners)("disableMinute", ctx.disableMinute)("enableMeridian", ctx.enableMeridian);
18628
- } }, directives: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i4.NgxMatDatetimeInput, i2.NgControlStatus, i2.FormControlDirective, i5$1.MatDatepickerToggle, i6$1.MatSuffix, i4.NgxMatDatetimePicker], pipes: [FieldLabelPipe, FirstErrorPipe], styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #fd0;border:1px solid #000}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #fd0}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.cdk-overlay-container .mat-datepicker-content{border:1px solid #000;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:first-of-type:after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:first-of-type{visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:last-child [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child.ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \u25B2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\u25BC\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid #000;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px 0 #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}"], encapsulation: 2 });
18762
+ } }, directives: [i1.NgClass, i1.NgIf, i1$3.DefaultValueAccessor, i4.NgxMatDatetimeInput, i1$3.NgControlStatus, i1$3.FormControlDirective, i5$1.MatDatepickerToggle, i6$1.MatSuffix, i4.NgxMatDatetimePicker], pipes: [FieldLabelPipe, FirstErrorPipe], styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #fd0;border:1px solid #000}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #fd0}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.cdk-overlay-container .mat-datepicker-content{border:1px solid #000;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:first-of-type:after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:first-of-type{visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:last-child [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child.ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \u25B2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\u25BC\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid #000;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px 0 #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}"], encapsulation: 2 });
18629
18763
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatetimePickerComponent, [{
18630
18764
  type: Component,
18631
18765
  args: [{
@@ -19139,7 +19273,7 @@ MarkdownComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MarkdownComponent, sele
19139
19273
  } if (rf & 2) {
19140
19274
  i0.ɵɵadvance(1);
19141
19275
  i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(2, 1, ctx.content), i0.ɵɵsanitizeHtml);
19142
- } }, directives: [i1$5.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
19276
+ } }, directives: [i1$6.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
19143
19277
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkdownComponent, [{
19144
19278
  type: Component,
19145
19279
  args: [{
@@ -19658,7 +19792,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
19658
19792
  MatAutocompleteModule,
19659
19793
  CdkTreeModule,
19660
19794
  OverlayModule,
19661
- PaymentLibModule, i2$1.ScrollToModule, MatDialogModule,
19795
+ PaymentLibModule, i2.ScrollToModule, MatDialogModule,
19662
19796
  MediaViewerModule,
19663
19797
  LoadingModule], exports: [NgxMatDatetimePickerModule,
19664
19798
  NgxMatNativeDateModule,
@@ -19820,7 +19954,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
19820
19954
  entryComponents: [CaseFileViewFolderSelectorComponent]
19821
19955
  }]
19822
19956
  }], null, null); })();
19823
- i0.ɵɵsetComponentScope(FieldReadComponent, [FieldReadLabelComponent, i2.NgControlStatusGroup, i2.FormGroupDirective], []);
19957
+ i0.ɵɵsetComponentScope(FieldReadComponent, [FieldReadLabelComponent, i1$3.NgControlStatusGroup, i1$3.FormGroupDirective], []);
19824
19958
  i0.ɵɵsetComponentScope(LabelFieldComponent, [LabelSubstitutorDirective, MarkdownComponent], []);
19825
19959
  i0.ɵɵsetComponentScope(CaseHistoryViewerFieldComponent, [EventLogComponent], []);
19826
19960
  i0.ɵɵsetComponentScope(EventLogComponent, [i1.NgSwitch, i1.NgSwitchCase, EventLogTableComponent, i1.NgIf, EventLogDetailsComponent], []);
@@ -19837,21 +19971,21 @@ i0.ɵɵsetComponentScope(ReadComplexFieldTableComponent, [i1.NgForOf, i1.NgIf, F
19837
19971
  i0.ɵɵsetComponentScope(ReadComplexFieldCollectionTableComponent, [i1.NgForOf, i1.NgIf, FieldReadComponent,
19838
19972
  ReadCaseLinkFieldComponent], [ReadFieldsFilterPipe, CcdCollectionTableCaseFieldsFilterPipe, i1.KeyValuePipe, IsCompoundPipe]);
19839
19973
  i0.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i1.NgSwitch, i1.NgSwitchCase, CaseFlagSummaryListComponent, i1.NgSwitchDefault, i1.NgForOf, i1.NgIf, CaseFlagTableComponent], []);
19840
- i0.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1.NgIf, i1.NgClass, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective, i2.SelectControlValueAccessor, i1.NgForOf, i2.NgSelectOption, i2.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i2.NgControlStatusGroup, i2.FormGroupDirective], [FieldLabelPipe]);
19841
- i0.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1.NgIf, i1.NgForOf, i1.NgSwitch, i1.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i2.NgControlStatusGroup, i2.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
19974
+ i0.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1.NgIf, i1.NgClass, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlDirective, i1$3.SelectControlValueAccessor, i1.NgForOf, i1$3.NgSelectOption, i1$3.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i1$3.NgControlStatusGroup, i1$3.FormGroupDirective], [FieldLabelPipe]);
19975
+ i0.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1.NgIf, i1.NgForOf, i1.NgSwitch, i1.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
19842
19976
  i0.ɵɵsetComponentScope(WriteDocumentFieldComponent, [i1.NgClass, i1.NgIf, ReadDocumentFieldComponent], [FieldLabelPipe]);
19843
- i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1.NgIf, DatetimePickerComponent, i2.NgControlStatusGroup, i2.FormGroupDirective, WriteDateFieldComponent], []);
19844
- i0.ɵɵsetComponentScope(WriteCaseFlagFieldComponent, [i1.NgIf, i1.NgForOf, i2.NgControlStatusGroup, i2.FormGroupDirective, i1.NgSwitch, i1.NgClass, i1.NgSwitchCase, SelectFlagLocationComponent,
19977
+ i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1.NgIf, DatetimePickerComponent, i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, WriteDateFieldComponent], []);
19978
+ i0.ɵɵsetComponentScope(WriteCaseFlagFieldComponent, [i1.NgIf, i1.NgForOf, i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, i1.NgSwitch, i1.NgClass, i1.NgSwitchCase, SelectFlagLocationComponent,
19845
19979
  SelectFlagTypeComponent,
19846
19980
  SearchLanguageInterpreterComponent,
19847
19981
  AddCommentsComponent,
19848
19982
  ManageCaseFlagsComponent,
19849
19983
  UpdateFlagComponent], []);
19850
- i0.ɵɵsetComponentScope(WriteOrganisationFieldComponent, [i2.NgControlStatusGroup, i2.FormGroupDirective, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlDirective, i1.NgClass, i1.NgForOf, MarkdownComponent,
19984
+ i0.ɵɵsetComponentScope(WriteOrganisationFieldComponent, [i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, i1.NgIf, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlDirective, i1.NgClass, i1.NgForOf, MarkdownComponent,
19851
19985
  WriteOrganisationComplexFieldComponent], [i1.AsyncPipe]);
19852
19986
  i0.ɵɵsetComponentScope(WriteOrderSummaryFieldComponent, [ReadOrderSummaryFieldComponent], []);
19853
- i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1.NgIf, DatetimePickerComponent, i2.NgControlStatusGroup, i2.FormGroupDirective, WriteDateFieldComponent], []);
19854
- i0.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1.NgIf, i1.NgForOf, FieldWriteComponent, i2.NgControlStatusGroup, i2.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
19987
+ i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1.NgIf, DatetimePickerComponent, i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, WriteDateFieldComponent], []);
19988
+ i0.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1.NgIf, i1.NgForOf, FieldWriteComponent, i1$3.NgControlStatusGroup, i1$3.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
19855
19989
  i0.ɵɵsetComponentScope(
19856
19990
  // ComponentLauncher web components
19857
19991
  CaseFileViewFieldComponent, [i1.NgIf, CaseFileViewFolderComponent, i11.ɵcs], []);
@@ -19970,7 +20104,7 @@ function CaseEditSubmitComponent_div_0_ng_container_12_span_3_Template(rf, ctx)
19970
20104
  i0.ɵɵelementEnd();
19971
20105
  } }
19972
20106
  function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_th_2_Template(rf, ctx) { if (rf & 1) {
19973
- i0.ɵɵelementStart(0, "th", 36);
20107
+ i0.ɵɵelementStart(0, "th", 34);
19974
20108
  i0.ɵɵelementStart(1, "span", 29);
19975
20109
  i0.ɵɵtext(2);
19976
20110
  i0.ɵɵelementEnd();
@@ -19980,19 +20114,31 @@ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_contain
19980
20114
  i0.ɵɵadvance(2);
19981
20115
  i0.ɵɵtextInterpolate(field_r21.label);
19982
20116
  } }
19983
- function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template(rf, ctx) { if (rf & 1) {
19984
- const _r28 = i0.ɵɵgetCurrentView();
20117
+ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_ng_container_5_a_2_Template(rf, ctx) { if (rf & 1) {
20118
+ const _r29 = i0.ɵɵgetCurrentView();
19985
20119
  i0.ɵɵelementStart(0, "a", 13);
19986
- i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r28); const page_r18 = i0.ɵɵnextContext(4).$implicit; const ctx_r26 = i0.ɵɵnextContext(3); return ctx_r26.navigateToPage(page_r18.id); });
20120
+ i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_ng_container_5_a_2_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r29); const page_r18 = i0.ɵɵnextContext(5).$implicit; const ctx_r27 = i0.ɵɵnextContext(3); return ctx_r27.navigateToPage(page_r18.id); });
19987
20121
  i0.ɵɵelementStart(1, "span", 29);
19988
20122
  i0.ɵɵtext(2, "Change");
19989
20123
  i0.ɵɵelementEnd();
19990
20124
  i0.ɵɵelementEnd();
19991
20125
  } if (rf & 2) {
19992
- const field_r21 = i0.ɵɵnextContext(2).$implicit;
20126
+ const field_r21 = i0.ɵɵnextContext(3).$implicit;
19993
20127
  i0.ɵɵadvance(1);
19994
20128
  i0.ɵɵattributeInterpolate1("aria-label", "Change ", field_r21.label, "");
19995
20129
  } }
20130
+ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_ng_container_5_Template(rf, ctx) { if (rf & 1) {
20131
+ i0.ɵɵelementContainerStart(0);
20132
+ i0.ɵɵelementStart(1, "td", 35);
20133
+ i0.ɵɵtemplate(2, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_ng_container_5_a_2_Template, 3, 1, "a", 36);
20134
+ i0.ɵɵelementEnd();
20135
+ i0.ɵɵelementContainerEnd();
20136
+ } if (rf & 2) {
20137
+ const field_r21 = i0.ɵɵnextContext(2).$implicit;
20138
+ const ctx_r24 = i0.ɵɵnextContext(5);
20139
+ i0.ɵɵadvance(2);
20140
+ i0.ɵɵproperty("ngIf", ctx_r24.isChangeAllowed(field_r21));
20141
+ } }
19996
20142
  function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
19997
20143
  i0.ɵɵelementContainerStart(0);
19998
20144
  i0.ɵɵelementStart(1, "tr", 30);
@@ -20000,9 +20146,7 @@ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_contain
20000
20146
  i0.ɵɵelementStart(3, "td", 32);
20001
20147
  i0.ɵɵelement(4, "ccd-field-read", 33);
20002
20148
  i0.ɵɵelementEnd();
20003
- i0.ɵɵelementStart(5, "td", 34);
20004
- i0.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template, 3, 1, "a", 35);
20005
- i0.ɵɵelementEnd();
20149
+ i0.ɵɵtemplate(5, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_ng_container_5_Template, 3, 1, "ng-container", 0);
20006
20150
  i0.ɵɵelementEnd();
20007
20151
  i0.ɵɵelementContainerEnd();
20008
20152
  } if (rf & 2) {
@@ -20016,12 +20160,12 @@ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_contain
20016
20160
  i0.ɵɵattribute("colspan", ctx_r22.isLabel(field_r21) ? "2" : "1");
20017
20161
  i0.ɵɵadvance(1);
20018
20162
  i0.ɵɵproperty("formGroup", ctx_r22.editForm.controls["data"])("topLevelFormGroup", ctx_r22.editForm.controls["data"])("caseField", ctx_r22.summaryCaseField(field_r21))("context", ctx_r22.paletteContext)("caseFields", ctx_r22.contextFields);
20019
- i0.ɵɵadvance(2);
20020
- i0.ɵɵproperty("ngIf", ctx_r22.isChangeAllowed(field_r21));
20163
+ i0.ɵɵadvance(1);
20164
+ i0.ɵɵproperty("ngIf", ctx_r22.eventTrigger.id !== "createCaseFlag");
20021
20165
  } }
20022
20166
  function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
20023
20167
  i0.ɵɵelementContainerStart(0);
20024
- i0.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template, 7, 12, "ng-container", 0);
20168
+ i0.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template, 6, 12, "ng-container", 0);
20025
20169
  i0.ɵɵelementContainerEnd();
20026
20170
  } if (rf & 2) {
20027
20171
  const field_r21 = ctx.$implicit;
@@ -20084,13 +20228,13 @@ function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_3_Templ
20084
20228
  i0.ɵɵelementEnd();
20085
20229
  i0.ɵɵelementEnd();
20086
20230
  } if (rf & 2) {
20087
- const field_r33 = i0.ɵɵnextContext().$implicit;
20088
- const ctx_r34 = i0.ɵɵnextContext(3);
20089
- i0.ɵɵproperty("caseField", field_r33)("formGroup", ctx_r34.editForm.controls["data"])("contextFields", ctx_r34.contextFields);
20231
+ const field_r35 = i0.ɵɵnextContext().$implicit;
20232
+ const ctx_r36 = i0.ɵɵnextContext(3);
20233
+ i0.ɵɵproperty("caseField", field_r35)("formGroup", ctx_r36.editForm.controls["data"])("contextFields", ctx_r36.contextFields);
20090
20234
  i0.ɵɵadvance(2);
20091
- i0.ɵɵtextInterpolate(field_r33.label);
20235
+ i0.ɵɵtextInterpolate(field_r35.label);
20092
20236
  i0.ɵɵadvance(2);
20093
- i0.ɵɵproperty("formGroup", ctx_r34.editForm.controls["data"])("caseField", ctx_r34.summaryCaseField(field_r33));
20237
+ i0.ɵɵproperty("formGroup", ctx_r36.editForm.controls["data"])("caseField", ctx_r36.summaryCaseField(field_r35));
20094
20238
  } }
20095
20239
  function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_4_Template(rf, ctx) { if (rf & 1) {
20096
20240
  i0.ɵɵelementStart(0, "tr", 45);
@@ -20099,11 +20243,11 @@ function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_4_Templ
20099
20243
  i0.ɵɵelementEnd();
20100
20244
  i0.ɵɵelementEnd();
20101
20245
  } if (rf & 2) {
20102
- const field_r33 = i0.ɵɵnextContext().$implicit;
20103
- const ctx_r35 = i0.ɵɵnextContext(3);
20104
- i0.ɵɵproperty("caseField", field_r33)("formGroup", ctx_r35.editForm.controls["data"])("contextFields", ctx_r35.contextFields);
20246
+ const field_r35 = i0.ɵɵnextContext().$implicit;
20247
+ const ctx_r37 = i0.ɵɵnextContext(3);
20248
+ i0.ɵɵproperty("caseField", field_r35)("formGroup", ctx_r37.editForm.controls["data"])("contextFields", ctx_r37.contextFields);
20105
20249
  i0.ɵɵadvance(2);
20106
- i0.ɵɵproperty("formGroup", ctx_r35.editForm.controls["data"])("caseField", ctx_r35.summaryCaseField(field_r33))("caseFields", ctx_r35.contextFields);
20250
+ i0.ɵɵproperty("formGroup", ctx_r37.editForm.controls["data"])("caseField", ctx_r37.summaryCaseField(field_r35))("caseFields", ctx_r37.contextFields);
20107
20251
  } }
20108
20252
  function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_Template(rf, ctx) { if (rf & 1) {
20109
20253
  i0.ɵɵelementContainerStart(0);
@@ -20114,9 +20258,9 @@ function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_Template(r
20114
20258
  i0.ɵɵelementContainerEnd();
20115
20259
  i0.ɵɵelementContainerEnd();
20116
20260
  } if (rf & 2) {
20117
- const field_r33 = ctx.$implicit;
20261
+ const field_r35 = ctx.$implicit;
20118
20262
  i0.ɵɵadvance(1);
20119
- i0.ɵɵproperty("ngSwitch", !i0.ɵɵpipeBind1(2, 3, field_r33));
20263
+ i0.ɵɵproperty("ngSwitch", !i0.ɵɵpipeBind1(2, 3, field_r35));
20120
20264
  i0.ɵɵadvance(2);
20121
20265
  i0.ɵɵproperty("ngSwitchCase", true);
20122
20266
  i0.ɵɵadvance(1);
@@ -20165,7 +20309,7 @@ function CaseEditSubmitComponent_div_0_ng_container_14_Template(rf, ctx) { if (r
20165
20309
  i0.ɵɵproperty("ngIf", ctx_r11.profile && !ctx_r11.isSolicitor());
20166
20310
  } }
20167
20311
  function CaseEditSubmitComponent_div_0_Template(rf, ctx) { if (rf & 1) {
20168
- const _r40 = i0.ɵɵgetCurrentView();
20312
+ const _r42 = i0.ɵɵgetCurrentView();
20169
20313
  i0.ɵɵelementStart(0, "div");
20170
20314
  i0.ɵɵelementStart(1, "h1", 2);
20171
20315
  i0.ɵɵtext(2);
@@ -20176,16 +20320,16 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) { if (rf & 1) {
20176
20320
  i0.ɵɵtemplate(8, CaseEditSubmitComponent_div_0_div_8_Template, 10, 0, "div", 6);
20177
20321
  i0.ɵɵtemplate(9, CaseEditSubmitComponent_div_0_div_9_Template, 6, 2, "div", 6);
20178
20322
  i0.ɵɵelementStart(10, "ccd-callback-errors", 7);
20179
- i0.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0.ɵɵrestoreView(_r40); const ctx_r39 = i0.ɵɵnextContext(); return ctx_r39.callbackErrorsNotify($event); });
20323
+ i0.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0.ɵɵrestoreView(_r42); const ctx_r41 = i0.ɵɵnextContext(); return ctx_r41.callbackErrorsNotify($event); });
20180
20324
  i0.ɵɵelementEnd();
20181
20325
  i0.ɵɵelementStart(11, "form", 8);
20182
- i0.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0.ɵɵrestoreView(_r40); const ctx_r41 = i0.ɵɵnextContext(); return ctx_r41.submit(); });
20326
+ i0.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0.ɵɵrestoreView(_r42); const ctx_r43 = i0.ɵɵnextContext(); return ctx_r43.submit(); });
20183
20327
  i0.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 7, 3, "ng-container", 0);
20184
20328
  i0.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 4, 1, "ng-container", 0);
20185
20329
  i0.ɵɵtemplate(14, CaseEditSubmitComponent_div_0_ng_container_14_Template, 2, 1, "ng-container", 0);
20186
20330
  i0.ɵɵelementStart(15, "div", 9);
20187
20331
  i0.ɵɵelementStart(16, "button", 10);
20188
- i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r40); const ctx_r42 = i0.ɵɵnextContext(); return ctx_r42.previous(); });
20332
+ i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r42); const ctx_r44 = i0.ɵɵnextContext(); return ctx_r44.previous(); });
20189
20333
  i0.ɵɵtext(17, "Previous");
20190
20334
  i0.ɵɵelementEnd();
20191
20335
  i0.ɵɵelementStart(18, "button", 11);
@@ -20194,7 +20338,7 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) { if (rf & 1) {
20194
20338
  i0.ɵɵelementEnd();
20195
20339
  i0.ɵɵelementStart(20, "p", 12);
20196
20340
  i0.ɵɵelementStart(21, "a", 13);
20197
- i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_21_listener() { i0.ɵɵrestoreView(_r40); const ctx_r43 = i0.ɵɵnextContext(); return ctx_r43.cancel(); });
20341
+ i0.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_21_listener() { i0.ɵɵrestoreView(_r42); const ctx_r45 = i0.ɵɵnextContext(); return ctx_r45.cancel(); });
20198
20342
  i0.ɵɵtext(22);
20199
20343
  i0.ɵɵelementEnd();
20200
20344
  i0.ɵɵelementEnd();
@@ -20234,9 +20378,9 @@ function CaseEditSubmitComponent_div_0_Template(rf, ctx) { if (rf & 1) {
20234
20378
  i0.ɵɵtextInterpolate(ctx_r0.getCancelText());
20235
20379
  } }
20236
20380
  function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) { if (rf & 1) {
20237
- const _r45 = i0.ɵɵgetCurrentView();
20381
+ const _r47 = i0.ɵɵgetCurrentView();
20238
20382
  i0.ɵɵelementStart(0, "ccd-case-event-completion", 57);
20239
- 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 ctx_r44.onEventCanBeCompleted($event); });
20383
+ i0.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0.ɵɵrestoreView(_r47); const ctx_r46 = i0.ɵɵnextContext(); return ctx_r46.onEventCanBeCompleted($event); });
20240
20384
  i0.ɵɵelementEnd();
20241
20385
  } if (rf & 2) {
20242
20386
  const ctx_r1 = i0.ɵɵnextContext();
@@ -20616,7 +20760,7 @@ CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION = (a, b) => {
20616
20760
  return a.show_summary_content_option - b.show_summary_content_option;
20617
20761
  };
20618
20762
  CaseEditSubmitComponent.ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ProfileNotifier), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(CaseNotifier)); };
20619
- CaseEditSubmitComponent.ɵcmp = 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", ""], ["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "callbackErrorsSubject", "callbackErrorsContext"], [1, "check-your-answers", 3, "formGroup", "submit"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h3", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], ["class", "ccd-error-summary-li", 4, "ngFor", "ngForOf"], [1, "ccd-error-summary-li"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "caseFields"], [1, "valign-top", "check-your-answers__change", "case-field-change"], ["href", "javascript:void(0)", 3, "click", 4, "ngIf"], [1, "valign-top", "case-field-label"], ["aria-describedby", "summary fields table", 1, "summary-fields"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["class", "compound-field", "ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], ["id", "summary-field-label"], [1, "form-cell"], [3, "formGroup", "caseField"], ["ccdLabelSubstitutor", "", 1, "compound-field", 3, "caseField", "formGroup", "contextFields"], ["colspan", "2"], [3, "formGroup", "caseField", "caseFields"], ["id", "fieldset-event", "formGroupName", "event", 4, "ngIf"], ["id", "fieldset-event", "formGroupName", "event"], [2, "display", "none"], [1, "form-group"], ["for", "field-trigger-summary", 1, "form-label"], [1, "form-hint"], ["type", "text", "id", "field-trigger-summary", "formControlName", "summary", "maxlength", "1024", 1, "form-control", "bottom-30", "width-50"], ["for", "field-trigger-description", 1, "form-label"], ["id", "field-trigger-description", "formControlName", "description", "maxlength", "65536", 1, "form-control", "bottom-30", "width-50"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditSubmitComponent_Template(rf, ctx) { if (rf & 1) {
20763
+ CaseEditSubmitComponent.ɵcmp = 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", ""], ["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "callbackErrorsSubject", "callbackErrorsContext"], [1, "check-your-answers", 3, "formGroup", "submit"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h3", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], ["class", "ccd-error-summary-li", 4, "ngFor", "ngForOf"], [1, "ccd-error-summary-li"], ["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", 4, "ngIf"], ["id", "fieldset-event", "formGroupName", "event"], [2, "display", "none"], [1, "form-group"], ["for", "field-trigger-summary", 1, "form-label"], [1, "form-hint"], ["type", "text", "id", "field-trigger-summary", "formControlName", "summary", "maxlength", "1024", 1, "form-control", "bottom-30", "width-50"], ["for", "field-trigger-description", 1, "form-label"], ["id", "field-trigger-description", "formControlName", "description", "maxlength", "65536", 1, "form-control", "bottom-30", "width-50"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditSubmitComponent_Template(rf, ctx) { if (rf & 1) {
20620
20764
  i0.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 23, 17, "div", 0);
20621
20765
  i0.ɵɵtemplate(1, CaseEditSubmitComponent_ccd_case_event_completion_1_Template, 1, 1, "ccd-case-event-completion", 1);
20622
20766
  } if (rf & 2) {
@@ -21096,7 +21240,8 @@ CaseEditorModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
21096
21240
  JudicialworkerService,
21097
21241
  CaseworkerService,
21098
21242
  SessionStorageService,
21099
- EventCompletionStateMachineService
21243
+ EventCompletionStateMachineService,
21244
+ CaseFlagStateService
21100
21245
  ], imports: [[
21101
21246
  CommonModule,
21102
21247
  RouterModule,
@@ -21205,14 +21350,15 @@ CaseEditorModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
21205
21350
  JudicialworkerService,
21206
21351
  CaseworkerService,
21207
21352
  SessionStorageService,
21208
- EventCompletionStateMachineService
21353
+ EventCompletionStateMachineService,
21354
+ CaseFlagStateService
21209
21355
  ]
21210
21356
  }]
21211
21357
  }], null, null); })();
21212
- i0.ɵɵsetComponentScope(CaseEditConfirmComponent, [i1.NgIf, MarkdownComponent, i2.ɵangular_packages_forms_forms_ba, i2.NgControlStatusGroup, i2.FormGroupDirective], [CcdCaseTitlePipe, CaseReferencePipe]);
21213
- i0.ɵɵsetComponentScope(CaseEditPageComponent, [i1.NgIf, LoadingSpinnerComponent, MarkdownComponent, i1.NgForOf, CallbackErrorsComponent, i2.ɵangular_packages_forms_forms_ba, i2.NgControlStatusGroup, i2.FormGroupDirective, CaseEditFormComponent], [CcdCaseTitlePipe, CaseReferencePipe, i1.AsyncPipe]);
21214
- i0.ɵɵsetComponentScope(CaseEditFormComponent, [i1.NgForOf, ConditionalShowFormDirective, i2.NgControlStatusGroup, i2.FormGroupDirective, LabelSubstitutorDirective, i1.NgSwitch, i1.NgSwitchCase, FieldReadComponent, i1.NgIf, FieldWriteComponent], [IsReadOnlyAndNotCollectionPipe, IsCompoundPipe]);
21215
- i0.ɵɵsetComponentScope(CaseEditSubmitComponent, [i1.NgIf, MarkdownComponent, i1.NgForOf, CallbackErrorsComponent, i2.ɵangular_packages_forms_forms_ba, i2.NgControlStatusGroup, i2.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent, i1.NgSwitch, i1.NgSwitchCase, i2.FormGroupName, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlName, i2.MaxLengthValidator, CaseEventCompletionComponent], [CcdCaseTitlePipe, CaseReferencePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, IsCompoundPipe]);
21358
+ i0.ɵɵsetComponentScope(CaseEditConfirmComponent, [i1.NgIf, MarkdownComponent, i1$3.ɵangular_packages_forms_forms_ba, i1$3.NgControlStatusGroup, i1$3.FormGroupDirective], [CcdCaseTitlePipe, CaseReferencePipe]);
21359
+ i0.ɵɵsetComponentScope(CaseEditPageComponent, [i1.NgIf, LoadingSpinnerComponent, MarkdownComponent, i1.NgForOf, CallbackErrorsComponent, i1$3.ɵangular_packages_forms_forms_ba, i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, CaseEditFormComponent], [CcdCaseTitlePipe, CaseReferencePipe, i1.AsyncPipe]);
21360
+ i0.ɵɵsetComponentScope(CaseEditFormComponent, [i1.NgForOf, ConditionalShowFormDirective, i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, LabelSubstitutorDirective, i1.NgSwitch, i1.NgSwitchCase, FieldReadComponent, i1.NgIf, FieldWriteComponent], [IsReadOnlyAndNotCollectionPipe, IsCompoundPipe]);
21361
+ i0.ɵɵsetComponentScope(CaseEditSubmitComponent, [i1.NgIf, MarkdownComponent, i1.NgForOf, CallbackErrorsComponent, i1$3.ɵangular_packages_forms_forms_ba, i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent, i1.NgSwitch, i1.NgSwitchCase, i1$3.FormGroupName, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlName, i1$3.MaxLengthValidator, CaseEventCompletionComponent], [CcdCaseTitlePipe, CaseReferencePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, IsCompoundPipe]);
21216
21362
  i0.ɵɵsetComponentScope(CaseCreateComponent, [i1.NgIf, CaseEditComponent], []);
21217
21363
  i0.ɵɵsetComponentScope(CaseProgressComponent, [i1.NgIf, CaseEditComponent], []);
21218
21364
 
@@ -21543,7 +21689,7 @@ PaginationComponent.ɵcmp = i0.ɵɵdefineComponent({ type: PaginationComponent,
21543
21689
  i0.ɵɵproperty("id", ctx.id)("maxSize", ctx.maxSize);
21544
21690
  i0.ɵɵadvance(3);
21545
21691
  i0.ɵɵproperty("ngIf", !(ctx.autoHide && _r0.pages.length <= 1));
21546
- } }, directives: [i1$6.PaginationControlsDirective, i1.NgIf, i1.NgForOf], pipes: [i1.DecimalPipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%]:before{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{margin-right:.5rem;border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;transform:rotate(-45deg);content:\"\"}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{margin-left:.5rem;border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
21692
+ } }, directives: [i1$7.PaginationControlsDirective, i1.NgIf, i1.NgForOf], pipes: [i1.DecimalPipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%]:before{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{margin-right:.5rem;border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;transform:rotate(-45deg);content:\"\"}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{margin-left:.5rem;border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
21547
21693
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationComponent, [{
21548
21694
  type: Component,
21549
21695
  args: [{
@@ -21893,7 +22039,7 @@ CaseListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseListComponent, sele
21893
22039
  i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind2(9, 8, ctx.cases, i0.ɵɵpureFunction3(11, _c0$c, ctx.pageSize, ctx.currentPageNo, ctx.totalResultsCount)));
21894
22040
  i0.ɵɵadvance(2);
21895
22041
  i0.ɵɵproperty("ngIf", ctx.totalResultsCount > ctx.pageSize);
21896
- } }, directives: [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, PaginationComponent], pipes: [i1$6.PaginatePipe, i1.CurrencyPipe], styles: [""] });
22042
+ } }, directives: [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, PaginationComponent], pipes: [i1$7.PaginatePipe, i1.CurrencyPipe], styles: [""] });
21897
22043
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseListComponent, [{
21898
22044
  type: Component,
21899
22045
  args: [{
@@ -22478,7 +22624,7 @@ WorkbasketFiltersModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
22478
22624
  ]
22479
22625
  }]
22480
22626
  }], null, null); })();
22481
- i0.ɵɵsetComponentScope(WorkbasketFiltersComponent, [i2.ɵangular_packages_forms_forms_ba, i2.NgControlStatusGroup, i2.NgForm, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.NgModel, i1.NgIf, i2.NgSelectOption, i2.ɵangular_packages_forms_forms_z, i1.NgForOf, ConditionalShowFormDirective, i2.FormGroupDirective, FieldWriteComponent], []);
22627
+ i0.ɵɵsetComponentScope(WorkbasketFiltersComponent, [i1$3.ɵangular_packages_forms_forms_ba, i1$3.NgControlStatusGroup, i1$3.NgForm, i1$3.SelectControlValueAccessor, i1$3.NgControlStatus, i1$3.NgModel, i1.NgIf, i1$3.NgSelectOption, i1$3.ɵangular_packages_forms_forms_z, i1.NgForOf, ConditionalShowFormDirective, i1$3.FormGroupDirective, FieldWriteComponent], []);
22482
22628
 
22483
22629
  const READ_ACCESS = 'read';
22484
22630
  const CREATE_ACCESS = 'create';
@@ -23655,7 +23801,7 @@ class DeleteOrCancelDialogComponent {
23655
23801
  this.matDialogRef.close(this.result);
23656
23802
  }
23657
23803
  }
23658
- DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef)); };
23804
+ DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0.ɵɵdirectiveInject(i1$4.MatDialogRef)); };
23659
23805
  DeleteOrCancelDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DeleteOrCancelDialogComponent, selectors: [["ccd-delete-or-cancel-dialog"]], decls: 15, vars: 0, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Delete", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DeleteOrCancelDialogComponent_Template(rf, ctx) { if (rf & 1) {
23660
23806
  i0.ɵɵelementStart(0, "div");
23661
23807
  i0.ɵɵelementStart(1, "div", 0);
@@ -23693,7 +23839,7 @@ DeleteOrCancelDialogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DeleteOrCan
23693
23839
  templateUrl: './delete-or-cancel-dialog.component.html',
23694
23840
  styleUrls: ['../action-dialog.component.scss']
23695
23841
  }]
23696
- }], function () { return [{ type: i1$3.MatDialogRef }]; }, null); })();
23842
+ }], function () { return [{ type: i1$4.MatDialogRef }]; }, null); })();
23697
23843
 
23698
23844
  class DialogsModule {
23699
23845
  }
@@ -24274,7 +24420,7 @@ CaseFullAccessViewComponent.TRIGGER_TEXT_START = 'Go';
24274
24420
  CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
24275
24421
  CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
24276
24422
  CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
24277
- CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(NavigationNotifierService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(i1$3.MatDialog), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(DraftService), i0.ɵɵdirectiveInject(ErrorNotifierService), i0.ɵɵdirectiveInject(ConvertHrefToRouterService), i0.ɵɵdirectiveInject(i1.Location), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(SessionStorageService)); };
24423
+ CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(NavigationNotifierService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(i1$4.MatDialog), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(DraftService), i0.ɵɵdirectiveInject(ErrorNotifierService), i0.ɵɵdirectiveInject(ConvertHrefToRouterService), i0.ɵɵdirectiveInject(i1.Location), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(SessionStorageService)); };
24278
24424
  CaseFullAccessViewComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) { if (rf & 1) {
24279
24425
  i0.ɵɵviewQuery(_c0$b, 1);
24280
24426
  } if (rf & 2) {
@@ -24326,7 +24472,7 @@ CaseFullAccessViewComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFullAcces
24326
24472
  templateUrl: './case-full-access-view.component.html',
24327
24473
  styleUrls: ['./case-full-access-view.component.scss']
24328
24474
  }]
24329
- }], function () { return [{ type: i0.NgZone }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$3.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1.Location }, { type: i0.ChangeDetectorRef }, { type: SessionStorageService }]; }, { hasPrint: [{
24475
+ }], function () { return [{ type: i0.NgZone }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$4.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1.Location }, { type: i0.ChangeDetectorRef }, { type: SessionStorageService }]; }, { hasPrint: [{
24330
24476
  type: Input
24331
24477
  }], hasEventSelector: [{
24332
24478
  type: Input
@@ -25483,12 +25629,12 @@ class EventTriggerComponent {
25483
25629
  return this.triggers.length === 1 ? this.triggers[0] : '';
25484
25630
  }
25485
25631
  }
25486
- EventTriggerComponent.ɵfac = function EventTriggerComponent_Factory(t) { return new (t || EventTriggerComponent)(i0.ɵɵdirectiveInject(i2.FormBuilder), i0.ɵɵdirectiveInject(OrderService)); };
25632
+ EventTriggerComponent.ɵfac = function EventTriggerComponent_Factory(t) { return new (t || EventTriggerComponent)(i0.ɵɵdirectiveInject(i1$3.FormBuilder), i0.ɵɵdirectiveInject(OrderService)); };
25487
25633
  EventTriggerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: EventTriggerComponent, selectors: [["ccd-event-trigger"]], inputs: { triggers: "triggers", triggerText: "triggerText", isDisabled: "isDisabled" }, outputs: { onTriggerSubmit: "onTriggerSubmit", onTriggerChange: "onTriggerChange" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "event-trigger", 3, "formGroup", "ngSubmit", 4, "ngIf"], [1, "event-trigger", 3, "formGroup", "ngSubmit"], [1, "form-group"], ["for", "next-step", 1, "form-label"], ["id", "next-step", "formControlName", "trigger", 1, "form-control", "ccd-dropdown", 3, "ngClass", "change"], ["value", "", "data-default", "", 4, "ngIf"], [3, "ngValue", "title", 4, "ngFor", "ngForOf"], ["type", "submit", 1, "button", 3, "disabled"], ["value", "", "data-default", ""], [3, "ngValue", "title"]], template: function EventTriggerComponent_Template(rf, ctx) { if (rf & 1) {
25488
25634
  i0.ɵɵtemplate(0, EventTriggerComponent_form_0_Template, 9, 8, "form", 0);
25489
25635
  } if (rf & 2) {
25490
25636
  i0.ɵɵproperty("ngIf", ctx.triggers && ctx.triggers.length);
25491
- } }, directives: [i1.NgIf, i2.ɵangular_packages_forms_forms_ba, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.FormControlName, i1.NgClass, i1.NgForOf, i2.NgSelectOption, i2.ɵangular_packages_forms_forms_z], styles: [".event-trigger[_ngcontent-%COMP%]{width:auto;margin-top:40px;margin-bottom:20px}.event-trigger[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{margin-top:3px;margin-right:10px;margin-bottom:0;float:left;text-align:right;width:325px}.event-trigger[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%] .form-label[_ngcontent-%COMP%]{float:left;margin-top:5px}.event-trigger[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:250px}.event-trigger[_ngcontent-%COMP%] select.EventTrigger-empty[_ngcontent-%COMP%], .event-trigger[_ngcontent-%COMP%] select[_ngcontent-%COMP%] [data-default][_ngcontent-%COMP%]{color:#6f777b}"] });
25637
+ } }, directives: [i1.NgIf, i1$3.ɵangular_packages_forms_forms_ba, i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, i1$3.SelectControlValueAccessor, i1$3.NgControlStatus, i1$3.FormControlName, i1.NgClass, i1.NgForOf, i1$3.NgSelectOption, i1$3.ɵangular_packages_forms_forms_z], styles: [".event-trigger[_ngcontent-%COMP%]{width:auto;margin-top:40px;margin-bottom:20px}.event-trigger[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{margin-top:3px;margin-right:10px;margin-bottom:0;float:left;text-align:right;width:325px}.event-trigger[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%] .form-label[_ngcontent-%COMP%]{float:left;margin-top:5px}.event-trigger[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:250px}.event-trigger[_ngcontent-%COMP%] select.EventTrigger-empty[_ngcontent-%COMP%], .event-trigger[_ngcontent-%COMP%] select[_ngcontent-%COMP%] [data-default][_ngcontent-%COMP%]{color:#6f777b}"] });
25492
25638
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventTriggerComponent, [{
25493
25639
  type: Component,
25494
25640
  args: [{
@@ -25496,7 +25642,7 @@ EventTriggerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: EventTriggerCompone
25496
25642
  templateUrl: './event-trigger.component.html',
25497
25643
  styleUrls: ['./event-trigger.component.scss']
25498
25644
  }]
25499
- }], function () { return [{ type: i2.FormBuilder }, { type: OrderService }]; }, { triggers: [{
25645
+ }], function () { return [{ type: i1$3.FormBuilder }, { type: OrderService }]; }, { triggers: [{
25500
25646
  type: Input
25501
25647
  }], triggerText: [{
25502
25648
  type: Input
@@ -25740,7 +25886,7 @@ class CaseChallengedAccessRequestComponent {
25740
25886
  }
25741
25887
  }
25742
25888
  CaseChallengedAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
25743
- CaseChallengedAccessRequestComponent.ɵfac = function CaseChallengedAccessRequestComponent_Factory(t) { return new (t || CaseChallengedAccessRequestComponent)(i0.ɵɵdirectiveInject(i2.FormBuilder), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseNotifier)); };
25889
+ CaseChallengedAccessRequestComponent.ɵfac = function CaseChallengedAccessRequestComponent_Factory(t) { return new (t || CaseChallengedAccessRequestComponent)(i0.ɵɵdirectiveInject(i1$3.FormBuilder), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseNotifier)); };
25744
25890
  CaseChallengedAccessRequestComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseChallengedAccessRequestComponent, selectors: [["ccd-case-challenged-access-request"]], decls: 40, vars: 22, consts: [[3, "error", 4, "ngIf"], ["type", "information"], [3, "formGroup", "submit"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "reason-hint", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], ["id", "reason-hint", 1, "govuk-hint"], ["id", "error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--conditional"], [1, "govuk-radios__item"], ["id", "reason-0", "name", "radioSelected", "type", "radio", "data-aria-controls", "conditional-reason-0", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "value", "checked", "change"], ["for", "reason-0", 1, "govuk-label", "govuk-radios__label"], ["id", "conditional-reason-0", "class", "govuk-radios__conditional", 4, "ngIf"], ["id", "reason-1", "name", "radioSelected", "type", "radio", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "value", "checked", "change"], ["for", "reason-1", 1, "govuk-label", "govuk-radios__label"], ["id", "reason-2", "name", "radioSelected", "type", "radio", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "value", "checked", "change"], ["for", "reason-2", 1, "govuk-label", "govuk-radios__label"], ["id", "reason-3", "name", "radioSelected", "type", "radio", "data-aria-controls", "conditional-reason-3", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "value", "checked", "change"], ["for", "reason-3", "id", "reason-3-label", 1, "govuk-label", "govuk-radios__label"], ["id", "conditional-reason-3", "class", "govuk-radios__conditional", 4, "ngIf"], [1, "govuk-button-group"], ["type", "submit", 1, "govuk-button", "govuk-!-margin-right-3"], [1, "govuk-grid-column-full", "govuk-!-padding-left-0"], ["href", "javascript:void(0)", 1, "govuk-body", 3, "click"], [3, "error"], ["id", "error-message", 1, "govuk-error-message"], ["id", "conditional-reason-0", 1, "govuk-radios__conditional"], [1, "govuk-form-group"], ["for", "case-reference", 1, "govuk-label"], ["id", "case-reference-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "case-reference", "name", "case-reference", "type", "text", "formControlName", "caseReference", 1, "govuk-input", "govuk-!-width-one-third", 3, "ngClass"], ["id", "case-reference-error-message", 1, "govuk-error-message"], ["id", "conditional-reason-3", 1, "govuk-radios__conditional"], ["id", "other-reason-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-reason", "name", "other-reason", "rows", "5", "aria-describedby", "reason-3-label", "formControlName", "otherReason", 1, "govuk-textarea", 3, "ngClass"], ["id", "other-reason-error-message", 1, "govuk-error-message"]], template: function CaseChallengedAccessRequestComponent_Template(rf, ctx) { if (rf & 1) {
25745
25891
  i0.ɵɵtemplate(0, CaseChallengedAccessRequestComponent_exui_error_message_0_Template, 1, 1, "exui-error-message", 0);
25746
25892
  i0.ɵɵelementStart(1, "cut-alert", 1);
@@ -25852,7 +25998,7 @@ CaseChallengedAccessRequestComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Case
25852
25998
  selector: 'ccd-case-challenged-access-request',
25853
25999
  templateUrl: './case-challenged-access-request.component.html'
25854
26000
  }]
25855
- }], function () { return [{ type: i2.FormBuilder }, { type: i1$1.Router }, { type: CasesService }, { type: i1$1.ActivatedRoute }, { type: CaseNotifier }]; }, null); })();
26001
+ }], function () { return [{ type: i1$3.FormBuilder }, { type: i1$1.Router }, { type: CasesService }, { type: i1$1.ActivatedRoute }, { type: CaseNotifier }]; }, null); })();
25856
26002
 
25857
26003
  class CaseChallengedAccessSuccessComponent {
25858
26004
  constructor(route) {
@@ -26082,7 +26228,7 @@ class CaseReviewSpecificAccessRequestComponent {
26082
26228
  }
26083
26229
  }
26084
26230
  CaseReviewSpecificAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
26085
- CaseReviewSpecificAccessRequestComponent.ɵfac = function CaseReviewSpecificAccessRequestComponent_Factory(t) { return new (t || CaseReviewSpecificAccessRequestComponent)(i0.ɵɵdirectiveInject(i2.FormBuilder), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(AbstractAppConfig)); };
26231
+ CaseReviewSpecificAccessRequestComponent.ɵfac = function CaseReviewSpecificAccessRequestComponent_Factory(t) { return new (t || CaseReviewSpecificAccessRequestComponent)(i0.ɵɵdirectiveInject(i1$3.FormBuilder), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(AbstractAppConfig)); };
26086
26232
  CaseReviewSpecificAccessRequestComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseReviewSpecificAccessRequestComponent, selectors: [["ccd-case-review-specific-access-request"]], decls: 64, vars: 22, consts: [[3, "error", 4, "ngIf"], [3, "formGroup", "submit"], [1, "govuk-form-group"], ["aria-describedby", "reason-hint", 1, "govuk-fieldset"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], [1, "govuk-table"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header", "leftLabel"], [1, "govuk-table__cell"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "error-message", "class", "govuk-error-message", 4, "ngIf"], [1, "govuk-radios__item"], ["id", "reason-0", "name", "radioSelected", "type", "radio", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "value", "checked", "change"], ["for", "reason-0", 1, "govuk-label", "govuk-radios__label"], ["id", "reason-1", "name", "radioSelected", "type", "radio", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "value", "checked", "change"], ["for", "reason-1", 1, "govuk-label", "govuk-radios__label"], ["id", "reason-2", "name", "radioSelected", "type", "radio", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "value", "checked", "change"], ["for", "reason-2", 1, "govuk-label", "govuk-radios__label"], [1, "govuk-button-group"], ["type", "submit", 1, "govuk-button", "govuk-!-margin-right-3"], [1, "govuk-grid-column-full", "govuk-!-padding-left-0"], ["href", "javascript:void(0)", 1, "govuk-body", 3, "click"], [3, "error"], ["id", "error-message", 1, "govuk-error-message"]], template: function CaseReviewSpecificAccessRequestComponent_Template(rf, ctx) { if (rf & 1) {
26087
26233
  i0.ɵɵtemplate(0, CaseReviewSpecificAccessRequestComponent_exui_error_message_0_Template, 1, 1, "exui-error-message", 0);
26088
26234
  i0.ɵɵelementStart(1, "form", 1);
@@ -26236,7 +26382,7 @@ CaseReviewSpecificAccessRequestComponent.ɵcmp = i0.ɵɵdefineComponent({ type:
26236
26382
  templateUrl: './case-review-specific-access-request.component.html',
26237
26383
  styleUrls: ['./case-review-specific-access-request.component.scss']
26238
26384
  }]
26239
- }], function () { return [{ type: i2.FormBuilder }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: AbstractAppConfig }]; }, null); })();
26385
+ }], function () { return [{ type: i1$3.FormBuilder }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: AbstractAppConfig }]; }, null); })();
26240
26386
 
26241
26387
  var SpecificAccessRequestPageText;
26242
26388
  (function (SpecificAccessRequestPageText) {
@@ -26345,7 +26491,7 @@ class CaseSpecificAccessRequestComponent {
26345
26491
  }
26346
26492
  }
26347
26493
  CaseSpecificAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
26348
- CaseSpecificAccessRequestComponent.ɵfac = function CaseSpecificAccessRequestComponent_Factory(t) { return new (t || CaseSpecificAccessRequestComponent)(i0.ɵɵdirectiveInject(i2.FormBuilder), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseNotifier)); };
26494
+ CaseSpecificAccessRequestComponent.ɵfac = function CaseSpecificAccessRequestComponent_Factory(t) { return new (t || CaseSpecificAccessRequestComponent)(i0.ɵɵdirectiveInject(i1$3.FormBuilder), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseNotifier)); };
26349
26495
  CaseSpecificAccessRequestComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseSpecificAccessRequestComponent, selectors: [["ccd-case-specific-access-request"]], decls: 39, vars: 11, consts: [[3, "error", 4, "ngIf"], ["type", "information"], [3, "formGroup", "submit"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "reason-hint", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], ["data-module", "govuk-details", "role", "group", 1, "govuk-details"], ["role", "button", "aria-expanded", "false", 1, "govuk-details__summary"], [1, "govuk-details__summary-text"], ["aria-hidden", "true", 1, "govuk-details__text"], [1, "govuk-body"], [1, "govuk-list", "govuk-list--bullet"], ["id", "reason-hint", 1, "govuk-hint"], ["id", "conditional-reason-3"], [1, "govuk-form-group"], ["id", "specific-reason-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "specific-reason", "name", "specific-reason", "rows", "8", "formControlName", "specificReason", 1, "govuk-textarea", 3, "ngClass"], [1, "govuk-button-group"], ["type", "submit", 1, "govuk-button", "govuk-!-margin-right-3"], [1, "govuk-grid-column-full", "govuk-!-padding-left-0"], ["href", "javascript:void(0)", 1, "govuk-body", 3, "click"], [3, "error"], ["id", "specific-reason-error-message", 1, "govuk-error-message"]], template: function CaseSpecificAccessRequestComponent_Template(rf, ctx) { if (rf & 1) {
26350
26496
  i0.ɵɵtemplate(0, CaseSpecificAccessRequestComponent_exui_error_message_0_Template, 1, 1, "exui-error-message", 0);
26351
26497
  i0.ɵɵelementStart(1, "cut-alert", 1);
@@ -26433,7 +26579,7 @@ CaseSpecificAccessRequestComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseSp
26433
26579
  selector: 'ccd-case-specific-access-request',
26434
26580
  templateUrl: './case-specific-access-request.component.html',
26435
26581
  }]
26436
- }], function () { return [{ type: i2.FormBuilder }, { type: i1$1.Router }, { type: CasesService }, { type: i1$1.ActivatedRoute }, { type: CaseNotifier }]; }, null); })();
26582
+ }], function () { return [{ type: i1$3.FormBuilder }, { type: i1$1.Router }, { type: CasesService }, { type: i1$1.ActivatedRoute }, { type: CaseNotifier }]; }, null); })();
26437
26583
 
26438
26584
  class CaseSpecificAccessSuccessComponent {
26439
26585
  constructor(route) {
@@ -26620,9 +26766,9 @@ i0.ɵɵsetComponentScope(CaseViewerComponent, [i1.NgIf, CaseBasicAccessViewCompo
26620
26766
  CaseFullAccessViewComponent], []);
26621
26767
  i0.ɵɵsetComponentScope(CaseFullAccessViewComponent, [i1.NgIf, i1.NgForOf, CallbackErrorsComponent, ActivityComponent, CaseHeaderComponent, i1$1.RouterLinkWithHref, EventTriggerComponent, NotificationBannerComponent, i9.MatTabGroup, i9.MatTab, i9.MatTabContent, LabelSubstitutorDirective, i1.NgSwitch, i1.NgSwitchCase, FieldReadComponent, i1$1.RouterOutlet], [ReadFieldsFilterPipe, CcdTabFieldsPipe, IsCompoundPipe]);
26622
26768
  i0.ɵɵsetComponentScope(CaseViewComponent, [i1.NgIf, CaseViewerComponent], []);
26623
- i0.ɵɵsetComponentScope(CaseChallengedAccessRequestComponent, [i1.NgIf, ErrorMessageComponent, AlertComponent, i2.ɵangular_packages_forms_forms_ba, i2.NgControlStatusGroup, i2.FormGroupDirective, i1.NgClass, i2.RadioControlValueAccessor, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlName], []);
26624
- i0.ɵɵsetComponentScope(CaseSpecificAccessRequestComponent, [i1.NgIf, ErrorMessageComponent, AlertComponent, i2.ɵangular_packages_forms_forms_ba, i2.NgControlStatusGroup, i2.FormGroupDirective, i1.NgClass, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlName], []);
26625
- i0.ɵɵsetComponentScope(CaseReviewSpecificAccessRequestComponent, [i1.NgIf, ErrorMessageComponent, i2.ɵangular_packages_forms_forms_ba, i2.NgControlStatusGroup, i2.FormGroupDirective, i1.NgClass, i2.RadioControlValueAccessor, i2.DefaultValueAccessor, i2.NgControlStatus, i2.FormControlName], []);
26769
+ i0.ɵɵsetComponentScope(CaseChallengedAccessRequestComponent, [i1.NgIf, ErrorMessageComponent, AlertComponent, i1$3.ɵangular_packages_forms_forms_ba, i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, i1.NgClass, i1$3.RadioControlValueAccessor, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlName], []);
26770
+ i0.ɵɵsetComponentScope(CaseSpecificAccessRequestComponent, [i1.NgIf, ErrorMessageComponent, AlertComponent, i1$3.ɵangular_packages_forms_forms_ba, i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, i1.NgClass, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlName], []);
26771
+ i0.ɵɵsetComponentScope(CaseReviewSpecificAccessRequestComponent, [i1.NgIf, ErrorMessageComponent, i1$3.ɵangular_packages_forms_forms_ba, i1$3.NgControlStatusGroup, i1$3.FormGroupDirective, i1.NgClass, i1$3.RadioControlValueAccessor, i1$3.DefaultValueAccessor, i1$3.NgControlStatus, i1$3.FormControlName], []);
26626
26772
 
26627
26773
  const viewerRouting = [
26628
26774
  {
@@ -26964,7 +27110,7 @@ CreateCaseFiltersComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CreateCaseFilt
26964
27110
  i0.ɵɵproperty("disabled", !ctx.isCreatable());
26965
27111
  i0.ɵɵadvance(1);
26966
27112
  i0.ɵɵtextInterpolate(ctx.startButtonText);
26967
- } }, directives: [i2.ɵangular_packages_forms_forms_ba, i2.NgControlStatusGroup, i2.NgForm, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.FormControlDirective, i2.NgSelectOption, i2.ɵangular_packages_forms_forms_z, i1.NgForOf], encapsulation: 2 });
27113
+ } }, directives: [i1$3.ɵangular_packages_forms_forms_ba, i1$3.NgControlStatusGroup, i1$3.NgForm, i1$3.SelectControlValueAccessor, i1$3.NgControlStatus, i1$3.FormControlDirective, i1$3.NgSelectOption, i1$3.ɵangular_packages_forms_forms_z, i1.NgForOf], encapsulation: 2 });
26968
27114
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CreateCaseFiltersComponent, [{
26969
27115
  type: Component,
26970
27116
  args: [{
@@ -27418,7 +27564,7 @@ SearchFiltersModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
27418
27564
  ]
27419
27565
  }]
27420
27566
  }], null, null); })();
27421
- i0.ɵɵsetComponentScope(SearchFiltersComponent, [i2.ɵangular_packages_forms_forms_ba, i2.NgControlStatusGroup, i2.NgForm, i2.SelectControlValueAccessor, i2.NgControlStatus, i2.NgModel, i1.NgForOf, i2.NgSelectOption, i2.ɵangular_packages_forms_forms_z, i1.NgIf, ConditionalShowFormDirective, i2.FormGroupDirective, FieldWriteComponent], []);
27567
+ i0.ɵɵsetComponentScope(SearchFiltersComponent, [i1$3.ɵangular_packages_forms_forms_ba, i1$3.NgControlStatusGroup, i1$3.NgForm, i1$3.SelectControlValueAccessor, i1$3.NgControlStatus, i1$3.NgModel, i1.NgForOf, i1$3.NgSelectOption, i1$3.ɵangular_packages_forms_forms_z, i1.NgIf, ConditionalShowFormDirective, i1$3.FormGroupDirective, FieldWriteComponent], []);
27422
27568
  i0.ɵɵsetComponentScope(SearchFiltersWrapperComponent, [i1.NgIf, SearchFiltersComponent], []);
27423
27569
 
27424
27570
  function SearchResultComponent_table_0_div_4_Template(rf, ctx) { if (rf & 1) {
@@ -28286,7 +28432,7 @@ SearchResultModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
28286
28432
  ]
28287
28433
  }]
28288
28434
  }], null, null); })();
28289
- i0.ɵɵsetComponentScope(SearchResultComponent, [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1.DecimalPipe, i1$6.PaginatePipe, CaseReferencePipe, SortSearchResultPipe]);
28435
+ i0.ɵɵsetComponentScope(SearchResultComponent, [i1.NgIf, i1.NgForOf, i1$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1.DecimalPipe, i1$7.PaginatePipe, CaseReferencePipe, SortSearchResultPipe]);
28290
28436
 
28291
28437
  class ComplexFieldOverride {
28292
28438
  }