@uva-glass/component-library 3.30.1 → 3.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/dist/{Lexical.prod-UwAbgYpF.js → Lexical.prod-B84LhBo3.js} +1196 -1224
  2. package/dist/Lexical.prod-B84LhBo3.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-DHIGjydG.js → LexicalClipboard.prod-DLgWWXys.js} +4 -4
  4. package/dist/{LexicalClipboard.prod-DHIGjydG.js.map → LexicalClipboard.prod-DLgWWXys.js.map} +1 -1
  5. package/dist/{LexicalLink.prod-Bsa9J7L-.js → LexicalLink.prod-DoU9RL94.js} +3 -3
  6. package/dist/{LexicalLink.prod-Bsa9J7L-.js.map → LexicalLink.prod-DoU9RL94.js.map} +1 -1
  7. package/dist/{LexicalList.prod-jxGuZd4b.js → LexicalList.prod-Cw2TK1jY.js} +4 -4
  8. package/dist/{LexicalList.prod-jxGuZd4b.js.map → LexicalList.prod-Cw2TK1jY.js.map} +1 -1
  9. package/dist/{LexicalSelection.prod-xk5MiZnZ.js → LexicalSelection.prod-TB5pn9xc.js} +2 -2
  10. package/dist/{LexicalSelection.prod-xk5MiZnZ.js.map → LexicalSelection.prod-TB5pn9xc.js.map} +1 -1
  11. package/dist/{LexicalTable.prod-BSjs04iE.js → LexicalTable.prod-9xjyWB0C.js} +4 -4
  12. package/dist/{LexicalTable.prod-BSjs04iE.js.map → LexicalTable.prod-9xjyWB0C.js.map} +1 -1
  13. package/dist/{LexicalUtils.prod-cQutjKA3.js → LexicalUtils.prod-CD3xGFhm.js} +2 -2
  14. package/dist/{LexicalUtils.prod-cQutjKA3.js.map → LexicalUtils.prod-CD3xGFhm.js.map} +1 -1
  15. package/dist/Sortable.module--kgnzOjW.js +26 -0
  16. package/dist/Sortable.module--kgnzOjW.js.map +1 -0
  17. package/dist/SortableProvider-DisCfTTN.js +160 -0
  18. package/dist/SortableProvider-DisCfTTN.js.map +1 -0
  19. package/dist/{TablePlugin-NmJsn2fm.js → TablePlugin-oF-gInNx.js} +86 -91
  20. package/dist/{TablePlugin-NmJsn2fm.js.map → TablePlugin-oF-gInNx.js.map} +1 -1
  21. package/dist/assets/Backdrop.css +1 -1
  22. package/dist/assets/Button.css +1 -1
  23. package/dist/assets/ClipboardButton.css +1 -1
  24. package/dist/assets/ExpandableInfoPanel.css +1 -1
  25. package/dist/assets/FormInput.css +1 -1
  26. package/dist/assets/IconButton.css +1 -1
  27. package/dist/assets/Input.css +1 -1
  28. package/dist/assets/InputField.css +1 -1
  29. package/dist/assets/LinkContextMenu.css +1 -1
  30. package/dist/assets/Notification.css +1 -1
  31. package/dist/assets/OverlayCloseButton.css +1 -1
  32. package/dist/assets/OverlayStepBar.css +1 -1
  33. package/dist/assets/PageOverlay.css +1 -1
  34. package/dist/assets/Sortable.css +1 -1
  35. package/dist/assets/VarIndicator.css +1 -1
  36. package/dist/components/Accordion/Accordion.test.js +3 -3
  37. package/dist/components/AccordionCard/AccordionCard.test.js +3 -3
  38. package/dist/components/ActionList/ActionList.test.js +3 -3
  39. package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -2
  40. package/dist/components/Attention/Attention.test.js +2 -2
  41. package/dist/components/Backdrop/Backdrop.test.js +2 -2
  42. package/dist/components/Buttons/Button.stories.js +1 -1
  43. package/dist/components/Buttons/Button.test.js +2 -2
  44. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  45. package/dist/components/Buttons/LinkButton.test.js +2 -2
  46. package/dist/components/Buttons/MenuButton.stories.js +5 -5
  47. package/dist/components/Buttons/MenuButton.test.js +2 -2
  48. package/dist/components/Card/Card.test.js +2 -2
  49. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  50. package/dist/components/Checkbox/Checkbox.test.js +3 -3
  51. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  52. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +2 -2
  53. package/dist/components/CheckboxTree/CheckboxTree.js +58 -59
  54. package/dist/components/CheckboxTree/CheckboxTree.js.map +1 -1
  55. package/dist/components/CheckboxTree/CheckboxTree.stories.js +58 -59
  56. package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
  57. package/dist/components/Chip/Chip.stories.js +5 -5
  58. package/dist/components/ControlsButton/ControlsButton.stories.js +5 -5
  59. package/dist/components/Drawer/Drawer.stories.js +1 -1
  60. package/dist/components/FeedbackBar/FeedbackBar.test.js +2 -2
  61. package/dist/components/FormInput/FormInput.js +3 -3
  62. package/dist/components/FormInput/FormInput.stories.js +1 -1
  63. package/dist/components/HorizontalList/HorizontalList.js +7 -7
  64. package/dist/components/HorizontalList/HorizontalList.js.map +1 -1
  65. package/dist/components/IconButton/IconButton.stories.js +1 -1
  66. package/dist/components/InputField/InputField.stories.js +10 -10
  67. package/dist/components/Label/Label.test.js +2 -2
  68. package/dist/components/ModalDialog/ModalDialog.stories.js +8 -8
  69. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  70. package/dist/components/MultiSelect/MultiSelect.stories.js +8 -8
  71. package/dist/components/MultiSelect/components/MultiSelectHeader.js +3 -3
  72. package/dist/components/MultiSelect/index.js +1 -1
  73. package/dist/components/MultiSelectBox/MultiSelectBox.js +66 -70
  74. package/dist/components/MultiSelectBox/MultiSelectBox.js.map +1 -1
  75. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
  76. package/dist/components/MultiSelectBox/MultiSelectBox.test.js +2 -2
  77. package/dist/components/Notification/Notification.stories.js +6 -6
  78. package/dist/components/Notification/Notification.test.js +2 -2
  79. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +4 -4
  80. package/dist/components/OverlayStepBar/OverlayStepBar.stories.js +19 -20
  81. package/dist/components/OverlayStepBar/OverlayStepBar.stories.js.map +1 -1
  82. package/dist/components/PeriodSelector/PeriodSelector.js +33 -33
  83. package/dist/components/PeriodSelector/PeriodSelector.js.map +1 -1
  84. package/dist/components/PeriodSelector/PeriodSelector.stories.js +4 -4
  85. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +3 -3
  86. package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
  87. package/dist/components/RadioGroup/Radiogroup.test.js +2 -2
  88. package/dist/components/RadioTabSelector/RadioTabSelector.js +3 -3
  89. package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +1 -1
  90. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +3 -3
  91. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
  92. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +4 -4
  93. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +4 -4
  94. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +51 -61
  95. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js.map +1 -1
  96. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +79 -89
  97. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js.map +1 -1
  98. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  99. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +3 -3
  100. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +4 -4
  101. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +3 -3
  102. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +19 -19
  103. package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js.map +1 -1
  104. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +5 -5
  105. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +17 -18
  106. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js.map +1 -1
  107. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  108. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +31 -32
  109. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js.map +1 -1
  110. package/dist/components/RteEditor/Plugins/index.js +1 -1
  111. package/dist/components/RteEditor/RteEditor.js +10 -10
  112. package/dist/components/RteEditor/helpers.js +4 -4
  113. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  114. package/dist/components/SelectListbox/components/SelectButton.js +31 -32
  115. package/dist/components/SelectListbox/components/SelectButton.js.map +1 -1
  116. package/dist/components/SelectListbox/components/SelectOption.js +29 -30
  117. package/dist/components/SelectListbox/components/SelectOption.js.map +1 -1
  118. package/dist/components/Sortable/Sortable.d.ts +10 -3
  119. package/dist/components/Sortable/Sortable.js +38 -23
  120. package/dist/components/Sortable/Sortable.js.map +1 -1
  121. package/dist/components/Sortable/Sortable.stories.d.ts +3 -3
  122. package/dist/components/Sortable/Sortable.stories.js +28 -20
  123. package/dist/components/Sortable/Sortable.stories.js.map +1 -1
  124. package/dist/components/Sortable/SortableProvider.d.ts +10 -6
  125. package/dist/components/Sortable/SortableProvider.js +1 -1
  126. package/dist/components/Sortable/components/SortableContainer.d.ts +2 -1
  127. package/dist/components/Sortable/components/SortableContainer.js +2 -2
  128. package/dist/components/Sortable/components/SortableHandle.js +1 -1
  129. package/dist/components/Sortable/components/SortableItem.d.ts +3 -1
  130. package/dist/components/Sortable/components/SortableItem.js +48 -47
  131. package/dist/components/Sortable/components/SortableItem.js.map +1 -1
  132. package/dist/components/StatusBadge/StatusBadge.test.js +2 -2
  133. package/dist/components/TextArea/TextArea.stories.js +1 -1
  134. package/dist/components/TextArea/TextArea.test.js +3 -3
  135. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  136. package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
  137. package/dist/components/VarIndicator/VarIndicator.test.js +3 -3
  138. package/dist/components/hooks/usePositionedFloaters.js +39 -39
  139. package/dist/components/hooks/usePositionedFloaters.js.map +1 -1
  140. package/dist/components/index.js +1 -1
  141. package/dist/{helpers-DZIm3MiJ.js → helpers-CMG0anwr.js} +4 -4
  142. package/dist/{helpers-DZIm3MiJ.js.map → helpers-CMG0anwr.js.map} +1 -1
  143. package/dist/{index-DV47hRzi.js → index-Br0QepD6.js} +8 -10
  144. package/dist/{index-DV47hRzi.js.map → index-Br0QepD6.js.map} +1 -1
  145. package/dist/{index-Di9WPZUe.js → index-C2E9FY6V.js} +9149 -9854
  146. package/dist/index-C2E9FY6V.js.map +1 -0
  147. package/dist/{index-PaHiqSUg.js → index-Ds1dMTvJ.js} +29 -29
  148. package/dist/{index-PaHiqSUg.js.map → index-Ds1dMTvJ.js.map} +1 -1
  149. package/dist/{index-BVAvx58-.js → index-KJPw-7za.js} +2209 -2280
  150. package/dist/{index-BVAvx58-.js.map → index-KJPw-7za.js.map} +1 -1
  151. package/dist/{index-DllfJcv4.js → index-nrPtQ1dv.js} +2 -2
  152. package/dist/{index-DllfJcv4.js.map → index-nrPtQ1dv.js.map} +1 -1
  153. package/dist/index.js +1 -1
  154. package/dist/{react.esm-CFMwGdo5.js → react.esm-BKjCIfbB.js} +373 -374
  155. package/dist/{react.esm-CFMwGdo5.js.map → react.esm-BKjCIfbB.js.map} +1 -1
  156. package/dist/setupTests.js +6 -9
  157. package/dist/setupTests.js.map +1 -1
  158. package/dist/storybook__react.d.js +2056 -2072
  159. package/dist/storybook__react.d.js.map +1 -1
  160. package/package.json +14 -14
  161. package/dist/Lexical.prod-UwAbgYpF.js.map +0 -1
  162. package/dist/Sortable.module-CekPNg54.js +0 -23
  163. package/dist/Sortable.module-CekPNg54.js.map +0 -1
  164. package/dist/SortableProvider-CwX1lFMa.js +0 -152
  165. package/dist/SortableProvider-CwX1lFMa.js.map +0 -1
  166. package/dist/index-Di9WPZUe.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { g as H } from "./react.esm-CFMwGdo5.js";
1
+ import { g as H } from "./react.esm-BKjCIfbB.js";
2
2
  function a(e, t, n) {
3
3
  return e.namespaceURI && e.namespaceURI !== "http://www.w3.org/1999/xhtml" || (t = Array.isArray(t) ? t : [
4
4
  t
@@ -83,7 +83,7 @@ function Qt(e) {
83
83
  var i;
84
84
  const r = (i = this.items.find(pe(n, !0))) !== null && i !== void 0 ? i : this.items.find(pe(n, !1));
85
85
  let o = "";
86
- return r == null || r.getAsString((s) => {
86
+ return r?.getAsString((s) => {
87
87
  o = s;
88
88
  }), o;
89
89
  }
@@ -188,7 +188,7 @@ function Re(e, t) {
188
188
  });
189
189
  }
190
190
  function Le(e) {
191
- return !!(e != null && e[W]);
191
+ return !!e?.[W];
192
192
  }
193
193
  function en(e) {
194
194
  if (Le(e.navigator.clipboard))
@@ -218,7 +218,7 @@ function nn(e) {
218
218
  Le(e.navigator.clipboard) && e.navigator.clipboard[W].detachClipboardStub();
219
219
  }
220
220
  async function rn(e) {
221
- const t = e.defaultView, n = t == null ? void 0 : t.navigator.clipboard, i = n && await n.read();
221
+ const t = e.defaultView, n = t?.navigator.clipboard, i = n && await n.read();
222
222
  if (!i)
223
223
  throw new Error("The Clipboard API is unavailable.");
224
224
  const r = Me(t);
@@ -282,7 +282,7 @@ function _(e) {
282
282
  }
283
283
  function fe(e) {
284
284
  const t = e.activeElement;
285
- return t != null && t.shadowRoot ? fe(t.shadowRoot) : _(t) ? e.ownerDocument ? (
285
+ return t?.shadowRoot ? fe(t.shadowRoot) : _(t) ? e.ownerDocument ? (
286
286
  /* istanbul ignore next */
287
287
  e.ownerDocument.body
288
288
  ) : e.body : t;
@@ -338,7 +338,7 @@ function Et(e) {
338
338
  }
339
339
  function dn(e) {
340
340
  const t = e.ownerDocument.getSelection();
341
- if (t != null && t.focusNode && k(e)) {
341
+ if (t?.focusNode && k(e)) {
342
342
  const i = de(t.focusNode);
343
343
  if (i) {
344
344
  if (!t.isCollapsed) {
@@ -355,7 +355,7 @@ function Y(e, t) {
355
355
  }
356
356
  function O(e) {
357
357
  const t = sn(e, $e), n = fe(e.ownerDocument);
358
- (t ?? e.ownerDocument.body) !== n && (Y(t ? () => t.focus() : () => n == null ? void 0 : n.blur()), dn(t ?? e.ownerDocument.body));
358
+ (t ?? e.ownerDocument.body) !== n && (Y(t ? () => t.focus() : () => n?.blur()), dn(t ?? e.ownerDocument.body));
359
359
  }
360
360
  function ln(e) {
361
361
  !$e(e) || !(fe(e.ownerDocument) === e) || Y(() => e.blur());
@@ -581,9 +581,9 @@ function It(e) {
581
581
  type: "input",
582
582
  selection: le(t)
583
583
  };
584
- const n = t == null ? void 0 : t.ownerDocument.getSelection();
584
+ const n = t?.ownerDocument.getSelection();
585
585
  return {
586
- type: de(e) && (n == null ? void 0 : n.anchorNode) && de(n.anchorNode) ? "contenteditable" : "default",
586
+ type: de(e) && n?.anchorNode && de(n.anchorNode) ? "contenteditable" : "default",
587
587
  selection: n
588
588
  };
589
589
  }
@@ -703,7 +703,7 @@ function xn(e) {
703
703
  }
704
704
  function Nn(e) {
705
705
  const t = E(e);
706
- for (let n = e; n != null && n.ownerDocument; n = n.parentElement) {
706
+ for (let n = e; n?.ownerDocument; n = n.parentElement) {
707
707
  const { display: i, visibility: r } = t.getComputedStyle(n);
708
708
  if (i === "none" || r === "hidden")
709
709
  return !1;
@@ -758,7 +758,7 @@ function Xe(e, t) {
758
758
  });
759
759
  } else {
760
760
  const n = e.ownerDocument.getSelection();
761
- if (!(n != null && n.focusNode))
761
+ if (!n?.focusNode)
762
762
  return;
763
763
  if (n.isCollapsed) {
764
764
  const i = Ct(n.focusNode, n.focusOffset, t);
@@ -790,7 +790,7 @@ function Ln(e) {
790
790
  return le(e).startOffset === 0 && le(e).endOffset === T(e).length;
791
791
  var t;
792
792
  const n = (t = de(e)) !== null && t !== void 0 ? t : e.ownerDocument.body, i = e.ownerDocument.getSelection();
793
- return (i == null ? void 0 : i.anchorNode) === n && i.focusNode === n && i.anchorOffset === 0 && i.focusOffset === n.childNodes.length;
793
+ return i?.anchorNode === n && i.focusNode === n && i.anchorOffset === 0 && i.focusOffset === n.childNodes.length;
794
794
  }
795
795
  function oe(e, t, n) {
796
796
  var i;
@@ -912,7 +912,7 @@ U.keypress = (e, t, n) => {
912
912
  n.dispatchUIEvent(t, "click");
913
913
  };
914
914
  if (a(t, "input")) {
915
- const i = t.form, r = i == null ? void 0 : i.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');
915
+ const i = t.form, r = i?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');
916
916
  return r ? () => n.dispatchUIEvent(r, "click") : i && Bn.includes(t.type) && i.querySelectorAll("input").length === 1 ? () => n.dispatchUIEvent(i, "submit") : void 0;
917
917
  }
918
918
  }
@@ -1511,16 +1511,16 @@ function Dt(e) {
1511
1511
  }
1512
1512
  function Je(e) {
1513
1513
  const t = fe(e);
1514
- return (t == null ? void 0 : t.tagName) === "BODY" ? null : t;
1514
+ return t?.tagName === "BODY" ? null : t;
1515
1515
  }
1516
1516
  const Ae = Symbol("Interceptor for programmatical calls");
1517
1517
  function G(e, t, n) {
1518
- const i = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), r = Object.getOwnPropertyDescriptor(e, t), o = i != null && i.set ? "set" : "value";
1519
- if (typeof (i == null ? void 0 : i[o]) != "function" || i[o][Ae])
1518
+ const i = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), r = Object.getOwnPropertyDescriptor(e, t), o = i?.set ? "set" : "value";
1519
+ if (typeof i?.[o] != "function" || i[o][Ae])
1520
1520
  throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);
1521
1521
  function s(...u) {
1522
1522
  const { applyNative: c = !1, realArgs: d, then: l } = n.call(this, ...u), f = (!c && r || i)[o];
1523
- o === "set" ? f.call(this, d) : f.call(this, ...d), l == null || l();
1523
+ o === "set" ? f.call(this, d) : f.call(this, ...d), l?.();
1524
1524
  }
1525
1525
  s[Ae] = Ae, Object.defineProperty(e, t, {
1526
1526
  ...r ?? i,
@@ -2107,7 +2107,7 @@ function ai({ document: e, target: t, clickCount: n, node: i, offset: r }) {
2107
2107
  throw new Error("The given offset is out of bounds.");
2108
2108
  }
2109
2109
  const g = e.getSelection();
2110
- return g == null || g.removeAllRanges(), g == null || g.addRange(h.cloneRange()), h;
2110
+ return g?.removeAllRanges(), g?.addRange(h.cloneRange()), h;
2111
2111
  }
2112
2112
  }
2113
2113
  function fi(e, t, n) {
@@ -2143,7 +2143,7 @@ function pi(e, { document: t, target: n, node: i, offset: r }) {
2143
2143
  const s = e.cloneRange(), u = s.comparePoint(o.node, o.offset);
2144
2144
  u < 0 ? s.setStart(o.node, o.offset) : u > 0 && s.setEnd(o.node, o.offset);
2145
2145
  const c = t.getSelection();
2146
- c == null || c.removeAllRanges(), c == null || c.addRange(s.cloneRange());
2146
+ c?.removeAllRanges(), c?.addRange(s.cloneRange());
2147
2147
  }
2148
2148
  }
2149
2149
  function Lt(e, t) {
@@ -2276,7 +2276,7 @@ function Ce(e, t) {
2276
2276
  }
2277
2277
  function bi(e) {
2278
2278
  const t = E(e);
2279
- for (let n = e, i = []; n != null && n.ownerDocument; n = n.parentElement) {
2279
+ for (let n = e, i = []; n?.ownerDocument; n = n.parentElement) {
2280
2280
  i.push(n);
2281
2281
  const r = t.getComputedStyle(n).pointerEvents;
2282
2282
  if (r && ![
@@ -2293,7 +2293,7 @@ const it = Symbol("Last check for pointer-events");
2293
2293
  function $t(e, t) {
2294
2294
  const n = t[it];
2295
2295
  if (!(e.config.pointerEventsCheck !== Ee.Never && (!n || rt(e.config.pointerEventsCheck, Ee.EachApiCall) && n[m.Call] !== ge(e, m.Call) || rt(e.config.pointerEventsCheck, Ee.EachTrigger) && n[m.Trigger] !== ge(e, m.Trigger))))
2296
- return n == null ? void 0 : n.result;
2296
+ return n?.result;
2297
2297
  const r = bi(t);
2298
2298
  return t[it] = {
2299
2299
  [m.Call]: ge(e, m.Call),
@@ -2303,7 +2303,7 @@ function $t(e, t) {
2303
2303
  }
2304
2304
  function ue(e, t) {
2305
2305
  const n = $t(e, t);
2306
- if ((n == null ? void 0 : n.pointerEvents) === "none")
2306
+ if (n?.pointerEvents === "none")
2307
2307
  throw new Error([
2308
2308
  `Unable to perform pointer interaction as the element ${n.tree.length > 1 ? "inherits" : "has"} \`pointer-events: none\`:`,
2309
2309
  "",
@@ -2348,7 +2348,7 @@ function vi(e) {
2348
2348
  var o;
2349
2349
  n = (o = e.textContent) === null || o === void 0 ? void 0 : o.trim();
2350
2350
  }
2351
- return n = n == null ? void 0 : n.replace(/\n/g, " "), Number(n == null ? void 0 : n.length) > 30 && (n = `${n == null ? void 0 : n.substring(0, 29)}…`), n ? `(label=${n})` : "";
2351
+ return n = n?.replace(/\n/g, " "), Number(n?.length) > 30 && (n = `${n?.substring(0, 29)}…`), n ? `(label=${n})` : "";
2352
2352
  }
2353
2353
  function rt(e, t) {
2354
2354
  return (e & t) > 0;
@@ -2436,7 +2436,7 @@ class mi {
2436
2436
  }
2437
2437
  async move(t, n, i) {
2438
2438
  const r = this.pointers.get(n), o = r.move(t, i), s = r.pointerType === "touch" ? void 0 : this.mouse.move(t, i, r.isPrevented);
2439
- o == null || o.leave(), s == null || s.leave(), o == null || o.enter(), s == null || s.enter(), o == null || o.move(), s == null || s.move();
2439
+ o?.leave(), s?.leave(), o?.enter(), s?.enter(), o?.move(), s?.move();
2440
2440
  }
2441
2441
  async release(t, n, i) {
2442
2442
  const r = this.devices.get(n.pointerType);
@@ -2444,11 +2444,11 @@ class mi {
2444
2444
  const o = this.pointers.get(this.getPointerName(n)), s = o.isPrevented;
2445
2445
  if (o.position = i, o.pointerType !== "touch" && (this.mouse.position = i), r.countPressed === 0 && o.up(t, n.button), o.pointerType === "touch" && o.release(t), o.pointerType === "touch" && !o.isMultitouch) {
2446
2446
  const u = this.mouse.move(t, i, s);
2447
- u == null || u.leave(), u == null || u.enter(), u == null || u.move(), this.mouse.down(t, n, s);
2447
+ u?.leave(), u?.enter(), u?.move(), this.mouse.down(t, n, s);
2448
2448
  }
2449
2449
  if (!o.isMultitouch) {
2450
2450
  const u = this.mouse.move(t, i, s);
2451
- u == null || u.leave(), u == null || u.enter(), u == null || u.move(), this.mouse.up(t, n, s);
2451
+ u?.leave(), u?.enter(), u?.move(), this.mouse.up(t, n, s);
2452
2452
  }
2453
2453
  }
2454
2454
  getPointerName(t) {
@@ -2768,7 +2768,7 @@ async function Bi(e, t) {
2768
2768
  var s, u, c, d;
2769
2769
  const l = {
2770
2770
  target: (s = t.target) !== null && s !== void 0 ? s : Vi(e, o),
2771
- coords: (u = t.coords) !== null && u !== void 0 ? u : o == null ? void 0 : o.coords,
2771
+ coords: (u = t.coords) !== null && u !== void 0 ? u : o?.coords,
2772
2772
  caret: {
2773
2773
  node: (c = t.node) !== null && c !== void 0 ? c : ut(t) || o == null || (n = o.caret) === null || n === void 0 ? void 0 : n.node,
2774
2774
  offset: (d = t.offset) !== null && d !== void 0 ? d : ut(t) || o == null || (i = o.caret) === null || i === void 0 ? void 0 : i.offset
@@ -2888,7 +2888,7 @@ async function Xi(e, t) {
2888
2888
  if (!n || !a(n, "input", {
2889
2889
  type: "file"
2890
2890
  }))
2891
- throw new TypeError(`The ${n === e ? "given" : "associated"} ${n == null ? void 0 : n.tagName} element does not accept file uploads`);
2891
+ throw new TypeError(`The ${n === e ? "given" : "associated"} ${n?.tagName} element does not accept file uploads`);
2892
2892
  if (_(e)) return;
2893
2893
  const i = (Array.isArray(t) ? t : [
2894
2894
  t
@@ -3096,4 +3096,4 @@ const gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3096
3096
  export {
3097
3097
  Lr as u
3098
3098
  };
3099
- //# sourceMappingURL=index-PaHiqSUg.js.map
3099
+ //# sourceMappingURL=index-Ds1dMTvJ.js.map