@hmcts/ccd-case-ui-toolkit 6.16.0-restricted-case-access-v4 → 6.16.0-show-caseworker-name

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +230 -318
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/shared/components/case-viewer/services/case.resolver.js +6 -10
  6. package/esm2015/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.js +21 -10
  7. package/esm2015/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.js +47 -94
  8. package/esm2015/lib/shared/components/palette/query-management/components/query-details/query-details.component.js +60 -30
  9. package/esm2015/lib/shared/components/palette/query-management/components/query-list/query-list.component.js +5 -4
  10. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.js +62 -105
  11. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.js +19 -63
  12. package/esm2015/lib/shared/components/palette/query-management/enums/index.js +2 -1
  13. package/esm2015/lib/shared/components/palette/query-management/enums/query-item-response-status.enum.js +6 -0
  14. package/esm2015/lib/shared/components/palette/query-management/index.js +2 -1
  15. package/esm2015/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.js +6 -1
  16. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +222 -310
  17. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  18. package/lib/shared/components/case-viewer/services/case.resolver.d.ts.map +1 -1
  19. package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts +4 -0
  20. package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts.map +1 -1
  21. package/lib/shared/components/palette/query-management/enums/index.d.ts +1 -0
  22. package/lib/shared/components/palette/query-management/enums/index.d.ts.map +1 -1
  23. package/lib/shared/components/palette/query-management/enums/query-item-response-status.enum.d.ts +5 -0
  24. package/lib/shared/components/palette/query-management/enums/query-item-response-status.enum.d.ts.map +1 -0
  25. package/lib/shared/components/palette/query-management/index.d.ts +1 -0
  26. package/lib/shared/components/palette/query-management/index.d.ts.map +1 -1
  27. package/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.d.ts +2 -0
  28. package/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.d.ts.map +1 -1
  29. package/package.json +1 -1
@@ -20419,6 +20419,12 @@
20419
20419
  QualifyingQuestionsErrorMessage["SELECT_AN_OPTION"] = "Select an option";
20420
20420
  })(exports.QualifyingQuestionsErrorMessage || (exports.QualifyingQuestionsErrorMessage = {}));
20421
20421
 
20422
+ exports.QueryItemResponseStatus = void 0;
20423
+ (function (QueryItemResponseStatus) {
20424
+ QueryItemResponseStatus["NEW"] = "New";
20425
+ QueryItemResponseStatus["RESPONDED"] = "Responded";
20426
+ })(exports.QueryItemResponseStatus || (exports.QueryItemResponseStatus = {}));
20427
+
20422
20428
  function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_7_Template(rf, ctx) {
20423
20429
  if (rf & 1) {
20424
20430
  i0__namespace.ɵɵelementContainerStart(0);
@@ -20440,26 +20446,39 @@
20440
20446
  i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(6, 4, ctx_r1.qualifyingQuestionsErrorMessage.SELECT_AN_OPTION), " ");
20441
20447
  }
20442
20448
  }
20443
- function QualifyingQuestionOptionsComponent_ng_container_0_div_9_Template(rf, ctx) {
20449
+ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_9_ng_container_1_Template(rf, ctx) {
20444
20450
  if (rf & 1) {
20445
- i0__namespace.ɵɵelementStart(0, "div", 9);
20446
- i0__namespace.ɵɵelement(1, "input", 10);
20447
- i0__namespace.ɵɵelementStart(2, "label", 11);
20448
- i0__namespace.ɵɵtext(3);
20449
- i0__namespace.ɵɵpipe(4, "rpxTranslate");
20451
+ i0__namespace.ɵɵelementContainerStart(0);
20452
+ i0__namespace.ɵɵelement(1, "hr");
20453
+ i0__namespace.ɵɵelementContainerEnd();
20454
+ }
20455
+ }
20456
+ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_9_Template(rf, ctx) {
20457
+ if (rf & 1) {
20458
+ i0__namespace.ɵɵelementContainerStart(0);
20459
+ i0__namespace.ɵɵtemplate(1, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_9_ng_container_1_Template, 2, 0, "ng-container", 0);
20460
+ i0__namespace.ɵɵelementStart(2, "div", 9);
20461
+ i0__namespace.ɵɵelement(3, "input", 10);
20462
+ i0__namespace.ɵɵelementStart(4, "label", 11);
20463
+ i0__namespace.ɵɵtext(5);
20464
+ i0__namespace.ɵɵpipe(6, "rpxTranslate");
20450
20465
  i0__namespace.ɵɵelementEnd();
20451
20466
  i0__namespace.ɵɵelementEnd();
20467
+ i0__namespace.ɵɵelementContainerEnd();
20452
20468
  }
20453
20469
  if (rf & 2) {
20454
20470
  var qualifyingQuestion_r3 = ctx.$implicit;
20471
+ var isLast_r4 = ctx.last;
20455
20472
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
20456
20473
  i0__namespace.ɵɵadvance(1);
20474
+ i0__namespace.ɵɵproperty("ngIf", isLast_r4);
20475
+ i0__namespace.ɵɵadvance(2);
20457
20476
  i0__namespace.ɵɵpropertyInterpolate("id", qualifyingQuestion_r3.name);
20458
20477
  i0__namespace.ɵɵproperty("formControl", ctx_r2.qualifyingQuestionsControl)("value", qualifyingQuestion_r3);
20459
20478
  i0__namespace.ɵɵadvance(1);
20460
20479
  i0__namespace.ɵɵproperty("for", qualifyingQuestion_r3.name);
20461
20480
  i0__namespace.ɵɵadvance(1);
20462
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 5, qualifyingQuestion_r3.name));
20481
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(6, 6, qualifyingQuestion_r3.name));
20463
20482
  }
20464
20483
  }
20465
20484
  function QualifyingQuestionOptionsComponent_ng_container_0_Template(rf, ctx) {
@@ -20475,7 +20494,7 @@
20475
20494
  i0__namespace.ɵɵelementEnd();
20476
20495
  i0__namespace.ɵɵtemplate(7, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_7_Template, 7, 6, "ng-container", 0);
20477
20496
  i0__namespace.ɵɵelementStart(8, "div", 5);
20478
- i0__namespace.ɵɵtemplate(9, QualifyingQuestionOptionsComponent_ng_container_0_div_9_Template, 5, 7, "div", 6);
20497
+ i0__namespace.ɵɵtemplate(9, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_9_Template, 7, 8, "ng-container", 6);
20479
20498
  i0__namespace.ɵɵpipe(10, "async");
20480
20499
  i0__namespace.ɵɵelementEnd();
20481
20500
  i0__namespace.ɵɵelementEnd();
@@ -20508,7 +20527,7 @@
20508
20527
  return QualifyingQuestionOptionsComponent;
20509
20528
  }());
20510
20529
  QualifyingQuestionOptionsComponent.ɵfac = function QualifyingQuestionOptionsComponent_Factory(t) { return new (t || QualifyingQuestionOptionsComponent)(); };
20511
- QualifyingQuestionOptionsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QualifyingQuestionOptionsComponent, selectors: [["ccd-qualifying-question-options"]], inputs: { qualifyingQuestionsControl: "qualifyingQuestionsControl", qualifyingQuestions$: "qualifyingQuestions$" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-form-group"], [1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", 1, "govuk-radios"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["name", "qualifyingQuestionOption", "type", "radio", 1, "govuk-radios__input", 3, "id", "formControl", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"]], template: function QualifyingQuestionOptionsComponent_Template(rf, ctx) {
20530
+ QualifyingQuestionOptionsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QualifyingQuestionOptionsComponent, selectors: [["ccd-qualifying-question-options"]], inputs: { qualifyingQuestionsControl: "qualifyingQuestionsControl", qualifyingQuestions$: "qualifyingQuestions$" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-form-group"], [1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", 1, "govuk-radios"], [4, "ngFor", "ngForOf"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["name", "qualifyingQuestionOption", "type", "radio", 1, "govuk-radios__input", 3, "id", "formControl", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"]], template: function QualifyingQuestionOptionsComponent_Template(rf, ctx) {
20512
20531
  if (rf & 1) {
20513
20532
  i0__namespace.ɵɵtemplate(0, QualifyingQuestionOptionsComponent_ng_container_0_Template, 11, 9, "ng-container", 0);
20514
20533
  }
@@ -20666,6 +20685,14 @@
20666
20685
  enumerable: false,
20667
20686
  configurable: true
20668
20687
  });
20688
+ Object.defineProperty(QueryListItem.prototype, "responseStatus", {
20689
+ get: function () {
20690
+ var _a;
20691
+ return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? exports.QueryItemResponseStatus.RESPONDED : exports.QueryItemResponseStatus.NEW;
20692
+ },
20693
+ enumerable: false,
20694
+ configurable: true
20695
+ });
20669
20696
  return QueryListItem;
20670
20697
  }());
20671
20698
 
@@ -20735,29 +20762,7 @@
20735
20762
  }
20736
20763
  function QueryCheckYourAnswersComponent_dl_9_Template(rf, ctx) {
20737
20764
  if (rf & 1) {
20738
- i0__namespace.ɵɵelementStart(0, "dl", 8);
20739
- i0__namespace.ɵɵelementStart(1, "div", 9);
20740
- i0__namespace.ɵɵelementStart(2, "dt", 10);
20741
- i0__namespace.ɵɵtext(3);
20742
- i0__namespace.ɵɵpipe(4, "rpxTranslate");
20743
- i0__namespace.ɵɵelementEnd();
20744
- i0__namespace.ɵɵelementStart(5, "dd", 11);
20745
- i0__namespace.ɵɵtext(6);
20746
- i0__namespace.ɵɵelementEnd();
20747
- i0__namespace.ɵɵelementEnd();
20748
- i0__namespace.ɵɵelementEnd();
20749
- }
20750
- if (rf & 2) {
20751
- var ctx_r4 = i0__namespace.ɵɵnextContext();
20752
- i0__namespace.ɵɵadvance(3);
20753
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 2, "Submitted query"), " ");
20754
- i0__namespace.ɵɵadvance(3);
20755
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r4.queryItem.subject, " ");
20756
- }
20757
- }
20758
- function QueryCheckYourAnswersComponent_dl_21_Template(rf, ctx) {
20759
- if (rf & 1) {
20760
- var _r9_1 = i0__namespace.ɵɵgetCurrentView();
20765
+ var _r8_1 = i0__namespace.ɵɵgetCurrentView();
20761
20766
  i0__namespace.ɵɵelementStart(0, "dl", 8);
20762
20767
  i0__namespace.ɵɵelementStart(1, "div", 9);
20763
20768
  i0__namespace.ɵɵelementStart(2, "dt", 10);
@@ -20769,7 +20774,7 @@
20769
20774
  i0__namespace.ɵɵelementEnd();
20770
20775
  i0__namespace.ɵɵelementStart(7, "dd", 12);
20771
20776
  i0__namespace.ɵɵelementStart(8, "a", 13);
20772
- i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_dl_21_Template_a_click_8_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r8 = i0__namespace.ɵɵnextContext(); return ctx_r8.goBack(); });
20777
+ i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_dl_9_Template_a_click_8_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var ctx_r7 = i0__namespace.ɵɵnextContext(); return ctx_r7.goBack(); });
20773
20778
  i0__namespace.ɵɵtext(9);
20774
20779
  i0__namespace.ɵɵpipe(10, "rpxTranslate");
20775
20780
  i0__namespace.ɵɵelementEnd();
@@ -20778,17 +20783,17 @@
20778
20783
  i0__namespace.ɵɵelementEnd();
20779
20784
  }
20780
20785
  if (rf & 2) {
20781
- var ctx_r5 = i0__namespace.ɵɵnextContext();
20786
+ var ctx_r4 = i0__namespace.ɵɵnextContext();
20782
20787
  var tmp_1_0 = null;
20783
20788
  i0__namespace.ɵɵadvance(3);
20784
20789
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 3, "Query subject"), " ");
20785
20790
  i0__namespace.ɵɵadvance(3);
20786
- i0__namespace.ɵɵtextInterpolate1(" ", (tmp_1_0 = ctx_r5.formGroup.get("subject")) == null ? null : tmp_1_0.value, " ");
20791
+ i0__namespace.ɵɵtextInterpolate1(" ", (tmp_1_0 = ctx_r4.formGroup.get("subject")) == null ? null : tmp_1_0.value, " ");
20787
20792
  i0__namespace.ɵɵadvance(3);
20788
20793
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(10, 5, "Change"), " ");
20789
20794
  }
20790
20795
  }
20791
- function QueryCheckYourAnswersComponent_dl_33_ng_container_6_Template(rf, ctx) {
20796
+ function QueryCheckYourAnswersComponent_dl_21_ng_container_6_Template(rf, ctx) {
20792
20797
  if (rf & 1) {
20793
20798
  i0__namespace.ɵɵelementContainerStart(0);
20794
20799
  i0__namespace.ɵɵtext(1);
@@ -20800,7 +20805,7 @@
20800
20805
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(2, 1, "Is the query hearing related?", null, "Yes"), " ");
20801
20806
  }
20802
20807
  }
20803
- function QueryCheckYourAnswersComponent_dl_33_ng_template_7_Template(rf, ctx) {
20808
+ function QueryCheckYourAnswersComponent_dl_21_ng_template_7_Template(rf, ctx) {
20804
20809
  if (rf & 1) {
20805
20810
  i0__namespace.ɵɵtext(0);
20806
20811
  i0__namespace.ɵɵpipe(1, "rpxTranslate");
@@ -20809,9 +20814,9 @@
20809
20814
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(1, 1, "Is the query hearing related?", null, "No"), " ");
20810
20815
  }
20811
20816
  }
20812
- function QueryCheckYourAnswersComponent_dl_33_div_13_Template(rf, ctx) {
20817
+ function QueryCheckYourAnswersComponent_dl_21_div_13_Template(rf, ctx) {
20813
20818
  if (rf & 1) {
20814
- var _r15_1 = i0__namespace.ɵɵgetCurrentView();
20819
+ var _r14_1 = i0__namespace.ɵɵgetCurrentView();
20815
20820
  i0__namespace.ɵɵelementStart(0, "div", 9);
20816
20821
  i0__namespace.ɵɵelementStart(1, "dt", 10);
20817
20822
  i0__namespace.ɵɵtext(2);
@@ -20823,7 +20828,7 @@
20823
20828
  i0__namespace.ɵɵelementEnd();
20824
20829
  i0__namespace.ɵɵelementStart(7, "dd", 12);
20825
20830
  i0__namespace.ɵɵelementStart(8, "a", 13);
20826
- i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_dl_33_div_13_Template_a_click_8_listener() { i0__namespace.ɵɵrestoreView(_r15_1); var ctx_r14 = i0__namespace.ɵɵnextContext(2); return ctx_r14.goBack(); });
20831
+ i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_dl_21_div_13_Template_a_click_8_listener() { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r13 = i0__namespace.ɵɵnextContext(2); return ctx_r13.goBack(); });
20827
20832
  i0__namespace.ɵɵtext(9);
20828
20833
  i0__namespace.ɵɵpipe(10, "rpxTranslate");
20829
20834
  i0__namespace.ɵɵelementEnd();
@@ -20831,19 +20836,19 @@
20831
20836
  i0__namespace.ɵɵelementEnd();
20832
20837
  }
20833
20838
  if (rf & 2) {
20834
- var ctx_r13 = i0__namespace.ɵɵnextContext(2);
20839
+ var ctx_r12 = i0__namespace.ɵɵnextContext(2);
20835
20840
  var tmp_1_0 = null;
20836
20841
  i0__namespace.ɵɵadvance(2);
20837
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(3, 3, "What is the date of the hearing your query is related to?"), " ");
20842
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r12.queryCreateContext === ctx_r12.queryCreateContextEnum.NEW_QUERY ? "What is the date of the hearing?" : i0__namespace.ɵɵpipeBind1(3, 3, "What is the date of the hearing your query is related to?"), " ");
20838
20843
  i0__namespace.ɵɵadvance(3);
20839
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(6, 5, (tmp_1_0 = ctx_r13.formGroup.get("hearingDate")) == null ? null : tmp_1_0.value, "dd MMM yyyy"), " ");
20844
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(6, 5, (tmp_1_0 = ctx_r12.formGroup.get("hearingDate")) == null ? null : tmp_1_0.value, "dd MMM yyyy"), " ");
20840
20845
  i0__namespace.ɵɵadvance(4);
20841
20846
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(10, 8, "Change"), " ");
20842
20847
  }
20843
20848
  }
20844
- function QueryCheckYourAnswersComponent_dl_33_Template(rf, ctx) {
20849
+ function QueryCheckYourAnswersComponent_dl_21_Template(rf, ctx) {
20845
20850
  if (rf & 1) {
20846
- var _r17_1 = i0__namespace.ɵɵgetCurrentView();
20851
+ var _r16_1 = i0__namespace.ɵɵgetCurrentView();
20847
20852
  i0__namespace.ɵɵelementStart(0, "dl", 8);
20848
20853
  i0__namespace.ɵɵelementStart(1, "div", 9);
20849
20854
  i0__namespace.ɵɵelementStart(2, "dt", 10);
@@ -20851,42 +20856,42 @@
20851
20856
  i0__namespace.ɵɵpipe(4, "rpxTranslate");
20852
20857
  i0__namespace.ɵɵelementEnd();
20853
20858
  i0__namespace.ɵɵelementStart(5, "dd", 11);
20854
- i0__namespace.ɵɵtemplate(6, QueryCheckYourAnswersComponent_dl_33_ng_container_6_Template, 3, 5, "ng-container", 4);
20855
- i0__namespace.ɵɵtemplate(7, QueryCheckYourAnswersComponent_dl_33_ng_template_7_Template, 2, 5, "ng-template", null, 19, i0__namespace.ɵɵtemplateRefExtractor);
20859
+ i0__namespace.ɵɵtemplate(6, QueryCheckYourAnswersComponent_dl_21_ng_container_6_Template, 3, 5, "ng-container", 4);
20860
+ i0__namespace.ɵɵtemplate(7, QueryCheckYourAnswersComponent_dl_21_ng_template_7_Template, 2, 5, "ng-template", null, 19, i0__namespace.ɵɵtemplateRefExtractor);
20856
20861
  i0__namespace.ɵɵelementEnd();
20857
20862
  i0__namespace.ɵɵelementStart(9, "dd", 12);
20858
20863
  i0__namespace.ɵɵelementStart(10, "a", 13);
20859
- i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_dl_33_Template_a_click_10_listener() { i0__namespace.ɵɵrestoreView(_r17_1); var ctx_r16 = i0__namespace.ɵɵnextContext(); return ctx_r16.goBack(); });
20864
+ i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_dl_21_Template_a_click_10_listener() { i0__namespace.ɵɵrestoreView(_r16_1); var ctx_r15 = i0__namespace.ɵɵnextContext(); return ctx_r15.goBack(); });
20860
20865
  i0__namespace.ɵɵtext(11);
20861
20866
  i0__namespace.ɵɵpipe(12, "rpxTranslate");
20862
20867
  i0__namespace.ɵɵelementEnd();
20863
20868
  i0__namespace.ɵɵelementEnd();
20864
20869
  i0__namespace.ɵɵelementEnd();
20865
- i0__namespace.ɵɵtemplate(13, QueryCheckYourAnswersComponent_dl_33_div_13_Template, 11, 10, "div", 20);
20870
+ i0__namespace.ɵɵtemplate(13, QueryCheckYourAnswersComponent_dl_21_div_13_Template, 11, 10, "div", 20);
20866
20871
  i0__namespace.ɵɵelementEnd();
20867
20872
  }
20868
20873
  if (rf & 2) {
20869
- var _r11 = i0__namespace.ɵɵreference(8);
20870
- var ctx_r6 = i0__namespace.ɵɵnextContext();
20874
+ var _r10 = i0__namespace.ɵɵreference(8);
20875
+ var ctx_r5 = i0__namespace.ɵɵnextContext();
20871
20876
  var tmp_1_0 = null;
20872
20877
  var tmp_4_0 = null;
20873
20878
  i0__namespace.ɵɵadvance(3);
20874
20879
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 5, "Is the query hearing related?"), " ");
20875
20880
  i0__namespace.ɵɵadvance(3);
20876
- i0__namespace.ɵɵproperty("ngIf", ((tmp_1_0 = ctx_r6.formGroup.get("isHearingRelated")) == null ? null : tmp_1_0.value) === true)("ngIfElse", _r11);
20881
+ i0__namespace.ɵɵproperty("ngIf", ((tmp_1_0 = ctx_r5.formGroup.get("isHearingRelated")) == null ? null : tmp_1_0.value) === true)("ngIfElse", _r10);
20877
20882
  i0__namespace.ɵɵadvance(5);
20878
20883
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(12, 7, "Change"), " ");
20879
20884
  i0__namespace.ɵɵadvance(2);
20880
- i0__namespace.ɵɵproperty("ngIf", (tmp_4_0 = ctx_r6.formGroup.get("isHearingRelated")) == null ? null : tmp_4_0.value);
20885
+ i0__namespace.ɵɵproperty("ngIf", (tmp_4_0 = ctx_r5.formGroup.get("isHearingRelated")) == null ? null : tmp_4_0.value);
20881
20886
  }
20882
20887
  }
20883
- function QueryCheckYourAnswersComponent_ccd_query_attachments_read_40_Template(rf, ctx) {
20888
+ function QueryCheckYourAnswersComponent_ccd_query_attachments_read_28_Template(rf, ctx) {
20884
20889
  if (rf & 1) {
20885
20890
  i0__namespace.ɵɵelement(0, "ccd-query-attachments-read", 21);
20886
20891
  }
20887
20892
  if (rf & 2) {
20888
- var ctx_r7 = i0__namespace.ɵɵnextContext();
20889
- i0__namespace.ɵɵproperty("attachments", ctx_r7.formGroup.get("attachments").value);
20893
+ var ctx_r6 = i0__namespace.ɵɵnextContext();
20894
+ i0__namespace.ɵɵproperty("attachments", ctx_r6.formGroup.get("attachments").value);
20890
20895
  }
20891
20896
  }
20892
20897
  var QueryCheckYourAnswersComponent = /** @class */ (function () {
@@ -20900,7 +20905,7 @@
20900
20905
  return QueryCheckYourAnswersComponent;
20901
20906
  }());
20902
20907
  QueryCheckYourAnswersComponent.ɵfac = function QueryCheckYourAnswersComponent_Factory(t) { return new (t || QueryCheckYourAnswersComponent)(); };
20903
- QueryCheckYourAnswersComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", queryCreateContext: "queryCreateContext" }, outputs: { backClicked: "backClicked" }, decls: 53, vars: 33, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], [4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfElse"], ["defaultCheckYourAnswersTitle", ""], [1, "govuk-!-margin-bottom-4"], ["class", "govuk-summary-list govuk-!-margin-bottom-0", 4, "ngIf"], [1, "govuk-summary-list", "govuk-!-margin-bottom-0"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "attachments", 4, "ngIf"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", 1, "govuk-button"], [1, "govuk-caption-l"], ["isHearingRelatedFalse", ""], ["class", "govuk-summary-list__row", 4, "ngIf"], [3, "attachments"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) {
20908
+ QueryCheckYourAnswersComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", queryCreateContext: "queryCreateContext" }, outputs: { backClicked: "backClicked" }, decls: 41, vars: 25, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], [4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfElse"], ["defaultCheckYourAnswersTitle", ""], [1, "govuk-!-margin-bottom-4"], ["class", "govuk-summary-list govuk-!-margin-bottom-0", 4, "ngIf"], [1, "govuk-summary-list", "govuk-!-margin-bottom-0"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "attachments", 4, "ngIf"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", 1, "govuk-button"], [1, "govuk-caption-l"], ["isHearingRelatedFalse", ""], ["class", "govuk-summary-list__row", 4, "ngIf"], [3, "attachments"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) {
20904
20909
  if (rf & 1) {
20905
20910
  i0__namespace.ɵɵelementStart(0, "div", 0);
20906
20911
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -20912,7 +20917,7 @@
20912
20917
  i0__namespace.ɵɵelementStart(7, "div", 6);
20913
20918
  i0__namespace.ɵɵelement(8, "ccd-query-case-details-header");
20914
20919
  i0__namespace.ɵɵelementEnd();
20915
- i0__namespace.ɵɵtemplate(9, QueryCheckYourAnswersComponent_dl_9_Template, 7, 4, "dl", 7);
20920
+ i0__namespace.ɵɵtemplate(9, QueryCheckYourAnswersComponent_dl_9_Template, 11, 7, "dl", 7);
20916
20921
  i0__namespace.ɵɵelementStart(10, "dl", 8);
20917
20922
  i0__namespace.ɵɵelementStart(11, "div", 9);
20918
20923
  i0__namespace.ɵɵelementStart(12, "dt", 10);
@@ -20931,15 +20936,15 @@
20931
20936
  i0__namespace.ɵɵelementEnd();
20932
20937
  i0__namespace.ɵɵelementEnd();
20933
20938
  i0__namespace.ɵɵelementEnd();
20934
- i0__namespace.ɵɵtemplate(21, QueryCheckYourAnswersComponent_dl_21_Template, 11, 7, "dl", 7);
20939
+ i0__namespace.ɵɵtemplate(21, QueryCheckYourAnswersComponent_dl_21_Template, 14, 9, "dl", 7);
20935
20940
  i0__namespace.ɵɵelementStart(22, "dl", 8);
20936
20941
  i0__namespace.ɵɵelementStart(23, "div", 9);
20937
20942
  i0__namespace.ɵɵelementStart(24, "dt", 10);
20938
20943
  i0__namespace.ɵɵtext(25);
20939
20944
  i0__namespace.ɵɵpipe(26, "rpxTranslate");
20940
20945
  i0__namespace.ɵɵelementEnd();
20941
- i0__namespace.ɵɵelementStart(27, "dd", 11);
20942
- i0__namespace.ɵɵtext(28);
20946
+ i0__namespace.ɵɵelementStart(27, "dd", 14);
20947
+ i0__namespace.ɵɵtemplate(28, QueryCheckYourAnswersComponent_ccd_query_attachments_read_28_Template, 1, 1, "ccd-query-attachments-read", 15);
20943
20948
  i0__namespace.ɵɵelementEnd();
20944
20949
  i0__namespace.ɵɵelementStart(29, "dd", 12);
20945
20950
  i0__namespace.ɵɵelementStart(30, "a", 13);
@@ -20950,35 +20955,16 @@
20950
20955
  i0__namespace.ɵɵelementEnd();
20951
20956
  i0__namespace.ɵɵelementEnd();
20952
20957
  i0__namespace.ɵɵelementEnd();
20953
- i0__namespace.ɵɵtemplate(33, QueryCheckYourAnswersComponent_dl_33_Template, 14, 9, "dl", 7);
20954
- i0__namespace.ɵɵelementStart(34, "dl", 8);
20955
- i0__namespace.ɵɵelementStart(35, "div", 9);
20956
- i0__namespace.ɵɵelementStart(36, "dt", 10);
20957
- i0__namespace.ɵɵtext(37);
20958
- i0__namespace.ɵɵpipe(38, "rpxTranslate");
20959
- i0__namespace.ɵɵelementEnd();
20960
- i0__namespace.ɵɵelementStart(39, "dd", 14);
20961
- i0__namespace.ɵɵtemplate(40, QueryCheckYourAnswersComponent_ccd_query_attachments_read_40_Template, 1, 1, "ccd-query-attachments-read", 15);
20962
- i0__namespace.ɵɵelementEnd();
20963
- i0__namespace.ɵɵelementStart(41, "dd", 12);
20964
- i0__namespace.ɵɵelementStart(42, "a", 13);
20965
- i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_a_click_42_listener() { return ctx.goBack(); });
20966
- i0__namespace.ɵɵtext(43);
20967
- i0__namespace.ɵɵpipe(44, "rpxTranslate");
20968
- i0__namespace.ɵɵelementEnd();
20969
- i0__namespace.ɵɵelementEnd();
20958
+ i0__namespace.ɵɵelement(33, "br");
20959
+ i0__namespace.ɵɵelementStart(34, "div");
20960
+ i0__namespace.ɵɵelementStart(35, "button", 16);
20961
+ i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_button_click_35_listener() { return ctx.goBack(); });
20962
+ i0__namespace.ɵɵtext(36);
20963
+ i0__namespace.ɵɵpipe(37, "rpxTranslate");
20970
20964
  i0__namespace.ɵɵelementEnd();
20971
- i0__namespace.ɵɵelementEnd();
20972
- i0__namespace.ɵɵelement(45, "br");
20973
- i0__namespace.ɵɵelementStart(46, "div");
20974
- i0__namespace.ɵɵelementStart(47, "button", 16);
20975
- i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_button_click_47_listener() { return ctx.goBack(); });
20976
- i0__namespace.ɵɵtext(48);
20977
- i0__namespace.ɵɵpipe(49, "rpxTranslate");
20978
- i0__namespace.ɵɵelementEnd();
20979
- i0__namespace.ɵɵelementStart(50, "button", 17);
20980
- i0__namespace.ɵɵtext(51);
20981
- i0__namespace.ɵɵpipe(52, "rpxTranslate");
20965
+ i0__namespace.ɵɵelementStart(38, "button", 17);
20966
+ i0__namespace.ɵɵtext(39);
20967
+ i0__namespace.ɵɵpipe(40, "rpxTranslate");
20982
20968
  i0__namespace.ɵɵelementEnd();
20983
20969
  i0__namespace.ɵɵelementEnd();
20984
20970
  i0__namespace.ɵɵelementEnd();
@@ -20987,39 +20973,30 @@
20987
20973
  if (rf & 2) {
20988
20974
  var _r2 = i0__namespace.ɵɵreference(6);
20989
20975
  var tmp_5_0 = null;
20990
- var tmp_9_0 = null;
20991
20976
  i0__namespace.ɵɵadvance(2);
20992
20977
  i0__namespace.ɵɵproperty("ngIf", ctx.queryCreateContext === ctx.queryCreateContextEnum.NEW_QUERY);
20993
20978
  i0__namespace.ɵɵadvance(2);
20994
20979
  i0__namespace.ɵɵproperty("ngIf", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND)("ngIfElse", _r2);
20995
20980
  i0__namespace.ɵɵadvance(5);
20996
- i0__namespace.ɵɵproperty("ngIf", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND);
20997
- i0__namespace.ɵɵadvance(4);
20998
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(14, 17, "Full name"), " ");
20999
- i0__namespace.ɵɵadvance(3);
21000
- i0__namespace.ɵɵtextInterpolate1(" ", (tmp_5_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_5_0.value, " ");
21001
- i0__namespace.ɵɵadvance(3);
21002
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(20, 19, "Change"), " ");
21003
- i0__namespace.ɵɵadvance(2);
21004
20981
  i0__namespace.ɵɵproperty("ngIf", ctx.queryCreateContext === ctx.queryCreateContextEnum.NEW_QUERY);
21005
20982
  i0__namespace.ɵɵadvance(4);
21006
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Response message" : i0__namespace.ɵɵpipeBind1(26, 21, "Query body"), " ");
20983
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Response message" : i0__namespace.ɵɵpipeBind1(14, 13, "Query detail"), " ");
21007
20984
  i0__namespace.ɵɵadvance(3);
21008
- i0__namespace.ɵɵtextInterpolate1(" ", (tmp_9_0 = ctx.formGroup.get("body")) == null ? null : tmp_9_0.value, " ");
20985
+ i0__namespace.ɵɵtextInterpolate1(" ", (tmp_5_0 = ctx.formGroup.get("body")) == null ? null : tmp_5_0.value, " ");
21009
20986
  i0__namespace.ɵɵadvance(3);
21010
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(32, 23, "Change"), " ");
20987
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(20, 15, "Change"), " ");
21011
20988
  i0__namespace.ɵɵadvance(2);
21012
20989
  i0__namespace.ɵɵproperty("ngIf", ctx.queryCreateContext === ctx.queryCreateContextEnum.NEW_QUERY);
21013
20990
  i0__namespace.ɵɵadvance(4);
21014
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(38, 25, "Document attached"), " ");
20991
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.NEW_QUERY ? "Upload a file to the query" : i0__namespace.ɵɵpipeBind1(26, 17, "Document attached"), " ");
21015
20992
  i0__namespace.ɵɵadvance(3);
21016
20993
  i0__namespace.ɵɵproperty("ngIf", ctx.formGroup.get("attachments").value);
21017
20994
  i0__namespace.ɵɵadvance(3);
21018
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(44, 27, "Change"), " ");
20995
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(32, 19, "Change"), " ");
21019
20996
  i0__namespace.ɵɵadvance(5);
21020
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(49, 29, "Previous"), " ");
20997
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(37, 21, "Previous"), " ");
21021
20998
  i0__namespace.ɵɵadvance(3);
21022
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(52, 31, "Submit"), " ");
20999
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(40, 23, "Submit"), " ");
21023
21000
  }
21024
21001
  }, styles: [".govuk-summary-list__value--documentAttached[_ngcontent-%COMP%]{vertical-align:middle}"] });
21025
21002
  (function () {
@@ -21196,9 +21173,29 @@
21196
21173
  }] });
21197
21174
  })();
21198
21175
 
21199
- function QueryDetailsComponent_ng_container_0_ng_container_10_ng_container_1_ng_container_1_ccd_query_attachments_read_25_Template(rf, ctx) {
21176
+ function QueryDetailsComponent_ng_container_0_ng_container_10_ng_container_1_ng_container_1_tr_14_Template(rf, ctx) {
21177
+ if (rf & 1) {
21178
+ i0__namespace.ɵɵelementStart(0, "tr", 10);
21179
+ i0__namespace.ɵɵelementStart(1, "th", 11);
21180
+ i0__namespace.ɵɵtext(2);
21181
+ i0__namespace.ɵɵpipe(3, "rpxTranslate");
21182
+ i0__namespace.ɵɵelementEnd();
21183
+ i0__namespace.ɵɵelementStart(4, "td", 12);
21184
+ i0__namespace.ɵɵtext(5);
21185
+ i0__namespace.ɵɵelementEnd();
21186
+ i0__namespace.ɵɵelementEnd();
21187
+ }
21188
+ if (rf & 2) {
21189
+ var child_r5 = i0__namespace.ɵɵnextContext(2).$implicit;
21190
+ i0__namespace.ɵɵadvance(2);
21191
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Caseworker name"));
21192
+ i0__namespace.ɵɵadvance(3);
21193
+ i0__namespace.ɵɵtextInterpolate(child_r5.name);
21194
+ }
21195
+ }
21196
+ function QueryDetailsComponent_ng_container_0_ng_container_10_ng_container_1_ng_container_1_ccd_query_attachments_read_26_Template(rf, ctx) {
21200
21197
  if (rf & 1) {
21201
- i0__namespace.ɵɵelement(0, "ccd-query-attachments-read", 14);
21198
+ i0__namespace.ɵɵelement(0, "ccd-query-attachments-read", 15);
21202
21199
  }
21203
21200
  if (rf & 2) {
21204
21201
  var child_r5 = i0__namespace.ɵɵnextContext(2).$implicit;
@@ -21225,22 +21222,23 @@
21225
21222
  i0__namespace.ɵɵpipe(13, "date");
21226
21223
  i0__namespace.ɵɵelementEnd();
21227
21224
  i0__namespace.ɵɵelementEnd();
21228
- i0__namespace.ɵɵelementStart(14, "tr", 10);
21229
- i0__namespace.ɵɵelementStart(15, "th", 11);
21230
- i0__namespace.ɵɵtext(16);
21231
- i0__namespace.ɵɵpipe(17, "rpxTranslate");
21225
+ i0__namespace.ɵɵtemplate(14, QueryDetailsComponent_ng_container_0_ng_container_10_ng_container_1_ng_container_1_tr_14_Template, 6, 4, "tr", 13);
21226
+ i0__namespace.ɵɵelementStart(15, "tr", 10);
21227
+ i0__namespace.ɵɵelementStart(16, "th", 11);
21228
+ i0__namespace.ɵɵtext(17);
21229
+ i0__namespace.ɵɵpipe(18, "rpxTranslate");
21232
21230
  i0__namespace.ɵɵelementEnd();
21233
- i0__namespace.ɵɵelementStart(18, "td", 12);
21234
- i0__namespace.ɵɵtext(19);
21231
+ i0__namespace.ɵɵelementStart(19, "td", 12);
21232
+ i0__namespace.ɵɵtext(20);
21235
21233
  i0__namespace.ɵɵelementEnd();
21236
21234
  i0__namespace.ɵɵelementEnd();
21237
- i0__namespace.ɵɵelementStart(20, "tr", 10);
21238
- i0__namespace.ɵɵelementStart(21, "th", 11);
21239
- i0__namespace.ɵɵtext(22);
21240
- i0__namespace.ɵɵpipe(23, "rpxTranslate");
21235
+ i0__namespace.ɵɵelementStart(21, "tr", 10);
21236
+ i0__namespace.ɵɵelementStart(22, "th", 11);
21237
+ i0__namespace.ɵɵtext(23);
21238
+ i0__namespace.ɵɵpipe(24, "rpxTranslate");
21241
21239
  i0__namespace.ɵɵelementEnd();
21242
- i0__namespace.ɵɵelementStart(24, "td", 12);
21243
- i0__namespace.ɵɵtemplate(25, QueryDetailsComponent_ng_container_0_ng_container_10_ng_container_1_ng_container_1_ccd_query_attachments_read_25_Template, 1, 1, "ccd-query-attachments-read", 13);
21240
+ i0__namespace.ɵɵelementStart(25, "td", 12);
21241
+ i0__namespace.ɵɵtemplate(26, QueryDetailsComponent_ng_container_0_ng_container_10_ng_container_1_ng_container_1_ccd_query_attachments_read_26_Template, 1, 1, "ccd-query-attachments-read", 14);
21244
21242
  i0__namespace.ɵɵelementEnd();
21245
21243
  i0__namespace.ɵɵelementEnd();
21246
21244
  i0__namespace.ɵɵelementEnd();
@@ -21249,20 +21247,23 @@
21249
21247
  }
21250
21248
  if (rf & 2) {
21251
21249
  var child_r5 = i0__namespace.ɵɵnextContext().$implicit;
21250
+ var ctx_r7 = i0__namespace.ɵɵnextContext(3);
21252
21251
  i0__namespace.ɵɵadvance(2);
21253
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 8, "Response"));
21252
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 9, "Response"));
21254
21253
  i0__namespace.ɵɵadvance(2);
21255
- i0__namespace.ɵɵattribute("aria-describedby", i0__namespace.ɵɵpipeBind1(5, 10, "Response of the query"));
21254
+ i0__namespace.ɵɵattribute("aria-describedby", i0__namespace.ɵɵpipeBind1(5, 11, "Response of the query"));
21256
21255
  i0__namespace.ɵɵadvance(5);
21257
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(10, 12, "Last response date"));
21256
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(10, 13, "Last response date"));
21258
21257
  i0__namespace.ɵɵadvance(3);
21259
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13, 14, child_r5.createdOn, "dd MMM yyyy"));
21260
- i0__namespace.ɵɵadvance(4);
21261
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(17, 17, "Response detail"));
21258
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13, 15, child_r5.createdOn, "dd MMM yyyy"));
21259
+ i0__namespace.ɵɵadvance(2);
21260
+ i0__namespace.ɵɵproperty("ngIf", ctx_r7.isCaseworker());
21261
+ i0__namespace.ɵɵadvance(3);
21262
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(18, 18, "Response detail"));
21262
21263
  i0__namespace.ɵɵadvance(3);
21263
21264
  i0__namespace.ɵɵtextInterpolate(child_r5.body);
21264
21265
  i0__namespace.ɵɵadvance(3);
21265
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(23, 19, "Attachments"));
21266
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(24, 20, "Attachments"));
21266
21267
  i0__namespace.ɵɵadvance(3);
21267
21268
  i0__namespace.ɵɵproperty("ngIf", child_r5.attachments);
21268
21269
  }
@@ -21330,7 +21331,7 @@
21330
21331
  function QueryDetailsComponent_ng_container_0_ng_container_10_ng_container_1_Template(rf, ctx) {
21331
21332
  if (rf & 1) {
21332
21333
  i0__namespace.ɵɵelementContainerStart(0);
21333
- i0__namespace.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_10_ng_container_1_ng_container_1_Template, 26, 21, "ng-container", 4);
21334
+ i0__namespace.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_10_ng_container_1_ng_container_1_Template, 27, 22, "ng-container", 4);
21334
21335
  i0__namespace.ɵɵtemplate(2, QueryDetailsComponent_ng_container_0_ng_container_10_ng_container_1_ng_template_2_Template, 25, 21, "ng-template", null, 7, i0__namespace.ɵɵtemplateRefExtractor);
21335
21336
  i0__namespace.ɵɵelementContainerEnd();
21336
21337
  }
@@ -21356,7 +21357,7 @@
21356
21357
  function QueryDetailsComponent_ng_container_0_ng_template_11_Template(rf, ctx) {
21357
21358
  if (rf & 1) {
21358
21359
  i0__namespace.ɵɵelementStart(0, "div");
21359
- i0__namespace.ɵɵelementStart(1, "p", 15);
21360
+ i0__namespace.ɵɵelementStart(1, "p", 16);
21360
21361
  i0__namespace.ɵɵtext(2);
21361
21362
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
21362
21363
  i0__namespace.ɵɵelementEnd();
@@ -21375,12 +21376,12 @@
21375
21376
  }
21376
21377
  function QueryDetailsComponent_ng_container_0_Template(rf, ctx) {
21377
21378
  if (rf & 1) {
21378
- var _r15_1 = i0__namespace.ɵɵgetCurrentView();
21379
+ var _r17_1 = i0__namespace.ɵɵgetCurrentView();
21379
21380
  i0__namespace.ɵɵelementContainerStart(0);
21380
21381
  i0__namespace.ɵɵelement(1, "br");
21381
21382
  i0__namespace.ɵɵelementStart(2, "p");
21382
21383
  i0__namespace.ɵɵelementStart(3, "a", 1);
21383
- i0__namespace.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r15_1); var ctx_r14 = i0__namespace.ɵɵnextContext(); return ctx_r14.onBack(); });
21384
+ i0__namespace.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r17_1); var ctx_r16 = i0__namespace.ɵɵnextContext(); return ctx_r16.onBack(); });
21384
21385
  i0__namespace.ɵɵtext(4);
21385
21386
  i0__namespace.ɵɵpipe(5, "rpxTranslate");
21386
21387
  i0__namespace.ɵɵelementEnd();
@@ -21408,16 +21409,23 @@
21408
21409
  }
21409
21410
  }
21410
21411
  var QueryDetailsComponent = /** @class */ (function () {
21411
- function QueryDetailsComponent() {
21412
+ function QueryDetailsComponent(sessionStorage) {
21413
+ this.sessionStorage = sessionStorage;
21412
21414
  this.backClicked = new i0.EventEmitter();
21413
21415
  }
21414
21416
  QueryDetailsComponent.prototype.onBack = function () {
21415
21417
  this.backClicked.emit(true);
21416
21418
  };
21419
+ QueryDetailsComponent.prototype.isCaseworker = function () {
21420
+ var userDetails = JSON.parse(this.sessionStorage.getItem('userDetails'));
21421
+ return userDetails && userDetails.roles
21422
+ && !(userDetails.roles.includes('pui-case-manager')
21423
+ || userDetails.roles.some(function (role) { return role.toLowerCase().includes('judge'); }));
21424
+ };
21417
21425
  return QueryDetailsComponent;
21418
21426
  }());
21419
- QueryDetailsComponent.ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(); };
21420
- QueryDetailsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query" }, outputs: { backClicked: "backClicked" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "query_details_caption"], [3, "queryItem"], [4, "ngIf", "ngIfElse"], ["queryIsInReview", ""], [4, "ngFor", "ngForOf"], ["followUpMessage", ""], [1, "govuk-table", "query-details-table"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], [3, "attachments", 4, "ngIf"], [3, "attachments"], [1, "govuk-!-font-weight-bold"]], template: function QueryDetailsComponent_Template(rf, ctx) {
21427
+ QueryDetailsComponent.ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
21428
+ QueryDetailsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query" }, outputs: { backClicked: "backClicked" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "query_details_caption"], [3, "queryItem"], [4, "ngIf", "ngIfElse"], ["queryIsInReview", ""], [4, "ngFor", "ngForOf"], ["followUpMessage", ""], [1, "govuk-table", "query-details-table"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row", 4, "ngIf"], [3, "attachments", 4, "ngIf"], [3, "attachments"], [1, "govuk-!-font-weight-bold"]], template: function QueryDetailsComponent_Template(rf, ctx) {
21421
21429
  if (rf & 1) {
21422
21430
  i0__namespace.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 13, 9, "ng-container", 0);
21423
21431
  }
@@ -21433,7 +21441,7 @@
21433
21441
  templateUrl: './query-details.component.html',
21434
21442
  styleUrls: ['./query-details.component.scss']
21435
21443
  }]
21436
- }], null, { query: [{
21444
+ }], function () { return [{ type: SessionStorageService }]; }, { query: [{
21437
21445
  type: i0.Input
21438
21446
  }], backClicked: [{
21439
21447
  type: i0.Output
@@ -21490,6 +21498,7 @@
21490
21498
  i0__namespace.ɵɵelementEnd();
21491
21499
  i0__namespace.ɵɵelementStart(12, "td", 12);
21492
21500
  i0__namespace.ɵɵtext(13);
21501
+ i0__namespace.ɵɵpipe(14, "rpxTranslate");
21493
21502
  i0__namespace.ɵɵelementEnd();
21494
21503
  i0__namespace.ɵɵelementEnd();
21495
21504
  }
@@ -21504,7 +21513,7 @@
21504
21513
  i0__namespace.ɵɵadvance(3);
21505
21514
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(11, 8, message_r6.lastResponseDate, "dd MMM YYYY"));
21506
21515
  i0__namespace.ɵɵadvance(3);
21507
- i0__namespace.ɵɵtextInterpolate(message_r6.lastResponseBy);
21516
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(14, 11, message_r6.responseStatus));
21508
21517
  }
21509
21518
  }
21510
21519
  function QueryListComponent_ng_container_0_Template(rf, ctx) {
@@ -21522,7 +21531,7 @@
21522
21531
  i0__namespace.ɵɵelementEnd();
21523
21532
  i0__namespace.ɵɵelementEnd();
21524
21533
  i0__namespace.ɵɵelementStart(8, "tbody", 6);
21525
- i0__namespace.ɵɵtemplate(9, QueryListComponent_ng_container_0_tr_9_Template, 14, 11, "tr", 7);
21534
+ i0__namespace.ɵɵtemplate(9, QueryListComponent_ng_container_0_tr_9_Template, 15, 13, "tr", 7);
21526
21535
  i0__namespace.ɵɵelementEnd();
21527
21536
  i0__namespace.ɵɵelementEnd();
21528
21537
  i0__namespace.ɵɵelementContainerEnd();
@@ -21545,7 +21554,7 @@
21545
21554
  { name: 'lastSubmittedBy', displayName: 'Last submitted by', sortOrder: SortOrder.UNSORTED },
21546
21555
  { name: 'lastSubmittedDate', displayName: 'Last submission date', sortOrder: SortOrder.UNSORTED },
21547
21556
  { name: 'lastResponseDate', displayName: 'Last response date', sortOrder: SortOrder.UNSORTED },
21548
- { name: 'lastResponseBy', displayName: 'Response by', sortOrder: SortOrder.UNSORTED }
21557
+ { name: 'responseStatus', displayName: 'Response status', sortOrder: SortOrder.UNSORTED }
21549
21558
  ];
21550
21559
  }
21551
21560
  QueryListComponent.prototype.ngOnChanges = function (simpleChanges) {
@@ -21859,8 +21868,8 @@
21859
21868
 
21860
21869
  function QueryWriteRaiseQueryComponent_p_22_Template(rf, ctx) {
21861
21870
  if (rf & 1) {
21862
- i0__namespace.ɵɵelementStart(0, "p", 29);
21863
- i0__namespace.ɵɵelementStart(1, "span", 30);
21871
+ i0__namespace.ɵɵelementStart(0, "p", 25);
21872
+ i0__namespace.ɵɵelementStart(1, "span", 26);
21864
21873
  i0__namespace.ɵɵtext(2);
21865
21874
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
21866
21875
  i0__namespace.ɵɵelementEnd();
@@ -21873,13 +21882,13 @@
21873
21882
  i0__namespace.ɵɵadvance(2);
21874
21883
  i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21875
21884
  i0__namespace.ɵɵadvance(2);
21876
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.FULL_NAME), " ");
21885
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_SUBJECT), " ");
21877
21886
  }
21878
21887
  }
21879
21888
  function QueryWriteRaiseQueryComponent_p_32_Template(rf, ctx) {
21880
21889
  if (rf & 1) {
21881
- i0__namespace.ɵɵelementStart(0, "p", 31);
21882
- i0__namespace.ɵɵelementStart(1, "span", 30);
21890
+ i0__namespace.ɵɵelementStart(0, "p", 27);
21891
+ i0__namespace.ɵɵelementStart(1, "span", 26);
21883
21892
  i0__namespace.ɵɵtext(2);
21884
21893
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
21885
21894
  i0__namespace.ɵɵelementEnd();
@@ -21892,13 +21901,13 @@
21892
21901
  i0__namespace.ɵɵadvance(2);
21893
21902
  i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21894
21903
  i0__namespace.ɵɵadvance(2);
21895
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r1.raiseQueryErrorMessage.QUERY_SUBJECT), " ");
21904
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r1.raiseQueryErrorMessage.QUERY_BODY), " ");
21896
21905
  }
21897
21906
  }
21898
- function QueryWriteRaiseQueryComponent_p_42_Template(rf, ctx) {
21907
+ function QueryWriteRaiseQueryComponent_p_41_Template(rf, ctx) {
21899
21908
  if (rf & 1) {
21900
- i0__namespace.ɵɵelementStart(0, "p", 32);
21901
- i0__namespace.ɵɵelementStart(1, "span", 30);
21909
+ i0__namespace.ɵɵelementStart(0, "p", 28);
21910
+ i0__namespace.ɵɵelementStart(1, "span", 26);
21902
21911
  i0__namespace.ɵɵtext(2);
21903
21912
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
21904
21913
  i0__namespace.ɵɵelementEnd();
@@ -21911,32 +21920,13 @@
21911
21920
  i0__namespace.ɵɵadvance(2);
21912
21921
  i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21913
21922
  i0__namespace.ɵɵadvance(2);
21914
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r2.raiseQueryErrorMessage.QUERY_BODY), " ");
21915
- }
21916
- }
21917
- function QueryWriteRaiseQueryComponent_p_51_Template(rf, ctx) {
21918
- if (rf & 1) {
21919
- i0__namespace.ɵɵelementStart(0, "p", 33);
21920
- i0__namespace.ɵɵelementStart(1, "span", 30);
21921
- i0__namespace.ɵɵtext(2);
21922
- i0__namespace.ɵɵpipe(3, "rpxTranslate");
21923
- i0__namespace.ɵɵelementEnd();
21924
- i0__namespace.ɵɵtext(4);
21925
- i0__namespace.ɵɵpipe(5, "rpxTranslate");
21926
- i0__namespace.ɵɵelementEnd();
21927
- }
21928
- if (rf & 2) {
21929
- var ctx_r3 = i0__namespace.ɵɵnextContext();
21930
- i0__namespace.ɵɵadvance(2);
21931
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21932
- i0__namespace.ɵɵadvance(2);
21933
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r3.raiseQueryErrorMessage.QUERY_HEARING_RELATED), " ");
21923
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r2.raiseQueryErrorMessage.QUERY_HEARING_RELATED), " ");
21934
21924
  }
21935
21925
  }
21936
- function QueryWriteRaiseQueryComponent_ng_container_63_p_7_Template(rf, ctx) {
21926
+ function QueryWriteRaiseQueryComponent_ng_container_53_p_7_Template(rf, ctx) {
21937
21927
  if (rf & 1) {
21938
- i0__namespace.ɵɵelementStart(0, "p", 39);
21939
- i0__namespace.ɵɵelementStart(1, "span", 30);
21928
+ i0__namespace.ɵɵelementStart(0, "p", 34);
21929
+ i0__namespace.ɵɵelementStart(1, "span", 26);
21940
21930
  i0__namespace.ɵɵtext(2);
21941
21931
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
21942
21932
  i0__namespace.ɵɵelementEnd();
@@ -21945,39 +21935,39 @@
21945
21935
  i0__namespace.ɵɵelementEnd();
21946
21936
  }
21947
21937
  if (rf & 2) {
21948
- var ctx_r5 = i0__namespace.ɵɵnextContext(2);
21938
+ var ctx_r4 = i0__namespace.ɵɵnextContext(2);
21949
21939
  i0__namespace.ɵɵadvance(2);
21950
21940
  i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21951
21941
  i0__namespace.ɵɵadvance(2);
21952
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r5.raiseQueryErrorMessage.QUERY_HEARING_DATE), " ");
21942
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r4.raiseQueryErrorMessage.QUERY_HEARING_DATE), " ");
21953
21943
  }
21954
21944
  }
21955
21945
  var _c0$C = function (a0) { return { "govuk-form-group--error": a0 }; };
21956
- function QueryWriteRaiseQueryComponent_ng_container_63_Template(rf, ctx) {
21946
+ function QueryWriteRaiseQueryComponent_ng_container_53_Template(rf, ctx) {
21957
21947
  if (rf & 1) {
21958
21948
  i0__namespace.ɵɵelementContainerStart(0);
21959
- i0__namespace.ɵɵelementStart(1, "div", 34);
21960
- i0__namespace.ɵɵelementStart(2, "fieldset", 35);
21949
+ i0__namespace.ɵɵelementStart(1, "div", 29);
21950
+ i0__namespace.ɵɵelementStart(2, "fieldset", 30);
21961
21951
  i0__namespace.ɵɵelementStart(3, "legend");
21962
- i0__namespace.ɵɵelementStart(4, "label", 36);
21952
+ i0__namespace.ɵɵelementStart(4, "label", 31);
21963
21953
  i0__namespace.ɵɵtext(5);
21964
21954
  i0__namespace.ɵɵpipe(6, "rpxTranslate");
21965
21955
  i0__namespace.ɵɵelementEnd();
21966
21956
  i0__namespace.ɵɵelementEnd();
21967
- i0__namespace.ɵɵtemplate(7, QueryWriteRaiseQueryComponent_ng_container_63_p_7_Template, 6, 6, "p", 37);
21968
- i0__namespace.ɵɵelement(8, "ccd-query-write-date-input", 38);
21957
+ i0__namespace.ɵɵtemplate(7, QueryWriteRaiseQueryComponent_ng_container_53_p_7_Template, 6, 6, "p", 32);
21958
+ i0__namespace.ɵɵelement(8, "ccd-query-write-date-input", 33);
21969
21959
  i0__namespace.ɵɵelementEnd();
21970
21960
  i0__namespace.ɵɵelementEnd();
21971
21961
  i0__namespace.ɵɵelementContainerEnd();
21972
21962
  }
21973
21963
  if (rf & 2) {
21974
- var ctx_r4 = i0__namespace.ɵɵnextContext();
21964
+ var ctx_r3 = i0__namespace.ɵɵnextContext();
21975
21965
  i0__namespace.ɵɵadvance(1);
21976
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$C, ctx_r4.submitted && ctx_r4.formGroup.get("isHearingRelated").value === true && ctx_r4.formGroup.get("hearingDate").value === null));
21966
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$C, ctx_r3.submitted && ctx_r3.formGroup.get("isHearingRelated").value === true && ctx_r3.formGroup.get("hearingDate").value === null));
21977
21967
  i0__namespace.ɵɵadvance(4);
21978
21968
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 3, "Hearing date"), " ");
21979
21969
  i0__namespace.ɵɵadvance(2);
21980
- i0__namespace.ɵɵproperty("ngIf", ctx_r4.submitted && ctx_r4.formGroup.get("isHearingRelated").value === true && ctx_r4.formGroup.get("hearingDate").value === null);
21970
+ i0__namespace.ɵɵproperty("ngIf", ctx_r3.submitted && ctx_r3.formGroup.get("isHearingRelated").value === true && ctx_r3.formGroup.get("hearingDate").value === null);
21981
21971
  }
21982
21972
  }
21983
21973
  var QueryWriteRaiseQueryComponent = /** @class */ (function () {
@@ -21987,7 +21977,7 @@
21987
21977
  return QueryWriteRaiseQueryComponent;
21988
21978
  }());
21989
21979
  QueryWriteRaiseQueryComponent.ɵfac = function QueryWriteRaiseQueryComponent_Factory(t) { return new (t || QueryWriteRaiseQueryComponent)(); };
21990
- QueryWriteRaiseQueryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup", submitted: "submitted" }, decls: 64, vars: 68, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-4"], [1, "govuk-!-margin-bottom-4"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], ["for", "fullName", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "fullName-hint", 1, "govuk-hint"], ["id", "fullName-error", "class", "govuk-error-message", 4, "ngIf"], ["type", "text", "name", "fullName", "id", "fullName", 1, "govuk-input", 3, "formControlName"], ["for", "subject", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "subject-hint", 1, "govuk-hint"], ["id", "subject-error", "class", "govuk-error-message", 4, "ngIf"], ["type", "text", "name", "subject", "id", "subject", 1, "govuk-input", 3, "formControlName"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-hint", 1, "govuk-hint"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], [1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "isHearingRelated-error", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--inline"], [1, "govuk-radios__item"], ["id", "isHearingRelated-yes", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-yes", 1, "govuk-label", "govuk-radios__label"], ["id", "isHearingRelated-no", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-no", 1, "govuk-label", "govuk-radios__label"], [4, "ngIf"], ["id", "fullName-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "subject-error", 1, "govuk-error-message"], ["id", "body-error", 1, "govuk-error-message"], ["id", "isHearingRelated-error", 1, "govuk-error-message"], [1, "govuk-!-margin-top-1", 3, "ngClass"], ["role", "group", 1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--s"], ["id", "hearingDate-error", "class", "govuk-error-message", 4, "ngIf"], ["formControlName", "hearingDate"], ["id", "hearingDate-error", 1, "govuk-error-message"]], template: function QueryWriteRaiseQueryComponent_Template(rf, ctx) {
21980
+ QueryWriteRaiseQueryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup", submitted: "submitted" }, decls: 54, vars: 55, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-4"], [1, "govuk-!-margin-bottom-4"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], ["for", "subject", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "subject-hint", 1, "govuk-hint"], ["id", "subject-error", "class", "govuk-error-message", 4, "ngIf"], ["type", "text", "name", "subject", "id", "subject", 1, "govuk-input", 3, "formControlName"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-hint", 1, "govuk-hint"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], [1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "isHearingRelated-error", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--inline"], [1, "govuk-radios__item"], ["id", "isHearingRelated-yes", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-yes", 1, "govuk-label", "govuk-radios__label"], ["id", "isHearingRelated-no", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-no", 1, "govuk-label", "govuk-radios__label"], [4, "ngIf"], ["id", "subject-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "body-error", 1, "govuk-error-message"], ["id", "isHearingRelated-error", 1, "govuk-error-message"], [1, "govuk-!-margin-top-1", 3, "ngClass"], ["role", "group", 1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--s"], ["id", "hearingDate-error", "class", "govuk-error-message", 4, "ngIf"], ["formControlName", "hearingDate"], ["id", "hearingDate-error", 1, "govuk-error-message"]], template: function QueryWriteRaiseQueryComponent_Template(rf, ctx) {
21991
21981
  if (rf & 1) {
21992
21982
  i0__namespace.ɵɵelementStart(0, "div");
21993
21983
  i0__namespace.ɵɵelementStart(1, "div", 0);
@@ -22021,6 +22011,7 @@
22021
22011
  i0__namespace.ɵɵtemplate(22, QueryWriteRaiseQueryComponent_p_22_Template, 6, 6, "p", 9);
22022
22012
  i0__namespace.ɵɵelement(23, "input", 10);
22023
22013
  i0__namespace.ɵɵelementEnd();
22014
+ i0__namespace.ɵɵelementEnd();
22024
22015
  i0__namespace.ɵɵelementStart(24, "div", 5);
22025
22016
  i0__namespace.ɵɵelementStart(25, "div", 6);
22026
22017
  i0__namespace.ɵɵelementStart(26, "label", 11);
@@ -22033,52 +22024,37 @@
22033
22024
  i0__namespace.ɵɵpipe(31, "rpxTranslate");
22034
22025
  i0__namespace.ɵɵelementEnd();
22035
22026
  i0__namespace.ɵɵtemplate(32, QueryWriteRaiseQueryComponent_p_32_Template, 6, 6, "p", 13);
22036
- i0__namespace.ɵɵelement(33, "input", 14);
22037
- i0__namespace.ɵɵelementEnd();
22038
- i0__namespace.ɵɵelementEnd();
22039
- i0__namespace.ɵɵelementStart(34, "div", 5);
22040
- i0__namespace.ɵɵelementStart(35, "div", 6);
22041
- i0__namespace.ɵɵelementStart(36, "label", 15);
22042
- i0__namespace.ɵɵtext(37);
22043
- i0__namespace.ɵɵpipe(38, "rpxTranslate");
22027
+ i0__namespace.ɵɵelementStart(33, "textarea", 14);
22028
+ i0__namespace.ɵɵtext(34, " ");
22044
22029
  i0__namespace.ɵɵelementEnd();
22045
22030
  i0__namespace.ɵɵelementEnd();
22046
- i0__namespace.ɵɵelementStart(39, "div", 16);
22047
- i0__namespace.ɵɵtext(40);
22048
- i0__namespace.ɵɵpipe(41, "rpxTranslate");
22049
- i0__namespace.ɵɵelementEnd();
22050
- i0__namespace.ɵɵtemplate(42, QueryWriteRaiseQueryComponent_p_42_Template, 6, 6, "p", 17);
22051
- i0__namespace.ɵɵelementStart(43, "textarea", 18);
22052
- i0__namespace.ɵɵtext(44, " ");
22031
+ i0__namespace.ɵɵelementStart(35, "div", 5);
22032
+ i0__namespace.ɵɵelementStart(36, "fieldset", 15);
22033
+ i0__namespace.ɵɵelementStart(37, "legend");
22034
+ i0__namespace.ɵɵelementStart(38, "label", 16);
22035
+ i0__namespace.ɵɵtext(39);
22036
+ i0__namespace.ɵɵpipe(40, "rpxTranslate");
22053
22037
  i0__namespace.ɵɵelementEnd();
22054
22038
  i0__namespace.ɵɵelementEnd();
22055
- i0__namespace.ɵɵelementStart(45, "div", 5);
22056
- i0__namespace.ɵɵelementStart(46, "fieldset", 19);
22057
- i0__namespace.ɵɵelementStart(47, "legend");
22058
- i0__namespace.ɵɵelementStart(48, "label", 20);
22059
- i0__namespace.ɵɵtext(49);
22060
- i0__namespace.ɵɵpipe(50, "rpxTranslate");
22039
+ i0__namespace.ɵɵtemplate(41, QueryWriteRaiseQueryComponent_p_41_Template, 6, 6, "p", 17);
22040
+ i0__namespace.ɵɵelementStart(42, "div", 18);
22041
+ i0__namespace.ɵɵelementStart(43, "div", 19);
22042
+ i0__namespace.ɵɵelement(44, "input", 20);
22043
+ i0__namespace.ɵɵelementStart(45, "label", 21);
22044
+ i0__namespace.ɵɵtext(46);
22045
+ i0__namespace.ɵɵpipe(47, "rpxTranslate");
22061
22046
  i0__namespace.ɵɵelementEnd();
22062
22047
  i0__namespace.ɵɵelementEnd();
22063
- i0__namespace.ɵɵtemplate(51, QueryWriteRaiseQueryComponent_p_51_Template, 6, 6, "p", 21);
22064
- i0__namespace.ɵɵelementStart(52, "div", 22);
22065
- i0__namespace.ɵɵelementStart(53, "div", 23);
22066
- i0__namespace.ɵɵelement(54, "input", 24);
22067
- i0__namespace.ɵɵelementStart(55, "label", 25);
22068
- i0__namespace.ɵɵtext(56);
22069
- i0__namespace.ɵɵpipe(57, "rpxTranslate");
22070
- i0__namespace.ɵɵelementEnd();
22071
- i0__namespace.ɵɵelementEnd();
22072
- i0__namespace.ɵɵelementStart(58, "div", 23);
22073
- i0__namespace.ɵɵelement(59, "input", 26);
22074
- i0__namespace.ɵɵelementStart(60, "label", 27);
22075
- i0__namespace.ɵɵtext(61);
22076
- i0__namespace.ɵɵpipe(62, "rpxTranslate");
22048
+ i0__namespace.ɵɵelementStart(48, "div", 19);
22049
+ i0__namespace.ɵɵelement(49, "input", 22);
22050
+ i0__namespace.ɵɵelementStart(50, "label", 23);
22051
+ i0__namespace.ɵɵtext(51);
22052
+ i0__namespace.ɵɵpipe(52, "rpxTranslate");
22077
22053
  i0__namespace.ɵɵelementEnd();
22078
22054
  i0__namespace.ɵɵelementEnd();
22079
22055
  i0__namespace.ɵɵelementEnd();
22080
22056
  i0__namespace.ɵɵelementEnd();
22081
- i0__namespace.ɵɵtemplate(63, QueryWriteRaiseQueryComponent_ng_container_63_Template, 9, 7, "ng-container", 28);
22057
+ i0__namespace.ɵɵtemplate(53, QueryWriteRaiseQueryComponent_ng_container_53_Template, 9, 7, "ng-container", 24);
22082
22058
  i0__namespace.ɵɵelementEnd();
22083
22059
  i0__namespace.ɵɵelementEnd();
22084
22060
  i0__namespace.ɵɵelementEnd();
@@ -22086,61 +22062,48 @@
22086
22062
  }
22087
22063
  if (rf & 2) {
22088
22064
  var tmp_7_0 = null;
22089
- var tmp_13_0 = null;
22090
- var tmp_19_0 = null;
22091
22065
  i0__namespace.ɵɵadvance(3);
22092
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 34, "Raise a query"));
22066
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 27, "Raise a query"));
22093
22067
  i0__namespace.ɵɵadvance(3);
22094
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(7, 36, "Enter query details"));
22068
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(7, 29, "Enter query details"));
22095
22069
  i0__namespace.ɵɵadvance(6);
22096
22070
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
22097
22071
  i0__namespace.ɵɵadvance(2);
22098
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(60, _c0$C, ctx.submitted && ctx.formGroup.get("fullName").hasError("required")));
22099
- i0__namespace.ɵɵadvance(3);
22100
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 38, "Full name"), " ");
22101
- i0__namespace.ɵɵadvance(3);
22102
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(21, 40, "Your full name must be included here"), " ");
22103
- i0__namespace.ɵɵadvance(2);
22104
- i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("fullName").hasError("required"));
22105
- i0__namespace.ɵɵadvance(1);
22106
- i0__namespace.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_7_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_7_0.hasError("required")));
22107
- i0__namespace.ɵɵproperty("formControlName", "fullName");
22108
- i0__namespace.ɵɵadvance(1);
22109
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(62, _c0$C, ctx.submitted && ctx.formGroup.get("subject").hasError("required")));
22072
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(49, _c0$C, ctx.submitted && ctx.formGroup.get("subject").hasError("required")));
22110
22073
  i0__namespace.ɵɵadvance(3);
22111
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(28, 42, "Query subject"), " ");
22074
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 31, "Query subject"), " ");
22112
22075
  i0__namespace.ɵɵadvance(3);
22113
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(31, 44, "The subject should be a summary of your query"), " ");
22076
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(21, 33, "The subject should be a summary of your query"), " ");
22114
22077
  i0__namespace.ɵɵadvance(2);
22115
22078
  i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("subject").hasError("required"));
22116
22079
  i0__namespace.ɵɵadvance(1);
22117
- i0__namespace.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_13_0 = ctx.formGroup.get("subject")) == null ? null : tmp_13_0.hasError("required")));
22080
+ i0__namespace.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_7_0 = ctx.formGroup.get("subject")) == null ? null : tmp_7_0.hasError("required")));
22118
22081
  i0__namespace.ɵɵproperty("formControlName", "subject");
22119
22082
  i0__namespace.ɵɵadvance(1);
22120
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(64, _c0$C, ctx.submitted && ctx.formGroup.get("body").hasError("required")));
22083
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(51, _c0$C, ctx.submitted && ctx.formGroup.get("body").hasError("required")));
22121
22084
  i0__namespace.ɵɵadvance(3);
22122
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(38, 46, "Query body"), " ");
22085
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(28, 35, "Query body"), " ");
22123
22086
  i0__namespace.ɵɵadvance(3);
22124
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(41, 48, "Include as many details as possible so case workers can respond to your query"), " ");
22087
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(31, 37, "Include as many details as possible so case workers can respond to your query"), " ");
22125
22088
  i0__namespace.ɵɵadvance(2);
22126
22089
  i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("body").hasError("required"));
22127
22090
  i0__namespace.ɵɵadvance(1);
22128
- i0__namespace.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_19_0 = ctx.formGroup.get("body")) == null ? null : tmp_19_0.hasError("required")));
22091
+ i0__namespace.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ctx.formGroup.get("body").hasError("required"));
22129
22092
  i0__namespace.ɵɵproperty("formControlName", "body");
22130
22093
  i0__namespace.ɵɵadvance(2);
22131
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(66, _c0$C, ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required")));
22094
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(53, _c0$C, ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required")));
22132
22095
  i0__namespace.ɵɵadvance(4);
22133
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(50, 50, "Is the query hearing related?"), " ");
22096
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(40, 39, "Is the query hearing related?"), " ");
22134
22097
  i0__namespace.ɵɵadvance(2);
22135
22098
  i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required"));
22136
22099
  i0__namespace.ɵɵadvance(3);
22137
22100
  i0__namespace.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === true)("value", true);
22138
22101
  i0__namespace.ɵɵadvance(2);
22139
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(57, 52, "Is the query hearing related?", null, "Yes"), " ");
22102
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(47, 41, "Is the query hearing related?", null, "Yes"), " ");
22140
22103
  i0__namespace.ɵɵadvance(3);
22141
22104
  i0__namespace.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === false)("value", false);
22142
22105
  i0__namespace.ɵɵadvance(2);
22143
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(62, 56, "Is the query hearing related?", null, "No"), " ");
22106
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(52, 45, "Is the query hearing related?", null, "No"), " ");
22144
22107
  i0__namespace.ɵɵadvance(2);
22145
22108
  i0__namespace.ɵɵproperty("ngIf", ctx.formGroup.get("isHearingRelated").value);
22146
22109
  }
@@ -22159,10 +22122,10 @@
22159
22122
  }] });
22160
22123
  })();
22161
22124
 
22162
- function QueryWriteRespondToQueryComponent_p_30_Template(rf, ctx) {
22125
+ function QueryWriteRespondToQueryComponent_p_27_Template(rf, ctx) {
22163
22126
  if (rf & 1) {
22164
- i0__namespace.ɵɵelementStart(0, "p", 20);
22165
- i0__namespace.ɵɵelementStart(1, "span", 21);
22127
+ i0__namespace.ɵɵelementStart(0, "p", 15);
22128
+ i0__namespace.ɵɵelementStart(1, "span", 16);
22166
22129
  i0__namespace.ɵɵtext(2);
22167
22130
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
22168
22131
  i0__namespace.ɵɵelementEnd();
@@ -22175,26 +22138,7 @@
22175
22138
  i0__namespace.ɵɵadvance(2);
22176
22139
  i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
22177
22140
  i0__namespace.ɵɵadvance(2);
22178
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessages.FULL_NAME), " ");
22179
- }
22180
- }
22181
- function QueryWriteRespondToQueryComponent_p_37_Template(rf, ctx) {
22182
- if (rf & 1) {
22183
- i0__namespace.ɵɵelementStart(0, "p", 22);
22184
- i0__namespace.ɵɵelementStart(1, "span", 21);
22185
- i0__namespace.ɵɵtext(2);
22186
- i0__namespace.ɵɵpipe(3, "rpxTranslate");
22187
- i0__namespace.ɵɵelementEnd();
22188
- i0__namespace.ɵɵtext(4);
22189
- i0__namespace.ɵɵpipe(5, "rpxTranslate");
22190
- i0__namespace.ɵɵelementEnd();
22191
- }
22192
- if (rf & 2) {
22193
- var ctx_r1 = i0__namespace.ɵɵnextContext();
22194
- i0__namespace.ɵɵadvance(2);
22195
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
22196
- i0__namespace.ɵɵadvance(2);
22197
- i0__namespace.ɵɵtextInterpolate1("", ctx_r1.queryCreateContext === ctx_r1.queryCreateContextEnum.RESPOND ? ctx_r1.raiseQueryErrorMessages.RESPOND_QUERY_BODY : i0__namespace.ɵɵpipeBind1(5, 4, ctx_r1.raiseQueryErrorMessages.QUERY_BODY), " ");
22141
+ i0__namespace.ɵɵtextInterpolate1("", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? ctx_r0.raiseQueryErrorMessages.RESPOND_QUERY_BODY : i0__namespace.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessages.QUERY_BODY), " ");
22198
22142
  }
22199
22143
  }
22200
22144
  var _c0$B = function (a3) { return ["/", "cases", "case-details", a3, "tasks"]; };
@@ -22214,7 +22158,7 @@
22214
22158
  return QueryWriteRespondToQueryComponent;
22215
22159
  }());
22216
22160
  QueryWriteRespondToQueryComponent.ɵfac = function QueryWriteRespondToQueryComponent_Factory(t) { return new (t || QueryWriteRespondToQueryComponent)(i0__namespace.ɵɵdirectiveInject(CaseNotifier)); };
22217
- QueryWriteRespondToQueryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", queryCreateContext: "queryCreateContext", submitted: "submitted" }, decls: 40, vars: 38, consts: [[1, "govuk-!-margin-bottom-2"], ["href", "javascript:void(0)", 1, "govuk-back-link", "govuk-!-margin-top-0", 3, "routerLink"], [1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-0"], [1, "govuk-!-margin-bottom-4"], [3, "queryItem"], [1, "query-respond"], [1, "govuk-heading-m"], [3, "formGroup"], [1, "govuk-form-group"], [1, "govuk-label-wrapper"], ["for", "fullName", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "fullName-hint", 1, "govuk-hint"], ["id", "fullName-error", "class", "govuk-error-message", 4, "ngIf"], ["type", "text", "name", "fullName", "id", "fullName", 1, "govuk-input", 3, "formControlName"], [1, "govuk-form-group", "body-textarea"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], ["id", "fullName-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "body-error", 1, "govuk-error-message"]], template: function QueryWriteRespondToQueryComponent_Template(rf, ctx) {
22161
+ QueryWriteRespondToQueryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", queryCreateContext: "queryCreateContext", submitted: "submitted" }, decls: 30, vars: 26, consts: [[1, "govuk-!-margin-bottom-2"], ["href", "javascript:void(0)", 1, "govuk-back-link", "govuk-!-margin-top-0", 3, "routerLink"], [1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-0"], [1, "govuk-!-margin-bottom-4"], [3, "queryItem"], [1, "query-respond"], [1, "govuk-heading-m"], [3, "formGroup"], [1, "govuk-form-group", "body-textarea"], [1, "govuk-label-wrapper"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], ["id", "body-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function QueryWriteRespondToQueryComponent_Template(rf, ctx) {
22218
22162
  if (rf & 1) {
22219
22163
  i0__namespace.ɵɵelementStart(0, "div", 0);
22220
22164
  i0__namespace.ɵɵelementStart(1, "a", 1);
@@ -22254,23 +22198,9 @@
22254
22198
  i0__namespace.ɵɵpipe(26, "rpxTranslate");
22255
22199
  i0__namespace.ɵɵelementEnd();
22256
22200
  i0__namespace.ɵɵelementEnd();
22257
- i0__namespace.ɵɵelementStart(27, "div", 13);
22258
- i0__namespace.ɵɵtext(28);
22259
- i0__namespace.ɵɵpipe(29, "rpxTranslate");
22260
- i0__namespace.ɵɵelementEnd();
22261
- i0__namespace.ɵɵtemplate(30, QueryWriteRespondToQueryComponent_p_30_Template, 6, 6, "p", 14);
22262
- i0__namespace.ɵɵelement(31, "input", 15);
22263
- i0__namespace.ɵɵelementEnd();
22264
- i0__namespace.ɵɵelementStart(32, "div", 16);
22265
- i0__namespace.ɵɵelementStart(33, "div", 11);
22266
- i0__namespace.ɵɵelementStart(34, "label", 17);
22267
- i0__namespace.ɵɵtext(35);
22268
- i0__namespace.ɵɵpipe(36, "rpxTranslate");
22269
- i0__namespace.ɵɵelementEnd();
22270
- i0__namespace.ɵɵelementEnd();
22271
- i0__namespace.ɵɵtemplate(37, QueryWriteRespondToQueryComponent_p_37_Template, 6, 6, "p", 18);
22272
- i0__namespace.ɵɵelementStart(38, "textarea", 19);
22273
- i0__namespace.ɵɵtext(39, " ");
22201
+ i0__namespace.ɵɵtemplate(27, QueryWriteRespondToQueryComponent_p_27_Template, 6, 6, "p", 13);
22202
+ i0__namespace.ɵɵelementStart(28, "textarea", 14);
22203
+ i0__namespace.ɵɵtext(29, " ");
22274
22204
  i0__namespace.ɵɵelementEnd();
22275
22205
  i0__namespace.ɵɵelementEnd();
22276
22206
  i0__namespace.ɵɵelementEnd();
@@ -22279,44 +22209,30 @@
22279
22209
  }
22280
22210
  if (rf & 2) {
22281
22211
  var tmp_7_0 = null;
22212
+ var tmp_9_0 = null;
22282
22213
  var tmp_10_0 = null;
22283
- var tmp_11_0 = null;
22284
- var tmp_13_0 = null;
22285
- var tmp_15_0 = null;
22286
- var tmp_16_0 = null;
22287
22214
  i0__namespace.ɵɵadvance(1);
22288
- i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction1(36, _c0$B, ctx.caseId));
22215
+ i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction1(24, _c0$B, ctx.caseId));
22289
22216
  i0__namespace.ɵɵadvance(1);
22290
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(3, 22, "Cancel and return to tasks"), " ");
22217
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(3, 14, "Cancel and return to tasks"), " ");
22291
22218
  i0__namespace.ɵɵadvance(5);
22292
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(8, 24, "Respond to query"));
22219
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(8, 16, "Respond to query"));
22293
22220
  i0__namespace.ɵɵadvance(3);
22294
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(11, 26, "Query details"));
22221
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(11, 18, "Query details"));
22295
22222
  i0__namespace.ɵɵadvance(5);
22296
22223
  i0__namespace.ɵɵproperty("queryItem", ctx.queryItem);
22297
22224
  i0__namespace.ɵɵadvance(4);
22298
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Respond to a query" : i0__namespace.ɵɵpipeBind1(20, 28, "Ask a follow-up question"), " ");
22225
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Respond to a query" : i0__namespace.ɵɵpipeBind1(20, 20, "Ask a follow-up question"), " ");
22299
22226
  i0__namespace.ɵɵadvance(2);
22300
22227
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
22301
22228
  i0__namespace.ɵɵadvance(1);
22302
- i0__namespace.ɵɵclassProp("govuk-form-group--error", ctx.submitted && ((tmp_7_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_7_0.hasError("required")));
22303
- i0__namespace.ɵɵadvance(3);
22304
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(26, 30, "Full name"), " ");
22229
+ i0__namespace.ɵɵclassProp("govuk-form-group--error", ctx.submitted && ((tmp_7_0 = ctx.formGroup.get("body")) == null ? null : tmp_7_0.hasError("required")));
22305
22230
  i0__namespace.ɵɵadvance(3);
22306
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(29, 32, "Your full name must be included here"), " ");
22231
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Response message" : i0__namespace.ɵɵpipeBind1(26, 22, "Query Body"), " ");
22307
22232
  i0__namespace.ɵɵadvance(2);
22308
- i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ((tmp_10_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_10_0.hasError("required")));
22233
+ i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ((tmp_9_0 = ctx.formGroup.get("body")) == null ? null : tmp_9_0.hasError("required")));
22309
22234
  i0__namespace.ɵɵadvance(1);
22310
- i0__namespace.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_11_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_11_0.hasError("required")));
22311
- i0__namespace.ɵɵproperty("formControlName", "fullName");
22312
- i0__namespace.ɵɵadvance(1);
22313
- i0__namespace.ɵɵclassProp("govuk-form-group--error", ctx.submitted && ((tmp_13_0 = ctx.formGroup.get("body")) == null ? null : tmp_13_0.hasError("required")));
22314
- i0__namespace.ɵɵadvance(3);
22315
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Response message" : i0__namespace.ɵɵpipeBind1(36, 34, "Query Body"), " ");
22316
- i0__namespace.ɵɵadvance(2);
22317
- i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ((tmp_15_0 = ctx.formGroup.get("body")) == null ? null : tmp_15_0.hasError("required")));
22318
- i0__namespace.ɵɵadvance(1);
22319
- i0__namespace.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ((tmp_16_0 = ctx.formGroup.get("body")) == null ? null : tmp_16_0.hasError("required")));
22235
+ i0__namespace.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ((tmp_10_0 = ctx.formGroup.get("body")) == null ? null : tmp_10_0.hasError("required")));
22320
22236
  i0__namespace.ɵɵproperty("formControlName", "body");
22321
22237
  }
22322
22238
  }, styles: [".query-respond[_ngcontent-%COMP%]{width:100%;max-width:720px}"] });
@@ -34682,7 +34598,7 @@
34682
34598
  }
34683
34599
  else {
34684
34600
  return this.caseNotifier.fetchAndRefresh(cid)
34685
- .pipe(operators.catchError(function (error) { return _this.checkAuthorizationError(error, cid); }))
34601
+ .pipe(operators.catchError(function (error) { return _this.checkAuthorizationError(error); }))
34686
34602
  .toPromise();
34687
34603
  }
34688
34604
  }
@@ -34695,24 +34611,20 @@
34695
34611
  _this.caseNotifier.cachedCaseView = classTransformer.plainToClassFromExist(new CaseView(), caseView);
34696
34612
  _this.caseNotifier.announceCase(_this.caseNotifier.cachedCaseView);
34697
34613
  return _this.caseNotifier.cachedCaseView;
34698
- }), operators.catchError(function (error) { return _this.checkAuthorizationError(error, cid); })).toPromise();
34614
+ }), operators.catchError(function (error) { return _this.checkAuthorizationError(error); })).toPromise();
34699
34615
  };
34700
- CaseResolver.prototype.checkAuthorizationError = function (error, caseReference) {
34616
+ CaseResolver.prototype.checkAuthorizationError = function (error) {
34701
34617
  // TODO Should be logged to remote logging infrastructure
34702
34618
  if (error.status === 400) {
34703
34619
  this.router.navigate(['/search/noresults']);
34704
34620
  return rxjs.of(null);
34705
34621
  }
34622
+ console.error(error);
34706
34623
  if (CaseResolver.EVENT_REGEX.test(this.previousUrl) && error.status === 404) {
34707
34624
  this.router.navigate(['/list/case']);
34708
34625
  return rxjs.of(null);
34709
34626
  }
34710
- // Error 403, navigate to restricted case access page
34711
- if (error.status === 403) {
34712
- this.router.navigate(["/cases/restricted-case-access/" + caseReference]);
34713
- return rxjs.of(null);
34714
- }
34715
- if (error.status !== 401) {
34627
+ if (error.status !== 401 && error.status !== 403) {
34716
34628
  this.router.navigate(['/error']);
34717
34629
  }
34718
34630
  this.goToDefaultPage();