@hmcts/ccd-case-ui-toolkit 7.2.7 → 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.
@@ -21673,21 +21673,10 @@ class QueryCheckYourAnswersComponent {
21673
21673
  }] }); })();
21674
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 }); })();
21675
21675
 
21676
- function QueryDetailsComponent_ng_container_0_cut_alert_1_Template(rf, ctx) { if (rf & 1) {
21677
- i0.ɵɵelementStart(0, "cut-alert", 11);
21678
- i0.ɵɵelementContainerStart(1);
21679
- i0.ɵɵtext(2);
21680
- i0.ɵɵelementContainerEnd();
21681
- i0.ɵɵelementEnd();
21682
- } if (rf & 2) {
21683
- const ctx_r0 = i0.ɵɵnextContext(2);
21684
- i0.ɵɵadvance(2);
21685
- i0.ɵɵtextInterpolate(ctx_r0.message);
21686
- } }
21687
- function QueryDetailsComponent_ng_container_0_p_3_Template(rf, ctx) { if (rf & 1) {
21688
- const _r2 = i0.ɵɵgetCurrentView();
21689
- i0.ɵɵelementStart(0, "p")(1, "a", 12);
21690
- 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()); });
21691
21680
  i0.ɵɵtext(2);
21692
21681
  i0.ɵɵpipe(3, "rpxTranslate");
21693
21682
  i0.ɵɵelementEnd()();
@@ -21695,49 +21684,49 @@ function QueryDetailsComponent_ng_container_0_p_3_Template(rf, ctx) { if (rf & 1
21695
21684
  i0.ɵɵadvance(2);
21696
21685
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Back to query list"));
21697
21686
  } }
21698
- function QueryDetailsComponent_ng_container_0_tr_44_Template(rf, ctx) { if (rf & 1) {
21699
- 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);
21700
21689
  i0.ɵɵtext(2);
21701
21690
  i0.ɵɵpipe(3, "rpxTranslate");
21702
21691
  i0.ɵɵelementEnd();
21703
- i0.ɵɵelementStart(4, "td", 8);
21692
+ i0.ɵɵelementStart(4, "td", 7);
21704
21693
  i0.ɵɵtext(5);
21705
21694
  i0.ɵɵpipe(6, "date");
21706
21695
  i0.ɵɵelementEnd()();
21707
21696
  } if (rf & 2) {
21708
- const ctx_r0 = i0.ɵɵnextContext(2);
21697
+ const ctx_r1 = i0.ɵɵnextContext(2);
21709
21698
  i0.ɵɵadvance(2);
21710
21699
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "What is the date of the hearing?"));
21711
21700
  i0.ɵɵadvance(3);
21712
- 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"));
21713
21702
  } }
21714
- function QueryDetailsComponent_ng_container_0_tr_45_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
21715
- 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);
21716
21705
  } if (rf & 2) {
21717
- const ctx_r0 = i0.ɵɵnextContext(3);
21718
- i0.ɵɵproperty("attachments", ctx_r0.query.attachments);
21706
+ const ctx_r1 = i0.ɵɵnextContext(3);
21707
+ i0.ɵɵproperty("attachments", ctx_r1.query.attachments);
21719
21708
  } }
21720
- function QueryDetailsComponent_ng_container_0_tr_45_Template(rf, ctx) { if (rf & 1) {
21721
- 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);
21722
21711
  i0.ɵɵtext(2);
21723
21712
  i0.ɵɵpipe(3, "rpxTranslate");
21724
21713
  i0.ɵɵelementEnd();
21725
- i0.ɵɵelementStart(4, "td", 8);
21726
- 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);
21727
21716
  i0.ɵɵelementEnd()();
21728
21717
  } if (rf & 2) {
21729
- const ctx_r0 = i0.ɵɵnextContext(2);
21718
+ const ctx_r1 = i0.ɵɵnextContext(2);
21730
21719
  i0.ɵɵadvance(2);
21731
21720
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Attachments"));
21732
21721
  i0.ɵɵadvance(3);
21733
- i0.ɵɵproperty("ngIf", ctx_r0.query.attachments);
21722
+ i0.ɵɵproperty("ngIf", ctx_r1.query.attachments);
21734
21723
  } }
21735
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_15_Template(rf, ctx) { if (rf & 1) {
21736
- 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);
21737
21726
  i0.ɵɵtext(2);
21738
21727
  i0.ɵɵpipe(3, "rpxTranslate");
21739
21728
  i0.ɵɵelementEnd();
21740
- i0.ɵɵelementStart(4, "td", 8);
21729
+ i0.ɵɵelementStart(4, "td", 7);
21741
21730
  i0.ɵɵtext(5);
21742
21731
  i0.ɵɵelementEnd()();
21743
21732
  } if (rf & 2) {
@@ -21747,19 +21736,19 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21747
21736
  i0.ɵɵadvance(3);
21748
21737
  i0.ɵɵtextInterpolate(child_r3.name);
21749
21738
  } }
21750
- 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) {
21751
- 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);
21752
21741
  } if (rf & 2) {
21753
21742
  const child_r3 = i0.ɵɵnextContext(3).$implicit;
21754
21743
  i0.ɵɵproperty("attachments", child_r3.attachments);
21755
21744
  } }
21756
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_22_Template(rf, ctx) { if (rf & 1) {
21757
- 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);
21758
21747
  i0.ɵɵtext(2);
21759
21748
  i0.ɵɵpipe(3, "rpxTranslate");
21760
21749
  i0.ɵɵelementEnd();
21761
- i0.ɵɵelementStart(4, "td", 8);
21762
- 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);
21763
21752
  i0.ɵɵelementEnd()();
21764
21753
  } if (rf & 2) {
21765
21754
  const child_r3 = i0.ɵɵnextContext(2).$implicit;
@@ -21768,36 +21757,36 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21768
21757
  i0.ɵɵadvance(3);
21769
21758
  i0.ɵɵproperty("ngIf", child_r3.attachments);
21770
21759
  } }
21771
- 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) {
21772
21761
  i0.ɵɵelementContainerStart(0);
21773
- i0.ɵɵelementStart(1, "table", 3);
21762
+ i0.ɵɵelementStart(1, "table", 2);
21774
21763
  i0.ɵɵpipe(2, "rpxTranslate");
21775
- i0.ɵɵelementStart(3, "caption", 4)(4, "div");
21764
+ i0.ɵɵelementStart(3, "caption", 3)(4, "div");
21776
21765
  i0.ɵɵtext(5);
21777
21766
  i0.ɵɵpipe(6, "rpxTranslate");
21778
21767
  i0.ɵɵelementEnd()();
21779
- i0.ɵɵelementStart(7, "tbody", 5)(8, "tr", 6)(9, "th", 7);
21768
+ i0.ɵɵelementStart(7, "tbody", 4)(8, "tr", 5)(9, "th", 6);
21780
21769
  i0.ɵɵtext(10);
21781
21770
  i0.ɵɵpipe(11, "rpxTranslate");
21782
21771
  i0.ɵɵelementEnd();
21783
- i0.ɵɵelementStart(12, "td", 8);
21772
+ i0.ɵɵelementStart(12, "td", 7);
21784
21773
  i0.ɵɵtext(13);
21785
21774
  i0.ɵɵpipe(14, "date");
21786
21775
  i0.ɵɵelementEnd()();
21787
- i0.ɵɵtemplate(15, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_15_Template, 6, 4, "tr", 10);
21788
- 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);
21789
21778
  i0.ɵɵtext(18);
21790
21779
  i0.ɵɵpipe(19, "rpxTranslate");
21791
21780
  i0.ɵɵelementEnd();
21792
- i0.ɵɵelementStart(20, "td", 8);
21781
+ i0.ɵɵelementStart(20, "td", 7);
21793
21782
  i0.ɵɵtext(21);
21794
21783
  i0.ɵɵelementEnd()();
21795
- 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);
21796
21785
  i0.ɵɵelementEnd()();
21797
21786
  i0.ɵɵelementContainerEnd();
21798
21787
  } if (rf & 2) {
21799
21788
  const child_r3 = i0.ɵɵnextContext().$implicit;
21800
- const ctx_r0 = i0.ɵɵnextContext(3);
21789
+ const ctx_r1 = i0.ɵɵnextContext(3);
21801
21790
  i0.ɵɵadvance();
21802
21791
  i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(2, 8, "Response of the query"));
21803
21792
  i0.ɵɵadvance(4);
@@ -21807,7 +21796,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21807
21796
  i0.ɵɵadvance(3);
21808
21797
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 14, child_r3.createdOn, "dd MMMM YYYY HH:mm"));
21809
21798
  i0.ɵɵadvance(2);
21810
- i0.ɵɵproperty("ngIf", ctx_r0.isInternalUser());
21799
+ i0.ɵɵproperty("ngIf", ctx_r1.isInternalUser());
21811
21800
  i0.ɵɵadvance(3);
21812
21801
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 17, "Response detail"));
21813
21802
  i0.ɵɵadvance(3);
@@ -21815,19 +21804,19 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21815
21804
  i0.ɵɵadvance();
21816
21805
  i0.ɵɵproperty("ngIf", child_r3.attachments.length > 0);
21817
21806
  } }
21818
- 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) {
21819
- 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);
21820
21809
  } if (rf & 2) {
21821
21810
  const child_r3 = i0.ɵɵnextContext(3).$implicit;
21822
21811
  i0.ɵɵproperty("attachments", child_r3.attachments);
21823
21812
  } }
21824
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_tr_26_Template(rf, ctx) { if (rf & 1) {
21825
- 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);
21826
21815
  i0.ɵɵtext(2);
21827
21816
  i0.ɵɵpipe(3, "rpxTranslate");
21828
21817
  i0.ɵɵelementEnd();
21829
- i0.ɵɵelementStart(4, "td", 8);
21830
- 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);
21831
21820
  i0.ɵɵelementEnd()();
21832
21821
  } if (rf & 2) {
21833
21822
  const child_r3 = i0.ɵɵnextContext(2).$implicit;
@@ -21836,36 +21825,36 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21836
21825
  i0.ɵɵadvance(3);
21837
21826
  i0.ɵɵproperty("ngIf", child_r3.attachments);
21838
21827
  } }
21839
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
21840
- 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);
21841
21830
  i0.ɵɵpipe(1, "rpxTranslate");
21842
- i0.ɵɵelementStart(2, "caption", 4)(3, "div");
21831
+ i0.ɵɵelementStart(2, "caption", 3)(3, "div");
21843
21832
  i0.ɵɵtext(4);
21844
21833
  i0.ɵɵpipe(5, "rpxTranslate");
21845
21834
  i0.ɵɵelementEnd()();
21846
- i0.ɵɵelementStart(6, "tbody", 5)(7, "tr", 6)(8, "th", 7);
21835
+ i0.ɵɵelementStart(6, "tbody", 4)(7, "tr", 5)(8, "th", 6);
21847
21836
  i0.ɵɵtext(9);
21848
21837
  i0.ɵɵpipe(10, "rpxTranslate");
21849
21838
  i0.ɵɵelementEnd();
21850
- i0.ɵɵelementStart(11, "td", 8);
21839
+ i0.ɵɵelementStart(11, "td", 7);
21851
21840
  i0.ɵɵtext(12);
21852
21841
  i0.ɵɵpipe(13, "date");
21853
21842
  i0.ɵɵelementEnd()();
21854
- i0.ɵɵelementStart(14, "tr", 6)(15, "th", 7);
21843
+ i0.ɵɵelementStart(14, "tr", 5)(15, "th", 6);
21855
21844
  i0.ɵɵtext(16);
21856
21845
  i0.ɵɵpipe(17, "rpxTranslate");
21857
21846
  i0.ɵɵelementEnd();
21858
- i0.ɵɵelementStart(18, "td", 8);
21847
+ i0.ɵɵelementStart(18, "td", 7);
21859
21848
  i0.ɵɵtext(19);
21860
21849
  i0.ɵɵelementEnd()();
21861
- i0.ɵɵelementStart(20, "tr", 6)(21, "th", 7);
21850
+ i0.ɵɵelementStart(20, "tr", 5)(21, "th", 6);
21862
21851
  i0.ɵɵtext(22);
21863
21852
  i0.ɵɵpipe(23, "rpxTranslate");
21864
21853
  i0.ɵɵelementEnd();
21865
- i0.ɵɵelementStart(24, "td", 8);
21854
+ i0.ɵɵelementStart(24, "td", 7);
21866
21855
  i0.ɵɵtext(25);
21867
21856
  i0.ɵɵelementEnd()();
21868
- 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);
21869
21858
  i0.ɵɵelementEnd()();
21870
21859
  } if (rf & 2) {
21871
21860
  const child_r3 = i0.ɵɵnextContext().$implicit;
@@ -21887,9 +21876,9 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21887
21876
  i0.ɵɵadvance();
21888
21877
  i0.ɵɵproperty("ngIf", child_r3.attachments.length > 0);
21889
21878
  } }
21890
- 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) {
21891
21880
  i0.ɵɵelementContainerStart(0);
21892
- 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);
21893
21882
  i0.ɵɵelementContainerEnd();
21894
21883
  } if (rf & 2) {
21895
21884
  const i_r4 = ctx.index;
@@ -21897,107 +21886,103 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_Tem
21897
21886
  i0.ɵɵadvance();
21898
21887
  i0.ɵɵproperty("ngIf", i_r4 % 2 === 0)("ngIfElse", followUpMessage_r5);
21899
21888
  } }
21900
- 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) {
21901
21890
  i0.ɵɵelementContainerStart(0);
21902
- 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);
21903
21892
  i0.ɵɵelementContainerEnd();
21904
21893
  } if (rf & 2) {
21905
- const ctx_r0 = i0.ɵɵnextContext(2);
21894
+ const ctx_r1 = i0.ɵɵnextContext(2);
21906
21895
  i0.ɵɵadvance();
21907
- i0.ɵɵproperty("ngForOf", ctx_r0.query.children);
21896
+ i0.ɵɵproperty("ngForOf", ctx_r1.query.children);
21908
21897
  } }
21909
21898
  function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
21910
21899
  i0.ɵɵelementContainerStart(0);
21911
- i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_cut_alert_1_Template, 3, 1, "cut-alert", 2);
21912
- i0.ɵɵelement(2, "br");
21913
- i0.ɵɵtemplate(3, QueryDetailsComponent_ng_container_0_p_3_Template, 4, 3, "p", 1);
21914
- i0.ɵɵelementStart(4, "div")(5, "table", 3);
21915
- i0.ɵɵpipe(6, "rpxTranslate");
21916
- i0.ɵɵelementStart(7, "caption", 4)(8, "div");
21917
- i0.ɵɵtext(9);
21918
- 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");
21919
21906
  i0.ɵɵelementEnd()();
21920
- i0.ɵɵelementStart(11, "tbody", 5)(12, "tr", 6)(13, "th", 7);
21921
- i0.ɵɵtext(14);
21922
- 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");
21923
21910
  i0.ɵɵelementEnd();
21924
- i0.ɵɵelementStart(16, "td", 8);
21925
- i0.ɵɵtext(17);
21911
+ i0.ɵɵelementStart(14, "td", 7);
21912
+ i0.ɵɵtext(15);
21926
21913
  i0.ɵɵelementEnd()();
21927
- i0.ɵɵelementStart(18, "tr", 6)(19, "th", 7);
21928
- i0.ɵɵtext(20);
21929
- i0.ɵɵpipe(21, "rpxTranslate");
21914
+ i0.ɵɵelementStart(16, "tr", 5)(17, "th", 6);
21915
+ i0.ɵɵtext(18);
21916
+ i0.ɵɵpipe(19, "rpxTranslate");
21930
21917
  i0.ɵɵelementEnd();
21931
- i0.ɵɵelementStart(22, "td", 8);
21932
- i0.ɵɵtext(23);
21933
- i0.ɵɵpipe(24, "date");
21918
+ i0.ɵɵelementStart(20, "td", 7);
21919
+ i0.ɵɵtext(21);
21920
+ i0.ɵɵpipe(22, "date");
21934
21921
  i0.ɵɵelementEnd()();
21935
- i0.ɵɵelementStart(25, "tr", 6)(26, "th", 7);
21936
- i0.ɵɵtext(27);
21937
- i0.ɵɵpipe(28, "rpxTranslate");
21922
+ i0.ɵɵelementStart(23, "tr", 5)(24, "th", 6);
21923
+ i0.ɵɵtext(25);
21924
+ i0.ɵɵpipe(26, "rpxTranslate");
21938
21925
  i0.ɵɵelementEnd();
21939
- i0.ɵɵelementStart(29, "td", 8);
21940
- i0.ɵɵtext(30);
21926
+ i0.ɵɵelementStart(27, "td", 7);
21927
+ i0.ɵɵtext(28);
21941
21928
  i0.ɵɵelementEnd()();
21942
- i0.ɵɵelementStart(31, "tr", 6)(32, "th", 7);
21943
- i0.ɵɵtext(33);
21944
- i0.ɵɵpipe(34, "rpxTranslate");
21929
+ i0.ɵɵelementStart(29, "tr", 5)(30, "th", 6);
21930
+ i0.ɵɵtext(31);
21931
+ i0.ɵɵpipe(32, "rpxTranslate");
21945
21932
  i0.ɵɵelementEnd();
21946
- i0.ɵɵelementStart(35, "td", 8);
21947
- i0.ɵɵtext(36);
21933
+ i0.ɵɵelementStart(33, "td", 7);
21934
+ i0.ɵɵtext(34);
21948
21935
  i0.ɵɵelementEnd()();
21949
- i0.ɵɵelementStart(37, "tr", 6)(38, "th", 7);
21950
- i0.ɵɵtext(39);
21951
- i0.ɵɵpipe(40, "rpxTranslate");
21936
+ i0.ɵɵelementStart(35, "tr", 5)(36, "th", 6);
21937
+ i0.ɵɵtext(37);
21938
+ i0.ɵɵpipe(38, "rpxTranslate");
21952
21939
  i0.ɵɵelementEnd();
21953
- i0.ɵɵelementStart(41, "td", 8);
21954
- i0.ɵɵtext(42);
21955
- i0.ɵɵpipe(43, "rpxTranslate");
21940
+ i0.ɵɵelementStart(39, "td", 7);
21941
+ i0.ɵɵtext(40);
21942
+ i0.ɵɵpipe(41, "rpxTranslate");
21956
21943
  i0.ɵɵelementEnd()();
21957
- 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);
21958
21945
  i0.ɵɵelementEnd()()();
21959
- 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);
21960
21947
  i0.ɵɵelementContainerEnd();
21961
21948
  } if (rf & 2) {
21962
- const ctx_r0 = i0.ɵɵnextContext();
21949
+ const ctx_r1 = i0.ɵɵnextContext();
21963
21950
  i0.ɵɵadvance();
21964
- i0.ɵɵproperty("ngIf", ctx_r0.hasRespondedToQuery() && !ctx_r0.showItem);
21951
+ i0.ɵɵproperty("ngIf", ctx_r1.showItem);
21965
21952
  i0.ɵɵadvance(2);
21966
- i0.ɵɵproperty("ngIf", ctx_r0.showItem);
21967
- i0.ɵɵadvance(2);
21968
- 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"));
21969
21954
  i0.ɵɵadvance(4);
21970
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 23, "Query details"));
21955
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 22, "Query details"));
21971
21956
  i0.ɵɵadvance(5);
21972
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 25, "Last submitted by"));
21957
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 24, "Last submitted by"));
21973
21958
  i0.ɵɵadvance(3);
21974
- i0.ɵɵtextInterpolate(ctx_r0.query.lastSubmittedBy);
21959
+ i0.ɵɵtextInterpolate(ctx_r1.query.lastSubmittedBy);
21975
21960
  i0.ɵɵadvance(3);
21976
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(21, 27, "Submission date"));
21961
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 26, "Submission date"));
21977
21962
  i0.ɵɵadvance(3);
21978
- 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"));
21979
21964
  i0.ɵɵadvance(4);
21980
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(28, 32, "Query subject"));
21965
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(26, 31, "Query subject"));
21981
21966
  i0.ɵɵadvance(3);
21982
- i0.ɵɵtextInterpolate(ctx_r0.query.subject);
21967
+ i0.ɵɵtextInterpolate(ctx_r1.query.subject);
21983
21968
  i0.ɵɵadvance(3);
21984
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(34, 34, "Query body"));
21969
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(32, 33, "Query body"));
21985
21970
  i0.ɵɵadvance(3);
21986
- i0.ɵɵtextInterpolate(ctx_r0.query.body);
21971
+ i0.ɵɵtextInterpolate(ctx_r1.query.body);
21987
21972
  i0.ɵɵadvance(2);
21988
- i0.ɵɵclassProp("govuk-table__header--no-border", ctx_r0.query.isHearingRelated);
21973
+ i0.ɵɵclassProp("govuk-table__header--no-border", ctx_r1.query.isHearingRelated);
21989
21974
  i0.ɵɵadvance();
21990
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(40, 36, "Is the query hearing related?"), " ");
21975
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(38, 35, "Is the query hearing related?"), " ");
21991
21976
  i0.ɵɵadvance(2);
21992
- i0.ɵɵclassProp("govuk-table__cell--no-border", ctx_r0.query.isHearingRelated);
21977
+ i0.ɵɵclassProp("govuk-table__cell--no-border", ctx_r1.query.isHearingRelated);
21993
21978
  i0.ɵɵadvance();
21994
- 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), "");
21995
21980
  i0.ɵɵadvance(2);
21996
- i0.ɵɵproperty("ngIf", ctx_r0.query.isHearingRelated === "Yes");
21981
+ i0.ɵɵproperty("ngIf", ctx_r1.query.isHearingRelated === "Yes");
21997
21982
  i0.ɵɵadvance();
21998
- i0.ɵɵproperty("ngIf", ctx_r0.query.attachments.length > 0);
21983
+ i0.ɵɵproperty("ngIf", ctx_r1.query.attachments.length > 0);
21999
21984
  i0.ɵɵadvance();
22000
- 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);
22001
21986
  } }
22002
21987
  class QueryDetailsComponent {
22003
21988
  sessionStorageService;
@@ -22009,7 +21994,6 @@ class QueryDetailsComponent {
22009
21994
  backClicked = new EventEmitter();
22010
21995
  hasResponded = new EventEmitter();
22011
21996
  showItem = true;
22012
- message;
22013
21997
  static QUERY_ITEM_RESPOND = '3';
22014
21998
  static QUERY_ITEM_FOLLOW_UP = '4';
22015
21999
  queryItemId;
@@ -22041,7 +22025,6 @@ class QueryDetailsComponent {
22041
22025
  this.hasResponded.emit(false);
22042
22026
  return false;
22043
22027
  }
22044
- this.message = Constants.TASK_COMPLETION_ERROR;
22045
22028
  this.hasResponded.emit(true);
22046
22029
  return true;
22047
22030
  }
@@ -22053,15 +22036,15 @@ class QueryDetailsComponent {
22053
22036
  return false;
22054
22037
  }
22055
22038
  static ɵfac = function QueryDetailsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router)); };
22056
- 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) {
22057
- 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);
22058
22041
  } if (rf & 2) {
22059
22042
  i0.ɵɵproperty("ngIf", ctx.query);
22060
22043
  } }, styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
22061
22044
  }
22062
22045
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
22063
22046
  type: Component,
22064
- 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"] }]
22065
22048
  }], () => [{ type: SessionStorageService }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }], { query: [{
22066
22049
  type: Input
22067
22050
  }], caseId: [{
@@ -22073,7 +22056,7 @@ class QueryDetailsComponent {
22073
22056
  }], hasResponded: [{
22074
22057
  type: Output
22075
22058
  }] }); })();
22076
- (() => { (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 }); })();
22077
22060
 
22078
22061
  class QueryEventCompletionComponent {
22079
22062
  eventCompletionParams;
@@ -22787,38 +22770,43 @@ class QueryWriteRespondToQueryComponent {
22787
22770
  });
22788
22771
  }
22789
22772
  ngOnChanges() {
22790
- if (this.caseQueriesCollections?.length > 0) {
22791
- if (!this.caseQueriesCollections[0]) {
22792
- console.error('caseQueriesCollections[0] is undefined!', this.caseQueriesCollections);
22793
- return;
22794
- }
22795
- const queryWithChildren = new QueryListData(this.caseQueriesCollections[0]);
22796
- const messageId = this.route.snapshot.params.dataid;
22797
- if (!messageId) {
22798
- console.warn('No messageId found in route params:', this.route.snapshot.params);
22799
- 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);
22800
22798
  }
22801
- const filteredMessages = this.caseQueriesCollections
22802
- .map((caseData) => caseData?.caseMessages || []) // Ensure caseMessages is always an array
22803
- .flat() // Flatten into a single array of messages
22804
- .filter((message) => message?.value?.id === messageId); // Safe access
22805
- if (filteredMessages.length > 0) {
22806
- const matchingMessage = filteredMessages[0]?.value;
22807
- let filteredQuery = [];
22808
- if (this.queryItemId === QueryWriteRespondToQueryComponent.QUERY_ITEM_RESPOND) {
22809
- filteredQuery = queryWithChildren?.queries.filter((message) => filteredMessages[0]?.value?.id === message?.id);
22810
- if (matchingMessage) {
22811
- this.queryItemDisplay = new QueryListItem();
22812
- Object.assign(this.queryItemDisplay, matchingMessage);
22813
- this.queryItem = this.queryItemDisplay;
22814
- }
22815
- }
22816
- else {
22817
- filteredQuery = queryWithChildren?.queries.filter((message) => filteredMessages[0]?.value?.id === message?.id);
22818
- }
22819
- this.queryResponseStatus = filteredQuery[0]?.responseStatus;
22799
+ else {
22800
+ filteredQuery = queryWithChildren.queries.filter((query) => query?.id === matchingMessage.id);
22820
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);
22821
22808
  }
22809
+ this.queryResponseStatus = filteredQuery[0]?.responseStatus;
22822
22810
  }
22823
22811
  hasResponded(value) {
22824
22812
  this.hasRespondedToQuery = value;
@@ -30864,7 +30852,7 @@ i0.ɵɵsetComponentScope(
30864
30852
  // Components for Query Management
30865
30853
  ReadQueryManagementFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i1$1.RouterLink, QueryDetailsComponent,
30866
30854
  QueryListComponent]; }, function () { return [i1.RpxTranslatePipe]; });
30867
- 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]; });
30868
30856
  i0.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, function () { return [i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryDetailsComponent,
30869
30857
  QueryCaseDetailsHeaderComponent]; }, function () { return [i1.RpxTranslatePipe]; });
30870
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,