@hmcts/ccd-case-ui-toolkit 5.0.33-angular11-upgrade → 5.0.36-prl-integration-merge-into-angular-11

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 (109) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +1520 -287
  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/app.config.js +1 -1
  6. package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +23 -17
  7. package/esm2015/lib/shared/components/loading-spinner/loading-spinner.component.js +1 -1
  8. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +72 -0
  9. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +134 -0
  10. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-document-actions/case-file-view-folder-document-actions.component.js +52 -0
  11. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.js +38 -0
  12. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +353 -0
  13. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.js +159 -0
  14. package/esm2015/lib/shared/components/palette/case-file-view/components/index.js +6 -0
  15. package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu-item.model.js +2 -0
  16. package/esm2015/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.js +100 -0
  17. package/esm2015/lib/shared/components/palette/case-file-view/components/shared/index.js +2 -0
  18. package/esm2015/lib/shared/components/palette/case-file-view/index.js +4 -0
  19. package/esm2015/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.js +9 -5
  20. package/esm2015/lib/shared/components/palette/case-link/components/write-linked-cases.component.js +1 -1
  21. package/esm2015/lib/shared/components/palette/case-link/services/linked-cases.service.js +5 -7
  22. package/esm2015/lib/shared/components/palette/index.js +2 -1
  23. package/esm2015/lib/shared/components/palette/palette.module.js +71 -15
  24. package/esm2015/lib/shared/components/palette/palette.service.js +19 -1
  25. package/esm2015/lib/shared/components/palette/utils/is-compound.pipe.js +2 -2
  26. package/esm2015/lib/shared/components/search-result/search-result.component.js +53 -46
  27. package/esm2015/lib/shared/domain/case-file-view/case-file-view-category.model.js +3 -0
  28. package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +3 -0
  29. package/esm2015/lib/shared/domain/case-file-view/categories-and-documents.model.js +7 -0
  30. package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node-type.model.js +6 -0
  31. package/esm2015/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.js +93 -0
  32. package/esm2015/lib/shared/domain/case-file-view/index.js +6 -0
  33. package/esm2015/lib/shared/domain/definition/field-type-enum.model.js +1 -1
  34. package/esm2015/lib/shared/domain/definition/jurisdiction.model.js +1 -1
  35. package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +2 -2
  36. package/esm2015/lib/shared/services/case-file-view/case-file-view.service.js +46 -0
  37. package/esm2015/lib/shared/services/case-file-view/index.js +2 -0
  38. package/esm2015/lib/shared/services/index.js +2 -1
  39. package/esm2015/lib/shared/services/jurisdiction/jurisdiction.service.js +4 -1
  40. package/esm2015/public-api.js +3 -1
  41. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +1351 -273
  42. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  43. package/lib/app.config.d.ts +5 -1
  44. package/lib/app.config.d.ts.map +1 -1
  45. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +2 -1
  46. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
  47. package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts +8 -0
  48. package/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.d.ts.map +1 -0
  49. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +33 -0
  50. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -0
  51. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-document-actions/case-file-view-folder-document-actions.component.d.ts +17 -0
  52. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-document-actions/case-file-view-folder-document-actions.component.d.ts.map +1 -0
  53. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.d.ts +13 -0
  54. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder-sort/case-file-view-folder-sort.component.d.ts.map +1 -0
  55. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +53 -0
  56. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -0
  57. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.d.ts +28 -0
  58. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.d.ts.map +1 -0
  59. package/lib/shared/components/palette/case-file-view/components/index.d.ts +6 -0
  60. package/lib/shared/components/palette/case-file-view/components/index.d.ts.map +1 -0
  61. package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu-item.model.d.ts +6 -0
  62. package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu-item.model.d.ts.map +1 -0
  63. package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.d.ts +13 -0
  64. package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.d.ts.map +1 -0
  65. package/lib/shared/components/palette/case-file-view/components/shared/index.d.ts +2 -0
  66. package/lib/shared/components/palette/case-file-view/components/shared/index.d.ts.map +1 -0
  67. package/lib/shared/components/palette/case-file-view/index.d.ts +4 -0
  68. package/lib/shared/components/palette/case-file-view/index.d.ts.map +1 -0
  69. package/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.d.ts +5 -1
  70. package/lib/shared/components/palette/case-link/components/link-cases/link-cases.component.d.ts.map +1 -1
  71. package/lib/shared/components/palette/case-link/components/write-linked-cases.component.d.ts.map +1 -1
  72. package/lib/shared/components/palette/case-link/services/linked-cases.service.d.ts +1 -2
  73. package/lib/shared/components/palette/case-link/services/linked-cases.service.d.ts.map +1 -1
  74. package/lib/shared/components/palette/index.d.ts +1 -0
  75. package/lib/shared/components/palette/index.d.ts.map +1 -1
  76. package/lib/shared/components/palette/palette.module.d.ts +41 -29
  77. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  78. package/lib/shared/components/palette/palette.service.d.ts +2 -0
  79. package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
  80. package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts +9 -0
  81. package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts.map +1 -0
  82. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts +8 -0
  83. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -0
  84. package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts +12 -0
  85. package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts.map +1 -0
  86. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node-type.model.d.ts +5 -0
  87. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node-type.model.d.ts.map +1 -0
  88. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts +14 -0
  89. package/lib/shared/domain/case-file-view/document-tree-node/document-tree-node.model.d.ts.map +1 -0
  90. package/lib/shared/domain/case-file-view/index.d.ts +6 -0
  91. package/lib/shared/domain/case-file-view/index.d.ts.map +1 -0
  92. package/lib/shared/domain/definition/field-type-enum.model.d.ts +1 -1
  93. package/lib/shared/domain/definition/field-type-enum.model.d.ts.map +1 -1
  94. package/lib/shared/domain/definition/jurisdiction.model.d.ts.map +1 -1
  95. package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
  96. package/lib/shared/services/case-file-view/case-file-view.service.d.ts +21 -0
  97. package/lib/shared/services/case-file-view/case-file-view.service.d.ts.map +1 -0
  98. package/lib/shared/services/case-file-view/index.d.ts +2 -0
  99. package/lib/shared/services/case-file-view/index.d.ts.map +1 -0
  100. package/lib/shared/services/index.d.ts +1 -0
  101. package/lib/shared/services/index.d.ts.map +1 -1
  102. package/lib/shared/services/jurisdiction/jurisdiction.service.d.ts +2 -1
  103. package/lib/shared/services/jurisdiction/jurisdiction.service.d.ts.map +1 -1
  104. package/package.json +1 -1
  105. package/public-api.d.ts +2 -0
  106. package/public-api.d.ts.map +1 -1
  107. package/esm2015/lib/shared/components/palette/case-link/services/jurisdiction.service.js +0 -22
  108. package/lib/shared/components/palette/case-link/services/jurisdiction.service.d.ts +0 -12
  109. package/lib/shared/components/palette/case-link/services/jurisdiction.service.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('underscore'), require('moment'), require('util'), require('@edium/fsm'), require('@angular/material/dialog'), require('@angular-material-components/datetime-picker'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/input'), require('@hmcts/ccpay-web-component'), require('ngx-md'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular-material-components/moment-adapter'), 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', 'underscore', 'moment', 'util', '@edium/fsm', '@angular/material/dialog', '@angular-material-components/datetime-picker', '@angular/material/autocomplete', '@angular/material/core', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/input', '@hmcts/ccpay-web-component', 'ngx-md', '@nicky-lenaers/ngx-scroll-to', '@angular-material-components/moment-adapter', '@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.underscore, global.moment, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@angular-material-components/datetime-picker"], global.ng.material.autocomplete, global.ng.material.core, global.ng.material.datepicker, global.ng.material.formField, global.ng.material.input, global["@hmcts/ccpay-web-component"], global["ngx-md"], global["@nicky-lenaers/ngx-scroll-to"], global["@angular-material-components/moment-adapter"], 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, util, fsm, i1$3, i4, i5, i6, i5$1, i6$1, i3$1, i3, i1$4, i2$1, momentAdapter, i6$2, i1$5, 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('underscore'), require('moment'), require('util'), require('@edium/fsm'), require('@angular/material/dialog'), require('@angular-material-components/datetime-picker'), require('@angular/cdk/overlay'), require('@angular/cdk/tree'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@angular/material/input'), require('@hmcts/ccpay-web-component'), require('@hmcts/media-viewer'), require('@nicky-lenaers/ngx-scroll-to'), require('ngx-md'), require('@angular-material-components/moment-adapter'), 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', 'underscore', 'moment', 'util', '@edium/fsm', '@angular/material/dialog', '@angular-material-components/datetime-picker', '@angular/cdk/overlay', '@angular/cdk/tree', '@angular/material/autocomplete', '@angular/material/core', '@angular/material/datepicker', '@angular/material/form-field', '@angular/material/input', '@hmcts/ccpay-web-component', '@hmcts/media-viewer', '@nicky-lenaers/ngx-scroll-to', 'ngx-md', '@angular-material-components/moment-adapter', '@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.underscore, global.moment, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@angular-material-components/datetime-picker"], global.ng.cdk.overlay, global.ng.cdk.tree, global.ng.material.autocomplete, global.ng.material.core, global.ng.material.datepicker, global.ng.material.formField, global.ng.material.input, global["@hmcts/ccpay-web-component"], global.i12, global["@nicky-lenaers/ngx-scroll-to"], global["ngx-md"], global["@angular-material-components/moment-adapter"], 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, util, fsm, i1$3, i4, i1$4, i7, i5, i6, i5$1, i6$1, i3$1, i3, i12, i2$1, i1$5, momentAdapter, i6$2, 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,16 +34,19 @@
34
34
  var moment__namespace = /*#__PURE__*/_interopNamespace(moment);
35
35
  var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
36
36
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
37
+ var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
38
+ var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
37
39
  var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
38
40
  var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
39
41
  var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
40
42
  var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
41
43
  var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
42
44
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
43
- var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
45
+ var i12__namespace = /*#__PURE__*/_interopNamespace(i12);
44
46
  var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
45
- var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
46
47
  var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
48
+ var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
49
+ var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
47
50
  var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
48
51
 
49
52
  function FooterComponent_div_2_Template(rf, ctx) {
@@ -115,17 +118,17 @@
115
118
  i0__namespace.ɵɵtextInterpolate(ctx_r1.workhours);
116
119
  }
117
120
  }
118
- var _c0$Y = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
119
- var _c1$p = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
121
+ var _c0$_ = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
122
+ var _c1$r = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
120
123
  var FooterComponent = /** @class */ (function () {
121
124
  function FooterComponent() {
122
125
  }
123
126
  return FooterComponent;
124
127
  }());
125
128
  FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
126
- FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$p, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) {
129
+ FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$r, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) {
127
130
  if (rf & 1) {
128
- i0__namespace.ɵɵprojectionDef(_c0$Y);
131
+ i0__namespace.ɵɵprojectionDef(_c0$_);
129
132
  i0__namespace.ɵɵelementStart(0, "footer", 0);
130
133
  i0__namespace.ɵɵelementStart(1, "div", 1);
131
134
  i0__namespace.ɵɵtemplate(2, FooterComponent_div_2_Template, 15, 0, "div", 2);
@@ -204,8 +207,8 @@
204
207
  i0__namespace.ɵɵtextInterpolate(ctx_r2.title);
205
208
  }
206
209
  }
207
- var _c0$X = [[["", "headerNavigation", ""]]];
208
- var _c1$o = ["[headerNavigation]"];
210
+ var _c0$Z = [[["", "headerNavigation", ""]]];
211
+ var _c1$q = ["[headerNavigation]"];
209
212
  var HeaderBarComponent = /** @class */ (function () {
210
213
  function HeaderBarComponent() {
211
214
  this.signOutRequest = new i0.EventEmitter();
@@ -216,9 +219,9 @@
216
219
  return HeaderBarComponent;
217
220
  }());
218
221
  HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
219
- HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$o, decls: 15, vars: 8, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) {
222
+ HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$q, decls: 15, vars: 8, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) {
220
223
  if (rf & 1) {
221
- i0__namespace.ɵɵprojectionDef(_c0$X);
224
+ i0__namespace.ɵɵprojectionDef(_c0$Z);
222
225
  i0__namespace.ɵɵelementStart(0, "header", 0);
223
226
  i0__namespace.ɵɵelementStart(1, "div", 1);
224
227
  i0__namespace.ɵɵelementStart(2, "div", 2);
@@ -279,17 +282,17 @@
279
282
  }] });
280
283
  })();
281
284
 
282
- var _c0$W = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
283
- var _c1$n = ["[leftNavLinks]", "[rightNavLinks]"];
285
+ var _c0$Y = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
286
+ var _c1$p = ["[leftNavLinks]", "[rightNavLinks]"];
284
287
  var NavigationComponent = /** @class */ (function () {
285
288
  function NavigationComponent() {
286
289
  }
287
290
  return NavigationComponent;
288
291
  }());
289
292
  NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
290
- NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$n, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
293
+ NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$p, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
291
294
  if (rf & 1) {
292
- i0__namespace.ɵɵprojectionDef(_c0$W);
295
+ i0__namespace.ɵɵprojectionDef(_c0$Y);
293
296
  i0__namespace.ɵɵelementStart(0, "div");
294
297
  i0__namespace.ɵɵelementStart(1, "nav", 0);
295
298
  i0__namespace.ɵɵprojection(2);
@@ -434,17 +437,17 @@
434
437
  }], null, null);
435
438
  })();
436
439
 
437
- var _c0$V = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
438
- var _c1$m = ["[topBody]", "[leftBody]", "[rightBody]"];
440
+ var _c0$X = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
441
+ var _c1$o = ["[topBody]", "[leftBody]", "[rightBody]"];
439
442
  var BodyComponent = /** @class */ (function () {
440
443
  function BodyComponent() {
441
444
  }
442
445
  return BodyComponent;
443
446
  }());
444
447
  BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
445
- BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$m, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
448
+ BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$o, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
446
449
  if (rf & 1) {
447
- i0__namespace.ɵɵprojectionDef(_c0$V);
450
+ i0__namespace.ɵɵprojectionDef(_c0$X);
448
451
  i0__namespace.ɵɵelementStart(0, "div", 0);
449
452
  i0__namespace.ɵɵprojection(1);
450
453
  i0__namespace.ɵɵprojection(2, 1);
@@ -562,7 +565,7 @@
562
565
  function step(op) {
563
566
  if (f)
564
567
  throw new TypeError("Generator is already executing.");
565
- while (_)
568
+ while (g && (g = 0, op[0] && (_ = 0)), _)
566
569
  try {
567
570
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
568
571
  return t;
@@ -791,7 +794,7 @@
791
794
  return typeof state === "function" ? receiver === state : state.has(receiver);
792
795
  }
793
796
 
794
- var _c0$U = function (a0) { return { "govuk-input--error": a0 }; };
797
+ var _c0$W = function (a0) { return { "govuk-input--error": a0 }; };
795
798
  function DateInputComponent_div_16_Template(rf, ctx) {
796
799
  if (rf & 1) {
797
800
  var _r8_1 = i0__namespace.ɵɵgetCurrentView();
@@ -809,7 +812,7 @@
809
812
  i0__namespace.ɵɵadvance(1);
810
813
  i0__namespace.ɵɵproperty("for", ctx_r3.hourId());
811
814
  i0__namespace.ɵɵadvance(2);
812
- i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$U, ctx_r3.isInvalid));
815
+ i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$W, ctx_r3.isInvalid));
813
816
  }
814
817
  }
815
818
  function DateInputComponent_div_17_Template(rf, ctx) {
@@ -829,7 +832,7 @@
829
832
  i0__namespace.ɵɵadvance(1);
830
833
  i0__namespace.ɵɵproperty("for", ctx_r4.minuteId());
831
834
  i0__namespace.ɵɵadvance(2);
832
- i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$U, ctx_r4.isInvalid));
835
+ i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$W, ctx_r4.isInvalid));
833
836
  }
834
837
  }
835
838
  function DateInputComponent_div_18_Template(rf, ctx) {
@@ -849,7 +852,7 @@
849
852
  i0__namespace.ɵɵadvance(1);
850
853
  i0__namespace.ɵɵproperty("for", ctx_r5.secondId());
851
854
  i0__namespace.ɵɵadvance(2);
852
- i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$U, ctx_r5.isInvalid));
855
+ i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(5, _c0$W, ctx_r5.isInvalid));
853
856
  }
854
857
  }
855
858
  var DateInputComponent = /** @class */ (function () {
@@ -1083,15 +1086,15 @@
1083
1086
  i0__namespace.ɵɵadvance(2);
1084
1087
  i0__namespace.ɵɵproperty("for", ctx.dayId());
1085
1088
  i0__namespace.ɵɵadvance(2);
1086
- i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$U, ctx.isInvalid));
1089
+ i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(18, _c0$W, ctx.isInvalid));
1087
1090
  i0__namespace.ɵɵadvance(3);
1088
1091
  i0__namespace.ɵɵproperty("for", ctx.monthId());
1089
1092
  i0__namespace.ɵɵadvance(2);
1090
- i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$U, ctx.isInvalid));
1093
+ i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(20, _c0$W, ctx.isInvalid));
1091
1094
  i0__namespace.ɵɵadvance(3);
1092
1095
  i0__namespace.ɵɵproperty("for", ctx.yearId());
1093
1096
  i0__namespace.ɵɵadvance(2);
1094
- i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$U, ctx.isInvalid));
1097
+ i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(22, _c0$W, ctx.isInvalid));
1095
1098
  i0__namespace.ɵɵadvance(2);
1096
1099
  i0__namespace.ɵɵproperty("ngIf", ctx.isDateTime);
1097
1100
  i0__namespace.ɵɵadvance(1);
@@ -1172,7 +1175,7 @@
1172
1175
  i0__namespace.ɵɵelementContainerEnd();
1173
1176
  }
1174
1177
  }
1175
- var _c0$T = ["*"];
1178
+ var _c0$V = ["*"];
1176
1179
  exports.AlertMessageType = void 0;
1177
1180
  (function (AlertMessageType) {
1178
1181
  AlertMessageType["WARNING"] = "warning";
@@ -1193,7 +1196,7 @@
1193
1196
  AlertComponent.TYPE_ERROR = 'error';
1194
1197
  AlertComponent.TYPE_INFORMATION = 'information';
1195
1198
  AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
1196
- AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$T, decls: 10, vars: 10, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) {
1199
+ AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$V, decls: 10, vars: 10, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) {
1197
1200
  if (rf & 1) {
1198
1201
  i0__namespace.ɵɵprojectionDef();
1199
1202
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -1468,15 +1471,15 @@
1468
1471
  }] });
1469
1472
  })();
1470
1473
 
1471
- var _c0$S = function (a0) { return { "js-hidden": a0 }; };
1472
- var _c1$l = ["*"];
1474
+ var _c0$U = function (a0) { return { "js-hidden": a0 }; };
1475
+ var _c1$n = ["*"];
1473
1476
  var TabComponent = /** @class */ (function () {
1474
1477
  function TabComponent() {
1475
1478
  }
1476
1479
  return TabComponent;
1477
1480
  }());
1478
1481
  TabComponent.ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
1479
- TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$l, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
1482
+ TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$n, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
1480
1483
  if (rf & 1) {
1481
1484
  i0__namespace.ɵɵprojectionDef();
1482
1485
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -1484,7 +1487,7 @@
1484
1487
  i0__namespace.ɵɵelementEnd();
1485
1488
  }
1486
1489
  if (rf & 2) {
1487
- i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$S, !ctx.selected));
1490
+ i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$U, !ctx.selected));
1488
1491
  i0__namespace.ɵɵattribute("aria-hidden", !ctx.selected);
1489
1492
  }
1490
1493
  }, directives: [i1__namespace.NgClass], styles: [".tabs-toggle[_ngcontent-%COMP%]{display:block;padding:10px 15px 3px;margin-bottom:8px}.tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{color:#0b0c0c;text-decoration:none;border-bottom:none}.tabs-toggle[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#005ea5}@media (max-width:640px){.tabs-list[_ngcontent-%COMP%]{border-bottom:1px solid #bfc1c3;margin-left:-15px;margin-right:-15px}.tabs-toggle[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3}.tabs-toggle[_ngcontent-%COMP%]:focus{color:#0b0c0c;outline:none}}@media (min-width:641px){.tabs-panel[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3;clear:both;overflow:hidden}.tabs-list[_ngcontent-%COMP%]{float:left}.tabs-list-item[_ngcontent-%COMP%]{float:left;position:relative;bottom:-1px;padding-top:10px}.tabs-toggle[_ngcontent-%COMP%]{background-color:#dee0e2;border:1px solid transparent;float:left;margin:0 6px 0 0;text-decoration:none}.tabs-toggle[_ngcontent-%COMP%]:visited{color:#005ea5}.tabs-toggle-selected[_ngcontent-%COMP%], .tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{background-color:#fff;border-bottom:0;border-color:#bfc1c3;padding-bottom:11px;margin-bottom:0;color:#0b0c0c}}"] });
@@ -1507,8 +1510,8 @@
1507
1510
  }] });
1508
1511
  })();
1509
1512
 
1510
- var _c0$R = ["tab"];
1511
- var _c1$k = function () { return ["."]; };
1513
+ var _c0$T = ["tab"];
1514
+ var _c1$m = function () { return ["."]; };
1512
1515
  var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
1513
1516
  function TabsComponent_li_2_Template(rf, ctx) {
1514
1517
  if (rf & 1) {
@@ -1523,7 +1526,7 @@
1523
1526
  if (rf & 2) {
1524
1527
  var panel_r1 = ctx.$implicit;
1525
1528
  i0__namespace.ɵɵadvance(1);
1526
- i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$k))("fragment", panel_r1.id)("ngClass", i0__namespace.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
1529
+ i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$m))("fragment", panel_r1.id)("ngClass", i0__namespace.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
1527
1530
  i0__namespace.ɵɵattribute("aria-controls", panel_r1.id)("aria-selected", panel_r1.selected);
1528
1531
  i0__namespace.ɵɵadvance(2);
1529
1532
  i0__namespace.ɵɵtextInterpolate(panel_r1.title);
@@ -1561,7 +1564,7 @@
1561
1564
  }
1562
1565
  }, viewQuery: function TabsComponent_Query(rf, ctx) {
1563
1566
  if (rf & 1) {
1564
- i0__namespace.ɵɵviewQuery(_c0$R, 1);
1567
+ i0__namespace.ɵɵviewQuery(_c0$T, 1);
1565
1568
  }
1566
1569
  if (rf & 2) {
1567
1570
  var _t = void 0;
@@ -1640,7 +1643,7 @@
1640
1643
  }], null, null);
1641
1644
  })();
1642
1645
 
1643
- var _c0$Q = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1646
+ var _c0$S = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1644
1647
  var ActivityBannerComponent = /** @class */ (function () {
1645
1648
  function ActivityBannerComponent() {
1646
1649
  }
@@ -1661,7 +1664,7 @@
1661
1664
  i0__namespace.ɵɵelementEnd();
1662
1665
  }
1663
1666
  if (rf & 2) {
1664
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$Q, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1667
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(4, _c0$S, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1665
1668
  i0__namespace.ɵɵadvance(2);
1666
1669
  i0__namespace.ɵɵpropertyInterpolate("alt", ctx.description);
1667
1670
  i0__namespace.ɵɵpropertyInterpolate("src", ctx.imageLink, i0__namespace.ɵɵsanitizeUrl);
@@ -3044,7 +3047,7 @@
3044
3047
  return IsCompoundPipe;
3045
3048
  }());
3046
3049
  IsCompoundPipe.COMPOUND_TYPES = [
3047
- 'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay'
3050
+ 'Complex', 'Label', 'AddressGlobal', 'AddressUK', 'AddressGlobalUK', 'CasePaymentHistoryViewer', 'CaseHistoryViewer', 'Organisation', 'WaysToPay', 'ComponentLauncher'
3048
3051
  ];
3049
3052
  IsCompoundPipe.EXCLUDE = [
3050
3053
  'CaseLink', 'JudicialUser'
@@ -6813,6 +6816,48 @@
6813
6816
  }], function () { return [{ type: i1__namespace$1.Router }]; }, null);
6814
6817
  })();
6815
6818
 
6819
+ var CaseFileViewService = /** @class */ (function () {
6820
+ function CaseFileViewService(http, appConfig) {
6821
+ this.http = http;
6822
+ this.appConfig = appConfig;
6823
+ }
6824
+ /**
6825
+ * Retrieves the categories and documents for a case.
6826
+ *
6827
+ * @param caseRef 16-digit Case Reference number of the case
6828
+ * @returns An `Observable` of the `CategoriesAndDocuments` for the case
6829
+ */
6830
+ CaseFileViewService.prototype.getCategoriesAndDocuments = function (caseRef) {
6831
+ var url = this.appConfig.getCategoriesAndDocumentsUrl();
6832
+ if (url) {
6833
+ url += "/" + caseRef;
6834
+ return this.http.get(url, { observe: 'body' });
6835
+ }
6836
+ return rxjs.of(null);
6837
+ };
6838
+ CaseFileViewService.prototype.updateDocumentCategory = function (caseRef, caseVersion, attributePath, categoryId) {
6839
+ var url = this.appConfig.getDocumentDataUrl();
6840
+ if (url) {
6841
+ url += "/" + caseRef;
6842
+ var body = {
6843
+ case_version: caseVersion,
6844
+ attribute_path: attributePath,
6845
+ category_id: categoryId
6846
+ };
6847
+ return this.http.put(url, body, { observe: 'body' });
6848
+ }
6849
+ return rxjs.of(null);
6850
+ };
6851
+ return CaseFileViewService;
6852
+ }());
6853
+ CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig)); };
6854
+ CaseFileViewService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: CaseFileViewService, factory: CaseFileViewService.ɵfac });
6855
+ (function () {
6856
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewService, [{
6857
+ type: i0.Injectable
6858
+ }], function () { return [{ type: HttpService }, { type: AbstractAppConfig }]; }, null);
6859
+ })();
6860
+
6816
6861
  var CaseFlagRefdataService = /** @class */ (function () {
6817
6862
  function CaseFlagRefdataService(http, appConfig) {
6818
6863
  this.http = http;
@@ -7171,12 +7216,15 @@
7171
7216
  }], null, null);
7172
7217
  })();
7173
7218
 
7174
- var JurisdictionService$1 = /** @class */ (function () {
7219
+ var JurisdictionService = /** @class */ (function () {
7175
7220
  function JurisdictionService(httpService) {
7176
7221
  this.httpService = httpService;
7177
7222
  this.selectedJurisdictionSource = new rxjs.Subject();
7178
7223
  this.selectedJurisdiction = this.selectedJurisdictionSource.asObservable();
7179
7224
  }
7225
+ JurisdictionService.prototype.getJurisdictions = function () {
7226
+ return this.httpService.get('/aggregated/caseworkers/:uid/jurisdictions?access=read');
7227
+ };
7180
7228
  JurisdictionService.prototype.announceSelectedJurisdiction = function (jurisdiction) {
7181
7229
  this.selectedJurisdictionSource.next(jurisdiction);
7182
7230
  };
@@ -7188,10 +7236,10 @@
7188
7236
  };
7189
7237
  return JurisdictionService;
7190
7238
  }());
7191
- JurisdictionService$1.ɵfac = function JurisdictionService_Factory(t) { return new (t || JurisdictionService$1)(i0__namespace.ɵɵinject(HttpService)); };
7192
- JurisdictionService$1.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: JurisdictionService$1, factory: JurisdictionService$1.ɵfac });
7239
+ JurisdictionService.ɵfac = function JurisdictionService_Factory(t) { return new (t || JurisdictionService)(i0__namespace.ɵɵinject(HttpService)); };
7240
+ JurisdictionService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: JurisdictionService, factory: JurisdictionService.ɵfac });
7193
7241
  (function () {
7194
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(JurisdictionService$1, [{
7242
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(JurisdictionService, [{
7195
7243
  type: i0.Injectable
7196
7244
  }], function () { return [{ type: HttpService }]; }, null);
7197
7245
  })();
@@ -11054,7 +11102,7 @@
11054
11102
  '',
11055
11103
  {}
11056
11104
  ];
11057
- ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay', 'FlagLauncher'];
11105
+ ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay', 'FlagLauncher', 'ComponentLauncher'];
11058
11106
  ReadFieldsFilterPipe.NESTED_TYPES = {
11059
11107
  Complex: ReadFieldsFilterPipe.isValidComplex,
11060
11108
  Collection: ReadFieldsFilterPipe.isValidCollection
@@ -11250,27 +11298,6 @@
11250
11298
  }], null, null);
11251
11299
  })();
11252
11300
 
11253
- var JurisdictionService = /** @class */ (function () {
11254
- function JurisdictionService(http) {
11255
- this.http = http;
11256
- }
11257
- JurisdictionService.prototype.getJurisdictions = function () {
11258
- var headers = new i1$2.HttpHeaders({
11259
- 'Content-Type': 'application/json',
11260
- Accept: 'application/json'
11261
- });
11262
- return this.http.get('/aggregated/caseworkers/:uid/jurisdictions?access=read', { headers: headers });
11263
- };
11264
- return JurisdictionService;
11265
- }());
11266
- JurisdictionService.ɵfac = function JurisdictionService_Factory(t) { return new (t || JurisdictionService)(i0__namespace.ɵɵinject(i1__namespace$2.HttpClient)); };
11267
- JurisdictionService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: JurisdictionService, factory: JurisdictionService.ɵfac });
11268
- (function () {
11269
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(JurisdictionService, [{
11270
- type: i0.Injectable
11271
- }], function () { return [{ type: i1__namespace$2.HttpClient }]; }, null);
11272
- })();
11273
-
11274
11301
  var LinkedCasesService = /** @class */ (function () {
11275
11302
  function LinkedCasesService(jurisdictionService, searchService) {
11276
11303
  var _this = this;
@@ -11513,43 +11540,24 @@
11513
11540
  }], null, null);
11514
11541
  })();
11515
11542
 
11516
- exports.PaletteContext = void 0;
11517
- (function (PaletteContext) {
11518
- PaletteContext["DEFAULT"] = "DEFAULT";
11519
- PaletteContext["CHECK_YOUR_ANSWER"] = "CHECK_YOUR_ANSWER";
11520
- PaletteContext["TABLE_VIEW"] = "TABLE_VIEW";
11521
- })(exports.PaletteContext || (exports.PaletteContext = {}));
11522
-
11523
- var AbstractFieldReadComponent = /** @class */ (function (_super) {
11524
- __extends(AbstractFieldReadComponent, _super);
11525
- function AbstractFieldReadComponent() {
11526
- var _this = _super.apply(this, __spread(arguments)) || this;
11527
- /**
11528
- * Optional. Enable context-aware rendering of fields.
11529
- */
11530
- _this.context = exports.PaletteContext.DEFAULT;
11531
- return _this;
11543
+ var CommonDataService = /** @class */ (function () {
11544
+ function CommonDataService(http) {
11545
+ this.http = http;
11532
11546
  }
11533
- AbstractFieldReadComponent.prototype.ngOnInit = function () {
11534
- if (!this.caseField.metadata) {
11535
- this.registerControl(new i2.FormControl(this.caseField.value));
11547
+ CommonDataService.prototype.getRefData = function (url) {
11548
+ if (url) {
11549
+ return this.http.get(url, { observe: 'body' });
11536
11550
  }
11551
+ return rxjs.of(null);
11537
11552
  };
11538
- return AbstractFieldReadComponent;
11539
- }(AbstractFormFieldComponent));
11540
- AbstractFieldReadComponent.ɵfac = function AbstractFieldReadComponent_Factory(t) { return ɵAbstractFieldReadComponent_BaseFactory(t || AbstractFieldReadComponent); };
11541
- AbstractFieldReadComponentdir = i0__namespace.ɵɵdefineDirective({ type: AbstractFieldReadComponent, inputs: { caseReference: "caseReference", topLevelFormGroup: "topLevelFormGroup", context: "context" }, features: [i0__namespace.ɵɵInheritDefinitionFeature] });
11542
- var ɵAbstractFieldReadComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(AbstractFieldReadComponent);
11553
+ return CommonDataService;
11554
+ }());
11555
+ CommonDataService.ɵfac = function CommonDataService_Factory(t) { return new (t || CommonDataService)(i0__namespace.ɵɵinject(i1__namespace$2.HttpClient)); };
11556
+ CommonDataServiceprov = i0__namespace.ɵɵdefineInjectable({ token: CommonDataService, factory: CommonDataService.ɵfac });
11543
11557
  (function () {
11544
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AbstractFieldReadComponent, [{
11545
- type: i0.Directive
11546
- }], null, { caseReference: [{
11547
- type: i0.Input
11548
- }], topLevelFormGroup: [{
11549
- type: i0.Input
11550
- }], context: [{
11551
- type: i0.Input
11552
- }] });
11558
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CommonDataService, [{
11559
+ type: i0.Injectable
11560
+ }], function () { return [{ type: i1__namespace$2.HttpClient }]; }, null);
11553
11561
  })();
11554
11562
 
11555
11563
  var AddressOption = /** @class */ (function () {
@@ -11577,7 +11585,7 @@
11577
11585
  return AddressOption;
11578
11586
  }());
11579
11587
 
11580
- var _c0$P = ["writeComplexFieldComponent"];
11588
+ var _c0$R = ["writeComplexFieldComponent"];
11581
11589
  function WriteAddressFieldComponent_div_1_div_4_span_4_Template(rf, ctx) {
11582
11590
  if (rf & 1) {
11583
11591
  i0__namespace.ɵɵelementStart(0, "span", 14);
@@ -11585,7 +11593,7 @@
11585
11593
  i0__namespace.ɵɵelementEnd();
11586
11594
  }
11587
11595
  }
11588
- var _c1$j = function (a0) { return { "form-group-error": a0 }; };
11596
+ var _c1$l = function (a0) { return { "form-group-error": a0 }; };
11589
11597
  var _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
11590
11598
  function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
11591
11599
  if (rf & 1) {
@@ -11606,7 +11614,7 @@
11606
11614
  }
11607
11615
  if (rf & 2) {
11608
11616
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
11609
- i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$j, ctx_r2.missingPostcode));
11617
+ i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$l, ctx_r2.missingPostcode));
11610
11618
  i0__namespace.ɵɵadvance(1);
11611
11619
  i0__namespace.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
11612
11620
  i0__namespace.ɵɵadvance(3);
@@ -11791,7 +11799,7 @@
11791
11799
  WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0__namespace.ɵɵdirectiveInject(AddressesService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe)); };
11792
11800
  WriteAddressFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) {
11793
11801
  if (rf & 1) {
11794
- i0__namespace.ɵɵviewQuery(_c0$P, 1);
11802
+ i0__namespace.ɵɵviewQuery(_c0$R, 1);
11795
11803
  i0__namespace.ɵɵviewQuery(FocusElementDirective, 1);
11796
11804
  }
11797
11805
  if (rf & 2) {
@@ -11833,6 +11841,272 @@
11833
11841
  }] });
11834
11842
  })();
11835
11843
 
11844
+ exports.PaletteContext = void 0;
11845
+ (function (PaletteContext) {
11846
+ PaletteContext["DEFAULT"] = "DEFAULT";
11847
+ PaletteContext["CHECK_YOUR_ANSWER"] = "CHECK_YOUR_ANSWER";
11848
+ PaletteContext["TABLE_VIEW"] = "TABLE_VIEW";
11849
+ })(exports.PaletteContext || (exports.PaletteContext = {}));
11850
+
11851
+ var AbstractFieldReadComponent = /** @class */ (function (_super) {
11852
+ __extends(AbstractFieldReadComponent, _super);
11853
+ function AbstractFieldReadComponent() {
11854
+ var _this = _super.apply(this, __spread(arguments)) || this;
11855
+ /**
11856
+ * Optional. Enable context-aware rendering of fields.
11857
+ */
11858
+ _this.context = exports.PaletteContext.DEFAULT;
11859
+ return _this;
11860
+ }
11861
+ AbstractFieldReadComponent.prototype.ngOnInit = function () {
11862
+ if (!this.caseField.metadata) {
11863
+ this.registerControl(new i2.FormControl(this.caseField.value));
11864
+ }
11865
+ };
11866
+ return AbstractFieldReadComponent;
11867
+ }(AbstractFormFieldComponent));
11868
+ AbstractFieldReadComponent.ɵfac = function AbstractFieldReadComponent_Factory(t) { return ɵAbstractFieldReadComponent_BaseFactory(t || AbstractFieldReadComponent); };
11869
+ AbstractFieldReadComponent.ɵdir = i0__namespace.ɵɵdefineDirective({ type: AbstractFieldReadComponent, inputs: { caseReference: "caseReference", topLevelFormGroup: "topLevelFormGroup", context: "context" }, features: [i0__namespace.ɵɵInheritDefinitionFeature] });
11870
+ var ɵAbstractFieldReadComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(AbstractFieldReadComponent);
11871
+ (function () {
11872
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AbstractFieldReadComponent, [{
11873
+ type: i0.Directive
11874
+ }], null, { caseReference: [{
11875
+ type: i0.Input
11876
+ }], topLevelFormGroup: [{
11877
+ type: i0.Input
11878
+ }], context: [{
11879
+ type: i0.Input
11880
+ }] });
11881
+ })();
11882
+
11883
+ function CaseFileViewFieldComponent_div_0_Template(rf, ctx) {
11884
+ if (rf & 1) {
11885
+ i0__namespace.ɵɵelementStart(0, "div", 2);
11886
+ i0__namespace.ɵɵelementStart(1, "h1", 3);
11887
+ i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
11888
+ i0__namespace.ɵɵelementEnd();
11889
+ i0__namespace.ɵɵelementStart(3, "p", 4);
11890
+ i0__namespace.ɵɵtext(4, "Try again later.");
11891
+ i0__namespace.ɵɵelementEnd();
11892
+ i0__namespace.ɵɵelementEnd();
11893
+ }
11894
+ }
11895
+ function CaseFileViewFieldComponent_div_1_ng_container_8_Template(rf, ctx) {
11896
+ if (rf & 1) {
11897
+ i0__namespace.ɵɵelementContainerStart(0);
11898
+ i0__namespace.ɵɵelement(1, "mv-media-viewer", 11);
11899
+ i0__namespace.ɵɵelementContainerEnd();
11900
+ }
11901
+ if (rf & 2) {
11902
+ var ctx_r2 = i0__namespace.ɵɵnextContext(2);
11903
+ i0__namespace.ɵɵadvance(1);
11904
+ 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);
11905
+ }
11906
+ }
11907
+ function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
11908
+ if (rf & 1) {
11909
+ var _r4_1 = i0__namespace.ɵɵgetCurrentView();
11910
+ i0__namespace.ɵɵelementStart(0, "div");
11911
+ i0__namespace.ɵɵelementStart(1, "h2", 5);
11912
+ i0__namespace.ɵɵtext(2, "Case file");
11913
+ i0__namespace.ɵɵelementEnd();
11914
+ i0__namespace.ɵɵelementStart(3, "div", 6);
11915
+ i0__namespace.ɵɵelementStart(4, "div", 7);
11916
+ i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 8);
11917
+ 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); });
11918
+ i0__namespace.ɵɵelementEnd();
11919
+ i0__namespace.ɵɵelementEnd();
11920
+ i0__namespace.ɵɵelement(6, "div", 9);
11921
+ i0__namespace.ɵɵelementStart(7, "div", 10);
11922
+ i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 6, "ng-container", 1);
11923
+ i0__namespace.ɵɵelementEnd();
11924
+ i0__namespace.ɵɵelementEnd();
11925
+ i0__namespace.ɵɵelementEnd();
11926
+ }
11927
+ if (rf & 2) {
11928
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
11929
+ i0__namespace.ɵɵadvance(5);
11930
+ i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$)("allowMoving", ctx_r1.allowMoving);
11931
+ i0__namespace.ɵɵadvance(3);
11932
+ i0__namespace.ɵɵproperty("ngIf", ctx_r1.currentDocument);
11933
+ }
11934
+ }
11935
+ var CaseFileViewFieldComponent = /** @class */ (function () {
11936
+ function CaseFileViewFieldComponent(elementRef, route, caseFileViewService, documentManagementService, loadingService) {
11937
+ this.elementRef = elementRef;
11938
+ this.route = route;
11939
+ this.caseFileViewService = caseFileViewService;
11940
+ this.documentManagementService = documentManagementService;
11941
+ this.loadingService = loadingService;
11942
+ this.allowMoving = true;
11943
+ this.getCategoriesAndDocumentsError = false;
11944
+ }
11945
+ CaseFileViewFieldComponent.prototype.ngOnInit = function () {
11946
+ var _this = this;
11947
+ var cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
11948
+ this.categoriesAndDocuments$ = this.caseFileViewService.getCategoriesAndDocuments(cid);
11949
+ this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments$.subscribe({
11950
+ next: function (data) {
11951
+ _this.caseVersion = data.case_version;
11952
+ },
11953
+ error: function (_) { return _this.getCategoriesAndDocumentsError = true; }
11954
+ });
11955
+ };
11956
+ CaseFileViewFieldComponent.prototype.ngAfterViewInit = function () {
11957
+ var slider = this.elementRef.nativeElement.querySelector('.slider');
11958
+ var documentTreeContainer = this.elementRef.nativeElement.querySelector('.document-tree-container');
11959
+ var mousedown$ = rxjs.fromEvent(slider, 'mousedown');
11960
+ var mousemove$ = rxjs.fromEvent(document, 'mousemove');
11961
+ var mouseup$ = rxjs.fromEvent(document, 'mouseup');
11962
+ var drag$ = mousedown$.pipe(operators.switchMap(function (start) {
11963
+ var x = start.clientX;
11964
+ var documentTreeContainerWidth = documentTreeContainer.getBoundingClientRect().width;
11965
+ return mousemove$.pipe(operators.map(function (move) {
11966
+ move.preventDefault();
11967
+ return {
11968
+ dx: move.clientX - x,
11969
+ documentTreeContainerWidth: documentTreeContainerWidth
11970
+ };
11971
+ }), operators.takeUntil(mouseup$));
11972
+ }));
11973
+ drag$.subscribe(function (pos) {
11974
+ var calculatedWidth = ((pos.documentTreeContainerWidth + pos.dx) * 100) / slider.parentElement.getBoundingClientRect().width;
11975
+ documentTreeContainer.setAttribute('style', "width: " + calculatedWidth + "%");
11976
+ });
11977
+ };
11978
+ CaseFileViewFieldComponent.prototype.setMediaViewerFile = function (document) {
11979
+ var mediaViewerInfo = this.documentManagementService.getMediaViewerInfo({
11980
+ document_binary_url: document.document_binary_url,
11981
+ document_filename: document.document_filename
11982
+ });
11983
+ this.currentDocument = JSON.parse(mediaViewerInfo);
11984
+ };
11985
+ CaseFileViewFieldComponent.prototype.moveDocument = function (data) {
11986
+ var _this = this;
11987
+ var cid = this.route.snapshot.paramMap.get(CaseFileViewFieldComponent.PARAM_CASE_ID);
11988
+ var loadingToken = this.loadingService.register();
11989
+ this.caseFileViewService.updateDocumentCategory(cid, this.caseVersion, data.document.attribute_path, data.newCategory).subscribe(function (_) {
11990
+ location.reload();
11991
+ _this.loadingService.unregister(loadingToken);
11992
+ });
11993
+ };
11994
+ CaseFileViewFieldComponent.prototype.ngOnDestroy = function () {
11995
+ if (this.categoriesAndDocumentsSubscription) {
11996
+ this.categoriesAndDocumentsSubscription.unsubscribe();
11997
+ }
11998
+ };
11999
+ return CaseFileViewFieldComponent;
12000
+ }());
12001
+ CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
12002
+ 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)); };
12003
+ 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"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
12004
+ if (rf & 1) {
12005
+ i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
12006
+ i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
12007
+ }
12008
+ if (rf & 2) {
12009
+ i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
12010
+ i0__namespace.ɵɵadvance(1);
12011
+ i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
12012
+ }
12013
+ }, styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9;height:100vh;position:relative}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{background-color:#dee0e2;flex:1 1 0;overflow:hidden}"] });
12014
+ (function () {
12015
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
12016
+ type: i0.Component,
12017
+ args: [{
12018
+ selector: 'ccd-case-file-view-field',
12019
+ templateUrl: './case-file-view-field.component.html',
12020
+ styleUrls: ['./case-file-view-field.component.scss'],
12021
+ }]
12022
+ }], function () { return [{ type: i0__namespace.ElementRef }, { type: i1__namespace$1.ActivatedRoute }, { type: CaseFileViewService }, { type: DocumentManagementService }, { type: LoadingService }]; }, null);
12023
+ })();
12024
+
12025
+ function CaseFileViewFieldReadComponent_div_0_Template(rf, ctx) {
12026
+ if (rf & 1) {
12027
+ i0__namespace.ɵɵelementStart(0, "div", 2);
12028
+ i0__namespace.ɵɵelementStart(1, "h1", 3);
12029
+ i0__namespace.ɵɵtext(2, "Sorry, there is a problem with the service");
12030
+ i0__namespace.ɵɵelementEnd();
12031
+ i0__namespace.ɵɵelementStart(3, "p", 4);
12032
+ i0__namespace.ɵɵtext(4, "Try again later.");
12033
+ i0__namespace.ɵɵelementEnd();
12034
+ i0__namespace.ɵɵelementEnd();
12035
+ }
12036
+ }
12037
+ function CaseFileViewFieldReadComponent_div_1_ng_container_8_Template(rf, ctx) {
12038
+ if (rf & 1) {
12039
+ i0__namespace.ɵɵelementContainerStart(0);
12040
+ i0__namespace.ɵɵelement(1, "mv-media-viewer", 11);
12041
+ i0__namespace.ɵɵelementContainerEnd();
12042
+ }
12043
+ if (rf & 2) {
12044
+ var ctx_r2 = i0__namespace.ɵɵnextContext(2);
12045
+ i0__namespace.ɵɵadvance(1);
12046
+ 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);
12047
+ }
12048
+ }
12049
+ function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) {
12050
+ if (rf & 1) {
12051
+ var _r4_1 = i0__namespace.ɵɵgetCurrentView();
12052
+ i0__namespace.ɵɵelementStart(0, "div");
12053
+ i0__namespace.ɵɵelementStart(1, "h2", 5);
12054
+ i0__namespace.ɵɵtext(2, "Case file");
12055
+ i0__namespace.ɵɵelementEnd();
12056
+ i0__namespace.ɵɵelementStart(3, "div", 6);
12057
+ i0__namespace.ɵɵelementStart(4, "div", 7);
12058
+ i0__namespace.ɵɵelementStart(5, "ccd-case-file-view-folder", 8);
12059
+ i0__namespace.ɵɵlistener("clickedDocument", function CaseFileViewFieldReadComponent_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 CaseFileViewFieldReadComponent_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); });
12060
+ i0__namespace.ɵɵelementEnd();
12061
+ i0__namespace.ɵɵelementEnd();
12062
+ i0__namespace.ɵɵelement(6, "div", 9);
12063
+ i0__namespace.ɵɵelementStart(7, "div", 10);
12064
+ i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 6, "ng-container", 1);
12065
+ i0__namespace.ɵɵelementEnd();
12066
+ i0__namespace.ɵɵelementEnd();
12067
+ i0__namespace.ɵɵelementEnd();
12068
+ }
12069
+ if (rf & 2) {
12070
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
12071
+ i0__namespace.ɵɵadvance(5);
12072
+ i0__namespace.ɵɵproperty("categoriesAndDocuments", ctx_r1.categoriesAndDocuments$)("allowMoving", ctx_r1.allowMoving);
12073
+ i0__namespace.ɵɵadvance(3);
12074
+ i0__namespace.ɵɵproperty("ngIf", ctx_r1.currentDocument);
12075
+ }
12076
+ }
12077
+ var CaseFileViewFieldReadComponent = /** @class */ (function (_super) {
12078
+ __extends(CaseFileViewFieldReadComponent, _super);
12079
+ function CaseFileViewFieldReadComponent() {
12080
+ var _this = _super.apply(this, __spread(arguments)) || this;
12081
+ _this.allowMoving = true;
12082
+ return _this;
12083
+ }
12084
+ return CaseFileViewFieldReadComponent;
12085
+ }(CaseFileViewFieldComponent));
12086
+ CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
12087
+ CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], 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"]], template: function CaseFileViewFieldReadComponent_Template(rf, ctx) {
12088
+ if (rf & 1) {
12089
+ i0__namespace.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
12090
+ i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
12091
+ }
12092
+ if (rf & 2) {
12093
+ i0__namespace.ɵɵproperty("ngIf", ctx.getCategoriesAndDocumentsError);
12094
+ i0__namespace.ɵɵadvance(1);
12095
+ i0__namespace.ɵɵproperty("ngIf", !ctx.getCategoriesAndDocumentsError);
12096
+ }
12097
+ }, styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex;border:2px solid #c9c9c9;height:100vh;position:relative}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#faf8f8;width:30%;min-height:400px;min-width:10%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{width:.2%;background-color:#6b6b6b}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{background-color:#dee0e2;flex:1 1 0;overflow:hidden}"] });
12098
+ var ɵCaseFileViewFieldReadComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(CaseFileViewFieldReadComponent);
12099
+ (function () {
12100
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldReadComponent, [{
12101
+ type: i0.Component,
12102
+ args: [{
12103
+ selector: 'ccd-case-file-view-field',
12104
+ templateUrl: './case-file-view-field.component.html',
12105
+ styleUrls: ['./case-file-view-field.component.scss'],
12106
+ }]
12107
+ }], null, null);
12108
+ })();
12109
+
11836
12110
  exports.AddCommentsErrorMessage = void 0;
11837
12111
  (function (AddCommentsErrorMessage) {
11838
12112
  AddCommentsErrorMessage["FLAG_COMMENTS_NOT_ENTERED"] = "Please enter comments for this flag";
@@ -12185,7 +12459,7 @@
12185
12459
  i0__namespace.ɵɵproperty("formGroup", ctx_r10.caseFlagParentFormGroup)("optional", ctx_r10.flagCommentsOptional);
12186
12460
  }
12187
12461
  }
12188
- var _c0$O = function (a0) { return { "form-group-error": a0 }; };
12462
+ var _c0$Q = function (a0) { return { "form-group-error": a0 }; };
12189
12463
  function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) {
12190
12464
  if (rf & 1) {
12191
12465
  i0__namespace.ɵɵelementStart(0, "div", 8);
@@ -12206,7 +12480,7 @@
12206
12480
  i0__namespace.ɵɵadvance(1);
12207
12481
  i0__namespace.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
12208
12482
  i0__namespace.ɵɵadvance(1);
12209
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$O, ctx_r1.errorMessages.length > 0));
12483
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$Q, ctx_r1.errorMessages.length > 0));
12210
12484
  i0__namespace.ɵɵadvance(1);
12211
12485
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.createFlagCaption, " ");
12212
12486
  i0__namespace.ɵɵadvance(1);
@@ -12650,7 +12924,7 @@
12650
12924
  }], null, null);
12651
12925
  })();
12652
12926
 
12653
- var _c0$N = ["writeComplexFieldComponent"];
12927
+ var _c0$P = ["writeComplexFieldComponent"];
12654
12928
  function WriteCaseLinkFieldComponent_div_1_span_2_Template(rf, ctx) {
12655
12929
  if (rf & 1) {
12656
12930
  i0__namespace.ɵɵelementStart(0, "span", 6);
@@ -12776,7 +13050,7 @@
12776
13050
  WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return new (t || WriteCaseLinkFieldComponent)(i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
12777
13051
  WriteCaseLinkFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) {
12778
13052
  if (rf & 1) {
12779
- i0__namespace.ɵɵviewQuery(_c0$N, 1);
13053
+ i0__namespace.ɵɵviewQuery(_c0$P, 1);
12780
13054
  }
12781
13055
  if (rf & 2) {
12782
13056
  var _t = void 0;
@@ -12815,7 +13089,7 @@
12815
13089
  }] });
12816
13090
  })();
12817
13091
 
12818
- var _c0$M = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
13092
+ var _c0$O = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
12819
13093
  function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) {
12820
13094
  if (rf & 1) {
12821
13095
  i0__namespace.ɵɵelementStart(0, "tbody");
@@ -12830,10 +13104,10 @@
12830
13104
  if (rf & 2) {
12831
13105
  var ctx_r1 = i0__namespace.ɵɵnextContext(2);
12832
13106
  i0__namespace.ɵɵadvance(4);
12833
- i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$M, ctx_r1.caseField.label, ctx_r1.caseField.label, ctx_r1.caseField.field_type.collection_field_type, ctx_r1.caseField.display_context_parameter, ctx_r1.caseField.value, ctx_r1.caseField.hidden))("context", ctx_r1.context)("topLevelFormGroup", ctx_r1.topLevelFormGroup);
13107
+ i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$O, ctx_r1.caseField.label, ctx_r1.caseField.label, ctx_r1.caseField.field_type.collection_field_type, ctx_r1.caseField.display_context_parameter, ctx_r1.caseField.value, ctx_r1.caseField.hidden))("context", ctx_r1.context)("topLevelFormGroup", ctx_r1.topLevelFormGroup);
12834
13108
  }
12835
13109
  }
12836
- var _c1$i = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
13110
+ var _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
12837
13111
  function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) {
12838
13112
  if (rf & 1) {
12839
13113
  i0__namespace.ɵɵelementStart(0, "tr");
@@ -12847,7 +13121,7 @@
12847
13121
  var i_r5 = ctx.index;
12848
13122
  var ctx_r3 = i0__namespace.ɵɵnextContext(3);
12849
13123
  i0__namespace.ɵɵadvance(2);
12850
- i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction5(4, _c1$i, i_r5, ctx_r3.caseField.label + " " + (i_r5 + 1), ctx_r3.caseField.field_type.collection_field_type, item_r4.value, ctx_r3.caseField.hidden))("context", ctx_r3.context)("topLevelFormGroup", ctx_r3.topLevelFormGroup)("idPrefix", ctx_r3.buildIdPrefix(i_r5));
13124
+ i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction5(4, _c1$k, i_r5, ctx_r3.caseField.label + " " + (i_r5 + 1), ctx_r3.caseField.field_type.collection_field_type, item_r4.value, ctx_r3.caseField.hidden))("context", ctx_r3.context)("topLevelFormGroup", ctx_r3.topLevelFormGroup)("idPrefix", ctx_r3.buildIdPrefix(i_r5));
12851
13125
  }
12852
13126
  }
12853
13127
  function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) {
@@ -12981,7 +13255,7 @@
12981
13255
  }], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
12982
13256
  })();
12983
13257
 
12984
- var _c0$L = ["collectionItem"];
13258
+ var _c0$N = ["collectionItem"];
12985
13259
  function WriteCollectionFieldComponent_h2_7_span_1_Template(rf, ctx) {
12986
13260
  if (rf & 1) {
12987
13261
  i0__namespace.ɵɵelementStart(0, "span", 9);
@@ -13394,7 +13668,7 @@
13394
13668
  WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier)); };
13395
13669
  WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
13396
13670
  if (rf & 1) {
13397
- i0__namespace.ɵɵviewQuery(_c0$L, 1);
13671
+ i0__namespace.ɵɵviewQuery(_c0$N, 1);
13398
13672
  }
13399
13673
  if (rf & 2) {
13400
13674
  var _t = void 0;
@@ -13982,7 +14256,7 @@
13982
14256
  }], null, null);
13983
14257
  })();
13984
14258
 
13985
- var _c0$K = ["fileInput"];
14259
+ var _c0$M = ["fileInput"];
13986
14260
  function WriteDocumentFieldComponent_span_6_Template(rf, ctx) {
13987
14261
  if (rf & 1) {
13988
14262
  i0__namespace.ɵɵelementStart(0, "span", 12);
@@ -14016,7 +14290,7 @@
14016
14290
  i0__namespace.ɵɵproperty("caseField", ctx_r2.caseField);
14017
14291
  }
14018
14292
  }
14019
- var _c1$h = function (a0) { return { "form-group-error bottom-30": a0 }; };
14293
+ var _c1$j = function (a0) { return { "form-group-error bottom-30": a0 }; };
14020
14294
  var WriteDocumentFieldComponent = /** @class */ (function (_super) {
14021
14295
  __extends(WriteDocumentFieldComponent, _super);
14022
14296
  function WriteDocumentFieldComponent(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService) {
@@ -14276,7 +14550,7 @@
14276
14550
  WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService)); };
14277
14551
  WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
14278
14552
  if (rf & 1) {
14279
- i0__namespace.ɵɵviewQuery(_c0$K, 1);
14553
+ i0__namespace.ɵɵviewQuery(_c0$M, 1);
14280
14554
  }
14281
14555
  if (rf & 2) {
14282
14556
  var _t = void 0;
@@ -14318,7 +14592,7 @@
14318
14592
  i0__namespace.ɵɵelementEnd();
14319
14593
  }
14320
14594
  if (rf & 2) {
14321
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$h, !ctx.valid));
14595
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$j, !ctx.valid));
14322
14596
  i0__namespace.ɵɵadvance(1);
14323
14597
  i0__namespace.ɵɵproperty("for", ctx.id());
14324
14598
  i0__namespace.ɵɵadvance(1);
@@ -14476,7 +14750,7 @@
14476
14750
  i0__namespace.ɵɵtextInterpolate(type_r5.label);
14477
14751
  }
14478
14752
  }
14479
- var _c0$J = function (a0) { return { "form-group-error": a0 }; };
14753
+ var _c0$L = function (a0) { return { "form-group-error": a0 }; };
14480
14754
  var WriteDynamicListFieldComponent = /** @class */ (function (_super) {
14481
14755
  __extends(WriteDynamicListFieldComponent, _super);
14482
14756
  function WriteDynamicListFieldComponent() {
@@ -14525,7 +14799,7 @@
14525
14799
  i0__namespace.ɵɵelementEnd();
14526
14800
  }
14527
14801
  if (rf & 2) {
14528
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$J, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
14802
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$L, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
14529
14803
  i0__namespace.ɵɵadvance(1);
14530
14804
  i0__namespace.ɵɵproperty("for", ctx.id());
14531
14805
  i0__namespace.ɵɵadvance(1);
@@ -14675,7 +14949,7 @@
14675
14949
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
14676
14950
  }
14677
14951
  }
14678
- var _c0$I = function (a0) { return { selected: a0 }; };
14952
+ var _c0$K = function (a0) { return { selected: a0 }; };
14679
14953
  function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) {
14680
14954
  if (rf & 1) {
14681
14955
  i0__namespace.ɵɵelementStart(0, "div", 10);
@@ -14688,7 +14962,7 @@
14688
14962
  if (rf & 2) {
14689
14963
  var radioButton_r5 = ctx.$implicit;
14690
14964
  var ctx_r4 = i0__namespace.ɵɵnextContext();
14691
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$I, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
14965
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$K, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
14692
14966
  i0__namespace.ɵɵadvance(1);
14693
14967
  i0__namespace.ɵɵpropertyInterpolate("name", ctx_r4.id());
14694
14968
  i0__namespace.ɵɵproperty("id", ctx_r4.buildElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
@@ -14698,7 +14972,7 @@
14698
14972
  i0__namespace.ɵɵtextInterpolate(radioButton_r5.label);
14699
14973
  }
14700
14974
  }
14701
- var _c1$g = function (a0) { return { "form-group-error": a0 }; };
14975
+ var _c1$i = function (a0) { return { "form-group-error": a0 }; };
14702
14976
  var WriteDynamicRadioListFieldComponent = /** @class */ (function (_super) {
14703
14977
  __extends(WriteDynamicRadioListFieldComponent, _super);
14704
14978
  function WriteDynamicRadioListFieldComponent() {
@@ -14746,7 +15020,7 @@
14746
15020
  i0__namespace.ɵɵelementEnd();
14747
15021
  }
14748
15022
  if (rf & 2) {
14749
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$g, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
15023
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$i, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
14750
15024
  i0__namespace.ɵɵadvance(3);
14751
15025
  i0__namespace.ɵɵproperty("for", ctx.id());
14752
15026
  i0__namespace.ɵɵadvance(1);
@@ -14853,8 +15127,8 @@
14853
15127
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
14854
15128
  }
14855
15129
  }
14856
- var _c0$H = function (a0) { return { "form-group-error": a0 }; };
14857
- var _c1$f = function (a0) { return { "govuk-input--error": a0 }; };
15130
+ var _c0$J = function (a0) { return { "form-group-error": a0 }; };
15131
+ var _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
14858
15132
  var WriteEmailFieldComponent = /** @class */ (function (_super) {
14859
15133
  __extends(WriteEmailFieldComponent, _super);
14860
15134
  function WriteEmailFieldComponent() {
@@ -14878,7 +15152,7 @@
14878
15152
  i0__namespace.ɵɵelementEnd();
14879
15153
  }
14880
15154
  if (rf & 2) {
14881
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$H, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
15155
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$J, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
14882
15156
  i0__namespace.ɵɵadvance(1);
14883
15157
  i0__namespace.ɵɵproperty("for", ctx.id());
14884
15158
  i0__namespace.ɵɵadvance(1);
@@ -14888,7 +15162,7 @@
14888
15162
  i0__namespace.ɵɵadvance(1);
14889
15163
  i0__namespace.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
14890
15164
  i0__namespace.ɵɵadvance(1);
14891
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$f, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
15165
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$h, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
14892
15166
  }
14893
15167
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
14894
15168
  var ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
@@ -15010,7 +15284,7 @@
15010
15284
  i0__namespace.ɵɵtextInterpolate(type_r4.label);
15011
15285
  }
15012
15286
  }
15013
- var _c0$G = function (a0) { return { "form-group-error": a0 }; };
15287
+ var _c0$I = function (a0) { return { "form-group-error": a0 }; };
15014
15288
  var WriteFixedListFieldComponent = /** @class */ (function (_super) {
15015
15289
  __extends(WriteFixedListFieldComponent, _super);
15016
15290
  function WriteFixedListFieldComponent() {
@@ -15059,7 +15333,7 @@
15059
15333
  i0__namespace.ɵɵelementEnd();
15060
15334
  }
15061
15335
  if (rf & 2) {
15062
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$G, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
15336
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$I, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
15063
15337
  i0__namespace.ɵɵadvance(1);
15064
15338
  i0__namespace.ɵɵproperty("for", ctx.id());
15065
15339
  i0__namespace.ɵɵadvance(1);
@@ -15177,7 +15451,7 @@
15177
15451
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
15178
15452
  }
15179
15453
  }
15180
- var _c0$F = function (a0) { return { selected: a0 }; };
15454
+ var _c0$H = function (a0) { return { selected: a0 }; };
15181
15455
  function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) {
15182
15456
  if (rf & 1) {
15183
15457
  i0__namespace.ɵɵelementStart(0, "div", 9);
@@ -15190,7 +15464,7 @@
15190
15464
  if (rf & 2) {
15191
15465
  var radioButton_r4 = ctx.$implicit;
15192
15466
  var ctx_r3 = i0__namespace.ɵɵnextContext();
15193
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$F, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
15467
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$H, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
15194
15468
  i0__namespace.ɵɵadvance(1);
15195
15469
  i0__namespace.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
15196
15470
  i0__namespace.ɵɵadvance(1);
@@ -15199,7 +15473,7 @@
15199
15473
  i0__namespace.ɵɵtextInterpolate(radioButton_r4.label);
15200
15474
  }
15201
15475
  }
15202
- var _c1$e = function (a0) { return { "form-group-error": a0 }; };
15476
+ var _c1$g = function (a0) { return { "form-group-error": a0 }; };
15203
15477
  var WriteFixedRadioListFieldComponent = /** @class */ (function (_super) {
15204
15478
  __extends(WriteFixedRadioListFieldComponent, _super);
15205
15479
  function WriteFixedRadioListFieldComponent() {
@@ -15230,7 +15504,7 @@
15230
15504
  i0__namespace.ɵɵelementEnd();
15231
15505
  }
15232
15506
  if (rf & 2) {
15233
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$e, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
15507
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$g, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
15234
15508
  i0__namespace.ɵɵadvance(3);
15235
15509
  i0__namespace.ɵɵproperty("for", ctx.id());
15236
15510
  i0__namespace.ɵɵadvance(1);
@@ -15316,7 +15590,7 @@
15316
15590
  };
15317
15591
  return ReadJudicialUserFieldComponent;
15318
15592
  }(AbstractFieldReadComponent));
15319
- ReadJudicialUserFieldComponent.ɵfac = function ReadJudicialUserFieldComponent_Factory(t) { return new (t || ReadJudicialUserFieldComponent)(i0__namespace.ɵɵdirectiveInject(JurisdictionService$1)); };
15593
+ ReadJudicialUserFieldComponent.ɵfac = function ReadJudicialUserFieldComponent_Factory(t) { return new (t || ReadJudicialUserFieldComponent)(i0__namespace.ɵɵdirectiveInject(JurisdictionService)); };
15320
15594
  ReadJudicialUserFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadJudicialUserFieldComponent, selectors: [["ccd-read-judicial-user-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "text-16", 4, "ngIf"], [1, "text-16"]], template: function ReadJudicialUserFieldComponent_Template(rf, ctx) {
15321
15595
  if (rf & 1) {
15322
15596
  i0__namespace.ɵɵtemplate(0, ReadJudicialUserFieldComponent_span_0_Template, 2, 2, "span", 0);
@@ -15332,7 +15606,7 @@
15332
15606
  selector: 'ccd-read-judicial-user-field',
15333
15607
  templateUrl: './read-judicial-user-field.component.html'
15334
15608
  }]
15335
- }], function () { return [{ type: JurisdictionService$1 }]; }, null);
15609
+ }], function () { return [{ type: JurisdictionService }]; }, null);
15336
15610
  })();
15337
15611
 
15338
15612
  function WriteJudicialUserFieldComponent_span_2_Template(rf, ctx) {
@@ -15360,7 +15634,7 @@
15360
15634
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
15361
15635
  }
15362
15636
  }
15363
- var _c0$E = function (a0) { return { "hide-autocomplete": a0 }; };
15637
+ var _c0$G = function (a0) { return { "hide-autocomplete": a0 }; };
15364
15638
  function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) {
15365
15639
  if (rf & 1) {
15366
15640
  var _r7_1 = i0__namespace.ɵɵgetCurrentView();
@@ -15372,7 +15646,7 @@
15372
15646
  if (rf & 2) {
15373
15647
  var judicialUser_r5 = ctx.$implicit;
15374
15648
  var ctx_r3 = i0__namespace.ɵɵnextContext();
15375
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$E, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
15649
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$G, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
15376
15650
  i0__namespace.ɵɵadvance(1);
15377
15651
  i0__namespace.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
15378
15652
  }
@@ -15425,7 +15699,7 @@
15425
15699
  };
15426
15700
  return WriteJudicialUserFieldComponent;
15427
15701
  }(AbstractFieldWriteComponent));
15428
- 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$1)); };
15702
+ 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)); };
15429
15703
  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) {
15430
15704
  if (rf & 1) {
15431
15705
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -15465,7 +15739,7 @@
15465
15739
  styleUrls: ['./write-judicial-user-field.component.scss'],
15466
15740
  templateUrl: './write-judicial-user-field.component.html'
15467
15741
  }]
15468
- }], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: i0__namespace.ChangeDetectorRef }, { type: JurisdictionService$1 }]; }, null);
15742
+ }], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: i0__namespace.ChangeDetectorRef }, { type: JurisdictionService }]; }, null);
15469
15743
  })();
15470
15744
 
15471
15745
  var LabelFieldComponent = /** @class */ (function () {
@@ -15719,7 +15993,7 @@
15719
15993
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
15720
15994
  }
15721
15995
  }
15722
- var _c0$D = function (a0) { return { "form-group-error": a0 }; };
15996
+ var _c0$F = function (a0) { return { "form-group-error": a0 }; };
15723
15997
  var WriteMoneyGbpFieldComponent = /** @class */ (function (_super) {
15724
15998
  __extends(WriteMoneyGbpFieldComponent, _super);
15725
15999
  function WriteMoneyGbpFieldComponent() {
@@ -15749,7 +16023,7 @@
15749
16023
  i0__namespace.ɵɵelementEnd();
15750
16024
  }
15751
16025
  if (rf & 2) {
15752
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$D, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
16026
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$F, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
15753
16027
  i0__namespace.ɵɵadvance(1);
15754
16028
  i0__namespace.ɵɵproperty("for", ctx.id());
15755
16029
  i0__namespace.ɵɵadvance(1);
@@ -15897,7 +16171,7 @@
15897
16171
  i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
15898
16172
  }
15899
16173
  }
15900
- var _c0$C = function (a0) { return { "error": a0 }; };
16174
+ var _c0$E = function (a0) { return { "error": a0 }; };
15901
16175
  var WriteMultiSelectListFieldComponent = /** @class */ (function (_super) {
15902
16176
  __extends(WriteMultiSelectListFieldComponent, _super);
15903
16177
  function WriteMultiSelectListFieldComponent() {
@@ -15961,7 +16235,7 @@
15961
16235
  i0__namespace.ɵɵelementEnd();
15962
16236
  }
15963
16237
  if (rf & 2) {
15964
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$C, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
16238
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$E, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
15965
16239
  i0__namespace.ɵɵadvance(3);
15966
16240
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
15967
16241
  i0__namespace.ɵɵadvance(1);
@@ -16052,8 +16326,8 @@
16052
16326
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label));
16053
16327
  }
16054
16328
  }
16055
- var _c0$B = function (a0) { return { "form-group-error": a0 }; };
16056
- var _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
16329
+ var _c0$D = function (a0) { return { "form-group-error": a0 }; };
16330
+ var _c1$f = function (a0) { return { "govuk-input--error": a0 }; };
16057
16331
  var WriteNumberFieldComponent = /** @class */ (function (_super) {
16058
16332
  __extends(WriteNumberFieldComponent, _super);
16059
16333
  function WriteNumberFieldComponent() {
@@ -16077,7 +16351,7 @@
16077
16351
  i0__namespace.ɵɵelementEnd();
16078
16352
  }
16079
16353
  if (rf & 2) {
16080
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$B, !ctx.numberControl.valid && ctx.numberControl.dirty));
16354
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$D, !ctx.numberControl.valid && ctx.numberControl.dirty));
16081
16355
  i0__namespace.ɵɵadvance(1);
16082
16356
  i0__namespace.ɵɵproperty("for", ctx.id());
16083
16357
  i0__namespace.ɵɵadvance(1);
@@ -16087,7 +16361,7 @@
16087
16361
  i0__namespace.ɵɵadvance(1);
16088
16362
  i0__namespace.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
16089
16363
  i0__namespace.ɵɵadvance(1);
16090
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$d, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
16364
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$f, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
16091
16365
  }
16092
16366
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.NumberValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
16093
16367
  var ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
@@ -16378,7 +16652,7 @@
16378
16652
  i0__namespace.ɵɵelementEnd();
16379
16653
  }
16380
16654
  }
16381
- var _c0$A = function (a0) { return { "scroll-container ": a0 }; };
16655
+ var _c0$C = function (a0) { return { "scroll-container ": a0 }; };
16382
16656
  function WriteOrganisationFieldComponent_fieldset_3_div_14_Template(rf, ctx) {
16383
16657
  if (rf & 1) {
16384
16658
  i0__namespace.ɵɵelementStart(0, "div", 26);
@@ -16394,7 +16668,7 @@
16394
16668
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
16395
16669
  var tmp_0_0 = null;
16396
16670
  var tmp_2_0 = null;
16397
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$A, ((tmp_0_0 = i0__namespace.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
16671
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$C, ((tmp_0_0 = i0__namespace.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
16398
16672
  i0__namespace.ɵɵadvance(2);
16399
16673
  i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
16400
16674
  i0__namespace.ɵɵadvance(2);
@@ -16866,8 +17140,8 @@
16866
17140
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label));
16867
17141
  }
16868
17142
  }
16869
- var _c0$z = function (a0) { return { "form-group-error": a0 }; };
16870
- var _c1$c = function (a0) { return { "govuk-input--error": a0 }; };
17143
+ var _c0$B = function (a0) { return { "form-group-error": a0 }; };
17144
+ var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
16871
17145
  var WritePhoneUKFieldComponent = /** @class */ (function (_super) {
16872
17146
  __extends(WritePhoneUKFieldComponent, _super);
16873
17147
  function WritePhoneUKFieldComponent() {
@@ -16891,7 +17165,7 @@
16891
17165
  i0__namespace.ɵɵelementEnd();
16892
17166
  }
16893
17167
  if (rf & 2) {
16894
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$z, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
17168
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$B, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
16895
17169
  i0__namespace.ɵɵadvance(1);
16896
17170
  i0__namespace.ɵɵproperty("for", ctx.id());
16897
17171
  i0__namespace.ɵɵadvance(1);
@@ -16901,7 +17175,7 @@
16901
17175
  i0__namespace.ɵɵadvance(1);
16902
17176
  i0__namespace.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
16903
17177
  i0__namespace.ɵɵadvance(1);
16904
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$c, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
17178
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$e, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
16905
17179
  }
16906
17180
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
16907
17181
  var ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
@@ -16983,8 +17257,8 @@
16983
17257
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.textareaControl.errors, ctx_r2.caseField.label));
16984
17258
  }
16985
17259
  }
16986
- var _c0$y = function (a0) { return { "form-group-error": a0 }; };
16987
- var _c1$b = function (a0) { return { "govuk-textarea--error": a0 }; };
17260
+ var _c0$A = function (a0) { return { "form-group-error": a0 }; };
17261
+ var _c1$d = function (a0) { return { "govuk-textarea--error": a0 }; };
16988
17262
  var WriteTextAreaFieldComponent = /** @class */ (function (_super) {
16989
17263
  __extends(WriteTextAreaFieldComponent, _super);
16990
17264
  function WriteTextAreaFieldComponent(browserService) {
@@ -17019,7 +17293,7 @@
17019
17293
  i0__namespace.ɵɵelementEnd();
17020
17294
  }
17021
17295
  if (rf & 2) {
17022
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$y, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
17296
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$A, !ctx.textareaControl.valid && ctx.textareaControl.dirty));
17023
17297
  i0__namespace.ɵɵadvance(1);
17024
17298
  i0__namespace.ɵɵproperty("for", ctx.id());
17025
17299
  i0__namespace.ɵɵadvance(1);
@@ -17029,7 +17303,7 @@
17029
17303
  i0__namespace.ɵɵadvance(1);
17030
17304
  i0__namespace.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
17031
17305
  i0__namespace.ɵɵadvance(1);
17032
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$b, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
17306
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$d, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
17033
17307
  }
17034
17308
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17035
17309
  (function () {
@@ -17111,8 +17385,8 @@
17111
17385
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.textControl.errors, ctx_r2.caseField.label));
17112
17386
  }
17113
17387
  }
17114
- var _c0$x = function (a0) { return { "form-group-error": a0 }; };
17115
- var _c1$a = function (a0) { return { "govuk-input--error": a0 }; };
17388
+ var _c0$z = function (a0) { return { "form-group-error": a0 }; };
17389
+ var _c1$c = function (a0) { return { "govuk-input--error": a0 }; };
17116
17390
  var WriteTextFieldComponent = /** @class */ (function (_super) {
17117
17391
  __extends(WriteTextFieldComponent, _super);
17118
17392
  function WriteTextFieldComponent() {
@@ -17141,7 +17415,7 @@
17141
17415
  i0__namespace.ɵɵelementEnd();
17142
17416
  }
17143
17417
  if (rf & 2) {
17144
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$x, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
17418
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$z, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
17145
17419
  i0__namespace.ɵɵadvance(1);
17146
17420
  i0__namespace.ɵɵproperty("for", ctx.id());
17147
17421
  i0__namespace.ɵɵadvance(1);
@@ -17151,7 +17425,7 @@
17151
17425
  i0__namespace.ɵɵadvance(1);
17152
17426
  i0__namespace.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
17153
17427
  i0__namespace.ɵɵadvance(1);
17154
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$a, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
17428
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$c, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
17155
17429
  }
17156
17430
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17157
17431
  var ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteTextFieldComponent);
@@ -17349,7 +17623,7 @@
17349
17623
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label));
17350
17624
  }
17351
17625
  }
17352
- var _c0$w = function (a0) { return { selected: a0 }; };
17626
+ var _c0$y = function (a0) { return { selected: a0 }; };
17353
17627
  function WriteYesNoFieldComponent_div_7_Template(rf, ctx) {
17354
17628
  if (rf & 1) {
17355
17629
  i0__namespace.ɵɵelementStart(0, "div", 10);
@@ -17362,7 +17636,7 @@
17362
17636
  if (rf & 2) {
17363
17637
  var value_r4 = ctx.$implicit;
17364
17638
  var ctx_r3 = i0__namespace.ɵɵnextContext();
17365
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$w, ctx_r3.yesNoControl.value === value_r4));
17639
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$y, ctx_r3.yesNoControl.value === value_r4));
17366
17640
  i0__namespace.ɵɵadvance(1);
17367
17641
  i0__namespace.ɵɵproperty("id", ctx_r3.createElementId(value_r4))("name", ctx_r3.id())("formControl", ctx_r3.yesNoControl)("value", value_r4);
17368
17642
  i0__namespace.ɵɵattribute("name", ctx_r3.id());
@@ -17372,7 +17646,7 @@
17372
17646
  i0__namespace.ɵɵtextInterpolate(value_r4);
17373
17647
  }
17374
17648
  }
17375
- var _c1$9 = function (a0) { return { "form-group-error": a0 }; };
17649
+ var _c1$b = function (a0) { return { "form-group-error": a0 }; };
17376
17650
  var WriteYesNoFieldComponent = /** @class */ (function (_super) {
17377
17651
  __extends(WriteYesNoFieldComponent, _super);
17378
17652
  function WriteYesNoFieldComponent(yesNoService) {
@@ -17403,7 +17677,7 @@
17403
17677
  i0__namespace.ɵɵelementEnd();
17404
17678
  }
17405
17679
  if (rf & 2) {
17406
- i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$9, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
17680
+ i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$b, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
17407
17681
  i0__namespace.ɵɵadvance(3);
17408
17682
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
17409
17683
  i0__namespace.ɵɵadvance(1);
@@ -17428,6 +17702,9 @@
17428
17702
 
17429
17703
  var PaletteService = /** @class */ (function () {
17430
17704
  function PaletteService() {
17705
+ this.componentLauncherRegistry = {
17706
+ CaseFileView: [CaseFileViewFieldComponent, CaseFileViewFieldReadComponent]
17707
+ };
17431
17708
  }
17432
17709
  PaletteService.prototype.getFieldComponentClass = function (caseField, write) {
17433
17710
  switch (caseField.field_type.type) {
@@ -17493,12 +17770,23 @@
17493
17770
  return CaseHistoryViewerFieldComponent;
17494
17771
  case 'WaysToPay':
17495
17772
  return WaysToPayFieldComponent;
17773
+ case 'ComponentLauncher':
17774
+ return this.getComponentLauncherComponent(caseField, write);
17496
17775
  case 'FlagLauncher':
17497
17776
  return write ? WriteCaseFlagFieldComponent : ReadCaseFlagFieldComponent;
17498
17777
  default:
17499
17778
  return UnsupportedFieldComponent;
17500
17779
  }
17501
17780
  };
17781
+ PaletteService.prototype.getComponentLauncherComponent = function (caseField, write) {
17782
+ // Extract the value passed for #ARGUMENT(...) in the CaseField display_context_parameter and return the matching
17783
+ // component from the componentLauncherRegistry
17784
+ var argumentValue = caseField.display_context_parameter.match(/#ARGUMENT\((.*?)\)/)[1];
17785
+ if (argumentValue && this.componentLauncherRegistry.hasOwnProperty(argumentValue)) {
17786
+ return this.componentLauncherRegistry[argumentValue][write ? 0 : 1];
17787
+ }
17788
+ return UnsupportedFieldComponent;
17789
+ };
17502
17790
  return PaletteService;
17503
17791
  }());
17504
17792
  PaletteService.ɵfac = function PaletteService_Factory(t) { return new (t || PaletteService)(); };
@@ -17509,7 +17797,7 @@
17509
17797
  }], null, null);
17510
17798
  })();
17511
17799
 
17512
- var _c0$v = ["fieldContainer"];
17800
+ var _c0$x = ["fieldContainer"];
17513
17801
  var FIX_CASEFIELD_FOR$1 = ['FixedList', 'DynamicList'];
17514
17802
  var FieldReadComponent = /** @class */ (function (_super) {
17515
17803
  __extends(FieldReadComponent, _super);
@@ -17558,7 +17846,7 @@
17558
17846
  FieldReadComponent.ɵfac = function FieldReadComponent_Factory(t) { return new (t || FieldReadComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(PaletteService)); };
17559
17847
  FieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadComponent, selectors: [["ccd-field-read"]], viewQuery: function FieldReadComponent_Query(rf, ctx) {
17560
17848
  if (rf & 1) {
17561
- i0__namespace.ɵɵviewQuery(_c0$v, 1, i0.ViewContainerRef);
17849
+ i0__namespace.ɵɵviewQuery(_c0$x, 1, i0.ViewContainerRef);
17562
17850
  }
17563
17851
  if (rf & 2) {
17564
17852
  var _t = void 0;
@@ -17599,7 +17887,7 @@
17599
17887
  }] });
17600
17888
  })();
17601
17889
 
17602
- var _c0$u = ["fieldContainer"];
17890
+ var _c0$w = ["fieldContainer"];
17603
17891
  var FIX_CASEFIELD_FOR = ['FixedList', 'DynamicList'];
17604
17892
  var FieldWriteComponent = /** @class */ (function (_super) {
17605
17893
  __extends(FieldWriteComponent, _super);
@@ -17647,7 +17935,7 @@
17647
17935
  FieldWriteComponent.ɵfac = function FieldWriteComponent_Factory(t) { return new (t || FieldWriteComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵdirectiveInject(PaletteService)); };
17648
17936
  FieldWriteComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldWriteComponent, selectors: [["ccd-field-write"]], viewQuery: function FieldWriteComponent_Query(rf, ctx) {
17649
17937
  if (rf & 1) {
17650
- i0__namespace.ɵɵviewQuery(_c0$u, 3, i0.ViewContainerRef);
17938
+ i0__namespace.ɵɵviewQuery(_c0$w, 3, i0.ViewContainerRef);
17651
17939
  }
17652
17940
  if (rf & 2) {
17653
17941
  var _t = void 0;
@@ -17710,7 +17998,7 @@
17710
17998
  i0__namespace.ɵɵprojection(0);
17711
17999
  }
17712
18000
  }
17713
- var _c0$t = ["*"];
18001
+ var _c0$v = ["*"];
17714
18002
  var FieldReadLabelComponent = /** @class */ (function (_super) {
17715
18003
  __extends(FieldReadLabelComponent, _super);
17716
18004
  function FieldReadLabelComponent() {
@@ -17748,7 +18036,7 @@
17748
18036
  return FieldReadLabelComponent;
17749
18037
  }(AbstractFieldReadComponent));
17750
18038
  FieldReadLabelComponent.ɵfac = function FieldReadLabelComponent_Factory(t) { return ɵFieldReadLabelComponent_BaseFactory(t || FieldReadLabelComponent); };
17751
- FieldReadLabelComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$t, decls: 4, vars: 5, consts: [[3, "hidden"], ["class", "case-field", 4, "ngIf", "ngIfElse"], ["caseFieldValue", ""], [1, "case-field"], [1, "case-field__label"], [1, "case-field__value"], [4, "ngTemplateOutlet"]], template: function FieldReadLabelComponent_Template(rf, ctx) {
18039
+ FieldReadLabelComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$v, decls: 4, vars: 5, consts: [[3, "hidden"], ["class", "case-field", 4, "ngIf", "ngIfElse"], ["caseFieldValue", ""], [1, "case-field"], [1, "case-field__label"], [1, "case-field__value"], [4, "ngTemplateOutlet"]], template: function FieldReadLabelComponent_Template(rf, ctx) {
17752
18040
  if (rf & 1) {
17753
18041
  i0__namespace.ɵɵprojectionDef();
17754
18042
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -17782,24 +18070,900 @@
17782
18070
  }] });
17783
18071
  })();
17784
18072
 
17785
- var CommonDataService = /** @class */ (function () {
17786
- function CommonDataService(http) {
17787
- this.http = http;
18073
+ function CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template(rf, ctx) {
18074
+ if (rf & 1) {
18075
+ i0__namespace.ɵɵelementContainer(0);
17788
18076
  }
17789
- CommonDataService.prototype.getRefData = function (url) {
17790
- if (url) {
17791
- return this.http.get(url, { observe: 'body' });
18077
+ }
18078
+ var _c0$u = function (a0) { return { cat: a0, level: 1 }; };
18079
+ function CaseFileViewFolderSelectorComponent_ng_container_5_Template(rf, ctx) {
18080
+ if (rf & 1) {
18081
+ i0__namespace.ɵɵelementContainerStart(0);
18082
+ i0__namespace.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
18083
+ i0__namespace.ɵɵelementContainerEnd();
18084
+ }
18085
+ if (rf & 2) {
18086
+ var cat_r3 = ctx.$implicit;
18087
+ i0__namespace.ɵɵnextContext();
18088
+ var _r1 = i0__namespace.ɵɵreference(13);
18089
+ i0__namespace.ɵɵadvance(1);
18090
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c0$u, cat_r3));
18091
+ }
18092
+ }
18093
+ function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template(rf, ctx) {
18094
+ if (rf & 1) {
18095
+ i0__namespace.ɵɵelementContainer(0);
18096
+ }
18097
+ }
18098
+ var _c1$a = function (a0, a1) { return { cat: a0, level: a1 }; };
18099
+ function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) {
18100
+ if (rf & 1) {
18101
+ i0__namespace.ɵɵelementContainerStart(0);
18102
+ i0__namespace.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
18103
+ i0__namespace.ɵɵelementContainerEnd();
18104
+ }
18105
+ if (rf & 2) {
18106
+ var subcat_r8 = ctx.$implicit;
18107
+ var level_r6 = i0__namespace.ɵɵnextContext().level;
18108
+ i0__namespace.ɵɵnextContext();
18109
+ var _r1 = i0__namespace.ɵɵreference(13);
18110
+ i0__namespace.ɵɵadvance(1);
18111
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$a, subcat_r8, level_r6 + 1));
18112
+ }
18113
+ }
18114
+ function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) {
18115
+ if (rf & 1) {
18116
+ var _r12_1 = i0__namespace.ɵɵgetCurrentView();
18117
+ i0__namespace.ɵɵelementStart(0, "div", 9);
18118
+ i0__namespace.ɵɵelementStart(1, "input", 10);
18119
+ i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_ng_template_12_Template_input_click_1_listener($event) { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(); return ctx_r11.handleChange($event); });
18120
+ i0__namespace.ɵɵelementEnd();
18121
+ i0__namespace.ɵɵelementStart(2, "label", 11);
18122
+ i0__namespace.ɵɵelement(3, "img", 12);
18123
+ i0__namespace.ɵɵtext(4);
18124
+ i0__namespace.ɵɵelementEnd();
18125
+ i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 2);
18126
+ i0__namespace.ɵɵelementEnd();
18127
+ }
18128
+ if (rf & 2) {
18129
+ var cat_r5 = ctx.cat;
18130
+ var level_r6 = ctx.level;
18131
+ i0__namespace.ɵɵadvance(1);
18132
+ i0__namespace.ɵɵpropertyInterpolate1("name", "level-", level_r6, "");
18133
+ i0__namespace.ɵɵproperty("id", cat_r5.category_id);
18134
+ i0__namespace.ɵɵadvance(1);
18135
+ i0__namespace.ɵɵproperty("for", cat_r5.category_id);
18136
+ i0__namespace.ɵɵadvance(2);
18137
+ i0__namespace.ɵɵtextInterpolate1(" ", cat_r5.category_name, " ");
18138
+ i0__namespace.ɵɵadvance(1);
18139
+ i0__namespace.ɵɵproperty("ngForOf", cat_r5.sub_categories);
18140
+ }
18141
+ }
18142
+ var CaseFileViewFolderSelectorComponent = /** @class */ (function () {
18143
+ function CaseFileViewFolderSelectorComponent(dialogRef, data) {
18144
+ this.dialogRef = dialogRef;
18145
+ this.data = data;
18146
+ this.currentCategories = [];
18147
+ this.selected = '';
18148
+ this.currentCategories = __spread(this.data.categories);
18149
+ }
18150
+ CaseFileViewFolderSelectorComponent.prototype.ngAfterViewInit = function () {
18151
+ var path = this.findPath();
18152
+ path.forEach(function (p) { return document.getElementById(p).checked = true; });
18153
+ };
18154
+ CaseFileViewFolderSelectorComponent.prototype.handleChange = function (evt) {
18155
+ if (evt.target.checked) {
18156
+ this.select(evt.target.id);
18157
+ // get level of this checkbox so we can clear all lower levels
18158
+ var level = parseInt(evt.target.name.split('-')[1], 10) + 1;
18159
+ var nodes = document.getElementsByName("level-" + level);
18160
+ while (nodes.length > 0) {
18161
+ nodes.forEach(function (node) { return node.checked = false; });
18162
+ level += 1;
18163
+ nodes = document.getElementsByName("level-" + level);
18164
+ }
17792
18165
  }
17793
- return rxjs.of(null);
17794
18166
  };
17795
- return CommonDataService;
18167
+ CaseFileViewFolderSelectorComponent.prototype.select = function (categoryId) {
18168
+ this.selected = categoryId;
18169
+ };
18170
+ CaseFileViewFolderSelectorComponent.prototype.cancel = function () {
18171
+ this.dialogRef.close();
18172
+ };
18173
+ CaseFileViewFolderSelectorComponent.prototype.save = function () {
18174
+ this.dialogRef.close(this.selected.length > 0 ? this.selected : null);
18175
+ };
18176
+ CaseFileViewFolderSelectorComponent.prototype.findPath = function () {
18177
+ var e_1, _a;
18178
+ try {
18179
+ for (var _b = __values(this.data.categories), _c = _b.next(); !_c.done; _c = _b.next()) {
18180
+ var c = _c.value;
18181
+ var r = this.containsDocument(c, this.data.document);
18182
+ if (r) {
18183
+ return r;
18184
+ }
18185
+ }
18186
+ }
18187
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
18188
+ finally {
18189
+ try {
18190
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
18191
+ }
18192
+ finally { if (e_1) throw e_1.error; }
18193
+ }
18194
+ };
18195
+ CaseFileViewFolderSelectorComponent.prototype.containsDocument = function (cat, document) {
18196
+ var e_2, _a;
18197
+ if (cat.documents.findIndex(function (doc) { return doc.document_binary_url === document.document_binary_url; }) > -1) {
18198
+ return [cat.category_id];
18199
+ }
18200
+ try {
18201
+ for (var _b = __values(cat.sub_categories), _c = _b.next(); !_c.done; _c = _b.next()) {
18202
+ var c = _c.value;
18203
+ var r = this.containsDocument(c, document);
18204
+ if (r) {
18205
+ return __spread([cat.category_id], r);
18206
+ }
18207
+ }
18208
+ }
18209
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
18210
+ finally {
18211
+ try {
18212
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
18213
+ }
18214
+ finally { if (e_2) throw e_2.error; }
18215
+ }
18216
+ return null;
18217
+ };
18218
+ return CaseFileViewFolderSelectorComponent;
17796
18219
  }());
17797
- CommonDataService.ɵfac = function CommonDataService_Factory(t) { return new (t || CommonDataService)(i0__namespace.ɵɵinject(i1__namespace$2.HttpClient)); };
17798
- CommonDataServiceprov = i0__namespace.ɵɵdefineInjectable({ token: CommonDataService, factory: CommonDataService.ɵfac });
18220
+ CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialogRef), i0__namespace.ɵɵdirectiveInject(i1$3.MAT_DIALOG_DATA)); };
18221
+ CaseFileViewFolderSelectorComponentcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [[1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "cancel", 3, "click"], [1, "close", 3, "click"], ["folder", ""], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "folder", "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "name", "id", "click"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "iconImg"]], template: function CaseFileViewFolderSelectorComponent_Template(rf, ctx) {
18222
+ if (rf & 1) {
18223
+ i0__namespace.ɵɵelementStart(0, "h2", 0);
18224
+ i0__namespace.ɵɵtext(1, "Move File");
18225
+ i0__namespace.ɵɵelementEnd();
18226
+ i0__namespace.ɵɵelementStart(2, "p");
18227
+ i0__namespace.ɵɵtext(3);
18228
+ i0__namespace.ɵɵelementEnd();
18229
+ i0__namespace.ɵɵelementStart(4, "div", 1);
18230
+ i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_container_5_Template, 2, 4, "ng-container", 2);
18231
+ i0__namespace.ɵɵelementEnd();
18232
+ i0__namespace.ɵɵelementStart(6, "div", 3);
18233
+ i0__namespace.ɵɵelementStart(7, "button", 4);
18234
+ i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_7_listener() { return ctx.save(); });
18235
+ i0__namespace.ɵɵtext(8, "Save");
18236
+ i0__namespace.ɵɵelementEnd();
18237
+ i0__namespace.ɵɵelementStart(9, "a", 5);
18238
+ i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_9_listener() { return ctx.cancel(); });
18239
+ i0__namespace.ɵɵtext(10, "Cancel");
18240
+ i0__namespace.ɵɵelementEnd();
18241
+ i0__namespace.ɵɵelementEnd();
18242
+ i0__namespace.ɵɵelementStart(11, "div", 6);
18243
+ i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_11_listener() { return ctx.cancel(); });
18244
+ i0__namespace.ɵɵelementEnd();
18245
+ i0__namespace.ɵɵtemplate(12, CaseFileViewFolderSelectorComponent_ng_template_12_Template, 6, 5, "ng-template", null, 7, i0__namespace.ɵɵtemplateRefExtractor);
18246
+ }
18247
+ if (rf & 2) {
18248
+ i0__namespace.ɵɵadvance(3);
18249
+ i0__namespace.ɵɵtextInterpolate1("Where do you want to move \"", ctx.data.document.document_filename, "\" file?");
18250
+ i0__namespace.ɵɵadvance(2);
18251
+ i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
18252
+ }
18253
+ }, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: ["[_nghost-%COMP%]{position:relative;display:block}.folders[_ngcontent-%COMP%]{margin-bottom:20px}.folder[_ngcontent-%COMP%]{display:none;border-bottom:1px solid #ccc;border-top:1px solid #ccc;margin:0 0 -1px}.folders[_ngcontent-%COMP%] > .folder[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:checked ~ .folder[_ngcontent-%COMP%]{display:block}.iconImg[_ngcontent-%COMP%]{position:relative;display:inline-block;height:28px}.folder[_ngcontent-%COMP%] > .folder[_ngcontent-%COMP%]{margin-left:20px}.folder[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:before{top:3px}.folder[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{top:13px}p[_ngcontent-%COMP%]{font-weight:700}button[_ngcontent-%COMP%]{margin-right:20px}.close[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel[_ngcontent-%COMP%], .close[_ngcontent-%COMP%]{cursor:pointer}"] });
17799
18254
  (function () {
17800
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CommonDataService, [{
17801
- type: i0.Injectable
17802
- }], function () { return [{ type: i1__namespace$2.HttpClient }]; }, null);
18255
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
18256
+ type: i0.Component,
18257
+ args: [{
18258
+ selector: 'xui-case-file-view-folder-selector',
18259
+ templateUrl: './case-file-view-folder-selector.component.html',
18260
+ styleUrls: ['./case-file-view-folder-selector.component.scss']
18261
+ }]
18262
+ }], function () {
18263
+ return [{ type: i1__namespace$3.MatDialogRef }, { type: undefined, decorators: [{
18264
+ type: i0.Inject,
18265
+ args: [i1$3.MAT_DIALOG_DATA]
18266
+ }] }];
18267
+ }, null);
18268
+ })();
18269
+
18270
+ function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template(rf, ctx) {
18271
+ if (rf & 1) {
18272
+ i0__namespace.ɵɵelementContainerStart(0);
18273
+ i0__namespace.ɵɵelementStart(1, "div", 6);
18274
+ i0__namespace.ɵɵtext(2);
18275
+ i0__namespace.ɵɵelementEnd();
18276
+ i0__namespace.ɵɵelementContainerEnd();
18277
+ }
18278
+ if (rf & 2) {
18279
+ var ctx_r2 = i0__namespace.ɵɵnextContext(2);
18280
+ i0__namespace.ɵɵadvance(2);
18281
+ i0__namespace.ɵɵtextInterpolate(ctx_r2.title);
18282
+ }
18283
+ }
18284
+ function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template(rf, ctx) {
18285
+ if (rf & 1) {
18286
+ i0__namespace.ɵɵelement(0, "img", 10);
18287
+ }
18288
+ if (rf & 2) {
18289
+ var item_r4 = i0__namespace.ɵɵnextContext().$implicit;
18290
+ var ctx_r5 = i0__namespace.ɵɵnextContext(2);
18291
+ i0__namespace.ɵɵpropertyInterpolate1("alt", "", ctx_r5.title, " icon'");
18292
+ i0__namespace.ɵɵproperty("src", item_r4.iconSrc, i0__namespace.ɵɵsanitizeUrl);
18293
+ }
18294
+ }
18295
+ function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template(rf, ctx) {
18296
+ if (rf & 1) {
18297
+ var _r8_1 = i0__namespace.ɵɵgetCurrentView();
18298
+ i0__namespace.ɵɵelementContainerStart(0);
18299
+ i0__namespace.ɵɵelementStart(1, "div", 7);
18300
+ i0__namespace.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template_div_click_1_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var item_r4 = ctx.$implicit; var ctx_r7 = i0__namespace.ɵɵnextContext(2); item_r4.actionFn(); return ctx_r7.closeOverlay(); });
18301
+ i0__namespace.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template, 1, 2, "img", 8);
18302
+ i0__namespace.ɵɵelementStart(3, "div", 9);
18303
+ i0__namespace.ɵɵtext(4);
18304
+ i0__namespace.ɵɵelementEnd();
18305
+ i0__namespace.ɵɵelementEnd();
18306
+ i0__namespace.ɵɵelementContainerEnd();
18307
+ }
18308
+ if (rf & 2) {
18309
+ var item_r4 = ctx.$implicit;
18310
+ i0__namespace.ɵɵadvance(2);
18311
+ i0__namespace.ɵɵproperty("ngIf", item_r4.iconSrc);
18312
+ i0__namespace.ɵɵadvance(2);
18313
+ i0__namespace.ɵɵtextInterpolate(item_r4.actionText);
18314
+ }
18315
+ }
18316
+ function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) {
18317
+ if (rf & 1) {
18318
+ i0__namespace.ɵɵelementStart(0, "div", 3);
18319
+ i0__namespace.ɵɵtemplate(1, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template, 3, 1, "ng-container", 4);
18320
+ i0__namespace.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template, 5, 2, "ng-container", 5);
18321
+ i0__namespace.ɵɵelementEnd();
18322
+ }
18323
+ if (rf & 2) {
18324
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
18325
+ i0__namespace.ɵɵadvance(1);
18326
+ i0__namespace.ɵɵproperty("ngIf", ctx_r1.title);
18327
+ i0__namespace.ɵɵadvance(1);
18328
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r1.menuItems);
18329
+ }
18330
+ }
18331
+ var _c0$t = [[["", "trigger", ""]]];
18332
+ var _c1$9 = ["[trigger]"];
18333
+ var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
18334
+ function CaseFileViewOverlayMenuComponent() {
18335
+ this.title = '';
18336
+ this.isOpen = false;
18337
+ this.isOpenChange = new i0.EventEmitter();
18338
+ }
18339
+ CaseFileViewOverlayMenuComponent.prototype.closeOverlay = function () {
18340
+ var isOpen = false;
18341
+ this.isOpen = isOpen;
18342
+ this.isOpenChange.emit(isOpen);
18343
+ };
18344
+ return CaseFileViewOverlayMenuComponent;
18345
+ }());
18346
+ CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
18347
+ CaseFileViewOverlayMenuComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$9, decls: 5, vars: 4, consts: [["type", "button", "cdkOverlayOrigin", "", 1, "overlay-toggle", 3, "click"], ["trigger", "cdkOverlayOrigin"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass", "backdropClick"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], [1, "overlay-menu__item", 3, "click"], ["class", "overlay-menu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], [1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) {
18348
+ if (rf & 1) {
18349
+ i0__namespace.ɵɵprojectionDef(_c0$t);
18350
+ i0__namespace.ɵɵelementStart(0, "div");
18351
+ i0__namespace.ɵɵelementStart(1, "button", 0, 1);
18352
+ i0__namespace.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_Template_button_click_1_listener($event) { $event.stopPropagation(); return ctx.isOpen = !ctx.isOpen; });
18353
+ i0__namespace.ɵɵprojection(3);
18354
+ i0__namespace.ɵɵelementEnd();
18355
+ i0__namespace.ɵɵtemplate(4, CaseFileViewOverlayMenuComponent_ng_template_4_Template, 3, 2, "ng-template", 2);
18356
+ i0__namespace.ɵɵlistener("backdropClick", function CaseFileViewOverlayMenuComponent_Template_ng_template_backdropClick_4_listener() { return ctx.closeOverlay(); });
18357
+ i0__namespace.ɵɵelementEnd();
18358
+ }
18359
+ if (rf & 2) {
18360
+ var _r0 = i0__namespace.ɵɵreference(2);
18361
+ i0__namespace.ɵɵadvance(4);
18362
+ i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
18363
+ }
18364
+ }, 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}"] });
18365
+ (function () {
18366
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
18367
+ type: i0.Component,
18368
+ args: [{
18369
+ selector: 'ccd-case-file-view-overlay-menu',
18370
+ templateUrl: './case-file-view-overlay-menu.component.html',
18371
+ styleUrls: ['./case-file-view-overlay-menu.component.scss']
18372
+ }]
18373
+ }], null, { title: [{
18374
+ type: i0.Input
18375
+ }], menuItems: [{
18376
+ type: i0.Input
18377
+ }], isOpen: [{
18378
+ type: i0.Input
18379
+ }], isOpenChange: [{
18380
+ type: i0.Output
18381
+ }] });
18382
+ })();
18383
+
18384
+ var CaseFileViewFolderDocumentActionsComponent = /** @class */ (function () {
18385
+ function CaseFileViewFolderDocumentActionsComponent() {
18386
+ var _this = this;
18387
+ this.isOpen = false;
18388
+ this.changeFolderAction = new i0.EventEmitter();
18389
+ this.openInANewTabAction = new i0.EventEmitter();
18390
+ this.downloadAction = new i0.EventEmitter();
18391
+ this.printAction = new i0.EventEmitter();
18392
+ this.overlayMenuItems = [
18393
+ { actionText: 'Open in a new tab', iconSrc: '/assets/img/case-file-view/document-menu/open_in_new.svg', actionFn: function () { return _this.openInANewTabAction.emit(); } },
18394
+ { actionText: 'Download', iconSrc: '/assets/img/case-file-view/document-menu/download.svg', actionFn: function () { return _this.downloadAction.emit(); } },
18395
+ { actionText: 'Print', iconSrc: '/assets/img/case-file-view/document-menu/print.svg', actionFn: function () { return _this.printAction.emit(); } },
18396
+ ];
18397
+ }
18398
+ CaseFileViewFolderDocumentActionsComponent.prototype.ngOnInit = function () {
18399
+ var _this = this;
18400
+ if (this.allowMoving) {
18401
+ this.overlayMenuItems.unshift({ actionText: 'Change folder', iconSrc: '/assets/img/case-file-view/document-menu/open_with.svg', actionFn: function () { return _this.changeFolderAction.emit(); } });
18402
+ }
18403
+ };
18404
+ return CaseFileViewFolderDocumentActionsComponent;
18405
+ }());
18406
+ CaseFileViewFolderDocumentActionsComponent.ɵfac = function CaseFileViewFolderDocumentActionsComponent_Factory(t) { return new (t || CaseFileViewFolderDocumentActionsComponent)(); };
18407
+ CaseFileViewFolderDocumentActionsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderDocumentActionsComponent, selectors: [["ccd-case-file-view-folder-document-actions"]], inputs: { allowMoving: "allowMoving" }, outputs: { changeFolderAction: "changeFolderAction", openInANewTabAction: "openInANewTabAction", downloadAction: "downloadAction", printAction: "printAction" }, decls: 3, vars: 2, consts: [[3, "menuItems", "isOpen", "isOpenChange"], ["trigger", ""], ["src", "/assets/img/case-file-view/document-menu/more_vert.svg", "alt", "More document options", 1, "actions-trigger-icon"]], template: function CaseFileViewFolderDocumentActionsComponent_Template(rf, ctx) {
18408
+ if (rf & 1) {
18409
+ i0__namespace.ɵɵelementStart(0, "ccd-case-file-view-overlay-menu", 0);
18410
+ i0__namespace.ɵɵlistener("isOpenChange", function CaseFileViewFolderDocumentActionsComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_0_listener($event) { return ctx.isOpen = $event; });
18411
+ i0__namespace.ɵɵelementContainerStart(1, 1);
18412
+ i0__namespace.ɵɵelement(2, "img", 2);
18413
+ i0__namespace.ɵɵelementContainerEnd();
18414
+ i0__namespace.ɵɵelementEnd();
18415
+ }
18416
+ if (rf & 2) {
18417
+ i0__namespace.ɵɵproperty("menuItems", ctx.overlayMenuItems)("isOpen", ctx.isOpen);
18418
+ }
18419
+ }, directives: [CaseFileViewOverlayMenuComponent], styles: [".actions-trigger-icon[_ngcontent-%COMP%]{display:block;height:24px;margin-right:-4px}"] });
18420
+ (function () {
18421
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderDocumentActionsComponent, [{
18422
+ type: i0.Component,
18423
+ args: [{
18424
+ selector: 'ccd-case-file-view-folder-document-actions',
18425
+ templateUrl: './case-file-view-folder-document-actions.component.html',
18426
+ styleUrls: ['./case-file-view-folder-document-actions.component.scss']
18427
+ }]
18428
+ }], function () { return []; }, { allowMoving: [{
18429
+ type: i0.Input
18430
+ }], changeFolderAction: [{
18431
+ type: i0.Output
18432
+ }], openInANewTabAction: [{
18433
+ type: i0.Output
18434
+ }], downloadAction: [{
18435
+ type: i0.Output
18436
+ }], printAction: [{
18437
+ type: i0.Output
18438
+ }] });
18439
+ })();
18440
+
18441
+ var CaseFileViewFolderSortComponent = /** @class */ (function () {
18442
+ function CaseFileViewFolderSortComponent() {
18443
+ var _this = this;
18444
+ this.isOpen = false;
18445
+ this.sortAscending = new i0.EventEmitter();
18446
+ this.sortDescending = new i0.EventEmitter();
18447
+ this.overlayMenuItems = [
18448
+ { actionText: 'A to Z ascending', iconSrc: '/assets/img/sort/sort-down-arrow.svg', actionFn: function () { return _this.sortAscending.emit(); } },
18449
+ { actionText: 'Z to A descending', iconSrc: '/assets/img/sort/sort-up-arrow.svg', actionFn: function () { return _this.sortDescending.emit(); } },
18450
+ ];
18451
+ }
18452
+ return CaseFileViewFolderSortComponent;
18453
+ }());
18454
+ CaseFileViewFolderSortComponent.ɵfac = function CaseFileViewFolderSortComponent_Factory(t) { return new (t || CaseFileViewFolderSortComponent)(); };
18455
+ CaseFileViewFolderSortComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderSortComponent, selectors: [["ccd-case-file-view-folder-sort"]], outputs: { sortAscending: "sortAscending", sortDescending: "sortDescending" }, decls: 3, vars: 3, consts: [[3, "title", "menuItems", "isOpen", "isOpenChange"], ["trigger", ""], ["src", "/assets/img/sort/sort-arrows.svg", "alt", "Sort Arrows", 1, "sort-button-icon"]], template: function CaseFileViewFolderSortComponent_Template(rf, ctx) {
18456
+ if (rf & 1) {
18457
+ i0__namespace.ɵɵelementStart(0, "ccd-case-file-view-overlay-menu", 0);
18458
+ i0__namespace.ɵɵlistener("isOpenChange", function CaseFileViewFolderSortComponent_Template_ccd_case_file_view_overlay_menu_isOpenChange_0_listener($event) { return ctx.isOpen = $event; });
18459
+ i0__namespace.ɵɵelementContainerStart(1, 1);
18460
+ i0__namespace.ɵɵelement(2, "img", 2);
18461
+ i0__namespace.ɵɵelementContainerEnd();
18462
+ i0__namespace.ɵɵelementEnd();
18463
+ }
18464
+ if (rf & 2) {
18465
+ i0__namespace.ɵɵproperty("title", "Sort documents by name")("menuItems", ctx.overlayMenuItems)("isOpen", ctx.isOpen);
18466
+ }
18467
+ }, directives: [CaseFileViewOverlayMenuComponent], styles: [".sort-button-icon[_ngcontent-%COMP%]{display:block;height:20px;margin-right:-2px}"] });
18468
+ (function () {
18469
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSortComponent, [{
18470
+ type: i0.Component,
18471
+ args: [{
18472
+ selector: 'ccd-case-file-view-folder-sort',
18473
+ templateUrl: './case-file-view-folder-sort.component.html',
18474
+ styleUrls: ['./case-file-view-folder-sort.component.scss']
18475
+ }]
18476
+ }], function () { return []; }, { sortAscending: [{
18477
+ type: i0.Output
18478
+ }], sortDescending: [{
18479
+ type: i0.Output
18480
+ }] });
18481
+ })();
18482
+
18483
+ var CaseFileViewCategory = /** @class */ (function () {
18484
+ function CaseFileViewCategory() {
18485
+ }
18486
+ return CaseFileViewCategory;
18487
+ }());
18488
+
18489
+ var CaseFileViewDocument = /** @class */ (function () {
18490
+ function CaseFileViewDocument() {
18491
+ }
18492
+ return CaseFileViewDocument;
18493
+ }());
18494
+
18495
+ /**
18496
+ * DTO to provide typing of the response from the CCD Data Store API for Categories and Documents data.
18497
+ * @see {@link https://tools.hmcts.net/confluence/x/0KSDX#CaseFileViewDocumentDataendpointLLD-SuccessResponsePayload} for full details
18498
+ */
18499
+ var CategoriesAndDocuments = /** @class */ (function () {
18500
+ function CategoriesAndDocuments() {
18501
+ }
18502
+ return CategoriesAndDocuments;
18503
+ }());
18504
+
18505
+ var DocumentTreeNodeType;
18506
+ (function (DocumentTreeNodeType) {
18507
+ DocumentTreeNodeType["FOLDER"] = "folder";
18508
+ DocumentTreeNodeType["DOCUMENT"] = "document";
18509
+ })(DocumentTreeNodeType || (DocumentTreeNodeType = {}));
18510
+
18511
+ var DocumentTreeNode = /** @class */ (function () {
18512
+ function DocumentTreeNode() {
18513
+ }
18514
+ Object.defineProperty(DocumentTreeNode.prototype, "childDocumentCount", {
18515
+ get: function () {
18516
+ var countChildren = function (childNodes) {
18517
+ var count = 0;
18518
+ if (childNodes === null || childNodes === void 0 ? void 0 : childNodes.length) {
18519
+ var documents = childNodes.filter(function (item) { return item.type === 'document'; });
18520
+ count += documents.length;
18521
+ childNodes.forEach(function (children) {
18522
+ count += countChildren(children.children);
18523
+ });
18524
+ }
18525
+ return count;
18526
+ };
18527
+ return countChildren(this.children);
18528
+ },
18529
+ enumerable: false,
18530
+ configurable: true
18531
+ });
18532
+ DocumentTreeNode.prototype.sortChildrenAscending = function () {
18533
+ var _a, _b;
18534
+ var sortAscending = function () {
18535
+ return function (a, b) {
18536
+ var nameA = a.name.toUpperCase();
18537
+ var nameB = b.name.toUpperCase();
18538
+ if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
18539
+ return 0;
18540
+ }
18541
+ if (nameA < nameB) {
18542
+ return -1;
18543
+ }
18544
+ if (nameA > nameB) {
18545
+ return 1;
18546
+ }
18547
+ };
18548
+ };
18549
+ (_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortAscending());
18550
+ (_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
18551
+ childNodes.sortChildrenAscending();
18552
+ });
18553
+ };
18554
+ DocumentTreeNode.prototype.sortChildrenDescending = function () {
18555
+ var _a, _b;
18556
+ var sortDescending = function () {
18557
+ return function (a, b) {
18558
+ var nameA = a.name.toUpperCase();
18559
+ var nameB = b.name.toUpperCase();
18560
+ if (a.type === DocumentTreeNodeType.FOLDER || b.type === DocumentTreeNodeType.FOLDER) {
18561
+ return 0;
18562
+ }
18563
+ if (nameA > nameB) {
18564
+ return -1;
18565
+ }
18566
+ if (nameA < nameB) {
18567
+ return 1;
18568
+ }
18569
+ };
18570
+ };
18571
+ (_a = this.children) === null || _a === void 0 ? void 0 : _a.sort(sortDescending());
18572
+ (_b = this.children) === null || _b === void 0 ? void 0 : _b.forEach(function (childNodes) {
18573
+ childNodes.sortChildrenDescending();
18574
+ });
18575
+ };
18576
+ Object.defineProperty(DocumentTreeNode.prototype, "flattenedAll", {
18577
+ get: function () {
18578
+ var _a;
18579
+ var flattenChildren = function (nodeChild) {
18580
+ var _a;
18581
+ var flattenedNodes = [];
18582
+ flattenedNodes.push(nodeChild);
18583
+ if (((_a = nodeChild.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
18584
+ nodeChild.children.forEach(function (child) {
18585
+ flattenedNodes.push.apply(flattenedNodes, __spread(flattenChildren(child)));
18586
+ });
18587
+ }
18588
+ return flattenedNodes;
18589
+ };
18590
+ return __spread([
18591
+ this
18592
+ ], (_a = this.children) === null || _a === void 0 ? void 0 : _a.map(function (item) {
18593
+ return flattenChildren(item);
18594
+ }).flat());
18595
+ },
18596
+ enumerable: false,
18597
+ configurable: true
18598
+ });
18599
+ return DocumentTreeNode;
18600
+ }());
18601
+ __decorate([
18602
+ classTransformer.Type(function () { return DocumentTreeNode; }),
18603
+ __metadata("design:type", Array)
18604
+ ], DocumentTreeNode.prototype, "children", void 0);
18605
+ __decorate([
18606
+ classTransformer.Expose(),
18607
+ __metadata("design:type", Object),
18608
+ __metadata("design:paramtypes", [])
18609
+ ], DocumentTreeNode.prototype, "childDocumentCount", null);
18610
+
18611
+ function CaseFileViewFolderComponent_div_8_div_1_Template(rf, ctx) {
18612
+ if (rf & 1) {
18613
+ i0__namespace.ɵɵelementStart(0, "div");
18614
+ i0__namespace.ɵɵtext(1, " No results found ");
18615
+ i0__namespace.ɵɵelementEnd();
18616
+ }
18617
+ }
18618
+ function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, ctx) {
18619
+ if (rf & 1) {
18620
+ var _r6_1 = i0__namespace.ɵɵgetCurrentView();
18621
+ i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 12);
18622
+ i0__namespace.ɵɵelementStart(1, "button", 13);
18623
+ i0__namespace.ɵɵlistener("click", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_button_click_1_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r5 = i0__namespace.ɵɵnextContext(2); ctx_r5.selectedNodeItem = node_r4; return ctx_r5.clickedDocument.emit(node_r4); });
18624
+ i0__namespace.ɵɵelementStart(2, "div", 14);
18625
+ i0__namespace.ɵɵelement(3, "img", 15);
18626
+ i0__namespace.ɵɵelementEnd();
18627
+ i0__namespace.ɵɵelementStart(4, "span", 16);
18628
+ i0__namespace.ɵɵtext(5);
18629
+ i0__namespace.ɵɵelementEnd();
18630
+ i0__namespace.ɵɵelementStart(6, "div", 17);
18631
+ i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-document-actions", 18);
18632
+ i0__namespace.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r7 = i0__namespace.ɵɵnextContext(2); return ctx_r7.triggerDocumentAction("changeFolder", node_r4); })("openInANewTabAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_openInANewTabAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.triggerDocumentAction("openInANewTab", node_r4); })("downloadAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_downloadAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r9 = i0__namespace.ɵɵnextContext(2); return ctx_r9.triggerDocumentAction("download", node_r4); })("printAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_printAction_7_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var node_r4 = ctx.$implicit; var ctx_r10 = i0__namespace.ɵɵnextContext(2); return ctx_r10.triggerDocumentAction("print", node_r4); });
18633
+ i0__namespace.ɵɵelementEnd();
18634
+ i0__namespace.ɵɵelementEnd();
18635
+ i0__namespace.ɵɵelementEnd();
18636
+ i0__namespace.ɵɵelementEnd();
18637
+ }
18638
+ if (rf & 2) {
18639
+ var node_r4 = ctx.$implicit;
18640
+ var ctx_r2 = i0__namespace.ɵɵnextContext(2);
18641
+ i0__namespace.ɵɵadvance(1);
18642
+ i0__namespace.ɵɵclassProp("node--selected", (ctx_r2.selectedNodeItem == null ? null : ctx_r2.selectedNodeItem.name) === node_r4.name);
18643
+ i0__namespace.ɵɵadvance(4);
18644
+ i0__namespace.ɵɵtextInterpolate(node_r4.name);
18645
+ i0__namespace.ɵɵadvance(2);
18646
+ i0__namespace.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
18647
+ }
18648
+ }
18649
+ function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template(rf, ctx) {
18650
+ if (rf & 1) {
18651
+ i0__namespace.ɵɵelementStart(0, "cdk-nested-tree-node", 19);
18652
+ i0__namespace.ɵɵelementStart(1, "button", 20);
18653
+ i0__namespace.ɵɵelementStart(2, "div", 21);
18654
+ i0__namespace.ɵɵelement(3, "img", 22);
18655
+ i0__namespace.ɵɵelementStart(4, "span", 23);
18656
+ i0__namespace.ɵɵtext(5);
18657
+ i0__namespace.ɵɵelementEnd();
18658
+ i0__namespace.ɵɵelementEnd();
18659
+ i0__namespace.ɵɵelementStart(6, "span", 24);
18660
+ i0__namespace.ɵɵtext(7);
18661
+ i0__namespace.ɵɵelementEnd();
18662
+ i0__namespace.ɵɵelementEnd();
18663
+ i0__namespace.ɵɵelementStart(8, "div");
18664
+ i0__namespace.ɵɵelementContainer(9, 25);
18665
+ i0__namespace.ɵɵelementEnd();
18666
+ i0__namespace.ɵɵelementEnd();
18667
+ }
18668
+ if (rf & 2) {
18669
+ var node_r11 = ctx.$implicit;
18670
+ var ctx_r3 = i0__namespace.ɵɵnextContext(2);
18671
+ i0__namespace.ɵɵadvance(2);
18672
+ i0__namespace.ɵɵattribute("aria-label", "toggle " + node_r11.name);
18673
+ i0__namespace.ɵɵadvance(1);
18674
+ i0__namespace.ɵɵproperty("src", ctx_r3.nestedTreeControl.isExpanded(node_r11) ? "/assets/images/folder-open.png" : "/assets/images/folder.png", i0__namespace.ɵɵsanitizeUrl);
18675
+ i0__namespace.ɵɵadvance(2);
18676
+ i0__namespace.ɵɵtextInterpolate(node_r11.childDocumentCount);
18677
+ i0__namespace.ɵɵadvance(2);
18678
+ i0__namespace.ɵɵtextInterpolate(node_r11.name);
18679
+ i0__namespace.ɵɵadvance(1);
18680
+ i0__namespace.ɵɵclassProp("document-tree-invisible", !ctx_r3.nestedTreeControl.isExpanded(node_r11));
18681
+ }
18682
+ }
18683
+ function CaseFileViewFolderComponent_div_8_Template(rf, ctx) {
18684
+ if (rf & 1) {
18685
+ i0__namespace.ɵɵelementStart(0, "div", 7);
18686
+ i0__namespace.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
18687
+ i0__namespace.ɵɵelementStart(2, "div");
18688
+ i0__namespace.ɵɵelementStart(3, "cdk-tree", 9);
18689
+ i0__namespace.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 8, 4, "cdk-nested-tree-node", 10);
18690
+ i0__namespace.ɵɵtemplate(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
18691
+ i0__namespace.ɵɵelementEnd();
18692
+ i0__namespace.ɵɵelementEnd();
18693
+ i0__namespace.ɵɵelementEnd();
18694
+ }
18695
+ if (rf & 2) {
18696
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
18697
+ i0__namespace.ɵɵadvance(1);
18698
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r0.nestedDataSource || ctx_r0.nestedDataSource.length === 0);
18699
+ i0__namespace.ɵɵadvance(2);
18700
+ i0__namespace.ɵɵproperty("dataSource", ctx_r0.nestedDataSource)("treeControl", ctx_r0.nestedTreeControl);
18701
+ i0__namespace.ɵɵadvance(2);
18702
+ i0__namespace.ɵɵproperty("cdkTreeNodeDefWhen", ctx_r0.nestedChildren);
18703
+ }
18704
+ }
18705
+ var MEDIA_VIEWER_LOCALSTORAGE_KEY = 'media-viewer-info';
18706
+ var CaseFileViewFolderComponent = /** @class */ (function () {
18707
+ function CaseFileViewFolderComponent(windowService, router, documentManagementService, dialog) {
18708
+ this.windowService = windowService;
18709
+ this.router = router;
18710
+ this.documentManagementService = documentManagementService;
18711
+ this.dialog = dialog;
18712
+ this.clickedDocument = new i0.EventEmitter();
18713
+ this.moveDocument = new i0.EventEmitter();
18714
+ this.categories = [];
18715
+ this.getChildren = function (node) { return rxjs.of(node.children); };
18716
+ this.nestedChildren = function (_, nodeData) { return nodeData.children; };
18717
+ this.nestedTreeControl = new i7.NestedTreeControl(this.getChildren);
18718
+ }
18719
+ Object.defineProperty(CaseFileViewFolderComponent.prototype, "documentCount", {
18720
+ get: function () {
18721
+ var _a;
18722
+ if ((_a = this.nestedDataSource) === null || _a === void 0 ? void 0 : _a.length) {
18723
+ return this.nestedDataSource.reduce(function (acc, item) {
18724
+ return acc + item.childDocumentCount;
18725
+ }, 0);
18726
+ }
18727
+ else {
18728
+ return 0;
18729
+ }
18730
+ },
18731
+ enumerable: false,
18732
+ configurable: true
18733
+ });
18734
+ CaseFileViewFolderComponent.prototype.ngOnInit = function () {
18735
+ var _this = this;
18736
+ this.documentFilterFormGroup = new i2.FormGroup({});
18737
+ this.documentSearchFormControl = new i2.FormControl('');
18738
+ this.documentFilterFormGroup.addControl(CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME, this.documentSearchFormControl);
18739
+ // Listen to search input and initiate filter documents if at least three characters entered
18740
+ this.documentFilterSubscription = this.documentSearchFormControl.valueChanges.pipe(operators.tap(function (searchTerm) { return _this.searchTermLength = searchTerm.length; }), operators.switchMap(function (searchTerm) { return _this.filter(searchTerm.toLowerCase()).pipe(); })).subscribe(function (documentTreeData) {
18741
+ _this.nestedDataSource = documentTreeData;
18742
+ _this.nestedTreeControl.dataNodes = documentTreeData;
18743
+ _this.searchTermLength >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS
18744
+ ? _this.nestedTreeControl.expandAll()
18745
+ : _this.nestedTreeControl.collapseAll();
18746
+ });
18747
+ // Subscribe to the input categories and documents, and generate tree data and initialise cdk tree
18748
+ this.categoriesAndDocumentsSubscription = this.categoriesAndDocuments.subscribe(function (categoriesAndDocuments) {
18749
+ var categories = categoriesAndDocuments.categories;
18750
+ _this.categories = categories;
18751
+ // Generate document tree data from categories
18752
+ _this.documentTreeData = _this.generateTreeData(categories);
18753
+ // Append uncategorised documents
18754
+ if (categoriesAndDocuments.uncategorised_documents && categoriesAndDocuments.uncategorised_documents.length > 0) {
18755
+ var uncategorisedDocuments = _this.getUncategorisedDocuments(categoriesAndDocuments.uncategorised_documents);
18756
+ _this.documentTreeData.push(uncategorisedDocuments);
18757
+ }
18758
+ // Initialise cdk tree with generated data
18759
+ _this.nestedDataSource = _this.documentTreeData;
18760
+ _this.nestedTreeControl.dataNodes = _this.documentTreeData;
18761
+ });
18762
+ };
18763
+ CaseFileViewFolderComponent.prototype.generateTreeData = function (categories) {
18764
+ var _this = this;
18765
+ return categories.reduce(function (tree, node) {
18766
+ var newDocumentTreeNode = new DocumentTreeNode();
18767
+ newDocumentTreeNode.name = node.category_name;
18768
+ newDocumentTreeNode.type = DocumentTreeNodeType.FOLDER;
18769
+ newDocumentTreeNode.children = __spread(_this.generateTreeData(node.sub_categories), _this.getDocuments(node.documents));
18770
+ return __spread(tree, [
18771
+ newDocumentTreeNode,
18772
+ ]);
18773
+ }, []);
18774
+ };
18775
+ CaseFileViewFolderComponent.prototype.getDocuments = function (documents) {
18776
+ var documentsToReturn = [];
18777
+ documents.forEach(function (document) {
18778
+ var documentTreeNode = new DocumentTreeNode();
18779
+ documentTreeNode.name = document.document_filename;
18780
+ documentTreeNode.type = DocumentTreeNodeType.DOCUMENT;
18781
+ documentTreeNode.document_filename = document.document_filename;
18782
+ documentTreeNode.document_binary_url = document.document_binary_url;
18783
+ documentTreeNode.attribute_path = document.attribute_path;
18784
+ documentsToReturn.push(documentTreeNode);
18785
+ });
18786
+ return documentsToReturn;
18787
+ };
18788
+ CaseFileViewFolderComponent.prototype.getUncategorisedDocuments = function (uncategorisedDocuments) {
18789
+ var documents = [];
18790
+ uncategorisedDocuments.forEach(function (document) {
18791
+ var documentTreeNode = new DocumentTreeNode();
18792
+ documentTreeNode.name = document.document_filename;
18793
+ documentTreeNode.type = DocumentTreeNodeType.DOCUMENT;
18794
+ documentTreeNode.document_filename = document.document_filename;
18795
+ documentTreeNode.document_binary_url = document.document_binary_url;
18796
+ documentTreeNode.attribute_path = document.attribute_path;
18797
+ documents.push(documentTreeNode);
18798
+ });
18799
+ var uncategorisedNode = new DocumentTreeNode();
18800
+ uncategorisedNode.name = CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE;
18801
+ uncategorisedNode.type = DocumentTreeNodeType.FOLDER;
18802
+ uncategorisedNode.children = documents;
18803
+ return uncategorisedNode;
18804
+ };
18805
+ CaseFileViewFolderComponent.prototype.filter = function (searchTerm) {
18806
+ // Make a copy of the data so we do not mutate the original
18807
+ function copy(node) {
18808
+ var documentTreeNode = new DocumentTreeNode();
18809
+ return Object.assign(documentTreeNode, node);
18810
+ }
18811
+ var filteredData = this.documentTreeData;
18812
+ if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 2) {
18813
+ filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
18814
+ if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
18815
+ return true;
18816
+ }
18817
+ // Call recursively if node has children
18818
+ if (node.children) {
18819
+ return (node.children = node.children.map(copy).filter(filterTreeData)).length;
18820
+ }
18821
+ });
18822
+ }
18823
+ return rxjs.of(filteredData);
18824
+ };
18825
+ CaseFileViewFolderComponent.prototype.triggerDocumentAction = function (actionType, documentTreeNode) {
18826
+ var _a;
18827
+ switch (actionType) {
18828
+ case ('changeFolder'):
18829
+ this.openMoveDialog(documentTreeNode);
18830
+ break;
18831
+ case ('openInANewTab'):
18832
+ this.windowService.setLocalStorage(MEDIA_VIEWER_LOCALSTORAGE_KEY, this.documentManagementService.getMediaViewerInfo({
18833
+ document_binary_url: documentTreeNode.document_binary_url,
18834
+ document_filename: documentTreeNode.document_filename
18835
+ }));
18836
+ this.windowService.openOnNewTab((_a = this.router.createUrlTree(['/media-viewer'])) === null || _a === void 0 ? void 0 : _a.toString());
18837
+ break;
18838
+ case ('download'):
18839
+ // Create a URL from the document_binary_url property (absolute URL) and use the path portion (relative URL).
18840
+ // This is necessary because the Manage Cases application will automatically apply a proxy to the request, with
18841
+ // the correct remote endpoint
18842
+ this.downloadFile(new URL(documentTreeNode.document_binary_url).pathname, documentTreeNode.document_filename);
18843
+ break;
18844
+ case ('print'):
18845
+ this.printDocument(new URL(documentTreeNode.document_binary_url).pathname);
18846
+ break;
18847
+ default:
18848
+ return;
18849
+ }
18850
+ };
18851
+ CaseFileViewFolderComponent.prototype.sortDataSourceAscAlphabetically = function () {
18852
+ var sortedData = this.nestedDataSource.map(function (item) {
18853
+ item.sortChildrenAscending();
18854
+ return item;
18855
+ });
18856
+ this.updateNodeData(sortedData);
18857
+ };
18858
+ CaseFileViewFolderComponent.prototype.sortDataSourceDescAlphabetically = function () {
18859
+ var sortedData = this.nestedDataSource.map(function (item) {
18860
+ item.sortChildrenDescending();
18861
+ return item;
18862
+ });
18863
+ this.updateNodeData(sortedData);
18864
+ };
18865
+ CaseFileViewFolderComponent.prototype.updateNodeData = function (data) {
18866
+ var _this = this;
18867
+ var prevSelected = this.nestedTreeControl.expansionModel.selected.map(function (item) {
18868
+ return item.name;
18869
+ });
18870
+ this.nestedTreeControl.collapseAll();
18871
+ this.nestedDataSource = data.map(function (item) {
18872
+ var newDocumentTreeNode = new DocumentTreeNode();
18873
+ newDocumentTreeNode.name = item.name;
18874
+ newDocumentTreeNode.type = item.type;
18875
+ newDocumentTreeNode.children = item.children;
18876
+ return newDocumentTreeNode;
18877
+ });
18878
+ var flattenedArray = this.nestedDataSource.map(function (item) {
18879
+ return item.flattenedAll;
18880
+ }).flat();
18881
+ var newObjects = flattenedArray.filter(function (item) {
18882
+ return prevSelected.includes(item.name);
18883
+ });
18884
+ newObjects.forEach(function (object) { return _this.nestedTreeControl.expand(object); });
18885
+ };
18886
+ CaseFileViewFolderComponent.prototype.ngOnDestroy = function () {
18887
+ var _a, _b;
18888
+ (_a = this.categoriesAndDocumentsSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
18889
+ (_b = this.documentFilterSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
18890
+ };
18891
+ CaseFileViewFolderComponent.prototype.openMoveDialog = function (node) {
18892
+ var _this = this;
18893
+ var dialogRef = this.dialog.open(CaseFileViewFolderSelectorComponent, {
18894
+ width: '570px',
18895
+ data: { categories: this.categories, document: node }
18896
+ });
18897
+ dialogRef.afterClosed().subscribe(function (newCatId) {
18898
+ if (newCatId) {
18899
+ _this.moveDocument.emit({ newCategory: newCatId, document: node });
18900
+ }
18901
+ });
18902
+ };
18903
+ CaseFileViewFolderComponent.prototype.printDocument = function (url) {
18904
+ var printWindow = window.open(url);
18905
+ printWindow.print();
18906
+ };
18907
+ CaseFileViewFolderComponent.prototype.downloadFile = function (url, downloadFileName) {
18908
+ var a = document.createElement('a');
18909
+ document.body.appendChild(a);
18910
+ a.setAttribute('style', 'display: none');
18911
+ a.href = url;
18912
+ a.download = downloadFileName;
18913
+ a.click();
18914
+ a.remove();
18915
+ };
18916
+ return CaseFileViewFolderComponent;
18917
+ }());
18918
+ CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
18919
+ CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
18920
+ CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 3;
18921
+ CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog)); };
18922
+ CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, decls: 9, vars: 3, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], [1, "node", 3, "click"], ["disabled", "", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-options"], [3, "allowMoving", "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], [1, "document-tree-container__node", "document-tree-container__folder"], ["cdkTreeNodeToggle", "", 1, "node"], [1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) {
18923
+ if (rf & 1) {
18924
+ i0__namespace.ɵɵelementStart(0, "div", 0);
18925
+ i0__namespace.ɵɵelementStart(1, "div", 1);
18926
+ i0__namespace.ɵɵelement(2, "input", 2);
18927
+ i0__namespace.ɵɵelementEnd();
18928
+ i0__namespace.ɵɵelementEnd();
18929
+ i0__namespace.ɵɵelementStart(3, "div", 3);
18930
+ i0__namespace.ɵɵelementStart(4, "div", 4);
18931
+ i0__namespace.ɵɵtext(5);
18932
+ i0__namespace.ɵɵelementEnd();
18933
+ i0__namespace.ɵɵelementStart(6, "div");
18934
+ i0__namespace.ɵɵelementStart(7, "ccd-case-file-view-folder-sort", 5);
18935
+ i0__namespace.ɵɵlistener("sortAscending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortAscending_7_listener() { return ctx.sortDataSourceAscAlphabetically(); })("sortDescending", function CaseFileViewFolderComponent_Template_ccd_case_file_view_folder_sort_sortDescending_7_listener() { return ctx.sortDataSourceDescAlphabetically(); });
18936
+ i0__namespace.ɵɵelementEnd();
18937
+ i0__namespace.ɵɵelementEnd();
18938
+ i0__namespace.ɵɵelementEnd();
18939
+ i0__namespace.ɵɵtemplate(8, CaseFileViewFolderComponent_div_8_Template, 6, 4, "div", 6);
18940
+ }
18941
+ if (rf & 2) {
18942
+ i0__namespace.ɵɵadvance(1);
18943
+ i0__namespace.ɵɵproperty("formGroup", ctx.documentFilterFormGroup);
18944
+ i0__namespace.ɵɵadvance(4);
18945
+ i0__namespace.ɵɵtextInterpolate1("Documents (", ctx.documentCount, ")");
18946
+ i0__namespace.ɵɵadvance(3);
18947
+ i0__namespace.ɵɵproperty("ngIf", ctx.documentTreeData);
18948
+ }
18949
+ }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, CaseFileViewFolderSortComponent, i1__namespace.NgIf, i7__namespace.CdkTree, i7__namespace.CdkTreeNodeDef, i7__namespace.CdkNestedTreeNode, CaseFileViewFolderDocumentActionsComponent, i7__namespace.CdkTreeNodeToggle, i7__namespace.CdkTreeNodeOutlet], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #c9c9c9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat 100% #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #c9c9c9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:6px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}"] });
18950
+ (function () {
18951
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
18952
+ type: i0.Component,
18953
+ args: [{
18954
+ selector: 'ccd-case-file-view-folder',
18955
+ templateUrl: './case-file-view-folder.component.html',
18956
+ styleUrls: ['./case-file-view-folder.component.scss'],
18957
+ }]
18958
+ }], function () { return [{ type: WindowService }, { type: i1__namespace$1.Router }, { type: DocumentManagementService }, { type: i1__namespace$3.MatDialog }]; }, { categoriesAndDocuments: [{
18959
+ type: i0.Input
18960
+ }], allowMoving: [{
18961
+ type: i0.Input
18962
+ }], clickedDocument: [{
18963
+ type: i0.Output
18964
+ }], moveDocument: [{
18965
+ type: i0.Output
18966
+ }] });
17803
18967
  })();
17804
18968
 
17805
18969
  function CaseFlagTableComponent_table_0_tr_16_Template(rf, ctx) {
@@ -19987,7 +21151,7 @@
19987
21151
  i0__namespace.ɵɵadvance(1);
19988
21152
  i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$m, !!ctx_r0.caseReasonError));
19989
21153
  i0__namespace.ɵɵadvance(1);
19990
- i0__namespace.ɵɵproperty("ngForOf", ctx_r0.linkedCasesService.linkCaseReasons);
21154
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r0.linkCaseReasons);
19991
21155
  i0__namespace.ɵɵadvance(3);
19992
21156
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseSelectionError);
19993
21157
  }
@@ -20098,10 +21262,14 @@
20098
21262
  this.linkedCasesStateEmitter = new i0.EventEmitter();
20099
21263
  this.errorMessages = [];
20100
21264
  this.selectedCases = [];
21265
+ this.linkCaseReasons = [];
20101
21266
  this.ISO_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSS';
20102
21267
  }
20103
21268
  LinkCasesComponent.prototype.ngOnInit = function () {
20104
21269
  this.initForm();
21270
+ this.caseId = this.linkedCasesService.caseId;
21271
+ this.caseName = this.linkedCasesService.caseName;
21272
+ this.linkCaseReasons = this.linkedCasesService.linkCaseReasons;
20105
21273
  if (this.linkedCasesService.editMode) {
20106
21274
  // this may have includes the currently added one but yet to be submitted.
20107
21275
  this.selectedCases = this.linkedCasesService.linkedCases;
@@ -20119,7 +21287,7 @@
20119
21287
  Object.defineProperty(LinkCasesComponent.prototype, "getReasonTypeFormArray", {
20120
21288
  get: function () {
20121
21289
  var _this = this;
20122
- return this.fb.array(this.linkedCasesService.linkCaseReasons.map(function (val) { return _this.fb.group({
21290
+ return this.fb.array(this.linkCaseReasons.map(function (val) { return _this.fb.group({
20123
21291
  key: [val.key],
20124
21292
  value_en: [val.value_en],
20125
21293
  value_cy: [val.value_cy],
@@ -20369,7 +21537,7 @@
20369
21537
  }
20370
21538
  if (rf & 2) {
20371
21539
  i0__namespace.ɵɵadvance(4);
20372
- i0__namespace.ɵɵtextInterpolate2("Link cases to ", ctx.linkedCasesService.caseName, " ", i0__namespace.ɵɵpipeBind1(5, 7, ctx.linkedCasesService.caseId), "");
21540
+ i0__namespace.ɵɵtextInterpolate2("Link cases to ", ctx.caseName, " ", i0__namespace.ɵɵpipeBind1(5, 7, ctx.caseId), "");
20373
21541
  i0__namespace.ɵɵadvance(4);
20374
21542
  i0__namespace.ɵɵproperty("ngIf", ctx.linkCaseForm);
20375
21543
  i0__namespace.ɵɵadvance(4);
@@ -23429,7 +24597,7 @@
23429
24597
  i0__namespace.ɵɵadvance(1);
23430
24598
  i0__namespace.ɵɵproperty("innerHTML", i0__namespace.ɵɵpipeBind1(2, 1, ctx.content), i0__namespace.ɵɵsanitizeHtml);
23431
24599
  }
23432
- }, directives: [i1__namespace$4.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
24600
+ }, directives: [i1__namespace$5.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
23433
24601
  (function () {
23434
24602
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MarkdownComponent, [{
23435
24603
  type: i0.Component,
@@ -23825,6 +24993,14 @@
23825
24993
  WriteFixedRadioListFieldComponent,
23826
24994
  WriteCaseLinkFieldComponent,
23827
24995
  WriteCollectionFieldComponent,
24996
+ // ComponentLauncher web components
24997
+ CaseFileViewFieldComponent,
24998
+ CaseFileViewFieldReadComponent,
24999
+ CaseFileViewFolderComponent,
25000
+ CaseFileViewFolderSortComponent,
25001
+ CaseFileViewOverlayMenuComponent,
25002
+ CaseFileViewFolderDocumentActionsComponent,
25003
+ CaseFileViewFolderSelectorComponent,
23828
25004
  LinkedCasesToTableComponent,
23829
25005
  LinkedCasesFromTableComponent,
23830
25006
  BeforeYouStartComponent,
@@ -23853,7 +25029,7 @@
23853
25029
  WindowService,
23854
25030
  LinkedCasesService,
23855
25031
  CommonDataService,
23856
- JurisdictionService$1,
25032
+ JurisdictionService,
23857
25033
  { provide: i6.MAT_DATE_LOCALE, useValue: 'en-GB' }
23858
25034
  ], imports: [[
23859
25035
  i1.CommonModule,
@@ -23869,7 +25045,7 @@
23869
25045
  FormModule,
23870
25046
  TabsModule,
23871
25047
  LabelSubstitutorModule,
23872
- i1$4.NgxMdModule,
25048
+ i1$5.NgxMdModule,
23873
25049
  i4.NgxMatDatetimePickerModule,
23874
25050
  i4.NgxMatTimepickerModule,
23875
25051
  i4.NgxMatNativeDateModule,
@@ -23877,8 +25053,13 @@
23877
25053
  i3$1.MatInputModule,
23878
25054
  i5$1.MatDatepickerModule,
23879
25055
  i5.MatAutocompleteModule,
25056
+ i7.CdkTreeModule,
25057
+ i1$4.OverlayModule,
23880
25058
  i3.PaymentLibModule,
23881
- i2$1.ScrollToModule.forRoot()
25059
+ i2$1.ScrollToModule.forRoot(),
25060
+ i1$3.MatDialogModule,
25061
+ i12.MediaViewerModule,
25062
+ LoadingModule
23882
25063
  ], i4.NgxMatDatetimePickerModule,
23883
25064
  i4.NgxMatNativeDateModule,
23884
25065
  i4.NgxMatTimepickerModule,
@@ -23970,6 +25151,14 @@
23970
25151
  WriteFixedRadioListFieldComponent,
23971
25152
  WriteCaseLinkFieldComponent,
23972
25153
  WriteCollectionFieldComponent,
25154
+ // ComponentLauncher web components
25155
+ CaseFileViewFieldComponent,
25156
+ CaseFileViewFieldReadComponent,
25157
+ CaseFileViewFolderComponent,
25158
+ CaseFileViewFolderSortComponent,
25159
+ CaseFileViewOverlayMenuComponent,
25160
+ CaseFileViewFolderDocumentActionsComponent,
25161
+ CaseFileViewFolderSelectorComponent,
23973
25162
  LinkedCasesToTableComponent,
23974
25163
  LinkedCasesFromTableComponent,
23975
25164
  BeforeYouStartComponent,
@@ -23990,7 +25179,7 @@
23990
25179
  FormModule,
23991
25180
  TabsModule,
23992
25181
  LabelSubstitutorModule,
23993
- i1$4.NgxMdModule,
25182
+ i1$5.NgxMdModule,
23994
25183
  i4.NgxMatDatetimePickerModule,
23995
25184
  i4.NgxMatTimepickerModule,
23996
25185
  i4.NgxMatNativeDateModule,
@@ -23998,7 +25187,11 @@
23998
25187
  i3$1.MatInputModule,
23999
25188
  i5$1.MatDatepickerModule,
24000
25189
  i5.MatAutocompleteModule,
24001
- i3.PaymentLibModule, i2__namespace$1.ScrollToModule], exports: [i4.NgxMatDatetimePickerModule,
25190
+ i7.CdkTreeModule,
25191
+ i1$4.OverlayModule,
25192
+ i3.PaymentLibModule, i2__namespace$1.ScrollToModule, i1$3.MatDialogModule,
25193
+ i12.MediaViewerModule,
25194
+ LoadingModule], exports: [i4.NgxMatDatetimePickerModule,
24002
25195
  i4.NgxMatNativeDateModule,
24003
25196
  i4.NgxMatTimepickerModule,
24004
25197
  TabsModule,
@@ -24075,6 +25268,14 @@
24075
25268
  WriteFixedRadioListFieldComponent,
24076
25269
  WriteCaseLinkFieldComponent,
24077
25270
  WriteCollectionFieldComponent,
25271
+ // ComponentLauncher web components
25272
+ CaseFileViewFieldComponent,
25273
+ CaseFileViewFieldReadComponent,
25274
+ CaseFileViewFolderComponent,
25275
+ CaseFileViewFolderSortComponent,
25276
+ CaseFileViewOverlayMenuComponent,
25277
+ CaseFileViewFolderDocumentActionsComponent,
25278
+ CaseFileViewFolderSelectorComponent,
24078
25279
  LinkedCasesToTableComponent,
24079
25280
  LinkedCasesFromTableComponent,
24080
25281
  BeforeYouStartComponent,
@@ -24102,7 +25303,7 @@
24102
25303
  FormModule,
24103
25304
  TabsModule,
24104
25305
  LabelSubstitutorModule,
24105
- i1$4.NgxMdModule,
25306
+ i1$5.NgxMdModule,
24106
25307
  i4.NgxMatDatetimePickerModule,
24107
25308
  i4.NgxMatTimepickerModule,
24108
25309
  i4.NgxMatNativeDateModule,
@@ -24110,8 +25311,13 @@
24110
25311
  i3$1.MatInputModule,
24111
25312
  i5$1.MatDatepickerModule,
24112
25313
  i5.MatAutocompleteModule,
25314
+ i7.CdkTreeModule,
25315
+ i1$4.OverlayModule,
24113
25316
  i3.PaymentLibModule,
24114
- i2$1.ScrollToModule.forRoot()
25317
+ i2$1.ScrollToModule.forRoot(),
25318
+ i1$3.MatDialogModule,
25319
+ i12.MediaViewerModule,
25320
+ LoadingModule
24115
25321
  ],
24116
25322
  declarations: __spread([
24117
25323
  FixedListPipe,
@@ -24148,9 +25354,10 @@
24148
25354
  WindowService,
24149
25355
  LinkedCasesService,
24150
25356
  CommonDataService,
24151
- JurisdictionService$1,
25357
+ JurisdictionService,
24152
25358
  { provide: i6.MAT_DATE_LOCALE, useValue: 'en-GB' }
24153
- ]
25359
+ ],
25360
+ entryComponents: [CaseFileViewFolderSelectorComponent]
24154
25361
  }]
24155
25362
  }], null, null);
24156
25363
  })();
@@ -24189,6 +25396,10 @@
24189
25396
  i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1__namespace.NgIf, DatetimePickerComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, WriteDateFieldComponent], []);
24190
25397
  i0__namespace.ɵɵsetComponentScope(WriteCaseLinkFieldComponent, [i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, WriteLinkedCasesComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe]);
24191
25398
  i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
25399
+ i0__namespace.ɵɵsetComponentScope(
25400
+ // ComponentLauncher web components
25401
+ CaseFileViewFieldComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i12__namespace.ɵcs], []);
25402
+ i0__namespace.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i12__namespace.ɵcs], []);
24192
25403
  i0__namespace.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
24193
25404
  i0__namespace.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
24194
25405
  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]);
@@ -25224,7 +26435,7 @@
25224
26435
  i0__namespace.ɵɵadvance(3);
25225
26436
  i0__namespace.ɵɵtextInterpolate(ctx.loadingText);
25226
26437
  }
25227
- }, styles: [".spinner-container{position:fixed;top:0;left:0;height:100%;width:100%;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,100%,.5);z-index:99}.spinner-container .spinner-inner-container p{text-align:center}.spinner-container .spinner-inner-container .spinner{border:10px solid #ddd;border-top-color:#000;border-radius:50%;width:40px;height:40px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"], encapsulation: 2 });
26438
+ }, styles: [".spinner-container{position:fixed;top:0;left:0;height:100%;width:100%;display:flex;justify-content:center;align-items:center;background:hsla(0,0%,100%,.5);z-index:99}.spinner-container .spinner-inner-container p{text-align:center}.spinner-container .spinner-inner-container .spinner{border:10px solid #ddd;border-top-color:#000;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"], encapsulation: 2 });
25228
26439
  (function () {
25229
26440
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LoadingSpinnerComponent, [{
25230
26441
  type: i0.Component,
@@ -26119,7 +27330,7 @@
26119
27330
  i0__namespace.ɵɵadvance(3);
26120
27331
  i0__namespace.ɵɵproperty("ngIf", !(ctx.autoHide && _r0.pages.length <= 1));
26121
27332
  }
26122
- }, directives: [i1__namespace$5.PaginationControlsDirective, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i1__namespace.DecimalPipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%]:before{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{margin-right:.5rem;border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;transform:rotate(-45deg);content:\"\"}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{margin-left:.5rem;border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
27333
+ }, directives: [i1__namespace$6.PaginationControlsDirective, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i1__namespace.DecimalPipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%]:before{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0;display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{margin-right:.5rem;border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before{display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;transform:rotate(-45deg);content:\"\"}.ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{margin-left:.5rem;border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width:601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
26123
27334
  (function () {
26124
27335
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationComponent, [{
26125
27336
  type: i0.Component,
@@ -26526,7 +27737,7 @@
26526
27737
  i0__namespace.ɵɵadvance(2);
26527
27738
  i0__namespace.ɵɵproperty("ngIf", ctx.totalResultsCount > ctx.pageSize);
26528
27739
  }
26529
- }, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$5.PaginatePipe, i1__namespace.CurrencyPipe], styles: [""] });
27740
+ }, directives: [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, i1__namespace.NgSwitchDefault, PaginationComponent], pipes: [i1__namespace$6.PaginatePipe, i1__namespace.CurrencyPipe], styles: [""] });
26530
27741
  (function () {
26531
27742
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseListComponent, [{
26532
27743
  type: i0.Component,
@@ -26586,12 +27797,12 @@
26586
27797
  PaginationModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: PaginationModule });
26587
27798
  PaginationModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
26588
27799
  i1.CommonModule,
26589
- i1$5.NgxPaginationModule
27800
+ i1$6.NgxPaginationModule
26590
27801
  ]] });
26591
27802
  (function () {
26592
27803
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(PaginationModule, { declarations: [PaginationComponent], imports: [i1.CommonModule,
26593
- i1$5.NgxPaginationModule], exports: [PaginationComponent,
26594
- i1$5.PaginatePipe] });
27804
+ i1$6.NgxPaginationModule], exports: [PaginationComponent,
27805
+ i1$6.PaginatePipe] });
26595
27806
  })();
26596
27807
  (function () {
26597
27808
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaginationModule, [{
@@ -26599,14 +27810,14 @@
26599
27810
  args: [{
26600
27811
  imports: [
26601
27812
  i1.CommonModule,
26602
- i1$5.NgxPaginationModule
27813
+ i1$6.NgxPaginationModule
26603
27814
  ],
26604
27815
  declarations: [
26605
27816
  PaginationComponent
26606
27817
  ],
26607
27818
  exports: [
26608
27819
  PaginationComponent,
26609
- i1$5.PaginatePipe
27820
+ i1$6.PaginatePipe
26610
27821
  ],
26611
27822
  }]
26612
27823
  }], null, null);
@@ -26625,14 +27836,14 @@
26625
27836
  i1.CommonModule,
26626
27837
  i2.FormsModule,
26627
27838
  i1$1.RouterModule,
26628
- i1$5.NgxPaginationModule,
27839
+ i1$6.NgxPaginationModule,
26629
27840
  PaginationModule
26630
27841
  ]] });
26631
27842
  (function () {
26632
27843
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(CaseListModule, { declarations: [CaseListComponent], imports: [i1.CommonModule,
26633
27844
  i2.FormsModule,
26634
27845
  i1$1.RouterModule,
26635
- i1$5.NgxPaginationModule,
27846
+ i1$6.NgxPaginationModule,
26636
27847
  PaginationModule], exports: [CaseListComponent] });
26637
27848
  })();
26638
27849
  (function () {
@@ -26643,7 +27854,7 @@
26643
27854
  i1.CommonModule,
26644
27855
  i2.FormsModule,
26645
27856
  i1$1.RouterModule,
26646
- i1$5.NgxPaginationModule,
27857
+ i1$6.NgxPaginationModule,
26647
27858
  PaginationModule
26648
27859
  ],
26649
27860
  declarations: [CaseListComponent],
@@ -27017,7 +28228,7 @@
27017
28228
  WorkbasketFiltersComponent.PARAM_JURISDICTION = 'jurisdiction';
27018
28229
  WorkbasketFiltersComponent.PARAM_CASE_TYPE = 'case-type';
27019
28230
  WorkbasketFiltersComponent.PARAM_CASE_STATE = 'case-state';
27020
- WorkbasketFiltersComponent.ɵfac = function WorkbasketFiltersComponent_Factory(t) { return new (t || WorkbasketFiltersComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(WorkbasketInputFilterService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(JurisdictionService$1), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(WindowService)); };
28231
+ WorkbasketFiltersComponent.ɵfac = function WorkbasketFiltersComponent_Factory(t) { return new (t || WorkbasketFiltersComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(WorkbasketInputFilterService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(JurisdictionService), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(WindowService)); };
27021
28232
  WorkbasketFiltersComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WorkbasketFiltersComponent, selectors: [["ccd-workbasket-filters"]], inputs: { jurisdictions: "jurisdictions", defaults: "defaults" }, outputs: { onApply: "onApply", onReset: "onReset" }, decls: 28, vars: 13, consts: [["aria-label", "Filters", 1, "heading-h2"], [1, "global-display"], [1, "form-group"], ["for", "wb-jurisdiction", 1, "form-label"], ["id", "wb-jurisdiction", "name", "jurisdiction", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModel", "ngModelChange", "change"], [3, "ngValue", 4, "ngIf"], [3, "ngValue", 4, "ngFor", "ngForOf"], ["for", "wb-case-type", 1, "form-label"], ["id", "wb-case-type", "name", "case-type", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModel", "disabled", "ngModelChange", "change"], ["for", "wb-case-state", 1, "form-label"], ["id", "wb-case-state", "name", "state", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModel", "disabled", "ngModelChange"], [3, "ngValue"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields", 4, "ngIf"], ["type", "button", "title", "Apply filter", "aria-label", "Apply filter", 1, "button", "workbasket-filters-apply", 3, "disabled", "click"], ["type", "button", "title", "Reset filter", "aria-label", "Reset filter", 1, "button", "button-secondary", 3, "click"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields"], ["id", "dynamicFilters"], ["class", "form-group", 4, "ngFor", "ngForOf"], [3, "caseField", "formGroup", "isExpanded", "isInSearchBlock", "keyup.enter"]], template: function WorkbasketFiltersComponent_Template(rf, ctx) {
27022
28233
  if (rf & 1) {
27023
28234
  i0__namespace.ɵɵelementStart(0, "h2", 0);
@@ -27101,7 +28312,7 @@
27101
28312
  templateUrl: './workbasket-filters.component.html',
27102
28313
  styleUrls: ['./workbasket-filters.component.scss']
27103
28314
  }]
27104
- }], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: WorkbasketInputFilterService }, { type: OrderService }, { type: JurisdictionService$1 }, { type: AlertService }, { type: WindowService }]; }, { jurisdictions: [{
28315
+ }], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: WorkbasketInputFilterService }, { type: OrderService }, { type: JurisdictionService }, { type: AlertService }, { type: WindowService }]; }, { jurisdictions: [{
27105
28316
  type: i0.Input
27106
28317
  }], defaults: [{
27107
28318
  type: i0.Input
@@ -27122,7 +28333,7 @@
27122
28333
  WorkbasketFiltersModule.ɵinj = i0__namespace.ɵɵdefineInjector({ providers: [
27123
28334
  WorkbasketInputFilterService,
27124
28335
  OrderService,
27125
- JurisdictionService$1,
28336
+ JurisdictionService,
27126
28337
  AlertService,
27127
28338
  WindowService,
27128
28339
  ], imports: [[
@@ -27159,7 +28370,7 @@
27159
28370
  providers: [
27160
28371
  WorkbasketInputFilterService,
27161
28372
  OrderService,
27162
- JurisdictionService$1,
28373
+ JurisdictionService,
27163
28374
  AlertService,
27164
28375
  WindowService,
27165
28376
  ]
@@ -27242,7 +28453,7 @@
27242
28453
  CaseListFiltersModule.ɵinj = i0__namespace.ɵɵdefineInjector({ providers: [
27243
28454
  WorkbasketInputFilterService,
27244
28455
  OrderService,
27245
- JurisdictionService$1,
28456
+ JurisdictionService,
27246
28457
  AlertService,
27247
28458
  WindowService
27248
28459
  ], imports: [[
@@ -27282,7 +28493,7 @@
27282
28493
  providers: [
27283
28494
  WorkbasketInputFilterService,
27284
28495
  OrderService,
27285
- JurisdictionService$1,
28496
+ JurisdictionService,
27286
28497
  AlertService,
27287
28498
  WindowService
27288
28499
  ]
@@ -28713,8 +29924,8 @@
28713
29924
  }
28714
29925
  function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template(rf, ctx) {
28715
29926
  if (rf & 1) {
28716
- i0__namespace.ɵɵelementStart(0, "th", 36);
28717
- i0__namespace.ɵɵelementStart(1, "div", 37);
29927
+ i0__namespace.ɵɵelementStart(0, "th", 37);
29928
+ i0__namespace.ɵɵelementStart(1, "div", 38);
28718
29929
  i0__namespace.ɵɵtext(2);
28719
29930
  i0__namespace.ɵɵelementEnd();
28720
29931
  i0__namespace.ɵɵelementEnd();
@@ -28729,9 +29940,9 @@
28729
29940
  if (rf & 1) {
28730
29941
  i0__namespace.ɵɵelementStart(0, "tr");
28731
29942
  i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template, 3, 1, "th", 33);
28732
- i0__namespace.ɵɵelementStart(2, "td");
28733
- i0__namespace.ɵɵelementStart(3, "span", 34);
28734
- i0__namespace.ɵɵelement(4, "ccd-field-read", 35);
29943
+ i0__namespace.ɵɵelementStart(2, "th", 34);
29944
+ i0__namespace.ɵɵelementStart(3, "span", 35);
29945
+ i0__namespace.ɵɵelement(4, "ccd-field-read", 36);
28735
29946
  i0__namespace.ɵɵelementEnd();
28736
29947
  i0__namespace.ɵɵelementEnd();
28737
29948
  i0__namespace.ɵɵelementEnd();
@@ -28741,16 +29952,18 @@
28741
29952
  var ctx_r25 = i0__namespace.ɵɵnextContext(4);
28742
29953
  i0__namespace.ɵɵadvance(1);
28743
29954
  i0__namespace.ɵɵproperty("ngIf", !ctx_r25.isFieldToHaveNoLabel(field_r24));
28744
- i0__namespace.ɵɵadvance(3);
29955
+ i0__namespace.ɵɵadvance(1);
29956
+ i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
29957
+ i0__namespace.ɵɵadvance(2);
28745
29958
  i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r25.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r25.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r25.markdownUseHrefAsRouterLink);
28746
29959
  }
28747
29960
  }
28748
29961
  function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) {
28749
29962
  if (rf & 1) {
28750
- i0__namespace.ɵɵelementStart(0, "tr", 38);
28751
- i0__namespace.ɵɵelementStart(1, "th", 39);
28752
- i0__namespace.ɵɵelementStart(2, "span", 34);
28753
- i0__namespace.ɵɵelement(3, "ccd-field-read", 35);
29963
+ i0__namespace.ɵɵelementStart(0, "tr", 39);
29964
+ i0__namespace.ɵɵelementStart(1, "th", 34);
29965
+ i0__namespace.ɵɵelementStart(2, "span", 35);
29966
+ i0__namespace.ɵɵelement(3, "ccd-field-read", 36);
28754
29967
  i0__namespace.ɵɵelementEnd();
28755
29968
  i0__namespace.ɵɵelementEnd();
28756
29969
  i0__namespace.ɵɵelementEnd();
@@ -28758,7 +29971,9 @@
28758
29971
  if (rf & 2) {
28759
29972
  var field_r24 = i0__namespace.ɵɵnextContext().$implicit;
28760
29973
  var ctx_r26 = i0__namespace.ɵɵnextContext(4);
28761
- i0__namespace.ɵɵadvance(3);
29974
+ i0__namespace.ɵɵadvance(1);
29975
+ i0__namespace.ɵɵproperty("id", "case-viewer-field-read--" + field_r24.id);
29976
+ i0__namespace.ɵɵadvance(2);
28762
29977
  i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r26.formGroup.controls["data"])("caseField", field_r24)("caseReference", ctx_r26.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r26.markdownUseHrefAsRouterLink);
28763
29978
  }
28764
29979
  }
@@ -28768,8 +29983,8 @@
28768
29983
  i0__namespace.ɵɵelementStart(1, "div", 29);
28769
29984
  i0__namespace.ɵɵelementContainerStart(2, 30);
28770
29985
  i0__namespace.ɵɵpipe(3, "ccdIsCompound");
28771
- i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5, 5, "tr", 31);
28772
- i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4, 4, "tr", 32);
29986
+ i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5, 6, "tr", 31);
29987
+ i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4, 5, "tr", 32);
28773
29988
  i0__namespace.ɵɵelementContainerEnd();
28774
29989
  i0__namespace.ɵɵelementEnd();
28775
29990
  i0__namespace.ɵɵelementContainerEnd();
@@ -29125,12 +30340,14 @@
29125
30340
  return false;
29126
30341
  };
29127
30342
  /**
29128
- * Indicates that a CaseField is to be displayed without a label, as is expected for the FlagLauncher field.
30343
+ * Indicates that a CaseField is to be displayed without a label, as is expected for all ComponentLauncher-type
30344
+ * fields.
29129
30345
  * @param caseField The `CaseField` instance to check
29130
30346
  * @returns `true` if it should not have a label; `false` otherwise
29131
30347
  */
29132
30348
  CaseFullAccessViewComponent.prototype.isFieldToHaveNoLabel = function (caseField) {
29133
- return FieldsUtils.isFlagLauncherCaseField(caseField);
30349
+ return caseField.field_type.type === 'ComponentLauncher'
30350
+ && caseField.display_context_parameter === '#ARGUMENT(CaseFileView)';
29134
30351
  };
29135
30352
  CaseFullAccessViewComponent.prototype.init = function () {
29136
30353
  // Clone and sort tabs array
@@ -29191,7 +30408,7 @@
29191
30408
  var _t = void 0;
29192
30409
  i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
29193
30410
  }
29194
- }, 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", "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"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"], ["scope", "col"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) {
30411
+ }, 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", "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) {
29195
30412
  if (rf & 1) {
29196
30413
  i0__namespace.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
29197
30414
  i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
@@ -32417,7 +33634,7 @@
32417
33634
  };
32418
33635
  return SearchFiltersComponent;
32419
33636
  }());
32420
- SearchFiltersComponent.ɵfac = function SearchFiltersComponent_Factory(t) { return new (t || SearchFiltersComponent)(i0__namespace.ɵɵdirectiveInject(SearchService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(JurisdictionService$1), i0__namespace.ɵɵdirectiveInject(WindowService)); };
33637
+ SearchFiltersComponent.ɵfac = function SearchFiltersComponent_Factory(t) { return new (t || SearchFiltersComponent)(i0__namespace.ɵɵdirectiveInject(SearchService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(JurisdictionService), i0__namespace.ɵɵdirectiveInject(WindowService)); };
32421
33638
  SearchFiltersComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SearchFiltersComponent, selectors: [["ccd-search-filters"]], inputs: { jurisdictions: "jurisdictions", autoApply: "autoApply" }, outputs: { onApply: "onApply", onReset: "onReset", onJurisdiction: "onJurisdiction" }, decls: 19, vars: 7, consts: [["aria-label", "Filters", 1, "heading-h2"], [1, "global-display"], [1, "form-group", 2, "margin-top", "13px"], ["for", "s-jurisdiction", 1, "form-label"], ["id", "s-jurisdiction", "name", "jurisdiction", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "ngModel", "ngModelChange", "change"], [3, "ngValue", 4, "ngFor", "ngForOf"], [1, "form-group"], ["for", "s-case-type", 1, "form-label"], ["id", "s-case-type", "name", "case-type", "aria-controls", "search-result", 1, "form-control", "form-control-3-4", "ccd-dropdown", 3, "disabled", "ngModel", "ngModelChange", "change"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields", 4, "ngIf"], ["type", "button", "title", "Apply filter", "aria-label", "Apply filter", 1, "button", 3, "disabled", "click", "keyup.enter"], ["id", "reset", "type", "button", "title", "Reset filter", "aria-label", "Reset filter", 1, "button", "button-secondary", 3, "click"], [3, "ngValue"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields"], ["id", "dynamicFilters"], ["class", "form-group", 4, "ngFor", "ngForOf"], [3, "caseField", "formGroup", "isExpanded", "keyup.enter"]], template: function SearchFiltersComponent_Template(rf, ctx) {
32422
33639
  if (rf & 1) {
32423
33640
  i0__namespace.ɵɵelementStart(0, "h2", 0);
@@ -32476,7 +33693,7 @@
32476
33693
  selector: 'ccd-search-filters',
32477
33694
  templateUrl: './search-filters.component.html',
32478
33695
  }]
32479
- }], function () { return [{ type: SearchService }, { type: OrderService }, { type: JurisdictionService$1 }, { type: WindowService }]; }, { jurisdictions: [{
33696
+ }], function () { return [{ type: SearchService }, { type: OrderService }, { type: JurisdictionService }, { type: WindowService }]; }, { jurisdictions: [{
32480
33697
  type: i0.Input
32481
33698
  }], autoApply: [{
32482
33699
  type: i0.Input
@@ -32565,7 +33782,7 @@
32565
33782
  SearchFiltersModule.ɵinj = i0__namespace.ɵɵdefineInjector({ providers: [
32566
33783
  SearchService,
32567
33784
  OrderService,
32568
- JurisdictionService$1,
33785
+ JurisdictionService,
32569
33786
  DefinitionsService,
32570
33787
  WindowService
32571
33788
  ], imports: [[
@@ -32604,7 +33821,7 @@
32604
33821
  providers: [
32605
33822
  SearchService,
32606
33823
  OrderService,
32607
- JurisdictionService$1,
33824
+ JurisdictionService,
32608
33825
  DefinitionsService,
32609
33826
  WindowService
32610
33827
  ]
@@ -32697,12 +33914,12 @@
32697
33914
  i0__namespace.ɵɵproperty("checked", ctx_r6.allOnPageSelected())("disabled", !ctx_r6.canAnyBeShared());
32698
33915
  }
32699
33916
  }
32700
- function SearchResultComponent_table_0_th_10_div_3_Template(rf, ctx) {
33917
+ function SearchResultComponent_table_0_th_10_div_6_Template(rf, ctx) {
32701
33918
  if (rf & 1) {
32702
33919
  var _r19_1 = i0__namespace.ɵɵgetCurrentView();
32703
33920
  i0__namespace.ɵɵelementStart(0, "div", 27);
32704
33921
  i0__namespace.ɵɵelementStart(1, "a", 28);
32705
- i0__namespace.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_div_3_Template_a_click_1_listener() { i0__namespace.ɵɵrestoreView(_r19_1); var col_r15 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r17 = i0__namespace.ɵɵnextContext(2); return ctx_r17.sort(col_r15); });
33922
+ i0__namespace.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_div_6_Template_a_click_1_listener() { i0__namespace.ɵɵrestoreView(_r19_1); var col_r15 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r17 = i0__namespace.ɵɵnextContext(2); return ctx_r17.sort(col_r15); });
32706
33923
  i0__namespace.ɵɵelementEnd();
32707
33924
  i0__namespace.ɵɵelementEnd();
32708
33925
  }
@@ -32716,19 +33933,26 @@
32716
33933
  function SearchResultComponent_table_0_th_10_Template(rf, ctx) {
32717
33934
  if (rf & 1) {
32718
33935
  var _r22_1 = i0__namespace.ɵɵgetCurrentView();
32719
- i0__namespace.ɵɵelementStart(0, "th", 24);
32720
- i0__namespace.ɵɵelementStart(1, "div", 25);
32721
- i0__namespace.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_Template_div_click_1_listener() { i0__namespace.ɵɵrestoreView(_r22_1); var col_r15 = ctx.$implicit; var ctx_r21 = i0__namespace.ɵɵnextContext(2); return ctx_r21.sort(col_r15); });
32722
- i0__namespace.ɵɵtext(2);
33936
+ i0__namespace.ɵɵelementStart(0, "th");
33937
+ i0__namespace.ɵɵelementStart(1, "table", 24);
33938
+ i0__namespace.ɵɵelementStart(2, "tr");
33939
+ i0__namespace.ɵɵelementStart(3, "th");
33940
+ i0__namespace.ɵɵelementStart(4, "div", 25);
33941
+ i0__namespace.ɵɵlistener("click", function SearchResultComponent_table_0_th_10_Template_div_click_4_listener() { i0__namespace.ɵɵrestoreView(_r22_1); var col_r15 = ctx.$implicit; var ctx_r21 = i0__namespace.ɵɵnextContext(2); return ctx_r21.sort(col_r15); });
33942
+ i0__namespace.ɵɵtext(5);
33943
+ i0__namespace.ɵɵelementEnd();
33944
+ i0__namespace.ɵɵtemplate(6, SearchResultComponent_table_0_th_10_div_6_Template, 2, 1, "div", 26);
33945
+ i0__namespace.ɵɵelementEnd();
33946
+ i0__namespace.ɵɵelementEnd();
32723
33947
  i0__namespace.ɵɵelementEnd();
32724
- i0__namespace.ɵɵtemplate(3, SearchResultComponent_table_0_th_10_div_3_Template, 2, 1, "div", 26);
32725
33948
  i0__namespace.ɵɵelementEnd();
32726
33949
  }
32727
33950
  if (rf & 2) {
32728
33951
  var col_r15 = ctx.$implicit;
32729
33952
  var ctx_r7 = i0__namespace.ɵɵnextContext(2);
32730
- i0__namespace.ɵɵattributeInterpolate2("aria-label", "Sort by ", col_r15.label, " ", ctx_r7.isSortAscending(col_r15) ? "ascending" : "descending", "");
32731
- i0__namespace.ɵɵadvance(2);
33953
+ i0__namespace.ɵɵadvance(1);
33954
+ i0__namespace.ɵɵattribute("aria-label", "Sort by " + col_r15.label + " " + ctx_r7.isSortAscending(col_r15) ? "ascending" : "descending");
33955
+ i0__namespace.ɵɵadvance(4);
32732
33956
  i0__namespace.ɵɵtextInterpolate(col_r15.label);
32733
33957
  i0__namespace.ɵɵadvance(1);
32734
33958
  i0__namespace.ɵɵproperty("ngIf", ctx_r7.comparator(col_r15));
@@ -32744,10 +33968,10 @@
32744
33968
  var _r30_1 = i0__namespace.ɵɵgetCurrentView();
32745
33969
  i0__namespace.ɵɵelementStart(0, "td", 20);
32746
33970
  i0__namespace.ɵɵelementStart(1, "div", 21);
32747
- i0__namespace.ɵɵelementStart(2, "input", 32);
33971
+ i0__namespace.ɵɵelementStart(2, "input", 31);
32748
33972
  i0__namespace.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_13_tr_1_td_1_Template_input_change_2_listener() { i0__namespace.ɵɵrestoreView(_r30_1); var result_r24 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r28 = i0__namespace.ɵɵnextContext(3); return ctx_r28.changeSelection(result_r24); });
32749
33973
  i0__namespace.ɵɵelementEnd();
32750
- i0__namespace.ɵɵelement(3, "label", 33);
33974
+ i0__namespace.ɵɵelement(3, "label", 32);
32751
33975
  i0__namespace.ɵɵelementEnd();
32752
33976
  i0__namespace.ɵɵelementEnd();
32753
33977
  }
@@ -32765,7 +33989,7 @@
32765
33989
  var _c0 = function () { return ["value"]; };
32766
33990
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) {
32767
33991
  if (rf & 1) {
32768
- i0__namespace.ɵɵelement(0, "ccd-field-read", 42);
33992
+ i0__namespace.ɵɵelement(0, "ccd-field-read", 41);
32769
33993
  }
32770
33994
  if (rf & 2) {
32771
33995
  var col_r32 = i0__namespace.ɵɵnextContext(3).$implicit;
@@ -32786,9 +34010,9 @@
32786
34010
  }
32787
34011
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) {
32788
34012
  if (rf & 1) {
32789
- i0__namespace.ɵɵelementContainerStart(0, 39);
32790
- i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 40);
32791
- i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 41, i0__namespace.ɵɵtemplateRefExtractor);
34013
+ i0__namespace.ɵɵelementContainerStart(0, 38);
34014
+ i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 39);
34015
+ i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 40, i0__namespace.ɵɵtemplateRefExtractor);
32792
34016
  i0__namespace.ɵɵelementContainerEnd();
32793
34017
  }
32794
34018
  if (rf & 2) {
@@ -32802,9 +34026,9 @@
32802
34026
  }
32803
34027
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template(rf, ctx) {
32804
34028
  if (rf & 1) {
32805
- i0__namespace.ɵɵelementStart(0, "a", 37);
34029
+ i0__namespace.ɵɵelementStart(0, "a", 36);
32806
34030
  i0__namespace.ɵɵpipe(1, "ccdCaseReference");
32807
- i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 38);
34031
+ i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 37);
32808
34032
  i0__namespace.ɵɵelementEnd();
32809
34033
  }
32810
34034
  if (rf & 2) {
@@ -32818,8 +34042,8 @@
32818
34042
  }
32819
34043
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template(rf, ctx) {
32820
34044
  if (rf & 1) {
32821
- i0__namespace.ɵɵelementStart(0, "div", 39);
32822
- i0__namespace.ɵɵelement(1, "ccd-field-read", 42);
34045
+ i0__namespace.ɵɵelementStart(0, "div", 38);
34046
+ i0__namespace.ɵɵelement(1, "ccd-field-read", 41);
32823
34047
  i0__namespace.ɵɵelementEnd();
32824
34048
  }
32825
34049
  if (rf & 2) {
@@ -32833,9 +34057,9 @@
32833
34057
  }
32834
34058
  function SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template(rf, ctx) {
32835
34059
  if (rf & 1) {
32836
- i0__namespace.ɵɵelementStart(0, "td", 34);
32837
- i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template, 3, 5, "a", 35);
32838
- i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template, 2, 6, "div", 36);
34060
+ i0__namespace.ɵɵelementStart(0, "td", 33);
34061
+ i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_a_1_Template, 3, 5, "a", 34);
34062
+ i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_div_2_Template, 2, 6, "div", 35);
32839
34063
  i0__namespace.ɵɵelementEnd();
32840
34064
  }
32841
34065
  if (rf & 2) {
@@ -32850,7 +34074,7 @@
32850
34074
  if (rf & 1) {
32851
34075
  i0__namespace.ɵɵelementStart(0, "td");
32852
34076
  i0__namespace.ɵɵelementStart(1, "div");
32853
- i0__namespace.ɵɵelement(2, "ccd-activity", 43);
34077
+ i0__namespace.ɵɵelement(2, "ccd-activity", 42);
32854
34078
  i0__namespace.ɵɵelementEnd();
32855
34079
  i0__namespace.ɵɵelementEnd();
32856
34080
  }
@@ -32867,7 +34091,7 @@
32867
34091
  if (rf & 1) {
32868
34092
  i0__namespace.ɵɵelementStart(0, "tr");
32869
34093
  i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_td_1_Template, 4, 5, "td", 8);
32870
- i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template, 3, 2, "td", 31);
34094
+ i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_13_tr_1_td_2_Template, 3, 2, "td", 30);
32871
34095
  i0__namespace.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_13_tr_1_td_3_Template, 3, 4, "td", 0);
32872
34096
  i0__namespace.ɵɵelementEnd();
32873
34097
  }
@@ -32885,7 +34109,7 @@
32885
34109
  function SearchResultComponent_table_0_ng_container_13_Template(rf, ctx) {
32886
34110
  if (rf & 1) {
32887
34111
  i0__namespace.ɵɵelementContainerStart(0);
32888
- i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_Template, 4, 3, "tr", 30);
34112
+ i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_13_tr_1_Template, 4, 3, "tr", 9);
32889
34113
  i0__namespace.ɵɵpipe(2, "paginate");
32890
34114
  i0__namespace.ɵɵelementContainerEnd();
32891
34115
  }
@@ -32900,10 +34124,10 @@
32900
34124
  var _r56_1 = i0__namespace.ɵɵgetCurrentView();
32901
34125
  i0__namespace.ɵɵelementStart(0, "td", 20);
32902
34126
  i0__namespace.ɵɵelementStart(1, "div", 21);
32903
- i0__namespace.ɵɵelementStart(2, "input", 44);
34127
+ i0__namespace.ɵɵelementStart(2, "input", 43);
32904
34128
  i0__namespace.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template_input_change_2_listener() { i0__namespace.ɵɵrestoreView(_r56_1); var result_r50 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r54 = i0__namespace.ɵɵnextContext(3); return ctx_r54.changeSelection(result_r50); })("keyup", function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template_input_keyup_2_listener($event) { i0__namespace.ɵɵrestoreView(_r56_1); var result_r50 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r57 = i0__namespace.ɵɵnextContext(3); return ctx_r57.onKeyUp($event, result_r50); });
32905
34129
  i0__namespace.ɵɵelementEnd();
32906
- i0__namespace.ɵɵelement(3, "label", 33);
34130
+ i0__namespace.ɵɵelement(3, "label", 32);
32907
34131
  i0__namespace.ɵɵelementEnd();
32908
34132
  i0__namespace.ɵɵelementEnd();
32909
34133
  }
@@ -32920,7 +34144,7 @@
32920
34144
  }
32921
34145
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) {
32922
34146
  if (rf & 1) {
32923
- i0__namespace.ɵɵelement(0, "ccd-field-read", 42);
34147
+ i0__namespace.ɵɵelement(0, "ccd-field-read", 41);
32924
34148
  }
32925
34149
  if (rf & 2) {
32926
34150
  var col_r60 = i0__namespace.ɵɵnextContext(3).$implicit;
@@ -32941,9 +34165,9 @@
32941
34165
  }
32942
34166
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) {
32943
34167
  if (rf & 1) {
32944
- i0__namespace.ɵɵelementContainerStart(0, 39);
32945
- i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 40);
32946
- i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 41, i0__namespace.ɵɵtemplateRefExtractor);
34168
+ i0__namespace.ɵɵelementContainerStart(0, 38);
34169
+ i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 39);
34170
+ i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 40, i0__namespace.ɵɵtemplateRefExtractor);
32947
34171
  i0__namespace.ɵɵelementContainerEnd();
32948
34172
  }
32949
34173
  if (rf & 2) {
@@ -32957,9 +34181,9 @@
32957
34181
  }
32958
34182
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf, ctx) {
32959
34183
  if (rf & 1) {
32960
- i0__namespace.ɵɵelementStart(0, "a", 37);
34184
+ i0__namespace.ɵɵelementStart(0, "a", 36);
32961
34185
  i0__namespace.ɵɵpipe(1, "ccdCaseReference");
32962
- i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 38);
34186
+ i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 37);
32963
34187
  i0__namespace.ɵɵelementEnd();
32964
34188
  }
32965
34189
  if (rf & 2) {
@@ -32973,8 +34197,8 @@
32973
34197
  }
32974
34198
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(rf, ctx) {
32975
34199
  if (rf & 1) {
32976
- i0__namespace.ɵɵelementStart(0, "div", 39);
32977
- i0__namespace.ɵɵelement(1, "ccd-field-read", 42);
34200
+ i0__namespace.ɵɵelementStart(0, "div", 38);
34201
+ i0__namespace.ɵɵelement(1, "ccd-field-read", 41);
32978
34202
  i0__namespace.ɵɵelementEnd();
32979
34203
  }
32980
34204
  if (rf & 2) {
@@ -32988,9 +34212,9 @@
32988
34212
  }
32989
34213
  function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ctx) {
32990
34214
  if (rf & 1) {
32991
- i0__namespace.ɵɵelementStart(0, "td", 34);
32992
- i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 5, "a", 35);
32993
- i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 36);
34215
+ i0__namespace.ɵɵelementStart(0, "td", 33);
34216
+ i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 5, "a", 34);
34217
+ i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 35);
32994
34218
  i0__namespace.ɵɵelementEnd();
32995
34219
  }
32996
34220
  if (rf & 2) {
@@ -33005,7 +34229,7 @@
33005
34229
  if (rf & 1) {
33006
34230
  i0__namespace.ɵɵelementStart(0, "td");
33007
34231
  i0__namespace.ɵɵelementStart(1, "div");
33008
- i0__namespace.ɵɵelement(2, "ccd-activity", 43);
34232
+ i0__namespace.ɵɵelement(2, "ccd-activity", 42);
33009
34233
  i0__namespace.ɵɵelementEnd();
33010
34234
  i0__namespace.ɵɵelementEnd();
33011
34235
  }
@@ -33022,7 +34246,7 @@
33022
34246
  if (rf & 1) {
33023
34247
  i0__namespace.ɵɵelementStart(0, "tr");
33024
34248
  i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template, 4, 5, "td", 8);
33025
- i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 31);
34249
+ i0__namespace.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 30);
33026
34250
  i0__namespace.ɵɵtemplate(3, SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template, 3, 4, "td", 0);
33027
34251
  i0__namespace.ɵɵelementEnd();
33028
34252
  }
@@ -33039,7 +34263,7 @@
33039
34263
  function SearchResultComponent_table_0_ng_container_14_Template(rf, ctx) {
33040
34264
  if (rf & 1) {
33041
34265
  i0__namespace.ɵɵelementContainerStart(0);
33042
- i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr", 30);
34266
+ i0__namespace.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_Template, 4, 3, "tr", 9);
33043
34267
  i0__namespace.ɵɵpipe(2, "paginate");
33044
34268
  i0__namespace.ɵɵpipe(3, "ccdSortSearchResult");
33045
34269
  i0__namespace.ɵɵelementContainerEnd();
@@ -33064,7 +34288,7 @@
33064
34288
  i0__namespace.ɵɵelementStart(7, "thead");
33065
34289
  i0__namespace.ɵɵelementStart(8, "tr", 7);
33066
34290
  i0__namespace.ɵɵtemplate(9, SearchResultComponent_table_0_th_9_Template, 4, 2, "th", 8);
33067
- i0__namespace.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 4, 4, "th", 9);
34291
+ i0__namespace.ɵɵtemplate(10, SearchResultComponent_table_0_th_10_Template, 7, 3, "th", 9);
33068
34292
  i0__namespace.ɵɵtemplate(11, SearchResultComponent_table_0_th_11_Template, 1, 0, "th", 10);
33069
34293
  i0__namespace.ɵɵelementEnd();
33070
34294
  i0__namespace.ɵɵelementEnd();
@@ -33099,7 +34323,7 @@
33099
34323
  function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) {
33100
34324
  if (rf & 1) {
33101
34325
  var _r78_1 = i0__namespace.ɵɵgetCurrentView();
33102
- i0__namespace.ɵɵelementStart(0, "ccd-pagination", 45);
34326
+ i0__namespace.ɵɵelementStart(0, "ccd-pagination", 44);
33103
34327
  i0__namespace.ɵɵlistener("pageChange", function SearchResultComponent_ccd_pagination_1_Template_ccd_pagination_pageChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r78_1); var ctx_r77 = i0__namespace.ɵɵnextContext(); return ctx_r77.goToPage($event); });
33104
34328
  i0__namespace.ɵɵelementEnd();
33105
34329
  }
@@ -33110,7 +34334,7 @@
33110
34334
  }
33111
34335
  function SearchResultComponent_div_2_Template(rf, ctx) {
33112
34336
  if (rf & 1) {
33113
- i0__namespace.ɵɵelementStart(0, "div", 46);
34337
+ i0__namespace.ɵɵelementStart(0, "div", 45);
33114
34338
  i0__namespace.ɵɵtext(1, " No cases found. Try using different filters.\n");
33115
34339
  i0__namespace.ɵɵelementEnd();
33116
34340
  }
@@ -33472,7 +34696,7 @@
33472
34696
  SearchResultComponent.PARAM_CASE_TYPE = 'case-type';
33473
34697
  SearchResultComponent.PARAM_CASE_STATE = 'case-state';
33474
34698
  SearchResultComponent.ɵfac = function SearchResultComponent_Factory(t) { return new (t || SearchResultComponent)(i0__namespace.ɵɵdirectiveInject(SearchResultViewItemComparatorFactory), i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(ActivityService), i0__namespace.ɵɵdirectiveInject(CaseReferencePipe), i0__namespace.ɵɵdirectiveInject(exports.PlaceholderService), i0__namespace.ɵɵdirectiveInject(BrowserService), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
33475
- SearchResultComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [[4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", "aria-label", "No cases found. Try using different filters.", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", "role", "status", 4, "ngIf"], ["class", "reset-selection", "attr.aria-label", "Reset selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], ["class", "search-result-column-header", 4, "ngFor", "ngForOf"], ["style", "width: 110px;", 4, "ngIf"], [1, "govuk-warning-text", "pagination-limit-warning"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["role", "status", 1, "pagination-top"], ["id", "search-result-summary__text", 1, "text-16"], [1, "govuk-!-font-weight-bold"], ["attr.aria-label", "Reset selection", 1, "reset-selection"], ["href", "javascript:void(0)", 1, "search-result-reset-link", 3, "click"], ["scope", "col", 1, "govuk-table__checkbox"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "checked", "disabled", "change"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], [1, "search-result-column-header"], [1, "search-result-column-label", 3, "click"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "innerHTML", "click"], [2, "width", "110px"], [4, "ngFor", "ngForOf"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["scope", "row", 1, "search-result-column-cell"], ["class", "govuk-link", 3, "routerLink", 4, "ngIf"], ["class", "text-16", 3, "visibility", 4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["class", "text-16", 4, "ngIf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute", 4, "ngIf", "ngIfElse"], ["case_reference", ""], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change", "keyup"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange"], ["aria-label", "No cases found. Try using different filters.", 1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) {
34699
+ SearchResultComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [[4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", "aria-label", "No cases found. Try using different filters.", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", "role", "status", 4, "ngIf"], ["class", "reset-selection", "attr.aria-label", "Reset selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], [4, "ngFor", "ngForOf"], ["style", "width: 110px;", 4, "ngIf"], [1, "govuk-warning-text", "pagination-limit-warning"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["role", "status", 1, "pagination-top"], ["id", "search-result-summary__text", 1, "text-16"], [1, "govuk-!-font-weight-bold"], ["attr.aria-label", "Reset selection", 1, "reset-selection"], ["href", "javascript:void(0)", 1, "search-result-reset-link", 3, "click"], ["scope", "col", 1, "govuk-table__checkbox"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "checked", "disabled", "change"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], [1, "search-result-column-header"], [1, "search-result-column-label", 3, "click"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "innerHTML", "click"], [2, "width", "110px"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["scope", "row", 1, "search-result-column-cell"], ["class", "govuk-link", 3, "routerLink", 4, "ngIf"], ["class", "text-16", 3, "visibility", 4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["class", "text-16", 4, "ngIf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute", 4, "ngIf", "ngIfElse"], ["case_reference", ""], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "checked", "disabled", "change", "keyup"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange"], ["aria-label", "No cases found. Try using different filters.", 1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) {
33476
34700
  if (rf & 1) {
33477
34701
  i0__namespace.ɵɵtemplate(0, SearchResultComponent_table_0_Template, 15, 9, "table", 0);
33478
34702
  i0__namespace.ɵɵtemplate(1, SearchResultComponent_ccd_pagination_1_Template, 1, 6, "ccd-pagination", 1);
@@ -33543,7 +34767,7 @@
33543
34767
  BrowserService
33544
34768
  ], imports: [[
33545
34769
  i1.CommonModule,
33546
- i1$5.NgxPaginationModule,
34770
+ i1$6.NgxPaginationModule,
33547
34771
  i1$1.RouterModule,
33548
34772
  i2.FormsModule,
33549
34773
  i2.ReactiveFormsModule,
@@ -33555,7 +34779,7 @@
33555
34779
  ]] });
33556
34780
  (function () {
33557
34781
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(SearchResultModule, { declarations: [SearchResultComponent], imports: [i1.CommonModule,
33558
- i1$5.NgxPaginationModule,
34782
+ i1$6.NgxPaginationModule,
33559
34783
  i1$1.RouterModule,
33560
34784
  i2.FormsModule,
33561
34785
  i2.ReactiveFormsModule,
@@ -33571,7 +34795,7 @@
33571
34795
  args: [{
33572
34796
  imports: [
33573
34797
  i1.CommonModule,
33574
- i1$5.NgxPaginationModule,
34798
+ i1$6.NgxPaginationModule,
33575
34799
  i1$1.RouterModule,
33576
34800
  i2.FormsModule,
33577
34801
  i2.ReactiveFormsModule,
@@ -33594,7 +34818,7 @@
33594
34818
  }]
33595
34819
  }], null, null);
33596
34820
  })();
33597
- i0__namespace.ɵɵsetComponentScope(SearchResultComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1__namespace.DecimalPipe, i1__namespace$5.PaginatePipe, CaseReferencePipe, SortSearchResultPipe]);
34821
+ i0__namespace.ɵɵsetComponentScope(SearchResultComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace$1.RouterLinkWithHref, FieldReadComponent, LabelSubstitutorDirective, ActivityComponent, PaginationComponent], [i1__namespace.DecimalPipe, i1__namespace$6.PaginatePipe, CaseReferencePipe, SortSearchResultPipe]);
33598
34822
 
33599
34823
  var ComplexFieldOverride = /** @class */ (function () {
33600
34824
  function ComplexFieldOverride() {
@@ -33903,6 +35127,14 @@
33903
35127
  exports.CaseEventTriggerComponent = CaseEventTriggerComponent;
33904
35128
  exports.CaseField = CaseField;
33905
35129
  exports.CaseFieldService = CaseFieldService;
35130
+ exports.CaseFileViewFieldComponent = CaseFileViewFieldComponent;
35131
+ exports.CaseFileViewFieldReadComponent = CaseFileViewFieldReadComponent;
35132
+ exports.CaseFileViewFolderComponent = CaseFileViewFolderComponent;
35133
+ exports.CaseFileViewFolderDocumentActionsComponent = CaseFileViewFolderDocumentActionsComponent;
35134
+ exports.CaseFileViewFolderSelectorComponent = CaseFileViewFolderSelectorComponent;
35135
+ exports.CaseFileViewFolderSortComponent = CaseFileViewFolderSortComponent;
35136
+ exports.CaseFileViewOverlayMenuComponent = CaseFileViewOverlayMenuComponent;
35137
+ exports.CaseFileViewService = CaseFileViewService;
33906
35138
  exports.CaseFlagRefdataService = CaseFlagRefdataService;
33907
35139
  exports.CaseFlagSummaryListComponent = CaseFlagSummaryListComponent;
33908
35140
  exports.CaseFlagTableComponent = CaseFlagTableComponent;
@@ -34028,7 +35260,7 @@
34028
35260
  exports.IsReadOnlyPipe = IsReadOnlyPipe;
34029
35261
  exports.JudicialworkerService = JudicialworkerService;
34030
35262
  exports.Jurisdiction = Jurisdiction;
34031
- exports.JurisdictionService = JurisdictionService$1;
35263
+ exports.JurisdictionService = JurisdictionService;
34032
35264
  exports.LabelFieldComponent = LabelFieldComponent;
34033
35265
  exports.LabelSubstitutorDirective = LabelSubstitutorDirective;
34034
35266
  exports.LabelSubstitutorModule = LabelSubstitutorModule;
@@ -34044,6 +35276,7 @@
34044
35276
  exports.LoadingService = LoadingService;
34045
35277
  exports.LoadingSpinnerComponent = LoadingSpinnerComponent;
34046
35278
  exports.LoadingSpinnerModule = LoadingSpinnerModule;
35279
+ exports.MEDIA_VIEWER_LOCALSTORAGE_KEY = MEDIA_VIEWER_LOCALSTORAGE_KEY;
34047
35280
  exports.MULTIPLE_TASKS_FOUND = MULTIPLE_TASKS_FOUND;
34048
35281
  exports.ManageCaseFlagsComponent = ManageCaseFlagsComponent;
34049
35282
  exports.MarkdownComponent = MarkdownComponent;