@hmcts/ccd-case-ui-toolkit 7.2.8-caseworker-name → 7.2.8-invalid-message

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.
@@ -20901,18 +20901,7 @@ class QueryListItem {
20901
20901
  return getLastSubmittedMessage(this);
20902
20902
  }
20903
20903
  get lastSubmittedBy() {
20904
- const childrenCount = this.children.length;
20905
- if (childrenCount === 0) {
20906
- return this.lastSubmittedMessage.name;
20907
- }
20908
- let index;
20909
- if (childrenCount === 1) {
20910
- index = 0;
20911
- }
20912
- else {
20913
- index = childrenCount % 2 === 1 ? childrenCount - 1 : childrenCount - 2;
20914
- }
20915
- return this.children[index].name;
20904
+ return this.lastSubmittedMessage.name;
20916
20905
  }
20917
20906
  get lastSubmittedDate() {
20918
20907
  const childrenCount = this.children.length;
@@ -21684,21 +21673,10 @@ class QueryCheckYourAnswersComponent {
21684
21673
  }] }); })();
21685
21674
  (() => { (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: 28 }); })();
21686
21675
 
21687
- function QueryDetailsComponent_ng_container_0_cut_alert_1_Template(rf, ctx) { if (rf & 1) {
21688
- i0.ɵɵelementStart(0, "cut-alert", 11);
21689
- i0.ɵɵelementContainerStart(1);
21690
- i0.ɵɵtext(2);
21691
- i0.ɵɵelementContainerEnd();
21692
- i0.ɵɵelementEnd();
21693
- } if (rf & 2) {
21694
- const ctx_r0 = i0.ɵɵnextContext(2);
21695
- i0.ɵɵadvance(2);
21696
- i0.ɵɵtextInterpolate(ctx_r0.message);
21697
- } }
21698
- function QueryDetailsComponent_ng_container_0_p_3_Template(rf, ctx) { if (rf & 1) {
21699
- const _r2 = i0.ɵɵgetCurrentView();
21700
- i0.ɵɵelementStart(0, "p")(1, "a", 12);
21701
- i0.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_p_3_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onBack()); });
21676
+ function QueryDetailsComponent_ng_container_0_p_1_Template(rf, ctx) { if (rf & 1) {
21677
+ const _r1 = i0.ɵɵgetCurrentView();
21678
+ i0.ɵɵelementStart(0, "p")(1, "a", 10);
21679
+ i0.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_p_1_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onBack()); });
21702
21680
  i0.ɵɵtext(2);
21703
21681
  i0.ɵɵpipe(3, "rpxTranslate");
21704
21682
  i0.ɵɵelementEnd()();
@@ -21706,49 +21684,49 @@ function QueryDetailsComponent_ng_container_0_p_3_Template(rf, ctx) { if (rf & 1
21706
21684
  i0.ɵɵadvance(2);
21707
21685
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Back to query list"));
21708
21686
  } }
21709
- function QueryDetailsComponent_ng_container_0_tr_44_Template(rf, ctx) { if (rf & 1) {
21710
- i0.ɵɵelementStart(0, "tr", 13)(1, "th", 7);
21687
+ function QueryDetailsComponent_ng_container_0_tr_42_Template(rf, ctx) { if (rf & 1) {
21688
+ i0.ɵɵelementStart(0, "tr", 11)(1, "th", 6);
21711
21689
  i0.ɵɵtext(2);
21712
21690
  i0.ɵɵpipe(3, "rpxTranslate");
21713
21691
  i0.ɵɵelementEnd();
21714
- i0.ɵɵelementStart(4, "td", 8);
21692
+ i0.ɵɵelementStart(4, "td", 7);
21715
21693
  i0.ɵɵtext(5);
21716
21694
  i0.ɵɵpipe(6, "date");
21717
21695
  i0.ɵɵelementEnd()();
21718
21696
  } if (rf & 2) {
21719
- const ctx_r0 = i0.ɵɵnextContext(2);
21697
+ const ctx_r1 = i0.ɵɵnextContext(2);
21720
21698
  i0.ɵɵadvance(2);
21721
21699
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "What is the date of the hearing?"));
21722
21700
  i0.ɵɵadvance(3);
21723
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 4, ctx_r0.query.hearingDate, "dd MMM yyyy"));
21701
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 4, ctx_r1.query.hearingDate, "dd MMM yyyy"));
21724
21702
  } }
21725
- function QueryDetailsComponent_ng_container_0_tr_45_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
21726
- i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
21703
+ function QueryDetailsComponent_ng_container_0_tr_43_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
21704
+ i0.ɵɵelement(0, "ccd-query-attachments-read", 13);
21727
21705
  } if (rf & 2) {
21728
- const ctx_r0 = i0.ɵɵnextContext(3);
21729
- i0.ɵɵproperty("attachments", ctx_r0.query.attachments);
21706
+ const ctx_r1 = i0.ɵɵnextContext(3);
21707
+ i0.ɵɵproperty("attachments", ctx_r1.query.attachments);
21730
21708
  } }
21731
- function QueryDetailsComponent_ng_container_0_tr_45_Template(rf, ctx) { if (rf & 1) {
21732
- i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
21709
+ function QueryDetailsComponent_ng_container_0_tr_43_Template(rf, ctx) { if (rf & 1) {
21710
+ i0.ɵɵelementStart(0, "tr", 5)(1, "th", 6);
21733
21711
  i0.ɵɵtext(2);
21734
21712
  i0.ɵɵpipe(3, "rpxTranslate");
21735
21713
  i0.ɵɵelementEnd();
21736
- i0.ɵɵelementStart(4, "td", 8);
21737
- i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_tr_45_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 14);
21714
+ i0.ɵɵelementStart(4, "td", 7);
21715
+ i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_tr_43_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 12);
21738
21716
  i0.ɵɵelementEnd()();
21739
21717
  } if (rf & 2) {
21740
- const ctx_r0 = i0.ɵɵnextContext(2);
21718
+ const ctx_r1 = i0.ɵɵnextContext(2);
21741
21719
  i0.ɵɵadvance(2);
21742
21720
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Attachments"));
21743
21721
  i0.ɵɵadvance(3);
21744
- i0.ɵɵproperty("ngIf", ctx_r0.query.attachments);
21722
+ i0.ɵɵproperty("ngIf", ctx_r1.query.attachments);
21745
21723
  } }
21746
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_15_Template(rf, ctx) { if (rf & 1) {
21747
- i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
21724
+ function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_tr_15_Template(rf, ctx) { if (rf & 1) {
21725
+ i0.ɵɵelementStart(0, "tr", 5)(1, "th", 6);
21748
21726
  i0.ɵɵtext(2);
21749
21727
  i0.ɵɵpipe(3, "rpxTranslate");
21750
21728
  i0.ɵɵelementEnd();
21751
- i0.ɵɵelementStart(4, "td", 8);
21729
+ i0.ɵɵelementStart(4, "td", 7);
21752
21730
  i0.ɵɵtext(5);
21753
21731
  i0.ɵɵelementEnd()();
21754
21732
  } if (rf & 2) {
@@ -21758,19 +21736,19 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21758
21736
  i0.ɵɵadvance(3);
21759
21737
  i0.ɵɵtextInterpolate(child_r3.name);
21760
21738
  } }
21761
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_22_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
21762
- i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
21739
+ function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_tr_22_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
21740
+ i0.ɵɵelement(0, "ccd-query-attachments-read", 13);
21763
21741
  } if (rf & 2) {
21764
21742
  const child_r3 = i0.ɵɵnextContext(3).$implicit;
21765
21743
  i0.ɵɵproperty("attachments", child_r3.attachments);
21766
21744
  } }
21767
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_22_Template(rf, ctx) { if (rf & 1) {
21768
- i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
21745
+ function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_tr_22_Template(rf, ctx) { if (rf & 1) {
21746
+ i0.ɵɵelementStart(0, "tr", 5)(1, "th", 6);
21769
21747
  i0.ɵɵtext(2);
21770
21748
  i0.ɵɵpipe(3, "rpxTranslate");
21771
21749
  i0.ɵɵelementEnd();
21772
- i0.ɵɵelementStart(4, "td", 8);
21773
- i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_22_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 14);
21750
+ i0.ɵɵelementStart(4, "td", 7);
21751
+ i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_tr_22_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 12);
21774
21752
  i0.ɵɵelementEnd()();
21775
21753
  } if (rf & 2) {
21776
21754
  const child_r3 = i0.ɵɵnextContext(2).$implicit;
@@ -21779,36 +21757,36 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21779
21757
  i0.ɵɵadvance(3);
21780
21758
  i0.ɵɵproperty("ngIf", child_r3.attachments);
21781
21759
  } }
21782
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
21760
+ function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
21783
21761
  i0.ɵɵelementContainerStart(0);
21784
- i0.ɵɵelementStart(1, "table", 3);
21762
+ i0.ɵɵelementStart(1, "table", 2);
21785
21763
  i0.ɵɵpipe(2, "rpxTranslate");
21786
- i0.ɵɵelementStart(3, "caption", 4)(4, "div");
21764
+ i0.ɵɵelementStart(3, "caption", 3)(4, "div");
21787
21765
  i0.ɵɵtext(5);
21788
21766
  i0.ɵɵpipe(6, "rpxTranslate");
21789
21767
  i0.ɵɵelementEnd()();
21790
- i0.ɵɵelementStart(7, "tbody", 5)(8, "tr", 6)(9, "th", 7);
21768
+ i0.ɵɵelementStart(7, "tbody", 4)(8, "tr", 5)(9, "th", 6);
21791
21769
  i0.ɵɵtext(10);
21792
21770
  i0.ɵɵpipe(11, "rpxTranslate");
21793
21771
  i0.ɵɵelementEnd();
21794
- i0.ɵɵelementStart(12, "td", 8);
21772
+ i0.ɵɵelementStart(12, "td", 7);
21795
21773
  i0.ɵɵtext(13);
21796
21774
  i0.ɵɵpipe(14, "date");
21797
21775
  i0.ɵɵelementEnd()();
21798
- i0.ɵɵtemplate(15, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_15_Template, 6, 4, "tr", 10);
21799
- i0.ɵɵelementStart(16, "tr", 6)(17, "th", 7);
21776
+ i0.ɵɵtemplate(15, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_tr_15_Template, 6, 4, "tr", 9);
21777
+ i0.ɵɵelementStart(16, "tr", 5)(17, "th", 6);
21800
21778
  i0.ɵɵtext(18);
21801
21779
  i0.ɵɵpipe(19, "rpxTranslate");
21802
21780
  i0.ɵɵelementEnd();
21803
- i0.ɵɵelementStart(20, "td", 8);
21781
+ i0.ɵɵelementStart(20, "td", 7);
21804
21782
  i0.ɵɵtext(21);
21805
21783
  i0.ɵɵelementEnd()();
21806
- i0.ɵɵtemplate(22, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_22_Template, 6, 4, "tr", 10);
21784
+ i0.ɵɵtemplate(22, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_tr_22_Template, 6, 4, "tr", 9);
21807
21785
  i0.ɵɵelementEnd()();
21808
21786
  i0.ɵɵelementContainerEnd();
21809
21787
  } if (rf & 2) {
21810
21788
  const child_r3 = i0.ɵɵnextContext().$implicit;
21811
- const ctx_r0 = i0.ɵɵnextContext(3);
21789
+ const ctx_r1 = i0.ɵɵnextContext(3);
21812
21790
  i0.ɵɵadvance();
21813
21791
  i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(2, 8, "Response of the query"));
21814
21792
  i0.ɵɵadvance(4);
@@ -21818,7 +21796,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21818
21796
  i0.ɵɵadvance(3);
21819
21797
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 14, child_r3.createdOn, "dd MMMM YYYY HH:mm"));
21820
21798
  i0.ɵɵadvance(2);
21821
- i0.ɵɵproperty("ngIf", ctx_r0.isInternalUser());
21799
+ i0.ɵɵproperty("ngIf", ctx_r1.isInternalUser());
21822
21800
  i0.ɵɵadvance(3);
21823
21801
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 17, "Response detail"));
21824
21802
  i0.ɵɵadvance(3);
@@ -21826,19 +21804,19 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21826
21804
  i0.ɵɵadvance();
21827
21805
  i0.ɵɵproperty("ngIf", child_r3.attachments.length > 0);
21828
21806
  } }
21829
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_tr_26_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
21830
- i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
21807
+ function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_template_2_tr_26_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
21808
+ i0.ɵɵelement(0, "ccd-query-attachments-read", 13);
21831
21809
  } if (rf & 2) {
21832
21810
  const child_r3 = i0.ɵɵnextContext(3).$implicit;
21833
21811
  i0.ɵɵproperty("attachments", child_r3.attachments);
21834
21812
  } }
21835
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_tr_26_Template(rf, ctx) { if (rf & 1) {
21836
- i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
21813
+ function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_template_2_tr_26_Template(rf, ctx) { if (rf & 1) {
21814
+ i0.ɵɵelementStart(0, "tr", 5)(1, "th", 6);
21837
21815
  i0.ɵɵtext(2);
21838
21816
  i0.ɵɵpipe(3, "rpxTranslate");
21839
21817
  i0.ɵɵelementEnd();
21840
- i0.ɵɵelementStart(4, "td", 8);
21841
- i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_tr_26_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 14);
21818
+ i0.ɵɵelementStart(4, "td", 7);
21819
+ i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_template_2_tr_26_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 12);
21842
21820
  i0.ɵɵelementEnd()();
21843
21821
  } if (rf & 2) {
21844
21822
  const child_r3 = i0.ɵɵnextContext(2).$implicit;
@@ -21847,36 +21825,36 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21847
21825
  i0.ɵɵadvance(3);
21848
21826
  i0.ɵɵproperty("ngIf", child_r3.attachments);
21849
21827
  } }
21850
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
21851
- i0.ɵɵelementStart(0, "table", 3);
21828
+ function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
21829
+ i0.ɵɵelementStart(0, "table", 2);
21852
21830
  i0.ɵɵpipe(1, "rpxTranslate");
21853
- i0.ɵɵelementStart(2, "caption", 4)(3, "div");
21831
+ i0.ɵɵelementStart(2, "caption", 3)(3, "div");
21854
21832
  i0.ɵɵtext(4);
21855
21833
  i0.ɵɵpipe(5, "rpxTranslate");
21856
21834
  i0.ɵɵelementEnd()();
21857
- i0.ɵɵelementStart(6, "tbody", 5)(7, "tr", 6)(8, "th", 7);
21835
+ i0.ɵɵelementStart(6, "tbody", 4)(7, "tr", 5)(8, "th", 6);
21858
21836
  i0.ɵɵtext(9);
21859
21837
  i0.ɵɵpipe(10, "rpxTranslate");
21860
21838
  i0.ɵɵelementEnd();
21861
- i0.ɵɵelementStart(11, "td", 8);
21839
+ i0.ɵɵelementStart(11, "td", 7);
21862
21840
  i0.ɵɵtext(12);
21863
21841
  i0.ɵɵpipe(13, "date");
21864
21842
  i0.ɵɵelementEnd()();
21865
- i0.ɵɵelementStart(14, "tr", 6)(15, "th", 7);
21843
+ i0.ɵɵelementStart(14, "tr", 5)(15, "th", 6);
21866
21844
  i0.ɵɵtext(16);
21867
21845
  i0.ɵɵpipe(17, "rpxTranslate");
21868
21846
  i0.ɵɵelementEnd();
21869
- i0.ɵɵelementStart(18, "td", 8);
21847
+ i0.ɵɵelementStart(18, "td", 7);
21870
21848
  i0.ɵɵtext(19);
21871
21849
  i0.ɵɵelementEnd()();
21872
- i0.ɵɵelementStart(20, "tr", 6)(21, "th", 7);
21850
+ i0.ɵɵelementStart(20, "tr", 5)(21, "th", 6);
21873
21851
  i0.ɵɵtext(22);
21874
21852
  i0.ɵɵpipe(23, "rpxTranslate");
21875
21853
  i0.ɵɵelementEnd();
21876
- i0.ɵɵelementStart(24, "td", 8);
21854
+ i0.ɵɵelementStart(24, "td", 7);
21877
21855
  i0.ɵɵtext(25);
21878
21856
  i0.ɵɵelementEnd()();
21879
- i0.ɵɵtemplate(26, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_tr_26_Template, 6, 4, "tr", 10);
21857
+ i0.ɵɵtemplate(26, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_template_2_tr_26_Template, 6, 4, "tr", 9);
21880
21858
  i0.ɵɵelementEnd()();
21881
21859
  } if (rf & 2) {
21882
21860
  const child_r3 = i0.ɵɵnextContext().$implicit;
@@ -21898,9 +21876,9 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21898
21876
  i0.ɵɵadvance();
21899
21877
  i0.ɵɵproperty("ngIf", child_r3.attachments.length > 0);
21900
21878
  } }
21901
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_Template(rf, ctx) { if (rf & 1) {
21879
+ function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_Template(rf, ctx) { if (rf & 1) {
21902
21880
  i0.ɵɵelementContainerStart(0);
21903
- i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_Template, 23, 19, "ng-container", 17)(2, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_Template, 27, 22, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
21881
+ i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_Template, 23, 19, "ng-container", 15)(2, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_template_2_Template, 27, 22, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
21904
21882
  i0.ɵɵelementContainerEnd();
21905
21883
  } if (rf & 2) {
21906
21884
  const i_r4 = ctx.index;
@@ -21908,107 +21886,103 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_Tem
21908
21886
  i0.ɵɵadvance();
21909
21887
  i0.ɵɵproperty("ngIf", i_r4 % 2 === 0)("ngIfElse", followUpMessage_r5);
21910
21888
  } }
21911
- function QueryDetailsComponent_ng_container_0_ng_container_46_Template(rf, ctx) { if (rf & 1) {
21889
+ function QueryDetailsComponent_ng_container_0_ng_container_44_Template(rf, ctx) { if (rf & 1) {
21912
21890
  i0.ɵɵelementContainerStart(0);
21913
- i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_Template, 4, 2, "ng-container", 16);
21891
+ i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_Template, 4, 2, "ng-container", 14);
21914
21892
  i0.ɵɵelementContainerEnd();
21915
21893
  } if (rf & 2) {
21916
- const ctx_r0 = i0.ɵɵnextContext(2);
21894
+ const ctx_r1 = i0.ɵɵnextContext(2);
21917
21895
  i0.ɵɵadvance();
21918
- i0.ɵɵproperty("ngForOf", ctx_r0.query.children);
21896
+ i0.ɵɵproperty("ngForOf", ctx_r1.query.children);
21919
21897
  } }
21920
21898
  function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
21921
21899
  i0.ɵɵelementContainerStart(0);
21922
- i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_cut_alert_1_Template, 3, 1, "cut-alert", 2);
21923
- i0.ɵɵelement(2, "br");
21924
- i0.ɵɵtemplate(3, QueryDetailsComponent_ng_container_0_p_3_Template, 4, 3, "p", 1);
21925
- i0.ɵɵelementStart(4, "div")(5, "table", 3);
21926
- i0.ɵɵpipe(6, "rpxTranslate");
21927
- i0.ɵɵelementStart(7, "caption", 4)(8, "div");
21928
- i0.ɵɵtext(9);
21929
- i0.ɵɵpipe(10, "rpxTranslate");
21900
+ i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_p_1_Template, 4, 3, "p", 1);
21901
+ i0.ɵɵelementStart(2, "div")(3, "table", 2);
21902
+ i0.ɵɵpipe(4, "rpxTranslate");
21903
+ i0.ɵɵelementStart(5, "caption", 3)(6, "div");
21904
+ i0.ɵɵtext(7);
21905
+ i0.ɵɵpipe(8, "rpxTranslate");
21930
21906
  i0.ɵɵelementEnd()();
21931
- i0.ɵɵelementStart(11, "tbody", 5)(12, "tr", 6)(13, "th", 7);
21932
- i0.ɵɵtext(14);
21933
- i0.ɵɵpipe(15, "rpxTranslate");
21907
+ i0.ɵɵelementStart(9, "tbody", 4)(10, "tr", 5)(11, "th", 6);
21908
+ i0.ɵɵtext(12);
21909
+ i0.ɵɵpipe(13, "rpxTranslate");
21934
21910
  i0.ɵɵelementEnd();
21935
- i0.ɵɵelementStart(16, "td", 8);
21936
- i0.ɵɵtext(17);
21911
+ i0.ɵɵelementStart(14, "td", 7);
21912
+ i0.ɵɵtext(15);
21937
21913
  i0.ɵɵelementEnd()();
21938
- i0.ɵɵelementStart(18, "tr", 6)(19, "th", 7);
21939
- i0.ɵɵtext(20);
21940
- i0.ɵɵpipe(21, "rpxTranslate");
21914
+ i0.ɵɵelementStart(16, "tr", 5)(17, "th", 6);
21915
+ i0.ɵɵtext(18);
21916
+ i0.ɵɵpipe(19, "rpxTranslate");
21941
21917
  i0.ɵɵelementEnd();
21942
- i0.ɵɵelementStart(22, "td", 8);
21943
- i0.ɵɵtext(23);
21944
- i0.ɵɵpipe(24, "date");
21918
+ i0.ɵɵelementStart(20, "td", 7);
21919
+ i0.ɵɵtext(21);
21920
+ i0.ɵɵpipe(22, "date");
21945
21921
  i0.ɵɵelementEnd()();
21946
- i0.ɵɵelementStart(25, "tr", 6)(26, "th", 7);
21947
- i0.ɵɵtext(27);
21948
- i0.ɵɵpipe(28, "rpxTranslate");
21922
+ i0.ɵɵelementStart(23, "tr", 5)(24, "th", 6);
21923
+ i0.ɵɵtext(25);
21924
+ i0.ɵɵpipe(26, "rpxTranslate");
21949
21925
  i0.ɵɵelementEnd();
21950
- i0.ɵɵelementStart(29, "td", 8);
21951
- i0.ɵɵtext(30);
21926
+ i0.ɵɵelementStart(27, "td", 7);
21927
+ i0.ɵɵtext(28);
21952
21928
  i0.ɵɵelementEnd()();
21953
- i0.ɵɵelementStart(31, "tr", 6)(32, "th", 7);
21954
- i0.ɵɵtext(33);
21955
- i0.ɵɵpipe(34, "rpxTranslate");
21929
+ i0.ɵɵelementStart(29, "tr", 5)(30, "th", 6);
21930
+ i0.ɵɵtext(31);
21931
+ i0.ɵɵpipe(32, "rpxTranslate");
21956
21932
  i0.ɵɵelementEnd();
21957
- i0.ɵɵelementStart(35, "td", 8);
21958
- i0.ɵɵtext(36);
21933
+ i0.ɵɵelementStart(33, "td", 7);
21934
+ i0.ɵɵtext(34);
21959
21935
  i0.ɵɵelementEnd()();
21960
- i0.ɵɵelementStart(37, "tr", 6)(38, "th", 7);
21961
- i0.ɵɵtext(39);
21962
- i0.ɵɵpipe(40, "rpxTranslate");
21936
+ i0.ɵɵelementStart(35, "tr", 5)(36, "th", 6);
21937
+ i0.ɵɵtext(37);
21938
+ i0.ɵɵpipe(38, "rpxTranslate");
21963
21939
  i0.ɵɵelementEnd();
21964
- i0.ɵɵelementStart(41, "td", 8);
21965
- i0.ɵɵtext(42);
21966
- i0.ɵɵpipe(43, "rpxTranslate");
21940
+ i0.ɵɵelementStart(39, "td", 7);
21941
+ i0.ɵɵtext(40);
21942
+ i0.ɵɵpipe(41, "rpxTranslate");
21967
21943
  i0.ɵɵelementEnd()();
21968
- i0.ɵɵtemplate(44, QueryDetailsComponent_ng_container_0_tr_44_Template, 7, 7, "tr", 9)(45, QueryDetailsComponent_ng_container_0_tr_45_Template, 6, 4, "tr", 10);
21944
+ i0.ɵɵtemplate(42, QueryDetailsComponent_ng_container_0_tr_42_Template, 7, 7, "tr", 8)(43, QueryDetailsComponent_ng_container_0_tr_43_Template, 6, 4, "tr", 9);
21969
21945
  i0.ɵɵelementEnd()()();
21970
- i0.ɵɵtemplate(46, QueryDetailsComponent_ng_container_0_ng_container_46_Template, 2, 1, "ng-container", 1);
21946
+ i0.ɵɵtemplate(44, QueryDetailsComponent_ng_container_0_ng_container_44_Template, 2, 1, "ng-container", 1);
21971
21947
  i0.ɵɵelementContainerEnd();
21972
21948
  } if (rf & 2) {
21973
- const ctx_r0 = i0.ɵɵnextContext();
21949
+ const ctx_r1 = i0.ɵɵnextContext();
21974
21950
  i0.ɵɵadvance();
21975
- i0.ɵɵproperty("ngIf", ctx_r0.hasRespondedToQuery() && !ctx_r0.showItem);
21951
+ i0.ɵɵproperty("ngIf", ctx_r1.showItem);
21976
21952
  i0.ɵɵadvance(2);
21977
- i0.ɵɵproperty("ngIf", ctx_r0.showItem);
21978
- i0.ɵɵadvance(2);
21979
- i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(6, 21, "Details of the query"));
21953
+ i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(4, 20, "Details of the query"));
21980
21954
  i0.ɵɵadvance(4);
21981
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 23, "Query details"));
21955
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 22, "Query details"));
21982
21956
  i0.ɵɵadvance(5);
21983
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 25, "Last submitted by"));
21957
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 24, "Last submitted by"));
21984
21958
  i0.ɵɵadvance(3);
21985
- i0.ɵɵtextInterpolate(ctx_r0.query.lastSubmittedBy);
21959
+ i0.ɵɵtextInterpolate(ctx_r1.query.lastSubmittedBy);
21986
21960
  i0.ɵɵadvance(3);
21987
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(21, 27, "Submission date"));
21961
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 26, "Submission date"));
21988
21962
  i0.ɵɵadvance(3);
21989
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(24, 29, ctx_r0.query.createdOn, "dd MMMM YYYY HH:mm"));
21963
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(22, 28, ctx_r1.query.createdOn, "dd MMMM YYYY HH:mm"));
21990
21964
  i0.ɵɵadvance(4);
21991
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(28, 32, "Query subject"));
21965
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(26, 31, "Query subject"));
21992
21966
  i0.ɵɵadvance(3);
21993
- i0.ɵɵtextInterpolate(ctx_r0.query.subject);
21967
+ i0.ɵɵtextInterpolate(ctx_r1.query.subject);
21994
21968
  i0.ɵɵadvance(3);
21995
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(34, 34, "Query body"));
21969
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(32, 33, "Query body"));
21996
21970
  i0.ɵɵadvance(3);
21997
- i0.ɵɵtextInterpolate(ctx_r0.query.body);
21971
+ i0.ɵɵtextInterpolate(ctx_r1.query.body);
21998
21972
  i0.ɵɵadvance(2);
21999
- i0.ɵɵclassProp("govuk-table__header--no-border", ctx_r0.query.isHearingRelated);
21973
+ i0.ɵɵclassProp("govuk-table__header--no-border", ctx_r1.query.isHearingRelated);
22000
21974
  i0.ɵɵadvance();
22001
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(40, 36, "Is the query hearing related?"), " ");
21975
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(38, 35, "Is the query hearing related?"), " ");
22002
21976
  i0.ɵɵadvance(2);
22003
- i0.ɵɵclassProp("govuk-table__cell--no-border", ctx_r0.query.isHearingRelated);
21977
+ i0.ɵɵclassProp("govuk-table__cell--no-border", ctx_r1.query.isHearingRelated);
22004
21978
  i0.ɵɵadvance();
22005
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(43, 38, "Is the query hearing related?", null, ctx_r0.query.isHearingRelated), "");
21979
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(41, 37, "Is the query hearing related?", null, ctx_r1.query.isHearingRelated), "");
22006
21980
  i0.ɵɵadvance(2);
22007
- i0.ɵɵproperty("ngIf", ctx_r0.query.isHearingRelated === "Yes");
21981
+ i0.ɵɵproperty("ngIf", ctx_r1.query.isHearingRelated === "Yes");
22008
21982
  i0.ɵɵadvance();
22009
- i0.ɵɵproperty("ngIf", ctx_r0.query.attachments.length > 0);
21983
+ i0.ɵɵproperty("ngIf", ctx_r1.query.attachments.length > 0);
22010
21984
  i0.ɵɵadvance();
22011
- i0.ɵɵproperty("ngIf", (ctx_r0.query.children == null ? null : ctx_r0.query.children.length) > 0);
21985
+ i0.ɵɵproperty("ngIf", (ctx_r1.query.children == null ? null : ctx_r1.query.children.length) > 0);
22012
21986
  } }
22013
21987
  class QueryDetailsComponent {
22014
21988
  sessionStorageService;
@@ -22020,7 +21994,6 @@ class QueryDetailsComponent {
22020
21994
  backClicked = new EventEmitter();
22021
21995
  hasResponded = new EventEmitter();
22022
21996
  showItem = true;
22023
- message;
22024
21997
  static QUERY_ITEM_RESPOND = '3';
22025
21998
  static QUERY_ITEM_FOLLOW_UP = '4';
22026
21999
  queryItemId;
@@ -22052,7 +22025,6 @@ class QueryDetailsComponent {
22052
22025
  this.hasResponded.emit(false);
22053
22026
  return false;
22054
22027
  }
22055
- this.message = Constants.TASK_COMPLETION_ERROR;
22056
22028
  this.hasResponded.emit(true);
22057
22029
  return true;
22058
22030
  }
@@ -22064,15 +22036,15 @@ class QueryDetailsComponent {
22064
22036
  return false;
22065
22037
  }
22066
22038
  static ɵfac = function QueryDetailsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router)); };
22067
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId", queryResponseStatus: "queryResponseStatus" }, outputs: { backClicked: "backClicked", hasResponded: "hasResponded" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["followUpMessage", ""], [4, "ngIf"], ["type", "error", 4, "ngIf"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row govuk-table__row--isHearingRelated", 4, "ngIf"], ["class", "govuk-table__row", 4, "ngIf"], ["type", "error"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-table__row", "govuk-table__row--isHearingRelated"], [3, "attachments", 4, "ngIf"], [3, "attachments"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"]], template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
22068
- i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 47, 42, "ng-container", 1);
22039
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId", queryResponseStatus: "queryResponseStatus" }, outputs: { backClicked: "backClicked", hasResponded: "hasResponded" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["followUpMessage", ""], [4, "ngIf"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row govuk-table__row--isHearingRelated", 4, "ngIf"], ["class", "govuk-table__row", 4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-table__row", "govuk-table__row--isHearingRelated"], [3, "attachments", 4, "ngIf"], [3, "attachments"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"]], template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
22040
+ i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 45, 41, "ng-container", 1);
22069
22041
  } if (rf & 2) {
22070
22042
  i0.ɵɵproperty("ngIf", ctx.query);
22071
22043
  } }, styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
22072
22044
  }
22073
22045
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
22074
22046
  type: Component,
22075
- args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\n <cut-alert type=\"error\" *ngIf=\"hasRespondedToQuery() && !showItem\">\n <ng-container>{{message}}</ng-container>\n </cut-alert>\n\n <br/>\n <p *ngIf=\"showItem\">\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 MMMM YYYY HH:mm' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query subject' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.subject }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query body' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.body }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\" [class.govuk-table__header--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </th>\n <td class=\"govuk-table__cell\" [class.govuk-table__cell--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : (query.isHearingRelated) }}</td>\n </tr>\n <tr class=\"govuk-table__row govuk-table__row--isHearingRelated\" *ngIf=\"query.isHearingRelated === 'Yes'\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'What is the date of the hearing?' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.hearingDate | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"query.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"query.attachments\"\n [attachments]=\"query.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <ng-container *ngIf=\"query.children?.length > 0\">\n <ng-container *ngFor=\"let child of query.children; let i = index;\">\n <ng-container *ngIf=\"i % 2 === 0; else followUpMessage\">\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Response of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Response' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last response date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMMM YYYY HH:mm' }}</td>\n </tr>\n\n <tr *ngIf=\"isInternalUser()\" class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Caseworker name' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Response detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n\n <ng-template #followUpMessage>\n <!-- <div class=\"query_details_caption\">{{ 'Follow-up' | rpxTranslate }}</div> -->\n <table class=\"govuk-table query-details-table\"\n [attr.aria-describedby]=\"'Follow-up of the response' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Follow up query' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMMM YYYY HH:mm'}}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-template>\n </ng-container>\n </ng-container>\n</ng-container>\n", styles: [".query-details-table .govuk-table__header{width:330px}\n"] }]
22047
+ args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\n <p *ngIf=\"showItem\">\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 MMMM YYYY HH:mm' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query subject' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.subject }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query body' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.body }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\" [class.govuk-table__header--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </th>\n <td class=\"govuk-table__cell\" [class.govuk-table__cell--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : (query.isHearingRelated) }}</td>\n </tr>\n <tr class=\"govuk-table__row govuk-table__row--isHearingRelated\" *ngIf=\"query.isHearingRelated === 'Yes'\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'What is the date of the hearing?' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.hearingDate | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"query.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"query.attachments\"\n [attachments]=\"query.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <ng-container *ngIf=\"query.children?.length > 0\">\n <ng-container *ngFor=\"let child of query.children; let i = index;\">\n <ng-container *ngIf=\"i % 2 === 0; else followUpMessage\">\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Response of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Response' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last response date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMMM YYYY HH:mm' }}</td>\n </tr>\n\n <tr *ngIf=\"isInternalUser()\" class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Caseworker name' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Response detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n\n <ng-template #followUpMessage>\n <!-- <div class=\"query_details_caption\">{{ 'Follow-up' | rpxTranslate }}</div> -->\n <table class=\"govuk-table query-details-table\"\n [attr.aria-describedby]=\"'Follow-up of the response' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Follow up query' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMMM YYYY HH:mm'}}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-template>\n </ng-container>\n </ng-container>\n</ng-container>\n", styles: [".query-details-table .govuk-table__header{width:330px}\n"] }]
22076
22048
  }], () => [{ type: SessionStorageService }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }], { query: [{
22077
22049
  type: Input
22078
22050
  }], caseId: [{
@@ -22084,7 +22056,7 @@ class QueryDetailsComponent {
22084
22056
  }], hasResponded: [{
22085
22057
  type: Output
22086
22058
  }] }); })();
22087
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryDetailsComponent, { className: "QueryDetailsComponent", filePath: "lib/shared/components/palette/query-management/components/query-details/query-details.component.ts", lineNumber: 15 }); })();
22059
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryDetailsComponent, { className: "QueryDetailsComponent", filePath: "lib/shared/components/palette/query-management/components/query-details/query-details.component.ts", lineNumber: 14 }); })();
22088
22060
 
22089
22061
  class QueryEventCompletionComponent {
22090
22062
  eventCompletionParams;
@@ -22798,38 +22770,43 @@ class QueryWriteRespondToQueryComponent {
22798
22770
  });
22799
22771
  }
22800
22772
  ngOnChanges() {
22801
- if (this.caseQueriesCollections?.length > 0) {
22802
- if (!this.caseQueriesCollections[0]) {
22803
- console.error('caseQueriesCollections[0] is undefined!', this.caseQueriesCollections);
22804
- return;
22805
- }
22806
- const queryWithChildren = new QueryListData(this.caseQueriesCollections[0]);
22807
- const messageId = this.route.snapshot.params.dataid;
22808
- if (!messageId) {
22809
- console.warn('No messageId found in route params:', this.route.snapshot.params);
22810
- return;
22773
+ if (!this.caseQueriesCollections || this.caseQueriesCollections.length === 0) {
22774
+ // Silent return – this is not an error.
22775
+ return;
22776
+ }
22777
+ if (!this.caseQueriesCollections[0]) {
22778
+ console.error('caseQueriesCollections[0] is undefined!', this.caseQueriesCollections);
22779
+ return;
22780
+ }
22781
+ const messageId = this.route.snapshot.params?.dataid;
22782
+ if (!messageId) {
22783
+ console.warn('No messageId found in route params:', this.route.snapshot.params);
22784
+ return;
22785
+ }
22786
+ const allMessages = this.caseQueriesCollections
22787
+ .flatMap((caseData) => caseData?.caseMessages || []);
22788
+ const matchingMessage = allMessages.find((message) => message?.value?.id === messageId)?.value;
22789
+ if (!matchingMessage) {
22790
+ console.warn('No matching message found for ID:', messageId);
22791
+ return;
22792
+ }
22793
+ const queryWithChildren = new QueryListData(this.caseQueriesCollections[0]);
22794
+ let filteredQuery = [];
22795
+ if (this.queryItemId === QueryWriteRespondToQueryComponent.QUERY_ITEM_RESPOND) {
22796
+ if (matchingMessage?.parentId) {
22797
+ filteredQuery = queryWithChildren.queries.filter((query) => query?.id === matchingMessage.parentId);
22811
22798
  }
22812
- const filteredMessages = this.caseQueriesCollections
22813
- .map((caseData) => caseData?.caseMessages || []) // Ensure caseMessages is always an array
22814
- .flat() // Flatten into a single array of messages
22815
- .filter((message) => message?.value?.id === messageId); // Safe access
22816
- if (filteredMessages.length > 0) {
22817
- const matchingMessage = filteredMessages[0]?.value;
22818
- let filteredQuery = [];
22819
- if (this.queryItemId === QueryWriteRespondToQueryComponent.QUERY_ITEM_RESPOND) {
22820
- filteredQuery = queryWithChildren?.queries.filter((message) => filteredMessages[0]?.value?.id === message?.id);
22821
- if (matchingMessage) {
22822
- this.queryItemDisplay = new QueryListItem();
22823
- Object.assign(this.queryItemDisplay, matchingMessage);
22824
- this.queryItem = this.queryItemDisplay;
22825
- }
22826
- }
22827
- else {
22828
- filteredQuery = queryWithChildren?.queries.filter((message) => filteredMessages[0]?.value?.id === message?.id);
22829
- }
22830
- this.queryResponseStatus = filteredQuery[0]?.responseStatus;
22799
+ else {
22800
+ filteredQuery = queryWithChildren.queries.filter((query) => query?.id === matchingMessage.id);
22831
22801
  }
22802
+ this.queryItemDisplay = new QueryListItem();
22803
+ Object.assign(this.queryItemDisplay, matchingMessage);
22804
+ this.queryItem = this.queryItemDisplay;
22805
+ }
22806
+ else {
22807
+ filteredQuery = queryWithChildren.queries.filter((query) => query?.id === matchingMessage.id);
22832
22808
  }
22809
+ this.queryResponseStatus = filteredQuery[0]?.responseStatus;
22833
22810
  }
22834
22811
  hasResponded(value) {
22835
22812
  this.hasRespondedToQuery = value;
@@ -30875,7 +30852,7 @@ i0.ɵɵsetComponentScope(
30875
30852
  // Components for Query Management
30876
30853
  ReadQueryManagementFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i1$1.RouterLink, QueryDetailsComponent,
30877
30854
  QueryListComponent]; }, function () { return [i1.RpxTranslatePipe]; });
30878
- i0.ɵɵsetComponentScope(QueryDetailsComponent, function () { return [i5.NgForOf, i5.NgIf, AlertComponent, QueryAttachmentsReadComponent]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe]; });
30855
+ i0.ɵɵsetComponentScope(QueryDetailsComponent, function () { return [i5.NgForOf, i5.NgIf, QueryAttachmentsReadComponent]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe]; });
30879
30856
  i0.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, function () { return [i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryDetailsComponent,
30880
30857
  QueryCaseDetailsHeaderComponent]; }, function () { return [i1.RpxTranslatePipe]; });
30881
30858
  i0.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, function () { return [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.MaxLengthValidator, i4.FormGroupDirective, i4.FormControlName, MarkdownComponent, QueryCaseDetailsHeaderComponent,