@adamosuiteservices/ui 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/README.md +1 -0
  2. package/dist/accordion-rounded.cjs +6 -0
  3. package/dist/accordion-rounded.js +85 -0
  4. package/dist/accordion.cjs +1 -0
  5. package/dist/accordion.js +65 -0
  6. package/dist/alert.cjs +1 -0
  7. package/dist/alert.js +69 -0
  8. package/dist/avatar.cjs +17 -0
  9. package/dist/avatar.js +248 -0
  10. package/dist/badge.cjs +1 -0
  11. package/dist/badge.js +54 -0
  12. package/dist/button-BFK0LYE1.js +58 -0
  13. package/dist/button-BnuVhhWO.cjs +1 -0
  14. package/dist/button-group.cjs +1 -0
  15. package/dist/button-group.js +76 -0
  16. package/dist/button.cjs +1 -0
  17. package/dist/button.js +5 -0
  18. package/dist/calendar.cjs +1 -0
  19. package/dist/calendar.js +2852 -0
  20. package/dist/card.cjs +1 -0
  21. package/dist/card.js +112 -0
  22. package/dist/check-CLxNVljQ.cjs +6 -0
  23. package/dist/check-Ci0GjV-B.js +11 -0
  24. package/dist/checkbox-BlfeC4MI.js +271 -0
  25. package/dist/checkbox-uByYIkZe.cjs +1 -0
  26. package/dist/checkbox.cjs +1 -0
  27. package/dist/checkbox.js +4 -0
  28. package/dist/chevron-down-BqEHzml5.cjs +6 -0
  29. package/dist/chevron-down-CpVS2Z7w.js +11 -0
  30. package/dist/chevron-left-B8QsBNvc.cjs +6 -0
  31. package/dist/chevron-left-Eal-WYLp.js +11 -0
  32. package/dist/chevron-right-BpzggHsr.cjs +6 -0
  33. package/dist/chevron-right-Cnc2tB4-.js +11 -0
  34. package/dist/circle-CX7JIirj.cjs +6 -0
  35. package/dist/circle-DYv-7Qb9.js +11 -0
  36. package/dist/collapsible.cjs +1 -0
  37. package/dist/collapsible.js +34 -0
  38. package/dist/colors.css +1 -0
  39. package/dist/combobox.cjs +6 -0
  40. package/dist/combobox.js +515 -0
  41. package/dist/components/layout/sidebar/index.d.ts +1 -0
  42. package/dist/components/layout/sidebar/sidebar.d.ts +17 -0
  43. package/dist/components/layout/sidebar/sidebar.stories.d.ts +6 -0
  44. package/dist/components/layout/toaster/index.d.ts +2 -0
  45. package/dist/components/layout/toaster/toaster.d.ts +26 -0
  46. package/dist/components/layout/toaster/toaster.stories.d.ts +15 -0
  47. package/dist/components/layout/toaster/use-toast.d.ts +1 -0
  48. package/dist/components/ui/accordion/accordion.d.ts +7 -0
  49. package/dist/components/ui/accordion/accordion.stories.d.ts +17 -0
  50. package/dist/components/ui/accordion/index.d.ts +1 -0
  51. package/dist/components/ui/accordion-rounded/accordion-rounded.d.ts +11 -0
  52. package/dist/components/ui/accordion-rounded/accordion-rounded.stories.d.ts +21 -0
  53. package/dist/components/ui/accordion-rounded/index.d.ts +1 -0
  54. package/dist/components/ui/alert/alert.d.ts +9 -0
  55. package/dist/components/ui/alert/alert.stories.d.ts +24 -0
  56. package/dist/components/ui/alert/index.d.ts +1 -0
  57. package/dist/components/ui/avatar/avatar.d.ts +6 -0
  58. package/dist/components/ui/avatar/avatar.stories.d.ts +14 -0
  59. package/dist/components/ui/avatar/index.d.ts +1 -0
  60. package/dist/components/ui/badge/badge.d.ts +10 -0
  61. package/dist/components/ui/badge/badge.stories.d.ts +41 -0
  62. package/dist/components/ui/badge/index.d.ts +1 -0
  63. package/dist/components/ui/button/button.d.ts +10 -0
  64. package/dist/components/ui/button/button.stories.d.ts +38 -0
  65. package/dist/components/ui/button/index.d.ts +1 -0
  66. package/dist/components/ui/button-group/button-group.d.ts +11 -0
  67. package/dist/components/ui/button-group/button-group.stories.d.ts +19 -0
  68. package/dist/components/ui/button-group/index.d.ts +1 -0
  69. package/dist/components/ui/calendar/calendar.d.ts +8 -0
  70. package/dist/components/ui/calendar/calendar.stories.d.ts +27 -0
  71. package/dist/components/ui/calendar/index.d.ts +1 -0
  72. package/dist/components/ui/card/card.d.ts +13 -0
  73. package/dist/components/ui/card/card.stories.d.ts +18 -0
  74. package/dist/components/ui/card/index.d.ts +1 -0
  75. package/dist/components/ui/checkbox/checkbox.d.ts +4 -0
  76. package/dist/components/ui/checkbox/checkbox.stories.d.ts +15 -0
  77. package/dist/components/ui/checkbox/index.d.ts +1 -0
  78. package/dist/components/ui/collapsible/collapsible.d.ts +5 -0
  79. package/dist/components/ui/collapsible/collapsible.stories.d.ts +12 -0
  80. package/dist/components/ui/collapsible/index.d.ts +1 -0
  81. package/dist/components/ui/combobox/combobox.d.ts +35 -0
  82. package/dist/components/ui/combobox/combobox.stories.d.ts +27 -0
  83. package/dist/components/ui/combobox/index.d.ts +1 -0
  84. package/dist/components/ui/command/command.d.ts +18 -0
  85. package/dist/components/ui/command/index.d.ts +1 -0
  86. package/dist/components/ui/context-menu/context-menu.d.ts +25 -0
  87. package/dist/components/ui/context-menu/context-menu.stories.d.ts +10 -0
  88. package/dist/components/ui/context-menu/index.d.ts +1 -0
  89. package/dist/components/ui/dialog/dialog.d.ts +17 -0
  90. package/dist/components/ui/dialog/dialog.stories.d.ts +13 -0
  91. package/dist/components/ui/dialog/index.d.ts +1 -0
  92. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +25 -0
  93. package/dist/components/ui/dropdown-menu/dropdown-menu.stories.d.ts +14 -0
  94. package/dist/components/ui/dropdown-menu/index.d.ts +1 -0
  95. package/dist/components/ui/field/field.d.ts +24 -0
  96. package/dist/components/ui/field/field.stories.d.ts +18 -0
  97. package/dist/components/ui/field/index.d.ts +1 -0
  98. package/dist/components/ui/hover-card/hover-card.d.ts +6 -0
  99. package/dist/components/ui/hover-card/hover-card.stories.d.ts +25 -0
  100. package/dist/components/ui/hover-card/index.d.ts +1 -0
  101. package/dist/components/ui/input/index.d.ts +1 -0
  102. package/dist/components/ui/input/input.d.ts +3 -0
  103. package/dist/components/ui/input/input.stories.d.ts +23 -0
  104. package/dist/components/ui/input-group/Input-group.stories.d.ts +28 -0
  105. package/dist/components/ui/input-group/index.d.ts +1 -0
  106. package/dist/components/ui/input-group/input-group.d.ts +16 -0
  107. package/dist/components/ui/kbd/index.d.ts +1 -0
  108. package/dist/components/ui/kbd/kbd.d.ts +3 -0
  109. package/dist/components/ui/kbd/kbd.stories.d.ts +26 -0
  110. package/dist/components/ui/label/index.d.ts +1 -0
  111. package/dist/components/ui/label/label.d.ts +4 -0
  112. package/dist/components/ui/label/label.stories.d.ts +24 -0
  113. package/dist/components/ui/pagination/index.d.ts +1 -0
  114. package/dist/components/ui/pagination/pagination.d.ts +13 -0
  115. package/dist/components/ui/pagination/pagination.stories.d.ts +28 -0
  116. package/dist/components/ui/popover/index.d.ts +1 -0
  117. package/dist/components/ui/popover/popover.d.ts +7 -0
  118. package/dist/components/ui/popover/popover.stories.d.ts +26 -0
  119. package/dist/components/ui/progress/index.d.ts +1 -0
  120. package/dist/components/ui/progress/progress.d.ts +9 -0
  121. package/dist/components/ui/progress/progress.stories.d.ts +29 -0
  122. package/dist/components/ui/radio-group/index.d.ts +1 -0
  123. package/dist/components/ui/radio-group/radio-group.d.ts +5 -0
  124. package/dist/components/ui/radio-group/radio-group.stories.d.ts +18 -0
  125. package/dist/components/ui/select/index.d.ts +1 -0
  126. package/dist/components/ui/select/select.d.ts +15 -0
  127. package/dist/components/ui/select/select.stories.d.ts +19 -0
  128. package/dist/components/ui/separator/index.d.ts +1 -0
  129. package/dist/components/ui/separator/separator.d.ts +4 -0
  130. package/dist/components/ui/separator/separator.stories.d.ts +18 -0
  131. package/dist/components/ui/sheet/index.d.ts +1 -0
  132. package/dist/components/ui/sheet/sheet.d.ts +14 -0
  133. package/dist/components/ui/sheet/sheet.stories.d.ts +17 -0
  134. package/dist/components/ui/skeleton/index.d.ts +1 -0
  135. package/dist/components/ui/skeleton/skeleton.d.ts +2 -0
  136. package/dist/components/ui/skeleton/skeleton.stories.d.ts +22 -0
  137. package/dist/components/ui/slider/index.d.ts +1 -0
  138. package/dist/components/ui/slider/slider.d.ts +7 -0
  139. package/dist/components/ui/slider/slider.stories.d.ts +21 -0
  140. package/dist/components/ui/spinner/index.d.ts +1 -0
  141. package/dist/components/ui/spinner/spinner.d.ts +2 -0
  142. package/dist/components/ui/spinner/spinner.stories.d.ts +20 -0
  143. package/dist/components/ui/switch/index.d.ts +1 -0
  144. package/dist/components/ui/switch/switch.d.ts +4 -0
  145. package/dist/components/ui/switch/switch.stories.d.ts +17 -0
  146. package/dist/components/ui/table/index.d.ts +1 -0
  147. package/dist/components/ui/table/table.d.ts +10 -0
  148. package/dist/components/ui/table/table.stories.d.ts +11 -0
  149. package/dist/components/ui/tabs/index.d.ts +1 -0
  150. package/dist/components/ui/tabs/tabs.d.ts +7 -0
  151. package/dist/components/ui/tabs/tabs.stories.d.ts +16 -0
  152. package/dist/components/ui/tabs-underline/index.d.ts +1 -0
  153. package/dist/components/ui/tabs-underline/tabs-underline.d.ts +7 -0
  154. package/dist/components/ui/tabs-underline/tabs-underline.stories.d.ts +16 -0
  155. package/dist/components/ui/textarea/index.d.ts +1 -0
  156. package/dist/components/ui/textarea/textarea.d.ts +3 -0
  157. package/dist/components/ui/textarea/textarea.stories.d.ts +21 -0
  158. package/dist/components/ui/toggle/index.d.ts +1 -0
  159. package/dist/components/ui/toggle/toggle.d.ts +9 -0
  160. package/dist/components/ui/toggle/toggle.stories.d.ts +21 -0
  161. package/dist/components/ui/tooltip/index.d.ts +1 -0
  162. package/dist/components/ui/tooltip/tooltip.d.ts +7 -0
  163. package/dist/components/ui/tooltip/tooltip.stories.d.ts +19 -0
  164. package/dist/components/ui/typography/index.d.ts +1 -0
  165. package/dist/components/ui/typography/typography.d.ts +8 -0
  166. package/dist/components/ui/typography/typography.stories.d.ts +33 -0
  167. package/dist/context-menu.cjs +1 -0
  168. package/dist/context-menu.js +427 -0
  169. package/dist/createLucideIcon-B_8CJpcQ.js +94 -0
  170. package/dist/createLucideIcon-CAtnV-yz.cjs +21 -0
  171. package/dist/custom-layered-styles.css +1 -0
  172. package/dist/dialog.cjs +1 -0
  173. package/dist/dialog.js +139 -0
  174. package/dist/dropdown-menu.cjs +1 -0
  175. package/dist/dropdown-menu.js +423 -0
  176. package/dist/field.cjs +1 -0
  177. package/dist/field.js +221 -0
  178. package/dist/fonts.css +1 -0
  179. package/dist/hooks/index.d.ts +1 -0
  180. package/dist/hooks/use-portal-container.d.ts +31 -0
  181. package/dist/hover-card.cjs +1 -0
  182. package/dist/hover-card.js +210 -0
  183. package/dist/index-0ioNhtNM.js +10 -0
  184. package/dist/index-6oTEokEx.js +82 -0
  185. package/dist/index-B-NyefE0.js +243 -0
  186. package/dist/index-B-ZRqW0J.js +118 -0
  187. package/dist/index-B-cHTKrs.js +158 -0
  188. package/dist/index-BGQepRFJ.js +27 -0
  189. package/dist/index-BGiGvaq8.cjs +1 -0
  190. package/dist/index-BKbK2GzY.cjs +1 -0
  191. package/dist/index-BMitW9UR.cjs +1 -0
  192. package/dist/index-BRLtxFFr.cjs +1 -0
  193. package/dist/index-BWaO7kQK.cjs +1 -0
  194. package/dist/index-BZPx6jYI.js +8 -0
  195. package/dist/index-BpvjJ_T6.cjs +5 -0
  196. package/dist/index-C0UREtMP.js +59 -0
  197. package/dist/index-C329e3yQ.js +134 -0
  198. package/dist/index-C5wjudc-.js +36 -0
  199. package/dist/index-C8ni3LLa.cjs +1 -0
  200. package/dist/index-CAOY367Y.js +1540 -0
  201. package/dist/index-CCKe-Mpx.js +6 -0
  202. package/dist/index-CQhYMnjT.js +34 -0
  203. package/dist/index-Ce3QBKyj.cjs +1 -0
  204. package/dist/index-CezwiPd_.js +615 -0
  205. package/dist/index-Cv867SGx.js +13 -0
  206. package/dist/index-CwUFT-GQ.js +228 -0
  207. package/dist/index-CzY-WZXL.cjs +1 -0
  208. package/dist/index-D02K8KOB.js +54 -0
  209. package/dist/index-D3S7dBDI.cjs +1 -0
  210. package/dist/index-D3wSWKST.cjs +1 -0
  211. package/dist/index-D7hQvndv.cjs +1 -0
  212. package/dist/index-DQvx1rG_.cjs +1 -0
  213. package/dist/index-DXQ-7kNJ.cjs +41 -0
  214. package/dist/index-DYxWvftI.cjs +1 -0
  215. package/dist/index-DnS_sBBe.cjs +1 -0
  216. package/dist/index-DulPG3F9.js +179 -0
  217. package/dist/index-EUea2gfp.js +70 -0
  218. package/dist/index-FxyLF8MY.js +68 -0
  219. package/dist/index-IKJMQref.cjs +1 -0
  220. package/dist/index-MQ0c3ZX_.cjs +1 -0
  221. package/dist/index-P1sVIHE3.js +32 -0
  222. package/dist/index-VIUqZjyP.cjs +1 -0
  223. package/dist/index-WIv2ndLu.cjs +1 -0
  224. package/dist/index-bSPhqlcX.cjs +1 -0
  225. package/dist/index-cwZN7ZY3.cjs +1 -0
  226. package/dist/index-gO_QEiaK.cjs +1 -0
  227. package/dist/index-iAvn1gzj.cjs +1 -0
  228. package/dist/index-o0sNTcKe.js +674 -0
  229. package/dist/index-rKs9bXHr.js +6 -0
  230. package/dist/index-yR-v1A4G.js +15 -0
  231. package/dist/input-3MDa_DYk.cjs +1 -0
  232. package/dist/input-Cl7xmQYQ.js +22 -0
  233. package/dist/input-group.cjs +1 -0
  234. package/dist/input-group.js +152 -0
  235. package/dist/input.cjs +1 -0
  236. package/dist/input.js +4 -0
  237. package/dist/jsx-runtime-BB_1_6y_.cjs +22 -0
  238. package/dist/jsx-runtime-BzflLqGi.js +282 -0
  239. package/dist/kbd.cjs +1 -0
  240. package/dist/kbd.js +31 -0
  241. package/dist/label-MxqN87DQ.cjs +1 -0
  242. package/dist/label-hg_jN6Y8.js +35 -0
  243. package/dist/label.cjs +1 -0
  244. package/dist/label.js +4 -0
  245. package/dist/lib/utils.d.ts +2 -0
  246. package/dist/minus-C0pHPx21.cjs +6 -0
  247. package/dist/minus-DE-onYs2.js +11 -0
  248. package/dist/pagination.cjs +6 -0
  249. package/dist/pagination.js +134 -0
  250. package/dist/popover-BBXe2myL.cjs +1 -0
  251. package/dist/popover-DNiRNCdn.js +263 -0
  252. package/dist/popover.cjs +1 -0
  253. package/dist/popover.js +7 -0
  254. package/dist/progress.cjs +6 -0
  255. package/dist/progress.js +137 -0
  256. package/dist/radio-group.cjs +1 -0
  257. package/dist/radio-group.js +271 -0
  258. package/dist/radius.css +1 -0
  259. package/dist/select.cjs +6 -0
  260. package/dist/select.js +987 -0
  261. package/dist/separator-C9kqOQR-.js +44 -0
  262. package/dist/separator-Dbx-SVIs.cjs +1 -0
  263. package/dist/separator.cjs +1 -0
  264. package/dist/separator.js +4 -0
  265. package/dist/sheet-0jRbqkzj.cjs +1 -0
  266. package/dist/sheet-RAbg4M5A.js +128 -0
  267. package/dist/sheet.cjs +1 -0
  268. package/dist/sheet.js +11 -0
  269. package/dist/sidebar.cjs +6 -0
  270. package/dist/sidebar.js +139 -0
  271. package/dist/skeleton.cjs +1 -0
  272. package/dist/skeleton.js +15 -0
  273. package/dist/slider.cjs +1 -0
  274. package/dist/slider.js +486 -0
  275. package/dist/space.css +1 -0
  276. package/dist/spinner.cjs +6 -0
  277. package/dist/spinner.js +24 -0
  278. package/dist/styles.css +1 -0
  279. package/dist/switch.cjs +1 -0
  280. package/dist/switch.js +154 -0
  281. package/dist/table.cjs +1 -0
  282. package/dist/table.js +115 -0
  283. package/dist/tabs-underline.cjs +1 -0
  284. package/dist/tabs-underline.js +68 -0
  285. package/dist/tabs.cjs +1 -0
  286. package/dist/tabs.js +68 -0
  287. package/dist/tailwind-animations.css +1 -0
  288. package/dist/tailwind-colors.css +1 -0
  289. package/dist/tailwind-fonts.css +1 -0
  290. package/dist/tailwind-radius.css +1 -0
  291. package/dist/tailwind-spacing.css +1 -0
  292. package/dist/tailwind-theme.css +1 -0
  293. package/dist/textarea-D76719tg.js +19 -0
  294. package/dist/textarea-UdELO_Jn.cjs +1 -0
  295. package/dist/textarea.cjs +1 -0
  296. package/dist/textarea.js +4 -0
  297. package/dist/themes.css +1 -0
  298. package/dist/toaster.cjs +1 -0
  299. package/dist/toaster.js +87 -0
  300. package/dist/toggle.cjs +1 -0
  301. package/dist/toggle.js +69 -0
  302. package/dist/tooltip.cjs +1 -0
  303. package/dist/tooltip.js +375 -0
  304. package/dist/types/theme.type.d.ts +2 -0
  305. package/dist/typography.cjs +1 -0
  306. package/dist/typography.js +34 -0
  307. package/dist/use-portal-container.cjs +1 -0
  308. package/dist/use-portal-container.js +21 -0
  309. package/dist/utils-CRiPKpXj.js +2743 -0
  310. package/dist/utils-DoxiiusW.cjs +1 -0
  311. package/dist/x-CBKgg4YL.cjs +6 -0
  312. package/dist/x-Dl66o_vF.js +14 -0
  313. package/package.json +275 -0
@@ -0,0 +1,674 @@
1
+ import * as u from "react";
2
+ import { useState as he } from "react";
3
+ import { u as me } from "./index-6oTEokEx.js";
4
+ import { P as pe } from "./index-C5wjudc-.js";
5
+ import { u as z } from "./index-0ioNhtNM.js";
6
+ import { j as ge } from "./jsx-runtime-BzflLqGi.js";
7
+ var U = "focusScope.autoFocusOnMount", j = "focusScope.autoFocusOnUnmount", Z = { bubbles: !1, cancelable: !0 }, ye = "FocusScope", be = u.forwardRef((e, t) => {
8
+ const {
9
+ loop: n = !1,
10
+ trapped: r = !1,
11
+ onMountAutoFocus: c,
12
+ onUnmountAutoFocus: i,
13
+ ...s
14
+ } = e, [a, S] = u.useState(null), b = z(c), g = z(i), f = u.useRef(null), v = me(t, (o) => S(o)), h = u.useRef({
15
+ paused: !1,
16
+ pause() {
17
+ this.paused = !0;
18
+ },
19
+ resume() {
20
+ this.paused = !1;
21
+ }
22
+ }).current;
23
+ u.useEffect(() => {
24
+ if (r) {
25
+ let o = function(p) {
26
+ if (h.paused || !a) return;
27
+ const y = p.target;
28
+ a.contains(y) ? f.current = y : k(f.current, { select: !0 });
29
+ }, l = function(p) {
30
+ if (h.paused || !a) return;
31
+ const y = p.relatedTarget;
32
+ y !== null && (a.contains(y) || k(f.current, { select: !0 }));
33
+ }, d = function(p) {
34
+ if (document.activeElement === document.body)
35
+ for (const E of p)
36
+ E.removedNodes.length > 0 && k(a);
37
+ };
38
+ document.addEventListener("focusin", o), document.addEventListener("focusout", l);
39
+ const m = new MutationObserver(d);
40
+ return a && m.observe(a, { childList: !0, subtree: !0 }), () => {
41
+ document.removeEventListener("focusin", o), document.removeEventListener("focusout", l), m.disconnect();
42
+ };
43
+ }
44
+ }, [r, a, h.paused]), u.useEffect(() => {
45
+ if (a) {
46
+ Q.add(h);
47
+ const o = document.activeElement;
48
+ if (!a.contains(o)) {
49
+ const d = new CustomEvent(U, Z);
50
+ a.addEventListener(U, b), a.dispatchEvent(d), d.defaultPrevented || (Ee(ke(oe(a)), { select: !0 }), document.activeElement === o && k(a));
51
+ }
52
+ return () => {
53
+ a.removeEventListener(U, b), setTimeout(() => {
54
+ const d = new CustomEvent(j, Z);
55
+ a.addEventListener(j, g), a.dispatchEvent(d), d.defaultPrevented || k(o ?? document.body, { select: !0 }), a.removeEventListener(j, g), Q.remove(h);
56
+ }, 0);
57
+ };
58
+ }
59
+ }, [a, b, g, h]);
60
+ const w = u.useCallback(
61
+ (o) => {
62
+ if (!n && !r || h.paused) return;
63
+ const l = o.key === "Tab" && !o.altKey && !o.ctrlKey && !o.metaKey, d = document.activeElement;
64
+ if (l && d) {
65
+ const m = o.currentTarget, [p, y] = Se(m);
66
+ p && y ? !o.shiftKey && d === y ? (o.preventDefault(), n && k(p, { select: !0 })) : o.shiftKey && d === p && (o.preventDefault(), n && k(y, { select: !0 })) : d === m && o.preventDefault();
67
+ }
68
+ },
69
+ [n, r, h.paused]
70
+ );
71
+ return /* @__PURE__ */ ge.jsx(pe.div, { tabIndex: -1, ...s, ref: v, onKeyDown: w });
72
+ });
73
+ be.displayName = ye;
74
+ function Ee(e, { select: t = !1 } = {}) {
75
+ const n = document.activeElement;
76
+ for (const r of e)
77
+ if (k(r, { select: t }), document.activeElement !== n) return;
78
+ }
79
+ function Se(e) {
80
+ const t = oe(e), n = q(t, e), r = q(t.reverse(), e);
81
+ return [n, r];
82
+ }
83
+ function oe(e) {
84
+ const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
85
+ acceptNode: (r) => {
86
+ const c = r.tagName === "INPUT" && r.type === "hidden";
87
+ return r.disabled || r.hidden || c ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
88
+ }
89
+ });
90
+ for (; n.nextNode(); ) t.push(n.currentNode);
91
+ return t;
92
+ }
93
+ function q(e, t) {
94
+ for (const n of e)
95
+ if (!we(n, { upTo: t })) return n;
96
+ }
97
+ function we(e, { upTo: t }) {
98
+ if (getComputedStyle(e).visibility === "hidden") return !0;
99
+ for (; e; ) {
100
+ if (t !== void 0 && e === t) return !1;
101
+ if (getComputedStyle(e).display === "none") return !0;
102
+ e = e.parentElement;
103
+ }
104
+ return !1;
105
+ }
106
+ function Ce(e) {
107
+ return e instanceof HTMLInputElement && "select" in e;
108
+ }
109
+ function k(e, { select: t = !1 } = {}) {
110
+ if (e && e.focus) {
111
+ const n = document.activeElement;
112
+ e.focus({ preventScroll: !0 }), e !== n && Ce(e) && t && e.select();
113
+ }
114
+ }
115
+ var Q = Re();
116
+ function Re() {
117
+ let e = [];
118
+ return {
119
+ add(t) {
120
+ const n = e[0];
121
+ t !== n && n?.pause(), e = $(e, t), e.unshift(t);
122
+ },
123
+ remove(t) {
124
+ e = $(e, t), e[0]?.resume();
125
+ }
126
+ };
127
+ }
128
+ function $(e, t) {
129
+ const n = [...e], r = n.indexOf(t);
130
+ return r !== -1 && n.splice(r, 1), n;
131
+ }
132
+ function ke(e) {
133
+ return e.filter((t) => t.tagName !== "A");
134
+ }
135
+ var _ = 0;
136
+ function gt() {
137
+ u.useEffect(() => {
138
+ const e = document.querySelectorAll("[data-radix-focus-guard]");
139
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? J()), document.body.insertAdjacentElement("beforeend", e[1] ?? J()), _++, () => {
140
+ _ === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), _--;
141
+ };
142
+ }, []);
143
+ }
144
+ function J() {
145
+ const e = document.createElement("span");
146
+ return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
147
+ }
148
+ var C = function() {
149
+ return C = Object.assign || function(t) {
150
+ for (var n, r = 1, c = arguments.length; r < c; r++) {
151
+ n = arguments[r];
152
+ for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
153
+ }
154
+ return t;
155
+ }, C.apply(this, arguments);
156
+ };
157
+ function ce(e, t) {
158
+ var n = {};
159
+ for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
160
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
161
+ for (var c = 0, r = Object.getOwnPropertySymbols(e); c < r.length; c++)
162
+ t.indexOf(r[c]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[c]) && (n[r[c]] = e[r[c]]);
163
+ return n;
164
+ }
165
+ function Ae(e, t, n) {
166
+ if (n || arguments.length === 2) for (var r = 0, c = t.length, i; r < c; r++)
167
+ (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
168
+ return e.concat(i || Array.prototype.slice.call(t));
169
+ }
170
+ var W = "right-scroll-bar-position", B = "width-before-scroll-bar", Te = "with-scroll-bars-hidden", Ne = "--removed-body-scroll-bar-size";
171
+ function K(e, t) {
172
+ return typeof e == "function" ? e(t) : e && (e.current = t), e;
173
+ }
174
+ function Me(e, t) {
175
+ var n = he(function() {
176
+ return {
177
+ // value
178
+ value: e,
179
+ // last callback
180
+ callback: t,
181
+ // "memoized" public interface
182
+ facade: {
183
+ get current() {
184
+ return n.value;
185
+ },
186
+ set current(r) {
187
+ var c = n.value;
188
+ c !== r && (n.value = r, n.callback(r, c));
189
+ }
190
+ }
191
+ };
192
+ })[0];
193
+ return n.callback = t, n.facade;
194
+ }
195
+ var Fe = typeof window < "u" ? u.useLayoutEffect : u.useEffect, ee = /* @__PURE__ */ new WeakMap();
196
+ function Pe(e, t) {
197
+ var n = Me(null, function(r) {
198
+ return e.forEach(function(c) {
199
+ return K(c, r);
200
+ });
201
+ });
202
+ return Fe(function() {
203
+ var r = ee.get(n);
204
+ if (r) {
205
+ var c = new Set(r), i = new Set(e), s = n.current;
206
+ c.forEach(function(a) {
207
+ i.has(a) || K(a, null);
208
+ }), i.forEach(function(a) {
209
+ c.has(a) || K(a, s);
210
+ });
211
+ }
212
+ ee.set(n, e);
213
+ }, [e]), n;
214
+ }
215
+ function Oe(e) {
216
+ return e;
217
+ }
218
+ function Le(e, t) {
219
+ t === void 0 && (t = Oe);
220
+ var n = [], r = !1, c = {
221
+ read: function() {
222
+ if (r)
223
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
224
+ return n.length ? n[n.length - 1] : e;
225
+ },
226
+ useMedium: function(i) {
227
+ var s = t(i, r);
228
+ return n.push(s), function() {
229
+ n = n.filter(function(a) {
230
+ return a !== s;
231
+ });
232
+ };
233
+ },
234
+ assignSyncMedium: function(i) {
235
+ for (r = !0; n.length; ) {
236
+ var s = n;
237
+ n = [], s.forEach(i);
238
+ }
239
+ n = {
240
+ push: function(a) {
241
+ return i(a);
242
+ },
243
+ filter: function() {
244
+ return n;
245
+ }
246
+ };
247
+ },
248
+ assignMedium: function(i) {
249
+ r = !0;
250
+ var s = [];
251
+ if (n.length) {
252
+ var a = n;
253
+ n = [], a.forEach(i), s = n;
254
+ }
255
+ var S = function() {
256
+ var g = s;
257
+ s = [], g.forEach(i);
258
+ }, b = function() {
259
+ return Promise.resolve().then(S);
260
+ };
261
+ b(), n = {
262
+ push: function(g) {
263
+ s.push(g), b();
264
+ },
265
+ filter: function(g) {
266
+ return s = s.filter(g), n;
267
+ }
268
+ };
269
+ }
270
+ };
271
+ return c;
272
+ }
273
+ function xe(e) {
274
+ e === void 0 && (e = {});
275
+ var t = Le(null);
276
+ return t.options = C({ async: !0, ssr: !1 }, e), t;
277
+ }
278
+ var ue = function(e) {
279
+ var t = e.sideCar, n = ce(e, ["sideCar"]);
280
+ if (!t)
281
+ throw new Error("Sidecar: please provide `sideCar` property to import the right car");
282
+ var r = t.read();
283
+ if (!r)
284
+ throw new Error("Sidecar medium not found");
285
+ return u.createElement(r, C({}, n));
286
+ };
287
+ ue.isSideCarExport = !0;
288
+ function Ie(e, t) {
289
+ return e.useMedium(t), ue;
290
+ }
291
+ var ie = xe(), H = function() {
292
+ }, D = u.forwardRef(function(e, t) {
293
+ var n = u.useRef(null), r = u.useState({
294
+ onScrollCapture: H,
295
+ onWheelCapture: H,
296
+ onTouchMoveCapture: H
297
+ }), c = r[0], i = r[1], s = e.forwardProps, a = e.children, S = e.className, b = e.removeScrollBar, g = e.enabled, f = e.shards, v = e.sideCar, h = e.noRelative, w = e.noIsolation, o = e.inert, l = e.allowPinchZoom, d = e.as, m = d === void 0 ? "div" : d, p = e.gapMode, y = ce(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = v, A = Pe([n, t]), R = C(C({}, y), c);
298
+ return u.createElement(
299
+ u.Fragment,
300
+ null,
301
+ g && u.createElement(E, { sideCar: ie, removeScrollBar: b, shards: f, noRelative: h, noIsolation: w, inert: o, setCallbacks: i, allowPinchZoom: !!l, lockRef: n, gapMode: p }),
302
+ s ? u.cloneElement(u.Children.only(a), C(C({}, R), { ref: A })) : u.createElement(m, C({}, R, { className: S, ref: A }), a)
303
+ );
304
+ });
305
+ D.defaultProps = {
306
+ enabled: !0,
307
+ removeScrollBar: !0,
308
+ inert: !1
309
+ };
310
+ D.classNames = {
311
+ fullWidth: B,
312
+ zeroRight: W
313
+ };
314
+ var We = function() {
315
+ if (typeof __webpack_nonce__ < "u")
316
+ return __webpack_nonce__;
317
+ };
318
+ function Be() {
319
+ if (!document)
320
+ return null;
321
+ var e = document.createElement("style");
322
+ e.type = "text/css";
323
+ var t = We();
324
+ return t && e.setAttribute("nonce", t), e;
325
+ }
326
+ function De(e, t) {
327
+ e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
328
+ }
329
+ function Ue(e) {
330
+ var t = document.head || document.getElementsByTagName("head")[0];
331
+ t.appendChild(e);
332
+ }
333
+ var je = function() {
334
+ var e = 0, t = null;
335
+ return {
336
+ add: function(n) {
337
+ e == 0 && (t = Be()) && (De(t, n), Ue(t)), e++;
338
+ },
339
+ remove: function() {
340
+ e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
341
+ }
342
+ };
343
+ }, _e = function() {
344
+ var e = je();
345
+ return function(t, n) {
346
+ u.useEffect(function() {
347
+ return e.add(t), function() {
348
+ e.remove();
349
+ };
350
+ }, [t && n]);
351
+ };
352
+ }, le = function() {
353
+ var e = _e(), t = function(n) {
354
+ var r = n.styles, c = n.dynamic;
355
+ return e(r, c), null;
356
+ };
357
+ return t;
358
+ }, Ke = {
359
+ left: 0,
360
+ top: 0,
361
+ right: 0,
362
+ gap: 0
363
+ }, V = function(e) {
364
+ return parseInt(e || "", 10) || 0;
365
+ }, He = function(e) {
366
+ var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], c = t[e === "padding" ? "paddingRight" : "marginRight"];
367
+ return [V(n), V(r), V(c)];
368
+ }, Ve = function(e) {
369
+ if (e === void 0 && (e = "margin"), typeof window > "u")
370
+ return Ke;
371
+ var t = He(e), n = document.documentElement.clientWidth, r = window.innerWidth;
372
+ return {
373
+ left: t[0],
374
+ top: t[1],
375
+ right: t[2],
376
+ gap: Math.max(0, r - n + t[2] - t[0])
377
+ };
378
+ }, Xe = le(), F = "data-scroll-locked", Ye = function(e, t, n, r) {
379
+ var c = e.left, i = e.top, s = e.right, a = e.gap;
380
+ return n === void 0 && (n = "margin"), `
381
+ .`.concat(Te, ` {
382
+ overflow: hidden `).concat(r, `;
383
+ padding-right: `).concat(a, "px ").concat(r, `;
384
+ }
385
+ body[`).concat(F, `] {
386
+ overflow: hidden `).concat(r, `;
387
+ overscroll-behavior: contain;
388
+ `).concat([
389
+ t && "position: relative ".concat(r, ";"),
390
+ n === "margin" && `
391
+ padding-left: `.concat(c, `px;
392
+ padding-top: `).concat(i, `px;
393
+ padding-right: `).concat(s, `px;
394
+ margin-left:0;
395
+ margin-top:0;
396
+ margin-right: `).concat(a, "px ").concat(r, `;
397
+ `),
398
+ n === "padding" && "padding-right: ".concat(a, "px ").concat(r, ";")
399
+ ].filter(Boolean).join(""), `
400
+ }
401
+
402
+ .`).concat(W, ` {
403
+ right: `).concat(a, "px ").concat(r, `;
404
+ }
405
+
406
+ .`).concat(B, ` {
407
+ margin-right: `).concat(a, "px ").concat(r, `;
408
+ }
409
+
410
+ .`).concat(W, " .").concat(W, ` {
411
+ right: 0 `).concat(r, `;
412
+ }
413
+
414
+ .`).concat(B, " .").concat(B, ` {
415
+ margin-right: 0 `).concat(r, `;
416
+ }
417
+
418
+ body[`).concat(F, `] {
419
+ `).concat(Ne, ": ").concat(a, `px;
420
+ }
421
+ `);
422
+ }, te = function() {
423
+ var e = parseInt(document.body.getAttribute(F) || "0", 10);
424
+ return isFinite(e) ? e : 0;
425
+ }, Ge = function() {
426
+ u.useEffect(function() {
427
+ return document.body.setAttribute(F, (te() + 1).toString()), function() {
428
+ var e = te() - 1;
429
+ e <= 0 ? document.body.removeAttribute(F) : document.body.setAttribute(F, e.toString());
430
+ };
431
+ }, []);
432
+ }, ze = function(e) {
433
+ var t = e.noRelative, n = e.noImportant, r = e.gapMode, c = r === void 0 ? "margin" : r;
434
+ Ge();
435
+ var i = u.useMemo(function() {
436
+ return Ve(c);
437
+ }, [c]);
438
+ return u.createElement(Xe, { styles: Ye(i, !t, c, n ? "" : "!important") });
439
+ }, Y = !1;
440
+ if (typeof window < "u")
441
+ try {
442
+ var O = Object.defineProperty({}, "passive", {
443
+ get: function() {
444
+ return Y = !0, !0;
445
+ }
446
+ });
447
+ window.addEventListener("test", O, O), window.removeEventListener("test", O, O);
448
+ } catch {
449
+ Y = !1;
450
+ }
451
+ var T = Y ? { passive: !1 } : !1, Ze = function(e) {
452
+ return e.tagName === "TEXTAREA";
453
+ }, se = function(e, t) {
454
+ if (!(e instanceof Element))
455
+ return !1;
456
+ var n = window.getComputedStyle(e);
457
+ return (
458
+ // not-not-scrollable
459
+ n[t] !== "hidden" && // contains scroll inside self
460
+ !(n.overflowY === n.overflowX && !Ze(e) && n[t] === "visible")
461
+ );
462
+ }, qe = function(e) {
463
+ return se(e, "overflowY");
464
+ }, Qe = function(e) {
465
+ return se(e, "overflowX");
466
+ }, ne = function(e, t) {
467
+ var n = t.ownerDocument, r = t;
468
+ do {
469
+ typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
470
+ var c = fe(e, r);
471
+ if (c) {
472
+ var i = de(e, r), s = i[1], a = i[2];
473
+ if (s > a)
474
+ return !0;
475
+ }
476
+ r = r.parentNode;
477
+ } while (r && r !== n.body);
478
+ return !1;
479
+ }, $e = function(e) {
480
+ var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
481
+ return [
482
+ t,
483
+ n,
484
+ r
485
+ ];
486
+ }, Je = function(e) {
487
+ var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
488
+ return [
489
+ t,
490
+ n,
491
+ r
492
+ ];
493
+ }, fe = function(e, t) {
494
+ return e === "v" ? qe(t) : Qe(t);
495
+ }, de = function(e, t) {
496
+ return e === "v" ? $e(t) : Je(t);
497
+ }, et = function(e, t) {
498
+ return e === "h" && t === "rtl" ? -1 : 1;
499
+ }, tt = function(e, t, n, r, c) {
500
+ var i = et(e, window.getComputedStyle(t).direction), s = i * r, a = n.target, S = t.contains(a), b = !1, g = s > 0, f = 0, v = 0;
501
+ do {
502
+ if (!a)
503
+ break;
504
+ var h = de(e, a), w = h[0], o = h[1], l = h[2], d = o - l - i * w;
505
+ (w || d) && fe(e, a) && (f += d, v += w);
506
+ var m = a.parentNode;
507
+ a = m && m.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? m.host : m;
508
+ } while (
509
+ // portaled content
510
+ !S && a !== document.body || // self content
511
+ S && (t.contains(a) || t === a)
512
+ );
513
+ return (g && Math.abs(f) < 1 || !g && Math.abs(v) < 1) && (b = !0), b;
514
+ }, L = function(e) {
515
+ return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
516
+ }, re = function(e) {
517
+ return [e.deltaX, e.deltaY];
518
+ }, ae = function(e) {
519
+ return e && "current" in e ? e.current : e;
520
+ }, nt = function(e, t) {
521
+ return e[0] === t[0] && e[1] === t[1];
522
+ }, rt = function(e) {
523
+ return `
524
+ .block-interactivity-`.concat(e, ` {pointer-events: none;}
525
+ .allow-interactivity-`).concat(e, ` {pointer-events: all;}
526
+ `);
527
+ }, at = 0, N = [];
528
+ function ot(e) {
529
+ var t = u.useRef([]), n = u.useRef([0, 0]), r = u.useRef(), c = u.useState(at++)[0], i = u.useState(le)[0], s = u.useRef(e);
530
+ u.useEffect(function() {
531
+ s.current = e;
532
+ }, [e]), u.useEffect(function() {
533
+ if (e.inert) {
534
+ document.body.classList.add("block-interactivity-".concat(c));
535
+ var o = Ae([e.lockRef.current], (e.shards || []).map(ae), !0).filter(Boolean);
536
+ return o.forEach(function(l) {
537
+ return l.classList.add("allow-interactivity-".concat(c));
538
+ }), function() {
539
+ document.body.classList.remove("block-interactivity-".concat(c)), o.forEach(function(l) {
540
+ return l.classList.remove("allow-interactivity-".concat(c));
541
+ });
542
+ };
543
+ }
544
+ }, [e.inert, e.lockRef.current, e.shards]);
545
+ var a = u.useCallback(function(o, l) {
546
+ if ("touches" in o && o.touches.length === 2 || o.type === "wheel" && o.ctrlKey)
547
+ return !s.current.allowPinchZoom;
548
+ var d = L(o), m = n.current, p = "deltaX" in o ? o.deltaX : m[0] - d[0], y = "deltaY" in o ? o.deltaY : m[1] - d[1], E, A = o.target, R = Math.abs(p) > Math.abs(y) ? "h" : "v";
549
+ if ("touches" in o && R === "h" && A.type === "range")
550
+ return !1;
551
+ var P = ne(R, A);
552
+ if (!P)
553
+ return !0;
554
+ if (P ? E = R : (E = R === "v" ? "h" : "v", P = ne(R, A)), !P)
555
+ return !1;
556
+ if (!r.current && "changedTouches" in o && (p || y) && (r.current = E), !E)
557
+ return !0;
558
+ var G = r.current || E;
559
+ return tt(G, l, o, G === "h" ? p : y);
560
+ }, []), S = u.useCallback(function(o) {
561
+ var l = o;
562
+ if (!(!N.length || N[N.length - 1] !== i)) {
563
+ var d = "deltaY" in l ? re(l) : L(l), m = t.current.filter(function(E) {
564
+ return E.name === l.type && (E.target === l.target || l.target === E.shadowParent) && nt(E.delta, d);
565
+ })[0];
566
+ if (m && m.should) {
567
+ l.cancelable && l.preventDefault();
568
+ return;
569
+ }
570
+ if (!m) {
571
+ var p = (s.current.shards || []).map(ae).filter(Boolean).filter(function(E) {
572
+ return E.contains(l.target);
573
+ }), y = p.length > 0 ? a(l, p[0]) : !s.current.noIsolation;
574
+ y && l.cancelable && l.preventDefault();
575
+ }
576
+ }
577
+ }, []), b = u.useCallback(function(o, l, d, m) {
578
+ var p = { name: o, delta: l, target: d, should: m, shadowParent: ct(d) };
579
+ t.current.push(p), setTimeout(function() {
580
+ t.current = t.current.filter(function(y) {
581
+ return y !== p;
582
+ });
583
+ }, 1);
584
+ }, []), g = u.useCallback(function(o) {
585
+ n.current = L(o), r.current = void 0;
586
+ }, []), f = u.useCallback(function(o) {
587
+ b(o.type, re(o), o.target, a(o, e.lockRef.current));
588
+ }, []), v = u.useCallback(function(o) {
589
+ b(o.type, L(o), o.target, a(o, e.lockRef.current));
590
+ }, []);
591
+ u.useEffect(function() {
592
+ return N.push(i), e.setCallbacks({
593
+ onScrollCapture: f,
594
+ onWheelCapture: f,
595
+ onTouchMoveCapture: v
596
+ }), document.addEventListener("wheel", S, T), document.addEventListener("touchmove", S, T), document.addEventListener("touchstart", g, T), function() {
597
+ N = N.filter(function(o) {
598
+ return o !== i;
599
+ }), document.removeEventListener("wheel", S, T), document.removeEventListener("touchmove", S, T), document.removeEventListener("touchstart", g, T);
600
+ };
601
+ }, []);
602
+ var h = e.removeScrollBar, w = e.inert;
603
+ return u.createElement(
604
+ u.Fragment,
605
+ null,
606
+ w ? u.createElement(i, { styles: rt(c) }) : null,
607
+ h ? u.createElement(ze, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
608
+ );
609
+ }
610
+ function ct(e) {
611
+ for (var t = null; e !== null; )
612
+ e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
613
+ return t;
614
+ }
615
+ const ut = Ie(ie, ot);
616
+ var it = u.forwardRef(function(e, t) {
617
+ return u.createElement(D, C({}, e, { ref: t, sideCar: ut }));
618
+ });
619
+ it.classNames = D.classNames;
620
+ var lt = function(e) {
621
+ if (typeof document > "u")
622
+ return null;
623
+ var t = Array.isArray(e) ? e[0] : e;
624
+ return t.ownerDocument.body;
625
+ }, M = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap(), I = {}, X = 0, ve = function(e) {
626
+ return e && (e.host || ve(e.parentNode));
627
+ }, st = function(e, t) {
628
+ return t.map(function(n) {
629
+ if (e.contains(n))
630
+ return n;
631
+ var r = ve(n);
632
+ return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
633
+ }).filter(function(n) {
634
+ return !!n;
635
+ });
636
+ }, ft = function(e, t, n, r) {
637
+ var c = st(t, Array.isArray(e) ? e : [e]);
638
+ I[n] || (I[n] = /* @__PURE__ */ new WeakMap());
639
+ var i = I[n], s = [], a = /* @__PURE__ */ new Set(), S = new Set(c), b = function(f) {
640
+ !f || a.has(f) || (a.add(f), b(f.parentNode));
641
+ };
642
+ c.forEach(b);
643
+ var g = function(f) {
644
+ !f || S.has(f) || Array.prototype.forEach.call(f.children, function(v) {
645
+ if (a.has(v))
646
+ g(v);
647
+ else
648
+ try {
649
+ var h = v.getAttribute(r), w = h !== null && h !== "false", o = (M.get(v) || 0) + 1, l = (i.get(v) || 0) + 1;
650
+ M.set(v, o), i.set(v, l), s.push(v), o === 1 && w && x.set(v, !0), l === 1 && v.setAttribute(n, "true"), w || v.setAttribute(r, "true");
651
+ } catch (d) {
652
+ console.error("aria-hidden: cannot operate on ", v, d);
653
+ }
654
+ });
655
+ };
656
+ return g(t), a.clear(), X++, function() {
657
+ s.forEach(function(f) {
658
+ var v = M.get(f) - 1, h = i.get(f) - 1;
659
+ M.set(f, v), i.set(f, h), v || (x.has(f) || f.removeAttribute(r), x.delete(f)), h || f.removeAttribute(n);
660
+ }), X--, X || (M = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap(), I = {});
661
+ };
662
+ }, yt = function(e, t, n) {
663
+ n === void 0 && (n = "data-aria-hidden");
664
+ var r = Array.from(Array.isArray(e) ? e : [e]), c = lt(e);
665
+ return c ? (r.push.apply(r, Array.from(c.querySelectorAll("[aria-live], script"))), ft(r, c, n, "aria-hidden")) : function() {
666
+ return null;
667
+ };
668
+ };
669
+ export {
670
+ be as F,
671
+ it as R,
672
+ yt as h,
673
+ gt as u
674
+ };
@@ -0,0 +1,6 @@
1
+ function c(a, [t, n]) {
2
+ return Math.min(n, Math.max(t, a));
3
+ }
4
+ export {
5
+ c
6
+ };
@@ -0,0 +1,15 @@
1
+ import * as o from "react";
2
+ import n from "react-dom";
3
+ import { P as f } from "./index-C5wjudc-.js";
4
+ import { u } from "./index-CCKe-Mpx.js";
5
+ import { j as c } from "./jsx-runtime-BzflLqGi.js";
6
+ var l = "Portal", p = o.forwardRef((r, a) => {
7
+ const { container: e, ...s } = r, [i, m] = o.useState(!1);
8
+ u(() => m(!0), []);
9
+ const t = e || i && globalThis?.document?.body;
10
+ return t ? n.createPortal(/* @__PURE__ */ c.jsx(f.div, { ...s, ref: a }), t) : null;
11
+ });
12
+ p.displayName = l;
13
+ export {
14
+ p as P
15
+ };
@@ -0,0 +1 @@
1
+ "use strict";const i=require("./jsx-runtime-BB_1_6y_.cjs");require("react");const r=require("./utils-DoxiiusW.cjs");function t({className:d,type:a,...e}){return i.jsxRuntimeExports.jsx("input",{type:a,"data-slot":"input",className:r.cn("adm:file:text-foreground adm:placeholder:text-muted-foreground adm:selection:bg-primary adm:selection:text-primary-foreground adm:dark:bg-input/30 adm:border-input adm:h-9 adm:w-full adm:min-w-0 adm:rounded-md adm:border adm:bg-transparent adm:px-3 adm:py-1 adm:text-base adm:shadow-xs adm:transition-[color,box-shadow] adm:outline-none adm:file:inline-flex adm:file:h-7 adm:file:border-0 adm:file:bg-transparent adm:file:text-sm adm:file:font-medium adm:disabled:pointer-events-none adm:disabled:cursor-not-allowed adm:disabled:opacity-50 adm:md:text-sm","adm:focus-visible:border-ring adm:focus-visible:ring-ring/50 adm:focus-visible:ring-[3px]","adm:aria-invalid:ring-destructive/20 adm:dark:aria-invalid:ring-destructive/40 adm:aria-invalid:border-destructive",d),...e})}exports.Input=t;