@hmcts/ccd-case-ui-toolkit 7.1.61-qm-task-management → 7.1.63-service-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.
@@ -21114,13 +21114,11 @@ class QueryCheckYourAnswersComponent {
21114
21114
  .subscribe({
21115
21115
  next: (response) => {
21116
21116
  // Filter task by query id
21117
- if (this.tid) {
21118
- if (response.tasks?.length > 1) {
21119
- this.filteredTasks = response.tasks?.filter((task) => task.id === this.tid);
21120
- }
21121
- else {
21122
- this.filteredTasks = response.tasks;
21123
- }
21117
+ if (this.tid && response.tasks?.length > 1) {
21118
+ this.filteredTasks = response.tasks?.filter((task) => task.id === this.tid);
21119
+ }
21120
+ else {
21121
+ this.filteredTasks = response.tasks;
21124
21122
  }
21125
21123
  },
21126
21124
  error: (error) => {
@@ -21159,14 +21157,7 @@ class QueryCheckYourAnswersComponent {
21159
21157
  });
21160
21158
  }
21161
21159
  else {
21162
- console.error('Error: No task to complete was found');
21163
- this.errorMessages = [
21164
- {
21165
- title: 'Error',
21166
- description: 'No task to complete was found',
21167
- fieldId: 'field-id'
21168
- }
21169
- ];
21160
+ console.error('Error: No task to complete found');
21170
21161
  }
21171
21162
  }
21172
21163
  else {
@@ -22167,8 +22158,8 @@ class QueryWriteDateInputComponent {
22167
22158
  (() => { (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 }); })();
22168
22159
 
22169
22160
  const _c0$C = a0 => ({ "govuk-form-group--error": a0 });
22170
- function QueryWriteRaiseQueryComponent_div_11_p_11_Template(rf, ctx) { if (rf & 1) {
22171
- i0.ɵɵelementStart(0, "p", 27)(1, "span", 28);
22161
+ function QueryWriteRaiseQueryComponent_div_11_p_19_Template(rf, ctx) { if (rf & 1) {
22162
+ i0.ɵɵelementStart(0, "p", 32)(1, "span", 10);
22172
22163
  i0.ɵɵtext(2);
22173
22164
  i0.ɵɵpipe(3, "rpxTranslate");
22174
22165
  i0.ɵɵelementEnd();
@@ -22182,8 +22173,8 @@ function QueryWriteRaiseQueryComponent_div_11_p_11_Template(rf, ctx) { if (rf &
22182
22173
  i0.ɵɵadvance(2);
22183
22174
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_SUBJECT), " ");
22184
22175
  } }
22185
- function QueryWriteRaiseQueryComponent_div_11_p_21_Template(rf, ctx) { if (rf & 1) {
22186
- i0.ɵɵelementStart(0, "p", 29)(1, "span", 28);
22176
+ function QueryWriteRaiseQueryComponent_div_11_p_29_Template(rf, ctx) { if (rf & 1) {
22177
+ i0.ɵɵelementStart(0, "p", 33)(1, "span", 10);
22187
22178
  i0.ɵɵtext(2);
22188
22179
  i0.ɵɵpipe(3, "rpxTranslate");
22189
22180
  i0.ɵɵelementEnd();
@@ -22197,8 +22188,8 @@ function QueryWriteRaiseQueryComponent_div_11_p_21_Template(rf, ctx) { if (rf &
22197
22188
  i0.ɵɵadvance(2);
22198
22189
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_BODY), " ");
22199
22190
  } }
22200
- function QueryWriteRaiseQueryComponent_div_11_p_30_Template(rf, ctx) { if (rf & 1) {
22201
- i0.ɵɵelementStart(0, "p", 30)(1, "span", 28);
22191
+ function QueryWriteRaiseQueryComponent_div_11_p_38_Template(rf, ctx) { if (rf & 1) {
22192
+ i0.ɵɵelementStart(0, "p", 34)(1, "span", 10);
22202
22193
  i0.ɵɵtext(2);
22203
22194
  i0.ɵɵpipe(3, "rpxTranslate");
22204
22195
  i0.ɵɵelementEnd();
@@ -22212,8 +22203,8 @@ function QueryWriteRaiseQueryComponent_div_11_p_30_Template(rf, ctx) { if (rf &
22212
22203
  i0.ɵɵadvance(2);
22213
22204
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_HEARING_RELATED), " ");
22214
22205
  } }
22215
- function QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template(rf, ctx) { if (rf & 1) {
22216
- i0.ɵɵelementStart(0, "p", 36)(1, "span", 28);
22206
+ function QueryWriteRaiseQueryComponent_div_11_ng_container_50_p_7_Template(rf, ctx) { if (rf & 1) {
22207
+ i0.ɵɵelementStart(0, "p", 40)(1, "span", 10);
22217
22208
  i0.ɵɵtext(2);
22218
22209
  i0.ɵɵpipe(3, "rpxTranslate");
22219
22210
  i0.ɵɵelementEnd();
@@ -22227,14 +22218,14 @@ function QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template(rf, c
22227
22218
  i0.ɵɵadvance(2);
22228
22219
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_HEARING_DATE), " ");
22229
22220
  } }
22230
- function QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template(rf, ctx) { if (rf & 1) {
22221
+ function QueryWriteRaiseQueryComponent_div_11_ng_container_50_Template(rf, ctx) { if (rf & 1) {
22231
22222
  i0.ɵɵelementContainerStart(0);
22232
- i0.ɵɵelementStart(1, "div", 31)(2, "fieldset", 32)(3, "legend")(4, "label", 33);
22223
+ i0.ɵɵelementStart(1, "div", 35)(2, "fieldset", 36)(3, "legend")(4, "label", 37);
22233
22224
  i0.ɵɵtext(5);
22234
22225
  i0.ɵɵpipe(6, "rpxTranslate");
22235
22226
  i0.ɵɵelementEnd()();
22236
- i0.ɵɵtemplate(7, QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template, 6, 6, "p", 34);
22237
- i0.ɵɵelement(8, "ccd-query-write-date-input", 35);
22227
+ i0.ɵɵtemplate(7, QueryWriteRaiseQueryComponent_div_11_ng_container_50_p_7_Template, 6, 6, "p", 38);
22228
+ i0.ɵɵelement(8, "ccd-query-write-date-input", 39);
22238
22229
  i0.ɵɵelementEnd()();
22239
22230
  i0.ɵɵelementContainerEnd();
22240
22231
  } if (rf & 2) {
@@ -22247,89 +22238,100 @@ function QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template(rf, ctx)
22247
22238
  i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null);
22248
22239
  } }
22249
22240
  function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
22250
- i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "div")(3, "div", 7)(4, "div", 8)(5, "label", 9);
22251
- i0.ɵɵtext(6);
22252
- i0.ɵɵpipe(7, "rpxTranslate");
22253
- i0.ɵɵelementEnd()();
22254
- i0.ɵɵelementStart(8, "div", 10);
22255
- i0.ɵɵtext(9);
22241
+ i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "div")(3, "div", 7)(4, "span", 8);
22242
+ i0.ɵɵtext(5, "!");
22243
+ i0.ɵɵelementEnd();
22244
+ i0.ɵɵelementStart(6, "strong", 9)(7, "span", 10);
22245
+ i0.ɵɵtext(8, "Warning");
22246
+ i0.ɵɵelementEnd();
22247
+ i0.ɵɵelement(9, "ccd-markdown", 11);
22256
22248
  i0.ɵɵpipe(10, "rpxTranslate");
22249
+ i0.ɵɵelementEnd()();
22250
+ i0.ɵɵelementStart(11, "div", 12)(12, "div", 13)(13, "label", 14);
22251
+ i0.ɵɵtext(14);
22252
+ i0.ɵɵpipe(15, "rpxTranslate");
22253
+ i0.ɵɵelementEnd()();
22254
+ i0.ɵɵelementStart(16, "div", 15);
22255
+ i0.ɵɵtext(17);
22256
+ i0.ɵɵpipe(18, "rpxTranslate");
22257
22257
  i0.ɵɵelementEnd();
22258
- i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_p_11_Template, 6, 6, "p", 11);
22259
- i0.ɵɵelement(12, "input", 12);
22258
+ i0.ɵɵtemplate(19, QueryWriteRaiseQueryComponent_div_11_p_19_Template, 6, 6, "p", 16);
22259
+ i0.ɵɵelement(20, "input", 17);
22260
22260
  i0.ɵɵelementEnd()();
22261
- i0.ɵɵelementStart(13, "div", 7)(14, "div", 8)(15, "label", 13);
22262
- i0.ɵɵtext(16);
22263
- i0.ɵɵpipe(17, "rpxTranslate");
22261
+ i0.ɵɵelementStart(21, "div", 12)(22, "div", 13)(23, "label", 18);
22262
+ i0.ɵɵtext(24);
22263
+ i0.ɵɵpipe(25, "rpxTranslate");
22264
22264
  i0.ɵɵelementEnd()();
22265
- i0.ɵɵelementStart(18, "div", 14);
22266
- i0.ɵɵtext(19);
22267
- i0.ɵɵpipe(20, "rpxTranslate");
22265
+ i0.ɵɵelementStart(26, "div", 19);
22266
+ i0.ɵɵtext(27);
22267
+ i0.ɵɵpipe(28, "rpxTranslate");
22268
22268
  i0.ɵɵelementEnd();
22269
- i0.ɵɵtemplate(21, QueryWriteRaiseQueryComponent_div_11_p_21_Template, 6, 6, "p", 15);
22270
- i0.ɵɵelementStart(22, "textarea", 16);
22271
- i0.ɵɵtext(23, " ");
22269
+ i0.ɵɵtemplate(29, QueryWriteRaiseQueryComponent_div_11_p_29_Template, 6, 6, "p", 20);
22270
+ i0.ɵɵelementStart(30, "textarea", 21);
22271
+ i0.ɵɵtext(31, " ");
22272
22272
  i0.ɵɵelementEnd()();
22273
- i0.ɵɵelementStart(24, "div", 7)(25, "fieldset", 17)(26, "legend")(27, "label", 18);
22274
- i0.ɵɵtext(28);
22275
- i0.ɵɵpipe(29, "rpxTranslate");
22273
+ i0.ɵɵelementStart(32, "div", 12)(33, "fieldset", 22)(34, "legend")(35, "label", 23);
22274
+ i0.ɵɵtext(36);
22275
+ i0.ɵɵpipe(37, "rpxTranslate");
22276
22276
  i0.ɵɵelementEnd()();
22277
- i0.ɵɵtemplate(30, QueryWriteRaiseQueryComponent_div_11_p_30_Template, 6, 6, "p", 19);
22278
- i0.ɵɵelementStart(31, "div", 20)(32, "div", 21);
22279
- i0.ɵɵelement(33, "input", 22);
22280
- i0.ɵɵelementStart(34, "label", 23);
22281
- i0.ɵɵtext(35);
22282
- i0.ɵɵpipe(36, "rpxTranslate");
22277
+ i0.ɵɵtemplate(38, QueryWriteRaiseQueryComponent_div_11_p_38_Template, 6, 6, "p", 24);
22278
+ i0.ɵɵelementStart(39, "div", 25)(40, "div", 26);
22279
+ i0.ɵɵelement(41, "input", 27);
22280
+ i0.ɵɵelementStart(42, "label", 28);
22281
+ i0.ɵɵtext(43);
22282
+ i0.ɵɵpipe(44, "rpxTranslate");
22283
22283
  i0.ɵɵelementEnd()();
22284
- i0.ɵɵelementStart(37, "div", 21);
22285
- i0.ɵɵelement(38, "input", 24);
22286
- i0.ɵɵelementStart(39, "label", 25);
22287
- i0.ɵɵtext(40);
22288
- i0.ɵɵpipe(41, "rpxTranslate");
22284
+ i0.ɵɵelementStart(45, "div", 26);
22285
+ i0.ɵɵelement(46, "input", 29);
22286
+ i0.ɵɵelementStart(47, "label", 30);
22287
+ i0.ɵɵtext(48);
22288
+ i0.ɵɵpipe(49, "rpxTranslate");
22289
22289
  i0.ɵɵelementEnd()()()();
22290
- i0.ɵɵtemplate(42, QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template, 9, 7, "ng-container", 26);
22290
+ i0.ɵɵtemplate(50, QueryWriteRaiseQueryComponent_div_11_ng_container_50_Template, 9, 7, "ng-container", 31);
22291
22291
  i0.ɵɵelementEnd()()();
22292
22292
  } if (rf & 2) {
22293
- let tmp_6_0;
22293
+ let tmp_7_0;
22294
22294
  const ctx_r0 = i0.ɵɵnextContext();
22295
22295
  i0.ɵɵadvance();
22296
22296
  i0.ɵɵproperty("formGroup", ctx_r0.formGroup);
22297
+ i0.ɵɵadvance(8);
22298
+ i0.ɵɵproperty("content", i0.ɵɵpipeBind1(10, 26, ctx_r0.serviceMessage));
22297
22299
  i0.ɵɵadvance(2);
22298
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
22300
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(46, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
22299
22301
  i0.ɵɵadvance(3);
22300
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 25, "Query subject"), " ");
22302
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 28, "Query subject"), " ");
22301
22303
  i0.ɵɵadvance(3);
22302
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 27, "The subject should be a summary of your query"), " ");
22304
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 30, "The subject should be a summary of your query"), " ");
22303
22305
  i0.ɵɵadvance(2);
22304
22306
  i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required"));
22305
22307
  i0.ɵɵadvance();
22306
- i0.ɵɵclassProp("govuk-input--error", ctx_r0.submitted && ((tmp_6_0 = ctx_r0.formGroup.get("subject")) == null ? null : tmp_6_0.hasError("required")));
22308
+ i0.ɵɵclassProp("govuk-input--error", ctx_r0.submitted && ((tmp_7_0 = ctx_r0.formGroup.get("subject")) == null ? null : tmp_7_0.hasError("required")));
22307
22309
  i0.ɵɵproperty("formControlName", "subject");
22308
22310
  i0.ɵɵadvance();
22309
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
22311
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(48, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
22310
22312
  i0.ɵɵadvance(3);
22311
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 29, "Query detail"), " ");
22313
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(25, 32, "Query detail"), " ");
22312
22314
  i0.ɵɵadvance(3);
22313
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 31, "Include as many details as possible so case workers can respond to your query"), " ");
22315
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(28, 34, "Include as many details as possible so case workers can respond to your query"), " ");
22314
22316
  i0.ɵɵadvance(2);
22315
22317
  i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
22316
22318
  i0.ɵɵadvance();
22317
22319
  i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
22318
22320
  i0.ɵɵproperty("formControlName", "body");
22319
22321
  i0.ɵɵadvance(2);
22320
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
22322
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(50, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
22321
22323
  i0.ɵɵadvance(4);
22322
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 33, "Is the query hearing related?"), " ");
22324
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(37, 36, "Is the query hearing related?"), " ");
22323
22325
  i0.ɵɵadvance(2);
22324
22326
  i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required"));
22325
22327
  i0.ɵɵadvance(3);
22326
22328
  i0.ɵɵproperty("checked", ctx_r0.formGroup.get("isHearingRelated").value === true)("value", true);
22327
22329
  i0.ɵɵadvance(2);
22328
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(36, 35, "Is the query hearing related?", null, "Yes"), " ");
22330
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(44, 38, "Is the query hearing related?", null, "Yes"), " ");
22329
22331
  i0.ɵɵadvance(3);
22330
22332
  i0.ɵɵproperty("checked", ctx_r0.formGroup.get("isHearingRelated").value === false)("value", false);
22331
22333
  i0.ɵɵadvance(2);
22332
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(41, 39, "Is the query hearing related?", null, "No"), " ");
22334
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(49, 42, "Is the query hearing related?", null, "No"), " ");
22333
22335
  i0.ɵɵadvance(2);
22334
22336
  i0.ɵɵproperty("ngIf", ctx_r0.formGroup.get("isHearingRelated").value);
22335
22337
  } }
@@ -22338,9 +22340,10 @@ class QueryWriteRaiseQueryComponent {
22338
22340
  submitted;
22339
22341
  caseDetails;
22340
22342
  showForm;
22343
+ serviceMessage;
22341
22344
  raiseQueryErrorMessage = RaiseQueryErrorMessage;
22342
22345
  static ɵfac = function QueryWriteRaiseQueryComponent_Factory(t) { return new (t || QueryWriteRaiseQueryComponent)(); };
22343
- 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) {
22346
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup", submitted: "submitted", caseDetails: "caseDetails", showForm: "showForm", serviceMessage: "serviceMessage" }, 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-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-visually-hidden"], [3, "content"], [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"], ["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) {
22344
22347
  i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "div", 1);
22345
22348
  i0.ɵɵtext(3);
22346
22349
  i0.ɵɵpipe(4, "rpxTranslate");
@@ -22353,7 +22356,7 @@ class QueryWriteRaiseQueryComponent {
22353
22356
  i0.ɵɵelement(9, "ccd-query-case-details-header", 3);
22354
22357
  i0.ɵɵelementEnd();
22355
22358
  i0.ɵɵelement(10, "hr");
22356
- i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_Template, 43, 49, "div", 4);
22359
+ i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_Template, 51, 52, "div", 4);
22357
22360
  i0.ɵɵelementEnd();
22358
22361
  } if (rf & 2) {
22359
22362
  i0.ɵɵadvance(3);
@@ -22368,7 +22371,7 @@ class QueryWriteRaiseQueryComponent {
22368
22371
  }
22369
22372
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRaiseQueryComponent, [{
22370
22373
  type: Component,
22371
- 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" }]
22374
+ 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-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-visually-hidden\">Warning</span>\n <ccd-markdown\n [content]=\"serviceMessage | rpxTranslate\">\n </ccd-markdown>\n </strong>\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" }]
22372
22375
  }], null, { formGroup: [{
22373
22376
  type: Input
22374
22377
  }], submitted: [{
@@ -22377,6 +22380,8 @@ class QueryWriteRaiseQueryComponent {
22377
22380
  type: Input
22378
22381
  }], showForm: [{
22379
22382
  type: Input
22383
+ }], serviceMessage: [{
22384
+ type: Input
22380
22385
  }] }); })();
22381
22386
  (() => { (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 }); })();
22382
22387
 
@@ -30485,7 +30490,7 @@ ReadQueryManagementFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i1
30485
30490
  i0.ɵɵsetComponentScope(QueryDetailsComponent, function () { return [i5.NgForOf, i5.NgIf, AlertComponent, QueryAttachmentsReadComponent]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe]; });
30486
30491
  i0.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, function () { return [i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryDetailsComponent,
30487
30492
  QueryCaseDetailsHeaderComponent]; }, function () { return [i1.RpxTranslatePipe]; });
30488
- i0.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, function () { return [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryCaseDetailsHeaderComponent,
30493
+ i0.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, function () { return [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, MarkdownComponent, QueryCaseDetailsHeaderComponent,
30489
30494
  QueryWriteDateInputComponent]; }, function () { return [i1.RpxTranslatePipe]; });
30490
30495
  i0.ɵɵsetComponentScope(QueryCheckYourAnswersComponent, function () { return [i5.NgForOf, i5.NgIf, QueryCaseDetailsHeaderComponent,
30491
30496
  QueryAttachmentsReadComponent,
@@ -33451,7 +33456,6 @@ class CaseResolver {
33451
33456
  static EVENT_REGEX = new RegExp('\/trigger\/.*?\/submit$');
33452
33457
  static PARAM_CASE_ID = 'cid';
33453
33458
  static CASE_CREATED_MSG = 'The case has been created successfully';
33454
- static EVENT_ID_QM_RESPOND_TO_QUERY = 'eventId=queryManagementRespondQuery';
33455
33459
  static defaultWAPage = '/work/my-work/list';
33456
33460
  static defaultPage = '/cases';
33457
33461
  // we need to run the CaseResolver on every child route of 'case/:jid/:ctid/:cid'
@@ -33472,12 +33476,6 @@ class CaseResolver {
33472
33476
  }
33473
33477
  resolve(route) {
33474
33478
  const cid = route.paramMap.get(CaseResolver.PARAM_CASE_ID);
33475
- const currentUrl = this.router.url ?? '';
33476
- // Prevent resolving if eventId=queryManagementRespondQuery is in the URL
33477
- if (currentUrl.includes(CaseResolver.EVENT_ID_QM_RESPOND_TO_QUERY)) {
33478
- console.info('Skipping resolve for event queryManagementRespondQuery.');
33479
- this.goToDefaultPage();
33480
- }
33481
33479
  if (!cid) {
33482
33480
  console.info('No case ID available in the route. Will navigate to case list.');
33483
33481
  // when redirected to case view after a case created, and the user has no READ access,