@hmcts/ccd-case-ui-toolkit 7.1.35-qm-callbackerror → 7.1.36-qm-wa

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 (22) hide show
  1. package/esm2022/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.mjs +17 -17
  2. package/esm2022/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.mjs +10 -10
  3. package/esm2022/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.mjs +30 -13
  4. package/esm2022/lib/shared/components/palette/palette.module.mjs +3 -2
  5. package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +50 -30
  6. package/esm2022/lib/shared/components/palette/query-management/components/query-details/query-details.component.mjs +138 -94
  7. package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.mjs +103 -114
  8. package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.mjs +24 -14
  9. package/esm2022/lib/shared/components/palette/query-management/read-query-management-field.component.mjs +4 -21
  10. package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +398 -339
  11. package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
  12. package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts.map +1 -1
  13. package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
  14. package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +5 -1
  15. package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts.map +1 -1
  16. package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts +16 -5
  17. package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts.map +1 -1
  18. package/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.d.ts +1 -2
  19. package/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.d.ts.map +1 -1
  20. package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts +5 -3
  21. package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts.map +1 -1
  22. package/package.json +1 -1
@@ -59,7 +59,7 @@ import { MatLegacyTabsModule } from '@angular/material/legacy-tabs';
59
59
  import { decompressFromUTF16, compressToUTF16 } from 'lz-string';
60
60
 
61
61
  const _c0$14 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
62
- const _c1$v = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
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);
65
65
  i0.ɵɵprojection(2);
@@ -135,7 +135,7 @@ class FooterComponent {
135
135
  phone;
136
136
  workhours;
137
137
  static ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
138
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$v, 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) {
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
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);
@@ -164,7 +164,7 @@ class FooterComponent {
164
164
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FooterComponent, { className: "FooterComponent", filePath: "lib/components/footer/footer.component.ts", lineNumber: 8 }); })();
165
165
 
166
166
  const _c0$13 = [[["", "headerNavigation", ""]]];
167
- const _c1$u = ["[headerNavigation]"];
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);
170
170
  i0.ɵɵelement(2, "img", 13);
@@ -206,7 +206,7 @@ class HeaderBarComponent {
206
206
  this.signOutRequest.emit();
207
207
  }
208
208
  static ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
209
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$u, 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) {
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
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);
@@ -258,11 +258,11 @@ class HeaderBarComponent {
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
260
  const _c0$12 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
261
- const _c1$t = ["[leftNavLinks]", "[rightNavLinks]"];
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
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$t, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) { if (rf & 1) {
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
266
  i0.ɵɵprojectionDef(_c0$12);
267
267
  i0.ɵɵelementStart(0, "div")(1, "nav", 0);
268
268
  i0.ɵɵprojection(2);
@@ -383,10 +383,10 @@ class HeadersModule {
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
385
  const _c0$11 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
386
- const _c1$s = ["[topBody]", "[leftBody]", "[rightBody]"];
386
+ const _c1$r = ["[topBody]", "[leftBody]", "[rightBody]"];
387
387
  class BodyComponent {
388
388
  static ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
389
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$s, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
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
390
  i0.ɵɵprojectionDef(_c0$11);
391
391
  i0.ɵɵelementStart(0, "div", 0);
392
392
  i0.ɵɵprojection(1);
@@ -1001,7 +1001,7 @@ class NotificationBannerComponent {
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
1003
  const _c0$_ = ["*"];
1004
- const _c1$r = a0 => ({ "js-hidden": a0 });
1004
+ const _c1$q = a0 => ({ "js-hidden": a0 });
1005
1005
  class TabComponent {
1006
1006
  id;
1007
1007
  title;
@@ -1013,7 +1013,7 @@ class TabComponent {
1013
1013
  i0.ɵɵprojection(1);
1014
1014
  i0.ɵɵelementEnd();
1015
1015
  } if (rf & 2) {
1016
- i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c1$r, !ctx.selected));
1016
+ i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c1$q, !ctx.selected));
1017
1017
  i0.ɵɵattribute("aria-hidden", !ctx.selected);
1018
1018
  } }, dependencies: [i5.NgClass], styles: [".tabs-toggle[_ngcontent-%COMP%]{display:block;padding:10px 15px 3px;margin-bottom:8px}.tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{color:#0b0c0c;text-decoration:none;border-bottom:none}.tabs-toggle[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#005ea5}@media (max-width: 640px){.tabs-list[_ngcontent-%COMP%]{border-bottom:1px solid #bfc1c3;margin-left:-15px;margin-right:-15px}.tabs-toggle[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3}.tabs-toggle[_ngcontent-%COMP%]:focus{color:#0b0c0c;outline:none}}@media (min-width: 641px){.tabs-panel[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3;clear:both;overflow:hidden}.tabs-list[_ngcontent-%COMP%]{float:left}.tabs-list-item[_ngcontent-%COMP%]{float:left;position:relative;bottom:-1px;padding-top:10px}.tabs-toggle[_ngcontent-%COMP%]{background-color:#dee0e2;border:1px solid transparent;float:left;margin:0 6px 0 0;text-decoration:none}.tabs-toggle[_ngcontent-%COMP%]:visited{color:#005ea5}.tabs-toggle-selected[_ngcontent-%COMP%], .tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{background-color:#fff;border-bottom:0px;border-color:#bfc1c3;padding-bottom:11px;margin-bottom:0;color:#0b0c0c}}"] });
1019
1019
  }
@@ -1030,7 +1030,7 @@ class TabComponent {
1030
1030
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TabComponent, { className: "TabComponent", filePath: "lib/components/tabs/tab.component.ts", lineNumber: 10 }); })();
1031
1031
 
1032
1032
  const _c0$Z = ["tab"];
1033
- const _c1$q = ["*"];
1033
+ const _c1$p = ["*"];
1034
1034
  const _c2$4 = () => ["."];
1035
1035
  const _c3 = a0 => ({ "tabs-toggle-selected": a0 });
1036
1036
  function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
@@ -1080,7 +1080,7 @@ class TabsComponent {
1080
1080
  } if (rf & 2) {
1081
1081
  let _t;
1082
1082
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
1083
- } }, ngContentSelectors: _c1$q, decls: 5, vars: 1, consts: [["tab", ""], [1, "tabs"], ["role", "list", 1, "tabs-list"], ["class", "tabs-list-item", 4, "ngFor", "ngForOf"], [1, "tabs-content"], [1, "tabs-list-item"], ["role", "tab", "tabindex", "0", 1, "tabs-toggle", 3, "click", "routerLink", "fragment", "ngClass"]], template: function TabsComponent_Template(rf, ctx) { if (rf & 1) {
1083
+ } }, ngContentSelectors: _c1$p, decls: 5, vars: 1, consts: [["tab", ""], [1, "tabs"], ["role", "list", 1, "tabs-list"], ["class", "tabs-list-item", 4, "ngFor", "ngForOf"], [1, "tabs-content"], [1, "tabs-list-item"], ["role", "tab", "tabindex", "0", 1, "tabs-toggle", 3, "click", "routerLink", "fragment", "ngClass"]], template: function TabsComponent_Template(rf, ctx) { if (rf & 1) {
1084
1084
  i0.ɵɵprojectionDef();
1085
1085
  i0.ɵɵelementStart(0, "div", 1)(1, "ul", 2);
1086
1086
  i0.ɵɵtemplate(2, TabsComponent_li_2_Template, 5, 11, "li", 3);
@@ -11774,7 +11774,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
11774
11774
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteComplexFieldComponent, { className: "WriteComplexFieldComponent", filePath: "lib/shared/components/palette/complex/write-complex-field.component.ts", lineNumber: 21 }); })();
11775
11775
 
11776
11776
  const _c0$V = ["writeComplexFieldComponent"];
11777
- const _c1$p = a0 => ({ "form-group-error": a0 });
11777
+ const _c1$o = a0 => ({ "form-group-error": a0 });
11778
11778
  const _c2$3 = a0 => ({ "govuk-input--error": a0 });
11779
11779
  function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (rf & 1) {
11780
11780
  i0.ɵɵelementStart(0, "span", 14);
@@ -11801,7 +11801,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1)
11801
11801
  i0.ɵɵelementEnd()();
11802
11802
  } if (rf & 2) {
11803
11803
  const ctx_r1 = i0.ɵɵnextContext(2);
11804
- i0.ɵɵproperty("id", ctx_r1.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$p, ctx_r1.missingPostcode));
11804
+ i0.ɵɵproperty("id", ctx_r1.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$o, ctx_r1.missingPostcode));
11805
11805
  i0.ɵɵadvance();
11806
11806
  i0.ɵɵproperty("for", ctx_r1.createElementId("postcodeInput"));
11807
11807
  i0.ɵɵadvance(2);
@@ -11847,7 +11847,7 @@ function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) { if (rf & 1)
11847
11847
  i0.ɵɵelementEnd()();
11848
11848
  } if (rf & 2) {
11849
11849
  const ctx_r1 = i0.ɵɵnextContext(2);
11850
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$p, ctx_r1.noAddressSelected));
11850
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$o, ctx_r1.noAddressSelected));
11851
11851
  i0.ɵɵadvance();
11852
11852
  i0.ɵɵproperty("for", ctx_r1.createElementId("addressList"));
11853
11853
  i0.ɵɵadvance(2);
@@ -13280,7 +13280,7 @@ class ReadCaseLinkFieldComponent extends AbstractFieldReadComponent {
13280
13280
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadCaseLinkFieldComponent, { className: "ReadCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/read-case-link-field.component.ts", lineNumber: 8 }); })();
13281
13281
 
13282
13282
  const _c0$U = ["writeComplexFieldComponent"];
13283
- const _c1$o = a0 => ({ "form-group-error": a0 });
13283
+ const _c1$n = a0 => ({ "form-group-error": a0 });
13284
13284
  function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
13285
13285
  i0.ɵɵelementStart(0, "span", 6);
13286
13286
  i0.ɵɵtext(1);
@@ -13372,7 +13372,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
13372
13372
  i0.ɵɵelement(5, "input", 5);
13373
13373
  i0.ɵɵelementEnd();
13374
13374
  } if (rf & 2) {
13375
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$o, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
13375
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$n, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
13376
13376
  i0.ɵɵadvance();
13377
13377
  i0.ɵɵproperty("for", ctx.id());
13378
13378
  i0.ɵɵadvance();
@@ -13395,7 +13395,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
13395
13395
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseLinkFieldComponent, { className: "WriteCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/write-case-link-field.component.ts", lineNumber: 11 }); })();
13396
13396
 
13397
13397
  const _c0$T = (a0, a1, a2, a3, a4, a5) => ({ id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 });
13398
- const _c1$n = (a0, a1, a2, a3, a4) => ({ id: a0, label: a1, field_type: a2, value: a3, hidden: a4 });
13398
+ const _c1$m = (a0, a1, a2, a3, a4) => ({ id: a0, label: a1, field_type: a2, value: a3, hidden: a4 });
13399
13399
  function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
13400
13400
  i0.ɵɵelementStart(0, "tbody")(1, "tr");
13401
13401
  i0.ɵɵelement(2, "th", 4);
@@ -13416,7 +13416,7 @@ function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { i
13416
13416
  const i_r3 = ctx.index;
13417
13417
  const ctx_r0 = i0.ɵɵnextContext(3);
13418
13418
  i0.ɵɵadvance(2);
13419
- i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$n, i_r3, ctx_r0.caseField.label + " " + (i_r3 + 1), ctx_r0.caseField.field_type.collection_field_type, item_r2.value, ctx_r0.caseField.hidden))("context", ctx_r0.context)("topLevelFormGroup", ctx_r0.topLevelFormGroup)("idPrefix", ctx_r0.buildIdPrefix(i_r3));
13419
+ i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$m, i_r3, ctx_r0.caseField.label + " " + (i_r3 + 1), ctx_r0.caseField.field_type.collection_field_type, item_r2.value, ctx_r0.caseField.hidden))("context", ctx_r0.context)("topLevelFormGroup", ctx_r0.topLevelFormGroup)("idPrefix", ctx_r0.buildIdPrefix(i_r3));
13420
13420
  } }
13421
13421
  function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) { if (rf & 1) {
13422
13422
  i0.ɵɵelementStart(0, "tbody");
@@ -14222,7 +14222,7 @@ class FileUploadStateService {
14222
14222
  }], null, null); })();
14223
14223
 
14224
14224
  const _c0$R = ["fileInput"];
14225
- const _c1$m = a0 => ({ "form-group-error bottom-30": a0 });
14225
+ const _c1$l = a0 => ({ "form-group-error bottom-30": a0 });
14226
14226
  function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
14227
14227
  i0.ɵɵelementStart(0, "span", 12);
14228
14228
  i0.ɵɵtext(1);
@@ -14611,7 +14611,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
14611
14611
  i0.ɵɵpipe(17, "rpxTranslate");
14612
14612
  i0.ɵɵelementEnd()();
14613
14613
  } if (rf & 2) {
14614
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$m, !ctx.valid));
14614
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$l, !ctx.valid));
14615
14615
  i0.ɵɵadvance();
14616
14616
  i0.ɵɵproperty("for", ctx.id());
14617
14617
  i0.ɵɵadvance();
@@ -15139,7 +15139,7 @@ class ReadDynamicRadioListFieldComponent extends AbstractFieldReadComponent {
15139
15139
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDynamicRadioListFieldComponent, { className: "ReadDynamicRadioListFieldComponent", filePath: "lib/shared/components/palette/dynamic-radio-list/read-dynamic-radio-list-field.component.ts", lineNumber: 8 }); })();
15140
15140
 
15141
15141
  const _c0$O = a0 => ({ "form-group-error": a0 });
15142
- const _c1$l = a0 => ({ selected: a0 });
15142
+ const _c1$k = a0 => ({ selected: a0 });
15143
15143
  function WriteDynamicRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
15144
15144
  i0.ɵɵelementStart(0, "span", 7);
15145
15145
  i0.ɵɵtext(1);
@@ -15189,7 +15189,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
15189
15189
  } if (rf & 2) {
15190
15190
  const radioButton_r2 = ctx.$implicit;
15191
15191
  const ctx_r0 = i0.ɵɵnextContext();
15192
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$l, ctx_r0.dynamicRadioListControl.value === radioButton_r2.code));
15192
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$k, ctx_r0.dynamicRadioListControl.value === radioButton_r2.code));
15193
15193
  i0.ɵɵadvance();
15194
15194
  i0.ɵɵproperty("id", ctx_r0.createElementId(radioButton_r2.code))("name", ctx_r0.id())("formControl", ctx_r0.dynamicRadioListControl)("value", radioButton_r2.code);
15195
15195
  i0.ɵɵadvance();
@@ -15287,7 +15287,7 @@ class ReadEmailFieldComponent extends AbstractFieldReadComponent {
15287
15287
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadEmailFieldComponent, { className: "ReadEmailFieldComponent", filePath: "lib/shared/components/palette/email/read-email-field.component.ts", lineNumber: 10 }); })();
15288
15288
 
15289
15289
  const _c0$N = a0 => ({ "form-group-error": a0 });
15290
- const _c1$k = a0 => ({ "govuk-input--error": a0 });
15290
+ const _c1$j = a0 => ({ "govuk-input--error": a0 });
15291
15291
  function WriteEmailFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
15292
15292
  i0.ɵɵelementStart(0, "span", 6);
15293
15293
  i0.ɵɵtext(1);
@@ -15342,7 +15342,7 @@ class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
15342
15342
  i0.ɵɵadvance();
15343
15343
  i0.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
15344
15344
  i0.ɵɵadvance();
15345
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$k, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
15345
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$j, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
15346
15346
  } }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
15347
15347
  }
15348
15348
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteEmailFieldComponent, [{
@@ -15510,7 +15510,7 @@ class ReadFixedRadioListFieldComponent extends AbstractFieldReadComponent {
15510
15510
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadFixedRadioListFieldComponent, { className: "ReadFixedRadioListFieldComponent", filePath: "lib/shared/components/palette/fixed-radio-list/read-fixed-radio-list-field.component.ts", lineNumber: 8 }); })();
15511
15511
 
15512
15512
  const _c0$L = a0 => ({ "form-group-error": a0 });
15513
- const _c1$j = a0 => ({ selected: a0 });
15513
+ const _c1$i = a0 => ({ selected: a0 });
15514
15514
  function WriteFixedRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
15515
15515
  i0.ɵɵelementStart(0, "span", 6);
15516
15516
  i0.ɵɵtext(1);
@@ -15551,7 +15551,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
15551
15551
  } if (rf & 2) {
15552
15552
  const radioButton_r2 = ctx.$implicit;
15553
15553
  const ctx_r0 = i0.ɵɵnextContext();
15554
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$j, ctx_r0.fixedRadioListControl.value === radioButton_r2.code));
15554
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$i, ctx_r0.fixedRadioListControl.value === radioButton_r2.code));
15555
15555
  i0.ɵɵadvance();
15556
15556
  i0.ɵɵproperty("id", ctx_r0.id() + "-" + radioButton_r2.code)("name", ctx_r0.id())("formControl", ctx_r0.fixedRadioListControl)("value", radioButton_r2.code);
15557
15557
  i0.ɵɵadvance();
@@ -15654,7 +15654,7 @@ class ReadJudicialUserFieldComponent extends AbstractFieldReadComponent {
15654
15654
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadJudicialUserFieldComponent, { className: "ReadJudicialUserFieldComponent", filePath: "lib/shared/components/palette/judicial-user/read-judicial-user-field.component.ts", lineNumber: 11 }); })();
15655
15655
 
15656
15656
  const _c0$K = a0 => ({ "form-group-error": a0 });
15657
- const _c1$i = a0 => ({ "hide-autocomplete": a0 });
15657
+ const _c1$h = a0 => ({ "hide-autocomplete": a0 });
15658
15658
  function WriteJudicialUserFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
15659
15659
  i0.ɵɵelementStart(0, "span", 10);
15660
15660
  i0.ɵɵtext(1);
@@ -15693,7 +15693,7 @@ function WriteJudicialUserFieldComponent_mat_option_8_Template(rf, ctx) { if (rf
15693
15693
  } if (rf & 2) {
15694
15694
  const judicialUser_r4 = ctx.$implicit;
15695
15695
  const ctx_r1 = i0.ɵɵnextContext();
15696
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$i, !ctx_r1.showAutocomplete))("value", judicialUser_r4);
15696
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$h, !ctx_r1.showAutocomplete))("value", judicialUser_r4);
15697
15697
  i0.ɵɵadvance();
15698
15698
  i0.ɵɵtextInterpolate2(" ", (judicialUser_r4 == null ? null : judicialUser_r4.fullName) ? judicialUser_r4.fullName : "", "", (judicialUser_r4 == null ? null : judicialUser_r4.emailId) ? " (" + judicialUser_r4.emailId + ")" : "", " ");
15699
15699
  } }
@@ -16419,7 +16419,7 @@ class ValidatorsUtils {
16419
16419
  }], null, null); })();
16420
16420
 
16421
16421
  const _c0$J = a0 => ({ "govuk-form-group--error": a0 });
16422
- const _c1$h = a0 => ({ "table-group-error": a0 });
16422
+ const _c1$g = a0 => ({ "table-group-error": a0 });
16423
16423
  function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
16424
16424
  i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
16425
16425
  i0.ɵɵtext(2, "Error:");
@@ -16596,7 +16596,7 @@ function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
16596
16596
  const case_r9 = ctx.$implicit;
16597
16597
  const ctx_r1 = i0.ɵɵnextContext();
16598
16598
  i0.ɵɵadvance(2);
16599
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$h, ctx_r1.caseSelectionError && case_r9.caseReference === ctx_r1.linkCaseForm.value.caseNumber));
16599
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$g, ctx_r1.caseSelectionError && case_r9.caseReference === ctx_r1.linkCaseForm.value.caseNumber));
16600
16600
  i0.ɵɵadvance(2);
16601
16601
  i0.ɵɵtextInterpolate1("", case_r9.caseName, " ");
16602
16602
  i0.ɵɵadvance(2);
@@ -16679,8 +16679,8 @@ class LinkCasesComponent {
16679
16679
  })), this.validatorsUtils.formArraySelectedValidator());
16680
16680
  }
16681
16681
  toggleLinkCaseReasonOtherComments(event) {
16682
- this.linkCaseReasons.find(reason => reason.value_en === event.target.value).selected = event.target.checked;
16683
- this.showComments = this.linkCaseReasons.find(reason => reason.value_en === 'Other').selected;
16682
+ this.linkCaseReasons.find((reason) => reason.value_en === event.target.value).selected = event.target.checked;
16683
+ this.showComments = this.linkCaseReasons.find((reason) => reason.value_en === 'Other')?.selected;
16684
16684
  }
16685
16685
  submitCaseInfo() {
16686
16686
  this.errorMessages = [];
@@ -16719,7 +16719,7 @@ class LinkCasesComponent {
16719
16719
  this.errorMessages.push({
16720
16720
  title: 'dummy-case-number',
16721
16721
  description: LinkedCasesErrorMessages.CaseNumberError,
16722
- fieldId: 'caseNumber',
16722
+ fieldId: 'caseNumber'
16723
16723
  });
16724
16724
  }
16725
16725
  if (this.linkCaseForm.controls.reasonType.invalid) {
@@ -16727,17 +16727,17 @@ class LinkCasesComponent {
16727
16727
  this.errorMessages.push({
16728
16728
  title: 'dummy-case-reason',
16729
16729
  description: LinkedCasesErrorMessages.ReasonSelectionError,
16730
- fieldId: 'caseReason',
16730
+ fieldId: 'caseReason'
16731
16731
  });
16732
16732
  }
16733
16733
  if (this.linkCaseForm.controls.reasonType.valid
16734
- && this.linkCaseReasons.find(reason => reason.value_en === 'Other').selected) {
16734
+ && this.linkCaseReasons.find((reason) => reason.value_en === 'Other').selected) {
16735
16735
  if (this.linkCaseForm.controls.otherDescription.value.trim().length === 0) {
16736
16736
  this.caseReasonCommentsError = LinkedCasesErrorMessages.otherDescriptionError;
16737
16737
  this.errorMessages.push({
16738
16738
  title: 'dummy-case-reason-comments',
16739
16739
  description: LinkedCasesErrorMessages.otherDescriptionError,
16740
- fieldId: 'otherDescription',
16740
+ fieldId: 'otherDescription'
16741
16741
  });
16742
16742
  }
16743
16743
  if (this.linkCaseForm.controls.otherDescription.value.trim().length > 100) {
@@ -16745,7 +16745,7 @@ class LinkCasesComponent {
16745
16745
  this.errorMessages.push({
16746
16746
  title: 'dummy-case-reason-comments',
16747
16747
  description: LinkedCasesErrorMessages.otherDescriptionMaxLengthError,
16748
- fieldId: 'otherDescription',
16748
+ fieldId: 'otherDescription'
16749
16749
  });
16750
16750
  }
16751
16751
  }
@@ -16754,7 +16754,7 @@ class LinkCasesComponent {
16754
16754
  this.errorMessages.push({
16755
16755
  title: 'dummy-case-number',
16756
16756
  description: LinkedCasesErrorMessages.CaseProposedError,
16757
- fieldId: 'caseNumber',
16757
+ fieldId: 'caseNumber'
16758
16758
  });
16759
16759
  }
16760
16760
  if (this.isCaseSelected(this.linkedCasesService.linkedCases)) {
@@ -16762,14 +16762,14 @@ class LinkCasesComponent {
16762
16762
  this.errorMessages.push({
16763
16763
  title: 'dummy-case-number',
16764
16764
  description: LinkedCasesErrorMessages.CasesLinkedError,
16765
- fieldId: 'caseNumber',
16765
+ fieldId: 'caseNumber'
16766
16766
  });
16767
16767
  }
16768
16768
  if (this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('')) {
16769
16769
  this.errorMessages.push({
16770
16770
  title: 'dummy-case-number',
16771
16771
  description: LinkedCasesErrorMessages.ProposedCaseWithIn,
16772
- fieldId: 'caseNumber',
16772
+ fieldId: 'caseNumber'
16773
16773
  });
16774
16774
  }
16775
16775
  window.scrollTo(0, 0);
@@ -16790,7 +16790,7 @@ class LinkCasesComponent {
16790
16790
  caseState: caseView.state.name || '',
16791
16791
  caseStateDescription: caseView.state.description || '',
16792
16792
  caseService: caseView.case_type && caseView.case_type.jurisdiction && caseView.case_type.jurisdiction.description || '',
16793
- caseName: this.linkedCasesService.getCaseName(caseView),
16793
+ caseName: this.linkedCasesService.getCaseName(caseView)
16794
16794
  };
16795
16795
  const ccdApiCaseLinkData = {
16796
16796
  CaseReference: caseView.case_id,
@@ -16803,7 +16803,7 @@ class LinkCasesComponent {
16803
16803
  }
16804
16804
  this.linkedCasesService.caseFieldValue.push({ id: caseView.case_id.toString(), value: ccdApiCaseLinkData });
16805
16805
  this.selectedCases.push(caseLink);
16806
- this.linkCaseReasons.forEach(reason => reason.selected = false);
16806
+ this.linkCaseReasons.forEach((reason) => reason.selected = false);
16807
16807
  this.initForm();
16808
16808
  this.emitLinkedCasesState(false);
16809
16809
  }, (error) => {
@@ -16811,7 +16811,7 @@ class LinkCasesComponent {
16811
16811
  this.errorMessages.push({
16812
16812
  title: 'dummy-case-number',
16813
16813
  description: LinkedCasesErrorMessages.CaseCheckAgainError,
16814
- fieldId: 'caseNumber',
16814
+ fieldId: 'caseNumber'
16815
16815
  });
16816
16816
  this.emitLinkedCasesState(false);
16817
16817
  window.scrollTo(0, 0);
@@ -16823,7 +16823,7 @@ class LinkCasesComponent {
16823
16823
  this.linkedCasesStateEmitter.emit({
16824
16824
  currentLinkedCasesPage: LinkedCasesPages.LINK_CASE,
16825
16825
  errorMessages: this.errorMessages,
16826
- navigateToNextPage: isNavigateToNextPage,
16826
+ navigateToNextPage: isNavigateToNextPage
16827
16827
  });
16828
16828
  }
16829
16829
  getSelectedCaseReasons() {
@@ -16858,7 +16858,7 @@ class LinkCasesComponent {
16858
16858
  }
16859
16859
  onSelectedLinkedCaseRemove(pos, selectedCaseReference) {
16860
16860
  const caseFieldValue = this.linkedCasesService.caseFieldValue || [];
16861
- const updatedItems = caseFieldValue.filter(item => item.value && item.value.CaseReference !== selectedCaseReference);
16861
+ const updatedItems = caseFieldValue.filter((item) => item.value && item.value.CaseReference !== selectedCaseReference);
16862
16862
  if (updatedItems) {
16863
16863
  this.linkedCasesService.caseFieldValue = updatedItems;
16864
16864
  }
@@ -16879,7 +16879,7 @@ class LinkCasesComponent {
16879
16879
  this.errorMessages.push({
16880
16880
  title: 'dummy-case-selection',
16881
16881
  description: LinkedCasesErrorMessages.CaseSelectionError,
16882
- fieldId: 'caseReason',
16882
+ fieldId: 'caseReason'
16883
16883
  });
16884
16884
  navigateToNextPage = false;
16885
16885
  }
@@ -17614,7 +17614,7 @@ class UnLinkCasesComponent {
17614
17614
  }
17615
17615
  else {
17616
17616
  this.casesService.getCaseViewV2(this.caseId).subscribe((caseView) => {
17617
- const linkedCasesTab = caseView.tabs.find(tab => tab.id === UnLinkCasesComponent.LINKED_CASES_TAB_ID);
17617
+ const linkedCasesTab = caseView.tabs.find((tab) => tab.id === UnLinkCasesComponent.LINKED_CASES_TAB_ID);
17618
17618
  if (linkedCasesTab) {
17619
17619
  const linkedCases = linkedCasesTab.fields[0].value;
17620
17620
  this.linkedCases = linkedCases;
@@ -17626,22 +17626,22 @@ class UnLinkCasesComponent {
17626
17626
  }
17627
17627
  getAllLinkedCaseInformation() {
17628
17628
  const searchCasesResponse = [];
17629
- this.linkedCases.forEach(linkedCase => {
17629
+ this.linkedCases.forEach((linkedCase) => {
17630
17630
  searchCasesResponse.push(this.casesService.getCaseViewV2(linkedCase.caseReference));
17631
17631
  });
17632
17632
  if (searchCasesResponse.length) {
17633
17633
  this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
17634
17634
  searchCases.forEach((response) => {
17635
- const linkedCaseFromList = this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id);
17635
+ const linkedCaseFromList = this.linkedCases.find((linkedCase) => linkedCase.caseReference === response.case_id);
17636
17636
  if (linkedCaseFromList) {
17637
17637
  const caseName = this.linkedCasesService.getCaseName(response);
17638
- this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id).caseName = caseName;
17638
+ this.linkedCases.find((linkedCase) => linkedCase.caseReference === response.case_id).caseName = caseName;
17639
17639
  }
17640
17640
  });
17641
17641
  this.initForm();
17642
17642
  this.linkedCasesService.linkedCases = this.linkedCases;
17643
17643
  this.isServerError = false;
17644
- }, err => {
17644
+ }, (err) => {
17645
17645
  this.isServerError = true;
17646
17646
  this.notifyAPIFailure.emit(true);
17647
17647
  });
@@ -17656,7 +17656,7 @@ class UnLinkCasesComponent {
17656
17656
  });
17657
17657
  }
17658
17658
  get getLinkedCasesFormArray() {
17659
- const formFieldArray = this.linkedCases.map(val => this.fb.group({
17659
+ const formFieldArray = this.linkedCases.map((val) => this.fb.group({
17660
17660
  caseReference: val.caseReference,
17661
17661
  reasons: val.reasons,
17662
17662
  createdDateTime: val.createdDateTime,
@@ -17670,7 +17670,7 @@ class UnLinkCasesComponent {
17670
17670
  }
17671
17671
  onChange(caseSelected) {
17672
17672
  this.resetErrorMessages();
17673
- const selectedCase = this.linkedCases.find(linkedCase => linkedCase.caseReference === caseSelected.value);
17673
+ const selectedCase = this.linkedCases.find((linkedCase) => linkedCase.caseReference === caseSelected.value);
17674
17674
  if (selectedCase) {
17675
17675
  selectedCase.unlink = caseSelected.checked ? true : false;
17676
17676
  }
@@ -17678,7 +17678,7 @@ class UnLinkCasesComponent {
17678
17678
  onNext() {
17679
17679
  this.resetErrorMessages();
17680
17680
  let navigateToNextPage = true;
17681
- const casesMarkedToUnlink = this.linkedCases.find(linkedCase => linkedCase.unlink && linkedCase.unlink === true);
17681
+ const casesMarkedToUnlink = this.linkedCases.find((linkedCase) => linkedCase.unlink && linkedCase.unlink === true);
17682
17682
  if (!casesMarkedToUnlink) {
17683
17683
  this.errorMessages.push({
17684
17684
  title: 'case-selection',
@@ -17696,7 +17696,7 @@ class UnLinkCasesComponent {
17696
17696
  this.linkedCasesStateEmitter.emit({
17697
17697
  currentLinkedCasesPage: LinkedCasesPages.UNLINK_CASE,
17698
17698
  errorMessages: this.errorMessages,
17699
- navigateToNextPage: isNavigateToNextPage,
17699
+ navigateToNextPage: isNavigateToNextPage
17700
17700
  });
17701
17701
  }
17702
17702
  resetErrorMessages() {
@@ -18039,14 +18039,16 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
18039
18039
  // Get linked case reasons from ref data
18040
18040
  this.linkedCasesService.editMode = false;
18041
18041
  this.subscriptions.add(this.caseEditDataService.caseDetails$.subscribe({
18042
- next: caseDetails => { this.initialiseCaseDetails(caseDetails); }
18042
+ next: (caseDetails) => {
18043
+ this.initialiseCaseDetails(caseDetails);
18044
+ }
18043
18045
  }));
18044
18046
  this.getOrgService();
18045
18047
  this.subscriptions.add(this.caseEditDataService.caseEventTriggerName$.subscribe({
18046
- next: name => this.linkedCasesService.isLinkedCasesEventTrigger = (name === LinkedCasesEventTriggers.LINK_CASES)
18048
+ next: (name) => this.linkedCasesService.isLinkedCasesEventTrigger = (name === LinkedCasesEventTriggers.LINK_CASES)
18047
18049
  }));
18048
18050
  this.subscriptions.add(this.caseEditDataService.caseEditForm$.subscribe({
18049
- next: editForm => this.caseEditForm = editForm
18051
+ next: (editForm) => this.caseEditForm = editForm
18050
18052
  }));
18051
18053
  }
18052
18054
  initialiseCaseDetails(caseDetails) {
@@ -18122,13 +18124,28 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
18122
18124
  }
18123
18125
  }
18124
18126
  submitLinkedCases() {
18127
+ let caseFieldValue = [...(this.linkedCasesService.caseFieldValue || [])];
18125
18128
  if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
18126
- const unlinkedCaseRefereneIds = this.linkedCasesService.linkedCases.filter(item => item.unlink).map(item => item.caseReference);
18127
- const caseFieldValue = this.linkedCasesService.caseFieldValue;
18128
- this.linkedCasesService.caseFieldValue = caseFieldValue.filter(item => unlinkedCaseRefereneIds.indexOf(item.id) === -1);
18129
+ const unlinkedCaseReferenceIds = this.linkedCasesService.linkedCases
18130
+ .filter((item) => item.unlink)
18131
+ .map((item) => item.caseReference);
18132
+ caseFieldValue = caseFieldValue.filter((item) => !unlinkedCaseReferenceIds.includes(item.id));
18133
+ }
18134
+ // Replace the caseLinks value in this.formGroup
18135
+ this.formGroup.patchValue({
18136
+ caseLinks: caseFieldValue
18137
+ });
18138
+ // Replace the caseLinks control in caseEditForm.controls.data
18139
+ const dataFormGroup = this.caseEditForm.controls.data;
18140
+ if (dataFormGroup) {
18141
+ // Remove the existing caseLinks control (if it exists)
18142
+ if (dataFormGroup.contains('caseLinks')) {
18143
+ dataFormGroup.removeControl('caseLinks');
18144
+ }
18145
+ // Add the new control with the replacement value
18146
+ dataFormGroup.addControl('caseLinks', new FormControl(caseFieldValue || []));
18129
18147
  }
18130
- this.formGroup.value.caseLinks = this.linkedCasesService.caseFieldValue;
18131
- this.caseEditForm.controls['data'] = new FormGroup({ caseLinks: new FormControl(this.linkedCasesService.caseFieldValue || []) });
18148
+ // Set the updated form in the caseEditDataService
18132
18149
  this.caseEditDataService.setCaseEditForm(this.caseEditForm);
18133
18150
  }
18134
18151
  isAtFinalPage() {
@@ -18145,11 +18162,11 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
18145
18162
  }
18146
18163
  getLinkedCases() {
18147
18164
  this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe((caseView) => {
18148
- const caseViewFiltered = caseView.tabs.filter(tab => {
18165
+ const caseViewFiltered = caseView.tabs.filter((tab) => {
18149
18166
  return tab.fields.some(({ field_type }) => field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink');
18150
18167
  });
18151
18168
  if (caseViewFiltered) {
18152
- const caseLinkFieldValue = caseViewFiltered.map(filtered => filtered.fields?.length > 0 && filtered.fields.filter(field => field.id === 'caseLinks')[0].value);
18169
+ const caseLinkFieldValue = caseViewFiltered.map((filtered) => filtered.fields?.length > 0 && filtered.fields.filter((field) => field.id === 'caseLinks')[0].value);
18153
18170
  this.linkedCasesService.caseFieldValue = caseLinkFieldValue.length ? caseLinkFieldValue[0] : [];
18154
18171
  this.linkedCasesService.getAllLinkedCaseInformation();
18155
18172
  }
@@ -18189,7 +18206,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
18189
18206
  type: Component,
18190
18207
  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" }]
18191
18208
  }], () => [{ type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }], null); })();
18192
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber: 19 }); })();
18209
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber: 18 }); })();
18193
18210
 
18194
18211
  function ReadMoneyGbpFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
18195
18212
  i0.ɵɵelementContainerStart(0);
@@ -18609,7 +18626,7 @@ class ReadNumberFieldComponent extends AbstractFieldReadComponent {
18609
18626
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadNumberFieldComponent, { className: "ReadNumberFieldComponent", filePath: "lib/shared/components/palette/number/read-number-field.component.ts", lineNumber: 8 }); })();
18610
18627
 
18611
18628
  const _c0$F = a0 => ({ "form-group-error": a0 });
18612
- const _c1$g = a0 => ({ "govuk-input--error": a0 });
18629
+ const _c1$f = a0 => ({ "govuk-input--error": a0 });
18613
18630
  function WriteNumberFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
18614
18631
  i0.ɵɵelementStart(0, "span", 6);
18615
18632
  i0.ɵɵtext(1);
@@ -18664,7 +18681,7 @@ class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
18664
18681
  i0.ɵɵadvance();
18665
18682
  i0.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
18666
18683
  i0.ɵɵadvance();
18667
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$g, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
18684
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$f, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
18668
18685
  } }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NumberValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
18669
18686
  }
18670
18687
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteNumberFieldComponent, [{
@@ -19292,7 +19309,7 @@ class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
19292
19309
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadPhoneUKFieldComponent, { className: "ReadPhoneUKFieldComponent", filePath: "lib/shared/components/palette/phone-uk/read-phone-uk-field.component.ts", lineNumber: 8 }); })();
19293
19310
 
19294
19311
  const _c0$D = a0 => ({ "form-group-error": a0 });
19295
- const _c1$f = a0 => ({ "govuk-input--error": a0 });
19312
+ const _c1$e = a0 => ({ "govuk-input--error": a0 });
19296
19313
  function WritePhoneUKFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
19297
19314
  i0.ɵɵelementStart(0, "span", 6);
19298
19315
  i0.ɵɵtext(1);
@@ -19347,7 +19364,7 @@ class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
19347
19364
  i0.ɵɵadvance();
19348
19365
  i0.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
19349
19366
  i0.ɵɵadvance();
19350
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$f, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
19367
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$e, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
19351
19368
  } }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
19352
19369
  }
19353
19370
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
@@ -20262,6 +20279,7 @@ class QueryCheckYourAnswersComponent {
20262
20279
  caseViewTrigger;
20263
20280
  caseDetails;
20264
20281
  queryId;
20282
+ tid;
20265
20283
  createEventSubscription;
20266
20284
  searchTasksSubscription;
20267
20285
  queryCreateContextEnum = QueryCreateContext;
@@ -20270,6 +20288,7 @@ class QueryCheckYourAnswersComponent {
20270
20288
  fieldId;
20271
20289
  attachments;
20272
20290
  errorMessages = [];
20291
+ filteredTask = [];
20273
20292
  constructor(route, router, casesService, caseNotifier, workAllocationService, sessionStorageService, qualifyingQuestionService) {
20274
20293
  this.route = route;
20275
20294
  this.router = router;
@@ -20281,6 +20300,7 @@ class QueryCheckYourAnswersComponent {
20281
20300
  }
20282
20301
  ngOnInit() {
20283
20302
  this.queryId = this.route.snapshot.params.qid;
20303
+ this.tid = this.route.snapshot.queryParams?.tid;
20284
20304
  this.caseNotifier.caseView.pipe(take(1)).subscribe((caseDetails) => {
20285
20305
  this.caseDetails = caseDetails;
20286
20306
  // Find the appropriate event trigger based on the queryCreateContext
@@ -20293,6 +20313,23 @@ class QueryCheckYourAnswersComponent {
20293
20313
  // Get the document attachments
20294
20314
  this.getDocumentAttachments();
20295
20315
  this.setCaseQueriesCollectionData();
20316
+ if (this.queryCreateContext === QueryCreateContext.RESPOND) {
20317
+ this.searchTasksSubscription = this.workAllocationService.getTasksByCaseIdAndEventId(this.RESPOND_TO_QUERY_EVENT_TRIGGER_ID, this.caseDetails.case_id, this.caseDetails.case_type.id, this.caseDetails.case_type.jurisdiction.id)
20318
+ .subscribe({
20319
+ next: (response) => {
20320
+ // Filter task by query id
20321
+ if (response.tasks?.length > 1) {
20322
+ this.filteredTask = response.tasks?.find((task) => task.case_id === this.tid);
20323
+ }
20324
+ else {
20325
+ this.filteredTask = response.tasks;
20326
+ }
20327
+ },
20328
+ error: (error) => {
20329
+ console.error('Error in searchTasksSubscription:', error);
20330
+ }
20331
+ });
20332
+ }
20296
20333
  }
20297
20334
  ngOnDestroy() {
20298
20335
  this.createEventSubscription?.unsubscribe();
@@ -20302,7 +20339,6 @@ class QueryCheckYourAnswersComponent {
20302
20339
  this.backClicked.emit(true);
20303
20340
  }
20304
20341
  submit() {
20305
- // Check if fieldId is null or undefined
20306
20342
  if (!this.fieldId) {
20307
20343
  console.error('Error: Field ID is missing. Cannot proceed with submission.');
20308
20344
  this.errorMessages = [
@@ -20315,7 +20351,25 @@ class QueryCheckYourAnswersComponent {
20315
20351
  return;
20316
20352
  }
20317
20353
  const data = this.generateCaseQueriesCollectionData();
20318
- this.createEventSubscription = this.casesService.createEvent(this.caseDetails, {
20354
+ const createEvent$ = this.createEvent(data);
20355
+ if (this.queryCreateContext === QueryCreateContext.RESPOND) {
20356
+ const completeTask$ = this.workAllocationService.completeTask(this.filteredTask[0].id, this.caseViewTrigger.name);
20357
+ this.createEventSubscription = forkJoin([createEvent$, completeTask$]).subscribe({
20358
+ next: ([createEventResponse, tasksResponse]) => {
20359
+ this.finaliseSubmission();
20360
+ },
20361
+ error: (error) => this.handleError(error)
20362
+ });
20363
+ }
20364
+ else {
20365
+ this.createEventSubscription = createEvent$.subscribe({
20366
+ next: () => this.finaliseSubmission(),
20367
+ error: (error) => this.handleError(error)
20368
+ });
20369
+ }
20370
+ }
20371
+ createEvent(data) {
20372
+ return this.casesService.createEvent(this.caseDetails, {
20319
20373
  data,
20320
20374
  event: {
20321
20375
  id: this.caseViewTrigger?.id,
@@ -20324,34 +20378,16 @@ class QueryCheckYourAnswersComponent {
20324
20378
  },
20325
20379
  event_token: this.eventData?.event_token,
20326
20380
  ignore_warning: false
20327
- }).subscribe(() => {
20328
- // Search and complete task
20329
- this.searchAndCompleteTask();
20330
- // Emit query submitted event
20331
- this.querySubmitted.emit(true);
20332
- this.qualifyingQuestionService.clearQualifyingQuestionSelection();
20333
- },
20334
- // Error
20335
- () => this.router.navigate(['/', 'service-down']));
20336
- }
20337
- searchAndCompleteTask() {
20338
- // Search Task
20339
- const searchParameter = { ccdId: this.caseDetails.case_id };
20340
- this.searchTasksSubscription = this.workAllocationService.searchTasks(searchParameter)
20341
- .subscribe((response) => {
20342
- // Filter task by query id
20343
- const filteredTask = response.tasks?.find((task) => Object.values(task.additional_properties).some((value) => value === this.queryId));
20344
- // Trigger event completion
20345
- this.eventCompletionParams = {
20346
- caseId: this.caseDetails.case_id,
20347
- eventId: this.RESPOND_TO_QUERY_EVENT_TRIGGER_ID,
20348
- task: filteredTask
20349
- };
20350
- }, (error) => {
20351
- console.error('Error in searchTasksSubscription:', error);
20352
- // Handle error appropriately
20353
20381
  });
20354
20382
  }
20383
+ finaliseSubmission() {
20384
+ this.querySubmitted.emit(true);
20385
+ this.qualifyingQuestionService.clearQualifyingQuestionSelection();
20386
+ }
20387
+ handleError(error) {
20388
+ console.error('Error in API calls:', error);
20389
+ this.router.navigate(['/', 'service-down']);
20390
+ }
20355
20391
  generateCaseQueriesCollectionData() {
20356
20392
  const currentUserDetails = JSON.parse(this.sessionStorageService.getItem('userDetails'));
20357
20393
  const caseMessage = this.queryCreateContext === QueryCreateContext.NEW_QUERY
@@ -20560,51 +20596,62 @@ class QueryCheckYourAnswersComponent {
20560
20596
  }], querySubmitted: [{
20561
20597
  type: Output
20562
20598
  }] }); })();
20563
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCheckYourAnswersComponent, { className: "QueryCheckYourAnswersComponent", filePath: "lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.ts", lineNumber: 27 }); })();
20599
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCheckYourAnswersComponent, { className: "QueryCheckYourAnswersComponent", filePath: "lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.ts", lineNumber: 26 }); })();
20564
20600
 
20565
- function QueryDetailsComponent_ng_container_0_tr_46_Template(rf, ctx) { if (rf & 1) {
20566
- i0.ɵɵelementStart(0, "tr", 11)(1, "th", 7);
20601
+ function QueryDetailsComponent_cut_alert_0_Template(rf, ctx) { if (rf & 1) {
20602
+ i0.ɵɵelementStart(0, "cut-alert", 3);
20603
+ i0.ɵɵelementContainerStart(1);
20604
+ i0.ɵɵtext(2);
20605
+ i0.ɵɵelementContainerEnd();
20606
+ i0.ɵɵelementEnd();
20607
+ } if (rf & 2) {
20608
+ const ctx_r0 = i0.ɵɵnextContext();
20609
+ i0.ɵɵadvance(2);
20610
+ i0.ɵɵtextInterpolate(ctx_r0.message);
20611
+ } }
20612
+ function QueryDetailsComponent_ng_container_1_tr_46_Template(rf, ctx) { if (rf & 1) {
20613
+ i0.ɵɵelementStart(0, "tr", 13)(1, "th", 9);
20567
20614
  i0.ɵɵtext(2);
20568
20615
  i0.ɵɵpipe(3, "rpxTranslate");
20569
20616
  i0.ɵɵelementEnd();
20570
- i0.ɵɵelementStart(4, "td", 8);
20617
+ i0.ɵɵelementStart(4, "td", 10);
20571
20618
  i0.ɵɵtext(5);
20572
20619
  i0.ɵɵpipe(6, "date");
20573
20620
  i0.ɵɵelementEnd()();
20574
20621
  } if (rf & 2) {
20575
- const ctx_r1 = i0.ɵɵnextContext(2);
20622
+ const ctx_r0 = i0.ɵɵnextContext(2);
20576
20623
  i0.ɵɵadvance(2);
20577
20624
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "What is the date of the hearing?"));
20578
20625
  i0.ɵɵadvance(3);
20579
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 4, ctx_r1.query.hearingDate, "dd MMM yyyy"));
20626
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 4, ctx_r0.query.hearingDate, "dd MMM yyyy"));
20580
20627
  } }
20581
- function QueryDetailsComponent_ng_container_0_tr_47_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
20582
- i0.ɵɵelement(0, "ccd-query-attachments-read", 13);
20628
+ function QueryDetailsComponent_ng_container_1_tr_47_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
20629
+ i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
20583
20630
  } if (rf & 2) {
20584
- const ctx_r1 = i0.ɵɵnextContext(3);
20585
- i0.ɵɵproperty("attachments", ctx_r1.query.attachments);
20631
+ const ctx_r0 = i0.ɵɵnextContext(3);
20632
+ i0.ɵɵproperty("attachments", ctx_r0.query.attachments);
20586
20633
  } }
20587
- function QueryDetailsComponent_ng_container_0_tr_47_Template(rf, ctx) { if (rf & 1) {
20588
- i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
20634
+ function QueryDetailsComponent_ng_container_1_tr_47_Template(rf, ctx) { if (rf & 1) {
20635
+ i0.ɵɵelementStart(0, "tr", 8)(1, "th", 9);
20589
20636
  i0.ɵɵtext(2);
20590
20637
  i0.ɵɵpipe(3, "rpxTranslate");
20591
20638
  i0.ɵɵelementEnd();
20592
- i0.ɵɵelementStart(4, "td", 8);
20593
- i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_tr_47_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 12);
20639
+ i0.ɵɵelementStart(4, "td", 10);
20640
+ i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_1_tr_47_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 14);
20594
20641
  i0.ɵɵelementEnd()();
20595
20642
  } if (rf & 2) {
20596
- const ctx_r1 = i0.ɵɵnextContext(2);
20643
+ const ctx_r0 = i0.ɵɵnextContext(2);
20597
20644
  i0.ɵɵadvance(2);
20598
20645
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Attachments"));
20599
20646
  i0.ɵɵadvance(3);
20600
- i0.ɵɵproperty("ngIf", ctx_r1.query.attachments);
20647
+ i0.ɵɵproperty("ngIf", ctx_r0.query.attachments);
20601
20648
  } }
20602
- function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_container_1_tr_15_Template(rf, ctx) { if (rf & 1) {
20603
- i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
20649
+ function QueryDetailsComponent_ng_container_1_ng_container_48_ng_container_1_ng_container_1_tr_15_Template(rf, ctx) { if (rf & 1) {
20650
+ i0.ɵɵelementStart(0, "tr", 8)(1, "th", 9);
20604
20651
  i0.ɵɵtext(2);
20605
20652
  i0.ɵɵpipe(3, "rpxTranslate");
20606
20653
  i0.ɵɵelementEnd();
20607
- i0.ɵɵelementStart(4, "td", 8);
20654
+ i0.ɵɵelementStart(4, "td", 10);
20608
20655
  i0.ɵɵtext(5);
20609
20656
  i0.ɵɵelementEnd()();
20610
20657
  } if (rf & 2) {
@@ -20614,19 +20661,19 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
20614
20661
  i0.ɵɵadvance(3);
20615
20662
  i0.ɵɵtextInterpolate(child_r3.name);
20616
20663
  } }
20617
- function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_container_1_tr_22_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
20618
- i0.ɵɵelement(0, "ccd-query-attachments-read", 13);
20664
+ function QueryDetailsComponent_ng_container_1_ng_container_48_ng_container_1_ng_container_1_tr_22_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
20665
+ i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
20619
20666
  } if (rf & 2) {
20620
20667
  const child_r3 = i0.ɵɵnextContext(3).$implicit;
20621
20668
  i0.ɵɵproperty("attachments", child_r3.attachments);
20622
20669
  } }
20623
- function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_container_1_tr_22_Template(rf, ctx) { if (rf & 1) {
20624
- i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
20670
+ function QueryDetailsComponent_ng_container_1_ng_container_48_ng_container_1_ng_container_1_tr_22_Template(rf, ctx) { if (rf & 1) {
20671
+ i0.ɵɵelementStart(0, "tr", 8)(1, "th", 9);
20625
20672
  i0.ɵɵtext(2);
20626
20673
  i0.ɵɵpipe(3, "rpxTranslate");
20627
20674
  i0.ɵɵelementEnd();
20628
- i0.ɵɵelementStart(4, "td", 8);
20629
- i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_container_1_tr_22_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 12);
20675
+ i0.ɵɵelementStart(4, "td", 10);
20676
+ i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_1_ng_container_48_ng_container_1_ng_container_1_tr_22_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 14);
20630
20677
  i0.ɵɵelementEnd()();
20631
20678
  } if (rf & 2) {
20632
20679
  const child_r3 = i0.ɵɵnextContext(2).$implicit;
@@ -20635,36 +20682,36 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
20635
20682
  i0.ɵɵadvance(3);
20636
20683
  i0.ɵɵproperty("ngIf", child_r3.attachments);
20637
20684
  } }
20638
- function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
20685
+ function QueryDetailsComponent_ng_container_1_ng_container_48_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
20639
20686
  i0.ɵɵelementContainerStart(0);
20640
- i0.ɵɵelementStart(1, "table", 3);
20687
+ i0.ɵɵelementStart(1, "table", 5);
20641
20688
  i0.ɵɵpipe(2, "rpxTranslate");
20642
- i0.ɵɵelementStart(3, "caption", 4)(4, "div");
20689
+ i0.ɵɵelementStart(3, "caption", 6)(4, "div");
20643
20690
  i0.ɵɵtext(5);
20644
20691
  i0.ɵɵpipe(6, "rpxTranslate");
20645
20692
  i0.ɵɵelementEnd()();
20646
- i0.ɵɵelementStart(7, "tbody", 5)(8, "tr", 6)(9, "th", 7);
20693
+ i0.ɵɵelementStart(7, "tbody", 7)(8, "tr", 8)(9, "th", 9);
20647
20694
  i0.ɵɵtext(10);
20648
20695
  i0.ɵɵpipe(11, "rpxTranslate");
20649
20696
  i0.ɵɵelementEnd();
20650
- i0.ɵɵelementStart(12, "td", 8);
20697
+ i0.ɵɵelementStart(12, "td", 10);
20651
20698
  i0.ɵɵtext(13);
20652
20699
  i0.ɵɵpipe(14, "date");
20653
20700
  i0.ɵɵelementEnd()();
20654
- i0.ɵɵtemplate(15, QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_container_1_tr_15_Template, 6, 4, "tr", 10);
20655
- i0.ɵɵelementStart(16, "tr", 6)(17, "th", 7);
20701
+ i0.ɵɵtemplate(15, QueryDetailsComponent_ng_container_1_ng_container_48_ng_container_1_ng_container_1_tr_15_Template, 6, 4, "tr", 12);
20702
+ i0.ɵɵelementStart(16, "tr", 8)(17, "th", 9);
20656
20703
  i0.ɵɵtext(18);
20657
20704
  i0.ɵɵpipe(19, "rpxTranslate");
20658
20705
  i0.ɵɵelementEnd();
20659
- i0.ɵɵelementStart(20, "td", 8);
20706
+ i0.ɵɵelementStart(20, "td", 10);
20660
20707
  i0.ɵɵtext(21);
20661
20708
  i0.ɵɵelementEnd()();
20662
- i0.ɵɵtemplate(22, QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_container_1_tr_22_Template, 6, 4, "tr", 10);
20709
+ i0.ɵɵtemplate(22, QueryDetailsComponent_ng_container_1_ng_container_48_ng_container_1_ng_container_1_tr_22_Template, 6, 4, "tr", 12);
20663
20710
  i0.ɵɵelementEnd()();
20664
20711
  i0.ɵɵelementContainerEnd();
20665
20712
  } if (rf & 2) {
20666
20713
  const child_r3 = i0.ɵɵnextContext().$implicit;
20667
- const ctx_r1 = i0.ɵɵnextContext(3);
20714
+ const ctx_r0 = i0.ɵɵnextContext(3);
20668
20715
  i0.ɵɵadvance();
20669
20716
  i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(2, 8, "Response of the query"));
20670
20717
  i0.ɵɵadvance(4);
@@ -20674,7 +20721,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
20674
20721
  i0.ɵɵadvance(3);
20675
20722
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 14, child_r3.createdOn, "dd MMM yyyy"));
20676
20723
  i0.ɵɵadvance(2);
20677
- i0.ɵɵproperty("ngIf", ctx_r1.isCaseworker());
20724
+ i0.ɵɵproperty("ngIf", ctx_r0.isCaseworker());
20678
20725
  i0.ɵɵadvance(3);
20679
20726
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 17, "Response detail"));
20680
20727
  i0.ɵɵadvance(3);
@@ -20682,19 +20729,19 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
20682
20729
  i0.ɵɵadvance();
20683
20730
  i0.ɵɵproperty("ngIf", child_r3.attachments.length > 0);
20684
20731
  } }
20685
- function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_template_2_tr_26_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
20686
- i0.ɵɵelement(0, "ccd-query-attachments-read", 13);
20732
+ function QueryDetailsComponent_ng_container_1_ng_container_48_ng_container_1_ng_template_2_tr_26_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
20733
+ i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
20687
20734
  } if (rf & 2) {
20688
20735
  const child_r3 = i0.ɵɵnextContext(3).$implicit;
20689
20736
  i0.ɵɵproperty("attachments", child_r3.attachments);
20690
20737
  } }
20691
- function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_template_2_tr_26_Template(rf, ctx) { if (rf & 1) {
20692
- i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
20738
+ function QueryDetailsComponent_ng_container_1_ng_container_48_ng_container_1_ng_template_2_tr_26_Template(rf, ctx) { if (rf & 1) {
20739
+ i0.ɵɵelementStart(0, "tr", 8)(1, "th", 9);
20693
20740
  i0.ɵɵtext(2);
20694
20741
  i0.ɵɵpipe(3, "rpxTranslate");
20695
20742
  i0.ɵɵelementEnd();
20696
- i0.ɵɵelementStart(4, "td", 8);
20697
- i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_template_2_tr_26_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 12);
20743
+ i0.ɵɵelementStart(4, "td", 10);
20744
+ i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_1_ng_container_48_ng_container_1_ng_template_2_tr_26_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 14);
20698
20745
  i0.ɵɵelementEnd()();
20699
20746
  } if (rf & 2) {
20700
20747
  const child_r3 = i0.ɵɵnextContext(2).$implicit;
@@ -20703,36 +20750,36 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
20703
20750
  i0.ɵɵadvance(3);
20704
20751
  i0.ɵɵproperty("ngIf", child_r3.attachments);
20705
20752
  } }
20706
- function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
20707
- i0.ɵɵelementStart(0, "table", 3);
20753
+ function QueryDetailsComponent_ng_container_1_ng_container_48_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
20754
+ i0.ɵɵelementStart(0, "table", 5);
20708
20755
  i0.ɵɵpipe(1, "rpxTranslate");
20709
- i0.ɵɵelementStart(2, "caption", 4)(3, "div");
20756
+ i0.ɵɵelementStart(2, "caption", 6)(3, "div");
20710
20757
  i0.ɵɵtext(4);
20711
20758
  i0.ɵɵpipe(5, "rpxTranslate");
20712
20759
  i0.ɵɵelementEnd()();
20713
- i0.ɵɵelementStart(6, "tbody", 5)(7, "tr", 6)(8, "th", 7);
20760
+ i0.ɵɵelementStart(6, "tbody", 7)(7, "tr", 8)(8, "th", 9);
20714
20761
  i0.ɵɵtext(9);
20715
20762
  i0.ɵɵpipe(10, "rpxTranslate");
20716
20763
  i0.ɵɵelementEnd();
20717
- i0.ɵɵelementStart(11, "td", 8);
20764
+ i0.ɵɵelementStart(11, "td", 10);
20718
20765
  i0.ɵɵtext(12);
20719
20766
  i0.ɵɵpipe(13, "date");
20720
20767
  i0.ɵɵelementEnd()();
20721
- i0.ɵɵelementStart(14, "tr", 6)(15, "th", 7);
20768
+ i0.ɵɵelementStart(14, "tr", 8)(15, "th", 9);
20722
20769
  i0.ɵɵtext(16);
20723
20770
  i0.ɵɵpipe(17, "rpxTranslate");
20724
20771
  i0.ɵɵelementEnd();
20725
- i0.ɵɵelementStart(18, "td", 8);
20772
+ i0.ɵɵelementStart(18, "td", 10);
20726
20773
  i0.ɵɵtext(19);
20727
20774
  i0.ɵɵelementEnd()();
20728
- i0.ɵɵelementStart(20, "tr", 6)(21, "th", 7);
20775
+ i0.ɵɵelementStart(20, "tr", 8)(21, "th", 9);
20729
20776
  i0.ɵɵtext(22);
20730
20777
  i0.ɵɵpipe(23, "rpxTranslate");
20731
20778
  i0.ɵɵelementEnd();
20732
- i0.ɵɵelementStart(24, "td", 8);
20779
+ i0.ɵɵelementStart(24, "td", 10);
20733
20780
  i0.ɵɵtext(25);
20734
20781
  i0.ɵɵelementEnd()();
20735
- i0.ɵɵtemplate(26, QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_template_2_tr_26_Template, 6, 4, "tr", 10);
20782
+ i0.ɵɵtemplate(26, QueryDetailsComponent_ng_container_1_ng_container_48_ng_container_1_ng_template_2_tr_26_Template, 6, 4, "tr", 12);
20736
20783
  i0.ɵɵelementEnd()();
20737
20784
  } if (rf & 2) {
20738
20785
  const child_r3 = i0.ɵɵnextContext().$implicit;
@@ -20754,9 +20801,9 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
20754
20801
  i0.ɵɵadvance();
20755
20802
  i0.ɵɵproperty("ngIf", child_r3.attachments.length > 0);
20756
20803
  } }
20757
- function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_Template(rf, ctx) { if (rf & 1) {
20804
+ function QueryDetailsComponent_ng_container_1_ng_container_48_ng_container_1_Template(rf, ctx) { if (rf & 1) {
20758
20805
  i0.ɵɵelementContainerStart(0);
20759
- i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_container_1_Template, 23, 19, "ng-container", 15)(2, QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_template_2_Template, 27, 22, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
20806
+ i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_1_ng_container_48_ng_container_1_ng_container_1_Template, 23, 19, "ng-container", 17)(2, QueryDetailsComponent_ng_container_1_ng_container_48_ng_container_1_ng_template_2_Template, 27, 22, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
20760
20807
  i0.ɵɵelementContainerEnd();
20761
20808
  } if (rf & 2) {
20762
20809
  const i_r4 = ctx.index;
@@ -20764,73 +20811,73 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_Tem
20764
20811
  i0.ɵɵadvance();
20765
20812
  i0.ɵɵproperty("ngIf", i_r4 % 2 === 0)("ngIfElse", followUpMessage_r5);
20766
20813
  } }
20767
- function QueryDetailsComponent_ng_container_0_ng_container_48_Template(rf, ctx) { if (rf & 1) {
20814
+ function QueryDetailsComponent_ng_container_1_ng_container_48_Template(rf, ctx) { if (rf & 1) {
20768
20815
  i0.ɵɵelementContainerStart(0);
20769
- i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_Template, 4, 2, "ng-container", 14);
20816
+ i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_1_ng_container_48_ng_container_1_Template, 4, 2, "ng-container", 16);
20770
20817
  i0.ɵɵelementContainerEnd();
20771
20818
  } if (rf & 2) {
20772
- const ctx_r1 = i0.ɵɵnextContext(2);
20819
+ const ctx_r0 = i0.ɵɵnextContext(2);
20773
20820
  i0.ɵɵadvance();
20774
- i0.ɵɵproperty("ngForOf", ctx_r1.query.children);
20821
+ i0.ɵɵproperty("ngForOf", ctx_r0.query.children);
20775
20822
  } }
20776
- function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
20777
- const _r1 = i0.ɵɵgetCurrentView();
20823
+ function QueryDetailsComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
20824
+ const _r2 = i0.ɵɵgetCurrentView();
20778
20825
  i0.ɵɵelementContainerStart(0);
20779
20826
  i0.ɵɵelement(1, "br");
20780
- i0.ɵɵelementStart(2, "p")(3, "a", 2);
20781
- i0.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_Template_a_click_3_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onBack()); });
20827
+ i0.ɵɵelementStart(2, "p")(3, "a", 4);
20828
+ i0.ɵɵlistener("click", function QueryDetailsComponent_ng_container_1_Template_a_click_3_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onBack()); });
20782
20829
  i0.ɵɵtext(4);
20783
20830
  i0.ɵɵpipe(5, "rpxTranslate");
20784
20831
  i0.ɵɵelementEnd()();
20785
- i0.ɵɵelementStart(6, "div")(7, "table", 3);
20832
+ i0.ɵɵelementStart(6, "div")(7, "table", 5);
20786
20833
  i0.ɵɵpipe(8, "rpxTranslate");
20787
- i0.ɵɵelementStart(9, "caption", 4)(10, "div");
20834
+ i0.ɵɵelementStart(9, "caption", 6)(10, "div");
20788
20835
  i0.ɵɵtext(11);
20789
20836
  i0.ɵɵpipe(12, "rpxTranslate");
20790
20837
  i0.ɵɵelementEnd()();
20791
- i0.ɵɵelementStart(13, "tbody", 5)(14, "tr", 6)(15, "th", 7);
20838
+ i0.ɵɵelementStart(13, "tbody", 7)(14, "tr", 8)(15, "th", 9);
20792
20839
  i0.ɵɵtext(16);
20793
20840
  i0.ɵɵpipe(17, "rpxTranslate");
20794
20841
  i0.ɵɵelementEnd();
20795
- i0.ɵɵelementStart(18, "td", 8);
20842
+ i0.ɵɵelementStart(18, "td", 10);
20796
20843
  i0.ɵɵtext(19);
20797
20844
  i0.ɵɵelementEnd()();
20798
- i0.ɵɵelementStart(20, "tr", 6)(21, "th", 7);
20845
+ i0.ɵɵelementStart(20, "tr", 8)(21, "th", 9);
20799
20846
  i0.ɵɵtext(22);
20800
20847
  i0.ɵɵpipe(23, "rpxTranslate");
20801
20848
  i0.ɵɵelementEnd();
20802
- i0.ɵɵelementStart(24, "td", 8);
20849
+ i0.ɵɵelementStart(24, "td", 10);
20803
20850
  i0.ɵɵtext(25);
20804
20851
  i0.ɵɵpipe(26, "date");
20805
20852
  i0.ɵɵelementEnd()();
20806
- i0.ɵɵelementStart(27, "tr", 6)(28, "th", 7);
20853
+ i0.ɵɵelementStart(27, "tr", 8)(28, "th", 9);
20807
20854
  i0.ɵɵtext(29);
20808
20855
  i0.ɵɵpipe(30, "rpxTranslate");
20809
20856
  i0.ɵɵelementEnd();
20810
- i0.ɵɵelementStart(31, "td", 8);
20857
+ i0.ɵɵelementStart(31, "td", 10);
20811
20858
  i0.ɵɵtext(32);
20812
20859
  i0.ɵɵelementEnd()();
20813
- i0.ɵɵelementStart(33, "tr", 6)(34, "th", 7);
20860
+ i0.ɵɵelementStart(33, "tr", 8)(34, "th", 9);
20814
20861
  i0.ɵɵtext(35);
20815
20862
  i0.ɵɵpipe(36, "rpxTranslate");
20816
20863
  i0.ɵɵelementEnd();
20817
- i0.ɵɵelementStart(37, "td", 8);
20864
+ i0.ɵɵelementStart(37, "td", 10);
20818
20865
  i0.ɵɵtext(38);
20819
20866
  i0.ɵɵelementEnd()();
20820
- i0.ɵɵelementStart(39, "tr", 6)(40, "th", 7);
20867
+ i0.ɵɵelementStart(39, "tr", 8)(40, "th", 9);
20821
20868
  i0.ɵɵtext(41);
20822
20869
  i0.ɵɵpipe(42, "rpxTranslate");
20823
20870
  i0.ɵɵelementEnd();
20824
- i0.ɵɵelementStart(43, "td", 8);
20871
+ i0.ɵɵelementStart(43, "td", 10);
20825
20872
  i0.ɵɵtext(44);
20826
20873
  i0.ɵɵpipe(45, "rpxTranslate");
20827
20874
  i0.ɵɵelementEnd()();
20828
- i0.ɵɵtemplate(46, QueryDetailsComponent_ng_container_0_tr_46_Template, 7, 7, "tr", 9)(47, QueryDetailsComponent_ng_container_0_tr_47_Template, 6, 4, "tr", 10);
20875
+ i0.ɵɵtemplate(46, QueryDetailsComponent_ng_container_1_tr_46_Template, 7, 7, "tr", 11)(47, QueryDetailsComponent_ng_container_1_tr_47_Template, 6, 4, "tr", 12);
20829
20876
  i0.ɵɵelementEnd()()();
20830
- i0.ɵɵtemplate(48, QueryDetailsComponent_ng_container_0_ng_container_48_Template, 2, 1, "ng-container", 1);
20877
+ i0.ɵɵtemplate(48, QueryDetailsComponent_ng_container_1_ng_container_48_Template, 2, 1, "ng-container", 2);
20831
20878
  i0.ɵɵelementContainerEnd();
20832
20879
  } if (rf & 2) {
20833
- const ctx_r1 = i0.ɵɵnextContext();
20880
+ const ctx_r0 = i0.ɵɵnextContext();
20834
20881
  i0.ɵɵadvance(4);
20835
20882
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 20, "Back to query list"));
20836
20883
  i0.ɵɵadvance(3);
@@ -20840,41 +20887,50 @@ function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
20840
20887
  i0.ɵɵadvance(5);
20841
20888
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(17, 26, "Last submitted by"));
20842
20889
  i0.ɵɵadvance(3);
20843
- i0.ɵɵtextInterpolate(ctx_r1.query.lastSubmittedBy);
20890
+ i0.ɵɵtextInterpolate(ctx_r0.query.lastSubmittedBy);
20844
20891
  i0.ɵɵadvance(3);
20845
20892
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 28, "Submission date"));
20846
20893
  i0.ɵɵadvance(3);
20847
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(26, 30, ctx_r1.query.createdOn, "dd MMM yyyy"));
20894
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(26, 30, ctx_r0.query.createdOn, "dd MMM yyyy"));
20848
20895
  i0.ɵɵadvance(4);
20849
20896
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(30, 33, "Query subject"));
20850
20897
  i0.ɵɵadvance(3);
20851
- i0.ɵɵtextInterpolate(ctx_r1.query.subject);
20898
+ i0.ɵɵtextInterpolate(ctx_r0.query.subject);
20852
20899
  i0.ɵɵadvance(3);
20853
20900
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(36, 35, "Query body"));
20854
20901
  i0.ɵɵadvance(3);
20855
- i0.ɵɵtextInterpolate(ctx_r1.query.body);
20902
+ i0.ɵɵtextInterpolate(ctx_r0.query.body);
20856
20903
  i0.ɵɵadvance(2);
20857
- i0.ɵɵclassProp("govuk-table__header--no-border", ctx_r1.query.isHearingRelated);
20904
+ i0.ɵɵclassProp("govuk-table__header--no-border", ctx_r0.query.isHearingRelated);
20858
20905
  i0.ɵɵadvance();
20859
20906
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(42, 37, "Is the query hearing related?"), " ");
20860
20907
  i0.ɵɵadvance(2);
20861
- i0.ɵɵclassProp("govuk-table__cell--no-border", ctx_r1.query.isHearingRelated);
20908
+ i0.ɵɵclassProp("govuk-table__cell--no-border", ctx_r0.query.isHearingRelated);
20862
20909
  i0.ɵɵadvance();
20863
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(45, 39, "Is the query hearing related?", null, ctx_r1.query.isHearingRelated), "");
20910
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(45, 39, "Is the query hearing related?", null, ctx_r0.query.isHearingRelated), "");
20864
20911
  i0.ɵɵadvance(2);
20865
- i0.ɵɵproperty("ngIf", ctx_r1.query.isHearingRelated === "Yes");
20912
+ i0.ɵɵproperty("ngIf", ctx_r0.query.isHearingRelated === "Yes");
20866
20913
  i0.ɵɵadvance();
20867
- i0.ɵɵproperty("ngIf", ctx_r1.query.attachments.length > 0);
20914
+ i0.ɵɵproperty("ngIf", ctx_r0.query.attachments.length > 0);
20868
20915
  i0.ɵɵadvance();
20869
- i0.ɵɵproperty("ngIf", (ctx_r1.query.children == null ? null : ctx_r1.query.children.length) > 0);
20916
+ i0.ɵɵproperty("ngIf", (ctx_r0.query.children == null ? null : ctx_r0.query.children.length) > 0);
20870
20917
  } }
20871
20918
  class QueryDetailsComponent {
20872
20919
  sessionStorageService;
20920
+ route;
20921
+ router;
20873
20922
  query;
20874
20923
  backClicked = new EventEmitter();
20875
20924
  caseId;
20876
- constructor(sessionStorageService) {
20925
+ hasResponded = new EventEmitter();
20926
+ showLink = true;
20927
+ static QUERY_ITEM_RESPOND = '3';
20928
+ queryItemId;
20929
+ message;
20930
+ constructor(sessionStorageService, route, router) {
20877
20931
  this.sessionStorageService = sessionStorageService;
20932
+ this.route = route;
20933
+ this.router = router;
20878
20934
  }
20879
20935
  onBack() {
20880
20936
  this.backClicked.emit(true);
@@ -20885,24 +20941,45 @@ class QueryDetailsComponent {
20885
20941
  && !(userDetails.roles.includes('pui-case-manager')
20886
20942
  || userDetails.roles.some((role) => role.toLowerCase().includes('judge')));
20887
20943
  }
20888
- static ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService)); };
20889
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId" }, outputs: { backClicked: "backClicked" }, decls: 1, vars: 1, consts: [["followUpMessage", ""], [4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row govuk-table__row--isHearingRelated", 4, "ngIf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "govuk-table__row", "govuk-table__row--isHearingRelated"], [3, "attachments", 4, "ngIf"], [3, "attachments"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"]], template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
20890
- i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 49, 43, "ng-container", 1);
20944
+ ngOnChanges() {
20945
+ this.toggleLinkVisibility();
20946
+ this.hasRespondedToQuery();
20947
+ }
20948
+ toggleLinkVisibility() {
20949
+ this.queryItemId = this.route.snapshot.params.qid;
20950
+ this.showLink = this.queryItemId !== QueryDetailsComponent.QUERY_ITEM_RESPOND;
20951
+ }
20952
+ hasRespondedToQuery() {
20953
+ if (this.query?.children?.length >= 0 && this.isCaseworker() && this.query?.children?.length % 2 !== 0) {
20954
+ this.message = Constants.TASK_COMPLETION_ERROR;
20955
+ this.hasResponded.emit(true);
20956
+ return true;
20957
+ }
20958
+ this.hasResponded.emit(false);
20959
+ return false;
20960
+ }
20961
+ static ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router)); };
20962
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId" }, outputs: { backClicked: "backClicked", hasResponded: "hasResponded" }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [["followUpMessage", ""], ["type", "error", 4, "ngIf"], [4, "ngIf"], ["type", "error"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row govuk-table__row--isHearingRelated", 4, "ngIf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "govuk-table__row", "govuk-table__row--isHearingRelated"], [3, "attachments", 4, "ngIf"], [3, "attachments"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"]], template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
20963
+ i0.ɵɵtemplate(0, QueryDetailsComponent_cut_alert_0_Template, 3, 1, "cut-alert", 1)(1, QueryDetailsComponent_ng_container_1_Template, 49, 43, "ng-container", 2);
20891
20964
  } if (rf & 2) {
20965
+ i0.ɵɵproperty("ngIf", ctx.hasRespondedToQuery());
20966
+ i0.ɵɵadvance();
20892
20967
  i0.ɵɵproperty("ngIf", ctx.query);
20893
20968
  } }, styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
20894
20969
  }
20895
20970
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
20896
20971
  type: Component,
20897
- args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\n <br/>\n <p>\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"onBack()\">{{ 'Back to query list' | rpxTranslate }}</a>\n </p>\n <div>\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Details of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Query details' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.lastSubmittedBy }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query subject' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.subject }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query body' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.body }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\" [class.govuk-table__header--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </th>\n <td class=\"govuk-table__cell\" [class.govuk-table__cell--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : (query.isHearingRelated) }}</td>\n </tr>\n <tr class=\"govuk-table__row govuk-table__row--isHearingRelated\" *ngIf=\"query.isHearingRelated === 'Yes'\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'What is the date of the hearing?' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.hearingDate | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"query.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"query.attachments\"\n [attachments]=\"query.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <ng-container *ngIf=\"query.children?.length > 0\">\n <ng-container *ngFor=\"let child of query.children; let i = index;\">\n <ng-container *ngIf=\"i % 2 === 0; else followUpMessage\">\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Response of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Response' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last response date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n\n <tr *ngIf=\"isCaseworker()\" class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Caseworker name' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Response detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n\n <ng-template #followUpMessage>\n <!-- <div class=\"query_details_caption\">{{ 'Follow-up' | rpxTranslate }}</div> -->\n <table class=\"govuk-table query-details-table\"\n [attr.aria-describedby]=\"'Follow-up of the response' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Follow up query' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-template>\n </ng-container>\n </ng-container>\n</ng-container>\n", styles: [".query-details-table .govuk-table__header{width:330px}\n"] }]
20898
- }], () => [{ type: SessionStorageService }], { query: [{
20972
+ args: [{ selector: 'ccd-query-details', template: "<cut-alert type=\"error\" *ngIf=\"hasRespondedToQuery()\">\n <ng-container>{{message}}</ng-container>\n</cut-alert>\n\n<ng-container *ngIf=\"query\">\n <br/>\n <p>\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"onBack()\">{{ 'Back to query list' | rpxTranslate }}</a>\n </p>\n <div>\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Details of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Query details' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.lastSubmittedBy }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query subject' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.subject }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query body' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.body }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\" [class.govuk-table__header--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </th>\n <td class=\"govuk-table__cell\" [class.govuk-table__cell--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : (query.isHearingRelated) }}</td>\n </tr>\n <tr class=\"govuk-table__row govuk-table__row--isHearingRelated\" *ngIf=\"query.isHearingRelated === 'Yes'\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'What is the date of the hearing?' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.hearingDate | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"query.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"query.attachments\"\n [attachments]=\"query.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <ng-container *ngIf=\"query.children?.length > 0\">\n <ng-container *ngFor=\"let child of query.children; let i = index;\">\n <ng-container *ngIf=\"i % 2 === 0; else followUpMessage\">\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Response of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Response' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last response date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n\n <tr *ngIf=\"isCaseworker()\" class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Caseworker name' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Response detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n\n <ng-template #followUpMessage>\n <!-- <div class=\"query_details_caption\">{{ 'Follow-up' | rpxTranslate }}</div> -->\n <table class=\"govuk-table query-details-table\"\n [attr.aria-describedby]=\"'Follow-up of the response' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Follow up query' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-template>\n </ng-container>\n </ng-container>\n</ng-container>\n", styles: [".query-details-table .govuk-table__header{width:330px}\n"] }]
20973
+ }], () => [{ type: SessionStorageService }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }], { query: [{
20899
20974
  type: Input
20900
20975
  }], backClicked: [{
20901
20976
  type: Output
20902
20977
  }], caseId: [{
20903
20978
  type: Input
20979
+ }], hasResponded: [{
20980
+ type: Output
20904
20981
  }] }); })();
20905
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryDetailsComponent, { className: "QueryDetailsComponent", filePath: "lib/shared/components/palette/query-management/components/query-details/query-details.component.ts", lineNumber: 10 }); })();
20982
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryDetailsComponent, { className: "QueryDetailsComponent", filePath: "lib/shared/components/palette/query-management/components/query-details/query-details.component.ts", lineNumber: 11 }); })();
20906
20983
 
20907
20984
  class QueryEventCompletionComponent {
20908
20985
  eventCompletionParams;
@@ -21281,8 +21358,8 @@ class QueryWriteDateInputComponent {
21281
21358
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteDateInputComponent, { className: "QueryWriteDateInputComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.ts", lineNumber: 15 }); })();
21282
21359
 
21283
21360
  const _c0$C = a0 => ({ "govuk-form-group--error": a0 });
21284
- function QueryWriteRaiseQueryComponent_div_11_p_11_Template(rf, ctx) { if (rf & 1) {
21285
- i0.ɵɵelementStart(0, "p", 27)(1, "span", 28);
21361
+ function QueryWriteRaiseQueryComponent_p_22_Template(rf, ctx) { if (rf & 1) {
21362
+ i0.ɵɵelementStart(0, "p", 26)(1, "span", 27);
21286
21363
  i0.ɵɵtext(2);
21287
21364
  i0.ɵɵpipe(3, "rpxTranslate");
21288
21365
  i0.ɵɵelementEnd();
@@ -21290,14 +21367,14 @@ function QueryWriteRaiseQueryComponent_div_11_p_11_Template(rf, ctx) { if (rf &
21290
21367
  i0.ɵɵpipe(5, "rpxTranslate");
21291
21368
  i0.ɵɵelementEnd();
21292
21369
  } if (rf & 2) {
21293
- const ctx_r0 = i0.ɵɵnextContext(2);
21370
+ const ctx_r0 = i0.ɵɵnextContext();
21294
21371
  i0.ɵɵadvance(2);
21295
21372
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
21296
21373
  i0.ɵɵadvance(2);
21297
21374
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_SUBJECT), " ");
21298
21375
  } }
21299
- function QueryWriteRaiseQueryComponent_div_11_p_21_Template(rf, ctx) { if (rf & 1) {
21300
- i0.ɵɵelementStart(0, "p", 29)(1, "span", 28);
21376
+ function QueryWriteRaiseQueryComponent_p_32_Template(rf, ctx) { if (rf & 1) {
21377
+ i0.ɵɵelementStart(0, "p", 28)(1, "span", 27);
21301
21378
  i0.ɵɵtext(2);
21302
21379
  i0.ɵɵpipe(3, "rpxTranslate");
21303
21380
  i0.ɵɵelementEnd();
@@ -21305,14 +21382,14 @@ function QueryWriteRaiseQueryComponent_div_11_p_21_Template(rf, ctx) { if (rf &
21305
21382
  i0.ɵɵpipe(5, "rpxTranslate");
21306
21383
  i0.ɵɵelementEnd();
21307
21384
  } if (rf & 2) {
21308
- const ctx_r0 = i0.ɵɵnextContext(2);
21385
+ const ctx_r0 = i0.ɵɵnextContext();
21309
21386
  i0.ɵɵadvance(2);
21310
21387
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
21311
21388
  i0.ɵɵadvance(2);
21312
21389
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_BODY), " ");
21313
21390
  } }
21314
- function QueryWriteRaiseQueryComponent_div_11_p_30_Template(rf, ctx) { if (rf & 1) {
21315
- i0.ɵɵelementStart(0, "p", 30)(1, "span", 28);
21391
+ function QueryWriteRaiseQueryComponent_p_41_Template(rf, ctx) { if (rf & 1) {
21392
+ i0.ɵɵelementStart(0, "p", 29)(1, "span", 27);
21316
21393
  i0.ɵɵtext(2);
21317
21394
  i0.ɵɵpipe(3, "rpxTranslate");
21318
21395
  i0.ɵɵelementEnd();
@@ -21320,14 +21397,14 @@ function QueryWriteRaiseQueryComponent_div_11_p_30_Template(rf, ctx) { if (rf &
21320
21397
  i0.ɵɵpipe(5, "rpxTranslate");
21321
21398
  i0.ɵɵelementEnd();
21322
21399
  } if (rf & 2) {
21323
- const ctx_r0 = i0.ɵɵnextContext(2);
21400
+ const ctx_r0 = i0.ɵɵnextContext();
21324
21401
  i0.ɵɵadvance(2);
21325
21402
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
21326
21403
  i0.ɵɵadvance(2);
21327
21404
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_HEARING_RELATED), " ");
21328
21405
  } }
21329
- function QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template(rf, ctx) { if (rf & 1) {
21330
- i0.ɵɵelementStart(0, "p", 36)(1, "span", 28);
21406
+ function QueryWriteRaiseQueryComponent_ng_container_53_p_7_Template(rf, ctx) { if (rf & 1) {
21407
+ i0.ɵɵelementStart(0, "p", 35)(1, "span", 27);
21331
21408
  i0.ɵɵtext(2);
21332
21409
  i0.ɵɵpipe(3, "rpxTranslate");
21333
21410
  i0.ɵɵelementEnd();
@@ -21335,24 +21412,24 @@ function QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template(rf, c
21335
21412
  i0.ɵɵpipe(5, "rpxTranslate");
21336
21413
  i0.ɵɵelementEnd();
21337
21414
  } if (rf & 2) {
21338
- const ctx_r0 = i0.ɵɵnextContext(3);
21415
+ const ctx_r0 = i0.ɵɵnextContext(2);
21339
21416
  i0.ɵɵadvance(2);
21340
21417
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
21341
21418
  i0.ɵɵadvance(2);
21342
21419
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_HEARING_DATE), " ");
21343
21420
  } }
21344
- function QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template(rf, ctx) { if (rf & 1) {
21421
+ function QueryWriteRaiseQueryComponent_ng_container_53_Template(rf, ctx) { if (rf & 1) {
21345
21422
  i0.ɵɵelementContainerStart(0);
21346
- i0.ɵɵelementStart(1, "div", 31)(2, "fieldset", 32)(3, "legend")(4, "label", 33);
21423
+ i0.ɵɵelementStart(1, "div", 30)(2, "fieldset", 31)(3, "legend")(4, "label", 32);
21347
21424
  i0.ɵɵtext(5);
21348
21425
  i0.ɵɵpipe(6, "rpxTranslate");
21349
21426
  i0.ɵɵelementEnd()();
21350
- i0.ɵɵtemplate(7, QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template, 6, 6, "p", 34);
21351
- i0.ɵɵelement(8, "ccd-query-write-date-input", 35);
21427
+ i0.ɵɵtemplate(7, QueryWriteRaiseQueryComponent_ng_container_53_p_7_Template, 6, 6, "p", 33);
21428
+ i0.ɵɵelement(8, "ccd-query-write-date-input", 34);
21352
21429
  i0.ɵɵelementEnd()();
21353
21430
  i0.ɵɵelementContainerEnd();
21354
21431
  } if (rf & 2) {
21355
- const ctx_r0 = i0.ɵɵnextContext(2);
21432
+ const ctx_r0 = i0.ɵɵnextContext();
21356
21433
  i0.ɵɵadvance();
21357
21434
  i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null));
21358
21435
  i0.ɵɵadvance(4);
@@ -21360,101 +21437,13 @@ function QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template(rf, ctx)
21360
21437
  i0.ɵɵadvance(2);
21361
21438
  i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null);
21362
21439
  } }
21363
- function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
21364
- i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "div")(3, "div", 7)(4, "div", 8)(5, "label", 9);
21365
- i0.ɵɵtext(6);
21366
- i0.ɵɵpipe(7, "rpxTranslate");
21367
- i0.ɵɵelementEnd()();
21368
- i0.ɵɵelementStart(8, "div", 10);
21369
- i0.ɵɵtext(9);
21370
- i0.ɵɵpipe(10, "rpxTranslate");
21371
- i0.ɵɵelementEnd();
21372
- i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_p_11_Template, 6, 6, "p", 11);
21373
- i0.ɵɵelement(12, "input", 12);
21374
- i0.ɵɵelementEnd()();
21375
- i0.ɵɵelementStart(13, "div", 7)(14, "div", 8)(15, "label", 13);
21376
- i0.ɵɵtext(16);
21377
- i0.ɵɵpipe(17, "rpxTranslate");
21378
- i0.ɵɵelementEnd()();
21379
- i0.ɵɵelementStart(18, "div", 14);
21380
- i0.ɵɵtext(19);
21381
- i0.ɵɵpipe(20, "rpxTranslate");
21382
- i0.ɵɵelementEnd();
21383
- i0.ɵɵtemplate(21, QueryWriteRaiseQueryComponent_div_11_p_21_Template, 6, 6, "p", 15);
21384
- i0.ɵɵelementStart(22, "textarea", 16);
21385
- i0.ɵɵtext(23, " ");
21386
- i0.ɵɵelementEnd()();
21387
- i0.ɵɵelementStart(24, "div", 7)(25, "fieldset", 17)(26, "legend")(27, "label", 18);
21388
- i0.ɵɵtext(28);
21389
- i0.ɵɵpipe(29, "rpxTranslate");
21390
- i0.ɵɵelementEnd()();
21391
- i0.ɵɵtemplate(30, QueryWriteRaiseQueryComponent_div_11_p_30_Template, 6, 6, "p", 19);
21392
- i0.ɵɵelementStart(31, "div", 20)(32, "div", 21);
21393
- i0.ɵɵelement(33, "input", 22);
21394
- i0.ɵɵelementStart(34, "label", 23);
21395
- i0.ɵɵtext(35);
21396
- i0.ɵɵpipe(36, "rpxTranslate");
21397
- i0.ɵɵelementEnd()();
21398
- i0.ɵɵelementStart(37, "div", 21);
21399
- i0.ɵɵelement(38, "input", 24);
21400
- i0.ɵɵelementStart(39, "label", 25);
21401
- i0.ɵɵtext(40);
21402
- i0.ɵɵpipe(41, "rpxTranslate");
21403
- i0.ɵɵelementEnd()()()();
21404
- i0.ɵɵtemplate(42, QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template, 9, 7, "ng-container", 26);
21405
- i0.ɵɵelementEnd()()();
21406
- } if (rf & 2) {
21407
- let tmp_6_0;
21408
- const ctx_r0 = i0.ɵɵnextContext();
21409
- i0.ɵɵadvance();
21410
- i0.ɵɵproperty("formGroup", ctx_r0.formGroup);
21411
- i0.ɵɵadvance(2);
21412
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
21413
- i0.ɵɵadvance(3);
21414
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 25, "Query subject"), " ");
21415
- i0.ɵɵadvance(3);
21416
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 27, "The subject should be a summary of your query"), " ");
21417
- i0.ɵɵadvance(2);
21418
- i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required"));
21419
- i0.ɵɵadvance();
21420
- i0.ɵɵclassProp("govuk-input--error", ctx_r0.submitted && ((tmp_6_0 = ctx_r0.formGroup.get("subject")) == null ? null : tmp_6_0.hasError("required")));
21421
- i0.ɵɵproperty("formControlName", "subject");
21422
- i0.ɵɵadvance();
21423
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
21424
- i0.ɵɵadvance(3);
21425
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 29, "Query detail"), " ");
21426
- i0.ɵɵadvance(3);
21427
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 31, "Include as many details as possible so case workers can respond to your query"), " ");
21428
- i0.ɵɵadvance(2);
21429
- i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
21430
- i0.ɵɵadvance();
21431
- i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
21432
- i0.ɵɵproperty("formControlName", "body");
21433
- i0.ɵɵadvance(2);
21434
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
21435
- i0.ɵɵadvance(4);
21436
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 33, "Is the query hearing related?"), " ");
21437
- i0.ɵɵadvance(2);
21438
- i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required"));
21439
- i0.ɵɵadvance(3);
21440
- i0.ɵɵproperty("checked", ctx_r0.formGroup.get("isHearingRelated").value === true)("value", true);
21441
- i0.ɵɵadvance(2);
21442
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(36, 35, "Is the query hearing related?", null, "Yes"), " ");
21443
- i0.ɵɵadvance(3);
21444
- i0.ɵɵproperty("checked", ctx_r0.formGroup.get("isHearingRelated").value === false)("value", false);
21445
- i0.ɵɵadvance(2);
21446
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(41, 39, "Is the query hearing related?", null, "No"), " ");
21447
- i0.ɵɵadvance(2);
21448
- i0.ɵɵproperty("ngIf", ctx_r0.formGroup.get("isHearingRelated").value);
21449
- } }
21450
21440
  class QueryWriteRaiseQueryComponent {
21451
21441
  formGroup;
21452
21442
  submitted;
21453
21443
  caseDetails;
21454
- showForm;
21455
21444
  raiseQueryErrorMessage = RaiseQueryErrorMessage;
21456
21445
  static ɵfac = function QueryWriteRaiseQueryComponent_Factory(t) { return new (t || QueryWriteRaiseQueryComponent)(); };
21457
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup", submitted: "submitted", caseDetails: "caseDetails", showForm: "showForm" }, decls: 12, vars: 8, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-4"], [3, "caseDetails"], ["class", "govuk-!-margin-bottom-4", 4, "ngIf"], [1, "govuk-!-margin-bottom-4"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], ["for", "subject", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "subject-hint", 1, "govuk-hint"], ["id", "subject-error", "class", "govuk-error-message", 4, "ngIf"], ["type", "text", "name", "subject", "id", "subject", 1, "govuk-input", 3, "formControlName"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-hint", 1, "govuk-hint"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], [1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "isHearingRelated-error", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--inline"], [1, "govuk-radios__item"], ["id", "isHearingRelated-yes", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-yes", 1, "govuk-label", "govuk-radios__label"], ["id", "isHearingRelated-no", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-no", 1, "govuk-label", "govuk-radios__label"], [4, "ngIf"], ["id", "subject-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "body-error", 1, "govuk-error-message"], ["id", "isHearingRelated-error", 1, "govuk-error-message"], [1, "govuk-radios__conditional", "govuk-!-margin-top-1", 3, "ngClass"], ["role", "group", 1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--s"], ["id", "hearingDate-error", "class", "govuk-error-message", 4, "ngIf"], ["formControlName", "hearingDate"], ["id", "hearingDate-error", 1, "govuk-error-message"]], template: function QueryWriteRaiseQueryComponent_Template(rf, ctx) { if (rf & 1) {
21446
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup", submitted: "submitted", caseDetails: "caseDetails" }, decls: 54, vars: 56, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-4"], [3, "caseDetails"], [1, "govuk-!-margin-bottom-4"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], ["for", "subject", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "subject-hint", 1, "govuk-hint"], ["id", "subject-error", "class", "govuk-error-message", 4, "ngIf"], ["type", "text", "name", "subject", "id", "subject", 1, "govuk-input", 3, "formControlName"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-hint", 1, "govuk-hint"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], [1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "isHearingRelated-error", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--inline"], [1, "govuk-radios__item"], ["id", "isHearingRelated-yes", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-yes", 1, "govuk-label", "govuk-radios__label"], ["id", "isHearingRelated-no", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-no", 1, "govuk-label", "govuk-radios__label"], [4, "ngIf"], ["id", "subject-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "body-error", 1, "govuk-error-message"], ["id", "isHearingRelated-error", 1, "govuk-error-message"], [1, "govuk-radios__conditional", "govuk-!-margin-top-1", 3, "ngClass"], ["role", "group", 1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--s"], ["id", "hearingDate-error", "class", "govuk-error-message", 4, "ngIf"], ["formControlName", "hearingDate"], ["id", "hearingDate-error", 1, "govuk-error-message"]], template: function QueryWriteRaiseQueryComponent_Template(rf, ctx) { if (rf & 1) {
21458
21447
  i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "div", 1);
21459
21448
  i0.ɵɵtext(3);
21460
21449
  i0.ɵɵpipe(4, "rpxTranslate");
@@ -21467,30 +21456,107 @@ class QueryWriteRaiseQueryComponent {
21467
21456
  i0.ɵɵelement(9, "ccd-query-case-details-header", 3);
21468
21457
  i0.ɵɵelementEnd();
21469
21458
  i0.ɵɵelement(10, "hr");
21470
- i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_Template, 43, 49, "div", 4);
21459
+ i0.ɵɵelementStart(11, "div", 4)(12, "div", 5)(13, "div")(14, "div", 6)(15, "div", 7)(16, "label", 8);
21460
+ i0.ɵɵtext(17);
21461
+ i0.ɵɵpipe(18, "rpxTranslate");
21462
+ i0.ɵɵelementEnd()();
21463
+ i0.ɵɵelementStart(19, "div", 9);
21464
+ i0.ɵɵtext(20);
21465
+ i0.ɵɵpipe(21, "rpxTranslate");
21471
21466
  i0.ɵɵelementEnd();
21467
+ i0.ɵɵtemplate(22, QueryWriteRaiseQueryComponent_p_22_Template, 6, 6, "p", 10);
21468
+ i0.ɵɵelement(23, "input", 11);
21469
+ i0.ɵɵelementEnd()();
21470
+ i0.ɵɵelementStart(24, "div", 6)(25, "div", 7)(26, "label", 12);
21471
+ i0.ɵɵtext(27);
21472
+ i0.ɵɵpipe(28, "rpxTranslate");
21473
+ i0.ɵɵelementEnd()();
21474
+ i0.ɵɵelementStart(29, "div", 13);
21475
+ i0.ɵɵtext(30);
21476
+ i0.ɵɵpipe(31, "rpxTranslate");
21477
+ i0.ɵɵelementEnd();
21478
+ i0.ɵɵtemplate(32, QueryWriteRaiseQueryComponent_p_32_Template, 6, 6, "p", 14);
21479
+ i0.ɵɵelementStart(33, "textarea", 15);
21480
+ i0.ɵɵtext(34, " ");
21481
+ i0.ɵɵelementEnd()();
21482
+ i0.ɵɵelementStart(35, "div", 6)(36, "fieldset", 16)(37, "legend")(38, "label", 17);
21483
+ i0.ɵɵtext(39);
21484
+ i0.ɵɵpipe(40, "rpxTranslate");
21485
+ i0.ɵɵelementEnd()();
21486
+ i0.ɵɵtemplate(41, QueryWriteRaiseQueryComponent_p_41_Template, 6, 6, "p", 18);
21487
+ i0.ɵɵelementStart(42, "div", 19)(43, "div", 20);
21488
+ i0.ɵɵelement(44, "input", 21);
21489
+ i0.ɵɵelementStart(45, "label", 22);
21490
+ i0.ɵɵtext(46);
21491
+ i0.ɵɵpipe(47, "rpxTranslate");
21492
+ i0.ɵɵelementEnd()();
21493
+ i0.ɵɵelementStart(48, "div", 20);
21494
+ i0.ɵɵelement(49, "input", 23);
21495
+ i0.ɵɵelementStart(50, "label", 24);
21496
+ i0.ɵɵtext(51);
21497
+ i0.ɵɵpipe(52, "rpxTranslate");
21498
+ i0.ɵɵelementEnd()()()();
21499
+ i0.ɵɵtemplate(53, QueryWriteRaiseQueryComponent_ng_container_53_Template, 9, 7, "ng-container", 25);
21500
+ i0.ɵɵelementEnd()()()();
21472
21501
  } if (rf & 2) {
21502
+ let tmp_8_0;
21473
21503
  i0.ɵɵadvance(3);
21474
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 4, "Raise a query"));
21504
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 28, "Raise a query"));
21475
21505
  i0.ɵɵadvance(3);
21476
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 6, "Enter query details"));
21506
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 30, "Enter query details"));
21477
21507
  i0.ɵɵadvance(3);
21478
21508
  i0.ɵɵproperty("caseDetails", ctx.caseDetails);
21509
+ i0.ɵɵadvance(3);
21510
+ i0.ɵɵproperty("formGroup", ctx.formGroup);
21511
+ i0.ɵɵadvance(2);
21512
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(50, _c0$C, ctx.submitted && ctx.formGroup.get("subject").hasError("required")));
21513
+ i0.ɵɵadvance(3);
21514
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 32, "Query subject"), " ");
21515
+ i0.ɵɵadvance(3);
21516
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(21, 34, "The subject should be a summary of your query"), " ");
21479
21517
  i0.ɵɵadvance(2);
21480
- i0.ɵɵproperty("ngIf", ctx.showForm);
21518
+ i0.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("subject").hasError("required"));
21519
+ i0.ɵɵadvance();
21520
+ i0.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_8_0 = ctx.formGroup.get("subject")) == null ? null : tmp_8_0.hasError("required")));
21521
+ i0.ɵɵproperty("formControlName", "subject");
21522
+ i0.ɵɵadvance();
21523
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(52, _c0$C, ctx.submitted && ctx.formGroup.get("body").hasError("required")));
21524
+ i0.ɵɵadvance(3);
21525
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(28, 36, "Query detail"), " ");
21526
+ i0.ɵɵadvance(3);
21527
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(31, 38, "Include as many details as possible so case workers can respond to your query"), " ");
21528
+ i0.ɵɵadvance(2);
21529
+ i0.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("body").hasError("required"));
21530
+ i0.ɵɵadvance();
21531
+ i0.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ctx.formGroup.get("body").hasError("required"));
21532
+ i0.ɵɵproperty("formControlName", "body");
21533
+ i0.ɵɵadvance(2);
21534
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(54, _c0$C, ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required")));
21535
+ i0.ɵɵadvance(4);
21536
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(40, 40, "Is the query hearing related?"), " ");
21537
+ i0.ɵɵadvance(2);
21538
+ i0.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required"));
21539
+ i0.ɵɵadvance(3);
21540
+ i0.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === true)("value", true);
21541
+ i0.ɵɵadvance(2);
21542
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(47, 42, "Is the query hearing related?", null, "Yes"), " ");
21543
+ i0.ɵɵadvance(3);
21544
+ i0.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === false)("value", false);
21545
+ i0.ɵɵadvance(2);
21546
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(52, 46, "Is the query hearing related?", null, "No"), " ");
21547
+ i0.ɵɵadvance(2);
21548
+ i0.ɵɵproperty("ngIf", ctx.formGroup.get("isHearingRelated").value);
21481
21549
  } }, encapsulation: 2 });
21482
21550
  }
21483
21551
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRaiseQueryComponent, [{
21484
21552
  type: Component,
21485
- args: [{ selector: 'ccd-query-write-raise-query', template: "<div>\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Raise a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-4\">{{ 'Enter query details' | rpxTranslate }}</h1>\n </div>\n\n <div>\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <hr>\n\n <div class=\"govuk-!-margin-bottom-4\" *ngIf=\"showForm\">\n <div [formGroup]=\"formGroup\">\n <div>\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('subject').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"subject\">\n {{ 'Query subject' | rpxTranslate }}\n </label>\n </div>\n <div id=\"subject-hint\" class=\"govuk-hint\">\n {{ 'The subject should be a summary of your query' | rpxTranslate }}\n </div>\n <p id=\"subject-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('subject').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_SUBJECT | rpxTranslate }}\n </p>\n <input [formControlName]=\"'subject'\" type=\"text\" name=\"subject\"\n class=\"govuk-input\" id=\"subject\"\n [class.govuk-input--error]=\"submitted && formGroup.get('subject')?.hasError('required')\"\n />\n </div>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('body').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ 'Query detail' | rpxTranslate }}\n </label>\n </div>\n <div id=\"body-hint\" class=\"govuk-hint\">\n {{ 'Include as many details as possible so case workers can respond to your query' | rpxTranslate }}\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\"\n id=\"body\" name=\"body\" rows=\"5\"\n aria-describedby=\"body-hint body-error\"\n class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body').hasError('required')\"\n >\n </textarea>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('isHearingRelated').hasError('required')}\">\n <fieldset class=\"govuk-fieldset\">\n <legend>\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"isHearingRelated-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_RELATED | rpxTranslate }}\n </p>\n <div class=\"govuk-radios govuk-radios--inline\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-yes\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === true\" [value]=\"true\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-yes\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'Yes' }}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-no\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === false\" [value]=\"false\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-no\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'No' }}\n </label>\n </div>\n </div>\n </fieldset>\n\n <ng-container *ngIf=\"formGroup.get('isHearingRelated').value\">\n <div class=\"govuk-radios__conditional govuk-!-margin-top-1\"\n [ngClass]=\"{'govuk-form-group--error': submitted &&\n formGroup.get('isHearingRelated').value === true &&\n formGroup.get('hearingDate').value === null}\">\n <fieldset class=\"govuk-fieldset\" role=\"group\">\n <legend>\n <label class=\"govuk-label govuk-label--s\">\n {{ 'What is the date of the hearing?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"hearingDate-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').value === true && formGroup.get('hearingDate').value === null\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_DATE | rpxTranslate }}\n </p>\n <ccd-query-write-date-input formControlName=\"hearingDate\"></ccd-query-write-date-input>\n </fieldset>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n" }]
21553
+ args: [{ selector: 'ccd-query-write-raise-query', template: "<div>\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Raise a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-4\">{{ 'Enter query details' | rpxTranslate }}</h1>\n </div>\n\n <div>\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <hr>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <div [formGroup]=\"formGroup\">\n <div>\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('subject').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"subject\">\n {{ 'Query subject' | rpxTranslate }}\n </label>\n </div>\n <div id=\"subject-hint\" class=\"govuk-hint\">\n {{ 'The subject should be a summary of your query' | rpxTranslate }}\n </div>\n <p id=\"subject-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('subject').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_SUBJECT | rpxTranslate }}\n </p>\n <input [formControlName]=\"'subject'\" type=\"text\" name=\"subject\"\n class=\"govuk-input\" id=\"subject\"\n [class.govuk-input--error]=\"submitted && formGroup.get('subject')?.hasError('required')\"\n />\n </div>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('body').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ 'Query detail' | rpxTranslate }}\n </label>\n </div>\n <div id=\"body-hint\" class=\"govuk-hint\">\n {{ 'Include as many details as possible so case workers can respond to your query' | rpxTranslate }}\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\"\n id=\"body\" name=\"body\" rows=\"5\"\n aria-describedby=\"body-hint body-error\"\n class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body').hasError('required')\"\n >\n </textarea>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('isHearingRelated').hasError('required')}\">\n <fieldset class=\"govuk-fieldset\">\n <legend>\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"isHearingRelated-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_RELATED | rpxTranslate }}\n </p>\n <div class=\"govuk-radios govuk-radios--inline\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-yes\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === true\" [value]=\"true\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-yes\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'Yes' }}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-no\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === false\" [value]=\"false\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-no\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'No' }}\n </label>\n </div>\n </div>\n </fieldset>\n\n <ng-container *ngIf=\"formGroup.get('isHearingRelated').value\">\n <div class=\"govuk-radios__conditional govuk-!-margin-top-1\"\n [ngClass]=\"{'govuk-form-group--error': submitted &&\n formGroup.get('isHearingRelated').value === true &&\n formGroup.get('hearingDate').value === null}\">\n <fieldset class=\"govuk-fieldset\" role=\"group\">\n <legend>\n <label class=\"govuk-label govuk-label--s\">\n {{ 'What is the date of the hearing?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"hearingDate-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').value === true && formGroup.get('hearingDate').value === null\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_DATE | rpxTranslate }}\n </p>\n <ccd-query-write-date-input formControlName=\"hearingDate\"></ccd-query-write-date-input>\n </fieldset>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n" }]
21486
21554
  }], null, { formGroup: [{
21487
21555
  type: Input
21488
21556
  }], submitted: [{
21489
21557
  type: Input
21490
21558
  }], caseDetails: [{
21491
21559
  type: Input
21492
- }], showForm: [{
21493
- type: Input
21494
21560
  }] }); })();
21495
21561
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteRaiseQueryComponent, { className: "QueryWriteRaiseQueryComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.ts", lineNumber: 8 }); })();
21496
21562
 
@@ -21547,22 +21613,32 @@ class QueryWriteRespondToQueryComponent {
21547
21613
  formGroup;
21548
21614
  queryCreateContext;
21549
21615
  submitted = false;
21550
- showForm;
21616
+ hasRespondedToQueryTask = new EventEmitter();
21551
21617
  queryCreateContextEnum = QueryCreateContext;
21552
21618
  raiseQueryErrorMessages = RaiseQueryErrorMessage;
21553
21619
  caseId;
21554
21620
  caseDetails;
21621
+ hasRespondedToQuery = false;
21555
21622
  constructor(caseNotifier) {
21556
21623
  this.caseNotifier = caseNotifier;
21557
21624
  }
21558
21625
  ngOnInit() {
21559
- this.caseNotifier.caseView.pipe(take(1)).subscribe(caseDetails => {
21560
- this.caseId = caseDetails.case_id;
21561
- this.caseDetails = caseDetails;
21626
+ this.caseNotifier.caseView.pipe(take(1)).subscribe({
21627
+ next: (caseDetails) => {
21628
+ this.caseId = caseDetails?.case_id ?? '';
21629
+ this.caseDetails = caseDetails;
21630
+ },
21631
+ error: (err) => {
21632
+ console.error('Error retrieving case details:', err);
21633
+ }
21562
21634
  });
21563
21635
  }
21636
+ hasResponded(value) {
21637
+ this.hasRespondedToQuery = value;
21638
+ this.hasRespondedToQueryTask.emit(value);
21639
+ }
21564
21640
  static ɵfac = function QueryWriteRespondToQueryComponent_Factory(t) { return new (t || QueryWriteRespondToQueryComponent)(i0.ɵɵdirectiveInject(CaseNotifier)); };
21565
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", queryCreateContext: "queryCreateContext", submitted: "submitted", showForm: "showForm" }, decls: 13, vars: 9, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-0"], [1, "govuk-!-margin-bottom-4"], [3, "caseDetails"], [3, "query"], ["class", "query-respond", 4, "ngIf"], [1, "query-respond"], [1, "govuk-heading-m"], [3, "formGroup"], [1, "govuk-form-group", "body-textarea"], [1, "govuk-label-wrapper"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], ["id", "body-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function QueryWriteRespondToQueryComponent_Template(rf, ctx) { if (rf & 1) {
21641
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", queryCreateContext: "queryCreateContext", submitted: "submitted" }, outputs: { hasRespondedToQueryTask: "hasRespondedToQueryTask" }, decls: 13, vars: 9, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-0"], [1, "govuk-!-margin-bottom-4"], [3, "caseDetails"], [3, "hasResponded", "query"], ["class", "query-respond", 4, "ngIf"], [1, "query-respond"], [1, "govuk-heading-m"], [3, "formGroup"], [1, "govuk-form-group", "body-textarea"], [1, "govuk-label-wrapper"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], ["id", "body-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function QueryWriteRespondToQueryComponent_Template(rf, ctx) { if (rf & 1) {
21566
21642
  i0.ɵɵelementStart(0, "div", 0)(1, "div", 0)(2, "div", 1);
21567
21643
  i0.ɵɵtext(3);
21568
21644
  i0.ɵɵpipe(4, "rpxTranslate");
@@ -21574,9 +21650,9 @@ class QueryWriteRespondToQueryComponent {
21574
21650
  i0.ɵɵelementStart(8, "div", 3);
21575
21651
  i0.ɵɵelement(9, "ccd-query-case-details-header", 4);
21576
21652
  i0.ɵɵelementEnd();
21577
- i0.ɵɵelementStart(10, "div");
21578
- i0.ɵɵelement(11, "ccd-query-details", 5);
21579
- i0.ɵɵelementEnd()();
21653
+ i0.ɵɵelementStart(10, "div")(11, "ccd-query-details", 5);
21654
+ i0.ɵɵlistener("hasResponded", function QueryWriteRespondToQueryComponent_Template_ccd_query_details_hasResponded_11_listener($event) { return ctx.hasResponded($event); });
21655
+ i0.ɵɵelementEnd()()();
21580
21656
  i0.ɵɵtemplate(12, QueryWriteRespondToQueryComponent_div_12_Template, 14, 13, "div", 6);
21581
21657
  } if (rf & 2) {
21582
21658
  i0.ɵɵadvance(3);
@@ -21588,12 +21664,12 @@ class QueryWriteRespondToQueryComponent {
21588
21664
  i0.ɵɵadvance(2);
21589
21665
  i0.ɵɵproperty("query", ctx.queryItem);
21590
21666
  i0.ɵɵadvance();
21591
- i0.ɵɵproperty("ngIf", ctx.showForm);
21667
+ i0.ɵɵproperty("ngIf", !ctx.hasRespondedToQuery);
21592
21668
  } }, styles: [".query-respond[_ngcontent-%COMP%]{width:100%;max-width:720px}"] });
21593
21669
  }
21594
21670
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRespondToQueryComponent, [{
21595
21671
  type: Component,
21596
- args: [{ selector: 'ccd-query-write-respond-to-query', template: "<div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Respond to a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-0\">{{ 'Query details' | rpxTranslate }}</h1>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <div>\n <ccd-query-details [query]=\"queryItem\"></ccd-query-details>\n </div>\n</div>\n\n<div class=\"query-respond\" *ngIf=\"showForm\">\n <div>\n <h1 class=\"govuk-heading-m\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Respond to a query' : 'Ask a follow-up question' | rpxTranslate }}\n </h1>\n\n <div [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group body-textarea\"\n [class.govuk-form-group--error]=\"submitted && formGroup.get('body')?.hasError('required')\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Response detail' : 'Query Body' | rpxTranslate }}\n </label>\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body')?.hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ queryCreateContext === queryCreateContextEnum.RESPOND ? raiseQueryErrorMessages.RESPOND_QUERY_BODY : raiseQueryErrorMessages.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\" class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body')?.hasError('required')\" id=\"body\"\n name=\"body\" rows=\"5\" aria-describedby=\"body-hint body-error\">\n </textarea>\n </div>\n </div>\n </div>\n</div>\n", styles: [".query-respond{width:100%;max-width:720px}\n"] }]
21672
+ args: [{ selector: 'ccd-query-write-respond-to-query', template: "<div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Respond to a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-0\">{{ 'Query details' | rpxTranslate }}</h1>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <div>\n <ccd-query-details [query]=\"queryItem\"\n (hasResponded)=\"hasResponded($event)\"></ccd-query-details>\n </div>\n</div>\n\n<div class=\"query-respond\" *ngIf=\"!hasRespondedToQuery\">\n <div>\n <h1 class=\"govuk-heading-m\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Respond to a query' : 'Ask a follow-up question' | rpxTranslate }}\n </h1>\n\n <div [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group body-textarea\"\n [class.govuk-form-group--error]=\"submitted && formGroup.get('body')?.hasError('required')\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Response detail' : 'Query Body' | rpxTranslate }}\n </label>\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body')?.hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ queryCreateContext === queryCreateContextEnum.RESPOND ? raiseQueryErrorMessages.RESPOND_QUERY_BODY : raiseQueryErrorMessages.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\" class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body')?.hasError('required')\" id=\"body\"\n name=\"body\" rows=\"5\" aria-describedby=\"body-hint body-error\">\n </textarea>\n </div>\n </div>\n </div>\n</div>\n", styles: [".query-respond{width:100%;max-width:720px}\n"] }]
21597
21673
  }], () => [{ type: CaseNotifier }], { queryItem: [{
21598
21674
  type: Input
21599
21675
  }], formGroup: [{
@@ -21602,8 +21678,8 @@ class QueryWriteRespondToQueryComponent {
21602
21678
  type: Input
21603
21679
  }], submitted: [{
21604
21680
  type: Input
21605
- }], showForm: [{
21606
- type: Input
21681
+ }], hasRespondedToQueryTask: [{
21682
+ type: Output
21607
21683
  }] }); })();
21608
21684
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteRespondToQueryComponent, { className: "QueryWriteRespondToQueryComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.ts", lineNumber: 14 }); })();
21609
21685
 
@@ -21734,7 +21810,6 @@ class QueryConfirmationComponent {
21734
21810
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryConfirmationComponent, { className: "QueryConfirmationComponent", filePath: "lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.ts", lineNumber: 9 }); })();
21735
21811
 
21736
21812
  const _c0$B = (a0, a1) => ["/query-management", "query", a0, "4", a1];
21737
- const _c1$e = (a0, a1) => ["/query-management", "query", a0, "3", a1];
21738
21813
  function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
21739
21814
  const _r1 = i0.ɵɵgetCurrentView();
21740
21815
  i0.ɵɵelementStart(0, "div", 5)(1, "ccd-query-list", 6);
@@ -21802,33 +21877,17 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template
21802
21877
  i0.ɵɵadvance();
21803
21878
  i0.ɵɵproperty("ngIf", (ctx_r1.query == null ? null : ctx_r1.query.children == null ? null : ctx_r1.query.children.length) > 0 && (ctx_r1.query == null ? null : ctx_r1.query.children == null ? null : ctx_r1.query.children.length) % 2 === 1)("ngIfElse", queryIsInReview_r5);
21804
21879
  } }
21805
- function ReadQueryManagementFieldComponent_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
21806
- i0.ɵɵelementContainerStart(0);
21807
- i0.ɵɵelementStart(1, "button", 9);
21808
- i0.ɵɵtext(2);
21809
- i0.ɵɵpipe(3, "rpxTranslate");
21810
- i0.ɵɵelementEnd();
21811
- i0.ɵɵelementContainerEnd();
21812
- } if (rf & 2) {
21813
- const ctx_r1 = i0.ɵɵnextContext(2);
21814
- i0.ɵɵadvance();
21815
- i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c1$e, ctx_r1.caseId, ctx_r1.query.id));
21816
- i0.ɵɵadvance();
21817
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Respond to a query"), " ");
21818
- } }
21819
21880
  function ReadQueryManagementFieldComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
21820
21881
  const _r4 = i0.ɵɵgetCurrentView();
21821
21882
  i0.ɵɵelementStart(0, "ccd-query-details", 7);
21822
21883
  i0.ɵɵlistener("backClicked", function ReadQueryManagementFieldComponent_ng_template_1_Template_ccd_query_details_backClicked_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.showQueryList = true); });
21823
21884
  i0.ɵɵelementEnd();
21824
- i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template, 4, 2, "ng-container", 8)(2, ReadQueryManagementFieldComponent_ng_template_1_ng_container_2_Template, 4, 7, "ng-container", 8);
21885
+ i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template, 4, 2, "ng-container", 8);
21825
21886
  } if (rf & 2) {
21826
21887
  const ctx_r1 = i0.ɵɵnextContext();
21827
21888
  i0.ɵɵproperty("query", ctx_r1.query)("caseId", ctx_r1.caseId);
21828
21889
  i0.ɵɵadvance();
21829
21890
  i0.ɵɵproperty("ngIf", !ctx_r1.isCaseworker());
21830
- i0.ɵɵadvance();
21831
- i0.ɵɵproperty("ngIf", (ctx_r1.query == null ? null : ctx_r1.query.children == null ? null : ctx_r1.query.children.length) >= 0 && ctx_r1.isCaseworker() && (ctx_r1.query == null ? null : ctx_r1.query.children == null ? null : ctx_r1.query.children.length) % 2 === 0);
21832
21891
  } }
21833
21892
  class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
21834
21893
  route;
@@ -21887,7 +21946,7 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
21887
21946
  }
21888
21947
  static ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(CaseNotifier)); };
21889
21948
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [["singleQueryDetails", ""], ["queryIsInReview", ""], [4, "ngIf", "ngIfElse"], [4, "ngFor", "ngForOf"], ["class", "govuk-!-margin-top-8 govuk-!-margin-bottom-8", 4, "ngIf"], [1, "govuk-!-margin-top-8", "govuk-!-margin-bottom-8"], [3, "selectedQuery", "caseQueriesCollection"], [3, "backClicked", "query", "caseId"], [4, "ngIf"], ["id", "ask-follow-up-question", "data-module", "govuk-button", 1, "govuk-button", 3, "routerLink"], [1, "govuk-!-font-weight-bold"]], template: function ReadQueryManagementFieldComponent_Template(rf, ctx) { if (rf & 1) {
21890
- i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 2, 1, "ng-container", 2)(1, ReadQueryManagementFieldComponent_ng_template_1_Template, 3, 4, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
21949
+ i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 2, 1, "ng-container", 2)(1, ReadQueryManagementFieldComponent_ng_template_1_Template, 2, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
21891
21950
  } if (rf & 2) {
21892
21951
  const singleQueryDetails_r6 = i0.ɵɵreference(2);
21893
21952
  i0.ɵɵproperty("ngIf", ctx.showQueryList)("ngIfElse", singleQueryDetails_r6);
@@ -21895,7 +21954,7 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
21895
21954
  }
21896
21955
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
21897
21956
  type: Component,
21898
- args: [{ selector: 'ccd-read-query-management-field', template: "<ng-container *ngIf=\"showQueryList; else singleQueryDetails\">\n <ng-container *ngFor=\"let caseQueriesCollection of caseQueriesCollections\">\n <div *ngIf=\"showQueryList\" class=\"govuk-!-margin-top-8 govuk-!-margin-bottom-8\">\n <ccd-query-list (selectedQuery)=\"setQuery($event)\" [caseQueriesCollection]=\"caseQueriesCollection\"></ccd-query-list>\n </div>\n </ng-container>\n</ng-container>\n\n<ng-template #singleQueryDetails>\n <ccd-query-details\n [query]=\"query\"\n (backClicked)=\"showQueryList = true\"\n [caseId]=\"caseId\"\n ></ccd-query-details>\n\n <ng-container *ngIf=\"!isCaseworker()\">\n <ng-container *ngIf=\"query?.children?.length > 0 && query?.children?.length % 2 === 1; else queryIsInReview\">\n <button id=\"ask-follow-up-question\" class=\"govuk-button\" data-module=\"govuk-button\"\n [routerLink]=\"['/query-management', 'query', caseId, '4', query.id]\">\n {{ 'Ask a follow-up question' | rpxTranslate }}\n </button>\n </ng-container>\n\n <ng-template #queryIsInReview>\n <div>\n <p class=\"govuk-!-font-weight-bold\">{{ 'Your query is under review' | rpxTranslate }}</p>\n <p>{{ 'Our team will read your query and will respond. Do not submit the same query more than once.' | rpxTranslate }}</p>\n </div>\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"query?.children?.length >= 0 && isCaseworker() && query?.children?.length % 2 === 0\">\n <button id=\"ask-follow-up-question\" class=\"govuk-button\" data-module=\"govuk-button\"\n [routerLink]=\"['/query-management', 'query', caseId, '3', query.id]\"\n >\n {{ 'Respond to a query' | rpxTranslate }}\n </button>\n </ng-container>\n</ng-template>\n" }]
21957
+ args: [{ selector: 'ccd-read-query-management-field', template: "<ng-container *ngIf=\"showQueryList; else singleQueryDetails\">\n <ng-container *ngFor=\"let caseQueriesCollection of caseQueriesCollections\">\n <div *ngIf=\"showQueryList\" class=\"govuk-!-margin-top-8 govuk-!-margin-bottom-8\">\n <ccd-query-list (selectedQuery)=\"setQuery($event)\" [caseQueriesCollection]=\"caseQueriesCollection\"></ccd-query-list>\n </div>\n </ng-container>\n</ng-container>\n\n<ng-template #singleQueryDetails>\n <ccd-query-details\n [query]=\"query\"\n (backClicked)=\"showQueryList = true\"\n [caseId]=\"caseId\"\n ></ccd-query-details>\n\n <ng-container *ngIf=\"!isCaseworker()\">\n <ng-container *ngIf=\"query?.children?.length > 0 && query?.children?.length % 2 === 1; else queryIsInReview\">\n <button id=\"ask-follow-up-question\" class=\"govuk-button\" data-module=\"govuk-button\"\n [routerLink]=\"['/query-management', 'query', caseId, '4', query.id]\">\n {{ 'Ask a follow-up question' | rpxTranslate }}\n </button>\n </ng-container>\n\n <ng-template #queryIsInReview>\n <div>\n <p class=\"govuk-!-font-weight-bold\">{{ 'Your query is under review' | rpxTranslate }}</p>\n <p>{{ 'Our team will read your query and will respond. Do not submit the same query more than once.' | rpxTranslate }}</p>\n </div>\n </ng-template>\n </ng-container>\n</ng-template>\n" }]
21899
21958
  }], () => [{ type: i1$1.ActivatedRoute }, { type: SessionStorageService }, { type: CaseNotifier }], null); })();
21900
21959
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber: 14 }); })();
21901
21960
 
@@ -29258,7 +29317,7 @@ i0.ɵɵsetComponentScope(
29258
29317
  // Components for Query Management
29259
29318
  ReadQueryManagementFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i1$1.RouterLink, QueryDetailsComponent,
29260
29319
  QueryListComponent]; }, function () { return [i1.RpxTranslatePipe]; });
29261
- i0.ɵɵsetComponentScope(QueryDetailsComponent, function () { return [i5.NgForOf, i5.NgIf, QueryAttachmentsReadComponent]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe]; });
29320
+ i0.ɵɵsetComponentScope(QueryDetailsComponent, function () { return [i5.NgForOf, i5.NgIf, AlertComponent, QueryAttachmentsReadComponent]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe]; });
29262
29321
  i0.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, function () { return [i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryDetailsComponent,
29263
29322
  QueryCaseDetailsHeaderComponent]; }, function () { return [i1.RpxTranslatePipe]; });
29264
29323
  i0.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, function () { return [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryCaseDetailsHeaderComponent,