@pfct/purple 1.5.0-npm-next.3 → 1.5.0-npm-next.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/dist/chunks/{index.B4T1_S1a.js → index.B7ToLlZV.js} +300 -300
  2. package/dist/chunks/index.BUYroSWi.js +1 -0
  3. package/dist/chunks/index.CycwZAWT.js +67 -0
  4. package/dist/chunks/index.D2Ren1qk.js +45 -0
  5. package/dist/chunks/{index.styled.D9nfJhVZ.js → index.styled.BYNpitkL.js} +252 -252
  6. package/dist/chunks/index.styled.BbkiuKd_.js +398 -0
  7. package/dist/components/Accordion/index.cjs.js +1 -1
  8. package/dist/components/Accordion/index.es.js +223 -223
  9. package/dist/components/Badge/BaseBadge/index.cjs.js +1 -1
  10. package/dist/components/Badge/BaseBadge/index.es.js +10 -10
  11. package/dist/components/Badge/BaseBadge/index.styled.cjs.js +1 -1
  12. package/dist/components/Badge/BaseBadge/index.styled.es.js +2 -2
  13. package/dist/components/Badge/IconBadge/index.cjs.js +1 -1
  14. package/dist/components/Badge/IconBadge/index.es.js +6 -6
  15. package/dist/components/Badge/TextBadge/index.cjs.js +1 -1
  16. package/dist/components/Badge/TextBadge/index.es.js +7 -7
  17. package/dist/components/BottomSheet/BaseBottomSheet/index.cjs.js +1 -1
  18. package/dist/components/BottomSheet/BaseBottomSheet/index.es.js +22 -21
  19. package/dist/components/BottomSheet/NavBottomSheet/index.cjs.js +1 -1
  20. package/dist/components/BottomSheet/NavBottomSheet/index.es.js +2 -2
  21. package/dist/components/BottomSheet/TitleBottomSheet/index.cjs.js +1 -1
  22. package/dist/components/BottomSheet/TitleBottomSheet/index.es.js +2 -2
  23. package/dist/components/BottomSheet/index.cjs.js +1 -1
  24. package/dist/components/BottomSheet/index.es.js +1 -1
  25. package/dist/components/Button/BaseButton/index.cjs.js +1 -1
  26. package/dist/components/Button/BaseButton/index.es.js +5 -5
  27. package/dist/components/Button/DoubleButton/index.cjs.js +1 -1
  28. package/dist/components/Button/DoubleButton/index.es.js +2 -2
  29. package/dist/components/Button/FloatBaseButton/index.cjs.js +1 -1
  30. package/dist/components/Button/FloatBaseButton/index.es.js +12 -12
  31. package/dist/components/Button/FloatDoubleButton/index.cjs.js +1 -1
  32. package/dist/components/Button/FloatDoubleButton/index.es.js +11 -11
  33. package/dist/components/Button/FloatSingleButton/index.cjs.js +1 -1
  34. package/dist/components/Button/FloatSingleButton/index.es.js +12 -12
  35. package/dist/components/Button/SingleButton/index.cjs.js +1 -1
  36. package/dist/components/Button/SingleButton/index.es.js +4 -4
  37. package/dist/components/Button/TestButton/index.cjs.js +1 -1
  38. package/dist/components/Button/TestButton/index.es.js +2 -2
  39. package/dist/components/Button/index.cjs.js +1 -1
  40. package/dist/components/Button/index.es.js +1 -1
  41. package/dist/components/Card/index.cjs.js +1 -1
  42. package/dist/components/Card/index.es.js +7 -7
  43. package/dist/components/Chips/BasicChips/index.cjs.js +1 -1
  44. package/dist/components/Chips/BasicChips/index.es.js +8 -8
  45. package/dist/components/Chips/BasicChips/index.styled.cjs.js +1 -1
  46. package/dist/components/Chips/BasicChips/index.styled.es.js +2 -2
  47. package/dist/components/Chips/ChipItem/index.cjs.js +1 -1
  48. package/dist/components/Chips/ChipItem/index.es.js +46 -48
  49. package/dist/components/Chips/ChipItem/index.styled.cjs.js +1 -1
  50. package/dist/components/Chips/ChipItem/index.styled.es.js +20 -19
  51. package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
  52. package/dist/components/Chips/ChipsFrame/index.es.js +28 -28
  53. package/dist/components/Chips/ChipsFrame/index.styled.cjs.js +1 -1
  54. package/dist/components/Chips/ChipsFrame/index.styled.es.js +2 -2
  55. package/dist/components/Comment/Group/index.cjs.js +1 -1
  56. package/dist/components/Comment/Group/index.es.js +3 -3
  57. package/dist/components/Comment/Item/index.cjs.js +1 -1
  58. package/dist/components/Comment/Item/index.es.js +6 -6
  59. package/dist/components/Control/CheckBox/CheckIcon.cjs.js +1 -1
  60. package/dist/components/Control/CheckBox/CheckIcon.es.js +8 -8
  61. package/dist/components/Control/CheckBox/index.cjs.js +1 -1
  62. package/dist/components/Control/CheckBox/index.es.js +29 -28
  63. package/dist/components/Control/CheckMark/CheckMark.cjs.js +1 -1
  64. package/dist/components/Control/CheckMark/CheckMark.es.js +3 -3
  65. package/dist/components/Control/CheckMark/index.cjs.js +1 -1
  66. package/dist/components/Control/CheckMark/index.es.js +22 -21
  67. package/dist/components/Control/RadioButton/index.cjs.js +1 -1
  68. package/dist/components/Control/RadioButton/index.es.js +11 -11
  69. package/dist/components/Control/RadioButton/index.styled.cjs.js +1 -1
  70. package/dist/components/Control/RadioButton/index.styled.es.js +17 -16
  71. package/dist/components/Control/Switch/index.cjs.js +1 -1
  72. package/dist/components/Control/Switch/index.es.js +23 -22
  73. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.cjs.js +1 -1
  74. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.es.js +25 -24
  75. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +1 -1
  76. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.es.js +26 -25
  77. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.cjs.js +1 -1
  78. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.es.js +3 -3
  79. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.cjs.js +1 -1
  80. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.es.js +27 -26
  81. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +1 -1
  82. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.es.js +31 -30
  83. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +1 -1
  84. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.es.js +27 -26
  85. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.cjs.js +1 -1
  86. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.styled.es.js +28 -27
  87. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +1 -1
  88. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.es.js +5 -5
  89. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.cjs.js +1 -1
  90. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.styled.es.js +1 -1
  91. package/dist/components/DatePicker/BaseDatePicker/Month/index.cjs.js +1 -1
  92. package/dist/components/DatePicker/BaseDatePicker/Month/index.es.js +4 -4
  93. package/dist/components/DatePicker/BaseDatePicker/Week/index.cjs.js +1 -1
  94. package/dist/components/DatePicker/BaseDatePicker/Week/index.es.js +3 -3
  95. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.cjs.js +1 -1
  96. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.es.js +25 -25
  97. package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +1 -1
  98. package/dist/components/DatePicker/BaseDatePicker/index.es.js +46 -45
  99. package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +1 -1
  100. package/dist/components/DatePicker/RangeDatePickerModal/index.es.js +26 -26
  101. package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +1 -1
  102. package/dist/components/DatePicker/SingleDatePickerModal/index.es.js +27 -26
  103. package/dist/components/Divider/index.cjs.js +1 -1
  104. package/dist/components/Divider/index.es.js +3 -3
  105. package/dist/components/Input/BaseInput/index.cjs.js +1 -1
  106. package/dist/components/Input/BaseInput/index.es.js +39 -39
  107. package/dist/components/Input/NumberInput/index.cjs.js +1 -1
  108. package/dist/components/Input/NumberInput/index.es.js +38 -37
  109. package/dist/components/Input/PostfixInput/index.cjs.js +1 -1
  110. package/dist/components/Input/PostfixInput/index.es.js +60 -60
  111. package/dist/components/Input/PostfixInput/index.util.cjs.js +1 -1
  112. package/dist/components/Input/PostfixInput/index.util.es.js +20 -19
  113. package/dist/components/Input/ResidentNumberInput/index.cjs.js +1 -1
  114. package/dist/components/Input/ResidentNumberInput/index.es.js +73 -73
  115. package/dist/components/Input/TextField/index.cjs.js +1 -1
  116. package/dist/components/Input/TextField/index.es.js +49 -49
  117. package/dist/components/Input/common/InputFrame/index.cjs.js +1 -1
  118. package/dist/components/Input/common/InputFrame/index.es.js +17 -17
  119. package/dist/components/Input/index.cjs.js +1 -1
  120. package/dist/components/Input/index.d.ts +1 -0
  121. package/dist/components/Input/index.es.js +24 -22
  122. package/dist/components/List/index.cjs.js +1 -1
  123. package/dist/components/List/index.es.js +13 -13
  124. package/dist/components/Loading/ProgressBar/index.cjs.js +1 -1
  125. package/dist/components/Loading/ProgressBar/index.es.js +7 -7
  126. package/dist/components/Loading/ProgressBar/index.styled.cjs.js +1 -1
  127. package/dist/components/Loading/ProgressBar/index.styled.es.js +18 -17
  128. package/dist/components/Loading/Skeleton/SkeletonLayout/index.cjs.js +1 -1
  129. package/dist/components/Loading/Skeleton/SkeletonLayout/index.es.js +3 -3
  130. package/dist/components/Loading/Skeleton/index.cjs.js +1 -1
  131. package/dist/components/Loading/Skeleton/index.es.js +10 -10
  132. package/dist/components/Loading/Spinner/index.cjs.js +1 -1
  133. package/dist/components/Loading/Spinner/index.es.js +2 -2
  134. package/dist/components/Loading/index.cjs.js +1 -1
  135. package/dist/components/Loading/index.es.js +1 -1
  136. package/dist/components/MiniButton/BoxMiniButton/index.cjs.js +1 -1
  137. package/dist/components/MiniButton/BoxMiniButton/index.es.js +6 -6
  138. package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
  139. package/dist/components/MiniButton/IconMiniButton/index.es.js +27 -30
  140. package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
  141. package/dist/components/MiniButton/UnderLineMiniButton/index.es.js +39 -42
  142. package/dist/components/MiniButton/common/ButtonTag.cjs.js +1 -1
  143. package/dist/components/MiniButton/common/ButtonTag.es.js +3 -3
  144. package/dist/components/MiniButton/common/index.styled.cjs.js +1 -1
  145. package/dist/components/MiniButton/common/index.styled.es.js +19 -18
  146. package/dist/components/Modal/BaseModal/index.cjs.js +1 -1
  147. package/dist/components/Modal/BaseModal/index.es.js +2 -2
  148. package/dist/components/Modal/index.cjs.js +1 -1
  149. package/dist/components/Modal/index.es.js +2 -2
  150. package/dist/components/Navigation/BaseNavigation/index.cjs.js +1 -1
  151. package/dist/components/Navigation/BaseNavigation/index.es.js +15 -15
  152. package/dist/components/Navigation/BottomNavigationBar/index.cjs.js +1 -1
  153. package/dist/components/Navigation/BottomNavigationBar/index.es.js +12 -12
  154. package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
  155. package/dist/components/Navigation/PageNavigationBar/index.es.js +33 -33
  156. package/dist/components/Navigation/TitleNavigationBar/index.cjs.js +1 -1
  157. package/dist/components/Navigation/TitleNavigationBar/index.es.js +24 -24
  158. package/dist/components/Navigation/index.cjs.js +1 -1
  159. package/dist/components/Navigation/index.es.js +31 -31
  160. package/dist/components/OverlayRoot/index.cjs.js +1 -1
  161. package/dist/components/OverlayRoot/index.es.js +17 -16
  162. package/dist/components/Segment/BaseSegment/index.cjs.js +1 -1
  163. package/dist/components/Segment/BaseSegment/index.es.js +14 -14
  164. package/dist/components/Segment/ExtendSegment/index.cjs.js +1 -1
  165. package/dist/components/Segment/ExtendSegment/index.es.js +19 -19
  166. package/dist/components/SelectBox/index.cjs.js +1 -1
  167. package/dist/components/SelectBox/index.es.js +55 -55
  168. package/dist/components/SelectBox/index.styled.cjs.js +1 -1
  169. package/dist/components/SelectBox/index.styled.es.js +24 -23
  170. package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
  171. package/dist/components/Tabs/FillTabs/index.es.js +26 -25
  172. package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
  173. package/dist/components/Tabs/TextTabs/index.es.js +31 -30
  174. package/dist/components/Tag/index.cjs.js +1 -1
  175. package/dist/components/Tag/index.es.js +4 -4
  176. package/dist/components/Tag/index.styled.cjs.js +1 -1
  177. package/dist/components/Tag/index.styled.es.js +17 -16
  178. package/dist/components/Terms/index.cjs.js +1 -1
  179. package/dist/components/Terms/index.es.js +40 -39
  180. package/dist/components/Title/index.cjs.js +1 -1
  181. package/dist/components/Title/index.es.js +13 -13
  182. package/dist/components/Title/index.styled.cjs.js +1 -1
  183. package/dist/components/Title/index.styled.es.js +18 -17
  184. package/dist/components/ToastMessage/BaseToastMessage/index.cjs.js +1 -1
  185. package/dist/components/ToastMessage/BaseToastMessage/index.es.js +10 -10
  186. package/dist/components/ToastMessage/BaseToastMessage/index.styled.cjs.js +1 -1
  187. package/dist/components/ToastMessage/BaseToastMessage/index.styled.es.js +18 -17
  188. package/dist/components/ToastMessage/Toast/index.cjs.js +1 -1
  189. package/dist/components/ToastMessage/Toast/index.es.js +20 -20
  190. package/dist/components/Tooltip/BasicTooltip/index.cjs.js +1 -1
  191. package/dist/components/Tooltip/BasicTooltip/index.es.js +4 -4
  192. package/dist/components/Tooltip/ImpactTooltip/index.cjs.js +1 -1
  193. package/dist/components/Tooltip/ImpactTooltip/index.es.js +5 -5
  194. package/dist/components/Tooltip/TooltipBase/index.cjs.js +2 -2
  195. package/dist/components/Tooltip/TooltipBase/index.es.js +42 -42
  196. package/dist/components/index.cjs.js +1 -1
  197. package/dist/components/index.es.js +36 -34
  198. package/dist/components/ui/bottomSheet.cjs.js +7 -7
  199. package/dist/components/ui/bottomSheet.es.js +90 -90
  200. package/dist/components/ui/button.cjs.js +1 -1
  201. package/dist/components/ui/button.es.js +3 -3
  202. package/dist/components/ui/dialog.cjs.js +1 -1
  203. package/dist/components/ui/dialog.es.js +43 -43
  204. package/dist/components/ui/drawer.cjs.js +2 -2
  205. package/dist/components/ui/drawer.es.js +159 -159
  206. package/dist/components/ui/share-ui.cjs.js +1 -1
  207. package/dist/components/ui/share-ui.es.js +34 -34
  208. package/dist/components/ui/typography.cjs.js +1 -1
  209. package/dist/components/ui/typography.es.js +3 -3
  210. package/dist/core/Display/Mobile.cjs.js +1 -1
  211. package/dist/core/Display/Mobile.es.js +4 -4
  212. package/dist/core/Display/Pc.cjs.js +1 -1
  213. package/dist/core/Display/Pc.es.js +4 -4
  214. package/dist/core/Display/index.styled.cjs.js +1 -1
  215. package/dist/core/Display/index.styled.es.js +18 -17
  216. package/dist/core/Typography/BaseTypography/index.cjs.js +1 -1
  217. package/dist/core/Typography/BaseTypography/index.es.js +5 -5
  218. package/dist/core/Typography/index.cjs.js +1 -1
  219. package/dist/core/Typography/index.es.js +19 -19
  220. package/dist/hooks/useLayoutIsMobile.cjs.js +1 -1
  221. package/dist/hooks/useLayoutIsMobile.es.js +18 -17
  222. package/dist/icons/src/aliases/aliases.cjs.js +1 -1
  223. package/dist/icons/src/aliases/aliases.d.ts +13 -13
  224. package/dist/icons/src/aliases/aliases.es.js +46 -46
  225. package/dist/icons/src/aliases/index.cjs.js +1 -1
  226. package/dist/icons/src/aliases/index.es.js +92 -92
  227. package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
  228. package/dist/icons/src/aliases/prefixed.d.ts +16 -16
  229. package/dist/icons/src/aliases/prefixed.es.js +50 -50
  230. package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
  231. package/dist/icons/src/aliases/suffixed.d.ts +17 -17
  232. package/dist/icons/src/aliases/suffixed.es.js +42 -42
  233. package/dist/icons/src/icons/index.cjs.js +1 -1
  234. package/dist/icons/src/icons/index.d.ts +12 -12
  235. package/dist/icons/src/icons/index.es.js +48 -48
  236. package/dist/index.cjs.js +1 -1
  237. package/dist/index.es.js +254 -252
  238. package/dist/library/BasicForm/index.cjs.js +1 -1
  239. package/dist/library/BasicForm/index.es.js +11 -11
  240. package/dist/library/BasicLayout/Body.cjs.js +1 -1
  241. package/dist/library/BasicLayout/Body.es.js +7 -7
  242. package/dist/library/BasicLayout/Footer.cjs.js +1 -1
  243. package/dist/library/BasicLayout/Footer.es.js +74 -73
  244. package/dist/library/BasicLayout/index.cjs.js +1 -1
  245. package/dist/library/BasicLayout/index.es.js +50 -49
  246. package/dist/library/BasicLayout/index.styled.cjs.js +1 -1
  247. package/dist/library/BasicLayout/index.styled.es.js +46 -45
  248. package/dist/library/IconWithImage/index.cjs.js +1 -1
  249. package/dist/library/IconWithImage/index.es.js +4 -4
  250. package/dist/library/List/BottomSheetItemList/index.cjs.js +1 -1
  251. package/dist/library/List/BottomSheetItemList/index.es.js +5 -5
  252. package/dist/library/Lottie/index.cjs.js +1 -1
  253. package/dist/library/Lottie/index.es.js +55 -55
  254. package/dist/library/Spacing/index.cjs.js +1 -1
  255. package/dist/library/Spacing/index.es.js +3 -3
  256. package/dist/utils/GenerateColorStyle/chip.cjs.js +1 -1
  257. package/dist/utils/GenerateColorStyle/chip.es.js +2 -2
  258. package/dist/utils/GenerateColorStyle/index.cjs.js +1 -1
  259. package/dist/utils/GenerateColorStyle/index.es.js +1 -1
  260. package/dist/utils/GenerateColorStyle/tab/fill-tabs.cjs.js +1 -1
  261. package/dist/utils/GenerateColorStyle/tab/fill-tabs.es.js +18 -17
  262. package/dist/utils/GenerateColorStyle/tab/text-tabs.cjs.js +1 -1
  263. package/dist/utils/GenerateColorStyle/tab/text-tabs.es.js +18 -17
  264. package/dist/utils/index.cjs.js +1 -1
  265. package/dist/utils/index.es.js +1 -1
  266. package/package.json +1 -1
  267. package/dist/chunks/index.Dj0l8V9d.js +0 -67
  268. package/dist/chunks/index.DsdUneNS.js +0 -45
  269. package/dist/chunks/index.Y_MfYxSQ.js +0 -1
  270. package/dist/chunks/index.styled.7ZYWAl1u.js +0 -398
  271. package/dist/chunks/jsx-runtime.713F0z8w.js +0 -30
  272. package/dist/chunks/jsx-runtime.Drh4NO5G.js +0 -633
@@ -1,14 +1,14 @@
1
- import { j as z } from "../../chunks/jsx-runtime.Drh4NO5G.js";
2
- import { O as he, a as ge, b as ve, C as ye, T as be, D as Se, R as Te, P as Re } from "../../chunks/index.B4T1_S1a.js";
3
- import * as De from "react";
4
- import r, { useMemo as Ee, useLayoutEffect as xe, useEffect as Oe } from "react";
1
+ import { jsx as j, jsxs as he } from "react/jsx-runtime";
2
+ import { O as ge, a as ve, b as ye, C as be, T as Se, D as Te, R as De, P as Re } from "../../chunks/index.B7ToLlZV.js";
3
+ import * as Ee from "react";
4
+ import r, { useMemo as xe, useLayoutEffect as Oe, useEffect as Ce } from "react";
5
5
  import { c as at } from "../../chunks/utils.B9KdtH6G.js";
6
- function Ce(t) {
6
+ function $e(t) {
7
7
  if (typeof document > "u") return;
8
8
  let n = document.head || document.getElementsByTagName("head")[0], e = document.createElement("style");
9
9
  e.type = "text/css", n.appendChild(e), e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
10
10
  }
11
- const Vt = r.createContext({
11
+ const jt = r.createContext({
12
12
  drawerRef: {
13
13
  current: null
14
14
  },
@@ -56,56 +56,56 @@ const Vt = r.createContext({
56
56
  container: null,
57
57
  autoFocus: !1
58
58
  }), ft = () => {
59
- const t = r.useContext(Vt);
59
+ const t = r.useContext(jt);
60
60
  if (!t)
61
61
  throw new Error("useDrawerContext must be used within a Drawer.Root");
62
62
  return t;
63
63
  };
64
- Ce(`[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(
64
+ $e(`[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(
65
65
  [data-state=closed]
66
66
  ){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)}}`);
67
- function $e() {
67
+ function Ae() {
68
68
  const t = navigator.userAgent;
69
69
  return typeof window < "u" && (/Firefox/.test(t) && /Mobile/.test(t) || // Android Firefox
70
70
  /FxiOS/.test(t));
71
71
  }
72
- function Ae() {
72
+ function Me() {
73
73
  return At(/^Mac/);
74
74
  }
75
- function Me() {
75
+ function Pe() {
76
76
  return At(/^iPhone/);
77
77
  }
78
78
  function Ft() {
79
79
  return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
80
80
  }
81
- function Pe() {
81
+ function Ie() {
82
82
  return At(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
83
- Ae() && navigator.maxTouchPoints > 1;
83
+ Me() && navigator.maxTouchPoints > 1;
84
84
  }
85
85
  function Yt() {
86
- return Me() || Pe();
86
+ return Pe() || Ie();
87
87
  }
88
88
  function At(t) {
89
89
  return typeof window < "u" && window.navigator != null ? t.test(window.navigator.platform) : void 0;
90
90
  }
91
- const Ie = 24, Ne = typeof window < "u" ? xe : Oe;
92
- function jt(...t) {
91
+ const Ne = 24, _e = typeof window < "u" ? Oe : Ce;
92
+ function Wt(...t) {
93
93
  return (...n) => {
94
94
  for (let e of t)
95
95
  typeof e == "function" && e(...n);
96
96
  };
97
97
  }
98
- const Dt = typeof document < "u" && window.visualViewport;
99
- function Wt(t) {
98
+ const Rt = typeof document < "u" && window.visualViewport;
99
+ function zt(t) {
100
100
  let n = window.getComputedStyle(t);
101
101
  return /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
102
102
  }
103
103
  function qt(t) {
104
- for (Wt(t) && (t = t.parentElement); t && !Wt(t); )
104
+ for (zt(t) && (t = t.parentElement); t && !zt(t); )
105
105
  t = t.parentElement;
106
106
  return t || document.scrollingElement || document.documentElement;
107
107
  }
108
- const _e = /* @__PURE__ */ new Set([
108
+ const He = /* @__PURE__ */ new Set([
109
109
  "checkbox",
110
110
  "radio",
111
111
  "range",
@@ -117,18 +117,18 @@ const _e = /* @__PURE__ */ new Set([
117
117
  "reset"
118
118
  ]);
119
119
  let ht = 0, Et;
120
- function He(t = {}) {
120
+ function Le(t = {}) {
121
121
  let { isDisabled: n } = t;
122
- Ne(() => {
122
+ _e(() => {
123
123
  if (!n)
124
- return ht++, ht === 1 && Yt() && (Et = Le()), () => {
124
+ return ht++, ht === 1 && Yt() && (Et = ke()), () => {
125
125
  ht--, ht === 0 && (Et == null || Et());
126
126
  };
127
127
  }, [
128
128
  n
129
129
  ]);
130
130
  }
131
- function Le() {
131
+ function ke() {
132
132
  let t, n = 0, e = (f) => {
133
133
  t = qt(f.target), !(t === document.documentElement && t === document.body) && (n = f.changedTouches[0].pageY);
134
134
  }, o = (f) => {
@@ -146,17 +146,17 @@ function Le() {
146
146
  }, a = (f) => {
147
147
  let m = f.target;
148
148
  Ct(m) && (m.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
149
- m.style.transform = "", Dt && (Dt.height < window.innerHeight ? requestAnimationFrame(() => {
150
- zt(m);
151
- }) : Dt.addEventListener("resize", () => zt(m), {
149
+ m.style.transform = "", Rt && (Rt.height < window.innerHeight ? requestAnimationFrame(() => {
150
+ Vt(m);
151
+ }) : Rt.addEventListener("resize", () => Vt(m), {
152
152
  once: !0
153
153
  }));
154
154
  }));
155
155
  }, v = () => {
156
156
  window.scrollTo(0, 0);
157
- }, p = window.pageXOffset, T = window.pageYOffset, D = jt(ke(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
157
+ }, p = window.pageXOffset, T = window.pageYOffset, R = Wt(Be(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
158
158
  window.scrollTo(0, 0);
159
- let h = jt(ct(document, "touchstart", e, {
159
+ let h = Wt(ct(document, "touchstart", e, {
160
160
  passive: !1,
161
161
  capture: !0
162
162
  }), ct(document, "touchmove", o, {
@@ -167,10 +167,10 @@ function Le() {
167
167
  capture: !0
168
168
  }), ct(document, "focus", a, !0), ct(window, "scroll", v));
169
169
  return () => {
170
- D(), h(), window.scrollTo(p, T);
170
+ R(), h(), window.scrollTo(p, T);
171
171
  };
172
172
  }
173
- function ke(t, n, e) {
173
+ function Be(t, n, e) {
174
174
  let o = t.style[n];
175
175
  return t.style[n] = e, () => {
176
176
  t.style[n] = o;
@@ -181,29 +181,29 @@ function ct(t, n, e, o) {
181
181
  t.removeEventListener(n, e, o);
182
182
  };
183
183
  }
184
- function zt(t) {
184
+ function Vt(t) {
185
185
  let n = document.scrollingElement || document.documentElement;
186
186
  for (; t && t !== n; ) {
187
187
  let e = qt(t);
188
188
  if (e !== document.documentElement && e !== document.body && e !== t) {
189
189
  let o = e.getBoundingClientRect().top, i = t.getBoundingClientRect().top, a = t.getBoundingClientRect().bottom;
190
- const v = e.getBoundingClientRect().bottom + Ie;
190
+ const v = e.getBoundingClientRect().bottom + Ne;
191
191
  a > v && (e.scrollTop += i - o);
192
192
  }
193
193
  t = e.parentElement;
194
194
  }
195
195
  }
196
196
  function Ct(t) {
197
- return t instanceof HTMLInputElement && !_e.has(t.type) || t instanceof HTMLTextAreaElement || t instanceof HTMLElement && t.isContentEditable;
197
+ return t instanceof HTMLInputElement && !He.has(t.type) || t instanceof HTMLTextAreaElement || t instanceof HTMLElement && t.isContentEditable;
198
198
  }
199
- function Be(t, n) {
199
+ function Ue(t, n) {
200
200
  typeof t == "function" ? t(n) : t != null && (t.current = n);
201
201
  }
202
- function Ue(...t) {
203
- return (n) => t.forEach((e) => Be(e, n));
202
+ function Fe(...t) {
203
+ return (n) => t.forEach((e) => Ue(e, n));
204
204
  }
205
205
  function Xt(...t) {
206
- return De.useCallback(Ue(...t), t);
206
+ return Ee.useCallback(Fe(...t), t);
207
207
  }
208
208
  const Kt = /* @__PURE__ */ new WeakMap();
209
209
  function $(t, n, e = !1) {
@@ -217,7 +217,7 @@ function $(t, n, e = !1) {
217
217
  o[i] = t.style[i], t.style[i] = a;
218
218
  }), !e && Kt.set(t, o);
219
219
  }
220
- function Fe(t, n) {
220
+ function We(t, n) {
221
221
  if (!t || !(t instanceof HTMLElement)) return;
222
222
  let e = Kt.get(t);
223
223
  e && (t.style[n] = e[n]);
@@ -244,7 +244,7 @@ function gt(t, n) {
244
244
  let i = o.match(/^matrix3d\((.+)\)$/);
245
245
  return i ? parseFloat(i[1].split(", ")[C(n) ? 13 : 12]) : (i = o.match(/^matrix\((.+)\)$/), i ? parseFloat(i[1].split(", ")[C(n) ? 5 : 4]) : null);
246
246
  }
247
- function je(t) {
247
+ function ze(t) {
248
248
  return 8 * (Math.log(t + 1) - 2);
249
249
  }
250
250
  function xt(t, n) {
@@ -255,7 +255,7 @@ function xt(t, n) {
255
255
  t.style.cssText = e;
256
256
  };
257
257
  }
258
- function We(...t) {
258
+ function Ve(...t) {
259
259
  return (...n) => {
260
260
  for (const e of t)
261
261
  typeof e == "function" && e(...n);
@@ -269,14 +269,14 @@ const x = {
269
269
  0,
270
270
  1
271
271
  ]
272
- }, Gt = 0.4, ze = 0.25, Ve = 100, Jt = 8, vt = 16, $t = 26, Ot = "vaul-dragging";
272
+ }, Gt = 0.4, je = 0.25, Ye = 100, Jt = 8, vt = 16, $t = 26, Ot = "vaul-dragging";
273
273
  function Qt(t) {
274
274
  const n = r.useRef(t);
275
275
  return r.useEffect(() => {
276
276
  n.current = t;
277
277
  }), r.useMemo(() => (...e) => n.current == null ? void 0 : n.current.call(n, ...e), []);
278
278
  }
279
- function Ye({ defaultProp: t, onChange: n }) {
279
+ function qe({ defaultProp: t, onChange: n }) {
280
280
  const e = r.useState(t), [o] = e, i = r.useRef(o), a = Qt(n);
281
281
  return r.useEffect(() => {
282
282
  i.current !== o && (a(o), i.current = o);
@@ -288,15 +288,15 @@ function Ye({ defaultProp: t, onChange: n }) {
288
288
  }
289
289
  function Zt({ prop: t, defaultProp: n, onChange: e = () => {
290
290
  } }) {
291
- const [o, i] = Ye({
291
+ const [o, i] = qe({
292
292
  defaultProp: n,
293
293
  onChange: e
294
- }), a = t !== void 0, v = a ? t : o, p = Qt(e), T = r.useCallback((D) => {
294
+ }), a = t !== void 0, v = a ? t : o, p = Qt(e), T = r.useCallback((R) => {
295
295
  if (a) {
296
- const f = typeof D == "function" ? D(t) : D;
296
+ const f = typeof R == "function" ? R(t) : R;
297
297
  f !== t && p(f);
298
298
  } else
299
- i(D);
299
+ i(R);
300
300
  }, [
301
301
  a,
302
302
  t,
@@ -308,7 +308,7 @@ function Zt({ prop: t, defaultProp: n, onChange: e = () => {
308
308
  T
309
309
  ];
310
310
  }
311
- function qe({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e, drawerRef: o, overlayRef: i, fadeFromIndex: a, onSnapPointChange: v, direction: p = "bottom", container: T, snapToSequentialPoint: D }) {
311
+ function Xe({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e, drawerRef: o, overlayRef: i, fadeFromIndex: a, onSnapPointChange: v, direction: p = "bottom", container: T, snapToSequentialPoint: R }) {
312
312
  const [h, f] = Zt({
313
313
  prop: t,
314
314
  defaultProp: e == null ? void 0 : e[0],
@@ -354,8 +354,8 @@ function qe({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
354
354
  const s = N ? P : m ? y * u.height : 0;
355
355
  return m ? p === "bottom" ? u.height - s : -u.height + s : s;
356
356
  }
357
- const j = N ? P : m ? y * u.width : 0;
358
- return m ? p === "right" ? u.width - j : -u.width + j : j;
357
+ const W = N ? P : m ? y * u.width : 0;
358
+ return m ? p === "right" ? u.width - W : -u.width + W : W;
359
359
  })) != null ? b : [];
360
360
  }, [
361
361
  e,
@@ -400,19 +400,19 @@ function qe({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
400
400
  ]);
401
401
  function c({ draggedDistance: u, closeDrawer: b, velocity: y, dismissible: N }) {
402
402
  if (a === void 0) return;
403
- const P = p === "bottom" || p === "right" ? (M ?? 0) - u : (M ?? 0) + u, j = E === a - 1, s = E === 0, F = u > 0;
404
- if (j && $(i.current, {
403
+ const P = p === "bottom" || p === "right" ? (M ?? 0) - u : (M ?? 0) + u, W = E === a - 1, s = E === 0, F = u > 0;
404
+ if (W && $(i.current, {
405
405
  transition: `opacity ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`
406
- }), !D && y > 2 && !F) {
406
+ }), !R && y > 2 && !F) {
407
407
  N ? b() : A(w[0]);
408
408
  return;
409
409
  }
410
- if (!D && y > 2 && F && w && e) {
410
+ if (!R && y > 2 && F && w && e) {
411
411
  A(w[e.length - 1]);
412
412
  return;
413
413
  }
414
- const _ = w == null ? void 0 : w.reduce((I, X) => typeof I != "number" || typeof X != "number" ? I : Math.abs(X - P) < Math.abs(I - P) ? X : I), W = C(p) ? window.innerHeight : window.innerWidth;
415
- if (y > Gt && Math.abs(u) < W * 0.4) {
414
+ const _ = w == null ? void 0 : w.reduce((I, X) => typeof I != "number" || typeof X != "number" ? I : Math.abs(X - P) < Math.abs(I - P) ? X : I), z = C(p) ? window.innerHeight : window.innerWidth;
415
+ if (y > Gt && Math.abs(u) < z * 0.4) {
416
416
  const I = F ? 1 : -1;
417
417
  if (I > 0 && L && e) {
418
418
  A(w[e.length - 1]);
@@ -438,7 +438,7 @@ function qe({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
438
438
  return 0;
439
439
  if (y && !b) return 1;
440
440
  if (!U && !y) return null;
441
- const P = y ? E + 1 : E - 1, j = y ? w[P] - w[P - 1] : w[P + 1] - w[P], s = u / Math.abs(j);
441
+ const P = y ? E + 1 : E - 1, W = y ? w[P] - w[P - 1] : w[P + 1] - w[P], s = u / Math.abs(W);
442
442
  return y ? 1 - s : s;
443
443
  }
444
444
  return {
@@ -453,10 +453,10 @@ function qe({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
453
453
  snapPointsOffset: w
454
454
  };
455
455
  }
456
- const Xe = () => () => {
456
+ const Ke = () => () => {
457
457
  };
458
- function Ke() {
459
- const { direction: t, isOpen: n, shouldScaleBackground: e, setBackgroundColorOnScale: o, noBodyStyles: i } = ft(), a = r.useRef(null), v = Ee(() => document.body.style.backgroundColor, []);
458
+ function Ge() {
459
+ const { direction: t, isOpen: n, shouldScaleBackground: e, setBackgroundColorOnScale: o, noBodyStyles: i } = ft(), a = r.useRef(null), v = xe(() => document.body.style.backgroundColor, []);
460
460
  function p() {
461
461
  return (window.innerWidth - $t) / window.innerWidth;
462
462
  }
@@ -465,15 +465,15 @@ function Ke() {
465
465
  a.current && clearTimeout(a.current);
466
466
  const T = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
467
467
  if (!T) return;
468
- We(o && !i ? xt(document.body, {
468
+ Ve(o && !i ? xt(document.body, {
469
469
  background: "black"
470
- }) : Xe, xt(T, {
470
+ }) : Ke, xt(T, {
471
471
  transformOrigin: C(t) ? "top" : "left",
472
472
  transitionProperty: "transform, border-radius",
473
473
  transitionDuration: `${x.DURATION}s`,
474
474
  transitionTimingFunction: `cubic-bezier(${x.EASE.join(",")})`
475
475
  }));
476
- const D = xt(T, {
476
+ const R = xt(T, {
477
477
  borderRadius: `${Jt}px`,
478
478
  overflow: "hidden",
479
479
  ...C(t) ? {
@@ -483,7 +483,7 @@ function Ke() {
483
483
  }
484
484
  });
485
485
  return () => {
486
- D(), a.current = window.setTimeout(() => {
486
+ R(), a.current = window.setTimeout(() => {
487
487
  v ? document.body.style.background = v : document.body.style.removeProperty("background");
488
488
  }, x.DURATION * 1e3);
489
489
  };
@@ -495,8 +495,8 @@ function Ke() {
495
495
  ]);
496
496
  }
497
497
  let dt = null;
498
- function Ge({ isOpen: t, modal: n, nested: e, hasBeenOpened: o, preventScrollRestoration: i, noBodyStyles: a }) {
499
- const [v, p] = r.useState(() => typeof window < "u" ? window.location.href : ""), T = r.useRef(0), D = r.useCallback(() => {
498
+ function Je({ isOpen: t, modal: n, nested: e, hasBeenOpened: o, preventScrollRestoration: i, noBodyStyles: a }) {
499
+ const [v, p] = r.useState(() => typeof window < "u" ? window.location.href : ""), T = r.useRef(0), R = r.useCallback(() => {
500
500
  if (Ft() && dt === null && t && !a) {
501
501
  dt = {
502
502
  position: document.body.style.position,
@@ -548,7 +548,7 @@ function Ge({ isOpen: t, modal: n, nested: e, hasBeenOpened: o, preventScrollRes
548
548
  n,
549
549
  h
550
550
  ]), r.useEffect(() => {
551
- e || !o || (t ? (!window.matchMedia("(display-mode: standalone)").matches && D(), n || window.setTimeout(() => {
551
+ e || !o || (t ? (!window.matchMedia("(display-mode: standalone)").matches && R(), n || window.setTimeout(() => {
552
552
  h();
553
553
  }, 500)) : h());
554
554
  }, [
@@ -557,15 +557,15 @@ function Ge({ isOpen: t, modal: n, nested: e, hasBeenOpened: o, preventScrollRes
557
557
  v,
558
558
  n,
559
559
  e,
560
- D,
560
+ R,
561
561
  h
562
562
  ]), {
563
563
  restorePositionSetting: h
564
564
  };
565
565
  }
566
- function Je({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, snapPoints: a, shouldScaleBackground: v = !1, setBackgroundColorOnScale: p = !0, closeThreshold: T = ze, scrollLockTimeout: D = Ve, dismissible: h = !0, handleOnly: f = !1, fadeFromIndex: m = a && a.length - 1, activeSnapPoint: B, setActiveSnapPoint: L, fixed: E, modal: U = !0, onClose: w, nested: M, noBodyStyles: A = !1, direction: c = "bottom", defaultOpen: Y = !1, disablePreventScroll: Z = !0, snapToSequentialPoint: u = !1, preventScrollRestoration: b = !1, repositionInputs: y = !0, onAnimationEnd: N, container: P, autoFocus: j = !1 }) {
566
+ function Qe({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, snapPoints: a, shouldScaleBackground: v = !1, setBackgroundColorOnScale: p = !0, closeThreshold: T = je, scrollLockTimeout: R = Ye, dismissible: h = !0, handleOnly: f = !1, fadeFromIndex: m = a && a.length - 1, activeSnapPoint: B, setActiveSnapPoint: L, fixed: E, modal: U = !0, onClose: w, nested: M, noBodyStyles: A = !1, direction: c = "bottom", defaultOpen: Y = !1, disablePreventScroll: Z = !0, snapToSequentialPoint: u = !1, preventScrollRestoration: b = !1, repositionInputs: y = !0, onAnimationEnd: N, container: P, autoFocus: W = !1 }) {
567
567
  var s, F;
568
- const [_ = !1, W] = Zt({
568
+ const [_ = !1, z] = Zt({
569
569
  defaultProp: Y,
570
570
  prop: t,
571
571
  onChange: (l) => {
@@ -575,9 +575,9 @@ function Je({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
575
575
  document.body.style.pointerEvents = "auto";
576
576
  }), l || (document.body.style.pointerEvents = "auto");
577
577
  }
578
- }), [I, X] = r.useState(!1), [K, ot] = r.useState(!1), [ne, Mt] = r.useState(!1), et = r.useRef(null), mt = r.useRef(null), yt = r.useRef(null), bt = r.useRef(null), it = r.useRef(null), lt = r.useRef(!1), St = r.useRef(null), Tt = r.useRef(0), nt = r.useRef(!1), Pt = r.useRef(!Y), It = r.useRef(0), d = r.useRef(null), Nt = r.useRef(((s = d.current) == null ? void 0 : s.getBoundingClientRect().height) || 0), _t = r.useRef(((F = d.current) == null ? void 0 : F.getBoundingClientRect().width) || 0), Rt = r.useRef(0), re = r.useCallback((l) => {
578
+ }), [I, X] = r.useState(!1), [K, ot] = r.useState(!1), [ne, Mt] = r.useState(!1), et = r.useRef(null), mt = r.useRef(null), yt = r.useRef(null), bt = r.useRef(null), it = r.useRef(null), lt = r.useRef(!1), St = r.useRef(null), Tt = r.useRef(0), nt = r.useRef(!1), Pt = r.useRef(!Y), It = r.useRef(0), d = r.useRef(null), Nt = r.useRef(((s = d.current) == null ? void 0 : s.getBoundingClientRect().height) || 0), _t = r.useRef(((F = d.current) == null ? void 0 : F.getBoundingClientRect().width) || 0), Dt = r.useRef(0), re = r.useCallback((l) => {
579
579
  a && l === st.length - 1 && (mt.current = /* @__PURE__ */ new Date());
580
- }, []), { activeSnapPoint: ae, activeSnapPointIndex: rt, setActiveSnapPoint: Ht, onRelease: oe, snapPointsOffset: st, onDrag: ie, shouldFade: Lt, getPercentageDragged: le } = qe({
580
+ }, []), { activeSnapPoint: ae, activeSnapPointIndex: rt, setActiveSnapPoint: Ht, onRelease: oe, snapPointsOffset: st, onDrag: ie, shouldFade: Lt, getPercentageDragged: le } = Xe({
581
581
  snapPoints: a,
582
582
  activeSnapPointProp: B,
583
583
  setActiveSnapPointProp: L,
@@ -589,10 +589,10 @@ function Je({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
589
589
  container: P,
590
590
  snapToSequentialPoint: u
591
591
  });
592
- He({
592
+ Le({
593
593
  isDisabled: !_ || K || !U || ne || !I || !y || !Z
594
594
  });
595
- const { restorePositionSetting: se } = Ge({
595
+ const { restorePositionSetting: se } = Je({
596
596
  isOpen: _,
597
597
  modal: U,
598
598
  nested: M ?? !1,
@@ -604,15 +604,15 @@ function Je({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
604
604
  return (window.innerWidth - $t) / window.innerWidth;
605
605
  }
606
606
  function ue(l) {
607
- var S, R;
608
- !h && !a || d.current && !d.current.contains(l.target) || (Nt.current = ((S = d.current) == null ? void 0 : S.getBoundingClientRect().height) || 0, _t.current = ((R = d.current) == null ? void 0 : R.getBoundingClientRect().width) || 0, ot(!0), yt.current = /* @__PURE__ */ new Date(), Yt() && window.addEventListener("touchend", () => lt.current = !1, {
607
+ var S, D;
608
+ !h && !a || d.current && !d.current.contains(l.target) || (Nt.current = ((S = d.current) == null ? void 0 : S.getBoundingClientRect().height) || 0, _t.current = ((D = d.current) == null ? void 0 : D.getBoundingClientRect().width) || 0, ot(!0), yt.current = /* @__PURE__ */ new Date(), Yt() && window.addEventListener("touchend", () => lt.current = !1, {
609
609
  once: !0
610
610
  }), l.target.setPointerCapture(l.pointerId), Tt.current = C(c) ? l.pageY : l.pageX);
611
611
  }
612
612
  function kt(l, S) {
613
- var R;
613
+ var D;
614
614
  let g = l;
615
- const O = (R = window.getSelection()) == null ? void 0 : R.toString(), k = d.current ? gt(d.current, c) : null, H = /* @__PURE__ */ new Date();
615
+ const O = (D = window.getSelection()) == null ? void 0 : D.toString(), k = d.current ? gt(d.current, c) : null, H = /* @__PURE__ */ new Date();
616
616
  if (g.tagName === "SELECT" || g.hasAttribute("data-vaul-no-drag") || g.closest("[data-vaul-no-drag]"))
617
617
  return !1;
618
618
  if (c === "right" || c === "left")
@@ -623,7 +623,7 @@ function Je({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
623
623
  return !0;
624
624
  if (O && O.length > 0)
625
625
  return !1;
626
- if (it.current && H.getTime() - it.current.getTime() < D && k === 0 || S)
626
+ if (it.current && H.getTime() - it.current.getTime() < R && k === 0 || S)
627
627
  return it.current = H, !1;
628
628
  for (; g; ) {
629
629
  if (g.scrollHeight > g.clientHeight) {
@@ -638,9 +638,9 @@ function Je({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
638
638
  }
639
639
  function ce(l) {
640
640
  if (d.current && K) {
641
- const S = c === "bottom" || c === "right" ? 1 : -1, R = (Tt.current - (C(c) ? l.pageY : l.pageX)) * S, g = R > 0, O = a && !h && !g;
641
+ const S = c === "bottom" || c === "right" ? 1 : -1, D = (Tt.current - (C(c) ? l.pageY : l.pageX)) * S, g = D > 0, O = a && !h && !g;
642
642
  if (O && rt === 0) return;
643
- const k = Math.abs(R), H = document.querySelector("[data-vaul-drawer-wrapper]"), G = c === "bottom" || c === "top" ? Nt.current : _t.current;
643
+ const k = Math.abs(D), H = document.querySelector("[data-vaul-drawer-wrapper]"), G = c === "bottom" || c === "top" ? Nt.current : _t.current;
644
644
  let V = k / G;
645
645
  const tt = le(k, g);
646
646
  if (tt !== null && (V = tt), O && V >= 1 || !lt.current && !kt(l.target, g)) return;
@@ -649,9 +649,9 @@ function Je({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
649
649
  }), $(et.current, {
650
650
  transition: "none"
651
651
  }), a && ie({
652
- draggedDistance: R
652
+ draggedDistance: D
653
653
  }), g && !a) {
654
- const q = je(R), pt = Math.min(q * -1, 0) * S;
654
+ const q = ze(D), pt = Math.min(q * -1, 0) * S;
655
655
  $(d.current, {
656
656
  transform: C(c) ? `translate3d(0, ${pt}px, 0)` : `translate3d(${pt}px, 0, 0)`
657
657
  });
@@ -685,13 +685,13 @@ function Je({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
685
685
  var l;
686
686
  function S() {
687
687
  if (!d.current || !y) return;
688
- const R = document.activeElement;
689
- if (Ct(R) || nt.current) {
688
+ const D = document.activeElement;
689
+ if (Ct(D) || nt.current) {
690
690
  var g;
691
691
  const O = ((g = window.visualViewport) == null ? void 0 : g.height) || 0, k = window.innerHeight;
692
692
  let H = k - O;
693
693
  const G = d.current.getBoundingClientRect().height || 0, V = G > k * 0.8;
694
- Rt.current || (Rt.current = G);
694
+ Dt.current || (Dt.current = G);
695
695
  const tt = d.current.getBoundingClientRect().top;
696
696
  if (Math.abs(It.current - H) > 60 && (nt.current = !nt.current), a && a.length > 0 && st && rt) {
697
697
  const J = st[rt] || 0;
@@ -701,13 +701,13 @@ function Je({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
701
701
  const J = d.current.getBoundingClientRect().height;
702
702
  let q = J;
703
703
  J > O && (q = O - (V ? tt : $t)), E ? d.current.style.height = `${J - Math.max(H, 0)}px` : d.current.style.height = `${Math.max(q, O - tt)}px`;
704
- } else $e() || (d.current.style.height = `${Rt.current}px`);
704
+ } else Ae() || (d.current.style.height = `${Dt.current}px`);
705
705
  a && a.length > 0 && !nt.current ? d.current.style.bottom = "0px" : d.current.style.bottom = `${Math.max(H, 0)}px`;
706
706
  }
707
707
  }
708
708
  return (l = window.visualViewport) == null || l.addEventListener("resize", S), () => {
709
- var R;
710
- return (R = window.visualViewport) == null ? void 0 : R.removeEventListener("resize", S);
709
+ var D;
710
+ return (D = window.visualViewport) == null ? void 0 : D.removeEventListener("resize", S);
711
711
  };
712
712
  }, [
713
713
  rt,
@@ -715,7 +715,7 @@ function Je({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
715
715
  st
716
716
  ]);
717
717
  function ut(l) {
718
- de(), w == null || w(), l || W(!1), setTimeout(() => {
718
+ de(), w == null || w(), l || z(!1), setTimeout(() => {
719
719
  a && Ht(a[0]);
720
720
  }, x.DURATION * 1e3);
721
721
  }
@@ -751,7 +751,7 @@ function Je({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
751
751
  d.current.classList.remove(Ot), lt.current = !1, ot(!1), bt.current = /* @__PURE__ */ new Date();
752
752
  const S = gt(d.current, c);
753
753
  if (!l || !kt(l.target, !1) || !S || Number.isNaN(S) || yt.current === null) return;
754
- const R = bt.current.getTime() - yt.current.getTime(), g = Tt.current - (C(c) ? l.pageY : l.pageX), O = Math.abs(g) / R;
754
+ const D = bt.current.getTime() - yt.current.getTime(), g = Tt.current - (C(c) ? l.pageY : l.pageX), O = Math.abs(g) / D;
755
755
  if (O > 0.05 && (Mt(!0), setTimeout(() => {
756
756
  Mt(!1);
757
757
  }, 200)), a) {
@@ -784,15 +784,15 @@ function Je({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
784
784
  r.useEffect(() => (_ && ($(document.documentElement, {
785
785
  scrollBehavior: "auto"
786
786
  }), mt.current = /* @__PURE__ */ new Date()), () => {
787
- Fe(document.documentElement, "scrollBehavior");
787
+ We(document.documentElement, "scrollBehavior");
788
788
  }), [
789
789
  _
790
790
  ]);
791
791
  function me(l) {
792
- const S = l ? (window.innerWidth - vt) / window.innerWidth : 1, R = l ? -16 : 0;
792
+ const S = l ? (window.innerWidth - vt) / window.innerWidth : 1, D = l ? -16 : 0;
793
793
  St.current && window.clearTimeout(St.current), $(d.current, {
794
794
  transition: `transform ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
795
- transform: C(c) ? `scale(${S}) translate3d(0, ${R}px, 0)` : `scale(${S}) translate3d(${R}px, 0, 0)`
795
+ transform: C(c) ? `scale(${S}) translate3d(0, ${D}px, 0)` : `scale(${S}) translate3d(${D}px, 0, 0)`
796
796
  }), !l && d.current && (St.current = setTimeout(() => {
797
797
  const g = gt(d.current, c);
798
798
  $(d.current, {
@@ -803,14 +803,14 @@ function Je({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
803
803
  }
804
804
  function we(l, S) {
805
805
  if (S < 0) return;
806
- const R = (window.innerWidth - vt) / window.innerWidth, g = R + S * (1 - R), O = -16 + S * vt;
806
+ const D = (window.innerWidth - vt) / window.innerWidth, g = D + S * (1 - D), O = -16 + S * vt;
807
807
  $(d.current, {
808
808
  transform: C(c) ? `scale(${g}) translate3d(0, ${O}px, 0)` : `scale(${g}) translate3d(${O}px, 0, 0)`,
809
809
  transition: "none"
810
810
  });
811
811
  }
812
812
  function pe(l, S) {
813
- const R = C(c) ? window.innerHeight : window.innerWidth, g = S ? (R - vt) / R : 1, O = S ? -16 : 0;
813
+ const D = C(c) ? window.innerHeight : window.innerWidth, g = S ? (D - vt) / D : 1, O = S ? -16 : 0;
814
814
  S && $(d.current, {
815
815
  transition: `transform ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
816
816
  transform: C(c) ? `scale(${g}) translate3d(0, ${O}px, 0)` : `scale(${g}) translate3d(${O}px, 0, 0)`
@@ -822,13 +822,13 @@ function Je({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
822
822
  });
823
823
  }, [
824
824
  U
825
- ]), /* @__PURE__ */ r.createElement(Te, {
825
+ ]), /* @__PURE__ */ r.createElement(De, {
826
826
  defaultOpen: Y,
827
827
  onOpenChange: (l) => {
828
- !h && !l || (l ? X(!0) : ut(!0), W(l));
828
+ !h && !l || (l ? X(!0) : ut(!0), z(l));
829
829
  },
830
830
  open: _
831
- }, /* @__PURE__ */ r.createElement(Vt.Provider, {
831
+ }, /* @__PURE__ */ r.createElement(jt.Provider, {
832
832
  value: {
833
833
  activeSnapPoint: ae,
834
834
  snapPoints: a,
@@ -858,20 +858,20 @@ function Je({ open: t, onOpenChange: n, children: e, onDrag: o, onRelease: i, sn
858
858
  setBackgroundColorOnScale: p,
859
859
  noBodyStyles: A,
860
860
  container: P,
861
- autoFocus: j
861
+ autoFocus: W
862
862
  }
863
863
  }, e));
864
864
  }
865
865
  const te = /* @__PURE__ */ r.forwardRef(function({ ...t }, n) {
866
- const { overlayRef: e, snapPoints: o, onRelease: i, shouldFade: a, isOpen: v, modal: p, shouldAnimate: T } = ft(), D = Xt(n, e), h = o && o.length > 0;
866
+ const { overlayRef: e, snapPoints: o, onRelease: i, shouldFade: a, isOpen: v, modal: p, shouldAnimate: T } = ft(), R = Xt(n, e), h = o && o.length > 0;
867
867
  if (!p)
868
868
  return null;
869
869
  const f = r.useCallback((m) => i(m), [
870
870
  i
871
871
  ]);
872
- return /* @__PURE__ */ r.createElement(he, {
872
+ return /* @__PURE__ */ r.createElement(ge, {
873
873
  onMouseUp: f,
874
- ref: D,
874
+ ref: R,
875
875
  "data-vaul-overlay": "",
876
876
  "data-vaul-snap-points": v && h ? "true" : "false",
877
877
  "data-vaul-snap-points-overlay": v && a ? "true" : "false",
@@ -881,18 +881,18 @@ const te = /* @__PURE__ */ r.forwardRef(function({ ...t }, n) {
881
881
  });
882
882
  te.displayName = "Drawer.Overlay";
883
883
  const ee = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, style: n, onOpenAutoFocus: e, ...o }, i) {
884
- const { drawerRef: a, onPress: v, onRelease: p, onDrag: T, keyboardIsOpen: D, snapPointsOffset: h, activeSnapPointIndex: f, modal: m, isOpen: B, direction: L, snapPoints: E, container: U, handleOnly: w, shouldAnimate: M, autoFocus: A } = ft(), [c, Y] = r.useState(!1), Z = Xt(i, a), u = r.useRef(null), b = r.useRef(null), y = r.useRef(!1), N = E && E.length > 0;
885
- Ke();
884
+ const { drawerRef: a, onPress: v, onRelease: p, onDrag: T, keyboardIsOpen: R, snapPointsOffset: h, activeSnapPointIndex: f, modal: m, isOpen: B, direction: L, snapPoints: E, container: U, handleOnly: w, shouldAnimate: M, autoFocus: A } = ft(), [c, Y] = r.useState(!1), Z = Xt(i, a), u = r.useRef(null), b = r.useRef(null), y = r.useRef(!1), N = E && E.length > 0;
885
+ Ge();
886
886
  const P = (s, F, _ = 0) => {
887
887
  if (y.current) return !0;
888
- const W = Math.abs(s.y), I = Math.abs(s.x), X = I > W, K = [
888
+ const z = Math.abs(s.y), I = Math.abs(s.x), X = I > z, K = [
889
889
  "bottom",
890
890
  "right"
891
891
  ].includes(F) ? 1 : -1;
892
892
  if (F === "left" || F === "right") {
893
893
  if (!(s.x * K < 0) && I >= 0 && I <= _)
894
894
  return X;
895
- } else if (!(s.y * K < 0) && W >= 0 && W <= _)
895
+ } else if (!(s.y * K < 0) && z >= 0 && z <= _)
896
896
  return !X;
897
897
  return y.current = !0, !0;
898
898
  };
@@ -901,10 +901,10 @@ const ee = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, styl
901
901
  Y(!0);
902
902
  });
903
903
  }, []);
904
- function j(s) {
904
+ function W(s) {
905
905
  u.current = null, y.current = !1, p(s);
906
906
  }
907
- return /* @__PURE__ */ r.createElement(ge, {
907
+ return /* @__PURE__ */ r.createElement(ve, {
908
908
  "data-vaul-drawer-direction": L,
909
909
  "data-vaul-drawer": "",
910
910
  "data-vaul-delayed-snap-points": c ? "true" : "false",
@@ -931,7 +931,7 @@ const ee = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, styl
931
931
  s.preventDefault();
932
932
  return;
933
933
  }
934
- D.current && (D.current = !1);
934
+ R.current && (R.current = !1);
935
935
  },
936
936
  onFocusOutside: (s) => {
937
937
  if (!m) {
@@ -941,26 +941,26 @@ const ee = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, styl
941
941
  },
942
942
  onPointerMove: (s) => {
943
943
  if (b.current = s, w || (o.onPointerMove == null || o.onPointerMove.call(o, s), !u.current)) return;
944
- const F = s.pageY - u.current.y, _ = s.pageX - u.current.x, W = s.pointerType === "touch" ? 10 : 2;
944
+ const F = s.pageY - u.current.y, _ = s.pageX - u.current.x, z = s.pointerType === "touch" ? 10 : 2;
945
945
  P({
946
946
  x: _,
947
947
  y: F
948
- }, L, W) ? T(s) : (Math.abs(_) > W || Math.abs(F) > W) && (u.current = null);
948
+ }, L, z) ? T(s) : (Math.abs(_) > z || Math.abs(F) > z) && (u.current = null);
949
949
  },
950
950
  onPointerUp: (s) => {
951
951
  o.onPointerUp == null || o.onPointerUp.call(o, s), u.current = null, y.current = !1, p(s);
952
952
  },
953
953
  onPointerOut: (s) => {
954
- o.onPointerOut == null || o.onPointerOut.call(o, s), j(b.current);
954
+ o.onPointerOut == null || o.onPointerOut.call(o, s), W(b.current);
955
955
  },
956
956
  onContextMenu: (s) => {
957
- o.onContextMenu == null || o.onContextMenu.call(o, s), b.current && j(b.current);
957
+ o.onContextMenu == null || o.onContextMenu.call(o, s), b.current && W(b.current);
958
958
  }
959
959
  });
960
960
  });
961
961
  ee.displayName = "Drawer.Content";
962
- const Qe = 250, Ze = 120, tn = /* @__PURE__ */ r.forwardRef(function({ preventCycle: t = !1, children: n, ...e }, o) {
963
- const { closeDrawer: i, isDragging: a, snapPoints: v, activeSnapPoint: p, setActiveSnapPoint: T, dismissible: D, handleOnly: h, isOpen: f, onPress: m, onDrag: B } = ft(), L = r.useRef(null), E = r.useRef(!1);
962
+ const Ze = 250, tn = 120, en = /* @__PURE__ */ r.forwardRef(function({ preventCycle: t = !1, children: n, ...e }, o) {
963
+ const { closeDrawer: i, isDragging: a, snapPoints: v, activeSnapPoint: p, setActiveSnapPoint: T, dismissible: R, handleOnly: h, isOpen: f, onPress: m, onDrag: B } = ft(), L = r.useRef(null), E = r.useRef(!1);
964
964
  function U() {
965
965
  if (E.current) {
966
966
  A();
@@ -968,7 +968,7 @@ const Qe = 250, Ze = 120, tn = /* @__PURE__ */ r.forwardRef(function({ preventCy
968
968
  }
969
969
  window.setTimeout(() => {
970
970
  w();
971
- }, Ze);
971
+ }, tn);
972
972
  }
973
973
  function w() {
974
974
  if (a || t || E.current) {
@@ -976,10 +976,10 @@ const Qe = 250, Ze = 120, tn = /* @__PURE__ */ r.forwardRef(function({ preventCy
976
976
  return;
977
977
  }
978
978
  if (A(), !v || v.length === 0) {
979
- D || i();
979
+ R || i();
980
980
  return;
981
981
  }
982
- if (p === v[v.length - 1] && D) {
982
+ if (p === v[v.length - 1] && R) {
983
983
  i();
984
984
  return;
985
985
  }
@@ -991,7 +991,7 @@ const Qe = 250, Ze = 120, tn = /* @__PURE__ */ r.forwardRef(function({ preventCy
991
991
  function M() {
992
992
  L.current = window.setTimeout(() => {
993
993
  E.current = !0;
994
- }, Qe);
994
+ }, Ze);
995
995
  }
996
996
  function A() {
997
997
  L.current && window.clearTimeout(L.current), E.current = !1;
@@ -1016,8 +1016,8 @@ const Qe = 250, Ze = 120, tn = /* @__PURE__ */ r.forwardRef(function({ preventCy
1016
1016
  "aria-hidden": "true"
1017
1017
  }, n));
1018
1018
  });
1019
- tn.displayName = "Drawer.Handle";
1020
- function en(t) {
1019
+ en.displayName = "Drawer.Handle";
1020
+ function nn(t) {
1021
1021
  const n = ft(), { container: e = n.container, ...o } = t;
1022
1022
  return /* @__PURE__ */ r.createElement(Re, {
1023
1023
  container: e,
@@ -1025,29 +1025,29 @@ function en(t) {
1025
1025
  });
1026
1026
  }
1027
1027
  const Q = {
1028
- Root: Je,
1028
+ Root: Qe,
1029
1029
  Content: ee,
1030
1030
  Overlay: te,
1031
- Trigger: ve,
1032
- Portal: en,
1033
- Close: ye,
1034
- Title: be,
1035
- Description: Se
1031
+ Trigger: ye,
1032
+ Portal: nn,
1033
+ Close: be,
1034
+ Title: Se,
1035
+ Description: Te
1036
1036
  };
1037
- function un({ ...t }) {
1038
- return /* @__PURE__ */ z.jsx(Q.Root, { "data-slot": "drawer", ...t });
1039
- }
1040
1037
  function cn({ ...t }) {
1041
- return /* @__PURE__ */ z.jsx(Q.Trigger, { "data-slot": "drawer-trigger", ...t });
1042
- }
1043
- function nn({ ...t }) {
1044
- return /* @__PURE__ */ z.jsx(Q.Portal, { "data-slot": "drawer-portal", ...t });
1038
+ return /* @__PURE__ */ j(Q.Root, { "data-slot": "drawer", ...t });
1045
1039
  }
1046
1040
  function dn({ ...t }) {
1047
- return /* @__PURE__ */ z.jsx(Q.Close, { "data-slot": "drawer-close", ...t });
1041
+ return /* @__PURE__ */ j(Q.Trigger, { "data-slot": "drawer-trigger", ...t });
1042
+ }
1043
+ function rn({ ...t }) {
1044
+ return /* @__PURE__ */ j(Q.Portal, { "data-slot": "drawer-portal", ...t });
1048
1045
  }
1049
- function rn({ className: t, ...n }) {
1050
- return /* @__PURE__ */ z.jsx(
1046
+ function fn({ ...t }) {
1047
+ return /* @__PURE__ */ j(Q.Close, { "data-slot": "drawer-close", ...t });
1048
+ }
1049
+ function an({ className: t, ...n }) {
1050
+ return /* @__PURE__ */ j(
1051
1051
  Q.Overlay,
1052
1052
  {
1053
1053
  "data-slot": "drawer-overlay",
@@ -1059,10 +1059,10 @@ function rn({ className: t, ...n }) {
1059
1059
  }
1060
1060
  );
1061
1061
  }
1062
- function fn({ className: t, children: n, ...e }) {
1063
- return /* @__PURE__ */ z.jsxs(nn, { "data-slot": "drawer-portal", children: [
1064
- /* @__PURE__ */ z.jsx(rn, {}),
1065
- /* @__PURE__ */ z.jsx(
1062
+ function mn({ className: t, children: n, ...e }) {
1063
+ return /* @__PURE__ */ he(rn, { "data-slot": "drawer-portal", children: [
1064
+ /* @__PURE__ */ j(an, {}),
1065
+ /* @__PURE__ */ j(
1066
1066
  Q.Content,
1067
1067
  {
1068
1068
  "data-slot": "drawer-content",
@@ -1080,14 +1080,14 @@ function fn({ className: t, children: n, ...e }) {
1080
1080
  )
1081
1081
  ] });
1082
1082
  }
1083
- function mn({ className: t, ...n }) {
1084
- return /* @__PURE__ */ z.jsx("div", { "data-slot": "drawer-header", className: at("flex flex-col gap-2 p-5", t), ...n });
1085
- }
1086
1083
  function wn({ className: t, ...n }) {
1087
- return /* @__PURE__ */ z.jsx("div", { "data-slot": "drawer-footer", className: at("mt-auto flex flex-col gap-2 p-5", t), ...n });
1084
+ return /* @__PURE__ */ j("div", { "data-slot": "drawer-header", className: at("flex flex-col gap-2 p-5", t), ...n });
1088
1085
  }
1089
1086
  function pn({ className: t, ...n }) {
1090
- return /* @__PURE__ */ z.jsx(
1087
+ return /* @__PURE__ */ j("div", { "data-slot": "drawer-footer", className: at("mt-auto flex flex-col gap-2 p-5", t), ...n });
1088
+ }
1089
+ function hn({ className: t, ...n }) {
1090
+ return /* @__PURE__ */ j(
1091
1091
  Q.Title,
1092
1092
  {
1093
1093
  "data-slot": "drawer-title",
@@ -1096,8 +1096,8 @@ function pn({ className: t, ...n }) {
1096
1096
  }
1097
1097
  );
1098
1098
  }
1099
- function hn({ className: t, ...n }) {
1100
- return /* @__PURE__ */ z.jsx(
1099
+ function gn({ className: t, ...n }) {
1100
+ return /* @__PURE__ */ j(
1101
1101
  Q.Description,
1102
1102
  {
1103
1103
  "data-slot": "drawer-description",
@@ -1107,14 +1107,14 @@ function hn({ className: t, ...n }) {
1107
1107
  );
1108
1108
  }
1109
1109
  export {
1110
- un as Drawer,
1111
- dn as DrawerClose,
1112
- fn as DrawerContent,
1113
- hn as DrawerDescription,
1114
- wn as DrawerFooter,
1115
- mn as DrawerHeader,
1116
- rn as DrawerOverlay,
1117
- nn as DrawerPortal,
1118
- pn as DrawerTitle,
1119
- cn as DrawerTrigger
1110
+ cn as Drawer,
1111
+ fn as DrawerClose,
1112
+ mn as DrawerContent,
1113
+ gn as DrawerDescription,
1114
+ pn as DrawerFooter,
1115
+ wn as DrawerHeader,
1116
+ an as DrawerOverlay,
1117
+ rn as DrawerPortal,
1118
+ hn as DrawerTitle,
1119
+ dn as DrawerTrigger
1120
1120
  };