@hmcts/ccd-case-ui-toolkit 7.0.63-ungrey-back-button → 7.0.64

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 (99) hide show
  1. package/esm2022/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.mjs +33 -70
  2. package/esm2022/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +37 -49
  3. package/esm2022/lib/shared/components/case-editor/case-editor.module.mjs +4 -7
  4. package/esm2022/lib/shared/components/case-editor/services/case-flag-state.service.mjs +1 -3
  5. package/esm2022/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.mjs +4 -14
  6. package/esm2022/lib/shared/components/palette/base-field/index.mjs +1 -3
  7. package/esm2022/lib/shared/components/palette/case-file-view/case-file-view-field.component.mjs +8 -7
  8. package/esm2022/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.mjs +21 -21
  9. package/esm2022/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.mjs +22 -22
  10. package/esm2022/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.mjs +28 -28
  11. package/esm2022/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.mjs +29 -32
  12. package/esm2022/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.mjs +28 -21
  13. package/esm2022/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.mjs +63 -128
  14. package/esm2022/lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.mjs +28 -28
  15. package/esm2022/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.mjs +105 -107
  16. package/esm2022/lib/shared/components/palette/case-flag/write-case-flag-field.component.mjs +31 -107
  17. package/esm2022/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.mjs +18 -27
  18. package/esm2022/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.mjs +7 -19
  19. package/esm2022/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.mjs +45 -57
  20. package/esm2022/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.mjs +9 -13
  21. package/esm2022/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.mjs +39 -45
  22. package/esm2022/lib/shared/components/palette/linked-cases/services/linked-cases.service.mjs +1 -11
  23. package/esm2022/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.mjs +23 -69
  24. package/esm2022/lib/shared/domain/index.mjs +1 -2
  25. package/esm2022/lib/shared/pipes/complex/ccd-page-fields.pipe.mjs +2 -2
  26. package/esm2022/lib/shared/services/index.mjs +1 -2
  27. package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +714 -1254
  28. package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
  29. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +3 -12
  30. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  31. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +2 -7
  32. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
  33. package/lib/shared/components/case-editor/case-editor.module.d.ts.map +1 -1
  34. package/lib/shared/components/case-editor/services/case-flag-state.service.d.ts +0 -1
  35. package/lib/shared/components/case-editor/services/case-flag-state.service.d.ts.map +1 -1
  36. package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts +1 -2
  37. package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts.map +1 -1
  38. package/lib/shared/components/palette/base-field/index.d.ts +0 -2
  39. package/lib/shared/components/palette/base-field/index.d.ts.map +1 -1
  40. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +1 -0
  41. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
  42. package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts +2 -4
  43. package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts.map +1 -1
  44. package/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.d.ts +2 -4
  45. package/lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.d.ts.map +1 -1
  46. package/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.d.ts +3 -5
  47. package/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.d.ts.map +1 -1
  48. package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.d.ts +3 -6
  49. package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.d.ts.map +1 -1
  50. package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts +2 -4
  51. package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
  52. package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts +5 -12
  53. package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts.map +1 -1
  54. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.d.ts +2 -4
  55. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.d.ts.map +1 -1
  56. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts +3 -6
  57. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts.map +1 -1
  58. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts +5 -10
  59. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
  60. package/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.d.ts +3 -6
  61. package/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.d.ts.map +1 -1
  62. package/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.d.ts +2 -6
  63. package/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.d.ts.map +1 -1
  64. package/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.d.ts +3 -6
  65. package/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.d.ts.map +1 -1
  66. package/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.d.ts +2 -5
  67. package/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.d.ts.map +1 -1
  68. package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts +3 -6
  69. package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts.map +1 -1
  70. package/lib/shared/components/palette/linked-cases/services/linked-cases.service.d.ts +0 -4
  71. package/lib/shared/components/palette/linked-cases/services/linked-cases.service.d.ts.map +1 -1
  72. package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts +3 -6
  73. package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
  74. package/lib/shared/domain/index.d.ts +0 -1
  75. package/lib/shared/domain/index.d.ts.map +1 -1
  76. package/lib/shared/services/index.d.ts +0 -1
  77. package/lib/shared/services/index.d.ts.map +1 -1
  78. package/package.json +1 -1
  79. package/esm2022/lib/shared/components/palette/base-field/abstract-field-write-journey.component.mjs +0 -92
  80. package/esm2022/lib/shared/components/palette/base-field/abstract-journey.component.mjs +0 -82
  81. package/esm2022/lib/shared/domain/journey/index.mjs +0 -3
  82. package/esm2022/lib/shared/domain/journey/journey-instigator.model.mjs +0 -2
  83. package/esm2022/lib/shared/domain/journey/journey.model.mjs +0 -2
  84. package/esm2022/lib/shared/services/journey/index.mjs +0 -2
  85. package/esm2022/lib/shared/services/journey/multipage-component-state.service.mjs +0 -114
  86. package/lib/shared/components/palette/base-field/abstract-field-write-journey.component.d.ts +0 -30
  87. package/lib/shared/components/palette/base-field/abstract-field-write-journey.component.d.ts.map +0 -1
  88. package/lib/shared/components/palette/base-field/abstract-journey.component.d.ts +0 -27
  89. package/lib/shared/components/palette/base-field/abstract-journey.component.d.ts.map +0 -1
  90. package/lib/shared/domain/journey/index.d.ts +0 -3
  91. package/lib/shared/domain/journey/index.d.ts.map +0 -1
  92. package/lib/shared/domain/journey/journey-instigator.model.d.ts +0 -5
  93. package/lib/shared/domain/journey/journey-instigator.model.d.ts.map +0 -1
  94. package/lib/shared/domain/journey/journey.model.d.ts +0 -16
  95. package/lib/shared/domain/journey/journey.model.d.ts.map +0 -1
  96. package/lib/shared/services/journey/index.d.ts +0 -2
  97. package/lib/shared/services/journey/index.d.ts.map +0 -1
  98. package/lib/shared/services/journey/multipage-component-state.service.d.ts +0 -25
  99. package/lib/shared/services/journey/multipage-component-state.service.d.ts.map +0 -1
@@ -8,7 +8,7 @@ import * as i1$1 from '@angular/router';
8
8
  import { RouterModule, NavigationStart, NavigationEnd } from '@angular/router';
9
9
  import * as i4 from '@angular/forms';
10
10
  import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
11
- import { throwError, Subject, EMPTY, Observable, BehaviorSubject, of, timer, forkJoin, fromEvent, Subscription, combineLatest } from 'rxjs';
11
+ import { throwError, Subject, EMPTY, Observable, BehaviorSubject, of, timer, fromEvent, forkJoin, Subscription, combineLatest } from 'rxjs';
12
12
  import * as i1$2 from '@angular/common/http';
13
13
  import { HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
14
14
  import { catchError, map, publish, refCount, switchMap, debounceTime, delay, distinctUntilChanged, finalize, timeout, mergeMap, retryWhen, tap, delayWhen, publishReplay, take, first, takeUntil, filter } from 'rxjs/operators';
@@ -58,7 +58,7 @@ import * as i10 from '@angular/material/legacy-tabs';
58
58
  import { MatLegacyTabsModule } from '@angular/material/legacy-tabs';
59
59
  import { decompressFromUTF16, compressToUTF16 } from 'lz-string';
60
60
 
61
- const _c0$16 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
61
+ const _c0$14 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
62
62
  const _c1$u = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
63
63
  function FooterComponent_div_2_Template(rf, ctx) { if (rf & 1) {
64
64
  i0.ɵɵelementStart(0, "div", 3)(1, "div", 4);
@@ -136,7 +136,7 @@ class FooterComponent {
136
136
  workhours;
137
137
  static ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
138
138
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$u, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) { if (rf & 1) {
139
- i0.ɵɵprojectionDef(_c0$16);
139
+ i0.ɵɵprojectionDef(_c0$14);
140
140
  i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
141
141
  i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2)(3, FooterComponent_div_3_Template, 20, 16, "div", 2);
142
142
  i0.ɵɵelementEnd()();
@@ -163,7 +163,7 @@ class FooterComponent {
163
163
  }] }); })();
164
164
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FooterComponent, { className: "FooterComponent", filePath: "lib/components/footer/footer.component.ts", lineNumber: 8 }); })();
165
165
 
166
- const _c0$15 = [[["", "headerNavigation", ""]]];
166
+ const _c0$13 = [[["", "headerNavigation", ""]]];
167
167
  const _c1$t = ["[headerNavigation]"];
168
168
  function HeaderBarComponent_div_3_Template(rf, ctx) { if (rf & 1) {
169
169
  i0.ɵɵelementStart(0, "div")(1, "a", 12);
@@ -207,7 +207,7 @@ class HeaderBarComponent {
207
207
  }
208
208
  static ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
209
209
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$t, decls: 17, vars: 14, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) { if (rf & 1) {
210
- i0.ɵɵprojectionDef(_c0$15);
210
+ i0.ɵɵprojectionDef(_c0$13);
211
211
  i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
212
212
  i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 5, 3, "div", 3)(4, HeaderBarComponent_div_4_Template, 5, 3, "div", 4);
213
213
  i0.ɵɵelementEnd();
@@ -257,13 +257,13 @@ class HeaderBarComponent {
257
257
  }] }); })();
258
258
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HeaderBarComponent, { className: "HeaderBarComponent", filePath: "lib/components/header/header-bar/header-bar.component.ts", lineNumber: 8 }); })();
259
259
 
260
- const _c0$14 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
260
+ const _c0$12 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
261
261
  const _c1$s = ["[leftNavLinks]", "[rightNavLinks]"];
262
262
  class NavigationComponent {
263
263
  isSolicitor;
264
264
  static ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
265
265
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$s, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) { if (rf & 1) {
266
- i0.ɵɵprojectionDef(_c0$14);
266
+ i0.ɵɵprojectionDef(_c0$12);
267
267
  i0.ɵɵelementStart(0, "div")(1, "nav", 0);
268
268
  i0.ɵɵprojection(2);
269
269
  i0.ɵɵprojection(3, 1);
@@ -382,12 +382,12 @@ class HeadersModule {
382
382
  }], null, null); })();
383
383
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
384
384
 
385
- const _c0$13 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
385
+ const _c0$11 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
386
386
  const _c1$r = ["[topBody]", "[leftBody]", "[rightBody]"];
387
387
  class BodyComponent {
388
388
  static ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
389
389
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$r, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
390
- i0.ɵɵprojectionDef(_c0$13);
390
+ i0.ɵɵprojectionDef(_c0$11);
391
391
  i0.ɵɵelementStart(0, "div", 0);
392
392
  i0.ɵɵprojection(1);
393
393
  i0.ɵɵprojection(2, 1);
@@ -401,7 +401,7 @@ class BodyComponent {
401
401
  }], null, null); })();
402
402
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BodyComponent, { className: "BodyComponent", filePath: "lib/components/body/body.component.ts", lineNumber: 9 }); })();
403
403
 
404
- const _c0$12 = a0 => ({ "govuk-input--error": a0 });
404
+ const _c0$10 = a0 => ({ "govuk-input--error": a0 });
405
405
  function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
406
406
  const _r5 = i0.ɵɵgetCurrentView();
407
407
  i0.ɵɵelementStart(0, "div", 15)(1, "label", 8);
@@ -418,7 +418,7 @@ function DateInputComponent_div_19_Template(rf, ctx) { if (rf & 1) {
418
418
  i0.ɵɵadvance();
419
419
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "Hour"));
420
420
  i0.ɵɵadvance(2);
421
- i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(8, _c0$12, ctx_r6.isInvalid));
421
+ i0.ɵɵproperty("id", ctx_r6.hourId())("name", ctx_r6.hourId())("value", ctx_r6.displayHour)("ngClass", i0.ɵɵpureFunction1(8, _c0$10, ctx_r6.isInvalid));
422
422
  } }
423
423
  function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
424
424
  const _r8 = i0.ɵɵgetCurrentView();
@@ -436,7 +436,7 @@ function DateInputComponent_div_20_Template(rf, ctx) { if (rf & 1) {
436
436
  i0.ɵɵadvance();
437
437
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "Minute"));
438
438
  i0.ɵɵadvance(2);
439
- i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(8, _c0$12, ctx_r6.isInvalid));
439
+ i0.ɵɵproperty("id", ctx_r6.minuteId())("name", ctx_r6.minuteId())("value", ctx_r6.displayMinute)("ngClass", i0.ɵɵpureFunction1(8, _c0$10, ctx_r6.isInvalid));
440
440
  } }
441
441
  function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
442
442
  const _r10 = i0.ɵɵgetCurrentView();
@@ -454,7 +454,7 @@ function DateInputComponent_div_21_Template(rf, ctx) { if (rf & 1) {
454
454
  i0.ɵɵadvance();
455
455
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "Second"));
456
456
  i0.ɵɵadvance(2);
457
- i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(8, _c0$12, ctx_r6.isInvalid));
457
+ i0.ɵɵproperty("id", ctx_r6.secondId())("name", ctx_r6.secondId())("value", ctx_r6.displaySecond)("ngClass", i0.ɵɵpureFunction1(8, _c0$10, ctx_r6.isInvalid));
458
458
  } }
459
459
  class DateInputComponent {
460
460
  id;
@@ -689,19 +689,19 @@ class DateInputComponent {
689
689
  i0.ɵɵadvance();
690
690
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 21, "Day"));
691
691
  i0.ɵɵadvance(2);
692
- i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(27, _c0$12, ctx.isInvalid));
692
+ i0.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0.ɵɵpureFunction1(27, _c0$10, ctx.isInvalid));
693
693
  i0.ɵɵadvance(3);
694
694
  i0.ɵɵproperty("for", ctx.monthId());
695
695
  i0.ɵɵadvance();
696
696
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 23, "Month"));
697
697
  i0.ɵɵadvance(2);
698
- i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(29, _c0$12, ctx.isInvalid));
698
+ i0.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0.ɵɵpureFunction1(29, _c0$10, ctx.isInvalid));
699
699
  i0.ɵɵadvance(3);
700
700
  i0.ɵɵproperty("for", ctx.yearId());
701
701
  i0.ɵɵadvance();
702
702
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 25, "Year"));
703
703
  i0.ɵɵadvance(2);
704
- i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(31, _c0$12, ctx.isInvalid));
704
+ i0.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0.ɵɵpureFunction1(31, _c0$10, ctx.isInvalid));
705
705
  i0.ɵɵadvance(2);
706
706
  i0.ɵɵproperty("ngIf", ctx.isDateTime);
707
707
  i0.ɵɵadvance();
@@ -737,7 +737,7 @@ class DateInputComponent {
737
737
  }] }); })();
738
738
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DateInputComponent, { className: "DateInputComponent", filePath: "lib/components/form/date-input/date-input.component.ts", lineNumber: 20 }); })();
739
739
 
740
- const _c0$11 = ["*"];
740
+ const _c0$$ = ["*"];
741
741
  function AlertComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
742
742
  i0.ɵɵelementContainerStart(0);
743
743
  i0.ɵɵnamespaceSVG();
@@ -787,7 +787,7 @@ class AlertComponent {
787
787
  showIcon = true;
788
788
  alertMessageType = AlertMessageType;
789
789
  static ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
790
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$11, decls: 11, vars: 12, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
790
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$$, decls: 11, vars: 12, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) { if (rf & 1) {
791
791
  i0.ɵɵprojectionDef();
792
792
  i0.ɵɵelementStart(0, "div", 0);
793
793
  i0.ɵɵelementContainerStart(1, 1);
@@ -1000,14 +1000,14 @@ class NotificationBannerComponent {
1000
1000
  }] }); })();
1001
1001
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NotificationBannerComponent, { className: "NotificationBannerComponent", filePath: "lib/components/banners/notification-banner/notification-banner.component.ts", lineNumber: 10 }); })();
1002
1002
 
1003
- const _c0$10 = ["*"];
1003
+ const _c0$_ = ["*"];
1004
1004
  const _c1$q = a0 => ({ "js-hidden": a0 });
1005
1005
  class TabComponent {
1006
1006
  id;
1007
1007
  title;
1008
1008
  selected;
1009
1009
  static ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
1010
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c0$10, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) { if (rf & 1) {
1010
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c0$_, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) { if (rf & 1) {
1011
1011
  i0.ɵɵprojectionDef();
1012
1012
  i0.ɵɵelementStart(0, "div", 0);
1013
1013
  i0.ɵɵprojection(1);
@@ -1029,7 +1029,7 @@ class TabComponent {
1029
1029
  }] }); })();
1030
1030
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TabComponent, { className: "TabComponent", filePath: "lib/components/tabs/tab.component.ts", lineNumber: 10 }); })();
1031
1031
 
1032
- const _c0$$ = ["tab"];
1032
+ const _c0$Z = ["tab"];
1033
1033
  const _c1$p = ["*"];
1034
1034
  const _c2$4 = () => ["."];
1035
1035
  const _c3 = a0 => ({ "tabs-toggle-selected": a0 });
@@ -1076,7 +1076,7 @@ class TabsComponent {
1076
1076
  let _t;
1077
1077
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.panels = _t);
1078
1078
  } }, viewQuery: function TabsComponent_Query(rf, ctx) { if (rf & 1) {
1079
- i0.ɵɵviewQuery(_c0$$, 5);
1079
+ i0.ɵɵviewQuery(_c0$Z, 5);
1080
1080
  } if (rf & 2) {
1081
1081
  let _t;
1082
1082
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
@@ -1135,7 +1135,7 @@ class TabsModule {
1135
1135
  RouterModule, i1.RpxTranslationModule], exports: [TabsComponent,
1136
1136
  TabComponent] }); })();
1137
1137
 
1138
- const _c0$_ = (a0, a1) => ({ caseLocked: a0, someoneViewing: a1 });
1138
+ const _c0$Y = (a0, a1) => ({ caseLocked: a0, someoneViewing: a1 });
1139
1139
  class ActivityBannerComponent {
1140
1140
  bannerType;
1141
1141
  description;
@@ -1154,7 +1154,7 @@ class ActivityBannerComponent {
1154
1154
  i0.ɵɵpipe(6, "rpxTranslate");
1155
1155
  i0.ɵɵelementEnd()();
1156
1156
  } if (rf & 2) {
1157
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(8, _c0$_, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1157
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(8, _c0$Y, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1158
1158
  i0.ɵɵadvance(2);
1159
1159
  i0.ɵɵpropertyInterpolate("alt", i0.ɵɵpipeBind1(3, 4, ctx.description));
1160
1160
  i0.ɵɵpropertyInterpolate("src", ctx.imageLink, i0.ɵɵsanitizeUrl);
@@ -7053,118 +7053,6 @@ class FormErrorService {
7053
7053
  type: Injectable
7054
7054
  }], null, null); })();
7055
7055
 
7056
- class MultipageComponentStateService {
7057
- //is journey at start will help keep track of the progress through the journey.
7058
- isJourneyAtStart = false;
7059
- //journey collection references an upto date list of all the journey components currently rendered!!!!
7060
- journeyCollection = new Array();
7061
- //the instigator references the case-edit-page component that will invoke the next and previous methods
7062
- instigator = null;
7063
- //each journey will store its state here. this could include form data if needed
7064
- journeyState = new Map();
7065
- //setJourneyComponent will be called by the app component to update the journey collection
7066
- setJourneyCollection(journeyCollection) {
7067
- this.journeyCollection = journeyCollection;
7068
- }
7069
- //getJourneyCollection will be called by the app component to get the journey collection
7070
- getJourneyCollection() {
7071
- return this.journeyCollection;
7072
- }
7073
- //addToJourneyCollection will be called from the journey
7074
- addTojourneyCollection(journey) {
7075
- this.journeyCollection.push(journey);
7076
- }
7077
- //resetJourneyCollection will be called
7078
- resetJourneyCollection() {
7079
- this.journeyCollection = [];
7080
- }
7081
- //setInstigator will be called by the app component to update the instigator
7082
- setInstigator(instigator) {
7083
- this.instigator = instigator;
7084
- }
7085
- //getInstigator will be called by the app component to get the instigator
7086
- getInstigator() {
7087
- return this.instigator;
7088
- }
7089
- //setJourneyState will be called by the journey component to update the journey state
7090
- setJourneyState(journey) {
7091
- this.journeyState.set(journey.journeyId, journey);
7092
- }
7093
- //getJourneyState will be called by the journey component to get the journey state
7094
- getJourneyState(journey) {
7095
- return this.journeyState.get(journey.journeyId) || null;
7096
- }
7097
- //resetJourneyState will be called by the journey component to reset the journey state
7098
- resetJourneyState() {
7099
- this.journeyState.clear();
7100
- }
7101
- //reset will be called to ensure that the entire state is reset
7102
- reset() {
7103
- this.isJourneyAtStart = false;
7104
- this.journeyState.clear();
7105
- this.instigator = null;
7106
- this.journeyCollection = [];
7107
- }
7108
- //next will be called by the instigator that will invoke the next method of the journey component that will invoke the next method of the childpage component
7109
- next() {
7110
- if (this.journeyCollection.length <= 0) {
7111
- this.instigator?.onFinalNext();
7112
- return;
7113
- }
7114
- const isAnyObjectNotFinished = this.journeyCollection.some((journey) => !journey.isFinished());
7115
- if (!isAnyObjectNotFinished) {
7116
- this.instigator?.onFinalNext();
7117
- return;
7118
- }
7119
- for (const journey of this.journeyCollection) {
7120
- if (!journey) {
7121
- continue;
7122
- }
7123
- if (!journey?.isFinished()) {
7124
- journey?.next();
7125
- break;
7126
- }
7127
- }
7128
- }
7129
- //previous will be called by the instigator that will invoke the previous method of the journey component that will invoke the previous method of the childpage component
7130
- previous() {
7131
- if (this.journeyCollection.length <= 0) {
7132
- this.instigator?.onFinalPrevious();
7133
- return;
7134
- }
7135
- const isAnyObjectNotAtStart = this.journeyCollection.some((journey) => !journey.isStart());
7136
- if (!isAnyObjectNotAtStart) {
7137
- this.instigator?.onFinalPrevious();
7138
- return;
7139
- }
7140
- for (const journey of this.journeyCollection.slice().reverse()) {
7141
- if (!journey) {
7142
- continue;
7143
- }
7144
- if (!journey?.isStart()) {
7145
- journey?.previous();
7146
- break;
7147
- }
7148
- }
7149
- }
7150
- //isAtStart can be used to inform the instigator if we're at the start.
7151
- get isAtStart() {
7152
- return this.isJourneyAtStart;
7153
- }
7154
- //isAtStart can be used to update the value from a journey object, so the instigator knows.
7155
- set isAtStart(isAtStart) {
7156
- this.isJourneyAtStart = isAtStart;
7157
- }
7158
- static ɵfac = function MultipageComponentStateService_Factory(t) { return new (t || MultipageComponentStateService)(); };
7159
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: MultipageComponentStateService, factory: MultipageComponentStateService.ɵfac, providedIn: 'root' });
7160
- }
7161
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MultipageComponentStateService, [{
7162
- type: Injectable,
7163
- args: [{
7164
- providedIn: 'root'
7165
- }]
7166
- }], null, null); })();
7167
-
7168
7056
  class JurisdictionService {
7169
7057
  httpService;
7170
7058
  // We retain the Subject observable because subscribing code couldn't happen a null value
@@ -10188,149 +10076,6 @@ function initDialog() {
10188
10076
  return dialogConfig;
10189
10077
  }
10190
10078
 
10191
- class LinkedCasesService {
10192
- jurisdictionService;
10193
- searchService;
10194
- static CASE_NAME_MISSING_TEXT = 'Case name missing';
10195
- caseFieldValue = [];
10196
- isLinkedCasesEventTrigger = false;
10197
- caseDetails;
10198
- caseId;
10199
- caseName;
10200
- linkCaseReasons = [];
10201
- linkedCases = [];
10202
- initialCaseLinks = [];
10203
- editMode = false;
10204
- jurisdictionsResponse = [];
10205
- serverJurisdictionError;
10206
- serverError = null;
10207
- serverLinkedApiError = null;
10208
- isServerReasonCodeError = false;
10209
- caseJurisdictionID = null;
10210
- storedCaseNumber = '';
10211
- cameFromFinalStep = false;
10212
- hasNavigatedInJourney = false;
10213
- constructor(jurisdictionService, searchService) {
10214
- this.jurisdictionService = jurisdictionService;
10215
- this.searchService = searchService;
10216
- this.jurisdictionService.getJurisdictions().subscribe((jurisdictions) => {
10217
- this.jurisdictionsResponse = jurisdictions;
10218
- }, (error) => {
10219
- this.serverJurisdictionError = true;
10220
- });
10221
- }
10222
- groupLinkedCasesByCaseType = (arrObj, key) => {
10223
- return arrObj.reduce((rv, x) => {
10224
- (rv[x.value[key]] = rv[x.value[key]] || []).push(x.value['CaseReference']);
10225
- return rv;
10226
- }, {});
10227
- };
10228
- constructElasticSearchQuery(caseIds, size) {
10229
- return {
10230
- query: {
10231
- terms: {
10232
- reference: caseIds,
10233
- },
10234
- },
10235
- size,
10236
- };
10237
- }
10238
- resetLinkedCaseData() {
10239
- this.caseFieldValue = [];
10240
- this.linkedCases = [];
10241
- this.storedCaseNumber = '';
10242
- this.cameFromFinalStep = false;
10243
- this.hasNavigatedInJourney = false;
10244
- }
10245
- mapResponse(esSearchCasesResponse) {
10246
- const caseInfo = this.caseFieldValue.find(item => item.value && item.value.CaseReference === esSearchCasesResponse.case_id);
10247
- return caseInfo && {
10248
- caseReference: esSearchCasesResponse.case_id,
10249
- caseName: esSearchCasesResponse.case_fields.caseNameHmctsInternal || LinkedCasesService.CASE_NAME_MISSING_TEXT,
10250
- caseType: this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', esSearchCasesResponse.case_fields['[CASE_TYPE]']),
10251
- service: this.mapLookupIDToValueFromJurisdictions('JURISDICTION', esSearchCasesResponse.case_fields['[JURISDICTION]']),
10252
- state: this.mapLookupIDToValueFromJurisdictions('STATE', esSearchCasesResponse.case_fields['[STATE]']),
10253
- reasons: caseInfo?.value?.ReasonForLink
10254
- };
10255
- }
10256
- searchCasesByCaseIds(searchCasesResponse) {
10257
- return forkJoin(searchCasesResponse);
10258
- }
10259
- getAllLinkedCaseInformation() {
10260
- const searchCasesResponse = [];
10261
- const linkedCaseIds = this.groupLinkedCasesByCaseType(this.caseFieldValue, 'CaseType');
10262
- Object.keys(linkedCaseIds).forEach(key => {
10263
- const esQuery = this.constructElasticSearchQuery(linkedCaseIds[key], 100);
10264
- const query = this.searchService.searchCasesByIds(key, esQuery, SearchService.VIEW_WORKBASKET);
10265
- searchCasesResponse.push(query);
10266
- });
10267
- if (searchCasesResponse.length) {
10268
- this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
10269
- const casesResponse = [];
10270
- searchCases.forEach(response => {
10271
- response.results.forEach((result) => {
10272
- casesResponse.push(this.mapResponse(result));
10273
- });
10274
- });
10275
- this.linkedCases = casesResponse.map(item => {
10276
- return {
10277
- caseReference: item.caseReference,
10278
- caseName: item.caseName,
10279
- caseService: item.service,
10280
- caseType: item.caseType,
10281
- unlink: false,
10282
- reasons: item.reasons && item.reasons.map(reason => {
10283
- return {
10284
- Reason: reason
10285
- };
10286
- }),
10287
- };
10288
- });
10289
- this.serverLinkedApiError = null;
10290
- }, err => {
10291
- this.serverLinkedApiError = {
10292
- id: 'backendError', message: 'Some case information is not available at the moment'
10293
- };
10294
- });
10295
- }
10296
- }
10297
- mapLookupIDToValueFromJurisdictions(fieldName, fieldValue) {
10298
- const selectedJurisdiction = this.jurisdictionsResponse &&
10299
- this.jurisdictionsResponse.find(item => item.id === this.caseDetails.case_type.jurisdiction.id);
10300
- const selectedCaseType = selectedJurisdiction && selectedJurisdiction.caseTypes.find(item => item.id === this.caseDetails.case_type.id);
10301
- const state = selectedCaseType && selectedCaseType.states.find(item => item.id === fieldValue);
10302
- switch (fieldName) {
10303
- case 'JURISDICTION':
10304
- return selectedJurisdiction && selectedJurisdiction.description;
10305
- case 'CASE_TYPE':
10306
- return selectedCaseType && selectedCaseType.name;
10307
- case 'CASE_TYPE_DESCRIPTION':
10308
- return selectedCaseType && selectedCaseType.description;
10309
- case 'STATE':
10310
- return state && state.name || fieldValue;
10311
- case 'STATE_DESCRIPTION':
10312
- return state && state.description || fieldValue;
10313
- default:
10314
- break;
10315
- }
10316
- }
10317
- getCaseName(searchCasesResponse) {
10318
- let caseName = LinkedCasesService.CASE_NAME_MISSING_TEXT;
10319
- const tabs = searchCasesResponse.tabs.filter(tab => {
10320
- const caseNameHmctsInternalField = tab.fields.find(field => field.id === 'caseNameHmctsInternal');
10321
- if (caseNameHmctsInternalField) {
10322
- caseName = caseNameHmctsInternalField.value;
10323
- }
10324
- });
10325
- return caseName;
10326
- }
10327
- static ɵfac = function LinkedCasesService_Factory(t) { return new (t || LinkedCasesService)(i0.ɵɵinject(JurisdictionService), i0.ɵɵinject(SearchService)); };
10328
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: LinkedCasesService, factory: LinkedCasesService.ɵfac });
10329
- }
10330
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkedCasesService, [{
10331
- type: Injectable
10332
- }], () => [{ type: JurisdictionService }, { type: SearchService }], null); })();
10333
-
10334
10079
  function CaseEditPageComponent_ng_container_0_h1_1_Template(rf, ctx) { if (rf & 1) {
10335
10080
  i0.ɵɵelementStart(0, "h1", 11);
10336
10081
  i0.ɵɵtext(1);
@@ -10447,37 +10192,28 @@ function CaseEditPageComponent_form_10_div_4_Template(rf, ctx) { if (rf & 1) {
10447
10192
  i0.ɵɵadvance(2);
10448
10193
  i0.ɵɵproperty("fields", ctx_r1.currentPage.getCol2Fields())("formGroup", ctx_r1.editForm.controls["data"])("caseFields", ctx_r1.caseFields);
10449
10194
  } }
10450
- function CaseEditPageComponent_form_10_button_6_Template(rf, ctx) { if (rf & 1) {
10451
- const _r7 = i0.ɵɵgetCurrentView();
10452
- i0.ɵɵelementStart(0, "button", 38);
10453
- i0.ɵɵlistener("click", function CaseEditPageComponent_form_10_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.toPreviousPage()); });
10454
- i0.ɵɵtext(1);
10455
- i0.ɵɵpipe(2, "rpxTranslate");
10456
- i0.ɵɵelementEnd();
10457
- } if (rf & 2) {
10458
- const ctx_r1 = i0.ɵɵnextContext(2);
10459
- i0.ɵɵproperty("disabled", ctx_r1.isAtStart());
10460
- i0.ɵɵadvance();
10461
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "Previous"), " ");
10462
- } }
10463
10195
  function CaseEditPageComponent_form_10_Template(rf, ctx) { if (rf & 1) {
10464
10196
  const _r5 = i0.ɵɵgetCurrentView();
10465
10197
  i0.ɵɵelementStart(0, "form", 22);
10466
- i0.ɵɵlistener("submit", function CaseEditPageComponent_form_10_Template_form_submit_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.nextStep()); });
10198
+ i0.ɵɵlistener("submit", function CaseEditPageComponent_form_10_Template_form_submit_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.submit()); });
10467
10199
  i0.ɵɵelementStart(1, "fieldset", 23);
10468
10200
  i0.ɵɵelement(2, "legend", 24);
10469
10201
  i0.ɵɵtemplate(3, CaseEditPageComponent_form_10_ccd_case_edit_form_3_Template, 1, 4, "ccd-case-edit-form", 25)(4, CaseEditPageComponent_form_10_div_4_Template, 5, 6, "div", 26);
10470
10202
  i0.ɵɵelementEnd();
10471
- i0.ɵɵelementStart(5, "div", 27);
10472
- i0.ɵɵtemplate(6, CaseEditPageComponent_form_10_button_6_Template, 3, 4, "button", 28);
10473
- i0.ɵɵelementStart(7, "button", 29);
10203
+ i0.ɵɵelementStart(5, "div", 27)(6, "button", 28);
10204
+ i0.ɵɵpipe(7, "async");
10205
+ i0.ɵɵlistener("click", function CaseEditPageComponent_form_10_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.toPreviousPage()); });
10474
10206
  i0.ɵɵtext(8);
10475
10207
  i0.ɵɵpipe(9, "rpxTranslate");
10208
+ i0.ɵɵelementEnd();
10209
+ i0.ɵɵelementStart(10, "button", 29);
10210
+ i0.ɵɵtext(11);
10211
+ i0.ɵɵpipe(12, "rpxTranslate");
10476
10212
  i0.ɵɵelementEnd()();
10477
- i0.ɵɵelementStart(10, "p", 30)(11, "a", 31);
10478
- i0.ɵɵlistener("click", function CaseEditPageComponent_form_10_Template_a_click_11_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.cancel()); });
10479
- i0.ɵɵtext(12);
10480
- i0.ɵɵpipe(13, "rpxTranslate");
10213
+ i0.ɵɵelementStart(13, "p", 30)(14, "a", 31);
10214
+ i0.ɵɵlistener("click", function CaseEditPageComponent_form_10_Template_a_click_14_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.cancel()); });
10215
+ i0.ɵɵtext(15);
10216
+ i0.ɵɵpipe(16, "rpxTranslate");
10481
10217
  i0.ɵɵelementEnd()()();
10482
10218
  } if (rf & 2) {
10483
10219
  const ctx_r1 = i0.ɵɵnextContext();
@@ -10487,18 +10223,20 @@ function CaseEditPageComponent_form_10_Template(rf, ctx) { if (rf & 1) {
10487
10223
  i0.ɵɵadvance();
10488
10224
  i0.ɵɵproperty("ngIf", ctx_r1.currentPage.isMultiColumn());
10489
10225
  i0.ɵɵadvance(2);
10490
- i0.ɵɵproperty("ngIf", !ctx_r1.isAtStart());
10491
- i0.ɵɵadvance();
10226
+ i0.ɵɵproperty("disabled", !i0.ɵɵpipeBind1(7, 8, ctx_r1.hasPreviousPage$));
10227
+ i0.ɵɵadvance(2);
10228
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 10, "Previous"), " ");
10229
+ i0.ɵɵadvance(2);
10492
10230
  i0.ɵɵproperty("disabled", ctx_r1.submitting());
10493
10231
  i0.ɵɵadvance();
10494
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 7, ctx_r1.triggerText));
10232
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 12, ctx_r1.triggerText));
10495
10233
  i0.ɵɵadvance(4);
10496
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 9, ctx_r1.getCancelText()));
10234
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 14, ctx_r1.getCancelText()));
10497
10235
  } }
10498
10236
  function CaseEditPageComponent_ccd_case_event_completion_11_Template(rf, ctx) { if (rf & 1) {
10499
- const _r8 = i0.ɵɵgetCurrentView();
10500
- i0.ɵɵelementStart(0, "ccd-case-event-completion", 39);
10501
- i0.ɵɵlistener("eventCanBeCompleted", function CaseEditPageComponent_ccd_case_event_completion_11_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onEventCanBeCompleted($event)); });
10237
+ const _r7 = i0.ɵɵgetCurrentView();
10238
+ i0.ɵɵelementStart(0, "ccd-case-event-completion", 38);
10239
+ i0.ɵɵlistener("eventCanBeCompleted", function CaseEditPageComponent_ccd_case_event_completion_11_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onEventCanBeCompleted($event)); });
10502
10240
  i0.ɵɵelementEnd();
10503
10241
  } if (rf & 2) {
10504
10242
  const ctx_r1 = i0.ɵɵnextContext();
@@ -10516,9 +10254,7 @@ class CaseEditPageComponent {
10516
10254
  caseEditDataService;
10517
10255
  loadingService;
10518
10256
  validPageListCaseFieldsService;
10519
- multipageComponentStateService;
10520
10257
  addressService;
10521
- linkedCasesService;
10522
10258
  static RESUMED_FORM_DISCARD = 'RESUMED_FORM_DISCARD';
10523
10259
  static NEW_FORM_DISCARD = 'NEW_FORM_DISCARD';
10524
10260
  static NEW_FORM_SAVE = 'NEW_FORM_CHANGED_SAVE';
@@ -10559,7 +10295,7 @@ class CaseEditPageComponent {
10559
10295
  topContainer.focus();
10560
10296
  }
10561
10297
  }
10562
- constructor(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService, validPageListCaseFieldsService, multipageComponentStateService, addressService, linkedCasesService) {
10298
+ constructor(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService, validPageListCaseFieldsService, addressService) {
10563
10299
  this.caseEdit = caseEdit;
10564
10300
  this.route = route;
10565
10301
  this.formValueService = formValueService;
@@ -10571,27 +10307,7 @@ class CaseEditPageComponent {
10571
10307
  this.caseEditDataService = caseEditDataService;
10572
10308
  this.loadingService = loadingService;
10573
10309
  this.validPageListCaseFieldsService = validPageListCaseFieldsService;
10574
- this.multipageComponentStateService = multipageComponentStateService;
10575
10310
  this.addressService = addressService;
10576
- this.linkedCasesService = linkedCasesService;
10577
- this.multipageComponentStateService.setInstigator(this);
10578
- }
10579
- onFinalNext() {
10580
- this.submit();
10581
- }
10582
- onFinalPrevious() {
10583
- this.cancel();
10584
- }
10585
- isAtStart() {
10586
- return this.multipageComponentStateService.getJourneyCollection()[0]?.journeyPageNumber === this.multipageComponentStateService.getJourneyCollection()[0]?.journeyStartPageNumber;
10587
- }
10588
- // This method will be triggered by the next button in the app component
10589
- nextStep() {
10590
- this.multipageComponentStateService.next();
10591
- }
10592
- // This method will be triggered by the previous button in the app component
10593
- previousStep() {
10594
- this.multipageComponentStateService.previous();
10595
10311
  }
10596
10312
  ngOnInit() {
10597
10313
  initDialog();
@@ -10650,7 +10366,6 @@ class CaseEditPageComponent {
10650
10366
  this.dialogRefAfterClosedSub?.unsubscribe();
10651
10367
  this.saveDraftSub?.unsubscribe();
10652
10368
  this.caseFormValidationErrorsSub?.unsubscribe();
10653
- this.multipageComponentStateService.reset();
10654
10369
  }
10655
10370
  applyValuesChanged(valuesChanged) {
10656
10371
  this.formValuesChanged = valuesChanged;
@@ -10677,7 +10392,6 @@ class CaseEditPageComponent {
10677
10392
  caseEventData.data = caseEventData.event_data;
10678
10393
  this.updateFormData(caseEventData);
10679
10394
  this.previous();
10680
- this.previousStep();
10681
10395
  CaseEditPageComponent.setFocusToTop();
10682
10396
  }
10683
10397
  // Adding validation message to show it as Error Summary
@@ -10928,9 +10642,6 @@ class CaseEditPageComponent {
10928
10642
  return this.caseEdit.hasPrevious(this.currentPage.id);
10929
10643
  }
10930
10644
  cancel() {
10931
- if (this.isLinkedCasesJourney()) {
10932
- this.linkedCasesService.resetLinkedCaseData();
10933
- }
10934
10645
  if (this.eventTrigger.can_save_draft) {
10935
10646
  if (this.formValuesChanged) {
10936
10647
  const dialogRef = this.dialog.open(SaveOrDiscardDialogComponent, this.dialogConfig);
@@ -10957,7 +10668,6 @@ class CaseEditPageComponent {
10957
10668
  this.caseEdit.cancelled.emit();
10958
10669
  }
10959
10670
  this.caseEditDataService.clearFormValidationErrors();
10960
- this.multipageComponentStateService.reset();
10961
10671
  }
10962
10672
  submitting() {
10963
10673
  return this.caseEdit.isSubmitting;
@@ -11110,8 +10820,8 @@ class CaseEditPageComponent {
11110
10820
  }
11111
10821
  });
11112
10822
  }
11113
- static ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(ValidPageListCaseFieldsService), i0.ɵɵdirectiveInject(MultipageComponentStateService), i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(LinkedCasesService)); };
11114
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 12, vars: 11, consts: [["titleBlock", ""], ["idBlock", ""], [4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [3, "error"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 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"], [1, "form", 3, "submit", "formGroup"], ["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"], ["class", "button button-secondary", "type", "button", 3, "disabled", "click", 4, "ngIf"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "valuesChanged", "fields", "formGroup", "caseFields", "pageChangeSubject"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"], ["type", "button", 1, "button", "button-secondary", 3, "click", "disabled"], [3, "eventCanBeCompleted", "eventCompletionParams"]], template: function CaseEditPageComponent_Template(rf, ctx) { if (rf & 1) {
10823
+ static ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(ValidPageListCaseFieldsService), i0.ɵɵdirectiveInject(AddressesService)); };
10824
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 12, vars: 11, consts: [["titleBlock", ""], ["idBlock", ""], [4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [3, "error"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 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"], [1, "form", 3, "submit", "formGroup"], ["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, "click", "disabled"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "valuesChanged", "fields", "formGroup", "caseFields", "pageChangeSubject"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"], [3, "eventCanBeCompleted", "eventCompletionParams"]], template: function CaseEditPageComponent_Template(rf, ctx) { if (rf & 1) {
11115
10825
  const _r1 = i0.ɵɵgetCurrentView();
11116
10826
  i0.ɵɵtemplate(0, CaseEditPageComponent_ng_container_0_Template, 3, 2, "ng-container", 2)(1, CaseEditPageComponent_div_1_Template, 1, 0, "div", 3)(2, CaseEditPageComponent_ng_template_2_Template, 2, 5, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(4, CaseEditPageComponent_ng_template_4_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(6, CaseEditPageComponent_div_6_Template, 5, 4, "div", 4);
11117
10827
  i0.ɵɵelement(7, "ccd-case-edit-generic-errors", 5);
@@ -11119,15 +10829,15 @@ class CaseEditPageComponent {
11119
10829
  i0.ɵɵlistener("callbackErrorsContext", function CaseEditPageComponent_Template_ccd_callback_errors_callbackErrorsContext_8_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.callbackErrorsNotify($event)); });
11120
10830
  i0.ɵɵelementEnd();
11121
10831
  i0.ɵɵelementStart(9, "div", 7);
11122
- i0.ɵɵtemplate(10, CaseEditPageComponent_form_10_Template, 14, 11, "form", 8);
10832
+ i0.ɵɵtemplate(10, CaseEditPageComponent_form_10_Template, 17, 16, "form", 8);
11123
10833
  i0.ɵɵelementEnd();
11124
10834
  i0.ɵɵtemplate(11, CaseEditPageComponent_ccd_case_event_completion_11_Template, 1, 1, "ccd-case-event-completion", 9);
11125
10835
  } if (rf & 2) {
11126
- const titleBlock_r9 = i0.ɵɵreference(3);
11127
- const idBlock_r10 = i0.ɵɵreference(5);
10836
+ const titleBlock_r8 = i0.ɵɵreference(3);
10837
+ const idBlock_r9 = i0.ɵɵreference(5);
11128
10838
  i0.ɵɵproperty("ngIf", ctx.currentPage);
11129
10839
  i0.ɵɵadvance();
11130
- i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen", titleBlock_r9)("ngIfElse", idBlock_r10);
10840
+ i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen", titleBlock_r8)("ngIfElse", idBlock_r9);
11131
10841
  i0.ɵɵadvance(5);
11132
10842
  i0.ɵɵproperty("ngIf", ctx.validationErrors.length > 0);
11133
10843
  i0.ɵɵadvance();
@@ -11142,9 +10852,9 @@ class CaseEditPageComponent {
11142
10852
  }
11143
10853
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditPageComponent, [{
11144
10854
  type: Component,
11145
- args: [{ selector: 'ccd-case-edit-page', template: "<ng-container *ngIf=\"currentPage\">\n <h1 *ngIf=\"!currentPage.label\" class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n <ng-container *ngIf=\"currentPage.label\">\n <span class=\"govuk-caption-l\">{{ eventTrigger.name | rpxTranslate}}</span>\n <h1 class=\"govuk-heading-l\">{{currentPage.label | rpxTranslate}}</h1>\n </ng-container>\n</ng-container>\n\n<!--Case ID or Title -->\n<div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n<ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: caseFields : editForm.controls['data']\"></ccd-markdown>\n</ng-template>\n<ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n</ng-template>\n\n<!-- Error message summary -->\n<div *ngIf=\"validationErrors.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{'There is a problem' | rpxTranslate}}\n </h2>\n <div *ngFor=\"let validationError of validationErrors\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(validationError.id)\" class=\"validation-error\">\n {{ validationError.message | rpxTranslate: getRpxTranslatePipeArgs(validationError.label | rpxTranslate): null }}\n </a>\n </li>\n </ul>\n </div>\n</div>\n\n<ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<div class=\"width-50\">\n <form *ngIf=\"currentPage\" class=\"form\" [formGroup]=\"editForm\" (submit)=\"nextStep()\">\n <fieldset id=\"fieldset-case-data\">\n <legend style=\"display: none;\"></legend>\n <!-- single column -->\n <ccd-case-edit-form id='caseEditForm' *ngIf=\"!currentPage.isMultiColumn()\" [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"\n [pageChangeSubject]=\"pageChangeSubject\"\n (valuesChanged)=\"applyValuesChanged($event)\"></ccd-case-edit-form>\n <!-- two columns -->\n <div *ngIf=\"currentPage.isMultiColumn()\" class=\"grid-row\">\n <div class=\"column-two-thirds rightBorderSeparator\">\n <ccd-case-edit-form id='caseEditForm1' [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n <div class=\"column-one-third\">\n <ccd-case-edit-form id='caseEditForm2' [fields]=\"currentPage.getCol2Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n </div>\n </fieldset>\n\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" (click)=\"toPreviousPage()\" *ngIf=\"!isAtStart()\" [disabled]=\"isAtStart()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button class=\"button\" type=\"submit\" [disabled]=\"submitting()\">{{triggerText | rpxTranslate}}</button>\n </div>\n\n <p class=\"cancel\"><a (click)=\"cancel()\" href=\"javascript:void(0)\">{{getCancelText() | rpxTranslate}}</a></p>\n </form>\n</div>\n\n<ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n</ccd-case-event-completion>\n", styles: [".rightBorderSeparator{border-right-width:4px;border-right-color:#ffcc02;border-right-style:solid}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
11146
- }], () => [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$3.MatLegacyDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }, { type: MultipageComponentStateService }, { type: AddressesService }, { type: LinkedCasesService }], null); })();
11147
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditPageComponent, { className: "CaseEditPageComponent", filePath: "lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts", lineNumber: 33 }); })();
10855
+ args: [{ selector: 'ccd-case-edit-page', template: "<ng-container *ngIf=\"currentPage\">\n <h1 *ngIf=\"!currentPage.label\" class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n <ng-container *ngIf=\"currentPage.label\">\n <span class=\"govuk-caption-l\">{{ eventTrigger.name | rpxTranslate}}</span>\n <h1 class=\"govuk-heading-l\">{{currentPage.label | rpxTranslate}}</h1>\n </ng-container>\n</ng-container>\n\n<!--Case ID or Title -->\n<div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n<ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: caseFields : editForm.controls['data']\"></ccd-markdown>\n</ng-template>\n<ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n</ng-template>\n\n<!-- Error message summary -->\n<div *ngIf=\"validationErrors.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{'There is a problem' | rpxTranslate}}\n </h2>\n <div *ngFor=\"let validationError of validationErrors\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(validationError.id)\" class=\"validation-error\">\n {{ validationError.message | rpxTranslate: getRpxTranslatePipeArgs(validationError.label | rpxTranslate): null }}\n </a>\n </li>\n </ul>\n </div>\n</div>\n\n<ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<div class=\"width-50\">\n <form *ngIf=\"currentPage\" class=\"form\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <fieldset id=\"fieldset-case-data\">\n <legend style=\"display: none;\"></legend>\n <!-- single column -->\n <ccd-case-edit-form id='caseEditForm' *ngIf=\"!currentPage.isMultiColumn()\" [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"\n [pageChangeSubject]=\"pageChangeSubject\"\n (valuesChanged)=\"applyValuesChanged($event)\"></ccd-case-edit-form>\n <!-- two columns -->\n <div *ngIf=\"currentPage.isMultiColumn()\" class=\"grid-row\">\n <div class=\"column-two-thirds rightBorderSeparator\">\n <ccd-case-edit-form id='caseEditForm1' [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n <div class=\"column-one-third\">\n <ccd-case-edit-form id='caseEditForm2' [fields]=\"currentPage.getCol2Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n </div>\n </fieldset>\n\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" [disabled]=\"!(hasPreviousPage$ | async)\" (click)=\"toPreviousPage()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button class=\"button\" type=\"submit\" [disabled]=\"submitting()\">{{triggerText | rpxTranslate}}</button>\n </div>\n\n <p class=\"cancel\"><a (click)=\"cancel()\" href=\"javascript:void(0)\">{{getCancelText() | rpxTranslate}}</a></p>\n </form>\n</div>\n\n<ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n</ccd-case-event-completion>\n", styles: [".rightBorderSeparator{border-right-width:4px;border-right-color:#ffcc02;border-right-style:solid}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
10856
+ }], () => [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$3.MatLegacyDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }, { type: AddressesService }], null); })();
10857
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditPageComponent, { className: "CaseEditPageComponent", filePath: "lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts", lineNumber: 31 }); })();
11148
10858
 
11149
10859
  class CallbackErrorsContext {
11150
10860
  triggerText;
@@ -11293,7 +11003,7 @@ class CallbackErrorsComponent {
11293
11003
  }] }); })();
11294
11004
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CallbackErrorsComponent, { className: "CallbackErrorsComponent", filePath: "lib/shared/components/error/callback-errors.component.ts", lineNumber: 10 }); })();
11295
11005
 
11296
- const _c0$Z = a0 => ["/", "cases", "case-details", a0, "tasks"];
11006
+ const _c0$X = a0 => ["/", "cases", "case-details", a0, "tasks"];
11297
11007
  class CaseEventCompletionTaskCancelledComponent {
11298
11008
  parentComponent;
11299
11009
  caseId;
@@ -11356,7 +11066,7 @@ class CaseEventCompletionTaskCancelledComponent {
11356
11066
  i0.ɵɵadvance(4);
11357
11067
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 21, "Continue"), " ");
11358
11068
  i0.ɵɵadvance(2);
11359
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(25, _c0$Z, ctx.caseId));
11069
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(25, _c0$X, ctx.caseId));
11360
11070
  i0.ɵɵadvance();
11361
11071
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 23, "Cancel"), " ");
11362
11072
  } }, dependencies: [i1$1.RouterLink, i1.RpxTranslatePipe], encapsulation: 2 });
@@ -11370,7 +11080,7 @@ class CaseEventCompletionTaskCancelledComponent {
11370
11080
  }] }], null); })();
11371
11081
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEventCompletionTaskCancelledComponent, { className: "CaseEventCompletionTaskCancelledComponent", filePath: "lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.ts", lineNumber: 8 }); })();
11372
11082
 
11373
- const _c0$Y = a0 => ["/", "cases", "case-details", a0, "tasks"];
11083
+ const _c0$W = a0 => ["/", "cases", "case-details", a0, "tasks"];
11374
11084
  function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if (rf & 1) {
11375
11085
  const _r1 = i0.ɵɵgetCurrentView();
11376
11086
  i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h2", 3);
@@ -11423,7 +11133,7 @@ function CaseEventCompletionTaskReassignedComponent_div_0_Template(rf, ctx) { if
11423
11133
  i0.ɵɵadvance(4);
11424
11134
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 22, "Continue"), " ");
11425
11135
  i0.ɵɵadvance(2);
11426
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(26, _c0$Y, ctx_r1.caseId));
11136
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(26, _c0$W, ctx_r1.caseId));
11427
11137
  i0.ɵɵadvance();
11428
11138
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 24, "Cancel"), " ");
11429
11139
  } }
@@ -11899,7 +11609,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
11899
11609
  }] }); })();
11900
11610
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteComplexFieldComponent, { className: "WriteComplexFieldComponent", filePath: "lib/shared/components/palette/complex/write-complex-field.component.ts", lineNumber: 21 }); })();
11901
11611
 
11902
- const _c0$X = ["writeComplexFieldComponent"];
11612
+ const _c0$V = ["writeComplexFieldComponent"];
11903
11613
  const _c1$o = a0 => ({ "form-group-error": a0 });
11904
11614
  const _c2$3 = a0 => ({ "govuk-input--error": a0 });
11905
11615
  function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (rf & 1) {
@@ -12141,7 +11851,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
12141
11851
  }
12142
11852
  static ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressesService), i0.ɵɵdirectiveInject(IsCompoundPipe)); };
12143
11853
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) { if (rf & 1) {
12144
- i0.ɵɵviewQuery(_c0$X, 5);
11854
+ i0.ɵɵviewQuery(_c0$V, 5);
12145
11855
  i0.ɵɵviewQuery(FocusElementDirective, 5);
12146
11856
  } if (rf & 2) {
12147
11857
  let _t;
@@ -12204,171 +11914,6 @@ class AbstractFieldReadComponent extends AbstractFormFieldComponent {
12204
11914
  type: Input
12205
11915
  }] }); })();
12206
11916
 
12207
- const _c0$W = ["journeyChild"];
12208
- class AbstractFieldWriteJourneyComponent extends AbstractFieldWriteComponent {
12209
- multipageComponentStateService;
12210
- journeyStartPageNumber = 0;
12211
- journeyEndPageNumber = 0;
12212
- journeyPageNumber = 0;
12213
- journeyPreviousPageNumber = 0;
12214
- journeyId = 'journey';
12215
- // todo...
12216
- childJourney;
12217
- constructor(multipageComponentStateService) {
12218
- super();
12219
- this.multipageComponentStateService = multipageComponentStateService;
12220
- this.multipageComponentStateService.addTojourneyCollection(this);
12221
- this.journeyPageNumber = this.journeyStartPageNumber;
12222
- }
12223
- next() {
12224
- if (!this.hasNext()) {
12225
- return;
12226
- }
12227
- this.childJourney.next();
12228
- }
12229
- previous() {
12230
- if (!this.hasPrevious()) {
12231
- return;
12232
- }
12233
- if (this.childJourney['cachedFlagType'] && this.childJourney['subJourneyIndex'] !== 0) {
12234
- this.childJourney.previous();
12235
- }
12236
- else {
12237
- this.previousPage();
12238
- }
12239
- }
12240
- previousPage() {
12241
- if (this.hasPrevious()) {
12242
- this.journeyPageNumber--;
12243
- this.onPageChange();
12244
- }
12245
- }
12246
- nextPage() {
12247
- if (this.hasNext()) {
12248
- this.journeyPageNumber++;
12249
- this.onPageChange();
12250
- }
12251
- }
12252
- ngOnInit() {
12253
- this.journeyPageNumber = this.journeyStartPageNumber;
12254
- const state = this.multipageComponentStateService.getJourneyState(this);
12255
- if (state) {
12256
- const { journeyPageNumber, journeyStartPageNumber, journeyEndPageNumber } = state;
12257
- this.journeyPageNumber = journeyPageNumber;
12258
- this.journeyStartPageNumber = journeyStartPageNumber;
12259
- this.journeyEndPageNumber = journeyEndPageNumber;
12260
- }
12261
- }
12262
- ngOnDestroy() {
12263
- this.multipageComponentStateService.setJourneyState(this);
12264
- }
12265
- hasNext() { return this.journeyPageNumber < this.journeyEndPageNumber; }
12266
- ;
12267
- hasPrevious() { return this.journeyPageNumber > this.journeyStartPageNumber; }
12268
- ;
12269
- isFinished() { return this.journeyPageNumber === this.journeyEndPageNumber; }
12270
- ;
12271
- isStart() { return this.journeyPageNumber === this.journeyStartPageNumber; }
12272
- ;
12273
- getId() { return this.journeyId; }
12274
- ;
12275
- onPageChange() { }
12276
- ;
12277
- static ɵfac = function AbstractFieldWriteJourneyComponent_Factory(t) { return new (t || AbstractFieldWriteJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
12278
- static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractFieldWriteJourneyComponent, viewQuery: function AbstractFieldWriteJourneyComponent_Query(rf, ctx) { if (rf & 1) {
12279
- i0.ɵɵviewQuery(_c0$W, 5);
12280
- } if (rf & 2) {
12281
- let _t;
12282
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
12283
- } }, inputs: { journeyId: "journeyId" }, features: [i0.ɵɵInheritDefinitionFeature] });
12284
- }
12285
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AbstractFieldWriteJourneyComponent, [{
12286
- type: Directive
12287
- }], () => [{ type: MultipageComponentStateService }], { journeyId: [{
12288
- type: Input
12289
- }], childJourney: [{
12290
- type: ViewChild,
12291
- args: ['journeyChild']
12292
- }] }); })();
12293
-
12294
- const _c0$V = ["journeyChild"];
12295
- class AbstractJourneyComponent {
12296
- multipageComponentStateService;
12297
- journeyStartPageNumber = 0;
12298
- journeyEndPageNumber = 0;
12299
- journeyPageNumber = 0;
12300
- journeyPreviousPageNumber;
12301
- journeyId = 'journey';
12302
- // todo...
12303
- childJourney;
12304
- constructor(multipageComponentStateService) {
12305
- this.multipageComponentStateService = multipageComponentStateService;
12306
- this.multipageComponentStateService.addTojourneyCollection(this);
12307
- this.journeyPageNumber = this.journeyStartPageNumber;
12308
- }
12309
- next() {
12310
- if (!this.hasNext()) {
12311
- return;
12312
- }
12313
- this.childJourney.next();
12314
- }
12315
- previous() {
12316
- if (!this.hasPrevious()) {
12317
- return;
12318
- }
12319
- this.previousPage();
12320
- }
12321
- previousPage() {
12322
- if (this.hasPrevious()) {
12323
- this.journeyPageNumber--;
12324
- }
12325
- }
12326
- ngOnInit() {
12327
- this.journeyPageNumber = this.journeyStartPageNumber;
12328
- const state = this.multipageComponentStateService.getJourneyState(this);
12329
- if (state) {
12330
- const { journeyPageNumber, journeyStartPageNumber, journeyEndPageNumber } = state;
12331
- this.journeyPageNumber = journeyPageNumber;
12332
- this.journeyStartPageNumber = journeyStartPageNumber;
12333
- this.journeyEndPageNumber = journeyEndPageNumber;
12334
- }
12335
- }
12336
- ngOnDestroy() {
12337
- this.multipageComponentStateService.setJourneyState(this);
12338
- }
12339
- hasNext() {
12340
- return this.journeyPageNumber < this.journeyEndPageNumber;
12341
- }
12342
- hasPrevious() {
12343
- return this.journeyPageNumber > this.journeyStartPageNumber;
12344
- }
12345
- isFinished() {
12346
- return this.journeyPageNumber === this.journeyEndPageNumber;
12347
- }
12348
- isStart() {
12349
- return this.journeyPageNumber === this.journeyStartPageNumber;
12350
- }
12351
- getId() {
12352
- return this.journeyId;
12353
- }
12354
- onPageChange() { }
12355
- static ɵfac = function AbstractJourneyComponent_Factory(t) { return new (t || AbstractJourneyComponent)(i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
12356
- static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: AbstractJourneyComponent, viewQuery: function AbstractJourneyComponent_Query(rf, ctx) { if (rf & 1) {
12357
- i0.ɵɵviewQuery(_c0$V, 5);
12358
- } if (rf & 2) {
12359
- let _t;
12360
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.childJourney = _t.first);
12361
- } }, inputs: { journeyId: "journeyId" } });
12362
- }
12363
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AbstractJourneyComponent, [{
12364
- type: Directive
12365
- }], () => [{ type: MultipageComponentStateService }], { journeyId: [{
12366
- type: Input
12367
- }], childJourney: [{
12368
- type: ViewChild,
12369
- args: ['journeyChild']
12370
- }] }); })();
12371
-
12372
11917
  var DisplayContextParameter;
12373
11918
  (function (DisplayContextParameter) {
12374
11919
  DisplayContextParameter["Read"] = "READ";
@@ -12421,7 +11966,7 @@ function CaseFileViewFieldComponent_div_2_ng_container_8_Template(rf, ctx) { if
12421
11966
  } if (rf & 2) {
12422
11967
  const ctx_r1 = i0.ɵɵnextContext(2);
12423
11968
  i0.ɵɵadvance();
12424
- i0.ɵɵproperty("url", ctx_r1.currentDocument.document_binary_url)("downloadFileName", ctx_r1.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r1.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh")("enableICP", ctx_r1.isIcpEnabled());
11969
+ i0.ɵɵproperty("url", ctx_r1.currentDocument.document_binary_url)("downloadFileName", ctx_r1.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r1.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh")("caseId", ctx_r1.caseId)("enableICP", ctx_r1.isIcpEnabled());
12425
11970
  } }
12426
11971
  function CaseFileViewFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
12427
11972
  const _r3 = i0.ɵɵgetCurrentView();
@@ -12433,7 +11978,7 @@ function CaseFileViewFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
12433
11978
  i0.ɵɵelementEnd()();
12434
11979
  i0.ɵɵelement(6, "div", 16);
12435
11980
  i0.ɵɵelementStart(7, "div", 17);
12436
- i0.ɵɵtemplate(8, CaseFileViewFieldComponent_div_2_ng_container_8_Template, 2, 8, "ng-container", 0);
11981
+ i0.ɵɵtemplate(8, CaseFileViewFieldComponent_div_2_ng_container_8_Template, 2, 9, "ng-container", 0);
12437
11982
  i0.ɵɵelementEnd()()();
12438
11983
  } if (rf & 2) {
12439
11984
  const ctx_r1 = i0.ɵɵnextContext();
@@ -12462,6 +12007,7 @@ class CaseFileViewFieldComponent {
12462
12007
  caseField;
12463
12008
  icp_jurisdictions = [];
12464
12009
  icpEnabled = false;
12010
+ caseId;
12465
12011
  constructor(elementRef, route, caseFileViewService, documentManagementService, loadingService, sessionStorageService, caseNotifier, abstractConfig) {
12466
12012
  this.elementRef = elementRef;
12467
12013
  this.route = route;
@@ -12473,8 +12019,8 @@ class CaseFileViewFieldComponent {
12473
12019
  this.abstractConfig = abstractConfig;
12474
12020
  }
12475
12021
  ngOnInit() {
12476
- const cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
12477
- this.categoriesAndDocuments$ = this.caseFileViewService.getCategoriesAndDocuments(cid);
12022
+ this.caseId = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
12023
+ this.categoriesAndDocuments$ = this.caseFileViewService.getCategoriesAndDocuments(this.caseId);
12478
12024
  this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments$.subscribe({
12479
12025
  next: data => {
12480
12026
  this.caseVersion = data.case_version;
@@ -12551,7 +12097,7 @@ class CaseFileViewFieldComponent {
12551
12097
  return this.icpEnabled && ((this.icp_jurisdictions?.length < 1) || this.icp_jurisdictions.includes(this.caseNotifier?.cachedCaseView?.case_type?.jurisdiction.id));
12552
12098
  }
12553
12099
  static ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseFileViewService), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(AbstractAppConfig)); };
12554
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 3, vars: 3, consts: [[4, "ngIf"], ["class", "govuk-grid-column-two-thirds", 4, "ngIf"], ["id", "case-file-view-field-errors", "data-module", "govuk-error-summary", 1, "govuk-error-summary", "govuk-!-margin-bottom-4"], ["role", "alert"], [1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0);"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "clickedDocument", "moveDocument", "categoriesAndDocuments", "allowMoving"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height", "enableICP"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) { if (rf & 1) {
12100
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 3, vars: 3, consts: [[4, "ngIf"], ["class", "govuk-grid-column-two-thirds", 4, "ngIf"], ["id", "case-file-view-field-errors", "data-module", "govuk-error-summary", 1, "govuk-error-summary", "govuk-!-margin-bottom-4"], ["role", "alert"], [1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0);"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "clickedDocument", "moveDocument", "categoriesAndDocuments", "allowMoving"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height", "caseId", "enableICP"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) { if (rf & 1) {
12555
12101
  i0.ɵɵtemplate(0, CaseFileViewFieldComponent_ng_container_0_Template, 8, 1, "ng-container", 0)(1, CaseFileViewFieldComponent_div_1_Template, 5, 0, "div", 1)(2, CaseFileViewFieldComponent_div_2_Template, 9, 3, "div", 0);
12556
12102
  } if (rf & 2) {
12557
12103
  i0.ɵɵproperty("ngIf", ctx.errorMessages == null ? null : ctx.errorMessages.length);
@@ -12563,7 +12109,7 @@ class CaseFileViewFieldComponent {
12563
12109
  }
12564
12110
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
12565
12111
  type: Component,
12566
- args: [{ selector: 'ccd-case-file-view-field', template: "<ng-container *ngIf=\"errorMessages?.length\">\n <div\n id=\"case-file-view-field-errors\"\n class=\"govuk-error-summary govuk-!-margin-bottom-4\" data-module=\"govuk-error-summary\">\n <div role=\"alert\">\n <h2 class=\"govuk-error-summary__title\">\n There is a problem\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li *ngFor=\"let errorMessage of errorMessages\">\n <a href=\"javascript:void(0);\">{{ errorMessage }}</a>\n </li>\n </ul>\n </div>\n </div>\n </div>\n</ng-container>\n\n<div *ngIf=\"getCategoriesAndDocumentsError\" class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Sorry, there is a problem with the service</h1>\n <p class=\"govuk-body\">Try again later.</p>\n</div>\n<div *ngIf=\"!getCategoriesAndDocumentsError\">\n <h2 class=\"govuk-heading-l\">Case file</h2>\n <div class=\"govuk-form-group\" id=\"case-file-view\">\n <!-- Document tree -->\n <div class=\"document-tree-container\">\n <ccd-case-file-view-folder\n class=\"document-tree-container__tree\"\n [categoriesAndDocuments]=\"categoriesAndDocuments$\"\n (clickedDocument)=\"setMediaViewerFile($event); resetErrorMessages()\"\n (moveDocument)=\"moveDocument($event)\"\n [allowMoving]=\"allowMoving\"\n ></ccd-case-file-view-folder>\n </div>\n <!-- Slider -->\n <div class=\"slider\"></div>\n <!-- Media viewer -->\n <div class=\"media-viewer-container\">\n <ng-container *ngIf=\"currentDocument\">\n <mv-media-viewer [url]=\"currentDocument.document_binary_url\"\n [downloadFileName]=\"currentDocument.document_filename\"\n [showToolbar]=\"true\"\n [contentType]=\"currentDocument.content_type\"\n [enableAnnotations]=\"true\"\n [enableRedactions]=\"true\"\n [height]=\"'94.5vh'\"\n [enableICP]=\"isIcpEnabled()\">\n </mv-media-viewer>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: ["#case-file-view{display:flex;border:2px solid #C9C9C9;height:100vh;position:relative}#case-file-view .document-tree-container{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view .slider{width:.2%;background-color:#6b6b6b}#case-file-view .slider:hover,#case-file-view .slider:focus{cursor:col-resize}#case-file-view .media-viewer-container{background-color:#dee0e2;flex:1 1 0;overflow:hidden}\n"] }]
12112
+ args: [{ selector: 'ccd-case-file-view-field', template: "<ng-container *ngIf=\"errorMessages?.length\">\n <div\n id=\"case-file-view-field-errors\"\n class=\"govuk-error-summary govuk-!-margin-bottom-4\" data-module=\"govuk-error-summary\">\n <div role=\"alert\">\n <h2 class=\"govuk-error-summary__title\">\n There is a problem\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li *ngFor=\"let errorMessage of errorMessages\">\n <a href=\"javascript:void(0);\">{{ errorMessage }}</a>\n </li>\n </ul>\n </div>\n </div>\n </div>\n</ng-container>\n\n<div *ngIf=\"getCategoriesAndDocumentsError\" class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">Sorry, there is a problem with the service</h1>\n <p class=\"govuk-body\">Try again later.</p>\n</div>\n<div *ngIf=\"!getCategoriesAndDocumentsError\">\n <h2 class=\"govuk-heading-l\">Case file</h2>\n <div class=\"govuk-form-group\" id=\"case-file-view\">\n <!-- Document tree -->\n <div class=\"document-tree-container\">\n <ccd-case-file-view-folder\n class=\"document-tree-container__tree\"\n [categoriesAndDocuments]=\"categoriesAndDocuments$\"\n (clickedDocument)=\"setMediaViewerFile($event); resetErrorMessages()\"\n (moveDocument)=\"moveDocument($event)\"\n [allowMoving]=\"allowMoving\"\n ></ccd-case-file-view-folder>\n </div>\n <!-- Slider -->\n <div class=\"slider\"></div>\n <!-- Media viewer -->\n <div class=\"media-viewer-container\">\n <ng-container *ngIf=\"currentDocument\">\n <mv-media-viewer [url]=\"currentDocument.document_binary_url\"\n [downloadFileName]=\"currentDocument.document_filename\"\n [showToolbar]=\"true\"\n [contentType]=\"currentDocument.content_type\"\n [enableAnnotations]=\"true\"\n [enableRedactions]=\"true\"\n [height]=\"'94.5vh'\"\n [caseId]=\"caseId\"\n [enableICP]=\"isIcpEnabled()\">\n </mv-media-viewer>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: ["#case-file-view{display:flex;border:2px solid #C9C9C9;height:100vh;position:relative}#case-file-view .document-tree-container{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view .slider{width:.2%;background-color:#6b6b6b}#case-file-view .slider:hover,#case-file-view .slider:focus{cursor:col-resize}#case-file-view .media-viewer-container{background-color:#dee0e2;flex:1 1 0;overflow:hidden}\n"] }]
12567
12113
  }], () => [{ type: i0.ElementRef }, { type: i1$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }, { type: SessionStorageService }, { type: CaseNotifier }, { type: AbstractAppConfig }], null); })();
12568
12114
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFieldComponent, { className: "CaseFileViewFieldComponent", filePath: "lib/shared/components/palette/case-file-view/case-file-view-field.component.ts", lineNumber: 17 }); })();
12569
12115
 
@@ -12571,12 +12117,10 @@ class CaseFlagStateService {
12571
12117
  formGroup = new FormGroup({});
12572
12118
  pageLocation;
12573
12119
  fieldStateToNavigate;
12574
- lastPageFieldState;
12575
12120
  resetCache(pageLocation) {
12576
12121
  this.formGroup = new FormGroup({});
12577
12122
  this.fieldStateToNavigate = undefined;
12578
12123
  this.pageLocation = pageLocation;
12579
- this.lastPageFieldState = 0;
12580
12124
  }
12581
12125
  static ɵfac = function CaseFlagStateService_Factory(t) { return new (t || CaseFlagStateService)(); };
12582
12126
  static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CaseFlagStateService, factory: CaseFlagStateService.ɵfac });
@@ -12830,7 +12374,7 @@ class ReadCaseFlagFieldComponent extends AbstractFieldReadComponent {
12830
12374
 
12831
12375
  function WriteCaseFlagFieldComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
12832
12376
  const _r1 = i0.ɵɵgetCurrentView();
12833
- i0.ɵɵelementStart(0, "div", 6)(1, "ul", 7)(2, "li")(3, "a", 8);
12377
+ i0.ɵɵelementStart(0, "div", 5)(1, "ul", 6)(2, "li")(3, "a", 7);
12834
12378
  i0.ɵɵlistener("click", function WriteCaseFlagFieldComponent_div_0_div_4_Template_a_click_3_listener() { const errorMessage_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.navigateToErrorElement(errorMessage_r2.fieldId)); });
12835
12379
  i0.ɵɵtext(4);
12836
12380
  i0.ɵɵpipe(5, "rpxTranslate");
@@ -12841,11 +12385,11 @@ function WriteCaseFlagFieldComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1)
12841
12385
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 1, errorMessage_r2.description));
12842
12386
  } }
12843
12387
  function WriteCaseFlagFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
12844
- i0.ɵɵelementStart(0, "div", 3)(1, "h2", 4);
12388
+ i0.ɵɵelementStart(0, "div", 2)(1, "h2", 3);
12845
12389
  i0.ɵɵtext(2);
12846
12390
  i0.ɵɵpipe(3, "rpxTranslate");
12847
12391
  i0.ɵɵelementEnd();
12848
- i0.ɵɵtemplate(4, WriteCaseFlagFieldComponent_div_0_div_4_Template, 6, 3, "div", 5);
12392
+ i0.ɵɵtemplate(4, WriteCaseFlagFieldComponent_div_0_div_4_Template, 6, 3, "div", 4);
12849
12393
  i0.ɵɵelementEnd();
12850
12394
  } if (rf & 2) {
12851
12395
  const ctx_r2 = i0.ɵɵnextContext();
@@ -12857,7 +12401,7 @@ function WriteCaseFlagFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
12857
12401
  function WriteCaseFlagFieldComponent_div_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
12858
12402
  const _r4 = i0.ɵɵgetCurrentView();
12859
12403
  i0.ɵɵelementContainerStart(0);
12860
- i0.ɵɵelementStart(1, "ccd-select-flag-location", 12, 0);
12404
+ i0.ɵɵelementStart(1, "ccd-select-flag-location", 11);
12861
12405
  i0.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_2_Template_ccd_select_flag_location_caseFlagStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCaseFlagStateEmitted($event)); });
12862
12406
  i0.ɵɵelementEnd();
12863
12407
  i0.ɵɵelementContainerEnd();
@@ -12869,7 +12413,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_2_Template(rf, ctx) { if
12869
12413
  function WriteCaseFlagFieldComponent_div_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
12870
12414
  const _r5 = i0.ɵɵgetCurrentView();
12871
12415
  i0.ɵɵelementContainerStart(0);
12872
- i0.ɵɵelementStart(1, "ccd-select-flag-type", 13, 0);
12416
+ i0.ɵɵelementStart(1, "ccd-select-flag-type", 12);
12873
12417
  i0.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_3_Template_ccd_select_flag_type_caseFlagStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCaseFlagStateEmitted($event)); })("flagCommentsOptionalEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_3_Template_ccd_select_flag_type_flagCommentsOptionalEmitter_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onFlagCommentsOptionalEmitted($event)); });
12874
12418
  i0.ɵɵelementEnd();
12875
12419
  i0.ɵɵelementContainerEnd();
@@ -12881,7 +12425,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_3_Template(rf, ctx) { if
12881
12425
  function WriteCaseFlagFieldComponent_div_1_ng_container_4_Template(rf, ctx) { if (rf & 1) {
12882
12426
  const _r6 = i0.ɵɵgetCurrentView();
12883
12427
  i0.ɵɵelementContainerStart(0);
12884
- i0.ɵɵelementStart(1, "ccd-search-language-interpreter", 14, 0);
12428
+ i0.ɵɵelementStart(1, "ccd-search-language-interpreter", 13);
12885
12429
  i0.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_4_Template_ccd_search_language_interpreter_caseFlagStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCaseFlagStateEmitted($event)); });
12886
12430
  i0.ɵɵelementEnd();
12887
12431
  i0.ɵɵelementContainerEnd();
@@ -12893,7 +12437,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_4_Template(rf, ctx) { if
12893
12437
  function WriteCaseFlagFieldComponent_div_1_ng_container_5_Template(rf, ctx) { if (rf & 1) {
12894
12438
  const _r7 = i0.ɵɵgetCurrentView();
12895
12439
  i0.ɵɵelementContainerStart(0);
12896
- i0.ɵɵelementStart(1, "ccd-add-comments", 15, 0);
12440
+ i0.ɵɵelementStart(1, "ccd-add-comments", 14);
12897
12441
  i0.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_5_Template_ccd_add_comments_caseFlagStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCaseFlagStateEmitted($event)); });
12898
12442
  i0.ɵɵelementEnd();
12899
12443
  i0.ɵɵelementContainerEnd();
@@ -12905,7 +12449,7 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_5_Template(rf, ctx) { if
12905
12449
  function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template(rf, ctx) { if (rf & 1) {
12906
12450
  const _r8 = i0.ɵɵgetCurrentView();
12907
12451
  i0.ɵɵelementContainerStart(0);
12908
- i0.ɵɵelementStart(1, "ccd-confirm-flag-status", 16, 0);
12452
+ i0.ɵɵelementStart(1, "ccd-confirm-flag-status", 15);
12909
12453
  i0.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template_ccd_confirm_flag_status_caseFlagStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCaseFlagStateEmitted($event)); });
12910
12454
  i0.ɵɵelementEnd();
12911
12455
  i0.ɵɵelementContainerEnd();
@@ -12915,8 +12459,8 @@ function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template(rf, ctx) { if
12915
12459
  i0.ɵɵproperty("formGroup", ctx_r2.caseFlagParentFormGroup)("defaultStatus", ctx_r2.flagType.defaultStatus);
12916
12460
  } }
12917
12461
  function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
12918
- i0.ɵɵelementStart(0, "div", 9)(1, "div", 10);
12919
- i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_1_ng_container_2_Template, 3, 3, "ng-container", 11)(3, WriteCaseFlagFieldComponent_div_1_ng_container_3_Template, 3, 7, "ng-container", 11)(4, WriteCaseFlagFieldComponent_div_1_ng_container_4_Template, 3, 2, "ng-container", 11)(5, WriteCaseFlagFieldComponent_div_1_ng_container_5_Template, 3, 4, "ng-container", 11)(6, WriteCaseFlagFieldComponent_div_1_ng_container_6_Template, 3, 2, "ng-container", 11);
12462
+ i0.ɵɵelementStart(0, "div", 8)(1, "div", 9);
12463
+ i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_1_ng_container_2_Template, 2, 3, "ng-container", 10)(3, WriteCaseFlagFieldComponent_div_1_ng_container_3_Template, 2, 7, "ng-container", 10)(4, WriteCaseFlagFieldComponent_div_1_ng_container_4_Template, 2, 2, "ng-container", 10)(5, WriteCaseFlagFieldComponent_div_1_ng_container_5_Template, 2, 4, "ng-container", 10)(6, WriteCaseFlagFieldComponent_div_1_ng_container_6_Template, 2, 2, "ng-container", 10);
12920
12464
  i0.ɵɵelementEnd()();
12921
12465
  } if (rf & 2) {
12922
12466
  const ctx_r2 = i0.ɵɵnextContext();
@@ -12937,7 +12481,7 @@ function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
12937
12481
  function WriteCaseFlagFieldComponent_div_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
12938
12482
  const _r9 = i0.ɵɵgetCurrentView();
12939
12483
  i0.ɵɵelementContainerStart(0);
12940
- i0.ɵɵelementStart(1, "ccd-manage-case-flags", 17, 0);
12484
+ i0.ɵɵelementStart(1, "ccd-manage-case-flags", 16);
12941
12485
  i0.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_2_ng_container_2_Template_ccd_manage_case_flags_caseFlagStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCaseFlagStateEmitted($event)); });
12942
12486
  i0.ɵɵelementEnd();
12943
12487
  i0.ɵɵelementContainerEnd();
@@ -12949,7 +12493,7 @@ function WriteCaseFlagFieldComponent_div_2_ng_container_2_Template(rf, ctx) { if
12949
12493
  function WriteCaseFlagFieldComponent_div_2_ng_container_3_Template(rf, ctx) { if (rf & 1) {
12950
12494
  const _r10 = i0.ɵɵgetCurrentView();
12951
12495
  i0.ɵɵelementContainerStart(0);
12952
- i0.ɵɵelementStart(1, "ccd-update-flag", 18, 0);
12496
+ i0.ɵɵelementStart(1, "ccd-update-flag", 17);
12953
12497
  i0.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_2_ng_container_3_Template_ccd_update_flag_caseFlagStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCaseFlagStateEmitted($event)); });
12954
12498
  i0.ɵɵelementEnd();
12955
12499
  i0.ɵɵelementContainerEnd();
@@ -12961,7 +12505,7 @@ function WriteCaseFlagFieldComponent_div_2_ng_container_3_Template(rf, ctx) { if
12961
12505
  function WriteCaseFlagFieldComponent_div_2_ng_container_4_Template(rf, ctx) { if (rf & 1) {
12962
12506
  const _r11 = i0.ɵɵgetCurrentView();
12963
12507
  i0.ɵɵelementContainerStart(0);
12964
- i0.ɵɵelementStart(1, "ccd-update-flag-add-translation-form", 19, 0);
12508
+ i0.ɵɵelementStart(1, "ccd-update-flag-add-translation-form", 18);
12965
12509
  i0.ɵɵlistener("caseFlagStateEmitter", function WriteCaseFlagFieldComponent_div_2_ng_container_4_Template_ccd_update_flag_add_translation_form_caseFlagStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCaseFlagStateEmitted($event)); });
12966
12510
  i0.ɵɵelementEnd();
12967
12511
  i0.ɵɵelementContainerEnd();
@@ -12971,8 +12515,8 @@ function WriteCaseFlagFieldComponent_div_2_ng_container_4_Template(rf, ctx) { if
12971
12515
  i0.ɵɵproperty("formGroup", ctx_r2.caseFlagParentFormGroup);
12972
12516
  } }
12973
12517
  function WriteCaseFlagFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
12974
- i0.ɵɵelementStart(0, "div", 9)(1, "div", 10);
12975
- i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_2_ng_container_2_Template, 3, 4, "ng-container", 11)(3, WriteCaseFlagFieldComponent_div_2_ng_container_3_Template, 3, 2, "ng-container", 11)(4, WriteCaseFlagFieldComponent_div_2_ng_container_4_Template, 3, 1, "ng-container", 11);
12518
+ i0.ɵɵelementStart(0, "div", 8)(1, "div", 9);
12519
+ i0.ɵɵtemplate(2, WriteCaseFlagFieldComponent_div_2_ng_container_2_Template, 2, 4, "ng-container", 10)(3, WriteCaseFlagFieldComponent_div_2_ng_container_3_Template, 2, 2, "ng-container", 10)(4, WriteCaseFlagFieldComponent_div_2_ng_container_4_Template, 2, 1, "ng-container", 10);
12976
12520
  i0.ɵɵelementEnd()();
12977
12521
  } if (rf & 2) {
12978
12522
  const ctx_r2 = i0.ɵɵnextContext();
@@ -12986,12 +12530,11 @@ function WriteCaseFlagFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
12986
12530
  i0.ɵɵadvance();
12987
12531
  i0.ɵɵproperty("ngSwitchCase", ctx_r2.caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION);
12988
12532
  } }
12989
- class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
12533
+ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
12990
12534
  route;
12991
12535
  caseEditDataService;
12992
12536
  caseFlagStateService;
12993
12537
  rpxTranslationService;
12994
- //public formGroup: FormGroup;
12995
12538
  fieldState;
12996
12539
  caseFlagFieldState = CaseFlagFieldState;
12997
12540
  errorMessages = [];
@@ -13010,7 +12553,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
13010
12553
  displayContextParameter;
13011
12554
  determinedLocation;
13012
12555
  allCaseFlagStagesCompleted = false;
13013
- navigatedTo = false;
13014
12556
  // Code for "Other" flag type as defined in Reference Data
13015
12557
  otherFlagTypeCode = 'OT0001';
13016
12558
  selectedManageCaseLocation = 'selectedManageCaseLocation';
@@ -13026,8 +12568,8 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
13026
12568
  this.caseFlagParentFormGroup.value.selectedLocation = selectedLocation;
13027
12569
  }
13028
12570
  }
13029
- constructor(route, caseEditDataService, caseFlagStateService, rpxTranslationService, multipageComponentStateService) {
13030
- super(multipageComponentStateService);
12571
+ constructor(route, caseEditDataService, caseFlagStateService, rpxTranslationService) {
12572
+ super();
13031
12573
  this.route = route;
13032
12574
  this.caseEditDataService = caseEditDataService;
13033
12575
  this.caseFlagStateService = caseFlagStateService;
@@ -13037,14 +12579,13 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
13037
12579
  // If it is start of the journey or navigation from check your answers page then fieldStateToNavigate property
13038
12580
  // in case flag state service will contain the field state to navigate based on create or manage journey
13039
12581
  this.fieldState = this.caseFlagStateService.fieldStateToNavigate;
13040
- if (this.fieldState === undefined) {
12582
+ if (this.fieldState === undefined ||
12583
+ this.fieldState === CaseFlagFieldState.FLAG_LOCATION ||
12584
+ this.fieldState === CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS) {
13041
12585
  const params = this.route.snapshot.params;
13042
12586
  // Clear the form group, field state to navigate and set the page location
13043
12587
  this.caseFlagStateService.resetCache(`../${params['eid']}/${params['page']}`);
13044
12588
  }
13045
- else {
13046
- this.navigatedTo = true;
13047
- }
13048
12589
  // Reassign the form group from the case flag state service
13049
12590
  this.caseFlagParentFormGroup = this.caseFlagStateService.formGroup;
13050
12591
  // Clear form validation errors as a new page will be rendered based on field state
@@ -13083,14 +12624,11 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
13083
12624
  this.hmctsServiceId = this.route.snapshot.data.eventTrigger.supplementary_data.HMCTSServiceId;
13084
12625
  }
13085
12626
  if (this.route.snapshot.data.eventTrigger.case_fields) {
13086
- // there is an edge case in the navigation when going back, sometimes the case_fileds will lose values in the values which causes the flow to break before CYA
13087
- // below funciton ensures all data is correctly set.
13088
- const flagData = this.validateCaseFields(this.route.snapshot.data.eventTrigger.case_fields);
13089
- this.flagsData = (flagData)
12627
+ this.flagsData = (this.route.snapshot.data.eventTrigger.case_fields)
13090
12628
  .reduce((flags, caseField) => FieldsUtils.extractFlagsDataFromCaseField(flags, caseField, caseField.id, caseField), []);
13091
12629
  // Set displayContextParameter (to be passed as an input to ManageCaseFlagsComponent for setting correct title)
13092
12630
  this.displayContextParameter =
13093
- this.setDisplayContextParameter(flagData);
12631
+ this.setDisplayContextParameter(this.route.snapshot.data.eventTrigger.case_fields);
13094
12632
  // Set boolean indicating the display_context_parameter is "update"
13095
12633
  this.isDisplayContextParameterUpdate = this.setDisplayContextParameterUpdate(this.displayContextParameter);
13096
12634
  // Set boolean indicating the display_context_parameter is "external"
@@ -13109,58 +12647,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
13109
12647
  });
13110
12648
  }
13111
12649
  }
13112
- // CSFD-16.
13113
- // Setup the page number to initially be the same value as
13114
- // the start page number. Provided that some state exists within
13115
- // the page state service, use that instaead.
13116
- //
13117
- // If isDisplayContextParameterUpdate is true, then the starting page must be
13118
- // the value of 4. Otherwise, it's 0. However, we're using an enum to simplify
13119
- // this process.
13120
- //
13121
- // It might help to take a look at the template file.
13122
- if (this.isDisplayContextParameterUpdate) {
13123
- this.journeyStartPageNumber = CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS;
13124
- this.journeyEndPageNumber = CaseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION;
13125
- }
13126
- else {
13127
- this.journeyStartPageNumber = CaseFlagFieldState.FLAG_LOCATION;
13128
- this.journeyEndPageNumber = CaseFlagFieldState.FLAG_STATUS;
13129
- }
13130
- // Now that we've set the start page number, let's set the current page number.
13131
- this.journeyPageNumber = this.journeyStartPageNumber;
13132
- // If we've navigated to this page, then we know by default, we want to set the
13133
- // journey page number to the field state.
13134
- if (this.navigatedTo) {
13135
- const pageNo = this.fieldState === CaseFlagFieldState.FLAG_STATUS ? this.fieldState - 1 : this.fieldState;
13136
- this.journeyPageNumber = pageNo;
13137
- this.journeyPreviousPageNumber = pageNo;
13138
- }
13139
- // Provided we have some stored state, i.e. when going backwards, we want
13140
- // to get the last visited page, etc.
13141
- const state = this.multipageComponentStateService.getJourneyState(this);
13142
- if (state) {
13143
- const { journeyPageNumber, journeyStartPageNumber, journeyEndPageNumber } = state;
13144
- this.journeyPageNumber = journeyPageNumber;
13145
- this.journeyStartPageNumber = journeyStartPageNumber;
13146
- this.journeyEndPageNumber = journeyEndPageNumber;
13147
- }
13148
- this.multipageComponentStateService.isAtStart = this.journeyPageNumber === this.journeyStartPageNumber;
13149
- }
13150
- validateCaseFields(caseFields) {
13151
- caseFields.forEach((field) => {
13152
- if (field.formatted_value) {
13153
- Object.keys(field.formatted_value).forEach((valueKey) => {
13154
- if (field.formatted_value[valueKey] !== field.value[valueKey]) {
13155
- field.value[valueKey] = field.formatted_value[valueKey];
13156
- }
13157
- });
13158
- }
13159
- });
13160
- return caseFields;
13161
- }
13162
- onPageChange() {
13163
- this.multipageComponentStateService.isAtStart = this.fieldState === this.caseFlagFieldState.FLAG_LOCATION;
13164
12650
  }
13165
12651
  setDisplayContextParameterUpdate(displayContextParameter) {
13166
12652
  return displayContextParameter === CaseFlagDisplayContextParameter.UPDATE ||
@@ -13216,7 +12702,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
13216
12702
  }
13217
12703
  proceedToNextState() {
13218
12704
  if (!this.isAtFinalState()) {
13219
- this.journeyPreviousPageNumber = this.fieldState;
13220
12705
  // Skip the "language interpreter" state if current state is CaseFlagFieldState.FLAG_TYPE and the flag type doesn't
13221
12706
  // have a "list of values" - currently, this is present only for those flag types that require language interpreter
13222
12707
  // selection
@@ -13226,7 +12711,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
13226
12711
  else {
13227
12712
  this.fieldState++;
13228
12713
  }
13229
- this.nextPage();
13230
12714
  }
13231
12715
  }
13232
12716
  setFlagsCaseFieldValue() {
@@ -13245,18 +12729,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
13245
12729
  break;
13246
12730
  }
13247
12731
  }
13248
- previousPage() {
13249
- // if we are navigating away from the page, we should set the error messages to empty so the message dissapears
13250
- this.errorMessages = [];
13251
- this.journeyPreviousPageNumber = this.fieldState;
13252
- if (this.hasPrevious() && this.fieldState === CaseFlagFieldState.FLAG_COMMENTS && !this.flagType?.listOfValues) {
13253
- this.fieldState = CaseFlagFieldState.FLAG_TYPE;
13254
- }
13255
- else if (this.hasPrevious()) {
13256
- this.fieldState--;
13257
- }
13258
- super.previousPage();
13259
- }
13260
12732
  addFlagToCollection() {
13261
12733
  // Ensure no more than one new flag is being added at a time, by iterating through each Flags case field and removing
13262
12734
  // any previous entry from the details array where that entry has no id (hence it is new - and there should be only
@@ -13541,7 +13013,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
13541
13013
  };
13542
13014
  }
13543
13015
  moveToFinalReviewStage() {
13544
- this.caseFlagStateService.lastPageFieldState = this.fieldState;
13545
13016
  this.setFlagsCaseFieldValue();
13546
13017
  // Check that no errors have been set on caseFlagParentFormGroup (by determineLocationForFlag()); prevent moving to
13547
13018
  // final review stage if errors exist
@@ -13556,7 +13027,6 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
13556
13027
  }
13557
13028
  }
13558
13029
  ngOnDestroy() {
13559
- this.multipageComponentStateService.setJourneyState(this);
13560
13030
  // Reset the fieldstateToNavigate as the write journey completes at this point
13561
13031
  this.caseFlagStateService.fieldStateToNavigate = undefined;
13562
13032
  this.caseTitleSubscription?.unsubscribe();
@@ -13568,9 +13038,9 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
13568
13038
  setDisplayContextParameter(caseFields) {
13569
13039
  return caseFields.find(caseField => FieldsUtils.isCaseFieldOfType(caseField, ['FlagLauncher']))?.display_context_parameter;
13570
13040
  }
13571
- static ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(CaseFlagStateService), i0.ɵɵdirectiveInject(i1.RpxTranslationService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
13572
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCaseFlagFieldComponent, selectors: [["ccd-write-case-flag-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [["journeyChild", ""], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], [4, "ngSwitchCase"], [3, "caseFlagStateEmitter", "formGroup", "flagsData", "isDisplayContextParameterExternal"], [3, "caseFlagStateEmitter", "flagCommentsOptionalEmitter", "formGroup", "jurisdiction", "caseTypeId", "hmctsServiceId", "isDisplayContextParameterExternal", "isDisplayContextParameter2Point1Enabled", "selectedFlagsLocation"], [3, "caseFlagStateEmitter", "formGroup", "flagType"], [3, "caseFlagStateEmitter", "formGroup", "optional", "isDisplayContextParameterExternal", "isDisplayContextParameter2Point1Enabled"], [3, "caseFlagStateEmitter", "formGroup", "defaultStatus"], [3, "caseFlagStateEmitter", "formGroup", "flagsData", "caseTitle", "displayContextParameter"], [3, "caseFlagStateEmitter", "formGroup", "displayContextParameter"], [3, "caseFlagStateEmitter", "formGroup"]], template: function WriteCaseFlagFieldComponent_Template(rf, ctx) { if (rf & 1) {
13573
- i0.ɵɵtemplate(0, WriteCaseFlagFieldComponent_div_0_Template, 5, 4, "div", 1)(1, WriteCaseFlagFieldComponent_div_1_Template, 7, 7, "div", 2)(2, WriteCaseFlagFieldComponent_div_2_Template, 5, 5, "div", 2);
13041
+ static ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(CaseFlagStateService), i0.ɵɵdirectiveInject(i1.RpxTranslationService)); };
13042
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCaseFlagFieldComponent, selectors: [["ccd-write-case-flag-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], [4, "ngSwitchCase"], [3, "caseFlagStateEmitter", "formGroup", "flagsData", "isDisplayContextParameterExternal"], [3, "caseFlagStateEmitter", "flagCommentsOptionalEmitter", "formGroup", "jurisdiction", "caseTypeId", "hmctsServiceId", "isDisplayContextParameterExternal", "isDisplayContextParameter2Point1Enabled", "selectedFlagsLocation"], [3, "caseFlagStateEmitter", "formGroup", "flagType"], [3, "caseFlagStateEmitter", "formGroup", "optional", "isDisplayContextParameterExternal", "isDisplayContextParameter2Point1Enabled"], [3, "caseFlagStateEmitter", "formGroup", "defaultStatus"], [3, "caseFlagStateEmitter", "formGroup", "flagsData", "caseTitle", "displayContextParameter"], [3, "caseFlagStateEmitter", "formGroup", "displayContextParameter"], [3, "caseFlagStateEmitter", "formGroup"]], template: function WriteCaseFlagFieldComponent_Template(rf, ctx) { if (rf & 1) {
13043
+ i0.ɵɵtemplate(0, WriteCaseFlagFieldComponent_div_0_Template, 5, 4, "div", 0)(1, WriteCaseFlagFieldComponent_div_1_Template, 7, 7, "div", 1)(2, WriteCaseFlagFieldComponent_div_2_Template, 5, 5, "div", 1);
13574
13044
  } if (rf & 2) {
13575
13045
  i0.ɵɵproperty("ngIf", ctx.errorMessages.length > 0);
13576
13046
  i0.ɵɵadvance();
@@ -13581,9 +13051,9 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteJourneyComponent {
13581
13051
  }
13582
13052
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteCaseFlagFieldComponent, [{
13583
13053
  type: Component,
13584
- args: [{ selector: 'ccd-write-case-flag-field', template: "<!-- Error message summary -->\n<div *ngIf=\"errorMessages.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\"\n tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{'There is a problem' | rpxTranslate}}\n </h2>\n <div *ngFor=\"let errorMessage of errorMessages\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(errorMessage.fieldId)\" class=\"validation-error\">{{errorMessage.description |\n rpxTranslate}}</a>\n </li>\n </ul>\n </div>\n</div>\n<div *ngIf=\"!isDisplayContextParameterUpdate\" class=\"form-group\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngSwitch]=\"fieldState\">\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_LOCATION\">\n <ccd-select-flag-location \n #journeyChild \n [formGroup]=\"caseFlagParentFormGroup\" \n [flagsData]=\"flagsData\"\n [isDisplayContextParameterExternal]=\"isDisplayContextParameterExternal\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\">\n </ccd-select-flag-location>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_TYPE\">\n <ccd-select-flag-type \n #journeyChild \n [formGroup]=\"caseFlagParentFormGroup\" \n [jurisdiction]=\"jurisdiction\"\n [caseTypeId]=\"caseTypeId\" \n [hmctsServiceId]=\"hmctsServiceId\"\n [isDisplayContextParameterExternal]=\"isDisplayContextParameterExternal\"\n [isDisplayContextParameter2Point1Enabled]=\"isDisplayContextParameter2Point1Enabled\"\n [selectedFlagsLocation]=\"selectedFlagsLocation\" \n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"\n (flagCommentsOptionalEmitter)=\"onFlagCommentsOptionalEmitted($event)\">\n </ccd-select-flag-type>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_LANGUAGE_INTERPRETER\">\n <ccd-search-language-interpreter \n #journeyChild \n [formGroup]=\"caseFlagParentFormGroup\" \n [flagType]=\"flagType\" \n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\">\n </ccd-search-language-interpreter>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_COMMENTS\">\n <ccd-add-comments \n #journeyChild \n [formGroup]=\"caseFlagParentFormGroup\" \n [optional]=\"flagCommentsOptional\"\n [isDisplayContextParameterExternal]=\"isDisplayContextParameterExternal\"\n [isDisplayContextParameter2Point1Enabled]=\"isDisplayContextParameter2Point1Enabled\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\">\n </ccd-add-comments>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_STATUS\">\n <ccd-confirm-flag-status \n #journeyChild \n [formGroup]=\"caseFlagParentFormGroup\"\n [defaultStatus]=\"flagType.defaultStatus\" \n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\">\n </ccd-confirm-flag-status>\n </ng-container>\n </div>\n</div>\n<div *ngIf=\"isDisplayContextParameterUpdate\" class=\"form-group\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngSwitch]=\"fieldState\">\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_MANAGE_CASE_FLAGS\">\n <ccd-manage-case-flags \n #journeyChild \n [formGroup]=\"caseFlagParentFormGroup\" \n [flagsData]=\"flagsData\"\n [caseTitle]=\"caseTitle\" \n [displayContextParameter]=\"displayContextParameter\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\">\n </ccd-manage-case-flags>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_UPDATE\">\n <ccd-update-flag \n #journeyChild \n [formGroup]=\"caseFlagParentFormGroup\"\n [displayContextParameter]=\"displayContextParameter\" \n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\">\n </ccd-update-flag>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION\">\n <ccd-update-flag-add-translation-form \n #journeyChild \n [formGroup]=\"caseFlagParentFormGroup\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\">\n </ccd-update-flag-add-translation-form>\n </ng-container>\n </div>\n</div>", styles: [".validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
13585
- }], () => [{ type: i1$1.ActivatedRoute }, { type: CaseEditDataService }, { type: CaseFlagStateService }, { type: i1.RpxTranslationService }, { type: MultipageComponentStateService }], null); })();
13586
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseFlagFieldComponent, { className: "WriteCaseFlagFieldComponent", filePath: "lib/shared/components/palette/case-flag/write-case-flag-field.component.ts", lineNumber: 21 }); })();
13054
+ args: [{ selector: 'ccd-write-case-flag-field', template: "<!-- Error message summary -->\n<div *ngIf=\"errorMessages.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{'There is a problem' | rpxTranslate}}\n </h2>\n <div *ngFor=\"let errorMessage of errorMessages\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(errorMessage.fieldId)\" class=\"validation-error\">{{errorMessage.description | rpxTranslate}}</a>\n </li>\n </ul>\n </div>\n</div>\n<div *ngIf=\"!isDisplayContextParameterUpdate\" class=\"form-group\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngSwitch]=\"fieldState\">\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_LOCATION\">\n <ccd-select-flag-location\n [formGroup]=\"caseFlagParentFormGroup\" [flagsData]=\"flagsData\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"\n [isDisplayContextParameterExternal]=\"isDisplayContextParameterExternal\"\n ></ccd-select-flag-location>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_TYPE\">\n <ccd-select-flag-type [formGroup]=\"caseFlagParentFormGroup\" [jurisdiction]=\"jurisdiction\" [caseTypeId]=\"caseTypeId\"\n [hmctsServiceId]=\"hmctsServiceId\" [isDisplayContextParameterExternal]=\"isDisplayContextParameterExternal\"\n [isDisplayContextParameter2Point1Enabled]=\"isDisplayContextParameter2Point1Enabled\"\n [selectedFlagsLocation]=\"selectedFlagsLocation\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"\n (flagCommentsOptionalEmitter)=\"onFlagCommentsOptionalEmitted($event)\"></ccd-select-flag-type>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_LANGUAGE_INTERPRETER\">\n <ccd-search-language-interpreter [formGroup]=\"caseFlagParentFormGroup\"\n [flagType]=\"flagType\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\">\n </ccd-search-language-interpreter>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_COMMENTS\">\n <ccd-add-comments [formGroup]=\"caseFlagParentFormGroup\" [optional]=\"flagCommentsOptional\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"\n [isDisplayContextParameterExternal]=\"isDisplayContextParameterExternal\"\n [isDisplayContextParameter2Point1Enabled]=\"isDisplayContextParameter2Point1Enabled\">\n </ccd-add-comments>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_STATUS\">\n <ccd-confirm-flag-status [formGroup]=\"caseFlagParentFormGroup\" [defaultStatus]=\"flagType.defaultStatus\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"></ccd-confirm-flag-status>\n </ng-container>\n </div>\n</div>\n<div *ngIf=\"isDisplayContextParameterUpdate\" class=\"form-group\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngSwitch]=\"fieldState\">\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_MANAGE_CASE_FLAGS\">\n <ccd-manage-case-flags [formGroup]=\"caseFlagParentFormGroup\" [flagsData]=\"flagsData\" [caseTitle]=\"caseTitle\"\n [displayContextParameter]=\"displayContextParameter\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"></ccd-manage-case-flags>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_UPDATE\">\n <ccd-update-flag [formGroup]=\"caseFlagParentFormGroup\"\n [displayContextParameter]=\"displayContextParameter\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"></ccd-update-flag>\n </ng-container>\n <ng-container *ngSwitchCase=\"caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION\">\n <ccd-update-flag-add-translation-form\n [formGroup]=\"caseFlagParentFormGroup\"\n (caseFlagStateEmitter)=\"onCaseFlagStateEmitted($event)\"\n ></ccd-update-flag-add-translation-form>\n </ng-container>\n </div>\n</div>\n", styles: [".validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
13055
+ }], () => [{ type: i1$1.ActivatedRoute }, { type: CaseEditDataService }, { type: CaseFlagStateService }, { type: i1.RpxTranslationService }], null); })();
13056
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseFlagFieldComponent, { className: "WriteCaseFlagFieldComponent", filePath: "lib/shared/components/palette/case-flag/write-case-flag-field.component.ts", lineNumber: 20 }); })();
13587
13057
 
13588
13058
  class CaseReferencePipe {
13589
13059
  transform(caseReference) {
@@ -16321,6 +15791,139 @@ var Patterns;
16321
15791
  Patterns["CASE_REF"] = "((([0-9]{4})(?: |-)?)){4}";
16322
15792
  })(Patterns || (Patterns = {}));
16323
15793
 
15794
+ class LinkedCasesService {
15795
+ jurisdictionService;
15796
+ searchService;
15797
+ static CASE_NAME_MISSING_TEXT = 'Case name missing';
15798
+ caseFieldValue = [];
15799
+ isLinkedCasesEventTrigger = false;
15800
+ caseDetails;
15801
+ caseId;
15802
+ caseName;
15803
+ linkCaseReasons = [];
15804
+ linkedCases = [];
15805
+ initialCaseLinks = [];
15806
+ editMode = false;
15807
+ jurisdictionsResponse = [];
15808
+ serverJurisdictionError;
15809
+ serverError = null;
15810
+ serverLinkedApiError = null;
15811
+ isServerReasonCodeError = false;
15812
+ caseJurisdictionID = null;
15813
+ constructor(jurisdictionService, searchService) {
15814
+ this.jurisdictionService = jurisdictionService;
15815
+ this.searchService = searchService;
15816
+ this.jurisdictionService.getJurisdictions().subscribe((jurisdictions) => {
15817
+ this.jurisdictionsResponse = jurisdictions;
15818
+ }, (error) => {
15819
+ this.serverJurisdictionError = true;
15820
+ });
15821
+ }
15822
+ groupLinkedCasesByCaseType = (arrObj, key) => {
15823
+ return arrObj.reduce((rv, x) => {
15824
+ (rv[x.value[key]] = rv[x.value[key]] || []).push(x.value['CaseReference']);
15825
+ return rv;
15826
+ }, {});
15827
+ };
15828
+ constructElasticSearchQuery(caseIds, size) {
15829
+ return {
15830
+ query: {
15831
+ terms: {
15832
+ reference: caseIds,
15833
+ },
15834
+ },
15835
+ size,
15836
+ };
15837
+ }
15838
+ mapResponse(esSearchCasesResponse) {
15839
+ const caseInfo = this.caseFieldValue.find(item => item.value && item.value.CaseReference === esSearchCasesResponse.case_id);
15840
+ return caseInfo && {
15841
+ caseReference: esSearchCasesResponse.case_id,
15842
+ caseName: esSearchCasesResponse.case_fields.caseNameHmctsInternal || LinkedCasesService.CASE_NAME_MISSING_TEXT,
15843
+ caseType: this.mapLookupIDToValueFromJurisdictions('CASE_TYPE', esSearchCasesResponse.case_fields['[CASE_TYPE]']),
15844
+ service: this.mapLookupIDToValueFromJurisdictions('JURISDICTION', esSearchCasesResponse.case_fields['[JURISDICTION]']),
15845
+ state: this.mapLookupIDToValueFromJurisdictions('STATE', esSearchCasesResponse.case_fields['[STATE]']),
15846
+ reasons: caseInfo?.value?.ReasonForLink
15847
+ };
15848
+ }
15849
+ searchCasesByCaseIds(searchCasesResponse) {
15850
+ return forkJoin(searchCasesResponse);
15851
+ }
15852
+ getAllLinkedCaseInformation() {
15853
+ const searchCasesResponse = [];
15854
+ const linkedCaseIds = this.groupLinkedCasesByCaseType(this.caseFieldValue, 'CaseType');
15855
+ Object.keys(linkedCaseIds).forEach(key => {
15856
+ const esQuery = this.constructElasticSearchQuery(linkedCaseIds[key], 100);
15857
+ const query = this.searchService.searchCasesByIds(key, esQuery, SearchService.VIEW_WORKBASKET);
15858
+ searchCasesResponse.push(query);
15859
+ });
15860
+ if (searchCasesResponse.length) {
15861
+ this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
15862
+ const casesResponse = [];
15863
+ searchCases.forEach(response => {
15864
+ response.results.forEach((result) => {
15865
+ casesResponse.push(this.mapResponse(result));
15866
+ });
15867
+ });
15868
+ this.linkedCases = casesResponse.map(item => {
15869
+ return {
15870
+ caseReference: item.caseReference,
15871
+ caseName: item.caseName,
15872
+ caseService: item.service,
15873
+ caseType: item.caseType,
15874
+ unlink: false,
15875
+ reasons: item.reasons && item.reasons.map(reason => {
15876
+ return {
15877
+ Reason: reason
15878
+ };
15879
+ }),
15880
+ };
15881
+ });
15882
+ this.serverLinkedApiError = null;
15883
+ }, err => {
15884
+ this.serverLinkedApiError = {
15885
+ id: 'backendError', message: 'Some case information is not available at the moment'
15886
+ };
15887
+ });
15888
+ }
15889
+ }
15890
+ mapLookupIDToValueFromJurisdictions(fieldName, fieldValue) {
15891
+ const selectedJurisdiction = this.jurisdictionsResponse &&
15892
+ this.jurisdictionsResponse.find(item => item.id === this.caseDetails.case_type.jurisdiction.id);
15893
+ const selectedCaseType = selectedJurisdiction && selectedJurisdiction.caseTypes.find(item => item.id === this.caseDetails.case_type.id);
15894
+ const state = selectedCaseType && selectedCaseType.states.find(item => item.id === fieldValue);
15895
+ switch (fieldName) {
15896
+ case 'JURISDICTION':
15897
+ return selectedJurisdiction && selectedJurisdiction.description;
15898
+ case 'CASE_TYPE':
15899
+ return selectedCaseType && selectedCaseType.name;
15900
+ case 'CASE_TYPE_DESCRIPTION':
15901
+ return selectedCaseType && selectedCaseType.description;
15902
+ case 'STATE':
15903
+ return state && state.name || fieldValue;
15904
+ case 'STATE_DESCRIPTION':
15905
+ return state && state.description || fieldValue;
15906
+ default:
15907
+ break;
15908
+ }
15909
+ }
15910
+ getCaseName(searchCasesResponse) {
15911
+ let caseName = LinkedCasesService.CASE_NAME_MISSING_TEXT;
15912
+ const tabs = searchCasesResponse.tabs.filter(tab => {
15913
+ const caseNameHmctsInternalField = tab.fields.find(field => field.id === 'caseNameHmctsInternal');
15914
+ if (caseNameHmctsInternalField) {
15915
+ caseName = caseNameHmctsInternalField.value;
15916
+ }
15917
+ });
15918
+ return caseName;
15919
+ }
15920
+ static ɵfac = function LinkedCasesService_Factory(t) { return new (t || LinkedCasesService)(i0.ɵɵinject(JurisdictionService), i0.ɵɵinject(SearchService)); };
15921
+ static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: LinkedCasesService, factory: LinkedCasesService.ɵfac });
15922
+ }
15923
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkedCasesService, [{
15924
+ type: Injectable
15925
+ }], () => [{ type: JurisdictionService }, { type: SearchService }], null); })();
15926
+
16324
15927
  function BeforeYouStartComponent_div_1_p_3_Template(rf, ctx) { if (rf & 1) {
16325
15928
  i0.ɵɵelementStart(0, "p", 5)(1, "span", 6);
16326
15929
  i0.ɵɵtext(2, "Error:");
@@ -16348,7 +15951,7 @@ function BeforeYouStartComponent_div_1_Template(rf, ctx) { if (rf & 1) {
16348
15951
  i0.ɵɵproperty("ngIf", ctx_r1.serverLinkedApiError);
16349
15952
  } }
16350
15953
  function BeforeYouStartComponent_div_2_div_3_Template(rf, ctx) { if (rf & 1) {
16351
- i0.ɵɵelementStart(0, "div", 9)(1, "p", 3);
15954
+ i0.ɵɵelementStart(0, "div", 11)(1, "p", 3);
16352
15955
  i0.ɵɵtext(2, "If a group of linked cases has a lead case, you must start from the lead case.");
16353
15956
  i0.ɵɵelementEnd();
16354
15957
  i0.ɵɵelementStart(3, "p", 3);
@@ -16356,16 +15959,20 @@ function BeforeYouStartComponent_div_2_div_3_Template(rf, ctx) { if (rf & 1) {
16356
15959
  i0.ɵɵelementEnd()();
16357
15960
  } }
16358
15961
  function BeforeYouStartComponent_div_2_div_4_Template(rf, ctx) { if (rf & 1) {
16359
- i0.ɵɵelementStart(0, "div", 10)(1, "p", 3);
15962
+ i0.ɵɵelementStart(0, "div", 12)(1, "p", 3);
16360
15963
  i0.ɵɵtext(2, "If there are linked hearings for the case you need to un-link then you must unlink the hearing first.");
16361
15964
  i0.ɵɵelementEnd()();
16362
15965
  } }
16363
15966
  function BeforeYouStartComponent_div_2_Template(rf, ctx) { if (rf & 1) {
15967
+ const _r3 = i0.ɵɵgetCurrentView();
16364
15968
  i0.ɵɵelementStart(0, "div")(1, "h1", 1);
16365
15969
  i0.ɵɵtext(2, "Before you start");
16366
15970
  i0.ɵɵelementEnd();
16367
15971
  i0.ɵɵtemplate(3, BeforeYouStartComponent_div_2_div_3_Template, 5, 0, "div", 7)(4, BeforeYouStartComponent_div_2_div_4_Template, 3, 0, "div", 8);
16368
- i0.ɵɵelementEnd();
15972
+ i0.ɵɵelementStart(5, "div", 9)(6, "button", 10);
15973
+ i0.ɵɵlistener("click", function BeforeYouStartComponent_div_2_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onNext()); });
15974
+ i0.ɵɵtext(7, "Next");
15975
+ i0.ɵɵelementEnd()()();
16369
15976
  } if (rf & 2) {
16370
15977
  const ctx_r1 = i0.ɵɵnextContext();
16371
15978
  i0.ɵɵadvance(3);
@@ -16373,15 +15980,14 @@ function BeforeYouStartComponent_div_2_Template(rf, ctx) { if (rf & 1) {
16373
15980
  i0.ɵɵadvance();
16374
15981
  i0.ɵɵproperty("ngIf", !ctx_r1.isLinkCasesJourney);
16375
15982
  } }
16376
- class BeforeYouStartComponent extends AbstractJourneyComponent {
15983
+ class BeforeYouStartComponent {
16377
15984
  router;
16378
15985
  linkedCasesService;
16379
15986
  linkedCasesStateEmitter = new EventEmitter();
16380
15987
  isLinkCasesJourney = false;
16381
15988
  errorMessages;
16382
15989
  serverLinkedApiError;
16383
- constructor(router, linkedCasesService, multipageComponentStateService) {
16384
- super(multipageComponentStateService);
15990
+ constructor(router, linkedCasesService) {
16385
15991
  this.router = router;
16386
15992
  this.linkedCasesService = linkedCasesService;
16387
15993
  this.isLinkCasesJourney = this.linkedCasesService.isLinkedCasesEventTrigger;
@@ -16398,22 +16004,13 @@ class BeforeYouStartComponent extends AbstractJourneyComponent {
16398
16004
  navigateToNextPage: true
16399
16005
  });
16400
16006
  }
16401
- next() {
16402
- this.onNext();
16403
- const isAnArray = Array.isArray(this.errorMessages);
16404
- const isNotAnArray = !isAnArray;
16405
- const isValid = (isAnArray && this.errorMessages.length === 0) || isNotAnArray;
16406
- if (isValid) {
16407
- super.next();
16408
- }
16409
- }
16410
16007
  onBack() {
16411
16008
  this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId], { fragment: 'Linked cases' });
16412
16009
  }
16413
- static ɵfac = function BeforeYouStartComponent_Factory(t) { return new (t || BeforeYouStartComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
16414
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BeforeYouStartComponent, selectors: [["ccd-linked-cases-before-you-start"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [[4, "ngIf"], [1, "govuk-heading-xl"], ["id", "unlink-cases-error", "class", "govuk-error-message", 4, "ngIf"], [1, "govuk-body"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], ["id", "unlink-cases-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "link-cases-journey", 4, "ngIf"], ["id", "manage-link-cases-journey", 4, "ngIf"], ["id", "link-cases-journey"], ["id", "manage-link-cases-journey"]], template: function BeforeYouStartComponent_Template(rf, ctx) { if (rf & 1) {
16010
+ static ɵfac = function BeforeYouStartComponent_Factory(t) { return new (t || BeforeYouStartComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)); };
16011
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BeforeYouStartComponent, selectors: [["ccd-linked-cases-before-you-start"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, decls: 3, vars: 2, consts: [[4, "ngIf"], [1, "govuk-heading-xl"], ["id", "unlink-cases-error", "class", "govuk-error-message", 4, "ngIf"], [1, "govuk-body"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], ["id", "unlink-cases-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "link-cases-journey", 4, "ngIf"], ["id", "manage-link-cases-journey", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", "id", "next-button", 1, "button", "button-primary", 3, "click"], ["id", "link-cases-journey"], ["id", "manage-link-cases-journey"]], template: function BeforeYouStartComponent_Template(rf, ctx) { if (rf & 1) {
16415
16012
  i0.ɵɵelementStart(0, "div");
16416
- i0.ɵɵtemplate(1, BeforeYouStartComponent_div_1_Template, 7, 1, "div", 0)(2, BeforeYouStartComponent_div_2_Template, 5, 2, "div", 0);
16013
+ i0.ɵɵtemplate(1, BeforeYouStartComponent_div_1_Template, 7, 1, "div", 0)(2, BeforeYouStartComponent_div_2_Template, 8, 2, "div", 0);
16417
16014
  i0.ɵɵelementEnd();
16418
16015
  } if (rf & 2) {
16419
16016
  i0.ɵɵadvance();
@@ -16424,11 +16021,11 @@ class BeforeYouStartComponent extends AbstractJourneyComponent {
16424
16021
  }
16425
16022
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BeforeYouStartComponent, [{
16426
16023
  type: Component,
16427
- args: [{ selector: 'ccd-linked-cases-before-you-start', template: "<div>\n <div *ngIf=\"serverLinkedApiError\">\n <h1 class=\"govuk-heading-xl\">There is a problem</h1>\n <p id=\"unlink-cases-error\" class=\"govuk-error-message\" *ngIf=\"serverLinkedApiError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{serverLinkedApiError.message}}\n </p>\n <p class=\"govuk-body\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"onBack()\">Go back to the Linked cases tab</a>\n </p>\n </div>\n <div *ngIf=\"!serverLinkedApiError\">\n <h1 class=\"govuk-heading-xl\">Before you start</h1>\n <div id=\"link-cases-journey\" *ngIf=\"isLinkCasesJourney\">\n <p class=\"govuk-body\">If a group of linked cases has a lead case, you must start from the lead case.</p>\n <p class=\"govuk-body\">If the cases to be linked has no lead, you can start the linking journey from any of those\n cases.</p>\n </div>\n <div id=\"manage-link-cases-journey\" *ngIf=\"!isLinkCasesJourney\">\n <p class=\"govuk-body\">If there are linked hearings for the case you need to un-link then you must unlink the\n hearing first.</p>\n </div>\n </div>\n</div>\n" }]
16428
- }], () => [{ type: i1$1.Router }, { type: LinkedCasesService }, { type: MultipageComponentStateService }], { linkedCasesStateEmitter: [{
16024
+ args: [{ selector: 'ccd-linked-cases-before-you-start', template: "<div>\n <div *ngIf=\"serverLinkedApiError\">\n <h1 class=\"govuk-heading-xl\">There is a problem</h1>\n <p id=\"unlink-cases-error\" class=\"govuk-error-message\" *ngIf=\"serverLinkedApiError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{serverLinkedApiError.message}}\n </p>\n <p class=\"govuk-body\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"onBack()\">Go back to the Linked cases tab</a>\n </p>\n </div>\n <div *ngIf=\"!serverLinkedApiError\">\n <h1 class=\"govuk-heading-xl\">Before you start</h1>\n <div id=\"link-cases-journey\" *ngIf=\"isLinkCasesJourney\">\n <p class=\"govuk-body\">If a group of linked cases has a lead case, you must start from the lead case.</p>\n <p class=\"govuk-body\">If the cases to be linked has no lead, you can start the linking journey from any of those\n cases.</p>\n </div>\n <div id=\"manage-link-cases-journey\" *ngIf=\"!isLinkCasesJourney\">\n <p class=\"govuk-body\">If there are linked hearings for the case you need to un-link then you must unlink the\n hearing first.</p>\n </div>\n <div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" id=\"next-button\" (click)=\"onNext()\">Next</button>\n </div>\n </div>\n</div>\n" }]
16025
+ }], () => [{ type: i1$1.Router }, { type: LinkedCasesService }], { linkedCasesStateEmitter: [{
16429
16026
  type: Output
16430
16027
  }] }); })();
16431
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BeforeYouStartComponent, { className: "BeforeYouStartComponent", filePath: "lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.ts", lineNumber: 14 }); })();
16028
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BeforeYouStartComponent, { className: "BeforeYouStartComponent", filePath: "lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.ts", lineNumber: 12 }); })();
16432
16029
 
16433
16030
  function CheckYourAnswersComponent_table_4_tr_9_Template(rf, ctx) { if (rf & 1) {
16434
16031
  const _r1 = i0.ɵɵgetCurrentView();
@@ -16550,15 +16147,14 @@ function CheckYourAnswersComponent_tr_18_Template(rf, ctx) { if (rf & 1) {
16550
16147
  i0.ɵɵtext(2, " None ");
16551
16148
  i0.ɵɵelementEnd()();
16552
16149
  } }
16553
- class CheckYourAnswersComponent extends AbstractJourneyComponent {
16150
+ class CheckYourAnswersComponent {
16554
16151
  linkedCasesService;
16555
16152
  linkedCasesStateEmitter = new EventEmitter();
16556
16153
  linkedCases;
16557
16154
  casesToUnlink;
16558
16155
  isLinkCasesJourney;
16559
16156
  linkedCasesTableCaption;
16560
- constructor(linkedCasesService, multipageComponentStateService) {
16561
- super(multipageComponentStateService);
16157
+ constructor(linkedCasesService) {
16562
16158
  this.linkedCasesService = linkedCasesService;
16563
16159
  }
16564
16160
  ngOnInit() {
@@ -16575,16 +16171,8 @@ class CheckYourAnswersComponent extends AbstractJourneyComponent {
16575
16171
  navigateToNextPage: true
16576
16172
  });
16577
16173
  }
16578
- next() {
16579
- this.linkedCasesStateEmitter.emit({
16580
- currentLinkedCasesPage: LinkedCasesPages.CHECK_YOUR_ANSWERS,
16581
- navigateToPreviousPage: false,
16582
- navigateToNextPage: true
16583
- });
16584
- super.next();
16585
- }
16586
- static ɵfac = function CheckYourAnswersComponent_Factory(t) { return new (t || CheckYourAnswersComponent)(i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
16587
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CheckYourAnswersComponent, selectors: [["ccd-linked-cases-check-your-answers"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 19, vars: 5, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-heading-xl"], ["id", "cases-to-unlink-table", "class", "govuk-table", 4, "ngIf"], ["id", "linked-cases-table", 1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--m"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header"], ["scope", "col", "class", "govuk-table__header", 4, "ngIf"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], ["id", "cases-to-unlink-table", 1, "govuk-table"], [1, "govuk-table__cell"], ["href", "javascript:void(0)", 1, "govuk-link", "govuk-link--no-visited-state", "float-right", 3, "click"], ["colspan", "2", 1, "govuk-table__cell"], [4, "ngFor", "ngForOf"], ["class", "govuk-table__cell", 4, "ngIf"], [4, "ngIf"], ["colspan", "4", 1, "govuk-table__cell"]], template: function CheckYourAnswersComponent_Template(rf, ctx) { if (rf & 1) {
16174
+ static ɵfac = function CheckYourAnswersComponent_Factory(t) { return new (t || CheckYourAnswersComponent)(i0.ɵɵdirectiveInject(LinkedCasesService)); };
16175
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CheckYourAnswersComponent, selectors: [["ccd-linked-cases-check-your-answers"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, decls: 19, vars: 5, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-heading-xl"], ["id", "cases-to-unlink-table", "class", "govuk-table", 4, "ngIf"], ["id", "linked-cases-table", 1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--m"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header"], ["scope", "col", "class", "govuk-table__header", 4, "ngIf"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], ["id", "cases-to-unlink-table", 1, "govuk-table"], [1, "govuk-table__cell"], ["href", "javascript:void(0)", 1, "govuk-link", "govuk-link--no-visited-state", "float-right", 3, "click"], ["colspan", "2", 1, "govuk-table__cell"], [4, "ngFor", "ngForOf"], ["class", "govuk-table__cell", 4, "ngIf"], [4, "ngIf"], ["colspan", "4", 1, "govuk-table__cell"]], template: function CheckYourAnswersComponent_Template(rf, ctx) { if (rf & 1) {
16588
16176
  i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
16589
16177
  i0.ɵɵtext(3, "Check your answers");
16590
16178
  i0.ɵɵelementEnd();
@@ -16620,10 +16208,10 @@ class CheckYourAnswersComponent extends AbstractJourneyComponent {
16620
16208
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckYourAnswersComponent, [{
16621
16209
  type: Component,
16622
16210
  args: [{ selector: 'ccd-linked-cases-check-your-answers', template: "<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h1 class=\"govuk-heading-xl\">Check your answers</h1>\n <!-- Top table for manage link cases journey -->\n <table id=\"cases-to-unlink-table\" class=\"govuk-table\" *ngIf=\"!isLinkCasesJourney\">\n <caption class=\"govuk-table__caption govuk-table__caption--m\">Cases to unlink</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header\">Case name and number</th>\n <th scope=\"col\" class=\"govuk-table__header\"></th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let case of casesToUnlink\">\n <td class=\"govuk-table__cell\">\n {{case.caseName}} <br> {{case.caseReference | ccdCaseReference}}\n </td>\n <td class=\"govuk-table__cell\">\n <a href=\"javascript:void(0)\" class=\"govuk-link govuk-link--no-visited-state float-right\" (click)=\"onChange()\">Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!casesToUnlink.length\">\n <td class=\"govuk-table__cell\" colspan=\"2\">\n None\n </td>\n </tr>\n </tbody>\n </table>\n <!-- Table for both link case and manage link case journeys -->\n <table id=\"linked-cases-table\" class=\"govuk-table\">\n <caption class=\"govuk-table__caption govuk-table__caption--m\">{{linkedCasesTableCaption}}</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header\">Case name and number</th>\n <th scope=\"col\" class=\"govuk-table__header\">Reasons for case link</th>\n <th scope=\"col\" class=\"govuk-table__header\"></th>\n <th scope=\"col\" class=\"govuk-table__header\" *ngIf=\"isLinkCasesJourney\"></th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let case of linkedCases\">\n <td class=\"govuk-table__cell\">\n <span>{{case.caseName}} <br> {{case.caseReference | ccdCaseReference}} </span>\n </td>\n <td class=\"govuk-table__cell\">\n <span *ngFor=\"let reason of case.reasons; last as isLast\">\n <span *ngIf=\"isLinkCasesJourney\">\n {{reason | ccdLinkCasesReasonValue}}\n </span>\n <span *ngIf=\"!isLinkCasesJourney\">\n {{reason.Reason.value | ccdLinkCasesReasonValue}}\n </span>\n <br *ngIf=\"!isLast\">\n </span>\n </td>\n <td class=\"govuk-table__cell\"></td>\n <td class=\"govuk-table__cell\" *ngIf=\"isLinkCasesJourney\">\n <a href=\"javascript:void(0)\" class=\"govuk-link govuk-link--no-visited-state float-right\" (click)=\"onChange()\">Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!linkedCases.length\">\n <td class=\"govuk-table__cell\" colspan=\"4\">\n None\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n</div>\n", styles: [".float-right{float:right}\n"] }]
16623
- }], () => [{ type: LinkedCasesService }, { type: MultipageComponentStateService }], { linkedCasesStateEmitter: [{
16211
+ }], () => [{ type: LinkedCasesService }], { linkedCasesStateEmitter: [{
16624
16212
  type: Output
16625
16213
  }] }); })();
16626
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CheckYourAnswersComponent, { className: "CheckYourAnswersComponent", filePath: "lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.ts", lineNumber: 14 }); })();
16214
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CheckYourAnswersComponent, { className: "CheckYourAnswersComponent", filePath: "lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.ts", lineNumber: 11 }); })();
16627
16215
 
16628
16216
  class ValidatorsUtils {
16629
16217
  numberLengthValidator(inputLength) {
@@ -16653,7 +16241,7 @@ class ValidatorsUtils {
16653
16241
  const _c0$J = a0 => ({ "govuk-form-group--error": a0 });
16654
16242
  const _c1$g = a0 => ({ "table-group-error": a0 });
16655
16243
  function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
16656
- i0.ɵɵelementStart(0, "span", 28)(1, "span", 29);
16244
+ i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
16657
16245
  i0.ɵɵtext(2, "Error:");
16658
16246
  i0.ɵɵelementEnd();
16659
16247
  i0.ɵɵtext(3);
@@ -16664,7 +16252,7 @@ function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
16664
16252
  i0.ɵɵtextInterpolate1(" ", ctx_r1.caseNumberError, " ");
16665
16253
  } }
16666
16254
  function LinkCasesComponent_div_8_span_11_Template(rf, ctx) { if (rf & 1) {
16667
- i0.ɵɵelementStart(0, "span", 28)(1, "span", 29);
16255
+ i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
16668
16256
  i0.ɵɵtext(2, "Error:");
16669
16257
  i0.ɵɵelementEnd();
16670
16258
  i0.ɵɵtext(3);
@@ -16676,10 +16264,10 @@ function LinkCasesComponent_div_8_span_11_Template(rf, ctx) { if (rf & 1) {
16676
16264
  } }
16677
16265
  function LinkCasesComponent_div_8_div_13_Template(rf, ctx) { if (rf & 1) {
16678
16266
  const _r3 = i0.ɵɵgetCurrentView();
16679
- i0.ɵɵelementStart(0, "div", 30)(1, "input", 31);
16267
+ i0.ɵɵelementStart(0, "div", 32)(1, "input", 33);
16680
16268
  i0.ɵɵlistener("change", function LinkCasesComponent_div_8_div_13_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.toggleLinkCaseReasonOtherComments($event)); });
16681
16269
  i0.ɵɵelementEnd();
16682
- i0.ɵɵelementStart(2, "label", 32);
16270
+ i0.ɵɵelementStart(2, "label", 34);
16683
16271
  i0.ɵɵtext(3);
16684
16272
  i0.ɵɵelementEnd()();
16685
16273
  } if (rf & 2) {
@@ -16695,7 +16283,7 @@ function LinkCasesComponent_div_8_div_13_Template(rf, ctx) { if (rf & 1) {
16695
16283
  i0.ɵɵtextInterpolate(reason_r4.value_en);
16696
16284
  } }
16697
16285
  function LinkCasesComponent_div_8_div_14_span_3_Template(rf, ctx) { if (rf & 1) {
16698
- i0.ɵɵelementStart(0, "span", 28)(1, "span", 29);
16286
+ i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
16699
16287
  i0.ɵɵtext(2, "Error:");
16700
16288
  i0.ɵɵelementEnd();
16701
16289
  i0.ɵɵtext(3);
@@ -16706,14 +16294,14 @@ function LinkCasesComponent_div_8_div_14_span_3_Template(rf, ctx) { if (rf & 1)
16706
16294
  i0.ɵɵtextInterpolate1(" ", ctx_r1.caseReasonCommentsError, " ");
16707
16295
  } }
16708
16296
  function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
16709
- i0.ɵɵelementStart(0, "div", 33)(1, "h3", 20);
16297
+ i0.ɵɵelementStart(0, "div", 35)(1, "h3", 22);
16710
16298
  i0.ɵɵtext(2, "Comments");
16711
16299
  i0.ɵɵelementEnd();
16712
16300
  i0.ɵɵtemplate(3, LinkCasesComponent_div_8_div_14_span_3_Template, 4, 1, "span", 6);
16713
- i0.ɵɵelementStart(4, "textarea", 34);
16301
+ i0.ɵɵelementStart(4, "textarea", 36);
16714
16302
  i0.ɵɵtext(5, " ");
16715
16303
  i0.ɵɵelementEnd();
16716
- i0.ɵɵelementStart(6, "div", 35);
16304
+ i0.ɵɵelementStart(6, "div", 37);
16717
16305
  i0.ɵɵtext(7, " You can enter up to 100 characters ");
16718
16306
  i0.ɵɵelementEnd()();
16719
16307
  } if (rf & 2) {
@@ -16723,7 +16311,7 @@ function LinkCasesComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
16723
16311
  i0.ɵɵproperty("ngIf", ctx_r1.caseReasonCommentsError);
16724
16312
  } }
16725
16313
  function LinkCasesComponent_div_8_span_17_Template(rf, ctx) { if (rf & 1) {
16726
- i0.ɵɵelementStart(0, "span", 28)(1, "span", 29);
16314
+ i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
16727
16315
  i0.ɵɵtext(2, "Error:");
16728
16316
  i0.ɵɵelementEnd();
16729
16317
  i0.ɵɵtext(3);
@@ -16735,26 +16323,26 @@ function LinkCasesComponent_div_8_span_17_Template(rf, ctx) { if (rf & 1) {
16735
16323
  } }
16736
16324
  function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
16737
16325
  const _r1 = i0.ɵɵgetCurrentView();
16738
- i0.ɵɵelementStart(0, "div", 19)(1, "div", 5)(2, "h3", 20);
16326
+ i0.ɵɵelementStart(0, "div", 21)(1, "div", 5)(2, "h3", 22);
16739
16327
  i0.ɵɵtext(3, "Enter case reference");
16740
16328
  i0.ɵɵelementEnd();
16741
16329
  i0.ɵɵtemplate(4, LinkCasesComponent_div_8_span_4_Template, 4, 1, "span", 6);
16742
- i0.ɵɵelement(5, "input", 21);
16330
+ i0.ɵɵelement(5, "input", 23);
16743
16331
  i0.ɵɵelementEnd();
16744
- i0.ɵɵelementStart(6, "div", 22)(7, "h3", 20);
16332
+ i0.ɵɵelementStart(6, "div", 24)(7, "h3", 22);
16745
16333
  i0.ɵɵtext(8, "Why should these cases be linked?");
16746
16334
  i0.ɵɵelementEnd();
16747
- i0.ɵɵelementStart(9, "div", 23);
16335
+ i0.ɵɵelementStart(9, "div", 25);
16748
16336
  i0.ɵɵtext(10, " Select all that apply. ");
16749
16337
  i0.ɵɵelementEnd();
16750
16338
  i0.ɵɵtemplate(11, LinkCasesComponent_div_8_span_11_Template, 4, 1, "span", 6);
16751
- i0.ɵɵelementStart(12, "div", 24);
16752
- i0.ɵɵtemplate(13, LinkCasesComponent_div_8_div_13_Template, 4, 5, "div", 25);
16339
+ i0.ɵɵelementStart(12, "div", 26);
16340
+ i0.ɵɵtemplate(13, LinkCasesComponent_div_8_div_13_Template, 4, 5, "div", 27);
16753
16341
  i0.ɵɵelementEnd()();
16754
- i0.ɵɵtemplate(14, LinkCasesComponent_div_8_div_14_Template, 8, 4, "div", 26);
16342
+ i0.ɵɵtemplate(14, LinkCasesComponent_div_8_div_14_Template, 8, 4, "div", 28);
16755
16343
  i0.ɵɵelement(15, "br")(16, "br");
16756
16344
  i0.ɵɵtemplate(17, LinkCasesComponent_div_8_span_17_Template, 4, 1, "span", 6);
16757
- i0.ɵɵelementStart(18, "button", 27);
16345
+ i0.ɵɵelementStart(18, "button", 29);
16758
16346
  i0.ɵɵlistener("click", function LinkCasesComponent_div_8_Template_button_click_18_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.submitCaseInfo()); });
16759
16347
  i0.ɵɵtext(19, "Propose case link");
16760
16348
  i0.ɵɵelementEnd()();
@@ -16777,7 +16365,7 @@ function LinkCasesComponent_div_8_Template(rf, ctx) { if (rf & 1) {
16777
16365
  i0.ɵɵproperty("ngIf", ctx_r1.caseSelectionError);
16778
16366
  } }
16779
16367
  function LinkCasesComponent_span_13_Template(rf, ctx) { if (rf & 1) {
16780
- i0.ɵɵelementStart(0, "span", 28)(1, "span", 29);
16368
+ i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
16781
16369
  i0.ɵɵtext(2, "Error:");
16782
16370
  i0.ɵɵelementEnd();
16783
16371
  i0.ɵɵtext(3);
@@ -16800,27 +16388,27 @@ function LinkCasesComponent_tr_31_span_15_Template(rf, ctx) { if (rf & 1) {
16800
16388
  } }
16801
16389
  function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
16802
16390
  const _r6 = i0.ɵɵgetCurrentView();
16803
- i0.ɵɵelementStart(0, "tr", 10)(1, "td", 36);
16804
- i0.ɵɵelement(2, "div", 37);
16391
+ i0.ɵɵelementStart(0, "tr", 10)(1, "td", 38);
16392
+ i0.ɵɵelement(2, "div", 39);
16805
16393
  i0.ɵɵelementStart(3, "span");
16806
16394
  i0.ɵɵtext(4);
16807
16395
  i0.ɵɵelement(5, "br");
16808
16396
  i0.ɵɵtext(6);
16809
16397
  i0.ɵɵpipe(7, "ccdCaseReference");
16810
16398
  i0.ɵɵelementEnd()();
16811
- i0.ɵɵelementStart(8, "td", 38);
16399
+ i0.ɵɵelementStart(8, "td", 40);
16812
16400
  i0.ɵɵtext(9);
16813
16401
  i0.ɵɵelementEnd();
16814
- i0.ɵɵelementStart(10, "td", 36);
16402
+ i0.ɵɵelementStart(10, "td", 38);
16815
16403
  i0.ɵɵtext(11);
16816
16404
  i0.ɵɵelementEnd();
16817
- i0.ɵɵelementStart(12, "td", 38);
16405
+ i0.ɵɵelementStart(12, "td", 40);
16818
16406
  i0.ɵɵtext(13);
16819
16407
  i0.ɵɵelementEnd();
16820
- i0.ɵɵelementStart(14, "td", 36);
16821
- i0.ɵɵtemplate(15, LinkCasesComponent_tr_31_span_15_Template, 4, 3, "span", 39);
16408
+ i0.ɵɵelementStart(14, "td", 38);
16409
+ i0.ɵɵtemplate(15, LinkCasesComponent_tr_31_span_15_Template, 4, 3, "span", 41);
16822
16410
  i0.ɵɵelementEnd();
16823
- i0.ɵɵelementStart(16, "td", 36)(17, "a", 40);
16411
+ i0.ɵɵelementStart(16, "td", 38)(17, "a", 42);
16824
16412
  i0.ɵɵlistener("click", function LinkCasesComponent_tr_31_Template_a_click_17_listener() { const ctx_r7 = i0.ɵɵrestoreView(_r6); const case_r9 = ctx_r7.$implicit; const pos_r10 = ctx_r7.index; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onSelectedLinkedCaseRemove(pos_r10, case_r9.caseReference)); });
16825
16413
  i0.ɵɵtext(18, "Remove");
16826
16414
  i0.ɵɵelementEnd()()();
@@ -16849,11 +16437,11 @@ function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
16849
16437
  i0.ɵɵattribute("id", case_r9.caseReference);
16850
16438
  } }
16851
16439
  function LinkCasesComponent_tr_32_Template(rf, ctx) { if (rf & 1) {
16852
- i0.ɵɵelementStart(0, "tr", 10)(1, "td", 41);
16440
+ i0.ɵɵelementStart(0, "tr", 10)(1, "td", 43);
16853
16441
  i0.ɵɵtext(2, " None ");
16854
16442
  i0.ɵɵelementEnd()();
16855
16443
  } }
16856
- class LinkCasesComponent extends AbstractJourneyComponent {
16444
+ class LinkCasesComponent {
16857
16445
  casesService;
16858
16446
  fb;
16859
16447
  validatorsUtils;
@@ -16872,8 +16460,7 @@ class LinkCasesComponent extends AbstractJourneyComponent {
16872
16460
  linkCaseReasons;
16873
16461
  showComments = false;
16874
16462
  ISO_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSS';
16875
- constructor(casesService, fb, validatorsUtils, linkedCasesService, multipageComponentStateService) {
16876
- super(multipageComponentStateService);
16463
+ constructor(casesService, fb, validatorsUtils, linkedCasesService) {
16877
16464
  this.casesService = casesService;
16878
16465
  this.fb = fb;
16879
16466
  this.validatorsUtils = validatorsUtils;
@@ -16884,11 +16471,7 @@ class LinkCasesComponent extends AbstractJourneyComponent {
16884
16471
  this.caseName = this.linkedCasesService.caseName;
16885
16472
  this.linkCaseReasons = this.linkedCasesService.linkCaseReasons;
16886
16473
  this.initForm();
16887
- if (!this.linkedCasesService.hasNavigatedInJourney) {
16888
- this.linkedCasesService.linkedCases = [];
16889
- this.linkedCasesService.caseFieldValue = [];
16890
- }
16891
- if (this.linkedCasesService.editMode || this.linkedCasesService.linkedCases.length) {
16474
+ if (this.linkedCasesService.editMode) {
16892
16475
  // this may have includes the currently added one but yet to be submitted.
16893
16476
  this.selectedCases = this.linkedCasesService.linkedCases;
16894
16477
  }
@@ -16897,9 +16480,8 @@ class LinkCasesComponent extends AbstractJourneyComponent {
16897
16480
  }
16898
16481
  }
16899
16482
  initForm() {
16900
- const caseNumber = this.linkedCasesService.storedCaseNumber ?? '';
16901
16483
  this.linkCaseForm = this.fb.group({
16902
- caseNumber: [caseNumber, [Validators.minLength(16), this.validatorsUtils.regexPattern(Patterns.CASE_REF)]],
16484
+ caseNumber: ['', [Validators.minLength(16), this.validatorsUtils.regexPattern(Patterns.CASE_REF)]],
16903
16485
  reasonType: this.getReasonTypeFormArray,
16904
16486
  otherDescription: ['', [Validators.maxLength(100)]]
16905
16487
  });
@@ -16932,8 +16514,6 @@ class LinkCasesComponent extends AbstractJourneyComponent {
16932
16514
  !this.isCaseSelected(this.linkedCasesService.linkedCases) &&
16933
16515
  !this.isCaseSelectedSameAsCurrentCase() &&
16934
16516
  !this.isOtherOptionSelectedButOtherDescriptionNotEntered()) {
16935
- this.linkedCasesService.storedCaseNumber = '';
16936
- this.linkedCasesService.hasNavigatedInJourney = true;
16937
16517
  this.getCaseInfo();
16938
16518
  }
16939
16519
  else {
@@ -17038,7 +16618,9 @@ class LinkCasesComponent extends AbstractJourneyComponent {
17038
16618
  CreatedDateTime: moment(new Date()).format(this.ISO_FORMAT),
17039
16619
  ReasonForLink: this.getSelectedCCDTypeCaseReason()
17040
16620
  };
17041
- this.linkedCasesService.caseFieldValue = [];
16621
+ if (!this.linkedCasesService.caseFieldValue) {
16622
+ this.linkedCasesService.caseFieldValue = [];
16623
+ }
17042
16624
  this.linkedCasesService.caseFieldValue.push({ id: caseView.case_id.toString(), value: ccdApiCaseLinkData });
17043
16625
  this.selectedCases.push(caseLink);
17044
16626
  this.linkCaseReasons.forEach(reason => reason.selected = false);
@@ -17109,7 +16691,6 @@ class LinkCasesComponent extends AbstractJourneyComponent {
17109
16691
  this.caseSelectionError = null;
17110
16692
  this.noSelectedCaseError = null;
17111
16693
  let navigateToNextPage = true;
17112
- this.linkedCasesService.storedCaseNumber = this.linkCaseForm.value.caseNumber ?? '';
17113
16694
  if (this.selectedCases.length) {
17114
16695
  this.linkedCasesService.linkedCases = this.selectedCases;
17115
16696
  }
@@ -17124,14 +16705,8 @@ class LinkCasesComponent extends AbstractJourneyComponent {
17124
16705
  }
17125
16706
  this.emitLinkedCasesState(navigateToNextPage);
17126
16707
  }
17127
- next() {
17128
- this.onNext();
17129
- if (this.errorMessages.length === 0) {
17130
- super.next();
17131
- }
17132
- }
17133
- static ɵfac = function LinkCasesComponent_Factory(t) { return new (t || LinkCasesComponent)(i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(ValidatorsUtils), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
17134
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LinkCasesComponent, selectors: [["ccd-link-cases"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 33, vars: 11, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-caption-l"], [1, "govuk-heading-xl"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["id", "caseNumber", 1, "govuk-form-group", 3, "ngClass"], ["class", "govuk-error-message", 4, "ngIf"], [1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--m"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", "width", "300", 1, "govuk-table__header"], ["scope", "col", "width", "150", 1, "govuk-table__header"], ["scope", "col", "width", "200", 1, "govuk-table__header"], ["scope", "col", "width", "400", 1, "govuk-table__header"], ["scope", "col", "width", "50", 1, "govuk-table__header"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "form-group", 3, "formGroup"], [1, "govuk-heading-s"], ["formControlName", "caseNumber", "id", "width-20", "name", "width-20", "type", "text", 1, "govuk-input", "govuk-input--width-20"], [1, "govuk-!-margin-top-3", 3, "ngClass"], ["id", "waste-hint", 1, "govuk-hint"], ["data-module", "govuk-checkboxes", "formArrayName", "reasonType", "id", "caseReason", 1, "govuk-checkboxes"], ["class", "govuk-checkboxes__item", 3, "formGroupName", 4, "ngFor", "ngForOf"], ["id", "other-description-char-limit-error", "class", "govuk-!-margin-top-3", 3, "ngClass", 4, "ngIf"], ["id", "propose", "type", "button", "data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", 3, "click"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-checkboxes__item", 3, "formGroupName"], ["formControlName", "selected", "name", "pos", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "id", "value"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["id", "other-description-char-limit-error", 1, "govuk-!-margin-top-3", 3, "ngClass"], ["id", "otherDescription", "name", "otherDescription", "formControlName", "otherDescription", "rows", "5", "aria-describedby", "other-description-hint other-description-char-limit-info other-description-char-limit-error", 1, "govuk-textarea", "govuk-input--width-30"], ["id", "other-description-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-table__cell"], [1, "govuk-form-group--error", 3, "ngClass"], [1, "govuk-table__cell", 3, "title"], [4, "ngFor", "ngForOf"], [1, "govuk-link", "no-visited-state", 3, "click"], ["colspan", "6", 1, "govuk-table__cell"]], template: function LinkCasesComponent_Template(rf, ctx) { if (rf & 1) {
16708
+ static ɵfac = function LinkCasesComponent_Factory(t) { return new (t || LinkCasesComponent)(i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(ValidatorsUtils), i0.ɵɵdirectiveInject(LinkedCasesService)); };
16709
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LinkCasesComponent, selectors: [["ccd-link-cases"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter" }, decls: 36, vars: 11, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-caption-l"], [1, "govuk-heading-xl"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["id", "caseNumber", 1, "govuk-form-group", 3, "ngClass"], ["class", "govuk-error-message", 4, "ngIf"], [1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--m"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", "width", "300", 1, "govuk-table__header"], ["scope", "col", "width", "150", 1, "govuk-table__header"], ["scope", "col", "width", "200", 1, "govuk-table__header"], ["scope", "col", "width", "400", 1, "govuk-table__header"], ["scope", "col", "width", "50", 1, "govuk-table__header"], [1, "govuk-table__body"], ["class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", "id", "next-button", 1, "button", "button-primary", 3, "click"], [1, "form-group", 3, "formGroup"], [1, "govuk-heading-s"], ["formControlName", "caseNumber", "id", "width-20", "name", "width-20", "type", "text", 1, "govuk-input", "govuk-input--width-20"], [1, "govuk-!-margin-top-3", 3, "ngClass"], ["id", "waste-hint", 1, "govuk-hint"], ["data-module", "govuk-checkboxes", "formArrayName", "reasonType", "id", "caseReason", 1, "govuk-checkboxes"], ["class", "govuk-checkboxes__item", 3, "formGroupName", 4, "ngFor", "ngForOf"], ["id", "other-description-char-limit-error", "class", "govuk-!-margin-top-3", 3, "ngClass", 4, "ngIf"], ["id", "propose", "type", "button", "data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", 3, "click"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-checkboxes__item", 3, "formGroupName"], ["formControlName", "selected", "name", "pos", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "id", "value"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["id", "other-description-char-limit-error", 1, "govuk-!-margin-top-3", 3, "ngClass"], ["id", "otherDescription", "name", "otherDescription", "formControlName", "otherDescription", "rows", "5", "aria-describedby", "other-description-hint other-description-char-limit-info other-description-char-limit-error", 1, "govuk-textarea", "govuk-input--width-30"], ["id", "other-description-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-table__cell"], [1, "govuk-form-group--error", 3, "ngClass"], [1, "govuk-table__cell", 3, "title"], [4, "ngFor", "ngForOf"], [1, "govuk-link", "no-visited-state", 3, "click"], ["colspan", "6", 1, "govuk-table__cell"]], template: function LinkCasesComponent_Template(rf, ctx) { if (rf & 1) {
17135
16710
  i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div")(3, "span", 2);
17136
16711
  i0.ɵɵtext(4);
17137
16712
  i0.ɵɵpipe(5, "ccdCaseReference");
@@ -17165,7 +16740,11 @@ class LinkCasesComponent extends AbstractJourneyComponent {
17165
16740
  i0.ɵɵelementEnd()();
17166
16741
  i0.ɵɵelementStart(30, "tbody", 16);
17167
16742
  i0.ɵɵtemplate(31, LinkCasesComponent_tr_31_Template, 19, 14, "tr", 17)(32, LinkCasesComponent_tr_32_Template, 3, 0, "tr", 18);
17168
- i0.ɵɵelementEnd()()()()()();
16743
+ i0.ɵɵelementEnd()()();
16744
+ i0.ɵɵelementStart(33, "div", 19)(34, "button", 20);
16745
+ i0.ɵɵlistener("click", function LinkCasesComponent_Template_button_click_34_listener() { return ctx.onNext(); });
16746
+ i0.ɵɵtext(35, "Next");
16747
+ i0.ɵɵelementEnd()()()()();
17169
16748
  } if (rf & 2) {
17170
16749
  i0.ɵɵadvance(4);
17171
16750
  i0.ɵɵtextInterpolate2("Link cases to ", ctx.caseName, " ", i0.ɵɵpipeBind1(5, 7, ctx.caseId), "");
@@ -17183,11 +16762,11 @@ class LinkCasesComponent extends AbstractJourneyComponent {
17183
16762
  }
17184
16763
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LinkCasesComponent, [{
17185
16764
  type: Component,
17186
- args: [{ selector: 'ccd-link-cases', template: "<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <div>\n <span class=\"govuk-caption-l\">Link cases to {{caseName}} {{caseId | ccdCaseReference}}</span>\n <h1 class=\"govuk-heading-xl\">Select a&nbsp;case you want to link to this case</h1>\n <div class=\"form-group\" [formGroup]=\"linkCaseForm\" *ngIf=\"linkCaseForm\">\n <div class=\"govuk-form-group\" id=\"caseNumber\" [ngClass]=\"{'govuk-form-group--error': !!caseNumberError}\">\n <h3 class=\"govuk-heading-s\">Enter case reference</h3>\n <span class=\"govuk-error-message\" *ngIf=\"caseNumberError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{caseNumberError}}\n </span>\n <input class=\"govuk-input govuk-input--width-20\" formControlName=\"caseNumber\" id=\"width-20\" name=\"width-20\"\n type=\"text\">\n </div>\n <div [ngClass]=\"{'govuk-form-group--error': !!caseReasonError}\" class=\"govuk-!-margin-top-3\">\n <h3 class=\"govuk-heading-s\">Why should these cases be linked?</h3>\n <div id=\"waste-hint\" class=\"govuk-hint\">\n Select all that apply.\n </div>\n <span class=\"govuk-error-message\" *ngIf=\"caseReasonError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{caseReasonError}}\n </span>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\" formArrayName=\"reasonType\" id=\"caseReason\">\n <div class=\"govuk-checkboxes__item\" *ngFor=\"let reason of linkCaseReasons;index as pos\" [formGroupName]=\"pos\">\n <input class=\"govuk-checkboxes__input\" id=\"{{reason.key}}\" formControlName=\"selected\" name=\"pos\"\n type=\"checkbox\" [value]=\"reason.value_en\" (change)=\"toggleLinkCaseReasonOtherComments($event)\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{reason.key}}\">{{reason.value_en}}</label>\n </div>\n </div>\n </div>\n <div id=\"other-description-char-limit-error\" [ngClass]=\"{'govuk-form-group--error': !!caseReasonCommentsError}\" class=\"govuk-!-margin-top-3\" *ngIf=\"showComments\">\n <h3 class=\"govuk-heading-s\">Comments</h3>\n <span class=\"govuk-error-message\" *ngIf=\"caseReasonCommentsError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{caseReasonCommentsError}}\n </span>\n <textarea class=\"govuk-textarea govuk-input--width-30\" id=\"otherDescription\"\n name=\"otherDescription\" formControlName=\"otherDescription\" rows=\"5\"\n aria-describedby=\"other-description-hint other-description-char-limit-info other-description-char-limit-error\">\n </textarea>\n <div id=\"other-description-char-limit-info\" aria-live=\"polite\" class=\"govuk-hint govuk-character-count__message\">\n You can enter up to 100 characters\n </div>\n </div>\n <br><br>\n <span class=\"govuk-error-message\" *ngIf=\"caseSelectionError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{caseSelectionError}}\n </span>\n <button id=\"propose\" type=\"button\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\"\n (click)=\"submitCaseInfo()\">Propose case link</button>\n </div>\n <hr>\n <br><br>\n <div class=\"govuk-form-group\" id=\"caseNumber\" [ngClass]=\"{'govuk-form-group--error': !!noSelectedCaseError}\">\n <span class=\"govuk-error-message\" *ngIf=\"noSelectedCaseError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{noSelectedCaseError}}\n </span>\n <table class=\"govuk-table\">\n <caption class=\"govuk-table__caption govuk-table__caption--m\">Proposed case links </caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header\" width=\"300\">Case name and number</th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"150\">Case type </th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"200\">Service</th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"200\">State</th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"400\">Reasons for case link</th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"50\"></th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let case of selectedCases; let pos = index\">\n <td class=\"govuk-table__cell\">\n <div class=\"govuk-form-group--error\"\n [ngClass]=\"{'table-group-error':caseSelectionError && case.caseReference === linkCaseForm.value.caseNumber}\">\n </div>\n <span>{{case.caseName}} <br> {{case.caseReference | ccdCaseReference}}</span>\n </td>\n <td class=\"govuk-table__cell\" [title]=\"case.caseTypeDescription\">{{case.caseType}}</td>\n <td class=\"govuk-table__cell\">{{case.caseService}}</td>\n <td class=\"govuk-table__cell\" [title]=\"case.caseStateDescription\">{{case.caseState}}</td>\n <td class=\"govuk-table__cell\"><span\n *ngFor=\"let reason of case.reasons\">{{reason | ccdLinkCasesReasonValue}}<br></span></td>\n <td class=\"govuk-table__cell\"><a [attr.id]=\"case.caseReference\" (click)=\"onSelectedLinkedCaseRemove(pos, case.caseReference);\"\n class=\"govuk-link no-visited-state\">Remove</a></td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!selectedCases.length\">\n <td class=\"govuk-table__cell\" colspan=\"6\">\n None\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n</div>\n", styles: [".no-visited-state{color:#1d70b8;cursor:pointer}.no-visited-state:hover{color:#003078}.govuk-checkboxes{display:flex;flex-direction:column;flex-wrap:wrap;max-height:500px;width:100%;overflow-x:auto;overflow-y:hidden;padding-top:5px}.govuk-checkboxes .govuk-checkboxes__item{display:flex}::ng-deep .govuk-width-container .screen-990 .width-50{width:100%}.govuk-table__row{position:relative}.govuk-table__row .table-group-error{position:absolute;height:calc(100% - 20px);margin-left:-15px}\n"] }]
17187
- }], () => [{ type: CasesService }, { type: i4.FormBuilder }, { type: ValidatorsUtils }, { type: LinkedCasesService }, { type: MultipageComponentStateService }], { linkedCasesStateEmitter: [{
16765
+ args: [{ selector: 'ccd-link-cases', template: "<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <div>\n <span class=\"govuk-caption-l\">Link cases to {{caseName}} {{caseId | ccdCaseReference}}</span>\n <h1 class=\"govuk-heading-xl\">Select a&nbsp;case you want to link to this case</h1>\n <div class=\"form-group\" [formGroup]=\"linkCaseForm\" *ngIf=\"linkCaseForm\">\n <div class=\"govuk-form-group\" id=\"caseNumber\" [ngClass]=\"{'govuk-form-group--error': !!caseNumberError}\">\n <h3 class=\"govuk-heading-s\">Enter case reference</h3>\n <span class=\"govuk-error-message\" *ngIf=\"caseNumberError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{caseNumberError}}\n </span>\n <input class=\"govuk-input govuk-input--width-20\" formControlName=\"caseNumber\" id=\"width-20\" name=\"width-20\"\n type=\"text\">\n </div>\n <div [ngClass]=\"{'govuk-form-group--error': !!caseReasonError}\" class=\"govuk-!-margin-top-3\">\n <h3 class=\"govuk-heading-s\">Why should these cases be linked?</h3>\n <div id=\"waste-hint\" class=\"govuk-hint\">\n Select all that apply.\n </div>\n <span class=\"govuk-error-message\" *ngIf=\"caseReasonError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{caseReasonError}}\n </span>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\" formArrayName=\"reasonType\" id=\"caseReason\">\n <div class=\"govuk-checkboxes__item\" *ngFor=\"let reason of linkCaseReasons;index as pos\" [formGroupName]=\"pos\">\n <input class=\"govuk-checkboxes__input\" id=\"{{reason.key}}\" formControlName=\"selected\" name=\"pos\"\n type=\"checkbox\" [value]=\"reason.value_en\" (change)=\"toggleLinkCaseReasonOtherComments($event)\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{reason.key}}\">{{reason.value_en}}</label>\n </div>\n </div>\n </div>\n <div id=\"other-description-char-limit-error\" [ngClass]=\"{'govuk-form-group--error': !!caseReasonCommentsError}\" class=\"govuk-!-margin-top-3\" *ngIf=\"showComments\">\n <h3 class=\"govuk-heading-s\">Comments</h3>\n <span class=\"govuk-error-message\" *ngIf=\"caseReasonCommentsError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{caseReasonCommentsError}}\n </span>\n <textarea class=\"govuk-textarea govuk-input--width-30\" id=\"otherDescription\"\n name=\"otherDescription\" formControlName=\"otherDescription\" rows=\"5\"\n aria-describedby=\"other-description-hint other-description-char-limit-info other-description-char-limit-error\">\n </textarea>\n <div id=\"other-description-char-limit-info\" aria-live=\"polite\" class=\"govuk-hint govuk-character-count__message\">\n You can enter up to 100 characters\n </div>\n </div>\n <br><br>\n <span class=\"govuk-error-message\" *ngIf=\"caseSelectionError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{caseSelectionError}}\n </span>\n <button id=\"propose\" type=\"button\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\"\n (click)=\"submitCaseInfo()\">Propose case link</button>\n </div>\n <hr>\n <br><br>\n <div class=\"govuk-form-group\" id=\"caseNumber\" [ngClass]=\"{'govuk-form-group--error': !!noSelectedCaseError}\">\n <span class=\"govuk-error-message\" *ngIf=\"noSelectedCaseError\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{noSelectedCaseError}}\n </span>\n <table class=\"govuk-table\">\n <caption class=\"govuk-table__caption govuk-table__caption--m\">Proposed case links </caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header\" width=\"300\">Case name and number</th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"150\">Case type </th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"200\">Service</th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"200\">State</th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"400\">Reasons for case link</th>\n <th scope=\"col\" class=\"govuk-table__header\" width=\"50\"></th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let case of selectedCases; let pos = index\">\n <td class=\"govuk-table__cell\">\n <div class=\"govuk-form-group--error\"\n [ngClass]=\"{'table-group-error':caseSelectionError && case.caseReference === linkCaseForm.value.caseNumber}\">\n </div>\n <span>{{case.caseName}} <br> {{case.caseReference | ccdCaseReference}}</span>\n </td>\n <td class=\"govuk-table__cell\" [title]=\"case.caseTypeDescription\">{{case.caseType}}</td>\n <td class=\"govuk-table__cell\">{{case.caseService}}</td>\n <td class=\"govuk-table__cell\" [title]=\"case.caseStateDescription\">{{case.caseState}}</td>\n <td class=\"govuk-table__cell\"><span\n *ngFor=\"let reason of case.reasons\">{{reason | ccdLinkCasesReasonValue}}<br></span></td>\n <td class=\"govuk-table__cell\"><a [attr.id]=\"case.caseReference\" (click)=\"onSelectedLinkedCaseRemove(pos, case.caseReference);\"\n class=\"govuk-link no-visited-state\">Remove</a></td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!selectedCases.length\">\n <td class=\"govuk-table__cell\" colspan=\"6\">\n None\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" id=\"next-button\" (click)=\"onNext()\">Next</button>\n </div>\n </div>\n </div>\n</div>\n", styles: [".no-visited-state{color:#1d70b8;cursor:pointer}.no-visited-state:hover{color:#003078}.govuk-checkboxes{display:flex;flex-direction:column;flex-wrap:wrap;max-height:500px;width:100%;overflow-x:auto;overflow-y:hidden;padding-top:5px}.govuk-checkboxes .govuk-checkboxes__item{display:flex}::ng-deep .govuk-width-container .screen-990 .width-50{width:100%}.govuk-table__row{position:relative}.govuk-table__row .table-group-error{position:absolute;height:calc(100% - 20px);margin-left:-15px}\n"] }]
16766
+ }], () => [{ type: CasesService }, { type: i4.FormBuilder }, { type: ValidatorsUtils }, { type: LinkedCasesService }], { linkedCasesStateEmitter: [{
17188
16767
  type: Output
17189
16768
  }] }); })();
17190
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LinkCasesComponent, { className: "LinkCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.ts", lineNumber: 26 }); })();
16769
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LinkCasesComponent, { className: "LinkCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.ts", lineNumber: 24 }); })();
17191
16770
 
17192
16771
  function LinkedCasesFromTableComponent_a_0_Template(rf, ctx) { if (rf & 1) {
17193
16772
  const _r1 = i0.ɵɵgetCurrentView();
@@ -17723,12 +17302,11 @@ function NoLinkedCasesComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
17723
17302
  i0.ɵɵtext(1, "There are no cases linked to this one.");
17724
17303
  i0.ɵɵelementEnd();
17725
17304
  } }
17726
- class NoLinkedCasesComponent extends AbstractJourneyComponent {
17305
+ class NoLinkedCasesComponent {
17727
17306
  router;
17728
17307
  linkedCasesService;
17729
17308
  serverLinkedApiError;
17730
- constructor(router, linkedCasesService, multipageComponentStateService) {
17731
- super(multipageComponentStateService);
17309
+ constructor(router, linkedCasesService) {
17732
17310
  this.router = router;
17733
17311
  this.linkedCasesService = linkedCasesService;
17734
17312
  }
@@ -17738,8 +17316,8 @@ class NoLinkedCasesComponent extends AbstractJourneyComponent {
17738
17316
  onBack() {
17739
17317
  this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId], { fragment: 'Linked cases' });
17740
17318
  }
17741
- static ɵfac = function NoLinkedCasesComponent_Factory(t) { return new (t || NoLinkedCasesComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
17742
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NoLinkedCasesComponent, selectors: [["ccd-no-linked-cases"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars: 3, consts: [["noLinkedCases", ""], [1, "govuk-grid-row"], [1, "govuk-grid-column-full"], ["class", "govuk-heading-xl", 4, "ngIf"], ["id", "unlink-cases-error", "class", "govuk-error-message", 4, "ngIf", "ngIfElse"], [1, "govuk-body"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-button-group"], ["type", "button", "id", "back-button", 1, "button", "button-primary", 3, "click"], [1, "govuk-heading-xl"], ["id", "unlink-cases-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function NoLinkedCasesComponent_Template(rf, ctx) { if (rf & 1) {
17319
+ static ɵfac = function NoLinkedCasesComponent_Factory(t) { return new (t || NoLinkedCasesComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(LinkedCasesService)); };
17320
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NoLinkedCasesComponent, selectors: [["ccd-no-linked-cases"]], decls: 12, vars: 3, consts: [["noLinkedCases", ""], [1, "govuk-grid-row"], [1, "govuk-grid-column-full"], ["class", "govuk-heading-xl", 4, "ngIf"], ["id", "unlink-cases-error", "class", "govuk-error-message", 4, "ngIf", "ngIfElse"], [1, "govuk-body"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-button-group"], ["type", "button", "id", "back-button", 1, "button", "button-primary", 3, "click"], [1, "govuk-heading-xl"], ["id", "unlink-cases-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function NoLinkedCasesComponent_Template(rf, ctx) { if (rf & 1) {
17743
17321
  const _r1 = i0.ɵɵgetCurrentView();
17744
17322
  i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
17745
17323
  i0.ɵɵtemplate(2, NoLinkedCasesComponent_h1_2_Template, 2, 0, "h1", 3)(3, NoLinkedCasesComponent_p_3_Template, 4, 1, "p", 4)(4, NoLinkedCasesComponent_ng_template_4_Template, 2, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
@@ -17762,66 +17340,70 @@ class NoLinkedCasesComponent extends AbstractJourneyComponent {
17762
17340
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NoLinkedCasesComponent, [{
17763
17341
  type: Component,
17764
17342
  args: [{ selector: 'ccd-no-linked-cases', template: "<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h1 class=\"govuk-heading-xl\" *ngIf=\"serverLinkedApiError\">There is a problem</h1>\n <p id=\"unlink-cases-error\" class=\"govuk-error-message\"\n *ngIf=\"serverLinkedApiError;else noLinkedCases;\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{serverLinkedApiError.message}}\n </p>\n <ng-template #noLinkedCases>\n <p class=\"govuk-body\">There are no cases linked to this one.</p>\n </ng-template>\n <p class=\"govuk-body\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"onBack()\">Go back to the Linked cases tab</a>\n </p>\n <div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" id=\"back-button\" (click)=\"onBack()\">Back</button>\n </div>\n </div>\n</div>\n" }]
17765
- }], () => [{ type: i1$1.Router }, { type: LinkedCasesService }, { type: MultipageComponentStateService }], null); })();
17766
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NoLinkedCasesComponent, { className: "NoLinkedCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.ts", lineNumber: 12 }); })();
17343
+ }], () => [{ type: i1$1.Router }, { type: LinkedCasesService }], null); })();
17344
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NoLinkedCasesComponent, { className: "NoLinkedCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.ts", lineNumber: 9 }); })();
17767
17345
 
17768
17346
  const _c0$I = a0 => ({ "govuk-form-group--error": a0 });
17769
17347
  function UnLinkCasesComponent_div_0_div_4_p_1_Template(rf, ctx) { if (rf & 1) {
17770
- i0.ɵɵelementStart(0, "p", 9)(1, "span", 10);
17348
+ i0.ɵɵelementStart(0, "p", 11)(1, "span", 12);
17771
17349
  i0.ɵɵtext(2, "Error:");
17772
17350
  i0.ɵɵelementEnd();
17773
17351
  i0.ɵɵtext(3);
17774
17352
  i0.ɵɵelementEnd();
17775
17353
  } if (rf & 2) {
17776
- const ctx_r0 = i0.ɵɵnextContext(3);
17354
+ const ctx_r1 = i0.ɵɵnextContext(3);
17777
17355
  i0.ɵɵadvance(3);
17778
- i0.ɵɵtextInterpolate1(" ", ctx_r0.unlinkErrorMessage, " ");
17356
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.unlinkErrorMessage, " ");
17779
17357
  } }
17780
17358
  function UnLinkCasesComponent_div_0_div_4_div_3_Template(rf, ctx) { if (rf & 1) {
17781
- const _r2 = i0.ɵɵgetCurrentView();
17782
- i0.ɵɵelementStart(0, "div", 11)(1, "input", 12);
17783
- i0.ɵɵlistener("change", function UnLinkCasesComponent_div_0_div_4_div_3_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.onChange($event.target)); });
17359
+ const _r3 = i0.ɵɵgetCurrentView();
17360
+ i0.ɵɵelementStart(0, "div", 13)(1, "input", 14);
17361
+ i0.ɵɵlistener("change", function UnLinkCasesComponent_div_0_div_4_div_3_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onChange($event.target)); });
17784
17362
  i0.ɵɵelementEnd();
17785
- i0.ɵɵelementStart(2, "label", 13);
17363
+ i0.ɵɵelementStart(2, "label", 15);
17786
17364
  i0.ɵɵtext(3);
17787
17365
  i0.ɵɵpipe(4, "ccdCaseReference");
17788
17366
  i0.ɵɵelementEnd()();
17789
17367
  } if (rf & 2) {
17790
- const case_r3 = ctx.$implicit;
17368
+ const case_r4 = ctx.$implicit;
17791
17369
  i0.ɵɵadvance();
17792
- i0.ɵɵpropertyInterpolate1("id", "case-reference-", case_r3.caseReference, "");
17793
- i0.ɵɵproperty("value", case_r3.caseReference)("checked", case_r3.unlink);
17370
+ i0.ɵɵpropertyInterpolate1("id", "case-reference-", case_r4.caseReference, "");
17371
+ i0.ɵɵproperty("value", case_r4.caseReference)("checked", case_r4.unlink);
17794
17372
  i0.ɵɵadvance();
17795
- i0.ɵɵpropertyInterpolate("for", case_r3.caseReference);
17373
+ i0.ɵɵpropertyInterpolate("for", case_r4.caseReference);
17796
17374
  i0.ɵɵadvance();
17797
- i0.ɵɵtextInterpolate2(" ", case_r3.caseName, " ", i0.ɵɵpipeBind1(4, 7, case_r3.caseReference), " ");
17375
+ i0.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0.ɵɵpipeBind1(4, 7, case_r4.caseReference), " ");
17798
17376
  } }
17799
17377
  function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
17800
- i0.ɵɵelementStart(0, "div", 5);
17801
- i0.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p", 6);
17802
- i0.ɵɵelementStart(2, "div", 7);
17803
- i0.ɵɵtemplate(3, UnLinkCasesComponent_div_0_div_4_div_3_Template, 5, 9, "div", 8);
17378
+ i0.ɵɵelementStart(0, "div", 7);
17379
+ i0.ɵɵtemplate(1, UnLinkCasesComponent_div_0_div_4_p_1_Template, 4, 1, "p", 8);
17380
+ i0.ɵɵelementStart(2, "div", 9);
17381
+ i0.ɵɵtemplate(3, UnLinkCasesComponent_div_0_div_4_div_3_Template, 5, 9, "div", 10);
17804
17382
  i0.ɵɵelementEnd()();
17805
17383
  } if (rf & 2) {
17806
- const ctx_r0 = i0.ɵɵnextContext(2);
17807
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$I, ctx_r0.unlinkErrorMessage))("formGroup", ctx_r0.unlinkCaseForm);
17384
+ const ctx_r1 = i0.ɵɵnextContext(2);
17385
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$I, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
17808
17386
  i0.ɵɵadvance();
17809
- i0.ɵɵproperty("ngIf", ctx_r0.unlinkErrorMessage);
17387
+ i0.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
17810
17388
  i0.ɵɵadvance(2);
17811
- i0.ɵɵproperty("ngForOf", ctx_r0.linkedCases);
17389
+ i0.ɵɵproperty("ngForOf", ctx_r1.linkedCases);
17812
17390
  } }
17813
17391
  function UnLinkCasesComponent_div_0_Template(rf, ctx) { if (rf & 1) {
17392
+ const _r1 = i0.ɵɵgetCurrentView();
17814
17393
  i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h1", 3);
17815
17394
  i0.ɵɵtext(3, "Select the cases you want to unlink from this case");
17816
17395
  i0.ɵɵelementEnd();
17817
17396
  i0.ɵɵtemplate(4, UnLinkCasesComponent_div_0_div_4_Template, 4, 6, "div", 4);
17818
- i0.ɵɵelementEnd()();
17397
+ i0.ɵɵelementStart(5, "div", 5)(6, "button", 6);
17398
+ i0.ɵɵlistener("click", function UnLinkCasesComponent_div_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onNext()); });
17399
+ i0.ɵɵtext(7, "Next");
17400
+ i0.ɵɵelementEnd()()()();
17819
17401
  } if (rf & 2) {
17820
- const ctx_r0 = i0.ɵɵnextContext();
17402
+ const ctx_r1 = i0.ɵɵnextContext();
17821
17403
  i0.ɵɵadvance(4);
17822
- i0.ɵɵproperty("ngIf", ctx_r0.unlinkCaseForm);
17404
+ i0.ɵɵproperty("ngIf", ctx_r1.unlinkCaseForm);
17823
17405
  } }
17824
- class UnLinkCasesComponent extends AbstractFieldWriteJourneyComponent {
17406
+ class UnLinkCasesComponent {
17825
17407
  fb;
17826
17408
  casesService;
17827
17409
  linkedCasesService;
@@ -17836,8 +17418,7 @@ class UnLinkCasesComponent extends AbstractFieldWriteJourneyComponent {
17836
17418
  unlinkErrorMessage;
17837
17419
  isLoaded;
17838
17420
  isServerError = false;
17839
- constructor(fb, casesService, linkedCasesService, multipageComponentStateService) {
17840
- super(multipageComponentStateService);
17421
+ constructor(fb, casesService, linkedCasesService) {
17841
17422
  this.fb = fb;
17842
17423
  this.casesService = casesService;
17843
17424
  this.linkedCasesService = linkedCasesService;
@@ -17930,12 +17511,6 @@ class UnLinkCasesComponent extends AbstractFieldWriteJourneyComponent {
17930
17511
  // Return linked cases state and error messages to the parent
17931
17512
  this.emitLinkedCasesState(navigateToNextPage);
17932
17513
  }
17933
- next() {
17934
- this.onNext();
17935
- if (this.errorMessages.length === 0) {
17936
- super.next();
17937
- }
17938
- }
17939
17514
  // Return linked cases state and error messages to the parent
17940
17515
  emitLinkedCasesState(isNavigateToNextPage) {
17941
17516
  this.linkedCasesStateEmitter.emit({
@@ -17948,22 +17523,22 @@ class UnLinkCasesComponent extends AbstractFieldWriteJourneyComponent {
17948
17523
  this.errorMessages = [];
17949
17524
  this.unlinkErrorMessage = null;
17950
17525
  }
17951
- static ɵfac = function UnLinkCasesComponent_Factory(t) { return new (t || UnLinkCasesComponent)(i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
17952
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UnLinkCasesComponent, selectors: [["ccd-unlink-cases"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter", notifyAPIFailure: "notifyAPIFailure" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "govuk-grid-row", 4, "ngIf"], [1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-heading-xl"], ["class", "govuk-form-group form-group", 3, "ngClass", "formGroup", 4, "ngIf"], [1, "govuk-form-group", "form-group", 3, "ngClass", "formGroup"], ["id", "unlink-cases-error", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes"], ["class", "govuk-checkboxes__item", 4, "ngFor", "ngForOf"], ["id", "unlink-cases-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-checkboxes__item"], ["formArrayName", "linkedCases", "name", "linkedCases", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "id", "value", "checked"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"]], template: function UnLinkCasesComponent_Template(rf, ctx) { if (rf & 1) {
17953
- i0.ɵɵtemplate(0, UnLinkCasesComponent_div_0_Template, 5, 1, "div", 0);
17526
+ static ɵfac = function UnLinkCasesComponent_Factory(t) { return new (t || UnLinkCasesComponent)(i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService)); };
17527
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UnLinkCasesComponent, selectors: [["ccd-unlink-cases"]], outputs: { linkedCasesStateEmitter: "linkedCasesStateEmitter", notifyAPIFailure: "notifyAPIFailure" }, decls: 1, vars: 1, consts: [["class", "govuk-grid-row", 4, "ngIf"], [1, "govuk-grid-row"], [1, "govuk-grid-column-full"], [1, "govuk-heading-xl"], ["class", "govuk-form-group form-group", 3, "ngClass", "formGroup", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", "id", "next-button", 1, "button", "button-primary", 3, "click"], [1, "govuk-form-group", "form-group", 3, "ngClass", "formGroup"], ["id", "unlink-cases-error", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes"], ["class", "govuk-checkboxes__item", 4, "ngFor", "ngForOf"], ["id", "unlink-cases-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-checkboxes__item"], ["formArrayName", "linkedCases", "name", "linkedCases", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "id", "value", "checked"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"]], template: function UnLinkCasesComponent_Template(rf, ctx) { if (rf & 1) {
17528
+ i0.ɵɵtemplate(0, UnLinkCasesComponent_div_0_Template, 8, 1, "div", 0);
17954
17529
  } if (rf & 2) {
17955
17530
  i0.ɵɵproperty("ngIf", ctx.linkedCases.length > 0);
17956
17531
  } }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormArrayName, CaseReferencePipe], encapsulation: 2 });
17957
17532
  }
17958
17533
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UnLinkCasesComponent, [{
17959
17534
  type: Component,
17960
- args: [{ selector: 'ccd-unlink-cases', template: "<div class=\"govuk-grid-row\" *ngIf=\"linkedCases.length > 0\">\n <div class=\"govuk-grid-column-full\">\n <h1 class=\"govuk-heading-xl\">Select the cases you want to unlink from this case</h1>\n <div class=\"govuk-form-group form-group\" [ngClass]=\"{'govuk-form-group--error': unlinkErrorMessage}\" [formGroup]=\"unlinkCaseForm\" *ngIf=\"unlinkCaseForm\">\n <p id=\"unlink-cases-error\" class=\"govuk-error-message\" *ngIf=\"unlinkErrorMessage\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{unlinkErrorMessage}}\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\" *ngFor=\"let case of linkedCases\">\n <input class=\"govuk-checkboxes__input\" id=\"case-reference-{{case.caseReference}}\" formArrayName=\"linkedCases\" name=\"linkedCases\"\n type=\"checkbox\" [value]=\"case.caseReference\" [checked]=\"case.unlink\" (change)=\"onChange($event.target)\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{case.caseReference}}\">\n {{case.caseName }} {{case.caseReference | ccdCaseReference}}\n </label>\n </div>\n </div>\n </div>\n </div>\n</div>\n" }]
17961
- }], () => [{ type: i4.FormBuilder }, { type: CasesService }, { type: LinkedCasesService }, { type: MultipageComponentStateService }], { linkedCasesStateEmitter: [{
17535
+ args: [{ selector: 'ccd-unlink-cases', template: "<div class=\"govuk-grid-row\" *ngIf=\"linkedCases.length > 0\">\n <div class=\"govuk-grid-column-full\">\n <h1 class=\"govuk-heading-xl\">Select the cases you want to unlink from this case</h1>\n <div class=\"govuk-form-group form-group\" [ngClass]=\"{'govuk-form-group--error': unlinkErrorMessage}\" [formGroup]=\"unlinkCaseForm\" *ngIf=\"unlinkCaseForm\">\n <p id=\"unlink-cases-error\" class=\"govuk-error-message\" *ngIf=\"unlinkErrorMessage\">\n <span class=\"govuk-visually-hidden\">Error:</span> {{unlinkErrorMessage}}\n </p>\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\" *ngFor=\"let case of linkedCases\">\n <input class=\"govuk-checkboxes__input\" id=\"case-reference-{{case.caseReference}}\" formArrayName=\"linkedCases\" name=\"linkedCases\"\n type=\"checkbox\" [value]=\"case.caseReference\" [checked]=\"case.unlink\" (change)=\"onChange($event.target)\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"{{case.caseReference}}\">\n {{case.caseName }} {{case.caseReference | ccdCaseReference}}\n </label>\n </div>\n </div>\n </div>\n <div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" id=\"next-button\" (click)=\"onNext()\">Next</button>\n </div>\n </div>\n</div>\n" }]
17536
+ }], () => [{ type: i4.FormBuilder }, { type: CasesService }, { type: LinkedCasesService }], { linkedCasesStateEmitter: [{
17962
17537
  type: Output
17963
17538
  }], notifyAPIFailure: [{
17964
17539
  type: Output
17965
17540
  }] }); })();
17966
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UnLinkCasesComponent, { className: "UnLinkCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.ts", lineNumber: 16 }); })();
17541
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UnLinkCasesComponent, { className: "UnLinkCasesComponent", filePath: "lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.ts", lineNumber: 14 }); })();
17967
17542
 
17968
17543
  // tslint:disable:variable-name
17969
17544
  class LinkCaseReason {
@@ -18217,7 +17792,7 @@ class ReadLinkedCasesFieldComponent {
18217
17792
  function WriteLinkedCasesFieldComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
18218
17793
  const _r1 = i0.ɵɵgetCurrentView();
18219
17794
  i0.ɵɵelementContainerStart(0);
18220
- i0.ɵɵelementStart(1, "ccd-linked-cases-before-you-start", 4, 0);
17795
+ i0.ɵɵelementStart(1, "ccd-linked-cases-before-you-start", 3);
18221
17796
  i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_2_Template_ccd_linked_cases_before_you_start_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onLinkedCasesStateEmitted($event)); });
18222
17797
  i0.ɵɵelementEnd();
18223
17798
  i0.ɵɵelementContainerEnd();
@@ -18225,7 +17800,7 @@ function WriteLinkedCasesFieldComponent_ng_container_2_Template(rf, ctx) { if (r
18225
17800
  function WriteLinkedCasesFieldComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
18226
17801
  const _r3 = i0.ɵɵgetCurrentView();
18227
17802
  i0.ɵɵelementContainerStart(0);
18228
- i0.ɵɵelementStart(1, "ccd-no-linked-cases", 4, 0);
17803
+ i0.ɵɵelementStart(1, "ccd-no-linked-cases", 3);
18229
17804
  i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_3_Template_ccd_no_linked_cases_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onLinkedCasesStateEmitted($event)); });
18230
17805
  i0.ɵɵelementEnd();
18231
17806
  i0.ɵɵelementContainerEnd();
@@ -18233,7 +17808,7 @@ function WriteLinkedCasesFieldComponent_ng_container_3_Template(rf, ctx) { if (r
18233
17808
  function WriteLinkedCasesFieldComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
18234
17809
  const _r4 = i0.ɵɵgetCurrentView();
18235
17810
  i0.ɵɵelementContainerStart(0);
18236
- i0.ɵɵelementStart(1, "ccd-link-cases", 4, 0);
17811
+ i0.ɵɵelementStart(1, "ccd-link-cases", 3);
18237
17812
  i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_4_Template_ccd_link_cases_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onLinkedCasesStateEmitted($event)); });
18238
17813
  i0.ɵɵelementEnd();
18239
17814
  i0.ɵɵelementContainerEnd();
@@ -18241,7 +17816,7 @@ function WriteLinkedCasesFieldComponent_ng_container_4_Template(rf, ctx) { if (r
18241
17816
  function WriteLinkedCasesFieldComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
18242
17817
  const _r5 = i0.ɵɵgetCurrentView();
18243
17818
  i0.ɵɵelementContainerStart(0);
18244
- i0.ɵɵelementStart(1, "ccd-unlink-cases", 4, 0);
17819
+ i0.ɵɵelementStart(1, "ccd-unlink-cases", 3);
18245
17820
  i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_5_Template_ccd_unlink_cases_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onLinkedCasesStateEmitted($event)); });
18246
17821
  i0.ɵɵelementEnd();
18247
17822
  i0.ɵɵelementContainerEnd();
@@ -18249,12 +17824,12 @@ function WriteLinkedCasesFieldComponent_ng_container_5_Template(rf, ctx) { if (r
18249
17824
  function WriteLinkedCasesFieldComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
18250
17825
  const _r6 = i0.ɵɵgetCurrentView();
18251
17826
  i0.ɵɵelementContainerStart(0);
18252
- i0.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers", 4, 0);
17827
+ i0.ɵɵelementStart(1, "ccd-linked-cases-check-your-answers", 3);
18253
17828
  i0.ɵɵlistener("linkedCasesStateEmitter", function WriteLinkedCasesFieldComponent_ng_container_6_Template_ccd_linked_cases_check_your_answers_linkedCasesStateEmitter_1_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onLinkedCasesStateEmitted($event)); });
18254
17829
  i0.ɵɵelementEnd();
18255
17830
  i0.ɵɵelementContainerEnd();
18256
17831
  } }
18257
- class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent {
17832
+ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
18258
17833
  appConfig;
18259
17834
  commonDataService;
18260
17835
  casesService;
@@ -18267,8 +17842,8 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
18267
17842
  linkedCasesEventTriggers = LinkedCasesEventTriggers;
18268
17843
  linkedCases = [];
18269
17844
  subscriptions = new Subscription();
18270
- constructor(appConfig, commonDataService, casesService, linkedCasesService, caseEditDataService, multipageComponentStateService) {
18271
- super(multipageComponentStateService);
17845
+ constructor(appConfig, commonDataService, casesService, linkedCasesService, caseEditDataService) {
17846
+ super();
18272
17847
  this.appConfig = appConfig;
18273
17848
  this.commonDataService = commonDataService;
18274
17849
  this.casesService = casesService;
@@ -18293,18 +17868,6 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
18293
17868
  this.subscriptions.add(this.caseEditDataService.caseEditForm$.subscribe({
18294
17869
  next: editForm => this.caseEditForm = editForm
18295
17870
  }));
18296
- this.journeyPageNumber = this.journeyStartPageNumber = LinkedCasesPages.BEFORE_YOU_START;
18297
- this.journeyEndPageNumber = LinkedCasesPages.CHECK_YOUR_ANSWERS;
18298
- if (this.linkedCasesService.cameFromFinalStep) {
18299
- this.linkedCasesPage = LinkedCasesPages.CHECK_YOUR_ANSWERS;
18300
- this.journeyPageNumber = LinkedCasesPages.CHECK_YOUR_ANSWERS;
18301
- this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(true);
18302
- }
18303
- this.multipageComponentStateService.isAtStart = this.journeyPageNumber === this.journeyStartPageNumber;
18304
- }
18305
- onPageChange() {
18306
- const isAtStart = this.journeyPageNumber === this.journeyStartPageNumber || this.linkedCasesPage === LinkedCasesPages.BEFORE_YOU_START;
18307
- this.multipageComponentStateService.isAtStart = isAtStart;
18308
17871
  }
18309
17872
  initialiseCaseDetails(caseDetails) {
18310
17873
  if (caseDetails) {
@@ -18362,8 +17925,6 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
18362
17925
  }
18363
17926
  proceedToNextPage() {
18364
17927
  if (this.isAtFinalPage()) {
18365
- // Set the journey page to the end page.
18366
- this.journeyPageNumber = this.journeyEndPageNumber;
18367
17928
  // Continue button event must be allowed in final page
18368
17929
  this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(true);
18369
17930
  // Trigger validation to clear the "notAtFinalPage" error if now at the final state
@@ -18375,7 +17936,6 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
18375
17936
  // Continue button event must not be allowed if not in final page
18376
17937
  this.caseEditDataService.setLinkedCasesJourneyAtFinalStep(false);
18377
17938
  }
18378
- this.nextPage();
18379
17939
  }
18380
17940
  submitLinkedCases() {
18381
17941
  if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
@@ -18406,53 +17966,24 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
18406
17966
  });
18407
17967
  if (caseViewFiltered) {
18408
17968
  const caseLinkFieldValue = caseViewFiltered.map(filtered => filtered.fields?.length > 0 && filtered.fields.filter(field => field.id === 'caseLinks')[0].value);
18409
- if (!this.linkedCasesService.caseFieldValue.length) {
18410
- this.linkedCasesService.caseFieldValue = caseLinkFieldValue.length ? caseLinkFieldValue[0] : [];
18411
- this.linkedCasesService.getAllLinkedCaseInformation();
18412
- }
17969
+ this.linkedCasesService.caseFieldValue = caseLinkFieldValue.length ? caseLinkFieldValue[0] : [];
17970
+ this.linkedCasesService.getAllLinkedCaseInformation();
18413
17971
  }
18414
17972
  // Initialise the first page to display
18415
- if (!this.linkedCasesService.cameFromFinalStep) {
18416
- this.linkedCasesPage = this.linkedCasesService.isLinkedCasesEventTrigger ||
18417
- (this.linkedCasesService.caseFieldValue && this.linkedCasesService.caseFieldValue.length > 0
18418
- && !this.linkedCasesService.serverLinkedApiError)
18419
- ? LinkedCasesPages.BEFORE_YOU_START
18420
- : LinkedCasesPages.NO_LINKED_CASES;
18421
- }
17973
+ this.linkedCasesPage = this.linkedCasesService.isLinkedCasesEventTrigger ||
17974
+ (this.linkedCasesService.caseFieldValue && this.linkedCasesService.caseFieldValue.length > 0
17975
+ && !this.linkedCasesService.serverLinkedApiError)
17976
+ ? LinkedCasesPages.BEFORE_YOU_START
17977
+ : LinkedCasesPages.NO_LINKED_CASES;
18422
17978
  });
18423
17979
  }
18424
17980
  ngOnDestroy() {
18425
17981
  this.subscriptions.unsubscribe();
18426
17982
  }
18427
- previousPage() {
18428
- if (this.linkedCasesService.isLinkedCasesEventTrigger) {
18429
- if (this.linkedCasesPage === LinkedCasesPages.CHECK_YOUR_ANSWERS) {
18430
- this.linkedCasesPage = LinkedCasesPages.LINK_CASE;
18431
- }
18432
- else if (this.linkedCasesPage === LinkedCasesPages.LINK_CASE) {
18433
- this.linkedCasesPage = LinkedCasesPages.BEFORE_YOU_START;
18434
- }
18435
- else {
18436
- this.linkedCasesPage--;
18437
- }
18438
- }
18439
- else {
18440
- if (this.linkedCasesPage === LinkedCasesPages.UNLINK_CASE) {
18441
- this.linkedCasesPage = this.linkedCasesPages.BEFORE_YOU_START;
18442
- }
18443
- else if (this.linkedCasesPage === LinkedCasesPages.CHECK_YOUR_ANSWERS) {
18444
- this.linkedCasesPage = this.linkedCasesPages.UNLINK_CASE;
18445
- }
18446
- else {
18447
- this.linkedCasesPage--;
18448
- }
18449
- }
18450
- super.previousPage();
18451
- }
18452
- static ɵfac = function WriteLinkedCasesFieldComponent_Factory(t) { return new (t || WriteLinkedCasesFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CommonDataService), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
18453
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteLinkedCasesFieldComponent, selectors: [["ccd-write-linked-cases-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 7, consts: [["journeyChild", ""], [1, "form-group", "govuk-!-margin-bottom-2", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], [4, "ngSwitchCase"], [3, "linkedCasesStateEmitter"]], template: function WriteLinkedCasesFieldComponent_Template(rf, ctx) { if (rf & 1) {
18454
- i0.ɵɵelementStart(0, "div", 1)(1, "div", 2);
18455
- i0.ɵɵtemplate(2, WriteLinkedCasesFieldComponent_ng_container_2_Template, 3, 0, "ng-container", 3)(3, WriteLinkedCasesFieldComponent_ng_container_3_Template, 3, 0, "ng-container", 3)(4, WriteLinkedCasesFieldComponent_ng_container_4_Template, 3, 0, "ng-container", 3)(5, WriteLinkedCasesFieldComponent_ng_container_5_Template, 3, 0, "ng-container", 3)(6, WriteLinkedCasesFieldComponent_ng_container_6_Template, 3, 0, "ng-container", 3);
17983
+ static ɵfac = function WriteLinkedCasesFieldComponent_Factory(t) { return new (t || WriteLinkedCasesFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CommonDataService), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(LinkedCasesService), i0.ɵɵdirectiveInject(CaseEditDataService)); };
17984
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteLinkedCasesFieldComponent, selectors: [["ccd-write-linked-cases-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 7, consts: [[1, "form-group", "govuk-!-margin-bottom-2", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], [4, "ngSwitchCase"], [3, "linkedCasesStateEmitter"]], template: function WriteLinkedCasesFieldComponent_Template(rf, ctx) { if (rf & 1) {
17985
+ i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
17986
+ i0.ɵɵtemplate(2, WriteLinkedCasesFieldComponent_ng_container_2_Template, 2, 0, "ng-container", 2)(3, WriteLinkedCasesFieldComponent_ng_container_3_Template, 2, 0, "ng-container", 2)(4, WriteLinkedCasesFieldComponent_ng_container_4_Template, 2, 0, "ng-container", 2)(5, WriteLinkedCasesFieldComponent_ng_container_5_Template, 2, 0, "ng-container", 2)(6, WriteLinkedCasesFieldComponent_ng_container_6_Template, 2, 0, "ng-container", 2);
18456
17987
  i0.ɵɵelementEnd()();
18457
17988
  } if (rf & 2) {
18458
17989
  i0.ɵɵproperty("formGroup", ctx.formGroup);
@@ -18472,8 +18003,8 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteJourneyComponent
18472
18003
  }
18473
18004
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteLinkedCasesFieldComponent, [{
18474
18005
  type: Component,
18475
- args: [{ selector: 'ccd-write-linked-cases-field', template: "<div class=\"form-group govuk-!-margin-bottom-2\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngSwitch]=\"linkedCasesPage\">\n <ng-container *ngSwitchCase=\"linkedCasesPages.BEFORE_YOU_START\">\n <ccd-linked-cases-before-you-start\n #journeyChild \n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\">\n </ccd-linked-cases-before-you-start>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.NO_LINKED_CASES\">\n <ccd-no-linked-cases\n #journeyChild \n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\">\n </ccd-no-linked-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.LINK_CASE\">\n <ccd-link-cases\n #journeyChild \n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\">\n </ccd-link-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.UNLINK_CASE\">\n <ccd-unlink-cases\n #journeyChild \n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\">\n </ccd-unlink-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.CHECK_YOUR_ANSWERS\">\n <ccd-linked-cases-check-your-answers\n #journeyChild \n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\">\n </ccd-linked-cases-check-your-answers>\n </ng-container>\n </div>\n</div>\n" }]
18476
- }], () => [{ type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }, { type: MultipageComponentStateService }], null); })();
18006
+ args: [{ selector: 'ccd-write-linked-cases-field', template: "<div class=\"form-group govuk-!-margin-bottom-2\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngSwitch]=\"linkedCasesPage\">\n <ng-container *ngSwitchCase=\"linkedCasesPages.BEFORE_YOU_START\">\n <ccd-linked-cases-before-you-start\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-linked-cases-before-you-start>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.NO_LINKED_CASES\">\n <ccd-no-linked-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-no-linked-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.LINK_CASE\">\n <ccd-link-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-link-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.UNLINK_CASE\">\n <ccd-unlink-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-unlink-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.CHECK_YOUR_ANSWERS\">\n <ccd-linked-cases-check-your-answers\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-linked-cases-check-your-answers>\n </ng-container>\n </div>\n</div>\n" }]
18007
+ }], () => [{ type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }], null); })();
18477
18008
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber: 19 }); })();
18478
18009
 
18479
18010
  function ReadMoneyGbpFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
@@ -23236,10 +22767,10 @@ function AddCommentsComponent_span_7_Template(rf, ctx) { if (rf & 1) {
23236
22767
  i0.ɵɵtextInterpolate1(" (", i0.ɵɵpipeBind1(2, 1, "optional"), ")");
23237
22768
  } }
23238
22769
  function AddCommentsComponent_div_11_Template(rf, ctx) { if (rf & 1) {
23239
- i0.ɵɵelementStart(0, "div", 12)(1, "span", 13);
22770
+ i0.ɵɵelementStart(0, "div", 14)(1, "span", 15);
23240
22771
  i0.ɵɵtext(2, "!");
23241
22772
  i0.ɵɵelementEnd();
23242
- i0.ɵɵelementStart(3, "strong", 14)(4, "span", 15);
22773
+ i0.ɵɵelementStart(3, "strong", 16)(4, "span", 17);
23243
22774
  i0.ɵɵtext(5);
23244
22775
  i0.ɵɵpipe(6, "rpxTranslate");
23245
22776
  i0.ɵɵelementEnd();
@@ -23254,7 +22785,7 @@ function AddCommentsComponent_div_11_Template(rf, ctx) { if (rf & 1) {
23254
22785
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 4, ctx_r0.addCommentsStepEnum.WARNING_TEXT), " ");
23255
22786
  } }
23256
22787
  function AddCommentsComponent_div_12_Template(rf, ctx) { if (rf & 1) {
23257
- i0.ɵɵelementStart(0, "div", 16)(1, "span", 17);
22788
+ i0.ɵɵelementStart(0, "div", 18)(1, "span", 19);
23258
22789
  i0.ɵɵtext(2);
23259
22790
  i0.ɵɵpipe(3, "rpxTranslate");
23260
22791
  i0.ɵɵelementEnd();
@@ -23269,7 +22800,7 @@ function AddCommentsComponent_div_12_Template(rf, ctx) { if (rf & 1) {
23269
22800
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsNotEnteredErrorMessage), " ");
23270
22801
  } }
23271
22802
  function AddCommentsComponent_div_13_Template(rf, ctx) { if (rf & 1) {
23272
- i0.ɵɵelementStart(0, "div", 18)(1, "span", 17);
22803
+ i0.ɵɵelementStart(0, "div", 20)(1, "span", 19);
23273
22804
  i0.ɵɵtext(2);
23274
22805
  i0.ɵɵpipe(3, "rpxTranslate");
23275
22806
  i0.ɵɵelementEnd();
@@ -23283,7 +22814,7 @@ function AddCommentsComponent_div_13_Template(rf, ctx) { if (rf & 1) {
23283
22814
  i0.ɵɵadvance(2);
23284
22815
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsCharLimitErrorMessage), " ");
23285
22816
  } }
23286
- class AddCommentsComponent extends AbstractJourneyComponent {
22817
+ class AddCommentsComponent {
23287
22818
  formGroup;
23288
22819
  optional = false;
23289
22820
  isDisplayContextParameterExternal = false;
@@ -23342,14 +22873,8 @@ class AddCommentsComponent extends AbstractJourneyComponent {
23342
22873
  });
23343
22874
  }
23344
22875
  }
23345
- next() {
23346
- this.onNext();
23347
- if (this.errorMessages.length === 0) {
23348
- super.next();
23349
- }
23350
- }
23351
- static ɵfac = /*@__PURE__*/ (() => { let ɵAddCommentsComponent_BaseFactory; return function AddCommentsComponent_Factory(t) { return (ɵAddCommentsComponent_BaseFactory || (ɵAddCommentsComponent_BaseFactory = i0.ɵɵgetInheritedFactory(AddCommentsComponent)))(t || AddCommentsComponent); }; })();
23352
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AddCommentsComponent, selectors: [["ccd-add-comments"]], inputs: { formGroup: "formGroup", optional: "optional", isDisplayContextParameterExternal: "isDisplayContextParameterExternal", isDisplayContextParameter2Point1Enabled: "isDisplayContextParameter2Point1Enabled" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 18, vars: 21, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], [1, "govuk-label", "govuk-label--m", 3, "for"], [4, "ngIf"], ["id", "add-comments-hint", 1, "govuk-hint"], ["class", "govuk-warning-text", 4, "ngIf"], ["id", "flag-comments-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "add-comments-hint add-comments-char-limit-info add-comments-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "add-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["id", "flag-comments-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-comments-char-limit-error", 1, "govuk-error-message"]], template: function AddCommentsComponent_Template(rf, ctx) { if (rf & 1) {
22876
+ static ɵfac = function AddCommentsComponent_Factory(t) { return new (t || AddCommentsComponent)(); };
22877
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AddCommentsComponent, selectors: [["ccd-add-comments"]], inputs: { formGroup: "formGroup", optional: "optional", isDisplayContextParameterExternal: "isDisplayContextParameterExternal", isDisplayContextParameter2Point1Enabled: "isDisplayContextParameter2Point1Enabled" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 22, vars: 24, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], [1, "govuk-label", "govuk-label--m", 3, "for"], [4, "ngIf"], ["id", "add-comments-hint", 1, "govuk-hint"], ["class", "govuk-warning-text", 4, "ngIf"], ["id", "flag-comments-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "add-comments-hint add-comments-char-limit-info add-comments-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "add-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["id", "flag-comments-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-comments-char-limit-error", 1, "govuk-error-message"]], template: function AddCommentsComponent_Template(rf, ctx) { if (rf & 1) {
23353
22878
  i0.ɵɵelementContainerStart(0, 0);
23354
22879
  i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "h1", 3)(4, "label", 4);
23355
22880
  i0.ɵɵtext(5);
@@ -23367,18 +22892,23 @@ class AddCommentsComponent extends AbstractJourneyComponent {
23367
22892
  i0.ɵɵpipe(17, "rpxTranslate");
23368
22893
  i0.ɵɵelementEnd()()();
23369
22894
  i0.ɵɵelementContainerEnd();
22895
+ i0.ɵɵelementStart(18, "div", 12)(19, "button", 13);
22896
+ i0.ɵɵlistener("click", function AddCommentsComponent_Template_button_click_19_listener() { return ctx.onNext(); });
22897
+ i0.ɵɵtext(20);
22898
+ i0.ɵɵpipe(21, "rpxTranslate");
22899
+ i0.ɵɵelementEnd()();
23370
22900
  } if (rf & 2) {
23371
22901
  i0.ɵɵproperty("formGroup", ctx.formGroup);
23372
22902
  i0.ɵɵadvance(2);
23373
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(19, _c0$s, ctx.errorMessages.length > 0));
22903
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(22, _c0$s, ctx.errorMessages.length > 0));
23374
22904
  i0.ɵɵadvance(2);
23375
22905
  i0.ɵɵproperty("for", ctx.flagCommentsControlName);
23376
22906
  i0.ɵɵadvance();
23377
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 13, ctx.addCommentsTitle), "");
22907
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 14, ctx.addCommentsTitle), "");
23378
22908
  i0.ɵɵadvance(2);
23379
22909
  i0.ɵɵproperty("ngIf", ctx.optional);
23380
22910
  i0.ɵɵadvance(2);
23381
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 15, ctx.addCommentsHint), " ");
22911
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 16, ctx.addCommentsHint), " ");
23382
22912
  i0.ɵɵadvance(2);
23383
22913
  i0.ɵɵproperty("ngIf", !ctx.isDisplayContextParameterExternal && ctx.isDisplayContextParameter2Point1Enabled && !ctx.otherInternalFlagTypeSelected);
23384
22914
  i0.ɵɵadvance();
@@ -23388,12 +22918,14 @@ class AddCommentsComponent extends AbstractJourneyComponent {
23388
22918
  i0.ɵɵadvance();
23389
22919
  i0.ɵɵproperty("id", ctx.flagCommentsControlName)("name", ctx.flagCommentsControlName)("formControlName", ctx.flagCommentsControlName);
23390
22920
  i0.ɵɵadvance(2);
23391
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 17, ctx.addCommentsStepEnum.CHARACTER_LIMIT_INFO), " ");
22921
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 18, ctx.addCommentsStepEnum.CHARACTER_LIMIT_INFO), " ");
22922
+ i0.ɵɵadvance(4);
22923
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(21, 20, "Next"));
23392
22924
  } }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
23393
22925
  }
23394
22926
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddCommentsComponent, [{
23395
22927
  type: Component,
23396
- args: [{ selector: 'ccd-add-comments', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <h1 class=\"govuk-label-wrapper\"><label class=\"govuk-label govuk-label--m\" [for]=\"flagCommentsControlName\">\n {{addCommentsTitle | rpxTranslate}}<span *ngIf=\"optional\"> ({{'optional' | rpxTranslate}})</span>\n </label>\n </h1>\n <div id=\"add-comments-hint\" class=\"govuk-hint\">\n {{addCommentsHint | rpxTranslate}}\n </div>\n <div class=\"govuk-warning-text\"\n *ngIf=\"!isDisplayContextParameterExternal && isDisplayContextParameter2Point1Enabled && !otherInternalFlagTypeSelected\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{addCommentsStepEnum.WARNING_TEXT | rpxTranslate}}\n </strong>\n </div>\n <div id=\"flag-comments-not-entered-error-message\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"add-comments-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\" [id]=\"flagCommentsControlName\"\n [name]=\"flagCommentsControlName\" [formControlName]=\"flagCommentsControlName\" rows=\"5\"\n aria-describedby=\"add-comments-hint add-comments-char-limit-info add-comments-char-limit-error\"></textarea>\n <div id=\"add-comments-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{addCommentsStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n </div>\n</ng-container>" }]
22928
+ args: [{ selector: 'ccd-add-comments', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <h1 class=\"govuk-label-wrapper\"><label class=\"govuk-label govuk-label--m\" [for]=\"flagCommentsControlName\">\n {{addCommentsTitle | rpxTranslate}}<span *ngIf=\"optional\"> ({{'optional' | rpxTranslate}})</span>\n </label>\n </h1>\n <div id=\"add-comments-hint\" class=\"govuk-hint\">\n {{addCommentsHint | rpxTranslate}}\n </div>\n <div class=\"govuk-warning-text\"\n *ngIf=\"!isDisplayContextParameterExternal && isDisplayContextParameter2Point1Enabled && !otherInternalFlagTypeSelected\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{addCommentsStepEnum.WARNING_TEXT | rpxTranslate}}\n </strong>\n </div>\n <div id=\"flag-comments-not-entered-error-message\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"add-comments-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\" [id]=\"flagCommentsControlName\"\n [name]=\"flagCommentsControlName\" [formControlName]=\"flagCommentsControlName\" rows=\"5\"\n aria-describedby=\"add-comments-hint add-comments-char-limit-info add-comments-char-limit-error\"></textarea>\n <div id=\"add-comments-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{addCommentsStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n </div>\n</ng-container>\n\n<div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n" }]
23397
22929
  }], null, { formGroup: [{
23398
22930
  type: Input
23399
22931
  }], optional: [{
@@ -23405,7 +22937,7 @@ class AddCommentsComponent extends AbstractJourneyComponent {
23405
22937
  }], caseFlagStateEmitter: [{
23406
22938
  type: Output
23407
22939
  }] }); })();
23408
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AddCommentsComponent, { className: "AddCommentsComponent", filePath: "lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.ts", lineNumber: 12 }); })();
22940
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AddCommentsComponent, { className: "AddCommentsComponent", filePath: "lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.ts", lineNumber: 11 }); })();
23409
22941
 
23410
22942
  function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1) {
23411
22943
  const _r3 = i0.ɵɵgetCurrentView();
@@ -23907,7 +23439,7 @@ class CaseFlagTableComponent {
23907
23439
 
23908
23440
  const _c0$r = a0 => ({ "form-group-error": a0 });
23909
23441
  function ManageCaseFlagsComponent_div_7_Template(rf, ctx) { if (rf & 1) {
23910
- i0.ɵɵelementStart(0, "div", 8)(1, "span", 9);
23442
+ i0.ɵɵelementStart(0, "div", 9)(1, "span", 10);
23911
23443
  i0.ɵɵtext(2);
23912
23444
  i0.ɵɵpipe(3, "rpxTranslate");
23913
23445
  i0.ɵɵelementEnd();
@@ -23922,8 +23454,8 @@ function ManageCaseFlagsComponent_div_7_Template(rf, ctx) { if (rf & 1) {
23922
23454
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.manageCaseFlagSelectedErrorMessage), " ");
23923
23455
  } }
23924
23456
  function ManageCaseFlagsComponent_div_9_Template(rf, ctx) { if (rf & 1) {
23925
- i0.ɵɵelementStart(0, "div", 10);
23926
- i0.ɵɵelement(1, "input", 11)(2, "label", 12);
23457
+ i0.ɵɵelementStart(0, "div", 11);
23458
+ i0.ɵɵelement(1, "input", 12)(2, "label", 13);
23927
23459
  i0.ɵɵpipe(3, "manageCaseFlagsLabelDisplay");
23928
23460
  i0.ɵɵelementEnd();
23929
23461
  } if (rf & 2) {
@@ -23937,7 +23469,18 @@ function ManageCaseFlagsComponent_div_9_Template(rf, ctx) { if (rf & 1) {
23937
23469
  i0.ɵɵpropertyInterpolate1("for", "flag-selection-", i_r3, "");
23938
23470
  i0.ɵɵproperty("innerHtml", i0.ɵɵpipeBind1(3, 8, flagDisplay_r2), i0.ɵɵsanitizeHtml);
23939
23471
  } }
23940
- class ManageCaseFlagsComponent extends AbstractJourneyComponent {
23472
+ function ManageCaseFlagsComponent_div_10_Template(rf, ctx) { if (rf & 1) {
23473
+ const _r4 = i0.ɵɵgetCurrentView();
23474
+ i0.ɵɵelementStart(0, "div", 14)(1, "button", 15);
23475
+ i0.ɵɵlistener("click", function ManageCaseFlagsComponent_div_10_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onNext()); });
23476
+ i0.ɵɵtext(2);
23477
+ i0.ɵɵpipe(3, "rpxTranslate");
23478
+ i0.ɵɵelementEnd()();
23479
+ } if (rf & 2) {
23480
+ i0.ɵɵadvance(2);
23481
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Next"));
23482
+ } }
23483
+ class ManageCaseFlagsComponent {
23941
23484
  formGroup;
23942
23485
  flagsData;
23943
23486
  caseTitle;
@@ -23953,12 +23496,6 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
23953
23496
  excludedFlagStatuses = [CaseFlagStatus.INACTIVE, CaseFlagStatus.NOT_APPROVED];
23954
23497
  ngOnInit() {
23955
23498
  this.manageCaseFlagTitle = this.setManageCaseFlagTitle(this.displayContextParameter);
23956
- let originalStatus;
23957
- // if the user has progressed to CYA and then navigated away, the flag they selected will be set as inactive, we need to reset this
23958
- if (this.formGroup.get('selectedManageCaseLocation')) {
23959
- const locationControl = this.formGroup.get('selectedManageCaseLocation');
23960
- originalStatus = locationControl.value?.originalStatus;
23961
- }
23962
23499
  // Map flags instances to objects for display, filtering out any where the original status is either "Inactive" or
23963
23500
  // "Not approved"
23964
23501
  /* istanbul ignore else */
@@ -23968,7 +23505,7 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
23968
23505
  if (flagsInstance.flags.details && flagsInstance.flags.details.length > 0) {
23969
23506
  displayData = [
23970
23507
  ...displayData,
23971
- ...flagsInstance.flags.details.map((detail) => this.mapFlagDetailForDisplay(detail, flagsInstance, originalStatus))
23508
+ ...flagsInstance.flags.details.map((detail) => this.mapFlagDetailForDisplay(detail, flagsInstance))
23972
23509
  ];
23973
23510
  }
23974
23511
  return displayData;
@@ -23984,7 +23521,7 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
23984
23521
  this.onNoFlagsError();
23985
23522
  }
23986
23523
  }
23987
- mapFlagDetailForDisplay(flagDetail, flagsInstance, originalStatusFromFG) {
23524
+ mapFlagDetailForDisplay(flagDetail, flagsInstance) {
23988
23525
  // Reset the flag status with the original persisted status. This is needed because ngOnInit() needs to filter
23989
23526
  // out any "Inactive" or "Not approved" flags based on their status *before* modification. If the user changes a
23990
23527
  // flag's status then decides to return to the start of the flag update journey, the flag's status would no
@@ -24007,9 +23544,8 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
24007
23544
  }
24008
23545
  if (formattedValue && FieldsUtils.isNonEmptyObject(formattedValue)) {
24009
23546
  const originalFlagDetail = formattedValue.details?.find((detail) => detail.id === flagDetail.id);
24010
- const statusToUse = originalStatusFromFG ? (originalStatusFromFG === originalFlagDetail.value?.status ? originalFlagDetail.value?.status : originalStatusFromFG) : originalFlagDetail.value?.status;
24011
23547
  if (originalFlagDetail) {
24012
- originalStatus = statusToUse;
23548
+ originalStatus = originalFlagDetail.value?.status;
24013
23549
  flagDetail.flagComment = originalFlagDetail.value?.flagComment;
24014
23550
  flagDetail.flagComment_cy = originalFlagDetail.value?.flagComment_cy;
24015
23551
  flagDetail.otherDescription = originalFlagDetail.value?.otherDescription;
@@ -24078,14 +23614,8 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
24078
23614
  errorMessages: this.errorMessages
24079
23615
  });
24080
23616
  }
24081
- next() {
24082
- this.onNext();
24083
- if (this.errorMessages.length === 0) {
24084
- super.next();
24085
- }
24086
- }
24087
- static ɵfac = /*@__PURE__*/ (() => { let ɵManageCaseFlagsComponent_BaseFactory; return function ManageCaseFlagsComponent_Factory(t) { return (ɵManageCaseFlagsComponent_BaseFactory || (ɵManageCaseFlagsComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ManageCaseFlagsComponent)))(t || ManageCaseFlagsComponent); }; })();
24088
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ManageCaseFlagsComponent, selectors: [["ccd-manage-case-flags"]], inputs: { formGroup: "formGroup", flagsData: "flagsData", caseTitle: "caseTitle", displayContextParameter: "displayContextParameter" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 9, consts: [[3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "manage-case-flag-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "manage-case-flag-heading", 1, "govuk-fieldset__heading"], ["id", "manage-case-flag-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"], ["id", "manage-case-flag-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", "innerHtml"]], template: function ManageCaseFlagsComponent_Template(rf, ctx) { if (rf & 1) {
23617
+ static ɵfac = function ManageCaseFlagsComponent_Factory(t) { return new (t || ManageCaseFlagsComponent)(); };
23618
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ManageCaseFlagsComponent, selectors: [["ccd-manage-case-flags"]], inputs: { formGroup: "formGroup", flagsData: "flagsData", caseTitle: "caseTitle", displayContextParameter: "displayContextParameter" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 11, vars: 10, consts: [[3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "manage-case-flag-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "manage-case-flag-heading", 1, "govuk-fieldset__heading"], ["id", "manage-case-flag-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-button-group", 4, "ngIf"], ["id", "manage-case-flag-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", "innerHtml"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function ManageCaseFlagsComponent_Template(rf, ctx) { if (rf & 1) {
24089
23619
  i0.ɵɵelementContainerStart(0, 0);
24090
23620
  i0.ɵɵelementStart(1, "div", 1)(2, "fieldset", 2)(3, "legend", 3)(4, "h1", 4);
24091
23621
  i0.ɵɵtext(5);
@@ -24096,21 +23626,24 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
24096
23626
  i0.ɵɵtemplate(9, ManageCaseFlagsComponent_div_9_Template, 4, 10, "div", 7);
24097
23627
  i0.ɵɵelementEnd()()();
24098
23628
  i0.ɵɵelementContainerEnd();
23629
+ i0.ɵɵtemplate(10, ManageCaseFlagsComponent_div_10_Template, 4, 3, "div", 8);
24099
23630
  } if (rf & 2) {
24100
23631
  i0.ɵɵproperty("formGroup", ctx.formGroup);
24101
23632
  i0.ɵɵadvance();
24102
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$r, ctx.errorMessages.length > 0));
23633
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$r, ctx.errorMessages.length > 0));
24103
23634
  i0.ɵɵadvance(4);
24104
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 5, ctx.manageCaseFlagTitle), " ");
23635
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx.manageCaseFlagTitle), " ");
24105
23636
  i0.ɵɵadvance(2);
24106
23637
  i0.ɵɵproperty("ngIf", ctx.manageCaseFlagSelectedErrorMessage);
24107
23638
  i0.ɵɵadvance(2);
24108
23639
  i0.ɵɵproperty("ngForOf", ctx.flagsDisplayData);
23640
+ i0.ɵɵadvance();
23641
+ i0.ɵɵproperty("ngIf", !ctx.noFlagsError);
24109
23642
  } }, styles: [".flag-name-and-description{font-weight:700}\n"], encapsulation: 2 });
24110
23643
  }
24111
23644
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ManageCaseFlagsComponent, [{
24112
23645
  type: Component,
24113
- args: [{ selector: 'ccd-manage-case-flags', encapsulation: ViewEncapsulation.None, template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"manage-case-flag-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 id=\"manage-case-flag-heading\" class=\"govuk-fieldset__heading\">\n {{manageCaseFlagTitle | rpxTranslate}}\n </h1>\n </legend>\n <div id=\"manage-case-flag-not-selected-error-message\" class=\"govuk-error-message\"\n *ngIf=\"manageCaseFlagSelectedErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{manageCaseFlagSelectedErrorMessage | rpxTranslate}}\n </div>\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\" id=\"conditional-radios-list\">\n <div class=\"govuk-radios__item\" *ngFor=\"let flagDisplay of flagsDisplayData; index as i\">\n <input class=\"govuk-radios__input\" id=\"flag-selection-{{i}}\" [name]=\"selectedControlName\"\n type=\"radio\" [value]=\"flagDisplay\" [formControlName]=\"selectedControlName\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"flag-selection-{{i}}\" [innerHtml]=\"flagDisplay | manageCaseFlagsLabelDisplay\"></label>\n </div>\n </div>\n </fieldset>\n </div>\n</ng-container>", styles: [".flag-name-and-description{font-weight:700}\n"] }]
23646
+ args: [{ selector: 'ccd-manage-case-flags', encapsulation: ViewEncapsulation.None, template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"manage-case-flag-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 id=\"manage-case-flag-heading\" class=\"govuk-fieldset__heading\">\n {{manageCaseFlagTitle | rpxTranslate}}\n </h1>\n </legend>\n <div id=\"manage-case-flag-not-selected-error-message\" class=\"govuk-error-message\"\n *ngIf=\"manageCaseFlagSelectedErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{manageCaseFlagSelectedErrorMessage | rpxTranslate}}\n </div>\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\" id=\"conditional-radios-list\">\n <div class=\"govuk-radios__item\" *ngFor=\"let flagDisplay of flagsDisplayData; index as i\">\n <input class=\"govuk-radios__input\" id=\"flag-selection-{{i}}\" [name]=\"selectedControlName\"\n type=\"radio\" [value]=\"flagDisplay\" [formControlName]=\"selectedControlName\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"flag-selection-{{i}}\" [innerHtml]=\"flagDisplay | manageCaseFlagsLabelDisplay\"></label>\n </div>\n </div>\n </fieldset>\n </div>\n</ng-container>\n\n<div class=\"govuk-button-group\" *ngIf=\"!noFlagsError\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n", styles: [".flag-name-and-description{font-weight:700}\n"] }]
24114
23647
  }], null, { formGroup: [{
24115
23648
  type: Input
24116
23649
  }], flagsData: [{
@@ -24122,7 +23655,7 @@ class ManageCaseFlagsComponent extends AbstractJourneyComponent {
24122
23655
  }], caseFlagStateEmitter: [{
24123
23656
  type: Output
24124
23657
  }] }); })();
24125
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ManageCaseFlagsComponent, { className: "ManageCaseFlagsComponent", filePath: "lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.ts", lineNumber: 15 }); })();
23658
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ManageCaseFlagsComponent, { className: "ManageCaseFlagsComponent", filePath: "lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.ts", lineNumber: 14 }); })();
24126
23659
 
24127
23660
  // tslint:disable:variable-name
24128
23661
  /**
@@ -24187,7 +23720,7 @@ var SearchLanguageInterpreterControlNames;
24187
23720
 
24188
23721
  const _c0$q = a0 => ({ "form-group-error": a0 });
24189
23722
  function SearchLanguageInterpreterComponent_div_10_Template(rf, ctx) { if (rf & 1) {
24190
- i0.ɵɵelementStart(0, "div", 18)(1, "span", 19);
23723
+ i0.ɵɵelementStart(0, "div", 20)(1, "span", 21);
24191
23724
  i0.ɵɵtext(2);
24192
23725
  i0.ɵɵpipe(3, "rpxTranslate");
24193
23726
  i0.ɵɵelementEnd();
@@ -24202,7 +23735,7 @@ function SearchLanguageInterpreterComponent_div_10_Template(rf, ctx) { if (rf &
24202
23735
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageNotSelectedErrorMessage), " ");
24203
23736
  } }
24204
23737
  function SearchLanguageInterpreterComponent_div_11_Template(rf, ctx) { if (rf & 1) {
24205
- i0.ɵɵelementStart(0, "div", 20)(1, "span", 19);
23738
+ i0.ɵɵelementStart(0, "div", 22)(1, "span", 21);
24206
23739
  i0.ɵɵtext(2);
24207
23740
  i0.ɵɵpipe(3, "rpxTranslate");
24208
23741
  i0.ɵɵelementEnd();
@@ -24217,7 +23750,7 @@ function SearchLanguageInterpreterComponent_div_11_Template(rf, ctx) { if (rf &
24217
23750
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageEnteredInBothFieldsErrorMessage), " ");
24218
23751
  } }
24219
23752
  function SearchLanguageInterpreterComponent_mat_option_15_Template(rf, ctx) { if (rf & 1) {
24220
- i0.ɵɵelementStart(0, "mat-option", 21);
23753
+ i0.ɵɵelementStart(0, "mat-option", 23);
24221
23754
  i0.ɵɵtext(1);
24222
23755
  i0.ɵɵpipe(2, "languageInterpreterDisplay");
24223
23756
  i0.ɵɵelementEnd();
@@ -24228,7 +23761,7 @@ function SearchLanguageInterpreterComponent_mat_option_15_Template(rf, ctx) { if
24228
23761
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, language_r3), " ");
24229
23762
  } }
24230
23763
  function SearchLanguageInterpreterComponent_mat_option_17_Template(rf, ctx) { if (rf & 1) {
24231
- i0.ɵɵelementStart(0, "mat-option", 22);
23764
+ i0.ɵɵelementStart(0, "mat-option", 24);
24232
23765
  i0.ɵɵtext(1);
24233
23766
  i0.ɵɵpipe(2, "rpxTranslate");
24234
23767
  i0.ɵɵelementEnd();
@@ -24237,7 +23770,7 @@ function SearchLanguageInterpreterComponent_mat_option_17_Template(rf, ctx) { if
24237
23770
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "No results found"));
24238
23771
  } }
24239
23772
  function SearchLanguageInterpreterComponent_div_24_div_5_Template(rf, ctx) { if (rf & 1) {
24240
- i0.ɵɵelementStart(0, "div", 28)(1, "span", 19);
23773
+ i0.ɵɵelementStart(0, "div", 30)(1, "span", 21);
24241
23774
  i0.ɵɵtext(2);
24242
23775
  i0.ɵɵpipe(3, "rpxTranslate");
24243
23776
  i0.ɵɵelementEnd();
@@ -24252,7 +23785,7 @@ function SearchLanguageInterpreterComponent_div_24_div_5_Template(rf, ctx) { if
24252
23785
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageNotEnteredErrorMessage), " ");
24253
23786
  } }
24254
23787
  function SearchLanguageInterpreterComponent_div_24_div_6_Template(rf, ctx) { if (rf & 1) {
24255
- i0.ɵɵelementStart(0, "div", 29)(1, "span", 19);
23788
+ i0.ɵɵelementStart(0, "div", 31)(1, "span", 21);
24256
23789
  i0.ɵɵtext(2);
24257
23790
  i0.ɵɵpipe(3, "rpxTranslate");
24258
23791
  i0.ɵɵelementEnd();
@@ -24267,12 +23800,12 @@ function SearchLanguageInterpreterComponent_div_24_div_6_Template(rf, ctx) { if
24267
23800
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.languageCharLimitErrorMessage), " ");
24268
23801
  } }
24269
23802
  function SearchLanguageInterpreterComponent_div_24_Template(rf, ctx) { if (rf & 1) {
24270
- i0.ɵɵelementStart(0, "div", 23)(1, "div", 2)(2, "label", 24);
23803
+ i0.ɵɵelementStart(0, "div", 25)(1, "div", 2)(2, "label", 26);
24271
23804
  i0.ɵɵtext(3);
24272
23805
  i0.ɵɵpipe(4, "rpxTranslate");
24273
23806
  i0.ɵɵelementEnd();
24274
- i0.ɵɵtemplate(5, SearchLanguageInterpreterComponent_div_24_div_5_Template, 6, 6, "div", 25)(6, SearchLanguageInterpreterComponent_div_24_div_6_Template, 6, 6, "div", 26);
24275
- i0.ɵɵelement(7, "input", 27);
23807
+ i0.ɵɵtemplate(5, SearchLanguageInterpreterComponent_div_24_div_5_Template, 6, 6, "div", 27)(6, SearchLanguageInterpreterComponent_div_24_div_6_Template, 6, 6, "div", 28);
23808
+ i0.ɵɵelement(7, "input", 29);
24276
23809
  i0.ɵɵelementEnd()();
24277
23810
  } if (rf & 2) {
24278
23811
  const ctx_r1 = i0.ɵɵnextContext();
@@ -24287,7 +23820,7 @@ function SearchLanguageInterpreterComponent_div_24_Template(rf, ctx) { if (rf &
24287
23820
  i0.ɵɵadvance();
24288
23821
  i0.ɵɵproperty("name", ctx_r1.SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY)("formControlName", ctx_r1.SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY);
24289
23822
  } }
24290
- class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
23823
+ class SearchLanguageInterpreterComponent {
24291
23824
  rpxTranslationService;
24292
23825
  get searchLanguageInterpreterStep() {
24293
23826
  return SearchLanguageInterpreterStep;
@@ -24309,8 +23842,7 @@ class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
24309
23842
  noResults = false;
24310
23843
  languageMaxCharLimit = 80;
24311
23844
  signLanguageFlagCode = 'RA0042';
24312
- constructor(rpxTranslationService, multipageComponentStateService) {
24313
- super(multipageComponentStateService);
23845
+ constructor(rpxTranslationService) {
24314
23846
  this.rpxTranslationService = rpxTranslationService;
24315
23847
  }
24316
23848
  ngOnInit() {
@@ -24410,14 +23942,8 @@ class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
24410
23942
  !language.value && language.value_cy.toLowerCase().includes(searchTerm.toLowerCase(), 0))
24411
23943
  : [];
24412
23944
  }
24413
- next() {
24414
- this.onNext();
24415
- if (this.errorMessages.length === 0) {
24416
- super.next();
24417
- }
24418
- }
24419
- static ɵfac = function SearchLanguageInterpreterComponent_Factory(t) { return new (t || SearchLanguageInterpreterComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
24420
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchLanguageInterpreterComponent, selectors: [["ccd-search-language-interpreter"]], inputs: { formGroup: "formGroup", flagType: "flagType" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 25, vars: 25, consts: [["autoSearchLanguage", "matAutocomplete"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], [1, "govuk-label", "govuk-label--m", 3, "for"], ["id", "language-search-box-hint", 1, "govuk-hint"], [1, "auto-complete-container"], ["id", "language-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "language-entered-in-both-fields-error-message", "class", "govuk-error-message", 4, "ngIf"], ["aria-label", "Language search box", "matInput", "", "type", "text", 1, "govuk-input", "search-language__input", 3, "formControlName", "matAutocomplete"], ["autoActiveFirstOption", "", 1, "mat-autocomplete-panel-extend", 3, "displayWith"], [3, "value", 4, "ngFor", "ngForOf"], ["disabled", "", 4, "ngIf"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes", "govuk-checkboxes--small", "govuk-checkboxes--conditional"], [1, "govuk-radios__item"], ["id", "enter-language-manually", "name", "enter-language-manually", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change"], ["for", "enter-language-manually", 1, "govuk-label", "govuk-checkboxes__label"], ["class", "govuk-radios__conditional", 4, "ngIf"], ["id", "language-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "language-entered-in-both-fields-error-message", 1, "govuk-error-message"], [3, "value"], ["disabled", ""], [1, "govuk-radios__conditional"], ["for", "manual-language-entry", 1, "govuk-label"], ["id", "language-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "language-char-limit-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "manual-language-entry", "type", "text", 1, "govuk-input", "govuk-input--width-20", 3, "name", "formControlName"], ["id", "language-not-entered-error-message", 1, "govuk-error-message"], ["id", "language-char-limit-error-message", 1, "govuk-error-message"]], template: function SearchLanguageInterpreterComponent_Template(rf, ctx) { if (rf & 1) {
23945
+ static ɵfac = function SearchLanguageInterpreterComponent_Factory(t) { return new (t || SearchLanguageInterpreterComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService)); };
23946
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchLanguageInterpreterComponent, selectors: [["ccd-search-language-interpreter"]], inputs: { formGroup: "formGroup", flagType: "flagType" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 29, vars: 28, consts: [["autoSearchLanguage", "matAutocomplete"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], [1, "govuk-label", "govuk-label--m", 3, "for"], ["id", "language-search-box-hint", 1, "govuk-hint"], [1, "auto-complete-container"], ["id", "language-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "language-entered-in-both-fields-error-message", "class", "govuk-error-message", 4, "ngIf"], ["aria-label", "Language search box", "matInput", "", "type", "text", 1, "govuk-input", "search-language__input", 3, "formControlName", "matAutocomplete"], ["autoActiveFirstOption", "", 1, "mat-autocomplete-panel-extend", 3, "displayWith"], [3, "value", 4, "ngFor", "ngForOf"], ["disabled", "", 4, "ngIf"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes", "govuk-checkboxes--small", "govuk-checkboxes--conditional"], [1, "govuk-radios__item"], ["id", "enter-language-manually", "name", "enter-language-manually", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change"], ["for", "enter-language-manually", 1, "govuk-label", "govuk-checkboxes__label"], ["class", "govuk-radios__conditional", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], ["id", "language-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "language-entered-in-both-fields-error-message", 1, "govuk-error-message"], [3, "value"], ["disabled", ""], [1, "govuk-radios__conditional"], ["for", "manual-language-entry", 1, "govuk-label"], ["id", "language-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "language-char-limit-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "manual-language-entry", "type", "text", 1, "govuk-input", "govuk-input--width-20", 3, "name", "formControlName"], ["id", "language-not-entered-error-message", 1, "govuk-error-message"], ["id", "language-char-limit-error-message", 1, "govuk-error-message"]], template: function SearchLanguageInterpreterComponent_Template(rf, ctx) { if (rf & 1) {
24421
23947
  const _r1 = i0.ɵɵgetCurrentView();
24422
23948
  i0.ɵɵelementContainerStart(0, 1);
24423
23949
  i0.ɵɵelementStart(1, "div", 2)(2, "h1", 3)(3, "label", 4);
@@ -24446,17 +23972,22 @@ class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
24446
23972
  i0.ɵɵtemplate(24, SearchLanguageInterpreterComponent_div_24_Template, 8, 10, "div", 17);
24447
23973
  i0.ɵɵelementEnd()();
24448
23974
  i0.ɵɵelementContainerEnd();
23975
+ i0.ɵɵelementStart(25, "div", 18)(26, "button", 19);
23976
+ i0.ɵɵlistener("click", function SearchLanguageInterpreterComponent_Template_button_click_26_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onNext()); });
23977
+ i0.ɵɵtext(27);
23978
+ i0.ɵɵpipe(28, "rpxTranslate");
23979
+ i0.ɵɵelementEnd()();
24449
23980
  } if (rf & 2) {
24450
23981
  const autoSearchLanguage_r4 = i0.ɵɵreference(14);
24451
23982
  i0.ɵɵproperty("formGroup", ctx.formGroup);
24452
23983
  i0.ɵɵadvance();
24453
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c0$q, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
23984
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(26, _c0$q, ctx.languageNotSelectedErrorMessage || ctx.languageEnteredInBothFieldsErrorMessage));
24454
23985
  i0.ɵɵadvance(2);
24455
23986
  i0.ɵɵproperty("for", ctx.SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM);
24456
23987
  i0.ɵɵadvance();
24457
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(5, 14, ctx.flagType, "name"), " ");
23988
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(5, 15, ctx.flagType, "name"), " ");
24458
23989
  i0.ɵɵadvance(3);
24459
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 17, ctx.searchLanguageInterpreterHint), " ");
23990
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 18, ctx.searchLanguageInterpreterHint), " ");
24460
23991
  i0.ɵɵadvance(3);
24461
23992
  i0.ɵɵproperty("ngIf", ctx.languageNotSelectedErrorMessage);
24462
23993
  i0.ɵɵadvance();
@@ -24466,30 +23997,32 @@ class SearchLanguageInterpreterComponent extends AbstractJourneyComponent {
24466
23997
  i0.ɵɵadvance();
24467
23998
  i0.ɵɵproperty("displayWith", ctx.displayLanguage);
24468
23999
  i0.ɵɵadvance(2);
24469
- i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(16, 19, ctx.filteredLanguages$));
24000
+ i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(16, 20, ctx.filteredLanguages$));
24470
24001
  i0.ɵɵadvance(2);
24471
24002
  i0.ɵɵproperty("ngIf", ctx.noResults && ctx.searchTerm && ctx.searchTerm.length >= ctx.minSearchCharacters);
24472
24003
  i0.ɵɵadvance(5);
24473
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23, 21, ctx.searchLanguageInterpreterStep.CHECKBOX_LABEL), " ");
24004
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23, 22, ctx.searchLanguageInterpreterStep.CHECKBOX_LABEL), " ");
24474
24005
  i0.ɵɵadvance(2);
24475
24006
  i0.ɵɵproperty("ngIf", ctx.isCheckboxEnabled);
24007
+ i0.ɵɵadvance(3);
24008
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(28, 24, "Next"));
24476
24009
  } }, 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:#00000042 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline[_ngcontent-%COMP%]{position:relative}.autocomplete__option[_ngcontent-%COMP%]{border-bottom:solid #b1b4b6;border-width:1px 0;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}"] });
24477
24010
  }
24478
24011
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchLanguageInterpreterComponent, [{
24479
24012
  type: Component,
24480
- args: [{ selector: 'ccd-search-language-interpreter', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': languageNotSelectedErrorMessage || languageEnteredInBothFieldsErrorMessage}\">\n <h1 class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m\" [for]=\"SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM\">\n {{flagType | flagFieldDisplay:'name'}}\n </label>\n </h1>\n <div id=\"language-search-box-hint\" class=\"govuk-hint\">\n {{searchLanguageInterpreterHint | rpxTranslate}}\n </div>\n <div class=\"auto-complete-container\">\n <div id=\"language-not-selected-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageNotSelectedErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{languageNotSelectedErrorMessage | rpxTranslate}}\n </div>\n <div id=\"language-entered-in-both-fields-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageEnteredInBothFieldsErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{languageEnteredInBothFieldsErrorMessage | rpxTranslate}}\n </div>\n <input aria-label=\"Language search box\" matInput [formControlName]=\"SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM\" [matAutocomplete]=\"autoSearchLanguage\"\n class=\"govuk-input search-language__input\" type=\"text\">\n <mat-autocomplete class=\"mat-autocomplete-panel-extend\" autoActiveFirstOption #autoSearchLanguage=\"matAutocomplete\"\n [displayWith]=\"displayLanguage\">\n <mat-option *ngFor=\"let language of filteredLanguages$ | async\" [value]=\"language\">\n {{language | languageInterpreterDisplay}}\n </mat-option>\n <mat-option *ngIf=\"noResults && searchTerm && searchTerm.length >= minSearchCharacters\" disabled>{{'No results found' | rpxTranslate}}</mat-option>\n </mat-autocomplete>\n </div>\n <div class=\"govuk-checkboxes govuk-checkboxes--small govuk-checkboxes--conditional\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-checkboxes__input\" id=\"enter-language-manually\" name=\"enter-language-manually\" type=\"checkbox\"\n (change)=\"onEnterLanguageManually($event)\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"enter-language-manually\">\n {{searchLanguageInterpreterStep.CHECKBOX_LABEL | rpxTranslate}}\n </label>\n </div>\n <div class=\"govuk-radios__conditional\" *ngIf=\"isCheckboxEnabled\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': languageNotEnteredErrorMessage || languageCharLimitErrorMessage }\">\n <label class=\"govuk-label\" for=\"manual-language-entry\">{{searchLanguageInterpreterStep.INPUT_LABEL | rpxTranslate}}</label>\n <div id=\"language-not-entered-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{languageNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"language-char-limit-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{languageCharLimitErrorMessage | rpxTranslate}}\n </div>\n <input class=\"govuk-input govuk-input--width-20\" id=\"manual-language-entry\" [name]=\"SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY\" type=\"text\"\n [formControlName]=\"SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY\">\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n", styles: [".autocomplete__input--show-all-values{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu{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{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{box-shadow:#00000042 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-bottom:solid #b1b4b6;border-width:1px 0;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#fafafa}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.25}.autocomplete__hint,.autocomplete__option{padding:5px}@media (min-width: 641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.31579}}.div-action{display:inline-block}.add-location{display:inline}.remove-location-button{margin:5px}.hide-autocomplete{display:none}.auto-complete-container{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input{line-height:24px;font-size:19px}.hidden{display:none}.search-language__input{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}\n"] }]
24481
- }], () => [{ type: i1.RpxTranslationService }, { type: MultipageComponentStateService }], { formGroup: [{
24013
+ args: [{ selector: 'ccd-search-language-interpreter', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': languageNotSelectedErrorMessage || languageEnteredInBothFieldsErrorMessage}\">\n <h1 class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m\" [for]=\"SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM\">\n {{flagType | flagFieldDisplay:'name'}}\n </label>\n </h1>\n <div id=\"language-search-box-hint\" class=\"govuk-hint\">\n {{searchLanguageInterpreterHint | rpxTranslate}}\n </div>\n <div class=\"auto-complete-container\">\n <div id=\"language-not-selected-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageNotSelectedErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{languageNotSelectedErrorMessage | rpxTranslate}}\n </div>\n <div id=\"language-entered-in-both-fields-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageEnteredInBothFieldsErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{languageEnteredInBothFieldsErrorMessage | rpxTranslate}}\n </div>\n <input aria-label=\"Language search box\" matInput [formControlName]=\"SearchLanguageInterpreterControlNames.LANGUAGE_SEARCH_TERM\" [matAutocomplete]=\"autoSearchLanguage\"\n class=\"govuk-input search-language__input\" type=\"text\">\n <mat-autocomplete class=\"mat-autocomplete-panel-extend\" autoActiveFirstOption #autoSearchLanguage=\"matAutocomplete\"\n [displayWith]=\"displayLanguage\">\n <mat-option *ngFor=\"let language of filteredLanguages$ | async\" [value]=\"language\">\n {{language | languageInterpreterDisplay}}\n </mat-option>\n <mat-option *ngIf=\"noResults && searchTerm && searchTerm.length >= minSearchCharacters\" disabled>{{'No results found' | rpxTranslate}}</mat-option>\n </mat-autocomplete>\n </div>\n <div class=\"govuk-checkboxes govuk-checkboxes--small govuk-checkboxes--conditional\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-checkboxes__input\" id=\"enter-language-manually\" name=\"enter-language-manually\" type=\"checkbox\"\n (change)=\"onEnterLanguageManually($event)\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"enter-language-manually\">\n {{searchLanguageInterpreterStep.CHECKBOX_LABEL | rpxTranslate}}\n </label>\n </div>\n <div class=\"govuk-radios__conditional\" *ngIf=\"isCheckboxEnabled\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': languageNotEnteredErrorMessage || languageCharLimitErrorMessage }\">\n <label class=\"govuk-label\" for=\"manual-language-entry\">{{searchLanguageInterpreterStep.INPUT_LABEL | rpxTranslate}}</label>\n <div id=\"language-not-entered-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{languageNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"language-char-limit-error-message\" class=\"govuk-error-message\"\n *ngIf=\"languageCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{languageCharLimitErrorMessage | rpxTranslate}}\n </div>\n <input class=\"govuk-input govuk-input--width-20\" id=\"manual-language-entry\" [name]=\"SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY\" type=\"text\"\n [formControlName]=\"SearchLanguageInterpreterControlNames.MANUAL_LANGUAGE_ENTRY\">\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n\n<div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n", styles: [".autocomplete__input--show-all-values{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu{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{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{box-shadow:#00000042 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-bottom:solid #b1b4b6;border-width:1px 0;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#fafafa}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.25}.autocomplete__hint,.autocomplete__option{padding:5px}@media (min-width: 641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:13px;line-height:1.31579}}.div-action{display:inline-block}.add-location{display:inline}.remove-location-button{margin:5px}.hide-autocomplete{display:none}.auto-complete-container{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input{line-height:24px;font-size:19px}.hidden{display:none}.search-language__input{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}\n"] }]
24014
+ }], () => [{ type: i1.RpxTranslationService }], { formGroup: [{
24482
24015
  type: Input
24483
24016
  }], flagType: [{
24484
24017
  type: Input
24485
24018
  }], caseFlagStateEmitter: [{
24486
24019
  type: Output
24487
24020
  }] }); })();
24488
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SearchLanguageInterpreterComponent, { className: "SearchLanguageInterpreterComponent", filePath: "lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.ts", lineNumber: 20 }); })();
24021
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SearchLanguageInterpreterComponent, { className: "SearchLanguageInterpreterComponent", filePath: "lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.ts", lineNumber: 17 }); })();
24489
24022
 
24490
24023
  const _c0$p = a0 => ({ "form-group-error": a0 });
24491
24024
  function SelectFlagLocationComponent_div_7_Template(rf, ctx) { if (rf & 1) {
24492
- i0.ɵɵelementStart(0, "div", 8)(1, "span", 9);
24025
+ i0.ɵɵelementStart(0, "div", 9)(1, "span", 10);
24493
24026
  i0.ɵɵtext(2);
24494
24027
  i0.ɵɵpipe(3, "rpxTranslate");
24495
24028
  i0.ɵɵelementEnd();
@@ -24516,7 +24049,7 @@ function SelectFlagLocationComponent_div_9_ng_container_3_ng_container_2_Templat
24516
24049
  function SelectFlagLocationComponent_div_9_ng_container_3_Template(rf, ctx) { if (rf & 1) {
24517
24050
  i0.ɵɵelementContainerStart(0);
24518
24051
  i0.ɵɵtext(1);
24519
- i0.ɵɵtemplate(2, SelectFlagLocationComponent_div_9_ng_container_3_ng_container_2_Template, 3, 3, "ng-container", 13);
24052
+ i0.ɵɵtemplate(2, SelectFlagLocationComponent_div_9_ng_container_3_ng_container_2_Template, 3, 3, "ng-container", 14);
24520
24053
  i0.ɵɵelementContainerEnd();
24521
24054
  } if (rf & 2) {
24522
24055
  const flagsInstance_r2 = i0.ɵɵnextContext().$implicit;
@@ -24536,10 +24069,10 @@ function SelectFlagLocationComponent_div_9_ng_container_4_Template(rf, ctx) { if
24536
24069
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r0.caseLevelFlagLabel), " ");
24537
24070
  } }
24538
24071
  function SelectFlagLocationComponent_div_9_Template(rf, ctx) { if (rf & 1) {
24539
- i0.ɵɵelementStart(0, "div", 10);
24540
- i0.ɵɵelement(1, "input", 11);
24541
- i0.ɵɵelementStart(2, "label", 12);
24542
- i0.ɵɵtemplate(3, SelectFlagLocationComponent_div_9_ng_container_3_Template, 3, 2, "ng-container", 13)(4, SelectFlagLocationComponent_div_9_ng_container_4_Template, 3, 3, "ng-container", 13);
24072
+ i0.ɵɵelementStart(0, "div", 11);
24073
+ i0.ɵɵelement(1, "input", 12);
24074
+ i0.ɵɵelementStart(2, "label", 13);
24075
+ i0.ɵɵtemplate(3, SelectFlagLocationComponent_div_9_ng_container_3_Template, 3, 2, "ng-container", 14)(4, SelectFlagLocationComponent_div_9_ng_container_4_Template, 3, 3, "ng-container", 14);
24543
24076
  i0.ɵɵelementEnd()();
24544
24077
  } if (rf & 2) {
24545
24078
  const flagsInstance_r2 = ctx.$implicit;
@@ -24555,7 +24088,18 @@ function SelectFlagLocationComponent_div_9_Template(rf, ctx) { if (rf & 1) {
24555
24088
  i0.ɵɵadvance();
24556
24089
  i0.ɵɵproperty("ngIf", !flagsInstance_r2.flags.partyName);
24557
24090
  } }
24558
- class SelectFlagLocationComponent extends AbstractJourneyComponent {
24091
+ function SelectFlagLocationComponent_div_10_Template(rf, ctx) { if (rf & 1) {
24092
+ const _r4 = i0.ɵɵgetCurrentView();
24093
+ i0.ɵɵelementStart(0, "div", 15)(1, "button", 16);
24094
+ i0.ɵɵlistener("click", function SelectFlagLocationComponent_div_10_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onNext()); });
24095
+ i0.ɵɵtext(2);
24096
+ i0.ɵɵpipe(3, "rpxTranslate");
24097
+ i0.ɵɵelementEnd()();
24098
+ } if (rf & 2) {
24099
+ i0.ɵɵadvance(2);
24100
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Next"));
24101
+ } }
24102
+ class SelectFlagLocationComponent {
24559
24103
  formGroup;
24560
24104
  flagsData;
24561
24105
  isDisplayContextParameterExternal = false;
@@ -24630,14 +24174,8 @@ class SelectFlagLocationComponent extends AbstractJourneyComponent {
24630
24174
  // Return case flag field state and error messages to the parent
24631
24175
  this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: CaseFlagFieldState.FLAG_TYPE, errorMessages: this.errorMessages });
24632
24176
  }
24633
- next() {
24634
- this.onNext();
24635
- if (this.errorMessages.length === 0) {
24636
- super.next();
24637
- }
24638
- }
24639
- static ɵfac = /*@__PURE__*/ (() => { let ɵSelectFlagLocationComponent_BaseFactory; return function SelectFlagLocationComponent_Factory(t) { return (ɵSelectFlagLocationComponent_BaseFactory || (ɵSelectFlagLocationComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SelectFlagLocationComponent)))(t || SelectFlagLocationComponent); }; })();
24640
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectFlagLocationComponent, selectors: [["ccd-select-flag-location"]], inputs: { formGroup: "formGroup", flagsData: "flagsData", isDisplayContextParameterExternal: "isDisplayContextParameterExternal" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 9, consts: [[3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-location-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "flag-location-heading", 1, "govuk-fieldset__heading"], ["id", "flag-location-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"], ["id", "flag-location-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"], [4, "ngIf"]], template: function SelectFlagLocationComponent_Template(rf, ctx) { if (rf & 1) {
24177
+ static ɵfac = function SelectFlagLocationComponent_Factory(t) { return new (t || SelectFlagLocationComponent)(); };
24178
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectFlagLocationComponent, selectors: [["ccd-select-flag-location"]], inputs: { formGroup: "formGroup", flagsData: "flagsData", isDisplayContextParameterExternal: "isDisplayContextParameterExternal" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 11, vars: 10, consts: [[3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-location-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "flag-location-heading", 1, "govuk-fieldset__heading"], ["id", "flag-location-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-button-group", 4, "ngIf"], ["id", "flag-location-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"], [4, "ngIf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagLocationComponent_Template(rf, ctx) { if (rf & 1) {
24641
24179
  i0.ɵɵelementContainerStart(0, 0);
24642
24180
  i0.ɵɵelementStart(1, "div", 1)(2, "fieldset", 2)(3, "legend", 3)(4, "h1", 4);
24643
24181
  i0.ɵɵtext(5);
@@ -24648,21 +24186,24 @@ class SelectFlagLocationComponent extends AbstractJourneyComponent {
24648
24186
  i0.ɵɵtemplate(9, SelectFlagLocationComponent_div_9_Template, 5, 9, "div", 7);
24649
24187
  i0.ɵɵelementEnd()()();
24650
24188
  i0.ɵɵelementContainerEnd();
24189
+ i0.ɵɵtemplate(10, SelectFlagLocationComponent_div_10_Template, 4, 3, "div", 8);
24651
24190
  } if (rf & 2) {
24652
24191
  i0.ɵɵproperty("formGroup", ctx.formGroup);
24653
24192
  i0.ɵɵadvance();
24654
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$p, ctx.errorMessages.length > 0));
24193
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$p, ctx.errorMessages.length > 0));
24655
24194
  i0.ɵɵadvance(4);
24656
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 5, ctx.flagLocationTitle), " ");
24195
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx.flagLocationTitle), " ");
24657
24196
  i0.ɵɵadvance(2);
24658
24197
  i0.ɵɵproperty("ngIf", ctx.flagLocationNotSelectedErrorMessage);
24659
24198
  i0.ɵɵadvance(2);
24660
24199
  i0.ɵɵproperty("ngForOf", ctx.filteredFlagsData);
24200
+ i0.ɵɵadvance();
24201
+ i0.ɵɵproperty("ngIf", !ctx.caseFlagsConfigError);
24661
24202
  } }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
24662
24203
  }
24663
24204
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectFlagLocationComponent, [{
24664
24205
  type: Component,
24665
- args: [{ selector: 'ccd-select-flag-location', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"flag-location-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 id=\"flag-location-heading\" class=\"govuk-fieldset__heading\">\n {{flagLocationTitle | rpxTranslate}}\n </h1>\n </legend>\n <div id=\"flag-location-not-selected-error-message\" class=\"govuk-error-message\"\n *ngIf=\"flagLocationNotSelectedErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagLocationNotSelectedErrorMessage | rpxTranslate}}\n </div>\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\" id=\"conditional-radios-list\">\n <div class=\"govuk-radios__item\" *ngFor=\"let flagsInstance of filteredFlagsData; index as i\">\n <input class=\"govuk-radios__input\" id=\"flag-location-{{i}}\" [name]=\"selectedLocationControlName\"\n type=\"radio\" [value]=\"flagsInstance\" [formControlName]=\"selectedLocationControlName\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"flag-location-{{i}}\">\n <ng-container *ngIf=\"flagsInstance.flags.partyName\">\n {{flagsInstance.flags.partyName}}\n <ng-container *ngIf=\"flagsInstance.flags.roleOnCase\">\n ({{flagsInstance.flags.roleOnCase | rpxTranslate}})\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!flagsInstance.flags.partyName\">\n {{caseLevelFlagLabel | rpxTranslate}}\n </ng-container>\n </label>\n </div>\n </div>\n </fieldset>\n </div>\n</ng-container>" }]
24206
+ args: [{ selector: 'ccd-select-flag-location', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"flag-location-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 id=\"flag-location-heading\" class=\"govuk-fieldset__heading\">\n {{flagLocationTitle | rpxTranslate}}\n </h1>\n </legend>\n <div id=\"flag-location-not-selected-error-message\" class=\"govuk-error-message\"\n *ngIf=\"flagLocationNotSelectedErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagLocationNotSelectedErrorMessage | rpxTranslate}}\n </div>\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\" id=\"conditional-radios-list\">\n <div class=\"govuk-radios__item\" *ngFor=\"let flagsInstance of filteredFlagsData; index as i\">\n <input class=\"govuk-radios__input\" id=\"flag-location-{{i}}\" [name]=\"selectedLocationControlName\"\n type=\"radio\" [value]=\"flagsInstance\" [formControlName]=\"selectedLocationControlName\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"flag-location-{{i}}\">\n <ng-container *ngIf=\"flagsInstance.flags.partyName\">\n {{flagsInstance.flags.partyName}}\n <ng-container *ngIf=\"flagsInstance.flags.roleOnCase\">\n ({{flagsInstance.flags.roleOnCase | rpxTranslate}})\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!flagsInstance.flags.partyName\">\n {{caseLevelFlagLabel | rpxTranslate}}\n </ng-container>\n </label>\n </div>\n </div>\n </fieldset>\n </div>\n</ng-container>\n\n<div class=\"govuk-button-group\" *ngIf=\"!caseFlagsConfigError\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n" }]
24666
24207
  }], null, { formGroup: [{
24667
24208
  type: Input
24668
24209
  }], flagsData: [{
@@ -24672,7 +24213,7 @@ class SelectFlagLocationComponent extends AbstractJourneyComponent {
24672
24213
  }], caseFlagStateEmitter: [{
24673
24214
  type: Output
24674
24215
  }] }); })();
24675
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectFlagLocationComponent, { className: "SelectFlagLocationComponent", filePath: "lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.ts", lineNumber: 12 }); })();
24216
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectFlagLocationComponent, { className: "SelectFlagLocationComponent", filePath: "lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.ts", lineNumber: 11 }); })();
24676
24217
 
24677
24218
  const _c0$o = a0 => ({ "form-group-error": a0 });
24678
24219
  const _c1$8 = a0 => ({ "govuk-input--error": a0 });
@@ -24695,7 +24236,7 @@ function SelectFlagTypeComponent_ng_container_0_ng_template_6_Template(rf, ctx)
24695
24236
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(1, 1, ctx_r0.cachedFlagType, "name"), " ");
24696
24237
  } }
24697
24238
  function SelectFlagTypeComponent_ng_container_0_div_8_Template(rf, ctx) { if (rf & 1) {
24698
- i0.ɵɵelementStart(0, "div", 12)(1, "span", 13);
24239
+ i0.ɵɵelementStart(0, "div", 13)(1, "span", 14);
24699
24240
  i0.ɵɵtext(2);
24700
24241
  i0.ɵɵpipe(3, "rpxTranslate");
24701
24242
  i0.ɵɵelementEnd();
@@ -24710,9 +24251,9 @@ function SelectFlagTypeComponent_ng_container_0_div_8_Template(rf, ctx) { if (rf
24710
24251
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagTypeNotSelectedErrorMessage), " ");
24711
24252
  } }
24712
24253
  function SelectFlagTypeComponent_ng_container_0_div_10_Template(rf, ctx) { if (rf & 1) {
24713
- i0.ɵɵelementStart(0, "div", 14);
24714
- i0.ɵɵelement(1, "input", 15);
24715
- i0.ɵɵelementStart(2, "label", 16);
24254
+ i0.ɵɵelementStart(0, "div", 15);
24255
+ i0.ɵɵelement(1, "input", 16);
24256
+ i0.ɵɵelementStart(2, "label", 17);
24716
24257
  i0.ɵɵtext(3);
24717
24258
  i0.ɵɵpipe(4, "flagFieldDisplay");
24718
24259
  i0.ɵɵelementEnd()();
@@ -24729,7 +24270,7 @@ function SelectFlagTypeComponent_ng_container_0_div_10_Template(rf, ctx) { if (r
24729
24270
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(4, 8, flagType_r2, "name"), " ");
24730
24271
  } }
24731
24272
  function SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template(rf, ctx) { if (rf & 1) {
24732
- i0.ɵɵelementStart(0, "div", 22)(1, "span", 13);
24273
+ i0.ɵɵelementStart(0, "div", 23)(1, "span", 14);
24733
24274
  i0.ɵɵtext(2);
24734
24275
  i0.ɵɵpipe(3, "rpxTranslate");
24735
24276
  i0.ɵɵelementEnd();
@@ -24744,9 +24285,9 @@ function SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template(rf, ctx) {
24744
24285
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagTypeErrorMessage), " ");
24745
24286
  } }
24746
24287
  function SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template(rf, ctx) { if (rf & 1) {
24747
- i0.ɵɵelementStart(0, "div", 23);
24748
- i0.ɵɵelement(1, "input", 24);
24749
- i0.ɵɵelementStart(2, "label", 25);
24288
+ i0.ɵɵelementStart(0, "div", 24);
24289
+ i0.ɵɵelement(1, "input", 25);
24290
+ i0.ɵɵelementStart(2, "label", 26);
24750
24291
  i0.ɵɵtext(3);
24751
24292
  i0.ɵɵpipe(4, "rpxTranslate");
24752
24293
  i0.ɵɵelementEnd()();
@@ -24758,14 +24299,14 @@ function SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template(rf, ctx) {
24758
24299
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, "This flag should only be visible to HMCTS Staff"), " ");
24759
24300
  } }
24760
24301
  function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) { if (rf & 1) {
24761
- i0.ɵɵelementStart(0, "div", 17)(1, "div", 3)(2, "label", 18);
24302
+ i0.ɵɵelementStart(0, "div", 18)(1, "div", 4)(2, "label", 19);
24762
24303
  i0.ɵɵtext(3);
24763
24304
  i0.ɵɵpipe(4, "rpxTranslate");
24764
24305
  i0.ɵɵpipe(5, "rpxTranslate");
24765
24306
  i0.ɵɵelementEnd();
24766
- i0.ɵɵtemplate(6, SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template, 6, 6, "div", 19);
24767
- i0.ɵɵelement(7, "input", 20);
24768
- i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template, 5, 5, "div", 21);
24307
+ i0.ɵɵtemplate(6, SelectFlagTypeComponent_ng_container_0_div_11_div_6_Template, 6, 6, "div", 20);
24308
+ i0.ɵɵelement(7, "input", 21);
24309
+ i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_11_div_8_Template, 5, 5, "div", 22);
24769
24310
  i0.ɵɵelementEnd()();
24770
24311
  } if (rf & 2) {
24771
24312
  const ctx_r0 = i0.ɵɵnextContext(2);
@@ -24781,13 +24322,13 @@ function SelectFlagTypeComponent_ng_container_0_div_11_Template(rf, ctx) { if (r
24781
24322
  i0.ɵɵproperty("ngIf", !ctx_r0.isDisplayContextParameterExternal && !ctx_r0.isCaseLevelFlag && ctx_r0.isDisplayContextParameter2Point1Enabled);
24782
24323
  } }
24783
24324
  function SelectFlagTypeComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
24784
- i0.ɵɵelementContainerStart(0, 2);
24785
- i0.ɵɵelementStart(1, "div", 3)(2, "fieldset", 4)(3, "legend", 5)(4, "h1", 6);
24786
- i0.ɵɵtemplate(5, SelectFlagTypeComponent_ng_container_0_ng_container_5_Template, 4, 5, "ng-container", 7)(6, SelectFlagTypeComponent_ng_container_0_ng_template_6_Template, 2, 4, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
24325
+ i0.ɵɵelementContainerStart(0, 3);
24326
+ i0.ɵɵelementStart(1, "div", 4)(2, "fieldset", 5)(3, "legend", 6)(4, "h1", 7);
24327
+ i0.ɵɵtemplate(5, SelectFlagTypeComponent_ng_container_0_ng_container_5_Template, 4, 5, "ng-container", 8)(6, SelectFlagTypeComponent_ng_container_0_ng_template_6_Template, 2, 4, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
24787
24328
  i0.ɵɵelementEnd()();
24788
- i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_8_Template, 6, 6, "div", 8);
24789
- i0.ɵɵelementStart(9, "div", 9);
24790
- i0.ɵɵtemplate(10, SelectFlagTypeComponent_ng_container_0_div_10_Template, 5, 11, "div", 10)(11, SelectFlagTypeComponent_ng_container_0_div_11_Template, 9, 15, "div", 11);
24329
+ i0.ɵɵtemplate(8, SelectFlagTypeComponent_ng_container_0_div_8_Template, 6, 6, "div", 9);
24330
+ i0.ɵɵelementStart(9, "div", 10);
24331
+ i0.ɵɵtemplate(10, SelectFlagTypeComponent_ng_container_0_div_10_Template, 5, 11, "div", 11)(11, SelectFlagTypeComponent_ng_container_0_div_11_Template, 9, 15, "div", 12);
24791
24332
  i0.ɵɵelementEnd()()();
24792
24333
  i0.ɵɵelementContainerEnd();
24793
24334
  } if (rf & 2) {
@@ -24797,7 +24338,7 @@ function SelectFlagTypeComponent_ng_container_0_Template(rf, ctx) { if (rf & 1)
24797
24338
  i0.ɵɵadvance();
24798
24339
  i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$o, ctx_r0.flagTypeNotSelectedErrorMessage.length > 0));
24799
24340
  i0.ɵɵadvance(4);
24800
- i0.ɵɵproperty("ngIf", !ctx_r0.cachedFlagType || ctx_r0.subJourneyIndex == 0)("ngIfElse", priorFlagTypeSelected_r4);
24341
+ i0.ɵɵproperty("ngIf", !ctx_r0.cachedFlagType)("ngIfElse", priorFlagTypeSelected_r4);
24801
24342
  i0.ɵɵadvance(3);
24802
24343
  i0.ɵɵproperty("ngIf", ctx_r0.flagTypeNotSelectedErrorMessage.length > 0);
24803
24344
  i0.ɵɵadvance(2);
@@ -24805,7 +24346,18 @@ function SelectFlagTypeComponent_ng_container_0_Template(rf, ctx) { if (rf & 1)
24805
24346
  i0.ɵɵadvance();
24806
24347
  i0.ɵɵproperty("ngIf", ctx_r0.otherFlagTypeSelected);
24807
24348
  } }
24808
- class SelectFlagTypeComponent extends AbstractJourneyComponent {
24349
+ function SelectFlagTypeComponent_div_1_Template(rf, ctx) { if (rf & 1) {
24350
+ const _r5 = i0.ɵɵgetCurrentView();
24351
+ i0.ɵɵelementStart(0, "div", 27)(1, "button", 28);
24352
+ i0.ɵɵlistener("click", function SelectFlagTypeComponent_div_1_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r5); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onNext()); });
24353
+ i0.ɵɵtext(2);
24354
+ i0.ɵɵpipe(3, "rpxTranslate");
24355
+ i0.ɵɵelementEnd()();
24356
+ } if (rf & 2) {
24357
+ i0.ɵɵadvance(2);
24358
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Next"));
24359
+ } }
24360
+ class SelectFlagTypeComponent {
24809
24361
  caseFlagRefdataService;
24810
24362
  formGroup;
24811
24363
  jurisdiction;
@@ -24827,8 +24379,6 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
24827
24379
  flagTypeControlChangesSubscription;
24828
24380
  caseFlagFormField = CaseFlagFormFields;
24829
24381
  isCaseLevelFlag = false;
24830
- cachedRDFlagTypes;
24831
- subJourneyIndex = 0;
24832
24382
  maxCharactersForOtherFlagType = 80;
24833
24383
  // Code for "Other" flag type as defined in Reference Data
24834
24384
  otherFlagTypeCode = 'OT0001';
@@ -24836,16 +24386,15 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
24836
24386
  get caseFlagWizardStepTitle() {
24837
24387
  return CaseFlagWizardStepTitle;
24838
24388
  }
24839
- constructor(caseFlagRefdataService, pageStateService) {
24840
- super(pageStateService);
24841
- this.caseFlagRefdataService = caseFlagRefdataService;
24842
- }
24843
24389
  get selectedFlagType() {
24844
24390
  return this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.value;
24845
24391
  }
24846
24392
  get otherFlagTypeSelected() {
24847
24393
  return this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.value?.flagCode === this.otherFlagTypeCode;
24848
24394
  }
24395
+ constructor(caseFlagRefdataService) {
24396
+ this.caseFlagRefdataService = caseFlagRefdataService;
24397
+ }
24849
24398
  ngOnInit() {
24850
24399
  this.isCaseLevelFlag = this.selectedFlagsLocation?.flags?.flagsCaseFieldId === this.caseLevelCaseFlagsFieldId;
24851
24400
  this.flagTypes = [];
@@ -24856,7 +24405,7 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
24856
24405
  this.formGroup.addControl(CaseFlagFormFields.IS_VISIBLE_INTERNALLY_ONLY, new FormControl(false));
24857
24406
  // Should clear descriptionControlName if flagTypeControlName is changed
24858
24407
  this.flagTypeControlChangesSubscription = this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.valueChanges
24859
- .subscribe((_) => {
24408
+ .subscribe(_ => {
24860
24409
  this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION)?.setValue('');
24861
24410
  this.cachedPath = [];
24862
24411
  // required to clear language interpreter
@@ -24870,8 +24419,8 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
24870
24419
  this.flagRefdata$ = this.caseFlagRefdataService
24871
24420
  .getCaseFlagsRefdata(this.hmctsServiceId, flagType, true, this.isDisplayContextParameterExternal)
24872
24421
  .subscribe({
24873
- next: (flagTypes) => this.processFlagTypes(flagTypes),
24874
- error: (error) => this.onRefdataError(error)
24422
+ next: flagTypes => this.processFlagTypes(flagTypes),
24423
+ error: error => this.onRefdataError(error)
24875
24424
  });
24876
24425
  }
24877
24426
  else {
@@ -24879,36 +24428,19 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
24879
24428
  this.flagRefdata$ = this.caseFlagRefdataService.getHmctsServiceDetailsByCaseType(this.caseTypeId)
24880
24429
  .pipe(
24881
24430
  // If an error occurs retrieving HMCTS service details by case type ID, try by service name instead
24882
- catchError((_) => this.caseFlagRefdataService.getHmctsServiceDetailsByServiceName(this.jurisdiction)),
24431
+ catchError(_ => this.caseFlagRefdataService.getHmctsServiceDetailsByServiceName(this.jurisdiction)),
24883
24432
  // Use switchMap to return an inner Observable of the flag types data, having received the service details
24884
24433
  // including service_code. This avoids having nested `subscribe`s, which is an anti-pattern!
24885
- switchMap((serviceDetails) => this.caseFlagRefdataService.getCaseFlagsRefdata(serviceDetails[0].service_code, flagType, true, this.isDisplayContextParameterExternal)))
24434
+ switchMap(serviceDetails => this.caseFlagRefdataService.getCaseFlagsRefdata(serviceDetails[0].service_code, flagType, true, this.isDisplayContextParameterExternal)))
24886
24435
  .subscribe({
24887
- next: (flagTypes) => this.processFlagTypes(flagTypes),
24888
- error: (error) => this.onRefdataError(error)
24436
+ next: flagTypes => this.processFlagTypes(flagTypes),
24437
+ error: error => this.onRefdataError(error)
24889
24438
  });
24890
24439
  }
24891
24440
  }
24892
24441
  ngOnDestroy() {
24893
24442
  this.flagRefdata$?.unsubscribe();
24894
24443
  this.flagTypeControlChangesSubscription?.unsubscribe();
24895
- // check if the user has an existing path when navigating away from the page
24896
- // if so we may need to ensure the values are set correctly.
24897
- this.checkForExistingPath();
24898
- }
24899
- checkForExistingPath() {
24900
- // Restore values from cachedPath
24901
- if (this.subJourneyIndex <= 0) {
24902
- // check if the user is navigating to the previous page in the jounrey.
24903
- // in this situation we need to restore the full path for data retention across pages.
24904
- if (this.cachedPath && this.cachedPath.length > 0) {
24905
- this.cachedPath.forEach((flagType) => {
24906
- if (flagType) {
24907
- this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(flagType, { emitEvent: false });
24908
- }
24909
- });
24910
- }
24911
- }
24912
24444
  }
24913
24445
  onNext() {
24914
24446
  // Validate form
@@ -24930,40 +24462,10 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
24930
24462
  // when displaying the next set of child flags
24931
24463
  this.cachedFlagType = this.selectedFlagType;
24932
24464
  this.flagTypes = this.selectedFlagType.childFlags;
24933
- if (this.cachedPath.length !== 0 && this.cachedPath[this.subJourneyIndex] === this.selectedFlagType) {
24934
- this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(this.cachedPath[this.subJourneyIndex + 1], { emitEvent: false });
24935
- }
24936
- else {
24937
- this.cachedPath?.shift();
24938
- const value = this.cachedPath?.length ? this.cachedPath[0] : null;
24939
- this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(value, { emitEvent: false });
24940
- }
24941
- this.subJourneyIndex++;
24465
+ this.cachedPath?.shift();
24466
+ this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(this.cachedPath?.length ? this.cachedPath[0] : null, { emitEvent: false });
24942
24467
  }
24943
24468
  }
24944
- // Simplified version of the onPrevious method with optimized code
24945
- onPrevious() {
24946
- if (this.cachedFlagType) {
24947
- if (this.cachedFlagType.Path.length === 1) {
24948
- this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(this.cachedFlagType, { emitEvent: false });
24949
- this.flagTypes = this.cachedRDFlagTypes[0].childFlags;
24950
- }
24951
- else {
24952
- let currentPath = this.cachedRDFlagTypes[0];
24953
- const pathToSearch = this.cachedFlagType.Path.slice(1);
24954
- for (const pathElement of pathToSearch) {
24955
- const foundFlag = currentPath.childFlags.find((flag) => flag.name === pathElement);
24956
- if (foundFlag) {
24957
- currentPath = foundFlag;
24958
- }
24959
- }
24960
- this.formGroup.get(CaseFlagFormFields.FLAG_TYPE)?.setValue(this.cachedFlagType, { emitEvent: false });
24961
- this.flagTypes = currentPath.childFlags;
24962
- this.cachedFlagType = currentPath;
24963
- }
24964
- }
24965
- this.subJourneyIndex = Math.max(0, this.subJourneyIndex - 1);
24966
- }
24967
24469
  // Identity function for trackBy use by *ngFor for flagTypes in HTML template
24968
24470
  identifyFlagType(_, flagType) {
24969
24471
  return `${flagType.flagCode}_${flagType.name}_${flagType.name_cy}`;
@@ -25001,33 +24503,18 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
25001
24503
  }
25002
24504
  }
25003
24505
  processFlagTypes(flagTypes) {
25004
- const prevJourneyPage = this.multipageComponentStateService.getJourneyCollection()[0];
25005
- const { journeyPreviousPageNumber, journeyPageNumber } = prevJourneyPage;
25006
- this.cachedRDFlagTypes = flagTypes;
25007
- if (this.selectedFlagType && (journeyPreviousPageNumber > journeyPageNumber)) {
25008
- const selectedFlagType = this.selectedFlagType;
25009
- const pathToSearch = selectedFlagType.Path.slice(1);
25010
- let currentPath = flagTypes[0];
25011
- for (const pathElement of pathToSearch) {
25012
- const foundFlag = currentPath.childFlags.find((flag) => flag.name === pathElement);
25013
- if (foundFlag) {
25014
- currentPath = foundFlag;
25015
- }
25016
- }
25017
- this.flagTypes = currentPath.childFlags;
25018
- this.cachedFlagType = currentPath;
25019
- }
25020
- else {
25021
- this.flagTypes = flagTypes[0].childFlags.filter((flag) => this.isDisplayContextParameterExternal ? flag.flagCode !== this.otherFlagTypeCode : true);
25022
- }
24506
+ // First (and only) object in the returned array should be the top-level "Party" flag type
24507
+ // The "Other" flag type should be removed from the top level if the user is external
24508
+ this.flagTypes = flagTypes[0].childFlags.filter((flag) => this.isDisplayContextParameterExternal ? flag.flagCode !== this.otherFlagTypeCode : true);
25023
24509
  const formControl = this.formGroup.get(CaseFlagFormFields.FLAG_TYPE);
25024
24510
  if (formControl?.value) {
25025
- const [foundFlagType, path] = FlagType.searchPathByFlagTypeObject(formControl.value, this.cachedRDFlagTypes[0].childFlags);
25026
- this.cachedPath = [...path, foundFlagType];
25027
- formControl.setValue((this.selectedFlagType && (journeyPreviousPageNumber > journeyPageNumber)) ? this.cachedPath[this.cachedPath.length - 1] : this.cachedPath[0], { emitEvent: false });
25028
- if (this.cachedPath.length !== 0 && (journeyPreviousPageNumber > journeyPageNumber)) {
25029
- this.subJourneyIndex = this.cachedPath.length - 1;
25030
- }
24511
+ // Cache Path based on existing flagCode -- needed for nested choices
24512
+ const [foundFlagType, path] = FlagType.searchPathByFlagTypeObject(formControl.value, this.flagTypes);
24513
+ this.cachedPath = [
24514
+ ...path,
24515
+ foundFlagType
24516
+ ];
24517
+ formControl.setValue(this.cachedPath[0], { emitEvent: false });
25031
24518
  }
25032
24519
  }
25033
24520
  onRefdataError(error) {
@@ -25038,29 +24525,19 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
25038
24525
  // Return case flag field state and error messages to the parent
25039
24526
  this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: CaseFlagFieldState.FLAG_TYPE, errorMessages: this.errorMessages });
25040
24527
  }
25041
- next() {
25042
- this.onNext();
25043
- if (this.errorMessages.length === 0) {
25044
- super.next();
25045
- }
25046
- }
25047
- previous() {
25048
- this.onPrevious();
25049
- if (this.subJourneyIndex <= 0) {
25050
- super.previous();
25051
- }
25052
- }
25053
- static ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0.ɵɵdirectiveInject(CaseFlagRefdataService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
25054
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction", caseTypeId: "caseTypeId", hmctsServiceId: "hmctsServiceId", isDisplayContextParameterExternal: "isDisplayContextParameterExternal", isDisplayContextParameter2Point1Enabled: "isDisplayContextParameter2Point1Enabled", selectedFlagsLocation: "selectedFlagsLocation" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["priorFlagTypeSelected", ""], [3, "formGroup", 4, "ngIf"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-type-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "flag-type-heading", 1, "govuk-fieldset__heading", "govuk-!-margin-bottom-1"], [4, "ngIf", "ngIfElse"], ["id", "flag-type-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "govuk-radios__conditional", "id", "conditional-flagType", 4, "ngIf"], ["id", "flag-type-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "conditional-flagType", 1, "govuk-radios__conditional"], ["for", "other-flag-type-description", 1, "govuk-label"], ["id", "flag-type-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-flag-type-description", "type", "text", 1, "govuk-input", "govuk-!-width-one-half", 3, "ngClass", "name", "formControlName"], ["class", "govuk-checkboxes__item govuk-!-margin-top-4", 4, "ngIf"], ["id", "flag-type-error-message", 1, "govuk-error-message"], [1, "govuk-checkboxes__item", "govuk-!-margin-top-4"], ["id", "is-visible-externally", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "name", "formControlName"], ["for", "is-visible-externally", 1, "govuk-label", "govuk-checkboxes__label"]], template: function SelectFlagTypeComponent_Template(rf, ctx) { if (rf & 1) {
25055
- i0.ɵɵtemplate(0, SelectFlagTypeComponent_ng_container_0_Template, 12, 10, "ng-container", 1);
24528
+ static ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0.ɵɵdirectiveInject(CaseFlagRefdataService)); };
24529
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction", caseTypeId: "caseTypeId", hmctsServiceId: "hmctsServiceId", isDisplayContextParameterExternal: "isDisplayContextParameterExternal", isDisplayContextParameter2Point1Enabled: "isDisplayContextParameter2Point1Enabled", selectedFlagsLocation: "selectedFlagsLocation" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls: 2, vars: 2, consts: [["priorFlagTypeSelected", ""], [3, "formGroup", 4, "ngIf"], ["class", "govuk-button-group", 4, "ngIf"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-type-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "flag-type-heading", 1, "govuk-fieldset__heading", "govuk-!-margin-bottom-1"], [4, "ngIf", "ngIfElse"], ["id", "flag-type-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "govuk-radios__conditional", "id", "conditional-flagType", 4, "ngIf"], ["id", "flag-type-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "conditional-flagType", 1, "govuk-radios__conditional"], ["for", "other-flag-type-description", 1, "govuk-label"], ["id", "flag-type-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-flag-type-description", "type", "text", 1, "govuk-input", "govuk-!-width-one-half", 3, "ngClass", "name", "formControlName"], ["class", "govuk-checkboxes__item govuk-!-margin-top-4", 4, "ngIf"], ["id", "flag-type-error-message", 1, "govuk-error-message"], [1, "govuk-checkboxes__item", "govuk-!-margin-top-4"], ["id", "is-visible-externally", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "name", "formControlName"], ["for", "is-visible-externally", 1, "govuk-label", "govuk-checkboxes__label"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagTypeComponent_Template(rf, ctx) { if (rf & 1) {
24530
+ i0.ɵɵtemplate(0, SelectFlagTypeComponent_ng_container_0_Template, 12, 10, "ng-container", 1)(1, SelectFlagTypeComponent_div_1_Template, 4, 3, "div", 2);
25056
24531
  } if (rf & 2) {
25057
24532
  i0.ɵɵproperty("ngIf", ctx.flagTypes == null ? null : ctx.flagTypes.length);
24533
+ i0.ɵɵadvance();
24534
+ i0.ɵɵproperty("ngIf", !ctx.refdataError);
25058
24535
  } }, styles: [".hidden[_ngcontent-%COMP%]{display:none}.validation-error[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:#d4351c}"] });
25059
24536
  }
25060
24537
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectFlagTypeComponent, [{
25061
24538
  type: Component,
25062
- args: [{ selector: 'ccd-select-flag-type', template: "<ng-container *ngIf=\"flagTypes?.length\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': flagTypeNotSelectedErrorMessage.length > 0}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"flag-type-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 id=\"flag-type-heading\" class=\"govuk-fieldset__heading govuk-!-margin-bottom-1\">\n <ng-container *ngIf=\"!cachedFlagType || subJourneyIndex == 0; else priorFlagTypeSelected\">\n {{\n isDisplayContextParameterExternal\n ? (caseFlagWizardStepTitle.SELECT_CASE_FLAG_EXTERNAL | rpxTranslate)\n : (caseFlagWizardStepTitle.SELECT_CASE_FLAG | rpxTranslate)\n }}\n </ng-container>\n <ng-template #priorFlagTypeSelected>\n {{cachedFlagType | flagFieldDisplay:'name'}}\n </ng-template>\n </h1>\n </legend>\n <div id=\"flag-type-not-selected-error-message\" class=\"govuk-error-message\"\n *ngIf=\"flagTypeNotSelectedErrorMessage.length > 0\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagTypeNotSelectedErrorMessage |\n rpxTranslate}}\n </div>\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\" id=\"conditional-radios-list\">\n <div class=\"govuk-radios__item\" *ngFor=\"let flagType of flagTypes; index as i; trackBy: identifyFlagType\">\n <input class=\"govuk-radios__input\" id=\"flag-type-{{i}}\" [name]=\"caseFlagFormField.FLAG_TYPE\" type=\"radio\"\n [value]=\"flagType\" [formControlName]=\"caseFlagFormField.FLAG_TYPE\" />\n <label class=\"govuk-label govuk-radios__label\" for=\"flag-type-{{i}}\">\n {{flagType | flagFieldDisplay:'name'}}\n </label>\n </div>\n <div class=\"govuk-radios__conditional\" *ngIf=\"otherFlagTypeSelected\" id=\"conditional-flagType\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': flagTypeErrorMessage.length > 0}\">\n <label class=\"govuk-label\" for=\"other-flag-type-description\">\n {{\n isDisplayContextParameterExternal\n ? (caseFlagWizardStepTitle.OTHER_FLAG_TYPE_DESCRIPTION_EXTERNAL | rpxTranslate)\n : (caseFlagWizardStepTitle.OTHER_FLAG_TYPE_DESCRIPTION | rpxTranslate)\n }}\n </label>\n <div id=\"flag-type-error-message\" class=\"govuk-error-message\" *ngIf=\"flagTypeErrorMessage.length > 0\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagTypeErrorMessage |\n rpxTranslate}}\n </div>\n <input class=\"govuk-input govuk-!-width-one-half\"\n [ngClass]=\"{'govuk-input--error': flagTypeErrorMessage.length > 0}\" id=\"other-flag-type-description\"\n [name]=\"caseFlagFormField.OTHER_FLAG_DESCRIPTION\" type=\"text\"\n [formControlName]=\"caseFlagFormField.OTHER_FLAG_DESCRIPTION\" />\n <div class=\"govuk-checkboxes__item govuk-!-margin-top-4\"\n *ngIf=\"!isDisplayContextParameterExternal && !isCaseLevelFlag && isDisplayContextParameter2Point1Enabled\">\n <input class=\"govuk-checkboxes__input\" id=\"is-visible-externally\" type=\"checkbox\"\n [name]=\"caseFlagFormField.IS_VISIBLE_INTERNALLY_ONLY\"\n [formControlName]=\"caseFlagFormField.IS_VISIBLE_INTERNALLY_ONLY\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"is-visible-externally\">\n {{'This flag should only be visible to HMCTS Staff' | rpxTranslate}}\n </label>\n </div>\n </div>\n </div>\n </div>\n </fieldset>\n </div>\n</ng-container>", styles: [".hidden{display:none}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
25063
- }], () => [{ type: CaseFlagRefdataService }, { type: MultipageComponentStateService }], { formGroup: [{
24539
+ args: [{ selector: 'ccd-select-flag-type', template: "<ng-container *ngIf=\"flagTypes?.length\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': flagTypeNotSelectedErrorMessage.length > 0}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"flag-type-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 id=\"flag-type-heading\" class=\"govuk-fieldset__heading govuk-!-margin-bottom-1\">\n <ng-container *ngIf=\"!cachedFlagType; else priorFlagTypeSelected\">\n {{\n isDisplayContextParameterExternal\n ? (caseFlagWizardStepTitle.SELECT_CASE_FLAG_EXTERNAL | rpxTranslate)\n : (caseFlagWizardStepTitle.SELECT_CASE_FLAG | rpxTranslate)\n }}\n </ng-container>\n <ng-template #priorFlagTypeSelected>\n {{cachedFlagType | flagFieldDisplay:'name'}}\n </ng-template>\n </h1>\n </legend>\n <div id=\"flag-type-not-selected-error-message\" class=\"govuk-error-message\"\n *ngIf=\"flagTypeNotSelectedErrorMessage.length > 0\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagTypeNotSelectedErrorMessage | rpxTranslate}}\n </div>\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\" id=\"conditional-radios-list\">\n <div class=\"govuk-radios__item\" *ngFor=\"let flagType of flagTypes; index as i; trackBy: identifyFlagType\">\n <input class=\"govuk-radios__input\" id=\"flag-type-{{i}}\" [name]=\"caseFlagFormField.FLAG_TYPE\"\n type=\"radio\" [value]=\"flagType\"\n [formControlName]=\"caseFlagFormField.FLAG_TYPE\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"flag-type-{{i}}\">\n {{flagType | flagFieldDisplay:'name'}}\n </label>\n </div>\n <div class=\"govuk-radios__conditional\" *ngIf=\"otherFlagTypeSelected\" id=\"conditional-flagType\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': flagTypeErrorMessage.length > 0}\">\n <label class=\"govuk-label\" for=\"other-flag-type-description\">\n {{\n isDisplayContextParameterExternal\n ? (caseFlagWizardStepTitle.OTHER_FLAG_TYPE_DESCRIPTION_EXTERNAL | rpxTranslate)\n : (caseFlagWizardStepTitle.OTHER_FLAG_TYPE_DESCRIPTION | rpxTranslate)\n }}\n </label>\n <div id=\"flag-type-error-message\" class=\"govuk-error-message\" *ngIf=\"flagTypeErrorMessage.length > 0\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagTypeErrorMessage | rpxTranslate}}\n </div>\n <input class=\"govuk-input govuk-!-width-one-half\"\n [ngClass]=\"{'govuk-input--error': flagTypeErrorMessage.length > 0}\"\n id=\"other-flag-type-description\" [name]=\"caseFlagFormField.OTHER_FLAG_DESCRIPTION\" type=\"text\"\n [formControlName]=\"caseFlagFormField.OTHER_FLAG_DESCRIPTION\"/>\n <div class=\"govuk-checkboxes__item govuk-!-margin-top-4\"\n *ngIf=\"!isDisplayContextParameterExternal && !isCaseLevelFlag && isDisplayContextParameter2Point1Enabled\">\n <input class=\"govuk-checkboxes__input\" id=\"is-visible-externally\" type=\"checkbox\"\n [name]=\"caseFlagFormField.IS_VISIBLE_INTERNALLY_ONLY\" [formControlName]=\"caseFlagFormField.IS_VISIBLE_INTERNALLY_ONLY\">\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"is-visible-externally\">\n {{'This flag should only be visible to HMCTS Staff' | rpxTranslate}}\n </label>\n </div>\n </div>\n </div>\n </div>\n </fieldset>\n </div>\n</ng-container>\n\n<div class=\"govuk-button-group\" *ngIf=\"!refdataError\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n", styles: [".hidden{display:none}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
24540
+ }], () => [{ type: CaseFlagRefdataService }], { formGroup: [{
25064
24541
  type: Input
25065
24542
  }], jurisdiction: [{
25066
24543
  type: Input
@@ -25079,35 +24556,35 @@ class SelectFlagTypeComponent extends AbstractJourneyComponent {
25079
24556
  }], flagCommentsOptionalEmitter: [{
25080
24557
  type: Output
25081
24558
  }] }); })();
25082
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectFlagTypeComponent, { className: "SelectFlagTypeComponent", filePath: "lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.ts", lineNumber: 19 }); })();
24559
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectFlagTypeComponent, { className: "SelectFlagTypeComponent", filePath: "lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.ts", lineNumber: 18 }); })();
25083
24560
 
25084
24561
  const _c0$n = a0 => ({ "form-group-error": a0 });
25085
24562
  const _c1$7 = a0 => ({ "govuk-tag--grey": a0 });
25086
24563
  function UpdateFlagComponent_div_7_Template(rf, ctx) { if (rf & 1) {
25087
- i0.ɵɵelementStart(0, "div", 15);
24564
+ i0.ɵɵelementStart(0, "div", 17);
25088
24565
  i0.ɵɵtext(1);
25089
24566
  i0.ɵɵpipe(2, "updateFlagTitleDisplay");
25090
24567
  i0.ɵɵelementEnd();
25091
24568
  } if (rf & 2) {
25092
- const ctx_r0 = i0.ɵɵnextContext();
24569
+ const ctx_r1 = i0.ɵɵnextContext();
25093
24570
  i0.ɵɵadvance();
25094
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r0.selectedFlag == null ? null : ctx_r0.selectedFlag.flagDetailDisplay == null ? null : ctx_r0.selectedFlag.flagDetailDisplay.flagDetail), " ");
24571
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r1.selectedFlag == null ? null : ctx_r1.selectedFlag.flagDetailDisplay == null ? null : ctx_r1.selectedFlag.flagDetailDisplay.flagDetail), " ");
25095
24572
  } }
25096
24573
  function UpdateFlagComponent_div_14_Template(rf, ctx) { if (rf & 1) {
25097
- i0.ɵɵelementStart(0, "div", 16);
24574
+ i0.ɵɵelementStart(0, "div", 18);
25098
24575
  i0.ɵɵtext(1);
25099
24576
  i0.ɵɵpipe(2, "rpxTranslate");
25100
24577
  i0.ɵɵelementEnd();
25101
24578
  } if (rf & 2) {
25102
- const ctx_r0 = i0.ɵɵnextContext();
24579
+ const ctx_r1 = i0.ɵɵnextContext();
25103
24580
  i0.ɵɵadvance();
25104
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r0.updateFlagStepEnum.COMMENT_HINT_TEXT_EXTERNAL), " ");
24581
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r1.updateFlagStepEnum.COMMENT_HINT_TEXT_EXTERNAL), " ");
25105
24582
  } }
25106
24583
  function UpdateFlagComponent_ng_container_15_div_5_Template(rf, ctx) { if (rf & 1) {
25107
- i0.ɵɵelementStart(0, "div", 23)(1, "span", 24);
24584
+ i0.ɵɵelementStart(0, "div", 25)(1, "span", 26);
25108
24585
  i0.ɵɵtext(2, "!");
25109
24586
  i0.ɵɵelementEnd();
25110
- i0.ɵɵelementStart(3, "strong", 25)(4, "span", 26);
24587
+ i0.ɵɵelementStart(3, "strong", 27)(4, "span", 28);
25111
24588
  i0.ɵɵtext(5);
25112
24589
  i0.ɵɵpipe(6, "rpxTranslate");
25113
24590
  i0.ɵɵelementEnd();
@@ -25115,14 +24592,14 @@ function UpdateFlagComponent_ng_container_15_div_5_Template(rf, ctx) { if (rf &
25115
24592
  i0.ɵɵpipe(8, "rpxTranslate");
25116
24593
  i0.ɵɵelementEnd()();
25117
24594
  } if (rf & 2) {
25118
- const ctx_r0 = i0.ɵɵnextContext(2);
24595
+ const ctx_r1 = i0.ɵɵnextContext(2);
25119
24596
  i0.ɵɵadvance(5);
25120
24597
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 2, "Warning"));
25121
24598
  i0.ɵɵadvance(2);
25122
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 4, ctx_r0.updateFlagStepEnum.WARNING_TEXT), " ");
24599
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 4, ctx_r1.updateFlagStepEnum.WARNING_TEXT), " ");
25123
24600
  } }
25124
24601
  function UpdateFlagComponent_ng_container_15_div_6_Template(rf, ctx) { if (rf & 1) {
25125
- i0.ɵɵelementStart(0, "div", 27)(1, "span", 28);
24602
+ i0.ɵɵelementStart(0, "div", 29)(1, "span", 30);
25126
24603
  i0.ɵɵtext(2);
25127
24604
  i0.ɵɵpipe(3, "rpxTranslate");
25128
24605
  i0.ɵɵelementEnd();
@@ -25130,14 +24607,14 @@ function UpdateFlagComponent_ng_container_15_div_6_Template(rf, ctx) { if (rf &
25130
24607
  i0.ɵɵpipe(5, "rpxTranslate");
25131
24608
  i0.ɵɵelementEnd();
25132
24609
  } if (rf & 2) {
25133
- const ctx_r0 = i0.ɵɵnextContext(2);
24610
+ const ctx_r1 = i0.ɵɵnextContext(2);
25134
24611
  i0.ɵɵadvance(2);
25135
24612
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
25136
24613
  i0.ɵɵadvance(2);
25137
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.commentsNotEnteredErrorMessage), " ");
24614
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.commentsNotEnteredErrorMessage), " ");
25138
24615
  } }
25139
24616
  function UpdateFlagComponent_ng_container_15_div_7_Template(rf, ctx) { if (rf & 1) {
25140
- i0.ɵɵelementStart(0, "div", 29)(1, "span", 28);
24617
+ i0.ɵɵelementStart(0, "div", 31)(1, "span", 30);
25141
24618
  i0.ɵɵtext(2);
25142
24619
  i0.ɵɵpipe(3, "rpxTranslate");
25143
24620
  i0.ɵɵelementEnd();
@@ -25145,64 +24622,64 @@ function UpdateFlagComponent_ng_container_15_div_7_Template(rf, ctx) { if (rf &
25145
24622
  i0.ɵɵpipe(5, "rpxTranslate");
25146
24623
  i0.ɵɵelementEnd();
25147
24624
  } if (rf & 2) {
25148
- const ctx_r0 = i0.ɵɵnextContext(2);
24625
+ const ctx_r1 = i0.ɵɵnextContext(2);
25149
24626
  i0.ɵɵadvance(2);
25150
24627
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
25151
24628
  i0.ɵɵadvance(2);
25152
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.commentsCharLimitErrorMessage), " ");
24629
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.commentsCharLimitErrorMessage), " ");
25153
24630
  } }
25154
24631
  function UpdateFlagComponent_ng_container_15_Template(rf, ctx) { if (rf & 1) {
25155
24632
  i0.ɵɵelementContainerStart(0);
25156
- i0.ɵɵelementStart(1, "div", 17);
24633
+ i0.ɵɵelementStart(1, "div", 19);
25157
24634
  i0.ɵɵtext(2);
25158
24635
  i0.ɵɵpipe(3, "rpxTranslate");
25159
24636
  i0.ɵɵpipe(4, "rpxTranslate");
25160
24637
  i0.ɵɵelementEnd();
25161
- i0.ɵɵtemplate(5, UpdateFlagComponent_ng_container_15_div_5_Template, 9, 6, "div", 18)(6, UpdateFlagComponent_ng_container_15_div_6_Template, 6, 6, "div", 19)(7, UpdateFlagComponent_ng_container_15_div_7_Template, 6, 6, "div", 20);
25162
- i0.ɵɵelementStart(8, "textarea", 21);
24638
+ i0.ɵɵtemplate(5, UpdateFlagComponent_ng_container_15_div_5_Template, 9, 6, "div", 20)(6, UpdateFlagComponent_ng_container_15_div_6_Template, 6, 6, "div", 21)(7, UpdateFlagComponent_ng_container_15_div_7_Template, 6, 6, "div", 22);
24639
+ i0.ɵɵelementStart(8, "textarea", 23);
25163
24640
  i0.ɵɵtext(9, " ");
25164
24641
  i0.ɵɵelementEnd();
25165
- i0.ɵɵelementStart(10, "div", 22);
24642
+ i0.ɵɵelementStart(10, "div", 24);
25166
24643
  i0.ɵɵtext(11);
25167
24644
  i0.ɵɵpipe(12, "rpxTranslate");
25168
24645
  i0.ɵɵelementEnd();
25169
24646
  i0.ɵɵelementContainerEnd();
25170
24647
  } if (rf & 2) {
25171
- const ctx_r0 = i0.ɵɵnextContext();
24648
+ const ctx_r1 = i0.ɵɵnextContext();
25172
24649
  i0.ɵɵadvance(2);
25173
- i0.ɵɵtextInterpolate1(" ", ctx_r0.internalUserUpdate ? i0.ɵɵpipeBind1(3, 8, ctx_r0.updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL) : i0.ɵɵpipeBind1(4, 10, ctx_r0.updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL_2_POINT_1), " ");
24650
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.internalUserUpdate ? i0.ɵɵpipeBind1(3, 8, ctx_r1.updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL) : i0.ɵɵpipeBind1(4, 10, ctx_r1.updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL_2_POINT_1), " ");
25174
24651
  i0.ɵɵadvance(3);
25175
- i0.ɵɵproperty("ngIf", ctx_r0.internalUser2Point1EnabledUpdate && ctx_r0.externallyVisibleFlag);
24652
+ i0.ɵɵproperty("ngIf", ctx_r1.internalUser2Point1EnabledUpdate && ctx_r1.externallyVisibleFlag);
25176
24653
  i0.ɵɵadvance();
25177
- i0.ɵɵproperty("ngIf", ctx_r0.commentsNotEnteredErrorMessage);
24654
+ i0.ɵɵproperty("ngIf", ctx_r1.commentsNotEnteredErrorMessage);
25178
24655
  i0.ɵɵadvance();
25179
- i0.ɵɵproperty("ngIf", ctx_r0.commentsCharLimitErrorMessage);
24656
+ i0.ɵɵproperty("ngIf", ctx_r1.commentsCharLimitErrorMessage);
25180
24657
  i0.ɵɵadvance();
25181
- i0.ɵɵproperty("id", ctx_r0.caseFlagFormFields.COMMENTS)("name", ctx_r0.caseFlagFormFields.COMMENTS)("formControlName", ctx_r0.caseFlagFormFields.COMMENTS);
24658
+ i0.ɵɵproperty("id", ctx_r1.caseFlagFormFields.COMMENTS)("name", ctx_r1.caseFlagFormFields.COMMENTS)("formControlName", ctx_r1.caseFlagFormFields.COMMENTS);
25182
24659
  i0.ɵɵadvance(3);
25183
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 12, ctx_r0.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
24660
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 12, ctx_r1.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
25184
24661
  } }
25185
24662
  function UpdateFlagComponent_ng_template_16_ng_container_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
25186
24663
  i0.ɵɵelementContainer(0);
25187
24664
  } }
25188
24665
  function UpdateFlagComponent_ng_template_16_ng_container_0_Template(rf, ctx) { if (rf & 1) {
25189
24666
  i0.ɵɵelementContainerStart(0);
25190
- i0.ɵɵtemplate(1, UpdateFlagComponent_ng_template_16_ng_container_0_ng_container_1_Template, 1, 0, "ng-container", 31);
24667
+ i0.ɵɵtemplate(1, UpdateFlagComponent_ng_template_16_ng_container_0_ng_container_1_Template, 1, 0, "ng-container", 33);
25191
24668
  i0.ɵɵelementContainerEnd();
25192
24669
  } if (rf & 2) {
25193
24670
  i0.ɵɵnextContext(2);
25194
- const updateFlagStatusReason_r2 = i0.ɵɵreference(19);
24671
+ const updateFlagStatusReason_r3 = i0.ɵɵreference(19);
25195
24672
  i0.ɵɵadvance();
25196
- i0.ɵɵproperty("ngTemplateOutlet", updateFlagStatusReason_r2);
24673
+ i0.ɵɵproperty("ngTemplateOutlet", updateFlagStatusReason_r3);
25197
24674
  } }
25198
24675
  function UpdateFlagComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
25199
- i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_16_ng_container_0_Template, 2, 1, "ng-container", 30);
24676
+ i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_16_ng_container_0_Template, 2, 1, "ng-container", 32);
25200
24677
  } if (rf & 2) {
25201
- const ctx_r0 = i0.ɵɵnextContext();
25202
- i0.ɵɵproperty("ngIf", ctx_r0.externalUserUpdate);
24678
+ const ctx_r1 = i0.ɵɵnextContext();
24679
+ i0.ɵɵproperty("ngIf", ctx_r1.externalUserUpdate);
25203
24680
  } }
25204
24681
  function UpdateFlagComponent_ng_template_18_div_0_Template(rf, ctx) { if (rf & 1) {
25205
- i0.ɵɵelementStart(0, "div", 36)(1, "span", 28);
24682
+ i0.ɵɵelementStart(0, "div", 38)(1, "span", 30);
25206
24683
  i0.ɵɵtext(2);
25207
24684
  i0.ɵɵpipe(3, "rpxTranslate");
25208
24685
  i0.ɵɵelementEnd();
@@ -25210,14 +24687,14 @@ function UpdateFlagComponent_ng_template_18_div_0_Template(rf, ctx) { if (rf & 1
25210
24687
  i0.ɵɵpipe(5, "rpxTranslate");
25211
24688
  i0.ɵɵelementEnd();
25212
24689
  } if (rf & 2) {
25213
- const ctx_r0 = i0.ɵɵnextContext(2);
24690
+ const ctx_r1 = i0.ɵɵnextContext(2);
25214
24691
  i0.ɵɵadvance(2);
25215
24692
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
25216
24693
  i0.ɵɵadvance(2);
25217
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.statusReasonNotEnteredErrorMessage), " ");
24694
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.statusReasonNotEnteredErrorMessage), " ");
25218
24695
  } }
25219
24696
  function UpdateFlagComponent_ng_template_18_div_1_Template(rf, ctx) { if (rf & 1) {
25220
- i0.ɵɵelementStart(0, "div", 37)(1, "span", 28);
24697
+ i0.ɵɵelementStart(0, "div", 39)(1, "span", 30);
25221
24698
  i0.ɵɵtext(2);
25222
24699
  i0.ɵɵpipe(3, "rpxTranslate");
25223
24700
  i0.ɵɵelementEnd();
@@ -25225,100 +24702,100 @@ function UpdateFlagComponent_ng_template_18_div_1_Template(rf, ctx) { if (rf & 1
25225
24702
  i0.ɵɵpipe(5, "rpxTranslate");
25226
24703
  i0.ɵɵelementEnd();
25227
24704
  } if (rf & 2) {
25228
- const ctx_r0 = i0.ɵɵnextContext(2);
24705
+ const ctx_r1 = i0.ɵɵnextContext(2);
25229
24706
  i0.ɵɵadvance(2);
25230
24707
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
25231
24708
  i0.ɵɵadvance(2);
25232
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.statusReasonCharLimitErrorMessage), " ");
24709
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.statusReasonCharLimitErrorMessage), " ");
25233
24710
  } }
25234
24711
  function UpdateFlagComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
25235
- i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_18_div_0_Template, 6, 6, "div", 32)(1, UpdateFlagComponent_ng_template_18_div_1_Template, 6, 6, "div", 33);
25236
- i0.ɵɵelementStart(2, "textarea", 34);
24712
+ i0.ɵɵtemplate(0, UpdateFlagComponent_ng_template_18_div_0_Template, 6, 6, "div", 34)(1, UpdateFlagComponent_ng_template_18_div_1_Template, 6, 6, "div", 35);
24713
+ i0.ɵɵelementStart(2, "textarea", 36);
25237
24714
  i0.ɵɵtext(3, " ");
25238
24715
  i0.ɵɵelementEnd();
25239
- i0.ɵɵelementStart(4, "div", 35);
24716
+ i0.ɵɵelementStart(4, "div", 37);
25240
24717
  i0.ɵɵtext(5);
25241
24718
  i0.ɵɵpipe(6, "rpxTranslate");
25242
24719
  i0.ɵɵelementEnd();
25243
24720
  } if (rf & 2) {
25244
- const ctx_r0 = i0.ɵɵnextContext();
25245
- i0.ɵɵproperty("ngIf", ctx_r0.statusReasonNotEnteredErrorMessage);
24721
+ const ctx_r1 = i0.ɵɵnextContext();
24722
+ i0.ɵɵproperty("ngIf", ctx_r1.statusReasonNotEnteredErrorMessage);
25246
24723
  i0.ɵɵadvance();
25247
- i0.ɵɵproperty("ngIf", ctx_r0.statusReasonCharLimitErrorMessage);
24724
+ i0.ɵɵproperty("ngIf", ctx_r1.statusReasonCharLimitErrorMessage);
25248
24725
  i0.ɵɵadvance();
25249
- i0.ɵɵproperty("id", ctx_r0.caseFlagFormFields.STATUS_CHANGE_REASON)("name", ctx_r0.caseFlagFormFields.STATUS_CHANGE_REASON)("formControlName", ctx_r0.caseFlagFormFields.STATUS_CHANGE_REASON);
24726
+ i0.ɵɵproperty("id", ctx_r1.caseFlagFormFields.STATUS_CHANGE_REASON)("name", ctx_r1.caseFlagFormFields.STATUS_CHANGE_REASON)("formControlName", ctx_r1.caseFlagFormFields.STATUS_CHANGE_REASON);
25250
24727
  i0.ɵɵadvance(3);
25251
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx_r0.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
24728
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, ctx_r1.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
25252
24729
  } }
25253
24730
  function UpdateFlagComponent_div_20_div_8_Template(rf, ctx) { if (rf & 1) {
25254
- i0.ɵɵelementStart(0, "div", 45);
25255
- i0.ɵɵelement(1, "input", 46);
25256
- i0.ɵɵelementStart(2, "label", 47);
24731
+ i0.ɵɵelementStart(0, "div", 47);
24732
+ i0.ɵɵelement(1, "input", 48);
24733
+ i0.ɵɵelementStart(2, "label", 49);
25257
24734
  i0.ɵɵtext(3);
25258
24735
  i0.ɵɵpipe(4, "rpxTranslate");
25259
24736
  i0.ɵɵelementEnd()();
25260
24737
  } if (rf & 2) {
25261
- const status_r3 = ctx.$implicit;
25262
- const ctx_r0 = i0.ɵɵnextContext(2);
24738
+ const status_r4 = ctx.$implicit;
24739
+ const ctx_r1 = i0.ɵɵnextContext(2);
25263
24740
  i0.ɵɵadvance();
25264
- i0.ɵɵproperty("id", ctx_r0.caseFlagFormFields.STATUS + "_" + status_r3)("name", ctx_r0.caseFlagFormFields.STATUS)("formControlName", ctx_r0.caseFlagFormFields.STATUS)("value", status_r3);
24741
+ i0.ɵɵproperty("id", ctx_r1.caseFlagFormFields.STATUS + "_" + status_r4)("name", ctx_r1.caseFlagFormFields.STATUS)("formControlName", ctx_r1.caseFlagFormFields.STATUS)("value", status_r4);
25265
24742
  i0.ɵɵadvance();
25266
- i0.ɵɵproperty("for", ctx_r0.caseFlagFormFields.STATUS + "_" + status_r3);
24743
+ i0.ɵɵproperty("for", ctx_r1.caseFlagFormFields.STATUS + "_" + status_r4);
25267
24744
  i0.ɵɵadvance();
25268
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 6, ctx_r0.caseFlagStatusEnum[status_r3]), " ");
24745
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 6, ctx_r1.caseFlagStatusEnum[status_r4]), " ");
25269
24746
  } }
25270
24747
  function UpdateFlagComponent_div_20_ng_container_12_Template(rf, ctx) { if (rf & 1) {
25271
24748
  i0.ɵɵelementContainer(0);
25272
24749
  } }
25273
24750
  function UpdateFlagComponent_div_20_Template(rf, ctx) { if (rf & 1) {
25274
- i0.ɵɵelementStart(0, "div", 38)(1, "fieldset", 39)(2, "legend", 40)(3, "h1", 41);
24751
+ i0.ɵɵelementStart(0, "div", 40)(1, "fieldset", 41)(2, "legend", 42)(3, "h1", 43);
25275
24752
  i0.ɵɵtext(4);
25276
24753
  i0.ɵɵpipe(5, "rpxTranslate");
25277
24754
  i0.ɵɵpipe(6, "rpxTranslate");
25278
24755
  i0.ɵɵelementEnd()();
25279
- i0.ɵɵelementStart(7, "div", 42);
25280
- i0.ɵɵtemplate(8, UpdateFlagComponent_div_20_div_8_Template, 5, 8, "div", 43);
24756
+ i0.ɵɵelementStart(7, "div", 44);
24757
+ i0.ɵɵtemplate(8, UpdateFlagComponent_div_20_div_8_Template, 5, 8, "div", 45);
25281
24758
  i0.ɵɵelementEnd()();
25282
- i0.ɵɵelementStart(9, "div", 44);
24759
+ i0.ɵɵelementStart(9, "div", 46);
25283
24760
  i0.ɵɵtext(10);
25284
24761
  i0.ɵɵpipe(11, "rpxTranslate");
25285
24762
  i0.ɵɵelementEnd();
25286
- i0.ɵɵtemplate(12, UpdateFlagComponent_div_20_ng_container_12_Template, 1, 0, "ng-container", 31);
24763
+ i0.ɵɵtemplate(12, UpdateFlagComponent_div_20_ng_container_12_Template, 1, 0, "ng-container", 33);
25287
24764
  i0.ɵɵelementEnd();
25288
24765
  } if (rf & 2) {
25289
- const ctx_r0 = i0.ɵɵnextContext();
25290
- const updateFlagStatusReason_r2 = i0.ɵɵreference(19);
24766
+ const ctx_r1 = i0.ɵɵnextContext();
24767
+ const updateFlagStatusReason_r3 = i0.ɵɵreference(19);
25291
24768
  i0.ɵɵadvance(4);
25292
- i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(5, 6, ctx_r0.updateFlagTitle), " ", i0.ɵɵpipeBind1(6, 8, "status"), " ");
24769
+ i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(5, 6, ctx_r1.updateFlagTitle), " ", i0.ɵɵpipeBind1(6, 8, "status"), " ");
25293
24770
  i0.ɵɵadvance(3);
25294
- i0.ɵɵproperty("id", ctx_r0.caseFlagFormFields.STATUS);
24771
+ i0.ɵɵproperty("id", ctx_r1.caseFlagFormFields.STATUS);
25295
24772
  i0.ɵɵadvance();
25296
- i0.ɵɵproperty("ngForOf", ctx_r0.validStatusProgressions);
24773
+ i0.ɵɵproperty("ngForOf", ctx_r1.validStatusProgressions);
25297
24774
  i0.ɵɵadvance(2);
25298
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 10, ctx_r0.updateFlagStepEnum.STATUS_HINT_TEXT), " ");
24775
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 10, ctx_r1.updateFlagStepEnum.STATUS_HINT_TEXT), " ");
25299
24776
  i0.ɵɵadvance(2);
25300
- i0.ɵɵproperty("ngTemplateOutlet", updateFlagStatusReason_r2);
24777
+ i0.ɵɵproperty("ngTemplateOutlet", updateFlagStatusReason_r3);
25301
24778
  } }
25302
24779
  function UpdateFlagComponent_div_21_Template(rf, ctx) { if (rf & 1) {
25303
- i0.ɵɵelementStart(0, "div", 48)(1, "div", 49)(2, "div", 50);
25304
- i0.ɵɵelement(3, "input", 51);
25305
- i0.ɵɵelementStart(4, "label", 52);
24780
+ i0.ɵɵelementStart(0, "div", 50)(1, "div", 51)(2, "div", 52);
24781
+ i0.ɵɵelement(3, "input", 53);
24782
+ i0.ɵɵelementStart(4, "label", 54);
25306
24783
  i0.ɵɵtext(5);
25307
24784
  i0.ɵɵpipe(6, "rpxTranslate");
25308
24785
  i0.ɵɵelementEnd()()()();
25309
24786
  } if (rf & 2) {
25310
- const ctx_r0 = i0.ɵɵnextContext();
24787
+ const ctx_r1 = i0.ɵɵnextContext();
25311
24788
  i0.ɵɵadvance(3);
25312
- i0.ɵɵproperty("formControlName", ctx_r0.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("id", ctx_r0.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("name", ctx_r0.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
24789
+ i0.ɵɵproperty("formControlName", ctx_r1.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("id", ctx_r1.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("name", ctx_r1.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
25313
24790
  i0.ɵɵadvance();
25314
- i0.ɵɵproperty("for", ctx_r0.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
24791
+ i0.ɵɵproperty("for", ctx_r1.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
25315
24792
  i0.ɵɵadvance();
25316
24793
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 5, "I need to add a translation"), " ");
25317
24794
  } }
25318
24795
  function UpdateFlagComponent_div_22_button_10_Template(rf, ctx) { if (rf & 1) {
25319
- const _r4 = i0.ɵɵgetCurrentView();
25320
- i0.ɵɵelementStart(0, "button", 57);
25321
- i0.ɵɵlistener("click", function UpdateFlagComponent_div_22_button_10_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onMakeInactive()); });
24796
+ const _r5 = i0.ɵɵgetCurrentView();
24797
+ i0.ɵɵelementStart(0, "button", 59);
24798
+ i0.ɵɵlistener("click", function UpdateFlagComponent_div_22_button_10_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onMakeInactive()); });
25322
24799
  i0.ɵɵtext(1);
25323
24800
  i0.ɵɵpipe(2, "rpxTranslate");
25324
24801
  i0.ɵɵelementEnd();
@@ -25327,28 +24804,28 @@ function UpdateFlagComponent_div_22_button_10_Template(rf, ctx) { if (rf & 1) {
25327
24804
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "Make inactive"), " ");
25328
24805
  } }
25329
24806
  function UpdateFlagComponent_div_22_Template(rf, ctx) { if (rf & 1) {
25330
- i0.ɵɵelementStart(0, "div", 53)(1, "div", 54)(2, "p");
24807
+ i0.ɵɵelementStart(0, "div", 55)(1, "div", 56)(2, "p");
25331
24808
  i0.ɵɵtext(3);
25332
24809
  i0.ɵɵpipe(4, "rpxTranslate");
25333
- i0.ɵɵelementStart(5, "span")(6, "strong", 55);
24810
+ i0.ɵɵelementStart(5, "span")(6, "strong", 57);
25334
24811
  i0.ɵɵtext(7);
25335
24812
  i0.ɵɵpipe(8, "rpxTranslate");
25336
24813
  i0.ɵɵelementEnd()()()();
25337
- i0.ɵɵelementStart(9, "div", 54);
25338
- i0.ɵɵtemplate(10, UpdateFlagComponent_div_22_button_10_Template, 3, 3, "button", 56);
24814
+ i0.ɵɵelementStart(9, "div", 56);
24815
+ i0.ɵɵtemplate(10, UpdateFlagComponent_div_22_button_10_Template, 3, 3, "button", 58);
25339
24816
  i0.ɵɵelementEnd()();
25340
24817
  } if (rf & 2) {
25341
- const ctx_r0 = i0.ɵɵnextContext();
24818
+ const ctx_r1 = i0.ɵɵnextContext();
25342
24819
  i0.ɵɵadvance(3);
25343
24820
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(4, 4, "Flag status:"), " ");
25344
24821
  i0.ɵɵadvance(3);
25345
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$7, ctx_r0.selectedFlag.flagDetailDisplay.flagDetail.status === "Inactive"));
24822
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$7, ctx_r1.selectedFlag.flagDetailDisplay.flagDetail.status === "Inactive"));
25346
24823
  i0.ɵɵadvance();
25347
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 6, ctx_r0.selectedFlag == null ? null : ctx_r0.selectedFlag.flagDetailDisplay == null ? null : ctx_r0.selectedFlag.flagDetailDisplay.flagDetail == null ? null : ctx_r0.selectedFlag.flagDetailDisplay.flagDetail.status), " ");
24824
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 6, ctx_r1.selectedFlag == null ? null : ctx_r1.selectedFlag.flagDetailDisplay == null ? null : ctx_r1.selectedFlag.flagDetailDisplay.flagDetail == null ? null : ctx_r1.selectedFlag.flagDetailDisplay.flagDetail.status), " ");
25348
24825
  i0.ɵɵadvance(3);
25349
- i0.ɵɵproperty("ngIf", ctx_r0.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
24826
+ i0.ɵɵproperty("ngIf", ctx_r1.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
25350
24827
  } }
25351
- class UpdateFlagComponent extends AbstractJourneyComponent {
24828
+ class UpdateFlagComponent {
25352
24829
  rpxTranslationService;
25353
24830
  formGroup;
25354
24831
  displayContextParameter;
@@ -25374,8 +24851,7 @@ class UpdateFlagComponent extends AbstractJourneyComponent {
25374
24851
  get externallyVisibleFlag() {
25375
24852
  return this.selectedFlag.flagDetailDisplay.visibility?.toLowerCase() === 'external';
25376
24853
  }
25377
- constructor(rpxTranslationService, multipageComponentStateService) {
25378
- super(multipageComponentStateService);
24854
+ constructor(rpxTranslationService) {
25379
24855
  this.rpxTranslationService = rpxTranslationService;
25380
24856
  }
25381
24857
  ngOnInit() {
@@ -25522,14 +24998,9 @@ class UpdateFlagComponent extends AbstractJourneyComponent {
25522
24998
  });
25523
24999
  }
25524
25000
  }
25525
- next() {
25526
- this.onNext();
25527
- if (this.errorMessages.length === 0) {
25528
- super.next();
25529
- }
25530
- }
25531
- static ɵfac = function UpdateFlagComponent_Factory(t) { return new (t || UpdateFlagComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService), i0.ɵɵdirectiveInject(MultipageComponentStateService)); };
25532
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateFlagComponent, selectors: [["ccd-update-flag"]], inputs: { formGroup: "formGroup", displayContextParameter: "displayContextParameter" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 23, vars: 22, consts: [["externalUser", ""], ["updateFlagStatusReason", ""], [3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper", "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--m"], ["id", "update-flag-hint-external", "class", "govuk-hint", 4, "ngIf"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "update-flag-comments-hint-external", "class", "govuk-hint", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["id", "flag-status-container-v2_1", "class", "govuk-!-margin-bottom-4", 4, "ngIf"], ["id", "translation-checkbox-container", "class", "govuk-!-margin-bottom-6", 4, "ngIf"], ["id", "flag-status-container-v1", "class", "govuk-grid-row", 4, "ngIf"], ["id", "update-flag-hint-external", 1, "govuk-hint"], ["id", "update-flag-comments-hint-external", 1, "govuk-hint"], ["id", "update-flag-comments-hint", 1, "govuk-hint"], ["class", "govuk-warning-text", 4, "ngIf"], ["id", "update-flag-comments-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-comments-hint update-flag-comments-char-limit-info update-flag-comments-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["id", "update-flag-comments-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "update-flag-comments-char-limit-error", 1, "govuk-error-message"], [4, "ngIf"], [4, "ngTemplateOutlet"], ["id", "update-flag-status-reason-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-status-reason-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-comments-hint-external update-flag-status-hint update-flag-status-reason-char-limit-info\n update-flag-status-reason-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-status-reason-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "update-flag-status-reason-not-entered-error-message", 1, "govuk-error-message"], ["id", "update-flag-status-reason-char-limit-error", 1, "govuk-error-message"], ["id", "flag-status-container-v2_1", 1, "govuk-!-margin-bottom-4"], ["aria-describedby", "update-flag-status-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--s"], ["id", "update-flag-status-heading", 1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--conditional", "govuk-!-margin-bottom-4", 3, "id"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "update-flag-status-hint", 1, "govuk-hint"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "formControlName", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "translation-checkbox-container", 1, "govuk-!-margin-bottom-6"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes"], [1, "govuk-checkboxes__item"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "formControlName", "id", "name"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["id", "flag-status-container-v1", 1, "govuk-grid-row"], [1, "govuk-grid-column-one-half"], [1, "govuk-tag", 3, "ngClass"], ["class", "button button-secondary", "type", "button", 3, "click", 4, "ngIf"], ["type", "button", 1, "button", "button-secondary", 3, "click"]], template: function UpdateFlagComponent_Template(rf, ctx) { if (rf & 1) {
25001
+ static ɵfac = function UpdateFlagComponent_Factory(t) { return new (t || UpdateFlagComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService)); };
25002
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateFlagComponent, selectors: [["ccd-update-flag"]], inputs: { formGroup: "formGroup", displayContextParameter: "displayContextParameter" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 27, vars: 25, consts: [["externalUser", ""], ["updateFlagStatusReason", ""], [3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper", "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--m"], ["id", "update-flag-hint-external", "class", "govuk-hint", 4, "ngIf"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "update-flag-comments-hint-external", "class", "govuk-hint", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["id", "flag-status-container-v2_1", "class", "govuk-!-margin-bottom-4", 4, "ngIf"], ["id", "translation-checkbox-container", "class", "govuk-!-margin-bottom-6", 4, "ngIf"], ["id", "flag-status-container-v1", "class", "govuk-grid-row", 4, "ngIf"], [1, "govuk-button-group"], ["id", "updateFlagNextButton", "type", "button", 1, "govuk-button", 3, "click"], ["id", "update-flag-hint-external", 1, "govuk-hint"], ["id", "update-flag-comments-hint-external", 1, "govuk-hint"], ["id", "update-flag-comments-hint", 1, "govuk-hint"], ["class", "govuk-warning-text", 4, "ngIf"], ["id", "update-flag-comments-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-comments-hint update-flag-comments-char-limit-info update-flag-comments-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["id", "update-flag-comments-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "update-flag-comments-char-limit-error", 1, "govuk-error-message"], [4, "ngIf"], [4, "ngTemplateOutlet"], ["id", "update-flag-status-reason-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-status-reason-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-comments-hint-external update-flag-status-hint update-flag-status-reason-char-limit-info\n update-flag-status-reason-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-status-reason-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "update-flag-status-reason-not-entered-error-message", 1, "govuk-error-message"], ["id", "update-flag-status-reason-char-limit-error", 1, "govuk-error-message"], ["id", "flag-status-container-v2_1", 1, "govuk-!-margin-bottom-4"], ["aria-describedby", "update-flag-status-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--s"], ["id", "update-flag-status-heading", 1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--conditional", "govuk-!-margin-bottom-4", 3, "id"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "update-flag-status-hint", 1, "govuk-hint"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "formControlName", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "translation-checkbox-container", 1, "govuk-!-margin-bottom-6"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes"], [1, "govuk-checkboxes__item"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "formControlName", "id", "name"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["id", "flag-status-container-v1", 1, "govuk-grid-row"], [1, "govuk-grid-column-one-half"], [1, "govuk-tag", 3, "ngClass"], ["class", "button button-secondary", "type", "button", 3, "click", 4, "ngIf"], ["type", "button", 1, "button", "button-secondary", 3, "click"]], template: function UpdateFlagComponent_Template(rf, ctx) { if (rf & 1) {
25003
+ const _r1 = i0.ɵɵgetCurrentView();
25533
25004
  i0.ɵɵelementContainerStart(0, 2);
25534
25005
  i0.ɵɵelementStart(1, "div", 3)(2, "div", 4)(3, "h1", 5)(4, "label", 6);
25535
25006
  i0.ɵɵtext(5);
@@ -25547,46 +25018,53 @@ class UpdateFlagComponent extends AbstractJourneyComponent {
25547
25018
  i0.ɵɵtemplate(18, UpdateFlagComponent_ng_template_18_Template, 7, 8, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(20, UpdateFlagComponent_div_20_Template, 13, 12, "div", 12)(21, UpdateFlagComponent_div_21_Template, 7, 7, "div", 13)(22, UpdateFlagComponent_div_22_Template, 11, 10, "div", 14);
25548
25019
  i0.ɵɵelementEnd()();
25549
25020
  i0.ɵɵelementContainerEnd();
25021
+ i0.ɵɵelementStart(23, "div", 15)(24, "button", 16);
25022
+ i0.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_24_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onNext()); });
25023
+ i0.ɵɵtext(25);
25024
+ i0.ɵɵpipe(26, "rpxTranslate");
25025
+ i0.ɵɵelementEnd()();
25550
25026
  } if (rf & 2) {
25551
- const externalUser_r5 = i0.ɵɵreference(17);
25027
+ const externalUser_r6 = i0.ɵɵreference(17);
25552
25028
  i0.ɵɵproperty("formGroup", ctx.formGroup);
25553
25029
  i0.ɵɵadvance(2);
25554
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(20, _c0$n, ctx.errorMessages.length > 0));
25030
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(23, _c0$n, ctx.errorMessages.length > 0));
25555
25031
  i0.ɵɵadvance(3);
25556
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 12, ctx.updateFlagTitle), " ");
25032
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 13, ctx.updateFlagTitle), " ");
25557
25033
  i0.ɵɵadvance(2);
25558
25034
  i0.ɵɵproperty("ngIf", ctx.externalUserUpdate);
25559
25035
  i0.ɵɵadvance(2);
25560
25036
  i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS);
25561
25037
  i0.ɵɵadvance();
25562
- i0.ɵɵtextInterpolate1(" ", ctx.externalUserUpdate ? i0.ɵɵpipeBind1(11, 14, ctx.updateFlagStepEnum.COMMENT_FIELD_LABEL_EXTERNAL) : i0.ɵɵpipeBind1(12, 16, ctx.updateFlagTitle) + i0.ɵɵpipeBind1(13, 18, " comments"), " ");
25038
+ i0.ɵɵtextInterpolate1(" ", ctx.externalUserUpdate ? i0.ɵɵpipeBind1(11, 15, ctx.updateFlagStepEnum.COMMENT_FIELD_LABEL_EXTERNAL) : i0.ɵɵpipeBind1(12, 17, ctx.updateFlagTitle) + i0.ɵɵpipeBind1(13, 19, " comments"), " ");
25563
25039
  i0.ɵɵadvance(4);
25564
25040
  i0.ɵɵproperty("ngIf", ctx.externalUserUpdate);
25565
25041
  i0.ɵɵadvance();
25566
- i0.ɵɵproperty("ngIf", ctx.internalUserUpdate || ctx.internalUser2Point1EnabledUpdate || ctx.displayContextParameter === "")("ngIfElse", externalUser_r5);
25042
+ i0.ɵɵproperty("ngIf", ctx.internalUserUpdate || ctx.internalUser2Point1EnabledUpdate || ctx.displayContextParameter === "")("ngIfElse", externalUser_r6);
25567
25043
  i0.ɵɵadvance(5);
25568
25044
  i0.ɵɵproperty("ngIf", ctx.internalUser2Point1EnabledUpdate);
25569
25045
  i0.ɵɵadvance();
25570
25046
  i0.ɵɵproperty("ngIf", ctx.internalUser2Point1EnabledUpdate);
25571
25047
  i0.ɵɵadvance();
25572
25048
  i0.ɵɵproperty("ngIf", ctx.internalUserUpdate);
25049
+ i0.ɵɵadvance(3);
25050
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(26, 21, "Next"), " ");
25573
25051
  } }, encapsulation: 2 });
25574
25052
  }
25575
25053
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UpdateFlagComponent, [{
25576
25054
  type: Component,
25577
- args: [{ selector: 'ccd-update-flag', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <h1 class=\"govuk-label-wrapper govuk-!-margin-bottom-4\">\n <label class=\"govuk-label govuk-label--m\">\n {{updateFlagTitle | rpxTranslate}}\n </label>\n </h1>\n <div id=\"update-flag-hint-external\" class=\"govuk-hint\" *ngIf=\"externalUserUpdate\">\n {{selectedFlag?.flagDetailDisplay?.flagDetail | updateFlagTitleDisplay}}\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label class=\"govuk-label govuk-label--s\" [for]=\"caseFlagFormFields.COMMENTS\">\n {{\n externalUserUpdate\n ? (updateFlagStepEnum.COMMENT_FIELD_LABEL_EXTERNAL | rpxTranslate)\n : (updateFlagTitle | rpxTranslate) + (' comments' | rpxTranslate)\n }}\n </label>\n <div id=\"update-flag-comments-hint-external\" class=\"govuk-hint\" *ngIf=\"externalUserUpdate\">\n {{updateFlagStepEnum.COMMENT_HINT_TEXT_EXTERNAL | rpxTranslate}}\n </div>\n <ng-container *ngIf=\"internalUserUpdate || internalUser2Point1EnabledUpdate || displayContextParameter === '';\n else externalUser\">\n <div id=\"update-flag-comments-hint\" class=\"govuk-hint\">\n {{\n internalUserUpdate\n ? (updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL | rpxTranslate)\n : (updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL_2_POINT_1 | rpxTranslate)\n }}\n </div>\n <div class=\"govuk-warning-text\" *ngIf=\"internalUser2Point1EnabledUpdate && externallyVisibleFlag\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{updateFlagStepEnum.WARNING_TEXT | rpxTranslate}}\n </strong>\n </div>\n <div id=\"update-flag-comments-not-entered-error-message\" class=\"govuk-error-message\" *ngIf=\"commentsNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{commentsNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"update-flag-comments-char-limit-error\" class=\"govuk-error-message\" *ngIf=\"commentsCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{commentsCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\"\n [id]=\"caseFlagFormFields.COMMENTS\"\n [name]=\"caseFlagFormFields.COMMENTS\"\n [formControlName]=\"caseFlagFormFields.COMMENTS\"\n rows=\"5\"\n aria-describedby=\"update-flag-comments-hint update-flag-comments-char-limit-info update-flag-comments-char-limit-error\">\n </textarea>\n <div id=\"update-flag-comments-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </ng-container>\n <ng-template #externalUser>\n <ng-container *ngIf=\"externalUserUpdate\">\n <ng-container *ngTemplateOutlet=\"updateFlagStatusReason\"></ng-container>\n </ng-container>\n </ng-template>\n </div>\n\n <ng-template #updateFlagStatusReason>\n <div id=\"update-flag-status-reason-not-entered-error-message\" class=\"govuk-error-message\" *ngIf=\"statusReasonNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{statusReasonNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"update-flag-status-reason-char-limit-error\" class=\"govuk-error-message\" *ngIf=\"statusReasonCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{statusReasonCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\"\n [id]=\"caseFlagFormFields.STATUS_CHANGE_REASON\"\n [name]=\"caseFlagFormFields.STATUS_CHANGE_REASON\"\n [formControlName]=\"caseFlagFormFields.STATUS_CHANGE_REASON\"\n rows=\"5\"\n aria-describedby=\"update-flag-comments-hint-external update-flag-status-hint update-flag-status-reason-char-limit-info\n update-flag-status-reason-char-limit-error\">\n </textarea>\n <div id=\"update-flag-status-reason-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </ng-template>\n\n <div id=\"flag-status-container-v2_1\" class=\"govuk-!-margin-bottom-4\" *ngIf=\"internalUser2Point1EnabledUpdate\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"update-flag-status-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--s\">\n <h1 id=\"update-flag-status-heading\" class=\"govuk-fieldset__heading\">\n {{updateFlagTitle | rpxTranslate}} {{'status' | rpxTranslate}}\n </h1>\n </legend>\n <div class=\"govuk-radios govuk-radios--conditional govuk-!-margin-bottom-4\" data-module=\"govuk-radios\" [id]=\"caseFlagFormFields.STATUS\">\n <div class=\"govuk-radios__item\" *ngFor=\"let status of validStatusProgressions\">\n <input class=\"govuk-radios__input\" type=\"radio\"\n [id]=\"caseFlagFormFields.STATUS + '_' + status\"\n [name]=\"caseFlagFormFields.STATUS\"\n [formControlName]=\"caseFlagFormFields.STATUS\"\n [value]=\"status\">\n <label class=\"govuk-label govuk-radios__label\" [for]=\"caseFlagFormFields.STATUS + '_' + status\">\n {{caseFlagStatusEnum[status] | rpxTranslate}}\n </label>\n </div>\n </div>\n </fieldset>\n\n <div id=\"update-flag-status-hint\" class=\"govuk-hint\">\n {{updateFlagStepEnum.STATUS_HINT_TEXT | rpxTranslate}}\n </div>\n <ng-container *ngTemplateOutlet=\"updateFlagStatusReason\"></ng-container>\n </div>\n\n <div id=\"translation-checkbox-container\" class=\"govuk-!-margin-bottom-6\" *ngIf=\"internalUser2Point1EnabledUpdate\">\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" type=\"checkbox\"\n [formControlName]=\"caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED\"\n [id]=\"caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED\"\n [name]=\"caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED\">\n <label class=\"govuk-label govuk-checkboxes__label\"\n [for]=\"caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED\">\n {{'I need to add a translation' | rpxTranslate}}\n </label>\n </div>\n </div>\n </div>\n\n <div id=\"flag-status-container-v1\" class=\"govuk-grid-row\" *ngIf=\"internalUserUpdate\">\n <div class=\"govuk-grid-column-one-half\">\n <p>{{'Flag status:' | rpxTranslate}}\n <span>\n <strong class=\"govuk-tag\" [ngClass]=\"{'govuk-tag--grey': selectedFlag.flagDetailDisplay.flagDetail.status === 'Inactive'}\">\n {{selectedFlag?.flagDetailDisplay?.flagDetail?.status | rpxTranslate}}\n </strong>\n </span>\n </p>\n </div>\n <div class=\"govuk-grid-column-one-half\">\n <button class=\"button button-secondary\" type=\"button\" (click)=\"onMakeInactive()\" *ngIf=\"selectedFlag.flagDetailDisplay.flagDetail.status === 'Active'\">\n {{'Make inactive' | rpxTranslate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n</ng-container>" }]
25578
- }], () => [{ type: i1.RpxTranslationService }, { type: MultipageComponentStateService }], { formGroup: [{
25055
+ args: [{ selector: 'ccd-update-flag', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <h1 class=\"govuk-label-wrapper govuk-!-margin-bottom-4\">\n <label class=\"govuk-label govuk-label--m\">\n {{updateFlagTitle | rpxTranslate}}\n </label>\n </h1>\n <div id=\"update-flag-hint-external\" class=\"govuk-hint\" *ngIf=\"externalUserUpdate\">\n {{selectedFlag?.flagDetailDisplay?.flagDetail | updateFlagTitleDisplay}}\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label class=\"govuk-label govuk-label--s\" [for]=\"caseFlagFormFields.COMMENTS\">\n {{\n externalUserUpdate\n ? (updateFlagStepEnum.COMMENT_FIELD_LABEL_EXTERNAL | rpxTranslate)\n : (updateFlagTitle | rpxTranslate) + (' comments' | rpxTranslate)\n }}\n </label>\n <div id=\"update-flag-comments-hint-external\" class=\"govuk-hint\" *ngIf=\"externalUserUpdate\">\n {{updateFlagStepEnum.COMMENT_HINT_TEXT_EXTERNAL | rpxTranslate}}\n </div>\n <ng-container *ngIf=\"internalUserUpdate || internalUser2Point1EnabledUpdate || displayContextParameter === '';\n else externalUser\">\n <div id=\"update-flag-comments-hint\" class=\"govuk-hint\">\n {{\n internalUserUpdate\n ? (updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL | rpxTranslate)\n : (updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL_2_POINT_1 | rpxTranslate)\n }}\n </div>\n <div class=\"govuk-warning-text\" *ngIf=\"internalUser2Point1EnabledUpdate && externallyVisibleFlag\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{updateFlagStepEnum.WARNING_TEXT | rpxTranslate}}\n </strong>\n </div>\n <div id=\"update-flag-comments-not-entered-error-message\" class=\"govuk-error-message\" *ngIf=\"commentsNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{commentsNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"update-flag-comments-char-limit-error\" class=\"govuk-error-message\" *ngIf=\"commentsCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{commentsCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\"\n [id]=\"caseFlagFormFields.COMMENTS\"\n [name]=\"caseFlagFormFields.COMMENTS\"\n [formControlName]=\"caseFlagFormFields.COMMENTS\"\n rows=\"5\"\n aria-describedby=\"update-flag-comments-hint update-flag-comments-char-limit-info update-flag-comments-char-limit-error\">\n </textarea>\n <div id=\"update-flag-comments-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </ng-container>\n <ng-template #externalUser>\n <ng-container *ngIf=\"externalUserUpdate\">\n <ng-container *ngTemplateOutlet=\"updateFlagStatusReason\"></ng-container>\n </ng-container>\n </ng-template>\n </div>\n\n <ng-template #updateFlagStatusReason>\n <div id=\"update-flag-status-reason-not-entered-error-message\" class=\"govuk-error-message\" *ngIf=\"statusReasonNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{statusReasonNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"update-flag-status-reason-char-limit-error\" class=\"govuk-error-message\" *ngIf=\"statusReasonCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{statusReasonCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\"\n [id]=\"caseFlagFormFields.STATUS_CHANGE_REASON\"\n [name]=\"caseFlagFormFields.STATUS_CHANGE_REASON\"\n [formControlName]=\"caseFlagFormFields.STATUS_CHANGE_REASON\"\n rows=\"5\"\n aria-describedby=\"update-flag-comments-hint-external update-flag-status-hint update-flag-status-reason-char-limit-info\n update-flag-status-reason-char-limit-error\">\n </textarea>\n <div id=\"update-flag-status-reason-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </ng-template>\n\n <div id=\"flag-status-container-v2_1\" class=\"govuk-!-margin-bottom-4\" *ngIf=\"internalUser2Point1EnabledUpdate\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"update-flag-status-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--s\">\n <h1 id=\"update-flag-status-heading\" class=\"govuk-fieldset__heading\">\n {{updateFlagTitle | rpxTranslate}} {{'status' | rpxTranslate}}\n </h1>\n </legend>\n <div class=\"govuk-radios govuk-radios--conditional govuk-!-margin-bottom-4\" data-module=\"govuk-radios\" [id]=\"caseFlagFormFields.STATUS\">\n <div class=\"govuk-radios__item\" *ngFor=\"let status of validStatusProgressions\">\n <input class=\"govuk-radios__input\" type=\"radio\"\n [id]=\"caseFlagFormFields.STATUS + '_' + status\"\n [name]=\"caseFlagFormFields.STATUS\"\n [formControlName]=\"caseFlagFormFields.STATUS\"\n [value]=\"status\">\n <label class=\"govuk-label govuk-radios__label\" [for]=\"caseFlagFormFields.STATUS + '_' + status\">\n {{caseFlagStatusEnum[status] | rpxTranslate}}\n </label>\n </div>\n </div>\n </fieldset>\n\n <div id=\"update-flag-status-hint\" class=\"govuk-hint\">\n {{updateFlagStepEnum.STATUS_HINT_TEXT | rpxTranslate}}\n </div>\n <ng-container *ngTemplateOutlet=\"updateFlagStatusReason\"></ng-container>\n </div>\n\n <div id=\"translation-checkbox-container\" class=\"govuk-!-margin-bottom-6\" *ngIf=\"internalUser2Point1EnabledUpdate\">\n <div class=\"govuk-checkboxes\" data-module=\"govuk-checkboxes\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" type=\"checkbox\"\n [formControlName]=\"caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED\"\n [id]=\"caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED\"\n [name]=\"caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED\">\n <label class=\"govuk-label govuk-checkboxes__label\"\n [for]=\"caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED\">\n {{'I need to add a translation' | rpxTranslate}}\n </label>\n </div>\n </div>\n </div>\n\n <div id=\"flag-status-container-v1\" class=\"govuk-grid-row\" *ngIf=\"internalUserUpdate\">\n <div class=\"govuk-grid-column-one-half\">\n <p>{{'Flag status:' | rpxTranslate}}\n <span>\n <strong class=\"govuk-tag\" [ngClass]=\"{'govuk-tag--grey': selectedFlag.flagDetailDisplay.flagDetail.status === 'Inactive'}\">\n {{selectedFlag?.flagDetailDisplay?.flagDetail?.status | rpxTranslate}}\n </strong>\n </span>\n </p>\n </div>\n <div class=\"govuk-grid-column-one-half\">\n <button class=\"button button-secondary\" type=\"button\" (click)=\"onMakeInactive()\" *ngIf=\"selectedFlag.flagDetailDisplay.flagDetail.status === 'Active'\">\n {{'Make inactive' | rpxTranslate}}\n </button>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n\n<div class=\"govuk-button-group\">\n <button id=\"updateFlagNextButton\" class=\"govuk-button\" type=\"button\" (click)=\"onNext()\">\n {{'Next' | rpxTranslate}}\n </button>\n</div>\n" }]
25056
+ }], () => [{ type: i1.RpxTranslationService }], { formGroup: [{
25579
25057
  type: Input
25580
25058
  }], displayContextParameter: [{
25581
25059
  type: Input
25582
25060
  }], caseFlagStateEmitter: [{
25583
25061
  type: Output
25584
25062
  }] }); })();
25585
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UpdateFlagComponent, { className: "UpdateFlagComponent", filePath: "lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.ts", lineNumber: 22 }); })();
25063
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UpdateFlagComponent, { className: "UpdateFlagComponent", filePath: "lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.ts", lineNumber: 20 }); })();
25586
25064
 
25587
25065
  const _c0$m = a0 => ({ "form-group-error": a0 });
25588
25066
  function UpdateFlagAddTranslationFormComponent_div_14_Template(rf, ctx) { if (rf & 1) {
25589
- i0.ɵɵelementStart(0, "div", 17)(1, "span", 18);
25067
+ i0.ɵɵelementStart(0, "div", 19)(1, "span", 20);
25590
25068
  i0.ɵɵtext(2);
25591
25069
  i0.ɵɵpipe(3, "rpxTranslate");
25592
25070
  i0.ɵɵelementEnd();
@@ -25601,7 +25079,7 @@ function UpdateFlagAddTranslationFormComponent_div_14_Template(rf, ctx) { if (rf
25601
25079
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.otherFlagDescriptionCharLimitErrorMessage), " ");
25602
25080
  } }
25603
25081
  function UpdateFlagAddTranslationFormComponent_div_24_Template(rf, ctx) { if (rf & 1) {
25604
- i0.ɵɵelementStart(0, "div", 19)(1, "span", 18);
25082
+ i0.ɵɵelementStart(0, "div", 21)(1, "span", 20);
25605
25083
  i0.ɵɵtext(2);
25606
25084
  i0.ɵɵpipe(3, "rpxTranslate");
25607
25085
  i0.ɵɵelementEnd();
@@ -25616,7 +25094,7 @@ function UpdateFlagAddTranslationFormComponent_div_24_Template(rf, ctx) { if (rf
25616
25094
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.otherFlagDescriptionWelshCharLimitErrorMessage), " ");
25617
25095
  } }
25618
25096
  function UpdateFlagAddTranslationFormComponent_div_34_Template(rf, ctx) { if (rf & 1) {
25619
- i0.ɵɵelementStart(0, "div", 20)(1, "span", 18);
25097
+ i0.ɵɵelementStart(0, "div", 22)(1, "span", 20);
25620
25098
  i0.ɵɵtext(2);
25621
25099
  i0.ɵɵpipe(3, "rpxTranslate");
25622
25100
  i0.ɵɵelementEnd();
@@ -25631,7 +25109,7 @@ function UpdateFlagAddTranslationFormComponent_div_34_Template(rf, ctx) { if (rf
25631
25109
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsCharLimitErrorMessage), " ");
25632
25110
  } }
25633
25111
  function UpdateFlagAddTranslationFormComponent_div_44_Template(rf, ctx) { if (rf & 1) {
25634
- i0.ɵɵelementStart(0, "div", 21)(1, "span", 18);
25112
+ i0.ɵɵelementStart(0, "div", 23)(1, "span", 20);
25635
25113
  i0.ɵɵtext(2);
25636
25114
  i0.ɵɵpipe(3, "rpxTranslate");
25637
25115
  i0.ɵɵelementEnd();
@@ -25645,7 +25123,7 @@ function UpdateFlagAddTranslationFormComponent_div_44_Template(rf, ctx) { if (rf
25645
25123
  i0.ɵɵadvance(2);
25646
25124
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsWelshCharLimitErrorMessage), " ");
25647
25125
  } }
25648
- class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
25126
+ class UpdateFlagAddTranslationFormComponent {
25649
25127
  formGroup;
25650
25128
  caseFlagStateEmitter = new EventEmitter();
25651
25129
  selectedFlag;
@@ -25719,14 +25197,8 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
25719
25197
  });
25720
25198
  }
25721
25199
  }
25722
- next() {
25723
- this.onNext();
25724
- if (this.errorMessages.length === 0) {
25725
- super.next();
25726
- }
25727
- }
25728
- static ɵfac = /*@__PURE__*/ (() => { let ɵUpdateFlagAddTranslationFormComponent_BaseFactory; return function UpdateFlagAddTranslationFormComponent_Factory(t) { return (ɵUpdateFlagAddTranslationFormComponent_BaseFactory || (ɵUpdateFlagAddTranslationFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(UpdateFlagAddTranslationFormComponent)))(t || UpdateFlagAddTranslationFormComponent); }; })();
25729
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateFlagAddTranslationFormComponent, selectors: [["ccd-update-flag-add-translation-form"]], inputs: { formGroup: "formGroup" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 50, vars: 54, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper", "govuk-!-margin-bottom-6"], [1, "govuk-label", "govuk-label--m"], ["id", "add-translation-form-hint", 1, "govuk-hint"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "add-translation-other-flag-description-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "add-translation-other-flag-description-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-other-flag-description-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-flag-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-flag-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-flag-comments-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-other-flag-description-char-limit-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", 1, "govuk-error-message"]], template: function UpdateFlagAddTranslationFormComponent_Template(rf, ctx) { if (rf & 1) {
25200
+ static ɵfac = function UpdateFlagAddTranslationFormComponent_Factory(t) { return new (t || UpdateFlagAddTranslationFormComponent)(); };
25201
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateFlagAddTranslationFormComponent, selectors: [["ccd-update-flag-add-translation-form"]], inputs: { formGroup: "formGroup" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 54, vars: 57, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper", "govuk-!-margin-bottom-6"], [1, "govuk-label", "govuk-label--m"], ["id", "add-translation-form-hint", 1, "govuk-hint"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "add-translation-other-flag-description-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "add-translation-other-flag-description-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-other-flag-description-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-flag-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-flag-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-flag-comments-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-button-group"], ["id", "updateFlagNextButton", "type", "button", 1, "govuk-button", 3, "click"], ["id", "add-translation-other-flag-description-char-limit-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", 1, "govuk-error-message"]], template: function UpdateFlagAddTranslationFormComponent_Template(rf, ctx) { if (rf & 1) {
25730
25202
  i0.ɵɵelementContainerStart(0, 0);
25731
25203
  i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "h1", 3)(4, "label", 4);
25732
25204
  i0.ɵɵtext(5);
@@ -25785,71 +25257,78 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
25785
25257
  i0.ɵɵpipe(49, "rpxTranslate");
25786
25258
  i0.ɵɵelementEnd()()()();
25787
25259
  i0.ɵɵelementContainerEnd();
25260
+ i0.ɵɵelementStart(50, "div", 17)(51, "button", 18);
25261
+ i0.ɵɵlistener("click", function UpdateFlagAddTranslationFormComponent_Template_button_click_51_listener() { return ctx.onNext(); });
25262
+ i0.ɵɵtext(52);
25263
+ i0.ɵɵpipe(53, "rpxTranslate");
25264
+ i0.ɵɵelementEnd()();
25788
25265
  } if (rf & 2) {
25789
25266
  i0.ɵɵproperty("formGroup", ctx.formGroup);
25790
25267
  i0.ɵɵadvance(2);
25791
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(52, _c0$m, ctx.errorMessages.length > 0));
25268
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(55, _c0$m, ctx.errorMessages.length > 0));
25792
25269
  i0.ɵɵadvance(3);
25793
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 32, ctx.updateFlagAddTranslationTitle), " ");
25270
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 33, ctx.updateFlagAddTranslationTitle), " ");
25794
25271
  i0.ɵɵadvance(3);
25795
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 34, ctx.updateFlagAddTranslationStepEnum.HINT_TEXT), " ");
25272
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 35, ctx.updateFlagAddTranslationStepEnum.HINT_TEXT), " ");
25796
25273
  i0.ɵɵadvance(3);
25797
25274
  i0.ɵɵproperty("for", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
25798
25275
  i0.ɵɵadvance();
25799
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 36, "Other description"));
25276
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 37, "Other description"));
25800
25277
  i0.ɵɵadvance(2);
25801
25278
  i0.ɵɵproperty("ngIf", ctx.otherFlagDescriptionCharLimitErrorMessage);
25802
25279
  i0.ɵɵadvance();
25803
25280
  i0.ɵɵproperty("id", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("name", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("formControlName", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
25804
25281
  i0.ɵɵadvance(3);
25805
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 38, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
25282
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 39, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
25806
25283
  i0.ɵɵadvance(3);
25807
25284
  i0.ɵɵproperty("for", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
25808
25285
  i0.ɵɵadvance();
25809
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 40, "Other description (Welsh)"));
25286
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 41, "Other description (Welsh)"));
25810
25287
  i0.ɵɵadvance(2);
25811
25288
  i0.ɵɵproperty("ngIf", ctx.otherFlagDescriptionWelshCharLimitErrorMessage);
25812
25289
  i0.ɵɵadvance();
25813
25290
  i0.ɵɵproperty("id", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("name", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("formControlName", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
25814
25291
  i0.ɵɵadvance(3);
25815
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 42, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
25292
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 43, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
25816
25293
  i0.ɵɵadvance(3);
25817
25294
  i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS);
25818
25295
  i0.ɵɵadvance();
25819
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(33, 44, "Flag comments"));
25296
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(33, 45, "Flag comments"));
25820
25297
  i0.ɵɵadvance(2);
25821
25298
  i0.ɵɵproperty("ngIf", ctx.flagCommentsCharLimitErrorMessage);
25822
25299
  i0.ɵɵadvance();
25823
25300
  i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS)("name", ctx.caseFlagFormFields.COMMENTS)("formControlName", ctx.caseFlagFormFields.COMMENTS);
25824
25301
  i0.ɵɵadvance(3);
25825
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(39, 46, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
25302
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(39, 47, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
25826
25303
  i0.ɵɵadvance(3);
25827
25304
  i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS_WELSH);
25828
25305
  i0.ɵɵadvance();
25829
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(43, 48, "Flag comments (Welsh)"));
25306
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(43, 49, "Flag comments (Welsh)"));
25830
25307
  i0.ɵɵadvance(2);
25831
25308
  i0.ɵɵproperty("ngIf", ctx.flagCommentsWelshCharLimitErrorMessage);
25832
25309
  i0.ɵɵadvance();
25833
25310
  i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS_WELSH)("name", ctx.caseFlagFormFields.COMMENTS_WELSH)("formControlName", ctx.caseFlagFormFields.COMMENTS_WELSH);
25834
25311
  i0.ɵɵadvance(3);
25835
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(49, 50, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
25312
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(49, 51, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
25313
+ i0.ɵɵadvance(4);
25314
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(53, 53, "Next"), " ");
25836
25315
  } }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
25837
25316
  }
25838
25317
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UpdateFlagAddTranslationFormComponent, [{
25839
25318
  type: Component,
25840
- args: [{ selector: 'ccd-update-flag-add-translation-form', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <h1 class=\"govuk-label-wrapper govuk-!-margin-bottom-6\">\n <label class=\"govuk-label govuk-label--m\">\n {{ updateFlagAddTranslationTitle | rpxTranslate}}\n </label>\n </h1>\n <div id=\"add-translation-form-hint\" class=\"govuk-hint\">\n {{ updateFlagAddTranslationStepEnum.HINT_TEXT | rpxTranslate}}\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\" class=\"govuk-label govuk-label--s\">{{'Other description' | rpxTranslate}}</label>\n <div id=\"add-translation-other-flag-description-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"otherFlagDescriptionCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{otherFlagDescriptionCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\"\n [name]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\"\n [formControlName]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\">\n </textarea>\n <div id=\"add-translation-other-flag-description-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\" class=\"govuk-label govuk-label--s\">{{'Other description (Welsh)' | rpxTranslate}}</label>\n <div id=\"add-translation-other-flag-description-welsh-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"otherFlagDescriptionWelshCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{otherFlagDescriptionWelshCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\"\n [name]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\"\n [formControlName]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\">\n </textarea>\n <div id=\"add-translation-other-flag-description-welsh-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.COMMENTS\" class=\"govuk-label govuk-label--s\">{{'Flag comments' | rpxTranslate}}</label>\n <div id=\"add-translation-flag-comments-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.COMMENTS\"\n [name]=\"caseFlagFormFields.COMMENTS\"\n [formControlName]=\"caseFlagFormFields.COMMENTS\">\n </textarea>\n <div id=\"add-translation-flag-comments-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.COMMENTS_WELSH\" class=\"govuk-label govuk-label--s\">{{'Flag comments (Welsh)' | rpxTranslate}}</label>\n <div id=\"add-translation-flag-comments-welsh-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsWelshCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsWelshCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.COMMENTS_WELSH\"\n [name]=\"caseFlagFormFields.COMMENTS_WELSH\"\n [formControlName]=\"caseFlagFormFields.COMMENTS_WELSH\">\n </textarea>\n <div id=\"add-translation-flag-comments-welsh-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n </div>\n </div>\n</ng-container>" }]
25319
+ args: [{ selector: 'ccd-update-flag-add-translation-form', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <h1 class=\"govuk-label-wrapper govuk-!-margin-bottom-6\">\n <label class=\"govuk-label govuk-label--m\">\n {{ updateFlagAddTranslationTitle | rpxTranslate}}\n </label>\n </h1>\n <div id=\"add-translation-form-hint\" class=\"govuk-hint\">\n {{ updateFlagAddTranslationStepEnum.HINT_TEXT | rpxTranslate}}\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\" class=\"govuk-label govuk-label--s\">{{'Other description' | rpxTranslate}}</label>\n <div id=\"add-translation-other-flag-description-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"otherFlagDescriptionCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{otherFlagDescriptionCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\"\n [name]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\"\n [formControlName]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\">\n </textarea>\n <div id=\"add-translation-other-flag-description-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\" class=\"govuk-label govuk-label--s\">{{'Other description (Welsh)' | rpxTranslate}}</label>\n <div id=\"add-translation-other-flag-description-welsh-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"otherFlagDescriptionWelshCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{otherFlagDescriptionWelshCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\"\n [name]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\"\n [formControlName]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\">\n </textarea>\n <div id=\"add-translation-other-flag-description-welsh-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.COMMENTS\" class=\"govuk-label govuk-label--s\">{{'Flag comments' | rpxTranslate}}</label>\n <div id=\"add-translation-flag-comments-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.COMMENTS\"\n [name]=\"caseFlagFormFields.COMMENTS\"\n [formControlName]=\"caseFlagFormFields.COMMENTS\">\n </textarea>\n <div id=\"add-translation-flag-comments-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.COMMENTS_WELSH\" class=\"govuk-label govuk-label--s\">{{'Flag comments (Welsh)' | rpxTranslate}}</label>\n <div id=\"add-translation-flag-comments-welsh-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsWelshCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsWelshCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.COMMENTS_WELSH\"\n [name]=\"caseFlagFormFields.COMMENTS_WELSH\"\n [formControlName]=\"caseFlagFormFields.COMMENTS_WELSH\">\n </textarea>\n <div id=\"add-translation-flag-comments-welsh-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n\n<div class=\"govuk-button-group\">\n <button id=\"updateFlagNextButton\" class=\"govuk-button\" type=\"button\" (click)=\"onNext()\">\n {{'Next' | rpxTranslate}}\n </button>\n</div>\n" }]
25841
25320
  }], null, { formGroup: [{
25842
25321
  type: Input
25843
25322
  }], caseFlagStateEmitter: [{
25844
25323
  type: Output
25845
25324
  }] }); })();
25846
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UpdateFlagAddTranslationFormComponent, { className: "UpdateFlagAddTranslationFormComponent", filePath: "lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.ts", lineNumber: 18 }); })();
25325
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UpdateFlagAddTranslationFormComponent, { className: "UpdateFlagAddTranslationFormComponent", filePath: "lib/shared/components/palette/case-flag/components/update-flag/update-flag-add-translation-form/update-flag-add-translation-form.component.ts", lineNumber: 17 }); })();
25847
25326
 
25848
25327
  const _c0$l = a0 => ({ "form-group-error": a0 });
25849
25328
  function ConfirmFlagStatusComponent_div_9_Template(rf, ctx) { if (rf & 1) {
25850
- i0.ɵɵelementStart(0, "div", 13);
25851
- i0.ɵɵelement(1, "input", 14);
25852
- i0.ɵɵelementStart(2, "label", 15);
25329
+ i0.ɵɵelementStart(0, "div", 15);
25330
+ i0.ɵɵelement(1, "input", 16);
25331
+ i0.ɵɵelementStart(2, "label", 17);
25853
25332
  i0.ɵɵtext(3);
25854
25333
  i0.ɵɵpipe(4, "rpxTranslate");
25855
25334
  i0.ɵɵelementEnd()();
@@ -25866,7 +25345,7 @@ function ConfirmFlagStatusComponent_div_9_Template(rf, ctx) { if (rf & 1) {
25866
25345
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 8, ctx_r2.caseFlagStatusEnum[status_r1]), " ");
25867
25346
  } }
25868
25347
  function ConfirmFlagStatusComponent_div_13_Template(rf, ctx) { if (rf & 1) {
25869
- i0.ɵɵelementStart(0, "div", 16)(1, "span", 17);
25348
+ i0.ɵɵelementStart(0, "div", 18)(1, "span", 19);
25870
25349
  i0.ɵɵtext(2);
25871
25350
  i0.ɵɵpipe(3, "rpxTranslate");
25872
25351
  i0.ɵɵelementEnd();
@@ -25881,7 +25360,7 @@ function ConfirmFlagStatusComponent_div_13_Template(rf, ctx) { if (rf & 1) {
25881
25360
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r2.statusReasonNotEnteredErrorMessage), " ");
25882
25361
  } }
25883
25362
  function ConfirmFlagStatusComponent_div_14_Template(rf, ctx) { if (rf & 1) {
25884
- i0.ɵɵelementStart(0, "div", 18)(1, "span", 17);
25363
+ i0.ɵɵelementStart(0, "div", 20)(1, "span", 19);
25885
25364
  i0.ɵɵtext(2);
25886
25365
  i0.ɵɵpipe(3, "rpxTranslate");
25887
25366
  i0.ɵɵelementEnd();
@@ -25895,7 +25374,7 @@ function ConfirmFlagStatusComponent_div_14_Template(rf, ctx) { if (rf & 1) {
25895
25374
  i0.ɵɵadvance(2);
25896
25375
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r2.statusReasonCharLimitErrorMessage), " ");
25897
25376
  } }
25898
- class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
25377
+ class ConfirmFlagStatusComponent {
25899
25378
  formGroup;
25900
25379
  defaultStatus;
25901
25380
  caseFlagStateEmitter = new EventEmitter();
@@ -25924,12 +25403,6 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
25924
25403
  // Return case flag field state and error messages to the parent
25925
25404
  this.caseFlagStateEmitter.emit({ currentCaseFlagFieldState: CaseFlagFieldState.FLAG_STATUS, errorMessages: this.errorMessages });
25926
25405
  }
25927
- next() {
25928
- this.onNext();
25929
- if (this.errorMessages.length === 0) {
25930
- super.next();
25931
- }
25932
- }
25933
25406
  validateTextEntry() {
25934
25407
  this.statusReasonNotEnteredErrorMessage = null;
25935
25408
  this.statusReasonCharLimitErrorMessage = null;
@@ -25953,8 +25426,8 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
25953
25426
  });
25954
25427
  }
25955
25428
  }
25956
- static ɵfac = /*@__PURE__*/ (() => { let ɵConfirmFlagStatusComponent_BaseFactory; return function ConfirmFlagStatusComponent_Factory(t) { return (ɵConfirmFlagStatusComponent_BaseFactory || (ɵConfirmFlagStatusComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ConfirmFlagStatusComponent)))(t || ConfirmFlagStatusComponent); }; })();
25957
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConfirmFlagStatusComponent, selectors: [["ccd-confirm-flag-status"]], inputs: { formGroup: "formGroup", defaultStatus: "defaultStatus" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 19, vars: 19, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "confirm-flag-status-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "confirm-flag-status-heading", 1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional", "govuk-!-margin-bottom-4"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "status-reason-hint", 1, "govuk-hint"], ["id", "status-reason-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "status-reason-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "status-reason-hint status-reason-char-limit-info", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "status-reason-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "status-reason-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "status-reason-char-limit-error", 1, "govuk-error-message"]], template: function ConfirmFlagStatusComponent_Template(rf, ctx) { if (rf & 1) {
25429
+ static ɵfac = function ConfirmFlagStatusComponent_Factory(t) { return new (t || ConfirmFlagStatusComponent)(); };
25430
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConfirmFlagStatusComponent, selectors: [["ccd-confirm-flag-status"]], inputs: { formGroup: "formGroup", defaultStatus: "defaultStatus" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 23, vars: 22, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "confirm-flag-status-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--m"], ["id", "confirm-flag-status-heading", 1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional", "govuk-!-margin-bottom-4"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "status-reason-hint", 1, "govuk-hint"], ["id", "status-reason-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "status-reason-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "status-reason-hint status-reason-char-limit-info", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "status-reason-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "status-reason-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "status-reason-char-limit-error", 1, "govuk-error-message"]], template: function ConfirmFlagStatusComponent_Template(rf, ctx) { if (rf & 1) {
25958
25431
  i0.ɵɵelementContainerStart(0, 0);
25959
25432
  i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "fieldset", 3)(4, "legend", 4)(5, "h1", 5);
25960
25433
  i0.ɵɵtext(6);
@@ -25974,16 +25447,21 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
25974
25447
  i0.ɵɵpipe(18, "rpxTranslate");
25975
25448
  i0.ɵɵelementEnd()()();
25976
25449
  i0.ɵɵelementContainerEnd();
25450
+ i0.ɵɵelementStart(19, "div", 13)(20, "button", 14);
25451
+ i0.ɵɵlistener("click", function ConfirmFlagStatusComponent_Template_button_click_20_listener() { return ctx.onNext(); });
25452
+ i0.ɵɵtext(21);
25453
+ i0.ɵɵpipe(22, "rpxTranslate");
25454
+ i0.ɵɵelementEnd()();
25977
25455
  } if (rf & 2) {
25978
25456
  i0.ɵɵproperty("formGroup", ctx.formGroup);
25979
25457
  i0.ɵɵadvance(2);
25980
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(17, _c0$l, ctx.errorMessages.length > 0));
25458
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(20, _c0$l, ctx.errorMessages.length > 0));
25981
25459
  i0.ɵɵadvance(4);
25982
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 11, ctx.confirmFlagStatusTitle), " ");
25460
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 12, ctx.confirmFlagStatusTitle), " ");
25983
25461
  i0.ɵɵadvance(3);
25984
25462
  i0.ɵɵproperty("ngForOf", ctx.flagCreationStatuses);
25985
25463
  i0.ɵɵadvance(2);
25986
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 13, ctx.statusReasonHint), " ");
25464
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 14, ctx.statusReasonHint), " ");
25987
25465
  i0.ɵɵadvance(2);
25988
25466
  i0.ɵɵproperty("ngIf", ctx.statusReasonNotEnteredErrorMessage);
25989
25467
  i0.ɵɵadvance();
@@ -25991,12 +25469,14 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
25991
25469
  i0.ɵɵadvance();
25992
25470
  i0.ɵɵproperty("id", ctx.statusReasonControlName)("name", ctx.statusReasonControlName)("formControlName", ctx.statusReasonControlName);
25993
25471
  i0.ɵɵadvance(2);
25994
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 15, ctx.statusReasonCharLimitInfo), " ");
25472
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 16, ctx.statusReasonCharLimitInfo), " ");
25473
+ i0.ɵɵadvance(4);
25474
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(22, 18, "Next"));
25995
25475
  } }, dependencies: [i5.NgClass, i5.NgForOf, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
25996
25476
  }
25997
25477
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfirmFlagStatusComponent, [{
25998
25478
  type: Component,
25999
- args: [{ selector: 'ccd-confirm-flag-status', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"confirm-flag-status-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 id=\"confirm-flag-status-heading\" class=\"govuk-fieldset__heading\">\n {{confirmFlagStatusTitle | rpxTranslate}}\n </h1>\n </legend>\n <div class=\"govuk-radios govuk-radios--conditional govuk-!-margin-bottom-4\" data-module=\"govuk-radios\" id=\"conditional-radios-list\">\n <div class=\"govuk-radios__item\" *ngFor=\"let status of flagCreationStatuses; index as i\">\n <input class=\"govuk-radios__input\" id=\"flag-status-{{i}}\" [name]=\"selectedStatusControlName\"\n type=\"radio\" [value]=\"status\" [formControlName]=\"selectedStatusControlName\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"flag-status-{{i}}\">\n {{caseFlagStatusEnum[status] | rpxTranslate}}\n </label>\n </div>\n </div>\n </fieldset>\n <div id=\"status-reason-hint\" class=\"govuk-hint\">\n {{statusReasonHint | rpxTranslate}}\n </div>\n <div id=\"status-reason-not-entered-error-message\" class=\"govuk-error-message\"\n *ngIf=\"statusReasonNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{statusReasonNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"status-reason-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"statusReasonCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{statusReasonCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\" [id]=\"statusReasonControlName\"\n [name]=\"statusReasonControlName\" [formControlName]=\"statusReasonControlName\" rows=\"5\"\n aria-describedby=\"status-reason-hint status-reason-char-limit-info\"></textarea>\n <div id=\"status-reason-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{statusReasonCharLimitInfo | rpxTranslate}}\n </div>\n </div>\n </div>\n</ng-container>" }]
25479
+ args: [{ selector: 'ccd-confirm-flag-status', template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"confirm-flag-status-heading\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--m\">\n <h1 id=\"confirm-flag-status-heading\" class=\"govuk-fieldset__heading\">\n {{confirmFlagStatusTitle | rpxTranslate}}\n </h1>\n </legend>\n <div class=\"govuk-radios govuk-radios--conditional govuk-!-margin-bottom-4\" data-module=\"govuk-radios\" id=\"conditional-radios-list\">\n <div class=\"govuk-radios__item\" *ngFor=\"let status of flagCreationStatuses; index as i\">\n <input class=\"govuk-radios__input\" id=\"flag-status-{{i}}\" [name]=\"selectedStatusControlName\"\n type=\"radio\" [value]=\"status\" [formControlName]=\"selectedStatusControlName\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"flag-status-{{i}}\">\n {{caseFlagStatusEnum[status] | rpxTranslate}}\n </label>\n </div>\n </div>\n </fieldset>\n <div id=\"status-reason-hint\" class=\"govuk-hint\">\n {{statusReasonHint | rpxTranslate}}\n </div>\n <div id=\"status-reason-not-entered-error-message\" class=\"govuk-error-message\"\n *ngIf=\"statusReasonNotEnteredErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{statusReasonNotEnteredErrorMessage | rpxTranslate}}\n </div>\n <div id=\"status-reason-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"statusReasonCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{statusReasonCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\" [id]=\"statusReasonControlName\"\n [name]=\"statusReasonControlName\" [formControlName]=\"statusReasonControlName\" rows=\"5\"\n aria-describedby=\"status-reason-hint status-reason-char-limit-info\"></textarea>\n <div id=\"status-reason-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{statusReasonCharLimitInfo | rpxTranslate}}\n </div>\n </div>\n </div>\n</ng-container>\n\n<div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"onNext()\">{{'Next' | rpxTranslate}}</button>\n</div>\n" }]
26000
25480
  }], null, { formGroup: [{
26001
25481
  type: Input
26002
25482
  }], defaultStatus: [{
@@ -26004,7 +25484,7 @@ class ConfirmFlagStatusComponent extends AbstractJourneyComponent {
26004
25484
  }], caseFlagStateEmitter: [{
26005
25485
  type: Output
26006
25486
  }] }); })();
26007
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ConfirmFlagStatusComponent, { className: "ConfirmFlagStatusComponent", filePath: "lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.ts", lineNumber: 18 }); })();
25487
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ConfirmFlagStatusComponent, { className: "ConfirmFlagStatusComponent", filePath: "lib/shared/components/palette/case-flag/components/confirm-flag-status/confirm-flag-status.component.ts", lineNumber: 17 }); })();
26008
25488
 
26009
25489
  class FlagFieldDisplayPipe extends AsyncPipe {
26010
25490
  translationService;
@@ -27820,7 +27300,7 @@ class CcdPageFieldsPipe {
27820
27300
  const control = dataFormGroup.controls['data'].get(key);
27821
27301
  return control['caseField'];
27822
27302
  }).filter(field => {
27823
- return field && !!page.case_fields.find(pcf => pcf.id === field.id);
27303
+ return !!page.case_fields.find(pcf => pcf.id === field.id);
27824
27304
  }).sort((a, b) => a.order - b.order);
27825
27305
  const rawValue = dataFormGroup.value;
27826
27306
  const value = page.case_fields.reduce((acc, field) => {
@@ -29352,6 +28832,19 @@ function CaseEditSubmitComponent_ccd_case_event_completion_13_Template(rf, ctx)
29352
28832
  const ctx_r1 = i0.ɵɵnextContext();
29353
28833
  i0.ɵɵproperty("eventCompletionParams", ctx_r1.caseEdit.eventCompletionParams);
29354
28834
  } }
28835
+ function CaseEditSubmitComponent_button_15_Template(rf, ctx) { if (rf & 1) {
28836
+ const _r8 = i0.ɵɵgetCurrentView();
28837
+ i0.ɵɵelementStart(0, "button", 50);
28838
+ i0.ɵɵlistener("click", function CaseEditSubmitComponent_button_15_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.previous()); });
28839
+ i0.ɵɵtext(1);
28840
+ i0.ɵɵpipe(2, "rpxTranslate");
28841
+ i0.ɵɵelementEnd();
28842
+ } if (rf & 2) {
28843
+ const ctx_r1 = i0.ɵɵnextContext();
28844
+ i0.ɵɵproperty("disabled", !ctx_r1.hasPrevious() || ctx_r1.caseEdit.isSubmitting);
28845
+ i0.ɵɵadvance();
28846
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "Previous"), " ");
28847
+ } }
29355
28848
  // @dynamic
29356
28849
  class CaseEditSubmitComponent {
29357
28850
  caseEdit;
@@ -29360,10 +28853,7 @@ class CaseEditSubmitComponent {
29360
28853
  route;
29361
28854
  orderService;
29362
28855
  profileNotifier;
29363
- multipageComponentStateService;
29364
28856
  formValidatorsService;
29365
- caseFlagStateService;
29366
- linkedCasesService;
29367
28857
  eventTrigger;
29368
28858
  editForm;
29369
28859
  triggerText;
@@ -29399,17 +28889,14 @@ class CaseEditSubmitComponent {
29399
28889
  // not been disabled.
29400
28890
  return this.caseEdit.isSubmitting || this.hasErrors;
29401
28891
  }
29402
- constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier, multipageComponentStateService, formValidatorsService, caseFlagStateService, linkedCasesService) {
28892
+ constructor(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier, formValidatorsService) {
29403
28893
  this.caseEdit = caseEdit;
29404
28894
  this.fieldsUtils = fieldsUtils;
29405
28895
  this.caseFieldService = caseFieldService;
29406
28896
  this.route = route;
29407
28897
  this.orderService = orderService;
29408
28898
  this.profileNotifier = profileNotifier;
29409
- this.multipageComponentStateService = multipageComponentStateService;
29410
28899
  this.formValidatorsService = formValidatorsService;
29411
- this.caseFlagStateService = caseFlagStateService;
29412
- this.linkedCasesService = linkedCasesService;
29413
28900
  }
29414
28901
  ngOnInit() {
29415
28902
  this.profileSubscription = this.profileNotifier.profile.subscribe((_) => this.profile = _);
@@ -29490,9 +28977,6 @@ class CaseEditSubmitComponent {
29490
28977
  return cloneField;
29491
28978
  }
29492
28979
  cancel() {
29493
- if (this.caseEdit.isLinkedCasesSubmission) {
29494
- this.linkedCasesService.resetLinkedCaseData();
29495
- }
29496
28980
  if (this.eventTrigger.can_save_draft) {
29497
28981
  if (this.route.snapshot.queryParamMap.get(CaseEditComponent.ORIGIN_QUERY_PARAM) === 'viewDraft') {
29498
28982
  this.caseEdit.cancelled.emit({ status: CaseEditPageComponent.RESUMED_FORM_DISCARD });
@@ -29557,13 +29041,6 @@ class CaseEditSubmitComponent {
29557
29041
  return lastPage;
29558
29042
  }
29559
29043
  previous() {
29560
- if (this.caseEdit.isCaseFlagSubmission) {
29561
- // if we are in the caseflag journey we need to store the last page index so that the previous button on CYA will take to correct page
29562
- this.caseFlagStateService.fieldStateToNavigate = this.caseFlagStateService.lastPageFieldState;
29563
- }
29564
- if (this.caseEdit.isLinkedCasesSubmission) {
29565
- this.linkedCasesService.cameFromFinalStep = true;
29566
- }
29567
29044
  /* istanbul ignore else */
29568
29045
  if (this.hasPrevious()) {
29569
29046
  this.navigateToPage(this.getLastPageShown().id);
@@ -29604,8 +29081,8 @@ class CaseEditSubmitComponent {
29604
29081
  }
29605
29082
  return 'Cancel';
29606
29083
  }
29607
- static ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ProfileNotifier), i0.ɵɵdirectiveInject(MultipageComponentStateService), i0.ɵɵdirectiveInject(FormValidatorsService), i0.ɵɵdirectiveInject(CaseFlagStateService), i0.ɵɵdirectiveInject(LinkedCasesService)); };
29608
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 25, vars: 24, consts: [["titleBlock", ""], ["idBlock", ""], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], [3, "error"], [3, "callbackErrorsContext", "callbackErrorsSubject"], [1, "check-your-answers", 3, "submit", "formGroup"], [4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "click", "disabled"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "caseFields"], [1, "valign-top", "case-field-label"], [1, "valign-top", "check-your-answers__change", "case-field-change"], ["href", "javascript:void(0)", 3, "click", 4, "ngIf"], ["aria-describedby", "summary fields table", 1, "summary-fields"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["class", "compound-field", "ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], ["id", "summary-field-label"], [1, "form-cell"], [3, "formGroup", "caseField"], ["ccdLabelSubstitutor", "", 1, "compound-field", 3, "caseField", "formGroup", "contextFields"], ["colspan", "2"], [3, "formGroup", "caseField", "caseFields"], ["id", "fieldset-event", "formGroupName", "event"], [2, "display", "none"], [1, "form-group", 3, "ngClass"], ["for", "field-trigger-summary", 1, "form-label"], [1, "form-hint"], ["class", "error-message", 4, "ngIf"], ["type", "text", "id", "field-trigger-summary", "formControlName", "summary", "maxlength", "1024", 1, "form-control", "bottom-30", "width-50", 3, "ngClass"], ["for", "field-trigger-description", 1, "form-label"], ["id", "field-trigger-description", "formControlName", "description", "maxlength", "65536", 1, "form-control", "bottom-30", "width-50", 3, "ngClass"], [1, "error-message"], [3, "eventCanBeCompleted", "eventCompletionParams"]], template: function CaseEditSubmitComponent_Template(rf, ctx) { if (rf & 1) {
29084
+ static ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ProfileNotifier), i0.ɵɵdirectiveInject(FormValidatorsService)); };
29085
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 23, vars: 21, consts: [["titleBlock", ""], ["idBlock", ""], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], [3, "error"], [3, "callbackErrorsContext", "callbackErrorsSubject"], [1, "check-your-answers", 3, "submit", "formGroup"], [4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "form-group", "form-group-related"], ["class", "button button-secondary", "type", "button", 3, "disabled", "click", 4, "ngIf"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "caseFields"], [1, "valign-top", "case-field-label"], [1, "valign-top", "check-your-answers__change", "case-field-change"], ["href", "javascript:void(0)", 3, "click", 4, "ngIf"], ["aria-describedby", "summary fields table", 1, "summary-fields"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["class", "compound-field", "ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], ["id", "summary-field-label"], [1, "form-cell"], [3, "formGroup", "caseField"], ["ccdLabelSubstitutor", "", 1, "compound-field", 3, "caseField", "formGroup", "contextFields"], ["colspan", "2"], [3, "formGroup", "caseField", "caseFields"], ["id", "fieldset-event", "formGroupName", "event"], [2, "display", "none"], [1, "form-group", 3, "ngClass"], ["for", "field-trigger-summary", 1, "form-label"], [1, "form-hint"], ["class", "error-message", 4, "ngIf"], ["type", "text", "id", "field-trigger-summary", "formControlName", "summary", "maxlength", "1024", 1, "form-control", "bottom-30", "width-50", 3, "ngClass"], ["for", "field-trigger-description", 1, "form-label"], ["id", "field-trigger-description", "formControlName", "description", "maxlength", "65536", 1, "form-control", "bottom-30", "width-50", 3, "ngClass"], [1, "error-message"], [3, "eventCanBeCompleted", "eventCompletionParams"], ["type", "button", 1, "button", "button-secondary", 3, "click", "disabled"]], template: function CaseEditSubmitComponent_Template(rf, ctx) { if (rf & 1) {
29609
29086
  const _r1 = i0.ɵɵgetCurrentView();
29610
29087
  i0.ɵɵelementStart(0, "div")(1, "h1", 2);
29611
29088
  i0.ɵɵtext(2);
@@ -29619,27 +29096,24 @@ class CaseEditSubmitComponent {
29619
29096
  i0.ɵɵelementStart(11, "form", 6);
29620
29097
  i0.ɵɵlistener("submit", function CaseEditSubmitComponent_Template_form_submit_11_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.submit()); });
29621
29098
  i0.ɵɵtemplate(12, CaseEditSubmitComponent_div_12_Template, 4, 3, "div", 7)(13, CaseEditSubmitComponent_ccd_case_event_completion_13_Template, 1, 1, "ccd-case-event-completion", 8);
29622
- i0.ɵɵelementStart(14, "div", 9)(15, "button", 10);
29623
- i0.ɵɵlistener("click", function CaseEditSubmitComponent_Template_button_click_15_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.previous()); });
29624
- i0.ɵɵtext(16);
29625
- i0.ɵɵpipe(17, "rpxTranslate");
29626
- i0.ɵɵelementEnd();
29627
- i0.ɵɵelementStart(18, "button", 11);
29628
- i0.ɵɵtext(19);
29629
- i0.ɵɵpipe(20, "rpxTranslate");
29099
+ i0.ɵɵelementStart(14, "div", 9);
29100
+ i0.ɵɵtemplate(15, CaseEditSubmitComponent_button_15_Template, 3, 4, "button", 10);
29101
+ i0.ɵɵelementStart(16, "button", 11);
29102
+ i0.ɵɵtext(17);
29103
+ i0.ɵɵpipe(18, "rpxTranslate");
29630
29104
  i0.ɵɵelementEnd()();
29631
- i0.ɵɵelementStart(21, "p", 12)(22, "a", 13);
29632
- i0.ɵɵlistener("click", function CaseEditSubmitComponent_Template_a_click_22_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancel()); });
29633
- i0.ɵɵtext(23);
29634
- i0.ɵɵpipe(24, "rpxTranslate");
29105
+ i0.ɵɵelementStart(19, "p", 12)(20, "a", 13);
29106
+ i0.ɵɵlistener("click", function CaseEditSubmitComponent_Template_a_click_20_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancel()); });
29107
+ i0.ɵɵtext(21);
29108
+ i0.ɵɵpipe(22, "rpxTranslate");
29635
29109
  i0.ɵɵelementEnd()()()();
29636
29110
  } if (rf & 2) {
29637
- const titleBlock_r8 = i0.ɵɵreference(6);
29638
- const idBlock_r9 = i0.ɵɵreference(8);
29111
+ const titleBlock_r9 = i0.ɵɵreference(6);
29112
+ const idBlock_r10 = i0.ɵɵreference(8);
29639
29113
  i0.ɵɵadvance(2);
29640
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 16, ctx.eventTrigger.name));
29114
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 15, ctx.eventTrigger.name));
29641
29115
  i0.ɵɵadvance(2);
29642
- i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen", titleBlock_r8)("ngIfElse", idBlock_r9);
29116
+ i0.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen", titleBlock_r9)("ngIfElse", idBlock_r10);
29643
29117
  i0.ɵɵadvance(5);
29644
29118
  i0.ɵɵproperty("error", ctx.caseEdit.error);
29645
29119
  i0.ɵɵadvance();
@@ -29651,24 +29125,22 @@ class CaseEditSubmitComponent {
29651
29125
  i0.ɵɵadvance();
29652
29126
  i0.ɵɵproperty("ngIf", ctx.caseEdit.isEventCompletionChecksRequired);
29653
29127
  i0.ɵɵadvance(2);
29654
- i0.ɵɵproperty("disabled", !ctx.hasPrevious() || ctx.caseEdit.isSubmitting);
29128
+ i0.ɵɵproperty("ngIf", !ctx.caseEdit.isCaseFlagSubmission);
29655
29129
  i0.ɵɵadvance();
29656
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 18, "Previous"), " ");
29657
- i0.ɵɵadvance(2);
29658
29130
  i0.ɵɵproperty("disabled", ctx.isDisabled);
29659
29131
  i0.ɵɵadvance();
29660
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 20, ctx.triggerText), " ");
29132
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 17, ctx.triggerText), " ");
29661
29133
  i0.ɵɵadvance(3);
29662
29134
  i0.ɵɵclassProp("disabled", ctx.caseEdit.isSubmitting);
29663
29135
  i0.ɵɵadvance();
29664
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(24, 22, ctx.getCancelText()));
29136
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(22, 19, ctx.getCancelText()));
29665
29137
  } }, styles: ["#fieldset-case-data[_ngcontent-%COMP%]{margin-bottom:30px}#fieldset-case-data[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:1%;white-space:nowrap;vertical-align:top}.compound-field[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0}#confirmation-header[_ngcontent-%COMP%]{width:630px;background-color:#17958b;border:solid 1px #979797;color:#fff;text-align:center}#confirmation-body[_ngcontent-%COMP%]{width:630px;background-color:#fff}.valign-top[_ngcontent-%COMP%]{vertical-align:top}.summary-fields[_ngcontent-%COMP%]{margin-bottom:30px}.summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:0px}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.case-field-label[_ngcontent-%COMP%]{width:45%}.case-field-content[_ngcontent-%COMP%]{width:50%}.no-bottom-border[_ngcontent-%COMP%]{border-bottom:none}.case-field-change[_ngcontent-%COMP%]{width:5%}"] });
29666
29138
  }
29667
29139
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditSubmitComponent, [{
29668
29140
  type: Component,
29669
- args: [{ selector: 'ccd-case-edit-submit', template: "<div>\n <!-- Event trigger name -->\n <h1 class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n\n <!--Case ID or Title -->\n <div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n <ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: contextFields : editForm.controls['data']\"></ccd-markdown>\n </ng-template>\n <ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n </ng-template>\n\n <ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n <ccd-callback-errors [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\"></ccd-callback-errors>\n\n <form class=\"check-your-answers\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <div *ngIf=\"!caseEdit.isEventCompletionChecksRequired\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\n <h2 class=\"heading-h2\">{{pageTitle | rpxTranslate }}</h2>\n <span class=\"text-16\" *ngIf=\"!caseEdit.isCaseFlagSubmission\">{{'Check the information below carefully.' | rpxTranslate}}</span>\n\n <table class=\"form-table\" aria-describedby=\"check your answers table\">\n <tbody>\n <ng-container *ngFor=\"let page of wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm\n | ccdReadFieldsFilter: false :undefined :true :allFieldsValues\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field) && !caseEdit.isCaseFlagSubmission\" class=\"valign-top case-field-label\">\n <span class=\"text-16\">{{field.label | rpxTranslate}}</span>\n </th>\n <td class=\"form-cell case-field-content\" [attr.colspan]=\"isLabel(field) ? '2' : '1'\">\n <ccd-field-read\n [formGroup]=\"editForm.controls['data']\" [topLevelFormGroup]=\"editForm.controls['data']\"\n [caseField]=\"summaryCaseField(field)\" [context]=\"paletteContext\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n <ng-container *ngIf=\"!caseEdit.isCaseFlagSubmission\">\n <td class=\"valign-top check-your-answers__change case-field-change\">\n <a *ngIf=\"isChangeAllowed(field)\" (click)=\"navigateToPage(page.id)\"\n href=\"javascript:void(0)\">\n <span class=\"text-16\" attr.aria-label=\"{{'Change' | rpxTranslate}} {{ field.label | rpxTranslate }}\">\n {{'Change' | rpxTranslate}}\n </span>\n </a>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"readOnlySummaryFieldsToDisplayExists()\">\n\n <table class=\"summary-fields\" aria-describedby=\"summary fields table\">\n <tbody>\n <ng-container *ngFor=\"let field of showSummaryFields\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th id=\"summary-field-label\">{{field.label}}</th>\n <td class=\"form-cell\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\"></ccd-field-read>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <td colspan=\"2\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"showEventNotes()\">\n <fieldset id=\"fieldset-event\" formGroupName=\"event\">\n <legend style=\"display: none;\"></legend>\n <div class=\"form-group\" [ngClass]=\"{'form-group-error': !!summary && !summary.valid && (summary.dirty || summary.touched)}\">\n <label for=\"field-trigger-summary\" class=\"form-label\">\n Event summary (optional)\n <span class=\"form-hint\">A few words describing the purpose of the event.</span>\n </label>\n <span class=\"error-message\" *ngIf=\"summary?.errors && (summary.dirty || summary.touched)\">\n {{summary.errors | ccdFirstError: eventSummaryLabel | rpxTranslate}}\n </span>\n <input type=\"text\" id=\"field-trigger-summary\" class=\"form-control bottom-30 width-50\"\n [ngClass]=\"{'govuk-input--error': summary?.errors && (summary.dirty || summary.touched)}\" formControlName=\"summary\" maxlength=\"1024\">\n </div>\n <div class=\"form-group\" [ngClass]=\"{'form-group-error': !!description && !description.valid && (description.dirty || description.touched)}\">\n <label for=\"field-trigger-description\" class=\"form-label\">Event description (optional)</label>\n <span class=\"error-message\" *ngIf=\"description?.errors && (description.dirty || description.touched)\">\n {{description.errors | ccdFirstError: eventDescriptionLabel | rpxTranslate}}\n </span>\n <textarea id=\"field-trigger-description\" class=\"form-control bottom-30 width-50\" formControlName=\"description\"\n [ngClass]=\"{'govuk-input--error': description?.errors && (description.dirty || description.touched)}\" maxlength=\"65536\"></textarea>\n </div>\n </fieldset>\n </ng-container>\n </div>\n <ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n </ccd-case-event-completion>\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" [disabled]=\"!hasPrevious() || caseEdit.isSubmitting\" (click)=\"previous()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button type=\"submit\" [disabled]=\"isDisabled\" class=\"button\">\n {{triggerText | rpxTranslate}}\n </button>\n </div>\n <p class=\"cancel\">\n <a (click)=\"cancel()\" href=\"javascript:void(0)\" [class.disabled]=\"caseEdit.isSubmitting\">{{getCancelText() | rpxTranslate}}</a>\n </p>\n </form>\n</div>\n\n", styles: ["#fieldset-case-data{margin-bottom:30px}#fieldset-case-data th{width:1%;white-space:nowrap;vertical-align:top}.compound-field td{padding:0}#confirmation-header{width:630px;background-color:#17958b;border:solid 1px #979797;color:#fff;text-align:center}#confirmation-body{width:630px;background-color:#fff}.valign-top{vertical-align:top}.summary-fields{margin-bottom:30px}.summary-fields tbody tr th,.summary-fields tbody tr td{border-bottom:0px}a.disabled{pointer-events:none;cursor:default}.case-field-label{width:45%}.case-field-content{width:50%}.no-bottom-border{border-bottom:none}.case-field-change{width:5%}\n"] }]
29670
- }], () => [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }, { type: MultipageComponentStateService }, { type: FormValidatorsService }, { type: CaseFlagStateService }, { type: LinkedCasesService }], null); })();
29671
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditSubmitComponent, { className: "CaseEditSubmitComponent", filePath: "lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.ts", lineNumber: 30 }); })();
29141
+ args: [{ selector: 'ccd-case-edit-submit', template: "<div>\n <!-- Event trigger name -->\n <h1 class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n\n <!--Case ID or Title -->\n <div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n <ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: contextFields : editForm.controls['data']\"></ccd-markdown>\n </ng-template>\n <ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n </ng-template>\n\n <ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n <ccd-callback-errors [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\"></ccd-callback-errors>\n\n <form class=\"check-your-answers\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <div *ngIf=\"!caseEdit.isEventCompletionChecksRequired\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\n <h2 class=\"heading-h2\">{{pageTitle | rpxTranslate }}</h2>\n <span class=\"text-16\" *ngIf=\"!caseEdit.isCaseFlagSubmission\">{{'Check the information below carefully.' | rpxTranslate}}</span>\n\n <table class=\"form-table\" aria-describedby=\"check your answers table\">\n <tbody>\n <ng-container *ngFor=\"let page of wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm\n | ccdReadFieldsFilter: false :undefined :true :allFieldsValues\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field) && !caseEdit.isCaseFlagSubmission\" class=\"valign-top case-field-label\">\n <span class=\"text-16\">{{field.label | rpxTranslate}}</span>\n </th>\n <td class=\"form-cell case-field-content\" [attr.colspan]=\"isLabel(field) ? '2' : '1'\">\n <ccd-field-read\n [formGroup]=\"editForm.controls['data']\" [topLevelFormGroup]=\"editForm.controls['data']\"\n [caseField]=\"summaryCaseField(field)\" [context]=\"paletteContext\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n <ng-container *ngIf=\"!caseEdit.isCaseFlagSubmission\">\n <td class=\"valign-top check-your-answers__change case-field-change\">\n <a *ngIf=\"isChangeAllowed(field)\" (click)=\"navigateToPage(page.id)\"\n href=\"javascript:void(0)\">\n <span class=\"text-16\" attr.aria-label=\"{{'Change' | rpxTranslate}} {{ field.label | rpxTranslate }}\">\n {{'Change' | rpxTranslate}}\n </span>\n </a>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"readOnlySummaryFieldsToDisplayExists()\">\n\n <table class=\"summary-fields\" aria-describedby=\"summary fields table\">\n <tbody>\n <ng-container *ngFor=\"let field of showSummaryFields\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th id=\"summary-field-label\">{{field.label}}</th>\n <td class=\"form-cell\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\"></ccd-field-read>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <td colspan=\"2\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"showEventNotes()\">\n <fieldset id=\"fieldset-event\" formGroupName=\"event\">\n <legend style=\"display: none;\"></legend>\n <div class=\"form-group\" [ngClass]=\"{'form-group-error': !!summary && !summary.valid && (summary.dirty || summary.touched)}\">\n <label for=\"field-trigger-summary\" class=\"form-label\">\n Event summary (optional)\n <span class=\"form-hint\">A few words describing the purpose of the event.</span>\n </label>\n <span class=\"error-message\" *ngIf=\"summary?.errors && (summary.dirty || summary.touched)\">\n {{summary.errors | ccdFirstError: eventSummaryLabel | rpxTranslate}}\n </span>\n <input type=\"text\" id=\"field-trigger-summary\" class=\"form-control bottom-30 width-50\"\n [ngClass]=\"{'govuk-input--error': summary?.errors && (summary.dirty || summary.touched)}\" formControlName=\"summary\" maxlength=\"1024\">\n </div>\n <div class=\"form-group\" [ngClass]=\"{'form-group-error': !!description && !description.valid && (description.dirty || description.touched)}\">\n <label for=\"field-trigger-description\" class=\"form-label\">Event description (optional)</label>\n <span class=\"error-message\" *ngIf=\"description?.errors && (description.dirty || description.touched)\">\n {{description.errors | ccdFirstError: eventDescriptionLabel | rpxTranslate}}\n </span>\n <textarea id=\"field-trigger-description\" class=\"form-control bottom-30 width-50\" formControlName=\"description\"\n [ngClass]=\"{'govuk-input--error': description?.errors && (description.dirty || description.touched)}\" maxlength=\"65536\"></textarea>\n </div>\n </fieldset>\n </ng-container>\n </div>\n <ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n </ccd-case-event-completion>\n <div class=\"form-group form-group-related\">\n <button *ngIf=\"!caseEdit.isCaseFlagSubmission\" class=\"button button-secondary\" type=\"button\" [disabled]=\"!hasPrevious() || caseEdit.isSubmitting\" (click)=\"previous()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button type=\"submit\" [disabled]=\"isDisabled\" class=\"button\">\n {{triggerText | rpxTranslate}}\n </button>\n </div>\n <p class=\"cancel\">\n <a (click)=\"cancel()\" href=\"javascript:void(0)\" [class.disabled]=\"caseEdit.isSubmitting\">{{getCancelText() | rpxTranslate}}</a>\n </p>\n </form>\n</div>\n\n", styles: ["#fieldset-case-data{margin-bottom:30px}#fieldset-case-data th{width:1%;white-space:nowrap;vertical-align:top}.compound-field td{padding:0}#confirmation-header{width:630px;background-color:#17958b;border:solid 1px #979797;color:#fff;text-align:center}#confirmation-body{width:630px;background-color:#fff}.valign-top{vertical-align:top}.summary-fields{margin-bottom:30px}.summary-fields tbody tr th,.summary-fields tbody tr td{border-bottom:0px}a.disabled{pointer-events:none;cursor:default}.case-field-label{width:45%}.case-field-content{width:50%}.no-bottom-border{border-bottom:none}.case-field-change{width:5%}\n"] }]
29142
+ }], () => [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }, { type: FormValidatorsService }], null); })();
29143
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditSubmitComponent, { className: "CaseEditSubmitComponent", filePath: "lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.ts", lineNumber: 27 }); })();
29672
29144
 
29673
29145
  function CaseProgressComponent_div_0_Template(rf, ctx) { if (rf & 1) {
29674
29146
  const _r1 = i0.ɵɵgetCurrentView();
@@ -29916,8 +29388,7 @@ class CaseEditorModule {
29916
29388
  SessionStorageService,
29917
29389
  EventCompletionStateMachineService,
29918
29390
  CaseFlagStateService,
29919
- ValidPageListCaseFieldsService,
29920
- MultipageComponentStateService
29391
+ ValidPageListCaseFieldsService
29921
29392
  ], imports: [CommonModule,
29922
29393
  RouterModule,
29923
29394
  FormsModule,
@@ -29999,8 +29470,7 @@ class CaseEditorModule {
29999
29470
  SessionStorageService,
30000
29471
  EventCompletionStateMachineService,
30001
29472
  CaseFlagStateService,
30002
- ValidPageListCaseFieldsService,
30003
- MultipageComponentStateService
29473
+ ValidPageListCaseFieldsService
30004
29474
  ]
30005
29475
  }]
30006
29476
  }], null, null); })();
@@ -30032,7 +29502,7 @@ class CaseEditorModule {
30032
29502
  CallbackErrorsComponent] }); })();
30033
29503
  i0.ɵɵsetComponentScope(CaseEditConfirmComponent, function () { return [i5.NgIf, i4.ɵNgNoValidate, i4.NgControlStatusGroup, i4.FormGroupDirective, MarkdownComponent]; }, function () { return [CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
30034
29504
  i0.ɵɵsetComponentScope(CaseEditPageComponent, function () { return [i5.NgForOf, i5.NgIf, i4.ɵNgNoValidate, i4.NgControlStatusGroup, i4.FormGroupDirective, CallbackErrorsComponent, MarkdownComponent, CaseEventCompletionComponent, CaseEditFormComponent,
30035
- CaseEditGenericErrorsComponent]; }, function () { return [CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
29505
+ CaseEditGenericErrorsComponent]; }, function () { return [i5.AsyncPipe, CaseReferencePipe, CcdCaseTitlePipe, i1.RpxTranslatePipe]; });
30036
29506
  i0.ɵɵsetComponentScope(CaseEditFormComponent, function () { return [i5.NgForOf, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase, i4.NgControlStatusGroup, i4.FormGroupDirective, LabelSubstitutorDirective, ConditionalShowFormDirective, FieldReadComponent, FieldWriteComponent]; }, function () { return [IsCompoundPipe, IsReadOnlyAndNotCollectionPipe]; });
30037
29507
  i0.ɵɵsetComponentScope(CaseEditSubmitComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase, i4.ɵNgNoValidate, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.MaxLengthValidator, i4.FormGroupDirective, i4.FormControlName, i4.FormGroupName, LabelSubstitutorDirective, CallbackErrorsComponent, MarkdownComponent, FieldReadComponent, CaseEventCompletionComponent, CaseEditGenericErrorsComponent]; }, function () { return [FirstErrorPipe, IsCompoundPipe, CaseReferencePipe, CcdCaseTitlePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, i1.RpxTranslatePipe]; });
30038
29508
  i0.ɵɵsetComponentScope(CaseCreateComponent, function () { return [i5.NgIf, CaseEditComponent]; }, []);
@@ -32170,7 +31640,6 @@ class CaseEventTriggerComponent {
32170
31640
  activitySubscription;
32171
31641
  caseSubscription;
32172
31642
  parentUrl;
32173
- routerCurrentNavigation;
32174
31643
  constructor(ngZone, casesService, caseNotifier, router, alertService, route, caseReferencePipe, activityPollingService, sessionStorageService) {
32175
31644
  this.ngZone = ngZone;
32176
31645
  this.casesService = casesService;
@@ -32181,7 +31650,6 @@ class CaseEventTriggerComponent {
32181
31650
  this.caseReferencePipe = caseReferencePipe;
32182
31651
  this.activityPollingService = activityPollingService;
32183
31652
  this.sessionStorageService = sessionStorageService;
32184
- this.routerCurrentNavigation = this.router.getCurrentNavigation();
32185
31653
  }
32186
31654
  ngOnInit() {
32187
31655
  if (this.route.snapshot.data.case) {
@@ -32260,16 +31728,8 @@ class CaseEventTriggerComponent {
32260
31728
  });
32261
31729
  }
32262
31730
  cancel() {
32263
- const previousUrl = this.routerCurrentNavigation?.previousNavigation?.finalUrl?.toString();
32264
- if (previousUrl) {
32265
- if (previousUrl.indexOf('#') > -1) {
32266
- const url = previousUrl.split('#')[0];
32267
- const fragment = previousUrl.split('#')[1].replace('%20', ' ');
32268
- return this.router.navigate([url], { fragment: fragment });
32269
- }
32270
- else {
32271
- return this.router.navigate([previousUrl]);
32272
- }
31731
+ if (this.router.url && this.router.url.includes('linkCases')) {
31732
+ this.router.navigate(['cases', 'case-details', this.caseDetails.case_id], { fragment: 'Linked cases' });
32273
31733
  }
32274
31734
  else {
32275
31735
  return this.router.navigate([this.parentUrl]);
@@ -37807,5 +37267,5 @@ class TestRouteSnapshotBuilder {
37807
37267
  * Generated bundle index. Do not edit.
37808
37268
  */
37809
37269
 
37810
- export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, AbstractFieldWriteJourneyComponent, AbstractJourneyComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, COMPONENT_PORTAL_INJECTION_TOKEN, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagCheckYourAnswersPageStep, CaseFlagDisplayContextParameter, CaseFlagErrorMessage, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, EnumDisplayDescriptionPipe, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FlagFieldDisplayPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LanguageInterpreterDisplayPipe, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipageComponentStateService, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, QualifyingQuestionDetailComponent, QualifyingQuestionOptionsComponent, QualifyingQuestionsErrorMessage, QueryAttachmentsReadComponent, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryCreateContext, QueryDetailsComponent, QueryEventCompletionComponent, QueryItemResponseStatus, QueryListComponent, QueryListData, QueryListItem, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, RaiseQueryErrorMessage, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RespondToQueryErrorMessages, RetryUtil, RouterHelperService, RouterLinkComponent, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
37270
+ export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, COMPONENT_PORTAL_INJECTION_TOKEN, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagCheckYourAnswersPageStep, CaseFlagDisplayContextParameter, CaseFlagErrorMessage, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, EnumDisplayDescriptionPipe, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FlagFieldDisplayPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LanguageInterpreterDisplayPipe, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, QualifyingQuestionDetailComponent, QualifyingQuestionOptionsComponent, QualifyingQuestionsErrorMessage, QueryAttachmentsReadComponent, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryCreateContext, QueryDetailsComponent, QueryEventCompletionComponent, QueryItemResponseStatus, QueryListComponent, QueryListData, QueryListItem, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, RaiseQueryErrorMessage, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RespondToQueryErrorMessages, RetryUtil, RouterHelperService, RouterLinkComponent, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
37811
37271
  //# sourceMappingURL=hmcts-ccd-case-ui-toolkit.mjs.map