@hmcts/ccd-case-ui-toolkit 7.1.75-qm-1 → 7.1.76-callback-success-message

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (15) hide show
  1. package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +21 -6
  2. package/esm2022/lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.mjs +33 -31
  3. package/esm2022/lib/shared/components/palette/query-management/components/query-details/query-details.component.mjs +15 -7
  4. package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.mjs +14 -9
  5. package/esm2022/lib/shared/components/palette/query-management/read-query-management-field.component.mjs +3 -3
  6. package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +79 -50
  7. package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
  8. package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +4 -1
  9. package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts.map +1 -1
  10. package/lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.d.ts +4 -1
  11. package/lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.d.ts.map +1 -1
  12. package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts +1 -0
  13. package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts.map +1 -1
  14. 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
  15. package/package.json +1 -1
@@ -21142,6 +21142,7 @@ class QueryCheckYourAnswersComponent {
21142
21142
  eventData = null;
21143
21143
  backClicked = new EventEmitter();
21144
21144
  querySubmitted = new EventEmitter();
21145
+ callbackConfirmationMessage = new EventEmitter();
21145
21146
  caseViewTrigger;
21146
21147
  caseDetails;
21147
21148
  queryId;
@@ -21223,7 +21224,12 @@ class QueryCheckYourAnswersComponent {
21223
21224
  const createEvent$ = this.createEvent(data);
21224
21225
  if (this.queryCreateContext === QueryCreateContext.RESPOND) {
21225
21226
  if (this.filteredTasks?.length > 0) {
21226
- this.createEventSubscription = createEvent$.pipe(switchMap((createEventResponse) => this.workAllocationService.completeTask(this.filteredTasks[0].id, this.caseViewTrigger.name))).subscribe({
21227
+ this.createEventSubscription = createEvent$.pipe(switchMap((createEventResponse) => {
21228
+ const confirmationBody = createEventResponse?.after_submit_callback_response?.confirmation_body;
21229
+ const confirmationHeader = createEventResponse?.after_submit_callback_response?.confirmation_header;
21230
+ this.callbackConfirmationMessage.emit({ body: confirmationBody, header: confirmationHeader });
21231
+ return this.workAllocationService.completeTask(this.filteredTasks[0].id, this.caseViewTrigger.name);
21232
+ })).subscribe({
21227
21233
  next: () => this.finaliseSubmission(),
21228
21234
  error: (error) => this.handleError(error)
21229
21235
  });
@@ -21241,7 +21247,12 @@ class QueryCheckYourAnswersComponent {
21241
21247
  }
21242
21248
  else {
21243
21249
  this.createEventSubscription = createEvent$.subscribe({
21244
- next: () => this.finaliseSubmission(),
21250
+ next: (callbackResponse) => {
21251
+ this.finaliseSubmission();
21252
+ const confirmationBody = callbackResponse?.after_submit_callback_response?.confirmation_body;
21253
+ const confirmationHeader = callbackResponse?.after_submit_callback_response?.confirmation_header;
21254
+ this.callbackConfirmationMessage.emit({ body: confirmationBody, header: confirmationHeader });
21255
+ },
21245
21256
  error: (error) => this.handleError(error)
21246
21257
  });
21247
21258
  }
@@ -21402,11 +21413,13 @@ class QueryCheckYourAnswersComponent {
21402
21413
  const candidateFields = this.eventData?.case_fields?.filter((field) => field.field_type.id === this.CASE_QUERIES_COLLECTION_ID &&
21403
21414
  field.field_type.type === this.FIELD_TYPE_COMPLEX &&
21404
21415
  field.display_context !== this.DISPLAY_CONTEXT_READONLY);
21405
- if (!candidateFields?.length)
21416
+ if (!candidateFields?.length) {
21406
21417
  return undefined;
21418
+ }
21407
21419
  const firstPageFields = this.eventData?.wizard_pages?.[0]?.wizard_page_fields;
21408
- if (!firstPageFields)
21420
+ if (!firstPageFields) {
21409
21421
  return undefined;
21422
+ }
21410
21423
  return candidateFields
21411
21424
  .map((field) => {
21412
21425
  const wizardField = firstPageFields.find(f => f.case_field_id === field.id);
@@ -21425,7 +21438,7 @@ class QueryCheckYourAnswersComponent {
21425
21438
  }
21426
21439
  }
21427
21440
  static ɵfac = function QueryCheckYourAnswersComponent_Factory(t) { return new (t || QueryCheckYourAnswersComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(WorkAllocationService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(QualifyingQuestionService)); };
21428
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", queryCreateContext: "queryCreateContext", eventData: "eventData" }, outputs: { backClicked: "backClicked", querySubmitted: "querySubmitted" }, decls: 33, vars: 22, consts: [["defaultCheckYourAnswersTitle", ""], ["isHearingRelatedFalse", ""], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfElse"], [1, "govuk-!-margin-bottom-4"], [3, "caseDetails"], ["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"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", "type", "submit", 1, "govuk-button", 3, "click"], [3, "eventCompletionParams"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0)", 1, "validation-error", 3, "id"], [1, "govuk-caption-l"], ["href", "javascript:void(0)", "class", "govuk-link", 3, "click", 4, "ngIf"], ["class", "govuk-summary-list__row", 4, "ngIf"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "attachments", 4, "ngIf"], [3, "attachments"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) { if (rf & 1) {
21441
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", queryCreateContext: "queryCreateContext", eventData: "eventData" }, outputs: { backClicked: "backClicked", querySubmitted: "querySubmitted", callbackConfirmationMessage: "callbackConfirmationMessage" }, decls: 33, vars: 22, consts: [["defaultCheckYourAnswersTitle", ""], ["isHearingRelatedFalse", ""], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfElse"], [1, "govuk-!-margin-bottom-4"], [3, "caseDetails"], ["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"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", "type", "submit", 1, "govuk-button", 3, "click"], [3, "eventCompletionParams"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0)", 1, "validation-error", 3, "id"], [1, "govuk-caption-l"], ["href", "javascript:void(0)", "class", "govuk-link", 3, "click", 4, "ngIf"], ["class", "govuk-summary-list__row", 4, "ngIf"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "attachments", 4, "ngIf"], [3, "attachments"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) { if (rf & 1) {
21429
21442
  const _r1 = i0.ɵɵgetCurrentView();
21430
21443
  i0.ɵɵelementStart(0, "div", 2)(1, "div", 3);
21431
21444
  i0.ɵɵtemplate(2, QueryCheckYourAnswersComponent_div_2_Template, 7, 4, "div", 4)(3, QueryCheckYourAnswersComponent_ng_container_3_Template, 4, 3, "ng-container", 5);
@@ -21508,6 +21521,8 @@ class QueryCheckYourAnswersComponent {
21508
21521
  type: Output
21509
21522
  }], querySubmitted: [{
21510
21523
  type: Output
21524
+ }], callbackConfirmationMessage: [{
21525
+ type: Output
21511
21526
  }] }); })();
21512
21527
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCheckYourAnswersComponent, { className: "QueryCheckYourAnswersComponent", filePath: "lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.ts", lineNumber: 28 }); })();
21513
21528
 
@@ -21849,6 +21864,7 @@ class QueryDetailsComponent {
21849
21864
  showItem = true;
21850
21865
  message;
21851
21866
  static QUERY_ITEM_RESPOND = '3';
21867
+ static QUERY_ITEM_FOLLOW_UP = '4';
21852
21868
  queryItemId;
21853
21869
  constructor(sessionStorageService, route, router) {
21854
21870
  this.sessionStorageService = sessionStorageService;
@@ -21867,18 +21883,25 @@ class QueryDetailsComponent {
21867
21883
  }
21868
21884
  toggleLinkVisibility() {
21869
21885
  this.queryItemId = this.route.snapshot.params.qid;
21870
- this.showItem = this.queryItemId !== QueryDetailsComponent.QUERY_ITEM_RESPOND;
21886
+ if (this.queryItemId === QueryDetailsComponent.QUERY_ITEM_RESPOND || this.queryItemId === QueryDetailsComponent.QUERY_ITEM_FOLLOW_UP) {
21887
+ this.showItem = false;
21888
+ }
21871
21889
  }
21872
21890
  hasRespondedToQuery() {
21873
- if (this.queryResponseStatus === undefined || this.queryResponseStatus === QueryItemResponseStatus.AWAITING) {
21874
- this.hasResponded.emit(false);
21875
- return false;
21876
- }
21877
- if (this.isInternalUser() && this.queryResponseStatus !== QueryItemResponseStatus.AWAITING) {
21891
+ const isAwaiting = this.queryResponseStatus === undefined || this.queryResponseStatus === QueryItemResponseStatus.AWAITING;
21892
+ if (this.isInternalUser()) {
21893
+ if (isAwaiting) {
21894
+ this.hasResponded.emit(false);
21895
+ return false;
21896
+ }
21878
21897
  this.message = Constants.TASK_COMPLETION_ERROR;
21879
21898
  this.hasResponded.emit(true);
21880
21899
  return true;
21881
21900
  }
21901
+ if (isAwaiting) {
21902
+ this.hasResponded.emit(true);
21903
+ return false; // Don't show message
21904
+ }
21882
21905
  this.hasResponded.emit(false);
21883
21906
  return false;
21884
21907
  }
@@ -22617,8 +22640,7 @@ class QueryWriteRespondToQueryComponent {
22617
22640
  });
22618
22641
  }
22619
22642
  ngOnChanges() {
22620
- if (this.queryItemId === QueryWriteRespondToQueryComponent.QUERY_ITEM_RESPOND
22621
- && this.caseQueriesCollections?.length > 0) {
22643
+ if (this.caseQueriesCollections?.length > 0) {
22622
22644
  if (!this.caseQueriesCollections[0]) {
22623
22645
  console.error('caseQueriesCollections[0] is undefined!', this.caseQueriesCollections);
22624
22646
  return;
@@ -22635,13 +22657,19 @@ class QueryWriteRespondToQueryComponent {
22635
22657
  .filter((message) => message?.value?.id === messageId); // Safe access
22636
22658
  if (filteredMessages.length > 0) {
22637
22659
  const matchingMessage = filteredMessages[0]?.value;
22638
- const filteredQuery = queryWithChildren?.queries.filter((message) => filteredMessages[0]?.value?.parentId === message?.id);
22639
- this.queryResponseStatus = filteredQuery[0]?.responseStatus;
22640
- if (matchingMessage) {
22641
- this.queryItemDisplay = new QueryListItem();
22642
- Object.assign(this.queryItemDisplay, matchingMessage);
22643
- this.queryItem = this.queryItemDisplay;
22660
+ let filteredQuery = [];
22661
+ if (this.queryItemId === QueryWriteRespondToQueryComponent.QUERY_ITEM_RESPOND) {
22662
+ filteredQuery = queryWithChildren?.queries.filter((message) => filteredMessages[0]?.value?.parentId === message?.id);
22663
+ if (matchingMessage) {
22664
+ this.queryItemDisplay = new QueryListItem();
22665
+ Object.assign(this.queryItemDisplay, matchingMessage);
22666
+ this.queryItem = this.queryItemDisplay;
22667
+ }
22668
+ }
22669
+ else {
22670
+ filteredQuery = queryWithChildren?.queries.filter((message) => filteredMessages[0]?.value?.id === message?.id);
22644
22671
  }
22672
+ this.queryResponseStatus = filteredQuery[0]?.responseStatus;
22645
22673
  }
22646
22674
  }
22647
22675
  }
@@ -22706,27 +22734,25 @@ function QueryConfirmationComponent_main_0_ng_container_3_Template(rf, ctx) { if
22706
22734
  i0.ɵɵpipe(4, "rpxTranslate");
22707
22735
  i0.ɵɵelementEnd();
22708
22736
  i0.ɵɵelementStart(5, "div", 7);
22709
- i0.ɵɵtext(6);
22737
+ i0.ɵɵelement(6, "ccd-markdown", 8);
22710
22738
  i0.ɵɵpipe(7, "rpxTranslate");
22711
22739
  i0.ɵɵelementEnd()();
22712
- i0.ɵɵelementStart(8, "div", 8)(9, "h3", 9);
22740
+ i0.ɵɵelementStart(8, "div", 9)(9, "h3", 10);
22713
22741
  i0.ɵɵtext(10);
22714
22742
  i0.ɵɵpipe(11, "rpxTranslate");
22715
22743
  i0.ɵɵelementEnd();
22716
- i0.ɵɵelementStart(12, "p");
22717
- i0.ɵɵtext(13);
22718
- i0.ɵɵpipe(14, "rpxTranslate");
22719
- i0.ɵɵelementEnd();
22720
- i0.ɵɵelementStart(15, "p");
22721
- i0.ɵɵtext(16);
22722
- i0.ɵɵpipe(17, "rpxTranslate");
22744
+ i0.ɵɵelement(12, "ccd-markdown", 8);
22745
+ i0.ɵɵpipe(13, "rpxTranslate");
22746
+ i0.ɵɵelementStart(14, "p");
22747
+ i0.ɵɵtext(15);
22748
+ i0.ɵɵpipe(16, "rpxTranslate");
22723
22749
  i0.ɵɵelementEnd();
22724
- i0.ɵɵelementStart(18, "p");
22725
- i0.ɵɵtext(19);
22726
- i0.ɵɵpipe(20, "rpxTranslate");
22727
- i0.ɵɵelementStart(21, "a", 10);
22728
- i0.ɵɵtext(22);
22729
- i0.ɵɵpipe(23, "rpxTranslate");
22750
+ i0.ɵɵelementStart(17, "p");
22751
+ i0.ɵɵtext(18);
22752
+ i0.ɵɵpipe(19, "rpxTranslate");
22753
+ i0.ɵɵelementStart(20, "a", 11);
22754
+ i0.ɵɵtext(21);
22755
+ i0.ɵɵpipe(22, "rpxTranslate");
22730
22756
  i0.ɵɵelementEnd()()();
22731
22757
  i0.ɵɵelementContainerEnd();
22732
22758
  } if (rf & 2) {
@@ -22734,19 +22760,19 @@ function QueryConfirmationComponent_main_0_ng_container_3_Template(rf, ctx) { if
22734
22760
  i0.ɵɵadvance(3);
22735
22761
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 9, "Query submitted"));
22736
22762
  i0.ɵɵadvance(3);
22737
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 11, "Your query has been sent to HMCTS"));
22763
+ i0.ɵɵproperty("content", i0.ɵɵpipeBind1(7, 11, ctx_r0.callbackConfirmationMessageText == null ? null : ctx_r0.callbackConfirmationMessageText.header));
22738
22764
  i0.ɵɵadvance(4);
22739
22765
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 13, "What happens next"));
22766
+ i0.ɵɵadvance(2);
22767
+ i0.ɵɵproperty("content", i0.ɵɵpipeBind1(13, 15, ctx_r0.callbackConfirmationMessageText == null ? null : ctx_r0.callbackConfirmationMessageText.body));
22740
22768
  i0.ɵɵadvance(3);
22741
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 15, "Our team will read your query and will respond"));
22742
- i0.ɵɵadvance(3);
22743
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(17, 17, "When the response is available it will be added to the 'Queries' section."));
22769
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 17, "When the response is available it will be added to the 'Queries' section."));
22744
22770
  i0.ɵɵadvance(3);
22745
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 19, "You can"), " ");
22771
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 19, "You can"), " ");
22746
22772
  i0.ɵɵadvance(2);
22747
22773
  i0.ɵɵpropertyInterpolate1("routerLink", "/cases/case-details/", ctx_r0.caseId, "");
22748
22774
  i0.ɵɵadvance();
22749
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 21, "Go back to the case"));
22775
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(22, 21, "Go back to the case"));
22750
22776
  } }
22751
22777
  function QueryConfirmationComponent_main_0_ng_container_4_Template(rf, ctx) { if (rf & 1) {
22752
22778
  i0.ɵɵelementContainerStart(0);
@@ -22754,19 +22780,19 @@ function QueryConfirmationComponent_main_0_ng_container_4_Template(rf, ctx) { if
22754
22780
  i0.ɵɵtext(3);
22755
22781
  i0.ɵɵpipe(4, "rpxTranslate");
22756
22782
  i0.ɵɵelementEnd();
22757
- i0.ɵɵelementStart(5, "div", 7);
22783
+ i0.ɵɵelementStart(5, "div", 12);
22758
22784
  i0.ɵɵtext(6);
22759
22785
  i0.ɵɵpipe(7, "rpxTranslate");
22760
22786
  i0.ɵɵelementEnd()();
22761
- i0.ɵɵelementStart(8, "div", 8);
22787
+ i0.ɵɵelementStart(8, "div", 9);
22762
22788
  i0.ɵɵtext(9);
22763
22789
  i0.ɵɵpipe(10, "rpxTranslate");
22764
- i0.ɵɵelementStart(11, "a", 11);
22790
+ i0.ɵɵelementStart(11, "a", 13);
22765
22791
  i0.ɵɵtext(12);
22766
22792
  i0.ɵɵpipe(13, "rpxTranslate");
22767
22793
  i0.ɵɵelementEnd();
22768
22794
  i0.ɵɵtext(14, " or ");
22769
- i0.ɵɵelementStart(15, "a", 12);
22795
+ i0.ɵɵelementStart(15, "a", 14);
22770
22796
  i0.ɵɵtext(16);
22771
22797
  i0.ɵɵpipe(17, "rpxTranslate");
22772
22798
  i0.ɵɵelementEnd()();
@@ -22790,7 +22816,7 @@ function QueryConfirmationComponent_main_0_ng_container_4_Template(rf, ctx) { if
22790
22816
  } }
22791
22817
  function QueryConfirmationComponent_main_0_Template(rf, ctx) { if (rf & 1) {
22792
22818
  i0.ɵɵelementStart(0, "main", 1)(1, "div", 2)(2, "div", 3);
22793
- i0.ɵɵtemplate(3, QueryConfirmationComponent_main_0_ng_container_3_Template, 24, 23, "ng-container", 4)(4, QueryConfirmationComponent_main_0_ng_container_4_Template, 18, 19, "ng-container", 4);
22819
+ i0.ɵɵtemplate(3, QueryConfirmationComponent_main_0_ng_container_3_Template, 23, 23, "ng-container", 4)(4, QueryConfirmationComponent_main_0_ng_container_4_Template, 18, 19, "ng-container", 4);
22794
22820
  i0.ɵɵelementEnd()()();
22795
22821
  } if (rf & 2) {
22796
22822
  const ctx_r0 = i0.ɵɵnextContext();
@@ -22802,6 +22828,7 @@ function QueryConfirmationComponent_main_0_Template(rf, ctx) { if (rf & 1) {
22802
22828
  class QueryConfirmationComponent {
22803
22829
  route;
22804
22830
  queryCreateContext;
22831
+ callbackConfirmationMessageText = {};
22805
22832
  caseId = '';
22806
22833
  queryCreateContextEnum = QueryCreateContext;
22807
22834
  constructor(route) {
@@ -22811,17 +22838,19 @@ class QueryConfirmationComponent {
22811
22838
  this.caseId = this.route.snapshot.params.cid;
22812
22839
  }
22813
22840
  static ɵfac = function QueryConfirmationComponent_Factory(t) { return new (t || QueryConfirmationComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
22814
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryConfirmationComponent, selectors: [["ccd-query-confirmation"]], inputs: { queryCreateContext: "queryCreateContext" }, decls: 1, vars: 1, consts: [["class", "govuk-main-wrapper", 4, "ngIf"], [1, "govuk-main-wrapper"], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds"], [4, "ngIf"], [1, "govuk-panel", "govuk-panel--confirmation"], [1, "govuk-panel__title"], [1, "govuk-panel__body"], [1, "govuk-body"], [1, "govuk-heading-s"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"], ["id", "tasks-link", "href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"], ["id", "case-link", "href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"]], template: function QueryConfirmationComponent_Template(rf, ctx) { if (rf & 1) {
22841
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryConfirmationComponent, selectors: [["ccd-query-confirmation"]], inputs: { queryCreateContext: "queryCreateContext", callbackConfirmationMessageText: "callbackConfirmationMessageText" }, decls: 1, vars: 1, consts: [["class", "govuk-main-wrapper", 4, "ngIf"], [1, "govuk-main-wrapper"], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds"], [4, "ngIf"], [1, "govuk-panel", "govuk-panel--confirmation"], [1, "govuk-panel__title"], [1, "qm-confirmation", "govuk-panel__body"], [3, "content"], [1, "govuk-body"], [1, "govuk-heading-s"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"], [1, "govuk-panel__body"], ["id", "tasks-link", "href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"], ["id", "case-link", "href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"]], template: function QueryConfirmationComponent_Template(rf, ctx) { if (rf & 1) {
22815
22842
  i0.ɵɵtemplate(0, QueryConfirmationComponent_main_0_Template, 5, 2, "main", 0);
22816
22843
  } if (rf & 2) {
22817
22844
  i0.ɵɵproperty("ngIf", ctx.queryCreateContext);
22818
- } }, dependencies: [i5.NgIf, i1$1.RouterLink, i1.RpxTranslatePipe], encapsulation: 2 });
22845
+ } }, dependencies: [i5.NgIf, i1$1.RouterLink, MarkdownComponent, i1.RpxTranslatePipe], encapsulation: 2 });
22819
22846
  }
22820
22847
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryConfirmationComponent, [{
22821
22848
  type: Component,
22822
- args: [{ selector: 'ccd-query-confirmation', template: "<main class=\"govuk-main-wrapper\" *ngIf=\"queryCreateContext\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <ng-container *ngIf=\"queryCreateContext === queryCreateContextEnum.NEW_QUERY || queryCreateContext === queryCreateContextEnum.FOLLOWUP\">\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">{{'Query submitted' | rpxTranslate}}</h1>\n <div class=\"govuk-panel__body\">{{'Your query has been sent to HMCTS' | rpxTranslate}}</div>\n </div>\n <div class=\"govuk-body\">\n <h3 class=\"govuk-heading-s\">{{'What happens next' | rpxTranslate}}</h3>\n <p>{{'Our team will read your query and will respond' | rpxTranslate}}</p>\n <p>{{'When the response is available it will be added to the \\'Queries\\' section.' | rpxTranslate}}</p>\n <p>\n {{'You can' | rpxTranslate}}\n <a class=\"govuk-link\" href=\"javascript:void(0)\" routerLink=\"/cases/case-details/{{caseId}}\">{{'Go back to the case' | rpxTranslate}}</a>\n </p>\n </div>\n </ng-container>\n <ng-container *ngIf=\"queryCreateContext === queryCreateContextEnum.RESPOND\">\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">{{'Query response submitted' | rpxTranslate}}</h1>\n <div class=\"govuk-panel__body\">{{'This query response has been added to the case' | rpxTranslate}}</div>\n </div>\n <div class=\"govuk-body\">\n {{'You can' | rpxTranslate}}\n <a class=\"govuk-link\" id=\"tasks-link\" href=\"javascript:void(0)\" routerLink=\"/cases/case-details/{{caseId}}/tasks\">{{'return to tasks' | rpxTranslate}}</a> or\n <a class=\"govuk-link\" id=\"case-link\" href=\"javascript:void(0)\" routerLink=\"/cases/case-details/{{caseId}}\">{{'Go back to the case' | rpxTranslate}}</a>\n </div>\n </ng-container>\n </div>\n </div>\n</main>\n" }]
22849
+ args: [{ selector: 'ccd-query-confirmation', template: "<main class=\"govuk-main-wrapper\" *ngIf=\"queryCreateContext\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <ng-container *ngIf=\"queryCreateContext === queryCreateContextEnum.NEW_QUERY || queryCreateContext === queryCreateContextEnum.FOLLOWUP\">\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">{{'Query submitted' | rpxTranslate}}</h1>\n <div class=\"qm-confirmation govuk-panel__body\">\n <ccd-markdown [content]=\"callbackConfirmationMessageText?.header | rpxTranslate\"></ccd-markdown>\n </div>\n </div>\n <div class=\"govuk-body\">\n <h3 class=\"govuk-heading-s\">{{'What happens next' | rpxTranslate}}</h3>\n <ccd-markdown [content]=\"callbackConfirmationMessageText?.body | rpxTranslate\"></ccd-markdown>\n <p>{{'When the response is available it will be added to the \\'Queries\\' section.' | rpxTranslate}}</p>\n <p>\n {{'You can' | rpxTranslate}}\n <a class=\"govuk-link\" href=\"javascript:void(0)\" routerLink=\"/cases/case-details/{{caseId}}\">{{'Go back to the case' | rpxTranslate}}</a>\n </p>\n </div>\n </ng-container>\n <ng-container *ngIf=\"queryCreateContext === queryCreateContextEnum.RESPOND\">\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">{{'Query response submitted' | rpxTranslate}}</h1>\n <div class=\"govuk-panel__body\">{{'This query response has been added to the case' | rpxTranslate}}</div>\n </div>\n <div class=\"govuk-body\">\n {{'You can' | rpxTranslate}}\n <a class=\"govuk-link\" id=\"tasks-link\" href=\"javascript:void(0)\" routerLink=\"/cases/case-details/{{caseId}}/tasks\">{{'return to tasks' | rpxTranslate}}</a> or\n <a class=\"govuk-link\" id=\"case-link\" href=\"javascript:void(0)\" routerLink=\"/cases/case-details/{{caseId}}\">{{'Go back to the case' | rpxTranslate}}</a>\n </div>\n </ng-container>\n </div>\n </div>\n</main>\n" }]
22823
22850
  }], () => [{ type: i1$1.ActivatedRoute }], { queryCreateContext: [{
22824
22851
  type: Input
22852
+ }], callbackConfirmationMessageText: [{
22853
+ type: Input
22825
22854
  }] }); })();
22826
22855
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryConfirmationComponent, { className: "QueryConfirmationComponent", filePath: "lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.ts", lineNumber: 9 }); })();
22827
22856
 
@@ -22881,7 +22910,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_templ
22881
22910
  i0.ɵɵadvance(2);
22882
22911
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Your query is under review"));
22883
22912
  i0.ɵɵadvance(3);
22884
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, "Our team will read your query and will respond. Do not submit the same query more than once."));
22913
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, "Our team will read your query and respond. Do not submit the same query more than once."));
22885
22914
  } }
22886
22915
  function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
22887
22916
  i0.ɵɵelementContainerStart(0);
@@ -22967,7 +22996,7 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
22967
22996
  }
22968
22997
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
22969
22998
  type: Component,
22970
- args: [{ selector: 'ccd-read-query-management-field', template: "<ng-container *ngIf=\"showQueryList; else singleQueryDetails\">\n <ng-container *ngFor=\"let caseQueriesCollection of caseQueriesCollections\">\n <div *ngIf=\"showQueryList\" class=\"govuk-!-margin-top-8 govuk-!-margin-bottom-8\">\n <ccd-query-list (selectedQuery)=\"setQuery($event)\" [caseQueriesCollection]=\"caseQueriesCollection\"></ccd-query-list>\n </div>\n </ng-container>\n</ng-container>\n\n<ng-template #singleQueryDetails>\n <ccd-query-details\n [query]=\"query\"\n (backClicked)=\"showQueryList = true\"\n [caseId]=\"caseId\"\n ></ccd-query-details>\n\n <ng-container *ngIf=\"!isInternalUser()\">\n <ng-container *ngIf=\"query?.children?.length > 0 && query?.children?.length % 2 === 1; else queryIsInReview\">\n <button id=\"ask-follow-up-question\" class=\"govuk-button\" data-module=\"govuk-button\"\n [routerLink]=\"['/query-management', 'query', caseId, '4', query.id]\">\n {{ 'Ask a follow-up question' | rpxTranslate }}\n </button>\n </ng-container>\n\n <ng-template #queryIsInReview>\n <div>\n <p class=\"govuk-!-font-weight-bold\">{{ 'Your query is under review' | rpxTranslate }}</p>\n <p>{{ 'Our team will read your query and will respond. Do not submit the same query more than once.' | rpxTranslate }}</p>\n </div>\n </ng-template>\n </ng-container>\n</ng-template>\n" }]
22999
+ args: [{ selector: 'ccd-read-query-management-field', template: "<ng-container *ngIf=\"showQueryList; else singleQueryDetails\">\n <ng-container *ngFor=\"let caseQueriesCollection of caseQueriesCollections\">\n <div *ngIf=\"showQueryList\" class=\"govuk-!-margin-top-8 govuk-!-margin-bottom-8\">\n <ccd-query-list (selectedQuery)=\"setQuery($event)\" [caseQueriesCollection]=\"caseQueriesCollection\"></ccd-query-list>\n </div>\n </ng-container>\n</ng-container>\n\n<ng-template #singleQueryDetails>\n <ccd-query-details\n [query]=\"query\"\n (backClicked)=\"showQueryList = true\"\n [caseId]=\"caseId\"\n ></ccd-query-details>\n\n <ng-container *ngIf=\"!isInternalUser()\">\n <ng-container *ngIf=\"query?.children?.length > 0 && query?.children?.length % 2 === 1; else queryIsInReview\">\n <button id=\"ask-follow-up-question\" class=\"govuk-button\" data-module=\"govuk-button\"\n [routerLink]=\"['/query-management', 'query', caseId, '4', query.id]\">\n {{ 'Ask a follow-up question' | rpxTranslate }}\n </button>\n </ng-container>\n\n <ng-template #queryIsInReview>\n <div>\n <p class=\"govuk-!-font-weight-bold\">{{ 'Your query is under review' | rpxTranslate }}</p>\n <p>{{ 'Our team will read your query and respond. Do not submit the same query more than once.' | rpxTranslate }}</p>\n </div>\n </ng-template>\n </ng-container>\n</ng-template>\n" }]
22971
23000
  }], () => [{ type: i1$1.ActivatedRoute }, { type: SessionStorageService }, { type: CaseNotifier }], null); })();
22972
23001
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber: 15 }); })();
22973
23002