@anoki/fse-ui 1.0.362 → 1.0.364

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 (186) hide show
  1. package/dist/index.cjs166.js +1 -1
  2. package/dist/index.cjs170.js +1 -1
  3. package/dist/index.cjs177.js +1 -1
  4. package/dist/index.cjs188.js +1 -1
  5. package/dist/index.cjs215.js +1 -1
  6. package/dist/index.cjs240.js +1 -1
  7. package/dist/index.cjs241.js +1 -1
  8. package/dist/index.cjs246.js +1 -1
  9. package/dist/index.cjs246.js.map +1 -1
  10. package/dist/index.cjs247.js +2 -0
  11. package/dist/index.cjs247.js.map +1 -0
  12. package/dist/index.cjs248.js +2 -0
  13. package/dist/index.cjs248.js.map +1 -0
  14. package/dist/index.cjs249.js +1 -1
  15. package/dist/index.cjs249.js.map +1 -1
  16. package/dist/index.cjs250.js +1 -1
  17. package/dist/index.cjs250.js.map +1 -1
  18. package/dist/index.cjs251.js +1 -1
  19. package/dist/index.cjs251.js.map +1 -1
  20. package/dist/index.cjs252.js +1 -1
  21. package/dist/index.cjs252.js.map +1 -1
  22. package/dist/index.cjs253.js +1 -1
  23. package/dist/index.cjs253.js.map +1 -1
  24. package/dist/index.cjs256.js +1 -1
  25. package/dist/index.cjs256.js.map +1 -1
  26. package/dist/index.cjs257.js +1 -1
  27. package/dist/index.cjs257.js.map +1 -1
  28. package/dist/index.cjs258.js +1 -1
  29. package/dist/index.cjs258.js.map +1 -1
  30. package/dist/index.cjs259.js +1 -1
  31. package/dist/index.cjs259.js.map +1 -1
  32. package/dist/index.cjs260.js +1 -1
  33. package/dist/index.cjs260.js.map +1 -1
  34. package/dist/index.cjs261.js +1 -1
  35. package/dist/index.cjs261.js.map +1 -1
  36. package/dist/index.cjs263.js +1 -1
  37. package/dist/index.cjs264.js +1 -1
  38. package/dist/index.cjs266.js +1 -1
  39. package/dist/index.cjs268.js +1 -1
  40. package/dist/index.cjs269.js +1 -1
  41. package/dist/index.cjs270.js +1 -1
  42. package/dist/index.cjs271.js +1 -1
  43. package/dist/index.cjs273.js +1 -1
  44. package/dist/index.cjs277.js +2 -0
  45. package/dist/index.cjs277.js.map +1 -0
  46. package/dist/index.cjs278.js +1 -1
  47. package/dist/index.cjs278.js.map +1 -1
  48. package/dist/index.cjs279.js +1 -1
  49. package/dist/index.cjs279.js.map +1 -1
  50. package/dist/index.cjs280.js +1 -1
  51. package/dist/index.cjs280.js.map +1 -1
  52. package/dist/index.cjs281.js +1 -1
  53. package/dist/index.cjs281.js.map +1 -1
  54. package/dist/{index.cjs275.js → index.cjs288.js} +2 -2
  55. package/dist/{index.cjs275.js.map → index.cjs288.js.map} +1 -1
  56. package/dist/index.cjs295.js +1 -1
  57. package/dist/index.cjs295.js.map +1 -1
  58. package/dist/{index.cjs292.js → index.cjs296.js} +1 -1
  59. package/dist/{index.cjs292.js.map → index.cjs296.js.map} +1 -1
  60. package/dist/{index.cjs293.js → index.cjs297.js} +2 -2
  61. package/dist/{index.cjs293.js.map → index.cjs297.js.map} +1 -1
  62. package/dist/{index.cjs294.js → index.cjs298.js} +2 -2
  63. package/dist/{index.cjs294.js.map → index.cjs298.js.map} +1 -1
  64. package/dist/index.cjs299.js +1 -1
  65. package/dist/index.cjs299.js.map +1 -1
  66. package/dist/index.cjs300.js +1 -1
  67. package/dist/index.cjs300.js.map +1 -1
  68. package/dist/index.cjs301.js +1 -1
  69. package/dist/index.cjs301.js.map +1 -1
  70. package/dist/index.cjs302.js +1 -1
  71. package/dist/index.cjs302.js.map +1 -1
  72. package/dist/index.cjs303.js +1 -1
  73. package/dist/index.cjs303.js.map +1 -1
  74. package/dist/index.cjs305.js +1 -1
  75. package/dist/index.cjs307.js +1 -1
  76. package/dist/index.cjs308.js +1 -1
  77. package/dist/index.cjs312.js +1 -38
  78. package/dist/index.cjs312.js.map +1 -1
  79. package/dist/index.cjs313.js +38 -1
  80. package/dist/index.cjs313.js.map +1 -1
  81. package/dist/index.cjs314.js +1 -1
  82. package/dist/index.cjs314.js.map +1 -1
  83. package/dist/index.cjs315.js +1 -1
  84. package/dist/index.cjs315.js.map +1 -1
  85. package/dist/index.cjs316.js +1 -1
  86. package/dist/index.cjs316.js.map +1 -1
  87. package/dist/index.es166.js +7 -7
  88. package/dist/index.es170.js +1 -1
  89. package/dist/index.es177.js +8 -8
  90. package/dist/index.es188.js +11 -11
  91. package/dist/index.es215.js +7 -7
  92. package/dist/index.es240.js +1 -1
  93. package/dist/index.es241.js +1 -1
  94. package/dist/index.es246.js +7 -15
  95. package/dist/index.es246.js.map +1 -1
  96. package/dist/index.es247.js +30 -0
  97. package/dist/index.es247.js.map +1 -0
  98. package/dist/index.es248.js +71 -0
  99. package/dist/index.es248.js.map +1 -0
  100. package/dist/index.es249.js +29 -6
  101. package/dist/index.es249.js.map +1 -1
  102. package/dist/index.es250.js +32 -26
  103. package/dist/index.es250.js.map +1 -1
  104. package/dist/index.es251.js +617 -63
  105. package/dist/index.es251.js.map +1 -1
  106. package/dist/index.es252.js +10 -29
  107. package/dist/index.es252.js.map +1 -1
  108. package/dist/index.es253.js +15 -33
  109. package/dist/index.es253.js.map +1 -1
  110. package/dist/index.es256.js +6 -2
  111. package/dist/index.es256.js.map +1 -1
  112. package/dist/index.es257.js +25 -2
  113. package/dist/index.es257.js.map +1 -1
  114. package/dist/index.es258.js +68 -5
  115. package/dist/index.es258.js.map +1 -1
  116. package/dist/index.es259.js +29 -25
  117. package/dist/index.es259.js.map +1 -1
  118. package/dist/index.es260.js +2 -69
  119. package/dist/index.es260.js.map +1 -1
  120. package/dist/index.es261.js +2 -29
  121. package/dist/index.es261.js.map +1 -1
  122. package/dist/index.es263.js +1 -1
  123. package/dist/index.es264.js +2 -2
  124. package/dist/index.es266.js +4 -4
  125. package/dist/index.es268.js +2 -2
  126. package/dist/index.es269.js +7 -7
  127. package/dist/index.es270.js +1 -1
  128. package/dist/index.es271.js +6 -6
  129. package/dist/index.es273.js +3 -3
  130. package/dist/index.es277.js +128 -0
  131. package/dist/index.es277.js.map +1 -0
  132. package/dist/index.es278.js +126 -116
  133. package/dist/index.es278.js.map +1 -1
  134. package/dist/index.es279.js +13 -134
  135. package/dist/index.es279.js.map +1 -1
  136. package/dist/index.es280.js +33 -14
  137. package/dist/index.es280.js.map +1 -1
  138. package/dist/index.es281.js +41 -32
  139. package/dist/index.es281.js.map +1 -1
  140. package/dist/{index.es275.js → index.es288.js} +2 -2
  141. package/dist/{index.es275.js.map → index.es288.js.map} +1 -1
  142. package/dist/index.es295.js +28 -392
  143. package/dist/index.es295.js.map +1 -1
  144. package/dist/{index.es292.js → index.es296.js} +1 -1
  145. package/dist/{index.es292.js.map → index.es296.js.map} +1 -1
  146. package/dist/{index.es293.js → index.es297.js} +3 -3
  147. package/dist/{index.es293.js.map → index.es297.js.map} +1 -1
  148. package/dist/{index.es294.js → index.es298.js} +2 -2
  149. package/dist/{index.es294.js.map → index.es298.js.map} +1 -1
  150. package/dist/index.es299.js +392 -28
  151. package/dist/index.es299.js.map +1 -1
  152. package/dist/index.es300.js +40 -23
  153. package/dist/index.es300.js.map +1 -1
  154. package/dist/index.es301.js +24 -28
  155. package/dist/index.es301.js.map +1 -1
  156. package/dist/index.es302.js +29 -5
  157. package/dist/index.es302.js.map +1 -1
  158. package/dist/index.es303.js +5 -42
  159. package/dist/index.es303.js.map +1 -1
  160. package/dist/index.es305.js +1 -1
  161. package/dist/index.es307.js +5 -5
  162. package/dist/index.es308.js +1 -1
  163. package/dist/index.es312.js +65 -69
  164. package/dist/index.es312.js.map +1 -1
  165. package/dist/index.es313.js +68 -8
  166. package/dist/index.es313.js.map +1 -1
  167. package/dist/index.es314.js +9 -14
  168. package/dist/index.es314.js.map +1 -1
  169. package/dist/index.es315.js +14 -62
  170. package/dist/index.es315.js.map +1 -1
  171. package/dist/index.es316.js +61 -64
  172. package/dist/index.es316.js.map +1 -1
  173. package/dist/sections/Services/Services.css +1 -1
  174. package/package.json +1 -1
  175. package/dist/index.cjs254.js +0 -2
  176. package/dist/index.cjs254.js.map +0 -1
  177. package/dist/index.cjs255.js +0 -2
  178. package/dist/index.cjs255.js.map +0 -1
  179. package/dist/index.cjs282.js +0 -2
  180. package/dist/index.cjs282.js.map +0 -1
  181. package/dist/index.es254.js +0 -625
  182. package/dist/index.es254.js.map +0 -1
  183. package/dist/index.es255.js +0 -14
  184. package/dist/index.es255.js.map +0 -1
  185. package/dist/index.es282.js +0 -45
  186. package/dist/index.es282.js.map +0 -1
@@ -1,36 +1,45 @@
1
- import * as n from "react";
2
- import * as p from "react-dom";
3
- import { Slot as f } from "./index.es282.js";
4
- import { j as u } from "./index.es141.js";
5
- var c = [
6
- "a",
7
- "button",
8
- "div",
9
- "form",
10
- "h2",
11
- "h3",
12
- "img",
13
- "input",
14
- "label",
15
- "li",
16
- "nav",
17
- "ol",
18
- "p",
19
- "span",
20
- "svg",
21
- "ul"
22
- ], v = c.reduce((r, i) => {
23
- const t = n.forwardRef((o, e) => {
24
- const { asChild: s, ...m } = o, a = s ? f : i;
25
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(a, { ...m, ref: e });
26
- });
27
- return t.displayName = `Primitive.${i}`, { ...r, [i]: t };
28
- }, {});
29
- function h(r, i) {
30
- r && p.flushSync(() => r.dispatchEvent(i));
1
+ import * as l from "react";
2
+ import { composeRefs as u } from "./index.es247.js";
3
+ import { j as c } from "./index.es141.js";
4
+ var d = l.forwardRef((r, n) => {
5
+ const { children: e, ...t } = r, o = l.Children.toArray(e), i = o.find(g);
6
+ if (i) {
7
+ const s = i.props.children, a = o.map((p) => p === i ? l.Children.count(s) > 1 ? l.Children.only(null) : l.isValidElement(s) ? s.props.children : null : p);
8
+ return /* @__PURE__ */ c.jsx(f, { ...t, ref: n, children: l.isValidElement(s) ? l.cloneElement(s, void 0, a) : null });
9
+ }
10
+ return /* @__PURE__ */ c.jsx(f, { ...t, ref: n, children: e });
11
+ });
12
+ d.displayName = "Slot";
13
+ var f = l.forwardRef((r, n) => {
14
+ const { children: e, ...t } = r;
15
+ if (l.isValidElement(e)) {
16
+ const o = h(e), i = y(t, e.props);
17
+ return e.type !== l.Fragment && (i.ref = n ? u(n, o) : o), l.cloneElement(e, i);
18
+ }
19
+ return l.Children.count(e) > 1 ? l.Children.only(null) : null;
20
+ });
21
+ f.displayName = "SlotClone";
22
+ var m = ({ children: r }) => /* @__PURE__ */ c.jsx(c.Fragment, { children: r });
23
+ function g(r) {
24
+ return l.isValidElement(r) && r.type === m;
25
+ }
26
+ function y(r, n) {
27
+ const e = { ...n };
28
+ for (const t in n) {
29
+ const o = r[t], i = n[t];
30
+ /^on[A-Z]/.test(t) ? o && i ? e[t] = (...a) => {
31
+ i(...a), o(...a);
32
+ } : o && (e[t] = o) : t === "style" ? e[t] = { ...o, ...i } : t === "className" && (e[t] = [o, i].filter(Boolean).join(" "));
33
+ }
34
+ return { ...r, ...e };
35
+ }
36
+ function h(r) {
37
+ var t, o;
38
+ let n = (t = Object.getOwnPropertyDescriptor(r.props, "ref")) == null ? void 0 : t.get, e = n && "isReactWarning" in n && n.isReactWarning;
39
+ return e ? r.ref : (n = (o = Object.getOwnPropertyDescriptor(r, "ref")) == null ? void 0 : o.get, e = n && "isReactWarning" in n && n.isReactWarning, e ? r.props.ref : r.props.ref || r.ref);
31
40
  }
32
41
  export {
33
- v as Primitive,
34
- h as dispatchDiscreteCustomEvent
42
+ d as Slot,
43
+ m as Slottable
35
44
  };
36
45
  //# sourceMappingURL=index.es281.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es281.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.mjs"],"sourcesContent":["// packages/react/primitive/src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NODES","Primitive","primitive","node","Node","React","props","forwardedRef","asChild","primitiveProps","Comp","Slot","jsx","dispatchDiscreteCustomEvent","target","event","ReactDOM"],"mappings":";;;;AAKA,IAAIA,IAAQ;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GACIC,IAAYD,EAAM,OAAO,CAACE,GAAWC,MAAS;AAChD,QAAMC,IAAOC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACrD,UAAM,EAAE,SAAAC,GAAS,GAAGC,EAAc,IAAKH,GACjCI,IAAOF,IAAUG,IAAOR;AAC9B,WAAI,OAAO,SAAW,QACpB,OAAO,OAAO,IAAI,UAAU,CAAC,IAAI,KAEZS,gBAAAA,EAAAA,IAAIF,GAAM,EAAE,GAAGD,GAAgB,KAAKF,GAAc;AAAA,EAC7E,CAAG;AACD,SAAAH,EAAK,cAAc,aAAaD,CAAI,IAC7B,EAAE,GAAGD,GAAW,CAACC,CAAI,GAAGC,EAAM;AACvC,GAAG,CAAE,CAAA;AACL,SAASS,EAA4BC,GAAQC,GAAO;AAClD,EAAID,KAAQE,EAAS,UAAU,MAAMF,EAAO,cAAcC,CAAK,CAAC;AAClE;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es281.js","sources":["../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\nvar Slot = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n});\nSlot.displayName = \"Slot\";\nvar SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n});\nSlotClone.displayName = \"SlotClone\";\nvar Slottable = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n};\nfunction isSlottable(child) {\n return React.isValidElement(child) && child.type === Slottable;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Slot;\nexport {\n Root,\n Slot,\n Slottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Slot","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","SlotClone","childrenRef","getElementRef","props2","mergeProps","composeRefs","Slottable","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":";;;AAIG,IAACA,IAAOC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACnD,QAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH,GAC7BI,IAAgBL,EAAM,SAAS,QAAQG,CAAQ,GAC/CG,IAAYD,EAAc,KAAKE,CAAW;AAChD,MAAID,GAAW;AACb,UAAME,IAAaF,EAAU,MAAM,UAC7BG,IAAcJ,EAAc,IAAI,CAACK,MACjCA,MAAUJ,IACRN,EAAM,SAAS,MAAMQ,CAAU,IAAI,IAAUR,EAAM,SAAS,KAAK,IA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H,EAAcC,CAAQ,IAAI,IAAIG,MAAS;AACrC,MAAAD,EAAe,GAAGC,CAAI,GACtBF,EAAc,GAAGE,CAAI;AAAA,IACtB,IACQF,MACTF,EAAcC,CAAQ,IAAIC,KAEnBD,MAAa,UACtBD,EAAcC,CAAQ,IAAI,EAAE,GAAGC,GAAe,GAAGC,EAAgB,IACxDF,MAAa,gBACtBD,EAAcC,CAAQ,IAAI,CAACC,GAAeC,CAAc,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,EAExF;AACE,SAAO,EAAE,GAAGpB,GAAW,GAAGiB,EAAe;AAC3C;AACA,SAASP,EAAcY,GAAS;;AAC9B,MAAIC,KAASC,IAAA,OAAO,yBAAyBF,EAAQ,OAAO,KAAK,MAApD,gBAAAE,EAAuD,KAChEC,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO;AAC7D,SAAIE,IACKH,EAAQ,OAEjBC,KAASG,IAAA,OAAO,yBAAyBJ,GAAS,KAAK,MAA9C,gBAAAI,EAAiD,KAC1DD,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO,gBACrDE,IACKH,EAAQ,MAAM,MAEhBA,EAAQ,MAAM,OAAOA,EAAQ;AACtC;","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
1
  import * as l from "react";
2
- import { composeRefs as u } from "./index.es250.js";
2
+ import { composeRefs as u } from "./index.es247.js";
3
3
  import { j as c } from "./index.es141.js";
4
4
  var d = l.forwardRef((r, n) => {
5
5
  const { children: e, ...t } = r, o = l.Children.toArray(e), i = o.find(g);
@@ -42,4 +42,4 @@ export {
42
42
  d as Slot,
43
43
  m as Slottable
44
44
  };
45
- //# sourceMappingURL=index.es275.js.map
45
+ //# sourceMappingURL=index.es288.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es275.js","sources":["../node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\nvar Slot = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n});\nSlot.displayName = \"Slot\";\nvar SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n});\nSlotClone.displayName = \"SlotClone\";\nvar Slottable = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n};\nfunction isSlottable(child) {\n return React.isValidElement(child) && child.type === Slottable;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Slot;\nexport {\n Root,\n Slot,\n Slottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Slot","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","SlotClone","childrenRef","getElementRef","props2","mergeProps","composeRefs","Slottable","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":";;;AAIG,IAACA,IAAOC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACnD,QAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH,GAC7BI,IAAgBL,EAAM,SAAS,QAAQG,CAAQ,GAC/CG,IAAYD,EAAc,KAAKE,CAAW;AAChD,MAAID,GAAW;AACb,UAAME,IAAaF,EAAU,MAAM,UAC7BG,IAAcJ,EAAc,IAAI,CAACK,MACjCA,MAAUJ,IACRN,EAAM,SAAS,MAAMQ,CAAU,IAAI,IAAUR,EAAM,SAAS,KAAK,IAAI,IAClEA,EAAM,eAAeQ,CAAU,IAAIA,EAAW,MAAM,WAAW,OAE/DE,CAEV;AACD,WAAuBC,gBAAAA,EAAAA,IAAIC,GAAW,EAAE,GAAGR,GAAW,KAAKF,GAAc,UAAUF,EAAM,eAAeQ,CAAU,IAAIR,EAAM,aAAaQ,GAAY,QAAQC,CAAW,IAAI,MAAM;AAAA,EACtL;AACE,SAAuBE,gBAAAA,EAAAA,IAAIC,GAAW,EAAE,GAA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OAAO,EAAE,KAAK,GAAG;AAAA,EAExF;AACE,SAAO,EAAE,GAAGpB,GAAW,GAAGiB,EAAe;AAC3C;AACA,SAASP,EAAcY,GAAS;;AAC9B,MAAIC,KAASC,IAAA,OAAO,yBAAyBF,EAAQ,OAAO,KAAK,MAApD,gBAAAE,EAAuD,KAChEC,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO;AAC7D,SAAIE,IACKH,EAAQ,OAEjBC,KAASG,IAAA,OAAO,yBAAyBJ,GAAS,KAAK,MAA9C,gBAAAI,EAAiD,KAC1DD,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO,gBACrDE,IACKH,EAAQ,MAAM,MAEhBA,EAAQ,MAAM,OAAOA,EAAQ;AACtC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es288.js","sources":["../node_modules/@radix-ui/react-checkbox/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\nvar Slot = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n});\nSlot.displayName = \"Slot\";\nvar SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n});\nSlotClone.displayName = \"SlotClone\";\nvar Slottable = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n};\nfunction isSlottable(child) {\n return React.isValidElement(child) && child.type === Slottable;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Slot;\nexport {\n Root,\n Slot,\n Slottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Slot","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","SlotClone","childrenRef","getElementRef","props2","mergeProps","composeRefs","Slottable","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":";;;AAIG,IAACA,IAAOC,EA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AAAhB,GAAU;AAEpD,SAASI,EAAYG,GAAO;AAC1B,SAAOV,EAAM,eAAeU,CAAK,KAAKA,EAAM,SAASQ;AACvD;AACA,SAASF,EAAWZ,GAAWgB,GAAY;AACzC,QAAMC,IAAgB,EAAE,GAAGD,EAAY;AACvC,aAAWE,KAAYF,GAAY;AACjC,UAAMG,IAAgBnB,EAAUkB,CAAQ,GAClCE,IAAiBJ,EAAWE,CAAQ;AAE1C,IADkB,WAAW,KAAKA,CAAQ,IAEpCC,KAAiBC,IACnBH,EAAcC,CAAQ,IAAI,IAAIG,MAAS;AACrC,MAAAD,EAAe,GAAGC,CAAI,GACtBF,EAAc,GAAGE,CAAI;AAAA,IACtB,IACQF,MACTF,EAAcC,CAAQ,IAAIC,KAEnBD,MAAa,UACtBD,EAAcC,CAAQ,IAAI,EAAE,GAAGC,GAAe,GAAGC,EAAgB,IACxDF,MAAa,gBACtBD,EAAcC,CAAQ,IAAI,CAACC,GAAeC,CAAc,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,EAExF;AACE,SAAO,EAAE,GAAGpB,GAAW,GAAGiB,EAAe;AAC3C;AACA,SAASP,EAAcY,GAAS;;AAC9B,MAAIC,KAASC,IAAA,OAAO,yBAAyBF,EAAQ,OAAO,KAAK,MAApD,gBAAAE,EAAuD,KAChEC,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO;AAC7D,SAAIE,IACKH,EAAQ,OAEjBC,KAASG,IAAA,OAAO,yBAAyBJ,GAAS,KAAK,MAA9C,gBAAAI,EAAiD,KAC1DD,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO,gBACrDE,IACKH,EAAQ,MAAM,MAEhBA,EAAQ,MAAM,OAAOA,EAAQ;AACtC;","x_google_ignoreList":[0]}
@@ -1,396 +1,32 @@
1
- import { offset as ot, shift as st, flip as rt, size as ct, hide as lt, computePosition as ft, arrow as ut, limitShift as ht } from "./index.es309.js";
2
- import { createCoords as m, rectToClientRect as J, round as A, floor as D, max as E, min as V } from "./index.es310.js";
3
- import { getOverflowAncestors as $, isElement as v, getWindow as L, getFrameElement as K, getComputedStyle as R, getDocumentElement as O, isHTMLElement as b, isWebKit as Q, isTopLayer as S, getNodeName as M, isOverflowElement as _, getNodeScroll as N, getParentNode as W, isLastTraversableNode as H, isTableElement as dt, isContainingBlock as Y, getContainingBlock as at } from "./index.es311.js";
4
- function Z(t) {
5
- const e = R(t);
6
- let n = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
7
- const o = b(t), r = o ? t.offsetWidth : n, s = o ? t.offsetHeight : i, c = A(n) !== r || A(i) !== s;
8
- return c && (n = r, i = s), {
9
- width: n,
10
- height: i,
11
- $: c
12
- };
13
- }
14
- function q(t) {
15
- return v(t) ? t : t.contextElement;
16
- }
17
- function F(t) {
18
- const e = q(t);
19
- if (!b(e))
20
- return m(1);
21
- const n = e.getBoundingClientRect(), {
22
- width: i,
23
- height: o,
24
- $: r
25
- } = Z(e);
26
- let s = (r ? A(n.width) : n.width) / i, c = (r ? A(n.height) : n.height) / o;
27
- return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
28
- x: s,
29
- y: c
30
- };
31
- }
32
- const gt = /* @__PURE__ */ m(0);
33
- function X(t) {
34
- const e = L(t);
35
- return !Q() || !e.visualViewport ? gt : {
36
- x: e.visualViewport.offsetLeft,
37
- y: e.visualViewport.offsetTop
38
- };
39
- }
40
- function pt(t, e, n) {
41
- return e === void 0 && (e = !1), !n || e && n !== L(t) ? !1 : e;
42
- }
43
- function T(t, e, n, i) {
44
- e === void 0 && (e = !1), n === void 0 && (n = !1);
45
- const o = t.getBoundingClientRect(), r = q(t);
46
- let s = m(1);
47
- e && (i ? v(i) && (s = F(i)) : s = F(t));
48
- const c = pt(r, n, i) ? X(r) : m(0);
49
- let l = (o.left + c.x) / s.x, f = (o.top + c.y) / s.y, u = o.width / s.x, h = o.height / s.y;
50
- if (r) {
51
- const p = L(r), d = i && v(i) ? L(i) : i;
52
- let y = p, g = K(y);
53
- for (; g && i && d !== y; ) {
54
- const w = F(g), a = g.getBoundingClientRect(), x = R(g), C = a.left + (g.clientLeft + parseFloat(x.paddingLeft)) * w.x, B = a.top + (g.clientTop + parseFloat(x.paddingTop)) * w.y;
55
- l *= w.x, f *= w.y, u *= w.x, h *= w.y, l += C, f += B, y = L(g), g = K(y);
56
- }
57
- }
58
- return J({
59
- width: u,
60
- height: h,
61
- x: l,
62
- y: f
1
+ import * as s from "react";
2
+ import "react-dom";
3
+ import { Slot as n } from "./index.es300.js";
4
+ import { j as f } from "./index.es141.js";
5
+ var u = [
6
+ "a",
7
+ "button",
8
+ "div",
9
+ "form",
10
+ "h2",
11
+ "h3",
12
+ "img",
13
+ "input",
14
+ "label",
15
+ "li",
16
+ "nav",
17
+ "ol",
18
+ "p",
19
+ "span",
20
+ "svg",
21
+ "ul"
22
+ ], c = u.reduce((o, r) => {
23
+ const i = s.forwardRef((t, e) => {
24
+ const { asChild: m, ...a } = t, p = m ? n : r;
25
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f.jsx(p, { ...a, ref: e });
63
26
  });
64
- }
65
- function k(t, e) {
66
- const n = N(t).scrollLeft;
67
- return e ? e.left + n : T(O(t)).left + n;
68
- }
69
- function tt(t, e, n) {
70
- n === void 0 && (n = !1);
71
- const i = t.getBoundingClientRect(), o = i.left + e.scrollLeft - (n ? 0 : (
72
- // RTL <body> scrollbar.
73
- k(t, i)
74
- )), r = i.top + e.scrollTop;
75
- return {
76
- x: o,
77
- y: r
78
- };
79
- }
80
- function wt(t) {
81
- let {
82
- elements: e,
83
- rect: n,
84
- offsetParent: i,
85
- strategy: o
86
- } = t;
87
- const r = o === "fixed", s = O(i), c = e ? S(e.floating) : !1;
88
- if (i === s || c && r)
89
- return n;
90
- let l = {
91
- scrollLeft: 0,
92
- scrollTop: 0
93
- }, f = m(1);
94
- const u = m(0), h = b(i);
95
- if ((h || !h && !r) && ((M(i) !== "body" || _(s)) && (l = N(i)), b(i))) {
96
- const d = T(i);
97
- f = F(i), u.x = d.x + i.clientLeft, u.y = d.y + i.clientTop;
98
- }
99
- const p = s && !h && !r ? tt(s, l, !0) : m(0);
100
- return {
101
- width: n.width * f.x,
102
- height: n.height * f.y,
103
- x: n.x * f.x - l.scrollLeft * f.x + u.x + p.x,
104
- y: n.y * f.y - l.scrollTop * f.y + u.y + p.y
105
- };
106
- }
107
- function mt(t) {
108
- return Array.from(t.getClientRects());
109
- }
110
- function yt(t) {
111
- const e = O(t), n = N(t), i = t.ownerDocument.body, o = E(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), r = E(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
112
- let s = -n.scrollLeft + k(t);
113
- const c = -n.scrollTop;
114
- return R(i).direction === "rtl" && (s += E(e.clientWidth, i.clientWidth) - o), {
115
- width: o,
116
- height: r,
117
- x: s,
118
- y: c
119
- };
120
- }
121
- function xt(t, e) {
122
- const n = L(t), i = O(t), o = n.visualViewport;
123
- let r = i.clientWidth, s = i.clientHeight, c = 0, l = 0;
124
- if (o) {
125
- r = o.width, s = o.height;
126
- const f = Q();
127
- (!f || f && e === "fixed") && (c = o.offsetLeft, l = o.offsetTop);
128
- }
129
- return {
130
- width: r,
131
- height: s,
132
- x: c,
133
- y: l
134
- };
135
- }
136
- function vt(t, e) {
137
- const n = T(t, !0, e === "fixed"), i = n.top + t.clientTop, o = n.left + t.clientLeft, r = b(t) ? F(t) : m(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = o * r.x, f = i * r.y;
138
- return {
139
- width: s,
140
- height: c,
141
- x: l,
142
- y: f
143
- };
144
- }
145
- function j(t, e, n) {
146
- let i;
147
- if (e === "viewport")
148
- i = xt(t, n);
149
- else if (e === "document")
150
- i = yt(O(t));
151
- else if (v(e))
152
- i = vt(e, n);
153
- else {
154
- const o = X(t);
155
- i = {
156
- x: e.x - o.x,
157
- y: e.y - o.y,
158
- width: e.width,
159
- height: e.height
160
- };
161
- }
162
- return J(i);
163
- }
164
- function et(t, e) {
165
- const n = W(t);
166
- return n === e || !v(n) || H(n) ? !1 : R(n).position === "fixed" || et(n, e);
167
- }
168
- function Rt(t, e) {
169
- const n = e.get(t);
170
- if (n)
171
- return n;
172
- let i = $(t, [], !1).filter((c) => v(c) && M(c) !== "body"), o = null;
173
- const r = R(t).position === "fixed";
174
- let s = r ? W(t) : t;
175
- for (; v(s) && !H(s); ) {
176
- const c = R(s), l = Y(s);
177
- !l && c.position === "fixed" && (o = null), (r ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || _(s) && !l && et(t, s)) ? i = i.filter((u) => u !== s) : o = c, s = W(s);
178
- }
179
- return e.set(t, i), i;
180
- }
181
- function Ot(t) {
182
- let {
183
- element: e,
184
- boundary: n,
185
- rootBoundary: i,
186
- strategy: o
187
- } = t;
188
- const s = [...n === "clippingAncestors" ? S(e) ? [] : Rt(e, this._c) : [].concat(n), i], c = s[0], l = s.reduce((f, u) => {
189
- const h = j(e, u, o);
190
- return f.top = E(h.top, f.top), f.right = V(h.right, f.right), f.bottom = V(h.bottom, f.bottom), f.left = E(h.left, f.left), f;
191
- }, j(e, c, o));
192
- return {
193
- width: l.right - l.left,
194
- height: l.bottom - l.top,
195
- x: l.left,
196
- y: l.top
197
- };
198
- }
199
- function bt(t) {
200
- const {
201
- width: e,
202
- height: n
203
- } = Z(t);
204
- return {
205
- width: e,
206
- height: n
207
- };
208
- }
209
- function Ct(t, e, n) {
210
- const i = b(e), o = O(e), r = n === "fixed", s = T(t, !0, r, e);
211
- let c = {
212
- scrollLeft: 0,
213
- scrollTop: 0
214
- };
215
- const l = m(0);
216
- if (i || !i && !r)
217
- if ((M(e) !== "body" || _(o)) && (c = N(e)), i) {
218
- const p = T(e, !0, r, e);
219
- l.x = p.x + e.clientLeft, l.y = p.y + e.clientTop;
220
- } else o && (l.x = k(o));
221
- const f = o && !i && !r ? tt(o, c) : m(0), u = s.left + c.scrollLeft - l.x - f.x, h = s.top + c.scrollTop - l.y - f.y;
222
- return {
223
- x: u,
224
- y: h,
225
- width: s.width,
226
- height: s.height
227
- };
228
- }
229
- function I(t) {
230
- return R(t).position === "static";
231
- }
232
- function G(t, e) {
233
- if (!b(t) || R(t).position === "fixed")
234
- return null;
235
- if (e)
236
- return e(t);
237
- let n = t.offsetParent;
238
- return O(t) === n && (n = n.ownerDocument.body), n;
239
- }
240
- function nt(t, e) {
241
- const n = L(t);
242
- if (S(t))
243
- return n;
244
- if (!b(t)) {
245
- let o = W(t);
246
- for (; o && !H(o); ) {
247
- if (v(o) && !I(o))
248
- return o;
249
- o = W(o);
250
- }
251
- return n;
252
- }
253
- let i = G(t, e);
254
- for (; i && dt(i) && I(i); )
255
- i = G(i, e);
256
- return i && H(i) && I(i) && !Y(i) ? n : i || at(t) || n;
257
- }
258
- const Lt = async function(t) {
259
- const e = this.getOffsetParent || nt, n = this.getDimensions, i = await n(t.floating);
260
- return {
261
- reference: Ct(t.reference, await e(t.floating), t.strategy),
262
- floating: {
263
- x: 0,
264
- y: 0,
265
- width: i.width,
266
- height: i.height
267
- }
268
- };
269
- };
270
- function Tt(t) {
271
- return R(t).direction === "rtl";
272
- }
273
- const Et = {
274
- convertOffsetParentRelativeRectToViewportRelativeRect: wt,
275
- getDocumentElement: O,
276
- getClippingRect: Ot,
277
- getOffsetParent: nt,
278
- getElementRects: Lt,
279
- getClientRects: mt,
280
- getDimensions: bt,
281
- getScale: F,
282
- isElement: v,
283
- isRTL: Tt
284
- };
285
- function it(t, e) {
286
- return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
287
- }
288
- function Ft(t, e) {
289
- let n = null, i;
290
- const o = O(t);
291
- function r() {
292
- var c;
293
- clearTimeout(i), (c = n) == null || c.disconnect(), n = null;
294
- }
295
- function s(c, l) {
296
- c === void 0 && (c = !1), l === void 0 && (l = 1), r();
297
- const f = t.getBoundingClientRect(), {
298
- left: u,
299
- top: h,
300
- width: p,
301
- height: d
302
- } = f;
303
- if (c || e(), !p || !d)
304
- return;
305
- const y = D(h), g = D(o.clientWidth - (u + p)), w = D(o.clientHeight - (h + d)), a = D(u), C = {
306
- rootMargin: -y + "px " + -g + "px " + -w + "px " + -a + "px",
307
- threshold: E(0, V(1, l)) || 1
308
- };
309
- let B = !0;
310
- function P(U) {
311
- const z = U[0].intersectionRatio;
312
- if (z !== l) {
313
- if (!B)
314
- return s();
315
- z ? s(!1, z) : i = setTimeout(() => {
316
- s(!1, 1e-7);
317
- }, 1e3);
318
- }
319
- z === 1 && !it(f, t.getBoundingClientRect()) && s(), B = !1;
320
- }
321
- try {
322
- n = new IntersectionObserver(P, {
323
- ...C,
324
- // Handle <iframe>s
325
- root: o.ownerDocument
326
- });
327
- } catch {
328
- n = new IntersectionObserver(P, C);
329
- }
330
- n.observe(t);
331
- }
332
- return s(!0), r;
333
- }
334
- function Dt(t, e, n, i) {
335
- i === void 0 && (i = {});
336
- const {
337
- ancestorScroll: o = !0,
338
- ancestorResize: r = !0,
339
- elementResize: s = typeof ResizeObserver == "function",
340
- layoutShift: c = typeof IntersectionObserver == "function",
341
- animationFrame: l = !1
342
- } = i, f = q(t), u = o || r ? [...f ? $(f) : [], ...$(e)] : [];
343
- u.forEach((a) => {
344
- o && a.addEventListener("scroll", n, {
345
- passive: !0
346
- }), r && a.addEventListener("resize", n);
347
- });
348
- const h = f && c ? Ft(f, n) : null;
349
- let p = -1, d = null;
350
- s && (d = new ResizeObserver((a) => {
351
- let [x] = a;
352
- x && x.target === f && d && (d.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
353
- var C;
354
- (C = d) == null || C.observe(e);
355
- })), n();
356
- }), f && !l && d.observe(f), d.observe(e));
357
- let y, g = l ? T(t) : null;
358
- l && w();
359
- function w() {
360
- const a = T(t);
361
- g && !it(g, a) && n(), g = a, y = requestAnimationFrame(w);
362
- }
363
- return n(), () => {
364
- var a;
365
- u.forEach((x) => {
366
- o && x.removeEventListener("scroll", n), r && x.removeEventListener("resize", n);
367
- }), h == null || h(), (a = d) == null || a.disconnect(), d = null, l && cancelAnimationFrame(y);
368
- };
369
- }
370
- const At = ot, Ht = st, Nt = rt, It = ct, Vt = lt, $t = ut, St = ht, Mt = (t, e, n) => {
371
- const i = /* @__PURE__ */ new Map(), o = {
372
- platform: Et,
373
- ...n
374
- }, r = {
375
- ...o.platform,
376
- _c: i
377
- };
378
- return ft(t, e, {
379
- ...o,
380
- platform: r
381
- });
382
- };
27
+ return i.displayName = `Primitive.${r}`, { ...o, [r]: i };
28
+ }, {});
383
29
  export {
384
- $t as arrow,
385
- Dt as autoUpdate,
386
- Mt as computePosition,
387
- Nt as flip,
388
- $ as getOverflowAncestors,
389
- Vt as hide,
390
- St as limitShift,
391
- At as offset,
392
- Et as platform,
393
- Ht as shift,
394
- It as size
30
+ c as Primitive
395
31
  };
396
32
  //# sourceMappingURL=index.es295.js.map