@hmcts/ccd-case-ui-toolkit 7.1.34 → 7.1.35-qm-wa

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 (23) hide show
  1. package/esm2022/lib/shared/components/palette/history/event-log/event-log.component.mjs +9 -9
  2. package/esm2022/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.mjs +17 -17
  3. package/esm2022/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.mjs +10 -10
  4. package/esm2022/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.mjs +13 -30
  5. package/esm2022/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.mjs +10 -12
  6. package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +24 -4
  7. package/esm2022/lib/shared/components/palette/query-management/components/query-details/query-details.component.mjs +19 -5
  8. package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.mjs +103 -114
  9. package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.mjs +35 -45
  10. package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +228 -236
  11. package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
  12. package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts.map +1 -1
  13. package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
  14. package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.d.ts.map +1 -1
  15. package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +1 -0
  16. package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts.map +1 -1
  17. package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts +11 -4
  18. package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts.map +1 -1
  19. package/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.d.ts +1 -2
  20. package/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.d.ts.map +1 -1
  21. package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts +1 -2
  22. package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts.map +1 -1
  23. package/package.json +1 -1
@@ -16679,8 +16679,8 @@ class LinkCasesComponent {
16679
16679
  })), this.validatorsUtils.formArraySelectedValidator());
16680
16680
  }
16681
16681
  toggleLinkCaseReasonOtherComments(event) {
16682
- this.linkCaseReasons.find((reason) => reason.value_en === event.target.value).selected = event.target.checked;
16683
- this.showComments = this.linkCaseReasons.find((reason) => reason.value_en === 'Other')?.selected;
16682
+ this.linkCaseReasons.find(reason => reason.value_en === event.target.value).selected = event.target.checked;
16683
+ this.showComments = this.linkCaseReasons.find(reason => reason.value_en === 'Other').selected;
16684
16684
  }
16685
16685
  submitCaseInfo() {
16686
16686
  this.errorMessages = [];
@@ -16719,7 +16719,7 @@ class LinkCasesComponent {
16719
16719
  this.errorMessages.push({
16720
16720
  title: 'dummy-case-number',
16721
16721
  description: LinkedCasesErrorMessages.CaseNumberError,
16722
- fieldId: 'caseNumber'
16722
+ fieldId: 'caseNumber',
16723
16723
  });
16724
16724
  }
16725
16725
  if (this.linkCaseForm.controls.reasonType.invalid) {
@@ -16727,17 +16727,17 @@ class LinkCasesComponent {
16727
16727
  this.errorMessages.push({
16728
16728
  title: 'dummy-case-reason',
16729
16729
  description: LinkedCasesErrorMessages.ReasonSelectionError,
16730
- fieldId: 'caseReason'
16730
+ fieldId: 'caseReason',
16731
16731
  });
16732
16732
  }
16733
16733
  if (this.linkCaseForm.controls.reasonType.valid
16734
- && this.linkCaseReasons.find((reason) => reason.value_en === 'Other').selected) {
16734
+ && this.linkCaseReasons.find(reason => reason.value_en === 'Other').selected) {
16735
16735
  if (this.linkCaseForm.controls.otherDescription.value.trim().length === 0) {
16736
16736
  this.caseReasonCommentsError = LinkedCasesErrorMessages.otherDescriptionError;
16737
16737
  this.errorMessages.push({
16738
16738
  title: 'dummy-case-reason-comments',
16739
16739
  description: LinkedCasesErrorMessages.otherDescriptionError,
16740
- fieldId: 'otherDescription'
16740
+ fieldId: 'otherDescription',
16741
16741
  });
16742
16742
  }
16743
16743
  if (this.linkCaseForm.controls.otherDescription.value.trim().length > 100) {
@@ -16745,7 +16745,7 @@ class LinkCasesComponent {
16745
16745
  this.errorMessages.push({
16746
16746
  title: 'dummy-case-reason-comments',
16747
16747
  description: LinkedCasesErrorMessages.otherDescriptionMaxLengthError,
16748
- fieldId: 'otherDescription'
16748
+ fieldId: 'otherDescription',
16749
16749
  });
16750
16750
  }
16751
16751
  }
@@ -16754,7 +16754,7 @@ class LinkCasesComponent {
16754
16754
  this.errorMessages.push({
16755
16755
  title: 'dummy-case-number',
16756
16756
  description: LinkedCasesErrorMessages.CaseProposedError,
16757
- fieldId: 'caseNumber'
16757
+ fieldId: 'caseNumber',
16758
16758
  });
16759
16759
  }
16760
16760
  if (this.isCaseSelected(this.linkedCasesService.linkedCases)) {
@@ -16762,14 +16762,14 @@ class LinkCasesComponent {
16762
16762
  this.errorMessages.push({
16763
16763
  title: 'dummy-case-number',
16764
16764
  description: LinkedCasesErrorMessages.CasesLinkedError,
16765
- fieldId: 'caseNumber'
16765
+ fieldId: 'caseNumber',
16766
16766
  });
16767
16767
  }
16768
16768
  if (this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('')) {
16769
16769
  this.errorMessages.push({
16770
16770
  title: 'dummy-case-number',
16771
16771
  description: LinkedCasesErrorMessages.ProposedCaseWithIn,
16772
- fieldId: 'caseNumber'
16772
+ fieldId: 'caseNumber',
16773
16773
  });
16774
16774
  }
16775
16775
  window.scrollTo(0, 0);
@@ -16790,7 +16790,7 @@ class LinkCasesComponent {
16790
16790
  caseState: caseView.state.name || '',
16791
16791
  caseStateDescription: caseView.state.description || '',
16792
16792
  caseService: caseView.case_type && caseView.case_type.jurisdiction && caseView.case_type.jurisdiction.description || '',
16793
- caseName: this.linkedCasesService.getCaseName(caseView)
16793
+ caseName: this.linkedCasesService.getCaseName(caseView),
16794
16794
  };
16795
16795
  const ccdApiCaseLinkData = {
16796
16796
  CaseReference: caseView.case_id,
@@ -16803,7 +16803,7 @@ class LinkCasesComponent {
16803
16803
  }
16804
16804
  this.linkedCasesService.caseFieldValue.push({ id: caseView.case_id.toString(), value: ccdApiCaseLinkData });
16805
16805
  this.selectedCases.push(caseLink);
16806
- this.linkCaseReasons.forEach((reason) => reason.selected = false);
16806
+ this.linkCaseReasons.forEach(reason => reason.selected = false);
16807
16807
  this.initForm();
16808
16808
  this.emitLinkedCasesState(false);
16809
16809
  }, (error) => {
@@ -16811,7 +16811,7 @@ class LinkCasesComponent {
16811
16811
  this.errorMessages.push({
16812
16812
  title: 'dummy-case-number',
16813
16813
  description: LinkedCasesErrorMessages.CaseCheckAgainError,
16814
- fieldId: 'caseNumber'
16814
+ fieldId: 'caseNumber',
16815
16815
  });
16816
16816
  this.emitLinkedCasesState(false);
16817
16817
  window.scrollTo(0, 0);
@@ -16823,7 +16823,7 @@ class LinkCasesComponent {
16823
16823
  this.linkedCasesStateEmitter.emit({
16824
16824
  currentLinkedCasesPage: LinkedCasesPages.LINK_CASE,
16825
16825
  errorMessages: this.errorMessages,
16826
- navigateToNextPage: isNavigateToNextPage
16826
+ navigateToNextPage: isNavigateToNextPage,
16827
16827
  });
16828
16828
  }
16829
16829
  getSelectedCaseReasons() {
@@ -16858,7 +16858,7 @@ class LinkCasesComponent {
16858
16858
  }
16859
16859
  onSelectedLinkedCaseRemove(pos, selectedCaseReference) {
16860
16860
  const caseFieldValue = this.linkedCasesService.caseFieldValue || [];
16861
- const updatedItems = caseFieldValue.filter((item) => item.value && item.value.CaseReference !== selectedCaseReference);
16861
+ const updatedItems = caseFieldValue.filter(item => item.value && item.value.CaseReference !== selectedCaseReference);
16862
16862
  if (updatedItems) {
16863
16863
  this.linkedCasesService.caseFieldValue = updatedItems;
16864
16864
  }
@@ -16879,7 +16879,7 @@ class LinkCasesComponent {
16879
16879
  this.errorMessages.push({
16880
16880
  title: 'dummy-case-selection',
16881
16881
  description: LinkedCasesErrorMessages.CaseSelectionError,
16882
- fieldId: 'caseReason'
16882
+ fieldId: 'caseReason',
16883
16883
  });
16884
16884
  navigateToNextPage = false;
16885
16885
  }
@@ -17614,7 +17614,7 @@ class UnLinkCasesComponent {
17614
17614
  }
17615
17615
  else {
17616
17616
  this.casesService.getCaseViewV2(this.caseId).subscribe((caseView) => {
17617
- const linkedCasesTab = caseView.tabs.find((tab) => tab.id === UnLinkCasesComponent.LINKED_CASES_TAB_ID);
17617
+ const linkedCasesTab = caseView.tabs.find(tab => tab.id === UnLinkCasesComponent.LINKED_CASES_TAB_ID);
17618
17618
  if (linkedCasesTab) {
17619
17619
  const linkedCases = linkedCasesTab.fields[0].value;
17620
17620
  this.linkedCases = linkedCases;
@@ -17626,22 +17626,22 @@ class UnLinkCasesComponent {
17626
17626
  }
17627
17627
  getAllLinkedCaseInformation() {
17628
17628
  const searchCasesResponse = [];
17629
- this.linkedCases.forEach((linkedCase) => {
17629
+ this.linkedCases.forEach(linkedCase => {
17630
17630
  searchCasesResponse.push(this.casesService.getCaseViewV2(linkedCase.caseReference));
17631
17631
  });
17632
17632
  if (searchCasesResponse.length) {
17633
17633
  this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
17634
17634
  searchCases.forEach((response) => {
17635
- const linkedCaseFromList = this.linkedCases.find((linkedCase) => linkedCase.caseReference === response.case_id);
17635
+ const linkedCaseFromList = this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id);
17636
17636
  if (linkedCaseFromList) {
17637
17637
  const caseName = this.linkedCasesService.getCaseName(response);
17638
- this.linkedCases.find((linkedCase) => linkedCase.caseReference === response.case_id).caseName = caseName;
17638
+ this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id).caseName = caseName;
17639
17639
  }
17640
17640
  });
17641
17641
  this.initForm();
17642
17642
  this.linkedCasesService.linkedCases = this.linkedCases;
17643
17643
  this.isServerError = false;
17644
- }, (err) => {
17644
+ }, err => {
17645
17645
  this.isServerError = true;
17646
17646
  this.notifyAPIFailure.emit(true);
17647
17647
  });
@@ -17656,7 +17656,7 @@ class UnLinkCasesComponent {
17656
17656
  });
17657
17657
  }
17658
17658
  get getLinkedCasesFormArray() {
17659
- const formFieldArray = this.linkedCases.map((val) => this.fb.group({
17659
+ const formFieldArray = this.linkedCases.map(val => this.fb.group({
17660
17660
  caseReference: val.caseReference,
17661
17661
  reasons: val.reasons,
17662
17662
  createdDateTime: val.createdDateTime,
@@ -17670,7 +17670,7 @@ class UnLinkCasesComponent {
17670
17670
  }
17671
17671
  onChange(caseSelected) {
17672
17672
  this.resetErrorMessages();
17673
- const selectedCase = this.linkedCases.find((linkedCase) => linkedCase.caseReference === caseSelected.value);
17673
+ const selectedCase = this.linkedCases.find(linkedCase => linkedCase.caseReference === caseSelected.value);
17674
17674
  if (selectedCase) {
17675
17675
  selectedCase.unlink = caseSelected.checked ? true : false;
17676
17676
  }
@@ -17678,7 +17678,7 @@ class UnLinkCasesComponent {
17678
17678
  onNext() {
17679
17679
  this.resetErrorMessages();
17680
17680
  let navigateToNextPage = true;
17681
- const casesMarkedToUnlink = this.linkedCases.find((linkedCase) => linkedCase.unlink && linkedCase.unlink === true);
17681
+ const casesMarkedToUnlink = this.linkedCases.find(linkedCase => linkedCase.unlink && linkedCase.unlink === true);
17682
17682
  if (!casesMarkedToUnlink) {
17683
17683
  this.errorMessages.push({
17684
17684
  title: 'case-selection',
@@ -17696,7 +17696,7 @@ class UnLinkCasesComponent {
17696
17696
  this.linkedCasesStateEmitter.emit({
17697
17697
  currentLinkedCasesPage: LinkedCasesPages.UNLINK_CASE,
17698
17698
  errorMessages: this.errorMessages,
17699
- navigateToNextPage: isNavigateToNextPage
17699
+ navigateToNextPage: isNavigateToNextPage,
17700
17700
  });
17701
17701
  }
17702
17702
  resetErrorMessages() {
@@ -18039,16 +18039,14 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
18039
18039
  // Get linked case reasons from ref data
18040
18040
  this.linkedCasesService.editMode = false;
18041
18041
  this.subscriptions.add(this.caseEditDataService.caseDetails$.subscribe({
18042
- next: (caseDetails) => {
18043
- this.initialiseCaseDetails(caseDetails);
18044
- }
18042
+ next: caseDetails => { this.initialiseCaseDetails(caseDetails); }
18045
18043
  }));
18046
18044
  this.getOrgService();
18047
18045
  this.subscriptions.add(this.caseEditDataService.caseEventTriggerName$.subscribe({
18048
- next: (name) => this.linkedCasesService.isLinkedCasesEventTrigger = (name === LinkedCasesEventTriggers.LINK_CASES)
18046
+ next: name => this.linkedCasesService.isLinkedCasesEventTrigger = (name === LinkedCasesEventTriggers.LINK_CASES)
18049
18047
  }));
18050
18048
  this.subscriptions.add(this.caseEditDataService.caseEditForm$.subscribe({
18051
- next: (editForm) => this.caseEditForm = editForm
18049
+ next: editForm => this.caseEditForm = editForm
18052
18050
  }));
18053
18051
  }
18054
18052
  initialiseCaseDetails(caseDetails) {
@@ -18124,28 +18122,13 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
18124
18122
  }
18125
18123
  }
18126
18124
  submitLinkedCases() {
18127
- let caseFieldValue = [...(this.linkedCasesService.caseFieldValue || [])];
18128
18125
  if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
18129
- const unlinkedCaseReferenceIds = this.linkedCasesService.linkedCases
18130
- .filter((item) => item.unlink)
18131
- .map((item) => item.caseReference);
18132
- caseFieldValue = caseFieldValue.filter((item) => !unlinkedCaseReferenceIds.includes(item.id));
18133
- }
18134
- // Replace the caseLinks value in this.formGroup
18135
- this.formGroup.patchValue({
18136
- caseLinks: caseFieldValue
18137
- });
18138
- // Replace the caseLinks control in caseEditForm.controls.data
18139
- const dataFormGroup = this.caseEditForm.controls.data;
18140
- if (dataFormGroup) {
18141
- // Remove the existing caseLinks control (if it exists)
18142
- if (dataFormGroup.contains('caseLinks')) {
18143
- dataFormGroup.removeControl('caseLinks');
18144
- }
18145
- // Add the new control with the replacement value
18146
- dataFormGroup.addControl('caseLinks', new FormControl(caseFieldValue || []));
18126
+ const unlinkedCaseRefereneIds = this.linkedCasesService.linkedCases.filter(item => item.unlink).map(item => item.caseReference);
18127
+ const caseFieldValue = this.linkedCasesService.caseFieldValue;
18128
+ this.linkedCasesService.caseFieldValue = caseFieldValue.filter(item => unlinkedCaseRefereneIds.indexOf(item.id) === -1);
18147
18129
  }
18148
- // Set the updated form in the caseEditDataService
18130
+ this.formGroup.value.caseLinks = this.linkedCasesService.caseFieldValue;
18131
+ this.caseEditForm.controls['data'] = new FormGroup({ caseLinks: new FormControl(this.linkedCasesService.caseFieldValue || []) });
18149
18132
  this.caseEditDataService.setCaseEditForm(this.caseEditForm);
18150
18133
  }
18151
18134
  isAtFinalPage() {
@@ -18162,11 +18145,11 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
18162
18145
  }
18163
18146
  getLinkedCases() {
18164
18147
  this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe((caseView) => {
18165
- const caseViewFiltered = caseView.tabs.filter((tab) => {
18148
+ const caseViewFiltered = caseView.tabs.filter(tab => {
18166
18149
  return tab.fields.some(({ field_type }) => field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink');
18167
18150
  });
18168
18151
  if (caseViewFiltered) {
18169
- const caseLinkFieldValue = caseViewFiltered.map((filtered) => filtered.fields?.length > 0 && filtered.fields.filter((field) => field.id === 'caseLinks')[0].value);
18152
+ const caseLinkFieldValue = caseViewFiltered.map(filtered => filtered.fields?.length > 0 && filtered.fields.filter(field => field.id === 'caseLinks')[0].value);
18170
18153
  this.linkedCasesService.caseFieldValue = caseLinkFieldValue.length ? caseLinkFieldValue[0] : [];
18171
18154
  this.linkedCasesService.getAllLinkedCaseInformation();
18172
18155
  }
@@ -18206,7 +18189,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
18206
18189
  type: Component,
18207
18190
  args: [{ selector: 'ccd-write-linked-cases-field', template: "<div class=\"form-group govuk-!-margin-bottom-2\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngSwitch]=\"linkedCasesPage\">\n <ng-container *ngSwitchCase=\"linkedCasesPages.BEFORE_YOU_START\">\n <ccd-linked-cases-before-you-start\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-linked-cases-before-you-start>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.NO_LINKED_CASES\">\n <ccd-no-linked-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-no-linked-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.LINK_CASE\">\n <ccd-link-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-link-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.UNLINK_CASE\">\n <ccd-unlink-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-unlink-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.CHECK_YOUR_ANSWERS\">\n <ccd-linked-cases-check-your-answers\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-linked-cases-check-your-answers>\n </ng-container>\n </div>\n</div>\n" }]
18208
18191
  }], () => [{ type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }], null); })();
18209
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber: 18 }); })();
18192
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber: 19 }); })();
18210
18193
 
18211
18194
  function ReadMoneyGbpFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
18212
18195
  i0.ɵɵelementContainerStart(0);
@@ -19593,10 +19576,8 @@ function QualifyingQuestionDetailComponent_ng_container_0_Template(rf, ctx) { if
19593
19576
  i0.ɵɵtext(5);
19594
19577
  i0.ɵɵpipe(6, "rpxTranslate");
19595
19578
  i0.ɵɵelementEnd();
19596
- i0.ɵɵelementStart(7, "div", 3);
19597
- i0.ɵɵelement(8, "ccd-markdown", 4);
19598
- i0.ɵɵpipe(9, "rpxTranslate");
19599
- i0.ɵɵelementEnd();
19579
+ i0.ɵɵelement(7, "ccd-markdown", 3);
19580
+ i0.ɵɵpipe(8, "rpxTranslate");
19600
19581
  i0.ɵɵelementContainerEnd();
19601
19582
  } if (rf & 2) {
19602
19583
  const ctx_r0 = i0.ɵɵnextContext();
@@ -19604,25 +19585,25 @@ function QualifyingQuestionDetailComponent_ng_container_0_Template(rf, ctx) { if
19604
19585
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, "Are you contacting us about any of the following:"), " ");
19605
19586
  i0.ɵɵadvance(3);
19606
19587
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 5, ctx_r0.qualifyingQuestion.name), " ");
19607
- i0.ɵɵadvance(3);
19608
- i0.ɵɵproperty("content", i0.ɵɵpipeBind1(9, 7, ctx_r0.qualifyingQuestion.markdown));
19588
+ i0.ɵɵadvance(2);
19589
+ i0.ɵɵproperty("content", i0.ɵɵpipeBind1(8, 7, ctx_r0.qualifyingQuestion.markdown));
19609
19590
  } }
19610
19591
  class QualifyingQuestionDetailComponent {
19611
19592
  qualifyingQuestion;
19612
19593
  static ɵfac = function QualifyingQuestionDetailComponent_Factory(t) { return new (t || QualifyingQuestionDetailComponent)(); };
19613
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QualifyingQuestionDetailComponent, selectors: [["ccd-qualifying-question-detail"]], inputs: { qualifyingQuestion: "qualifyingQuestion" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-caption-l"], [1, "govuk-heading-l"], [1, "qm-qualifying-question"], [3, "content"]], template: function QualifyingQuestionDetailComponent_Template(rf, ctx) { if (rf & 1) {
19614
- i0.ɵɵtemplate(0, QualifyingQuestionDetailComponent_ng_container_0_Template, 10, 9, "ng-container", 0);
19594
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QualifyingQuestionDetailComponent, selectors: [["ccd-qualifying-question-detail"]], inputs: { qualifyingQuestion: "qualifyingQuestion" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-caption-l"], [1, "govuk-heading-l"], [3, "content"]], template: function QualifyingQuestionDetailComponent_Template(rf, ctx) { if (rf & 1) {
19595
+ i0.ɵɵtemplate(0, QualifyingQuestionDetailComponent_ng_container_0_Template, 9, 9, "ng-container", 0);
19615
19596
  } if (rf & 2) {
19616
19597
  i0.ɵɵproperty("ngIf", ctx.qualifyingQuestion == null ? null : ctx.qualifyingQuestion.markdown);
19617
- } }, dependencies: [i5.NgIf, MarkdownComponent, i1.RpxTranslatePipe], styles: [".qm-qualifying-question[_ngcontent-%COMP%] .markdown[_ngcontent-%COMP%]{font-size:19px}"] });
19598
+ } }, dependencies: [i5.NgIf, MarkdownComponent, i1.RpxTranslatePipe], encapsulation: 2 });
19618
19599
  }
19619
19600
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QualifyingQuestionDetailComponent, [{
19620
19601
  type: Component,
19621
- args: [{ selector: 'ccd-qualifying-question-detail', template: "<ng-container *ngIf=\"qualifyingQuestion?.markdown\">\n <span class=\"govuk-caption-l\">\n {{ 'Are you contacting us about any of the following:' | rpxTranslate }}\n </span>\n <h1 class=\"govuk-heading-l\">\n {{ qualifyingQuestion.name | rpxTranslate }}\n </h1>\n <div class=\"qm-qualifying-question\">\n <ccd-markdown\n [content]=\"qualifyingQuestion.markdown | rpxTranslate\">\n </ccd-markdown>\n </div>\n</ng-container>\n", styles: [".qm-qualifying-question .markdown{font-size:19px}\n"] }]
19602
+ args: [{ selector: 'ccd-qualifying-question-detail', template: "<ng-container *ngIf=\"qualifyingQuestion?.markdown\">\n <span class=\"govuk-caption-l\">\n {{ 'Are you contacting us about any of the following:' | rpxTranslate }}\n </span>\n <h1 class=\"govuk-heading-l\">\n {{ qualifyingQuestion.name | rpxTranslate }}\n </h1>\n <ccd-markdown\n [content]=\"qualifyingQuestion.markdown | rpxTranslate\">\n </ccd-markdown>\n</ng-container>\n" }]
19622
19603
  }], null, { qualifyingQuestion: [{
19623
19604
  type: Input
19624
19605
  }] }); })();
19625
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QualifyingQuestionDetailComponent, { className: "QualifyingQuestionDetailComponent", filePath: "lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.ts", lineNumber: 9 }); })();
19606
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QualifyingQuestionDetailComponent, { className: "QualifyingQuestionDetailComponent", filePath: "lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.ts", lineNumber: 8 }); })();
19626
19607
 
19627
19608
  var RaiseQueryErrorMessage;
19628
19609
  (function (RaiseQueryErrorMessage) {
@@ -20281,6 +20262,7 @@ class QueryCheckYourAnswersComponent {
20281
20262
  caseViewTrigger;
20282
20263
  caseDetails;
20283
20264
  queryId;
20265
+ tid;
20284
20266
  createEventSubscription;
20285
20267
  searchTasksSubscription;
20286
20268
  queryCreateContextEnum = QueryCreateContext;
@@ -20300,8 +20282,11 @@ class QueryCheckYourAnswersComponent {
20300
20282
  }
20301
20283
  ngOnInit() {
20302
20284
  this.queryId = this.route.snapshot.params.qid;
20285
+ this.tid = this.route.snapshot.queryParams?.tid;
20286
+ console.log('tid:', this.tid);
20303
20287
  this.caseNotifier.caseView.pipe(take(1)).subscribe((caseDetails) => {
20304
20288
  this.caseDetails = caseDetails;
20289
+ console.log('caseDetails:', this.caseDetails.case_id, this.caseDetails);
20305
20290
  // Find the appropriate event trigger based on the queryCreateContext
20306
20291
  this.caseViewTrigger = this.caseDetails.triggers.find((trigger) => this.queryCreateContext !== QueryCreateContext.RESPOND
20307
20292
  // If the context is not 'RESPOND', find the trigger with the ID for raising a query
@@ -20312,6 +20297,23 @@ class QueryCheckYourAnswersComponent {
20312
20297
  // Get the document attachments
20313
20298
  this.getDocumentAttachments();
20314
20299
  this.setCaseQueriesCollectionData();
20300
+ this.workAllocationService.getTasksByCaseIdAndEventId(this.RESPOND_TO_QUERY_EVENT_TRIGGER_ID, this.caseDetails.case_id, this.caseDetails.case_type.id, this.caseDetails.case_type.jurisdiction.id)
20301
+ .subscribe((response) => {
20302
+ console.log('response:-queryManagementRespondToQ', response);
20303
+ });
20304
+ if (this.tid) {
20305
+ this.workAllocationService.getTask(this.tid).subscribe((response) => {
20306
+ console.log('response-tid------:', response);
20307
+ }, (error) => {
20308
+ console.error('Error in getTask:', error);
20309
+ // Handle error appropriately
20310
+ });
20311
+ }
20312
+ const searchParameter = { ccdId: this.caseDetails.case_id };
20313
+ this.workAllocationService.searchTasks(searchParameter)
20314
+ .subscribe((response) => {
20315
+ console.log('response:searchTasks', response);
20316
+ });
20315
20317
  }
20316
20318
  ngOnDestroy() {
20317
20319
  this.createEventSubscription?.unsubscribe();
@@ -20355,11 +20357,10 @@ class QueryCheckYourAnswersComponent {
20355
20357
  }
20356
20358
  searchAndCompleteTask() {
20357
20359
  // Search Task
20358
- const searchParameter = { ccdId: this.caseDetails.case_id };
20359
- this.searchTasksSubscription = this.workAllocationService.searchTasks(searchParameter)
20360
+ this.searchTasksSubscription = this.workAllocationService.getTasksByCaseIdAndEventId(this.RESPOND_TO_QUERY_EVENT_TRIGGER_ID, this.caseDetails.case_id, this.caseDetails.case_type.id, this.caseDetails.case_type.jurisdiction.id)
20360
20361
  .subscribe((response) => {
20361
20362
  // Filter task by query id
20362
- const filteredTask = response.tasks?.find((task) => Object.values(task.additional_properties).some((value) => value === this.queryId));
20363
+ const filteredTask = response.tasks?.find((task) => task.case_id === this.queryId);
20363
20364
  // Trigger event completion
20364
20365
  this.eventCompletionParams = {
20365
20366
  caseId: this.caseDetails.case_id,
@@ -20889,11 +20890,16 @@ function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
20889
20890
  } }
20890
20891
  class QueryDetailsComponent {
20891
20892
  sessionStorageService;
20893
+ route;
20892
20894
  query;
20893
20895
  backClicked = new EventEmitter();
20894
20896
  caseId;
20895
- constructor(sessionStorageService) {
20897
+ showLink = true;
20898
+ static QUERY_ITEM_RESPOND = '3';
20899
+ queryItemId;
20900
+ constructor(sessionStorageService, route) {
20896
20901
  this.sessionStorageService = sessionStorageService;
20902
+ this.route = route;
20897
20903
  }
20898
20904
  onBack() {
20899
20905
  this.backClicked.emit(true);
@@ -20904,8 +20910,15 @@ class QueryDetailsComponent {
20904
20910
  && !(userDetails.roles.includes('pui-case-manager')
20905
20911
  || userDetails.roles.some((role) => role.toLowerCase().includes('judge')));
20906
20912
  }
20907
- static ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService)); };
20908
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId" }, outputs: { backClicked: "backClicked" }, decls: 1, vars: 1, consts: [["followUpMessage", ""], [4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row govuk-table__row--isHearingRelated", 4, "ngIf"], ["class", "govuk-table__row", 4, "ngIf"], [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) {
20913
+ ngOnChanges() {
20914
+ this.toggleLinkVisibility();
20915
+ }
20916
+ toggleLinkVisibility() {
20917
+ this.queryItemId = this.route.snapshot.params.qid;
20918
+ this.showLink = this.queryItemId !== QueryDetailsComponent.QUERY_ITEM_RESPOND;
20919
+ }
20920
+ static ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
20921
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId" }, outputs: { backClicked: "backClicked" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["followUpMessage", ""], [4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row govuk-table__row--isHearingRelated", 4, "ngIf"], ["class", "govuk-table__row", 4, "ngIf"], [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) {
20909
20922
  i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 49, 43, "ng-container", 1);
20910
20923
  } if (rf & 2) {
20911
20924
  i0.ɵɵproperty("ngIf", ctx.query);
@@ -20914,7 +20927,7 @@ class QueryDetailsComponent {
20914
20927
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
20915
20928
  type: Component,
20916
20929
  args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\n <br/>\n <p>\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"onBack()\">{{ 'Back to query list' | rpxTranslate }}</a>\n </p>\n <div>\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Details of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Query details' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.lastSubmittedBy }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query subject' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.subject }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query body' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.body }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\" [class.govuk-table__header--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </th>\n <td class=\"govuk-table__cell\" [class.govuk-table__cell--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : (query.isHearingRelated) }}</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 MMM yyyy' }}</td>\n </tr>\n\n <tr *ngIf=\"isCaseworker()\" class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Caseworker name' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Response detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *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 MMM yyyy' }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *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"] }]
20917
- }], () => [{ type: SessionStorageService }], { query: [{
20930
+ }], () => [{ type: SessionStorageService }, { type: i1$1.ActivatedRoute }], { query: [{
20918
20931
  type: Input
20919
20932
  }], backClicked: [{
20920
20933
  type: Output
@@ -21300,8 +21313,8 @@ class QueryWriteDateInputComponent {
21300
21313
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteDateInputComponent, { className: "QueryWriteDateInputComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.ts", lineNumber: 15 }); })();
21301
21314
 
21302
21315
  const _c0$C = a0 => ({ "govuk-form-group--error": a0 });
21303
- function QueryWriteRaiseQueryComponent_div_11_p_11_Template(rf, ctx) { if (rf & 1) {
21304
- i0.ɵɵelementStart(0, "p", 27)(1, "span", 28);
21316
+ function QueryWriteRaiseQueryComponent_p_22_Template(rf, ctx) { if (rf & 1) {
21317
+ i0.ɵɵelementStart(0, "p", 26)(1, "span", 27);
21305
21318
  i0.ɵɵtext(2);
21306
21319
  i0.ɵɵpipe(3, "rpxTranslate");
21307
21320
  i0.ɵɵelementEnd();
@@ -21309,14 +21322,14 @@ function QueryWriteRaiseQueryComponent_div_11_p_11_Template(rf, ctx) { if (rf &
21309
21322
  i0.ɵɵpipe(5, "rpxTranslate");
21310
21323
  i0.ɵɵelementEnd();
21311
21324
  } if (rf & 2) {
21312
- const ctx_r0 = i0.ɵɵnextContext(2);
21325
+ const ctx_r0 = i0.ɵɵnextContext();
21313
21326
  i0.ɵɵadvance(2);
21314
21327
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
21315
21328
  i0.ɵɵadvance(2);
21316
21329
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_SUBJECT), " ");
21317
21330
  } }
21318
- function QueryWriteRaiseQueryComponent_div_11_p_21_Template(rf, ctx) { if (rf & 1) {
21319
- i0.ɵɵelementStart(0, "p", 29)(1, "span", 28);
21331
+ function QueryWriteRaiseQueryComponent_p_32_Template(rf, ctx) { if (rf & 1) {
21332
+ i0.ɵɵelementStart(0, "p", 28)(1, "span", 27);
21320
21333
  i0.ɵɵtext(2);
21321
21334
  i0.ɵɵpipe(3, "rpxTranslate");
21322
21335
  i0.ɵɵelementEnd();
@@ -21324,14 +21337,14 @@ function QueryWriteRaiseQueryComponent_div_11_p_21_Template(rf, ctx) { if (rf &
21324
21337
  i0.ɵɵpipe(5, "rpxTranslate");
21325
21338
  i0.ɵɵelementEnd();
21326
21339
  } if (rf & 2) {
21327
- const ctx_r0 = i0.ɵɵnextContext(2);
21340
+ const ctx_r0 = i0.ɵɵnextContext();
21328
21341
  i0.ɵɵadvance(2);
21329
21342
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
21330
21343
  i0.ɵɵadvance(2);
21331
21344
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_BODY), " ");
21332
21345
  } }
21333
- function QueryWriteRaiseQueryComponent_div_11_p_30_Template(rf, ctx) { if (rf & 1) {
21334
- i0.ɵɵelementStart(0, "p", 30)(1, "span", 28);
21346
+ function QueryWriteRaiseQueryComponent_p_41_Template(rf, ctx) { if (rf & 1) {
21347
+ i0.ɵɵelementStart(0, "p", 29)(1, "span", 27);
21335
21348
  i0.ɵɵtext(2);
21336
21349
  i0.ɵɵpipe(3, "rpxTranslate");
21337
21350
  i0.ɵɵelementEnd();
@@ -21339,14 +21352,14 @@ function QueryWriteRaiseQueryComponent_div_11_p_30_Template(rf, ctx) { if (rf &
21339
21352
  i0.ɵɵpipe(5, "rpxTranslate");
21340
21353
  i0.ɵɵelementEnd();
21341
21354
  } if (rf & 2) {
21342
- const ctx_r0 = i0.ɵɵnextContext(2);
21355
+ const ctx_r0 = i0.ɵɵnextContext();
21343
21356
  i0.ɵɵadvance(2);
21344
21357
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
21345
21358
  i0.ɵɵadvance(2);
21346
21359
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_HEARING_RELATED), " ");
21347
21360
  } }
21348
- function QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template(rf, ctx) { if (rf & 1) {
21349
- i0.ɵɵelementStart(0, "p", 36)(1, "span", 28);
21361
+ function QueryWriteRaiseQueryComponent_ng_container_53_p_7_Template(rf, ctx) { if (rf & 1) {
21362
+ i0.ɵɵelementStart(0, "p", 35)(1, "span", 27);
21350
21363
  i0.ɵɵtext(2);
21351
21364
  i0.ɵɵpipe(3, "rpxTranslate");
21352
21365
  i0.ɵɵelementEnd();
@@ -21354,24 +21367,24 @@ function QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template(rf, c
21354
21367
  i0.ɵɵpipe(5, "rpxTranslate");
21355
21368
  i0.ɵɵelementEnd();
21356
21369
  } if (rf & 2) {
21357
- const ctx_r0 = i0.ɵɵnextContext(3);
21370
+ const ctx_r0 = i0.ɵɵnextContext(2);
21358
21371
  i0.ɵɵadvance(2);
21359
21372
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
21360
21373
  i0.ɵɵadvance(2);
21361
21374
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_HEARING_DATE), " ");
21362
21375
  } }
21363
- function QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template(rf, ctx) { if (rf & 1) {
21376
+ function QueryWriteRaiseQueryComponent_ng_container_53_Template(rf, ctx) { if (rf & 1) {
21364
21377
  i0.ɵɵelementContainerStart(0);
21365
- i0.ɵɵelementStart(1, "div", 31)(2, "fieldset", 32)(3, "legend")(4, "label", 33);
21378
+ i0.ɵɵelementStart(1, "div", 30)(2, "fieldset", 31)(3, "legend")(4, "label", 32);
21366
21379
  i0.ɵɵtext(5);
21367
21380
  i0.ɵɵpipe(6, "rpxTranslate");
21368
21381
  i0.ɵɵelementEnd()();
21369
- i0.ɵɵtemplate(7, QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template, 6, 6, "p", 34);
21370
- i0.ɵɵelement(8, "ccd-query-write-date-input", 35);
21382
+ i0.ɵɵtemplate(7, QueryWriteRaiseQueryComponent_ng_container_53_p_7_Template, 6, 6, "p", 33);
21383
+ i0.ɵɵelement(8, "ccd-query-write-date-input", 34);
21371
21384
  i0.ɵɵelementEnd()();
21372
21385
  i0.ɵɵelementContainerEnd();
21373
21386
  } if (rf & 2) {
21374
- const ctx_r0 = i0.ɵɵnextContext(2);
21387
+ const ctx_r0 = i0.ɵɵnextContext();
21375
21388
  i0.ɵɵadvance();
21376
21389
  i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null));
21377
21390
  i0.ɵɵadvance(4);
@@ -21379,101 +21392,13 @@ function QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template(rf, ctx)
21379
21392
  i0.ɵɵadvance(2);
21380
21393
  i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null);
21381
21394
  } }
21382
- function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
21383
- i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "div")(3, "div", 7)(4, "div", 8)(5, "label", 9);
21384
- i0.ɵɵtext(6);
21385
- i0.ɵɵpipe(7, "rpxTranslate");
21386
- i0.ɵɵelementEnd()();
21387
- i0.ɵɵelementStart(8, "div", 10);
21388
- i0.ɵɵtext(9);
21389
- i0.ɵɵpipe(10, "rpxTranslate");
21390
- i0.ɵɵelementEnd();
21391
- i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_p_11_Template, 6, 6, "p", 11);
21392
- i0.ɵɵelement(12, "input", 12);
21393
- i0.ɵɵelementEnd()();
21394
- i0.ɵɵelementStart(13, "div", 7)(14, "div", 8)(15, "label", 13);
21395
- i0.ɵɵtext(16);
21396
- i0.ɵɵpipe(17, "rpxTranslate");
21397
- i0.ɵɵelementEnd()();
21398
- i0.ɵɵelementStart(18, "div", 14);
21399
- i0.ɵɵtext(19);
21400
- i0.ɵɵpipe(20, "rpxTranslate");
21401
- i0.ɵɵelementEnd();
21402
- i0.ɵɵtemplate(21, QueryWriteRaiseQueryComponent_div_11_p_21_Template, 6, 6, "p", 15);
21403
- i0.ɵɵelementStart(22, "textarea", 16);
21404
- i0.ɵɵtext(23, " ");
21405
- i0.ɵɵelementEnd()();
21406
- i0.ɵɵelementStart(24, "div", 7)(25, "fieldset", 17)(26, "legend")(27, "label", 18);
21407
- i0.ɵɵtext(28);
21408
- i0.ɵɵpipe(29, "rpxTranslate");
21409
- i0.ɵɵelementEnd()();
21410
- i0.ɵɵtemplate(30, QueryWriteRaiseQueryComponent_div_11_p_30_Template, 6, 6, "p", 19);
21411
- i0.ɵɵelementStart(31, "div", 20)(32, "div", 21);
21412
- i0.ɵɵelement(33, "input", 22);
21413
- i0.ɵɵelementStart(34, "label", 23);
21414
- i0.ɵɵtext(35);
21415
- i0.ɵɵpipe(36, "rpxTranslate");
21416
- i0.ɵɵelementEnd()();
21417
- i0.ɵɵelementStart(37, "div", 21);
21418
- i0.ɵɵelement(38, "input", 24);
21419
- i0.ɵɵelementStart(39, "label", 25);
21420
- i0.ɵɵtext(40);
21421
- i0.ɵɵpipe(41, "rpxTranslate");
21422
- i0.ɵɵelementEnd()()()();
21423
- i0.ɵɵtemplate(42, QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template, 9, 7, "ng-container", 26);
21424
- i0.ɵɵelementEnd()()();
21425
- } if (rf & 2) {
21426
- let tmp_6_0;
21427
- const ctx_r0 = i0.ɵɵnextContext();
21428
- i0.ɵɵadvance();
21429
- i0.ɵɵproperty("formGroup", ctx_r0.formGroup);
21430
- i0.ɵɵadvance(2);
21431
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
21432
- i0.ɵɵadvance(3);
21433
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 25, "Query subject"), " ");
21434
- i0.ɵɵadvance(3);
21435
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 27, "The subject should be a summary of your query"), " ");
21436
- i0.ɵɵadvance(2);
21437
- i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required"));
21438
- i0.ɵɵadvance();
21439
- i0.ɵɵclassProp("govuk-input--error", ctx_r0.submitted && ((tmp_6_0 = ctx_r0.formGroup.get("subject")) == null ? null : tmp_6_0.hasError("required")));
21440
- i0.ɵɵproperty("formControlName", "subject");
21441
- i0.ɵɵadvance();
21442
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
21443
- i0.ɵɵadvance(3);
21444
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 29, "Query detail"), " ");
21445
- i0.ɵɵadvance(3);
21446
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 31, "Include as many details as possible so case workers can respond to your query"), " ");
21447
- i0.ɵɵadvance(2);
21448
- i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
21449
- i0.ɵɵadvance();
21450
- i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
21451
- i0.ɵɵproperty("formControlName", "body");
21452
- i0.ɵɵadvance(2);
21453
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
21454
- i0.ɵɵadvance(4);
21455
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 33, "Is the query hearing related?"), " ");
21456
- i0.ɵɵadvance(2);
21457
- i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required"));
21458
- i0.ɵɵadvance(3);
21459
- i0.ɵɵproperty("checked", ctx_r0.formGroup.get("isHearingRelated").value === true)("value", true);
21460
- i0.ɵɵadvance(2);
21461
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(36, 35, "Is the query hearing related?", null, "Yes"), " ");
21462
- i0.ɵɵadvance(3);
21463
- i0.ɵɵproperty("checked", ctx_r0.formGroup.get("isHearingRelated").value === false)("value", false);
21464
- i0.ɵɵadvance(2);
21465
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(41, 39, "Is the query hearing related?", null, "No"), " ");
21466
- i0.ɵɵadvance(2);
21467
- i0.ɵɵproperty("ngIf", ctx_r0.formGroup.get("isHearingRelated").value);
21468
- } }
21469
21395
  class QueryWriteRaiseQueryComponent {
21470
21396
  formGroup;
21471
21397
  submitted;
21472
21398
  caseDetails;
21473
- showForm;
21474
21399
  raiseQueryErrorMessage = RaiseQueryErrorMessage;
21475
21400
  static ɵfac = function QueryWriteRaiseQueryComponent_Factory(t) { return new (t || QueryWriteRaiseQueryComponent)(); };
21476
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup", submitted: "submitted", caseDetails: "caseDetails", showForm: "showForm" }, decls: 12, vars: 8, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-4"], [3, "caseDetails"], ["class", "govuk-!-margin-bottom-4", 4, "ngIf"], [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-radios__conditional", "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) { if (rf & 1) {
21401
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup", submitted: "submitted", caseDetails: "caseDetails" }, decls: 54, vars: 56, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-4"], [3, "caseDetails"], [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-radios__conditional", "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) { if (rf & 1) {
21477
21402
  i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "div", 1);
21478
21403
  i0.ɵɵtext(3);
21479
21404
  i0.ɵɵpipe(4, "rpxTranslate");
@@ -21486,35 +21411,112 @@ class QueryWriteRaiseQueryComponent {
21486
21411
  i0.ɵɵelement(9, "ccd-query-case-details-header", 3);
21487
21412
  i0.ɵɵelementEnd();
21488
21413
  i0.ɵɵelement(10, "hr");
21489
- i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_Template, 43, 49, "div", 4);
21414
+ i0.ɵɵelementStart(11, "div", 4)(12, "div", 5)(13, "div")(14, "div", 6)(15, "div", 7)(16, "label", 8);
21415
+ i0.ɵɵtext(17);
21416
+ i0.ɵɵpipe(18, "rpxTranslate");
21417
+ i0.ɵɵelementEnd()();
21418
+ i0.ɵɵelementStart(19, "div", 9);
21419
+ i0.ɵɵtext(20);
21420
+ i0.ɵɵpipe(21, "rpxTranslate");
21421
+ i0.ɵɵelementEnd();
21422
+ i0.ɵɵtemplate(22, QueryWriteRaiseQueryComponent_p_22_Template, 6, 6, "p", 10);
21423
+ i0.ɵɵelement(23, "input", 11);
21424
+ i0.ɵɵelementEnd()();
21425
+ i0.ɵɵelementStart(24, "div", 6)(25, "div", 7)(26, "label", 12);
21426
+ i0.ɵɵtext(27);
21427
+ i0.ɵɵpipe(28, "rpxTranslate");
21428
+ i0.ɵɵelementEnd()();
21429
+ i0.ɵɵelementStart(29, "div", 13);
21430
+ i0.ɵɵtext(30);
21431
+ i0.ɵɵpipe(31, "rpxTranslate");
21490
21432
  i0.ɵɵelementEnd();
21433
+ i0.ɵɵtemplate(32, QueryWriteRaiseQueryComponent_p_32_Template, 6, 6, "p", 14);
21434
+ i0.ɵɵelementStart(33, "textarea", 15);
21435
+ i0.ɵɵtext(34, " ");
21436
+ i0.ɵɵelementEnd()();
21437
+ i0.ɵɵelementStart(35, "div", 6)(36, "fieldset", 16)(37, "legend")(38, "label", 17);
21438
+ i0.ɵɵtext(39);
21439
+ i0.ɵɵpipe(40, "rpxTranslate");
21440
+ i0.ɵɵelementEnd()();
21441
+ i0.ɵɵtemplate(41, QueryWriteRaiseQueryComponent_p_41_Template, 6, 6, "p", 18);
21442
+ i0.ɵɵelementStart(42, "div", 19)(43, "div", 20);
21443
+ i0.ɵɵelement(44, "input", 21);
21444
+ i0.ɵɵelementStart(45, "label", 22);
21445
+ i0.ɵɵtext(46);
21446
+ i0.ɵɵpipe(47, "rpxTranslate");
21447
+ i0.ɵɵelementEnd()();
21448
+ i0.ɵɵelementStart(48, "div", 20);
21449
+ i0.ɵɵelement(49, "input", 23);
21450
+ i0.ɵɵelementStart(50, "label", 24);
21451
+ i0.ɵɵtext(51);
21452
+ i0.ɵɵpipe(52, "rpxTranslate");
21453
+ i0.ɵɵelementEnd()()()();
21454
+ i0.ɵɵtemplate(53, QueryWriteRaiseQueryComponent_ng_container_53_Template, 9, 7, "ng-container", 25);
21455
+ i0.ɵɵelementEnd()()()();
21491
21456
  } if (rf & 2) {
21457
+ let tmp_8_0;
21492
21458
  i0.ɵɵadvance(3);
21493
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 4, "Raise a query"));
21459
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 28, "Raise a query"));
21494
21460
  i0.ɵɵadvance(3);
21495
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 6, "Enter query details"));
21461
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 30, "Enter query details"));
21496
21462
  i0.ɵɵadvance(3);
21497
21463
  i0.ɵɵproperty("caseDetails", ctx.caseDetails);
21464
+ i0.ɵɵadvance(3);
21465
+ i0.ɵɵproperty("formGroup", ctx.formGroup);
21466
+ i0.ɵɵadvance(2);
21467
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(50, _c0$C, ctx.submitted && ctx.formGroup.get("subject").hasError("required")));
21468
+ i0.ɵɵadvance(3);
21469
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 32, "Query subject"), " ");
21470
+ i0.ɵɵadvance(3);
21471
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(21, 34, "The subject should be a summary of your query"), " ");
21472
+ i0.ɵɵadvance(2);
21473
+ i0.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("subject").hasError("required"));
21474
+ i0.ɵɵadvance();
21475
+ i0.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_8_0 = ctx.formGroup.get("subject")) == null ? null : tmp_8_0.hasError("required")));
21476
+ i0.ɵɵproperty("formControlName", "subject");
21477
+ i0.ɵɵadvance();
21478
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(52, _c0$C, ctx.submitted && ctx.formGroup.get("body").hasError("required")));
21479
+ i0.ɵɵadvance(3);
21480
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(28, 36, "Query detail"), " ");
21481
+ i0.ɵɵadvance(3);
21482
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(31, 38, "Include as many details as possible so case workers can respond to your query"), " ");
21498
21483
  i0.ɵɵadvance(2);
21499
- i0.ɵɵproperty("ngIf", ctx.showForm);
21484
+ i0.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("body").hasError("required"));
21485
+ i0.ɵɵadvance();
21486
+ i0.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ctx.formGroup.get("body").hasError("required"));
21487
+ i0.ɵɵproperty("formControlName", "body");
21488
+ i0.ɵɵadvance(2);
21489
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(54, _c0$C, ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required")));
21490
+ i0.ɵɵadvance(4);
21491
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(40, 40, "Is the query hearing related?"), " ");
21492
+ i0.ɵɵadvance(2);
21493
+ i0.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required"));
21494
+ i0.ɵɵadvance(3);
21495
+ i0.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === true)("value", true);
21496
+ i0.ɵɵadvance(2);
21497
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(47, 42, "Is the query hearing related?", null, "Yes"), " ");
21498
+ i0.ɵɵadvance(3);
21499
+ i0.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === false)("value", false);
21500
+ i0.ɵɵadvance(2);
21501
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(52, 46, "Is the query hearing related?", null, "No"), " ");
21502
+ i0.ɵɵadvance(2);
21503
+ i0.ɵɵproperty("ngIf", ctx.formGroup.get("isHearingRelated").value);
21500
21504
  } }, encapsulation: 2 });
21501
21505
  }
21502
21506
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRaiseQueryComponent, [{
21503
21507
  type: Component,
21504
- args: [{ selector: 'ccd-query-write-raise-query', template: "<div>\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Raise a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-4\">{{ 'Enter query details' | rpxTranslate }}</h1>\n </div>\n\n <div>\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <hr>\n\n <div class=\"govuk-!-margin-bottom-4\" *ngIf=\"showForm\">\n <div [formGroup]=\"formGroup\">\n <div>\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('subject').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"subject\">\n {{ 'Query subject' | rpxTranslate }}\n </label>\n </div>\n <div id=\"subject-hint\" class=\"govuk-hint\">\n {{ 'The subject should be a summary of your query' | rpxTranslate }}\n </div>\n <p id=\"subject-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('subject').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_SUBJECT | rpxTranslate }}\n </p>\n <input [formControlName]=\"'subject'\" type=\"text\" name=\"subject\"\n class=\"govuk-input\" id=\"subject\"\n [class.govuk-input--error]=\"submitted && formGroup.get('subject')?.hasError('required')\"\n />\n </div>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('body').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ 'Query detail' | rpxTranslate }}\n </label>\n </div>\n <div id=\"body-hint\" class=\"govuk-hint\">\n {{ 'Include as many details as possible so case workers can respond to your query' | rpxTranslate }}\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\"\n id=\"body\" name=\"body\" rows=\"5\"\n aria-describedby=\"body-hint body-error\"\n class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body').hasError('required')\"\n >\n </textarea>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('isHearingRelated').hasError('required')}\">\n <fieldset class=\"govuk-fieldset\">\n <legend>\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"isHearingRelated-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_RELATED | rpxTranslate }}\n </p>\n <div class=\"govuk-radios govuk-radios--inline\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-yes\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === true\" [value]=\"true\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-yes\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'Yes' }}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-no\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === false\" [value]=\"false\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-no\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'No' }}\n </label>\n </div>\n </div>\n </fieldset>\n\n <ng-container *ngIf=\"formGroup.get('isHearingRelated').value\">\n <div class=\"govuk-radios__conditional govuk-!-margin-top-1\"\n [ngClass]=\"{'govuk-form-group--error': submitted &&\n formGroup.get('isHearingRelated').value === true &&\n formGroup.get('hearingDate').value === null}\">\n <fieldset class=\"govuk-fieldset\" role=\"group\">\n <legend>\n <label class=\"govuk-label govuk-label--s\">\n {{ 'What is the date of the hearing?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"hearingDate-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').value === true && formGroup.get('hearingDate').value === null\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_DATE | rpxTranslate }}\n </p>\n <ccd-query-write-date-input formControlName=\"hearingDate\"></ccd-query-write-date-input>\n </fieldset>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n" }]
21508
+ args: [{ selector: 'ccd-query-write-raise-query', template: "<div>\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Raise a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-4\">{{ 'Enter query details' | rpxTranslate }}</h1>\n </div>\n\n <div>\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <hr>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <div [formGroup]=\"formGroup\">\n <div>\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('subject').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"subject\">\n {{ 'Query subject' | rpxTranslate }}\n </label>\n </div>\n <div id=\"subject-hint\" class=\"govuk-hint\">\n {{ 'The subject should be a summary of your query' | rpxTranslate }}\n </div>\n <p id=\"subject-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('subject').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_SUBJECT | rpxTranslate }}\n </p>\n <input [formControlName]=\"'subject'\" type=\"text\" name=\"subject\"\n class=\"govuk-input\" id=\"subject\"\n [class.govuk-input--error]=\"submitted && formGroup.get('subject')?.hasError('required')\"\n />\n </div>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('body').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ 'Query detail' | rpxTranslate }}\n </label>\n </div>\n <div id=\"body-hint\" class=\"govuk-hint\">\n {{ 'Include as many details as possible so case workers can respond to your query' | rpxTranslate }}\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\"\n id=\"body\" name=\"body\" rows=\"5\"\n aria-describedby=\"body-hint body-error\"\n class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body').hasError('required')\"\n >\n </textarea>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('isHearingRelated').hasError('required')}\">\n <fieldset class=\"govuk-fieldset\">\n <legend>\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"isHearingRelated-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_RELATED | rpxTranslate }}\n </p>\n <div class=\"govuk-radios govuk-radios--inline\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-yes\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === true\" [value]=\"true\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-yes\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'Yes' }}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-no\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === false\" [value]=\"false\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-no\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'No' }}\n </label>\n </div>\n </div>\n </fieldset>\n\n <ng-container *ngIf=\"formGroup.get('isHearingRelated').value\">\n <div class=\"govuk-radios__conditional govuk-!-margin-top-1\"\n [ngClass]=\"{'govuk-form-group--error': submitted &&\n formGroup.get('isHearingRelated').value === true &&\n formGroup.get('hearingDate').value === null}\">\n <fieldset class=\"govuk-fieldset\" role=\"group\">\n <legend>\n <label class=\"govuk-label govuk-label--s\">\n {{ 'What is the date of the hearing?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"hearingDate-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').value === true && formGroup.get('hearingDate').value === null\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_DATE | rpxTranslate }}\n </p>\n <ccd-query-write-date-input formControlName=\"hearingDate\"></ccd-query-write-date-input>\n </fieldset>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n" }]
21505
21509
  }], null, { formGroup: [{
21506
21510
  type: Input
21507
21511
  }], submitted: [{
21508
21512
  type: Input
21509
21513
  }], caseDetails: [{
21510
21514
  type: Input
21511
- }], showForm: [{
21512
- type: Input
21513
21515
  }] }); })();
21514
21516
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteRaiseQueryComponent, { className: "QueryWriteRaiseQueryComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.ts", lineNumber: 8 }); })();
21515
21517
 
21516
- function QueryWriteRespondToQueryComponent_div_12_p_11_Template(rf, ctx) { if (rf & 1) {
21517
- i0.ɵɵelementStart(0, "p", 15)(1, "span", 16);
21518
+ function QueryWriteRespondToQueryComponent_p_23_Template(rf, ctx) { if (rf & 1) {
21519
+ i0.ɵɵelementStart(0, "p", 14)(1, "span", 15);
21518
21520
  i0.ɵɵtext(2);
21519
21521
  i0.ɵɵpipe(3, "rpxTranslate");
21520
21522
  i0.ɵɵelementEnd();
@@ -21522,51 +21524,18 @@ function QueryWriteRespondToQueryComponent_div_12_p_11_Template(rf, ctx) { if (r
21522
21524
  i0.ɵɵpipe(5, "rpxTranslate");
21523
21525
  i0.ɵɵelementEnd();
21524
21526
  } if (rf & 2) {
21525
- const ctx_r0 = i0.ɵɵnextContext(2);
21527
+ const ctx_r0 = i0.ɵɵnextContext();
21526
21528
  i0.ɵɵadvance(2);
21527
21529
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
21528
21530
  i0.ɵɵadvance(2);
21529
21531
  i0.ɵɵtextInterpolate1("", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? ctx_r0.raiseQueryErrorMessages.RESPOND_QUERY_BODY : i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessages.QUERY_BODY), " ");
21530
21532
  } }
21531
- function QueryWriteRespondToQueryComponent_div_12_Template(rf, ctx) { if (rf & 1) {
21532
- i0.ɵɵelementStart(0, "div", 7)(1, "div")(2, "h1", 8);
21533
- i0.ɵɵtext(3);
21534
- i0.ɵɵpipe(4, "rpxTranslate");
21535
- i0.ɵɵelementEnd();
21536
- i0.ɵɵelementStart(5, "div", 9)(6, "div", 10)(7, "div", 11)(8, "label", 12);
21537
- i0.ɵɵtext(9);
21538
- i0.ɵɵpipe(10, "rpxTranslate");
21539
- i0.ɵɵelementEnd()();
21540
- i0.ɵɵtemplate(11, QueryWriteRespondToQueryComponent_div_12_p_11_Template, 6, 6, "p", 13);
21541
- i0.ɵɵelementStart(12, "textarea", 14);
21542
- i0.ɵɵtext(13, " ");
21543
- i0.ɵɵelementEnd()()()()();
21544
- } if (rf & 2) {
21545
- let tmp_3_0;
21546
- let tmp_5_0;
21547
- let tmp_6_0;
21548
- const ctx_r0 = i0.ɵɵnextContext();
21549
- i0.ɵɵadvance(3);
21550
- i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Respond to a query" : i0.ɵɵpipeBind1(4, 9, "Ask a follow-up question"), " ");
21551
- i0.ɵɵadvance(2);
21552
- i0.ɵɵproperty("formGroup", ctx_r0.formGroup);
21553
- i0.ɵɵadvance();
21554
- i0.ɵɵclassProp("govuk-form-group--error", ctx_r0.submitted && ((tmp_3_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_3_0.hasError("required")));
21555
- i0.ɵɵadvance(3);
21556
- i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Response detail" : i0.ɵɵpipeBind1(10, 11, "Query Body"), " ");
21557
- i0.ɵɵadvance(2);
21558
- i0.ɵɵproperty("ngIf", ctx_r0.submitted && ((tmp_5_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_5_0.hasError("required")));
21559
- i0.ɵɵadvance();
21560
- i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ((tmp_6_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_6_0.hasError("required")));
21561
- i0.ɵɵproperty("formControlName", "body");
21562
- } }
21563
21533
  class QueryWriteRespondToQueryComponent {
21564
21534
  caseNotifier;
21565
21535
  queryItem;
21566
21536
  formGroup;
21567
21537
  queryCreateContext;
21568
21538
  submitted = false;
21569
- showForm;
21570
21539
  queryCreateContextEnum = QueryCreateContext;
21571
21540
  raiseQueryErrorMessages = RaiseQueryErrorMessage;
21572
21541
  caseId;
@@ -21581,7 +21550,7 @@ class QueryWriteRespondToQueryComponent {
21581
21550
  });
21582
21551
  }
21583
21552
  static ɵfac = function QueryWriteRespondToQueryComponent_Factory(t) { return new (t || QueryWriteRespondToQueryComponent)(i0.ɵɵdirectiveInject(CaseNotifier)); };
21584
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", queryCreateContext: "queryCreateContext", submitted: "submitted", showForm: "showForm" }, decls: 13, vars: 9, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-0"], [1, "govuk-!-margin-bottom-4"], [3, "caseDetails"], [3, "query"], ["class", "query-respond", 4, "ngIf"], [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) { if (rf & 1) {
21553
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", queryCreateContext: "queryCreateContext", submitted: "submitted" }, decls: 26, vars: 21, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-0"], [1, "govuk-!-margin-bottom-4"], [3, "caseDetails"], [3, "query"], [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) { if (rf & 1) {
21585
21554
  i0.ɵɵelementStart(0, "div", 0)(1, "div", 0)(2, "div", 1);
21586
21555
  i0.ɵɵtext(3);
21587
21556
  i0.ɵɵpipe(4, "rpxTranslate");
@@ -21596,23 +21565,48 @@ class QueryWriteRespondToQueryComponent {
21596
21565
  i0.ɵɵelementStart(10, "div");
21597
21566
  i0.ɵɵelement(11, "ccd-query-details", 5);
21598
21567
  i0.ɵɵelementEnd()();
21599
- i0.ɵɵtemplate(12, QueryWriteRespondToQueryComponent_div_12_Template, 14, 13, "div", 6);
21568
+ i0.ɵɵelementStart(12, "div", 6)(13, "div")(14, "h1", 7);
21569
+ i0.ɵɵtext(15);
21570
+ i0.ɵɵpipe(16, "rpxTranslate");
21571
+ i0.ɵɵelementEnd();
21572
+ i0.ɵɵelementStart(17, "div", 8)(18, "div", 9)(19, "div", 10)(20, "label", 11);
21573
+ i0.ɵɵtext(21);
21574
+ i0.ɵɵpipe(22, "rpxTranslate");
21575
+ i0.ɵɵelementEnd()();
21576
+ i0.ɵɵtemplate(23, QueryWriteRespondToQueryComponent_p_23_Template, 6, 6, "p", 12);
21577
+ i0.ɵɵelementStart(24, "textarea", 13);
21578
+ i0.ɵɵtext(25, " ");
21579
+ i0.ɵɵelementEnd()()()()();
21600
21580
  } if (rf & 2) {
21581
+ let tmp_6_0;
21582
+ let tmp_8_0;
21583
+ let tmp_9_0;
21601
21584
  i0.ɵɵadvance(3);
21602
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 5, "Respond to a query"));
21585
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 13, "Respond to a query"));
21603
21586
  i0.ɵɵadvance(3);
21604
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 7, "Query details"));
21587
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 15, "Query details"));
21605
21588
  i0.ɵɵadvance(3);
21606
21589
  i0.ɵɵproperty("caseDetails", ctx.caseDetails);
21607
21590
  i0.ɵɵadvance(2);
21608
21591
  i0.ɵɵproperty("query", ctx.queryItem);
21592
+ i0.ɵɵadvance(4);
21593
+ i0.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Respond to a query" : i0.ɵɵpipeBind1(16, 17, "Ask a follow-up question"), " ");
21594
+ i0.ɵɵadvance(2);
21595
+ i0.ɵɵproperty("formGroup", ctx.formGroup);
21609
21596
  i0.ɵɵadvance();
21610
- i0.ɵɵproperty("ngIf", ctx.showForm);
21597
+ i0.ɵɵclassProp("govuk-form-group--error", ctx.submitted && ((tmp_6_0 = ctx.formGroup.get("body")) == null ? null : tmp_6_0.hasError("required")));
21598
+ i0.ɵɵadvance(3);
21599
+ i0.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Response detail" : i0.ɵɵpipeBind1(22, 19, "Query Body"), " ");
21600
+ i0.ɵɵadvance(2);
21601
+ i0.ɵɵproperty("ngIf", ctx.submitted && ((tmp_8_0 = ctx.formGroup.get("body")) == null ? null : tmp_8_0.hasError("required")));
21602
+ i0.ɵɵadvance();
21603
+ i0.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ((tmp_9_0 = ctx.formGroup.get("body")) == null ? null : tmp_9_0.hasError("required")));
21604
+ i0.ɵɵproperty("formControlName", "body");
21611
21605
  } }, styles: [".query-respond[_ngcontent-%COMP%]{width:100%;max-width:720px}"] });
21612
21606
  }
21613
21607
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRespondToQueryComponent, [{
21614
21608
  type: Component,
21615
- args: [{ selector: 'ccd-query-write-respond-to-query', template: "<div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Respond to a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-0\">{{ 'Query details' | rpxTranslate }}</h1>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <div>\n <ccd-query-details [query]=\"queryItem\"></ccd-query-details>\n </div>\n</div>\n\n<div class=\"query-respond\" *ngIf=\"showForm\">\n <div>\n <h1 class=\"govuk-heading-m\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Respond to a query' : 'Ask a follow-up question' | rpxTranslate }}\n </h1>\n\n <div [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group body-textarea\"\n [class.govuk-form-group--error]=\"submitted && formGroup.get('body')?.hasError('required')\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Response detail' : 'Query Body' | rpxTranslate }}\n </label>\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body')?.hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ queryCreateContext === queryCreateContextEnum.RESPOND ? raiseQueryErrorMessages.RESPOND_QUERY_BODY : raiseQueryErrorMessages.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\" class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body')?.hasError('required')\" id=\"body\"\n name=\"body\" rows=\"5\" aria-describedby=\"body-hint body-error\">\n </textarea>\n </div>\n </div>\n </div>\n</div>\n", styles: [".query-respond{width:100%;max-width:720px}\n"] }]
21609
+ args: [{ selector: 'ccd-query-write-respond-to-query', template: "<div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Respond to a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-0\">{{ 'Query details' | rpxTranslate }}</h1>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <div>\n <ccd-query-details [query]=\"queryItem\"></ccd-query-details>\n </div>\n</div>\n\n<div class=\"query-respond\">\n <div>\n <h1 class=\"govuk-heading-m\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Respond to a query' : 'Ask a follow-up question' | rpxTranslate }}\n </h1>\n\n <div [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group body-textarea\"\n [class.govuk-form-group--error]=\"submitted && formGroup.get('body')?.hasError('required')\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Response detail' : 'Query Body' | rpxTranslate }}\n </label>\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body')?.hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ queryCreateContext === queryCreateContextEnum.RESPOND ? raiseQueryErrorMessages.RESPOND_QUERY_BODY : raiseQueryErrorMessages.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\" class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body')?.hasError('required')\" id=\"body\"\n name=\"body\" rows=\"5\" aria-describedby=\"body-hint body-error\">\n </textarea>\n </div>\n </div>\n </div>\n</div>\n", styles: [".query-respond{width:100%;max-width:720px}\n"] }]
21616
21610
  }], () => [{ type: CaseNotifier }], { queryItem: [{
21617
21611
  type: Input
21618
21612
  }], formGroup: [{
@@ -21621,8 +21615,6 @@ class QueryWriteRespondToQueryComponent {
21621
21615
  type: Input
21622
21616
  }], submitted: [{
21623
21617
  type: Input
21624
- }], showForm: [{
21625
- type: Input
21626
21618
  }] }); })();
21627
21619
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteRespondToQueryComponent, { className: "QueryWriteRespondToQueryComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.ts", lineNumber: 14 }); })();
21628
21620
 
@@ -27670,7 +27662,7 @@ class EventLogTableComponent {
27670
27662
 
27671
27663
  function EventLogComponent_ccd_event_log_table_3_Template(rf, ctx) { if (rf & 1) {
27672
27664
  const _r1 = i0.ɵɵgetCurrentView();
27673
- i0.ɵɵelementStart(0, "ccd-event-log-table", 8);
27665
+ i0.ɵɵelementStart(0, "ccd-event-log-table", 7);
27674
27666
  i0.ɵɵlistener("onSelect", function EventLogComponent_ccd_event_log_table_3_Template_ccd_event_log_table_onSelect_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.select($event)); })("onCaseHistory", function EventLogComponent_ccd_event_log_table_3_Template_ccd_event_log_table_onCaseHistory_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.caseHistoryClicked($event)); });
27675
27667
  i0.ɵɵelementEnd();
27676
27668
  } if (rf & 2) {
@@ -27679,7 +27671,7 @@ function EventLogComponent_ccd_event_log_table_3_Template(rf, ctx) { if (rf & 1)
27679
27671
  } }
27680
27672
  function EventLogComponent_ccd_event_log_table_4_Template(rf, ctx) { if (rf & 1) {
27681
27673
  const _r3 = i0.ɵɵgetCurrentView();
27682
- i0.ɵɵelementStart(0, "ccd-event-log-table", 9);
27674
+ i0.ɵɵelementStart(0, "ccd-event-log-table", 8);
27683
27675
  i0.ɵɵlistener("onSelect", function EventLogComponent_ccd_event_log_table_4_Template_ccd_event_log_table_onSelect_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.select($event)); });
27684
27676
  i0.ɵɵelementEnd();
27685
27677
  } if (rf & 2) {
@@ -27687,7 +27679,7 @@ function EventLogComponent_ccd_event_log_table_4_Template(rf, ctx) { if (rf & 1)
27687
27679
  i0.ɵɵproperty("events", ctx_r1.events)("selected", ctx_r1.selected);
27688
27680
  } }
27689
27681
  function EventLogComponent_ccd_event_log_details_7_Template(rf, ctx) { if (rf & 1) {
27690
- i0.ɵɵelement(0, "ccd-event-log-details", 10);
27682
+ i0.ɵɵelement(0, "ccd-event-log-details", 9);
27691
27683
  } if (rf & 2) {
27692
27684
  const ctx_r1 = i0.ɵɵnextContext();
27693
27685
  i0.ɵɵproperty("event", ctx_r1.selected);
@@ -27708,14 +27700,14 @@ class EventLogComponent {
27708
27700
  this.onCaseHistory.emit(eventId);
27709
27701
  }
27710
27702
  static ɵfac = function EventLogComponent_Factory(t) { return new (t || EventLogComponent)(); };
27711
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventLogComponent, selectors: [["ccd-event-log"]], inputs: { events: "events" }, outputs: { onCaseHistory: "onCaseHistory" }, decls: 8, vars: 4, consts: [[1, "grid-row"], [1, "column-one-half", "scrollbar"], [3, "ngSwitch"], [3, "events", "selected", "onSelect", "onCaseHistory", 4, "ngSwitchCase"], [3, "events", "selected", "onSelect", 4, "ngSwitchCase"], [1, "column-one-half"], [1, "EventLog-DetailsPanel"], [3, "event", 4, "ngIf"], [3, "onSelect", "onCaseHistory", "events", "selected"], [3, "onSelect", "events", "selected"], [3, "event"]], template: function EventLogComponent_Template(rf, ctx) { if (rf & 1) {
27703
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventLogComponent, selectors: [["ccd-event-log"]], inputs: { events: "events" }, outputs: { onCaseHistory: "onCaseHistory" }, decls: 8, vars: 4, consts: [[1, "grid-row"], [1, "column-one-half"], [3, "ngSwitch"], [3, "events", "selected", "onSelect", "onCaseHistory", 4, "ngSwitchCase"], [3, "events", "selected", "onSelect", 4, "ngSwitchCase"], [1, "EventLog-DetailsPanel"], [3, "event", 4, "ngIf"], [3, "onSelect", "onCaseHistory", "events", "selected"], [3, "onSelect", "events", "selected"], [3, "event"]], template: function EventLogComponent_Template(rf, ctx) { if (rf & 1) {
27712
27704
  i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
27713
27705
  i0.ɵɵelementContainerStart(2, 2);
27714
27706
  i0.ɵɵtemplate(3, EventLogComponent_ccd_event_log_table_3_Template, 1, 2, "ccd-event-log-table", 3)(4, EventLogComponent_ccd_event_log_table_4_Template, 1, 2, "ccd-event-log-table", 4);
27715
27707
  i0.ɵɵelementContainerEnd();
27716
27708
  i0.ɵɵelementEnd();
27717
- i0.ɵɵelementStart(5, "div", 5)(6, "div", 6);
27718
- i0.ɵɵtemplate(7, EventLogComponent_ccd_event_log_details_7_Template, 1, 1, "ccd-event-log-details", 7);
27709
+ i0.ɵɵelementStart(5, "div", 1)(6, "div", 5);
27710
+ i0.ɵɵtemplate(7, EventLogComponent_ccd_event_log_details_7_Template, 1, 1, "ccd-event-log-details", 6);
27719
27711
  i0.ɵɵelementEnd()()();
27720
27712
  } if (rf & 2) {
27721
27713
  i0.ɵɵadvance(2);
@@ -27726,11 +27718,11 @@ class EventLogComponent {
27726
27718
  i0.ɵɵproperty("ngSwitchCase", false);
27727
27719
  i0.ɵɵadvance(3);
27728
27720
  i0.ɵɵproperty("ngIf", ctx.selected);
27729
- } }, styles: ["@media (max-width: 991px){[class*=col-md][_ngcontent-%COMP%]{margin-bottom:30px}}.column-half[_ngcontent-%COMP%], .column-one-half[_ngcontent-%COMP%]{float:left;width:50%}@media (min-width: 641px){.scrollbar[_ngcontent-%COMP%]{height:70vh;overflow-y:auto}}.EventLog-DetailsPanel[_ngcontent-%COMP%]{border:1px solid #bfc1c3;padding:0 10px 10px;margin-top:20px}"] });
27721
+ } }, styles: ["@media (max-width: 991px){[class*=col-md][_ngcontent-%COMP%]{margin-bottom:30px}}.EventLog-DetailsPanel[_ngcontent-%COMP%]{border:1px solid #bfc1c3;padding:0 10px 10px;margin-top:20px}"] });
27730
27722
  }
27731
27723
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventLogComponent, [{
27732
27724
  type: Component,
27733
- args: [{ selector: 'ccd-event-log', template: "<div class=\"grid-row\">\n <div class=\"column-one-half scrollbar\">\n <ng-container [ngSwitch]=\"isPartOfCaseTimeline\">\n <ccd-event-log-table\n *ngSwitchCase=\"true\"\n [events]=\"events\"\n [selected]=\"selected\"\n (onSelect)=\"select($event)\"\n (onCaseHistory)=\"caseHistoryClicked($event)\"\n ></ccd-event-log-table>\n <ccd-event-log-table\n *ngSwitchCase=\"false\"\n [events]=\"events\"\n [selected]=\"selected\"\n (onSelect)=\"select($event)\"\n ></ccd-event-log-table>\n </ng-container>\n </div>\n <div class=\"column-one-half\">\n <div class=\"EventLog-DetailsPanel\">\n <ccd-event-log-details\n *ngIf=\"selected\"\n [event]=\"selected\"\n ></ccd-event-log-details>\n </div>\n </div>\n</div>\n", styles: ["@media (max-width: 991px){[class*=col-md]{margin-bottom:30px}}.column-half,.column-one-half{float:left;width:50%}@media (min-width: 641px){.scrollbar{height:70vh;overflow-y:auto}}.EventLog-DetailsPanel{border:1px solid #bfc1c3;padding:0 10px 10px;margin-top:20px}\n"] }]
27725
+ args: [{ selector: 'ccd-event-log', template: "<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ng-container [ngSwitch]=\"isPartOfCaseTimeline\">\n <ccd-event-log-table *ngSwitchCase=\"true\" [events]=\"events\" [selected]=\"selected\" (onSelect)=\"select($event)\" (onCaseHistory)=\"caseHistoryClicked($event)\"></ccd-event-log-table>\n <ccd-event-log-table *ngSwitchCase=\"false\" [events]=\"events\" [selected]=\"selected\" (onSelect)=\"select($event)\"></ccd-event-log-table>\n </ng-container>\n </div>\n <div class=\"column-one-half\">\n <div class=\"EventLog-DetailsPanel\">\n <ccd-event-log-details *ngIf=\"selected\" [event]=\"selected\"></ccd-event-log-details>\n </div>\n </div>\n</div>\n", styles: ["@media (max-width: 991px){[class*=col-md]{margin-bottom:30px}}.EventLog-DetailsPanel{border:1px solid #bfc1c3;padding:0 10px 10px;margin-top:20px}\n"] }]
27734
27726
  }], null, { events: [{
27735
27727
  type: Input
27736
27728
  }], onCaseHistory: [{