@hmcts/ccd-case-ui-toolkit 6.16.0-query-management-follow-up-v2 → 6.16.0-query-management-CYA-continue

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 (22) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +196 -288
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.js +57 -109
  6. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-add-documents/query-write-add-documents.component.js +14 -7
  7. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.js +18 -68
  8. package/esm2015/lib/shared/components/palette/query-management/models/query-list/query-list-response-status.enum.js +6 -7
  9. package/esm2015/lib/shared/components/palette/query-management/utils/query-management.utils.js +11 -1
  10. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +108 -196
  11. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  12. package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +2 -4
  13. package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts.map +1 -1
  14. package/lib/shared/components/palette/query-management/components/query-write/query-write-add-documents/query-write-add-documents.component.d.ts +5 -4
  15. package/lib/shared/components/palette/query-management/components/query-write/query-write-add-documents/query-write-add-documents.component.d.ts.map +1 -1
  16. package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts +2 -4
  17. 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
  18. package/lib/shared/components/palette/query-management/models/query-list/query-list-response-status.enum.d.ts +2 -3
  19. package/lib/shared/components/palette/query-management/models/query-list/query-list-response-status.enum.d.ts.map +1 -1
  20. package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts +5 -0
  21. package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts.map +1 -1
  22. package/package.json +1 -1
@@ -20398,159 +20398,48 @@
20398
20398
  }], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
20399
20399
  })();
20400
20400
 
20401
- var QueryListItem = /** @class */ (function () {
20402
- function QueryListItem() {
20403
- this.children = [];
20404
- }
20405
- Object.defineProperty(QueryListItem.prototype, "lastSubmittedMessage", {
20406
- get: function () {
20407
- var getLastSubmittedMessage = function (item) {
20408
- var e_1, _b;
20409
- var lastSubmittedMessage = item;
20410
- if (item.children && item.children.length > 0) {
20411
- try {
20412
- for (var _c = __values(item.children), _d = _c.next(); !_d.done; _d = _c.next()) {
20413
- var child = _d.value;
20414
- var childLastSubmittedMessage = getLastSubmittedMessage(child);
20415
- if (childLastSubmittedMessage.createdOn > lastSubmittedMessage.createdOn) {
20416
- lastSubmittedMessage = childLastSubmittedMessage;
20417
- }
20418
- }
20419
- }
20420
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
20421
- finally {
20422
- try {
20423
- if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
20424
- }
20425
- finally { if (e_1) throw e_1.error; }
20426
- }
20427
- }
20428
- return lastSubmittedMessage;
20429
- };
20430
- return getLastSubmittedMessage(this);
20431
- },
20432
- enumerable: false,
20433
- configurable: true
20434
- });
20435
- Object.defineProperty(QueryListItem.prototype, "lastSubmittedBy", {
20436
- get: function () {
20437
- return this.lastSubmittedMessage.name;
20438
- },
20439
- enumerable: false,
20440
- configurable: true
20441
- });
20442
- Object.defineProperty(QueryListItem.prototype, "lastSubmittedDate", {
20443
- get: function () {
20444
- return new Date(this.lastSubmittedMessage.createdOn);
20445
- },
20446
- enumerable: false,
20447
- configurable: true
20448
- });
20449
- Object.defineProperty(QueryListItem.prototype, "lastResponseBy", {
20450
- get: function () {
20451
- var _a;
20452
- return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.lastSubmittedMessage.name : '';
20453
- },
20454
- enumerable: false,
20455
- configurable: true
20456
- });
20457
- Object.defineProperty(QueryListItem.prototype, "lastResponseDate", {
20458
- get: function () {
20459
- var _a;
20460
- return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? new Date(this.lastSubmittedMessage.createdOn) : null;
20461
- },
20462
- enumerable: false,
20463
- configurable: true
20464
- });
20465
- return QueryListItem;
20466
- }());
20467
-
20468
- var QueryListData = /** @class */ (function () {
20469
- function QueryListData(partyMessagesGroup) {
20470
- var _this = this;
20471
- this.partyName = partyMessagesGroup.partyName;
20472
- this.roleOnCase = partyMessagesGroup.roleOnCase;
20473
- // get the parent messages (messages without parentId) and add the children to them
20474
- var parentMessages = partyMessagesGroup.partyMessages.filter(function (message) { return !message.parentId; });
20475
- this.partyMessages = parentMessages.map(function (message) { return _this.buildQueryListItem(message, partyMessagesGroup.partyMessages); });
20401
+ var QueryManagementUtils = /** @class */ (function () {
20402
+ function QueryManagementUtils() {
20476
20403
  }
20477
- QueryListData.prototype.buildQueryListItem = function (message, allMessages) {
20478
- var _this = this;
20479
- var queryListItem = new QueryListItem();
20480
- Object.assign(queryListItem, Object.assign(Object.assign({}, message), { children: allMessages
20481
- .filter(function (childMessage) { return childMessage.parentId === message.id; })
20482
- .map(function (childMessage) { return _this.buildQueryListItem(childMessage, allMessages); }) }));
20483
- return queryListItem;
20404
+ QueryManagementUtils.extractCaseQueriesFromCaseField = function () {
20484
20405
  };
20485
- return QueryListData;
20406
+ QueryManagementUtils.documentToCollectionFormDocument = function (document) {
20407
+ return {
20408
+ id: null,
20409
+ value: {
20410
+ document_filename: document.originalDocumentName,
20411
+ document_url: document._links.self.href,
20412
+ document_binary_url: document._links.binary.href
20413
+ }
20414
+ };
20415
+ };
20416
+ return QueryManagementUtils;
20486
20417
  }());
20418
+ QueryManagementUtils.ɵfac = function QueryManagementUtils_Factory(t) { return new (t || QueryManagementUtils)(); };
20419
+ QueryManagementUtils.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
20420
+ (function () {
20421
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryManagementUtils, [{
20422
+ type: i0.Injectable
20423
+ }], null, null);
20424
+ })();
20487
20425
 
20488
- exports.QueryItemType = void 0;
20489
- (function (QueryItemType) {
20490
- QueryItemType["NEW"] = "New";
20491
- QueryItemType["RESPOND"] = "Respond";
20492
- QueryItemType["FOLLOWUP"] = "Followup";
20493
- })(exports.QueryItemType || (exports.QueryItemType = {}));
20494
-
20495
- function QueryCheckYourAnswersComponent_dl_7_Template(rf, ctx) {
20496
- if (rf & 1) {
20497
- i0__namespace.ɵɵelementStart(0, "dl", 5);
20498
- i0__namespace.ɵɵelementStart(1, "div", 6);
20499
- i0__namespace.ɵɵelementStart(2, "dt", 7);
20500
- i0__namespace.ɵɵtext(3);
20501
- i0__namespace.ɵɵpipe(4, "rpxTranslate");
20502
- i0__namespace.ɵɵelementEnd();
20503
- i0__namespace.ɵɵelementStart(5, "dd", 8);
20504
- i0__namespace.ɵɵtext(6);
20505
- i0__namespace.ɵɵelementEnd();
20506
- i0__namespace.ɵɵelementEnd();
20507
- i0__namespace.ɵɵelementEnd();
20508
- }
20509
- if (rf & 2) {
20510
- var ctx_r0 = i0__namespace.ɵɵnextContext();
20511
- i0__namespace.ɵɵadvance(3);
20512
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 2, "Submitted query"), " ");
20513
- i0__namespace.ɵɵadvance(3);
20514
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.queryItem.subject, " ");
20515
- }
20516
- }
20517
- function QueryCheckYourAnswersComponent_ccd_read_collection_field_36_Template(rf, ctx) {
20426
+ function QueryCheckYourAnswersComponent_ccd_read_collection_field_31_Template(rf, ctx) {
20518
20427
  if (rf & 1) {
20519
20428
  i0__namespace.ɵɵelement(0, "ccd-read-collection-field", 14);
20520
20429
  }
20521
20430
  if (rf & 2) {
20522
- var ctx_r1 = i0__namespace.ɵɵnextContext();
20523
- i0__namespace.ɵɵproperty("caseField", ctx_r1.caseField);
20431
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
20432
+ i0__namespace.ɵɵproperty("caseField", ctx_r0.caseField);
20524
20433
  }
20525
20434
  }
20526
20435
  var QueryCheckYourAnswersComponent = /** @class */ (function () {
20527
20436
  function QueryCheckYourAnswersComponent() {
20528
20437
  this.backClicked = new i0.EventEmitter();
20529
- this.queryItemTypeEnum = exports.QueryItemType;
20530
20438
  }
20531
20439
  QueryCheckYourAnswersComponent.prototype.ngOnInit = function () {
20532
- // Set default value as false for testing follow up EUI-8387
20533
- this.QueryCreateContext = exports.QueryItemType.FOLLOWUP;
20534
- // Mock object
20535
- caseFieldMockData.value = [
20536
- {
20537
- id: '725bf4a7-9e4c-4132-b5c1-f8028cb83459',
20538
- value: {
20539
- document_url: 'https://dm-store-aat.service.core-compute-aat.internal/documents/e5366837-b3f6-492d-acbf-548730625e8f',
20540
- document_filename: 'Screenshot 2023-06-01 at 16.07.06.png',
20541
- document_binary_url: 'https://dm-store-aat.service.core-compute-aat.internal/documents/e5366837-b3f6-492d-acbf-548730625e8f/binary'
20542
- }
20543
- },
20544
- {
20545
- id: '725bf4a7-9e4c-4132-b5c1-f8028cb83459',
20546
- value: {
20547
- document_url: 'https://dm-store-aat.service.core-compute-aat.internal/documents/f50ccd7a-7f28-40f3-b5f9-7ad2f6425506',
20548
- document_filename: 'dummy.pdf',
20549
- document_binary_url: 'https://dm-store-aat.service.core-compute-aat.internal/documents/f50ccd7a-7f28-40f3-b5f9-7ad2f6425506/binary'
20550
- }
20551
- }
20552
- ];
20553
20440
  this.caseField = caseFieldMockData;
20441
+ this.caseField.value = this.formGroup.get('attachments').value
20442
+ .map(QueryManagementUtils.documentToCollectionFormDocument);
20554
20443
  };
20555
20444
  QueryCheckYourAnswersComponent.prototype.goBack = function () {
20556
20445
  this.backClicked.emit(true);
@@ -20558,7 +20447,7 @@
20558
20447
  return QueryCheckYourAnswersComponent;
20559
20448
  }());
20560
20449
  QueryCheckYourAnswersComponent.ɵfac = function QueryCheckYourAnswersComponent_Factory(t) { return new (t || QueryCheckYourAnswersComponent)(); };
20561
- QueryCheckYourAnswersComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", QueryCreateContext: "QueryCreateContext" }, outputs: { backClicked: "backClicked" }, decls: 49, vars: 31, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], [1, "govuk-heading-l"], [1, "govuk-!-margin-bottom-4"], ["class", "govuk-summary-list govuk-!-margin-bottom-0", 4, "ngIf"], [1, "govuk-summary-list", "govuk-!-margin-bottom-0"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], [1, "govuk-link", 3, "click"], [3, "caseField", 4, "ngIf"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", 1, "govuk-button"], [3, "caseField"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) {
20450
+ QueryCheckYourAnswersComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem" }, outputs: { backClicked: "backClicked" }, decls: 44, vars: 27, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], [1, "govuk-heading-l"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-summary-list", "govuk-!-margin-bottom-0"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "caseField", 4, "ngIf"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", 1, "govuk-button"], [3, "caseField"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) {
20562
20451
  if (rf & 1) {
20563
20452
  i0__namespace.ɵɵelementStart(0, "div", 0);
20564
20453
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -20569,71 +20458,63 @@
20569
20458
  i0__namespace.ɵɵelementStart(5, "div", 3);
20570
20459
  i0__namespace.ɵɵelement(6, "ccd-query-case-details-header");
20571
20460
  i0__namespace.ɵɵelementEnd();
20572
- i0__namespace.ɵɵtemplate(7, QueryCheckYourAnswersComponent_dl_7_Template, 7, 4, "dl", 4);
20573
- i0__namespace.ɵɵelementStart(8, "dl", 5);
20574
- i0__namespace.ɵɵelementStart(9, "div", 6);
20575
- i0__namespace.ɵɵelementStart(10, "dt", 7);
20576
- i0__namespace.ɵɵtext(11);
20577
- i0__namespace.ɵɵpipe(12, "rpxTranslate");
20461
+ i0__namespace.ɵɵelementStart(7, "dl", 4);
20462
+ i0__namespace.ɵɵelementStart(8, "div", 5);
20463
+ i0__namespace.ɵɵelementStart(9, "dt", 6);
20464
+ i0__namespace.ɵɵtext(10);
20465
+ i0__namespace.ɵɵpipe(11, "rpxTranslate");
20466
+ i0__namespace.ɵɵelementEnd();
20467
+ i0__namespace.ɵɵelementStart(12, "dd", 7);
20468
+ i0__namespace.ɵɵtext(13);
20469
+ i0__namespace.ɵɵelementEnd();
20578
20470
  i0__namespace.ɵɵelementEnd();
20579
- i0__namespace.ɵɵelementStart(13, "dd", 8);
20580
- i0__namespace.ɵɵtext(14);
20581
20471
  i0__namespace.ɵɵelementEnd();
20582
- i0__namespace.ɵɵelementStart(15, "dd", 9);
20583
- i0__namespace.ɵɵelementStart(16, "a", 10);
20584
- i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_a_click_16_listener() { return ctx.goBack(); });
20472
+ i0__namespace.ɵɵelementStart(14, "dl", 4);
20473
+ i0__namespace.ɵɵelementStart(15, "div", 5);
20474
+ i0__namespace.ɵɵelementStart(16, "dt", 6);
20585
20475
  i0__namespace.ɵɵtext(17);
20586
20476
  i0__namespace.ɵɵpipe(18, "rpxTranslate");
20587
20477
  i0__namespace.ɵɵelementEnd();
20478
+ i0__namespace.ɵɵelementStart(19, "dd", 7);
20479
+ i0__namespace.ɵɵtext(20);
20588
20480
  i0__namespace.ɵɵelementEnd();
20481
+ i0__namespace.ɵɵelementStart(21, "dd", 8);
20482
+ i0__namespace.ɵɵelementStart(22, "a", 9);
20483
+ i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_a_click_22_listener() { return ctx.goBack(); });
20484
+ i0__namespace.ɵɵtext(23);
20485
+ i0__namespace.ɵɵpipe(24, "rpxTranslate");
20589
20486
  i0__namespace.ɵɵelementEnd();
20590
20487
  i0__namespace.ɵɵelementEnd();
20591
- i0__namespace.ɵɵelementStart(19, "dl", 5);
20592
- i0__namespace.ɵɵelementStart(20, "div", 6);
20593
- i0__namespace.ɵɵelementStart(21, "dt", 7);
20594
- i0__namespace.ɵɵtext(22);
20595
- i0__namespace.ɵɵpipe(23, "rpxTranslate");
20596
20488
  i0__namespace.ɵɵelementEnd();
20597
- i0__namespace.ɵɵelementStart(24, "dd", 8);
20598
- i0__namespace.ɵɵtext(25);
20599
20489
  i0__namespace.ɵɵelementEnd();
20600
- i0__namespace.ɵɵelementStart(26, "dd", 9);
20601
- i0__namespace.ɵɵelementStart(27, "a", 10);
20602
- i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_a_click_27_listener() { return ctx.goBack(); });
20490
+ i0__namespace.ɵɵelementStart(25, "dl", 4);
20491
+ i0__namespace.ɵɵelementStart(26, "div", 5);
20492
+ i0__namespace.ɵɵelementStart(27, "dt", 6);
20603
20493
  i0__namespace.ɵɵtext(28);
20604
20494
  i0__namespace.ɵɵpipe(29, "rpxTranslate");
20605
20495
  i0__namespace.ɵɵelementEnd();
20496
+ i0__namespace.ɵɵelementStart(30, "dd", 10);
20497
+ i0__namespace.ɵɵtemplate(31, QueryCheckYourAnswersComponent_ccd_read_collection_field_31_Template, 1, 1, "ccd-read-collection-field", 11);
20606
20498
  i0__namespace.ɵɵelementEnd();
20499
+ i0__namespace.ɵɵelementStart(32, "dd", 8);
20500
+ i0__namespace.ɵɵelementStart(33, "a", 9);
20501
+ i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_a_click_33_listener() { return ctx.goBack(); });
20502
+ i0__namespace.ɵɵtext(34);
20503
+ i0__namespace.ɵɵpipe(35, "rpxTranslate");
20607
20504
  i0__namespace.ɵɵelementEnd();
20608
20505
  i0__namespace.ɵɵelementEnd();
20609
- i0__namespace.ɵɵelementStart(30, "dl", 5);
20610
- i0__namespace.ɵɵelementStart(31, "div", 6);
20611
- i0__namespace.ɵɵelementStart(32, "dt", 7);
20612
- i0__namespace.ɵɵtext(33);
20613
- i0__namespace.ɵɵpipe(34, "rpxTranslate");
20614
20506
  i0__namespace.ɵɵelementEnd();
20615
- i0__namespace.ɵɵelementStart(35, "dd", 8);
20616
- i0__namespace.ɵɵtemplate(36, QueryCheckYourAnswersComponent_ccd_read_collection_field_36_Template, 1, 1, "ccd-read-collection-field", 11);
20617
20507
  i0__namespace.ɵɵelementEnd();
20618
- i0__namespace.ɵɵelementStart(37, "dd", 9);
20619
- i0__namespace.ɵɵelementStart(38, "a", 10);
20620
- i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_a_click_38_listener() { return ctx.goBack(); });
20508
+ i0__namespace.ɵɵelement(36, "br");
20509
+ i0__namespace.ɵɵelementStart(37, "div");
20510
+ i0__namespace.ɵɵelementStart(38, "button", 12);
20511
+ i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_button_click_38_listener() { return ctx.goBack(); });
20621
20512
  i0__namespace.ɵɵtext(39);
20622
20513
  i0__namespace.ɵɵpipe(40, "rpxTranslate");
20623
20514
  i0__namespace.ɵɵelementEnd();
20624
- i0__namespace.ɵɵelementEnd();
20625
- i0__namespace.ɵɵelementEnd();
20626
- i0__namespace.ɵɵelementEnd();
20627
- i0__namespace.ɵɵelement(41, "br");
20628
- i0__namespace.ɵɵelementStart(42, "div");
20629
- i0__namespace.ɵɵelementStart(43, "button", 12);
20630
- i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_button_click_43_listener() { return ctx.goBack(); });
20631
- i0__namespace.ɵɵtext(44);
20632
- i0__namespace.ɵɵpipe(45, "rpxTranslate");
20633
- i0__namespace.ɵɵelementEnd();
20634
- i0__namespace.ɵɵelementStart(46, "button", 13);
20635
- i0__namespace.ɵɵtext(47);
20636
- i0__namespace.ɵɵpipe(48, "rpxTranslate");
20515
+ i0__namespace.ɵɵelementStart(41, "button", 13);
20516
+ i0__namespace.ɵɵtext(42);
20517
+ i0__namespace.ɵɵpipe(43, "rpxTranslate");
20637
20518
  i0__namespace.ɵɵelementEnd();
20638
20519
  i0__namespace.ɵɵelementEnd();
20639
20520
  i0__namespace.ɵɵelementEnd();
@@ -20641,33 +20522,29 @@
20641
20522
  }
20642
20523
  if (rf & 2) {
20643
20524
  i0__namespace.ɵɵadvance(3);
20644
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 13, "Review query details"), " ");
20645
- i0__namespace.ɵɵadvance(4);
20646
- i0__namespace.ɵɵproperty("ngIf", ctx.QueryCreateContext === ctx.queryItemTypeEnum.RESPOND);
20647
- i0__namespace.ɵɵadvance(4);
20648
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(12, 15, "Full name"), " ");
20649
- i0__namespace.ɵɵadvance(3);
20650
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.formGroup.controls["fullName"].value, " ");
20525
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 11, "Review query response details"));
20526
+ i0__namespace.ɵɵadvance(7);
20527
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(11, 13, "Submitted query"), " ");
20651
20528
  i0__namespace.ɵɵadvance(3);
20652
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 17, "Change"), " ");
20653
- i0__namespace.ɵɵadvance(5);
20654
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.QueryCreateContext === ctx.queryItemTypeEnum.RESPOND ? "Response message" : i0__namespace.ɵɵpipeBind1(23, 19, "Query body"), " ");
20529
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.queryItem.subject, " ");
20530
+ i0__namespace.ɵɵadvance(4);
20531
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 15, "Response message"), " ");
20655
20532
  i0__namespace.ɵɵadvance(3);
20656
20533
  i0__namespace.ɵɵtextInterpolate1(" ", ctx.formGroup.controls["body"].value, " ");
20657
20534
  i0__namespace.ɵɵadvance(3);
20658
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(29, 21, "Change"), " ");
20535
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(24, 17, "Change"), " ");
20659
20536
  i0__namespace.ɵɵadvance(5);
20660
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(34, 23, "Document attached"), " ");
20537
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(29, 19, "Document attached"), " ");
20661
20538
  i0__namespace.ɵɵadvance(3);
20662
20539
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField);
20663
20540
  i0__namespace.ɵɵadvance(3);
20664
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(40, 25, "Change"), " ");
20541
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(35, 21, "Change"), " ");
20665
20542
  i0__namespace.ɵɵadvance(5);
20666
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(45, 27, "Previous"), " ");
20543
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(40, 23, "Previous"), " ");
20667
20544
  i0__namespace.ɵɵadvance(3);
20668
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(48, 29, "Submit"), " ");
20545
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(43, 25, "Submit"), " ");
20669
20546
  }
20670
- }, styles: [".collection-field-table tr>td{border-bottom:none}"], encapsulation: 2 });
20547
+ }, styles: ["ccd-query-check-your-answers .collection-field-table tr>td{border-bottom:none;padding-bottom:0}ccd-query-check-your-answers .govuk-summary-list__value--documentAttached{vertical-align:middle}"], encapsulation: 2 });
20671
20548
  (function () {
20672
20549
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryCheckYourAnswersComponent, [{
20673
20550
  type: i0.Component,
@@ -20681,8 +20558,6 @@
20681
20558
  type: i0.Input
20682
20559
  }], queryItem: [{
20683
20560
  type: i0.Input
20684
- }], QueryCreateContext: [{
20685
- type: i0.Input
20686
20561
  }], backClicked: [{
20687
20562
  type: i0.Output
20688
20563
  }] });
@@ -20938,6 +20813,99 @@
20938
20813
  SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
20939
20814
  })(SortOrder || (SortOrder = {}));
20940
20815
 
20816
+ var QueryListItem = /** @class */ (function () {
20817
+ function QueryListItem() {
20818
+ this.children = [];
20819
+ }
20820
+ Object.defineProperty(QueryListItem.prototype, "lastSubmittedMessage", {
20821
+ get: function () {
20822
+ var getLastSubmittedMessage = function (item) {
20823
+ var e_1, _b;
20824
+ var lastSubmittedMessage = item;
20825
+ if (item.children && item.children.length > 0) {
20826
+ try {
20827
+ for (var _c = __values(item.children), _d = _c.next(); !_d.done; _d = _c.next()) {
20828
+ var child = _d.value;
20829
+ var childLastSubmittedMessage = getLastSubmittedMessage(child);
20830
+ if (childLastSubmittedMessage.createdOn > lastSubmittedMessage.createdOn) {
20831
+ lastSubmittedMessage = childLastSubmittedMessage;
20832
+ }
20833
+ }
20834
+ }
20835
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
20836
+ finally {
20837
+ try {
20838
+ if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
20839
+ }
20840
+ finally { if (e_1) throw e_1.error; }
20841
+ }
20842
+ }
20843
+ return lastSubmittedMessage;
20844
+ };
20845
+ return getLastSubmittedMessage(this);
20846
+ },
20847
+ enumerable: false,
20848
+ configurable: true
20849
+ });
20850
+ Object.defineProperty(QueryListItem.prototype, "lastSubmittedBy", {
20851
+ get: function () {
20852
+ return this.lastSubmittedMessage.name;
20853
+ },
20854
+ enumerable: false,
20855
+ configurable: true
20856
+ });
20857
+ Object.defineProperty(QueryListItem.prototype, "lastSubmittedDate", {
20858
+ get: function () {
20859
+ return new Date(this.lastSubmittedMessage.createdOn);
20860
+ },
20861
+ enumerable: false,
20862
+ configurable: true
20863
+ });
20864
+ Object.defineProperty(QueryListItem.prototype, "lastResponseBy", {
20865
+ get: function () {
20866
+ var _a;
20867
+ return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.lastSubmittedMessage.name : '';
20868
+ },
20869
+ enumerable: false,
20870
+ configurable: true
20871
+ });
20872
+ Object.defineProperty(QueryListItem.prototype, "lastResponseDate", {
20873
+ get: function () {
20874
+ var _a;
20875
+ return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? new Date(this.lastSubmittedMessage.createdOn) : null;
20876
+ },
20877
+ enumerable: false,
20878
+ configurable: true
20879
+ });
20880
+ return QueryListItem;
20881
+ }());
20882
+
20883
+ var QueryListData = /** @class */ (function () {
20884
+ function QueryListData(partyMessagesGroup) {
20885
+ var _this = this;
20886
+ this.partyName = partyMessagesGroup.partyName;
20887
+ this.roleOnCase = partyMessagesGroup.roleOnCase;
20888
+ // get the parent messages (messages without parentId) and add the children to them
20889
+ var parentMessages = partyMessagesGroup.partyMessages.filter(function (message) { return !message.parentId; });
20890
+ this.partyMessages = parentMessages.map(function (message) { return _this.buildQueryListItem(message, partyMessagesGroup.partyMessages); });
20891
+ }
20892
+ QueryListData.prototype.buildQueryListItem = function (message, allMessages) {
20893
+ var _this = this;
20894
+ var queryListItem = new QueryListItem();
20895
+ Object.assign(queryListItem, Object.assign(Object.assign({}, message), { children: allMessages
20896
+ .filter(function (childMessage) { return childMessage.parentId === message.id; })
20897
+ .map(function (childMessage) { return _this.buildQueryListItem(childMessage, allMessages); }) }));
20898
+ return queryListItem;
20899
+ };
20900
+ return QueryListData;
20901
+ }());
20902
+
20903
+ exports.QueryListResponseStatus = void 0;
20904
+ (function (QueryListResponseStatus) {
20905
+ QueryListResponseStatus["NEW"] = "New";
20906
+ QueryListResponseStatus["RESPONDED"] = "Responded";
20907
+ })(exports.QueryListResponseStatus || (exports.QueryListResponseStatus = {}));
20908
+
20941
20909
  function QueryListComponent_ng_container_0_th_7_Template(rf, ctx) {
20942
20910
  if (rf & 1) {
20943
20911
  var _r5_1 = i0__namespace.ɵɵgetCurrentView();
@@ -21126,6 +21094,9 @@
21126
21094
  function QueryWriteAddDocumentsComponent() {
21127
21095
  this.documentFormGroup = new i3.FormGroup({});
21128
21096
  this.documentCollectionUpdate = new i0.EventEmitter();
21097
+ }
21098
+ QueryWriteAddDocumentsComponent.prototype.ngOnInit = function () {
21099
+ var _a;
21129
21100
  // This field is mocked to allow the document component to be used in isolation
21130
21101
  this.mockDocumentCaseField = Object.assign(new CaseField(), {
21131
21102
  id: QueryWriteAddDocumentsComponent.DOCUMENTS_FORM_CONTROL_NAME,
@@ -21152,12 +21123,13 @@
21152
21123
  })
21153
21124
  }),
21154
21125
  });
21155
- }
21126
+ this.mockDocumentCaseField.value = (_a = this.formGroup.get('attachments')) === null || _a === void 0 ? void 0 : _a.value.map(QueryManagementUtils.documentToCollectionFormDocument);
21127
+ };
21156
21128
  QueryWriteAddDocumentsComponent.prototype.ngAfterViewInit = function () {
21157
21129
  var _this = this;
21158
- var formControl = this.documentFormGroup.get(QueryWriteAddDocumentsComponent.DOCUMENTS_FORM_CONTROL_NAME);
21159
- if (formControl) {
21160
- this.documentFormControlSubscription = formControl.valueChanges
21130
+ var documentFormControl = this.documentFormGroup.get(QueryWriteAddDocumentsComponent.DOCUMENTS_FORM_CONTROL_NAME);
21131
+ if (documentFormControl) {
21132
+ this.documentFormControlSubscription = documentFormControl.valueChanges
21161
21133
  .pipe(operators.map(function (documents) { return (documents.filter(function (document) { var _a; return !!((_a = document === null || document === void 0 ? void 0 : document.value) === null || _a === void 0 ? void 0 : _a.document_url); })); }), operators.map(function (documents) { return documents.map(function (document) { return document === null || document === void 0 ? void 0 : document.value; }); }), operators.tap(function (documents) { return _this.documentCollectionUpdate.emit(documents); }))
21162
21134
  .subscribe();
21163
21135
  }
@@ -21170,7 +21142,7 @@
21170
21142
  }());
21171
21143
  QueryWriteAddDocumentsComponent.DOCUMENTS_FORM_CONTROL_NAME = 'documentCollection';
21172
21144
  QueryWriteAddDocumentsComponent.ɵfac = function QueryWriteAddDocumentsComponent_Factory(t) { return new (t || QueryWriteAddDocumentsComponent)(); };
21173
- QueryWriteAddDocumentsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteAddDocumentsComponent, selectors: [["ccd-query-write-add-documents"]], outputs: { documentCollectionUpdate: "documentCollectionUpdate" }, decls: 1, vars: 2, consts: [[3, "formGroup", "caseField"]], template: function QueryWriteAddDocumentsComponent_Template(rf, ctx) {
21145
+ QueryWriteAddDocumentsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteAddDocumentsComponent, selectors: [["ccd-query-write-add-documents"]], inputs: { formGroup: "formGroup" }, outputs: { documentCollectionUpdate: "documentCollectionUpdate" }, decls: 1, vars: 2, consts: [[3, "formGroup", "caseField"]], template: function QueryWriteAddDocumentsComponent_Template(rf, ctx) {
21174
21146
  if (rf & 1) {
21175
21147
  i0__namespace.ɵɵelement(0, "ccd-write-collection-field", 0);
21176
21148
  }
@@ -21185,7 +21157,9 @@
21185
21157
  selector: 'ccd-query-write-add-documents',
21186
21158
  templateUrl: './query-write-add-documents.component.html'
21187
21159
  }]
21188
- }], function () { return []; }, { documentCollectionUpdate: [{
21160
+ }], null, { formGroup: [{
21161
+ type: i0.Input
21162
+ }], documentCollectionUpdate: [{
21189
21163
  type: i0.Output
21190
21164
  }] });
21191
21165
  })();
@@ -21418,28 +21392,10 @@
21418
21392
  }] });
21419
21393
  })();
21420
21394
 
21421
- function QueryWriteRespondToQueryComponent_p_30_Template(rf, ctx) {
21395
+ function QueryWriteRespondToQueryComponent_p_27_Template(rf, ctx) {
21422
21396
  if (rf & 1) {
21423
- i0__namespace.ɵɵelementStart(0, "p", 20);
21424
- i0__namespace.ɵɵelementStart(1, "span", 21);
21425
- i0__namespace.ɵɵtext(2);
21426
- i0__namespace.ɵɵpipe(3, "rpxTranslate");
21427
- i0__namespace.ɵɵelementEnd();
21428
- i0__namespace.ɵɵtext(4);
21429
- i0__namespace.ɵɵpipe(5, "rpxTranslate");
21430
- i0__namespace.ɵɵelementEnd();
21431
- }
21432
- if (rf & 2) {
21433
- i0__namespace.ɵɵadvance(2);
21434
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
21435
- i0__namespace.ɵɵadvance(2);
21436
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, "Enter your full name"), " ");
21437
- }
21438
- }
21439
- function QueryWriteRespondToQueryComponent_p_37_Template(rf, ctx) {
21440
- if (rf & 1) {
21441
- i0__namespace.ɵɵelementStart(0, "p", 22);
21442
- i0__namespace.ɵɵelementStart(1, "span", 21);
21397
+ i0__namespace.ɵɵelementStart(0, "p", 15);
21398
+ i0__namespace.ɵɵelementStart(1, "span", 16);
21443
21399
  i0__namespace.ɵɵtext(2);
21444
21400
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
21445
21401
  i0__namespace.ɵɵelementEnd();
@@ -21456,14 +21412,11 @@
21456
21412
  }
21457
21413
  var QueryWriteRespondToQueryComponent = /** @class */ (function () {
21458
21414
  function QueryWriteRespondToQueryComponent() {
21459
- // Set default value as false for testing follow up EUI-8454
21460
- this.QueryCreateContext = exports.QueryItemType.FOLLOWUP;
21461
- this.queryItemTypeEnum = exports.QueryItemType;
21462
21415
  }
21463
21416
  return QueryWriteRespondToQueryComponent;
21464
21417
  }());
21465
21418
  QueryWriteRespondToQueryComponent.ɵfac = function QueryWriteRespondToQueryComponent_Factory(t) { return new (t || QueryWriteRespondToQueryComponent)(); };
21466
- QueryWriteRespondToQueryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", QueryCreateContext: "QueryCreateContext" }, decls: 40, vars: 35, consts: [[1, "govuk-!-margin-bottom-2"], ["href", "javascript:void(0)", 1, "govuk-back-link", "govuk-!-margin-top-0"], [1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-0"], [1, "govuk-!-margin-bottom-4"], [3, "queryItem"], [1, "query-respond"], [1, "govuk-heading-m"], [3, "formGroup"], [1, "govuk-form-group"], [1, "govuk-label-wrapper"], ["for", "query-respond-fullName", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "query-respond-fullName-hint", 1, "govuk-hint"], ["id", "query-respond-fullName-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-respond-fullName", "name", "query-respond-fullName", "type", "text", 1, "govuk-input", 3, "formControlName"], [1, "govuk-form-group", "body-textarea"], ["for", "query-body", 1, "govuk-label", "govuk-!-font-weight-bold"], ["id", "query-body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-body", "name", "query-body", "rows", "5", "aria-describedby", "query-body-hint query-body-error", 1, "govuk-textarea", 3, "formControlName"], ["id", "query-respond-fullName-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "query-body-error", 1, "govuk-error-message"]], template: function QueryWriteRespondToQueryComponent_Template(rf, ctx) {
21419
+ QueryWriteRespondToQueryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup" }, decls: 30, vars: 23, consts: [[1, "govuk-!-margin-bottom-2"], ["href", "javascript:void(0)", 1, "govuk-back-link", "govuk-!-margin-top-0"], [1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-0"], [1, "govuk-!-margin-bottom-4"], [3, "queryItem"], [1, "query-respond"], [1, "govuk-heading-m"], [3, "formGroup"], [1, "govuk-form-group", "body-textarea"], [1, "govuk-label-wrapper"], ["for", "query-body", 1, "govuk-label", "govuk-!-font-weight-bold"], ["id", "query-body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-body", "name", "query-body", "rows", "5", "aria-describedby", "query-body-hint query-body-error", 1, "govuk-textarea", 3, "formControlName"], ["id", "query-body-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function QueryWriteRespondToQueryComponent_Template(rf, ctx) {
21467
21420
  if (rf & 1) {
21468
21421
  i0__namespace.ɵɵelementStart(0, "div", 0);
21469
21422
  i0__namespace.ɵɵelementStart(1, "a", 1);
@@ -21503,23 +21456,9 @@
21503
21456
  i0__namespace.ɵɵpipe(26, "rpxTranslate");
21504
21457
  i0__namespace.ɵɵelementEnd();
21505
21458
  i0__namespace.ɵɵelementEnd();
21506
- i0__namespace.ɵɵelementStart(27, "div", 13);
21507
- i0__namespace.ɵɵtext(28);
21508
- i0__namespace.ɵɵpipe(29, "rpxTranslate");
21509
- i0__namespace.ɵɵelementEnd();
21510
- i0__namespace.ɵɵtemplate(30, QueryWriteRespondToQueryComponent_p_30_Template, 6, 6, "p", 14);
21511
- i0__namespace.ɵɵelement(31, "input", 15);
21512
- i0__namespace.ɵɵelementEnd();
21513
- i0__namespace.ɵɵelementStart(32, "div", 16);
21514
- i0__namespace.ɵɵelementStart(33, "div", 11);
21515
- i0__namespace.ɵɵelementStart(34, "label", 17);
21516
- i0__namespace.ɵɵtext(35);
21517
- i0__namespace.ɵɵpipe(36, "rpxTranslate");
21518
- i0__namespace.ɵɵelementEnd();
21519
- i0__namespace.ɵɵelementEnd();
21520
- i0__namespace.ɵɵtemplate(37, QueryWriteRespondToQueryComponent_p_37_Template, 6, 6, "p", 18);
21521
- i0__namespace.ɵɵelementStart(38, "textarea", 19);
21522
- i0__namespace.ɵɵtext(39, " ");
21459
+ i0__namespace.ɵɵtemplate(27, QueryWriteRespondToQueryComponent_p_27_Template, 6, 6, "p", 13);
21460
+ i0__namespace.ɵɵelementStart(28, "textarea", 14);
21461
+ i0__namespace.ɵɵtext(29, " ");
21523
21462
  i0__namespace.ɵɵelementEnd();
21524
21463
  i0__namespace.ɵɵelementEnd();
21525
21464
  i0__namespace.ɵɵelementEnd();
@@ -21528,42 +21467,28 @@
21528
21467
  }
21529
21468
  if (rf & 2) {
21530
21469
  var tmp_6_0 = null;
21470
+ var tmp_8_0 = null;
21531
21471
  var tmp_9_0 = null;
21532
- var tmp_10_0 = null;
21533
- var tmp_12_0 = null;
21534
- var tmp_14_0 = null;
21535
- var tmp_15_0 = null;
21536
21472
  i0__namespace.ɵɵadvance(2);
21537
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 21, "Back to tasks"));
21473
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 13, "Back to tasks"));
21538
21474
  i0__namespace.ɵɵadvance(5);
21539
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(8, 23, "Respond to query"));
21475
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(8, 15, "Respond to query"));
21540
21476
  i0__namespace.ɵɵadvance(3);
21541
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(11, 25, "Query details"));
21477
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(11, 17, "Query details"));
21542
21478
  i0__namespace.ɵɵadvance(5);
21543
21479
  i0__namespace.ɵɵproperty("queryItem", ctx.queryItem);
21544
21480
  i0__namespace.ɵɵadvance(4);
21545
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.QueryCreateContext === ctx.queryItemTypeEnum.RESPOND ? "Respond to a query" : i0__namespace.ɵɵpipeBind1(20, 27, "Ask a follow-up question"), " ");
21481
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(20, 19, "Respond to a query"));
21546
21482
  i0__namespace.ɵɵadvance(2);
21547
21483
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
21548
21484
  i0__namespace.ɵɵadvance(1);
21549
- i0__namespace.ɵɵclassProp("govuk-form-group--error", (tmp_6_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_6_0.errors == null ? null : tmp_6_0.errors.length);
21485
+ i0__namespace.ɵɵclassProp("govuk-form-group--error", (tmp_6_0 = ctx.formGroup.get("body")) == null ? null : tmp_6_0.errors == null ? null : tmp_6_0.errors.length);
21550
21486
  i0__namespace.ɵɵadvance(3);
21551
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(26, 29, "Full name"), " ");
21552
- i0__namespace.ɵɵadvance(3);
21553
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(29, 31, "Your full name must be included here"), " ");
21487
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(26, 21, "Response message"), " ");
21554
21488
  i0__namespace.ɵɵadvance(2);
21555
- i0__namespace.ɵɵproperty("ngIf", (tmp_9_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_9_0.errors == null ? null : tmp_9_0.errors.length);
21556
- i0__namespace.ɵɵadvance(1);
21557
- i0__namespace.ɵɵclassProp("govuk-input--error", (tmp_10_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_10_0.errors == null ? null : tmp_10_0.errors.length);
21558
- i0__namespace.ɵɵproperty("formControlName", "fullName");
21489
+ i0__namespace.ɵɵproperty("ngIf", (tmp_8_0 = ctx.formGroup.get("body")) == null ? null : tmp_8_0.errors == null ? null : tmp_8_0.errors.length);
21559
21490
  i0__namespace.ɵɵadvance(1);
21560
- i0__namespace.ɵɵclassProp("govuk-form-group--error", (tmp_12_0 = ctx.formGroup.get("body")) == null ? null : tmp_12_0.errors == null ? null : tmp_12_0.errors.length);
21561
- i0__namespace.ɵɵadvance(3);
21562
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.QueryCreateContext === ctx.queryItemTypeEnum.RESPOND ? "Response message" : i0__namespace.ɵɵpipeBind1(36, 33, "Query Body"), " ");
21563
- i0__namespace.ɵɵadvance(2);
21564
- i0__namespace.ɵɵproperty("ngIf", (tmp_14_0 = ctx.formGroup.get("body")) == null ? null : tmp_14_0.errors == null ? null : tmp_14_0.errors.length);
21565
- i0__namespace.ɵɵadvance(1);
21566
- i0__namespace.ɵɵclassProp("govuk-textarea--error", (tmp_15_0 = ctx.formGroup.get("body")) == null ? null : tmp_15_0.errors == null ? null : tmp_15_0.errors.length);
21491
+ i0__namespace.ɵɵclassProp("govuk-textarea--error", (tmp_9_0 = ctx.formGroup.get("body")) == null ? null : tmp_9_0.errors == null ? null : tmp_9_0.errors.length);
21567
21492
  i0__namespace.ɵɵproperty("formControlName", "body");
21568
21493
  }
21569
21494
  }, styles: [".query-respond[_ngcontent-%COMP%]{width:100%;max-width:720px}"] });
@@ -21579,26 +21504,9 @@
21579
21504
  type: i0.Input
21580
21505
  }], formGroup: [{
21581
21506
  type: i0.Input
21582
- }], QueryCreateContext: [{
21583
- type: i0.Input
21584
21507
  }] });
21585
21508
  })();
21586
21509
 
21587
- var QueryManagementUtils = /** @class */ (function () {
21588
- function QueryManagementUtils() {
21589
- }
21590
- QueryManagementUtils.extractCaseQueriesFromCaseField = function () {
21591
- };
21592
- return QueryManagementUtils;
21593
- }());
21594
- QueryManagementUtils.ɵfac = function QueryManagementUtils_Factory(t) { return new (t || QueryManagementUtils)(); };
21595
- QueryManagementUtils.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
21596
- (function () {
21597
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryManagementUtils, [{
21598
- type: i0.Injectable
21599
- }], null, null);
21600
- })();
21601
-
21602
21510
  function ReadQueryManagementFieldComponent_ng_container_1_div_1_Template(rf, ctx) {
21603
21511
  if (rf & 1) {
21604
21512
  var _r5_1 = i0__namespace.ɵɵgetCurrentView();