@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,118 @@
1
+ import * as o from "react";
2
+ import { u as I, c as O } from "./index-C0UREtMP.js";
3
+ import { c as S } from "./index-FxyLF8MY.js";
4
+ import { u as D } from "./index-CCKe-Mpx.js";
5
+ import { u as M } from "./index-6oTEokEx.js";
6
+ import { P as v } from "./index-C5wjudc-.js";
7
+ import { P as L } from "./index-EUea2gfp.js";
8
+ import { u as k } from "./index-Cv867SGx.js";
9
+ import { j as c } from "./jsx-runtime-BzflLqGi.js";
10
+ var f = "Collapsible", [F, V] = S(f), [B, g] = F(f), T = o.forwardRef(
11
+ (e, s) => {
12
+ const {
13
+ __scopeCollapsible: r,
14
+ open: a,
15
+ defaultOpen: t,
16
+ disabled: l,
17
+ onOpenChange: i,
18
+ ...m
19
+ } = e, [d, p] = I({
20
+ prop: a,
21
+ defaultProp: t ?? !1,
22
+ onChange: i,
23
+ caller: f
24
+ });
25
+ return /* @__PURE__ */ c.jsx(
26
+ B,
27
+ {
28
+ scope: r,
29
+ disabled: l,
30
+ contentId: k(),
31
+ open: d,
32
+ onOpenToggle: o.useCallback(() => p((C) => !C), [p]),
33
+ children: /* @__PURE__ */ c.jsx(
34
+ v.div,
35
+ {
36
+ "data-state": x(d),
37
+ "data-disabled": l ? "" : void 0,
38
+ ...m,
39
+ ref: s
40
+ }
41
+ )
42
+ }
43
+ );
44
+ }
45
+ );
46
+ T.displayName = f;
47
+ var j = "CollapsibleTrigger", w = o.forwardRef(
48
+ (e, s) => {
49
+ const { __scopeCollapsible: r, ...a } = e, t = g(j, r);
50
+ return /* @__PURE__ */ c.jsx(
51
+ v.button,
52
+ {
53
+ type: "button",
54
+ "aria-controls": t.contentId,
55
+ "aria-expanded": t.open || !1,
56
+ "data-state": x(t.open),
57
+ "data-disabled": t.disabled ? "" : void 0,
58
+ disabled: t.disabled,
59
+ ...a,
60
+ ref: s,
61
+ onClick: O(e.onClick, t.onOpenToggle)
62
+ }
63
+ );
64
+ }
65
+ );
66
+ w.displayName = j;
67
+ var R = "CollapsibleContent", A = o.forwardRef(
68
+ (e, s) => {
69
+ const { forceMount: r, ...a } = e, t = g(R, e.__scopeCollapsible);
70
+ return /* @__PURE__ */ c.jsx(L, { present: r || t.open, children: ({ present: l }) => /* @__PURE__ */ c.jsx(G, { ...a, ref: s, present: l }) });
71
+ }
72
+ );
73
+ A.displayName = R;
74
+ var G = o.forwardRef((e, s) => {
75
+ const { __scopeCollapsible: r, present: a, children: t, ...l } = e, i = g(R, r), [m, d] = o.useState(a), p = o.useRef(null), C = M(s, p), h = o.useRef(0), P = h.current, y = o.useRef(0), N = y.current, b = i.open || m, _ = o.useRef(b), u = o.useRef(void 0);
76
+ return o.useEffect(() => {
77
+ const n = requestAnimationFrame(() => _.current = !1);
78
+ return () => cancelAnimationFrame(n);
79
+ }, []), D(() => {
80
+ const n = p.current;
81
+ if (n) {
82
+ u.current = u.current || {
83
+ transitionDuration: n.style.transitionDuration,
84
+ animationName: n.style.animationName
85
+ }, n.style.transitionDuration = "0s", n.style.animationName = "none";
86
+ const E = n.getBoundingClientRect();
87
+ h.current = E.height, y.current = E.width, _.current || (n.style.transitionDuration = u.current.transitionDuration, n.style.animationName = u.current.animationName), d(a);
88
+ }
89
+ }, [i.open, a]), /* @__PURE__ */ c.jsx(
90
+ v.div,
91
+ {
92
+ "data-state": x(i.open),
93
+ "data-disabled": i.disabled ? "" : void 0,
94
+ id: i.contentId,
95
+ hidden: !b,
96
+ ...l,
97
+ ref: C,
98
+ style: {
99
+ "--radix-collapsible-content-height": P ? `${P}px` : void 0,
100
+ "--radix-collapsible-content-width": N ? `${N}px` : void 0,
101
+ ...e.style
102
+ },
103
+ children: b && t
104
+ }
105
+ );
106
+ });
107
+ function x(e) {
108
+ return e ? "open" : "closed";
109
+ }
110
+ var W = T, X = w, Y = A;
111
+ export {
112
+ Y as C,
113
+ W as R,
114
+ X as T,
115
+ w as a,
116
+ A as b,
117
+ V as c
118
+ };
@@ -0,0 +1,158 @@
1
+ import * as v from "react";
2
+ import { u as M, c as g } from "./index-C0UREtMP.js";
3
+ import { c as N } from "./index-FxyLF8MY.js";
4
+ import { c as x, R as S, I as F } from "./index-DulPG3F9.js";
5
+ import { P as w } from "./index-EUea2gfp.js";
6
+ import { P as b } from "./index-C5wjudc-.js";
7
+ import { u as D } from "./index-D02K8KOB.js";
8
+ import { u as V } from "./index-Cv867SGx.js";
9
+ import { j as d } from "./jsx-runtime-BzflLqGi.js";
10
+ var p = "Tabs", [G] = N(p, [
11
+ x
12
+ ]), C = x(), [L, T] = G(p), I = v.forwardRef(
13
+ (e, r) => {
14
+ const {
15
+ __scopeTabs: i,
16
+ value: t,
17
+ onValueChange: n,
18
+ defaultValue: c,
19
+ orientation: a = "horizontal",
20
+ dir: u,
21
+ activationMode: f = "automatic",
22
+ ...m
23
+ } = e, s = D(u), [o, l] = M({
24
+ prop: t,
25
+ onChange: n,
26
+ defaultProp: c ?? "",
27
+ caller: p
28
+ });
29
+ return /* @__PURE__ */ d.jsx(
30
+ L,
31
+ {
32
+ scope: i,
33
+ baseId: V(),
34
+ value: o,
35
+ onValueChange: l,
36
+ orientation: a,
37
+ dir: s,
38
+ activationMode: f,
39
+ children: /* @__PURE__ */ d.jsx(
40
+ b.div,
41
+ {
42
+ dir: s,
43
+ "data-orientation": a,
44
+ ...m,
45
+ ref: r
46
+ }
47
+ )
48
+ }
49
+ );
50
+ }
51
+ );
52
+ I.displayName = p;
53
+ var h = "TabsList", R = v.forwardRef(
54
+ (e, r) => {
55
+ const { __scopeTabs: i, loop: t = !0, ...n } = e, c = T(h, i), a = C(i);
56
+ return /* @__PURE__ */ d.jsx(
57
+ S,
58
+ {
59
+ asChild: !0,
60
+ ...a,
61
+ orientation: c.orientation,
62
+ dir: c.dir,
63
+ loop: t,
64
+ children: /* @__PURE__ */ d.jsx(
65
+ b.div,
66
+ {
67
+ role: "tablist",
68
+ "aria-orientation": c.orientation,
69
+ ...n,
70
+ ref: r
71
+ }
72
+ )
73
+ }
74
+ );
75
+ }
76
+ );
77
+ R.displayName = h;
78
+ var _ = "TabsTrigger", y = v.forwardRef(
79
+ (e, r) => {
80
+ const { __scopeTabs: i, value: t, disabled: n = !1, ...c } = e, a = T(_, i), u = C(i), f = j(a.baseId, t), m = E(a.baseId, t), s = t === a.value;
81
+ return /* @__PURE__ */ d.jsx(
82
+ F,
83
+ {
84
+ asChild: !0,
85
+ ...u,
86
+ focusable: !n,
87
+ active: s,
88
+ children: /* @__PURE__ */ d.jsx(
89
+ b.button,
90
+ {
91
+ type: "button",
92
+ role: "tab",
93
+ "aria-selected": s,
94
+ "aria-controls": m,
95
+ "data-state": s ? "active" : "inactive",
96
+ "data-disabled": n ? "" : void 0,
97
+ disabled: n,
98
+ id: f,
99
+ ...c,
100
+ ref: r,
101
+ onMouseDown: g(e.onMouseDown, (o) => {
102
+ !n && o.button === 0 && o.ctrlKey === !1 ? a.onValueChange(t) : o.preventDefault();
103
+ }),
104
+ onKeyDown: g(e.onKeyDown, (o) => {
105
+ [" ", "Enter"].includes(o.key) && a.onValueChange(t);
106
+ }),
107
+ onFocus: g(e.onFocus, () => {
108
+ const o = a.activationMode !== "manual";
109
+ !s && !n && o && a.onValueChange(t);
110
+ })
111
+ }
112
+ )
113
+ }
114
+ );
115
+ }
116
+ );
117
+ y.displayName = _;
118
+ var A = "TabsContent", P = v.forwardRef(
119
+ (e, r) => {
120
+ const { __scopeTabs: i, value: t, forceMount: n, children: c, ...a } = e, u = T(A, i), f = j(u.baseId, t), m = E(u.baseId, t), s = t === u.value, o = v.useRef(s);
121
+ return v.useEffect(() => {
122
+ const l = requestAnimationFrame(() => o.current = !1);
123
+ return () => cancelAnimationFrame(l);
124
+ }, []), /* @__PURE__ */ d.jsx(w, { present: n || s, children: ({ present: l }) => /* @__PURE__ */ d.jsx(
125
+ b.div,
126
+ {
127
+ "data-state": s ? "active" : "inactive",
128
+ "data-orientation": u.orientation,
129
+ role: "tabpanel",
130
+ "aria-labelledby": f,
131
+ hidden: !l,
132
+ id: m,
133
+ tabIndex: 0,
134
+ ...a,
135
+ ref: r,
136
+ style: {
137
+ ...e.style,
138
+ animationDuration: o.current ? "0s" : void 0
139
+ },
140
+ children: l && c
141
+ }
142
+ ) });
143
+ }
144
+ );
145
+ P.displayName = A;
146
+ function j(e, r) {
147
+ return `${e}-trigger-${r}`;
148
+ }
149
+ function E(e, r) {
150
+ return `${e}-content-${r}`;
151
+ }
152
+ var J = I, Q = R, U = y, W = P;
153
+ export {
154
+ W as C,
155
+ Q as L,
156
+ J as R,
157
+ U as T
158
+ };
@@ -0,0 +1,27 @@
1
+ import * as h from "react";
2
+ import { u as z } from "./index-CCKe-Mpx.js";
3
+ function n(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;
24
+ }
25
+ export {
26
+ n as u
27
+ };
@@ -0,0 +1 @@
1
+ "use strict";const qt=require("react"),Oe=require("react-dom"),At=require("./index-DQvx1rG_.cjs"),X=require("./jsx-runtime-BB_1_6y_.cjs"),Xt=require("./index-BKbK2GzY.cjs"),Pe=require("./index-cwZN7ZY3.cjs"),Ce=require("./index-CzY-WZXL.cjs"),$t=require("./index-MQ0c3ZX_.cjs"),Se=require("./index-bSPhqlcX.cjs");function Yt(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const R=Yt(qt),Ee=Yt(Oe),De=["top","right","bottom","left"],Z=Math.min,_=Math.max,at=Math.round,ct=Math.floor,z=t=>({x:t,y:t}),Le={left:"right",right:"left",bottom:"top",top:"bottom"},Me={start:"end",end:"start"};function yt(t,e,n){return _(t,Z(e,n))}function Y(t,e){return typeof t=="function"?t(e):t}function U(t){return t.split("-")[0]}function tt(t){return t.split("-")[1]}function Rt(t){return t==="x"?"y":"x"}function Ot(t){return t==="y"?"height":"width"}const Te=new Set(["top","bottom"]);function V(t){return Te.has(U(t))?"y":"x"}function Pt(t){return Rt(V(t))}function $e(t,e,n){n===void 0&&(n=!1);const o=tt(t),r=Pt(t),i=Ot(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=ft(s)),[s,ft(s)]}function ke(t){const e=ft(t);return[vt(t),e,vt(e)]}function vt(t){return t.replace(/start|end/g,e=>Me[e])}const kt=["left","right"],Ft=["right","left"],Fe=["top","bottom"],Ne=["bottom","top"];function _e(t,e,n){switch(t){case"top":case"bottom":return n?e?Ft:kt:e?kt:Ft;case"left":case"right":return e?Fe:Ne;default:return[]}}function je(t,e,n,o){const r=tt(t);let i=_e(U(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(vt)))),i}function ft(t){return t.replace(/left|right|bottom|top/g,e=>Le[e])}function We(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ut(t){return typeof t!="number"?We(t):{top:t,right:t,bottom:t,left:t}}function ut(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function Nt(t,e,n){let{reference:o,floating:r}=t;const i=V(e),s=Pt(e),c=Ot(s),l=U(e),a=i==="y",f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let d;switch(l){case"top":d={x:f,y:o.y-r.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}switch(tt(e)){case"start":d[s]-=m*(n&&a?-1:1);break;case"end":d[s]+=m*(n&&a?-1:1);break}return d}const He=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e));let a=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:u}=Nt(a,o,l),m=o,d={},p=0;for(let h=0;h<c.length;h++){const{name:w,fn:g}=c[h],{x,y:b,data:y,reset:v}=await g({x:f,y:u,initialPlacement:o,placement:m,strategy:r,middlewareData:d,rects:a,platform:s,elements:{reference:t,floating:e}});f=x??f,u=b??u,d={...d,[w]:{...d[w],...y}},v&&p<=50&&(p++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(a=v.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):v.rects),{x:f,y:u}=Nt(a,m,l)),h=-1)}return{x:f,y:u,placement:m,strategy:r,middlewareData:d}};async function ot(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:l}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:d=0}=Y(e,t),p=Ut(d),w=c[m?u==="floating"?"reference":"floating":u],g=ut(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:l})),x=u==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),y=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},v=ut(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:l}):x);return{top:(g.top-v.top+p.top)/y.y,bottom:(v.bottom-g.bottom+p.bottom)/y.y,left:(g.left-v.left+p.left)/y.x,right:(v.right-g.right+p.right)/y.x}}const Be=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:l}=e,{element:a,padding:f=0}=Y(t,e)||{};if(a==null)return{};const u=Ut(f),m={x:n,y:o},d=Pt(r),p=Ot(d),h=await s.getDimensions(a),w=d==="y",g=w?"top":"left",x=w?"bottom":"right",b=w?"clientHeight":"clientWidth",y=i.reference[p]+i.reference[d]-m[d]-i.floating[p],v=m[d]-i.reference[d],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let O=P?P[b]:0;(!O||!await(s.isElement==null?void 0:s.isElement(P)))&&(O=c.floating[b]||i.floating[p]);const M=y/2-v/2,F=O/2-h[p]/2-1,L=Z(u[g],F),$=Z(u[x],F),k=L,S=O-h[p]-$,C=O/2-h[p]/2+M,N=yt(k,C,S),E=!l.arrow&&tt(r)!=null&&C!==N&&i.reference[p]/2-(C<k?L:$)-h[p]/2<0,D=E?C<k?C-k:C-S:0;return{[d]:m[d]+D,data:{[d]:N,centerOffset:C-N-D,...E&&{alignmentOffset:D}},reset:E}}}),Ve=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:a}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...w}=Y(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=U(r),x=V(c),b=U(c)===c,y=await(l.isRTL==null?void 0:l.isRTL(a.floating)),v=m||(b||!h?[ft(c)]:ke(c)),P=p!=="none";!m&&P&&v.push(...je(c,h,p,y));const O=[c,...v],M=await ot(e,w),F=[];let L=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&F.push(M[g]),u){const C=$e(r,s,y);F.push(M[C[0]],M[C[1]])}if(L=[...L,{placement:r,overflows:F}],!F.every(C=>C<=0)){var $,k;const C=((($=i.flip)==null?void 0:$.index)||0)+1,N=O[C];if(N&&(!(u==="alignment"?x!==V(N):!1)||L.every(A=>V(A.placement)===x?A.overflows[0]>0:!0)))return{data:{index:C,overflows:L},reset:{placement:N}};let E=(k=L.filter(D=>D.overflows[0]<=0).sort((D,A)=>D.overflows[1]-A.overflows[1])[0])==null?void 0:k.placement;if(!E)switch(d){case"bestFit":{var S;const D=(S=L.filter(A=>{if(P){const T=V(A.placement);return T===x||T==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(T=>T>0).reduce((T,B)=>T+B,0)]).sort((A,T)=>A[1]-T[1])[0])==null?void 0:S[0];D&&(E=D);break}case"initialPlacement":E=c;break}if(r!==E)return{reset:{placement:E}}}return{}}}};function _t(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function jt(t){return De.some(e=>t[e]>=0)}const ze=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...r}=Y(t,e);switch(o){case"referenceHidden":{const i=await ot(e,{...r,elementContext:"reference"}),s=_t(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jt(s)}}}case"escaped":{const i=await ot(e,{...r,altBoundary:!0}),s=_t(i,n.floating);return{data:{escapedOffsets:s,escaped:jt(s)}}}default:return{}}}}},Zt=new Set(["left","top"]);async function Ie(t,e){const{placement:n,platform:o,elements:r}=t,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=U(n),c=tt(n),l=V(n)==="y",a=Zt.has(s)?-1:1,f=i&&l?-1:1,u=Y(e,t);let{mainAxis:m,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),l?{x:d*f,y:m*a}:{x:m*a,y:d*f}}const qe=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=e,l=await Ie(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Xe=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:w=>{let{x:g,y:x}=w;return{x:g,y:x}}},...l}=Y(t,e),a={x:n,y:o},f=await ot(e,l),u=V(U(r)),m=Rt(u);let d=a[m],p=a[u];if(i){const w=m==="y"?"top":"left",g=m==="y"?"bottom":"right",x=d+f[w],b=d-f[g];d=yt(x,d,b)}if(s){const w=u==="y"?"top":"left",g=u==="y"?"bottom":"right",x=p+f[w],b=p-f[g];p=yt(x,p,b)}const h=c.fn({...e,[m]:d,[u]:p});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:i,[u]:s}}}}}},Ye=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:c=0,mainAxis:l=!0,crossAxis:a=!0}=Y(t,e),f={x:n,y:o},u=V(r),m=Rt(u);let d=f[m],p=f[u];const h=Y(c,e),w=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const b=m==="y"?"height":"width",y=i.reference[m]-i.floating[b]+w.mainAxis,v=i.reference[m]+i.reference[b]-w.mainAxis;d<y?d=y:d>v&&(d=v)}if(a){var g,x;const b=m==="y"?"width":"height",y=Zt.has(U(r)),v=i.reference[u]-i.floating[b]+(y&&((g=s.offset)==null?void 0:g[u])||0)+(y?0:w.crossAxis),P=i.reference[u]+i.reference[b]+(y?0:((x=s.offset)==null?void 0:x[u])||0)-(y?w.crossAxis:0);p<v?p=v:p>P&&(p=P)}return{[m]:d,[u]:p}}}},Ue=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:c}=e,{apply:l=()=>{},...a}=Y(t,e),f=await ot(e,a),u=U(r),m=tt(r),d=V(r)==="y",{width:p,height:h}=i.floating;let w,g;u==="top"||u==="bottom"?(w=u,g=m===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(g=u,w=m==="end"?"top":"bottom");const x=h-f.top-f.bottom,b=p-f.left-f.right,y=Z(h-f[w],x),v=Z(p-f[g],b),P=!e.middlewareData.shift;let O=y,M=v;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(M=b),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(O=x),P&&!m){const L=_(f.left,0),$=_(f.right,0),k=_(f.top,0),S=_(f.bottom,0);d?M=p-2*(L!==0||$!==0?L+$:_(f.left,f.right)):O=h-2*(k!==0||S!==0?k+S:_(f.top,f.bottom))}await l({...e,availableWidth:M,availableHeight:O});const F=await s.getDimensions(c.floating);return p!==F.width||h!==F.height?{reset:{rects:!0}}:{}}}};function pt(){return typeof window<"u"}function et(t){return Kt(t)?(t.nodeName||"").toLowerCase():"#document"}function j(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function q(t){var e;return(e=(Kt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Kt(t){return pt()?t instanceof Node||t instanceof j(t).Node:!1}function W(t){return pt()?t instanceof Element||t instanceof j(t).Element:!1}function I(t){return pt()?t instanceof HTMLElement||t instanceof j(t).HTMLElement:!1}function Wt(t){return!pt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof j(t).ShadowRoot}const Ze=new Set(["inline","contents"]);function it(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=H(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Ze.has(r)}const Ke=new Set(["table","td","th"]);function Ge(t){return Ke.has(et(t))}const Je=[":popover-open",":modal"];function mt(t){return Je.some(e=>{try{return t.matches(e)}catch{return!1}})}const Qe=["transform","translate","scale","rotate","perspective"],tn=["transform","translate","scale","rotate","perspective","filter"],en=["paint","layout","strict","content"];function Ct(t){const e=St(),n=W(t)?H(t):t;return Qe.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||tn.some(o=>(n.willChange||"").includes(o))||en.some(o=>(n.contain||"").includes(o))}function nn(t){let e=K(t);for(;I(e)&&!Q(e);){if(Ct(e))return e;if(mt(e))return null;e=K(e)}return null}function St(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const on=new Set(["html","body","#document"]);function Q(t){return on.has(et(t))}function H(t){return j(t).getComputedStyle(t)}function ht(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(et(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Wt(t)&&t.host||q(t);return Wt(e)?e.host:e}function Gt(t){const e=K(t);return Q(e)?t.ownerDocument?t.ownerDocument.body:t.body:I(e)&&it(e)?e:Gt(e)}function rt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=Gt(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=j(r);if(i){const c=bt(s);return e.concat(s,s.visualViewport||[],it(r)?r:[],c&&n?rt(c):[])}return e.concat(r,rt(r,[],n))}function bt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Jt(t){const e=H(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=I(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,c=at(n)!==i||at(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function Et(t){return W(t)?t:t.contextElement}function J(t){const e=Et(t);if(!I(e))return z(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Jt(e);let s=(i?at(n.width):n.width)/o,c=(i?at(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const rn=z(0);function Qt(t){const e=j(t);return!St()||!e.visualViewport?rn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function sn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==j(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=Et(t);let s=z(1);e&&(o?W(o)&&(s=J(o)):s=J(t));const c=sn(i,n,o)?Qt(i):z(0);let l=(r.left+c.x)/s.x,a=(r.top+c.y)/s.y,f=r.width/s.x,u=r.height/s.y;if(i){const m=j(i),d=o&&W(o)?j(o):o;let p=m,h=bt(p);for(;h&&o&&d!==p;){const w=J(h),g=h.getBoundingClientRect(),x=H(h),b=g.left+(h.clientLeft+parseFloat(x.paddingLeft))*w.x,y=g.top+(h.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,a*=w.y,f*=w.x,u*=w.y,l+=b,a+=y,p=j(h),h=bt(p)}}return ut({width:f,height:u,x:l,y:a})}function gt(t,e){const n=ht(t).scrollLeft;return e?e.left+n:G(q(t)).left+n}function te(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-gt(t,n),r=n.top+e.scrollTop;return{x:o,y:r}}function cn(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=q(o),c=e?mt(e.floating):!1;if(o===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},a=z(1);const f=z(0),u=I(o);if((u||!u&&!i)&&((et(o)!=="body"||it(s))&&(l=ht(o)),I(o))){const d=G(o);a=J(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const m=s&&!u&&!i?te(s,l):z(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+f.x+m.x,y:n.y*a.y-l.scrollTop*a.y+f.y+m.y}}function ln(t){return Array.from(t.getClientRects())}function an(t){const e=q(t),n=ht(t),o=t.ownerDocument.body,r=_(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=_(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+gt(t);const c=-n.scrollTop;return H(o).direction==="rtl"&&(s+=_(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}const Ht=25;function fn(t,e){const n=j(t),o=q(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,l=0;if(r){i=r.width,s=r.height;const f=St();(!f||f&&e==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}const a=gt(o);if(a<=0){const f=o.ownerDocument,u=f.body,m=getComputedStyle(u),d=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,p=Math.abs(o.clientWidth-u.clientWidth-d);p<=Ht&&(i-=p)}else a<=Ht&&(i+=a);return{width:i,height:s,x:c,y:l}}const un=new Set(["absolute","fixed"]);function dn(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=I(t)?J(t):z(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,l=r*i.x,a=o*i.y;return{width:s,height:c,x:l,y:a}}function Bt(t,e,n){let o;if(e==="viewport")o=fn(t,n);else if(e==="document")o=an(q(t));else if(W(e))o=dn(e,n);else{const r=Qt(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return ut(o)}function ee(t,e){const n=K(t);return n===e||!W(n)||Q(n)?!1:H(n).position==="fixed"||ee(n,e)}function pn(t,e){const n=e.get(t);if(n)return n;let o=rt(t,[],!1).filter(c=>W(c)&&et(c)!=="body"),r=null;const i=H(t).position==="fixed";let s=i?K(t):t;for(;W(s)&&!Q(s);){const c=H(s),l=Ct(s);!l&&c.position==="fixed"&&(r=null),(i?!l&&!r:!l&&c.position==="static"&&!!r&&un.has(r.position)||it(s)&&!l&&ee(t,s))?o=o.filter(f=>f!==s):r=c,s=K(s)}return e.set(t,o),o}function mn(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?mt(e)?[]:pn(e,this._c):[].concat(n),o],c=s[0],l=s.reduce((a,f)=>{const u=Bt(e,f,r);return a.top=_(u.top,a.top),a.right=Z(u.right,a.right),a.bottom=Z(u.bottom,a.bottom),a.left=_(u.left,a.left),a},Bt(e,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function hn(t){const{width:e,height:n}=Jt(t);return{width:e,height:n}}function gn(t,e,n){const o=I(e),r=q(e),i=n==="fixed",s=G(t,!0,i,e);let c={scrollLeft:0,scrollTop:0};const l=z(0);function a(){l.x=gt(r)}if(o||!o&&!i)if((et(e)!=="body"||it(r))&&(c=ht(e)),o){const d=G(e,!0,i,e);l.x=d.x+e.clientLeft,l.y=d.y+e.clientTop}else r&&a();i&&!o&&r&&a();const f=r&&!o&&!i?te(r,c):z(0),u=s.left+c.scrollLeft-l.x-f.x,m=s.top+c.scrollTop-l.y-f.y;return{x:u,y:m,width:s.width,height:s.height}}function wt(t){return H(t).position==="static"}function Vt(t,e){if(!I(t)||H(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return q(t)===n&&(n=n.ownerDocument.body),n}function ne(t,e){const n=j(t);if(mt(t))return n;if(!I(t)){let r=K(t);for(;r&&!Q(r);){if(W(r)&&!wt(r))return r;r=K(r)}return n}let o=Vt(t,e);for(;o&&Ge(o)&&wt(o);)o=Vt(o,e);return o&&Q(o)&&wt(o)&&!Ct(o)?n:o||nn(t)||n}const wn=async function(t){const e=this.getOffsetParent||ne,n=this.getDimensions,o=await n(t.floating);return{reference:gn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function xn(t){return H(t).direction==="rtl"}const yn={convertOffsetParentRelativeRectToViewportRelativeRect:cn,getDocumentElement:q,getClippingRect:mn,getOffsetParent:ne,getElementRects:wn,getClientRects:ln,getDimensions:hn,getScale:J,isElement:W,isRTL:xn};function oe(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function vn(t,e){let n=null,o;const r=q(t);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),i();const a=t.getBoundingClientRect(),{left:f,top:u,width:m,height:d}=a;if(c||e(),!m||!d)return;const p=ct(u),h=ct(r.clientWidth-(f+m)),w=ct(r.clientHeight-(u+d)),g=ct(f),b={rootMargin:-p+"px "+-h+"px "+-w+"px "+-g+"px",threshold:_(0,Z(1,l))||1};let y=!0;function v(P){const O=P[0].intersectionRatio;if(O!==l){if(!y)return s();O?s(!1,O):o=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!oe(a,t.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(v,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(v,b)}n.observe(t)}return s(!0),i}function bn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,a=Et(t),f=r||i?[...a?rt(a):[],...rt(e)]:[];f.forEach(g=>{r&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const u=a&&c?vn(a,n):null;let m=-1,d=null;s&&(d=new ResizeObserver(g=>{let[x]=g;x&&x.target===a&&d&&(d.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),a&&!l&&d.observe(a),d.observe(e));let p,h=l?G(t):null;l&&w();function w(){const g=G(t);h&&!oe(h,g)&&n(),h=g,p=requestAnimationFrame(w)}return n(),()=>{var g;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const An=qe,Rn=Xe,On=Ve,Pn=Ue,Cn=ze,zt=Be,Sn=Ye,En=(t,e,n)=>{const o=new Map,r={platform:yn,...n},i={...r.platform,_c:o};return He(t,e,{...r,platform:i})};var Dn=typeof document<"u",Ln=function(){},lt=Dn?qt.useLayoutEffect:Ln;function dt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!dt(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&t.$$typeof)&&!dt(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function re(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function It(t,e){const n=re(t);return Math.round(e*n)/n}function xt(t){const e=R.useRef(t);return lt(()=>{e.current=t}),e}function Mn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:l,open:a}=t,[f,u]=R.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[m,d]=R.useState(o);dt(m,o)||d(o);const[p,h]=R.useState(null),[w,g]=R.useState(null),x=R.useCallback(A=>{A!==P.current&&(P.current=A,h(A))},[]),b=R.useCallback(A=>{A!==O.current&&(O.current=A,g(A))},[]),y=i||p,v=s||w,P=R.useRef(null),O=R.useRef(null),M=R.useRef(f),F=l!=null,L=xt(l),$=xt(r),k=xt(a),S=R.useCallback(()=>{if(!P.current||!O.current)return;const A={placement:e,strategy:n,middleware:m};$.current&&(A.platform=$.current),En(P.current,O.current,A).then(T=>{const B={...T,isPositioned:k.current!==!1};C.current&&!dt(M.current,B)&&(M.current=B,Ee.flushSync(()=>{u(B)}))})},[m,e,n,$,k]);lt(()=>{a===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[a]);const C=R.useRef(!1);lt(()=>(C.current=!0,()=>{C.current=!1}),[]),lt(()=>{if(y&&(P.current=y),v&&(O.current=v),y&&v){if(L.current)return L.current(y,v,S);S()}},[y,v,S,L,F]);const N=R.useMemo(()=>({reference:P,floating:O,setReference:x,setFloating:b}),[x,b]),E=R.useMemo(()=>({reference:y,floating:v}),[y,v]),D=R.useMemo(()=>{const A={position:n,left:0,top:0};if(!E.floating)return A;const T=It(E.floating,f.x),B=It(E.floating,f.y);return c?{...A,transform:"translate("+T+"px, "+B+"px)",...re(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:B}},[n,c,E.floating,f.x,f.y]);return R.useMemo(()=>({...f,update:S,refs:N,elements:E,floatingStyles:D}),[f,S,N,E,D])}const Tn=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?zt({element:o.current,padding:r}).fn(n):{}:o?zt({element:o,padding:r}).fn(n):{}}}},$n=(t,e)=>({...An(t),options:[t,e]}),kn=(t,e)=>({...Rn(t),options:[t,e]}),Fn=(t,e)=>({...Sn(t),options:[t,e]}),Nn=(t,e)=>({...On(t),options:[t,e]}),_n=(t,e)=>({...Pn(t),options:[t,e]}),jn=(t,e)=>({...Cn(t),options:[t,e]}),Wn=(t,e)=>({...Tn(t),options:[t,e]});var Hn="Arrow",ie=R.forwardRef((t,e)=>{const{children:n,width:o=10,height:r=5,...i}=t;return X.jsxRuntimeExports.jsx(At.Primitive.svg,{...i,ref:e,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:X.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});ie.displayName=Hn;var Bn=ie,Dt="Popper",[se,Vn]=Pe.createContextScope(Dt),[zn,ce]=se(Dt),le=t=>{const{__scopePopper:e,children:n}=t,[o,r]=R.useState(null);return X.jsxRuntimeExports.jsx(zn,{scope:e,anchor:o,onAnchorChange:r,children:n})};le.displayName=Dt;var ae="PopperAnchor",fe=R.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:o,...r}=t,i=ce(ae,n),s=R.useRef(null),c=Xt.useComposedRefs(e,s),l=R.useRef(null);return R.useEffect(()=>{const a=l.current;l.current=o?.current||s.current,a!==l.current&&i.onAnchorChange(l.current)}),o?null:X.jsxRuntimeExports.jsx(At.Primitive.div,{...r,ref:c})});fe.displayName=ae;var Lt="PopperContent",[In,qn]=se(Lt),ue=R.forwardRef((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:a=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:m=!1,updatePositionStrategy:d="optimized",onPlaced:p,...h}=t,w=ce(Lt,n),[g,x]=R.useState(null),b=Xt.useComposedRefs(e,nt=>x(nt)),[y,v]=R.useState(null),P=Se.useSize(y),O=P?.width??0,M=P?.height??0,F=o+(i!=="center"?"-"+i:""),L=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},$=Array.isArray(a)?a:[a],k=$.length>0,S={padding:L,boundary:$.filter(Yn),altBoundary:k},{refs:C,floatingStyles:N,placement:E,isPositioned:D,middlewareData:A}=Mn({strategy:"fixed",placement:F,whileElementsMounted:(...nt)=>bn(...nt,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[$n({mainAxis:r+M,alignmentAxis:s}),l&&kn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Fn():void 0,...S}),l&&Nn({...S}),_n({...S,apply:({elements:nt,rects:Tt,availableWidth:ve,availableHeight:be})=>{const{width:Ae,height:Re}=Tt.reference,st=nt.floating.style;st.setProperty("--radix-popper-available-width",`${ve}px`),st.setProperty("--radix-popper-available-height",`${be}px`),st.setProperty("--radix-popper-anchor-width",`${Ae}px`),st.setProperty("--radix-popper-anchor-height",`${Re}px`)}}),y&&Wn({element:y,padding:c}),Un({arrowWidth:O,arrowHeight:M}),m&&jn({strategy:"referenceHidden",...S})]}),[T,B]=me(E),Mt=Ce.useCallbackRef(p);$t.useLayoutEffect2(()=>{D&&Mt?.()},[D,Mt]);const he=A.arrow?.x,ge=A.arrow?.y,we=A.arrow?.centerOffset!==0,[xe,ye]=R.useState();return $t.useLayoutEffect2(()=>{g&&ye(window.getComputedStyle(g).zIndex)},[g]),X.jsxRuntimeExports.jsx("div",{ref:C.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:D?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:X.jsxRuntimeExports.jsx(In,{scope:n,placedSide:T,onArrowChange:v,arrowX:he,arrowY:ge,shouldHideArrow:we,children:X.jsxRuntimeExports.jsx(At.Primitive.div,{"data-side":T,"data-align":B,...h,ref:b,style:{...h.style,animation:D?void 0:"none"}})})})});ue.displayName=Lt;var de="PopperArrow",Xn={top:"bottom",right:"left",bottom:"top",left:"right"},pe=R.forwardRef(function(e,n){const{__scopePopper:o,...r}=e,i=qn(de,o),s=Xn[i.placedSide];return X.jsxRuntimeExports.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:X.jsxRuntimeExports.jsx(Bn,{...r,ref:n,style:{...r.style,display:"block"}})})});pe.displayName=de;function Yn(t){return t!==null}var Un=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:o,middlewareData:r}=e,s=r.arrow?.centerOffset!==0,c=s?0:t.arrowWidth,l=s?0:t.arrowHeight,[a,f]=me(n),u={start:"0%",center:"50%",end:"100%"}[f],m=(r.arrow?.x??0)+c/2,d=(r.arrow?.y??0)+l/2;let p="",h="";return a==="bottom"?(p=s?u:`${m}px`,h=`${-l}px`):a==="top"?(p=s?u:`${m}px`,h=`${o.floating.height+l}px`):a==="right"?(p=`${-l}px`,h=s?u:`${d}px`):a==="left"&&(p=`${o.floating.width+l}px`,h=s?u:`${d}px`),{data:{x:p,y:h}}}});function me(t){const[e,n="center"]=t.split("-");return[e,n]}var Zn=le,Kn=fe,Gn=ue,Jn=pe;exports.Anchor=Kn;exports.Arrow=Jn;exports.Content=Gn;exports.Root2=Zn;exports.createPopperScope=Vn;
@@ -0,0 +1 @@
1
+ "use strict";const g=require("react"),f=require("./jsx-runtime-BB_1_6y_.cjs");function b(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=b(g);function m(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function p(...e){return t=>{let n=!1;const o=e.map(r=>{const l=m(r,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let r=0;r<o.length;r++){const l=o[r];typeof l=="function"?l():m(e[r],null)}}}}function x(...e){return s.useCallback(p(...e),e)}function y(e){const t=E(e),n=s.forwardRef((o,r)=>{const{children:l,...c}=o,i=s.Children.toArray(l),u=i.find(h);if(u){const a=u.props.children,R=i.map(d=>d===u?s.Children.count(a)>1?s.Children.only(null):s.isValidElement(a)?a.props.children:null:d);return f.jsxRuntimeExports.jsx(t,{...c,ref:r,children:s.isValidElement(a)?s.cloneElement(a,void 0,R):null})}return f.jsxRuntimeExports.jsx(t,{...c,ref:r,children:l})});return n.displayName=`${e}.Slot`,n}var j=y("Slot");function E(e){const t=s.forwardRef((n,o)=>{const{children:r,...l}=n;if(s.isValidElement(r)){const c=_(r),i=O(l,r.props);return r.type!==s.Fragment&&(i.ref=o?p(o,c):c),s.cloneElement(r,i)}return s.Children.count(r)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var S=Symbol("radix.slottable");function C(e){const t=({children:n})=>f.jsxRuntimeExports.jsx(f.jsxRuntimeExports.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=S,t}function h(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===S}function O(e,t){const n={...t};for(const o in t){const r=e[o],l=t[o];/^on[A-Z]/.test(o)?r&&l?n[o]=(...i)=>{const u=l(...i);return r(...i),u}:r&&(n[o]=r):o==="style"?n[o]={...r,...l}:o==="className"&&(n[o]=[r,l].filter(Boolean).join(" "))}return{...e,...n}}function _(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}exports.Slot=j;exports.composeRefs=p;exports.createSlot=y;exports.createSlottable=C;exports.useComposedRefs=x;
@@ -0,0 +1 @@
1
+ "use strict";const We=require("react"),R=require("./index-BWaO7kQK.cjs"),ve=require("./index-D7hQvndv.cjs"),_=require("./index-BKbK2GzY.cjs"),ze=require("./index-cwZN7ZY3.cjs"),Ze=require("./index-VIUqZjyP.cjs"),q=require("./index-DXQ-7kNJ.cjs"),me=require("./index-WIv2ndLu.cjs"),j=require("./index-BGiGvaq8.cjs"),Je=require("./index-Ce3QBKyj.cjs"),$=require("./index-IKJMQref.cjs"),y=require("./index-DQvx1rG_.cjs"),Y=require("./index-DnS_sBBe.cjs"),ee=require("./index-CzY-WZXL.cjs"),u=require("./jsx-runtime-BB_1_6y_.cjs");function Qe(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=Qe(We);var Q=["Enter"," "],et=["ArrowDown","PageUp","Home"],Re=["ArrowUp","PageDown","End"],tt=[...et,...Re],nt={ltr:[...Q,"ArrowRight"],rtl:[...Q,"ArrowLeft"]},ot={ltr:["ArrowLeft"],rtl:["ArrowRight"]},F="Menu",[D,rt,st]=ve.createCollection(F),[S,ct]=ze.createContextScope(F,[st,j.createPopperScope,Y.createRovingFocusGroupScope]),L=j.createPopperScope(),Ee=Y.createRovingFocusGroupScope(),[Ce,M]=S(F),[ut,G]=S(F),he=e=>{const{__scopeMenu:n,open:t=!1,children:o,dir:a,onOpenChange:s,modal:d=!0}=e,m=L(n),[x,p]=r.useState(null),l=r.useRef(!1),c=ee.useCallbackRef(s),f=ve.useDirection(a);return r.useEffect(()=>{const C=()=>{l.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>l.current=!1;return document.addEventListener("keydown",C,{capture:!0}),()=>{document.removeEventListener("keydown",C,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),u.jsxRuntimeExports.jsx(j.Root2,{...m,children:u.jsxRuntimeExports.jsx(Ce,{scope:n,open:t,onOpenChange:c,content:x,onContentChange:p,children:u.jsxRuntimeExports.jsx(ut,{scope:n,onClose:r.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:l,dir:f,modal:d,children:o})})})};he.displayName=F;var at="MenuAnchor",te=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,a=L(t);return u.jsxRuntimeExports.jsx(j.Anchor,{...a,...o,ref:n})});te.displayName=at;var ne="MenuPortal",[it,Me]=S(ne,{forceMount:void 0}),ge=e=>{const{__scopeMenu:n,forceMount:t,children:o,container:a}=e,s=M(ne,n);return u.jsxRuntimeExports.jsx(it,{scope:n,forceMount:t,children:u.jsxRuntimeExports.jsx($.Presence,{present:t||s.open,children:u.jsxRuntimeExports.jsx(Je.Portal,{asChild:!0,container:a,children:o})})})};ge.displayName=ne;var h="MenuContent",[lt,oe]=S(h),_e=r.forwardRef((e,n)=>{const t=Me(h,e.__scopeMenu),{forceMount:o=t.forceMount,...a}=e,s=M(h,e.__scopeMenu),d=G(h,e.__scopeMenu);return u.jsxRuntimeExports.jsx(D.Provider,{scope:e.__scopeMenu,children:u.jsxRuntimeExports.jsx($.Presence,{present:o||s.open,children:u.jsxRuntimeExports.jsx(D.Slot,{scope:e.__scopeMenu,children:d.modal?u.jsxRuntimeExports.jsx(dt,{...a,ref:n}):u.jsxRuntimeExports.jsx(ft,{...a,ref:n})})})})}),dt=r.forwardRef((e,n)=>{const t=M(h,e.__scopeMenu),o=r.useRef(null),a=_.useComposedRefs(n,o);return r.useEffect(()=>{const s=o.current;if(s)return q.hideOthers(s)},[]),u.jsxRuntimeExports.jsx(re,{...e,ref:a,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:R.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),ft=r.forwardRef((e,n)=>{const t=M(h,e.__scopeMenu);return u.jsxRuntimeExports.jsx(re,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),pt=_.createSlot("MenuContent.ScrollLock"),re=r.forwardRef((e,n)=>{const{__scopeMenu:t,loop:o=!1,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:d,disableOutsidePointerEvents:m,onEntryFocus:x,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:f,onDismiss:C,disableOutsideScroll:v,...P}=e,T=M(h,t),I=G(h,t),He=L(t),Ue=Ee(t),ie=rt(t),[qe,le]=r.useState(null),K=r.useRef(null),Be=_.useComposedRefs(n,K,T.onContentChange),H=r.useRef(0),U=r.useRef(""),Ve=r.useRef(0),W=r.useRef(null),de=r.useRef("right"),z=r.useRef(0),$e=v?q.ReactRemoveScroll:r.Fragment,Ye=v?{as:pt,allowPinchZoom:!0}:void 0,Xe=i=>{const b=U.current+i,g=ie().filter(E=>!E.disabled),O=document.activeElement,Z=g.find(E=>E.ref.current===O)?.textValue,J=g.map(E=>E.textValue),fe=St(J,b,Z),A=g.find(E=>E.textValue===fe)?.ref.current;(function E(pe){U.current=pe,window.clearTimeout(H.current),pe!==""&&(H.current=window.setTimeout(()=>E(""),1e3))})(b),A&&setTimeout(()=>A.focus())};r.useEffect(()=>()=>window.clearTimeout(H.current),[]),q.useFocusGuards();const w=r.useCallback(i=>de.current===W.current?.side&&It(i,W.current?.area),[]);return u.jsxRuntimeExports.jsx(lt,{scope:t,searchRef:U,onItemEnter:r.useCallback(i=>{w(i)&&i.preventDefault()},[w]),onItemLeave:r.useCallback(i=>{w(i)||(K.current?.focus(),le(null))},[w]),onTriggerLeave:r.useCallback(i=>{w(i)&&i.preventDefault()},[w]),pointerGraceTimerRef:Ve,onPointerGraceIntentChange:r.useCallback(i=>{W.current=i},[]),children:u.jsxRuntimeExports.jsx($e,{...Ye,children:u.jsxRuntimeExports.jsx(q.FocusScope,{asChild:!0,trapped:a,onMountAutoFocus:R.composeEventHandlers(s,i=>{i.preventDefault(),K.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:u.jsxRuntimeExports.jsx(Ze.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:f,onDismiss:C,children:u.jsxRuntimeExports.jsx(Y.Root,{asChild:!0,...Ue,dir:I.dir,orientation:"vertical",loop:o,currentTabStopId:qe,onCurrentTabStopIdChange:le,onEntryFocus:R.composeEventHandlers(x,i=>{I.isUsingKeyboardRef.current||i.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsxRuntimeExports.jsx(j.Content,{role:"menu","aria-orientation":"vertical","data-state":Ke(T.open),"data-radix-menu-content":"",dir:I.dir,...He,...P,ref:Be,style:{outline:"none",...P.style},onKeyDown:R.composeEventHandlers(P.onKeyDown,i=>{const g=i.target.closest("[data-radix-menu-content]")===i.currentTarget,O=i.ctrlKey||i.altKey||i.metaKey,Z=i.key.length===1;g&&(i.key==="Tab"&&i.preventDefault(),!O&&Z&&Xe(i.key));const J=K.current;if(i.target!==J||!tt.includes(i.key))return;i.preventDefault();const A=ie().filter(E=>!E.disabled).map(E=>E.ref.current);Re.includes(i.key)&&A.reverse(),_t(A)}),onBlur:R.composeEventHandlers(e.onBlur,i=>{i.currentTarget.contains(i.target)||(window.clearTimeout(H.current),U.current="")}),onPointerMove:R.composeEventHandlers(e.onPointerMove,N(i=>{const b=i.target,g=z.current!==i.clientX;if(i.currentTarget.contains(b)&&g){const O=i.clientX>z.current?"right":"left";de.current=O,z.current=i.clientX}}))})})})})})})});_e.displayName=h;var mt="MenuGroup",se=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return u.jsxRuntimeExports.jsx(y.Primitive.div,{role:"group",...o,ref:n})});se.displayName=mt;var xt="MenuLabel",je=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return u.jsxRuntimeExports.jsx(y.Primitive.div,{...o,ref:n})});je.displayName=xt;var B="MenuItem",xe="menu.itemSelect",X=r.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:o,...a}=e,s=r.useRef(null),d=G(B,e.__scopeMenu),m=oe(B,e.__scopeMenu),x=_.useComposedRefs(n,s),p=r.useRef(!1),l=()=>{const c=s.current;if(!t&&c){const f=new CustomEvent(xe,{bubbles:!0,cancelable:!0});c.addEventListener(xe,C=>o?.(C),{once:!0}),y.dispatchDiscreteCustomEvent(c,f),f.defaultPrevented?p.current=!1:d.onClose()}};return u.jsxRuntimeExports.jsx(Se,{...a,ref:x,disabled:t,onClick:R.composeEventHandlers(e.onClick,l),onPointerDown:c=>{e.onPointerDown?.(c),p.current=!0},onPointerUp:R.composeEventHandlers(e.onPointerUp,c=>{p.current||c.currentTarget?.click()}),onKeyDown:R.composeEventHandlers(e.onKeyDown,c=>{const f=m.searchRef.current!=="";t||f&&c.key===" "||Q.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});X.displayName=B;var Se=r.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:o=!1,textValue:a,...s}=e,d=oe(B,t),m=Ee(t),x=r.useRef(null),p=_.useComposedRefs(n,x),[l,c]=r.useState(!1),[f,C]=r.useState("");return r.useEffect(()=>{const v=x.current;v&&C((v.textContent??"").trim())},[s.children]),u.jsxRuntimeExports.jsx(D.ItemSlot,{scope:t,disabled:o,textValue:a??f,children:u.jsxRuntimeExports.jsx(Y.Item,{asChild:!0,...m,focusable:!o,children:u.jsxRuntimeExports.jsx(y.Primitive.div,{role:"menuitem","data-highlighted":l?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:p,onPointerMove:R.composeEventHandlers(e.onPointerMove,N(v=>{o?d.onItemLeave(v):(d.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:R.composeEventHandlers(e.onPointerLeave,N(v=>d.onItemLeave(v))),onFocus:R.composeEventHandlers(e.onFocus,()=>c(!0)),onBlur:R.composeEventHandlers(e.onBlur,()=>c(!1))})})})}),vt="MenuCheckboxItem",Pe=r.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:o,...a}=e;return u.jsxRuntimeExports.jsx(Te,{scope:e.__scopeMenu,checked:t,children:u.jsxRuntimeExports.jsx(X,{role:"menuitemcheckbox","aria-checked":V(t)?"mixed":t,...a,ref:n,"data-state":ae(t),onSelect:R.composeEventHandlers(a.onSelect,()=>o?.(V(t)?!0:!t),{checkForDefaultPrevented:!1})})})});Pe.displayName=vt;var Ie="MenuRadioGroup",[Rt,Et]=S(Ie,{value:void 0,onValueChange:()=>{}}),we=r.forwardRef((e,n)=>{const{value:t,onValueChange:o,...a}=e,s=ee.useCallbackRef(o);return u.jsxRuntimeExports.jsx(Rt,{scope:e.__scopeMenu,value:t,onValueChange:s,children:u.jsxRuntimeExports.jsx(se,{...a,ref:n})})});we.displayName=Ie;var be="MenuRadioItem",ye=r.forwardRef((e,n)=>{const{value:t,...o}=e,a=Et(be,e.__scopeMenu),s=t===a.value;return u.jsxRuntimeExports.jsx(Te,{scope:e.__scopeMenu,checked:s,children:u.jsxRuntimeExports.jsx(X,{role:"menuitemradio","aria-checked":s,...o,ref:n,"data-state":ae(s),onSelect:R.composeEventHandlers(o.onSelect,()=>a.onValueChange?.(t),{checkForDefaultPrevented:!1})})})});ye.displayName=be;var ce="MenuItemIndicator",[Te,Ct]=S(ce,{checked:!1}),Oe=r.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:o,...a}=e,s=Ct(ce,t);return u.jsxRuntimeExports.jsx($.Presence,{present:o||V(s.checked)||s.checked===!0,children:u.jsxRuntimeExports.jsx(y.Primitive.span,{...a,ref:n,"data-state":ae(s.checked)})})});Oe.displayName=ce;var ht="MenuSeparator",Ae=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return u.jsxRuntimeExports.jsx(y.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});Ae.displayName=ht;var Mt="MenuArrow",ke=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,a=L(t);return u.jsxRuntimeExports.jsx(j.Arrow,{...a,...o,ref:n})});ke.displayName=Mt;var ue="MenuSub",[gt,De]=S(ue),Ne=e=>{const{__scopeMenu:n,children:t,open:o=!1,onOpenChange:a}=e,s=M(ue,n),d=L(n),[m,x]=r.useState(null),[p,l]=r.useState(null),c=ee.useCallbackRef(a);return r.useEffect(()=>(s.open===!1&&c(!1),()=>c(!1)),[s.open,c]),u.jsxRuntimeExports.jsx(j.Root2,{...d,children:u.jsxRuntimeExports.jsx(Ce,{scope:n,open:o,onOpenChange:c,content:p,onContentChange:l,children:u.jsxRuntimeExports.jsx(gt,{scope:n,contentId:me.useId(),triggerId:me.useId(),trigger:m,onTriggerChange:x,children:t})})})};Ne.displayName=ue;var k="MenuSubTrigger",Fe=r.forwardRef((e,n)=>{const t=M(k,e.__scopeMenu),o=G(k,e.__scopeMenu),a=De(k,e.__scopeMenu),s=oe(k,e.__scopeMenu),d=r.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:x}=s,p={__scopeMenu:e.__scopeMenu},l=r.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);return r.useEffect(()=>l,[l]),r.useEffect(()=>{const c=m.current;return()=>{window.clearTimeout(c),x(null)}},[m,x]),u.jsxRuntimeExports.jsx(te,{asChild:!0,...p,children:u.jsxRuntimeExports.jsx(Se,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":a.contentId,"data-state":Ke(t.open),...e,ref:_.composeRefs(n,a.onTriggerChange),onClick:c=>{e.onClick?.(c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:R.composeEventHandlers(e.onPointerMove,N(c=>{s.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!t.open&&!d.current&&(s.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{t.onOpenChange(!0),l()},100))})),onPointerLeave:R.composeEventHandlers(e.onPointerLeave,N(c=>{l();const f=t.content?.getBoundingClientRect();if(f){const C=t.content?.dataset.side,v=C==="right",P=v?-5:5,T=f[v?"left":"right"],I=f[v?"right":"left"];s.onPointerGraceIntentChange({area:[{x:c.clientX+P,y:c.clientY},{x:T,y:f.top},{x:I,y:f.top},{x:I,y:f.bottom},{x:T,y:f.bottom}],side:C}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(c),c.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:R.composeEventHandlers(e.onKeyDown,c=>{const f=s.searchRef.current!=="";e.disabled||f&&c.key===" "||nt[o.dir].includes(c.key)&&(t.onOpenChange(!0),t.content?.focus(),c.preventDefault())})})})});Fe.displayName=k;var Le="MenuSubContent",Ge=r.forwardRef((e,n)=>{const t=Me(h,e.__scopeMenu),{forceMount:o=t.forceMount,...a}=e,s=M(h,e.__scopeMenu),d=G(h,e.__scopeMenu),m=De(Le,e.__scopeMenu),x=r.useRef(null),p=_.useComposedRefs(n,x);return u.jsxRuntimeExports.jsx(D.Provider,{scope:e.__scopeMenu,children:u.jsxRuntimeExports.jsx($.Presence,{present:o||s.open,children:u.jsxRuntimeExports.jsx(D.Slot,{scope:e.__scopeMenu,children:u.jsxRuntimeExports.jsx(re,{id:m.contentId,"aria-labelledby":m.triggerId,...a,ref:p,align:"start",side:d.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:l=>{d.isUsingKeyboardRef.current&&x.current?.focus(),l.preventDefault()},onCloseAutoFocus:l=>l.preventDefault(),onFocusOutside:R.composeEventHandlers(e.onFocusOutside,l=>{l.target!==m.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:R.composeEventHandlers(e.onEscapeKeyDown,l=>{d.onClose(),l.preventDefault()}),onKeyDown:R.composeEventHandlers(e.onKeyDown,l=>{const c=l.currentTarget.contains(l.target),f=ot[d.dir].includes(l.key);c&&f&&(s.onOpenChange(!1),m.trigger?.focus(),l.preventDefault())})})})})})});Ge.displayName=Le;function Ke(e){return e?"open":"closed"}function V(e){return e==="indeterminate"}function ae(e){return V(e)?"indeterminate":e?"checked":"unchecked"}function _t(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function jt(e,n){return e.map((t,o)=>e[(n+o)%e.length])}function St(e,n,t){const a=n.length>1&&Array.from(n).every(p=>p===n[0])?n[0]:n,s=t?e.indexOf(t):-1;let d=jt(e,Math.max(s,0));a.length===1&&(d=d.filter(p=>p!==t));const x=d.find(p=>p.toLowerCase().startsWith(a.toLowerCase()));return x!==t?x:void 0}function Pt(e,n){const{x:t,y:o}=e;let a=!1;for(let s=0,d=n.length-1;s<n.length;d=s++){const m=n[s],x=n[d],p=m.x,l=m.y,c=x.x,f=x.y;l>o!=f>o&&t<(c-p)*(o-l)/(f-l)+p&&(a=!a)}return a}function It(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return Pt(t,n)}function N(e){return n=>n.pointerType==="mouse"?e(n):void 0}var wt=he,bt=te,yt=ge,Tt=_e,Ot=se,At=je,kt=X,Dt=Pe,Nt=we,Ft=ye,Lt=Oe,Gt=Ae,Kt=ke,Ht=Ne,Ut=Fe,qt=Ge;exports.Anchor2=bt;exports.Arrow2=Kt;exports.CheckboxItem=Dt;exports.Content2=Tt;exports.Group=Ot;exports.Item2=kt;exports.ItemIndicator=Lt;exports.Label=At;exports.Portal=yt;exports.RadioGroup=Nt;exports.RadioItem=Ft;exports.Root3=wt;exports.Separator=Gt;exports.Sub=Ht;exports.SubContent=qt;exports.SubTrigger=Ut;exports.createMenuScope=ct;
@@ -0,0 +1 @@
1
+ "use strict";const A=require("react"),x=require("./index-BWaO7kQK.cjs"),M=require("./index-cwZN7ZY3.cjs"),f=require("./index-DnS_sBBe.cjs"),N=require("./index-IKJMQref.cjs"),m=require("./index-DQvx1rG_.cjs"),q=require("./index-D7hQvndv.cjs"),F=require("./index-WIv2ndLu.cjs"),d=require("./jsx-runtime-BB_1_6y_.cjs");function $(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const t=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,t.get?t:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const v=$(A);var g="Tabs",[w]=M.createContextScope(g,[f.createRovingFocusGroupScope]),R=f.createRovingFocusGroupScope(),[D,T]=w(g),j=v.forwardRef((e,n)=>{const{__scopeTabs:o,value:t,onValueChange:i,defaultValue:c,orientation:r="horizontal",dir:u,activationMode:p="automatic",...b}=e,s=q.useDirection(u),[a,l]=x.useControllableState({prop:t,onChange:i,defaultProp:c??"",caller:g});return d.jsxRuntimeExports.jsx(D,{scope:o,baseId:F.useId(),value:a,onValueChange:l,orientation:r,dir:s,activationMode:p,children:d.jsxRuntimeExports.jsx(m.Primitive.div,{dir:s,"data-orientation":r,...b,ref:n})})});j.displayName=g;var E="TabsList",C=v.forwardRef((e,n)=>{const{__scopeTabs:o,loop:t=!0,...i}=e,c=T(E,o),r=R(o);return d.jsxRuntimeExports.jsx(f.Root,{asChild:!0,...r,orientation:c.orientation,dir:c.dir,loop:t,children:d.jsxRuntimeExports.jsx(m.Primitive.div,{role:"tablist","aria-orientation":c.orientation,...i,ref:n})})});C.displayName=E;var h="TabsTrigger",I=v.forwardRef((e,n)=>{const{__scopeTabs:o,value:t,disabled:i=!1,...c}=e,r=T(h,o),u=R(o),p=P(r.baseId,t),b=S(r.baseId,t),s=t===r.value;return d.jsxRuntimeExports.jsx(f.Item,{asChild:!0,...u,focusable:!i,active:s,children:d.jsxRuntimeExports.jsx(m.Primitive.button,{type:"button",role:"tab","aria-selected":s,"aria-controls":b,"data-state":s?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:p,...c,ref:n,onMouseDown:x.composeEventHandlers(e.onMouseDown,a=>{!i&&a.button===0&&a.ctrlKey===!1?r.onValueChange(t):a.preventDefault()}),onKeyDown:x.composeEventHandlers(e.onKeyDown,a=>{[" ","Enter"].includes(a.key)&&r.onValueChange(t)}),onFocus:x.composeEventHandlers(e.onFocus,()=>{const a=r.activationMode!=="manual";!s&&!i&&a&&r.onValueChange(t)})})})});I.displayName=h;var _="TabsContent",y=v.forwardRef((e,n)=>{const{__scopeTabs:o,value:t,forceMount:i,children:c,...r}=e,u=T(_,o),p=P(u.baseId,t),b=S(u.baseId,t),s=t===u.value,a=v.useRef(s);return v.useEffect(()=>{const l=requestAnimationFrame(()=>a.current=!1);return()=>cancelAnimationFrame(l)},[]),d.jsxRuntimeExports.jsx(N.Presence,{present:i||s,children:({present:l})=>d.jsxRuntimeExports.jsx(m.Primitive.div,{"data-state":s?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":p,hidden:!l,id:b,tabIndex:0,...r,ref:n,style:{...e.style,animationDuration:a.current?"0s":void 0},children:l&&c})})});y.displayName=_;function P(e,n){return`${e}-trigger-${n}`}function S(e,n){return`${e}-content-${n}`}var G=j,V=C,O=I,L=y;exports.Content=L;exports.List=V;exports.Root2=G;exports.Trigger=O;
@@ -0,0 +1 @@
1
+ "use strict";const m=require("react"),v=require("./index-MQ0c3ZX_.cjs");function b(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const c=b(m);function g(e,n,{checkForDefaultPrevented:t=!0}={}){return function(o){if(e?.(o),t===!1||!o.defaultPrevented)return n?.(o)}}var R=c[" useInsertionEffect ".trim().toString()]||v.useLayoutEffect2;function E({prop:e,defaultProp:n,onChange:t=()=>{},caller:r}){const[o,l,i]=C({defaultProp:n,onChange:t}),u=e!==void 0,a=u?e:o;{const s=c.useRef(e!==void 0);c.useEffect(()=>{const f=s.current;f!==u&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),s.current=u},[u,r])}const d=c.useCallback(s=>{if(u){const f=S(s)?s(e):s;f!==e&&i.current?.(f)}else l(s)},[u,e,l,i]);return[a,d]}function C({defaultProp:e,onChange:n}){const[t,r]=c.useState(e),o=c.useRef(t),l=c.useRef(n);return R(()=>{l.current=n},[n]),c.useEffect(()=>{o.current!==t&&(l.current?.(t),o.current=t)},[t,o]),[t,r,l]}function S(e){return typeof e=="function"}exports.composeEventHandlers=g;exports.useControllableState=E;
@@ -0,0 +1,8 @@
1
+ import * as u from "react";
2
+ function t(r) {
3
+ const e = u.useRef({ value: r, previous: r });
4
+ return u.useMemo(() => (e.current.value !== r && (e.current.previous = e.current.value, e.current.value = r), e.current.previous), [r]);
5
+ }
6
+ export {
7
+ t as u
8
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";const B=require("react"),p=require("./index-BWaO7kQK.cjs"),R=require("./index-BKbK2GzY.cjs"),O=require("./index-cwZN7ZY3.cjs"),j=require("./index-WIv2ndLu.cjs"),V=require("./index-VIUqZjyP.cjs"),x=require("./index-DXQ-7kNJ.cjs"),z=require("./index-Ce3QBKyj.cjs"),C=require("./index-IKJMQref.cjs"),g=require("./index-DQvx1rG_.cjs"),i=require("./jsx-runtime-BB_1_6y_.cjs");function K(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const a=K(B);var v="Dialog",[y]=O.createContextScope(v),[U,u]=y(v),N=e=>{const{__scopeDialog:t,children:o,open:r,defaultOpen:s,onOpenChange:n,modal:l=!0}=e,c=a.useRef(null),f=a.useRef(null),[D,E]=p.useControllableState({prop:r,defaultProp:s??!1,onChange:n,caller:v});return i.jsxRuntimeExports.jsx(U,{scope:t,triggerRef:c,contentRef:f,contentId:j.useId(),titleId:j.useId(),descriptionId:j.useId(),open:D,onOpenChange:E,onOpenToggle:a.useCallback(()=>E(H=>!H),[E]),modal:l,children:o})};N.displayName=v;var I="DialogTrigger",b=a.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,s=u(I,o),n=R.useComposedRefs(t,s.triggerRef);return i.jsxRuntimeExports.jsx(g.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":h(s.open),...r,ref:n,onClick:p.composeEventHandlers(e.onClick,s.onOpenToggle)})});b.displayName=I;var _="DialogPortal",[Y,T]=y(_,{forceMount:void 0}),A=e=>{const{__scopeDialog:t,forceMount:o,children:r,container:s}=e,n=u(_,t);return i.jsxRuntimeExports.jsx(Y,{scope:t,forceMount:o,children:a.Children.map(r,l=>i.jsxRuntimeExports.jsx(C.Presence,{present:o||n.open,children:i.jsxRuntimeExports.jsx(z.Portal,{asChild:!0,container:s,children:l})}))})};A.displayName=_;var m="DialogOverlay",M=a.forwardRef((e,t)=>{const o=T(m,e.__scopeDialog),{forceMount:r=o.forceMount,...s}=e,n=u(m,e.__scopeDialog);return n.modal?i.jsxRuntimeExports.jsx(C.Presence,{present:r||n.open,children:i.jsxRuntimeExports.jsx(J,{...s,ref:t})}):null});M.displayName=m;var Z=R.createSlot("DialogOverlay.RemoveScroll"),J=a.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,s=u(m,o);return i.jsxRuntimeExports.jsx(x.ReactRemoveScroll,{as:Z,allowPinchZoom:!0,shards:[s.contentRef],children:i.jsxRuntimeExports.jsx(g.Primitive.div,{"data-state":h(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),d="DialogContent",w=a.forwardRef((e,t)=>{const o=T(d,e.__scopeDialog),{forceMount:r=o.forceMount,...s}=e,n=u(d,e.__scopeDialog);return i.jsxRuntimeExports.jsx(C.Presence,{present:r||n.open,children:n.modal?i.jsxRuntimeExports.jsx(Q,{...s,ref:t}):i.jsxRuntimeExports.jsx(X,{...s,ref:t})})});w.displayName=d;var Q=a.forwardRef((e,t)=>{const o=u(d,e.__scopeDialog),r=a.useRef(null),s=R.useComposedRefs(t,o.contentRef,r);return a.useEffect(()=>{const n=r.current;if(n)return x.hideOthers(n)},[]),i.jsxRuntimeExports.jsx(S,{...e,ref:s,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p.composeEventHandlers(e.onCloseAutoFocus,n=>{n.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:p.composeEventHandlers(e.onPointerDownOutside,n=>{const l=n.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&n.preventDefault()}),onFocusOutside:p.composeEventHandlers(e.onFocusOutside,n=>n.preventDefault())})}),X=a.forwardRef((e,t)=>{const o=u(d,e.__scopeDialog),r=a.useRef(!1),s=a.useRef(!1);return i.jsxRuntimeExports.jsx(S,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{e.onCloseAutoFocus?.(n),n.defaultPrevented||(r.current||o.triggerRef.current?.focus(),n.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:n=>{e.onInteractOutside?.(n),n.defaultPrevented||(r.current=!0,n.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const l=n.target;o.triggerRef.current?.contains(l)&&n.preventDefault(),n.detail.originalEvent.type==="focusin"&&s.current&&n.preventDefault()}})}),S=a.forwardRef((e,t)=>{const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:n,...l}=e,c=u(d,o),f=a.useRef(null),D=R.useComposedRefs(t,f);return x.useFocusGuards(),i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(x.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:n,children:i.jsxRuntimeExports.jsx(V.DismissableLayer,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":h(c.open),...l,ref:D,onDismiss:()=>c.onOpenChange(!1)})}),i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(ee,{titleId:c.titleId}),i.jsxRuntimeExports.jsx(oe,{contentRef:f,descriptionId:c.descriptionId})]})]})}),P="DialogTitle",F=a.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,s=u(P,o);return i.jsxRuntimeExports.jsx(g.Primitive.h2,{id:s.titleId,...r,ref:t})});F.displayName=P;var $="DialogDescription",q=a.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,s=u($,o);return i.jsxRuntimeExports.jsx(g.Primitive.p,{id:s.descriptionId,...r,ref:t})});q.displayName=$;var W="DialogClose",k=a.forwardRef((e,t)=>{const{__scopeDialog:o,...r}=e,s=u(W,o);return i.jsxRuntimeExports.jsx(g.Primitive.button,{type:"button",...r,ref:t,onClick:p.composeEventHandlers(e.onClick,()=>s.onOpenChange(!1))})});k.displayName=W;function h(e){return e?"open":"closed"}var G="DialogTitleWarning",[de,L]=O.createContext2(G,{contentName:d,titleName:P,docsSlug:"dialog"}),ee=({titleId:e})=>{const t=L(G),o=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
+
3
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
+
5
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{e&&(document.getElementById(e)||console.error(o))},[o,e]),null},te="DialogDescriptionWarning",oe=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${L(te).contentName}}.`;return a.useEffect(()=>{const s=e.current?.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ne=N,re=b,se=A,ie=M,ae=w,ce=F,le=q,ue=k;exports.Close=ue;exports.Content=ae;exports.Description=le;exports.Overlay=ie;exports.Portal=se;exports.Root=ne;exports.Title=ce;exports.Trigger=re;
@@ -0,0 +1,59 @@
1
+ import * as n from "react";
2
+ import { u as m } from "./index-CCKe-Mpx.js";
3
+ function w(e, r, { checkForDefaultPrevented: t = !0 } = {}) {
4
+ return function(o) {
5
+ if (e?.(o), t === !1 || !o.defaultPrevented)
6
+ return r?.(o);
7
+ };
8
+ }
9
+ var v = n[" useInsertionEffect ".trim().toString()] || m;
10
+ function S({
11
+ prop: e,
12
+ defaultProp: r,
13
+ onChange: t = () => {
14
+ },
15
+ caller: l
16
+ }) {
17
+ const [o, u, i] = R({
18
+ defaultProp: r,
19
+ onChange: t
20
+ }), c = e !== void 0, a = c ? e : o;
21
+ {
22
+ const s = n.useRef(e !== void 0);
23
+ n.useEffect(() => {
24
+ const f = s.current;
25
+ f !== c && console.warn(
26
+ `${l} is changing from ${f ? "controlled" : "uncontrolled"} to ${c ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
27
+ ), s.current = c;
28
+ }, [c, l]);
29
+ }
30
+ const d = n.useCallback(
31
+ (s) => {
32
+ if (c) {
33
+ const f = E(s) ? s(e) : s;
34
+ f !== e && i.current?.(f);
35
+ } else
36
+ u(s);
37
+ },
38
+ [c, e, u, i]
39
+ );
40
+ return [a, d];
41
+ }
42
+ function R({
43
+ defaultProp: e,
44
+ onChange: r
45
+ }) {
46
+ const [t, l] = n.useState(e), o = n.useRef(t), u = n.useRef(r);
47
+ return v(() => {
48
+ u.current = r;
49
+ }, [r]), n.useEffect(() => {
50
+ o.current !== t && (u.current?.(t), o.current = t);
51
+ }, [t, o]), [t, l, u];
52
+ }
53
+ function E(e) {
54
+ return typeof e == "function";
55
+ }
56
+ export {
57
+ w as c,
58
+ S as u
59
+ };