@hmcts/ccd-case-ui-toolkit 7.0.0-NodeAndNgUpgrades.1 → 7.0.0-NodeAndNgUpgrades.2-material-legacy

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 (178) hide show
  1. package/esm2020/lib/shared/commons/case-edit-data/case-edit-data.service.mjs +1 -1
  2. package/esm2020/lib/shared/components/case-editor/case-edit/case-edit.component.mjs +8 -8
  3. package/esm2020/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.mjs +1 -1
  4. package/esm2020/lib/shared/components/case-editor/case-edit-form/case-edit-form.component.mjs +2 -2
  5. package/esm2020/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.mjs +5 -5
  6. package/esm2020/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +1 -1
  7. package/esm2020/lib/shared/components/case-editor/case-editor.module.mjs +13 -13
  8. package/esm2020/lib/shared/components/case-editor/services/case.notifier.mjs +1 -8
  9. package/esm2020/lib/shared/components/case-editor/services/page-validation.service.mjs +1 -1
  10. package/esm2020/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.mjs +1 -1
  11. package/esm2020/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.mjs +10 -10
  12. package/esm2020/lib/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.mjs +1 -1
  13. package/esm2020/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.mjs +1 -1
  14. package/esm2020/lib/shared/components/case-viewer/case-viewer.module.mjs +4 -4
  15. package/esm2020/lib/shared/components/create-case-filters/create-case-filters.component.mjs +15 -10
  16. package/esm2020/lib/shared/components/dialogs/delete-or-cancel-dialog/delete-or-cancel-dialog.component.mjs +5 -5
  17. package/esm2020/lib/shared/components/dialogs/document-dialog/document-dialog.component.mjs +5 -5
  18. package/esm2020/lib/shared/components/dialogs/remove-dialog/remove-dialog.component.mjs +5 -5
  19. package/esm2020/lib/shared/components/dialogs/save-or-discard-dialog/save-or-discard-dialog.component.mjs +5 -5
  20. package/esm2020/lib/shared/components/event-trigger/event-trigger.component.mjs +1 -1
  21. package/esm2020/lib/shared/components/palette/address/write-address-field.component.mjs +3 -3
  22. package/esm2020/lib/shared/components/palette/base-field/abstract-field-read.component.mjs +1 -1
  23. package/esm2020/lib/shared/components/palette/base-field/abstract-form-field.component.mjs +2 -2
  24. package/esm2020/lib/shared/components/palette/base-field/field-read.component.mjs +4 -4
  25. package/esm2020/lib/shared/components/palette/base-field/field-write.component.mjs +2 -2
  26. package/esm2020/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.mjs +7 -7
  27. package/esm2020/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.mjs +6 -6
  28. package/esm2020/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.mjs +2 -2
  29. package/esm2020/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.mjs +2 -2
  30. package/esm2020/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.mjs +6 -6
  31. package/esm2020/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.mjs +2 -2
  32. package/esm2020/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.mjs +2 -2
  33. package/esm2020/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.mjs +2 -2
  34. package/esm2020/lib/shared/components/palette/case-flag/domain/case-flag.model.mjs +1 -1
  35. package/esm2020/lib/shared/components/palette/case-flag/read-case-flag-field.component.mjs +3 -3
  36. package/esm2020/lib/shared/components/palette/case-flag/write-case-flag-field.component.mjs +22 -22
  37. package/esm2020/lib/shared/components/palette/case-link/write-case-link-field.component.mjs +4 -4
  38. package/esm2020/lib/shared/components/palette/collection/write-collection-field.component.mjs +13 -12
  39. package/esm2020/lib/shared/components/palette/complex/write-complex-field.component.mjs +3 -3
  40. package/esm2020/lib/shared/components/palette/datetime-picker/datetime-picker.component.mjs +6 -6
  41. package/esm2020/lib/shared/components/palette/document/write-document-field.component.mjs +44 -25
  42. package/esm2020/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.mjs +19 -5
  43. package/esm2020/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.mjs +1 -1
  44. package/esm2020/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.mjs +1 -1
  45. package/esm2020/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.mjs +3 -3
  46. package/esm2020/lib/shared/components/palette/order-summary/write-order-summary-field.component.mjs +5 -5
  47. package/esm2020/lib/shared/components/palette/organisation/write-organisation-field.component.mjs +3 -3
  48. package/esm2020/lib/shared/components/palette/palette.module.mjs +10 -11
  49. package/esm2020/lib/shared/components/search-filters/search-filters.component.mjs +4 -4
  50. package/esm2020/lib/shared/components/search-result/search-result.component.mjs +2 -2
  51. package/esm2020/lib/shared/components/workbasket-filters/workbasket-filters.component.mjs +15 -4
  52. package/esm2020/lib/shared/directives/conditional-show/conditional-show-form.directive.mjs +4 -4
  53. package/esm2020/lib/shared/directives/substitutor/label-substitutor.directive.mjs +3 -3
  54. package/esm2020/lib/shared/domain/case-edit/case-edit.model.mjs +1 -1
  55. package/esm2020/lib/shared/domain/definition/jurisdiction.model.mjs +1 -1
  56. package/esm2020/lib/shared/pipes/complex/ccd-page-fields.pipe.mjs +1 -1
  57. package/esm2020/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.mjs +1 -1
  58. package/esm2020/lib/shared/services/fields/fields.purger.mjs +9 -9
  59. package/esm2020/lib/shared/services/fields/fields.utils.mjs +6 -6
  60. package/esm2020/lib/shared/services/form/form-error.service.mjs +1 -1
  61. package/esm2020/lib/shared/services/jurisdiction/jurisdiction.service.mjs +5 -2
  62. package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +211 -168
  63. package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
  64. package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +209 -168
  65. package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
  66. package/lib/shared/commons/case-edit-data/case-edit-data.service.d.ts +3 -3
  67. package/lib/shared/commons/case-edit-data/case-edit-data.service.d.ts.map +1 -1
  68. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts +5 -5
  69. package/lib/shared/components/case-editor/case-edit/case-edit.component.d.ts.map +1 -1
  70. package/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.d.ts +2 -2
  71. package/lib/shared/components/case-editor/case-edit-confirm/case-edit-confirm.component.d.ts.map +1 -1
  72. package/lib/shared/components/case-editor/case-edit-form/case-edit-form.component.d.ts +2 -2
  73. package/lib/shared/components/case-editor/case-edit-form/case-edit-form.component.d.ts.map +1 -1
  74. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +4 -4
  75. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  76. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +2 -2
  77. package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
  78. package/lib/shared/components/case-editor/case-editor.module.d.ts +8 -8
  79. package/lib/shared/components/case-editor/services/case.notifier.d.ts.map +1 -1
  80. package/lib/shared/components/case-editor/services/page-validation.service.d.ts +3 -3
  81. package/lib/shared/components/case-editor/services/page-validation.service.d.ts.map +1 -1
  82. package/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.d.ts +2 -2
  83. package/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.d.ts.map +1 -1
  84. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +6 -6
  85. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
  86. package/lib/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.d.ts +2 -2
  87. package/lib/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.d.ts.map +1 -1
  88. package/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.d.ts +2 -2
  89. package/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.d.ts.map +1 -1
  90. package/lib/shared/components/case-viewer/case-viewer.module.d.ts +2 -2
  91. package/lib/shared/components/create-case-filters/create-case-filters.component.d.ts +6 -4
  92. package/lib/shared/components/create-case-filters/create-case-filters.component.d.ts.map +1 -1
  93. package/lib/shared/components/dialogs/delete-or-cancel-dialog/delete-or-cancel-dialog.component.d.ts +1 -1
  94. package/lib/shared/components/dialogs/delete-or-cancel-dialog/delete-or-cancel-dialog.component.d.ts.map +1 -1
  95. package/lib/shared/components/dialogs/document-dialog/document-dialog.component.d.ts +1 -1
  96. package/lib/shared/components/dialogs/document-dialog/document-dialog.component.d.ts.map +1 -1
  97. package/lib/shared/components/dialogs/remove-dialog/remove-dialog.component.d.ts +1 -1
  98. package/lib/shared/components/dialogs/remove-dialog/remove-dialog.component.d.ts.map +1 -1
  99. package/lib/shared/components/dialogs/save-or-discard-dialog/save-or-discard-dialog.component.d.ts +1 -1
  100. package/lib/shared/components/dialogs/save-or-discard-dialog/save-or-discard-dialog.component.d.ts.map +1 -1
  101. package/lib/shared/components/event-trigger/event-trigger.component.d.ts +2 -2
  102. package/lib/shared/components/event-trigger/event-trigger.component.d.ts.map +1 -1
  103. package/lib/shared/components/palette/address/write-address-field.component.d.ts +3 -3
  104. package/lib/shared/components/palette/address/write-address-field.component.d.ts.map +1 -1
  105. package/lib/shared/components/palette/base-field/abstract-field-read.component.d.ts +2 -2
  106. package/lib/shared/components/palette/base-field/abstract-field-read.component.d.ts.map +1 -1
  107. package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts +3 -3
  108. package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts.map +1 -1
  109. package/lib/shared/components/palette/base-field/field-read.component.d.ts +2 -2
  110. package/lib/shared/components/palette/base-field/field-read.component.d.ts.map +1 -1
  111. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts +3 -3
  112. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
  113. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.d.ts +1 -1
  114. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.d.ts.map +1 -1
  115. package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts +2 -2
  116. package/lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.d.ts.map +1 -1
  117. package/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.d.ts +2 -2
  118. package/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.d.ts.map +1 -1
  119. package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.d.ts +2 -2
  120. package/lib/shared/components/palette/case-flag/components/search-language-interpreter/search-language-interpreter.component.d.ts.map +1 -1
  121. package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts +2 -2
  122. package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
  123. package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts +2 -2
  124. package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts.map +1 -1
  125. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts +2 -2
  126. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts.map +1 -1
  127. package/lib/shared/components/palette/case-flag/domain/case-flag.model.d.ts +2 -2
  128. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts +6 -6
  129. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
  130. package/lib/shared/components/palette/case-link/write-case-link-field.component.d.ts +2 -2
  131. package/lib/shared/components/palette/case-link/write-case-link-field.component.d.ts.map +1 -1
  132. package/lib/shared/components/palette/collection/write-collection-field.component.d.ts +4 -4
  133. package/lib/shared/components/palette/collection/write-collection-field.component.d.ts.map +1 -1
  134. package/lib/shared/components/palette/complex/write-complex-field.component.d.ts +3 -3
  135. package/lib/shared/components/palette/complex/write-complex-field.component.d.ts.map +1 -1
  136. package/lib/shared/components/palette/datetime-picker/datetime-picker.component.d.ts +1 -1
  137. package/lib/shared/components/palette/datetime-picker/datetime-picker.component.d.ts.map +1 -1
  138. package/lib/shared/components/palette/document/write-document-field.component.d.ts +9 -5
  139. package/lib/shared/components/palette/document/write-document-field.component.d.ts.map +1 -1
  140. package/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.d.ts +5 -3
  141. package/lib/shared/components/palette/judicial-user/write-judicial-user-field.component.d.ts.map +1 -1
  142. package/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.d.ts +2 -2
  143. package/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.d.ts.map +1 -1
  144. package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts +2 -2
  145. package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts.map +1 -1
  146. package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts +2 -2
  147. package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
  148. package/lib/shared/components/palette/organisation/write-organisation-field.component.d.ts +2 -2
  149. package/lib/shared/components/palette/organisation/write-organisation-field.component.d.ts.map +1 -1
  150. package/lib/shared/components/palette/palette.module.d.ts +5 -5
  151. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  152. package/lib/shared/components/search-filters/search-filters.component.d.ts +3 -3
  153. package/lib/shared/components/search-filters/search-filters.component.d.ts.map +1 -1
  154. package/lib/shared/components/search-result/search-result.component.d.ts +3 -3
  155. package/lib/shared/components/search-result/search-result.component.d.ts.map +1 -1
  156. package/lib/shared/components/workbasket-filters/workbasket-filters.component.d.ts +4 -4
  157. package/lib/shared/components/workbasket-filters/workbasket-filters.component.d.ts.map +1 -1
  158. package/lib/shared/directives/conditional-show/conditional-show-form.directive.d.ts +2 -2
  159. package/lib/shared/directives/conditional-show/conditional-show-form.directive.d.ts.map +1 -1
  160. package/lib/shared/directives/substitutor/label-substitutor.directive.d.ts +2 -2
  161. package/lib/shared/directives/substitutor/label-substitutor.directive.d.ts.map +1 -1
  162. package/lib/shared/domain/case-edit/case-edit.model.d.ts +2 -2
  163. package/lib/shared/domain/case-edit/case-edit.model.d.ts.map +1 -1
  164. package/lib/shared/domain/definition/jurisdiction.model.d.ts +1 -0
  165. package/lib/shared/domain/definition/jurisdiction.model.d.ts.map +1 -1
  166. package/lib/shared/pipes/complex/ccd-page-fields.pipe.d.ts +2 -2
  167. package/lib/shared/pipes/complex/ccd-page-fields.pipe.d.ts.map +1 -1
  168. package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts +2 -2
  169. package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
  170. package/lib/shared/services/fields/fields.purger.d.ts +4 -4
  171. package/lib/shared/services/fields/fields.purger.d.ts.map +1 -1
  172. package/lib/shared/services/fields/fields.utils.d.ts +6 -6
  173. package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
  174. package/lib/shared/services/form/form-error.service.d.ts +2 -2
  175. package/lib/shared/services/form/form-error.service.d.ts.map +1 -1
  176. package/lib/shared/services/jurisdiction/jurisdiction.service.d.ts +3 -2
  177. package/lib/shared/services/jurisdiction/jurisdiction.service.d.ts.map +1 -1
  178. package/package.json +2 -3
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Input, EventEmitter, Output, NgModule, ViewEncapsulation, forwardRef, Pipe, ViewChildren, ContentChildren, Injectable, Inject, Directive, ViewChild, HostListener, Injector, ViewContainerRef, ChangeDetectorRef, NO_ERRORS_SCHEMA, InjectionToken } from '@angular/core';
2
+ import { Component, Input, EventEmitter, Output, NgModule, ViewEncapsulation, forwardRef, Pipe, ViewChildren, ContentChildren, Injectable, Inject, Directive, ViewChild, HostListener, Injector, ViewContainerRef, ChangeDetectorRef, CUSTOM_ELEMENTS_SCHEMA, InjectionToken } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule, DOCUMENT, CurrencyPipe, formatDate } from '@angular/common';
5
5
  import * as i1$1 from 'rpx-xui-translation';
@@ -7,7 +7,7 @@ import { RpxTranslationModule, RpxTranslatePipe } from 'rpx-xui-translation';
7
7
  import * as i1$2 from '@angular/router';
8
8
  import { RouterModule, NavigationStart, NavigationEnd } from '@angular/router';
9
9
  import * as i3 from '@angular/forms';
10
- import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, UntypedFormGroup, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
10
+ import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
11
11
  import polling from 'rx-polling';
12
12
  import { throwError, Subject, EMPTY, Observable, of, BehaviorSubject, timer, fromEvent, forkJoin } from 'rxjs';
13
13
  import * as i1$3 from '@angular/common/http';
@@ -21,29 +21,30 @@ import 'reflect-metadata';
21
21
  import { generate } from 'pegjs';
22
22
  import { isUndefined } from 'util';
23
23
  import { StateMachine } from '@edium/fsm';
24
- import * as i1$4 from '@angular/material/dialog';
25
- import { MatDialogConfig, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
24
+ import * as i1$4 from '@angular/material/legacy-dialog';
25
+ import { MAT_LEGACY_DIALOG_DATA, MatLegacyDialogModule } from '@angular/material/legacy-dialog';
26
+ import { MatDialogConfig } from '@angular/material/dialog';
26
27
  import * as i2 from '@nicky-lenaers/ngx-scroll-to';
27
28
  import { ScrollToModule } from '@nicky-lenaers/ngx-scroll-to';
28
29
  import * as i1$5 from 'ngx-md';
29
30
  import { NgxMdModule } from 'ngx-md';
30
- import * as i5 from '@angular/material/autocomplete';
31
- import { MatAutocompleteModule } from '@angular/material/autocomplete';
32
- import * as i6 from '@angular/material/core';
33
- import { MAT_DATE_LOCALE } from '@angular/material/core';
31
+ import * as i5 from '@angular/material/legacy-autocomplete';
32
+ import { MatLegacyAutocompleteModule } from '@angular/material/legacy-autocomplete';
33
+ import * as i6 from '@angular/material/legacy-core';
34
+ import { MAT_LEGACY_DATE_LOCALE } from '@angular/material/legacy-core';
34
35
  import * as i3$1 from '@hmcts/ccpay-web-component';
35
36
  import { PaymentLibModule } from '@hmcts/ccpay-web-component';
36
37
  import * as i2$1 from '@angular/cdk/overlay';
37
38
  import { OverlayModule } from '@angular/cdk/overlay';
38
39
  import * as i6$1 from '@angular/cdk/tree';
39
40
  import { NestedTreeControl, CdkTreeModule } from '@angular/cdk/tree';
40
- import * as i3$2 from '@angular/material/input';
41
- import { MatInputModule } from '@angular/material/input';
41
+ import * as i3$2 from '@angular/material/legacy-input';
42
+ import { MatLegacyInputModule } from '@angular/material/legacy-input';
42
43
  import * as i4 from '@angular-material-components/datetime-picker';
43
44
  import { NGX_MAT_DATE_FORMATS, NgxMatDateAdapter, NgxMatDatetimePickerModule, NgxMatTimepickerModule, NgxMatNativeDateModule } from '@angular-material-components/datetime-picker';
44
45
  import { NgxMatMomentAdapter, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular-material-components/moment-adapter';
45
- import * as i5$1 from '@angular/material/form-field';
46
- import { MatFormFieldModule } from '@angular/material/form-field';
46
+ import * as i5$1 from '@angular/material/legacy-form-field';
47
+ import { MatLegacyFormFieldModule } from '@angular/material/legacy-form-field';
47
48
  import * as i6$2 from '@angular/material/datepicker';
48
49
  import { MatDatepickerModule } from '@angular/material/datepicker';
49
50
  import * as i12 from '@hmcts/media-viewer';
@@ -52,8 +53,8 @@ import * as i6$3 from '@angular/cdk/portal';
52
53
  import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
53
54
  import * as i2$2 from 'ngx-pagination';
54
55
  import { NgxPaginationModule, PaginatePipe } from 'ngx-pagination';
55
- import * as i10 from '@angular/material/tabs';
56
- import { MatTabsModule } from '@angular/material/tabs';
56
+ import * as i10 from '@angular/material/legacy-tabs';
57
+ import { MatLegacyTabsModule } from '@angular/material/legacy-tabs';
57
58
 
58
59
  function FooterComponent_div_2_Template(rf, ctx) {
59
60
  if (rf & 1) {
@@ -3481,10 +3482,10 @@ class FieldsUtils {
3481
3482
  * Extract flags data from a `CaseField` instance, recursing and iterating through sub-fields of a Complex field or
3482
3483
  * each field in a Collection field.
3483
3484
  *
3484
- * @param flags An array for accumulating extracted flags data and derived `UntypedFormGroup` paths
3485
+ * @param flags An array for accumulating extracted flags data and derived `FormGroup` paths
3485
3486
  * @param caseField A `CaseField` instance from which to extract the flags data
3486
3487
  * @param pathToFlagsFormGroup A (dot-delimited) string for concatenating the name of each control that forms the path
3487
- * to the `UntypedFormGroup` for the `Flags` instance
3488
+ * to the `FormGroup` for the `Flags` instance
3488
3489
  * @param topLevelCaseField The top-level `CaseField` that contains the value property. This is required because _only
3489
3490
  * top-level_ `CaseField`s contain actual values and a reference needs to be maintained to such a field
3490
3491
  * @param currentValue The current value object of a `CaseField` that is a sub-field of a non root-level Complex field.
@@ -3492,7 +3493,7 @@ class FieldsUtils {
3492
3493
  * only the _root-level_ `CaseField` contains a value property - all sub-fields, including any nested Complex fields,
3493
3494
  * do *not* contain any values themselves.)
3494
3495
  * @returns An array of `FlagsWithFormGroupPath`, each instance comprising a `Flags` object derived from a `CaseField`
3495
- * of type "Flags", and the dot-delimited path string to the corresponding `UntypedFormGroup`
3496
+ * of type "Flags", and the dot-delimited path string to the corresponding `FormGroup`
3496
3497
  */
3497
3498
  static extractFlagsDataFromCaseField(flags, caseField, pathToFlagsFormGroup, topLevelCaseField, currentValue) {
3498
3499
  const fieldType = caseField.field_type;
@@ -3690,7 +3691,7 @@ class FieldsUtils {
3690
3691
  if (aControl instanceof FormArray) { // We're in a collection
3691
3692
  formArrayFn(aControl);
3692
3693
  }
3693
- else if (aControl instanceof UntypedFormGroup) { // We're in a complex type.
3694
+ else if (aControl instanceof FormGroup) { // We're in a complex type.
3694
3695
  formGroupFn(aControl);
3695
3696
  }
3696
3697
  else if (aControl instanceof FormControl) { // FormControl
@@ -4510,7 +4511,7 @@ class ConditionalShowFormDirective {
4510
4511
  this.handleFormGroup = (formGroup) => {
4511
4512
  this.evaluateControl(formGroup);
4512
4513
  let groupControl = formGroup;
4513
- if (formGroup.get('value') && formGroup.get('value') instanceof UntypedFormGroup) { // Complex Field
4514
+ if (formGroup.get('value') && formGroup.get('value') instanceof FormGroup) { // Complex Field
4514
4515
  groupControl = formGroup.get('value');
4515
4516
  }
4516
4517
  else if (formGroup.controls) {
@@ -4532,7 +4533,7 @@ class ConditionalShowFormDirective {
4532
4533
  }
4533
4534
  ngOnInit() {
4534
4535
  if (!this.formGroup) {
4535
- this.formGroup = new UntypedFormGroup({});
4536
+ this.formGroup = new FormGroup({});
4536
4537
  }
4537
4538
  }
4538
4539
  /**
@@ -4761,7 +4762,7 @@ class FieldsPurger {
4761
4762
  for (const complexSubField of field.field_type.complex_fields) {
4762
4763
  if ((complexSubField.field_type.type === 'Complex' && complexSubField.field_type.complex_fields.length > 0) ||
4763
4764
  !complexSubField.retain_hidden_value) {
4764
- // Check for the existence of the parent UntypedFormGroup corresponding to the Complex field; if it exists, call
4765
+ // Check for the existence of the parent FormGroup corresponding to the Complex field; if it exists, call
4765
4766
  // deleteFieldValue() to delete the sub-field
4766
4767
  const parentFormGroup = form.get('data').controls[field.id];
4767
4768
  if (parentFormGroup) {
@@ -4793,7 +4794,7 @@ class FieldsPurger {
4793
4794
  }
4794
4795
  }
4795
4796
  // Recursively delete the sub-field value if retain_hidden_value is false, OR if the sub-field type is
4796
- // Complex and regardless of retain_hidden_value, passing in the parent UntypedFormGroup
4797
+ // Complex and regardless of retain_hidden_value, passing in the parent FormGroup
4797
4798
  if (subCaseField &&
4798
4799
  ((subCaseField.field_type.type === 'Complex' && subCaseField.field_type.complex_fields.length > 0) ||
4799
4800
  !subCaseField.retain_hidden_value)) {
@@ -4832,7 +4833,7 @@ class FieldsPurger {
4832
4833
  * types, this recursive method is called until simple or "base" field types are reached. For `Document` field
4833
4834
  * types, its _sub-field_ `FormControl` values are set to null.
4834
4835
  *
4835
- * @param UntypedFormGroup The `UntypedFormGroup` instance containing the `FormControl` for the specified field
4836
+ * @param FormGroup The `FormGroup` instance containing the `FormControl` for the specified field
4836
4837
  * @param field The `CaseField` whose value is to be deleted in the backend
4837
4838
  * @param parentField Reference to the parent `CaseField`. Used for checking specifically where a Complex field and
4838
4839
  * its sub-fields have `retain_hidden_value` set to `true`, but the field's parent has it set to `false` or undefined
@@ -4861,7 +4862,7 @@ class FieldsPurger {
4861
4862
  (field.retain_hidden_value
4862
4863
  ? !complexSubField.retain_hidden_value || (parentField && !parentField.retain_hidden_value)
4863
4864
  : true))) {
4864
- // The fieldControl is cast to a UntypedFormGroup because a Complex field type uses this as its underlying
4865
+ // The fieldControl is cast to a FormGroup because a Complex field type uses this as its underlying
4865
4866
  // implementation
4866
4867
  this.deleteFieldValue(fieldControl, complexSubField, field);
4867
4868
  }
@@ -4888,7 +4889,7 @@ class FieldsPurger {
4888
4889
  break;
4889
4890
  }
4890
4891
  }
4891
- // Recursively delete the sub-field value, passing in the parent UntypedFormGroup
4892
+ // Recursively delete the sub-field value, passing in the parent FormGroup
4892
4893
  const parentFormGroup = fieldControl.at(index).get('value');
4893
4894
  this.deleteFieldValue(parentFormGroup, subCaseField);
4894
4895
  }));
@@ -4903,7 +4904,7 @@ class FieldsPurger {
4903
4904
  // the single Document case)
4904
4905
  if (documentFieldValues) {
4905
4906
  documentFieldValues.forEach((fieldValue, index) => Object.keys(fieldValue.value).forEach(subFieldId => {
4906
- // Get the UntypedFormGroup containing the FormControl for the sub-field and set its value to null
4907
+ // Get the FormGroup containing the FormControl for the sub-field and set its value to null
4907
4908
  fieldControl.at(index).get(`value.${subFieldId}`).setValue(null);
4908
4909
  }));
4909
4910
  }
@@ -4922,8 +4923,8 @@ class FieldsPurger {
4922
4923
  }
4923
4924
  break;
4924
4925
  case 'Document':
4925
- // NOTE: The field control (a UntypedFormGroup in this case) cannot just be set to null because Angular checks that
4926
- // all existing values of a UntypedFormGroup are present; setting the control's value to null causes a runtime error
4926
+ // NOTE: The field control (a FormGroup in this case) cannot just be set to null because Angular checks that
4927
+ // all existing values of a FormGroup are present; setting the control's value to null causes a runtime error
4927
4928
  const documentFieldValue = fieldControl.value;
4928
4929
  for (const key in documentFieldValue) {
4929
4930
  if (fieldControl.get(key)) {
@@ -5809,7 +5810,7 @@ class LabelSubstitutorDirective {
5809
5810
  ngOnInit() {
5810
5811
  this.initialLabel = this.caseField.label;
5811
5812
  this.initialHintText = this.caseField.hint_text;
5812
- this.formGroup = this.formGroup || new UntypedFormGroup({});
5813
+ this.formGroup = this.formGroup || new FormGroup({});
5813
5814
  const fields = this.getReadOnlyAndFormFields();
5814
5815
  if (this.shouldSubstitute('label')) {
5815
5816
  this.caseField.label = this.resolvePlaceholders(fields, this.caseField.label);
@@ -6627,7 +6628,9 @@ FormErrorService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: FormErr
6627
6628
  class JurisdictionService {
6628
6629
  constructor(httpService) {
6629
6630
  this.httpService = httpService;
6631
+ // We retain the Subject observable because subscribing code couldn't happen a null value
6630
6632
  this.selectedJurisdictionSource = new Subject();
6633
+ this.selectedJurisdictionBS = new BehaviorSubject(null);
6631
6634
  this.selectedJurisdiction = this.selectedJurisdictionSource.asObservable();
6632
6635
  }
6633
6636
  getJurisdictions() {
@@ -6635,6 +6638,7 @@ class JurisdictionService {
6635
6638
  }
6636
6639
  announceSelectedJurisdiction(jurisdiction) {
6637
6640
  this.selectedJurisdictionSource.next(jurisdiction);
6641
+ this.selectedJurisdictionBS.next(jurisdiction);
6638
6642
  }
6639
6643
  searchJudicialUsers(searchTerm, serviceId) {
6640
6644
  return this.httpService.post('api/prd/judicial/getJudicialUsersSearch', { searchString: searchTerm, serviceCode: serviceId });
@@ -8183,22 +8187,15 @@ class CaseNotifier {
8183
8187
  this.cachedCaseView = null;
8184
8188
  }
8185
8189
  announceCase(c) {
8186
- console.info('announceCase started.');
8187
8190
  this.caseViewSource.next(c);
8188
- console.info('announceCase finished.');
8189
8191
  }
8190
8192
  fetchAndRefresh(cid) {
8191
- console.info('fetchAndRefresh started.');
8192
8193
  return this.casesService
8193
8194
  .getCaseViewV2(cid)
8194
8195
  .pipe(map(caseView => {
8195
- console.info('mapping caseView started.');
8196
- // this.casesService.syncWait(10);
8197
- // throw new Error('******************************************************');
8198
8196
  this.cachedCaseView = plainToClassFromExist(new CaseView(), caseView);
8199
8197
  this.setBasicFields(this.cachedCaseView.tabs);
8200
8198
  this.announceCase(this.cachedCaseView);
8201
- console.info('mapping caseView finished. Returning it.');
8202
8199
  return this.cachedCaseView;
8203
8200
  }));
8204
8201
  }
@@ -8718,7 +8715,7 @@ class CaseEditComponent {
8718
8715
  this.sessionStorageService.setItem('eventUrl', this.router.url);
8719
8716
  }
8720
8717
  this.form = this.fb.group({
8721
- data: new UntypedFormGroup({}),
8718
+ data: new FormGroup({}),
8722
8719
  event: this.fb.group({
8723
8720
  id: [this.eventTrigger.id, Validators.required],
8724
8721
  summary: [''],
@@ -8891,7 +8888,7 @@ class CaseEditComponent {
8891
8888
  return data;
8892
8889
  }
8893
8890
  /**
8894
- * Traverse *all* values of a {@link UntypedFormGroup}, including those for disabled fields (i.e. hidden ones), replacing the
8891
+ * Traverse *all* values of a {@link FormGroup}, including those for disabled fields (i.e. hidden ones), replacing the
8895
8892
  * value of any that are hidden AND have `retain_hidden_value` set to `true` in the corresponding `CaseField`, with
8896
8893
  * the *original* value held in the `CaseField` object.
8897
8894
  *
@@ -8904,8 +8901,8 @@ class CaseEditComponent {
8904
8901
  * * For Collection field types, including collections of Complex and Document field types, the replacement is
8905
8902
  * performed for all fields in the collection.
8906
8903
  *
8907
- * @param UntypedFormGroup The `UntypedFormGroup` instance whose raw values are to be traversed
8908
- * @param caseFields The array of {@link CaseField} domain model objects corresponding to fields in `UntypedFormGroup`
8904
+ * @param FormGroup The `FormGroup` instance whose raw values are to be traversed
8905
+ * @param caseFields The array of {@link CaseField} domain model objects corresponding to fields in `FormGroup`
8909
8906
  * @param parentField Reference to the parent `CaseField`. Used for retrieving the sub-field values of a Complex field
8910
8907
  * to perform recursive replacement - the sub-field `CaseField`s themselves do *not* contain any values
8911
8908
  * @returns An object with the *raw* form value data (as key-value pairs), with any value replacements as necessary
@@ -8948,8 +8945,8 @@ class CaseEditComponent {
8948
8945
  // CaseField itself (the sub-fields do not contain any values, so these need to be obtained from the
8949
8946
  // parent)
8950
8947
  // Update rawFormValueData for this field
8951
- // creating form group and adding control into it in case caseField is of complext type and and part of UntypedFormGroup
8952
- const form = new UntypedFormGroup({});
8948
+ // creating form group and adding control into it in case caseField is of complext type and and part of FormGroup
8949
+ const form = new FormGroup({});
8953
8950
  if (formGroup.controls[key].value) {
8954
8951
  Object.keys(formGroup.controls[key].value).forEach((item) => {
8955
8952
  form.addControl(item, new FormControl(formGroup.controls[key].value[item]));
@@ -9362,7 +9359,7 @@ class SaveOrDiscardDialogComponent {
9362
9359
  this.matDialogRef.close(this.result);
9363
9360
  }
9364
9361
  }
9365
- SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0.ɵɵdirectiveInject(i1$4.MatDialogRef)); };
9362
+ SaveOrDiscardDialogComponent.ɵfac = function SaveOrDiscardDialogComponent_Factory(t) { return new (t || SaveOrDiscardDialogComponent)(i0.ɵɵdirectiveInject(i1$4.MatLegacyDialogRef)); };
9366
9363
  SaveOrDiscardDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SaveOrDiscardDialogComponent, selectors: [["ccd-save-or-discard-dialog"]], decls: 19, vars: 12, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Save", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Discard", 1, "button", "button-secondary", 3, "click"]], template: function SaveOrDiscardDialogComponent_Template(rf, ctx) {
9367
9364
  if (rf & 1) {
9368
9365
  i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "h2", 1);
@@ -9403,7 +9400,7 @@ SaveOrDiscardDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
9403
9400
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SaveOrDiscardDialogComponent, [{
9404
9401
  type: Component,
9405
9402
  args: [{ selector: 'ccd-save-or-discard-dialog', template: "<div>\n <div class=\"dialog-header\">\n <h2 (click)=\"cancel()\" class=\"heading-h2 x\">X</h2>\n </div>\n <div>\n <h2 class=\"heading-h2 dialog-title\">{{'Would you like to save changes to this page?' | rpxTranslate}}</h2>\n </div>\n <div class=\"dialog-info\">\n <span class=\"text-info\">{{'You will be taken back to your case list.' | rpxTranslate}}</span>\n </div>\n <div>\n <button type=\"button\" title=\"Save\" class=\"button action-button\" (click)=\"save()\">{{'Save' | rpxTranslate}}</button>\n <button type=\"button\" title=\"Discard\" class=\"button button-secondary\" (click)=\"discard()\">{{'Discard' | rpxTranslate}}</button>\n </div>\n</div>\n", styles: [".x{margin:0;padding:9px 9px 0 0;font-size:24px;font-weight:700;font-style:normal;font-stretch:normal;cursor:pointer;color:#6e7071}.dialog-header{text-align:right}.dialog-title,.dialog-info{margin:0 0 21px 25px}.action-button{margin:0 15px 0 25px}\n"] }]
9406
- }], function () { return [{ type: i1$4.MatDialogRef }]; }, null);
9403
+ }], function () { return [{ type: i1$4.MatLegacyDialogRef }]; }, null);
9407
9404
  })();
9408
9405
 
9409
9406
  function initDialog() {
@@ -10198,7 +10195,7 @@ CaseEditPageComponent.RESUMED_FORM_SAVE = 'RESUMED_FORM_SAVE';
10198
10195
  CaseEditPageComponent.TRIGGER_TEXT_START = 'Continue';
10199
10196
  CaseEditPageComponent.TRIGGER_TEXT_SAVE = 'Save and continue';
10200
10197
  CaseEditPageComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Continue';
10201
- CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$4.MatDialog), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(LoadingService)); };
10198
+ CaseEditPageComponent.ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$4.MatLegacyDialog), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(LoadingService)); };
10202
10199
  CaseEditPageComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 12, vars: 11, consts: [[4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["titleBlock", ""], ["idBlock", ""], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [3, "error"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form", 3, "formGroup", "submit"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"], [3, "eventCompletionParams", "eventCanBeCompleted"]], template: function CaseEditPageComponent_Template(rf, ctx) {
10203
10200
  if (rf & 1) {
10204
10201
  i0.ɵɵtemplate(0, CaseEditPageComponent_ng_container_0_Template, 3, 2, "ng-container", 0);
@@ -10237,7 +10234,7 @@ CaseEditPageComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseE
10237
10234
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditPageComponent, [{
10238
10235
  type: Component,
10239
10236
  args: [{ selector: 'ccd-case-edit-page', template: "<ng-container *ngIf=\"currentPage\">\n <h1 *ngIf=\"!currentPage.label\" class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n <ng-container *ngIf=\"currentPage.label\">\n <span class=\"govuk-caption-l\">{{ eventTrigger.name | rpxTranslate}}</span>\n <h1 class=\"govuk-heading-l\">{{currentPage.label | rpxTranslate}}</h1>\n </ng-container>\n</ng-container>\n\n<!--Case ID or Title -->\n<div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n<ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: caseFields : editForm.controls['data']\"></ccd-markdown>\n</ng-template>\n<ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n</ng-template>\n\n<!-- Error message summary -->\n<div *ngIf=\"validationErrors.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{'There is a problem' | rpxTranslate}}\n </h2>\n <div *ngFor=\"let validationError of validationErrors\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(validationError.id)\" class=\"validation-error\">\n {{ validationError.message | rpxTranslate: getRpxTranslatePipeArgs(validationError.label | rpxTranslate): null }}\n </a>\n </li>\n </ul>\n </div>\n</div>\n\n<ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<div class=\"width-50\">\n <form *ngIf=\"currentPage\" class=\"form\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <fieldset id=\"fieldset-case-data\">\n <legend style=\"display: none;\"></legend>\n <!-- single column -->\n <ccd-case-edit-form id='caseEditForm' *ngIf=\"!currentPage.isMultiColumn()\" [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"\n [pageChangeSubject]=\"pageChangeSubject\"\n (valuesChanged)=\"applyValuesChanged($event)\"></ccd-case-edit-form>\n <!-- two columns -->\n <div *ngIf=\"currentPage.isMultiColumn()\" class=\"grid-row\">\n <div class=\"column-two-thirds rightBorderSeparator\">\n <ccd-case-edit-form id='caseEditForm1' [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n <div class=\"column-one-third\">\n <ccd-case-edit-form id='caseEditForm2' [fields]=\"currentPage.getCol2Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n </div>\n </fieldset>\n\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" [disabled]=\"!(hasPreviousPage$ | async)\" (click)=\"toPreviousPage()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button class=\"button\" type=\"submit\" [disabled]=\"submitting()\">{{triggerText | rpxTranslate}}</button>\n </div>\n\n <p class=\"cancel\"><a (click)=\"cancel()\" href=\"javascript:void(0)\">{{getCancelText() | rpxTranslate}}</a></p>\n </form>\n</div>\n\n<ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n</ccd-case-event-completion>\n", styles: [".rightBorderSeparator{border-right-width:4px;border-right-color:#ffcc02;border-right-style:solid}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
10240
- }], function () { return [{ type: CaseEditComponent }, { type: i1$2.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$4.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }]; }, null);
10237
+ }], function () { return [{ type: CaseEditComponent }, { type: i1$2.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$4.MatLegacyDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }]; }, null);
10241
10238
  })();
10242
10239
 
10243
10240
  class CallbackErrorsContext {
@@ -10553,7 +10550,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
10553
10550
  constructor(addressesService, isCompoundPipe) {
10554
10551
  super();
10555
10552
  this.isCompoundPipe = isCompoundPipe;
10556
- this.addressFormGroup = new UntypedFormGroup({});
10553
+ this.addressFormGroup = new FormGroup({});
10557
10554
  this.missingPostcode = false;
10558
10555
  this.addressesService = addressesService;
10559
10556
  }
@@ -11082,7 +11079,7 @@ class ReadCaseFlagFieldComponent extends AbstractFieldReadComponent {
11082
11079
  }
11083
11080
  ngOnInit() {
11084
11081
  // If the context is PaletteContext.DEFAULT, the Flags fields need to be located by CaseTab (they won't be present
11085
- // in the UntypedFormGroup - only the FlagLauncher field is present)
11082
+ // in the FormGroup - only the FlagLauncher field is present)
11086
11083
  if (this.context === PaletteContext.DEFAULT) {
11087
11084
  // Determine the tab this CaseField belongs to (should be only one), from the CaseView object in the snapshot
11088
11085
  // data, and extract all flags-related data from its Flags fields
@@ -11101,7 +11098,7 @@ class ReadCaseFlagFieldComponent extends AbstractFieldReadComponent {
11101
11098
  else if (this.context === PaletteContext.CHECK_YOUR_ANSWER) {
11102
11099
  // If the context is PaletteContext.CHECK_YOUR_ANSWER, the Flags data is already present within the formGroup.
11103
11100
  // The FlagLauncher component, WriteCaseFlagFieldComponent, holds a reference to:
11104
- // i) the parent UntypedFormGroup for the Flags instance where changes have been made;
11101
+ // i) the parent FormGroup for the Flags instance where changes have been made;
11105
11102
  // ii) the currently selected flag (selectedFlag) if one exists
11106
11103
  const flagLauncherControlName = Object.keys(this.formGroup.controls).find(controlName => FieldsUtils.isFlagLauncherCaseField(this.formGroup.get(controlName)['caseField']));
11107
11104
  if (flagLauncherControlName && this.formGroup.get(flagLauncherControlName)['component']) {
@@ -11345,7 +11342,7 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
11345
11342
  this.caseEditDataService = caseEditDataService;
11346
11343
  this.caseFlagFieldState = CaseFlagFieldState;
11347
11344
  this.errorMessages = [];
11348
- this.caseFlagParentFormGroup = new UntypedFormGroup({});
11345
+ this.caseFlagParentFormGroup = new FormGroup({});
11349
11346
  this.flagCommentsOptional = false;
11350
11347
  this.listOfValues = null;
11351
11348
  this.allCaseFlagStagesCompleted = false;
@@ -11362,11 +11359,11 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
11362
11359
  if (this.formGroup && this.formGroup.get(this.caseField.id)) {
11363
11360
  this.formGroup.removeControl(this.caseField.id);
11364
11361
  }
11365
- // From this point, this.formGroup refers to the UntypedFormGroup for the FlagLauncher field, not the parent UntypedFormGroup
11366
- this.formGroup = this.registerControl(new UntypedFormGroup({}, {
11362
+ // From this point, this.formGroup refers to the FormGroup for the FlagLauncher field, not the parent FormGroup
11363
+ this.formGroup = this.registerControl(new FormGroup({}, {
11367
11364
  validators: (_) => {
11368
11365
  if (!this.allCaseFlagStagesCompleted) {
11369
- // Return an error to mark the UntypedFormGroup as invalid if not all Case Flag stages have been completed
11366
+ // Return an error to mark the FormGroup as invalid if not all Case Flag stages have been completed
11370
11367
  return { notAllCaseFlagStagesCompleted: true };
11371
11368
  }
11372
11369
  return null;
@@ -11415,7 +11412,7 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
11415
11412
  onCaseFlagStateEmitted(caseFlagState) {
11416
11413
  this.caseEditDataService.clearFormValidationErrors();
11417
11414
  // If the current state is CaseFlagFieldState.FLAG_LOCATION and a flag location (a Flags instance) has been selected,
11418
- // set the parent Case Flag UntypedFormGroup for this component's children by using the provided pathToFlagsFormGroup, and
11415
+ // set the parent Case Flag FormGroup for this component's children by using the provided pathToFlagsFormGroup, and
11419
11416
  // set the selected flag location on this component
11420
11417
  if (caseFlagState.currentCaseFlagFieldState === CaseFlagFieldState.FLAG_LOCATION
11421
11418
  && caseFlagState.selectedFlagsLocation
@@ -11433,7 +11430,7 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
11433
11430
  this.listOfValues = caseFlagState.listOfValues;
11434
11431
  }
11435
11432
  // If the current state is CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS and a flag has been selected, set the parent
11436
- // Case Flag UntypedFormGroup for this component's children by using the provided pathToFlagsFormGroup
11433
+ // Case Flag FormGroup for this component's children by using the provided pathToFlagsFormGroup
11437
11434
  if (caseFlagState.currentCaseFlagFieldState === CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS
11438
11435
  && caseFlagState.selectedFlag
11439
11436
  && caseFlagState.selectedFlag.pathToFlagsFormGroup) {
@@ -11570,8 +11567,8 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
11570
11567
  if (flagsCaseFieldValue) {
11571
11568
  const flagDetailToUpdate = flagsCaseFieldValue.details.find(detail => detail.id === this.selectedFlag.flagDetailDisplay.flagDetail.id);
11572
11569
  if (flagDetailToUpdate) {
11573
- flagDetailToUpdate.value.flagComment = this.caseFlagParentFormGroup.value.flagComments
11574
- ? this.caseFlagParentFormGroup.value.flagComments
11570
+ flagDetailToUpdate.value.flagComment = this.caseFlagParentFormGroup.value['flagComments']
11571
+ ? this.caseFlagParentFormGroup.value['flagComments']
11575
11572
  : null;
11576
11573
  flagDetailToUpdate.value.status = this.selectedFlag.flagDetailDisplay.flagDetail.status;
11577
11574
  flagDetailToUpdate.value.dateTimeModified = new Date().toISOString();
@@ -11596,12 +11593,12 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
11596
11593
  this.flagCommentsOptional = true;
11597
11594
  }
11598
11595
  /**
11599
- * Set the parent {@link UntypedFormGroup} for this component's children, depending on the `Flags` {@link CaseField} instance
11600
- * to which data should be attached. **Note:** The parent is not _this_ component's `UntypedFormGroup` (as might otherwise be
11596
+ * Set the parent {@link FormGroup} for this component's children, depending on the `Flags` {@link CaseField} instance
11597
+ * to which data should be attached. **Note:** The parent is not _this_ component's `FormGroup` (as might otherwise be
11601
11598
  * expected) because this component is not expected to have a value, given it is used for the empty `FlagLauncher` base
11602
11599
  * field type.
11603
11600
  *
11604
- * @param pathToFlagsFormGroup The dot-delimited string that is the path to the `UntypedFormGroup` for a `Flags` instance
11601
+ * @param pathToFlagsFormGroup The dot-delimited string that is the path to the `FormGroup` for a `Flags` instance
11605
11602
  */
11606
11603
  setCaseFlagParentFormGroup(pathToFlagsFormGroup) {
11607
11604
  this.caseFlagParentFormGroup = this.formGroup.parent.get(pathToFlagsFormGroup);
@@ -11610,19 +11607,19 @@ class WriteCaseFlagFieldComponent extends AbstractFieldWriteComponent {
11610
11607
  return {
11611
11608
  name: this.flagName,
11612
11609
  // Currently, subTypeValue and subTypeKey are applicable only to language flag types
11613
- subTypeValue: this.caseFlagParentFormGroup.value.languageSearchTerm
11614
- ? this.caseFlagParentFormGroup.value.languageSearchTerm.value
11615
- : this.caseFlagParentFormGroup.value.manualLanguageEntry
11616
- ? this.caseFlagParentFormGroup.value.manualLanguageEntry
11610
+ subTypeValue: this.caseFlagParentFormGroup.value['languageSearchTerm']
11611
+ ? this.caseFlagParentFormGroup.value['languageSearchTerm'].value
11612
+ : this.caseFlagParentFormGroup.value['mmanualLanguageEntry']
11613
+ ? this.caseFlagParentFormGroup.value['mmanualLanguageEntry']
11617
11614
  : null,
11618
11615
  // For user-entered (i.e. non-Reference Data) languages, there is no key
11619
- subTypeKey: this.caseFlagParentFormGroup.value.languageSearchTerm
11620
- ? this.caseFlagParentFormGroup.value.languageSearchTerm.key
11616
+ subTypeKey: this.caseFlagParentFormGroup.value['languageSearchTerm']
11617
+ ? this.caseFlagParentFormGroup.value['languageSearchTerm'].key
11621
11618
  : null,
11622
- otherDescription: this.flagCode === this.otherFlagTypeCode && this.caseFlagParentFormGroup.value.otherFlagTypeDescription
11623
- ? this.caseFlagParentFormGroup.value.otherFlagTypeDescription
11619
+ otherDescription: this.flagCode === this.otherFlagTypeCode && this.caseFlagParentFormGroup.value['otherFlagTypeDescription']
11620
+ ? this.caseFlagParentFormGroup.value['otherFlagTypeDescription']
11624
11621
  : null,
11625
- flagComment: this.caseFlagParentFormGroup.value.flagComments ? this.caseFlagParentFormGroup.value.flagComments : null,
11622
+ flagComment: this.caseFlagParentFormGroup.value['flagComments'] ? this.caseFlagParentFormGroup.value['flagComments'] : null,
11626
11623
  dateTimeCreated: new Date().toISOString(),
11627
11624
  path: this.flagPath,
11628
11625
  hearingRelevant: this.hearingRelevantFlag ? 'Yes' : 'No',
@@ -11773,12 +11770,12 @@ const _c1$m = function (a0) { return { "form-group-error": a0 }; };
11773
11770
  class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
11774
11771
  ngOnInit() {
11775
11772
  if (this.caseField.value) {
11776
- this.caseLinkGroup = this.registerControl(new UntypedFormGroup({
11773
+ this.caseLinkGroup = this.registerControl(new FormGroup({
11777
11774
  CaseReference: new FormControl(this.caseField.value.CaseReference, Validators.required),
11778
11775
  }), true);
11779
11776
  }
11780
11777
  else {
11781
- this.caseLinkGroup = this.registerControl(new UntypedFormGroup({
11778
+ this.caseLinkGroup = this.registerControl(new FormGroup({
11782
11779
  CaseReference: new FormControl(null, Validators.required),
11783
11780
  }), true);
11784
11781
  }
@@ -11966,7 +11963,7 @@ class RemoveDialogComponent {
11966
11963
  this.matDialogRef.close(this.result);
11967
11964
  }
11968
11965
  }
11969
- RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0.ɵɵdirectiveInject(i1$4.MatDialogRef)); };
11966
+ RemoveDialogComponent.ɵfac = function RemoveDialogComponent_Factory(t) { return new (t || RemoveDialogComponent)(i0.ɵɵdirectiveInject(i1$4.MatLegacyDialogRef)); };
11970
11967
  RemoveDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RemoveDialogComponent, selectors: [["ccd-remove-dialog"]], decls: 19, vars: 12, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Remove", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function RemoveDialogComponent_Template(rf, ctx) {
11971
11968
  if (rf & 1) {
11972
11969
  i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "h2", 1);
@@ -12007,7 +12004,7 @@ RemoveDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Remov
12007
12004
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RemoveDialogComponent, [{
12008
12005
  type: Component,
12009
12006
  args: [{ selector: 'ccd-remove-dialog', template: "<div>\n <div class=\"dialog-header\">\n <h2 (click)=\"cancel()\" class=\"heading-h2 x\">X</h2>\n </div>\n <div>\n <h2 class=\"heading-h2 dialog-title\">{{'Are you sure you want to remove the item?' | rpxTranslate}}</h2>\n </div>\n <div class=\"dialog-info\">\n <span class=\"text-info\">\n {{'You are about to permanently remove an item, are you sure you want to remove this item?' | rpxTranslate}}\n </span>\n </div>\n <div>\n <button type=\"button\" title=\"Remove\" class=\"button action-button\" (click)=\"remove()\">{{'Remove' | rpxTranslate}}</button>\n <button type=\"button\" title=\"Cancel\" class=\"button button-secondary\" (click)=\"cancel()\">{{'Cancel' | rpxTranslate}}</button>\n </div>\n</div>\n", styles: [".x{margin:0;padding:9px 9px 0 0;font-size:24px;font-weight:700;font-style:normal;font-stretch:normal;cursor:pointer;color:#6e7071}.dialog-header{text-align:right}.dialog-title,.dialog-info{margin:0 0 21px 25px}.action-button{margin:0 15px 0 25px}\n"] }]
12010
- }], function () { return [{ type: i1$4.MatDialogRef }]; }, null);
12007
+ }], function () { return [{ type: i1$4.MatLegacyDialogRef }]; }, null);
12011
12008
  })();
12012
12009
 
12013
12010
  const _c0$O = ["collectionItem"];
@@ -12152,7 +12149,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
12152
12149
  * this is what appears to be happening:
12153
12150
  * 1. this.formArray contains no controls at all.
12154
12151
  * this.formArray.value = [];
12155
- * 2. this.formArray contains a UntypedFormGroup, which contains a single
12152
+ * 2. this.formArray contains a FormGroup, which contains a single
12156
12153
  * FormControl with the id 'code'.
12157
12154
  * this.formArray.value = [{ code: null }]
12158
12155
  * 3. this.formArray contains what is being set up below.
@@ -12164,7 +12161,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
12164
12161
  group = this.formArray.at(index);
12165
12162
  }
12166
12163
  else {
12167
- group = new UntypedFormGroup({});
12164
+ group = new FormGroup({});
12168
12165
  }
12169
12166
  let value;
12170
12167
  if (this.isCollectionOfSimpleType(this.caseField)) {
@@ -12178,14 +12175,14 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
12178
12175
  else {
12179
12176
  value = group.get('value');
12180
12177
  if (!value) {
12181
- value = new UntypedFormGroup({});
12178
+ value = new FormGroup({});
12182
12179
  for (const key of Object.keys(group.controls)) {
12183
12180
  value.addControl(key, group.get(key));
12184
12181
  // DON'T remove the control for this key from the outer group or it
12185
12182
  // goes awry. So DON'T uncomment the below line!
12186
12183
  // group.removeControl(key);
12187
12184
  }
12188
- // Now add the value UntypedFormGroup to the outer group.
12185
+ // Now add the value FormGroup to the outer group.
12189
12186
  group.addControl('value', value);
12190
12187
  }
12191
12188
  }
@@ -12290,7 +12287,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
12290
12287
  }
12291
12288
  getContainer(index) {
12292
12289
  const value = this.formArray.at(index).get('value');
12293
- if (value instanceof UntypedFormGroup) {
12290
+ if (value instanceof FormGroup) {
12294
12291
  return value;
12295
12292
  }
12296
12293
  else {
@@ -12400,7 +12397,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
12400
12397
  * Applied full solution as part of EUI-3505
12401
12398
  */
12402
12399
  getControlIdAt(index) {
12403
- // this.formArray contains [ UntypedFormGroup( id: FormControl, value: UntypedFormGroup ), ... ].
12400
+ // this.formArray contains [ FormGroup( id: FormControl, value: FormGroup ), ... ].
12404
12401
  // Here, we need to get the value of the id FormControl.
12405
12402
  const group = this.formArray.at(index);
12406
12403
  const control = group.get('id');
@@ -12411,7 +12408,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
12411
12408
  return notSimple.indexOf(caseField.field_type.collection_field_type.type) < 0;
12412
12409
  }
12413
12410
  }
12414
- WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$4.MatDialog), i0.ɵɵdirectiveInject(i2.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
12411
+ WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0.ɵɵdirectiveInject(i1$4.MatLegacyDialog), i0.ɵɵdirectiveInject(i2.ScrollToService), i0.ɵɵdirectiveInject(ProfileNotifier)); };
12415
12412
  WriteCollectionFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
12416
12413
  if (rf & 1) {
12417
12414
  i0.ɵɵviewQuery(_c0$O, 5);
@@ -12457,7 +12454,7 @@ WriteCollectionFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
12457
12454
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteCollectionFieldComponent, [{
12458
12455
  type: Component,
12459
12456
  args: [{ selector: 'ccd-write-collection-field', template: "<div class=\"form-group\" [id]=\"id()\">\n\n <div class=\"panel collection-indicator\">\n\n <h2 class=\"heading-h2 error-spacing\">\n {{(caseField | ccdFieldLabel) | rpxTranslate }}\n </h2>\n <button class=\"button write-collection-add-item__top\" type=\"button\" (click)=\"addItem(true)\" [disabled]=\"isNotAuthorisedToCreate() || isSearchFilter()\">{{'Add new' | rpxTranslate}}</button>\n <h2 class=\"heading-h2 error-spacing\" *ngIf=\"caseField.hint_text || formArray.errors\">\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">{{caseField.hint_text | rpxTranslate }}</span>\n <span *ngIf=\"formArray.errors\" class=\"error-message\">\n {{(formArray.errors | ccdFirstError:caseField.label ) | rpxTranslate}}\n </span>\n </h2>\n\n <div class=\"form-group\" [hidden]=\"caseField.hidden\" *ngIf=\"caseField.value && caseField.value.length\">\n\n <div class=\"form-group\" *ngFor=\"let item of collItems; let i = index\" #collectionItem>\n <div class=\"collection-title\">\n <div class=\"float-left\">\n <label [for]=\"item.prefix + i\"><h3 class=\"heading-h3\">{{itemLabel(i) | rpxTranslate}}</h3></label>\n </div>\n <div class=\"float-right\">\n <button class=\"button button-secondary\" type=\"button\" (click)=\"openModal(i)\"\n [disabled]=\"isNotAuthorisedToDelete(i)\"\n attr.aria-label=\"Remove {{ itemLabel(i) }}\">{{'Remove' | rpxTranslate}}</button>\n </div>\n </div>\n <ccd-field-write [caseField]=\"item.caseField\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [parent]=\"item.container\"\n [idPrefix]=\"item.prefix\"\n [hidden]=\"item.caseField.hidden\"\n [isExpanded]=\"isExpanded\"\n [isInSearchBlock]=\"isInSearchBlock\">\n </ccd-field-write>\n </div>\n\n </div>\n\n <button class=\"button write-collection-add-item__bottom\" type=\"button\" (click)=\"addItem(false)\" [disabled]=\"isNotAuthorisedToCreate() || isSearchFilter()\" *ngIf=\"caseField.value && caseField.value.length\">{{'Add new' | rpxTranslate }}</button>\n\n </div>\n\n</div>\n", styles: [".collection-field-table tr:first-child>td{padding-top:0}.collection-field-table tr:last-child>td{border-bottom:none}.collection-field-table td.collection-actions{width:1px;white-space:nowrap}.error-spacing{margin-top:10px}.collection-title{height:51px}.float-left{float:left;padding-top:8px}.float-right{float:right}.complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width: 641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.complex-panel .complex-panel-table>tbody>tr:last-child>td{border-bottom:none}.complex-panel .complex-panel-simple-field th{padding-left:5px;width:295px}.complex-panel .complex-panel-compound-field td{padding:5px}.collection-indicator{border-left:solid 5px #b1b4b6}\n"] }]
12460
- }], function () { return [{ type: i1$4.MatDialog }, { type: i2.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
12457
+ }], function () { return [{ type: i1$4.MatLegacyDialog }, { type: i2.ScrollToService }, { type: ProfileNotifier }]; }, { caseFields: [{
12461
12458
  type: Input
12462
12459
  }], formGroup: [{
12463
12460
  type: Input
@@ -12713,7 +12710,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
12713
12710
  this.caseFields = [];
12714
12711
  this.renderLabel = true;
12715
12712
  this.ignoreMandatory = false;
12716
- this.complexGroup = new UntypedFormGroup({});
12713
+ this.complexGroup = new FormGroup({});
12717
12714
  }
12718
12715
  ngOnInit() {
12719
12716
  // Are we inside of a collection? If so, the parent is the complexGroup we want.
@@ -12987,7 +12984,7 @@ class DocumentDialogComponent {
12987
12984
  this.matDialogRef.close(this.result);
12988
12985
  }
12989
12986
  }
12990
- DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0.ɵɵdirectiveInject(i1$4.MatDialogRef)); };
12987
+ DocumentDialogComponent.ɵfac = function DocumentDialogComponent_Factory(t) { return new (t || DocumentDialogComponent)(i0.ɵɵdirectiveInject(i1$4.MatLegacyDialogRef)); };
12991
12988
  DocumentDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DocumentDialogComponent, selectors: [["ccd-document-dialog"]], decls: 19, vars: 12, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Replace", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DocumentDialogComponent_Template(rf, ctx) {
12992
12989
  if (rf & 1) {
12993
12990
  i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "h2", 1);
@@ -13028,7 +13025,7 @@ DocumentDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Doc
13028
13025
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DocumentDialogComponent, [{
13029
13026
  type: Component,
13030
13027
  args: [{ selector: 'ccd-document-dialog', template: "<div>\n <div class=\"dialog-header\">\n <h2 (click)=\"cancel()\" class=\"heading-h2 x\">X</h2>\n </div>\n <div>\n <h2 class=\"heading-h2 dialog-title\">{{'Are you sure you want to replace the existing file?' | rpxTranslate}}</h2>\n </div>\n <div class=\"dialog-info\">\n <span class=\"text-info\">{{'You are about to delete the original file uploaded. Are you sure you want to proceed?' | rpxTranslate}}</span>\n </div>\n <div>\n <button type=\"button\" title=\"Replace\" class=\"button action-button\" (click)=\"replace()\">{{'Replace file' | rpxTranslate}}</button>\n <button type=\"button\" title=\"Cancel\" class=\"button button-secondary\" (click)=\"cancel()\">{{'Cancel' | rpxTranslate}}</button>\n </div>\n</div>\n", styles: [".x{margin:0;padding:9px 9px 0 0;font-size:24px;font-weight:700;font-style:normal;font-stretch:normal;cursor:pointer;color:#6e7071}.dialog-header{text-align:right}.dialog-title,.dialog-info{margin:0 0 21px 25px}.action-button{margin:0 15px 0 25px}\n"] }]
13031
- }], function () { return [{ type: i1$4.MatDialogRef }]; }, null);
13028
+ }], function () { return [{ type: i1$4.MatLegacyDialogRef }]; }, null);
13032
13029
  })();
13033
13030
 
13034
13031
  class FileUploadStateService {
@@ -13085,17 +13082,18 @@ function WriteDocumentFieldComponent_ccd_read_document_field_10_Template(rf, ctx
13085
13082
  }
13086
13083
  const _c1$k = function (a0) { return { "form-group-error bottom-30": a0 }; };
13087
13084
  class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
13088
- constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService) {
13085
+ constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService, jurisdictionService) {
13089
13086
  super();
13090
13087
  this.appConfig = appConfig;
13091
13088
  this.caseNotifier = caseNotifier;
13092
13089
  this.documentManagement = documentManagement;
13093
13090
  this.dialog = dialog;
13094
13091
  this.fileUploadStateService = fileUploadStateService;
13092
+ this.jurisdictionService = jurisdictionService;
13095
13093
  this.valid = true;
13096
13094
  }
13097
13095
  clickout(event) {
13098
- // Capturing the event of of the associated ElementRef <input type="file" #fileInpu
13096
+ // Capturing the event of the associated ElementRef <input type="file" #fileInpu
13099
13097
  if (this.fileInput.nativeElement.contains(event.target)) {
13100
13098
  this.clickInsideTheDocument = true;
13101
13099
  }
@@ -13105,6 +13103,9 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
13105
13103
  }
13106
13104
  ngOnInit() {
13107
13105
  this.secureModeOn = this.appConfig.getDocumentSecureMode();
13106
+ if (this.secureModeOn) {
13107
+ this.subscribeToCaseDetails();
13108
+ }
13108
13109
  this.dialogConfig = initDialog();
13109
13110
  // EUI-3403. The field was not being registered when there was no value and the field
13110
13111
  // itself was not mandatory, which meant that show_conditions would not be evaluated.
@@ -13117,9 +13118,6 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
13117
13118
  else {
13118
13119
  this.createDocumentForm(document);
13119
13120
  }
13120
- if (this.appConfig.getDocumentSecureMode()) {
13121
- this.subscribeToCaseDetails();
13122
- }
13123
13121
  }
13124
13122
  ngOnDestroy() {
13125
13123
  if (this.fileUploadSubscription) {
@@ -13128,8 +13126,11 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
13128
13126
  if (this.dialogSubscription) {
13129
13127
  this.dialogSubscription.unsubscribe();
13130
13128
  }
13131
- if (this.caseEventSubscription) {
13132
- this.caseEventSubscription.unsubscribe();
13129
+ if (this.caseNotifierSubscription) {
13130
+ this.caseNotifierSubscription.unsubscribe();
13131
+ }
13132
+ if (this.jurisdictionSubs) {
13133
+ this.jurisdictionSubs.unsubscribe();
13133
13134
  }
13134
13135
  }
13135
13136
  isUploadInProgress() {
@@ -13180,7 +13181,9 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
13180
13181
  triggerReplace() {
13181
13182
  if (this.confirmReplaceResult === 'Replace') {
13182
13183
  this.openFileDialog();
13184
+ return true;
13183
13185
  }
13186
+ return false;
13184
13187
  }
13185
13188
  getUploadedFileName() {
13186
13189
  if (this.uploadedDocument) {
@@ -13214,10 +13217,27 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
13214
13217
  this.triggerReplace();
13215
13218
  });
13216
13219
  }
13220
+ // Depending on the context, we can get the case type and jurisdiction from different sources
13221
+ // If we are running an event, the caseNotifier will have the current case
13222
+ // If we are creating a case, the case doesn't exist yet, so the caseNotifier can't help
13223
+ // Instead we can use the eventTrigger to get the case type, and the jurisdiction service to
13224
+ // get the currently selected jurisdiction
13217
13225
  subscribeToCaseDetails() {
13218
- this.caseEventSubscription = this.caseNotifier.caseView.subscribe({
13226
+ this.caseNotifierSubscription = this.caseNotifier.caseView.subscribe({
13219
13227
  next: (caseDetails) => {
13220
- this.caseDetails = caseDetails;
13228
+ var _a, _b;
13229
+ this.caseTypeId = caseDetails === null || caseDetails === void 0 ? void 0 : caseDetails.case_id;
13230
+ this.jurisdictionId = (_b = (_a = caseDetails === null || caseDetails === void 0 ? void 0 : caseDetails.case_type) === null || _a === void 0 ? void 0 : _a.jurisdiction) === null || _b === void 0 ? void 0 : _b.id;
13231
+ }
13232
+ });
13233
+ this.jurisdictionSubs = this.jurisdictionService.selectedJurisdictionBS.subscribe({
13234
+ next: (jurisdiction) => {
13235
+ if (jurisdiction) {
13236
+ this.jurisdictionId = jurisdiction.id;
13237
+ if (jurisdiction.currentCaseType) {
13238
+ this.caseTypeId = jurisdiction.currentCaseType.id;
13239
+ }
13240
+ }
13221
13241
  }
13222
13242
  });
13223
13243
  }
@@ -13258,7 +13278,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
13258
13278
  document_filename: new FormControl(document.document_filename, Validators.required)
13259
13279
  };
13260
13280
  documentFormGroup = this.secureModeOn ? Object.assign(Object.assign({}, documentFormGroup), { document_hash: new FormControl(document.document_hash) }) : documentFormGroup;
13261
- this.uploadedDocument = this.registerControl(new UntypedFormGroup(documentFormGroup), true);
13281
+ this.uploadedDocument = this.registerControl(new FormGroup(documentFormGroup), true);
13262
13282
  }
13263
13283
  createDocumentForm(document) {
13264
13284
  let documentFormGroup = {
@@ -13267,7 +13287,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
13267
13287
  document_filename: new FormControl(document.document_filename)
13268
13288
  };
13269
13289
  documentFormGroup = this.secureModeOn ? Object.assign(Object.assign({}, documentFormGroup), { document_hash: new FormControl(document.document_hash) }) : documentFormGroup;
13270
- this.uploadedDocument = this.registerControl(new UntypedFormGroup(documentFormGroup), true);
13290
+ this.uploadedDocument = this.registerControl(new FormGroup(documentFormGroup), true);
13271
13291
  }
13272
13292
  getErrorMessage(error) {
13273
13293
  // Document Management unavailable
@@ -13281,13 +13301,8 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
13281
13301
  documentUpload.append('files', selectedFile, selectedFile.name);
13282
13302
  documentUpload.append('classification', 'PUBLIC');
13283
13303
  if (this.appConfig.getDocumentSecureMode()) {
13284
- const caseTypeId = this.caseDetails &&
13285
- this.caseDetails.case_type &&
13286
- this.caseDetails.case_type.id ? this.caseDetails.case_type.id : null;
13287
- const caseTypeJurisdictionId = this.caseDetails &&
13288
- this.caseDetails.case_type &&
13289
- this.caseDetails.case_type.jurisdiction &&
13290
- this.caseDetails.case_type.jurisdiction.id ? this.caseDetails.case_type.jurisdiction.id : null;
13304
+ const caseTypeId = this.caseTypeId ? this.caseTypeId : null;
13305
+ const caseTypeJurisdictionId = this.jurisdictionId ? this.jurisdictionId : null;
13291
13306
  documentUpload.append('caseTypeId', caseTypeId);
13292
13307
  documentUpload.append('jurisdictionId', caseTypeJurisdictionId);
13293
13308
  }
@@ -13334,7 +13349,7 @@ WriteDocumentFieldComponent.DOCUMENT_HASH = 'document_hash';
13334
13349
  WriteDocumentFieldComponent.UPLOAD_ERROR_FILE_REQUIRED = 'File required';
13335
13350
  WriteDocumentFieldComponent.UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
13336
13351
  WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
13337
- WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$4.MatDialog), i0.ɵɵdirectiveInject(FileUploadStateService)); };
13352
+ WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$4.MatLegacyDialog), i0.ɵɵdirectiveInject(FileUploadStateService), i0.ɵɵdirectiveInject(JurisdictionService)); };
13338
13353
  WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
13339
13354
  if (rf & 1) {
13340
13355
  i0.ɵɵviewQuery(_c0$N, 5);
@@ -13401,7 +13416,7 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
13401
13416
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDocumentFieldComponent, [{
13402
13417
  type: Component,
13403
13418
  args: [{ selector: 'ccd-write-document-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error bottom-30': !valid}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" attr.aria-label=\"{{caseField | ccdFieldLabel}}\">{{(caseField | ccdFieldLabel) | rpxTranslate}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"fileUploadMessages && !valid\">{{fileUploadMessages | rpxTranslate}}</span>\n\n <div>\n <!--<span *ngIf=\"getUploadedFileName()\" class=\"text-16\">File name: {{getUploadedFileName()}}</span>-->\n <ccd-read-document-field *ngIf=\"caseField\" [caseField]=\"caseField\"></ccd-read-document-field>\n </div>\n\n <div style='position:relative'>\n\n <div [id]=\"createElementId('fileInputWrapper')\" (click)=\"fileSelectEvent()\"></div>\n <input class=\"form-control bottom-30\" [id]=\"id()\" type=\"file\" (keydown.Tab)=\"fileValidationsOnTab()\" (change)=\"fileChangeEvent($event)\"\n accept=\"{{caseField.field_type.regular_expression}}\" #fileInput/>\n </div>\n</div>\n<div class=\"form-group bottom-30\">\n <button class=\"button button-secondary\" type=\"button\" aria-label=\"Cancel upload\" (click)=\"cancelUpload()\" [disabled]=\"!isUploadInProgress()\">{{'Cancel upload' | rpxTranslate}}</button>\n</div>\n" }]
13404
- }], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$4.MatDialog }, { type: FileUploadStateService }]; }, { fileInput: [{
13419
+ }], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$4.MatLegacyDialog }, { type: FileUploadStateService }, { type: JurisdictionService }]; }, { fileInput: [{
13405
13420
  type: ViewChild,
13406
13421
  args: ['fileInput', { static: false }]
13407
13422
  }], clickout: [{
@@ -14635,7 +14650,7 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
14635
14650
  var _a;
14636
14651
  super.ngOnInit();
14637
14652
  this.judicialUserControl = new FormControl(this.caseField.value);
14638
- // FormControl needs to be added to the main UntypedFormGroup so it can be picked up by the PageValidationService when
14653
+ // FormControl needs to be added to the main FormGroup so it can be picked up by the PageValidationService when
14639
14654
  // checking if the page is valid. formGroup.setControl() is used here to ensure any existing JudicialUser
14640
14655
  // FormControl is replaced when the component is re-initialised, for example, if the user navigates away then
14641
14656
  // back to the page containing the JudicialUser field
@@ -14687,6 +14702,17 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
14687
14702
  this.jurisdiction = caseInfo === null || caseInfo === void 0 ? void 0 : caseInfo.jurisdiction;
14688
14703
  this.caseType = caseInfo === null || caseInfo === void 0 ? void 0 : caseInfo.caseType;
14689
14704
  }
14705
+ else {
14706
+ // If there is no case info, attempt to get the current jurisdiction and case type via the JurisdictionService
14707
+ this.jurisdictionSubscription = this.jurisdictionService.selectedJurisdictionBS.subscribe((jurisdiction) => {
14708
+ if (jurisdiction) {
14709
+ this.jurisdiction = jurisdiction.id;
14710
+ if (jurisdiction.currentCaseType) {
14711
+ this.caseType = jurisdiction.currentCaseType.id;
14712
+ }
14713
+ }
14714
+ });
14715
+ }
14690
14716
  }
14691
14717
  displayJudicialUser(judicialUser) {
14692
14718
  return judicialUser
@@ -14732,6 +14758,10 @@ class WriteJudicialUserFieldComponent extends WriteComplexFieldComponent {
14732
14758
  this.judicialUserControl.setValidators(Validators.required);
14733
14759
  }
14734
14760
  }
14761
+ ngOnDestroy() {
14762
+ var _a;
14763
+ (_a = this.jurisdictionSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
14764
+ }
14735
14765
  }
14736
14766
  WriteJudicialUserFieldComponent.ɵfac = function WriteJudicialUserFieldComponent_Factory(t) { return new (t || WriteJudicialUserFieldComponent)(i0.ɵɵdirectiveInject(JurisdictionService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(CaseFlagRefdataService), i0.ɵɵdirectiveInject(IsCompoundPipe), i0.ɵɵdirectiveInject(FormValidatorsService)); };
14737
14767
  WriteJudicialUserFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteJudicialUserFieldComponent, selectors: [["ccd-write-judicial-user-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars: 17, consts: [[1, "form-group", 3, "formGroup", "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "form-control", "bottom-30", 3, "id", "formControl", "matAutocomplete", "blur"], ["autoActiveFirstOption", "", 3, "displayWith"], ["autoComplete", "matAutocomplete"], ["class", "select-option", 3, "ngClass", "value", "onSelectionChange", 4, "ngFor", "ngForOf"], ["class", "select-option", "disabled", "", 4, "ngIf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "select-option", 3, "ngClass", "value", "onSelectionChange"], ["disabled", "", 1, "select-option"]], template: function WriteJudicialUserFieldComponent_Template(rf, ctx) {
@@ -14773,7 +14803,7 @@ WriteJudicialUserFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ t
14773
14803
  i0.ɵɵadvance(1);
14774
14804
  i0.ɵɵproperty("ngIf", ctx.invalidSearchTerm);
14775
14805
  }
14776
- }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormControlDirective, i3.FormGroupDirective, i5.MatAutocomplete, i6.MatOption, i5.MatAutocompleteTrigger, i1.AsyncPipe, FieldLabelPipe, FirstErrorPipe], styles: [".mat-option[_ngcontent-%COMP%]:hover{background:#2596be}.mat-option.select-option[_ngcontent-%COMP%]:hover{background:#1d70b8;color:#fff}.hide-autocomplete[_ngcontent-%COMP%]{display:none}"] });
14806
+ }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormControlDirective, i3.FormGroupDirective, i5.MatLegacyAutocomplete, i5.MatLegacyAutocompleteTrigger, i6.MatLegacyOption, i1.AsyncPipe, FieldLabelPipe, FirstErrorPipe], styles: [".mat-option[_ngcontent-%COMP%]:hover{background:#2596be}.mat-option.select-option[_ngcontent-%COMP%]:hover{background:#1d70b8;color:#fff}.hide-autocomplete[_ngcontent-%COMP%]{display:none}"] });
14777
14807
  (function () {
14778
14808
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteJudicialUserFieldComponent, [{
14779
14809
  type: Component,
@@ -17067,7 +17097,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
17067
17097
  this.linkedCasesService.caseFieldValue = caseFieldValue.filter(item => unlinkedCaseRefereneIds.indexOf(item.id) === -1);
17068
17098
  }
17069
17099
  this.formGroup.value.caseLinks = this.linkedCasesService.caseFieldValue;
17070
- this.caseEditForm.controls['data'] = new UntypedFormGroup({ caseLinks: new FormControl(this.linkedCasesService.caseFieldValue || []) });
17100
+ this.caseEditForm.controls['data'] = new FormGroup({ caseLinks: new FormControl(this.linkedCasesService.caseFieldValue || []) });
17071
17101
  this.caseEditDataService.setCaseEditForm(this.caseEditForm);
17072
17102
  }
17073
17103
  isAtFinalPage() {
@@ -17770,7 +17800,7 @@ class WriteOrderSummaryFieldComponent extends AbstractFieldWriteComponent {
17770
17800
  and has to be built manually.
17771
17801
  */
17772
17802
  ngOnInit() {
17773
- const orderSummaryGroup = this.registerControl(new UntypedFormGroup({}), true);
17803
+ const orderSummaryGroup = this.registerControl(new FormGroup({}), true);
17774
17804
  const paymentReference = new FormControl(this.caseField.value.PaymentReference);
17775
17805
  orderSummaryGroup.addControl('PaymentReference', paymentReference);
17776
17806
  const paymentTotal = new FormControl(this.caseField.value.PaymentTotal);
@@ -17782,12 +17812,12 @@ class WriteOrderSummaryFieldComponent extends AbstractFieldWriteComponent {
17782
17812
  orderSummaryGroup.addControl('Fees', feesArray);
17783
17813
  }
17784
17814
  getFeeValue(feeValue) {
17785
- const feeGroup = new UntypedFormGroup({});
17815
+ const feeGroup = new FormGroup({});
17786
17816
  feeGroup.addControl('FeeCode', new FormControl(feeValue.FeeCode));
17787
17817
  feeGroup.addControl('FeeAmount', new FormControl(feeValue.FeeAmount));
17788
17818
  feeGroup.addControl('FeeDescription', new FormControl(feeValue.FeeDescription));
17789
17819
  feeGroup.addControl('FeeVersion', new FormControl(feeValue.FeeVersion));
17790
- const feeValueGroup = new UntypedFormGroup({});
17820
+ const feeValueGroup = new FormGroup({});
17791
17821
  feeValueGroup.addControl('value', feeGroup);
17792
17822
  return feeValueGroup;
17793
17823
  }
@@ -18078,7 +18108,7 @@ class WriteOrganisationFieldComponent extends AbstractFieldWriteComponent {
18078
18108
  this.searchOrgTextFormControl = new FormControl('');
18079
18109
  this.searchOrgValue$ = this.searchOrgTextFormControl.valueChanges;
18080
18110
  this.searchOrgValue$.subscribe(value => this.onSearchOrg(value));
18081
- this.organisationFormGroup = this.registerControl(new UntypedFormGroup({}), true);
18111
+ this.organisationFormGroup = this.registerControl(new FormGroup({}), true);
18082
18112
  if (this.parent && this.parent.controls && this.parent.controls.hasOwnProperty(WriteOrganisationFieldComponent.PRE_POPULATE_TO_USERS_ORGANISATION)
18083
18113
  && this.parent.controls[WriteOrganisationFieldComponent.PRE_POPULATE_TO_USERS_ORGANISATION].value
18084
18114
  && this.parent.controls[WriteOrganisationFieldComponent.PRE_POPULATE_TO_USERS_ORGANISATION].value.toUpperCase()
@@ -19008,7 +19038,7 @@ class FieldReadComponent extends AbstractFieldReadComponent {
19008
19038
  this.resolver = resolver;
19009
19039
  this.paletteService = paletteService;
19010
19040
  this.withLabel = false;
19011
- this.formGroup = new UntypedFormGroup({});
19041
+ this.formGroup = new FormGroup({});
19012
19042
  this.caseFields = [];
19013
19043
  }
19014
19044
  ngOnInit() {
@@ -19031,7 +19061,7 @@ class FieldReadComponent extends AbstractFieldReadComponent {
19031
19061
  }
19032
19062
  component.instance['caseField'] = this.caseField;
19033
19063
  component.instance['caseFields'] = this.caseFields;
19034
- component.instance['UntypedFormGroup'] = this.formGroup;
19064
+ component.instance['formGroup'] = this.formGroup;
19035
19065
  component.instance['topLevelFormGroup'] = this.topLevelFormGroup;
19036
19066
  component.instance['idPrefix'] = this.idPrefix;
19037
19067
  component.instance['parent'] = this.parent;
@@ -19113,7 +19143,7 @@ class FieldWriteComponent extends AbstractFieldWriteComponent {
19113
19143
  }
19114
19144
  component.instance['caseField'] = this.caseField;
19115
19145
  component.instance['caseFields'] = this.caseFields;
19116
- component.instance['UntypedFormGroup'] = this.formGroup;
19146
+ component.instance['formGroup'] = this.formGroup;
19117
19147
  component.instance['parent'] = this.parent;
19118
19148
  component.instance['idPrefix'] = this.idPrefix;
19119
19149
  if (this.caseField.field_type.id === 'AddressGlobal') {
@@ -19373,7 +19403,7 @@ class CaseFileViewFolderSelectorComponent {
19373
19403
  return null;
19374
19404
  }
19375
19405
  }
19376
- CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0.ɵɵdirectiveInject(i1$4.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
19406
+ CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0.ɵɵdirectiveInject(i1$4.MatLegacyDialogRef), i0.ɵɵdirectiveInject(MAT_LEGACY_DIALOG_DATA)); };
19377
19407
  CaseFileViewFolderSelectorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [[1, "close", 3, "click"], [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"], ["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) {
19378
19408
  if (rf & 1) {
19379
19409
  i0.ɵɵelementStart(0, "div", 0);
@@ -19410,9 +19440,9 @@ CaseFileViewFolderSelectorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent
19410
19440
  type: Component,
19411
19441
  args: [{ selector: 'xui-case-file-view-folder-selector', encapsulation: ViewEncapsulation.None, template: "<div class=\"close\" (click)=\"cancel()\"></div>\n<h2 class=\"govuk-heading-l\">Move File</h2>\n<p>Where do you want to move \"{{ data.document.document_filename }}\" file?</p>\n<div class=\"folders govuk-radios govuk-radios--conditional\">\n <ng-container *ngFor=\"let cat of currentCategories\">\n <ng-container *ngTemplateOutlet=\"folder;context:{cat:cat,level:1}\"></ng-container>\n </ng-container>\n</div>\n<div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"save()\">Save</button>\n <a (click)=\"cancel()\" class=\"cancel\">Cancel</a>\n</div>\n\n<ng-template #folder let-cat=\"cat\" let-level=\"level\">\n <div class=\"folder govuk-radios__item\">\n <input class=\"govuk-radios__input\" type=\"radio\" name=\"level-{{level}}\" [id]=\"cat.category_id\" (click)=\"handleChange($event)\" />\n <label class=\"govuk-label govuk-radios__label\" [for]=\"cat.category_id\">\n <img class=\"iconImg\" src=\"/assets/images/folder.png\" alt=\"Folder icon\" />\n {{ cat.category_name }}\n </label>\n <ng-container *ngFor=\"let subcat of cat.sub_categories\">\n <ng-container *ngTemplateOutlet=\"folder;context:{cat:subcat,level:level+1}\"></ng-container>\n </ng-container>\n </div>\n</ng-template>", styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #CCC;margin:0 0 -1px}.folder:last-child{border-bottom:1px solid #CCC}.folders>.folder{display:block}input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat center center;cursor:pointer}.cancel{cursor:pointer}.cdk-overlay-pane{overflow:auto}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#EEE}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#CCC}\n"] }]
19412
19442
  }], function () {
19413
- return [{ type: i1$4.MatDialogRef }, { type: undefined, decorators: [{
19443
+ return [{ type: i1$4.MatLegacyDialogRef }, { type: undefined, decorators: [{
19414
19444
  type: Inject,
19415
- args: [MAT_DIALOG_DATA]
19445
+ args: [MAT_LEGACY_DIALOG_DATA]
19416
19446
  }] }];
19417
19447
  }, null);
19418
19448
  })();
@@ -19827,7 +19857,7 @@ class CaseFileViewFolderComponent {
19827
19857
  }
19828
19858
  }
19829
19859
  ngOnInit() {
19830
- this.documentFilterFormGroup = new UntypedFormGroup({});
19860
+ this.documentFilterFormGroup = new FormGroup({});
19831
19861
  this.documentSearchFormControl = new FormControl('');
19832
19862
  this.documentFilterFormGroup.addControl(CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME, this.documentSearchFormControl);
19833
19863
  // Listen to search input and initiate filter documents if at least three characters entered
@@ -20008,7 +20038,7 @@ class CaseFileViewFolderComponent {
20008
20038
  CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
20009
20039
  CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
20010
20040
  CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
20011
- CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$4.MatDialog)); };
20041
+ CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$4.MatLegacyDialog)); };
20012
20042
  CaseFileViewFolderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵ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) {
20013
20043
  if (rf & 1) {
20014
20044
  i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
@@ -20035,7 +20065,7 @@ CaseFileViewFolderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
20035
20065
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
20036
20066
  type: Component,
20037
20067
  args: [{ selector: 'ccd-case-file-view-folder', template: "<div class=\"document-filter-container\">\n <div class=\"form-group document-filter\" [formGroup]=\"documentFilterFormGroup\">\n <input class=\"form-control document-search\"\n type=\"search\"\n id=\"document-search\"\n name=\"documentSearchFormControl\"\n formControlName=\"documentSearchFormControl\"\n placeholder=\"Search by document name\">\n </div>\n</div>\n\n<div class=\"document-folders-header\">\n <div class=\"document-folders-header__title\">Documents ({{ documentCount }})</div>\n <div>\n <ccd-case-file-view-folder-sort\n (sortAscending)=\"sortDataSourceAscAlphabetically()\"\n (sortDescending)=\"sortDataSourceDescAlphabetically()\"\n ></ccd-case-file-view-folder-sort>\n </div>\n</div>\n\n<div class=\"document-tree-container\" *ngIf=\"documentTreeData\">\n <div *ngIf=\"!nestedDataSource || nestedDataSource.length === 0\">\n No results found\n </div>\n <div>\n <cdk-tree [dataSource]=\"nestedDataSource\" [treeControl]=\"nestedTreeControl\">\n <!-- document -->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__node--document\" *cdkTreeNodeDef=\"let node\">\n <button class=\"node\" (click)=\"selectedNodeItem = node; clickedDocument.emit(node)\"\n [class.node--selected]=\"selectedNodeItem?.name === node.name\">\n <div class=\"node__icon\" disabled>\n <img src=\"/assets/img/case-file-view/case-file-view-document.svg\" class=\"node__iconImg\" alt=\"Document icon\">\n </div>\n <span class=\"node__name node-name-document\">{{node.name}}</span>\n <div class=\"node__document-options\">\n <ccd-case-file-view-folder-document-actions\n (changeFolderAction)=\"triggerDocumentAction('changeFolder', node)\"\n (openInANewTabAction)=\"triggerDocumentAction('openInANewTab', node)\"\n (downloadAction)=\"triggerDocumentAction('download', node)\"\n (printAction)=\"triggerDocumentAction('print', node)\"\n [allowMoving]=\"allowMoving\"\n >\n </ccd-case-file-view-folder-document-actions>\n </div>\n </button>\n </cdk-nested-tree-node>\n <!-- folder-->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__folder\" *cdkTreeNodeDef=\"let node; when: nestedChildren\">\n <button class=\"node\" cdkTreeNodeToggle>\n <div class=\"node__icon\" [attr.aria-label]=\"'toggle ' + node.name\" >\n <img class=\"node__iconImg\"\n [src]=\"nestedTreeControl.isExpanded(node) ? '/assets/images/folder-open.png' : '/assets/images/folder.png'\" alt=\"Folder icon\">\n <span class=\"node__count\">{{node.childDocumentCount}}</span>\n </div>\n <span class=\"node__name node__name--folder\">{{node.name}}</span>\n </button>\n\n <div [class.document-tree-invisible]=\"!nestedTreeControl.isExpanded(node)\">\n <ng-container cdkTreeNodeOutlet></ng-container>\n </div>\n </cdk-nested-tree-node>\n </cdk-tree>\n </div>\n</div>\n", styles: [":host{display:flex;height:100%;flex-direction:column}:host .document-tree-container{flex:1 0}.document-filter-container{border-bottom:2px solid #C9C9C9}.document-filter-container .document-filter{padding:10px}.document-filter-container .document-filter .document-search{background:url(/assets/images/icon-search-black.svg) no-repeat right #FFF;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container .documents-title{height:30%;margin-left:8px;font-weight:700}.document-tree-container{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node{display:block}.document-tree-container__node .document-tree-container__node{padding-left:40px}.document-tree-container .document-tree-invisible{display:none}.document-tree-container::-webkit-scrollbar{width:7px}.document-tree-container::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container::-webkit-scrollbar-button{display:none}.document-tree-container::-webkit-scrollbar-track-piece{background:#EEE}.document-tree-container::-webkit-scrollbar-thumb{background:#CCC}.document-folders-header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #C9C9C9;padding:10px}.document-folders-header__title{font-weight:700}.node{display:flex;align-items:center;width:100%;padding:6px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected{background:#fff2cc}.node__icon{position:relative;display:inline-block}.node__count{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg{display:block;height:30px;width:30px}.node__name{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options{margin-left:auto;margin-right:0}\n"] }]
20038
- }], function () { return [{ type: WindowService }, { type: i1$2.Router }, { type: DocumentManagementService }, { type: i1$4.MatDialog }]; }, { categoriesAndDocuments: [{
20068
+ }], function () { return [{ type: WindowService }, { type: i1$2.Router }, { type: DocumentManagementService }, { type: i1$4.MatLegacyDialog }]; }, { categoriesAndDocuments: [{
20039
20069
  type: Input
20040
20070
  }], allowMoving: [{
20041
20071
  type: Input
@@ -20954,7 +20984,7 @@ SearchLanguageInterpreterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent(
20954
20984
  i0.ɵɵadvance(1);
20955
20985
  i0.ɵɵproperty("ngIf", ctx.isCheckboxEnabled);
20956
20986
  }
20957
- }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormGroupDirective, i3.FormControlName, i3$2.MatInput, i5.MatAutocomplete, i6.MatOption, i5.MatAutocompleteTrigger, i1.AsyncPipe], styles: [".autocomplete__input--show-all-values[_ngcontent-%COMP%]{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down[_ngcontent-%COMP%]{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu[_ngcontent-%COMP%]{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible[_ngcontent-%COMP%]{display:block}.autocomplete__menu--hidden[_ngcontent-%COMP%]{display:none}.autocomplete__menu--overlay[_ngcontent-%COMP%]{box-shadow:#00000042 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline[_ngcontent-%COMP%]{position:relative}.autocomplete__option[_ngcontent-%COMP%]{border-bottom:solid #b1b4b6;border-width:1px 0;cursor:pointer;display:block;position:relative}.autocomplete__option[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{pointer-events:none}.autocomplete__option[_ngcontent-%COMP%]:first-of-type{border-top-width:0}.autocomplete__option[_ngcontent-%COMP%]:last-of-type{border-bottom-width:0}.autocomplete__option--odd[_ngcontent-%COMP%]{background-color:#fafafa}.autocomplete__option--focused[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results[_ngcontent-%COMP%]{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.25}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{padding:5px}@media (min-width: 641px){.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.31579}}.div-action[_ngcontent-%COMP%]{display:inline-block}.add-location[_ngcontent-%COMP%]{display:inline}.remove-location-button[_ngcontent-%COMP%]{margin:5px}.hide-autocomplete[_ngcontent-%COMP%]{display:none}.auto-complete-container[_ngcontent-%COMP%]{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input[_ngcontent-%COMP%]{line-height:24px;font-size:19px}.hidden[_ngcontent-%COMP%]{display:none}.search-language__input[_ngcontent-%COMP%]{position:relative;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='40' height='40'%3E%3Cpath d='M25.7 24.8L21.9 21c.7-1 1.1-2.2 1.1-3.5 0-3.6-2.9-6.5-6.5-6.5S10 13.9 10 17.5s2.9 6.5 6.5 6.5c1.6 0 3-.6 4.1-1.5l3.7 3.7 1.4-1.4zM12 17.5c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5-2 4.5-4.5 4.5-4.5-2-4.5-4.5z' fill='%23505a5f'%3E%3C/path%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center left -2px;background-size:40px 40px;padding-left:35px}"] });
20987
+ }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormGroupDirective, i3.FormControlName, i3$2.MatLegacyInput, i5.MatLegacyAutocomplete, i5.MatLegacyAutocompleteTrigger, i6.MatLegacyOption, i1.AsyncPipe], styles: [".autocomplete__input--show-all-values[_ngcontent-%COMP%]{padding:5px 34px 5px 5px;cursor:pointer}.autocomplete__dropdown-arrow-down[_ngcontent-%COMP%]{z-index:-1;display:inline-block;position:absolute;right:8px;width:24px;height:24px;top:10px}.autocomplete__menu[_ngcontent-%COMP%]{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible[_ngcontent-%COMP%]{display:block}.autocomplete__menu--hidden[_ngcontent-%COMP%]{display:none}.autocomplete__menu--overlay[_ngcontent-%COMP%]{box-shadow:#00000042 0 2px 6px;left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline[_ngcontent-%COMP%]{position:relative}.autocomplete__option[_ngcontent-%COMP%]{border-bottom:solid #b1b4b6;border-width:1px 0;cursor:pointer;display:block;position:relative}.autocomplete__option[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{pointer-events:none}.autocomplete__option[_ngcontent-%COMP%]:first-of-type{border-top-width:0}.autocomplete__option[_ngcontent-%COMP%]:last-of-type{border-bottom-width:0}.autocomplete__option--odd[_ngcontent-%COMP%]{background-color:#fafafa}.autocomplete__option--focused[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:0}.autocomplete__option--no-results[_ngcontent-%COMP%]{background-color:#fafafa;color:#646b6f;cursor:not-allowed}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.25}.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{padding:5px}@media (min-width: 641px){.autocomplete__hint[_ngcontent-%COMP%], .autocomplete__input[_ngcontent-%COMP%], .autocomplete__option[_ngcontent-%COMP%]{font-size:13px;line-height:1.31579}}.div-action[_ngcontent-%COMP%]{display:inline-block}.add-location[_ngcontent-%COMP%]{display:inline}.remove-location-button[_ngcontent-%COMP%]{margin:5px}.hide-autocomplete[_ngcontent-%COMP%]{display:none}.auto-complete-container[_ngcontent-%COMP%]{min-width:550px;display:inline-block;margin-right:4px}.autocomplete__input[_ngcontent-%COMP%]{line-height:24px;font-size:19px}.hidden[_ngcontent-%COMP%]{display:none}.search-language__input[_ngcontent-%COMP%]{position:relative;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' width='40' height='40'%3E%3Cpath d='M25.7 24.8L21.9 21c.7-1 1.1-2.2 1.1-3.5 0-3.6-2.9-6.5-6.5-6.5S10 13.9 10 17.5s2.9 6.5 6.5 6.5c1.6 0 3-.6 4.1-1.5l3.7 3.7 1.4-1.4zM12 17.5c0-2.5 2-4.5 4.5-4.5s4.5 2 4.5 4.5-2 4.5-4.5 4.5-4.5-2-4.5-4.5z' fill='%23505a5f'%3E%3C/path%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:center left -2px;background-size:40px 40px;padding-left:35px}"] });
20958
20988
  (function () {
20959
20989
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchLanguageInterpreterComponent, [{
20960
20990
  type: Component,
@@ -22511,7 +22541,7 @@ DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Dat
22511
22541
  {
22512
22542
  provide: NgxMatDateAdapter,
22513
22543
  useClass: NgxMatMomentAdapter,
22514
- deps: [MAT_DATE_LOCALE, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
22544
+ deps: [MAT_LEGACY_DATE_LOCALE, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
22515
22545
  },
22516
22546
  { provide: NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
22517
22547
  ]), i0.ɵɵInheritDefinitionFeature], decls: 14, vars: 26, consts: [[1, "govuk-form-group", "bottom-30", 3, "id", "ngClass"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "datepicker-container"], ["ng-model-options", "{timezone:'utc'}", 1, "govuk-input", 3, "min", "max", "formControl", "ngxMatDatetimePicker", "focusin", "focusout", "dateChange"], ["input", ""], ["matSuffix", "", "id", "pickerOpener", 3, "for"], [3, "color", "touchUi", "hideTime", "startView", "stepHour", "stepSecond", "stepMinute", "showSeconds", "showSpinners", "disableMinute", "enableMeridian", "yearSelected", "monthSelected", "opened"], ["picker", ""], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function DatetimePickerComponent_Template(rf, ctx) {
@@ -22552,7 +22582,7 @@ DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Dat
22552
22582
  i0.ɵɵadvance(1);
22553
22583
  i0.ɵɵproperty("color", ctx.color)("touchUi", ctx.touchUi)("hideTime", ctx.hideTime)("startView", ctx.startView)("stepHour", ctx.stepHour)("stepSecond", ctx.stepSecond)("stepMinute", ctx.stepMinute)("showSeconds", ctx.showSeconds)("showSpinners", ctx.showSpinners)("disableMinute", ctx.disableMinute)("enableMeridian", ctx.enableMeridian);
22554
22584
  }
22555
- }, dependencies: [i1.NgClass, i1.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, i4.NgxMatDatetimepicker, i4.NgxMatDatepickerInput, i5$1.MatSuffix, i6$2.MatDatepickerToggle, FieldLabelPipe, FirstErrorPipe, i1$1.RpxTranslatePipe], styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #ffdd00;border:1px solid black}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #ffdd00}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.cdk-overlay-container .mat-datepicker-content{border:1px solid black;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(1):after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:nth-of-type(1){visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(1) [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-last-child(1) [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-last-child(1).ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \\25b2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\\25bc\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid black;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}\n"], encapsulation: 2 });
22585
+ }, dependencies: [i1.NgClass, i1.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, i4.NgxMatDatetimepicker, i4.NgxMatDatepickerInput, i5$1.MatLegacySuffix, i6$2.MatDatepickerToggle, FieldLabelPipe, FirstErrorPipe, i1$1.RpxTranslatePipe], styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #ffdd00;border:1px solid black}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #ffdd00}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.cdk-overlay-container .mat-datepicker-content{border:1px solid black;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(1):after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:nth-of-type(1){visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(1) [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-last-child(1) [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-last-child(1).ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \\25b2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\\25bc\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid black;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}\n"], encapsulation: 2 });
22556
22586
  (function () {
22557
22587
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatetimePickerComponent, [{
22558
22588
  type: Component,
@@ -22561,7 +22591,7 @@ DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Dat
22561
22591
  {
22562
22592
  provide: NgxMatDateAdapter,
22563
22593
  useClass: NgxMatMomentAdapter,
22564
- deps: [MAT_DATE_LOCALE, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
22594
+ deps: [MAT_LEGACY_DATE_LOCALE, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
22565
22595
  },
22566
22596
  { provide: NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
22567
22597
  ], template: "<div class=\"govuk-form-group bottom-30\" [id]=\"caseField.id\"\n [ngClass]=\"{'form-group-error': dateControl && !dateControl.valid && dateControl.dirty}\">\n <fieldset>\n <legend>\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel) | rpxTranslate }}</span>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.errors && dateControl.dirty && !(minError || maxError)\">{{(dateControl.errors | ccdFirstError:caseField.label) | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && minError\">{{'This date is older than the minimum date allowed' | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && maxError\">{{'This date is later than the maximum date allowed' | rpxTranslate}}</span>\n </legend>\n <div class=\"datepicker-container\">\n <input class=\"govuk-input\"\n #input\n attr.aria-label=\"Please enter a date and time in the format | rpxTranslate {{dateTimeEntryFormat}}\"\n [min]=\"minDate(caseField)\"\n [max]=\"maxDate(caseField)\"\n [formControl]=\"dateControl\"\n [ngxMatDatetimePicker]=\"picker\"\n (focusin)=\"focusIn()\"\n (focusout)=\"focusOut()\"\n (dateChange)=\"valueChanged()\"\n ng-model-options=\"{timezone:'utc'}\"\n >\n <mat-datepicker-toggle matSuffix [for]=\"picker\" id=\"pickerOpener\"></mat-datepicker-toggle>\n <ngx-mat-datetime-picker #picker\n [color]=\"color\"\n [touchUi]=\"touchUi\"\n [hideTime]=\"hideTime\"\n [startView]=\"startView\"\n [stepHour]=\"stepHour\"\n [stepSecond]=\"stepSecond\"\n [stepMinute]=\"stepMinute\"\n [showSeconds]=\"showSeconds\"\n [showSpinners]=\"showSpinners\"\n [disableMinute]=\"disableMinute\"\n [enableMeridian]=\"enableMeridian\"\n (yearSelected)=\"yearSelected($event)\"\n (monthSelected)=\"monthSelected($event)\"\n (opened)=\"toggleClick()\"\n >\n </ngx-mat-datetime-picker>\n </div>\n </fieldset>\n</div>\n", styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #ffdd00;border:1px solid black}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #ffdd00}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.cdk-overlay-container .mat-datepicker-content{border:1px solid black;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(1):after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:nth-of-type(1){visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(1) [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-last-child(1) [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-last-child(1).ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \\25b2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\\25bc\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid black;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}\n"] }]
@@ -23996,15 +24026,15 @@ PaletteModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
23996
24026
  CaseFlagRefdataService,
23997
24027
  YesNoService,
23998
24028
  CollectionCreateCheckerService,
24029
+ JurisdictionService,
23999
24030
  PaletteService,
24000
24031
  FormValidatorsService,
24001
24032
  FileUploadStateService,
24002
24033
  FileUploadProgressGuard,
24003
24034
  WindowService,
24004
24035
  CommonDataService,
24005
- JurisdictionService,
24006
24036
  LinkedCasesService,
24007
- { provide: MAT_DATE_LOCALE, useValue: 'en-GB' }
24037
+ { provide: MAT_LEGACY_DATE_LOCALE, useValue: 'en-GB' }
24008
24038
  ], imports: [CommonModule,
24009
24039
  RouterModule,
24010
24040
  FormsModule,
@@ -24023,10 +24053,10 @@ PaletteModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
24023
24053
  NgxMatDatetimePickerModule,
24024
24054
  NgxMatTimepickerModule,
24025
24055
  NgxMatNativeDateModule,
24026
- MatFormFieldModule,
24027
- MatInputModule,
24056
+ MatLegacyFormFieldModule,
24057
+ MatLegacyInputModule,
24028
24058
  MatDatepickerModule,
24029
- MatAutocompleteModule,
24059
+ MatLegacyAutocompleteModule,
24030
24060
  CdkTreeModule,
24031
24061
  OverlayModule,
24032
24062
  PaymentLibModule,
@@ -24034,7 +24064,7 @@ PaletteModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
24034
24064
  RpxTranslationModule.forChild(),
24035
24065
  CdkTreeModule,
24036
24066
  OverlayModule,
24037
- MatDialogModule,
24067
+ MatLegacyDialogModule,
24038
24068
  MediaViewerModule,
24039
24069
  LoadingModule, NgxMatDatetimePickerModule,
24040
24070
  NgxMatNativeDateModule,
@@ -24065,10 +24095,10 @@ PaletteModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
24065
24095
  NgxMatDatetimePickerModule,
24066
24096
  NgxMatTimepickerModule,
24067
24097
  NgxMatNativeDateModule,
24068
- MatFormFieldModule,
24069
- MatInputModule,
24098
+ MatLegacyFormFieldModule,
24099
+ MatLegacyInputModule,
24070
24100
  MatDatepickerModule,
24071
- MatAutocompleteModule,
24101
+ MatLegacyAutocompleteModule,
24072
24102
  CdkTreeModule,
24073
24103
  OverlayModule,
24074
24104
  PaymentLibModule,
@@ -24076,7 +24106,7 @@ PaletteModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
24076
24106
  RpxTranslationModule.forChild(),
24077
24107
  CdkTreeModule,
24078
24108
  OverlayModule,
24079
- MatDialogModule,
24109
+ MatLegacyDialogModule,
24080
24110
  MediaViewerModule,
24081
24111
  LoadingModule
24082
24112
  ],
@@ -24102,18 +24132,17 @@ PaletteModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
24102
24132
  CaseFlagRefdataService,
24103
24133
  YesNoService,
24104
24134
  CollectionCreateCheckerService,
24135
+ JurisdictionService,
24105
24136
  PaletteService,
24106
24137
  FormValidatorsService,
24107
24138
  FileUploadStateService,
24108
24139
  FileUploadProgressGuard,
24109
24140
  WindowService,
24110
24141
  CommonDataService,
24111
- JurisdictionService,
24112
24142
  LinkedCasesService,
24113
- { provide: MAT_DATE_LOCALE, useValue: 'en-GB' }
24143
+ { provide: MAT_LEGACY_DATE_LOCALE, useValue: 'en-GB' }
24114
24144
  ],
24115
- schemas: [NO_ERRORS_SCHEMA],
24116
- entryComponents: [CaseFileViewFolderSelectorComponent]
24145
+ schemas: [CUSTOM_ELEMENTS_SCHEMA]
24117
24146
  }]
24118
24147
  }], null, null);
24119
24148
  })();
@@ -24245,15 +24274,15 @@ PaletteModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
24245
24274
  NgxMatDatetimePickerModule,
24246
24275
  NgxMatTimepickerModule,
24247
24276
  NgxMatNativeDateModule,
24248
- MatFormFieldModule,
24249
- MatInputModule,
24277
+ MatLegacyFormFieldModule,
24278
+ MatLegacyInputModule,
24250
24279
  MatDatepickerModule,
24251
- MatAutocompleteModule,
24280
+ MatLegacyAutocompleteModule,
24252
24281
  CdkTreeModule,
24253
24282
  OverlayModule,
24254
24283
  PaymentLibModule, i2.ScrollToModule, i1$1.RpxTranslationModule, CdkTreeModule,
24255
24284
  OverlayModule,
24256
- MatDialogModule,
24285
+ MatLegacyDialogModule,
24257
24286
  MediaViewerModule,
24258
24287
  LoadingModule], exports: [NgxMatDatetimePickerModule,
24259
24288
  NgxMatNativeDateModule,
@@ -25592,13 +25621,13 @@ CaseEditorModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
25592
25621
  FormsModule,
25593
25622
  ReactiveFormsModule,
25594
25623
  CaseEditDataModule,
25595
- PaletteModule,
25596
25624
  LabelSubstitutorModule,
25597
25625
  ConditionalShowModule,
25598
25626
  ErrorsModule,
25599
25627
  PortalModule,
25600
25628
  LoadingSpinnerModule,
25601
25629
  BannersModule,
25630
+ PaletteModule,
25602
25631
  RpxTranslationModule.forChild()] });
25603
25632
  (function () {
25604
25633
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditorModule, [{
@@ -25610,13 +25639,13 @@ CaseEditorModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
25610
25639
  FormsModule,
25611
25640
  ReactiveFormsModule,
25612
25641
  CaseEditDataModule,
25613
- PaletteModule,
25614
25642
  LabelSubstitutorModule,
25615
25643
  ConditionalShowModule,
25616
25644
  ErrorsModule,
25617
25645
  PortalModule,
25618
25646
  LoadingSpinnerModule,
25619
25647
  BannersModule,
25648
+ PaletteModule,
25620
25649
  RpxTranslationModule.forChild()
25621
25650
  ],
25622
25651
  declarations: [
@@ -25690,13 +25719,13 @@ CaseEditorModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
25690
25719
  FormsModule,
25691
25720
  ReactiveFormsModule,
25692
25721
  CaseEditDataModule,
25693
- PaletteModule,
25694
25722
  LabelSubstitutorModule,
25695
25723
  ConditionalShowModule,
25696
25724
  ErrorsModule,
25697
25725
  PortalModule,
25698
25726
  LoadingSpinnerModule,
25699
- BannersModule, i1$1.RpxTranslationModule], exports: [CaseEditConfirmComponent,
25727
+ BannersModule,
25728
+ PaletteModule, i1$1.RpxTranslationModule], exports: [CaseEditConfirmComponent,
25700
25729
  CaseEditComponent,
25701
25730
  CaseEditPageComponent,
25702
25731
  CaseEditFormComponent,
@@ -25707,13 +25736,13 @@ CaseEditorModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
25707
25736
  })();
25708
25737
  i0.ɵɵsetComponentScope(CaseEditConfirmComponent, function () { return [i1.NgIf, i3.ɵNgNoValidate, i3.NgControlStatusGroup, i3.FormGroupDirective, MarkdownComponent]; }, function () { return [CaseReferencePipe, CcdCaseTitlePipe, i1$1.RpxTranslatePipe]; });
25709
25738
  i0.ɵɵsetComponentScope(CaseEditPageComponent, function () {
25710
- return [i1.NgForOf, i1.NgIf, i3.ɵNgNoValidate, i3.NgControlStatusGroup, i3.FormGroupDirective, MarkdownComponent, CallbackErrorsComponent, CaseEditFormComponent,
25739
+ return [i1.NgForOf, i1.NgIf, i3.ɵNgNoValidate, i3.NgControlStatusGroup, i3.FormGroupDirective, CallbackErrorsComponent, MarkdownComponent, CaseEditFormComponent,
25711
25740
  CaseEventCompletionComponent,
25712
25741
  CaseEditGenericErrorsComponent];
25713
25742
  }, function () { return [i1.AsyncPipe, CaseReferencePipe, CcdCaseTitlePipe, i1$1.RpxTranslatePipe]; });
25714
- i0.ɵɵsetComponentScope(CaseEditFormComponent, function () { return [i1.NgForOf, i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i3.NgControlStatusGroup, i3.FormGroupDirective, FieldReadComponent, FieldWriteComponent, LabelSubstitutorDirective, ConditionalShowFormDirective]; }, function () { return [IsCompoundPipe, IsReadOnlyAndNotCollectionPipe]; });
25743
+ i0.ɵɵsetComponentScope(CaseEditFormComponent, function () { return [i1.NgForOf, i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i3.NgControlStatusGroup, i3.FormGroupDirective, LabelSubstitutorDirective, ConditionalShowFormDirective, FieldReadComponent, FieldWriteComponent]; }, function () { return [IsCompoundPipe, IsReadOnlyAndNotCollectionPipe]; });
25715
25744
  i0.ɵɵsetComponentScope(CaseEditSubmitComponent, function () {
25716
- return [i1.NgForOf, i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i3.ɵNgNoValidate, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.MaxLengthValidator, i3.FormGroupDirective, i3.FormControlName, i3.FormGroupName, MarkdownComponent, FieldReadComponent, LabelSubstitutorDirective, CallbackErrorsComponent, CaseEventCompletionComponent,
25745
+ return [i1.NgForOf, i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i3.ɵNgNoValidate, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.MaxLengthValidator, i3.FormGroupDirective, i3.FormControlName, i3.FormGroupName, LabelSubstitutorDirective, CallbackErrorsComponent, MarkdownComponent, FieldReadComponent, CaseEventCompletionComponent,
25717
25746
  CaseEditGenericErrorsComponent];
25718
25747
  }, function () { return [IsCompoundPipe, CaseReferencePipe, CcdCaseTitlePipe, CcdCYAPageLabelFilterPipe, ReadFieldsFilterPipe, CcdPageFieldsPipe, i1$1.RpxTranslatePipe]; });
25719
25748
  i0.ɵɵsetComponentScope(CaseCreateComponent, function () { return [i1.NgIf, CaseEditComponent]; }, []);
@@ -26715,7 +26744,7 @@ class WorkbasketFiltersComponent {
26715
26744
  this.windowService = windowService;
26716
26745
  this.onApply = new EventEmitter();
26717
26746
  this.onReset = new EventEmitter();
26718
- this.formGroup = new UntypedFormGroup({});
26747
+ this.formGroup = new FormGroup({});
26719
26748
  this.initialised = false;
26720
26749
  }
26721
26750
  ngOnInit() {
@@ -26759,9 +26788,20 @@ class WorkbasketFiltersComponent {
26759
26788
  if (init) {
26760
26789
  this.windowService.setLocalStorage(SAVED_QUERY_PARAM_LOC_STORAGE, JSON.stringify(queryParams));
26761
26790
  if (Object.keys(this.formGroup.controls).length > 0) {
26791
+ // Find all "special case" JudicialUser FormControl keys and remove the corresponding values from the
26792
+ // FormGroup value because these values are not intended to be stored and subsequently passed as query string
26793
+ // parameters when calling searchCases API endpoint
26794
+ const judicialUserControlValuesToRemove = Object.keys(this.formGroup.controls).filter((key) => key.endsWith('_judicialUserControl'));
26795
+ judicialUserControlValuesToRemove.forEach((controlKey) => delete this.formGroup.value[controlKey]);
26762
26796
  this.windowService.setLocalStorage(FORM_GROUP_VAL_LOC_STORAGE, JSON.stringify(this.formGroup.value));
26763
26797
  }
26764
26798
  }
26799
+ // Announce selected jurisdiction via JurisdictionService
26800
+ if (this.selected.jurisdiction) {
26801
+ // Set the selected case type as the current case type of the selected jurisdiction
26802
+ this.selected.jurisdiction.currentCaseType = this.selected.caseType;
26803
+ this.jurisdictionService.announceSelectedJurisdiction(this.selected.jurisdiction);
26804
+ }
26765
26805
  // Apply filters
26766
26806
  this.onApply.emit({ selected: this.selected, queryParams });
26767
26807
  this.setFocusToTop();
@@ -26807,7 +26847,7 @@ class WorkbasketFiltersComponent {
26807
26847
  if (this.selected.caseType) {
26808
26848
  this.selectedCaseTypeStates = this.sortStates(this.selected.caseType.states);
26809
26849
  this.selected.caseState = null;
26810
- this.formGroup = new UntypedFormGroup({});
26850
+ this.formGroup = new FormGroup({});
26811
26851
  this.clearWorkbasketInputs();
26812
26852
  if (!this.isApplyButtonDisabled()) {
26813
26853
  this.workbasketInputFilterService.getWorkbasketInputs(this.selected.jurisdiction.id, this.selected.caseType.id).pipe(take(1)).subscribe(workbasketInputs => {
@@ -28431,7 +28471,7 @@ class DeleteOrCancelDialogComponent {
28431
28471
  this.matDialogRef.close(this.result);
28432
28472
  }
28433
28473
  }
28434
- DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0.ɵɵdirectiveInject(i1$4.MatDialogRef)); };
28474
+ DeleteOrCancelDialogComponent.ɵfac = function DeleteOrCancelDialogComponent_Factory(t) { return new (t || DeleteOrCancelDialogComponent)(i0.ɵɵdirectiveInject(i1$4.MatLegacyDialogRef)); };
28435
28475
  DeleteOrCancelDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DeleteOrCancelDialogComponent, selectors: [["ccd-delete-or-cancel-dialog"]], decls: 19, vars: 12, consts: [[1, "dialog-header"], [1, "heading-h2", "x", 3, "click"], [1, "heading-h2", "dialog-title"], [1, "dialog-info"], [1, "text-info"], ["type", "button", "title", "Delete", 1, "button", "action-button", 3, "click"], ["type", "button", "title", "Cancel", 1, "button", "button-secondary", 3, "click"]], template: function DeleteOrCancelDialogComponent_Template(rf, ctx) {
28436
28476
  if (rf & 1) {
28437
28477
  i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "h2", 1);
@@ -28472,7 +28512,7 @@ DeleteOrCancelDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
28472
28512
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DeleteOrCancelDialogComponent, [{
28473
28513
  type: Component,
28474
28514
  args: [{ selector: 'ccd-delete-or-cancel-dialog', template: "<div>\n <div class=\"dialog-header\">\n <h2 (click)=\"cancel()\" class=\"heading-h2 x\">X</h2>\n </div>\n <div>\n <h2 class=\"heading-h2 dialog-title\">{{'Are you sure you want to delete this draft?' | rpxTranslate}}</h2>\n </div>\n <div class=\"dialog-info\">\n <span class=\"text-info\">{{'You are about to delete this draft. Are you sure you want to proceed?' | rpxTranslate}}</span>\n </div>\n <div>\n <button type=\"button\" title=\"Delete\" class=\"button action-button\" (click)=\"delete()\">{{'Delete draft' | rpxTranslate}}</button>\n <button type=\"button\" title=\"Cancel\" class=\"button button-secondary\" (click)=\"cancel()\">{{'Cancel' | rpxTranslate}}</button>\n </div>\n</div>\n", styles: [".x{margin:0;padding:9px 9px 0 0;font-size:24px;font-weight:700;font-style:normal;font-stretch:normal;cursor:pointer;color:#6e7071}.dialog-header{text-align:right}.dialog-title,.dialog-info{margin:0 0 21px 25px}.action-button{margin:0 15px 0 25px}\n"] }]
28475
- }], function () { return [{ type: i1$4.MatDialogRef }]; }, null);
28515
+ }], function () { return [{ type: i1$4.MatLegacyDialogRef }]; }, null);
28476
28516
  })();
28477
28517
 
28478
28518
  class DialogsModule {
@@ -29110,8 +29150,8 @@ class CaseFullAccessViewComponent {
29110
29150
  }
29111
29151
  /**
29112
29152
  * For EUI-3825:
29113
- * Builds a UntypedFormGroup from all the CaseFields contained within the view.
29114
- * This UntypedFormGroup is necessary for evaluation the show/hide conditions of
29153
+ * Builds a FormGroup from all the CaseFields contained within the view.
29154
+ * This FormGroup is necessary for evaluation the show/hide conditions of
29115
29155
  * fields that are dependent on a field only available on a DIFFERENT tab.
29116
29156
  */
29117
29157
  buildFormGroup(caseFields) {
@@ -29121,7 +29161,7 @@ class CaseFullAccessViewComponent {
29121
29161
  value = Object.assign(Object.assign({}, value), { [caseField.id]: caseField.value });
29122
29162
  });
29123
29163
  }
29124
- return new UntypedFormGroup({ data: new FormControl(value) });
29164
+ return new FormGroup({ data: new FormControl(value) });
29125
29165
  }
29126
29166
  resetErrors() {
29127
29167
  this.error = null;
@@ -29140,7 +29180,7 @@ CaseFullAccessViewComponent.TRIGGER_TEXT_START = 'Go';
29140
29180
  CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
29141
29181
  CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
29142
29182
  CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
29143
- CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(NavigationNotifierService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(i1$4.MatDialog), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(DraftService), i0.ɵɵdirectiveInject(ErrorNotifierService), i0.ɵɵdirectiveInject(ConvertHrefToRouterService), i0.ɵɵdirectiveInject(i1.Location), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(SessionStorageService)); };
29183
+ CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(NavigationNotifierService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(ActivityPollingService), i0.ɵɵdirectiveInject(i1$4.MatLegacyDialog), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(DraftService), i0.ɵɵdirectiveInject(ErrorNotifierService), i0.ɵɵdirectiveInject(ConvertHrefToRouterService), i0.ɵɵdirectiveInject(i1.Location), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(SessionStorageService)); };
29144
29184
  CaseFullAccessViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) {
29145
29185
  if (rf & 1) {
29146
29186
  i0.ɵɵviewQuery(_c0$b, 5);
@@ -29192,7 +29232,7 @@ CaseFullAccessViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
29192
29232
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFullAccessViewComponent, [{
29193
29233
  type: Component,
29194
29234
  args: [{ selector: 'ccd-case-full-access-view', template: "<!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n<div *ngIf=\"error && !(error.callbackErrors || error.callbackWarnings || error.details)\" class=\"error-summary\"\n role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'Something went wrong' | rpxTranslate}}\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>{{\"We're working to fix the problem. Try again shortly.\" | rpxTranslate}}</p>\n <p>\n <a href=\"get-help\" target=\"_blank\">\n {{\"Contact us\" | rpxTranslate}}</a> {{\"if you're still having problems.\" | rpxTranslate}}\n </p>\n </div>\n</div>\n<!-- Callback error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'The callback data failed validation' | rpxTranslate}}\n </h2>\n <p>{{error.message | rpxTranslate}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message | rpxTranslate}}\n </li>\n </ul>\n</div>\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">{{'Print' | rpxTranslate}}</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\" (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\" *ngIf=\"activeCaseFlags\">\n <div class=\"column-full\">\n <ccd-notification-banner [notificationBannerConfig]=\"notificationBannerConfig\" (linkClicked)=\"onLinkClicked($event)\">\n </ccd-notification-banner>\n </div>\n</div>\n<div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedIndexChange)=\"tabChanged($event)\" [disableRipple]=\"true\"\n [selectedIndex]=\"selectedTabIndex\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n <mat-tab *ngFor=\"let tab of sortedTabs; let curIdx=index\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\" [attr.aria-describedby]=\"'case viewer table' | rpxTranslate\">\n <tbody>\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true : formGroup.controls['data']\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"caseFields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th id=\"case-viewer-field-label\" *ngIf=\"!isFieldToHaveNoLabel(field)\">\n <div class=\"case-viewer-label text-16\">\n {{field.label | rpxTranslate}}</div>\n </th>\n <td [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\"\n [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <th [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\"\n [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n </ccd-field-read>\n </span>\n </th>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </tbody>\n </table>\n </ng-template>\n </mat-tab>\n <mat-tab *ngFor=\"let tab of appendedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n </mat-tab-group>\n <router-outlet *ngIf=\"(prependedTabs && prependedTabs.length) || (appendedTabs && appendedTabs.length)\"></router-outlet>\n </ng-container>\n </div>\n</div>\n", styles: ["th{width:1%;white-space:nowrap;vertical-align:top}.compound-field th{padding:0}.case-viewer-controls{margin-top:47px;margin-bottom:20px}ccd-case-header{float:left;margin-right:10px}ccd-event-trigger{float:right}.case-viewer-label{min-width:300px;white-space:normal}.markdown h3{margin-bottom:0}\n"] }]
29195
- }], function () { return [{ type: i0.NgZone }, { type: i1$2.ActivatedRoute }, { type: i1$2.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$4.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1.Location }, { type: i0.ChangeDetectorRef }, { type: SessionStorageService }]; }, { hasPrint: [{
29235
+ }], function () { return [{ type: i0.NgZone }, { type: i1$2.ActivatedRoute }, { type: i1$2.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$4.MatLegacyDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i1.Location }, { type: i0.ChangeDetectorRef }, { type: SessionStorageService }]; }, { hasPrint: [{
29196
29236
  type: Input
29197
29237
  }], hasEventSelector: [{
29198
29238
  type: Input
@@ -31537,7 +31577,7 @@ CaseViewerModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
31537
31577
  CaseEditorModule,
31538
31578
  ConditionalShowModule,
31539
31579
  CaseHistoryModule,
31540
- MatTabsModule,
31580
+ MatLegacyTabsModule,
31541
31581
  ReactiveFormsModule,
31542
31582
  AlertModule,
31543
31583
  RpxTranslationModule.forChild(),
@@ -31561,7 +31601,7 @@ CaseViewerModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
31561
31601
  CaseEditorModule,
31562
31602
  ConditionalShowModule,
31563
31603
  CaseHistoryModule,
31564
- MatTabsModule,
31604
+ MatLegacyTabsModule,
31565
31605
  ReactiveFormsModule,
31566
31606
  AlertModule,
31567
31607
  RpxTranslationModule.forChild(),
@@ -31630,7 +31670,7 @@ CaseViewerModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
31630
31670
  CaseEditorModule,
31631
31671
  ConditionalShowModule,
31632
31672
  CaseHistoryModule,
31633
- MatTabsModule,
31673
+ MatLegacyTabsModule,
31634
31674
  ReactiveFormsModule,
31635
31675
  AlertModule, i1$1.RpxTranslationModule, BannersModule,
31636
31676
  LabelSubstitutorModule,
@@ -31644,7 +31684,7 @@ i0.ɵɵsetComponentScope(CaseViewerComponent, function () {
31644
31684
  return [i1.NgIf, CaseFullAccessViewComponent,
31645
31685
  CaseBasicAccessViewComponent];
31646
31686
  }, []);
31647
- i0.ɵɵsetComponentScope(CaseFullAccessViewComponent, function () { return [i1.NgForOf, i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i1$2.RouterOutlet, i1$2.RouterLink, CallbackErrorsComponent, ActivityComponent, CaseHeaderComponent, EventTriggerComponent, FieldReadComponent, i10.MatTabContent, i10.MatTab, i10.MatTabGroup, NotificationBannerComponent, LabelSubstitutorDirective]; }, function () { return [IsCompoundPipe, ReadFieldsFilterPipe, CcdTabFieldsPipe, i1$1.RpxTranslatePipe]; });
31687
+ i0.ɵɵsetComponentScope(CaseFullAccessViewComponent, function () { return [i1.NgForOf, i1.NgIf, i1.NgSwitch, i1.NgSwitchCase, i1$2.RouterOutlet, i1$2.RouterLink, CallbackErrorsComponent, ActivityComponent, CaseHeaderComponent, EventTriggerComponent, FieldReadComponent, i10.MatLegacyTabGroup, i10.MatLegacyTab, i10.MatLegacyTabContent, NotificationBannerComponent, LabelSubstitutorDirective]; }, function () { return [IsCompoundPipe, ReadFieldsFilterPipe, CcdTabFieldsPipe, i1$1.RpxTranslatePipe]; });
31648
31688
  i0.ɵɵsetComponentScope(CaseViewComponent, function () { return [i1.NgIf, CaseViewerComponent]; }, []);
31649
31689
  i0.ɵɵsetComponentScope(CaseChallengedAccessRequestComponent, function () { return [i1.NgClass, i1.NgIf, i3.ɵNgNoValidate, i3.DefaultValueAccessor, i3.RadioControlValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormGroupDirective, i3.FormControlName, AlertComponent, ErrorMessageComponent]; }, function () { return [i1$1.RpxTranslatePipe]; });
31650
31690
  i0.ɵɵsetComponentScope(CaseSpecificAccessRequestComponent, function () { return [i1.NgClass, i1.NgIf, i3.ɵNgNoValidate, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.FormGroupDirective, i3.FormControlName, AlertComponent, ErrorMessageComponent]; }, function () { return [i1$1.RpxTranslatePipe]; });
@@ -31805,13 +31845,14 @@ function CreateCaseFiltersComponent_option_27_Template(rf, ctx) {
31805
31845
  }
31806
31846
  }
31807
31847
  class CreateCaseFiltersComponent {
31808
- constructor(orderService, definitionsService, sessionStorageService) {
31848
+ constructor(orderService, definitionsService, sessionStorageService, jurisdictionService) {
31809
31849
  this.orderService = orderService;
31810
31850
  this.definitionsService = definitionsService;
31811
31851
  this.sessionStorageService = sessionStorageService;
31852
+ this.jurisdictionService = jurisdictionService;
31812
31853
  this.selectionSubmitted = new EventEmitter();
31813
31854
  this.selectionChanged = new EventEmitter();
31814
- this.formGroup = new UntypedFormGroup({});
31855
+ this.formGroup = new FormGroup({});
31815
31856
  }
31816
31857
  ngOnInit() {
31817
31858
  this.selected = {};
@@ -31861,6 +31902,8 @@ class CreateCaseFiltersComponent {
31861
31902
  !this.isDisabled;
31862
31903
  }
31863
31904
  apply() {
31905
+ this.selected.jurisdiction.currentCaseType = this.selected.caseType;
31906
+ this.jurisdictionService.announceSelectedJurisdiction(this.selected.jurisdiction);
31864
31907
  this.selectionSubmitted.emit({
31865
31908
  jurisdictionId: this.selected.jurisdiction.id,
31866
31909
  caseTypeId: this.selected.caseType.id,
@@ -31941,7 +31984,7 @@ class CreateCaseFiltersComponent {
31941
31984
  return value === null || value === undefined;
31942
31985
  }
31943
31986
  }
31944
- CreateCaseFiltersComponent.ɵfac = function CreateCaseFiltersComponent_Factory(t) { return new (t || CreateCaseFiltersComponent)(i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(DefinitionsService), i0.ɵɵdirectiveInject(SessionStorageService)); };
31987
+ CreateCaseFiltersComponent.ɵfac = function CreateCaseFiltersComponent_Factory(t) { return new (t || CreateCaseFiltersComponent)(i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(DefinitionsService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(JurisdictionService)); };
31945
31988
  CreateCaseFiltersComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CreateCaseFiltersComponent, selectors: [["ccd-create-case-filters"]], inputs: { isDisabled: "isDisabled", startButtonText: "startButtonText" }, outputs: { selectionSubmitted: "selectionSubmitted", selectionChanged: "selectionChanged" }, decls: 31, vars: 28, consts: [[3, "ngSubmit"], [1, "form-group"], ["for", "cc-jurisdiction", 1, "form-label"], ["id", "cc-jurisdiction", "name", "jurisdiction", 1, "form-control", "ccd-dropdown", 3, "formControl", "change"], ["value", ""], [3, "value", 4, "ngFor", "ngForOf"], ["for", "cc-case-type", 1, "form-label"], ["id", "cc-case-type", "name", "case-type", 1, "form-control", "ccd-dropdown", 3, "formControl", "change"], ["for", "cc-event", 1, "form-label"], ["id", "cc-event", "name", "event", 1, "form-control", "ccd-dropdown", 3, "formControl", "change"], ["type", "submit", 1, "button", 3, "disabled"], [3, "value"]], template: function CreateCaseFiltersComponent_Template(rf, ctx) {
31946
31989
  if (rf & 1) {
31947
31990
  i0.ɵɵelementStart(0, "form", 0);
@@ -32022,7 +32065,7 @@ CreateCaseFiltersComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
32022
32065
  (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CreateCaseFiltersComponent, [{
32023
32066
  type: Component,
32024
32067
  args: [{ selector: 'ccd-create-case-filters', template: "<form (ngSubmit)=\"apply()\">\n <div class=\"form-group\">\n <label class=\"form-label\" for=\"cc-jurisdiction\">{{'Jurisdiction' | rpxTranslate}}</label>\n <select class=\"form-control ccd-dropdown\" id=\"cc-jurisdiction\" name=\"jurisdiction\" [formControl]=\"filterJurisdictionControl\" (change)=\"onJurisdictionIdChange()\">\n <option value=\"\">--{{'Select a value' | rpxTranslate}}--</option>\n <option *ngFor=\"let j of jurisdictions\" [value]=\"j.id\">{{j.name | rpxTranslate}}</option>\n </select>\n </div>\n\n <div class=\"form-group\">\n <label class=\"form-label\" for=\"cc-case-type\">{{'Case type' | rpxTranslate}}</label>\n <select class=\"form-control ccd-dropdown\" id=\"cc-case-type\" name=\"case-type\" [formControl]=\"filterCaseTypeControl\" (change)=\"onCaseTypeIdChange()\">\n <option value=\"\">--{{'Select a value' | rpxTranslate}}--</option>\n <option *ngFor=\"let ct of selectedJurisdictionCaseTypes\" [value]=\"ct.id\">{{ct.name | rpxTranslate}}</option>\n </select>\n </div>\n\n <div class=\"form-group\">\n <label class=\"form-label\" for=\"cc-event\">{{'Event' | rpxTranslate}}</label>\n <select class=\"form-control ccd-dropdown\" id=\"cc-event\" name=\"event\" [formControl]=\"filterEventControl\" (change)=\"onEventIdChange()\">\n <option value=\"\">--{{'Select a value' | rpxTranslate}}--</option>\n <option *ngFor=\"let e of selectedCaseTypeEvents\" [value]=\"e.id\">{{e.name | rpxTranslate}}</option>\n </select>\n </div>\n\n <button type=\"submit\" class=\"button\" [disabled]=\"!isCreatable()\">{{startButtonText | rpxTranslate}}</button>\n</form>\n" }]
32025
- }], function () { return [{ type: OrderService }, { type: DefinitionsService }, { type: SessionStorageService }]; }, { isDisabled: [{
32068
+ }], function () { return [{ type: OrderService }, { type: DefinitionsService }, { type: SessionStorageService }, { type: JurisdictionService }]; }, { isDisabled: [{
32026
32069
  type: Input
32027
32070
  }], startButtonText: [{
32028
32071
  type: Input
@@ -32163,7 +32206,7 @@ class SearchFiltersComponent {
32163
32206
  this.onApply = new EventEmitter();
32164
32207
  this.onReset = new EventEmitter();
32165
32208
  this.onJurisdiction = new EventEmitter();
32166
- this.formGroup = new UntypedFormGroup({});
32209
+ this.formGroup = new FormGroup({});
32167
32210
  }
32168
32211
  ngOnInit() {
32169
32212
  this.selected = {};
@@ -32239,7 +32282,7 @@ class SearchFiltersComponent {
32239
32282
  this.onJurisdiction.emit(this.selected.jurisdiction);
32240
32283
  }
32241
32284
  onCaseTypeIdChange() {
32242
- this.formGroup = new UntypedFormGroup({});
32285
+ this.formGroup = new FormGroup({});
32243
32286
  this.searchInputsReady = false;
32244
32287
  this.searchInputs = [];
32245
32288
  this.searchService.getSearchInputs(this.selected.jurisdiction.id, this.selected.caseType.id).pipe(tap(() => this.searchInputsReady = true)).subscribe(searchInputs => {