@hmcts/ccd-case-ui-toolkit 6.19.7 → 6.19.8-load-hearings-tab-with-translation

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 (30) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +318 -163
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/shared/components/case-editor/case-edit/case-edit.component.js +2 -2
  6. package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +2 -2
  7. package/esm2015/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.js +15 -7
  8. package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +9 -5
  9. package/esm2015/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.js +7 -2
  10. package/esm2015/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.js +202 -127
  11. package/esm2015/lib/shared/components/palette/case-flag/enums/update-flag-error-message.enum.js +3 -1
  12. package/esm2015/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.js +3 -2
  13. package/esm2015/lib/shared/components/palette/palette.module.js +2 -2
  14. package/esm2015/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.js +70 -27
  15. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +296 -163
  16. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  17. package/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.d.ts +6 -1
  18. package/lib/shared/components/case-editor/services/valid-page-list-caseFields.service.d.ts.map +1 -1
  19. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +3 -1
  20. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
  21. package/lib/shared/components/palette/case-flag/components/select-flag-location/select-flag-location.component.d.ts.map +1 -1
  22. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts +4 -2
  23. package/lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.d.ts.map +1 -1
  24. package/lib/shared/components/palette/case-flag/enums/update-flag-error-message.enum.d.ts +3 -1
  25. package/lib/shared/components/palette/case-flag/enums/update-flag-error-message.enum.d.ts.map +1 -1
  26. package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts +2 -1
  27. package/lib/shared/components/palette/case-flag/enums/update-flag-step.enum.d.ts.map +1 -1
  28. package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.d.ts +9 -1
  29. package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.d.ts.map +1 -1
  30. package/package.json +1 -1
@@ -9904,13 +9904,20 @@
9904
9904
  })();
9905
9905
 
9906
9906
  var ValidPageListCaseFieldsService = /** @class */ (function () {
9907
- function ValidPageListCaseFieldsService() {
9907
+ function ValidPageListCaseFieldsService(fieldsUtils) {
9908
+ this.fieldsUtils = fieldsUtils;
9908
9909
  }
9909
- ValidPageListCaseFieldsService.prototype.deleteNonValidatedFields = function (validPageList, data, notFromEventSubmit, fromPreviousPage) {
9910
+ ValidPageListCaseFieldsService.prototype.isShown = function (page, eventTriggerFields, data) {
9911
+ var fields = this.fieldsUtils
9912
+ .mergeCaseFieldsAndFormFields(eventTriggerFields, data);
9913
+ return page.parsedShowCondition.match(fields);
9914
+ };
9915
+ ValidPageListCaseFieldsService.prototype.deleteNonValidatedFields = function (validPageList, data, eventTriggerFields, fromPreviousPage) {
9916
+ var _this = this;
9910
9917
  if (fromPreviousPage === void 0) { fromPreviousPage = false; }
9911
9918
  var validPageListCaseFields = [];
9912
9919
  validPageList.forEach(function (page) {
9913
- if (notFromEventSubmit || ShowCondition.getInstance(page.show_condition).match(data)) {
9920
+ if (_this.isShown(page, eventTriggerFields, data)) {
9914
9921
  page.case_fields.forEach(function (field) { return validPageListCaseFields.push(field); });
9915
9922
  }
9916
9923
  });
@@ -9918,19 +9925,18 @@
9918
9925
  Object.keys(data).forEach(function (key) {
9919
9926
  if (validPageListCaseFields.findIndex(function (element) { return element.id === key; }) < 0) {
9920
9927
  delete data[key];
9921
- ;
9922
9928
  }
9923
9929
  });
9924
9930
  }
9925
9931
  };
9926
9932
  return ValidPageListCaseFieldsService;
9927
9933
  }());
9928
- ValidPageListCaseFieldsService.ɵfac = function ValidPageListCaseFieldsService_Factory(t) { return new (t || ValidPageListCaseFieldsService)(); };
9934
+ ValidPageListCaseFieldsService.ɵfac = function ValidPageListCaseFieldsService_Factory(t) { return new (t || ValidPageListCaseFieldsService)(i0__namespace.ɵɵinject(FieldsUtils)); };
9929
9935
  ValidPageListCaseFieldsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: ValidPageListCaseFieldsService, factory: ValidPageListCaseFieldsService.ɵfac });
9930
9936
  (function () {
9931
9937
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ValidPageListCaseFieldsService, [{
9932
9938
  type: i0.Injectable
9933
- }], null, null);
9939
+ }], function () { return [{ type: FieldsUtils }]; }, null);
9934
9940
  })();
9935
9941
 
9936
9942
  var CaseEditComponent = /** @class */ (function () {
@@ -10122,7 +10128,7 @@
10122
10128
  // Remove "Launcher"-type fields (these have no values and are not intended to be persisted)
10123
10129
  this.formValueService.removeCaseFieldsOfType(caseEventData.data, eventTrigger.case_fields, ['FlagLauncher', 'ComponentLauncher']);
10124
10130
  // delete fields which are not part of the case event journey wizard pages case fields
10125
- this.validPageListCaseFieldsService.deleteNonValidatedFields(this.validPageList, caseEventData.data, false);
10131
+ this.validPageListCaseFieldsService.deleteNonValidatedFields(this.validPageList, caseEventData.data, eventTrigger.case_fields, false);
10126
10132
  caseEventData.event_token = eventTrigger.event_token;
10127
10133
  caseEventData.ignore_warning = this.ignoreWarning;
10128
10134
  if (this.confirmation) {
@@ -11497,7 +11503,7 @@
11497
11503
  // Get hold of the CaseEventData.
11498
11504
  var caseEventData = this.formValueService.sanitise(formFields);
11499
11505
  // delete fields which are not part of the case event journey wizard pages case fields
11500
- this.validPageListCaseFieldsService.deleteNonValidatedFields(this.caseEdit.validPageList, caseEventData.data, true, fromPreviousPage);
11506
+ this.validPageListCaseFieldsService.deleteNonValidatedFields(this.caseEdit.validPageList, caseEventData.data, this.eventTrigger.case_fields, fromPreviousPage);
11501
11507
  // Tidy it up before we return it.
11502
11508
  this.formValueService.removeUnnecessaryFields(caseEventData.data, caseFields, clearEmpty, clearNonCase, fromPreviousPage, this.currentPage.case_fields);
11503
11509
  return caseEventData;
@@ -12793,12 +12799,15 @@
12793
12799
  UpdateFlagErrorMessage["FLAG_COMMENTS_NOT_ENTERED"] = "Please enter comments for this flag";
12794
12800
  UpdateFlagErrorMessage["FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED"] = "Comments for this flag must be 200 characters or fewer";
12795
12801
  UpdateFlagErrorMessage["STATUS_REASON_NOT_ENTERED"] = "Comments and/or the name of the person approving the decision should be entered";
12802
+ UpdateFlagErrorMessage["STATUS_REASON_NOT_ENTERED_EXTERNAL"] = "You must explain why the support is no longer needed";
12796
12803
  UpdateFlagErrorMessage["STATUS_REASON_CHAR_LIMIT_EXCEEDED"] = "Comments must be 200 characters or fewer";
12804
+ UpdateFlagErrorMessage["NONE"] = "";
12797
12805
  })(exports.UpdateFlagErrorMessage || (exports.UpdateFlagErrorMessage = {}));
12798
12806
 
12799
12807
  exports.UpdateFlagStep = void 0;
12800
12808
  (function (UpdateFlagStep) {
12801
- 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.";
12809
+ UpdateFlagStep["COMMENT_HINT_TEXT_INTERNAL"] = "Update the comments describing the user's support needs or flag description. Do not include any sensitive information such as personal details.";
12810
+ UpdateFlagStep["COMMENT_HINT_TEXT_EXTERNAL"] = "Do not include any sensitive information such as personal details.";
12802
12811
  UpdateFlagStep["CHARACTER_LIMIT_INFO"] = "You can enter up to 200 characters";
12803
12812
  UpdateFlagStep["STATUS_HINT_TEXT"] = "Describe reason for status change; if choosing 'Not approved' provide name of person approving decision.";
12804
12813
  UpdateFlagStep["WARNING_TEXT"] = "The details entered here MAY be visible to the party in the future.";
@@ -21732,11 +21741,11 @@
21732
21741
  QualifyingQuestionsErrorMessage["SELECT_AN_OPTION"] = "Select an option";
21733
21742
  })(exports.QualifyingQuestionsErrorMessage || (exports.QualifyingQuestionsErrorMessage = {}));
21734
21743
 
21735
- function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_7_Template(rf, ctx) {
21744
+ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_10_Template(rf, ctx) {
21736
21745
  if (rf & 1) {
21737
21746
  i0__namespace.ɵɵelementContainerStart(0);
21738
- i0__namespace.ɵɵelementStart(1, "p", 7);
21739
- i0__namespace.ɵɵelementStart(2, "span", 8);
21747
+ i0__namespace.ɵɵelementStart(1, "p", 8);
21748
+ i0__namespace.ɵɵelementStart(2, "span", 9);
21740
21749
  i0__namespace.ɵɵtext(3);
21741
21750
  i0__namespace.ɵɵpipe(4, "rpxTranslate");
21742
21751
  i0__namespace.ɵɵelementEnd();
@@ -21753,23 +21762,52 @@
21753
21762
  i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(6, 4, ctx_r1.qualifyingQuestionsErrorMessage.SELECT_AN_OPTION), " ");
21754
21763
  }
21755
21764
  }
21756
- function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_9_ng_container_1_Template(rf, ctx) {
21765
+ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_container_1_Template(rf, ctx) {
21757
21766
  if (rf & 1) {
21758
21767
  i0__namespace.ɵɵelementContainerStart(0);
21759
- i0__namespace.ɵɵelement(1, "hr");
21768
+ i0__namespace.ɵɵelementStart(1, "div", 14);
21769
+ i0__namespace.ɵɵtext(2);
21770
+ i0__namespace.ɵɵpipe(3, "rpxTranslate");
21771
+ i0__namespace.ɵɵelementEnd();
21760
21772
  i0__namespace.ɵɵelementContainerEnd();
21761
21773
  }
21774
+ if (rf & 2) {
21775
+ i0__namespace.ɵɵadvance(2);
21776
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 1, "or"));
21777
+ }
21778
+ }
21779
+ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_div_7_Template(rf, ctx) {
21780
+ if (rf & 1) {
21781
+ var _r8_1 = i0__namespace.ɵɵgetCurrentView();
21782
+ i0__namespace.ɵɵelementStart(0, "div", 15);
21783
+ i0__namespace.ɵɵtext(1);
21784
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
21785
+ i0__namespace.ɵɵelementStart(3, "a", 16);
21786
+ i0__namespace.ɵɵlistener("click", function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_div_7_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var ctx_r7 = i0__namespace.ɵɵnextContext(3); return ctx_r7.click(); });
21787
+ i0__namespace.ɵɵtext(4);
21788
+ i0__namespace.ɵɵpipe(5, "rpxTranslate");
21789
+ i0__namespace.ɵɵelementEnd();
21790
+ i0__namespace.ɵɵtext(6, ".) ");
21791
+ i0__namespace.ɵɵelementEnd();
21792
+ }
21793
+ if (rf & 2) {
21794
+ i0__namespace.ɵɵadvance(1);
21795
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, "(To reply to an existing query"), " ");
21796
+ i0__namespace.ɵɵadvance(3);
21797
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5, 4, "click here"));
21798
+ }
21762
21799
  }
21763
- function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_9_Template(rf, ctx) {
21800
+ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Template(rf, ctx) {
21764
21801
  if (rf & 1) {
21765
21802
  i0__namespace.ɵɵelementContainerStart(0);
21766
- i0__namespace.ɵɵtemplate(1, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_9_ng_container_1_Template, 2, 0, "ng-container", 0);
21767
- i0__namespace.ɵɵelementStart(2, "div", 9);
21768
- i0__namespace.ɵɵelement(3, "input", 10);
21769
- i0__namespace.ɵɵelementStart(4, "label", 11);
21803
+ i0__namespace.ɵɵtemplate(1, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_container_1_Template, 4, 3, "ng-container", 0);
21804
+ i0__namespace.ɵɵelementStart(2, "div", 10);
21805
+ i0__namespace.ɵɵelement(3, "input", 11);
21806
+ i0__namespace.ɵɵelementStart(4, "label", 12);
21770
21807
  i0__namespace.ɵɵtext(5);
21771
21808
  i0__namespace.ɵɵpipe(6, "rpxTranslate");
21772
21809
  i0__namespace.ɵɵelementEnd();
21810
+ i0__namespace.ɵɵtemplate(7, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_div_7_Template, 7, 6, "div", 13);
21773
21811
  i0__namespace.ɵɵelementEnd();
21774
21812
  i0__namespace.ɵɵelementContainerEnd();
21775
21813
  }
@@ -21785,7 +21823,9 @@
21785
21823
  i0__namespace.ɵɵadvance(1);
21786
21824
  i0__namespace.ɵɵproperty("for", qualifyingQuestion_r3.name);
21787
21825
  i0__namespace.ɵɵadvance(1);
21788
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(6, 6, qualifyingQuestion_r3.name));
21826
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(6, 7, qualifyingQuestion_r3.name));
21827
+ i0__namespace.ɵɵadvance(2);
21828
+ i0__namespace.ɵɵproperty("ngIf", isLast_r4);
21789
21829
  }
21790
21830
  }
21791
21831
  function QualifyingQuestionOptionsComponent_ng_container_0_Template(rf, ctx) {
@@ -21799,10 +21839,14 @@
21799
21839
  i0__namespace.ɵɵpipe(6, "rpxTranslate");
21800
21840
  i0__namespace.ɵɵelementEnd();
21801
21841
  i0__namespace.ɵɵelementEnd();
21802
- i0__namespace.ɵɵtemplate(7, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_7_Template, 7, 6, "ng-container", 0);
21803
- i0__namespace.ɵɵelementStart(8, "div", 5);
21804
- i0__namespace.ɵɵtemplate(9, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_9_Template, 7, 8, "ng-container", 6);
21805
- i0__namespace.ɵɵpipe(10, "async");
21842
+ i0__namespace.ɵɵelementStart(7, "h2", 5);
21843
+ i0__namespace.ɵɵtext(8);
21844
+ i0__namespace.ɵɵpipe(9, "rpxTranslate");
21845
+ i0__namespace.ɵɵelementEnd();
21846
+ i0__namespace.ɵɵtemplate(10, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_10_Template, 7, 6, "ng-container", 0);
21847
+ i0__namespace.ɵɵelementStart(11, "div", 6);
21848
+ i0__namespace.ɵɵtemplate(12, QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Template, 8, 9, "ng-container", 7);
21849
+ i0__namespace.ɵɵpipe(13, "async");
21806
21850
  i0__namespace.ɵɵelementEnd();
21807
21851
  i0__namespace.ɵɵelementEnd();
21808
21852
  i0__namespace.ɵɵelementEnd();
@@ -21813,17 +21857,27 @@
21813
21857
  i0__namespace.ɵɵadvance(1);
21814
21858
  i0__namespace.ɵɵclassProp("govuk-form-group--error", ctx_r0.displayError);
21815
21859
  i0__namespace.ɵɵadvance(4);
21816
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 5, "Are you contacting us about any of the following:"), " ");
21860
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 6, "Raise a new query"), " ");
21861
+ i0__namespace.ɵɵadvance(3);
21862
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(9, 8, "Select the type of query you are raising:"), " ");
21817
21863
  i0__namespace.ɵɵadvance(2);
21818
21864
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.displayError);
21819
21865
  i0__namespace.ɵɵadvance(2);
21820
- i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(10, 7, ctx_r0.qualifyingQuestions$));
21866
+ i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(13, 10, ctx_r0.qualifyingQuestions$));
21821
21867
  }
21822
21868
  }
21823
21869
  var QualifyingQuestionOptionsComponent = /** @class */ (function () {
21824
- function QualifyingQuestionOptionsComponent() {
21870
+ function QualifyingQuestionOptionsComponent(route, router) {
21871
+ this.route = route;
21872
+ this.router = router;
21825
21873
  this.qualifyingQuestionsErrorMessage = exports.QualifyingQuestionsErrorMessage;
21826
21874
  }
21875
+ QualifyingQuestionOptionsComponent.prototype.ngOnInit = function () {
21876
+ this.caseId = this.route.snapshot.params.cid;
21877
+ };
21878
+ QualifyingQuestionOptionsComponent.prototype.click = function () {
21879
+ this.router.navigate(['cases', 'case-details', this.caseId], { fragment: 'Queries' });
21880
+ };
21827
21881
  Object.defineProperty(QualifyingQuestionOptionsComponent.prototype, "displayError", {
21828
21882
  get: function () {
21829
21883
  return this.qualifyingQuestionsControl.touched && this.qualifyingQuestionsControl.hasError('required');
@@ -21833,10 +21887,10 @@
21833
21887
  });
21834
21888
  return QualifyingQuestionOptionsComponent;
21835
21889
  }());
21836
- QualifyingQuestionOptionsComponent.ɵfac = function QualifyingQuestionOptionsComponent_Factory(t) { return new (t || QualifyingQuestionOptionsComponent)(); };
21837
- QualifyingQuestionOptionsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QualifyingQuestionOptionsComponent, selectors: [["ccd-qualifying-question-options"]], inputs: { qualifyingQuestionsControl: "qualifyingQuestionsControl", qualifyingQuestions$: "qualifyingQuestions$" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-form-group"], [1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", 1, "govuk-radios"], [4, "ngFor", "ngForOf"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["name", "qualifyingQuestionOption", "type", "radio", 1, "govuk-radios__input", 3, "id", "formControl", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"]], template: function QualifyingQuestionOptionsComponent_Template(rf, ctx) {
21890
+ QualifyingQuestionOptionsComponent.ɵfac = function QualifyingQuestionOptionsComponent_Factory(t) { return new (t || QualifyingQuestionOptionsComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router)); };
21891
+ QualifyingQuestionOptionsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QualifyingQuestionOptionsComponent, selectors: [["ccd-qualifying-question-options"]], inputs: { qualifyingQuestionsControl: "qualifyingQuestionsControl", qualifyingQuestions$: "qualifyingQuestions$" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-form-group"], [1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], [1, "govuk-heading-m", "govuk-!-margin-top-10"], ["data-module", "govuk-radios", 1, "govuk-radios"], [4, "ngFor", "ngForOf"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], [1, "govuk-radios__item"], ["name", "qualifyingQuestionOption", "type", "radio", 1, "govuk-radios__input", 3, "id", "formControl", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["class", "govuk-hint govuk-radios__hint", 4, "ngIf"], [1, "govuk-radios__divider"], [1, "govuk-hint", "govuk-radios__hint"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"]], template: function QualifyingQuestionOptionsComponent_Template(rf, ctx) {
21838
21892
  if (rf & 1) {
21839
- i0__namespace.ɵɵtemplate(0, QualifyingQuestionOptionsComponent_ng_container_0_Template, 11, 9, "ng-container", 0);
21893
+ i0__namespace.ɵɵtemplate(0, QualifyingQuestionOptionsComponent_ng_container_0_Template, 14, 12, "ng-container", 0);
21840
21894
  }
21841
21895
  if (rf & 2) {
21842
21896
  i0__namespace.ɵɵproperty("ngIf", ctx.qualifyingQuestionsControl);
@@ -21849,7 +21903,7 @@
21849
21903
  selector: 'ccd-qualifying-question-options',
21850
21904
  templateUrl: './qualifying-question-options.component.html'
21851
21905
  }]
21852
- }], null, { qualifyingQuestionsControl: [{
21906
+ }], function () { return [{ type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }]; }, { qualifyingQuestionsControl: [{
21853
21907
  type: i0.Input
21854
21908
  }], qualifyingQuestions$: [{
21855
21909
  type: i0.Input
@@ -27094,9 +27148,14 @@
27094
27148
  exports.CaseFlagWizardStepTitle.SELECT_FLAG_LOCATION_EXTERNAL : exports.CaseFlagWizardStepTitle.SELECT_FLAG_LOCATION;
27095
27149
  // Filter out any flags instances that don't have a party name, unless the instance is for case-level flags (this
27096
27150
  // is expected not to have a party name)
27151
+ // Also de-duplicate flags instances where the groupId, if present, is the same
27097
27152
  if (this.flagsData) {
27098
27153
  this.filteredFlagsData =
27099
- this.flagsData.filter(function (f) { return f.flags.partyName !== null || f.pathToFlagsFormGroup === _this.caseLevelCaseFlagsFieldId; });
27154
+ this.flagsData
27155
+ .filter(function (f) { return f.flags.partyName !== null || f.pathToFlagsFormGroup === _this.caseLevelCaseFlagsFieldId; })
27156
+ .filter(function (value, index, partyLevelFlags) { return !value.flags.groupId
27157
+ ? value
27158
+ : partyLevelFlags.findIndex(function (p) { return p.flags.groupId === value.flags.groupId; }) === index; });
27100
27159
  }
27101
27160
  // Add a FormControl for the selected flag location if there is at least one flags instance remaining after filtering
27102
27161
  if (this.filteredFlagsData && this.filteredFlagsData.length > 0) {
@@ -27650,7 +27709,7 @@
27650
27709
 
27651
27710
  function UpdateFlagComponent_div_7_Template(rf, ctx) {
27652
27711
  if (rf & 1) {
27653
- i0__namespace.ɵɵelementStart(0, "div", 8);
27712
+ i0__namespace.ɵɵelementStart(0, "div", 16);
27654
27713
  i0__namespace.ɵɵtext(1);
27655
27714
  i0__namespace.ɵɵpipe(2, "updateFlagTitleDisplay");
27656
27715
  i0__namespace.ɵɵelementEnd();
@@ -27661,14 +27720,27 @@
27661
27720
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r0.selectedFlag == null ? null : ctx_r0.selectedFlag.flagDetailDisplay == null ? null : ctx_r0.selectedFlag.flagDetailDisplay.flagDetail), " ");
27662
27721
  }
27663
27722
  }
27664
- function UpdateFlagComponent_div_16_Template(rf, ctx) {
27723
+ function UpdateFlagComponent_div_13_Template(rf, ctx) {
27665
27724
  if (rf & 1) {
27666
- i0__namespace.ɵɵelementStart(0, "div", 18);
27667
- i0__namespace.ɵɵelementStart(1, "span", 19);
27725
+ i0__namespace.ɵɵelementStart(0, "div", 17);
27726
+ i0__namespace.ɵɵtext(1);
27727
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
27728
+ i0__namespace.ɵɵelementEnd();
27729
+ }
27730
+ if (rf & 2) {
27731
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
27732
+ i0__namespace.ɵɵadvance(1);
27733
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, ctx_r1.updateFlagStepEnum.COMMENT_HINT_TEXT_EXTERNAL), " ");
27734
+ }
27735
+ }
27736
+ function UpdateFlagComponent_ng_container_14_div_4_Template(rf, ctx) {
27737
+ if (rf & 1) {
27738
+ i0__namespace.ɵɵelementStart(0, "div", 24);
27739
+ i0__namespace.ɵɵelementStart(1, "span", 25);
27668
27740
  i0__namespace.ɵɵtext(2, "!");
27669
27741
  i0__namespace.ɵɵelementEnd();
27670
- i0__namespace.ɵɵelementStart(3, "strong", 20);
27671
- i0__namespace.ɵɵelementStart(4, "span", 21);
27742
+ i0__namespace.ɵɵelementStart(3, "strong", 26);
27743
+ i0__namespace.ɵɵelementStart(4, "span", 27);
27672
27744
  i0__namespace.ɵɵtext(5);
27673
27745
  i0__namespace.ɵɵpipe(6, "rpxTranslate");
27674
27746
  i0__namespace.ɵɵelementEnd();
@@ -27678,17 +27750,17 @@
27678
27750
  i0__namespace.ɵɵelementEnd();
27679
27751
  }
27680
27752
  if (rf & 2) {
27681
- var ctx_r1 = i0__namespace.ɵɵnextContext();
27753
+ var ctx_r9 = i0__namespace.ɵɵnextContext(2);
27682
27754
  i0__namespace.ɵɵadvance(5);
27683
27755
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(6, 2, "Warning"));
27684
27756
  i0__namespace.ɵɵadvance(2);
27685
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(8, 4, ctx_r1.updateFlagStepEnum.WARNING_TEXT), " ");
27757
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(8, 4, ctx_r9.updateFlagStepEnum.WARNING_TEXT), " ");
27686
27758
  }
27687
27759
  }
27688
- function UpdateFlagComponent_div_17_Template(rf, ctx) {
27760
+ function UpdateFlagComponent_ng_container_14_div_5_Template(rf, ctx) {
27689
27761
  if (rf & 1) {
27690
- i0__namespace.ɵɵelementStart(0, "div", 22);
27691
- i0__namespace.ɵɵelementStart(1, "span", 23);
27762
+ i0__namespace.ɵɵelementStart(0, "div", 28);
27763
+ i0__namespace.ɵɵelementStart(1, "span", 29);
27692
27764
  i0__namespace.ɵɵtext(2);
27693
27765
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
27694
27766
  i0__namespace.ɵɵelementEnd();
@@ -27697,17 +27769,17 @@
27697
27769
  i0__namespace.ɵɵelementEnd();
27698
27770
  }
27699
27771
  if (rf & 2) {
27700
- var ctx_r2 = i0__namespace.ɵɵnextContext();
27772
+ var ctx_r10 = i0__namespace.ɵɵnextContext(2);
27701
27773
  i0__namespace.ɵɵadvance(2);
27702
27774
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
27703
27775
  i0__namespace.ɵɵadvance(2);
27704
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r2.updateFlagNotEnteredErrorMessage), " ");
27776
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r10.commentsNotEnteredErrorMessage), " ");
27705
27777
  }
27706
27778
  }
27707
- function UpdateFlagComponent_div_18_Template(rf, ctx) {
27779
+ function UpdateFlagComponent_ng_container_14_div_6_Template(rf, ctx) {
27708
27780
  if (rf & 1) {
27709
- i0__namespace.ɵɵelementStart(0, "div", 24);
27710
- i0__namespace.ɵɵelementStart(1, "span", 23);
27781
+ i0__namespace.ɵɵelementStart(0, "div", 30);
27782
+ i0__namespace.ɵɵelementStart(1, "span", 29);
27711
27783
  i0__namespace.ɵɵtext(2);
27712
27784
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
27713
27785
  i0__namespace.ɵɵelementEnd();
@@ -27716,38 +27788,79 @@
27716
27788
  i0__namespace.ɵɵelementEnd();
27717
27789
  }
27718
27790
  if (rf & 2) {
27719
- var ctx_r3 = i0__namespace.ɵɵnextContext();
27791
+ var ctx_r11 = i0__namespace.ɵɵnextContext(2);
27720
27792
  i0__namespace.ɵɵadvance(2);
27721
27793
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
27722
27794
  i0__namespace.ɵɵadvance(2);
27723
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r3.updateFlagCharLimitErrorMessage), " ");
27795
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r11.commentsCharLimitErrorMessage), " ");
27724
27796
  }
27725
27797
  }
27726
- function UpdateFlagComponent_div_24_div_8_Template(rf, ctx) {
27798
+ function UpdateFlagComponent_ng_container_14_Template(rf, ctx) {
27727
27799
  if (rf & 1) {
27728
- i0__namespace.ɵɵelementStart(0, "div", 36);
27729
- i0__namespace.ɵɵelement(1, "input", 37);
27730
- i0__namespace.ɵɵelementStart(2, "label", 38);
27731
- i0__namespace.ɵɵtext(3);
27732
- i0__namespace.ɵɵpipe(4, "rpxTranslate");
27800
+ i0__namespace.ɵɵelementContainerStart(0);
27801
+ i0__namespace.ɵɵelementStart(1, "div", 18);
27802
+ i0__namespace.ɵɵtext(2);
27803
+ i0__namespace.ɵɵpipe(3, "rpxTranslate");
27733
27804
  i0__namespace.ɵɵelementEnd();
27805
+ i0__namespace.ɵɵtemplate(4, UpdateFlagComponent_ng_container_14_div_4_Template, 9, 6, "div", 19);
27806
+ i0__namespace.ɵɵtemplate(5, UpdateFlagComponent_ng_container_14_div_5_Template, 6, 6, "div", 20);
27807
+ i0__namespace.ɵɵtemplate(6, UpdateFlagComponent_ng_container_14_div_6_Template, 6, 6, "div", 21);
27808
+ i0__namespace.ɵɵelementStart(7, "textarea", 22);
27809
+ i0__namespace.ɵɵtext(8, " ");
27734
27810
  i0__namespace.ɵɵelementEnd();
27811
+ i0__namespace.ɵɵelementStart(9, "div", 23);
27812
+ i0__namespace.ɵɵtext(10);
27813
+ i0__namespace.ɵɵpipe(11, "rpxTranslate");
27814
+ i0__namespace.ɵɵelementEnd();
27815
+ i0__namespace.ɵɵelementContainerEnd();
27735
27816
  }
27736
27817
  if (rf & 2) {
27737
- var status_r9 = ctx.$implicit;
27738
- var ctx_r6 = i0__namespace.ɵɵnextContext(2);
27818
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
27819
+ i0__namespace.ɵɵadvance(2);
27820
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(3, 8, ctx_r2.updateFlagStepEnum.COMMENT_HINT_TEXT_INTERNAL), " ");
27821
+ i0__namespace.ɵɵadvance(2);
27822
+ i0__namespace.ɵɵproperty("ngIf", ctx_r2.displayContextParameter === ctx_r2.caseFlagDisplayContextParameter.UPDATE);
27739
27823
  i0__namespace.ɵɵadvance(1);
27740
- i0__namespace.ɵɵproperty("id", ctx_r6.caseFlagFormFields.STATUS + "_" + status_r9)("name", ctx_r6.caseFlagFormFields.STATUS)("formControlName", ctx_r6.caseFlagFormFields.STATUS)("value", status_r9);
27824
+ i0__namespace.ɵɵproperty("ngIf", ctx_r2.commentsNotEnteredErrorMessage);
27741
27825
  i0__namespace.ɵɵadvance(1);
27742
- i0__namespace.ɵɵproperty("for", ctx_r6.caseFlagFormFields.STATUS + "_" + status_r9);
27826
+ i0__namespace.ɵɵproperty("ngIf", ctx_r2.commentsCharLimitErrorMessage);
27743
27827
  i0__namespace.ɵɵadvance(1);
27744
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 6, ctx_r6.caseFlagStatusEnum[status_r9]), " ");
27828
+ i0__namespace.ɵɵproperty("id", ctx_r2.caseFlagFormFields.COMMENTS)("name", ctx_r2.caseFlagFormFields.COMMENTS)("formControlName", ctx_r2.caseFlagFormFields.COMMENTS);
27829
+ i0__namespace.ɵɵadvance(3);
27830
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(11, 10, ctx_r2.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
27745
27831
  }
27746
27832
  }
27747
- function UpdateFlagComponent_div_24_div_12_Template(rf, ctx) {
27833
+ function UpdateFlagComponent_ng_template_15_ng_container_0_ng_container_1_Template(rf, ctx) {
27748
27834
  if (rf & 1) {
27749
- i0__namespace.ɵɵelementStart(0, "div", 39);
27750
- i0__namespace.ɵɵelementStart(1, "span", 23);
27835
+ i0__namespace.ɵɵelementContainer(0);
27836
+ }
27837
+ }
27838
+ function UpdateFlagComponent_ng_template_15_ng_container_0_Template(rf, ctx) {
27839
+ if (rf & 1) {
27840
+ i0__namespace.ɵɵelementContainerStart(0);
27841
+ i0__namespace.ɵɵtemplate(1, UpdateFlagComponent_ng_template_15_ng_container_0_ng_container_1_Template, 1, 0, "ng-container", 32);
27842
+ i0__namespace.ɵɵelementContainerEnd();
27843
+ }
27844
+ if (rf & 2) {
27845
+ i0__namespace.ɵɵnextContext(2);
27846
+ var _r5 = i0__namespace.ɵɵreference(18);
27847
+ i0__namespace.ɵɵadvance(1);
27848
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r5);
27849
+ }
27850
+ }
27851
+ function UpdateFlagComponent_ng_template_15_Template(rf, ctx) {
27852
+ if (rf & 1) {
27853
+ i0__namespace.ɵɵtemplate(0, UpdateFlagComponent_ng_template_15_ng_container_0_Template, 2, 1, "ng-container", 31);
27854
+ }
27855
+ if (rf & 2) {
27856
+ var ctx_r4 = i0__namespace.ɵɵnextContext();
27857
+ i0__namespace.ɵɵproperty("ngIf", ctx_r4.externalUserUpdate);
27858
+ }
27859
+ }
27860
+ function UpdateFlagComponent_ng_template_17_div_0_Template(rf, ctx) {
27861
+ if (rf & 1) {
27862
+ i0__namespace.ɵɵelementStart(0, "div", 37);
27863
+ i0__namespace.ɵɵelementStart(1, "span", 29);
27751
27864
  i0__namespace.ɵɵtext(2);
27752
27865
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
27753
27866
  i0__namespace.ɵɵelementEnd();
@@ -27756,17 +27869,17 @@
27756
27869
  i0__namespace.ɵɵelementEnd();
27757
27870
  }
27758
27871
  if (rf & 2) {
27759
- var ctx_r7 = i0__namespace.ɵɵnextContext(2);
27872
+ var ctx_r14 = i0__namespace.ɵɵnextContext(2);
27760
27873
  i0__namespace.ɵɵadvance(2);
27761
27874
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
27762
27875
  i0__namespace.ɵɵadvance(2);
27763
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r7.statusReasonNotEnteredErrorMessage), " ");
27876
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r14.statusReasonNotEnteredErrorMessage), " ");
27764
27877
  }
27765
27878
  }
27766
- function UpdateFlagComponent_div_24_div_13_Template(rf, ctx) {
27879
+ function UpdateFlagComponent_ng_template_17_div_1_Template(rf, ctx) {
27767
27880
  if (rf & 1) {
27768
- i0__namespace.ɵɵelementStart(0, "div", 40);
27769
- i0__namespace.ɵɵelementStart(1, "span", 23);
27881
+ i0__namespace.ɵɵelementStart(0, "div", 38);
27882
+ i0__namespace.ɵɵelementStart(1, "span", 29);
27770
27883
  i0__namespace.ɵɵtext(2);
27771
27884
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
27772
27885
  i0__namespace.ɵɵelementEnd();
@@ -27775,70 +27888,106 @@
27775
27888
  i0__namespace.ɵɵelementEnd();
27776
27889
  }
27777
27890
  if (rf & 2) {
27778
- var ctx_r8 = i0__namespace.ɵɵnextContext(2);
27891
+ var ctx_r15 = i0__namespace.ɵɵnextContext(2);
27779
27892
  i0__namespace.ɵɵadvance(2);
27780
27893
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
27781
27894
  i0__namespace.ɵɵadvance(2);
27782
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r8.statusReasonCharLimitErrorMessage), " ");
27895
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r15.statusReasonCharLimitErrorMessage), " ");
27783
27896
  }
27784
27897
  }
27785
- function UpdateFlagComponent_div_24_Template(rf, ctx) {
27898
+ function UpdateFlagComponent_ng_template_17_Template(rf, ctx) {
27786
27899
  if (rf & 1) {
27787
- i0__namespace.ɵɵelementStart(0, "div", 25);
27788
- i0__namespace.ɵɵelementStart(1, "fieldset", 26);
27789
- i0__namespace.ɵɵelementStart(2, "legend", 27);
27790
- i0__namespace.ɵɵelementStart(3, "h1", 28);
27900
+ i0__namespace.ɵɵtemplate(0, UpdateFlagComponent_ng_template_17_div_0_Template, 6, 6, "div", 33);
27901
+ i0__namespace.ɵɵtemplate(1, UpdateFlagComponent_ng_template_17_div_1_Template, 6, 6, "div", 34);
27902
+ i0__namespace.ɵɵelementStart(2, "textarea", 35);
27903
+ i0__namespace.ɵɵtext(3, " ");
27904
+ i0__namespace.ɵɵelementEnd();
27905
+ i0__namespace.ɵɵelementStart(4, "div", 36);
27906
+ i0__namespace.ɵɵtext(5);
27907
+ i0__namespace.ɵɵpipe(6, "rpxTranslate");
27908
+ i0__namespace.ɵɵelementEnd();
27909
+ }
27910
+ if (rf & 2) {
27911
+ var ctx_r6 = i0__namespace.ɵɵnextContext();
27912
+ i0__namespace.ɵɵproperty("ngIf", ctx_r6.statusReasonNotEnteredErrorMessage);
27913
+ i0__namespace.ɵɵadvance(1);
27914
+ i0__namespace.ɵɵproperty("ngIf", ctx_r6.statusReasonCharLimitErrorMessage);
27915
+ i0__namespace.ɵɵadvance(1);
27916
+ i0__namespace.ɵɵproperty("id", ctx_r6.caseFlagFormFields.STATUS_CHANGE_REASON)("name", ctx_r6.caseFlagFormFields.STATUS_CHANGE_REASON)("formControlName", ctx_r6.caseFlagFormFields.STATUS_CHANGE_REASON);
27917
+ i0__namespace.ɵɵadvance(3);
27918
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 6, ctx_r6.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
27919
+ }
27920
+ }
27921
+ function UpdateFlagComponent_div_19_div_8_Template(rf, ctx) {
27922
+ if (rf & 1) {
27923
+ i0__namespace.ɵɵelementStart(0, "div", 46);
27924
+ i0__namespace.ɵɵelement(1, "input", 47);
27925
+ i0__namespace.ɵɵelementStart(2, "label", 48);
27926
+ i0__namespace.ɵɵtext(3);
27927
+ i0__namespace.ɵɵpipe(4, "rpxTranslate");
27928
+ i0__namespace.ɵɵelementEnd();
27929
+ i0__namespace.ɵɵelementEnd();
27930
+ }
27931
+ if (rf & 2) {
27932
+ var status_r18 = ctx.$implicit;
27933
+ var ctx_r16 = i0__namespace.ɵɵnextContext(2);
27934
+ i0__namespace.ɵɵadvance(1);
27935
+ i0__namespace.ɵɵproperty("id", ctx_r16.caseFlagFormFields.STATUS + "_" + status_r18)("name", ctx_r16.caseFlagFormFields.STATUS)("formControlName", ctx_r16.caseFlagFormFields.STATUS)("value", status_r18);
27936
+ i0__namespace.ɵɵadvance(1);
27937
+ i0__namespace.ɵɵproperty("for", ctx_r16.caseFlagFormFields.STATUS + "_" + status_r18);
27938
+ i0__namespace.ɵɵadvance(1);
27939
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 6, ctx_r16.caseFlagStatusEnum[status_r18]), " ");
27940
+ }
27941
+ }
27942
+ function UpdateFlagComponent_div_19_ng_container_12_Template(rf, ctx) {
27943
+ if (rf & 1) {
27944
+ i0__namespace.ɵɵelementContainer(0);
27945
+ }
27946
+ }
27947
+ function UpdateFlagComponent_div_19_Template(rf, ctx) {
27948
+ if (rf & 1) {
27949
+ i0__namespace.ɵɵelementStart(0, "div", 39);
27950
+ i0__namespace.ɵɵelementStart(1, "fieldset", 40);
27951
+ i0__namespace.ɵɵelementStart(2, "legend", 41);
27952
+ i0__namespace.ɵɵelementStart(3, "h1", 42);
27791
27953
  i0__namespace.ɵɵtext(4);
27792
27954
  i0__namespace.ɵɵpipe(5, "rpxTranslate");
27793
27955
  i0__namespace.ɵɵpipe(6, "rpxTranslate");
27794
27956
  i0__namespace.ɵɵelementEnd();
27795
27957
  i0__namespace.ɵɵelementEnd();
27796
- i0__namespace.ɵɵelementStart(7, "div", 29);
27797
- i0__namespace.ɵɵtemplate(8, UpdateFlagComponent_div_24_div_8_Template, 5, 8, "div", 30);
27958
+ i0__namespace.ɵɵelementStart(7, "div", 43);
27959
+ i0__namespace.ɵɵtemplate(8, UpdateFlagComponent_div_19_div_8_Template, 5, 8, "div", 44);
27798
27960
  i0__namespace.ɵɵelementEnd();
27799
27961
  i0__namespace.ɵɵelementEnd();
27800
- i0__namespace.ɵɵelementStart(9, "div", 31);
27962
+ i0__namespace.ɵɵelementStart(9, "div", 45);
27801
27963
  i0__namespace.ɵɵtext(10);
27802
27964
  i0__namespace.ɵɵpipe(11, "rpxTranslate");
27803
27965
  i0__namespace.ɵɵelementEnd();
27804
- i0__namespace.ɵɵtemplate(12, UpdateFlagComponent_div_24_div_12_Template, 6, 6, "div", 32);
27805
- i0__namespace.ɵɵtemplate(13, UpdateFlagComponent_div_24_div_13_Template, 6, 6, "div", 33);
27806
- i0__namespace.ɵɵelementStart(14, "textarea", 34);
27807
- i0__namespace.ɵɵtext(15, " ");
27808
- i0__namespace.ɵɵelementEnd();
27809
- i0__namespace.ɵɵelementStart(16, "div", 35);
27810
- i0__namespace.ɵɵtext(17);
27811
- i0__namespace.ɵɵpipe(18, "rpxTranslate");
27812
- i0__namespace.ɵɵelementEnd();
27966
+ i0__namespace.ɵɵtemplate(12, UpdateFlagComponent_div_19_ng_container_12_Template, 1, 0, "ng-container", 32);
27813
27967
  i0__namespace.ɵɵelementEnd();
27814
27968
  }
27815
27969
  if (rf & 2) {
27816
- var ctx_r4 = i0__namespace.ɵɵnextContext();
27970
+ var ctx_r7 = i0__namespace.ɵɵnextContext();
27971
+ var _r5 = i0__namespace.ɵɵreference(18);
27817
27972
  i0__namespace.ɵɵadvance(4);
27818
- i0__namespace.ɵɵtextInterpolate2(" ", i0__namespace.ɵɵpipeBind1(5, 11, ctx_r4.updateFlagTitle), " ", i0__namespace.ɵɵpipeBind1(6, 13, "status"), " ");
27973
+ i0__namespace.ɵɵtextInterpolate2(" ", i0__namespace.ɵɵpipeBind1(5, 6, ctx_r7.updateFlagTitle), " ", i0__namespace.ɵɵpipeBind1(6, 8, "status"), " ");
27819
27974
  i0__namespace.ɵɵadvance(3);
27820
- i0__namespace.ɵɵproperty("id", ctx_r4.caseFlagFormFields.STATUS);
27975
+ i0__namespace.ɵɵproperty("id", ctx_r7.caseFlagFormFields.STATUS);
27821
27976
  i0__namespace.ɵɵadvance(1);
27822
- i0__namespace.ɵɵproperty("ngForOf", ctx_r4.validStatusProgressions);
27977
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r7.validStatusProgressions);
27823
27978
  i0__namespace.ɵɵadvance(2);
27824
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(11, 15, ctx_r4.updateFlagStepEnum.STATUS_HINT_TEXT), " ");
27979
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(11, 10, ctx_r7.updateFlagStepEnum.STATUS_HINT_TEXT), " ");
27825
27980
  i0__namespace.ɵɵadvance(2);
27826
- i0__namespace.ɵɵproperty("ngIf", ctx_r4.statusReasonNotEnteredErrorMessage);
27827
- i0__namespace.ɵɵadvance(1);
27828
- i0__namespace.ɵɵproperty("ngIf", ctx_r4.statusReasonCharLimitErrorMessage);
27829
- i0__namespace.ɵɵadvance(1);
27830
- i0__namespace.ɵɵproperty("id", ctx_r4.caseFlagFormFields.STATUS_CHANGE_REASON)("name", ctx_r4.caseFlagFormFields.STATUS_CHANGE_REASON)("formControlName", ctx_r4.caseFlagFormFields.STATUS_CHANGE_REASON);
27831
- i0__namespace.ɵɵadvance(3);
27832
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 17, ctx_r4.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
27981
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r5);
27833
27982
  }
27834
27983
  }
27835
- function UpdateFlagComponent_div_25_Template(rf, ctx) {
27984
+ function UpdateFlagComponent_div_20_Template(rf, ctx) {
27836
27985
  if (rf & 1) {
27837
- i0__namespace.ɵɵelementStart(0, "div", 41);
27838
- i0__namespace.ɵɵelementStart(1, "div", 42);
27839
- i0__namespace.ɵɵelementStart(2, "div", 43);
27840
- i0__namespace.ɵɵelement(3, "input", 44);
27841
- i0__namespace.ɵɵelementStart(4, "label", 45);
27986
+ i0__namespace.ɵɵelementStart(0, "div", 49);
27987
+ i0__namespace.ɵɵelementStart(1, "div", 50);
27988
+ i0__namespace.ɵɵelementStart(2, "div", 51);
27989
+ i0__namespace.ɵɵelement(3, "input", 52);
27990
+ i0__namespace.ɵɵelementStart(4, "label", 53);
27842
27991
  i0__namespace.ɵɵtext(5);
27843
27992
  i0__namespace.ɵɵpipe(6, "rpxTranslate");
27844
27993
  i0__namespace.ɵɵelementEnd();
@@ -27847,11 +27996,11 @@
27847
27996
  i0__namespace.ɵɵelementEnd();
27848
27997
  }
27849
27998
  if (rf & 2) {
27850
- var ctx_r5 = i0__namespace.ɵɵnextContext();
27999
+ var ctx_r8 = i0__namespace.ɵɵnextContext();
27851
28000
  i0__namespace.ɵɵadvance(3);
27852
- i0__namespace.ɵɵproperty("formControlName", ctx_r5.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("id", ctx_r5.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("name", ctx_r5.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
28001
+ i0__namespace.ɵɵproperty("formControlName", ctx_r8.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("id", ctx_r8.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED)("name", ctx_r8.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
27853
28002
  i0__namespace.ɵɵadvance(1);
27854
- i0__namespace.ɵɵproperty("for", ctx_r5.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
28003
+ i0__namespace.ɵɵproperty("for", ctx_r8.caseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED);
27855
28004
  i0__namespace.ɵɵadvance(1);
27856
28005
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 5, "I need to add a translation"), " ");
27857
28006
  }
@@ -27863,8 +28012,8 @@
27863
28012
  this.caseFlagStateEmitter = new i0.EventEmitter();
27864
28013
  this.updateFlagTitle = '';
27865
28014
  this.errorMessages = [];
27866
- this.updateFlagNotEnteredErrorMessage = null;
27867
- this.updateFlagCharLimitErrorMessage = null;
28015
+ this.commentsNotEnteredErrorMessage = null;
28016
+ this.commentsCharLimitErrorMessage = null;
27868
28017
  this.statusReasonNotEnteredErrorMessage = null;
27869
28018
  this.statusReasonCharLimitErrorMessage = null;
27870
28019
  this.updateFlagStepEnum = exports.UpdateFlagStep;
@@ -27873,10 +28022,15 @@
27873
28022
  this.textMaxCharLimit = 200;
27874
28023
  this.selectedManageCaseLocation = 'selectedManageCaseLocation';
27875
28024
  this.caseFlagDisplayContextParameter = exports.CaseFlagDisplayContextParameter;
28025
+ this.externalUserUpdate = false;
28026
+ this.internalUserUpdate = false;
27876
28027
  }
27877
28028
  UpdateFlagComponent.prototype.ngOnInit = function () {
27878
28029
  var _this = this;
27879
28030
  var _a, _b;
28031
+ // Set whether this is an external or internal user update
28032
+ this.externalUserUpdate = this.displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL;
28033
+ this.internalUserUpdate = this.displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE;
27880
28034
  this.selectedFlag = this.formGroup.get(this.selectedManageCaseLocation).value;
27881
28035
  if ((_b = (_a = this.selectedFlag) === null || _a === void 0 ? void 0 : _a.flagDetailDisplay) === null || _b === void 0 ? void 0 : _b.flagDetail) {
27882
28036
  this.flagDetail = this.selectedFlag.flagDetailDisplay.flagDetail;
@@ -27893,7 +28047,8 @@
27893
28047
  }
27894
28048
  this.formGroup.addControl(exports.CaseFlagFormFields.COMMENTS, new i3.FormControl(existingComments));
27895
28049
  this.formGroup.addControl(exports.CaseFlagFormFields.STATUS, new i3.FormControl(currentFlagStatusKey));
27896
- this.formGroup.addControl(exports.CaseFlagFormFields.STATUS_CHANGE_REASON, new i3.FormControl(''));
28050
+ // Populate status reason only if the user is not external
28051
+ this.formGroup.addControl(exports.CaseFlagFormFields.STATUS_CHANGE_REASON, new i3.FormControl(this.externalUserUpdate ? '' : this.flagDetail.flagUpdateComment));
27897
28052
  this.formGroup.addControl(exports.CaseFlagFormFields.IS_WELSH_TRANSLATION_NEEDED, new i3.FormControl(false));
27898
28053
  this.updateFlagTitle = this.setUpdateCaseFlagTitle(this.flagDetail);
27899
28054
  // Set the valid status options for display, based on current status of the selected flag. "Active" flags can
@@ -27929,6 +28084,10 @@
27929
28084
  UpdateFlagComponent.prototype.onNext = function () {
27930
28085
  // Validate flag comments and status reason entry
27931
28086
  this.validateTextEntry();
28087
+ // Set selected flag status to "Inactive" if update is by external user
28088
+ if (this.externalUserUpdate) {
28089
+ this.formGroup.get(exports.CaseFlagFormFields.STATUS).setValue(Object.keys(exports.CaseFlagStatus)[2]);
28090
+ }
27932
28091
  // Return case flag field state, error messages, and selected flag detail to the parent. The selected flag must be
27933
28092
  // re-emitted because the parent component repopulates this on handling this EventEmitter
27934
28093
  this.caseFlagStateEmitter.emit({
@@ -27939,8 +28098,8 @@
27939
28098
  window.scrollTo(0, 0);
27940
28099
  };
27941
28100
  UpdateFlagComponent.prototype.validateTextEntry = function () {
27942
- this.updateFlagNotEnteredErrorMessage = null;
27943
- this.updateFlagCharLimitErrorMessage = null;
28101
+ this.commentsNotEnteredErrorMessage = null;
28102
+ this.commentsCharLimitErrorMessage = null;
27944
28103
  this.statusReasonNotEnteredErrorMessage = null;
27945
28104
  this.statusReasonCharLimitErrorMessage = null;
27946
28105
  this.errorMessages = [];
@@ -27948,15 +28107,17 @@
27948
28107
  // is no existing comment then one is not required for validation to pass
27949
28108
  var comment = this.formGroup.get(exports.CaseFlagFormFields.COMMENTS).value;
27950
28109
  if (!comment && (this.flagDetail.flagComment || this.flagDetail.flagComment_cy)) {
27951
- this.updateFlagNotEnteredErrorMessage = exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED;
28110
+ this.commentsNotEnteredErrorMessage = !this.displayContextParameter
28111
+ ? exports.UpdateFlagErrorMessage.NONE
28112
+ : exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED;
27952
28113
  this.errorMessages.push({
27953
28114
  title: '',
27954
- description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_NOT_ENTERED,
28115
+ description: this.commentsNotEnteredErrorMessage,
27955
28116
  fieldId: exports.CaseFlagFormFields.COMMENTS
27956
28117
  });
27957
28118
  }
27958
28119
  if (comment && comment.length > this.textMaxCharLimit) {
27959
- this.updateFlagCharLimitErrorMessage = exports.UpdateFlagErrorMessage.FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED;
28120
+ this.commentsCharLimitErrorMessage = exports.UpdateFlagErrorMessage.FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED;
27960
28121
  this.errorMessages.push({
27961
28122
  title: '',
27962
28123
  description: exports.UpdateFlagErrorMessage.FLAG_COMMENTS_CHAR_LIMIT_EXCEEDED,
@@ -27965,6 +28126,7 @@
27965
28126
  }
27966
28127
  var statusReason = this.formGroup.get(exports.CaseFlagFormFields.STATUS_CHANGE_REASON).value;
27967
28128
  var flagStatusNotApprovedKey = Object.keys(exports.CaseFlagStatus).find(function (key) { return exports.CaseFlagStatus[key] === exports.CaseFlagStatus.NOT_APPROVED; });
28129
+ // Status reason is mandatory if flag status is "Not approved" or user is external
27968
28130
  if (this.formGroup.get(exports.CaseFlagFormFields.STATUS).value === flagStatusNotApprovedKey && !statusReason) {
27969
28131
  this.statusReasonNotEnteredErrorMessage = exports.UpdateFlagErrorMessage.STATUS_REASON_NOT_ENTERED;
27970
28132
  this.errorMessages.push({
@@ -27973,6 +28135,14 @@
27973
28135
  fieldId: exports.CaseFlagFormFields.STATUS_CHANGE_REASON
27974
28136
  });
27975
28137
  }
28138
+ if (this.externalUserUpdate && !statusReason) {
28139
+ this.statusReasonNotEnteredErrorMessage = exports.UpdateFlagErrorMessage.STATUS_REASON_NOT_ENTERED_EXTERNAL;
28140
+ this.errorMessages.push({
28141
+ title: '',
28142
+ description: exports.UpdateFlagErrorMessage.STATUS_REASON_NOT_ENTERED_EXTERNAL,
28143
+ fieldId: exports.CaseFlagFormFields.STATUS_CHANGE_REASON
28144
+ });
28145
+ }
27976
28146
  if (statusReason && statusReason.length > this.textMaxCharLimit) {
27977
28147
  this.statusReasonCharLimitErrorMessage = exports.UpdateFlagErrorMessage.STATUS_REASON_CHAR_LIMIT_EXCEEDED;
27978
28148
  this.errorMessages.push({
@@ -27985,7 +28155,7 @@
27985
28155
  return UpdateFlagComponent;
27986
28156
  }());
27987
28157
  UpdateFlagComponent.ɵfac = function UpdateFlagComponent_Factory(t) { return new (t || UpdateFlagComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.RpxTranslationService)); };
27988
- UpdateFlagComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: UpdateFlagComponent, selectors: [["ccd-update-flag"]], inputs: { formGroup: "formGroup", displayContextParameter: "displayContextParameter" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 30, vars: 32, consts: [[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-4"], [1, "govuk-label", "govuk-label--m"], ["id", "update-flag-hint", "class", "govuk-hint", 4, "ngIf"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "update-flag-hint", 1, "govuk-hint"], ["class", "govuk-warning-text", 4, "ngIf"], ["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-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "flag-status-container", "class", "govuk-!-margin-bottom-4", 4, "ngIf"], ["class", "govuk-!-margin-bottom-6", 4, "ngIf"], [1, "govuk-button-group"], ["id", "updateFlagNextButton", "type", "button", 1, "govuk-button", 3, "click"], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["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"], ["id", "flag-status-container", 1, "govuk-!-margin-bottom-4"], ["aria-describedby", "update-flag-status-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--s"], ["id", "update-flag-status-heading", 1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--conditional", "govuk-!-margin-bottom-4", 3, "id"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "update-flag-status-hint", 1, "govuk-hint"], ["id", "update-flag-status-reason-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-status-reason-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-status-reason-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "formControlName", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["id", "update-flag-status-reason-not-entered-error-message", 1, "govuk-error-message"], ["id", "update-flag-status-reason-char-limit-error", 1, "govuk-error-message"], [1, "govuk-!-margin-bottom-6"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes"], [1, "govuk-checkboxes__item"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "formControlName", "id", "name"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"]], template: function UpdateFlagComponent_Template(rf, ctx) {
28158
+ UpdateFlagComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: UpdateFlagComponent, selectors: [["ccd-update-flag"]], inputs: { formGroup: "formGroup", displayContextParameter: "displayContextParameter" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, decls: 25, vars: 23, consts: [[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-4"], [1, "govuk-label", "govuk-label--m"], ["id", "update-flag-hint-external", "class", "govuk-hint", 4, "ngIf"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "update-flag-comments-hint-external", "class", "govuk-hint", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["externalUser", ""], ["updateFlagStatusReason", ""], ["id", "flag-status-container", "class", "govuk-!-margin-bottom-4", 4, "ngIf"], ["class", "govuk-!-margin-bottom-6", 4, "ngIf"], [1, "govuk-button-group"], ["id", "updateFlagNextButton", "type", "button", 1, "govuk-button", 3, "click"], ["id", "update-flag-hint-external", 1, "govuk-hint"], ["id", "update-flag-comments-hint-external", 1, "govuk-hint"], ["id", "update-flag-comments-hint", 1, "govuk-hint"], ["class", "govuk-warning-text", 4, "ngIf"], ["id", "update-flag-comments-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-comments-hint update-flag-comments-char-limit-info update-flag-comments-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], [1, "govuk-warning-text"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], ["id", "update-flag-comments-not-entered-error-message", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "update-flag-comments-char-limit-error", 1, "govuk-error-message"], [4, "ngIf"], [4, "ngTemplateOutlet"], ["id", "update-flag-status-reason-not-entered-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "update-flag-status-reason-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", "aria-describedby", "update-flag-comments-hint-external update-flag-status-hint update-flag-status-reason-char-limit-info\n update-flag-status-reason-char-limit-error", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "update-flag-status-reason-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "update-flag-status-reason-not-entered-error-message", 1, "govuk-error-message"], ["id", "update-flag-status-reason-char-limit-error", 1, "govuk-error-message"], ["id", "flag-status-container", 1, "govuk-!-margin-bottom-4"], ["aria-describedby", "update-flag-status-heading", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--s"], ["id", "update-flag-status-heading", 1, "govuk-fieldset__heading"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--conditional", "govuk-!-margin-bottom-4", 3, "id"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], ["id", "update-flag-status-hint", 1, "govuk-hint"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "id", "name", "formControlName", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], [1, "govuk-!-margin-bottom-6"], ["data-module", "govuk-checkboxes", 1, "govuk-checkboxes"], [1, "govuk-checkboxes__item"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "formControlName", "id", "name"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"]], template: function UpdateFlagComponent_Template(rf, ctx) {
27989
28159
  if (rf & 1) {
27990
28160
  i0__namespace.ɵɵelementContainerStart(0, 0);
27991
28161
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -28003,64 +28173,47 @@
28003
28173
  i0__namespace.ɵɵpipe(11, "rpxTranslate");
28004
28174
  i0__namespace.ɵɵpipe(12, "rpxTranslate");
28005
28175
  i0__namespace.ɵɵelementEnd();
28006
- i0__namespace.ɵɵelementStart(13, "div", 8);
28007
- i0__namespace.ɵɵtext(14);
28008
- i0__namespace.ɵɵpipe(15, "rpxTranslate");
28009
- i0__namespace.ɵɵelementEnd();
28010
- i0__namespace.ɵɵtemplate(16, UpdateFlagComponent_div_16_Template, 9, 6, "div", 9);
28011
- i0__namespace.ɵɵtemplate(17, UpdateFlagComponent_div_17_Template, 6, 6, "div", 10);
28012
- i0__namespace.ɵɵtemplate(18, UpdateFlagComponent_div_18_Template, 6, 6, "div", 11);
28013
- i0__namespace.ɵɵelementStart(19, "textarea", 12);
28014
- i0__namespace.ɵɵtext(20, " ");
28176
+ i0__namespace.ɵɵtemplate(13, UpdateFlagComponent_div_13_Template, 3, 3, "div", 8);
28177
+ i0__namespace.ɵɵtemplate(14, UpdateFlagComponent_ng_container_14_Template, 12, 12, "ng-container", 9);
28178
+ i0__namespace.ɵɵtemplate(15, UpdateFlagComponent_ng_template_15_Template, 1, 1, "ng-template", null, 10, i0__namespace.ɵɵtemplateRefExtractor);
28015
28179
  i0__namespace.ɵɵelementEnd();
28016
- i0__namespace.ɵɵelementStart(21, "div", 13);
28017
- i0__namespace.ɵɵtext(22);
28018
- i0__namespace.ɵɵpipe(23, "rpxTranslate");
28019
- i0__namespace.ɵɵelementEnd();
28020
- i0__namespace.ɵɵelementEnd();
28021
- i0__namespace.ɵɵtemplate(24, UpdateFlagComponent_div_24_Template, 19, 19, "div", 14);
28022
- i0__namespace.ɵɵtemplate(25, UpdateFlagComponent_div_25_Template, 7, 7, "div", 15);
28180
+ i0__namespace.ɵɵtemplate(17, UpdateFlagComponent_ng_template_17_Template, 7, 8, "ng-template", null, 11, i0__namespace.ɵɵtemplateRefExtractor);
28181
+ i0__namespace.ɵɵtemplate(19, UpdateFlagComponent_div_19_Template, 13, 12, "div", 12);
28182
+ i0__namespace.ɵɵtemplate(20, UpdateFlagComponent_div_20_Template, 7, 7, "div", 13);
28023
28183
  i0__namespace.ɵɵelementEnd();
28024
28184
  i0__namespace.ɵɵelementEnd();
28025
28185
  i0__namespace.ɵɵelementContainerEnd();
28026
- i0__namespace.ɵɵelementStart(26, "div", 16);
28027
- i0__namespace.ɵɵelementStart(27, "button", 17);
28028
- i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_27_listener() { return ctx.onNext(); });
28029
- i0__namespace.ɵɵtext(28);
28030
- i0__namespace.ɵɵpipe(29, "rpxTranslate");
28186
+ i0__namespace.ɵɵelementStart(21, "div", 14);
28187
+ i0__namespace.ɵɵelementStart(22, "button", 15);
28188
+ i0__namespace.ɵɵlistener("click", function UpdateFlagComponent_Template_button_click_22_listener() { return ctx.onNext(); });
28189
+ i0__namespace.ɵɵtext(23);
28190
+ i0__namespace.ɵɵpipe(24, "rpxTranslate");
28031
28191
  i0__namespace.ɵɵelementEnd();
28032
28192
  i0__namespace.ɵɵelementEnd();
28033
28193
  }
28034
28194
  if (rf & 2) {
28195
+ var _r3 = i0__namespace.ɵɵreference(16);
28035
28196
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
28036
28197
  i0__namespace.ɵɵadvance(2);
28037
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(30, _c0$l, ctx.errorMessages.length > 0));
28198
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(21, _c0$l, ctx.errorMessages.length > 0));
28038
28199
  i0__namespace.ɵɵadvance(3);
28039
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 18, ctx.updateFlagTitle), " ");
28200
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 13, ctx.updateFlagTitle), " ");
28040
28201
  i0__namespace.ɵɵadvance(2);
28041
- i0__namespace.ɵɵproperty("ngIf", ctx.displayContextParameter === ctx.caseFlagDisplayContextParameter.UPDATE_EXTERNAL);
28202
+ i0__namespace.ɵɵproperty("ngIf", ctx.externalUserUpdate);
28042
28203
  i0__namespace.ɵɵadvance(2);
28043
28204
  i0__namespace.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS);
28044
28205
  i0__namespace.ɵɵadvance(1);
28045
- i0__namespace.ɵɵtextInterpolate2(" ", i0__namespace.ɵɵpipeBind1(11, 20, ctx.updateFlagTitle), " ", i0__namespace.ɵɵpipeBind1(12, 22, "comments"), " ");
28046
- i0__namespace.ɵɵadvance(4);
28047
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(15, 24, ctx.updateFlagStepEnum.COMMENT_HINT_TEXT), " ");
28048
- i0__namespace.ɵɵadvance(2);
28049
- i0__namespace.ɵɵproperty("ngIf", ctx.displayContextParameter === ctx.caseFlagDisplayContextParameter.UPDATE);
28050
- i0__namespace.ɵɵadvance(1);
28051
- i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagNotEnteredErrorMessage);
28052
- i0__namespace.ɵɵadvance(1);
28053
- i0__namespace.ɵɵproperty("ngIf", ctx.updateFlagCharLimitErrorMessage);
28054
- i0__namespace.ɵɵadvance(1);
28055
- i0__namespace.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS)("name", ctx.caseFlagFormFields.COMMENTS)("formControlName", ctx.caseFlagFormFields.COMMENTS);
28206
+ i0__namespace.ɵɵtextInterpolate2(" ", i0__namespace.ɵɵpipeBind1(11, 15, ctx.updateFlagTitle), " ", i0__namespace.ɵɵpipeBind1(12, 17, "comments"), " ");
28056
28207
  i0__namespace.ɵɵadvance(3);
28057
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(23, 26, ctx.updateFlagStepEnum.CHARACTER_LIMIT_INFO), " ");
28058
- i0__namespace.ɵɵadvance(2);
28059
- i0__namespace.ɵɵproperty("ngIf", ctx.displayContextParameter === ctx.caseFlagDisplayContextParameter.UPDATE);
28208
+ i0__namespace.ɵɵproperty("ngIf", ctx.externalUserUpdate);
28060
28209
  i0__namespace.ɵɵadvance(1);
28061
- i0__namespace.ɵɵproperty("ngIf", ctx.displayContextParameter === ctx.caseFlagDisplayContextParameter.UPDATE);
28210
+ i0__namespace.ɵɵproperty("ngIf", ctx.internalUserUpdate || ctx.displayContextParameter === "")("ngIfElse", _r3);
28211
+ i0__namespace.ɵɵadvance(5);
28212
+ i0__namespace.ɵɵproperty("ngIf", ctx.internalUserUpdate);
28213
+ i0__namespace.ɵɵadvance(1);
28214
+ i0__namespace.ɵɵproperty("ngIf", ctx.internalUserUpdate);
28062
28215
  i0__namespace.ɵɵadvance(3);
28063
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(29, 28, "Next"), " ");
28216
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(24, 19, "Next"), " ");
28064
28217
  }
28065
28218
  }, encapsulation: 2 });
28066
28219
  (function () {
@@ -32135,7 +32288,7 @@
32135
32288
  i0__namespace.ɵɵsetComponentScope(SelectFlagTypeComponent, [i5__namespace.NgIf, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgClass, i5__namespace.NgForOf, i3__namespace.RadioControlValueAccessor, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName, i3__namespace.CheckboxControlValueAccessor], [i1__namespace.RpxTranslatePipe, FlagFieldDisplayPipe]);
32136
32289
  i0__namespace.ɵɵsetComponentScope(SearchLanguageInterpreterComponent, [i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgClass, i5__namespace.NgIf, i14__namespace.MatInput, i3__namespace.DefaultValueAccessor, i5__namespace$1.MatAutocompleteTrigger, i3__namespace.NgControlStatus, i3__namespace.FormControlName, i5__namespace$1.MatAutocomplete, i5__namespace.NgForOf, i6__namespace.MatOption], [FlagFieldDisplayPipe, i1__namespace.RpxTranslatePipe, i5__namespace.AsyncPipe, LanguageInterpreterDisplayPipe]);
32137
32290
  i0__namespace.ɵɵsetComponentScope(ManageCaseFlagsComponent, [i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgClass, i5__namespace.NgIf, i5__namespace.NgForOf, i3__namespace.RadioControlValueAccessor, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName], [i1__namespace.RpxTranslatePipe, ManageCaseFlagsLabelDisplayPipe]);
32138
- i0__namespace.ɵɵsetComponentScope(UpdateFlagComponent, [i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgClass, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName, i5__namespace.NgForOf, i3__namespace.RadioControlValueAccessor, i3__namespace.CheckboxControlValueAccessor], [i1__namespace.RpxTranslatePipe, UpdateFlagTitleDisplayPipe]);
32291
+ i0__namespace.ɵɵsetComponentScope(UpdateFlagComponent, [i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgClass, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName, i5__namespace.NgTemplateOutlet, i5__namespace.NgForOf, i3__namespace.RadioControlValueAccessor, i3__namespace.CheckboxControlValueAccessor], [i1__namespace.RpxTranslatePipe, UpdateFlagTitleDisplayPipe]);
32139
32292
  i0__namespace.ɵɵsetComponentScope(
32140
32293
  // Components for linked cases
32141
32294
  LinkedCasesToTableComponent, [i5__namespace.NgIf, i5__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
@@ -36574,7 +36727,7 @@
36574
36727
  }
36575
36728
  }
36576
36729
  var CaseFullAccessViewComponent = /** @class */ (function () {
36577
- function CaseFullAccessViewComponent(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, convertHrefToRouterService, location, crf, sessionStorageService) {
36730
+ function CaseFullAccessViewComponent(ngZone, route, router, navigationNotifierService, orderService, activityPollingService, dialog, alertService, draftService, errorNotifierService, convertHrefToRouterService, location, crf, sessionStorageService, rpxTranslationPipe) {
36578
36731
  this.ngZone = ngZone;
36579
36732
  this.route = route;
36580
36733
  this.router = router;
@@ -36589,6 +36742,7 @@
36589
36742
  this.location = location;
36590
36743
  this.crf = crf;
36591
36744
  this.sessionStorageService = sessionStorageService;
36745
+ this.rpxTranslationPipe = rpxTranslationPipe;
36592
36746
  this.HEARINGS_TAB_LABEL = 'Hearings';
36593
36747
  this.hasPrint = true;
36594
36748
  this.hasEventSelector = true;
@@ -36823,7 +36977,8 @@
36823
36977
  // sortedTabs are fragments
36824
36978
  // appended/prepepended tabs use router navigation
36825
36979
  if ((tabIndexChanged <= 1 && this.prependedTabs && this.prependedTabs.length) ||
36826
- (this.appendedTabs && this.appendedTabs.length && tabLabel === this.HEARINGS_TAB_LABEL)) {
36980
+ (this.appendedTabs && this.appendedTabs.length && (tabLabel === this.HEARINGS_TAB_LABEL
36981
+ || tabLabel === this.rpxTranslationPipe.transform(this.HEARINGS_TAB_LABEL)))) {
36827
36982
  // Hack to get ID from tab as it's not easily achieved through Angular Material Tabs
36828
36983
  var tab = matTab['_viewContainerRef'];
36829
36984
  var id = tab.element.nativeElement.id;
@@ -36948,7 +37103,7 @@
36948
37103
  CaseFullAccessViewComponent.TRIGGER_TEXT_CONTINUE = 'Ignore Warning and Go';
36949
37104
  CaseFullAccessViewComponent.UNICODE_SPACE = '%20';
36950
37105
  CaseFullAccessViewComponent.EMPTY_SPACE = ' ';
36951
- CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i5__namespace.Location), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
37106
+ CaseFullAccessViewComponent.ɵfac = function CaseFullAccessViewComponent_Factory(t) { return new (t || CaseFullAccessViewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i1__namespace$1.Router), i0__namespace.ɵɵdirectiveInject(NavigationNotifierService), i0__namespace.ɵɵdirectiveInject(OrderService), i0__namespace.ɵɵdirectiveInject(ActivityPollingService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(AlertService), i0__namespace.ɵɵdirectiveInject(DraftService), i0__namespace.ɵɵdirectiveInject(ErrorNotifierService), i0__namespace.ɵɵdirectiveInject(ConvertHrefToRouterService), i0__namespace.ɵɵdirectiveInject(i5__namespace.Location), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(SessionStorageService), i0__namespace.ɵɵdirectiveInject(i1__namespace.RpxTranslatePipe)); };
36952
37107
  CaseFullAccessViewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CaseFullAccessViewComponent, selectors: [["ccd-case-full-access-view"]], viewQuery: function CaseFullAccessViewComponent_Query(rf, ctx) {
36953
37108
  if (rf & 1) {
36954
37109
  i0__namespace.ɵɵviewQuery(_c0$b, 1);
@@ -37007,7 +37162,7 @@
37007
37162
  templateUrl: './case-full-access-view.component.html',
37008
37163
  styleUrls: ['./case-full-access-view.component.scss']
37009
37164
  }]
37010
- }], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$3.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i5__namespace.Location }, { type: i0__namespace.ChangeDetectorRef }, { type: SessionStorageService }]; }, { hasPrint: [{
37165
+ }], function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1__namespace$3.MatDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i5__namespace.Location }, { type: i0__namespace.ChangeDetectorRef }, { type: SessionStorageService }, { type: i1__namespace.RpxTranslatePipe }]; }, { hasPrint: [{
37011
37166
  type: i0.Input
37012
37167
  }], hasEventSelector: [{
37013
37168
  type: i0.Input