@hmcts/ccd-case-ui-toolkit 6.10.7-case-flags-multiple-case-flags-tabs-support-v2 → 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
@@ -2,7 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('underscore'), require('moment'), require('util'), require('@edium/fsm'), require('@angular/material/dialog'), require('@angular-material-components/datetime-picker'), require('@angular/cdk/overlay'), require('@angular/cdk/tree'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/input'), require('@hmcts/ccpay-web-component'), require('@hmcts/media-viewer'), require('@nicky-lenaers/ngx-scroll-to'), require('ngx-md'), require('@angular-material-components/moment-adapter'), require('@angular/cdk/portal'), require('ngx-pagination'), require('@angular/material/tabs')) :
3
3
  typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'underscore', 'moment', 'util', '@edium/fsm', '@angular/material/dialog', '@angular-material-components/datetime-picker', '@angular/cdk/overlay', '@angular/cdk/tree', '@angular/material/autocomplete', '@angular/material/core', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/input', '@hmcts/ccpay-web-component', '@hmcts/media-viewer', '@nicky-lenaers/ngx-scroll-to', 'ngx-md', '@angular-material-components/moment-adapter', '@angular/cdk/portal', 'ngx-pagination', '@angular/material/tabs'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.underscore, global.moment, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@angular-material-components/datetime-picker"], global.ng.cdk.overlay, global.ng.cdk.tree, global.ng.material.autocomplete, global.ng.material.core, global.ng.material.datepicker, global.ng.material.formField, global.ng.material.input, global["@hmcts/ccpay-web-component"], global.i11, global["@nicky-lenaers/ngx-scroll-to"], global["ngx-md"], global["@angular-material-components/moment-adapter"], global.ng.cdk.portal, global["ngx-pagination"], global.ng.material.tabs));
5
- })(this, (function (exports, i0, i1, i1$1, i2, polling, rxjs, i1$2, operators, classTransformer, _, moment, util, fsm, i1$3, i4, i1$4, i7, i5, i6, i5$1, i6$1, i3$1, i3, i11, i2$1, i1$5, momentAdapter, i6$2, i1$6, i9) { 'use strict';
5
+ })(this, (function (exports, i0, i1, i1$1, i1$2, polling, rxjs, i1$3, operators, classTransformer, _, moment, util, fsm, i1$4, i4, i1$5, i7, i5, i6, i5$1, i6$1, i3$1, i3, i11, i2, i1$6, momentAdapter, i6$2, i1$7, i9) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -27,14 +27,14 @@
27
27
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
28
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
29
29
  var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
30
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
+ var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$2);
31
31
  var polling__default = /*#__PURE__*/_interopDefaultLegacy(polling);
32
- var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
32
+ var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
33
33
  var ___namespace = /*#__PURE__*/_interopNamespace(_);
34
34
  var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
35
- var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
36
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
37
35
  var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
36
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
37
+ var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
38
38
  var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
39
39
  var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
40
40
  var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
@@ -43,10 +43,10 @@
43
43
  var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
44
44
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
45
45
  var i11__namespace = /*#__PURE__*/_interopNamespace(i11);
46
- var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
47
- var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
48
- var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
46
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
49
47
  var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
48
+ var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
49
+ var i1__namespace$7 = /*#__PURE__*/_interopNamespace(i1$7);
50
50
  var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
51
51
 
52
52
  function FooterComponent_div_2_Template(rf, ctx) {
@@ -1040,12 +1040,12 @@
1040
1040
  DateInputComponent.ɵfac = function DateInputComponent_Factory(t) { return new (t || DateInputComponent)(); };
1041
1041
  DateInputComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DateInputComponent, selectors: [["cut-date-input"]], inputs: { id: "id", mandatory: "mandatory", isDateTime: "isDateTime", formControl: "formControl", isInvalid: "isInvalid" }, features: [i0__namespace.ɵɵProvidersFeature([
1042
1042
  {
1043
- provide: i2.NG_VALUE_ACCESSOR,
1043
+ provide: i1$2.NG_VALUE_ACCESSOR,
1044
1044
  useExisting: i0.forwardRef(function () { return DateInputComponent; }),
1045
1045
  multi: true
1046
1046
  },
1047
1047
  {
1048
- provide: i2.NG_VALIDATORS,
1048
+ provide: i1$2.NG_VALIDATORS,
1049
1049
  useExisting: i0.forwardRef(function () { return DateInputComponent; }),
1050
1050
  multi: true
1051
1051
  }
@@ -1111,12 +1111,12 @@
1111
1111
  templateUrl: './date-input.html',
1112
1112
  providers: [
1113
1113
  {
1114
- provide: i2.NG_VALUE_ACCESSOR,
1114
+ provide: i1$2.NG_VALUE_ACCESSOR,
1115
1115
  useExisting: i0.forwardRef(function () { return DateInputComponent; }),
1116
1116
  multi: true
1117
1117
  },
1118
1118
  {
1119
- provide: i2.NG_VALIDATORS,
1119
+ provide: i1$2.NG_VALIDATORS,
1120
1120
  useExisting: i0.forwardRef(function () { return DateInputComponent; }),
1121
1121
  multi: true
1122
1122
  }
@@ -1861,7 +1861,7 @@
1861
1861
  return error;
1862
1862
  }
1863
1863
  var httpError = new HttpError();
1864
- if (error instanceof i1$2.HttpErrorResponse) {
1864
+ if (error instanceof i1$3.HttpErrorResponse) {
1865
1865
  if (error.headers
1866
1866
  && error.headers.get(HttpErrorService.CONTENT_TYPE)
1867
1867
  && error.headers.get(HttpErrorService.CONTENT_TYPE).indexOf(HttpErrorService.JSON) !== -1) {
@@ -1991,7 +1991,7 @@
1991
1991
  options = options || { observe: 'body' };
1992
1992
  options.withCredentials = true;
1993
1993
  if (!options.headers) {
1994
- options.headers = new i1$2.HttpHeaders()
1994
+ options.headers = new i1$3.HttpHeaders()
1995
1995
  .set(HttpService.HEADER_ACCEPT, 'application/json')
1996
1996
  .set(HttpService.HEADER_CONTENT_TYPE, 'application/json');
1997
1997
  }
@@ -2080,7 +2080,7 @@
2080
2080
  };
2081
2081
  ActivityService.prototype.getOptions = function () {
2082
2082
  var userDetails = JSON.parse(this.sessionStorageService.getItem('userDetails'));
2083
- var headers = new i1$2.HttpHeaders().set('Content-Type', 'application/json').set('Authorization', userDetails.token);
2083
+ var headers = new i1$3.HttpHeaders().set('Content-Type', 'application/json').set('Authorization', userDetails.token);
2084
2084
  var options = {
2085
2085
  headers: headers,
2086
2086
  withCredentials: true,
@@ -4299,13 +4299,13 @@
4299
4299
  return this.mergeFields(caseFields, formFields, FieldsUtils.LABEL_MERGE_FUNCTION);
4300
4300
  };
4301
4301
  FieldsUtils.prototype.controlIterator = function (aControl, formArrayFn, formGroupFn, controlFn) {
4302
- if (aControl instanceof i2.FormArray) { // We're in a collection
4302
+ if (aControl instanceof i1$2.FormArray) { // We're in a collection
4303
4303
  formArrayFn(aControl);
4304
4304
  }
4305
- else if (aControl instanceof i2.FormGroup) { // We're in a complex type.
4305
+ else if (aControl instanceof i1$2.FormGroup) { // We're in a complex type.
4306
4306
  formGroupFn(aControl);
4307
4307
  }
4308
- else if (aControl instanceof i2.FormControl) { // FormControl
4308
+ else if (aControl instanceof i1$2.FormControl) { // FormControl
4309
4309
  controlFn(aControl);
4310
4310
  }
4311
4311
  };
@@ -4751,19 +4751,19 @@
4751
4751
  FormValidatorsService.addValidators = function (caseField, control) {
4752
4752
  if (caseField.display_context === Constants.MANDATORY &&
4753
4753
  FormValidatorsService.CUSTOM_VALIDATED_TYPES.indexOf(caseField.field_type.type) === -1) {
4754
- var validators = [i2.Validators.required];
4754
+ var validators = [i1$2.Validators.required];
4755
4755
  if (caseField.field_type.type === 'Text') {
4756
4756
  if (caseField.field_type.regular_expression) {
4757
- validators.push(i2.Validators.pattern(caseField.field_type.regular_expression));
4757
+ validators.push(i1$2.Validators.pattern(caseField.field_type.regular_expression));
4758
4758
  }
4759
4759
  else {
4760
4760
  validators.push(this.emptyValidator());
4761
4761
  }
4762
4762
  if (caseField.field_type.min && (typeof caseField.field_type.min === 'number')) {
4763
- validators.push(i2.Validators.minLength(caseField.field_type.min));
4763
+ validators.push(i1$2.Validators.minLength(caseField.field_type.min));
4764
4764
  }
4765
4765
  if (caseField.field_type.max && (typeof caseField.field_type.max === 'number')) {
4766
- validators.push(i2.Validators.maxLength(caseField.field_type.max));
4766
+ validators.push(i1$2.Validators.maxLength(caseField.field_type.max));
4767
4767
  }
4768
4768
  }
4769
4769
  if (control.validator) {
@@ -4833,7 +4833,7 @@
4833
4833
  // No validators by default, override this method to add validators to the form control
4834
4834
  };
4835
4835
  AbstractFormFieldComponent.prototype.addControlToParent = function (control, parent, replace) {
4836
- if (parent instanceof i2.FormArray) {
4836
+ if (parent instanceof i1$2.FormArray) {
4837
4837
  return this.addControlToFormArray(control, parent, replace);
4838
4838
  }
4839
4839
  return this.addControlToFormGroup(control, parent, replace);
@@ -4949,7 +4949,7 @@
4949
4949
  this.handleFormGroup = function (formGroup) {
4950
4950
  _this.evaluateControl(formGroup);
4951
4951
  var groupControl = formGroup;
4952
- if (formGroup.get('value') && formGroup.get('value') instanceof i2.FormGroup) { // Complex Field
4952
+ if (formGroup.get('value') && formGroup.get('value') instanceof i1$2.FormGroup) { // Complex Field
4953
4953
  groupControl = formGroup.get('value');
4954
4954
  }
4955
4955
  else if (formGroup.controls) {
@@ -4971,7 +4971,7 @@
4971
4971
  }
4972
4972
  ConditionalShowFormDirective.prototype.ngOnInit = function () {
4973
4973
  if (!this.formGroup) {
4974
- this.formGroup = new i2.FormGroup({});
4974
+ this.formGroup = new i1$2.FormGroup({});
4975
4975
  }
4976
4976
  };
4977
4977
  /**
@@ -6401,7 +6401,7 @@
6401
6401
  LabelSubstitutorDirective.prototype.ngOnInit = function () {
6402
6402
  this.initialLabel = this.caseField.label;
6403
6403
  this.initialHintText = this.caseField.hint_text;
6404
- this.formGroup = this.formGroup || new i2.FormGroup({});
6404
+ this.formGroup = this.formGroup || new i1$2.FormGroup({});
6405
6405
  var fields = this.getReadOnlyAndFormFields();
6406
6406
  if (this.shouldSubstitute('label')) {
6407
6407
  this.caseField.label = this.resolvePlaceholders(fields, this.caseField.label);
@@ -6950,7 +6950,7 @@
6950
6950
  // Do not set any headers, such as "Accept" or "Content-Type", with null values; this is not permitted with the
6951
6951
  // Angular HttpClient in @angular/common/http. Just create and pass a new HttpHeaders object. Angular will add the
6952
6952
  // correct headers and values automatically
6953
- var headers = new i1$2.HttpHeaders();
6953
+ var headers = new i1$3.HttpHeaders();
6954
6954
  return this.http
6955
6955
  .post(url, formData, { headers: headers, observe: 'body' })
6956
6956
  .pipe(operators.delay(DocumentManagementService.RESPONSE_DELAY));
@@ -7056,7 +7056,7 @@
7056
7056
  DraftService.prototype.createDraft = function (ctid, eventData) {
7057
7057
  var _this = this;
7058
7058
  var saveDraftEndpoint = this.appConfig.getCreateOrUpdateDraftsUrl(ctid);
7059
- var headers = new i1$2.HttpHeaders()
7059
+ var headers = new i1$3.HttpHeaders()
7060
7060
  .set('experimental', 'true')
7061
7061
  .set('Accept', DraftService.V2_MEDIATYPE_DRAFT_CREATE)
7062
7062
  .set('Content-Type', 'application/json');
@@ -7070,7 +7070,7 @@
7070
7070
  DraftService.prototype.updateDraft = function (ctid, draftId, eventData) {
7071
7071
  var _this = this;
7072
7072
  var saveDraftEndpoint = this.appConfig.getCreateOrUpdateDraftsUrl(ctid) + draftId;
7073
- var headers = new i1$2.HttpHeaders()
7073
+ var headers = new i1$3.HttpHeaders()
7074
7074
  .set('experimental', 'true')
7075
7075
  .set('Accept', DraftService.V2_MEDIATYPE_DRAFT_UPDATE)
7076
7076
  .set('Content-Type', 'application/json');
@@ -7084,7 +7084,7 @@
7084
7084
  DraftService.prototype.getDraft = function (draftId) {
7085
7085
  var _this = this;
7086
7086
  var url = this.appConfig.getViewOrDeleteDraftsUrl(draftId.slice(DRAFT_PREFIX.length));
7087
- var headers = new i1$2.HttpHeaders()
7087
+ var headers = new i1$3.HttpHeaders()
7088
7088
  .set('experimental', 'true')
7089
7089
  .set('Accept', DraftService.V2_MEDIATYPE_DRAFT_READ)
7090
7090
  .set('Content-Type', 'application/json');
@@ -7098,7 +7098,7 @@
7098
7098
  DraftService.prototype.deleteDraft = function (draftId) {
7099
7099
  var _this = this;
7100
7100
  var url = this.appConfig.getViewOrDeleteDraftsUrl(draftId.slice(DRAFT_PREFIX.length));
7101
- var headers = new i1$2.HttpHeaders()
7101
+ var headers = new i1$3.HttpHeaders()
7102
7102
  .set('experimental', 'true')
7103
7103
  .set('Accept', DraftService.V2_MEDIATYPE_DRAFT_DELETE)
7104
7104
  .set('Content-Type', 'application/json');
@@ -7201,7 +7201,7 @@
7201
7201
  if (inArray && group.controls['value']) {
7202
7202
  group = group.controls['value'];
7203
7203
  }
7204
- if (group && group.constructor && i2.FormArray.name === group.constructor.name) {
7204
+ if (group && group.constructor && i1$2.FormArray.name === group.constructor.name) {
7205
7205
  inArray = true;
7206
7206
  }
7207
7207
  else {
@@ -7257,11 +7257,11 @@
7257
7257
  }
7258
7258
  BannersService.prototype.getBanners = function (jurisdictionReferences) {
7259
7259
  var url = this.appConfig.getBannersUrl();
7260
- var headers = new i1$2.HttpHeaders()
7260
+ var headers = new i1$3.HttpHeaders()
7261
7261
  .set('experimental', 'true')
7262
7262
  .set('Accept', BannersService.V2_MEDIATYPE_BANNERS)
7263
7263
  .set('Content-Type', 'application/json');
7264
- var params = new i1$2.HttpParams();
7264
+ var params = new i1$3.HttpParams();
7265
7265
  jurisdictionReferences.forEach(function (reference) { return params = params.append('ids', reference); });
7266
7266
  return this.httpService
7267
7267
  .get(url, { params: params, headers: headers, observe: 'body' })
@@ -7353,7 +7353,7 @@
7353
7353
  }
7354
7354
  ProfileService.prototype.get = function () {
7355
7355
  var url = this.appConfig.getCaseDataUrl() + ProfileService.URL;
7356
- var headers = new i1$2.HttpHeaders()
7356
+ var headers = new i1$3.HttpHeaders()
7357
7357
  .set('experimental', 'true')
7358
7358
  .set('Accept', ProfileService.V2_MEDIATYPE_USER_PROFILE)
7359
7359
  .set('Content-Type', 'application/json');
@@ -7413,7 +7413,7 @@
7413
7413
  var e_1, _a, e_2, _b;
7414
7414
  // TODO: This should probably be the now built-in URLSearchParams but it
7415
7415
  // requires a bigger refactor and there are bigger fish to fry right now.
7416
- var params = new i1$2.HttpParams();
7416
+ var params = new i1$3.HttpParams();
7417
7417
  if (view) {
7418
7418
  params = params.set('view', view);
7419
7419
  }
@@ -7563,7 +7563,7 @@
7563
7563
  SearchService.prototype.getSearchInputs = function (jurisdictionId, caseTypeId) {
7564
7564
  var _this = this;
7565
7565
  var url = this.getSearchInputUrl(caseTypeId);
7566
- var headers = new i1$2.HttpHeaders()
7566
+ var headers = new i1$3.HttpHeaders()
7567
7567
  .set('experimental', 'true')
7568
7568
  .set('Accept', SearchService.V2_MEDIATYPE_SEARCH_INPUTS)
7569
7569
  .set('Content-Type', 'application/json');
@@ -7679,7 +7679,7 @@
7679
7679
  WorkbasketInputFilterService.prototype.getWorkbasketInputs = function (jurisdictionId, caseTypeId) {
7680
7680
  var _this = this;
7681
7681
  var url = this.getWorkbasketInputUrl(caseTypeId);
7682
- var headers = new i1$2.HttpHeaders()
7682
+ var headers = new i1$3.HttpHeaders()
7683
7683
  .set('experimental', 'true')
7684
7684
  .set('Accept', WorkbasketInputFilterService.V2_MEDIATYPE_WORKBASKET_INPUT_DETAILS)
7685
7685
  .set('Content-Type', 'application/json');
@@ -8431,7 +8431,7 @@
8431
8431
  CasesService.prototype.getCaseViewV2 = function (caseId) {
8432
8432
  var _this = this;
8433
8433
  var url = this.appConfig.getCaseDataUrl() + "/internal/cases/" + caseId;
8434
- var headers = new i1$2.HttpHeaders()
8434
+ var headers = new i1$3.HttpHeaders()
8435
8435
  .set('experimental', 'true')
8436
8436
  .set('Accept', CasesService.V2_MEDIATYPE_CASE_VIEW)
8437
8437
  .set('Content-Type', 'application/json');
@@ -8447,7 +8447,7 @@
8447
8447
  var _this = this;
8448
8448
  ignoreWarning = undefined !== ignoreWarning ? ignoreWarning : 'false';
8449
8449
  var url = this.buildEventTriggerUrl(caseTypeId, eventTriggerId, caseId, ignoreWarning);
8450
- var headers = new i1$2.HttpHeaders();
8450
+ var headers = new i1$3.HttpHeaders();
8451
8451
  headers = headers.set('experimental', 'true');
8452
8452
  headers = headers.set('Content-Type', 'application/json');
8453
8453
  if (Draft.isDraft(caseId)) {
@@ -8472,7 +8472,7 @@
8472
8472
  var _this = this;
8473
8473
  var caseId = caseDetails.case_id;
8474
8474
  var url = this.appConfig.getCaseDataUrl() + ("/cases/" + caseId + "/events");
8475
- var headers = new i1$2.HttpHeaders()
8475
+ var headers = new i1$3.HttpHeaders()
8476
8476
  .set('experimental', 'true')
8477
8477
  .set('Accept', CasesService.V2_MEDIATYPE_CREATE_EVENT)
8478
8478
  .set('Content-Type', 'application/json');
@@ -8488,7 +8488,7 @@
8488
8488
  var pageIdString = pageId ? '?pageId=' + pageId : '';
8489
8489
  var url = this.appConfig.getCaseDataUrl()
8490
8490
  + ("/case-types/" + ctid + "/validate" + pageIdString);
8491
- var headers = new i1$2.HttpHeaders()
8491
+ var headers = new i1$3.HttpHeaders()
8492
8492
  .set('experimental', 'true')
8493
8493
  .set('Accept', CasesService.V2_MEDIATYPE_CASE_DATA_VALIDATE)
8494
8494
  .set('Content-Type', 'application/json');
@@ -8507,7 +8507,7 @@
8507
8507
  }
8508
8508
  var url = this.appConfig.getCaseDataUrl()
8509
8509
  + ("/case-types/" + ctid + "/cases?ignore-warning=" + ignoreWarning);
8510
- var headers = new i1$2.HttpHeaders()
8510
+ var headers = new i1$3.HttpHeaders()
8511
8511
  .set('experimental', 'true')
8512
8512
  .set('Accept', CasesService.V2_MEDIATYPE_CREATE_CASE)
8513
8513
  .set('Content-Type', 'application/json');
@@ -8523,7 +8523,7 @@
8523
8523
  var url = this.appConfig.getCaseDataUrl()
8524
8524
  + ("/cases/" + caseId)
8525
8525
  + "/documents";
8526
- var headers = new i1$2.HttpHeaders()
8526
+ var headers = new i1$3.HttpHeaders()
8527
8527
  .set('experimental', 'true')
8528
8528
  .set('Accept', CasesService.V2_MEDIATYPE_CASE_DOCUMENTS)
8529
8529
  .set('Content-Type', 'application/json');
@@ -9308,9 +9308,9 @@
9308
9308
  this.sessionStorageService.setItem('eventUrl', this.router.url);
9309
9309
  }
9310
9310
  this.form = this.fb.group({
9311
- data: new i2.FormGroup({}),
9311
+ data: new i1$2.FormGroup({}),
9312
9312
  event: this.fb.group({
9313
- id: [this.eventTrigger.id, i2.Validators.required],
9313
+ id: [this.eventTrigger.id, i1$2.Validators.required],
9314
9314
  summary: [''],
9315
9315
  description: ['']
9316
9316
  })
@@ -9376,7 +9376,7 @@
9376
9376
  }());
9377
9377
  CaseEditComponent.ORIGIN_QUERY_PARAM = 'origin';
9378
9378
  CaseEditComponent.ALERT_MESSAGE = 'Page is being refreshed so you will be redirected to the first page of this event.';
9379
- CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FieldsUtils), i0__namespace.ɵɵdirectiveInject(FieldsPurger), i0__namespace.ɵɵdirectiveInject(ConditionalShowRegistrarService), i0__namespace.ɵɵdirectiveInject(WizardFactoryService), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(WindowService)); };
9379
+ CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FieldsUtils), i0__namespace.ɵɵdirectiveInject(FieldsPurger), i0__namespace.ɵɵdirectiveInject(ConditionalShowRegistrarService), i0__namespace.ɵɵdirectiveInject(WizardFactoryService), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(WindowService)); };
9380
9380
  CaseEditComponent.ɵcmp = i0__namespace.ɵɵ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__namespace.ɵɵProvidersFeature([GreyBarService])], decls: 1, vars: 0, template: function CaseEditComponent_Template(rf, ctx) {
9381
9381
  if (rf & 1) {
9382
9382
  i0__namespace.ɵɵelement(0, "router-outlet");
@@ -9391,7 +9391,7 @@
9391
9391
  styleUrls: ['../case-edit.scss'],
9392
9392
  providers: [GreyBarService]
9393
9393
  }]
9394
- }], function () { return [{ type: i2__namespace.FormBuilder }, { type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }, { type: FieldsUtils }, { type: FieldsPurger }, { type: ConditionalShowRegistrarService }, { type: WizardFactoryService }, { type: SessionStorageService }, { type: WindowService }]; }, { eventTrigger: [{
9394
+ }], function () { return [{ type: i1__namespace$3.FormBuilder }, { type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }, { type: FieldsUtils }, { type: FieldsPurger }, { type: ConditionalShowRegistrarService }, { type: WizardFactoryService }, { type: SessionStorageService }, { type: WindowService }]; }, { eventTrigger: [{
9395
9395
  type: i0.Input
9396
9396
  }], submit: [{
9397
9397
  type: i0.Input
@@ -9474,7 +9474,7 @@
9474
9474
  this.caseEdit = caseEdit;
9475
9475
  this.router = router;
9476
9476
  this.triggerText = 'Close and Return to case details';
9477
- this.formGroup = new i2.FormControl();
9477
+ this.formGroup = new i1$2.FormControl();
9478
9478
  this.eventTrigger = this.caseEdit.eventTrigger;
9479
9479
  this.editForm = this.caseEdit.form;
9480
9480
  this.caseFields = this.getCaseFields();
@@ -9721,7 +9721,7 @@
9721
9721
  };
9722
9722
  return SaveOrDiscardDialogComponent;
9723
9723
  }());
9724
- SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialogRef)); };
9724
+ SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialogRef)); };
9725
9725
  SaveOrDiscardDialogComponent.ɵcmp = i0__namespace.ɵɵ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) {
9726
9726
  if (rf & 1) {
9727
9727
  i0__namespace.ɵɵelementStart(0, "div");
@@ -9762,11 +9762,11 @@
9762
9762
  templateUrl: './save-or-discard-dialog.component.html',
9763
9763
  styleUrls: ['../action-dialog.component.scss']
9764
9764
  }]
9765
- }], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
9765
+ }], function () { return [{ type: i1__namespace$4.MatDialogRef }]; }, null);
9766
9766
  })();
9767
9767
 
9768
9768
  function initDialog() {
9769
- var dialogConfig = new i1$3.MatDialogConfig();
9769
+ var dialogConfig = new i1$4.MatDialogConfig();
9770
9770
  dialogConfig.disableClose = true;
9771
9771
  dialogConfig.autoFocus = true;
9772
9772
  dialogConfig.ariaLabel = 'Label';
@@ -10516,7 +10516,7 @@
10516
10516
  CaseEditPageComponent.TRIGGER_TEXT_START = 'Continue';
10517
10517
  CaseEditPageComponent.TRIGGER_TEXT_SAVE = 'Save and continue';
10518
10518
  CaseEditPageComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Continue';
10519
- CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
10519
+ CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
10520
10520
  CaseEditPageComponent.ɵcmp = i0__namespace.ɵɵ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) {
10521
10521
  if (rf & 1) {
10522
10522
  i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
@@ -10562,7 +10562,7 @@
10562
10562
  templateUrl: 'case-edit-page.html',
10563
10563
  styleUrls: ['./case-edit-page.scss']
10564
10564
  }]
10565
- }], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$3.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }]; }, null);
10565
+ }], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$4.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }]; }, null);
10566
10566
  })();
10567
10567
 
10568
10568
  var CallbackErrorsContext = /** @class */ (function () {
@@ -11579,16 +11579,16 @@
11579
11579
  function WriteAddressFieldComponent(addressesService, isCompoundPipe) {
11580
11580
  var _this = _super.call(this) || this;
11581
11581
  _this.isCompoundPipe = isCompoundPipe;
11582
- _this.addressFormGroup = new i2.FormGroup({});
11582
+ _this.addressFormGroup = new i1$2.FormGroup({});
11583
11583
  _this.missingPostcode = false;
11584
11584
  _this.addressesService = addressesService;
11585
11585
  return _this;
11586
11586
  }
11587
11587
  WriteAddressFieldComponent.prototype.ngOnInit = function () {
11588
11588
  if (!this.isComplexWithHiddenFields()) {
11589
- this.postcode = new i2.FormControl('');
11589
+ this.postcode = new i1$2.FormControl('');
11590
11590
  this.addressFormGroup.addControl('postcode', this.postcode);
11591
- this.addressList = new i2.FormControl('');
11591
+ this.addressList = new i1$2.FormControl('');
11592
11592
  this.addressFormGroup.addControl('address', this.addressList);
11593
11593
  }
11594
11594
  };
@@ -11740,7 +11740,7 @@
11740
11740
  }
11741
11741
  AbstractFieldReadComponent.prototype.ngOnInit = function () {
11742
11742
  if (!this.caseField.metadata) {
11743
- this.registerControl(new i2.FormControl(this.caseField.value));
11743
+ this.registerControl(new i1$2.FormControl(this.caseField.value));
11744
11744
  }
11745
11745
  };
11746
11746
  return AbstractFieldReadComponent;
@@ -12080,8 +12080,11 @@
12080
12080
 
12081
12081
  function ReadCaseFlagFieldComponent_ng_container_1_Template(rf, ctx) {
12082
12082
  if (rf & 1) {
12083
+ var _r3_1 = i0__namespace.ɵɵgetCurrentView();
12083
12084
  i0__namespace.ɵɵelementContainerStart(0);
12084
- i0__namespace.ɵɵelement(1, "ccd-case-flag-summary-list", 3);
12085
+ i0__namespace.ɵɵelementStart(1, "ccd-case-flag-summary-list", 3);
12086
+ i0__namespace.ɵɵlistener("changeButtonEmitter", function ReadCaseFlagFieldComponent_ng_container_1_Template_ccd_case_flag_summary_list_changeButtonEmitter_1_listener($event) { i0__namespace.ɵɵrestoreView(_r3_1); var ctx_r2 = i0__namespace.ɵɵnextContext(); return ctx_r2.navigateBackToForm($event); });
12087
+ i0__namespace.ɵɵelementEnd();
12085
12088
  i0__namespace.ɵɵelementContainerEnd();
12086
12089
  }
12087
12090
  if (rf & 2) {
@@ -12095,8 +12098,8 @@
12095
12098
  i0__namespace.ɵɵelement(0, "ccd-case-flag-table", 8);
12096
12099
  }
12097
12100
  if (rf & 2) {
12098
- var flagData_r4 = i0__namespace.ɵɵnextContext().$implicit;
12099
- i0__namespace.ɵɵproperty("tableCaption", flagData_r4.flags.partyName)("flagData", flagData_r4)("firstColumnHeader", "Party level flags");
12101
+ var flagData_r6 = i0__namespace.ɵɵnextContext().$implicit;
12102
+ i0__namespace.ɵɵproperty("tableCaption", flagData_r6.flags.partyName)("flagData", flagData_r6)("firstColumnHeader", "Party level flags");
12100
12103
  }
12101
12104
  }
12102
12105
  function ReadCaseFlagFieldComponent_ng_container_2_div_3_Template(rf, ctx) {
@@ -12106,9 +12109,9 @@
12106
12109
  i0__namespace.ɵɵelementEnd();
12107
12110
  }
12108
12111
  if (rf & 2) {
12109
- var flagData_r4 = ctx.$implicit;
12112
+ var flagData_r6 = ctx.$implicit;
12110
12113
  i0__namespace.ɵɵadvance(1);
12111
- i0__namespace.ɵɵproperty("ngIf", flagData_r4.flags.partyName);
12114
+ i0__namespace.ɵɵproperty("ngIf", flagData_r6.flags.partyName);
12112
12115
  }
12113
12116
  }
12114
12117
  function ReadCaseFlagFieldComponent_ng_container_2_div_4_Template(rf, ctx) {
@@ -12118,9 +12121,9 @@
12118
12121
  i0__namespace.ɵɵelementEnd();
12119
12122
  }
12120
12123
  if (rf & 2) {
12121
- var ctx_r3 = i0__namespace.ɵɵnextContext(2);
12124
+ var ctx_r5 = i0__namespace.ɵɵnextContext(2);
12122
12125
  i0__namespace.ɵɵadvance(1);
12123
- i0__namespace.ɵɵproperty("tableCaption", "Case level flags")("flagData", ctx_r3.caseLevelCaseFlagData)("firstColumnHeader", "Case flags");
12126
+ i0__namespace.ɵɵproperty("tableCaption", "Case level flags")("flagData", ctx_r5.caseLevelCaseFlagData)("firstColumnHeader", "Case flags");
12124
12127
  }
12125
12128
  }
12126
12129
  function ReadCaseFlagFieldComponent_ng_container_2_Template(rf, ctx) {
@@ -12143,9 +12146,10 @@
12143
12146
  }
12144
12147
  var ReadCaseFlagFieldComponent = /** @class */ (function (_super) {
12145
12148
  __extends(ReadCaseFlagFieldComponent, _super);
12146
- function ReadCaseFlagFieldComponent(route) {
12149
+ function ReadCaseFlagFieldComponent(route, router) {
12147
12150
  var _this = _super.call(this) || this;
12148
12151
  _this.route = route;
12152
+ _this.router = router;
12149
12153
  _this.paletteContext = exports.PaletteContext;
12150
12154
  _this.caseLevelCaseFlagsFieldId = 'caseFlags';
12151
12155
  _this.caseNameMissing = 'Case name missing';
@@ -12186,6 +12190,8 @@
12186
12190
  // which the new flag has been added
12187
12191
  if (flagLauncherComponent.caseField.display_context_parameter === this.createMode &&
12188
12192
  flagLauncherComponent.selectedFlagsLocation) {
12193
+ // this.flagLocation = flagLauncherComponent.selectedFlagsLocation;
12194
+ this.pathToFlagsFormGroup = flagLauncherComponent.selectedFlagsLocation.pathToFlagsFormGroup;
12189
12195
  this.flagForSummaryDisplay = this.extractNewFlagToFlagDetailDisplayObject(flagLauncherComponent.selectedFlagsLocation);
12190
12196
  // Set the display mode for the "Review flag details" summary page
12191
12197
  this.summaryListDisplayMode = exports.CaseFlagSummaryListDisplayMode.CREATE;
@@ -12220,10 +12226,18 @@
12220
12226
  }
12221
12227
  return null;
12222
12228
  };
12229
+ ReadCaseFlagFieldComponent.prototype.navigateBackToForm = function (fieldState) {
12230
+ this.router.navigate(['../createCaseFlagCaseFlagFormPage'], {
12231
+ relativeTo: this.route,
12232
+ state: {
12233
+ fieldState: fieldState,
12234
+ }
12235
+ });
12236
+ };
12223
12237
  return ReadCaseFlagFieldComponent;
12224
12238
  }(AbstractFieldReadComponent));
12225
- ReadCaseFlagFieldComponent.ɵfac = function ReadCaseFlagFieldComponent_Factory(t) { return new (t || ReadCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute)); };
12226
- ReadCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadCaseFlagFieldComponent, selectors: [["ccd-read-case-flag-field"]], features: [i0__namespace.ɵɵ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) {
12239
+ ReadCaseFlagFieldComponent.ɵfac = function ReadCaseFlagFieldComponent_Factory(t) { return new (t || ReadCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router)); };
12240
+ ReadCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadCaseFlagFieldComponent, selectors: [["ccd-read-case-flag-field"]], features: [i0__namespace.ɵɵ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) {
12227
12241
  if (rf & 1) {
12228
12242
  i0__namespace.ɵɵelementContainerStart(0, 0);
12229
12243
  i0__namespace.ɵɵtemplate(1, ReadCaseFlagFieldComponent_ng_container_1_Template, 2, 2, "ng-container", 1);
@@ -12244,7 +12258,24 @@
12244
12258
  templateUrl: './read-case-flag-field.component.html',
12245
12259
  styleUrls: ['./read-case-flag-field.component.scss']
12246
12260
  }]
12247
- }], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
12261
+ }], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }]; }, null);
12262
+ })();
12263
+
12264
+ var CaseFlagStateService = /** @class */ (function () {
12265
+ function CaseFlagStateService() {
12266
+ this.formGroup = new i1$2.FormGroup({});
12267
+ }
12268
+ CaseFlagStateService.prototype.resetCache = function () {
12269
+ this.formGroup = new i1$2.FormGroup({});
12270
+ };
12271
+ return CaseFlagStateService;
12272
+ }());
12273
+ CaseFlagStateService.ɵfac = function CaseFlagStateService_Factory(t) { return new (t || CaseFlagStateService)(); };
12274
+ CaseFlagStateService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: CaseFlagStateService, factory: CaseFlagStateService.ɵfac });
12275
+ (function () {
12276
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFlagStateService, [{
12277
+ type: i0.Injectable
12278
+ }], null, null);
12248
12279
  })();
12249
12280
 
12250
12281
  function WriteCaseFlagFieldComponent_div_0_div_3_Template(rf, ctx) {
@@ -12324,7 +12355,7 @@
12324
12355
  if (rf & 2) {
12325
12356
  var ctx_r9 = i0__namespace.ɵɵnextContext(2);
12326
12357
  i0__namespace.ɵɵadvance(1);
12327
- i0__namespace.ɵɵproperty("formGroup", ctx_r9.caseFlagParentFormGroup)("languages", ctx_r9.listOfValues)("flagCode", ctx_r9.flagCode);
12358
+ i0__namespace.ɵɵproperty("formGroup", ctx_r9.caseFlagParentFormGroup)("languages", ctx_r9.flagType.listOfValues)("flagCode", ctx_r9.flagType.flagCode);
12328
12359
  }
12329
12360
  }
12330
12361
  function WriteCaseFlagFieldComponent_div_1_ng_container_7_Template(rf, ctx) {
@@ -12428,15 +12459,15 @@
12428
12459
  }
12429
12460
  var WriteCaseFlagFieldComponent = /** @class */ (function (_super) {
12430
12461
  __extends(WriteCaseFlagFieldComponent, _super);
12431
- function WriteCaseFlagFieldComponent(route, caseEditDataService) {
12462
+ function WriteCaseFlagFieldComponent(route, caseEditDataService, location, caseFlagStateService) {
12432
12463
  var _this = _super.call(this) || this;
12433
12464
  _this.route = route;
12434
12465
  _this.caseEditDataService = caseEditDataService;
12466
+ _this.location = location;
12467
+ _this.caseFlagStateService = caseFlagStateService;
12435
12468
  _this.caseFlagFieldState = exports.CaseFlagFieldState;
12436
12469
  _this.errorMessages = [];
12437
- _this.caseFlagParentFormGroup = new i2.FormGroup({});
12438
12470
  _this.flagCommentsOptional = false;
12439
- _this.listOfValues = null;
12440
12471
  _this.allCaseFlagStagesCompleted = false;
12441
12472
  _this.updateMode = '#ARGUMENT(UPDATE)';
12442
12473
  // Code for "Other" flag type as defined in Reference Data
@@ -12444,8 +12475,29 @@
12444
12475
  _this.caseNameMissing = 'Case name missing';
12445
12476
  return _this;
12446
12477
  }
12478
+ Object.defineProperty(WriteCaseFlagFieldComponent.prototype, "flagType", {
12479
+ get: function () {
12480
+ var _a;
12481
+ return (_a = this.caseFlagParentFormGroup) === null || _a === void 0 ? void 0 : _a.value.flagType;
12482
+ },
12483
+ enumerable: false,
12484
+ configurable: true
12485
+ });
12486
+ Object.defineProperty(WriteCaseFlagFieldComponent.prototype, "selectedFlagsLocation", {
12487
+ get: function () {
12488
+ var _a;
12489
+ return (_a = this.caseFlagParentFormGroup) === null || _a === void 0 ? void 0 : _a.value.selectedLocation;
12490
+ },
12491
+ enumerable: false,
12492
+ configurable: true
12493
+ });
12447
12494
  WriteCaseFlagFieldComponent.prototype.ngOnInit = function () {
12448
12495
  var _this = this;
12496
+ var _a, _b;
12497
+ if (!(((_a = this.location.getState()) === null || _a === void 0 ? void 0 : _a['fieldState']) >= 0)) {
12498
+ this.caseFlagStateService.resetCache();
12499
+ }
12500
+ this.caseFlagParentFormGroup = this.caseFlagStateService.formGroup;
12449
12501
  this.caseEditDataService.clearFormValidationErrors();
12450
12502
  // Check for existing FlagLauncher control in parent and remove it - this is the only way to ensure its invalidity
12451
12503
  // is set correctly at the start, when the component is reloaded and the control is re-registered. Otherwise, the
@@ -12454,7 +12506,7 @@
12454
12506
  this.formGroup.removeControl(this.caseField.id);
12455
12507
  }
12456
12508
  // From this point, this.formGroup refers to the FormGroup for the FlagLauncher field, not the parent FormGroup
12457
- this.formGroup = this.registerControl(new i2.FormGroup({}, {
12509
+ this.formGroup = this.registerControl(new i1$2.FormGroup({}, {
12458
12510
  validators: function (_) {
12459
12511
  if (!_this.allCaseFlagStagesCompleted) {
12460
12512
  // Return an error to mark the FormGroup as invalid if not all Case Flag stages have been completed
@@ -12479,12 +12531,17 @@
12479
12531
  // Set boolean indicating the display_context_parameter is "update"
12480
12532
  this.isDisplayContextParameterUpdate =
12481
12533
  this.setDisplayContextParameterUpdate((this.route.snapshot.data.eventTrigger.case_fields));
12482
- // Set starting field state
12483
- this.fieldState = this.isDisplayContextParameterUpdate ? exports.CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : exports.CaseFlagFieldState.FLAG_LOCATION;
12534
+ // Set starting field state if fieldState not the right value
12535
+ if (!(((_b = this.location.getState()) === null || _b === void 0 ? void 0 : _b['fieldState']) >= 0)) {
12536
+ this.fieldState = this.isDisplayContextParameterUpdate ? exports.CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : exports.CaseFlagFieldState.FLAG_LOCATION;
12537
+ }
12538
+ else {
12539
+ this.fieldState = this.location.getState()['fieldState'];
12540
+ }
12484
12541
  // Get case title, to be used by child components
12485
- this.caseEditDataService.caseTitle$.subscribe({
12542
+ this.caseTitleSubscription = this.caseEditDataService.caseTitle$.subscribe({
12486
12543
  next: function (title) {
12487
- _this.caseTitle = title.length > 0 ? title : _this.caseNameMissing;
12544
+ _this.caseTitle = (title === null || title === void 0 ? void 0 : title.length) > 0 ? title : _this.caseNameMissing;
12488
12545
  }
12489
12546
  });
12490
12547
  }
@@ -12495,31 +12552,6 @@
12495
12552
  };
12496
12553
  WriteCaseFlagFieldComponent.prototype.onCaseFlagStateEmitted = function (caseFlagState) {
12497
12554
  this.caseEditDataService.clearFormValidationErrors();
12498
- // If the current state is CaseFlagFieldState.FLAG_LOCATION and a flag location (a Flags instance) has been selected,
12499
- // set the parent Case Flag FormGroup for this component's children by using the provided pathToFlagsFormGroup, and
12500
- // set the selected flag location on this component
12501
- if (caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_LOCATION
12502
- && caseFlagState.selectedFlagsLocation
12503
- && caseFlagState.selectedFlagsLocation.pathToFlagsFormGroup) {
12504
- this.setCaseFlagParentFormGroup(caseFlagState.selectedFlagsLocation.pathToFlagsFormGroup);
12505
- this.selectedFlagsLocation = caseFlagState.selectedFlagsLocation;
12506
- }
12507
- // If the current state is CaseFlagFieldState.FLAG_TYPE, cache the flag name, path, hearing relevant indicator, code,
12508
- // and "list of values" (currently applicable to language flag types)
12509
- if (caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_TYPE) {
12510
- this.flagName = caseFlagState.flagName;
12511
- this.flagPath = caseFlagState.flagPath;
12512
- this.hearingRelevantFlag = caseFlagState.hearingRelevantFlag;
12513
- this.flagCode = caseFlagState.flagCode;
12514
- this.listOfValues = caseFlagState.listOfValues;
12515
- }
12516
- // If the current state is CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS and a flag has been selected, set the parent
12517
- // Case Flag FormGroup for this component's children by using the provided pathToFlagsFormGroup
12518
- if (caseFlagState.currentCaseFlagFieldState === exports.CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS
12519
- && caseFlagState.selectedFlag
12520
- && caseFlagState.selectedFlag.pathToFlagsFormGroup) {
12521
- this.setCaseFlagParentFormGroup(caseFlagState.selectedFlag.pathToFlagsFormGroup);
12522
- }
12523
12555
  this.errorMessages = caseFlagState.errorMessages;
12524
12556
  this.selectedFlag = caseFlagState.selectedFlag;
12525
12557
  // Validation succeeded; proceed to next state or final review stage ("Check your answers")
@@ -12539,11 +12571,12 @@
12539
12571
  }
12540
12572
  };
12541
12573
  WriteCaseFlagFieldComponent.prototype.proceedToNextState = function () {
12574
+ var _a;
12542
12575
  if (!this.isAtFinalState()) {
12543
12576
  // Skip the "language interpreter" state if current state is CaseFlagFieldState.FLAG_TYPE and the flag type doesn't
12544
12577
  // have a "list of values" - currently, this is present only for those flag types that require language interpreter
12545
12578
  // selection
12546
- if (this.fieldState === exports.CaseFlagFieldState.FLAG_TYPE && !this.listOfValues) {
12579
+ if (this.fieldState === exports.CaseFlagFieldState.FLAG_TYPE && !((_a = this.flagType) === null || _a === void 0 ? void 0 : _a.listOfValues)) {
12547
12580
  this.fieldState = exports.CaseFlagFieldState.FLAG_COMMENTS;
12548
12581
  }
12549
12582
  else {
@@ -12583,10 +12616,11 @@
12583
12616
  }
12584
12617
  }
12585
12618
  });
12586
- var flagsCaseFieldValue = this.selectedFlagsLocation.caseField.value;
12619
+ var path = this.selectedFlagsLocation.pathToFlagsFormGroup;
12620
+ var flagDataRef = this.flagsData.find(function (item) { return item.pathToFlagsFormGroup === path; });
12621
+ var flagsCaseFieldValue = flagDataRef.caseField.value;
12587
12622
  // Use the pathToFlagsFormGroup property from the selected flag location to drill down to the correct part of the
12588
12623
  // CaseField value to apply changes to
12589
- var path = this.selectedFlagsLocation.pathToFlagsFormGroup;
12590
12624
  // Root-level Flags CaseFields don't have a dot-delimited path - just the CaseField ID itself - so don't drill down
12591
12625
  if (path.indexOf('.') > -1) {
12592
12626
  path.slice(path.indexOf('.') + 1).split('.').forEach(function (part) { return flagsCaseFieldValue = flagsCaseFieldValue[part]; });
@@ -12594,8 +12628,8 @@
12594
12628
  // If the CaseField for the selected flags location has no value, set it to an empty object so it can be populated
12595
12629
  // with flag details
12596
12630
  if (!flagsCaseFieldValue) {
12597
- this.selectedFlagsLocation.caseField.value = {};
12598
- flagsCaseFieldValue = this.selectedFlagsLocation.caseField.value;
12631
+ flagDataRef.caseField.value = {};
12632
+ flagsCaseFieldValue = flagDataRef.caseField.value;
12599
12633
  }
12600
12634
  // Create a details array if one does not exist
12601
12635
  if (!flagsCaseFieldValue.hasOwnProperty('details')) {
@@ -12677,38 +12711,22 @@
12677
12711
  WriteCaseFlagFieldComponent.prototype.onFlagCommentsOptionalEmitted = function (_) {
12678
12712
  this.flagCommentsOptional = true;
12679
12713
  };
12680
- /**
12681
- * Set the parent {@link FormGroup} for this component's children, depending on the `Flags` {@link CaseField} instance
12682
- * to which data should be attached. **Note:** The parent is not _this_ component's `FormGroup` (as might otherwise be
12683
- * expected) because this component is not expected to have a value, given it is used for the empty `FlagLauncher` base
12684
- * field type.
12685
- *
12686
- * @param pathToFlagsFormGroup The dot-delimited string that is the path to the `FormGroup` for a `Flags` instance
12687
- */
12688
- WriteCaseFlagFieldComponent.prototype.setCaseFlagParentFormGroup = function (pathToFlagsFormGroup) {
12689
- this.caseFlagParentFormGroup = this.formGroup.parent.get(pathToFlagsFormGroup);
12690
- };
12691
12714
  WriteCaseFlagFieldComponent.prototype.populateNewFlagDetailInstance = function () {
12715
+ var _a, _b, _c, _d, _e, _f, _g;
12716
+ var formValues = (_a = this.caseFlagParentFormGroup) === null || _a === void 0 ? void 0 : _a.value;
12692
12717
  return {
12693
- name: this.flagName,
12718
+ name: (_b = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _b === void 0 ? void 0 : _b.name,
12694
12719
  // Currently, subTypeValue and subTypeKey are applicable only to language flag types
12695
- subTypeValue: this.caseFlagParentFormGroup.value.languageSearchTerm
12696
- ? this.caseFlagParentFormGroup.value.languageSearchTerm.value
12697
- : this.caseFlagParentFormGroup.value.manualLanguageEntry
12698
- ? this.caseFlagParentFormGroup.value.manualLanguageEntry
12699
- : null,
12720
+ 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,
12700
12721
  // For user-entered (i.e. non-Reference Data) languages, there is no key
12701
- subTypeKey: this.caseFlagParentFormGroup.value.languageSearchTerm
12702
- ? this.caseFlagParentFormGroup.value.languageSearchTerm.key
12703
- : null,
12704
- otherDescription: this.flagCode === this.otherFlagTypeCode && this.caseFlagParentFormGroup.value.otherFlagTypeDescription
12705
- ? this.caseFlagParentFormGroup.value.otherFlagTypeDescription
12706
- : null,
12707
- flagComment: this.caseFlagParentFormGroup.value.flagComments ? this.caseFlagParentFormGroup.value.flagComments : null,
12722
+ subTypeKey: (formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm) ? formValues === null || formValues === void 0 ? void 0 : formValues.languageSearchTerm.key : null,
12723
+ 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)
12724
+ ? formValues === null || formValues === void 0 ? void 0 : formValues.otherFlagTypeDescription : null,
12725
+ flagComment: formValues === null || formValues === void 0 ? void 0 : formValues.flagComments,
12708
12726
  dateTimeCreated: new Date().toISOString(),
12709
- path: this.flagPath,
12710
- hearingRelevant: this.hearingRelevantFlag ? 'Yes' : 'No',
12711
- flagCode: this.flagCode,
12727
+ 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(function (pathValue) { return Object.assign({ id: null, value: pathValue }); })),
12728
+ hearingRelevant: ((_f = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _f === void 0 ? void 0 : _f.hearingRelevantFlag) ? 'Yes' : 'No',
12729
+ flagCode: (_g = formValues === null || formValues === void 0 ? void 0 : formValues.flagType) === null || _g === void 0 ? void 0 : _g.flagCode,
12712
12730
  status: exports.CaseFlagStatus.ACTIVE
12713
12731
  };
12714
12732
  };
@@ -12719,9 +12737,13 @@
12719
12737
  this.formGroup.updateValueAndValidity();
12720
12738
  this.caseEditDataService.setTriggerSubmitEvent(true);
12721
12739
  };
12740
+ WriteCaseFlagFieldComponent.prototype.ngOnDestroy = function () {
12741
+ var _a;
12742
+ (_a = this.caseTitleSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
12743
+ };
12722
12744
  return WriteCaseFlagFieldComponent;
12723
12745
  }(AbstractFieldWriteComponent));
12724
- WriteCaseFlagFieldComponent.ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
12746
+ WriteCaseFlagFieldComponent.ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseEditDataService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location), i0__namespace.ɵɵdirectiveInject(CaseFlagStateService)); };
12725
12747
  WriteCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseFlagFieldComponent, selectors: [["ccd-write-case-flag-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], ["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) {
12726
12748
  if (rf & 1) {
12727
12749
  i0__namespace.ɵɵtemplate(0, WriteCaseFlagFieldComponent_div_0_Template, 4, 1, "div", 0);
@@ -12744,7 +12766,7 @@
12744
12766
  templateUrl: './write-case-flag-field.component.html',
12745
12767
  styleUrls: ['./write-case-flag-field.component.scss']
12746
12768
  }]
12747
- }], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: CaseEditDataService }]; }, null);
12769
+ }], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: CaseEditDataService }, { type: i1__namespace.Location }, { type: CaseFlagStateService }]; }, null);
12748
12770
  })();
12749
12771
 
12750
12772
  function ReadCaseLinkFieldComponent_a_0_Template(rf, ctx) {
@@ -12841,13 +12863,13 @@
12841
12863
  WriteCaseLinkFieldComponent.prototype.ngOnInit = function () {
12842
12864
  var e_1, _a;
12843
12865
  if (this.caseField.value) {
12844
- this.caseLinkGroup = this.registerControl(new i2.FormGroup({
12845
- CaseReference: new i2.FormControl(this.caseField.value.CaseReference, i2.Validators.required),
12866
+ this.caseLinkGroup = this.registerControl(new i1$2.FormGroup({
12867
+ CaseReference: new i1$2.FormControl(this.caseField.value.CaseReference, i1$2.Validators.required),
12846
12868
  }), true);
12847
12869
  }
12848
12870
  else {
12849
- this.caseLinkGroup = this.registerControl(new i2.FormGroup({
12850
- CaseReference: new i2.FormControl(null, i2.Validators.required),
12871
+ this.caseLinkGroup = this.registerControl(new i1$2.FormGroup({
12872
+ CaseReference: new i1$2.FormControl(null, i1$2.Validators.required),
12851
12873
  }), true);
12852
12874
  }
12853
12875
  this.caseReferenceControl = this.caseLinkGroup.controls['CaseReference'];
@@ -12928,7 +12950,7 @@
12928
12950
  i0__namespace.ɵɵadvance(1);
12929
12951
  i0__namespace.ɵɵproperty("id", ctx.id())("formControl", ctx.caseReferenceControl);
12930
12952
  }
12931
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
12953
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
12932
12954
  var ɵWriteCaseLinkFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteCaseLinkFieldComponent);
12933
12955
  (function () {
12934
12956
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteCaseLinkFieldComponent, [{
@@ -13065,7 +13087,7 @@
13065
13087
  };
13066
13088
  return RemoveDialogComponent;
13067
13089
  }());
13068
- RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialogRef)); };
13090
+ RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialogRef)); };
13069
13091
  RemoveDialogComponent.ɵcmp = i0__namespace.ɵɵ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) {
13070
13092
  if (rf & 1) {
13071
13093
  i0__namespace.ɵɵelementStart(0, "div");
@@ -13106,7 +13128,7 @@
13106
13128
  templateUrl: './remove-dialog.component.html',
13107
13129
  styleUrls: ['../action-dialog.component.scss']
13108
13130
  }]
13109
- }], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
13131
+ }], function () { return [{ type: i1__namespace$4.MatDialogRef }]; }, null);
13110
13132
  })();
13111
13133
 
13112
13134
  var _c0$L = ["collectionItem"];
@@ -13230,7 +13252,7 @@
13230
13252
  this.profileSubscription = this.profileNotifier.profile.subscribe(function (_) { return _this.profile = _; });
13231
13253
  }
13232
13254
  this.caseField.value = this.caseField.value || [];
13233
- this.formArray = this.registerControl(new i2.FormArray([]), true);
13255
+ this.formArray = this.registerControl(new i1$2.FormArray([]), true);
13234
13256
  this.formArray['caseField'] = this.caseField;
13235
13257
  this.caseField.value.forEach(function (item, index) {
13236
13258
  var prefix = _this.buildIdPrefix(index);
@@ -13268,13 +13290,13 @@
13268
13290
  group = this.formArray.at(index);
13269
13291
  }
13270
13292
  else {
13271
- group = new i2.FormGroup({});
13293
+ group = new i1$2.FormGroup({});
13272
13294
  }
13273
13295
  var value;
13274
13296
  if (this.isCollectionOfSimpleType(this.caseField)) {
13275
13297
  value = group.get('value');
13276
13298
  if (!value) {
13277
- value = new i2.FormControl(item.value);
13299
+ value = new i1$2.FormControl(item.value);
13278
13300
  // Now add the value FormControl to the outer group.
13279
13301
  group.addControl('value', value);
13280
13302
  }
@@ -13282,7 +13304,7 @@
13282
13304
  else {
13283
13305
  value = group.get('value');
13284
13306
  if (!value) {
13285
- value = new i2.FormGroup({});
13307
+ value = new i1$2.FormGroup({});
13286
13308
  try {
13287
13309
  for (var _b = __values(Object.keys(group.controls)), _c = _b.next(); !_c.done; _c = _b.next()) {
13288
13310
  var key = _c.value;
@@ -13308,7 +13330,7 @@
13308
13330
  // and set up the id and value controls.
13309
13331
  // Also set up an id control if it doesn't yet exist.
13310
13332
  if (!id) {
13311
- id = new i2.FormControl(item.id);
13333
+ id = new i1$2.FormControl(item.id);
13312
13334
  group.addControl('id', id);
13313
13335
  }
13314
13336
  /**
@@ -13324,7 +13346,7 @@
13324
13346
  }
13325
13347
  // Now set up the CaseField and validation.
13326
13348
  var cfid;
13327
- if (value instanceof i2.FormControl) {
13349
+ if (value instanceof i1$2.FormControl) {
13328
13350
  cfid = 'value';
13329
13351
  }
13330
13352
  else {
@@ -13395,7 +13417,7 @@
13395
13417
  };
13396
13418
  WriteCollectionFieldComponent.prototype.getContainer = function (index) {
13397
13419
  var value = this.formArray.at(index).get('value');
13398
- if (value instanceof i2.FormGroup) {
13420
+ if (value instanceof i1$2.FormGroup) {
13399
13421
  return value;
13400
13422
  }
13401
13423
  else {
@@ -13485,7 +13507,7 @@
13485
13507
  };
13486
13508
  WriteCollectionFieldComponent.prototype.openModal = function (i) {
13487
13509
  var _this = this;
13488
- var dialogConfig = new i1$3.MatDialogConfig();
13510
+ var dialogConfig = new i1$4.MatDialogConfig();
13489
13511
  dialogConfig.disableClose = true;
13490
13512
  dialogConfig.autoFocus = true;
13491
13513
  dialogConfig.ariaLabel = 'Label';
@@ -13519,7 +13541,7 @@
13519
13541
  };
13520
13542
  return WriteCollectionFieldComponent;
13521
13543
  }(AbstractFieldWriteComponent));
13522
- WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
13544
+ WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
13523
13545
  WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
13524
13546
  if (rf & 1) {
13525
13547
  i0__namespace.ɵɵviewQuery(_c0$L, 1);
@@ -13568,7 +13590,7 @@
13568
13590
  templateUrl: './write-collection-field.html',
13569
13591
  styleUrls: ['./collection-field.scss']
13570
13592
  }]
13571
- }], function () { return [{ type: i1__namespace$3.MatDialog }, { type: i2__namespace$1.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
13593
+ }], function () { return [{ type: i1__namespace$4.MatDialog }, { type: i2__namespace.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
13572
13594
  type: i0.Input
13573
13595
  }], formGroup: [{
13574
13596
  type: i0.Input
@@ -13731,7 +13753,7 @@
13731
13753
  _this.caseFields = [];
13732
13754
  _this.renderLabel = true;
13733
13755
  _this.ignoreMandatory = false;
13734
- _this.complexGroup = new i2.FormGroup({});
13756
+ _this.complexGroup = new i1$2.FormGroup({});
13735
13757
  return _this;
13736
13758
  }
13737
13759
  WriteComplexFieldComponent.prototype.ngOnInit = function () {
@@ -13752,7 +13774,7 @@
13752
13774
  var e_1, _a;
13753
13775
  var control = this.complexGroup.get(caseField.id);
13754
13776
  if (!control) {
13755
- control = new i2.FormControl(caseField.value);
13777
+ control = new i1$2.FormControl(caseField.value);
13756
13778
  this.complexGroup.addControl(caseField.id, control);
13757
13779
  }
13758
13780
  // Add validators for addresses, if appropriate.
@@ -14047,7 +14069,7 @@
14047
14069
  };
14048
14070
  return DocumentDialogComponent;
14049
14071
  }());
14050
- DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialogRef)); };
14072
+ DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialogRef)); };
14051
14073
  DocumentDialogComponent.ɵcmp = i0__namespace.ɵɵ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) {
14052
14074
  if (rf & 1) {
14053
14075
  i0__namespace.ɵɵelementStart(0, "div");
@@ -14088,7 +14110,7 @@
14088
14110
  templateUrl: './document-dialog.component.html',
14089
14111
  styleUrls: ['../action-dialog.component.scss']
14090
14112
  }]
14091
- }], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
14113
+ }], function () { return [{ type: i1__namespace$4.MatDialogRef }]; }, null);
14092
14114
  })();
14093
14115
 
14094
14116
  var FileUploadStateService = /** @class */ (function () {
@@ -14319,21 +14341,21 @@
14319
14341
  };
14320
14342
  WriteDocumentFieldComponent.prototype.createDocumentFormWithValidator = function (document) {
14321
14343
  var documentFormGroup = {
14322
- document_url: new i2.FormControl(document.document_url, i2.Validators.required),
14323
- document_binary_url: new i2.FormControl(document.document_binary_url, i2.Validators.required),
14324
- document_filename: new i2.FormControl(document.document_filename, i2.Validators.required)
14344
+ document_url: new i1$2.FormControl(document.document_url, i1$2.Validators.required),
14345
+ document_binary_url: new i1$2.FormControl(document.document_binary_url, i1$2.Validators.required),
14346
+ document_filename: new i1$2.FormControl(document.document_filename, i1$2.Validators.required)
14325
14347
  };
14326
- documentFormGroup = this.secureModeOn ? Object.assign(Object.assign({}, documentFormGroup), { document_hash: new i2.FormControl(document.document_hash) }) : documentFormGroup;
14327
- this.uploadedDocument = this.registerControl(new i2.FormGroup(documentFormGroup), true);
14348
+ documentFormGroup = this.secureModeOn ? Object.assign(Object.assign({}, documentFormGroup), { document_hash: new i1$2.FormControl(document.document_hash) }) : documentFormGroup;
14349
+ this.uploadedDocument = this.registerControl(new i1$2.FormGroup(documentFormGroup), true);
14328
14350
  };
14329
14351
  WriteDocumentFieldComponent.prototype.createDocumentForm = function (document) {
14330
14352
  var documentFormGroup = {
14331
- document_url: new i2.FormControl(document.document_url),
14332
- document_binary_url: new i2.FormControl(document.document_binary_url),
14333
- document_filename: new i2.FormControl(document.document_filename)
14353
+ document_url: new i1$2.FormControl(document.document_url),
14354
+ document_binary_url: new i1$2.FormControl(document.document_binary_url),
14355
+ document_filename: new i1$2.FormControl(document.document_filename)
14334
14356
  };
14335
- documentFormGroup = this.secureModeOn ? Object.assign(Object.assign({}, documentFormGroup), { document_hash: new i2.FormControl(document.document_hash) }) : documentFormGroup;
14336
- this.uploadedDocument = this.registerControl(new i2.FormGroup(documentFormGroup), true);
14357
+ documentFormGroup = this.secureModeOn ? Object.assign(Object.assign({}, documentFormGroup), { document_hash: new i1$2.FormControl(document.document_hash) }) : documentFormGroup;
14358
+ this.uploadedDocument = this.registerControl(new i1$2.FormGroup(documentFormGroup), true);
14337
14359
  };
14338
14360
  WriteDocumentFieldComponent.prototype.getErrorMessage = function (error) {
14339
14361
  // Document Management unavailable
@@ -14401,7 +14423,7 @@
14401
14423
  WriteDocumentFieldComponent.UPLOAD_ERROR_FILE_REQUIRED = 'File required';
14402
14424
  WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
14403
14425
  WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
14404
- WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService)); };
14426
+ WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService)); };
14405
14427
  WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
14406
14428
  if (rf & 1) {
14407
14429
  i0__namespace.ɵɵviewQuery(_c0$K, 1);
@@ -14475,7 +14497,7 @@
14475
14497
  selector: 'ccd-write-document-field',
14476
14498
  templateUrl: './write-document-field.html'
14477
14499
  }]
14478
- }], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$3.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
14500
+ }], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$4.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
14479
14501
  type: i0.ViewChild,
14480
14502
  args: ['fileInput', { static: false }]
14481
14503
  }], clickout: [{
@@ -14629,7 +14651,7 @@
14629
14651
  if (isNull || typeof this.caseField.value === 'object') {
14630
14652
  this.caseField.value = null;
14631
14653
  }
14632
- this.dynamicListFormControl = this.registerControl(new i2.FormControl(this.caseField.value));
14654
+ this.dynamicListFormControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
14633
14655
  this.dynamicListFormControl.setValue(this.caseField.value);
14634
14656
  };
14635
14657
  return WriteDynamicListFieldComponent;
@@ -14671,7 +14693,7 @@
14671
14693
  i0__namespace.ɵɵadvance(2);
14672
14694
  i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
14673
14695
  }
14674
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.SelectControlValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i2__namespace.NgSelectOption, i2__namespace.ɵangular_packages_forms_forms_z, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
14696
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.SelectControlValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i1__namespace$3.NgSelectOption, i1__namespace$3.ɵangular_packages_forms_forms_z, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
14675
14697
  var ɵWriteDynamicListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicListFieldComponent);
14676
14698
  (function () {
14677
14699
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicListFieldComponent, [{
@@ -14847,7 +14869,7 @@
14847
14869
  if (isNull || typeof this.caseField.value === 'object') {
14848
14870
  this.caseField.value = [];
14849
14871
  }
14850
- this.dynamicRadioListControl = this.registerControl(new i2.FormControl(this.caseField.value));
14872
+ this.dynamicRadioListControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
14851
14873
  this.dynamicRadioListControl.setValue(this.caseField.value);
14852
14874
  };
14853
14875
  WriteDynamicRadioListFieldComponent.prototype.buildElementId = function (name) {
@@ -14888,7 +14910,7 @@
14888
14910
  i0__namespace.ɵɵadvance(2);
14889
14911
  i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
14890
14912
  }
14891
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i2__namespace.RadioControlValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
14913
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$3.RadioControlValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
14892
14914
  var ɵWriteDynamicRadioListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicRadioListFieldComponent);
14893
14915
  (function () {
14894
14916
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicRadioListFieldComponent, [{
@@ -14989,7 +15011,7 @@
14989
15011
  return _super !== null && _super.apply(this, arguments) || this;
14990
15012
  }
14991
15013
  WriteEmailFieldComponent.prototype.ngOnInit = function () {
14992
- this.emailControl = this.registerControl(new i2.FormControl(this.caseField.value));
15014
+ this.emailControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
14993
15015
  };
14994
15016
  return WriteEmailFieldComponent;
14995
15017
  }(AbstractFieldWriteComponent));
@@ -15018,7 +15040,7 @@
15018
15040
  i0__namespace.ɵɵadvance(1);
15019
15041
  i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$f, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
15020
15042
  }
15021
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
15043
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
15022
15044
  var ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
15023
15045
  (function () {
15024
15046
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteEmailFieldComponent, [{
@@ -15164,7 +15186,7 @@
15164
15186
  if (isNull) {
15165
15187
  this.caseField.value = null;
15166
15188
  }
15167
- this.fixedListFormControl = this.registerControl(new i2.FormControl(this.caseField.value));
15189
+ this.fixedListFormControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
15168
15190
  this.fixedListFormControl.setValue(this.caseField.value);
15169
15191
  };
15170
15192
  return WriteFixedListFieldComponent;
@@ -15203,7 +15225,7 @@
15203
15225
  i0__namespace.ɵɵadvance(2);
15204
15226
  i0__namespace.ɵɵproperty("ngForOf", ctx.listItems);
15205
15227
  }
15206
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.SelectControlValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i2__namespace.NgSelectOption, i2__namespace.ɵangular_packages_forms_forms_z, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
15228
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.SelectControlValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i1__namespace$3.NgSelectOption, i1__namespace$3.ɵangular_packages_forms_forms_z, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
15207
15229
  var ɵWriteFixedListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteFixedListFieldComponent);
15208
15230
  (function () {
15209
15231
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteFixedListFieldComponent, [{
@@ -15335,7 +15357,7 @@
15335
15357
  }
15336
15358
  WriteFixedRadioListFieldComponent.prototype.ngOnInit = function () {
15337
15359
  var notEmpty = this.caseField.value !== null && this.caseField.value !== undefined;
15338
- this.fixedRadioListControl = this.registerControl(new i2.FormControl(notEmpty ? this.caseField.value : null));
15360
+ this.fixedRadioListControl = this.registerControl(new i1$2.FormControl(notEmpty ? this.caseField.value : null));
15339
15361
  };
15340
15362
  return WriteFixedRadioListFieldComponent;
15341
15363
  }(AbstractFieldWriteComponent));
@@ -15370,7 +15392,7 @@
15370
15392
  i0__namespace.ɵɵadvance(2);
15371
15393
  i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.field_type.fixed_list_items);
15372
15394
  }
15373
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i2__namespace.RadioControlValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
15395
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$3.RadioControlValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
15374
15396
  var ɵWriteFixedRadioListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteFixedRadioListFieldComponent);
15375
15397
  (function () {
15376
15398
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteFixedRadioListFieldComponent, [{
@@ -15530,10 +15552,10 @@
15530
15552
  WriteJudicialUserFieldComponent.prototype.ngOnInit = function () {
15531
15553
  var _this = this;
15532
15554
  this.jurisdictionId = this.route.snapshot.params[this.JURISDICTION_ID];
15533
- this.judicialUserFormGroup = this.registerControl(new i2.FormGroup({}), true);
15534
- this.idamIdFormControl = new i2.FormControl('');
15555
+ this.judicialUserFormGroup = this.registerControl(new i1$2.FormGroup({}), true);
15556
+ this.idamIdFormControl = new i1$2.FormControl('');
15535
15557
  this.judicialUserFormGroup.addControl(this.IDAM_ID, this.idamIdFormControl);
15536
- this.personalCodeFormControl = new i2.FormControl('');
15558
+ this.personalCodeFormControl = new i1$2.FormControl('');
15537
15559
  this.judicialUserFormGroup.addControl(this.PERSONAL_CODE, this.personalCodeFormControl);
15538
15560
  this.sub = this.idamIdFormControl.valueChanges.pipe(operators.tap(function () { return _this.showAutocomplete = false; }), operators.tap(function () { return _this.filteredJudicialUsers = []; }), operators.debounceTime(300), operators.filter(function (searchTerm) { return searchTerm && searchTerm.length > _this.MINIMUM_SEARCH_CHARACTERS; }), operators.switchMap(function (searchTerm) { return _this.filter(searchTerm).pipe(operators.tap(function () { return _this.showAutocomplete = true; }), operators.catchError(function () { return _this.filteredJudicialUsers = []; })); })).subscribe(function (judicialUsers) {
15539
15561
  _this.filteredJudicialUsers = judicialUsers;
@@ -15584,7 +15606,7 @@
15584
15606
  i0__namespace.ɵɵadvance(1);
15585
15607
  i0__namespace.ɵɵproperty("ngIf", !(ctx.filteredJudicialUsers == null ? null : ctx.filteredJudicialUsers.length) && ctx.showAutocomplete);
15586
15608
  }
15587
- }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i5__namespace.MatAutocompleteTrigger, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i5__namespace.MatAutocomplete, i1__namespace.NgForOf, i6__namespace.MatOption, i1__namespace.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}"] });
15609
+ }, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i5__namespace.MatAutocompleteTrigger, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i5__namespace.MatAutocomplete, i1__namespace.NgForOf, i6__namespace.MatOption, i1__namespace.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}"] });
15588
15610
  (function () {
15589
15611
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteJudicialUserFieldComponent, [{
15590
15612
  type: i0.Component,
@@ -15659,7 +15681,7 @@
15659
15681
  this.value = this.amount;
15660
15682
  }
15661
15683
  else if (this.caseField) {
15662
- this.registerControl(new i2.FormControl(this.caseField.value));
15684
+ this.registerControl(new i1$2.FormControl(this.caseField.value));
15663
15685
  this.value = this.caseField.value;
15664
15686
  }
15665
15687
  };
@@ -15760,12 +15782,12 @@
15760
15782
  MoneyGbpInputComponent.ɵfac = function MoneyGbpInputComponent_Factory(t) { return new (t || MoneyGbpInputComponent)(); };
15761
15783
  MoneyGbpInputComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: MoneyGbpInputComponent, selectors: [["ccd-money-gbp-input"]], inputs: { id: "id", name: "name", mandatory: "mandatory", formControl: "formControl" }, features: [i0__namespace.ɵɵProvidersFeature([
15762
15784
  {
15763
- provide: i2.NG_VALUE_ACCESSOR,
15785
+ provide: i1$2.NG_VALUE_ACCESSOR,
15764
15786
  useExisting: i0.forwardRef(function () { return MoneyGbpInputComponent; }),
15765
15787
  multi: true,
15766
15788
  },
15767
15789
  {
15768
- provide: i2.NG_VALIDATORS,
15790
+ provide: i1$2.NG_VALIDATORS,
15769
15791
  useExisting: i0.forwardRef(function () { return MoneyGbpInputComponent; }),
15770
15792
  multi: true,
15771
15793
  }
@@ -15787,12 +15809,12 @@
15787
15809
  template: "<input class=\"form-control form-control-1-8\"\n type=\"text\"\n [id]=\"id\"\n [name]=\"name\"\n [value]=\"displayValue\"\n (change)=\"onChange($event)\"\n (keyup)=\"onChange($event)\"\n [disabled]=\"disabled\"/>",
15788
15810
  providers: [
15789
15811
  {
15790
- provide: i2.NG_VALUE_ACCESSOR,
15812
+ provide: i1$2.NG_VALUE_ACCESSOR,
15791
15813
  useExisting: i0.forwardRef(function () { return MoneyGbpInputComponent; }),
15792
15814
  multi: true,
15793
15815
  },
15794
15816
  {
15795
- provide: i2.NG_VALIDATORS,
15817
+ provide: i1$2.NG_VALIDATORS,
15796
15818
  useExisting: i0.forwardRef(function () { return MoneyGbpInputComponent; }),
15797
15819
  multi: true,
15798
15820
  }
@@ -15854,7 +15876,7 @@
15854
15876
  return _super !== null && _super.apply(this, arguments) || this;
15855
15877
  }
15856
15878
  WriteMoneyGbpFieldComponent.prototype.ngOnInit = function () {
15857
- this.moneyGbpControl = this.registerControl(new i2.FormControl(this.caseField.value));
15879
+ this.moneyGbpControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
15858
15880
  };
15859
15881
  return WriteMoneyGbpFieldComponent;
15860
15882
  }(AbstractFieldWriteComponent));
@@ -15889,7 +15911,7 @@
15889
15911
  i0__namespace.ɵɵadvance(4);
15890
15912
  i0__namespace.ɵɵproperty("id", ctx.id())("name", ctx.id())("mandatory", i0__namespace.ɵɵpipeBind1(9, 9, ctx.caseField))("formControl", ctx.moneyGbpControl);
15891
15913
  }
15892
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, MoneyGbpInputComponent, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [IsMandatoryPipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
15914
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, MoneyGbpInputComponent, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [IsMandatoryPipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
15893
15915
  var ɵWriteMoneyGbpFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteMoneyGbpFieldComponent);
15894
15916
  (function () {
15895
15917
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteMoneyGbpFieldComponent, [{
@@ -16033,12 +16055,12 @@
16033
16055
  }
16034
16056
  WriteMultiSelectListFieldComponent.prototype.ngOnInit = function () {
16035
16057
  var _this = this;
16036
- this.checkboxes = new i2.FormArray([]);
16058
+ this.checkboxes = new i1$2.FormArray([]);
16037
16059
  // Initialise array with existing values
16038
16060
  if (this.caseField.value && Array.isArray(this.caseField.value)) {
16039
16061
  var values = this.caseField.value;
16040
16062
  values.forEach(function (value) {
16041
- _this.checkboxes.push(new i2.FormControl(value));
16063
+ _this.checkboxes.push(new i1$2.FormControl(value));
16042
16064
  });
16043
16065
  }
16044
16066
  this.registerControl(this.checkboxes, true);
@@ -16046,7 +16068,7 @@
16046
16068
  && this.caseField.field_type.type === 'MultiSelectList' && this.caseField.field_type.fixed_list_items.length > 0
16047
16069
  && this.checkboxes.controls.length === 0) {
16048
16070
  if (this.caseField.field_type.fixed_list_items[0].code) {
16049
- this.checkboxes.push(new i2.FormControl(this.caseField.field_type.fixed_list_items[0].code));
16071
+ this.checkboxes.push(new i1$2.FormControl(this.caseField.field_type.fixed_list_items[0].code));
16050
16072
  this.checkboxes.removeAt(0);
16051
16073
  }
16052
16074
  }
@@ -16055,7 +16077,7 @@
16055
16077
  var _this = this;
16056
16078
  if (!this.isSelected(event.target.value)) {
16057
16079
  // Add a new control in the FormArray
16058
- this.checkboxes.push(new i2.FormControl(event.target.value));
16080
+ this.checkboxes.push(new i1$2.FormControl(event.target.value));
16059
16081
  }
16060
16082
  else {
16061
16083
  // Remove the control form the FormArray
@@ -16188,7 +16210,7 @@
16188
16210
  return _super !== null && _super.apply(this, arguments) || this;
16189
16211
  }
16190
16212
  WriteNumberFieldComponent.prototype.ngOnInit = function () {
16191
- this.numberControl = this.registerControl(new i2.FormControl(this.caseField.value));
16213
+ this.numberControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
16192
16214
  };
16193
16215
  return WriteNumberFieldComponent;
16194
16216
  }(AbstractFieldWriteComponent));
@@ -16217,7 +16239,7 @@
16217
16239
  i0__namespace.ɵɵadvance(1);
16218
16240
  i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$d, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
16219
16241
  }
16220
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.NumberValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
16242
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.NumberValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
16221
16243
  var ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
16222
16244
  (function () {
16223
16245
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteNumberFieldComponent, [{
@@ -16319,24 +16341,24 @@
16319
16341
  */
16320
16342
  WriteOrderSummaryFieldComponent.prototype.ngOnInit = function () {
16321
16343
  var _this = this;
16322
- var orderSummaryGroup = this.registerControl(new i2.FormGroup({}), true);
16323
- var paymentReference = new i2.FormControl(this.caseField.value.PaymentReference);
16344
+ var orderSummaryGroup = this.registerControl(new i1$2.FormGroup({}), true);
16345
+ var paymentReference = new i1$2.FormControl(this.caseField.value.PaymentReference);
16324
16346
  orderSummaryGroup.addControl('PaymentReference', paymentReference);
16325
- var paymentTotal = new i2.FormControl(this.caseField.value.PaymentTotal);
16347
+ var paymentTotal = new i1$2.FormControl(this.caseField.value.PaymentTotal);
16326
16348
  orderSummaryGroup.addControl('PaymentTotal', paymentTotal);
16327
- var feesArray = new i2.FormArray([]);
16349
+ var feesArray = new i1$2.FormArray([]);
16328
16350
  this.caseField.value.Fees.forEach(function (fee) {
16329
16351
  feesArray.push(_this.getFeeValue(fee.value));
16330
16352
  });
16331
16353
  orderSummaryGroup.addControl('Fees', feesArray);
16332
16354
  };
16333
16355
  WriteOrderSummaryFieldComponent.prototype.getFeeValue = function (feeValue) {
16334
- var feeGroup = new i2.FormGroup({});
16335
- feeGroup.addControl('FeeCode', new i2.FormControl(feeValue.FeeCode));
16336
- feeGroup.addControl('FeeAmount', new i2.FormControl(feeValue.FeeAmount));
16337
- feeGroup.addControl('FeeDescription', new i2.FormControl(feeValue.FeeDescription));
16338
- feeGroup.addControl('FeeVersion', new i2.FormControl(feeValue.FeeVersion));
16339
- var feeValueGroup = new i2.FormGroup({});
16356
+ var feeGroup = new i1$2.FormGroup({});
16357
+ feeGroup.addControl('FeeCode', new i1$2.FormControl(feeValue.FeeCode));
16358
+ feeGroup.addControl('FeeAmount', new i1$2.FormControl(feeValue.FeeAmount));
16359
+ feeGroup.addControl('FeeDescription', new i1$2.FormControl(feeValue.FeeDescription));
16360
+ feeGroup.addControl('FeeVersion', new i1$2.FormControl(feeValue.FeeVersion));
16361
+ var feeValueGroup = new i1$2.FormGroup({});
16340
16362
  feeValueGroup.addControl('value', feeGroup);
16341
16363
  return feeValueGroup;
16342
16364
  };
@@ -16640,10 +16662,10 @@
16640
16662
  var e_1, _a;
16641
16663
  var _this = this;
16642
16664
  this.organisations$ = this.organisationService.getActiveOrganisations();
16643
- this.searchOrgTextFormControl = new i2.FormControl('');
16665
+ this.searchOrgTextFormControl = new i1$2.FormControl('');
16644
16666
  this.searchOrgValue$ = this.searchOrgTextFormControl.valueChanges;
16645
16667
  this.searchOrgValue$.subscribe(function (value) { return _this.onSearchOrg(value); });
16646
- this.organisationFormGroup = this.registerControl(new i2.FormGroup({}), true);
16668
+ this.organisationFormGroup = this.registerControl(new i1$2.FormGroup({}), true);
16647
16669
  if (this.parent && this.parent.controls && this.parent.controls.hasOwnProperty(WriteOrganisationFieldComponent.PRE_POPULATE_TO_USERS_ORGANISATION)
16648
16670
  && this.parent.controls[WriteOrganisationFieldComponent.PRE_POPULATE_TO_USERS_ORGANISATION].value
16649
16671
  && this.parent.controls[WriteOrganisationFieldComponent.PRE_POPULATE_TO_USERS_ORGANISATION].value.toUpperCase()
@@ -16759,10 +16781,10 @@
16759
16781
  this.selectedOrg$ = rxjs.of(WriteOrganisationFieldComponent.EMPTY_SIMPLE_ORG);
16760
16782
  };
16761
16783
  WriteOrganisationFieldComponent.prototype.instantiateOrganisationFormGroup = function (orgIDState, orgNameState) {
16762
- this.organisationIDFormControl = new i2.FormControl(orgIDState);
16784
+ this.organisationIDFormControl = new i1$2.FormControl(orgIDState);
16763
16785
  this.addOrganisationValidators(this.caseField, this.organisationIDFormControl);
16764
16786
  this.organisationFormGroup.addControl(WriteOrganisationFieldComponent.ORGANISATION_ID, this.organisationIDFormControl);
16765
- this.organisationNameFormControl = new i2.FormControl(orgNameState);
16787
+ this.organisationNameFormControl = new i1$2.FormControl(orgNameState);
16766
16788
  this.organisationFormGroup.addControl(WriteOrganisationFieldComponent.ORGANISATION_NAME, this.organisationNameFormControl);
16767
16789
  };
16768
16790
  WriteOrganisationFieldComponent.prototype.addOrganisationValidators = function (caseField, control) {
@@ -17002,7 +17024,7 @@
17002
17024
  return _super !== null && _super.apply(this, arguments) || this;
17003
17025
  }
17004
17026
  WritePhoneUKFieldComponent.prototype.ngOnInit = function () {
17005
- this.phoneUkControl = this.registerControl(new i2.FormControl(this.caseField.value));
17027
+ this.phoneUkControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
17006
17028
  };
17007
17029
  return WritePhoneUKFieldComponent;
17008
17030
  }(AbstractFieldWriteComponent));
@@ -17031,7 +17053,7 @@
17031
17053
  i0__namespace.ɵɵadvance(1);
17032
17054
  i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$c, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
17033
17055
  }
17034
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17056
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17035
17057
  var ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
17036
17058
  (function () {
17037
17059
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
@@ -17121,7 +17143,7 @@
17121
17143
  return _this;
17122
17144
  }
17123
17145
  WriteTextAreaFieldComponent.prototype.ngOnInit = function () {
17124
- this.textareaControl = this.registerControl(new i2.FormControl(this.caseField.value));
17146
+ this.textareaControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
17125
17147
  };
17126
17148
  WriteTextAreaFieldComponent.prototype.autoGrow = function (event) {
17127
17149
  if (this.browserService.isIEOrEdge()) {
@@ -17159,7 +17181,7 @@
17159
17181
  i0__namespace.ɵɵadvance(1);
17160
17182
  i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$b, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
17161
17183
  }
17162
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17184
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17163
17185
  (function () {
17164
17186
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteTextAreaFieldComponent, [{
17165
17187
  type: i0.Component,
@@ -17247,7 +17269,7 @@
17247
17269
  return _super !== null && _super.apply(this, arguments) || this;
17248
17270
  }
17249
17271
  WriteTextFieldComponent.prototype.ngOnInit = function () {
17250
- this.textControl = this.registerControl(new i2.FormControl(this.caseField.value));
17272
+ this.textControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
17251
17273
  };
17252
17274
  WriteTextFieldComponent.prototype.onBlur = function ($event) {
17253
17275
  $event.target.value = $event.target.value.trim();
@@ -17281,7 +17303,7 @@
17281
17303
  i0__namespace.ɵɵadvance(1);
17282
17304
  i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$a, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
17283
17305
  }
17284
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17306
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17285
17307
  var ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteTextFieldComponent);
17286
17308
  (function () {
17287
17309
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteTextFieldComponent, [{
@@ -17510,7 +17532,7 @@
17510
17532
  return _this;
17511
17533
  }
17512
17534
  WriteYesNoFieldComponent.prototype.ngOnInit = function () {
17513
- this.yesNoControl = this.registerControl(new i2.FormControl(this.yesNoService.format(this.caseField.value)));
17535
+ this.yesNoControl = this.registerControl(new i1$2.FormControl(this.yesNoService.format(this.caseField.value)));
17514
17536
  };
17515
17537
  return WriteYesNoFieldComponent;
17516
17538
  }(AbstractFieldWriteComponent));
@@ -17543,7 +17565,7 @@
17543
17565
  i0__namespace.ɵɵadvance(1);
17544
17566
  i0__namespace.ɵɵproperty("ngForOf", ctx.yesNoValues);
17545
17567
  }
17546
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i2__namespace.RadioControlValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17568
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$3.RadioControlValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17547
17569
  (function () {
17548
17570
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteYesNoFieldComponent, [{
17549
17571
  type: i0.Component,
@@ -17654,7 +17676,7 @@
17654
17676
  _this.resolver = resolver;
17655
17677
  _this.paletteService = paletteService;
17656
17678
  _this.withLabel = false;
17657
- _this.formGroup = new i2.FormGroup({});
17679
+ _this.formGroup = new i1$2.FormGroup({});
17658
17680
  _this.caseFields = [];
17659
17681
  return _this;
17660
17682
  }
@@ -18065,7 +18087,7 @@
18065
18087
  };
18066
18088
  return CaseFileViewFolderSelectorComponent;
18067
18089
  }());
18068
- CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialogRef), i0__namespace.ɵɵdirectiveInject(i1$3.MAT_DIALOG_DATA)); };
18090
+ CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialogRef), i0__namespace.ɵɵdirectiveInject(i1$4.MAT_DIALOG_DATA)); };
18069
18091
  CaseFileViewFolderSelectorComponent.ɵcmp = i0__namespace.ɵɵ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) {
18070
18092
  if (rf & 1) {
18071
18093
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -18109,9 +18131,9 @@
18109
18131
  encapsulation: i0.ViewEncapsulation.None
18110
18132
  }]
18111
18133
  }], function () {
18112
- return [{ type: i1__namespace$3.MatDialogRef }, { type: undefined, decorators: [{
18134
+ return [{ type: i1__namespace$4.MatDialogRef }, { type: undefined, decorators: [{
18113
18135
  type: i0.Inject,
18114
- args: [i1$3.MAT_DIALOG_DATA]
18136
+ args: [i1$4.MAT_DIALOG_DATA]
18115
18137
  }] }];
18116
18138
  }, null);
18117
18139
  })();
@@ -18210,7 +18232,7 @@
18210
18232
  i0__namespace.ɵɵadvance(4);
18211
18233
  i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
18212
18234
  }
18213
- }, directives: [i1__namespace$4.CdkOverlayOrigin, i1__namespace$4.CdkConnectedOverlay, i1__namespace.NgIf, i1__namespace.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}"] });
18235
+ }, directives: [i1__namespace$5.CdkOverlayOrigin, i1__namespace$5.CdkConnectedOverlay, i1__namespace.NgIf, i1__namespace.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}"] });
18214
18236
  (function () {
18215
18237
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
18216
18238
  type: i0.Component,
@@ -18582,8 +18604,8 @@
18582
18604
  });
18583
18605
  CaseFileViewFolderComponent.prototype.ngOnInit = function () {
18584
18606
  var _this = this;
18585
- this.documentFilterFormGroup = new i2.FormGroup({});
18586
- this.documentSearchFormControl = new i2.FormControl('');
18607
+ this.documentFilterFormGroup = new i1$2.FormGroup({});
18608
+ this.documentSearchFormControl = new i1$2.FormControl('');
18587
18609
  this.documentFilterFormGroup.addControl(CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME, this.documentSearchFormControl);
18588
18610
  // Listen to search input and initiate filter documents if at least three characters entered
18589
18611
  this.documentFilterSubscription = this.documentSearchFormControl.valueChanges.pipe(operators.tap(function (searchTerm) { return _this.searchTermLength = searchTerm.length; }), operators.switchMap(function (searchTerm) { return _this.filter(searchTerm.toLowerCase()).pipe(); })).subscribe(function (documentTreeData) {
@@ -18766,7 +18788,7 @@
18766
18788
  CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
18767
18789
  CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
18768
18790
  CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
18769
- CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog)); };
18791
+ CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialog)); };
18770
18792
  CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵ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) {
18771
18793
  if (rf & 1) {
18772
18794
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -18794,7 +18816,7 @@
18794
18816
  i0__namespace.ɵɵadvance(3);
18795
18817
  i0__namespace.ɵɵproperty("ngIf", ctx.documentTreeData);
18796
18818
  }
18797
- }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, CaseFileViewFolderSortComponent, i1__namespace.NgIf, i7__namespace.CdkTree, i7__namespace.CdkTreeNodeDef, i7__namespace.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i7__namespace.CdkTreeNodeToggle, i7__namespace.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}"] });
18819
+ }, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName, CaseFileViewFolderSortComponent, i1__namespace.NgIf, i7__namespace.CdkTree, i7__namespace.CdkTreeNodeDef, i7__namespace.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i7__namespace.CdkTreeNodeToggle, i7__namespace.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}"] });
18798
18820
  (function () {
18799
18821
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
18800
18822
  type: i0.Component,
@@ -18803,7 +18825,7 @@
18803
18825
  templateUrl: './case-file-view-folder.component.html',
18804
18826
  styleUrls: ['./case-file-view-folder.component.scss'],
18805
18827
  }]
18806
- }], function () { return [{ type: WindowService }, { type: i1__namespace$1.Router }, { type: DocumentManagementService }, { type: i1__namespace$3.MatDialog }]; }, { categoriesAndDocuments: [{
18828
+ }], function () { return [{ type: WindowService }, { type: i1__namespace$1.Router }, { type: DocumentManagementService }, { type: i1__namespace$4.MatDialog }]; }, { categoriesAndDocuments: [{
18807
18829
  type: i0.Input
18808
18830
  }], allowMoving: [{
18809
18831
  type: i0.Input
@@ -18997,96 +19019,187 @@
18997
19019
  }] });
18998
19020
  })();
18999
19021
 
19000
- function SelectFlagTypeComponent_div_6_Template(rf, ctx) {
19022
+ /**
19023
+ * DTO to provide typing of the response from the Reference Data Common API for Case Flags data.
19024
+ *
19025
+ * @see {@link https://tools.hmcts.net/confluence/pages/viewpage.action?pageId=1525476616#CaseFlagsHLDVersion1.0-Output}
19026
+ * for full details
19027
+ */
19028
+ var FlagType = /** @class */ (function () {
19029
+ function FlagType() {
19030
+ this.listOfValuesLength = 0;
19031
+ this.listOfValues = [];
19032
+ }
19033
+ FlagType.searchPathByFlagTypeObject = function (singleFlag, flags, path) {
19034
+ var e_1, _b;
19035
+ if (path === void 0) { path = []; }
19036
+ var _a;
19037
+ try {
19038
+ for (var flags_1 = __values(flags), flags_1_1 = flags_1.next(); !flags_1_1.done; flags_1_1 = flags_1.next()) {
19039
+ var flag = flags_1_1.value;
19040
+ if (flag.flagCode === singleFlag.flagCode && flag.Path.join(',') === singleFlag.Path.join(',')) {
19041
+ return [flag, path];
19042
+ }
19043
+ if ((_a = flag.childFlags) === null || _a === void 0 ? void 0 : _a.length) {
19044
+ var _c = __read(FlagType.searchPathByFlagTypeObject(singleFlag, flag.childFlags, __spread(path, [flag])), 2), result = _c[0], childPath = _c[1];
19045
+ if (result) {
19046
+ return [result, childPath];
19047
+ }
19048
+ }
19049
+ }
19050
+ }
19051
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
19052
+ finally {
19053
+ try {
19054
+ if (flags_1_1 && !flags_1_1.done && (_b = flags_1.return)) _b.call(flags_1);
19055
+ }
19056
+ finally { if (e_1) throw e_1.error; }
19057
+ }
19058
+ return [undefined, []];
19059
+ };
19060
+ return FlagType;
19061
+ }());
19062
+
19063
+ /**
19064
+ * DTO to provide typing of the response from the Reference Data Location API for HMCTS service details.
19065
+ */
19066
+ var HmctsServiceDetail = /** @class */ (function () {
19067
+ function HmctsServiceDetail() {
19068
+ this.service_id = 0;
19069
+ }
19070
+ return HmctsServiceDetail;
19071
+ }());
19072
+
19073
+ var SearchLanguageInterpreterControlNames;
19074
+ (function (SearchLanguageInterpreterControlNames) {
19075
+ SearchLanguageInterpreterControlNames["LANGUAGE_SEARCH_TERM"] = "languageSearchTerm";
19076
+ SearchLanguageInterpreterControlNames["MANUAL_LANGUAGE_ENTRY"] = "manualLanguageEntry";
19077
+ })(SearchLanguageInterpreterControlNames || (SearchLanguageInterpreterControlNames = {}));
19078
+
19079
+ function SelectFlagTypeComponent_div_0_div_6_Template(rf, ctx) {
19001
19080
  if (rf & 1) {
19002
- i0__namespace.ɵɵelementStart(0, "div", 10);
19003
- i0__namespace.ɵɵelementStart(1, "span", 11);
19081
+ i0__namespace.ɵɵelementStart(0, "div", 11);
19082
+ i0__namespace.ɵɵelementStart(1, "span", 12);
19004
19083
  i0__namespace.ɵɵtext(2, "Error:");
19005
19084
  i0__namespace.ɵɵelementEnd();
19006
19085
  i0__namespace.ɵɵtext(3);
19007
19086
  i0__namespace.ɵɵelementEnd();
19008
19087
  }
19009
19088
  if (rf & 2) {
19010
- var ctx_r0 = i0__namespace.ɵɵnextContext();
19089
+ var ctx_r1 = i0__namespace.ɵɵnextContext(2);
19011
19090
  i0__namespace.ɵɵadvance(3);
19012
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.flagTypeNotSelectedErrorMessage, " ");
19091
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.flagTypeNotSelectedErrorMessage, " ");
19013
19092
  }
19014
19093
  }
19015
- function SelectFlagTypeComponent_div_8_Template(rf, ctx) {
19094
+ function SelectFlagTypeComponent_div_0_div_8_Template(rf, ctx) {
19016
19095
  if (rf & 1) {
19017
- var _r7_1 = i0__namespace.ɵɵgetCurrentView();
19018
- i0__namespace.ɵɵelementStart(0, "div", 12);
19019
- i0__namespace.ɵɵelementStart(1, "input", 13);
19020
- i0__namespace.ɵɵlistener("change", function SelectFlagTypeComponent_div_8_Template_input_change_1_listener() { i0__namespace.ɵɵrestoreView(_r7_1); var flagType_r4 = ctx.$implicit; var ctx_r6 = i0__namespace.ɵɵnextContext(); return ctx_r6.onFlagTypeChanged(flagType_r4); });
19021
- i0__namespace.ɵɵelementEnd();
19022
- i0__namespace.ɵɵelementStart(2, "label", 14);
19096
+ i0__namespace.ɵɵelementStart(0, "div", 13);
19097
+ i0__namespace.ɵɵelement(1, "input", 14);
19098
+ i0__namespace.ɵɵelementStart(2, "label", 15);
19023
19099
  i0__namespace.ɵɵtext(3);
19024
19100
  i0__namespace.ɵɵelementEnd();
19025
19101
  i0__namespace.ɵɵelementEnd();
19026
19102
  }
19027
19103
  if (rf & 2) {
19028
- var flagType_r4 = ctx.$implicit;
19029
- var i_r5 = ctx.index;
19030
- var ctx_r1 = i0__namespace.ɵɵnextContext();
19104
+ var flagType_r5 = ctx.$implicit;
19105
+ var i_r6 = ctx.index;
19106
+ var ctx_r2 = i0__namespace.ɵɵnextContext(2);
19031
19107
  i0__namespace.ɵɵadvance(1);
19032
- i0__namespace.ɵɵpropertyInterpolate1("id", "flag-type-", i_r5, "");
19033
- i0__namespace.ɵɵproperty("name", ctx_r1.flagTypeControlName)("value", flagType_r4.flagCode === "CATGRY" ? flagType_r4.flagCode + i_r5 : flagType_r4.flagCode)("formControlName", ctx_r1.flagTypeControlName);
19108
+ i0__namespace.ɵɵpropertyInterpolate1("id", "flag-type-", i_r6, "");
19109
+ i0__namespace.ɵɵproperty("name", ctx_r2.flagTypeControlName)("value", flagType_r5)("formControlName", ctx_r2.flagTypeControlName);
19034
19110
  i0__namespace.ɵɵadvance(1);
19035
- i0__namespace.ɵɵpropertyInterpolate1("for", "flag-type-", i_r5, "");
19111
+ i0__namespace.ɵɵpropertyInterpolate1("for", "flag-type-", i_r6, "");
19036
19112
  i0__namespace.ɵɵadvance(1);
19037
- i0__namespace.ɵɵtextInterpolate(flagType_r4.name);
19113
+ i0__namespace.ɵɵtextInterpolate(flagType_r5.name);
19038
19114
  }
19039
19115
  }
19040
- function SelectFlagTypeComponent_div_9_div_4_Template(rf, ctx) {
19116
+ function SelectFlagTypeComponent_div_0_div_9_div_4_Template(rf, ctx) {
19041
19117
  if (rf & 1) {
19042
- i0__namespace.ɵɵelementStart(0, "div", 19);
19043
- i0__namespace.ɵɵelementStart(1, "span", 11);
19118
+ i0__namespace.ɵɵelementStart(0, "div", 20);
19119
+ i0__namespace.ɵɵelementStart(1, "span", 12);
19044
19120
  i0__namespace.ɵɵtext(2, "Error:");
19045
19121
  i0__namespace.ɵɵelementEnd();
19046
19122
  i0__namespace.ɵɵtext(3);
19047
19123
  i0__namespace.ɵɵelementEnd();
19048
19124
  }
19049
19125
  if (rf & 2) {
19050
- var ctx_r8 = i0__namespace.ɵɵnextContext(2);
19126
+ var ctx_r7 = i0__namespace.ɵɵnextContext(3);
19051
19127
  i0__namespace.ɵɵadvance(3);
19052
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r8.flagTypeErrorMessage, " ");
19128
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r7.flagTypeErrorMessage, " ");
19053
19129
  }
19054
19130
  }
19055
19131
  var _c0$q = function (a0) { return { "form-group-error": a0 }; };
19056
19132
  var _c1$6 = function (a0) { return { "govuk-input--error": a0 }; };
19057
- function SelectFlagTypeComponent_div_9_Template(rf, ctx) {
19133
+ function SelectFlagTypeComponent_div_0_div_9_Template(rf, ctx) {
19058
19134
  if (rf & 1) {
19059
- i0__namespace.ɵɵelementStart(0, "div", 15);
19060
- i0__namespace.ɵɵelementStart(1, "div", 1);
19061
- i0__namespace.ɵɵelementStart(2, "label", 16);
19135
+ i0__namespace.ɵɵelementStart(0, "div", 16);
19136
+ i0__namespace.ɵɵelementStart(1, "div", 2);
19137
+ i0__namespace.ɵɵelementStart(2, "label", 17);
19062
19138
  i0__namespace.ɵɵtext(3, "Enter a flag type");
19063
19139
  i0__namespace.ɵɵelementEnd();
19064
- i0__namespace.ɵɵtemplate(4, SelectFlagTypeComponent_div_9_div_4_Template, 4, 1, "div", 17);
19065
- i0__namespace.ɵɵelement(5, "input", 18);
19140
+ i0__namespace.ɵɵtemplate(4, SelectFlagTypeComponent_div_0_div_9_div_4_Template, 4, 1, "div", 18);
19141
+ i0__namespace.ɵɵelement(5, "input", 19);
19066
19142
  i0__namespace.ɵɵelementEnd();
19067
19143
  i0__namespace.ɵɵelementEnd();
19068
19144
  }
19069
19145
  if (rf & 2) {
19070
- var ctx_r2 = i0__namespace.ɵɵnextContext();
19146
+ var ctx_r3 = i0__namespace.ɵɵnextContext(2);
19071
19147
  i0__namespace.ɵɵadvance(1);
19072
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$q, ctx_r2.flagTypeErrorMessage.length > 0));
19148
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$q, ctx_r3.flagTypeErrorMessage.length > 0));
19073
19149
  i0__namespace.ɵɵadvance(3);
19074
- i0__namespace.ɵɵproperty("ngIf", ctx_r2.flagTypeErrorMessage.length > 0);
19150
+ i0__namespace.ɵɵproperty("ngIf", ctx_r3.flagTypeErrorMessage.length > 0);
19075
19151
  i0__namespace.ɵɵadvance(1);
19076
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$6, ctx_r2.flagTypeErrorMessage.length > 0))("name", ctx_r2.descriptionControlName)("formControlName", ctx_r2.descriptionControlName);
19152
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$6, ctx_r3.flagTypeErrorMessage.length > 0))("name", ctx_r3.descriptionControlName)("formControlName", ctx_r3.descriptionControlName);
19077
19153
  }
19078
19154
  }
19079
- function SelectFlagTypeComponent_div_10_Template(rf, ctx) {
19155
+ function SelectFlagTypeComponent_div_0_div_10_Template(rf, ctx) {
19080
19156
  if (rf & 1) {
19081
- var _r10_1 = i0__namespace.ɵɵgetCurrentView();
19082
- i0__namespace.ɵɵelementStart(0, "div", 20);
19083
- i0__namespace.ɵɵelementStart(1, "button", 21);
19084
- i0__namespace.ɵɵlistener("click", function SelectFlagTypeComponent_div_10_Template_button_click_1_listener() { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r9 = i0__namespace.ɵɵnextContext(); return ctx_r9.onNext(); });
19157
+ var _r9_1 = i0__namespace.ɵɵgetCurrentView();
19158
+ i0__namespace.ɵɵelementStart(0, "div", 21);
19159
+ i0__namespace.ɵɵelementStart(1, "button", 22);
19160
+ i0__namespace.ɵɵlistener("click", function SelectFlagTypeComponent_div_0_div_10_Template_button_click_1_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.onNext(); });
19085
19161
  i0__namespace.ɵɵtext(2, "Next");
19086
19162
  i0__namespace.ɵɵelementEnd();
19087
19163
  i0__namespace.ɵɵelementEnd();
19088
19164
  }
19089
19165
  }
19166
+ function SelectFlagTypeComponent_div_0_Template(rf, ctx) {
19167
+ if (rf & 1) {
19168
+ i0__namespace.ɵɵelementStart(0, "div", 1);
19169
+ i0__namespace.ɵɵelementStart(1, "div", 2);
19170
+ i0__namespace.ɵɵelementStart(2, "fieldset", 3);
19171
+ i0__namespace.ɵɵelementStart(3, "legend", 4);
19172
+ i0__namespace.ɵɵelementStart(4, "h1", 5);
19173
+ i0__namespace.ɵɵtext(5);
19174
+ i0__namespace.ɵɵelementEnd();
19175
+ i0__namespace.ɵɵelementEnd();
19176
+ i0__namespace.ɵɵtemplate(6, SelectFlagTypeComponent_div_0_div_6_Template, 4, 1, "div", 6);
19177
+ i0__namespace.ɵɵelementStart(7, "div", 7);
19178
+ i0__namespace.ɵɵtemplate(8, SelectFlagTypeComponent_div_0_div_8_Template, 4, 6, "div", 8);
19179
+ i0__namespace.ɵɵtemplate(9, SelectFlagTypeComponent_div_0_div_9_Template, 6, 9, "div", 9);
19180
+ i0__namespace.ɵɵelementEnd();
19181
+ i0__namespace.ɵɵelementEnd();
19182
+ i0__namespace.ɵɵelementEnd();
19183
+ i0__namespace.ɵɵtemplate(10, SelectFlagTypeComponent_div_0_div_10_Template, 3, 0, "div", 10);
19184
+ i0__namespace.ɵɵelementEnd();
19185
+ }
19186
+ if (rf & 2) {
19187
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
19188
+ i0__namespace.ɵɵproperty("formGroup", ctx_r0.formGroup);
19189
+ i0__namespace.ɵɵadvance(1);
19190
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$q, ctx_r0.flagTypeNotSelectedErrorMessage.length > 0));
19191
+ i0__namespace.ɵɵadvance(4);
19192
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
19193
+ i0__namespace.ɵɵadvance(1);
19194
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.flagTypeNotSelectedErrorMessage.length > 0);
19195
+ i0__namespace.ɵɵadvance(2);
19196
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r0.flagTypes);
19197
+ i0__namespace.ɵɵadvance(1);
19198
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.otherFlagTypeSelected);
19199
+ i0__namespace.ɵɵadvance(1);
19200
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r0.refdataError);
19201
+ }
19202
+ }
19090
19203
  var SelectFlagTypeComponent = /** @class */ (function () {
19091
19204
  function SelectFlagTypeComponent(caseFlagRefdataService) {
19092
19205
  this.caseFlagRefdataService = caseFlagRefdataService;
@@ -19094,7 +19207,6 @@
19094
19207
  this.flagCommentsOptionalEmitter = new i0.EventEmitter();
19095
19208
  this.flagTypeNotSelectedErrorMessage = '';
19096
19209
  this.flagTypeErrorMessage = '';
19097
- this.otherFlagTypeSelected = false;
19098
19210
  this.refdataError = false;
19099
19211
  this.flagTypeControlName = 'flagType';
19100
19212
  this.descriptionControlName = 'otherFlagTypeDescription';
@@ -19110,16 +19222,48 @@
19110
19222
  enumerable: false,
19111
19223
  configurable: true
19112
19224
  });
19225
+ Object.defineProperty(SelectFlagTypeComponent.prototype, "selectedFlagType", {
19226
+ get: function () {
19227
+ var _a;
19228
+ return (_a = this.formGroup.get(this.flagTypeControlName)) === null || _a === void 0 ? void 0 : _a.value;
19229
+ },
19230
+ enumerable: false,
19231
+ configurable: true
19232
+ });
19233
+ Object.defineProperty(SelectFlagTypeComponent.prototype, "otherFlagTypeSelected", {
19234
+ get: function () {
19235
+ var _a, _b;
19236
+ 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;
19237
+ },
19238
+ enumerable: false,
19239
+ configurable: true
19240
+ });
19113
19241
  SelectFlagTypeComponent.prototype.ngOnInit = function () {
19114
19242
  var _this = this;
19115
19243
  this.flagTypes = [];
19116
- this.formGroup.addControl(this.flagTypeControlName, new i2.FormControl(''));
19117
- this.formGroup.addControl(this.descriptionControlName, new i2.FormControl(''));
19118
19244
  var flagType = this.formGroup['caseField']
19119
19245
  && this.formGroup['caseField'].id
19120
19246
  && this.formGroup['caseField'].id === this.caseLevelCaseFlagsFieldId
19121
19247
  ? exports.RefdataCaseFlagType.CASE
19122
19248
  : exports.RefdataCaseFlagType.PARTY;
19249
+ if (!this.formGroup.get(this.flagTypeControlName)) {
19250
+ this.formGroup.addControl(this.flagTypeControlName, new i1$2.FormControl(''));
19251
+ }
19252
+ if (!this.formGroup.get(this.descriptionControlName)) {
19253
+ this.formGroup.addControl(this.descriptionControlName, new i1$2.FormControl(''));
19254
+ }
19255
+ // Should clear descriptionControlName if flagTypeControlName is changed
19256
+ this.flagTypeControlChangesSubscription = this.formGroup.get(this.flagTypeControlName).valueChanges
19257
+ .subscribe(function (value) {
19258
+ var _c;
19259
+ _this.formGroup.get(_this.descriptionControlName).setValue('');
19260
+ _this.cachedPath = [];
19261
+ // required to clear language interpreter
19262
+ _this.formGroup.patchValue((_c = {},
19263
+ _c[SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM] = '',
19264
+ _c[SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY] = '',
19265
+ _c));
19266
+ });
19123
19267
  // HMCTS service code for a given jurisdiction is required to retrieve the relevant list of flag types
19124
19268
  this.flagRefdata$ = this.caseFlagRefdataService.getHmctsServiceDetails(this.jurisdiction)
19125
19269
  .pipe(
@@ -19132,6 +19276,15 @@
19132
19276
  next: function (flagTypes) {
19133
19277
  // First (and only) object in the returned array should be the top-level "Party" flag type
19134
19278
  _this.flagTypes = flagTypes[0].childFlags;
19279
+ var formControl = _this.formGroup.get(_this.flagTypeControlName);
19280
+ if (formControl === null || formControl === void 0 ? void 0 : formControl.value) {
19281
+ // Cache Path based on existing flagCode -- needed for nested choices
19282
+ var _c = __read(FlagType.searchPathByFlagTypeObject(formControl.value, _this.flagTypes), 2), foundFlagType = _c[0], path = _c[1];
19283
+ _this.cachedPath = __spread(path, [
19284
+ foundFlagType
19285
+ ]);
19286
+ formControl.setValue(_this.cachedPath[0], { emitEvent: false });
19287
+ }
19135
19288
  },
19136
19289
  error: function (error) {
19137
19290
  _this.onRefdataError(error);
@@ -19139,16 +19292,14 @@
19139
19292
  });
19140
19293
  };
19141
19294
  SelectFlagTypeComponent.prototype.ngOnDestroy = function () {
19295
+ var _a;
19142
19296
  if (this.flagRefdata$) {
19143
19297
  this.flagRefdata$.unsubscribe();
19144
19298
  }
19145
- };
19146
- SelectFlagTypeComponent.prototype.onFlagTypeChanged = function (flagType) {
19147
- this.selectedFlagType = flagType;
19148
- // Display description textbox if 'Other' flag type is selected
19149
- this.otherFlagTypeSelected = this.selectedFlagType.flagCode === this.otherFlagTypeCode;
19299
+ (_a = this.flagTypeControlChangesSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
19150
19300
  };
19151
19301
  SelectFlagTypeComponent.prototype.onNext = function () {
19302
+ var _a, _b;
19152
19303
  // Validate form
19153
19304
  this.validateForm();
19154
19305
  // Return case flag field state, whether the selected flag type (if any) is a parent or not, error messages,
@@ -19157,14 +19308,6 @@
19157
19308
  currentCaseFlagFieldState: exports.CaseFlagFieldState.FLAG_TYPE,
19158
19309
  isParentFlagType: this.selectedFlagType ? this.selectedFlagType.isParent : null,
19159
19310
  errorMessages: this.errorMessages,
19160
- flagName: this.selectedFlagType ? this.selectedFlagType.name : null,
19161
- flagPath: this.selectedFlagType ? this.selectedFlagType.Path.map(function (pathValue) { return Object.assign({ id: null, value: pathValue }); }) : null,
19162
- hearingRelevantFlag: this.selectedFlagType ? this.selectedFlagType.hearingRelevant : null,
19163
- flagCode: this.selectedFlagType ? this.selectedFlagType.flagCode : null,
19164
- // Include the "list of values" (if any); currently applicable to language flag types
19165
- listOfValues: this.selectedFlagType && this.selectedFlagType.listOfValues && this.selectedFlagType.listOfValues.length > 0
19166
- ? this.selectedFlagType.listOfValues
19167
- : null
19168
19311
  });
19169
19312
  // Emit "flag comments optional" event if the user selects a flag type where comments are not mandatory
19170
19313
  if (this.selectedFlagType && !this.selectedFlagType.flagComment) {
@@ -19173,8 +19316,8 @@
19173
19316
  // If the selected flag type is a parent, load the list of child flag types and reset the current selection
19174
19317
  if (this.selectedFlagType && this.selectedFlagType.isParent) {
19175
19318
  this.flagTypes = this.selectedFlagType.childFlags;
19176
- this.formGroup.get(this.flagTypeControlName).setValue('');
19177
- this.selectedFlagType = null;
19319
+ (_a = this.cachedPath) === null || _a === void 0 ? void 0 : _a.shift();
19320
+ this.formGroup.get(this.flagTypeControlName).setValue(((_b = this.cachedPath) === null || _b === void 0 ? void 0 : _b.length) ? this.cachedPath[0] : null, { emitEvent: false });
19178
19321
  }
19179
19322
  };
19180
19323
  SelectFlagTypeComponent.prototype.validateForm = function () {
@@ -19208,42 +19351,14 @@
19208
19351
  return SelectFlagTypeComponent;
19209
19352
  }());
19210
19353
  SelectFlagTypeComponent.ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService)); };
19211
- SelectFlagTypeComponent.ɵcmp = i0__namespace.ɵɵ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) {
19354
+ SelectFlagTypeComponent.ɵcmp = i0__namespace.ɵɵ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) {
19212
19355
  if (rf & 1) {
19213
- i0__namespace.ɵɵelementStart(0, "div", 0);
19214
- i0__namespace.ɵɵelementStart(1, "div", 1);
19215
- i0__namespace.ɵɵelementStart(2, "fieldset", 2);
19216
- i0__namespace.ɵɵelementStart(3, "legend", 3);
19217
- i0__namespace.ɵɵelementStart(4, "h1", 4);
19218
- i0__namespace.ɵɵtext(5);
19219
- i0__namespace.ɵɵelementEnd();
19220
- i0__namespace.ɵɵelementEnd();
19221
- i0__namespace.ɵɵtemplate(6, SelectFlagTypeComponent_div_6_Template, 4, 1, "div", 5);
19222
- i0__namespace.ɵɵelementStart(7, "div", 6);
19223
- i0__namespace.ɵɵtemplate(8, SelectFlagTypeComponent_div_8_Template, 4, 6, "div", 7);
19224
- i0__namespace.ɵɵtemplate(9, SelectFlagTypeComponent_div_9_Template, 6, 9, "div", 8);
19225
- i0__namespace.ɵɵelementEnd();
19226
- i0__namespace.ɵɵelementEnd();
19227
- i0__namespace.ɵɵelementEnd();
19228
- i0__namespace.ɵɵtemplate(10, SelectFlagTypeComponent_div_10_Template, 3, 0, "div", 9);
19229
- i0__namespace.ɵɵelementEnd();
19356
+ i0__namespace.ɵɵtemplate(0, SelectFlagTypeComponent_div_0_Template, 11, 9, "div", 0);
19230
19357
  }
19231
19358
  if (rf & 2) {
19232
- i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
19233
- i0__namespace.ɵɵadvance(1);
19234
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$q, ctx.flagTypeNotSelectedErrorMessage.length > 0));
19235
- i0__namespace.ɵɵadvance(4);
19236
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.caseFlagWizardStepTitle.SELECT_CASE_FLAG, " ");
19237
- i0__namespace.ɵɵadvance(1);
19238
- i0__namespace.ɵɵproperty("ngIf", ctx.flagTypeNotSelectedErrorMessage.length > 0);
19239
- i0__namespace.ɵɵadvance(2);
19240
- i0__namespace.ɵɵproperty("ngForOf", ctx.flagTypes);
19241
- i0__namespace.ɵɵadvance(1);
19242
- i0__namespace.ɵɵproperty("ngIf", ctx.otherFlagTypeSelected);
19243
- i0__namespace.ɵɵadvance(1);
19244
- i0__namespace.ɵɵproperty("ngIf", !ctx.refdataError);
19359
+ i0__namespace.ɵɵproperty("ngIf", ctx.flagTypes == null ? null : ctx.flagTypes.length);
19245
19360
  }
19246
- }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i2__namespace.RadioControlValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], styles: [".hidden[_ngcontent-%COMP%]{display:none}.validation-error[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:#d4351c}"] });
19361
+ }, directives: [i1__namespace.NgIf, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgForOf, i1__namespace$3.RadioControlValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName], styles: [".hidden[_ngcontent-%COMP%]{display:none}.validation-error[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:#d4351c}"] });
19247
19362
  (function () {
19248
19363
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SelectFlagTypeComponent, [{
19249
19364
  type: i0.Component,
@@ -19368,15 +19483,14 @@
19368
19483
  i0__namespace.ɵɵadvance(1);
19369
19484
  i0__namespace.ɵɵproperty("ngIf", ctx_r5.languageCharLimitErrorMessage);
19370
19485
  i0__namespace.ɵɵadvance(1);
19371
- i0__namespace.ɵɵproperty("name", ctx_r5.manualLanguageEntryControlName)("formControlName", ctx_r5.manualLanguageEntryControlName);
19486
+ i0__namespace.ɵɵproperty("name", ctx_r5.SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY)("formControlName", ctx_r5.SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY);
19372
19487
  }
19373
19488
  }
19374
19489
  var SearchLanguageInterpreterComponent = /** @class */ (function () {
19375
19490
  function SearchLanguageInterpreterComponent() {
19491
+ this.SearchLanguageInterpreterControlNames = SearchLanguageInterpreterControlNames;
19376
19492
  this.caseFlagStateEmitter = new i0.EventEmitter();
19377
19493
  this.minSearchCharacters = 3;
19378
- this.languageSearchTermControlName = 'languageSearchTerm';
19379
- this.manualLanguageEntryControlName = 'manualLanguageEntry';
19380
19494
  this.searchTerm = '';
19381
19495
  this.isCheckboxEnabled = false;
19382
19496
  this.errorMessages = [];
@@ -19403,9 +19517,9 @@
19403
19517
  this.searchLanguageInterpreterHint = this.flagCode === this.signLanguageFlagCode
19404
19518
  ? exports.SearchLanguageInterpreterStep.SIGN_HINT_TEXT
19405
19519
  : exports.SearchLanguageInterpreterStep.HINT_TEXT;
19406
- this.formGroup.addControl(this.languageSearchTermControlName, new i2.FormControl());
19407
- this.formGroup.addControl(this.manualLanguageEntryControlName, new i2.FormControl());
19408
- this.filteredLanguages$ = this.formGroup.get(this.languageSearchTermControlName).valueChanges.pipe(
19520
+ this.formGroup.addControl(SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM, new i1$2.FormControl());
19521
+ this.formGroup.addControl(SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY, new i1$2.FormControl());
19522
+ this.filteredLanguages$ = this.formGroup.get(SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM).valueChanges.pipe(
19409
19523
  // Need to check type of input because it changes to object (i.e. Language) when a value is selected from the
19410
19524
  // autocomplete panel, instead of string when a value is being typed in
19411
19525
  operators.map(function (input) { return typeof input === 'string' ? input : input.value; }), operators.map(function (searchTerm) {
@@ -19428,7 +19542,7 @@
19428
19542
  // If the checkbox is disabled, i.e. unchecked, then clear the manual language entry FormControl of any value to
19429
19543
  // prevent it being retained even when the field itself is hidden
19430
19544
  if (!this.isCheckboxEnabled) {
19431
- this.formGroup.get(this.manualLanguageEntryControlName).setValue(null);
19545
+ this.formGroup.get(SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY).setValue(null);
19432
19546
  }
19433
19547
  };
19434
19548
  SearchLanguageInterpreterComponent.prototype.displayLanguage = function (language) {
@@ -19441,39 +19555,39 @@
19441
19555
  this.languageEnteredInBothFieldsErrorMessage = null;
19442
19556
  this.errorMessages = [];
19443
19557
  // Checkbox not enabled means the user has opted to search for and select the language
19444
- if (!this.isCheckboxEnabled && !this.formGroup.get(this.languageSearchTermControlName).value) {
19558
+ if (!this.isCheckboxEnabled && !this.formGroup.get(SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM).value) {
19445
19559
  this.languageNotSelectedErrorMessage = exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_NOT_ENTERED;
19446
19560
  this.errorMessages.push({
19447
19561
  title: '',
19448
19562
  description: exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_NOT_ENTERED,
19449
- fieldId: this.languageSearchTermControlName
19563
+ fieldId: SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM
19450
19564
  });
19451
19565
  }
19452
19566
  // Checkbox enabled means the user has opted to enter the language manually
19453
19567
  if (this.isCheckboxEnabled) {
19454
- if (!this.formGroup.get(this.manualLanguageEntryControlName).value) {
19568
+ if (!this.formGroup.get(SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY).value) {
19455
19569
  this.languageNotEnteredErrorMessage = exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_NOT_ENTERED;
19456
19570
  this.errorMessages.push({
19457
19571
  title: '',
19458
19572
  description: exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_NOT_ENTERED,
19459
- fieldId: this.manualLanguageEntryControlName
19573
+ fieldId: SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY
19460
19574
  });
19461
19575
  }
19462
- else if (this.formGroup.get(this.manualLanguageEntryControlName).value.length > this.languageMaxCharLimit) {
19576
+ else if (this.formGroup.get(SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY).value.length > this.languageMaxCharLimit) {
19463
19577
  this.languageCharLimitErrorMessage = exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_CHAR_LIMIT_EXCEEDED;
19464
19578
  this.errorMessages.push({
19465
19579
  title: '',
19466
19580
  description: exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_CHAR_LIMIT_EXCEEDED,
19467
- fieldId: this.manualLanguageEntryControlName
19581
+ fieldId: SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY
19468
19582
  });
19469
19583
  }
19470
- else if (this.formGroup.get(this.languageSearchTermControlName).value) {
19584
+ else if (this.formGroup.get(SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM).value) {
19471
19585
  // Language entry is permitted in only one field at a time
19472
19586
  this.languageEnteredInBothFieldsErrorMessage = exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_ENTERED_IN_BOTH_FIELDS;
19473
19587
  this.errorMessages.push({
19474
19588
  title: '',
19475
19589
  description: exports.SearchLanguageInterpreterErrorMessage.LANGUAGE_ENTERED_IN_BOTH_FIELDS,
19476
- fieldId: this.languageSearchTermControlName
19590
+ fieldId: SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM
19477
19591
  });
19478
19592
  }
19479
19593
  }
@@ -19537,7 +19651,7 @@
19537
19651
  i0__namespace.ɵɵadvance(1);
19538
19652
  i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c0$p, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
19539
19653
  i0__namespace.ɵɵadvance(2);
19540
- i0__namespace.ɵɵproperty("for", ctx.languageSearchTermControlName);
19654
+ i0__namespace.ɵɵproperty("for", ctx.SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM);
19541
19655
  i0__namespace.ɵɵadvance(1);
19542
19656
  i0__namespace.ɵɵtextInterpolate1(" ", ctx.searchLanguageInterpreterTitle, " ");
19543
19657
  i0__namespace.ɵɵadvance(2);
@@ -19547,7 +19661,7 @@
19547
19661
  i0__namespace.ɵɵadvance(1);
19548
19662
  i0__namespace.ɵɵproperty("ngIf", ctx.languageEnteredInBothFieldsErrorMessage);
19549
19663
  i0__namespace.ɵɵadvance(1);
19550
- i0__namespace.ɵɵproperty("formControlName", ctx.languageSearchTermControlName)("matAutocomplete", _r2);
19664
+ i0__namespace.ɵɵproperty("formControlName", ctx.SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM)("matAutocomplete", _r2);
19551
19665
  i0__namespace.ɵɵadvance(1);
19552
19666
  i0__namespace.ɵɵproperty("displayWith", ctx.displayLanguage);
19553
19667
  i0__namespace.ɵɵadvance(2);
@@ -19559,7 +19673,7 @@
19559
19673
  i0__namespace.ɵɵadvance(1);
19560
19674
  i0__namespace.ɵɵproperty("ngIf", ctx.isCheckboxEnabled);
19561
19675
  }
19562
- }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i3__namespace$1.MatInput, i2__namespace.DefaultValueAccessor, i5__namespace.MatAutocompleteTrigger, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i5__namespace.MatAutocomplete, i1__namespace.NgForOf, i6__namespace.MatOption], pipes: [i1__namespace.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}"] });
19676
+ }, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i3__namespace$1.MatInput, i1__namespace$3.DefaultValueAccessor, i5__namespace.MatAutocompleteTrigger, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName, i5__namespace.MatAutocomplete, i1__namespace.NgForOf, i6__namespace.MatOption], pipes: [i1__namespace.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}"] });
19563
19677
  (function () {
19564
19678
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SearchLanguageInterpreterComponent, [{
19565
19679
  type: i0.Component,
@@ -19691,7 +19805,14 @@
19691
19805
  }
19692
19806
  // Add a FormControl for the selected flag location if there is at least one flags instance remaining after filtering
19693
19807
  if (this.filteredFlagsData && this.filteredFlagsData.length > 0) {
19694
- this.formGroup.addControl(this.selectedLocationControlName, new i2.FormControl(null));
19808
+ var formControl_1 = this.formGroup.get(this.selectedLocationControlName);
19809
+ if (!formControl_1) {
19810
+ this.formGroup.addControl(this.selectedLocationControlName, new i1$2.FormControl(null));
19811
+ }
19812
+ else {
19813
+ // Needs to be setValue as they have different object references -- we use the pathToFlagsFormGroup key
19814
+ formControl_1.setValue(this.filteredFlagsData.find(function (item) { return item.pathToFlagsFormGroup === formControl_1.value.pathToFlagsFormGroup; }));
19815
+ }
19695
19816
  }
19696
19817
  else {
19697
19818
  // No filtered flags instances mean there are no parties to select from. The case has not been configured properly
@@ -19708,9 +19829,6 @@
19708
19829
  this.caseFlagStateEmitter.emit({
19709
19830
  currentCaseFlagFieldState: exports.CaseFlagFieldState.FLAG_LOCATION,
19710
19831
  errorMessages: this.errorMessages,
19711
- selectedFlagsLocation: this.formGroup.get(this.selectedLocationControlName).value
19712
- ? this.formGroup.get(this.selectedLocationControlName).value
19713
- : null
19714
19832
  });
19715
19833
  };
19716
19834
  SelectFlagLocationComponent.prototype.validateSelection = function () {
@@ -19768,7 +19886,7 @@
19768
19886
  i0__namespace.ɵɵadvance(1);
19769
19887
  i0__namespace.ɵɵproperty("ngIf", !ctx.caseFlagsConfigError);
19770
19888
  }
19771
- }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i2__namespace.RadioControlValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], encapsulation: 2 });
19889
+ }, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$3.RadioControlValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName], encapsulation: 2 });
19772
19890
  (function () {
19773
19891
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SelectFlagLocationComponent, [{
19774
19892
  type: i0.Component,
@@ -19837,7 +19955,9 @@
19837
19955
  this.addCommentsTitle = exports.CaseFlagWizardStepTitle.ADD_FLAG_COMMENTS;
19838
19956
  this.addCommentsHint = exports.AddCommentsStep.HINT_TEXT;
19839
19957
  this.addCommentsCharLimitInfo = exports.AddCommentsStep.CHARACTER_LIMIT_INFO;
19840
- this.formGroup.addControl(this.flagCommentsControlName, new i2.FormControl(''));
19958
+ if (!this.formGroup.get(this.flagCommentsControlName)) {
19959
+ this.formGroup.addControl(this.flagCommentsControlName, new i1$2.FormControl(''));
19960
+ }
19841
19961
  };
19842
19962
  AddCommentsComponent.prototype.onNext = function () {
19843
19963
  // Validate flag comments entry
@@ -19921,7 +20041,7 @@
19921
20041
  i0__namespace.ɵɵadvance(2);
19922
20042
  i0__namespace.ɵɵtextInterpolate1(" ", ctx.addCommentsCharLimitInfo, " ");
19923
20043
  }
19924
- }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], encapsulation: 2 });
20044
+ }, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName], encapsulation: 2 });
19925
20045
  (function () {
19926
20046
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AddCommentsComponent, [{
19927
20047
  type: i0.Component,
@@ -19929,7 +20049,7 @@
19929
20049
  selector: 'ccd-add-comments',
19930
20050
  templateUrl: './add-comments.component.html'
19931
20051
  }]
19932
- }], null, { formGroup: [{
20052
+ }], function () { return []; }, { formGroup: [{
19933
20053
  type: i0.Input
19934
20054
  }], optional: [{
19935
20055
  type: i0.Input
@@ -20009,7 +20129,7 @@
20009
20129
  }
20010
20130
  // Add a FormControl for the selected case flag if there is at least one flags instance remaining after mapping
20011
20131
  if (this.flagsDisplayData && this.flagsDisplayData.length > 0) {
20012
- this.formGroup.addControl(this.selectedControlName, new i2.FormControl(null));
20132
+ this.formGroup.addControl(this.selectedControlName, new i1$2.FormControl(null));
20013
20133
  }
20014
20134
  else {
20015
20135
  // No flags display data means there are no flags to select from. The user cannot proceed with a flag update.
@@ -20153,7 +20273,7 @@
20153
20273
  i0__namespace.ɵɵadvance(1);
20154
20274
  i0__namespace.ɵɵproperty("ngIf", !ctx.noFlagsError);
20155
20275
  }
20156
- }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i2__namespace.RadioControlValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], styles: [".flag-name-and-description{font-weight:700}"], encapsulation: 2 });
20276
+ }, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$3.RadioControlValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName], styles: [".flag-name-and-description{font-weight:700}"], encapsulation: 2 });
20157
20277
  (function () {
20158
20278
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ManageCaseFlagsComponent, [{
20159
20279
  type: i0.Component,
@@ -20244,11 +20364,11 @@
20244
20364
  UpdateFlagComponent.prototype.ngOnInit = function () {
20245
20365
  if (this.selectedFlag && this.selectedFlag.flagDetailDisplay && this.selectedFlag.flagDetailDisplay.flagDetail) {
20246
20366
  var flagDetail = this.selectedFlag.flagDetailDisplay.flagDetail;
20247
- this.formGroup.addControl(this.FLAG_STATUS_CONTROL_NAME, new i2.FormControl(flagDetail.status));
20248
- this.formGroup.addControl(this.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME, new i2.FormControl(''));
20249
- this.formGroup.addControl(this.FLAG_WELSH_TRANSLATION_CONTROL_NAME, new i2.FormControl(false));
20367
+ this.formGroup.addControl(this.FLAG_STATUS_CONTROL_NAME, new i1$2.FormControl(flagDetail.status));
20368
+ this.formGroup.addControl(this.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME, new i1$2.FormControl(''));
20369
+ this.formGroup.addControl(this.FLAG_WELSH_TRANSLATION_CONTROL_NAME, new i1$2.FormControl(false));
20250
20370
  // Populate flag comments text area with existing comments
20251
- this.formGroup.addControl(this.FLAG_COMMENTS_CONTROL_NAME, new i2.FormControl(flagDetail.flagComment));
20371
+ this.formGroup.addControl(this.FLAG_COMMENTS_CONTROL_NAME, new i1$2.FormControl(flagDetail.flagComment));
20252
20372
  if (flagDetail.name) {
20253
20373
  this.updateFlagTitle =
20254
20374
  exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \"" + flagDetail.name + (flagDetail.subTypeValue ? ", " + flagDetail.subTypeValue + "\"" : '"');
@@ -20399,7 +20519,7 @@
20399
20519
  i0__namespace.ɵɵadvance(1);
20400
20520
  i0__namespace.ɵɵproperty("for", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME);
20401
20521
  }
20402
- }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i1__namespace.NgForOf], pipes: [EnumDisplayDescriptionPipe, i1__namespace.LowerCasePipe], encapsulation: 2 });
20522
+ }, directives: [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName, i1__namespace.NgForOf], pipes: [EnumDisplayDescriptionPipe, i1__namespace.LowerCasePipe], encapsulation: 2 });
20403
20523
  (function () {
20404
20524
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(UpdateFlagComponent, [{
20405
20525
  type: i0.Component,
@@ -20416,7 +20536,49 @@
20416
20536
  }] });
20417
20537
  })();
20418
20538
 
20419
- function CaseFlagSummaryListComponent_dl_0_div_16_Template(rf, ctx) {
20539
+ function CaseFlagSummaryListComponent_dl_0_dd_6_Template(rf, ctx) {
20540
+ if (rf & 1) {
20541
+ var _r6_1 = i0__namespace.ɵɵgetCurrentView();
20542
+ i0__namespace.ɵɵelementStart(0, "dd", 7);
20543
+ i0__namespace.ɵɵelementStart(1, "a", 8);
20544
+ i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_dd_6_Template_a_click_1_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(2); return ctx_r5.changeButtonEmitter.emit(ctx_r5.CaseFlagFieldState.FLAG_LOCATION); });
20545
+ i0__namespace.ɵɵtext(2, " Change");
20546
+ i0__namespace.ɵɵelementStart(3, "span", 9);
20547
+ i0__namespace.ɵɵtext(4, " party name");
20548
+ i0__namespace.ɵɵelementEnd();
20549
+ i0__namespace.ɵɵelementEnd();
20550
+ i0__namespace.ɵɵelementEnd();
20551
+ }
20552
+ }
20553
+ function CaseFlagSummaryListComponent_dl_0_dd_12_Template(rf, ctx) {
20554
+ if (rf & 1) {
20555
+ var _r8_1 = i0__namespace.ɵɵgetCurrentView();
20556
+ i0__namespace.ɵɵelementStart(0, "dd", 7);
20557
+ i0__namespace.ɵɵelementStart(1, "a", 8);
20558
+ i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_dd_12_Template_a_click_1_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var ctx_r7 = i0__namespace.ɵɵnextContext(2); return ctx_r7.changeButtonEmitter.emit(ctx_r7.CaseFlagFieldState.FLAG_TYPE); });
20559
+ i0__namespace.ɵɵtext(2, " Change");
20560
+ i0__namespace.ɵɵelementStart(3, "span", 9);
20561
+ i0__namespace.ɵɵtext(4, " description");
20562
+ i0__namespace.ɵɵelementEnd();
20563
+ i0__namespace.ɵɵelementEnd();
20564
+ i0__namespace.ɵɵelementEnd();
20565
+ }
20566
+ }
20567
+ function CaseFlagSummaryListComponent_dl_0_dd_18_Template(rf, ctx) {
20568
+ if (rf & 1) {
20569
+ var _r10_1 = i0__namespace.ɵɵgetCurrentView();
20570
+ i0__namespace.ɵɵelementStart(0, "dd", 7);
20571
+ i0__namespace.ɵɵelementStart(1, "a", 8);
20572
+ i0__namespace.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_dd_18_Template_a_click_1_listener() { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r9 = i0__namespace.ɵɵnextContext(2); return ctx_r9.changeButtonEmitter.emit(ctx_r9.CaseFlagFieldState.FLAG_COMMENTS); });
20573
+ i0__namespace.ɵɵtext(2, " Change");
20574
+ i0__namespace.ɵɵelementStart(3, "span", 9);
20575
+ i0__namespace.ɵɵtext(4, " comments");
20576
+ i0__namespace.ɵɵelementEnd();
20577
+ i0__namespace.ɵɵelementEnd();
20578
+ i0__namespace.ɵɵelementEnd();
20579
+ }
20580
+ }
20581
+ function CaseFlagSummaryListComponent_dl_0_div_19_Template(rf, ctx) {
20420
20582
  if (rf & 1) {
20421
20583
  i0__namespace.ɵɵelementStart(0, "div", 2);
20422
20584
  i0__namespace.ɵɵelementStart(1, "dt", 3);
@@ -20425,12 +20587,13 @@
20425
20587
  i0__namespace.ɵɵelementStart(3, "dd", 4);
20426
20588
  i0__namespace.ɵɵtext(4);
20427
20589
  i0__namespace.ɵɵelementEnd();
20590
+ i0__namespace.ɵɵelement(5, "dd", 7);
20428
20591
  i0__namespace.ɵɵelementEnd();
20429
20592
  }
20430
20593
  if (rf & 2) {
20431
- var ctx_r1 = i0__namespace.ɵɵnextContext(2);
20594
+ var ctx_r4 = i0__namespace.ɵɵnextContext(2);
20432
20595
  i0__namespace.ɵɵadvance(4);
20433
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.flagStatus, " ");
20596
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r4.flagStatus, " ");
20434
20597
  }
20435
20598
  }
20436
20599
  function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) {
@@ -20443,24 +20606,27 @@
20443
20606
  i0__namespace.ɵɵelementStart(4, "dd", 4);
20444
20607
  i0__namespace.ɵɵtext(5);
20445
20608
  i0__namespace.ɵɵelementEnd();
20609
+ i0__namespace.ɵɵtemplate(6, CaseFlagSummaryListComponent_dl_0_dd_6_Template, 5, 0, "dd", 5);
20446
20610
  i0__namespace.ɵɵelementEnd();
20447
- i0__namespace.ɵɵelementStart(6, "div", 2);
20448
- i0__namespace.ɵɵelementStart(7, "dt", 3);
20449
- i0__namespace.ɵɵtext(8, " Flag type ");
20611
+ i0__namespace.ɵɵelementStart(7, "div", 2);
20612
+ i0__namespace.ɵɵelementStart(8, "dt", 3);
20613
+ i0__namespace.ɵɵtext(9, " Flag type ");
20450
20614
  i0__namespace.ɵɵelementEnd();
20451
- i0__namespace.ɵɵelementStart(9, "dd", 4);
20452
- i0__namespace.ɵɵtext(10);
20615
+ i0__namespace.ɵɵelementStart(10, "dd", 4);
20616
+ i0__namespace.ɵɵtext(11);
20453
20617
  i0__namespace.ɵɵelementEnd();
20618
+ i0__namespace.ɵɵtemplate(12, CaseFlagSummaryListComponent_dl_0_dd_12_Template, 5, 0, "dd", 5);
20454
20619
  i0__namespace.ɵɵelementEnd();
20455
- i0__namespace.ɵɵelementStart(11, "div", 2);
20456
- i0__namespace.ɵɵelementStart(12, "dt", 3);
20457
- i0__namespace.ɵɵtext(13, " Comments ");
20620
+ i0__namespace.ɵɵelementStart(13, "div", 2);
20621
+ i0__namespace.ɵɵelementStart(14, "dt", 3);
20622
+ i0__namespace.ɵɵtext(15, " Comments ");
20458
20623
  i0__namespace.ɵɵelementEnd();
20459
- i0__namespace.ɵɵelementStart(14, "dd", 4);
20460
- i0__namespace.ɵɵtext(15);
20624
+ i0__namespace.ɵɵelementStart(16, "dd", 4);
20625
+ i0__namespace.ɵɵtext(17);
20461
20626
  i0__namespace.ɵɵelementEnd();
20627
+ i0__namespace.ɵɵtemplate(18, CaseFlagSummaryListComponent_dl_0_dd_18_Template, 5, 0, "dd", 5);
20462
20628
  i0__namespace.ɵɵelementEnd();
20463
- i0__namespace.ɵɵtemplate(16, CaseFlagSummaryListComponent_dl_0_div_16_Template, 5, 1, "div", 5);
20629
+ i0__namespace.ɵɵtemplate(19, CaseFlagSummaryListComponent_dl_0_div_19_Template, 6, 1, "div", 6);
20464
20630
  i0__namespace.ɵɵelementEnd();
20465
20631
  }
20466
20632
  if (rf & 2) {
@@ -20469,17 +20635,25 @@
20469
20635
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.addUpdateFlagHeaderText, " ");
20470
20636
  i0__namespace.ɵɵadvance(2);
20471
20637
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.flagForSummaryDisplay.partyName || ctx_r0.caseLevelLocation, " ");
20638
+ i0__namespace.ɵɵadvance(1);
20639
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.summaryListDisplayMode === ctx_r0.displayMode.CREATE);
20472
20640
  i0__namespace.ɵɵadvance(5);
20473
20641
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.flagDescription, " ");
20642
+ i0__namespace.ɵɵadvance(1);
20643
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.summaryListDisplayMode === ctx_r0.displayMode.CREATE);
20474
20644
  i0__namespace.ɵɵadvance(5);
20475
20645
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.flagComments, " ");
20476
20646
  i0__namespace.ɵɵadvance(1);
20647
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.summaryListDisplayMode === ctx_r0.displayMode.CREATE);
20648
+ i0__namespace.ɵɵadvance(1);
20477
20649
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.summaryListDisplayMode === ctx_r0.displayMode.MANAGE);
20478
20650
  }
20479
20651
  }
20480
20652
  var CaseFlagSummaryListComponent = /** @class */ (function () {
20481
20653
  function CaseFlagSummaryListComponent() {
20654
+ this.changeButtonEmitter = new i0.EventEmitter();
20482
20655
  this.displayMode = exports.CaseFlagSummaryListDisplayMode;
20656
+ this.CaseFlagFieldState = exports.CaseFlagFieldState;
20483
20657
  this.caseLevelLocation = 'Case level';
20484
20658
  this.updateFlagHeaderText = 'Update flag for';
20485
20659
  this.addFlagHeaderText = 'Add flag to';
@@ -20499,9 +20673,9 @@
20499
20673
  return CaseFlagSummaryListComponent;
20500
20674
  }());
20501
20675
  CaseFlagSummaryListComponent.ɵfac = function CaseFlagSummaryListComponent_Factory(t) { return new (t || CaseFlagSummaryListComponent)(); };
20502
- CaseFlagSummaryListComponent.ɵcmp = i0__namespace.ɵɵ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) {
20676
+ CaseFlagSummaryListComponent.ɵcmp = i0__namespace.ɵɵ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) {
20503
20677
  if (rf & 1) {
20504
- i0__namespace.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template, 17, 5, "dl", 0);
20678
+ i0__namespace.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template, 20, 8, "dl", 0);
20505
20679
  }
20506
20680
  if (rf & 2) {
20507
20681
  i0__namespace.ɵɵproperty("ngIf", ctx.flagForSummaryDisplay);
@@ -20514,10 +20688,12 @@
20514
20688
  selector: 'ccd-case-flag-summary-list',
20515
20689
  templateUrl: './case-flag-summary-list.component.html'
20516
20690
  }]
20517
- }], null, { flagForSummaryDisplay: [{
20691
+ }], function () { return []; }, { flagForSummaryDisplay: [{
20518
20692
  type: i0.Input
20519
20693
  }], summaryListDisplayMode: [{
20520
20694
  type: i0.Input
20695
+ }], changeButtonEmitter: [{
20696
+ type: i0.Output
20521
20697
  }] });
20522
20698
  })();
20523
20699
 
@@ -21282,7 +21458,7 @@
21282
21458
  return _super !== null && _super.apply(this, arguments) || this;
21283
21459
  }
21284
21460
  WriteDateFieldComponent.prototype.ngOnInit = function () {
21285
- this.dateControl = this.registerControl(new i2.FormControl(this.caseField.value));
21461
+ this.dateControl = this.registerControl(new i1$2.FormControl(this.caseField.value));
21286
21462
  };
21287
21463
  WriteDateFieldComponent.prototype.isDateTime = function () {
21288
21464
  return this.caseField.field_type.id === 'DateTime';
@@ -21315,7 +21491,7 @@
21315
21491
  i0__namespace.ɵɵadvance(1);
21316
21492
  i0__namespace.ɵɵproperty("id", ctx.id())("isDateTime", ctx.isDateTime())("mandatory", i0__namespace.ɵɵpipeBind1(7, 10, ctx.caseField))("isInvalid", ctx.dateControl.errors && (ctx.dateControl.dirty || ctx.dateControl.touched))("formControl", ctx.dateControl);
21317
21493
  }
21318
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, DateInputComponent, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [IsMandatoryPipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
21494
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, DateInputComponent, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective], pipes: [IsMandatoryPipe, FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
21319
21495
  var ɵWriteDateFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDateFieldComponent);
21320
21496
  (function () {
21321
21497
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDateFieldComponent, [{
@@ -21417,7 +21593,7 @@
21417
21593
  _this.stringEdited = false;
21418
21594
  _this.minError = false;
21419
21595
  _this.maxError = false;
21420
- _this.dateControl = new i2.FormControl(new Date());
21596
+ _this.dateControl = new i1$2.FormControl(new Date());
21421
21597
  _this.minimumDate = new Date('01/01/1800');
21422
21598
  _this.maximumDate = null;
21423
21599
  _this.momentFormat = 'YYYY-MM-DDTHH:mm:ss.SSS';
@@ -21429,8 +21605,8 @@
21429
21605
  this.configureDatePicker(this.dateTimeEntryFormat);
21430
21606
  // set date control based on mandatory field
21431
21607
  this.dateControl = (this.caseField.isMandatory ?
21432
- this.registerControl(new i2.FormControl(this.caseField.value || '', [i2.Validators.required]))
21433
- : this.registerControl(new i2.FormControl(this.caseField.value)));
21608
+ this.registerControl(new i1$2.FormControl(this.caseField.value || '', [i1$2.Validators.required]))
21609
+ : this.registerControl(new i1$2.FormControl(this.caseField.value)));
21434
21610
  // in resetting the format just after the page initialises, the input can be reformatted
21435
21611
  // otherwise the last format given will be how the text shown will be displayed
21436
21612
  setTimeout(function () {
@@ -21618,7 +21794,7 @@
21618
21794
  i0__namespace.ɵɵadvance(1);
21619
21795
  i0__namespace.ɵɵ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);
21620
21796
  }
21621
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i4__namespace.NgxMatDatetimeInput, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i5__namespace$1.MatDatepickerToggle, i6__namespace$1.MatSuffix, i4__namespace.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 });
21797
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i4__namespace.NgxMatDatetimeInput, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i5__namespace$1.MatDatepickerToggle, i6__namespace$1.MatSuffix, i4__namespace.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 });
21622
21798
  (function () {
21623
21799
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DatetimePickerComponent, [{
21624
21800
  type: i0.Component,
@@ -22198,7 +22374,7 @@
22198
22374
  i0__namespace.ɵɵadvance(1);
22199
22375
  i0__namespace.ɵɵproperty("innerHTML", i0__namespace.ɵɵpipeBind1(2, 1, ctx.content), i0__namespace.ɵɵsanitizeHtml);
22200
22376
  }
22201
- }, directives: [i1__namespace$5.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
22377
+ }, directives: [i1__namespace$6.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
22202
22378
  (function () {
22203
22379
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MarkdownComponent, [{
22204
22380
  type: i0.Component,
@@ -22625,8 +22801,8 @@
22625
22801
  ], imports: [[
22626
22802
  i1.CommonModule,
22627
22803
  i1$1.RouterModule,
22628
- i2.FormsModule,
22629
- i2.ReactiveFormsModule,
22804
+ i1$2.FormsModule,
22805
+ i1$2.ReactiveFormsModule,
22630
22806
  CaseEditDataModule,
22631
22807
  PaletteUtilsModule,
22632
22808
  PipesModule,
@@ -22637,7 +22813,7 @@
22637
22813
  FormModule,
22638
22814
  TabsModule,
22639
22815
  LabelSubstitutorModule,
22640
- i1$5.NgxMdModule,
22816
+ i1$6.NgxMdModule,
22641
22817
  i4.NgxMatDatetimePickerModule,
22642
22818
  i4.NgxMatTimepickerModule,
22643
22819
  i4.NgxMatNativeDateModule,
@@ -22646,10 +22822,10 @@
22646
22822
  i5$1.MatDatepickerModule,
22647
22823
  i5.MatAutocompleteModule,
22648
22824
  i7.CdkTreeModule,
22649
- i1$4.OverlayModule,
22825
+ i1$5.OverlayModule,
22650
22826
  i3.PaymentLibModule,
22651
- i2$1.ScrollToModule.forRoot(),
22652
- i1$3.MatDialogModule,
22827
+ i2.ScrollToModule.forRoot(),
22828
+ i1$4.MatDialogModule,
22653
22829
  i11.MediaViewerModule,
22654
22830
  LoadingModule
22655
22831
  ], i4.NgxMatDatetimePickerModule,
@@ -22751,8 +22927,8 @@
22751
22927
  CaseFileViewFolderDocumentActionsComponent,
22752
22928
  CaseFileViewFolderSelectorComponent], imports: [i1.CommonModule,
22753
22929
  i1$1.RouterModule,
22754
- i2.FormsModule,
22755
- i2.ReactiveFormsModule,
22930
+ i1$2.FormsModule,
22931
+ i1$2.ReactiveFormsModule,
22756
22932
  CaseEditDataModule,
22757
22933
  PaletteUtilsModule,
22758
22934
  PipesModule,
@@ -22763,7 +22939,7 @@
22763
22939
  FormModule,
22764
22940
  TabsModule,
22765
22941
  LabelSubstitutorModule,
22766
- i1$5.NgxMdModule,
22942
+ i1$6.NgxMdModule,
22767
22943
  i4.NgxMatDatetimePickerModule,
22768
22944
  i4.NgxMatTimepickerModule,
22769
22945
  i4.NgxMatNativeDateModule,
@@ -22772,8 +22948,8 @@
22772
22948
  i5$1.MatDatepickerModule,
22773
22949
  i5.MatAutocompleteModule,
22774
22950
  i7.CdkTreeModule,
22775
- i1$4.OverlayModule,
22776
- i3.PaymentLibModule, i2__namespace$1.ScrollToModule, i1$3.MatDialogModule,
22951
+ i1$5.OverlayModule,
22952
+ i3.PaymentLibModule, i2__namespace.ScrollToModule, i1$4.MatDialogModule,
22777
22953
  i11.MediaViewerModule,
22778
22954
  LoadingModule], exports: [i4.NgxMatDatetimePickerModule,
22779
22955
  i4.NgxMatNativeDateModule,
@@ -22867,8 +23043,8 @@
22867
23043
  imports: [
22868
23044
  i1.CommonModule,
22869
23045
  i1$1.RouterModule,
22870
- i2.FormsModule,
22871
- i2.ReactiveFormsModule,
23046
+ i1$2.FormsModule,
23047
+ i1$2.ReactiveFormsModule,
22872
23048
  CaseEditDataModule,
22873
23049
  PaletteUtilsModule,
22874
23050
  PipesModule,
@@ -22879,7 +23055,7 @@
22879
23055
  FormModule,
22880
23056
  TabsModule,
22881
23057
  LabelSubstitutorModule,
22882
- i1$5.NgxMdModule,
23058
+ i1$6.NgxMdModule,
22883
23059
  i4.NgxMatDatetimePickerModule,
22884
23060
  i4.NgxMatTimepickerModule,
22885
23061
  i4.NgxMatNativeDateModule,
@@ -22888,10 +23064,10 @@
22888
23064
  i5$1.MatDatepickerModule,
22889
23065
  i5.MatAutocompleteModule,
22890
23066
  i7.CdkTreeModule,
22891
- i1$4.OverlayModule,
23067
+ i1$5.OverlayModule,
22892
23068
  i3.PaymentLibModule,
22893
- i2$1.ScrollToModule.forRoot(),
22894
- i1$3.MatDialogModule,
23069
+ i2.ScrollToModule.forRoot(),
23070
+ i1$4.MatDialogModule,
22895
23071
  i11.MediaViewerModule,
22896
23072
  LoadingModule
22897
23073
  ],
@@ -22936,7 +23112,7 @@
22936
23112
  }]
22937
23113
  }], null, null);
22938
23114
  })();
22939
- i0__namespace.ɵɵsetComponentScope(FieldReadComponent, [FieldReadLabelComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], []);
23115
+ i0__namespace.ɵɵsetComponentScope(FieldReadComponent, [FieldReadLabelComponent, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective], []);
22940
23116
  i0__namespace.ɵɵsetComponentScope(LabelFieldComponent, [LabelSubstitutorDirective, MarkdownComponent], []);
22941
23117
  i0__namespace.ɵɵsetComponentScope(CaseHistoryViewerFieldComponent, [EventLogComponent], []);
22942
23118
  i0__namespace.ɵɵsetComponentScope(EventLogComponent, [i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, EventLogTableComponent, i1__namespace.NgIf, EventLogDetailsComponent], []);
@@ -22953,21 +23129,21 @@
22953
23129
  i0__namespace.ɵɵsetComponentScope(ReadComplexFieldCollectionTableComponent, [i1__namespace.NgForOf, i1__namespace.NgIf, FieldReadComponent,
22954
23130
  ReadCaseLinkFieldComponent], [ReadFieldsFilterPipe, CcdCollectionTableCaseFieldsFilterPipe, i1__namespace.KeyValuePipe, IsCompoundPipe]);
22955
23131
  i0__namespace.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, CaseFlagSummaryListComponent, i1__namespace.NgSwitchDefault, i1__namespace.NgForOf, i1__namespace.NgIf, CaseFlagTableComponent], []);
22956
- i0__namespace.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1__namespace.NgIf, i1__namespace.NgClass, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i2__namespace.SelectControlValueAccessor, i1__namespace.NgForOf, i2__namespace.NgSelectOption, i2__namespace.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe]);
22957
- i0__namespace.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
23132
+ i0__namespace.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1__namespace.NgIf, i1__namespace.NgClass, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i1__namespace$3.SelectControlValueAccessor, i1__namespace.NgForOf, i1__namespace$3.NgSelectOption, i1__namespace$3.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective], [FieldLabelPipe]);
23133
+ i0__namespace.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
22958
23134
  i0__namespace.ɵɵsetComponentScope(WriteDocumentFieldComponent, [i1__namespace.NgClass, i1__namespace.NgIf, ReadDocumentFieldComponent], [FieldLabelPipe]);
22959
- i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1__namespace.NgIf, DatetimePickerComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, WriteDateFieldComponent], []);
22960
- i0__namespace.ɵɵsetComponentScope(WriteCaseFlagFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgSwitch, i1__namespace.NgClass, i1__namespace.NgSwitchCase, SelectFlagLocationComponent,
23135
+ i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1__namespace.NgIf, DatetimePickerComponent, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, WriteDateFieldComponent], []);
23136
+ i0__namespace.ɵɵsetComponentScope(WriteCaseFlagFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgSwitch, i1__namespace.NgClass, i1__namespace.NgSwitchCase, SelectFlagLocationComponent,
22961
23137
  SelectFlagTypeComponent,
22962
23138
  SearchLanguageInterpreterComponent,
22963
23139
  AddCommentsComponent,
22964
23140
  ManageCaseFlagsComponent,
22965
23141
  UpdateFlagComponent], []);
22966
- i0__namespace.ɵɵsetComponentScope(WriteOrganisationFieldComponent, [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i1__namespace.NgClass, i1__namespace.NgForOf, MarkdownComponent,
23142
+ i0__namespace.ɵɵsetComponentScope(WriteOrganisationFieldComponent, [i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgIf, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i1__namespace.NgClass, i1__namespace.NgForOf, MarkdownComponent,
22967
23143
  WriteOrganisationComplexFieldComponent], [i1__namespace.AsyncPipe]);
22968
23144
  i0__namespace.ɵɵsetComponentScope(WriteOrderSummaryFieldComponent, [ReadOrderSummaryFieldComponent], []);
22969
- i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1__namespace.NgIf, DatetimePickerComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, WriteDateFieldComponent], []);
22970
- i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
23145
+ i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1__namespace.NgIf, DatetimePickerComponent, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, WriteDateFieldComponent], []);
23146
+ i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
22971
23147
  i0__namespace.ɵɵsetComponentScope(
22972
23148
  // ComponentLauncher web components
22973
23149
  CaseFileViewFieldComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
@@ -23112,7 +23288,7 @@
23112
23288
  }
23113
23289
  function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_th_2_Template(rf, ctx) {
23114
23290
  if (rf & 1) {
23115
- i0__namespace.ɵɵelementStart(0, "th", 36);
23291
+ i0__namespace.ɵɵelementStart(0, "th", 34);
23116
23292
  i0__namespace.ɵɵelementStart(1, "span", 29);
23117
23293
  i0__namespace.ɵɵtext(2);
23118
23294
  i0__namespace.ɵɵelementEnd();
@@ -23124,22 +23300,37 @@
23124
23300
  i0__namespace.ɵɵtextInterpolate(field_r21.label);
23125
23301
  }
23126
23302
  }
23127
- function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template(rf, ctx) {
23303
+ 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) {
23128
23304
  if (rf & 1) {
23129
- var _r28_1 = i0__namespace.ɵɵgetCurrentView();
23305
+ var _r29_1 = i0__namespace.ɵɵgetCurrentView();
23130
23306
  i0__namespace.ɵɵelementStart(0, "a", 13);
23131
- i0__namespace.ɵɵ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__namespace.ɵɵrestoreView(_r28_1); var page_r18 = i0__namespace.ɵɵnextContext(4).$implicit; var ctx_r26 = i0__namespace.ɵɵnextContext(3); return ctx_r26.navigateToPage(page_r18.id); });
23307
+ i0__namespace.ɵɵ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__namespace.ɵɵrestoreView(_r29_1); var page_r18 = i0__namespace.ɵɵnextContext(5).$implicit; var ctx_r27 = i0__namespace.ɵɵnextContext(3); return ctx_r27.navigateToPage(page_r18.id); });
23132
23308
  i0__namespace.ɵɵelementStart(1, "span", 29);
23133
23309
  i0__namespace.ɵɵtext(2, "Change");
23134
23310
  i0__namespace.ɵɵelementEnd();
23135
23311
  i0__namespace.ɵɵelementEnd();
23136
23312
  }
23137
23313
  if (rf & 2) {
23138
- var field_r21 = i0__namespace.ɵɵnextContext(2).$implicit;
23314
+ var field_r21 = i0__namespace.ɵɵnextContext(3).$implicit;
23139
23315
  i0__namespace.ɵɵadvance(1);
23140
23316
  i0__namespace.ɵɵattributeInterpolate1("aria-label", "Change ", field_r21.label, "");
23141
23317
  }
23142
23318
  }
23319
+ 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) {
23320
+ if (rf & 1) {
23321
+ i0__namespace.ɵɵelementContainerStart(0);
23322
+ i0__namespace.ɵɵelementStart(1, "td", 35);
23323
+ i0__namespace.ɵɵ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);
23324
+ i0__namespace.ɵɵelementEnd();
23325
+ i0__namespace.ɵɵelementContainerEnd();
23326
+ }
23327
+ if (rf & 2) {
23328
+ var field_r21 = i0__namespace.ɵɵnextContext(2).$implicit;
23329
+ var ctx_r24 = i0__namespace.ɵɵnextContext(5);
23330
+ i0__namespace.ɵɵadvance(2);
23331
+ i0__namespace.ɵɵproperty("ngIf", ctx_r24.isChangeAllowed(field_r21));
23332
+ }
23333
+ }
23143
23334
  function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template(rf, ctx) {
23144
23335
  if (rf & 1) {
23145
23336
  i0__namespace.ɵɵelementContainerStart(0);
@@ -23148,9 +23339,7 @@
23148
23339
  i0__namespace.ɵɵelementStart(3, "td", 32);
23149
23340
  i0__namespace.ɵɵelement(4, "ccd-field-read", 33);
23150
23341
  i0__namespace.ɵɵelementEnd();
23151
- i0__namespace.ɵɵelementStart(5, "td", 34);
23152
- i0__namespace.ɵɵ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);
23153
- i0__namespace.ɵɵelementEnd();
23342
+ i0__namespace.ɵɵ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);
23154
23343
  i0__namespace.ɵɵelementEnd();
23155
23344
  i0__namespace.ɵɵelementContainerEnd();
23156
23345
  }
@@ -23165,14 +23354,14 @@
23165
23354
  i0__namespace.ɵɵattribute("colspan", ctx_r22.isLabel(field_r21) ? "2" : "1");
23166
23355
  i0__namespace.ɵɵadvance(1);
23167
23356
  i0__namespace.ɵɵ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);
23168
- i0__namespace.ɵɵadvance(2);
23169
- i0__namespace.ɵɵproperty("ngIf", ctx_r22.isChangeAllowed(field_r21));
23357
+ i0__namespace.ɵɵadvance(1);
23358
+ i0__namespace.ɵɵproperty("ngIf", ctx_r22.eventTrigger.id !== "createCaseFlag");
23170
23359
  }
23171
23360
  }
23172
23361
  function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_Template(rf, ctx) {
23173
23362
  if (rf & 1) {
23174
23363
  i0__namespace.ɵɵelementContainerStart(0);
23175
- i0__namespace.ɵɵ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);
23364
+ i0__namespace.ɵɵ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);
23176
23365
  i0__namespace.ɵɵelementContainerEnd();
23177
23366
  }
23178
23367
  if (rf & 2) {
@@ -23248,13 +23437,13 @@
23248
23437
  i0__namespace.ɵɵelementEnd();
23249
23438
  }
23250
23439
  if (rf & 2) {
23251
- var field_r33 = i0__namespace.ɵɵnextContext().$implicit;
23252
- var ctx_r34 = i0__namespace.ɵɵnextContext(3);
23253
- i0__namespace.ɵɵproperty("caseField", field_r33)("formGroup", ctx_r34.editForm.controls["data"])("contextFields", ctx_r34.contextFields);
23440
+ var field_r35 = i0__namespace.ɵɵnextContext().$implicit;
23441
+ var ctx_r36 = i0__namespace.ɵɵnextContext(3);
23442
+ i0__namespace.ɵɵproperty("caseField", field_r35)("formGroup", ctx_r36.editForm.controls["data"])("contextFields", ctx_r36.contextFields);
23254
23443
  i0__namespace.ɵɵadvance(2);
23255
- i0__namespace.ɵɵtextInterpolate(field_r33.label);
23444
+ i0__namespace.ɵɵtextInterpolate(field_r35.label);
23256
23445
  i0__namespace.ɵɵadvance(2);
23257
- i0__namespace.ɵɵproperty("formGroup", ctx_r34.editForm.controls["data"])("caseField", ctx_r34.summaryCaseField(field_r33));
23446
+ i0__namespace.ɵɵproperty("formGroup", ctx_r36.editForm.controls["data"])("caseField", ctx_r36.summaryCaseField(field_r35));
23258
23447
  }
23259
23448
  }
23260
23449
  function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_4_Template(rf, ctx) {
@@ -23266,11 +23455,11 @@
23266
23455
  i0__namespace.ɵɵelementEnd();
23267
23456
  }
23268
23457
  if (rf & 2) {
23269
- var field_r33 = i0__namespace.ɵɵnextContext().$implicit;
23270
- var ctx_r35 = i0__namespace.ɵɵnextContext(3);
23271
- i0__namespace.ɵɵproperty("caseField", field_r33)("formGroup", ctx_r35.editForm.controls["data"])("contextFields", ctx_r35.contextFields);
23458
+ var field_r35 = i0__namespace.ɵɵnextContext().$implicit;
23459
+ var ctx_r37 = i0__namespace.ɵɵnextContext(3);
23460
+ i0__namespace.ɵɵproperty("caseField", field_r35)("formGroup", ctx_r37.editForm.controls["data"])("contextFields", ctx_r37.contextFields);
23272
23461
  i0__namespace.ɵɵadvance(2);
23273
- i0__namespace.ɵɵproperty("formGroup", ctx_r35.editForm.controls["data"])("caseField", ctx_r35.summaryCaseField(field_r33))("caseFields", ctx_r35.contextFields);
23462
+ i0__namespace.ɵɵproperty("formGroup", ctx_r37.editForm.controls["data"])("caseField", ctx_r37.summaryCaseField(field_r35))("caseFields", ctx_r37.contextFields);
23274
23463
  }
23275
23464
  }
23276
23465
  function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_Template(rf, ctx) {
@@ -23284,9 +23473,9 @@
23284
23473
  i0__namespace.ɵɵelementContainerEnd();
23285
23474
  }
23286
23475
  if (rf & 2) {
23287
- var field_r33 = ctx.$implicit;
23476
+ var field_r35 = ctx.$implicit;
23288
23477
  i0__namespace.ɵɵadvance(1);
23289
- i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3, field_r33));
23478
+ i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3, field_r35));
23290
23479
  i0__namespace.ɵɵadvance(2);
23291
23480
  i0__namespace.ɵɵproperty("ngSwitchCase", true);
23292
23481
  i0__namespace.ɵɵadvance(1);
@@ -23345,7 +23534,7 @@
23345
23534
  }
23346
23535
  function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
23347
23536
  if (rf & 1) {
23348
- var _r40_1 = i0__namespace.ɵɵgetCurrentView();
23537
+ var _r42_1 = i0__namespace.ɵɵgetCurrentView();
23349
23538
  i0__namespace.ɵɵelementStart(0, "div");
23350
23539
  i0__namespace.ɵɵelementStart(1, "h1", 2);
23351
23540
  i0__namespace.ɵɵtext(2);
@@ -23356,16 +23545,16 @@
23356
23545
  i0__namespace.ɵɵtemplate(8, CaseEditSubmitComponent_div_0_div_8_Template, 10, 0, "div", 6);
23357
23546
  i0__namespace.ɵɵtemplate(9, CaseEditSubmitComponent_div_0_div_9_Template, 6, 2, "div", 6);
23358
23547
  i0__namespace.ɵɵelementStart(10, "ccd-callback-errors", 7);
23359
- i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0__namespace.ɵɵrestoreView(_r40_1); var ctx_r39 = i0__namespace.ɵɵnextContext(); return ctx_r39.callbackErrorsNotify($event); });
23548
+ i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0__namespace.ɵɵrestoreView(_r42_1); var ctx_r41 = i0__namespace.ɵɵnextContext(); return ctx_r41.callbackErrorsNotify($event); });
23360
23549
  i0__namespace.ɵɵelementEnd();
23361
23550
  i0__namespace.ɵɵelementStart(11, "form", 8);
23362
- i0__namespace.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0__namespace.ɵɵrestoreView(_r40_1); var ctx_r41 = i0__namespace.ɵɵnextContext(); return ctx_r41.submit(); });
23551
+ i0__namespace.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0__namespace.ɵɵrestoreView(_r42_1); var ctx_r43 = i0__namespace.ɵɵnextContext(); return ctx_r43.submit(); });
23363
23552
  i0__namespace.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 7, 3, "ng-container", 0);
23364
23553
  i0__namespace.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 4, 1, "ng-container", 0);
23365
23554
  i0__namespace.ɵɵtemplate(14, CaseEditSubmitComponent_div_0_ng_container_14_Template, 2, 1, "ng-container", 0);
23366
23555
  i0__namespace.ɵɵelementStart(15, "div", 9);
23367
23556
  i0__namespace.ɵɵelementStart(16, "button", 10);
23368
- i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_button_click_16_listener() { i0__namespace.ɵɵrestoreView(_r40_1); var ctx_r42 = i0__namespace.ɵɵnextContext(); return ctx_r42.previous(); });
23557
+ i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_button_click_16_listener() { i0__namespace.ɵɵrestoreView(_r42_1); var ctx_r44 = i0__namespace.ɵɵnextContext(); return ctx_r44.previous(); });
23369
23558
  i0__namespace.ɵɵtext(17, "Previous");
23370
23559
  i0__namespace.ɵɵelementEnd();
23371
23560
  i0__namespace.ɵɵelementStart(18, "button", 11);
@@ -23374,7 +23563,7 @@
23374
23563
  i0__namespace.ɵɵelementEnd();
23375
23564
  i0__namespace.ɵɵelementStart(20, "p", 12);
23376
23565
  i0__namespace.ɵɵelementStart(21, "a", 13);
23377
- i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_21_listener() { i0__namespace.ɵɵrestoreView(_r40_1); var ctx_r43 = i0__namespace.ɵɵnextContext(); return ctx_r43.cancel(); });
23566
+ i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_21_listener() { i0__namespace.ɵɵrestoreView(_r42_1); var ctx_r45 = i0__namespace.ɵɵnextContext(); return ctx_r45.cancel(); });
23378
23567
  i0__namespace.ɵɵtext(22);
23379
23568
  i0__namespace.ɵɵelementEnd();
23380
23569
  i0__namespace.ɵɵelementEnd();
@@ -23417,9 +23606,9 @@
23417
23606
  }
23418
23607
  function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) {
23419
23608
  if (rf & 1) {
23420
- var _r45_1 = i0__namespace.ɵɵgetCurrentView();
23609
+ var _r47_1 = i0__namespace.ɵɵgetCurrentView();
23421
23610
  i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion", 57);
23422
- i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(_r45_1); var ctx_r44 = i0__namespace.ɵɵnextContext(); return ctx_r44.onEventCanBeCompleted($event); });
23611
+ i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(_r47_1); var ctx_r46 = i0__namespace.ɵɵnextContext(); return ctx_r46.onEventCanBeCompleted($event); });
23423
23612
  i0__namespace.ɵɵelementEnd();
23424
23613
  }
23425
23614
  if (rf & 2) {
@@ -23619,10 +23808,10 @@
23619
23808
  // parent)
23620
23809
  // Update rawFormValueData for this field
23621
23810
  // creating form group and adding control into it in case caseField is of complext type and and part of formGroup
23622
- var form_1 = new i2.FormGroup({});
23811
+ var form_1 = new i1$2.FormGroup({});
23623
23812
  if (formGroup.controls[key].value) {
23624
23813
  Object.keys(formGroup.controls[key].value).forEach(function (item) {
23625
- form_1.addControl(item, new i2.FormControl(formGroup.controls[key].value[item]));
23814
+ form_1.addControl(item, new i1$2.FormControl(formGroup.controls[key].value[item]));
23626
23815
  });
23627
23816
  }
23628
23817
  rawFormValueData[key] = _this.replaceHiddenFormValuesWithOriginalCaseData(form_1, caseField.field_type.complex_fields, caseField);
@@ -23835,7 +24024,7 @@
23835
24024
  return a.show_summary_content_option - b.show_summary_content_option;
23836
24025
  };
23837
24026
  CaseEditSubmitComponent.ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(FieldsUtils), i0__namespace.ɵɵdirectiveInject(CaseFieldService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(CaseNotifier)); };
23838
- CaseEditSubmitComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["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) {
24027
+ CaseEditSubmitComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["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) {
23839
24028
  if (rf & 1) {
23840
24029
  i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 23, 17, "div", 0);
23841
24030
  i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_ccd_case_event_completion_1_Template, 1, 1, "ccd-case-event-completion", 1);
@@ -24380,12 +24569,13 @@
24380
24569
  JudicialworkerService,
24381
24570
  CaseworkerService,
24382
24571
  SessionStorageService,
24383
- EventCompletionStateMachineService
24572
+ EventCompletionStateMachineService,
24573
+ CaseFlagStateService
24384
24574
  ], imports: [[
24385
24575
  i1.CommonModule,
24386
24576
  i1$1.RouterModule,
24387
- i2.FormsModule,
24388
- i2.ReactiveFormsModule,
24577
+ i1$2.FormsModule,
24578
+ i1$2.ReactiveFormsModule,
24389
24579
  CaseEditDataModule,
24390
24580
  PaletteModule,
24391
24581
  LabelSubstitutorModule,
@@ -24407,8 +24597,8 @@
24407
24597
  CaseCreateComponent,
24408
24598
  CaseProgressComponent], imports: [i1.CommonModule,
24409
24599
  i1$1.RouterModule,
24410
- i2.FormsModule,
24411
- i2.ReactiveFormsModule,
24600
+ i1$2.FormsModule,
24601
+ i1$2.ReactiveFormsModule,
24412
24602
  CaseEditDataModule,
24413
24603
  PaletteModule,
24414
24604
  LabelSubstitutorModule,
@@ -24432,8 +24622,8 @@
24432
24622
  imports: [
24433
24623
  i1.CommonModule,
24434
24624
  i1$1.RouterModule,
24435
- i2.FormsModule,
24436
- i2.ReactiveFormsModule,
24625
+ i1$2.FormsModule,
24626
+ i1$2.ReactiveFormsModule,
24437
24627
  CaseEditDataModule,
24438
24628
  PaletteModule,
24439
24629
  LabelSubstitutorModule,
@@ -24492,15 +24682,16 @@
24492
24682
  JudicialworkerService,
24493
24683
  CaseworkerService,
24494
24684
  SessionStorageService,
24495
- EventCompletionStateMachineService
24685
+ EventCompletionStateMachineService,
24686
+ CaseFlagStateService
24496
24687
  ]
24497
24688
  }]
24498
24689
  }], null, null);
24499
24690
  })();
24500
- i0__namespace.ɵɵsetComponentScope(CaseEditConfirmComponent, [i1__namespace.NgIf, MarkdownComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [CcdCaseTitlePipe, CaseReferencePipe]);
24501
- i0__namespace.ɵɵsetComponentScope(CaseEditPageComponent, [i1__namespace.NgIf, LoadingSpinnerComponent, MarkdownComponent, i1__namespace.NgForOf, CallbackErrorsComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, CaseEditFormComponent], [CcdCaseTitlePipe, CaseReferencePipe, i1__namespace.AsyncPipe]);
24502
- i0__namespace.ɵɵsetComponentScope(CaseEditFormComponent, [i1__namespace.NgForOf, ConditionalShowFormDirective, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, LabelSubstitutorDirective, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, i1__namespace.NgIf, FieldWriteComponent], [IsReadOnlyAndNotCollectionPipe, IsCompoundPipe]);
24503
- i0__namespace.ɵɵsetComponentScope(CaseEditSubmitComponent, [i1__namespace.NgIf, MarkdownComponent, i1__namespace.NgForOf, CallbackErrorsComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i2__namespace.FormGroupName, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i2__namespace.MaxLengthValidator, CaseEventCompletionComponent], [CcdCaseTitlePipe, CaseReferencePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, IsCompoundPipe]);
24691
+ i0__namespace.ɵɵsetComponentScope(CaseEditConfirmComponent, [i1__namespace.NgIf, MarkdownComponent, i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective], [CcdCaseTitlePipe, CaseReferencePipe]);
24692
+ i0__namespace.ɵɵsetComponentScope(CaseEditPageComponent, [i1__namespace.NgIf, LoadingSpinnerComponent, MarkdownComponent, i1__namespace.NgForOf, CallbackErrorsComponent, i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, CaseEditFormComponent], [CcdCaseTitlePipe, CaseReferencePipe, i1__namespace.AsyncPipe]);
24693
+ i0__namespace.ɵɵsetComponentScope(CaseEditFormComponent, [i1__namespace.NgForOf, ConditionalShowFormDirective, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, LabelSubstitutorDirective, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, i1__namespace.NgIf, FieldWriteComponent], [IsReadOnlyAndNotCollectionPipe, IsCompoundPipe]);
24694
+ i0__namespace.ɵɵsetComponentScope(CaseEditSubmitComponent, [i1__namespace.NgIf, MarkdownComponent, i1__namespace.NgForOf, CallbackErrorsComponent, i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace$3.FormGroupName, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName, i1__namespace$3.MaxLengthValidator, CaseEventCompletionComponent], [CcdCaseTitlePipe, CaseReferencePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, IsCompoundPipe]);
24504
24695
  i0__namespace.ɵɵsetComponentScope(CaseCreateComponent, [i1__namespace.NgIf, CaseEditComponent], []);
24505
24696
  i0__namespace.ɵɵsetComponentScope(CaseProgressComponent, [i1__namespace.NgIf, CaseEditComponent], []);
24506
24697
 
@@ -24898,7 +25089,7 @@
24898
25089
  i0__namespace.ɵɵadvance(3);
24899
25090
  i0__namespace.ɵɵproperty("ngIf", !(ctx.autoHide && _r0.pages.length <= 1));
24900
25091
  }
24901
- }, directives: [i1__namespace$6.PaginationControlsDirective, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i1__namespace.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}}"] });
25092
+ }, directives: [i1__namespace$7.PaginationControlsDirective, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i1__namespace.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}}"] });
24902
25093
  (function () {
24903
25094
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationComponent, [{
24904
25095
  type: i0.Component,
@@ -25305,7 +25496,7 @@
25305
25496
  i0__namespace.ɵɵadvance(2);
25306
25497
  i0__namespace.ɵɵproperty("ngIf", ctx.totalResultsCount > ctx.pageSize);
25307
25498
  }
25308
- }, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$6.PaginatePipe, i1__namespace.CurrencyPipe], styles: [""] });
25499
+ }, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$7.PaginatePipe, i1__namespace.CurrencyPipe], styles: [""] });
25309
25500
  (function () {
25310
25501
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseListComponent, [{
25311
25502
  type: i0.Component,
@@ -25365,12 +25556,12 @@
25365
25556
  PaginationModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: PaginationModule });
25366
25557
  PaginationModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
25367
25558
  i1.CommonModule,
25368
- i1$6.NgxPaginationModule
25559
+ i1$7.NgxPaginationModule
25369
25560
  ]] });
25370
25561
  (function () {
25371
25562
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(PaginationModule, { declarations: [PaginationComponent], imports: [i1.CommonModule,
25372
- i1$6.NgxPaginationModule], exports: [PaginationComponent,
25373
- i1$6.PaginatePipe] });
25563
+ i1$7.NgxPaginationModule], exports: [PaginationComponent,
25564
+ i1$7.PaginatePipe] });
25374
25565
  })();
25375
25566
  (function () {
25376
25567
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationModule, [{
@@ -25378,14 +25569,14 @@
25378
25569
  args: [{
25379
25570
  imports: [
25380
25571
  i1.CommonModule,
25381
- i1$6.NgxPaginationModule
25572
+ i1$7.NgxPaginationModule
25382
25573
  ],
25383
25574
  declarations: [
25384
25575
  PaginationComponent
25385
25576
  ],
25386
25577
  exports: [
25387
25578
  PaginationComponent,
25388
- i1$6.PaginatePipe
25579
+ i1$7.PaginatePipe
25389
25580
  ],
25390
25581
  }]
25391
25582
  }], null, null);
@@ -25402,16 +25593,16 @@
25402
25593
  BrowserService
25403
25594
  ], imports: [[
25404
25595
  i1.CommonModule,
25405
- i2.FormsModule,
25596
+ i1$2.FormsModule,
25406
25597
  i1$1.RouterModule,
25407
- i1$6.NgxPaginationModule,
25598
+ i1$7.NgxPaginationModule,
25408
25599
  PaginationModule
25409
25600
  ]] });
25410
25601
  (function () {
25411
25602
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CaseListModule, { declarations: [CaseListComponent], imports: [i1.CommonModule,
25412
- i2.FormsModule,
25603
+ i1$2.FormsModule,
25413
25604
  i1$1.RouterModule,
25414
- i1$6.NgxPaginationModule,
25605
+ i1$7.NgxPaginationModule,
25415
25606
  PaginationModule], exports: [CaseListComponent] });
25416
25607
  })();
25417
25608
  (function () {
@@ -25420,9 +25611,9 @@
25420
25611
  args: [{
25421
25612
  imports: [
25422
25613
  i1.CommonModule,
25423
- i2.FormsModule,
25614
+ i1$2.FormsModule,
25424
25615
  i1$1.RouterModule,
25425
- i1$6.NgxPaginationModule,
25616
+ i1$7.NgxPaginationModule,
25426
25617
  PaginationModule
25427
25618
  ],
25428
25619
  declarations: [CaseListComponent],
@@ -25537,7 +25728,7 @@
25537
25728
  this.windowService = windowService;
25538
25729
  this.onApply = new i0.EventEmitter();
25539
25730
  this.onReset = new i0.EventEmitter();
25540
- this.formGroup = new i2.FormGroup({});
25731
+ this.formGroup = new i1$2.FormGroup({});
25541
25732
  this.initialised = false;
25542
25733
  }
25543
25734
  WorkbasketFiltersComponent.prototype.ngOnInit = function () {
@@ -25632,7 +25823,7 @@
25632
25823
  if (this.selected.caseType) {
25633
25824
  this.selectedCaseTypeStates = this.sortStates(this.selected.caseType.states);
25634
25825
  this.selected.caseState = null;
25635
- this.formGroup = new i2.FormGroup({});
25826
+ this.formGroup = new i1$2.FormGroup({});
25636
25827
  this.clearWorkbasketInputs();
25637
25828
  if (!this.isApplyButtonDisabled()) {
25638
25829
  this.workbasketInputFilterService.getWorkbasketInputs(this.selected.jurisdiction.id, this.selected.caseType.id).pipe(operators.take(1)).subscribe(function (workbasketInputs) {
@@ -25906,15 +26097,15 @@
25906
26097
  WindowService,
25907
26098
  ], imports: [[
25908
26099
  i1.CommonModule,
25909
- i2.FormsModule,
25910
- i2.ReactiveFormsModule,
26100
+ i1$2.FormsModule,
26101
+ i1$2.ReactiveFormsModule,
25911
26102
  PaletteModule,
25912
26103
  ConditionalShowModule
25913
26104
  ]] });
25914
26105
  (function () {
25915
26106
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(WorkbasketFiltersModule, { declarations: [WorkbasketFiltersComponent], imports: [i1.CommonModule,
25916
- i2.FormsModule,
25917
- i2.ReactiveFormsModule,
26107
+ i1$2.FormsModule,
26108
+ i1$2.ReactiveFormsModule,
25918
26109
  PaletteModule,
25919
26110
  ConditionalShowModule], exports: [WorkbasketFiltersComponent] });
25920
26111
  })();
@@ -25924,8 +26115,8 @@
25924
26115
  args: [{
25925
26116
  imports: [
25926
26117
  i1.CommonModule,
25927
- i2.FormsModule,
25928
- i2.ReactiveFormsModule,
26118
+ i1$2.FormsModule,
26119
+ i1$2.ReactiveFormsModule,
25929
26120
  PaletteModule,
25930
26121
  ConditionalShowModule
25931
26122
  ],
@@ -25945,7 +26136,7 @@
25945
26136
  }]
25946
26137
  }], null, null);
25947
26138
  })();
25948
- i0__namespace.ɵɵsetComponentScope(WorkbasketFiltersComponent, [i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.NgForm, i2__namespace.SelectControlValueAccessor, i2__namespace.NgControlStatus, i2__namespace.NgModel, i1__namespace.NgIf, i2__namespace.NgSelectOption, i2__namespace.ɵangular_packages_forms_forms_z, i1__namespace.NgForOf, ConditionalShowFormDirective, i2__namespace.FormGroupDirective, FieldWriteComponent], []);
26139
+ i0__namespace.ɵɵsetComponentScope(WorkbasketFiltersComponent, [i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.NgForm, i1__namespace$3.SelectControlValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.NgModel, i1__namespace.NgIf, i1__namespace$3.NgSelectOption, i1__namespace$3.ɵangular_packages_forms_forms_z, i1__namespace.NgForOf, ConditionalShowFormDirective, i1__namespace$3.FormGroupDirective, FieldWriteComponent], []);
25949
26140
 
25950
26141
  var READ_ACCESS = 'read';
25951
26142
  var CREATE_ACCESS = 'create';
@@ -26026,16 +26217,16 @@
26026
26217
  WindowService
26027
26218
  ], imports: [[
26028
26219
  i1.CommonModule,
26029
- i2.FormsModule,
26030
- i2.ReactiveFormsModule,
26220
+ i1$2.FormsModule,
26221
+ i1$2.ReactiveFormsModule,
26031
26222
  PaletteModule,
26032
26223
  DefinitionsModule,
26033
26224
  WorkbasketFiltersModule
26034
26225
  ]] });
26035
26226
  (function () {
26036
26227
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CaseListFiltersModule, { declarations: [CaseListFiltersComponent], imports: [i1.CommonModule,
26037
- i2.FormsModule,
26038
- i2.ReactiveFormsModule,
26228
+ i1$2.FormsModule,
26229
+ i1$2.ReactiveFormsModule,
26039
26230
  PaletteModule,
26040
26231
  DefinitionsModule,
26041
26232
  WorkbasketFiltersModule], exports: [CaseListFiltersComponent] });
@@ -26046,8 +26237,8 @@
26046
26237
  args: [{
26047
26238
  imports: [
26048
26239
  i1.CommonModule,
26049
- i2.FormsModule,
26050
- i2.ReactiveFormsModule,
26240
+ i1$2.FormsModule,
26241
+ i1$2.ReactiveFormsModule,
26051
26242
  PaletteModule,
26052
26243
  DefinitionsModule,
26053
26244
  WorkbasketFiltersModule
@@ -26108,7 +26299,7 @@
26108
26299
  CaseHistoryService.prototype.get = function (caseId, eventId) {
26109
26300
  var _this = this;
26110
26301
  var url = this.appConfig.getCaseHistoryUrl(caseId, eventId);
26111
- var headers = new i1$2.HttpHeaders()
26302
+ var headers = new i1$3.HttpHeaders()
26112
26303
  .set('experimental', 'true')
26113
26304
  .set('Accept', CaseHistoryService.V2_MEDIATYPE_CASE_EVENT_VIEW)
26114
26305
  .set('Content-Type', 'application/json');
@@ -26579,16 +26770,16 @@
26579
26770
  CaseTimelineModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
26580
26771
  i1.CommonModule,
26581
26772
  ErrorsModule,
26582
- i2.FormsModule,
26583
- i2.ReactiveFormsModule,
26773
+ i1$2.FormsModule,
26774
+ i1$2.ReactiveFormsModule,
26584
26775
  CaseHistoryModule,
26585
26776
  PaletteModule
26586
26777
  ]] });
26587
26778
  (function () {
26588
26779
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CaseTimelineModule, { declarations: [CaseTimelineComponent], imports: [i1.CommonModule,
26589
26780
  ErrorsModule,
26590
- i2.FormsModule,
26591
- i2.ReactiveFormsModule,
26781
+ i1$2.FormsModule,
26782
+ i1$2.ReactiveFormsModule,
26592
26783
  CaseHistoryModule,
26593
26784
  PaletteModule], exports: [CaseTimelineComponent] });
26594
26785
  })();
@@ -26599,8 +26790,8 @@
26599
26790
  imports: [
26600
26791
  i1.CommonModule,
26601
26792
  ErrorsModule,
26602
- i2.FormsModule,
26603
- i2.ReactiveFormsModule,
26793
+ i1$2.FormsModule,
26794
+ i1$2.ReactiveFormsModule,
26604
26795
  CaseHistoryModule,
26605
26796
  PaletteModule
26606
26797
  ],
@@ -27283,7 +27474,7 @@
27283
27474
  };
27284
27475
  return DeleteOrCancelDialogComponent;
27285
27476
  }());
27286
- DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialogRef)); };
27477
+ DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialogRef)); };
27287
27478
  DeleteOrCancelDialogComponent.ɵcmp = i0__namespace.ɵɵ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) {
27288
27479
  if (rf & 1) {
27289
27480
  i0__namespace.ɵɵelementStart(0, "div");
@@ -27324,7 +27515,7 @@
27324
27515
  templateUrl: './delete-or-cancel-dialog.component.html',
27325
27516
  styleUrls: ['../action-dialog.component.scss']
27326
27517
  }]
27327
- }], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
27518
+ }], function () { return [{ type: i1__namespace$4.MatDialogRef }]; }, null);
27328
27519
  })();
27329
27520
 
27330
27521
  var DialogsModule = /** @class */ (function () {
@@ -27336,16 +27527,16 @@
27336
27527
  DialogsModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: DialogsModule });
27337
27528
  DialogsModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
27338
27529
  i1.CommonModule,
27339
- i2.FormsModule,
27340
- i2.ReactiveFormsModule,
27530
+ i1$2.FormsModule,
27531
+ i1$2.ReactiveFormsModule,
27341
27532
  ]] });
27342
27533
  (function () {
27343
27534
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(DialogsModule, { declarations: [DocumentDialogComponent,
27344
27535
  DeleteOrCancelDialogComponent,
27345
27536
  SaveOrDiscardDialogComponent,
27346
27537
  RemoveDialogComponent], imports: [i1.CommonModule,
27347
- i2.FormsModule,
27348
- i2.ReactiveFormsModule], exports: [DocumentDialogComponent,
27538
+ i1$2.FormsModule,
27539
+ i1$2.ReactiveFormsModule], exports: [DocumentDialogComponent,
27349
27540
  DeleteOrCancelDialogComponent,
27350
27541
  SaveOrDiscardDialogComponent,
27351
27542
  RemoveDialogComponent] });
@@ -27356,8 +27547,8 @@
27356
27547
  args: [{
27357
27548
  imports: [
27358
27549
  i1.CommonModule,
27359
- i2.FormsModule,
27360
- i2.ReactiveFormsModule,
27550
+ i1$2.FormsModule,
27551
+ i1$2.ReactiveFormsModule,
27361
27552
  ],
27362
27553
  declarations: [
27363
27554
  DocumentDialogComponent,
@@ -27953,7 +28144,7 @@
27953
28144
  value = Object.assign(Object.assign({}, value), (_a = {}, _a[caseField.id] = caseField.value, _a));
27954
28145
  });
27955
28146
  }
27956
- return new i2.FormGroup({ data: new i2.FormControl(value) });
28147
+ return new i1$2.FormGroup({ data: new i1$2.FormControl(value) });
27957
28148
  };
27958
28149
  CaseFullAccessViewComponent.prototype.resetErrors = function () {
27959
28150
  this.error = null;
@@ -27967,7 +28158,7 @@
27967
28158
  CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
27968
28159
  CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
27969
28160
  CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
27970
- CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
28161
+ CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$4.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
27971
28162
  CaseFullAccessViewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) {
27972
28163
  if (rf & 1) {
27973
28164
  i0__namespace.ɵɵviewQuery(_c0$b, 1);
@@ -28026,7 +28217,7 @@
28026
28217
  templateUrl: './case-full-access-view.component.html',
28027
28218
  styleUrls: ['./case-full-access-view.component.scss']
28028
28219
  }]
28029
- }], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$3.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1__namespace.Location }, { type: i0__namespace.ChangeDetectorRef }, { type: SessionStorageService }]; }, { hasPrint: [{
28220
+ }], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$4.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1__namespace.Location }, { type: i0__namespace.ChangeDetectorRef }, { type: SessionStorageService }]; }, { hasPrint: [{
28030
28221
  type: i0.Input
28031
28222
  }], hasEventSelector: [{
28032
28223
  type: i0.Input
@@ -28394,13 +28585,13 @@
28394
28585
  EventMessageModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: EventMessageModule });
28395
28586
  EventMessageModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
28396
28587
  i1.CommonModule,
28397
- i2.ReactiveFormsModule,
28588
+ i1$2.ReactiveFormsModule,
28398
28589
  i1$1.RouterModule,
28399
28590
  ActivityModule
28400
28591
  ]] });
28401
28592
  (function () {
28402
28593
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(EventMessageModule, { declarations: [ErrorMessageComponent], imports: [i1.CommonModule,
28403
- i2.ReactiveFormsModule,
28594
+ i1$2.ReactiveFormsModule,
28404
28595
  i1$1.RouterModule,
28405
28596
  ActivityModule], exports: [ErrorMessageComponent] });
28406
28597
  })();
@@ -28410,7 +28601,7 @@
28410
28601
  args: [{
28411
28602
  imports: [
28412
28603
  i1.CommonModule,
28413
- i2.ReactiveFormsModule,
28604
+ i1$2.ReactiveFormsModule,
28414
28605
  i1$1.RouterModule,
28415
28606
  ActivityModule
28416
28607
  ],
@@ -29176,7 +29367,7 @@
29176
29367
  EventStartStateMachineService
29177
29368
  ], imports: [[
29178
29369
  i1.CommonModule,
29179
- i2.ReactiveFormsModule,
29370
+ i1$2.ReactiveFormsModule,
29180
29371
  i1$1.RouterModule
29181
29372
  ]] });
29182
29373
  (function () {
@@ -29187,7 +29378,7 @@
29187
29378
  TaskCancelledComponent,
29188
29379
  TaskConflictComponent,
29189
29380
  TaskUnassignedComponent], imports: [i1.CommonModule,
29190
- i2.ReactiveFormsModule,
29381
+ i1$2.ReactiveFormsModule,
29191
29382
  i1$1.RouterModule], exports: [EventStartComponent,
29192
29383
  TaskAssignedComponent,
29193
29384
  TaskUnassignedComponent] });
@@ -29198,7 +29389,7 @@
29198
29389
  args: [{
29199
29390
  imports: [
29200
29391
  i1.CommonModule,
29201
- i2.ReactiveFormsModule,
29392
+ i1$2.ReactiveFormsModule,
29202
29393
  i1$1.RouterModule
29203
29394
  ],
29204
29395
  declarations: [
@@ -29291,7 +29482,7 @@
29291
29482
  if (changes.triggers && changes.triggers.currentValue) {
29292
29483
  this.triggers = this.orderService.sort(this.triggers);
29293
29484
  this.triggerForm = this.fb.group({
29294
- trigger: [this.getDefault(), i2.Validators.required]
29485
+ trigger: [this.getDefault(), i1$2.Validators.required]
29295
29486
  });
29296
29487
  }
29297
29488
  };
@@ -29309,7 +29500,7 @@
29309
29500
  };
29310
29501
  return EventTriggerComponent;
29311
29502
  }());
29312
- EventTriggerComponent.ɵfac = function EventTriggerComponent_Factory(t) { return new (t || EventTriggerComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(OrderService)); };
29503
+ EventTriggerComponent.ɵfac = function EventTriggerComponent_Factory(t) { return new (t || EventTriggerComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.FormBuilder), i0__namespace.ɵɵdirectiveInject(OrderService)); };
29313
29504
  EventTriggerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: EventTriggerComponent, selectors: [["ccd-event-trigger"]], inputs: { triggers: "triggers", triggerText: "triggerText", isDisabled: "isDisabled" }, outputs: { onTriggerSubmit: "onTriggerSubmit", onTriggerChange: "onTriggerChange" }, features: [i0__namespace.ɵɵ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) {
29314
29505
  if (rf & 1) {
29315
29506
  i0__namespace.ɵɵtemplate(0, EventTriggerComponent_form_0_Template, 9, 8, "form", 0);
@@ -29317,7 +29508,7 @@
29317
29508
  if (rf & 2) {
29318
29509
  i0__namespace.ɵɵproperty("ngIf", ctx.triggers && ctx.triggers.length);
29319
29510
  }
29320
- }, directives: [i1__namespace.NgIf, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i2__namespace.SelectControlValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i1__namespace.NgClass, i1__namespace.NgForOf, i2__namespace.NgSelectOption, i2__namespace.ɵ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}"] });
29511
+ }, directives: [i1__namespace.NgIf, i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace$3.SelectControlValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName, i1__namespace.NgClass, i1__namespace.NgForOf, i1__namespace$3.NgSelectOption, i1__namespace$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}"] });
29321
29512
  (function () {
29322
29513
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(EventTriggerComponent, [{
29323
29514
  type: i0.Component,
@@ -29326,7 +29517,7 @@
29326
29517
  templateUrl: './event-trigger.component.html',
29327
29518
  styleUrls: ['./event-trigger.component.scss']
29328
29519
  }]
29329
- }], function () { return [{ type: i2__namespace.FormBuilder }, { type: OrderService }]; }, { triggers: [{
29520
+ }], function () { return [{ type: i1__namespace$3.FormBuilder }, { type: OrderService }]; }, { triggers: [{
29330
29521
  type: i0.Input
29331
29522
  }], triggerText: [{
29332
29523
  type: i0.Input
@@ -29348,12 +29539,12 @@
29348
29539
  EventTriggerModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: EventTriggerModule });
29349
29540
  EventTriggerModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
29350
29541
  i1.CommonModule,
29351
- i2.ReactiveFormsModule,
29542
+ i1$2.ReactiveFormsModule,
29352
29543
  ActivityModule,
29353
29544
  ]] });
29354
29545
  (function () {
29355
29546
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(EventTriggerModule, { declarations: [EventTriggerComponent], imports: [i1.CommonModule,
29356
- i2.ReactiveFormsModule,
29547
+ i1$2.ReactiveFormsModule,
29357
29548
  ActivityModule], exports: [EventTriggerComponent] });
29358
29549
  })();
29359
29550
  (function () {
@@ -29362,7 +29553,7 @@
29362
29553
  args: [{
29363
29554
  imports: [
29364
29555
  i1.CommonModule,
29365
- i2.ReactiveFormsModule,
29556
+ i1$2.ReactiveFormsModule,
29366
29557
  ActivityModule,
29367
29558
  ],
29368
29559
  declarations: [
@@ -29507,9 +29698,9 @@
29507
29698
  this.hint = ChallengedAccessRequestPageText.HINT;
29508
29699
  this.caseRefLabel = ChallengedAccessRequestPageText.CASE_REF;
29509
29700
  this.formGroup = this.fb.group({
29510
- radioSelected: new i2.FormControl(null, i2.Validators.required)
29701
+ radioSelected: new i1$2.FormControl(null, i1$2.Validators.required)
29511
29702
  });
29512
- this.formGroup.addControl(this.caseReferenceControlName, new i2.FormControl('', {
29703
+ this.formGroup.addControl(this.caseReferenceControlName, new i1$2.FormControl('', {
29513
29704
  validators: [function (control) {
29514
29705
  if (_this.formGroup.get(_this.radioSelectedControlName).value === AccessReason$1.LINKED_TO_CURRENT_CASE && _this.inputEmpty(control)) {
29515
29706
  return { invalid: true };
@@ -29518,7 +29709,7 @@
29518
29709
  }],
29519
29710
  updateOn: 'submit'
29520
29711
  }));
29521
- this.formGroup.addControl(this.otherReasonControlName, new i2.FormControl('', {
29712
+ this.formGroup.addControl(this.otherReasonControlName, new i1$2.FormControl('', {
29522
29713
  validators: [function (control) {
29523
29714
  if (_this.formGroup.get(_this.radioSelectedControlName).value === AccessReason$1.OTHER && _this.inputEmpty(control)) {
29524
29715
  return { invalid: true };
@@ -29599,7 +29790,7 @@
29599
29790
  return CaseChallengedAccessRequestComponent;
29600
29791
  }());
29601
29792
  CaseChallengedAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
29602
- CaseChallengedAccessRequestComponent.ɵfac = function CaseChallengedAccessRequestComponent_Factory(t) { return new (t || CaseChallengedAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseNotifier)); };
29793
+ CaseChallengedAccessRequestComponent.ɵfac = function CaseChallengedAccessRequestComponent_Factory(t) { return new (t || CaseChallengedAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseNotifier)); };
29603
29794
  CaseChallengedAccessRequestComponent.ɵcmp = i0__namespace.ɵɵ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) {
29604
29795
  if (rf & 1) {
29605
29796
  i0__namespace.ɵɵtemplate(0, CaseChallengedAccessRequestComponent_exui_error_message_0_Template, 1, 1, "exui-error-message", 0);
@@ -29715,7 +29906,7 @@
29715
29906
  selector: 'ccd-case-challenged-access-request',
29716
29907
  templateUrl: './case-challenged-access-request.component.html'
29717
29908
  }]
29718
- }], function () { return [{ type: i2__namespace.FormBuilder }, { type: i1__namespace$1.Router }, { type: CasesService }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseNotifier }]; }, null);
29909
+ }], function () { return [{ type: i1__namespace$3.FormBuilder }, { type: i1__namespace$1.Router }, { type: CasesService }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseNotifier }]; }, null);
29719
29910
  })();
29720
29911
 
29721
29912
  var CaseChallengedAccessSuccessComponent = /** @class */ (function () {
@@ -29913,7 +30104,7 @@
29913
30104
  this.hint = ReviewSpecificAccessRequestPageText.HINT;
29914
30105
  this.caseRefLabel = ReviewSpecificAccessRequestPageText.CASE_REF;
29915
30106
  this.formGroup = this.fb.group({
29916
- radioSelected: new i2.FormControl(null, i2.Validators.required),
30107
+ radioSelected: new i1$2.FormControl(null, i1$2.Validators.required),
29917
30108
  });
29918
30109
  };
29919
30110
  CaseReviewSpecificAccessRequestComponent.prototype.ngOnDestroy = function () {
@@ -29965,7 +30156,7 @@
29965
30156
  return CaseReviewSpecificAccessRequestComponent;
29966
30157
  }());
29967
30158
  CaseReviewSpecificAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
29968
- CaseReviewSpecificAccessRequestComponent.ɵfac = function CaseReviewSpecificAccessRequestComponent_Factory(t) { return new (t || CaseReviewSpecificAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(AbstractAppConfig)); };
30159
+ CaseReviewSpecificAccessRequestComponent.ɵfac = function CaseReviewSpecificAccessRequestComponent_Factory(t) { return new (t || CaseReviewSpecificAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(AbstractAppConfig)); };
29969
30160
  CaseReviewSpecificAccessRequestComponent.ɵcmp = i0__namespace.ɵɵ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) {
29970
30161
  if (rf & 1) {
29971
30162
  i0__namespace.ɵɵtemplate(0, CaseReviewSpecificAccessRequestComponent_exui_error_message_0_Template, 1, 1, "exui-error-message", 0);
@@ -30123,7 +30314,7 @@
30123
30314
  templateUrl: './case-review-specific-access-request.component.html',
30124
30315
  styleUrls: ['./case-review-specific-access-request.component.scss']
30125
30316
  }]
30126
- }], function () { return [{ type: i2__namespace.FormBuilder }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: AbstractAppConfig }]; }, null);
30317
+ }], function () { return [{ type: i1__namespace$3.FormBuilder }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: AbstractAppConfig }]; }, null);
30127
30318
  })();
30128
30319
 
30129
30320
  var SpecificAccessRequestPageText;
@@ -30178,9 +30369,9 @@
30178
30369
  this.hint = SpecificAccessRequestPageText.HINT;
30179
30370
  this.caseRefLabel = SpecificAccessRequestPageText.CASE_REF;
30180
30371
  this.formGroup = this.fb.group({
30181
- radioSelected: new i2.FormControl(null, null),
30372
+ radioSelected: new i1$2.FormControl(null, null),
30182
30373
  });
30183
- this.formGroup.addControl(this.specificReasonControlName, new i2.FormControl('', {
30374
+ this.formGroup.addControl(this.specificReasonControlName, new i1$2.FormControl('', {
30184
30375
  validators: [
30185
30376
  function (control) {
30186
30377
  if (_this.inputEmpty(control)) {
@@ -30242,7 +30433,7 @@
30242
30433
  return CaseSpecificAccessRequestComponent;
30243
30434
  }());
30244
30435
  CaseSpecificAccessRequestComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
30245
- CaseSpecificAccessRequestComponent.ɵfac = function CaseSpecificAccessRequestComponent_Factory(t) { return new (t || CaseSpecificAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseNotifier)); };
30436
+ CaseSpecificAccessRequestComponent.ɵfac = function CaseSpecificAccessRequestComponent_Factory(t) { return new (t || CaseSpecificAccessRequestComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseNotifier)); };
30246
30437
  CaseSpecificAccessRequestComponent.ɵcmp = i0__namespace.ɵɵ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) {
30247
30438
  if (rf & 1) {
30248
30439
  i0__namespace.ɵɵtemplate(0, CaseSpecificAccessRequestComponent_exui_error_message_0_Template, 1, 1, "exui-error-message", 0);
@@ -30334,7 +30525,7 @@
30334
30525
  selector: 'ccd-case-specific-access-request',
30335
30526
  templateUrl: './case-specific-access-request.component.html',
30336
30527
  }]
30337
- }], function () { return [{ type: i2__namespace.FormBuilder }, { type: i1__namespace$1.Router }, { type: CasesService }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseNotifier }]; }, null);
30528
+ }], function () { return [{ type: i1__namespace$3.FormBuilder }, { type: i1__namespace$1.Router }, { type: CasesService }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseNotifier }]; }, null);
30338
30529
  })();
30339
30530
 
30340
30531
  var CaseSpecificAccessSuccessComponent = /** @class */ (function () {
@@ -30432,7 +30623,7 @@
30432
30623
  ConditionalShowModule,
30433
30624
  CaseHistoryModule,
30434
30625
  i9.MatTabsModule,
30435
- i2.ReactiveFormsModule,
30626
+ i1$2.ReactiveFormsModule,
30436
30627
  BannersModule,
30437
30628
  LabelSubstitutorModule,
30438
30629
  LoadingSpinnerModule,
@@ -30463,7 +30654,7 @@
30463
30654
  ConditionalShowModule,
30464
30655
  CaseHistoryModule,
30465
30656
  i9.MatTabsModule,
30466
- i2.ReactiveFormsModule,
30657
+ i1$2.ReactiveFormsModule,
30467
30658
  BannersModule,
30468
30659
  LabelSubstitutorModule,
30469
30660
  LoadingSpinnerModule,
@@ -30487,7 +30678,7 @@
30487
30678
  ConditionalShowModule,
30488
30679
  CaseHistoryModule,
30489
30680
  i9.MatTabsModule,
30490
- i2.ReactiveFormsModule,
30681
+ i1$2.ReactiveFormsModule,
30491
30682
  BannersModule,
30492
30683
  LabelSubstitutorModule,
30493
30684
  LoadingSpinnerModule,
@@ -30535,9 +30726,9 @@
30535
30726
  CaseFullAccessViewComponent], []);
30536
30727
  i0__namespace.ɵɵsetComponentScope(CaseFullAccessViewComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, CallbackErrorsComponent, ActivityComponent, CaseHeaderComponent, i1__namespace$1.RouterLinkWithHref, EventTriggerComponent, NotificationBannerComponent, i9__namespace.MatTabGroup, i9__namespace.MatTab, i9__namespace.MatTabContent, LabelSubstitutorDirective, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, i1__namespace$1.RouterOutlet], [ReadFieldsFilterPipe, CcdTabFieldsPipe, IsCompoundPipe]);
30537
30728
  i0__namespace.ɵɵsetComponentScope(CaseViewComponent, [i1__namespace.NgIf, CaseViewerComponent], []);
30538
- i0__namespace.ɵɵsetComponentScope(CaseChallengedAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent, AlertComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i2__namespace.RadioControlValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], []);
30539
- i0__namespace.ɵɵsetComponentScope(CaseSpecificAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent, AlertComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], []);
30540
- i0__namespace.ɵɵsetComponentScope(CaseReviewSpecificAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i2__namespace.RadioControlValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], []);
30729
+ i0__namespace.ɵɵsetComponentScope(CaseChallengedAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent, AlertComponent, i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace$3.RadioControlValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName], []);
30730
+ i0__namespace.ɵɵsetComponentScope(CaseSpecificAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent, AlertComponent, i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName], []);
30731
+ i0__namespace.ɵɵsetComponentScope(CaseReviewSpecificAccessRequestComponent, [i1__namespace.NgIf, ErrorMessageComponent, i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.FormGroupDirective, i1__namespace.NgClass, i1__namespace$3.RadioControlValueAccessor, i1__namespace$3.DefaultValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlName], []);
30541
30732
 
30542
30733
  var viewerRouting = [
30543
30734
  {
@@ -30697,7 +30888,7 @@
30697
30888
  this.sessionStorageService = sessionStorageService;
30698
30889
  this.selectionSubmitted = new i0.EventEmitter();
30699
30890
  this.selectionChanged = new i0.EventEmitter();
30700
- this.formGroup = new i2.FormGroup({});
30891
+ this.formGroup = new i1$2.FormGroup({});
30701
30892
  }
30702
30893
  CreateCaseFiltersComponent.prototype.ngOnInit = function () {
30703
30894
  var _this = this;
@@ -30755,11 +30946,11 @@
30755
30946
  });
30756
30947
  };
30757
30948
  CreateCaseFiltersComponent.prototype.initControls = function () {
30758
- this.filterJurisdictionControl = new i2.FormControl('');
30949
+ this.filterJurisdictionControl = new i1$2.FormControl('');
30759
30950
  this.formGroup.addControl('jurisdiction', this.filterJurisdictionControl);
30760
- this.filterCaseTypeControl = new i2.FormControl({ value: '', disabled: true });
30951
+ this.filterCaseTypeControl = new i1$2.FormControl({ value: '', disabled: true });
30761
30952
  this.formGroup.addControl('caseType', this.filterCaseTypeControl);
30762
- this.filterEventControl = new i2.FormControl({ value: '', disabled: true });
30953
+ this.filterEventControl = new i1$2.FormControl({ value: '', disabled: true });
30763
30954
  this.formGroup.addControl('event', this.filterEventControl);
30764
30955
  };
30765
30956
  CreateCaseFiltersComponent.prototype.emitChange = function () {
@@ -30895,7 +31086,7 @@
30895
31086
  i0__namespace.ɵɵadvance(1);
30896
31087
  i0__namespace.ɵɵtextInterpolate(ctx.startButtonText);
30897
31088
  }
30898
- }, directives: [i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.NgForm, i2__namespace.SelectControlValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i2__namespace.NgSelectOption, i2__namespace.ɵangular_packages_forms_forms_z, i1__namespace.NgForOf], encapsulation: 2 });
31089
+ }, directives: [i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.NgForm, i1__namespace$3.SelectControlValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.FormControlDirective, i1__namespace$3.NgSelectOption, i1__namespace$3.ɵangular_packages_forms_forms_z, i1__namespace.NgForOf], encapsulation: 2 });
30899
31090
  (function () {
30900
31091
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CreateCaseFiltersComponent, [{
30901
31092
  type: i0.Component,
@@ -30923,15 +31114,15 @@
30923
31114
  CreateCaseFiltersModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: CreateCaseFiltersModule });
30924
31115
  CreateCaseFiltersModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
30925
31116
  i1.CommonModule,
30926
- i2.FormsModule,
30927
- i2.ReactiveFormsModule,
31117
+ i1$2.FormsModule,
31118
+ i1$2.ReactiveFormsModule,
30928
31119
  DefinitionsModule,
30929
31120
  ErrorsModule,
30930
31121
  ]] });
30931
31122
  (function () {
30932
31123
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CreateCaseFiltersModule, { declarations: [CreateCaseFiltersComponent], imports: [i1.CommonModule,
30933
- i2.FormsModule,
30934
- i2.ReactiveFormsModule,
31124
+ i1$2.FormsModule,
31125
+ i1$2.ReactiveFormsModule,
30935
31126
  DefinitionsModule,
30936
31127
  ErrorsModule], exports: [CreateCaseFiltersComponent] });
30937
31128
  })();
@@ -30941,8 +31132,8 @@
30941
31132
  args: [{
30942
31133
  imports: [
30943
31134
  i1.CommonModule,
30944
- i2.FormsModule,
30945
- i2.ReactiveFormsModule,
31135
+ i1$2.FormsModule,
31136
+ i1$2.ReactiveFormsModule,
30946
31137
  DefinitionsModule,
30947
31138
  ErrorsModule,
30948
31139
  ],
@@ -31049,7 +31240,7 @@
31049
31240
  this.onApply = new i0.EventEmitter();
31050
31241
  this.onReset = new i0.EventEmitter();
31051
31242
  this.onJurisdiction = new i0.EventEmitter();
31052
- this.formGroup = new i2.FormGroup({});
31243
+ this.formGroup = new i1$2.FormGroup({});
31053
31244
  }
31054
31245
  SearchFiltersComponent.prototype.ngOnInit = function () {
31055
31246
  this.selected = {};
@@ -31126,7 +31317,7 @@
31126
31317
  };
31127
31318
  SearchFiltersComponent.prototype.onCaseTypeIdChange = function () {
31128
31319
  var _this = this;
31129
- this.formGroup = new i2.FormGroup({});
31320
+ this.formGroup = new i1$2.FormGroup({});
31130
31321
  this.searchInputsReady = false;
31131
31322
  this.searchInputs = [];
31132
31323
  this.searchService.getSearchInputs(this.selected.jurisdiction.id, this.selected.caseType.id).pipe(operators.tap(function () { return _this.searchInputsReady = true; })).subscribe(function (searchInputs) {
@@ -31355,16 +31546,16 @@
31355
31546
  WindowService
31356
31547
  ], imports: [[
31357
31548
  i1.CommonModule,
31358
- i2.FormsModule,
31359
- i2.ReactiveFormsModule,
31549
+ i1$2.FormsModule,
31550
+ i1$2.ReactiveFormsModule,
31360
31551
  PaletteModule,
31361
31552
  ConditionalShowModule
31362
31553
  ]] });
31363
31554
  (function () {
31364
31555
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(SearchFiltersModule, { declarations: [SearchFiltersComponent,
31365
31556
  SearchFiltersWrapperComponent], imports: [i1.CommonModule,
31366
- i2.FormsModule,
31367
- i2.ReactiveFormsModule,
31557
+ i1$2.FormsModule,
31558
+ i1$2.ReactiveFormsModule,
31368
31559
  PaletteModule,
31369
31560
  ConditionalShowModule], exports: [SearchFiltersWrapperComponent] });
31370
31561
  })();
@@ -31374,8 +31565,8 @@
31374
31565
  args: [{
31375
31566
  imports: [
31376
31567
  i1.CommonModule,
31377
- i2.FormsModule,
31378
- i2.ReactiveFormsModule,
31568
+ i1$2.FormsModule,
31569
+ i1$2.ReactiveFormsModule,
31379
31570
  PaletteModule,
31380
31571
  ConditionalShowModule
31381
31572
  ],
@@ -31396,7 +31587,7 @@
31396
31587
  }]
31397
31588
  }], null, null);
31398
31589
  })();
31399
- i0__namespace.ɵɵsetComponentScope(SearchFiltersComponent, [i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.NgForm, i2__namespace.SelectControlValueAccessor, i2__namespace.NgControlStatus, i2__namespace.NgModel, i1__namespace.NgForOf, i2__namespace.NgSelectOption, i2__namespace.ɵangular_packages_forms_forms_z, i1__namespace.NgIf, ConditionalShowFormDirective, i2__namespace.FormGroupDirective, FieldWriteComponent], []);
31590
+ i0__namespace.ɵɵsetComponentScope(SearchFiltersComponent, [i1__namespace$3.ɵangular_packages_forms_forms_ba, i1__namespace$3.NgControlStatusGroup, i1__namespace$3.NgForm, i1__namespace$3.SelectControlValueAccessor, i1__namespace$3.NgControlStatus, i1__namespace$3.NgModel, i1__namespace.NgForOf, i1__namespace$3.NgSelectOption, i1__namespace$3.ɵangular_packages_forms_forms_z, i1__namespace.NgIf, ConditionalShowFormDirective, i1__namespace$3.FormGroupDirective, FieldWriteComponent], []);
31400
31591
  i0__namespace.ɵɵsetComponentScope(SearchFiltersWrapperComponent, [i1__namespace.NgIf, SearchFiltersComponent], []);
31401
31592
 
31402
31593
  function SearchResultComponent_table_0_div_4_Template(rf, ctx) {
@@ -32335,10 +32526,10 @@
32335
32526
  BrowserService
32336
32527
  ], imports: [[
32337
32528
  i1.CommonModule,
32338
- i1$6.NgxPaginationModule,
32529
+ i1$7.NgxPaginationModule,
32339
32530
  i1$1.RouterModule,
32340
- i2.FormsModule,
32341
- i2.ReactiveFormsModule,
32531
+ i1$2.FormsModule,
32532
+ i1$2.ReactiveFormsModule,
32342
32533
  LabelSubstitutorModule,
32343
32534
  PipesModule,
32344
32535
  ActivityModule,
@@ -32347,10 +32538,10 @@
32347
32538
  ]] });
32348
32539
  (function () {
32349
32540
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(SearchResultModule, { declarations: [SearchResultComponent], imports: [i1.CommonModule,
32350
- i1$6.NgxPaginationModule,
32541
+ i1$7.NgxPaginationModule,
32351
32542
  i1$1.RouterModule,
32352
- i2.FormsModule,
32353
- i2.ReactiveFormsModule,
32543
+ i1$2.FormsModule,
32544
+ i1$2.ReactiveFormsModule,
32354
32545
  LabelSubstitutorModule,
32355
32546
  PipesModule,
32356
32547
  ActivityModule,
@@ -32363,10 +32554,10 @@
32363
32554
  args: [{
32364
32555
  imports: [
32365
32556
  i1.CommonModule,
32366
- i1$6.NgxPaginationModule,
32557
+ i1$7.NgxPaginationModule,
32367
32558
  i1$1.RouterModule,
32368
- i2.FormsModule,
32369
- i2.ReactiveFormsModule,
32559
+ i1$2.FormsModule,
32560
+ i1$2.ReactiveFormsModule,
32370
32561
  LabelSubstitutorModule,
32371
32562
  PipesModule,
32372
32563
  ActivityModule,
@@ -32386,7 +32577,7 @@
32386
32577
  }]
32387
32578
  }], null, null);
32388
32579
  })();
32389
- i0__namespace.ɵɵsetComponentScope(SearchResultComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1__namespace.DecimalPipe, i1__namespace$6.PaginatePipe, CaseReferencePipe, SortSearchResultPipe]);
32580
+ i0__namespace.ɵɵsetComponentScope(SearchResultComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1__namespace.DecimalPipe, i1__namespace$7.PaginatePipe, CaseReferencePipe, SortSearchResultPipe]);
32390
32581
 
32391
32582
  var ComplexFieldOverride = /** @class */ (function () {
32392
32583
  function ComplexFieldOverride() {