@hmcts/ccd-case-ui-toolkit 7.1.75 → 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.
@@ -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
 
@@ -22719,27 +22734,25 @@ function QueryConfirmationComponent_main_0_ng_container_3_Template(rf, ctx) { if
22719
22734
  i0.ɵɵpipe(4, "rpxTranslate");
22720
22735
  i0.ɵɵelementEnd();
22721
22736
  i0.ɵɵelementStart(5, "div", 7);
22722
- i0.ɵɵtext(6);
22737
+ i0.ɵɵelement(6, "ccd-markdown", 8);
22723
22738
  i0.ɵɵpipe(7, "rpxTranslate");
22724
22739
  i0.ɵɵelementEnd()();
22725
- i0.ɵɵelementStart(8, "div", 8)(9, "h3", 9);
22740
+ i0.ɵɵelementStart(8, "div", 9)(9, "h3", 10);
22726
22741
  i0.ɵɵtext(10);
22727
22742
  i0.ɵɵpipe(11, "rpxTranslate");
22728
22743
  i0.ɵɵelementEnd();
22729
- i0.ɵɵelementStart(12, "p");
22730
- i0.ɵɵtext(13);
22731
- i0.ɵɵpipe(14, "rpxTranslate");
22732
- i0.ɵɵelementEnd();
22733
- i0.ɵɵelementStart(15, "p");
22734
- i0.ɵɵtext(16);
22735
- 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");
22736
22749
  i0.ɵɵelementEnd();
22737
- i0.ɵɵelementStart(18, "p");
22738
- i0.ɵɵtext(19);
22739
- i0.ɵɵpipe(20, "rpxTranslate");
22740
- i0.ɵɵelementStart(21, "a", 10);
22741
- i0.ɵɵtext(22);
22742
- 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");
22743
22756
  i0.ɵɵelementEnd()()();
22744
22757
  i0.ɵɵelementContainerEnd();
22745
22758
  } if (rf & 2) {
@@ -22747,19 +22760,19 @@ function QueryConfirmationComponent_main_0_ng_container_3_Template(rf, ctx) { if
22747
22760
  i0.ɵɵadvance(3);
22748
22761
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 9, "Query submitted"));
22749
22762
  i0.ɵɵadvance(3);
22750
- 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));
22751
22764
  i0.ɵɵadvance(4);
22752
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));
22753
22768
  i0.ɵɵadvance(3);
22754
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 15, "Our team will read your query and will respond"));
22755
- i0.ɵɵadvance(3);
22756
- 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."));
22757
22770
  i0.ɵɵadvance(3);
22758
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 19, "You can"), " ");
22771
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 19, "You can"), " ");
22759
22772
  i0.ɵɵadvance(2);
22760
22773
  i0.ɵɵpropertyInterpolate1("routerLink", "/cases/case-details/", ctx_r0.caseId, "");
22761
22774
  i0.ɵɵadvance();
22762
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 21, "Go back to the case"));
22775
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(22, 21, "Go back to the case"));
22763
22776
  } }
22764
22777
  function QueryConfirmationComponent_main_0_ng_container_4_Template(rf, ctx) { if (rf & 1) {
22765
22778
  i0.ɵɵelementContainerStart(0);
@@ -22767,19 +22780,19 @@ function QueryConfirmationComponent_main_0_ng_container_4_Template(rf, ctx) { if
22767
22780
  i0.ɵɵtext(3);
22768
22781
  i0.ɵɵpipe(4, "rpxTranslate");
22769
22782
  i0.ɵɵelementEnd();
22770
- i0.ɵɵelementStart(5, "div", 7);
22783
+ i0.ɵɵelementStart(5, "div", 12);
22771
22784
  i0.ɵɵtext(6);
22772
22785
  i0.ɵɵpipe(7, "rpxTranslate");
22773
22786
  i0.ɵɵelementEnd()();
22774
- i0.ɵɵelementStart(8, "div", 8);
22787
+ i0.ɵɵelementStart(8, "div", 9);
22775
22788
  i0.ɵɵtext(9);
22776
22789
  i0.ɵɵpipe(10, "rpxTranslate");
22777
- i0.ɵɵelementStart(11, "a", 11);
22790
+ i0.ɵɵelementStart(11, "a", 13);
22778
22791
  i0.ɵɵtext(12);
22779
22792
  i0.ɵɵpipe(13, "rpxTranslate");
22780
22793
  i0.ɵɵelementEnd();
22781
22794
  i0.ɵɵtext(14, " or ");
22782
- i0.ɵɵelementStart(15, "a", 12);
22795
+ i0.ɵɵelementStart(15, "a", 14);
22783
22796
  i0.ɵɵtext(16);
22784
22797
  i0.ɵɵpipe(17, "rpxTranslate");
22785
22798
  i0.ɵɵelementEnd()();
@@ -22803,7 +22816,7 @@ function QueryConfirmationComponent_main_0_ng_container_4_Template(rf, ctx) { if
22803
22816
  } }
22804
22817
  function QueryConfirmationComponent_main_0_Template(rf, ctx) { if (rf & 1) {
22805
22818
  i0.ɵɵelementStart(0, "main", 1)(1, "div", 2)(2, "div", 3);
22806
- 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);
22807
22820
  i0.ɵɵelementEnd()()();
22808
22821
  } if (rf & 2) {
22809
22822
  const ctx_r0 = i0.ɵɵnextContext();
@@ -22815,6 +22828,7 @@ function QueryConfirmationComponent_main_0_Template(rf, ctx) { if (rf & 1) {
22815
22828
  class QueryConfirmationComponent {
22816
22829
  route;
22817
22830
  queryCreateContext;
22831
+ callbackConfirmationMessageText = {};
22818
22832
  caseId = '';
22819
22833
  queryCreateContextEnum = QueryCreateContext;
22820
22834
  constructor(route) {
@@ -22824,17 +22838,19 @@ class QueryConfirmationComponent {
22824
22838
  this.caseId = this.route.snapshot.params.cid;
22825
22839
  }
22826
22840
  static ɵfac = function QueryConfirmationComponent_Factory(t) { return new (t || QueryConfirmationComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
22827
- 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) {
22828
22842
  i0.ɵɵtemplate(0, QueryConfirmationComponent_main_0_Template, 5, 2, "main", 0);
22829
22843
  } if (rf & 2) {
22830
22844
  i0.ɵɵproperty("ngIf", ctx.queryCreateContext);
22831
- } }, dependencies: [i5.NgIf, i1$1.RouterLink, i1.RpxTranslatePipe], encapsulation: 2 });
22845
+ } }, dependencies: [i5.NgIf, i1$1.RouterLink, MarkdownComponent, i1.RpxTranslatePipe], encapsulation: 2 });
22832
22846
  }
22833
22847
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryConfirmationComponent, [{
22834
22848
  type: Component,
22835
- 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" }]
22836
22850
  }], () => [{ type: i1$1.ActivatedRoute }], { queryCreateContext: [{
22837
22851
  type: Input
22852
+ }], callbackConfirmationMessageText: [{
22853
+ type: Input
22838
22854
  }] }); })();
22839
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 }); })();
22840
22856
 
@@ -22894,7 +22910,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_templ
22894
22910
  i0.ɵɵadvance(2);
22895
22911
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Your query is under review"));
22896
22912
  i0.ɵɵadvance(3);
22897
- 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."));
22898
22914
  } }
22899
22915
  function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
22900
22916
  i0.ɵɵelementContainerStart(0);
@@ -22980,7 +22996,7 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
22980
22996
  }
22981
22997
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
22982
22998
  type: Component,
22983
- 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" }]
22984
23000
  }], () => [{ type: i1$1.ActivatedRoute }, { type: SessionStorageService }, { type: CaseNotifier }], null); })();
22985
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 }); })();
22986
23002