@hmcts/ccd-case-ui-toolkit 7.1.5-query-management → 7.1.6-query-management

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.
@@ -40,7 +40,6 @@ import * as i2$2 from '@angular/cdk/overlay';
40
40
  import { OverlayModule } from '@angular/cdk/overlay';
41
41
  import * as i7 from '@angular/cdk/tree';
42
42
  import { NestedTreeControl, CdkTreeModule } from '@angular/cdk/tree';
43
- import moment$1 from 'moment/moment';
44
43
  import * as i4$1 from '@angular-material-components/datetime-picker';
45
44
  import { NGX_MAT_DATE_FORMATS, NgxMatDateAdapter, NgxMatDatetimePickerModule, NgxMatTimepickerModule, NgxMatNativeDateModule } from '@angular-material-components/datetime-picker';
46
45
  import { NgxMatMomentAdapter, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular-material-components/moment-adapter';
@@ -60,7 +59,7 @@ import { MatLegacyTabsModule } from '@angular/material/legacy-tabs';
60
59
  import { decompressFromUTF16, compressToUTF16 } from 'lz-string';
61
60
 
62
61
  const _c0$14 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
63
- const _c1$u = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
62
+ const _c1$v = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
64
63
  function FooterComponent_div_2_Template(rf, ctx) { if (rf & 1) {
65
64
  i0.ɵɵelementStart(0, "div", 3)(1, "div", 4);
66
65
  i0.ɵɵprojection(2);
@@ -136,7 +135,7 @@ class FooterComponent {
136
135
  phone;
137
136
  workhours;
138
137
  static ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
139
- 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) {
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) {
140
139
  i0.ɵɵprojectionDef(_c0$14);
141
140
  i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
142
141
  i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2)(3, FooterComponent_div_3_Template, 20, 16, "div", 2);
@@ -165,7 +164,7 @@ class FooterComponent {
165
164
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FooterComponent, { className: "FooterComponent", filePath: "lib/components/footer/footer.component.ts", lineNumber: 8 }); })();
166
165
 
167
166
  const _c0$13 = [[["", "headerNavigation", ""]]];
168
- const _c1$t = ["[headerNavigation]"];
167
+ const _c1$u = ["[headerNavigation]"];
169
168
  function HeaderBarComponent_div_3_Template(rf, ctx) { if (rf & 1) {
170
169
  i0.ɵɵelementStart(0, "div")(1, "a", 12);
171
170
  i0.ɵɵelement(2, "img", 13);
@@ -207,7 +206,7 @@ class HeaderBarComponent {
207
206
  this.signOutRequest.emit();
208
207
  }
209
208
  static ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
210
- 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) {
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) {
211
210
  i0.ɵɵprojectionDef(_c0$13);
212
211
  i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
213
212
  i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 5, 3, "div", 3)(4, HeaderBarComponent_div_4_Template, 5, 3, "div", 4);
@@ -259,11 +258,11 @@ class HeaderBarComponent {
259
258
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HeaderBarComponent, { className: "HeaderBarComponent", filePath: "lib/components/header/header-bar/header-bar.component.ts", lineNumber: 8 }); })();
260
259
 
261
260
  const _c0$12 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
262
- const _c1$s = ["[leftNavLinks]", "[rightNavLinks]"];
261
+ const _c1$t = ["[leftNavLinks]", "[rightNavLinks]"];
263
262
  class NavigationComponent {
264
263
  isSolicitor;
265
264
  static ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
266
- 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) {
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) {
267
266
  i0.ɵɵprojectionDef(_c0$12);
268
267
  i0.ɵɵelementStart(0, "div")(1, "nav", 0);
269
268
  i0.ɵɵprojection(2);
@@ -384,10 +383,10 @@ class HeadersModule {
384
383
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
385
384
 
386
385
  const _c0$11 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
387
- const _c1$r = ["[topBody]", "[leftBody]", "[rightBody]"];
386
+ const _c1$s = ["[topBody]", "[leftBody]", "[rightBody]"];
388
387
  class BodyComponent {
389
388
  static ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
390
- 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) {
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) {
391
390
  i0.ɵɵprojectionDef(_c0$11);
392
391
  i0.ɵɵelementStart(0, "div", 0);
393
392
  i0.ɵɵprojection(1);
@@ -1002,7 +1001,7 @@ class NotificationBannerComponent {
1002
1001
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NotificationBannerComponent, { className: "NotificationBannerComponent", filePath: "lib/components/banners/notification-banner/notification-banner.component.ts", lineNumber: 10 }); })();
1003
1002
 
1004
1003
  const _c0$_ = ["*"];
1005
- const _c1$q = a0 => ({ "js-hidden": a0 });
1004
+ const _c1$r = a0 => ({ "js-hidden": a0 });
1006
1005
  class TabComponent {
1007
1006
  id;
1008
1007
  title;
@@ -1014,7 +1013,7 @@ class TabComponent {
1014
1013
  i0.ɵɵprojection(1);
1015
1014
  i0.ɵɵelementEnd();
1016
1015
  } if (rf & 2) {
1017
- i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c1$q, !ctx.selected));
1016
+ i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c1$r, !ctx.selected));
1018
1017
  i0.ɵɵattribute("aria-hidden", !ctx.selected);
1019
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}}"] });
1020
1019
  }
@@ -1031,7 +1030,7 @@ class TabComponent {
1031
1030
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TabComponent, { className: "TabComponent", filePath: "lib/components/tabs/tab.component.ts", lineNumber: 10 }); })();
1032
1031
 
1033
1032
  const _c0$Z = ["tab"];
1034
- const _c1$p = ["*"];
1033
+ const _c1$q = ["*"];
1035
1034
  const _c2$4 = () => ["."];
1036
1035
  const _c3 = a0 => ({ "tabs-toggle-selected": a0 });
1037
1036
  function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
@@ -1081,7 +1080,7 @@ class TabsComponent {
1081
1080
  } if (rf & 2) {
1082
1081
  let _t;
1083
1082
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
1084
- } }, 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) {
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) {
1085
1084
  i0.ɵɵprojectionDef();
1086
1085
  i0.ɵɵelementStart(0, "div", 1)(1, "ul", 2);
1087
1086
  i0.ɵɵtemplate(2, TabsComponent_li_2_Template, 5, 11, "li", 3);
@@ -11670,7 +11669,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
11670
11669
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteComplexFieldComponent, { className: "WriteComplexFieldComponent", filePath: "lib/shared/components/palette/complex/write-complex-field.component.ts", lineNumber: 21 }); })();
11671
11670
 
11672
11671
  const _c0$V = ["writeComplexFieldComponent"];
11673
- const _c1$o = a0 => ({ "form-group-error": a0 });
11672
+ const _c1$p = a0 => ({ "form-group-error": a0 });
11674
11673
  const _c2$3 = a0 => ({ "govuk-input--error": a0 });
11675
11674
  function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (rf & 1) {
11676
11675
  i0.ɵɵelementStart(0, "span", 14);
@@ -11697,7 +11696,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1)
11697
11696
  i0.ɵɵelementEnd()();
11698
11697
  } if (rf & 2) {
11699
11698
  const ctx_r1 = i0.ɵɵnextContext(2);
11700
- i0.ɵɵproperty("id", ctx_r1.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$o, ctx_r1.missingPostcode));
11699
+ i0.ɵɵproperty("id", ctx_r1.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$p, ctx_r1.missingPostcode));
11701
11700
  i0.ɵɵadvance();
11702
11701
  i0.ɵɵproperty("for", ctx_r1.createElementId("postcodeInput"));
11703
11702
  i0.ɵɵadvance(2);
@@ -11743,7 +11742,7 @@ function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) { if (rf & 1)
11743
11742
  i0.ɵɵelementEnd()();
11744
11743
  } if (rf & 2) {
11745
11744
  const ctx_r1 = i0.ɵɵnextContext(2);
11746
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$o, ctx_r1.noAddressSelected));
11745
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$p, ctx_r1.noAddressSelected));
11747
11746
  i0.ɵɵadvance();
11748
11747
  i0.ɵɵproperty("for", ctx_r1.createElementId("addressList"));
11749
11748
  i0.ɵɵadvance(2);
@@ -13176,7 +13175,7 @@ class ReadCaseLinkFieldComponent extends AbstractFieldReadComponent {
13176
13175
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadCaseLinkFieldComponent, { className: "ReadCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/read-case-link-field.component.ts", lineNumber: 8 }); })();
13177
13176
 
13178
13177
  const _c0$U = ["writeComplexFieldComponent"];
13179
- const _c1$n = a0 => ({ "form-group-error": a0 });
13178
+ const _c1$o = a0 => ({ "form-group-error": a0 });
13180
13179
  function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
13181
13180
  i0.ɵɵelementStart(0, "span", 6);
13182
13181
  i0.ɵɵtext(1);
@@ -13268,7 +13267,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
13268
13267
  i0.ɵɵelement(5, "input", 5);
13269
13268
  i0.ɵɵelementEnd();
13270
13269
  } if (rf & 2) {
13271
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$n, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
13270
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$o, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
13272
13271
  i0.ɵɵadvance();
13273
13272
  i0.ɵɵproperty("for", ctx.id());
13274
13273
  i0.ɵɵadvance();
@@ -13291,7 +13290,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
13291
13290
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseLinkFieldComponent, { className: "WriteCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/write-case-link-field.component.ts", lineNumber: 11 }); })();
13292
13291
 
13293
13292
  const _c0$T = (a0, a1, a2, a3, a4, a5) => ({ id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 });
13294
- const _c1$m = (a0, a1, a2, a3, a4) => ({ id: a0, label: a1, field_type: a2, value: a3, hidden: a4 });
13293
+ const _c1$n = (a0, a1, a2, a3, a4) => ({ id: a0, label: a1, field_type: a2, value: a3, hidden: a4 });
13295
13294
  function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
13296
13295
  i0.ɵɵelementStart(0, "tbody")(1, "tr");
13297
13296
  i0.ɵɵelement(2, "th", 4);
@@ -13312,7 +13311,7 @@ function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { i
13312
13311
  const i_r3 = ctx.index;
13313
13312
  const ctx_r0 = i0.ɵɵnextContext(3);
13314
13313
  i0.ɵɵadvance(2);
13315
- 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));
13314
+ 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));
13316
13315
  } }
13317
13316
  function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) { if (rf & 1) {
13318
13317
  i0.ɵɵelementStart(0, "tbody");
@@ -14118,7 +14117,7 @@ class FileUploadStateService {
14118
14117
  }], null, null); })();
14119
14118
 
14120
14119
  const _c0$R = ["fileInput"];
14121
- const _c1$l = a0 => ({ "form-group-error bottom-30": a0 });
14120
+ const _c1$m = a0 => ({ "form-group-error bottom-30": a0 });
14122
14121
  function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
14123
14122
  i0.ɵɵelementStart(0, "span", 12);
14124
14123
  i0.ɵɵtext(1);
@@ -14495,7 +14494,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
14495
14494
  i0.ɵɵpipe(17, "rpxTranslate");
14496
14495
  i0.ɵɵelementEnd()();
14497
14496
  } if (rf & 2) {
14498
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$l, !ctx.valid));
14497
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$m, !ctx.valid));
14499
14498
  i0.ɵɵadvance();
14500
14499
  i0.ɵɵproperty("for", ctx.id());
14501
14500
  i0.ɵɵadvance();
@@ -15023,7 +15022,7 @@ class ReadDynamicRadioListFieldComponent extends AbstractFieldReadComponent {
15023
15022
  (() => { (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 }); })();
15024
15023
 
15025
15024
  const _c0$O = a0 => ({ "form-group-error": a0 });
15026
- const _c1$k = a0 => ({ selected: a0 });
15025
+ const _c1$l = a0 => ({ selected: a0 });
15027
15026
  function WriteDynamicRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
15028
15027
  i0.ɵɵelementStart(0, "span", 7);
15029
15028
  i0.ɵɵtext(1);
@@ -15073,7 +15072,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
15073
15072
  } if (rf & 2) {
15074
15073
  const radioButton_r2 = ctx.$implicit;
15075
15074
  const ctx_r0 = i0.ɵɵnextContext();
15076
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$k, ctx_r0.dynamicRadioListControl.value === radioButton_r2.code));
15075
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$l, ctx_r0.dynamicRadioListControl.value === radioButton_r2.code));
15077
15076
  i0.ɵɵadvance();
15078
15077
  i0.ɵɵproperty("id", ctx_r0.createElementId(radioButton_r2.code))("name", ctx_r0.id())("formControl", ctx_r0.dynamicRadioListControl)("value", radioButton_r2.code);
15079
15078
  i0.ɵɵadvance();
@@ -15169,7 +15168,7 @@ class ReadEmailFieldComponent extends AbstractFieldReadComponent {
15169
15168
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadEmailFieldComponent, { className: "ReadEmailFieldComponent", filePath: "lib/shared/components/palette/email/read-email-field.component.ts", lineNumber: 10 }); })();
15170
15169
 
15171
15170
  const _c0$N = a0 => ({ "form-group-error": a0 });
15172
- const _c1$j = a0 => ({ "govuk-input--error": a0 });
15171
+ const _c1$k = a0 => ({ "govuk-input--error": a0 });
15173
15172
  function WriteEmailFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
15174
15173
  i0.ɵɵelementStart(0, "span", 6);
15175
15174
  i0.ɵɵtext(1);
@@ -15224,7 +15223,7 @@ class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
15224
15223
  i0.ɵɵadvance();
15225
15224
  i0.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
15226
15225
  i0.ɵɵadvance();
15227
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$j, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
15226
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$k, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
15228
15227
  } }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
15229
15228
  }
15230
15229
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteEmailFieldComponent, [{
@@ -15392,7 +15391,7 @@ class ReadFixedRadioListFieldComponent extends AbstractFieldReadComponent {
15392
15391
  (() => { (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 }); })();
15393
15392
 
15394
15393
  const _c0$L = a0 => ({ "form-group-error": a0 });
15395
- const _c1$i = a0 => ({ selected: a0 });
15394
+ const _c1$j = a0 => ({ selected: a0 });
15396
15395
  function WriteFixedRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
15397
15396
  i0.ɵɵelementStart(0, "span", 6);
15398
15397
  i0.ɵɵtext(1);
@@ -15433,7 +15432,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
15433
15432
  } if (rf & 2) {
15434
15433
  const radioButton_r2 = ctx.$implicit;
15435
15434
  const ctx_r0 = i0.ɵɵnextContext();
15436
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$i, ctx_r0.fixedRadioListControl.value === radioButton_r2.code));
15435
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$j, ctx_r0.fixedRadioListControl.value === radioButton_r2.code));
15437
15436
  i0.ɵɵadvance();
15438
15437
  i0.ɵɵproperty("id", ctx_r0.id() + "-" + radioButton_r2.code)("name", ctx_r0.id())("formControl", ctx_r0.fixedRadioListControl)("value", radioButton_r2.code);
15439
15438
  i0.ɵɵadvance();
@@ -15536,7 +15535,7 @@ class ReadJudicialUserFieldComponent extends AbstractFieldReadComponent {
15536
15535
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadJudicialUserFieldComponent, { className: "ReadJudicialUserFieldComponent", filePath: "lib/shared/components/palette/judicial-user/read-judicial-user-field.component.ts", lineNumber: 11 }); })();
15537
15536
 
15538
15537
  const _c0$K = a0 => ({ "form-group-error": a0 });
15539
- const _c1$h = a0 => ({ "hide-autocomplete": a0 });
15538
+ const _c1$i = a0 => ({ "hide-autocomplete": a0 });
15540
15539
  function WriteJudicialUserFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
15541
15540
  i0.ɵɵelementStart(0, "span", 10);
15542
15541
  i0.ɵɵtext(1);
@@ -15575,7 +15574,7 @@ function WriteJudicialUserFieldComponent_mat_option_8_Template(rf, ctx) { if (rf
15575
15574
  } if (rf & 2) {
15576
15575
  const judicialUser_r4 = ctx.$implicit;
15577
15576
  const ctx_r1 = i0.ɵɵnextContext();
15578
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$h, !ctx_r1.showAutocomplete))("value", judicialUser_r4);
15577
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$i, !ctx_r1.showAutocomplete))("value", judicialUser_r4);
15579
15578
  i0.ɵɵadvance();
15580
15579
  i0.ɵɵtextInterpolate2(" ", (judicialUser_r4 == null ? null : judicialUser_r4.fullName) ? judicialUser_r4.fullName : "", "", (judicialUser_r4 == null ? null : judicialUser_r4.emailId) ? " (" + judicialUser_r4.emailId + ")" : "", " ");
15581
15580
  } }
@@ -16301,7 +16300,7 @@ class ValidatorsUtils {
16301
16300
  }], null, null); })();
16302
16301
 
16303
16302
  const _c0$J = a0 => ({ "govuk-form-group--error": a0 });
16304
- const _c1$g = a0 => ({ "table-group-error": a0 });
16303
+ const _c1$h = a0 => ({ "table-group-error": a0 });
16305
16304
  function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
16306
16305
  i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
16307
16306
  i0.ɵɵtext(2, "Error:");
@@ -16478,7 +16477,7 @@ function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
16478
16477
  const case_r9 = ctx.$implicit;
16479
16478
  const ctx_r1 = i0.ɵɵnextContext();
16480
16479
  i0.ɵɵadvance(2);
16481
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$g, ctx_r1.caseSelectionError && case_r9.caseReference === ctx_r1.linkCaseForm.value.caseNumber));
16480
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$h, ctx_r1.caseSelectionError && case_r9.caseReference === ctx_r1.linkCaseForm.value.caseNumber));
16482
16481
  i0.ɵɵadvance(2);
16483
16482
  i0.ɵɵtextInterpolate1("", case_r9.caseName, " ");
16484
16483
  i0.ɵɵadvance(2);
@@ -18487,7 +18486,7 @@ class ReadNumberFieldComponent extends AbstractFieldReadComponent {
18487
18486
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadNumberFieldComponent, { className: "ReadNumberFieldComponent", filePath: "lib/shared/components/palette/number/read-number-field.component.ts", lineNumber: 8 }); })();
18488
18487
 
18489
18488
  const _c0$F = a0 => ({ "form-group-error": a0 });
18490
- const _c1$f = a0 => ({ "govuk-input--error": a0 });
18489
+ const _c1$g = a0 => ({ "govuk-input--error": a0 });
18491
18490
  function WriteNumberFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
18492
18491
  i0.ɵɵelementStart(0, "span", 6);
18493
18492
  i0.ɵɵtext(1);
@@ -18542,7 +18541,7 @@ class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
18542
18541
  i0.ɵɵadvance();
18543
18542
  i0.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
18544
18543
  i0.ɵɵadvance();
18545
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$f, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
18544
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$g, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
18546
18545
  } }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NumberValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
18547
18546
  }
18548
18547
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteNumberFieldComponent, [{
@@ -19170,7 +19169,7 @@ class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
19170
19169
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadPhoneUKFieldComponent, { className: "ReadPhoneUKFieldComponent", filePath: "lib/shared/components/palette/phone-uk/read-phone-uk-field.component.ts", lineNumber: 8 }); })();
19171
19170
 
19172
19171
  const _c0$D = a0 => ({ "form-group-error": a0 });
19173
- const _c1$e = a0 => ({ "govuk-input--error": a0 });
19172
+ const _c1$f = a0 => ({ "govuk-input--error": a0 });
19174
19173
  function WritePhoneUKFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
19175
19174
  i0.ɵɵelementStart(0, "span", 6);
19176
19175
  i0.ɵɵtext(1);
@@ -19225,7 +19224,7 @@ class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
19225
19224
  i0.ɵɵadvance();
19226
19225
  i0.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
19227
19226
  i0.ɵɵadvance();
19228
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$e, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
19227
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$f, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
19229
19228
  } }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
19230
19229
  }
19231
19230
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
@@ -20193,14 +20192,52 @@ class QueryCheckYourAnswersComponent {
20193
20192
  const caseMessage = this.queryCreateContext === QueryCreateContext.NEW_QUERY
20194
20193
  ? QueryManagementUtils.getNewQueryData(this.formGroup, currentUserDetails)
20195
20194
  : QueryManagementUtils.getRespondOrFollowupQueryData(this.formGroup, this.queryItem, currentUserDetails);
20195
+ const messageId = this.route.snapshot.params.dataid; // Get the message ID from route params (if present)
20196
+ const isNewQuery = this.queryCreateContext === QueryCreateContext.NEW_QUERY; // Check if this is a new query
20196
20197
  // Check if the field ID has been set dynamically
20197
20198
  if (!this.fieldId) {
20198
20199
  console.error('Error: Field ID for CaseQueriesCollection not found. Cannot proceed with data generation.');
20199
20200
  this.router.navigate(['/', 'service-down']);
20200
20201
  }
20201
- // Base data structure for the query with dynamic property name
20202
- const newQueryData = {
20203
- [this.fieldId]: {
20202
+ // Initialize new query data structure
20203
+ const newQueryData = {};
20204
+ if (this.caseQueriesCollections?.length) {
20205
+ let matchedCollection;
20206
+ // If it's not a new query, try to find the existing collection with the message ID
20207
+ if (!isNewQuery && messageId) {
20208
+ matchedCollection = this.caseQueriesCollections.find((collection) => collection.caseMessages.some((message) => message.value.id === messageId));
20209
+ }
20210
+ if (matchedCollection) {
20211
+ // Append the new case message to the matched collection's caseMessages
20212
+ matchedCollection.caseMessages.push({
20213
+ id: null,
20214
+ value: caseMessage
20215
+ });
20216
+ // Add the matched collection to newQueryData
20217
+ newQueryData[this.fieldId] = {
20218
+ ...matchedCollection, // Keep existing data intact
20219
+ caseMessages: [...matchedCollection.caseMessages] // Append the updated messages array
20220
+ };
20221
+ }
20222
+ else {
20223
+ // If no collection matches, or it's a new query
20224
+ newQueryData[this.fieldId] = {
20225
+ partyName: '', // Not returned by CCD
20226
+ roleOnCase: '', // Not returned by CCD
20227
+ caseMessages: [
20228
+ {
20229
+ id: null,
20230
+ value: caseMessage
20231
+ }
20232
+ ]
20233
+ };
20234
+ // If caseQueriesCollections is not empty, append its data
20235
+ newQueryData[this.fieldId].caseMessages.push(...this.caseQueriesCollections.flatMap((collection) => collection.caseMessages));
20236
+ }
20237
+ }
20238
+ else {
20239
+ // If there are no existing collections, create a new one (e.g., for new queries)
20240
+ newQueryData[this.fieldId] = {
20204
20241
  partyName: '', // Not returned by CCD
20205
20242
  roleOnCase: '', // Not returned by CCD
20206
20243
  caseMessages: [
@@ -20209,11 +20246,7 @@ class QueryCheckYourAnswersComponent {
20209
20246
  value: caseMessage
20210
20247
  }
20211
20248
  ]
20212
- }
20213
- };
20214
- // If caseQueriesCollections is not empty, append its data
20215
- if (this.caseQueriesCollections?.length) {
20216
- newQueryData[this.fieldId].caseMessages.push(...this.caseQueriesCollections.flatMap((collection) => collection.caseMessages));
20249
+ };
20217
20250
  }
20218
20251
  return newQueryData;
20219
20252
  }
@@ -20231,11 +20264,23 @@ class QueryCheckYourAnswersComponent {
20231
20264
  }
20232
20265
  }
20233
20266
  extractCaseQueryId(data) {
20234
- // Check if field_type.id is 'CaseQueriesCollection' and field_type.type is 'Complex'
20235
- if (data.field_type.id === this.CASE_QUERIES_COLLECTION_ID &&
20236
- data.field_type.type === this.FIELD_TYPE_COMPLEX) {
20237
- // Set the field ID dynamically based on the extracted data
20238
- this.fieldId = data.id; // Store the ID for use in generating newQueryData
20267
+ const { id, value } = data;
20268
+ const messageId = this.route.snapshot.params.dataid;
20269
+ // Check if the field_type matches CaseQueriesCollection and type is Complex
20270
+ if (data.field_type.id === this.CASE_QUERIES_COLLECTION_ID && data.field_type.type === this.FIELD_TYPE_COMPLEX) {
20271
+ if (this.queryCreateContext !== QueryCreateContext.RESPOND) {
20272
+ // Set the field ID dynamically based on the extracted data
20273
+ this.fieldId = id; // Store the ID for use in generating newQueryData
20274
+ }
20275
+ // If messageId is present, find the corresponding case message
20276
+ if (messageId && value?.caseMessages) {
20277
+ // Check for a message that has the specified messageId
20278
+ const matchedMessage = value.caseMessages.find((message) => message.value.id === messageId);
20279
+ // If a matching message is found, set the fieldId to the corresponding id
20280
+ if (matchedMessage) {
20281
+ this.fieldId = id; // This assumes you still want to use the same id
20282
+ }
20283
+ }
20239
20284
  }
20240
20285
  }
20241
20286
  static ɵfac = function QueryCheckYourAnswersComponent_Factory(t) { return new (t || QueryCheckYourAnswersComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(WorkAllocationService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(EventTriggerService)); };
@@ -20339,7 +20384,7 @@ class QueryCheckYourAnswersComponent {
20339
20384
  }] }); })();
20340
20385
  (() => { (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: 23 }); })();
20341
20386
 
20342
- function QueryDetailsComponent_ng_container_0_tr_45_Template(rf, ctx) { if (rf & 1) {
20387
+ function QueryDetailsComponent_ng_container_0_tr_46_Template(rf, ctx) { if (rf & 1) {
20343
20388
  i0.ɵɵelementStart(0, "tr", 11)(1, "th", 7);
20344
20389
  i0.ɵɵtext(2);
20345
20390
  i0.ɵɵpipe(3, "rpxTranslate");
@@ -20355,13 +20400,13 @@ function QueryDetailsComponent_ng_container_0_tr_45_Template(rf, ctx) { if (rf &
20355
20400
  i0.ɵɵadvance(3);
20356
20401
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 4, ctx_r1.query.hearingDate, "dd MMM yyyy"));
20357
20402
  } }
20358
- function QueryDetailsComponent_ng_container_0_ccd_query_attachments_read_51_Template(rf, ctx) { if (rf & 1) {
20403
+ function QueryDetailsComponent_ng_container_0_ccd_query_attachments_read_52_Template(rf, ctx) { if (rf & 1) {
20359
20404
  i0.ɵɵelement(0, "ccd-query-attachments-read", 12);
20360
20405
  } if (rf & 2) {
20361
20406
  const ctx_r1 = i0.ɵɵnextContext(2);
20362
20407
  i0.ɵɵproperty("attachments", ctx_r1.query.attachments);
20363
20408
  } }
20364
- function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_container_1_tr_15_Template(rf, ctx) { if (rf & 1) {
20409
+ function QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_container_1_tr_15_Template(rf, ctx) { if (rf & 1) {
20365
20410
  i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
20366
20411
  i0.ɵɵtext(2);
20367
20412
  i0.ɵɵpipe(3, "rpxTranslate");
@@ -20376,13 +20421,13 @@ function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_
20376
20421
  i0.ɵɵadvance(3);
20377
20422
  i0.ɵɵtextInterpolate(child_r3.name);
20378
20423
  } }
20379
- function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_container_1_ccd_query_attachments_read_27_Template(rf, ctx) { if (rf & 1) {
20424
+ function QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_container_1_ccd_query_attachments_read_27_Template(rf, ctx) { if (rf & 1) {
20380
20425
  i0.ɵɵelement(0, "ccd-query-attachments-read", 12);
20381
20426
  } if (rf & 2) {
20382
20427
  const child_r3 = i0.ɵɵnextContext(2).$implicit;
20383
20428
  i0.ɵɵproperty("attachments", child_r3.attachments);
20384
20429
  } }
20385
- function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
20430
+ function QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
20386
20431
  i0.ɵɵelementContainerStart(0);
20387
20432
  i0.ɵɵelementStart(1, "table", 3);
20388
20433
  i0.ɵɵpipe(2, "rpxTranslate");
@@ -20398,7 +20443,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_
20398
20443
  i0.ɵɵtext(13);
20399
20444
  i0.ɵɵpipe(14, "date");
20400
20445
  i0.ɵɵelementEnd()();
20401
- i0.ɵɵtemplate(15, QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_container_1_tr_15_Template, 6, 4, "tr", 15);
20446
+ i0.ɵɵtemplate(15, QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_container_1_tr_15_Template, 6, 4, "tr", 15);
20402
20447
  i0.ɵɵelementStart(16, "tr", 6)(17, "th", 7);
20403
20448
  i0.ɵɵtext(18);
20404
20449
  i0.ɵɵpipe(19, "rpxTranslate");
@@ -20411,7 +20456,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_
20411
20456
  i0.ɵɵpipe(25, "rpxTranslate");
20412
20457
  i0.ɵɵelementEnd();
20413
20458
  i0.ɵɵelementStart(26, "td", 8);
20414
- i0.ɵɵtemplate(27, QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_container_1_ccd_query_attachments_read_27_Template, 1, 1, "ccd-query-attachments-read", 10);
20459
+ i0.ɵɵtemplate(27, QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_container_1_ccd_query_attachments_read_27_Template, 1, 1, "ccd-query-attachments-read", 10);
20415
20460
  i0.ɵɵelementEnd()()()();
20416
20461
  i0.ɵɵelementContainerEnd();
20417
20462
  } if (rf & 2) {
@@ -20436,13 +20481,13 @@ function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_
20436
20481
  i0.ɵɵadvance(3);
20437
20482
  i0.ɵɵproperty("ngIf", child_r3.attachments);
20438
20483
  } }
20439
- function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_template_2_ccd_query_attachments_read_34_Template(rf, ctx) { if (rf & 1) {
20484
+ function QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_template_2_ccd_query_attachments_read_34_Template(rf, ctx) { if (rf & 1) {
20440
20485
  i0.ɵɵelement(0, "ccd-query-attachments-read", 12);
20441
20486
  } if (rf & 2) {
20442
20487
  const child_r3 = i0.ɵɵnextContext(2).$implicit;
20443
20488
  i0.ɵɵproperty("attachments", child_r3.attachments);
20444
20489
  } }
20445
- function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
20490
+ function QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
20446
20491
  i0.ɵɵelementStart(0, "div", 16);
20447
20492
  i0.ɵɵtext(1);
20448
20493
  i0.ɵɵpipe(2, "rpxTranslate");
@@ -20480,7 +20525,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_
20480
20525
  i0.ɵɵpipe(32, "rpxTranslate");
20481
20526
  i0.ɵɵelementEnd();
20482
20527
  i0.ɵɵelementStart(33, "td", 8);
20483
- i0.ɵɵtemplate(34, QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_template_2_ccd_query_attachments_read_34_Template, 1, 1, "ccd-query-attachments-read", 10);
20528
+ i0.ɵɵtemplate(34, QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_template_2_ccd_query_attachments_read_34_Template, 1, 1, "ccd-query-attachments-read", 10);
20484
20529
  i0.ɵɵelementEnd()()()();
20485
20530
  } if (rf & 2) {
20486
20531
  const child_r3 = i0.ɵɵnextContext().$implicit;
@@ -20507,9 +20552,9 @@ function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_
20507
20552
  i0.ɵɵadvance(3);
20508
20553
  i0.ɵɵproperty("ngIf", child_r3.attachments);
20509
20554
  } }
20510
- function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_Template(rf, ctx) { if (rf & 1) {
20555
+ function QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_Template(rf, ctx) { if (rf & 1) {
20511
20556
  i0.ɵɵelementContainerStart(0);
20512
- i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_container_1_Template, 28, 22, "ng-container", 14)(2, QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_template_2_Template, 35, 28, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
20557
+ i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_container_1_Template, 28, 22, "ng-container", 14)(2, QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_template_2_Template, 35, 28, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
20513
20558
  i0.ɵɵelementContainerEnd();
20514
20559
  } if (rf & 2) {
20515
20560
  const i_r4 = ctx.index;
@@ -20517,9 +20562,9 @@ function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_Tem
20517
20562
  i0.ɵɵadvance();
20518
20563
  i0.ɵɵproperty("ngIf", i_r4 % 2 === 0)("ngIfElse", followUpMessage_r5);
20519
20564
  } }
20520
- function QueryDetailsComponent_ng_container_0_ng_container_52_Template(rf, ctx) { if (rf & 1) {
20565
+ function QueryDetailsComponent_ng_container_0_ng_container_53_Template(rf, ctx) { if (rf & 1) {
20521
20566
  i0.ɵɵelementContainerStart(0);
20522
- i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_Template, 4, 2, "ng-container", 13);
20567
+ i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_Template, 4, 2, "ng-container", 13);
20523
20568
  i0.ɵɵelementContainerEnd();
20524
20569
  } if (rf & 2) {
20525
20570
  const ctx_r1 = i0.ɵɵnextContext(2);
@@ -20529,100 +20574,101 @@ function QueryDetailsComponent_ng_container_0_ng_container_52_Template(rf, ctx)
20529
20574
  function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
20530
20575
  const _r1 = i0.ɵɵgetCurrentView();
20531
20576
  i0.ɵɵelementContainerStart(0);
20532
- i0.ɵɵelementStart(1, "p")(2, "a", 2);
20533
- i0.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_Template_a_click_2_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onBack()); });
20534
- i0.ɵɵtext(3);
20535
- i0.ɵɵpipe(4, "rpxTranslate");
20577
+ i0.ɵɵelement(1, "br");
20578
+ i0.ɵɵelementStart(2, "p")(3, "a", 2);
20579
+ 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()); });
20580
+ i0.ɵɵtext(4);
20581
+ i0.ɵɵpipe(5, "rpxTranslate");
20536
20582
  i0.ɵɵelementEnd()();
20537
- i0.ɵɵelementStart(5, "div")(6, "table", 3);
20538
- i0.ɵɵpipe(7, "rpxTranslate");
20539
- i0.ɵɵelementStart(8, "caption", 4)(9, "div");
20540
- i0.ɵɵtext(10);
20541
- i0.ɵɵpipe(11, "rpxTranslate");
20583
+ i0.ɵɵelementStart(6, "div")(7, "table", 3);
20584
+ i0.ɵɵpipe(8, "rpxTranslate");
20585
+ i0.ɵɵelementStart(9, "caption", 4)(10, "div");
20586
+ i0.ɵɵtext(11);
20587
+ i0.ɵɵpipe(12, "rpxTranslate");
20542
20588
  i0.ɵɵelementEnd()();
20543
- i0.ɵɵelementStart(12, "tbody", 5)(13, "tr", 6)(14, "th", 7);
20544
- i0.ɵɵtext(15);
20545
- i0.ɵɵpipe(16, "rpxTranslate");
20589
+ i0.ɵɵelementStart(13, "tbody", 5)(14, "tr", 6)(15, "th", 7);
20590
+ i0.ɵɵtext(16);
20591
+ i0.ɵɵpipe(17, "rpxTranslate");
20546
20592
  i0.ɵɵelementEnd();
20547
- i0.ɵɵelementStart(17, "td", 8);
20548
- i0.ɵɵtext(18);
20593
+ i0.ɵɵelementStart(18, "td", 8);
20594
+ i0.ɵɵtext(19);
20549
20595
  i0.ɵɵelementEnd()();
20550
- i0.ɵɵelementStart(19, "tr", 6)(20, "th", 7);
20551
- i0.ɵɵtext(21);
20552
- i0.ɵɵpipe(22, "rpxTranslate");
20596
+ i0.ɵɵelementStart(20, "tr", 6)(21, "th", 7);
20597
+ i0.ɵɵtext(22);
20598
+ i0.ɵɵpipe(23, "rpxTranslate");
20553
20599
  i0.ɵɵelementEnd();
20554
- i0.ɵɵelementStart(23, "td", 8);
20555
- i0.ɵɵtext(24);
20556
- i0.ɵɵpipe(25, "date");
20600
+ i0.ɵɵelementStart(24, "td", 8);
20601
+ i0.ɵɵtext(25);
20602
+ i0.ɵɵpipe(26, "date");
20557
20603
  i0.ɵɵelementEnd()();
20558
- i0.ɵɵelementStart(26, "tr", 6)(27, "th", 7);
20559
- i0.ɵɵtext(28);
20560
- i0.ɵɵpipe(29, "rpxTranslate");
20604
+ i0.ɵɵelementStart(27, "tr", 6)(28, "th", 7);
20605
+ i0.ɵɵtext(29);
20606
+ i0.ɵɵpipe(30, "rpxTranslate");
20561
20607
  i0.ɵɵelementEnd();
20562
- i0.ɵɵelementStart(30, "td", 8);
20563
- i0.ɵɵtext(31);
20608
+ i0.ɵɵelementStart(31, "td", 8);
20609
+ i0.ɵɵtext(32);
20564
20610
  i0.ɵɵelementEnd()();
20565
- i0.ɵɵelementStart(32, "tr", 6)(33, "th", 7);
20566
- i0.ɵɵtext(34);
20567
- i0.ɵɵpipe(35, "rpxTranslate");
20611
+ i0.ɵɵelementStart(33, "tr", 6)(34, "th", 7);
20612
+ i0.ɵɵtext(35);
20613
+ i0.ɵɵpipe(36, "rpxTranslate");
20568
20614
  i0.ɵɵelementEnd();
20569
- i0.ɵɵelementStart(36, "td", 8);
20570
- i0.ɵɵtext(37);
20615
+ i0.ɵɵelementStart(37, "td", 8);
20616
+ i0.ɵɵtext(38);
20571
20617
  i0.ɵɵelementEnd()();
20572
- i0.ɵɵelementStart(38, "tr", 6)(39, "th", 7);
20573
- i0.ɵɵtext(40);
20574
- i0.ɵɵpipe(41, "rpxTranslate");
20618
+ i0.ɵɵelementStart(39, "tr", 6)(40, "th", 7);
20619
+ i0.ɵɵtext(41);
20620
+ i0.ɵɵpipe(42, "rpxTranslate");
20575
20621
  i0.ɵɵelementEnd();
20576
- i0.ɵɵelementStart(42, "td", 8);
20577
- i0.ɵɵtext(43);
20578
- i0.ɵɵpipe(44, "rpxTranslate");
20622
+ i0.ɵɵelementStart(43, "td", 8);
20623
+ i0.ɵɵtext(44);
20624
+ i0.ɵɵpipe(45, "rpxTranslate");
20579
20625
  i0.ɵɵelementEnd()();
20580
- i0.ɵɵtemplate(45, QueryDetailsComponent_ng_container_0_tr_45_Template, 7, 7, "tr", 9);
20581
- i0.ɵɵelementStart(46, "tr", 6)(47, "th", 7);
20582
- i0.ɵɵtext(48);
20583
- i0.ɵɵpipe(49, "rpxTranslate");
20626
+ i0.ɵɵtemplate(46, QueryDetailsComponent_ng_container_0_tr_46_Template, 7, 7, "tr", 9);
20627
+ i0.ɵɵelementStart(47, "tr", 6)(48, "th", 7);
20628
+ i0.ɵɵtext(49);
20629
+ i0.ɵɵpipe(50, "rpxTranslate");
20584
20630
  i0.ɵɵelementEnd();
20585
- i0.ɵɵelementStart(50, "td", 8);
20586
- i0.ɵɵtemplate(51, QueryDetailsComponent_ng_container_0_ccd_query_attachments_read_51_Template, 1, 1, "ccd-query-attachments-read", 10);
20631
+ i0.ɵɵelementStart(51, "td", 8);
20632
+ i0.ɵɵtemplate(52, QueryDetailsComponent_ng_container_0_ccd_query_attachments_read_52_Template, 1, 1, "ccd-query-attachments-read", 10);
20587
20633
  i0.ɵɵelementEnd()()()()();
20588
- i0.ɵɵtemplate(52, QueryDetailsComponent_ng_container_0_ng_container_52_Template, 2, 1, "ng-container", 1);
20634
+ i0.ɵɵtemplate(53, QueryDetailsComponent_ng_container_0_ng_container_53_Template, 2, 1, "ng-container", 1);
20589
20635
  i0.ɵɵelementContainerEnd();
20590
20636
  } if (rf & 2) {
20591
20637
  const ctx_r1 = i0.ɵɵnextContext();
20638
+ i0.ɵɵadvance(4);
20639
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 21, "Back to query list"));
20592
20640
  i0.ɵɵadvance(3);
20593
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 21, "Back to query list"));
20594
- i0.ɵɵadvance(3);
20595
- i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(7, 23, "Details of the query"));
20641
+ i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(8, 23, "Details of the query"));
20596
20642
  i0.ɵɵadvance(4);
20597
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 25, "Query details"));
20643
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 25, "Query details"));
20598
20644
  i0.ɵɵadvance(5);
20599
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 27, "Last submitted by"));
20645
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(17, 27, "Last submitted by"));
20600
20646
  i0.ɵɵadvance(3);
20601
20647
  i0.ɵɵtextInterpolate(ctx_r1.query.lastSubmittedBy);
20602
20648
  i0.ɵɵadvance(3);
20603
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(22, 29, "Submission date"));
20649
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 29, "Submission date"));
20604
20650
  i0.ɵɵadvance(3);
20605
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(25, 31, ctx_r1.query.createdOn, "dd MMM yyyy"));
20651
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(26, 31, ctx_r1.query.createdOn, "dd MMM yyyy"));
20606
20652
  i0.ɵɵadvance(4);
20607
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(29, 34, "Query subject"));
20653
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(30, 34, "Query subject"));
20608
20654
  i0.ɵɵadvance(3);
20609
20655
  i0.ɵɵtextInterpolate(ctx_r1.query.subject);
20610
20656
  i0.ɵɵadvance(3);
20611
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(35, 36, "Query body"));
20657
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(36, 36, "Query body"));
20612
20658
  i0.ɵɵadvance(3);
20613
20659
  i0.ɵɵtextInterpolate(ctx_r1.query.body);
20614
20660
  i0.ɵɵadvance(2);
20615
20661
  i0.ɵɵclassProp("govuk-table__header--no-border", ctx_r1.query.isHearingRelated);
20616
20662
  i0.ɵɵadvance();
20617
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(41, 38, "Is the query hearing related?"), " ");
20663
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(42, 38, "Is the query hearing related?"), " ");
20618
20664
  i0.ɵɵadvance(2);
20619
20665
  i0.ɵɵclassProp("govuk-table__cell--no-border", ctx_r1.query.isHearingRelated);
20620
20666
  i0.ɵɵadvance();
20621
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(44, 40, "Is the query hearing related?", null, ctx_r1.query.isHearingRelated ? "Yes" : "No"), "");
20667
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(45, 40, "Is the query hearing related?", null, ctx_r1.query.isHearingRelated ? "Yes" : "No"), "");
20622
20668
  i0.ɵɵadvance(2);
20623
20669
  i0.ɵɵproperty("ngIf", ctx_r1.query.isHearingRelated);
20624
20670
  i0.ɵɵadvance(3);
20625
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(49, 44, "Attachments"));
20671
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(50, 44, "Attachments"));
20626
20672
  i0.ɵɵadvance(3);
20627
20673
  i0.ɵɵproperty("ngIf", ctx_r1.query.attachments);
20628
20674
  i0.ɵɵadvance();
@@ -20647,14 +20693,14 @@ class QueryDetailsComponent {
20647
20693
  }
20648
20694
  static ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService)); };
20649
20695
  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"], [3, "attachments", 4, "ngIf"], [1, "govuk-table__row", "govuk-table__row--isHearingRelated"], [3, "attachments"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["class", "govuk-table__row", 4, "ngIf"], [1, "query_details_caption"]], template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
20650
- i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 53, 46, "ng-container", 1);
20696
+ i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 54, 46, "ng-container", 1);
20651
20697
  } if (rf & 2) {
20652
20698
  i0.ɵɵproperty("ngIf", ctx.query);
20653
20699
  } }, styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
20654
20700
  }
20655
20701
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
20656
20702
  type: Component,
20657
- args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\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 ? 'Yes' : 'No') }}</td>\n </tr>\n <tr class=\"govuk-table__row govuk-table__row--isHearingRelated\" *ngIf=\"query.isHearingRelated\">\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\">\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\">\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\">\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"] }]
20703
+ 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 ? 'Yes' : 'No') }}</td>\n </tr>\n <tr class=\"govuk-table__row govuk-table__row--isHearingRelated\" *ngIf=\"query.isHearingRelated\">\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\">\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\">\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\">\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"] }]
20658
20704
  }], () => [{ type: SessionStorageService }], { query: [{
20659
20705
  type: Input
20660
20706
  }], backClicked: [{
@@ -20973,7 +21019,7 @@ class QueryWriteDateInputComponent {
20973
21019
  useExisting: forwardRef(() => QueryWriteDateInputComponent),
20974
21020
  multi: true
20975
21021
  }
20976
- ])], decls: 19, vars: 24, consts: [[1, "govuk-date-input", 3, "id"], [1, "govuk-date-input__item"], [1, "govuk-form-group"], [1, "govuk-label", "govuk-date-input__label", 3, "for"], ["type", "text", "inputmode", "numeric", 1, "govuk-input", "govuk-date-input__input", "govuk-input--width-2", 3, "ngModelChange", "input", "id", "name", "ngModel", "disabled"], ["id", "formControlName + '-year'", "type", "text", "inputmode", "numeric", 1, "govuk-input", "govuk-date-input__input", "govuk-input--width-4", 3, "ngModelChange", "input", "name", "ngModel", "disabled"]], template: function QueryWriteDateInputComponent_Template(rf, ctx) { if (rf & 1) {
21022
+ ])], decls: 19, vars: 24, consts: [[1, "govuk-date-input", 3, "id"], [1, "govuk-date-input__item"], [1, "govuk-form-group"], [1, "govuk-label", "govuk-date-input__label", 3, "for"], ["type", "text", "inputmode", "numeric", "maxlength", "2", 1, "govuk-input", "govuk-date-input__input", "govuk-input--width-2", 3, "ngModelChange", "input", "id", "name", "ngModel", "disabled"], ["id", "formControlName + '-year'", "type", "text", "inputmode", "numeric", "maxlength", "4", 1, "govuk-input", "govuk-date-input__input", "govuk-input--width-4", 3, "ngModelChange", "input", "name", "ngModel", "disabled"]], template: function QueryWriteDateInputComponent_Template(rf, ctx) { if (rf & 1) {
20977
21023
  i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "label", 3);
20978
21024
  i0.ɵɵtext(4);
20979
21025
  i0.ɵɵpipe(5, "rpxTranslate");
@@ -21024,7 +21070,7 @@ class QueryWriteDateInputComponent {
21024
21070
  i0.ɵɵproperty("name", ctx.formControlName + "-year");
21025
21071
  i0.ɵɵtwoWayProperty("ngModel", ctx.year);
21026
21072
  i0.ɵɵproperty("disabled", ctx.disabled);
21027
- } }, dependencies: [i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgModel, i1.RpxTranslatePipe], encapsulation: 2 });
21073
+ } }, dependencies: [i4.DefaultValueAccessor, i4.NgControlStatus, i4.MaxLengthValidator, i4.NgModel, i1.RpxTranslatePipe], encapsulation: 2 });
21028
21074
  }
21029
21075
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteDateInputComponent, [{
21030
21076
  type: Component,
@@ -21034,7 +21080,7 @@ class QueryWriteDateInputComponent {
21034
21080
  useExisting: forwardRef(() => QueryWriteDateInputComponent),
21035
21081
  multi: true
21036
21082
  }
21037
- ], template: "<div class=\"govuk-date-input\" [id]=\"formControlName\">\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-date-input__label\" [for]=\"formControlName + '-day'\">\n {{ 'Day' | rpxTranslate }}\n </label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-2\" [id]=\"formControlName + '-day'\"\n [name]=\"formControlName + '-day'\" type=\"text\" inputmode=\"numeric\"\n [(ngModel)]=\"day\" (input)=\"updateDate()\" [disabled]=\"disabled\">\n </div>\n </div>\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-date-input__label\" [for]=\"formControlName + '-month'\">\n {{ 'Month' | rpxTranslate }}\n </label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-2\" [id]=\"formControlName + '-month'\"\n [name]=\"formControlName + '-month'\" type=\"text\" inputmode=\"numeric\"\n [(ngModel)]=\"month\" (input)=\"updateDate()\" [disabled]=\"disabled\">\n </div>\n </div>\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-date-input__label\" [for]=\"formControlName + '-year'\">\n {{ 'Year' | rpxTranslate }}\n </label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-4\" id=\"formControlName + '-year'\"\n [name]=\"formControlName + '-year'\" type=\"text\" inputmode=\"numeric\"\n [(ngModel)]=\"year\" (input)=\"updateDate()\" [disabled]=\"disabled\">\n </div>\n </div>\n</div>\n" }]
21083
+ ], template: "<div class=\"govuk-date-input\" [id]=\"formControlName\">\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-date-input__label\" [for]=\"formControlName + '-day'\">\n {{ 'Day' | rpxTranslate }}\n </label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-2\" [id]=\"formControlName + '-day'\"\n [name]=\"formControlName + '-day'\" type=\"text\" inputmode=\"numeric\" maxlength=\"2\"\n [(ngModel)]=\"day\" (input)=\"updateDate()\" [disabled]=\"disabled\">\n </div>\n </div>\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-date-input__label\" [for]=\"formControlName + '-month'\">\n {{ 'Month' | rpxTranslate }}\n </label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-2\" [id]=\"formControlName + '-month'\"\n [name]=\"formControlName + '-month'\" type=\"text\" inputmode=\"numeric\" maxlength=\"2\"\n [(ngModel)]=\"month\" (input)=\"updateDate()\" [disabled]=\"disabled\">\n </div>\n </div>\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-date-input__label\" [for]=\"formControlName + '-year'\">\n {{ 'Year' | rpxTranslate }}\n </label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-4\" id=\"formControlName + '-year'\"\n [name]=\"formControlName + '-year'\" type=\"text\" inputmode=\"numeric\" maxlength=\"4\"\n [(ngModel)]=\"year\" (input)=\"updateDate()\" [disabled]=\"disabled\">\n </div>\n </div>\n</div>\n" }]
21038
21084
  }], null, { formControlName: [{
21039
21085
  type: Input
21040
21086
  }] }); })();
@@ -21464,6 +21510,7 @@ class QueryConfirmationComponent {
21464
21510
  (() => { (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 }); })();
21465
21511
 
21466
21512
  const _c0$B = (a0, a1) => ["/query-management", "query", a0, "4", a1];
21513
+ const _c1$e = (a0, a1) => ["/query-management", "query", a0, "3", a1];
21467
21514
  function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
21468
21515
  const _r1 = i0.ɵɵgetCurrentView();
21469
21516
  i0.ɵɵelementStart(0, "div", 5)(1, "ccd-query-list", 6);
@@ -21492,7 +21539,7 @@ function ReadQueryManagementFieldComponent_ng_container_0_Template(rf, ctx) { if
21492
21539
  i0.ɵɵadvance();
21493
21540
  i0.ɵɵproperty("ngForOf", ctx_r1.caseQueriesCollections);
21494
21541
  } }
21495
- function ReadQueryManagementFieldComponent_ng_template_1_ng_container_6_Template(rf, ctx) { if (rf & 1) {
21542
+ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
21496
21543
  i0.ɵɵelementContainerStart(0);
21497
21544
  i0.ɵɵelementStart(1, "button", 9);
21498
21545
  i0.ɵɵtext(2);
@@ -21500,13 +21547,13 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_6_Template
21500
21547
  i0.ɵɵelementEnd();
21501
21548
  i0.ɵɵelementContainerEnd();
21502
21549
  } if (rf & 2) {
21503
- const ctx_r1 = i0.ɵɵnextContext(2);
21550
+ const ctx_r1 = i0.ɵɵnextContext(3);
21504
21551
  i0.ɵɵadvance();
21505
21552
  i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$B, ctx_r1.caseId, ctx_r1.query.id));
21506
21553
  i0.ɵɵadvance();
21507
21554
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
21508
21555
  } }
21509
- function ReadQueryManagementFieldComponent_ng_template_1_ng_template_7_Template(rf, ctx) { if (rf & 1) {
21556
+ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
21510
21557
  i0.ɵɵelementStart(0, "div")(1, "p", 10);
21511
21558
  i0.ɵɵtext(2);
21512
21559
  i0.ɵɵpipe(3, "rpxTranslate");
@@ -21521,37 +21568,55 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_template_7_Template(
21521
21568
  i0.ɵɵadvance(3);
21522
21569
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, "Our team will read your query and will respond. Do not submit the same query more than once."));
21523
21570
  } }
21571
+ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
21572
+ i0.ɵɵelementContainerStart(0);
21573
+ i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_container_1_Template, 4, 7, "ng-container", 2)(2, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_template_2_Template, 7, 6, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
21574
+ i0.ɵɵelementContainerEnd();
21575
+ } if (rf & 2) {
21576
+ const queryIsInReview_r5 = i0.ɵɵreference(3);
21577
+ const ctx_r1 = i0.ɵɵnextContext(2);
21578
+ i0.ɵɵadvance();
21579
+ 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);
21580
+ } }
21581
+ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
21582
+ i0.ɵɵelementContainerStart(0);
21583
+ i0.ɵɵelementStart(1, "button", 9);
21584
+ i0.ɵɵtext(2);
21585
+ i0.ɵɵpipe(3, "rpxTranslate");
21586
+ i0.ɵɵelementEnd();
21587
+ i0.ɵɵelementContainerEnd();
21588
+ } if (rf & 2) {
21589
+ const ctx_r1 = i0.ɵɵnextContext(2);
21590
+ i0.ɵɵadvance();
21591
+ i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c1$e, ctx_r1.caseId, ctx_r1.query.id));
21592
+ i0.ɵɵadvance();
21593
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Response to a query"), " ");
21594
+ } }
21524
21595
  function ReadQueryManagementFieldComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
21525
21596
  const _r4 = i0.ɵɵgetCurrentView();
21526
- i0.ɵɵelement(0, "br");
21527
- i0.ɵɵelementStart(1, "p")(2, "a", 7);
21528
- i0.ɵɵlistener("click", function ReadQueryManagementFieldComponent_ng_template_1_Template_a_click_2_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.backToQueryListPage()); });
21529
- i0.ɵɵtext(3);
21530
- i0.ɵɵpipe(4, "rpxTranslate");
21531
- i0.ɵɵelementEnd()();
21532
- i0.ɵɵelementStart(5, "ccd-query-details", 8);
21533
- i0.ɵɵlistener("backClicked", function ReadQueryManagementFieldComponent_ng_template_1_Template_ccd_query_details_backClicked_5_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.showQueryList = true); });
21597
+ i0.ɵɵelementStart(0, "ccd-query-details", 7);
21598
+ 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); });
21534
21599
  i0.ɵɵelementEnd();
21535
- i0.ɵɵtemplate(6, ReadQueryManagementFieldComponent_ng_template_1_ng_container_6_Template, 4, 7, "ng-container", 2)(7, ReadQueryManagementFieldComponent_ng_template_1_ng_template_7_Template, 7, 6, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
21600
+ 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);
21536
21601
  } if (rf & 2) {
21537
- const queryIsInReview_r5 = i0.ɵɵreference(8);
21538
21602
  const ctx_r1 = i0.ɵɵnextContext();
21539
- i0.ɵɵadvance(3);
21540
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 5, "Back to queries"));
21541
- i0.ɵɵadvance(2);
21542
21603
  i0.ɵɵproperty("query", ctx_r1.query)("caseId", ctx_r1.caseId);
21543
21604
  i0.ɵɵadvance();
21544
- i0.ɵɵproperty("ngIf", (ctx_r1.query == null ? null : ctx_r1.query.children == null ? null : ctx_r1.query.children.length) > 0)("ngIfElse", queryIsInReview_r5);
21605
+ i0.ɵɵproperty("ngIf", !ctx_r1.isCaseworker());
21606
+ i0.ɵɵadvance();
21607
+ 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);
21545
21608
  } }
21546
21609
  class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
21547
21610
  route;
21611
+ sessionStorageService;
21548
21612
  caseQueriesCollections;
21549
21613
  query;
21550
21614
  showQueryList = true;
21551
21615
  caseId;
21552
- constructor(route) {
21616
+ constructor(route, sessionStorageService) {
21553
21617
  super();
21554
21618
  this.route = route;
21619
+ this.sessionStorageService = sessionStorageService;
21555
21620
  }
21556
21621
  ngOnInit() {
21557
21622
  this.caseId = this.route.snapshot.params.cid;
@@ -21583,9 +21648,15 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
21583
21648
  this.showQueryList = true;
21584
21649
  this.query = null;
21585
21650
  }
21586
- static ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
21587
- 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"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [3, "backClicked", "query", "caseId"], ["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) {
21588
- i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 2, 1, "ng-container", 2)(1, ReadQueryManagementFieldComponent_ng_template_1_Template, 9, 7, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
21651
+ isCaseworker() {
21652
+ const userDetails = JSON.parse(this.sessionStorageService?.getItem('userDetails'));
21653
+ return userDetails && userDetails.roles
21654
+ && !(userDetails.roles.includes('pui-case-manager')
21655
+ || userDetails.roles.some((role) => role.toLowerCase().includes('judge')));
21656
+ }
21657
+ static ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(SessionStorageService)); };
21658
+ 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) {
21659
+ 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);
21589
21660
  } if (rf & 2) {
21590
21661
  const singleQueryDetails_r6 = i0.ɵɵreference(2);
21591
21662
  i0.ɵɵproperty("ngIf", ctx.showQueryList)("ngIfElse", singleQueryDetails_r6);
@@ -21593,9 +21664,9 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
21593
21664
  }
21594
21665
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
21595
21666
  type: Component,
21596
- 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 <br>\n <p>\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"backToQueryListPage()\">{{ 'Back to queries' | rpxTranslate }}</a>\n </p>\n\n <ccd-query-details\n [query]=\"query\"\n (backClicked)=\"showQueryList = true\"\n [caseId]=\"caseId\"\n ></ccd-query-details>\n <ng-container *ngIf=\"query?.children?.length > 0; 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 >\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-template>\n" }]
21597
- }], () => [{ type: i1$1.ActivatedRoute }], null); })();
21598
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber: 12 }); })();
21667
+ 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 {{ 'Response to a query' | rpxTranslate }}\n </button>\n </ng-container>\n</ng-template>\n" }]
21668
+ }], () => [{ type: i1$1.ActivatedRoute }, { type: SessionStorageService }], null); })();
21669
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber: 13 }); })();
21599
21670
 
21600
21671
  class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
21601
21672
  static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextAreaFieldComponent_BaseFactory; return function ReadTextAreaFieldComponent_Factory(t) { return (ɵReadTextAreaFieldComponent_BaseFactory || (ɵReadTextAreaFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextAreaFieldComponent)))(t || ReadTextAreaFieldComponent); }; })();
@@ -22837,10 +22908,11 @@ function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, c
22837
22908
  i0.ɵɵelement(6, "br");
22838
22909
  i0.ɵɵelementStart(7, "span", 17);
22839
22910
  i0.ɵɵtext(8);
22840
- i0.ɵɵpipe(9, "date");
22911
+ i0.ɵɵpipe(9, "ccdDate");
22912
+ i0.ɵɵpipe(10, "date");
22841
22913
  i0.ɵɵelementEnd()();
22842
- i0.ɵɵelementStart(10, "div", 18)(11, "ccd-case-file-view-folder-document-actions", 19);
22843
- i0.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_11_listener() { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.triggerDocumentAction("changeFolder", node_r2)); })("openInANewTabAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_openInANewTabAction_11_listener() { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.triggerDocumentAction("openInANewTab", node_r2)); })("downloadAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_downloadAction_11_listener() { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.triggerDocumentAction("download", node_r2)); })("printAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_printAction_11_listener() { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.triggerDocumentAction("print", node_r2)); });
22914
+ i0.ɵɵelementStart(11, "div", 18)(12, "ccd-case-file-view-folder-document-actions", 19);
22915
+ i0.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_12_listener() { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.triggerDocumentAction("changeFolder", node_r2)); })("openInANewTabAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_openInANewTabAction_12_listener() { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.triggerDocumentAction("openInANewTab", node_r2)); })("downloadAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_downloadAction_12_listener() { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.triggerDocumentAction("download", node_r2)); })("printAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_printAction_12_listener() { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.triggerDocumentAction("print", node_r2)); });
22844
22916
  i0.ɵɵelementEnd()()()();
22845
22917
  } if (rf & 2) {
22846
22918
  const node_r2 = ctx.$implicit;
@@ -22850,8 +22922,8 @@ function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, c
22850
22922
  i0.ɵɵadvance(4);
22851
22923
  i0.ɵɵtextInterpolate1(" ", node_r2.name, " ");
22852
22924
  i0.ɵɵadvance(3);
22853
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(9, 5, node_r2.upload_timestamp, "dd MMM YYYY HH:mm"));
22854
- i0.ɵɵadvance(3);
22925
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(10, 8, i0.ɵɵpipeBind2(9, 5, node_r2.upload_timestamp, "local"), "dd MMM YYYY HH:mm"));
22926
+ i0.ɵɵadvance(4);
22855
22927
  i0.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
22856
22928
  } }
22857
22929
  function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template(rf, ctx) { if (rf & 1) {
@@ -22884,7 +22956,7 @@ function CaseFileViewFolderComponent_div_8_Template(rf, ctx) { if (rf & 1) {
22884
22956
  i0.ɵɵelementStart(0, "div", 7);
22885
22957
  i0.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
22886
22958
  i0.ɵɵelementStart(2, "div")(3, "cdk-tree", 9);
22887
- i0.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 12, 8, "cdk-nested-tree-node", 10)(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
22959
+ i0.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 13, 11, "cdk-nested-tree-node", 10)(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
22888
22960
  i0.ɵɵelementEnd()()();
22889
22961
  } if (rf & 2) {
22890
22962
  const ctx_r2 = i0.ɵɵnextContext();
@@ -22991,7 +23063,7 @@ class CaseFileViewFolderComponent {
22991
23063
  documentTreeNode.document_binary_url = document.document_binary_url;
22992
23064
  documentTreeNode.attribute_path = document.attribute_path;
22993
23065
  documentTreeNode.upload_timestamp = this.appConfig.getEnableCaseFileViewVersion1_1()
22994
- && document.upload_timestamp ? moment$1(document.upload_timestamp).format('DD MMM YYYY HH:mm:ss') : '';
23066
+ && document.upload_timestamp ? document.upload_timestamp.toString() : '';
22995
23067
  documentsToReturn.push(documentTreeNode);
22996
23068
  });
22997
23069
  return documentsToReturn;
@@ -23006,7 +23078,7 @@ class CaseFileViewFolderComponent {
23006
23078
  documentTreeNode.document_binary_url = document.document_binary_url;
23007
23079
  documentTreeNode.attribute_path = document.attribute_path;
23008
23080
  documentTreeNode.upload_timestamp = this.appConfig.getEnableCaseFileViewVersion1_1()
23009
- && document.upload_timestamp ? moment$1(document.upload_timestamp).format('DD MMM YYYY HH:mm:ss') : '';
23081
+ && document.upload_timestamp ? document.upload_timestamp.toString() : '';
23010
23082
  documents.push(documentTreeNode);
23011
23083
  });
23012
23084
  const uncategorisedNode = new DocumentTreeNode();
@@ -23140,11 +23212,11 @@ class CaseFileViewFolderComponent {
23140
23212
  i0.ɵɵtextInterpolate1("Documents (", ctx.documentCount, ")");
23141
23213
  i0.ɵɵadvance(3);
23142
23214
  i0.ɵɵproperty("ngIf", ctx.documentTreeData);
23143
- } }, dependencies: [i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i7.CdkNestedTreeNode, i7.CdkTreeNodeDef, i7.CdkTreeNodeToggle, i7.CdkTree, i7.CdkTreeNodeOutlet, CaseFileViewFolderSortComponent, CaseFileViewFolderDocumentActionsComponent, i5.DatePipe], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #C9C9C9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat right #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #C9C9C9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}.node__document-upload-timestamp[_ngcontent-%COMP%]{font-size:.8rem;float:left;padding-left:10px}"] });
23215
+ } }, dependencies: [i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i7.CdkNestedTreeNode, i7.CdkTreeNodeDef, i7.CdkTreeNodeToggle, i7.CdkTree, i7.CdkTreeNodeOutlet, CaseFileViewFolderSortComponent, CaseFileViewFolderDocumentActionsComponent, i5.DatePipe, DatePipe], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #C9C9C9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat right #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #C9C9C9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}.node__document-upload-timestamp[_ngcontent-%COMP%]{font-size:.8rem;float:left;padding-left:10px}"] });
23144
23216
  }
23145
23217
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
23146
23218
  type: Component,
23147
- args: [{ selector: 'ccd-case-file-view-folder', template: "<div class=\"document-filter-container\">\n <div class=\"form-group document-filter\" [formGroup]=\"documentFilterFormGroup\">\n <input class=\"form-control document-search\"\n type=\"search\"\n id=\"document-search\"\n name=\"documentSearchFormControl\"\n formControlName=\"documentSearchFormControl\"\n placeholder=\"Search by document name\"\n aria-label=\"Search by document name\">\n </div>\n</div>\n\n<div class=\"document-folders-header\">\n <div class=\"document-folders-header__title\">Documents ({{ documentCount }})</div>\n <div>\n <ccd-case-file-view-folder-sort\n (sortAscending)=\"sortDataSourceAscending($event)\"\n (sortDescending)=\"sortDataSourceDescending($event)\"\n ></ccd-case-file-view-folder-sort>\n </div>\n</div>\n\n<div class=\"document-tree-container\" *ngIf=\"documentTreeData\">\n <div *ngIf=\"!nestedDataSource || nestedDataSource.length === 0\">\n No results found\n </div>\n <div>\n <cdk-tree [dataSource]=\"nestedDataSource\" [treeControl]=\"nestedTreeControl\">\n <!-- document -->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__node--document\" *cdkTreeNodeDef=\"let node\">\n <button class=\"node\" (click)=\"selectedNodeItem = node; clickedDocument.emit(node)\"\n [class.node--selected]=\"selectedNodeItem?.name === node.name\">\n <div class=\"node__icon\" disabled>\n <img src=\"/assets/img/case-file-view/case-file-view-document.svg\" class=\"node__iconImg\" alt=\"Document icon\">\n </div>\n <span class=\"node__name node-name-document\">\n {{node.name}}\n <br>\n <span class=\"node__document-upload-timestamp\">{{node.upload_timestamp | date:\"dd MMM YYYY HH:mm\"}}</span>\n </span>\n <div class=\"node__document-options\">\n <ccd-case-file-view-folder-document-actions\n (changeFolderAction)=\"triggerDocumentAction('changeFolder', node)\"\n (openInANewTabAction)=\"triggerDocumentAction('openInANewTab', node)\"\n (downloadAction)=\"triggerDocumentAction('download', node)\"\n (printAction)=\"triggerDocumentAction('print', node)\"\n [allowMoving]=\"allowMoving\"\n >\n </ccd-case-file-view-folder-document-actions>\n </div>\n </button>\n </cdk-nested-tree-node>\n <!-- folder-->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__folder\" *cdkTreeNodeDef=\"let node; when: nestedChildren\">\n <button class=\"node\" cdkTreeNodeToggle>\n <div class=\"node__icon\" [attr.aria-label]=\"'toggle ' + node.name\" >\n <img class=\"node__iconImg\"\n [src]=\"nestedTreeControl.isExpanded(node) ? '/assets/images/folder-open.png' : '/assets/images/folder.png'\" alt=\"Folder icon\">\n <span class=\"node__count\">{{node.childDocumentCount}}</span>\n </div>\n <span class=\"node__name node__name--folder\">{{node.name}}</span>\n </button>\n\n <div [class.document-tree-invisible]=\"!nestedTreeControl.isExpanded(node)\">\n <ng-container cdkTreeNodeOutlet></ng-container>\n </div>\n </cdk-nested-tree-node>\n </cdk-tree>\n </div>\n</div>\n", styles: [":host{display:flex;height:100%;flex-direction:column}:host .document-tree-container{flex:1 0}.document-filter-container{border-bottom:2px solid #C9C9C9}.document-filter-container .document-filter{padding:10px}.document-filter-container .document-filter .document-search{background:url(/assets/images/icon-search-black.svg) no-repeat right #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container .documents-title{height:30%;margin-left:8px;font-weight:700}.document-tree-container{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node{display:block}.document-tree-container__node .document-tree-container__node{padding-left:40px}.document-tree-container .document-tree-invisible{display:none}.document-tree-container::-webkit-scrollbar{width:7px}.document-tree-container::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container::-webkit-scrollbar-button{display:none}.document-tree-container::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #C9C9C9;padding:10px}.document-folders-header__title{font-weight:700}.node{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected{background:#fff2cc}.node__icon{position:relative;display:inline-block}.node__count{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg{display:block;height:30px;width:30px}.node__name{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options{margin-left:auto;margin-right:0}.node__document-upload-timestamp{font-size:.8rem;float:left;padding-left:10px}\n"] }]
23219
+ args: [{ selector: 'ccd-case-file-view-folder', template: "<div class=\"document-filter-container\">\n <div class=\"form-group document-filter\" [formGroup]=\"documentFilterFormGroup\">\n <input class=\"form-control document-search\"\n type=\"search\"\n id=\"document-search\"\n name=\"documentSearchFormControl\"\n formControlName=\"documentSearchFormControl\"\n placeholder=\"Search by document name\"\n aria-label=\"Search by document name\">\n </div>\n</div>\n\n<div class=\"document-folders-header\">\n <div class=\"document-folders-header__title\">Documents ({{ documentCount }})</div>\n <div>\n <ccd-case-file-view-folder-sort\n (sortAscending)=\"sortDataSourceAscending($event)\"\n (sortDescending)=\"sortDataSourceDescending($event)\"\n ></ccd-case-file-view-folder-sort>\n </div>\n</div>\n\n<div class=\"document-tree-container\" *ngIf=\"documentTreeData\">\n <div *ngIf=\"!nestedDataSource || nestedDataSource.length === 0\">\n No results found\n </div>\n <div>\n <cdk-tree [dataSource]=\"nestedDataSource\" [treeControl]=\"nestedTreeControl\">\n <!-- document -->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__node--document\" *cdkTreeNodeDef=\"let node\">\n <button class=\"node\" (click)=\"selectedNodeItem = node; clickedDocument.emit(node)\"\n [class.node--selected]=\"selectedNodeItem?.name === node.name\">\n <div class=\"node__icon\" disabled>\n <img src=\"/assets/img/case-file-view/case-file-view-document.svg\" class=\"node__iconImg\" alt=\"Document icon\">\n </div>\n <span class=\"node__name node-name-document\">\n {{node.name}}\n <br>\n <span class=\"node__document-upload-timestamp\">{{node.upload_timestamp | ccdDate : 'local' | date:\"dd MMM YYYY HH:mm\"}}</span>\n </span>\n <div class=\"node__document-options\">\n <ccd-case-file-view-folder-document-actions\n (changeFolderAction)=\"triggerDocumentAction('changeFolder', node)\"\n (openInANewTabAction)=\"triggerDocumentAction('openInANewTab', node)\"\n (downloadAction)=\"triggerDocumentAction('download', node)\"\n (printAction)=\"triggerDocumentAction('print', node)\"\n [allowMoving]=\"allowMoving\"\n >\n </ccd-case-file-view-folder-document-actions>\n </div>\n </button>\n </cdk-nested-tree-node>\n <!-- folder-->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__folder\" *cdkTreeNodeDef=\"let node; when: nestedChildren\">\n <button class=\"node\" cdkTreeNodeToggle>\n <div class=\"node__icon\" [attr.aria-label]=\"'toggle ' + node.name\" >\n <img class=\"node__iconImg\"\n [src]=\"nestedTreeControl.isExpanded(node) ? '/assets/images/folder-open.png' : '/assets/images/folder.png'\" alt=\"Folder icon\">\n <span class=\"node__count\">{{node.childDocumentCount}}</span>\n </div>\n <span class=\"node__name node__name--folder\">{{node.name}}</span>\n </button>\n\n <div [class.document-tree-invisible]=\"!nestedTreeControl.isExpanded(node)\">\n <ng-container cdkTreeNodeOutlet></ng-container>\n </div>\n </cdk-nested-tree-node>\n </cdk-tree>\n </div>\n</div>\n", styles: [":host{display:flex;height:100%;flex-direction:column}:host .document-tree-container{flex:1 0}.document-filter-container{border-bottom:2px solid #C9C9C9}.document-filter-container .document-filter{padding:10px}.document-filter-container .document-filter .document-search{background:url(/assets/images/icon-search-black.svg) no-repeat right #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container .documents-title{height:30%;margin-left:8px;font-weight:700}.document-tree-container{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node{display:block}.document-tree-container__node .document-tree-container__node{padding-left:40px}.document-tree-container .document-tree-invisible{display:none}.document-tree-container::-webkit-scrollbar{width:7px}.document-tree-container::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container::-webkit-scrollbar-button{display:none}.document-tree-container::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #C9C9C9;padding:10px}.document-folders-header__title{font-weight:700}.node{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected{background:#fff2cc}.node__icon{position:relative;display:inline-block}.node__count{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg{display:block;height:30px;width:30px}.node__name{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options{margin-left:auto;margin-right:0}.node__document-upload-timestamp{font-size:.8rem;float:left;padding-left:10px}\n"] }]
23148
23220
  }], () => [{ type: WindowService }, { type: i1$1.Router }, { type: DocumentManagementService }, { type: i1$3.MatLegacyDialog }, { type: AbstractAppConfig }], { categoriesAndDocuments: [{
23149
23221
  type: Input
23150
23222
  }], allowMoving: [{
@@ -23154,7 +23226,7 @@ class CaseFileViewFolderComponent {
23154
23226
  }], moveDocument: [{
23155
23227
  type: Output
23156
23228
  }] }); })();
23157
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFolderComponent, { className: "CaseFileViewFolderComponent", filePath: "lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.ts", lineNumber: 28 }); })();
23229
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFolderComponent, { className: "CaseFileViewFolderComponent", filePath: "lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.ts", lineNumber: 27 }); })();
23158
23230
 
23159
23231
  const _c0$s = a0 => ({ "form-group-error": a0 });
23160
23232
  function AddCommentsComponent_span_7_Template(rf, ctx) { if (rf & 1) {