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

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})\]\s*\[([^\]]{0,100})\]/;
6311
+ const referenceBoxPattern = /(!)?\[((?:[^[\]\\]|\\.){0,500})\]\[([^\]]{0,100})\](?!\s*\/)/;
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
@@ -9349,69 +9349,34 @@ class RetryUtil {
9349
9349
  type: Injectable
9350
9350
  }], null, null); })();
9351
9351
 
9352
- const MEDIA_VIEWER_HANDOFF_RETRY_INTERVAL_MS = 100;
9353
- const MEDIA_VIEWER_HANDOFF_MAX_ATTEMPTS = 100;
9354
9352
  class WindowService {
9355
9353
  locationAssign(url) {
9356
9354
  window.location.assign(url);
9357
9355
  }
9356
+ setLocalStorage(key, value) {
9357
+ window.localStorage.setItem(key, value);
9358
+ }
9359
+ getLocalStorage(key) {
9360
+ return window.localStorage.getItem(key);
9361
+ }
9362
+ clearLocalStorage() {
9363
+ window.localStorage.clear();
9364
+ }
9365
+ removeLocalStorage(key) {
9366
+ window.localStorage.removeItem(key);
9367
+ }
9358
9368
  setSessionStorage(key, value) {
9359
9369
  window.sessionStorage.setItem(key, value);
9360
9370
  }
9361
9371
  getSessionStorage(key) {
9362
9372
  return window.sessionStorage.getItem(key);
9363
9373
  }
9364
- removeSessionStorage(key) {
9365
- window.sessionStorage.removeItem(key);
9366
- }
9367
- clearSessionStorage() {
9368
- window.sessionStorage.clear();
9369
- }
9370
9374
  openOnNewTab(url) {
9371
9375
  const openedWindow = window.open(url, '_blank', 'noopener,noreferrer');
9372
9376
  if (openedWindow) {
9373
9377
  openedWindow.opener = null;
9374
9378
  }
9375
9379
  }
9376
- openOnNewTabWithMessage(url, message, token) {
9377
- const openedWindow = window.open(url, '_blank');
9378
- if (!openedWindow) {
9379
- return;
9380
- }
9381
- const targetOrigin = window.location.origin;
9382
- const handoff = { type: 'MEDIA_VIEWER_HANDOFF', token, payload: message };
9383
- let attempts = 0;
9384
- let retryTimer;
9385
- let acknowledged = false;
9386
- const complete = () => {
9387
- acknowledged = true;
9388
- window.clearTimeout(retryTimer);
9389
- window.removeEventListener('message', acknowledgementListener);
9390
- if (!openedWindow.closed) {
9391
- openedWindow.opener = null;
9392
- }
9393
- };
9394
- const acknowledgementListener = (event) => {
9395
- const data = event.data;
9396
- if (event.origin === targetOrigin && event.source === openedWindow &&
9397
- data?.type === 'MEDIA_VIEWER_HANDOFF_RECEIVED' && data.token === token) {
9398
- complete();
9399
- }
9400
- };
9401
- window.addEventListener('message', acknowledgementListener);
9402
- const send = () => {
9403
- if (acknowledged || openedWindow.closed || attempts++ >= MEDIA_VIEWER_HANDOFF_MAX_ATTEMPTS) {
9404
- window.removeEventListener('message', acknowledgementListener);
9405
- if (!openedWindow.closed) {
9406
- openedWindow.opener = null;
9407
- }
9408
- return;
9409
- }
9410
- openedWindow.postMessage(handoff, targetOrigin);
9411
- retryTimer = window.setTimeout(send, MEDIA_VIEWER_HANDOFF_RETRY_INTERVAL_MS);
9412
- };
9413
- send();
9414
- }
9415
9380
  confirm(message) {
9416
9381
  return window.confirm(message);
9417
9382
  }
@@ -16972,6 +16937,7 @@ function ReadDocumentFieldComponent_button_0_Template(rf, ctx) { if (rf & 1) {
16972
16937
  i0.ɵɵadvance();
16973
16938
  i0.ɵɵtextInterpolate1(" ", ctx_r1.caseField.value.document_filename, "\n");
16974
16939
  } }
16940
+ const MEDIA_VIEWER_INFO = 'media-viewer-info';
16975
16941
  class ReadDocumentFieldComponent extends AbstractFieldReadComponent {
16976
16942
  windowService;
16977
16943
  documentManagement;
@@ -17016,8 +16982,10 @@ class ReadDocumentFieldComponent extends AbstractFieldReadComponent {
17016
16982
  return;
17017
16983
  }
17018
16984
  const token = FieldsUtils.createToken();
16985
+ const storageKey = `${MEDIA_VIEWER_INFO}:${token}`;
17019
16986
  const payload = this.documentManagement.getMediaViewerInfo(documentFieldValue);
17020
- this.windowService.openOnNewTabWithMessage(this.getMediaViewerUrl(token), payload, token);
16987
+ this.windowService.setLocalStorage(storageKey, payload);
16988
+ this.windowService.openOnNewTab(this.getMediaViewerUrl(token));
17021
16989
  }
17022
16990
  getMediaViewerUrl(token) {
17023
16991
  const routerMediaViewer = this.router.createUrlTree(['/media-viewer'], { queryParams: { mvToken: token } });
@@ -17039,7 +17007,7 @@ class ReadDocumentFieldComponent extends AbstractFieldReadComponent {
17039
17007
  type: Component,
17040
17008
  args: [{ selector: 'ccd-read-document-field', standalone: false, template: "<button type=\"button\" *ngIf=\"caseField.value\" class=\"govuk-js-link\"\n (click)=\"showMediaViewer()\">\n {{ caseField.value.document_filename }}\n</button>\n" }]
17041
17009
  }], () => [{ type: WindowService }, { type: DocumentManagementService }, { type: i1$1.Router }, { type: i1$1.ActivatedRoute }, { type: CasesService }], null); })();
17042
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDocumentFieldComponent, { className: "ReadDocumentFieldComponent", filePath: "lib/shared/components/palette/document/read-document-field.component.ts", lineNumber: 15 }); })();
17010
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDocumentFieldComponent, { className: "ReadDocumentFieldComponent", filePath: "lib/shared/components/palette/document/read-document-field.component.ts", lineNumber: 17 }); })();
17043
17011
 
17044
17012
  class DocumentDialogComponent {
17045
17013
  matDialogRef;
@@ -26610,6 +26578,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
26610
26578
  },
26611
26579
  plugins: [
26612
26580
  new Plugin({
26581
+ appendTransaction: (transactions, oldState, newState) => this.renumberContinuedOrderedLists(transactions, oldState, newState),
26613
26582
  props: {
26614
26583
  handlePaste: (_view, event) => this.handleEditorPaste(event),
26615
26584
  handleDOMEvents: {
@@ -27093,6 +27062,71 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
27093
27062
  ? candidateOrder === adjacentOrder + adjacentList.childCount
27094
27063
  : candidateOrder + candidateList.childCount === adjacentOrder;
27095
27064
  }
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
+ }
27096
27130
  hasListContinuation(list) {
27097
27131
  return list.type.name === 'ordered_list' || Boolean(list.attrs.continuationOrder);
27098
27132
  }
@@ -27358,7 +27392,10 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
27358
27392
  this.removeUnsupportedMarkup(documentElement);
27359
27393
  this.normaliseDateRangeSpacing(documentElement);
27360
27394
  this.removeUnsupportedAttributes(documentElement);
27361
- return this.normalisePlainTextValue(sanitiseRichTextDocument(documentElement));
27395
+ const sanitisedValue = sanitiseRichTextDocument(documentElement);
27396
+ return this.hasMeaningfulRichTextContent(documentElement)
27397
+ ? this.normalisePlainTextValue(sanitisedValue)
27398
+ : '';
27362
27399
  }
27363
27400
  normaliseRichTextValue(value) {
27364
27401
  if (!value) {
@@ -27376,7 +27413,15 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
27376
27413
  this.removeUnsupportedMarkup(documentElement);
27377
27414
  this.normaliseDateRangeSpacing(documentElement);
27378
27415
  this.removeUnsupportedAttributes(documentElement);
27379
- return this.normalisePlainTextValue(sanitiseRichTextDocument(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'));
27380
27425
  }
27381
27426
  syncAccessibilityLater() {
27382
27427
  setTimeout(() => this.syncAccessibilityState());
@@ -27489,13 +27534,31 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
27489
27534
  }
27490
27535
  this.isNormalisingValue = true;
27491
27536
  try {
27492
- this.richTextAreaControl.setValue(normalisedValue, { emitEvent: false });
27493
- this.editor.setContent(normalisedValue || '');
27537
+ this.richTextAreaControl.setValue(normalisedValue, {
27538
+ emitEvent: false,
27539
+ emitModelToViewChange: false
27540
+ });
27541
+ if (normalisedValue || this.editorHasMeaningfulRichTextContent()) {
27542
+ this.editor.setContent(normalisedValue || '');
27543
+ }
27494
27544
  }
27495
27545
  finally {
27496
27546
  this.isNormalisingValue = false;
27497
27547
  }
27498
27548
  }
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
+ }
27499
27562
  richTextRequiredValidator() {
27500
27563
  return (control) => {
27501
27564
  const textValue = this.htmlToText(control.value);
@@ -28146,7 +28209,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
28146
28209
  }
28147
28210
  return value
28148
28211
  .replace(/!?\[([^\]]{0,500})\]\(([^)]{0,500})\)/g, (_match, text, url) => text || url)
28149
- .replace(/!?\[((?:[^[\]\\]|\\.){0,500})\]\s*\[[^\]]{0,100}\]/g, '$1');
28212
+ .replace(/!?\[((?:[^[\]\\]|\\.){0,500})\]\[[^\]]{0,100}\](?!\s*\/)/g, '$1');
28150
28213
  }
28151
28214
  unwrapElement(element) {
28152
28215
  const parentNode = element.parentNode;
@@ -28165,6 +28228,8 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
28165
28228
  const state = {
28166
28229
  listStack: [],
28167
28230
  listParents: [],
28231
+ listRunDeclaredLevel: null,
28232
+ listRunVisualLevel: null,
28168
28233
  resetListLevels: new Map(),
28169
28234
  previousListId: null
28170
28235
  };
@@ -28193,12 +28258,19 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
28193
28258
  resetWordListConversionState(state) {
28194
28259
  state.listStack.length = 0;
28195
28260
  state.listParents.length = 0;
28261
+ state.listRunDeclaredLevel = null;
28262
+ state.listRunVisualLevel = null;
28196
28263
  state.resetListLevels.clear();
28197
28264
  state.previousListId = null;
28198
28265
  }
28199
28266
  wordListRequestedLevel(paragraph, listId, wordListIndents, state) {
28200
28267
  const declaredLevel = this.wordListDeclaredLevel(paragraph);
28201
- let requestedLevel = this.wordListLevel(paragraph, wordListIndents);
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);
28202
28274
  const rememberedResetLevel = declaredLevel === 1 ? state.resetListLevels.get(listId) : null;
28203
28275
  if (rememberedResetLevel) {
28204
28276
  return Math.max(requestedLevel, rememberedResetLevel);
@@ -28219,7 +28291,8 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
28219
28291
  let currentList = state.listStack[stackIndex];
28220
28292
  if (currentList?.tagName.toLowerCase() !== listType || currentList?.getAttribute('type') !== orderedListType ||
28221
28293
  state.listParents[stackIndex] !== listParent) {
28222
- currentList = this.createWordList(documentElement, paragraph, listType, orderedListType, parentListItem);
28294
+ const rootIndent = level === 1 ? state.listRunVisualLevel - 1 : 0;
28295
+ currentList = this.createWordList(documentElement, paragraph, listType, orderedListType, parentListItem, rootIndent);
28223
28296
  state.listStack[stackIndex] = currentList;
28224
28297
  state.listParents[stackIndex] = listParent;
28225
28298
  }
@@ -28227,15 +28300,18 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
28227
28300
  state.listParents.length = level;
28228
28301
  return currentList;
28229
28302
  }
28230
- createWordList(documentElement, paragraph, listType, orderedListType, parentListItem) {
28303
+ createWordList(documentElement, paragraph, listType, orderedListType, parentListItem, rootIndent) {
28231
28304
  const list = documentElement.createElement(listType);
28232
- const listStart = this.wordListStart(paragraph);
28305
+ const listStart = this.wordListStart(paragraph, orderedListType);
28233
28306
  if (listType === 'ol' && listStart > 1) {
28234
28307
  list.setAttribute('start', listStart.toString());
28235
28308
  }
28236
28309
  if (orderedListType) {
28237
28310
  list.setAttribute('type', orderedListType);
28238
28311
  }
28312
+ if (rootIndent > 0) {
28313
+ list.dataset.indent = Math.min(6, rootIndent).toString();
28314
+ }
28239
28315
  if (parentListItem) {
28240
28316
  parentListItem.appendChild(list);
28241
28317
  }
@@ -28294,11 +28370,10 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
28294
28370
  .find((element) => /mso-list:\s*Ignore/i.test(element.getAttribute('style') || ''));
28295
28371
  return (markerElement ? markerElement.textContent : paragraph.textContent).trim();
28296
28372
  }
28297
- wordListLevel(paragraph, wordListIndents) {
28298
- const declaredLevel = this.wordListDeclaredLevel(paragraph);
28373
+ wordListVisualLevel(paragraph, wordListIndents) {
28299
28374
  const indent = this.wordListIndent(paragraph);
28300
28375
  const visualLevel = wordListIndents.indexOf(indent) + 1;
28301
- return Math.max(declaredLevel, visualLevel || 1);
28376
+ return visualLevel || 1;
28302
28377
  }
28303
28378
  wordListDeclaredLevel(paragraph) {
28304
28379
  const match = (paragraph.getAttribute('style') || '').match(/mso-list:[^;]*\blevel(\d+)/i);
@@ -28319,9 +28394,18 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
28319
28394
  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)));
28320
28395
  return Math.round(indent);
28321
28396
  }
28322
- wordListStart(paragraph) {
28323
- const match = /^(\d+)[.)]/.exec(this.wordListMarker(paragraph));
28324
- return match ? Number(match[1]) : 1;
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;
28325
28409
  }
28326
28410
  copyListItemContents(documentElement, paragraph, listItem) {
28327
28411
  Array.prototype.slice.call(paragraph.childNodes).forEach((childNode) => {
@@ -29040,7 +29124,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
29040
29124
  type: ViewChild,
29041
29125
  args: ['editorHost']
29042
29126
  }] }); })();
29043
- (() => { (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 }); })();
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 }); })();
29044
29128
 
29045
29129
  class ReadTextFieldComponent extends AbstractFieldReadComponent {
29046
29130
  static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextFieldComponent_BaseFactory; return function ReadTextFieldComponent_Factory(__ngFactoryType__) { return (ɵReadTextFieldComponent_BaseFactory || (ɵReadTextFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextFieldComponent)))(__ngFactoryType__ || ReadTextFieldComponent); }; })();
@@ -30417,6 +30501,7 @@ function CaseFileViewFolderComponent_div_11_Template(rf, ctx) { if (rf & 1) {
30417
30501
  i0.ɵɵadvance(2);
30418
30502
  i0.ɵɵproperty("cdkTreeNodeDefWhen", ctx_r2.nestedChildren);
30419
30503
  } }
30504
+ const MEDIA_VIEWER_LOCALSTORAGE_KEY = 'media-viewer-info';
30420
30505
  class CaseFileViewFolderComponent {
30421
30506
  windowService;
30422
30507
  router;
@@ -30586,14 +30671,16 @@ class CaseFileViewFolderComponent {
30586
30671
  }
30587
30672
  }
30588
30673
  const token = FieldsUtils.createToken();
30674
+ const storageKey = `${MEDIA_VIEWER_LOCALSTORAGE_KEY}:${token}`;
30589
30675
  const payload = this.documentManagementService.getMediaViewerInfo({
30590
30676
  document_binary_url: documentTreeNode.document_binary_url,
30591
30677
  document_filename: documentTreeNode.document_filename,
30592
30678
  content_type: documentTreeNode.content_type
30593
30679
  });
30680
+ this.windowService.setLocalStorage(storageKey, payload);
30594
30681
  const mediaViewerUrl = this.router.createUrlTree(['/media-viewer'], { queryParams: { mvToken: token } })?.toString();
30595
30682
  if (mediaViewerUrl) {
30596
- this.windowService.openOnNewTabWithMessage(mediaViewerUrl, payload, token);
30683
+ this.windowService.openOnNewTab(mediaViewerUrl);
30597
30684
  }
30598
30685
  break;
30599
30686
  case ('download'):
@@ -30708,7 +30795,7 @@ class CaseFileViewFolderComponent {
30708
30795
  }], moveDocument: [{
30709
30796
  type: Output
30710
30797
  }] }); })();
30711
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFolderComponent, { className: "CaseFileViewFolderComponent", filePath: "lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.ts", lineNumber: 26 }); })();
30798
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFolderComponent, { className: "CaseFileViewFolderComponent", filePath: "lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.ts", lineNumber: 28 }); })();
30712
30799
 
30713
30800
  const _c0$u = a0 => ({ "form-group-error": a0 });
30714
30801
  function AddCommentsComponent_span_7_Template(rf, ctx) { if (rf & 1) {
@@ -38909,8 +38996,8 @@ function WorkbasketFiltersComponent_ng_container_39_Template(rf, ctx) { if (rf &
38909
38996
  i0.ɵɵadvance(2);
38910
38997
  i0.ɵɵproperty("ngForOf", ctx_r4.workbasketInputs);
38911
38998
  } }
38912
- const FORM_GROUP_VAL_SES_STORAGE = 'workbasket-filter-form-group-value';
38913
- const SAVED_QUERY_PARAM_SES_STORAGE = 'savedQueryParams';
38999
+ const FORM_GROUP_VAL_LOC_STORAGE = 'workbasket-filter-form-group-value';
39000
+ const SAVED_QUERY_PARAM_LOC_STORAGE = 'savedQueryParams';
38914
39001
  const REGION_LIST_AND_FRC_FILTER = 'regionList';
38915
39002
  class WorkbasketFiltersComponent {
38916
39003
  route;
@@ -39004,8 +39091,7 @@ class WorkbasketFiltersComponent {
39004
39091
  this.alertService.setPreserveAlerts(!this.initialised);
39005
39092
  }
39006
39093
  if (Object.keys(this.formGroup.controls).length === 0) {
39007
- const storedFormGroup = safeJsonParse(this.windowService.getSessionStorage(FORM_GROUP_VAL_SES_STORAGE), null);
39008
- this.selected.formGroup = storedFormGroup && Object.keys(storedFormGroup).length > 0 ? storedFormGroup : null;
39094
+ this.selected.formGroup = JSON.parse(localStorage.getItem(FORM_GROUP_VAL_LOC_STORAGE));
39009
39095
  }
39010
39096
  else {
39011
39097
  // Update form group filters
@@ -39016,14 +39102,14 @@ class WorkbasketFiltersComponent {
39016
39102
  this.selected.page = 1;
39017
39103
  this.selected.metadataFields = this.getMetadataFields();
39018
39104
  if (init) {
39019
- this.windowService.setSessionStorage(SAVED_QUERY_PARAM_SES_STORAGE, JSON.stringify(queryParams));
39105
+ this.windowService.setLocalStorage(SAVED_QUERY_PARAM_LOC_STORAGE, JSON.stringify(queryParams));
39020
39106
  if (Object.keys(this.formGroup.controls).length > 0) {
39021
39107
  // Find all "special case" JudicialUser FormControl keys and remove the corresponding values from the
39022
39108
  // FormGroup value because these values are not intended to be stored and subsequently passed as query string
39023
39109
  // parameters when calling searchCases API endpoint
39024
39110
  const judicialUserControlValuesToRemove = Object.keys(this.formGroup.controls).filter((key) => key.endsWith('_judicialUserControl'));
39025
39111
  judicialUserControlValuesToRemove.forEach((controlKey) => delete this.formGroup.value[controlKey]);
39026
- this.windowService.setSessionStorage(FORM_GROUP_VAL_SES_STORAGE, JSON.stringify(this.formGroup.value));
39112
+ this.windowService.setLocalStorage(FORM_GROUP_VAL_LOC_STORAGE, JSON.stringify(this.formGroup.value));
39027
39113
  }
39028
39114
  }
39029
39115
  // Announce selected jurisdiction via JurisdictionService
@@ -39037,8 +39123,8 @@ class WorkbasketFiltersComponent {
39037
39123
  this.setFocusToTop();
39038
39124
  }
39039
39125
  reset() {
39040
- this.windowService.removeSessionStorage(FORM_GROUP_VAL_SES_STORAGE);
39041
- this.windowService.removeSessionStorage(SAVED_QUERY_PARAM_SES_STORAGE);
39126
+ this.windowService.removeLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
39127
+ this.windowService.removeLocalStorage(SAVED_QUERY_PARAM_LOC_STORAGE);
39042
39128
  setTimeout(() => {
39043
39129
  this.resetFieldsWhenNoDefaults();
39044
39130
  this.onReset.emit(true);
@@ -39089,7 +39175,7 @@ class WorkbasketFiltersComponent {
39089
39175
  this.workbasketInputsReady = true;
39090
39176
  this.workbasketInputs = workbasketInputs
39091
39177
  .sort(this.orderService.sortAsc);
39092
- const formValue = this.windowService.getSessionStorage(FORM_GROUP_VAL_SES_STORAGE);
39178
+ const formValue = this.windowService.getLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
39093
39179
  workbasketInputs.forEach(item => {
39094
39180
  if (item.field.elementPath) {
39095
39181
  item.field.id = `${item.field.id}.${item.field.elementPath}`;
@@ -39129,18 +39215,18 @@ class WorkbasketFiltersComponent {
39129
39215
  * in future to incorporate other dynamic filters.
39130
39216
  */
39131
39217
  updateFormGroupFilters() {
39132
- // Read the form group from session storage
39133
- const formGroupSessionStorage = safeJsonParse(this.windowService.getSessionStorage(FORM_GROUP_VAL_SES_STORAGE), null);
39134
- // Form group session storage is available and contains regionList property
39135
- if (!!formGroupSessionStorage && formGroupSessionStorage.hasOwnProperty(REGION_LIST_AND_FRC_FILTER)) {
39218
+ // Read the form group local storage
39219
+ const formGroupLS = JSON.parse(this.windowService.getLocalStorage(FORM_GROUP_VAL_LOC_STORAGE));
39220
+ // Form group local storage is available and contains regionList property
39221
+ if (!!formGroupLS && formGroupLS.hasOwnProperty(REGION_LIST_AND_FRC_FILTER)) {
39136
39222
  if (this.formGroup.get(REGION_LIST_AND_FRC_FILTER)) {
39137
- // If regionList value does not match between session storage and form group
39223
+ // If regionList value does not match between local storage and form group
39138
39224
  // then the filter value has been changed and we need to clear the old filter values
39139
- if (formGroupSessionStorage[REGION_LIST_AND_FRC_FILTER] !== this.formGroup.get(REGION_LIST_AND_FRC_FILTER).value) {
39140
- for (const key in formGroupSessionStorage) {
39141
- if (formGroupSessionStorage.hasOwnProperty(key)) {
39142
- const value = formGroupSessionStorage[key];
39143
- // Clear the filter form group control values if it has a value in session storage
39225
+ if (formGroupLS[REGION_LIST_AND_FRC_FILTER] !== this.formGroup.get(REGION_LIST_AND_FRC_FILTER).value) {
39226
+ for (const key in formGroupLS) {
39227
+ if (formGroupLS.hasOwnProperty(key)) {
39228
+ const value = formGroupLS[key];
39229
+ // Clear the filter form group control values if it has a value in local storage
39144
39230
  // The regionList form group control value should be ignored as it always contain the latest value
39145
39231
  if (key !== REGION_LIST_AND_FRC_FILTER && value !== null) {
39146
39232
  this.formGroup.get(key).setValue(null);
@@ -39159,7 +39245,7 @@ class WorkbasketFiltersComponent {
39159
39245
  * Query parameters, when available, take precedence over workbasket defaults.
39160
39246
  */
39161
39247
  initFilters(init) {
39162
- const savedQueryParams = this.windowService.getSessionStorage(SAVED_QUERY_PARAM_SES_STORAGE);
39248
+ const savedQueryParams = this.windowService.getLocalStorage(SAVED_QUERY_PARAM_LOC_STORAGE);
39163
39249
  const routeSnapshot = this.route.snapshot;
39164
39250
  if (savedQueryParams) {
39165
39251
  routeSnapshot.queryParams = JSON.parse(savedQueryParams);
@@ -39220,7 +39306,7 @@ class WorkbasketFiltersComponent {
39220
39306
  this.workbasketInputs = [];
39221
39307
  }
39222
39308
  clearStoredWorkbasketFilterValues() {
39223
- this.windowService.removeSessionStorage(FORM_GROUP_VAL_SES_STORAGE);
39309
+ this.windowService.removeLocalStorage(FORM_GROUP_VAL_LOC_STORAGE);
39224
39310
  }
39225
39311
  resetCaseState() {
39226
39312
  this.defaults.state_id = null;
@@ -39364,7 +39450,7 @@ class WorkbasketFiltersComponent {
39364
39450
  }], onReset: [{
39365
39451
  type: Output
39366
39452
  }] }); })();
39367
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WorkbasketFiltersComponent, { className: "WorkbasketFiltersComponent", filePath: "lib/shared/components/workbasket-filters/workbasket-filters.component.ts", lineNumber: 29 }); })();
39453
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WorkbasketFiltersComponent, { className: "WorkbasketFiltersComponent", filePath: "lib/shared/components/workbasket-filters/workbasket-filters.component.ts", lineNumber: 28 }); })();
39368
39454
 
39369
39455
  class WorkbasketFiltersModule {
39370
39456
  static ɵfac = function WorkbasketFiltersModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WorkbasketFiltersModule)(); };
@@ -44701,10 +44787,10 @@ function SearchFiltersComponent_ng_container_16_Template(rf, ctx) { if (rf & 1)
44701
44787
  i0.ɵɵadvance(2);
44702
44788
  i0.ɵɵproperty("ngForOf", ctx_r3.searchInputs);
44703
44789
  } }
44704
- const JURISDICTION_SES_STORAGE = 'search-jurisdiction';
44705
- const META_FIELDS_SES_STORAGE = 'search-metadata-fields';
44706
- const FORM_GROUP_VALUE_SES_STORAGE = 'search-form-group-value';
44707
- const CASE_TYPE_SES_STORAGE = 'search-caseType';
44790
+ const JURISDICTION_LOC_STORAGE = 'search-jurisdiction';
44791
+ const META_FIELDS_LOC_STORAGE = 'search-metadata-fields';
44792
+ const FORM_GROUP_VALUE_LOC_STORAGE = 'search-form-group-value';
44793
+ const CASE_TYPE_LOC_STORAGE = 'search-caseType';
44708
44794
  class SearchFiltersComponent {
44709
44795
  searchService;
44710
44796
  orderService;
@@ -44733,7 +44819,7 @@ class SearchFiltersComponent {
44733
44819
  this.selected = {};
44734
44820
  }
44735
44821
  ngOnInit() {
44736
- const jurisdiction = this.getValuesFromSessionStorage();
44822
+ const jurisdiction = this.getValuesFromLocalStorage();
44737
44823
  if (this.jurisdictions.length === 1 || jurisdiction) {
44738
44824
  this.selected.jurisdiction = this.jurisdictions[0];
44739
44825
  if (jurisdiction) {
@@ -44760,10 +44846,10 @@ class SearchFiltersComponent {
44760
44846
  });
44761
44847
  }
44762
44848
  reset() {
44763
- this.windowService.removeSessionStorage(FORM_GROUP_VALUE_SES_STORAGE);
44764
- this.windowService.removeSessionStorage(CASE_TYPE_SES_STORAGE);
44765
- this.windowService.removeSessionStorage(JURISDICTION_SES_STORAGE);
44766
- this.windowService.removeSessionStorage(META_FIELDS_SES_STORAGE);
44849
+ this.windowService.removeLocalStorage(FORM_GROUP_VALUE_LOC_STORAGE);
44850
+ this.windowService.removeLocalStorage(CASE_TYPE_LOC_STORAGE);
44851
+ this.windowService.removeLocalStorage(JURISDICTION_LOC_STORAGE);
44852
+ this.windowService.removeLocalStorage(META_FIELDS_LOC_STORAGE);
44767
44853
  this.selected = {};
44768
44854
  if (this.jurisdictions.length === 1) {
44769
44855
  this.selected.jurisdiction = this.jurisdictions[0];
@@ -44775,39 +44861,39 @@ class SearchFiltersComponent {
44775
44861
  this.selected.formGroup = this.formGroup;
44776
44862
  this.selected.page = 1;
44777
44863
  this.selected.metadataFields = this.getMetadataFields();
44778
- this.populateValuesInSessionStorage();
44864
+ this.populateValuesInLocalStorage();
44779
44865
  this.onApply.emit({
44780
44866
  selected: this.selected,
44781
44867
  queryParams: this.getQueryParams()
44782
44868
  });
44783
44869
  this.setFocusToTop();
44784
44870
  }
44785
- populateValuesInSessionStorage() {
44786
- this.windowService.setSessionStorage(FORM_GROUP_VALUE_SES_STORAGE, JSON.stringify(this.selected.formGroup.value));
44787
- this.windowService.setSessionStorage(META_FIELDS_SES_STORAGE, JSON.stringify(this.selected.metadataFields));
44871
+ populateValuesInLocalStorage() {
44872
+ this.windowService.setLocalStorage(FORM_GROUP_VALUE_LOC_STORAGE, JSON.stringify(this.selected.formGroup.value));
44873
+ this.windowService.setLocalStorage(META_FIELDS_LOC_STORAGE, JSON.stringify(this.selected.metadataFields));
44788
44874
  try {
44789
44875
  const compJurisd = compressToUTF16(JSON.stringify(this.selected.jurisdiction));
44790
- this.windowService.setSessionStorage(JURISDICTION_SES_STORAGE, compJurisd);
44876
+ this.windowService.setLocalStorage(JURISDICTION_LOC_STORAGE, compJurisd);
44791
44877
  }
44792
44878
  catch (e) {
44793
- this.windowService.setSessionStorage(JURISDICTION_SES_STORAGE, null);
44879
+ this.windowService.setLocalStorage(JURISDICTION_LOC_STORAGE, null);
44794
44880
  }
44795
44881
  if (this.selected.caseType) {
44796
- this.windowService.setSessionStorage(CASE_TYPE_SES_STORAGE, JSON.stringify(this.selected.caseType));
44882
+ this.windowService.setLocalStorage(CASE_TYPE_LOC_STORAGE, JSON.stringify(this.selected.caseType));
44797
44883
  }
44798
44884
  }
44799
- getValuesFromSessionStorage() {
44800
- const jurisdiction = this.windowService.getSessionStorage(JURISDICTION_SES_STORAGE);
44885
+ getValuesFromLocalStorage() {
44886
+ const jurisdiction = this.windowService.getLocalStorage(JURISDICTION_LOC_STORAGE);
44801
44887
  if (jurisdiction) {
44802
44888
  try {
44803
- const sessionStorageJurisdiction = JSON.parse(decompressFromUTF16(jurisdiction));
44804
- if (sessionStorageJurisdiction) {
44805
- return sessionStorageJurisdiction;
44889
+ const localStorageJurisdiction = JSON.parse(decompressFromUTF16(jurisdiction));
44890
+ if (localStorageJurisdiction) {
44891
+ return localStorageJurisdiction;
44806
44892
  }
44807
44893
  }
44808
44894
  catch (e) {
44809
- this.logger.error('Failed to retrieve jurisdiction from session storage.', { error: e });
44810
- this.windowService.setSessionStorage(JURISDICTION_SES_STORAGE, null);
44895
+ this.logger.error('Failed to retrieve jurisdiction from local storage.', { error: e });
44896
+ this.windowService.setLocalStorage(JURISDICTION_LOC_STORAGE, null);
44811
44897
  }
44812
44898
  }
44813
44899
  return null;
@@ -44845,7 +44931,7 @@ class SearchFiltersComponent {
44845
44931
  this.searchInputs = [];
44846
44932
  this.searchService.getSearchInputs(this.selected.jurisdiction.id, this.selected.caseType.id).pipe(tap(() => this.searchInputsReady = true)).subscribe(searchInputs => {
44847
44933
  this.searchInputs = searchInputs.sort(this.orderService.sortAsc);
44848
- const formValue = this.windowService.getSessionStorage(FORM_GROUP_VALUE_SES_STORAGE);
44934
+ const formValue = this.windowService.getLocalStorage(FORM_GROUP_VALUE_LOC_STORAGE);
44849
44935
  let formValueObject = null;
44850
44936
  if (formValue) {
44851
44937
  formValueObject = JSON.parse(formValue);
@@ -44883,7 +44969,7 @@ class SearchFiltersComponent {
44883
44969
  selectCaseType(caseTypes) {
44884
44970
  if (caseTypes && caseTypes.length > 0) {
44885
44971
  this.selected.caseType = caseTypes[0];
44886
- const caseType = this.windowService.getSessionStorage(CASE_TYPE_SES_STORAGE);
44972
+ const caseType = this.windowService.getLocalStorage(CASE_TYPE_LOC_STORAGE);
44887
44973
  if (caseType) {
44888
44974
  const caseTypeObject = JSON.parse(caseType);
44889
44975
  const result = caseTypes.filter(c => c.id === caseTypeObject.id);
@@ -46213,5 +46299,5 @@ class TestRouteSnapshotBuilder {
46213
46299
  * Generated bundle index. Do not edit.
46214
46300
  */
46215
46301
 
46216
- export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, AbstractFieldWriteJourneyComponent, AbstractJourneyComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, COMPONENT_PORTAL_INJECTION_TOKEN, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewFolderToggleComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagCheckYourAnswersPageStep, CaseFlagDisplayContextParameter, CaseFlagErrorMessage, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, CloseQueryComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, EnumDisplayDescriptionPipe, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FlagFieldDisplayPipe, FocusElementDirective, FocusElementModule, FocusService, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LanguageInterpreterDisplayPipe, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipageComponentStateService, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, QualifyingQuestionDetailComponent, QualifyingQuestionOptionsComponent, QualifyingQuestionService, QualifyingQuestionsErrorMessage, QueryAttachmentsReadComponent, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryConfirmationComponent, QueryCreateContext, QueryDetailsComponent, QueryEventCompletionComponent, QueryItemResponseStatus, QueryListComponent, QueryListData, QueryListItem, QueryManagementService, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, RaiseQueryErrorMessage, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadCookieService, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadRichTextAreaFieldComponent, ReadStaffUserFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RespondToQueryErrorMessages, RetryUtil, RouterHelperService, RouterLinkComponent, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionErrorPageComponent, SessionErrorRoute, SessionJsonErrorLogger, SessionStorageGuard, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, StructuredLoggerService, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, TranslatedMarkdownDirective, TranslatedMarkdownModule, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteRichTextAreaFieldComponent, WriteStaffUserFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, parseStaffUserSearchConfiguration, safeJsonParse, textFieldType, viewerRouting };
46302
+ export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, AbstractFieldWriteJourneyComponent, AbstractJourneyComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, COMPONENT_PORTAL_INJECTION_TOKEN, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventCompletionComponent, CaseEventCompletionTaskCancelledComponent, CaseEventCompletionTaskReassignedComponent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewFolderToggleComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagCheckYourAnswersPageStep, CaseFlagDisplayContextParameter, CaseFlagErrorMessage, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, CloseQueryComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, EnumDisplayDescriptionPipe, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FlagFieldDisplayPipe, FocusElementDirective, FocusElementModule, FocusService, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LanguageInterpreterDisplayPipe, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipageComponentStateService, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, QualifyingQuestionDetailComponent, QualifyingQuestionOptionsComponent, QualifyingQuestionService, QualifyingQuestionsErrorMessage, QueryAttachmentsReadComponent, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryConfirmationComponent, QueryCreateContext, QueryDetailsComponent, QueryEventCompletionComponent, QueryItemResponseStatus, QueryListComponent, QueryListData, QueryListItem, QueryManagementService, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, RaiseQueryErrorMessage, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadCookieService, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadRichTextAreaFieldComponent, ReadStaffUserFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RespondToQueryErrorMessages, RetryUtil, RouterHelperService, RouterLinkComponent, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionErrorPageComponent, SessionErrorRoute, SessionJsonErrorLogger, SessionStorageGuard, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, StructuredLoggerService, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, TranslatedMarkdownDirective, TranslatedMarkdownModule, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteRichTextAreaFieldComponent, WriteStaffUserFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseMessagesMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, parseStaffUserSearchConfiguration, safeJsonParse, textFieldType, viewerRouting };
46217
46303
  //# sourceMappingURL=hmcts-ccd-case-ui-toolkit.mjs.map