@wistia/vhs 6.0.7 → 6.0.8-beta.322773bc.a5fc07a

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.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/vhs v6.0.7
3
+ * @license @wistia/vhs v6.0.8-beta.322773bc.a5fc07a
4
4
  *
5
5
  * Copyright (c) 2021-2026, Wistia, Inc. and its affiliates.
6
6
  *
@@ -18,15 +18,10 @@ import { debounce } from "throttle-debounce";
18
18
  import { designTokens } from "@wistia/vhs-design-tokens";
19
19
  import { Field, Form as Form$1, Formik, useFormikContext, useFormikContext as useFormikContext$1 } from "formik";
20
20
  import isEqual from "react-fast-compare";
21
- import { isHotkey } from "is-hotkey";
22
- import { Editor, Element, Node, Path, Range, Text as Text$1, Transforms, createEditor } from "slate";
23
- import { withHistory } from "slate-history";
24
- import { Editable, ReactEditor, Slate, useFocused, useSelected, useSlate, withReact } from "slate-react";
25
- import { jsx as jsx$1 } from "slate-hyperscript";
26
21
  import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuItemIndicator, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup as MenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "@radix-ui/react-dropdown-menu";
27
22
  import { addDays, addMonths, addYears, compareAsc, differenceInDays, differenceInMilliseconds, eachDayOfInterval, eachMonthOfInterval, endOfDay, endOfMonth, getDay, getDaysInMonth, getYear, isAfter, isBefore, isEqual as isEqual$1, isFuture, isSameDay, isValid, isWithinInterval, startOfDay, startOfMonth } from "date-fns";
28
23
  import ReactSlider from "react-slider";
29
- //#region \0rolldown/runtime.js
24
+ // \0rolldown/runtime.js
30
25
  var __defProp = Object.defineProperty;
31
26
  var __exportAll = (all, no_symbols) => {
32
27
  let target = {};
@@ -37,12 +32,10 @@ var __exportAll = (all, no_symbols) => {
37
32
  if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
38
33
  return target;
39
34
  };
40
- //#endregion
41
- //#region src/components/ModalBase/ModalProviderContext.tsx
35
+ // src/components/ModalBase/ModalProviderContext.tsx
42
36
  const ModalProviderContext = createContext({});
43
37
  const useModalProviderContext = () => useContext(ModalProviderContext);
44
- //#endregion
45
- //#region src/components/ModalBase/ModalProvider.tsx
38
+ // src/components/ModalBase/ModalProvider.tsx
46
39
  const ModalProvider = ({ children }) => {
47
40
  const modalQueue = useRef(/* @__PURE__ */ new Set()).current;
48
41
  const isFirstCallback = useCallback((setIsShown) => modalQueue.values().next().value === setIsShown, [modalQueue]);
@@ -92,11 +85,9 @@ const ModalProvider = ({ children }) => {
92
85
  children
93
86
  });
94
87
  };
95
- //#endregion
96
- //#region src/hooks/useTheme/useTheme.ts
88
+ // src/hooks/useTheme/useTheme.ts
97
89
  const useTheme = () => useTheme$1();
98
- //#endregion
99
- //#region src/hooks/useThemeColor/useThemeColor.ts
90
+ // src/hooks/useThemeColor/useThemeColor.ts
100
91
  const getColor = (colors, colorName) => {
101
92
  if (!colors.hasOwnProperty(colorName)) throw new Error(`\`${String(colorName)}\` is not a defined theme color, check argument passed to \`useThemeColor\``);
102
93
  return colors[colorName];
@@ -108,14 +99,12 @@ const useThemeColor = (colorName = null) => {
108
99
  if (Array.isArray(colorName)) return colorName.map((color) => getColor(colors, color));
109
100
  return getColor(colors, colorName);
110
101
  };
111
- //#endregion
112
- //#region src/providers/AriaLiveProvider/AriaLiveContext.tsx
102
+ // src/providers/AriaLiveProvider/AriaLiveContext.tsx
113
103
  const warnMissingProvider = () => {
114
104
  console.warn("Announcement failed: render VHSProvider (or AriaLiveProvider) above this component");
115
105
  };
116
106
  const AriaLiveContext = createContext({ announce: warnMissingProvider });
117
- //#endregion
118
- //#region src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
107
+ // src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
119
108
  const screenReaderOnlyStyle = css`
120
109
  border: 0;
121
110
  clip-path: inset(50%);
@@ -146,8 +135,7 @@ const ScreenReaderOnly = ({ text, children, focusable = false, ...otherProps })
146
135
  });
147
136
  };
148
137
  ScreenReaderOnly.displayName = "ScreenReaderOnly_VHS";
149
- //#endregion
150
- //#region src/providers/AriaLiveProvider/AriaLiveProvider.tsx
138
+ // src/providers/AriaLiveProvider/AriaLiveProvider.tsx
151
139
  const ANNOUNCEMENT_CLEAR_DELAY_MS = 5e3;
152
140
  const HiddenRegion = styled.div`
153
141
  ${screenReaderOnlyStyle}
@@ -203,11 +191,9 @@ const AriaLiveProvider = ({ children }) => {
203
191
  })] })]
204
192
  });
205
193
  };
206
- //#endregion
207
- //#region src/private/hooks/useAriaLive/useAriaLive.ts
194
+ // src/private/hooks/useAriaLive/useAriaLive.ts
208
195
  const useAriaLive = () => use(AriaLiveContext);
209
- //#endregion
210
- //#region src/private/components/LiveAnnouncement/LiveAnnouncement.tsx
196
+ // src/private/components/LiveAnnouncement/LiveAnnouncement.tsx
211
197
  /**
212
198
  * Announces `message` to screen readers when it mounts and each time `message` changes.
213
199
  */
@@ -225,8 +211,7 @@ const LiveAnnouncement = ({ message, politeness = "polite" }) => {
225
211
  ]);
226
212
  return null;
227
213
  };
228
- //#endregion
229
- //#region src/private/helpers/coerceToBoolean/coerceToBoolean.ts
214
+ // src/private/helpers/coerceToBoolean/coerceToBoolean.ts
230
215
  /**
231
216
  * Converts a boolean string value `value` into a boolean. If passed
232
217
  * something other than 'true' or 'false' will coerce value to boolean.
@@ -238,15 +223,13 @@ const coerceToBoolean = (value) => {
238
223
  if (value === "true" || value === "false") return value === "true";
239
224
  return Boolean(value);
240
225
  };
241
- //#endregion
242
- //#region src/private/helpers/isServer/isServer.ts
226
+ // src/private/helpers/isServer/isServer.ts
243
227
  /**
244
228
  * @returns {boolean} - whether running in a server environment
245
229
  */
246
230
  const isServer = () => typeof window === "undefined" || typeof document === "undefined";
247
- //#endregion
248
- //#region src/components/Icon/iconMap.ts
249
- const iconMap$1 = {
231
+ // src/components/Icon/iconMap.ts
232
+ const iconMap = {
250
233
  "ab-test": "AbTestIcon",
251
234
  "all-content": "AllContentIcon",
252
235
  archived: "ArchivedIcon",
@@ -362,8 +345,7 @@ const iconMap$1 = {
362
345
  "zoom-in": "ZoomInIcon",
363
346
  "zoom-out": "ZoomOutIcon"
364
347
  };
365
- //#endregion
366
- //#region src/components/Icon/icons/AbTestIcon.tsx
348
+ // src/components/Icon/icons/AbTestIcon.tsx
367
349
  const AbTestIcon = (props) => /* @__PURE__ */ jsx("svg", {
368
350
  ...props,
369
351
  children: /* @__PURE__ */ jsx("path", {
@@ -371,8 +353,7 @@ const AbTestIcon = (props) => /* @__PURE__ */ jsx("svg", {
371
353
  fill: "currentColor"
372
354
  })
373
355
  });
374
- //#endregion
375
- //#region src/components/Icon/icons/AllContentIcon.tsx
356
+ // src/components/Icon/icons/AllContentIcon.tsx
376
357
  const AllContentIcon = (props) => /* @__PURE__ */ jsx("svg", {
377
358
  ...props,
378
359
  children: /* @__PURE__ */ jsx("path", {
@@ -380,8 +361,7 @@ const AllContentIcon = (props) => /* @__PURE__ */ jsx("svg", {
380
361
  fill: "currentColor"
381
362
  })
382
363
  });
383
- //#endregion
384
- //#region src/components/Icon/icons/ArchivedIcon.tsx
364
+ // src/components/Icon/icons/ArchivedIcon.tsx
385
365
  const ArchivedIcon = (props) => /* @__PURE__ */ jsx("svg", {
386
366
  ...props,
387
367
  children: /* @__PURE__ */ jsx("path", {
@@ -390,8 +370,7 @@ const ArchivedIcon = (props) => /* @__PURE__ */ jsx("svg", {
390
370
  fill: "currentColor"
391
371
  })
392
372
  });
393
- //#endregion
394
- //#region src/components/Icon/icons/ArrowDownIcon.tsx
373
+ // src/components/Icon/icons/ArrowDownIcon.tsx
395
374
  const ArrowDownIcon = (props) => /* @__PURE__ */ jsx("svg", {
396
375
  ...props,
397
376
  children: /* @__PURE__ */ jsx("path", {
@@ -399,8 +378,7 @@ const ArrowDownIcon = (props) => /* @__PURE__ */ jsx("svg", {
399
378
  fill: "currentColor"
400
379
  })
401
380
  });
402
- //#endregion
403
- //#region src/components/Icon/icons/ArrowLeftIcon.tsx
381
+ // src/components/Icon/icons/ArrowLeftIcon.tsx
404
382
  const ArrowLeftIcon = (props) => /* @__PURE__ */ jsx("svg", {
405
383
  ...props,
406
384
  children: /* @__PURE__ */ jsx("path", {
@@ -408,8 +386,7 @@ const ArrowLeftIcon = (props) => /* @__PURE__ */ jsx("svg", {
408
386
  fill: "currentColor"
409
387
  })
410
388
  });
411
- //#endregion
412
- //#region src/components/Icon/icons/ArrowRightIcon.tsx
389
+ // src/components/Icon/icons/ArrowRightIcon.tsx
413
390
  const ArrowRightIcon = (props) => /* @__PURE__ */ jsx("svg", {
414
391
  ...props,
415
392
  children: /* @__PURE__ */ jsx("path", {
@@ -417,8 +394,7 @@ const ArrowRightIcon = (props) => /* @__PURE__ */ jsx("svg", {
417
394
  fill: "currentColor"
418
395
  })
419
396
  });
420
- //#endregion
421
- //#region src/components/Icon/icons/ArrowUpIcon.tsx
397
+ // src/components/Icon/icons/ArrowUpIcon.tsx
422
398
  const ArrowUpIcon = (props) => /* @__PURE__ */ jsx("svg", {
423
399
  ...props,
424
400
  children: /* @__PURE__ */ jsx("path", {
@@ -426,8 +402,7 @@ const ArrowUpIcon = (props) => /* @__PURE__ */ jsx("svg", {
426
402
  fill: "currentColor"
427
403
  })
428
404
  });
429
- //#endregion
430
- //#region src/components/Icon/icons/AsteriskIcon.tsx
405
+ // src/components/Icon/icons/AsteriskIcon.tsx
431
406
  const AsteriskIcon = (props) => /* @__PURE__ */ jsx("svg", {
432
407
  ...props,
433
408
  children: /* @__PURE__ */ jsx("path", {
@@ -435,8 +410,7 @@ const AsteriskIcon = (props) => /* @__PURE__ */ jsx("svg", {
435
410
  fill: "currentColor"
436
411
  })
437
412
  });
438
- //#endregion
439
- //#region src/components/Icon/icons/AudienceIcon.tsx
413
+ // src/components/Icon/icons/AudienceIcon.tsx
440
414
  const AudienceIcon = (props) => /* @__PURE__ */ jsx("svg", {
441
415
  ...props,
442
416
  children: /* @__PURE__ */ jsx("path", {
@@ -444,8 +418,7 @@ const AudienceIcon = (props) => /* @__PURE__ */ jsx("svg", {
444
418
  fill: "currentColor"
445
419
  })
446
420
  });
447
- //#endregion
448
- //#region src/components/Icon/icons/CalendarIcon.tsx
421
+ // src/components/Icon/icons/CalendarIcon.tsx
449
422
  const CalendarIcon = (props) => /* @__PURE__ */ jsx("svg", {
450
423
  ...props,
451
424
  children: /* @__PURE__ */ jsx("path", {
@@ -455,8 +428,7 @@ const CalendarIcon = (props) => /* @__PURE__ */ jsx("svg", {
455
428
  fillRule: "evenodd"
456
429
  })
457
430
  });
458
- //#endregion
459
- //#region src/components/Icon/icons/CameraIcon.tsx
431
+ // src/components/Icon/icons/CameraIcon.tsx
460
432
  const CameraIcon = (props) => /* @__PURE__ */ jsx("svg", {
461
433
  ...props,
462
434
  children: /* @__PURE__ */ jsx("path", {
@@ -466,8 +438,7 @@ const CameraIcon = (props) => /* @__PURE__ */ jsx("svg", {
466
438
  fillRule: "evenodd"
467
439
  })
468
440
  });
469
- //#endregion
470
- //#region src/components/Icon/icons/CaretDownIcon.tsx
441
+ // src/components/Icon/icons/CaretDownIcon.tsx
471
442
  const CaretDownIcon = (props) => /* @__PURE__ */ jsx("svg", {
472
443
  ...props,
473
444
  children: /* @__PURE__ */ jsx("path", {
@@ -475,8 +446,7 @@ const CaretDownIcon = (props) => /* @__PURE__ */ jsx("svg", {
475
446
  fill: "currentColor"
476
447
  })
477
448
  });
478
- //#endregion
479
- //#region src/components/Icon/icons/CaretLeftIcon.tsx
449
+ // src/components/Icon/icons/CaretLeftIcon.tsx
480
450
  const CaretLeftIcon = (props) => /* @__PURE__ */ jsx("svg", {
481
451
  ...props,
482
452
  children: /* @__PURE__ */ jsx("path", {
@@ -484,8 +454,7 @@ const CaretLeftIcon = (props) => /* @__PURE__ */ jsx("svg", {
484
454
  fill: "currentColor"
485
455
  })
486
456
  });
487
- //#endregion
488
- //#region src/components/Icon/icons/CaretRightIcon.tsx
457
+ // src/components/Icon/icons/CaretRightIcon.tsx
489
458
  const CaretRightIcon = (props) => /* @__PURE__ */ jsx("svg", {
490
459
  ...props,
491
460
  children: /* @__PURE__ */ jsx("path", {
@@ -493,8 +462,7 @@ const CaretRightIcon = (props) => /* @__PURE__ */ jsx("svg", {
493
462
  fill: "currentColor"
494
463
  })
495
464
  });
496
- //#endregion
497
- //#region src/components/Icon/icons/CaretUpIcon.tsx
465
+ // src/components/Icon/icons/CaretUpIcon.tsx
498
466
  const CaretUpIcon = (props) => /* @__PURE__ */ jsx("svg", {
499
467
  ...props,
500
468
  children: /* @__PURE__ */ jsx("path", {
@@ -502,8 +470,7 @@ const CaretUpIcon = (props) => /* @__PURE__ */ jsx("svg", {
502
470
  fill: "currentColor"
503
471
  })
504
472
  });
505
- //#endregion
506
- //#region src/components/Icon/icons/ChannelIcon.tsx
473
+ // src/components/Icon/icons/ChannelIcon.tsx
507
474
  const ChannelIcon = (props) => /* @__PURE__ */ jsx("svg", {
508
475
  ...props,
509
476
  children: /* @__PURE__ */ jsx("path", {
@@ -513,8 +480,7 @@ const ChannelIcon = (props) => /* @__PURE__ */ jsx("svg", {
513
480
  fillRule: "evenodd"
514
481
  })
515
482
  });
516
- //#endregion
517
- //#region src/components/Icon/icons/CheckmarkCircleIcon.tsx
483
+ // src/components/Icon/icons/CheckmarkCircleIcon.tsx
518
484
  const CheckmarkCircleIcon = (props) => /* @__PURE__ */ jsx("svg", {
519
485
  ...props,
520
486
  children: /* @__PURE__ */ jsx("path", {
@@ -524,8 +490,7 @@ const CheckmarkCircleIcon = (props) => /* @__PURE__ */ jsx("svg", {
524
490
  fillRule: "evenodd"
525
491
  })
526
492
  });
527
- //#endregion
528
- //#region src/components/Icon/icons/CheckmarkCircleOutlineIcon.tsx
493
+ // src/components/Icon/icons/CheckmarkCircleOutlineIcon.tsx
529
494
  const CheckmarkCircleOutlineIcon = ({ ...props }) => /* @__PURE__ */ jsxs("svg", {
530
495
  ...props,
531
496
  children: [/* @__PURE__ */ jsx("path", {
@@ -540,8 +505,7 @@ const CheckmarkCircleOutlineIcon = ({ ...props }) => /* @__PURE__ */ jsxs("svg",
540
505
  fillRule: "evenodd"
541
506
  })]
542
507
  });
543
- //#endregion
544
- //#region src/components/Icon/icons/CheckmarkCircleThreeQuartersIcon.tsx
508
+ // src/components/Icon/icons/CheckmarkCircleThreeQuartersIcon.tsx
545
509
  const CheckmarkCircleThreeQuartersIcon = (props) => /* @__PURE__ */ jsx("svg", {
546
510
  ...props,
547
511
  children: /* @__PURE__ */ jsx("path", {
@@ -549,8 +513,7 @@ const CheckmarkCircleThreeQuartersIcon = (props) => /* @__PURE__ */ jsx("svg", {
549
513
  fill: "currentColor"
550
514
  })
551
515
  });
552
- //#endregion
553
- //#region src/components/Icon/icons/CheckmarkIcon.tsx
516
+ // src/components/Icon/icons/CheckmarkIcon.tsx
554
517
  const CheckmarkIcon = (props) => /* @__PURE__ */ jsx("svg", {
555
518
  ...props,
556
519
  children: /* @__PURE__ */ jsx("path", {
@@ -558,8 +521,7 @@ const CheckmarkIcon = (props) => /* @__PURE__ */ jsx("svg", {
558
521
  fill: "currentColor"
559
522
  })
560
523
  });
561
- //#endregion
562
- //#region src/components/Icon/icons/CheckmarkUnderlinedIcon.tsx
524
+ // src/components/Icon/icons/CheckmarkUnderlinedIcon.tsx
563
525
  const CheckmarkUnderlinedIcon = (props) => /* @__PURE__ */ jsx("svg", {
564
526
  ...props,
565
527
  children: /* @__PURE__ */ jsx("path", {
@@ -567,8 +529,7 @@ const CheckmarkUnderlinedIcon = (props) => /* @__PURE__ */ jsx("svg", {
567
529
  fill: "currentColor"
568
530
  })
569
531
  });
570
- //#endregion
571
- //#region src/components/Icon/icons/CloseCircleIcon.tsx
532
+ // src/components/Icon/icons/CloseCircleIcon.tsx
572
533
  const CloseCircleIcon = (props) => /* @__PURE__ */ jsx("svg", {
573
534
  ...props,
574
535
  children: /* @__PURE__ */ jsx("path", {
@@ -578,8 +539,7 @@ const CloseCircleIcon = (props) => /* @__PURE__ */ jsx("svg", {
578
539
  fillRule: "evenodd"
579
540
  })
580
541
  });
581
- //#endregion
582
- //#region src/components/Icon/icons/CloseIcon.tsx
542
+ // src/components/Icon/icons/CloseIcon.tsx
583
543
  const CloseIcon$1 = (props) => /* @__PURE__ */ jsx("svg", {
584
544
  ...props,
585
545
  children: /* @__PURE__ */ jsx("path", {
@@ -587,8 +547,7 @@ const CloseIcon$1 = (props) => /* @__PURE__ */ jsx("svg", {
587
547
  fill: "currentColor"
588
548
  })
589
549
  });
590
- //#endregion
591
- //#region src/components/Icon/icons/CollectVideoIcon.tsx
550
+ // src/components/Icon/icons/CollectVideoIcon.tsx
592
551
  const CollectVideoIcon = (props) => /* @__PURE__ */ jsx("svg", {
593
552
  ...props,
594
553
  children: /* @__PURE__ */ jsx("path", {
@@ -598,8 +557,7 @@ const CollectVideoIcon = (props) => /* @__PURE__ */ jsx("svg", {
598
557
  fillRule: "evenodd"
599
558
  })
600
559
  });
601
- //#endregion
602
- //#region src/components/Icon/icons/CommentIcon.tsx
560
+ // src/components/Icon/icons/CommentIcon.tsx
603
561
  const CommentIcon = (props) => /* @__PURE__ */ jsx("svg", {
604
562
  ...props,
605
563
  children: /* @__PURE__ */ jsx("path", {
@@ -609,8 +567,7 @@ const CommentIcon = (props) => /* @__PURE__ */ jsx("svg", {
609
567
  fillRule: "evenodd"
610
568
  })
611
569
  });
612
- //#endregion
613
- //#region src/components/Icon/icons/CommunityIcon.tsx
570
+ // src/components/Icon/icons/CommunityIcon.tsx
614
571
  const CommunityIcon = (props) => /* @__PURE__ */ jsx("svg", {
615
572
  ...props,
616
573
  children: /* @__PURE__ */ jsx("path", {
@@ -618,8 +575,7 @@ const CommunityIcon = (props) => /* @__PURE__ */ jsx("svg", {
618
575
  fill: "currentColor"
619
576
  })
620
577
  });
621
- //#endregion
622
- //#region src/components/Icon/icons/ContactUsIcon.tsx
578
+ // src/components/Icon/icons/ContactUsIcon.tsx
623
579
  const ContactUsIcon = (props) => /* @__PURE__ */ jsx("svg", {
624
580
  ...props,
625
581
  children: /* @__PURE__ */ jsx("path", {
@@ -627,8 +583,7 @@ const ContactUsIcon = (props) => /* @__PURE__ */ jsx("svg", {
627
583
  fill: "currentColor"
628
584
  })
629
585
  });
630
- //#endregion
631
- //#region src/components/Icon/icons/CopyDisabledIcon.tsx
586
+ // src/components/Icon/icons/CopyDisabledIcon.tsx
632
587
  const CopyDisabledIcon = (props) => /* @__PURE__ */ jsx("svg", {
633
588
  ...props,
634
589
  children: /* @__PURE__ */ jsx("path", {
@@ -636,8 +591,7 @@ const CopyDisabledIcon = (props) => /* @__PURE__ */ jsx("svg", {
636
591
  fill: "currentColor"
637
592
  })
638
593
  });
639
- //#endregion
640
- //#region src/components/Icon/icons/CopyIcon.tsx
594
+ // src/components/Icon/icons/CopyIcon.tsx
641
595
  const CopyIcon = (props) => /* @__PURE__ */ jsx("svg", {
642
596
  ...props,
643
597
  children: /* @__PURE__ */ jsx("path", {
@@ -645,8 +599,7 @@ const CopyIcon = (props) => /* @__PURE__ */ jsx("svg", {
645
599
  fill: "currentColor"
646
600
  })
647
601
  });
648
- //#endregion
649
- //#region src/components/Icon/icons/CreateIcon.tsx
602
+ // src/components/Icon/icons/CreateIcon.tsx
650
603
  const CreateIcon = (props) => /* @__PURE__ */ jsx("svg", {
651
604
  ...props,
652
605
  children: /* @__PURE__ */ jsx("path", {
@@ -654,8 +607,7 @@ const CreateIcon = (props) => /* @__PURE__ */ jsx("svg", {
654
607
  fill: "currentColor"
655
608
  })
656
609
  });
657
- //#endregion
658
- //#region src/components/Icon/icons/DeleteIcon.tsx
610
+ // src/components/Icon/icons/DeleteIcon.tsx
659
611
  const DeleteIcon = (props) => /* @__PURE__ */ jsx("svg", {
660
612
  ...props,
661
613
  children: /* @__PURE__ */ jsx("path", {
@@ -663,8 +615,7 @@ const DeleteIcon = (props) => /* @__PURE__ */ jsx("svg", {
663
615
  fill: "currentColor"
664
616
  })
665
617
  });
666
- //#endregion
667
- //#region src/components/Icon/icons/DeleteSmIcon.tsx
618
+ // src/components/Icon/icons/DeleteSmIcon.tsx
668
619
  const DeleteSmIcon = (props) => /* @__PURE__ */ jsx("svg", {
669
620
  ...props,
670
621
  children: /* @__PURE__ */ jsxs("g", {
@@ -672,8 +623,7 @@ const DeleteSmIcon = (props) => /* @__PURE__ */ jsx("svg", {
672
623
  children: [/* @__PURE__ */ jsx("path", { d: "m9.05042 2c-.64391 0-1.23256.35667-1.52052.92132l-1.23015 2.41201h-1.59974c-.9389 0-1.70001.74619-1.70001 1.66667 0 .92047.76111 1.66667 1.70001 1.66667h14.59999c.9389 0 1.7-.7462 1.7-1.66667 0-.92048-.7611-1.66667-1.7-1.66667h-1.8003l-1.2301-2.41201c-.288-.56465-.8765-.92132-1.5205-.92132z" }), /* @__PURE__ */ jsx("path", { d: "m6.63212 10c-.9389 0-1.63212.7462-1.63212 1.6667v8.8333c0 .9205.36086 1.5 1.29975 1.5h11.19995c.9389 0 1.5003-.5795 1.5003-1.5l-.1-8.8333c0-.9205-.4611-1.6667-1.4-1.6667z" })]
673
624
  })
674
625
  });
675
- //#endregion
676
- //#region src/components/Icon/icons/DottieClockIcon.tsx
626
+ // src/components/Icon/icons/DottieClockIcon.tsx
677
627
  const DottieClockIcon = (props) => /* @__PURE__ */ jsx("svg", {
678
628
  ...props,
679
629
  children: /* @__PURE__ */ jsx("path", {
@@ -683,8 +633,7 @@ const DottieClockIcon = (props) => /* @__PURE__ */ jsx("svg", {
683
633
  fillRule: "evenodd"
684
634
  })
685
635
  });
686
- //#endregion
687
- //#region src/components/Icon/icons/DownloadIcon.tsx
636
+ // src/components/Icon/icons/DownloadIcon.tsx
688
637
  const DownloadIcon = (props) => /* @__PURE__ */ jsx("svg", {
689
638
  ...props,
690
639
  children: /* @__PURE__ */ jsx("path", {
@@ -692,8 +641,7 @@ const DownloadIcon = (props) => /* @__PURE__ */ jsx("svg", {
692
641
  fill: "currentColor"
693
642
  })
694
643
  });
695
- //#endregion
696
- //#region src/components/Icon/icons/DraggableIcon.tsx
644
+ // src/components/Icon/icons/DraggableIcon.tsx
697
645
  const DraggableIcon = (props) => /* @__PURE__ */ jsx("svg", {
698
646
  ...props,
699
647
  children: /* @__PURE__ */ jsx("path", {
@@ -701,8 +649,7 @@ const DraggableIcon = (props) => /* @__PURE__ */ jsx("svg", {
701
649
  fill: "currentColor"
702
650
  })
703
651
  });
704
- //#endregion
705
- //#region src/components/Icon/icons/EllipsisIcon.tsx
652
+ // src/components/Icon/icons/EllipsisIcon.tsx
706
653
  const EllipsisIcon = (props) => /* @__PURE__ */ jsx("svg", {
707
654
  ...props,
708
655
  children: /* @__PURE__ */ jsx("path", {
@@ -710,8 +657,7 @@ const EllipsisIcon = (props) => /* @__PURE__ */ jsx("svg", {
710
657
  fill: "currentColor"
711
658
  })
712
659
  });
713
- //#endregion
714
- //#region src/components/Icon/icons/EllipsisVerticalIcon.tsx
660
+ // src/components/Icon/icons/EllipsisVerticalIcon.tsx
715
661
  const EllipsisVerticalIcon = (props) => /* @__PURE__ */ jsx("svg", {
716
662
  ...props,
717
663
  children: /* @__PURE__ */ jsx("path", {
@@ -719,8 +665,7 @@ const EllipsisVerticalIcon = (props) => /* @__PURE__ */ jsx("svg", {
719
665
  fill: "currentColor"
720
666
  })
721
667
  });
722
- //#endregion
723
- //#region src/components/Icon/icons/EmbedIcon.tsx
668
+ // src/components/Icon/icons/EmbedIcon.tsx
724
669
  const EmbedIcon = (props) => /* @__PURE__ */ jsx("svg", {
725
670
  ...props,
726
671
  children: /* @__PURE__ */ jsx("path", {
@@ -728,8 +673,7 @@ const EmbedIcon = (props) => /* @__PURE__ */ jsx("svg", {
728
673
  fill: "currentColor"
729
674
  })
730
675
  });
731
- //#endregion
732
- //#region src/components/Icon/icons/EpisodesIcon.tsx
676
+ // src/components/Icon/icons/EpisodesIcon.tsx
733
677
  const EpisodesIcon = (props) => /* @__PURE__ */ jsx("svg", {
734
678
  ...props,
735
679
  children: /* @__PURE__ */ jsx("path", {
@@ -737,8 +681,7 @@ const EpisodesIcon = (props) => /* @__PURE__ */ jsx("svg", {
737
681
  fill: "currentColor"
738
682
  })
739
683
  });
740
- //#endregion
741
- //#region src/components/Icon/icons/ExpandIcon.tsx
684
+ // src/components/Icon/icons/ExpandIcon.tsx
742
685
  const ExpandIcon = (props) => /* @__PURE__ */ jsx("svg", {
743
686
  ...props,
744
687
  children: /* @__PURE__ */ jsx("path", {
@@ -748,8 +691,7 @@ const ExpandIcon = (props) => /* @__PURE__ */ jsx("svg", {
748
691
  fillRule: "evenodd"
749
692
  })
750
693
  });
751
- //#endregion
752
- //#region src/components/Icon/icons/FavoriteIcon.tsx
694
+ // src/components/Icon/icons/FavoriteIcon.tsx
753
695
  const FavoriteIcon = (props) => /* @__PURE__ */ jsx("svg", {
754
696
  ...props,
755
697
  children: /* @__PURE__ */ jsx("path", {
@@ -757,8 +699,7 @@ const FavoriteIcon = (props) => /* @__PURE__ */ jsx("svg", {
757
699
  fill: "currentColor"
758
700
  })
759
701
  });
760
- //#endregion
761
- //#region src/components/Icon/icons/FavoriteOutlineIcon.tsx
702
+ // src/components/Icon/icons/FavoriteOutlineIcon.tsx
762
703
  const FavoriteOutlineIcon = (props) => /* @__PURE__ */ jsx("svg", {
763
704
  ...props,
764
705
  children: /* @__PURE__ */ jsx("path", {
@@ -768,8 +709,7 @@ const FavoriteOutlineIcon = (props) => /* @__PURE__ */ jsx("svg", {
768
709
  fillRule: "evenodd"
769
710
  })
770
711
  });
771
- //#endregion
772
- //#region src/components/Icon/icons/FilterIcon.tsx
712
+ // src/components/Icon/icons/FilterIcon.tsx
773
713
  const FilterIcon = (props) => /* @__PURE__ */ jsx("svg", {
774
714
  ...props,
775
715
  children: /* @__PURE__ */ jsx("path", {
@@ -779,8 +719,7 @@ const FilterIcon = (props) => /* @__PURE__ */ jsx("svg", {
779
719
  fillRule: "evenodd"
780
720
  })
781
721
  });
782
- //#endregion
783
- //#region src/components/Icon/icons/GearIcon.tsx
722
+ // src/components/Icon/icons/GearIcon.tsx
784
723
  const GearIcon = (props) => /* @__PURE__ */ jsx("svg", {
785
724
  ...props,
786
725
  children: /* @__PURE__ */ jsx("path", {
@@ -788,8 +727,7 @@ const GearIcon = (props) => /* @__PURE__ */ jsx("svg", {
788
727
  fill: "currentColor"
789
728
  })
790
729
  });
791
- //#endregion
792
- //#region src/components/Icon/icons/GettingStartedIcon.tsx
730
+ // src/components/Icon/icons/GettingStartedIcon.tsx
793
731
  const GettingStartedIcon = (props) => /* @__PURE__ */ jsx("svg", {
794
732
  ...props,
795
733
  children: /* @__PURE__ */ jsx("path", {
@@ -797,8 +735,7 @@ const GettingStartedIcon = (props) => /* @__PURE__ */ jsx("svg", {
797
735
  fill: "currentColor"
798
736
  })
799
737
  });
800
- //#endregion
801
- //#region src/components/Icon/icons/GlobeIcon.tsx
738
+ // src/components/Icon/icons/GlobeIcon.tsx
802
739
  const GlobeIcon = ({ ...props }) => {
803
740
  return /* @__PURE__ */ jsx("svg", {
804
741
  ...props,
@@ -833,8 +770,7 @@ const GlobeIcon = ({ ...props }) => {
833
770
  })
834
771
  });
835
772
  };
836
- //#endregion
837
- //#region src/components/Icon/icons/GridViewIcon.tsx
773
+ // src/components/Icon/icons/GridViewIcon.tsx
838
774
  const GridViewIcon = (props) => /* @__PURE__ */ jsx("svg", {
839
775
  ...props,
840
776
  children: /* @__PURE__ */ jsx("path", {
@@ -844,8 +780,7 @@ const GridViewIcon = (props) => /* @__PURE__ */ jsx("svg", {
844
780
  fillRule: "evenodd"
845
781
  })
846
782
  });
847
- //#endregion
848
- //#region src/components/Icon/icons/HamburgerIcon.tsx
783
+ // src/components/Icon/icons/HamburgerIcon.tsx
849
784
  const HamburgerIcon = (props) => /* @__PURE__ */ jsx("svg", {
850
785
  ...props,
851
786
  children: /* @__PURE__ */ jsx("path", {
@@ -855,8 +790,7 @@ const HamburgerIcon = (props) => /* @__PURE__ */ jsx("svg", {
855
790
  fillRule: "evenodd"
856
791
  })
857
792
  });
858
- //#endregion
859
- //#region src/components/Icon/icons/HazardIcon.tsx
793
+ // src/components/Icon/icons/HazardIcon.tsx
860
794
  const HazardIcon = (props) => /* @__PURE__ */ jsx("svg", {
861
795
  ...props,
862
796
  children: /* @__PURE__ */ jsx("path", {
@@ -864,8 +798,7 @@ const HazardIcon = (props) => /* @__PURE__ */ jsx("svg", {
864
798
  fill: "currentColor"
865
799
  })
866
800
  });
867
- //#endregion
868
- //#region src/components/Icon/icons/HelpCenterIcon.tsx
801
+ // src/components/Icon/icons/HelpCenterIcon.tsx
869
802
  const HelpCenterIcon = (props) => /* @__PURE__ */ jsx("svg", {
870
803
  ...props,
871
804
  children: /* @__PURE__ */ jsx("path", {
@@ -873,8 +806,7 @@ const HelpCenterIcon = (props) => /* @__PURE__ */ jsx("svg", {
873
806
  fill: "currentColor"
874
807
  })
875
808
  });
876
- //#endregion
877
- //#region src/components/Icon/icons/HideIcon.tsx
809
+ // src/components/Icon/icons/HideIcon.tsx
878
810
  const HideIcon = (props) => /* @__PURE__ */ jsx("svg", {
879
811
  ...props,
880
812
  viewBox: "0 0 24 24",
@@ -884,8 +816,7 @@ const HideIcon = (props) => /* @__PURE__ */ jsx("svg", {
884
816
  fill: "currentColor"
885
817
  })
886
818
  });
887
- //#endregion
888
- //#region src/components/Icon/icons/HomeIcon.tsx
819
+ // src/components/Icon/icons/HomeIcon.tsx
889
820
  const HomeIcon = (props) => /* @__PURE__ */ jsx("svg", {
890
821
  ...props,
891
822
  children: /* @__PURE__ */ jsx("path", {
@@ -893,8 +824,7 @@ const HomeIcon = (props) => /* @__PURE__ */ jsx("svg", {
893
824
  fill: "currentColor"
894
825
  })
895
826
  });
896
- //#endregion
897
- //#region src/components/Icon/icons/HourglassIcon.tsx
827
+ // src/components/Icon/icons/HourglassIcon.tsx
898
828
  const HourglassIcon = (props) => /* @__PURE__ */ jsx("svg", {
899
829
  ...props,
900
830
  children: /* @__PURE__ */ jsx("path", {
@@ -903,8 +833,7 @@ const HourglassIcon = (props) => /* @__PURE__ */ jsx("svg", {
903
833
  fillRule: "evenodd"
904
834
  })
905
835
  });
906
- //#endregion
907
- //#region src/components/Icon/icons/ImportIcon.tsx
836
+ // src/components/Icon/icons/ImportIcon.tsx
908
837
  const ImportIcon = (props) => /* @__PURE__ */ jsx("svg", {
909
838
  ...props,
910
839
  children: /* @__PURE__ */ jsx("path", {
@@ -912,8 +841,7 @@ const ImportIcon = (props) => /* @__PURE__ */ jsx("svg", {
912
841
  fill: "currentColor"
913
842
  })
914
843
  });
915
- //#endregion
916
- //#region src/components/Icon/icons/InfoIcon.tsx
844
+ // src/components/Icon/icons/InfoIcon.tsx
917
845
  const InfoIcon = (props) => /* @__PURE__ */ jsx("svg", {
918
846
  ...props,
919
847
  children: /* @__PURE__ */ jsx("path", {
@@ -921,8 +849,7 @@ const InfoIcon = (props) => /* @__PURE__ */ jsx("svg", {
921
849
  fill: "currentColor"
922
850
  })
923
851
  });
924
- //#endregion
925
- //#region src/components/Icon/icons/IntegrationsIcon.tsx
852
+ // src/components/Icon/icons/IntegrationsIcon.tsx
926
853
  const IntegrationsIcon = (props) => /* @__PURE__ */ jsx("svg", {
927
854
  ...props,
928
855
  children: /* @__PURE__ */ jsx("path", {
@@ -930,8 +857,7 @@ const IntegrationsIcon = (props) => /* @__PURE__ */ jsx("svg", {
930
857
  fill: "currentColor"
931
858
  })
932
859
  });
933
- //#endregion
934
- //#region src/components/Icon/icons/InviteIcon.tsx
860
+ // src/components/Icon/icons/InviteIcon.tsx
935
861
  const InviteIcon = (props) => /* @__PURE__ */ jsxs("svg", {
936
862
  ...props,
937
863
  children: [/* @__PURE__ */ jsx("path", {
@@ -946,8 +872,7 @@ const InviteIcon = (props) => /* @__PURE__ */ jsxs("svg", {
946
872
  fillRule: "evenodd"
947
873
  })]
948
874
  });
949
- //#endregion
950
- //#region src/components/Icon/icons/LightningBoltIcon.tsx
875
+ // src/components/Icon/icons/LightningBoltIcon.tsx
951
876
  const LightningBoltIcon = ({ ...props }) => {
952
877
  return /* @__PURE__ */ jsx("svg", {
953
878
  ...props,
@@ -959,8 +884,7 @@ const LightningBoltIcon = ({ ...props }) => {
959
884
  })
960
885
  });
961
886
  };
962
- //#endregion
963
- //#region src/components/Icon/icons/LinkIcon.tsx
887
+ // src/components/Icon/icons/LinkIcon.tsx
964
888
  const LinkIcon = (props) => /* @__PURE__ */ jsx("svg", {
965
889
  ...props,
966
890
  children: /* @__PURE__ */ jsx("path", {
@@ -968,8 +892,7 @@ const LinkIcon = (props) => /* @__PURE__ */ jsx("svg", {
968
892
  fill: "currentColor"
969
893
  })
970
894
  });
971
- //#endregion
972
- //#region src/components/Icon/icons/ListViewIcon.tsx
895
+ // src/components/Icon/icons/ListViewIcon.tsx
973
896
  const ListViewIcon = (props) => /* @__PURE__ */ jsx("svg", {
974
897
  ...props,
975
898
  children: /* @__PURE__ */ jsx("path", {
@@ -979,8 +902,7 @@ const ListViewIcon = (props) => /* @__PURE__ */ jsx("svg", {
979
902
  fillRule: "evenodd"
980
903
  })
981
904
  });
982
- //#endregion
983
- //#region src/components/Icon/icons/LiveIcon.tsx
905
+ // src/components/Icon/icons/LiveIcon.tsx
984
906
  const LiveIcon = (props) => /* @__PURE__ */ jsx("svg", {
985
907
  ...props,
986
908
  children: /* @__PURE__ */ jsx("path", {
@@ -989,8 +911,7 @@ const LiveIcon = (props) => /* @__PURE__ */ jsx("svg", {
989
911
  fillRule: "evenodd"
990
912
  })
991
913
  });
992
- //#endregion
993
- //#region src/components/Icon/icons/LockIcon.tsx
914
+ // src/components/Icon/icons/LockIcon.tsx
994
915
  const LockIcon = (props) => /* @__PURE__ */ jsx("svg", {
995
916
  ...props,
996
917
  children: /* @__PURE__ */ jsx("path", {
@@ -998,8 +919,7 @@ const LockIcon = (props) => /* @__PURE__ */ jsx("svg", {
998
919
  fill: "currentColor"
999
920
  })
1000
921
  });
1001
- //#endregion
1002
- //#region src/components/Icon/icons/LogoutIcon.tsx
922
+ // src/components/Icon/icons/LogoutIcon.tsx
1003
923
  const LogoutIcon = (props) => /* @__PURE__ */ jsx("svg", {
1004
924
  ...props,
1005
925
  children: /* @__PURE__ */ jsx("path", {
@@ -1007,8 +927,7 @@ const LogoutIcon = (props) => /* @__PURE__ */ jsx("svg", {
1007
927
  fill: "currentColor"
1008
928
  })
1009
929
  });
1010
- //#endregion
1011
- //#region src/components/Icon/icons/MediaIcon.tsx
930
+ // src/components/Icon/icons/MediaIcon.tsx
1012
931
  const MediaIcon = (props) => /* @__PURE__ */ jsx("svg", {
1013
932
  ...props,
1014
933
  children: /* @__PURE__ */ jsx("path", {
@@ -1018,8 +937,7 @@ const MediaIcon = (props) => /* @__PURE__ */ jsx("svg", {
1018
937
  fillRule: "evenodd"
1019
938
  })
1020
939
  });
1021
- //#endregion
1022
- //#region src/components/Icon/icons/MegaphoneIcon.tsx
940
+ // src/components/Icon/icons/MegaphoneIcon.tsx
1023
941
  const MegaphoneIcon = (props) => /* @__PURE__ */ jsx("svg", {
1024
942
  ...props,
1025
943
  children: /* @__PURE__ */ jsx("path", {
@@ -1029,8 +947,7 @@ const MegaphoneIcon = (props) => /* @__PURE__ */ jsx("svg", {
1029
947
  fillRule: "evenodd"
1030
948
  })
1031
949
  });
1032
- //#endregion
1033
- //#region src/components/Icon/icons/MoreOptionsIcon.tsx
950
+ // src/components/Icon/icons/MoreOptionsIcon.tsx
1034
951
  const MoreOptionsIcon = (props) => /* @__PURE__ */ jsx("svg", {
1035
952
  ...props,
1036
953
  children: /* @__PURE__ */ jsx("path", {
@@ -1038,8 +955,7 @@ const MoreOptionsIcon = (props) => /* @__PURE__ */ jsx("svg", {
1038
955
  fill: "currentColor"
1039
956
  })
1040
957
  });
1041
- //#endregion
1042
- //#region src/components/Icon/icons/OpenNewIcon.tsx
958
+ // src/components/Icon/icons/OpenNewIcon.tsx
1043
959
  const OpenNewIcon = (props) => /* @__PURE__ */ jsx("svg", {
1044
960
  ...props,
1045
961
  children: /* @__PURE__ */ jsx("path", {
@@ -1047,8 +963,7 @@ const OpenNewIcon = (props) => /* @__PURE__ */ jsx("svg", {
1047
963
  fill: "currentColor"
1048
964
  })
1049
965
  });
1050
- //#endregion
1051
- //#region src/components/Icon/icons/OverviewIcon.tsx
966
+ // src/components/Icon/icons/OverviewIcon.tsx
1052
967
  const OverviewIcon = (props) => /* @__PURE__ */ jsx("svg", {
1053
968
  ...props,
1054
969
  children: /* @__PURE__ */ jsx("path", {
@@ -1056,8 +971,7 @@ const OverviewIcon = (props) => /* @__PURE__ */ jsx("svg", {
1056
971
  fill: "currentColor"
1057
972
  })
1058
973
  });
1059
- //#endregion
1060
- //#region src/components/Icon/icons/PaintIcon.tsx
974
+ // src/components/Icon/icons/PaintIcon.tsx
1061
975
  const PaintIcon = (props) => /* @__PURE__ */ jsx("svg", {
1062
976
  ...props,
1063
977
  children: /* @__PURE__ */ jsx("path", {
@@ -1067,8 +981,7 @@ const PaintIcon = (props) => /* @__PURE__ */ jsx("svg", {
1067
981
  fillRule: "evenodd"
1068
982
  })
1069
983
  });
1070
- //#endregion
1071
- //#region src/components/Icon/icons/PencilIcon.tsx
984
+ // src/components/Icon/icons/PencilIcon.tsx
1072
985
  const PencilIcon = (props) => /* @__PURE__ */ jsx("svg", {
1073
986
  ...props,
1074
987
  children: /* @__PURE__ */ jsx("path", {
@@ -1077,8 +990,7 @@ const PencilIcon = (props) => /* @__PURE__ */ jsx("svg", {
1077
990
  fillRule: "evenodd"
1078
991
  })
1079
992
  });
1080
- //#endregion
1081
- //#region src/components/Icon/icons/PlayIcon.tsx
993
+ // src/components/Icon/icons/PlayIcon.tsx
1082
994
  const PlayIcon = (props) => /* @__PURE__ */ jsx("svg", {
1083
995
  ...props,
1084
996
  children: /* @__PURE__ */ jsx("path", {
@@ -1086,8 +998,7 @@ const PlayIcon = (props) => /* @__PURE__ */ jsx("svg", {
1086
998
  fill: "currentColor"
1087
999
  })
1088
1000
  });
1089
- //#endregion
1090
- //#region src/components/Icon/icons/PodcastIcon.tsx
1001
+ // src/components/Icon/icons/PodcastIcon.tsx
1091
1002
  const PodcastIcon = (props) => /* @__PURE__ */ jsx("svg", {
1092
1003
  ...props,
1093
1004
  children: /* @__PURE__ */ jsx("path", {
@@ -1095,8 +1006,7 @@ const PodcastIcon = (props) => /* @__PURE__ */ jsx("svg", {
1095
1006
  fill: "currentColor"
1096
1007
  })
1097
1008
  });
1098
- //#endregion
1099
- //#region src/components/Icon/icons/PreviewIcon.tsx
1009
+ // src/components/Icon/icons/PreviewIcon.tsx
1100
1010
  const PreviewIcon = (props) => /* @__PURE__ */ jsx("svg", {
1101
1011
  ...props,
1102
1012
  children: /* @__PURE__ */ jsx("path", {
@@ -1104,8 +1014,7 @@ const PreviewIcon = (props) => /* @__PURE__ */ jsx("svg", {
1104
1014
  fill: "currentColor"
1105
1015
  })
1106
1016
  });
1107
- //#endregion
1108
- //#region src/components/Icon/icons/PrivateUserSessionsIcon.tsx
1017
+ // src/components/Icon/icons/PrivateUserSessionsIcon.tsx
1109
1018
  const PrivateUserSessionsIcon = (props) => /* @__PURE__ */ jsx("svg", {
1110
1019
  ...props,
1111
1020
  children: /* @__PURE__ */ jsx("path", {
@@ -1113,8 +1022,7 @@ const PrivateUserSessionsIcon = (props) => /* @__PURE__ */ jsx("svg", {
1113
1022
  fill: "currentColor"
1114
1023
  })
1115
1024
  });
1116
- //#endregion
1117
- //#region src/components/Icon/icons/ProjectIcon.tsx
1025
+ // src/components/Icon/icons/ProjectIcon.tsx
1118
1026
  const ProjectIcon = (props) => /* @__PURE__ */ jsx("svg", {
1119
1027
  ...props,
1120
1028
  children: /* @__PURE__ */ jsx("path", {
@@ -1122,8 +1030,7 @@ const ProjectIcon = (props) => /* @__PURE__ */ jsx("svg", {
1122
1030
  fill: "currentColor"
1123
1031
  })
1124
1032
  });
1125
- //#endregion
1126
- //#region src/components/Icon/icons/QuestionMarkIcon.tsx
1033
+ // src/components/Icon/icons/QuestionMarkIcon.tsx
1127
1034
  const QuestionMarkIcon = (props) => /* @__PURE__ */ jsx("svg", {
1128
1035
  ...props,
1129
1036
  children: /* @__PURE__ */ jsx("path", {
@@ -1131,8 +1038,7 @@ const QuestionMarkIcon = (props) => /* @__PURE__ */ jsx("svg", {
1131
1038
  fill: "currentColor"
1132
1039
  })
1133
1040
  });
1134
- //#endregion
1135
- //#region src/components/Icon/icons/ReactIcon.tsx
1041
+ // src/components/Icon/icons/ReactIcon.tsx
1136
1042
  const ReactIcon = (props) => /* @__PURE__ */ jsx("svg", {
1137
1043
  ...props,
1138
1044
  children: /* @__PURE__ */ jsx("path", {
@@ -1142,8 +1048,7 @@ const ReactIcon = (props) => /* @__PURE__ */ jsx("svg", {
1142
1048
  fillRule: "evenodd"
1143
1049
  })
1144
1050
  });
1145
- //#endregion
1146
- //#region src/components/Icon/icons/RecordIcon.tsx
1051
+ // src/components/Icon/icons/RecordIcon.tsx
1147
1052
  const RecordIcon = (props) => /* @__PURE__ */ jsxs("svg", {
1148
1053
  ...props,
1149
1054
  children: [/* @__PURE__ */ jsx("path", {
@@ -1157,8 +1062,7 @@ const RecordIcon = (props) => /* @__PURE__ */ jsxs("svg", {
1157
1062
  stroke: "transparent"
1158
1063
  })]
1159
1064
  });
1160
- //#endregion
1161
- //#region src/components/Icon/icons/RedoIcon.tsx
1065
+ // src/components/Icon/icons/RedoIcon.tsx
1162
1066
  const RedoIcon = (props) => /* @__PURE__ */ jsx("svg", {
1163
1067
  ...props,
1164
1068
  children: /* @__PURE__ */ jsx("path", {
@@ -1166,8 +1070,7 @@ const RedoIcon = (props) => /* @__PURE__ */ jsx("svg", {
1166
1070
  fill: "currentColor"
1167
1071
  })
1168
1072
  });
1169
- //#endregion
1170
- //#region src/components/Icon/icons/RemoveFromChannelIcon.tsx
1073
+ // src/components/Icon/icons/RemoveFromChannelIcon.tsx
1171
1074
  const RemoveFromChannelIcon = (props) => /* @__PURE__ */ jsx("svg", {
1172
1075
  ...props,
1173
1076
  children: /* @__PURE__ */ jsx("path", {
@@ -1175,8 +1078,7 @@ const RemoveFromChannelIcon = (props) => /* @__PURE__ */ jsx("svg", {
1175
1078
  fill: "currentColor"
1176
1079
  })
1177
1080
  });
1178
- //#endregion
1179
- //#region src/components/Icon/icons/ReplaceIcon.tsx
1081
+ // src/components/Icon/icons/ReplaceIcon.tsx
1180
1082
  const ReplaceIcon = (props) => /* @__PURE__ */ jsx("svg", {
1181
1083
  ...props,
1182
1084
  children: /* @__PURE__ */ jsx("path", {
@@ -1184,8 +1086,7 @@ const ReplaceIcon = (props) => /* @__PURE__ */ jsx("svg", {
1184
1086
  fill: "currentColor"
1185
1087
  })
1186
1088
  });
1187
- //#endregion
1188
- //#region src/components/Icon/icons/ReplyIcon.tsx
1089
+ // src/components/Icon/icons/ReplyIcon.tsx
1189
1090
  const ReplyIcon = (props) => /* @__PURE__ */ jsx("svg", {
1190
1091
  ...props,
1191
1092
  children: /* @__PURE__ */ jsx("path", {
@@ -1195,8 +1096,7 @@ const ReplyIcon = (props) => /* @__PURE__ */ jsx("svg", {
1195
1096
  fillRule: "evenodd"
1196
1097
  })
1197
1098
  });
1198
- //#endregion
1199
- //#region src/components/Icon/icons/ScissorsIcon.tsx
1099
+ // src/components/Icon/icons/ScissorsIcon.tsx
1200
1100
  const ScissorsIcon = (props) => /* @__PURE__ */ jsx("svg", {
1201
1101
  ...props,
1202
1102
  children: /* @__PURE__ */ jsx("path", {
@@ -1204,8 +1104,7 @@ const ScissorsIcon = (props) => /* @__PURE__ */ jsx("svg", {
1204
1104
  fill: "currentColor"
1205
1105
  })
1206
1106
  });
1207
- //#endregion
1208
- //#region src/components/Icon/icons/SearchIcon.tsx
1107
+ // src/components/Icon/icons/SearchIcon.tsx
1209
1108
  const SearchIcon = (props) => /* @__PURE__ */ jsx("svg", {
1210
1109
  ...props,
1211
1110
  children: /* @__PURE__ */ jsx("path", {
@@ -1215,8 +1114,7 @@ const SearchIcon = (props) => /* @__PURE__ */ jsx("svg", {
1215
1114
  fillRule: "evenodd"
1216
1115
  })
1217
1116
  });
1218
- //#endregion
1219
- //#region src/components/Icon/icons/SendIcon.tsx
1117
+ // src/components/Icon/icons/SendIcon.tsx
1220
1118
  const SendIcon = (props) => /* @__PURE__ */ jsx("svg", {
1221
1119
  ...props,
1222
1120
  children: /* @__PURE__ */ jsx("path", {
@@ -1224,8 +1122,7 @@ const SendIcon = (props) => /* @__PURE__ */ jsx("svg", {
1224
1122
  fill: "currentColor"
1225
1123
  })
1226
1124
  });
1227
- //#endregion
1228
- //#region src/components/Icon/icons/SettingsIcon.tsx
1125
+ // src/components/Icon/icons/SettingsIcon.tsx
1229
1126
  const SettingsIcon = (props) => /* @__PURE__ */ jsx("svg", {
1230
1127
  ...props,
1231
1128
  children: /* @__PURE__ */ jsx("path", {
@@ -1235,8 +1132,7 @@ const SettingsIcon = (props) => /* @__PURE__ */ jsx("svg", {
1235
1132
  fillRule: "evenodd"
1236
1133
  })
1237
1134
  });
1238
- //#endregion
1239
- //#region src/components/Icon/icons/ShareIcon.tsx
1135
+ // src/components/Icon/icons/ShareIcon.tsx
1240
1136
  const ShareIcon = (props) => /* @__PURE__ */ jsx("svg", {
1241
1137
  ...props,
1242
1138
  children: /* @__PURE__ */ jsx("path", {
@@ -1244,8 +1140,7 @@ const ShareIcon = (props) => /* @__PURE__ */ jsx("svg", {
1244
1140
  fill: "currentColor"
1245
1141
  })
1246
1142
  });
1247
- //#endregion
1248
- //#region src/components/Icon/icons/SoapboxIcon.tsx
1143
+ // src/components/Icon/icons/SoapboxIcon.tsx
1249
1144
  const SoapboxIcon = (props) => /* @__PURE__ */ jsx("svg", {
1250
1145
  ...props,
1251
1146
  children: /* @__PURE__ */ jsx("path", {
@@ -1253,8 +1148,7 @@ const SoapboxIcon = (props) => /* @__PURE__ */ jsx("svg", {
1253
1148
  fill: "currentColor"
1254
1149
  })
1255
1150
  });
1256
- //#endregion
1257
- //#region src/components/Icon/icons/SortIcon.tsx
1151
+ // src/components/Icon/icons/SortIcon.tsx
1258
1152
  const SortIcon = (props) => /* @__PURE__ */ jsx("svg", {
1259
1153
  ...props,
1260
1154
  children: /* @__PURE__ */ jsx("path", {
@@ -1264,8 +1158,7 @@ const SortIcon = (props) => /* @__PURE__ */ jsx("svg", {
1264
1158
  fillRule: "evenodd"
1265
1159
  })
1266
1160
  });
1267
- //#endregion
1268
- //#region src/components/Icon/icons/SparkleIcon.tsx
1161
+ // src/components/Icon/icons/SparkleIcon.tsx
1269
1162
  const SparkleIcon = (props) => /* @__PURE__ */ jsx("svg", {
1270
1163
  ...props,
1271
1164
  children: /* @__PURE__ */ jsx("path", {
@@ -1275,8 +1168,7 @@ const SparkleIcon = (props) => /* @__PURE__ */ jsx("svg", {
1275
1168
  fillRule: "evenodd"
1276
1169
  })
1277
1170
  });
1278
- //#endregion
1279
- //#region src/components/Icon/icons/SpinnerIcon.tsx
1171
+ // src/components/Icon/icons/SpinnerIcon.tsx
1280
1172
  const SpinnerIcon = (props) => /* @__PURE__ */ jsx("svg", {
1281
1173
  ...props,
1282
1174
  children: /* @__PURE__ */ jsx("path", {
@@ -1292,8 +1184,7 @@ const SpinnerIcon = (props) => /* @__PURE__ */ jsx("svg", {
1292
1184
  })
1293
1185
  })
1294
1186
  });
1295
- //#endregion
1296
- //#region src/components/Icon/icons/StatsIcon.tsx
1187
+ // src/components/Icon/icons/StatsIcon.tsx
1297
1188
  const StatsIcon = (props) => /* @__PURE__ */ jsx("svg", {
1298
1189
  ...props,
1299
1190
  children: /* @__PURE__ */ jsx("path", {
@@ -1301,8 +1192,7 @@ const StatsIcon = (props) => /* @__PURE__ */ jsx("svg", {
1301
1192
  fill: "currentColor"
1302
1193
  })
1303
1194
  });
1304
- //#endregion
1305
- //#region src/components/Icon/icons/SwitchAccountsIcon.tsx
1195
+ // src/components/Icon/icons/SwitchAccountsIcon.tsx
1306
1196
  const SwitchAccountsIcon = (props) => /* @__PURE__ */ jsx("svg", {
1307
1197
  ...props,
1308
1198
  children: /* @__PURE__ */ jsx("path", {
@@ -1310,8 +1200,7 @@ const SwitchAccountsIcon = (props) => /* @__PURE__ */ jsx("svg", {
1310
1200
  fill: "currentColor"
1311
1201
  })
1312
1202
  });
1313
- //#endregion
1314
- //#region src/components/Icon/icons/TagIcon.tsx
1203
+ // src/components/Icon/icons/TagIcon.tsx
1315
1204
  const TagIcon = (props) => /* @__PURE__ */ jsx("svg", {
1316
1205
  ...props,
1317
1206
  children: /* @__PURE__ */ jsx("path", {
@@ -1319,8 +1208,7 @@ const TagIcon = (props) => /* @__PURE__ */ jsx("svg", {
1319
1208
  fill: "currentColor"
1320
1209
  })
1321
1210
  });
1322
- //#endregion
1323
- //#region src/components/Icon/icons/TeamIcon.tsx
1211
+ // src/components/Icon/icons/TeamIcon.tsx
1324
1212
  const TeamIcon = (props) => /* @__PURE__ */ jsx("svg", {
1325
1213
  ...props,
1326
1214
  children: /* @__PURE__ */ jsx("path", {
@@ -1330,8 +1218,7 @@ const TeamIcon = (props) => /* @__PURE__ */ jsx("svg", {
1330
1218
  fillRule: "evenodd"
1331
1219
  })
1332
1220
  });
1333
- //#endregion
1334
- //#region src/components/Icon/icons/ThumbsDownIcon.tsx
1221
+ // src/components/Icon/icons/ThumbsDownIcon.tsx
1335
1222
  const ThumbsDownIcon = (props) => /* @__PURE__ */ jsx("svg", {
1336
1223
  ...props,
1337
1224
  children: /* @__PURE__ */ jsx("path", {
@@ -1339,8 +1226,7 @@ const ThumbsDownIcon = (props) => /* @__PURE__ */ jsx("svg", {
1339
1226
  fill: "currentColor"
1340
1227
  })
1341
1228
  });
1342
- //#endregion
1343
- //#region src/components/Icon/icons/ThumbsUpIcon.tsx
1229
+ // src/components/Icon/icons/ThumbsUpIcon.tsx
1344
1230
  const ThumbsUpIcon = (props) => /* @__PURE__ */ jsx("svg", {
1345
1231
  ...props,
1346
1232
  children: /* @__PURE__ */ jsx("path", {
@@ -1348,8 +1234,7 @@ const ThumbsUpIcon = (props) => /* @__PURE__ */ jsx("svg", {
1348
1234
  fill: "currentColor"
1349
1235
  })
1350
1236
  });
1351
- //#endregion
1352
- //#region src/components/Icon/icons/TriangleIcon.tsx
1237
+ // src/components/Icon/icons/TriangleIcon.tsx
1353
1238
  const TriangleIcon = (props) => /* @__PURE__ */ jsx("svg", {
1354
1239
  ...props,
1355
1240
  children: /* @__PURE__ */ jsx("path", {
@@ -1357,8 +1242,7 @@ const TriangleIcon = (props) => /* @__PURE__ */ jsx("svg", {
1357
1242
  fill: "currentColor"
1358
1243
  })
1359
1244
  });
1360
- //#endregion
1361
- //#region src/components/Icon/icons/UndoIcon.tsx
1245
+ // src/components/Icon/icons/UndoIcon.tsx
1362
1246
  const UndoIcon = (props) => /* @__PURE__ */ jsx("svg", {
1363
1247
  ...props,
1364
1248
  children: /* @__PURE__ */ jsx("path", {
@@ -1366,8 +1250,7 @@ const UndoIcon = (props) => /* @__PURE__ */ jsx("svg", {
1366
1250
  fill: "currentColor"
1367
1251
  })
1368
1252
  });
1369
- //#endregion
1370
- //#region src/components/Icon/icons/UnlockIcon.tsx
1253
+ // src/components/Icon/icons/UnlockIcon.tsx
1371
1254
  const UnlockIcon = (props) => /* @__PURE__ */ jsx("svg", {
1372
1255
  ...props,
1373
1256
  children: /* @__PURE__ */ jsx("path", {
@@ -1377,8 +1260,7 @@ const UnlockIcon = (props) => /* @__PURE__ */ jsx("svg", {
1377
1260
  fillRule: "evenodd"
1378
1261
  })
1379
1262
  });
1380
- //#endregion
1381
- //#region src/components/Icon/icons/UploadIcon.tsx
1263
+ // src/components/Icon/icons/UploadIcon.tsx
1382
1264
  const UploadIcon = (props) => /* @__PURE__ */ jsx("svg", {
1383
1265
  ...props,
1384
1266
  children: /* @__PURE__ */ jsx("path", {
@@ -1386,8 +1268,7 @@ const UploadIcon = (props) => /* @__PURE__ */ jsx("svg", {
1386
1268
  fill: "currentColor"
1387
1269
  })
1388
1270
  });
1389
- //#endregion
1390
- //#region src/components/Icon/icons/UsersPermissionsIcon.tsx
1271
+ // src/components/Icon/icons/UsersPermissionsIcon.tsx
1391
1272
  const UsersPermissionsIcon = (props) => /* @__PURE__ */ jsx("svg", {
1392
1273
  ...props,
1393
1274
  children: /* @__PURE__ */ jsx("path", {
@@ -1395,8 +1276,7 @@ const UsersPermissionsIcon = (props) => /* @__PURE__ */ jsx("svg", {
1395
1276
  fill: "currentColor"
1396
1277
  })
1397
1278
  });
1398
- //#endregion
1399
- //#region src/components/Icon/icons/ViewStreamIcon.tsx
1279
+ // src/components/Icon/icons/ViewStreamIcon.tsx
1400
1280
  const ViewStreamIcon = (props) => /* @__PURE__ */ jsx("svg", {
1401
1281
  ...props,
1402
1282
  children: /* @__PURE__ */ jsx("path", {
@@ -1404,8 +1284,7 @@ const ViewStreamIcon = (props) => /* @__PURE__ */ jsx("svg", {
1404
1284
  fill: "currentColor"
1405
1285
  })
1406
1286
  });
1407
- //#endregion
1408
- //#region src/components/Icon/icons/WandIcon.tsx
1287
+ // src/components/Icon/icons/WandIcon.tsx
1409
1288
  const WandIcon = (props) => /* @__PURE__ */ jsx("svg", {
1410
1289
  ...props,
1411
1290
  children: /* @__PURE__ */ jsx("path", {
@@ -1413,8 +1292,7 @@ const WandIcon = (props) => /* @__PURE__ */ jsx("svg", {
1413
1292
  fill: "currentColor"
1414
1293
  })
1415
1294
  });
1416
- //#endregion
1417
- //#region src/components/Icon/icons/ZoomInIcon.tsx
1295
+ // src/components/Icon/icons/ZoomInIcon.tsx
1418
1296
  const ZoomInIcon = (props) => /* @__PURE__ */ jsx("svg", {
1419
1297
  ...props,
1420
1298
  children: /* @__PURE__ */ jsx("path", {
@@ -1423,8 +1301,7 @@ const ZoomInIcon = (props) => /* @__PURE__ */ jsx("svg", {
1423
1301
  fillRule: "evenodd"
1424
1302
  })
1425
1303
  });
1426
- //#endregion
1427
- //#region src/components/Icon/icons/ZoomOutIcon.tsx
1304
+ // src/components/Icon/icons/ZoomOutIcon.tsx
1428
1305
  const ZoomOutIcon = (props) => /* @__PURE__ */ jsx("svg", {
1429
1306
  ...props,
1430
1307
  children: /* @__PURE__ */ jsx("path", {
@@ -1432,8 +1309,7 @@ const ZoomOutIcon = (props) => /* @__PURE__ */ jsx("svg", {
1432
1309
  fill: "currentColor"
1433
1310
  })
1434
1311
  });
1435
- //#endregion
1436
- //#region src/components/Icon/icons/GroupRecordIcon.tsx
1312
+ // src/components/Icon/icons/GroupRecordIcon.tsx
1437
1313
  const GroupRecordIcon = (props) => /* @__PURE__ */ jsxs("svg", {
1438
1314
  ...props,
1439
1315
  children: [
@@ -1466,8 +1342,7 @@ const GroupRecordIcon = (props) => /* @__PURE__ */ jsxs("svg", {
1466
1342
  })
1467
1343
  ]
1468
1344
  });
1469
- //#endregion
1470
- //#region src/components/Icon/icons/InviteToRecordIcon.tsx
1345
+ // src/components/Icon/icons/InviteToRecordIcon.tsx
1471
1346
  const InviteToRecordIcon = (props) => /* @__PURE__ */ jsxs("svg", {
1472
1347
  ...props,
1473
1348
  children: [/* @__PURE__ */ jsxs("g", {
@@ -1496,8 +1371,7 @@ const InviteToRecordIcon = (props) => /* @__PURE__ */ jsxs("svg", {
1496
1371
  })
1497
1372
  })]
1498
1373
  });
1499
- //#endregion
1500
- //#region src/components/Icon/icons/CollectionIcon.tsx
1374
+ // src/components/Icon/icons/CollectionIcon.tsx
1501
1375
  const CollectionIcon = (props) => /* @__PURE__ */ jsx("svg", {
1502
1376
  ...props,
1503
1377
  viewBox: "0 0 16 16",
@@ -1507,8 +1381,7 @@ const CollectionIcon = (props) => /* @__PURE__ */ jsx("svg", {
1507
1381
  fill: "currentColor"
1508
1382
  })
1509
1383
  });
1510
- //#endregion
1511
- //#region src/components/Icon/icons/PlaylistIcon.tsx
1384
+ // src/components/Icon/icons/PlaylistIcon.tsx
1512
1385
  const PlaylistIcon = (props) => /* @__PURE__ */ jsx("svg", {
1513
1386
  ...props,
1514
1387
  viewBox: "0 0 16 16",
@@ -1519,9 +1392,8 @@ const PlaylistIcon = (props) => /* @__PURE__ */ jsx("svg", {
1519
1392
  id: "Vector"
1520
1393
  })
1521
1394
  });
1522
- //#endregion
1523
- //#region src/components/Icon/icons/index.ts
1524
- var icons_exports$1 = /* @__PURE__ */ __exportAll({
1395
+ // src/components/Icon/icons/index.ts
1396
+ var icons_exports = /* @__PURE__ */ __exportAll({
1525
1397
  AbTestIcon: () => AbTestIcon,
1526
1398
  AllContentIcon: () => AllContentIcon,
1527
1399
  ArchivedIcon: () => ArchivedIcon,
@@ -1633,8 +1505,7 @@ var icons_exports$1 = /* @__PURE__ */ __exportAll({
1633
1505
  ZoomInIcon: () => ZoomInIcon,
1634
1506
  ZoomOutIcon: () => ZoomOutIcon
1635
1507
  });
1636
- //#endregion
1637
- //#region src/components/Icon/Icon.tsx
1508
+ // src/components/Icon/Icon.tsx
1638
1509
  const iconSizeMap = {
1639
1510
  sm: "12",
1640
1511
  md: "16",
@@ -1644,9 +1515,9 @@ const iconSizeMap = {
1644
1515
  };
1645
1516
  const Icon = ({ color = "currentColor", size = "lg", style, type, ...otherProps }) => {
1646
1517
  if (isNil(type)) throw new Error("An Icon component requires a `type` prop to be provided");
1647
- if (isNil(iconMap$1[type])) throw new Error(`Type "${type}" does not exist, please update type prop in Icon component.`);
1518
+ if (isNil(iconMap[type])) throw new Error(`Type "${type}" does not exist, please update type prop in Icon component.`);
1648
1519
  if (isNil(iconSizeMap[size])) throw new Error(`Size "${size}" does not exist, please update size prop in Icon component.`);
1649
- const IconElement = icons_exports$1[iconMap$1[type]];
1520
+ const IconElement = icons_exports[iconMap[type]];
1650
1521
  const defaultStyle = {
1651
1522
  verticalAlign: "middle",
1652
1523
  ...style
@@ -1664,8 +1535,7 @@ const Icon = ({ color = "currentColor", size = "lg", style, type, ...otherProps
1664
1535
  });
1665
1536
  };
1666
1537
  Icon.displayName = "Icon_VHS";
1667
- //#endregion
1668
- //#region src/components/Button/ButtonContent.tsx
1538
+ // src/components/Button/ButtonContent.tsx
1669
1539
  const ButtonLoadingContainer = styled.span`
1670
1540
  display: flex;
1671
1541
  justify-content: ${({ $textAlign }) => {
@@ -1706,7 +1576,7 @@ const IconContainer$2 = styled.div`
1706
1576
  max-width: ${({ $size }) => $size};
1707
1577
  }
1708
1578
  `;
1709
- const iconSizeMap$2 = Object.freeze({
1579
+ const iconSizeMap$1 = Object.freeze({
1710
1580
  lg: "md",
1711
1581
  md: "md",
1712
1582
  sm: "sm"
@@ -1726,7 +1596,7 @@ const ButtonContent = ({ children, icon, iconName, iconPosition, isLoading, size
1726
1596
  });
1727
1597
  if (isNotNil(iconName)) return /* @__PURE__ */ jsx(Icon, {
1728
1598
  "data-testid": "iconName-icon",
1729
- size: iconSizeMap$2[size],
1599
+ size: iconSizeMap$1[size],
1730
1600
  type: iconName
1731
1601
  });
1732
1602
  return null;
@@ -1738,7 +1608,7 @@ const ButtonContent = ({ children, icon, iconName, iconPosition, isLoading, size
1738
1608
  message: "Button has been disabled while action is in progress",
1739
1609
  politeness: "assertive"
1740
1610
  }), /* @__PURE__ */ jsx(Icon, {
1741
- size: iconSizeMap$2[size],
1611
+ size: iconSizeMap$1[size],
1742
1612
  type: "spinner"
1743
1613
  })]
1744
1614
  }) : null, /* @__PURE__ */ jsxs(ButtonLabelContainer, {
@@ -1752,8 +1622,7 @@ const ButtonContent = ({ children, icon, iconName, iconPosition, isLoading, size
1752
1622
  }) : null]
1753
1623
  })] });
1754
1624
  };
1755
- //#endregion
1756
- //#region src/components/Button/ButtonStyledComponent.tsx
1625
+ // src/components/Button/ButtonStyledComponent.tsx
1757
1626
  const hoverDarken$1 = "0.04";
1758
1627
  const activeDarken = "0.08";
1759
1628
  const hoverTransparency = .9;
@@ -1972,8 +1841,7 @@ const buttonStyle = css`
1972
1841
  const ButtonStyledComponent = styled.button`
1973
1842
  ${({ $noStyle }) => $noStyle ? buttonResetStyle : buttonStyle}
1974
1843
  `;
1975
- //#endregion
1976
- //#region src/components/Button/getButtonColor.ts
1844
+ // src/components/Button/getButtonColor.ts
1977
1845
  const getButtonColor = (colorOverride, variant, allThemeColors) => {
1978
1846
  if (isNonEmptyString(colorOverride)) return colorOverride;
1979
1847
  if (variant === "primary") return allThemeColors.brandBlue500;
@@ -1982,8 +1850,7 @@ const getButtonColor = (colorOverride, variant, allThemeColors) => {
1982
1850
  if (variant === "dangerous") return allThemeColors.red600;
1983
1851
  return allThemeColors.brandBlue500;
1984
1852
  };
1985
- //#endregion
1986
- //#region src/components/Button/Button.tsx
1853
+ // src/components/Button/Button.tsx
1987
1854
  const Button = forwardRef(({ children, disabled = false, forceState, colorOverride, fullWidth = false, icon, iconName, iconPosition = "start", label, labelWrap = false, isLoading = false, noStyle = false, onClick, size = "lg", square = false, textAlign = "center", type = "button", variant = "primary", ...otherProps }, ref) => {
1988
1855
  const isAriaDisabled = () => isLoading || disabled;
1989
1856
  const handleClick = (event) => {
@@ -2029,14 +1896,12 @@ const Button = forwardRef(({ children, disabled = false, forceState, colorOverri
2029
1896
  });
2030
1897
  });
2031
1898
  Button.displayName = "Button_VHS";
2032
- //#endregion
2033
- //#region src/private/helpers/isClient/isClient.ts
1899
+ // src/private/helpers/isClient/isClient.ts
2034
1900
  /**
2035
1901
  * @returns {boolean} - whether running in a browser environment
2036
1902
  */
2037
1903
  const isClient = () => typeof window !== "undefined" && typeof document !== "undefined";
2038
- //#endregion
2039
- //#region src/private/hooks/useWindowSize/useWindowSize.ts
1904
+ // src/private/hooks/useWindowSize/useWindowSize.ts
2040
1905
  const useWindowSize = (interval = 0) => {
2041
1906
  const [dimensions, setDimensions] = useState({
2042
1907
  width: isClient() ? window.innerWidth : 0,
@@ -2060,8 +1925,7 @@ const useWindowSize = (interval = 0) => {
2060
1925
  }, [interval]);
2061
1926
  return dimensions;
2062
1927
  };
2063
- //#endregion
2064
- //#region src/private/hooks/useMq/useMq.ts
1928
+ // src/private/hooks/useMq/useMq.ts
2065
1929
  const REM_SIZE = 16;
2066
1930
  const useMq = () => {
2067
1931
  const viewportWidth = useWindowSize().width / REM_SIZE;
@@ -2079,8 +1943,7 @@ const useMq = () => {
2079
1943
  isXlAndDown: true
2080
1944
  };
2081
1945
  };
2082
- //#endregion
2083
- //#region src/components/Toast/ToastAnimation.tsx
1946
+ // src/components/Toast/ToastAnimation.tsx
2084
1947
  const toastPositionOffset = 24;
2085
1948
  const toastPositionStyles = {
2086
1949
  bottom: toastPositionOffset,
@@ -2121,8 +1984,7 @@ const ToastAnimation = ({ children, in: inProp, renderInPlace }) => {
2121
1984
  children
2122
1985
  }) : null });
2123
1986
  };
2124
- //#endregion
2125
- //#region src/components/Toast/Toast.tsx
1987
+ // src/components/Toast/Toast.tsx
2126
1988
  const toastVariants = [
2127
1989
  "success",
2128
1990
  "warning",
@@ -2229,11 +2091,9 @@ const Toast = memo(({ actionInterceptor, actionLabel = defaultActionLabel, color
2229
2091
  }) });
2230
2092
  });
2231
2093
  Toast.displayName = "Toast_VHS";
2232
- //#endregion
2233
- //#region src/components/Toast/ToastContext.tsx
2094
+ // src/components/Toast/ToastContext.tsx
2234
2095
  const ToastContext = createContext(null);
2235
- //#endregion
2236
- //#region src/components/Toast/ToastProvider.tsx
2096
+ // src/components/Toast/ToastProvider.tsx
2237
2097
  const ToastProvider = ({ children }) => {
2238
2098
  const [toastActionInterceptor, setToastActionInterceptor] = useState(void 0);
2239
2099
  const [toastActionLabel, setToastActionLabel] = useState("");
@@ -2269,8 +2129,7 @@ const ToastProvider = ({ children }) => {
2269
2129
  /* @__PURE__ */ jsx("div", { id: "toast-portal" })
2270
2130
  ] });
2271
2131
  };
2272
- //#endregion
2273
- //#region src/css/baseline.tsx
2132
+ // src/css/baseline.tsx
2274
2133
  const baseline = css`
2275
2134
  /**
2276
2135
  * 1. Change from 'content-box' so that 'width' calculations are unaffected by 'padding' or 'border'
@@ -2306,8 +2165,7 @@ const baseline = css`
2306
2165
  min-height: 100vh; /* 3 */
2307
2166
  }
2308
2167
  `;
2309
- //#endregion
2310
- //#region src/css/normalize.tsx
2168
+ // src/css/normalize.tsx
2311
2169
  const normalize = css`
2312
2170
  /* normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2313
2171
 
@@ -2665,14 +2523,12 @@ const normalize = css`
2665
2523
  display: none;
2666
2524
  }
2667
2525
  `;
2668
- //#endregion
2669
- //#region src/css/GlobalStyle.tsx
2526
+ // src/css/GlobalStyle.tsx
2670
2527
  const GlobalStyle$1 = createGlobalStyle`
2671
2528
  ${normalize}
2672
2529
  ${baseline}
2673
2530
  `;
2674
- //#endregion
2675
- //#region src/private/helpers/objectHelpers/isObject.ts
2531
+ // src/private/helpers/objectHelpers/isObject.ts
2676
2532
  /**
2677
2533
  * Determines if a given value is an object
2678
2534
  *
@@ -2680,8 +2536,7 @@ const GlobalStyle$1 = createGlobalStyle`
2680
2536
  * @returns {boolean} - whether value is an object
2681
2537
  */
2682
2538
  const isObject = (value) => value !== null && value !== void 0 && (Object.getPrototypeOf(value) === null || value.constructor === Object);
2683
- //#endregion
2684
- //#region src/private/helpers/objectHelpers/merge.ts
2539
+ // src/private/helpers/objectHelpers/merge.ts
2685
2540
  /**
2686
2541
  * Merges two or more objects
2687
2542
  *
@@ -2702,8 +2557,7 @@ const merge = (target, ...sources) => {
2702
2557
  });
2703
2558
  return output;
2704
2559
  };
2705
- //#endregion
2706
- //#region src/theme.ts
2560
+ // src/theme.ts
2707
2561
  const zIndex1 = 100;
2708
2562
  const zIndex2 = 200;
2709
2563
  const zIndex3 = 300;
@@ -2748,8 +2602,7 @@ const theme = {
2748
2602
  elevation2: designTokens.shadow.elevation2
2749
2603
  }
2750
2604
  };
2751
- //#endregion
2752
- //#region src/providers/VHSThemeProvider.tsx
2605
+ // src/providers/VHSThemeProvider.tsx
2753
2606
  const VHSThemeProvider = ({ children, theme: overrideTheme }) => {
2754
2607
  const theme$1 = merge(theme, overrideTheme);
2755
2608
  return /* @__PURE__ */ jsx(ThemeProvider, {
@@ -2757,13 +2610,11 @@ const VHSThemeProvider = ({ children, theme: overrideTheme }) => {
2757
2610
  children
2758
2611
  });
2759
2612
  };
2760
- //#endregion
2761
- //#region src/providers/WrapperProvider.tsx
2613
+ // src/providers/WrapperProvider.tsx
2762
2614
  const WrapperContext = createContext({});
2763
2615
  const useWrappers = () => useContext(WrapperContext);
2764
2616
  const WrapperProvider = WrapperContext.Provider;
2765
- //#endregion
2766
- //#region src/providers/VHSProvider.tsx
2617
+ // src/providers/VHSProvider.tsx
2767
2618
  const DEFAULT_THEME = {};
2768
2619
  const VHSProvider = ({ children, theme = DEFAULT_THEME, globalStylesIncluded = true, skipAnimations = false, Link }) => {
2769
2620
  return /* @__PURE__ */ jsxs(VHSThemeProvider, {
@@ -2777,8 +2628,7 @@ const VHSProvider = ({ children, theme = DEFAULT_THEME, globalStylesIncluded = t
2777
2628
  }) })]
2778
2629
  });
2779
2630
  };
2780
- //#endregion
2781
- //#region src/components/Truncate/Truncate.tsx
2631
+ // src/components/Truncate/Truncate.tsx
2782
2632
  const Truncate = ({ children, maxChars, terminator = "...", breakOnWords = false }) => {
2783
2633
  if (isNil(children)) return null;
2784
2634
  const canBeTruncated = children.length + terminator.length >= maxChars;
@@ -2792,8 +2642,7 @@ const Truncate = ({ children, maxChars, terminator = "...", breakOnWords = false
2792
2642
  return /* @__PURE__ */ jsx(Fragment$1, { children: truncatedChild });
2793
2643
  };
2794
2644
  Truncate.displayName = "Truncate_VHS";
2795
- //#endregion
2796
- //#region src/components/Tooltip/TooltipContent.tsx
2645
+ // src/components/Tooltip/TooltipContent.tsx
2797
2646
  const ARROW_SIZE = 8;
2798
2647
  const StyledTooltipLabel = styled.div`
2799
2648
  color: ${({ $fontColorOverride }) => $fontColorOverride ?? "white"};
@@ -2917,8 +2766,7 @@ const TooltipContent = ({ id, active, direction, children, forceState, shouldWra
2917
2766
  })
2918
2767
  });
2919
2768
  };
2920
- //#endregion
2921
- //#region src/components/Tooltip/Tooltip.tsx
2769
+ // src/components/Tooltip/Tooltip.tsx
2922
2770
  const TooltipWrapper$1 = styled.div`
2923
2771
  display: inline-block;
2924
2772
  position: relative;
@@ -3003,8 +2851,7 @@ const Tooltip = ({ label, direction = "top", duration = 2e3, eventType = "hover"
3003
2851
  });
3004
2852
  };
3005
2853
  Tooltip.displayName = "Tooltip_VHS";
3006
- //#endregion
3007
- //#region src/components/IconButton/IconButton.tsx
2854
+ // src/components/IconButton/IconButton.tsx
3008
2855
  const smSizeStyle = css`
3009
2856
  max-height: 16px;
3010
2857
  max-width: 16px;
@@ -3131,8 +2978,7 @@ const IconButton = forwardRef(({ colorOverride, componentStyle = "dark", disable
3131
2978
  });
3132
2979
  });
3133
2980
  IconButton.displayName = "IconButton_VHS";
3134
- //#endregion
3135
- //#region src/private/components/ModalCloseButton/ModalCloseButton.tsx
2981
+ // src/private/components/ModalCloseButton/ModalCloseButton.tsx
3136
2982
  const ModalCloseButton$1 = ({ onClick, closeIconColorOverride }) => /* @__PURE__ */ jsx(IconButton, {
3137
2983
  "aria-label": "Close",
3138
2984
  colorOverride: closeIconColorOverride,
@@ -3150,8 +2996,7 @@ const ModalCloseButton$1 = ({ onClick, closeIconColorOverride }) => /* @__PURE__
3150
2996
  }
3151
2997
  });
3152
2998
  ModalCloseButton$1.displayName = "ModalCloseButton_VHS";
3153
- //#endregion
3154
- //#region src/private/helpers/mq/mq.ts
2999
+ // src/private/helpers/mq/mq.ts
3155
3000
  const getMaxWidth = (breakpoint) => {
3156
3001
  const breakpointBuffer = .0025;
3157
3002
  const [value, unit] = getValueAndUnit(breakpoint);
@@ -3179,8 +3024,7 @@ const mq = {
3179
3024
  lgAndDown,
3180
3025
  xlAndDown
3181
3026
  };
3182
- //#endregion
3183
- //#region src/components/Backdrop/Backdrop.tsx
3027
+ // src/components/Backdrop/Backdrop.tsx
3184
3028
  const alignVerticalMap = {
3185
3029
  normal: "normal",
3186
3030
  top: "start",
@@ -3215,8 +3059,7 @@ const Backdrop = ({ alignHorizontal = "normal", alignVertical = "normal", backgr
3215
3059
  children
3216
3060
  });
3217
3061
  Backdrop.displayName = "Backdrop_VHS";
3218
- //#endregion
3219
- //#region src/components/ButtonGroup/ButtonGroup.tsx
3062
+ // src/components/ButtonGroup/ButtonGroup.tsx
3220
3063
  const getAlignment = (align) => {
3221
3064
  if (align === "center") return "center";
3222
3065
  if (align === "left") return "flex-start";
@@ -3256,8 +3099,7 @@ const ButtonGroup = ({ children, align = "left", fullWidth = false, ...otherProp
3256
3099
  });
3257
3100
  };
3258
3101
  ButtonGroup.displayName = "ButtonGroup_VHS";
3259
- //#endregion
3260
- //#region src/private/components/ModalAnimation/ModalAnimation.tsx
3102
+ // src/private/components/ModalAnimation/ModalAnimation.tsx
3261
3103
  const TRANSITION_TIME$1 = 100;
3262
3104
  const ModalAnimation = ({ children }) => {
3263
3105
  const kids = Children.map(children, (child) => child)?.filter(Boolean);
@@ -3270,8 +3112,7 @@ const ModalAnimation = ({ children }) => {
3270
3112
  children: child
3271
3113
  }, child.key)) : null });
3272
3114
  };
3273
- //#endregion
3274
- //#region src/private/hooks/usePreviousValue/usePreviousValue.ts
3115
+ // src/private/hooks/usePreviousValue/usePreviousValue.ts
3275
3116
  const usePreviousValue = (value) => {
3276
3117
  const ref = useRef(void 0);
3277
3118
  useEffect(() => {
@@ -3279,8 +3120,7 @@ const usePreviousValue = (value) => {
3279
3120
  });
3280
3121
  return ref.current;
3281
3122
  };
3282
- //#endregion
3283
- //#region src/components/ModalBase/ModalBase.tsx
3123
+ // src/components/ModalBase/ModalBase.tsx
3284
3124
  const LOCKED_SCROLL_CLASSNAME = "is-scroll-locked";
3285
3125
  const GlobalStyle = createGlobalStyle`
3286
3126
  .${LOCKED_SCROLL_CLASSNAME} {
@@ -3410,8 +3250,7 @@ const ModalBase = (props) => {
3410
3250
  return /* @__PURE__ */ jsx(ModalProvider, { children: /* @__PURE__ */ jsx(ModalBaseContent, { ...props }) });
3411
3251
  };
3412
3252
  ModalBase.displayName = "ModalBase_VHS";
3413
- //#endregion
3414
- //#region src/components/Ellipsis/Ellipsis.tsx
3253
+ // src/components/Ellipsis/Ellipsis.tsx
3415
3254
  const ellipsisStyle = css`
3416
3255
  overflow: hidden;
3417
3256
  text-overflow: ellipsis;
@@ -3455,8 +3294,7 @@ const Ellipsis = ({ children, lines, ...otherProps }) => /* @__PURE__ */ jsx(Ell
3455
3294
  children
3456
3295
  });
3457
3296
  Ellipsis.displayName = "Ellipsis_VHS";
3458
- //#endregion
3459
- //#region src/components/Text/Text.tsx
3297
+ // src/components/Text/Text.tsx
3460
3298
  const alignMap = {
3461
3299
  left: "left",
3462
3300
  right: "right",
@@ -3565,8 +3403,7 @@ const Text = forwardRef(({ align = "left", bold = false, children, colorOverride
3565
3403
  children
3566
3404
  }));
3567
3405
  Text.displayName = "Text_VHS";
3568
- //#endregion
3569
- //#region src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
3406
+ // src/private/helpers/getBackgroundGradient/getBackgroundGradient.ts
3570
3407
  const gradients = {
3571
3408
  defaultDarkOne: css`
3572
3409
  background-color: #222d66;
@@ -3701,8 +3538,7 @@ Object.keys(gradients);
3701
3538
  const getBackgroundGradient = (gradientName) => {
3702
3539
  return isNotNil(gradientName) ? gradients[gradientName] : gradients.defaultDarkOne;
3703
3540
  };
3704
- //#endregion
3705
- //#region src/components/ActionModal/getModalBackgroundGradient.ts
3541
+ // src/components/ActionModal/getModalBackgroundGradient.ts
3706
3542
  const getModalBackgroundGradient = (illustrationBackgroundColor) => {
3707
3543
  switch (illustrationBackgroundColor) {
3708
3544
  case "green": return getBackgroundGradient("green");
@@ -3716,8 +3552,7 @@ const getModalBackgroundGradient = (illustrationBackgroundColor) => {
3716
3552
  `;
3717
3553
  }
3718
3554
  };
3719
- //#endregion
3720
- //#region src/components/ActionModal/ActionModal.tsx
3555
+ // src/components/ActionModal/ActionModal.tsx
3721
3556
  const defaultWidth = "532px";
3722
3557
  const illustrationDiameter = 160;
3723
3558
  const Dialogue = styled.div`
@@ -3860,8 +3695,7 @@ const ActionModal = ({ alignHorizontal = "center", alignVertical = "center", but
3860
3695
  });
3861
3696
  };
3862
3697
  ActionModal.displayName = "ActionModal_VHS";
3863
- //#endregion
3864
- //#region src/components/Avatar/formatInitialsForDisplay.tsx
3698
+ // src/components/Avatar/formatInitialsForDisplay.tsx
3865
3699
  const containsEmojiCharacter = (char) => {
3866
3700
  return /<a?:.+?:\d{18}>|\p{Extended_Pictographic}/gu.test(char);
3867
3701
  };
@@ -3870,8 +3704,7 @@ const formatInitialsForDisplay = (initials) => {
3870
3704
  if (typeof initials !== "string") return "U";
3871
3705
  return initials.slice(0, 1).toUpperCase();
3872
3706
  };
3873
- //#endregion
3874
- //#region src/components/Avatar/generateContactAvatarColors.tsx
3707
+ // src/components/Avatar/generateContactAvatarColors.tsx
3875
3708
  const colorVariants = {
3876
3709
  blue: [
3877
3710
  "blue600",
@@ -3917,8 +3750,7 @@ const generateContactAvatarColors = ({ seed, themeColors }) => {
3917
3750
  const colorVariantsKeyFromIndex = colorVariantKeys[index];
3918
3751
  return colorVariants[colorVariantsKeyFromIndex].map((themeColorToken) => themeColors[themeColorToken]).filter((color) => color !== void 0);
3919
3752
  };
3920
- //#endregion
3921
- //#region src/components/Avatar/Avatar.tsx
3753
+ // src/components/Avatar/Avatar.tsx
3922
3754
  const AvatarImage = styled.img`
3923
3755
  align-items: center;
3924
3756
  background-color: white;
@@ -4006,8 +3838,7 @@ const Avatar = ({ imageUrl, heightAndWidth = 24, initials, name, onImageLoad, ..
4006
3838
  });
4007
3839
  };
4008
3840
  Avatar.displayName = "Avatar_VHS";
4009
- //#endregion
4010
- //#region src/components/BackgroundImage/BackgroundImage.tsx
3841
+ // src/components/BackgroundImage/BackgroundImage.tsx
4011
3842
  const shouldWrap = (src) => {
4012
3843
  return ![
4013
3844
  "cross-fade",
@@ -4074,8 +3905,7 @@ const BackgroundImage = ({ children, attachment: bgAttachment = "scroll", clip:
4074
3905
  children
4075
3906
  });
4076
3907
  BackgroundImage.displayName = "BackgroundImage_VHS";
4077
- //#endregion
4078
- //#region src/components/Badge/getBadgeColors.ts
3908
+ // src/components/Badge/getBadgeColors.ts
4079
3909
  const getBadgeColors = (badgeColor, allThemeColors) => {
4080
3910
  switch (badgeColor) {
4081
3911
  case "error": return {
@@ -4124,8 +3954,7 @@ const getBadgeColors = (badgeColor, allThemeColors) => {
4124
3954
  };
4125
3955
  }
4126
3956
  };
4127
- //#endregion
4128
- //#region src/components/Badge/Badge.tsx
3957
+ // src/components/Badge/Badge.tsx
4129
3958
  const BadgeComponent = styled.div`
4130
3959
  align-items: center;
4131
3960
  background: ${({ $backgroundColor }) => $backgroundColor};
@@ -4154,8 +3983,7 @@ const Badge = ({ colorScheme = "brandBlue", label, icon, ...otherProps }) => {
4154
3983
  });
4155
3984
  };
4156
3985
  Badge.displayName = "Badge_VHS";
4157
- //#endregion
4158
- //#region src/components/Banner/BannerChildComponents.tsx
3986
+ // src/components/Banner/BannerChildComponents.tsx
4159
3987
  const BodyComponent = styled.div`
4160
3988
  color: ${({ theme }) => theme.color.grey900};
4161
3989
  flex: 1;
@@ -4210,8 +4038,7 @@ const RightGutter = ({ verticalAlign, children }) => /* @__PURE__ */ jsx(RightGu
4210
4038
  $verticalAlign: verticalAlign,
4211
4039
  children
4212
4040
  });
4213
- //#endregion
4214
- //#region src/components/Banner/Banner.tsx
4041
+ // src/components/Banner/Banner.tsx
4215
4042
  const BannerComponent = styled.div`
4216
4043
  background: ${({ theme, backgroundColor }) => backgroundColor ?? theme.color.grey200};
4217
4044
  border-radius: 8px;
@@ -4247,8 +4074,7 @@ Banner.Body = Body;
4247
4074
  Banner.RightGutter = RightGutter;
4248
4075
  Banner.Title = Title;
4249
4076
  Banner.displayName = "Banner_VHS";
4250
- //#endregion
4251
- //#region src/components/Box/Box.tsx
4077
+ // src/components/Box/Box.tsx
4252
4078
  const ALIGN_CONTENT_MAP = {
4253
4079
  around: "space-around",
4254
4080
  between: "space-between",
@@ -4343,8 +4169,7 @@ const Box = forwardRef(({ alignContent = "stretch", alignItems = "start", alignS
4343
4169
  });
4344
4170
  });
4345
4171
  Box.displayName = "Box_VHS";
4346
- //#endregion
4347
- //#region src/components/Link/linkStyle.tsx
4172
+ // src/components/Link/linkStyle.tsx
4348
4173
  const HOVER_DARKEN = .08;
4349
4174
  const primaryHoverStyle = css`
4350
4175
  color: ${({ theme }) => darken(HOVER_DARKEN, theme.color.brandBlue500)};
@@ -4427,8 +4252,7 @@ const unstyledLinkStyle = css`
4427
4252
  text-decoration: underline;
4428
4253
  ${({ $underlineOnHover }) => $underlineOnHover && underlineOnHoverStyle}
4429
4254
  `;
4430
- //#endregion
4431
- //#region src/components/Link/Link.tsx
4255
+ // src/components/Link/Link.tsx
4432
4256
  const LinkComponent = styled.a`
4433
4257
  ${linkStyle}
4434
4258
  `;
@@ -4500,8 +4324,7 @@ const Link = forwardRef(({ href, beforeAction, children, disabled = false, force
4500
4324
  return component;
4501
4325
  });
4502
4326
  Link.displayName = "Link_VHS";
4503
- //#endregion
4504
- //#region src/components/ButtonLink/ButtonLink.tsx
4327
+ // src/components/ButtonLink/ButtonLink.tsx
4505
4328
  const StyledButtonLink = styled(Link)`
4506
4329
  ${buttonStyle};
4507
4330
 
@@ -4562,8 +4385,7 @@ const ButtonLink = forwardRef(({ beforeAction, children, colorOverride, disabled
4562
4385
  });
4563
4386
  });
4564
4387
  ButtonLink.displayName = "ButtonLink_VHS";
4565
- //#endregion
4566
- //#region src/components/Checkbox/OptionStyledComponent.tsx
4388
+ // src/components/Checkbox/OptionStyledComponent.tsx
4567
4389
  const OptionWrapper = styled.input`
4568
4390
  align-self: flex-start;
4569
4391
  border-radius: 3px;
@@ -4637,8 +4459,7 @@ const Container = styled.label`
4637
4459
  ${({ $forceState, $hasError }) => $forceState === "focus" && $hasError && errorFocusedStyle};
4638
4460
  ${({ $forceState, $hasError }) => $forceState === "hover" && $hasError && errorHoverStyle};
4639
4461
  `;
4640
- //#endregion
4641
- //#region src/components/Checkbox/Checkbox.tsx
4462
+ // src/components/Checkbox/Checkbox.tsx
4642
4463
  const Checkbox = forwardRef(({ checked, direction = "column", disabled = false, forceState, hasError = false, id = "default", label = "default", labelDescription, name, onChange, required = false, value = "false", ...otherProps }, ref) => {
4643
4464
  const [focused, setFocused] = useState(false);
4644
4465
  return /* @__PURE__ */ jsxs(Container, {
@@ -4670,8 +4491,7 @@ const Checkbox = forwardRef(({ checked, direction = "column", disabled = false,
4670
4491
  });
4671
4492
  });
4672
4493
  Checkbox.displayName = "Checkbox_VHS";
4673
- //#endregion
4674
- //#region src/components/FormFieldError/FormFieldError.tsx
4494
+ // src/components/FormFieldError/FormFieldError.tsx
4675
4495
  const FieldError = styled.div`
4676
4496
  align-items: center;
4677
4497
  border-left: 4px solid ${({ theme }) => theme.color.error500};
@@ -4689,8 +4509,7 @@ const FormFieldError = ({ children, ...otherProps }) => {
4689
4509
  });
4690
4510
  };
4691
4511
  FormFieldError.displayName = "FormFieldError_VHS";
4692
- //#endregion
4693
- //#region src/components/Label/Label.tsx
4512
+ // src/components/Label/Label.tsx
4694
4513
  const requiredStyle = css`
4695
4514
  &::after {
4696
4515
  color: red;
@@ -4736,8 +4555,7 @@ const Label = ({ renderAs = "label", children, disabled = false, htmlFor, requir
4736
4555
  children
4737
4556
  });
4738
4557
  Label.displayName = "Label_VHS";
4739
- //#endregion
4740
- //#region src/components/LabelDescription/LabelDescription.tsx
4558
+ // src/components/LabelDescription/LabelDescription.tsx
4741
4559
  const disabledStyle$2 = css`
4742
4560
  color: ${({ theme }) => theme.color.grey500};
4743
4561
  `;
@@ -4754,14 +4572,13 @@ const LabelDescription = ({ children, disabled = false, ...otherProps }) => /* @
4754
4572
  children
4755
4573
  });
4756
4574
  LabelDescription.displayName = "LabelDescription_VHS";
4757
- //#endregion
4758
- //#region src/private/components/FormFieldWrapper/FormFieldWrapper.tsx
4575
+ // src/private/components/FormFieldWrapper/FormFieldWrapper.tsx
4759
4576
  const StyledFormFieldWrapper = styled.div`
4760
4577
  width: 100%;
4761
4578
  `;
4762
- const DEFAULT_LABEL_PROPS$8 = {};
4763
- const FormFieldWrapper = ({ disabled = false, error = null, label = null, labelDescription = null, labelProps = DEFAULT_LABEL_PROPS$8, labelType = "label", name, children, labelId = null, ...otherProps }) => {
4764
- const computedId = labelId ?? `group-id-${name}`;
4579
+ const DEFAULT_LABEL_PROPS$7 = {};
4580
+ const FormFieldWrapper = ({ disabled = false, error = null, label = null, labelDescription = null, labelProps = DEFAULT_LABEL_PROPS$7, labelType = "label", name, children, ...otherProps }) => {
4581
+ const computedId = `group-id-${name}`;
4765
4582
  const computedAriaLabelledby = labelType === "legend" ? computedId : null;
4766
4583
  const combinedLabelProps = {
4767
4584
  id: computedId,
@@ -4791,15 +4608,14 @@ const FormFieldWrapper = ({ disabled = false, error = null, label = null, labelD
4791
4608
  });
4792
4609
  };
4793
4610
  FormFieldWrapper.displayName = "FormFieldWrapper_VHS";
4794
- //#endregion
4795
- //#region src/components/CheckboxGroup/CheckboxGroup.tsx
4611
+ // src/components/CheckboxGroup/CheckboxGroup.tsx
4796
4612
  const StyledOptionContainer$1 = styled.div`
4797
4613
  display: flex;
4798
4614
  flex-direction: ${({ direction }) => direction === "row" ? "row" : "column"};
4799
4615
  gap: ${({ direction, theme }) => direction === "row" ? theme.spacing.space04 : theme.spacing.space01};
4800
4616
  `;
4801
- const DEFAULT_LABEL_PROPS$7 = {};
4802
- const CheckboxGroup = ({ direction = "column", disabled = false, error, label, labelDescription, labelProps = DEFAULT_LABEL_PROPS$7, name, onChange, options, value = false, ...otherProps }) => /* @__PURE__ */ jsx(FormFieldWrapper, {
4617
+ const DEFAULT_LABEL_PROPS$6 = {};
4618
+ const CheckboxGroup = ({ direction = "column", disabled = false, error, label, labelDescription, labelProps = DEFAULT_LABEL_PROPS$6, name, onChange, options, value = false, ...otherProps }) => /* @__PURE__ */ jsx(FormFieldWrapper, {
4803
4619
  disabled,
4804
4620
  error,
4805
4621
  label,
@@ -4824,8 +4640,7 @@ const CheckboxGroup = ({ direction = "column", disabled = false, error, label, l
4824
4640
  })
4825
4641
  });
4826
4642
  CheckboxGroup.displayName = "CheckboxGroup_VHS";
4827
- //#endregion
4828
- //#region src/components/ClickArea/ClickArea.tsx
4643
+ // src/components/ClickArea/ClickArea.tsx
4829
4644
  const ClickAreaComponent = styled.div`
4830
4645
  cursor: pointer;
4831
4646
  `;
@@ -4865,8 +4680,7 @@ const ClickArea = forwardRef(({ renderAs = "div", className, onClick, targetRef,
4865
4680
  });
4866
4681
  });
4867
4682
  ClickArea.displayName = "ClickArea_VHS";
4868
- //#endregion
4869
- //#region src/components/CloseButton/CloseIcon.tsx
4683
+ // src/components/CloseButton/CloseIcon.tsx
4870
4684
  const CloseIcon = () => /* @__PURE__ */ jsx("svg", {
4871
4685
  height: "22",
4872
4686
  preserveAspectRatio: "xMidYMid meet",
@@ -4879,8 +4693,7 @@ const CloseIcon = () => /* @__PURE__ */ jsx("svg", {
4879
4693
  fillRule: "evenodd"
4880
4694
  })
4881
4695
  });
4882
- //#endregion
4883
- //#region src/components/CloseButton/CloseButton.tsx
4696
+ // src/components/CloseButton/CloseButton.tsx
4884
4697
  const Button$1 = styled.button`
4885
4698
  align-items: center;
4886
4699
  background: none;
@@ -4914,8 +4727,7 @@ const CloseButton = ({ onClick, ...otherProps }) => /* @__PURE__ */ jsx(Button$1
4914
4727
  children: /* @__PURE__ */ jsx(CloseIcon, {})
4915
4728
  });
4916
4729
  CloseButton.displayName = "CloseButton_VHS";
4917
- //#endregion
4918
- //#region src/private/hooks/useElementObserver/useElementObserver.ts
4730
+ // src/private/hooks/useElementObserver/useElementObserver.ts
4919
4731
  const initialRect = {
4920
4732
  width: 0,
4921
4733
  height: 0,
@@ -4953,8 +4765,7 @@ const useElementObserver = () => {
4953
4765
  }, []);
4954
4766
  return [ref, rect];
4955
4767
  };
4956
- //#endregion
4957
- //#region src/components/CollapsibleGroup/CollapsibleGroup.tsx
4768
+ // src/components/CollapsibleGroup/CollapsibleGroup.tsx
4958
4769
  const DARKENING_AMOUNT = .08;
4959
4770
  const BAR_HEIGHT = 48;
4960
4771
  const BUTTON_OFFSET = 16;
@@ -5193,8 +5004,7 @@ const CollapsibleGroup = ({ actions, backgroundColor, caretDirection = DEFAULT_C
5193
5004
  });
5194
5005
  };
5195
5006
  CollapsibleGroup.displayName = "CollapsibleGroup_VHS";
5196
- //#endregion
5197
- //#region src/components/Divider/Divider.tsx
5007
+ // src/components/Divider/Divider.tsx
5198
5008
  const DividerComponent = styled.hr`
5199
5009
  background: none;
5200
5010
  border-bottom: none;
@@ -5218,8 +5028,7 @@ const Divider = ({ colorOverride, height = 1, variant = "dashed", ...otherProps
5218
5028
  });
5219
5029
  };
5220
5030
  Divider.displayName = "Divider_VHS";
5221
- //#endregion
5222
- //#region src/components/FileSelect/FileSelect.tsx
5031
+ // src/components/FileSelect/FileSelect.tsx
5223
5032
  const defaultMaximumFileSize = 26624;
5224
5033
  const FileSelectComponent = styled.label`
5225
5034
  display: inline-block;
@@ -5276,8 +5085,7 @@ const FileSelect = forwardRef(({ accept, children, disabled = false, id, maxSize
5276
5085
  });
5277
5086
  });
5278
5087
  FileSelect.displayName = "FileSelect_VHS";
5279
- //#endregion
5280
- //#region src/private/hooks/useTimeoutFunc/useTimeoutFunc.ts
5088
+ // src/private/hooks/useTimeoutFunc/useTimeoutFunc.ts
5281
5089
  const useTimeoutFunc = (func, timeout = 0) => {
5282
5090
  const readyRef = useRef(false);
5283
5091
  const timeoutRef = useRef(void 0);
@@ -5308,15 +5116,13 @@ const useTimeoutFunc = (func, timeout = 0) => {
5308
5116
  set
5309
5117
  ];
5310
5118
  };
5311
- //#endregion
5312
- //#region src/private/hooks/useDebounce/useDebounce.ts
5119
+ // src/private/hooks/useDebounce/useDebounce.ts
5313
5120
  const useDebounce = (func, timeout = 0, dependencies = []) => {
5314
5121
  const [isReady, cancel, reset] = useTimeoutFunc(func, timeout);
5315
5122
  useEffect(reset, dependencies);
5316
5123
  return [isReady, cancel];
5317
5124
  };
5318
- //#endregion
5319
- //#region src/components/FormGlobalError/FormGlobalError.tsx
5125
+ // src/components/FormGlobalError/FormGlobalError.tsx
5320
5126
  const GlobalErrorsContainer = styled.div`
5321
5127
  border-left: 4px solid;
5322
5128
  border-left-color: ${({ theme }) => theme.color.error500};
@@ -5374,11 +5180,9 @@ const FormGlobalError = forwardRef((_, ref) => {
5374
5180
  return null;
5375
5181
  });
5376
5182
  FormGlobalError.displayName = "FormGlobalError_VHS";
5377
- //#endregion
5378
- //#region src/components/Toast/useToast.ts
5183
+ // src/components/Toast/useToast.ts
5379
5184
  const useToast = () => useContext(ToastContext);
5380
- //#endregion
5381
- //#region src/components/Form/Form.tsx
5185
+ // src/components/Form/Form.tsx
5382
5186
  const didValuesChange = (newValues, oldValues) => JSON.stringify(newValues) !== JSON.stringify(oldValues);
5383
5187
  const handleInitialValues = (initialValues, validationSchema) => {
5384
5188
  const filteredInitialValues = {};
@@ -5471,8 +5275,7 @@ const Form = ({ children, className, formId, initialValues, onSubmit, scrollToFo
5471
5275
  });
5472
5276
  };
5473
5277
  Form.displayName = "Form_VHS";
5474
- //#endregion
5475
- //#region src/private/components/FormConnectorButton/FormConnectorButton.tsx
5278
+ // src/private/components/FormConnectorButton/FormConnectorButton.tsx
5476
5279
  const FormConnectorButton = ({ type = "submit", isSubmitting = false, children, disabled = false, ...props }) => {
5477
5280
  return /* @__PURE__ */ jsx(Button, {
5478
5281
  disabled: isSubmitting || disabled,
@@ -5482,8 +5285,7 @@ const FormConnectorButton = ({ type = "submit", isSubmitting = false, children,
5482
5285
  });
5483
5286
  };
5484
5287
  FormConnectorButton.displayName = "FormConnectorButton_VHS";
5485
- //#endregion
5486
- //#region src/components/FormButtons/FormButtons.tsx
5288
+ // src/components/FormButtons/FormButtons.tsx
5487
5289
  const handleMouseDown = (event) => event.preventDefault();
5488
5290
  const FormButtons = ({ buttons, align = "left", ...props }) => {
5489
5291
  const { isSubmitting } = useFormikContext$1();
@@ -5500,11 +5302,10 @@ const FormButtons = ({ buttons, align = "left", ...props }) => {
5500
5302
  });
5501
5303
  };
5502
5304
  FormButtons.displayName = "FormButtons_VHS";
5503
- //#endregion
5504
- //#region src/private/components/FormConnectorCheckboxGroup/FormConnectorCheckboxGroup.tsx
5505
- const DEFAULT_LABEL_PROPS$6 = {};
5305
+ // src/private/components/FormConnectorCheckboxGroup/FormConnectorCheckboxGroup.tsx
5306
+ const DEFAULT_LABEL_PROPS$5 = {};
5506
5307
  const DEFAULT_OPTIONS = [];
5507
- const FormConnectorCheckboxGroup = ({ direction = "column", disabled = false, field: { name, value }, form: { errors, setFieldValue }, label, labelDescription, labelProps = DEFAULT_LABEL_PROPS$6, onChangeCustom, options = DEFAULT_OPTIONS }) => {
5308
+ const FormConnectorCheckboxGroup = ({ direction = "column", disabled = false, field: { name, value }, form: { errors, setFieldValue }, label, labelDescription, labelProps = DEFAULT_LABEL_PROPS$5, onChangeCustom, options = DEFAULT_OPTIONS }) => {
5508
5309
  const onChangeSingle = (event, optionValue) => {
5509
5310
  setFieldValue(optionValue, event.target.checked);
5510
5311
  };
@@ -5538,10 +5339,9 @@ const FormConnectorCheckboxGroup = ({ direction = "column", disabled = false, fi
5538
5339
  });
5539
5340
  };
5540
5341
  FormConnectorCheckboxGroup.displayName = "FormConnectorCheckboxGroup_VHS";
5541
- //#endregion
5542
- //#region src/private/components/FormConnectorCustomField/FormConnectorCustomField.tsx
5543
- const DEFAULT_LABEL_PROPS$5 = {};
5544
- const FormConnectorCustomField = ({ customComponent: Element, field, form, label = "", labelDescription, labelProps = DEFAULT_LABEL_PROPS$5, ...otherProps }) => {
5342
+ // src/private/components/FormConnectorCustomField/FormConnectorCustomField.tsx
5343
+ const DEFAULT_LABEL_PROPS$4 = {};
5344
+ const FormConnectorCustomField = ({ customComponent: Element, field, form, label = "", labelDescription, labelProps = DEFAULT_LABEL_PROPS$4, ...otherProps }) => {
5545
5345
  const { name } = field;
5546
5346
  const { errors } = form;
5547
5347
  return /* @__PURE__ */ jsx(FormFieldWrapper, {
@@ -5558,8 +5358,7 @@ const FormConnectorCustomField = ({ customComponent: Element, field, form, label
5558
5358
  });
5559
5359
  };
5560
5360
  FormConnectorCustomField.displayName = "FormConnectorCustomField_VHS";
5561
- //#endregion
5562
- //#region src/private/helpers/coerceToString/coerceToString.ts
5361
+ // src/private/helpers/coerceToString/coerceToString.ts
5563
5362
  /**
5564
5363
  * Coerces a value `value` into a string. If passed a null or undefined
5565
5364
  * value, returns an empty string.
@@ -5568,16 +5367,14 @@ FormConnectorCustomField.displayName = "FormConnectorCustomField_VHS";
5568
5367
  * @returns {string} - that value as a string
5569
5368
  */
5570
5369
  const coerceToString = (value) => value === null || value === void 0 ? "" : String(value);
5571
- //#endregion
5572
- //#region src/private/hooks/useMergedRefs/useMergedRefs.ts
5370
+ // src/private/hooks/useMergedRefs/useMergedRefs.ts
5573
5371
  const useMergedRefs = (refs) => (element) => {
5574
5372
  refs.forEach((ref) => {
5575
5373
  if (typeof ref === "function") ref(element);
5576
5374
  else if (ref != null) ref.current = element;
5577
5375
  });
5578
5376
  };
5579
- //#endregion
5580
- //#region src/private/helpers/copyToClipboard/copyToClipboard.ts
5377
+ // src/private/helpers/copyToClipboard/copyToClipboard.ts
5581
5378
  /**
5582
5379
  * Copies a string to user's clipboard for easy pasting in another location
5583
5380
  *
@@ -5609,8 +5406,7 @@ const copyToClipboard = async (textToCopy) => {
5609
5406
  if (success) return;
5610
5407
  throw new DOMException("The request is not allowed", "NotAllowedError");
5611
5408
  };
5612
- //#endregion
5613
- //#region src/components/Input/ClickToCopy.tsx
5409
+ // src/components/Input/ClickToCopy.tsx
5614
5410
  const clickToCopyWrapperEnabledStyles = css`
5615
5411
  input {
5616
5412
  cursor: pointer;
@@ -5705,8 +5501,7 @@ const ClickToCopy = ({ inputComponent: InputStyledComponent, inputProps, onClick
5705
5501
  children: [/* @__PURE__ */ jsx(InputStyledComponent, { ...inputComponentProps }), /* @__PURE__ */ jsx(ClickToCopyButton, { ...buttonProps })]
5706
5502
  });
5707
5503
  };
5708
- //#endregion
5709
- //#region src/components/Input/InputStyledComponent.tsx
5504
+ // src/components/Input/InputStyledComponent.tsx
5710
5505
  const focusStyle$1 = css`
5711
5506
  border-color: ${({ theme }) => theme.color.brandBlue500};
5712
5507
  outline: none;
@@ -5809,8 +5604,7 @@ const InputStyledComponent = styled.input`
5809
5604
  ${({ $hasError }) => $hasError && errorStyle$1};
5810
5605
  ${({ readOnly }) => readOnly && readOnlyStyle};
5811
5606
  `;
5812
- //#endregion
5813
- //#region src/components/Input/timePositionUtils.ts
5607
+ // src/components/Input/timePositionUtils.ts
5814
5608
  const SEC_AND_MIN_MAX = 60;
5815
5609
  const stripInvalidCharacters = (string) => string.replaceAll(/[^0-9:]/g, "");
5816
5610
  const parseNumber = (string) => string ? Number(string) : 0;
@@ -5842,8 +5636,7 @@ const timePositionFormat = (value) => {
5842
5636
  const cleanString = stripInvalidCharacters(value);
5843
5637
  return formatString(cleanString);
5844
5638
  };
5845
- //#endregion
5846
- //#region src/components/Input/Input.tsx
5639
+ // src/components/Input/Input.tsx
5847
5640
  const INPUT_TYPES_WITH_ICONS = /* @__PURE__ */ new Set(["search"]);
5848
5641
  const InputWrapper = styled.div`
5849
5642
  position: relative;
@@ -5936,8 +5729,7 @@ const Input = forwardRef(({ clickToCopy = false, disabled = false, forceState, f
5936
5729
  });
5937
5730
  });
5938
5731
  Input.displayName = "Input_VHS";
5939
- //#endregion
5940
- //#region src/private/components/FormConnectorHidden/FormConnectorHidden.tsx
5732
+ // src/private/components/FormConnectorHidden/FormConnectorHidden.tsx
5941
5733
  const DEFAULT_FORM = {};
5942
5734
  const FormConnectorHidden = ({ field: { name, value, onChange }, form: { setFieldValue } = DEFAULT_FORM, onChangeCustom, valueState = "", ...otherProps }) => {
5943
5735
  useEffect(() => {
@@ -5962,8 +5754,7 @@ const FormConnectorHidden = ({ field: { name, value, onChange }, form: { setFiel
5962
5754
  });
5963
5755
  };
5964
5756
  FormConnectorHidden.displayName = "FormConnectorHidden_VHS";
5965
- //#endregion
5966
- //#region src/private/components/FormConnectorInput/FormConnectorInput.tsx
5757
+ // src/private/components/FormConnectorInput/FormConnectorInput.tsx
5967
5758
  const TRIMMABLE_INPUTS = /* @__PURE__ */ new Set([
5968
5759
  "text",
5969
5760
  "multiline",
@@ -6002,8 +5793,7 @@ const FormConnectorInput = ({ disabled, field: { name, value, onChange, onBlur }
6002
5793
  });
6003
5794
  };
6004
5795
  FormConnectorInput.displayName = "FormConnectorInput_VHS";
6005
- //#endregion
6006
- //#region src/components/Radio/Radio.tsx
5796
+ // src/components/Radio/Radio.tsx
6007
5797
  const Radio = forwardRef(({ checked, direction = "column", disabled = false, forceState, hasError = false, id, label, labelDescription, name, onChange, value = "false", ...otherProps }, ref) => {
6008
5798
  const [focused, setFocused] = useState(false);
6009
5799
  return /* @__PURE__ */ jsxs(Container, {
@@ -6034,15 +5824,14 @@ const Radio = forwardRef(({ checked, direction = "column", disabled = false, for
6034
5824
  });
6035
5825
  });
6036
5826
  Radio.displayName = "Radio_VHS";
6037
- //#endregion
6038
- //#region src/components/RadioGroup/RadioGroup.tsx
5827
+ // src/components/RadioGroup/RadioGroup.tsx
6039
5828
  const StyledOptionContainer = styled.div`
6040
5829
  display: flex;
6041
5830
  flex-direction: ${({ direction }) => direction === "row" ? "row" : "column"};
6042
5831
  gap: ${({ direction, theme }) => direction === "row" ? theme.spacing.space04 : theme.spacing.space01};
6043
5832
  `;
6044
- const DEFAULT_LABEL_PROPS$4 = {};
6045
- const RadioGroup = ({ direction = "column", disabled = false, error, label, labelDescription, labelProps = DEFAULT_LABEL_PROPS$4, name, onChange, options, value, ...otherProps }) => /* @__PURE__ */ jsx(FormFieldWrapper, {
5833
+ const DEFAULT_LABEL_PROPS$3 = {};
5834
+ const RadioGroup = ({ direction = "column", disabled = false, error, label, labelDescription, labelProps = DEFAULT_LABEL_PROPS$3, name, onChange, options, value, ...otherProps }) => /* @__PURE__ */ jsx(FormFieldWrapper, {
6046
5835
  disabled,
6047
5836
  error,
6048
5837
  label,
@@ -6066,10 +5855,9 @@ const RadioGroup = ({ direction = "column", disabled = false, error, label, labe
6066
5855
  })
6067
5856
  });
6068
5857
  RadioGroup.displayName = "RadioGroup_VHS";
6069
- //#endregion
6070
- //#region src/private/components/FormConnectorRadioGroup/FormConnectorRadioGroup.tsx
6071
- const DEFAULT_LABEL_PROPS$3 = {};
6072
- const FormConnectorRadioGroup = ({ direction = "column", disabled = false, field: { name }, form: { errors, values, setFieldValue }, label = "", labelDescription, labelProps = DEFAULT_LABEL_PROPS$3, onChangeCustom, options }) => {
5858
+ // src/private/components/FormConnectorRadioGroup/FormConnectorRadioGroup.tsx
5859
+ const DEFAULT_LABEL_PROPS$2 = {};
5860
+ const FormConnectorRadioGroup = ({ direction = "column", disabled = false, field: { name }, form: { errors, values, setFieldValue }, label = "", labelDescription, labelProps = DEFAULT_LABEL_PROPS$2, onChangeCustom, options }) => {
6073
5861
  const handleOnChange = useCallback((_event, optionValue) => {
6074
5862
  setFieldValue(name, optionValue);
6075
5863
  if (onChangeCustom) onChangeCustom(optionValue);
@@ -6092,1088 +5880,7 @@ const FormConnectorRadioGroup = ({ direction = "column", disabled = false, field
6092
5880
  });
6093
5881
  };
6094
5882
  FormConnectorRadioGroup.displayName = "FormConnectorRadioGroup_VHS";
6095
- //#endregion
6096
- //#region src/private/components/Icon/iconMap.ts
6097
- const iconMap = {
6098
- "block-quote": "BlockQuote",
6099
- bold: "Bold",
6100
- "bulleted-list": "BulletedList",
6101
- heading: "Heading",
6102
- "heading-two": "HeadingTwo",
6103
- image: "Image",
6104
- italic: "Italic",
6105
- link: "Link",
6106
- "numbered-list": "NumberedList",
6107
- strikethrough: "Strikethrough",
6108
- underline: "Underline"
6109
- };
6110
- //#endregion
6111
- //#region src/private/components/Icon/icons/BlockQuote.tsx
6112
- const BlockQuote = (props) => /* @__PURE__ */ jsx("svg", {
6113
- ...props,
6114
- children: /* @__PURE__ */ jsx("path", {
6115
- d: "M4.2125 11.0375C4.35417 11.1792 4.53333 11.25 4.75 11.25H19.25C19.4667 11.25 19.6458 11.1792 19.7875 11.0375C19.9292 10.8958 20 10.7167 20 10.5C20 10.2833 19.9292 10.1042 19.7875 9.9625C19.6458 9.82083 19.4667 9.75 19.25 9.75H4.75C4.53333 9.75 4.35417 9.82083 4.2125 9.9625C4.07083 10.1042 4 10.2833 4 10.5C4 10.7167 4.07083 10.8958 4.2125 11.0375ZM4.2125 14.0375C4.35417 14.1792 4.53333 14.25 4.75 14.25H12.975C13.1917 14.25 13.3708 14.1792 13.5125 14.0375C13.6542 13.8958 13.725 13.7167 13.725 13.5C13.725 13.2833 13.6542 13.1042 13.5125 12.9625C13.3708 12.8208 13.1917 12.75 12.975 12.75H4.75C4.53333 12.75 4.35417 12.8208 4.2125 12.9625C4.07083 13.1042 4 13.2833 4 13.5C4 13.7167 4.07083 13.8958 4.2125 14.0375ZM1.5 10C1.22386 10 1 10.2239 1 10.5V14C1 14.2761 1.22386 14.5 1.5 14.5C1.77614 14.5 2 14.2761 2 14V10.5C2 10.2239 1.77614 10 1.5 10Z",
6116
- fill: "currentColor"
6117
- })
6118
- });
6119
- //#endregion
6120
- //#region src/private/components/Icon/icons/Bold.tsx
6121
- const Bold = (props) => /* @__PURE__ */ jsx("svg", {
6122
- ...props,
6123
- children: /* @__PURE__ */ jsx("path", {
6124
- d: "M16.9995 11.7C18.354 10.743 19.302 9.17101 19.302 7.71451C19.302 4.48501 16.86 1.99951 13.722 1.99951H4.998V22.0005H14.823C17.7375 22.0005 19.998 19.5705 19.998 16.5855C19.998 14.415 18.798 12.5565 16.998 11.7H16.9995ZM9.186 5.57101H13.371C14.5305 5.57101 15.465 6.52801 15.465 7.71451C15.465 8.89951 14.5305 9.85651 13.3725 9.85651H9.186V5.57101ZM14.07 18.429H9.186V14.1435H14.07C15.228 14.1435 16.1625 15.1005 16.1625 16.2855C16.1625 17.4705 15.228 18.429 14.07 18.429V18.429Z",
6125
- fill: "currentColor"
6126
- })
6127
- });
6128
- //#endregion
6129
- //#region src/private/components/Icon/icons/BulletedList.tsx
6130
- const BulletedList = (props) => /* @__PURE__ */ jsx("svg", {
6131
- ...props,
6132
- children: /* @__PURE__ */ jsx("path", {
6133
- d: "M4.0005 10.5C3.1695 10.5 2.5005 11.1705 2.5005 12C2.5005 12.8295 3.1695 13.5 4.0005 13.5C4.83 13.5 5.5005 12.8295 5.5005 12C5.5005 11.1705 4.83 10.5 4.0005 10.5ZM4.0005 4.5C3.1695 4.5 2.5005 5.1705 2.5005 6C2.5005 6.8295 3.1695 7.5 4.0005 7.5C4.83 7.5 5.5005 6.8295 5.5005 6C5.5005 5.1705 4.83 4.5 4.0005 4.5ZM4.0005 16.5C3.1695 16.5 2.5005 17.1795 2.5005 18C2.5005 18.8205 3.18 19.5 4.0005 19.5C4.8195 19.5 5.5005 18.8205 5.5005 18C5.5005 17.1795 4.83 16.5 4.0005 16.5ZM7.0005 19.0005H21V16.9995H7.0005V19.0005ZM7.0005 13.0005H21V10.9995H7.0005V13.0005ZM7.0005 4.9995V7.0005H21V4.9995H7.0005Z",
6134
- fill: "currentColor"
6135
- })
6136
- });
6137
- //#endregion
6138
- //#region src/private/components/Icon/icons/Heading.tsx
6139
- const Heading = (props) => /* @__PURE__ */ jsx("svg", {
6140
- ...props,
6141
- children: /* @__PURE__ */ jsx("path", {
6142
- d: "M7.9995 3V6.7995H14.154V22.0005H17.8455V6.7995H24V3H7.9995ZM0 12.9H3.666V22.0005H7.335V12.9H11.001V9H0V12.9Z",
6143
- fill: "currentColor"
6144
- })
6145
- });
6146
- //#endregion
6147
- //#region src/private/components/Icon/icons/HeadingTwo.tsx
6148
- const HeadingTwo = (props) => /* @__PURE__ */ jsx("svg", {
6149
- ...props,
6150
- children: /* @__PURE__ */ jsx("path", {
6151
- d: "M3 17V7H4.5V11.25H9V7H10.5V17H9V12.75H4.5V17H3ZM13.5 17V12.75C13.5 12.3333 13.6458 11.9792 13.9375 11.6875C14.2292 11.3958 14.5833 11.25 15 11.25H19.5V8.5H13.5V7H19.5C19.9167 7 20.2708 7.14583 20.5625 7.4375C20.8542 7.72917 21 8.08333 21 8.5V11.25C21 11.6667 20.8542 12.0208 20.5625 12.3125C20.2708 12.6042 19.9167 12.75 19.5 12.75H15V15.5H21V17H13.5Z",
6152
- fill: "currentColor"
6153
- })
6154
- });
6155
- //#endregion
6156
- //#region src/private/components/Icon/icons/Image.tsx
6157
- const Image$2 = (props) => /* @__PURE__ */ jsx("svg", {
6158
- ...props,
6159
- children: /* @__PURE__ */ jsx("path", {
6160
- d: "M21 19.0005V4.9995C21 3.9 20.1 3 19.0005 3H4.9995C3.9 3 3 3.9 3 4.9995V19.0005C3 20.1 3.9 21 4.9995 21H19.0005C20.1 21 21 20.1 21 19.0005ZM8.5005 13.5L10.9995 16.5105L14.5005 12L19.0005 18H4.9995L8.5005 13.5Z",
6161
- fill: "currentColor"
6162
- })
6163
- });
6164
- //#endregion
6165
- //#region src/private/components/Icon/icons/Italic.tsx
6166
- const Italic = (props) => /* @__PURE__ */ jsx("svg", {
6167
- ...props,
6168
- children: /* @__PURE__ */ jsx("path", {
6169
- d: "M8.8335 1.99951V6.28501H12.0555L7.0695 17.715H3V22.0005H14.667V17.715H11.4435L16.431 6.28501H20.5005V1.99951H8.8335Z",
6170
- fill: "currentColor"
6171
- })
6172
- });
6173
- //#endregion
6174
- //#region src/private/components/Icon/icons/Link.tsx
6175
- const Link$1 = (props) => /* @__PURE__ */ jsx("svg", {
6176
- ...props,
6177
- children: /* @__PURE__ */ jsx("path", {
6178
- d: "M2.28 12C2.28 9.948 3.948 8.28 6 8.28H10.8V6H6C2.688 6 0 8.688 0 12C0 15.312 2.688 18 6 18H10.8V15.72H6C3.948 15.72 2.28 14.052 2.28 12ZM7.2 13.2H16.8V10.8H7.2V13.2ZM18 6H13.2V8.28H18C20.052 8.28 21.72 9.948 21.72 12C21.72 14.052 20.052 15.72 18 15.72H13.2V18H18C21.312 18 24 15.312 24 12C24 8.688 21.312 6 18 6Z",
6179
- fill: "currentColor"
6180
- })
6181
- });
6182
- //#endregion
6183
- //#region src/private/components/Icon/icons/NumberedList.tsx
6184
- const NumberedList = (props) => /* @__PURE__ */ jsx("svg", {
6185
- ...props,
6186
- children: /* @__PURE__ */ jsx("path", {
6187
- d: "M3.425 20C3.30833 20 3.20833 19.9583 3.125 19.875C3.04167 19.7917 3 19.6917 3 19.575C3 19.4583 3.04167 19.3583 3.125 19.275C3.20833 19.1917 3.30833 19.15 3.425 19.15H5.1V18.5H4.475C4.35833 18.5 4.25833 18.4583 4.175 18.375C4.09167 18.2917 4.05 18.1917 4.05 18.075C4.05 17.9583 4.09167 17.8583 4.175 17.775C4.25833 17.6917 4.35833 17.65 4.475 17.65H5.1V17H3.425C3.30833 17 3.20833 16.9583 3.125 16.875C3.04167 16.7917 3 16.6917 3 16.575C3 16.4583 3.04167 16.3583 3.125 16.275C3.20833 16.1917 3.30833 16.15 3.425 16.15H5.525C5.64167 16.15 5.74167 16.1917 5.825 16.275C5.90833 16.3583 5.95 16.4583 5.95 16.575V19.575C5.95 19.6917 5.90833 19.7917 5.825 19.875C5.74167 19.9583 5.64167 20 5.525 20H3.425ZM4.475 7.9C4.35833 7.9 4.25833 7.85833 4.175 7.775C4.09167 7.69167 4.05 7.59167 4.05 7.475V4.85H3.425C3.30833 4.85 3.20833 4.80833 3.125 4.725C3.04167 4.64167 3 4.54167 3 4.425C3 4.30833 3.04167 4.20833 3.125 4.125C3.20833 4.04167 3.30833 4 3.425 4H4.475C4.59167 4 4.69167 4.04167 4.775 4.125C4.85833 4.20833 4.9 4.30833 4.9 4.425V7.475C4.9 7.59167 4.85833 7.69167 4.775 7.775C4.69167 7.85833 4.59167 7.9 4.475 7.9V7.9ZM3.425 13.925C3.30833 13.925 3.20833 13.8833 3.125 13.8C3.04167 13.7167 3 13.6167 3 13.5V13.275C3 13.2583 3.03333 13.1667 3.1 13L4.875 10.925H3.425C3.30833 10.925 3.20833 10.8833 3.125 10.8C3.04167 10.7167 3 10.6167 3 10.5C3 10.3833 3.04167 10.2833 3.125 10.2C3.20833 10.1167 3.30833 10.075 3.425 10.075H5.525C5.64167 10.075 5.74167 10.1167 5.825 10.2C5.90833 10.2833 5.95 10.3833 5.95 10.5V10.725C5.95 10.7417 5.91667 10.8333 5.85 11L4.05 13.075H5.525C5.64167 13.075 5.74167 13.1167 5.825 13.2C5.90833 13.2833 5.95 13.3833 5.95 13.5C5.95 13.6167 5.90833 13.7167 5.825 13.8C5.74167 13.8833 5.64167 13.925 5.525 13.925H3.425ZM8.975 18.775C8.75833 18.775 8.57917 18.7042 8.4375 18.5625C8.29583 18.4208 8.225 18.2417 8.225 18.025C8.225 17.8083 8.29583 17.6292 8.4375 17.4875C8.57917 17.3458 8.75833 17.275 8.975 17.275H20.25C20.4667 17.275 20.6458 17.3458 20.7875 17.4875C20.9292 17.6292 21 17.8083 21 18.025C21 18.2417 20.9292 18.4208 20.7875 18.5625C20.6458 18.7042 20.4667 18.775 20.25 18.775H8.975ZM8.975 12.7C8.75833 12.7 8.57917 12.6292 8.4375 12.4875C8.29583 12.3458 8.225 12.1667 8.225 11.95C8.225 11.7333 8.29583 11.5542 8.4375 11.4125C8.57917 11.2708 8.75833 11.2 8.975 11.2H20.25C20.4667 11.2 20.6458 11.2708 20.7875 11.4125C20.9292 11.5542 21 11.7333 21 11.95C21 12.1667 20.9292 12.3458 20.7875 12.4875C20.6458 12.6292 20.4667 12.7 20.25 12.7H8.975ZM8.975 6.625C8.75833 6.625 8.57917 6.55417 8.4375 6.4125C8.29583 6.27083 8.225 6.09167 8.225 5.875C8.225 5.65833 8.29583 5.47917 8.4375 5.3375C8.57917 5.19583 8.75833 5.125 8.975 5.125H20.25C20.4667 5.125 20.6458 5.19583 20.7875 5.3375C20.9292 5.47917 21 5.65833 21 5.875C21 6.09167 20.9292 6.27083 20.7875 6.4125C20.6458 6.55417 20.4667 6.625 20.25 6.625H8.975Z",
6188
- fill: "currentColor"
6189
- })
6190
- });
6191
- //#endregion
6192
- //#region src/private/components/Icon/icons/Strikethrough.tsx
6193
- const Strikethrough = (props) => /* @__PURE__ */ jsx("svg", {
6194
- ...props,
6195
- children: /* @__PURE__ */ jsx("path", {
6196
- d: "M2 13.75V12.25H22V13.75H2ZM10.75 10.75V6.5H5V4H19V6.5H13.25V10.75H10.75ZM10.75 20V15.25H13.25V20H10.75Z",
6197
- fill: "currentColor"
6198
- })
6199
- });
6200
- //#endregion
6201
- //#region src/private/components/Icon/icons/Underline.tsx
6202
- const Underline = (props) => /* @__PURE__ */ jsx("svg", {
6203
- ...props,
6204
- children: /* @__PURE__ */ jsx("path", {
6205
- d: "M5 21V19.5H19V21H5ZM12 17C10.3167 17 8.89583 16.425 7.7375 15.275C6.57917 14.125 6 12.7167 6 11.05V3H8V11.1C8 12.2 8.38333 13.125 9.15 13.875C9.91667 14.625 10.8667 15 12 15C13.1333 15 14.0833 14.625 14.85 13.875C15.6167 13.125 16 12.2 16 11.1V3H18V11.05C18 12.7167 17.4208 14.125 16.2625 15.275C15.1042 16.425 13.6833 17 12 17Z",
6206
- fill: "currentColor"
6207
- })
6208
- });
6209
- //#endregion
6210
- //#region src/private/components/Icon/icons/index.ts
6211
- var icons_exports = /* @__PURE__ */ __exportAll({
6212
- BlockQuote: () => BlockQuote,
6213
- Bold: () => Bold,
6214
- BulletedList: () => BulletedList,
6215
- Heading: () => Heading,
6216
- HeadingTwo: () => HeadingTwo,
6217
- Image: () => Image$2,
6218
- Italic: () => Italic,
6219
- Link: () => Link$1,
6220
- NumberedList: () => NumberedList,
6221
- Strikethrough: () => Strikethrough,
6222
- Underline: () => Underline
6223
- });
6224
- //#endregion
6225
- //#region src/private/components/Icon/Icon.tsx
6226
- const iconSizeMap$1 = {
6227
- sm: "12",
6228
- md: "16",
6229
- lg: "24",
6230
- xl: "32",
6231
- xxl: "48"
6232
- };
6233
- const Icon$1 = ({ color = "currentColor", size = "lg", style, type, ...otherProps }) => {
6234
- if (isNil(type)) throw new Error("An Icon component requires a `type` prop to be provided");
6235
- if (isNil(iconMap[type])) throw new Error(`Type "${type}" does not exist, please update type prop in Icon component.`);
6236
- if (isNil(iconSizeMap$1[size])) throw new Error(`Size "${size}" does not exist, please update size prop in Icon component.`);
6237
- const IconElement = icons_exports[iconMap[type]];
6238
- const defaultStyle = {
6239
- verticalAlign: "middle",
6240
- ...style
6241
- };
6242
- return /* @__PURE__ */ jsx(IconElement, {
6243
- "aria-hidden": "true",
6244
- color,
6245
- height: `${iconSizeMap$1[size]}px`,
6246
- role: "presentation",
6247
- style: defaultStyle,
6248
- viewBox: "0 0 24 24",
6249
- width: `${iconSizeMap$1[size]}px`,
6250
- xmlns: "http://www.w3.org/2000/svg",
6251
- ...otherProps
6252
- });
6253
- };
6254
- Icon$1.displayName = "Icon_VHS";
6255
- //#endregion
6256
- //#region src/private/helpers/isUrl/isUrl.ts
6257
- /**
6258
- * Loosely validates a URL string
6259
- *
6260
- * @param {*} str - a string to validate - could be an unknown type
6261
- * @return {boolean} - whether string appears to be a url
6262
- */
6263
- const isUrl = (str) => {
6264
- const protocolAndDomain = /^(?:\w+:)?\/\/(\S+)$/;
6265
- const localhostDomain = /^localhost[:?\d]*(?:[^:?\d]\S*)?$/;
6266
- const nonLocalhostDomain = /^[^\s.]+\.\S{2,}$/;
6267
- if (!isString(str)) return false;
6268
- const match = protocolAndDomain.exec(str);
6269
- if (!match) return false;
6270
- const remaining = match[1];
6271
- if (remaining === void 0 || !remaining) return false;
6272
- return localhostDomain.test(remaining) || nonLocalhostDomain.test(remaining);
6273
- };
6274
- //#endregion
6275
- //#region src/components/RichTextEditor/utilities/toggle.ts
6276
- const isBlockActive = (editor, format) => {
6277
- const [match] = Editor.nodes(editor, { match: (node) => Element.isElement(node) && node.type === format });
6278
- return Boolean(match);
6279
- };
6280
- const LIST_TYPES = /* @__PURE__ */ new Set(["numbered-list", "bulleted-list"]);
6281
- const toggleBlock = (editor, format) => {
6282
- const isActive = isBlockActive(editor, format);
6283
- const isList = LIST_TYPES.has(format);
6284
- Transforms.unwrapNodes(editor, {
6285
- match: (node) => Element.isElement(node) && isNotNil(node.type) && LIST_TYPES.has(node.type),
6286
- split: true
6287
- });
6288
- const formatting = isList ? "list-item" : format;
6289
- Transforms.setNodes(editor, { type: isActive ? "paragraph" : formatting });
6290
- if (!isActive && isList) {
6291
- const block = {
6292
- type: format,
6293
- children: []
6294
- };
6295
- Transforms.wrapNodes(editor, block);
6296
- }
6297
- };
6298
- const isMarkActive = (editor, format) => {
6299
- const valueMarks = Editor.marks(editor);
6300
- return isNonEmptyString(valueMarks && Object.keys(valueMarks).find((mark) => mark === format));
6301
- };
6302
- const toggleMark = (editor, format) => {
6303
- if (isMarkActive(editor, format)) Editor.removeMark(editor, format);
6304
- else Editor.addMark(editor, format, true);
6305
- };
6306
- //#endregion
6307
- //#region src/components/RichTextEditor/utilities/withImagesPlugin.ts
6308
- const emptyTextNode$1 = { text: "" };
6309
- const imageExtensions = [
6310
- "jpg",
6311
- "png",
6312
- "gif",
6313
- "tiff",
6314
- "bmp",
6315
- "dcm"
6316
- ];
6317
- const isImageUrl = (url) => {
6318
- if (!isUrl(url)) return false;
6319
- const hasImageExtension = imageExtensions.find((event) => url.includes(event));
6320
- return isNotUndefined(hasImageExtension) && Boolean(hasImageExtension);
6321
- };
6322
- const insertImage = (editor, url) => {
6323
- if (!url) {
6324
- toggleBlock(editor, "image");
6325
- return;
6326
- }
6327
- if (!isImageUrl(url)) {
6328
- toggleBlock(editor, "image");
6329
- return;
6330
- }
6331
- const image = {
6332
- type: "image",
6333
- url,
6334
- children: [emptyTextNode$1]
6335
- };
6336
- Transforms.insertNodes(editor, image);
6337
- };
6338
- const withImages = (editor) => {
6339
- const { normalizeNode, isVoid } = editor;
6340
- editor.isVoid = (element) => element.type === "image" ? true : isVoid(element);
6341
- editor.normalizeNode = ([node, path]) => {
6342
- if (Element.isElement(node) && node.type === "image" && node.url !== void 0) {
6343
- const paragraph = {
6344
- type: "paragraph",
6345
- children: [emptyTextNode$1]
6346
- };
6347
- const pathIndex = isNotUndefined(path[0]) ? path[0] + 1 : 1;
6348
- Transforms.insertNodes(editor, paragraph, { at: [pathIndex] });
6349
- Transforms.move(editor);
6350
- }
6351
- if (Element.isElement(node) && node.type === "image" && node.url === void 0 && isNotUndefined(node.children) && isNotUndefined(node.children[0]) && isNotUndefined(node.children[0].text) && node.children[0].text.trim() !== "") Transforms.setNodes(editor, { type: "span" }, {
6352
- match: (matchNode) => Element.isElement(matchNode) && matchNode.type === "image" && matchNode.url === void 0 && isNotUndefined(matchNode.children) && Text$1.isText(matchNode.children[0]) && isNotNil(matchNode.children[0].text) && matchNode.children[0].text.trim() !== "",
6353
- split: true,
6354
- at: path,
6355
- mode: "highest"
6356
- });
6357
- normalizeNode([node, path]);
6358
- };
6359
- return editor;
6360
- };
6361
- //#endregion
6362
- //#region src/components/RichTextEditor/utilities/withLinksPlugin.ts
6363
- const isHashUrl = (urlString) => {
6364
- return /^#.+$/i.test(urlString);
6365
- };
6366
- const isLinkActive = (editor) => {
6367
- const [link] = Editor.nodes(editor, { match: (node) => Element.isElement(node) && node.type === "link" });
6368
- return Boolean(link);
6369
- };
6370
- const unwrapLink = (editor) => {
6371
- Transforms.unwrapNodes(editor, { match: (node) => Element.isElement(node) && node.type === "link" });
6372
- };
6373
- const wrapLink = (editor, url) => {
6374
- if (isLinkActive(editor)) unwrapLink(editor);
6375
- const { selection } = editor;
6376
- const isCollapsed = selection && Range.isCollapsed(selection);
6377
- const link = {
6378
- type: "link",
6379
- url,
6380
- children: isCollapsed === true ? [{ text: url }] : []
6381
- };
6382
- if (isCollapsed === true) Transforms.insertNodes(editor, link);
6383
- else {
6384
- Transforms.wrapNodes(editor, link, { split: true });
6385
- Transforms.collapse(editor, { edge: "end" });
6386
- }
6387
- };
6388
- const withLinks = (editor) => {
6389
- const { insertData, insertText, isInline, normalizeNode } = editor;
6390
- editor.isInline = (element) => element.type === "link" ? true : isInline(element);
6391
- editor.insertText = (text) => {
6392
- if (text && isUrl(text)) wrapLink(editor, text);
6393
- else insertText(text);
6394
- };
6395
- editor.insertData = (data) => {
6396
- const text = data.getData("text/plain");
6397
- if (text && isUrl(text)) wrapLink(editor, text);
6398
- else insertData(data);
6399
- };
6400
- editor.normalizeNode = ([node, path]) => {
6401
- if (Element.isElement(node) && node.type === "link" && Node.string(node) === "") {
6402
- Transforms.unwrapNodes(editor, { at: path });
6403
- Transforms.select(editor, Path.next(path));
6404
- }
6405
- normalizeNode([node, path]);
6406
- };
6407
- return editor;
6408
- };
6409
- const insertLink = (editor) => {
6410
- if (isLinkActive(editor)) unwrapLink(editor);
6411
- else {
6412
- const url = prompt("Enter the URL of the link:");
6413
- if (!isNonEmptyString(url)) {
6414
- toggleMark(editor, "link");
6415
- return;
6416
- }
6417
- if (url.includes(" ")) {
6418
- alert("The URL provided had spaces. Try again without spaces.");
6419
- toggleMark(editor, "link");
6420
- return;
6421
- }
6422
- if (!isUrl(url) && !isHashUrl(url)) {
6423
- alert("The URL provided looks invalid. Try again. Make sure to include the protocol (ex. https://) in the URL.");
6424
- toggleMark(editor, "link");
6425
- return;
6426
- }
6427
- if (editor.selection) wrapLink(editor, url);
6428
- }
6429
- };
6430
- //#endregion
6431
- //#region src/components/RichTextEditor/utilities/handleListEscape.ts
6432
- const OverriddenEditor = {
6433
- ...Editor,
6434
- isBlock: Editor.isBlock
6435
- };
6436
- const newLine = {
6437
- type: "paragraph",
6438
- children: [{
6439
- text: "",
6440
- marks: []
6441
- }]
6442
- };
6443
- const isLastChildBlankText = (listChildren) => {
6444
- if (listChildren.length === 1) return (listChildren.at(-1)?.text)?.trim() === "";
6445
- return listChildren.find((el) => el.type === "link")?.children[0]?.text?.trim() === "";
6446
- };
6447
- const handleListEscape = (editor) => {
6448
- const { selection } = editor;
6449
- const textIsNotSelected = selection && Range.isCollapsed(selection);
6450
- const selectedElement = editor.children[selection.anchor.path[0]];
6451
- const isList = selectedElement.type === "bulleted-list" || selectedElement.type === "numbered-list";
6452
- const blockAbove = OverriddenEditor.above(editor, { match: (node) => Element.isElement(node) && OverriddenEditor.isBlock(editor, node) });
6453
- if ((textIsNotSelected ?? false) && isList && isLastChildBlankText(blockAbove[0].children)) {
6454
- Transforms.removeNodes(editor, { hanging: true });
6455
- Transforms.insertNodes(editor, newLine);
6456
- Transforms.unwrapNodes(editor, {
6457
- match: ({ type }) => type === "bulleted-list" || type === "numbered-list",
6458
- all: true,
6459
- split: true
6460
- });
6461
- }
6462
- };
6463
- //#endregion
6464
- //#region src/components/RichTextEditor/utilities/rteFormatTypes.ts
6465
- const rteFormatTypes = Object.freeze({
6466
- BOLD: "BOLD",
6467
- ITALIC: "ITALIC",
6468
- UNDERLINE: "UNDERLINE",
6469
- STRIKETHROUGH: "STRIKETHROUGH",
6470
- HEADING_1: "HEADING_1",
6471
- HEADING_2: "HEADING_2",
6472
- BLOCKQUOTE: "BLOCKQUOTE",
6473
- NUMBERED_LIST: "NUMBERED_LIST",
6474
- BULLETED_LIST: "BULLETED_LIST",
6475
- LINK: "LINK",
6476
- IMAGE: "IMAGE"
6477
- });
6478
- //#endregion
6479
- //#region src/components/RichTextEditor/EditorButtons.tsx
6480
- const ButtonContainer = styled.div`
6481
- background: white;
6482
- border-bottom: 1px solid ${({ theme }) => theme.color.grey400};
6483
- display: flex;
6484
- gap: ${({ theme }) => theme.spacing.space02};
6485
- padding: ${({ theme }) => theme.spacing.space02} 0;
6486
- position: sticky;
6487
- top: 0;
6488
-
6489
- /*
6490
- * needs a stacking context to stay above RTE content
6491
- * did not add to theme because it doesn't interact with any other components
6492
- */
6493
- z-index: 1;
6494
- `;
6495
- const EditorButton = ({ format = "", icon, disabled = false, onCustomClick, buttonType }) => {
6496
- const editor = useSlate();
6497
- const activeButtonColor = useThemeColor("brandBlue500");
6498
- const isActive = buttonType === "block" ? isBlockActive(editor, format) : isMarkActive(editor, format);
6499
- const handleClick = (event) => {
6500
- event.preventDefault();
6501
- if (buttonType === "block") toggleBlock(editor, format);
6502
- else toggleMark(editor, format);
6503
- if (onCustomClick) onCustomClick(event);
6504
- };
6505
- return /* @__PURE__ */ jsx(IconButton, {
6506
- "aria-pressed": isActive,
6507
- colorOverride: isActive ? activeButtonColor : void 0,
6508
- disabled,
6509
- icon,
6510
- label: format,
6511
- onClick: handleClick,
6512
- preventTooltip: true
6513
- });
6514
- };
6515
- const getSelectedText = (editor) => {
6516
- if (!editor.selection) return "";
6517
- const nodeFragment = Node.fragment(editor, editor.selection);
6518
- if (!nodeFragment[0]) return "";
6519
- return Node.string(nodeFragment[0]);
6520
- };
6521
- const noTextSelected = (editor) => {
6522
- return getSelectedText(editor).trim() === "";
6523
- };
6524
- const DEFAULT_ENABLED_FORMATS = [
6525
- "BOLD",
6526
- "ITALIC",
6527
- "HEADING_1",
6528
- "LINK",
6529
- "BULLETED_LIST",
6530
- "IMAGE"
6531
- ];
6532
- const EditorButtons = ({ enabledFormats = DEFAULT_ENABLED_FORMATS, disabled = false }) => {
6533
- const editor = useSlate();
6534
- return /* @__PURE__ */ jsxs(ButtonContainer, { children: [
6535
- enabledFormats.includes(rteFormatTypes.BOLD) && /* @__PURE__ */ jsx(EditorButton, {
6536
- buttonType: "mark",
6537
- disabled,
6538
- format: "bold",
6539
- icon: /* @__PURE__ */ jsx(Icon$1, { type: "bold" })
6540
- }),
6541
- enabledFormats.includes(rteFormatTypes.ITALIC) && /* @__PURE__ */ jsx(EditorButton, {
6542
- buttonType: "mark",
6543
- disabled,
6544
- format: "italic",
6545
- icon: /* @__PURE__ */ jsx(Icon$1, { type: "italic" })
6546
- }),
6547
- enabledFormats.includes(rteFormatTypes.HEADING_1) && /* @__PURE__ */ jsx(EditorButton, {
6548
- buttonType: "block",
6549
- disabled,
6550
- format: "heading-one",
6551
- icon: /* @__PURE__ */ jsx(Icon$1, { type: "heading" })
6552
- }),
6553
- enabledFormats.includes(rteFormatTypes.HEADING_2) && /* @__PURE__ */ jsx(EditorButton, {
6554
- buttonType: "block",
6555
- disabled,
6556
- format: "heading-two",
6557
- icon: /* @__PURE__ */ jsx(Icon$1, { type: "heading-two" })
6558
- }),
6559
- enabledFormats.includes(rteFormatTypes.BULLETED_LIST) && /* @__PURE__ */ jsx(EditorButton, {
6560
- buttonType: "block",
6561
- disabled,
6562
- format: "bulleted-list",
6563
- icon: /* @__PURE__ */ jsx(Icon$1, { type: "bulleted-list" })
6564
- }),
6565
- enabledFormats.includes(rteFormatTypes.NUMBERED_LIST) && /* @__PURE__ */ jsx(EditorButton, {
6566
- buttonType: "block",
6567
- disabled,
6568
- format: "numbered-list",
6569
- icon: /* @__PURE__ */ jsx(Icon$1, { type: "numbered-list" })
6570
- }),
6571
- enabledFormats.includes(rteFormatTypes.BLOCKQUOTE) && /* @__PURE__ */ jsx(EditorButton, {
6572
- buttonType: "block",
6573
- disabled,
6574
- format: "blockquote",
6575
- icon: /* @__PURE__ */ jsx(Icon$1, { type: "block-quote" })
6576
- }),
6577
- enabledFormats.includes(rteFormatTypes.UNDERLINE) && /* @__PURE__ */ jsx(EditorButton, {
6578
- buttonType: "mark",
6579
- disabled,
6580
- format: "underline",
6581
- icon: /* @__PURE__ */ jsx(Icon$1, { type: "underline" })
6582
- }),
6583
- enabledFormats.includes(rteFormatTypes.STRIKETHROUGH) && /* @__PURE__ */ jsx(EditorButton, {
6584
- buttonType: "mark",
6585
- disabled,
6586
- format: "strikethrough",
6587
- icon: /* @__PURE__ */ jsx(Icon$1, { type: "strikethrough" })
6588
- }),
6589
- enabledFormats.includes(rteFormatTypes.LINK) && /* @__PURE__ */ jsx(EditorButton, {
6590
- buttonType: "mark",
6591
- disabled: disabled || noTextSelected(editor),
6592
- format: "link",
6593
- icon: /* @__PURE__ */ jsx(Icon$1, { type: "link" }),
6594
- onCustomClick: (event) => {
6595
- event.preventDefault();
6596
- insertLink(editor);
6597
- }
6598
- }),
6599
- enabledFormats.includes(rteFormatTypes.IMAGE) && /* @__PURE__ */ jsx(EditorButton, {
6600
- buttonType: "block",
6601
- disabled,
6602
- format: "image",
6603
- icon: /* @__PURE__ */ jsx(Icon$1, { type: "image" }),
6604
- onCustomClick: (event) => {
6605
- event.preventDefault();
6606
- const promptUserForImageUrl = prompt("Enter the URL of the image:");
6607
- if (!isNonEmptyString(promptUserForImageUrl)) return;
6608
- insertImage(editor, promptUserForImageUrl);
6609
- }
6610
- })
6611
- ] });
6612
- };
6613
- //#endregion
6614
- //#region src/components/RichTextEditor/Element.tsx
6615
- const Wrapper$1 = styled.span`
6616
- display: inline-block;
6617
- user-select: none;
6618
- `;
6619
- const Image$1 = styled.img`
6620
- box-shadow: ${({ selected, focused, theme }) => selected && focused ? `0 0 0 3px ${theme.color.brandBlue500}` : "none"};
6621
- max-height: 10em;
6622
- max-width: 100%;
6623
- user-select: none;
6624
- `;
6625
- const listStyle = css`
6626
- padding: 0 ${({ theme }) => theme.spacing.space05};
6627
-
6628
- li {
6629
- font-size: 14px;
6630
- font-style: normal;
6631
- font-weight: 400;
6632
- margin: ${({ theme }) => `${theme.spacing.space02} 0`};
6633
- }
6634
- `;
6635
- const EditorOrderedList = styled.ol`
6636
- ${listStyle}
6637
- `;
6638
- const EditorUnorderedList = styled.ul`
6639
- ${listStyle}
6640
- `;
6641
- const headerStyle = css`
6642
- font-weight: 500;
6643
- `;
6644
- const EditorHeading1 = styled.h1`
6645
- ${headerStyle}
6646
- font-size: 18px;
6647
- `;
6648
- const EditorHeading2 = styled.h2`
6649
- ${headerStyle}
6650
- font-size: 16px;
6651
- `;
6652
- const EditorHeading3 = styled.h3`
6653
- ${headerStyle}
6654
- font-size: 14px;
6655
- `;
6656
- const EditorParagraph = styled.p`
6657
- font-weight: 400;
6658
- `;
6659
- const EditorLink = styled.a`
6660
- color: ${({ theme }) => theme.color.brandBlue500};
6661
- font-weight: 300;
6662
- `;
6663
- const EditorSpan = styled.span`
6664
- font-weight: 400;
6665
- `;
6666
- const Element$1 = ({ attributes, children, element }) => {
6667
- const selected = useSelected();
6668
- const focused = useFocused();
6669
- switch (element.type) {
6670
- case "span": return /* @__PURE__ */ jsx(EditorSpan, {
6671
- ...attributes,
6672
- children
6673
- });
6674
- case "blockquote": return /* @__PURE__ */ jsx("blockquote", {
6675
- ...attributes,
6676
- children
6677
- });
6678
- case "bulleted-list": return /* @__PURE__ */ jsx(EditorUnorderedList, {
6679
- ...attributes,
6680
- children
6681
- });
6682
- case "heading-one": return /* @__PURE__ */ jsx(EditorHeading1, {
6683
- ...attributes,
6684
- children
6685
- });
6686
- case "heading-two": return /* @__PURE__ */ jsx(EditorHeading2, {
6687
- ...attributes,
6688
- children
6689
- });
6690
- case "heading-three":
6691
- case "heading-four":
6692
- case "heading-five":
6693
- case "heading-six": return /* @__PURE__ */ jsx(EditorHeading3, {
6694
- ...attributes,
6695
- children
6696
- });
6697
- case "list-item": return /* @__PURE__ */ jsx("li", {
6698
- ...attributes,
6699
- children
6700
- });
6701
- case "numbered-list": return /* @__PURE__ */ jsx(EditorOrderedList, {
6702
- ...attributes,
6703
- children
6704
- });
6705
- case "image": return /* @__PURE__ */ jsxs(Wrapper$1, {
6706
- ...attributes,
6707
- children: [/* @__PURE__ */ jsx(Wrapper$1, {
6708
- contentEditable: false,
6709
- children: /* @__PURE__ */ jsx(Image$1, {
6710
- alt: "",
6711
- contentEditable: false,
6712
- focused,
6713
- selected,
6714
- src: element.url
6715
- })
6716
- }), children]
6717
- });
6718
- case "link": return /* @__PURE__ */ jsx(EditorLink, {
6719
- ...attributes,
6720
- href: element.url,
6721
- rel: "noopener noreferrer",
6722
- target: "_blank",
6723
- children
6724
- });
6725
- case "code": return /* @__PURE__ */ jsx("code", {
6726
- ...attributes,
6727
- children
6728
- });
6729
- case void 0:
6730
- default: return /* @__PURE__ */ jsx(EditorParagraph, {
6731
- ...attributes,
6732
- children
6733
- });
6734
- }
6735
- };
6736
- //#endregion
6737
- //#region src/components/RichTextEditor/Leaf.tsx
6738
- const Leaf = ({ attributes, children, leaf }) => {
6739
- let kids = children;
6740
- if (isNotNil(leaf.bold)) kids = /* @__PURE__ */ jsx("strong", { children: kids });
6741
- if (isNotNil(leaf.italic)) kids = /* @__PURE__ */ jsx("em", { children: kids });
6742
- if (isNotNil(leaf.underline)) kids = /* @__PURE__ */ jsx("u", { children: kids });
6743
- if (isNotNil(leaf.strikethrough)) kids = /* @__PURE__ */ jsx("s", { children: kids });
6744
- if (isNotNil(leaf.code)) kids = /* @__PURE__ */ jsx("code", { children: kids });
6745
- return /* @__PURE__ */ jsx("span", {
6746
- ...attributes,
6747
- children: kids
6748
- });
6749
- };
6750
- //#endregion
6751
- //#region src/private/helpers/escapeHtml/escapeHtml.ts
6752
- const matchHtmlRegExp = /["'&<>]/;
6753
- const doubleQuoteChar = 34;
6754
- const ampersandChar = 38;
6755
- const singleQuoteChar = 39;
6756
- const lessThanChar = 60;
6757
- const greaterThanChar = 62;
6758
- /**
6759
- * Handle special characters by escaping in the provided text string.
6760
- *
6761
- * @param {string} stringToEscape - the string to escape
6762
- * @return {string} - the escaped string
6763
- */
6764
- const escapeHtml = (stringToEscape) => {
6765
- const str = `${stringToEscape}`;
6766
- const match = matchHtmlRegExp.exec(str);
6767
- if (!match) return str;
6768
- let escape;
6769
- let html = "";
6770
- let index;
6771
- let lastIndex = 0;
6772
- for (index = match.index; index < str.length; index++) {
6773
- const charCode = str.codePointAt(index);
6774
- if (charCode === doubleQuoteChar) escape = "&quot;";
6775
- else if (charCode === ampersandChar) escape = "&amp;";
6776
- else if (charCode === singleQuoteChar) escape = "&#39;";
6777
- else if (charCode === lessThanChar) escape = "&lt;";
6778
- else if (charCode === greaterThanChar) escape = "&gt;";
6779
- else escape = "";
6780
- if (escape !== "") {
6781
- if (lastIndex !== index) html += str.slice(lastIndex, index);
6782
- lastIndex = index + 1;
6783
- html += escape;
6784
- }
6785
- }
6786
- return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
6787
- };
6788
- //#endregion
6789
- //#region src/components/RichTextEditor/serializers.ts
6790
- const emptyTextNode = { text: "" };
6791
- const rteIsNonImageNodeType = (node) => node.type !== "image";
6792
- const rteIsInvalidImage = (node) => node.type === "image" && node.url === void 0;
6793
- const rteHasOnlyOneChild = (node) => isNotNil(node.children) && node.children.length === 1;
6794
- const rteIsEmptyTextNode = (node) => Text$1.isText(node) && node.text?.trim() === "";
6795
- const rteIsOnlyChildWithEmptyText = (node) => rteHasOnlyOneChild(node) && rteIsEmptyTextNode(node.children[0]);
6796
- const isValueNull = (value) => value.every((val) => isNil(val));
6797
- const sanitizedValue = (value) => isValueNull(value) ? null : value.join("");
6798
- const addAttrsToChildren = (child, attrs) => {
6799
- const childCopy = child;
6800
- if (childCopy.children) childCopy.children = childCopy.children.map((item) => {
6801
- return {
6802
- ...addAttrsToChildren(item, attrs),
6803
- ...attrs
6804
- };
6805
- });
6806
- return childCopy;
6807
- };
6808
- const serializeText = (textNode) => {
6809
- const newStringArr = [escapeHtml(textNode.text)];
6810
- if (isNotNil(textNode.bold) && textNode.bold) {
6811
- newStringArr.push("</strong>");
6812
- newStringArr.unshift("<strong>");
6813
- }
6814
- if (isNotNil(textNode.italic) && textNode.italic) {
6815
- newStringArr.push("</em>");
6816
- newStringArr.unshift("<em>");
6817
- }
6818
- if (isNotNil(textNode.underline) && textNode.underline) {
6819
- newStringArr.push("</u>");
6820
- newStringArr.unshift("<u>");
6821
- }
6822
- if (isNotNil(textNode.strikethrough) && textNode.strikethrough) {
6823
- newStringArr.push("</s>");
6824
- newStringArr.unshift("<s>");
6825
- }
6826
- if (isNotNil(textNode.code) && textNode.code) {
6827
- newStringArr.push("</code>");
6828
- newStringArr.unshift("<code>");
6829
- }
6830
- return newStringArr.join("");
6831
- };
6832
- const serializeNode = (node) => {
6833
- if (rteIsNonImageNodeType(node) && rteIsOnlyChildWithEmptyText(node) || rteIsInvalidImage(node)) return null;
6834
- if (Text$1.isText(node)) return serializeText(node);
6835
- const children = isNotNil(node.children) ? node.children.map((node_) => serializeNode(node_)).join("") : "";
6836
- switch (node.type) {
6837
- case "span": return `<span>${children}</span>`;
6838
- case "blockquote": return `<blockquote>${children}</blockquote>`;
6839
- case "paragraph": return `<p>${children}</p>`;
6840
- case "heading-one": return `<h1>${children}</h1>`;
6841
- case "heading-two": return `<h2>${children}</h2>`;
6842
- case "heading-three": return `<h3>${children}</h3>`;
6843
- case "heading-four": return `<h4>${children}</h4>`;
6844
- case "heading-five": return `<h5>${children}</h5>`;
6845
- case "heading-six": return `<h6>${children}</h6>`;
6846
- case "link": return `<a rel="noopener noreferrer" target="_blank" href="${escapeHtml(node.url)}">${children}</a>`;
6847
- case "numbered-list": return `<ol>${children}</ol>`;
6848
- case "bulleted-list": return `<ul>${children}</ul>`;
6849
- case "list-item": return `<li>${children}</li>`;
6850
- case "image": return `<img src="${escapeHtml(node.url)}" />`;
6851
- case "code": return `<code>${children}</code>`;
6852
- case void 0:
6853
- default: return children;
6854
- }
6855
- };
6856
- const rteSerializeToHTML = (value) => {
6857
- const mappedValue = value.map((node) => serializeNode(node));
6858
- return sanitizedValue(mappedValue);
6859
- };
6860
- const ELEMENT_TAGS = {
6861
- SPAN: () => ({ type: "span" }),
6862
- A: (el) => ({
6863
- type: "link",
6864
- url: el.getAttribute("href")
6865
- }),
6866
- BLOCKQUOTE: () => ({ type: "blockquote" }),
6867
- H1: () => ({ type: "heading-one" }),
6868
- H2: () => ({ type: "heading-two" }),
6869
- H3: () => ({ type: "heading-three" }),
6870
- H4: () => ({ type: "heading-four" }),
6871
- H5: () => ({ type: "heading-five" }),
6872
- H6: () => ({ type: "heading-six" }),
6873
- LI: () => ({ type: "list-item" }),
6874
- OL: () => ({ type: "numbered-list" }),
6875
- P: () => ({ type: "paragraph" }),
6876
- UL: () => ({ type: "bulleted-list" }),
6877
- IMG: (el) => ({
6878
- type: "image",
6879
- url: el.getAttribute("src")
6880
- }),
6881
- CODE: () => ({ type: "code" })
6882
- };
6883
- const TEXT_TAGS = {
6884
- DEL: () => ({ strikethrough: true }),
6885
- S: () => ({ strikethrough: true }),
6886
- EM: () => ({ italic: true }),
6887
- I: () => ({ italic: true }),
6888
- STRONG: () => ({ bold: true }),
6889
- U: () => ({ underline: true }),
6890
- CODE: () => ({ code: true })
6891
- };
6892
- const isTextNode = (el) => el.nodeType === 3;
6893
- const isElement = (el) => el.nodeType === 1;
6894
- const isCodeBlock = (element) => element.nodeName === "CODE";
6895
- const isInlineCodeBlock = (element, elementChildren) => isCodeBlock(element) && isNotNil(elementChildren[0]) && !/\n/.test(elementChildren[0]);
6896
- const shouldCreateBlock = (el, children) => !isInlineCodeBlock(el, children) && isNotNil(ELEMENT_TAGS[el.nodeName]);
6897
- const shouldCreateText = (el, children) => isInlineCodeBlock(el, children) || isNotNil(TEXT_TAGS[el.nodeName]);
6898
- const htmlChildIsEmptyText = (child) => isNotNil(child) && !isString(child) && child.text?.trim() === "";
6899
- const createEditorBlockElements = (children, el) => {
6900
- const { nodeName } = el;
6901
- if (nodeName !== "IMG" && children.length === 1 && !isString(children[0]) && isNotNil(children[0].text) && children[0].text?.trim() === "") return jsx$1("element", ELEMENT_TAGS.P(), emptyTextNode);
6902
- const attrs = ELEMENT_TAGS[nodeName](el);
6903
- return jsx$1("element", attrs, children);
6904
- };
6905
- const createEditorTextElements = (children, el) => {
6906
- const { nodeName } = el;
6907
- const attrs = TEXT_TAGS[nodeName]();
6908
- return children.map((child) => {
6909
- if (!isString(child) && isNotNil(child) && isNotNil(child.children)) return addAttrsToChildren(child, attrs);
6910
- if (htmlChildIsEmptyText(child)) return jsx$1("text", {}, emptyTextNode);
6911
- return jsx$1("text", attrs, child);
6912
- });
6913
- };
6914
- const blockWithOnlyTextChildren = (el) => el.nodeName === "BLOCKQUOTE" || el.nodeName === "OL" || el.nodeName === "UL";
6915
- const getNodeChildren = (el, mapper) => {
6916
- let children = [];
6917
- if (isCodeBlock(el)) children = [...el.childNodes].map((node) => {
6918
- if (isTextNode(node)) return node.textContent;
6919
- return node instanceof globalThis.Element ? node.outerHTML : void 0;
6920
- });
6921
- else if (blockWithOnlyTextChildren(el)) children = [...el.childNodes].filter((node) => node.textContent?.trim() !== "").flatMap((node) => mapper(node));
6922
- else children = [...el.childNodes].flatMap((node) => mapper(node));
6923
- return children;
6924
- };
6925
- const deserializeHTMLNode = (el) => {
6926
- if (isTextNode(el)) {
6927
- if (el.nodeValue?.trim() === "") return null;
6928
- return el.textContent;
6929
- }
6930
- if (el.nodeName === "BR") return "\n";
6931
- if (!isElement(el)) return null;
6932
- const children = getNodeChildren(el, deserializeHTMLNode);
6933
- const filteredChildren = children.filter((child) => child === null || typeof child === "string" || typeof child === "object" && ("text" in child || "type" in child));
6934
- const safeChildren = filteredChildren.length > 0 && filteredChildren[0] != null ? filteredChildren : [emptyTextNode];
6935
- if (el.nodeName === "BODY") return jsx$1("fragment", {}, safeChildren);
6936
- if (shouldCreateBlock(el, children)) return createEditorBlockElements(safeChildren, el);
6937
- if (shouldCreateText(el, safeChildren)) return createEditorTextElements(safeChildren, el);
6938
- return children;
6939
- };
6940
- const rteDeserializeHTML = (htmlString) => {
6941
- if (!htmlString) return;
6942
- const parsedEl = new DOMParser().parseFromString(htmlString, "text/html").body;
6943
- const fragment = deserializeHTMLNode(parsedEl);
6944
- if (isNotNil(fragment) && isArray(fragment) && isNotNil(fragment[0]) && isNotNil(fragment[0].text)) return [{
6945
- type: "paragraph",
6946
- children: [{ text: fragment[0].text }]
6947
- }];
6948
- const lastNodeOfFragment = isArray(fragment) ? fragment.at(-1) : void 0;
6949
- if (isArray(fragment) && Element.isElement(lastNodeOfFragment) && lastNodeOfFragment.type !== "paragraph") return [...fragment, {
6950
- type: "paragraph",
6951
- children: [{ text: "" }]
6952
- }];
6953
- return fragment;
6954
- };
6955
- //#endregion
6956
- //#region src/components/RichTextEditor/utilities/useExternalValueSync.ts
6957
- const defaultValue = [{
6958
- type: "paragraph",
6959
- children: [{ text: "" }]
6960
- }];
6961
- const ECHO_WINDOW_MS = 1e4;
6962
- const MAX_PENDING_ECHOES = 1e3;
6963
- const prunePendingEchoes = (pending, now) => {
6964
- for (const [html, emittedAt] of pending) {
6965
- if (now - emittedAt <= ECHO_WINDOW_MS && pending.size <= MAX_PENDING_ECHOES) return;
6966
- pending.delete(html);
6967
- }
6968
- };
6969
- const isTextValid = (rteValue) => {
6970
- if (isNil(rteValue) || isNil(rteValue[0]) || isNil(rteValue[0].children)) return false;
6971
- const { text } = rteValue[0].children[0];
6972
- return isNonEmptyString(text);
6973
- };
6974
- /**
6975
- * Keeps a Slate editor in sync with a controlled `value` prop without clobbering
6976
- * in-progress typing.
6977
- *
6978
- * Controlled parents echo every `onChange` back as `value`. When that echo is
6979
- * delayed (async store, debounced save, slow render), the prop can arrive
6980
- * holding an *older* editor state than the one the user is typing into. The
6981
- * previous implementation treated any mismatch as an external update, reset
6982
- * `editor.children` to the stale value and nulled the selection — dropping
6983
- * characters and sending the caret to the start of the document.
6984
- *
6985
- * Here, every state emitted through `onChange` is remembered for
6986
- * `ECHO_WINDOW_MS`. A `value` that matches one of those states is an echo
6987
- * (current or stale, in any order, any number of times, and even after an
6988
- * external update) and is ignored. Anything else is a genuine external update
6989
- * and is applied, as before.
6990
- *
6991
- * Returns the `onChange` handler to pass to `<Slate>`.
6992
- *
6993
- * This is directly from the Slate.js docs on how to update slate outside of onChange:
6994
- * If you want to update the editor's content in response to events from outside of Slate, you
6995
- * need to change the children property directly. The simplest way is to replace the value of
6996
- * editor.children editor.children = newValue and trigger a re-rendering (e.g. by calling
6997
- * editor.onChange()).
6998
- * More info here: https://docs.slatejs.org/walkthroughs/06-saving-to-a-database
6999
- */
7000
- const useExternalValueSync = ({ editor, value, useExternalValue, onChange }) => {
7001
- const lastSeenValueHtml = useRef(rteSerializeToHTML(value));
7002
- const lastSeenUseExternalValue = useRef(useExternalValue);
7003
- const pendingEchoes = useRef(/* @__PURE__ */ new Map());
7004
- const handleChange = useCallback((nodes) => {
7005
- const html = rteSerializeToHTML(nodes);
7006
- const pending = pendingEchoes.current;
7007
- const now = Date.now();
7008
- pending.delete(html);
7009
- pending.set(html, now);
7010
- prunePendingEchoes(pending, now);
7011
- if (isNotNil(onChange)) onChange(nodes);
7012
- }, [onChange]);
7013
- useEffect(() => {
7014
- const valueHtml = rteSerializeToHTML(value);
7015
- if (valueHtml === lastSeenValueHtml.current && useExternalValue === lastSeenUseExternalValue.current) return;
7016
- lastSeenValueHtml.current = valueHtml;
7017
- lastSeenUseExternalValue.current = useExternalValue;
7018
- const pending = pendingEchoes.current;
7019
- prunePendingEchoes(pending, Date.now());
7020
- if (pending.has(valueHtml)) return;
7021
- /** if we have an external value and the text editor is not empty (and therefore valid), we can safely update the editor. */
7022
- if (!(isEqual(value, defaultValue) || isTextValid(value) && useExternalValue)) return;
7023
- if (valueHtml === rteSerializeToHTML(editor.children)) return;
7024
- editor.children = value;
7025
- editor.selection = null;
7026
- editor.onChange();
7027
- }, [
7028
- value,
7029
- editor,
7030
- useExternalValue
7031
- ]);
7032
- return handleChange;
7033
- };
7034
- //#endregion
7035
- //#region src/components/RichTextEditor/RichTextEditor.tsx
7036
- const EditableWrapper = styled(Editable)`
7037
- color: ${({ theme }) => theme.color.grey900};
7038
- outline: none; /* prevent blue accessibility outline from appearing on focus */
7039
- `;
7040
- const defaultHeight = "300px";
7041
- const EditorWrapper = styled.div`
7042
- background: white;
7043
- border: 1px solid ${({ theme }) => theme.color.grey400};
7044
- border-radius: 4px;
7045
- cursor: ${({ disabled }) => disabled ? "not-allowed" : "auto"};
7046
- font-size: 14px;
7047
- font-weight: ${({ theme }) => theme.font.weight.medium};
7048
- height: ${({ height }) => height ?? defaultHeight};
7049
- overflow: auto;
7050
- padding: 0 ${({ theme }) => theme.spacing.space04};
7051
-
7052
- strong {
7053
- font-weight: ${({ theme }) => theme.font.weight.bold};
7054
- }
7055
- `;
7056
- const HOTKEYS = {
7057
- "mod+b": "bold",
7058
- "mod+i": "italic",
7059
- "mod+u": "underline"
7060
- };
7061
- const RichTextEditor = ({ enabledFormats = Object.values(rteFormatTypes), value = defaultValue, onChange, onBlur, placeholder = "Enter some rich text...", disabled = false, ariaLabelledBy, useExternalValue, "data-testid": dataTestId = "vhs-rich-text-editor", height, ...otherProps }) => {
7062
- const renderElement = useCallback((props) => /* @__PURE__ */ jsx(Element$1, { ...props }), []);
7063
- const renderLeaf = useCallback((props) => /* @__PURE__ */ jsx(Leaf, { ...props }), []);
7064
- const editor = useMemo(() => {
7065
- const baseEditor = withReact(createEditor());
7066
- return withImages(withLinks(withHistory(baseEditor)));
7067
- }, []);
7068
- const handleChange = useExternalValueSync({
7069
- editor,
7070
- value,
7071
- useExternalValue,
7072
- onChange
7073
- });
7074
- const handleEditorBlur = (_event) => {
7075
- const updatedValue = editor.children;
7076
- if (isNotNil(onBlur)) onBlur(updatedValue);
7077
- };
7078
- const handleRemoveImageIfSelected = useCallback(() => {
7079
- const { selection } = editor;
7080
- if (isNil(selection) || isNil(selection.anchor.path[0])) return;
7081
- const selectedElement = editor.children[selection.anchor.path[0]];
7082
- if (Element.isElement(selectedElement) && selectedElement.type === "image") {
7083
- toggleBlock(editor, "image");
7084
- Transforms.removeNodes(editor, { at: selection });
7085
- Transforms.move(editor, { reverse: true });
7086
- const spanElement = editor.children.find((child) => Element.isElement(child) && child.type === "span");
7087
- if (Element.isElement(spanElement) && spanElement.type === "span" && isNotNil(spanElement.children) && isNotNil(spanElement.children[0]) && isNotNil(spanElement.children[0].text) && spanElement.children[0].text.trim() !== "") Transforms.setNodes(editor, { type: "paragraph" }, {
7088
- match: (node) => Element.isElement(node) && node.type === "span" && isNotNil(node.children) && Text$1.isText(node.children[0]) && isNotNil(node.children[0].text) && node.children[0].text.trim() !== "",
7089
- split: true,
7090
- mode: "highest"
7091
- });
7092
- }
7093
- }, [editor]);
7094
- return /* @__PURE__ */ jsx(EditorWrapper, {
7095
- "data-testid": dataTestId,
7096
- disabled,
7097
- height,
7098
- onClick: () => {
7099
- ReactEditor.focus(editor);
7100
- },
7101
- children: /* @__PURE__ */ jsxs(Slate, {
7102
- editor,
7103
- initialValue: value,
7104
- onChange: handleChange,
7105
- ...otherProps,
7106
- children: [/* @__PURE__ */ jsx(EditorButtons, {
7107
- disabled,
7108
- enabledFormats
7109
- }), /* @__PURE__ */ jsx(EditableWrapper, {
7110
- "aria-labelledby": ariaLabelledBy,
7111
- autoFocus: false,
7112
- "data-testid": "editor-content",
7113
- onBlur: handleEditorBlur,
7114
- onKeyDown: (event) => {
7115
- Object.keys(HOTKEYS).forEach((hotKey) => {
7116
- if (isHotkey(hotKey, event)) {
7117
- event.preventDefault();
7118
- toggleMark(editor, HOTKEYS[hotKey]);
7119
- }
7120
- });
7121
- if (event.key === "Enter" && !event.shiftKey) handleListEscape(editor);
7122
- if (event.key === "Backspace" || event.key === "Clear" || event.key === "Delete") handleRemoveImageIfSelected();
7123
- },
7124
- placeholder,
7125
- readOnly: disabled,
7126
- renderElement,
7127
- renderLeaf,
7128
- spellCheck: true
7129
- })]
7130
- })
7131
- });
7132
- };
7133
- RichTextEditor.displayName = "RichTextEditor_VHS";
7134
- //#endregion
7135
- //#region src/private/components/FormConnectorRichTextEditor/FormConnectorRichTextEditor.tsx
7136
- const Wrapper = styled.div`
7137
- margin-top: ${({ theme }) => theme.spacing.space02};
7138
- `;
7139
- const DEFAULT_LABEL_PROPS$2 = {};
7140
- const FormConnectorRichTextEditor = ({ field: { name, value, onChange }, form: { errors }, label, labelDescription, labelProps = DEFAULT_LABEL_PROPS$2, placeholder = "", disabled = false, enabledFormats = Object.values(rteFormatTypes), useExternalValue = false, height, ...otherProps }) => {
7141
- const [rteValue, setRTEValue] = useState(rteDeserializeHTML(coerceToString(value)));
7142
- const labelId = isNotUndefined(label) ? `${name}-label-id` : void 0;
7143
- useEffect(() => {
7144
- if (useExternalValue) setRTEValue(rteDeserializeHTML(coerceToString(value)));
7145
- }, [useExternalValue, value]);
7146
- return /* @__PURE__ */ jsx(FormFieldWrapper, {
7147
- disabled,
7148
- error: errors[name],
7149
- label,
7150
- labelDescription,
7151
- labelId,
7152
- labelProps,
7153
- name,
7154
- children: /* @__PURE__ */ jsx(Wrapper, {
7155
- "data-testid": `richTextEditor-${name}`,
7156
- children: /* @__PURE__ */ jsx(RichTextEditor, {
7157
- ariaLabelledBy: labelId,
7158
- disabled,
7159
- enabledFormats,
7160
- height,
7161
- onChange: (event) => {
7162
- setRTEValue(event);
7163
- const serializedValue = rteSerializeToHTML(event) ?? "";
7164
- onChange(name)(serializedValue);
7165
- },
7166
- placeholder,
7167
- useExternalValue,
7168
- value: rteValue,
7169
- ...otherProps
7170
- })
7171
- })
7172
- });
7173
- };
7174
- FormConnectorRichTextEditor.displayName = "FormConnectorRichTextEditor_VHS";
7175
- //#endregion
7176
- //#region src/components/Select/SelectStyledComponent.tsx
5883
+ // src/components/Select/SelectStyledComponent.tsx
7177
5884
  const focusStyle = css`
7178
5885
  border: 1px solid ${({ theme }) => theme.color.brandBlue500};
7179
5886
  `;
@@ -7230,8 +5937,7 @@ const SelectStyledComponent = styled.select`
7230
5937
  ${({ $hasError }) => $hasError && errorStyle}
7231
5938
  ${({ $forceState }) => $forceState === "focus" && focusStyle};
7232
5939
  `;
7233
- //#endregion
7234
- //#region src/components/Select/Select.tsx
5940
+ // src/components/Select/Select.tsx
7235
5941
  const getSvgColor = (theme, disabled, focused) => {
7236
5942
  if (disabled) return theme.color.grey300;
7237
5943
  if (focused) return theme.color.brandBlue500;
@@ -7315,10 +6021,9 @@ const Select = forwardRef(({ ariaLabel, disabled = false, forceState, fullWidth
7315
6021
  }), renderIcon(multiple)]
7316
6022
  }));
7317
6023
  Select.displayName = "Select_VHS";
7318
- //#endregion
7319
- //#region src/private/components/FormConnectorSelect/FormConnectorSelect.tsx
6024
+ // src/private/components/FormConnectorSelect/FormConnectorSelect.tsx
7320
6025
  const DEFAULT_LABEL_PROPS$1 = {};
7321
- const FormConnectorSelect = ({ disabled = false, field: { name, value, onChange, onBlur }, form: { errors }, label, labelDescription, labelProps = DEFAULT_LABEL_PROPS$1, options, placeholder, onChangeCustom, ...otherProps }) => {
6026
+ const FormConnectorSelect = ({ disabled = false, field: { name, value, onChange, onBlur }, form: { errors }, innerRef, label, labelDescription, labelProps = DEFAULT_LABEL_PROPS$1, options, placeholder, onChangeCustom, ...otherProps }) => {
7322
6027
  const getValue = (val) => {
7323
6028
  if (isNil(val)) return "";
7324
6029
  if (isBoolean(val)) return coerceToString(value);
@@ -7342,14 +6047,14 @@ const FormConnectorSelect = ({ disabled = false, field: { name, value, onChange,
7342
6047
  },
7343
6048
  options,
7344
6049
  placeholder,
6050
+ ref: innerRef,
7345
6051
  value: getValue(value),
7346
6052
  ...otherProps
7347
6053
  })
7348
6054
  });
7349
6055
  };
7350
6056
  FormConnectorSelect.displayName = "FormConnectorSelect_VHS";
7351
- //#endregion
7352
- //#region src/components/FormField/inputTypeMap.ts
6057
+ // src/components/FormField/inputTypeMap.ts
7353
6058
  const inputTypeMap = {
7354
6059
  checkbox: {
7355
6060
  component: "FormConnectorCheckboxGroup",
@@ -7410,14 +6115,9 @@ const inputTypeMap = {
7410
6115
  url: {
7411
6116
  component: "FormConnectorInput",
7412
6117
  inputType: "url"
7413
- },
7414
- richTextEditor: {
7415
- component: "FormConnectorRichTextEditor",
7416
- inputType: null
7417
6118
  }
7418
6119
  };
7419
- //#endregion
7420
- //#region src/components/FormField/FormField.tsx
6120
+ // src/components/FormField/FormField.tsx
7421
6121
  const FormFieldSet = styled.fieldset`
7422
6122
  border: 0;
7423
6123
  flex-grow: 1;
@@ -7441,8 +6141,7 @@ const fieldsMap = {
7441
6141
  FormConnectorInput,
7442
6142
  FormConnectorRadioGroup,
7443
6143
  FormConnectorSelect,
7444
- FormConnectorHidden,
7445
- FormConnectorRichTextEditor
6144
+ FormConnectorHidden
7446
6145
  };
7447
6146
  const FormField = forwardRef(({ resize = "vertical", customComponent, direction = "column", disabled = false, label, labelDescription, labelProps = DEFAULT_LABEL_PROPS, name = "", onChangeCustom, options, placeholder = null, type, ...otherProps }, ref) => /* @__PURE__ */ jsx(FormFieldSet, {
7448
6147
  disabled,
@@ -7467,8 +6166,7 @@ const FormField = forwardRef(({ resize = "vertical", customComponent, direction
7467
6166
  })
7468
6167
  }));
7469
6168
  FormField.displayName = "FormField_VHS";
7470
- //#endregion
7471
- //#region src/components/FullScreenModal/FullScreenModal.tsx
6169
+ // src/components/FullScreenModal/FullScreenModal.tsx
7472
6170
  const CloseButton$1 = styled(Button)`
7473
6171
  color: ${({ theme }) => theme.color.grey700};
7474
6172
  height: 42px;
@@ -7500,8 +6198,7 @@ const FullScreenModal = ({ content, toggle, backgroundColor, initialShownState =
7500
6198
  });
7501
6199
  };
7502
6200
  FullScreenModal.displayName = "FullScreenModal_VHS";
7503
- //#endregion
7504
- //#region src/components/Image/Image.tsx
6201
+ // src/components/Image/Image.tsx
7505
6202
  const getFillStyle = ($fillContainer) => {
7506
6203
  if ($fillContainer === "horizontal") return "width: 100%;";
7507
6204
  if ($fillContainer === "vertical") return "height: 100%;";
@@ -7525,8 +6222,7 @@ const Image = ({ src, alt, fill: fillContainer = false, fit: objFit, loading = "
7525
6222
  ...otherProps
7526
6223
  });
7527
6224
  Image.displayName = "Image_VHS";
7528
- //#endregion
7529
- //#region src/components/KeyboardShortcut/KeyboardShortcut.tsx
6225
+ // src/components/KeyboardShortcut/KeyboardShortcut.tsx
7530
6226
  const KeyboardShortcutComponent = styled.div`
7531
6227
  align-items: center;
7532
6228
  display: flex;
@@ -7605,8 +6301,7 @@ const KeyboardShortcut = ({ label, keyboardKeys, fullWidth = false, componentSty
7605
6301
  });
7606
6302
  };
7607
6303
  KeyboardShortcut.displayName = "KeyboardShortcut_VHS";
7608
- //#endregion
7609
- //#region src/components/LinkButton/LinkButton.tsx
6304
+ // src/components/LinkButton/LinkButton.tsx
7610
6305
  const isEnterOrSpace = (event) => event.key === "Enter" || event.key === " " || event.key === "Spacebar";
7611
6306
  const LinkButtonStyledComponent = styled.span`
7612
6307
  ${({ $noStyle }) => !$noStyle ? linkStyle : void 0};
@@ -7651,8 +6346,7 @@ const LinkButton = forwardRef(({ children, disabled = false, forceState, label,
7651
6346
  });
7652
6347
  });
7653
6348
  LinkButton.displayName = "LinkButton_VHS";
7654
- //#endregion
7655
- //#region src/components/List/ListItem.tsx
6349
+ // src/components/List/ListItem.tsx
7656
6350
  const ListItemComponent = styled.li`
7657
6351
  margin-bottom: ${({ theme }) => theme.spacing.space02};
7658
6352
  `;
@@ -7661,8 +6355,7 @@ const ListItem = ({ children }) => {
7661
6355
  return /* @__PURE__ */ jsx(ListItemComponent, { children });
7662
6356
  };
7663
6357
  ListItem.displayName = "ListItem_VHS";
7664
- //#endregion
7665
- //#region src/components/List/List.tsx
6358
+ // src/components/List/List.tsx
7666
6359
  const spacesStyle = css`
7667
6360
  overflow: hidden;
7668
6361
  padding-left: 0;
@@ -7779,8 +6472,7 @@ const List = ({ children, items, variant, ...otherProps }) => {
7779
6472
  return null;
7780
6473
  };
7781
6474
  List.displayName = "List_VHS";
7782
- //#endregion
7783
- //#region src/components/Menu/menuContentCss.ts
6475
+ // src/components/Menu/menuContentCss.ts
7784
6476
  const gutterWidth = "8px";
7785
6477
  const open = keyframes`
7786
6478
  from {
@@ -7832,8 +6524,7 @@ const menuContentCss = css`
7832
6524
  margin: ${({ theme }) => theme.spacing.space02} 0;
7833
6525
  }
7834
6526
  `;
7835
- //#endregion
7836
- //#region src/components/Menu/Menu.tsx
6527
+ // src/components/Menu/Menu.tsx
7837
6528
  const MenuContent = styled(DropdownMenuContent)`
7838
6529
  ${menuContentCss}
7839
6530
  `;
@@ -7865,8 +6556,7 @@ const Menu = ({ align = "start", children, trigger, label, isOpen, triggerProps
7865
6556
  });
7866
6557
  };
7867
6558
  Menu.displayName = "Menu_VHS";
7868
- //#endregion
7869
- //#region src/components/Menu/MenuItem.tsx
6559
+ // src/components/Menu/MenuItem.tsx
7870
6560
  const hoverDarken = "0.04";
7871
6561
  const focusDarken = "0.08";
7872
6562
  const dangerousMenuItemStyles$1 = css`
@@ -8058,8 +6748,7 @@ const SubMenuTrigger = ({ children, label, badge, description, icon, onClick })
8058
6748
  })] })
8059
6749
  });
8060
6750
  };
8061
- //#endregion
8062
- //#region src/components/Menu/MenuLabel.tsx
6751
+ // src/components/Menu/MenuLabel.tsx
8063
6752
  const StyledMenuLabel = styled(DropdownMenuLabel)`
8064
6753
  /* TODO - this should be in theme */
8065
6754
  padding: 8px;
@@ -8076,8 +6765,7 @@ const MenuLabel = ({ children, ...props }) => {
8076
6765
  })
8077
6766
  });
8078
6767
  };
8079
- //#endregion
8080
- //#region src/components/Menu/SubMenu.tsx
6768
+ // src/components/Menu/SubMenu.tsx
8081
6769
  const SubMenuContent = styled(DropdownMenuSubContent)`
8082
6770
  ${menuContentCss}
8083
6771
 
@@ -8105,8 +6793,7 @@ const SubMenu = ({ label, icon, description, children }) => {
8105
6793
  }
8106
6794
  }), /* @__PURE__ */ jsx(StyledMobileSubMenuItems, { children: isExpanded ? children : null })] });
8107
6795
  };
8108
- //#endregion
8109
- //#region src/private/hooks/useOnClickOutside/useOnClickOutside.ts
6796
+ // src/private/hooks/useOnClickOutside/useOnClickOutside.ts
8110
6797
  const useOnClickOutside = (ref, handler) => {
8111
6798
  useEffect(() => {
8112
6799
  const listener = (event) => {
@@ -8121,8 +6808,7 @@ const useOnClickOutside = (ref, handler) => {
8121
6808
  };
8122
6809
  }, [ref, handler]);
8123
6810
  };
8124
- //#endregion
8125
- //#region src/private/components/Menu/Menu.tsx
6811
+ // src/private/components/Menu/Menu.tsx
8126
6812
  const MENU_WIDTH_OPTIONS = /* @__PURE__ */ new Set(["fullWidth", "maxItem"]);
8127
6813
  const GUTTER_WIDTH = "8px";
8128
6814
  const FOCUS_DARKEN = "0.08";
@@ -8279,8 +6965,7 @@ const Menu$1 = forwardRef(({ items, menuHeader, width = "fullWidth", onClick, on
8279
6965
  });
8280
6966
  });
8281
6967
  Menu$1.displayName = "Menu_VHS";
8282
- //#endregion
8283
- //#region src/private/hooks/useBoolean/useBoolean.ts
6968
+ // src/private/hooks/useBoolean/useBoolean.ts
8284
6969
  const useBoolean = (initialValue = false) => {
8285
6970
  const [value, setValue] = useState(initialValue);
8286
6971
  return [
@@ -8291,8 +6976,7 @@ const useBoolean = (initialValue = false) => {
8291
6976
  setValue
8292
6977
  ];
8293
6978
  };
8294
- //#endregion
8295
- //#region src/components/MenuButton/MenuHeader.tsx
6979
+ // src/components/MenuButton/MenuHeader.tsx
8296
6980
  const HeaderAndButton = styled.div`
8297
6981
  align-items: center;
8298
6982
  display: flex;
@@ -8307,8 +6991,7 @@ const HeaderText = styled.span`
8307
6991
  line-height: 24px;
8308
6992
  `;
8309
6993
  const MenuHeader = ({ label, onCloseClick, overrideMenuHeader }) => /* @__PURE__ */ jsxs(HeaderAndButton, { children: [isNotNil(overrideMenuHeader) ? overrideMenuHeader : /* @__PURE__ */ jsx(HeaderText, { children: label || "Menu" }), /* @__PURE__ */ jsx(ModalCloseButton$1, { onClick: onCloseClick })] });
8310
- //#endregion
8311
- //#region src/components/MenuButton/MenuButton.tsx
6994
+ // src/components/MenuButton/MenuButton.tsx
8312
6995
  const MARGIN_BETWEEN_BUTTON_AND_MENU = 8;
8313
6996
  const menuPositionAboveCss = css`
8314
6997
  bottom: 0;
@@ -8421,8 +7104,7 @@ const MenuButton = ({ label, menuAlignment = "right", menuItems, menuPosition =
8421
7104
  ] });
8422
7105
  };
8423
7106
  MenuButton.displayName = "MenuButton_VHS";
8424
- //#endregion
8425
- //#region src/private/hooks/useFocusTrap/helpers.ts
7107
+ // src/private/hooks/useFocusTrap/helpers.ts
8426
7108
  const FOCUSABLE_ELEMENT_SELECTORS = "a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, [tabindex=\"0\"], [contenteditable]";
8427
7109
  const isHiddenElement = (element) => {
8428
7110
  const { display, visibility } = window.getComputedStyle(element);
@@ -8524,8 +7206,7 @@ const createAriaHider = (containerNode, selector = "body > :not(script)") => {
8524
7206
  });
8525
7207
  };
8526
7208
  };
8527
- //#endregion
8528
- //#region src/private/hooks/useFocusTrap/useFocusTrap.ts
7209
+ // src/private/hooks/useFocusTrap/useFocusTrap.ts
8529
7210
  const isRef = (val) => {
8530
7211
  return val !== null && typeof val === "object" && "current" in val;
8531
7212
  };
@@ -8579,8 +7260,7 @@ const useFocusTrap = (active = true, options = {}) => {
8579
7260
  }, [active]);
8580
7261
  return setRef;
8581
7262
  };
8582
- //#endregion
8583
- //#region src/private/hooks/useEvent/useEvent.ts
7263
+ // src/private/hooks/useEvent/useEvent.ts
8584
7264
  const isEventTargetSupported = (eventTarget) => Boolean(typeof eventTarget === "object" && eventTarget?.addEventListener);
8585
7265
  const useEvent = (eventName, eventHandler, eventTarget = window, eventOptions = {}) => {
8586
7266
  const savedEventHandler = useRef(void 0);
@@ -8607,8 +7287,7 @@ const useEvent = (eventName, eventHandler, eventTarget = window, eventOptions =
8607
7287
  savedEventOptions
8608
7288
  ]);
8609
7289
  };
8610
- //#endregion
8611
- //#region src/private/hooks/useKey/useKey.ts
7290
+ // src/private/hooks/useKey/useKey.ts
8612
7291
  const createKeyPredicate = (keyFilter) => {
8613
7292
  if (typeof keyFilter === "function") return keyFilter;
8614
7293
  if (typeof keyFilter === "string") return (event) => event.key === keyFilter;
@@ -8630,16 +7309,14 @@ const useKey = (key, eventHandler, options = {}, dependencies = [key]) => {
8630
7309
  }, dependencies);
8631
7310
  useEvent(eventName, memoizedEventHandler, eventTarget, eventOptions);
8632
7311
  };
8633
- //#endregion
8634
- //#region src/private/hooks/useKeyPress/useKeyPress.ts
7312
+ // src/private/hooks/useKeyPress/useKeyPress.ts
8635
7313
  const useKeyPress = (keyFilter) => {
8636
7314
  const [state, setState] = useState([false, null]);
8637
7315
  useKey(keyFilter, (event) => setState([true, event]), { eventName: "keydown" }, [state]);
8638
7316
  useKey(keyFilter, (event) => setState([false, event]), { eventName: "keyup" }, [state]);
8639
7317
  return state;
8640
7318
  };
8641
- //#endregion
8642
- //#region src/private/hooks/useUpdateEffect/useUpdateEffect.ts
7319
+ // src/private/hooks/useUpdateEffect/useUpdateEffect.ts
8643
7320
  const useUpdateEffect = (effect, dependencies) => {
8644
7321
  const isInitialMount = useRef(true);
8645
7322
  useEffect(() => {
@@ -8650,8 +7327,7 @@ const useUpdateEffect = (effect, dependencies) => {
8650
7327
  return effect();
8651
7328
  }, dependencies);
8652
7329
  };
8653
- //#endregion
8654
- //#region src/private/hooks/useKeyPressOnce/useKeyPressOnce.ts
7330
+ // src/private/hooks/useKeyPressOnce/useKeyPressOnce.ts
8655
7331
  const useKeyPressOnce = (key, keydownHandler, keyupHandler) => {
8656
7332
  const [pressed, event] = useKeyPress(key);
8657
7333
  useUpdateEffect(() => {
@@ -8660,8 +7336,7 @@ const useKeyPressOnce = (key, keydownHandler, keyupHandler) => {
8660
7336
  return () => {};
8661
7337
  }, [pressed]);
8662
7338
  };
8663
- //#endregion
8664
- //#region src/private/hooks/usePreventScroll/usePreventScroll.ts
7339
+ // src/private/hooks/usePreventScroll/usePreventScroll.ts
8665
7340
  const usePreventScroll = (locked) => {
8666
7341
  useLayoutEffect(() => {
8667
7342
  if (locked) {
@@ -8674,8 +7349,7 @@ const usePreventScroll = (locked) => {
8674
7349
  return () => {};
8675
7350
  }, [locked]);
8676
7351
  };
8677
- //#endregion
8678
- //#region src/components/Modal/Dialog.tsx
7352
+ // src/components/Modal/Dialog.tsx
8679
7353
  const Dialog = styled.div`
8680
7354
  background-color: white;
8681
7355
  box-sizing: border-box;
@@ -8698,8 +7372,7 @@ const Dialog = styled.div`
8698
7372
  width: min-content;
8699
7373
  }
8700
7374
  `;
8701
- //#endregion
8702
- //#region src/components/Modal/ModalCloseContext.tsx
7375
+ // src/components/Modal/ModalCloseContext.tsx
8703
7376
  const ModalCloseContext = createContext(void 0);
8704
7377
  const ModalCloseProvider = ModalCloseContext.Provider;
8705
7378
  const useModalClose = () => {
@@ -8707,8 +7380,7 @@ const useModalClose = () => {
8707
7380
  if (isNotUndefined(modalClose)) return modalClose;
8708
7381
  throw new Error("useModalClose must be used within a ModalCloseProvider");
8709
7382
  };
8710
- //#endregion
8711
- //#region src/components/Modal/Modal.tsx
7383
+ // src/components/Modal/Modal.tsx
8712
7384
  const StyledBackdrop = styled(Backdrop)`
8713
7385
  display: flex;
8714
7386
 
@@ -8806,8 +7478,7 @@ const Modal = (props) => {
8806
7478
  };
8807
7479
  Modal.displayName = "Modal_VHS";
8808
7480
  ModalContent.displayName = "ModalContent_VHS";
8809
- //#endregion
8810
- //#region src/components/Modal/ModalParts.tsx
7481
+ // src/components/Modal/ModalParts.tsx
8811
7482
  const ModalHeader = styled.div`
8812
7483
  align-items: center;
8813
7484
  display: flex;
@@ -8842,8 +7513,7 @@ const ModalCloseButton = ({ onClick, ...props }) => {
8842
7513
  ...props
8843
7514
  });
8844
7515
  };
8845
- //#endregion
8846
- //#region src/components/Paper/Paper.tsx
7516
+ // src/components/Paper/Paper.tsx
8847
7517
  const PaperComponent = styled.div`
8848
7518
  background-color: white;
8849
7519
  border-radius: 8px;
@@ -8858,8 +7528,7 @@ const Paper = ({ children, elevation = 1, ...otherProps }) => {
8858
7528
  });
8859
7529
  };
8860
7530
  Paper.displayName = "Paper_VHS";
8861
- //#endregion
8862
- //#region src/components/ProgressBar/ProgressBar.tsx
7531
+ // src/components/ProgressBar/ProgressBar.tsx
8863
7532
  const progressBarHeight = "8px";
8864
7533
  const ProgressBarContainer = styled.div`
8865
7534
  display: flex;
@@ -8912,8 +7581,7 @@ const ProgressBar = ({ hasLabel = true, progress = 0, colorOverride, labelColorO
8912
7581
  });
8913
7582
  };
8914
7583
  ProgressBar.displayName = "ProgressBar_VHS";
8915
- //#endregion
8916
- //#region src/private/components/Calendar/Calendar.tsx
7584
+ // src/private/components/Calendar/Calendar.tsx
8917
7585
  const dayDimension = 45;
8918
7586
  const daysOfWeek = [
8919
7587
  "Sun",
@@ -9139,8 +7807,7 @@ const Calendar = ({ displayDate, earliestDate, latestDate, onDisplayDateChange,
9139
7807
  });
9140
7808
  };
9141
7809
  Calendar.displayName = "Calendar_VHS";
9142
- //#endregion
9143
- //#region src/private/components/RangeSelectorCalendar/RangeSelectorCalendar.tsx
7810
+ // src/private/components/RangeSelectorCalendar/RangeSelectorCalendar.tsx
9144
7811
  const EnhancedDay = styled(Day)`
9145
7812
  ${({ $isBeginning, $isInRange }) => $isBeginning && !$isInRange && `
9146
7813
  border-top-right-radius: 0;
@@ -9353,8 +8020,7 @@ const RangeSelectorCalendar = ({ range = DEFAULT_RANGE$1, rangePartToShow = "",
9353
8020
  });
9354
8021
  };
9355
8022
  RangeSelectorCalendar.displayName = "RangeSelectorCalendar_VHS";
9356
- //#endregion
9357
- //#region src/private/components/RangeSelectorInput/constants.ts
8023
+ // src/private/components/RangeSelectorInput/constants.ts
9358
8024
  const DIVIDER_STRING = " - ";
9359
8025
  const INITIAL_VALUE = `mm/dd/yyyy${DIVIDER_STRING}mm/dd/yyyy`;
9360
8026
  const positionElements = [
@@ -9405,8 +8071,7 @@ const createPositionsFromElements = (elements) => {
9405
8071
  });
9406
8072
  };
9407
8073
  const DATE_PART_POSITIONS = createPositionsFromElements(positionElements);
9408
- //#endregion
9409
- //#region src/private/components/RangeSelectorInput/conversions.ts
8074
+ // src/private/components/RangeSelectorInput/conversions.ts
9410
8075
  const getValueParts = (value) => {
9411
8076
  const [start, end] = value.split(DIVIDER_STRING);
9412
8077
  let month1Val = "";
@@ -9464,8 +8129,7 @@ const rangeToString = ({ start, end }) => {
9464
8129
  const endString = end.toLocaleDateString("en-US", opts);
9465
8130
  return `${startString}${DIVIDER_STRING}${endString}`;
9466
8131
  };
9467
- //#endregion
9468
- //#region src/private/components/RangeSelectorInput/ErrorMessages.tsx
8132
+ // src/private/components/RangeSelectorInput/ErrorMessages.tsx
9469
8133
  const ErrorMessagesList = styled.ul`
9470
8134
  list-style: none;
9471
8135
  margin: 0;
@@ -9477,8 +8141,7 @@ const ErrorMessage = styled.li`
9477
8141
  `;
9478
8142
  const DEFAULT_MESSAGES = [];
9479
8143
  const ErrorMessages = ({ messages = DEFAULT_MESSAGES }) => /* @__PURE__ */ jsx(ErrorMessagesList, { children: messages.map((message) => /* @__PURE__ */ jsx(ErrorMessage, { children: message }, message)) });
9480
- //#endregion
9481
- //#region src/private/components/RangeSelectorInput/eventTypes.ts
8144
+ // src/private/components/RangeSelectorInput/eventTypes.ts
9482
8145
  const keys = /* @__PURE__ */ new Set([
9483
8146
  "Enter",
9484
8147
  "Backspace",
@@ -9498,8 +8161,7 @@ const isArrowUpDown = (event) => event.key === "ArrowUp" || event.key === "Arrow
9498
8161
  const isBackspace = (event) => event.key === "Backspace";
9499
8162
  const isValueChangeEvent = (event) => isANum(event) || isArrowUpDown(event) || isBackspace(event);
9500
8163
  const isMoveEvent = (event) => isMoveLeftChar(event) || isMoveRightChar(event);
9501
- //#endregion
9502
- //#region src/private/components/RangeSelectorInput/selection.ts
8164
+ // src/private/components/RangeSelectorInput/selection.ts
9503
8165
  const getCursorPosition = (ref) => {
9504
8166
  return {
9505
8167
  startPos: ref.current?.selectionStart,
@@ -9553,8 +8215,7 @@ const getRangePartFromSelection = ([, end]) => {
9553
8215
  if (isNotUndefined(end) && end <= indexOfDivider) return "start";
9554
8216
  return "end";
9555
8217
  };
9556
- //#endregion
9557
- //#region src/private/components/RangeSelectorInput/utils.ts
8218
+ // src/private/components/RangeSelectorInput/utils.ts
9558
8219
  let timeout = void 0;
9559
8220
  const preventDoubleClick = (event) => {
9560
8221
  const delay = 200;
@@ -9619,8 +8280,7 @@ const orderRange = (range) => {
9619
8280
  end
9620
8281
  };
9621
8282
  };
9622
- //#endregion
9623
- //#region src/private/components/RangeSelectorInput/iterators.ts
8283
+ // src/private/components/RangeSelectorInput/iterators.ts
9624
8284
  const validateDays = (parts) => {
9625
8285
  const nextParts = { ...parts };
9626
8286
  const pad = (val) => `${val}`.padStart(2, "0");
@@ -9719,8 +8379,7 @@ const getNextSelection = ({ event, currentSelection }) => {
9719
8379
  nextKeyCount: 0
9720
8380
  };
9721
8381
  };
9722
- //#endregion
9723
- //#region src/private/components/RangeSelectorInput/RangeSelectorInput.tsx
8382
+ // src/private/components/RangeSelectorInput/RangeSelectorInput.tsx
9724
8383
  const Input$1 = styled.input`
9725
8384
  border: 1px solid ${({ theme }) => theme.color.grey400};
9726
8385
  border-radius: 4px;
@@ -9852,8 +8511,7 @@ const RangeSelectorInput = ({ onChange, onSelectedRangePartChange, range, earlie
9852
8511
  })] });
9853
8512
  };
9854
8513
  RangeSelectorInput.displayName = "RangeSelectorInput_VHS";
9855
- //#endregion
9856
- //#region src/components/RangeSelector/RangeSelector.tsx
8514
+ // src/components/RangeSelector/RangeSelector.tsx
9857
8515
  const TooltipWrapper = styled.div`
9858
8516
  text-align: left;
9859
8517
  width: 240px;
@@ -10099,8 +8757,7 @@ const RangeSelector = ({ align = "left", buttonVariant = "secondary", earliestDa
10099
8757
  });
10100
8758
  };
10101
8759
  RangeSelector.displayName = "RangeSelector_VHS";
10102
- //#endregion
10103
- //#region src/components/Slider/Slider.tsx
8760
+ // src/components/Slider/Slider.tsx
10104
8761
  const TRACK_SIZE = "4px";
10105
8762
  const DisabledSliderStyles = css`
10106
8763
  opacity: 0.5;
@@ -10202,8 +8859,7 @@ const Slider = ({ ariaLabel, ariaLabelledby, ariaValuetext, disabled = false, in
10202
8859
  });
10203
8860
  };
10204
8861
  Slider.displayName = "Slider_VHS";
10205
- //#endregion
10206
- //#region src/components/Stack/Stack.tsx
8862
+ // src/components/Stack/Stack.tsx
10207
8863
  const StyledStack = styled.div`
10208
8864
  display: flex;
10209
8865
  flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
@@ -10223,8 +8879,7 @@ const Stack = forwardRef(({ renderAs = "div", direction = "vertical", gap = "spa
10223
8879
  });
10224
8880
  });
10225
8881
  Stack.displayName = "Stack_VHS";
10226
- //#endregion
10227
- //#region src/components/Switch/Switch.tsx
8882
+ // src/components/Switch/Switch.tsx
10228
8883
  const SwitchComponent = styled.button`
10229
8884
  background-color: white;
10230
8885
  border-color: ${({ theme }) => theme.color.grey700};
@@ -10331,8 +8986,7 @@ const Switch = ({ disabled = false, isChecked = false, onChange, colorOverride,
10331
8986
  });
10332
8987
  };
10333
8988
  Switch.displayName = "Switch_VHS";
10334
- //#endregion
10335
- //#region src/components/Thumbnail/Thumbnail.tsx
8989
+ // src/components/Thumbnail/Thumbnail.tsx
10336
8990
  const ThumbnailComponent = styled.div`
10337
8991
  ${({ $gradientBackground }) => getBackgroundGradient($gradientBackground)};
10338
8992
  aspect-ratio: 16 / 9;
@@ -10448,8 +9102,7 @@ const Thumbnail = ({ bottomRightText, thumbnailUrl, thumbnailImageType = "square
10448
9102
  });
10449
9103
  };
10450
9104
  Thumbnail.displayName = "Thumbnail_VHS";
10451
- //#endregion
10452
- //#region src/components/ThumbnailCollage/ThumbnailCollage.tsx
9105
+ // src/components/ThumbnailCollage/ThumbnailCollage.tsx
10453
9106
  const ThumbnailCollageContainer = styled.div`
10454
9107
  display: grid;
10455
9108
  grid-template-columns: 3fr 2fr;
@@ -10490,8 +9143,7 @@ const ThumbnailCollage = ({ thumbnailUrls, gradientBackground = "defaultMidOne",
10490
9143
  children: isNonEmptyArray(thumbnailUrls) ? thumbnailUrls.map((thumbnailUrl) => /* @__PURE__ */ jsx(CollageImage, { $thumbnailUrl: thumbnailUrl }, thumbnailUrl)) : /* @__PURE__ */ jsx(CollageImage, { $backgroundGradient: gradientBackground })
10491
9144
  });
10492
9145
  };
10493
- //#endregion
10494
- //#region src/components/WistiaLogo/WistiaLogo.tsx
9146
+ // src/components/WistiaLogo/WistiaLogo.tsx
10495
9147
  const renderBrandmark = (brandmarkColor, iconOnly) => {
10496
9148
  if (iconOnly) return /* @__PURE__ */ jsx("g", {
10497
9149
  fill: brandmarkColor,
@@ -10566,7 +9218,6 @@ const WistiaLogo = ({ description, height = 100, hoverColor, href, iconOnly = fa
10566
9218
  }) : Logo;
10567
9219
  };
10568
9220
  WistiaLogo.displayName = "WistiaLogo_VHS";
10569
- //#endregion
10570
- export { ActionModal, Avatar, Backdrop, BackgroundImage, Badge, Banner, Box, Button, ButtonGroup, ButtonLink, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickArea, CloseButton, CollapsibleGroup, Divider, Ellipsis, FileSelect, Form, FormButtons, FormField, FormFieldError, FormGlobalError, FullScreenModal, Icon, IconButton, Image, Input, KeyboardShortcut, Label, LabelDescription, Link, LinkButton, List, ListItem, Menu, MenuButton, MenuItem, MenuLabel, MenuRadioGroup, Modal, ModalBase, ModalBody, ModalCloseButton, ModalFooter, ModalHeader, Paper, ProgressBar, Radio, RadioGroup, RadioMenuItem, RangeSelector, RichTextEditor, ScreenReaderOnly, Select, Slider, Stack, SubMenu, Switch, Text, Thumbnail, ThumbnailCollage, Toast, ToastProvider, Tooltip, Truncate, VHSProvider, WistiaLogo, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, rteDeserializeHTML, rteFormatTypes, rteSerializeToHTML, screenReaderOnlyStyle, useFormikContext, useTheme, useThemeColor, useToast };
9221
+ export { ActionModal, Avatar, Backdrop, BackgroundImage, Badge, Banner, Box, Button, ButtonGroup, ButtonLink, Checkbox, CheckboxGroup, CheckboxMenuItem, ClickArea, CloseButton, CollapsibleGroup, Divider, Ellipsis, FileSelect, Form, FormButtons, FormField, FormFieldError, FormGlobalError, FullScreenModal, Icon, IconButton, Image, Input, KeyboardShortcut, Label, LabelDescription, Link, LinkButton, List, ListItem, Menu, MenuButton, MenuItem, MenuLabel, MenuRadioGroup, Modal, ModalBase, ModalBody, ModalCloseButton, ModalFooter, ModalHeader, Paper, ProgressBar, Radio, RadioGroup, RadioMenuItem, RangeSelector, ScreenReaderOnly, Select, Slider, Stack, SubMenu, Switch, Text, Thumbnail, ThumbnailCollage, Toast, ToastProvider, Tooltip, Truncate, VHSProvider, WistiaLogo, ellipsisFlexParentStyle, ellipsisStyle, iconSizeMap, screenReaderOnlyStyle, useFormikContext, useTheme, useThemeColor, useToast };
10571
9222
 
10572
9223
  //# sourceMappingURL=index.js.map