@hmcts/ccd-case-ui-toolkit 6.16.1-case-details-in-title → 6.16.1-rc2

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 (124) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +1144 -1258
  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/case-edit.component.js +272 -13
  6. package/esm2015/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.js +3 -3
  7. package/esm2015/lib/shared/components/case-editor/case-edit-generic-errors/case-edit-generic-errors.component.js +80 -0
  8. package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +200 -192
  9. package/esm2015/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +161 -410
  10. package/esm2015/lib/shared/components/case-editor/case-editor.module.js +20 -17
  11. package/esm2015/lib/shared/components/case-editor/services/cases.service.js +1 -1
  12. package/esm2015/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.js +11 -28
  13. package/esm2015/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.js +2 -4
  14. package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +56 -60
  15. package/esm2015/lib/shared/components/case-viewer/case-viewer.component.js +33 -15
  16. package/esm2015/lib/shared/components/error/callback-errors.component.js +1 -6
  17. package/esm2015/lib/shared/components/palette/base-field/field-read-label.component.js +1 -1
  18. package/esm2015/lib/shared/components/palette/base-field/field-write.component.js +1 -1
  19. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +79 -29
  20. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +1 -1
  21. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.js +1 -1
  22. package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.js +1 -1
  23. package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +22 -17
  24. package/esm2015/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.js +1 -1
  25. package/esm2015/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.js +2 -3
  26. package/esm2015/lib/shared/components/palette/index.js +2 -3
  27. package/esm2015/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.js +45 -22
  28. package/esm2015/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.js +2 -4
  29. package/esm2015/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.js +1 -1
  30. package/esm2015/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.js +2 -4
  31. package/esm2015/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.js +2 -4
  32. package/esm2015/lib/shared/components/palette/palette.module.js +27 -67
  33. package/esm2015/lib/shared/components/palette/palette.service.js +2 -4
  34. package/esm2015/lib/shared/directives/conditional-show/conditional-show-form.directive.js +2 -2
  35. package/esm2015/lib/shared/directives/conditional-show/services/condition-parser.service.js +4 -1
  36. package/esm2015/lib/shared/domain/case-edit/case-edit.model.js +2 -0
  37. package/esm2015/lib/shared/domain/case-edit/index.js +2 -0
  38. package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +1 -1
  39. package/esm2015/lib/shared/domain/definition/display-context-enum.model.js +1 -2
  40. package/esm2015/lib/shared/domain/index.js +2 -1
  41. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +1235 -1330
  42. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  43. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +65 -10
  44. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
  45. package/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.d.ts +0 -1
  46. package/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.d.ts.map +1 -1
  47. package/lib/shared/components/case-editor/case-edit-generic-errors/case-edit-generic-errors.component.d.ts +8 -0
  48. package/lib/shared/components/case-editor/case-edit-generic-errors/case-edit-generic-errors.component.d.ts.map +1 -0
  49. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +10 -9
  50. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  51. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +6 -56
  52. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
  53. package/lib/shared/components/case-editor/case-editor.module.d.ts +14 -13
  54. package/lib/shared/components/case-editor/case-editor.module.d.ts.map +1 -1
  55. package/lib/shared/components/case-editor/services/cases.service.d.ts.map +1 -1
  56. package/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.d.ts +1 -5
  57. package/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.d.ts.map +1 -1
  58. package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts.map +1 -1
  59. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +7 -7
  60. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
  61. package/lib/shared/components/case-viewer/case-viewer.component.d.ts +6 -3
  62. package/lib/shared/components/case-viewer/case-viewer.component.d.ts.map +1 -1
  63. package/lib/shared/components/error/callback-errors.component.d.ts +2 -3
  64. package/lib/shared/components/error/callback-errors.component.d.ts.map +1 -1
  65. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +9 -7
  66. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -1
  67. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +4 -1
  68. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
  69. package/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.d.ts.map +1 -1
  70. package/lib/shared/components/palette/index.d.ts +1 -2
  71. package/lib/shared/components/palette/index.d.ts.map +1 -1
  72. package/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.d.ts +10 -9
  73. package/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.d.ts.map +1 -1
  74. package/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.d.ts.map +1 -1
  75. package/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.d.ts.map +1 -1
  76. package/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.d.ts.map +1 -1
  77. package/lib/shared/components/palette/palette.module.d.ts +117 -122
  78. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  79. package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
  80. package/lib/shared/directives/conditional-show/services/condition-parser.service.d.ts.map +1 -1
  81. package/lib/shared/domain/case-edit/case-edit.model.d.ts +26 -0
  82. package/lib/shared/domain/case-edit/case-edit.model.d.ts.map +1 -0
  83. package/lib/shared/domain/case-edit/index.d.ts +2 -0
  84. package/lib/shared/domain/case-edit/index.d.ts.map +1 -0
  85. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts +1 -0
  86. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -1
  87. package/lib/shared/domain/definition/display-context-enum.model.d.ts +1 -2
  88. package/lib/shared/domain/definition/display-context-enum.model.d.ts.map +1 -1
  89. package/lib/shared/domain/index.d.ts +1 -0
  90. package/lib/shared/domain/index.d.ts.map +1 -1
  91. package/package.json +1 -1
  92. package/esm2015/lib/shared/components/palette/query-management/__mocks__/index.js +0 -112
  93. package/esm2015/lib/shared/components/palette/query-management/components/index.js +0 -4
  94. package/esm2015/lib/shared/components/palette/query-management/components/query-create/query-create.component.js +0 -18
  95. package/esm2015/lib/shared/components/palette/query-management/components/query-detail/query-detail.component.js +0 -18
  96. package/esm2015/lib/shared/components/palette/query-management/components/query-list/query-list.component.js +0 -20
  97. package/esm2015/lib/shared/components/palette/query-management/domain/index.js +0 -2
  98. package/esm2015/lib/shared/components/palette/query-management/domain/query-management.model.js +0 -2
  99. package/esm2015/lib/shared/components/palette/query-management/index.js +0 -6
  100. package/esm2015/lib/shared/components/palette/query-management/read-query-management-field.component.js +0 -43
  101. package/esm2015/lib/shared/components/palette/query-management/utils/query-management.utils.js +0 -12
  102. package/esm2015/lib/shared/components/palette/query-management/write-query-management-field.component.js +0 -20
  103. package/lib/shared/components/palette/query-management/__mocks__/index.d.ts +0 -3
  104. package/lib/shared/components/palette/query-management/__mocks__/index.d.ts.map +0 -1
  105. package/lib/shared/components/palette/query-management/components/index.d.ts +0 -4
  106. package/lib/shared/components/palette/query-management/components/index.d.ts.map +0 -1
  107. package/lib/shared/components/palette/query-management/components/query-create/query-create.component.d.ts +0 -9
  108. package/lib/shared/components/palette/query-management/components/query-create/query-create.component.d.ts.map +0 -1
  109. package/lib/shared/components/palette/query-management/components/query-detail/query-detail.component.d.ts +0 -9
  110. package/lib/shared/components/palette/query-management/components/query-detail/query-detail.component.d.ts.map +0 -1
  111. package/lib/shared/components/palette/query-management/components/query-list/query-list.component.d.ts +0 -11
  112. package/lib/shared/components/palette/query-management/components/query-list/query-list.component.d.ts.map +0 -1
  113. package/lib/shared/components/palette/query-management/domain/index.d.ts +0 -2
  114. package/lib/shared/components/palette/query-management/domain/index.d.ts.map +0 -1
  115. package/lib/shared/components/palette/query-management/domain/query-management.model.d.ts +0 -19
  116. package/lib/shared/components/palette/query-management/domain/query-management.model.d.ts.map +0 -1
  117. package/lib/shared/components/palette/query-management/index.d.ts +0 -6
  118. package/lib/shared/components/palette/query-management/index.d.ts.map +0 -1
  119. package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts +0 -14
  120. package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts.map +0 -1
  121. package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts +0 -7
  122. package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts.map +0 -1
  123. package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts +0 -10
  124. package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts.map +0 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('moment'), require('underscore'), require('pegjs'), require('util'), require('@edium/fsm'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/overlay'), require('@angular/cdk/tree'), require('@angular/material/input'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('ngx-md'), require('@hmcts/media-viewer'), require('@angular/cdk/portal'), require('ngx-pagination'), require('@angular/platform-browser'), require('@angular/material/tabs')) :
3
- typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'moment', 'underscore', 'pegjs', 'util', '@edium/fsm', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/overlay', '@angular/cdk/tree', '@angular/material/input', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', 'ngx-md', '@hmcts/media-viewer', '@angular/cdk/portal', 'ngx-pagination', '@angular/platform-browser', '@angular/material/tabs'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.moment, global.underscore, global.pegjs, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.overlay, global.ng.cdk.tree, global.ng.material.input, global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global["ngx-md"], global.i11, global.ng.cdk.portal, global["ngx-pagination"], global.ng.platformBrowser, global.ng.material.tabs));
5
- })(this, (function (exports, i0, i1, i1$1, i2, polling, rxjs, i1$2, operators, classTransformer, moment, _, pegjs, util, fsm, i1$3, i2$1, i5, i6, i3, i1$4, i7, i3$1, i4, momentAdapter, i5$1, i6$1, i1$5, i11, i6$2, i1$6, i3$2, i9) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('moment'), require('underscore'), require('pegjs'), require('util'), require('@edium/fsm'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/overlay'), require('@angular/cdk/tree'), require('@angular/material/input'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('ngx-md'), require('@hmcts/media-viewer'), require('@angular/cdk/portal'), require('ngx-pagination'), require('@angular/material/tabs')) :
3
+ typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'moment', 'underscore', 'pegjs', 'util', '@edium/fsm', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/overlay', '@angular/cdk/tree', '@angular/material/input', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', 'ngx-md', '@hmcts/media-viewer', '@angular/cdk/portal', 'ngx-pagination', '@angular/material/tabs'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.moment, global.underscore, global.pegjs, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.overlay, global.ng.cdk.tree, global.ng.material.input, global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global["ngx-md"], global.i11, global.ng.cdk.portal, global["ngx-pagination"], global.ng.material.tabs));
5
+ })(this, (function (exports, i0, i1, i1$1, i2, polling, rxjs, i1$2, operators, classTransformer, moment, _, pegjs, util, fsm, i1$3, i2$1, i4, i5, i3, i1$4, i7, i3$1, i4$1, momentAdapter, i5$1, i6, i1$5, i11, i6$1, i1$6, i9) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -34,20 +34,19 @@
34
34
  var ___namespace = /*#__PURE__*/_interopNamespace(_);
35
35
  var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
36
36
  var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
37
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
37
38
  var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
38
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
39
39
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
40
40
  var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
41
41
  var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
42
42
  var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
43
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
43
+ var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
44
44
  var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
45
- var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
45
+ var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
46
46
  var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
47
47
  var i11__namespace = /*#__PURE__*/_interopNamespace(i11);
48
- var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
48
+ var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
49
49
  var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
50
- var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
51
50
  var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
52
51
 
53
52
  function FooterComponent_div_2_Template(rf, ctx) {
@@ -4652,6 +4651,9 @@
4652
4651
  var _a = __read(path.split(/[_]+/g)), _ = _a[0], pathTail = _a.slice(1);
4653
4652
  return this.findValueForComplexCondition(fields[head], tail[0], tail.slice(1), pathTail.join('_'));
4654
4653
  }
4654
+ else if (!fields[head]) {
4655
+ return this.findValueForComplexCondition(fields, tail[0], tail.slice(1), path);
4656
+ }
4655
4657
  else {
4656
4658
  return this.findValueForComplexCondition(fields[head], tail[0], tail.slice(1), path);
4657
4659
  }
@@ -5207,7 +5209,7 @@
5207
5209
  if (cf.hidden === true && !control.disabled) {
5208
5210
  control.disable({ emitEvent: false });
5209
5211
  }
5210
- else if (cf.hidden !== true && control.disabled) {
5212
+ else if (cf.hidden !== true) {
5211
5213
  control.enable({ emitEvent: false });
5212
5214
  }
5213
5215
  }
@@ -8752,44 +8754,48 @@
8752
8754
  }] });
8753
8755
  })();
8754
8756
 
8755
- var ConvertHrefToRouterService = /** @class */ (function () {
8756
- function ConvertHrefToRouterService(router) {
8757
- this.router = router;
8758
- this.hrefMarkdownLinkContent = new rxjs.BehaviorSubject('Default');
8757
+ var Confirmation = /** @class */ (function () {
8758
+ function Confirmation(caseId, status, header, body) {
8759
+ this.caseId = caseId;
8760
+ this.status = status;
8761
+ this.header = header;
8762
+ this.body = body;
8759
8763
  }
8760
- ConvertHrefToRouterService.prototype.updateHrefLink = function (content) {
8761
- this.hrefMarkdownLinkContent.next(content);
8764
+ Confirmation.prototype.getCaseId = function () {
8765
+ return this.caseId;
8762
8766
  };
8763
- ConvertHrefToRouterService.prototype.getHrefMarkdownLinkContent = function () {
8764
- return this.hrefMarkdownLinkContent.asObservable();
8767
+ Confirmation.prototype.getStatus = function () {
8768
+ return this.status;
8765
8769
  };
8766
- ConvertHrefToRouterService.prototype.callAngularRouter = function (hrefMarkdownLinkContent) {
8767
- var urls = hrefMarkdownLinkContent.split('?');
8768
- var queryParams = urls[1];
8769
- var queryParamObj = {};
8770
- if (queryParams) {
8771
- var queryParam = queryParams.split('&');
8772
- if (queryParam[0]) {
8773
- // tslint:disable-next-line: prefer-for-of
8774
- for (var i = 0; i < queryParam.length; i++) {
8775
- var param = queryParam[i].split('=');
8776
- queryParamObj[param[0]] = param[1];
8777
- }
8778
- }
8779
- }
8780
- this.router.navigate([urls[0]], {
8781
- queryParams: queryParamObj && (Object.keys(queryParamObj).length) ? queryParamObj : ''
8782
- });
8770
+ Confirmation.prototype.getHeader = function () {
8771
+ return this.header;
8783
8772
  };
8784
- return ConvertHrefToRouterService;
8773
+ Confirmation.prototype.getBody = function () {
8774
+ return this.body;
8775
+ };
8776
+ return Confirmation;
8785
8777
  }());
8786
- ConvertHrefToRouterService.ɵfac = function ConvertHrefToRouterService_Factory(t) { return new (t || ConvertHrefToRouterService)(i0__namespace.ɵɵinject(i1__namespace$1.Router)); };
8787
- ConvertHrefToRouterService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: ConvertHrefToRouterService, factory: ConvertHrefToRouterService.ɵfac });
8788
- (function () {
8789
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ConvertHrefToRouterService, [{
8790
- type: i0.Injectable
8791
- }], function () { return [{ type: i1__namespace$1.Router }]; }, null);
8792
- })();
8778
+
8779
+ exports.EventCompletionReturnStates = void 0;
8780
+ (function (EventCompletionReturnStates) {
8781
+ EventCompletionReturnStates["InProgress"] = "in-progress";
8782
+ EventCompletionReturnStates["CompleteEvent"] = "complete-event";
8783
+ EventCompletionReturnStates["CancelEvent"] = "cancel-event";
8784
+ })(exports.EventCompletionReturnStates || (exports.EventCompletionReturnStates = {}));
8785
+
8786
+ exports.EventCompletionStates = void 0;
8787
+ (function (EventCompletionStates) {
8788
+ EventCompletionStates["CheckTasksCanBeCompleted"] = "check-tasks-can-be-completed";
8789
+ EventCompletionStates["CompleteEventAndTask"] = "complete-event-and-task";
8790
+ EventCompletionStates["CancelEvent"] = "cancel-event";
8791
+ EventCompletionStates["CompleteEventNotTask"] = "complete-event-not-task";
8792
+ EventCompletionStates["TaskCompetedOrCancelled"] = "task-completed-or-cancelled";
8793
+ EventCompletionStates["TaskAssignedToAnotherUser"] = "task-assigned-to-another-user";
8794
+ EventCompletionStates["TaskReassignToUser"] = "task-reassign-to-user";
8795
+ EventCompletionStates["TaskAssignToUser"] = "task-assign-to-user";
8796
+ EventCompletionStates["TaskUnassigned"] = "task-unassigned";
8797
+ EventCompletionStates["Final"] = "final";
8798
+ })(exports.EventCompletionStates || (exports.EventCompletionStates = {}));
8793
8799
 
8794
8800
  var Wizard = /** @class */ (function () {
8795
8801
  function Wizard(wizardPages) {
@@ -8848,6 +8854,45 @@
8848
8854
  return Wizard;
8849
8855
  }());
8850
8856
 
8857
+ var ConvertHrefToRouterService = /** @class */ (function () {
8858
+ function ConvertHrefToRouterService(router) {
8859
+ this.router = router;
8860
+ this.hrefMarkdownLinkContent = new rxjs.BehaviorSubject('Default');
8861
+ }
8862
+ ConvertHrefToRouterService.prototype.updateHrefLink = function (content) {
8863
+ this.hrefMarkdownLinkContent.next(content);
8864
+ };
8865
+ ConvertHrefToRouterService.prototype.getHrefMarkdownLinkContent = function () {
8866
+ return this.hrefMarkdownLinkContent.asObservable();
8867
+ };
8868
+ ConvertHrefToRouterService.prototype.callAngularRouter = function (hrefMarkdownLinkContent) {
8869
+ var urls = hrefMarkdownLinkContent.split('?');
8870
+ var queryParams = urls[1];
8871
+ var queryParamObj = {};
8872
+ if (queryParams) {
8873
+ var queryParam = queryParams.split('&');
8874
+ if (queryParam[0]) {
8875
+ // tslint:disable-next-line: prefer-for-of
8876
+ for (var i = 0; i < queryParam.length; i++) {
8877
+ var param = queryParam[i].split('=');
8878
+ queryParamObj[param[0]] = param[1];
8879
+ }
8880
+ }
8881
+ }
8882
+ this.router.navigate([urls[0]], {
8883
+ queryParams: queryParamObj && (Object.keys(queryParamObj).length) ? queryParamObj : ''
8884
+ });
8885
+ };
8886
+ return ConvertHrefToRouterService;
8887
+ }());
8888
+ ConvertHrefToRouterService.ɵfac = function ConvertHrefToRouterService_Factory(t) { return new (t || ConvertHrefToRouterService)(i0__namespace.ɵɵinject(i1__namespace$1.Router)); };
8889
+ ConvertHrefToRouterService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: ConvertHrefToRouterService, factory: ConvertHrefToRouterService.ɵfac });
8890
+ (function () {
8891
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ConvertHrefToRouterService, [{
8892
+ type: i0.Injectable
8893
+ }], function () { return [{ type: i1__namespace$1.Router }]; }, null);
8894
+ })();
8895
+
8851
8896
  var WizardFactoryService = /** @class */ (function () {
8852
8897
  function WizardFactoryService() {
8853
8898
  }
@@ -9040,20 +9085,6 @@
9040
9085
  EventCompletionPortalTypes[EventCompletionPortalTypes["TaskReassigned"] = 1] = "TaskReassigned";
9041
9086
  })(EventCompletionPortalTypes || (EventCompletionPortalTypes = {}));
9042
9087
 
9043
- exports.EventCompletionStates = void 0;
9044
- (function (EventCompletionStates) {
9045
- EventCompletionStates["CheckTasksCanBeCompleted"] = "check-tasks-can-be-completed";
9046
- EventCompletionStates["CompleteEventAndTask"] = "complete-event-and-task";
9047
- EventCompletionStates["CancelEvent"] = "cancel-event";
9048
- EventCompletionStates["CompleteEventNotTask"] = "complete-event-not-task";
9049
- EventCompletionStates["TaskCompetedOrCancelled"] = "task-completed-or-cancelled";
9050
- EventCompletionStates["TaskAssignedToAnotherUser"] = "task-assigned-to-another-user";
9051
- EventCompletionStates["TaskReassignToUser"] = "task-reassign-to-user";
9052
- EventCompletionStates["TaskAssignToUser"] = "task-assign-to-user";
9053
- EventCompletionStates["TaskUnassigned"] = "task-unassigned";
9054
- EventCompletionStates["Final"] = "final";
9055
- })(exports.EventCompletionStates || (exports.EventCompletionStates = {}));
9056
-
9057
9088
  var EVENT_COMPLETION_STATE_MACHINE = 'EVENT COMPLETION STATE MACHINE';
9058
9089
  var EventCompletionStateMachineService = /** @class */ (function () {
9059
9090
  function EventCompletionStateMachineService() {
@@ -9499,8 +9530,9 @@
9499
9530
  })();
9500
9531
 
9501
9532
  var CaseEditComponent = /** @class */ (function () {
9502
- function CaseEditComponent(fb, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService) {
9533
+ function CaseEditComponent(fb, caseNotifier, router, route, fieldsUtils, fieldsPurger, registrarService, wizardFactory, sessionStorageService, windowsService, formValueService, formErrorService, loadingService) {
9503
9534
  this.fb = fb;
9535
+ this.caseNotifier = caseNotifier;
9504
9536
  this.router = router;
9505
9537
  this.route = route;
9506
9538
  this.fieldsUtils = fieldsUtils;
@@ -9509,8 +9541,16 @@
9509
9541
  this.wizardFactory = wizardFactory;
9510
9542
  this.sessionStorageService = sessionStorageService;
9511
9543
  this.windowsService = windowsService;
9544
+ this.formValueService = formValueService;
9545
+ this.formErrorService = formErrorService;
9546
+ this.loadingService = loadingService;
9512
9547
  this.cancelled = new i0.EventEmitter();
9513
9548
  this.submitted = new i0.EventEmitter();
9549
+ this.isEventCompletionChecksRequired = false;
9550
+ this.isCaseFlagSubmission = false;
9551
+ this.ignoreWarning = false;
9552
+ this.isLinkedCasesSubmission = false;
9553
+ this.callbackErrorsSubject = new rxjs.Subject();
9514
9554
  }
9515
9555
  CaseEditComponent.prototype.ngOnInit = function () {
9516
9556
  var _this = this;
@@ -9518,6 +9558,7 @@
9518
9558
  this.initialUrl = this.sessionStorageService.getItem('eventUrl');
9519
9559
  this.isPageRefreshed = JSON.parse(this.sessionStorageService.getItem('isPageRefreshed'));
9520
9560
  this.checkPageRefresh();
9561
+ /* istanbul ignore else */
9521
9562
  if (this.router.url && !this.isPageRefreshed) {
9522
9563
  this.sessionStorageService.setItem('eventUrl', this.router.url);
9523
9564
  }
@@ -9533,6 +9574,12 @@
9533
9574
  _this.navigationOrigin = params[CaseEditComponent.ORIGIN_QUERY_PARAM];
9534
9575
  });
9535
9576
  };
9577
+ CaseEditComponent.prototype.ngOnDestroy = function () {
9578
+ /* istanbul ignore else */
9579
+ if (this.callbackErrorsSubject) {
9580
+ this.callbackErrorsSubject.unsubscribe();
9581
+ }
9582
+ };
9536
9583
  CaseEditComponent.prototype.checkPageRefresh = function () {
9537
9584
  if (this.isPageRefreshed && this.initialUrl) {
9538
9585
  this.sessionStorageService.removeItem('eventUrl');
@@ -9555,20 +9602,37 @@
9555
9602
  };
9556
9603
  CaseEditComponent.prototype.next = function (currentPageId) {
9557
9604
  this.initialUrl = this.sessionStorageService.getItem('eventUrl');
9605
+ /* istanbul ignore else */
9558
9606
  if (this.router.url && !this.initialUrl) {
9559
9607
  this.sessionStorageService.setItem('eventUrl', this.router.url);
9560
9608
  }
9561
9609
  this.fieldsPurger.clearHiddenFields(this.form, this.wizard, this.eventTrigger, currentPageId);
9610
+ var nextPage = this.getNextPage({
9611
+ currentPageId: currentPageId,
9612
+ wizard: this.wizard,
9613
+ eventTrigger: this.eventTrigger,
9614
+ form: this.form,
9615
+ });
9616
+ /* istanbul ignore else */
9617
+ if (!nextPage && !this.eventTrigger.show_summary && !this.eventTrigger.show_event_notes) {
9618
+ this.submitForm({
9619
+ eventTrigger: this.eventTrigger,
9620
+ form: this.form,
9621
+ submit: this.submit,
9622
+ caseDetails: this.caseDetails,
9623
+ });
9624
+ return;
9625
+ }
9562
9626
  this.registrarService.reset();
9563
9627
  var theQueryParams = {};
9564
9628
  theQueryParams[CaseEditComponent.ORIGIN_QUERY_PARAM] = this.navigationOrigin;
9565
- var nextPage = this.wizard.nextPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(this.eventTrigger, this.form));
9566
9629
  return this.router.navigate([nextPage ? nextPage.id : 'submit'], { queryParams: theQueryParams, relativeTo: this.route });
9567
9630
  };
9568
9631
  CaseEditComponent.prototype.previous = function (currentPageId) {
9569
9632
  this.fieldsPurger.clearHiddenFields(this.form, this.wizard, this.eventTrigger, currentPageId);
9570
9633
  this.registrarService.reset();
9571
9634
  var previousPage = this.wizard.previousPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(this.eventTrigger, this.form));
9635
+ /* istanbul ignore else */
9572
9636
  if (!previousPage) {
9573
9637
  return Promise.resolve(false);
9574
9638
  }
@@ -9582,15 +9646,245 @@
9582
9646
  CaseEditComponent.prototype.cancel = function () {
9583
9647
  this.cancelled.emit();
9584
9648
  };
9649
+ CaseEditComponent.prototype.emitSubmitted = function (response) {
9650
+ this.submitted.emit({ caseId: response['id'], status: this.getStatus(response) });
9651
+ };
9652
+ CaseEditComponent.prototype.getNextPage = function (_a) {
9653
+ var wizard = _a.wizard, currentPageId = _a.currentPageId, eventTrigger = _a.eventTrigger, form = _a.form;
9654
+ return wizard.nextPage(currentPageId, this.fieldsUtils.buildCanShowPredicate(eventTrigger, form));
9655
+ };
9585
9656
  CaseEditComponent.prototype.confirm = function (confirmation) {
9586
9657
  this.confirmation = confirmation;
9587
9658
  return this.router.navigate(['confirm'], { relativeTo: this.route });
9588
9659
  };
9660
+ CaseEditComponent.prototype.submitForm = function (_a) {
9661
+ var eventTrigger = _a.eventTrigger, form = _a.form, caseDetails = _a.caseDetails, submit = _a.submit;
9662
+ this.isSubmitting = true;
9663
+ // We have to run the event completion checks if task in session storage
9664
+ // and if the task is in session storage, then is it associated to the case
9665
+ var taskInSessionStorage;
9666
+ var taskStr = this.sessionStorageService.getItem('taskToComplete');
9667
+ if (taskStr) {
9668
+ taskInSessionStorage = JSON.parse(taskStr);
9669
+ }
9670
+ if (taskInSessionStorage && taskInSessionStorage.case_id === this.getCaseId(caseDetails)) {
9671
+ // Show event completion component to perform event completion checks
9672
+ this.eventCompletionParams = ({
9673
+ caseId: this.getCaseId(caseDetails),
9674
+ eventId: this.getEventId(form),
9675
+ task: taskInSessionStorage
9676
+ });
9677
+ this.isEventCompletionChecksRequired = true;
9678
+ }
9679
+ else {
9680
+ // Task not in session storage, proceed to submit
9681
+ var caseEventData = this.generateCaseEventData({
9682
+ eventTrigger: eventTrigger,
9683
+ form: form
9684
+ });
9685
+ this.caseSubmit({ form: form,
9686
+ caseEventData: caseEventData,
9687
+ submit: submit
9688
+ });
9689
+ }
9690
+ };
9691
+ CaseEditComponent.prototype.getCaseId = function (caseDetails) {
9692
+ return (caseDetails ? caseDetails.case_id : '');
9693
+ };
9694
+ CaseEditComponent.prototype.getEventId = function (form) {
9695
+ return form.value.event.id;
9696
+ };
9697
+ CaseEditComponent.prototype.generateCaseEventData = function (_a) {
9698
+ var eventTrigger = _a.eventTrigger, form = _a.form;
9699
+ var caseEventData = {
9700
+ data: this.replaceEmptyComplexFieldValues(this.formValueService.sanitise(this.replaceHiddenFormValuesWithOriginalCaseData(form.get('data'), eventTrigger.case_fields))),
9701
+ event: form.value.event
9702
+ };
9703
+ this.formValueService.clearNonCaseFields(caseEventData.data, eventTrigger.case_fields);
9704
+ this.formValueService.removeNullLabels(caseEventData.data, eventTrigger.case_fields);
9705
+ this.formValueService.removeEmptyDocuments(caseEventData.data, eventTrigger.case_fields);
9706
+ // Remove collection fields that have "min" validation of greater than zero set on the FieldType but are empty;
9707
+ // these will fail validation
9708
+ this.formValueService.removeEmptyCollectionsWithMinValidation(caseEventData.data, eventTrigger.case_fields);
9709
+ // If this is a Case Flag submission (and thus a FlagLauncher field is present in the event trigger), the flag
9710
+ // details data needs populating for each Flags field, then the FlagLauncher field needs removing
9711
+ if (this.isCaseFlagSubmission) {
9712
+ this.formValueService.populateFlagDetailsFromCaseFields(caseEventData.data, eventTrigger.case_fields);
9713
+ this.formValueService.removeFlagLauncherField(caseEventData.data, eventTrigger.case_fields);
9714
+ }
9715
+ if (this.isLinkedCasesSubmission) {
9716
+ this.formValueService.populateLinkedCasesDetailsFromCaseFields(caseEventData.data, eventTrigger.case_fields);
9717
+ this.formValueService.removeComponentLauncherField(caseEventData.data, eventTrigger.case_fields);
9718
+ }
9719
+ caseEventData.event_token = eventTrigger.event_token;
9720
+ caseEventData.ignore_warning = this.ignoreWarning;
9721
+ if (this.confirmation) {
9722
+ caseEventData.data = {};
9723
+ }
9724
+ return caseEventData;
9725
+ };
9726
+ /**
9727
+ * Replaces non-array value objects with `null` for any Complex-type fields whose value is effectively empty, i.e.
9728
+ * all its sub-fields and descendants are `null` or `undefined`.
9729
+ *
9730
+ * @param data The object tree representing all the form field data
9731
+ * @returns The form field data modified accordingly
9732
+ */
9733
+ CaseEditComponent.prototype.replaceEmptyComplexFieldValues = function (data) {
9734
+ Object.keys(data).forEach(function (key) {
9735
+ if (!Array.isArray(data[key]) && typeof data[key] === 'object' && !FieldsUtils.containsNonEmptyValues(data[key])) {
9736
+ data[key] = null;
9737
+ }
9738
+ });
9739
+ return data;
9740
+ };
9741
+ /**
9742
+ * Traverse *all* values of a {@link FormGroup}, including those for disabled fields (i.e. hidden ones), replacing the
9743
+ * value of any that are hidden AND have `retain_hidden_value` set to `true` in the corresponding `CaseField`, with
9744
+ * the *original* value held in the `CaseField` object.
9745
+ *
9746
+ * This is as per design in EUI-3622, where any user-driven updates to hidden fields with `retain_hidden_value` =
9747
+ * `true` are ignored (thus retaining the value displayed originally).
9748
+ *
9749
+ * * For Complex field types, the replacement above is performed recursively for all hidden sub-fields with
9750
+ * `retain_hidden_value` = `true`.
9751
+ *
9752
+ * * For Collection field types, including collections of Complex and Document field types, the replacement is
9753
+ * performed for all fields in the collection.
9754
+ *
9755
+ * @param formGroup The `FormGroup` instance whose raw values are to be traversed
9756
+ * @param caseFields The array of {@link CaseField} domain model objects corresponding to fields in `formGroup`
9757
+ * @param parentField Reference to the parent `CaseField`. Used for retrieving the sub-field values of a Complex field
9758
+ * to perform recursive replacement - the sub-field `CaseField`s themselves do *not* contain any values
9759
+ * @returns An object with the *raw* form value data (as key-value pairs), with any value replacements as necessary
9760
+ */
9761
+ CaseEditComponent.prototype.replaceHiddenFormValuesWithOriginalCaseData = function (formGroup, caseFields, parentField) {
9762
+ var _this = this;
9763
+ // Get the raw form value data, which includes the values of any disabled controls, as key-value pairs
9764
+ var rawFormValueData = formGroup.getRawValue();
9765
+ // Place all case fields in a lookup object, so they can be retrieved by id
9766
+ var caseFieldsLookup = {};
9767
+ for (var i = 0, len = caseFields.length; i < len; i++) {
9768
+ caseFieldsLookup[caseFields[i].id] = caseFields[i];
9769
+ }
9770
+ /**
9771
+ * Replace any form value with the original, where its CaseField is hidden AND has the retain_hidden_value flag set
9772
+ * to true.
9773
+ *
9774
+ * If the CaseField's `hidden` attribute is null or undefined, then check this attribute in the parent CaseField (if
9775
+ * one exists). This is occurring (and is possibly a bug) when a CaseField is a sub-field of a Complex type, or an
9776
+ * item in a Collection type.
9777
+ *
9778
+ * If the field is a Complex type with retain_hidden_value = true, perform a recursive replacement for all (hidden)
9779
+ * sub-fields with retain_hidden_value = true, using their original CaseField values (from the `formatted_value`
9780
+ * attribute).
9781
+ *
9782
+ * If the field is a Collection type with retain_hidden_value = true, the entire collection is replaced with the
9783
+ * original from `formatted_value`. This applies to *all* types of Collections.
9784
+ */
9785
+ /* istanbul ignore next */
9786
+ Object.keys(rawFormValueData).forEach(function (key) {
9787
+ var caseField = caseFieldsLookup[key];
9788
+ // If caseField.hidden is NOT truthy and also NOT equal to false, then it must be null/undefined (remember that
9789
+ // both null and undefined are equal to *neither false nor true*)
9790
+ if (caseField && caseField.retain_hidden_value &&
9791
+ (caseField.hidden || (caseField.hidden !== false && parentField && parentField.hidden))) {
9792
+ if (caseField.field_type.type === 'Complex') {
9793
+ // Note: Deliberate use of equality (==) and non-equality (!=) operators for null checks throughout, to
9794
+ // handle both null and undefined values
9795
+ if (caseField.value != null) {
9796
+ // Call this function recursively to replace the Complex field's sub-fields as necessary, passing the
9797
+ // CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
9798
+ // parent)
9799
+ // Update rawFormValueData for this field
9800
+ // creating form group and adding control into it in case caseField is of complext type and and part of formGroup
9801
+ var form_1 = new i2.FormGroup({});
9802
+ if (formGroup.controls[key].value) {
9803
+ Object.keys(formGroup.controls[key].value).forEach(function (item) {
9804
+ form_1.addControl(item, new i2.FormControl(formGroup.controls[key].value[item]));
9805
+ });
9806
+ }
9807
+ rawFormValueData[key] = _this.replaceHiddenFormValuesWithOriginalCaseData(form_1, caseField.field_type.complex_fields, caseField);
9808
+ }
9809
+ }
9810
+ else {
9811
+ // Default case also handles collections of *all* types; the entire collection in rawFormValueData will be
9812
+ // replaced with the original from formatted_value
9813
+ // Use the CaseField's existing *formatted_value* from the parent, if available. (This is necessary for
9814
+ // Complex fields, whose sub-fields do not hold any values in the model.) Otherwise, use formatted_value
9815
+ // from the CaseField itself.
9816
+ if (parentField && parentField.formatted_value) {
9817
+ rawFormValueData[key] = parentField.formatted_value[caseField.id];
9818
+ }
9819
+ else {
9820
+ rawFormValueData[key] = caseField.formatted_value;
9821
+ }
9822
+ }
9823
+ }
9824
+ });
9825
+ return rawFormValueData;
9826
+ };
9827
+ CaseEditComponent.prototype.caseSubmit = function (_a) {
9828
+ var _this = this;
9829
+ var form = _a.form, caseEventData = _a.caseEventData, submit = _a.submit;
9830
+ var loadingSpinnerToken = this.loadingService.register();
9831
+ submit(caseEventData)
9832
+ .pipe(operators.finalize(function () {
9833
+ _this.loadingService.unregister(loadingSpinnerToken);
9834
+ }))
9835
+ .subscribe(function (response) {
9836
+ _this.caseNotifier.cachedCaseView = null;
9837
+ _this.sessionStorageService.removeItem('eventUrl');
9838
+ var confirmation = _this.buildConfirmation(response);
9839
+ if (confirmation && (confirmation.getHeader() || confirmation.getBody())) {
9840
+ // Add finally to fix sonar bug
9841
+ _this.confirm(confirmation).finally();
9842
+ }
9843
+ else {
9844
+ _this.emitSubmitted(response);
9845
+ }
9846
+ }, function (error) {
9847
+ _this.error = error;
9848
+ _this.callbackErrorsSubject.next(error);
9849
+ /* istanbul ignore else */
9850
+ if (_this.error.details) {
9851
+ _this.formErrorService
9852
+ .mapFieldErrors(_this.error.details.field_errors, form.controls['data'], 'validation');
9853
+ }
9854
+ _this.isSubmitting = false;
9855
+ });
9856
+ };
9857
+ CaseEditComponent.prototype.buildConfirmation = function (response) {
9858
+ if (response['after_submit_callback_response']) {
9859
+ return new Confirmation(response['id'], response['callback_response_status'], response['after_submit_callback_response']['confirmation_header'], response['after_submit_callback_response']['confirmation_body']);
9860
+ }
9861
+ else {
9862
+ return null;
9863
+ }
9864
+ };
9865
+ CaseEditComponent.prototype.onEventCanBeCompleted = function (_a) {
9866
+ var eventTrigger = _a.eventTrigger, eventCanBeCompleted = _a.eventCanBeCompleted, caseDetails = _a.caseDetails, form = _a.form, submit = _a.submit;
9867
+ if (eventCanBeCompleted) {
9868
+ // Submit
9869
+ var caseEventData = this.generateCaseEventData({ eventTrigger: eventTrigger, form: form });
9870
+ this.caseSubmit({ form: form, caseEventData: caseEventData, submit: submit });
9871
+ }
9872
+ else {
9873
+ // Navigate to tasks tab on case details page
9874
+ this.router.navigate(["/cases/case-details/" + this.getCaseId(caseDetails) + "/tasks"], { relativeTo: this.route });
9875
+ }
9876
+ };
9877
+ CaseEditComponent.prototype.getStatus = function (response) {
9878
+ return this.hasCallbackFailed(response) ? response['callback_response_status'] : response['delete_draft_response_status'];
9879
+ };
9880
+ CaseEditComponent.prototype.hasCallbackFailed = function (response) {
9881
+ return response['callback_response_status'] !== 'CALLBACK_COMPLETED';
9882
+ };
9589
9883
  return CaseEditComponent;
9590
9884
  }());
9591
9885
  CaseEditComponent.ORIGIN_QUERY_PARAM = 'origin';
9592
9886
  CaseEditComponent.ALERT_MESSAGE = 'Page is being refreshed so you will be redirected to the first page of this event.';
9593
- CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FieldsUtils), i0__namespace.ɵɵdirectiveInject(FieldsPurger), i0__namespace.ɵɵdirectiveInject(ConditionalShowRegistrarService), i0__namespace.ɵɵdirectiveInject(WizardFactoryService), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(WindowService)); };
9887
+ CaseEditComponent.ɵfac = function CaseEditComponent_Factory(t) { return new (t || CaseEditComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FieldsUtils), i0__namespace.ɵɵdirectiveInject(FieldsPurger), i0__namespace.ɵɵdirectiveInject(ConditionalShowRegistrarService), i0__namespace.ɵɵdirectiveInject(WizardFactoryService), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(LoadingService)); };
9594
9888
  CaseEditComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditComponent, selectors: [["ccd-case-edit"]], inputs: { eventTrigger: "eventTrigger", submit: "submit", validate: "validate", saveDraft: "saveDraft", caseDetails: "caseDetails" }, outputs: { cancelled: "cancelled", submitted: "submitted" }, features: [i0__namespace.ɵɵProvidersFeature([GreyBarService])], decls: 1, vars: 0, template: function CaseEditComponent_Template(rf, ctx) {
9595
9889
  if (rf & 1) {
9596
9890
  i0__namespace.ɵɵelement(0, "router-outlet");
@@ -9605,7 +9899,7 @@
9605
9899
  styleUrls: ['../case-edit.scss'],
9606
9900
  providers: [GreyBarService]
9607
9901
  }]
9608
- }], function () { return [{ type: i2__namespace.FormBuilder }, { type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }, { type: FieldsUtils }, { type: FieldsPurger }, { type: ConditionalShowRegistrarService }, { type: WizardFactoryService }, { type: SessionStorageService }, { type: WindowService }]; }, { eventTrigger: [{
9902
+ }], function () { return [{ type: i2__namespace.FormBuilder }, { type: CaseNotifier }, { type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }, { type: FieldsUtils }, { type: FieldsPurger }, { type: ConditionalShowRegistrarService }, { type: WizardFactoryService }, { type: SessionStorageService }, { type: WindowService }, { type: FormValueService }, { type: FormErrorService }, { type: LoadingService }]; }, { eventTrigger: [{
9609
9903
  type: i0.Input
9610
9904
  }], submit: [{
9611
9905
  type: i0.Input
@@ -9694,7 +9988,6 @@
9694
9988
  this.caseFields = this.getCaseFields();
9695
9989
  if (this.caseEdit.confirmation) {
9696
9990
  this.confirmation = this.caseEdit.confirmation;
9697
- this.caseId = this.caseEdit.confirmation.getCaseId();
9698
9991
  }
9699
9992
  else {
9700
9993
  this.router.navigate(['/']);
@@ -9704,7 +9997,8 @@
9704
9997
  this.caseEdit.submitted.emit({ caseId: this.confirmation.getCaseId(), status: this.confirmation.getStatus() });
9705
9998
  };
9706
9999
  CaseEditConfirmComponent.prototype.getCaseId = function () {
9707
- return (this.caseEdit.caseDetails ? this.caseEdit.caseDetails.case_id : '');
10000
+ var _a, _b;
10001
+ return ((_b = (_a = this.caseEdit) === null || _a === void 0 ? void 0 : _a.caseDetails) === null || _b === void 0 ? void 0 : _b.case_id) || '';
9708
10002
  };
9709
10003
  CaseEditConfirmComponent.prototype.getCaseTitle = function () {
9710
10004
  return (this.caseEdit.caseDetails && this.caseEdit.caseDetails.state &&
@@ -10062,102 +10356,97 @@
10062
10356
  }], null, null);
10063
10357
  })();
10064
10358
 
10065
- function CaseEditPageComponent_ccd_loading_spinner_0_Template(rf, ctx) {
10066
- if (rf & 1) {
10067
- i0__namespace.ɵɵelement(0, "ccd-loading-spinner");
10068
- }
10069
- }
10070
- function CaseEditPageComponent_ng_container_1_h1_1_Template(rf, ctx) {
10359
+ function CaseEditPageComponent_ng_container_0_h1_1_Template(rf, ctx) {
10071
10360
  if (rf & 1) {
10072
- i0__namespace.ɵɵelementStart(0, "h1", 10);
10361
+ i0__namespace.ɵɵelementStart(0, "h1", 11);
10073
10362
  i0__namespace.ɵɵtext(1);
10074
10363
  i0__namespace.ɵɵelementEnd();
10075
10364
  }
10076
10365
  if (rf & 2) {
10077
- var ctx_r11 = i0__namespace.ɵɵnextContext(2);
10366
+ var ctx_r9 = i0__namespace.ɵɵnextContext(2);
10078
10367
  i0__namespace.ɵɵadvance(1);
10079
- i0__namespace.ɵɵtextInterpolate(ctx_r11.eventTrigger.name);
10368
+ i0__namespace.ɵɵtextInterpolate(ctx_r9.eventTrigger.name);
10080
10369
  }
10081
10370
  }
10082
- function CaseEditPageComponent_ng_container_1_ng_container_2_Template(rf, ctx) {
10371
+ function CaseEditPageComponent_ng_container_0_ng_container_2_Template(rf, ctx) {
10083
10372
  if (rf & 1) {
10084
10373
  i0__namespace.ɵɵelementContainerStart(0);
10085
- i0__namespace.ɵɵelementStart(1, "span", 11);
10374
+ i0__namespace.ɵɵelementStart(1, "span", 12);
10086
10375
  i0__namespace.ɵɵtext(2);
10087
10376
  i0__namespace.ɵɵelementEnd();
10088
- i0__namespace.ɵɵelementStart(3, "h1", 10);
10377
+ i0__namespace.ɵɵelementStart(3, "h1", 11);
10089
10378
  i0__namespace.ɵɵtext(4);
10090
10379
  i0__namespace.ɵɵelementEnd();
10091
10380
  i0__namespace.ɵɵelementContainerEnd();
10092
10381
  }
10093
10382
  if (rf & 2) {
10094
- var ctx_r12 = i0__namespace.ɵɵnextContext(2);
10383
+ var ctx_r10 = i0__namespace.ɵɵnextContext(2);
10095
10384
  i0__namespace.ɵɵadvance(2);
10096
- i0__namespace.ɵɵtextInterpolate(ctx_r12.eventTrigger.name);
10385
+ i0__namespace.ɵɵtextInterpolate(ctx_r10.eventTrigger.name);
10097
10386
  i0__namespace.ɵɵadvance(2);
10098
- i0__namespace.ɵɵtextInterpolate(ctx_r12.currentPage.label);
10387
+ i0__namespace.ɵɵtextInterpolate(ctx_r10.currentPage.label);
10099
10388
  }
10100
10389
  }
10101
- function CaseEditPageComponent_ng_container_1_Template(rf, ctx) {
10390
+ function CaseEditPageComponent_ng_container_0_Template(rf, ctx) {
10102
10391
  if (rf & 1) {
10103
10392
  i0__namespace.ɵɵelementContainerStart(0);
10104
- i0__namespace.ɵɵtemplate(1, CaseEditPageComponent_ng_container_1_h1_1_Template, 2, 1, "h1", 9);
10105
- i0__namespace.ɵɵtemplate(2, CaseEditPageComponent_ng_container_1_ng_container_2_Template, 5, 2, "ng-container", 0);
10393
+ i0__namespace.ɵɵtemplate(1, CaseEditPageComponent_ng_container_0_h1_1_Template, 2, 1, "h1", 10);
10394
+ i0__namespace.ɵɵtemplate(2, CaseEditPageComponent_ng_container_0_ng_container_2_Template, 5, 2, "ng-container", 0);
10106
10395
  i0__namespace.ɵɵelementContainerEnd();
10107
10396
  }
10108
10397
  if (rf & 2) {
10109
- var ctx_r1 = i0__namespace.ɵɵnextContext();
10398
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
10110
10399
  i0__namespace.ɵɵadvance(1);
10111
- i0__namespace.ɵɵproperty("ngIf", !ctx_r1.currentPage.label);
10400
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r0.currentPage.label);
10112
10401
  i0__namespace.ɵɵadvance(1);
10113
- i0__namespace.ɵɵproperty("ngIf", ctx_r1.currentPage.label);
10402
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.currentPage.label);
10114
10403
  }
10115
10404
  }
10116
- function CaseEditPageComponent_div_2_Template(rf, ctx) {
10405
+ function CaseEditPageComponent_div_1_Template(rf, ctx) {
10117
10406
  if (rf & 1) {
10118
10407
  i0__namespace.ɵɵelement(0, "div");
10119
10408
  }
10120
10409
  }
10121
- function CaseEditPageComponent_ng_template_3_Template(rf, ctx) {
10410
+ function CaseEditPageComponent_ng_template_2_Template(rf, ctx) {
10122
10411
  if (rf & 1) {
10123
- i0__namespace.ɵɵelement(0, "ccd-markdown", 12);
10412
+ i0__namespace.ɵɵelement(0, "ccd-markdown", 13);
10124
10413
  i0__namespace.ɵɵpipe(1, "ccdCaseTitle");
10125
10414
  }
10126
10415
  if (rf & 2) {
10127
- var ctx_r4 = i0__namespace.ɵɵnextContext();
10128
- i0__namespace.ɵɵproperty("content", i0__namespace.ɵɵpipeBind3(1, 1, ctx_r4.getCaseTitle(), ctx_r4.caseFields, ctx_r4.editForm.controls["data"]));
10416
+ var ctx_r3 = i0__namespace.ɵɵnextContext();
10417
+ i0__namespace.ɵɵproperty("content", i0__namespace.ɵɵpipeBind3(1, 1, ctx_r3.getCaseTitle(), ctx_r3.caseFields, ctx_r3.editForm.controls["data"]));
10129
10418
  }
10130
10419
  }
10131
- function CaseEditPageComponent_ng_template_5_h2_0_Template(rf, ctx) {
10420
+ function CaseEditPageComponent_ng_template_4_h2_0_Template(rf, ctx) {
10132
10421
  if (rf & 1) {
10133
- i0__namespace.ɵɵelementStart(0, "h2", 14);
10422
+ i0__namespace.ɵɵelementStart(0, "h2", 15);
10134
10423
  i0__namespace.ɵɵtext(1);
10135
10424
  i0__namespace.ɵɵpipe(2, "ccdCaseReference");
10136
10425
  i0__namespace.ɵɵelementEnd();
10137
10426
  }
10138
10427
  if (rf & 2) {
10139
- var ctx_r13 = i0__namespace.ɵɵnextContext(2);
10428
+ var ctx_r11 = i0__namespace.ɵɵnextContext(2);
10140
10429
  i0__namespace.ɵɵadvance(1);
10141
- i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r13.getCaseId()), "");
10430
+ i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r11.getCaseId()), "");
10142
10431
  }
10143
10432
  }
10144
- function CaseEditPageComponent_ng_template_5_Template(rf, ctx) {
10433
+ function CaseEditPageComponent_ng_template_4_Template(rf, ctx) {
10145
10434
  if (rf & 1) {
10146
- i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ng_template_5_h2_0_Template, 3, 3, "h2", 13);
10435
+ i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ng_template_4_h2_0_Template, 3, 3, "h2", 14);
10147
10436
  }
10148
10437
  if (rf & 2) {
10149
- var ctx_r6 = i0__namespace.ɵɵnextContext();
10150
- i0__namespace.ɵɵproperty("ngIf", ctx_r6.getCaseId());
10438
+ var ctx_r5 = i0__namespace.ɵɵnextContext();
10439
+ i0__namespace.ɵɵproperty("ngIf", ctx_r5.getCaseId());
10151
10440
  }
10152
10441
  }
10153
- function CaseEditPageComponent_div_7_div_3_Template(rf, ctx) {
10442
+ function CaseEditPageComponent_div_6_div_3_Template(rf, ctx) {
10154
10443
  if (rf & 1) {
10155
- var _r17_1 = i0__namespace.ɵɵgetCurrentView();
10156
- i0__namespace.ɵɵelementStart(0, "div", 18);
10157
- i0__namespace.ɵɵelementStart(1, "ul", 19);
10444
+ var _r15_1 = i0__namespace.ɵɵgetCurrentView();
10445
+ i0__namespace.ɵɵelementStart(0, "div", 19);
10446
+ i0__namespace.ɵɵelementStart(1, "ul", 20);
10158
10447
  i0__namespace.ɵɵelementStart(2, "li");
10159
- i0__namespace.ɵɵelementStart(3, "a", 20);
10160
- i0__namespace.ɵɵlistener("click", function CaseEditPageComponent_div_7_div_3_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r17_1); var validationError_r15 = ctx.$implicit; var ctx_r16 = i0__namespace.ɵɵnextContext(2); return ctx_r16.navigateToErrorElement(validationError_r15.id); });
10448
+ i0__namespace.ɵɵelementStart(3, "a", 21);
10449
+ i0__namespace.ɵɵlistener("click", function CaseEditPageComponent_div_6_div_3_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r15_1); var validationError_r13 = ctx.$implicit; var ctx_r14 = i0__namespace.ɵɵnextContext(2); return ctx_r14.navigateToErrorElement(validationError_r13.id); });
10161
10450
  i0__namespace.ɵɵtext(4);
10162
10451
  i0__namespace.ɵɵelementEnd();
10163
10452
  i0__namespace.ɵɵelementEnd();
@@ -10165,168 +10454,116 @@
10165
10454
  i0__namespace.ɵɵelementEnd();
10166
10455
  }
10167
10456
  if (rf & 2) {
10168
- var validationError_r15 = ctx.$implicit;
10457
+ var validationError_r13 = ctx.$implicit;
10169
10458
  i0__namespace.ɵɵadvance(4);
10170
- i0__namespace.ɵɵtextInterpolate(validationError_r15.message);
10459
+ i0__namespace.ɵɵtextInterpolate(validationError_r13.message);
10171
10460
  }
10172
10461
  }
10173
- function CaseEditPageComponent_div_7_Template(rf, ctx) {
10462
+ function CaseEditPageComponent_div_6_Template(rf, ctx) {
10174
10463
  if (rf & 1) {
10175
- i0__namespace.ɵɵelementStart(0, "div", 15);
10176
- i0__namespace.ɵɵelementStart(1, "h2", 16);
10464
+ i0__namespace.ɵɵelementStart(0, "div", 16);
10465
+ i0__namespace.ɵɵelementStart(1, "h2", 17);
10177
10466
  i0__namespace.ɵɵtext(2, " There is a problem ");
10178
10467
  i0__namespace.ɵɵelementEnd();
10179
- i0__namespace.ɵɵtemplate(3, CaseEditPageComponent_div_7_div_3_Template, 5, 1, "div", 17);
10468
+ i0__namespace.ɵɵtemplate(3, CaseEditPageComponent_div_6_div_3_Template, 5, 1, "div", 18);
10180
10469
  i0__namespace.ɵɵelementEnd();
10181
10470
  }
10182
10471
  if (rf & 2) {
10183
- var ctx_r7 = i0__namespace.ɵɵnextContext();
10472
+ var ctx_r6 = i0__namespace.ɵɵnextContext();
10184
10473
  i0__namespace.ɵɵadvance(3);
10185
- i0__namespace.ɵɵproperty("ngForOf", ctx_r7.validationErrors);
10186
- }
10187
- }
10188
- function CaseEditPageComponent_div_8_Template(rf, ctx) {
10189
- if (rf & 1) {
10190
- i0__namespace.ɵɵelementStart(0, "div", 21);
10191
- i0__namespace.ɵɵelementStart(1, "h1", 22);
10192
- i0__namespace.ɵɵtext(2, " Something went wrong ");
10193
- i0__namespace.ɵɵelementEnd();
10194
- i0__namespace.ɵɵelementStart(3, "div", 23);
10195
- i0__namespace.ɵɵelementStart(4, "p");
10196
- i0__namespace.ɵɵtext(5, "We're working to fix the problem. Try again shortly.");
10197
- i0__namespace.ɵɵelementEnd();
10198
- i0__namespace.ɵɵelementStart(6, "p");
10199
- i0__namespace.ɵɵelementStart(7, "a", 24);
10200
- i0__namespace.ɵɵtext(8, "Contact us");
10201
- i0__namespace.ɵɵelementEnd();
10202
- i0__namespace.ɵɵtext(9, " if you're still having problems.");
10203
- i0__namespace.ɵɵelementEnd();
10204
- i0__namespace.ɵɵelementEnd();
10205
- i0__namespace.ɵɵelementEnd();
10206
- }
10207
- }
10208
- function CaseEditPageComponent_div_9_ul_5_li_1_Template(rf, ctx) {
10209
- if (rf & 1) {
10210
- i0__namespace.ɵɵelementStart(0, "li", 29);
10211
- i0__namespace.ɵɵtext(1);
10212
- i0__namespace.ɵɵelementEnd();
10213
- }
10214
- if (rf & 2) {
10215
- var fieldError_r20 = ctx.$implicit;
10216
- i0__namespace.ɵɵadvance(1);
10217
- i0__namespace.ɵɵtextInterpolate(fieldError_r20.message);
10218
- }
10219
- }
10220
- function CaseEditPageComponent_div_9_ul_5_Template(rf, ctx) {
10221
- if (rf & 1) {
10222
- i0__namespace.ɵɵelementStart(0, "ul", 27);
10223
- i0__namespace.ɵɵtemplate(1, CaseEditPageComponent_div_9_ul_5_li_1_Template, 2, 1, "li", 28);
10224
- i0__namespace.ɵɵelementEnd();
10225
- }
10226
- if (rf & 2) {
10227
- var ctx_r18 = i0__namespace.ɵɵnextContext(2);
10228
- i0__namespace.ɵɵadvance(1);
10229
- i0__namespace.ɵɵproperty("ngForOf", ctx_r18.error.details.field_errors);
10474
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r6.validationErrors);
10230
10475
  }
10231
10476
  }
10232
- function CaseEditPageComponent_div_9_Template(rf, ctx) {
10477
+ function CaseEditPageComponent_form_10_ccd_case_edit_form_3_Template(rf, ctx) {
10233
10478
  if (rf & 1) {
10234
- i0__namespace.ɵɵelementStart(0, "div", 21);
10235
- i0__namespace.ɵɵelementStart(1, "h3", 25);
10236
- i0__namespace.ɵɵtext(2, " The event could not be created ");
10237
- i0__namespace.ɵɵelementEnd();
10238
- i0__namespace.ɵɵelementStart(3, "p");
10239
- i0__namespace.ɵɵtext(4);
10240
- i0__namespace.ɵɵelementEnd();
10241
- i0__namespace.ɵɵtemplate(5, CaseEditPageComponent_div_9_ul_5_Template, 2, 1, "ul", 26);
10242
- i0__namespace.ɵɵelementEnd();
10243
- }
10244
- if (rf & 2) {
10245
- var ctx_r9 = i0__namespace.ɵɵnextContext();
10246
- i0__namespace.ɵɵadvance(4);
10247
- i0__namespace.ɵɵtextInterpolate(ctx_r9.error.message);
10248
- i0__namespace.ɵɵadvance(1);
10249
- i0__namespace.ɵɵproperty("ngIf", ctx_r9.error.details == null ? null : ctx_r9.error.details.field_errors);
10250
- }
10251
- }
10252
- function CaseEditPageComponent_form_12_ccd_case_edit_form_3_Template(rf, ctx) {
10253
- if (rf & 1) {
10254
- var _r24_1 = i0__namespace.ɵɵgetCurrentView();
10255
- i0__namespace.ɵɵelementStart(0, "ccd-case-edit-form", 40);
10256
- i0__namespace.ɵɵlistener("valuesChanged", function CaseEditPageComponent_form_12_ccd_case_edit_form_3_Template_ccd_case_edit_form_valuesChanged_0_listener($event) { i0__namespace.ɵɵrestoreView(_r24_1); var ctx_r23 = i0__namespace.ɵɵnextContext(2); return ctx_r23.applyValuesChanged($event); });
10479
+ var _r19_1 = i0__namespace.ɵɵgetCurrentView();
10480
+ i0__namespace.ɵɵelementStart(0, "ccd-case-edit-form", 32);
10481
+ i0__namespace.ɵɵlistener("valuesChanged", function CaseEditPageComponent_form_10_ccd_case_edit_form_3_Template_ccd_case_edit_form_valuesChanged_0_listener($event) { i0__namespace.ɵɵrestoreView(_r19_1); var ctx_r18 = i0__namespace.ɵɵnextContext(2); return ctx_r18.applyValuesChanged($event); });
10257
10482
  i0__namespace.ɵɵelementEnd();
10258
10483
  }
10259
10484
  if (rf & 2) {
10260
- var ctx_r21 = i0__namespace.ɵɵnextContext(2);
10261
- i0__namespace.ɵɵproperty("fields", ctx_r21.currentPage.getCol1Fields())("formGroup", ctx_r21.editForm.controls["data"])("caseFields", ctx_r21.caseFields)("pageChangeSubject", ctx_r21.pageChangeSubject);
10485
+ var ctx_r16 = i0__namespace.ɵɵnextContext(2);
10486
+ i0__namespace.ɵɵproperty("fields", ctx_r16.currentPage.getCol1Fields())("formGroup", ctx_r16.editForm.controls["data"])("caseFields", ctx_r16.caseFields)("pageChangeSubject", ctx_r16.pageChangeSubject);
10262
10487
  }
10263
10488
  }
10264
- function CaseEditPageComponent_form_12_div_4_Template(rf, ctx) {
10489
+ function CaseEditPageComponent_form_10_div_4_Template(rf, ctx) {
10265
10490
  if (rf & 1) {
10266
- i0__namespace.ɵɵelementStart(0, "div", 41);
10267
- i0__namespace.ɵɵelementStart(1, "div", 42);
10268
- i0__namespace.ɵɵelement(2, "ccd-case-edit-form", 43);
10491
+ i0__namespace.ɵɵelementStart(0, "div", 33);
10492
+ i0__namespace.ɵɵelementStart(1, "div", 34);
10493
+ i0__namespace.ɵɵelement(2, "ccd-case-edit-form", 35);
10269
10494
  i0__namespace.ɵɵelementEnd();
10270
- i0__namespace.ɵɵelementStart(3, "div", 44);
10271
- i0__namespace.ɵɵelement(4, "ccd-case-edit-form", 45);
10495
+ i0__namespace.ɵɵelementStart(3, "div", 36);
10496
+ i0__namespace.ɵɵelement(4, "ccd-case-edit-form", 37);
10272
10497
  i0__namespace.ɵɵelementEnd();
10273
10498
  i0__namespace.ɵɵelementEnd();
10274
10499
  }
10275
10500
  if (rf & 2) {
10276
- var ctx_r22 = i0__namespace.ɵɵnextContext(2);
10501
+ var ctx_r17 = i0__namespace.ɵɵnextContext(2);
10277
10502
  i0__namespace.ɵɵadvance(2);
10278
- i0__namespace.ɵɵproperty("fields", ctx_r22.currentPage.getCol1Fields())("formGroup", ctx_r22.editForm.controls["data"])("caseFields", ctx_r22.caseFields);
10503
+ i0__namespace.ɵɵproperty("fields", ctx_r17.currentPage.getCol1Fields())("formGroup", ctx_r17.editForm.controls["data"])("caseFields", ctx_r17.caseFields);
10279
10504
  i0__namespace.ɵɵadvance(2);
10280
- i0__namespace.ɵɵproperty("fields", ctx_r22.currentPage.getCol2Fields())("formGroup", ctx_r22.editForm.controls["data"])("caseFields", ctx_r22.caseFields);
10505
+ i0__namespace.ɵɵproperty("fields", ctx_r17.currentPage.getCol2Fields())("formGroup", ctx_r17.editForm.controls["data"])("caseFields", ctx_r17.caseFields);
10281
10506
  }
10282
10507
  }
10283
- function CaseEditPageComponent_form_12_Template(rf, ctx) {
10508
+ function CaseEditPageComponent_form_10_Template(rf, ctx) {
10284
10509
  if (rf & 1) {
10285
- var _r26_1 = i0__namespace.ɵɵgetCurrentView();
10286
- i0__namespace.ɵɵelementStart(0, "form", 30);
10287
- i0__namespace.ɵɵlistener("submit", function CaseEditPageComponent_form_12_Template_form_submit_0_listener() { i0__namespace.ɵɵrestoreView(_r26_1); var ctx_r25 = i0__namespace.ɵɵnextContext(); return ctx_r25.submit(); });
10288
- i0__namespace.ɵɵelementStart(1, "fieldset", 31);
10289
- i0__namespace.ɵɵelement(2, "legend", 32);
10290
- i0__namespace.ɵɵtemplate(3, CaseEditPageComponent_form_12_ccd_case_edit_form_3_Template, 1, 4, "ccd-case-edit-form", 33);
10291
- i0__namespace.ɵɵtemplate(4, CaseEditPageComponent_form_12_div_4_Template, 5, 6, "div", 34);
10292
- i0__namespace.ɵɵelementEnd();
10293
- i0__namespace.ɵɵelementStart(5, "div", 35);
10294
- i0__namespace.ɵɵelementStart(6, "button", 36);
10295
- i0__namespace.ɵɵlistener("click", function CaseEditPageComponent_form_12_Template_button_click_6_listener() { i0__namespace.ɵɵrestoreView(_r26_1); var ctx_r27 = i0__namespace.ɵɵnextContext(); return ctx_r27.toPreviousPage(); });
10510
+ var _r21_1 = i0__namespace.ɵɵgetCurrentView();
10511
+ i0__namespace.ɵɵelementStart(0, "form", 22);
10512
+ i0__namespace.ɵɵlistener("submit", function CaseEditPageComponent_form_10_Template_form_submit_0_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r20 = i0__namespace.ɵɵnextContext(); return ctx_r20.submit(); });
10513
+ i0__namespace.ɵɵelementStart(1, "fieldset", 23);
10514
+ i0__namespace.ɵɵelement(2, "legend", 24);
10515
+ i0__namespace.ɵɵtemplate(3, CaseEditPageComponent_form_10_ccd_case_edit_form_3_Template, 1, 4, "ccd-case-edit-form", 25);
10516
+ i0__namespace.ɵɵtemplate(4, CaseEditPageComponent_form_10_div_4_Template, 5, 6, "div", 26);
10517
+ i0__namespace.ɵɵelementEnd();
10518
+ i0__namespace.ɵɵelementStart(5, "div", 27);
10519
+ i0__namespace.ɵɵelementStart(6, "button", 28);
10520
+ i0__namespace.ɵɵlistener("click", function CaseEditPageComponent_form_10_Template_button_click_6_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r22 = i0__namespace.ɵɵnextContext(); return ctx_r22.toPreviousPage(); });
10296
10521
  i0__namespace.ɵɵpipe(7, "async");
10297
10522
  i0__namespace.ɵɵtext(8, " Previous ");
10298
10523
  i0__namespace.ɵɵelementEnd();
10299
- i0__namespace.ɵɵelementStart(9, "button", 37);
10524
+ i0__namespace.ɵɵelementStart(9, "button", 29);
10300
10525
  i0__namespace.ɵɵtext(10);
10301
10526
  i0__namespace.ɵɵelementEnd();
10302
10527
  i0__namespace.ɵɵelementEnd();
10303
- i0__namespace.ɵɵelementStart(11, "p", 38);
10304
- i0__namespace.ɵɵelementStart(12, "a", 39);
10305
- i0__namespace.ɵɵlistener("click", function CaseEditPageComponent_form_12_Template_a_click_12_listener() { i0__namespace.ɵɵrestoreView(_r26_1); var ctx_r28 = i0__namespace.ɵɵnextContext(); return ctx_r28.cancel(); });
10528
+ i0__namespace.ɵɵelementStart(11, "p", 30);
10529
+ i0__namespace.ɵɵelementStart(12, "a", 31);
10530
+ i0__namespace.ɵɵlistener("click", function CaseEditPageComponent_form_10_Template_a_click_12_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r23 = i0__namespace.ɵɵnextContext(); return ctx_r23.cancel(); });
10306
10531
  i0__namespace.ɵɵtext(13);
10307
10532
  i0__namespace.ɵɵelementEnd();
10308
10533
  i0__namespace.ɵɵelementEnd();
10309
10534
  i0__namespace.ɵɵelementEnd();
10310
10535
  }
10311
10536
  if (rf & 2) {
10312
- var ctx_r10 = i0__namespace.ɵɵnextContext();
10313
- i0__namespace.ɵɵproperty("formGroup", ctx_r10.editForm);
10537
+ var ctx_r7 = i0__namespace.ɵɵnextContext();
10538
+ i0__namespace.ɵɵproperty("formGroup", ctx_r7.editForm);
10314
10539
  i0__namespace.ɵɵadvance(3);
10315
- i0__namespace.ɵɵproperty("ngIf", !ctx_r10.currentPage.isMultiColumn());
10540
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r7.currentPage.isMultiColumn());
10316
10541
  i0__namespace.ɵɵadvance(1);
10317
- i0__namespace.ɵɵproperty("ngIf", ctx_r10.currentPage.isMultiColumn());
10542
+ i0__namespace.ɵɵproperty("ngIf", ctx_r7.currentPage.isMultiColumn());
10318
10543
  i0__namespace.ɵɵadvance(2);
10319
- i0__namespace.ɵɵproperty("disabled", !i0__namespace.ɵɵpipeBind1(7, 7, ctx_r10.hasPreviousPage$));
10544
+ i0__namespace.ɵɵproperty("disabled", !i0__namespace.ɵɵpipeBind1(7, 7, ctx_r7.hasPreviousPage$));
10320
10545
  i0__namespace.ɵɵadvance(3);
10321
- i0__namespace.ɵɵproperty("disabled", ctx_r10.submitting());
10546
+ i0__namespace.ɵɵproperty("disabled", ctx_r7.submitting());
10322
10547
  i0__namespace.ɵɵadvance(1);
10323
- i0__namespace.ɵɵtextInterpolate(ctx_r10.triggerText);
10548
+ i0__namespace.ɵɵtextInterpolate(ctx_r7.triggerText);
10324
10549
  i0__namespace.ɵɵadvance(3);
10325
- i0__namespace.ɵɵtextInterpolate(ctx_r10.getCancelText());
10550
+ i0__namespace.ɵɵtextInterpolate(ctx_r7.getCancelText());
10551
+ }
10552
+ }
10553
+ function CaseEditPageComponent_ccd_case_event_completion_11_Template(rf, ctx) {
10554
+ if (rf & 1) {
10555
+ var _r25_1 = i0__namespace.ɵɵgetCurrentView();
10556
+ i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion", 38);
10557
+ i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditPageComponent_ccd_case_event_completion_11_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(_r25_1); var ctx_r24 = i0__namespace.ɵɵnextContext(); return ctx_r24.onEventCanBeCompleted($event); });
10558
+ i0__namespace.ɵɵelementEnd();
10559
+ }
10560
+ if (rf & 2) {
10561
+ var ctx_r8 = i0__namespace.ɵɵnextContext();
10562
+ i0__namespace.ɵɵproperty("eventCompletionParams", ctx_r8.caseEdit.eventCompletionParams);
10326
10563
  }
10327
10564
  }
10328
10565
  var CaseEditPageComponent = /** @class */ (function () {
10329
- function CaseEditPageComponent(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService) {
10566
+ function CaseEditPageComponent(caseEdit, route, formValueService, formErrorService, cdRef, pageValidationService, dialog, caseFieldService, caseEditDataService, loadingService) {
10330
10567
  this.caseEdit = caseEdit;
10331
10568
  this.route = route;
10332
10569
  this.formValueService = formValueService;
@@ -10336,15 +10573,14 @@
10336
10573
  this.dialog = dialog;
10337
10574
  this.caseFieldService = caseFieldService;
10338
10575
  this.caseEditDataService = caseEditDataService;
10339
- this.callbackErrorsSubject = new rxjs.Subject();
10340
- this.ignoreWarning = false;
10576
+ this.loadingService = loadingService;
10341
10577
  this.triggerTextStart = CaseEditPageComponent.TRIGGER_TEXT_START;
10342
10578
  this.triggerTextIgnoreWarnings = CaseEditPageComponent.TRIGGER_TEXT_CONTINUE;
10343
- this.isSubmitting = false;
10344
10579
  this.formValuesChanged = false;
10345
10580
  this.pageChangeSubject = new rxjs.Subject();
10346
10581
  this.validationErrors = [];
10347
10582
  this.hasPreviousPage$ = new rxjs.BehaviorSubject(false);
10583
+ this.callbackErrorsSubject = new rxjs.Subject();
10348
10584
  }
10349
10585
  CaseEditPageComponent.scrollToTop = function () {
10350
10586
  window.scrollTo(0, 0);
@@ -10362,12 +10598,13 @@
10362
10598
  this.editForm = this.caseEdit.form;
10363
10599
  this.wizard = this.caseEdit.wizard;
10364
10600
  this.caseFields = this.getCaseFields();
10365
- this.triggerText = this.getTriggerText();
10366
10601
  this.syncCaseEditDataService();
10367
10602
  this.route.params
10368
10603
  .subscribe(function (params) {
10604
+ var _a, _b;
10369
10605
  var pageId = params['page'];
10370
- if (!_this.currentPage || pageId !== _this.currentPage.id) {
10606
+ /* istanbul ignore else */
10607
+ if (!_this.currentPage || pageId !== ((_a = _this.currentPage) === null || _a === void 0 ? void 0 : _a.id)) {
10371
10608
  var page = _this.caseEdit.getPage(pageId);
10372
10609
  if (page) {
10373
10610
  _this.currentPage = page;
@@ -10380,7 +10617,7 @@
10380
10617
  return _this.first();
10381
10618
  }
10382
10619
  }
10383
- _this.hasPreviousPage$.next(_this.caseEdit.hasPrevious(_this.currentPage.id));
10620
+ _this.hasPreviousPage$.next(_this.caseEdit.hasPrevious((_b = _this.currentPage) === null || _b === void 0 ? void 0 : _b.id));
10384
10621
  }
10385
10622
  });
10386
10623
  CaseEditPageComponent.setFocusToTop();
@@ -10398,6 +10635,7 @@
10398
10635
  }
10399
10636
  }
10400
10637
  });
10638
+ this.triggerText = this.getTriggerText();
10401
10639
  };
10402
10640
  CaseEditPageComponent.prototype.ngAfterViewChecked = function () {
10403
10641
  this.cdRef.detectChanges();
@@ -10501,8 +10739,10 @@
10501
10739
  CaseEditPageComponent.scrollToTop();
10502
10740
  };
10503
10741
  CaseEditPageComponent.prototype.navigateToErrorElement = function (elementId) {
10742
+ /* istanbul ignore else */
10504
10743
  if (elementId) {
10505
10744
  var htmlElement = document.getElementById(elementId);
10745
+ /* istanbul ignore else */
10506
10746
  if (htmlElement) {
10507
10747
  htmlElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
10508
10748
  htmlElement.focus();
@@ -10524,21 +10764,23 @@
10524
10764
  this.generateErrorMessage(this.currentPage.case_fields);
10525
10765
  }
10526
10766
  }
10527
- if (!this.isSubmitting && !this.currentPageIsNotValid()) {
10528
- this.isSubmitting = true;
10529
- this.error = null;
10767
+ if (!this.caseEdit.isSubmitting && !this.currentPageIsNotValid()) {
10768
+ this.caseEdit.isSubmitting = true;
10769
+ this.caseEdit.error = null;
10530
10770
  var caseEventData = this.buildCaseEventData();
10531
- this.showSpinner = true;
10771
+ var loadingSpinnerToken_1 = this.loadingService.register();
10532
10772
  this.caseEdit.validate(caseEventData, this.currentPage.id)
10773
+ .pipe(operators.finalize(function () {
10774
+ _this.loadingService.unregister(loadingSpinnerToken_1);
10775
+ }))
10533
10776
  .subscribe(function (jsonData) {
10777
+ /* istanbul ignore else */
10534
10778
  if (jsonData) {
10535
10779
  _this.updateFormData(jsonData);
10536
10780
  }
10537
10781
  _this.saveDraft();
10538
- _this.showSpinner = false;
10539
10782
  _this.next();
10540
10783
  }, function (error) {
10541
- _this.showSpinner = false;
10542
10784
  _this.handleError(error);
10543
10785
  });
10544
10786
  CaseEditPageComponent.scrollToTop();
@@ -10546,10 +10788,11 @@
10546
10788
  CaseEditPageComponent.setFocusToTop();
10547
10789
  };
10548
10790
  CaseEditPageComponent.prototype.updateFormData = function (jsonData) {
10549
- var e_1, _a;
10791
+ var e_1, _c;
10550
10792
  try {
10551
- for (var _b = __values(Object.keys(jsonData.data)), _c = _b.next(); !_c.done; _c = _b.next()) {
10552
- var caseFieldId = _c.value;
10793
+ for (var _d = __values(Object.keys(jsonData.data)), _e = _d.next(); !_e.done; _e = _d.next()) {
10794
+ var caseFieldId = _e.value;
10795
+ /* istanbul ignore else */
10553
10796
  if (this.pageWithFieldExists(caseFieldId)) {
10554
10797
  this.updateEventTriggerCaseFields(caseFieldId, jsonData, this.caseEdit.eventTrigger);
10555
10798
  this.updateFormControlsValue(this.editForm, caseFieldId, jsonData.data[caseFieldId]);
@@ -10559,7 +10802,7 @@
10559
10802
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
10560
10803
  finally {
10561
10804
  try {
10562
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
10805
+ if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
10563
10806
  }
10564
10807
  finally { if (e_1) throw e_1.error; }
10565
10808
  }
@@ -10569,12 +10812,36 @@
10569
10812
  return this.wizard.findWizardPage(caseFieldId);
10570
10813
  };
10571
10814
  CaseEditPageComponent.prototype.updateEventTriggerCaseFields = function (caseFieldId, jsonData, eventTrigger) {
10572
- if (eventTrigger.case_fields) {
10815
+ var _this = this;
10816
+ /* istanbul ignore else */
10817
+ if (eventTrigger === null || eventTrigger === void 0 ? void 0 : eventTrigger.case_fields) {
10573
10818
  eventTrigger.case_fields
10574
10819
  .filter(function (element) { return element.id === caseFieldId; })
10575
- .forEach(function (element) { return element.value = jsonData.data[caseFieldId]; });
10820
+ .forEach(function (element) {
10821
+ if (_this.isAnObject(element.value)) {
10822
+ var updatedJsonDataObject = _this.updateJsonDataObject(caseFieldId, jsonData, element);
10823
+ element.value = Object.assign(Object.assign({}, element.value), updatedJsonDataObject);
10824
+ }
10825
+ else {
10826
+ element.value = jsonData.data[caseFieldId];
10827
+ }
10828
+ });
10576
10829
  }
10577
10830
  };
10831
+ CaseEditPageComponent.prototype.updateJsonDataObject = function (caseFieldId, jsonData, element) {
10832
+ var _this = this;
10833
+ return Object.keys(jsonData.data[caseFieldId]).reduce(function (acc, key) {
10834
+ var _c;
10835
+ var elementValue = element.value[key];
10836
+ var jsonDataValue = jsonData.data[caseFieldId][key];
10837
+ var hasElementGotValueProperty = _this.isAnObject(elementValue) && elementValue.value !== undefined;
10838
+ var jsonDataOrElementValue = (jsonDataValue === null || jsonDataValue === void 0 ? void 0 : jsonDataValue.value) !== null && (jsonDataValue === null || jsonDataValue === void 0 ? void 0 : jsonDataValue.value) !== undefined ? jsonDataValue : elementValue;
10839
+ return Object.assign(Object.assign({}, acc), (_c = {}, _c["" + key] = hasElementGotValueProperty ? jsonDataOrElementValue : jsonDataValue, _c));
10840
+ }, {});
10841
+ };
10842
+ CaseEditPageComponent.prototype.isAnObject = function (property) {
10843
+ return typeof property === 'object' && !Array.isArray(property) && property !== null;
10844
+ };
10578
10845
  CaseEditPageComponent.prototype.updateFormControlsValue = function (formGroup, caseFieldId, value) {
10579
10846
  var theControl = formGroup.controls['data'].get(caseFieldId);
10580
10847
  if (theControl && theControl['status'] !== 'DISABLED') {
@@ -10590,12 +10857,14 @@
10590
10857
  }
10591
10858
  };
10592
10859
  CaseEditPageComponent.prototype.callbackErrorsNotify = function (errorContext) {
10593
- this.ignoreWarning = errorContext.ignoreWarning;
10860
+ this.caseEdit.ignoreWarning = errorContext.ignoreWarning;
10594
10861
  this.triggerText = errorContext.triggerText;
10595
10862
  };
10596
10863
  CaseEditPageComponent.prototype.next = function () {
10864
+ if (this.canNavigateToSummaryPage()) {
10865
+ this.caseEdit.isSubmitting = false;
10866
+ }
10597
10867
  this.resetErrors();
10598
- this.isSubmitting = false;
10599
10868
  this.formValuesChanged = false;
10600
10869
  this.pageChangeSubject.next(true);
10601
10870
  return this.caseEdit.next(this.currentPage.id);
@@ -10637,9 +10906,10 @@
10637
10906
  else {
10638
10907
  this.caseEdit.cancelled.emit();
10639
10908
  }
10909
+ this.caseEditDataService.clearFormValidationErrors();
10640
10910
  };
10641
10911
  CaseEditPageComponent.prototype.submitting = function () {
10642
- return this.isSubmitting;
10912
+ return this.caseEdit.isSubmitting;
10643
10913
  };
10644
10914
  CaseEditPageComponent.prototype.getCaseId = function () {
10645
10915
  return (this.caseEdit.caseDetails ? this.caseEdit.caseDetails.case_id : '');
@@ -10651,10 +10921,23 @@
10651
10921
  CaseEditPageComponent.prototype.getCancelText = function () {
10652
10922
  return this.eventTrigger.can_save_draft ? 'Return to case list' : 'Cancel';
10653
10923
  };
10924
+ CaseEditPageComponent.prototype.canNavigateToSummaryPage = function () {
10925
+ var _a;
10926
+ var nextPage = this.caseEdit.getNextPage({
10927
+ currentPageId: (_a = this.currentPage) === null || _a === void 0 ? void 0 : _a.id,
10928
+ wizard: this.wizard,
10929
+ eventTrigger: this.eventTrigger,
10930
+ form: this.editForm
10931
+ });
10932
+ return this.eventTrigger.show_summary || !!nextPage;
10933
+ };
10654
10934
  CaseEditPageComponent.prototype.getTriggerText = function () {
10655
- return this.eventTrigger && this.eventTrigger.can_save_draft
10935
+ var textBasedOnCanSaveDraft = this.eventTrigger && this.eventTrigger.can_save_draft
10656
10936
  ? CaseEditPageComponent.TRIGGER_TEXT_SAVE
10657
10937
  : CaseEditPageComponent.TRIGGER_TEXT_START;
10938
+ return this.canNavigateToSummaryPage()
10939
+ ? textBasedOnCanSaveDraft
10940
+ : 'Submit';
10658
10941
  };
10659
10942
  CaseEditPageComponent.prototype.discard = function () {
10660
10943
  if (this.route.snapshot.queryParamMap.get(CaseEditComponent.ORIGIN_QUERY_PARAM) === 'viewDraft') {
@@ -10665,26 +10948,29 @@
10665
10948
  }
10666
10949
  };
10667
10950
  CaseEditPageComponent.prototype.handleError = function (error) {
10668
- this.isSubmitting = false;
10669
- this.error = error;
10670
- this.callbackErrorsSubject.next(this.error);
10671
- if (this.error.details) {
10951
+ var _a, _b;
10952
+ this.caseEdit.isSubmitting = false;
10953
+ this.caseEdit.error = error;
10954
+ this.caseEdit.callbackErrorsSubject.next(this.caseEdit.error);
10955
+ this.callbackErrorsSubject.next(this.caseEdit.error);
10956
+ /* istanbul ignore else */
10957
+ if (this.caseEdit.error.details) {
10672
10958
  this.formErrorService
10673
- .mapFieldErrors(this.error.details.field_errors, this.editForm.controls['data'], 'validation');
10959
+ .mapFieldErrors(this.caseEdit.error.details.field_errors, (_b = (_a = this.editForm) === null || _a === void 0 ? void 0 : _a.controls) === null || _b === void 0 ? void 0 : _b['data'], 'validation');
10674
10960
  }
10675
10961
  };
10676
10962
  CaseEditPageComponent.prototype.resetErrors = function () {
10677
- this.error = null;
10678
- this.ignoreWarning = false;
10963
+ this.caseEdit.error = null;
10964
+ this.caseEdit.ignoreWarning = false;
10679
10965
  this.triggerText = this.getTriggerText();
10680
- this.callbackErrorsSubject.next(null);
10966
+ this.caseEdit.callbackErrorsSubject.next(null);
10681
10967
  };
10682
10968
  CaseEditPageComponent.prototype.saveDraft = function () {
10683
10969
  var _this = this;
10684
10970
  if (this.eventTrigger.can_save_draft) {
10685
10971
  var draftCaseEventData = this.formValueService.sanitise(this.editForm.value);
10686
10972
  draftCaseEventData.event_token = this.eventTrigger.event_token;
10687
- draftCaseEventData.ignore_warning = this.ignoreWarning;
10973
+ draftCaseEventData.ignore_warning = this.caseEdit.ignoreWarning;
10688
10974
  this.caseEdit.saveDraft(draftCaseEventData).subscribe(function (draft) { return _this.eventTrigger.case_id = DRAFT_PREFIX + draft.id; }, function (error) { return _this.handleError(error); });
10689
10975
  }
10690
10976
  };
@@ -10717,7 +11003,7 @@
10717
11003
  pageEventData.event_data = formEventData.data;
10718
11004
  // Finalise the CaseEventData object.
10719
11005
  pageEventData.event_token = this.eventTrigger.event_token;
10720
- pageEventData.ignore_warning = this.ignoreWarning;
11006
+ pageEventData.ignore_warning = this.caseEdit.ignoreWarning;
10721
11007
  // Finally, try to set up the case_reference.
10722
11008
  if (this.caseEdit.caseDetails) {
10723
11009
  pageEventData.case_reference = this.caseEdit.caseDetails.case_id;
@@ -10757,6 +11043,15 @@
10757
11043
  next: function (validationErrors) { return _this.validationErrors = validationErrors; }
10758
11044
  });
10759
11045
  };
11046
+ CaseEditPageComponent.prototype.onEventCanBeCompleted = function (eventCanBeCompleted) {
11047
+ this.caseEdit.onEventCanBeCompleted({
11048
+ eventTrigger: this.eventTrigger,
11049
+ eventCanBeCompleted: eventCanBeCompleted,
11050
+ caseDetails: this.caseEdit.caseDetails,
11051
+ form: this.editForm,
11052
+ submit: this.caseEdit.submit,
11053
+ });
11054
+ };
10760
11055
  return CaseEditPageComponent;
10761
11056
  }());
10762
11057
  CaseEditPageComponent.RESUMED_FORM_DISCARD = 'RESUMED_FORM_DISCARD';
@@ -10766,42 +11061,39 @@
10766
11061
  CaseEditPageComponent.TRIGGER_TEXT_START = 'Continue';
10767
11062
  CaseEditPageComponent.TRIGGER_TEXT_SAVE = 'Save and continue';
10768
11063
  CaseEditPageComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Continue';
10769
- CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
10770
- CaseEditPageComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 13, vars: 12, consts: [[4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "error-summary", "role", "status", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], ["role", "status", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading-3", 1, "heading-h3", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], ["class", "ccd-error-summary-li", 4, "ngFor", "ngForOf"], [1, "ccd-error-summary-li"], [1, "form", 3, "formGroup", "submit"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"]], template: function CaseEditPageComponent_Template(rf, ctx) {
11064
+ CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PageValidationService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(CaseFieldService), i0__namespace.ɵɵdirectiveInject(CaseEditDataService), i0__namespace.ɵɵdirectiveInject(LoadingService)); };
11065
+ CaseEditPageComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 12, vars: 11, consts: [[4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [3, "error"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form", 3, "formGroup", "submit"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditPageComponent_Template(rf, ctx) {
10771
11066
  if (rf & 1) {
10772
- i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
10773
- i0__namespace.ɵɵtemplate(1, CaseEditPageComponent_ng_container_1_Template, 3, 2, "ng-container", 0);
10774
- i0__namespace.ɵɵtemplate(2, CaseEditPageComponent_div_2_Template, 1, 0, "div", 1);
10775
- i0__namespace.ɵɵtemplate(3, CaseEditPageComponent_ng_template_3_Template, 2, 5, "ng-template", null, 2, i0__namespace.ɵɵtemplateRefExtractor);
10776
- i0__namespace.ɵɵtemplate(5, CaseEditPageComponent_ng_template_5_Template, 1, 1, "ng-template", null, 3, i0__namespace.ɵɵtemplateRefExtractor);
10777
- i0__namespace.ɵɵtemplate(7, CaseEditPageComponent_div_7_Template, 4, 1, "div", 4);
10778
- i0__namespace.ɵɵtemplate(8, CaseEditPageComponent_div_8_Template, 10, 0, "div", 5);
10779
- i0__namespace.ɵɵtemplate(9, CaseEditPageComponent_div_9_Template, 6, 2, "div", 5);
10780
- i0__namespace.ɵɵelementStart(10, "ccd-callback-errors", 6);
10781
- i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditPageComponent_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { return ctx.callbackErrorsNotify($event); });
11067
+ i0__namespace.ɵɵtemplate(0, CaseEditPageComponent_ng_container_0_Template, 3, 2, "ng-container", 0);
11068
+ i0__namespace.ɵɵtemplate(1, CaseEditPageComponent_div_1_Template, 1, 0, "div", 1);
11069
+ i0__namespace.ɵɵtemplate(2, CaseEditPageComponent_ng_template_2_Template, 2, 5, "ng-template", null, 2, i0__namespace.ɵɵtemplateRefExtractor);
11070
+ i0__namespace.ɵɵtemplate(4, CaseEditPageComponent_ng_template_4_Template, 1, 1, "ng-template", null, 3, i0__namespace.ɵɵtemplateRefExtractor);
11071
+ i0__namespace.ɵɵtemplate(6, CaseEditPageComponent_div_6_Template, 4, 1, "div", 4);
11072
+ i0__namespace.ɵɵelement(7, "ccd-case-edit-generic-errors", 5);
11073
+ i0__namespace.ɵɵelementStart(8, "ccd-callback-errors", 6);
11074
+ i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditPageComponent_Template_ccd_callback_errors_callbackErrorsContext_8_listener($event) { return ctx.callbackErrorsNotify($event); });
10782
11075
  i0__namespace.ɵɵelementEnd();
10783
- i0__namespace.ɵɵelementStart(11, "div", 7);
10784
- i0__namespace.ɵɵtemplate(12, CaseEditPageComponent_form_12_Template, 14, 9, "form", 8);
11076
+ i0__namespace.ɵɵelementStart(9, "div", 7);
11077
+ i0__namespace.ɵɵtemplate(10, CaseEditPageComponent_form_10_Template, 14, 9, "form", 8);
10785
11078
  i0__namespace.ɵɵelementEnd();
11079
+ i0__namespace.ɵɵtemplate(11, CaseEditPageComponent_ccd_case_event_completion_11_Template, 1, 1, "ccd-case-event-completion", 9);
10786
11080
  }
10787
11081
  if (rf & 2) {
10788
- var _r3 = i0__namespace.ɵɵreference(4);
10789
- var _r5 = i0__namespace.ɵɵreference(6);
10790
- i0__namespace.ɵɵproperty("ngIf", ctx.showSpinner);
10791
- i0__namespace.ɵɵadvance(1);
11082
+ var _r2 = i0__namespace.ɵɵreference(3);
11083
+ var _r4 = i0__namespace.ɵɵreference(5);
10792
11084
  i0__namespace.ɵɵproperty("ngIf", ctx.currentPage);
10793
11085
  i0__namespace.ɵɵadvance(1);
10794
- i0__namespace.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen", _r3)("ngIfElse", _r5);
11086
+ i0__namespace.ɵɵproperty("ngIf", ctx.getCaseTitle())("ngIfThen", _r2)("ngIfElse", _r4);
10795
11087
  i0__namespace.ɵɵadvance(5);
10796
11088
  i0__namespace.ɵɵproperty("ngIf", ctx.validationErrors.length > 0);
10797
11089
  i0__namespace.ɵɵadvance(1);
10798
- i0__namespace.ɵɵproperty("ngIf", ctx.error && !(ctx.error.callbackErrors || ctx.error.callbackWarnings || ctx.error.details));
10799
- i0__namespace.ɵɵadvance(1);
10800
- i0__namespace.ɵɵproperty("ngIf", ctx.error && ctx.error.details);
11090
+ i0__namespace.ɵɵproperty("error", ctx.caseEdit.error);
10801
11091
  i0__namespace.ɵɵadvance(1);
10802
- i0__namespace.ɵɵproperty("triggerTextContinue", ctx.triggerTextStart)("triggerTextIgnore", ctx.triggerTextIgnoreWarnings)("callbackErrorsSubject", ctx.callbackErrorsSubject);
11092
+ i0__namespace.ɵɵproperty("triggerTextContinue", ctx.triggerTextStart)("triggerTextIgnore", ctx.triggerTextIgnoreWarnings)("callbackErrorsSubject", ctx.caseEdit.callbackErrorsSubject);
10803
11093
  i0__namespace.ɵɵadvance(2);
10804
11094
  i0__namespace.ɵɵproperty("ngIf", ctx.currentPage);
11095
+ i0__namespace.ɵɵadvance(1);
11096
+ i0__namespace.ɵɵproperty("ngIf", ctx.caseEdit.isEventCompletionChecksRequired);
10805
11097
  }
10806
11098
  }, styles: [".rightBorderSeparator[_ngcontent-%COMP%]{border-right:4px solid #ffcc02}.validation-error[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:#d4351c}"] });
10807
11099
  (function () {
@@ -10812,7 +11104,7 @@
10812
11104
  templateUrl: 'case-edit-page.html',
10813
11105
  styleUrls: ['./case-edit-page.scss']
10814
11106
  }]
10815
- }], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$3.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }]; }, null);
11107
+ }], function () { return [{ type: CaseEditComponent }, { type: i1__namespace$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0__namespace.ChangeDetectorRef }, { type: PageValidationService }, { type: i1__namespace$3.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }]; }, null);
10816
11108
  })();
10817
11109
 
10818
11110
  var CallbackErrorsContext = /** @class */ (function () {
@@ -10919,11 +11211,6 @@
10919
11211
  }
10920
11212
  });
10921
11213
  };
10922
- CallbackErrorsComponent.prototype.ngOnDestroy = function () {
10923
- if (this.callbackErrorsSubject) {
10924
- this.callbackErrorsSubject.unsubscribe();
10925
- }
10926
- };
10927
11214
  CallbackErrorsComponent.prototype.hasErrors = function () {
10928
11215
  return this.error
10929
11216
  && this.error.callbackErrors
@@ -11312,59 +11599,95 @@
11312
11599
  (function (DisplayContextCustomParameter) {
11313
11600
  DisplayContextCustomParameter["CaseFileView"] = "CaseFileView";
11314
11601
  DisplayContextCustomParameter["LinkedCases"] = "LinkedCases";
11315
- DisplayContextCustomParameter["QueryManagement"] = "QueryManagement";
11316
11602
  })(DisplayContextCustomParameter || (DisplayContextCustomParameter = {}));
11317
11603
 
11318
- function CaseFileViewFieldComponent_div_0_Template(rf, ctx) {
11604
+ function CaseFileViewFieldComponent_ng_container_0_li_7_Template(rf, ctx) {
11319
11605
  if (rf & 1) {
11320
- i0__namespace.ɵɵelementStart(0, "div", 2);
11321
- i0__namespace.ɵɵelementStart(1, "h1", 3);
11606
+ i0__namespace.ɵɵelementStart(0, "li");
11607
+ i0__namespace.ɵɵelementStart(1, "a", 8);
11608
+ i0__namespace.ɵɵtext(2);
11609
+ i0__namespace.ɵɵelementEnd();
11610
+ i0__namespace.ɵɵelementEnd();
11611
+ }
11612
+ if (rf & 2) {
11613
+ var errorMessage_r4 = ctx.$implicit;
11614
+ i0__namespace.ɵɵadvance(2);
11615
+ i0__namespace.ɵɵtextInterpolate(errorMessage_r4);
11616
+ }
11617
+ }
11618
+ function CaseFileViewFieldComponent_ng_container_0_Template(rf, ctx) {
11619
+ if (rf & 1) {
11620
+ i0__namespace.ɵɵelementContainerStart(0);
11621
+ i0__namespace.ɵɵelementStart(1, "div", 2);
11622
+ i0__namespace.ɵɵelementStart(2, "div", 3);
11623
+ i0__namespace.ɵɵelementStart(3, "h2", 4);
11624
+ i0__namespace.ɵɵtext(4, " There is a problem ");
11625
+ i0__namespace.ɵɵelementEnd();
11626
+ i0__namespace.ɵɵelementStart(5, "div", 5);
11627
+ i0__namespace.ɵɵelementStart(6, "ul", 6);
11628
+ i0__namespace.ɵɵtemplate(7, CaseFileViewFieldComponent_ng_container_0_li_7_Template, 3, 1, "li", 7);
11629
+ i0__namespace.ɵɵelementEnd();
11630
+ i0__namespace.ɵɵelementEnd();
11631
+ i0__namespace.ɵɵelementEnd();
11632
+ i0__namespace.ɵɵelementEnd();
11633
+ i0__namespace.ɵɵelementContainerEnd();
11634
+ }
11635
+ if (rf & 2) {
11636
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
11637
+ i0__namespace.ɵɵadvance(7);
11638
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r0.errorMessages);
11639
+ }
11640
+ }
11641
+ function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
11642
+ if (rf & 1) {
11643
+ i0__namespace.ɵɵelementStart(0, "div", 9);
11644
+ i0__namespace.ɵɵelementStart(1, "h1", 10);
11322
11645
  i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
11323
11646
  i0__namespace.ɵɵelementEnd();
11324
- i0__namespace.ɵɵelementStart(3, "p", 4);
11647
+ i0__namespace.ɵɵelementStart(3, "p", 11);
11325
11648
  i0__namespace.ɵɵtext(4, "Try again later.");
11326
11649
  i0__namespace.ɵɵelementEnd();
11327
11650
  i0__namespace.ɵɵelementEnd();
11328
11651
  }
11329
11652
  }
11330
- function CaseFileViewFieldComponent_div_1_ng_container_8_Template(rf, ctx) {
11653
+ function CaseFileViewFieldComponent_div_2_ng_container_8_Template(rf, ctx) {
11331
11654
  if (rf & 1) {
11332
11655
  i0__namespace.ɵɵelementContainerStart(0);
11333
- i0__namespace.ɵɵelement(1, "mv-media-viewer", 11);
11656
+ i0__namespace.ɵɵelement(1, "mv-media-viewer", 18);
11334
11657
  i0__namespace.ɵɵelementContainerEnd();
11335
11658
  }
11336
11659
  if (rf & 2) {
11337
- var ctx_r2 = i0__namespace.ɵɵnextContext(2);
11660
+ var ctx_r5 = i0__namespace.ɵɵnextContext(2);
11338
11661
  i0__namespace.ɵɵadvance(1);
11339
- i0__namespace.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
11662
+ i0__namespace.ɵɵproperty("url", ctx_r5.currentDocument.document_binary_url)("downloadFileName", ctx_r5.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r5.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
11340
11663
  }
11341
11664
  }
11342
- function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
11665
+ function CaseFileViewFieldComponent_div_2_Template(rf, ctx) {
11343
11666
  if (rf & 1) {
11344
- var _r4_1 = i0__namespace.ɵɵgetCurrentView();
11667
+ var _r7_1 = i0__namespace.ɵɵgetCurrentView();
11345
11668
  i0__namespace.ɵɵelementStart(0, "div");
11346
- i0__namespace.ɵɵelementStart(1, "h2", 5);
11669
+ i0__namespace.ɵɵelementStart(1, "h2", 12);
11347
11670
  i0__namespace.ɵɵtext(2, "Case file");
11348
11671
  i0__namespace.ɵɵelementEnd();
11349
- i0__namespace.ɵɵelementStart(3, "div", 6);
11350
- i0__namespace.ɵɵelementStart(4, "div", 7);
11351
- i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 8);
11352
- i0__namespace.ɵɵlistener("clickedDocument", function CaseFileViewFieldComponent_div_1_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(); return ctx_r3.setMediaViewerFile($event); })("moveDocument", function CaseFileViewFieldComponent_div_1_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.moveDocument($event); });
11672
+ i0__namespace.ɵɵelementStart(3, "div", 13);
11673
+ i0__namespace.ɵɵelementStart(4, "div", 14);
11674
+ i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 15);
11675
+ i0__namespace.ɵɵlistener("clickedDocument", function CaseFileViewFieldComponent_div_2_Template_ccd_case_file_view_folder_clickedDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r6 = i0__namespace.ɵɵnextContext(); ctx_r6.setMediaViewerFile($event); return ctx_r6.resetErrorMessages(); })("moveDocument", function CaseFileViewFieldComponent_div_2_Template_ccd_case_file_view_folder_moveDocument_5_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r8 = i0__namespace.ɵɵnextContext(); return ctx_r8.moveDocument($event); });
11353
11676
  i0__namespace.ɵɵelementEnd();
11354
11677
  i0__namespace.ɵɵelementEnd();
11355
- i0__namespace.ɵɵelement(6, "div", 9);
11356
- i0__namespace.ɵɵelementStart(7, "div", 10);
11357
- i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
11678
+ i0__namespace.ɵɵelement(6, "div", 16);
11679
+ i0__namespace.ɵɵelementStart(7, "div", 17);
11680
+ i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_2_ng_container_8_Template, 2, 7, "ng-container", 0);
11358
11681
  i0__namespace.ɵɵelementEnd();
11359
11682
  i0__namespace.ɵɵelementEnd();
11360
11683
  i0__namespace.ɵɵelementEnd();
11361
11684
  }
11362
11685
  if (rf & 2) {
11363
- var ctx_r1 = i0__namespace.ɵɵnextContext();
11686
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
11364
11687
  i0__namespace.ɵɵadvance(5);
11365
- i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$)("allowMoving", ctx_r1.allowMoving);
11688
+ i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r2.categoriesAndDocuments$)("allowMoving", ctx_r2.allowMoving);
11366
11689
  i0__namespace.ɵɵadvance(3);
11367
- i0__namespace.ɵɵproperty("ngIf", ctx_r1.currentDocument);
11690
+ i0__namespace.ɵɵproperty("ngIf", ctx_r2.currentDocument);
11368
11691
  }
11369
11692
  }
11370
11693
  var CaseFileViewFieldComponent = /** @class */ (function () {
@@ -11377,6 +11700,7 @@
11377
11700
  this.sessionStorageService = sessionStorageService;
11378
11701
  this.allowMoving = true;
11379
11702
  this.getCategoriesAndDocumentsError = false;
11703
+ this.errorMessages = [];
11380
11704
  }
11381
11705
  CaseFileViewFieldComponent.prototype.ngOnInit = function () {
11382
11706
  var _this = this;
@@ -11428,11 +11752,26 @@
11428
11752
  var _this = this;
11429
11753
  var cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
11430
11754
  var loadingToken = this.loadingService.register();
11431
- this.caseFileViewService.updateDocumentCategory(cid, this.caseVersion, data.document.attribute_path, data.newCategory).subscribe(function (_) {
11432
- location.reload();
11755
+ this.caseFileViewService.updateDocumentCategory(cid, this.caseVersion, data.document.attribute_path, data.newCategory)
11756
+ .pipe(operators.finalize(function () {
11433
11757
  _this.loadingService.unregister(loadingToken);
11758
+ }), operators.catchError(function () {
11759
+ _this.errorMessages = ['You do not have permission to move this document to the selected folder.'];
11760
+ return rxjs.of(null);
11761
+ }))
11762
+ .subscribe(function (res) {
11763
+ if (res) {
11764
+ _this.resetErrorMessages();
11765
+ _this.reloadPage();
11766
+ }
11434
11767
  });
11435
11768
  };
11769
+ CaseFileViewFieldComponent.prototype.reloadPage = function () {
11770
+ location.reload();
11771
+ };
11772
+ CaseFileViewFieldComponent.prototype.resetErrorMessages = function () {
11773
+ this.errorMessages = [];
11774
+ };
11436
11775
  CaseFileViewFieldComponent.prototype.ngOnDestroy = function () {
11437
11776
  if (this.categoriesAndDocumentsSubscription) {
11438
11777
  this.categoriesAndDocumentsSubscription.unsubscribe();
@@ -11442,12 +11781,15 @@
11442
11781
  }());
11443
11782
  CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
11444
11783
  CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseFileViewService), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(LoadingService), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
11445
- CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
11784
+ CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 3, vars: 3, consts: [[4, "ngIf"], ["class", "govuk-grid-column-two-thirds", 4, "ngIf"], ["id", "case-file-view-field-errors", "data-module", "govuk-error-summary", 1, "govuk-error-summary", "govuk-!-margin-bottom-4"], ["role", "alert"], [1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0);"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
11446
11785
  if (rf & 1) {
11447
- i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
11448
- i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
11786
+ i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_ng_container_0_Template, 8, 1, "ng-container", 0);
11787
+ i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 5, 0, "div", 1);
11788
+ i0__namespace.ɵɵtemplate(2, CaseFileViewFieldComponent_div_2_Template, 9, 3, "div", 0);
11449
11789
  }
11450
11790
  if (rf & 2) {
11791
+ i0__namespace.ɵɵproperty("ngIf", ctx.errorMessages == null ? null : ctx.errorMessages.length);
11792
+ i0__namespace.ɵɵadvance(1);
11451
11793
  i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
11452
11794
  i0__namespace.ɵɵadvance(1);
11453
11795
  i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
@@ -14706,7 +15048,7 @@
14706
15048
  var ctx_r4 = i0__namespace.ɵɵnextContext();
14707
15049
  i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$K, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
14708
15050
  i0__namespace.ɵɵadvance(1);
14709
- i0__namespace.ɵɵproperty("id", ctx_r4.createElementId(radioButton_r5.code))("name", ctx_r4.createElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
15051
+ i0__namespace.ɵɵproperty("id", ctx_r4.createElementId(radioButton_r5.code))("name", ctx_r4.id())("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
14710
15052
  i0__namespace.ɵɵadvance(1);
14711
15053
  i0__namespace.ɵɵproperty("for", ctx_r4.createElementId(radioButton_r5.code));
14712
15054
  i0__namespace.ɵɵadvance(1);
@@ -14721,7 +15063,6 @@
14721
15063
  }
14722
15064
  WriteDynamicRadioListFieldComponent.prototype.ngOnInit = function () {
14723
15065
  /**
14724
- *
14725
15066
  * Reassigning list_items from formatted_list when list_items is empty
14726
15067
  */
14727
15068
  if (!this.caseField.list_items && this.caseField.formatted_value && this.caseField.formatted_value.list_items) {
@@ -15375,12 +15716,11 @@
15375
15716
  }
15376
15717
  var WriteJudicialUserFieldComponent = /** @class */ (function (_super) {
15377
15718
  __extends(WriteJudicialUserFieldComponent, _super);
15378
- function WriteJudicialUserFieldComponent(route, cd, jurisdictionService) {
15719
+ function WriteJudicialUserFieldComponent(jurisdictionService, sessionStorageService, caseFlagRefDataService) {
15379
15720
  var _this = _super.call(this) || this;
15380
- _this.route = route;
15381
- _this.cd = cd;
15382
15721
  _this.jurisdictionService = jurisdictionService;
15383
- _this.JURISDICTION_ID = 'jid';
15722
+ _this.sessionStorageService = sessionStorageService;
15723
+ _this.caseFlagRefDataService = caseFlagRefDataService;
15384
15724
  _this.MINIMUM_SEARCH_CHARACTERS = 2;
15385
15725
  _this.IDAM_ID = 'idamId';
15386
15726
  _this.PERSONAL_CODE = 'personalCode';
@@ -15390,18 +15730,46 @@
15390
15730
  }
15391
15731
  WriteJudicialUserFieldComponent.prototype.ngOnInit = function () {
15392
15732
  var _this = this;
15393
- this.jurisdictionId = this.route.snapshot.params[this.JURISDICTION_ID];
15733
+ var _a;
15394
15734
  this.judicialUserFormGroup = this.registerControl(new i2.FormGroup({}), true);
15395
15735
  this.idamIdFormControl = new i2.FormControl('');
15396
15736
  this.judicialUserFormGroup.addControl(this.IDAM_ID, this.idamIdFormControl);
15397
15737
  this.personalCodeFormControl = new i2.FormControl('');
15398
15738
  this.judicialUserFormGroup.addControl(this.PERSONAL_CODE, this.personalCodeFormControl);
15399
- this.sub = this.idamIdFormControl.valueChanges.pipe(operators.tap(function () { return _this.showAutocomplete = false; }), operators.tap(function () { return _this.filteredJudicialUsers = []; }), operators.debounceTime(300), operators.filter(function (searchTerm) { return searchTerm && searchTerm.length > _this.MINIMUM_SEARCH_CHARACTERS; }), operators.switchMap(function (searchTerm) { return _this.filter(searchTerm).pipe(operators.tap(function () { return _this.showAutocomplete = true; }), operators.catchError(function () { return _this.filteredJudicialUsers = []; })); })).subscribe(function (judicialUsers) {
15739
+ this.setJurisdictionAndCaseType();
15740
+ this.sub = this.idamIdFormControl.valueChanges.pipe(operators.tap(function () { return _this.showAutocomplete = false; }), operators.tap(function () { return _this.filteredJudicialUsers = []; }), operators.debounceTime(300), operators.filter(function (searchTerm) { return searchTerm && searchTerm.length > _this.MINIMUM_SEARCH_CHARACTERS; }), operators.switchMap(function (searchTerm) { return _this.filterJudicialUsers(searchTerm).pipe(operators.tap(function () { return _this.showAutocomplete = true; }), operators.catchError(function () { return _this.filteredJudicialUsers = []; })); })).subscribe(function (judicialUsers) {
15400
15741
  _this.filteredJudicialUsers = judicialUsers;
15401
15742
  });
15743
+ if ((_a = this.caseField.value) === null || _a === void 0 ? void 0 : _a.personalCode) {
15744
+ this.loadJudicialUser(this.caseField.value.personalCode);
15745
+ }
15402
15746
  };
15403
- WriteJudicialUserFieldComponent.prototype.filter = function (searchTerm) {
15404
- return this.jurisdictionService.searchJudicialUsers(searchTerm, this.jurisdictionId);
15747
+ WriteJudicialUserFieldComponent.prototype.filterJudicialUsers = function (searchTerm) {
15748
+ var _this = this;
15749
+ return this.caseFlagRefDataService.getHmctsServiceDetailsByCaseType(this.caseType).pipe(
15750
+ // If an error occurs retrieving HMCTS service details by case type ID, try by service name instead
15751
+ operators.catchError(function (_) { return _this.caseFlagRefDataService.getHmctsServiceDetailsByServiceName(_this.jurisdiction); }),
15752
+ // Use switchMap to return an inner Observable of the flag types data, having received the service details
15753
+ // including service_code. This avoids having nested `subscribe`s, which is an anti-pattern!
15754
+ operators.switchMap(function (serviceDetails) { return _this.jurisdictionService.searchJudicialUsers(searchTerm, serviceDetails[0].service_code); }));
15755
+ };
15756
+ WriteJudicialUserFieldComponent.prototype.loadJudicialUser = function (personalCode) {
15757
+ var _this = this;
15758
+ if (personalCode) {
15759
+ this.jurisdictionService.searchJudicialUsersByPersonalCodes([personalCode]).subscribe(function (judicialUsers) {
15760
+ var judicialUser = judicialUsers[0];
15761
+ _this.idamIdFormControl.setValue(judicialUser.fullName + " (" + judicialUser.emailId + ")");
15762
+ _this.personalCodeFormControl.setValue(judicialUser.personalCode);
15763
+ });
15764
+ }
15765
+ };
15766
+ WriteJudicialUserFieldComponent.prototype.setJurisdictionAndCaseType = function () {
15767
+ var caseInfoStr = this.sessionStorageService.getItem('caseInfo');
15768
+ if (caseInfoStr) {
15769
+ var caseInfo = JSON.parse(caseInfoStr);
15770
+ this.jurisdiction = caseInfo === null || caseInfo === void 0 ? void 0 : caseInfo.jurisdiction;
15771
+ this.caseType = caseInfo === null || caseInfo === void 0 ? void 0 : caseInfo.caseType;
15772
+ }
15405
15773
  };
15406
15774
  WriteJudicialUserFieldComponent.prototype.onSelectionChange = function (judicialUser) {
15407
15775
  this.idamIdFormControl.setValue(judicialUser.fullName + " (" + judicialUser.emailId + ")");
@@ -15414,7 +15782,7 @@
15414
15782
  };
15415
15783
  return WriteJudicialUserFieldComponent;
15416
15784
  }(AbstractFieldWriteComponent));
15417
- WriteJudicialUserFieldComponent.ɵfac = function WriteJudicialUserFieldComponent_Factory(t) { return new (t || WriteJudicialUserFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(JurisdictionService)); };
15785
+ WriteJudicialUserFieldComponent.ɵfac = function WriteJudicialUserFieldComponent_Factory(t) { return new (t || WriteJudicialUserFieldComponent)(i0__namespace.ɵɵdirectiveInject(JurisdictionService), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService)); };
15418
15786
  WriteJudicialUserFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteJudicialUserFieldComponent, selectors: [["ccd-write-judicial-user-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 9, vars: 9, consts: [[1, "form-group", 3, "formGroup"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], [1, "form-control", "bottom-30", 3, "id", "formControl", "matAutocomplete"], ["autoActiveFirstOption", ""], ["autoComplete", "matAutocomplete"], ["class", "select-option", 3, "ngClass", "value", "onSelectionChange", 4, "ngFor", "ngForOf"], ["class", "select-option", 4, "ngIf"], [1, "form-label"], [1, "form-hint"], [1, "select-option", 3, "ngClass", "value", "onSelectionChange"], [1, "select-option"]], template: function WriteJudicialUserFieldComponent_Template(rf, ctx) {
15419
15787
  if (rf & 1) {
15420
15788
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -15445,7 +15813,7 @@
15445
15813
  i0__namespace.ɵɵadvance(1);
15446
15814
  i0__namespace.ɵɵproperty("ngIf", !(ctx.filteredJudicialUsers == null ? null : ctx.filteredJudicialUsers.length) && ctx.showAutocomplete);
15447
15815
  }
15448
- }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i5__namespace.MatAutocompleteTrigger, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i5__namespace.MatAutocomplete, i1__namespace.NgForOf, i6__namespace.MatOption, i1__namespace.NgClass], pipes: [FieldLabelPipe], styles: [".mat-option[_ngcontent-%COMP%]:hover{background:#2596be}.mat-option.select-option[_ngcontent-%COMP%]:hover{background:#1d70b8;color:#fff}.hide-autocomplete[_ngcontent-%COMP%]{display:none}"] });
15816
+ }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i4__namespace.MatAutocompleteTrigger, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i4__namespace.MatAutocomplete, i1__namespace.NgForOf, i5__namespace.MatOption, i1__namespace.NgClass], pipes: [FieldLabelPipe], styles: [".mat-option[_ngcontent-%COMP%]:hover{background:#2596be}.mat-option.select-option[_ngcontent-%COMP%]:hover{background:#1d70b8;color:#fff}.hide-autocomplete[_ngcontent-%COMP%]{display:none}"] });
15449
15817
  (function () {
15450
15818
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteJudicialUserFieldComponent, [{
15451
15819
  type: i0.Component,
@@ -15454,7 +15822,7 @@
15454
15822
  styleUrls: ['./write-judicial-user-field.component.scss'],
15455
15823
  templateUrl: './write-judicial-user-field.component.html'
15456
15824
  }]
15457
- }], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: i0__namespace.ChangeDetectorRef }, { type: JurisdictionService }]; }, null);
15825
+ }], function () { return [{ type: JurisdictionService }, { type: SessionStorageService }, { type: CaseFlagRefdataService }]; }, null);
15458
15826
  })();
15459
15827
 
15460
15828
  var LabelFieldComponent = /** @class */ (function () {
@@ -15768,9 +16136,7 @@
15768
16136
  });
15769
16137
  };
15770
16138
  BeforeYouStartComponent.prototype.onBack = function () {
15771
- this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(function () {
15772
- window.location.hash = 'Linked cases';
15773
- });
16139
+ this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId], { fragment: 'Linked cases' });
15774
16140
  };
15775
16141
  return BeforeYouStartComponent;
15776
16142
  }());
@@ -17286,9 +17652,7 @@
17286
17652
  this.serverLinkedApiError = this.linkedCasesService.serverLinkedApiError;
17287
17653
  };
17288
17654
  NoLinkedCasesComponent.prototype.onBack = function () {
17289
- this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId]).then(function () {
17290
- window.location.hash = 'Linked cases';
17291
- });
17655
+ this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseId], { fragment: 'Linked cases' });
17292
17656
  };
17293
17657
  return NoLinkedCasesComponent;
17294
17658
  }());
@@ -17754,9 +18118,7 @@
17754
18118
  }
17755
18119
  };
17756
18120
  ReadLinkedCasesFieldComponent.prototype.reloadCurrentRoute = function () {
17757
- this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseDetails.case_id]).then(function () {
17758
- window.location.hash = 'Linked cases';
17759
- });
18121
+ this.router.navigate(['cases', 'case-details', this.linkedCasesService.caseDetails.case_id], { fragment: 'Linked cases' });
17760
18122
  };
17761
18123
  ReadLinkedCasesFieldComponent.prototype.getFailureLinkedToNotification = function (evt) {
17762
18124
  this.isServerLinkedToError = true;
@@ -19469,255 +19831,6 @@
19469
19831
  }], null, null);
19470
19832
  })();
19471
19833
 
19472
- var partyMessagesMockData = [
19473
- {
19474
- partyName: 'John Smith - Appellant',
19475
- roleOnCase: null,
19476
- partyMessages: [
19477
- {
19478
- id: 'case-message-001',
19479
- subject: 'Review attached document',
19480
- name: 'Maggie Conroy',
19481
- body: 'Please review attached document and advise if hearing should proceed?',
19482
- attachments: [],
19483
- isHearingRelated: true,
19484
- hearingDate: '10 Jan 2023',
19485
- createdOn: new Date(2023, 0, 3),
19486
- createdBy: '1111-1111-1111-1111'
19487
- },
19488
- {
19489
- id: 'case-message-002',
19490
- subject: 'Games',
19491
- name: 'Maggie Conroy',
19492
- body: 'Can I play games in my phone when my solicitor is talking?',
19493
- attachments: [],
19494
- isHearingRelated: true,
19495
- hearingDate: '10 Jan 2023',
19496
- createdOn: new Date(2023, 0, 3),
19497
- createdBy: '1111-1111-1111-1111'
19498
- },
19499
- {
19500
- id: 'case-message-003',
19501
- name: 'Maggie Conroy',
19502
- body: 'Using mobile phone is strictly prohibited in the court room.',
19503
- attachments: [],
19504
- isHearingRelated: true,
19505
- hearingDate: '10 Jan 2023',
19506
- createdOn: new Date(2023, 0, 4),
19507
- createdBy: '2222-2222-2222-2222',
19508
- parentId: 'case-message-002'
19509
- }
19510
- ]
19511
- },
19512
- {
19513
- partyName: 'Kevin Peterson - Respondent',
19514
- roleOnCase: null,
19515
- partyMessages: [
19516
- {
19517
- id: 'case-message-005',
19518
- subject: 'Add respondent detention order',
19519
- name: 'Maggie Conroy',
19520
- body: 'Please add respondent detention order to the file XX20230423-DX.',
19521
- attachments: [],
19522
- isHearingRelated: false,
19523
- createdOn: new Date(2023, 1, 5),
19524
- createdBy: '1111-1111-1111-1111'
19525
- },
19526
- {
19527
- id: 'case-message-006',
19528
- name: 'Maggie Conroy',
19529
- body: 'I confirm that the respondent detention order is now added to the file XX20230423-DX.',
19530
- attachments: [],
19531
- isHearingRelated: false,
19532
- createdOn: new Date(2023, 1, 6),
19533
- createdBy: '2222-2222-2222-2222',
19534
- parentId: 'case-message-005'
19535
- },
19536
- {
19537
- id: 'case-message-007',
19538
- subject: 'Food',
19539
- name: 'Maggie Conroy',
19540
- body: 'Can I eat in the hearings?',
19541
- attachments: [],
19542
- isHearingRelated: true,
19543
- hearingDate: '10 Jan 2023',
19544
- createdOn: new Date(2023, 0, 3),
19545
- createdBy: '1111-1111-1111-1111'
19546
- },
19547
- {
19548
- id: 'case-message-008',
19549
- name: 'Maggie Conroy',
19550
- body: 'Consumption of food is not allowed when a hearing is taking place.',
19551
- attachments: [],
19552
- isHearingRelated: true,
19553
- hearingDate: '10 Jan 2023',
19554
- createdOn: new Date(2023, 0, 5),
19555
- createdBy: '2222-2222-2222-2222',
19556
- parentId: 'case-message-007'
19557
- },
19558
- {
19559
- id: 'case-message-009',
19560
- subject: 'Bring relatives',
19561
- name: 'Maggie Conroy',
19562
- body: 'Can I bring my grandma with me so she get out from the residence?',
19563
- attachments: [],
19564
- isHearingRelated: true,
19565
- hearingDate: '10 Jan 2023',
19566
- createdOn: new Date(2023, 0, 6),
19567
- createdBy: '1111-1111-1111-1111'
19568
- },
19569
- {
19570
- id: 'case-message-010',
19571
- name: 'Maggie Conroy',
19572
- body: 'Sorry, only those required for the hearing should be present inside the court room.',
19573
- attachments: [],
19574
- isHearingRelated: true,
19575
- hearingDate: '10 Jan 2023',
19576
- createdOn: new Date(2023, 0, 7),
19577
- createdBy: '2222-2222-2222-2222',
19578
- parentId: 'case-message-009'
19579
- }
19580
- ]
19581
- }
19582
- ];
19583
-
19584
- var QueryCreateComponent = /** @class */ (function () {
19585
- function QueryCreateComponent() {
19586
- }
19587
- QueryCreateComponent.prototype.ngOnInit = function () {
19588
- };
19589
- return QueryCreateComponent;
19590
- }());
19591
- QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
19592
- QueryCreateComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCreateComponent, selectors: [["ccd-query-create"]], decls: 0, vars: 0, template: function QueryCreateComponent_Template(rf, ctx) { }, encapsulation: 2 });
19593
- (function () {
19594
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryCreateComponent, [{
19595
- type: i0.Component,
19596
- args: [{
19597
- selector: 'ccd-query-create',
19598
- templateUrl: './query-create.component.html',
19599
- }]
19600
- }], function () { return []; }, null);
19601
- })();
19602
-
19603
- var QueryDetailComponent = /** @class */ (function () {
19604
- function QueryDetailComponent() {
19605
- }
19606
- QueryDetailComponent.prototype.ngOnInit = function () {
19607
- };
19608
- return QueryDetailComponent;
19609
- }());
19610
- QueryDetailComponent.ɵfac = function QueryDetailComponent_Factory(t) { return new (t || QueryDetailComponent)(); };
19611
- QueryDetailComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryDetailComponent, selectors: [["ccd-query-detail"]], decls: 0, vars: 0, template: function QueryDetailComponent_Template(rf, ctx) { }, encapsulation: 2 });
19612
- (function () {
19613
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryDetailComponent, [{
19614
- type: i0.Component,
19615
- args: [{
19616
- selector: 'ccd-query-detail',
19617
- templateUrl: './query-detail.component.html',
19618
- }]
19619
- }], function () { return []; }, null);
19620
- })();
19621
-
19622
- var QueryListComponent = /** @class */ (function () {
19623
- function QueryListComponent() {
19624
- }
19625
- QueryListComponent.prototype.ngOnInit = function () {
19626
- };
19627
- return QueryListComponent;
19628
- }());
19629
- QueryListComponent.ɵfac = function QueryListComponent_Factory(t) { return new (t || QueryListComponent)(); };
19630
- QueryListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryListComponent, selectors: [["ccd-query-list"]], inputs: { partyMessages: "partyMessages" }, decls: 0, vars: 0, template: function QueryListComponent_Template(rf, ctx) { }, encapsulation: 2 });
19631
- (function () {
19632
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryListComponent, [{
19633
- type: i0.Component,
19634
- args: [{
19635
- selector: 'ccd-query-list',
19636
- templateUrl: './query-list.component.html',
19637
- }]
19638
- }], function () { return []; }, { partyMessages: [{
19639
- type: i0.Input
19640
- }] });
19641
- })();
19642
-
19643
- var QueryManagementUtils = /** @class */ (function () {
19644
- function QueryManagementUtils() {
19645
- }
19646
- QueryManagementUtils.extractCaseQueriesFromCaseField = function () {
19647
- };
19648
- return QueryManagementUtils;
19649
- }());
19650
- QueryManagementUtils.ɵfac = function QueryManagementUtils_Factory(t) { return new (t || QueryManagementUtils)(); };
19651
- QueryManagementUtils.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
19652
- (function () {
19653
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryManagementUtils, [{
19654
- type: i0.Injectable
19655
- }], null, null);
19656
- })();
19657
-
19658
- var ReadQueryManagementFieldComponent = /** @class */ (function (_super) {
19659
- __extends(ReadQueryManagementFieldComponent, _super);
19660
- function ReadQueryManagementFieldComponent(route) {
19661
- var _this = _super.call(this) || this;
19662
- _this.route = route;
19663
- return _this;
19664
- }
19665
- ReadQueryManagementFieldComponent.prototype.ngOnInit = function () {
19666
- if (this.context === exports.PaletteContext.DEFAULT) {
19667
- // EUI-8303 Using mock data until CCD is ready with the API and data contract
19668
- this.partyMessages = partyMessagesMockData;
19669
- // TODO: Actual implementation once the CCD API and data contract is available
19670
- // Each parties will have a separate collection of party messages
19671
- // Find whether queries tab is available in the case data
19672
- var queriesTab = this.route.snapshot.data.case.tabs
19673
- .filter(function (tab) { return tab.fields && tab.fields
19674
- .some(function (caseField) { return caseField.id === 'QueryManagement'; }); });
19675
- // Loop through the list of parties and their case queries collections
19676
- QueryManagementUtils.extractCaseQueriesFromCaseField();
19677
- }
19678
- };
19679
- return ReadQueryManagementFieldComponent;
19680
- }(AbstractFieldReadComponent));
19681
- ReadQueryManagementFieldComponent.ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute)); };
19682
- ReadQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "partyMessages"]], template: function ReadQueryManagementFieldComponent_Template(rf, ctx) {
19683
- if (rf & 1) {
19684
- i0__namespace.ɵɵelement(0, "ccd-query-list", 0);
19685
- }
19686
- if (rf & 2) {
19687
- i0__namespace.ɵɵproperty("partyMessages", ctx.partyMessages);
19688
- }
19689
- }, directives: [QueryListComponent], encapsulation: 2 });
19690
- (function () {
19691
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
19692
- type: i0.Component,
19693
- args: [{
19694
- selector: 'ccd-read-query-management-field',
19695
- templateUrl: './read-query-management-field.component.html',
19696
- }]
19697
- }], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
19698
- })();
19699
-
19700
- var WriteQueryManagementFieldComponent = /** @class */ (function (_super) {
19701
- __extends(WriteQueryManagementFieldComponent, _super);
19702
- function WriteQueryManagementFieldComponent() {
19703
- return _super.call(this) || this;
19704
- }
19705
- WriteQueryManagementFieldComponent.prototype.ngOnInit = function () {
19706
- };
19707
- return WriteQueryManagementFieldComponent;
19708
- }(AbstractFieldWriteComponent));
19709
- WriteQueryManagementFieldComponent.ɵfac = function WriteQueryManagementFieldComponent_Factory(t) { return new (t || WriteQueryManagementFieldComponent)(); };
19710
- WriteQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteQueryManagementFieldComponent, selectors: [["ccd-write-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 0, vars: 0, template: function WriteQueryManagementFieldComponent_Template(rf, ctx) { }, encapsulation: 2 });
19711
- (function () {
19712
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteQueryManagementFieldComponent, [{
19713
- type: i0.Component,
19714
- args: [{
19715
- selector: 'ccd-write-query-management-field',
19716
- templateUrl: './write-query-management-field.component.html',
19717
- }]
19718
- }], function () { return []; }, null);
19719
- })();
19720
-
19721
19834
  var ReadTextAreaFieldComponent = /** @class */ (function (_super) {
19722
19835
  __extends(ReadTextAreaFieldComponent, _super);
19723
19836
  function ReadTextAreaFieldComponent() {
@@ -20237,7 +20350,6 @@
20237
20350
  this.componentLauncherRegistry = (_b = {},
20238
20351
  _b[DisplayContextCustomParameter.CaseFileView] = [CaseFileViewFieldComponent, CaseFileViewFieldComponent],
20239
20352
  _b[DisplayContextCustomParameter.LinkedCases] = [WriteLinkedCasesFieldComponent, ReadLinkedCasesFieldComponent],
20240
- _b[DisplayContextCustomParameter.QueryManagement] = [WriteQueryManagementFieldComponent, ReadQueryManagementFieldComponent],
20241
20353
  _b);
20242
20354
  }
20243
20355
  PaletteService.prototype.getFieldComponentClass = function (caseField, write) {
@@ -20490,7 +20602,7 @@
20490
20602
  i0__namespace.ɵɵclassProp("grey-bar", ctx.canHaveGreyBar && !ctx.caseField.hiddenCannotChange);
20491
20603
  i0__namespace.ɵɵproperty("hidden", ctx.caseField.hidden);
20492
20604
  }
20493
- }, styles: [".form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:5px solid #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
20605
+ }, styles: [".form [_nghost-%COMP%] .grey-bar>*>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:5px solid #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
20494
20606
  (function () {
20495
20607
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FieldWriteComponent, [{
20496
20608
  type: i0.Component,
@@ -20590,7 +20702,7 @@
20590
20702
  i0__namespace.ɵɵadvance(1);
20591
20703
  i0__namespace.ɵɵproperty("ngIf", ctx.withLabel && !ctx.isLabel() && (!ctx.isComplex() || ctx.isCaseLink()))("ngIfElse", _r1);
20592
20704
  }
20593
- }, directives: [i1__namespace.NgIf, i1__namespace.NgTemplateOutlet], styles: [".case-field[_ngcontent-%COMP%]:after{content:\"\";display:block;clear:both}.case-field[_ngcontent-%COMP%]{box-sizing:border-box;margin-bottom:15px}@media (min-width:641px){.case-field[_ngcontent-%COMP%]{margin-bottom:30px}}.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{display:block;color:#0b0c0c;padding-bottom:2px;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:5px solid #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
20705
+ }, directives: [i1__namespace.NgIf, i1__namespace.NgTemplateOutlet], styles: [".case-field[_ngcontent-%COMP%]:after{content:\"\";display:block;clear:both}.case-field[_ngcontent-%COMP%]{box-sizing:border-box;margin-bottom:15px}@media (min-width:641px){.case-field[_ngcontent-%COMP%]{margin-bottom:30px}}.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{display:block;color:#0b0c0c;padding-bottom:2px;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__label[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:16px;line-height:1.25}@media (min-width:641px){.case-field[_ngcontent-%COMP%] .case-field__value[_ngcontent-%COMP%]{font-size:19px;line-height:1.3157894737}}.form [_nghost-%COMP%] .grey-bar>*>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:5px solid #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
20594
20706
  var ɵFieldReadLabelComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(FieldReadLabelComponent);
20595
20707
  (function () {
20596
20708
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FieldReadLabelComponent, [{
@@ -20789,7 +20901,7 @@
20789
20901
  i0__namespace.ɵɵadvance(2);
20790
20902
  i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
20791
20903
  }
20792
- }, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder,.folder:last-child{border-bottom:1px solid #ccc}.folders>.folder,input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel,.close{cursor:pointer}.cdk-overlay-pane{overflow:auto}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}"], encapsulation: 2 });
20904
+ }, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder:last-child{border-bottom:1px solid #ccc}.folders>.folder,input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel,.close{cursor:pointer}.cdk-overlay-pane{overflow:auto}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}"], encapsulation: 2 });
20793
20905
  (function () {
20794
20906
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
20795
20907
  type: i0.Component,
@@ -20901,7 +21013,7 @@
20901
21013
  i0__namespace.ɵɵadvance(4);
20902
21014
  i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
20903
21015
  }
20904
- }, directives: [i1__namespace$4.CdkOverlayOrigin, i1__namespace$4.CdkConnectedOverlay, i1__namespace.NgIf, i1__namespace.NgForOf], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-6px;cursor:pointer}.overlay-menu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__item[_ngcontent-%COMP%], .overlay-menu__title[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__item[_ngcontent-%COMP%]:last-child, .overlay-menu__title[_ngcontent-%COMP%]:last-child{border:none}.overlay-menu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlay-menu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlay-menu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
21016
+ }, directives: [i1__namespace$4.CdkOverlayOrigin, i1__namespace$4.CdkConnectedOverlay, i1__namespace.NgIf, i1__namespace.NgForOf], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-4px;cursor:pointer}.overlay-menu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__item[_ngcontent-%COMP%], .overlay-menu__title[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__item[_ngcontent-%COMP%]:last-child, .overlay-menu__title[_ngcontent-%COMP%]:last-child{border:none}.overlay-menu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlay-menu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlay-menu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
20905
21017
  (function () {
20906
21018
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
20907
21019
  type: i0.Component,
@@ -21515,21 +21627,21 @@
21515
21627
  i0__namespace.ɵɵelementEnd();
21516
21628
  }
21517
21629
  }
21518
- function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_15_Template(rf, ctx) {
21630
+ function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template(rf, ctx) {
21519
21631
  if (rf & 1) {
21520
21632
  i0__namespace.ɵɵelementStart(0, "strong", 19);
21521
21633
  i0__namespace.ɵɵtext(1, "Active");
21522
21634
  i0__namespace.ɵɵelementEnd();
21523
21635
  }
21524
21636
  }
21525
- function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_16_Template(rf, ctx) {
21637
+ function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template(rf, ctx) {
21526
21638
  if (rf & 1) {
21527
21639
  i0__namespace.ɵɵelementStart(0, "strong", 20);
21528
21640
  i0__namespace.ɵɵtext(1, "Inactive");
21529
21641
  i0__namespace.ɵɵelementEnd();
21530
21642
  }
21531
21643
  }
21532
- function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template(rf, ctx) {
21644
+ function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_19_Template(rf, ctx) {
21533
21645
  if (rf & 1) {
21534
21646
  i0__namespace.ɵɵelementStart(0, "strong", 20);
21535
21647
  i0__namespace.ɵɵtext(1, "Requested");
@@ -21546,22 +21658,25 @@
21546
21658
  i0__namespace.ɵɵelementStart(4, "div");
21547
21659
  i0__namespace.ɵɵtext(5);
21548
21660
  i0__namespace.ɵɵelementEnd();
21549
- i0__namespace.ɵɵelementEnd();
21550
- i0__namespace.ɵɵelementStart(6, "td", 16);
21661
+ i0__namespace.ɵɵelementStart(6, "div");
21551
21662
  i0__namespace.ɵɵtext(7);
21552
21663
  i0__namespace.ɵɵelementEnd();
21664
+ i0__namespace.ɵɵelementEnd();
21553
21665
  i0__namespace.ɵɵelementStart(8, "td", 16);
21554
21666
  i0__namespace.ɵɵtext(9);
21555
- i0__namespace.ɵɵpipe(10, "date");
21556
21667
  i0__namespace.ɵɵelementEnd();
21557
- i0__namespace.ɵɵelementStart(11, "td", 16);
21558
- i0__namespace.ɵɵtext(12);
21559
- i0__namespace.ɵɵpipe(13, "date");
21668
+ i0__namespace.ɵɵelementStart(10, "td", 16);
21669
+ i0__namespace.ɵɵtext(11);
21670
+ i0__namespace.ɵɵpipe(12, "date");
21671
+ i0__namespace.ɵɵelementEnd();
21672
+ i0__namespace.ɵɵelementStart(13, "td", 16);
21673
+ i0__namespace.ɵɵtext(14);
21674
+ i0__namespace.ɵɵpipe(15, "date");
21560
21675
  i0__namespace.ɵɵelementEnd();
21561
- i0__namespace.ɵɵelementStart(14, "td", 16);
21562
- i0__namespace.ɵɵtemplate(15, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_15_Template, 2, 0, "strong", 17);
21563
- i0__namespace.ɵɵtemplate(16, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_16_Template, 2, 0, "strong", 18);
21564
- i0__namespace.ɵɵtemplate(17, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template, 2, 0, "strong", 18);
21676
+ i0__namespace.ɵɵelementStart(16, "td", 16);
21677
+ i0__namespace.ɵɵtemplate(17, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template, 2, 0, "strong", 17);
21678
+ i0__namespace.ɵɵtemplate(18, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template, 2, 0, "strong", 18);
21679
+ i0__namespace.ɵɵtemplate(19, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_19_Template, 2, 0, "strong", 18);
21565
21680
  i0__namespace.ɵɵelementEnd();
21566
21681
  i0__namespace.ɵɵelementEnd();
21567
21682
  }
@@ -21573,11 +21688,13 @@
21573
21688
  i0__namespace.ɵɵadvance(2);
21574
21689
  i0__namespace.ɵɵtextInterpolate(flagDetail_r4.otherDescription);
21575
21690
  i0__namespace.ɵɵadvance(2);
21691
+ i0__namespace.ɵɵtextInterpolate(flagDetail_r4.subTypeValue);
21692
+ i0__namespace.ɵɵadvance(2);
21576
21693
  i0__namespace.ɵɵtextInterpolate(flagDetail_r4.flagComment);
21577
21694
  i0__namespace.ɵɵadvance(2);
21578
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(10, 8, flagDetail_r4.dateTimeCreated, "dd LLL yyyy"));
21695
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(12, 9, flagDetail_r4.dateTimeCreated, "dd LLL yyyy"));
21579
21696
  i0__namespace.ɵɵadvance(3);
21580
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13, 11, flagDetail_r4.dateTimeModified, "dd LLL yyyy"));
21697
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(15, 12, flagDetail_r4.dateTimeModified, "dd LLL yyyy"));
21581
21698
  i0__namespace.ɵɵadvance(3);
21582
21699
  i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.ACTIVE);
21583
21700
  i0__namespace.ɵɵadvance(1);
@@ -21589,7 +21706,7 @@
21589
21706
  function CaseFlagTableComponent_table_0_tbody_17_Template(rf, ctx) {
21590
21707
  if (rf & 1) {
21591
21708
  i0__namespace.ɵɵelementStart(0, "tbody", 10);
21592
- i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template, 18, 14, "tr", 14);
21709
+ i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template, 20, 15, "tr", 14);
21593
21710
  i0__namespace.ɵɵelementEnd();
21594
21711
  }
21595
21712
  if (rf & 2) {
@@ -22252,7 +22369,7 @@
22252
22369
  i0__namespace.ɵɵadvance(1);
22253
22370
  i0__namespace.ɵɵproperty("ngIf", ctx.isCheckboxEnabled);
22254
22371
  }
22255
- }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i3__namespace$1.MatInput, i2__namespace.DefaultValueAccessor, i5__namespace.MatAutocompleteTrigger, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i5__namespace.MatAutocomplete, i1__namespace.NgForOf, i6__namespace.MatOption], pipes: [i1__namespace.AsyncPipe], styles: [".autocomplete__input--show-all-values[_ngcontent-%COMP%]{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down[_ngcontent-%COMP%]{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu[_ngcontent-%COMP%]{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible[_ngcontent-%COMP%]{display:block}.autocomplete__menu--hidden[_ngcontent-%COMP%]{display:none}.autocomplete__menu--overlay[_ngcontent-%COMP%]{box-shadow:0 2px 6px rgba(0,0,0,.256863);left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline[_ngcontent-%COMP%]{position:relative}.autocomplete__option[_ngcontent-%COMP%]{border-left-width:0;border-bottom:1px solid #b1b4b6;border-right-width:0;border-top-width:1px;cursor:pointer;display:block;position:relative}.autocomplete__option[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{pointer-events:none}.autocomplete__option[_ngcontent-%COMP%]:first-of-type{border-top-width:0}.autocomplete__option[_ngcontent-%COMP%]:last-of-type{border-bottom-width:0}.autocomplete__option--odd[_ngcontent-%COMP%]{background-color:#fafafa}.autocomplete__option--focused[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results[_ngcontent-%COMP%]{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.25}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{padding:5px}@media (min-width:641px){.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.31579}}.div-action[_ngcontent-%COMP%]{display:inline-block}.add-location[_ngcontent-%COMP%]{display:inline}.remove-location-button[_ngcontent-%COMP%]{margin:5px}.hide-autocomplete[_ngcontent-%COMP%]{display:none}.auto-complete-container[_ngcontent-%COMP%]{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input[_ngcontent-%COMP%]{line-height:24px;font-size:19px}.hidden[_ngcontent-%COMP%]{display:none}.search-language__input[_ngcontent-%COMP%]{position:relative;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='40' height='40'%3E%3Cpath d='M25.7 24.8L21.9 21c.7-1 1.1-2.2 1.1-3.5 0-3.6-2.9-6.5-6.5-6.5S10 13.9 10 17.5s2.9 6.5 6.5 6.5c1.6 0 3-.6 4.1-1.5l3.7 3.7 1.4-1.4zM12 17.5c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5-2 4.5-4.5 4.5-4.5-2-4.5-4.5z' fill='%23505a5f'%3E%3C/path%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center left -2px;background-size:40px 40px;padding-left:35px}"] });
22372
+ }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i3__namespace$1.MatInput, i2__namespace.DefaultValueAccessor, i4__namespace.MatAutocompleteTrigger, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i4__namespace.MatAutocomplete, i1__namespace.NgForOf, i5__namespace.MatOption], pipes: [i1__namespace.AsyncPipe], styles: [".autocomplete__input--show-all-values[_ngcontent-%COMP%]{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down[_ngcontent-%COMP%]{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu[_ngcontent-%COMP%]{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible[_ngcontent-%COMP%]{display:block}.autocomplete__menu--hidden[_ngcontent-%COMP%]{display:none}.autocomplete__menu--overlay[_ngcontent-%COMP%]{box-shadow:0 2px 6px rgba(0,0,0,.256863);left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline[_ngcontent-%COMP%]{position:relative}.autocomplete__option[_ngcontent-%COMP%]{border-left-width:0;border-bottom:1px solid #b1b4b6;border-right-width:0;border-top-width:1px;cursor:pointer;display:block;position:relative}.autocomplete__option[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{pointer-events:none}.autocomplete__option[_ngcontent-%COMP%]:first-of-type{border-top-width:0}.autocomplete__option[_ngcontent-%COMP%]:last-of-type{border-bottom-width:0}.autocomplete__option--odd[_ngcontent-%COMP%]{background-color:#fafafa}.autocomplete__option--focused[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results[_ngcontent-%COMP%]{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.25}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{padding:5px}@media (min-width:641px){.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.31579}}.div-action[_ngcontent-%COMP%]{display:inline-block}.add-location[_ngcontent-%COMP%]{display:inline}.remove-location-button[_ngcontent-%COMP%]{margin:5px}.hide-autocomplete[_ngcontent-%COMP%]{display:none}.auto-complete-container[_ngcontent-%COMP%]{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input[_ngcontent-%COMP%]{line-height:24px;font-size:19px}.hidden[_ngcontent-%COMP%]{display:none}.search-language__input[_ngcontent-%COMP%]{position:relative;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='40' height='40'%3E%3Cpath d='M25.7 24.8L21.9 21c.7-1 1.1-2.2 1.1-3.5 0-3.6-2.9-6.5-6.5-6.5S10 13.9 10 17.5s2.9 6.5 6.5 6.5c1.6 0 3-.6 4.1-1.5l3.7 3.7 1.4-1.4zM12 17.5c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5-2 4.5-4.5 4.5-4.5-2-4.5-4.5z' fill='%23505a5f'%3E%3C/path%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center left -2px;background-size:40px 40px;padding-left:35px}"] });
22256
22373
  (function () {
22257
22374
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SearchLanguageInterpreterComponent, [{
22258
22375
  type: i0.Component,
@@ -24172,7 +24289,7 @@
24172
24289
  };
24173
24290
  return DatetimePickerComponent;
24174
24291
  }(AbstractFormFieldComponent));
24175
- DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { return new (t || DatetimePickerComponent)(i0__namespace.ɵɵdirectiveInject(FormatTranslatorService), i0__namespace.ɵɵdirectiveInject(i4.NGX_MAT_DATE_FORMATS)); };
24292
+ DatetimePickerComponent.ɵfac = function DatetimePickerComponent_Factory(t) { return new (t || DatetimePickerComponent)(i0__namespace.ɵɵdirectiveInject(FormatTranslatorService), i0__namespace.ɵɵdirectiveInject(i4$1.NGX_MAT_DATE_FORMATS)); };
24176
24293
  DatetimePickerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: DatetimePickerComponent, selectors: [["ccd-datetime-picker"]], viewQuery: function DatetimePickerComponent_Query(rf, ctx) {
24177
24294
  if (rf & 1) {
24178
24295
  i0__namespace.ɵɵviewQuery(_c0$i, 1);
@@ -24184,10 +24301,10 @@
24184
24301
  i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.inputElement = _t.first);
24185
24302
  }
24186
24303
  }, inputs: { dateControl: "dateControl" }, features: [i0__namespace.ɵɵProvidersFeature([
24187
- { provide: i4.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
24188
- { provide: i4.NgxMatDateAdapter,
24304
+ { provide: i4$1.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
24305
+ { provide: i4$1.NgxMatDateAdapter,
24189
24306
  useClass: momentAdapter.NgxMatMomentAdapter,
24190
- deps: [i6.MAT_DATE_LOCALE, momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
24307
+ deps: [i5.MAT_DATE_LOCALE, momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
24191
24308
  },
24192
24309
  { provide: momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
24193
24310
  ]), i0__namespace.ɵɵInheritDefinitionFeature], decls: 14, vars: 26, consts: [[1, "govuk-form-group", "bottom-30", 3, "id", "ngClass"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "datepicker-container"], ["ng-model-options", "{timezone:'utc'}", 1, "govuk-input", 3, "min", "max", "formControl", "ngxMatDatetimePicker", "focusin", "focusout", "dateChange"], ["input", ""], ["matSuffix", "", "id", "pickerOpener", 3, "for"], [3, "color", "touchUi", "hideTime", "startView", "stepHour", "stepSecond", "stepMinute", "showSeconds", "showSpinners", "disableMinute", "enableMeridian", "yearSelected", "monthSelected", "opened"], ["picker", ""], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function DatetimePickerComponent_Template(rf, ctx) {
@@ -24234,7 +24351,7 @@
24234
24351
  i0__namespace.ɵɵadvance(1);
24235
24352
  i0__namespace.ɵɵproperty("color", ctx.color)("touchUi", ctx.touchUi)("hideTime", ctx.hideTime)("startView", ctx.startView)("stepHour", ctx.stepHour)("stepSecond", ctx.stepSecond)("stepMinute", ctx.stepMinute)("showSeconds", ctx.showSeconds)("showSpinners", ctx.showSpinners)("disableMinute", ctx.disableMinute)("enableMeridian", ctx.enableMeridian);
24236
24353
  }
24237
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i4__namespace.NgxMatDatetimeInput, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i5__namespace$1.MatDatepickerToggle, i6__namespace$1.MatSuffix, i4__namespace.NgxMatDatetimePicker], pipes: [FieldLabelPipe, FirstErrorPipe], styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #fd0;border:1px solid #000}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #fd0}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.cdk-overlay-container .mat-datepicker-content{border:1px solid #000;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:first-of-type:after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:first-of-type{visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:last-child [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child.ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \u25B2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\u25BC\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid #000;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px 0 #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}"], encapsulation: 2 });
24354
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i4__namespace$1.NgxMatDatetimeInput, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i5__namespace$1.MatDatepickerToggle, i6__namespace.MatSuffix, i4__namespace$1.NgxMatDatetimePicker], pipes: [FieldLabelPipe, FirstErrorPipe], styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #fd0;border:1px solid #000}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #fd0}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.cdk-overlay-container .mat-datepicker-content{border:1px solid #000;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid #000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:first-of-type:after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:first-of-type th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:first-of-type{visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #fd0;border:2px solid #000;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:last-child [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:last-child.ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \u25B2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\u25BC\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid #000;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px 0 #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #fd0}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}"], encapsulation: 2 });
24238
24355
  (function () {
24239
24356
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DatetimePickerComponent, [{
24240
24357
  type: i0.Component,
@@ -24244,10 +24361,10 @@
24244
24361
  styleUrls: ['./datetime-picker.component.scss'],
24245
24362
  encapsulation: i0.ViewEncapsulation.None,
24246
24363
  providers: [
24247
- { provide: i4.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
24248
- { provide: i4.NgxMatDateAdapter,
24364
+ { provide: i4$1.NGX_MAT_DATE_FORMATS, useValue: CUSTOM_MOMENT_FORMATS },
24365
+ { provide: i4$1.NgxMatDateAdapter,
24249
24366
  useClass: momentAdapter.NgxMatMomentAdapter,
24250
- deps: [i6.MAT_DATE_LOCALE, momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
24367
+ deps: [i5.MAT_DATE_LOCALE, momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
24251
24368
  },
24252
24369
  { provide: momentAdapter.NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
24253
24370
  ]
@@ -24255,7 +24372,7 @@
24255
24372
  }], function () {
24256
24373
  return [{ type: FormatTranslatorService }, { type: undefined, decorators: [{
24257
24374
  type: i0.Inject,
24258
- args: [i4.NGX_MAT_DATE_FORMATS]
24375
+ args: [i4$1.NGX_MAT_DATE_FORMATS]
24259
24376
  }] }];
24260
24377
  }, { datetimePicker: [{
24261
24378
  type: i0.ViewChild,
@@ -25810,7 +25927,6 @@
25810
25927
  ReadComplexFieldCollectionTableComponent,
25811
25928
  ReadCaseFlagFieldComponent,
25812
25929
  ReadLinkedCasesFieldComponent,
25813
- ReadQueryManagementFieldComponent,
25814
25930
  // Write
25815
25931
  WriteJudicialUserFieldComponent,
25816
25932
  WriteAddressFieldComponent,
@@ -25830,7 +25946,6 @@
25830
25946
  WriteDateFieldComponent,
25831
25947
  WriteCaseFlagFieldComponent,
25832
25948
  WriteLinkedCasesFieldComponent,
25833
- WriteQueryManagementFieldComponent,
25834
25949
  // new
25835
25950
  WriteYesNoFieldComponent,
25836
25951
  WriteOrganisationFieldComponent,
@@ -25857,27 +25972,13 @@
25857
25972
  ReadDynamicMultiSelectListFieldComponent,
25858
25973
  ReadDynamicListFieldComponent,
25859
25974
  ReadDynamicRadioListFieldComponent,
25860
- // Components for Case flags
25861
- CaseFlagTableComponent,
25862
- SelectFlagTypeComponent,
25863
- SearchLanguageInterpreterComponent,
25864
- SelectFlagLocationComponent,
25865
- ManageCaseFlagsComponent,
25866
- AddCommentsComponent,
25867
- UpdateFlagComponent,
25868
- CaseFlagSummaryListComponent,
25869
- // Components for linked cases
25870
25975
  LinkedCasesToTableComponent,
25871
25976
  LinkedCasesFromTableComponent,
25872
25977
  BeforeYouStartComponent,
25873
25978
  LinkCasesComponent,
25874
25979
  CheckYourAnswersComponent,
25875
25980
  UnLinkCasesComponent,
25876
- NoLinkedCasesComponent,
25877
- // Components for query management
25878
- QueryCreateComponent,
25879
- QueryDetailComponent,
25880
- QueryListComponent
25981
+ NoLinkedCasesComponent
25881
25982
  ];
25882
25983
  var PaletteModule = /** @class */ (function () {
25883
25984
  function PaletteModule() {
@@ -25896,10 +25997,10 @@
25896
25997
  FileUploadStateService,
25897
25998
  FileUploadProgressGuard,
25898
25999
  WindowService,
25899
- LinkedCasesService,
25900
26000
  CommonDataService,
25901
26001
  JurisdictionService,
25902
- { provide: i6.MAT_DATE_LOCALE, useValue: 'en-GB' }
26002
+ LinkedCasesService,
26003
+ { provide: i5.MAT_DATE_LOCALE, useValue: 'en-GB' }
25903
26004
  ], imports: [[
25904
26005
  i1.CommonModule,
25905
26006
  i1$1.RouterModule,
@@ -25916,13 +26017,13 @@
25916
26017
  TabsModule,
25917
26018
  LabelSubstitutorModule,
25918
26019
  i1$5.NgxMdModule,
25919
- i4.NgxMatDatetimePickerModule,
25920
- i4.NgxMatTimepickerModule,
25921
- i4.NgxMatNativeDateModule,
25922
- i6$1.MatFormFieldModule,
26020
+ i4$1.NgxMatDatetimePickerModule,
26021
+ i4$1.NgxMatTimepickerModule,
26022
+ i4$1.NgxMatNativeDateModule,
26023
+ i6.MatFormFieldModule,
25923
26024
  i3$1.MatInputModule,
25924
26025
  i5$1.MatDatepickerModule,
25925
- i5.MatAutocompleteModule,
26026
+ i4.MatAutocompleteModule,
25926
26027
  i7.CdkTreeModule,
25927
26028
  i1$4.OverlayModule,
25928
26029
  i3.PaymentLibModule,
@@ -25930,9 +26031,9 @@
25930
26031
  i1$3.MatDialogModule,
25931
26032
  i11.MediaViewerModule,
25932
26033
  LoadingModule
25933
- ], i4.NgxMatDatetimePickerModule,
25934
- i4.NgxMatNativeDateModule,
25935
- i4.NgxMatTimepickerModule,
26034
+ ], i4$1.NgxMatDatetimePickerModule,
26035
+ i4$1.NgxMatNativeDateModule,
26036
+ i4$1.NgxMatTimepickerModule,
25936
26037
  TabsModule,
25937
26038
  PaletteUtilsModule,
25938
26039
  PipesModule] });
@@ -25941,7 +26042,15 @@
25941
26042
  FixedRadioListPipe,
25942
26043
  DynamicListPipe,
25943
26044
  DynamicRadioListPipe,
25944
- DocumentUrlPipe, UnsupportedFieldComponent,
26045
+ DocumentUrlPipe,
26046
+ CaseFlagTableComponent,
26047
+ SelectFlagTypeComponent,
26048
+ SearchLanguageInterpreterComponent,
26049
+ SelectFlagLocationComponent,
26050
+ ManageCaseFlagsComponent,
26051
+ AddCommentsComponent,
26052
+ UpdateFlagComponent,
26053
+ CaseFlagSummaryListComponent, UnsupportedFieldComponent,
25945
26054
  DatetimePickerComponent,
25946
26055
  WaysToPayFieldComponent,
25947
26056
  MarkdownComponent,
@@ -25985,7 +26094,6 @@
25985
26094
  ReadComplexFieldCollectionTableComponent,
25986
26095
  ReadCaseFlagFieldComponent,
25987
26096
  ReadLinkedCasesFieldComponent,
25988
- ReadQueryManagementFieldComponent,
25989
26097
  // Write
25990
26098
  WriteJudicialUserFieldComponent,
25991
26099
  WriteAddressFieldComponent,
@@ -26005,7 +26113,6 @@
26005
26113
  WriteDateFieldComponent,
26006
26114
  WriteCaseFlagFieldComponent,
26007
26115
  WriteLinkedCasesFieldComponent,
26008
- WriteQueryManagementFieldComponent,
26009
26116
  // new
26010
26117
  WriteYesNoFieldComponent,
26011
26118
  WriteOrganisationFieldComponent,
@@ -26032,27 +26139,13 @@
26032
26139
  ReadDynamicMultiSelectListFieldComponent,
26033
26140
  ReadDynamicListFieldComponent,
26034
26141
  ReadDynamicRadioListFieldComponent,
26035
- // Components for Case flags
26036
- CaseFlagTableComponent,
26037
- SelectFlagTypeComponent,
26038
- SearchLanguageInterpreterComponent,
26039
- SelectFlagLocationComponent,
26040
- ManageCaseFlagsComponent,
26041
- AddCommentsComponent,
26042
- UpdateFlagComponent,
26043
- CaseFlagSummaryListComponent,
26044
- // Components for linked cases
26045
26142
  LinkedCasesToTableComponent,
26046
26143
  LinkedCasesFromTableComponent,
26047
26144
  BeforeYouStartComponent,
26048
26145
  LinkCasesComponent,
26049
26146
  CheckYourAnswersComponent,
26050
26147
  UnLinkCasesComponent,
26051
- NoLinkedCasesComponent,
26052
- // Components for query management
26053
- QueryCreateComponent,
26054
- QueryDetailComponent,
26055
- QueryListComponent], imports: [i1.CommonModule,
26148
+ NoLinkedCasesComponent], imports: [i1.CommonModule,
26056
26149
  i1$1.RouterModule,
26057
26150
  i2.FormsModule,
26058
26151
  i2.ReactiveFormsModule,
@@ -26067,20 +26160,20 @@
26067
26160
  TabsModule,
26068
26161
  LabelSubstitutorModule,
26069
26162
  i1$5.NgxMdModule,
26070
- i4.NgxMatDatetimePickerModule,
26071
- i4.NgxMatTimepickerModule,
26072
- i4.NgxMatNativeDateModule,
26073
- i6$1.MatFormFieldModule,
26163
+ i4$1.NgxMatDatetimePickerModule,
26164
+ i4$1.NgxMatTimepickerModule,
26165
+ i4$1.NgxMatNativeDateModule,
26166
+ i6.MatFormFieldModule,
26074
26167
  i3$1.MatInputModule,
26075
26168
  i5$1.MatDatepickerModule,
26076
- i5.MatAutocompleteModule,
26169
+ i4.MatAutocompleteModule,
26077
26170
  i7.CdkTreeModule,
26078
26171
  i1$4.OverlayModule,
26079
26172
  i3.PaymentLibModule, i2__namespace$1.ScrollToModule, i1$3.MatDialogModule,
26080
26173
  i11.MediaViewerModule,
26081
- LoadingModule], exports: [i4.NgxMatDatetimePickerModule,
26082
- i4.NgxMatNativeDateModule,
26083
- i4.NgxMatTimepickerModule,
26174
+ LoadingModule], exports: [i4$1.NgxMatDatetimePickerModule,
26175
+ i4$1.NgxMatNativeDateModule,
26176
+ i4$1.NgxMatTimepickerModule,
26084
26177
  TabsModule,
26085
26178
  PaletteUtilsModule,
26086
26179
  PipesModule, UnsupportedFieldComponent,
@@ -26127,7 +26220,6 @@
26127
26220
  ReadComplexFieldCollectionTableComponent,
26128
26221
  ReadCaseFlagFieldComponent,
26129
26222
  ReadLinkedCasesFieldComponent,
26130
- ReadQueryManagementFieldComponent,
26131
26223
  // Write
26132
26224
  WriteJudicialUserFieldComponent,
26133
26225
  WriteAddressFieldComponent,
@@ -26147,7 +26239,6 @@
26147
26239
  WriteDateFieldComponent,
26148
26240
  WriteCaseFlagFieldComponent,
26149
26241
  WriteLinkedCasesFieldComponent,
26150
- WriteQueryManagementFieldComponent,
26151
26242
  // new
26152
26243
  WriteYesNoFieldComponent,
26153
26244
  WriteOrganisationFieldComponent,
@@ -26174,27 +26265,13 @@
26174
26265
  ReadDynamicMultiSelectListFieldComponent,
26175
26266
  ReadDynamicListFieldComponent,
26176
26267
  ReadDynamicRadioListFieldComponent,
26177
- // Components for Case flags
26178
- CaseFlagTableComponent,
26179
- SelectFlagTypeComponent,
26180
- SearchLanguageInterpreterComponent,
26181
- SelectFlagLocationComponent,
26182
- ManageCaseFlagsComponent,
26183
- AddCommentsComponent,
26184
- UpdateFlagComponent,
26185
- CaseFlagSummaryListComponent,
26186
- // Components for linked cases
26187
26268
  LinkedCasesToTableComponent,
26188
26269
  LinkedCasesFromTableComponent,
26189
26270
  BeforeYouStartComponent,
26190
26271
  LinkCasesComponent,
26191
26272
  CheckYourAnswersComponent,
26192
26273
  UnLinkCasesComponent,
26193
- NoLinkedCasesComponent,
26194
- // Components for query management
26195
- QueryCreateComponent,
26196
- QueryDetailComponent,
26197
- QueryListComponent] });
26274
+ NoLinkedCasesComponent] });
26198
26275
  })();
26199
26276
  (function () {
26200
26277
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteModule, [{
@@ -26216,13 +26293,13 @@
26216
26293
  TabsModule,
26217
26294
  LabelSubstitutorModule,
26218
26295
  i1$5.NgxMdModule,
26219
- i4.NgxMatDatetimePickerModule,
26220
- i4.NgxMatTimepickerModule,
26221
- i4.NgxMatNativeDateModule,
26222
- i6$1.MatFormFieldModule,
26296
+ i4$1.NgxMatDatetimePickerModule,
26297
+ i4$1.NgxMatTimepickerModule,
26298
+ i4$1.NgxMatNativeDateModule,
26299
+ i6.MatFormFieldModule,
26223
26300
  i3$1.MatInputModule,
26224
26301
  i5$1.MatDatepickerModule,
26225
- i5.MatAutocompleteModule,
26302
+ i4.MatAutocompleteModule,
26226
26303
  i7.CdkTreeModule,
26227
26304
  i1$4.OverlayModule,
26228
26305
  i3.PaymentLibModule,
@@ -26236,12 +26313,20 @@
26236
26313
  FixedRadioListPipe,
26237
26314
  DynamicListPipe,
26238
26315
  DynamicRadioListPipe,
26239
- DocumentUrlPipe
26316
+ DocumentUrlPipe,
26317
+ CaseFlagTableComponent,
26318
+ SelectFlagTypeComponent,
26319
+ SearchLanguageInterpreterComponent,
26320
+ SelectFlagLocationComponent,
26321
+ ManageCaseFlagsComponent,
26322
+ AddCommentsComponent,
26323
+ UpdateFlagComponent,
26324
+ CaseFlagSummaryListComponent
26240
26325
  ], PALETTE_COMPONENTS),
26241
26326
  exports: __spread([
26242
- i4.NgxMatDatetimePickerModule,
26243
- i4.NgxMatNativeDateModule,
26244
- i4.NgxMatTimepickerModule,
26327
+ i4$1.NgxMatDatetimePickerModule,
26328
+ i4$1.NgxMatNativeDateModule,
26329
+ i4$1.NgxMatTimepickerModule,
26245
26330
  TabsModule,
26246
26331
  PaletteUtilsModule,
26247
26332
  PipesModule
@@ -26256,10 +26341,10 @@
26256
26341
  FileUploadStateService,
26257
26342
  FileUploadProgressGuard,
26258
26343
  WindowService,
26259
- LinkedCasesService,
26260
26344
  CommonDataService,
26261
26345
  JurisdictionService,
26262
- { provide: i6.MAT_DATE_LOCALE, useValue: 'en-GB' }
26346
+ LinkedCasesService,
26347
+ { provide: i5.MAT_DATE_LOCALE, useValue: 'en-GB' }
26263
26348
  ],
26264
26349
  entryComponents: [CaseFileViewFolderSelectorComponent]
26265
26350
  }]
@@ -26281,13 +26366,8 @@
26281
26366
  i0__namespace.ɵɵsetComponentScope(ReadComplexFieldTableComponent, [i1__namespace.NgForOf, i1__namespace.NgIf, FieldReadComponent], [ReadFieldsFilterPipe, IsCompoundPipe]);
26282
26367
  i0__namespace.ɵɵsetComponentScope(ReadComplexFieldCollectionTableComponent, [i1__namespace.NgForOf, i1__namespace.NgIf, FieldReadComponent,
26283
26368
  ReadCaseLinkFieldComponent], [ReadFieldsFilterPipe, CcdCollectionTableCaseFieldsFilterPipe, i1__namespace.KeyValuePipe, IsCompoundPipe]);
26284
- i0__namespace.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, CaseFlagSummaryListComponent, i1__namespace.NgSwitchDefault, i1__namespace.NgForOf, i1__namespace.NgIf,
26285
- // Components for Case flags
26286
- CaseFlagTableComponent], []);
26287
- i0__namespace.ɵɵsetComponentScope(ReadLinkedCasesFieldComponent, [
26288
- // Components for linked cases
26289
- LinkedCasesToTableComponent, i1__namespace.NgIf, LinkedCasesFromTableComponent
26290
- ], []);
26369
+ i0__namespace.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, CaseFlagSummaryListComponent, i1__namespace.NgSwitchDefault, i1__namespace.NgForOf, i1__namespace.NgIf, CaseFlagTableComponent], []);
26370
+ i0__namespace.ɵɵsetComponentScope(ReadLinkedCasesFieldComponent, [LinkedCasesToTableComponent, i1__namespace.NgIf, LinkedCasesFromTableComponent], []);
26291
26371
  i0__namespace.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1__namespace.NgIf, i1__namespace.NgClass, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, i2__namespace.SelectControlValueAccessor, i1__namespace.NgForOf, i2__namespace.NgSelectOption, i2__namespace.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe]);
26292
26372
  i0__namespace.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
26293
26373
  i0__namespace.ɵɵsetComponentScope(WriteDocumentFieldComponent, [i1__namespace.NgClass, i1__namespace.NgIf, ReadDocumentFieldComponent], [FieldLabelPipe]);
@@ -26310,43 +26390,12 @@
26310
26390
  i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
26311
26391
  i0__namespace.ɵɵsetComponentScope(
26312
26392
  // ComponentLauncher web components
26313
- CaseFileViewFieldComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.MediaViewerComponent], []);
26314
- i0__namespace.ɵɵsetComponentScope(
26315
- // Components for linked cases
26316
- LinkedCasesToTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
26393
+ CaseFileViewFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, CaseFileViewFolderComponent, i11__namespace.MediaViewerComponent], []);
26394
+ i0__namespace.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
26317
26395
  i0__namespace.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesFromReasonValuePipe]);
26318
26396
  i0__namespace.ɵɵsetComponentScope(LinkCasesComponent, [i1__namespace.NgIf, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i2__namespace.FormArrayName, i1__namespace.NgForOf, i2__namespace.FormGroupName, i2__namespace.CheckboxControlValueAccessor], [CaseReferencePipe, LinkCasesReasonValuePipe]);
26319
26397
  i0__namespace.ɵɵsetComponentScope(CheckYourAnswersComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
26320
26398
 
26321
- var Confirmation = /** @class */ (function () {
26322
- function Confirmation(caseId, status, header, body) {
26323
- this.caseId = caseId;
26324
- this.status = status;
26325
- this.header = header;
26326
- this.body = body;
26327
- }
26328
- Confirmation.prototype.getCaseId = function () {
26329
- return this.caseId;
26330
- };
26331
- Confirmation.prototype.getStatus = function () {
26332
- return this.status;
26333
- };
26334
- Confirmation.prototype.getHeader = function () {
26335
- return this.header;
26336
- };
26337
- Confirmation.prototype.getBody = function () {
26338
- return this.body;
26339
- };
26340
- return Confirmation;
26341
- }());
26342
-
26343
- exports.EventCompletionReturnStates = void 0;
26344
- (function (EventCompletionReturnStates) {
26345
- EventCompletionReturnStates["InProgress"] = "in-progress";
26346
- EventCompletionReturnStates["CompleteEvent"] = "complete-event";
26347
- EventCompletionReturnStates["CancelEvent"] = "cancel-event";
26348
- })(exports.EventCompletionReturnStates || (exports.EventCompletionReturnStates = {}));
26349
-
26350
26399
  function CaseEditSubmitComponent_div_0_div_3_Template(rf, ctx) {
26351
26400
  if (rf & 1) {
26352
26401
  i0__namespace.ɵɵelement(0, "div");
@@ -26370,9 +26419,9 @@
26370
26419
  i0__namespace.ɵɵelementEnd();
26371
26420
  }
26372
26421
  if (rf & 2) {
26373
- var ctx_r12 = i0__namespace.ɵɵnextContext(3);
26422
+ var ctx_r10 = i0__namespace.ɵɵnextContext(3);
26374
26423
  i0__namespace.ɵɵadvance(1);
26375
- i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r12.getCaseId()), "");
26424
+ i0__namespace.ɵɵtextInterpolate1("#", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r10.getCaseId()), "");
26376
26425
  }
26377
26426
  }
26378
26427
  function CaseEditSubmitComponent_div_0_ng_template_6_Template(rf, ctx) {
@@ -26384,313 +26433,249 @@
26384
26433
  i0__namespace.ɵɵproperty("ngIf", ctx_r6.getCaseId());
26385
26434
  }
26386
26435
  }
26387
- function CaseEditSubmitComponent_div_0_div_8_Template(rf, ctx) {
26436
+ function CaseEditSubmitComponent_div_0_ng_container_11_span_3_Template(rf, ctx) {
26388
26437
  if (rf & 1) {
26389
- i0__namespace.ɵɵelementStart(0, "div", 17);
26390
- i0__namespace.ɵɵelementStart(1, "h1", 18);
26391
- i0__namespace.ɵɵtext(2, " Something went wrong ");
26392
- i0__namespace.ɵɵelementEnd();
26393
- i0__namespace.ɵɵelementStart(3, "div", 19);
26394
- i0__namespace.ɵɵelementStart(4, "p");
26395
- i0__namespace.ɵɵtext(5, "We're working to fix the problem. Try again shortly.");
26396
- i0__namespace.ɵɵelementEnd();
26397
- i0__namespace.ɵɵelementStart(6, "p");
26398
- i0__namespace.ɵɵelementStart(7, "a", 20);
26399
- i0__namespace.ɵɵtext(8, "Contact us");
26400
- i0__namespace.ɵɵelementEnd();
26401
- i0__namespace.ɵɵtext(9, " if you're still having problems.");
26402
- i0__namespace.ɵɵelementEnd();
26403
- i0__namespace.ɵɵelementEnd();
26404
- i0__namespace.ɵɵelementEnd();
26405
- }
26406
- }
26407
- function CaseEditSubmitComponent_div_0_div_9_ul_5_li_1_Template(rf, ctx) {
26408
- if (rf & 1) {
26409
- i0__namespace.ɵɵelementStart(0, "li", 25);
26410
- i0__namespace.ɵɵtext(1);
26411
- i0__namespace.ɵɵelementEnd();
26412
- }
26413
- if (rf & 2) {
26414
- var fieldError_r15 = ctx.$implicit;
26415
- i0__namespace.ɵɵadvance(1);
26416
- i0__namespace.ɵɵtextInterpolate(fieldError_r15.message);
26417
- }
26418
- }
26419
- function CaseEditSubmitComponent_div_0_div_9_ul_5_Template(rf, ctx) {
26420
- if (rf & 1) {
26421
- i0__namespace.ɵɵelementStart(0, "ul", 23);
26422
- i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_div_9_ul_5_li_1_Template, 2, 1, "li", 24);
26423
- i0__namespace.ɵɵelementEnd();
26424
- }
26425
- if (rf & 2) {
26426
- var ctx_r13 = i0__namespace.ɵɵnextContext(3);
26427
- i0__namespace.ɵɵadvance(1);
26428
- i0__namespace.ɵɵproperty("ngForOf", ctx_r13.error.details.field_errors);
26429
- }
26430
- }
26431
- function CaseEditSubmitComponent_div_0_div_9_Template(rf, ctx) {
26432
- if (rf & 1) {
26433
- i0__namespace.ɵɵelementStart(0, "div", 17);
26434
- i0__namespace.ɵɵelementStart(1, "h3", 21);
26435
- i0__namespace.ɵɵtext(2, " The event could not be created ");
26436
- i0__namespace.ɵɵelementEnd();
26437
- i0__namespace.ɵɵelementStart(3, "p");
26438
- i0__namespace.ɵɵtext(4);
26439
- i0__namespace.ɵɵelementEnd();
26440
- i0__namespace.ɵɵtemplate(5, CaseEditSubmitComponent_div_0_div_9_ul_5_Template, 2, 1, "ul", 22);
26441
- i0__namespace.ɵɵelementEnd();
26442
- }
26443
- if (rf & 2) {
26444
- var ctx_r8 = i0__namespace.ɵɵnextContext(2);
26445
- i0__namespace.ɵɵadvance(4);
26446
- i0__namespace.ɵɵtextInterpolate(ctx_r8.error.message);
26447
- i0__namespace.ɵɵadvance(1);
26448
- i0__namespace.ɵɵproperty("ngIf", ctx_r8.error.details == null ? null : ctx_r8.error.details.field_errors);
26449
- }
26450
- }
26451
- function CaseEditSubmitComponent_div_0_ng_container_12_span_3_Template(rf, ctx) {
26452
- if (rf & 1) {
26453
- i0__namespace.ɵɵelementStart(0, "span", 29);
26438
+ i0__namespace.ɵɵelementStart(0, "span", 20);
26454
26439
  i0__namespace.ɵɵtext(1, "Check the information below carefully.");
26455
26440
  i0__namespace.ɵɵelementEnd();
26456
26441
  }
26457
26442
  }
26458
- function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_th_2_Template(rf, ctx) {
26443
+ function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_th_2_Template(rf, ctx) {
26459
26444
  if (rf & 1) {
26460
- i0__namespace.ɵɵelementStart(0, "th", 36);
26461
- i0__namespace.ɵɵelementStart(1, "span", 29);
26445
+ i0__namespace.ɵɵelementStart(0, "th", 27);
26446
+ i0__namespace.ɵɵelementStart(1, "span", 20);
26462
26447
  i0__namespace.ɵɵtext(2);
26463
26448
  i0__namespace.ɵɵelementEnd();
26464
26449
  i0__namespace.ɵɵelementEnd();
26465
26450
  }
26466
26451
  if (rf & 2) {
26467
- var field_r21 = i0__namespace.ɵɵnextContext(2).$implicit;
26452
+ var field_r16 = i0__namespace.ɵɵnextContext(2).$implicit;
26468
26453
  i0__namespace.ɵɵadvance(2);
26469
- i0__namespace.ɵɵtextInterpolate(field_r21.label);
26454
+ i0__namespace.ɵɵtextInterpolate(field_r16.label);
26470
26455
  }
26471
26456
  }
26472
- function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template(rf, ctx) {
26457
+ function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template(rf, ctx) {
26473
26458
  if (rf & 1) {
26474
- var _r28_1 = i0__namespace.ɵɵgetCurrentView();
26459
+ var _r23_1 = i0__namespace.ɵɵgetCurrentView();
26475
26460
  i0__namespace.ɵɵelementStart(0, "a", 13);
26476
- i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template_a_click_0_listener() { i0__namespace.ɵɵrestoreView(_r28_1); var page_r18 = i0__namespace.ɵɵnextContext(4).$implicit; var ctx_r26 = i0__namespace.ɵɵnextContext(3); return ctx_r26.navigateToPage(page_r18.id); });
26477
- i0__namespace.ɵɵelementStart(1, "span", 29);
26461
+ i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template_a_click_0_listener() { i0__namespace.ɵɵrestoreView(_r23_1); var page_r13 = i0__namespace.ɵɵnextContext(4).$implicit; var ctx_r21 = i0__namespace.ɵɵnextContext(3); return ctx_r21.navigateToPage(page_r13.id); });
26462
+ i0__namespace.ɵɵelementStart(1, "span", 20);
26478
26463
  i0__namespace.ɵɵtext(2, "Change");
26479
26464
  i0__namespace.ɵɵelementEnd();
26480
26465
  i0__namespace.ɵɵelementEnd();
26481
26466
  }
26482
26467
  if (rf & 2) {
26483
- var field_r21 = i0__namespace.ɵɵnextContext(2).$implicit;
26468
+ var field_r16 = i0__namespace.ɵɵnextContext(2).$implicit;
26484
26469
  i0__namespace.ɵɵadvance(1);
26485
- i0__namespace.ɵɵattributeInterpolate1("aria-label", "Change ", field_r21.label, "");
26470
+ i0__namespace.ɵɵattributeInterpolate1("aria-label", "Change ", field_r16.label, "");
26486
26471
  }
26487
26472
  }
26488
- function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template(rf, ctx) {
26473
+ function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template(rf, ctx) {
26489
26474
  if (rf & 1) {
26490
26475
  i0__namespace.ɵɵelementContainerStart(0);
26491
- i0__namespace.ɵɵelementStart(1, "tr", 30);
26492
- i0__namespace.ɵɵtemplate(2, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_th_2_Template, 3, 1, "th", 31);
26493
- i0__namespace.ɵɵelementStart(3, "td", 32);
26494
- i0__namespace.ɵɵelement(4, "ccd-field-read", 33);
26476
+ i0__namespace.ɵɵelementStart(1, "tr", 21);
26477
+ i0__namespace.ɵɵtemplate(2, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_th_2_Template, 3, 1, "th", 22);
26478
+ i0__namespace.ɵɵelementStart(3, "td", 23);
26479
+ i0__namespace.ɵɵelement(4, "ccd-field-read", 24);
26495
26480
  i0__namespace.ɵɵelementEnd();
26496
- i0__namespace.ɵɵelementStart(5, "td", 34);
26497
- i0__namespace.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template, 3, 1, "a", 35);
26481
+ i0__namespace.ɵɵelementStart(5, "td", 25);
26482
+ i0__namespace.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_a_6_Template, 3, 1, "a", 26);
26498
26483
  i0__namespace.ɵɵelementEnd();
26499
26484
  i0__namespace.ɵɵelementEnd();
26500
26485
  i0__namespace.ɵɵelementContainerEnd();
26501
26486
  }
26502
26487
  if (rf & 2) {
26503
- var field_r21 = i0__namespace.ɵɵnextContext().$implicit;
26504
- var ctx_r22 = i0__namespace.ɵɵnextContext(5);
26488
+ var field_r16 = i0__namespace.ɵɵnextContext().$implicit;
26489
+ var ctx_r17 = i0__namespace.ɵɵnextContext(5);
26505
26490
  i0__namespace.ɵɵadvance(1);
26506
- i0__namespace.ɵɵproperty("caseField", field_r21)("hidden", field_r21.hidden)("formGroup", ctx_r22.editForm.controls["data"])("contextFields", ctx_r22.contextFields);
26491
+ i0__namespace.ɵɵproperty("caseField", field_r16)("hidden", field_r16.hidden)("formGroup", ctx_r17.editForm.controls["data"])("contextFields", ctx_r17.contextFields);
26507
26492
  i0__namespace.ɵɵadvance(1);
26508
- i0__namespace.ɵɵproperty("ngIf", !ctx_r22.isLabel(field_r21) && !ctx_r22.isCaseFlagSubmission);
26493
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r17.isLabel(field_r16) && !ctx_r17.caseEdit.isCaseFlagSubmission);
26509
26494
  i0__namespace.ɵɵadvance(1);
26510
- i0__namespace.ɵɵattribute("colspan", ctx_r22.isLabel(field_r21) ? "2" : "1");
26495
+ i0__namespace.ɵɵattribute("colspan", ctx_r17.isLabel(field_r16) ? "2" : "1");
26511
26496
  i0__namespace.ɵɵadvance(1);
26512
- i0__namespace.ɵɵproperty("formGroup", ctx_r22.editForm.controls["data"])("topLevelFormGroup", ctx_r22.editForm.controls["data"])("caseField", ctx_r22.summaryCaseField(field_r21))("context", ctx_r22.paletteContext)("caseFields", ctx_r22.contextFields);
26497
+ i0__namespace.ɵɵproperty("formGroup", ctx_r17.editForm.controls["data"])("topLevelFormGroup", ctx_r17.editForm.controls["data"])("caseField", ctx_r17.summaryCaseField(field_r16))("context", ctx_r17.paletteContext)("caseFields", ctx_r17.contextFields);
26513
26498
  i0__namespace.ɵɵadvance(2);
26514
- i0__namespace.ɵɵproperty("ngIf", ctx_r22.isChangeAllowed(field_r21));
26499
+ i0__namespace.ɵɵproperty("ngIf", ctx_r17.isChangeAllowed(field_r16));
26515
26500
  }
26516
26501
  }
26517
- function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_Template(rf, ctx) {
26502
+ function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_Template(rf, ctx) {
26518
26503
  if (rf & 1) {
26519
26504
  i0__namespace.ɵɵelementContainerStart(0);
26520
- i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template, 7, 12, "ng-container", 0);
26505
+ i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_ng_container_1_Template, 7, 12, "ng-container", 0);
26521
26506
  i0__namespace.ɵɵelementContainerEnd();
26522
26507
  }
26523
26508
  if (rf & 2) {
26524
- var field_r21 = ctx.$implicit;
26525
- var ctx_r20 = i0__namespace.ɵɵnextContext(5);
26509
+ var field_r16 = ctx.$implicit;
26510
+ var ctx_r15 = i0__namespace.ɵɵnextContext(5);
26526
26511
  i0__namespace.ɵɵadvance(1);
26527
- i0__namespace.ɵɵproperty("ngIf", ctx_r20.canShowFieldInCYA(field_r21));
26512
+ i0__namespace.ɵɵproperty("ngIf", ctx_r15.canShowFieldInCYA(field_r16));
26528
26513
  }
26529
26514
  }
26530
26515
  var _c0$f = function (a0, a4) { return [a0, false, undefined, true, a4]; };
26531
- function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_Template(rf, ctx) {
26516
+ function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_Template(rf, ctx) {
26532
26517
  if (rf & 1) {
26533
26518
  i0__namespace.ɵɵelementContainerStart(0);
26534
- i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_ng_container_1_Template, 2, 1, "ng-container", 28);
26519
+ i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_ng_container_1_Template, 2, 1, "ng-container", 19);
26535
26520
  i0__namespace.ɵɵpipe(2, "ccdCYAPageLabelFilter");
26536
26521
  i0__namespace.ɵɵpipe(3, "ccdReadFieldsFilter");
26537
26522
  i0__namespace.ɵɵpipe(4, "ccdPageFields");
26538
26523
  i0__namespace.ɵɵelementContainerEnd();
26539
26524
  }
26540
26525
  if (rf & 2) {
26541
- var page_r18 = i0__namespace.ɵɵnextContext().$implicit;
26542
- var ctx_r19 = i0__namespace.ɵɵnextContext(3);
26526
+ var page_r13 = i0__namespace.ɵɵnextContext().$implicit;
26527
+ var ctx_r14 = i0__namespace.ɵɵnextContext(3);
26543
26528
  i0__namespace.ɵɵadvance(1);
26544
- i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(12, _c0$f, i0__namespace.ɵɵpipeBind2(4, 9, page_r18, ctx_r19.editForm), ctx_r19.editForm.controls["data"]))));
26529
+ i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(12, _c0$f, i0__namespace.ɵɵpipeBind2(4, 9, page_r13, ctx_r14.editForm), ctx_r14.editForm.controls["data"]))));
26545
26530
  }
26546
26531
  }
26547
- function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_Template(rf, ctx) {
26532
+ function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_Template(rf, ctx) {
26548
26533
  if (rf & 1) {
26549
26534
  i0__namespace.ɵɵelementContainerStart(0);
26550
- i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_ng_container_1_Template, 5, 15, "ng-container", 0);
26535
+ i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_ng_container_1_Template, 5, 15, "ng-container", 0);
26551
26536
  i0__namespace.ɵɵelementContainerEnd();
26552
26537
  }
26553
26538
  if (rf & 2) {
26554
- var page_r18 = ctx.$implicit;
26555
- var ctx_r17 = i0__namespace.ɵɵnextContext(3);
26539
+ var page_r13 = ctx.$implicit;
26540
+ var ctx_r12 = i0__namespace.ɵɵnextContext(3);
26556
26541
  i0__namespace.ɵɵadvance(1);
26557
- i0__namespace.ɵɵproperty("ngIf", ctx_r17.isShown(page_r18));
26542
+ i0__namespace.ɵɵproperty("ngIf", ctx_r12.isShown(page_r13));
26558
26543
  }
26559
26544
  }
26560
- function CaseEditSubmitComponent_div_0_ng_container_12_Template(rf, ctx) {
26545
+ function CaseEditSubmitComponent_div_0_ng_container_11_Template(rf, ctx) {
26561
26546
  if (rf & 1) {
26562
26547
  i0__namespace.ɵɵelementContainerStart(0);
26563
26548
  i0__namespace.ɵɵelementStart(1, "h2", 16);
26564
26549
  i0__namespace.ɵɵtext(2);
26565
26550
  i0__namespace.ɵɵelementEnd();
26566
- i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_12_span_3_Template, 2, 0, "span", 26);
26567
- i0__namespace.ɵɵelementStart(4, "table", 27);
26551
+ i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_11_span_3_Template, 2, 0, "span", 17);
26552
+ i0__namespace.ɵɵelementStart(4, "table", 18);
26568
26553
  i0__namespace.ɵɵelementStart(5, "tbody");
26569
- i0__namespace.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_6_Template, 2, 1, "ng-container", 28);
26554
+ i0__namespace.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_6_Template, 2, 1, "ng-container", 19);
26570
26555
  i0__namespace.ɵɵelementEnd();
26571
26556
  i0__namespace.ɵɵelementEnd();
26572
26557
  i0__namespace.ɵɵelementContainerEnd();
26573
26558
  }
26574
26559
  if (rf & 2) {
26575
- var ctx_r9 = i0__namespace.ɵɵnextContext(2);
26560
+ var ctx_r7 = i0__namespace.ɵɵnextContext(2);
26576
26561
  i0__namespace.ɵɵadvance(2);
26577
- i0__namespace.ɵɵtextInterpolate(ctx_r9.pageTitle);
26562
+ i0__namespace.ɵɵtextInterpolate(ctx_r7.pageTitle);
26578
26563
  i0__namespace.ɵɵadvance(1);
26579
- i0__namespace.ɵɵproperty("ngIf", !ctx_r9.isCaseFlagSubmission);
26564
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r7.caseEdit.isCaseFlagSubmission);
26580
26565
  i0__namespace.ɵɵadvance(3);
26581
- i0__namespace.ɵɵproperty("ngForOf", ctx_r9.wizard.pages);
26566
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r7.wizard.pages);
26582
26567
  }
26583
26568
  }
26584
- function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_3_Template(rf, ctx) {
26569
+ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_3_Template(rf, ctx) {
26585
26570
  if (rf & 1) {
26586
- i0__namespace.ɵɵelementStart(0, "tr", 41);
26587
- i0__namespace.ɵɵelementStart(1, "th", 42);
26571
+ i0__namespace.ɵɵelementStart(0, "tr", 32);
26572
+ i0__namespace.ɵɵelementStart(1, "th", 33);
26588
26573
  i0__namespace.ɵɵtext(2);
26589
26574
  i0__namespace.ɵɵelementEnd();
26590
- i0__namespace.ɵɵelementStart(3, "td", 43);
26591
- i0__namespace.ɵɵelement(4, "ccd-field-read", 44);
26575
+ i0__namespace.ɵɵelementStart(3, "td", 34);
26576
+ i0__namespace.ɵɵelement(4, "ccd-field-read", 35);
26592
26577
  i0__namespace.ɵɵelementEnd();
26593
26578
  i0__namespace.ɵɵelementEnd();
26594
26579
  }
26595
26580
  if (rf & 2) {
26596
- var field_r33 = i0__namespace.ɵɵnextContext().$implicit;
26597
- var ctx_r34 = i0__namespace.ɵɵnextContext(3);
26598
- i0__namespace.ɵɵproperty("caseField", field_r33)("formGroup", ctx_r34.editForm.controls["data"])("contextFields", ctx_r34.contextFields);
26581
+ var field_r28 = i0__namespace.ɵɵnextContext().$implicit;
26582
+ var ctx_r29 = i0__namespace.ɵɵnextContext(3);
26583
+ i0__namespace.ɵɵproperty("caseField", field_r28)("formGroup", ctx_r29.editForm.controls["data"])("contextFields", ctx_r29.contextFields);
26599
26584
  i0__namespace.ɵɵadvance(2);
26600
- i0__namespace.ɵɵtextInterpolate(field_r33.label);
26585
+ i0__namespace.ɵɵtextInterpolate(field_r28.label);
26601
26586
  i0__namespace.ɵɵadvance(2);
26602
- i0__namespace.ɵɵproperty("formGroup", ctx_r34.editForm.controls["data"])("caseField", ctx_r34.summaryCaseField(field_r33));
26587
+ i0__namespace.ɵɵproperty("formGroup", ctx_r29.editForm.controls["data"])("caseField", ctx_r29.summaryCaseField(field_r28));
26603
26588
  }
26604
26589
  }
26605
- function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_4_Template(rf, ctx) {
26590
+ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_4_Template(rf, ctx) {
26606
26591
  if (rf & 1) {
26607
- i0__namespace.ɵɵelementStart(0, "tr", 45);
26608
- i0__namespace.ɵɵelementStart(1, "td", 46);
26609
- i0__namespace.ɵɵelement(2, "ccd-field-read", 47);
26592
+ i0__namespace.ɵɵelementStart(0, "tr", 36);
26593
+ i0__namespace.ɵɵelementStart(1, "td", 37);
26594
+ i0__namespace.ɵɵelement(2, "ccd-field-read", 38);
26610
26595
  i0__namespace.ɵɵelementEnd();
26611
26596
  i0__namespace.ɵɵelementEnd();
26612
26597
  }
26613
26598
  if (rf & 2) {
26614
- var field_r33 = i0__namespace.ɵɵnextContext().$implicit;
26615
- var ctx_r35 = i0__namespace.ɵɵnextContext(3);
26616
- i0__namespace.ɵɵproperty("caseField", field_r33)("formGroup", ctx_r35.editForm.controls["data"])("contextFields", ctx_r35.contextFields);
26599
+ var field_r28 = i0__namespace.ɵɵnextContext().$implicit;
26600
+ var ctx_r30 = i0__namespace.ɵɵnextContext(3);
26601
+ i0__namespace.ɵɵproperty("caseField", field_r28)("formGroup", ctx_r30.editForm.controls["data"])("contextFields", ctx_r30.contextFields);
26617
26602
  i0__namespace.ɵɵadvance(2);
26618
- i0__namespace.ɵɵproperty("formGroup", ctx_r35.editForm.controls["data"])("caseField", ctx_r35.summaryCaseField(field_r33))("caseFields", ctx_r35.contextFields);
26603
+ i0__namespace.ɵɵproperty("formGroup", ctx_r30.editForm.controls["data"])("caseField", ctx_r30.summaryCaseField(field_r28))("caseFields", ctx_r30.contextFields);
26619
26604
  }
26620
26605
  }
26621
- function CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_Template(rf, ctx) {
26606
+ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_Template(rf, ctx) {
26622
26607
  if (rf & 1) {
26623
26608
  i0__namespace.ɵɵelementContainerStart(0);
26624
- i0__namespace.ɵɵelementContainerStart(1, 38);
26609
+ i0__namespace.ɵɵelementContainerStart(1, 29);
26625
26610
  i0__namespace.ɵɵpipe(2, "ccdIsCompound");
26626
- i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_3_Template, 5, 6, "tr", 39);
26627
- i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_tr_4_Template, 3, 6, "tr", 40);
26611
+ i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_3_Template, 5, 6, "tr", 30);
26612
+ i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_tr_4_Template, 3, 6, "tr", 31);
26628
26613
  i0__namespace.ɵɵelementContainerEnd();
26629
26614
  i0__namespace.ɵɵelementContainerEnd();
26630
26615
  }
26631
26616
  if (rf & 2) {
26632
- var field_r33 = ctx.$implicit;
26617
+ var field_r28 = ctx.$implicit;
26633
26618
  i0__namespace.ɵɵadvance(1);
26634
- i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3, field_r33));
26619
+ i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(2, 3, field_r28));
26635
26620
  i0__namespace.ɵɵadvance(2);
26636
26621
  i0__namespace.ɵɵproperty("ngSwitchCase", true);
26637
26622
  i0__namespace.ɵɵadvance(1);
26638
26623
  i0__namespace.ɵɵproperty("ngSwitchCase", false);
26639
26624
  }
26640
26625
  }
26641
- function CaseEditSubmitComponent_div_0_ng_container_13_Template(rf, ctx) {
26626
+ function CaseEditSubmitComponent_div_0_ng_container_12_Template(rf, ctx) {
26642
26627
  if (rf & 1) {
26643
26628
  i0__namespace.ɵɵelementContainerStart(0);
26644
- i0__namespace.ɵɵelementStart(1, "table", 37);
26629
+ i0__namespace.ɵɵelementStart(1, "table", 28);
26645
26630
  i0__namespace.ɵɵelementStart(2, "tbody");
26646
- i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_13_ng_container_3_Template, 5, 5, "ng-container", 28);
26631
+ i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_3_Template, 5, 5, "ng-container", 19);
26647
26632
  i0__namespace.ɵɵelementEnd();
26648
26633
  i0__namespace.ɵɵelementEnd();
26649
26634
  i0__namespace.ɵɵelementContainerEnd();
26650
26635
  }
26651
26636
  if (rf & 2) {
26652
- var ctx_r10 = i0__namespace.ɵɵnextContext(2);
26637
+ var ctx_r8 = i0__namespace.ɵɵnextContext(2);
26653
26638
  i0__namespace.ɵɵadvance(3);
26654
- i0__namespace.ɵɵproperty("ngForOf", ctx_r10.showSummaryFields);
26639
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r8.showSummaryFields);
26655
26640
  }
26656
26641
  }
26657
- function CaseEditSubmitComponent_div_0_ng_container_14_fieldset_1_Template(rf, ctx) {
26642
+ function CaseEditSubmitComponent_div_0_ng_container_13_fieldset_1_Template(rf, ctx) {
26658
26643
  if (rf & 1) {
26659
- i0__namespace.ɵɵelementStart(0, "fieldset", 49);
26660
- i0__namespace.ɵɵelement(1, "legend", 50);
26661
- i0__namespace.ɵɵelementStart(2, "div", 51);
26662
- i0__namespace.ɵɵelementStart(3, "label", 52);
26644
+ i0__namespace.ɵɵelementStart(0, "fieldset", 40);
26645
+ i0__namespace.ɵɵelement(1, "legend", 41);
26646
+ i0__namespace.ɵɵelementStart(2, "div", 42);
26647
+ i0__namespace.ɵɵelementStart(3, "label", 43);
26663
26648
  i0__namespace.ɵɵtext(4, " Event summary (optional) ");
26664
- i0__namespace.ɵɵelementStart(5, "span", 53);
26649
+ i0__namespace.ɵɵelementStart(5, "span", 44);
26665
26650
  i0__namespace.ɵɵtext(6, "A few words describing the purpose of the event.");
26666
26651
  i0__namespace.ɵɵelementEnd();
26667
26652
  i0__namespace.ɵɵelementEnd();
26668
- i0__namespace.ɵɵelement(7, "input", 54);
26653
+ i0__namespace.ɵɵelement(7, "input", 45);
26669
26654
  i0__namespace.ɵɵelementEnd();
26670
- i0__namespace.ɵɵelementStart(8, "div", 51);
26671
- i0__namespace.ɵɵelementStart(9, "label", 55);
26655
+ i0__namespace.ɵɵelementStart(8, "div", 42);
26656
+ i0__namespace.ɵɵelementStart(9, "label", 46);
26672
26657
  i0__namespace.ɵɵtext(10, "Event description (optional)");
26673
26658
  i0__namespace.ɵɵelementEnd();
26674
- i0__namespace.ɵɵelement(11, "textarea", 56);
26659
+ i0__namespace.ɵɵelement(11, "textarea", 47);
26675
26660
  i0__namespace.ɵɵelementEnd();
26676
26661
  i0__namespace.ɵɵelementEnd();
26677
26662
  }
26678
26663
  }
26679
- function CaseEditSubmitComponent_div_0_ng_container_14_Template(rf, ctx) {
26664
+ function CaseEditSubmitComponent_div_0_ng_container_13_Template(rf, ctx) {
26680
26665
  if (rf & 1) {
26681
26666
  i0__namespace.ɵɵelementContainerStart(0);
26682
- i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_14_fieldset_1_Template, 12, 0, "fieldset", 48);
26667
+ i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_13_fieldset_1_Template, 12, 0, "fieldset", 39);
26683
26668
  i0__namespace.ɵɵelementContainerEnd();
26684
26669
  }
26685
26670
  if (rf & 2) {
26686
- var ctx_r11 = i0__namespace.ɵɵnextContext(2);
26671
+ var ctx_r9 = i0__namespace.ɵɵnextContext(2);
26687
26672
  i0__namespace.ɵɵadvance(1);
26688
- i0__namespace.ɵɵproperty("ngIf", ctx_r11.profile && !ctx_r11.isSolicitor());
26673
+ i0__namespace.ɵɵproperty("ngIf", ctx_r9.profile && !ctx_r9.isSolicitor());
26689
26674
  }
26690
26675
  }
26691
26676
  function CaseEditSubmitComponent_div_0_Template(rf, ctx) {
26692
26677
  if (rf & 1) {
26693
- var _r40_1 = i0__namespace.ɵɵgetCurrentView();
26678
+ var _r35_1 = i0__namespace.ɵɵgetCurrentView();
26694
26679
  i0__namespace.ɵɵelementStart(0, "div");
26695
26680
  i0__namespace.ɵɵelementStart(1, "h1", 2);
26696
26681
  i0__namespace.ɵɵtext(2);
@@ -26698,29 +26683,28 @@
26698
26683
  i0__namespace.ɵɵtemplate(3, CaseEditSubmitComponent_div_0_div_3_Template, 1, 0, "div", 3);
26699
26684
  i0__namespace.ɵɵtemplate(4, CaseEditSubmitComponent_div_0_ng_template_4_Template, 2, 5, "ng-template", null, 4, i0__namespace.ɵɵtemplateRefExtractor);
26700
26685
  i0__namespace.ɵɵtemplate(6, CaseEditSubmitComponent_div_0_ng_template_6_Template, 1, 1, "ng-template", null, 5, i0__namespace.ɵɵtemplateRefExtractor);
26701
- i0__namespace.ɵɵtemplate(8, CaseEditSubmitComponent_div_0_div_8_Template, 10, 0, "div", 6);
26702
- i0__namespace.ɵɵtemplate(9, CaseEditSubmitComponent_div_0_div_9_Template, 6, 2, "div", 6);
26703
- i0__namespace.ɵɵelementStart(10, "ccd-callback-errors", 7);
26704
- i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_10_listener($event) { i0__namespace.ɵɵrestoreView(_r40_1); var ctx_r39 = i0__namespace.ɵɵnextContext(); return ctx_r39.callbackErrorsNotify($event); });
26705
- i0__namespace.ɵɵelementEnd();
26706
- i0__namespace.ɵɵelementStart(11, "form", 8);
26707
- i0__namespace.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_11_listener() { i0__namespace.ɵɵrestoreView(_r40_1); var ctx_r41 = i0__namespace.ɵɵnextContext(); return ctx_r41.submit(); });
26708
- i0__namespace.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 7, 3, "ng-container", 0);
26709
- i0__namespace.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 4, 1, "ng-container", 0);
26710
- i0__namespace.ɵɵtemplate(14, CaseEditSubmitComponent_div_0_ng_container_14_Template, 2, 1, "ng-container", 0);
26711
- i0__namespace.ɵɵelementStart(15, "div", 9);
26712
- i0__namespace.ɵɵelementStart(16, "button", 10);
26713
- i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_button_click_16_listener() { i0__namespace.ɵɵrestoreView(_r40_1); var ctx_r42 = i0__namespace.ɵɵnextContext(); return ctx_r42.previous(); });
26714
- i0__namespace.ɵɵtext(17, "Previous");
26715
- i0__namespace.ɵɵelementEnd();
26716
- i0__namespace.ɵɵelementStart(18, "button", 11);
26717
- i0__namespace.ɵɵtext(19);
26718
- i0__namespace.ɵɵelementEnd();
26719
- i0__namespace.ɵɵelementEnd();
26720
- i0__namespace.ɵɵelementStart(20, "p", 12);
26721
- i0__namespace.ɵɵelementStart(21, "a", 13);
26722
- i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_21_listener() { i0__namespace.ɵɵrestoreView(_r40_1); var ctx_r43 = i0__namespace.ɵɵnextContext(); return ctx_r43.cancel(); });
26723
- i0__namespace.ɵɵtext(22);
26686
+ i0__namespace.ɵɵelement(8, "ccd-case-edit-generic-errors", 6);
26687
+ i0__namespace.ɵɵelementStart(9, "ccd-callback-errors", 7);
26688
+ i0__namespace.ɵɵlistener("callbackErrorsContext", function CaseEditSubmitComponent_div_0_Template_ccd_callback_errors_callbackErrorsContext_9_listener($event) { i0__namespace.ɵɵrestoreView(_r35_1); var ctx_r34 = i0__namespace.ɵɵnextContext(); return ctx_r34.callbackErrorsNotify($event); });
26689
+ i0__namespace.ɵɵelementEnd();
26690
+ i0__namespace.ɵɵelementStart(10, "form", 8);
26691
+ i0__namespace.ɵɵlistener("submit", function CaseEditSubmitComponent_div_0_Template_form_submit_10_listener() { i0__namespace.ɵɵrestoreView(_r35_1); var ctx_r36 = i0__namespace.ɵɵnextContext(); return ctx_r36.submit(); });
26692
+ i0__namespace.ɵɵtemplate(11, CaseEditSubmitComponent_div_0_ng_container_11_Template, 7, 3, "ng-container", 0);
26693
+ i0__namespace.ɵɵtemplate(12, CaseEditSubmitComponent_div_0_ng_container_12_Template, 4, 1, "ng-container", 0);
26694
+ i0__namespace.ɵɵtemplate(13, CaseEditSubmitComponent_div_0_ng_container_13_Template, 2, 1, "ng-container", 0);
26695
+ i0__namespace.ɵɵelementStart(14, "div", 9);
26696
+ i0__namespace.ɵɵelementStart(15, "button", 10);
26697
+ i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_button_click_15_listener() { i0__namespace.ɵɵrestoreView(_r35_1); var ctx_r37 = i0__namespace.ɵɵnextContext(); return ctx_r37.previous(); });
26698
+ i0__namespace.ɵɵtext(16, "Previous");
26699
+ i0__namespace.ɵɵelementEnd();
26700
+ i0__namespace.ɵɵelementStart(17, "button", 11);
26701
+ i0__namespace.ɵɵtext(18);
26702
+ i0__namespace.ɵɵelementEnd();
26703
+ i0__namespace.ɵɵelementEnd();
26704
+ i0__namespace.ɵɵelementStart(19, "p", 12);
26705
+ i0__namespace.ɵɵelementStart(20, "a", 13);
26706
+ i0__namespace.ɵɵlistener("click", function CaseEditSubmitComponent_div_0_Template_a_click_20_listener() { i0__namespace.ɵɵrestoreView(_r35_1); var ctx_r38 = i0__namespace.ɵɵnextContext(); return ctx_r38.cancel(); });
26707
+ i0__namespace.ɵɵtext(21);
26724
26708
  i0__namespace.ɵɵelementEnd();
26725
26709
  i0__namespace.ɵɵelementEnd();
26726
26710
  i0__namespace.ɵɵelementEnd();
@@ -26735,11 +26719,9 @@
26735
26719
  i0__namespace.ɵɵadvance(1);
26736
26720
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.getCaseTitle())("ngIfThen", _r3)("ngIfElse", _r5);
26737
26721
  i0__namespace.ɵɵadvance(5);
26738
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.error && (!(ctx_r0.error.callbackErrors || ctx_r0.error.callbackWarnings || ctx_r0.error.details) && !ctx_r0.error.message));
26739
- i0__namespace.ɵɵadvance(1);
26740
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.error && (ctx_r0.error.details || ctx_r0.error.message));
26722
+ i0__namespace.ɵɵproperty("error", ctx_r0.caseEdit.error);
26741
26723
  i0__namespace.ɵɵadvance(1);
26742
- i0__namespace.ɵɵproperty("callbackErrorsSubject", ctx_r0.callbackErrorsSubject);
26724
+ i0__namespace.ɵɵproperty("callbackErrorsSubject", ctx_r0.caseEdit.callbackErrorsSubject);
26743
26725
  i0__namespace.ɵɵadvance(1);
26744
26726
  i0__namespace.ɵɵproperty("formGroup", ctx_r0.editForm);
26745
26727
  i0__namespace.ɵɵadvance(1);
@@ -26749,49 +26731,39 @@
26749
26731
  i0__namespace.ɵɵadvance(1);
26750
26732
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.showEventNotes());
26751
26733
  i0__namespace.ɵɵadvance(2);
26752
- i0__namespace.ɵɵproperty("disabled", !ctx_r0.hasPrevious() || ctx_r0.isSubmitting);
26734
+ i0__namespace.ɵɵproperty("disabled", !ctx_r0.hasPrevious() || ctx_r0.caseEdit.isSubmitting);
26753
26735
  i0__namespace.ɵɵadvance(2);
26754
26736
  i0__namespace.ɵɵproperty("disabled", ctx_r0.isDisabled);
26755
26737
  i0__namespace.ɵɵadvance(1);
26756
26738
  i0__namespace.ɵɵtextInterpolate(ctx_r0.triggerText);
26757
26739
  i0__namespace.ɵɵadvance(2);
26758
- i0__namespace.ɵɵclassProp("disabled", ctx_r0.isSubmitting);
26740
+ i0__namespace.ɵɵclassProp("disabled", ctx_r0.caseEdit.isSubmitting);
26759
26741
  i0__namespace.ɵɵadvance(1);
26760
26742
  i0__namespace.ɵɵtextInterpolate(ctx_r0.getCancelText());
26761
26743
  }
26762
26744
  }
26763
26745
  function CaseEditSubmitComponent_ccd_case_event_completion_1_Template(rf, ctx) {
26764
26746
  if (rf & 1) {
26765
- var _r45_1 = i0__namespace.ɵɵgetCurrentView();
26766
- i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion", 57);
26767
- i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(_r45_1); var ctx_r44 = i0__namespace.ɵɵnextContext(); return ctx_r44.onEventCanBeCompleted($event); });
26747
+ var _r40_1 = i0__namespace.ɵɵgetCurrentView();
26748
+ i0__namespace.ɵɵelementStart(0, "ccd-case-event-completion", 48);
26749
+ i0__namespace.ɵɵlistener("eventCanBeCompleted", function CaseEditSubmitComponent_ccd_case_event_completion_1_Template_ccd_case_event_completion_eventCanBeCompleted_0_listener($event) { i0__namespace.ɵɵrestoreView(_r40_1); var ctx_r39 = i0__namespace.ɵɵnextContext(); return ctx_r39.onEventCanBeCompleted($event); });
26768
26750
  i0__namespace.ɵɵelementEnd();
26769
26751
  }
26770
26752
  if (rf & 2) {
26771
26753
  var ctx_r1 = i0__namespace.ɵɵnextContext();
26772
- i0__namespace.ɵɵproperty("eventCompletionParams", ctx_r1.eventCompletionParams);
26754
+ i0__namespace.ɵɵproperty("eventCompletionParams", ctx_r1.caseEdit.eventCompletionParams);
26773
26755
  }
26774
26756
  }
26775
26757
  // @dynamic
26776
26758
  var CaseEditSubmitComponent = /** @class */ (function () {
26777
- function CaseEditSubmitComponent(caseEdit, formValueService, formErrorService, fieldsUtils, caseFieldService, route, router, orderService, profileNotifier, sessionStorageService, caseNotifier) {
26759
+ function CaseEditSubmitComponent(caseEdit, fieldsUtils, caseFieldService, route, orderService, profileNotifier) {
26778
26760
  this.caseEdit = caseEdit;
26779
- this.formValueService = formValueService;
26780
- this.formErrorService = formErrorService;
26781
26761
  this.fieldsUtils = fieldsUtils;
26782
26762
  this.caseFieldService = caseFieldService;
26783
26763
  this.route = route;
26784
- this.router = router;
26785
26764
  this.orderService = orderService;
26786
26765
  this.profileNotifier = profileNotifier;
26787
- this.sessionStorageService = sessionStorageService;
26788
- this.caseNotifier = caseNotifier;
26789
- this.callbackErrorsSubject = new rxjs.Subject();
26790
- this.ignoreWarning = false;
26791
26766
  this.paletteContext = exports.PaletteContext.CHECK_YOUR_ANSWER;
26792
- this.eventCompletionChecksRequired = false;
26793
- this.isCaseFlagSubmission = false;
26794
- this.isLinkedCasesSubmission = false;
26795
26767
  }
26796
26768
  Object.defineProperty(CaseEditSubmitComponent.prototype, "isDisabled", {
26797
26769
  get: function () {
@@ -26799,7 +26771,7 @@
26799
26771
  // We don't need to check the validity of the editForm as it is readonly.
26800
26772
  // This was causing issues with hidden fields that aren't wanted but have
26801
26773
  // not been disabled.
26802
- return this.isSubmitting || this.hasErrors;
26774
+ return this.caseEdit.isSubmitting || this.hasErrors;
26803
26775
  },
26804
26776
  enumerable: false,
26805
26777
  configurable: true
@@ -26812,216 +26784,42 @@
26812
26784
  this.editForm = this.caseEdit.form;
26813
26785
  this.wizard = this.caseEdit.wizard;
26814
26786
  this.showSummaryFields = this.sortFieldsByShowSummaryContent(this.eventTrigger.case_fields);
26815
- this.isSubmitting = false;
26787
+ this.caseEdit.isSubmitting = false;
26816
26788
  this.contextFields = this.getCaseFields();
26817
26789
  // Indicates if the submission is for a Case Flag, as opposed to a "regular" form submission, by the presence of
26818
26790
  // a FlagLauncher field in the event trigger
26819
- this.isCaseFlagSubmission = this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isFlagLauncherCaseField(caseField); });
26820
- this.pageTitle = this.isCaseFlagSubmission ? 'Review flag details' : 'Check your answers';
26821
- this.isLinkedCasesSubmission = this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isComponentLauncherCaseField(caseField); });
26791
+ this.caseEdit.isCaseFlagSubmission = this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isFlagLauncherCaseField(caseField); });
26792
+ this.caseEdit.isLinkedCasesSubmission =
26793
+ this.eventTrigger.case_fields.some(function (caseField) { return FieldsUtils.isComponentLauncherCaseField(caseField); });
26794
+ this.pageTitle = this.caseEdit.isCaseFlagSubmission ? 'Review flag details' : 'Check your answers';
26822
26795
  };
26823
26796
  CaseEditSubmitComponent.prototype.ngOnDestroy = function () {
26797
+ /* istanbul ignore else */
26824
26798
  if (this.profileSubscription) {
26825
26799
  this.profileSubscription.unsubscribe();
26826
26800
  }
26827
26801
  };
26828
26802
  CaseEditSubmitComponent.prototype.submit = function () {
26829
- this.isSubmitting = true;
26830
- // We have to run the event completion checks if task in session storage
26831
- // and if the task is in session storage, then is it associated to the case
26832
- var taskInSessionStorage;
26833
- var taskStr = this.sessionStorageService.getItem('taskToComplete');
26834
- if (taskStr) {
26835
- taskInSessionStorage = JSON.parse(taskStr);
26836
- }
26837
- if (taskInSessionStorage && taskInSessionStorage.case_id === this.getCaseId()) {
26838
- // Show event completion component to perform event completion checks
26839
- this.eventCompletionParams = {
26840
- caseId: this.getCaseId(),
26841
- eventId: this.getEventId(),
26842
- task: taskInSessionStorage
26843
- };
26844
- this.eventCompletionChecksRequired = true;
26845
- }
26846
- else {
26847
- // Task not in session storage, proceed to submit
26848
- var caseEventData = this.generateCaseEventData();
26849
- this.caseSubmit(caseEventData);
26850
- }
26851
- };
26852
- CaseEditSubmitComponent.prototype.onEventCanBeCompleted = function (eventCanBeCompleted) {
26853
- if (eventCanBeCompleted) {
26854
- // Submit
26855
- var caseEventData = this.generateCaseEventData();
26856
- this.caseSubmit(caseEventData);
26857
- }
26858
- else {
26859
- // Navigate to tasks tab on case details page
26860
- this.router.navigate(["/cases/case-details/" + this.getCaseId() + "/tasks"], { relativeTo: this.route });
26861
- }
26862
- };
26863
- CaseEditSubmitComponent.prototype.generateCaseEventData = function () {
26864
- var caseEventData = {
26865
- data: this.replaceEmptyComplexFieldValues(this.formValueService.sanitise(this.replaceHiddenFormValuesWithOriginalCaseData(this.editForm.get('data'), this.eventTrigger.case_fields))),
26866
- event: this.editForm.value.event
26867
- };
26868
- this.formValueService.clearNonCaseFields(caseEventData.data, this.eventTrigger.case_fields);
26869
- this.formValueService.removeNullLabels(caseEventData.data, this.eventTrigger.case_fields);
26870
- this.formValueService.removeEmptyDocuments(caseEventData.data, this.eventTrigger.case_fields);
26871
- // Remove collection fields that have "min" validation of greater than zero set on the FieldType but are empty;
26872
- // these will fail validation
26873
- this.formValueService.removeEmptyCollectionsWithMinValidation(caseEventData.data, this.eventTrigger.case_fields);
26874
- // If this is a Case Flag submission (and thus a FlagLauncher field is present in the event trigger), the flag
26875
- // details data needs populating for each Flags field, then the FlagLauncher field needs removing
26876
- if (this.isCaseFlagSubmission) {
26877
- this.formValueService.populateFlagDetailsFromCaseFields(caseEventData.data, this.eventTrigger.case_fields);
26878
- this.formValueService.removeFlagLauncherField(caseEventData.data, this.eventTrigger.case_fields);
26879
- }
26880
- if (this.isLinkedCasesSubmission) {
26881
- this.formValueService.populateLinkedCasesDetailsFromCaseFields(caseEventData.data, this.eventTrigger.case_fields);
26882
- this.formValueService.removeComponentLauncherField(caseEventData.data, this.eventTrigger.case_fields);
26883
- }
26884
- caseEventData.event_token = this.eventTrigger.event_token;
26885
- caseEventData.ignore_warning = this.ignoreWarning;
26886
- if (this.caseEdit.confirmation) {
26887
- caseEventData.data = {};
26888
- }
26889
- return caseEventData;
26890
- };
26891
- CaseEditSubmitComponent.prototype.caseSubmit = function (caseEventData) {
26892
- var _this = this;
26893
- this.caseEdit.submit(caseEventData)
26894
- .subscribe(function (response) {
26895
- _this.caseNotifier.cachedCaseView = null;
26896
- _this.sessionStorageService.removeItem('eventUrl');
26897
- var confirmation = _this.buildConfirmation(response);
26898
- if (confirmation && (confirmation.getHeader() || confirmation.getBody())) {
26899
- _this.caseEdit.confirm(confirmation);
26900
- }
26901
- else {
26902
- _this.caseEdit.submitted.emit({ caseId: response['id'], status: _this.getStatus(response) });
26903
- }
26904
- }, function (error) {
26905
- _this.error = error;
26906
- _this.callbackErrorsSubject.next(_this.error);
26907
- if (_this.error.details) {
26908
- _this.formErrorService
26909
- .mapFieldErrors(_this.error.details.field_errors, _this.editForm.controls['data'], 'validation');
26910
- }
26911
- _this.isSubmitting = false;
26803
+ this.caseEdit.submitForm({
26804
+ eventTrigger: this.eventTrigger,
26805
+ form: this.editForm,
26806
+ submit: this.caseEdit.submit,
26807
+ caseDetails: this.caseEdit.caseDetails,
26912
26808
  });
26913
26809
  };
26914
- /**
26915
- * Traverse *all* values of a {@link FormGroup}, including those for disabled fields (i.e. hidden ones), replacing the
26916
- * value of any that are hidden AND have `retain_hidden_value` set to `true` in the corresponding `CaseField`, with
26917
- * the *original* value held in the `CaseField` object.
26918
- *
26919
- * This is as per design in EUI-3622, where any user-driven updates to hidden fields with `retain_hidden_value` =
26920
- * `true` are ignored (thus retaining the value displayed originally).
26921
- *
26922
- * * For Complex field types, the replacement above is performed recursively for all hidden sub-fields with
26923
- * `retain_hidden_value` = `true`.
26924
- *
26925
- * * For Collection field types, including collections of Complex and Document field types, the replacement is
26926
- * performed for all fields in the collection.
26927
- *
26928
- * @param formGroup The `FormGroup` instance whose raw values are to be traversed
26929
- * @param caseFields The array of {@link CaseField} domain model objects corresponding to fields in `formGroup`
26930
- * @param parentField Reference to the parent `CaseField`. Used for retrieving the sub-field values of a Complex field
26931
- * to perform recursive replacement - the sub-field `CaseField`s themselves do *not* contain any values
26932
- * @returns An object with the *raw* form value data (as key-value pairs), with any value replacements as necessary
26933
- */
26934
- CaseEditSubmitComponent.prototype.replaceHiddenFormValuesWithOriginalCaseData = function (formGroup, caseFields, parentField) {
26935
- var _this = this;
26936
- // Get the raw form value data, which includes the values of any disabled controls, as key-value pairs
26937
- var rawFormValueData = formGroup.getRawValue();
26938
- // Place all case fields in a lookup object, so they can be retrieved by id
26939
- var caseFieldsLookup = {};
26940
- for (var i = 0, len = caseFields.length; i < len; i++) {
26941
- caseFieldsLookup[caseFields[i].id] = caseFields[i];
26942
- }
26943
- /**
26944
- * Replace any form value with the original, where its CaseField is hidden AND has the retain_hidden_value flag set
26945
- * to true.
26946
- *
26947
- * If the CaseField's `hidden` attribute is null or undefined, then check this attribute in the parent CaseField (if
26948
- * one exists). This is occurring (and is possibly a bug) when a CaseField is a sub-field of a Complex type, or an
26949
- * item in a Collection type.
26950
- *
26951
- * If the field is a Complex type with retain_hidden_value = true, perform a recursive replacement for all (hidden)
26952
- * sub-fields with retain_hidden_value = true, using their original CaseField values (from the `formatted_value`
26953
- * attribute).
26954
- *
26955
- * If the field is a Collection type with retain_hidden_value = true, the entire collection is replaced with the
26956
- * original from `formatted_value`. This applies to *all* types of Collections.
26957
- */
26958
- Object.keys(rawFormValueData).forEach(function (key) {
26959
- var caseField = caseFieldsLookup[key];
26960
- // If caseField.hidden is NOT truthy and also NOT equal to false, then it must be null/undefined (remember that
26961
- // both null and undefined are equal to *neither false nor true*)
26962
- if (caseField && caseField.retain_hidden_value &&
26963
- (caseField.hidden || (caseField.hidden !== false && parentField && parentField.hidden))) {
26964
- if (caseField.field_type.type === 'Complex') {
26965
- // Note: Deliberate use of equality (==) and non-equality (!=) operators for null checks throughout, to
26966
- // handle both null and undefined values
26967
- if (caseField.value !== null) {
26968
- // Call this function recursively to replace the Complex field's sub-fields as necessary, passing the
26969
- // CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
26970
- // parent)
26971
- // Update rawFormValueData for this field
26972
- // creating form group and adding control into it in case caseField is of complext type and and part of formGroup
26973
- var form_1 = new i2.FormGroup({});
26974
- if (formGroup.controls[key].value) {
26975
- Object.keys(formGroup.controls[key].value).forEach(function (item) {
26976
- form_1.addControl(item, new i2.FormControl(formGroup.controls[key].value[item]));
26977
- });
26978
- }
26979
- rawFormValueData[key] = _this.replaceHiddenFormValuesWithOriginalCaseData(form_1, caseField.field_type.complex_fields, caseField);
26980
- }
26981
- }
26982
- else {
26983
- // Default case also handles collections of *all* types; the entire collection in rawFormValueData will be
26984
- // replaced with the original from formatted_value
26985
- // Use the CaseField's existing *formatted_value* from the parent, if available. (This is necessary for
26986
- // Complex fields, whose sub-fields do not hold any values in the model.) Otherwise, use formatted_value
26987
- // from the CaseField itself.
26988
- if (parentField && parentField.formatted_value) {
26989
- rawFormValueData[key] = parentField.formatted_value[caseField.id];
26990
- }
26991
- else {
26992
- rawFormValueData[key] = caseField.formatted_value;
26993
- }
26994
- }
26995
- }
26996
- });
26997
- return rawFormValueData;
26998
- };
26999
- /**
27000
- * Replaces non-array value objects with `null` for any Complex-type fields whose value is effectively empty, i.e.
27001
- * all its sub-fields and descendants are `null` or `undefined`.
27002
- *
27003
- * @param data The object tree representing all the form field data
27004
- * @returns The form field data modified accordingly
27005
- */
27006
- CaseEditSubmitComponent.prototype.replaceEmptyComplexFieldValues = function (data) {
27007
- Object.keys(data).forEach(function (key) {
27008
- if (!Array.isArray(data[key]) && typeof data[key] === 'object' && !FieldsUtils.containsNonEmptyValues(data[key])) {
27009
- data[key] = null;
27010
- }
26810
+ CaseEditSubmitComponent.prototype.onEventCanBeCompleted = function (eventCanBeCompleted) {
26811
+ this.caseEdit.onEventCanBeCompleted({
26812
+ eventTrigger: this.eventTrigger,
26813
+ eventCanBeCompleted: eventCanBeCompleted,
26814
+ caseDetails: this.caseEdit.caseDetails,
26815
+ form: this.editForm,
26816
+ submit: this.caseEdit.submit,
27011
26817
  });
27012
- return data;
27013
- };
27014
- CaseEditSubmitComponent.prototype.getStatus = function (response) {
27015
- return this.hasCallbackFailed(response) ? response['callback_response_status'] : response['delete_draft_response_status'];
27016
- };
27017
- CaseEditSubmitComponent.prototype.hasCallbackFailed = function (response) {
27018
- return response['callback_response_status'] !== 'CALLBACK_COMPLETED';
27019
26818
  };
27020
26819
  Object.defineProperty(CaseEditSubmitComponent.prototype, "hasErrors", {
27021
26820
  get: function () {
27022
- return this.error
27023
- && this.error.callbackErrors
27024
- && this.error.callbackErrors.length;
26821
+ var _a, _b, _c;
26822
+ return (_c = (_b = (_a = this.caseEdit) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.callbackErrors) === null || _c === void 0 ? void 0 : _c.length;
27025
26823
  },
27026
26824
  enumerable: false,
27027
26825
  configurable: true
@@ -27030,10 +26828,11 @@
27030
26828
  this.caseEdit.navigateToPage(pageId);
27031
26829
  };
27032
26830
  CaseEditSubmitComponent.prototype.callbackErrorsNotify = function (errorContext) {
27033
- this.ignoreWarning = errorContext.ignoreWarning;
26831
+ this.caseEdit.ignoreWarning = errorContext.ignoreWarning;
27034
26832
  this.triggerText = errorContext.triggerText;
27035
26833
  };
27036
26834
  CaseEditSubmitComponent.prototype.summaryCaseField = function (field) {
26835
+ /* istanbul ignore else */
27037
26836
  if (null === this.editForm.get('data').get(field.id)) {
27038
26837
  // If not in form, return field itself
27039
26838
  return field;
@@ -27062,17 +26861,20 @@
27062
26861
  return !this.caseFieldService.isReadOnly(field);
27063
26862
  };
27064
26863
  CaseEditSubmitComponent.prototype.checkYourAnswerFieldsToDisplayExists = function () {
27065
- var e_1, _a, e_2, _b;
26864
+ var e_1, _d, e_2, _e;
26865
+ /* istanbul ignore else */
27066
26866
  if (!this.eventTrigger.show_summary) {
27067
26867
  return false;
27068
26868
  }
27069
26869
  try {
27070
- for (var _c = __values(this.wizard.pages), _d = _c.next(); !_d.done; _d = _c.next()) {
27071
- var page = _d.value;
26870
+ for (var _f = __values(this.wizard.pages), _g = _f.next(); !_g.done; _g = _f.next()) {
26871
+ var page = _g.value;
26872
+ /* istanbul ignore else */
27072
26873
  if (this.isShown(page)) {
27073
26874
  try {
27074
- for (var _e = (e_2 = void 0, __values(page.case_fields)), _f = _e.next(); !_f.done; _f = _e.next()) {
27075
- var field = _f.value;
26875
+ for (var _h = (e_2 = void 0, __values(page.case_fields)), _j = _h.next(); !_j.done; _j = _h.next()) {
26876
+ var field = _j.value;
26877
+ /* istanbul ignore else */
27076
26878
  if (this.canShowFieldInCYA(field)) {
27077
26879
  // at least one field needs showing
27078
26880
  return true;
@@ -27082,7 +26884,7 @@
27082
26884
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
27083
26885
  finally {
27084
26886
  try {
27085
- if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
26887
+ if (_j && !_j.done && (_e = _h.return)) _e.call(_h);
27086
26888
  }
27087
26889
  finally { if (e_2) throw e_2.error; }
27088
26890
  }
@@ -27092,7 +26894,7 @@
27092
26894
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
27093
26895
  finally {
27094
26896
  try {
27095
- if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
26897
+ if (_g && !_g.done && (_d = _f.return)) _d.call(_f);
27096
26898
  }
27097
26899
  finally { if (e_1) throw e_1.error; }
27098
26900
  }
@@ -27103,7 +26905,7 @@
27103
26905
  return this.eventTrigger.case_fields.some(function (field) { return field.show_summary_content_option >= 0; });
27104
26906
  };
27105
26907
  CaseEditSubmitComponent.prototype.showEventNotes = function () {
27106
- return this.eventTrigger.show_event_notes !== false;
26908
+ return this.eventTrigger.show_event_notes === true;
27107
26909
  };
27108
26910
  CaseEditSubmitComponent.prototype.getLastPageShown = function () {
27109
26911
  var _this = this;
@@ -27117,6 +26919,7 @@
27117
26919
  return lastPage;
27118
26920
  };
27119
26921
  CaseEditSubmitComponent.prototype.previous = function () {
26922
+ /* istanbul ignore else */
27120
26923
  if (this.hasPrevious()) {
27121
26924
  this.navigateToPage(this.getLastPageShown().id);
27122
26925
  }
@@ -27135,14 +26938,6 @@
27135
26938
  CaseEditSubmitComponent.prototype.isSolicitor = function () {
27136
26939
  return this.profile.isSolicitor();
27137
26940
  };
27138
- CaseEditSubmitComponent.prototype.buildConfirmation = function (response) {
27139
- if (response['after_submit_callback_response']) {
27140
- return new Confirmation(response['id'], response['callback_response_status'], response['after_submit_callback_response']['confirmation_header'], response['after_submit_callback_response']['confirmation_body']);
27141
- }
27142
- else {
27143
- return null;
27144
- }
27145
- };
27146
26941
  CaseEditSubmitComponent.prototype.sortFieldsByShowSummaryContent = function (fields) {
27147
26942
  return this.orderService
27148
26943
  .sort(fields, CaseEditSubmitComponent.SHOW_SUMMARY_CONTENT_COMPARE_FUNCTION)
@@ -27155,10 +26950,7 @@
27155
26950
  return this.eventTrigger.case_fields;
27156
26951
  };
27157
26952
  CaseEditSubmitComponent.prototype.getCaseId = function () {
27158
- return (this.caseEdit.caseDetails ? this.caseEdit.caseDetails.case_id : '');
27159
- };
27160
- CaseEditSubmitComponent.prototype.getEventId = function () {
27161
- return this.editForm.value.event.id;
26953
+ return this.caseEdit.getCaseId(this.caseEdit.caseDetails);
27162
26954
  };
27163
26955
  CaseEditSubmitComponent.prototype.getCaseTitle = function () {
27164
26956
  return (this.caseEdit.caseDetails && this.caseEdit.caseDetails.state &&
@@ -27185,16 +26977,16 @@
27185
26977
  }
27186
26978
  return a.show_summary_content_option - b.show_summary_content_option;
27187
26979
  };
27188
- CaseEditSubmitComponent.ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(FormValueService), i0__namespace.ɵɵdirectiveInject(FormErrorService), i0__namespace.ɵɵdirectiveInject(FieldsUtils), i0__namespace.ɵɵdirectiveInject(CaseFieldService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(CaseNotifier)); };
27189
- CaseEditSubmitComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "callbackErrorsSubject", "callbackErrorsContext"], [1, "check-your-answers", 3, "formGroup", "submit"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h3", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], ["class", "ccd-error-summary-li", 4, "ngFor", "ngForOf"], [1, "ccd-error-summary-li"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "caseFields"], [1, "valign-top", "check-your-answers__change", "case-field-change"], ["href", "javascript:void(0)", 3, "click", 4, "ngIf"], [1, "valign-top", "case-field-label"], ["aria-describedby", "summary fields table", 1, "summary-fields"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["class", "compound-field", "ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], ["id", "summary-field-label"], [1, "form-cell"], [3, "formGroup", "caseField"], ["ccdLabelSubstitutor", "", 1, "compound-field", 3, "caseField", "formGroup", "contextFields"], ["colspan", "2"], [3, "formGroup", "caseField", "caseFields"], ["id", "fieldset-event", "formGroupName", "event", 4, "ngIf"], ["id", "fieldset-event", "formGroupName", "event"], [2, "display", "none"], [1, "form-group"], ["for", "field-trigger-summary", 1, "form-label"], [1, "form-hint"], ["type", "text", "id", "field-trigger-summary", "formControlName", "summary", "maxlength", "1024", 1, "form-control", "bottom-30", "width-50"], ["for", "field-trigger-description", 1, "form-label"], ["id", "field-trigger-description", "formControlName", "description", "maxlength", "65536", 1, "form-control", "bottom-30", "width-50"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditSubmitComponent_Template(rf, ctx) {
26980
+ CaseEditSubmitComponent.ɵfac = function CaseEditSubmitComponent_Factory(t) { return new (t || CaseEditSubmitComponent)(i0__namespace.ɵɵdirectiveInject(CaseEditComponent), i0__namespace.ɵɵdirectiveInject(FieldsUtils), i0__namespace.ɵɵdirectiveInject(CaseFieldService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
26981
+ CaseEditSubmitComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditSubmitComponent, selectors: [["ccd-case-edit-submit"]], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], [3, "error"], [3, "callbackErrorsSubject", "callbackErrorsContext"], [1, "check-your-answers", 3, "formGroup", "submit"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["class", "text-16", 4, "ngIf"], ["aria-describedby", "check your answers table", 1, "form-table"], [4, "ngFor", "ngForOf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "hidden", "formGroup", "contextFields"], ["class", "valign-top case-field-label", 4, "ngIf"], [1, "form-cell", "case-field-content"], [3, "formGroup", "topLevelFormGroup", "caseField", "context", "caseFields"], [1, "valign-top", "check-your-answers__change", "case-field-change"], ["href", "javascript:void(0)", 3, "click", 4, "ngIf"], [1, "valign-top", "case-field-label"], ["aria-describedby", "summary fields table", 1, "summary-fields"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["class", "compound-field", "ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "formGroup", "contextFields"], ["id", "summary-field-label"], [1, "form-cell"], [3, "formGroup", "caseField"], ["ccdLabelSubstitutor", "", 1, "compound-field", 3, "caseField", "formGroup", "contextFields"], ["colspan", "2"], [3, "formGroup", "caseField", "caseFields"], ["id", "fieldset-event", "formGroupName", "event", 4, "ngIf"], ["id", "fieldset-event", "formGroupName", "event"], [2, "display", "none"], [1, "form-group"], ["for", "field-trigger-summary", 1, "form-label"], [1, "form-hint"], ["type", "text", "id", "field-trigger-summary", "formControlName", "summary", "maxlength", "1024", 1, "form-control", "bottom-30", "width-50"], ["for", "field-trigger-description", 1, "form-label"], ["id", "field-trigger-description", "formControlName", "description", "maxlength", "65536", 1, "form-control", "bottom-30", "width-50"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditSubmitComponent_Template(rf, ctx) {
27190
26982
  if (rf & 1) {
27191
- i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 23, 17, "div", 0);
26983
+ i0__namespace.ɵɵtemplate(0, CaseEditSubmitComponent_div_0_Template, 22, 16, "div", 0);
27192
26984
  i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_ccd_case_event_completion_1_Template, 1, 1, "ccd-case-event-completion", 1);
27193
26985
  }
27194
26986
  if (rf & 2) {
27195
- i0__namespace.ɵɵproperty("ngIf", !ctx.eventCompletionChecksRequired);
26987
+ i0__namespace.ɵɵproperty("ngIf", !ctx.caseEdit.isEventCompletionChecksRequired);
27196
26988
  i0__namespace.ɵɵadvance(1);
27197
- i0__namespace.ɵɵproperty("ngIf", ctx.eventCompletionChecksRequired);
26989
+ i0__namespace.ɵɵproperty("ngIf", ctx.caseEdit.isEventCompletionChecksRequired);
27198
26990
  }
27199
26991
  }, styles: ["#fieldset-case-data[_ngcontent-%COMP%]{margin-bottom:30px}#fieldset-case-data[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:1%;white-space:nowrap;vertical-align:top}.compound-field[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0}#confirmation-header[_ngcontent-%COMP%]{width:630px;background-color:#17958b;border:1px solid #979797;color:#fff;text-align:center}#confirmation-body[_ngcontent-%COMP%]{width:630px;background-color:#fff}.valign-top[_ngcontent-%COMP%]{vertical-align:top}.summary-fields[_ngcontent-%COMP%]{margin-bottom:30px}.summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:0}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.case-field-label[_ngcontent-%COMP%]{width:45%}.case-field-content[_ngcontent-%COMP%]{width:50%}.case-field-change[_ngcontent-%COMP%]{width:5%}"] });
27200
26992
  (function () {
@@ -27205,7 +26997,7 @@
27205
26997
  templateUrl: 'case-edit-submit.html',
27206
26998
  styleUrls: ['../case-edit.scss']
27207
26999
  }]
27208
- }], function () { return [{ type: CaseEditComponent }, { type: FormValueService }, { type: FormErrorService }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: OrderService }, { type: ProfileNotifier }, { type: SessionStorageService }, { type: CaseNotifier }]; }, null);
27000
+ }], function () { return [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1__namespace$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }]; }, null);
27209
27001
  })();
27210
27002
 
27211
27003
  function CaseProgressComponent_div_0_Template(rf, ctx) {
@@ -27392,6 +27184,101 @@
27392
27184
  }], null, null);
27393
27185
  })();
27394
27186
 
27187
+ function CaseEditGenericErrorsComponent_div_0_Template(rf, ctx) {
27188
+ if (rf & 1) {
27189
+ i0__namespace.ɵɵelementStart(0, "div", 1);
27190
+ i0__namespace.ɵɵelementStart(1, "h1", 2);
27191
+ i0__namespace.ɵɵtext(2, " Something went wrong ");
27192
+ i0__namespace.ɵɵelementEnd();
27193
+ i0__namespace.ɵɵelementStart(3, "div", 3);
27194
+ i0__namespace.ɵɵelementStart(4, "p");
27195
+ i0__namespace.ɵɵtext(5, "We're working to fix the problem. Try again shortly.");
27196
+ i0__namespace.ɵɵelementEnd();
27197
+ i0__namespace.ɵɵelementStart(6, "p");
27198
+ i0__namespace.ɵɵelementStart(7, "a", 4);
27199
+ i0__namespace.ɵɵtext(8, "Contact us");
27200
+ i0__namespace.ɵɵelementEnd();
27201
+ i0__namespace.ɵɵtext(9, " if you're still having problems.");
27202
+ i0__namespace.ɵɵelementEnd();
27203
+ i0__namespace.ɵɵelementEnd();
27204
+ i0__namespace.ɵɵelementEnd();
27205
+ }
27206
+ }
27207
+ function CaseEditGenericErrorsComponent_div_1_ul_5_li_1_Template(rf, ctx) {
27208
+ if (rf & 1) {
27209
+ i0__namespace.ɵɵelementStart(0, "li", 9);
27210
+ i0__namespace.ɵɵtext(1);
27211
+ i0__namespace.ɵɵelementEnd();
27212
+ }
27213
+ if (rf & 2) {
27214
+ var fieldError_r4 = ctx.$implicit;
27215
+ i0__namespace.ɵɵadvance(1);
27216
+ i0__namespace.ɵɵtextInterpolate(fieldError_r4.message);
27217
+ }
27218
+ }
27219
+ function CaseEditGenericErrorsComponent_div_1_ul_5_Template(rf, ctx) {
27220
+ if (rf & 1) {
27221
+ i0__namespace.ɵɵelementStart(0, "ul", 7);
27222
+ i0__namespace.ɵɵtemplate(1, CaseEditGenericErrorsComponent_div_1_ul_5_li_1_Template, 2, 1, "li", 8);
27223
+ i0__namespace.ɵɵelementEnd();
27224
+ }
27225
+ if (rf & 2) {
27226
+ var ctx_r2 = i0__namespace.ɵɵnextContext(2);
27227
+ i0__namespace.ɵɵadvance(1);
27228
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r2.error.details.field_errors);
27229
+ }
27230
+ }
27231
+ function CaseEditGenericErrorsComponent_div_1_Template(rf, ctx) {
27232
+ if (rf & 1) {
27233
+ i0__namespace.ɵɵelementStart(0, "div", 1);
27234
+ i0__namespace.ɵɵelementStart(1, "h3", 5);
27235
+ i0__namespace.ɵɵtext(2, " The event could not be created ");
27236
+ i0__namespace.ɵɵelementEnd();
27237
+ i0__namespace.ɵɵelementStart(3, "p");
27238
+ i0__namespace.ɵɵtext(4);
27239
+ i0__namespace.ɵɵelementEnd();
27240
+ i0__namespace.ɵɵtemplate(5, CaseEditGenericErrorsComponent_div_1_ul_5_Template, 2, 1, "ul", 6);
27241
+ i0__namespace.ɵɵelementEnd();
27242
+ }
27243
+ if (rf & 2) {
27244
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
27245
+ i0__namespace.ɵɵadvance(4);
27246
+ i0__namespace.ɵɵtextInterpolate(ctx_r1.error.message);
27247
+ i0__namespace.ɵɵadvance(1);
27248
+ i0__namespace.ɵɵproperty("ngIf", ctx_r1.error.details == null ? null : ctx_r1.error.details.field_errors);
27249
+ }
27250
+ }
27251
+ var CaseEditGenericErrorsComponent = /** @class */ (function () {
27252
+ function CaseEditGenericErrorsComponent() {
27253
+ }
27254
+ return CaseEditGenericErrorsComponent;
27255
+ }());
27256
+ CaseEditGenericErrorsComponent.ɵfac = function CaseEditGenericErrorsComponent_Factory(t) { return new (t || CaseEditGenericErrorsComponent)(); };
27257
+ CaseEditGenericErrorsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseEditGenericErrorsComponent, selectors: [["ccd-case-edit-generic-errors"]], inputs: { error: "error" }, features: [i0__namespace.ɵɵProvidersFeature([])], decls: 2, vars: 2, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h3", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], ["class", "ccd-error-summary-li", 4, "ngFor", "ngForOf"], [1, "ccd-error-summary-li"]], template: function CaseEditGenericErrorsComponent_Template(rf, ctx) {
27258
+ if (rf & 1) {
27259
+ i0__namespace.ɵɵtemplate(0, CaseEditGenericErrorsComponent_div_0_Template, 10, 0, "div", 0);
27260
+ i0__namespace.ɵɵtemplate(1, CaseEditGenericErrorsComponent_div_1_Template, 6, 2, "div", 0);
27261
+ }
27262
+ if (rf & 2) {
27263
+ i0__namespace.ɵɵproperty("ngIf", ctx.error && (!(ctx.error.callbackErrors || ctx.error.callbackWarnings || ctx.error.details) && !ctx.error.message));
27264
+ i0__namespace.ɵɵadvance(1);
27265
+ i0__namespace.ɵɵproperty("ngIf", ctx.error && (ctx.error.details || ctx.error.message));
27266
+ }
27267
+ }, directives: [i1__namespace.NgIf, i1__namespace.NgForOf], styles: ["#fieldset-case-data[_ngcontent-%COMP%]{margin-bottom:30px}#fieldset-case-data[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{width:1%;white-space:nowrap;vertical-align:top}.compound-field[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0}#confirmation-header[_ngcontent-%COMP%]{width:630px;background-color:#17958b;border:1px solid #979797;color:#fff;text-align:center}#confirmation-body[_ngcontent-%COMP%]{width:630px;background-color:#fff}.valign-top[_ngcontent-%COMP%]{vertical-align:top}.summary-fields[_ngcontent-%COMP%]{margin-bottom:30px}.summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .summary-fields[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:0}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.case-field-label[_ngcontent-%COMP%]{width:45%}.case-field-content[_ngcontent-%COMP%]{width:50%}.case-field-change[_ngcontent-%COMP%]{width:5%}"] });
27268
+ (function () {
27269
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseEditGenericErrorsComponent, [{
27270
+ type: i0.Component,
27271
+ args: [{
27272
+ selector: 'ccd-case-edit-generic-errors',
27273
+ templateUrl: 'case-edit-generic-errors.component.html',
27274
+ styleUrls: ['../case-edit.scss'],
27275
+ providers: []
27276
+ }]
27277
+ }], null, { error: [{
27278
+ type: i0.Input
27279
+ }] });
27280
+ })();
27281
+
27395
27282
  var _c0$e = function (a3) { return ["/", "cases", "case-details", a3, "tasks"]; };
27396
27283
  var CaseEventCompletionTaskCancelledComponent = /** @class */ (function () {
27397
27284
  function CaseEventCompletionTaskCancelledComponent(parentComponent) {
@@ -27666,10 +27553,10 @@
27666
27553
  // tslint:disable-next-line:switch-default
27667
27554
  switch (portalType) {
27668
27555
  case EventCompletionPortalTypes.TaskCancelled:
27669
- this.selectedComponentPortal = new i6$2.ComponentPortal(CaseEventCompletionTaskCancelledComponent, null, injector);
27556
+ this.selectedComponentPortal = new i6$1.ComponentPortal(CaseEventCompletionTaskCancelledComponent, null, injector);
27670
27557
  break;
27671
27558
  case EventCompletionPortalTypes.TaskReassigned:
27672
- this.selectedComponentPortal = new i6$2.ComponentPortal(CaseEventCompletionTaskReassignedComponent, null, injector);
27559
+ this.selectedComponentPortal = new i6$1.ComponentPortal(CaseEventCompletionTaskReassignedComponent, null, injector);
27673
27560
  break;
27674
27561
  }
27675
27562
  };
@@ -27683,7 +27570,7 @@
27683
27570
  if (rf & 2) {
27684
27571
  i0__namespace.ɵɵproperty("cdkPortalOutlet", ctx.selectedComponentPortal);
27685
27572
  }
27686
- }, directives: [i6__namespace$2.CdkPortalOutlet], encapsulation: 2 });
27573
+ }, directives: [i6__namespace$1.CdkPortalOutlet], encapsulation: 2 });
27687
27574
  (function () {
27688
27575
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseEventCompletionComponent, [{
27689
27576
  type: i0.Component,
@@ -27743,7 +27630,7 @@
27743
27630
  LabelSubstitutorModule,
27744
27631
  ConditionalShowModule,
27745
27632
  ErrorsModule,
27746
- i6$2.PortalModule,
27633
+ i6$1.PortalModule,
27747
27634
  LoadingSpinnerModule,
27748
27635
  BannersModule
27749
27636
  ]] });
@@ -27757,7 +27644,8 @@
27757
27644
  CaseEventCompletionTaskCancelledComponent,
27758
27645
  CaseEventCompletionTaskReassignedComponent,
27759
27646
  CaseCreateComponent,
27760
- CaseProgressComponent], imports: [i1.CommonModule,
27647
+ CaseProgressComponent,
27648
+ CaseEditGenericErrorsComponent], imports: [i1.CommonModule,
27761
27649
  i1$1.RouterModule,
27762
27650
  i2.FormsModule,
27763
27651
  i2.ReactiveFormsModule,
@@ -27766,7 +27654,7 @@
27766
27654
  LabelSubstitutorModule,
27767
27655
  ConditionalShowModule,
27768
27656
  ErrorsModule,
27769
- i6$2.PortalModule,
27657
+ i6$1.PortalModule,
27770
27658
  LoadingSpinnerModule,
27771
27659
  BannersModule], exports: [CaseEditConfirmComponent,
27772
27660
  CaseEditComponent,
@@ -27791,7 +27679,7 @@
27791
27679
  LabelSubstitutorModule,
27792
27680
  ConditionalShowModule,
27793
27681
  ErrorsModule,
27794
- i6$2.PortalModule,
27682
+ i6$1.PortalModule,
27795
27683
  LoadingSpinnerModule,
27796
27684
  BannersModule
27797
27685
  ],
@@ -27805,7 +27693,8 @@
27805
27693
  CaseEventCompletionTaskCancelledComponent,
27806
27694
  CaseEventCompletionTaskReassignedComponent,
27807
27695
  CaseCreateComponent,
27808
- CaseProgressComponent
27696
+ CaseProgressComponent,
27697
+ CaseEditGenericErrorsComponent
27809
27698
  ],
27810
27699
  exports: [
27811
27700
  CaseEditConfirmComponent,
@@ -27850,9 +27739,10 @@
27850
27739
  }], null, null);
27851
27740
  })();
27852
27741
  i0__namespace.ɵɵsetComponentScope(CaseEditConfirmComponent, [i1__namespace.NgIf, MarkdownComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [CcdCaseTitlePipe, CaseReferencePipe]);
27853
- i0__namespace.ɵɵsetComponentScope(CaseEditPageComponent, [i1__namespace.NgIf, LoadingSpinnerComponent, MarkdownComponent, i1__namespace.NgForOf, CallbackErrorsComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, CaseEditFormComponent], [CcdCaseTitlePipe, CaseReferencePipe, i1__namespace.AsyncPipe]);
27742
+ i0__namespace.ɵɵsetComponentScope(CaseEditPageComponent, [i1__namespace.NgIf, MarkdownComponent, i1__namespace.NgForOf, CaseEditGenericErrorsComponent, CallbackErrorsComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, CaseEditFormComponent,
27743
+ CaseEventCompletionComponent], [CcdCaseTitlePipe, CaseReferencePipe, i1__namespace.AsyncPipe]);
27854
27744
  i0__namespace.ɵɵsetComponentScope(CaseEditFormComponent, [i1__namespace.NgForOf, ConditionalShowFormDirective, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, LabelSubstitutorDirective, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, i1__namespace.NgIf, FieldWriteComponent], [IsReadOnlyAndNotCollectionPipe, IsCompoundPipe]);
27855
- i0__namespace.ɵɵsetComponentScope(CaseEditSubmitComponent, [i1__namespace.NgIf, MarkdownComponent, i1__namespace.NgForOf, CallbackErrorsComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i2__namespace.FormGroupName, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i2__namespace.MaxLengthValidator, CaseEventCompletionComponent], [CcdCaseTitlePipe, CaseReferencePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, IsCompoundPipe]);
27745
+ i0__namespace.ɵɵsetComponentScope(CaseEditSubmitComponent, [i1__namespace.NgIf, MarkdownComponent, CaseEditGenericErrorsComponent, CallbackErrorsComponent, i2__namespace.ɵangular_packages_forms_forms_ba, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgForOf, LabelSubstitutorDirective, FieldReadComponent, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i2__namespace.FormGroupName, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i2__namespace.MaxLengthValidator, CaseEventCompletionComponent], [CcdCaseTitlePipe, CaseReferencePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, IsCompoundPipe]);
27856
27746
  i0__namespace.ɵɵsetComponentScope(CaseCreateComponent, [i1__namespace.NgIf, CaseEditComponent], []);
27857
27747
  i0__namespace.ɵɵsetComponentScope(CaseProgressComponent, [i1__namespace.NgIf, CaseEditComponent], []);
27858
27748
 
@@ -30251,9 +30141,7 @@
30251
30141
  };
30252
30142
  CaseEventTriggerComponent.prototype.cancel = function () {
30253
30143
  if (this.router.url && this.router.url.includes('linkCases')) {
30254
- this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]).then(function () {
30255
- window.location.hash = 'Linked cases';
30256
- });
30144
+ this.router.navigate(['cases', 'case-details', this.caseDetails.case_id], { fragment: 'Linked cases' });
30257
30145
  }
30258
30146
  else {
30259
30147
  return this.router.navigate([this.parentUrl]);
@@ -30503,27 +30391,15 @@
30503
30391
  }
30504
30392
  }
30505
30393
  var CaseBasicAccessViewComponent = /** @class */ (function () {
30506
- function CaseBasicAccessViewComponent(casesService, router, titleService, caseReferencePipe) {
30394
+ function CaseBasicAccessViewComponent(casesService, router) {
30507
30395
  this.casesService = casesService;
30508
30396
  this.router = router;
30509
- this.titleService = titleService;
30510
- this.caseReferencePipe = caseReferencePipe;
30511
30397
  this.caseDetails = null;
30512
30398
  this.accessType = null;
30513
30399
  this.courtOrHearingCentre = null;
30514
30400
  }
30515
30401
  CaseBasicAccessViewComponent.prototype.ngOnInit = function () {
30516
30402
  var _this = this;
30517
- var _a;
30518
- var caseName = (_a = this.caseDetails.basicFields) === null || _a === void 0 ? void 0 : _a.caseNameHmctsInternal;
30519
- var caseDetails;
30520
- if (caseName) {
30521
- caseDetails = caseName + " (" + this.caseReferencePipe.transform(this.caseDetails.case_id) + ")";
30522
- }
30523
- else {
30524
- caseDetails = this.caseReferencePipe.transform(this.caseDetails.case_id);
30525
- }
30526
- this.titleService.setTitle(caseDetails + " - HM Courts & Tribunals Service - GOV.UK");
30527
30403
  var locationId = this.caseDetails &&
30528
30404
  this.caseDetails.basicFields &&
30529
30405
  this.caseDetails.basicFields.caseManagementLocation &&
@@ -30552,8 +30428,8 @@
30552
30428
  return CaseBasicAccessViewComponent;
30553
30429
  }());
30554
30430
  CaseBasicAccessViewComponent.CANCEL_LINK_DESTINATION = '/work/my-work/list';
30555
- CaseBasicAccessViewComponent.ɵfac = function CaseBasicAccessViewComponent_Factory(t) { return new (t || CaseBasicAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(i3__namespace$2.Title), i0__namespace.ɵɵdirectiveInject(CaseReferencePipe)); };
30556
- CaseBasicAccessViewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseBasicAccessViewComponent, selectors: [["ccd-case-basic-access-view"]], inputs: { caseDetails: "caseDetails", accessType: "accessType" }, features: [i0__namespace.ɵɵProvidersFeature([CaseReferencePipe])], decls: 26, vars: 14, consts: [[4, "ngIf"], ["type", "information"], [1, "heading-h1"], [1, "govuk-heading-m"], [1, "govuk-summary-list"], ["class", "govuk-summary-list__row", 4, "ngIf"], [1, "govuk-button-group"], [1, "govuk-button", "govuk-!-margin-right-3", 3, "routerLink"], [1, "govuk-grid-column-full", "govuk-!-padding-left-0"], ["href", "javascript:void(0)", 1, "govuk-body", 3, "click"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key", "summary-key"], [1, "govuk-summary-list__value"]], template: function CaseBasicAccessViewComponent_Template(rf, ctx) {
30431
+ CaseBasicAccessViewComponent.ɵfac = function CaseBasicAccessViewComponent_Factory(t) { return new (t || CaseBasicAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(CasesService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router)); };
30432
+ CaseBasicAccessViewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseBasicAccessViewComponent, selectors: [["ccd-case-basic-access-view"]], inputs: { caseDetails: "caseDetails", accessType: "accessType" }, decls: 26, vars: 14, consts: [[4, "ngIf"], ["type", "information"], [1, "heading-h1"], [1, "govuk-heading-m"], [1, "govuk-summary-list"], ["class", "govuk-summary-list__row", 4, "ngIf"], [1, "govuk-button-group"], [1, "govuk-button", "govuk-!-margin-right-3", 3, "routerLink"], [1, "govuk-grid-column-full", "govuk-!-padding-left-0"], ["href", "javascript:void(0)", 1, "govuk-body", 3, "click"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key", "summary-key"], [1, "govuk-summary-list__value"]], template: function CaseBasicAccessViewComponent_Template(rf, ctx) {
30557
30433
  if (rf & 1) {
30558
30434
  i0__namespace.ɵɵtemplate(0, CaseBasicAccessViewComponent_ccd_loading_spinner_0_Template, 1, 0, "ccd-loading-spinner", 0);
30559
30435
  i0__namespace.ɵɵelementStart(1, "div");
@@ -30624,10 +30500,9 @@
30624
30500
  type: i0.Component,
30625
30501
  args: [{
30626
30502
  selector: 'ccd-case-basic-access-view',
30627
- templateUrl: 'case-basic-access-view.component.html',
30628
- providers: [CaseReferencePipe]
30503
+ templateUrl: 'case-basic-access-view.component.html'
30629
30504
  }]
30630
- }], function () { return [{ type: CasesService }, { type: i1__namespace$1.Router }, { type: i3__namespace$2.Title }, { type: CaseReferencePipe }]; }, { caseDetails: [{
30505
+ }], function () { return [{ type: CasesService }, { type: i1__namespace$1.Router }]; }, { caseDetails: [{
30631
30506
  type: i0.Input
30632
30507
  }], accessType: [{
30633
30508
  type: i0.Input
@@ -30864,9 +30739,9 @@
30864
30739
  i0__namespace.ɵɵelementEnd();
30865
30740
  }
30866
30741
  if (rf & 2) {
30867
- var field_r24 = i0__namespace.ɵɵnextContext(2).$implicit;
30742
+ var field_r23 = i0__namespace.ɵɵnextContext(2).$implicit;
30868
30743
  i0__namespace.ɵɵadvance(2);
30869
- i0__namespace.ɵɵtextInterpolate(field_r24.label);
30744
+ i0__namespace.ɵɵtextInterpolate(field_r23.label);
30870
30745
  }
30871
30746
  }
30872
30747
  function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) {
@@ -30881,14 +30756,14 @@
30881
30756
  i0__namespace.ɵɵelementEnd();
30882
30757
  }
30883
30758
  if (rf & 2) {
30884
- var field_r24 = i0__namespace.ɵɵnextContext().$implicit;
30885
- var ctx_r25 = i0__namespace.ɵɵnextContext(4);
30759
+ var field_r23 = i0__namespace.ɵɵnextContext().$implicit;
30760
+ var ctx_r24 = i0__namespace.ɵɵnextContext(4);
30886
30761
  i0__namespace.ɵɵadvance(1);
30887
- i0__namespace.ɵɵproperty("ngIf", !ctx_r25.isFieldToHaveNoLabel(field_r24));
30762
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r24.isFieldToHaveNoLabel(field_r23));
30888
30763
  i0__namespace.ɵɵadvance(1);
30889
- i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
30764
+ i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r23.id);
30890
30765
  i0__namespace.ɵɵadvance(2);
30891
- i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r25.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r25.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r25.markdownUseHrefAsRouterLink);
30766
+ i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r24.formGroup.controls["data"])("caseField", field_r23)("caseReference", ctx_r24.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r24.markdownUseHrefAsRouterLink);
30892
30767
  }
30893
30768
  }
30894
30769
  function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) {
@@ -30902,12 +30777,12 @@
30902
30777
  i0__namespace.ɵɵelementEnd();
30903
30778
  }
30904
30779
  if (rf & 2) {
30905
- var field_r24 = i0__namespace.ɵɵnextContext().$implicit;
30906
- var ctx_r26 = i0__namespace.ɵɵnextContext(4);
30780
+ var field_r23 = i0__namespace.ɵɵnextContext().$implicit;
30781
+ var ctx_r25 = i0__namespace.ɵɵnextContext(4);
30907
30782
  i0__namespace.ɵɵadvance(1);
30908
- i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
30783
+ i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r23.id);
30909
30784
  i0__namespace.ɵɵadvance(2);
30910
- i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r26.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r26.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r26.markdownUseHrefAsRouterLink);
30785
+ i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r25.formGroup.controls["data"])("caseField", field_r23)("caseReference", ctx_r25.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r25.markdownUseHrefAsRouterLink);
30911
30786
  }
30912
30787
  }
30913
30788
  function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_Template(rf, ctx) {
@@ -30923,12 +30798,12 @@
30923
30798
  i0__namespace.ɵɵelementContainerEnd();
30924
30799
  }
30925
30800
  if (rf & 2) {
30926
- var field_r24 = ctx.$implicit;
30927
- var ctx_r23 = i0__namespace.ɵɵnextContext(4);
30801
+ var field_r23 = ctx.$implicit;
30802
+ var ctx_r22 = i0__namespace.ɵɵnextContext(4);
30928
30803
  i0__namespace.ɵɵadvance(1);
30929
- i0__namespace.ɵɵproperty("caseField", field_r24)("contextFields", ctx_r23.caseFields)("hidden", field_r24.hidden);
30804
+ i0__namespace.ɵɵproperty("caseField", field_r23)("contextFields", ctx_r22.caseFields)("hidden", field_r23.hidden);
30930
30805
  i0__namespace.ɵɵadvance(1);
30931
- i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(3, 6, field_r24));
30806
+ i0__namespace.ɵɵproperty("ngSwitch", !i0__namespace.ɵɵpipeBind1(3, 6, field_r23));
30932
30807
  i0__namespace.ɵɵadvance(2);
30933
30808
  i0__namespace.ɵɵproperty("ngSwitchCase", true);
30934
30809
  i0__namespace.ɵɵadvance(1);
@@ -30948,10 +30823,10 @@
30948
30823
  }
30949
30824
  if (rf & 2) {
30950
30825
  var tab_r20 = i0__namespace.ɵɵnextContext().$implicit;
30951
- var ctx_r22 = i0__namespace.ɵɵnextContext(2);
30826
+ var ctx_r21 = i0__namespace.ɵɵnextContext(2);
30952
30827
  i0__namespace.ɵɵclassMap(tab_r20.id);
30953
30828
  i0__namespace.ɵɵadvance(2);
30954
- i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(11, _c1$3, i0__namespace.ɵɵpipeBind1(4, 9, tab_r20), ctx_r22.formGroup.controls["data"])));
30829
+ i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(11, _c1$3, i0__namespace.ɵɵpipeBind1(4, 9, tab_r20), ctx_r21.formGroup.controls["data"])));
30955
30830
  }
30956
30831
  }
30957
30832
  function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template(rf, ctx) {
@@ -30970,8 +30845,8 @@
30970
30845
  i0__namespace.ɵɵelement(0, "mat-tab", 26);
30971
30846
  }
30972
30847
  if (rf & 2) {
30973
- var tab_r32 = ctx.$implicit;
30974
- i0__namespace.ɵɵproperty("id", tab_r32.id)("label", tab_r32.label);
30848
+ var tab_r31 = ctx.$implicit;
30849
+ i0__namespace.ɵɵproperty("id", tab_r31.id)("label", tab_r31.label);
30975
30850
  }
30976
30851
  }
30977
30852
  function CaseFullAccessViewComponent_ng_container_12_router_outlet_6_Template(rf, ctx) {
@@ -30981,10 +30856,10 @@
30981
30856
  }
30982
30857
  function CaseFullAccessViewComponent_ng_container_12_Template(rf, ctx) {
30983
30858
  if (rf & 1) {
30984
- var _r34_1 = i0__namespace.ɵɵgetCurrentView();
30859
+ var _r33_1 = i0__namespace.ɵɵgetCurrentView();
30985
30860
  i0__namespace.ɵɵelementContainerStart(0);
30986
30861
  i0__namespace.ɵɵelementStart(1, "mat-tab-group", 23, 24);
30987
- i0__namespace.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_12_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0__namespace.ɵɵrestoreView(_r34_1); var ctx_r33 = i0__namespace.ɵɵnextContext(); return ctx_r33.tabChanged($event); });
30862
+ i0__namespace.ɵɵlistener("selectedIndexChange", function CaseFullAccessViewComponent_ng_container_12_Template_mat_tab_group_selectedIndexChange_1_listener($event) { i0__namespace.ɵɵrestoreView(_r33_1); var ctx_r32 = i0__namespace.ɵɵnextContext(); return ctx_r32.tabChanged($event); });
30988
30863
  i0__namespace.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_Template, 1, 2, "mat-tab", 25);
30989
30864
  i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template, 2, 2, "mat-tab", 25);
30990
30865
  i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_5_Template, 1, 2, "mat-tab", 25);
@@ -31007,7 +30882,7 @@
31007
30882
  }
31008
30883
  }
31009
30884
  var CaseFullAccessViewComponent = /** @class */ (function () {
31010
- function CaseFullAccessViewComponent(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, convertHrefToRouterService, location, crf, sessionStorageService, titleService, caseReferencePipe) {
30885
+ function CaseFullAccessViewComponent(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, convertHrefToRouterService, location, crf, sessionStorageService) {
31011
30886
  this.ngZone = ngZone;
31012
30887
  this.route = route;
31013
30888
  this.router = router;
@@ -31022,8 +30897,7 @@
31022
30897
  this.location = location;
31023
30898
  this.crf = crf;
31024
30899
  this.sessionStorageService = sessionStorageService;
31025
- this.titleService = titleService;
31026
- this.caseReferencePipe = caseReferencePipe;
30900
+ this.HEARINGS_TAB_LABEL = 'Hearings';
31027
30901
  this.hasPrint = true;
31028
30902
  this.hasEventSelector = true;
31029
30903
  this.prependedTabs = [];
@@ -31035,20 +30909,11 @@
31035
30909
  this.ignoreWarning = false;
31036
30910
  this.selectedTabIndex = 0;
31037
30911
  this.activeCaseFlags = false;
30912
+ this.subs = [];
31038
30913
  this.callbackErrorsSubject = new rxjs.Subject();
31039
30914
  }
31040
30915
  CaseFullAccessViewComponent.prototype.ngOnInit = function () {
31041
30916
  var _this = this;
31042
- var _a;
31043
- var caseName = (_a = this.caseDetails.basicFields) === null || _a === void 0 ? void 0 : _a.caseNameHmctsInternal;
31044
- var caseDetails;
31045
- if (caseName) {
31046
- caseDetails = caseName + " (" + this.caseReferencePipe.transform(this.caseDetails.case_id) + ")";
31047
- }
31048
- else {
31049
- caseDetails = this.caseReferencePipe.transform(this.caseDetails.case_id);
31050
- }
31051
- this.titleService.setTitle(caseDetails + " - HM Courts & Tribunals Service - GOV.UK");
31052
30917
  initDialog();
31053
30918
  this.init();
31054
30919
  this.callbackErrorsSubject.subscribe(function (errorEvent) {
@@ -31097,6 +30962,7 @@
31097
30962
  this.unsubscribe(this.callbackErrorsSubject);
31098
30963
  this.unsubscribe(this.errorSubscription);
31099
30964
  this.unsubscribe(this.subscription);
30965
+ this.subs.forEach(function (s) { return s.unsubscribe(); });
31100
30966
  };
31101
30967
  CaseFullAccessViewComponent.prototype.unsubscribe = function (subscription) {
31102
30968
  if (subscription) {
@@ -31105,7 +30971,7 @@
31105
30971
  };
31106
30972
  CaseFullAccessViewComponent.prototype.checkRouteAndSetCaseViewTab = function () {
31107
30973
  var _this = this;
31108
- this.router.events
30974
+ this.subs.push(this.router.events
31109
30975
  .pipe(operators.filter(function (event) { return event instanceof i1$1.NavigationEnd; }))
31110
30976
  .subscribe(function (event) {
31111
30977
  var url = event && event.url;
@@ -31117,8 +30983,9 @@
31117
30983
  _this.tabGroup.selectedIndex = matTab.position;
31118
30984
  }
31119
30985
  }
31120
- });
30986
+ }));
31121
30987
  };
30988
+ ;
31122
30989
  CaseFullAccessViewComponent.prototype.postViewActivity = function () {
31123
30990
  return this.activityPollingService.postViewActivity(this.caseDetails.case_id);
31124
30991
  };
@@ -31241,22 +31108,25 @@
31241
31108
  }
31242
31109
  }
31243
31110
  };
31244
- CaseFullAccessViewComponent.prototype.tabChanged = function (tabChangeEvent) {
31245
- // Update selected tab index
31246
- this.selectedTabIndex = tabChangeEvent.index;
31247
- var tab = tabChangeEvent.tab['_viewContainerRef'];
31248
- var id = tab.element.nativeElement.id;
31249
- // due to some edge case like hidden tab we can't calculate the last index of existing tabs,
31250
- // so have to hard code the hearings id here
31251
- if ((tabChangeEvent.index <= 1 && this.prependedTabs && this.prependedTabs.length) ||
31252
- (this.appendedTabs && this.appendedTabs.length && id === 'hearings')) {
31111
+ // Refactored under EXUI-110 to address infinite tab loop to use tabIndexChanged instead
31112
+ CaseFullAccessViewComponent.prototype.tabChanged = function (tabIndexChanged) {
31113
+ var matTab = this.tabGroup._tabs.find(function (tab) { return tab.isActive; });
31114
+ var tabLabel = matTab.textLabel;
31115
+ // sortedTabs are fragments
31116
+ // appended/prepepended tabs use router navigation
31117
+ if ((tabIndexChanged <= 1 && this.prependedTabs && this.prependedTabs.length) ||
31118
+ (this.appendedTabs && this.appendedTabs.length && tabLabel === this.HEARINGS_TAB_LABEL)) {
31119
+ // Hack to get ID from tab as it's not easily achieved through Angular Material Tabs
31120
+ var tab = matTab['_viewContainerRef'];
31121
+ var id = tab.element.nativeElement.id;
31122
+ // cases/case-details/:caseId/hearings
31123
+ // cases/case-details/:caseId/roles-and-access
31253
31124
  this.router.navigate([id], { relativeTo: this.route });
31254
31125
  }
31255
31126
  else {
31256
- var label_1 = tabChangeEvent.tab.textLabel;
31257
- this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]).then(function () {
31258
- window.location.hash = label_1;
31259
- });
31127
+ // Routing here is based on tab label, not ideal
31128
+ // cases/case-details/:caseId#tabLabel
31129
+ this.router.navigate(['cases', 'case-details', this.caseDetails.case_id], { fragment: tabLabel });
31260
31130
  }
31261
31131
  };
31262
31132
  CaseFullAccessViewComponent.prototype.onLinkClicked = function (triggerOutputEventText) {
@@ -31343,8 +31213,8 @@
31343
31213
  var value = {};
31344
31214
  if (caseFields) {
31345
31215
  caseFields.forEach(function (caseField) {
31346
- var _b;
31347
- value = Object.assign(Object.assign({}, value), (_b = {}, _b[caseField.id] = caseField.value, _b));
31216
+ var _a;
31217
+ value = Object.assign(Object.assign({}, value), (_a = {}, _a[caseField.id] = caseField.value, _a));
31348
31218
  });
31349
31219
  }
31350
31220
  return new i2.FormGroup({ data: new i2.FormControl(value) });
@@ -31354,6 +31224,12 @@
31354
31224
  this.callbackErrorsSubject.next(null);
31355
31225
  this.alertService.clear();
31356
31226
  };
31227
+ CaseFullAccessViewComponent.prototype.getUrlFragment = function (url) {
31228
+ return url.split('#')[url.split('#').length - 1];
31229
+ };
31230
+ CaseFullAccessViewComponent.prototype.getTabIndexByTabLabel = function (tabGroup, tabLabel) {
31231
+ return tabGroup._tabs.toArray().findIndex(function (t) { return t.textLabel.toLowerCase() === tabLabel.toLowerCase(); });
31232
+ };
31357
31233
  return CaseFullAccessViewComponent;
31358
31234
  }());
31359
31235
  CaseFullAccessViewComponent.ORIGIN_QUERY_PARAM = 'origin';
@@ -31361,7 +31237,7 @@
31361
31237
  CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
31362
31238
  CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
31363
31239
  CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
31364
- CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(i3__namespace$2.Title), i0__namespace.ɵɵdirectiveInject(CaseReferencePipe)); };
31240
+ CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i1__namespace.Location), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
31365
31241
  CaseFullAccessViewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) {
31366
31242
  if (rf & 1) {
31367
31243
  i0__namespace.ɵɵviewQuery(_c0$b, 1);
@@ -31370,7 +31246,7 @@
31370
31246
  var _t = void 0;
31371
31247
  i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
31372
31248
  }
31373
- }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0__namespace.ɵɵProvidersFeature([CaseReferencePipe]), i0__namespace.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], [3, "notificationBannerConfig", "linkClicked"], ["animationDuration", "0ms", 3, "disableRipple", "selectedIndex", "selectedTabChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], ["scope", "col", 3, "id"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) {
31249
+ }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], [3, "notificationBannerConfig", "linkClicked"], ["animationDuration", "0ms", 3, "disableRipple", "selectedIndex", "selectedIndexChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], ["scope", "col", 3, "id"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) {
31374
31250
  if (rf & 1) {
31375
31251
  i0__namespace.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
31376
31252
  i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
@@ -31418,10 +31294,9 @@
31418
31294
  args: [{
31419
31295
  selector: 'ccd-case-full-access-view',
31420
31296
  templateUrl: './case-full-access-view.component.html',
31421
- styleUrls: ['./case-full-access-view.component.scss'],
31422
- providers: [CaseReferencePipe]
31297
+ styleUrls: ['./case-full-access-view.component.scss']
31423
31298
  }]
31424
- }], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$3.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1__namespace.Location }, { type: i0__namespace.ChangeDetectorRef }, { type: SessionStorageService }, { type: i3__namespace$2.Title }, { type: CaseReferencePipe }]; }, { hasPrint: [{
31299
+ }], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$3.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1__namespace.Location }, { type: i0__namespace.ChangeDetectorRef }, { type: SessionStorageService }]; }, { hasPrint: [{
31425
31300
  type: i0.Input
31426
31301
  }], hasEventSelector: [{
31427
31302
  type: i0.Input
@@ -31640,10 +31515,11 @@
31640
31515
  }
31641
31516
  }
31642
31517
  var CaseViewerComponent = /** @class */ (function () {
31643
- function CaseViewerComponent(route, caseNotifier, appConfig) {
31518
+ function CaseViewerComponent(route, caseNotifier, appConfig, orderService) {
31644
31519
  this.route = route;
31645
31520
  this.caseNotifier = caseNotifier;
31646
31521
  this.appConfig = appConfig;
31522
+ this.orderService = orderService;
31647
31523
  this.hasPrint = true;
31648
31524
  this.hasEventSelector = true;
31649
31525
  this.prependedTabs = [];
@@ -31659,20 +31535,22 @@
31659
31535
  };
31660
31536
  CaseViewerComponent.prototype.loadCaseDetails = function () {
31661
31537
  var _this = this;
31662
- if (!this.route.snapshot.data.case) {
31538
+ if (this.route.snapshot.data.case) {
31539
+ this.caseDetails = this.route.snapshot.data.case;
31540
+ this.caseDetails.tabs = this.orderService.sort(this.caseDetails.tabs);
31541
+ this.caseDetails.tabs = this.suffixDuplicateTabs(this.caseDetails.tabs);
31542
+ this.setUserAccessType(this.caseDetails);
31543
+ }
31544
+ else {
31663
31545
  this.caseSubscription = this.caseNotifier.caseView.subscribe(function (caseDetails) {
31664
31546
  _this.caseDetails = caseDetails;
31665
31547
  _this.setUserAccessType(_this.caseDetails);
31666
31548
  });
31667
31549
  }
31668
- else {
31669
- this.caseDetails = this.route.snapshot.data.case;
31670
- this.setUserAccessType(this.caseDetails);
31671
- }
31672
31550
  };
31673
31551
  CaseViewerComponent.prototype.setUserAccessType = function (caseDetails) {
31674
31552
  if (caseDetails && Array.isArray(caseDetails.metadataFields)) {
31675
- var accessProcess = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID; });
31553
+ var accessProcess = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_PROCESS_ID; });
31676
31554
  var accessGranted = caseDetails.metadataFields.find(function (metadataField) { return metadataField.id === CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID; });
31677
31555
  this.accessGranted = accessGranted ? accessGranted.value !== CaseViewerComponent.BASIC_USER_ACCESS_TYPES : false;
31678
31556
  this.userAccessType = accessProcess ? accessProcess.value : null;
@@ -31687,14 +31565,30 @@
31687
31565
  !this.accessGranted ? CaseViewerComponent.NON_STANDARD_USER_ACCESS_TYPES.indexOf(this.userAccessType) === -1 : true
31688
31566
  : true;
31689
31567
  };
31568
+ CaseViewerComponent.prototype.suffixDuplicateTabs = function (tabs) {
31569
+ var count = {};
31570
+ var firstOccurences = {};
31571
+ var item;
31572
+ var itemCount;
31573
+ for (var i = 0, c = tabs.length; i < c; i++) {
31574
+ item = tabs[i].label;
31575
+ itemCount = count[item];
31576
+ itemCount = count[item] = (itemCount == null ? 1 : itemCount + 1);
31577
+ if (count[item] > 1)
31578
+ tabs[i].label = tabs[i].label + Array(count[item] - 1).fill('_').join('');
31579
+ else
31580
+ firstOccurences[item] = i;
31581
+ }
31582
+ return tabs;
31583
+ };
31690
31584
  return CaseViewerComponent;
31691
31585
  }());
31692
- CaseViewerComponent.METADATA_FIELD_ACCESS_PROCEES_ID = '[ACCESS_PROCESS]';
31586
+ CaseViewerComponent.METADATA_FIELD_ACCESS_PROCESS_ID = '[ACCESS_PROCESS]';
31693
31587
  CaseViewerComponent.METADATA_FIELD_ACCESS_GRANTED_ID = '[ACCESS_GRANTED]';
31694
31588
  CaseViewerComponent.NON_STANDARD_USER_ACCESS_TYPES = ['CHALLENGED', 'SPECIFIC'];
31695
31589
  CaseViewerComponent.BASIC_USER_ACCESS_TYPES = 'BASIC';
31696
- CaseViewerComponent.ɵfac = function CaseViewerComponent_Factory(t) { return new (t || CaseViewerComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(AbstractAppConfig)); };
31697
- CaseViewerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseViewerComponent, selectors: [["ccd-case-viewer"]], inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs", caseDetails: "caseDetails" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [3, "accessType", "caseDetails", 4, "ngIf"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs", 4, "ngIf"], [3, "accessType", "caseDetails"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs"]], template: function CaseViewerComponent_Template(rf, ctx) {
31590
+ CaseViewerComponent.ɵfac = function CaseViewerComponent_Factory(t) { return new (t || CaseViewerComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(OrderService)); };
31591
+ CaseViewerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseViewerComponent, selectors: [["ccd-case-viewer"]], inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [3, "accessType", "caseDetails", 4, "ngIf"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs", 4, "ngIf"], [3, "accessType", "caseDetails"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs"]], template: function CaseViewerComponent_Template(rf, ctx) {
31698
31592
  if (rf & 1) {
31699
31593
  i0__namespace.ɵɵtemplate(0, CaseViewerComponent_div_0_Template, 3, 2, "div", 0);
31700
31594
  }
@@ -31709,7 +31603,7 @@
31709
31603
  selector: 'ccd-case-viewer',
31710
31604
  templateUrl: './case-viewer.component.html'
31711
31605
  }]
31712
- }], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: CaseNotifier }, { type: AbstractAppConfig }]; }, { hasPrint: [{
31606
+ }], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: CaseNotifier }, { type: AbstractAppConfig }, { type: OrderService }]; }, { hasPrint: [{
31713
31607
  type: i0.Input
31714
31608
  }], hasEventSelector: [{
31715
31609
  type: i0.Input
@@ -31717,8 +31611,6 @@
31717
31611
  type: i0.Input
31718
31612
  }], appendedTabs: [{
31719
31613
  type: i0.Input
31720
- }], caseDetails: [{
31721
- type: i0.Input
31722
31614
  }] });
31723
31615
  })();
31724
31616
 
@@ -36268,9 +36160,6 @@
36268
36160
  exports.Profile = Profile;
36269
36161
  exports.ProfileNotifier = ProfileNotifier;
36270
36162
  exports.ProfileService = ProfileService;
36271
- exports.QueryCreateComponent = QueryCreateComponent;
36272
- exports.QueryDetailComponent = QueryDetailComponent;
36273
- exports.QueryListComponent = QueryListComponent;
36274
36163
  exports.ReadCaseFlagFieldComponent = ReadCaseFlagFieldComponent;
36275
36164
  exports.ReadCaseLinkFieldComponent = ReadCaseLinkFieldComponent;
36276
36165
  exports.ReadCollectionFieldComponent = ReadCollectionFieldComponent;
@@ -36298,7 +36187,6 @@
36298
36187
  exports.ReadOrganisationFieldRawComponent = ReadOrganisationFieldRawComponent;
36299
36188
  exports.ReadOrganisationFieldTableComponent = ReadOrganisationFieldTableComponent;
36300
36189
  exports.ReadPhoneUKFieldComponent = ReadPhoneUKFieldComponent;
36301
- exports.ReadQueryManagementFieldComponent = ReadQueryManagementFieldComponent;
36302
36190
  exports.ReadTextAreaFieldComponent = ReadTextAreaFieldComponent;
36303
36191
  exports.ReadTextFieldComponent = ReadTextFieldComponent;
36304
36192
  exports.ReadYesNoFieldComponent = ReadYesNoFieldComponent;
@@ -36373,7 +36261,6 @@
36373
36261
  exports.WriteOrganisationComplexFieldComponent = WriteOrganisationComplexFieldComponent;
36374
36262
  exports.WriteOrganisationFieldComponent = WriteOrganisationFieldComponent;
36375
36263
  exports.WritePhoneUKFieldComponent = WritePhoneUKFieldComponent;
36376
- exports.WriteQueryManagementFieldComponent = WriteQueryManagementFieldComponent;
36377
36264
  exports.WriteTextAreaFieldComponent = WriteTextAreaFieldComponent;
36378
36265
  exports.WriteTextFieldComponent = WriteTextFieldComponent;
36379
36266
  exports.WriteYesNoFieldComponent = WriteYesNoFieldComponent;
@@ -36392,7 +36279,6 @@
36392
36279
  exports.editorRouting = editorRouting;
36393
36280
  exports.initDialog = initDialog;
36394
36281
  exports.newCaseField = newCaseField;
36395
- exports.partyMessagesMockData = partyMessagesMockData;
36396
36282
  exports.textFieldType = textFieldType;
36397
36283
  exports.viewerRouting = viewerRouting;
36398
36284