@hmcts/ccd-case-ui-toolkit 7.4.15-EXUI-5378 → 7.4.15-accessibility-fixes

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.
@@ -4959,7 +4959,7 @@ class FieldsUtils {
4959
4959
 
4960
4960
  // @ts-nocheck
4961
4961
  // This file is generated by npm run generate:condition-parser. Do not edit by hand.
4962
- // @generated by Peggy 5.1.0.
4962
+ // @generated by Peggy 5.1.1.
4963
4963
  //
4964
4964
  // https://peggyjs.org/
4965
4965
  class peg$SyntaxError extends SyntaxError {
@@ -5014,10 +5014,9 @@ class peg$SyntaxError extends SyntaxError {
5014
5014
  }
5015
5015
  return s;
5016
5016
  }
5017
- function literalEscape(s) {
5017
+ function escape(s, special) {
5018
5018
  return unicodeEscape(s
5019
- .replace(/\\/g, "\\\\")
5020
- .replace(/"/g, "\\\"")
5019
+ .replace(special, "\\$&")
5021
5020
  .replace(/\0/g, "\\0")
5022
5021
  .replace(/\t/g, "\\t")
5023
5022
  .replace(/\n/g, "\\n")
@@ -5025,18 +5024,11 @@ class peg$SyntaxError extends SyntaxError {
5025
5024
  .replace(/[\x00-\x0F]/g, ch => "\\x0" + hex(ch))
5026
5025
  .replace(/[\x10-\x1F\x7F-\x9F]/g, ch => "\\x" + hex(ch)));
5027
5026
  }
5027
+ function literalEscape(s) {
5028
+ return escape(s, /[\\"]/g);
5029
+ }
5028
5030
  function classEscape(s) {
5029
- return unicodeEscape(s
5030
- .replace(/\\/g, "\\\\")
5031
- .replace(/\]/g, "\\]")
5032
- .replace(/\^/g, "\\^")
5033
- .replace(/-/g, "\\-")
5034
- .replace(/\0/g, "\\0")
5035
- .replace(/\t/g, "\\t")
5036
- .replace(/\n/g, "\\n")
5037
- .replace(/\r/g, "\\r")
5038
- .replace(/[\x00-\x0F]/g, ch => "\\x0" + hex(ch))
5039
- .replace(/[\x10-\x1F\x7F-\x9F]/g, ch => "\\x" + hex(ch)));
5031
+ return escape(s, /[\\\]^-]/g);
5040
5032
  }
5041
5033
  const DESCRIBE_EXPECTATION_FNS = {
5042
5034
  literal(expectation) {
@@ -5109,11 +5101,6 @@ function peg$parse(input, options) {
5109
5101
  const peg$c7 = "=";
5110
5102
  const peg$c8 = "!=";
5111
5103
  const peg$c9 = "CONTAINS";
5112
- const peg$r0 = /^[a-zA-Z]/;
5113
- const peg$r1 = /^[A-Za-z0-9._\-]/;
5114
- const peg$r2 = /^[0-9]/;
5115
- const peg$r3 = /^[A-Za-z0-9.,* _&()\/\-]/;
5116
- const peg$r4 = /^[ \t]/;
5117
5104
  const peg$e0 = peg$literalExpectation("AND", false);
5118
5105
  const peg$e1 = peg$literalExpectation("OR", false);
5119
5106
  const peg$e2 = peg$classExpectation([["a", "z"], ["A", "Z"]], false, false, false);
@@ -5150,6 +5137,7 @@ function peg$parse(input, options) {
5150
5137
  let peg$maxFailExpected = options.peg$maxFailExpected || [];
5151
5138
  let peg$silentFails = options.peg$silentFails | 0;
5152
5139
  let peg$result;
5140
+ let peg$charCode;
5153
5141
  if (options.startRule) {
5154
5142
  if (!(options.startRule in peg$startRuleFunctions)) {
5155
5143
  throw new Error("Can't start parsing from rule \"" + options.startRule + "\".");
@@ -5288,10 +5276,12 @@ function peg$parse(input, options) {
5288
5276
  s1 = peg$parseFormulaTerm();
5289
5277
  if (s1 !== peg$FAILED) {
5290
5278
  s2 = [];
5291
- s3 = peg$parseJoinComparator();
5292
- while (s3 !== peg$FAILED) {
5293
- s2.push(s3);
5279
+ for (;;) {
5294
5280
  s3 = peg$parseJoinComparator();
5281
+ if (s3 === peg$FAILED) {
5282
+ break;
5283
+ }
5284
+ s2.push(s3);
5295
5285
  }
5296
5286
  peg$savedPos = s0;
5297
5287
  s0 = peg$f0(s1, s2);
@@ -5459,14 +5449,14 @@ function peg$parse(input, options) {
5459
5449
  let s0, s1, s2;
5460
5450
  s0 = peg$currPos;
5461
5451
  s1 = [];
5462
- s2 = peg$parseLetter();
5463
- if (s2 !== peg$FAILED) {
5464
- while (s2 !== peg$FAILED) {
5465
- s1.push(s2);
5466
- s2 = peg$parseLetter();
5452
+ for (;;) {
5453
+ s2 = peg$parseLetter();
5454
+ if (s2 === peg$FAILED) {
5455
+ break;
5467
5456
  }
5457
+ s1.push(s2);
5468
5458
  }
5469
- else {
5459
+ if (s1.length < 1) {
5470
5460
  s1 = peg$FAILED;
5471
5461
  }
5472
5462
  if (s1 !== peg$FAILED) {
@@ -5479,7 +5469,7 @@ function peg$parse(input, options) {
5479
5469
  function peg$parseLetter() {
5480
5470
  let s0;
5481
5471
  s0 = input.charAt(peg$currPos);
5482
- if (peg$r0.test(s0)) {
5472
+ if ((peg$charCode = s0.charCodeAt(0), (peg$charCode >= 97 && peg$charCode <= 122) || (peg$charCode >= 65 && peg$charCode <= 90))) {
5483
5473
  peg$currPos++;
5484
5474
  }
5485
5475
  else {
@@ -5553,32 +5543,23 @@ function peg$parse(input, options) {
5553
5543
  let s0, s1, s2;
5554
5544
  s0 = peg$currPos;
5555
5545
  s1 = [];
5556
- s2 = input.charAt(peg$currPos);
5557
- if (peg$r1.test(s2)) {
5558
- peg$currPos++;
5559
- }
5560
- else {
5561
- s2 = peg$FAILED;
5562
- if (peg$silentFails === 0) {
5563
- peg$fail(peg$e3);
5546
+ for (;;) {
5547
+ s2 = input.charAt(peg$currPos);
5548
+ if ((peg$charCode = s2.charCodeAt(0), (peg$charCode >= 65 && peg$charCode <= 90) || (peg$charCode >= 97 && peg$charCode <= 122) || (peg$charCode >= 48 && peg$charCode <= 57) || peg$charCode === 46 || peg$charCode === 95 || peg$charCode === 45)) {
5549
+ peg$currPos++;
5564
5550
  }
5565
- }
5566
- if (s2 !== peg$FAILED) {
5567
- while (s2 !== peg$FAILED) {
5568
- s1.push(s2);
5569
- s2 = input.charAt(peg$currPos);
5570
- if (peg$r1.test(s2)) {
5571
- peg$currPos++;
5572
- }
5573
- else {
5574
- s2 = peg$FAILED;
5575
- if (peg$silentFails === 0) {
5576
- peg$fail(peg$e3);
5577
- }
5551
+ else {
5552
+ s2 = peg$FAILED;
5553
+ if (peg$silentFails === 0) {
5554
+ peg$fail(peg$e3);
5578
5555
  }
5579
5556
  }
5557
+ if (s2 === peg$FAILED) {
5558
+ break;
5559
+ }
5560
+ s1.push(s2);
5580
5561
  }
5581
- else {
5562
+ if (s1.length < 1) {
5582
5563
  s1 = peg$FAILED;
5583
5564
  }
5584
5565
  if (s1 !== peg$FAILED) {
@@ -5619,32 +5600,23 @@ function peg$parse(input, options) {
5619
5600
  function peg$parsenumber() {
5620
5601
  let s0, s1;
5621
5602
  s0 = [];
5622
- s1 = input.charAt(peg$currPos);
5623
- if (peg$r2.test(s1)) {
5624
- peg$currPos++;
5625
- }
5626
- else {
5627
- s1 = peg$FAILED;
5628
- if (peg$silentFails === 0) {
5629
- peg$fail(peg$e6);
5603
+ for (;;) {
5604
+ s1 = input.charAt(peg$currPos);
5605
+ if ((peg$charCode = s1.charCodeAt(0), (peg$charCode >= 48 && peg$charCode <= 57))) {
5606
+ peg$currPos++;
5630
5607
  }
5631
- }
5632
- if (s1 !== peg$FAILED) {
5633
- while (s1 !== peg$FAILED) {
5634
- s0.push(s1);
5635
- s1 = input.charAt(peg$currPos);
5636
- if (peg$r2.test(s1)) {
5637
- peg$currPos++;
5638
- }
5639
- else {
5640
- s1 = peg$FAILED;
5641
- if (peg$silentFails === 0) {
5642
- peg$fail(peg$e6);
5643
- }
5608
+ else {
5609
+ s1 = peg$FAILED;
5610
+ if (peg$silentFails === 0) {
5611
+ peg$fail(peg$e6);
5644
5612
  }
5645
5613
  }
5614
+ if (s1 === peg$FAILED) {
5615
+ break;
5616
+ }
5617
+ s0.push(s1);
5646
5618
  }
5647
- else {
5619
+ if (s0.length < 1) {
5648
5620
  s0 = peg$FAILED;
5649
5621
  }
5650
5622
  return s0;
@@ -5664,20 +5636,9 @@ function peg$parse(input, options) {
5664
5636
  }
5665
5637
  if (s1 !== peg$FAILED) {
5666
5638
  s2 = [];
5667
- s3 = input.charAt(peg$currPos);
5668
- if (peg$r3.test(s3)) {
5669
- peg$currPos++;
5670
- }
5671
- else {
5672
- s3 = peg$FAILED;
5673
- if (peg$silentFails === 0) {
5674
- peg$fail(peg$e8);
5675
- }
5676
- }
5677
- while (s3 !== peg$FAILED) {
5678
- s2.push(s3);
5639
+ for (;;) {
5679
5640
  s3 = input.charAt(peg$currPos);
5680
- if (peg$r3.test(s3)) {
5641
+ if ((peg$charCode = s3.charCodeAt(0), (peg$charCode >= 65 && peg$charCode <= 90) || (peg$charCode >= 97 && peg$charCode <= 122) || (peg$charCode >= 48 && peg$charCode <= 57) || peg$charCode === 46 || peg$charCode === 44 || peg$charCode === 42 || peg$charCode === 32 || peg$charCode === 95 || peg$charCode === 38 || peg$charCode === 40 || peg$charCode === 41 || peg$charCode === 47 || peg$charCode === 45)) {
5681
5642
  peg$currPos++;
5682
5643
  }
5683
5644
  else {
@@ -5686,6 +5647,10 @@ function peg$parse(input, options) {
5686
5647
  peg$fail(peg$e8);
5687
5648
  }
5688
5649
  }
5650
+ if (s3 === peg$FAILED) {
5651
+ break;
5652
+ }
5653
+ s2.push(s3);
5689
5654
  }
5690
5655
  if (input.charCodeAt(peg$currPos) === 34) {
5691
5656
  s3 = peg$c4;
@@ -5816,7 +5781,7 @@ function peg$parse(input, options) {
5816
5781
  let s0, s1;
5817
5782
  peg$silentFails++;
5818
5783
  s0 = input.charAt(peg$currPos);
5819
- if (peg$r4.test(s0)) {
5784
+ if ((peg$charCode = s0.charCodeAt(0), peg$charCode === 32 || peg$charCode === 9)) {
5820
5785
  peg$currPos++;
5821
5786
  }
5822
5787
  else {
@@ -5838,14 +5803,14 @@ function peg$parse(input, options) {
5838
5803
  let s0, s1;
5839
5804
  peg$silentFails++;
5840
5805
  s0 = [];
5841
- s1 = peg$parsews();
5842
- if (s1 !== peg$FAILED) {
5843
- while (s1 !== peg$FAILED) {
5844
- s0.push(s1);
5845
- s1 = peg$parsews();
5806
+ for (;;) {
5807
+ s1 = peg$parsews();
5808
+ if (s1 === peg$FAILED) {
5809
+ break;
5846
5810
  }
5811
+ s0.push(s1);
5847
5812
  }
5848
- else {
5813
+ if (s0.length < 1) {
5849
5814
  s0 = peg$FAILED;
5850
5815
  }
5851
5816
  peg$silentFails--;
@@ -17781,6 +17746,30 @@ class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
17781
17746
  }], null, null); })();
17782
17747
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDynamicListFieldComponent, { className: "WriteDynamicListFieldComponent", filePath: "lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.ts", lineNumber: 10 }); })();
17783
17748
 
17749
+ function MarkdownComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
17750
+ const _r1 = i0.ɵɵgetCurrentView();
17751
+ i0.ɵɵelementContainerStart(0);
17752
+ i0.ɵɵelementStart(1, "markdown", 2);
17753
+ i0.ɵɵpipe(2, "ccdCaseReference");
17754
+ i0.ɵɵlistener("click", function MarkdownComponent_ng_container_0_Template_markdown_click_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.interceptClick($event)); });
17755
+ i0.ɵɵelementEnd();
17756
+ i0.ɵɵelementContainerEnd();
17757
+ } if (rf & 2) {
17758
+ const ctx_r1 = i0.ɵɵnextContext();
17759
+ i0.ɵɵadvance();
17760
+ i0.ɵɵproperty("data", i0.ɵɵpipeBind1(2, 2, ctx_r1.content))("inline", true);
17761
+ } }
17762
+ function MarkdownComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
17763
+ const _r3 = i0.ɵɵgetCurrentView();
17764
+ i0.ɵɵelementStart(0, "div")(1, "markdown", 3);
17765
+ i0.ɵɵpipe(2, "ccdCaseReference");
17766
+ i0.ɵɵlistener("click", function MarkdownComponent_ng_template_1_Template_markdown_click_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.interceptClick($event)); });
17767
+ i0.ɵɵelementEnd()();
17768
+ } if (rf & 2) {
17769
+ const ctx_r1 = i0.ɵɵnextContext();
17770
+ i0.ɵɵadvance();
17771
+ i0.ɵɵproperty("data", i0.ɵɵpipeBind1(2, 1, ctx_r1.content));
17772
+ } }
17784
17773
  class MarkdownComponent {
17785
17774
  router;
17786
17775
  renderer;
@@ -17788,6 +17777,7 @@ class MarkdownComponent {
17788
17777
  cdr;
17789
17778
  content;
17790
17779
  renderUrlToTextFeature = true;
17780
+ inline = false;
17791
17781
  constructor(router, renderer, ngZone, cdr) {
17792
17782
  this.router = router;
17793
17783
  this.renderer = renderer;
@@ -17854,23 +17844,22 @@ class MarkdownComponent {
17854
17844
  return markdownLinkRegex.test(inputString);
17855
17845
  }
17856
17846
  static ɵfac = function MarkdownComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MarkdownComponent)(i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
17857
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], inputs: { content: "content", renderUrlToTextFeature: "renderUrlToTextFeature" }, standalone: false, decls: 3, vars: 3, consts: [[1, "markdown", 3, "click", "data"]], template: function MarkdownComponent_Template(rf, ctx) { if (rf & 1) {
17858
- i0.ɵɵelementStart(0, "div")(1, "markdown", 0);
17859
- i0.ɵɵpipe(2, "ccdCaseReference");
17860
- i0.ɵɵlistener("click", function MarkdownComponent_Template_markdown_click_1_listener($event) { return ctx.interceptClick($event); });
17861
- i0.ɵɵelementEnd()();
17847
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], inputs: { content: "content", renderUrlToTextFeature: "renderUrlToTextFeature", inline: "inline" }, standalone: false, decls: 3, vars: 2, consts: [["blockMarkdown", ""], [4, "ngIf", "ngIfElse"], [1, "markdown", 3, "click", "data", "inline"], [1, "markdown", 3, "click", "data"]], template: function MarkdownComponent_Template(rf, ctx) { if (rf & 1) {
17848
+ i0.ɵɵtemplate(0, MarkdownComponent_ng_container_0_Template, 3, 4, "ng-container", 1)(1, MarkdownComponent_ng_template_1_Template, 3, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
17862
17849
  } if (rf & 2) {
17863
- i0.ɵɵadvance();
17864
- i0.ɵɵproperty("data", i0.ɵɵpipeBind1(2, 1, ctx.content));
17865
- } }, dependencies: [i1$4.MarkdownComponent, CaseReferencePipe], encapsulation: 2, changeDetection: 0 });
17850
+ const blockMarkdown_r4 = i0.ɵɵreference(2);
17851
+ i0.ɵɵproperty("ngIf", ctx.inline)("ngIfElse", blockMarkdown_r4);
17852
+ } }, dependencies: [i5.NgIf, i1$4.MarkdownComponent, CaseReferencePipe], encapsulation: 2, changeDetection: 0 });
17866
17853
  }
17867
17854
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkdownComponent, [{
17868
17855
  type: Component,
17869
- args: [{ selector: 'ccd-markdown', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div><markdown class=\"markdown\" (click)=\"interceptClick($event)\" [data]=\"content | ccdCaseReference\"></markdown></div>\n" }]
17856
+ args: [{ selector: 'ccd-markdown', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-container *ngIf=\"inline; else blockMarkdown\">\n <markdown class=\"markdown\" (click)=\"interceptClick($event)\" [data]=\"content | ccdCaseReference\" [inline]=\"true\"></markdown>\n</ng-container>\n<ng-template #blockMarkdown>\n <div><markdown class=\"markdown\" (click)=\"interceptClick($event)\" [data]=\"content | ccdCaseReference\"></markdown></div>\n</ng-template>\n" }]
17870
17857
  }], () => [{ type: i1$2.Router }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], { content: [{
17871
17858
  type: Input
17872
17859
  }], renderUrlToTextFeature: [{
17873
17860
  type: Input
17861
+ }], inline: [{
17862
+ type: Input
17874
17863
  }] }); })();
17875
17864
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MarkdownComponent, { className: "MarkdownComponent", filePath: "lib/shared/components/palette/markdown/markdown.component.ts", lineNumber: 12 }); })();
17876
17865
 
@@ -17971,10 +17960,10 @@ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, c
17971
17960
  i0.ɵɵelementStart(1, "div", 8)(2, "input", 9);
17972
17961
  i0.ɵɵlistener("change", function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template_input_change_2_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onCheckChange($event)); });
17973
17962
  i0.ɵɵelementEnd();
17974
- i0.ɵɵelementStart(3, "label", 10);
17975
- i0.ɵɵelement(4, "ccd-markdown", 11);
17976
- i0.ɵɵpipe(5, "rpxTranslate");
17977
- i0.ɵɵelementEnd()();
17963
+ i0.ɵɵelementStart(3, "label", 10)(4, "span", 5);
17964
+ i0.ɵɵelement(5, "ccd-markdown", 11);
17965
+ i0.ɵɵpipe(6, "rpxTranslate");
17966
+ i0.ɵɵelementEnd()()();
17978
17967
  i0.ɵɵelementContainerEnd();
17979
17968
  } if (rf & 2) {
17980
17969
  const checkbox_r3 = ctx.$implicit;
@@ -17983,8 +17972,8 @@ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, c
17983
17972
  i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx_r0.createElementId(checkbox_r3.code)))("name", i0.ɵɵinterpolate(ctx_r0.id()))("value", checkbox_r3.code)("checked", ctx_r0.isSelected(checkbox_r3.code));
17984
17973
  i0.ɵɵadvance();
17985
17974
  i0.ɵɵproperty("for", i0.ɵɵinterpolate(ctx_r0.createElementId(checkbox_r3.code)));
17986
- i0.ɵɵadvance();
17987
- i0.ɵɵproperty("content", i0.ɵɵpipeBind1(5, 10, checkbox_r3.label))("renderUrlToTextFeature", false);
17975
+ i0.ɵɵadvance(2);
17976
+ i0.ɵɵproperty("content", i0.ɵɵpipeBind1(6, 11, checkbox_r3.label))("renderUrlToTextFeature", false)("inline", true);
17988
17977
  } }
17989
17978
  class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
17990
17979
  checkboxes;
@@ -18048,11 +18037,11 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
18048
18037
  }
18049
18038
  }
18050
18039
  static ɵfac = /*@__PURE__*/ (() => { let ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory; return function WriteDynamicMultiSelectListFieldComponent_Factory(__ngFactoryType__) { return (ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory || (ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent)))(__ngFactoryType__ || WriteDynamicMultiSelectListFieldComponent); }; })();
18051
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "change", "id", "name", "value", "checked"], [1, "form-label", 3, "for"], [3, "content", "renderUrlToTextFeature"]], template: function WriteDynamicMultiSelectListFieldComponent_Template(rf, ctx) { if (rf & 1) {
18040
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "change", "id", "name", "value", "checked"], [3, "for"], [3, "content", "renderUrlToTextFeature", "inline"]], template: function WriteDynamicMultiSelectListFieldComponent_Template(rf, ctx) { if (rf & 1) {
18052
18041
  i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")(2, "legend");
18053
18042
  i0.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1)(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2)(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
18054
18043
  i0.ɵɵelementEnd();
18055
- i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 6, 12, "ng-container", 4);
18044
+ i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 7, 13, "ng-container", 4);
18056
18045
  i0.ɵɵelementEnd()();
18057
18046
  } if (rf & 2) {
18058
18047
  i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$T, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
@@ -18068,7 +18057,7 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
18068
18057
  }
18069
18058
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
18070
18059
  type: Component,
18071
- args: [{ selector: 'ccd-write-dynamic-multi-select-list-field', standalone: false, template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'error': !checkboxes.valid && checkboxes.touched}\" [id]=\"id()\">\n\n <fieldset>\n\n <legend>\n <span *ngIf=\"caseField.label\" class=\"form-label\">{{caseField | ccdFieldLabel}}</span>\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">{{caseField.hint_text}}</span>\n <span *ngIf=\"checkboxes.errors && checkboxes.touched\" class=\"error-message\">{{checkboxes.errors |\n ccdFirstError}}</span>\n </legend>\n\n <ng-container *ngFor=\"let checkbox of caseField.list_items\">\n\n <div class=\"multiple-choice\">\n <input class=\"form-control\" id=\"{{ createElementId(checkbox.code) }}\" name=\"{{ id() }}\" type=\"checkbox\"\n [value]=\"checkbox.code\" [checked]=\"isSelected(checkbox.code)\" (change)=\"onCheckChange($event)\">\n <label class=\"form-label\" for=\"{{ createElementId(checkbox.code) }}\">\n <ccd-markdown [content]=\"checkbox.label | rpxTranslate\" [renderUrlToTextFeature]=\"false\"></ccd-markdown>\n </label>\n </div>\n\n </ng-container>\n\n </fieldset>\n\n</div>\n", styles: ["ccd-markdown{display:inline-block}\n"] }]
18060
+ args: [{ selector: 'ccd-write-dynamic-multi-select-list-field', standalone: false, template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'error': !checkboxes.valid && checkboxes.touched}\" [id]=\"id()\">\n\n <fieldset>\n\n <legend>\n <span *ngIf=\"caseField.label\" class=\"form-label\">{{caseField | ccdFieldLabel}}</span>\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">{{caseField.hint_text}}</span>\n <span *ngIf=\"checkboxes.errors && checkboxes.touched\" class=\"error-message\">{{checkboxes.errors |\n ccdFirstError}}</span>\n </legend>\n\n <ng-container *ngFor=\"let checkbox of caseField.list_items\">\n\n <div class=\"multiple-choice\">\n <input class=\"form-control\" id=\"{{ createElementId(checkbox.code) }}\" name=\"{{ id() }}\" type=\"checkbox\"\n [value]=\"checkbox.code\" [checked]=\"isSelected(checkbox.code)\" (change)=\"onCheckChange($event)\">\n <label for=\"{{ createElementId(checkbox.code) }}\">\n <span class=\"form-label\">\n <ccd-markdown [content]=\"checkbox.label | rpxTranslate\" [renderUrlToTextFeature]=\"false\" [inline]=\"true\"></ccd-markdown>\n </span>\n </label>\n </div>\n\n </ng-container>\n\n </fieldset>\n\n</div>\n", styles: ["ccd-markdown{display:inline-block}\n"] }]
18072
18061
  }], null, null); })();
18073
18062
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDynamicMultiSelectListFieldComponent, { className: "WriteDynamicMultiSelectListFieldComponent", filePath: "lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.ts", lineNumber: 11 }); })();
18074
18063
 
@@ -33566,8 +33555,8 @@ class UpdateFlagComponent extends AbstractJourneyComponent {
33566
33555
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UpdateFlagComponent, { className: "UpdateFlagComponent", filePath: "lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.ts", lineNumber: 23 }); })();
33567
33556
 
33568
33557
  const _c0$n = a0 => ({ "form-group-error": a0 });
33569
- function UpdateFlagAddTranslationFormComponent_div_10_div_5_Template(rf, ctx) { if (rf & 1) {
33570
- i0.ɵɵelementStart(0, "div", 18)(1, "span", 19);
33558
+ function UpdateFlagAddTranslationFormComponent_div_14_Template(rf, ctx) { if (rf & 1) {
33559
+ i0.ɵɵelementStart(0, "div", 17)(1, "span", 18);
33571
33560
  i0.ɵɵtext(2);
33572
33561
  i0.ɵɵpipe(3, "rpxTranslate");
33573
33562
  i0.ɵɵelementEnd();
@@ -33575,14 +33564,14 @@ function UpdateFlagAddTranslationFormComponent_div_10_div_5_Template(rf, ctx) {
33575
33564
  i0.ɵɵpipe(5, "rpxTranslate");
33576
33565
  i0.ɵɵelementEnd();
33577
33566
  } if (rf & 2) {
33578
- const ctx_r0 = i0.ɵɵnextContext(2);
33567
+ const ctx_r0 = i0.ɵɵnextContext();
33579
33568
  i0.ɵɵadvance(2);
33580
33569
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
33581
33570
  i0.ɵɵadvance(2);
33582
33571
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.otherFlagDescriptionCharLimitErrorMessage), " ");
33583
33572
  } }
33584
- function UpdateFlagAddTranslationFormComponent_div_10_div_15_Template(rf, ctx) { if (rf & 1) {
33585
- i0.ɵɵelementStart(0, "div", 20)(1, "span", 19);
33573
+ function UpdateFlagAddTranslationFormComponent_div_24_Template(rf, ctx) { if (rf & 1) {
33574
+ i0.ɵɵelementStart(0, "div", 19)(1, "span", 18);
33586
33575
  i0.ɵɵtext(2);
33587
33576
  i0.ɵɵpipe(3, "rpxTranslate");
33588
33577
  i0.ɵɵelementEnd();
@@ -33590,62 +33579,14 @@ function UpdateFlagAddTranslationFormComponent_div_10_div_15_Template(rf, ctx) {
33590
33579
  i0.ɵɵpipe(5, "rpxTranslate");
33591
33580
  i0.ɵɵelementEnd();
33592
33581
  } if (rf & 2) {
33593
- const ctx_r0 = i0.ɵɵnextContext(2);
33582
+ const ctx_r0 = i0.ɵɵnextContext();
33594
33583
  i0.ɵɵadvance(2);
33595
33584
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
33596
33585
  i0.ɵɵadvance(2);
33597
33586
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.otherFlagDescriptionWelshCharLimitErrorMessage), " ");
33598
33587
  } }
33599
- function UpdateFlagAddTranslationFormComponent_div_10_Template(rf, ctx) { if (rf & 1) {
33600
- i0.ɵɵelementStart(0, "div")(1, "div", 7)(2, "label", 8);
33601
- i0.ɵɵtext(3);
33602
- i0.ɵɵpipe(4, "rpxTranslate");
33603
- i0.ɵɵelementEnd();
33604
- i0.ɵɵtemplate(5, UpdateFlagAddTranslationFormComponent_div_10_div_5_Template, 6, 6, "div", 14);
33605
- i0.ɵɵelementStart(6, "textarea", 10);
33606
- i0.ɵɵtext(7, " ");
33607
- i0.ɵɵelementEnd();
33608
- i0.ɵɵelementStart(8, "div", 15);
33609
- i0.ɵɵtext(9);
33610
- i0.ɵɵpipe(10, "rpxTranslate");
33611
- i0.ɵɵelementEnd()();
33612
- i0.ɵɵelementStart(11, "div", 7)(12, "label", 8);
33613
- i0.ɵɵtext(13);
33614
- i0.ɵɵpipe(14, "rpxTranslate");
33615
- i0.ɵɵelementEnd();
33616
- i0.ɵɵtemplate(15, UpdateFlagAddTranslationFormComponent_div_10_div_15_Template, 6, 6, "div", 16);
33617
- i0.ɵɵelementStart(16, "textarea", 10);
33618
- i0.ɵɵtext(17, " ");
33619
- i0.ɵɵelementEnd();
33620
- i0.ɵɵelementStart(18, "div", 17);
33621
- i0.ɵɵtext(19);
33622
- i0.ɵɵpipe(20, "rpxTranslate");
33623
- i0.ɵɵelementEnd()()();
33624
- } if (rf & 2) {
33625
- const ctx_r0 = i0.ɵɵnextContext();
33626
- i0.ɵɵadvance(2);
33627
- i0.ɵɵproperty("for", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
33628
- i0.ɵɵadvance();
33629
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 14, "Other description"));
33630
- i0.ɵɵadvance(2);
33631
- i0.ɵɵproperty("ngIf", ctx_r0.otherFlagDescriptionCharLimitErrorMessage);
33632
- i0.ɵɵadvance();
33633
- i0.ɵɵproperty("id", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("name", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("formControlName", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
33634
- i0.ɵɵadvance(3);
33635
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 16, ctx_r0.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
33636
- i0.ɵɵadvance(3);
33637
- i0.ɵɵproperty("for", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
33638
- i0.ɵɵadvance();
33639
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 18, "Other description (Welsh)"));
33640
- i0.ɵɵadvance(2);
33641
- i0.ɵɵproperty("ngIf", ctx_r0.otherFlagDescriptionWelshCharLimitErrorMessage);
33642
- i0.ɵɵadvance();
33643
- i0.ɵɵproperty("id", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("name", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("formControlName", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
33644
- i0.ɵɵadvance(3);
33645
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 20, ctx_r0.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
33646
- } }
33647
- function UpdateFlagAddTranslationFormComponent_div_15_Template(rf, ctx) { if (rf & 1) {
33648
- i0.ɵɵelementStart(0, "div", 21)(1, "span", 19);
33588
+ function UpdateFlagAddTranslationFormComponent_div_34_Template(rf, ctx) { if (rf & 1) {
33589
+ i0.ɵɵelementStart(0, "div", 20)(1, "span", 18);
33649
33590
  i0.ɵɵtext(2);
33650
33591
  i0.ɵɵpipe(3, "rpxTranslate");
33651
33592
  i0.ɵɵelementEnd();
@@ -33659,8 +33600,8 @@ function UpdateFlagAddTranslationFormComponent_div_15_Template(rf, ctx) { if (rf
33659
33600
  i0.ɵɵadvance(2);
33660
33601
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsCharLimitErrorMessage), " ");
33661
33602
  } }
33662
- function UpdateFlagAddTranslationFormComponent_div_25_Template(rf, ctx) { if (rf & 1) {
33663
- i0.ɵɵelementStart(0, "div", 22)(1, "span", 19);
33603
+ function UpdateFlagAddTranslationFormComponent_div_44_Template(rf, ctx) { if (rf & 1) {
33604
+ i0.ɵɵelementStart(0, "div", 21)(1, "span", 18);
33664
33605
  i0.ɵɵtext(2);
33665
33606
  i0.ɵɵpipe(3, "rpxTranslate");
33666
33607
  i0.ɵɵelementEnd();
@@ -33680,7 +33621,6 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
33680
33621
  selectedFlag;
33681
33622
  updateFlagAddTranslationTitle;
33682
33623
  errorMessages = [];
33683
- otherFlagType = false;
33684
33624
  otherFlagDescriptionCharLimitErrorMessage = null;
33685
33625
  otherFlagDescriptionWelshCharLimitErrorMessage = null;
33686
33626
  flagCommentsCharLimitErrorMessage = null;
@@ -33688,12 +33628,10 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
33688
33628
  updateFlagAddTranslationStepEnum = UpdateFlagAddTranslationStep;
33689
33629
  caseFlagFormFields = CaseFlagFormFields;
33690
33630
  textMaxCharLimit = 200;
33691
- otherFlagTypeCode = 'OT0001';
33692
33631
  selectedManageCaseLocation = 'selectedManageCaseLocation';
33693
33632
  ngOnInit() {
33694
33633
  this.updateFlagAddTranslationTitle = CaseFlagWizardStepTitle.UPDATE_FLAG_ADD_TRANSLATION;
33695
33634
  this.selectedFlag = this.formGroup.get(this.selectedManageCaseLocation).value;
33696
- this.otherFlagType = this.selectedFlag?.flagDetailDisplay?.flagDetail?.flagCode === this.otherFlagTypeCode;
33697
33635
  this.multipageComponentStateService.getJourneyCollectionMainObject().journeyEndPageNumber++;
33698
33636
  const flagDetail = this.selectedFlag?.flagDetailDisplay?.flagDetail;
33699
33637
  this.formGroup.addControl(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION, new FormControl(flagDetail?.otherDescription));
@@ -33722,23 +33660,21 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
33722
33660
  this.flagCommentsCharLimitErrorMessage = null;
33723
33661
  this.flagCommentsWelshCharLimitErrorMessage = null;
33724
33662
  this.errorMessages = [];
33725
- if (this.otherFlagType) {
33726
- if (this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION)?.value?.length > this.textMaxCharLimit) {
33727
- this.otherFlagDescriptionCharLimitErrorMessage = UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED;
33728
- this.errorMessages.push({
33729
- title: '',
33730
- description: UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED,
33731
- fieldId: CaseFlagFormFields.OTHER_FLAG_DESCRIPTION
33732
- });
33733
- }
33734
- if (this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)?.value?.length > this.textMaxCharLimit) {
33735
- this.otherFlagDescriptionWelshCharLimitErrorMessage = UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED;
33736
- this.errorMessages.push({
33737
- title: '',
33738
- description: UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED,
33739
- fieldId: CaseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH
33740
- });
33741
- }
33663
+ if (this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION)?.value?.length > this.textMaxCharLimit) {
33664
+ this.otherFlagDescriptionCharLimitErrorMessage = UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED;
33665
+ this.errorMessages.push({
33666
+ title: '',
33667
+ description: UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED,
33668
+ fieldId: CaseFlagFormFields.OTHER_FLAG_DESCRIPTION
33669
+ });
33670
+ }
33671
+ if (this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)?.value?.length > this.textMaxCharLimit) {
33672
+ this.otherFlagDescriptionWelshCharLimitErrorMessage = UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED;
33673
+ this.errorMessages.push({
33674
+ title: '',
33675
+ description: UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED,
33676
+ fieldId: CaseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH
33677
+ });
33742
33678
  }
33743
33679
  if (this.formGroup.get(CaseFlagFormFields.COMMENTS)?.value?.length > this.textMaxCharLimit) {
33744
33680
  this.flagCommentsCharLimitErrorMessage = UpdateFlagAddTranslationErrorMessage.COMMENTS_CHAR_LIMIT_EXCEEDED;
@@ -33764,7 +33700,7 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
33764
33700
  }
33765
33701
  }
33766
33702
  static ɵfac = /*@__PURE__*/ (() => { let ɵUpdateFlagAddTranslationFormComponent_BaseFactory; return function UpdateFlagAddTranslationFormComponent_Factory(__ngFactoryType__) { return (ɵUpdateFlagAddTranslationFormComponent_BaseFactory || (ɵUpdateFlagAddTranslationFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(UpdateFlagAddTranslationFormComponent)))(__ngFactoryType__ || UpdateFlagAddTranslationFormComponent); }; })();
33767
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateFlagAddTranslationFormComponent, selectors: [["ccd-update-flag-add-translation-form"]], inputs: { formGroup: "formGroup" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 31, vars: 33, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper", "govuk-!-margin-bottom-6"], [1, "govuk-label", "govuk-label--m"], ["id", "add-translation-form-hint", 1, "govuk-hint"], [4, "ngIf"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "add-translation-flag-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "add-translation-flag-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-flag-comments-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-other-flag-description-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-other-flag-description-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-other-flag-description-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-other-flag-description-char-limit-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", 1, "govuk-error-message"]], template: function UpdateFlagAddTranslationFormComponent_Template(rf, ctx) { if (rf & 1) {
33703
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateFlagAddTranslationFormComponent, selectors: [["ccd-update-flag-add-translation-form"]], inputs: { formGroup: "formGroup" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 50, vars: 54, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper", "govuk-!-margin-bottom-6"], [1, "govuk-label", "govuk-label--m"], ["id", "add-translation-form-hint", 1, "govuk-hint"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "add-translation-other-flag-description-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "add-translation-other-flag-description-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-other-flag-description-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-flag-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-flag-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-flag-comments-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-other-flag-description-char-limit-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", 1, "govuk-error-message"]], template: function UpdateFlagAddTranslationFormComponent_Template(rf, ctx) { if (rf & 1) {
33768
33704
  i0.ɵɵelementContainerStart(0, 0);
33769
33705
  i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "h1", 3)(4, "label", 4);
33770
33706
  i0.ɵɵtext(5);
@@ -33774,67 +33710,108 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
33774
33710
  i0.ɵɵtext(8);
33775
33711
  i0.ɵɵpipe(9, "rpxTranslate");
33776
33712
  i0.ɵɵelementEnd();
33777
- i0.ɵɵtemplate(10, UpdateFlagAddTranslationFormComponent_div_10_Template, 21, 22, "div", 6);
33778
- i0.ɵɵelementStart(11, "div", 7)(12, "label", 8);
33779
- i0.ɵɵtext(13);
33780
- i0.ɵɵpipe(14, "rpxTranslate");
33713
+ i0.ɵɵelementStart(10, "div", 6)(11, "label", 7);
33714
+ i0.ɵɵtext(12);
33715
+ i0.ɵɵpipe(13, "rpxTranslate");
33781
33716
  i0.ɵɵelementEnd();
33782
- i0.ɵɵtemplate(15, UpdateFlagAddTranslationFormComponent_div_15_Template, 6, 6, "div", 9);
33783
- i0.ɵɵelementStart(16, "textarea", 10);
33784
- i0.ɵɵtext(17, " ");
33717
+ i0.ɵɵtemplate(14, UpdateFlagAddTranslationFormComponent_div_14_Template, 6, 6, "div", 8);
33718
+ i0.ɵɵelementStart(15, "textarea", 9);
33719
+ i0.ɵɵtext(16, " ");
33785
33720
  i0.ɵɵelementEnd();
33786
- i0.ɵɵelementStart(18, "div", 11);
33787
- i0.ɵɵtext(19);
33788
- i0.ɵɵpipe(20, "rpxTranslate");
33721
+ i0.ɵɵelementStart(17, "div", 10);
33722
+ i0.ɵɵtext(18);
33723
+ i0.ɵɵpipe(19, "rpxTranslate");
33789
33724
  i0.ɵɵelementEnd()();
33790
- i0.ɵɵelementStart(21, "div", 7)(22, "label", 8);
33791
- i0.ɵɵtext(23);
33792
- i0.ɵɵpipe(24, "rpxTranslate");
33725
+ i0.ɵɵelementStart(20, "div", 6)(21, "label", 7);
33726
+ i0.ɵɵtext(22);
33727
+ i0.ɵɵpipe(23, "rpxTranslate");
33793
33728
  i0.ɵɵelementEnd();
33794
- i0.ɵɵtemplate(25, UpdateFlagAddTranslationFormComponent_div_25_Template, 6, 6, "div", 12);
33795
- i0.ɵɵelementStart(26, "textarea", 10);
33796
- i0.ɵɵtext(27, " ");
33729
+ i0.ɵɵtemplate(24, UpdateFlagAddTranslationFormComponent_div_24_Template, 6, 6, "div", 11);
33730
+ i0.ɵɵelementStart(25, "textarea", 9);
33731
+ i0.ɵɵtext(26, " ");
33797
33732
  i0.ɵɵelementEnd();
33798
- i0.ɵɵelementStart(28, "div", 13);
33799
- i0.ɵɵtext(29);
33800
- i0.ɵɵpipe(30, "rpxTranslate");
33733
+ i0.ɵɵelementStart(27, "div", 12);
33734
+ i0.ɵɵtext(28);
33735
+ i0.ɵɵpipe(29, "rpxTranslate");
33736
+ i0.ɵɵelementEnd()();
33737
+ i0.ɵɵelementStart(30, "div", 6)(31, "label", 7);
33738
+ i0.ɵɵtext(32);
33739
+ i0.ɵɵpipe(33, "rpxTranslate");
33740
+ i0.ɵɵelementEnd();
33741
+ i0.ɵɵtemplate(34, UpdateFlagAddTranslationFormComponent_div_34_Template, 6, 6, "div", 13);
33742
+ i0.ɵɵelementStart(35, "textarea", 9);
33743
+ i0.ɵɵtext(36, " ");
33744
+ i0.ɵɵelementEnd();
33745
+ i0.ɵɵelementStart(37, "div", 14);
33746
+ i0.ɵɵtext(38);
33747
+ i0.ɵɵpipe(39, "rpxTranslate");
33748
+ i0.ɵɵelementEnd()();
33749
+ i0.ɵɵelementStart(40, "div", 6)(41, "label", 7);
33750
+ i0.ɵɵtext(42);
33751
+ i0.ɵɵpipe(43, "rpxTranslate");
33752
+ i0.ɵɵelementEnd();
33753
+ i0.ɵɵtemplate(44, UpdateFlagAddTranslationFormComponent_div_44_Template, 6, 6, "div", 15);
33754
+ i0.ɵɵelementStart(45, "textarea", 9);
33755
+ i0.ɵɵtext(46, " ");
33756
+ i0.ɵɵelementEnd();
33757
+ i0.ɵɵelementStart(47, "div", 16);
33758
+ i0.ɵɵtext(48);
33759
+ i0.ɵɵpipe(49, "rpxTranslate");
33801
33760
  i0.ɵɵelementEnd()()()();
33802
33761
  i0.ɵɵelementContainerEnd();
33803
33762
  } if (rf & 2) {
33804
33763
  i0.ɵɵproperty("formGroup", ctx.formGroup);
33805
33764
  i0.ɵɵadvance(2);
33806
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(31, _c0$n, ctx.errorMessages.length > 0));
33765
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(52, _c0$n, ctx.errorMessages.length > 0));
33807
33766
  i0.ɵɵadvance(3);
33808
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 19, ctx.updateFlagAddTranslationTitle), " ");
33767
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 32, ctx.updateFlagAddTranslationTitle), " ");
33809
33768
  i0.ɵɵadvance(3);
33810
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 21, ctx.updateFlagAddTranslationStepEnum.HINT_TEXT), " ");
33769
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 34, ctx.updateFlagAddTranslationStepEnum.HINT_TEXT), " ");
33770
+ i0.ɵɵadvance(3);
33771
+ i0.ɵɵproperty("for", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
33772
+ i0.ɵɵadvance();
33773
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 36, "Other description"));
33811
33774
  i0.ɵɵadvance(2);
33812
- i0.ɵɵproperty("ngIf", ctx.otherFlagType);
33775
+ i0.ɵɵproperty("ngIf", ctx.otherFlagDescriptionCharLimitErrorMessage);
33776
+ i0.ɵɵadvance();
33777
+ i0.ɵɵproperty("id", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("name", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("formControlName", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
33778
+ i0.ɵɵadvance(3);
33779
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 38, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
33780
+ i0.ɵɵadvance(3);
33781
+ i0.ɵɵproperty("for", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
33782
+ i0.ɵɵadvance();
33783
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 40, "Other description (Welsh)"));
33813
33784
  i0.ɵɵadvance(2);
33785
+ i0.ɵɵproperty("ngIf", ctx.otherFlagDescriptionWelshCharLimitErrorMessage);
33786
+ i0.ɵɵadvance();
33787
+ i0.ɵɵproperty("id", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("name", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("formControlName", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
33788
+ i0.ɵɵadvance(3);
33789
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 42, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
33790
+ i0.ɵɵadvance(3);
33814
33791
  i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS);
33815
33792
  i0.ɵɵadvance();
33816
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 23, "Flag comments"));
33793
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(33, 44, "Flag comments"));
33817
33794
  i0.ɵɵadvance(2);
33818
33795
  i0.ɵɵproperty("ngIf", ctx.flagCommentsCharLimitErrorMessage);
33819
33796
  i0.ɵɵadvance();
33820
33797
  i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS)("name", ctx.caseFlagFormFields.COMMENTS)("formControlName", ctx.caseFlagFormFields.COMMENTS);
33821
33798
  i0.ɵɵadvance(3);
33822
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 25, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
33799
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(39, 46, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
33823
33800
  i0.ɵɵadvance(3);
33824
33801
  i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS_WELSH);
33825
33802
  i0.ɵɵadvance();
33826
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(24, 27, "Flag comments (Welsh)"));
33803
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(43, 48, "Flag comments (Welsh)"));
33827
33804
  i0.ɵɵadvance(2);
33828
33805
  i0.ɵɵproperty("ngIf", ctx.flagCommentsWelshCharLimitErrorMessage);
33829
33806
  i0.ɵɵadvance();
33830
33807
  i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS_WELSH)("name", ctx.caseFlagFormFields.COMMENTS_WELSH)("formControlName", ctx.caseFlagFormFields.COMMENTS_WELSH);
33831
33808
  i0.ɵɵadvance(3);
33832
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 29, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
33809
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(49, 50, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
33833
33810
  } }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
33834
33811
  }
33835
33812
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UpdateFlagAddTranslationFormComponent, [{
33836
33813
  type: Component,
33837
- args: [{ selector: 'ccd-update-flag-add-translation-form', standalone: false, template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <h1 class=\"govuk-label-wrapper govuk-!-margin-bottom-6\">\n <label class=\"govuk-label govuk-label--m\">\n {{ updateFlagAddTranslationTitle | rpxTranslate}}\n </label>\n </h1>\n <div id=\"add-translation-form-hint\" class=\"govuk-hint\">\n {{ updateFlagAddTranslationStepEnum.HINT_TEXT | rpxTranslate}}\n </div>\n\n <div *ngIf=\"otherFlagType\">\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\" class=\"govuk-label govuk-label--s\">{{'Other description' | rpxTranslate}}</label>\n <div id=\"add-translation-other-flag-description-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"otherFlagDescriptionCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{otherFlagDescriptionCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\"\n [name]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\"\n [formControlName]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\">\n </textarea>\n <div id=\"add-translation-other-flag-description-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\" class=\"govuk-label govuk-label--s\">{{'Other description (Welsh)' | rpxTranslate}}</label>\n <div id=\"add-translation-other-flag-description-welsh-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"otherFlagDescriptionWelshCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{otherFlagDescriptionWelshCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\"\n [name]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\"\n [formControlName]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\">\n </textarea>\n <div id=\"add-translation-other-flag-description-welsh-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.COMMENTS\" class=\"govuk-label govuk-label--s\">{{'Flag comments' | rpxTranslate}}</label>\n <div id=\"add-translation-flag-comments-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.COMMENTS\"\n [name]=\"caseFlagFormFields.COMMENTS\"\n [formControlName]=\"caseFlagFormFields.COMMENTS\">\n </textarea>\n <div id=\"add-translation-flag-comments-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.COMMENTS_WELSH\" class=\"govuk-label govuk-label--s\">{{'Flag comments (Welsh)' | rpxTranslate}}</label>\n <div id=\"add-translation-flag-comments-welsh-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsWelshCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsWelshCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.COMMENTS_WELSH\"\n [name]=\"caseFlagFormFields.COMMENTS_WELSH\"\n [formControlName]=\"caseFlagFormFields.COMMENTS_WELSH\">\n </textarea>\n <div id=\"add-translation-flag-comments-welsh-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n" }]
33814
+ args: [{ selector: 'ccd-update-flag-add-translation-form', standalone: false, template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <h1 class=\"govuk-label-wrapper govuk-!-margin-bottom-6\">\n <label class=\"govuk-label govuk-label--m\">\n {{ updateFlagAddTranslationTitle | rpxTranslate}}\n </label>\n </h1>\n <div id=\"add-translation-form-hint\" class=\"govuk-hint\">\n {{ updateFlagAddTranslationStepEnum.HINT_TEXT | rpxTranslate}}\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\" class=\"govuk-label govuk-label--s\">{{'Other description' | rpxTranslate}}</label>\n <div id=\"add-translation-other-flag-description-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"otherFlagDescriptionCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{otherFlagDescriptionCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\"\n [name]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\"\n [formControlName]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\">\n </textarea>\n <div id=\"add-translation-other-flag-description-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\" class=\"govuk-label govuk-label--s\">{{'Other description (Welsh)' | rpxTranslate}}</label>\n <div id=\"add-translation-other-flag-description-welsh-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"otherFlagDescriptionWelshCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{otherFlagDescriptionWelshCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\"\n [name]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\"\n [formControlName]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\">\n </textarea>\n <div id=\"add-translation-other-flag-description-welsh-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.COMMENTS\" class=\"govuk-label govuk-label--s\">{{'Flag comments' | rpxTranslate}}</label>\n <div id=\"add-translation-flag-comments-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.COMMENTS\"\n [name]=\"caseFlagFormFields.COMMENTS\"\n [formControlName]=\"caseFlagFormFields.COMMENTS\">\n </textarea>\n <div id=\"add-translation-flag-comments-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.COMMENTS_WELSH\" class=\"govuk-label govuk-label--s\">{{'Flag comments (Welsh)' | rpxTranslate}}</label>\n <div id=\"add-translation-flag-comments-welsh-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsWelshCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsWelshCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.COMMENTS_WELSH\"\n [name]=\"caseFlagFormFields.COMMENTS_WELSH\"\n [formControlName]=\"caseFlagFormFields.COMMENTS_WELSH\">\n </textarea>\n <div id=\"add-translation-flag-comments-welsh-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n </div>\n </div>\n</ng-container>" }]
33838
33815
  }], null, { formGroup: [{
33839
33816
  type: Input
33840
33817
  }], caseFlagStateEmitter: [{
@@ -36316,7 +36293,7 @@ class ReadOrganisationFieldRawComponent extends AbstractFieldReadComponent {
36316
36293
  }] }); })();
36317
36294
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadOrganisationFieldRawComponent, { className: "ReadOrganisationFieldRawComponent", filePath: "lib/shared/components/palette/organisation/read-organisation-field-raw.component.ts", lineNumber: 16 }); })();
36318
36295
 
36319
- function ReadOrganisationFieldTableComponent_table_12_Template(rf, ctx) { if (rf & 1) {
36296
+ function ReadOrganisationFieldTableComponent_table_13_Template(rf, ctx) { if (rf & 1) {
36320
36297
  i0.ɵɵelementStart(0, "table", 1)(1, "tr", 6);
36321
36298
  i0.ɵɵelement(2, "th", 7);
36322
36299
  i0.ɵɵelementStart(3, "td", 8)(4, "span", 4);
@@ -36364,29 +36341,31 @@ class ReadOrganisationFieldTableComponent extends AbstractFieldReadComponent {
36364
36341
  }
36365
36342
  }
36366
36343
  static ɵfac = function ReadOrganisationFieldTableComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ReadOrganisationFieldTableComponent)(i0.ɵɵdirectiveInject(OrganisationService), i0.ɵɵdirectiveInject(OrganisationConverter)); };
36367
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadOrganisationFieldTableComponent, selectors: [["ccd-read-organisation-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 14, vars: 9, consts: [[1, "complex-panel"], [1, "complex-field-table"], [1, "complex-field-title"], [1, "complex-panel-title"], [1, "text-16"], ["class", "complex-field-table", 4, "ngIf"], [1, "complex-panel-compound-field"], [2, "display", "none"], [1, "label-width-medium"], [3, "content"]], template: function ReadOrganisationFieldTableComponent_Template(rf, ctx) { if (rf & 1) {
36344
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadOrganisationFieldTableComponent, selectors: [["ccd-read-organisation-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 15, vars: 9, consts: [[1, "complex-panel"], [1, "complex-field-table"], [1, "complex-field-title"], [1, "complex-panel-title"], [1, "text-16"], ["class", "complex-field-table", 4, "ngIf"], [1, "complex-panel-compound-field"], [2, "display", "none"], [1, "label-width-medium"], [3, "content"]], template: function ReadOrganisationFieldTableComponent_Template(rf, ctx) { if (rf & 1) {
36368
36345
  i0.ɵɵelementStart(0, "div", 0)(1, "table", 1);
36369
36346
  i0.ɵɵpipe(2, "rpxTranslate");
36370
36347
  i0.ɵɵelementStart(3, "tbody")(4, "tr")(5, "th", 2)(6, "dl", 3)(7, "dt")(8, "span", 4);
36371
36348
  i0.ɵɵtext(9);
36372
36349
  i0.ɵɵpipe(10, "rpxTranslate");
36373
- i0.ɵɵelementEnd()()()();
36374
- i0.ɵɵelementStart(11, "td");
36375
- i0.ɵɵtemplate(12, ReadOrganisationFieldTableComponent_table_12_Template, 16, 5, "table", 5);
36376
- i0.ɵɵpipe(13, "async");
36350
+ i0.ɵɵelementEnd()();
36351
+ i0.ɵɵelement(11, "dd");
36352
+ i0.ɵɵelementEnd()();
36353
+ i0.ɵɵelementStart(12, "td");
36354
+ i0.ɵɵtemplate(13, ReadOrganisationFieldTableComponent_table_13_Template, 16, 5, "table", 5);
36355
+ i0.ɵɵpipe(14, "async");
36377
36356
  i0.ɵɵelementEnd()()()()();
36378
36357
  } if (rf & 2) {
36379
36358
  i0.ɵɵadvance();
36380
36359
  i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(2, 3, "complex organisation field table"));
36381
36360
  i0.ɵɵadvance(8);
36382
36361
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 5, ctx.caseField.label));
36383
- i0.ɵɵadvance(3);
36384
- i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(13, 7, ctx.selectedOrg$));
36362
+ i0.ɵɵadvance(4);
36363
+ i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(14, 7, ctx.selectedOrg$));
36385
36364
  } }, dependencies: [i5.NgIf, MarkdownComponent, i5.AsyncPipe, i1.RpxTranslatePipe], styles: [".govuk-js-link[_ngcontent-%COMP%]{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link[_ngcontent-%COMP%]:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link[_ngcontent-%COMP%]:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link[_ngcontent-%COMP%]:visited{color:#4c2c92}.hmcts-banner[_ngcontent-%COMP%]{border:0 solid;margin-bottom:10px;color:#000}.hmcts-banner[_ngcontent-%COMP%] .warning-message[_ngcontent-%COMP%]{font-weight:700}.govuk-hint[_ngcontent-%COMP%]{font-size:1.1rem}.name-header[_ngcontent-%COMP%]{font-weight:700;margin-top:10px;font-size:18px}.td-address[_ngcontent-%COMP%]{width:90%;padding-top:2px}.td-select[_ngcontent-%COMP%]{width:10%}.warning-panel[_ngcontent-%COMP%]{background-color:#e7ebef;height:40px;margin-bottom:0;align-items:center;display:flex}.warning-panel[_ngcontent-%COMP%] .warning-message[_ngcontent-%COMP%]{padding-left:15px}.complex-field-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{border:none}.complex-field-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > th[_ngcontent-%COMP%], .complex-field-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%]{border-bottom:none}.complex-field-title[_ngcontent-%COMP%]{width:300px}.label-width-small[_ngcontent-%COMP%]{width:100px}.label-width-medium[_ngcontent-%COMP%]{width:150px}.scroll-container[_ngcontent-%COMP%]{height:600px;overflow-y:scroll}.no-result-message[_ngcontent-%COMP%]{margin-top:15px}"] });
36386
36365
  }
36387
36366
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadOrganisationFieldTableComponent, [{
36388
36367
  type: Component,
36389
- args: [{ selector: 'ccd-read-organisation-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <table class=\"complex-field-table\" [attr.aria-describedby]=\"'complex organisation field table' | rpxTranslate\">\n <tbody>\n <tr>\n <th class=\"complex-field-title\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt>\n </dl>\n </th>\n <td>\n <table class=\"complex-field-table\" *ngIf=\"(selectedOrg$ | async) as selectedOrg\"\n [attr.aria-describedby]=\"'selected organisation field table'\">\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Name:'}}</span></td>\n <td><span class=\"text-16\">{{selectedOrg.name}}</span></td>\n </tr>\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Address:'}}</span></td>\n <td>\n <ccd-markdown [content]=\"selectedOrg.address\"></ccd-markdown>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.hmcts-banner{border:0 solid;margin-bottom:10px;color:#000}.hmcts-banner .warning-message{font-weight:700}.govuk-hint{font-size:1.1rem}.name-header{font-weight:700;margin-top:10px;font-size:18px}.td-address{width:90%;padding-top:2px}.td-select{width:10%}.warning-panel{background-color:#e7ebef;height:40px;margin-bottom:0;align-items:center;display:flex}.warning-panel .warning-message{padding-left:15px}.complex-field-table>tbody>tr>th{border:none}.complex-field-table>tbody>tr:last-child>th,.complex-field-table>tbody>tr:last-child>td{border-bottom:none}.complex-field-title{width:300px}.label-width-small{width:100px}.label-width-medium{width:150px}.scroll-container{height:600px;overflow-y:scroll}.no-result-message{margin-top:15px}\n"] }]
36368
+ args: [{ selector: 'ccd-read-organisation-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <table class=\"complex-field-table\" [attr.aria-describedby]=\"'complex organisation field table' | rpxTranslate\">\n <tbody>\n <tr>\n <th class=\"complex-field-title\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt>\n <dd></dd>\n </dl>\n </th>\n <td>\n <table class=\"complex-field-table\" *ngIf=\"(selectedOrg$ | async) as selectedOrg\"\n [attr.aria-describedby]=\"'selected organisation field table'\">\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Name:'}}</span></td>\n <td><span class=\"text-16\">{{selectedOrg.name}}</span></td>\n </tr>\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Address:'}}</span></td>\n <td>\n <ccd-markdown [content]=\"selectedOrg.address\"></ccd-markdown>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.hmcts-banner{border:0 solid;margin-bottom:10px;color:#000}.hmcts-banner .warning-message{font-weight:700}.govuk-hint{font-size:1.1rem}.name-header{font-weight:700;margin-top:10px;font-size:18px}.td-address{width:90%;padding-top:2px}.td-select{width:10%}.warning-panel{background-color:#e7ebef;height:40px;margin-bottom:0;align-items:center;display:flex}.warning-panel .warning-message{padding-left:15px}.complex-field-table>tbody>tr>th{border:none}.complex-field-table>tbody>tr:last-child>th,.complex-field-table>tbody>tr:last-child>td{border-bottom:none}.complex-field-title{width:300px}.label-width-small{width:100px}.label-width-medium{width:150px}.scroll-container{height:600px;overflow-y:scroll}.no-result-message{margin-top:15px}\n"] }]
36390
36369
  }], () => [{ type: OrganisationService }, { type: OrganisationConverter }], { caseFields: [{
36391
36370
  type: Input
36392
36371
  }] }); })();