@eightshift/ui-components 1.8.0 → 1.9.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 (89) hide show
  1. package/dist/{Button-Xa6Ny0p_.js → Button-BMFbEXg1.js} +5 -5
  2. package/dist/{Color-VsesNqCf.js → Color-B-cqXgPz.js} +1 -1
  3. package/dist/{ColorSwatch-xOFAZO_h.js → ColorSwatch-B6s54Jb3.js} +4 -4
  4. package/dist/{ComboBox-CP_SqnqT.js → ComboBox-VR9-vNZv.js} +19 -19
  5. package/dist/{Dialog-jcIYer1n.js → Dialog-BlYTPzgB.js} +17 -17
  6. package/dist/{FieldError-BPe3YgNH.js → FieldError-DKicm3R0.js} +2 -2
  7. package/dist/{FocusScope-uV-xoRHT.js → FocusScope-EoLYfbMp.js} +5 -5
  8. package/dist/{Group-Bvmb49y7.js → Group-D96edUPC.js} +3 -3
  9. package/dist/{Heading-Bfhyr4ZC.js → Heading-GytTjUsy.js} +1 -1
  10. package/dist/{Hidden-7ZhNuLM9.js → Hidden-D3hHnmPI.js} +2 -2
  11. package/dist/{Input-C2dTSp9z.js → Input-BXSxJ_44.js} +8 -8
  12. package/dist/{Label-DqNX_sAU.js → Label-BtoiUpt8.js} +2 -2
  13. package/dist/{List-C7L49CxW.js → List-Ct3nzFZG.js} +1 -1
  14. package/dist/{ListBox-B9r1QoSm.js → ListBox-BMpo-Cem.js} +11 -11
  15. package/dist/{OverlayArrow-ClRhYjQu.js → OverlayArrow-4epQ99-E.js} +3 -3
  16. package/dist/{Select-aab027f3.esm-B8nEum75.js → Select-aab027f3.esm-C7BxKjSc.js} +1 -1
  17. package/dist/{SelectionManager-DP537Pbu.js → SelectionManager-D-89MUJW.js} +109 -160
  18. package/dist/{Separator-Dmxzf3m_.js → Separator-DUhFmbD-.js} +3 -3
  19. package/dist/{Slider-BgHBCyI7.js → Slider-QNPrj4N9.js} +11 -11
  20. package/dist/{Text-DImhB4rT.js → Text-DNDWaukZ.js} +1 -1
  21. package/dist/{VisuallyHidden-wryJF4qQ.js → VisuallyHidden-BHNhi-ls.js} +2 -2
  22. package/dist/assets/style.css +1 -1
  23. package/dist/components/animated-visibility/animated-visibility.js +67 -7273
  24. package/dist/components/base-control/base-control.js +1 -1
  25. package/dist/components/button/button.js +4 -4
  26. package/dist/components/checkbox/checkbox.js +11 -10
  27. package/dist/components/color-pickers/color-swatch.js +2 -2
  28. package/dist/components/color-pickers/gradient-editor.js +1 -1
  29. package/dist/components/color-pickers/solid-color-picker.js +18 -18
  30. package/dist/components/container-panel/container-panel.js +6 -4
  31. package/dist/components/draggable/draggable.js +1 -1
  32. package/dist/components/draggable-list/draggable-list.js +1 -1
  33. package/dist/components/expandable/expandable.js +220 -25
  34. package/dist/components/input-field/input-field.js +7 -7
  35. package/dist/components/link-input/link-input.js +7 -7
  36. package/dist/components/list-box/list-box.js +1 -1
  37. package/dist/components/menu/menu.js +3 -3
  38. package/dist/components/modal/modal.js +4 -4
  39. package/dist/components/number-picker/number-picker.js +9 -9
  40. package/dist/components/options-panel/options-panel.js +1 -1
  41. package/dist/components/popover/popover.js +1 -1
  42. package/dist/components/radio/radio.js +13 -13
  43. package/dist/components/repeater/repeater.js +1 -1
  44. package/dist/components/responsive/mini-responsive.js +1 -1
  45. package/dist/components/select/async-multi-select.js +3 -3
  46. package/dist/components/select/async-single-select.js +2 -2
  47. package/dist/components/select/custom-select-default-components.js +1 -1
  48. package/dist/components/select/multi-select-components.js +1 -1
  49. package/dist/components/select/multi-select.js +3 -3
  50. package/dist/components/select/react-select-component-wrappers.js +1 -1
  51. package/dist/components/select/single-select.js +2 -2
  52. package/dist/components/select/v2/async-select.js +8 -8
  53. package/dist/components/select/v2/shared.js +2 -2
  54. package/dist/components/select/v2/single-select.js +17 -17
  55. package/dist/components/slider/column-config-slider.js +2 -2
  56. package/dist/components/slider/slider.js +3 -3
  57. package/dist/components/tabs/tabs.js +10 -10
  58. package/dist/components/toggle/switch.js +6 -6
  59. package/dist/components/toggle/toggle.js +1 -1
  60. package/dist/components/toggle-button/toggle-button.js +5 -5
  61. package/dist/components/tooltip/tooltip.js +5 -5
  62. package/dist/{context-BI3VdU0Z.js → context-KeRYAbEi.js} +1 -1
  63. package/dist/{focusSafely-Cl9cN7Qx.js → focusSafely-CZY36ssv.js} +1 -1
  64. package/dist/icons/icons.js +112 -0
  65. package/dist/{index-641ee5b8.esm-BclOH4xf.js → index-641ee5b8.esm-DEB-c58F.js} +62 -47
  66. package/dist/index-BYHhzLf-.js +444 -0
  67. package/dist/{multi-select-components-BGQBvx-z.js → multi-select-components-DM3GsNfb.js} +58 -2
  68. package/dist/{react-select-async.esm-B8kK0aL4.js → react-select-async.esm-Bq3N1-Wi.js} +3 -3
  69. package/dist/{react-select.esm-ucYwBxq5.js → react-select.esm-B38nY7_U.js} +3 -3
  70. package/dist/{textSelection-DDDNsS-g.js → textSelection-G2G-nukT.js} +1 -1
  71. package/dist/{useButton-CRKy9xk2.js → useButton-CFtcz1T6.js} +3 -3
  72. package/dist/{useEvent-D54lIBrO.js → useEvent-B0yfN_Zu.js} +1 -1
  73. package/dist/{useFocusRing-DKxoCzVD.js → useFocusRing-DMAlRYjX.js} +1 -1
  74. package/dist/{useFocusable-CPKTGWPn.js → useFocusable-BlkOMLma.js} +2 -2
  75. package/dist/{useFormReset-CTp--h9B.js → useFormReset-BAEM0o25.js} +1 -1
  76. package/dist/{useFormValidation-BNBrliSj.js → useFormValidation-BNzOc2t9.js} +2 -2
  77. package/dist/{useLabel-CzGdEzIq.js → useLabel-D6FSp5_M.js} +2 -2
  78. package/dist/{useLabels-eGSmZC_Z.js → useLabels-CraZ2Sej.js} +1 -1
  79. package/dist/{useListState-D7mE1Y00.js → useListState-C3dnPq2F.js} +1 -1
  80. package/dist/{useLocalizedStringFormatter-BBeUyA9l.js → useLocalizedStringFormatter-B73fhEA7.js} +1 -1
  81. package/dist/{useNumberField-BmEJmL3K.js → useNumberField-CQP9-nH5.js} +10 -10
  82. package/dist/{useNumberFormatter-CTY_UZxq.js → useNumberFormatter-Cdctl6fg.js} +1 -1
  83. package/dist/{usePress-BG9At5Lb.js → usePress-xTkcGUkt.js} +3 -3
  84. package/dist/{useSingleSelectListState-DeJEr7lC.js → useSingleSelectListState-BGXQSTy7.js} +2 -2
  85. package/dist/{useToggle-QlyoyPYv.js → useToggle-Dpw3WpSw.js} +4 -4
  86. package/dist/{useToggleState-C1mnFRiI.js → useToggleState-BSKwCUIW.js} +1 -1
  87. package/dist/{utils-BSxcP7tv.js → utils-BSLBwuuO.js} +7 -7
  88. package/package.json +22 -23
  89. package/dist/index-D0mHceYg.js +0 -28325
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { forwardRef, useContext, useLayoutEffect, useRef, useState, useMemo, useCallback, createContext } from "react";
3
- import { r as reactDomExports } from "./index-D0mHceYg.js";
3
+ import { r as reactDomExports } from "./index-BYHhzLf-.js";
4
4
  function _typeof(o) {
5
5
  "@babel/helpers - typeof";
6
6
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
@@ -628,7 +628,8 @@ var compat = function compat2(element) {
628
628
  element.length < 1) {
629
629
  return;
630
630
  }
631
- var value = element.value, parent = element.parent;
631
+ var value = element.value;
632
+ var parent = element.parent;
632
633
  var isImplicitRule = element.column === parent.column && element.line === parent.line;
633
634
  while (parent.type !== "rule") {
634
635
  parent = parent.parent;
@@ -1281,7 +1282,7 @@ function getRegisteredStyles(registered, registeredStyles, classNames2) {
1281
1282
  classNames2.split(" ").forEach(function(className) {
1282
1283
  if (registered[className] !== void 0) {
1283
1284
  registeredStyles.push(registered[className] + ";");
1284
- } else {
1285
+ } else if (className) {
1285
1286
  rawClassName += className + " ";
1286
1287
  }
1287
1288
  });
@@ -1440,14 +1441,14 @@ function handleInterpolation(mergedProps, registered, interpolation) {
1440
1441
  return "";
1441
1442
  }
1442
1443
  case "object": {
1443
- var keyframes3 = interpolation;
1444
- if (keyframes3.anim === 1) {
1444
+ var keyframes2 = interpolation;
1445
+ if (keyframes2.anim === 1) {
1445
1446
  cursor = {
1446
- name: keyframes3.name,
1447
- styles: keyframes3.styles,
1447
+ name: keyframes2.name,
1448
+ styles: keyframes2.styles,
1448
1449
  next: cursor
1449
1450
  };
1450
- return keyframes3.name;
1451
+ return keyframes2.name;
1451
1452
  }
1452
1453
  var serializedStyles = interpolation;
1453
1454
  if (serializedStyles.styles !== void 0) {
@@ -1524,7 +1525,7 @@ function createStringFromObject(mergedProps, registered, obj) {
1524
1525
  }
1525
1526
  return string;
1526
1527
  }
1527
- var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
1528
+ var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g;
1528
1529
  var cursor;
1529
1530
  function serializeStyles(args, registered, mergedProps) {
1530
1531
  if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
@@ -1590,9 +1591,9 @@ var hasOwn = {}.hasOwnProperty;
1590
1591
  var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__";
1591
1592
  var createEmotionProps = function createEmotionProps2(type, props) {
1592
1593
  var newProps = {};
1593
- for (var key in props) {
1594
- if (hasOwn.call(props, key)) {
1595
- newProps[key] = props[key];
1594
+ for (var _key in props) {
1595
+ if (hasOwn.call(props, _key)) {
1596
+ newProps[_key] = props[_key];
1596
1597
  }
1597
1598
  }
1598
1599
  newProps[typePropName] = type;
@@ -1606,40 +1607,37 @@ var Insertion = function Insertion2(_ref) {
1606
1607
  });
1607
1608
  return null;
1608
1609
  };
1609
- var Emotion = /* @__PURE__ */ withEmotionCache(
1610
- /* <any, any> */
1611
- function(props, cache, ref) {
1612
- var cssProp = props.css;
1613
- if (typeof cssProp === "string" && cache.registered[cssProp] !== void 0) {
1614
- cssProp = cache.registered[cssProp];
1615
- }
1616
- var WrappedComponent = props[typePropName];
1617
- var registeredStyles = [cssProp];
1618
- var className = "";
1619
- if (typeof props.className === "string") {
1620
- className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
1621
- } else if (props.className != null) {
1622
- className = props.className + " ";
1623
- }
1624
- var serialized = serializeStyles(registeredStyles, void 0, React.useContext(ThemeContext));
1625
- className += cache.key + "-" + serialized.name;
1626
- var newProps = {};
1627
- for (var key in props) {
1628
- if (hasOwn.call(props, key) && key !== "css" && key !== typePropName && !isDevelopment) {
1629
- newProps[key] = props[key];
1630
- }
1631
- }
1632
- newProps.className = className;
1633
- if (ref) {
1634
- newProps.ref = ref;
1610
+ var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
1611
+ var cssProp = props.css;
1612
+ if (typeof cssProp === "string" && cache.registered[cssProp] !== void 0) {
1613
+ cssProp = cache.registered[cssProp];
1614
+ }
1615
+ var WrappedComponent = props[typePropName];
1616
+ var registeredStyles = [cssProp];
1617
+ var className = "";
1618
+ if (typeof props.className === "string") {
1619
+ className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
1620
+ } else if (props.className != null) {
1621
+ className = props.className + " ";
1622
+ }
1623
+ var serialized = serializeStyles(registeredStyles, void 0, React.useContext(ThemeContext));
1624
+ className += cache.key + "-" + serialized.name;
1625
+ var newProps = {};
1626
+ for (var _key2 in props) {
1627
+ if (hasOwn.call(props, _key2) && _key2 !== "css" && _key2 !== typePropName && !isDevelopment) {
1628
+ newProps[_key2] = props[_key2];
1635
1629
  }
1636
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Insertion, {
1637
- cache,
1638
- serialized,
1639
- isStringTag: typeof WrappedComponent === "string"
1640
- }), /* @__PURE__ */ React.createElement(WrappedComponent, newProps));
1641
1630
  }
1642
- );
1631
+ newProps.className = className;
1632
+ if (ref) {
1633
+ newProps.ref = ref;
1634
+ }
1635
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Insertion, {
1636
+ cache,
1637
+ serialized,
1638
+ isStringTag: typeof WrappedComponent === "string"
1639
+ }), /* @__PURE__ */ React.createElement(WrappedComponent, newProps));
1640
+ });
1643
1641
  var Emotion$1 = Emotion;
1644
1642
  var jsx = function jsx2(type, props) {
1645
1643
  var args = arguments;
@@ -1655,13 +1653,18 @@ var jsx = function jsx2(type, props) {
1655
1653
  }
1656
1654
  return React.createElement.apply(null, createElementArgArray);
1657
1655
  };
1656
+ (function(_jsx) {
1657
+ var JSX;
1658
+ /* @__PURE__ */ (function(_JSX) {
1659
+ })(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
1660
+ })(jsx || (jsx = {}));
1658
1661
  function css$2() {
1659
1662
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1660
1663
  args[_key] = arguments[_key];
1661
1664
  }
1662
1665
  return serializeStyles(args);
1663
1666
  }
1664
- var keyframes = function keyframes2() {
1667
+ function keyframes() {
1665
1668
  var insertable = css$2.apply(void 0, arguments);
1666
1669
  var name = "animation-" + insertable.name;
1667
1670
  return {
@@ -1672,7 +1675,7 @@ var keyframes = function keyframes2() {
1672
1675
  return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
1673
1676
  }
1674
1677
  };
1675
- };
1678
+ }
1676
1679
  function _taggedTemplateLiteral(e, t) {
1677
1680
  return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
1678
1681
  raw: {
@@ -1706,6 +1709,9 @@ function rectToClientRect(rect) {
1706
1709
  y
1707
1710
  };
1708
1711
  }
1712
+ function hasWindow() {
1713
+ return typeof window !== "undefined";
1714
+ }
1709
1715
  function getNodeName(node2) {
1710
1716
  if (isNode(node2)) {
1711
1717
  return (node2.nodeName || "").toLowerCase();
@@ -1721,16 +1727,25 @@ function getDocumentElement(node2) {
1721
1727
  return (_ref = (isNode(node2) ? node2.ownerDocument : node2.document) || window.document) == null ? void 0 : _ref.documentElement;
1722
1728
  }
1723
1729
  function isNode(value) {
1730
+ if (!hasWindow()) {
1731
+ return false;
1732
+ }
1724
1733
  return value instanceof Node || value instanceof getWindow(value).Node;
1725
1734
  }
1726
1735
  function isElement(value) {
1736
+ if (!hasWindow()) {
1737
+ return false;
1738
+ }
1727
1739
  return value instanceof Element || value instanceof getWindow(value).Element;
1728
1740
  }
1729
1741
  function isHTMLElement(value) {
1742
+ if (!hasWindow()) {
1743
+ return false;
1744
+ }
1730
1745
  return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
1731
1746
  }
1732
1747
  function isShadowRoot(value) {
1733
- if (typeof ShadowRoot === "undefined") {
1748
+ if (!hasWindow() || typeof ShadowRoot === "undefined") {
1734
1749
  return false;
1735
1750
  }
1736
1751
  return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
@@ -0,0 +1,444 @@
1
+ import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.js";
2
+ import React__default from "react";
3
+ var reactDom = { exports: {} };
4
+ var reactDom_production = {};
5
+ /**
6
+ * @license React
7
+ * react-dom.production.js
8
+ *
9
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
10
+ *
11
+ * This source code is licensed under the MIT license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ */
14
+ var hasRequiredReactDom_production;
15
+ function requireReactDom_production() {
16
+ if (hasRequiredReactDom_production) return reactDom_production;
17
+ hasRequiredReactDom_production = 1;
18
+ var React = React__default;
19
+ function formatProdErrorMessage(code) {
20
+ var url = "https://react.dev/errors/" + code;
21
+ if (1 < arguments.length) {
22
+ url += "?args[]=" + encodeURIComponent(arguments[1]);
23
+ for (var i = 2; i < arguments.length; i++)
24
+ url += "&args[]=" + encodeURIComponent(arguments[i]);
25
+ }
26
+ return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
27
+ }
28
+ function noop() {
29
+ }
30
+ var Internals = {
31
+ d: {
32
+ f: noop,
33
+ r: function() {
34
+ throw Error(formatProdErrorMessage(522));
35
+ },
36
+ D: noop,
37
+ C: noop,
38
+ L: noop,
39
+ m: noop,
40
+ X: noop,
41
+ S: noop,
42
+ M: noop
43
+ },
44
+ p: 0,
45
+ findDOMNode: null
46
+ }, REACT_PORTAL_TYPE = Symbol.for("react.portal");
47
+ function createPortal$1(children, containerInfo, implementation) {
48
+ var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
49
+ return {
50
+ $$typeof: REACT_PORTAL_TYPE,
51
+ key: null == key ? null : "" + key,
52
+ children,
53
+ containerInfo,
54
+ implementation
55
+ };
56
+ }
57
+ var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
58
+ function getCrossOriginStringAs(as, input) {
59
+ if ("font" === as) return "";
60
+ if ("string" === typeof input)
61
+ return "use-credentials" === input ? input : "";
62
+ }
63
+ reactDom_production.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
64
+ reactDom_production.createPortal = function(children, container) {
65
+ var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
66
+ if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
67
+ throw Error(formatProdErrorMessage(299));
68
+ return createPortal$1(children, container, null, key);
69
+ };
70
+ reactDom_production.flushSync = function(fn) {
71
+ var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
72
+ try {
73
+ if (ReactSharedInternals.T = null, Internals.p = 2, fn) return fn();
74
+ } finally {
75
+ ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f();
76
+ }
77
+ };
78
+ reactDom_production.preconnect = function(href, options) {
79
+ "string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
80
+ };
81
+ reactDom_production.prefetchDNS = function(href) {
82
+ "string" === typeof href && Internals.d.D(href);
83
+ };
84
+ reactDom_production.preinit = function(href, options) {
85
+ if ("string" === typeof href && options && "string" === typeof options.as) {
86
+ var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
87
+ "style" === as ? Internals.d.S(
88
+ href,
89
+ "string" === typeof options.precedence ? options.precedence : void 0,
90
+ {
91
+ crossOrigin,
92
+ integrity,
93
+ fetchPriority
94
+ }
95
+ ) : "script" === as && Internals.d.X(href, {
96
+ crossOrigin,
97
+ integrity,
98
+ fetchPriority,
99
+ nonce: "string" === typeof options.nonce ? options.nonce : void 0
100
+ });
101
+ }
102
+ };
103
+ reactDom_production.preinitModule = function(href, options) {
104
+ if ("string" === typeof href)
105
+ if ("object" === typeof options && null !== options) {
106
+ if (null == options.as || "script" === options.as) {
107
+ var crossOrigin = getCrossOriginStringAs(
108
+ options.as,
109
+ options.crossOrigin
110
+ );
111
+ Internals.d.M(href, {
112
+ crossOrigin,
113
+ integrity: "string" === typeof options.integrity ? options.integrity : void 0,
114
+ nonce: "string" === typeof options.nonce ? options.nonce : void 0
115
+ });
116
+ }
117
+ } else null == options && Internals.d.M(href);
118
+ };
119
+ reactDom_production.preload = function(href, options) {
120
+ if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
121
+ var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
122
+ Internals.d.L(href, as, {
123
+ crossOrigin,
124
+ integrity: "string" === typeof options.integrity ? options.integrity : void 0,
125
+ nonce: "string" === typeof options.nonce ? options.nonce : void 0,
126
+ type: "string" === typeof options.type ? options.type : void 0,
127
+ fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
128
+ referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
129
+ imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
130
+ imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
131
+ media: "string" === typeof options.media ? options.media : void 0
132
+ });
133
+ }
134
+ };
135
+ reactDom_production.preloadModule = function(href, options) {
136
+ if ("string" === typeof href)
137
+ if (options) {
138
+ var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
139
+ Internals.d.m(href, {
140
+ as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
141
+ crossOrigin,
142
+ integrity: "string" === typeof options.integrity ? options.integrity : void 0
143
+ });
144
+ } else Internals.d.m(href);
145
+ };
146
+ reactDom_production.requestFormReset = function(form) {
147
+ Internals.d.r(form);
148
+ };
149
+ reactDom_production.unstable_batchedUpdates = function(fn, a) {
150
+ return fn(a);
151
+ };
152
+ reactDom_production.useFormState = function(action, initialState, permalink) {
153
+ return ReactSharedInternals.H.useFormState(action, initialState, permalink);
154
+ };
155
+ reactDom_production.useFormStatus = function() {
156
+ return ReactSharedInternals.H.useHostTransitionStatus();
157
+ };
158
+ reactDom_production.version = "19.0.0";
159
+ return reactDom_production;
160
+ }
161
+ var reactDom_development = {};
162
+ /**
163
+ * @license React
164
+ * react-dom.development.js
165
+ *
166
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
167
+ *
168
+ * This source code is licensed under the MIT license found in the
169
+ * LICENSE file in the root directory of this source tree.
170
+ */
171
+ var hasRequiredReactDom_development;
172
+ function requireReactDom_development() {
173
+ if (hasRequiredReactDom_development) return reactDom_development;
174
+ hasRequiredReactDom_development = 1;
175
+ "production" !== process.env.NODE_ENV && function() {
176
+ function noop() {
177
+ }
178
+ function testStringCoercion(value) {
179
+ return "" + value;
180
+ }
181
+ function createPortal$1(children, containerInfo, implementation) {
182
+ var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
183
+ try {
184
+ testStringCoercion(key);
185
+ var JSCompiler_inline_result = false;
186
+ } catch (e) {
187
+ JSCompiler_inline_result = true;
188
+ }
189
+ JSCompiler_inline_result && (console.error(
190
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
191
+ "function" === typeof Symbol && Symbol.toStringTag && key[Symbol.toStringTag] || key.constructor.name || "Object"
192
+ ), testStringCoercion(key));
193
+ return {
194
+ $$typeof: REACT_PORTAL_TYPE,
195
+ key: null == key ? null : "" + key,
196
+ children,
197
+ containerInfo,
198
+ implementation
199
+ };
200
+ }
201
+ function getCrossOriginStringAs(as, input) {
202
+ if ("font" === as) return "";
203
+ if ("string" === typeof input)
204
+ return "use-credentials" === input ? input : "";
205
+ }
206
+ function getValueDescriptorExpectingObjectForWarning(thing) {
207
+ return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : 'something with type "' + typeof thing + '"';
208
+ }
209
+ function getValueDescriptorExpectingEnumForWarning(thing) {
210
+ return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : "string" === typeof thing ? JSON.stringify(thing) : "number" === typeof thing ? "`" + thing + "`" : 'something with type "' + typeof thing + '"';
211
+ }
212
+ function resolveDispatcher() {
213
+ var dispatcher = ReactSharedInternals.H;
214
+ null === dispatcher && console.error(
215
+ "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
216
+ );
217
+ return dispatcher;
218
+ }
219
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
220
+ var React = React__default, Internals = {
221
+ d: {
222
+ f: noop,
223
+ r: function() {
224
+ throw Error(
225
+ "Invalid form element. requestFormReset must be passed a form that was rendered by React."
226
+ );
227
+ },
228
+ D: noop,
229
+ C: noop,
230
+ L: noop,
231
+ m: noop,
232
+ X: noop,
233
+ S: noop,
234
+ M: noop
235
+ },
236
+ p: 0,
237
+ findDOMNode: null
238
+ }, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
239
+ "function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error(
240
+ "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
241
+ );
242
+ reactDom_development.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
243
+ reactDom_development.createPortal = function(children, container) {
244
+ var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
245
+ if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
246
+ throw Error("Target container is not a DOM element.");
247
+ return createPortal$1(children, container, null, key);
248
+ };
249
+ reactDom_development.flushSync = function(fn) {
250
+ var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
251
+ try {
252
+ if (ReactSharedInternals.T = null, Internals.p = 2, fn)
253
+ return fn();
254
+ } finally {
255
+ ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f() && console.error(
256
+ "flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
257
+ );
258
+ }
259
+ };
260
+ reactDom_development.preconnect = function(href, options) {
261
+ "string" === typeof href && href ? null != options && "object" !== typeof options ? console.error(
262
+ "ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
263
+ getValueDescriptorExpectingEnumForWarning(options)
264
+ ) : null != options && "string" !== typeof options.crossOrigin && console.error(
265
+ "ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
266
+ getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
267
+ ) : console.error(
268
+ "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
269
+ getValueDescriptorExpectingObjectForWarning(href)
270
+ );
271
+ "string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
272
+ };
273
+ reactDom_development.prefetchDNS = function(href) {
274
+ if ("string" !== typeof href || !href)
275
+ console.error(
276
+ "ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
277
+ getValueDescriptorExpectingObjectForWarning(href)
278
+ );
279
+ else if (1 < arguments.length) {
280
+ var options = arguments[1];
281
+ "object" === typeof options && options.hasOwnProperty("crossOrigin") ? console.error(
282
+ "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
283
+ getValueDescriptorExpectingEnumForWarning(options)
284
+ ) : console.error(
285
+ "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
286
+ getValueDescriptorExpectingEnumForWarning(options)
287
+ );
288
+ }
289
+ "string" === typeof href && Internals.d.D(href);
290
+ };
291
+ reactDom_development.preinit = function(href, options) {
292
+ "string" === typeof href && href ? null == options || "object" !== typeof options ? console.error(
293
+ "ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
294
+ getValueDescriptorExpectingEnumForWarning(options)
295
+ ) : "style" !== options.as && "script" !== options.as && console.error(
296
+ 'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
297
+ getValueDescriptorExpectingEnumForWarning(options.as)
298
+ ) : console.error(
299
+ "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
300
+ getValueDescriptorExpectingObjectForWarning(href)
301
+ );
302
+ if ("string" === typeof href && options && "string" === typeof options.as) {
303
+ var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
304
+ "style" === as ? Internals.d.S(
305
+ href,
306
+ "string" === typeof options.precedence ? options.precedence : void 0,
307
+ {
308
+ crossOrigin,
309
+ integrity,
310
+ fetchPriority
311
+ }
312
+ ) : "script" === as && Internals.d.X(href, {
313
+ crossOrigin,
314
+ integrity,
315
+ fetchPriority,
316
+ nonce: "string" === typeof options.nonce ? options.nonce : void 0
317
+ });
318
+ }
319
+ };
320
+ reactDom_development.preinitModule = function(href, options) {
321
+ var encountered = "";
322
+ "string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
323
+ void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "script" !== options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingEnumForWarning(options.as) + ".");
324
+ if (encountered)
325
+ console.error(
326
+ "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
327
+ encountered
328
+ );
329
+ else
330
+ switch (encountered = options && "string" === typeof options.as ? options.as : "script", encountered) {
331
+ case "script":
332
+ break;
333
+ default:
334
+ encountered = getValueDescriptorExpectingEnumForWarning(encountered), console.error(
335
+ 'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
336
+ encountered,
337
+ href
338
+ );
339
+ }
340
+ if ("string" === typeof href)
341
+ if ("object" === typeof options && null !== options) {
342
+ if (null == options.as || "script" === options.as)
343
+ encountered = getCrossOriginStringAs(
344
+ options.as,
345
+ options.crossOrigin
346
+ ), Internals.d.M(href, {
347
+ crossOrigin: encountered,
348
+ integrity: "string" === typeof options.integrity ? options.integrity : void 0,
349
+ nonce: "string" === typeof options.nonce ? options.nonce : void 0
350
+ });
351
+ } else null == options && Internals.d.M(href);
352
+ };
353
+ reactDom_development.preload = function(href, options) {
354
+ var encountered = "";
355
+ "string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
356
+ null == options || "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : "string" === typeof options.as && options.as || (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
357
+ encountered && console.error(
358
+ 'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
359
+ encountered
360
+ );
361
+ if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
362
+ encountered = options.as;
363
+ var crossOrigin = getCrossOriginStringAs(
364
+ encountered,
365
+ options.crossOrigin
366
+ );
367
+ Internals.d.L(href, encountered, {
368
+ crossOrigin,
369
+ integrity: "string" === typeof options.integrity ? options.integrity : void 0,
370
+ nonce: "string" === typeof options.nonce ? options.nonce : void 0,
371
+ type: "string" === typeof options.type ? options.type : void 0,
372
+ fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
373
+ referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
374
+ imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
375
+ imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
376
+ media: "string" === typeof options.media ? options.media : void 0
377
+ });
378
+ }
379
+ };
380
+ reactDom_development.preloadModule = function(href, options) {
381
+ var encountered = "";
382
+ "string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
383
+ void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "string" !== typeof options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
384
+ encountered && console.error(
385
+ 'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
386
+ encountered
387
+ );
388
+ "string" === typeof href && (options ? (encountered = getCrossOriginStringAs(
389
+ options.as,
390
+ options.crossOrigin
391
+ ), Internals.d.m(href, {
392
+ as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
393
+ crossOrigin: encountered,
394
+ integrity: "string" === typeof options.integrity ? options.integrity : void 0
395
+ })) : Internals.d.m(href));
396
+ };
397
+ reactDom_development.requestFormReset = function(form) {
398
+ Internals.d.r(form);
399
+ };
400
+ reactDom_development.unstable_batchedUpdates = function(fn, a) {
401
+ return fn(a);
402
+ };
403
+ reactDom_development.useFormState = function(action, initialState, permalink) {
404
+ return resolveDispatcher().useFormState(action, initialState, permalink);
405
+ };
406
+ reactDom_development.useFormStatus = function() {
407
+ return resolveDispatcher().useHostTransitionStatus();
408
+ };
409
+ reactDom_development.version = "19.0.0";
410
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
411
+ }();
412
+ return reactDom_development;
413
+ }
414
+ var hasRequiredReactDom;
415
+ function requireReactDom() {
416
+ if (hasRequiredReactDom) return reactDom.exports;
417
+ hasRequiredReactDom = 1;
418
+ function checkDCE() {
419
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
420
+ return;
421
+ }
422
+ if (process.env.NODE_ENV !== "production") {
423
+ throw new Error("^_^");
424
+ }
425
+ try {
426
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
427
+ } catch (err) {
428
+ console.error(err);
429
+ }
430
+ }
431
+ if (process.env.NODE_ENV === "production") {
432
+ checkDCE();
433
+ reactDom.exports = requireReactDom_production();
434
+ } else {
435
+ reactDom.exports = requireReactDom_development();
436
+ }
437
+ return reactDom.exports;
438
+ }
439
+ var reactDomExports = requireReactDom();
440
+ const $dbSRa$reactdom = /* @__PURE__ */ getDefaultExportFromCjs(reactDomExports);
441
+ export {
442
+ $dbSRa$reactdom as $,
443
+ reactDomExports as r
444
+ };