@hmcts/ccd-case-ui-toolkit 7.2.4 → 7.2.5-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.
@@ -21654,21 +21654,10 @@ class QueryCheckYourAnswersComponent {
21654
21654
  }] }); })();
21655
21655
  (() => { (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 }); })();
21656
21656
 
21657
- function QueryDetailsComponent_ng_container_0_cut_alert_1_Template(rf, ctx) { if (rf & 1) {
21658
- i0.ɵɵelementStart(0, "cut-alert", 11);
21659
- i0.ɵɵelementContainerStart(1);
21660
- i0.ɵɵtext(2);
21661
- i0.ɵɵelementContainerEnd();
21662
- i0.ɵɵelementEnd();
21663
- } if (rf & 2) {
21664
- const ctx_r0 = i0.ɵɵnextContext(2);
21665
- i0.ɵɵadvance(2);
21666
- i0.ɵɵtextInterpolate(ctx_r0.message);
21667
- } }
21668
- function QueryDetailsComponent_ng_container_0_p_3_Template(rf, ctx) { if (rf & 1) {
21669
- const _r2 = i0.ɵɵgetCurrentView();
21670
- i0.ɵɵelementStart(0, "p")(1, "a", 12);
21671
- 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()); });
21657
+ function QueryDetailsComponent_ng_container_0_p_1_Template(rf, ctx) { if (rf & 1) {
21658
+ const _r1 = i0.ɵɵgetCurrentView();
21659
+ i0.ɵɵelementStart(0, "p")(1, "a", 10);
21660
+ 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()); });
21672
21661
  i0.ɵɵtext(2);
21673
21662
  i0.ɵɵpipe(3, "rpxTranslate");
21674
21663
  i0.ɵɵelementEnd()();
@@ -21676,49 +21665,49 @@ function QueryDetailsComponent_ng_container_0_p_3_Template(rf, ctx) { if (rf & 1
21676
21665
  i0.ɵɵadvance(2);
21677
21666
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Back to query list"));
21678
21667
  } }
21679
- function QueryDetailsComponent_ng_container_0_tr_44_Template(rf, ctx) { if (rf & 1) {
21680
- i0.ɵɵelementStart(0, "tr", 13)(1, "th", 7);
21668
+ function QueryDetailsComponent_ng_container_0_tr_42_Template(rf, ctx) { if (rf & 1) {
21669
+ i0.ɵɵelementStart(0, "tr", 11)(1, "th", 6);
21681
21670
  i0.ɵɵtext(2);
21682
21671
  i0.ɵɵpipe(3, "rpxTranslate");
21683
21672
  i0.ɵɵelementEnd();
21684
- i0.ɵɵelementStart(4, "td", 8);
21673
+ i0.ɵɵelementStart(4, "td", 7);
21685
21674
  i0.ɵɵtext(5);
21686
21675
  i0.ɵɵpipe(6, "date");
21687
21676
  i0.ɵɵelementEnd()();
21688
21677
  } if (rf & 2) {
21689
- const ctx_r0 = i0.ɵɵnextContext(2);
21678
+ const ctx_r1 = i0.ɵɵnextContext(2);
21690
21679
  i0.ɵɵadvance(2);
21691
21680
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "What is the date of the hearing?"));
21692
21681
  i0.ɵɵadvance(3);
21693
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 4, ctx_r0.query.hearingDate, "dd MMM yyyy"));
21682
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 4, ctx_r1.query.hearingDate, "dd MMM yyyy"));
21694
21683
  } }
21695
- function QueryDetailsComponent_ng_container_0_tr_45_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
21696
- i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
21684
+ function QueryDetailsComponent_ng_container_0_tr_43_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
21685
+ i0.ɵɵelement(0, "ccd-query-attachments-read", 13);
21697
21686
  } if (rf & 2) {
21698
- const ctx_r0 = i0.ɵɵnextContext(3);
21699
- i0.ɵɵproperty("attachments", ctx_r0.query.attachments);
21687
+ const ctx_r1 = i0.ɵɵnextContext(3);
21688
+ i0.ɵɵproperty("attachments", ctx_r1.query.attachments);
21700
21689
  } }
21701
- function QueryDetailsComponent_ng_container_0_tr_45_Template(rf, ctx) { if (rf & 1) {
21702
- i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
21690
+ function QueryDetailsComponent_ng_container_0_tr_43_Template(rf, ctx) { if (rf & 1) {
21691
+ i0.ɵɵelementStart(0, "tr", 5)(1, "th", 6);
21703
21692
  i0.ɵɵtext(2);
21704
21693
  i0.ɵɵpipe(3, "rpxTranslate");
21705
21694
  i0.ɵɵelementEnd();
21706
- i0.ɵɵelementStart(4, "td", 8);
21707
- i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_tr_45_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 14);
21695
+ i0.ɵɵelementStart(4, "td", 7);
21696
+ i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_tr_43_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 12);
21708
21697
  i0.ɵɵelementEnd()();
21709
21698
  } if (rf & 2) {
21710
- const ctx_r0 = i0.ɵɵnextContext(2);
21699
+ const ctx_r1 = i0.ɵɵnextContext(2);
21711
21700
  i0.ɵɵadvance(2);
21712
21701
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Attachments"));
21713
21702
  i0.ɵɵadvance(3);
21714
- i0.ɵɵproperty("ngIf", ctx_r0.query.attachments);
21703
+ i0.ɵɵproperty("ngIf", ctx_r1.query.attachments);
21715
21704
  } }
21716
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_15_Template(rf, ctx) { if (rf & 1) {
21717
- i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
21705
+ function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_tr_15_Template(rf, ctx) { if (rf & 1) {
21706
+ i0.ɵɵelementStart(0, "tr", 5)(1, "th", 6);
21718
21707
  i0.ɵɵtext(2);
21719
21708
  i0.ɵɵpipe(3, "rpxTranslate");
21720
21709
  i0.ɵɵelementEnd();
21721
- i0.ɵɵelementStart(4, "td", 8);
21710
+ i0.ɵɵelementStart(4, "td", 7);
21722
21711
  i0.ɵɵtext(5);
21723
21712
  i0.ɵɵelementEnd()();
21724
21713
  } if (rf & 2) {
@@ -21728,19 +21717,19 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21728
21717
  i0.ɵɵadvance(3);
21729
21718
  i0.ɵɵtextInterpolate(child_r3.name);
21730
21719
  } }
21731
- 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) {
21732
- i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
21720
+ 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) {
21721
+ i0.ɵɵelement(0, "ccd-query-attachments-read", 13);
21733
21722
  } if (rf & 2) {
21734
21723
  const child_r3 = i0.ɵɵnextContext(3).$implicit;
21735
21724
  i0.ɵɵproperty("attachments", child_r3.attachments);
21736
21725
  } }
21737
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_22_Template(rf, ctx) { if (rf & 1) {
21738
- i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
21726
+ function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_tr_22_Template(rf, ctx) { if (rf & 1) {
21727
+ i0.ɵɵelementStart(0, "tr", 5)(1, "th", 6);
21739
21728
  i0.ɵɵtext(2);
21740
21729
  i0.ɵɵpipe(3, "rpxTranslate");
21741
21730
  i0.ɵɵelementEnd();
21742
- i0.ɵɵelementStart(4, "td", 8);
21743
- 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);
21731
+ i0.ɵɵelementStart(4, "td", 7);
21732
+ 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);
21744
21733
  i0.ɵɵelementEnd()();
21745
21734
  } if (rf & 2) {
21746
21735
  const child_r3 = i0.ɵɵnextContext(2).$implicit;
@@ -21749,36 +21738,36 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21749
21738
  i0.ɵɵadvance(3);
21750
21739
  i0.ɵɵproperty("ngIf", child_r3.attachments);
21751
21740
  } }
21752
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
21741
+ function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
21753
21742
  i0.ɵɵelementContainerStart(0);
21754
- i0.ɵɵelementStart(1, "table", 3);
21743
+ i0.ɵɵelementStart(1, "table", 2);
21755
21744
  i0.ɵɵpipe(2, "rpxTranslate");
21756
- i0.ɵɵelementStart(3, "caption", 4)(4, "div");
21745
+ i0.ɵɵelementStart(3, "caption", 3)(4, "div");
21757
21746
  i0.ɵɵtext(5);
21758
21747
  i0.ɵɵpipe(6, "rpxTranslate");
21759
21748
  i0.ɵɵelementEnd()();
21760
- i0.ɵɵelementStart(7, "tbody", 5)(8, "tr", 6)(9, "th", 7);
21749
+ i0.ɵɵelementStart(7, "tbody", 4)(8, "tr", 5)(9, "th", 6);
21761
21750
  i0.ɵɵtext(10);
21762
21751
  i0.ɵɵpipe(11, "rpxTranslate");
21763
21752
  i0.ɵɵelementEnd();
21764
- i0.ɵɵelementStart(12, "td", 8);
21753
+ i0.ɵɵelementStart(12, "td", 7);
21765
21754
  i0.ɵɵtext(13);
21766
21755
  i0.ɵɵpipe(14, "date");
21767
21756
  i0.ɵɵelementEnd()();
21768
- i0.ɵɵtemplate(15, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_15_Template, 6, 4, "tr", 10);
21769
- i0.ɵɵelementStart(16, "tr", 6)(17, "th", 7);
21757
+ i0.ɵɵtemplate(15, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_tr_15_Template, 6, 4, "tr", 9);
21758
+ i0.ɵɵelementStart(16, "tr", 5)(17, "th", 6);
21770
21759
  i0.ɵɵtext(18);
21771
21760
  i0.ɵɵpipe(19, "rpxTranslate");
21772
21761
  i0.ɵɵelementEnd();
21773
- i0.ɵɵelementStart(20, "td", 8);
21762
+ i0.ɵɵelementStart(20, "td", 7);
21774
21763
  i0.ɵɵtext(21);
21775
21764
  i0.ɵɵelementEnd()();
21776
- i0.ɵɵtemplate(22, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_22_Template, 6, 4, "tr", 10);
21765
+ i0.ɵɵtemplate(22, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_tr_22_Template, 6, 4, "tr", 9);
21777
21766
  i0.ɵɵelementEnd()();
21778
21767
  i0.ɵɵelementContainerEnd();
21779
21768
  } if (rf & 2) {
21780
21769
  const child_r3 = i0.ɵɵnextContext().$implicit;
21781
- const ctx_r0 = i0.ɵɵnextContext(3);
21770
+ const ctx_r1 = i0.ɵɵnextContext(3);
21782
21771
  i0.ɵɵadvance();
21783
21772
  i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(2, 8, "Response of the query"));
21784
21773
  i0.ɵɵadvance(4);
@@ -21788,7 +21777,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21788
21777
  i0.ɵɵadvance(3);
21789
21778
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 14, child_r3.createdOn, "dd MMMM YYYY HH:mm"));
21790
21779
  i0.ɵɵadvance(2);
21791
- i0.ɵɵproperty("ngIf", ctx_r0.isInternalUser());
21780
+ i0.ɵɵproperty("ngIf", ctx_r1.isInternalUser());
21792
21781
  i0.ɵɵadvance(3);
21793
21782
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 17, "Response detail"));
21794
21783
  i0.ɵɵadvance(3);
@@ -21796,19 +21785,19 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21796
21785
  i0.ɵɵadvance();
21797
21786
  i0.ɵɵproperty("ngIf", child_r3.attachments.length > 0);
21798
21787
  } }
21799
- 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) {
21800
- i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
21788
+ 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) {
21789
+ i0.ɵɵelement(0, "ccd-query-attachments-read", 13);
21801
21790
  } if (rf & 2) {
21802
21791
  const child_r3 = i0.ɵɵnextContext(3).$implicit;
21803
21792
  i0.ɵɵproperty("attachments", child_r3.attachments);
21804
21793
  } }
21805
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_tr_26_Template(rf, ctx) { if (rf & 1) {
21806
- i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
21794
+ function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_template_2_tr_26_Template(rf, ctx) { if (rf & 1) {
21795
+ i0.ɵɵelementStart(0, "tr", 5)(1, "th", 6);
21807
21796
  i0.ɵɵtext(2);
21808
21797
  i0.ɵɵpipe(3, "rpxTranslate");
21809
21798
  i0.ɵɵelementEnd();
21810
- i0.ɵɵelementStart(4, "td", 8);
21811
- 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);
21799
+ i0.ɵɵelementStart(4, "td", 7);
21800
+ 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);
21812
21801
  i0.ɵɵelementEnd()();
21813
21802
  } if (rf & 2) {
21814
21803
  const child_r3 = i0.ɵɵnextContext(2).$implicit;
@@ -21817,36 +21806,36 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21817
21806
  i0.ɵɵadvance(3);
21818
21807
  i0.ɵɵproperty("ngIf", child_r3.attachments);
21819
21808
  } }
21820
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
21821
- i0.ɵɵelementStart(0, "table", 3);
21809
+ function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
21810
+ i0.ɵɵelementStart(0, "table", 2);
21822
21811
  i0.ɵɵpipe(1, "rpxTranslate");
21823
- i0.ɵɵelementStart(2, "caption", 4)(3, "div");
21812
+ i0.ɵɵelementStart(2, "caption", 3)(3, "div");
21824
21813
  i0.ɵɵtext(4);
21825
21814
  i0.ɵɵpipe(5, "rpxTranslate");
21826
21815
  i0.ɵɵelementEnd()();
21827
- i0.ɵɵelementStart(6, "tbody", 5)(7, "tr", 6)(8, "th", 7);
21816
+ i0.ɵɵelementStart(6, "tbody", 4)(7, "tr", 5)(8, "th", 6);
21828
21817
  i0.ɵɵtext(9);
21829
21818
  i0.ɵɵpipe(10, "rpxTranslate");
21830
21819
  i0.ɵɵelementEnd();
21831
- i0.ɵɵelementStart(11, "td", 8);
21820
+ i0.ɵɵelementStart(11, "td", 7);
21832
21821
  i0.ɵɵtext(12);
21833
21822
  i0.ɵɵpipe(13, "date");
21834
21823
  i0.ɵɵelementEnd()();
21835
- i0.ɵɵelementStart(14, "tr", 6)(15, "th", 7);
21824
+ i0.ɵɵelementStart(14, "tr", 5)(15, "th", 6);
21836
21825
  i0.ɵɵtext(16);
21837
21826
  i0.ɵɵpipe(17, "rpxTranslate");
21838
21827
  i0.ɵɵelementEnd();
21839
- i0.ɵɵelementStart(18, "td", 8);
21828
+ i0.ɵɵelementStart(18, "td", 7);
21840
21829
  i0.ɵɵtext(19);
21841
21830
  i0.ɵɵelementEnd()();
21842
- i0.ɵɵelementStart(20, "tr", 6)(21, "th", 7);
21831
+ i0.ɵɵelementStart(20, "tr", 5)(21, "th", 6);
21843
21832
  i0.ɵɵtext(22);
21844
21833
  i0.ɵɵpipe(23, "rpxTranslate");
21845
21834
  i0.ɵɵelementEnd();
21846
- i0.ɵɵelementStart(24, "td", 8);
21835
+ i0.ɵɵelementStart(24, "td", 7);
21847
21836
  i0.ɵɵtext(25);
21848
21837
  i0.ɵɵelementEnd()();
21849
- i0.ɵɵtemplate(26, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_tr_26_Template, 6, 4, "tr", 10);
21838
+ i0.ɵɵtemplate(26, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_template_2_tr_26_Template, 6, 4, "tr", 9);
21850
21839
  i0.ɵɵelementEnd()();
21851
21840
  } if (rf & 2) {
21852
21841
  const child_r3 = i0.ɵɵnextContext().$implicit;
@@ -21868,9 +21857,9 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
21868
21857
  i0.ɵɵadvance();
21869
21858
  i0.ɵɵproperty("ngIf", child_r3.attachments.length > 0);
21870
21859
  } }
21871
- function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_Template(rf, ctx) { if (rf & 1) {
21860
+ function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_Template(rf, ctx) { if (rf & 1) {
21872
21861
  i0.ɵɵelementContainerStart(0);
21873
- 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);
21862
+ 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);
21874
21863
  i0.ɵɵelementContainerEnd();
21875
21864
  } if (rf & 2) {
21876
21865
  const i_r4 = ctx.index;
@@ -21878,107 +21867,103 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_Tem
21878
21867
  i0.ɵɵadvance();
21879
21868
  i0.ɵɵproperty("ngIf", i_r4 % 2 === 0)("ngIfElse", followUpMessage_r5);
21880
21869
  } }
21881
- function QueryDetailsComponent_ng_container_0_ng_container_46_Template(rf, ctx) { if (rf & 1) {
21870
+ function QueryDetailsComponent_ng_container_0_ng_container_44_Template(rf, ctx) { if (rf & 1) {
21882
21871
  i0.ɵɵelementContainerStart(0);
21883
- i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_Template, 4, 2, "ng-container", 16);
21872
+ i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_Template, 4, 2, "ng-container", 14);
21884
21873
  i0.ɵɵelementContainerEnd();
21885
21874
  } if (rf & 2) {
21886
- const ctx_r0 = i0.ɵɵnextContext(2);
21875
+ const ctx_r1 = i0.ɵɵnextContext(2);
21887
21876
  i0.ɵɵadvance();
21888
- i0.ɵɵproperty("ngForOf", ctx_r0.query.children);
21877
+ i0.ɵɵproperty("ngForOf", ctx_r1.query.children);
21889
21878
  } }
21890
21879
  function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
21891
21880
  i0.ɵɵelementContainerStart(0);
21892
- i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_cut_alert_1_Template, 3, 1, "cut-alert", 2);
21893
- i0.ɵɵelement(2, "br");
21894
- i0.ɵɵtemplate(3, QueryDetailsComponent_ng_container_0_p_3_Template, 4, 3, "p", 1);
21895
- i0.ɵɵelementStart(4, "div")(5, "table", 3);
21896
- i0.ɵɵpipe(6, "rpxTranslate");
21897
- i0.ɵɵelementStart(7, "caption", 4)(8, "div");
21898
- i0.ɵɵtext(9);
21899
- i0.ɵɵpipe(10, "rpxTranslate");
21881
+ i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_p_1_Template, 4, 3, "p", 1);
21882
+ i0.ɵɵelementStart(2, "div")(3, "table", 2);
21883
+ i0.ɵɵpipe(4, "rpxTranslate");
21884
+ i0.ɵɵelementStart(5, "caption", 3)(6, "div");
21885
+ i0.ɵɵtext(7);
21886
+ i0.ɵɵpipe(8, "rpxTranslate");
21900
21887
  i0.ɵɵelementEnd()();
21901
- i0.ɵɵelementStart(11, "tbody", 5)(12, "tr", 6)(13, "th", 7);
21902
- i0.ɵɵtext(14);
21903
- i0.ɵɵpipe(15, "rpxTranslate");
21888
+ i0.ɵɵelementStart(9, "tbody", 4)(10, "tr", 5)(11, "th", 6);
21889
+ i0.ɵɵtext(12);
21890
+ i0.ɵɵpipe(13, "rpxTranslate");
21904
21891
  i0.ɵɵelementEnd();
21905
- i0.ɵɵelementStart(16, "td", 8);
21906
- i0.ɵɵtext(17);
21892
+ i0.ɵɵelementStart(14, "td", 7);
21893
+ i0.ɵɵtext(15);
21907
21894
  i0.ɵɵelementEnd()();
21908
- i0.ɵɵelementStart(18, "tr", 6)(19, "th", 7);
21909
- i0.ɵɵtext(20);
21910
- i0.ɵɵpipe(21, "rpxTranslate");
21895
+ i0.ɵɵelementStart(16, "tr", 5)(17, "th", 6);
21896
+ i0.ɵɵtext(18);
21897
+ i0.ɵɵpipe(19, "rpxTranslate");
21911
21898
  i0.ɵɵelementEnd();
21912
- i0.ɵɵelementStart(22, "td", 8);
21913
- i0.ɵɵtext(23);
21914
- i0.ɵɵpipe(24, "date");
21899
+ i0.ɵɵelementStart(20, "td", 7);
21900
+ i0.ɵɵtext(21);
21901
+ i0.ɵɵpipe(22, "date");
21915
21902
  i0.ɵɵelementEnd()();
21916
- i0.ɵɵelementStart(25, "tr", 6)(26, "th", 7);
21917
- i0.ɵɵtext(27);
21918
- i0.ɵɵpipe(28, "rpxTranslate");
21903
+ i0.ɵɵelementStart(23, "tr", 5)(24, "th", 6);
21904
+ i0.ɵɵtext(25);
21905
+ i0.ɵɵpipe(26, "rpxTranslate");
21919
21906
  i0.ɵɵelementEnd();
21920
- i0.ɵɵelementStart(29, "td", 8);
21921
- i0.ɵɵtext(30);
21907
+ i0.ɵɵelementStart(27, "td", 7);
21908
+ i0.ɵɵtext(28);
21922
21909
  i0.ɵɵelementEnd()();
21923
- i0.ɵɵelementStart(31, "tr", 6)(32, "th", 7);
21924
- i0.ɵɵtext(33);
21925
- i0.ɵɵpipe(34, "rpxTranslate");
21910
+ i0.ɵɵelementStart(29, "tr", 5)(30, "th", 6);
21911
+ i0.ɵɵtext(31);
21912
+ i0.ɵɵpipe(32, "rpxTranslate");
21926
21913
  i0.ɵɵelementEnd();
21927
- i0.ɵɵelementStart(35, "td", 8);
21928
- i0.ɵɵtext(36);
21914
+ i0.ɵɵelementStart(33, "td", 7);
21915
+ i0.ɵɵtext(34);
21929
21916
  i0.ɵɵelementEnd()();
21930
- i0.ɵɵelementStart(37, "tr", 6)(38, "th", 7);
21931
- i0.ɵɵtext(39);
21932
- i0.ɵɵpipe(40, "rpxTranslate");
21917
+ i0.ɵɵelementStart(35, "tr", 5)(36, "th", 6);
21918
+ i0.ɵɵtext(37);
21919
+ i0.ɵɵpipe(38, "rpxTranslate");
21933
21920
  i0.ɵɵelementEnd();
21934
- i0.ɵɵelementStart(41, "td", 8);
21935
- i0.ɵɵtext(42);
21936
- i0.ɵɵpipe(43, "rpxTranslate");
21921
+ i0.ɵɵelementStart(39, "td", 7);
21922
+ i0.ɵɵtext(40);
21923
+ i0.ɵɵpipe(41, "rpxTranslate");
21937
21924
  i0.ɵɵelementEnd()();
21938
- 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);
21925
+ 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);
21939
21926
  i0.ɵɵelementEnd()()();
21940
- i0.ɵɵtemplate(46, QueryDetailsComponent_ng_container_0_ng_container_46_Template, 2, 1, "ng-container", 1);
21927
+ i0.ɵɵtemplate(44, QueryDetailsComponent_ng_container_0_ng_container_44_Template, 2, 1, "ng-container", 1);
21941
21928
  i0.ɵɵelementContainerEnd();
21942
21929
  } if (rf & 2) {
21943
- const ctx_r0 = i0.ɵɵnextContext();
21930
+ const ctx_r1 = i0.ɵɵnextContext();
21944
21931
  i0.ɵɵadvance();
21945
- i0.ɵɵproperty("ngIf", ctx_r0.hasRespondedToQuery() && !ctx_r0.showItem);
21932
+ i0.ɵɵproperty("ngIf", ctx_r1.showItem);
21946
21933
  i0.ɵɵadvance(2);
21947
- i0.ɵɵproperty("ngIf", ctx_r0.showItem);
21948
- i0.ɵɵadvance(2);
21949
- i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(6, 21, "Details of the query"));
21934
+ i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(4, 20, "Details of the query"));
21950
21935
  i0.ɵɵadvance(4);
21951
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 23, "Query details"));
21936
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 22, "Query details"));
21952
21937
  i0.ɵɵadvance(5);
21953
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 25, "Last submitted by"));
21938
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 24, "Last submitted by"));
21954
21939
  i0.ɵɵadvance(3);
21955
- i0.ɵɵtextInterpolate(ctx_r0.query.lastSubmittedBy);
21940
+ i0.ɵɵtextInterpolate(ctx_r1.query.lastSubmittedBy);
21956
21941
  i0.ɵɵadvance(3);
21957
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(21, 27, "Submission date"));
21942
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 26, "Submission date"));
21958
21943
  i0.ɵɵadvance(3);
21959
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(24, 29, ctx_r0.query.createdOn, "dd MMMM YYYY HH:mm"));
21944
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(22, 28, ctx_r1.query.createdOn, "dd MMMM YYYY HH:mm"));
21960
21945
  i0.ɵɵadvance(4);
21961
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(28, 32, "Query subject"));
21946
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(26, 31, "Query subject"));
21962
21947
  i0.ɵɵadvance(3);
21963
- i0.ɵɵtextInterpolate(ctx_r0.query.subject);
21948
+ i0.ɵɵtextInterpolate(ctx_r1.query.subject);
21964
21949
  i0.ɵɵadvance(3);
21965
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(34, 34, "Query body"));
21950
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(32, 33, "Query body"));
21966
21951
  i0.ɵɵadvance(3);
21967
- i0.ɵɵtextInterpolate(ctx_r0.query.body);
21952
+ i0.ɵɵtextInterpolate(ctx_r1.query.body);
21968
21953
  i0.ɵɵadvance(2);
21969
- i0.ɵɵclassProp("govuk-table__header--no-border", ctx_r0.query.isHearingRelated);
21954
+ i0.ɵɵclassProp("govuk-table__header--no-border", ctx_r1.query.isHearingRelated);
21970
21955
  i0.ɵɵadvance();
21971
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(40, 36, "Is the query hearing related?"), " ");
21956
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(38, 35, "Is the query hearing related?"), " ");
21972
21957
  i0.ɵɵadvance(2);
21973
- i0.ɵɵclassProp("govuk-table__cell--no-border", ctx_r0.query.isHearingRelated);
21958
+ i0.ɵɵclassProp("govuk-table__cell--no-border", ctx_r1.query.isHearingRelated);
21974
21959
  i0.ɵɵadvance();
21975
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(43, 38, "Is the query hearing related?", null, ctx_r0.query.isHearingRelated), "");
21960
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(41, 37, "Is the query hearing related?", null, ctx_r1.query.isHearingRelated), "");
21976
21961
  i0.ɵɵadvance(2);
21977
- i0.ɵɵproperty("ngIf", ctx_r0.query.isHearingRelated === "Yes");
21962
+ i0.ɵɵproperty("ngIf", ctx_r1.query.isHearingRelated === "Yes");
21978
21963
  i0.ɵɵadvance();
21979
- i0.ɵɵproperty("ngIf", ctx_r0.query.attachments.length > 0);
21964
+ i0.ɵɵproperty("ngIf", ctx_r1.query.attachments.length > 0);
21980
21965
  i0.ɵɵadvance();
21981
- i0.ɵɵproperty("ngIf", (ctx_r0.query.children == null ? null : ctx_r0.query.children.length) > 0);
21966
+ i0.ɵɵproperty("ngIf", (ctx_r1.query.children == null ? null : ctx_r1.query.children.length) > 0);
21982
21967
  } }
21983
21968
  class QueryDetailsComponent {
21984
21969
  sessionStorageService;
@@ -21990,7 +21975,6 @@ class QueryDetailsComponent {
21990
21975
  backClicked = new EventEmitter();
21991
21976
  hasResponded = new EventEmitter();
21992
21977
  showItem = true;
21993
- message;
21994
21978
  static QUERY_ITEM_RESPOND = '3';
21995
21979
  static QUERY_ITEM_FOLLOW_UP = '4';
21996
21980
  queryItemId;
@@ -22022,7 +22006,6 @@ class QueryDetailsComponent {
22022
22006
  this.hasResponded.emit(false);
22023
22007
  return false;
22024
22008
  }
22025
- this.message = Constants.TASK_COMPLETION_ERROR;
22026
22009
  this.hasResponded.emit(true);
22027
22010
  return true;
22028
22011
  }
@@ -22034,15 +22017,15 @@ class QueryDetailsComponent {
22034
22017
  return false;
22035
22018
  }
22036
22019
  static ɵfac = function QueryDetailsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router)); };
22037
- 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) {
22038
- i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 47, 42, "ng-container", 1);
22020
+ 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) {
22021
+ i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 45, 41, "ng-container", 1);
22039
22022
  } if (rf & 2) {
22040
22023
  i0.ɵɵproperty("ngIf", ctx.query);
22041
22024
  } }, styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
22042
22025
  }
22043
22026
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
22044
22027
  type: Component,
22045
- 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"] }]
22028
+ 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"] }]
22046
22029
  }], () => [{ type: SessionStorageService }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }], { query: [{
22047
22030
  type: Input
22048
22031
  }], caseId: [{
@@ -22054,7 +22037,7 @@ class QueryDetailsComponent {
22054
22037
  }], hasResponded: [{
22055
22038
  type: Output
22056
22039
  }] }); })();
22057
- (() => { (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 }); })();
22040
+ (() => { (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 }); })();
22058
22041
 
22059
22042
  class QueryEventCompletionComponent {
22060
22043
  eventCompletionParams;
@@ -22768,38 +22751,43 @@ class QueryWriteRespondToQueryComponent {
22768
22751
  });
22769
22752
  }
22770
22753
  ngOnChanges() {
22771
- if (this.caseQueriesCollections?.length > 0) {
22772
- if (!this.caseQueriesCollections[0]) {
22773
- console.error('caseQueriesCollections[0] is undefined!', this.caseQueriesCollections);
22774
- return;
22775
- }
22776
- const queryWithChildren = new QueryListData(this.caseQueriesCollections[0]);
22777
- const messageId = this.route.snapshot.params.dataid;
22778
- if (!messageId) {
22779
- console.warn('No messageId found in route params:', this.route.snapshot.params);
22780
- return;
22754
+ if (!this.caseQueriesCollections || this.caseQueriesCollections.length === 0) {
22755
+ // Silent return – this is not an error.
22756
+ return;
22757
+ }
22758
+ if (!this.caseQueriesCollections[0]) {
22759
+ console.error('caseQueriesCollections[0] is undefined!', this.caseQueriesCollections);
22760
+ return;
22761
+ }
22762
+ const messageId = this.route.snapshot.params?.dataid;
22763
+ if (!messageId) {
22764
+ console.warn('No messageId found in route params:', this.route.snapshot.params);
22765
+ return;
22766
+ }
22767
+ const allMessages = this.caseQueriesCollections
22768
+ .flatMap((caseData) => caseData?.caseMessages || []);
22769
+ const matchingMessage = allMessages.find((message) => message?.value?.id === messageId)?.value;
22770
+ if (!matchingMessage) {
22771
+ console.warn('No matching message found for ID:', messageId);
22772
+ return;
22773
+ }
22774
+ const queryWithChildren = new QueryListData(this.caseQueriesCollections[0]);
22775
+ let filteredQuery = [];
22776
+ if (this.queryItemId === QueryWriteRespondToQueryComponent.QUERY_ITEM_RESPOND) {
22777
+ if (matchingMessage?.parentId) {
22778
+ filteredQuery = queryWithChildren.queries.filter((query) => query?.id === matchingMessage.parentId);
22781
22779
  }
22782
- const filteredMessages = this.caseQueriesCollections
22783
- .map((caseData) => caseData?.caseMessages || []) // Ensure caseMessages is always an array
22784
- .flat() // Flatten into a single array of messages
22785
- .filter((message) => message?.value?.id === messageId); // Safe access
22786
- if (filteredMessages.length > 0) {
22787
- const matchingMessage = filteredMessages[0]?.value;
22788
- let filteredQuery = [];
22789
- if (this.queryItemId === QueryWriteRespondToQueryComponent.QUERY_ITEM_RESPOND) {
22790
- filteredQuery = queryWithChildren?.queries.filter((message) => filteredMessages[0]?.value?.id === message?.id);
22791
- if (matchingMessage) {
22792
- this.queryItemDisplay = new QueryListItem();
22793
- Object.assign(this.queryItemDisplay, matchingMessage);
22794
- this.queryItem = this.queryItemDisplay;
22795
- }
22796
- }
22797
- else {
22798
- filteredQuery = queryWithChildren?.queries.filter((message) => filteredMessages[0]?.value?.id === message?.id);
22799
- }
22800
- this.queryResponseStatus = filteredQuery[0]?.responseStatus;
22780
+ else {
22781
+ filteredQuery = queryWithChildren.queries.filter((query) => query?.id === matchingMessage.id);
22801
22782
  }
22783
+ this.queryItemDisplay = new QueryListItem();
22784
+ Object.assign(this.queryItemDisplay, matchingMessage);
22785
+ this.queryItem = this.queryItemDisplay;
22786
+ }
22787
+ else {
22788
+ filteredQuery = queryWithChildren.queries.filter((query) => query?.id === matchingMessage.id);
22802
22789
  }
22790
+ this.queryResponseStatus = filteredQuery[0]?.responseStatus;
22803
22791
  }
22804
22792
  hasResponded(value) {
22805
22793
  this.hasRespondedToQuery = value;
@@ -30845,7 +30833,7 @@ i0.ɵɵsetComponentScope(
30845
30833
  // Components for Query Management
30846
30834
  ReadQueryManagementFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i1$1.RouterLink, QueryDetailsComponent,
30847
30835
  QueryListComponent]; }, function () { return [i1.RpxTranslatePipe]; });
30848
- i0.ɵɵsetComponentScope(QueryDetailsComponent, function () { return [i5.NgForOf, i5.NgIf, AlertComponent, QueryAttachmentsReadComponent]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe]; });
30836
+ i0.ɵɵsetComponentScope(QueryDetailsComponent, function () { return [i5.NgForOf, i5.NgIf, QueryAttachmentsReadComponent]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe]; });
30849
30837
  i0.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, function () { return [i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryDetailsComponent,
30850
30838
  QueryCaseDetailsHeaderComponent]; }, function () { return [i1.RpxTranslatePipe]; });
30851
30839
  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,