@hmcts/ccd-case-ui-toolkit 7.3.98-exui-5185-rc1 → 7.3.98-exui-5069

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.
@@ -6308,7 +6308,7 @@ class FormValidatorsService {
6308
6308
  // Matches: [text](url), ![alt](url), <img ...>, <a ...>...</a>
6309
6309
  const inlineMarkdownPattern = /(?:!?\[[^\]]{0,500}\]\([^)]{0,500}\)|<(?:img\b[^>]{0,500}>|a\b[^>]{0,500}>[\s\S]*?<\/a>))/i;
6310
6310
  // Matches: [text][id], ![alt][id], and the collapsed form [text][]
6311
- const referenceBoxPattern = /(!)?\[((?:[^[\]\\]|\\.){0,500})\]\[([^\]]{0,100})\](?!\s*\/)/;
6311
+ const referenceBoxPattern = /(!)?\[((?:[^[\]\\]|\\.){0,500})\]\s*\[([^\]]{0,100})\]/;
6312
6312
  // Matches: autolinks such as <http://example.com>
6313
6313
  const autolinkPattern = /<(?:[A-Za-z][A-Za-z0-9+.-]*:[^ <>\n]*|[A-Za-z0-9.!#$%&'*+/=?^_`{|}~-]+@[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)+)>/;
6314
6314
  // Matches: bare www.example.com autolinks
@@ -14132,57 +14132,67 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
14132
14132
  const _c0$$ = ["writeComplexFieldComponent"];
14133
14133
  const _c1$q = a0 => ({ "form-group-error": a0 });
14134
14134
  const _c2$4 = a0 => ({ "govuk-input--error": a0 });
14135
- function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (rf & 1) {
14136
- i0.ɵɵelementStart(0, "span", 14);
14135
+ function WriteAddressFieldComponent_div_1_span_4_Template(rf, ctx) { if (rf & 1) {
14136
+ i0.ɵɵelementStart(0, "span", 9);
14137
+ i0.ɵɵelement(1, "ccd-markdown", 10);
14138
+ i0.ɵɵpipe(2, "rpxTranslate");
14139
+ i0.ɵɵelementEnd();
14140
+ } if (rf & 2) {
14141
+ const ctx_r0 = i0.ɵɵnextContext(2);
14142
+ i0.ɵɵadvance();
14143
+ i0.ɵɵproperty("content", i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField.hint_text));
14144
+ } }
14145
+ function WriteAddressFieldComponent_div_1_div_5_span_5_Template(rf, ctx) { if (rf & 1) {
14146
+ i0.ɵɵelementStart(0, "span", 17);
14137
14147
  i0.ɵɵtext(1);
14138
14148
  i0.ɵɵpipe(2, "rpxTranslate");
14139
14149
  i0.ɵɵelementEnd();
14140
14150
  } if (rf & 2) {
14141
- const ctx_r1 = i0.ɵɵnextContext(3);
14151
+ const ctx_r0 = i0.ɵɵnextContext(3);
14142
14152
  i0.ɵɵadvance();
14143
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.errorMessage));
14153
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.errorMessage));
14144
14154
  } }
14145
- function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1) {
14146
- const _r1 = i0.ɵɵgetCurrentView();
14147
- i0.ɵɵelementStart(0, "div", 8)(1, "label", 9)(2, "span", 10);
14155
+ function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) { if (rf & 1) {
14156
+ const _r2 = i0.ɵɵgetCurrentView();
14157
+ i0.ɵɵelementStart(0, "div", 11)(1, "label", 12)(2, "span", 13);
14148
14158
  i0.ɵɵtext(3);
14149
14159
  i0.ɵɵpipe(4, "rpxTranslate");
14150
14160
  i0.ɵɵelementEnd()();
14151
- i0.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_4_span_5_Template, 3, 3, "span", 11);
14152
- i0.ɵɵelement(6, "input", 12);
14153
- i0.ɵɵelementStart(7, "button", 13);
14154
- i0.ɵɵlistener("click", function WriteAddressFieldComponent_div_1_div_4_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.findAddress()); });
14161
+ i0.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_5_span_5_Template, 3, 3, "span", 14);
14162
+ i0.ɵɵelement(6, "input", 15);
14163
+ i0.ɵɵelementStart(7, "button", 16);
14164
+ i0.ɵɵlistener("click", function WriteAddressFieldComponent_div_1_div_5_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.findAddress()); });
14155
14165
  i0.ɵɵtext(8);
14156
14166
  i0.ɵɵpipe(9, "rpxTranslate");
14157
14167
  i0.ɵɵelementEnd()();
14158
14168
  } if (rf & 2) {
14159
- const ctx_r1 = i0.ɵɵnextContext(2);
14160
- i0.ɵɵproperty("id", ctx_r1.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(14, _c1$q, ctx_r1.missingPostcode));
14169
+ const ctx_r0 = i0.ɵɵnextContext(2);
14170
+ i0.ɵɵproperty("id", ctx_r0.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(14, _c1$q, ctx_r0.missingPostcode));
14161
14171
  i0.ɵɵadvance();
14162
- i0.ɵɵproperty("for", ctx_r1.createElementId("postcodeInput"));
14172
+ i0.ɵɵproperty("for", ctx_r0.createElementId("postcodeInput"));
14163
14173
  i0.ɵɵadvance(2);
14164
14174
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 10, "Enter a UK postcode"));
14165
14175
  i0.ɵɵadvance(2);
14166
- i0.ɵɵproperty("ngIf", ctx_r1.missingPostcode);
14176
+ i0.ɵɵproperty("ngIf", ctx_r0.missingPostcode);
14167
14177
  i0.ɵɵadvance();
14168
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c2$4, ctx_r1.missingPostcode))("id", ctx_r1.createElementId("postcodeInput"))("formControl", ctx_r1.postcode);
14178
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c2$4, ctx_r0.missingPostcode))("id", ctx_r0.createElementId("postcodeInput"))("formControl", ctx_r0.postcode);
14169
14179
  i0.ɵɵadvance();
14170
- i0.ɵɵproperty("disabled", ctx_r1.loadingAddresses);
14180
+ i0.ɵɵproperty("disabled", ctx_r0.loadingAddresses);
14171
14181
  i0.ɵɵadvance();
14172
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 12, ctx_r1.loadingAddresses ? "Finding addresses..." : "Find address"), " ");
14182
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 12, ctx_r0.loadingAddresses ? "Finding addresses..." : "Find address"), " ");
14173
14183
  } }
14174
- function WriteAddressFieldComponent_div_1_div_5_span_5_Template(rf, ctx) { if (rf & 1) {
14175
- i0.ɵɵelementStart(0, "span", 14);
14184
+ function WriteAddressFieldComponent_div_1_div_6_span_5_Template(rf, ctx) { if (rf & 1) {
14185
+ i0.ɵɵelementStart(0, "span", 17);
14176
14186
  i0.ɵɵtext(1);
14177
14187
  i0.ɵɵpipe(2, "rpxTranslate");
14178
14188
  i0.ɵɵelementEnd();
14179
14189
  } if (rf & 2) {
14180
- const ctx_r1 = i0.ɵɵnextContext(3);
14190
+ const ctx_r0 = i0.ɵɵnextContext(3);
14181
14191
  i0.ɵɵadvance();
14182
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.errorMessage));
14192
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.errorMessage));
14183
14193
  } }
14184
- function WriteAddressFieldComponent_div_1_div_5_option_7_Template(rf, ctx) { if (rf & 1) {
14185
- i0.ɵɵelementStart(0, "option", 19);
14194
+ function WriteAddressFieldComponent_div_1_div_6_option_7_Template(rf, ctx) { if (rf & 1) {
14195
+ i0.ɵɵelementStart(0, "option", 22);
14186
14196
  i0.ɵɵtext(1);
14187
14197
  i0.ɵɵpipe(2, "rpxTranslate");
14188
14198
  i0.ɵɵelementEnd();
@@ -14191,19 +14201,19 @@ function WriteAddressFieldComponent_div_1_div_5_option_7_Template(rf, ctx) { if
14191
14201
  i0.ɵɵadvance();
14192
14202
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "No address found"), " ");
14193
14203
  } }
14194
- function WriteAddressFieldComponent_div_1_div_5_option_8_Template(rf, ctx) { if (rf & 1) {
14195
- i0.ɵɵelementStart(0, "option", 19);
14204
+ function WriteAddressFieldComponent_div_1_div_6_option_8_Template(rf, ctx) { if (rf & 1) {
14205
+ i0.ɵɵelementStart(0, "option", 22);
14196
14206
  i0.ɵɵtext(1);
14197
14207
  i0.ɵɵpipe(2, "rpxTranslate");
14198
14208
  i0.ɵɵelementEnd();
14199
14209
  } if (rf & 2) {
14200
- const ctx_r1 = i0.ɵɵnextContext(3);
14210
+ const ctx_r0 = i0.ɵɵnextContext(3);
14201
14211
  i0.ɵɵproperty("ngValue", undefined);
14202
14212
  i0.ɵɵadvance();
14203
- i0.ɵɵtextInterpolate2(" ", ctx_r1.addressOptions.length, " ", i0.ɵɵpipeBind1(2, 3, ctx_r1.addressOptions.length === 1 ? "address found" : "addresses found"), " ");
14213
+ i0.ɵɵtextInterpolate2(" ", ctx_r0.addressOptions.length, " ", i0.ɵɵpipeBind1(2, 3, ctx_r0.addressOptions.length === 1 ? "address found" : "addresses found"), " ");
14204
14214
  } }
14205
- function WriteAddressFieldComponent_div_1_div_5_option_9_Template(rf, ctx) { if (rf & 1) {
14206
- i0.ɵɵelementStart(0, "option", 19);
14215
+ function WriteAddressFieldComponent_div_1_div_6_option_9_Template(rf, ctx) { if (rf & 1) {
14216
+ i0.ɵɵelementStart(0, "option", 22);
14207
14217
  i0.ɵɵtext(1);
14208
14218
  i0.ɵɵelementEnd();
14209
14219
  } if (rf & 2) {
@@ -14212,39 +14222,39 @@ function WriteAddressFieldComponent_div_1_div_5_option_9_Template(rf, ctx) { if
14212
14222
  i0.ɵɵadvance();
14213
14223
  i0.ɵɵtextInterpolate1(" ", addressOption_r4.description, " ");
14214
14224
  } }
14215
- function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) { if (rf & 1) {
14225
+ function WriteAddressFieldComponent_div_1_div_6_Template(rf, ctx) { if (rf & 1) {
14216
14226
  const _r3 = i0.ɵɵgetCurrentView();
14217
- i0.ɵɵelementStart(0, "div", 15)(1, "label", 9)(2, "span", 10);
14227
+ i0.ɵɵelementStart(0, "div", 18)(1, "label", 12)(2, "span", 13);
14218
14228
  i0.ɵɵtext(3);
14219
14229
  i0.ɵɵpipe(4, "rpxTranslate");
14220
14230
  i0.ɵɵelementEnd()();
14221
- i0.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_5_span_5_Template, 3, 3, "span", 11);
14222
- i0.ɵɵelementStart(6, "select", 16);
14223
- i0.ɵɵlistener("change", function WriteAddressFieldComponent_div_1_div_5_Template_select_change_6_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.addressSelected()); });
14224
- i0.ɵɵtemplate(7, WriteAddressFieldComponent_div_1_div_5_option_7_Template, 3, 4, "option", 17)(8, WriteAddressFieldComponent_div_1_div_5_option_8_Template, 3, 5, "option", 17)(9, WriteAddressFieldComponent_div_1_div_5_option_9_Template, 2, 2, "option", 18);
14231
+ i0.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_6_span_5_Template, 3, 3, "span", 14);
14232
+ i0.ɵɵelementStart(6, "select", 19);
14233
+ i0.ɵɵlistener("change", function WriteAddressFieldComponent_div_1_div_6_Template_select_change_6_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.addressSelected()); });
14234
+ i0.ɵɵtemplate(7, WriteAddressFieldComponent_div_1_div_6_option_7_Template, 3, 4, "option", 20)(8, WriteAddressFieldComponent_div_1_div_6_option_8_Template, 3, 5, "option", 20)(9, WriteAddressFieldComponent_div_1_div_6_option_9_Template, 2, 2, "option", 21);
14225
14235
  i0.ɵɵelementEnd()();
14226
14236
  } if (rf & 2) {
14227
- const ctx_r1 = i0.ɵɵnextContext(2);
14228
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$q, ctx_r1.noAddressSelected));
14237
+ const ctx_r0 = i0.ɵɵnextContext(2);
14238
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$q, ctx_r0.noAddressSelected));
14229
14239
  i0.ɵɵadvance();
14230
- i0.ɵɵproperty("for", ctx_r1.createElementId("addressList"));
14240
+ i0.ɵɵproperty("for", ctx_r0.createElementId("addressList"));
14231
14241
  i0.ɵɵadvance(2);
14232
14242
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 9, "Select an address"));
14233
14243
  i0.ɵɵadvance(2);
14234
- i0.ɵɵproperty("ngIf", ctx_r1.noAddressSelected);
14244
+ i0.ɵɵproperty("ngIf", ctx_r0.noAddressSelected);
14235
14245
  i0.ɵɵadvance();
14236
- i0.ɵɵproperty("id", ctx_r1.createElementId("addressList"))("formControl", ctx_r1.addressList);
14246
+ i0.ɵɵproperty("id", ctx_r0.createElementId("addressList"))("formControl", ctx_r0.addressList);
14237
14247
  i0.ɵɵadvance();
14238
- i0.ɵɵproperty("ngIf", ctx_r1.addressOptions.length === 0);
14248
+ i0.ɵɵproperty("ngIf", ctx_r0.addressOptions.length === 0);
14239
14249
  i0.ɵɵadvance();
14240
- i0.ɵɵproperty("ngIf", ctx_r1.addressOptions.length > 0);
14250
+ i0.ɵɵproperty("ngIf", ctx_r0.addressOptions.length > 0);
14241
14251
  i0.ɵɵadvance();
14242
- i0.ɵɵproperty("ngForOf", ctx_r1.addressOptions);
14252
+ i0.ɵɵproperty("ngForOf", ctx_r0.addressOptions);
14243
14253
  } }
14244
- function WriteAddressFieldComponent_div_1_a_6_Template(rf, ctx) { if (rf & 1) {
14254
+ function WriteAddressFieldComponent_div_1_a_7_Template(rf, ctx) { if (rf & 1) {
14245
14255
  const _r5 = i0.ɵɵgetCurrentView();
14246
- i0.ɵɵelementStart(0, "a", 20);
14247
- i0.ɵɵlistener("click", function WriteAddressFieldComponent_div_1_a_6_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(2); ctx_r1.blankAddress(); return i0.ɵɵresetView($event.preventDefault()); });
14256
+ i0.ɵɵelementStart(0, "a", 23);
14257
+ i0.ɵɵlistener("click", function WriteAddressFieldComponent_div_1_a_7_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r0 = i0.ɵɵnextContext(2); ctx_r0.blankAddress(); return i0.ɵɵresetView($event.preventDefault()); });
14248
14258
  i0.ɵɵtext(1);
14249
14259
  i0.ɵɵpipe(2, "rpxTranslate");
14250
14260
  i0.ɵɵelementEnd();
@@ -14257,18 +14267,20 @@ function WriteAddressFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
14257
14267
  i0.ɵɵtext(2);
14258
14268
  i0.ɵɵpipe(3, "ccdFieldLabel");
14259
14269
  i0.ɵɵelementEnd();
14260
- i0.ɵɵtemplate(4, WriteAddressFieldComponent_div_1_div_4_Template, 10, 18, "div", 5)(5, WriteAddressFieldComponent_div_1_div_5_Template, 10, 13, "div", 6)(6, WriteAddressFieldComponent_div_1_a_6_Template, 3, 3, "a", 7);
14270
+ i0.ɵɵtemplate(4, WriteAddressFieldComponent_div_1_span_4_Template, 3, 3, "span", 5)(5, WriteAddressFieldComponent_div_1_div_5_Template, 10, 18, "div", 6)(6, WriteAddressFieldComponent_div_1_div_6_Template, 10, 13, "div", 7)(7, WriteAddressFieldComponent_div_1_a_7_Template, 3, 3, "a", 8);
14261
14271
  i0.ɵɵelementEnd();
14262
14272
  } if (rf & 2) {
14263
- const ctx_r1 = i0.ɵɵnextContext();
14273
+ const ctx_r0 = i0.ɵɵnextContext();
14264
14274
  i0.ɵɵadvance(2);
14265
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 4, ctx_r1.caseField));
14275
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 5, ctx_r0.caseField));
14266
14276
  i0.ɵɵadvance(2);
14267
- i0.ɵɵproperty("ngIf", !ctx_r1.isExpanded);
14277
+ i0.ɵɵproperty("ngIf", ctx_r0.caseField.hint_text);
14278
+ i0.ɵɵadvance();
14279
+ i0.ɵɵproperty("ngIf", !ctx_r0.isExpanded);
14268
14280
  i0.ɵɵadvance();
14269
- i0.ɵɵproperty("ngIf", ctx_r1.addressOptions);
14281
+ i0.ɵɵproperty("ngIf", ctx_r0.addressOptions);
14270
14282
  i0.ɵɵadvance();
14271
- i0.ɵɵproperty("ngIf", !ctx_r1.shouldShowDetailFields());
14283
+ i0.ɵɵproperty("ngIf", !ctx_r0.shouldShowDetailFields());
14272
14284
  } }
14273
14285
  class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
14274
14286
  isCompoundPipe;
@@ -14402,9 +14414,9 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
14402
14414
  let _t;
14403
14415
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
14404
14416
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.focusElementDirectives = _t);
14405
- } }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 4, vars: 9, consts: [["writeComplexFieldComponent", ""], [1, "form-group", 3, "id"], [4, "ngIf"], [3, "hidden", "caseField", "renderLabel", "parent", "formGroup", "ignoreMandatory", "idPrefix"], [1, "heading-h2"], ["class", "form-group bottom-30 postcodeLookup", 3, "id", "ngClass", 4, "ngIf"], ["class", "form-group", "id", "selectAddress", 3, "ngClass", 4, "ngIf"], ["class", "manual-link bottom-30", "href", "#", 3, "click", 4, "ngIf"], [1, "form-group", "bottom-30", "postcodeLookup", 3, "id", "ngClass"], [3, "for"], [1, "form-label"], ["class", "error-message", 4, "ngIf"], ["type", "text", "name", "postcode", 1, "form-control", "postcodeinput", "inline-block", 3, "ngClass", "id", "formControl"], ["type", "button", 1, "button", "button-30", 3, "click", "disabled"], [1, "error-message"], ["id", "selectAddress", 1, "form-group", 3, "ngClass"], ["name", "address", "focusElement", "", 1, "form-control", "ccd-dropdown", "addressList", 3, "change", "id", "formControl"], [3, "ngValue", 4, "ngIf"], [3, "ngValue", 4, "ngFor", "ngForOf"], [3, "ngValue"], ["href", "#", 1, "manual-link", "bottom-30", 3, "click"]], template: function WriteAddressFieldComponent_Template(rf, ctx) { if (rf & 1) {
14417
+ } }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 4, vars: 9, consts: [["writeComplexFieldComponent", ""], [1, "form-group", 3, "id"], [4, "ngIf"], [3, "hidden", "caseField", "renderLabel", "parent", "formGroup", "ignoreMandatory", "idPrefix"], [1, "heading-h2"], ["class", "form-hint", 4, "ngIf"], ["class", "form-group bottom-30 postcodeLookup", 3, "id", "ngClass", 4, "ngIf"], ["class", "form-group", "id", "selectAddress", 3, "ngClass", 4, "ngIf"], ["class", "manual-link bottom-30", "href", "#", 3, "click", 4, "ngIf"], [1, "form-hint"], [3, "content"], [1, "form-group", "bottom-30", "postcodeLookup", 3, "id", "ngClass"], [3, "for"], [1, "form-label"], ["class", "error-message", 4, "ngIf"], ["type", "text", "name", "postcode", 1, "form-control", "postcodeinput", "inline-block", 3, "ngClass", "id", "formControl"], ["type", "button", 1, "button", "button-30", 3, "click", "disabled"], [1, "error-message"], ["id", "selectAddress", 1, "form-group", 3, "ngClass"], ["name", "address", "focusElement", "", 1, "form-control", "ccd-dropdown", "addressList", 3, "change", "id", "formControl"], [3, "ngValue", 4, "ngIf"], [3, "ngValue", 4, "ngFor", "ngForOf"], [3, "ngValue"], ["href", "#", 1, "manual-link", "bottom-30", 3, "click"]], template: function WriteAddressFieldComponent_Template(rf, ctx) { if (rf & 1) {
14406
14418
  i0.ɵɵelementStart(0, "div", 1);
14407
- i0.ɵɵtemplate(1, WriteAddressFieldComponent_div_1_Template, 7, 6, "div", 2);
14419
+ i0.ɵɵtemplate(1, WriteAddressFieldComponent_div_1_Template, 8, 7, "div", 2);
14408
14420
  i0.ɵɵelement(2, "ccd-write-complex-type-field", 3, 0);
14409
14421
  i0.ɵɵelementEnd();
14410
14422
  } if (rf & 2) {
@@ -14417,7 +14429,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
14417
14429
  }
14418
14430
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteAddressFieldComponent, [{
14419
14431
  type: Component,
14420
- args: [{ selector: 'ccd-write-address-field', standalone: false, template: "<div class=\"form-group\" [id]=\"id()\">\n <div *ngIf=\"!isComplexWithHiddenFields()\">\n <h2 class=\"heading-h2\">{{caseField | ccdFieldLabel}}</h2>\n\n <div class=\"form-group bottom-30 postcodeLookup\" [id]=\"createElementId('postcodeLookup')\" [ngClass]=\"{'form-group-error': missingPostcode}\" *ngIf=\"!isExpanded\">\n <label [for]=\"createElementId('postcodeInput')\">\n <span class=\"form-label\">{{'Enter a UK postcode' | rpxTranslate}}</span>\n </label>\n <span class=\"error-message\" *ngIf=\"missingPostcode\">{{errorMessage | rpxTranslate}}</span>\n <input type=\"text\" [ngClass]=\"{'govuk-input--error': missingPostcode}\"\n [id]=\"createElementId('postcodeInput')\" name=\"postcode\" class=\"form-control postcodeinput inline-block\" [formControl]=\"postcode\">\n <button type=\"button\" class=\"button button-30\" (click)=\"findAddress()\" [disabled]=\"loadingAddresses\">\n {{(loadingAddresses ? 'Finding addresses...' : 'Find address') | rpxTranslate}}\n </button>\n </div>\n\n <div class=\"form-group\" *ngIf=\"addressOptions\" id=\"selectAddress\" [ngClass]=\"{'form-group-error': noAddressSelected}\">\n <label [for]=\"createElementId('addressList')\">\n <span class=\"form-label\">{{'Select an address' | rpxTranslate}}</span>\n </label>\n <span class=\"error-message\" *ngIf=\"noAddressSelected\">{{errorMessage | rpxTranslate}}</span>\n <select class=\"form-control ccd-dropdown addressList\" [id]=\"createElementId('addressList')\" name=\"address\" [formControl]=\"addressList\" (change)=\"addressSelected()\" focusElement>\n <option *ngIf=\"addressOptions.length === 0\" [ngValue]=\"undefined\">\n {{'No address found' | rpxTranslate}}\n </option>\n <option *ngIf=\"addressOptions.length > 0\" [ngValue]=\"undefined\">\n {{addressOptions.length}} {{(addressOptions.length === 1 ? 'address found' : 'addresses found') | rpxTranslate}}\n </option>\n <option *ngFor=\"let addressOption of addressOptions\" [ngValue]=\"addressOption.value\">\n {{addressOption.description}}\n </option>\n </select>\n </div>\n\n <a class=\"manual-link bottom-30\" *ngIf=\"!shouldShowDetailFields()\" (click)=\"blankAddress(); $event.preventDefault()\" href=\"#\">\n {{\"I can't enter a UK postcode\" | rpxTranslate}}\n </a>\n </div>\n\n <ccd-write-complex-type-field\n [hidden]=\"!shouldShowDetailFields()\"\n [caseField]=\"caseField\"\n [renderLabel]=\"false\"\n [parent]=\"parent\"\n [formGroup]=\"formGroup\"\n [ignoreMandatory]=\"true\"\n [idPrefix]=\"buildIdPrefix('detail')\"\n #writeComplexFieldComponent>\n </ccd-write-complex-type-field>\n</div>\n", styles: [".manual-link{cursor:pointer;display:block;text-decoration:underline}\n"] }]
14432
+ args: [{ selector: 'ccd-write-address-field', standalone: false, template: "<div class=\"form-group\" [id]=\"id()\">\n <div *ngIf=\"!isComplexWithHiddenFields()\">\n <h2 class=\"heading-h2\">{{caseField | ccdFieldLabel}}</h2>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">\n <ccd-markdown [content]=\"caseField.hint_text | rpxTranslate\"></ccd-markdown>\n </span>\n\n <div class=\"form-group bottom-30 postcodeLookup\" [id]=\"createElementId('postcodeLookup')\" [ngClass]=\"{'form-group-error': missingPostcode}\" *ngIf=\"!isExpanded\">\n <label [for]=\"createElementId('postcodeInput')\">\n <span class=\"form-label\">{{'Enter a UK postcode' | rpxTranslate}}</span>\n </label>\n <span class=\"error-message\" *ngIf=\"missingPostcode\">{{errorMessage | rpxTranslate}}</span>\n <input type=\"text\" [ngClass]=\"{'govuk-input--error': missingPostcode}\"\n [id]=\"createElementId('postcodeInput')\" name=\"postcode\" class=\"form-control postcodeinput inline-block\" [formControl]=\"postcode\">\n <button type=\"button\" class=\"button button-30\" (click)=\"findAddress()\" [disabled]=\"loadingAddresses\">\n {{(loadingAddresses ? 'Finding addresses...' : 'Find address') | rpxTranslate}}\n </button>\n </div>\n\n <div class=\"form-group\" *ngIf=\"addressOptions\" id=\"selectAddress\" [ngClass]=\"{'form-group-error': noAddressSelected}\">\n <label [for]=\"createElementId('addressList')\">\n <span class=\"form-label\">{{'Select an address' | rpxTranslate}}</span>\n </label>\n <span class=\"error-message\" *ngIf=\"noAddressSelected\">{{errorMessage | rpxTranslate}}</span>\n <select class=\"form-control ccd-dropdown addressList\" [id]=\"createElementId('addressList')\" name=\"address\" [formControl]=\"addressList\" (change)=\"addressSelected()\" focusElement>\n <option *ngIf=\"addressOptions.length === 0\" [ngValue]=\"undefined\">\n {{'No address found' | rpxTranslate}}\n </option>\n <option *ngIf=\"addressOptions.length > 0\" [ngValue]=\"undefined\">\n {{addressOptions.length}} {{(addressOptions.length === 1 ? 'address found' : 'addresses found') | rpxTranslate}}\n </option>\n <option *ngFor=\"let addressOption of addressOptions\" [ngValue]=\"addressOption.value\">\n {{addressOption.description}}\n </option>\n </select>\n </div>\n\n <a class=\"manual-link bottom-30\" *ngIf=\"!shouldShowDetailFields()\" (click)=\"blankAddress(); $event.preventDefault()\" href=\"#\">\n {{\"I can't enter a UK postcode\" | rpxTranslate}}\n </a>\n </div>\n\n <ccd-write-complex-type-field\n [hidden]=\"!shouldShowDetailFields()\"\n [caseField]=\"caseField\"\n [renderLabel]=\"false\"\n [parent]=\"parent\"\n [formGroup]=\"formGroup\"\n [ignoreMandatory]=\"true\"\n [idPrefix]=\"buildIdPrefix('detail')\"\n #writeComplexFieldComponent>\n </ccd-write-complex-type-field>\n</div>\n", styles: [".manual-link{cursor:pointer;display:block;text-decoration:underline}\n"] }]
14421
14433
  }], () => [{ type: AddressesService }, { type: IsCompoundPipe }], { writeComplexFieldComponent: [{
14422
14434
  type: ViewChild,
14423
14435
  args: ['writeComplexFieldComponent', { static: false }]
@@ -26578,7 +26590,6 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
26578
26590
  },
26579
26591
  plugins: [
26580
26592
  new Plugin({
26581
- appendTransaction: (transactions, oldState, newState) => this.renumberContinuedOrderedLists(transactions, oldState, newState),
26582
26593
  props: {
26583
26594
  handlePaste: (_view, event) => this.handleEditorPaste(event),
26584
26595
  handleDOMEvents: {
@@ -27062,71 +27073,6 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
27062
27073
  ? candidateOrder === adjacentOrder + adjacentList.childCount
27063
27074
  : candidateOrder + candidateList.childCount === adjacentOrder;
27064
27075
  }
27065
- renumberContinuedOrderedLists(transactions, oldState, newState) {
27066
- if (!transactions.some((transaction) => transaction.docChanged)) {
27067
- return null;
27068
- }
27069
- const oldChildren = [];
27070
- let oldPosition = 0;
27071
- oldState.doc.forEach((node) => {
27072
- oldChildren.push({ node, position: oldPosition });
27073
- oldPosition += node.nodeSize;
27074
- });
27075
- const mapPosition = (position) => transactions.reduce((mappedPosition, transaction) => transaction.mapping.map(mappedPosition, 1), position);
27076
- const effectiveOrders = new Map();
27077
- let result = null;
27078
- oldChildren.forEach(({ node: candidate, position: candidatePosition }, candidateIndex) => {
27079
- if (candidate.type.name !== 'ordered_list') {
27080
- return;
27081
- }
27082
- let previousIndex = candidateIndex - 1;
27083
- while (previousIndex >= 0 &&
27084
- this.isOrderedListContinuationSeparator(oldChildren[previousIndex].node, candidate)) {
27085
- previousIndex--;
27086
- }
27087
- if (previousIndex < 0) {
27088
- return;
27089
- }
27090
- const previous = oldChildren[previousIndex].node;
27091
- const previousPosition = oldChildren[previousIndex].position;
27092
- if (previous.type.name !== 'ordered_list' ||
27093
- !this.hasMatchingListType(candidate, previous) ||
27094
- candidate.attrs.indent !== previous.attrs.indent ||
27095
- !this.isSequentialList(candidate, previous, 1)) {
27096
- return;
27097
- }
27098
- const mappedPreviousPosition = mapPosition(previousPosition);
27099
- const mappedCandidatePosition = mapPosition(candidatePosition);
27100
- const newPrevious = newState.doc.nodeAt(mappedPreviousPosition);
27101
- const newCandidate = newState.doc.nodeAt(mappedCandidatePosition);
27102
- if (!newPrevious || !newCandidate ||
27103
- newPrevious.type.name !== 'ordered_list' || newCandidate.type.name !== 'ordered_list' ||
27104
- newPrevious.firstChild?.textContent !== previous.firstChild?.textContent ||
27105
- newCandidate.firstChild?.textContent !== candidate.firstChild?.textContent ||
27106
- !this.hasMatchingListType(newCandidate, newPrevious) ||
27107
- newCandidate.attrs.indent !== newPrevious.attrs.indent) {
27108
- return;
27109
- }
27110
- const previousOrder = effectiveOrders.get(previousPosition) ?? (Number(newPrevious.attrs.order) || 1);
27111
- const expectedOrder = previousOrder + newPrevious.childCount;
27112
- effectiveOrders.set(candidatePosition, expectedOrder);
27113
- if (Number(newCandidate.attrs.order) === expectedOrder) {
27114
- return;
27115
- }
27116
- result = (result || newState.tr).setNodeMarkup(mappedCandidatePosition, newCandidate.type, {
27117
- ...newCandidate.attrs,
27118
- order: expectedOrder
27119
- });
27120
- });
27121
- return result;
27122
- }
27123
- isOrderedListContinuationSeparator(node, candidate) {
27124
- if (this.isEmptyParagraph(node) || this.isListSectionHeading(node)) {
27125
- return true;
27126
- }
27127
- return this.isList(node) &&
27128
- (Number(node.attrs.indent) || 0) > (Number(candidate.attrs.indent) || 0);
27129
- }
27130
27076
  hasListContinuation(list) {
27131
27077
  return list.type.name === 'ordered_list' || Boolean(list.attrs.continuationOrder);
27132
27078
  }
@@ -27392,10 +27338,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
27392
27338
  this.removeUnsupportedMarkup(documentElement);
27393
27339
  this.normaliseDateRangeSpacing(documentElement);
27394
27340
  this.removeUnsupportedAttributes(documentElement);
27395
- const sanitisedValue = sanitiseRichTextDocument(documentElement);
27396
- return this.hasMeaningfulRichTextContent(documentElement)
27397
- ? this.normalisePlainTextValue(sanitisedValue)
27398
- : '';
27341
+ return this.normalisePlainTextValue(sanitiseRichTextDocument(documentElement));
27399
27342
  }
27400
27343
  normaliseRichTextValue(value) {
27401
27344
  if (!value) {
@@ -27413,15 +27356,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
27413
27356
  this.removeUnsupportedMarkup(documentElement);
27414
27357
  this.normaliseDateRangeSpacing(documentElement);
27415
27358
  this.removeUnsupportedAttributes(documentElement);
27416
- const sanitisedValue = sanitiseRichTextDocument(documentElement);
27417
- return this.hasMeaningfulRichTextContent(documentElement)
27418
- ? this.normalisePlainTextValue(sanitisedValue)
27419
- : '';
27420
- }
27421
- hasMeaningfulRichTextContent(documentElement) {
27422
- const visibleText = (documentElement.body.textContent || '')
27423
- .replace(/[\s\u00a0\u200b-\u200d\ufeff]/g, '');
27424
- return visibleText.length > 0 || Boolean(documentElement.body.querySelector('hr'));
27359
+ return this.normalisePlainTextValue(sanitiseRichTextDocument(documentElement));
27425
27360
  }
27426
27361
  syncAccessibilityLater() {
27427
27362
  setTimeout(() => this.syncAccessibilityState());
@@ -27534,31 +27469,13 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
27534
27469
  }
27535
27470
  this.isNormalisingValue = true;
27536
27471
  try {
27537
- this.richTextAreaControl.setValue(normalisedValue, {
27538
- emitEvent: false,
27539
- emitModelToViewChange: false
27540
- });
27541
- if (normalisedValue || this.editorHasMeaningfulRichTextContent()) {
27542
- this.editor.setContent(normalisedValue || '');
27543
- }
27472
+ this.richTextAreaControl.setValue(normalisedValue, { emitEvent: false });
27473
+ this.editor.setContent(normalisedValue || '');
27544
27474
  }
27545
27475
  finally {
27546
27476
  this.isNormalisingValue = false;
27547
27477
  }
27548
27478
  }
27549
- editorHasMeaningfulRichTextContent() {
27550
- const documentNode = this.editor.view.state.doc;
27551
- const visibleText = documentNode.textContent.replace(/[\s\u00a0\u200b-\u200d\ufeff]/g, '');
27552
- let hasHorizontalRule = false;
27553
- documentNode.descendants((node) => {
27554
- if (node.type.name === 'horizontal_rule') {
27555
- hasHorizontalRule = true;
27556
- return false;
27557
- }
27558
- return !hasHorizontalRule;
27559
- });
27560
- return visibleText.length > 0 || hasHorizontalRule;
27561
- }
27562
27479
  richTextRequiredValidator() {
27563
27480
  return (control) => {
27564
27481
  const textValue = this.htmlToText(control.value);
@@ -28209,7 +28126,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
28209
28126
  }
28210
28127
  return value
28211
28128
  .replace(/!?\[([^\]]{0,500})\]\(([^)]{0,500})\)/g, (_match, text, url) => text || url)
28212
- .replace(/!?\[((?:[^[\]\\]|\\.){0,500})\]\[[^\]]{0,100}\](?!\s*\/)/g, '$1');
28129
+ .replace(/!?\[((?:[^[\]\\]|\\.){0,500})\]\s*\[[^\]]{0,100}\]/g, '$1');
28213
28130
  }
28214
28131
  unwrapElement(element) {
28215
28132
  const parentNode = element.parentNode;
@@ -28228,8 +28145,6 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
28228
28145
  const state = {
28229
28146
  listStack: [],
28230
28147
  listParents: [],
28231
- listRunDeclaredLevel: null,
28232
- listRunVisualLevel: null,
28233
28148
  resetListLevels: new Map(),
28234
28149
  previousListId: null
28235
28150
  };
@@ -28258,19 +28173,12 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
28258
28173
  resetWordListConversionState(state) {
28259
28174
  state.listStack.length = 0;
28260
28175
  state.listParents.length = 0;
28261
- state.listRunDeclaredLevel = null;
28262
- state.listRunVisualLevel = null;
28263
28176
  state.resetListLevels.clear();
28264
28177
  state.previousListId = null;
28265
28178
  }
28266
28179
  wordListRequestedLevel(paragraph, listId, wordListIndents, state) {
28267
28180
  const declaredLevel = this.wordListDeclaredLevel(paragraph);
28268
- const visualLevel = this.wordListVisualLevel(paragraph, wordListIndents);
28269
- if (state.listRunDeclaredLevel === null || state.listRunVisualLevel === null) {
28270
- state.listRunDeclaredLevel = declaredLevel;
28271
- state.listRunVisualLevel = visualLevel;
28272
- }
28273
- let requestedLevel = Math.max(1, declaredLevel - state.listRunDeclaredLevel + 1, visualLevel - state.listRunVisualLevel + 1);
28181
+ let requestedLevel = this.wordListLevel(paragraph, wordListIndents);
28274
28182
  const rememberedResetLevel = declaredLevel === 1 ? state.resetListLevels.get(listId) : null;
28275
28183
  if (rememberedResetLevel) {
28276
28184
  return Math.max(requestedLevel, rememberedResetLevel);
@@ -28291,8 +28199,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
28291
28199
  let currentList = state.listStack[stackIndex];
28292
28200
  if (currentList?.tagName.toLowerCase() !== listType || currentList?.getAttribute('type') !== orderedListType ||
28293
28201
  state.listParents[stackIndex] !== listParent) {
28294
- const rootIndent = level === 1 ? state.listRunVisualLevel - 1 : 0;
28295
- currentList = this.createWordList(documentElement, paragraph, listType, orderedListType, parentListItem, rootIndent);
28202
+ currentList = this.createWordList(documentElement, paragraph, listType, orderedListType, parentListItem);
28296
28203
  state.listStack[stackIndex] = currentList;
28297
28204
  state.listParents[stackIndex] = listParent;
28298
28205
  }
@@ -28300,18 +28207,15 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
28300
28207
  state.listParents.length = level;
28301
28208
  return currentList;
28302
28209
  }
28303
- createWordList(documentElement, paragraph, listType, orderedListType, parentListItem, rootIndent) {
28210
+ createWordList(documentElement, paragraph, listType, orderedListType, parentListItem) {
28304
28211
  const list = documentElement.createElement(listType);
28305
- const listStart = this.wordListStart(paragraph, orderedListType);
28212
+ const listStart = this.wordListStart(paragraph);
28306
28213
  if (listType === 'ol' && listStart > 1) {
28307
28214
  list.setAttribute('start', listStart.toString());
28308
28215
  }
28309
28216
  if (orderedListType) {
28310
28217
  list.setAttribute('type', orderedListType);
28311
28218
  }
28312
- if (rootIndent > 0) {
28313
- list.dataset.indent = Math.min(6, rootIndent).toString();
28314
- }
28315
28219
  if (parentListItem) {
28316
28220
  parentListItem.appendChild(list);
28317
28221
  }
@@ -28370,10 +28274,11 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
28370
28274
  .find((element) => /mso-list:\s*Ignore/i.test(element.getAttribute('style') || ''));
28371
28275
  return (markerElement ? markerElement.textContent : paragraph.textContent).trim();
28372
28276
  }
28373
- wordListVisualLevel(paragraph, wordListIndents) {
28277
+ wordListLevel(paragraph, wordListIndents) {
28278
+ const declaredLevel = this.wordListDeclaredLevel(paragraph);
28374
28279
  const indent = this.wordListIndent(paragraph);
28375
28280
  const visualLevel = wordListIndents.indexOf(indent) + 1;
28376
- return visualLevel || 1;
28281
+ return Math.max(declaredLevel, visualLevel || 1);
28377
28282
  }
28378
28283
  wordListDeclaredLevel(paragraph) {
28379
28284
  const match = (paragraph.getAttribute('style') || '').match(/mso-list:[^;]*\blevel(\d+)/i);
@@ -28394,18 +28299,9 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
28394
28299
  const indent = Math.max(this.cssLengthToPixels(this.cssStyleLength(style, 'margin-left')), this.cssLengthToPixels(this.cssStyleLength(style, 'margin-inline-start')), this.cssLengthToPixels(this.cssStyleLength(style, 'mso-para-margin-left')), this.cssLengthToPixels(this.cssStyleLength(style, 'mso-margin-left-alt')), this.cssLengthToPixels(this.cssMarginLeftLength(style)));
28395
28300
  return Math.round(indent);
28396
28301
  }
28397
- wordListStart(paragraph, orderedListType) {
28398
- const match = /^\(?([a-z]+|\d+)[.)]/i.exec(this.wordListMarker(paragraph));
28399
- if (!match) {
28400
- return 1;
28401
- }
28402
- if (/^\d+$/.test(match[1])) {
28403
- return Number(match[1]);
28404
- }
28405
- if (orderedListType === 'a') {
28406
- return match[1].toLowerCase().split('').reduce((start, character) => (start * 26) + character.charCodeAt(0) - 96, 0);
28407
- }
28408
- return 1;
28302
+ wordListStart(paragraph) {
28303
+ const match = /^(\d+)[.)]/.exec(this.wordListMarker(paragraph));
28304
+ return match ? Number(match[1]) : 1;
28409
28305
  }
28410
28306
  copyListItemContents(documentElement, paragraph, listItem) {
28411
28307
  Array.prototype.slice.call(paragraph.childNodes).forEach((childNode) => {
@@ -29124,7 +29020,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
29124
29020
  type: ViewChild,
29125
29021
  args: ['editorHost']
29126
29022
  }] }); })();
29127
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteRichTextAreaFieldComponent, { className: "WriteRichTextAreaFieldComponent", filePath: "lib/shared/components/palette/rich-text-area/write-rich-text-area-field.component.ts", lineNumber: 139 }); })();
29023
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteRichTextAreaFieldComponent, { className: "WriteRichTextAreaFieldComponent", filePath: "lib/shared/components/palette/rich-text-area/write-rich-text-area-field.component.ts", lineNumber: 137 }); })();
29128
29024
 
29129
29025
  class ReadTextFieldComponent extends AbstractFieldReadComponent {
29130
29026
  static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextFieldComponent_BaseFactory; return function ReadTextFieldComponent_Factory(__ngFactoryType__) { return (ɵReadTextFieldComponent_BaseFactory || (ɵReadTextFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextFieldComponent)))(__ngFactoryType__ || ReadTextFieldComponent); }; })();
@@ -37041,7 +36937,7 @@ i0.ɵɵsetComponentScope(ReadLinkedCasesFieldComponent, function () { return [i5
37041
36937
  // Components for linked cases
37042
36938
  LinkedCasesToTableComponent,
37043
36939
  LinkedCasesFromTableComponent]; }, []);
37044
- i0.ɵɵsetComponentScope(WriteAddressFieldComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i4.NgSelectOption, i4.ɵNgSelectMultipleOption, i4.DefaultValueAccessor, i4.SelectControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormControlDirective, i4.FormGroupDirective, WriteComplexFieldComponent]; }, function () { return [FieldLabelPipe, i1.RpxTranslatePipe]; });
36940
+ i0.ɵɵsetComponentScope(WriteAddressFieldComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i4.NgSelectOption, i4.ɵNgSelectMultipleOption, i4.DefaultValueAccessor, i4.SelectControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormControlDirective, i4.FormGroupDirective, MarkdownComponent, WriteComplexFieldComponent]; }, function () { return [FieldLabelPipe, i1.RpxTranslatePipe]; });
37045
36941
  i0.ɵɵsetComponentScope(WriteComplexFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase, i4.NgControlStatusGroup, i4.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent,
37046
36942
  FieldWriteComponent]; }, function () { return [FieldLabelPipe, IsReadOnlyPipe]; });
37047
36943
  i0.ɵɵsetComponentScope(WriteDocumentFieldComponent, function () { return [i5.NgClass, i5.NgIf, i1$4.MarkdownComponent, ReadDocumentFieldComponent]; }, function () { return [FieldLabelPipe, i1.RpxTranslatePipe]; });