@hmcts/ccd-case-ui-toolkit 6.16.0-create-qualifying-questions-component → 6.16.0-create-qualifying-questions-continue-raise-a-query

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 (19) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +255 -229
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-questions.component.js +80 -62
  6. package/esm2015/lib/shared/components/palette/query-management/enums/index.js +2 -1
  7. package/esm2015/lib/shared/components/palette/query-management/enums/qualifying-questions-error-message.enum.js +5 -0
  8. package/esm2015/lib/shared/components/palette/query-management/index.js +2 -1
  9. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +215 -194
  10. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  11. package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-questions.component.d.ts +8 -5
  12. package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-questions.component.d.ts.map +1 -1
  13. package/lib/shared/components/palette/query-management/enums/index.d.ts +1 -0
  14. package/lib/shared/components/palette/query-management/enums/index.d.ts.map +1 -1
  15. package/lib/shared/components/palette/query-management/enums/qualifying-questions-error-message.enum.d.ts +4 -0
  16. package/lib/shared/components/palette/query-management/enums/qualifying-questions-error-message.enum.d.ts.map +1 -0
  17. package/lib/shared/components/palette/query-management/index.d.ts +1 -0
  18. package/lib/shared/components/palette/query-management/index.d.ts.map +1 -1
  19. package/package.json +1 -1
@@ -144,7 +144,7 @@
144
144
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(18, 13, ctx_r1.workhours));
145
145
  }
146
146
  }
147
- var _c0$13 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
147
+ var _c0$12 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
148
148
  var _c1$s = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
149
149
  var FooterComponent = /** @class */ (function () {
150
150
  function FooterComponent() {
@@ -154,7 +154,7 @@
154
154
  FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
155
155
  FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$s, 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) {
156
156
  if (rf & 1) {
157
- i0__namespace.ɵɵprojectionDef(_c0$13);
157
+ i0__namespace.ɵɵprojectionDef(_c0$12);
158
158
  i0__namespace.ɵɵelementStart(0, "footer", 0);
159
159
  i0__namespace.ɵɵelementStart(1, "div", 1);
160
160
  i0__namespace.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2);
@@ -240,7 +240,7 @@
240
240
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 1, ctx_r2.title));
241
241
  }
242
242
  }
243
- var _c0$12 = [[["", "headerNavigation", ""]]];
243
+ var _c0$11 = [[["", "headerNavigation", ""]]];
244
244
  var _c1$r = ["[headerNavigation]"];
245
245
  var HeaderBarComponent = /** @class */ (function () {
246
246
  function HeaderBarComponent() {
@@ -254,7 +254,7 @@
254
254
  HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
255
255
  HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$r, decls: 17, vars: 14, 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) {
256
256
  if (rf & 1) {
257
- i0__namespace.ɵɵprojectionDef(_c0$12);
257
+ i0__namespace.ɵɵprojectionDef(_c0$11);
258
258
  i0__namespace.ɵɵelementStart(0, "header", 0);
259
259
  i0__namespace.ɵɵelementStart(1, "div", 1);
260
260
  i0__namespace.ɵɵelementStart(2, "div", 2);
@@ -321,7 +321,7 @@
321
321
  }] });
322
322
  })();
323
323
 
324
- var _c0$11 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
324
+ var _c0$10 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
325
325
  var _c1$q = ["[leftNavLinks]", "[rightNavLinks]"];
326
326
  var NavigationComponent = /** @class */ (function () {
327
327
  function NavigationComponent() {
@@ -331,7 +331,7 @@
331
331
  NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
332
332
  NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$q, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
333
333
  if (rf & 1) {
334
- i0__namespace.ɵɵprojectionDef(_c0$11);
334
+ i0__namespace.ɵɵprojectionDef(_c0$10);
335
335
  i0__namespace.ɵɵelementStart(0, "div");
336
336
  i0__namespace.ɵɵelementStart(1, "nav", 0);
337
337
  i0__namespace.ɵɵprojection(2);
@@ -487,7 +487,7 @@
487
487
  }], null, null);
488
488
  })();
489
489
 
490
- var _c0$10 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
490
+ var _c0$$ = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
491
491
  var _c1$p = ["[topBody]", "[leftBody]", "[rightBody]"];
492
492
  var BodyComponent = /** @class */ (function () {
493
493
  function BodyComponent() {
@@ -497,7 +497,7 @@
497
497
  BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
498
498
  BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$p, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
499
499
  if (rf & 1) {
500
- i0__namespace.ɵɵprojectionDef(_c0$10);
500
+ i0__namespace.ɵɵprojectionDef(_c0$$);
501
501
  i0__namespace.ɵɵelementStart(0, "div", 0);
502
502
  i0__namespace.ɵɵprojection(1);
503
503
  i0__namespace.ɵɵprojection(2, 1);
@@ -902,7 +902,7 @@
902
902
  return typeof state === "function" ? receiver === state : state.has(receiver);
903
903
  }
904
904
 
905
- var _c0$$ = function (a0) { return { "govuk-input--error": a0 }; };
905
+ var _c0$_ = function (a0) { return { "govuk-input--error": a0 }; };
906
906
  function DateInputComponent_div_19_Template(rf, ctx) {
907
907
  if (rf & 1) {
908
908
  var _r8_1 = i0__namespace.ɵɵgetCurrentView();
@@ -923,7 +923,7 @@
923
923
  i0__namespace.ɵɵadvance(1);
924
924
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 6, "Hour"));
925
925
  i0__namespace.ɵɵadvance(2);
926
- i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$$, ctx_r3.isInvalid));
926
+ i0__namespace.ɵɵproperty("id", ctx_r3.hourId())("name", ctx_r3.hourId())("value", ctx_r3.displayHour)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$_, ctx_r3.isInvalid));
927
927
  }
928
928
  }
929
929
  function DateInputComponent_div_20_Template(rf, ctx) {
@@ -946,7 +946,7 @@
946
946
  i0__namespace.ɵɵadvance(1);
947
947
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 6, "Minute"));
948
948
  i0__namespace.ɵɵadvance(2);
949
- i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$$, ctx_r4.isInvalid));
949
+ i0__namespace.ɵɵproperty("id", ctx_r4.minuteId())("name", ctx_r4.minuteId())("value", ctx_r4.displayMinute)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$_, ctx_r4.isInvalid));
950
950
  }
951
951
  }
952
952
  function DateInputComponent_div_21_Template(rf, ctx) {
@@ -969,7 +969,7 @@
969
969
  i0__namespace.ɵɵadvance(1);
970
970
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 6, "Second"));
971
971
  i0__namespace.ɵɵadvance(2);
972
- i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$$, ctx_r5.isInvalid));
972
+ i0__namespace.ɵɵproperty("id", ctx_r5.secondId())("name", ctx_r5.secondId())("value", ctx_r5.displaySecond)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$_, ctx_r5.isInvalid));
973
973
  }
974
974
  }
975
975
  var DateInputComponent = /** @class */ (function () {
@@ -1208,19 +1208,19 @@
1208
1208
  i0__namespace.ɵɵadvance(1);
1209
1209
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 21, "Day"));
1210
1210
  i0__namespace.ɵɵadvance(2);
1211
- i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(27, _c0$$, ctx.isInvalid));
1211
+ i0__namespace.ɵɵproperty("id", ctx.dayId())("name", ctx.dayId())("value", ctx.displayDay)("ngClass", i0__namespace.ɵɵpureFunction1(27, _c0$_, ctx.isInvalid));
1212
1212
  i0__namespace.ɵɵadvance(3);
1213
1213
  i0__namespace.ɵɵproperty("for", ctx.monthId());
1214
1214
  i0__namespace.ɵɵadvance(1);
1215
1215
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(10, 23, "Month"));
1216
1216
  i0__namespace.ɵɵadvance(2);
1217
- i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(29, _c0$$, ctx.isInvalid));
1217
+ i0__namespace.ɵɵproperty("id", ctx.monthId())("name", ctx.monthId())("value", ctx.displayMonth)("ngClass", i0__namespace.ɵɵpureFunction1(29, _c0$_, ctx.isInvalid));
1218
1218
  i0__namespace.ɵɵadvance(3);
1219
1219
  i0__namespace.ɵɵproperty("for", ctx.yearId());
1220
1220
  i0__namespace.ɵɵadvance(1);
1221
1221
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(16, 25, "Year"));
1222
1222
  i0__namespace.ɵɵadvance(2);
1223
- i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(31, _c0$$, ctx.isInvalid));
1223
+ i0__namespace.ɵɵproperty("id", ctx.yearId())("name", ctx.yearId())("value", ctx.displayYear)("ngClass", i0__namespace.ɵɵpureFunction1(31, _c0$_, ctx.isInvalid));
1224
1224
  i0__namespace.ɵɵadvance(2);
1225
1225
  i0__namespace.ɵɵproperty("ngIf", ctx.isDateTime);
1226
1226
  i0__namespace.ɵɵadvance(1);
@@ -1301,7 +1301,7 @@
1301
1301
  i0__namespace.ɵɵelementContainerEnd();
1302
1302
  }
1303
1303
  }
1304
- var _c0$_ = ["*"];
1304
+ var _c0$Z = ["*"];
1305
1305
  exports.AlertMessageType = void 0;
1306
1306
  (function (AlertMessageType) {
1307
1307
  AlertMessageType["WARNING"] = "warning";
@@ -1322,7 +1322,7 @@
1322
1322
  AlertComponent.TYPE_ERROR = 'error';
1323
1323
  AlertComponent.TYPE_INFORMATION = 'information';
1324
1324
  AlertComponent.ɵfac = function AlertComponent_Factory(t) { return new (t || AlertComponent)(); };
1325
- AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$_, decls: 11, vars: 12, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) {
1325
+ AlertComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AlertComponent, selectors: [["cut-alert"]], inputs: { type: "type", showIcon: "showIcon" }, ngContentSelectors: _c0$Z, decls: 11, vars: 12, consts: [[1, "hmcts-banner"], [3, "ngSwitch"], [4, "ngSwitchCase"], [1, "hmcts-banner__message"], [1, "hmcts-banner__assistive"], ["fill", "currentColor", "role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 25 25", "height", "25", "width", "25", 1, "hmcts-banner__icon"], ["d", "M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"], ["d", "M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"], ["d", "M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z"]], template: function AlertComponent_Template(rf, ctx) {
1326
1326
  if (rf & 1) {
1327
1327
  i0__namespace.ɵɵprojectionDef();
1328
1328
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -1604,7 +1604,7 @@
1604
1604
  }] });
1605
1605
  })();
1606
1606
 
1607
- var _c0$Z = function (a0) { return { "js-hidden": a0 }; };
1607
+ var _c0$Y = function (a0) { return { "js-hidden": a0 }; };
1608
1608
  var _c1$o = ["*"];
1609
1609
  var TabComponent = /** @class */ (function () {
1610
1610
  function TabComponent() {
@@ -1620,7 +1620,7 @@
1620
1620
  i0__namespace.ɵɵelementEnd();
1621
1621
  }
1622
1622
  if (rf & 2) {
1623
- i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$Z, !ctx.selected));
1623
+ i0__namespace.ɵɵproperty("id", ctx.id)("ngClass", i0__namespace.ɵɵpureFunction1(3, _c0$Y, !ctx.selected));
1624
1624
  i0__namespace.ɵɵattribute("aria-hidden", !ctx.selected);
1625
1625
  }
1626
1626
  }, directives: [i5__namespace.NgClass], styles: [".tabs-toggle[_ngcontent-%COMP%]{display:block;padding:10px 15px 3px;margin-bottom:8px}.tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{color:#0b0c0c;text-decoration:none;border-bottom:none}.tabs-toggle[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#005ea5}@media (max-width:640px){.tabs-list[_ngcontent-%COMP%]{border-bottom:1px solid #bfc1c3;margin-left:-15px;margin-right:-15px}.tabs-toggle[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3}.tabs-toggle[_ngcontent-%COMP%]:focus{color:#0b0c0c;outline:none}}@media (min-width:641px){.tabs-panel[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3;clear:both;overflow:hidden}.tabs-list[_ngcontent-%COMP%]{float:left}.tabs-list-item[_ngcontent-%COMP%]{float:left;position:relative;bottom:-1px;padding-top:10px}.tabs-toggle[_ngcontent-%COMP%]{background-color:#dee0e2;border:1px solid transparent;float:left;margin:0 6px 0 0;text-decoration:none}.tabs-toggle[_ngcontent-%COMP%]:visited{color:#005ea5}.tabs-toggle-selected[_ngcontent-%COMP%], .tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{background-color:#fff;border-bottom:0;border-color:#bfc1c3;padding-bottom:11px;margin-bottom:0;color:#0b0c0c}}"] });
@@ -1643,7 +1643,7 @@
1643
1643
  }] });
1644
1644
  })();
1645
1645
 
1646
- var _c0$Y = ["tab"];
1646
+ var _c0$X = ["tab"];
1647
1647
  var _c1$n = function () { return ["."]; };
1648
1648
  var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
1649
1649
  function TabsComponent_li_2_Template(rf, ctx) {
@@ -1699,7 +1699,7 @@
1699
1699
  }
1700
1700
  }, viewQuery: function TabsComponent_Query(rf, ctx) {
1701
1701
  if (rf & 1) {
1702
- i0__namespace.ɵɵviewQuery(_c0$Y, 1);
1702
+ i0__namespace.ɵɵviewQuery(_c0$X, 1);
1703
1703
  }
1704
1704
  if (rf & 2) {
1705
1705
  var _t = void 0;
@@ -1780,7 +1780,7 @@
1780
1780
  }], null, null);
1781
1781
  })();
1782
1782
 
1783
- var _c0$X = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1783
+ var _c0$W = function (a0, a1) { return { caseLocked: a0, someoneViewing: a1 }; };
1784
1784
  var ActivityBannerComponent = /** @class */ (function () {
1785
1785
  function ActivityBannerComponent() {
1786
1786
  }
@@ -1803,7 +1803,7 @@
1803
1803
  i0__namespace.ɵɵelementEnd();
1804
1804
  }
1805
1805
  if (rf & 2) {
1806
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(8, _c0$X, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1806
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(8, _c0$W, ctx.bannerType === "editor", ctx.bannerType === "viewer"));
1807
1807
  i0__namespace.ɵɵadvance(2);
1808
1808
  i0__namespace.ɵɵpropertyInterpolate("alt", i0__namespace.ɵɵpipeBind1(3, 4, ctx.description));
1809
1809
  i0__namespace.ɵɵpropertyInterpolate("src", ctx.imageLink, i0__namespace.ɵɵsanitizeUrl);
@@ -11185,7 +11185,7 @@
11185
11185
  return AddressOption;
11186
11186
  }());
11187
11187
 
11188
- var _c0$W = ["writeComplexFieldComponent"];
11188
+ var _c0$V = ["writeComplexFieldComponent"];
11189
11189
  function WriteAddressFieldComponent_div_1_div_5_span_5_Template(rf, ctx) {
11190
11190
  if (rf & 1) {
11191
11191
  i0__namespace.ɵɵelementStart(0, "span", 14);
@@ -11420,7 +11420,7 @@
11420
11420
  WriteAddressFieldComponent.ɵfac = function WriteAddressFieldComponent_Factory(t) { return new (t || WriteAddressFieldComponent)(i0__namespace.ɵɵdirectiveInject(AddressesService), i0__namespace.ɵɵdirectiveInject(IsCompoundPipe)); };
11421
11421
  WriteAddressFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["ccd-write-address-field"]], viewQuery: function WriteAddressFieldComponent_Query(rf, ctx) {
11422
11422
  if (rf & 1) {
11423
- i0__namespace.ɵɵviewQuery(_c0$W, 1);
11423
+ i0__namespace.ɵɵviewQuery(_c0$V, 1);
11424
11424
  i0__namespace.ɵɵviewQuery(FocusElementDirective, 1);
11425
11425
  }
11426
11426
  if (rf & 2) {
@@ -12194,7 +12194,7 @@
12194
12194
  i0__namespace.ɵɵproperty("formGroup", ctx_r11.caseFlagParentFormGroup)("defaultStatus", ctx_r11.flagType.defaultStatus);
12195
12195
  }
12196
12196
  }
12197
- var _c0$V = function (a0) { return { "form-group-error": a0 }; };
12197
+ var _c0$U = function (a0) { return { "form-group-error": a0 }; };
12198
12198
  function WriteCaseFlagFieldComponent_div_1_Template(rf, ctx) {
12199
12199
  if (rf & 1) {
12200
12200
  i0__namespace.ɵɵelementStart(0, "div", 8);
@@ -12217,7 +12217,7 @@
12217
12217
  i0__namespace.ɵɵadvance(1);
12218
12218
  i0__namespace.ɵɵproperty("ngSwitch", ctx_r1.fieldState);
12219
12219
  i0__namespace.ɵɵadvance(1);
12220
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$V, ctx_r1.errorMessages.length > 0));
12220
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$U, ctx_r1.errorMessages.length > 0));
12221
12221
  i0__namespace.ɵɵadvance(1);
12222
12222
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 9, ctx_r1.createFlagCaption), " ");
12223
12223
  i0__namespace.ɵɵadvance(2);
@@ -12794,7 +12794,7 @@
12794
12794
  }], null, null);
12795
12795
  })();
12796
12796
 
12797
- var _c0$U = ["writeComplexFieldComponent"];
12797
+ var _c0$T = ["writeComplexFieldComponent"];
12798
12798
  function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) {
12799
12799
  if (rf & 1) {
12800
12800
  i0__namespace.ɵɵelementStart(0, "span", 6);
@@ -12902,7 +12902,7 @@
12902
12902
  WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return ɵWriteCaseLinkFieldComponent_BaseFactory(t || WriteCaseLinkFieldComponent); };
12903
12903
  WriteCaseLinkFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseLinkFieldComponent, selectors: [["ccd-write-case-link-field"]], viewQuery: function WriteCaseLinkFieldComponent_Query(rf, ctx) {
12904
12904
  if (rf & 1) {
12905
- i0__namespace.ɵɵviewQuery(_c0$U, 1);
12905
+ i0__namespace.ɵɵviewQuery(_c0$T, 1);
12906
12906
  }
12907
12907
  if (rf & 2) {
12908
12908
  var _t = void 0;
@@ -12947,7 +12947,7 @@
12947
12947
  }] });
12948
12948
  })();
12949
12949
 
12950
- var _c0$T = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
12950
+ var _c0$S = function (a0, a1, a2, a3, a4, a5) { return { id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 }; };
12951
12951
  function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) {
12952
12952
  if (rf & 1) {
12953
12953
  i0__namespace.ɵɵelementStart(0, "tbody");
@@ -12962,7 +12962,7 @@
12962
12962
  if (rf & 2) {
12963
12963
  var ctx_r1 = i0__namespace.ɵɵnextContext(2);
12964
12964
  i0__namespace.ɵɵadvance(4);
12965
- i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$T, 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);
12965
+ i0__namespace.ɵɵproperty("caseField", i0__namespace.ɵɵpureFunction6(3, _c0$S, 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);
12966
12966
  }
12967
12967
  }
12968
12968
  var _c1$k = function (a0, a1, a2, a3, a4) { return { id: a0, label: a1, field_type: a2, value: a3, hidden: a4 }; };
@@ -13127,7 +13127,7 @@
13127
13127
  }], function () { return [{ type: i1__namespace$3.MatDialogRef }]; }, null);
13128
13128
  })();
13129
13129
 
13130
- var _c0$S = ["collectionItem"];
13130
+ var _c0$R = ["collectionItem"];
13131
13131
  function WriteCollectionFieldComponent_h2_9_span_1_Template(rf, ctx) {
13132
13132
  if (rf & 1) {
13133
13133
  i0__namespace.ɵɵelementStart(0, "span", 9);
@@ -13558,7 +13558,7 @@
13558
13558
  WriteCollectionFieldComponent.ɵfac = function WriteCollectionFieldComponent_Factory(t) { return new (t || WriteCollectionFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(i2__namespace.ScrollToService), i0__namespace.ɵɵdirectiveInject(ProfileNotifier), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
13559
13559
  WriteCollectionFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCollectionFieldComponent, selectors: [["ccd-write-collection-field"]], viewQuery: function WriteCollectionFieldComponent_Query(rf, ctx) {
13560
13560
  if (rf & 1) {
13561
- i0__namespace.ɵɵviewQuery(_c0$S, 1);
13561
+ i0__namespace.ɵɵviewQuery(_c0$R, 1);
13562
13562
  }
13563
13563
  if (rf & 2) {
13564
13564
  var _t = void 0;
@@ -14271,7 +14271,7 @@
14271
14271
  }], null, null);
14272
14272
  })();
14273
14273
 
14274
- var _c0$R = ["fileInput"];
14274
+ var _c0$Q = ["fileInput"];
14275
14275
  function WriteDocumentFieldComponent_span_7_Template(rf, ctx) {
14276
14276
  if (rf & 1) {
14277
14277
  i0__namespace.ɵɵelementStart(0, "span", 12);
@@ -14567,7 +14567,7 @@
14567
14567
  WriteDocumentFieldComponent.ɵfac = function WriteDocumentFieldComponent_Factory(t) { return new (t || WriteDocumentFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(CaseNotifier), i0__namespace.ɵɵdirectiveInject(DocumentManagementService), i0__namespace.ɵɵdirectiveInject(i1__namespace$3.MatDialog), i0__namespace.ɵɵdirectiveInject(FileUploadStateService)); };
14568
14568
  WriteDocumentFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) {
14569
14569
  if (rf & 1) {
14570
- i0__namespace.ɵɵviewQuery(_c0$R, 1);
14570
+ i0__namespace.ɵɵviewQuery(_c0$Q, 1);
14571
14571
  }
14572
14572
  if (rf & 2) {
14573
14573
  var _t = void 0;
@@ -14781,7 +14781,7 @@
14781
14781
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 2, type_r5.label));
14782
14782
  }
14783
14783
  }
14784
- var _c0$Q = function (a0) { return { "form-group-error": a0 }; };
14784
+ var _c0$P = function (a0) { return { "form-group-error": a0 }; };
14785
14785
  var WriteDynamicListFieldComponent = /** @class */ (function (_super) {
14786
14786
  __extends(WriteDynamicListFieldComponent, _super);
14787
14787
  function WriteDynamicListFieldComponent() {
@@ -14831,7 +14831,7 @@
14831
14831
  i0__namespace.ɵɵelementEnd();
14832
14832
  }
14833
14833
  if (rf & 2) {
14834
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(13, _c0$Q, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
14834
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(13, _c0$P, !ctx.dynamicListFormControl.valid && (ctx.dynamicListFormControl.dirty || ctx.dynamicListFormControl.touched)));
14835
14835
  i0__namespace.ɵɵadvance(1);
14836
14836
  i0__namespace.ɵɵproperty("for", ctx.id());
14837
14837
  i0__namespace.ɵɵadvance(1);
@@ -15009,7 +15009,7 @@
15009
15009
  i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
15010
15010
  }
15011
15011
  }
15012
- var _c0$P = function (a0) { return { "error": a0 }; };
15012
+ var _c0$O = function (a0) { return { "error": a0 }; };
15013
15013
  var WriteDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
15014
15014
  __extends(WriteDynamicMultiSelectListFieldComponent, _super);
15015
15015
  function WriteDynamicMultiSelectListFieldComponent() {
@@ -15092,7 +15092,7 @@
15092
15092
  i0__namespace.ɵɵelementEnd();
15093
15093
  }
15094
15094
  if (rf & 2) {
15095
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$P, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
15095
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$O, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
15096
15096
  i0__namespace.ɵɵadvance(3);
15097
15097
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
15098
15098
  i0__namespace.ɵɵadvance(1);
@@ -15243,7 +15243,7 @@
15243
15243
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind1(3, 3, ctx_r3.dynamicRadioListControl.errors)));
15244
15244
  }
15245
15245
  }
15246
- var _c0$O = function (a0) { return { selected: a0 }; };
15246
+ var _c0$N = function (a0) { return { selected: a0 }; };
15247
15247
  function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) {
15248
15248
  if (rf & 1) {
15249
15249
  i0__namespace.ɵɵelementStart(0, "div", 10);
@@ -15256,7 +15256,7 @@
15256
15256
  if (rf & 2) {
15257
15257
  var radioButton_r5 = ctx.$implicit;
15258
15258
  var ctx_r4 = i0__namespace.ɵɵnextContext();
15259
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$O, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
15259
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(7, _c0$N, ctx_r4.dynamicRadioListControl.value === radioButton_r5.code));
15260
15260
  i0__namespace.ɵɵadvance(1);
15261
15261
  i0__namespace.ɵɵproperty("id", ctx_r4.createElementId(radioButton_r5.code))("name", ctx_r4.createElementId(radioButton_r5.code))("formControl", ctx_r4.dynamicRadioListControl)("value", radioButton_r5.code);
15262
15262
  i0__namespace.ɵɵadvance(1);
@@ -15423,7 +15423,7 @@
15423
15423
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.emailControl.errors, ctx_r2.caseField.label)));
15424
15424
  }
15425
15425
  }
15426
- var _c0$N = function (a0) { return { "form-group-error": a0 }; };
15426
+ var _c0$M = function (a0) { return { "form-group-error": a0 }; };
15427
15427
  var _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
15428
15428
  var WriteEmailFieldComponent = /** @class */ (function (_super) {
15429
15429
  __extends(WriteEmailFieldComponent, _super);
@@ -15448,7 +15448,7 @@
15448
15448
  i0__namespace.ɵɵelementEnd();
15449
15449
  }
15450
15450
  if (rf & 2) {
15451
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$N, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
15451
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$M, !ctx.emailControl.valid && (ctx.emailControl.dirty || ctx.emailControl.touched)));
15452
15452
  i0__namespace.ɵɵadvance(1);
15453
15453
  i0__namespace.ɵɵproperty("for", ctx.id());
15454
15454
  i0__namespace.ɵɵadvance(1);
@@ -15559,7 +15559,7 @@
15559
15559
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 2, type_r4.label));
15560
15560
  }
15561
15561
  }
15562
- var _c0$M = function (a0) { return { "form-group-error": a0 }; };
15562
+ var _c0$L = function (a0) { return { "form-group-error": a0 }; };
15563
15563
  var WriteFixedListFieldComponent = /** @class */ (function (_super) {
15564
15564
  __extends(WriteFixedListFieldComponent, _super);
15565
15565
  function WriteFixedListFieldComponent() {
@@ -15608,7 +15608,7 @@
15608
15608
  i0__namespace.ɵɵelementEnd();
15609
15609
  }
15610
15610
  if (rf & 2) {
15611
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$M, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
15611
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$L, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
15612
15612
  i0__namespace.ɵɵadvance(1);
15613
15613
  i0__namespace.ɵɵproperty("for", ctx.id());
15614
15614
  i0__namespace.ɵɵadvance(1);
@@ -15730,7 +15730,7 @@
15730
15730
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label)));
15731
15731
  }
15732
15732
  }
15733
- var _c0$L = function (a0) { return { selected: a0 }; };
15733
+ var _c0$K = function (a0) { return { selected: a0 }; };
15734
15734
  function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) {
15735
15735
  if (rf & 1) {
15736
15736
  i0__namespace.ɵɵelementStart(0, "div", 9);
@@ -15744,7 +15744,7 @@
15744
15744
  if (rf & 2) {
15745
15745
  var radioButton_r4 = ctx.$implicit;
15746
15746
  var ctx_r3 = i0__namespace.ɵɵnextContext();
15747
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$L, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
15747
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$K, ctx_r3.fixedRadioListControl.value === radioButton_r4.code));
15748
15748
  i0__namespace.ɵɵadvance(1);
15749
15749
  i0__namespace.ɵɵproperty("id", ctx_r3.id() + "-" + radioButton_r4.code)("name", ctx_r3.id())("formControl", ctx_r3.fixedRadioListControl)("value", radioButton_r4.code);
15750
15750
  i0__namespace.ɵɵadvance(1);
@@ -15914,7 +15914,7 @@
15914
15914
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.caseField.hint_text, " ");
15915
15915
  }
15916
15916
  }
15917
- var _c0$K = function (a0) { return { "hide-autocomplete": a0 }; };
15917
+ var _c0$J = function (a0) { return { "hide-autocomplete": a0 }; };
15918
15918
  function WriteJudicialUserFieldComponent_mat_option_7_Template(rf, ctx) {
15919
15919
  if (rf & 1) {
15920
15920
  var _r7_1 = i0__namespace.ɵɵgetCurrentView();
@@ -15926,7 +15926,7 @@
15926
15926
  if (rf & 2) {
15927
15927
  var judicialUser_r5 = ctx.$implicit;
15928
15928
  var ctx_r3 = i0__namespace.ɵɵnextContext();
15929
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$K, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
15929
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$J, !ctx_r3.showAutocomplete))("value", judicialUser_r5.idamId);
15930
15930
  i0__namespace.ɵɵadvance(1);
15931
15931
  i0__namespace.ɵɵtextInterpolate2(" ", judicialUser_r5.fullName, " (", judicialUser_r5.emailId, ") ");
15932
15932
  }
@@ -16740,7 +16740,7 @@
16740
16740
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r13.caseReasonCommentsError, " ");
16741
16741
  }
16742
16742
  }
16743
- var _c0$J = function (a0) { return { "govuk-form-group--error": a0 }; };
16743
+ var _c0$I = function (a0) { return { "govuk-form-group--error": a0 }; };
16744
16744
  function LinkCasesComponent_div_8_div_14_Template(rf, ctx) {
16745
16745
  if (rf & 1) {
16746
16746
  i0__namespace.ɵɵelementStart(0, "div", 35);
@@ -16758,7 +16758,7 @@
16758
16758
  }
16759
16759
  if (rf & 2) {
16760
16760
  var ctx_r7 = i0__namespace.ɵɵnextContext(2);
16761
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0$J, !!ctx_r7.caseReasonCommentsError));
16761
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0$I, !!ctx_r7.caseReasonCommentsError));
16762
16762
  i0__namespace.ɵɵadvance(3);
16763
16763
  i0__namespace.ɵɵproperty("ngIf", ctx_r7.caseReasonCommentsError);
16764
16764
  }
@@ -16815,11 +16815,11 @@
16815
16815
  var ctx_r0 = i0__namespace.ɵɵnextContext();
16816
16816
  i0__namespace.ɵɵproperty("formGroup", ctx_r0.linkCaseForm);
16817
16817
  i0__namespace.ɵɵadvance(1);
16818
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$J, !!ctx_r0.caseNumberError));
16818
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$I, !!ctx_r0.caseNumberError));
16819
16819
  i0__namespace.ɵɵadvance(3);
16820
16820
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseNumberError);
16821
16821
  i0__namespace.ɵɵadvance(2);
16822
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$J, !!ctx_r0.caseReasonError));
16822
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$I, !!ctx_r0.caseReasonError));
16823
16823
  i0__namespace.ɵɵadvance(5);
16824
16824
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseReasonError);
16825
16825
  i0__namespace.ɵɵadvance(2);
@@ -17253,7 +17253,7 @@
17253
17253
  i0__namespace.ɵɵadvance(4);
17254
17254
  i0__namespace.ɵɵproperty("ngIf", ctx.linkCaseForm);
17255
17255
  i0__namespace.ɵɵadvance(4);
17256
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$J, !!ctx.noSelectedCaseError));
17256
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(9, _c0$I, !!ctx.noSelectedCaseError));
17257
17257
  i0__namespace.ɵɵadvance(1);
17258
17258
  i0__namespace.ɵɵproperty("ngIf", ctx.noSelectedCaseError);
17259
17259
  i0__namespace.ɵɵadvance(18);
@@ -17962,7 +17962,7 @@
17962
17962
  i0__namespace.ɵɵtextInterpolate2(" ", case_r4.caseName, " ", i0__namespace.ɵɵpipeBind1(4, 6, case_r4.caseReference), " ");
17963
17963
  }
17964
17964
  }
17965
- var _c0$I = function (a0) { return { "govuk-form-group--error": a0 }; };
17965
+ var _c0$H = function (a0) { return { "govuk-form-group--error": a0 }; };
17966
17966
  function UnLinkCasesComponent_div_0_div_4_Template(rf, ctx) {
17967
17967
  if (rf & 1) {
17968
17968
  i0__namespace.ɵɵelementStart(0, "div", 7);
@@ -17974,7 +17974,7 @@
17974
17974
  }
17975
17975
  if (rf & 2) {
17976
17976
  var ctx_r1 = i0__namespace.ɵɵnextContext(2);
17977
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$I, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
17977
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c0$H, ctx_r1.unlinkErrorMessage))("formGroup", ctx_r1.unlinkCaseForm);
17978
17978
  i0__namespace.ɵɵadvance(1);
17979
17979
  i0__namespace.ɵɵproperty("ngIf", ctx_r1.unlinkErrorMessage);
17980
17980
  i0__namespace.ɵɵadvance(2);
@@ -18863,7 +18863,7 @@
18863
18863
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label)));
18864
18864
  }
18865
18865
  }
18866
- var _c0$H = function (a0) { return { "form-group-error": a0 }; };
18866
+ var _c0$G = function (a0) { return { "form-group-error": a0 }; };
18867
18867
  var WriteMoneyGbpFieldComponent = /** @class */ (function (_super) {
18868
18868
  __extends(WriteMoneyGbpFieldComponent, _super);
18869
18869
  function WriteMoneyGbpFieldComponent() {
@@ -18893,7 +18893,7 @@
18893
18893
  i0__namespace.ɵɵelementEnd();
18894
18894
  }
18895
18895
  if (rf & 2) {
18896
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$H, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
18896
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$G, !ctx.moneyGbpControl.valid && (ctx.moneyGbpControl.dirty || ctx.moneyGbpControl.touched)));
18897
18897
  i0__namespace.ɵɵadvance(1);
18898
18898
  i0__namespace.ɵɵproperty("for", ctx.id());
18899
18899
  i0__namespace.ɵɵadvance(1);
@@ -19048,7 +19048,7 @@
19048
19048
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5, 6, checkbox_r4.label));
19049
19049
  }
19050
19050
  }
19051
- var _c0$G = function (a0) { return { "error": a0 }; };
19051
+ var _c0$F = function (a0) { return { "error": a0 }; };
19052
19052
  var WriteMultiSelectListFieldComponent = /** @class */ (function (_super) {
19053
19053
  __extends(WriteMultiSelectListFieldComponent, _super);
19054
19054
  function WriteMultiSelectListFieldComponent() {
@@ -19112,7 +19112,7 @@
19112
19112
  i0__namespace.ɵɵelementEnd();
19113
19113
  }
19114
19114
  if (rf & 2) {
19115
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$G, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
19115
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c0$F, !ctx.checkboxes.valid && (ctx.checkboxes.dirty || ctx.checkboxes.touched)))("id", ctx.id());
19116
19116
  i0__namespace.ɵɵadvance(3);
19117
19117
  i0__namespace.ɵɵproperty("ngIf", ctx.caseField.label);
19118
19118
  i0__namespace.ɵɵadvance(1);
@@ -19206,7 +19206,7 @@
19206
19206
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.numberControl.errors, ctx_r2.caseField.label)));
19207
19207
  }
19208
19208
  }
19209
- var _c0$F = function (a0) { return { "form-group-error": a0 }; };
19209
+ var _c0$E = function (a0) { return { "form-group-error": a0 }; };
19210
19210
  var _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
19211
19211
  var WriteNumberFieldComponent = /** @class */ (function (_super) {
19212
19212
  __extends(WriteNumberFieldComponent, _super);
@@ -19231,7 +19231,7 @@
19231
19231
  i0__namespace.ɵɵelementEnd();
19232
19232
  }
19233
19233
  if (rf & 2) {
19234
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$F, !ctx.numberControl.valid && ctx.numberControl.dirty));
19234
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$E, !ctx.numberControl.valid && ctx.numberControl.dirty));
19235
19235
  i0__namespace.ɵɵadvance(1);
19236
19236
  i0__namespace.ɵɵproperty("for", ctx.id());
19237
19237
  i0__namespace.ɵɵadvance(1);
@@ -19570,7 +19570,7 @@
19570
19570
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(3, 1, "No results found."), " ");
19571
19571
  }
19572
19572
  }
19573
- var _c0$E = function (a0) { return { "scroll-container ": a0 }; };
19573
+ var _c0$D = function (a0) { return { "scroll-container ": a0 }; };
19574
19574
  function WriteOrganisationFieldComponent_fieldset_3_div_17_Template(rf, ctx) {
19575
19575
  if (rf & 1) {
19576
19576
  i0__namespace.ɵɵelementStart(0, "div", 26);
@@ -19586,7 +19586,7 @@
19586
19586
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
19587
19587
  var tmp_0_0 = null;
19588
19588
  var tmp_2_0 = null;
19589
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$E, ((tmp_0_0 = i0__namespace.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
19589
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c0$D, ((tmp_0_0 = i0__namespace.ɵɵpipeBind1(1, 3, ctx_r2.simpleOrganisations$)) == null ? null : tmp_0_0.length) > 10));
19590
19590
  i0__namespace.ɵɵadvance(2);
19591
19591
  i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r2.simpleOrganisations$));
19592
19592
  i0__namespace.ɵɵadvance(2);
@@ -20084,7 +20084,7 @@
20084
20084
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label)), " ");
20085
20085
  }
20086
20086
  }
20087
- var _c0$D = function (a0) { return { "form-group-error": a0 }; };
20087
+ var _c0$C = function (a0) { return { "form-group-error": a0 }; };
20088
20088
  var _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
20089
20089
  var WritePhoneUKFieldComponent = /** @class */ (function (_super) {
20090
20090
  __extends(WritePhoneUKFieldComponent, _super);
@@ -20109,7 +20109,7 @@
20109
20109
  i0__namespace.ɵɵelementEnd();
20110
20110
  }
20111
20111
  if (rf & 2) {
20112
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$D, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
20112
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c0$C, !ctx.phoneUkControl.valid && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched)));
20113
20113
  i0__namespace.ɵɵadvance(1);
20114
20114
  i0__namespace.ɵɵproperty("for", ctx.id());
20115
20115
  i0__namespace.ɵɵadvance(1);
@@ -20278,92 +20278,222 @@
20278
20278
  display_context_parameter: '#COLLECTION(allowInsert,allowUpdate)'
20279
20279
  });
20280
20280
 
20281
- function QualifyingQuestionsComponent_span_6_Template(rf, ctx) {
20281
+ exports.RaiseQueryErrorMessage = void 0;
20282
+ (function (RaiseQueryErrorMessage) {
20283
+ RaiseQueryErrorMessage["FULL_NAME"] = "Enter a full name";
20284
+ RaiseQueryErrorMessage["QUERY_SUBJECT"] = "Enter a query subject";
20285
+ RaiseQueryErrorMessage["QUERY_BODY"] = "Enter query details";
20286
+ RaiseQueryErrorMessage["QUERY_HEARING_RELATED"] = "Select whether the query is hearing related or not";
20287
+ RaiseQueryErrorMessage["QUERY_HEARING_DATE"] = "Enter a valid date";
20288
+ })(exports.RaiseQueryErrorMessage || (exports.RaiseQueryErrorMessage = {}));
20289
+
20290
+ exports.QualifyingQuestionsErrorMessage = void 0;
20291
+ (function (QualifyingQuestionsErrorMessage) {
20292
+ QualifyingQuestionsErrorMessage["SELECT_AN_OPTION"] = "Select an option";
20293
+ })(exports.QualifyingQuestionsErrorMessage || (exports.QualifyingQuestionsErrorMessage = {}));
20294
+
20295
+ var QueryListItem = /** @class */ (function () {
20296
+ function QueryListItem() {
20297
+ this.children = [];
20298
+ }
20299
+ Object.defineProperty(QueryListItem.prototype, "lastSubmittedMessage", {
20300
+ get: function () {
20301
+ var getLastSubmittedMessage = function (item) {
20302
+ var e_1, _b;
20303
+ var lastSubmittedMessage = item;
20304
+ if (item.children && item.children.length > 0) {
20305
+ try {
20306
+ for (var _c = __values(item.children), _d = _c.next(); !_d.done; _d = _c.next()) {
20307
+ var child = _d.value;
20308
+ var childLastSubmittedMessage = getLastSubmittedMessage(child);
20309
+ if (childLastSubmittedMessage.createdOn > lastSubmittedMessage.createdOn) {
20310
+ lastSubmittedMessage = childLastSubmittedMessage;
20311
+ }
20312
+ }
20313
+ }
20314
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
20315
+ finally {
20316
+ try {
20317
+ if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
20318
+ }
20319
+ finally { if (e_1) throw e_1.error; }
20320
+ }
20321
+ }
20322
+ return lastSubmittedMessage;
20323
+ };
20324
+ return getLastSubmittedMessage(this);
20325
+ },
20326
+ enumerable: false,
20327
+ configurable: true
20328
+ });
20329
+ Object.defineProperty(QueryListItem.prototype, "lastSubmittedBy", {
20330
+ get: function () {
20331
+ return this.lastSubmittedMessage.name;
20332
+ },
20333
+ enumerable: false,
20334
+ configurable: true
20335
+ });
20336
+ Object.defineProperty(QueryListItem.prototype, "lastSubmittedDate", {
20337
+ get: function () {
20338
+ return new Date(this.lastSubmittedMessage.createdOn);
20339
+ },
20340
+ enumerable: false,
20341
+ configurable: true
20342
+ });
20343
+ Object.defineProperty(QueryListItem.prototype, "lastResponseBy", {
20344
+ get: function () {
20345
+ var _a;
20346
+ return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.lastSubmittedMessage.name : '';
20347
+ },
20348
+ enumerable: false,
20349
+ configurable: true
20350
+ });
20351
+ Object.defineProperty(QueryListItem.prototype, "lastResponseDate", {
20352
+ get: function () {
20353
+ var _a;
20354
+ return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? new Date(this.lastSubmittedMessage.createdOn) : null;
20355
+ },
20356
+ enumerable: false,
20357
+ configurable: true
20358
+ });
20359
+ return QueryListItem;
20360
+ }());
20361
+
20362
+ var QueryListData = /** @class */ (function () {
20363
+ function QueryListData(partyMessagesGroup) {
20364
+ var _this = this;
20365
+ this.partyName = partyMessagesGroup.partyName;
20366
+ this.roleOnCase = partyMessagesGroup.roleOnCase;
20367
+ // get the parent messages (messages without parentId) and add the children to them
20368
+ var parentMessages = partyMessagesGroup.partyMessages.filter(function (message) { return !message.parentId; });
20369
+ this.partyMessages = parentMessages.map(function (message) { return _this.buildQueryListItem(message, partyMessagesGroup.partyMessages); });
20370
+ }
20371
+ QueryListData.prototype.buildQueryListItem = function (message, allMessages) {
20372
+ var _this = this;
20373
+ var queryListItem = new QueryListItem();
20374
+ Object.assign(queryListItem, Object.assign(Object.assign({}, message), { children: allMessages
20375
+ .filter(function (childMessage) { return childMessage.parentId === message.id; })
20376
+ .map(function (childMessage) { return _this.buildQueryListItem(childMessage, allMessages); }) }));
20377
+ return queryListItem;
20378
+ };
20379
+ return QueryListData;
20380
+ }());
20381
+
20382
+ exports.QueryItemType = void 0;
20383
+ (function (QueryItemType) {
20384
+ QueryItemType["NEW"] = "New";
20385
+ QueryItemType["RESPOND"] = "Respond";
20386
+ QueryItemType["FOLLOWUP"] = "Followup";
20387
+ QueryItemType["NONE"] = "none";
20388
+ })(exports.QueryItemType || (exports.QueryItemType = {}));
20389
+
20390
+ function QualifyingQuestionsComponent_ng_container_0_ng_container_7_Template(rf, ctx) {
20282
20391
  if (rf & 1) {
20283
- i0__namespace.ɵɵelementStart(0, "span", 10);
20284
- i0__namespace.ɵɵelementStart(1, "span", 11);
20285
- i0__namespace.ɵɵtext(2, "Error:");
20392
+ i0__namespace.ɵɵelementContainerStart(0);
20393
+ i0__namespace.ɵɵelementStart(1, "p", 10);
20394
+ i0__namespace.ɵɵelementStart(2, "span", 11);
20395
+ i0__namespace.ɵɵtext(3, "Error: ");
20286
20396
  i0__namespace.ɵɵelementEnd();
20287
- i0__namespace.ɵɵtext(3);
20397
+ i0__namespace.ɵɵtext(4);
20398
+ i0__namespace.ɵɵpipe(5, "rpxTranslate");
20288
20399
  i0__namespace.ɵɵelementEnd();
20400
+ i0__namespace.ɵɵelementContainerEnd();
20289
20401
  }
20290
20402
  if (rf & 2) {
20291
- var ctx_r0 = i0__namespace.ɵɵnextContext();
20292
- i0__namespace.ɵɵadvance(3);
20293
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.qualifyingQuestionSelectionError, " ");
20403
+ var ctx_r1 = i0__namespace.ɵɵnextContext(2);
20404
+ i0__namespace.ɵɵadvance(4);
20405
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 1, ctx_r1.qualifyingQuestionsErrorMessage.SELECT_AN_OPTION), " ");
20294
20406
  }
20295
20407
  }
20296
- function QualifyingQuestionsComponent_div_9_Template(rf, ctx) {
20408
+ function QualifyingQuestionsComponent_ng_container_0_div_9_Template(rf, ctx) {
20297
20409
  if (rf & 1) {
20298
20410
  i0__namespace.ɵɵelementStart(0, "div", 7);
20299
- i0__namespace.ɵɵelement(1, "input", 12);
20300
- i0__namespace.ɵɵelementStart(2, "label", 13);
20411
+ i0__namespace.ɵɵelement(1, "input", 8);
20412
+ i0__namespace.ɵɵelementStart(2, "label", 9);
20301
20413
  i0__namespace.ɵɵtext(3);
20302
20414
  i0__namespace.ɵɵelementEnd();
20303
20415
  i0__namespace.ɵɵelementEnd();
20304
20416
  }
20305
20417
  if (rf & 2) {
20306
- var qualifyingQuestion_r2 = ctx.$implicit;
20418
+ var qualifyingQuestion_r3 = ctx.$implicit;
20419
+ var ctx_r2 = i0__namespace.ɵɵnextContext(2);
20420
+ i0__namespace.ɵɵadvance(1);
20421
+ i0__namespace.ɵɵpropertyInterpolate("id", qualifyingQuestion_r3.name);
20422
+ i0__namespace.ɵɵproperty("formControl", ctx_r2.qualifyingQuestionsControl)("value", qualifyingQuestion_r3.name);
20423
+ i0__namespace.ɵɵadvance(1);
20424
+ i0__namespace.ɵɵproperty("for", qualifyingQuestion_r3.name);
20425
+ i0__namespace.ɵɵadvance(1);
20426
+ i0__namespace.ɵɵtextInterpolate(qualifyingQuestion_r3.name);
20427
+ }
20428
+ }
20429
+ function QualifyingQuestionsComponent_ng_container_0_Template(rf, ctx) {
20430
+ if (rf & 1) {
20431
+ i0__namespace.ɵɵelementContainerStart(0);
20432
+ i0__namespace.ɵɵelementStart(1, "div", 1);
20433
+ i0__namespace.ɵɵelementStart(2, "fieldset", 2);
20434
+ i0__namespace.ɵɵelementStart(3, "legend", 3);
20435
+ i0__namespace.ɵɵelementStart(4, "h1", 4);
20436
+ i0__namespace.ɵɵtext(5);
20437
+ i0__namespace.ɵɵpipe(6, "rpxTranslate");
20438
+ i0__namespace.ɵɵelementEnd();
20439
+ i0__namespace.ɵɵelementEnd();
20440
+ i0__namespace.ɵɵtemplate(7, QualifyingQuestionsComponent_ng_container_0_ng_container_7_Template, 6, 3, "ng-container", 0);
20441
+ i0__namespace.ɵɵelementStart(8, "div", 5);
20442
+ i0__namespace.ɵɵtemplate(9, QualifyingQuestionsComponent_ng_container_0_div_9_Template, 4, 5, "div", 6);
20443
+ i0__namespace.ɵɵpipe(10, "async");
20444
+ i0__namespace.ɵɵelementStart(11, "div", 7);
20445
+ i0__namespace.ɵɵelement(12, "input", 8);
20446
+ i0__namespace.ɵɵelementStart(13, "label", 9);
20447
+ i0__namespace.ɵɵtext(14);
20448
+ i0__namespace.ɵɵpipe(15, "rpxTranslate");
20449
+ i0__namespace.ɵɵelementEnd();
20450
+ i0__namespace.ɵɵelementEnd();
20451
+ i0__namespace.ɵɵelementEnd();
20452
+ i0__namespace.ɵɵelementEnd();
20453
+ i0__namespace.ɵɵelementEnd();
20454
+ i0__namespace.ɵɵelementContainerEnd();
20455
+ }
20456
+ if (rf & 2) {
20457
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
20307
20458
  i0__namespace.ɵɵadvance(1);
20308
- i0__namespace.ɵɵpropertyInterpolate("id", qualifyingQuestion_r2.name);
20309
- i0__namespace.ɵɵproperty("formControlName", "qualifyingQuestionOption")("value", qualifyingQuestion_r2.name);
20459
+ i0__namespace.ɵɵclassProp("govuk-form-group--error", ctx_r0.displayError);
20460
+ i0__namespace.ɵɵadvance(4);
20461
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 10, "Are you contacting us about any of the following:"), " ");
20462
+ i0__namespace.ɵɵadvance(2);
20463
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.displayError);
20464
+ i0__namespace.ɵɵadvance(2);
20465
+ i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(10, 12, ctx_r0.qualifyingQuestions$));
20466
+ i0__namespace.ɵɵadvance(3);
20467
+ i0__namespace.ɵɵproperty("id", ctx_r0.queryItemTypeEnum.NEW)("formControl", ctx_r0.qualifyingQuestionsControl)("value", ctx_r0.queryItemTypeEnum.NEW);
20310
20468
  i0__namespace.ɵɵadvance(1);
20311
- i0__namespace.ɵɵproperty("for", qualifyingQuestion_r2.name);
20469
+ i0__namespace.ɵɵproperty("for", ctx_r0.queryItemTypeEnum.NEW);
20312
20470
  i0__namespace.ɵɵadvance(1);
20313
- i0__namespace.ɵɵtextInterpolate(qualifyingQuestion_r2.name);
20471
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(15, 14, "Raise a query"), " ");
20314
20472
  }
20315
20473
  }
20316
- var _c0$C = function (a0) { return { "govuk-form-group--error": a0 }; };
20317
20474
  var QualifyingQuestionsComponent = /** @class */ (function () {
20318
20475
  function QualifyingQuestionsComponent() {
20476
+ this.queryItemTypeEnum = exports.QueryItemType;
20477
+ this.qualifyingQuestionsErrorMessage = exports.QualifyingQuestionsErrorMessage;
20319
20478
  }
20479
+ Object.defineProperty(QualifyingQuestionsComponent.prototype, "displayError", {
20480
+ get: function () {
20481
+ return this.qualifyingQuestionsControl.touched && this.qualifyingQuestionsControl.hasError('required');
20482
+ },
20483
+ enumerable: false,
20484
+ configurable: true
20485
+ });
20320
20486
  return QualifyingQuestionsComponent;
20321
20487
  }());
20322
20488
  QualifyingQuestionsComponent.ɵfac = function QualifyingQuestionsComponent_Factory(t) { return new (t || QualifyingQuestionsComponent)(); };
20323
- QualifyingQuestionsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QualifyingQuestionsComponent, selectors: [["ccd-qualifying-questions"]], inputs: { formGroup: "formGroup", qualifyingQuestions$: "qualifyingQuestions$" }, decls: 16, vars: 15, consts: [[1, "govuk-heading-l"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["id", "qualifying-question", 1, "govuk-fieldset"], ["class", "govuk-error-message", 4, "ngIf"], [1, "govuk-radios"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], [1, "govuk-radios__item"], ["id", "raiseAQuery", "name", "qualifyingQuestionOption", "type", "radio", "value", "raiseAQuery", 1, "govuk-radios__input", 3, "formControlName"], ["for", "raise-a-query", 1, "govuk-label", "govuk-radios__label"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["name", "qualifyingQuestionOption", "type", "radio", 1, "govuk-radios__input", 3, "id", "formControlName", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"]], template: function QualifyingQuestionsComponent_Template(rf, ctx) {
20489
+ QualifyingQuestionsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QualifyingQuestionsComponent, selectors: [["ccd-qualifying-questions"]], 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"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], [1, "govuk-radios__item"], ["name", "qualifyingQuestionOption", "type", "radio", 1, "govuk-radios__input", 3, "id", "formControl", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function QualifyingQuestionsComponent_Template(rf, ctx) {
20324
20490
  if (rf & 1) {
20325
- i0__namespace.ɵɵelementStart(0, "h1", 0);
20326
- i0__namespace.ɵɵtext(1);
20327
- i0__namespace.ɵɵpipe(2, "rpxTranslate");
20328
- i0__namespace.ɵɵelementEnd();
20329
- i0__namespace.ɵɵelementStart(3, "div", 1);
20330
- i0__namespace.ɵɵelementStart(4, "div", 2);
20331
- i0__namespace.ɵɵelementStart(5, "fieldset", 3);
20332
- i0__namespace.ɵɵtemplate(6, QualifyingQuestionsComponent_span_6_Template, 4, 1, "span", 4);
20333
- i0__namespace.ɵɵelementStart(7, "div", 5);
20334
- i0__namespace.ɵɵelementStart(8, "div", 5);
20335
- i0__namespace.ɵɵtemplate(9, QualifyingQuestionsComponent_div_9_Template, 4, 5, "div", 6);
20336
- i0__namespace.ɵɵpipe(10, "async");
20337
- i0__namespace.ɵɵelementStart(11, "div", 7);
20338
- i0__namespace.ɵɵelement(12, "input", 8);
20339
- i0__namespace.ɵɵelementStart(13, "label", 9);
20340
- i0__namespace.ɵɵtext(14);
20341
- i0__namespace.ɵɵpipe(15, "rpxTranslate");
20342
- i0__namespace.ɵɵelementEnd();
20343
- i0__namespace.ɵɵelementEnd();
20344
- i0__namespace.ɵɵelementEnd();
20345
- i0__namespace.ɵɵelementEnd();
20346
- i0__namespace.ɵɵelementEnd();
20347
- i0__namespace.ɵɵelementEnd();
20348
- i0__namespace.ɵɵelementEnd();
20491
+ i0__namespace.ɵɵtemplate(0, QualifyingQuestionsComponent_ng_container_0_Template, 16, 16, "ng-container", 0);
20349
20492
  }
20350
20493
  if (rf & 2) {
20351
- i0__namespace.ɵɵadvance(1);
20352
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 7, "Are you contacting us about any of the following:"), "\n");
20353
- i0__namespace.ɵɵadvance(2);
20354
- i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
20355
- i0__namespace.ɵɵadvance(1);
20356
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(13, _c0$C, ctx.qualifyingQuestionSelectionError));
20357
- i0__namespace.ɵɵadvance(2);
20358
- i0__namespace.ɵɵproperty("ngIf", ctx.qualifyingQuestionSelectionError);
20359
- i0__namespace.ɵɵadvance(3);
20360
- i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(10, 9, ctx.qualifyingQuestions$));
20361
- i0__namespace.ɵɵadvance(3);
20362
- i0__namespace.ɵɵproperty("formControlName", "qualifyingQuestionOption");
20363
- i0__namespace.ɵɵadvance(2);
20364
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(15, 11, "Raise a query"));
20494
+ i0__namespace.ɵɵproperty("ngIf", ctx.qualifyingQuestionsControl);
20365
20495
  }
20366
- }, directives: [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], pipes: [i1__namespace.RpxTranslatePipe, i5__namespace.AsyncPipe], encapsulation: 2 });
20496
+ }, directives: [i5__namespace.NgIf, i5__namespace.NgForOf, i3__namespace.RadioControlValueAccessor, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlDirective], pipes: [i1__namespace.RpxTranslatePipe, i5__namespace.AsyncPipe], encapsulation: 2 });
20367
20497
  (function () {
20368
20498
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QualifyingQuestionsComponent, [{
20369
20499
  type: i0.Component,
@@ -20371,7 +20501,7 @@
20371
20501
  selector: 'ccd-qualifying-questions',
20372
20502
  templateUrl: './qualifying-questions.component.html'
20373
20503
  }]
20374
- }], null, { formGroup: [{
20504
+ }], null, { qualifyingQuestionsControl: [{
20375
20505
  type: i0.Input
20376
20506
  }], qualifyingQuestions$: [{
20377
20507
  type: i0.Input
@@ -20498,101 +20628,6 @@
20498
20628
  }], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
20499
20629
  })();
20500
20630
 
20501
- var QueryListItem = /** @class */ (function () {
20502
- function QueryListItem() {
20503
- this.children = [];
20504
- }
20505
- Object.defineProperty(QueryListItem.prototype, "lastSubmittedMessage", {
20506
- get: function () {
20507
- var getLastSubmittedMessage = function (item) {
20508
- var e_1, _b;
20509
- var lastSubmittedMessage = item;
20510
- if (item.children && item.children.length > 0) {
20511
- try {
20512
- for (var _c = __values(item.children), _d = _c.next(); !_d.done; _d = _c.next()) {
20513
- var child = _d.value;
20514
- var childLastSubmittedMessage = getLastSubmittedMessage(child);
20515
- if (childLastSubmittedMessage.createdOn > lastSubmittedMessage.createdOn) {
20516
- lastSubmittedMessage = childLastSubmittedMessage;
20517
- }
20518
- }
20519
- }
20520
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
20521
- finally {
20522
- try {
20523
- if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
20524
- }
20525
- finally { if (e_1) throw e_1.error; }
20526
- }
20527
- }
20528
- return lastSubmittedMessage;
20529
- };
20530
- return getLastSubmittedMessage(this);
20531
- },
20532
- enumerable: false,
20533
- configurable: true
20534
- });
20535
- Object.defineProperty(QueryListItem.prototype, "lastSubmittedBy", {
20536
- get: function () {
20537
- return this.lastSubmittedMessage.name;
20538
- },
20539
- enumerable: false,
20540
- configurable: true
20541
- });
20542
- Object.defineProperty(QueryListItem.prototype, "lastSubmittedDate", {
20543
- get: function () {
20544
- return new Date(this.lastSubmittedMessage.createdOn);
20545
- },
20546
- enumerable: false,
20547
- configurable: true
20548
- });
20549
- Object.defineProperty(QueryListItem.prototype, "lastResponseBy", {
20550
- get: function () {
20551
- var _a;
20552
- return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.lastSubmittedMessage.name : '';
20553
- },
20554
- enumerable: false,
20555
- configurable: true
20556
- });
20557
- Object.defineProperty(QueryListItem.prototype, "lastResponseDate", {
20558
- get: function () {
20559
- var _a;
20560
- return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? new Date(this.lastSubmittedMessage.createdOn) : null;
20561
- },
20562
- enumerable: false,
20563
- configurable: true
20564
- });
20565
- return QueryListItem;
20566
- }());
20567
-
20568
- var QueryListData = /** @class */ (function () {
20569
- function QueryListData(partyMessagesGroup) {
20570
- var _this = this;
20571
- this.partyName = partyMessagesGroup.partyName;
20572
- this.roleOnCase = partyMessagesGroup.roleOnCase;
20573
- // get the parent messages (messages without parentId) and add the children to them
20574
- var parentMessages = partyMessagesGroup.partyMessages.filter(function (message) { return !message.parentId; });
20575
- this.partyMessages = parentMessages.map(function (message) { return _this.buildQueryListItem(message, partyMessagesGroup.partyMessages); });
20576
- }
20577
- QueryListData.prototype.buildQueryListItem = function (message, allMessages) {
20578
- var _this = this;
20579
- var queryListItem = new QueryListItem();
20580
- Object.assign(queryListItem, Object.assign(Object.assign({}, message), { children: allMessages
20581
- .filter(function (childMessage) { return childMessage.parentId === message.id; })
20582
- .map(function (childMessage) { return _this.buildQueryListItem(childMessage, allMessages); }) }));
20583
- return queryListItem;
20584
- };
20585
- return QueryListData;
20586
- }());
20587
-
20588
- exports.QueryItemType = void 0;
20589
- (function (QueryItemType) {
20590
- QueryItemType["NEW"] = "New";
20591
- QueryItemType["RESPOND"] = "Respond";
20592
- QueryItemType["FOLLOWUP"] = "Followup";
20593
- QueryItemType["NONE"] = "none";
20594
- })(exports.QueryItemType || (exports.QueryItemType = {}));
20595
-
20596
20631
  var QueryManagementUtils = /** @class */ (function () {
20597
20632
  function QueryManagementUtils() {
20598
20633
  }
@@ -21452,15 +21487,6 @@
21452
21487
  }] });
21453
21488
  })();
21454
21489
 
21455
- var RaiseQueryErrorMessage;
21456
- (function (RaiseQueryErrorMessage) {
21457
- RaiseQueryErrorMessage["FULL_NAME"] = "Enter a full name";
21458
- RaiseQueryErrorMessage["QUERY_SUBJECT"] = "Enter a query subject";
21459
- RaiseQueryErrorMessage["QUERY_BODY"] = "Enter query details";
21460
- RaiseQueryErrorMessage["QUERY_HEARING_RELATED"] = "Select whether the query is hearing related or not";
21461
- RaiseQueryErrorMessage["QUERY_HEARING_DATE"] = "Enter a valid date";
21462
- })(RaiseQueryErrorMessage || (RaiseQueryErrorMessage = {}));
21463
-
21464
21490
  function QueryWriteRaiseQueryComponent_p_22_Template(rf, ctx) {
21465
21491
  if (rf & 1) {
21466
21492
  i0__namespace.ɵɵelementStart(0, "p", 29);
@@ -21586,7 +21612,7 @@
21586
21612
  }
21587
21613
  var QueryWriteRaiseQueryComponent = /** @class */ (function () {
21588
21614
  function QueryWriteRaiseQueryComponent() {
21589
- this.raiseQueryErrorMessage = RaiseQueryErrorMessage;
21615
+ this.raiseQueryErrorMessage = exports.RaiseQueryErrorMessage;
21590
21616
  }
21591
21617
  return QueryWriteRaiseQueryComponent;
21592
21618
  }());