@hmcts/ccd-case-ui-toolkit 6.16.0-query-management-remove-grey-bar-styling-v2 → 6.16.0-query-management-update-mock-data

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 (51) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +661 -507
  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/case-editor/case-edit-page/case-edit-page.component.js +24 -12
  6. package/esm2015/lib/shared/components/palette/palette.module.js +7 -11
  7. package/esm2015/lib/shared/components/palette/query-management/__mocks__/index.js +176 -131
  8. package/esm2015/lib/shared/components/palette/query-management/components/index.js +1 -2
  9. package/esm2015/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.js +33 -27
  10. package/esm2015/lib/shared/components/palette/query-management/components/query-details/query-details.component.js +210 -83
  11. package/esm2015/lib/shared/components/palette/query-management/components/query-list/query-list.component.js +11 -11
  12. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.js +41 -52
  13. package/esm2015/lib/shared/components/palette/query-management/models/case-queries-collection.model.js +2 -0
  14. package/esm2015/lib/shared/components/palette/query-management/models/index.js +5 -6
  15. package/esm2015/lib/shared/components/palette/query-management/models/query-list/query-list-data/query-list-data.model.js +8 -8
  16. package/esm2015/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.js +1 -1
  17. package/esm2015/lib/shared/components/palette/query-management/read-query-management-field.component.js +81 -28
  18. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +561 -486
  19. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  20. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +12 -3
  21. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  22. package/lib/shared/components/palette/palette.module.d.ts +38 -39
  23. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  24. package/lib/shared/components/palette/query-management/__mocks__/index.d.ts +10 -2
  25. package/lib/shared/components/palette/query-management/__mocks__/index.d.ts.map +1 -1
  26. package/lib/shared/components/palette/query-management/components/index.d.ts +0 -1
  27. package/lib/shared/components/palette/query-management/components/index.d.ts.map +1 -1
  28. package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts +6 -1
  29. package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts.map +1 -1
  30. package/lib/shared/components/palette/query-management/components/query-list/query-list.component.d.ts +3 -3
  31. package/lib/shared/components/palette/query-management/components/query-list/query-list.component.d.ts.map +1 -1
  32. package/lib/shared/components/palette/query-management/models/case-queries-collection.model.d.ts +27 -0
  33. package/lib/shared/components/palette/query-management/models/case-queries-collection.model.d.ts.map +1 -0
  34. package/lib/shared/components/palette/query-management/models/index.d.ts +4 -5
  35. package/lib/shared/components/palette/query-management/models/index.d.ts.map +1 -1
  36. package/lib/shared/components/palette/query-management/models/query-list/query-list-data/query-list-data.model.d.ts +3 -3
  37. package/lib/shared/components/palette/query-management/models/query-list/query-list-data/query-list-data.model.d.ts.map +1 -1
  38. package/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.d.ts +4 -5
  39. package/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.d.ts.map +1 -1
  40. package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts +3 -2
  41. package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts.map +1 -1
  42. package/package.json +1 -1
  43. package/esm2015/lib/shared/components/palette/query-management/components/query-details-table/query-details-table.component.js +0 -154
  44. package/esm2015/lib/shared/components/palette/query-management/models/party-messages/party-message.model.js +0 -2
  45. package/esm2015/lib/shared/components/palette/query-management/models/party-messages/party-messages-group.model.js +0 -2
  46. package/lib/shared/components/palette/query-management/components/query-details-table/query-details-table.component.d.ts +0 -8
  47. package/lib/shared/components/palette/query-management/components/query-details-table/query-details-table.component.d.ts.map +0 -1
  48. package/lib/shared/components/palette/query-management/models/party-messages/party-message.model.d.ts +0 -14
  49. package/lib/shared/components/palette/query-management/models/party-messages/party-message.model.d.ts.map +0 -1
  50. package/lib/shared/components/palette/query-management/models/party-messages/party-messages-group.model.d.ts +0 -7
  51. package/lib/shared/components/palette/query-management/models/party-messages/party-messages-group.model.d.ts.map +0 -1
@@ -531,7 +531,7 @@
531
531
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
532
532
  PERFORMANCE OF THIS SOFTWARE.
533
533
  ***************************************************************************** */
534
- /* global Reflect, Promise */
534
+ /* global Reflect, Promise, SuppressedError, Symbol */
535
535
  var extendStatics = function (d, b) {
536
536
  extendStatics = Object.setPrototypeOf ||
537
537
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -610,11 +610,11 @@
610
610
  if (_ = accept(result.set))
611
611
  descriptor.set = _;
612
612
  if (_ = accept(result.init))
613
- initializers.push(_);
613
+ initializers.unshift(_);
614
614
  }
615
615
  else if (_ = accept(result)) {
616
616
  if (kind === "field")
617
- initializers.push(_);
617
+ initializers.unshift(_);
618
618
  else
619
619
  descriptor[key] = _;
620
620
  }
@@ -901,6 +901,85 @@
901
901
  throw new TypeError("Cannot use 'in' operator on non-object");
902
902
  return typeof state === "function" ? receiver === state : state.has(receiver);
903
903
  }
904
+ function __addDisposableResource(env, value, async) {
905
+ if (value !== null && value !== void 0) {
906
+ if (typeof value !== "object")
907
+ throw new TypeError("Object expected.");
908
+ var dispose;
909
+ if (async) {
910
+ if (!Symbol.asyncDispose)
911
+ throw new TypeError("Symbol.asyncDispose is not defined.");
912
+ dispose = value[Symbol.asyncDispose];
913
+ }
914
+ if (dispose === void 0) {
915
+ if (!Symbol.dispose)
916
+ throw new TypeError("Symbol.dispose is not defined.");
917
+ dispose = value[Symbol.dispose];
918
+ }
919
+ if (typeof dispose !== "function")
920
+ throw new TypeError("Object not disposable.");
921
+ env.stack.push({ value: value, dispose: dispose, async: async });
922
+ }
923
+ else if (async) {
924
+ env.stack.push({ async: true });
925
+ }
926
+ return value;
927
+ }
928
+ var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
929
+ var e = new Error(message);
930
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
931
+ };
932
+ function __disposeResources(env) {
933
+ function fail(e) {
934
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
935
+ env.hasError = true;
936
+ }
937
+ function next() {
938
+ while (env.stack.length) {
939
+ var rec = env.stack.pop();
940
+ try {
941
+ var result = rec.dispose && rec.dispose.call(rec.value);
942
+ if (rec.async)
943
+ return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
944
+ }
945
+ catch (e) {
946
+ fail(e);
947
+ }
948
+ }
949
+ if (env.hasError)
950
+ throw env.error;
951
+ }
952
+ return next();
953
+ }
954
+ var tslib_es6 = {
955
+ __extends: __extends,
956
+ __assign: __assign,
957
+ __rest: __rest,
958
+ __decorate: __decorate,
959
+ __param: __param,
960
+ __metadata: __metadata,
961
+ __awaiter: __awaiter,
962
+ __generator: __generator,
963
+ __createBinding: __createBinding,
964
+ __exportStar: __exportStar,
965
+ __values: __values,
966
+ __read: __read,
967
+ __spread: __spread,
968
+ __spreadArrays: __spreadArrays,
969
+ __spreadArray: __spreadArray,
970
+ __await: __await,
971
+ __asyncGenerator: __asyncGenerator,
972
+ __asyncDelegator: __asyncDelegator,
973
+ __asyncValues: __asyncValues,
974
+ __makeTemplateObject: __makeTemplateObject,
975
+ __importStar: __importStar,
976
+ __importDefault: __importDefault,
977
+ __classPrivateFieldGet: __classPrivateFieldGet,
978
+ __classPrivateFieldSet: __classPrivateFieldSet,
979
+ __classPrivateFieldIn: __classPrivateFieldIn,
980
+ __addDisposableResource: __addDisposableResource,
981
+ __disposeResources: __disposeResources,
982
+ };
904
983
 
905
984
  var _c0$$ = function (a0) { return { "govuk-input--error": a0 }; };
906
985
  function DateInputComponent_div_19_Template(rf, ctx) {
@@ -10775,7 +10854,7 @@
10775
10854
  this.wizard = this.caseEdit.wizard;
10776
10855
  this.caseFields = this.getCaseFields();
10777
10856
  this.syncCaseEditDataService();
10778
- this.route.params
10857
+ this.routeParamsSub = this.route.params
10779
10858
  .subscribe(function (params) {
10780
10859
  var _a, _b;
10781
10860
  var pageId = params['page'];
@@ -10797,13 +10876,14 @@
10797
10876
  }
10798
10877
  });
10799
10878
  CaseEditPageComponent.setFocusToTop();
10800
- this.caseEditDataService.caseEditForm$.subscribe({
10879
+ this.caseEditFormSub = this.caseEditDataService.caseEditForm$.subscribe({
10801
10880
  next: function (editForm) { return _this.editForm = editForm; }
10802
10881
  });
10803
- this.caseEditDataService.caseIsLinkedCasesJourneyAtFinalStep$.subscribe({
10804
- next: function (isLinkedCasesJourneyAtFinalStep) { return _this.isLinkedCasesJourneyAtFinalStep = isLinkedCasesJourneyAtFinalStep; }
10805
- });
10806
- this.caseEditDataService.caseTriggerSubmitEvent$.subscribe({
10882
+ this.caseIsLinkedCasesJourneyAtFinalStepSub =
10883
+ this.caseEditDataService.caseIsLinkedCasesJourneyAtFinalStep$.subscribe({
10884
+ next: function (isLinkedCasesJourneyAtFinalStep) { return _this.isLinkedCasesJourneyAtFinalStep = isLinkedCasesJourneyAtFinalStep; }
10885
+ });
10886
+ this.caseTriggerSubmitEventSub = this.caseEditDataService.caseTriggerSubmitEvent$.subscribe({
10807
10887
  next: function (state) {
10808
10888
  if (state) {
10809
10889
  _this.caseEditDataService.setTriggerSubmitEvent(false);
@@ -10816,6 +10896,17 @@
10816
10896
  CaseEditPageComponent.prototype.ngAfterViewChecked = function () {
10817
10897
  this.cdRef.detectChanges();
10818
10898
  };
10899
+ CaseEditPageComponent.prototype.ngOnDestroy = function () {
10900
+ var _a, _b, _c, _d, _e, _f, _g, _h;
10901
+ (_a = this.routeParamsSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
10902
+ (_b = this.caseEditFormSub) === null || _b === void 0 ? void 0 : _b.unsubscribe();
10903
+ (_c = this.caseIsLinkedCasesJourneyAtFinalStepSub) === null || _c === void 0 ? void 0 : _c.unsubscribe();
10904
+ (_d = this.caseTriggerSubmitEventSub) === null || _d === void 0 ? void 0 : _d.unsubscribe();
10905
+ (_e = this.validateSub) === null || _e === void 0 ? void 0 : _e.unsubscribe();
10906
+ (_f = this.dialogRefAfterClosedSub) === null || _f === void 0 ? void 0 : _f.unsubscribe();
10907
+ (_g = this.saveDraftSub) === null || _g === void 0 ? void 0 : _g.unsubscribe();
10908
+ (_h = this.caseFormValidationErrorsSub) === null || _h === void 0 ? void 0 : _h.unsubscribe();
10909
+ };
10819
10910
  CaseEditPageComponent.prototype.applyValuesChanged = function (valuesChanged) {
10820
10911
  this.formValuesChanged = valuesChanged;
10821
10912
  };
@@ -10890,7 +10981,7 @@
10890
10981
  _this.generateErrorMessage(casefield.field_type.collection_field_type.complex_fields, c.get('value'), id_1);
10891
10982
  });
10892
10983
  }
10893
- else if (FieldsUtils.isFlagLauncherCaseField(casefield)) {
10984
+ else if (FieldsUtils.isCaseFieldOfType(casefield, ['FlagLauncher'])) {
10894
10985
  // Check whether the case field DisplayContextParameter is signalling "create" mode or "update" mode
10895
10986
  // (expected always to be one of the two), to set the correct error message
10896
10987
  var action = '';
@@ -10945,7 +11036,7 @@
10945
11036
  this.caseEdit.error = null;
10946
11037
  var caseEventData = this.buildCaseEventData();
10947
11038
  var loadingSpinnerToken_1 = this.loadingService.register();
10948
- this.caseEdit.validate(caseEventData, this.currentPage.id)
11039
+ this.validateSub = this.caseEdit.validate(caseEventData, this.currentPage.id)
10949
11040
  .pipe(operators.finalize(function () {
10950
11041
  _this.loadingService.unregister(loadingSpinnerToken_1);
10951
11042
  }))
@@ -10964,10 +11055,10 @@
10964
11055
  CaseEditPageComponent.setFocusToTop();
10965
11056
  };
10966
11057
  CaseEditPageComponent.prototype.updateFormData = function (jsonData) {
10967
- var e_1, _c;
11058
+ var e_1, _j;
10968
11059
  try {
10969
- for (var _d = __values(Object.keys(jsonData.data)), _e = _d.next(); !_e.done; _e = _d.next()) {
10970
- var caseFieldId = _e.value;
11060
+ for (var _k = __values(Object.keys(jsonData.data)), _l = _k.next(); !_l.done; _l = _k.next()) {
11061
+ var caseFieldId = _l.value;
10971
11062
  /* istanbul ignore else */
10972
11063
  if (this.pageWithFieldExists(caseFieldId)) {
10973
11064
  this.updateEventTriggerCaseFields(caseFieldId, jsonData, this.caseEdit.eventTrigger);
@@ -10978,7 +11069,7 @@
10978
11069
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
10979
11070
  finally {
10980
11071
  try {
10981
- if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
11072
+ if (_l && !_l.done && (_j = _k.return)) _j.call(_k);
10982
11073
  }
10983
11074
  finally { if (e_1) throw e_1.error; }
10984
11075
  }
@@ -11007,12 +11098,12 @@
11007
11098
  CaseEditPageComponent.prototype.updateJsonDataObject = function (caseFieldId, jsonData, element) {
11008
11099
  var _this = this;
11009
11100
  return Object.keys(jsonData.data[caseFieldId]).reduce(function (acc, key) {
11010
- var _c;
11101
+ var _j;
11011
11102
  var elementValue = element.value[key];
11012
11103
  var jsonDataValue = jsonData.data[caseFieldId][key];
11013
11104
  var hasElementGotValueProperty = _this.isAnObject(elementValue) && elementValue.value !== undefined;
11014
11105
  var jsonDataOrElementValue = (jsonDataValue === null || jsonDataValue === void 0 ? void 0 : jsonDataValue.value) !== null && (jsonDataValue === null || jsonDataValue === void 0 ? void 0 : jsonDataValue.value) !== undefined ? jsonDataValue : elementValue;
11015
- return Object.assign(Object.assign({}, acc), (_c = {}, _c["" + key] = hasElementGotValueProperty ? jsonDataOrElementValue : jsonDataValue, _c));
11106
+ return Object.assign(Object.assign({}, acc), (_j = {}, _j["" + key] = hasElementGotValueProperty ? jsonDataOrElementValue : jsonDataValue, _j));
11016
11107
  }, {});
11017
11108
  };
11018
11109
  CaseEditPageComponent.prototype.isAnObject = function (property) {
@@ -11060,7 +11151,7 @@
11060
11151
  if (this.eventTrigger.can_save_draft) {
11061
11152
  if (this.formValuesChanged) {
11062
11153
  var dialogRef = this.dialog.open(SaveOrDiscardDialogComponent, this.dialogConfig);
11063
- dialogRef.afterClosed().subscribe(function (result) {
11154
+ this.dialogRefAfterClosedSub = dialogRef.afterClosed().subscribe(function (result) {
11064
11155
  if (result === 'Discard') {
11065
11156
  _this.discard();
11066
11157
  }
@@ -11147,7 +11238,7 @@
11147
11238
  var draftCaseEventData = this.formValueService.sanitise(this.editForm.value);
11148
11239
  draftCaseEventData.event_token = this.eventTrigger.event_token;
11149
11240
  draftCaseEventData.ignore_warning = this.caseEdit.ignoreWarning;
11150
- this.caseEdit.saveDraft(draftCaseEventData).subscribe(function (draft) { return _this.eventTrigger.case_id = DRAFT_PREFIX + draft.id; }, function (error) { return _this.handleError(error); });
11241
+ this.saveDraftSub = this.caseEdit.saveDraft(draftCaseEventData).subscribe(function (draft) { return _this.eventTrigger.case_id = DRAFT_PREFIX + draft.id; }, function (error) { return _this.handleError(error); });
11151
11242
  }
11152
11243
  };
11153
11244
  CaseEditPageComponent.prototype.getCaseFields = function () {
@@ -11215,7 +11306,7 @@
11215
11306
  this.caseEditDataService.setCaseEventTriggerName(this.eventTrigger.name);
11216
11307
  this.caseEditDataService.setCaseTitle(this.getCaseTitle());
11217
11308
  this.caseEditDataService.setCaseEditForm(this.editForm);
11218
- this.caseEditDataService.caseFormValidationErrors$.subscribe({
11309
+ this.caseFormValidationErrorsSub = this.caseEditDataService.caseFormValidationErrors$.subscribe({
11219
11310
  next: function (validationErrors) { return _this.validationErrors = validationErrors; }
11220
11311
  });
11221
11312
  };
@@ -20504,166 +20595,211 @@
20504
20595
  }], null, null);
20505
20596
  })();
20506
20597
 
20507
- var partyMessagesMockData = [
20598
+ /**
20599
+ * This mock file should be deleted after integrating with CCD
20600
+ * CCD development ticket: https://tools.hmcts.net/jira/browse/CCD-4590
20601
+ * ExUI tickets:
20602
+ * https://tools.hmcts.net/jira/browse/EUI-8460
20603
+ * https://tools.hmcts.net/jira/browse/EUI-8388
20604
+ * https://tools.hmcts.net/jira/browse/EUI-8389
20605
+ */
20606
+ var caseMessagesMockData = [
20508
20607
  {
20509
20608
  partyName: 'John Smith - Appellant',
20510
20609
  roleOnCase: null,
20511
- partyMessages: [
20610
+ caseMessages: [
20512
20611
  {
20513
- id: 'case-message-001',
20514
- subject: 'Review attached document',
20515
- name: 'Maggie Conroy',
20516
- body: 'Please review attached document and advise if hearing should proceed?',
20517
- attachments: [
20518
- {
20519
- _links: {
20520
- self: { href: 'https://dm-store-aat.service.core-compute-aat.internal/documents/e5366837-b3f6-492d-acbf-548730625e8f' },
20521
- binary: { href: 'https://dm-store-aat.service.core-compute-aat.internal/documents/e5366837-b3f6-492d-acbf-548730625e8f/binary' },
20522
- },
20523
- originalDocumentName: 'Screenshot 2023-06-01 at 16.07.06.png',
20524
- },
20525
- {
20526
- _links: {
20527
- self: { href: 'https://dm-store-aat.service.core-compute-aat.internal/documents/f50ccd7a-7f28-40f3-b5f9-7ad2f6425506' },
20528
- binary: { href: 'https://dm-store-aat.service.core-compute-aat.internal/documents/f50ccd7a-7f28-40f3-b5f9-7ad2f6425506/binary' },
20612
+ id: 'ccd-message-id-001',
20613
+ value: {
20614
+ id: 'case-message-001',
20615
+ subject: 'Review attached document',
20616
+ name: 'Maggie Conroy',
20617
+ body: 'Please review attached document and advise if hearing should proceed?',
20618
+ attachments: [
20619
+ {
20620
+ id: 'ccd-document-id-001',
20621
+ value: {
20622
+ document_filename: 'Screenshot 2023-06-01 at 16.07.06.png',
20623
+ document_url: 'https://dm-store-aat.service.core-compute-aat.internal/documents/e5366837-b3f6-492d-acbf-548730625e8f',
20624
+ document_binary_url: 'https://dm-store-aat.service.core-compute-aat.internal/documents/e5366837-b3f6-492d-acbf-548730625e8f/binary'
20625
+ }
20529
20626
  },
20530
- originalDocumentName: 'dummy.pdf',
20531
- }
20532
- ],
20533
- isHearingRelated: true,
20534
- hearingDate: '10 Jan 2023',
20535
- createdOn: new Date(2023, 0, 3),
20536
- createdBy: '1111-1111-1111-1111'
20627
+ {
20628
+ id: 'ccd-document-id-002',
20629
+ value: {
20630
+ document_filename: 'dummy.pdf',
20631
+ document_url: 'https://dm-store-aat.service.core-compute-aat.internal/documents/f50ccd7a-7f28-40f3-b5f9-7ad2f6425506',
20632
+ document_binary_url: 'https://dm-store-aat.service.core-compute-aat.internal/documents/f50ccd7a-7f28-40f3-b5f9-7ad2f6425506/binary'
20633
+ }
20634
+ }
20635
+ ],
20636
+ isHearingRelated: 'Yes',
20637
+ hearingDate: '2023-01-10',
20638
+ createdOn: new Date(2023, 0, 3),
20639
+ createdBy: '1111-1111-1111-1111'
20640
+ }
20537
20641
  },
20538
20642
  {
20539
- id: 'case-message-002',
20540
- subject: 'Games',
20541
- name: 'Maggie Conroy',
20542
- body: 'Can I play games in my phone when my solicitor is talking?',
20543
- attachments: [
20544
- {
20545
- _links: {
20546
- self: { href: '/' },
20547
- binary: { href: '/' },
20548
- },
20549
- originalDocumentName: 'talking-document.pdf',
20550
- }
20551
- ],
20552
- isHearingRelated: true,
20553
- hearingDate: '10 Jan 2023',
20554
- createdOn: new Date(2023, 0, 3),
20555
- createdBy: '1111-1111-1111-1111'
20643
+ id: 'ccd-message-id-001',
20644
+ value: {
20645
+ id: 'case-message-002',
20646
+ subject: 'Games',
20647
+ name: 'Maggie Conroy',
20648
+ body: 'Can I play games in my phone when my solicitor is talking?',
20649
+ attachments: [
20650
+ {
20651
+ id: 'ccd-document-id-003',
20652
+ value: {
20653
+ document_filename: 'talking-document.pdf',
20654
+ document_url: '/',
20655
+ document_binary_url: '/'
20656
+ }
20657
+ }
20658
+ ],
20659
+ isHearingRelated: 'Yes',
20660
+ hearingDate: '2023-01-10',
20661
+ createdOn: new Date(2023, 0, 3),
20662
+ createdBy: '1111-1111-1111-1111'
20663
+ }
20556
20664
  },
20557
20665
  {
20558
- id: 'case-message-011',
20559
- name: 'John Smith',
20560
- body: 'Using mobile phone is strictly prohibited in the court room.',
20561
- attachments: [
20562
- {
20563
- _links: {
20564
- self: { href: '/' },
20565
- binary: { href: '/' },
20566
- },
20567
- originalDocumentName: 'games-document.pdf',
20568
- }
20569
- ],
20570
- isHearingRelated: true,
20571
- hearingDate: '10 Jan 2023',
20572
- createdOn: new Date(2023, 2, 4),
20573
- createdBy: '2222-2222-2222-2222',
20574
- parentId: 'case-message-002'
20666
+ id: 'ccd-message-id-003',
20667
+ value: {
20668
+ id: 'case-message-003',
20669
+ name: 'John Smith',
20670
+ body: 'Using mobile phone is strictly prohibited in the court room.',
20671
+ attachments: [
20672
+ {
20673
+ id: 'ccd-document-id-004',
20674
+ value: {
20675
+ document_filename: 'games-document.pdf',
20676
+ document_url: '/',
20677
+ document_binary_url: '/'
20678
+ }
20679
+ }
20680
+ ],
20681
+ isHearingRelated: 'Yes',
20682
+ hearingDate: '2023-01-10',
20683
+ createdOn: new Date(2023, 2, 4),
20684
+ createdBy: '2222-2222-2222-2222',
20685
+ parentId: 'case-message-002'
20686
+ }
20575
20687
  },
20576
20688
  {
20577
- id: 'case-message-012',
20578
- name: 'Maggie Conroy',
20579
- body: 'Can I use a tablet instead?',
20580
- attachments: [],
20581
- isHearingRelated: true,
20582
- hearingDate: '10 Jan 2023',
20583
- createdOn: new Date(2023, 3, 8),
20584
- createdBy: '2222-2222-2222-2222',
20585
- parentId: 'case-message-002'
20689
+ id: 'ccd-message-id-004',
20690
+ value: {
20691
+ id: 'case-message-004',
20692
+ name: 'Maggie Conroy',
20693
+ body: 'Can I use a tablet instead?',
20694
+ attachments: [],
20695
+ isHearingRelated: 'Yes',
20696
+ hearingDate: '2023-01-10',
20697
+ createdOn: new Date(2023, 3, 8),
20698
+ createdBy: '2222-2222-2222-2222',
20699
+ parentId: 'case-message-003'
20700
+ }
20586
20701
  },
20587
20702
  {
20588
- id: 'case-message-013',
20589
- name: 'John Smith',
20590
- body: 'No, you cannot use a tablet either.',
20591
- attachments: [],
20592
- isHearingRelated: true,
20593
- hearingDate: '10 Jan 2023',
20594
- createdOn: new Date(2023, 4, 24),
20595
- createdBy: '2222-2222-2222-2222',
20596
- parentId: 'case-message-002'
20703
+ id: 'ccd-message-id-005',
20704
+ value: {
20705
+ id: 'case-message-005',
20706
+ name: 'John Smith',
20707
+ body: 'No, you cannot use a tablet either.',
20708
+ attachments: [],
20709
+ isHearingRelated: 'Yes',
20710
+ hearingDate: '2023-01-10',
20711
+ createdOn: new Date(2023, 4, 24),
20712
+ createdBy: '2222-2222-2222-2222',
20713
+ parentId: 'case-message-004'
20714
+ }
20597
20715
  }
20598
20716
  ]
20599
20717
  },
20600
20718
  {
20601
20719
  partyName: 'Kevin Peterson - Respondent',
20602
20720
  roleOnCase: null,
20603
- partyMessages: [
20721
+ caseMessages: [
20604
20722
  {
20605
- id: 'case-message-005',
20606
- subject: 'Add respondent detention order',
20607
- name: 'Maggie Conroy',
20608
- body: 'Please add respondent detention order to the file XX20230423-DX.',
20609
- attachments: [],
20610
- isHearingRelated: false,
20611
- createdOn: new Date(2023, 1, 5),
20612
- createdBy: '1111-1111-1111-1111'
20723
+ id: 'ccd-message-id-006',
20724
+ value: {
20725
+ id: 'case-message-006',
20726
+ subject: 'Add respondent detention order',
20727
+ name: 'Maggie Conroy',
20728
+ body: 'Please add respondent detention order to the file XX20230423-DX.',
20729
+ attachments: [],
20730
+ isHearingRelated: 'Yes',
20731
+ createdOn: new Date(2023, 1, 5),
20732
+ createdBy: '1111-1111-1111-1111'
20733
+ }
20613
20734
  },
20614
20735
  {
20615
- id: 'case-message-006',
20616
- name: 'Maggie Conroy',
20617
- body: 'I confirm that the respondent detention order is now added to the file XX20230423-DX.',
20618
- attachments: [],
20619
- isHearingRelated: false,
20620
- createdOn: new Date(2023, 1, 6),
20621
- createdBy: '2222-2222-2222-2222',
20622
- parentId: 'case-message-005'
20736
+ id: 'ccd-message-id-007',
20737
+ value: {
20738
+ id: 'case-message-007',
20739
+ name: 'Maggie Conroy',
20740
+ body: 'I confirm that the respondent detention order is now added to the file XX20230423-DX.',
20741
+ attachments: [],
20742
+ isHearingRelated: 'Yes',
20743
+ createdOn: new Date(2023, 1, 6),
20744
+ createdBy: '2222-2222-2222-2222',
20745
+ parentId: 'case-message-006'
20746
+ }
20623
20747
  },
20624
20748
  {
20625
- id: 'case-message-007',
20626
- subject: 'Food',
20627
- name: 'Maggie Conroy',
20628
- body: 'Can I eat in the hearings?',
20629
- attachments: [],
20630
- isHearingRelated: true,
20631
- hearingDate: '10 Jan 2023',
20632
- createdOn: new Date(2023, 0, 3),
20633
- createdBy: '1111-1111-1111-1111'
20749
+ id: 'ccd-message-id-008',
20750
+ value: {
20751
+ id: 'case-message-008',
20752
+ subject: 'Food',
20753
+ name: 'Maggie Conroy',
20754
+ body: 'Can I eat in the hearings?',
20755
+ attachments: [],
20756
+ isHearingRelated: 'Yes',
20757
+ hearingDate: '2023-01-10',
20758
+ createdOn: new Date(2023, 0, 3),
20759
+ createdBy: '1111-1111-1111-1111'
20760
+ }
20634
20761
  },
20635
20762
  {
20636
- id: 'case-message-008',
20637
- name: 'Maggie Conroy',
20638
- body: 'Consumption of food is not allowed when a hearing is taking place.',
20639
- attachments: [],
20640
- isHearingRelated: true,
20641
- hearingDate: '10 Jan 2023',
20642
- createdOn: new Date(2023, 0, 5),
20643
- createdBy: '2222-2222-2222-2222',
20644
- parentId: 'case-message-007'
20763
+ id: 'ccd-message-id-009',
20764
+ value: {
20765
+ id: 'case-message-009',
20766
+ name: 'Maggie Conroy',
20767
+ body: 'Consumption of food is not allowed when a hearing is taking place.',
20768
+ attachments: [],
20769
+ isHearingRelated: 'Yes',
20770
+ hearingDate: '2023-01-10',
20771
+ createdOn: new Date(2023, 0, 5),
20772
+ createdBy: '2222-2222-2222-2222',
20773
+ parentId: 'case-message-008'
20774
+ }
20645
20775
  },
20646
20776
  {
20647
- id: 'case-message-009',
20648
- subject: 'Bring relatives',
20649
- name: 'Maggie Conroy',
20650
- body: 'Can I bring my grandma with me so she get out from the residence?',
20651
- attachments: [],
20652
- isHearingRelated: true,
20653
- hearingDate: '10 Jan 2023',
20654
- createdOn: new Date(2023, 0, 6),
20655
- createdBy: '1111-1111-1111-1111'
20777
+ id: 'ccd-message-id-010',
20778
+ value: {
20779
+ id: 'case-message-010',
20780
+ subject: 'Bring relatives',
20781
+ name: 'Maggie Conroy',
20782
+ body: 'Can I bring my grandma with me so she get out from the residence?',
20783
+ attachments: [],
20784
+ isHearingRelated: 'Yes',
20785
+ hearingDate: '2023-01-10',
20786
+ createdOn: new Date(2023, 0, 6),
20787
+ createdBy: '1111-1111-1111-1111'
20788
+ }
20656
20789
  },
20657
20790
  {
20658
- id: 'case-message-010',
20659
- name: 'Maggie Conroy',
20660
- body: 'Sorry, only those required for the hearing should be present inside the court room.',
20661
- attachments: [],
20662
- isHearingRelated: true,
20663
- hearingDate: '10 Jan 2023',
20664
- createdOn: new Date(2023, 0, 7),
20665
- createdBy: '2222-2222-2222-2222',
20666
- parentId: 'case-message-009'
20791
+ id: 'ccd-message-id-011',
20792
+ value: {
20793
+ id: 'case-message-011',
20794
+ name: 'Maggie Conroy',
20795
+ body: 'Sorry, only those required for the hearing should be present inside the court room.',
20796
+ attachments: [],
20797
+ isHearingRelated: 'Yes',
20798
+ hearingDate: '2023-01-10',
20799
+ createdOn: new Date(2023, 0, 7),
20800
+ createdBy: '2222-2222-2222-2222',
20801
+ parentId: 'case-message-010'
20802
+ }
20667
20803
  }
20668
20804
  ]
20669
20805
  }
@@ -20991,6 +21127,15 @@
20991
21127
  }], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
20992
21128
  })();
20993
21129
 
21130
+ exports.QueryCreateContext = void 0;
21131
+ (function (QueryCreateContext) {
21132
+ QueryCreateContext["NEW_QUERY_QUALIFYING_QUESTION_OPTIONS"] = "NewQueryQualifyingQuestionOptions";
21133
+ QueryCreateContext["NEW_QUERY_QUALIFYING_QUESTION_DETAIL"] = "NewQueryQualifyingQuestionDetail";
21134
+ QueryCreateContext["NEW_QUERY"] = "NewQuery";
21135
+ QueryCreateContext["RESPOND"] = "Respond";
21136
+ QueryCreateContext["FOLLOWUP"] = "Followup";
21137
+ })(exports.QueryCreateContext || (exports.QueryCreateContext = {}));
21138
+
20994
21139
  var QueryListItem = /** @class */ (function () {
20995
21140
  function QueryListItem() {
20996
21141
  this.attachments = [];
@@ -21068,34 +21213,25 @@
21068
21213
  }());
21069
21214
 
21070
21215
  var QueryListData = /** @class */ (function () {
21071
- function QueryListData(partyMessagesGroup) {
21216
+ function QueryListData(caseQueriesCollection) {
21072
21217
  var _this = this;
21073
- this.partyName = partyMessagesGroup.partyName;
21074
- this.roleOnCase = partyMessagesGroup.roleOnCase;
21218
+ this.partyName = caseQueriesCollection.partyName;
21219
+ this.roleOnCase = caseQueriesCollection.roleOnCase;
21075
21220
  // get the parent messages (messages without parentId) and add the children to them
21076
- var parentMessages = partyMessagesGroup.partyMessages.filter(function (message) { return !message.parentId; });
21077
- this.partyMessages = parentMessages.map(function (message) { return _this.buildQueryListItem(message, partyMessagesGroup.partyMessages); });
21221
+ var parentMessages = caseQueriesCollection.caseMessages.filter(function (message) { return !message.value.parentId; });
21222
+ this.queries = parentMessages.map(function (message) { return _this.buildQueryListItem(message, caseQueriesCollection.caseMessages); });
21078
21223
  }
21079
21224
  QueryListData.prototype.buildQueryListItem = function (message, allMessages) {
21080
21225
  var _this = this;
21081
21226
  var queryListItem = new QueryListItem();
21082
- Object.assign(queryListItem, Object.assign(Object.assign({}, message), { children: allMessages
21083
- .filter(function (childMessage) { return childMessage.parentId === message.id; })
21227
+ Object.assign(queryListItem, Object.assign(Object.assign({}, message.value), { children: allMessages
21228
+ .filter(function (childMessage) { return childMessage.value.parentId === message.value.id; })
21084
21229
  .map(function (childMessage) { return _this.buildQueryListItem(childMessage, allMessages); }) }));
21085
21230
  return queryListItem;
21086
21231
  };
21087
21232
  return QueryListData;
21088
21233
  }());
21089
21234
 
21090
- exports.QueryCreateContext = void 0;
21091
- (function (QueryCreateContext) {
21092
- QueryCreateContext["NEW_QUERY_QUALIFYING_QUESTION_OPTIONS"] = "NewQueryQualifyingQuestionOptions";
21093
- QueryCreateContext["NEW_QUERY_QUALIFYING_QUESTION_DETAIL"] = "NewQueryQualifyingQuestionDetail";
21094
- QueryCreateContext["NEW_QUERY"] = "NewQuery";
21095
- QueryCreateContext["RESPOND"] = "Respond";
21096
- QueryCreateContext["FOLLOWUP"] = "Followup";
21097
- })(exports.QueryCreateContext || (exports.QueryCreateContext = {}));
21098
-
21099
21235
  function QueryCheckYourAnswersComponent_ng_container_2_Template(rf, ctx) {
21100
21236
  if (rf & 1) {
21101
21237
  i0__namespace.ɵɵelementContainerStart(0);
@@ -21131,9 +21267,22 @@
21131
21267
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(1, 1, "Review query details"), " ");
21132
21268
  }
21133
21269
  }
21270
+ function QueryCheckYourAnswersComponent_dl_9_a_8_Template(rf, ctx) {
21271
+ if (rf & 1) {
21272
+ var _r9_1 = i0__namespace.ɵɵgetCurrentView();
21273
+ i0__namespace.ɵɵelementStart(0, "a", 13);
21274
+ i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_dl_9_a_8_Template_a_click_0_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.goBack(); });
21275
+ i0__namespace.ɵɵtext(1);
21276
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
21277
+ i0__namespace.ɵɵelementEnd();
21278
+ }
21279
+ if (rf & 2) {
21280
+ i0__namespace.ɵɵadvance(1);
21281
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, "Change"), " ");
21282
+ }
21283
+ }
21134
21284
  function QueryCheckYourAnswersComponent_dl_9_Template(rf, ctx) {
21135
21285
  if (rf & 1) {
21136
- var _r8_1 = i0__namespace.ɵɵgetCurrentView();
21137
21286
  i0__namespace.ɵɵelementStart(0, "dl", 8);
21138
21287
  i0__namespace.ɵɵelementStart(1, "div", 9);
21139
21288
  i0__namespace.ɵɵelementStart(2, "dt", 10);
@@ -21144,11 +21293,7 @@
21144
21293
  i0__namespace.ɵɵtext(6);
21145
21294
  i0__namespace.ɵɵelementEnd();
21146
21295
  i0__namespace.ɵɵelementStart(7, "dd", 12);
21147
- i0__namespace.ɵɵelementStart(8, "a", 13);
21148
- i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_dl_9_Template_a_click_8_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var ctx_r7 = i0__namespace.ɵɵnextContext(); return ctx_r7.goBack(); });
21149
- i0__namespace.ɵɵtext(9);
21150
- i0__namespace.ɵɵpipe(10, "rpxTranslate");
21151
- i0__namespace.ɵɵelementEnd();
21296
+ i0__namespace.ɵɵtemplate(8, QueryCheckYourAnswersComponent_dl_9_a_8_Template, 3, 3, "a", 19);
21152
21297
  i0__namespace.ɵɵelementEnd();
21153
21298
  i0__namespace.ɵɵelementEnd();
21154
21299
  i0__namespace.ɵɵelementEnd();
@@ -21157,11 +21302,11 @@
21157
21302
  var ctx_r4 = i0__namespace.ɵɵnextContext();
21158
21303
  var tmp_1_0 = null;
21159
21304
  i0__namespace.ɵɵadvance(3);
21160
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 3, "Query subject"), " ");
21305
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r4.queryCreateContext === ctx_r4.queryCreateContextEnum.RESPOND ? "Submitted query" : i0__namespace.ɵɵpipeBind1(4, 3, "Query subject"), " ");
21161
21306
  i0__namespace.ɵɵadvance(3);
21162
- i0__namespace.ɵɵtextInterpolate1(" ", (tmp_1_0 = ctx_r4.formGroup.get("subject")) == null ? null : tmp_1_0.value, " ");
21163
- i0__namespace.ɵɵadvance(3);
21164
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(10, 5, "Change"), " ");
21307
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r4.queryCreateContext === ctx_r4.queryCreateContextEnum.RESPOND ? ctx_r4.queryItem.subject : (tmp_1_0 = ctx_r4.formGroup.get("subject")) == null ? null : tmp_1_0.value, " ");
21308
+ i0__namespace.ɵɵadvance(2);
21309
+ i0__namespace.ɵɵproperty("ngIf", ctx_r4.queryCreateContext === ctx_r4.queryCreateContextEnum.NEW_QUERY);
21165
21310
  }
21166
21311
  }
21167
21312
  function QueryCheckYourAnswersComponent_dl_21_ng_container_6_Template(rf, ctx) {
@@ -21187,7 +21332,7 @@
21187
21332
  }
21188
21333
  function QueryCheckYourAnswersComponent_dl_21_div_13_Template(rf, ctx) {
21189
21334
  if (rf & 1) {
21190
- var _r14_1 = i0__namespace.ɵɵgetCurrentView();
21335
+ var _r15_1 = i0__namespace.ɵɵgetCurrentView();
21191
21336
  i0__namespace.ɵɵelementStart(0, "div", 9);
21192
21337
  i0__namespace.ɵɵelementStart(1, "dt", 10);
21193
21338
  i0__namespace.ɵɵtext(2);
@@ -21199,7 +21344,7 @@
21199
21344
  i0__namespace.ɵɵelementEnd();
21200
21345
  i0__namespace.ɵɵelementStart(7, "dd", 12);
21201
21346
  i0__namespace.ɵɵelementStart(8, "a", 13);
21202
- i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_dl_21_div_13_Template_a_click_8_listener() { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r13 = i0__namespace.ɵɵnextContext(2); return ctx_r13.goBack(); });
21347
+ i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_dl_21_div_13_Template_a_click_8_listener() { i0__namespace.ɵɵrestoreView(_r15_1); var ctx_r14 = i0__namespace.ɵɵnextContext(2); return ctx_r14.goBack(); });
21203
21348
  i0__namespace.ɵɵtext(9);
21204
21349
  i0__namespace.ɵɵpipe(10, "rpxTranslate");
21205
21350
  i0__namespace.ɵɵelementEnd();
@@ -21207,19 +21352,19 @@
21207
21352
  i0__namespace.ɵɵelementEnd();
21208
21353
  }
21209
21354
  if (rf & 2) {
21210
- var ctx_r12 = i0__namespace.ɵɵnextContext(2);
21355
+ var ctx_r13 = i0__namespace.ɵɵnextContext(2);
21211
21356
  var tmp_1_0 = null;
21212
21357
  i0__namespace.ɵɵadvance(2);
21213
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r12.queryCreateContext === ctx_r12.queryCreateContextEnum.NEW_QUERY ? "What is the date of the hearing?" : i0__namespace.ɵɵpipeBind1(3, 3, "What is the date of the hearing your query is related to?"), " ");
21358
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r13.queryCreateContext === ctx_r13.queryCreateContextEnum.NEW_QUERY ? "What is the date of the hearing?" : i0__namespace.ɵɵpipeBind1(3, 3, "What is the date of the hearing your query is related to?"), " ");
21214
21359
  i0__namespace.ɵɵadvance(3);
21215
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(6, 5, (tmp_1_0 = ctx_r12.formGroup.get("hearingDate")) == null ? null : tmp_1_0.value, "dd MMM yyyy"), " ");
21360
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(6, 5, (tmp_1_0 = ctx_r13.formGroup.get("hearingDate")) == null ? null : tmp_1_0.value, "dd MMM yyyy"), " ");
21216
21361
  i0__namespace.ɵɵadvance(4);
21217
21362
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(10, 8, "Change"), " ");
21218
21363
  }
21219
21364
  }
21220
21365
  function QueryCheckYourAnswersComponent_dl_21_Template(rf, ctx) {
21221
21366
  if (rf & 1) {
21222
- var _r16_1 = i0__namespace.ɵɵgetCurrentView();
21367
+ var _r17_1 = i0__namespace.ɵɵgetCurrentView();
21223
21368
  i0__namespace.ɵɵelementStart(0, "dl", 8);
21224
21369
  i0__namespace.ɵɵelementStart(1, "div", 9);
21225
21370
  i0__namespace.ɵɵelementStart(2, "dt", 10);
@@ -21228,28 +21373,28 @@
21228
21373
  i0__namespace.ɵɵelementEnd();
21229
21374
  i0__namespace.ɵɵelementStart(5, "dd", 11);
21230
21375
  i0__namespace.ɵɵtemplate(6, QueryCheckYourAnswersComponent_dl_21_ng_container_6_Template, 3, 5, "ng-container", 4);
21231
- i0__namespace.ɵɵtemplate(7, QueryCheckYourAnswersComponent_dl_21_ng_template_7_Template, 2, 5, "ng-template", null, 19, i0__namespace.ɵɵtemplateRefExtractor);
21376
+ i0__namespace.ɵɵtemplate(7, QueryCheckYourAnswersComponent_dl_21_ng_template_7_Template, 2, 5, "ng-template", null, 20, i0__namespace.ɵɵtemplateRefExtractor);
21232
21377
  i0__namespace.ɵɵelementEnd();
21233
21378
  i0__namespace.ɵɵelementStart(9, "dd", 12);
21234
21379
  i0__namespace.ɵɵelementStart(10, "a", 13);
21235
- i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_dl_21_Template_a_click_10_listener() { i0__namespace.ɵɵrestoreView(_r16_1); var ctx_r15 = i0__namespace.ɵɵnextContext(); return ctx_r15.goBack(); });
21380
+ i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_dl_21_Template_a_click_10_listener() { i0__namespace.ɵɵrestoreView(_r17_1); var ctx_r16 = i0__namespace.ɵɵnextContext(); return ctx_r16.goBack(); });
21236
21381
  i0__namespace.ɵɵtext(11);
21237
21382
  i0__namespace.ɵɵpipe(12, "rpxTranslate");
21238
21383
  i0__namespace.ɵɵelementEnd();
21239
21384
  i0__namespace.ɵɵelementEnd();
21240
21385
  i0__namespace.ɵɵelementEnd();
21241
- i0__namespace.ɵɵtemplate(13, QueryCheckYourAnswersComponent_dl_21_div_13_Template, 11, 10, "div", 20);
21386
+ i0__namespace.ɵɵtemplate(13, QueryCheckYourAnswersComponent_dl_21_div_13_Template, 11, 10, "div", 21);
21242
21387
  i0__namespace.ɵɵelementEnd();
21243
21388
  }
21244
21389
  if (rf & 2) {
21245
- var _r10 = i0__namespace.ɵɵreference(8);
21390
+ var _r11 = i0__namespace.ɵɵreference(8);
21246
21391
  var ctx_r5 = i0__namespace.ɵɵnextContext();
21247
21392
  var tmp_1_0 = null;
21248
21393
  var tmp_4_0 = null;
21249
21394
  i0__namespace.ɵɵadvance(3);
21250
21395
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 5, "Is the query hearing related?"), " ");
21251
21396
  i0__namespace.ɵɵadvance(3);
21252
- i0__namespace.ɵɵproperty("ngIf", ((tmp_1_0 = ctx_r5.formGroup.get("isHearingRelated")) == null ? null : tmp_1_0.value) === true)("ngIfElse", _r10);
21397
+ i0__namespace.ɵɵproperty("ngIf", ((tmp_1_0 = ctx_r5.formGroup.get("isHearingRelated")) == null ? null : tmp_1_0.value) === true)("ngIfElse", _r11);
21253
21398
  i0__namespace.ɵɵadvance(5);
21254
21399
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(12, 7, "Change"), " ");
21255
21400
  i0__namespace.ɵɵadvance(2);
@@ -21258,7 +21403,7 @@
21258
21403
  }
21259
21404
  function QueryCheckYourAnswersComponent_ccd_query_attachments_read_28_Template(rf, ctx) {
21260
21405
  if (rf & 1) {
21261
- i0__namespace.ɵɵelement(0, "ccd-query-attachments-read", 21);
21406
+ i0__namespace.ɵɵelement(0, "ccd-query-attachments-read", 22);
21262
21407
  }
21263
21408
  if (rf & 2) {
21264
21409
  var ctx_r6 = i0__namespace.ɵɵnextContext();
@@ -21276,7 +21421,7 @@
21276
21421
  return QueryCheckYourAnswersComponent;
21277
21422
  }());
21278
21423
  QueryCheckYourAnswersComponent.ɵfac = function QueryCheckYourAnswersComponent_Factory(t) { return new (t || QueryCheckYourAnswersComponent)(); };
21279
- QueryCheckYourAnswersComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", queryCreateContext: "queryCreateContext" }, outputs: { backClicked: "backClicked" }, decls: 41, vars: 25, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], [4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfElse"], ["defaultCheckYourAnswersTitle", ""], [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"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "attachments", 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"], [1, "govuk-caption-l"], ["isHearingRelatedFalse", ""], ["class", "govuk-summary-list__row", 4, "ngIf"], [3, "attachments"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) {
21424
+ QueryCheckYourAnswersComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", queryCreateContext: "queryCreateContext" }, outputs: { backClicked: "backClicked" }, decls: 41, vars: 25, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], [4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfElse"], ["defaultCheckYourAnswersTitle", ""], [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"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "attachments", 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"], [1, "govuk-caption-l"], ["href", "javascript:void(0)", "class", "govuk-link", 3, "click", 4, "ngIf"], ["isHearingRelatedFalse", ""], ["class", "govuk-summary-list__row", 4, "ngIf"], [3, "attachments"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) {
21280
21425
  if (rf & 1) {
21281
21426
  i0__namespace.ɵɵelementStart(0, "div", 0);
21282
21427
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -21288,7 +21433,7 @@
21288
21433
  i0__namespace.ɵɵelementStart(7, "div", 6);
21289
21434
  i0__namespace.ɵɵelement(8, "ccd-query-case-details-header");
21290
21435
  i0__namespace.ɵɵelementEnd();
21291
- i0__namespace.ɵɵtemplate(9, QueryCheckYourAnswersComponent_dl_9_Template, 11, 7, "dl", 7);
21436
+ i0__namespace.ɵɵtemplate(9, QueryCheckYourAnswersComponent_dl_9_Template, 9, 5, "dl", 7);
21292
21437
  i0__namespace.ɵɵelementStart(10, "dl", 8);
21293
21438
  i0__namespace.ɵɵelementStart(11, "div", 9);
21294
21439
  i0__namespace.ɵɵelementStart(12, "dt", 10);
@@ -21349,9 +21494,9 @@
21349
21494
  i0__namespace.ɵɵadvance(2);
21350
21495
  i0__namespace.ɵɵproperty("ngIf", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND)("ngIfElse", _r2);
21351
21496
  i0__namespace.ɵɵadvance(5);
21352
- i0__namespace.ɵɵproperty("ngIf", ctx.queryCreateContext === ctx.queryCreateContextEnum.NEW_QUERY);
21497
+ i0__namespace.ɵɵproperty("ngIf", ctx.queryCreateContext !== ctx.queryCreateContextEnum.FOLLOWUP);
21353
21498
  i0__namespace.ɵɵadvance(4);
21354
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Response message" : i0__namespace.ɵɵpipeBind1(14, 13, "Query detail"), " ");
21499
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Response detail" : i0__namespace.ɵɵpipeBind1(14, 13, "Query detail"), " ");
21355
21500
  i0__namespace.ɵɵadvance(3);
21356
21501
  i0__namespace.ɵɵtextInterpolate1(" ", (tmp_5_0 = ctx.formGroup.get("body")) == null ? null : tmp_5_0.value, " ");
21357
21502
  i0__namespace.ɵɵadvance(3);
@@ -21389,7 +21534,7 @@
21389
21534
  }] });
21390
21535
  })();
21391
21536
 
21392
- function QueryDetailsTableComponent_ng_container_0_tr_40_Template(rf, ctx) {
21537
+ function QueryDetailsComponent_ng_container_0_tr_41_Template(rf, ctx) {
21393
21538
  if (rf & 1) {
21394
21539
  i0__namespace.ɵɵelementStart(0, "tr", 9);
21395
21540
  i0__namespace.ɵɵelementStart(1, "th", 5);
@@ -21407,203 +21552,86 @@
21407
21552
  i0__namespace.ɵɵadvance(2);
21408
21553
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "What is the date of the hearing?"));
21409
21554
  i0__namespace.ɵɵadvance(3);
21410
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(6, 4, ctx_r1.queryItem.hearingDate, "dd MMM yyyy"));
21555
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(6, 4, ctx_r1.query.hearingDate, "dd MMM yyyy"));
21411
21556
  }
21412
21557
  }
21413
- function QueryDetailsTableComponent_ng_container_0_ccd_query_attachments_read_46_Template(rf, ctx) {
21558
+ function QueryDetailsComponent_ng_container_0_ccd_query_attachments_read_47_Template(rf, ctx) {
21414
21559
  if (rf & 1) {
21415
21560
  i0__namespace.ɵɵelement(0, "ccd-query-attachments-read", 10);
21416
21561
  }
21417
21562
  if (rf & 2) {
21418
21563
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
21419
- i0__namespace.ɵɵproperty("attachments", ctx_r2.queryItem.attachments);
21564
+ i0__namespace.ɵɵproperty("attachments", ctx_r2.query.attachments);
21420
21565
  }
21421
21566
  }
21422
- function QueryDetailsTableComponent_ng_container_0_Template(rf, ctx) {
21567
+ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_container_1_tr_15_Template(rf, ctx) {
21423
21568
  if (rf & 1) {
21424
- i0__namespace.ɵɵelementContainerStart(0);
21425
- i0__namespace.ɵɵelementStart(1, "table", 1);
21426
- i0__namespace.ɵɵpipe(2, "rpxTranslate");
21427
- i0__namespace.ɵɵelementStart(3, "caption", 2);
21428
- i0__namespace.ɵɵelementStart(4, "div");
21429
- i0__namespace.ɵɵtext(5);
21430
- i0__namespace.ɵɵpipe(6, "rpxTranslate");
21431
- i0__namespace.ɵɵelementEnd();
21432
- i0__namespace.ɵɵelementEnd();
21433
- i0__namespace.ɵɵelementStart(7, "tbody", 3);
21434
- i0__namespace.ɵɵelementStart(8, "tr", 4);
21435
- i0__namespace.ɵɵelementStart(9, "th", 5);
21436
- i0__namespace.ɵɵtext(10);
21437
- i0__namespace.ɵɵpipe(11, "rpxTranslate");
21438
- i0__namespace.ɵɵelementEnd();
21439
- i0__namespace.ɵɵelementStart(12, "td", 6);
21440
- i0__namespace.ɵɵtext(13);
21441
- i0__namespace.ɵɵelementEnd();
21442
- i0__namespace.ɵɵelementEnd();
21443
- i0__namespace.ɵɵelementStart(14, "tr", 4);
21444
- i0__namespace.ɵɵelementStart(15, "th", 5);
21445
- i0__namespace.ɵɵtext(16);
21446
- i0__namespace.ɵɵpipe(17, "rpxTranslate");
21447
- i0__namespace.ɵɵelementEnd();
21448
- i0__namespace.ɵɵelementStart(18, "td", 6);
21449
- i0__namespace.ɵɵtext(19);
21450
- i0__namespace.ɵɵpipe(20, "date");
21451
- i0__namespace.ɵɵelementEnd();
21452
- i0__namespace.ɵɵelementEnd();
21453
- i0__namespace.ɵɵelementStart(21, "tr", 4);
21454
- i0__namespace.ɵɵelementStart(22, "th", 5);
21455
- i0__namespace.ɵɵtext(23);
21456
- i0__namespace.ɵɵpipe(24, "rpxTranslate");
21457
- i0__namespace.ɵɵelementEnd();
21458
- i0__namespace.ɵɵelementStart(25, "td", 6);
21459
- i0__namespace.ɵɵtext(26);
21460
- i0__namespace.ɵɵelementEnd();
21461
- i0__namespace.ɵɵelementEnd();
21462
- i0__namespace.ɵɵelementStart(27, "tr", 4);
21463
- i0__namespace.ɵɵelementStart(28, "th", 5);
21464
- i0__namespace.ɵɵtext(29);
21465
- i0__namespace.ɵɵpipe(30, "rpxTranslate");
21466
- i0__namespace.ɵɵelementEnd();
21467
- i0__namespace.ɵɵelementStart(31, "td", 6);
21468
- i0__namespace.ɵɵtext(32);
21469
- i0__namespace.ɵɵelementEnd();
21470
- i0__namespace.ɵɵelementEnd();
21471
- i0__namespace.ɵɵelementStart(33, "tr", 4);
21472
- i0__namespace.ɵɵelementStart(34, "th", 5);
21473
- i0__namespace.ɵɵtext(35);
21474
- i0__namespace.ɵɵpipe(36, "rpxTranslate");
21475
- i0__namespace.ɵɵelementEnd();
21476
- i0__namespace.ɵɵelementStart(37, "td", 6);
21477
- i0__namespace.ɵɵtext(38);
21478
- i0__namespace.ɵɵpipe(39, "rpxTranslate");
21479
- i0__namespace.ɵɵelementEnd();
21480
- i0__namespace.ɵɵelementEnd();
21481
- i0__namespace.ɵɵtemplate(40, QueryDetailsTableComponent_ng_container_0_tr_40_Template, 7, 7, "tr", 7);
21482
- i0__namespace.ɵɵelementStart(41, "tr", 4);
21483
- i0__namespace.ɵɵelementStart(42, "th", 5);
21484
- i0__namespace.ɵɵtext(43);
21485
- i0__namespace.ɵɵpipe(44, "rpxTranslate");
21486
- i0__namespace.ɵɵelementEnd();
21487
- i0__namespace.ɵɵelementStart(45, "td", 6);
21488
- i0__namespace.ɵɵtemplate(46, QueryDetailsTableComponent_ng_container_0_ccd_query_attachments_read_46_Template, 1, 1, "ccd-query-attachments-read", 8);
21489
- i0__namespace.ɵɵelementEnd();
21569
+ i0__namespace.ɵɵelementStart(0, "tr", 4);
21570
+ i0__namespace.ɵɵelementStart(1, "th", 5);
21571
+ i0__namespace.ɵɵtext(2);
21572
+ i0__namespace.ɵɵpipe(3, "rpxTranslate");
21490
21573
  i0__namespace.ɵɵelementEnd();
21574
+ i0__namespace.ɵɵelementStart(4, "td", 6);
21575
+ i0__namespace.ɵɵtext(5);
21491
21576
  i0__namespace.ɵɵelementEnd();
21492
21577
  i0__namespace.ɵɵelementEnd();
21493
- i0__namespace.ɵɵelementContainerEnd();
21494
21578
  }
21495
21579
  if (rf & 2) {
21496
- var ctx_r0 = i0__namespace.ɵɵnextContext();
21497
- i0__namespace.ɵɵadvance(1);
21498
- i0__namespace.ɵɵattribute("aria-describedby", i0__namespace.ɵɵpipeBind1(2, 19, "Details of the query"));
21499
- i0__namespace.ɵɵadvance(4);
21500
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(6, 21, "Query details"));
21501
- i0__namespace.ɵɵadvance(5);
21502
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(11, 23, "Last submitted by"));
21503
- i0__namespace.ɵɵadvance(3);
21504
- i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.lastSubmittedBy);
21505
- i0__namespace.ɵɵadvance(3);
21506
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(17, 25, "Submission date"));
21507
- i0__namespace.ɵɵadvance(3);
21508
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(20, 27, ctx_r0.queryItem.createdOn, "dd MMM yyyy"));
21509
- i0__namespace.ɵɵadvance(4);
21510
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(24, 30, "Query subject"));
21511
- i0__namespace.ɵɵadvance(3);
21512
- i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.subject);
21513
- i0__namespace.ɵɵadvance(3);
21514
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(30, 32, "Query detail"));
21515
- i0__namespace.ɵɵadvance(3);
21516
- i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.body);
21517
- i0__namespace.ɵɵadvance(2);
21518
- i0__namespace.ɵɵclassProp("govuk-table__header--no-border", ctx_r0.queryItem.isHearingRelated);
21519
- i0__namespace.ɵɵadvance(1);
21520
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(36, 34, "Is the query hearing related?"), " ");
21521
- i0__namespace.ɵɵadvance(2);
21522
- i0__namespace.ɵɵclassProp("govuk-table__cell--no-border", ctx_r0.queryItem.isHearingRelated);
21523
- i0__namespace.ɵɵadvance(1);
21524
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(39, 36, "Is the query hearing related?", null, ctx_r0.queryItem.isHearingRelated ? "Yes" : "No"), "");
21580
+ var child_r5 = i0__namespace.ɵɵnextContext(2).$implicit;
21525
21581
  i0__namespace.ɵɵadvance(2);
21526
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.queryItem.isHearingRelated);
21527
- i0__namespace.ɵɵadvance(3);
21528
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(44, 40, "Attachments"));
21582
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Caseworker name"));
21529
21583
  i0__namespace.ɵɵadvance(3);
21530
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.queryItem.attachments);
21584
+ i0__namespace.ɵɵtextInterpolate(child_r5.name);
21531
21585
  }
21532
21586
  }
21533
- var QueryDetailsTableComponent = /** @class */ (function () {
21534
- function QueryDetailsTableComponent() {
21535
- }
21536
- return QueryDetailsTableComponent;
21537
- }());
21538
- QueryDetailsTableComponent.ɵfac = function QueryDetailsTableComponent_Factory(t) { return new (t || QueryDetailsTableComponent)(); };
21539
- QueryDetailsTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryDetailsTableComponent, selectors: [["ccd-query-details-table"]], inputs: { queryItem: "queryItem" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row govuk-table__row--isHearingRelated", 4, "ngIf"], [3, "attachments", 4, "ngIf"], [1, "govuk-table__row", "govuk-table__row--isHearingRelated"], [3, "attachments"]], template: function QueryDetailsTableComponent_Template(rf, ctx) {
21540
- if (rf & 1) {
21541
- i0__namespace.ɵɵtemplate(0, QueryDetailsTableComponent_ng_container_0_Template, 47, 42, "ng-container", 0);
21542
- }
21543
- if (rf & 2) {
21544
- i0__namespace.ɵɵproperty("ngIf", ctx.queryItem);
21545
- }
21546
- }, styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}.query-details-table[_ngcontent-%COMP%] .collection-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{border-bottom:none}.query-details-table[_ngcontent-%COMP%] .govuk-table__cell--no-border[_ngcontent-%COMP%], .query-details-table[_ngcontent-%COMP%] .govuk-table__header--no-border[_ngcontent-%COMP%]{border-bottom:0}"] });
21547
- (function () {
21548
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryDetailsTableComponent, [{
21549
- type: i0.Component,
21550
- args: [{
21551
- selector: 'ccd-query-details-table',
21552
- templateUrl: './query-details-table.component.html',
21553
- styleUrls: ['./query-details-table.component.scss']
21554
- }]
21555
- }], null, { queryItem: [{
21556
- type: i0.Input
21557
- }] });
21558
- })();
21559
-
21560
- function QueryDetailsComponent_ng_container_0_ng_container_7_ng_container_1_ng_container_1_ccd_query_attachments_read_26_Template(rf, ctx) {
21587
+ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_container_1_ccd_query_attachments_read_27_Template(rf, ctx) {
21561
21588
  if (rf & 1) {
21562
- i0__namespace.ɵɵelement(0, "ccd-query-attachments-read", 14);
21589
+ i0__namespace.ɵɵelement(0, "ccd-query-attachments-read", 10);
21563
21590
  }
21564
21591
  if (rf & 2) {
21565
21592
  var child_r5 = i0__namespace.ɵɵnextContext(2).$implicit;
21566
21593
  i0__namespace.ɵɵproperty("attachments", child_r5.attachments);
21567
21594
  }
21568
21595
  }
21569
- function QueryDetailsComponent_ng_container_0_ng_container_7_ng_container_1_ng_container_1_Template(rf, ctx) {
21596
+ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_container_1_Template(rf, ctx) {
21570
21597
  if (rf & 1) {
21571
21598
  i0__namespace.ɵɵelementContainerStart(0);
21572
- i0__namespace.ɵɵelementStart(1, "table", 7);
21599
+ i0__namespace.ɵɵelementStart(1, "table", 1);
21573
21600
  i0__namespace.ɵɵpipe(2, "rpxTranslate");
21574
- i0__namespace.ɵɵelementStart(3, "caption", 8);
21601
+ i0__namespace.ɵɵelementStart(3, "caption", 2);
21575
21602
  i0__namespace.ɵɵelementStart(4, "div");
21576
21603
  i0__namespace.ɵɵtext(5);
21577
21604
  i0__namespace.ɵɵpipe(6, "rpxTranslate");
21578
21605
  i0__namespace.ɵɵelementEnd();
21579
21606
  i0__namespace.ɵɵelementEnd();
21580
- i0__namespace.ɵɵelementStart(7, "tbody", 9);
21581
- i0__namespace.ɵɵelementStart(8, "tr", 10);
21582
- i0__namespace.ɵɵelementStart(9, "th", 11);
21607
+ i0__namespace.ɵɵelementStart(7, "tbody", 3);
21608
+ i0__namespace.ɵɵelementStart(8, "tr", 4);
21609
+ i0__namespace.ɵɵelementStart(9, "th", 5);
21583
21610
  i0__namespace.ɵɵtext(10);
21584
21611
  i0__namespace.ɵɵpipe(11, "rpxTranslate");
21585
21612
  i0__namespace.ɵɵelementEnd();
21586
- i0__namespace.ɵɵelementStart(12, "td", 12);
21613
+ i0__namespace.ɵɵelementStart(12, "td", 6);
21587
21614
  i0__namespace.ɵɵtext(13);
21588
21615
  i0__namespace.ɵɵpipe(14, "date");
21589
21616
  i0__namespace.ɵɵelementEnd();
21590
21617
  i0__namespace.ɵɵelementEnd();
21591
- i0__namespace.ɵɵelementStart(15, "tr", 10);
21592
- i0__namespace.ɵɵelementStart(16, "th", 11);
21593
- i0__namespace.ɵɵtext(17);
21594
- i0__namespace.ɵɵpipe(18, "rpxTranslate");
21618
+ i0__namespace.ɵɵtemplate(15, QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_container_1_tr_15_Template, 6, 4, "tr", 14);
21619
+ i0__namespace.ɵɵelementStart(16, "tr", 4);
21620
+ i0__namespace.ɵɵelementStart(17, "th", 5);
21621
+ i0__namespace.ɵɵtext(18);
21622
+ i0__namespace.ɵɵpipe(19, "rpxTranslate");
21595
21623
  i0__namespace.ɵɵelementEnd();
21596
- i0__namespace.ɵɵelementStart(19, "td", 12);
21597
- i0__namespace.ɵɵtext(20);
21624
+ i0__namespace.ɵɵelementStart(20, "td", 6);
21625
+ i0__namespace.ɵɵtext(21);
21598
21626
  i0__namespace.ɵɵelementEnd();
21599
21627
  i0__namespace.ɵɵelementEnd();
21600
- i0__namespace.ɵɵelementStart(21, "tr", 10);
21601
- i0__namespace.ɵɵelementStart(22, "th", 11);
21602
- i0__namespace.ɵɵtext(23);
21603
- i0__namespace.ɵɵpipe(24, "rpxTranslate");
21628
+ i0__namespace.ɵɵelementStart(22, "tr", 4);
21629
+ i0__namespace.ɵɵelementStart(23, "th", 5);
21630
+ i0__namespace.ɵɵtext(24);
21631
+ i0__namespace.ɵɵpipe(25, "rpxTranslate");
21604
21632
  i0__namespace.ɵɵelementEnd();
21605
- i0__namespace.ɵɵelementStart(25, "td", 12);
21606
- i0__namespace.ɵɵtemplate(26, QueryDetailsComponent_ng_container_0_ng_container_7_ng_container_1_ng_container_1_ccd_query_attachments_read_26_Template, 1, 1, "ccd-query-attachments-read", 13);
21633
+ i0__namespace.ɵɵelementStart(26, "td", 6);
21634
+ i0__namespace.ɵɵtemplate(27, QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_container_1_ccd_query_attachments_read_27_Template, 1, 1, "ccd-query-attachments-read", 8);
21607
21635
  i0__namespace.ɵɵelementEnd();
21608
21636
  i0__namespace.ɵɵelementEnd();
21609
21637
  i0__namespace.ɵɵelementEnd();
@@ -21612,60 +21640,63 @@
21612
21640
  }
21613
21641
  if (rf & 2) {
21614
21642
  var child_r5 = i0__namespace.ɵɵnextContext().$implicit;
21643
+ var ctx_r7 = i0__namespace.ɵɵnextContext(3);
21615
21644
  i0__namespace.ɵɵadvance(1);
21616
- i0__namespace.ɵɵattribute("aria-describedby", i0__namespace.ɵɵpipeBind1(2, 8, "Response of the query"));
21645
+ i0__namespace.ɵɵattribute("aria-describedby", i0__namespace.ɵɵpipeBind1(2, 9, "Response of the query"));
21617
21646
  i0__namespace.ɵɵadvance(4);
21618
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(6, 10, "Response"));
21647
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(6, 11, "Response"));
21619
21648
  i0__namespace.ɵɵadvance(5);
21620
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(11, 12, "Last response date"));
21649
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(11, 13, "Last response date"));
21621
21650
  i0__namespace.ɵɵadvance(3);
21622
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(14, 14, child_r5.createdOn, "dd MMM yyyy"));
21623
- i0__namespace.ɵɵadvance(4);
21624
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(18, 17, "Response detail"));
21651
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(14, 15, child_r5.createdOn, "dd MMM yyyy"));
21652
+ i0__namespace.ɵɵadvance(2);
21653
+ i0__namespace.ɵɵproperty("ngIf", ctx_r7.isCaseworker());
21654
+ i0__namespace.ɵɵadvance(3);
21655
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(19, 18, "Response detail"));
21625
21656
  i0__namespace.ɵɵadvance(3);
21626
21657
  i0__namespace.ɵɵtextInterpolate(child_r5.body);
21627
21658
  i0__namespace.ɵɵadvance(3);
21628
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(24, 19, "Attachments"));
21659
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(25, 20, "Attachments"));
21629
21660
  i0__namespace.ɵɵadvance(3);
21630
21661
  i0__namespace.ɵɵproperty("ngIf", child_r5.attachments);
21631
21662
  }
21632
21663
  }
21633
- function QueryDetailsComponent_ng_container_0_ng_container_7_ng_container_1_ng_template_2_Template(rf, ctx) {
21664
+ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_template_2_Template(rf, ctx) {
21634
21665
  if (rf & 1) {
21635
- i0__namespace.ɵɵelementStart(0, "table", 7);
21666
+ i0__namespace.ɵɵelementStart(0, "table", 1);
21636
21667
  i0__namespace.ɵɵpipe(1, "rpxTranslate");
21637
- i0__namespace.ɵɵelementStart(2, "caption", 8);
21668
+ i0__namespace.ɵɵelementStart(2, "caption", 2);
21638
21669
  i0__namespace.ɵɵelementStart(3, "div");
21639
21670
  i0__namespace.ɵɵtext(4);
21640
21671
  i0__namespace.ɵɵpipe(5, "rpxTranslate");
21641
21672
  i0__namespace.ɵɵelementEnd();
21642
21673
  i0__namespace.ɵɵelementEnd();
21643
- i0__namespace.ɵɵelementStart(6, "tbody", 9);
21644
- i0__namespace.ɵɵelementStart(7, "tr", 10);
21645
- i0__namespace.ɵɵelementStart(8, "th", 11);
21674
+ i0__namespace.ɵɵelementStart(6, "tbody", 3);
21675
+ i0__namespace.ɵɵelementStart(7, "tr", 4);
21676
+ i0__namespace.ɵɵelementStart(8, "th", 5);
21646
21677
  i0__namespace.ɵɵtext(9);
21647
21678
  i0__namespace.ɵɵpipe(10, "rpxTranslate");
21648
21679
  i0__namespace.ɵɵelementEnd();
21649
- i0__namespace.ɵɵelementStart(11, "td", 12);
21680
+ i0__namespace.ɵɵelementStart(11, "td", 6);
21650
21681
  i0__namespace.ɵɵtext(12);
21651
21682
  i0__namespace.ɵɵpipe(13, "date");
21652
21683
  i0__namespace.ɵɵelementEnd();
21653
21684
  i0__namespace.ɵɵelementEnd();
21654
- i0__namespace.ɵɵelementStart(14, "tr", 10);
21655
- i0__namespace.ɵɵelementStart(15, "th", 11);
21685
+ i0__namespace.ɵɵelementStart(14, "tr", 4);
21686
+ i0__namespace.ɵɵelementStart(15, "th", 5);
21656
21687
  i0__namespace.ɵɵtext(16);
21657
21688
  i0__namespace.ɵɵpipe(17, "rpxTranslate");
21658
21689
  i0__namespace.ɵɵelementEnd();
21659
- i0__namespace.ɵɵelementStart(18, "td", 12);
21690
+ i0__namespace.ɵɵelementStart(18, "td", 6);
21660
21691
  i0__namespace.ɵɵtext(19);
21661
21692
  i0__namespace.ɵɵelementEnd();
21662
21693
  i0__namespace.ɵɵelementEnd();
21663
- i0__namespace.ɵɵelementStart(20, "tr", 10);
21664
- i0__namespace.ɵɵelementStart(21, "th", 11);
21694
+ i0__namespace.ɵɵelementStart(20, "tr", 4);
21695
+ i0__namespace.ɵɵelementStart(21, "th", 5);
21665
21696
  i0__namespace.ɵɵtext(22);
21666
21697
  i0__namespace.ɵɵpipe(23, "rpxTranslate");
21667
21698
  i0__namespace.ɵɵelementEnd();
21668
- i0__namespace.ɵɵelementStart(24, "td", 12);
21699
+ i0__namespace.ɵɵelementStart(24, "td", 6);
21669
21700
  i0__namespace.ɵɵtext(25);
21670
21701
  i0__namespace.ɵɵelementEnd();
21671
21702
  i0__namespace.ɵɵelementEnd();
@@ -21691,11 +21722,11 @@
21691
21722
  i0__namespace.ɵɵtextInterpolate(child_r5.body);
21692
21723
  }
21693
21724
  }
21694
- function QueryDetailsComponent_ng_container_0_ng_container_7_ng_container_1_Template(rf, ctx) {
21725
+ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_Template(rf, ctx) {
21695
21726
  if (rf & 1) {
21696
21727
  i0__namespace.ɵɵelementContainerStart(0);
21697
- i0__namespace.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_7_ng_container_1_ng_container_1_Template, 27, 21, "ng-container", 3);
21698
- i0__namespace.ɵɵtemplate(2, QueryDetailsComponent_ng_container_0_ng_container_7_ng_container_1_ng_template_2_Template, 26, 21, "ng-template", null, 6, i0__namespace.ɵɵtemplateRefExtractor);
21728
+ i0__namespace.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_container_1_Template, 28, 22, "ng-container", 12);
21729
+ i0__namespace.ɵɵtemplate(2, QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_template_2_Template, 26, 21, "ng-template", null, 13, i0__namespace.ɵɵtemplateRefExtractor);
21699
21730
  i0__namespace.ɵɵelementContainerEnd();
21700
21731
  }
21701
21732
  if (rf & 2) {
@@ -21705,79 +21736,154 @@
21705
21736
  i0__namespace.ɵɵproperty("ngIf", i_r6 % 2 === 0)("ngIfElse", _r8);
21706
21737
  }
21707
21738
  }
21708
- function QueryDetailsComponent_ng_container_0_ng_container_7_Template(rf, ctx) {
21739
+ function QueryDetailsComponent_ng_container_0_ng_container_48_Template(rf, ctx) {
21709
21740
  if (rf & 1) {
21710
21741
  i0__namespace.ɵɵelementContainerStart(0);
21711
- i0__namespace.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_7_ng_container_1_Template, 4, 2, "ng-container", 5);
21742
+ i0__namespace.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_Template, 4, 2, "ng-container", 11);
21712
21743
  i0__namespace.ɵɵelementContainerEnd();
21713
21744
  }
21714
21745
  if (rf & 2) {
21715
- var ctx_r1 = i0__namespace.ɵɵnextContext(2);
21746
+ var ctx_r3 = i0__namespace.ɵɵnextContext(2);
21716
21747
  i0__namespace.ɵɵadvance(1);
21717
- i0__namespace.ɵɵproperty("ngForOf", ctx_r1.query.children);
21748
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r3.query.children);
21718
21749
  }
21719
21750
  }
21720
- function QueryDetailsComponent_ng_container_0_ng_template_8_Template(rf, ctx) {
21751
+ function QueryDetailsComponent_ng_container_0_Template(rf, ctx) {
21721
21752
  if (rf & 1) {
21722
- i0__namespace.ɵɵelementStart(0, "div");
21723
- i0__namespace.ɵɵelementStart(1, "p", 15);
21724
- i0__namespace.ɵɵtext(2);
21753
+ i0__namespace.ɵɵelementContainerStart(0);
21754
+ i0__namespace.ɵɵelementStart(1, "div");
21755
+ i0__namespace.ɵɵelementStart(2, "table", 1);
21725
21756
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
21757
+ i0__namespace.ɵɵelementStart(4, "caption", 2);
21758
+ i0__namespace.ɵɵelementStart(5, "div");
21759
+ i0__namespace.ɵɵtext(6);
21760
+ i0__namespace.ɵɵpipe(7, "rpxTranslate");
21726
21761
  i0__namespace.ɵɵelementEnd();
21727
- i0__namespace.ɵɵelementStart(4, "p");
21728
- i0__namespace.ɵɵtext(5);
21729
- i0__namespace.ɵɵpipe(6, "rpxTranslate");
21730
21762
  i0__namespace.ɵɵelementEnd();
21763
+ i0__namespace.ɵɵelementStart(8, "tbody", 3);
21764
+ i0__namespace.ɵɵelementStart(9, "tr", 4);
21765
+ i0__namespace.ɵɵelementStart(10, "th", 5);
21766
+ i0__namespace.ɵɵtext(11);
21767
+ i0__namespace.ɵɵpipe(12, "rpxTranslate");
21731
21768
  i0__namespace.ɵɵelementEnd();
21732
- }
21733
- if (rf & 2) {
21734
- i0__namespace.ɵɵadvance(2);
21735
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Your query is under review"));
21736
- i0__namespace.ɵɵadvance(3);
21737
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(6, 4, "Our team will read your query and will respond. Do not submit the same query more than once."));
21738
- }
21739
- }
21740
- function QueryDetailsComponent_ng_container_0_Template(rf, ctx) {
21741
- if (rf & 1) {
21742
- var _r15_1 = i0__namespace.ɵɵgetCurrentView();
21743
- i0__namespace.ɵɵelementContainerStart(0);
21744
- i0__namespace.ɵɵelement(1, "br");
21745
- i0__namespace.ɵɵelementStart(2, "p");
21746
- i0__namespace.ɵɵelementStart(3, "a", 1);
21747
- i0__namespace.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r15_1); var ctx_r14 = i0__namespace.ɵɵnextContext(); return ctx_r14.onBack(); });
21748
- i0__namespace.ɵɵtext(4);
21749
- i0__namespace.ɵɵpipe(5, "rpxTranslate");
21769
+ i0__namespace.ɵɵelementStart(13, "td", 6);
21770
+ i0__namespace.ɵɵtext(14);
21771
+ i0__namespace.ɵɵelementEnd();
21772
+ i0__namespace.ɵɵelementEnd();
21773
+ i0__namespace.ɵɵelementStart(15, "tr", 4);
21774
+ i0__namespace.ɵɵelementStart(16, "th", 5);
21775
+ i0__namespace.ɵɵtext(17);
21776
+ i0__namespace.ɵɵpipe(18, "rpxTranslate");
21777
+ i0__namespace.ɵɵelementEnd();
21778
+ i0__namespace.ɵɵelementStart(19, "td", 6);
21779
+ i0__namespace.ɵɵtext(20);
21780
+ i0__namespace.ɵɵpipe(21, "date");
21781
+ i0__namespace.ɵɵelementEnd();
21782
+ i0__namespace.ɵɵelementEnd();
21783
+ i0__namespace.ɵɵelementStart(22, "tr", 4);
21784
+ i0__namespace.ɵɵelementStart(23, "th", 5);
21785
+ i0__namespace.ɵɵtext(24);
21786
+ i0__namespace.ɵɵpipe(25, "rpxTranslate");
21787
+ i0__namespace.ɵɵelementEnd();
21788
+ i0__namespace.ɵɵelementStart(26, "td", 6);
21789
+ i0__namespace.ɵɵtext(27);
21790
+ i0__namespace.ɵɵelementEnd();
21791
+ i0__namespace.ɵɵelementEnd();
21792
+ i0__namespace.ɵɵelementStart(28, "tr", 4);
21793
+ i0__namespace.ɵɵelementStart(29, "th", 5);
21794
+ i0__namespace.ɵɵtext(30);
21795
+ i0__namespace.ɵɵpipe(31, "rpxTranslate");
21796
+ i0__namespace.ɵɵelementEnd();
21797
+ i0__namespace.ɵɵelementStart(32, "td", 6);
21798
+ i0__namespace.ɵɵtext(33);
21799
+ i0__namespace.ɵɵelementEnd();
21800
+ i0__namespace.ɵɵelementEnd();
21801
+ i0__namespace.ɵɵelementStart(34, "tr", 4);
21802
+ i0__namespace.ɵɵelementStart(35, "th", 5);
21803
+ i0__namespace.ɵɵtext(36);
21804
+ i0__namespace.ɵɵpipe(37, "rpxTranslate");
21805
+ i0__namespace.ɵɵelementEnd();
21806
+ i0__namespace.ɵɵelementStart(38, "td", 6);
21807
+ i0__namespace.ɵɵtext(39);
21808
+ i0__namespace.ɵɵpipe(40, "rpxTranslate");
21750
21809
  i0__namespace.ɵɵelementEnd();
21751
21810
  i0__namespace.ɵɵelementEnd();
21752
- i0__namespace.ɵɵelement(6, "ccd-query-details-table", 2);
21753
- i0__namespace.ɵɵtemplate(7, QueryDetailsComponent_ng_container_0_ng_container_7_Template, 2, 1, "ng-container", 3);
21754
- i0__namespace.ɵɵtemplate(8, QueryDetailsComponent_ng_container_0_ng_template_8_Template, 7, 6, "ng-template", null, 4, i0__namespace.ɵɵtemplateRefExtractor);
21811
+ i0__namespace.ɵɵtemplate(41, QueryDetailsComponent_ng_container_0_tr_41_Template, 7, 7, "tr", 7);
21812
+ i0__namespace.ɵɵelementStart(42, "tr", 4);
21813
+ i0__namespace.ɵɵelementStart(43, "th", 5);
21814
+ i0__namespace.ɵɵtext(44);
21815
+ i0__namespace.ɵɵpipe(45, "rpxTranslate");
21816
+ i0__namespace.ɵɵelementEnd();
21817
+ i0__namespace.ɵɵelementStart(46, "td", 6);
21818
+ i0__namespace.ɵɵtemplate(47, QueryDetailsComponent_ng_container_0_ccd_query_attachments_read_47_Template, 1, 1, "ccd-query-attachments-read", 8);
21819
+ i0__namespace.ɵɵelementEnd();
21820
+ i0__namespace.ɵɵelementEnd();
21821
+ i0__namespace.ɵɵelementEnd();
21822
+ i0__namespace.ɵɵelementEnd();
21823
+ i0__namespace.ɵɵelementEnd();
21824
+ i0__namespace.ɵɵtemplate(48, QueryDetailsComponent_ng_container_0_ng_container_48_Template, 2, 1, "ng-container", 0);
21755
21825
  i0__namespace.ɵɵelementContainerEnd();
21756
21826
  }
21757
21827
  if (rf & 2) {
21758
- var _r2 = i0__namespace.ɵɵreference(9);
21759
21828
  var ctx_r0 = i0__namespace.ɵɵnextContext();
21829
+ i0__namespace.ɵɵadvance(2);
21830
+ i0__namespace.ɵɵattribute("aria-describedby", i0__namespace.ɵɵpipeBind1(3, 20, "Details of the query"));
21760
21831
  i0__namespace.ɵɵadvance(4);
21761
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5, 4, "Back to queries"));
21832
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(7, 22, "Query details"));
21833
+ i0__namespace.ɵɵadvance(5);
21834
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(12, 24, "Last submitted by"));
21835
+ i0__namespace.ɵɵadvance(3);
21836
+ i0__namespace.ɵɵtextInterpolate(ctx_r0.query.lastSubmittedBy);
21837
+ i0__namespace.ɵɵadvance(3);
21838
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(18, 26, "Submission date"));
21839
+ i0__namespace.ɵɵadvance(3);
21840
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(21, 28, ctx_r0.query.createdOn, "dd MMM yyyy"));
21841
+ i0__namespace.ɵɵadvance(4);
21842
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(25, 31, "Query subject"));
21843
+ i0__namespace.ɵɵadvance(3);
21844
+ i0__namespace.ɵɵtextInterpolate(ctx_r0.query.subject);
21845
+ i0__namespace.ɵɵadvance(3);
21846
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(31, 33, "Query body"));
21847
+ i0__namespace.ɵɵadvance(3);
21848
+ i0__namespace.ɵɵtextInterpolate(ctx_r0.query.body);
21849
+ i0__namespace.ɵɵadvance(2);
21850
+ i0__namespace.ɵɵclassProp("govuk-table__header--no-border", ctx_r0.query.isHearingRelated);
21851
+ i0__namespace.ɵɵadvance(1);
21852
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(37, 35, "Is the query hearing related?"), " ");
21762
21853
  i0__namespace.ɵɵadvance(2);
21763
- i0__namespace.ɵɵproperty("queryItem", ctx_r0.query);
21854
+ i0__namespace.ɵɵclassProp("govuk-table__cell--no-border", ctx_r0.query.isHearingRelated);
21764
21855
  i0__namespace.ɵɵadvance(1);
21765
- i0__namespace.ɵɵproperty("ngIf", (ctx_r0.query.children == null ? null : ctx_r0.query.children.length) > 0)("ngIfElse", _r2);
21856
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(40, 37, "Is the query hearing related?", null, ctx_r0.query.isHearingRelated ? "Yes" : "No"), "");
21857
+ i0__namespace.ɵɵadvance(2);
21858
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.query.isHearingRelated);
21859
+ i0__namespace.ɵɵadvance(3);
21860
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(45, 41, "Attachments"));
21861
+ i0__namespace.ɵɵadvance(3);
21862
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.query.attachments);
21863
+ i0__namespace.ɵɵadvance(1);
21864
+ i0__namespace.ɵɵproperty("ngIf", (ctx_r0.query.children == null ? null : ctx_r0.query.children.length) > 0);
21766
21865
  }
21767
21866
  }
21768
21867
  var QueryDetailsComponent = /** @class */ (function () {
21769
- function QueryDetailsComponent() {
21868
+ function QueryDetailsComponent(sessionStorage) {
21869
+ this.sessionStorage = sessionStorage;
21770
21870
  this.backClicked = new i0.EventEmitter();
21771
21871
  }
21772
21872
  QueryDetailsComponent.prototype.onBack = function () {
21773
21873
  this.backClicked.emit(true);
21774
21874
  };
21875
+ QueryDetailsComponent.prototype.isCaseworker = function () {
21876
+ var userDetails = JSON.parse(this.sessionStorage.getItem('userDetails'));
21877
+ return userDetails && userDetails.roles
21878
+ && !(userDetails.roles.includes('pui-case-manager')
21879
+ || userDetails.roles.some(function (role) { return role.toLowerCase().includes('judge'); }));
21880
+ };
21775
21881
  return QueryDetailsComponent;
21776
21882
  }());
21777
- QueryDetailsComponent.ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(); };
21778
- QueryDetailsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query" }, outputs: { backClicked: "backClicked" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [3, "queryItem"], [4, "ngIf", "ngIfElse"], ["queryIsInReview", ""], [4, "ngFor", "ngForOf"], ["followUpMessage", ""], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], [3, "attachments", 4, "ngIf"], [3, "attachments"], [1, "govuk-!-font-weight-bold"]], template: function QueryDetailsComponent_Template(rf, ctx) {
21883
+ QueryDetailsComponent.ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
21884
+ QueryDetailsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId" }, outputs: { backClicked: "backClicked" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row govuk-table__row--isHearingRelated", 4, "ngIf"], [3, "attachments", 4, "ngIf"], [1, "govuk-table__row", "govuk-table__row--isHearingRelated"], [3, "attachments"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["followUpMessage", ""], ["class", "govuk-table__row", 4, "ngIf"]], template: function QueryDetailsComponent_Template(rf, ctx) {
21779
21885
  if (rf & 1) {
21780
- i0__namespace.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 10, 6, "ng-container", 0);
21886
+ i0__namespace.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 49, 43, "ng-container", 0);
21781
21887
  }
21782
21888
  if (rf & 2) {
21783
21889
  i0__namespace.ɵɵproperty("ngIf", ctx.query);
@@ -21791,10 +21897,12 @@
21791
21897
  templateUrl: './query-details.component.html',
21792
21898
  styleUrls: ['./query-details.component.scss']
21793
21899
  }]
21794
- }], null, { query: [{
21900
+ }], function () { return [{ type: SessionStorageService }]; }, { query: [{
21795
21901
  type: i0.Input
21796
21902
  }], backClicked: [{
21797
21903
  type: i0.Output
21904
+ }], caseId: [{
21905
+ type: i0.Input
21798
21906
  }] });
21799
21907
  })();
21800
21908
 
@@ -21895,7 +22003,7 @@
21895
22003
  i0__namespace.ɵɵadvance(3);
21896
22004
  i0__namespace.ɵɵproperty("ngForOf", ctx_r0.displayedColumns);
21897
22005
  i0__namespace.ɵɵadvance(2);
21898
- i0__namespace.ɵɵproperty("ngForOf", ctx_r0.queryListData.partyMessages);
22006
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r0.queryListData.queries);
21899
22007
  }
21900
22008
  }
21901
22009
  var QueryListComponent = /** @class */ (function () {
@@ -21911,9 +22019,9 @@
21911
22019
  }
21912
22020
  QueryListComponent.prototype.ngOnChanges = function (simpleChanges) {
21913
22021
  var _a;
21914
- var currentPartyMessageGroup = (_a = simpleChanges.partyMessageGroup) === null || _a === void 0 ? void 0 : _a.currentValue;
21915
- if (currentPartyMessageGroup) {
21916
- this.queryListData = new QueryListData(currentPartyMessageGroup);
22022
+ var currentCaseQueriesCollection = (_a = simpleChanges.caseQueriesCollection) === null || _a === void 0 ? void 0 : _a.currentValue;
22023
+ if (currentCaseQueriesCollection) {
22024
+ this.queryListData = new QueryListData(currentCaseQueriesCollection);
21917
22025
  }
21918
22026
  };
21919
22027
  QueryListComponent.prototype.sortTable = function (col) {
@@ -21947,24 +22055,24 @@
21947
22055
  };
21948
22056
  QueryListComponent.prototype.sort = function (col) {
21949
22057
  if (col.sortOrder === SortOrder.ASCENDING) {
21950
- this.queryListData.partyMessages.sort(function (a, b) { return (a[col.name] < b[col.name]) ? 1 : -1; });
22058
+ this.queryListData.queries.sort(function (a, b) { return (a[col.name] < b[col.name]) ? 1 : -1; });
21951
22059
  this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
21952
22060
  col.sortOrder = SortOrder.DESCENDING;
21953
22061
  }
21954
22062
  else {
21955
- this.queryListData.partyMessages.sort(function (a, b) { return (a[col.name] > b[col.name]) ? 1 : -1; });
22063
+ this.queryListData.queries.sort(function (a, b) { return (a[col.name] > b[col.name]) ? 1 : -1; });
21956
22064
  this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
21957
22065
  col.sortOrder = SortOrder.ASCENDING;
21958
22066
  }
21959
22067
  };
21960
22068
  QueryListComponent.prototype.sortDate = function (col) {
21961
22069
  if (col.sortOrder === SortOrder.ASCENDING) {
21962
- this.queryListData.partyMessages.sort(function (a, b) { return b[col.name] - a[col.name]; });
22070
+ this.queryListData.queries.sort(function (a, b) { return b[col.name] - a[col.name]; });
21963
22071
  this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
21964
22072
  col.sortOrder = SortOrder.DESCENDING;
21965
22073
  }
21966
22074
  else {
21967
- this.queryListData.partyMessages.sort(function (a, b) { return a[col.name] - b[col.name]; });
22075
+ this.queryListData.queries.sort(function (a, b) { return a[col.name] - b[col.name]; });
21968
22076
  this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
21969
22077
  col.sortOrder = SortOrder.ASCENDING;
21970
22078
  }
@@ -21972,7 +22080,7 @@
21972
22080
  return QueryListComponent;
21973
22081
  }());
21974
22082
  QueryListComponent.ɵfac = function QueryListComponent_Factory(t) { return new (t || QueryListComponent)(); };
21975
- QueryListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryListComponent, selectors: [["ccd-query-list"]], inputs: { partyMessageGroup: "partyMessageGroup" }, outputs: { selectedQuery: "selectedQuery" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-table", "query-list__table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__head"], [1, "govuk-table__row", "query-list__row"], ["scope", "col", "class", "govuk-table__header", 4, "ngFor", "ngForOf"], [1, "govuk-table__body"], ["class", "govuk-table__row query-list__row", 4, "ngFor", "ngForOf"], ["scope", "col", 1, "govuk-table__header"], ["type", "button", "aria-sort", "none", "href", "javascript:void(0)", 3, "click"], [1, "govuk-table__cell", "query-list__cell", "query-list__cell--first"], ["href", "javascript:void(0)", 3, "click"], [1, "govuk-table__cell", "query-list__cell"]], template: function QueryListComponent_Template(rf, ctx) {
22083
+ QueryListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryListComponent, selectors: [["ccd-query-list"]], inputs: { caseQueriesCollection: "caseQueriesCollection" }, outputs: { selectedQuery: "selectedQuery" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-table", "query-list__table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__head"], [1, "govuk-table__row", "query-list__row"], ["scope", "col", "class", "govuk-table__header", 4, "ngFor", "ngForOf"], [1, "govuk-table__body"], ["class", "govuk-table__row query-list__row", 4, "ngFor", "ngForOf"], ["scope", "col", 1, "govuk-table__header"], ["type", "button", "aria-sort", "none", "href", "javascript:void(0)", 3, "click"], [1, "govuk-table__cell", "query-list__cell", "query-list__cell--first"], ["href", "javascript:void(0)", 3, "click"], [1, "govuk-table__cell", "query-list__cell"]], template: function QueryListComponent_Template(rf, ctx) {
21976
22084
  if (rf & 1) {
21977
22085
  i0__namespace.ɵɵtemplate(0, QueryListComponent_ng_container_0_Template, 10, 3, "ng-container", 0);
21978
22086
  }
@@ -21988,7 +22096,7 @@
21988
22096
  templateUrl: './query-list.component.html',
21989
22097
  styleUrls: ['./query-list.component.scss']
21990
22098
  }]
21991
- }], null, { partyMessageGroup: [{
22099
+ }], null, { caseQueriesCollection: [{
21992
22100
  type: i0.Input
21993
22101
  }], selectedQuery: [{
21994
22102
  type: i0.Output
@@ -22481,10 +22589,10 @@
22481
22589
  }] });
22482
22590
  })();
22483
22591
 
22484
- function QueryWriteRespondToQueryComponent_p_27_Template(rf, ctx) {
22592
+ function QueryWriteRespondToQueryComponent_p_23_Template(rf, ctx) {
22485
22593
  if (rf & 1) {
22486
- i0__namespace.ɵɵelementStart(0, "p", 15);
22487
- i0__namespace.ɵɵelementStart(1, "span", 16);
22594
+ i0__namespace.ɵɵelementStart(0, "p", 13);
22595
+ i0__namespace.ɵɵelementStart(1, "span", 14);
22488
22596
  i0__namespace.ɵɵtext(2);
22489
22597
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
22490
22598
  i0__namespace.ɵɵelementEnd();
@@ -22500,7 +22608,6 @@
22500
22608
  i0__namespace.ɵɵtextInterpolate1("", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? ctx_r0.raiseQueryErrorMessages.RESPOND_QUERY_BODY : i0__namespace.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessages.QUERY_BODY), " ");
22501
22609
  }
22502
22610
  }
22503
- var _c0$B = function (a3) { return ["/", "cases", "case-details", a3, "tasks"]; };
22504
22611
  var QueryWriteRespondToQueryComponent = /** @class */ (function () {
22505
22612
  function QueryWriteRespondToQueryComponent(caseNotifier) {
22506
22613
  this.caseNotifier = caseNotifier;
@@ -22517,49 +22624,43 @@
22517
22624
  return QueryWriteRespondToQueryComponent;
22518
22625
  }());
22519
22626
  QueryWriteRespondToQueryComponent.ɵfac = function QueryWriteRespondToQueryComponent_Factory(t) { return new (t || QueryWriteRespondToQueryComponent)(i0__namespace.ɵɵdirectiveInject(CaseNotifier)); };
22520
- QueryWriteRespondToQueryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", queryCreateContext: "queryCreateContext", submitted: "submitted" }, decls: 30, vars: 26, consts: [[1, "govuk-!-margin-bottom-2"], ["href", "javascript:void(0)", 1, "govuk-back-link", "govuk-!-margin-top-0", 3, "routerLink"], [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", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], ["id", "body-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function QueryWriteRespondToQueryComponent_Template(rf, ctx) {
22627
+ QueryWriteRespondToQueryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", queryCreateContext: "queryCreateContext", submitted: "submitted" }, decls: 26, vars: 20, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-0"], [1, "govuk-!-margin-bottom-4"], [3, "query"], [1, "query-respond"], [1, "govuk-heading-m"], [3, "formGroup"], [1, "govuk-form-group", "body-textarea"], [1, "govuk-label-wrapper"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], ["id", "body-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function QueryWriteRespondToQueryComponent_Template(rf, ctx) {
22521
22628
  if (rf & 1) {
22522
22629
  i0__namespace.ɵɵelementStart(0, "div", 0);
22523
- i0__namespace.ɵɵelementStart(1, "a", 1);
22524
- i0__namespace.ɵɵtext(2);
22525
- i0__namespace.ɵɵpipe(3, "rpxTranslate");
22526
- i0__namespace.ɵɵelementEnd();
22527
- i0__namespace.ɵɵelementEnd();
22528
- i0__namespace.ɵɵelementStart(4, "div", 2);
22529
- i0__namespace.ɵɵelementStart(5, "div", 2);
22530
- i0__namespace.ɵɵelementStart(6, "div", 3);
22531
- i0__namespace.ɵɵtext(7);
22532
- i0__namespace.ɵɵpipe(8, "rpxTranslate");
22630
+ i0__namespace.ɵɵelementStart(1, "div", 0);
22631
+ i0__namespace.ɵɵelementStart(2, "div", 1);
22632
+ i0__namespace.ɵɵtext(3);
22633
+ i0__namespace.ɵɵpipe(4, "rpxTranslate");
22533
22634
  i0__namespace.ɵɵelementEnd();
22534
- i0__namespace.ɵɵelementStart(9, "h1", 4);
22535
- i0__namespace.ɵɵtext(10);
22536
- i0__namespace.ɵɵpipe(11, "rpxTranslate");
22635
+ i0__namespace.ɵɵelementStart(5, "h1", 2);
22636
+ i0__namespace.ɵɵtext(6);
22637
+ i0__namespace.ɵɵpipe(7, "rpxTranslate");
22537
22638
  i0__namespace.ɵɵelementEnd();
22538
22639
  i0__namespace.ɵɵelementEnd();
22539
- i0__namespace.ɵɵelementStart(12, "div", 5);
22540
- i0__namespace.ɵɵelement(13, "ccd-query-case-details-header");
22640
+ i0__namespace.ɵɵelementStart(8, "div", 3);
22641
+ i0__namespace.ɵɵelement(9, "ccd-query-case-details-header");
22541
22642
  i0__namespace.ɵɵelementEnd();
22542
- i0__namespace.ɵɵelementStart(14, "div");
22543
- i0__namespace.ɵɵelement(15, "ccd-query-details-table", 6);
22643
+ i0__namespace.ɵɵelementStart(10, "div");
22644
+ i0__namespace.ɵɵelement(11, "ccd-query-details", 4);
22544
22645
  i0__namespace.ɵɵelementEnd();
22545
22646
  i0__namespace.ɵɵelementEnd();
22546
- i0__namespace.ɵɵelementStart(16, "div", 7);
22547
- i0__namespace.ɵɵelementStart(17, "div");
22548
- i0__namespace.ɵɵelementStart(18, "h1", 8);
22549
- i0__namespace.ɵɵtext(19);
22550
- i0__namespace.ɵɵpipe(20, "rpxTranslate");
22647
+ i0__namespace.ɵɵelementStart(12, "div", 5);
22648
+ i0__namespace.ɵɵelementStart(13, "div");
22649
+ i0__namespace.ɵɵelementStart(14, "h1", 6);
22650
+ i0__namespace.ɵɵtext(15);
22651
+ i0__namespace.ɵɵpipe(16, "rpxTranslate");
22551
22652
  i0__namespace.ɵɵelementEnd();
22552
- i0__namespace.ɵɵelementStart(21, "div", 9);
22553
- i0__namespace.ɵɵelementStart(22, "div", 10);
22554
- i0__namespace.ɵɵelementStart(23, "div", 11);
22555
- i0__namespace.ɵɵelementStart(24, "label", 12);
22556
- i0__namespace.ɵɵtext(25);
22557
- i0__namespace.ɵɵpipe(26, "rpxTranslate");
22653
+ i0__namespace.ɵɵelementStart(17, "div", 7);
22654
+ i0__namespace.ɵɵelementStart(18, "div", 8);
22655
+ i0__namespace.ɵɵelementStart(19, "div", 9);
22656
+ i0__namespace.ɵɵelementStart(20, "label", 10);
22657
+ i0__namespace.ɵɵtext(21);
22658
+ i0__namespace.ɵɵpipe(22, "rpxTranslate");
22558
22659
  i0__namespace.ɵɵelementEnd();
22559
22660
  i0__namespace.ɵɵelementEnd();
22560
- i0__namespace.ɵɵtemplate(27, QueryWriteRespondToQueryComponent_p_27_Template, 6, 6, "p", 13);
22561
- i0__namespace.ɵɵelementStart(28, "textarea", 14);
22562
- i0__namespace.ɵɵtext(29, " ");
22661
+ i0__namespace.ɵɵtemplate(23, QueryWriteRespondToQueryComponent_p_23_Template, 6, 6, "p", 11);
22662
+ i0__namespace.ɵɵelementStart(24, "textarea", 12);
22663
+ i0__namespace.ɵɵtext(25, " ");
22563
22664
  i0__namespace.ɵɵelementEnd();
22564
22665
  i0__namespace.ɵɵelementEnd();
22565
22666
  i0__namespace.ɵɵelementEnd();
@@ -22567,31 +22668,27 @@
22567
22668
  i0__namespace.ɵɵelementEnd();
22568
22669
  }
22569
22670
  if (rf & 2) {
22671
+ var tmp_5_0 = null;
22570
22672
  var tmp_7_0 = null;
22571
- var tmp_9_0 = null;
22572
- var tmp_10_0 = null;
22573
- i0__namespace.ɵɵadvance(1);
22574
- i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction1(24, _c0$B, ctx.caseId));
22575
- i0__namespace.ɵɵadvance(1);
22576
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(3, 14, "Cancel and return to tasks"), " ");
22577
- i0__namespace.ɵɵadvance(5);
22578
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(8, 16, "Respond to query"));
22673
+ var tmp_8_0 = null;
22674
+ i0__namespace.ɵɵadvance(3);
22675
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 12, "Respond to a query"));
22579
22676
  i0__namespace.ɵɵadvance(3);
22580
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(11, 18, "Query details"));
22677
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(7, 14, "Query details"));
22581
22678
  i0__namespace.ɵɵadvance(5);
22582
- i0__namespace.ɵɵproperty("queryItem", ctx.queryItem);
22679
+ i0__namespace.ɵɵproperty("query", ctx.queryItem);
22583
22680
  i0__namespace.ɵɵadvance(4);
22584
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Respond to a query" : i0__namespace.ɵɵpipeBind1(20, 20, "Ask a follow-up question"), " ");
22681
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Respond to a query" : i0__namespace.ɵɵpipeBind1(16, 16, "Ask a follow-up question"), " ");
22585
22682
  i0__namespace.ɵɵadvance(2);
22586
22683
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
22587
22684
  i0__namespace.ɵɵadvance(1);
22588
- i0__namespace.ɵɵclassProp("govuk-form-group--error", ctx.submitted && ((tmp_7_0 = ctx.formGroup.get("body")) == null ? null : tmp_7_0.hasError("required")));
22685
+ i0__namespace.ɵɵclassProp("govuk-form-group--error", ctx.submitted && ((tmp_5_0 = ctx.formGroup.get("body")) == null ? null : tmp_5_0.hasError("required")));
22589
22686
  i0__namespace.ɵɵadvance(3);
22590
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Response message" : i0__namespace.ɵɵpipeBind1(26, 22, "Query Body"), " ");
22687
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Response detail" : i0__namespace.ɵɵpipeBind1(22, 18, "Query Body"), " ");
22591
22688
  i0__namespace.ɵɵadvance(2);
22592
- i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ((tmp_9_0 = ctx.formGroup.get("body")) == null ? null : tmp_9_0.hasError("required")));
22689
+ i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ((tmp_7_0 = ctx.formGroup.get("body")) == null ? null : tmp_7_0.hasError("required")));
22593
22690
  i0__namespace.ɵɵadvance(1);
22594
- i0__namespace.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ((tmp_10_0 = ctx.formGroup.get("body")) == null ? null : tmp_10_0.hasError("required")));
22691
+ i0__namespace.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ((tmp_8_0 = ctx.formGroup.get("body")) == null ? null : tmp_8_0.hasError("required")));
22595
22692
  i0__namespace.ɵɵproperty("formControlName", "body");
22596
22693
  }
22597
22694
  }, styles: [".query-respond[_ngcontent-%COMP%]{width:100%;max-width:720px}"] });
@@ -22693,43 +22790,108 @@
22693
22790
  }] });
22694
22791
  })();
22695
22792
 
22696
- function ReadQueryManagementFieldComponent_ng_container_1_div_1_Template(rf, ctx) {
22793
+ function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template(rf, ctx) {
22697
22794
  if (rf & 1) {
22698
- var _r5_1 = i0__namespace.ɵɵgetCurrentView();
22699
- i0__namespace.ɵɵelementStart(0, "div", 3);
22700
- i0__namespace.ɵɵelementStart(1, "ccd-query-list", 4);
22701
- i0__namespace.ɵɵlistener("selectedQuery", function ReadQueryManagementFieldComponent_ng_container_1_div_1_Template_ccd_query_list_selectedQuery_1_listener($event) { i0__namespace.ɵɵrestoreView(_r5_1); var ctx_r4 = i0__namespace.ɵɵnextContext(2); return ctx_r4.setQuery($event); });
22795
+ var _r7_1 = i0__namespace.ɵɵgetCurrentView();
22796
+ i0__namespace.ɵɵelementStart(0, "div", 4);
22797
+ i0__namespace.ɵɵelementStart(1, "ccd-query-list", 5);
22798
+ i0__namespace.ɵɵlistener("selectedQuery", function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template_ccd_query_list_selectedQuery_1_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r6 = i0__namespace.ɵɵnextContext(3); return ctx_r6.setQuery($event); });
22702
22799
  i0__namespace.ɵɵelementEnd();
22703
22800
  i0__namespace.ɵɵelementEnd();
22704
22801
  }
22705
22802
  if (rf & 2) {
22706
- var singlePartyMessageGroup_r2 = i0__namespace.ɵɵnextContext().$implicit;
22803
+ var caseQueriesCollection_r4 = i0__namespace.ɵɵnextContext().$implicit;
22707
22804
  i0__namespace.ɵɵadvance(1);
22708
- i0__namespace.ɵɵproperty("partyMessageGroup", singlePartyMessageGroup_r2);
22805
+ i0__namespace.ɵɵproperty("caseQueriesCollection", caseQueriesCollection_r4);
22709
22806
  }
22710
22807
  }
22711
- function ReadQueryManagementFieldComponent_ng_container_1_Template(rf, ctx) {
22808
+ function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_Template(rf, ctx) {
22712
22809
  if (rf & 1) {
22713
22810
  i0__namespace.ɵɵelementContainerStart(0);
22714
- i0__namespace.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_container_1_div_1_Template, 2, 1, "div", 2);
22811
+ i0__namespace.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template, 2, 1, "div", 3);
22812
+ i0__namespace.ɵɵelementContainerEnd();
22813
+ }
22814
+ if (rf & 2) {
22815
+ var ctx_r3 = i0__namespace.ɵɵnextContext(2);
22816
+ i0__namespace.ɵɵadvance(1);
22817
+ i0__namespace.ɵɵproperty("ngIf", ctx_r3.showQueryList);
22818
+ }
22819
+ }
22820
+ function ReadQueryManagementFieldComponent_ng_container_0_Template(rf, ctx) {
22821
+ if (rf & 1) {
22822
+ i0__namespace.ɵɵelementContainerStart(0);
22823
+ i0__namespace.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_Template, 2, 1, "ng-container", 2);
22715
22824
  i0__namespace.ɵɵelementContainerEnd();
22716
22825
  }
22717
22826
  if (rf & 2) {
22718
22827
  var ctx_r0 = i0__namespace.ɵɵnextContext();
22719
22828
  i0__namespace.ɵɵadvance(1);
22720
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.showQueryList);
22829
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r0.caseQueriesCollections);
22721
22830
  }
22722
22831
  }
22723
- function ReadQueryManagementFieldComponent_ccd_query_details_2_Template(rf, ctx) {
22832
+ var _c0$B = function (a2) { return ["/query-management", "query", a2, "4"]; };
22833
+ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_6_Template(rf, ctx) {
22724
22834
  if (rf & 1) {
22725
- var _r8_1 = i0__namespace.ɵɵgetCurrentView();
22726
- i0__namespace.ɵɵelementStart(0, "ccd-query-details", 5);
22727
- i0__namespace.ɵɵlistener("backClicked", function ReadQueryManagementFieldComponent_ccd_query_details_2_Template_ccd_query_details_backClicked_0_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var ctx_r7 = i0__namespace.ɵɵnextContext(); return ctx_r7.showQueryList = true; });
22835
+ i0__namespace.ɵɵelementContainerStart(0);
22836
+ i0__namespace.ɵɵelementStart(1, "button", 9);
22837
+ i0__namespace.ɵɵtext(2);
22838
+ i0__namespace.ɵɵpipe(3, "rpxTranslate");
22728
22839
  i0__namespace.ɵɵelementEnd();
22840
+ i0__namespace.ɵɵelementContainerEnd();
22729
22841
  }
22730
22842
  if (rf & 2) {
22731
- var ctx_r1 = i0__namespace.ɵɵnextContext();
22732
- i0__namespace.ɵɵproperty("query", ctx_r1.query);
22843
+ var ctx_r9 = i0__namespace.ɵɵnextContext(2);
22844
+ i0__namespace.ɵɵadvance(1);
22845
+ i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction1(4, _c0$B, ctx_r9.caseId));
22846
+ i0__namespace.ɵɵadvance(1);
22847
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
22848
+ }
22849
+ }
22850
+ function ReadQueryManagementFieldComponent_ng_template_1_ng_template_7_Template(rf, ctx) {
22851
+ if (rf & 1) {
22852
+ i0__namespace.ɵɵelementStart(0, "div");
22853
+ i0__namespace.ɵɵelementStart(1, "p", 10);
22854
+ i0__namespace.ɵɵtext(2);
22855
+ i0__namespace.ɵɵpipe(3, "rpxTranslate");
22856
+ i0__namespace.ɵɵelementEnd();
22857
+ i0__namespace.ɵɵelementStart(4, "p");
22858
+ i0__namespace.ɵɵtext(5);
22859
+ i0__namespace.ɵɵpipe(6, "rpxTranslate");
22860
+ i0__namespace.ɵɵelementEnd();
22861
+ i0__namespace.ɵɵelementEnd();
22862
+ }
22863
+ if (rf & 2) {
22864
+ i0__namespace.ɵɵadvance(2);
22865
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Your query is under review"));
22866
+ i0__namespace.ɵɵadvance(3);
22867
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(6, 4, "Our team will read your query and will respond. Do not submit the same query more than once."));
22868
+ }
22869
+ }
22870
+ function ReadQueryManagementFieldComponent_ng_template_1_Template(rf, ctx) {
22871
+ if (rf & 1) {
22872
+ var _r13_1 = i0__namespace.ɵɵgetCurrentView();
22873
+ i0__namespace.ɵɵelement(0, "br");
22874
+ i0__namespace.ɵɵelementStart(1, "p");
22875
+ i0__namespace.ɵɵelementStart(2, "a", 6);
22876
+ i0__namespace.ɵɵtext(3);
22877
+ i0__namespace.ɵɵpipe(4, "rpxTranslate");
22878
+ i0__namespace.ɵɵelementEnd();
22879
+ i0__namespace.ɵɵelementEnd();
22880
+ i0__namespace.ɵɵelementStart(5, "ccd-query-details", 7);
22881
+ i0__namespace.ɵɵlistener("backClicked", function ReadQueryManagementFieldComponent_ng_template_1_Template_ccd_query_details_backClicked_5_listener() { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r12 = i0__namespace.ɵɵnextContext(); return ctx_r12.showQueryList = true; });
22882
+ i0__namespace.ɵɵelementEnd();
22883
+ i0__namespace.ɵɵtemplate(6, ReadQueryManagementFieldComponent_ng_template_1_ng_container_6_Template, 4, 6, "ng-container", 0);
22884
+ i0__namespace.ɵɵtemplate(7, ReadQueryManagementFieldComponent_ng_template_1_ng_template_7_Template, 7, 6, "ng-template", null, 8, i0__namespace.ɵɵtemplateRefExtractor);
22885
+ }
22886
+ if (rf & 2) {
22887
+ var _r10 = i0__namespace.ɵɵreference(8);
22888
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
22889
+ i0__namespace.ɵɵadvance(3);
22890
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 5, "Back to queries"));
22891
+ i0__namespace.ɵɵadvance(2);
22892
+ i0__namespace.ɵɵproperty("query", ctx_r2.query)("caseId", ctx_r2.caseId);
22893
+ i0__namespace.ɵɵadvance(1);
22894
+ i0__namespace.ɵɵproperty("ngIf", (ctx_r2.query == null ? null : ctx_r2.query.children == null ? null : ctx_r2.query.children.length) > 0)("ngIfElse", _r10);
22733
22895
  }
22734
22896
  }
22735
22897
  var ReadQueryManagementFieldComponent = /** @class */ (function (_super) {
@@ -22741,9 +22903,10 @@
22741
22903
  return _this;
22742
22904
  }
22743
22905
  ReadQueryManagementFieldComponent.prototype.ngOnInit = function () {
22906
+ this.caseId = this.route.snapshot.params.cid;
22744
22907
  if (this.context === exports.PaletteContext.DEFAULT) {
22745
22908
  // EUI-8303 Using mock data until CCD is ready with the API and data contract
22746
- this.partyMessagesGroups = partyMessagesMockData;
22909
+ this.caseQueriesCollections = caseMessagesMockData;
22747
22910
  // TODO: Actual implementation once the CCD API and data contract is available
22748
22911
  // Each parties will have a separate collection of party messages
22749
22912
  // Find whether queries tab is available in the case data
@@ -22761,18 +22924,14 @@
22761
22924
  return ReadQueryManagementFieldComponent;
22762
22925
  }(AbstractFieldReadComponent));
22763
22926
  ReadQueryManagementFieldComponent.ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute)); };
22764
- ReadQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [[4, "ngFor", "ngForOf"], [3, "query", "backClicked", 4, "ngIf"], ["class", "govuk-!-margin-top-8 govuk-!-margin-bottom-8", 4, "ngIf"], [1, "govuk-!-margin-top-8", "govuk-!-margin-bottom-8"], [3, "partyMessageGroup", "selectedQuery"], [3, "query", "backClicked"]], template: function ReadQueryManagementFieldComponent_Template(rf, ctx) {
22927
+ ReadQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [[4, "ngIf", "ngIfElse"], ["singleQueryDetails", ""], [4, "ngFor", "ngForOf"], ["class", "govuk-!-margin-top-8 govuk-!-margin-bottom-8", 4, "ngIf"], [1, "govuk-!-margin-top-8", "govuk-!-margin-bottom-8"], [3, "caseQueriesCollection", "selectedQuery"], ["href", "javascript:void(0)", 1, "govuk-link"], [3, "query", "caseId", "backClicked"], ["queryIsInReview", ""], ["id", "ask-follow-up-question", "data-module", "govuk-button", 1, "govuk-button", 3, "routerLink"], [1, "govuk-!-font-weight-bold"]], template: function ReadQueryManagementFieldComponent_Template(rf, ctx) {
22765
22928
  if (rf & 1) {
22766
- i0__namespace.ɵɵelementContainerStart(0);
22767
- i0__namespace.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_container_1_Template, 2, 1, "ng-container", 0);
22768
- i0__namespace.ɵɵtemplate(2, ReadQueryManagementFieldComponent_ccd_query_details_2_Template, 1, 1, "ccd-query-details", 1);
22769
- i0__namespace.ɵɵelementContainerEnd();
22929
+ i0__namespace.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 2, 1, "ng-container", 0);
22930
+ i0__namespace.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_Template, 9, 7, "ng-template", null, 1, i0__namespace.ɵɵtemplateRefExtractor);
22770
22931
  }
22771
22932
  if (rf & 2) {
22772
- i0__namespace.ɵɵadvance(1);
22773
- i0__namespace.ɵɵproperty("ngForOf", ctx.partyMessagesGroups);
22774
- i0__namespace.ɵɵadvance(1);
22775
- i0__namespace.ɵɵproperty("ngIf", !ctx.showQueryList);
22933
+ var _r1 = i0__namespace.ɵɵreference(2);
22934
+ i0__namespace.ɵɵproperty("ngIf", ctx.showQueryList)("ngIfElse", _r1);
22776
22935
  }
22777
22936
  }, encapsulation: 2 });
22778
22937
  (function () {
@@ -30526,7 +30685,6 @@
30526
30685
  ReadQueryManagementFieldComponent,
30527
30686
  QueryDetailsComponent,
30528
30687
  QueryListComponent,
30529
- QueryDetailsTableComponent,
30530
30688
  QueryWriteRespondToQueryComponent,
30531
30689
  QueryWriteRaiseQueryComponent,
30532
30690
  QueryCaseDetailsHeaderComponent,
@@ -30715,7 +30873,6 @@
30715
30873
  ReadQueryManagementFieldComponent,
30716
30874
  QueryDetailsComponent,
30717
30875
  QueryListComponent,
30718
- QueryDetailsTableComponent,
30719
30876
  QueryWriteRespondToQueryComponent,
30720
30877
  QueryWriteRaiseQueryComponent,
30721
30878
  QueryCaseDetailsHeaderComponent,
@@ -30865,7 +31022,6 @@
30865
31022
  ReadQueryManagementFieldComponent,
30866
31023
  QueryDetailsComponent,
30867
31024
  QueryListComponent,
30868
- QueryDetailsTableComponent,
30869
31025
  QueryWriteRespondToQueryComponent,
30870
31026
  QueryWriteRaiseQueryComponent,
30871
31027
  QueryCaseDetailsHeaderComponent,
@@ -31014,12 +31170,11 @@
31014
31170
  i0__namespace.ɵɵsetComponentScope(CheckYourAnswersComponent, [i5__namespace.NgIf, i5__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
31015
31171
  i0__namespace.ɵɵsetComponentScope(
31016
31172
  // Components for Query Management
31017
- ReadQueryManagementFieldComponent, [i5__namespace.NgForOf, i5__namespace.NgIf, QueryListComponent,
31018
- QueryDetailsComponent], []);
31019
- i0__namespace.ɵɵsetComponentScope(QueryDetailsComponent, [i5__namespace.NgIf, QueryDetailsTableComponent, i5__namespace.NgForOf, QueryAttachmentsReadComponent], [i1__namespace.RpxTranslatePipe, i5__namespace.DatePipe]);
31020
- i0__namespace.ɵɵsetComponentScope(QueryDetailsTableComponent, [i5__namespace.NgIf, QueryAttachmentsReadComponent], [i1__namespace.RpxTranslatePipe, i5__namespace.DatePipe]);
31021
- i0__namespace.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, [i1__namespace$1.RouterLinkWithHref, QueryCaseDetailsHeaderComponent,
31022
- QueryDetailsTableComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName], [i1__namespace.RpxTranslatePipe]);
31173
+ ReadQueryManagementFieldComponent, [i5__namespace.NgIf, i5__namespace.NgForOf, QueryListComponent,
31174
+ QueryDetailsComponent, i1__namespace$1.RouterLink], [i1__namespace.RpxTranslatePipe]);
31175
+ i0__namespace.ɵɵsetComponentScope(QueryDetailsComponent, [i5__namespace.NgIf, QueryAttachmentsReadComponent, i5__namespace.NgForOf], [i1__namespace.RpxTranslatePipe, i5__namespace.DatePipe]);
31176
+ i0__namespace.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, [QueryCaseDetailsHeaderComponent,
31177
+ QueryDetailsComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName], [i1__namespace.RpxTranslatePipe]);
31023
31178
  i0__namespace.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, [QueryCaseDetailsHeaderComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgClass, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName, i3__namespace.RadioControlValueAccessor, QueryWriteDateInputComponent], [i1__namespace.RpxTranslatePipe]);
31024
31179
  i0__namespace.ɵɵsetComponentScope(QueryCheckYourAnswersComponent, [i5__namespace.NgIf, QueryCaseDetailsHeaderComponent,
31025
31180
  QueryAttachmentsReadComponent], [i1__namespace.RpxTranslatePipe, i5__namespace.DatePipe]);
@@ -41411,7 +41566,6 @@
41411
41566
  exports.QueryCaseDetailsHeaderComponent = QueryCaseDetailsHeaderComponent;
41412
41567
  exports.QueryCheckYourAnswersComponent = QueryCheckYourAnswersComponent;
41413
41568
  exports.QueryDetailsComponent = QueryDetailsComponent;
41414
- exports.QueryDetailsTableComponent = QueryDetailsTableComponent;
41415
41569
  exports.QueryListComponent = QueryListComponent;
41416
41570
  exports.QueryListData = QueryListData;
41417
41571
  exports.QueryListItem = QueryListItem;
@@ -41528,6 +41682,7 @@
41528
41682
  exports.WriteYesNoFieldComponent = WriteYesNoFieldComponent;
41529
41683
  exports.YesNoService = YesNoService;
41530
41684
  exports.aCaseField = aCaseField;
41685
+ exports.caseMessagesMockData = caseMessagesMockData;
41531
41686
  exports.createACL = createACL;
41532
41687
  exports.createCaseEventTrigger = createCaseEventTrigger;
41533
41688
  exports.createCaseField = createCaseField;
@@ -41541,7 +41696,6 @@
41541
41696
  exports.editorRouting = editorRouting;
41542
41697
  exports.initDialog = initDialog;
41543
41698
  exports.newCaseField = newCaseField;
41544
- exports.partyMessagesMockData = partyMessagesMockData;
41545
41699
  exports.textFieldType = textFieldType;
41546
41700
  exports.viewerRouting = viewerRouting;
41547
41701