@spear-ai/spectral 1.3.41 → 1.3.43

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 (242) hide show
  1. package/dist/.js +117 -103
  2. package/dist/Accordion/AccordionBase.d.ts +8 -8
  3. package/dist/Alert/AlertBase.d.ts +14 -0
  4. package/dist/Alert/AlertBase.js +63 -0
  5. package/dist/Alert.d.ts +12 -0
  6. package/dist/Alert.js +97 -0
  7. package/dist/Badge/BadgeBase.d.ts +1 -1
  8. package/dist/Button.d.ts +2 -2
  9. package/dist/Checkbox/CheckboxBase.d.ts +5 -5
  10. package/dist/Dialog/DialogBase.d.ts +2 -2
  11. package/dist/Dialog.d.ts +1 -1
  12. package/dist/Drawer.d.ts +3 -2
  13. package/dist/Drawer.js +308 -298
  14. package/dist/Icons/AnnotationsIcon.d.ts +1 -1
  15. package/dist/Icons/AnnotationsIcon.js +8 -7
  16. package/dist/Icons/CalendarIcon.d.ts +1 -1
  17. package/dist/Icons/CalendarIcon.js +9 -8
  18. package/dist/Icons/CheckIcon.d.ts +3 -0
  19. package/dist/Icons/CheckIcon.js +29 -0
  20. package/dist/Icons/ClockIcon.d.ts +1 -1
  21. package/dist/Icons/ClockIcon.js +9 -8
  22. package/dist/Icons/CloseCircleIcon.d.ts +3 -0
  23. package/dist/Icons/CloseCircleIcon.js +29 -0
  24. package/dist/Icons/CloseIcon.d.ts +3 -0
  25. package/dist/Icons/CloseIcon.js +28 -0
  26. package/dist/Icons/DashboardIcon.d.ts +1 -1
  27. package/dist/Icons/DashboardIcon.js +9 -8
  28. package/dist/Icons/DeleteIcon.d.ts +1 -1
  29. package/dist/Icons/DeleteIcon.js +9 -8
  30. package/dist/Icons/DurationIcon.d.ts +1 -1
  31. package/dist/Icons/DurationIcon.js +9 -8
  32. package/dist/Icons/EraserIcon.d.ts +1 -1
  33. package/dist/Icons/EraserIcon.js +9 -8
  34. package/dist/Icons/EyeClosedIcon.d.ts +3 -0
  35. package/dist/Icons/EyeClosedIcon.js +32 -0
  36. package/dist/Icons/EyeClosedIcon2.d.ts +3 -0
  37. package/dist/Icons/EyeClosedIcon2.js +30 -0
  38. package/dist/Icons/EyeOpenIcon.d.ts +3 -0
  39. package/dist/Icons/EyeOpenIcon.js +28 -0
  40. package/dist/Icons/GoToFirstIcon.d.ts +1 -1
  41. package/dist/Icons/GoToFirstIcon.js +9 -8
  42. package/dist/Icons/GoToLastIcon.d.ts +1 -1
  43. package/dist/Icons/GoToLastIcon.js +9 -8
  44. package/dist/Icons/HarmonicCursorsIcon.d.ts +1 -1
  45. package/dist/Icons/HarmonicCursorsIcon.js +9 -8
  46. package/dist/Icons/IconBase.d.ts +3 -3
  47. package/dist/Icons/InfoIcon.d.ts +1 -1
  48. package/dist/Icons/InfoIcon.js +9 -8
  49. package/dist/Icons/LabelIcon.d.ts +1 -1
  50. package/dist/Icons/LabelIcon.js +8 -7
  51. package/dist/Icons/LassoIcon.d.ts +1 -1
  52. package/dist/Icons/LassoIcon.js +9 -8
  53. package/dist/Icons/LineToolIcon.d.ts +1 -1
  54. package/dist/Icons/LineToolIcon.js +9 -8
  55. package/dist/Icons/LiveViewIcon.d.ts +1 -1
  56. package/dist/Icons/LiveViewIcon.js +9 -8
  57. package/dist/Icons/LocationIcon.d.ts +1 -1
  58. package/dist/Icons/LocationIcon.js +9 -8
  59. package/dist/Icons/LogoutIcon.d.ts +1 -1
  60. package/dist/Icons/LogoutIcon.js +8 -7
  61. package/dist/Icons/MetadataIcon.d.ts +1 -1
  62. package/dist/Icons/MetadataIcon.js +8 -7
  63. package/dist/Icons/OntologyIcon.d.ts +1 -1
  64. package/dist/Icons/OntologyIcon.js +9 -8
  65. package/dist/Icons/PanelIcon.d.ts +1 -1
  66. package/dist/Icons/PanelIcon.js +9 -8
  67. package/dist/Icons/PlayIcon.d.ts +1 -1
  68. package/dist/Icons/PlayIcon.js +8 -7
  69. package/dist/Icons/PlusIcon.d.ts +1 -1
  70. package/dist/Icons/PlusIcon.js +8 -7
  71. package/dist/Icons/ResetIcon.d.ts +1 -1
  72. package/dist/Icons/ResetIcon.js +8 -7
  73. package/dist/Icons/ScissorsIcon.d.ts +1 -1
  74. package/dist/Icons/ScissorsIcon.js +9 -8
  75. package/dist/Icons/SettingsIcon.d.ts +1 -1
  76. package/dist/Icons/SettingsIcon.js +9 -8
  77. package/dist/Icons/TrashIcon.d.ts +1 -1
  78. package/dist/Icons/TrashIcon.js +8 -7
  79. package/dist/Icons/UndoIcon.d.ts +1 -1
  80. package/dist/Icons/UndoIcon.js +8 -7
  81. package/dist/Icons/UserIcon.d.ts +1 -1
  82. package/dist/Icons/UserIcon.js +8 -7
  83. package/dist/Icons/WarningIcon.d.ts +1 -1
  84. package/dist/Icons/WarningIcon.js +8 -7
  85. package/dist/Icons/ZoomAllIcon.d.ts +1 -1
  86. package/dist/Icons/ZoomAllIcon.js +9 -8
  87. package/dist/Icons/ZoomXIcon.d.ts +1 -1
  88. package/dist/Icons/ZoomXIcon.js +9 -8
  89. package/dist/Icons/ZoomYIcon.d.ts +1 -1
  90. package/dist/Icons/ZoomYIcon.js +9 -8
  91. package/dist/Icons/index.d.ts +6 -0
  92. package/dist/Icons.js +72 -60
  93. package/dist/Label.d.ts +2 -2
  94. package/dist/Popover.d.ts +1 -1
  95. package/dist/RadioButtonGroup/RadioButtonGroupBase.d.ts +5 -3
  96. package/dist/RadioButtonGroup/RadioButtonGroupBase.js +41 -39
  97. package/dist/RadioButtonGroup.d.ts +2 -2
  98. package/dist/RadioButtonGroup.js +6 -6
  99. package/dist/RadioGroup/RadioGroupBase.d.ts +7 -7
  100. package/dist/RadioGroup.d.ts +1 -1
  101. package/dist/Skeleton.d.ts +1 -1
  102. package/dist/Slider/SliderBase.d.ts +7 -7
  103. package/dist/SpectralProvider.d.ts +1 -1
  104. package/dist/Switch/SwitchBase.d.ts +4 -4
  105. package/dist/Switch.d.ts +2 -2
  106. package/dist/Toggle/ToggleBase.d.ts +5 -4
  107. package/dist/Toggle/ToggleBase.js +30 -28
  108. package/dist/Toggle.d.ts +2 -2
  109. package/dist/ToggleGroup/ToggleGroupBase.d.ts +2 -2
  110. package/dist/ToggleGroup.d.ts +3 -3
  111. package/dist/Tooltip/TooltipBase.d.ts +8 -8
  112. package/dist/Tooltip.d.ts +1 -1
  113. package/dist/Tooltip.js +1 -1
  114. package/dist/components/Accordion/AccordionBase.d.ts +8 -8
  115. package/dist/components/Alert/Alert.d.ts +12 -0
  116. package/dist/components/Alert/Alert.d.ts.map +1 -0
  117. package/dist/components/Alert/AlertBase.d.ts +14 -0
  118. package/dist/components/Alert/AlertBase.d.ts.map +1 -0
  119. package/dist/components/Badge/BadgeBase.d.ts +1 -1
  120. package/dist/components/Button/Button.d.ts +2 -2
  121. package/dist/components/Checkbox/CheckboxBase.d.ts +5 -5
  122. package/dist/components/Dialog/Dialog.d.ts +1 -1
  123. package/dist/components/Dialog/DialogBase.d.ts +2 -2
  124. package/dist/components/Drawer/Drawer.d.ts +3 -2
  125. package/dist/components/Drawer/Drawer.d.ts.map +1 -1
  126. package/dist/components/Icons/AnnotationsIcon.d.ts +1 -1
  127. package/dist/components/Icons/AnnotationsIcon.d.ts.map +1 -1
  128. package/dist/components/Icons/CalendarIcon.d.ts +1 -1
  129. package/dist/components/Icons/CalendarIcon.d.ts.map +1 -1
  130. package/dist/components/Icons/CheckIcon.d.ts +3 -0
  131. package/dist/components/Icons/CheckIcon.d.ts.map +1 -0
  132. package/dist/components/Icons/ClockIcon.d.ts +1 -1
  133. package/dist/components/Icons/ClockIcon.d.ts.map +1 -1
  134. package/dist/components/Icons/CloseCircleIcon.d.ts +3 -0
  135. package/dist/components/Icons/CloseCircleIcon.d.ts.map +1 -0
  136. package/dist/components/Icons/CloseIcon.d.ts +3 -0
  137. package/dist/components/Icons/CloseIcon.d.ts.map +1 -0
  138. package/dist/components/Icons/DashboardIcon.d.ts +1 -1
  139. package/dist/components/Icons/DashboardIcon.d.ts.map +1 -1
  140. package/dist/components/Icons/DeleteIcon.d.ts +1 -1
  141. package/dist/components/Icons/DeleteIcon.d.ts.map +1 -1
  142. package/dist/components/Icons/DurationIcon.d.ts +1 -1
  143. package/dist/components/Icons/DurationIcon.d.ts.map +1 -1
  144. package/dist/components/Icons/EraserIcon.d.ts +1 -1
  145. package/dist/components/Icons/EraserIcon.d.ts.map +1 -1
  146. package/dist/components/Icons/EyeClosedIcon.d.ts +3 -0
  147. package/dist/components/Icons/EyeClosedIcon.d.ts.map +1 -0
  148. package/dist/components/Icons/EyeClosedIcon2.d.ts +3 -0
  149. package/dist/components/Icons/EyeClosedIcon2.d.ts.map +1 -0
  150. package/dist/components/Icons/EyeOpenIcon.d.ts +3 -0
  151. package/dist/components/Icons/EyeOpenIcon.d.ts.map +1 -0
  152. package/dist/components/Icons/GoToFirstIcon.d.ts +1 -1
  153. package/dist/components/Icons/GoToFirstIcon.d.ts.map +1 -1
  154. package/dist/components/Icons/GoToLastIcon.d.ts +1 -1
  155. package/dist/components/Icons/GoToLastIcon.d.ts.map +1 -1
  156. package/dist/components/Icons/HarmonicCursorsIcon.d.ts +1 -1
  157. package/dist/components/Icons/HarmonicCursorsIcon.d.ts.map +1 -1
  158. package/dist/components/Icons/IconBase.d.ts +3 -3
  159. package/dist/components/Icons/InfoIcon.d.ts +1 -1
  160. package/dist/components/Icons/InfoIcon.d.ts.map +1 -1
  161. package/dist/components/Icons/LabelIcon.d.ts +1 -1
  162. package/dist/components/Icons/LabelIcon.d.ts.map +1 -1
  163. package/dist/components/Icons/LassoIcon.d.ts +1 -1
  164. package/dist/components/Icons/LassoIcon.d.ts.map +1 -1
  165. package/dist/components/Icons/LineToolIcon.d.ts +1 -1
  166. package/dist/components/Icons/LineToolIcon.d.ts.map +1 -1
  167. package/dist/components/Icons/LiveViewIcon.d.ts +1 -1
  168. package/dist/components/Icons/LiveViewIcon.d.ts.map +1 -1
  169. package/dist/components/Icons/LocationIcon.d.ts +1 -1
  170. package/dist/components/Icons/LocationIcon.d.ts.map +1 -1
  171. package/dist/components/Icons/LogoutIcon.d.ts +1 -1
  172. package/dist/components/Icons/LogoutIcon.d.ts.map +1 -1
  173. package/dist/components/Icons/MetadataIcon.d.ts +1 -1
  174. package/dist/components/Icons/MetadataIcon.d.ts.map +1 -1
  175. package/dist/components/Icons/OntologyIcon.d.ts +1 -1
  176. package/dist/components/Icons/OntologyIcon.d.ts.map +1 -1
  177. package/dist/components/Icons/PanelIcon.d.ts +1 -1
  178. package/dist/components/Icons/PanelIcon.d.ts.map +1 -1
  179. package/dist/components/Icons/PlayIcon.d.ts +1 -1
  180. package/dist/components/Icons/PlayIcon.d.ts.map +1 -1
  181. package/dist/components/Icons/PlusIcon.d.ts +1 -1
  182. package/dist/components/Icons/PlusIcon.d.ts.map +1 -1
  183. package/dist/components/Icons/ResetIcon.d.ts +1 -1
  184. package/dist/components/Icons/ResetIcon.d.ts.map +1 -1
  185. package/dist/components/Icons/ScissorsIcon.d.ts +1 -1
  186. package/dist/components/Icons/ScissorsIcon.d.ts.map +1 -1
  187. package/dist/components/Icons/SettingsIcon.d.ts +1 -1
  188. package/dist/components/Icons/SettingsIcon.d.ts.map +1 -1
  189. package/dist/components/Icons/TrashIcon.d.ts +1 -1
  190. package/dist/components/Icons/TrashIcon.d.ts.map +1 -1
  191. package/dist/components/Icons/UndoIcon.d.ts +1 -1
  192. package/dist/components/Icons/UndoIcon.d.ts.map +1 -1
  193. package/dist/components/Icons/UserIcon.d.ts +1 -1
  194. package/dist/components/Icons/UserIcon.d.ts.map +1 -1
  195. package/dist/components/Icons/WarningIcon.d.ts +1 -1
  196. package/dist/components/Icons/WarningIcon.d.ts.map +1 -1
  197. package/dist/components/Icons/ZoomAllIcon.d.ts +1 -1
  198. package/dist/components/Icons/ZoomAllIcon.d.ts.map +1 -1
  199. package/dist/components/Icons/ZoomXIcon.d.ts +1 -1
  200. package/dist/components/Icons/ZoomXIcon.d.ts.map +1 -1
  201. package/dist/components/Icons/ZoomYIcon.d.ts +1 -1
  202. package/dist/components/Icons/ZoomYIcon.d.ts.map +1 -1
  203. package/dist/components/Icons/iconTypes.d.ts +3 -3
  204. package/dist/components/Icons/iconTypes.d.ts.map +1 -1
  205. package/dist/components/Icons/index.d.ts +6 -0
  206. package/dist/components/Icons/index.d.ts.map +1 -1
  207. package/dist/components/Label/Label.d.ts +2 -2
  208. package/dist/components/Popover/Popover.d.ts +1 -1
  209. package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts +2 -2
  210. package/dist/components/RadioButtonGroup/RadioButtonGroup.d.ts.map +1 -1
  211. package/dist/components/RadioButtonGroup/RadioButtonGroupBase.d.ts +5 -3
  212. package/dist/components/RadioButtonGroup/RadioButtonGroupBase.d.ts.map +1 -1
  213. package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
  214. package/dist/components/RadioGroup/RadioGroupBase.d.ts +7 -7
  215. package/dist/components/Skeleton/Skeleton.d.ts +1 -1
  216. package/dist/components/Slider/SliderBase.d.ts +7 -7
  217. package/dist/components/SpectralProvider/SpectralProvider.d.ts +1 -1
  218. package/dist/components/Switch/Switch.d.ts +2 -2
  219. package/dist/components/Switch/SwitchBase.d.ts +4 -4
  220. package/dist/components/Toggle/Toggle.d.ts +2 -2
  221. package/dist/components/Toggle/ToggleBase.d.ts +5 -4
  222. package/dist/components/Toggle/ToggleBase.d.ts.map +1 -1
  223. package/dist/components/ToggleGroup/ToggleGroup.d.ts +3 -3
  224. package/dist/components/ToggleGroup/ToggleGroupBase.d.ts +2 -2
  225. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  226. package/dist/components/Tooltip/TooltipBase.d.ts +8 -8
  227. package/dist/features/HorizonColorGrid/HorizonColorGrid.d.ts +1 -1
  228. package/dist/features/LabelingToolbar/LabelingToolbar.d.ts +1 -1
  229. package/dist/features/LabelingTools.js +14 -8
  230. package/dist/features/SensorMetadata.js +14 -8
  231. package/dist/features/SettingsPopover/SettingsPopover.d.ts.map +1 -1
  232. package/dist/features/SettingsPopover.js +26 -19
  233. package/dist/hooks/useAccordionAutoScroll.d.ts +1 -1
  234. package/dist/hooks/useOutsideClick.d.ts +1 -1
  235. package/dist/index.d.ts +1 -0
  236. package/dist/index.d.ts.map +1 -1
  237. package/dist/primitives/label.d.ts +2 -2
  238. package/dist/primitives/slot.d.ts +3 -3
  239. package/dist/styles/base-colors.css +19 -9
  240. package/dist/styles/main.css +1 -1
  241. package/dist/utils/refs.d.ts +1 -1
  242. package/package.json +2 -1
package/dist/Drawer.js CHANGED
@@ -1,26 +1,27 @@
1
1
  "use client";
2
2
  import "./styles/main.css";
3
- import { jsx as S, jsxs as gt, Fragment as te } from "react/jsx-runtime";
3
+ import { jsx as E, jsxs as gt, Fragment as te } from "react/jsx-runtime";
4
+ import { SpectralProvider as je } from "./SpectralProvider.js";
4
5
  import * as O from "react";
5
- import i, { useMemo as je, useLayoutEffect as qe, useEffect as Xe } from "react";
6
- import { c as Ge, P as kt, g as Ke, e as wt, d as Ht, f as ht, D as Je, i as Ze, u as Qe, a as Pt, b as tn } from "./index-B7LSgz_k.js";
7
- import { R as en, h as nn, u as rn, F as an } from "./index-gg2zpNk0.js";
8
- var Tt = "Dialog", [oe, er] = Ge(Tt), [on, q] = oe(Tt), ie = (t) => {
6
+ import i, { useMemo as qe, useLayoutEffect as Xe, useEffect as Ge } from "react";
7
+ import { c as Ke, P as kt, g as Je, e as wt, d as Ht, f as ht, D as Ze, i as Qe, u as tn, a as Pt, b as en } from "./index-B7LSgz_k.js";
8
+ import { R as nn, h as rn, u as an, F as on } from "./index-gg2zpNk0.js";
9
+ var Tt = "Dialog", [oe, rr] = Ke(Tt), [sn, q] = oe(Tt), ie = (t) => {
9
10
  const {
10
11
  __scopeDialog: n,
11
12
  children: e,
12
13
  open: a,
13
14
  defaultOpen: o,
14
15
  onOpenChange: r,
15
- modal: l = !0
16
- } = t, s = O.useRef(null), v = O.useRef(null), [D, g] = Qe({
16
+ modal: u = !0
17
+ } = t, s = O.useRef(null), v = O.useRef(null), [D, f] = tn({
17
18
  prop: a,
18
19
  defaultProp: o ?? !1,
19
20
  onChange: r,
20
21
  caller: Tt
21
22
  });
22
- return /* @__PURE__ */ S(
23
- on,
23
+ return /* @__PURE__ */ E(
24
+ sn,
24
25
  {
25
26
  scope: n,
26
27
  triggerRef: s,
@@ -29,9 +30,9 @@ var Tt = "Dialog", [oe, er] = Ge(Tt), [on, q] = oe(Tt), ie = (t) => {
29
30
  titleId: Pt(),
30
31
  descriptionId: Pt(),
31
32
  open: D,
32
- onOpenChange: g,
33
- onOpenToggle: O.useCallback(() => g((m) => !m), [g]),
34
- modal: l,
33
+ onOpenChange: f,
34
+ onOpenToggle: O.useCallback(() => f((g) => !g), [f]),
35
+ modal: u,
35
36
  children: e
36
37
  }
37
38
  );
@@ -40,7 +41,7 @@ ie.displayName = Tt;
40
41
  var se = "DialogTrigger", le = O.forwardRef(
41
42
  (t, n) => {
42
43
  const { __scopeDialog: e, ...a } = t, o = q(se, e), r = Ht(n, o.triggerRef);
43
- return /* @__PURE__ */ S(
44
+ return /* @__PURE__ */ E(
44
45
  wt.button,
45
46
  {
46
47
  type: "button",
@@ -56,27 +57,27 @@ var se = "DialogTrigger", le = O.forwardRef(
56
57
  }
57
58
  );
58
59
  le.displayName = se;
59
- var Bt = "DialogPortal", [sn, ue] = oe(Bt, {
60
+ var Bt = "DialogPortal", [ln, ue] = oe(Bt, {
60
61
  forceMount: void 0
61
62
  }), ce = (t) => {
62
63
  const { __scopeDialog: n, forceMount: e, children: a, container: o } = t, r = q(Bt, n);
63
- return /* @__PURE__ */ S(sn, { scope: n, forceMount: e, children: O.Children.map(a, (l) => /* @__PURE__ */ S(kt, { present: e || r.open, children: /* @__PURE__ */ S(tn, { asChild: !0, container: o, children: l }) })) });
64
+ return /* @__PURE__ */ E(ln, { scope: n, forceMount: e, children: O.Children.map(a, (u) => /* @__PURE__ */ E(kt, { present: e || r.open, children: /* @__PURE__ */ E(en, { asChild: !0, container: o, children: u }) })) });
64
65
  };
65
66
  ce.displayName = Bt;
66
- var St = "DialogOverlay", de = O.forwardRef(
67
+ var Et = "DialogOverlay", de = O.forwardRef(
67
68
  (t, n) => {
68
- const e = ue(St, t.__scopeDialog), { forceMount: a = e.forceMount, ...o } = t, r = q(St, t.__scopeDialog);
69
- return r.modal ? /* @__PURE__ */ S(kt, { present: a || r.open, children: /* @__PURE__ */ S(un, { ...o, ref: n }) }) : null;
69
+ const e = ue(Et, t.__scopeDialog), { forceMount: a = e.forceMount, ...o } = t, r = q(Et, t.__scopeDialog);
70
+ return r.modal ? /* @__PURE__ */ E(kt, { present: a || r.open, children: /* @__PURE__ */ E(cn, { ...o, ref: n }) }) : null;
70
71
  }
71
72
  );
72
- de.displayName = St;
73
- var ln = Ke("DialogOverlay.RemoveScroll"), un = O.forwardRef(
73
+ de.displayName = Et;
74
+ var un = Je("DialogOverlay.RemoveScroll"), cn = O.forwardRef(
74
75
  (t, n) => {
75
- const { __scopeDialog: e, ...a } = t, o = q(St, e);
76
+ const { __scopeDialog: e, ...a } = t, o = q(Et, e);
76
77
  return (
77
78
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
78
79
  // ie. when `Overlay` and `Content` are siblings
79
- /* @__PURE__ */ S(en, { as: ln, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ S(
80
+ /* @__PURE__ */ E(nn, { as: un, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ E(
80
81
  wt.div,
81
82
  {
82
83
  "data-state": Ut(o.open),
@@ -90,17 +91,17 @@ var ln = Ke("DialogOverlay.RemoveScroll"), un = O.forwardRef(
90
91
  ), at = "DialogContent", fe = O.forwardRef(
91
92
  (t, n) => {
92
93
  const e = ue(at, t.__scopeDialog), { forceMount: a = e.forceMount, ...o } = t, r = q(at, t.__scopeDialog);
93
- return /* @__PURE__ */ S(kt, { present: a || r.open, children: r.modal ? /* @__PURE__ */ S(cn, { ...o, ref: n }) : /* @__PURE__ */ S(dn, { ...o, ref: n }) });
94
+ return /* @__PURE__ */ E(kt, { present: a || r.open, children: r.modal ? /* @__PURE__ */ E(dn, { ...o, ref: n }) : /* @__PURE__ */ E(fn, { ...o, ref: n }) });
94
95
  }
95
96
  );
96
97
  fe.displayName = at;
97
- var cn = O.forwardRef(
98
+ var dn = O.forwardRef(
98
99
  (t, n) => {
99
100
  const e = q(at, t.__scopeDialog), a = O.useRef(null), o = Ht(n, e.contentRef, a);
100
101
  return O.useEffect(() => {
101
102
  const r = a.current;
102
- if (r) return nn(r);
103
- }, []), /* @__PURE__ */ S(
103
+ if (r) return rn(r);
104
+ }, []), /* @__PURE__ */ E(
104
105
  pe,
105
106
  {
106
107
  ...t,
@@ -111,8 +112,8 @@ var cn = O.forwardRef(
111
112
  r.preventDefault(), e.triggerRef.current?.focus();
112
113
  }),
113
114
  onPointerDownOutside: ht(t.onPointerDownOutside, (r) => {
114
- const l = r.detail.originalEvent, s = l.button === 0 && l.ctrlKey === !0;
115
- (l.button === 2 || s) && r.preventDefault();
115
+ const u = r.detail.originalEvent, s = u.button === 0 && u.ctrlKey === !0;
116
+ (u.button === 2 || s) && r.preventDefault();
116
117
  }),
117
118
  onFocusOutside: ht(
118
119
  t.onFocusOutside,
@@ -121,10 +122,10 @@ var cn = O.forwardRef(
121
122
  }
122
123
  );
123
124
  }
124
- ), dn = O.forwardRef(
125
+ ), fn = O.forwardRef(
125
126
  (t, n) => {
126
127
  const e = q(at, t.__scopeDialog), a = O.useRef(!1), o = O.useRef(!1);
127
- return /* @__PURE__ */ S(
128
+ return /* @__PURE__ */ E(
128
129
  pe,
129
130
  {
130
131
  ...t,
@@ -136,33 +137,33 @@ var cn = O.forwardRef(
136
137
  },
137
138
  onInteractOutside: (r) => {
138
139
  t.onInteractOutside?.(r), r.defaultPrevented || (a.current = !0, r.detail.originalEvent.type === "pointerdown" && (o.current = !0));
139
- const l = r.target;
140
- e.triggerRef.current?.contains(l) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && o.current && r.preventDefault();
140
+ const u = r.target;
141
+ e.triggerRef.current?.contains(u) && r.preventDefault(), r.detail.originalEvent.type === "focusin" && o.current && r.preventDefault();
141
142
  }
142
143
  }
143
144
  );
144
145
  }
145
146
  ), pe = O.forwardRef(
146
147
  (t, n) => {
147
- const { __scopeDialog: e, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: r, ...l } = t, s = q(at, e), v = O.useRef(null), D = Ht(n, v);
148
- return rn(), /* @__PURE__ */ gt(te, { children: [
149
- /* @__PURE__ */ S(
150
- an,
148
+ const { __scopeDialog: e, trapFocus: a, onOpenAutoFocus: o, onCloseAutoFocus: r, ...u } = t, s = q(at, e), v = O.useRef(null), D = Ht(n, v);
149
+ return an(), /* @__PURE__ */ gt(te, { children: [
150
+ /* @__PURE__ */ E(
151
+ on,
151
152
  {
152
153
  asChild: !0,
153
154
  loop: !0,
154
155
  trapped: a,
155
156
  onMountAutoFocus: o,
156
157
  onUnmountAutoFocus: r,
157
- children: /* @__PURE__ */ S(
158
- Je,
158
+ children: /* @__PURE__ */ E(
159
+ Ze,
159
160
  {
160
161
  role: "dialog",
161
162
  id: s.contentId,
162
163
  "aria-describedby": s.descriptionId,
163
164
  "aria-labelledby": s.titleId,
164
165
  "data-state": Ut(s.open),
165
- ...l,
166
+ ...u,
166
167
  ref: D,
167
168
  onDismiss: () => s.onOpenChange(!1)
168
169
  }
@@ -170,29 +171,29 @@ var cn = O.forwardRef(
170
171
  }
171
172
  ),
172
173
  /* @__PURE__ */ gt(te, { children: [
173
- /* @__PURE__ */ S(fn, { titleId: s.titleId }),
174
- /* @__PURE__ */ S(mn, { contentRef: v, descriptionId: s.descriptionId })
174
+ /* @__PURE__ */ E(pn, { titleId: s.titleId }),
175
+ /* @__PURE__ */ E(gn, { contentRef: v, descriptionId: s.descriptionId })
175
176
  ] })
176
177
  ] });
177
178
  }
178
179
  ), Wt = "DialogTitle", me = O.forwardRef(
179
180
  (t, n) => {
180
181
  const { __scopeDialog: e, ...a } = t, o = q(Wt, e);
181
- return /* @__PURE__ */ S(wt.h2, { id: o.titleId, ...a, ref: n });
182
+ return /* @__PURE__ */ E(wt.h2, { id: o.titleId, ...a, ref: n });
182
183
  }
183
184
  );
184
185
  me.displayName = Wt;
185
186
  var ge = "DialogDescription", he = O.forwardRef(
186
187
  (t, n) => {
187
188
  const { __scopeDialog: e, ...a } = t, o = q(ge, e);
188
- return /* @__PURE__ */ S(wt.p, { id: o.descriptionId, ...a, ref: n });
189
+ return /* @__PURE__ */ E(wt.p, { id: o.descriptionId, ...a, ref: n });
189
190
  }
190
191
  );
191
192
  he.displayName = ge;
192
193
  var we = "DialogClose", ve = O.forwardRef(
193
194
  (t, n) => {
194
195
  const { __scopeDialog: e, ...a } = t, o = q(we, e);
195
- return /* @__PURE__ */ S(
196
+ return /* @__PURE__ */ E(
196
197
  wt.button,
197
198
  {
198
199
  type: "button",
@@ -207,11 +208,11 @@ ve.displayName = we;
207
208
  function Ut(t) {
208
209
  return t ? "open" : "closed";
209
210
  }
210
- var ye = "DialogTitleWarning", [nr, be] = Ze(ye, {
211
+ var ye = "DialogTitleWarning", [ar, be] = Qe(ye, {
211
212
  contentName: at,
212
213
  titleName: Wt,
213
214
  docsSlug: "dialog"
214
- }), fn = ({ titleId: t }) => {
215
+ }), pn = ({ titleId: t }) => {
215
216
  const n = be(ye), e = `\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
216
217
 
217
218
  If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -220,13 +221,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/${n.do
220
221
  return O.useEffect(() => {
221
222
  t && (document.getElementById(t) || console.error(e));
222
223
  }, [e, t]), null;
223
- }, pn = "DialogDescriptionWarning", mn = ({ contentRef: t, descriptionId: n }) => {
224
- const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${be(pn).contentName}}.`;
224
+ }, mn = "DialogDescriptionWarning", gn = ({ contentRef: t, descriptionId: n }) => {
225
+ const a = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${be(mn).contentName}}.`;
225
226
  return O.useEffect(() => {
226
227
  const o = t.current?.getAttribute("aria-describedby");
227
228
  n && o && (document.getElementById(n) || console.warn(a));
228
229
  }, [a, t, n]), null;
229
- }, gn = ie, hn = le, wn = ce, vn = de, yn = fe, bn = me, Dn = he, Rn = ve;
230
+ }, hn = ie, wn = le, vn = ce, yn = de, bn = fe, Dn = me, Rn = he, Sn = ve;
230
231
  function En(t) {
231
232
  if (typeof document > "u") return;
232
233
  let n = document.head || document.getElementsByTagName("head")[0], e = document.createElement("style");
@@ -288,31 +289,31 @@ const De = i.createContext({
288
289
  En(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
289
290
  [data-state=closed]
290
291
  ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);
291
- function Sn() {
292
+ function Tn() {
292
293
  const t = navigator.userAgent;
293
294
  return typeof window < "u" && (/Firefox/.test(t) && /Mobile/.test(t) || // Android Firefox
294
295
  /FxiOS/.test(t));
295
296
  }
296
- function Tn() {
297
+ function xn() {
297
298
  return Vt(/^Mac/);
298
299
  }
299
- function xn() {
300
+ function Cn() {
300
301
  return Vt(/^iPhone/);
301
302
  }
302
303
  function ee() {
303
304
  return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
304
305
  }
305
- function Cn() {
306
+ function On() {
306
307
  return Vt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
307
- Tn() && navigator.maxTouchPoints > 1;
308
+ xn() && navigator.maxTouchPoints > 1;
308
309
  }
309
310
  function Re() {
310
- return xn() || Cn();
311
+ return Cn() || On();
311
312
  }
312
313
  function Vt(t) {
313
314
  return typeof window < "u" && window.navigator != null ? t.test(window.navigator.platform) : void 0;
314
315
  }
315
- const On = 24, _n = typeof window < "u" ? qe : Xe;
316
+ const _n = 24, An = typeof window < "u" ? Xe : Ge;
316
317
  function ne(...t) {
317
318
  return (...n) => {
318
319
  for (let e of t)
@@ -324,12 +325,12 @@ function re(t) {
324
325
  let n = window.getComputedStyle(t);
325
326
  return /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
326
327
  }
327
- function Ee(t) {
328
+ function Se(t) {
328
329
  for (re(t) && (t = t.parentElement); t && !re(t); )
329
330
  t = t.parentElement;
330
331
  return t || document.scrollingElement || document.documentElement;
331
332
  }
332
- const An = /* @__PURE__ */ new Set([
333
+ const Pn = /* @__PURE__ */ new Set([
333
334
  "checkbox",
334
335
  "radio",
335
336
  "range",
@@ -341,34 +342,34 @@ const An = /* @__PURE__ */ new Set([
341
342
  "reset"
342
343
  ]);
343
344
  let Rt = 0, $t;
344
- function Pn(t = {}) {
345
+ function Nn(t = {}) {
345
346
  let { isDisabled: n } = t;
346
- _n(() => {
347
+ An(() => {
347
348
  if (!n)
348
- return Rt++, Rt === 1 && Re() && ($t = Nn()), () => {
349
+ return Rt++, Rt === 1 && Re() && ($t = $n()), () => {
349
350
  Rt--, Rt === 0 && $t?.();
350
351
  };
351
352
  }, [
352
353
  n
353
354
  ]);
354
355
  }
355
- function Nn() {
356
- let t, n = 0, e = (m) => {
357
- t = Ee(m.target), !(t === document.documentElement && t === document.body) && (n = m.changedTouches[0].pageY);
358
- }, a = (m) => {
356
+ function $n() {
357
+ let t, n = 0, e = (g) => {
358
+ t = Se(g.target), !(t === document.documentElement && t === document.body) && (n = g.changedTouches[0].pageY);
359
+ }, a = (g) => {
359
360
  if (!t || t === document.documentElement || t === document.body) {
360
- m.preventDefault();
361
+ g.preventDefault();
361
362
  return;
362
363
  }
363
- let h = m.changedTouches[0].pageY, W = t.scrollTop, H = t.scrollHeight - t.clientHeight;
364
- H !== 0 && ((W <= 0 && h > n || W >= H && h < n) && m.preventDefault(), n = h);
365
- }, o = (m) => {
366
- let h = m.target;
367
- Lt(h) && h !== document.activeElement && (m.preventDefault(), h.style.transform = "translateY(-2000px)", h.focus(), requestAnimationFrame(() => {
364
+ let h = g.changedTouches[0].pageY, W = t.scrollTop, H = t.scrollHeight - t.clientHeight;
365
+ H !== 0 && ((W <= 0 && h > n || W >= H && h < n) && g.preventDefault(), n = h);
366
+ }, o = (g) => {
367
+ let h = g.target;
368
+ Lt(h) && h !== document.activeElement && (g.preventDefault(), h.style.transform = "translateY(-2000px)", h.focus(), requestAnimationFrame(() => {
368
369
  h.style.transform = "";
369
370
  }));
370
- }, r = (m) => {
371
- let h = m.target;
371
+ }, r = (g) => {
372
+ let h = g.target;
372
373
  Lt(h) && (h.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
373
374
  h.style.transform = "", Nt && (Nt.height < window.innerHeight ? requestAnimationFrame(() => {
374
375
  ae(h);
@@ -376,11 +377,11 @@ function Nn() {
376
377
  once: !0
377
378
  }));
378
379
  }));
379
- }, l = () => {
380
+ }, u = () => {
380
381
  window.scrollTo(0, 0);
381
- }, s = window.pageXOffset, v = window.pageYOffset, D = ne($n(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
382
+ }, s = window.pageXOffset, v = window.pageYOffset, D = ne(Mn(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
382
383
  window.scrollTo(0, 0);
383
- let g = ne(pt(document, "touchstart", e, {
384
+ let f = ne(pt(document, "touchstart", e, {
384
385
  passive: !1,
385
386
  capture: !0
386
387
  }), pt(document, "touchmove", a, {
@@ -389,12 +390,12 @@ function Nn() {
389
390
  }), pt(document, "touchend", o, {
390
391
  passive: !1,
391
392
  capture: !0
392
- }), pt(document, "focus", r, !0), pt(window, "scroll", l));
393
+ }), pt(document, "focus", r, !0), pt(window, "scroll", u));
393
394
  return () => {
394
- D(), g(), window.scrollTo(s, v);
395
+ D(), f(), window.scrollTo(s, v);
395
396
  };
396
397
  }
397
- function $n(t, n, e) {
398
+ function Mn(t, n, e) {
398
399
  let a = t.style[n];
399
400
  return t.style[n] = e, () => {
400
401
  t.style[n] = a;
@@ -408,26 +409,26 @@ function pt(t, n, e, a) {
408
409
  function ae(t) {
409
410
  let n = document.scrollingElement || document.documentElement;
410
411
  for (; t && t !== n; ) {
411
- let e = Ee(t);
412
+ let e = Se(t);
412
413
  if (e !== document.documentElement && e !== document.body && e !== t) {
413
414
  let a = e.getBoundingClientRect().top, o = t.getBoundingClientRect().top, r = t.getBoundingClientRect().bottom;
414
- const l = e.getBoundingClientRect().bottom + On;
415
- r > l && (e.scrollTop += o - a);
415
+ const u = e.getBoundingClientRect().bottom + _n;
416
+ r > u && (e.scrollTop += o - a);
416
417
  }
417
418
  t = e.parentElement;
418
419
  }
419
420
  }
420
421
  function Lt(t) {
421
- return t instanceof HTMLInputElement && !An.has(t.type) || t instanceof HTMLTextAreaElement || t instanceof HTMLElement && t.isContentEditable;
422
+ return t instanceof HTMLInputElement && !Pn.has(t.type) || t instanceof HTMLTextAreaElement || t instanceof HTMLElement && t.isContentEditable;
422
423
  }
423
- function Mn(t, n) {
424
+ function In(t, n) {
424
425
  typeof t == "function" ? t(n) : t != null && (t.current = n);
425
426
  }
426
- function In(...t) {
427
- return (n) => t.forEach((e) => Mn(e, n));
427
+ function Ln(...t) {
428
+ return (n) => t.forEach((e) => In(e, n));
428
429
  }
429
- function Se(...t) {
430
- return O.useCallback(In(...t), t);
430
+ function Ee(...t) {
431
+ return O.useCallback(Ln(...t), t);
431
432
  }
432
433
  const Te = /* @__PURE__ */ new WeakMap();
433
434
  function P(t, n, e = !1) {
@@ -441,7 +442,7 @@ function P(t, n, e = !1) {
441
442
  a[o] = t.style[o], t.style[o] = r;
442
443
  }), !e && Te.set(t, a);
443
444
  }
444
- function Ln(t, n) {
445
+ function Fn(t, n) {
445
446
  if (!t || !(t instanceof HTMLElement)) return;
446
447
  let e = Te.get(t);
447
448
  e && (t.style[n] = e[n]);
@@ -458,7 +459,7 @@ const A = (t) => {
458
459
  return t;
459
460
  }
460
461
  };
461
- function Et(t, n) {
462
+ function St(t, n) {
462
463
  if (!t)
463
464
  return null;
464
465
  const e = window.getComputedStyle(t), a = (
@@ -468,7 +469,7 @@ function Et(t, n) {
468
469
  let o = a.match(/^matrix3d\((.+)\)$/);
469
470
  return o ? parseFloat(o[1].split(", ")[A(n) ? 13 : 12]) : (o = a.match(/^matrix\((.+)\)$/), o ? parseFloat(o[1].split(", ")[A(n) ? 5 : 4]) : null);
470
471
  }
471
- function Fn(t) {
472
+ function kn(t) {
472
473
  return 8 * (Math.log(t + 1) - 2);
473
474
  }
474
475
  function Mt(t, n) {
@@ -479,7 +480,7 @@ function Mt(t, n) {
479
480
  t.style.cssText = e;
480
481
  };
481
482
  }
482
- function kn(...t) {
483
+ function Hn(...t) {
483
484
  return (...n) => {
484
485
  for (const e of t)
485
486
  typeof e == "function" && e(...n);
@@ -493,14 +494,14 @@ const C = {
493
494
  0,
494
495
  1
495
496
  ]
496
- }, xe = 0.4, Hn = 0.25, Bn = 100, Ce = 8, rt = 16, Ft = 26, It = "vaul-dragging";
497
+ }, xe = 0.4, Bn = 0.25, Wn = 100, Ce = 8, rt = 16, Ft = 26, It = "vaul-dragging";
497
498
  function Oe(t) {
498
499
  const n = i.useRef(t);
499
500
  return i.useEffect(() => {
500
501
  n.current = t;
501
502
  }), i.useMemo(() => (...e) => n.current == null ? void 0 : n.current.call(n, ...e), []);
502
503
  }
503
- function Wn({ defaultProp: t, onChange: n }) {
504
+ function Un({ defaultProp: t, onChange: n }) {
504
505
  const e = i.useState(t), [a] = e, o = i.useRef(a), r = Oe(n);
505
506
  return i.useEffect(() => {
506
507
  o.current !== a && (r(a), o.current = a);
@@ -512,13 +513,13 @@ function Wn({ defaultProp: t, onChange: n }) {
512
513
  }
513
514
  function _e({ prop: t, defaultProp: n, onChange: e = () => {
514
515
  } }) {
515
- const [a, o] = Wn({
516
+ const [a, o] = Un({
516
517
  defaultProp: n,
517
518
  onChange: e
518
- }), r = t !== void 0, l = r ? t : a, s = Oe(e), v = i.useCallback((D) => {
519
+ }), r = t !== void 0, u = r ? t : a, s = Oe(e), v = i.useCallback((D) => {
519
520
  if (r) {
520
- const m = typeof D == "function" ? D(t) : D;
521
- m !== t && s(m);
521
+ const g = typeof D == "function" ? D(t) : D;
522
+ g !== t && s(g);
522
523
  } else
523
524
  o(D);
524
525
  }, [
@@ -528,12 +529,12 @@ function _e({ prop: t, defaultProp: n, onChange: e = () => {
528
529
  s
529
530
  ]);
530
531
  return [
531
- l,
532
+ u,
532
533
  v
533
534
  ];
534
535
  }
535
- function Un({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e, drawerRef: a, overlayRef: o, fadeFromIndex: r, onSnapPointChange: l, direction: s = "bottom", container: v, snapToSequentialPoint: D }) {
536
- const [g, m] = _e({
536
+ function Vn({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e, drawerRef: a, overlayRef: o, fadeFromIndex: r, onSnapPointChange: u, direction: s = "bottom", container: v, snapToSequentialPoint: D }) {
537
+ const [f, g] = _e({
537
538
  prop: t,
538
539
  defaultProp: e?.[0],
539
540
  onChange: n
@@ -550,16 +551,16 @@ function Un({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
550
551
  }
551
552
  return window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
552
553
  }, []);
553
- const H = i.useMemo(() => g === e?.[e.length - 1] || null, [
554
+ const H = i.useMemo(() => f === e?.[e.length - 1] || null, [
554
555
  e,
555
- g
556
+ f
556
557
  ]), x = i.useMemo(() => {
557
558
  var d;
558
- return (d = e?.findIndex((R) => R === g)) != null ? d : null;
559
+ return (d = e?.findIndex((R) => R === f)) != null ? d : null;
559
560
  }, [
560
561
  e,
561
- g
562
- ]), U = e && e.length > 0 && (r || r === 0) && !Number.isNaN(r) && e[r] === g || !e, w = i.useMemo(() => {
562
+ f
563
+ ]), U = e && e.length > 0 && (r || r === 0) && !Number.isNaN(r) && e[r] === f || !e, w = i.useMemo(() => {
563
564
  const d = v ? {
564
565
  width: v.getBoundingClientRect().width,
565
566
  height: v.getBoundingClientRect().height
@@ -591,7 +592,7 @@ function Un({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
591
592
  ]), N = i.useCallback((d) => {
592
593
  var R;
593
594
  const b = (R = w?.findIndex((L) => L === d)) != null ? R : null;
594
- l(b), P(a.current, {
595
+ u(b), P(a.current, {
595
596
  transition: `transform ${C.DURATION}s cubic-bezier(${C.EASE.join(",")})`,
596
597
  transform: A(s) ? `translate3d(0, ${d}px, 0)` : `translate3d(${d}px, 0, 0)`
597
598
  }), w && b !== w.length - 1 && r !== void 0 && b !== r && b < r ? P(o.current, {
@@ -600,29 +601,29 @@ function Un({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
600
601
  }) : P(o.current, {
601
602
  transition: `opacity ${C.DURATION}s cubic-bezier(${C.EASE.join(",")})`,
602
603
  opacity: "1"
603
- }), m(e?.[Math.max(b, 0)]);
604
+ }), g(e?.[Math.max(b, 0)]);
604
605
  }, [
605
606
  a.current,
606
607
  e,
607
608
  w,
608
609
  r,
609
610
  o,
610
- m
611
+ g
611
612
  ]);
612
613
  i.useEffect(() => {
613
- if (g || t) {
614
+ if (f || t) {
614
615
  var d;
615
- const R = (d = e?.findIndex((b) => b === t || b === g)) != null ? d : -1;
616
+ const R = (d = e?.findIndex((b) => b === t || b === f)) != null ? d : -1;
616
617
  w && R !== -1 && typeof w[R] == "number" && N(w[R]);
617
618
  }
618
619
  }, [
619
- g,
620
+ f,
620
621
  t,
621
622
  e,
622
623
  w,
623
624
  N
624
625
  ]);
625
- function f({ draggedDistance: d, closeDrawer: R, velocity: b, dismissible: L }) {
626
+ function p({ draggedDistance: d, closeDrawer: R, velocity: b, dismissible: L }) {
626
627
  if (r === void 0) return;
627
628
  const M = s === "bottom" || s === "right" ? ($ ?? 0) - d : ($ ?? 0) + d, z = x === r - 1, c = x === 0, V = d > 0;
628
629
  if (z && P(o.current, {
@@ -667,20 +668,20 @@ function Un({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
667
668
  }
668
669
  return {
669
670
  isLastSnapPoint: H,
670
- activeSnapPoint: g,
671
+ activeSnapPoint: f,
671
672
  shouldFade: U,
672
673
  getPercentageDragged: et,
673
- setActiveSnapPoint: m,
674
+ setActiveSnapPoint: g,
674
675
  activeSnapPointIndex: x,
675
- onRelease: f,
676
+ onRelease: p,
676
677
  onDrag: X,
677
678
  snapPointsOffset: w
678
679
  };
679
680
  }
680
- const Vn = () => () => {
681
+ const zn = () => () => {
681
682
  };
682
- function zn() {
683
- const { direction: t, isOpen: n, shouldScaleBackground: e, setBackgroundColorOnScale: a, noBodyStyles: o } = vt(), r = i.useRef(null), l = je(() => document.body.style.backgroundColor, []);
683
+ function Yn() {
684
+ const { direction: t, isOpen: n, shouldScaleBackground: e, setBackgroundColorOnScale: a, noBodyStyles: o } = vt(), r = i.useRef(null), u = qe(() => document.body.style.backgroundColor, []);
684
685
  function s() {
685
686
  return (window.innerWidth - Ft) / window.innerWidth;
686
687
  }
@@ -689,9 +690,9 @@ function zn() {
689
690
  r.current && clearTimeout(r.current);
690
691
  const v = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
691
692
  if (!v) return;
692
- kn(a && !o ? Mt(document.body, {
693
+ Hn(a && !o ? Mt(document.body, {
693
694
  background: "black"
694
- }) : Vn, Mt(v, {
695
+ }) : zn, Mt(v, {
695
696
  transformOrigin: A(t) ? "top" : "left",
696
697
  transitionProperty: "transform, border-radius",
697
698
  transitionDuration: `${C.DURATION}s`,
@@ -708,19 +709,19 @@ function zn() {
708
709
  });
709
710
  return () => {
710
711
  D(), r.current = window.setTimeout(() => {
711
- l ? document.body.style.background = l : document.body.style.removeProperty("background");
712
+ u ? document.body.style.background = u : document.body.style.removeProperty("background");
712
713
  }, C.DURATION * 1e3);
713
714
  };
714
715
  }
715
716
  }, [
716
717
  n,
717
718
  e,
718
- l
719
+ u
719
720
  ]);
720
721
  }
721
722
  let mt = null;
722
- function Yn({ isOpen: t, modal: n, nested: e, hasBeenOpened: a, preventScrollRestoration: o, noBodyStyles: r }) {
723
- const [l, s] = i.useState(() => typeof window < "u" ? window.location.href : ""), v = i.useRef(0), D = i.useCallback(() => {
723
+ function jn({ isOpen: t, modal: n, nested: e, hasBeenOpened: a, preventScrollRestoration: o, noBodyStyles: r }) {
724
+ const [u, s] = i.useState(() => typeof window < "u" ? window.location.href : ""), v = i.useRef(0), D = i.useCallback(() => {
724
725
  if (ee() && mt === null && t && !r) {
725
726
  mt = {
726
727
  position: document.body.style.position,
@@ -729,10 +730,10 @@ function Yn({ isOpen: t, modal: n, nested: e, hasBeenOpened: a, preventScrollRes
729
730
  height: document.body.style.height,
730
731
  right: "unset"
731
732
  };
732
- const { scrollX: m, innerHeight: h } = window;
733
+ const { scrollX: g, innerHeight: h } = window;
733
734
  document.body.style.setProperty("position", "fixed", "important"), Object.assign(document.body.style, {
734
735
  top: `${-v.current}px`,
735
- left: `${-m}px`,
736
+ left: `${-g}px`,
736
737
  right: "0px",
737
738
  height: "auto"
738
739
  }), window.setTimeout(() => window.requestAnimationFrame(() => {
@@ -742,81 +743,81 @@ function Yn({ isOpen: t, modal: n, nested: e, hasBeenOpened: a, preventScrollRes
742
743
  }
743
744
  }, [
744
745
  t
745
- ]), g = i.useCallback(() => {
746
+ ]), f = i.useCallback(() => {
746
747
  if (ee() && mt !== null && !r) {
747
- const m = -parseInt(document.body.style.top, 10), h = -parseInt(document.body.style.left, 10);
748
+ const g = -parseInt(document.body.style.top, 10), h = -parseInt(document.body.style.left, 10);
748
749
  Object.assign(document.body.style, mt), window.requestAnimationFrame(() => {
749
- if (o && l !== window.location.href) {
750
+ if (o && u !== window.location.href) {
750
751
  s(window.location.href);
751
752
  return;
752
753
  }
753
- window.scrollTo(h, m);
754
+ window.scrollTo(h, g);
754
755
  }), mt = null;
755
756
  }
756
757
  }, [
757
- l
758
+ u
758
759
  ]);
759
760
  return i.useEffect(() => {
760
- function m() {
761
+ function g() {
761
762
  v.current = window.scrollY;
762
763
  }
763
- return m(), window.addEventListener("scroll", m), () => {
764
- window.removeEventListener("scroll", m);
764
+ return g(), window.addEventListener("scroll", g), () => {
765
+ window.removeEventListener("scroll", g);
765
766
  };
766
767
  }, []), i.useEffect(() => {
767
768
  if (n)
768
769
  return () => {
769
- typeof document > "u" || document.querySelector("[data-vaul-drawer]") || g();
770
+ typeof document > "u" || document.querySelector("[data-vaul-drawer]") || f();
770
771
  };
771
772
  }, [
772
773
  n,
773
- g
774
+ f
774
775
  ]), i.useEffect(() => {
775
776
  e || !a || (t ? (!window.matchMedia("(display-mode: standalone)").matches && D(), n || window.setTimeout(() => {
776
- g();
777
- }, 500)) : g());
777
+ f();
778
+ }, 500)) : f());
778
779
  }, [
779
780
  t,
780
781
  a,
781
- l,
782
+ u,
782
783
  n,
783
784
  e,
784
785
  D,
785
- g
786
+ f
786
787
  ]), {
787
- restorePositionSetting: g
788
+ restorePositionSetting: f
788
789
  };
789
790
  }
790
- function jn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, snapPoints: r, shouldScaleBackground: l = !1, setBackgroundColorOnScale: s = !0, closeThreshold: v = Hn, scrollLockTimeout: D = Bn, dismissible: g = !0, handleOnly: m = !1, fadeFromIndex: h = r && r.length - 1, activeSnapPoint: W, setActiveSnapPoint: H, fixed: x, modal: U = !0, onClose: w, nested: $, noBodyStyles: N = !1, direction: f = "bottom", defaultOpen: X = !1, disablePreventScroll: et = !0, snapToSequentialPoint: d = !1, preventScrollRestoration: R = !1, repositionInputs: b = !0, onAnimationEnd: L, container: M, autoFocus: z = !1 }) {
791
+ function qn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, snapPoints: r, shouldScaleBackground: u = !1, setBackgroundColorOnScale: s = !0, closeThreshold: v = Bn, scrollLockTimeout: D = Wn, dismissible: f = !0, handleOnly: g = !1, fadeFromIndex: h = r && r.length - 1, activeSnapPoint: W, setActiveSnapPoint: H, fixed: x, modal: U = !0, onClose: w, nested: $, noBodyStyles: N = !1, direction: p = "bottom", defaultOpen: X = !1, disablePreventScroll: et = !0, snapToSequentialPoint: d = !1, preventScrollRestoration: R = !1, repositionInputs: b = !0, onAnimationEnd: L, container: M, autoFocus: z = !1 }) {
791
792
  var c, V;
792
793
  const [F = !1, Y] = _e({
793
794
  defaultProp: X,
794
795
  prop: t,
795
- onChange: (u) => {
796
- n?.(u), !u && !$ && ke(), setTimeout(() => {
797
- L?.(u);
798
- }, C.DURATION * 1e3), u && !U && typeof window < "u" && window.requestAnimationFrame(() => {
796
+ onChange: (l) => {
797
+ n?.(l), !l && !$ && ke(), setTimeout(() => {
798
+ L?.(l);
799
+ }, C.DURATION * 1e3), l && !U && typeof window < "u" && window.requestAnimationFrame(() => {
799
800
  document.body.style.pointerEvents = "auto";
800
- }), u || (document.body.style.pointerEvents = "auto");
801
+ }), l || (document.body.style.pointerEvents = "auto");
801
802
  }
802
- }), [I, K] = i.useState(!1), [J, lt] = i.useState(!1), [Ne, zt] = i.useState(!1), ot = i.useRef(null), yt = i.useRef(null), xt = i.useRef(null), Ct = i.useRef(null), ut = i.useRef(null), ct = i.useRef(!1), Ot = i.useRef(null), _t = i.useRef(0), it = i.useRef(!1), Yt = i.useRef(!X), jt = i.useRef(0), p = i.useRef(null), qt = i.useRef(((c = p.current) == null ? void 0 : c.getBoundingClientRect().height) || 0), Xt = i.useRef(((V = p.current) == null ? void 0 : V.getBoundingClientRect().width) || 0), At = i.useRef(0), $e = i.useCallback((u) => {
803
- r && u === dt.length - 1 && (yt.current = /* @__PURE__ */ new Date());
804
- }, []), { activeSnapPoint: Me, activeSnapPointIndex: st, setActiveSnapPoint: Gt, onRelease: Ie, snapPointsOffset: dt, onDrag: Le, shouldFade: Kt, getPercentageDragged: Fe } = Un({
803
+ }), [I, K] = i.useState(!1), [J, lt] = i.useState(!1), [Ne, zt] = i.useState(!1), ot = i.useRef(null), yt = i.useRef(null), xt = i.useRef(null), Ct = i.useRef(null), ut = i.useRef(null), ct = i.useRef(!1), Ot = i.useRef(null), _t = i.useRef(0), it = i.useRef(!1), Yt = i.useRef(!X), jt = i.useRef(0), m = i.useRef(null), qt = i.useRef(((c = m.current) == null ? void 0 : c.getBoundingClientRect().height) || 0), Xt = i.useRef(((V = m.current) == null ? void 0 : V.getBoundingClientRect().width) || 0), At = i.useRef(0), $e = i.useCallback((l) => {
804
+ r && l === dt.length - 1 && (yt.current = /* @__PURE__ */ new Date());
805
+ }, []), { activeSnapPoint: Me, activeSnapPointIndex: st, setActiveSnapPoint: Gt, onRelease: Ie, snapPointsOffset: dt, onDrag: Le, shouldFade: Kt, getPercentageDragged: Fe } = Vn({
805
806
  snapPoints: r,
806
807
  activeSnapPointProp: W,
807
808
  setActiveSnapPointProp: H,
808
- drawerRef: p,
809
+ drawerRef: m,
809
810
  fadeFromIndex: h,
810
811
  overlayRef: ot,
811
812
  onSnapPointChange: $e,
812
- direction: f,
813
+ direction: p,
813
814
  container: M,
814
815
  snapToSequentialPoint: d
815
816
  });
816
- Pn({
817
+ Nn({
817
818
  isDisabled: !F || J || !U || Ne || !I || !b || !et
818
819
  });
819
- const { restorePositionSetting: ke } = Yn({
820
+ const { restorePositionSetting: ke } = jn({
820
821
  isOpen: F,
821
822
  modal: U,
822
823
  nested: $ ?? !1,
@@ -827,27 +828,27 @@ function jn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
827
828
  function bt() {
828
829
  return (window.innerWidth - Ft) / window.innerWidth;
829
830
  }
830
- function He(u) {
831
- var E, T;
832
- !g && !r || p.current && !p.current.contains(u.target) || (qt.current = ((E = p.current) == null ? void 0 : E.getBoundingClientRect().height) || 0, Xt.current = ((T = p.current) == null ? void 0 : T.getBoundingClientRect().width) || 0, lt(!0), xt.current = /* @__PURE__ */ new Date(), Re() && window.addEventListener("touchend", () => ct.current = !1, {
831
+ function He(l) {
832
+ var S, T;
833
+ !f && !r || m.current && !m.current.contains(l.target) || (qt.current = ((S = m.current) == null ? void 0 : S.getBoundingClientRect().height) || 0, Xt.current = ((T = m.current) == null ? void 0 : T.getBoundingClientRect().width) || 0, lt(!0), xt.current = /* @__PURE__ */ new Date(), Re() && window.addEventListener("touchend", () => ct.current = !1, {
833
834
  once: !0
834
- }), u.target.setPointerCapture(u.pointerId), _t.current = A(f) ? u.pageY : u.pageX);
835
+ }), l.target.setPointerCapture(l.pointerId), _t.current = A(p) ? l.pageY : l.pageX);
835
836
  }
836
- function Jt(u, E) {
837
+ function Jt(l, S) {
837
838
  var T;
838
- let y = u;
839
- const _ = (T = window.getSelection()) == null ? void 0 : T.toString(), B = p.current ? Et(p.current, f) : null, k = /* @__PURE__ */ new Date();
839
+ let y = l;
840
+ const _ = (T = window.getSelection()) == null ? void 0 : T.toString(), B = m.current ? St(m.current, p) : null, k = /* @__PURE__ */ new Date();
840
841
  if (y.tagName === "SELECT" || y.hasAttribute("data-vaul-no-drag") || y.closest("[data-vaul-no-drag]"))
841
842
  return !1;
842
- if (f === "right" || f === "left")
843
+ if (p === "right" || p === "left")
843
844
  return !0;
844
845
  if (yt.current && k.getTime() - yt.current.getTime() < 500)
845
846
  return !1;
846
- if (B !== null && (f === "bottom" ? B > 0 : B < 0))
847
+ if (B !== null && (p === "bottom" ? B > 0 : B < 0))
847
848
  return !0;
848
849
  if (_ && _.length > 0)
849
850
  return !1;
850
- if (ut.current && k.getTime() - ut.current.getTime() < D && B === 0 || E)
851
+ if (ut.current && k.getTime() - ut.current.getTime() < D && B === 0 || S)
851
852
  return ut.current = k, !1;
852
853
  for (; y; ) {
853
854
  if (y.scrollHeight > y.clientHeight) {
@@ -860,43 +861,43 @@ function jn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
860
861
  }
861
862
  return !0;
862
863
  }
863
- function Be(u) {
864
- if (p.current && J) {
865
- const E = f === "bottom" || f === "right" ? 1 : -1, T = (_t.current - (A(f) ? u.pageY : u.pageX)) * E, y = T > 0, _ = r && !g && !y;
864
+ function Be(l) {
865
+ if (m.current && J) {
866
+ const S = p === "bottom" || p === "right" ? 1 : -1, T = (_t.current - (A(p) ? l.pageY : l.pageX)) * S, y = T > 0, _ = r && !f && !y;
866
867
  if (_ && st === 0) return;
867
- const B = Math.abs(T), k = document.querySelector("[data-vaul-drawer-wrapper]"), Z = f === "bottom" || f === "top" ? qt.current : Xt.current;
868
+ const B = Math.abs(T), k = document.querySelector("[data-vaul-drawer-wrapper]"), Z = p === "bottom" || p === "top" ? qt.current : Xt.current;
868
869
  let j = B / Z;
869
870
  const nt = Fe(B, y);
870
- if (nt !== null && (j = nt), _ && j >= 1 || !ct.current && !Jt(u.target, y)) return;
871
- if (p.current.classList.add(It), ct.current = !0, P(p.current, {
871
+ if (nt !== null && (j = nt), _ && j >= 1 || !ct.current && !Jt(l.target, y)) return;
872
+ if (m.current.classList.add(It), ct.current = !0, P(m.current, {
872
873
  transition: "none"
873
874
  }), P(ot.current, {
874
875
  transition: "none"
875
876
  }), r && Le({
876
877
  draggedDistance: T
877
878
  }), y && !r) {
878
- const G = Fn(T), Dt = Math.min(G * -1, 0) * E;
879
- P(p.current, {
880
- transform: A(f) ? `translate3d(0, ${Dt}px, 0)` : `translate3d(${Dt}px, 0, 0)`
879
+ const G = kn(T), Dt = Math.min(G * -1, 0) * S;
880
+ P(m.current, {
881
+ transform: A(p) ? `translate3d(0, ${Dt}px, 0)` : `translate3d(${Dt}px, 0, 0)`
881
882
  });
882
883
  return;
883
884
  }
884
885
  const Q = 1 - j;
885
- if ((Kt || h && st === h - 1) && (a?.(u, j), P(ot.current, {
886
+ if ((Kt || h && st === h - 1) && (a?.(l, j), P(ot.current, {
886
887
  opacity: `${Q}`,
887
888
  transition: "none"
888
- }, !0)), k && ot.current && l) {
889
+ }, !0)), k && ot.current && u) {
889
890
  const G = Math.min(bt() + j * (1 - bt()), 1), Dt = 8 - j * 8, Qt = Math.max(0, 14 - j * 14);
890
891
  P(k, {
891
892
  borderRadius: `${Dt}px`,
892
- transform: A(f) ? `scale(${G}) translate3d(0, ${Qt}px, 0)` : `scale(${G}) translate3d(${Qt}px, 0, 0)`,
893
+ transform: A(p) ? `scale(${G}) translate3d(0, ${Qt}px, 0)` : `scale(${G}) translate3d(${Qt}px, 0, 0)`,
893
894
  transition: "none"
894
895
  }, !0);
895
896
  }
896
897
  if (!r) {
897
- const G = B * E;
898
- P(p.current, {
899
- transform: A(f) ? `translate3d(0, ${G}px, 0)` : `translate3d(${G}px, 0, 0)`
898
+ const G = B * S;
899
+ P(m.current, {
900
+ transform: A(p) ? `translate3d(0, ${G}px, 0)` : `translate3d(${G}px, 0, 0)`
900
901
  });
901
902
  }
902
903
  }
@@ -906,56 +907,56 @@ function jn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
906
907
  Yt.current = !0;
907
908
  });
908
909
  }, []), i.useEffect(() => {
909
- var u;
910
- function E() {
911
- if (!p.current || !b) return;
910
+ var l;
911
+ function S() {
912
+ if (!m.current || !b) return;
912
913
  const T = document.activeElement;
913
914
  if (Lt(T) || it.current) {
914
915
  var y;
915
916
  const _ = ((y = window.visualViewport) == null ? void 0 : y.height) || 0, B = window.innerHeight;
916
917
  let k = B - _;
917
- const Z = p.current.getBoundingClientRect().height || 0, j = Z > B * 0.8;
918
+ const Z = m.current.getBoundingClientRect().height || 0, j = Z > B * 0.8;
918
919
  At.current || (At.current = Z);
919
- const nt = p.current.getBoundingClientRect().top;
920
+ const nt = m.current.getBoundingClientRect().top;
920
921
  if (Math.abs(jt.current - k) > 60 && (it.current = !it.current), r && r.length > 0 && dt && st) {
921
922
  const Q = dt[st] || 0;
922
923
  k += Q;
923
924
  }
924
925
  if (jt.current = k, Z > _ || it.current) {
925
- const Q = p.current.getBoundingClientRect().height;
926
+ const Q = m.current.getBoundingClientRect().height;
926
927
  let G = Q;
927
- Q > _ && (G = _ - (j ? nt : Ft)), x ? p.current.style.height = `${Q - Math.max(k, 0)}px` : p.current.style.height = `${Math.max(G, _ - nt)}px`;
928
- } else Sn() || (p.current.style.height = `${At.current}px`);
929
- r && r.length > 0 && !it.current ? p.current.style.bottom = "0px" : p.current.style.bottom = `${Math.max(k, 0)}px`;
928
+ Q > _ && (G = _ - (j ? nt : Ft)), x ? m.current.style.height = `${Q - Math.max(k, 0)}px` : m.current.style.height = `${Math.max(G, _ - nt)}px`;
929
+ } else Tn() || (m.current.style.height = `${At.current}px`);
930
+ r && r.length > 0 && !it.current ? m.current.style.bottom = "0px" : m.current.style.bottom = `${Math.max(k, 0)}px`;
930
931
  }
931
932
  }
932
- return (u = window.visualViewport) == null || u.addEventListener("resize", E), () => {
933
+ return (l = window.visualViewport) == null || l.addEventListener("resize", S), () => {
933
934
  var T;
934
- return (T = window.visualViewport) == null ? void 0 : T.removeEventListener("resize", E);
935
+ return (T = window.visualViewport) == null ? void 0 : T.removeEventListener("resize", S);
935
936
  };
936
937
  }, [
937
938
  st,
938
939
  r,
939
940
  dt
940
941
  ]);
941
- function ft(u) {
942
- We(), w?.(), u || Y(!1), setTimeout(() => {
942
+ function ft(l) {
943
+ We(), w?.(), l || Y(!1), setTimeout(() => {
943
944
  r && Gt(r[0]);
944
945
  }, C.DURATION * 1e3);
945
946
  }
946
947
  function Zt() {
947
- if (!p.current) return;
948
- const u = document.querySelector("[data-vaul-drawer-wrapper]"), E = Et(p.current, f);
949
- P(p.current, {
948
+ if (!m.current) return;
949
+ const l = document.querySelector("[data-vaul-drawer-wrapper]"), S = St(m.current, p);
950
+ P(m.current, {
950
951
  transform: "translate3d(0, 0, 0)",
951
952
  transition: `transform ${C.DURATION}s cubic-bezier(${C.EASE.join(",")})`
952
953
  }), P(ot.current, {
953
954
  transition: `opacity ${C.DURATION}s cubic-bezier(${C.EASE.join(",")})`,
954
955
  opacity: "1"
955
- }), l && E && E > 0 && F && P(u, {
956
+ }), u && S && S > 0 && F && P(l, {
956
957
  borderRadius: `${Ce}px`,
957
958
  overflow: "hidden",
958
- ...A(f) ? {
959
+ ...A(p) ? {
959
960
  transform: `scale(${bt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
960
961
  transformOrigin: "top"
961
962
  } : {
@@ -968,76 +969,76 @@ function jn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
968
969
  }, !0);
969
970
  }
970
971
  function We() {
971
- !J || !p.current || (p.current.classList.remove(It), ct.current = !1, lt(!1), Ct.current = /* @__PURE__ */ new Date());
972
+ !J || !m.current || (m.current.classList.remove(It), ct.current = !1, lt(!1), Ct.current = /* @__PURE__ */ new Date());
972
973
  }
973
- function Ue(u) {
974
- if (!J || !p.current) return;
975
- p.current.classList.remove(It), ct.current = !1, lt(!1), Ct.current = /* @__PURE__ */ new Date();
976
- const E = Et(p.current, f);
977
- if (!u || !Jt(u.target, !1) || !E || Number.isNaN(E) || xt.current === null) return;
978
- const T = Ct.current.getTime() - xt.current.getTime(), y = _t.current - (A(f) ? u.pageY : u.pageX), _ = Math.abs(y) / T;
974
+ function Ue(l) {
975
+ if (!J || !m.current) return;
976
+ m.current.classList.remove(It), ct.current = !1, lt(!1), Ct.current = /* @__PURE__ */ new Date();
977
+ const S = St(m.current, p);
978
+ if (!l || !Jt(l.target, !1) || !S || Number.isNaN(S) || xt.current === null) return;
979
+ const T = Ct.current.getTime() - xt.current.getTime(), y = _t.current - (A(p) ? l.pageY : l.pageX), _ = Math.abs(y) / T;
979
980
  if (_ > 0.05 && (zt(!0), setTimeout(() => {
980
981
  zt(!1);
981
982
  }, 200)), r) {
982
983
  Ie({
983
- draggedDistance: y * (f === "bottom" || f === "right" ? 1 : -1),
984
+ draggedDistance: y * (p === "bottom" || p === "right" ? 1 : -1),
984
985
  closeDrawer: ft,
985
986
  velocity: _,
986
- dismissible: g
987
- }), o?.(u, !0);
987
+ dismissible: f
988
+ }), o?.(l, !0);
988
989
  return;
989
990
  }
990
- if (f === "bottom" || f === "right" ? y > 0 : y < 0) {
991
- Zt(), o?.(u, !0);
991
+ if (p === "bottom" || p === "right" ? y > 0 : y < 0) {
992
+ Zt(), o?.(l, !0);
992
993
  return;
993
994
  }
994
995
  if (_ > xe) {
995
- ft(), o?.(u, !1);
996
+ ft(), o?.(l, !1);
996
997
  return;
997
998
  }
998
999
  var B;
999
- const k = Math.min((B = p.current.getBoundingClientRect().height) != null ? B : 0, window.innerHeight);
1000
+ const k = Math.min((B = m.current.getBoundingClientRect().height) != null ? B : 0, window.innerHeight);
1000
1001
  var Z;
1001
- const j = Math.min((Z = p.current.getBoundingClientRect().width) != null ? Z : 0, window.innerWidth), nt = f === "left" || f === "right";
1002
- if (Math.abs(E) >= (nt ? j : k) * v) {
1003
- ft(), o?.(u, !1);
1002
+ const j = Math.min((Z = m.current.getBoundingClientRect().width) != null ? Z : 0, window.innerWidth), nt = p === "left" || p === "right";
1003
+ if (Math.abs(S) >= (nt ? j : k) * v) {
1004
+ ft(), o?.(l, !1);
1004
1005
  return;
1005
1006
  }
1006
- o?.(u, !0), Zt();
1007
+ o?.(l, !0), Zt();
1007
1008
  }
1008
1009
  i.useEffect(() => (F && (P(document.documentElement, {
1009
1010
  scrollBehavior: "auto"
1010
1011
  }), yt.current = /* @__PURE__ */ new Date()), () => {
1011
- Ln(document.documentElement, "scrollBehavior");
1012
+ Fn(document.documentElement, "scrollBehavior");
1012
1013
  }), [
1013
1014
  F
1014
1015
  ]);
1015
- function Ve(u) {
1016
- const E = u ? (window.innerWidth - rt) / window.innerWidth : 1, T = u ? -rt : 0;
1017
- Ot.current && window.clearTimeout(Ot.current), P(p.current, {
1016
+ function Ve(l) {
1017
+ const S = l ? (window.innerWidth - rt) / window.innerWidth : 1, T = l ? -rt : 0;
1018
+ Ot.current && window.clearTimeout(Ot.current), P(m.current, {
1018
1019
  transition: `transform ${C.DURATION}s cubic-bezier(${C.EASE.join(",")})`,
1019
- transform: A(f) ? `scale(${E}) translate3d(0, ${T}px, 0)` : `scale(${E}) translate3d(${T}px, 0, 0)`
1020
- }), !u && p.current && (Ot.current = setTimeout(() => {
1021
- const y = Et(p.current, f);
1022
- P(p.current, {
1020
+ transform: A(p) ? `scale(${S}) translate3d(0, ${T}px, 0)` : `scale(${S}) translate3d(${T}px, 0, 0)`
1021
+ }), !l && m.current && (Ot.current = setTimeout(() => {
1022
+ const y = St(m.current, p);
1023
+ P(m.current, {
1023
1024
  transition: "none",
1024
- transform: A(f) ? `translate3d(0, ${y}px, 0)` : `translate3d(${y}px, 0, 0)`
1025
+ transform: A(p) ? `translate3d(0, ${y}px, 0)` : `translate3d(${y}px, 0, 0)`
1025
1026
  });
1026
1027
  }, 500));
1027
1028
  }
1028
- function ze(u, E) {
1029
- if (E < 0) return;
1030
- const T = (window.innerWidth - rt) / window.innerWidth, y = T + E * (1 - T), _ = -rt + E * rt;
1031
- P(p.current, {
1032
- transform: A(f) ? `scale(${y}) translate3d(0, ${_}px, 0)` : `scale(${y}) translate3d(${_}px, 0, 0)`,
1029
+ function ze(l, S) {
1030
+ if (S < 0) return;
1031
+ const T = (window.innerWidth - rt) / window.innerWidth, y = T + S * (1 - T), _ = -rt + S * rt;
1032
+ P(m.current, {
1033
+ transform: A(p) ? `scale(${y}) translate3d(0, ${_}px, 0)` : `scale(${y}) translate3d(${_}px, 0, 0)`,
1033
1034
  transition: "none"
1034
1035
  });
1035
1036
  }
1036
- function Ye(u, E) {
1037
- const T = A(f) ? window.innerHeight : window.innerWidth, y = E ? (T - rt) / T : 1, _ = E ? -rt : 0;
1038
- E && P(p.current, {
1037
+ function Ye(l, S) {
1038
+ const T = A(p) ? window.innerHeight : window.innerWidth, y = S ? (T - rt) / T : 1, _ = S ? -rt : 0;
1039
+ S && P(m.current, {
1039
1040
  transition: `transform ${C.DURATION}s cubic-bezier(${C.EASE.join(",")})`,
1040
- transform: A(f) ? `scale(${y}) translate3d(0, ${_}px, 0)` : `scale(${y}) translate3d(${_}px, 0, 0)`
1041
+ transform: A(p) ? `scale(${y}) translate3d(0, ${_}px, 0)` : `scale(${y}) translate3d(${_}px, 0, 0)`
1041
1042
  });
1042
1043
  }
1043
1044
  return i.useEffect(() => {
@@ -1046,10 +1047,10 @@ function jn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
1046
1047
  });
1047
1048
  }, [
1048
1049
  U
1049
- ]), /* @__PURE__ */ i.createElement(gn, {
1050
+ ]), /* @__PURE__ */ i.createElement(hn, {
1050
1051
  defaultOpen: X,
1051
- onOpenChange: (u) => {
1052
- !g && !u || (u ? K(!0) : ft(!0), Y(u));
1052
+ onOpenChange: (l) => {
1053
+ !f && !l || (l ? K(!0) : ft(!0), Y(l));
1053
1054
  },
1054
1055
  open: F
1055
1056
  }, /* @__PURE__ */ i.createElement(De.Provider, {
@@ -1057,15 +1058,15 @@ function jn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
1057
1058
  activeSnapPoint: Me,
1058
1059
  snapPoints: r,
1059
1060
  setActiveSnapPoint: Gt,
1060
- drawerRef: p,
1061
+ drawerRef: m,
1061
1062
  overlayRef: ot,
1062
1063
  onOpenChange: n,
1063
1064
  onPress: He,
1064
1065
  onRelease: Ue,
1065
1066
  onDrag: Be,
1066
- dismissible: g,
1067
+ dismissible: f,
1067
1068
  shouldAnimate: Yt,
1068
- handleOnly: m,
1069
+ handleOnly: g,
1069
1070
  isOpen: F,
1070
1071
  isDragging: J,
1071
1072
  shouldFade: Kt,
@@ -1077,8 +1078,8 @@ function jn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
1077
1078
  modal: U,
1078
1079
  snapPointsOffset: dt,
1079
1080
  activeSnapPointIndex: st,
1080
- direction: f,
1081
- shouldScaleBackground: l,
1081
+ direction: p,
1082
+ shouldScaleBackground: u,
1082
1083
  setBackgroundColorOnScale: s,
1083
1084
  noBodyStyles: N,
1084
1085
  container: M,
@@ -1087,26 +1088,26 @@ function jn({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: o, sn
1087
1088
  }, e));
1088
1089
  }
1089
1090
  const Ae = /* @__PURE__ */ i.forwardRef(function({ ...t }, n) {
1090
- const { overlayRef: e, snapPoints: a, onRelease: o, shouldFade: r, isOpen: l, modal: s, shouldAnimate: v } = vt(), D = Se(n, e), g = a && a.length > 0;
1091
+ const { overlayRef: e, snapPoints: a, onRelease: o, shouldFade: r, isOpen: u, modal: s, shouldAnimate: v } = vt(), D = Ee(n, e), f = a && a.length > 0;
1091
1092
  if (!s)
1092
1093
  return null;
1093
- const m = i.useCallback((h) => o(h), [
1094
+ const g = i.useCallback((h) => o(h), [
1094
1095
  o
1095
1096
  ]);
1096
- return /* @__PURE__ */ i.createElement(vn, {
1097
- onMouseUp: m,
1097
+ return /* @__PURE__ */ i.createElement(yn, {
1098
+ onMouseUp: g,
1098
1099
  ref: D,
1099
1100
  "data-vaul-overlay": "",
1100
- "data-vaul-snap-points": l && g ? "true" : "false",
1101
- "data-vaul-snap-points-overlay": l && r ? "true" : "false",
1101
+ "data-vaul-snap-points": u && f ? "true" : "false",
1102
+ "data-vaul-snap-points-overlay": u && r ? "true" : "false",
1102
1103
  "data-vaul-animate": v?.current ? "true" : "false",
1103
1104
  ...t
1104
1105
  });
1105
1106
  });
1106
1107
  Ae.displayName = "Drawer.Overlay";
1107
1108
  const Pe = /* @__PURE__ */ i.forwardRef(function({ onPointerDownOutside: t, style: n, onOpenAutoFocus: e, ...a }, o) {
1108
- const { drawerRef: r, onPress: l, onRelease: s, onDrag: v, keyboardIsOpen: D, snapPointsOffset: g, activeSnapPointIndex: m, modal: h, isOpen: W, direction: H, snapPoints: x, container: U, handleOnly: w, shouldAnimate: $, autoFocus: N } = vt(), [f, X] = i.useState(!1), et = Se(o, r), d = i.useRef(null), R = i.useRef(null), b = i.useRef(!1), L = x && x.length > 0;
1109
- zn();
1109
+ const { drawerRef: r, onPress: u, onRelease: s, onDrag: v, keyboardIsOpen: D, snapPointsOffset: f, activeSnapPointIndex: g, modal: h, isOpen: W, direction: H, snapPoints: x, container: U, handleOnly: w, shouldAnimate: $, autoFocus: N } = vt(), [p, X] = i.useState(!1), et = Ee(o, r), d = i.useRef(null), R = i.useRef(null), b = i.useRef(!1), L = x && x.length > 0;
1110
+ Yn();
1110
1111
  const M = (c, V, F = 0) => {
1111
1112
  if (b.current) return !0;
1112
1113
  const Y = Math.abs(c.y), I = Math.abs(c.x), K = I > Y, J = [
@@ -1128,24 +1129,24 @@ const Pe = /* @__PURE__ */ i.forwardRef(function({ onPointerDownOutside: t, styl
1128
1129
  function z(c) {
1129
1130
  d.current = null, b.current = !1, s(c);
1130
1131
  }
1131
- return /* @__PURE__ */ i.createElement(yn, {
1132
+ return /* @__PURE__ */ i.createElement(bn, {
1132
1133
  "data-vaul-drawer-direction": H,
1133
1134
  "data-vaul-drawer": "",
1134
- "data-vaul-delayed-snap-points": f ? "true" : "false",
1135
+ "data-vaul-delayed-snap-points": p ? "true" : "false",
1135
1136
  "data-vaul-snap-points": W && L ? "true" : "false",
1136
1137
  "data-vaul-custom-container": U ? "true" : "false",
1137
1138
  "data-vaul-animate": $?.current ? "true" : "false",
1138
1139
  ...a,
1139
1140
  ref: et,
1140
- style: g && g.length > 0 ? {
1141
- "--snap-point-height": `${g[m ?? 0]}px`,
1141
+ style: f && f.length > 0 ? {
1142
+ "--snap-point-height": `${f[g ?? 0]}px`,
1142
1143
  ...n
1143
1144
  } : n,
1144
1145
  onPointerDown: (c) => {
1145
1146
  w || (a.onPointerDown == null || a.onPointerDown.call(a, c), d.current = {
1146
1147
  x: c.pageX,
1147
1148
  y: c.pageY
1148
- }, l(c));
1149
+ }, u(c));
1149
1150
  },
1150
1151
  onOpenAutoFocus: (c) => {
1151
1152
  e?.(c), N || c.preventDefault();
@@ -1183,8 +1184,8 @@ const Pe = /* @__PURE__ */ i.forwardRef(function({ onPointerDownOutside: t, styl
1183
1184
  });
1184
1185
  });
1185
1186
  Pe.displayName = "Drawer.Content";
1186
- const qn = 250, Xn = 120, Gn = /* @__PURE__ */ i.forwardRef(function({ preventCycle: t = !1, children: n, ...e }, a) {
1187
- const { closeDrawer: o, isDragging: r, snapPoints: l, activeSnapPoint: s, setActiveSnapPoint: v, dismissible: D, handleOnly: g, isOpen: m, onPress: h, onDrag: W } = vt(), H = i.useRef(null), x = i.useRef(!1);
1187
+ const Xn = 250, Gn = 120, Kn = /* @__PURE__ */ i.forwardRef(function({ preventCycle: t = !1, children: n, ...e }, a) {
1188
+ const { closeDrawer: o, isDragging: r, snapPoints: u, activeSnapPoint: s, setActiveSnapPoint: v, dismissible: D, handleOnly: f, isOpen: g, onPress: h, onDrag: W } = vt(), H = i.useRef(null), x = i.useRef(!1);
1188
1189
  function U() {
1189
1190
  if (x.current) {
1190
1191
  N();
@@ -1192,30 +1193,30 @@ const qn = 250, Xn = 120, Gn = /* @__PURE__ */ i.forwardRef(function({ preventCy
1192
1193
  }
1193
1194
  window.setTimeout(() => {
1194
1195
  w();
1195
- }, Xn);
1196
+ }, Gn);
1196
1197
  }
1197
1198
  function w() {
1198
1199
  if (r || t || x.current) {
1199
1200
  N();
1200
1201
  return;
1201
1202
  }
1202
- if (N(), !l || l.length === 0) {
1203
+ if (N(), !u || u.length === 0) {
1203
1204
  D || o();
1204
1205
  return;
1205
1206
  }
1206
- if (s === l[l.length - 1] && D) {
1207
+ if (s === u[u.length - 1] && D) {
1207
1208
  o();
1208
1209
  return;
1209
1210
  }
1210
- const X = l.findIndex((d) => d === s);
1211
+ const X = u.findIndex((d) => d === s);
1211
1212
  if (X === -1) return;
1212
- const et = l[X + 1];
1213
+ const et = u[X + 1];
1213
1214
  v(et);
1214
1215
  }
1215
1216
  function $() {
1216
1217
  H.current = window.setTimeout(() => {
1217
1218
  x.current = !0;
1218
- }, qn);
1219
+ }, Xn);
1219
1220
  }
1220
1221
  function N() {
1221
1222
  H.current && window.clearTimeout(H.current), x.current = !1;
@@ -1223,15 +1224,15 @@ const qn = 250, Xn = 120, Gn = /* @__PURE__ */ i.forwardRef(function({ preventCy
1223
1224
  return /* @__PURE__ */ i.createElement("div", {
1224
1225
  onClick: U,
1225
1226
  onPointerCancel: N,
1226
- onPointerDown: (f) => {
1227
- g && h(f), $();
1227
+ onPointerDown: (p) => {
1228
+ f && h(p), $();
1228
1229
  },
1229
- onPointerMove: (f) => {
1230
- g && W(f);
1230
+ onPointerMove: (p) => {
1231
+ f && W(p);
1231
1232
  },
1232
1233
  // onPointerUp is already handled by the content component
1233
1234
  ref: a,
1234
- "data-vaul-drawer-visible": m ? "true" : "false",
1235
+ "data-vaul-drawer-visible": g ? "true" : "false",
1235
1236
  "data-vaul-handle": "",
1236
1237
  "aria-hidden": "true",
1237
1238
  ...e
@@ -1240,62 +1241,71 @@ const qn = 250, Xn = 120, Gn = /* @__PURE__ */ i.forwardRef(function({ preventCy
1240
1241
  "aria-hidden": "true"
1241
1242
  }, n));
1242
1243
  });
1243
- Gn.displayName = "Drawer.Handle";
1244
- function Kn(t) {
1244
+ Kn.displayName = "Drawer.Handle";
1245
+ function Jn(t) {
1245
1246
  const n = vt(), { container: e = n.container, ...a } = t;
1246
- return /* @__PURE__ */ i.createElement(wn, {
1247
+ return /* @__PURE__ */ i.createElement(vn, {
1247
1248
  container: e,
1248
1249
  ...a
1249
1250
  });
1250
1251
  }
1251
1252
  const tt = {
1252
- Root: jn,
1253
+ Root: qn,
1253
1254
  Content: Pe,
1254
1255
  Overlay: Ae,
1255
- Trigger: hn,
1256
- Portal: Kn,
1257
- Close: Rn,
1258
- Title: bn,
1259
- Description: Dn
1260
- }, rr = ({ trigger: t, title: n, description: e, children: a, direction: o = "right", size: r = "380px" }) => {
1261
- const l = "!font-sans fixed", s = {
1256
+ Trigger: wn,
1257
+ Portal: Jn,
1258
+ Close: Sn,
1259
+ Title: Dn,
1260
+ Description: Rn
1261
+ }, or = ({
1262
+ trigger: t,
1263
+ title: n,
1264
+ description: e,
1265
+ children: a,
1266
+ direction: o = "right",
1267
+ size: r = "380px",
1268
+ asChild: u = !1
1269
+ }) => {
1270
+ const s = "!font-sans fixed", v = {
1262
1271
  left: {
1263
- className: `${l} top-0 bottom-0 left-0 shadow-[20px_0_20px_rgba(0,0,0,0.4)]`,
1272
+ className: `${s} top-0 bottom-0 left-0 shadow-[20px_0_20px_rgba(0,0,0,0.4)]`,
1264
1273
  style: { width: r }
1265
1274
  },
1266
1275
  right: {
1267
- className: `${l} top-0 bottom-0 right-0 shadow-[-20px_0_20px_rgba(0,0,0,0.4)]`,
1276
+ className: `${s} top-0 bottom-0 right-0 shadow-[-20px_0_20px_rgba(0,0,0,0.4)]`,
1268
1277
  style: { width: r }
1269
1278
  },
1270
1279
  top: {
1271
- className: `${l} top-0 left-0 right-0 shadow-[0_20px_20px_rgba(0,0,0,0.4)]`,
1280
+ className: `${s} top-0 left-0 right-0 shadow-[0_20px_20px_rgba(0,0,0,0.4)]`,
1272
1281
  style: { height: r }
1273
1282
  },
1274
1283
  bottom: {
1275
- className: `${l} bottom-0 left-0 right-0 shadow-[0_-20px_20px_rgba(0,0,0,0.4)]`,
1284
+ className: `${s} bottom-0 left-0 right-0 shadow-[0_-20px_20px_rgba(0,0,0,0.4)]`,
1276
1285
  style: { height: r }
1277
1286
  }
1278
- }, { className: v, style: D } = s[o];
1279
- return /* @__PURE__ */ gt(tt.Root, { direction: o, children: [
1280
- /* @__PURE__ */ S(tt.Trigger, { children: t }),
1287
+ }, { className: D, style: f } = v[o];
1288
+ return /* @__PURE__ */ E(je, { children: /* @__PURE__ */ gt(tt.Root, { direction: o, children: [
1289
+ /* @__PURE__ */ E(tt.Trigger, { ...u && { asChild: u }, children: t }),
1281
1290
  /* @__PURE__ */ gt(tt.Portal, { children: [
1282
- /* @__PURE__ */ S(tt.Overlay, { className: "fixed inset-0 bg-transparent" }),
1283
- /* @__PURE__ */ gt(
1291
+ /* @__PURE__ */ E(tt.Overlay, { className: "fixed inset-0 bg-transparent" }),
1292
+ /* @__PURE__ */ E(
1284
1293
  tt.Content,
1285
1294
  {
1286
- className: `bg-drawer-bg z-10 flex flex-col outline-none [&_*]:box-border ${v}`,
1287
- style: D,
1288
- children: [
1289
- /* @__PURE__ */ S(tt.Close, {}),
1290
- /* @__PURE__ */ S(tt.Title, { className: "text-text-primary px-3 text-lg font-medium", children: n }),
1291
- /* @__PURE__ */ S(tt.Description, { className: "!text-text-secondary mb-2 px-3 !text-xs uppercase", children: e }),
1292
- /* @__PURE__ */ S("div", { className: "w-auto min-w-0 overflow-hidden px-3 py-2 [&_*]:min-w-0 [&>*]:min-w-0", children: a })
1293
- ]
1295
+ asChild: !0,
1296
+ className: `bg-drawer-bg z-10 flex flex-col outline-none [&_*]:box-border ${D}`,
1297
+ style: f,
1298
+ children: /* @__PURE__ */ gt("div", { children: [
1299
+ /* @__PURE__ */ E(tt.Close, {}),
1300
+ /* @__PURE__ */ E(tt.Title, { className: "text-text-primary px-3 text-lg font-medium", children: n }),
1301
+ /* @__PURE__ */ E(tt.Description, { className: "!text-text-secondary mb-2 px-3 !text-xs uppercase", children: e }),
1302
+ /* @__PURE__ */ E("div", { className: "w-auto min-w-0 overflow-hidden px-3 py-2 [&_*]:min-w-0 [&>*]:min-w-0", children: a })
1303
+ ] })
1294
1304
  }
1295
1305
  )
1296
1306
  ] })
1297
- ] });
1307
+ ] }) });
1298
1308
  };
1299
1309
  export {
1300
- rr as Drawer
1310
+ or as Drawer
1301
1311
  };