@hmcts/ccd-case-ui-toolkit 5.0.50-case-flags-multiple-service-codes-for-jurisdiction → 5.0.50-case-flags-multiple-case-flags-tabs-support

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 (48) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +250 -193
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +4 -4
  6. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +4 -4
  7. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +4 -3
  8. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.js +25 -26
  9. package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +16 -8
  10. package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.js +15 -13
  11. package/esm2015/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.js +106 -64
  12. package/esm2015/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.js +2 -1
  13. package/esm2015/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.js +4 -3
  14. package/esm2015/lib/shared/components/palette/case-flag/read-case-flag-field.component.js +4 -2
  15. package/esm2015/lib/shared/components/palette/case-flag/write-case-flag-field.component.js +8 -11
  16. package/esm2015/lib/shared/domain/case-flag/hmcts-service-detail.model.js +1 -1
  17. package/esm2015/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.js +16 -0
  18. package/esm2015/lib/shared/pipes/generic/index.js +2 -0
  19. package/esm2015/lib/shared/pipes/index.js +2 -1
  20. package/esm2015/lib/shared/pipes/pipes.module.js +9 -5
  21. package/esm2015/lib/shared/services/case-flag/case-flag-refdata.service.js +4 -25
  22. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +243 -195
  23. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  24. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
  25. 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
  26. package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts +1 -2
  27. package/lib/shared/components/palette/case-flag/components/select-flag-type/select-flag-type.component.d.ts.map +1 -1
  28. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts +7 -5
  29. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts.map +1 -1
  30. package/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.d.ts +2 -1
  31. package/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.d.ts.map +1 -1
  32. package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts +3 -2
  33. package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts.map +1 -1
  34. package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts.map +1 -1
  35. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts +0 -1
  36. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
  37. package/lib/shared/domain/case-flag/hmcts-service-detail.model.d.ts.map +1 -1
  38. package/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.d.ts +8 -0
  39. package/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.d.ts.map +1 -0
  40. package/lib/shared/pipes/generic/index.d.ts +2 -0
  41. package/lib/shared/pipes/generic/index.d.ts.map +1 -0
  42. package/lib/shared/pipes/index.d.ts +1 -0
  43. package/lib/shared/pipes/index.d.ts.map +1 -1
  44. package/lib/shared/pipes/pipes.module.d.ts +3 -2
  45. package/lib/shared/pipes/pipes.module.d.ts.map +1 -1
  46. package/lib/shared/services/case-flag/case-flag-refdata.service.d.ts +3 -14
  47. package/lib/shared/services/case-flag/case-flag-refdata.service.d.ts.map +1 -1
  48. package/package.json +1 -1
@@ -119,14 +119,14 @@
119
119
  }
120
120
  }
121
121
  var _c0$_ = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
122
- var _c1$r = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
122
+ var _c1$q = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
123
123
  var FooterComponent = /** @class */ (function () {
124
124
  function FooterComponent() {
125
125
  }
126
126
  return FooterComponent;
127
127
  }());
128
128
  FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
129
- FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$r, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) {
129
+ FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$q, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) {
130
130
  if (rf & 1) {
131
131
  i0__namespace.ɵɵprojectionDef(_c0$_);
132
132
  i0__namespace.ɵɵelementStart(0, "footer", 0);
@@ -208,7 +208,7 @@
208
208
  }
209
209
  }
210
210
  var _c0$Z = [[["", "headerNavigation", ""]]];
211
- var _c1$q = ["[headerNavigation]"];
211
+ var _c1$p = ["[headerNavigation]"];
212
212
  var HeaderBarComponent = /** @class */ (function () {
213
213
  function HeaderBarComponent() {
214
214
  this.signOutRequest = new i0.EventEmitter();
@@ -219,7 +219,7 @@
219
219
  return HeaderBarComponent;
220
220
  }());
221
221
  HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
222
- HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$q, decls: 15, vars: 8, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) {
222
+ HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$p, decls: 15, vars: 8, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) {
223
223
  if (rf & 1) {
224
224
  i0__namespace.ɵɵprojectionDef(_c0$Z);
225
225
  i0__namespace.ɵɵelementStart(0, "header", 0);
@@ -283,14 +283,14 @@
283
283
  })();
284
284
 
285
285
  var _c0$Y = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
286
- var _c1$p = ["[leftNavLinks]", "[rightNavLinks]"];
286
+ var _c1$o = ["[leftNavLinks]", "[rightNavLinks]"];
287
287
  var NavigationComponent = /** @class */ (function () {
288
288
  function NavigationComponent() {
289
289
  }
290
290
  return NavigationComponent;
291
291
  }());
292
292
  NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
293
- NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$p, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
293
+ NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$o, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
294
294
  if (rf & 1) {
295
295
  i0__namespace.ɵɵprojectionDef(_c0$Y);
296
296
  i0__namespace.ɵɵelementStart(0, "div");
@@ -438,14 +438,14 @@
438
438
  })();
439
439
 
440
440
  var _c0$X = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
441
- var _c1$o = ["[topBody]", "[leftBody]", "[rightBody]"];
441
+ var _c1$n = ["[topBody]", "[leftBody]", "[rightBody]"];
442
442
  var BodyComponent = /** @class */ (function () {
443
443
  function BodyComponent() {
444
444
  }
445
445
  return BodyComponent;
446
446
  }());
447
447
  BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
448
- BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$o, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
448
+ BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$n, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
449
449
  if (rf & 1) {
450
450
  i0__namespace.ɵɵprojectionDef(_c0$X);
451
451
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -1472,14 +1472,14 @@
1472
1472
  })();
1473
1473
 
1474
1474
  var _c0$U = function (a0) { return { "js-hidden": a0 }; };
1475
- var _c1$n = ["*"];
1475
+ var _c1$m = ["*"];
1476
1476
  var TabComponent = /** @class */ (function () {
1477
1477
  function TabComponent() {
1478
1478
  }
1479
1479
  return TabComponent;
1480
1480
  }());
1481
1481
  TabComponent.ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
1482
- TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$n, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
1482
+ TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$m, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
1483
1483
  if (rf & 1) {
1484
1484
  i0__namespace.ɵɵprojectionDef();
1485
1485
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -1511,7 +1511,7 @@
1511
1511
  })();
1512
1512
 
1513
1513
  var _c0$T = ["tab"];
1514
- var _c1$m = function () { return ["."]; };
1514
+ var _c1$l = function () { return ["."]; };
1515
1515
  var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
1516
1516
  function TabsComponent_li_2_Template(rf, ctx) {
1517
1517
  if (rf & 1) {
@@ -1526,7 +1526,7 @@
1526
1526
  if (rf & 2) {
1527
1527
  var panel_r1 = ctx.$implicit;
1528
1528
  i0__namespace.ɵɵadvance(1);
1529
- i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$m))("fragment", panel_r1.id)("ngClass", i0__namespace.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
1529
+ i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$l))("fragment", panel_r1.id)("ngClass", i0__namespace.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
1530
1530
  i0__namespace.ɵɵattribute("aria-controls", panel_r1.id)("aria-selected", panel_r1.selected);
1531
1531
  i0__namespace.ɵɵadvance(2);
1532
1532
  i0__namespace.ɵɵtextInterpolate(panel_r1.title);
@@ -2552,6 +2552,7 @@
2552
2552
  CaseFlagStatus["ACTIVE"] = "Active";
2553
2553
  CaseFlagStatus["INACTIVE"] = "Inactive";
2554
2554
  CaseFlagStatus["REQUESTED"] = "Requested";
2555
+ CaseFlagStatus["NOT_APPROVED"] = "Not approved";
2555
2556
  })(exports.CaseFlagStatus || (exports.CaseFlagStatus = {}));
2556
2557
 
2557
2558
  var DashPipe = /** @class */ (function () {
@@ -6922,14 +6923,13 @@
6922
6923
  return rxjs.of(null);
6923
6924
  };
6924
6925
  /**
6925
- * Retrieves the HMCTS service details for a jurisdiction or service, including service codes. More than one
6926
- * service code may be present. For example, the Divorce jurisdiction/service has corresponding service codes of
6927
- * "ABA1" and "ABA2".
6926
+ * Retrieves the HMCTS service details for a jurisdiction or service, including service code. (For example, the "SSCS"
6927
+ * service has a corresponding service code of "BBA3".)
6928
6928
  *
6929
6929
  * @param serviceNames The service name(s) to look up, comma-separated if more than one
6930
6930
  * @returns An `Observable` of an array of service details
6931
6931
  */
6932
- CaseFlagRefdataService.prototype.getHmctsServiceDetailsByServiceName = function (serviceNames) {
6932
+ CaseFlagRefdataService.prototype.getHmctsServiceDetails = function (serviceNames) {
6933
6933
  var url = this.appConfig.getLocationRefApiUrl();
6934
6934
  if (url) {
6935
6935
  url += '/orgServices';
@@ -6940,26 +6940,6 @@
6940
6940
  }
6941
6941
  return rxjs.of(null);
6942
6942
  };
6943
- /**
6944
- * Retrieves the HMCTS service details for a case type, including service code. For example, the
6945
- * "FinancialRemedyContested" case type is associated with the Divorce jurisdiction/service and service code "ABA2".
6946
- *
6947
- * Note that a case type might not be associated with any service codes of a jurisdiction or service.
6948
- *
6949
- * @param caseTypeId The case type ID to look up
6950
- * @returns An `Observable` of an array of service details
6951
- */
6952
- CaseFlagRefdataService.prototype.getHmctsServiceDetailsByCaseType = function (caseTypeId) {
6953
- var url = this.appConfig.getLocationRefApiUrl();
6954
- if (url) {
6955
- url += '/orgServices';
6956
- if (caseTypeId) {
6957
- url += "?ccdCaseType=" + caseTypeId;
6958
- }
6959
- return this.http.get(url, { observe: 'body' });
6960
- }
6961
- return rxjs.of(null);
6962
- };
6963
6943
  return CaseFlagRefdataService;
6964
6944
  }());
6965
6945
  CaseFlagRefdataService.ɵfac = function CaseFlagRefdataService_Factory(t) { return new (t || CaseFlagRefdataService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig)); };
@@ -11421,6 +11401,25 @@
11421
11401
  }], null, null);
11422
11402
  })();
11423
11403
 
11404
+ var EnumDisplayDescriptionPipe = /** @class */ (function () {
11405
+ function EnumDisplayDescriptionPipe() {
11406
+ }
11407
+ EnumDisplayDescriptionPipe.prototype.transform = function (value) {
11408
+ return Object.values(value);
11409
+ };
11410
+ return EnumDisplayDescriptionPipe;
11411
+ }());
11412
+ EnumDisplayDescriptionPipe.ɵfac = function EnumDisplayDescriptionPipe_Factory(t) { return new (t || EnumDisplayDescriptionPipe)(); };
11413
+ EnumDisplayDescriptionPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "enumDisplayDescription", type: EnumDisplayDescriptionPipe, pure: true });
11414
+ (function () {
11415
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(EnumDisplayDescriptionPipe, [{
11416
+ type: i0.Pipe,
11417
+ args: [{
11418
+ name: 'enumDisplayDescription'
11419
+ }]
11420
+ }], null, null);
11421
+ })();
11422
+
11424
11423
  var LinkedCasesService = /** @class */ (function () {
11425
11424
  function LinkedCasesService(jurisdictionService, searchService) {
11426
11425
  var _this = this;
@@ -11619,7 +11618,8 @@
11619
11618
  ReadFieldsFilterPipe,
11620
11619
  CcdTabFieldsPipe,
11621
11620
  CcdPageFieldsPipe,
11622
- LinkCasesReasonValuePipe
11621
+ LinkCasesReasonValuePipe,
11622
+ EnumDisplayDescriptionPipe
11623
11623
  ];
11624
11624
  var PipesModule = /** @class */ (function () {
11625
11625
  function PipesModule() {
@@ -11640,7 +11640,8 @@
11640
11640
  ReadFieldsFilterPipe,
11641
11641
  CcdTabFieldsPipe,
11642
11642
  CcdPageFieldsPipe,
11643
- LinkCasesReasonValuePipe], imports: [i1.CommonModule], exports: [CaseReferencePipe,
11643
+ LinkCasesReasonValuePipe,
11644
+ EnumDisplayDescriptionPipe], imports: [i1.CommonModule], exports: [CaseReferencePipe,
11644
11645
  SortSearchResultPipe,
11645
11646
  CcdCaseTitlePipe,
11646
11647
  CcdCollectionTableCaseFieldsFilterPipe,
@@ -11648,7 +11649,8 @@
11648
11649
  ReadFieldsFilterPipe,
11649
11650
  CcdTabFieldsPipe,
11650
11651
  CcdPageFieldsPipe,
11651
- LinkCasesReasonValuePipe] });
11652
+ LinkCasesReasonValuePipe,
11653
+ EnumDisplayDescriptionPipe] });
11652
11654
  })();
11653
11655
  (function () {
11654
11656
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PipesModule, [{
@@ -11716,7 +11718,7 @@
11716
11718
  i0__namespace.ɵɵelementEnd();
11717
11719
  }
11718
11720
  }
11719
- var _c1$l = function (a0) { return { "form-group-error": a0 }; };
11721
+ var _c1$k = function (a0) { return { "form-group-error": a0 }; };
11720
11722
  var _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
11721
11723
  function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
11722
11724
  if (rf & 1) {
@@ -11737,7 +11739,7 @@
11737
11739
  }
11738
11740
  if (rf & 2) {
11739
11741
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
11740
- i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$l, ctx_r2.missingPostcode));
11742
+ i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$k, ctx_r2.missingPostcode));
11741
11743
  i0__namespace.ɵɵadvance(1);
11742
11744
  i0__namespace.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
11743
11745
  i0__namespace.ɵɵadvance(3);
@@ -12024,7 +12026,7 @@
12024
12026
  if (rf & 2) {
12025
12027
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
12026
12028
  i0__namespace.ɵɵadvance(1);
12027
- i0__namespace.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
12029
+ i0__namespace.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true);
12028
12030
  }
12029
12031
  }
12030
12032
  function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
@@ -12042,7 +12044,7 @@
12042
12044
  i0__namespace.ɵɵelementEnd();
12043
12045
  i0__namespace.ɵɵelement(6, "div", 9);
12044
12046
  i0__namespace.ɵɵelementStart(7, "div", 10);
12045
- i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
12047
+ i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 6, "ng-container", 1);
12046
12048
  i0__namespace.ɵɵelementEnd();
12047
12049
  i0__namespace.ɵɵelementEnd();
12048
12050
  i0__namespace.ɵɵelementEnd();
@@ -12123,7 +12125,7 @@
12123
12125
  }());
12124
12126
  CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
12125
12127
  CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseFileViewService), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(LoadingService)); };
12126
- CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
12128
+ CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) {
12127
12129
  if (rf & 1) {
12128
12130
  i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
12129
12131
  i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
@@ -12166,7 +12168,7 @@
12166
12168
  if (rf & 2) {
12167
12169
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
12168
12170
  i0__namespace.ɵɵadvance(1);
12169
- i0__namespace.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true)("height", "94.5vh");
12171
+ i0__namespace.ɵɵproperty("url", ctx_r2.currentDocument.document_binary_url)("downloadFileName", ctx_r2.currentDocument.document_filename)("showToolbar", true)("contentType", ctx_r2.currentDocument.content_type)("enableAnnotations", true)("enableRedactions", true);
12170
12172
  }
12171
12173
  }
12172
12174
  function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) {
@@ -12184,7 +12186,7 @@
12184
12186
  i0__namespace.ɵɵelementEnd();
12185
12187
  i0__namespace.ɵɵelement(6, "div", 9);
12186
12188
  i0__namespace.ɵɵelementStart(7, "div", 10);
12187
- i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
12189
+ i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 6, "ng-container", 1);
12188
12190
  i0__namespace.ɵɵelementEnd();
12189
12191
  i0__namespace.ɵɵelementEnd();
12190
12192
  i0__namespace.ɵɵelementEnd();
@@ -12207,7 +12209,7 @@
12207
12209
  return CaseFileViewFieldReadComponent;
12208
12210
  }(CaseFileViewFieldComponent));
12209
12211
  CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
12210
- CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions", "height"]], template: function CaseFileViewFieldReadComponent_Template(rf, ctx) {
12212
+ CaseFileViewFieldReadComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFieldReadComponent, selectors: [["ccd-case-file-view-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [["class", "govuk-grid-column-two-thirds", 4, "ngIf"], [4, "ngIf"], [1, "govuk-grid-column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-body"], [1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "document-tree-container__tree", 3, "categoriesAndDocuments", "allowMoving", "clickedDocument", "moveDocument"], [1, "slider"], [1, "media-viewer-container"], [3, "url", "downloadFileName", "showToolbar", "contentType", "enableAnnotations", "enableRedactions"]], template: function CaseFileViewFieldReadComponent_Template(rf, ctx) {
12211
12213
  if (rf & 1) {
12212
12214
  i0__namespace.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
12213
12215
  i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
@@ -12316,8 +12318,9 @@
12316
12318
 
12317
12319
  exports.UpdateFlagStep = void 0;
12318
12320
  (function (UpdateFlagStep) {
12319
- UpdateFlagStep["HINT_TEXT"] = "Explain why you are updating this flag. Do not include any sensitive information such as personal details.";
12320
- UpdateFlagStep["CHARACTER_LIMIT_INFO"] = "You can enter up to 200 characters";
12321
+ UpdateFlagStep["COMMENT_HINT_TEXT"] = "Update the comments describing the user's support needs or flag description. Do not include any sensitive information such as personal details.";
12322
+ UpdateFlagStep["COMMENT_CHARACTER_LIMIT_INFO"] = "You can enter up to 200 characters";
12323
+ UpdateFlagStep["STATUS_HINT_TEXT"] = "Describe reason for status change, if choosing 'not approved' provide name for person approving decision";
12321
12324
  })(exports.UpdateFlagStep || (exports.UpdateFlagStep = {}));
12322
12325
 
12323
12326
  function ReadCaseFlagFieldComponent_ng_container_1_Template(rf, ctx) {
@@ -12405,7 +12408,9 @@
12405
12408
  if (this.route.snapshot.data.case && this.route.snapshot.data.case.tabs) {
12406
12409
  this.flagsData = this.route.snapshot.data.case.tabs
12407
12410
  .filter(function (tab) { return tab.fields && tab.fields
12408
- .some(function (caseField) { return caseField.field_type.type === 'FlagLauncher'; }); })[0].fields.reduce(function (flags, caseField) {
12411
+ // There could be more than one FlagLauncher field instance so an additional check of caseField ID is
12412
+ // required to ensure the correct instance is obtained
12413
+ .some(function (caseField) { return caseField.field_type.type === 'FlagLauncher' && caseField.id === _this.caseField.id; }); })[0].fields.reduce(function (flags, caseField) {
12409
12414
  return FieldsUtils.extractFlagsDataFromCaseField(flags, caseField, caseField.id, caseField);
12410
12415
  }, []);
12411
12416
  }
@@ -12549,7 +12554,7 @@
12549
12554
  if (rf & 2) {
12550
12555
  var ctx_r8 = i0__namespace.ɵɵnextContext(2);
12551
12556
  i0__namespace.ɵɵadvance(1);
12552
- i0__namespace.ɵɵproperty("formGroup", ctx_r8.caseFlagParentFormGroup)("jurisdiction", ctx_r8.jurisdiction)("caseTypeId", ctx_r8.caseTypeId);
12557
+ i0__namespace.ɵɵproperty("formGroup", ctx_r8.caseFlagParentFormGroup)("jurisdiction", ctx_r8.jurisdiction);
12553
12558
  }
12554
12559
  }
12555
12560
  function WriteCaseFlagFieldComponent_div_1_ng_container_6_Template(rf, ctx) {
@@ -12591,7 +12596,7 @@
12591
12596
  i0__namespace.ɵɵtext(3);
12592
12597
  i0__namespace.ɵɵelementEnd();
12593
12598
  i0__namespace.ɵɵtemplate(4, WriteCaseFlagFieldComponent_div_1_ng_container_4_Template, 2, 2, "ng-container", 11);
12594
- i0__namespace.ɵɵtemplate(5, WriteCaseFlagFieldComponent_div_1_ng_container_5_Template, 2, 3, "ng-container", 11);
12599
+ i0__namespace.ɵɵtemplate(5, WriteCaseFlagFieldComponent_div_1_ng_container_5_Template, 2, 2, "ng-container", 11);
12595
12600
  i0__namespace.ɵɵtemplate(6, WriteCaseFlagFieldComponent_div_1_ng_container_6_Template, 2, 3, "ng-container", 11);
12596
12601
  i0__namespace.ɵɵtemplate(7, WriteCaseFlagFieldComponent_div_1_ng_container_7_Template, 2, 2, "ng-container", 11);
12597
12602
  i0__namespace.ɵɵelementEnd();
@@ -12704,14 +12709,11 @@
12704
12709
  }
12705
12710
  }), true);
12706
12711
  this.createFlagCaption = exports.CaseFlagText.CAPTION;
12707
- // Get the case type ID from the CaseView object in the snapshot data (required for retrieving the available flag
12712
+ // Get the jurisdiction from the CaseView object in the snapshot data (required for retrieving the available flag
12708
12713
  // types for a case)
12709
- if (this.route.snapshot.data.case && this.route.snapshot.data.case.case_type) {
12710
- this.caseTypeId = this.route.snapshot.data.case.case_type.id;
12711
- // Get the jurisdiction (required for retrieving the available flag types if unable to determine using case type ID)
12712
- if (this.route.snapshot.data.case.case_type.jurisdiction) {
12713
- this.jurisdiction = this.route.snapshot.data.case.case_type.jurisdiction.id;
12714
- }
12714
+ if (this.route.snapshot.data.case && this.route.snapshot.data.case.case_type &&
12715
+ this.route.snapshot.data.case.case_type.jurisdiction) {
12716
+ this.jurisdiction = this.route.snapshot.data.case.case_type.jurisdiction.id;
12715
12717
  }
12716
12718
  // Extract all flags-related data from the CaseEventTrigger object in the snapshot data
12717
12719
  if (this.route.snapshot.data.eventTrigger && this.route.snapshot.data.eventTrigger.case_fields) {
@@ -12965,7 +12967,7 @@
12965
12967
  return WriteCaseFlagFieldComponent;
12966
12968
  }(AbstractFieldWriteComponent));
12967
12969
  WriteCaseFlagFieldComponent.ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(CaseEditDataService)); };
12968
- WriteCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseFlagFieldComponent, selectors: [["ccd-write-case-flag-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["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-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], ["id", "create-flag-caption", 1, "govuk-caption-l", 3, "ngClass"], [4, "ngSwitchCase"], [3, "formGroup", "flagsData", "caseFlagStateEmitter"], [3, "formGroup", "jurisdiction", "caseTypeId", "caseFlagStateEmitter", "flagCommentsOptionalEmitter"], [3, "formGroup", "languages", "flagCode", "caseFlagStateEmitter"], [3, "formGroup", "optional", "caseFlagStateEmitter"], [3, "formGroup", "flagsData", "caseTitle", "caseFlagStateEmitter"], [3, "formGroup", "selectedFlag", "caseFlagStateEmitter"]], template: function WriteCaseFlagFieldComponent_Template(rf, ctx) {
12970
+ WriteCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseFlagFieldComponent, selectors: [["ccd-write-case-flag-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["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-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], ["id", "create-flag-caption", 1, "govuk-caption-l", 3, "ngClass"], [4, "ngSwitchCase"], [3, "formGroup", "flagsData", "caseFlagStateEmitter"], [3, "formGroup", "jurisdiction", "caseFlagStateEmitter", "flagCommentsOptionalEmitter"], [3, "formGroup", "languages", "flagCode", "caseFlagStateEmitter"], [3, "formGroup", "optional", "caseFlagStateEmitter"], [3, "formGroup", "flagsData", "caseTitle", "caseFlagStateEmitter"], [3, "formGroup", "selectedFlag", "caseFlagStateEmitter"]], template: function WriteCaseFlagFieldComponent_Template(rf, ctx) {
12969
12971
  if (rf & 1) {
12970
12972
  i0__namespace.ɵɵtemplate(0, WriteCaseFlagFieldComponent_div_0_Template, 4, 1, "div", 0);
12971
12973
  i0__namespace.ɵɵtemplate(1, WriteCaseFlagFieldComponent_div_1_Template, 8, 10, "div", 1);
@@ -13239,7 +13241,7 @@
13239
13241
  i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$O, ctx_r1.caseField.label, ctx_r1.caseField.label, ctx_r1.caseField.field_type.collection_field_type, ctx_r1.caseField.display_context_parameter, ctx_r1.caseField.value, ctx_r1.caseField.hidden))("context", ctx_r1.context)("topLevelFormGroup", ctx_r1.topLevelFormGroup);
13240
13242
  }
13241
13243
  }
13242
- var _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
13244
+ var _c1$j = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
13243
13245
  function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) {
13244
13246
  if (rf & 1) {
13245
13247
  i0__namespace.ɵɵelementStart(0, "tr");
@@ -13253,7 +13255,7 @@
13253
13255
  var i_r5 = ctx.index;
13254
13256
  var ctx_r3 = i0__namespace.ɵɵnextContext(3);
13255
13257
  i0__namespace.ɵɵadvance(2);
13256
- i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction5(4, _c1$k, i_r5, ctx_r3.caseField.label + " " + (i_r5 + 1), ctx_r3.caseField.field_type.collection_field_type, item_r4.value, ctx_r3.caseField.hidden))("context", ctx_r3.context)("topLevelFormGroup", ctx_r3.topLevelFormGroup)("idPrefix", ctx_r3.buildIdPrefix(i_r5));
13258
+ i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction5(4, _c1$j, i_r5, ctx_r3.caseField.label + " " + (i_r5 + 1), ctx_r3.caseField.field_type.collection_field_type, item_r4.value, ctx_r3.caseField.hidden))("context", ctx_r3.context)("topLevelFormGroup", ctx_r3.topLevelFormGroup)("idPrefix", ctx_r3.buildIdPrefix(i_r5));
13257
13259
  }
13258
13260
  }
13259
13261
  function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) {
@@ -14422,7 +14424,7 @@
14422
14424
  i0__namespace.ɵɵproperty("caseField", ctx_r2.caseField);
14423
14425
  }
14424
14426
  }
14425
- var _c1$j = function (a0) { return { "form-group-error bottom-30": a0 }; };
14427
+ var _c1$i = function (a0) { return { "form-group-error bottom-30": a0 }; };
14426
14428
  var WriteDocumentFieldComponent = /** @class */ (function (_super) {
14427
14429
  __extends(WriteDocumentFieldComponent, _super);
14428
14430
  function WriteDocumentFieldComponent(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService) {
@@ -14724,7 +14726,7 @@
14724
14726
  i0__namespace.ɵɵelementEnd();
14725
14727
  }
14726
14728
  if (rf & 2) {
14727
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$j, !ctx.valid));
14729
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$i, !ctx.valid));
14728
14730
  i0__namespace.ɵɵadvance(1);
14729
14731
  i0__namespace.ɵɵproperty("for", ctx.id());
14730
14732
  i0__namespace.ɵɵadvance(1);
@@ -15104,7 +15106,7 @@
15104
15106
  i0__namespace.ɵɵtextInterpolate(radioButton_r5.label);
15105
15107
  }
15106
15108
  }
15107
- var _c1$i = function (a0) { return { "form-group-error": a0 }; };
15109
+ var _c1$h = function (a0) { return { "form-group-error": a0 }; };
15108
15110
  var WriteDynamicRadioListFieldComponent = /** @class */ (function (_super) {
15109
15111
  __extends(WriteDynamicRadioListFieldComponent, _super);
15110
15112
  function WriteDynamicRadioListFieldComponent() {
@@ -15152,7 +15154,7 @@
15152
15154
  i0__namespace.ɵɵelementEnd();
15153
15155
  }
15154
15156
  if (rf & 2) {
15155
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$i, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
15157
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$h, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
15156
15158
  i0__namespace.ɵɵadvance(3);
15157
15159
  i0__namespace.ɵɵproperty("for", ctx.id());
15158
15160
  i0__namespace.ɵɵadvance(1);
@@ -15260,7 +15262,7 @@
15260
15262
  }
15261
15263
  }
15262
15264
  var _c0$J = function (a0) { return { "form-group-error": a0 }; };
15263
- var _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
15265
+ var _c1$g = function (a0) { return { "govuk-input--error": a0 }; };
15264
15266
  var WriteEmailFieldComponent = /** @class */ (function (_super) {
15265
15267
  __extends(WriteEmailFieldComponent, _super);
15266
15268
  function WriteEmailFieldComponent() {
@@ -15294,7 +15296,7 @@
15294
15296
  i0__namespace.ɵɵadvance(1);
15295
15297
  i0__namespace.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
15296
15298
  i0__namespace.ɵɵadvance(1);
15297
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$h, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
15299
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$g, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
15298
15300
  }
15299
15301
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
15300
15302
  var ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
@@ -15605,7 +15607,7 @@
15605
15607
  i0__namespace.ɵɵtextInterpolate(radioButton_r4.label);
15606
15608
  }
15607
15609
  }
15608
- var _c1$g = function (a0) { return { "form-group-error": a0 }; };
15610
+ var _c1$f = function (a0) { return { "form-group-error": a0 }; };
15609
15611
  var WriteFixedRadioListFieldComponent = /** @class */ (function (_super) {
15610
15612
  __extends(WriteFixedRadioListFieldComponent, _super);
15611
15613
  function WriteFixedRadioListFieldComponent() {
@@ -15636,7 +15638,7 @@
15636
15638
  i0__namespace.ɵɵelementEnd();
15637
15639
  }
15638
15640
  if (rf & 2) {
15639
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$g, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
15641
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$f, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
15640
15642
  i0__namespace.ɵɵadvance(3);
15641
15643
  i0__namespace.ɵɵproperty("for", ctx.id());
15642
15644
  i0__namespace.ɵɵadvance(1);
@@ -16459,7 +16461,7 @@
16459
16461
  }
16460
16462
  }
16461
16463
  var _c0$D = function (a0) { return { "form-group-error": a0 }; };
16462
- var _c1$f = function (a0) { return { "govuk-input--error": a0 }; };
16464
+ var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
16463
16465
  var WriteNumberFieldComponent = /** @class */ (function (_super) {
16464
16466
  __extends(WriteNumberFieldComponent, _super);
16465
16467
  function WriteNumberFieldComponent() {
@@ -16493,7 +16495,7 @@
16493
16495
  i0__namespace.ɵɵadvance(1);
16494
16496
  i0__namespace.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
16495
16497
  i0__namespace.ɵɵadvance(1);
16496
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$f, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
16498
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$e, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
16497
16499
  }
16498
16500
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.NumberValueAccessor, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
16499
16501
  var ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
@@ -17273,7 +17275,7 @@
17273
17275
  }
17274
17276
  }
17275
17277
  var _c0$B = function (a0) { return { "form-group-error": a0 }; };
17276
- var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
17278
+ var _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
17277
17279
  var WritePhoneUKFieldComponent = /** @class */ (function (_super) {
17278
17280
  __extends(WritePhoneUKFieldComponent, _super);
17279
17281
  function WritePhoneUKFieldComponent() {
@@ -17307,7 +17309,7 @@
17307
17309
  i0__namespace.ɵɵadvance(1);
17308
17310
  i0__namespace.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
17309
17311
  i0__namespace.ɵɵadvance(1);
17310
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$e, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
17312
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$d, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
17311
17313
  }
17312
17314
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17313
17315
  var ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
@@ -17390,7 +17392,7 @@
17390
17392
  }
17391
17393
  }
17392
17394
  var _c0$A = function (a0) { return { "form-group-error": a0 }; };
17393
- var _c1$d = function (a0) { return { "govuk-textarea--error": a0 }; };
17395
+ var _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
17394
17396
  var WriteTextAreaFieldComponent = /** @class */ (function (_super) {
17395
17397
  __extends(WriteTextAreaFieldComponent, _super);
17396
17398
  function WriteTextAreaFieldComponent(browserService) {
@@ -17435,7 +17437,7 @@
17435
17437
  i0__namespace.ɵɵadvance(1);
17436
17438
  i0__namespace.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
17437
17439
  i0__namespace.ɵɵadvance(1);
17438
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$d, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
17440
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$c, ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched)))("id", ctx.id())("formControl", ctx.textareaControl);
17439
17441
  }
17440
17442
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17441
17443
  (function () {
@@ -17518,7 +17520,7 @@
17518
17520
  }
17519
17521
  }
17520
17522
  var _c0$z = function (a0) { return { "form-group-error": a0 }; };
17521
- var _c1$c = function (a0) { return { "govuk-input--error": a0 }; };
17523
+ var _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
17522
17524
  var WriteTextFieldComponent = /** @class */ (function (_super) {
17523
17525
  __extends(WriteTextFieldComponent, _super);
17524
17526
  function WriteTextFieldComponent() {
@@ -17557,7 +17559,7 @@
17557
17559
  i0__namespace.ɵɵadvance(1);
17558
17560
  i0__namespace.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
17559
17561
  i0__namespace.ɵɵadvance(1);
17560
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$c, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
17562
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$b, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("formControl", ctx.textControl);
17561
17563
  }
17562
17564
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17563
17565
  var ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteTextFieldComponent);
@@ -17778,7 +17780,7 @@
17778
17780
  i0__namespace.ɵɵtextInterpolate(value_r4);
17779
17781
  }
17780
17782
  }
17781
- var _c1$b = function (a0) { return { "form-group-error": a0 }; };
17783
+ var _c1$a = function (a0) { return { "form-group-error": a0 }; };
17782
17784
  var WriteYesNoFieldComponent = /** @class */ (function (_super) {
17783
17785
  __extends(WriteYesNoFieldComponent, _super);
17784
17786
  function WriteYesNoFieldComponent(yesNoService) {
@@ -17809,7 +17811,7 @@
17809
17811
  i0__namespace.ɵɵelementEnd();
17810
17812
  }
17811
17813
  if (rf & 2) {
17812
- i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$b, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
17814
+ i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$a, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
17813
17815
  i0__namespace.ɵɵadvance(3);
17814
17816
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
17815
17817
  i0__namespace.ɵɵadvance(1);
@@ -18204,16 +18206,16 @@
18204
18206
  }] });
18205
18207
  })();
18206
18208
 
18207
- function CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template(rf, ctx) {
18209
+ function CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template(rf, ctx) {
18208
18210
  if (rf & 1) {
18209
18211
  i0__namespace.ɵɵelementContainer(0);
18210
18212
  }
18211
18213
  }
18212
18214
  var _c0$u = function (a0) { return { cat: a0, level: 1 }; };
18213
- function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
18215
+ function CaseFileViewFolderSelectorComponent_ng_container_5_Template(rf, ctx) {
18214
18216
  if (rf & 1) {
18215
18217
  i0__namespace.ɵɵelementContainerStart(0);
18216
- i0__namespace.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template, 1, 0, "ng-container", 8);
18218
+ i0__namespace.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
18217
18219
  i0__namespace.ɵɵelementContainerEnd();
18218
18220
  }
18219
18221
  if (rf & 2) {
@@ -18229,7 +18231,7 @@
18229
18231
  i0__namespace.ɵɵelementContainer(0);
18230
18232
  }
18231
18233
  }
18232
- var _c1$a = function (a0, a1) { return { cat: a0, level: a1 }; };
18234
+ var _c1$9 = function (a0, a1) { return { cat: a0, level: a1 }; };
18233
18235
  function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) {
18234
18236
  if (rf & 1) {
18235
18237
  i0__namespace.ɵɵelementContainerStart(0);
@@ -18242,7 +18244,7 @@
18242
18244
  i0__namespace.ɵɵnextContext();
18243
18245
  var _r1 = i0__namespace.ɵɵreference(13);
18244
18246
  i0__namespace.ɵɵadvance(1);
18245
- i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$a, subcat_r8, level_r6 + 1));
18247
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$9, subcat_r8, level_r6 + 1));
18246
18248
  }
18247
18249
  }
18248
18250
  function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) {
@@ -18256,7 +18258,7 @@
18256
18258
  i0__namespace.ɵɵelement(3, "img", 12);
18257
18259
  i0__namespace.ɵɵtext(4);
18258
18260
  i0__namespace.ɵɵelementEnd();
18259
- i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 3);
18261
+ i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 2);
18260
18262
  i0__namespace.ɵɵelementEnd();
18261
18263
  }
18262
18264
  if (rf & 2) {
@@ -18352,47 +18354,46 @@
18352
18354
  return CaseFileViewFolderSelectorComponent;
18353
18355
  }());
18354
18356
  CaseFileViewFolderSelectorComponent.ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialogRef), i0__namespace.ɵɵdirectiveInject(i1$3.MAT_DIALOG_DATA)); };
18355
- CaseFileViewFolderSelectorComponent.ɵcmp = i0__namespace.ɵɵ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) {
18357
+ CaseFileViewFolderSelectorComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [[1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "cancel", 3, "click"], [1, "close", 3, "click"], ["folder", ""], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "folder", "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "name", "id", "click"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "iconImg"]], template: function CaseFileViewFolderSelectorComponent_Template(rf, ctx) {
18356
18358
  if (rf & 1) {
18357
- i0__namespace.ɵɵelementStart(0, "div", 0);
18358
- i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_0_listener() { return ctx.cancel(); });
18359
+ i0__namespace.ɵɵelementStart(0, "h2", 0);
18360
+ i0__namespace.ɵɵtext(1, "Move File");
18359
18361
  i0__namespace.ɵɵelementEnd();
18360
- i0__namespace.ɵɵelementStart(1, "h2", 1);
18361
- i0__namespace.ɵɵtext(2, "Move File");
18362
+ i0__namespace.ɵɵelementStart(2, "p");
18363
+ i0__namespace.ɵɵtext(3);
18362
18364
  i0__namespace.ɵɵelementEnd();
18363
- i0__namespace.ɵɵelementStart(3, "p");
18364
- i0__namespace.ɵɵtext(4);
18365
+ i0__namespace.ɵɵelementStart(4, "div", 1);
18366
+ i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_container_5_Template, 2, 4, "ng-container", 2);
18365
18367
  i0__namespace.ɵɵelementEnd();
18366
- i0__namespace.ɵɵelementStart(5, "div", 2);
18367
- i0__namespace.ɵɵtemplate(6, CaseFileViewFolderSelectorComponent_ng_container_6_Template, 2, 4, "ng-container", 3);
18368
+ i0__namespace.ɵɵelementStart(6, "div", 3);
18369
+ i0__namespace.ɵɵelementStart(7, "button", 4);
18370
+ i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_7_listener() { return ctx.save(); });
18371
+ i0__namespace.ɵɵtext(8, "Save");
18368
18372
  i0__namespace.ɵɵelementEnd();
18369
- i0__namespace.ɵɵelementStart(7, "div", 4);
18370
- i0__namespace.ɵɵelementStart(8, "button", 5);
18371
- i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_8_listener() { return ctx.save(); });
18372
- i0__namespace.ɵɵtext(9, "Save");
18373
+ i0__namespace.ɵɵelementStart(9, "a", 5);
18374
+ i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_9_listener() { return ctx.cancel(); });
18375
+ i0__namespace.ɵɵtext(10, "Cancel");
18373
18376
  i0__namespace.ɵɵelementEnd();
18374
- i0__namespace.ɵɵelementStart(10, "a", 6);
18375
- i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_10_listener() { return ctx.cancel(); });
18376
- i0__namespace.ɵɵtext(11, "Cancel");
18377
18377
  i0__namespace.ɵɵelementEnd();
18378
+ i0__namespace.ɵɵelementStart(11, "div", 6);
18379
+ i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_11_listener() { return ctx.cancel(); });
18378
18380
  i0__namespace.ɵɵelementEnd();
18379
18381
  i0__namespace.ɵɵtemplate(12, CaseFileViewFolderSelectorComponent_ng_template_12_Template, 6, 5, "ng-template", null, 7, i0__namespace.ɵɵtemplateRefExtractor);
18380
18382
  }
18381
18383
  if (rf & 2) {
18382
- i0__namespace.ɵɵadvance(4);
18384
+ i0__namespace.ɵɵadvance(3);
18383
18385
  i0__namespace.ɵɵtextInterpolate1("Where do you want to move \"", ctx.data.document.document_filename, "\" file?");
18384
18386
  i0__namespace.ɵɵadvance(2);
18385
18387
  i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
18386
18388
  }
18387
- }, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder:last-child{border-bottom:1px solid #ccc}.folders>.folder,input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel,.close{cursor:pointer}.cdk-overlay-pane{overflow:auto}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}"], encapsulation: 2 });
18389
+ }, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: ["[_nghost-%COMP%]{position:relative;display:block}.folders[_ngcontent-%COMP%]{margin-bottom:20px}.folder[_ngcontent-%COMP%]{display:none;border-bottom:1px solid #ccc;border-top:1px solid #ccc;margin:0 0 -1px}.folders[_ngcontent-%COMP%] > .folder[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:checked ~ .folder[_ngcontent-%COMP%]{display:block}.iconImg[_ngcontent-%COMP%]{position:relative;display:inline-block;height:28px}.folder[_ngcontent-%COMP%] > .folder[_ngcontent-%COMP%]{margin-left:20px}.folder[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:before{top:3px}.folder[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{top:13px}p[_ngcontent-%COMP%]{font-weight:700}button[_ngcontent-%COMP%]{margin-right:20px}.close[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel[_ngcontent-%COMP%], .close[_ngcontent-%COMP%]{cursor:pointer}"] });
18388
18390
  (function () {
18389
18391
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
18390
18392
  type: i0.Component,
18391
18393
  args: [{
18392
18394
  selector: 'xui-case-file-view-folder-selector',
18393
18395
  templateUrl: './case-file-view-folder-selector.component.html',
18394
- styleUrls: ['./case-file-view-folder-selector.component.scss'],
18395
- encapsulation: i0.ViewEncapsulation.None
18396
+ styleUrls: ['./case-file-view-folder-selector.component.scss']
18396
18397
  }]
18397
18398
  }], function () {
18398
18399
  return [{ type: i1__namespace$3.MatDialogRef }, { type: undefined, decorators: [{
@@ -18464,7 +18465,7 @@
18464
18465
  }
18465
18466
  }
18466
18467
  var _c0$t = [[["", "trigger", ""]]];
18467
- var _c1$9 = ["[trigger]"];
18468
+ var _c1$8 = ["[trigger]"];
18468
18469
  var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
18469
18470
  function CaseFileViewOverlayMenuComponent() {
18470
18471
  this.title = '';
@@ -18479,7 +18480,7 @@
18479
18480
  return CaseFileViewOverlayMenuComponent;
18480
18481
  }());
18481
18482
  CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
18482
- CaseFileViewOverlayMenuComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$9, decls: 5, vars: 4, consts: [["type", "button", "cdkOverlayOrigin", "", 1, "overlay-toggle", 3, "click"], ["trigger", "cdkOverlayOrigin"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass", "backdropClick"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], [1, "overlay-menu__item", 3, "click"], ["class", "overlay-menu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], [1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) {
18483
+ CaseFileViewOverlayMenuComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$8, decls: 5, vars: 4, consts: [["type", "button", "cdkOverlayOrigin", "", 1, "overlay-toggle", 3, "click"], ["trigger", "cdkOverlayOrigin"], ["cdkConnectedOverlay", "", 3, "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass", "backdropClick"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], [1, "overlay-menu__item", 3, "click"], ["class", "overlay-menu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], [1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) {
18483
18484
  if (rf & 1) {
18484
18485
  i0__namespace.ɵɵprojectionDef(_c0$t);
18485
18486
  i0__namespace.ɵɵelementStart(0, "div");
@@ -18944,7 +18945,7 @@
18944
18945
  return Object.assign(documentTreeNode, node);
18945
18946
  }
18946
18947
  var filteredData = this.documentTreeData;
18947
- if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 0) {
18948
+ if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 2) {
18948
18949
  filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
18949
18950
  if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
18950
18951
  return true;
@@ -19026,6 +19027,7 @@
19026
19027
  CaseFileViewFolderComponent.prototype.openMoveDialog = function (node) {
19027
19028
  var _this = this;
19028
19029
  var dialogRef = this.dialog.open(CaseFileViewFolderSelectorComponent, {
19030
+ width: '570px',
19029
19031
  data: { categories: this.categories, document: node }
19030
19032
  });
19031
19033
  dialogRef.afterClosed().subscribe(function (newCatId) {
@@ -19051,7 +19053,7 @@
19051
19053
  }());
19052
19054
  CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
19053
19055
  CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
19054
- CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
19056
+ CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 3;
19055
19057
  CaseFileViewFolderComponent.ɵfac = function CaseFileViewFolderComponent_Factory(t) { return new (t || CaseFileViewFolderComponent)(i0__namespace.ɵɵdirectiveInject(WindowService), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog)); };
19056
19058
  CaseFileViewFolderComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, decls: 9, vars: 3, consts: [[1, "document-filter-container"], [1, "form-group", "document-filter", 3, "formGroup"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "form-control", "document-search"], [1, "document-folders-header"], [1, "document-folders-header__title"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], [3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], [1, "node", 3, "click"], ["disabled", "", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-options"], [3, "allowMoving", "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction"], [1, "document-tree-container__node", "document-tree-container__folder"], ["cdkTreeNodeToggle", "", 1, "node"], [1, "node__icon"], ["alt", "Folder icon", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) {
19057
19059
  if (rf & 1) {
@@ -19111,25 +19113,32 @@
19111
19113
  }
19112
19114
  function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_15_Template(rf, ctx) {
19113
19115
  if (rf & 1) {
19114
- i0__namespace.ɵɵelementStart(0, "strong", 19);
19116
+ i0__namespace.ɵɵelementStart(0, "strong", 20);
19115
19117
  i0__namespace.ɵɵtext(1, "Active");
19116
19118
  i0__namespace.ɵɵelementEnd();
19117
19119
  }
19118
19120
  }
19119
19121
  function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_16_Template(rf, ctx) {
19120
19122
  if (rf & 1) {
19121
- i0__namespace.ɵɵelementStart(0, "strong", 20);
19123
+ i0__namespace.ɵɵelementStart(0, "strong", 21);
19122
19124
  i0__namespace.ɵɵtext(1, "Inactive");
19123
19125
  i0__namespace.ɵɵelementEnd();
19124
19126
  }
19125
19127
  }
19126
19128
  function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template(rf, ctx) {
19127
19129
  if (rf & 1) {
19128
- i0__namespace.ɵɵelementStart(0, "strong", 20);
19130
+ i0__namespace.ɵɵelementStart(0, "strong", 21);
19129
19131
  i0__namespace.ɵɵtext(1, "Requested");
19130
19132
  i0__namespace.ɵɵelementEnd();
19131
19133
  }
19132
19134
  }
19135
+ function CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template(rf, ctx) {
19136
+ if (rf & 1) {
19137
+ i0__namespace.ɵɵelementStart(0, "strong", 22);
19138
+ i0__namespace.ɵɵtext(1, "Not approved");
19139
+ i0__namespace.ɵɵelementEnd();
19140
+ }
19141
+ }
19133
19142
  function CaseFlagTableComponent_table_0_tbody_17_tr_1_Template(rf, ctx) {
19134
19143
  if (rf & 1) {
19135
19144
  i0__namespace.ɵɵelementStart(0, "tr", 15);
@@ -19156,6 +19165,7 @@
19156
19165
  i0__namespace.ɵɵtemplate(15, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_15_Template, 2, 0, "strong", 17);
19157
19166
  i0__namespace.ɵɵtemplate(16, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_16_Template, 2, 0, "strong", 18);
19158
19167
  i0__namespace.ɵɵtemplate(17, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_17_Template, 2, 0, "strong", 18);
19168
+ i0__namespace.ɵɵtemplate(18, CaseFlagTableComponent_table_0_tbody_17_tr_1_strong_18_Template, 2, 0, "strong", 19);
19159
19169
  i0__namespace.ɵɵelementEnd();
19160
19170
  i0__namespace.ɵɵelementEnd();
19161
19171
  }
@@ -19169,21 +19179,23 @@
19169
19179
  i0__namespace.ɵɵadvance(2);
19170
19180
  i0__namespace.ɵɵtextInterpolate(flagDetail_r4.flagComment);
19171
19181
  i0__namespace.ɵɵadvance(2);
19172
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(10, 8, flagDetail_r4.dateTimeCreated, "dd LLL yyyy"));
19182
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(10, 9, flagDetail_r4.dateTimeCreated, "dd LLL yyyy"));
19173
19183
  i0__namespace.ɵɵadvance(3);
19174
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13, 11, flagDetail_r4.dateTimeModified, "dd LLL yyyy"));
19184
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13, 12, flagDetail_r4.dateTimeModified, "dd LLL yyyy"));
19175
19185
  i0__namespace.ɵɵadvance(3);
19176
19186
  i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.ACTIVE);
19177
19187
  i0__namespace.ɵɵadvance(1);
19178
19188
  i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.INACTIVE);
19179
19189
  i0__namespace.ɵɵadvance(1);
19180
19190
  i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.REQUESTED);
19191
+ i0__namespace.ɵɵadvance(1);
19192
+ i0__namespace.ɵɵproperty("ngIf", flagDetail_r4.status === ctx_r3.caseFlagStatus.NOT_APPROVED);
19181
19193
  }
19182
19194
  }
19183
19195
  function CaseFlagTableComponent_table_0_tbody_17_Template(rf, ctx) {
19184
19196
  if (rf & 1) {
19185
19197
  i0__namespace.ɵɵelementStart(0, "tbody", 10);
19186
- i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template, 18, 14, "tr", 14);
19198
+ i0__namespace.ɵɵtemplate(1, CaseFlagTableComponent_table_0_tbody_17_tr_1_Template, 19, 15, "tr", 14);
19187
19199
  i0__namespace.ɵɵelementEnd();
19188
19200
  }
19189
19201
  if (rf & 2) {
@@ -19248,7 +19260,7 @@
19248
19260
  return CaseFlagTableComponent;
19249
19261
  }());
19250
19262
  CaseFlagTableComponent.ɵfac = function CaseFlagTableComponent_Factory(t) { return new (t || CaseFlagTableComponent)(); };
19251
- CaseFlagTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFlagTableComponent, selectors: [["ccd-case-flag-table"]], inputs: { tableCaption: "tableCaption", flagData: "flagData", firstColumnHeader: "firstColumnHeader" }, decls: 1, vars: 1, consts: [["class", "govuk-table", 4, "ngIf"], [1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header", "col-party-name"], ["scope", "col", 1, "govuk-table__header", "col-comments"], ["scope", "col", 1, "govuk-table__header", "col-creation-date"], ["scope", "col", 1, "govuk-table__header", "col-last-modified"], ["scope", "col", 1, "govuk-table__header", "col-flag-status"], [1, "govuk-table__body"], [4, "ngIf"], ["class", "govuk-table__body", 4, "ngIf"], ["colspan", "5"], ["scope", "row", "class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["scope", "row", 1, "govuk-table__row"], [1, "govuk-table__cell"], ["class", "govuk-tag", 4, "ngIf"], ["class", "govuk-tag govuk-tag--grey", 4, "ngIf"], [1, "govuk-tag"], [1, "govuk-tag", "govuk-tag--grey"]], template: function CaseFlagTableComponent_Template(rf, ctx) {
19263
+ CaseFlagTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFlagTableComponent, selectors: [["ccd-case-flag-table"]], inputs: { tableCaption: "tableCaption", flagData: "flagData", firstColumnHeader: "firstColumnHeader" }, decls: 1, vars: 1, consts: [["class", "govuk-table", 4, "ngIf"], [1, "govuk-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header", "col-party-name"], ["scope", "col", 1, "govuk-table__header", "col-comments"], ["scope", "col", 1, "govuk-table__header", "col-creation-date"], ["scope", "col", 1, "govuk-table__header", "col-last-modified"], ["scope", "col", 1, "govuk-table__header", "col-flag-status"], [1, "govuk-table__body"], [4, "ngIf"], ["class", "govuk-table__body", 4, "ngIf"], ["colspan", "5"], ["scope", "row", "class", "govuk-table__row", 4, "ngFor", "ngForOf"], ["scope", "row", 1, "govuk-table__row"], [1, "govuk-table__cell"], ["class", "govuk-tag", 4, "ngIf"], ["class", "govuk-tag govuk-tag--grey", 4, "ngIf"], ["class", "govuk-tag govuk-tag--red", 4, "ngIf"], [1, "govuk-tag"], [1, "govuk-tag", "govuk-tag--grey"], [1, "govuk-tag", "govuk-tag--red"]], template: function CaseFlagTableComponent_Template(rf, ctx) {
19252
19264
  if (rf & 1) {
19253
19265
  i0__namespace.ɵɵtemplate(0, CaseFlagTableComponent_table_0_Template, 18, 4, "table", 0);
19254
19266
  }
@@ -19329,7 +19341,7 @@
19329
19341
  }
19330
19342
  }
19331
19343
  var _c0$s = function (a0) { return { "form-group-error": a0 }; };
19332
- var _c1$8 = function (a0) { return { "govuk-input--error": a0 }; };
19344
+ var _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
19333
19345
  function SelectFlagTypeComponent_div_9_Template(rf, ctx) {
19334
19346
  if (rf & 1) {
19335
19347
  i0__namespace.ɵɵelementStart(0, "div", 15);
@@ -19349,7 +19361,7 @@
19349
19361
  i0__namespace.ɵɵadvance(3);
19350
19362
  i0__namespace.ɵɵproperty("ngIf", ctx_r2.flagTypeErrorMessage.length > 0);
19351
19363
  i0__namespace.ɵɵadvance(1);
19352
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$8, ctx_r2.flagTypeErrorMessage.length > 0))("name", ctx_r2.descriptionControlName)("formControlName", ctx_r2.descriptionControlName);
19364
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$7, ctx_r2.flagTypeErrorMessage.length > 0))("name", ctx_r2.descriptionControlName)("formControlName", ctx_r2.descriptionControlName);
19353
19365
  }
19354
19366
  }
19355
19367
  function SelectFlagTypeComponent_div_10_Template(rf, ctx) {
@@ -19396,18 +19408,22 @@
19396
19408
  && this.formGroup['caseField'].id === this.caseLevelCaseFlagsFieldId
19397
19409
  ? exports.RefdataCaseFlagType.CASE
19398
19410
  : exports.RefdataCaseFlagType.PARTY;
19399
- // HMCTS service code is required to retrieve the relevant list of flag types; attempt to obtain it by case type ID first
19400
- this.flagRefdata$ = this.caseFlagRefdataService.getHmctsServiceDetailsByCaseType(this.caseTypeId)
19411
+ // HMCTS service code for a given jurisdiction is required to retrieve the relevant list of flag types
19412
+ this.flagRefdata$ = this.caseFlagRefdataService.getHmctsServiceDetails(this.jurisdiction)
19401
19413
  .pipe(
19402
- // If an error occurs retrieving HMCTS service details by case type ID, try by service name instead
19403
- operators.catchError(function (_) { return _this.caseFlagRefdataService.getHmctsServiceDetailsByServiceName(_this.jurisdiction); }),
19404
19414
  // Use switchMap to return an inner Observable of the flag types data, having received the service details
19405
19415
  // including service_code. This avoids having nested `subscribe`s, which is an anti-pattern!
19406
- operators.switchMap(function (serviceDetails) { return _this.caseFlagRefdataService.getCaseFlagsRefdata(serviceDetails[0].service_code, flagType); }))
19416
+ operators.switchMap(function (serviceDetails) {
19417
+ return _this.caseFlagRefdataService.getCaseFlagsRefdata(serviceDetails[0].service_code, flagType);
19418
+ }))
19407
19419
  .subscribe({
19408
- // First (and only) object in the returned array should be the top-level "Party" flag type
19409
- next: function (flagTypes) { return _this.flagTypes = flagTypes[0].childFlags; },
19410
- error: function (error) { return _this.onRefdataError(error); }
19420
+ next: function (flagTypes) {
19421
+ // First (and only) object in the returned array should be the top-level "Party" flag type
19422
+ _this.flagTypes = flagTypes[0].childFlags;
19423
+ },
19424
+ error: function (error) {
19425
+ _this.onRefdataError(error);
19426
+ }
19411
19427
  });
19412
19428
  };
19413
19429
  SelectFlagTypeComponent.prototype.ngOnDestroy = function () {
@@ -19480,7 +19496,7 @@
19480
19496
  return SelectFlagTypeComponent;
19481
19497
  }());
19482
19498
  SelectFlagTypeComponent.ɵfac = function SelectFlagTypeComponent_Factory(t) { return new (t || SelectFlagTypeComponent)(i0__namespace.ɵɵdirectiveInject(CaseFlagRefdataService)); };
19483
- SelectFlagTypeComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction", caseTypeId: "caseTypeId" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls: 11, vars: 9, consts: [[1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-type-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], ["id", "flag-type-heading", 1, "govuk-fieldset__heading"], ["id", "flag-type-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["class", "govuk-radios__conditional", "id", "conditional-flagType", 4, "ngIf"], ["class", "govuk-button-group", 4, "ngIf"], ["id", "flag-type-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName", "change"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "conditional-flagType", 1, "govuk-radios__conditional"], ["for", "other-flag-type-description", 1, "govuk-label"], ["id", "flag-type-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-flag-type-description", "type", "text", 1, "govuk-input", "govuk-!-width-one-half", 3, "ngClass", "name", "formControlName"], ["id", "flag-type-error-message", 1, "govuk-error-message"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagTypeComponent_Template(rf, ctx) {
19499
+ SelectFlagTypeComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: SelectFlagTypeComponent, selectors: [["ccd-select-flag-type"]], inputs: { formGroup: "formGroup", jurisdiction: "jurisdiction" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter", flagCommentsOptionalEmitter: "flagCommentsOptionalEmitter" }, decls: 11, vars: 9, consts: [[1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "flag-type-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], ["id", "flag-type-heading", 1, "govuk-fieldset__heading"], ["id", "flag-type-not-selected-error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", "id", "conditional-radios-list", 1, "govuk-radios", "govuk-radios--conditional"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["class", "govuk-radios__conditional", "id", "conditional-flagType", 4, "ngIf"], ["class", "govuk-button-group", 4, "ngIf"], ["id", "flag-type-not-selected-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "value", "formControlName", "change"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "conditional-flagType", 1, "govuk-radios__conditional"], ["for", "other-flag-type-description", 1, "govuk-label"], ["id", "flag-type-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-flag-type-description", "type", "text", 1, "govuk-input", "govuk-!-width-one-half", 3, "ngClass", "name", "formControlName"], ["id", "flag-type-error-message", 1, "govuk-error-message"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"]], template: function SelectFlagTypeComponent_Template(rf, ctx) {
19484
19500
  if (rf & 1) {
19485
19501
  i0__namespace.ɵɵelementStart(0, "div", 0);
19486
19502
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -19528,8 +19544,6 @@
19528
19544
  type: i0.Input
19529
19545
  }], jurisdiction: [{
19530
19546
  type: i0.Input
19531
- }], caseTypeId: [{
19532
- type: i0.Input
19533
19547
  }], caseFlagStateEmitter: [{
19534
19548
  type: i0.Output
19535
19549
  }], flagCommentsOptionalEmitter: [{
@@ -20448,10 +20462,10 @@
20448
20462
  }] });
20449
20463
  })();
20450
20464
 
20451
- function UpdateFlagComponent_div_8_Template(rf, ctx) {
20465
+ function UpdateFlagComponent_div_12_Template(rf, ctx) {
20452
20466
  if (rf & 1) {
20453
- i0__namespace.ɵɵelementStart(0, "div", 16);
20454
- i0__namespace.ɵɵelementStart(1, "span", 17);
20467
+ i0__namespace.ɵɵelementStart(0, "div", 24);
20468
+ i0__namespace.ɵɵelementStart(1, "span", 25);
20455
20469
  i0__namespace.ɵɵtext(2, "Error:");
20456
20470
  i0__namespace.ɵɵelementEnd();
20457
20471
  i0__namespace.ɵɵtext(3);
@@ -20463,10 +20477,10 @@
20463
20477
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.updateFlagNotEnteredErrorMessage, " ");
20464
20478
  }
20465
20479
  }
20466
- function UpdateFlagComponent_div_9_Template(rf, ctx) {
20480
+ function UpdateFlagComponent_div_13_Template(rf, ctx) {
20467
20481
  if (rf & 1) {
20468
- i0__namespace.ɵɵelementStart(0, "div", 18);
20469
- i0__namespace.ɵɵelementStart(1, "span", 17);
20482
+ i0__namespace.ɵɵelementStart(0, "div", 26);
20483
+ i0__namespace.ɵɵelementStart(1, "span", 25);
20470
20484
  i0__namespace.ɵɵtext(2, "Error:");
20471
20485
  i0__namespace.ɵɵelementEnd();
20472
20486
  i0__namespace.ɵɵtext(3);
@@ -20478,17 +20492,28 @@
20478
20492
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.updateFlagCharLimitErrorMessage, " ");
20479
20493
  }
20480
20494
  }
20481
- function UpdateFlagComponent_button_22_Template(rf, ctx) {
20495
+ function UpdateFlagComponent_div_24_Template(rf, ctx) {
20482
20496
  if (rf & 1) {
20483
- var _r4_1 = i0__namespace.ɵɵgetCurrentView();
20484
- i0__namespace.ɵɵelementStart(0, "button", 19);
20485
- i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_button_22_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(); return ctx_r3.onChangeStatus(); });
20486
- i0__namespace.ɵɵtext(1, " Make inactive ");
20497
+ i0__namespace.ɵɵelementStart(0, "div", 27);
20498
+ i0__namespace.ɵɵelement(1, "input", 28);
20499
+ i0__namespace.ɵɵpipe(2, "lowercase");
20500
+ i0__namespace.ɵɵelementStart(3, "label", 29);
20501
+ i0__namespace.ɵɵtext(4);
20502
+ i0__namespace.ɵɵelementEnd();
20487
20503
  i0__namespace.ɵɵelementEnd();
20488
20504
  }
20505
+ if (rf & 2) {
20506
+ var status_r3 = ctx.$implicit;
20507
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
20508
+ i0__namespace.ɵɵadvance(1);
20509
+ i0__namespace.ɵɵproperty("name", ctx_r2.FLAG_STATUS_CONTROL_NAME)("value", i0__namespace.ɵɵpipeBind1(2, 4, status_r3));
20510
+ i0__namespace.ɵɵadvance(2);
20511
+ i0__namespace.ɵɵproperty("for", ctx_r2.FLAG_STATUS_CONTROL_NAME);
20512
+ i0__namespace.ɵɵadvance(1);
20513
+ i0__namespace.ɵɵtextInterpolate1(" ", status_r3, " ");
20514
+ }
20489
20515
  }
20490
20516
  var _c0$n = function (a0) { return { "form-group-error": a0 }; };
20491
- var _c1$7 = function (a0) { return { "govuk-tag--grey": a0 }; };
20492
20517
  var UpdateFlagComponent = /** @class */ (function () {
20493
20518
  function UpdateFlagComponent() {
20494
20519
  this.caseFlagStateEmitter = new i0.EventEmitter();
@@ -20496,22 +20521,25 @@
20496
20521
  this.errorMessages = [];
20497
20522
  this.updateFlagNotEnteredErrorMessage = null;
20498
20523
  this.updateFlagCharLimitErrorMessage = null;
20499
- this.updateFlagControlName = 'flagComments';
20524
+ this.updateFlagStepEnum = exports.UpdateFlagStep;
20525
+ this.caseFlagStatuses = exports.CaseFlagStatus;
20526
+ this.FLAG_COMMENTS_CONTROL_NAME = 'flagComment';
20527
+ this.FLAG_STATUS_CONTROL_NAME = 'flagStatus';
20528
+ this.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME = 'flagStatusReasonChange';
20529
+ this.FLAG_WELSH_TRANSLATION_CONTROL_NAME = 'flagWelshTranslation';
20500
20530
  this.commentsMaxCharLimit = 200;
20501
20531
  }
20502
20532
  UpdateFlagComponent.prototype.ngOnInit = function () {
20503
- this.updateFlagHint = exports.UpdateFlagStep.HINT_TEXT;
20504
- this.updateFlagCharLimitInfo = exports.UpdateFlagStep.CHARACTER_LIMIT_INFO;
20505
- this.formGroup.addControl(this.updateFlagControlName, new i2.FormControl(''));
20506
20533
  if (this.selectedFlag && this.selectedFlag.flagDetailDisplay && this.selectedFlag.flagDetailDisplay.flagDetail) {
20507
20534
  var flagDetail = this.selectedFlag.flagDetailDisplay.flagDetail;
20535
+ this.formGroup.addControl(this.FLAG_STATUS_CONTROL_NAME, new i2.FormControl(flagDetail.status));
20536
+ this.formGroup.addControl(this.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME, new i2.FormControl(''));
20537
+ this.formGroup.addControl(this.FLAG_WELSH_TRANSLATION_CONTROL_NAME, new i2.FormControl(false));
20508
20538
  // Populate flag comments text area with existing comments
20509
- this.formGroup.get(this.updateFlagControlName).setValue(flagDetail.flagComment);
20539
+ this.formGroup.addControl(this.FLAG_COMMENTS_CONTROL_NAME, new i2.FormControl(flagDetail.flagComment));
20510
20540
  if (flagDetail.name) {
20511
20541
  this.updateFlagTitle =
20512
- exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \"" + flagDetail.name + (flagDetail.subTypeValue
20513
- ? ", " + flagDetail.subTypeValue + "\""
20514
- : '"');
20542
+ exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \"" + flagDetail.name + (flagDetail.subTypeValue ? ", " + flagDetail.subTypeValue + "\"" : '"');
20515
20543
  }
20516
20544
  }
20517
20545
  };
@@ -20520,7 +20548,7 @@
20520
20548
  this.validateTextEntry();
20521
20549
  // If validation has passed, update the flag details with the comments entered
20522
20550
  if (this.errorMessages.length === 0) {
20523
- this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { flagComment: this.formGroup.get(this.updateFlagControlName).value });
20551
+ this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { flagComment: this.formGroup.get(this.FLAG_COMMENTS_CONTROL_NAME).value });
20524
20552
  }
20525
20553
  // Return case flag field state, error messages, and selected flag detail to the parent. The selected flag must be
20526
20554
  // re-emitted because the parent component repopulates this on handling this EventEmitter
@@ -20530,22 +20558,17 @@
20530
20558
  selectedFlag: this.selectedFlag
20531
20559
  });
20532
20560
  };
20533
- UpdateFlagComponent.prototype.onChangeStatus = function () {
20534
- this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { status: this.selectedFlag.flagDetailDisplay.flagDetail.status === exports.CaseFlagStatus.ACTIVE
20535
- ? exports.CaseFlagStatus.INACTIVE
20536
- : this.selectedFlag.flagDetailDisplay.flagDetail.status });
20537
- };
20538
20561
  UpdateFlagComponent.prototype.validateTextEntry = function () {
20539
20562
  this.updateFlagNotEnteredErrorMessage = null;
20540
20563
  this.updateFlagCharLimitErrorMessage = null;
20541
20564
  this.errorMessages = [];
20542
- var comment = this.formGroup.get(this.updateFlagControlName).value;
20565
+ var comment = this.formGroup.get(this.FLAG_COMMENTS_CONTROL_NAME).value;
20543
20566
  if (!comment) {
20544
20567
  this.updateFlagNotEnteredErrorMessage = exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED;
20545
20568
  this.errorMessages.push({
20546
20569
  title: '',
20547
20570
  description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED,
20548
- fieldId: this.updateFlagControlName
20571
+ fieldId: this.FLAG_COMMENTS_CONTROL_NAME
20549
20572
  });
20550
20573
  }
20551
20574
  if (comment && comment.length > this.commentsMaxCharLimit) {
@@ -20553,14 +20576,14 @@
20553
20576
  this.errorMessages.push({
20554
20577
  title: '',
20555
20578
  description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED,
20556
- fieldId: this.updateFlagControlName
20579
+ fieldId: this.FLAG_COMMENTS_CONTROL_NAME
20557
20580
  });
20558
20581
  }
20559
20582
  };
20560
20583
  return UpdateFlagComponent;
20561
20584
  }());
20562
20585
  UpdateFlagComponent.ɵfac = function UpdateFlagComponent_Factory(t) { return new (t || UpdateFlagComponent)(); };
20563
- UpdateFlagComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: UpdateFlagComponent, selectors: [["ccd-update-flag"]], inputs: { formGroup: "formGroup", selectedFlag: "selectedFlag" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 26, vars: 18, consts: [[1, "form-group", 3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], [1, "govuk-label", "govuk-label--l", 3, "for"], ["id", "update-flag-hint", 1, "govuk-hint"], ["id", "update-flag-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-hint update-flag-char-limit-info update-flag-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-grid-row"], [1, "govuk-grid-column-one-half"], [1, "govuk-tag", 3, "ngClass"], ["class", "button button-secondary", "type", "button", 3, "click", 4, "ngIf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], ["id", "update-flag-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "update-flag-char-limit-error", 1, "govuk-error-message"], ["type", "button", 1, "button", "button-secondary", 3, "click"]], template: function UpdateFlagComponent_Template(rf, ctx) {
20586
+ UpdateFlagComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: UpdateFlagComponent, selectors: [["ccd-update-flag"]], inputs: { formGroup: "formGroup", selectedFlag: "selectedFlag" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 40, vars: 26, consts: [[1, "form-group", 3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper", "govuk-!-margin-bottom-6"], [1, "govuk-label", "govuk-label--l"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "update-flag-hint", 1, "govuk-hint"], ["id", "update-flag-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-hint update-flag-char-limit-info update-flag-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-!-margin-bottom-6"], [1, "govuk-label", "govuk-label--s", "govuk-!-margin-bottom-2"], ["data-module", "govuk-radios", 1, "govuk-radios", 3, "id"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "update-flag-status-hint", 1, "govuk-hint"], ["rows", "5", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes"], [1, "govuk-checkboxes__item"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], ["id", "update-flag-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "update-flag-char-limit-error", 1, "govuk-error-message"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "name", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"]], template: function UpdateFlagComponent_Template(rf, ctx) {
20564
20587
  if (rf & 1) {
20565
20588
  i0__namespace.ɵɵelementStart(0, "div", 0);
20566
20589
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -20571,37 +20594,60 @@
20571
20594
  i0__namespace.ɵɵelementEnd();
20572
20595
  i0__namespace.ɵɵelementEnd();
20573
20596
  i0__namespace.ɵɵelementStart(6, "div", 5);
20574
- i0__namespace.ɵɵtext(7);
20597
+ i0__namespace.ɵɵelementStart(7, "div");
20598
+ i0__namespace.ɵɵelementStart(8, "label", 6);
20599
+ i0__namespace.ɵɵtext(9);
20575
20600
  i0__namespace.ɵɵelementEnd();
20576
- i0__namespace.ɵɵtemplate(8, UpdateFlagComponent_div_8_Template, 4, 1, "div", 6);
20577
- i0__namespace.ɵɵtemplate(9, UpdateFlagComponent_div_9_Template, 4, 1, "div", 7);
20578
- i0__namespace.ɵɵelementStart(10, "textarea", 8);
20579
- i0__namespace.ɵɵtext(11, " ");
20580
20601
  i0__namespace.ɵɵelementEnd();
20581
- i0__namespace.ɵɵelementStart(12, "div", 9);
20582
- i0__namespace.ɵɵtext(13);
20602
+ i0__namespace.ɵɵelementStart(10, "div", 7);
20603
+ i0__namespace.ɵɵtext(11);
20583
20604
  i0__namespace.ɵɵelementEnd();
20605
+ i0__namespace.ɵɵtemplate(12, UpdateFlagComponent_div_12_Template, 4, 1, "div", 8);
20606
+ i0__namespace.ɵɵtemplate(13, UpdateFlagComponent_div_13_Template, 4, 1, "div", 9);
20607
+ i0__namespace.ɵɵelementStart(14, "textarea", 10);
20608
+ i0__namespace.ɵɵtext(15, " ");
20584
20609
  i0__namespace.ɵɵelementEnd();
20610
+ i0__namespace.ɵɵelementStart(16, "div", 11);
20611
+ i0__namespace.ɵɵtext(17);
20585
20612
  i0__namespace.ɵɵelementEnd();
20586
- i0__namespace.ɵɵelementStart(14, "div", 10);
20587
- i0__namespace.ɵɵelementStart(15, "div", 11);
20588
- i0__namespace.ɵɵelementStart(16, "p");
20589
- i0__namespace.ɵɵtext(17, "Flag status: ");
20590
- i0__namespace.ɵɵelementStart(18, "span");
20591
- i0__namespace.ɵɵelementStart(19, "strong", 12);
20592
- i0__namespace.ɵɵtext(20);
20593
20613
  i0__namespace.ɵɵelementEnd();
20614
+ i0__namespace.ɵɵelementStart(18, "div", 12);
20615
+ i0__namespace.ɵɵelementStart(19, "div");
20616
+ i0__namespace.ɵɵelementStart(20, "label", 13);
20617
+ i0__namespace.ɵɵtext(21);
20594
20618
  i0__namespace.ɵɵelementEnd();
20595
20619
  i0__namespace.ɵɵelementEnd();
20620
+ i0__namespace.ɵɵelementStart(22, "div", 5);
20621
+ i0__namespace.ɵɵelementStart(23, "div", 14);
20622
+ i0__namespace.ɵɵtemplate(24, UpdateFlagComponent_div_24_Template, 5, 6, "div", 15);
20623
+ i0__namespace.ɵɵpipe(25, "enumDisplayDescription");
20596
20624
  i0__namespace.ɵɵelementEnd();
20597
- i0__namespace.ɵɵelementStart(21, "div", 11);
20598
- i0__namespace.ɵɵtemplate(22, UpdateFlagComponent_button_22_Template, 2, 0, "button", 13);
20599
20625
  i0__namespace.ɵɵelementEnd();
20626
+ i0__namespace.ɵɵelementStart(26, "div");
20627
+ i0__namespace.ɵɵelementStart(27, "div", 16);
20628
+ i0__namespace.ɵɵtext(28);
20600
20629
  i0__namespace.ɵɵelementEnd();
20601
- i0__namespace.ɵɵelementStart(23, "div", 14);
20602
- i0__namespace.ɵɵelementStart(24, "button", 15);
20603
- i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_24_listener() { return ctx.onNext(); });
20604
- i0__namespace.ɵɵtext(25, "Next");
20630
+ i0__namespace.ɵɵelementStart(29, "textarea", 17);
20631
+ i0__namespace.ɵɵtext(30, " ");
20632
+ i0__namespace.ɵɵelementEnd();
20633
+ i0__namespace.ɵɵelementEnd();
20634
+ i0__namespace.ɵɵelementEnd();
20635
+ i0__namespace.ɵɵelementStart(31, "div");
20636
+ i0__namespace.ɵɵelementStart(32, "div", 18);
20637
+ i0__namespace.ɵɵelementStart(33, "div", 19);
20638
+ i0__namespace.ɵɵelement(34, "input", 20);
20639
+ i0__namespace.ɵɵelementStart(35, "label", 21);
20640
+ i0__namespace.ɵɵtext(36, " I need to add a Welsh translation ");
20641
+ i0__namespace.ɵɵelementEnd();
20642
+ i0__namespace.ɵɵelementEnd();
20643
+ i0__namespace.ɵɵelementEnd();
20644
+ i0__namespace.ɵɵelementEnd();
20645
+ i0__namespace.ɵɵelementEnd();
20646
+ i0__namespace.ɵɵelementEnd();
20647
+ i0__namespace.ɵɵelementStart(37, "div", 22);
20648
+ i0__namespace.ɵɵelementStart(38, "button", 23);
20649
+ i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_38_listener() { return ctx.onNext(); });
20650
+ i0__namespace.ɵɵtext(39, "Next");
20605
20651
  i0__namespace.ɵɵelementEnd();
20606
20652
  i0__namespace.ɵɵelementEnd();
20607
20653
  i0__namespace.ɵɵelementEnd();
@@ -20609,29 +20655,39 @@
20609
20655
  if (rf & 2) {
20610
20656
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
20611
20657
  i0__namespace.ɵɵadvance(2);
20612
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(14, _c0$n, ctx.errorMessages.length > 0));
20613
- i0__namespace.ɵɵadvance(2);
20614
- i0__namespace.ɵɵproperty("for", ctx.updateFlagControlName);
20615
- i0__namespace.ɵɵadvance(1);
20658
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(24, _c0$n, ctx.errorMessages.length > 0));
20659
+ i0__namespace.ɵɵadvance(3);
20616
20660
  i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, " ");
20661
+ i0__namespace.ɵɵadvance(3);
20662
+ i0__namespace.ɵɵproperty("for", ctx.FLAG_COMMENTS_CONTROL_NAME);
20663
+ i0__namespace.ɵɵadvance(1);
20664
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, " comments ");
20617
20665
  i0__namespace.ɵɵadvance(2);
20618
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagHint, " ");
20666
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagStepEnum.COMMENT_HINT_TEXT, " ");
20619
20667
  i0__namespace.ɵɵadvance(1);
20620
20668
  i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagNotEnteredErrorMessage);
20621
20669
  i0__namespace.ɵɵadvance(1);
20622
20670
  i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagCharLimitErrorMessage);
20623
20671
  i0__namespace.ɵɵadvance(1);
20624
- i0__namespace.ɵɵproperty("id", ctx.updateFlagControlName)("name", ctx.updateFlagControlName)("formControlName", ctx.updateFlagControlName);
20672
+ i0__namespace.ɵɵproperty("id", ctx.FLAG_COMMENTS_CONTROL_NAME)("name", ctx.FLAG_COMMENTS_CONTROL_NAME)("formControlName", ctx.FLAG_COMMENTS_CONTROL_NAME);
20625
20673
  i0__namespace.ɵɵadvance(3);
20626
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagCharLimitInfo, " ");
20627
- i0__namespace.ɵɵadvance(6);
20628
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c1$7, ctx.selectedFlag.flagDetailDisplay.flagDetail.status === "Inactive"));
20629
- i0__namespace.ɵɵadvance(1);
20630
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.selectedFlag.flagDetailDisplay.flagDetail.status, " ");
20674
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagStepEnum.COMMENT_CHARACTER_LIMIT_INFO, " ");
20675
+ i0__namespace.ɵɵadvance(4);
20676
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, " status ");
20631
20677
  i0__namespace.ɵɵadvance(2);
20632
- i0__namespace.ɵɵproperty("ngIf", ctx.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
20678
+ i0__namespace.ɵɵproperty("id", ctx.FLAG_STATUS_CONTROL_NAME);
20679
+ i0__namespace.ɵɵadvance(1);
20680
+ i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(25, 22, ctx.caseFlagStatuses));
20681
+ i0__namespace.ɵɵadvance(4);
20682
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagStepEnum.STATUS_HINT_TEXT, " ");
20683
+ i0__namespace.ɵɵadvance(1);
20684
+ i0__namespace.ɵɵproperty("id", ctx.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME)("name", ctx.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME)("formControlName", ctx.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME);
20685
+ i0__namespace.ɵɵadvance(5);
20686
+ i0__namespace.ɵɵproperty("id", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME)("name", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME);
20687
+ i0__namespace.ɵɵadvance(1);
20688
+ i0__namespace.ɵɵproperty("for", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME);
20633
20689
  }
20634
- }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], encapsulation: 2 });
20690
+ }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i1__namespace.NgForOf], pipes: [EnumDisplayDescriptionPipe, i1__namespace.LowerCasePipe], encapsulation: 2 });
20635
20691
  (function () {
20636
20692
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(UpdateFlagComponent, [{
20637
20693
  type: i0.Component,
@@ -35354,6 +35410,7 @@
35354
35410
  exports.DynamicRadioListPipe = DynamicRadioListPipe;
35355
35411
  exports.ESQueryType = ESQueryType;
35356
35412
  exports.Embedded = Embedded;
35413
+ exports.EnumDisplayDescriptionPipe = EnumDisplayDescriptionPipe;
35357
35414
  exports.ErrorMessageComponent = ErrorMessageComponent;
35358
35415
  exports.ErrorNotifierService = ErrorNotifierService;
35359
35416
  exports.EventCaseField = EventCaseField;