@uva-glass/component-library 3.10.0 → 3.11.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 (143) hide show
  1. package/dist/{Lexical.prod-CWyHQUEM.js → Lexical.prod-D8x7Ii0F.js} +469 -469
  2. package/dist/{Lexical.prod-CWyHQUEM.js.map → Lexical.prod-D8x7Ii0F.js.map} +1 -1
  3. package/dist/{LexicalClipboard.prod-DbqSWANZ.js → LexicalClipboard.prod-D5GjiArS.js} +16 -16
  4. package/dist/{LexicalClipboard.prod-DbqSWANZ.js.map → LexicalClipboard.prod-D5GjiArS.js.map} +1 -1
  5. package/dist/{LexicalLink.prod-DbxnRszt.js → LexicalLink.prod-CkldFE8u.js} +60 -60
  6. package/dist/{LexicalLink.prod-DbxnRszt.js.map → LexicalLink.prod-CkldFE8u.js.map} +1 -1
  7. package/dist/{LexicalList.prod-pZmYrwOC.js → LexicalList.prod-CsVDXdmw.js} +215 -215
  8. package/dist/LexicalList.prod-CsVDXdmw.js.map +1 -0
  9. package/dist/LexicalSelection.prod-JQDTaUpX.js +90 -0
  10. package/dist/{LexicalSelection.prod-DkvWlcln.js.map → LexicalSelection.prod-JQDTaUpX.js.map} +1 -1
  11. package/dist/{LexicalTable.prod-C6duSS2P.js → LexicalTable.prod-rZbTmo9K.js} +125 -125
  12. package/dist/{LexicalTable.prod-C6duSS2P.js.map → LexicalTable.prod-rZbTmo9K.js.map} +1 -1
  13. package/dist/{LexicalUtils.prod-Dny9Fu94.js → LexicalUtils.prod-CpMJ4I9h.js} +6 -6
  14. package/dist/{LexicalUtils.prod-Dny9Fu94.js.map → LexicalUtils.prod-CpMJ4I9h.js.map} +1 -1
  15. package/dist/{SelectListbox.module-BD2qbcmZ.js → SelectListbox.module-ignbxWNU.js} +21 -21
  16. package/dist/SelectListbox.module-ignbxWNU.js.map +1 -0
  17. package/dist/{SortableProvider-Ck_XnBVq.js → SortableProvider-DZggDO3M.js} +20 -20
  18. package/dist/{SortableProvider-Ck_XnBVq.js.map → SortableProvider-DZggDO3M.js.map} +1 -1
  19. package/dist/{TablePlugin-Ba6PaBhf.js → TablePlugin-WOgWan8s.js} +36 -36
  20. package/dist/{TablePlugin-Ba6PaBhf.js.map → TablePlugin-WOgWan8s.js.map} +1 -1
  21. package/dist/assets/MultiSelectBox.css +1 -0
  22. package/dist/assets/SelectListbox.css +1 -1
  23. package/dist/components/Accordion/Accordion.test.js +3 -3
  24. package/dist/components/AccordionCard/AccordionCard.test.js +3 -3
  25. package/dist/components/ActionList/ActionList.test.js +3 -3
  26. package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -2
  27. package/dist/components/Attention/Attention.test.js +2 -2
  28. package/dist/components/Backdrop/Backdrop.test.js +2 -2
  29. package/dist/components/Buttons/Button.stories.js +1 -1
  30. package/dist/components/Buttons/Button.test.js +2 -2
  31. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  32. package/dist/components/Buttons/LinkButton.test.js +2 -2
  33. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  34. package/dist/components/Buttons/MenuButton.test.js +2 -2
  35. package/dist/components/Card/Card.test.js +2 -2
  36. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  37. package/dist/components/Checkbox/Checkbox.test.js +2 -2
  38. package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
  39. package/dist/components/CheckboxButton/CheckboxButton.test.js +2 -2
  40. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  41. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +2 -2
  42. package/dist/components/CheckboxTree/CheckboxTree.js +3 -3
  43. package/dist/components/CheckboxTree/CheckboxTree.stories.js +1 -1
  44. package/dist/components/Chip/Chip.stories.js +1 -1
  45. package/dist/components/Drawer/Drawer.stories.js +1 -1
  46. package/dist/components/FeedbackBar/FeedbackBar.test.js +2 -2
  47. package/dist/components/FormInput/FormInput.js +3 -3
  48. package/dist/components/FormInput/FormInput.stories.js +1 -1
  49. package/dist/components/IconButton/IconButton.stories.js +1 -1
  50. package/dist/components/InputField/InputField.js +17 -17
  51. package/dist/components/InputField/InputField.stories.js +17 -17
  52. package/dist/components/Label/Label.test.js +2 -2
  53. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  54. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  55. package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
  56. package/dist/components/MultiSelect/components/MultiSelectHeader.js +3 -3
  57. package/dist/components/MultiSelect/index.js +1 -1
  58. package/dist/components/MultiSelectBox/MultiSelectBox.d.ts +16 -0
  59. package/dist/components/MultiSelectBox/MultiSelectBox.js +191 -0
  60. package/dist/components/MultiSelectBox/MultiSelectBox.js.map +1 -0
  61. package/dist/components/MultiSelectBox/MultiSelectBox.stories.d.ts +5 -0
  62. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +31 -0
  63. package/dist/components/MultiSelectBox/MultiSelectBox.stories.js.map +1 -0
  64. package/dist/components/MultiSelectBox/MultiSelectBox.test.d.ts +0 -0
  65. package/dist/components/MultiSelectBox/MultiSelectBox.test.js +26 -0
  66. package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -0
  67. package/dist/components/MultiSelectBox/index.d.ts +1 -0
  68. package/dist/components/MultiSelectBox/index.js +5 -0
  69. package/dist/components/MultiSelectBox/index.js.map +1 -0
  70. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  71. package/dist/components/OverlayStepBar/OverlayStepBar.js +3 -3
  72. package/dist/components/PeriodSelector/PeriodSelector.js +3 -3
  73. package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
  74. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +3 -3
  75. package/dist/components/RadioButton/RadioButton.js +3 -3
  76. package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
  77. package/dist/components/RadioGroup/Radiogroup.test.js +2 -2
  78. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +3 -3
  79. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
  80. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +14 -14
  81. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +4 -4
  82. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  83. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +23 -23
  84. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  85. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +40 -40
  86. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +4 -4
  87. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +3 -3
  88. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +5 -5
  89. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +2 -2
  90. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  91. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +3 -3
  92. package/dist/components/RteEditor/Plugins/index.js +1 -1
  93. package/dist/components/RteEditor/Providers/LanguageProvider.js +7 -7
  94. package/dist/components/RteEditor/RteEditor.js +327 -327
  95. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  96. package/dist/components/RteEditor/helpers.js +4 -4
  97. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  98. package/dist/components/SelectListbox/SelectProvider.js +10 -10
  99. package/dist/components/SelectListbox/components/SelectButton.js +1 -1
  100. package/dist/components/SelectListbox/components/SelectContainer.js +1 -1
  101. package/dist/components/SelectListbox/components/SelectOption.js +1 -1
  102. package/dist/components/SelectListbox/components/SelectOptionBox.js +1 -1
  103. package/dist/components/Sortable/Sortable.js +1 -1
  104. package/dist/components/Sortable/Sortable.stories.js +1 -1
  105. package/dist/components/Sortable/SortableProvider.js +1 -1
  106. package/dist/components/Sortable/components/SortableContainer.js +1 -1
  107. package/dist/components/Sortable/components/SortableItem.js +15 -15
  108. package/dist/components/Sortable/sortableReducer.js +21 -21
  109. package/dist/components/StatusBadge/StatusBadge.test.js +2 -2
  110. package/dist/components/TextArea/TextArea.js +2 -2
  111. package/dist/components/TextArea/TextArea.stories.js +1 -1
  112. package/dist/components/TextArea/TextArea.test.js +3 -3
  113. package/dist/components/Timeline/Timeline.test.js +5 -5
  114. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  115. package/dist/components/Tooltip/Tooltip.js +22 -22
  116. package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
  117. package/dist/components/VarIndicator/VarIndicator.test.js +3 -3
  118. package/dist/components/hooks/useDebounce.js +4 -4
  119. package/dist/components/index.d.ts +1 -0
  120. package/dist/components/index.js +53 -51
  121. package/dist/components/index.js.map +1 -1
  122. package/dist/{helpers-BUwfVZhW.js → helpers-E_SsILnP.js} +10 -10
  123. package/dist/{helpers-BUwfVZhW.js.map → helpers-E_SsILnP.js.map} +1 -1
  124. package/dist/{index-DXR-TB1d.js → index-BCvy9BiK.js} +1886 -1886
  125. package/dist/{index-DXR-TB1d.js.map → index-BCvy9BiK.js.map} +1 -1
  126. package/dist/{index-dmBn99rF.js → index-BqLi4tOb.js} +908 -908
  127. package/dist/{index-dmBn99rF.js.map → index-BqLi4tOb.js.map} +1 -1
  128. package/dist/{index-B3c5pcHk.js → index-DllfJcv4.js} +32 -32
  129. package/dist/{index-B3c5pcHk.js.map → index-DllfJcv4.js.map} +1 -1
  130. package/dist/{index-Ck15_vKo.js → index-xaEX581l.js} +481 -481
  131. package/dist/{index-Ck15_vKo.js.map → index-xaEX581l.js.map} +1 -1
  132. package/dist/index.js +53 -51
  133. package/dist/index.js.map +1 -1
  134. package/dist/{react.esm-CMg7bmSn.js → react.esm-PmLHNn73.js} +3 -3
  135. package/dist/{react.esm-CMg7bmSn.js.map → react.esm-PmLHNn73.js.map} +1 -1
  136. package/dist/setupTests.js +1 -1
  137. package/dist/storybook__react.d.js +2 -2
  138. package/dist/{test-utils-B2AIdiiO.js → test-utils-grX3FDss.js} +157 -157
  139. package/dist/{test-utils-B2AIdiiO.js.map → test-utils-grX3FDss.js.map} +1 -1
  140. package/package.json +6 -6
  141. package/dist/LexicalList.prod-pZmYrwOC.js.map +0 -1
  142. package/dist/LexicalSelection.prod-DkvWlcln.js +0 -90
  143. package/dist/SelectListbox.module-BD2qbcmZ.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  var It = Object.defineProperty;
2
2
  var Ft = (r, o, a) => o in r ? It(r, o, { enumerable: !0, configurable: !0, writable: !0, value: a }) : r[o] = a;
3
3
  var yr = (r, o, a) => Ft(r, typeof o != "symbol" ? o + "" : o, a);
4
- import "./index-dmBn99rF.js";
4
+ import "./index-BqLi4tOb.js";
5
5
  import { c as mt } from "./_commonjsHelpers-DaMA6jEr.js";
6
6
  var gr = {}, vr = {}, br, he;
7
7
  function At() {
@@ -690,7 +690,7 @@ var Hc = Ms((tp, er) => {
690
690
  let e;
691
691
  if (typeof Ai.act == "function") e = Ai.act;
692
692
  else {
693
- let r = await import("./test-utils-B2AIdiiO.js").then((n) => n.t);
693
+ let r = await import("./test-utils-grX3FDss.js").then((n) => n.t);
694
694
  e = ((t = r == null ? void 0 : r.default) == null ? void 0 : t.act) ?? r.act;
695
695
  }
696
696
  return process.env.NODE_ENV === "production" ? (r) => r() : Sa(e);
@@ -752,7 +752,7 @@ var Hc = Ms((tp, er) => {
752
752
  return jt.createElement(jt.Suspense, null, e());
753
753
  }], Pa = async () => {
754
754
  try {
755
- let { configure: e } = await import("./index-DXR-TB1d.js"), t = await lu();
755
+ let { configure: e } = await import("./index-BCvy9BiK.js"), t = await lu();
756
756
  e({ unstable_advanceTimersWrapper: (r) => t(r), asyncWrapper: async (r) => {
757
757
  let n = ou();
758
758
  St(!1);
@@ -135,12 +135,12 @@ function Kt() {
135
135
  return t.timeStamp || Date.now();
136
136
  }, defaultPrevented: 0, isTrusted: 0 }, ke = w(U), Y = m({}, U, { view: 0, detail: 0 });
137
137
  w(Y);
138
- var ne, re, x, X = m({}, Y, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: V, button: 0, buttons: 0, relatedTarget: function(t) {
138
+ var re, ne, x, X = m({}, Y, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: V, button: 0, buttons: 0, relatedTarget: function(t) {
139
139
  return t.relatedTarget === void 0 ? t.fromElement === t.srcElement ? t.toElement : t.fromElement : t.relatedTarget;
140
140
  }, movementX: function(t) {
141
- return "movementX" in t ? t.movementX : (t !== x && (x && t.type === "mousemove" ? (ne = t.screenX - x.screenX, re = t.screenY - x.screenY) : re = ne = 0, x = t), ne);
141
+ return "movementX" in t ? t.movementX : (t !== x && (x && t.type === "mousemove" ? (re = t.screenX - x.screenX, ne = t.screenY - x.screenY) : ne = re = 0, x = t), re);
142
142
  }, movementY: function(t) {
143
- return "movementY" in t ? t.movementY : re;
143
+ return "movementY" in t ? t.movementY : ne;
144
144
  } });
145
145
  w(X);
146
146
  var Te = m({}, X, { dataTransfer: 0 });
@@ -428,26 +428,26 @@ function Ft() {
428
428
  var g = lt, P = ct, _ = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
429
429
  function I(e) {
430
430
  {
431
- for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
432
- r[a - 1] = arguments[a];
433
- m("warn", e, r);
431
+ for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
432
+ n[a - 1] = arguments[a];
433
+ m("warn", e, n);
434
434
  }
435
435
  }
436
436
  function R(e) {
437
437
  {
438
- for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
439
- r[a - 1] = arguments[a];
440
- m("error", e, r);
438
+ for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
439
+ n[a - 1] = arguments[a];
440
+ m("error", e, n);
441
441
  }
442
442
  }
443
- function m(e, n, r) {
443
+ function m(e, r, n) {
444
444
  {
445
445
  var a = _.ReactDebugCurrentFrame, u = a.getStackAddendum();
446
- u !== "" && (n += "%s", r = r.concat([u]));
447
- var c = r.map(function(h) {
446
+ u !== "" && (r += "%s", n = n.concat([u]));
447
+ var c = n.map(function(h) {
448
448
  return String(h);
449
449
  });
450
- c.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, c);
450
+ c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
451
451
  }
452
452
  }
453
453
  function F(e) {
@@ -456,40 +456,40 @@ function Ft() {
456
456
  var B = 0, le = 1, w = 3, U = 5, ke = 6, Y = (
457
457
  /* */
458
458
  0
459
- ), ne = (
459
+ ), re = (
460
460
  /* */
461
461
  2
462
- ), re = (
462
+ ), ne = (
463
463
  /* */
464
464
  4096
465
465
  );
466
466
  _.ReactCurrentOwner;
467
467
  function x(e) {
468
- var n = e, r = e;
468
+ var r = e, n = e;
469
469
  if (e.alternate)
470
- for (; n.return; )
471
- n = n.return;
470
+ for (; r.return; )
471
+ r = r.return;
472
472
  else {
473
- var a = n;
473
+ var a = r;
474
474
  do
475
- n = a, (n.flags & (ne | re)) !== Y && (r = n.return), a = n.return;
475
+ r = a, (r.flags & (re | ne)) !== Y && (n = r.return), a = r.return;
476
476
  while (a);
477
477
  }
478
- return n.tag === w ? r : null;
478
+ return r.tag === w ? n : null;
479
479
  }
480
480
  function X(e) {
481
481
  if (x(e) !== e)
482
482
  throw new Error("Unable to find node on an unmounted component.");
483
483
  }
484
484
  function Te(e) {
485
- var n = e.alternate;
486
- if (!n) {
487
- var r = x(e);
488
- if (r === null)
485
+ var r = e.alternate;
486
+ if (!r) {
487
+ var n = x(e);
488
+ if (n === null)
489
489
  throw new Error("Unable to find node on an unmounted component.");
490
- return r !== e ? null : e;
490
+ return n !== e ? null : e;
491
491
  }
492
- for (var a = e, u = n; ; ) {
492
+ for (var a = e, u = r; ; ) {
493
493
  var c = a.return;
494
494
  if (c === null)
495
495
  break;
@@ -507,7 +507,7 @@ function Ft() {
507
507
  if (M === a)
508
508
  return X(c), e;
509
509
  if (M === u)
510
- return X(c), n;
510
+ return X(c), r;
511
511
  M = M.sibling;
512
512
  }
513
513
  throw new Error("Unable to find node on an unmounted component.");
@@ -547,12 +547,12 @@ function Ft() {
547
547
  }
548
548
  if (a.tag !== w)
549
549
  throw new Error("Unable to find node on an unmounted component.");
550
- return a.stateNode.current === a ? e : n;
550
+ return a.stateNode.current === a ? e : r;
551
551
  }
552
552
  var E = Object.assign;
553
553
  function oe(e) {
554
- var n, r = e.keyCode;
555
- return "charCode" in e ? (n = e.charCode, n === 0 && r === 13 && (n = 13)) : n = r, n === 10 && (n = 13), n >= 32 || n === 13 ? n : 0;
554
+ var r, n = e.keyCode;
555
+ return "charCode" in e ? (r = e.charCode, r === 0 && n === 13 && (r = 13)) : r = n, r === 10 && (r = 13), r >= 32 || r === 13 ? r : 0;
556
556
  }
557
557
  function $() {
558
558
  return !0;
@@ -561,8 +561,8 @@ function Ft() {
561
561
  return !1;
562
562
  }
563
563
  function b(e) {
564
- function n(r, a, u, c, h) {
565
- this._reactName = r, this._targetInst = u, this.type = a, this.nativeEvent = c, this.target = h, this.currentTarget = null;
564
+ function r(n, a, u, c, h) {
565
+ this._reactName = n, this._targetInst = u, this.type = a, this.nativeEvent = c, this.target = h, this.currentTarget = null;
566
566
  for (var T in e)
567
567
  if (e.hasOwnProperty(T)) {
568
568
  var M = e[T];
@@ -571,15 +571,15 @@ function Ft() {
571
571
  var k = c.defaultPrevented != null ? c.defaultPrevented : c.returnValue === !1;
572
572
  return k ? this.isDefaultPrevented = $ : this.isDefaultPrevented = ce, this.isPropagationStopped = ce, this;
573
573
  }
574
- return E(n.prototype, {
574
+ return E(r.prototype, {
575
575
  preventDefault: function() {
576
576
  this.defaultPrevented = !0;
577
- var r = this.nativeEvent;
578
- r && (r.preventDefault ? r.preventDefault() : typeof r.returnValue != "unknown" && (r.returnValue = !1), this.isDefaultPrevented = $);
577
+ var n = this.nativeEvent;
578
+ n && (n.preventDefault ? n.preventDefault() : typeof n.returnValue != "unknown" && (n.returnValue = !1), this.isDefaultPrevented = $);
579
579
  },
580
580
  stopPropagation: function() {
581
- var r = this.nativeEvent;
582
- r && (r.stopPropagation ? r.stopPropagation() : typeof r.cancelBubble != "unknown" && (r.cancelBubble = !0), this.isPropagationStopped = $);
581
+ var n = this.nativeEvent;
582
+ n && (n.stopPropagation ? n.stopPropagation() : typeof n.cancelBubble != "unknown" && (n.cancelBubble = !0), this.isPropagationStopped = $);
583
583
  },
584
584
  /**
585
585
  * We release all dispatched `SyntheticEvent`s after each event loop, adding
@@ -594,7 +594,7 @@ function Ft() {
594
594
  * @return {boolean} True if this should not be released, false otherwise.
595
595
  */
596
596
  isPersistent: $
597
- }), n;
597
+ }), r;
598
598
  }
599
599
  var N = {
600
600
  eventPhase: 0,
@@ -716,13 +716,13 @@ function Ft() {
716
716
  };
717
717
  function Ie(e) {
718
718
  if (e.key) {
719
- var n = ie[e.key] || e.key;
720
- if (n !== "Unidentified")
721
- return n;
719
+ var r = ie[e.key] || e.key;
720
+ if (r !== "Unidentified")
721
+ return r;
722
722
  }
723
723
  if (e.type === "keypress") {
724
- var r = oe(e);
725
- return r === 13 ? "Enter" : String.fromCharCode(r);
724
+ var n = oe(e);
725
+ return n === 13 ? "Enter" : String.fromCharCode(n);
726
726
  }
727
727
  return e.type === "keydown" || e.type === "keyup" ? Pe[e.keyCode] || "Unidentified" : "";
728
728
  }
@@ -733,11 +733,11 @@ function Ft() {
733
733
  Shift: "shiftKey"
734
734
  };
735
735
  function se(e) {
736
- var n = this, r = n.nativeEvent;
737
- if (r.getModifierState)
738
- return r.getModifierState(e);
736
+ var r = this, n = r.nativeEvent;
737
+ if (n.getModifierState)
738
+ return n.getModifierState(e);
739
739
  var a = _e[e];
740
- return a ? !!r[a] : !1;
740
+ return a ? !!n[a] : !1;
741
741
  }
742
742
  function L(e) {
743
743
  return se;
@@ -820,10 +820,10 @@ function Ft() {
820
820
  });
821
821
  b(xe);
822
822
  var fe = 1;
823
- function de(e, n, r, a, u, c, h, T, M) {
823
+ function de(e, r, n, a, u, c, h, T, M) {
824
824
  var k = Array.prototype.slice.call(arguments, 3);
825
825
  try {
826
- n.apply(r, k);
826
+ r.apply(n, k);
827
827
  } catch (C) {
828
828
  this.onError(C);
829
829
  }
@@ -831,27 +831,27 @@ function Ft() {
831
831
  var pe = de;
832
832
  if (typeof window < "u" && typeof window.dispatchEvent == "function" && typeof document < "u" && typeof document.createEvent == "function") {
833
833
  var O = document.createElement("react");
834
- pe = function(n, r, a, u, c, h, T, M, k) {
834
+ pe = function(r, n, a, u, c, h, T, M, k) {
835
835
  if (typeof document > "u" || document === null)
836
836
  throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");
837
837
  var C = document.createEvent("Event"), Xe = !1, Qe = !0, At = window.event, et = Object.getOwnPropertyDescriptor(window, "event");
838
838
  function tt() {
839
- O.removeEventListener(je, nt, !1), typeof window.event < "u" && window.hasOwnProperty("event") && (window.event = At);
839
+ O.removeEventListener(je, rt, !1), typeof window.event < "u" && window.hasOwnProperty("event") && (window.event = At);
840
840
  }
841
841
  var Wt = Array.prototype.slice.call(arguments, 3);
842
- function nt() {
843
- Xe = !0, tt(), r.apply(a, Wt), Qe = !1;
842
+ function rt() {
843
+ Xe = !0, tt(), n.apply(a, Wt), Qe = !1;
844
844
  }
845
- var K, rt = !1, ot = !1;
845
+ var K, nt = !1, ot = !1;
846
846
  function at(be) {
847
- if (K = be.error, rt = !0, K === null && be.colno === 0 && be.lineno === 0 && (ot = !0), be.defaultPrevented && K != null && typeof K == "object")
847
+ if (K = be.error, nt = !0, K === null && be.colno === 0 && be.lineno === 0 && (ot = !0), be.defaultPrevented && K != null && typeof K == "object")
848
848
  try {
849
849
  K._suppressLogging = !0;
850
850
  } catch {
851
851
  }
852
852
  }
853
- var je = "react-" + (n || "invokeguardedcallback");
854
- if (window.addEventListener("error", at), O.addEventListener(je, nt, !1), C.initEvent(je, !1, !1), O.dispatchEvent(C), et && Object.defineProperty(window, "event", et), Xe && Qe && (rt ? ot && (K = new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")) : K = new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`), this.onError(K)), window.removeEventListener("error", at), !Xe)
853
+ var je = "react-" + (r || "invokeguardedcallback");
854
+ if (window.addEventListener("error", at), O.addEventListener(je, rt, !1), C.initEvent(je, !1, !1), O.dispatchEvent(C), et && Object.defineProperty(window, "event", et), Xe && Qe && (nt ? ot && (K = new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")) : K = new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`), this.onError(K)), window.removeEventListener("error", at), !Xe)
855
855
  return tt(), de.apply(this, arguments);
856
856
  };
857
857
  }
@@ -860,10 +860,10 @@ function Ft() {
860
860
  A = !0, G = e;
861
861
  }
862
862
  };
863
- function me(e, n, r, a, u, c, h, T, M) {
863
+ function me(e, r, n, a, u, c, h, T, M) {
864
864
  A = !1, G = null, ee.apply(he, arguments);
865
865
  }
866
- function ve(e, n, r, a, u, c, h, T, M) {
866
+ function ve(e, r, n, a, u, c, h, T, M) {
867
867
  if (me.apply(this, arguments), A) {
868
868
  var k = ge();
869
869
  W || (W = !0, te = k);
@@ -890,48 +890,48 @@ function Ft() {
890
890
  function d(e) {
891
891
  }
892
892
  var l = !1;
893
- function p(e, n) {
893
+ function p(e, r) {
894
894
  if (!e)
895
895
  return [];
896
- var r = Te(e);
897
- if (!r)
896
+ var n = Te(e);
897
+ if (!n)
898
898
  return [];
899
- for (var a = r, u = []; ; ) {
899
+ for (var a = n, u = []; ; ) {
900
900
  if (a.tag === U || a.tag === ke || a.tag === le || a.tag === B) {
901
901
  var c = a.stateNode;
902
- n(c) && u.push(c);
902
+ r(c) && u.push(c);
903
903
  }
904
904
  if (a.child) {
905
905
  a.child.return = a, a = a.child;
906
906
  continue;
907
907
  }
908
- if (a === r)
908
+ if (a === n)
909
909
  return u;
910
910
  for (; !a.sibling; ) {
911
- if (!a.return || a.return === r)
911
+ if (!a.return || a.return === n)
912
912
  return u;
913
913
  a = a.return;
914
914
  }
915
915
  a.sibling.return = a.return, a = a.sibling;
916
916
  }
917
917
  }
918
- function D(e, n) {
918
+ function D(e, r) {
919
919
  if (e && !F(e)) {
920
- var r, a = String(e);
921
- throw ue(e) ? r = "an array" : e && e.nodeType === fe && e.tagName ? r = "a DOM node" : a === "[object Object]" ? r = "object with keys {" + Object.keys(e).join(", ") + "}" : r = a, new Error(n + "(...): the first argument must be a React class instance. " + ("Instead received: " + r + "."));
920
+ var n, a = String(e);
921
+ throw ue(e) ? n = "an array" : e && e.nodeType === fe && e.tagName ? n = "a DOM node" : a === "[object Object]" ? n = "object with keys {" + Object.keys(e).join(", ") + "}" : n = a, new Error(r + "(...): the first argument must be a React class instance. " + ("Instead received: " + n + "."));
922
922
  }
923
923
  }
924
924
  var S = !1;
925
925
  function Fe(e) {
926
926
  S || (S = !0, R("ReactDOMTestUtils is deprecated and will be removed in a future major release, because it exposes internal implementation details that are highly likely to change between releases. Upgrade to a modern testing library, such as @testing-library/react. See https://react.dev/warnings/react-dom-test-utils for more info."));
927
- var n = document.createElement("div");
928
- return P.render(e, n);
927
+ var r = document.createElement("div");
928
+ return P.render(e, r);
929
929
  }
930
930
  function dt(e) {
931
931
  return g.isValidElement(e);
932
932
  }
933
- function pt(e, n) {
934
- return g.isValidElement(e) && e.type === n;
933
+ function pt(e, r) {
934
+ return g.isValidElement(e) && e.type === r;
935
935
  }
936
936
  function Ee(e) {
937
937
  return !!(e && e.nodeType === fe && e.tagName);
@@ -942,92 +942,92 @@ function Ft() {
942
942
  function Ye(e) {
943
943
  return Ee(e) ? !1 : e != null && typeof e.render == "function" && typeof e.setState == "function";
944
944
  }
945
- function Ve(e, n) {
945
+ function Ve(e, r) {
946
946
  if (!Ye(e))
947
947
  return !1;
948
- var r = F(e), a = r.type;
949
- return a === n;
948
+ var n = F(e), a = n.type;
949
+ return a === r;
950
950
  }
951
- function Ce(e, n) {
951
+ function Ce(e, r) {
952
952
  if (D(e, "findAllInRenderedTree"), !e)
953
953
  return [];
954
- var r = F(e);
955
- return p(r, n);
956
- }
957
- function qe(e, n) {
958
- return D(e, "scryRenderedDOMComponentsWithClass"), Ce(e, function(r) {
959
- if (Ee(r)) {
960
- var a = r.className;
961
- typeof a != "string" && (a = r.getAttribute("class") || "");
954
+ var n = F(e);
955
+ return p(n, r);
956
+ }
957
+ function qe(e, r) {
958
+ return D(e, "scryRenderedDOMComponentsWithClass"), Ce(e, function(n) {
959
+ if (Ee(n)) {
960
+ var a = n.className;
961
+ typeof a != "string" && (a = n.getAttribute("class") || "");
962
962
  var u = a.split(/\s+/);
963
- if (!ue(n)) {
964
- if (n === void 0)
963
+ if (!ue(r)) {
964
+ if (r === void 0)
965
965
  throw new Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");
966
- n = n.split(/\s+/);
966
+ r = r.split(/\s+/);
967
967
  }
968
- return n.every(function(c) {
968
+ return r.every(function(c) {
969
969
  return u.indexOf(c) !== -1;
970
970
  });
971
971
  }
972
972
  return !1;
973
973
  });
974
974
  }
975
- function mt(e, n) {
975
+ function mt(e, r) {
976
976
  D(e, "findRenderedDOMComponentWithClass");
977
- var r = qe(e, n);
978
- if (r.length !== 1)
979
- throw new Error("Did not find exactly one match (found: " + r.length + ") for class:" + n);
980
- return r[0];
981
- }
982
- function ze(e, n) {
983
- return D(e, "scryRenderedDOMComponentsWithTag"), Ce(e, function(r) {
984
- return Ee(r) && r.tagName.toUpperCase() === n.toUpperCase();
977
+ var n = qe(e, r);
978
+ if (n.length !== 1)
979
+ throw new Error("Did not find exactly one match (found: " + n.length + ") for class:" + r);
980
+ return n[0];
981
+ }
982
+ function ze(e, r) {
983
+ return D(e, "scryRenderedDOMComponentsWithTag"), Ce(e, function(n) {
984
+ return Ee(n) && n.tagName.toUpperCase() === r.toUpperCase();
985
985
  });
986
986
  }
987
- function vt(e, n) {
987
+ function vt(e, r) {
988
988
  D(e, "findRenderedDOMComponentWithTag");
989
- var r = ze(e, n);
990
- if (r.length !== 1)
991
- throw new Error("Did not find exactly one match (found: " + r.length + ") for tag:" + n);
992
- return r[0];
993
- }
994
- function Ge(e, n) {
995
- return D(e, "scryRenderedComponentsWithType"), Ce(e, function(r) {
996
- return Ve(r, n);
989
+ var n = ze(e, r);
990
+ if (n.length !== 1)
991
+ throw new Error("Did not find exactly one match (found: " + n.length + ") for tag:" + r);
992
+ return n[0];
993
+ }
994
+ function Ge(e, r) {
995
+ return D(e, "scryRenderedComponentsWithType"), Ce(e, function(n) {
996
+ return Ve(n, r);
997
997
  });
998
998
  }
999
- function yt(e, n) {
999
+ function yt(e, r) {
1000
1000
  D(e, "findRenderedComponentWithType");
1001
- var r = Ge(e, n);
1002
- if (r.length !== 1)
1003
- throw new Error("Did not find exactly one match (found: " + r.length + ") for componentType:" + n);
1004
- return r[0];
1001
+ var n = Ge(e, r);
1002
+ if (n.length !== 1)
1003
+ throw new Error("Did not find exactly one match (found: " + n.length + ") for componentType:" + r);
1004
+ return n[0];
1005
1005
  }
1006
- function gt(e, n) {
1006
+ function gt(e, r) {
1007
1007
  return l || (l = !0, I(`ReactTestUtils.mockComponent() is deprecated. Use shallow rendering or jest.mock() instead.
1008
1008
 
1009
- See https://reactjs.org/link/test-utils-mock-component for more information.`)), n = n || e.mockTagName || "div", e.prototype.render.mockImplementation(function() {
1010
- return g.createElement(n, null, this.props.children);
1009
+ See https://reactjs.org/link/test-utils-mock-component for more information.`)), r = r || e.mockTagName || "div", e.prototype.render.mockImplementation(function() {
1010
+ return g.createElement(r, null, this.props.children);
1011
1011
  }), this;
1012
1012
  }
1013
- function wt(e, n) {
1013
+ function wt(e, r) {
1014
1014
  return {
1015
1015
  touches: [{
1016
1016
  pageX: e,
1017
- pageY: n
1017
+ pageY: r
1018
1018
  }]
1019
1019
  };
1020
1020
  }
1021
- function He(e, n, r) {
1021
+ function He(e, r, n) {
1022
1022
  var a = e.type || "unknown-event";
1023
- e.currentTarget = t(r), ve(a, n, void 0, e), e.currentTarget = null;
1023
+ e.currentTarget = t(n), ve(a, r, void 0, e), e.currentTarget = null;
1024
1024
  }
1025
1025
  function Et(e) {
1026
- var n = e._dispatchListeners, r = e._dispatchInstances;
1027
- if (ue(n))
1028
- for (var a = 0; a < n.length && !e.isPropagationStopped(); a++)
1029
- He(e, n[a], r[a]);
1030
- else n && He(e, n, r);
1026
+ var r = e._dispatchListeners, n = e._dispatchInstances;
1027
+ if (ue(r))
1028
+ for (var a = 0; a < r.length && !e.isPropagationStopped(); a++)
1029
+ He(e, r[a], n[a]);
1030
+ else r && He(e, r, n);
1031
1031
  e._dispatchListeners = null, e._dispatchInstances = null;
1032
1032
  }
1033
1033
  var Ct = function(e) {
@@ -1042,16 +1042,16 @@ See https://reactjs.org/link/test-utils-mock-component for more information.`)),
1042
1042
  while (e && e.tag !== U);
1043
1043
  return e || null;
1044
1044
  }
1045
- function Be(e, n, r) {
1045
+ function Be(e, r, n) {
1046
1046
  for (var a = []; e; )
1047
1047
  a.push(e), e = Dt(e);
1048
1048
  var u;
1049
1049
  for (u = a.length; u-- > 0; )
1050
- n(a[u], "captured", r);
1050
+ r(a[u], "captured", n);
1051
1051
  for (u = 0; u < a.length; u++)
1052
- n(a[u], "bubbled", r);
1052
+ r(a[u], "bubbled", n);
1053
1053
  }
1054
- function kt(e, n, r) {
1054
+ function kt(e, r, n) {
1055
1055
  switch (e) {
1056
1056
  case "onClick":
1057
1057
  case "onClickCapture":
@@ -1064,39 +1064,39 @@ See https://reactjs.org/link/test-utils-mock-component for more information.`)),
1064
1064
  case "onMouseUp":
1065
1065
  case "onMouseUpCapture":
1066
1066
  case "onMouseEnter":
1067
- return !!(r.disabled && bt(n));
1067
+ return !!(n.disabled && bt(r));
1068
1068
  default:
1069
1069
  return !1;
1070
1070
  }
1071
1071
  }
1072
- function $e(e, n) {
1073
- var r = e.stateNode;
1074
- if (!r)
1072
+ function $e(e, r) {
1073
+ var n = e.stateNode;
1074
+ if (!n)
1075
1075
  return null;
1076
- var a = i(r);
1076
+ var a = i(n);
1077
1077
  if (!a)
1078
1078
  return null;
1079
- var u = a[n];
1080
- if (kt(n, e.type, a))
1079
+ var u = a[r];
1080
+ if (kt(r, e.type, a))
1081
1081
  return null;
1082
1082
  if (u && typeof u != "function")
1083
- throw new Error("Expected `" + n + "` listener to be a function, instead got a value of `" + typeof u + "` type.");
1083
+ throw new Error("Expected `" + r + "` listener to be a function, instead got a value of `" + typeof u + "` type.");
1084
1084
  return u;
1085
1085
  }
1086
- function Tt(e, n, r) {
1087
- var a = n._reactName;
1088
- return r === "captured" && (a += "Capture"), $e(e, a);
1086
+ function Tt(e, r, n) {
1087
+ var a = r._reactName;
1088
+ return n === "captured" && (a += "Capture"), $e(e, a);
1089
1089
  }
1090
- function Mt(e, n, r) {
1091
- if (e && r && r._reactName) {
1092
- var a = r._reactName, u = $e(e, a);
1093
- u && (r._dispatchListeners == null && (r._dispatchListeners = []), r._dispatchInstances == null && (r._dispatchInstances = []), r._dispatchListeners.push(u), r._dispatchInstances.push(e));
1090
+ function Mt(e, r, n) {
1091
+ if (e && n && n._reactName) {
1092
+ var a = n._reactName, u = $e(e, a);
1093
+ u && (n._dispatchListeners == null && (n._dispatchListeners = []), n._dispatchInstances == null && (n._dispatchInstances = []), n._dispatchListeners.push(u), n._dispatchInstances.push(e));
1094
1094
  }
1095
1095
  }
1096
- function Rt(e, n, r) {
1096
+ function Rt(e, r, n) {
1097
1097
  e || R("Dispatching inst must not be null");
1098
- var a = Tt(e, r, n);
1099
- a && (r._dispatchListeners == null && (r._dispatchListeners = []), r._dispatchInstances == null && (r._dispatchInstances = []), r._dispatchListeners.push(a), r._dispatchInstances.push(e));
1098
+ var a = Tt(e, n, r);
1099
+ a && (n._dispatchListeners == null && (n._dispatchListeners = []), n._dispatchInstances == null && (n._dispatchInstances = []), n._dispatchListeners.push(a), n._dispatchInstances.push(e));
1100
1100
  }
1101
1101
  function Ot(e) {
1102
1102
  e && e._reactName && Mt(e._targetInst, null, e);
@@ -1106,16 +1106,16 @@ See https://reactjs.org/link/test-utils-mock-component for more information.`)),
1106
1106
  }
1107
1107
  var Ze = {}, Pt = /* @__PURE__ */ new Set(["mouseEnter", "mouseLeave", "pointerEnter", "pointerLeave"]);
1108
1108
  function It(e) {
1109
- return function(n, r) {
1110
- if (g.isValidElement(n))
1109
+ return function(r, n) {
1110
+ if (g.isValidElement(r))
1111
1111
  throw new Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.");
1112
- if (Ye(n))
1112
+ if (Ye(r))
1113
1113
  throw new Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.");
1114
1114
  var a = "on" + e[0].toUpperCase() + e.slice(1), u = new d();
1115
- u.target = n, u.type = e.toLowerCase();
1116
- var c = Ke(n), h = new Me(a, u.type, c, u, n);
1117
- h.persist(), E(h, r), Pt.has(e) ? Ot(h) : St(h), P.unstable_batchedUpdates(function() {
1118
- o(n), Ct(h), ye();
1115
+ u.target = r, u.type = e.toLowerCase();
1116
+ var c = Ke(r), h = new Me(a, u.type, c, u, r);
1117
+ h.persist(), E(h, n), Pt.has(e) ? Ot(h) : St(h), P.unstable_batchedUpdates(function() {
1118
+ o(r), Ct(h), ye();
1119
1119
  }), s();
1120
1120
  };
1121
1121
  }
@@ -1126,8 +1126,8 @@ See https://reactjs.org/link/test-utils-mock-component for more information.`)),
1126
1126
  });
1127
1127
  }
1128
1128
  Ut();
1129
- var Je = !1, Lt = function(n) {
1130
- return Je || (Je = !0, R("`ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.")), f(n);
1129
+ var Je = !1, Lt = function(r) {
1130
+ return Je || (Je = !0, R("`ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.")), f(r);
1131
1131
  };
1132
1132
  y.Simulate = Ze, y.act = Lt, y.findAllInRenderedTree = Ce, y.findRenderedComponentWithType = yt, y.findRenderedDOMComponentWithClass = mt, y.findRenderedDOMComponentWithTag = vt, y.isCompositeComponent = Ye, y.isCompositeComponentWithType = Ve, y.isDOMComponent = Ee, y.isDOMComponentElement = ht, y.isElement = dt, y.isElementOfType = pt, y.mockComponent = gt, y.nativeTouchData = wt, y.renderIntoDocument = Fe, y.scryRenderedComponentsWithType = Ge, y.scryRenderedDOMComponentsWithClass = qe, y.scryRenderedDOMComponentsWithTag = ze, y.traverseTwoPhase = Be;
1133
1133
  }()), y;
@@ -1145,4 +1145,4 @@ export {
1145
1145
  ft as a,
1146
1146
  Gt as t
1147
1147
  };
1148
- //# sourceMappingURL=test-utils-B2AIdiiO.js.map
1148
+ //# sourceMappingURL=test-utils-grX3FDss.js.map