@datawire-ai/busyfile-design-library 1.30.3 → 1.30.5

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 (312) hide show
  1. package/dist/index10.js +46 -46
  2. package/dist/index100.js +14 -69
  3. package/dist/index101.js +15 -10
  4. package/dist/index102.js +8 -125
  5. package/dist/index103.js +48 -134
  6. package/dist/index104.js +649 -13
  7. package/dist/index105.js +13 -15
  8. package/dist/index106.js +227 -9
  9. package/dist/index107.js +219 -49
  10. package/dist/index108.js +27 -179
  11. package/dist/index109.js +10 -7
  12. package/dist/index11.js +6 -6
  13. package/dist/index110.js +3 -219
  14. package/dist/index111.js +13 -30
  15. package/dist/index112.js +3 -10
  16. package/dist/index113.js +47 -4
  17. package/dist/index114.js +7 -12
  18. package/dist/index115.js +14 -13
  19. package/dist/index116.js +178 -223
  20. package/dist/index117.js +23 -649
  21. package/dist/index118.js +22 -15
  22. package/dist/index119.js +39 -4
  23. package/dist/index12.js +67 -67
  24. package/dist/index120.js +18 -47
  25. package/dist/index121.js +12 -25
  26. package/dist/index122.js +205 -21
  27. package/dist/index123.js +21 -38
  28. package/dist/index124.js +399 -17
  29. package/dist/index125.js +6 -2
  30. package/dist/index126.js +25 -2
  31. package/dist/index127.js +29 -12
  32. package/dist/index128.js +5 -206
  33. package/dist/index129.js +2 -22
  34. package/dist/index13.js +95 -95
  35. package/dist/index130.js +47 -394
  36. package/dist/index131.js +65 -6
  37. package/dist/index132.js +52 -25
  38. package/dist/index133.js +5 -29
  39. package/dist/index134.js +5 -5
  40. package/dist/index135.js +16 -2
  41. package/dist/index136.js +5 -52
  42. package/dist/index137.js +8 -64
  43. package/dist/index138.js +17 -52
  44. package/dist/index139.js +4 -4
  45. package/dist/index14.js +15 -15
  46. package/dist/index140.js +3 -3
  47. package/dist/index141.js +5 -15
  48. package/dist/index142.js +5 -5
  49. package/dist/index143.js +3 -7
  50. package/dist/index144.js +4 -16
  51. package/dist/index145.js +6 -4
  52. package/dist/index146.js +24 -4
  53. package/dist/index147.js +6 -5
  54. package/dist/index148.js +4 -5
  55. package/dist/index149.js +5 -3
  56. package/dist/index15.js +54 -54
  57. package/dist/index150.js +4 -3
  58. package/dist/index151.js +4 -6
  59. package/dist/index152.js +5 -24
  60. package/dist/index153.js +4 -6
  61. package/dist/index154.js +7 -3
  62. package/dist/index155.js +5 -6
  63. package/dist/index156.js +4 -5
  64. package/dist/index157.js +3 -3
  65. package/dist/index158.js +5 -4
  66. package/dist/index159.js +58 -4
  67. package/dist/index16.js +12 -12
  68. package/dist/index160.js +65 -7
  69. package/dist/index161.js +240 -5
  70. package/dist/index162.js +39 -4
  71. package/dist/index163.js +4 -4
  72. package/dist/index164.js +7 -6
  73. package/dist/index165.js +13 -58
  74. package/dist/index166.js +7 -66
  75. package/dist/index167.js +10 -240
  76. package/dist/index168.js +9 -38
  77. package/dist/index169.js +8 -4
  78. package/dist/index17.js +30 -30
  79. package/dist/index170.js +16 -7
  80. package/dist/index171.js +24 -14
  81. package/dist/index172.js +20 -8
  82. package/dist/index173.js +52 -9
  83. package/dist/index174.js +41 -10
  84. package/dist/index175.js +9 -8
  85. package/dist/index176.js +20 -16
  86. package/dist/index177.js +17 -24
  87. package/dist/index178.js +7 -20
  88. package/dist/index179.js +23 -53
  89. package/dist/index18.js +18 -18
  90. package/dist/index180.js +19 -42
  91. package/dist/index181.js +16 -10
  92. package/dist/index182.js +6 -20
  93. package/dist/index183.js +4 -16
  94. package/dist/index184.js +4 -6
  95. package/dist/index185.js +4 -23
  96. package/dist/index186.js +5 -19
  97. package/dist/index187.js +4 -16
  98. package/dist/index188.js +5 -5
  99. package/dist/index189.js +7 -4
  100. package/dist/index19.js +29 -29
  101. package/dist/index190.js +6 -4
  102. package/dist/index191.js +5 -4
  103. package/dist/index192.js +3 -4
  104. package/dist/index193.js +1 -1
  105. package/dist/index194.js +3 -6
  106. package/dist/index195.js +3 -7
  107. package/dist/index196.js +4 -6
  108. package/dist/index197.js +3 -5
  109. package/dist/index198.js +3 -3
  110. package/dist/index199.js +3 -3
  111. package/dist/index20.js +6 -6
  112. package/dist/index200.js +5 -4
  113. package/dist/index201.js +3 -4
  114. package/dist/index202.js +23 -4
  115. package/dist/index203.js +109 -3
  116. package/dist/index204.js +15 -3
  117. package/dist/index205.js +524 -3
  118. package/dist/index206.js +128 -5
  119. package/dist/index207.js +134 -3
  120. package/dist/index208.js +2 -24
  121. package/dist/index209.js +2 -110
  122. package/dist/index21.js +22 -22
  123. package/dist/index210.js +8 -15
  124. package/dist/index211.js +17 -522
  125. package/dist/index212.js +15 -126
  126. package/dist/index213.js +4 -132
  127. package/dist/index214.js +6 -2
  128. package/dist/index215.js +7 -2
  129. package/dist/index216.js +4 -8
  130. package/dist/index217.js +7 -19
  131. package/dist/index218.js +17 -16
  132. package/dist/index219.js +5 -5
  133. package/dist/index22.js +31 -32
  134. package/dist/index220.js +5 -5
  135. package/dist/index221.js +13 -6
  136. package/dist/index222.js +10 -4
  137. package/dist/index223.js +14 -7
  138. package/dist/index224.js +5 -17
  139. package/dist/index225.js +6 -5
  140. package/dist/index226.js +8 -5
  141. package/dist/index227.js +6 -13
  142. package/dist/index228.js +56 -10
  143. package/dist/index229.js +9 -14
  144. package/dist/index23.js +24 -24
  145. package/dist/index230.js +3 -3
  146. package/dist/index231.js +5 -6
  147. package/dist/index232.js +9 -8
  148. package/dist/index233.js +4 -5
  149. package/dist/index234.js +5 -56
  150. package/dist/index235.js +4 -9
  151. package/dist/index236.js +11 -5
  152. package/dist/index237.js +10 -5
  153. package/dist/index238.js +10 -9
  154. package/dist/index239.js +11 -5
  155. package/dist/index24.js +6 -6
  156. package/dist/index240.js +11 -5
  157. package/dist/index241.js +10 -4
  158. package/dist/index242.js +7 -11
  159. package/dist/index243.js +6 -10
  160. package/dist/index244.js +4 -9
  161. package/dist/index245.js +6 -11
  162. package/dist/index246.js +8 -11
  163. package/dist/index247.js +6 -10
  164. package/dist/index248.js +23 -7
  165. package/dist/index249.js +18 -6
  166. package/dist/index25.js +10 -10
  167. package/dist/index250.js +7 -5
  168. package/dist/index251.js +10 -6
  169. package/dist/index252.js +10 -8
  170. package/dist/index253.js +21 -6
  171. package/dist/index254.js +10 -23
  172. package/dist/index255.js +9 -18
  173. package/dist/index256.js +9 -7
  174. package/dist/index257.js +4 -10
  175. package/dist/index258.js +5 -10
  176. package/dist/index259.js +16 -21
  177. package/dist/index26.js +10 -10
  178. package/dist/index260.js +9 -10
  179. package/dist/index261.js +18 -9
  180. package/dist/index262.js +15 -9
  181. package/dist/index263.js +12 -4
  182. package/dist/index264.js +29 -5
  183. package/dist/index265.js +11 -15
  184. package/dist/index266.js +25 -9
  185. package/dist/index267.js +5 -18
  186. package/dist/index268.js +62 -13
  187. package/dist/index269.js +69 -13
  188. package/dist/index27.js +21 -21
  189. package/dist/index270.js +9 -30
  190. package/dist/index271.js +13 -12
  191. package/dist/index272.js +63 -23
  192. package/dist/index273.js +68 -6
  193. package/dist/index274.js +31 -65
  194. package/dist/index275.js +9 -69
  195. package/dist/index276.js +152 -8
  196. package/dist/index277.js +107 -13
  197. package/dist/index278.js +5 -66
  198. package/dist/index279.js +13 -68
  199. package/dist/index28.js +202 -214
  200. package/dist/index280.js +4 -31
  201. package/dist/index281.js +23 -9
  202. package/dist/index282.js +7 -153
  203. package/dist/index283.js +16 -108
  204. package/dist/index284.js +28 -4
  205. package/dist/index285.js +12 -12
  206. package/dist/index286.js +5 -3
  207. package/dist/index287.js +5 -22
  208. package/dist/index288.js +4 -6
  209. package/dist/index289.js +15 -5
  210. package/dist/index29.js +42 -42
  211. package/dist/index290.js +9 -4
  212. package/dist/index291.js +5 -15
  213. package/dist/index292.js +4 -8
  214. package/dist/index293.js +512 -5
  215. package/dist/index294.js +50 -5
  216. package/dist/index295.js +15 -510
  217. package/dist/index296.js +7 -50
  218. package/dist/index297.js +8 -17
  219. package/dist/index298.js +7 -6
  220. package/dist/index299.js +8 -8
  221. package/dist/index3.js +13 -14
  222. package/dist/index30.js +113 -113
  223. package/dist/index300.js +12 -7
  224. package/dist/index301.js +10 -8
  225. package/dist/index302.js +14 -12
  226. package/dist/index303.js +23 -11
  227. package/dist/index304.js +13 -15
  228. package/dist/index305.js +27 -6
  229. package/dist/index306.js +5 -16
  230. package/dist/index307.js +4 -28
  231. package/dist/index308.js +57 -13
  232. package/dist/index31.js +18 -18
  233. package/dist/index32.js +3 -3
  234. package/dist/index33.js +102 -86
  235. package/dist/index34.js +13 -13
  236. package/dist/index35.js +60 -60
  237. package/dist/index36.js +92 -92
  238. package/dist/index4.js +9 -9
  239. package/dist/index40.js +57 -6
  240. package/dist/index41.js +25 -55
  241. package/dist/index42.js +130 -25
  242. package/dist/index43.js +23 -132
  243. package/dist/index44.js +238 -23
  244. package/dist/index45.js +29 -238
  245. package/dist/index46.js +251 -29
  246. package/dist/index47.js +18 -251
  247. package/dist/index48.js +10 -18
  248. package/dist/index49.js +261 -10
  249. package/dist/index5.js +18 -18
  250. package/dist/index50.js +13 -261
  251. package/dist/index51.js +31 -13
  252. package/dist/index52.js +334 -26
  253. package/dist/index53.js +37 -335
  254. package/dist/index54.js +23 -37
  255. package/dist/index55.js +8 -16
  256. package/dist/index56.js +5 -11
  257. package/dist/index57.js +3 -6
  258. package/dist/index58.js +13 -10
  259. package/dist/index59.js +74 -12
  260. package/dist/index6.js +8 -8
  261. package/dist/index60.js +83 -69
  262. package/dist/index61.js +13 -89
  263. package/dist/index62.js +11 -5
  264. package/dist/index63.js +20 -17
  265. package/dist/index64.js +69 -20
  266. package/dist/index65.js +15 -71
  267. package/dist/index66.js +13 -9
  268. package/dist/index67.js +7 -7
  269. package/dist/index68.js +8 -13
  270. package/dist/index69.js +2 -14
  271. package/dist/index7.js +46 -46
  272. package/dist/index70.js +10 -2
  273. package/dist/index71.js +8 -4
  274. package/dist/index72.js +6 -14
  275. package/dist/index73.js +13 -6
  276. package/dist/index74.js +22 -13
  277. package/dist/index75.js +160 -19
  278. package/dist/index76.js +21 -161
  279. package/dist/index77.js +33 -23
  280. package/dist/index78.js +13 -33
  281. package/dist/index79.js +10 -4
  282. package/dist/index8.js +25 -28
  283. package/dist/index80.js +174 -17
  284. package/dist/index81.js +10 -176
  285. package/dist/index82.js +862 -10
  286. package/dist/index83.js +27 -853
  287. package/dist/index84.js +10 -36
  288. package/dist/index85.js +243 -10
  289. package/dist/index86.js +298 -230
  290. package/dist/index87.js +216 -300
  291. package/dist/index88.js +10 -227
  292. package/dist/index89.js +27 -10
  293. package/dist/index9.js +19 -19
  294. package/dist/index90.js +68 -2
  295. package/dist/index91.js +6 -32
  296. package/dist/index92.js +51 -242
  297. package/dist/index93.js +5 -26
  298. package/dist/index94.js +24 -6
  299. package/dist/index95.js +65 -63
  300. package/dist/index96.js +33 -51
  301. package/dist/index97.js +10 -5
  302. package/dist/index98.js +124 -23
  303. package/dist/index99.js +134 -32
  304. package/dist/style.css +1 -1
  305. package/dist/types/index.d.ts +4 -1
  306. package/package.json +6 -7
  307. package/dist/index309.js +0 -25
  308. package/dist/index310.js +0 -15
  309. package/dist/index311.js +0 -30
  310. package/dist/index312.js +0 -7
  311. package/dist/index313.js +0 -7
  312. package/dist/index314.js +0 -59
package/dist/index82.js CHANGED
@@ -1,12 +1,864 @@
1
- import e from "./index121.js";
2
- /**
3
- * @license lucide-react v0.542.0 - ISC
4
- *
5
- * This source code is licensed under the ISC license.
6
- * See the LICENSE file in the root directory of this source tree.
7
- */
8
- const o = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], c = e("chevron-left", o);
1
+ "use client";
2
+ import * as t from "react";
3
+ import * as be from "react-dom";
4
+ import { clamp as Re } from "./index112.js";
5
+ import { composeEventHandlers as E } from "./index91.js";
6
+ import { createCollection as st } from "./index113.js";
7
+ import { useComposedRefs as B } from "./index89.js";
8
+ import { createContextScope as lt } from "./index90.js";
9
+ import { useDirection as ct } from "./index114.js";
10
+ import { DismissableLayer as it } from "./index98.js";
11
+ import { useFocusGuards as at } from "./index101.js";
12
+ import { FocusScope as dt } from "./index99.js";
13
+ import { useId as Ie } from "./index97.js";
14
+ import { createPopperScope as _e, Root as ut, Anchor as pt, Content as ft, Arrow as mt } from "./index107.js";
15
+ import { Portal as ht } from "./index100.js";
16
+ import { Primitive as M } from "./index96.js";
17
+ import { createSlot as vt } from "./index40.js";
18
+ import { useCallbackRef as gt } from "./index109.js";
19
+ import { useControllableState as Ee } from "./index92.js";
20
+ import { useLayoutEffect as Y } from "./index110.js";
21
+ import { usePrevious as St } from "./index93.js";
22
+ import { VISUALLY_HIDDEN_STYLES as wt } from "./index108.js";
23
+ import { hideOthers as Ct } from "./index103.js";
24
+ import yt from "./index102.js";
25
+ import { jsx as m, Fragment as Te, jsxs as ce } from "react/jsx-runtime";
26
+ var xt = [" ", "Enter", "ArrowUp", "ArrowDown"], It = [" ", "Enter"], J = "Select", [ae, de, Tt] = st(J), [te, uo] = lt(J, [
27
+ Tt,
28
+ _e
29
+ ]), ue = _e(), [Pt, j] = te(J), [Rt, Et] = te(J), Ne = (n) => {
30
+ const {
31
+ __scopeSelect: c,
32
+ children: e,
33
+ open: i,
34
+ defaultOpen: l,
35
+ onOpenChange: u,
36
+ value: r,
37
+ defaultValue: s,
38
+ onValueChange: o,
39
+ dir: p,
40
+ name: g,
41
+ autoComplete: C,
42
+ disabled: P,
43
+ required: R,
44
+ form: T
45
+ } = n, a = ue(c), [v, y] = t.useState(null), [d, h] = t.useState(null), [A, O] = t.useState(!1), oe = ct(p), [b, L] = Ee({
46
+ prop: i,
47
+ defaultProp: l ?? !1,
48
+ onChange: u,
49
+ caller: J
50
+ }), [K, X] = Ee({
51
+ prop: r,
52
+ defaultProp: s,
53
+ onChange: o,
54
+ caller: J
55
+ }), V = t.useRef(null), H = v ? T || !!v.closest("form") : !0, [G, U] = t.useState(/* @__PURE__ */ new Set()), W = Array.from(G).map((_) => _.props.value).join(";");
56
+ return /* @__PURE__ */ m(ut, { ...a, children: /* @__PURE__ */ ce(
57
+ Pt,
58
+ {
59
+ required: R,
60
+ scope: c,
61
+ trigger: v,
62
+ onTriggerChange: y,
63
+ valueNode: d,
64
+ onValueNodeChange: h,
65
+ valueNodeHasChildren: A,
66
+ onValueNodeHasChildrenChange: O,
67
+ contentId: Ie(),
68
+ value: K,
69
+ onValueChange: X,
70
+ open: b,
71
+ onOpenChange: L,
72
+ dir: oe,
73
+ triggerPointerDownPosRef: V,
74
+ disabled: P,
75
+ children: [
76
+ /* @__PURE__ */ m(ae.Provider, { scope: c, children: /* @__PURE__ */ m(
77
+ Rt,
78
+ {
79
+ scope: n.__scopeSelect,
80
+ onNativeOptionAdd: t.useCallback((_) => {
81
+ U((k) => new Set(k).add(_));
82
+ }, []),
83
+ onNativeOptionRemove: t.useCallback((_) => {
84
+ U((k) => {
85
+ const F = new Set(k);
86
+ return F.delete(_), F;
87
+ });
88
+ }, []),
89
+ children: e
90
+ }
91
+ ) }),
92
+ H ? /* @__PURE__ */ ce(
93
+ tt,
94
+ {
95
+ "aria-hidden": !0,
96
+ required: R,
97
+ tabIndex: -1,
98
+ name: g,
99
+ autoComplete: C,
100
+ value: K,
101
+ onChange: (_) => X(_.target.value),
102
+ disabled: P,
103
+ form: T,
104
+ children: [
105
+ K === void 0 ? /* @__PURE__ */ m("option", { value: "" }) : null,
106
+ Array.from(G)
107
+ ]
108
+ },
109
+ W
110
+ ) : null
111
+ ]
112
+ }
113
+ ) });
114
+ };
115
+ Ne.displayName = J;
116
+ var Me = "SelectTrigger", Ae = t.forwardRef(
117
+ (n, c) => {
118
+ const { __scopeSelect: e, disabled: i = !1, ...l } = n, u = ue(e), r = j(Me, e), s = r.disabled || i, o = B(c, r.onTriggerChange), p = de(e), g = t.useRef("touch"), [C, P, R] = nt((a) => {
119
+ const v = p().filter((h) => !h.disabled), y = v.find((h) => h.value === r.value), d = rt(v, a, y);
120
+ d !== void 0 && r.onValueChange(d.value);
121
+ }), T = (a) => {
122
+ s || (r.onOpenChange(!0), R()), a && (r.triggerPointerDownPosRef.current = {
123
+ x: Math.round(a.pageX),
124
+ y: Math.round(a.pageY)
125
+ });
126
+ };
127
+ return /* @__PURE__ */ m(pt, { asChild: !0, ...u, children: /* @__PURE__ */ m(
128
+ M.button,
129
+ {
130
+ type: "button",
131
+ role: "combobox",
132
+ "aria-controls": r.contentId,
133
+ "aria-expanded": r.open,
134
+ "aria-required": r.required,
135
+ "aria-autocomplete": "none",
136
+ dir: r.dir,
137
+ "data-state": r.open ? "open" : "closed",
138
+ disabled: s,
139
+ "data-disabled": s ? "" : void 0,
140
+ "data-placeholder": ot(r.value) ? "" : void 0,
141
+ ...l,
142
+ ref: o,
143
+ onClick: E(l.onClick, (a) => {
144
+ a.currentTarget.focus(), g.current !== "mouse" && T(a);
145
+ }),
146
+ onPointerDown: E(l.onPointerDown, (a) => {
147
+ g.current = a.pointerType;
148
+ const v = a.target;
149
+ v.hasPointerCapture(a.pointerId) && v.releasePointerCapture(a.pointerId), a.button === 0 && a.ctrlKey === !1 && a.pointerType === "mouse" && (T(a), a.preventDefault());
150
+ }),
151
+ onKeyDown: E(l.onKeyDown, (a) => {
152
+ const v = C.current !== "";
153
+ !(a.ctrlKey || a.altKey || a.metaKey) && a.key.length === 1 && P(a.key), !(v && a.key === " ") && xt.includes(a.key) && (T(), a.preventDefault());
154
+ })
155
+ }
156
+ ) });
157
+ }
158
+ );
159
+ Ae.displayName = Me;
160
+ var Oe = "SelectValue", De = t.forwardRef(
161
+ (n, c) => {
162
+ const { __scopeSelect: e, className: i, style: l, children: u, placeholder: r = "", ...s } = n, o = j(Oe, e), { onValueNodeHasChildrenChange: p } = o, g = u !== void 0, C = B(c, o.onValueNodeChange);
163
+ return Y(() => {
164
+ p(g);
165
+ }, [p, g]), /* @__PURE__ */ m(
166
+ M.span,
167
+ {
168
+ ...s,
169
+ ref: C,
170
+ style: { pointerEvents: "none" },
171
+ children: ot(o.value) ? /* @__PURE__ */ m(Te, { children: r }) : u
172
+ }
173
+ );
174
+ }
175
+ );
176
+ De.displayName = Oe;
177
+ var bt = "SelectIcon", Le = t.forwardRef(
178
+ (n, c) => {
179
+ const { __scopeSelect: e, children: i, ...l } = n;
180
+ return /* @__PURE__ */ m(M.span, { "aria-hidden": !0, ...l, ref: c, children: i || "▼" });
181
+ }
182
+ );
183
+ Le.displayName = bt;
184
+ var _t = "SelectPortal", ke = (n) => /* @__PURE__ */ m(ht, { asChild: !0, ...n });
185
+ ke.displayName = _t;
186
+ var Q = "SelectContent", Be = t.forwardRef(
187
+ (n, c) => {
188
+ const e = j(Q, n.__scopeSelect), [i, l] = t.useState();
189
+ if (Y(() => {
190
+ l(new DocumentFragment());
191
+ }, []), !e.open) {
192
+ const u = i;
193
+ return u ? be.createPortal(
194
+ /* @__PURE__ */ m(Ve, { scope: n.__scopeSelect, children: /* @__PURE__ */ m(ae.Slot, { scope: n.__scopeSelect, children: /* @__PURE__ */ m("div", { children: n.children }) }) }),
195
+ u
196
+ ) : null;
197
+ }
198
+ return /* @__PURE__ */ m(He, { ...n, ref: c });
199
+ }
200
+ );
201
+ Be.displayName = Q;
202
+ var D = 10, [Ve, q] = te(Q), Nt = "SelectContentImpl", Mt = vt("SelectContent.RemoveScroll"), He = t.forwardRef(
203
+ (n, c) => {
204
+ const {
205
+ __scopeSelect: e,
206
+ position: i = "item-aligned",
207
+ onCloseAutoFocus: l,
208
+ onEscapeKeyDown: u,
209
+ onPointerDownOutside: r,
210
+ //
211
+ // PopperContent props
212
+ side: s,
213
+ sideOffset: o,
214
+ align: p,
215
+ alignOffset: g,
216
+ arrowPadding: C,
217
+ collisionBoundary: P,
218
+ collisionPadding: R,
219
+ sticky: T,
220
+ hideWhenDetached: a,
221
+ avoidCollisions: v,
222
+ //
223
+ ...y
224
+ } = n, d = j(Q, e), [h, A] = t.useState(null), [O, oe] = t.useState(null), b = B(c, (f) => A(f)), [L, K] = t.useState(null), [X, V] = t.useState(
225
+ null
226
+ ), H = de(e), [G, U] = t.useState(!1), W = t.useRef(!1);
227
+ t.useEffect(() => {
228
+ if (h) return Ct(h);
229
+ }, [h]), at();
230
+ const _ = t.useCallback(
231
+ (f) => {
232
+ const [I, ...N] = H().map((w) => w.ref.current), [x] = N.slice(-1), S = document.activeElement;
233
+ for (const w of f)
234
+ if (w === S || (w == null || w.scrollIntoView({ block: "nearest" }), w === I && O && (O.scrollTop = 0), w === x && O && (O.scrollTop = O.scrollHeight), w == null || w.focus(), document.activeElement !== S)) return;
235
+ },
236
+ [H, O]
237
+ ), k = t.useCallback(
238
+ () => _([L, h]),
239
+ [_, L, h]
240
+ );
241
+ t.useEffect(() => {
242
+ G && k();
243
+ }, [G, k]);
244
+ const { onOpenChange: F, triggerPointerDownPosRef: z } = d;
245
+ t.useEffect(() => {
246
+ if (h) {
247
+ let f = { x: 0, y: 0 };
248
+ const I = (x) => {
249
+ var S, w;
250
+ f = {
251
+ x: Math.abs(Math.round(x.pageX) - (((S = z.current) == null ? void 0 : S.x) ?? 0)),
252
+ y: Math.abs(Math.round(x.pageY) - (((w = z.current) == null ? void 0 : w.y) ?? 0))
253
+ };
254
+ }, N = (x) => {
255
+ f.x <= 10 && f.y <= 10 ? x.preventDefault() : h.contains(x.target) || F(!1), document.removeEventListener("pointermove", I), z.current = null;
256
+ };
257
+ return z.current !== null && (document.addEventListener("pointermove", I), document.addEventListener("pointerup", N, { capture: !0, once: !0 })), () => {
258
+ document.removeEventListener("pointermove", I), document.removeEventListener("pointerup", N, { capture: !0 });
259
+ };
260
+ }
261
+ }, [h, F, z]), t.useEffect(() => {
262
+ const f = () => F(!1);
263
+ return window.addEventListener("blur", f), window.addEventListener("resize", f), () => {
264
+ window.removeEventListener("blur", f), window.removeEventListener("resize", f);
265
+ };
266
+ }, [F]);
267
+ const [pe, se] = nt((f) => {
268
+ const I = H().filter((S) => !S.disabled), N = I.find((S) => S.ref.current === document.activeElement), x = rt(I, f, N);
269
+ x && setTimeout(() => x.ref.current.focus());
270
+ }), fe = t.useCallback(
271
+ (f, I, N) => {
272
+ const x = !W.current && !N;
273
+ (d.value !== void 0 && d.value === I || x) && (K(f), x && (W.current = !0));
274
+ },
275
+ [d.value]
276
+ ), me = t.useCallback(() => h == null ? void 0 : h.focus(), [h]), ee = t.useCallback(
277
+ (f, I, N) => {
278
+ const x = !W.current && !N;
279
+ (d.value !== void 0 && d.value === I || x) && V(f);
280
+ },
281
+ [d.value]
282
+ ), le = i === "popper" ? Se : Ue, ne = le === Se ? {
283
+ side: s,
284
+ sideOffset: o,
285
+ align: p,
286
+ alignOffset: g,
287
+ arrowPadding: C,
288
+ collisionBoundary: P,
289
+ collisionPadding: R,
290
+ sticky: T,
291
+ hideWhenDetached: a,
292
+ avoidCollisions: v
293
+ } : {};
294
+ return /* @__PURE__ */ m(
295
+ Ve,
296
+ {
297
+ scope: e,
298
+ content: h,
299
+ viewport: O,
300
+ onViewportChange: oe,
301
+ itemRefCallback: fe,
302
+ selectedItem: L,
303
+ onItemLeave: me,
304
+ itemTextRefCallback: ee,
305
+ focusSelectedItem: k,
306
+ selectedItemText: X,
307
+ position: i,
308
+ isPositioned: G,
309
+ searchRef: pe,
310
+ children: /* @__PURE__ */ m(yt, { as: Mt, allowPinchZoom: !0, children: /* @__PURE__ */ m(
311
+ dt,
312
+ {
313
+ asChild: !0,
314
+ trapped: d.open,
315
+ onMountAutoFocus: (f) => {
316
+ f.preventDefault();
317
+ },
318
+ onUnmountAutoFocus: E(l, (f) => {
319
+ var I;
320
+ (I = d.trigger) == null || I.focus({ preventScroll: !0 }), f.preventDefault();
321
+ }),
322
+ children: /* @__PURE__ */ m(
323
+ it,
324
+ {
325
+ asChild: !0,
326
+ disableOutsidePointerEvents: !0,
327
+ onEscapeKeyDown: u,
328
+ onPointerDownOutside: r,
329
+ onFocusOutside: (f) => f.preventDefault(),
330
+ onDismiss: () => d.onOpenChange(!1),
331
+ children: /* @__PURE__ */ m(
332
+ le,
333
+ {
334
+ role: "listbox",
335
+ id: d.contentId,
336
+ "data-state": d.open ? "open" : "closed",
337
+ dir: d.dir,
338
+ onContextMenu: (f) => f.preventDefault(),
339
+ ...y,
340
+ ...ne,
341
+ onPlaced: () => U(!0),
342
+ ref: b,
343
+ style: {
344
+ // flex layout so we can place the scroll buttons properly
345
+ display: "flex",
346
+ flexDirection: "column",
347
+ // reset the outline by default as the content MAY get focused
348
+ outline: "none",
349
+ ...y.style
350
+ },
351
+ onKeyDown: E(y.onKeyDown, (f) => {
352
+ const I = f.ctrlKey || f.altKey || f.metaKey;
353
+ if (f.key === "Tab" && f.preventDefault(), !I && f.key.length === 1 && se(f.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(f.key)) {
354
+ let x = H().filter((S) => !S.disabled).map((S) => S.ref.current);
355
+ if (["ArrowUp", "End"].includes(f.key) && (x = x.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(f.key)) {
356
+ const S = f.target, w = x.indexOf(S);
357
+ x = x.slice(w + 1);
358
+ }
359
+ setTimeout(() => _(x)), f.preventDefault();
360
+ }
361
+ })
362
+ }
363
+ )
364
+ }
365
+ )
366
+ }
367
+ ) })
368
+ }
369
+ );
370
+ }
371
+ );
372
+ He.displayName = Nt;
373
+ var At = "SelectItemAlignedPosition", Ue = t.forwardRef((n, c) => {
374
+ const { __scopeSelect: e, onPlaced: i, ...l } = n, u = j(Q, e), r = q(Q, e), [s, o] = t.useState(null), [p, g] = t.useState(null), C = B(c, (b) => g(b)), P = de(e), R = t.useRef(!1), T = t.useRef(!0), { viewport: a, selectedItem: v, selectedItemText: y, focusSelectedItem: d } = r, h = t.useCallback(() => {
375
+ if (u.trigger && u.valueNode && s && p && a && v && y) {
376
+ const b = u.trigger.getBoundingClientRect(), L = p.getBoundingClientRect(), K = u.valueNode.getBoundingClientRect(), X = y.getBoundingClientRect();
377
+ if (u.dir !== "rtl") {
378
+ const S = X.left - L.left, w = K.left - S, Z = b.left - w, $ = b.width + Z, he = Math.max($, L.width), ve = window.innerWidth - D, ge = Re(w, [
379
+ D,
380
+ // Prevents the content from going off the starting edge of the
381
+ // viewport. It may still go off the ending edge, but this can be
382
+ // controlled by the user since they may want to manage overflow in a
383
+ // specific way.
384
+ // https://github.com/radix-ui/primitives/issues/2049
385
+ Math.max(D, ve - he)
386
+ ]);
387
+ s.style.minWidth = $ + "px", s.style.left = ge + "px";
388
+ } else {
389
+ const S = L.right - X.right, w = window.innerWidth - K.right - S, Z = window.innerWidth - b.right - w, $ = b.width + Z, he = Math.max($, L.width), ve = window.innerWidth - D, ge = Re(w, [
390
+ D,
391
+ Math.max(D, ve - he)
392
+ ]);
393
+ s.style.minWidth = $ + "px", s.style.right = ge + "px";
394
+ }
395
+ const V = P(), H = window.innerHeight - D * 2, G = a.scrollHeight, U = window.getComputedStyle(p), W = parseInt(U.borderTopWidth, 10), _ = parseInt(U.paddingTop, 10), k = parseInt(U.borderBottomWidth, 10), F = parseInt(U.paddingBottom, 10), z = W + _ + G + F + k, pe = Math.min(v.offsetHeight * 5, z), se = window.getComputedStyle(a), fe = parseInt(se.paddingTop, 10), me = parseInt(se.paddingBottom, 10), ee = b.top + b.height / 2 - D, le = H - ee, ne = v.offsetHeight / 2, f = v.offsetTop + ne, I = W + _ + f, N = z - I;
396
+ if (I <= ee) {
397
+ const S = V.length > 0 && v === V[V.length - 1].ref.current;
398
+ s.style.bottom = "0px";
399
+ const w = p.clientHeight - a.offsetTop - a.offsetHeight, Z = Math.max(
400
+ le,
401
+ ne + // viewport might have padding bottom, include it to avoid a scrollable viewport
402
+ (S ? me : 0) + w + k
403
+ ), $ = I + Z;
404
+ s.style.height = $ + "px";
405
+ } else {
406
+ const S = V.length > 0 && v === V[0].ref.current;
407
+ s.style.top = "0px";
408
+ const Z = Math.max(
409
+ ee,
410
+ W + a.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
411
+ (S ? fe : 0) + ne
412
+ ) + N;
413
+ s.style.height = Z + "px", a.scrollTop = I - ee + a.offsetTop;
414
+ }
415
+ s.style.margin = `${D}px 0`, s.style.minHeight = pe + "px", s.style.maxHeight = H + "px", i == null || i(), requestAnimationFrame(() => R.current = !0);
416
+ }
417
+ }, [
418
+ P,
419
+ u.trigger,
420
+ u.valueNode,
421
+ s,
422
+ p,
423
+ a,
424
+ v,
425
+ y,
426
+ u.dir,
427
+ i
428
+ ]);
429
+ Y(() => h(), [h]);
430
+ const [A, O] = t.useState();
431
+ Y(() => {
432
+ p && O(window.getComputedStyle(p).zIndex);
433
+ }, [p]);
434
+ const oe = t.useCallback(
435
+ (b) => {
436
+ b && T.current === !0 && (h(), d == null || d(), T.current = !1);
437
+ },
438
+ [h, d]
439
+ );
440
+ return /* @__PURE__ */ m(
441
+ Dt,
442
+ {
443
+ scope: e,
444
+ contentWrapper: s,
445
+ shouldExpandOnScrollRef: R,
446
+ onScrollButtonChange: oe,
447
+ children: /* @__PURE__ */ m(
448
+ "div",
449
+ {
450
+ ref: o,
451
+ style: {
452
+ display: "flex",
453
+ flexDirection: "column",
454
+ position: "fixed",
455
+ zIndex: A
456
+ },
457
+ children: /* @__PURE__ */ m(
458
+ M.div,
459
+ {
460
+ ...l,
461
+ ref: C,
462
+ style: {
463
+ // When we get the height of the content, it includes borders. If we were to set
464
+ // the height without having `boxSizing: 'border-box'` it would be too big.
465
+ boxSizing: "border-box",
466
+ // We need to ensure the content doesn't get taller than the wrapper
467
+ maxHeight: "100%",
468
+ ...l.style
469
+ }
470
+ }
471
+ )
472
+ }
473
+ )
474
+ }
475
+ );
476
+ });
477
+ Ue.displayName = At;
478
+ var Ot = "SelectPopperPosition", Se = t.forwardRef((n, c) => {
479
+ const {
480
+ __scopeSelect: e,
481
+ align: i = "start",
482
+ collisionPadding: l = D,
483
+ ...u
484
+ } = n, r = ue(e);
485
+ return /* @__PURE__ */ m(
486
+ ft,
487
+ {
488
+ ...r,
489
+ ...u,
490
+ ref: c,
491
+ align: i,
492
+ collisionPadding: l,
493
+ style: {
494
+ // Ensure border-box for floating-ui calculations
495
+ boxSizing: "border-box",
496
+ ...u.style,
497
+ "--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
498
+ "--radix-select-content-available-width": "var(--radix-popper-available-width)",
499
+ "--radix-select-content-available-height": "var(--radix-popper-available-height)",
500
+ "--radix-select-trigger-width": "var(--radix-popper-anchor-width)",
501
+ "--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
502
+ }
503
+ }
504
+ );
505
+ });
506
+ Se.displayName = Ot;
507
+ var [Dt, Pe] = te(Q, {}), we = "SelectViewport", We = t.forwardRef(
508
+ (n, c) => {
509
+ const { __scopeSelect: e, nonce: i, ...l } = n, u = q(we, e), r = Pe(we, e), s = B(c, u.onViewportChange), o = t.useRef(0);
510
+ return /* @__PURE__ */ ce(Te, { children: [
511
+ /* @__PURE__ */ m(
512
+ "style",
513
+ {
514
+ dangerouslySetInnerHTML: {
515
+ __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"
516
+ },
517
+ nonce: i
518
+ }
519
+ ),
520
+ /* @__PURE__ */ m(ae.Slot, { scope: e, children: /* @__PURE__ */ m(
521
+ M.div,
522
+ {
523
+ "data-radix-select-viewport": "",
524
+ role: "presentation",
525
+ ...l,
526
+ ref: s,
527
+ style: {
528
+ // we use position: 'relative' here on the `viewport` so that when we call
529
+ // `selectedItem.offsetTop` in calculations, the offset is relative to the viewport
530
+ // (independent of the scrollUpButton).
531
+ position: "relative",
532
+ flex: 1,
533
+ // Viewport should only be scrollable in the vertical direction.
534
+ // This won't work in vertical writing modes, so we'll need to
535
+ // revisit this if/when that is supported
536
+ // https://developer.chrome.com/blog/vertical-form-controls
537
+ overflow: "hidden auto",
538
+ ...l.style
539
+ },
540
+ onScroll: E(l.onScroll, (p) => {
541
+ const g = p.currentTarget, { contentWrapper: C, shouldExpandOnScrollRef: P } = r;
542
+ if (P != null && P.current && C) {
543
+ const R = Math.abs(o.current - g.scrollTop);
544
+ if (R > 0) {
545
+ const T = window.innerHeight - D * 2, a = parseFloat(C.style.minHeight), v = parseFloat(C.style.height), y = Math.max(a, v);
546
+ if (y < T) {
547
+ const d = y + R, h = Math.min(T, d), A = d - h;
548
+ C.style.height = h + "px", C.style.bottom === "0px" && (g.scrollTop = A > 0 ? A : 0, C.style.justifyContent = "flex-end");
549
+ }
550
+ }
551
+ }
552
+ o.current = g.scrollTop;
553
+ })
554
+ }
555
+ ) })
556
+ ] });
557
+ }
558
+ );
559
+ We.displayName = we;
560
+ var Fe = "SelectGroup", [Lt, kt] = te(Fe), Ke = t.forwardRef(
561
+ (n, c) => {
562
+ const { __scopeSelect: e, ...i } = n, l = Ie();
563
+ return /* @__PURE__ */ m(Lt, { scope: e, id: l, children: /* @__PURE__ */ m(M.div, { role: "group", "aria-labelledby": l, ...i, ref: c }) });
564
+ }
565
+ );
566
+ Ke.displayName = Fe;
567
+ var Ge = "SelectLabel", ze = t.forwardRef(
568
+ (n, c) => {
569
+ const { __scopeSelect: e, ...i } = n, l = kt(Ge, e);
570
+ return /* @__PURE__ */ m(M.div, { id: l.id, ...i, ref: c });
571
+ }
572
+ );
573
+ ze.displayName = Ge;
574
+ var ie = "SelectItem", [Bt, Ye] = te(ie), je = t.forwardRef(
575
+ (n, c) => {
576
+ const {
577
+ __scopeSelect: e,
578
+ value: i,
579
+ disabled: l = !1,
580
+ textValue: u,
581
+ ...r
582
+ } = n, s = j(ie, e), o = q(ie, e), p = s.value === i, [g, C] = t.useState(u ?? ""), [P, R] = t.useState(!1), T = B(
583
+ c,
584
+ (d) => {
585
+ var h;
586
+ return (h = o.itemRefCallback) == null ? void 0 : h.call(o, d, i, l);
587
+ }
588
+ ), a = Ie(), v = t.useRef("touch"), y = () => {
589
+ l || (s.onValueChange(i), s.onOpenChange(!1));
590
+ };
591
+ if (i === "")
592
+ throw new Error(
593
+ "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
594
+ );
595
+ return /* @__PURE__ */ m(
596
+ Bt,
597
+ {
598
+ scope: e,
599
+ value: i,
600
+ disabled: l,
601
+ textId: a,
602
+ isSelected: p,
603
+ onItemTextChange: t.useCallback((d) => {
604
+ C((h) => h || ((d == null ? void 0 : d.textContent) ?? "").trim());
605
+ }, []),
606
+ children: /* @__PURE__ */ m(
607
+ ae.ItemSlot,
608
+ {
609
+ scope: e,
610
+ value: i,
611
+ disabled: l,
612
+ textValue: g,
613
+ children: /* @__PURE__ */ m(
614
+ M.div,
615
+ {
616
+ role: "option",
617
+ "aria-labelledby": a,
618
+ "data-highlighted": P ? "" : void 0,
619
+ "aria-selected": p && P,
620
+ "data-state": p ? "checked" : "unchecked",
621
+ "aria-disabled": l || void 0,
622
+ "data-disabled": l ? "" : void 0,
623
+ tabIndex: l ? void 0 : -1,
624
+ ...r,
625
+ ref: T,
626
+ onFocus: E(r.onFocus, () => R(!0)),
627
+ onBlur: E(r.onBlur, () => R(!1)),
628
+ onClick: E(r.onClick, () => {
629
+ v.current !== "mouse" && y();
630
+ }),
631
+ onPointerUp: E(r.onPointerUp, () => {
632
+ v.current === "mouse" && y();
633
+ }),
634
+ onPointerDown: E(r.onPointerDown, (d) => {
635
+ v.current = d.pointerType;
636
+ }),
637
+ onPointerMove: E(r.onPointerMove, (d) => {
638
+ var h;
639
+ v.current = d.pointerType, l ? (h = o.onItemLeave) == null || h.call(o) : v.current === "mouse" && d.currentTarget.focus({ preventScroll: !0 });
640
+ }),
641
+ onPointerLeave: E(r.onPointerLeave, (d) => {
642
+ var h;
643
+ d.currentTarget === document.activeElement && ((h = o.onItemLeave) == null || h.call(o));
644
+ }),
645
+ onKeyDown: E(r.onKeyDown, (d) => {
646
+ var A;
647
+ ((A = o.searchRef) == null ? void 0 : A.current) !== "" && d.key === " " || (It.includes(d.key) && y(), d.key === " " && d.preventDefault());
648
+ })
649
+ }
650
+ )
651
+ }
652
+ )
653
+ }
654
+ );
655
+ }
656
+ );
657
+ je.displayName = ie;
658
+ var re = "SelectItemText", qe = t.forwardRef(
659
+ (n, c) => {
660
+ const { __scopeSelect: e, className: i, style: l, ...u } = n, r = j(re, e), s = q(re, e), o = Ye(re, e), p = Et(re, e), [g, C] = t.useState(null), P = B(
661
+ c,
662
+ (y) => C(y),
663
+ o.onItemTextChange,
664
+ (y) => {
665
+ var d;
666
+ return (d = s.itemTextRefCallback) == null ? void 0 : d.call(s, y, o.value, o.disabled);
667
+ }
668
+ ), R = g == null ? void 0 : g.textContent, T = t.useMemo(
669
+ () => /* @__PURE__ */ m("option", { value: o.value, disabled: o.disabled, children: R }, o.value),
670
+ [o.disabled, o.value, R]
671
+ ), { onNativeOptionAdd: a, onNativeOptionRemove: v } = p;
672
+ return Y(() => (a(T), () => v(T)), [a, v, T]), /* @__PURE__ */ ce(Te, { children: [
673
+ /* @__PURE__ */ m(M.span, { id: o.textId, ...u, ref: P }),
674
+ o.isSelected && r.valueNode && !r.valueNodeHasChildren ? be.createPortal(u.children, r.valueNode) : null
675
+ ] });
676
+ }
677
+ );
678
+ qe.displayName = re;
679
+ var Xe = "SelectItemIndicator", Ze = t.forwardRef(
680
+ (n, c) => {
681
+ const { __scopeSelect: e, ...i } = n;
682
+ return Ye(Xe, e).isSelected ? /* @__PURE__ */ m(M.span, { "aria-hidden": !0, ...i, ref: c }) : null;
683
+ }
684
+ );
685
+ Ze.displayName = Xe;
686
+ var Ce = "SelectScrollUpButton", $e = t.forwardRef((n, c) => {
687
+ const e = q(Ce, n.__scopeSelect), i = Pe(Ce, n.__scopeSelect), [l, u] = t.useState(!1), r = B(c, i.onScrollButtonChange);
688
+ return Y(() => {
689
+ if (e.viewport && e.isPositioned) {
690
+ let s = function() {
691
+ const p = o.scrollTop > 0;
692
+ u(p);
693
+ };
694
+ const o = e.viewport;
695
+ return s(), o.addEventListener("scroll", s), () => o.removeEventListener("scroll", s);
696
+ }
697
+ }, [e.viewport, e.isPositioned]), l ? /* @__PURE__ */ m(
698
+ Qe,
699
+ {
700
+ ...n,
701
+ ref: r,
702
+ onAutoScroll: () => {
703
+ const { viewport: s, selectedItem: o } = e;
704
+ s && o && (s.scrollTop = s.scrollTop - o.offsetHeight);
705
+ }
706
+ }
707
+ ) : null;
708
+ });
709
+ $e.displayName = Ce;
710
+ var ye = "SelectScrollDownButton", Je = t.forwardRef((n, c) => {
711
+ const e = q(ye, n.__scopeSelect), i = Pe(ye, n.__scopeSelect), [l, u] = t.useState(!1), r = B(c, i.onScrollButtonChange);
712
+ return Y(() => {
713
+ if (e.viewport && e.isPositioned) {
714
+ let s = function() {
715
+ const p = o.scrollHeight - o.clientHeight, g = Math.ceil(o.scrollTop) < p;
716
+ u(g);
717
+ };
718
+ const o = e.viewport;
719
+ return s(), o.addEventListener("scroll", s), () => o.removeEventListener("scroll", s);
720
+ }
721
+ }, [e.viewport, e.isPositioned]), l ? /* @__PURE__ */ m(
722
+ Qe,
723
+ {
724
+ ...n,
725
+ ref: r,
726
+ onAutoScroll: () => {
727
+ const { viewport: s, selectedItem: o } = e;
728
+ s && o && (s.scrollTop = s.scrollTop + o.offsetHeight);
729
+ }
730
+ }
731
+ ) : null;
732
+ });
733
+ Je.displayName = ye;
734
+ var Qe = t.forwardRef((n, c) => {
735
+ const { __scopeSelect: e, onAutoScroll: i, ...l } = n, u = q("SelectScrollButton", e), r = t.useRef(null), s = de(e), o = t.useCallback(() => {
736
+ r.current !== null && (window.clearInterval(r.current), r.current = null);
737
+ }, []);
738
+ return t.useEffect(() => () => o(), [o]), Y(() => {
739
+ var g;
740
+ const p = s().find((C) => C.ref.current === document.activeElement);
741
+ (g = p == null ? void 0 : p.ref.current) == null || g.scrollIntoView({ block: "nearest" });
742
+ }, [s]), /* @__PURE__ */ m(
743
+ M.div,
744
+ {
745
+ "aria-hidden": !0,
746
+ ...l,
747
+ ref: c,
748
+ style: { flexShrink: 0, ...l.style },
749
+ onPointerDown: E(l.onPointerDown, () => {
750
+ r.current === null && (r.current = window.setInterval(i, 50));
751
+ }),
752
+ onPointerMove: E(l.onPointerMove, () => {
753
+ var p;
754
+ (p = u.onItemLeave) == null || p.call(u), r.current === null && (r.current = window.setInterval(i, 50));
755
+ }),
756
+ onPointerLeave: E(l.onPointerLeave, () => {
757
+ o();
758
+ })
759
+ }
760
+ );
761
+ }), Vt = "SelectSeparator", et = t.forwardRef(
762
+ (n, c) => {
763
+ const { __scopeSelect: e, ...i } = n;
764
+ return /* @__PURE__ */ m(M.div, { "aria-hidden": !0, ...i, ref: c });
765
+ }
766
+ );
767
+ et.displayName = Vt;
768
+ var xe = "SelectArrow", Ht = t.forwardRef(
769
+ (n, c) => {
770
+ const { __scopeSelect: e, ...i } = n, l = ue(e), u = j(xe, e), r = q(xe, e);
771
+ return u.open && r.position === "popper" ? /* @__PURE__ */ m(mt, { ...l, ...i, ref: c }) : null;
772
+ }
773
+ );
774
+ Ht.displayName = xe;
775
+ var Ut = "SelectBubbleInput", tt = t.forwardRef(
776
+ ({ __scopeSelect: n, value: c, ...e }, i) => {
777
+ const l = t.useRef(null), u = B(i, l), r = St(c);
778
+ return t.useEffect(() => {
779
+ const s = l.current;
780
+ if (!s) return;
781
+ const o = window.HTMLSelectElement.prototype, g = Object.getOwnPropertyDescriptor(
782
+ o,
783
+ "value"
784
+ ).set;
785
+ if (r !== c && g) {
786
+ const C = new Event("change", { bubbles: !0 });
787
+ g.call(s, c), s.dispatchEvent(C);
788
+ }
789
+ }, [r, c]), /* @__PURE__ */ m(
790
+ M.select,
791
+ {
792
+ ...e,
793
+ style: { ...wt, ...e.style },
794
+ ref: u,
795
+ defaultValue: c
796
+ }
797
+ );
798
+ }
799
+ );
800
+ tt.displayName = Ut;
801
+ function ot(n) {
802
+ return n === "" || n === void 0;
803
+ }
804
+ function nt(n) {
805
+ const c = gt(n), e = t.useRef(""), i = t.useRef(0), l = t.useCallback(
806
+ (r) => {
807
+ const s = e.current + r;
808
+ c(s), function o(p) {
809
+ e.current = p, window.clearTimeout(i.current), p !== "" && (i.current = window.setTimeout(() => o(""), 1e3));
810
+ }(s);
811
+ },
812
+ [c]
813
+ ), u = t.useCallback(() => {
814
+ e.current = "", window.clearTimeout(i.current);
815
+ }, []);
816
+ return t.useEffect(() => () => window.clearTimeout(i.current), []), [e, l, u];
817
+ }
818
+ function rt(n, c, e) {
819
+ const l = c.length > 1 && Array.from(c).every((p) => p === c[0]) ? c[0] : c, u = e ? n.indexOf(e) : -1;
820
+ let r = Wt(n, Math.max(u, 0));
821
+ l.length === 1 && (r = r.filter((p) => p !== e));
822
+ const o = r.find(
823
+ (p) => p.textValue.toLowerCase().startsWith(l.toLowerCase())
824
+ );
825
+ return o !== e ? o : void 0;
826
+ }
827
+ function Wt(n, c) {
828
+ return n.map((e, i) => n[(c + i) % n.length]);
829
+ }
830
+ var po = Ne, fo = Ae, mo = De, ho = Le, vo = ke, go = Be, So = We, wo = Ke, Co = ze, yo = je, xo = qe, Io = Ze, To = $e, Po = Je, Ro = et;
9
831
  export {
10
- o as __iconNode,
11
- c as default
832
+ go as Content,
833
+ wo as Group,
834
+ ho as Icon,
835
+ yo as Item,
836
+ Io as ItemIndicator,
837
+ xo as ItemText,
838
+ Co as Label,
839
+ vo as Portal,
840
+ po as Root,
841
+ Po as ScrollDownButton,
842
+ To as ScrollUpButton,
843
+ Ne as Select,
844
+ Ht as SelectArrow,
845
+ Be as SelectContent,
846
+ Ke as SelectGroup,
847
+ Le as SelectIcon,
848
+ je as SelectItem,
849
+ Ze as SelectItemIndicator,
850
+ qe as SelectItemText,
851
+ ze as SelectLabel,
852
+ ke as SelectPortal,
853
+ Je as SelectScrollDownButton,
854
+ $e as SelectScrollUpButton,
855
+ et as SelectSeparator,
856
+ Ae as SelectTrigger,
857
+ De as SelectValue,
858
+ We as SelectViewport,
859
+ Ro as Separator,
860
+ fo as Trigger,
861
+ mo as Value,
862
+ So as Viewport,
863
+ uo as createSelectScope
12
864
  };