@hmcts/ccd-case-ui-toolkit 5.0.50-update-flag-screen-v4 → 5.0.51-restricted-case-access

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 (36) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +149 -212
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/shared/components/case-viewer/services/case.resolver.js +10 -6
  6. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field-read.component.js +4 -4
  7. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +4 -4
  8. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.js +3 -4
  9. package/esm2015/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.js +26 -25
  10. package/esm2015/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.js +64 -106
  11. package/esm2015/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.js +1 -2
  12. package/esm2015/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.js +3 -4
  13. package/esm2015/lib/shared/pipes/index.js +1 -2
  14. package/esm2015/lib/shared/pipes/pipes.module.js +5 -9
  15. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +151 -207
  16. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  17. package/lib/shared/components/case-viewer/services/case.resolver.d.ts.map +1 -1
  18. package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.d.ts.map +1 -1
  19. 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
  20. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts +5 -7
  21. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts.map +1 -1
  22. package/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.d.ts +1 -2
  23. package/lib/shared/components/palette/case-flag/enums/case-flag-status.enum.d.ts.map +1 -1
  24. package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts +2 -3
  25. package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts.map +1 -1
  26. package/lib/shared/pipes/index.d.ts +0 -1
  27. package/lib/shared/pipes/index.d.ts.map +1 -1
  28. package/lib/shared/pipes/pipes.module.d.ts +2 -3
  29. package/lib/shared/pipes/pipes.module.d.ts.map +1 -1
  30. package/package.json +1 -1
  31. package/esm2015/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.js +0 -16
  32. package/esm2015/lib/shared/pipes/generic/index.js +0 -2
  33. package/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.d.ts +0 -8
  34. package/lib/shared/pipes/generic/enum-display-description/enum-display-description.pipe.d.ts.map +0 -1
  35. package/lib/shared/pipes/generic/index.d.ts +0 -2
  36. package/lib/shared/pipes/generic/index.d.ts.map +0 -1
@@ -119,14 +119,14 @@
119
119
  }
120
120
  }
121
121
  var _c0$_ = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
122
- var _c1$q = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
122
+ var _c1$r = ["[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$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) {
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) {
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$p = ["[headerNavigation]"];
211
+ var _c1$q = ["[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$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) {
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) {
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$o = ["[leftNavLinks]", "[rightNavLinks]"];
286
+ var _c1$p = ["[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$o, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
293
+ NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$p, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
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$n = ["[topBody]", "[leftBody]", "[rightBody]"];
441
+ var _c1$o = ["[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$n, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
448
+ BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$o, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
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$m = ["*"];
1475
+ var _c1$n = ["*"];
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$m, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
1482
+ TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$n, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
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$l = function () { return ["."]; };
1514
+ var _c1$m = 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$l))("fragment", panel_r1.id)("ngClass", i0__namespace.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
1529
+ i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$m))("fragment", panel_r1.id)("ngClass", i0__namespace.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
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,7 +2552,6 @@
2552
2552
  CaseFlagStatus["ACTIVE"] = "Active";
2553
2553
  CaseFlagStatus["INACTIVE"] = "Inactive";
2554
2554
  CaseFlagStatus["REQUESTED"] = "Requested";
2555
- CaseFlagStatus["NOT_APPROVED"] = "Not Approved";
2556
2555
  })(exports.CaseFlagStatus || (exports.CaseFlagStatus = {}));
2557
2556
 
2558
2557
  var DashPipe = /** @class */ (function () {
@@ -11401,25 +11400,6 @@
11401
11400
  }], null, null);
11402
11401
  })();
11403
11402
 
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
-
11423
11403
  var LinkedCasesService = /** @class */ (function () {
11424
11404
  function LinkedCasesService(jurisdictionService, searchService) {
11425
11405
  var _this = this;
@@ -11618,8 +11598,7 @@
11618
11598
  ReadFieldsFilterPipe,
11619
11599
  CcdTabFieldsPipe,
11620
11600
  CcdPageFieldsPipe,
11621
- LinkCasesReasonValuePipe,
11622
- EnumDisplayDescriptionPipe
11601
+ LinkCasesReasonValuePipe
11623
11602
  ];
11624
11603
  var PipesModule = /** @class */ (function () {
11625
11604
  function PipesModule() {
@@ -11640,8 +11619,7 @@
11640
11619
  ReadFieldsFilterPipe,
11641
11620
  CcdTabFieldsPipe,
11642
11621
  CcdPageFieldsPipe,
11643
- LinkCasesReasonValuePipe,
11644
- EnumDisplayDescriptionPipe], imports: [i1.CommonModule], exports: [CaseReferencePipe,
11622
+ LinkCasesReasonValuePipe], imports: [i1.CommonModule], exports: [CaseReferencePipe,
11645
11623
  SortSearchResultPipe,
11646
11624
  CcdCaseTitlePipe,
11647
11625
  CcdCollectionTableCaseFieldsFilterPipe,
@@ -11649,8 +11627,7 @@
11649
11627
  ReadFieldsFilterPipe,
11650
11628
  CcdTabFieldsPipe,
11651
11629
  CcdPageFieldsPipe,
11652
- LinkCasesReasonValuePipe,
11653
- EnumDisplayDescriptionPipe] });
11630
+ LinkCasesReasonValuePipe] });
11654
11631
  })();
11655
11632
  (function () {
11656
11633
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PipesModule, [{
@@ -11718,7 +11695,7 @@
11718
11695
  i0__namespace.ɵɵelementEnd();
11719
11696
  }
11720
11697
  }
11721
- var _c1$k = function (a0) { return { "form-group-error": a0 }; };
11698
+ var _c1$l = function (a0) { return { "form-group-error": a0 }; };
11722
11699
  var _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
11723
11700
  function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
11724
11701
  if (rf & 1) {
@@ -11739,7 +11716,7 @@
11739
11716
  }
11740
11717
  if (rf & 2) {
11741
11718
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
11742
- i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$k, ctx_r2.missingPostcode));
11719
+ i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$l, ctx_r2.missingPostcode));
11743
11720
  i0__namespace.ɵɵadvance(1);
11744
11721
  i0__namespace.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
11745
11722
  i0__namespace.ɵɵadvance(3);
@@ -12026,7 +12003,7 @@
12026
12003
  if (rf & 2) {
12027
12004
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
12028
12005
  i0__namespace.ɵɵadvance(1);
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);
12006
+ 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");
12030
12007
  }
12031
12008
  }
12032
12009
  function CaseFileViewFieldComponent_div_1_Template(rf, ctx) {
@@ -12044,7 +12021,7 @@
12044
12021
  i0__namespace.ɵɵelementEnd();
12045
12022
  i0__namespace.ɵɵelement(6, "div", 9);
12046
12023
  i0__namespace.ɵɵelementStart(7, "div", 10);
12047
- i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 6, "ng-container", 1);
12024
+ i0__namespace.ɵɵtemplate(8, CaseFileViewFieldComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
12048
12025
  i0__namespace.ɵɵelementEnd();
12049
12026
  i0__namespace.ɵɵelementEnd();
12050
12027
  i0__namespace.ɵɵelementEnd();
@@ -12125,7 +12102,7 @@
12125
12102
  }());
12126
12103
  CaseFileViewFieldComponent.PARAM_CASE_ID = 'cid';
12127
12104
  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)); };
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) {
12105
+ 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) {
12129
12106
  if (rf & 1) {
12130
12107
  i0__namespace.ɵɵtemplate(0, CaseFileViewFieldComponent_div_0_Template, 5, 0, "div", 0);
12131
12108
  i0__namespace.ɵɵtemplate(1, CaseFileViewFieldComponent_div_1_Template, 9, 3, "div", 1);
@@ -12168,7 +12145,7 @@
12168
12145
  if (rf & 2) {
12169
12146
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
12170
12147
  i0__namespace.ɵɵadvance(1);
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);
12148
+ 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");
12172
12149
  }
12173
12150
  }
12174
12151
  function CaseFileViewFieldReadComponent_div_1_Template(rf, ctx) {
@@ -12186,7 +12163,7 @@
12186
12163
  i0__namespace.ɵɵelementEnd();
12187
12164
  i0__namespace.ɵɵelement(6, "div", 9);
12188
12165
  i0__namespace.ɵɵelementStart(7, "div", 10);
12189
- i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 6, "ng-container", 1);
12166
+ i0__namespace.ɵɵtemplate(8, CaseFileViewFieldReadComponent_div_1_ng_container_8_Template, 2, 7, "ng-container", 1);
12190
12167
  i0__namespace.ɵɵelementEnd();
12191
12168
  i0__namespace.ɵɵelementEnd();
12192
12169
  i0__namespace.ɵɵelementEnd();
@@ -12209,7 +12186,7 @@
12209
12186
  return CaseFileViewFieldReadComponent;
12210
12187
  }(CaseFileViewFieldComponent));
12211
12188
  CaseFileViewFieldReadComponent.ɵfac = function CaseFileViewFieldReadComponent_Factory(t) { return ɵCaseFileViewFieldReadComponent_BaseFactory(t || CaseFileViewFieldReadComponent); };
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) {
12189
+ 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) {
12213
12190
  if (rf & 1) {
12214
12191
  i0__namespace.ɵɵtemplate(0, CaseFileViewFieldReadComponent_div_0_Template, 5, 0, "div", 0);
12215
12192
  i0__namespace.ɵɵtemplate(1, CaseFileViewFieldReadComponent_div_1_Template, 9, 3, "div", 1);
@@ -12318,9 +12295,8 @@
12318
12295
 
12319
12296
  exports.UpdateFlagStep = void 0;
12320
12297
  (function (UpdateFlagStep) {
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";
12298
+ UpdateFlagStep["HINT_TEXT"] = "Explain why you are updating this flag. Do not include any sensitive information such as personal details.";
12299
+ UpdateFlagStep["CHARACTER_LIMIT_INFO"] = "You can enter up to 200 characters";
12324
12300
  })(exports.UpdateFlagStep || (exports.UpdateFlagStep = {}));
12325
12301
 
12326
12302
  function ReadCaseFlagFieldComponent_ng_container_1_Template(rf, ctx) {
@@ -13239,7 +13215,7 @@
13239
13215
  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
13216
  }
13241
13217
  }
13242
- var _c1$j = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
13218
+ var _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
13243
13219
  function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) {
13244
13220
  if (rf & 1) {
13245
13221
  i0__namespace.ɵɵelementStart(0, "tr");
@@ -13253,7 +13229,7 @@
13253
13229
  var i_r5 = ctx.index;
13254
13230
  var ctx_r3 = i0__namespace.ɵɵnextContext(3);
13255
13231
  i0__namespace.ɵɵadvance(2);
13256
- 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));
13232
+ 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));
13257
13233
  }
13258
13234
  }
13259
13235
  function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) {
@@ -14422,7 +14398,7 @@
14422
14398
  i0__namespace.ɵɵproperty("caseField", ctx_r2.caseField);
14423
14399
  }
14424
14400
  }
14425
- var _c1$i = function (a0) { return { "form-group-error bottom-30": a0 }; };
14401
+ var _c1$j = function (a0) { return { "form-group-error bottom-30": a0 }; };
14426
14402
  var WriteDocumentFieldComponent = /** @class */ (function (_super) {
14427
14403
  __extends(WriteDocumentFieldComponent, _super);
14428
14404
  function WriteDocumentFieldComponent(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService) {
@@ -14724,7 +14700,7 @@
14724
14700
  i0__namespace.ɵɵelementEnd();
14725
14701
  }
14726
14702
  if (rf & 2) {
14727
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$i, !ctx.valid));
14703
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(15, _c1$j, !ctx.valid));
14728
14704
  i0__namespace.ɵɵadvance(1);
14729
14705
  i0__namespace.ɵɵproperty("for", ctx.id());
14730
14706
  i0__namespace.ɵɵadvance(1);
@@ -15104,7 +15080,7 @@
15104
15080
  i0__namespace.ɵɵtextInterpolate(radioButton_r5.label);
15105
15081
  }
15106
15082
  }
15107
- var _c1$h = function (a0) { return { "form-group-error": a0 }; };
15083
+ var _c1$i = function (a0) { return { "form-group-error": a0 }; };
15108
15084
  var WriteDynamicRadioListFieldComponent = /** @class */ (function (_super) {
15109
15085
  __extends(WriteDynamicRadioListFieldComponent, _super);
15110
15086
  function WriteDynamicRadioListFieldComponent() {
@@ -15152,7 +15128,7 @@
15152
15128
  i0__namespace.ɵɵelementEnd();
15153
15129
  }
15154
15130
  if (rf & 2) {
15155
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$h, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
15131
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$i, !ctx.dynamicRadioListControl.valid && ctx.dynamicRadioListControl.dirty))("id", ctx.id());
15156
15132
  i0__namespace.ɵɵadvance(3);
15157
15133
  i0__namespace.ɵɵproperty("for", ctx.id());
15158
15134
  i0__namespace.ɵɵadvance(1);
@@ -15260,7 +15236,7 @@
15260
15236
  }
15261
15237
  }
15262
15238
  var _c0$J = function (a0) { return { "form-group-error": a0 }; };
15263
- var _c1$g = function (a0) { return { "govuk-input--error": a0 }; };
15239
+ var _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
15264
15240
  var WriteEmailFieldComponent = /** @class */ (function (_super) {
15265
15241
  __extends(WriteEmailFieldComponent, _super);
15266
15242
  function WriteEmailFieldComponent() {
@@ -15294,7 +15270,7 @@
15294
15270
  i0__namespace.ɵɵadvance(1);
15295
15271
  i0__namespace.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
15296
15272
  i0__namespace.ɵɵadvance(1);
15297
- 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);
15273
+ 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);
15298
15274
  }
15299
15275
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
15300
15276
  var ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteEmailFieldComponent);
@@ -15605,7 +15581,7 @@
15605
15581
  i0__namespace.ɵɵtextInterpolate(radioButton_r4.label);
15606
15582
  }
15607
15583
  }
15608
- var _c1$f = function (a0) { return { "form-group-error": a0 }; };
15584
+ var _c1$g = function (a0) { return { "form-group-error": a0 }; };
15609
15585
  var WriteFixedRadioListFieldComponent = /** @class */ (function (_super) {
15610
15586
  __extends(WriteFixedRadioListFieldComponent, _super);
15611
15587
  function WriteFixedRadioListFieldComponent() {
@@ -15636,7 +15612,7 @@
15636
15612
  i0__namespace.ɵɵelementEnd();
15637
15613
  }
15638
15614
  if (rf & 2) {
15639
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$f, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
15615
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$g, !ctx.fixedRadioListControl.valid && (ctx.fixedRadioListControl.dirty || ctx.fixedRadioListControl.touched)))("id", ctx.id());
15640
15616
  i0__namespace.ɵɵadvance(3);
15641
15617
  i0__namespace.ɵɵproperty("for", ctx.id());
15642
15618
  i0__namespace.ɵɵadvance(1);
@@ -16459,7 +16435,7 @@
16459
16435
  }
16460
16436
  }
16461
16437
  var _c0$D = function (a0) { return { "form-group-error": a0 }; };
16462
- var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
16438
+ var _c1$f = function (a0) { return { "govuk-input--error": a0 }; };
16463
16439
  var WriteNumberFieldComponent = /** @class */ (function (_super) {
16464
16440
  __extends(WriteNumberFieldComponent, _super);
16465
16441
  function WriteNumberFieldComponent() {
@@ -16493,7 +16469,7 @@
16493
16469
  i0__namespace.ɵɵadvance(1);
16494
16470
  i0__namespace.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
16495
16471
  i0__namespace.ɵɵadvance(1);
16496
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$e, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
16472
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$f, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
16497
16473
  }
16498
16474
  }, 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
16475
  var ɵWriteNumberFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteNumberFieldComponent);
@@ -17273,7 +17249,7 @@
17273
17249
  }
17274
17250
  }
17275
17251
  var _c0$B = function (a0) { return { "form-group-error": a0 }; };
17276
- var _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
17252
+ var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
17277
17253
  var WritePhoneUKFieldComponent = /** @class */ (function (_super) {
17278
17254
  __extends(WritePhoneUKFieldComponent, _super);
17279
17255
  function WritePhoneUKFieldComponent() {
@@ -17307,7 +17283,7 @@
17307
17283
  i0__namespace.ɵɵadvance(1);
17308
17284
  i0__namespace.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
17309
17285
  i0__namespace.ɵɵadvance(1);
17310
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$d, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
17286
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c1$e, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
17311
17287
  }
17312
17288
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17313
17289
  var ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WritePhoneUKFieldComponent);
@@ -17390,7 +17366,7 @@
17390
17366
  }
17391
17367
  }
17392
17368
  var _c0$A = function (a0) { return { "form-group-error": a0 }; };
17393
- var _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
17369
+ var _c1$d = function (a0) { return { "govuk-textarea--error": a0 }; };
17394
17370
  var WriteTextAreaFieldComponent = /** @class */ (function (_super) {
17395
17371
  __extends(WriteTextAreaFieldComponent, _super);
17396
17372
  function WriteTextAreaFieldComponent(browserService) {
@@ -17435,7 +17411,7 @@
17435
17411
  i0__namespace.ɵɵadvance(1);
17436
17412
  i0__namespace.ɵɵproperty("ngIf", ctx.textareaControl.errors && (ctx.textareaControl.dirty || ctx.textareaControl.touched));
17437
17413
  i0__namespace.ɵɵadvance(1);
17438
- 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);
17414
+ 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);
17439
17415
  }
17440
17416
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17441
17417
  (function () {
@@ -17518,7 +17494,7 @@
17518
17494
  }
17519
17495
  }
17520
17496
  var _c0$z = function (a0) { return { "form-group-error": a0 }; };
17521
- var _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
17497
+ var _c1$c = function (a0) { return { "govuk-input--error": a0 }; };
17522
17498
  var WriteTextFieldComponent = /** @class */ (function (_super) {
17523
17499
  __extends(WriteTextFieldComponent, _super);
17524
17500
  function WriteTextFieldComponent() {
@@ -17557,7 +17533,7 @@
17557
17533
  i0__namespace.ɵɵadvance(1);
17558
17534
  i0__namespace.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
17559
17535
  i0__namespace.ɵɵadvance(1);
17560
- 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);
17536
+ 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);
17561
17537
  }
17562
17538
  }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
17563
17539
  var ɵWriteTextFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteTextFieldComponent);
@@ -17778,7 +17754,7 @@
17778
17754
  i0__namespace.ɵɵtextInterpolate(value_r4);
17779
17755
  }
17780
17756
  }
17781
- var _c1$a = function (a0) { return { "form-group-error": a0 }; };
17757
+ var _c1$b = function (a0) { return { "form-group-error": a0 }; };
17782
17758
  var WriteYesNoFieldComponent = /** @class */ (function (_super) {
17783
17759
  __extends(WriteYesNoFieldComponent, _super);
17784
17760
  function WriteYesNoFieldComponent(yesNoService) {
@@ -17809,7 +17785,7 @@
17809
17785
  i0__namespace.ɵɵelementEnd();
17810
17786
  }
17811
17787
  if (rf & 2) {
17812
- i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$a, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
17788
+ i0__namespace.ɵɵproperty("id", ctx.id())("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$b, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
17813
17789
  i0__namespace.ɵɵadvance(3);
17814
17790
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
17815
17791
  i0__namespace.ɵɵadvance(1);
@@ -18204,16 +18180,16 @@
18204
18180
  }] });
18205
18181
  })();
18206
18182
 
18207
- function CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template(rf, ctx) {
18183
+ function CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template(rf, ctx) {
18208
18184
  if (rf & 1) {
18209
18185
  i0__namespace.ɵɵelementContainer(0);
18210
18186
  }
18211
18187
  }
18212
18188
  var _c0$u = function (a0) { return { cat: a0, level: 1 }; };
18213
- function CaseFileViewFolderSelectorComponent_ng_container_5_Template(rf, ctx) {
18189
+ function CaseFileViewFolderSelectorComponent_ng_container_6_Template(rf, ctx) {
18214
18190
  if (rf & 1) {
18215
18191
  i0__namespace.ɵɵelementContainerStart(0);
18216
- i0__namespace.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_5_ng_container_1_Template, 1, 0, "ng-container", 8);
18192
+ i0__namespace.ɵɵtemplate(1, CaseFileViewFolderSelectorComponent_ng_container_6_ng_container_1_Template, 1, 0, "ng-container", 8);
18217
18193
  i0__namespace.ɵɵelementContainerEnd();
18218
18194
  }
18219
18195
  if (rf & 2) {
@@ -18229,7 +18205,7 @@
18229
18205
  i0__namespace.ɵɵelementContainer(0);
18230
18206
  }
18231
18207
  }
18232
- var _c1$9 = function (a0, a1) { return { cat: a0, level: a1 }; };
18208
+ var _c1$a = function (a0, a1) { return { cat: a0, level: a1 }; };
18233
18209
  function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template(rf, ctx) {
18234
18210
  if (rf & 1) {
18235
18211
  i0__namespace.ɵɵelementContainerStart(0);
@@ -18242,7 +18218,7 @@
18242
18218
  i0__namespace.ɵɵnextContext();
18243
18219
  var _r1 = i0__namespace.ɵɵreference(13);
18244
18220
  i0__namespace.ɵɵadvance(1);
18245
- i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$9, subcat_r8, level_r6 + 1));
18221
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r1)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(2, _c1$a, subcat_r8, level_r6 + 1));
18246
18222
  }
18247
18223
  }
18248
18224
  function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) {
@@ -18256,7 +18232,7 @@
18256
18232
  i0__namespace.ɵɵelement(3, "img", 12);
18257
18233
  i0__namespace.ɵɵtext(4);
18258
18234
  i0__namespace.ɵɵelementEnd();
18259
- i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 2);
18235
+ i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Template, 2, 5, "ng-container", 3);
18260
18236
  i0__namespace.ɵɵelementEnd();
18261
18237
  }
18262
18238
  if (rf & 2) {
@@ -18352,46 +18328,47 @@
18352
18328
  return CaseFileViewFolderSelectorComponent;
18353
18329
  }());
18354
18330
  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, "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) {
18331
+ 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) {
18356
18332
  if (rf & 1) {
18357
- i0__namespace.ɵɵelementStart(0, "h2", 0);
18358
- i0__namespace.ɵɵtext(1, "Move File");
18333
+ i0__namespace.ɵɵelementStart(0, "div", 0);
18334
+ i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_0_listener() { return ctx.cancel(); });
18359
18335
  i0__namespace.ɵɵelementEnd();
18360
- i0__namespace.ɵɵelementStart(2, "p");
18361
- i0__namespace.ɵɵtext(3);
18336
+ i0__namespace.ɵɵelementStart(1, "h2", 1);
18337
+ i0__namespace.ɵɵtext(2, "Move File");
18362
18338
  i0__namespace.ɵɵelementEnd();
18363
- i0__namespace.ɵɵelementStart(4, "div", 1);
18364
- i0__namespace.ɵɵtemplate(5, CaseFileViewFolderSelectorComponent_ng_container_5_Template, 2, 4, "ng-container", 2);
18339
+ i0__namespace.ɵɵelementStart(3, "p");
18340
+ i0__namespace.ɵɵtext(4);
18365
18341
  i0__namespace.ɵɵelementEnd();
18366
- i0__namespace.ɵɵelementStart(6, "div", 3);
18367
- i0__namespace.ɵɵelementStart(7, "button", 4);
18368
- i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_7_listener() { return ctx.save(); });
18369
- i0__namespace.ɵɵtext(8, "Save");
18342
+ i0__namespace.ɵɵelementStart(5, "div", 2);
18343
+ i0__namespace.ɵɵtemplate(6, CaseFileViewFolderSelectorComponent_ng_container_6_Template, 2, 4, "ng-container", 3);
18370
18344
  i0__namespace.ɵɵelementEnd();
18371
- i0__namespace.ɵɵelementStart(9, "a", 5);
18372
- i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_9_listener() { return ctx.cancel(); });
18373
- i0__namespace.ɵɵtext(10, "Cancel");
18345
+ i0__namespace.ɵɵelementStart(7, "div", 4);
18346
+ i0__namespace.ɵɵelementStart(8, "button", 5);
18347
+ i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_button_click_8_listener() { return ctx.save(); });
18348
+ i0__namespace.ɵɵtext(9, "Save");
18374
18349
  i0__namespace.ɵɵelementEnd();
18350
+ i0__namespace.ɵɵelementStart(10, "a", 6);
18351
+ i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_a_click_10_listener() { return ctx.cancel(); });
18352
+ i0__namespace.ɵɵtext(11, "Cancel");
18375
18353
  i0__namespace.ɵɵelementEnd();
18376
- i0__namespace.ɵɵelementStart(11, "div", 6);
18377
- i0__namespace.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_11_listener() { return ctx.cancel(); });
18378
18354
  i0__namespace.ɵɵelementEnd();
18379
18355
  i0__namespace.ɵɵtemplate(12, CaseFileViewFolderSelectorComponent_ng_template_12_Template, 6, 5, "ng-template", null, 7, i0__namespace.ɵɵtemplateRefExtractor);
18380
18356
  }
18381
18357
  if (rf & 2) {
18382
- i0__namespace.ɵɵadvance(3);
18358
+ i0__namespace.ɵɵadvance(4);
18383
18359
  i0__namespace.ɵɵtextInterpolate1("Where do you want to move \"", ctx.data.document.document_filename, "\" file?");
18384
18360
  i0__namespace.ɵɵadvance(2);
18385
18361
  i0__namespace.ɵɵproperty("ngForOf", ctx.currentCategories);
18386
18362
  }
18387
- }, 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}"] });
18363
+ }, directives: [i1__namespace.NgForOf, i1__namespace.NgTemplateOutlet], styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #ccc;margin:0 0 -1px}.folder,.folder:last-child{border-bottom:1px solid #ccc}.folders>.folder,input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat 50%}.cancel,.close{cursor:pointer}.cdk-overlay-pane{overflow:auto}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid transparent;background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}"], encapsulation: 2 });
18388
18364
  (function () {
18389
18365
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
18390
18366
  type: i0.Component,
18391
18367
  args: [{
18392
18368
  selector: 'xui-case-file-view-folder-selector',
18393
18369
  templateUrl: './case-file-view-folder-selector.component.html',
18394
- styleUrls: ['./case-file-view-folder-selector.component.scss']
18370
+ styleUrls: ['./case-file-view-folder-selector.component.scss'],
18371
+ encapsulation: i0.ViewEncapsulation.None
18395
18372
  }]
18396
18373
  }], function () {
18397
18374
  return [{ type: i1__namespace$3.MatDialogRef }, { type: undefined, decorators: [{
@@ -18463,7 +18440,7 @@
18463
18440
  }
18464
18441
  }
18465
18442
  var _c0$t = [[["", "trigger", ""]]];
18466
- var _c1$8 = ["[trigger]"];
18443
+ var _c1$9 = ["[trigger]"];
18467
18444
  var CaseFileViewOverlayMenuComponent = /** @class */ (function () {
18468
18445
  function CaseFileViewOverlayMenuComponent() {
18469
18446
  this.title = '';
@@ -18478,7 +18455,7 @@
18478
18455
  return CaseFileViewOverlayMenuComponent;
18479
18456
  }());
18480
18457
  CaseFileViewOverlayMenuComponent.ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
18481
- 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) {
18458
+ 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) {
18482
18459
  if (rf & 1) {
18483
18460
  i0__namespace.ɵɵprojectionDef(_c0$t);
18484
18461
  i0__namespace.ɵɵelementStart(0, "div");
@@ -18943,7 +18920,7 @@
18943
18920
  return Object.assign(documentTreeNode, node);
18944
18921
  }
18945
18922
  var filteredData = this.documentTreeData;
18946
- if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 2) {
18923
+ if (searchTerm && searchTerm.length >= CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS && this.documentFilterFormGroup.controls[CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME].value.length > 0) {
18947
18924
  filteredData = this.documentTreeData.map(copy).filter(function filterTreeData(node) {
18948
18925
  if (node.name && node.name.toLowerCase().includes(searchTerm) && node.type === DocumentTreeNodeType.DOCUMENT) {
18949
18926
  return true;
@@ -19025,7 +19002,6 @@
19025
19002
  CaseFileViewFolderComponent.prototype.openMoveDialog = function (node) {
19026
19003
  var _this = this;
19027
19004
  var dialogRef = this.dialog.open(CaseFileViewFolderSelectorComponent, {
19028
- width: '570px',
19029
19005
  data: { categories: this.categories, document: node }
19030
19006
  });
19031
19007
  dialogRef.afterClosed().subscribe(function (newCatId) {
@@ -19051,7 +19027,7 @@
19051
19027
  }());
19052
19028
  CaseFileViewFolderComponent.UNCATEGORISED_DOCUMENTS_TITLE = 'Uncategorised documents';
19053
19029
  CaseFileViewFolderComponent.DOCUMENT_SEARCH_FORM_CONTROL_NAME = 'documentSearchFormControl';
19054
- CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 3;
19030
+ CaseFileViewFolderComponent.MINIMUM_SEARCH_CHARACTERS = 1;
19055
19031
  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
19032
  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
19033
  if (rf & 1) {
@@ -19329,7 +19305,7 @@
19329
19305
  }
19330
19306
  }
19331
19307
  var _c0$s = function (a0) { return { "form-group-error": a0 }; };
19332
- var _c1$7 = function (a0) { return { "govuk-input--error": a0 }; };
19308
+ var _c1$8 = function (a0) { return { "govuk-input--error": a0 }; };
19333
19309
  function SelectFlagTypeComponent_div_9_Template(rf, ctx) {
19334
19310
  if (rf & 1) {
19335
19311
  i0__namespace.ɵɵelementStart(0, "div", 15);
@@ -19349,7 +19325,7 @@
19349
19325
  i0__namespace.ɵɵadvance(3);
19350
19326
  i0__namespace.ɵɵproperty("ngIf", ctx_r2.flagTypeErrorMessage.length > 0);
19351
19327
  i0__namespace.ɵɵadvance(1);
19352
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$7, ctx_r2.flagTypeErrorMessage.length > 0))("name", ctx_r2.descriptionControlName)("formControlName", ctx_r2.descriptionControlName);
19328
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$8, ctx_r2.flagTypeErrorMessage.length > 0))("name", ctx_r2.descriptionControlName)("formControlName", ctx_r2.descriptionControlName);
19353
19329
  }
19354
19330
  }
19355
19331
  function SelectFlagTypeComponent_div_10_Template(rf, ctx) {
@@ -20450,10 +20426,10 @@
20450
20426
  }] });
20451
20427
  })();
20452
20428
 
20453
- function UpdateFlagComponent_div_12_Template(rf, ctx) {
20429
+ function UpdateFlagComponent_div_8_Template(rf, ctx) {
20454
20430
  if (rf & 1) {
20455
- i0__namespace.ɵɵelementStart(0, "div", 24);
20456
- i0__namespace.ɵɵelementStart(1, "span", 25);
20431
+ i0__namespace.ɵɵelementStart(0, "div", 16);
20432
+ i0__namespace.ɵɵelementStart(1, "span", 17);
20457
20433
  i0__namespace.ɵɵtext(2, "Error:");
20458
20434
  i0__namespace.ɵɵelementEnd();
20459
20435
  i0__namespace.ɵɵtext(3);
@@ -20465,10 +20441,10 @@
20465
20441
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.updateFlagNotEnteredErrorMessage, " ");
20466
20442
  }
20467
20443
  }
20468
- function UpdateFlagComponent_div_13_Template(rf, ctx) {
20444
+ function UpdateFlagComponent_div_9_Template(rf, ctx) {
20469
20445
  if (rf & 1) {
20470
- i0__namespace.ɵɵelementStart(0, "div", 26);
20471
- i0__namespace.ɵɵelementStart(1, "span", 25);
20446
+ i0__namespace.ɵɵelementStart(0, "div", 18);
20447
+ i0__namespace.ɵɵelementStart(1, "span", 17);
20472
20448
  i0__namespace.ɵɵtext(2, "Error:");
20473
20449
  i0__namespace.ɵɵelementEnd();
20474
20450
  i0__namespace.ɵɵtext(3);
@@ -20480,28 +20456,17 @@
20480
20456
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.updateFlagCharLimitErrorMessage, " ");
20481
20457
  }
20482
20458
  }
20483
- function UpdateFlagComponent_div_24_Template(rf, ctx) {
20459
+ function UpdateFlagComponent_button_22_Template(rf, ctx) {
20484
20460
  if (rf & 1) {
20485
- i0__namespace.ɵɵelementStart(0, "div", 27);
20486
- i0__namespace.ɵɵelement(1, "input", 28);
20487
- i0__namespace.ɵɵpipe(2, "lowercase");
20488
- i0__namespace.ɵɵelementStart(3, "label", 29);
20489
- i0__namespace.ɵɵtext(4);
20490
- i0__namespace.ɵɵelementEnd();
20461
+ var _r4_1 = i0__namespace.ɵɵgetCurrentView();
20462
+ i0__namespace.ɵɵelementStart(0, "button", 19);
20463
+ 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(); });
20464
+ i0__namespace.ɵɵtext(1, " Make inactive ");
20491
20465
  i0__namespace.ɵɵelementEnd();
20492
20466
  }
20493
- if (rf & 2) {
20494
- var status_r3 = ctx.$implicit;
20495
- var ctx_r2 = i0__namespace.ɵɵnextContext();
20496
- i0__namespace.ɵɵadvance(1);
20497
- i0__namespace.ɵɵproperty("name", ctx_r2.FLAG_STATUS_CONTROL_NAME)("value", i0__namespace.ɵɵpipeBind1(2, 4, status_r3));
20498
- i0__namespace.ɵɵadvance(2);
20499
- i0__namespace.ɵɵproperty("for", ctx_r2.FLAG_STATUS_CONTROL_NAME);
20500
- i0__namespace.ɵɵadvance(1);
20501
- i0__namespace.ɵɵtextInterpolate1(" ", status_r3, " ");
20502
- }
20503
20467
  }
20504
20468
  var _c0$n = function (a0) { return { "form-group-error": a0 }; };
20469
+ var _c1$7 = function (a0) { return { "govuk-tag--grey": a0 }; };
20505
20470
  var UpdateFlagComponent = /** @class */ (function () {
20506
20471
  function UpdateFlagComponent() {
20507
20472
  this.caseFlagStateEmitter = new i0.EventEmitter();
@@ -20509,25 +20474,22 @@
20509
20474
  this.errorMessages = [];
20510
20475
  this.updateFlagNotEnteredErrorMessage = null;
20511
20476
  this.updateFlagCharLimitErrorMessage = null;
20512
- this.updateFlagStepEnum = exports.UpdateFlagStep;
20513
- this.caseFlagStatuses = exports.CaseFlagStatus;
20514
- this.FLAG_COMMENTS_CONTROL_NAME = 'flagComment';
20515
- this.FLAG_STATUS_CONTROL_NAME = 'flagStatus';
20516
- this.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME = 'flagStatusReasonChange';
20517
- this.FLAG_WELSH_TRANSLATION_CONTROL_NAME = 'flagWelshTranslation';
20477
+ this.updateFlagControlName = 'flagComments';
20518
20478
  this.commentsMaxCharLimit = 200;
20519
20479
  }
20520
20480
  UpdateFlagComponent.prototype.ngOnInit = function () {
20481
+ this.updateFlagHint = exports.UpdateFlagStep.HINT_TEXT;
20482
+ this.updateFlagCharLimitInfo = exports.UpdateFlagStep.CHARACTER_LIMIT_INFO;
20483
+ this.formGroup.addControl(this.updateFlagControlName, new i2.FormControl(''));
20521
20484
  if (this.selectedFlag && this.selectedFlag.flagDetailDisplay && this.selectedFlag.flagDetailDisplay.flagDetail) {
20522
20485
  var flagDetail = this.selectedFlag.flagDetailDisplay.flagDetail;
20523
- this.formGroup.addControl(this.FLAG_STATUS_CONTROL_NAME, new i2.FormControl(flagDetail.status));
20524
- this.formGroup.addControl(this.FLAG_STATUS_CHANGE_REASON_CONTROL_NAME, new i2.FormControl(''));
20525
- this.formGroup.addControl(this.FLAG_WELSH_TRANSLATION_CONTROL_NAME, new i2.FormControl(false));
20526
20486
  // Populate flag comments text area with existing comments
20527
- this.formGroup.addControl(this.FLAG_COMMENTS_CONTROL_NAME, new i2.FormControl(flagDetail.flagComment));
20487
+ this.formGroup.get(this.updateFlagControlName).setValue(flagDetail.flagComment);
20528
20488
  if (flagDetail.name) {
20529
20489
  this.updateFlagTitle =
20530
- exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \u2018" + flagDetail.name + (flagDetail.subTypeValue ? ", " + flagDetail.subTypeValue + "\u2019" : '’');
20490
+ exports.CaseFlagWizardStepTitle.UPDATE_FLAG_TITLE + " \"" + flagDetail.name + (flagDetail.subTypeValue
20491
+ ? ", " + flagDetail.subTypeValue + "\""
20492
+ : '"');
20531
20493
  }
20532
20494
  }
20533
20495
  };
@@ -20536,7 +20498,7 @@
20536
20498
  this.validateTextEntry();
20537
20499
  // If validation has passed, update the flag details with the comments entered
20538
20500
  if (this.errorMessages.length === 0) {
20539
- this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { flagComment: this.formGroup.get(this.FLAG_COMMENTS_CONTROL_NAME).value });
20501
+ this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { flagComment: this.formGroup.get(this.updateFlagControlName).value });
20540
20502
  }
20541
20503
  // Return case flag field state, error messages, and selected flag detail to the parent. The selected flag must be
20542
20504
  // re-emitted because the parent component repopulates this on handling this EventEmitter
@@ -20546,17 +20508,22 @@
20546
20508
  selectedFlag: this.selectedFlag
20547
20509
  });
20548
20510
  };
20511
+ UpdateFlagComponent.prototype.onChangeStatus = function () {
20512
+ this.selectedFlag.flagDetailDisplay.flagDetail = Object.assign(Object.assign({}, this.selectedFlag.flagDetailDisplay.flagDetail), { status: this.selectedFlag.flagDetailDisplay.flagDetail.status === exports.CaseFlagStatus.ACTIVE
20513
+ ? exports.CaseFlagStatus.INACTIVE
20514
+ : this.selectedFlag.flagDetailDisplay.flagDetail.status });
20515
+ };
20549
20516
  UpdateFlagComponent.prototype.validateTextEntry = function () {
20550
20517
  this.updateFlagNotEnteredErrorMessage = null;
20551
20518
  this.updateFlagCharLimitErrorMessage = null;
20552
20519
  this.errorMessages = [];
20553
- var comment = this.formGroup.get(this.FLAG_COMMENTS_CONTROL_NAME).value;
20520
+ var comment = this.formGroup.get(this.updateFlagControlName).value;
20554
20521
  if (!comment) {
20555
20522
  this.updateFlagNotEnteredErrorMessage = exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED;
20556
20523
  this.errorMessages.push({
20557
20524
  title: '',
20558
20525
  description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED,
20559
- fieldId: this.FLAG_COMMENTS_CONTROL_NAME
20526
+ fieldId: this.updateFlagControlName
20560
20527
  });
20561
20528
  }
20562
20529
  if (comment && comment.length > this.commentsMaxCharLimit) {
@@ -20564,14 +20531,14 @@
20564
20531
  this.errorMessages.push({
20565
20532
  title: '',
20566
20533
  description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED,
20567
- fieldId: this.FLAG_COMMENTS_CONTROL_NAME
20534
+ fieldId: this.updateFlagControlName
20568
20535
  });
20569
20536
  }
20570
20537
  };
20571
20538
  return UpdateFlagComponent;
20572
20539
  }());
20573
20540
  UpdateFlagComponent.ɵfac = function UpdateFlagComponent_Factory(t) { return new (t || UpdateFlagComponent)(); };
20574
- 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) {
20541
+ 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) {
20575
20542
  if (rf & 1) {
20576
20543
  i0__namespace.ɵɵelementStart(0, "div", 0);
20577
20544
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -20582,60 +20549,37 @@
20582
20549
  i0__namespace.ɵɵelementEnd();
20583
20550
  i0__namespace.ɵɵelementEnd();
20584
20551
  i0__namespace.ɵɵelementStart(6, "div", 5);
20585
- i0__namespace.ɵɵelementStart(7, "div");
20586
- i0__namespace.ɵɵelementStart(8, "label", 6);
20587
- i0__namespace.ɵɵtext(9);
20588
- i0__namespace.ɵɵelementEnd();
20589
- i0__namespace.ɵɵelementEnd();
20590
- i0__namespace.ɵɵelementStart(10, "div", 7);
20591
- i0__namespace.ɵɵtext(11);
20592
- i0__namespace.ɵɵelementEnd();
20593
- i0__namespace.ɵɵtemplate(12, UpdateFlagComponent_div_12_Template, 4, 1, "div", 8);
20594
- i0__namespace.ɵɵtemplate(13, UpdateFlagComponent_div_13_Template, 4, 1, "div", 9);
20595
- i0__namespace.ɵɵelementStart(14, "textarea", 10);
20596
- i0__namespace.ɵɵtext(15, " ");
20597
- i0__namespace.ɵɵelementEnd();
20598
- i0__namespace.ɵɵelementStart(16, "div", 11);
20599
- i0__namespace.ɵɵtext(17);
20600
- i0__namespace.ɵɵelementEnd();
20601
- i0__namespace.ɵɵelementEnd();
20602
- i0__namespace.ɵɵelementStart(18, "div", 12);
20603
- i0__namespace.ɵɵelementStart(19, "div");
20604
- i0__namespace.ɵɵelementStart(20, "label", 13);
20605
- i0__namespace.ɵɵtext(21);
20606
- i0__namespace.ɵɵelementEnd();
20607
- i0__namespace.ɵɵelementEnd();
20608
- i0__namespace.ɵɵelementStart(22, "div", 5);
20609
- i0__namespace.ɵɵelementStart(23, "div", 14);
20610
- i0__namespace.ɵɵtemplate(24, UpdateFlagComponent_div_24_Template, 5, 6, "div", 15);
20611
- i0__namespace.ɵɵpipe(25, "enumDisplayDescription");
20612
- i0__namespace.ɵɵelementEnd();
20552
+ i0__namespace.ɵɵtext(7);
20613
20553
  i0__namespace.ɵɵelementEnd();
20614
- i0__namespace.ɵɵelementStart(26, "div");
20615
- i0__namespace.ɵɵelementStart(27, "div", 16);
20616
- i0__namespace.ɵɵtext(28);
20554
+ i0__namespace.ɵɵtemplate(8, UpdateFlagComponent_div_8_Template, 4, 1, "div", 6);
20555
+ i0__namespace.ɵɵtemplate(9, UpdateFlagComponent_div_9_Template, 4, 1, "div", 7);
20556
+ i0__namespace.ɵɵelementStart(10, "textarea", 8);
20557
+ i0__namespace.ɵɵtext(11, " ");
20617
20558
  i0__namespace.ɵɵelementEnd();
20618
- i0__namespace.ɵɵelementStart(29, "textarea", 17);
20619
- i0__namespace.ɵɵtext(30, " ");
20559
+ i0__namespace.ɵɵelementStart(12, "div", 9);
20560
+ i0__namespace.ɵɵtext(13);
20620
20561
  i0__namespace.ɵɵelementEnd();
20621
20562
  i0__namespace.ɵɵelementEnd();
20622
20563
  i0__namespace.ɵɵelementEnd();
20623
- i0__namespace.ɵɵelementStart(31, "div");
20624
- i0__namespace.ɵɵelementStart(32, "div", 18);
20625
- i0__namespace.ɵɵelementStart(33, "div", 19);
20626
- i0__namespace.ɵɵelement(34, "input", 20);
20627
- i0__namespace.ɵɵelementStart(35, "label", 21);
20628
- i0__namespace.ɵɵtext(36, " I need to add a Welsh translation ");
20564
+ i0__namespace.ɵɵelementStart(14, "div", 10);
20565
+ i0__namespace.ɵɵelementStart(15, "div", 11);
20566
+ i0__namespace.ɵɵelementStart(16, "p");
20567
+ i0__namespace.ɵɵtext(17, "Flag status: ");
20568
+ i0__namespace.ɵɵelementStart(18, "span");
20569
+ i0__namespace.ɵɵelementStart(19, "strong", 12);
20570
+ i0__namespace.ɵɵtext(20);
20629
20571
  i0__namespace.ɵɵelementEnd();
20630
20572
  i0__namespace.ɵɵelementEnd();
20631
20573
  i0__namespace.ɵɵelementEnd();
20632
20574
  i0__namespace.ɵɵelementEnd();
20575
+ i0__namespace.ɵɵelementStart(21, "div", 11);
20576
+ i0__namespace.ɵɵtemplate(22, UpdateFlagComponent_button_22_Template, 2, 0, "button", 13);
20633
20577
  i0__namespace.ɵɵelementEnd();
20634
20578
  i0__namespace.ɵɵelementEnd();
20635
- i0__namespace.ɵɵelementStart(37, "div", 22);
20636
- i0__namespace.ɵɵelementStart(38, "button", 23);
20637
- i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_38_listener() { return ctx.onNext(); });
20638
- i0__namespace.ɵɵtext(39, "Next");
20579
+ i0__namespace.ɵɵelementStart(23, "div", 14);
20580
+ i0__namespace.ɵɵelementStart(24, "button", 15);
20581
+ i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_24_listener() { return ctx.onNext(); });
20582
+ i0__namespace.ɵɵtext(25, "Next");
20639
20583
  i0__namespace.ɵɵelementEnd();
20640
20584
  i0__namespace.ɵɵelementEnd();
20641
20585
  i0__namespace.ɵɵelementEnd();
@@ -20643,39 +20587,29 @@
20643
20587
  if (rf & 2) {
20644
20588
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
20645
20589
  i0__namespace.ɵɵadvance(2);
20646
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(24, _c0$n, ctx.errorMessages.length > 0));
20647
- i0__namespace.ɵɵadvance(3);
20648
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, " ");
20649
- i0__namespace.ɵɵadvance(3);
20650
- i0__namespace.ɵɵproperty("for", ctx.FLAG_COMMENTS_CONTROL_NAME);
20590
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(14, _c0$n, ctx.errorMessages.length > 0));
20591
+ i0__namespace.ɵɵadvance(2);
20592
+ i0__namespace.ɵɵproperty("for", ctx.updateFlagControlName);
20651
20593
  i0__namespace.ɵɵadvance(1);
20652
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, " comments ");
20594
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, " ");
20653
20595
  i0__namespace.ɵɵadvance(2);
20654
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagStepEnum.COMMENT_HINT_TEXT, " ");
20596
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagHint, " ");
20655
20597
  i0__namespace.ɵɵadvance(1);
20656
20598
  i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagNotEnteredErrorMessage);
20657
20599
  i0__namespace.ɵɵadvance(1);
20658
20600
  i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagCharLimitErrorMessage);
20659
20601
  i0__namespace.ɵɵadvance(1);
20660
- i0__namespace.ɵɵproperty("id", ctx.FLAG_COMMENTS_CONTROL_NAME)("name", ctx.FLAG_COMMENTS_CONTROL_NAME)("formControlName", ctx.FLAG_COMMENTS_CONTROL_NAME);
20602
+ i0__namespace.ɵɵproperty("id", ctx.updateFlagControlName)("name", ctx.updateFlagControlName)("formControlName", ctx.updateFlagControlName);
20661
20603
  i0__namespace.ɵɵadvance(3);
20662
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagStepEnum.COMMENT_CHARACTER_LIMIT_INFO, " ");
20663
- i0__namespace.ɵɵadvance(4);
20664
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagTitle, " status ");
20665
- i0__namespace.ɵɵadvance(2);
20666
- i0__namespace.ɵɵproperty("id", ctx.FLAG_STATUS_CONTROL_NAME);
20667
- i0__namespace.ɵɵadvance(1);
20668
- i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(25, 22, ctx.caseFlagStatuses));
20669
- i0__namespace.ɵɵadvance(4);
20670
- i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagStepEnum.STATUS_HINT_TEXT, " ");
20671
- i0__namespace.ɵɵadvance(1);
20672
- 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);
20673
- i0__namespace.ɵɵadvance(5);
20674
- i0__namespace.ɵɵproperty("id", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME)("name", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME);
20604
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.updateFlagCharLimitInfo, " ");
20605
+ i0__namespace.ɵɵadvance(6);
20606
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(16, _c1$7, ctx.selectedFlag.flagDetailDisplay.flagDetail.status === "Inactive"));
20675
20607
  i0__namespace.ɵɵadvance(1);
20676
- i0__namespace.ɵɵproperty("for", ctx.FLAG_WELSH_TRANSLATION_CONTROL_NAME);
20608
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx.selectedFlag.flagDetailDisplay.flagDetail.status, " ");
20609
+ i0__namespace.ɵɵadvance(2);
20610
+ i0__namespace.ɵɵproperty("ngIf", ctx.selectedFlag.flagDetailDisplay.flagDetail.status === "Active");
20677
20611
  }
20678
- }, 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 });
20612
+ }, directives: [i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName], encapsulation: 2 });
20679
20613
  (function () {
20680
20614
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(UpdateFlagComponent, [{
20681
20615
  type: i0.Component,
@@ -29284,7 +29218,7 @@
29284
29218
  }
29285
29219
  else {
29286
29220
  return this.caseNotifier.fetchAndRefresh(cid)
29287
- .pipe(operators.catchError(function (error) { return _this.checkAuthorizationError(error); }))
29221
+ .pipe(operators.catchError(function (error) { return _this.checkAuthorizationError(error, cid); }))
29288
29222
  .toPromise();
29289
29223
  }
29290
29224
  }
@@ -29297,20 +29231,24 @@
29297
29231
  _this.caseNotifier.cachedCaseView = classTransformer.plainToClassFromExist(new CaseView(), caseView);
29298
29232
  _this.caseNotifier.announceCase(_this.caseNotifier.cachedCaseView);
29299
29233
  return _this.caseNotifier.cachedCaseView;
29300
- }), operators.catchError(function (error) { return _this.checkAuthorizationError(error); })).toPromise();
29234
+ }), operators.catchError(function (error) { return _this.checkAuthorizationError(error, cid); })).toPromise();
29301
29235
  };
29302
- CaseResolver.prototype.checkAuthorizationError = function (error) {
29236
+ CaseResolver.prototype.checkAuthorizationError = function (error, caseReference) {
29303
29237
  // TODO Should be logged to remote logging infrastructure
29304
29238
  if (error.status === 400) {
29305
29239
  this.router.navigate(['/search/noresults']);
29306
29240
  return rxjs.of(null);
29307
29241
  }
29308
- console.error(error);
29309
29242
  if (CaseResolver.EVENT_REGEX.test(this.previousUrl) && error.status === 404) {
29310
29243
  this.router.navigate(['/list/case']);
29311
29244
  return rxjs.of(null);
29312
29245
  }
29313
- if (error.status !== 401 && error.status !== 403) {
29246
+ // Error 403, navigate to restricted case access page
29247
+ if (error.status === 403) {
29248
+ this.router.navigate(["/cases/restricted-case-access/" + caseReference]);
29249
+ return rxjs.of(null);
29250
+ }
29251
+ if (error.status !== 401) {
29314
29252
  this.router.navigate(['/error']);
29315
29253
  }
29316
29254
  this.goToDefaultPage();
@@ -35398,7 +35336,6 @@
35398
35336
  exports.DynamicRadioListPipe = DynamicRadioListPipe;
35399
35337
  exports.ESQueryType = ESQueryType;
35400
35338
  exports.Embedded = Embedded;
35401
- exports.EnumDisplayDescriptionPipe = EnumDisplayDescriptionPipe;
35402
35339
  exports.ErrorMessageComponent = ErrorMessageComponent;
35403
35340
  exports.ErrorNotifierService = ErrorNotifierService;
35404
35341
  exports.EventCaseField = EventCaseField;