@anoki/fse-ui 1.0.740 → 1.0.741

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 (297) hide show
  1. package/dist/index.cjs244.js +1 -1
  2. package/dist/index.cjs248.js +1 -1
  3. package/dist/index.cjs255.js +1 -1
  4. package/dist/index.cjs265.js +1 -1
  5. package/dist/index.cjs271.js +1 -1
  6. package/dist/index.cjs278.js +1 -1
  7. package/dist/index.cjs283.js +1 -1
  8. package/dist/index.cjs290.js +1 -1
  9. package/dist/index.cjs298.js +1 -1
  10. package/dist/index.cjs337.js +1 -1
  11. package/dist/index.cjs365.js +1 -1
  12. package/dist/index.cjs366.js +1 -1
  13. package/dist/index.cjs388.js +1 -1
  14. package/dist/index.cjs388.js.map +1 -1
  15. package/dist/index.cjs391.js +1 -1
  16. package/dist/index.cjs391.js.map +1 -1
  17. package/dist/index.cjs392.js +1 -1
  18. package/dist/index.cjs392.js.map +1 -1
  19. package/dist/index.cjs393.js +1 -1
  20. package/dist/index.cjs393.js.map +1 -1
  21. package/dist/{index.cjs390.js → index.cjs394.js} +2 -2
  22. package/dist/{index.cjs390.js.map → index.cjs394.js.map} +1 -1
  23. package/dist/index.cjs395.js +1 -1
  24. package/dist/index.cjs395.js.map +1 -1
  25. package/dist/index.cjs396.js +1 -1
  26. package/dist/index.cjs396.js.map +1 -1
  27. package/dist/index.cjs397.js +1 -1
  28. package/dist/index.cjs397.js.map +1 -1
  29. package/dist/index.cjs398.js +1 -1
  30. package/dist/index.cjs398.js.map +1 -1
  31. package/dist/index.cjs399.js +1 -1
  32. package/dist/index.cjs399.js.map +1 -1
  33. package/dist/index.cjs400.js +1 -1
  34. package/dist/index.cjs400.js.map +1 -1
  35. package/dist/index.cjs401.js +1 -1
  36. package/dist/index.cjs401.js.map +1 -1
  37. package/dist/index.cjs402.js +1 -1
  38. package/dist/index.cjs402.js.map +1 -1
  39. package/dist/index.cjs403.js +1 -1
  40. package/dist/index.cjs403.js.map +1 -1
  41. package/dist/index.cjs404.js +1 -1
  42. package/dist/index.cjs404.js.map +1 -1
  43. package/dist/index.cjs405.js +1 -1
  44. package/dist/index.cjs405.js.map +1 -1
  45. package/dist/index.cjs406.js +1 -1
  46. package/dist/index.cjs406.js.map +1 -1
  47. package/dist/index.cjs407.js +1 -1
  48. package/dist/index.cjs407.js.map +1 -1
  49. package/dist/index.cjs408.js +1 -1
  50. package/dist/index.cjs408.js.map +1 -1
  51. package/dist/index.cjs409.js +2 -0
  52. package/dist/index.cjs409.js.map +1 -0
  53. package/dist/index.cjs410.js +2 -0
  54. package/dist/index.cjs410.js.map +1 -0
  55. package/dist/index.cjs411.js +2 -0
  56. package/dist/index.cjs411.js.map +1 -0
  57. package/dist/index.cjs412.js +1 -1
  58. package/dist/index.cjs412.js.map +1 -1
  59. package/dist/index.cjs413.js +1 -1
  60. package/dist/index.cjs413.js.map +1 -1
  61. package/dist/index.cjs414.js +1 -1
  62. package/dist/index.cjs414.js.map +1 -1
  63. package/dist/index.cjs415.js +1 -1
  64. package/dist/index.cjs415.js.map +1 -1
  65. package/dist/index.cjs416.js +1 -1
  66. package/dist/index.cjs416.js.map +1 -1
  67. package/dist/index.cjs417.js +1 -1
  68. package/dist/index.cjs417.js.map +1 -1
  69. package/dist/index.cjs419.js +1 -1
  70. package/dist/index.cjs420.js +1 -1
  71. package/dist/index.cjs424.js +1 -4
  72. package/dist/index.cjs424.js.map +1 -1
  73. package/dist/index.cjs436.js +1 -38
  74. package/dist/index.cjs436.js.map +1 -1
  75. package/dist/index.cjs437.js +1 -1
  76. package/dist/index.cjs437.js.map +1 -1
  77. package/dist/index.cjs438.js +1 -1
  78. package/dist/index.cjs438.js.map +1 -1
  79. package/dist/index.cjs439.js +4 -1
  80. package/dist/index.cjs439.js.map +1 -1
  81. package/dist/index.cjs440.js +1 -1
  82. package/dist/index.cjs440.js.map +1 -1
  83. package/dist/{index.cjs432.js → index.cjs441.js} +2 -2
  84. package/dist/{index.cjs432.js.map → index.cjs441.js.map} +1 -1
  85. package/dist/{index.cjs433.js → index.cjs442.js} +1 -1
  86. package/dist/{index.cjs433.js.map → index.cjs442.js.map} +1 -1
  87. package/dist/{index.cjs434.js → index.cjs443.js} +1 -1
  88. package/dist/{index.cjs434.js.map → index.cjs443.js.map} +1 -1
  89. package/dist/{index.cjs435.js → index.cjs445.js} +1 -1
  90. package/dist/{index.cjs435.js.map → index.cjs445.js.map} +1 -1
  91. package/dist/index.cjs446.js +39 -0
  92. package/dist/index.cjs446.js.map +1 -0
  93. package/dist/index.cjs447.js +1 -1
  94. package/dist/index.cjs447.js.map +1 -1
  95. package/dist/index.cjs448.js +1 -1
  96. package/dist/index.cjs448.js.map +1 -1
  97. package/dist/index.cjs449.js +2 -0
  98. package/dist/index.cjs449.js.map +1 -0
  99. package/dist/index.cjs450.js +2 -0
  100. package/dist/index.cjs450.js.map +1 -0
  101. package/dist/index.cjs451.js +2 -0
  102. package/dist/index.cjs451.js.map +1 -0
  103. package/dist/index.cjs452.js +1 -1
  104. package/dist/index.cjs452.js.map +1 -1
  105. package/dist/index.cjs453.js +1 -1
  106. package/dist/index.cjs453.js.map +1 -1
  107. package/dist/index.cjs454.js +1 -1
  108. package/dist/index.cjs454.js.map +1 -1
  109. package/dist/index.cjs455.js +1 -1
  110. package/dist/index.cjs455.js.map +1 -1
  111. package/dist/index.cjs458.js +1 -1
  112. package/dist/index.cjs462.js +1 -1
  113. package/dist/index.cjs465.js +1 -1
  114. package/dist/index.cjs468.js +1 -1
  115. package/dist/index.cjs469.js +1 -1
  116. package/dist/index.cjs469.js.map +1 -1
  117. package/dist/index.cjs470.js +1 -1
  118. package/dist/index.cjs471.js +1 -1
  119. package/dist/index.cjs471.js.map +1 -1
  120. package/dist/index.cjs472.js +1 -1
  121. package/dist/index.cjs472.js.map +1 -1
  122. package/dist/index.cjs476.js +1 -1
  123. package/dist/index.cjs476.js.map +1 -1
  124. package/dist/index.cjs477.js +1 -1
  125. package/dist/index.cjs477.js.map +1 -1
  126. package/dist/index.cjs478.js +1 -1
  127. package/dist/index.cjs478.js.map +1 -1
  128. package/dist/index.cjs479.js +1 -1
  129. package/dist/index.cjs479.js.map +1 -1
  130. package/dist/index.cjs480.js +1 -1
  131. package/dist/index.cjs480.js.map +1 -1
  132. package/dist/index.cjs481.js +1 -1
  133. package/dist/index.cjs481.js.map +1 -1
  134. package/dist/index.es244.js +7 -7
  135. package/dist/index.es248.js +1 -1
  136. package/dist/index.es255.js +8 -8
  137. package/dist/index.es265.js +1 -1
  138. package/dist/index.es271.js +14 -14
  139. package/dist/index.es278.js +1 -1
  140. package/dist/index.es283.js +1 -1
  141. package/dist/index.es290.js +1 -1
  142. package/dist/index.es298.js +7 -7
  143. package/dist/index.es337.js +4 -4
  144. package/dist/index.es365.js +1 -1
  145. package/dist/index.es366.js +2 -2
  146. package/dist/index.es388.js +15 -27
  147. package/dist/index.es388.js.map +1 -1
  148. package/dist/index.es391.js +6 -32
  149. package/dist/index.es391.js.map +1 -1
  150. package/dist/index.es392.js +23 -618
  151. package/dist/index.es392.js.map +1 -1
  152. package/dist/index.es393.js +67 -10
  153. package/dist/index.es393.js.map +1 -1
  154. package/dist/{index.es390.js → index.es394.js} +2 -2
  155. package/dist/{index.es390.js.map → index.es394.js.map} +1 -1
  156. package/dist/index.es395.js +32 -10
  157. package/dist/index.es395.js.map +1 -1
  158. package/dist/index.es396.js +619 -50
  159. package/dist/index.es396.js.map +1 -1
  160. package/dist/index.es397.js +10 -45
  161. package/dist/index.es397.js.map +1 -1
  162. package/dist/index.es398.js +5 -7
  163. package/dist/index.es398.js.map +1 -1
  164. package/dist/index.es399.js +23 -123
  165. package/dist/index.es399.js.map +1 -1
  166. package/dist/index.es400.js +67 -13
  167. package/dist/index.es400.js.map +1 -1
  168. package/dist/index.es401.js +10 -134
  169. package/dist/index.es401.js.map +1 -1
  170. package/dist/index.es402.js +49 -214
  171. package/dist/index.es402.js.map +1 -1
  172. package/dist/index.es403.js +46 -14
  173. package/dist/index.es403.js.map +1 -1
  174. package/dist/index.es404.js +7 -68
  175. package/dist/index.es404.js.map +1 -1
  176. package/dist/index.es405.js +114 -167
  177. package/dist/index.es405.js.map +1 -1
  178. package/dist/index.es406.js +15 -50
  179. package/dist/index.es406.js.map +1 -1
  180. package/dist/index.es407.js +134 -8
  181. package/dist/index.es407.js.map +1 -1
  182. package/dist/index.es408.js +217 -3
  183. package/dist/index.es408.js.map +1 -1
  184. package/dist/index.es409.js +17 -0
  185. package/dist/index.es409.js.map +1 -0
  186. package/dist/index.es410.js +181 -0
  187. package/dist/index.es410.js.map +1 -0
  188. package/dist/index.es411.js +53 -0
  189. package/dist/index.es411.js.map +1 -0
  190. package/dist/index.es412.js +8 -11
  191. package/dist/index.es412.js.map +1 -1
  192. package/dist/index.es413.js +4 -205
  193. package/dist/index.es413.js.map +1 -1
  194. package/dist/index.es414.js +12 -22
  195. package/dist/index.es414.js.map +1 -1
  196. package/dist/index.es415.js +204 -24
  197. package/dist/index.es415.js.map +1 -1
  198. package/dist/index.es416.js +21 -392
  199. package/dist/index.es416.js.map +1 -1
  200. package/dist/index.es417.js +392 -5
  201. package/dist/index.es417.js.map +1 -1
  202. package/dist/index.es419.js +3 -3
  203. package/dist/index.es420.js +3 -3
  204. package/dist/index.es424.js +12 -107
  205. package/dist/index.es424.js.map +1 -1
  206. package/dist/index.es436.js +5 -69
  207. package/dist/index.es436.js.map +1 -1
  208. package/dist/index.es437.js +3 -9
  209. package/dist/index.es437.js.map +1 -1
  210. package/dist/index.es438.js +23 -13
  211. package/dist/index.es438.js.map +1 -1
  212. package/dist/index.es439.js +108 -60
  213. package/dist/index.es439.js.map +1 -1
  214. package/dist/index.es440.js +15 -14
  215. package/dist/index.es440.js.map +1 -1
  216. package/dist/{index.es432.js → index.es441.js} +2 -2
  217. package/dist/{index.es432.js.map → index.es441.js.map} +1 -1
  218. package/dist/{index.es433.js → index.es442.js} +1 -1
  219. package/dist/{index.es433.js.map → index.es442.js.map} +1 -1
  220. package/dist/{index.es434.js → index.es443.js} +1 -1
  221. package/dist/{index.es434.js.map → index.es443.js.map} +1 -1
  222. package/dist/{index.es435.js → index.es445.js} +1 -1
  223. package/dist/{index.es435.js.map → index.es445.js.map} +1 -1
  224. package/dist/index.es446.js +72 -0
  225. package/dist/index.es446.js.map +1 -0
  226. package/dist/index.es447.js +9 -4
  227. package/dist/index.es447.js.map +1 -1
  228. package/dist/index.es448.js +13 -22
  229. package/dist/index.es448.js.map +1 -1
  230. package/dist/index.es449.js +65 -0
  231. package/dist/index.es449.js.map +1 -0
  232. package/dist/index.es450.js +7 -0
  233. package/dist/index.es450.js.map +1 -0
  234. package/dist/index.es451.js +26 -0
  235. package/dist/index.es451.js.map +1 -0
  236. package/dist/index.es452.js +21 -11
  237. package/dist/index.es452.js.map +1 -1
  238. package/dist/index.es453.js +11 -26
  239. package/dist/index.es453.js.map +1 -1
  240. package/dist/index.es454.js +27 -4
  241. package/dist/index.es454.js.map +1 -1
  242. package/dist/index.es455.js +4 -22
  243. package/dist/index.es455.js.map +1 -1
  244. package/dist/index.es458.js +1 -1
  245. package/dist/index.es462.js +2 -2
  246. package/dist/index.es465.js +3 -3
  247. package/dist/index.es468.js +8 -8
  248. package/dist/index.es469.js +8 -131
  249. package/dist/index.es469.js.map +1 -1
  250. package/dist/index.es470.js +1 -1
  251. package/dist/index.es471.js +3 -9
  252. package/dist/index.es471.js.map +1 -1
  253. package/dist/index.es472.js +131 -2
  254. package/dist/index.es472.js.map +1 -1
  255. package/dist/index.es476.js +2 -4
  256. package/dist/index.es476.js.map +1 -1
  257. package/dist/index.es477.js +2 -3
  258. package/dist/index.es477.js.map +1 -1
  259. package/dist/index.es478.js +3 -2
  260. package/dist/index.es478.js.map +1 -1
  261. package/dist/index.es479.js +2 -4
  262. package/dist/index.es479.js.map +1 -1
  263. package/dist/index.es480.js +3 -4
  264. package/dist/index.es480.js.map +1 -1
  265. package/dist/index.es481.js +7 -2
  266. package/dist/index.es481.js.map +1 -1
  267. package/dist/sections/HomeServices/HomeServices.css +1 -1
  268. package/package.json +1 -1
  269. package/dist/index.cjs387.js +0 -2
  270. package/dist/index.cjs387.js.map +0 -1
  271. package/dist/index.cjs389.js +0 -2
  272. package/dist/index.cjs389.js.map +0 -1
  273. package/dist/index.cjs421.js +0 -2
  274. package/dist/index.cjs421.js.map +0 -1
  275. package/dist/index.cjs422.js +0 -2
  276. package/dist/index.cjs422.js.map +0 -1
  277. package/dist/index.cjs423.js +0 -2
  278. package/dist/index.cjs423.js.map +0 -1
  279. package/dist/index.cjs425.js +0 -2
  280. package/dist/index.cjs425.js.map +0 -1
  281. package/dist/index.cjs429.js +0 -2
  282. package/dist/index.cjs429.js.map +0 -1
  283. package/dist/index.es387.js +0 -10
  284. package/dist/index.es387.js.map +0 -1
  285. package/dist/index.es389.js +0 -71
  286. package/dist/index.es389.js.map +0 -1
  287. package/dist/index.es421.js +0 -8
  288. package/dist/index.es421.js.map +0 -1
  289. package/dist/index.es422.js +0 -6
  290. package/dist/index.es422.js.map +0 -1
  291. package/dist/index.es423.js +0 -27
  292. package/dist/index.es423.js.map +0 -1
  293. package/dist/index.es425.js +0 -19
  294. package/dist/index.es425.js.map +0 -1
  295. package/dist/index.es429.js +0 -18
  296. package/dist/index.es429.js.map +0 -1
  297. /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
@@ -1,28 +1,208 @@
1
- import * as h from "react";
2
- import { useLayoutEffect as z } from "./index.es408.js";
3
- function c(r) {
4
- const [d, e] = h.useState(void 0);
5
- return z(() => {
6
- if (r) {
7
- e({ width: r.offsetWidth, height: r.offsetHeight });
8
- const f = new ResizeObserver((i) => {
9
- if (!Array.isArray(i) || !i.length)
10
- return;
11
- const b = i[0];
12
- let o, t;
13
- if ("borderBoxSize" in b) {
14
- const s = b.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
15
- o = u.inlineSize, t = u.blockSize;
16
- } else
17
- o = r.offsetWidth, t = r.offsetHeight;
18
- e({ width: o, height: t });
19
- });
20
- return f.observe(r, { box: "border-box" }), () => f.unobserve(r);
21
- } else
22
- e(void 0);
23
- }, [r]), d;
1
+ import { computePosition as I, offset as J, shift as K, flip as N, size as Q, hide as T, limitShift as X, arrow as L } from "./index.es417.js";
2
+ import { autoUpdate as me, platform as pe } from "./index.es417.js";
3
+ import * as f from "react";
4
+ import { useLayoutEffect as Y, useEffect as Z } from "react";
5
+ import * as b from "react-dom";
6
+ var w = typeof document < "u" ? Y : Z;
7
+ function R(e, t) {
8
+ if (e === t)
9
+ return !0;
10
+ if (typeof e != typeof t)
11
+ return !1;
12
+ if (typeof e == "function" && e.toString() === t.toString())
13
+ return !0;
14
+ let n, r, s;
15
+ if (e && t && typeof e == "object") {
16
+ if (Array.isArray(e)) {
17
+ if (n = e.length, n !== t.length) return !1;
18
+ for (r = n; r-- !== 0; )
19
+ if (!R(e[r], t[r]))
20
+ return !1;
21
+ return !0;
22
+ }
23
+ if (s = Object.keys(e), n = s.length, n !== Object.keys(t).length)
24
+ return !1;
25
+ for (r = n; r-- !== 0; )
26
+ if (!{}.hasOwnProperty.call(t, s[r]))
27
+ return !1;
28
+ for (r = n; r-- !== 0; ) {
29
+ const p = s[r];
30
+ if (!(p === "_owner" && e.$$typeof) && !R(e[p], t[p]))
31
+ return !1;
32
+ }
33
+ return !0;
34
+ }
35
+ return e !== e && t !== t;
24
36
  }
37
+ function A(e) {
38
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
39
+ }
40
+ function v(e, t) {
41
+ const n = A(e);
42
+ return Math.round(t * n) / n;
43
+ }
44
+ function E(e) {
45
+ const t = f.useRef(e);
46
+ return w(() => {
47
+ t.current = e;
48
+ }), t;
49
+ }
50
+ function re(e) {
51
+ e === void 0 && (e = {});
52
+ const {
53
+ placement: t = "bottom",
54
+ strategy: n = "absolute",
55
+ middleware: r = [],
56
+ platform: s,
57
+ elements: {
58
+ reference: p,
59
+ floating: q
60
+ } = {},
61
+ transform: k = !0,
62
+ whileElementsMounted: D,
63
+ open: x
64
+ } = e, [i, O] = f.useState({
65
+ x: 0,
66
+ y: 0,
67
+ strategy: n,
68
+ placement: t,
69
+ middlewareData: {},
70
+ isPositioned: !1
71
+ }), [M, B] = f.useState(r);
72
+ R(M, r) || B(r);
73
+ const [U, V] = f.useState(null), [W, G] = f.useState(null), _ = f.useCallback((o) => {
74
+ o !== a.current && (a.current = o, V(o));
75
+ }, []), C = f.useCallback((o) => {
76
+ o !== d.current && (d.current = o, G(o));
77
+ }, []), u = p || U, l = q || W, a = f.useRef(null), d = f.useRef(null), y = f.useRef(i), H = D != null, S = E(D), P = E(s), F = E(x), g = f.useCallback(() => {
78
+ if (!a.current || !d.current)
79
+ return;
80
+ const o = {
81
+ placement: t,
82
+ strategy: n,
83
+ middleware: M
84
+ };
85
+ P.current && (o.platform = P.current), I(a.current, d.current, o).then((h) => {
86
+ const m = {
87
+ ...h,
88
+ // The floating element's position may be recomputed while it's closed
89
+ // but still mounted (such as when transitioning out). To ensure
90
+ // `isPositioned` will be `false` initially on the next open, avoid
91
+ // setting it to `true` when `open === false` (must be specified).
92
+ isPositioned: F.current !== !1
93
+ };
94
+ $.current && !R(y.current, m) && (y.current = m, b.flushSync(() => {
95
+ O(m);
96
+ }));
97
+ });
98
+ }, [M, t, n, P, F]);
99
+ w(() => {
100
+ x === !1 && y.current.isPositioned && (y.current.isPositioned = !1, O((o) => ({
101
+ ...o,
102
+ isPositioned: !1
103
+ })));
104
+ }, [x]);
105
+ const $ = f.useRef(!1);
106
+ w(() => ($.current = !0, () => {
107
+ $.current = !1;
108
+ }), []), w(() => {
109
+ if (u && (a.current = u), l && (d.current = l), u && l) {
110
+ if (S.current)
111
+ return S.current(u, l, g);
112
+ g();
113
+ }
114
+ }, [u, l, g, S, H]);
115
+ const j = f.useMemo(() => ({
116
+ reference: a,
117
+ floating: d,
118
+ setReference: _,
119
+ setFloating: C
120
+ }), [_, C]), c = f.useMemo(() => ({
121
+ reference: u,
122
+ floating: l
123
+ }), [u, l]), z = f.useMemo(() => {
124
+ const o = {
125
+ position: n,
126
+ left: 0,
127
+ top: 0
128
+ };
129
+ if (!c.floating)
130
+ return o;
131
+ const h = v(c.floating, i.x), m = v(c.floating, i.y);
132
+ return k ? {
133
+ ...o,
134
+ transform: "translate(" + h + "px, " + m + "px)",
135
+ ...A(c.floating) >= 1.5 && {
136
+ willChange: "transform"
137
+ }
138
+ } : {
139
+ position: n,
140
+ left: h,
141
+ top: m
142
+ };
143
+ }, [n, k, c.floating, i.x, i.y]);
144
+ return f.useMemo(() => ({
145
+ ...i,
146
+ update: g,
147
+ refs: j,
148
+ elements: c,
149
+ floatingStyles: z
150
+ }), [i, g, j, c, z]);
151
+ }
152
+ const ee = (e) => {
153
+ function t(n) {
154
+ return {}.hasOwnProperty.call(n, "current");
155
+ }
156
+ return {
157
+ name: "arrow",
158
+ options: e,
159
+ fn(n) {
160
+ const {
161
+ element: r,
162
+ padding: s
163
+ } = typeof e == "function" ? e(n) : e;
164
+ return r && t(r) ? r.current != null ? L({
165
+ element: r.current,
166
+ padding: s
167
+ }).fn(n) : {} : r ? L({
168
+ element: r,
169
+ padding: s
170
+ }).fn(n) : {};
171
+ }
172
+ };
173
+ }, fe = (e, t) => ({
174
+ ...J(e),
175
+ options: [e, t]
176
+ }), oe = (e, t) => ({
177
+ ...K(e),
178
+ options: [e, t]
179
+ }), se = (e, t) => ({
180
+ ...X(e),
181
+ options: [e, t]
182
+ }), ie = (e, t) => ({
183
+ ...N(e),
184
+ options: [e, t]
185
+ }), ue = (e, t) => ({
186
+ ...Q(e),
187
+ options: [e, t]
188
+ }), le = (e, t) => ({
189
+ ...T(e),
190
+ options: [e, t]
191
+ }), ce = (e, t) => ({
192
+ ...ee(e),
193
+ options: [e, t]
194
+ });
25
195
  export {
26
- c as useSize
196
+ ce as arrow,
197
+ me as autoUpdate,
198
+ I as computePosition,
199
+ ie as flip,
200
+ le as hide,
201
+ se as limitShift,
202
+ fe as offset,
203
+ pe as platform,
204
+ oe as shift,
205
+ ue as size,
206
+ re as useFloating
27
207
  };
28
208
  //# sourceMappingURL=index.es415.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es415.js","sources":["../node_modules/@radix-ui/react-use-size/dist/index.mjs"],"sourcesContent":["// packages/react/use-size/src/use-size.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nfunction useSize(element) {\n const [size, setSize] = React.useState(void 0);\n useLayoutEffect(() => {\n if (element) {\n setSize({ width: element.offsetWidth, height: element.offsetHeight });\n const resizeObserver = new ResizeObserver((entries) => {\n if (!Array.isArray(entries)) {\n return;\n }\n if (!entries.length) {\n return;\n }\n const entry = entries[0];\n let width;\n let height;\n if (\"borderBoxSize\" in entry) {\n const borderSizeEntry = entry[\"borderBoxSize\"];\n const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;\n width = borderSize[\"inlineSize\"];\n height = borderSize[\"blockSize\"];\n } else {\n width = element.offsetWidth;\n height = element.offsetHeight;\n }\n setSize({ width, height });\n });\n resizeObserver.observe(element, { box: \"border-box\" });\n return () => resizeObserver.unobserve(element);\n } else {\n setSize(void 0);\n }\n }, [element]);\n return size;\n}\nexport {\n useSize\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useSize","element","size","setSize","React","useLayoutEffect","resizeObserver","entries","entry","width","height","borderSizeEntry","borderSize"],"mappings":";;AAGA,SAASA,EAAQC,GAAS;AACxB,QAAM,CAACC,GAAMC,CAAO,IAAIC,EAAM,SAAS,MAAM;AAC7CC,SAAAA,EAAgB,MAAM;AACpB,QAAIJ,GAAS;AACX,MAAAE,EAAQ,EAAE,OAAOF,EAAQ,aAAa,QAAQA,EAAQ,cAAc;AACpE,YAAMK,IAAiB,IAAI,eAAe,CAACC,MAAY;AAIrD,YAHI,CAAC,MAAM,QAAQA,CAAO,KAGtB,CAACA,EAAQ;AACX;AAEF,cAAMC,IAAQD,EAAQ,CAAC;AACvB,YAAIE,GACAC;AACJ,YAAI,mBAAmBF,GAAO;AAC5B,gBAAMG,IAAkBH,EAAM,eACxBI,IAAa,MAAM,QAAQD,CAAe,IAAIA,EAAgB,CAAC,IAAIA;AACzE,UAAAF,IAAQG,EAAW,YACnBF,IAASE,EAAW;AAAA,QAC9B;AACU,UAAAH,IAAQR,EAAQ,aAChBS,IAAST,EAAQ;AAEnB,QAAAE,EAAQ,EAAE,OAAAM,GAAO,QAAAC,GAAQ;AAAA,MACjC,CAAO;AACD,aAAAJ,EAAe,QAAQL,GAAS,EAAE,KAAK,aAAY,CAAE,GAC9C,MAAMK,EAAe,UAAUL,CAAO;AAAA,IACnD;AACM,MAAAE,EAAQ,MAAM;AAAA,EAEpB,GAAK,CAACF,CAAO,CAAC,GACLC;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es415.js","sources":["../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"],"sourcesContent":["import { computePosition, arrow as arrow$2, offset as offset$1, shift as shift$1, limitShift as limitShift$1, flip as flip$1, size as size$1, autoPlacement as autoPlacement$1, hide as hide$1, inline as inline$1 } from '@floating-ui/dom';\nexport { autoUpdate, computePosition, detectOverflow, getOverflowAncestors, platform } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect, useEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\nvar index = typeof document !== 'undefined' ? useLayoutEffect : useEffect;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length;\n let i;\n let keys;\n if (a && b && typeof a === 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node !== referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, []);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, []);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const hasWhileElementsMounted = whileElementsMounted != null;\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const openRef = useLatestRef(open);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n // The floating element's position may be recomputed while it's closed\n // but still mounted (such as when transitioning out). To ensure\n // `isPositioned` will be `false` initially on the next open, avoid\n // setting it to `true` when `open === false` (must be specified).\n isPositioned: openRef.current !== false\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef, openRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n }\n update();\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow$1 = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$2({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n }\n if (element) {\n return arrow$2({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = (options, deps) => ({\n ...offset$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = (options, deps) => ({\n ...shift$1(options),\n options: [options, deps]\n});\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = (options, deps) => ({\n ...limitShift$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = (options, deps) => ({\n ...flip$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = (options, deps) => ({\n ...size$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = (options, deps) => ({\n ...autoPlacement$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = (options, deps) => ({\n ...hide$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = (options, deps) => ({\n ...inline$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = (options, deps) => ({\n ...arrow$1(options),\n options: [options, deps]\n});\n\nexport { arrow, autoPlacement, flip, hide, inline, limitShift, offset, shift, size, useFloating };\n"],"names":["index","useLayoutEffect","useEffect","deepEqual","a","b","length","i","keys","key","getDPR","element","roundByDPR","value","dpr","useLatestRef","ref","React","useFloating","options","placement","strategy","middleware","platform","externalReference","externalFloating","transform","whileElementsMounted","open","data","setData","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","setReference","node","referenceRef","setFloating","floatingRef","referenceEl","floatingEl","dataRef","hasWhileElementsMounted","whileElementsMountedRef","platformRef","openRef","update","config","computePosition","fullData","isMountedRef","ReactDOM","refs","elements","floatingStyles","initialStyles","x","y","arrow$1","isRef","state","padding","arrow$2","offset","deps","offset$1","shift","shift$1","limitShift","limitShift$1","flip","flip$1","size","size$1","hide","hide$1","arrow"],"mappings":";;;;;AAMA,IAAIA,I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O,CAAC1D,GAASgD,OAAU;AAAA,EAC/B,GAAGW,EAAO3D,CAAO;AAAA,EACjB,SAAS,CAACA,GAASgD,CAAI;AACzB,IAkBMY,KAAQ,CAAC5D,GAASgD,OAAU;AAAA,EAChC,GAAGN,GAAQ1C,CAAO;AAAA,EAClB,SAAS,CAACA,GAASgD,CAAI;AACzB;","x_google_ignoreList":[0]}
@@ -1,396 +1,25 @@
1
- import { offset as ot, shift as st, flip as rt, size as ct, hide as lt, limitShift as ft, computePosition as ut, arrow as ht } from "./index.es432.js";
2
- import { createCoords as m, round as A, max as E, min as V, rectToClientRect as J, floor as D } from "./index.es433.js";
3
- import { isElement as v, getDocumentElement as O, getOverflowAncestors as $, getComputedStyle as R, isHTMLElement as b, getWindow as L, isTopLayer as S, getParentNode as W, isLastTraversableNode as H, isTableElement as at, isContainingBlock as Q, getContainingBlock as dt, getNodeName as M, isOverflowElement as _, getNodeScroll as N, getFrameElement as K, isWebKit as Y } from "./index.es434.js";
4
- function Z(t) {
5
- const e = R(t);
6
- let i = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
7
- const o = b(t), r = o ? t.offsetWidth : i, s = o ? t.offsetHeight : n, c = A(i) !== r || A(n) !== s;
8
- return c && (i = r, n = s), {
9
- width: i,
10
- height: n,
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 i = e.getBoundingClientRect(), {
22
- width: n,
23
- height: o,
24
- $: r
25
- } = Z(e);
26
- let s = (r ? A(i.width) : i.width) / n, c = (r ? A(i.height) : i.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 !Y() || !e.visualViewport ? gt : {
36
- x: e.visualViewport.offsetLeft,
37
- y: e.visualViewport.offsetTop
38
- };
39
- }
40
- function pt(t, e, i) {
41
- return e === void 0 && (e = !1), !i || e && i !== L(t) ? !1 : e;
42
- }
43
- function T(t, e, i, n) {
44
- e === void 0 && (e = !1), i === void 0 && (i = !1);
45
- const o = t.getBoundingClientRect(), r = q(t);
46
- let s = m(1);
47
- e && (n ? v(n) && (s = F(n)) : s = F(t));
48
- const c = pt(r, i, n) ? 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), a = n && v(n) ? L(n) : n;
52
- let y = p, g = K(y);
53
- for (; g && n && a !== y; ) {
54
- const w = F(g), d = g.getBoundingClientRect(), x = R(g), C = d.left + (g.clientLeft + parseFloat(x.paddingLeft)) * w.x, B = d.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);
1
+ import * as n from "react";
2
+ import { Primitive as p } from "./index.es395.js";
3
+ import { j as o } from "./index.es212.js";
4
+ var v = "Arrow", e = n.forwardRef((r, i) => {
5
+ const { children: t, width: s = 10, height: a = 5, ...m } = r;
6
+ return /* @__PURE__ */ o.jsx(
7
+ p.svg,
8
+ {
9
+ ...m,
10
+ ref: i,
11
+ width: s,
12
+ height: a,
13
+ viewBox: "0 0 30 10",
14
+ preserveAspectRatio: "none",
15
+ children: r.asChild ? t : /* @__PURE__ */ o.jsx("polygon", { points: "0,0 30,0 15,10" })
56
16
  }
57
- }
58
- return J({
59
- width: u,
60
- height: h,
61
- x: l,
62
- y: f
63
- });
64
- }
65
- function k(t, e) {
66
- const i = N(t).scrollLeft;
67
- return e ? e.left + i : T(O(t)).left + i;
68
- }
69
- function tt(t, e, i) {
70
- i === void 0 && (i = !1);
71
- const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - (i ? 0 : (
72
- // RTL <body> scrollbar.
73
- k(t, n)
74
- )), r = n.top + e.scrollTop;
75
- return {
76
- x: o,
77
- y: r
78
- };
79
- }
80
- function wt(t) {
81
- let {
82
- elements: e,
83
- rect: i,
84
- offsetParent: n,
85
- strategy: o
86
- } = t;
87
- const r = o === "fixed", s = O(n), c = e ? S(e.floating) : !1;
88
- if (n === s || c && r)
89
- return i;
90
- let l = {
91
- scrollLeft: 0,
92
- scrollTop: 0
93
- }, f = m(1);
94
- const u = m(0), h = b(n);
95
- if ((h || !h && !r) && ((M(n) !== "body" || _(s)) && (l = N(n)), b(n))) {
96
- const a = T(n);
97
- f = F(n), u.x = a.x + n.clientLeft, u.y = a.y + n.clientTop;
98
- }
99
- const p = s && !h && !r ? tt(s, l, !0) : m(0);
100
- return {
101
- width: i.width * f.x,
102
- height: i.height * f.y,
103
- x: i.x * f.x - l.scrollLeft * f.x + u.x + p.x,
104
- y: i.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), i = N(t), n = t.ownerDocument.body, o = E(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = E(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
112
- let s = -i.scrollLeft + k(t);
113
- const c = -i.scrollTop;
114
- return R(n).direction === "rtl" && (s += E(e.clientWidth, n.clientWidth) - o), {
115
- width: o,
116
- height: r,
117
- x: s,
118
- y: c
119
- };
120
- }
121
- function xt(t, e) {
122
- const i = L(t), n = O(t), o = i.visualViewport;
123
- let r = n.clientWidth, s = n.clientHeight, c = 0, l = 0;
124
- if (o) {
125
- r = o.width, s = o.height;
126
- const f = Y();
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 i = T(t, !0, e === "fixed"), n = i.top + t.clientTop, o = i.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 = n * r.y;
138
- return {
139
- width: s,
140
- height: c,
141
- x: l,
142
- y: f
143
- };
144
- }
145
- function j(t, e, i) {
146
- let n;
147
- if (e === "viewport")
148
- n = xt(t, i);
149
- else if (e === "document")
150
- n = yt(O(t));
151
- else if (v(e))
152
- n = vt(e, i);
153
- else {
154
- const o = X(t);
155
- n = {
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(n);
163
- }
164
- function et(t, e) {
165
- const i = W(t);
166
- return i === e || !v(i) || H(i) ? !1 : R(i).position === "fixed" || et(i, e);
167
- }
168
- function Rt(t, e) {
169
- const i = e.get(t);
170
- if (i)
171
- return i;
172
- let n = $(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 = Q(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)) ? n = n.filter((u) => u !== s) : o = c, s = W(s);
178
- }
179
- return e.set(t, n), n;
180
- }
181
- function Ot(t) {
182
- let {
183
- element: e,
184
- boundary: i,
185
- rootBoundary: n,
186
- strategy: o
187
- } = t;
188
- const s = [...i === "clippingAncestors" ? S(e) ? [] : Rt(e, this._c) : [].concat(i), n], 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: i
203
- } = Z(t);
204
- return {
205
- width: e,
206
- height: i
207
- };
208
- }
209
- function Ct(t, e, i) {
210
- const n = b(e), o = O(e), r = i === "fixed", s = T(t, !0, r, e);
211
- let c = {
212
- scrollLeft: 0,
213
- scrollTop: 0
214
- };
215
- const l = m(0);
216
- if (n || !n && !r)
217
- if ((M(e) !== "body" || _(o)) && (c = N(e)), n) {
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 && !n && !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 i = t.offsetParent;
238
- return O(t) === i && (i = i.ownerDocument.body), i;
239
- }
240
- function it(t, e) {
241
- const i = L(t);
242
- if (S(t))
243
- return i;
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 i;
252
- }
253
- let n = G(t, e);
254
- for (; n && at(n) && I(n); )
255
- n = G(n, e);
256
- return n && H(n) && I(n) && !Q(n) ? i : n || dt(t) || i;
257
- }
258
- const Lt = async function(t) {
259
- const e = this.getOffsetParent || it, i = this.getDimensions, n = await i(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: n.width,
266
- height: n.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: it,
278
- getElementRects: Lt,
279
- getClientRects: mt,
280
- getDimensions: bt,
281
- getScale: F,
282
- isElement: v,
283
- isRTL: Tt
284
- };
285
- function nt(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 i = null, n;
290
- const o = O(t);
291
- function r() {
292
- var c;
293
- clearTimeout(n), (c = i) == null || c.disconnect(), i = 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: a
302
- } = f;
303
- if (c || e(), !p || !a)
304
- return;
305
- const y = D(h), g = D(o.clientWidth - (u + p)), w = D(o.clientHeight - (h + a)), d = D(u), C = {
306
- rootMargin: -y + "px " + -g + "px " + -w + "px " + -d + "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) : n = setTimeout(() => {
316
- s(!1, 1e-7);
317
- }, 1e3);
318
- }
319
- z === 1 && !nt(f, t.getBoundingClientRect()) && s(), B = !1;
320
- }
321
- try {
322
- i = new IntersectionObserver(P, {
323
- ...C,
324
- // Handle <iframe>s
325
- root: o.ownerDocument
326
- });
327
- } catch {
328
- i = new IntersectionObserver(P, C);
329
- }
330
- i.observe(t);
331
- }
332
- return s(!0), r;
333
- }
334
- function Dt(t, e, i, n) {
335
- n === void 0 && (n = {});
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
- } = n, f = q(t), u = o || r ? [...f ? $(f) : [], ...$(e)] : [];
343
- u.forEach((d) => {
344
- o && d.addEventListener("scroll", i, {
345
- passive: !0
346
- }), r && d.addEventListener("resize", i);
347
- });
348
- const h = f && c ? Ft(f, i) : null;
349
- let p = -1, a = null;
350
- s && (a = new ResizeObserver((d) => {
351
- let [x] = d;
352
- x && x.target === f && a && (a.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
353
- var C;
354
- (C = a) == null || C.observe(e);
355
- })), i();
356
- }), f && !l && a.observe(f), a.observe(e));
357
- let y, g = l ? T(t) : null;
358
- l && w();
359
- function w() {
360
- const d = T(t);
361
- g && !nt(g, d) && i(), g = d, y = requestAnimationFrame(w);
362
- }
363
- return i(), () => {
364
- var d;
365
- u.forEach((x) => {
366
- o && x.removeEventListener("scroll", i), r && x.removeEventListener("resize", i);
367
- }), h == null || h(), (d = a) == null || d.disconnect(), a = null, l && cancelAnimationFrame(y);
368
- };
369
- }
370
- const At = ot, Ht = st, Nt = rt, It = ct, Vt = lt, $t = ht, St = ft, Mt = (t, e, i) => {
371
- const n = /* @__PURE__ */ new Map(), o = {
372
- platform: Et,
373
- ...i
374
- }, r = {
375
- ...o.platform,
376
- _c: n
377
- };
378
- return ut(t, e, {
379
- ...o,
380
- platform: r
381
- });
382
- };
17
+ );
18
+ });
19
+ e.displayName = v;
20
+ var h = e;
383
21
  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
22
+ e as Arrow,
23
+ h as Root
395
24
  };
396
25
  //# sourceMappingURL=index.es416.js.map