@pfct/purple 1.14.0 → 1.15.1

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 (395) hide show
  1. package/dist/assets/index.css +2 -2
  2. package/dist/chunks/{Accordion.D8caFIuT.js → Accordion.6fAW322P.js} +23 -23
  3. package/dist/chunks/Accordion.DnnZvp-k.js +1 -0
  4. package/dist/chunks/Divider.BIS4pXEy.js +1 -0
  5. package/dist/chunks/{Divider.KzhgrMYv.js → Divider.DBtnaPqJ.js} +1 -1
  6. package/dist/chunks/{DotLottie.rjIbaVEt.js → DotLottie.-8NWMOKQ.js} +57 -54
  7. package/dist/chunks/{DotLottie.CAB2tVvS.js → DotLottie.BCyB3kR7.js} +2 -2
  8. package/dist/chunks/{Spinner.C7NCfrzp.js → Spinner.D3F4lchb.js} +1 -1
  9. package/dist/chunks/{Spinner.CU8SLZiI.js → Spinner.FydRjihg.js} +1 -1
  10. package/dist/chunks/Switch.Cf6DiCUV.js +1 -0
  11. package/dist/chunks/{Switch.BgeUHuBq.js → Switch.DZP1mWLt.js} +7 -7
  12. package/dist/chunks/Toast.Cjdk4za6.js +1 -0
  13. package/dist/chunks/{bottomSheet.CnYVp9RP.js → bottomSheet.BH73fUXU.js} +2 -2
  14. package/dist/chunks/bottomSheet.M3yxr5-0.js +1 -0
  15. package/dist/chunks/calendar.B-KPMIgz.js +1 -0
  16. package/dist/chunks/calendar.DyOEuwp0.js +1511 -0
  17. package/dist/chunks/{checkbox.Dzvj-4RV.js → checkbox.DihHSceK.js} +8 -8
  18. package/dist/chunks/checkbox.kS_54E9q.js +1 -0
  19. package/dist/chunks/dateMatchModifiers.BP6awhUm.js +1652 -0
  20. package/dist/chunks/dateMatchModifiers.DWzTSPL9.js +1 -0
  21. package/dist/chunks/{dist.Cfck23KY.js → dist.0EAhIi1e.js} +1 -1
  22. package/dist/chunks/dist.BWsA5f1f.js +1 -0
  23. package/dist/chunks/{dist.CzNkwCpH.js → dist.BovUpaIu.js} +24 -10
  24. package/dist/chunks/dist.Bt6mCKem.js +1 -0
  25. package/dist/chunks/dist.C6Y9cYZm.js +1 -0
  26. package/dist/chunks/dist.C8FJXTu6.js +10 -0
  27. package/dist/chunks/dist.C8NniehT.js +1 -0
  28. package/dist/chunks/{dist.Dh7WDTyn.js → dist.CB-rIMVI.js} +1 -1
  29. package/dist/chunks/dist.Cf37BjoU.js +1 -0
  30. package/dist/chunks/dist.CmRTDXGG.js +1 -0
  31. package/dist/chunks/dist.D3MzxMSH.js +1 -0
  32. package/dist/chunks/dist.D3epBPq9.js +1 -0
  33. package/dist/chunks/{dist.6jgaVidM.js → dist.DAQtqq8Q.js} +4 -4
  34. package/dist/chunks/{dist.Ds9VPbBd.js → dist.DHqfAMUX.js} +21 -21
  35. package/dist/chunks/dist.DJPq2jOJ.js +1 -0
  36. package/dist/chunks/dist.DKOi9kq6.js +1 -0
  37. package/dist/chunks/{dist.Ct4Usz2n.js → dist.DSx7Feoc.js} +1 -1
  38. package/dist/chunks/dist.DV3oUYlD.js +1 -0
  39. package/dist/chunks/dist.DciOZstR.js +1 -0
  40. package/dist/chunks/{dist.DTByVKhF.js → dist.DrZbhygc.js} +18 -18
  41. package/dist/chunks/{dist.DPo6XlLq.js → dist.DuawELEr.js} +2 -2
  42. package/dist/chunks/dist.SHmlpKFY.js +1 -0
  43. package/dist/chunks/dist.cKdeuHWp.js +1 -0
  44. package/dist/chunks/{dist.mhQdJ8f2.js → dist.s6QukJK1.js} +40 -38
  45. package/dist/chunks/dist.xhWLHjmj.js +1 -0
  46. package/dist/chunks/drawer.CtoEYCdv.js +7 -0
  47. package/dist/chunks/{drawer.BewJ2D_w.js → drawer.EQu-ewat.js} +475 -464
  48. package/dist/chunks/{es2015.DoCbPEnP.js → es2015.D2emqwtq.js} +1 -1
  49. package/dist/chunks/magic-string.es.CBeGIr5F.js +10 -0
  50. package/dist/chunks/magic-string.es.DC_OgKJ1.js +659 -0
  51. package/dist/chunks/rolldown-runtime.mLOUI7ql.js +1 -0
  52. package/dist/chunks/src.ClN0uvp3.js +68 -0
  53. package/dist/chunks/src.DfmpOXyx.js +1 -0
  54. package/dist/chunks/test.DNmyFkvJ.BytdfLEt.js +157 -0
  55. package/dist/chunks/test.DNmyFkvJ.D_-8uo_7.js +17767 -0
  56. package/dist/chunks/tooltip.BIAjX12E.js +1 -0
  57. package/dist/chunks/{tooltip.w3pAhl4A.js → tooltip.D_ECTwc-.js} +17 -17
  58. package/dist/chunks/utils.DxA7tdMJ.js +1 -0
  59. package/dist/chunks/{utils.D6DjRYW1.js → utils.UNiIm9Bz.js} +372 -364
  60. package/dist/components/Accordion/index.cjs.js +1 -1
  61. package/dist/components/Accordion/index.esm.js +1 -1
  62. package/dist/components/Badge/BaseBadge/index.cjs.js +1 -1
  63. package/dist/components/Badge/BaseBadge/index.esm.js +1 -1
  64. package/dist/components/Badge/IconBadge/index.cjs.js +1 -1
  65. package/dist/components/Badge/IconBadge/index.esm.js +1 -1
  66. package/dist/components/Badge/TextBadge/index.cjs.js +1 -1
  67. package/dist/components/Badge/TextBadge/index.esm.js +1 -1
  68. package/dist/components/Button/BaseButton/index.cjs.js +1 -1
  69. package/dist/components/Button/BaseButton/index.esm.js +1 -1
  70. package/dist/components/Card/index.cjs.js +1 -1
  71. package/dist/components/Card/index.esm.js +1 -1
  72. package/dist/components/Chips/ChipItem/index.cjs.js +1 -1
  73. package/dist/components/Chips/ChipItem/index.esm.js +1 -1
  74. package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
  75. package/dist/components/Chips/ChipsFrame/index.esm.js +1 -1
  76. package/dist/components/Comment/Group/index.cjs.js +1 -1
  77. package/dist/components/Comment/Group/index.esm.js +1 -1
  78. package/dist/components/Comment/Item/index.cjs.js +1 -1
  79. package/dist/components/Comment/Item/index.esm.js +1 -1
  80. package/dist/components/Control/CheckMark/index.cjs.js +1 -1
  81. package/dist/components/Control/CheckMark/index.esm.js +1 -1
  82. package/dist/components/Control/RadioButton/index.cjs.js +1 -1
  83. package/dist/components/Control/RadioButton/index.esm.js +1 -1
  84. package/dist/components/Control/Switch/index.cjs.js +1 -1
  85. package/dist/components/Control/Switch/index.esm.js +1 -1
  86. package/dist/components/Control/index.cjs.js +1 -1
  87. package/dist/components/Control/index.esm.js +2 -2
  88. package/dist/components/DatePicker/CalendarNavigation.cjs.js +1 -0
  89. package/dist/components/DatePicker/CalendarNavigation.d.ts +17 -0
  90. package/dist/components/DatePicker/CalendarNavigation.d.ts.map +1 -0
  91. package/dist/components/DatePicker/CalendarNavigation.esm.js +57 -0
  92. package/dist/components/DatePicker/RangeDatePicker.cjs.js +1 -0
  93. package/dist/components/DatePicker/RangeDatePicker.d.ts +30 -0
  94. package/dist/components/DatePicker/RangeDatePicker.d.ts.map +1 -0
  95. package/dist/components/DatePicker/RangeDatePicker.esm.js +64 -0
  96. package/dist/components/DatePicker/RangeDatePicker.test.cjs.js +1 -0
  97. package/dist/components/DatePicker/RangeDatePicker.test.d.ts +2 -0
  98. package/dist/components/DatePicker/RangeDatePicker.test.d.ts.map +1 -0
  99. package/dist/components/DatePicker/RangeDatePicker.test.esm.js +129 -0
  100. package/dist/components/DatePicker/SingleDatePicker.cjs.js +1 -0
  101. package/dist/components/DatePicker/SingleDatePicker.d.ts +25 -0
  102. package/dist/components/DatePicker/SingleDatePicker.d.ts.map +1 -0
  103. package/dist/components/DatePicker/SingleDatePicker.esm.js +52 -0
  104. package/dist/components/DatePicker/SingleDatePicker.test.cjs.js +1 -0
  105. package/dist/components/DatePicker/SingleDatePicker.test.d.ts +2 -0
  106. package/dist/components/DatePicker/SingleDatePicker.test.d.ts.map +1 -0
  107. package/dist/components/DatePicker/SingleDatePicker.test.esm.js +37 -0
  108. package/dist/components/DatePicker/hooks.cjs.js +1 -0
  109. package/dist/components/DatePicker/hooks.d.ts +46 -0
  110. package/dist/components/DatePicker/hooks.d.ts.map +1 -0
  111. package/dist/components/DatePicker/hooks.esm.js +53 -0
  112. package/dist/components/DatePicker/index.cjs.js +1 -1
  113. package/dist/components/DatePicker/index.d.ts +7 -5
  114. package/dist/components/DatePicker/index.d.ts.map +1 -1
  115. package/dist/components/DatePicker/index.esm.js +4 -10
  116. package/dist/components/DatePicker/styles.cjs.js +1 -0
  117. package/dist/components/DatePicker/styles.d.ts +25 -0
  118. package/dist/components/DatePicker/styles.d.ts.map +1 -0
  119. package/dist/components/DatePicker/styles.esm.js +57 -0
  120. package/dist/components/DatePicker/utils.cjs.js +1 -0
  121. package/dist/components/DatePicker/utils.d.ts +23 -0
  122. package/dist/components/DatePicker/utils.d.ts.map +1 -0
  123. package/dist/components/DatePicker/utils.esm.js +16 -0
  124. package/dist/components/Divider/index.cjs.js +1 -1
  125. package/dist/components/Divider/index.esm.js +1 -1
  126. package/dist/components/ErrorUI/NotFoundError.cjs.js +1 -1
  127. package/dist/components/ErrorUI/NotFoundError.esm.js +1 -1
  128. package/dist/components/ErrorUI/PageLoadError.cjs.js +1 -1
  129. package/dist/components/ErrorUI/PageLoadError.esm.js +1 -1
  130. package/dist/components/ErrorUI/SectionError.cjs.js +1 -1
  131. package/dist/components/ErrorUI/SectionError.esm.js +1 -1
  132. package/dist/components/ErrorUI/illustrations.cjs.js +1 -1
  133. package/dist/components/ErrorUI/illustrations.esm.js +1 -1
  134. package/dist/components/Input/BaseInput/index.cjs.js +1 -1
  135. package/dist/components/Input/BaseInput/index.esm.js +1 -1
  136. package/dist/components/Input/PostfixInput/index.cjs.js +1 -1
  137. package/dist/components/Input/PostfixInput/index.esm.js +1 -1
  138. package/dist/components/Input/ResidentNumberInput/index.cjs.js +1 -1
  139. package/dist/components/Input/ResidentNumberInput/index.esm.js +1 -1
  140. package/dist/components/Input/TextField/index.cjs.js +1 -1
  141. package/dist/components/Input/TextField/index.esm.js +1 -1
  142. package/dist/components/Input/common/InputFrame/index.cjs.js +1 -1
  143. package/dist/components/Input/common/InputFrame/index.esm.js +1 -1
  144. package/dist/components/LegacyModal/index.cjs.js +1 -1
  145. package/dist/components/LegacyModal/index.esm.js +2 -2
  146. package/dist/components/List/index.cjs.js +1 -1
  147. package/dist/components/List/index.esm.js +1 -1
  148. package/dist/components/Loading/Skeleton/index.cjs.js +1 -1
  149. package/dist/components/Loading/Skeleton/index.esm.js +1 -1
  150. package/dist/components/Loading/Spinner/index.cjs.js +1 -1
  151. package/dist/components/Loading/Spinner/index.esm.js +1 -1
  152. package/dist/components/MiniButton/BoxMiniButton/index.cjs.js +1 -1
  153. package/dist/components/MiniButton/BoxMiniButton/index.esm.js +1 -1
  154. package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
  155. package/dist/components/MiniButton/IconMiniButton/index.esm.js +1 -1
  156. package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
  157. package/dist/components/MiniButton/UnderLineMiniButton/index.esm.js +1 -1
  158. package/dist/components/Modal/index.cjs.js +1 -1
  159. package/dist/components/Modal/index.esm.js +2 -2
  160. package/dist/components/Navigation/BaseNavigation/index.cjs.js +1 -1
  161. package/dist/components/Navigation/BaseNavigation/index.esm.js +1 -1
  162. package/dist/components/Navigation/BottomNavigationBar/index.cjs.js +1 -1
  163. package/dist/components/Navigation/BottomNavigationBar/index.esm.js +1 -1
  164. package/dist/components/Navigation/Navigation.cjs.js +1 -1
  165. package/dist/components/Navigation/Navigation.esm.js +1 -1
  166. package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
  167. package/dist/components/Navigation/PageNavigationBar/index.esm.js +1 -1
  168. package/dist/components/Navigation/TitleNavigationBar/index.cjs.js +1 -1
  169. package/dist/components/Navigation/TitleNavigationBar/index.esm.js +1 -1
  170. package/dist/components/OverlayRoot/index.cjs.js +1 -1
  171. package/dist/components/OverlayRoot/index.esm.js +1 -1
  172. package/dist/components/Pagination/index.cjs.js +1 -1
  173. package/dist/components/Pagination/index.esm.js +1 -1
  174. package/dist/components/Pagination/usePagination.esm.js +9 -9
  175. package/dist/components/Segment/BaseSegment/index.cjs.js +1 -1
  176. package/dist/components/Segment/BaseSegment/index.esm.js +1 -1
  177. package/dist/components/Segment/ExtendSegment/index.cjs.js +1 -1
  178. package/dist/components/Segment/ExtendSegment/index.esm.js +1 -1
  179. package/dist/components/SelectBox/index.cjs.js +1 -1
  180. package/dist/components/SelectBox/index.esm.js +1 -1
  181. package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
  182. package/dist/components/Tabs/FillTabs/index.esm.js +1 -1
  183. package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
  184. package/dist/components/Tabs/TextTabs/index.esm.js +1 -1
  185. package/dist/components/Tabs/index.cjs.js +1 -1
  186. package/dist/components/Tabs/index.esm.js +3 -3
  187. package/dist/components/Tag/index.cjs.js +1 -1
  188. package/dist/components/Tag/index.esm.js +1 -1
  189. package/dist/components/Terms/index.cjs.js +1 -1
  190. package/dist/components/Terms/index.esm.js +3 -3
  191. package/dist/components/TextArea/index.cjs.js +1 -1
  192. package/dist/components/TextArea/index.esm.js +1 -1
  193. package/dist/components/Title/index.cjs.js +1 -1
  194. package/dist/components/Title/index.esm.js +1 -1
  195. package/dist/components/Toast/index.cjs.js +1 -1
  196. package/dist/components/index.cjs.js +1 -1
  197. package/dist/components/index.d.ts +1 -0
  198. package/dist/components/index.d.ts.map +1 -1
  199. package/dist/components/index.esm.js +59 -62
  200. package/dist/components/ui/bottomSheet.cjs.js +1 -1
  201. package/dist/components/ui/bottomSheet.esm.js +1 -1
  202. package/dist/components/ui/button.cjs.js +1 -1
  203. package/dist/components/ui/button.esm.js +2 -2
  204. package/dist/components/ui/calendar.cjs.js +1 -0
  205. package/dist/components/ui/calendar.d.ts +25 -0
  206. package/dist/components/ui/calendar.d.ts.map +1 -0
  207. package/dist/components/ui/calendar.esm.js +2 -0
  208. package/dist/components/ui/checkbox.cjs.js +1 -1
  209. package/dist/components/ui/checkbox.esm.js +1 -1
  210. package/dist/components/ui/dialog.cjs.js +1 -1
  211. package/dist/components/ui/dialog.esm.js +2 -2
  212. package/dist/components/ui/drawer.cjs.js +1 -1
  213. package/dist/components/ui/drawer.esm.js +1 -1
  214. package/dist/components/ui/impact-tooltip.cjs.js +1 -1
  215. package/dist/components/ui/impact-tooltip.esm.js +2 -2
  216. package/dist/components/ui/select.cjs.js +1 -1
  217. package/dist/components/ui/select.esm.js +3 -3
  218. package/dist/components/ui/share-ui.cjs.js +1 -1
  219. package/dist/components/ui/share-ui.esm.js +1 -1
  220. package/dist/components/ui/tooltip.cjs.js +1 -1
  221. package/dist/components/ui/tooltip.esm.js +1 -1
  222. package/dist/components/ui/typography.cjs.js +1 -1
  223. package/dist/components/ui/typography.esm.js +1 -1
  224. package/dist/core/Typography/BaseTypography/index.cjs.js +1 -1
  225. package/dist/core/Typography/BaseTypography/index.esm.js +1 -1
  226. package/dist/hooks/useOverlayPreventScroll.esm.js +1 -1
  227. package/dist/icons/src/aliases/aliases.cjs.js +1 -1
  228. package/dist/icons/src/aliases/aliases.d.ts +1 -1
  229. package/dist/icons/src/aliases/aliases.d.ts.map +1 -1
  230. package/dist/icons/src/aliases/aliases.esm.js +3 -3
  231. package/dist/icons/src/aliases/index.cjs.js +1 -1
  232. package/dist/icons/src/aliases/index.esm.js +3 -3
  233. package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
  234. package/dist/icons/src/aliases/prefixed.d.ts +3 -3
  235. package/dist/icons/src/aliases/prefixed.d.ts.map +1 -1
  236. package/dist/icons/src/aliases/prefixed.esm.js +3 -3
  237. package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
  238. package/dist/icons/src/aliases/suffixed.d.ts +8 -8
  239. package/dist/icons/src/aliases/suffixed.d.ts.map +1 -1
  240. package/dist/icons/src/aliases/suffixed.esm.js +3 -3
  241. package/dist/icons/src/icons/index.cjs.js +1 -1
  242. package/dist/icons/src/icons/index.esm.js +3 -3
  243. package/dist/index.cjs.js +1 -1
  244. package/dist/index.d.ts +1 -0
  245. package/dist/index.d.ts.map +1 -1
  246. package/dist/index.esm.js +124 -166
  247. package/dist/lib/twMerge.cjs.js +1 -0
  248. package/dist/lib/twMerge.d.ts +22 -0
  249. package/dist/lib/twMerge.d.ts.map +1 -0
  250. package/dist/lib/twMerge.esm.js +4 -0
  251. package/dist/lib/utils.cjs.js +1 -1
  252. package/dist/lib/utils.d.ts.map +1 -1
  253. package/dist/lib/utils.esm.js +1 -1
  254. package/dist/library/DotLottie/index.cjs.js +1 -1
  255. package/dist/library/DotLottie/index.esm.js +1 -1
  256. package/dist/library/GlobalLayoutHeaderProvider/index.type.cjs.js +1 -1
  257. package/dist/library/List/BottomSheetItemList/index.cjs.js +1 -1
  258. package/dist/library/List/BottomSheetItemList/index.esm.js +1 -1
  259. package/dist/library/Lottie/index.cjs.js +1 -1
  260. package/dist/library/Lottie/index.esm.js +1 -1
  261. package/dist/library/index.cjs.js +1 -1
  262. package/dist/library/index.esm.js +1 -1
  263. package/dist/theme.css +826 -0
  264. package/dist/utils/uuid.util.esm.js +1 -1
  265. package/package.json +14 -11
  266. package/dist/chunks/Accordion.CxDfMzK1.js +0 -1
  267. package/dist/chunks/Divider.CinbGPsa.js +0 -1
  268. package/dist/chunks/Switch.BL3XBsvs.js +0 -1
  269. package/dist/chunks/Toast.D-0VbzOt.js +0 -1
  270. package/dist/chunks/bottomSheet.B5OrcCXx.js +0 -1
  271. package/dist/chunks/checkbox.CYGNBSUO.js +0 -1
  272. package/dist/chunks/chunk.CMqjfN_6.js +0 -1
  273. package/dist/chunks/dist.B4EKXpi9.js +0 -1
  274. package/dist/chunks/dist.Bj_fI5rQ.js +0 -1
  275. package/dist/chunks/dist.BklO76Tk.js +0 -1
  276. package/dist/chunks/dist.BoEBrFAh.js +0 -1
  277. package/dist/chunks/dist.C4D-6Tcr.js +0 -1
  278. package/dist/chunks/dist.CJY8LqRA.js +0 -1
  279. package/dist/chunks/dist.CT8nUj9V.js +0 -1
  280. package/dist/chunks/dist.CpTw9rlm.js +0 -1
  281. package/dist/chunks/dist.Crl6KTg_.js +0 -21
  282. package/dist/chunks/dist.DTg4gm8w.js +0 -1
  283. package/dist/chunks/dist.DvmdOncE.js +0 -1
  284. package/dist/chunks/dist.ERrpPEZ4.js +0 -1
  285. package/dist/chunks/dist.OINbhiqU.js +0 -1
  286. package/dist/chunks/dist.Pmh4V8k2.js +0 -1
  287. package/dist/chunks/dist.Xtc44Blp.js +0 -1
  288. package/dist/chunks/dist.ZyM9l2Vf.js +0 -1
  289. package/dist/chunks/drawer.Cty9wtvs.js +0 -7
  290. package/dist/chunks/tooltip.Dv33hiJ0.js +0 -1
  291. package/dist/chunks/utils.C67s_c-g.js +0 -1
  292. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.cjs.js +0 -1
  293. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.d.ts +0 -13
  294. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.d.ts.map +0 -1
  295. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.esm.js +0 -30
  296. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +0 -1
  297. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.d.ts +0 -12
  298. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.d.ts.map +0 -1
  299. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.esm.js +0 -27
  300. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.cjs.js +0 -1
  301. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.d.ts +0 -8
  302. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.d.ts.map +0 -1
  303. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.esm.js +0 -6
  304. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.cjs.js +0 -1
  305. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.d.ts +0 -12
  306. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.d.ts.map +0 -1
  307. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.esm.js +0 -24
  308. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +0 -1
  309. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.d.ts +0 -12
  310. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.d.ts.map +0 -1
  311. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.esm.js +0 -24
  312. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +0 -1
  313. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.d.ts +0 -12
  314. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.d.ts.map +0 -1
  315. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.esm.js +0 -24
  316. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.cjs.js +0 -1
  317. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.d.ts +0 -8
  318. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.d.ts.map +0 -1
  319. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/index.esm.js +0 -7
  320. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/styles.cjs.js +0 -1
  321. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/styles.d.ts +0 -9
  322. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/styles.d.ts.map +0 -1
  323. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/styles.esm.js +0 -4
  324. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/type.cjs.js +0 -1
  325. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/type.d.ts +0 -14
  326. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/type.d.ts.map +0 -1
  327. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/type.esm.js +0 -0
  328. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +0 -1
  329. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.d.ts +0 -4
  330. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.d.ts.map +0 -1
  331. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.esm.js +0 -17
  332. package/dist/components/DatePicker/BaseDatePicker/Month/index.cjs.js +0 -1
  333. package/dist/components/DatePicker/BaseDatePicker/Month/index.d.ts +0 -6
  334. package/dist/components/DatePicker/BaseDatePicker/Month/index.d.ts.map +0 -1
  335. package/dist/components/DatePicker/BaseDatePicker/Month/index.esm.js +0 -8
  336. package/dist/components/DatePicker/BaseDatePicker/Week/index.cjs.js +0 -1
  337. package/dist/components/DatePicker/BaseDatePicker/Week/index.d.ts +0 -6
  338. package/dist/components/DatePicker/BaseDatePicker/Week/index.d.ts.map +0 -1
  339. package/dist/components/DatePicker/BaseDatePicker/Week/index.esm.js +0 -8
  340. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.cjs.js +0 -1
  341. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.d.ts +0 -12
  342. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.d.ts.map +0 -1
  343. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.esm.js +0 -50
  344. package/dist/components/DatePicker/BaseDatePicker/hooks/index.util.cjs.js +0 -1
  345. package/dist/components/DatePicker/BaseDatePicker/hooks/index.util.d.ts +0 -25
  346. package/dist/components/DatePicker/BaseDatePicker/hooks/index.util.d.ts.map +0 -1
  347. package/dist/components/DatePicker/BaseDatePicker/hooks/index.util.esm.js +0 -44
  348. package/dist/components/DatePicker/BaseDatePicker/hooks/useBaseDatePicker.cjs.js +0 -1
  349. package/dist/components/DatePicker/BaseDatePicker/hooks/useBaseDatePicker.d.ts +0 -12
  350. package/dist/components/DatePicker/BaseDatePicker/hooks/useBaseDatePicker.d.ts.map +0 -1
  351. package/dist/components/DatePicker/BaseDatePicker/hooks/useBaseDatePicker.esm.js +0 -28
  352. package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +0 -1
  353. package/dist/components/DatePicker/BaseDatePicker/index.d.ts +0 -11
  354. package/dist/components/DatePicker/BaseDatePicker/index.d.ts.map +0 -1
  355. package/dist/components/DatePicker/BaseDatePicker/index.esm.js +0 -62
  356. package/dist/components/DatePicker/RangeDatePicker/hooks/index.util.cjs.js +0 -1
  357. package/dist/components/DatePicker/RangeDatePicker/hooks/index.util.d.ts +0 -12
  358. package/dist/components/DatePicker/RangeDatePicker/hooks/index.util.d.ts.map +0 -1
  359. package/dist/components/DatePicker/RangeDatePicker/hooks/index.util.esm.js +0 -46
  360. package/dist/components/DatePicker/RangeDatePicker/hooks/useRangeDatePicker.cjs.js +0 -1
  361. package/dist/components/DatePicker/RangeDatePicker/hooks/useRangeDatePicker.d.ts +0 -20
  362. package/dist/components/DatePicker/RangeDatePicker/hooks/useRangeDatePicker.d.ts.map +0 -1
  363. package/dist/components/DatePicker/RangeDatePicker/hooks/useRangeDatePicker.esm.js +0 -42
  364. package/dist/components/DatePicker/RangeDatePicker/index.cjs.js +0 -1
  365. package/dist/components/DatePicker/RangeDatePicker/index.d.ts +0 -2
  366. package/dist/components/DatePicker/RangeDatePicker/index.d.ts.map +0 -1
  367. package/dist/components/DatePicker/RangeDatePicker/index.esm.js +0 -2
  368. package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +0 -1
  369. package/dist/components/DatePicker/RangeDatePickerModal/index.d.ts +0 -20
  370. package/dist/components/DatePicker/RangeDatePickerModal/index.d.ts.map +0 -1
  371. package/dist/components/DatePicker/RangeDatePickerModal/index.esm.js +0 -57
  372. package/dist/components/DatePicker/RangeDatePickerModal/useRangeDatePickerModal.cjs.js +0 -1
  373. package/dist/components/DatePicker/RangeDatePickerModal/useRangeDatePickerModal.d.ts +0 -11
  374. package/dist/components/DatePicker/RangeDatePickerModal/useRangeDatePickerModal.d.ts.map +0 -1
  375. package/dist/components/DatePicker/RangeDatePickerModal/useRangeDatePickerModal.esm.js +0 -36
  376. package/dist/components/DatePicker/SingleDatePicker/hooks/index.util.cjs.js +0 -1
  377. package/dist/components/DatePicker/SingleDatePicker/hooks/index.util.d.ts +0 -11
  378. package/dist/components/DatePicker/SingleDatePicker/hooks/index.util.d.ts.map +0 -1
  379. package/dist/components/DatePicker/SingleDatePicker/hooks/index.util.esm.js +0 -37
  380. package/dist/components/DatePicker/SingleDatePicker/hooks/useSingleDatePicker.cjs.js +0 -1
  381. package/dist/components/DatePicker/SingleDatePicker/hooks/useSingleDatePicker.d.ts +0 -18
  382. package/dist/components/DatePicker/SingleDatePicker/hooks/useSingleDatePicker.d.ts.map +0 -1
  383. package/dist/components/DatePicker/SingleDatePicker/hooks/useSingleDatePicker.esm.js +0 -27
  384. package/dist/components/DatePicker/SingleDatePicker/index.cjs.js +0 -1
  385. package/dist/components/DatePicker/SingleDatePicker/index.d.ts +0 -2
  386. package/dist/components/DatePicker/SingleDatePicker/index.d.ts.map +0 -1
  387. package/dist/components/DatePicker/SingleDatePicker/index.esm.js +0 -2
  388. package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +0 -1
  389. package/dist/components/DatePicker/SingleDatePickerModal/index.d.ts +0 -19
  390. package/dist/components/DatePicker/SingleDatePickerModal/index.d.ts.map +0 -1
  391. package/dist/components/DatePicker/SingleDatePickerModal/index.esm.js +0 -41
  392. package/dist/components/DatePicker/SingleDatePickerModal/useSingleDatePickerModal.cjs.js +0 -1
  393. package/dist/components/DatePicker/SingleDatePickerModal/useSingleDatePickerModal.d.ts +0 -8
  394. package/dist/components/DatePicker/SingleDatePickerModal/useSingleDatePickerModal.d.ts.map +0 -1
  395. package/dist/components/DatePicker/SingleDatePickerModal/useSingleDatePickerModal.esm.js +0 -31
@@ -1,44 +1,44 @@
1
- import { a as e, i as t, n, r, t as i } from "./dist.CzNkwCpH.js";
1
+ import { a as e, i as t, o as n, r, t as i } from "./dist.BovUpaIu.js";
2
2
  import { t as a } from "./dist.CwWM0zXK.js";
3
- import { t as o } from "./dist.Ct4Usz2n.js";
4
- import { t as s } from "./dist.Cfck23KY.js";
5
- import { t as c } from "./utils.D6DjRYW1.js";
6
- import { n as l, t as u } from "./dist.Crl6KTg_.js";
7
- import { n as d, r as f, t as p } from "./es2015.ByVyszJo.js";
8
- import * as m from "react";
9
- import h, { useEffect as g, useLayoutEffect as _, useMemo as v } from "react";
10
- import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
11
- import * as S from "react-dom";
3
+ import { t as o } from "./dist.DSx7Feoc.js";
4
+ import { t as s } from "./dist.0EAhIi1e.js";
5
+ import { t as c } from "./utils.UNiIm9Bz.js";
6
+ import { t as l } from "./dist.C8FJXTu6.js";
7
+ import { n as u, r as d, t as f } from "./es2015.ByVyszJo.js";
8
+ import * as p from "react";
9
+ import m, { useEffect as h, useLayoutEffect as g, useMemo as _ } from "react";
10
+ import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
11
+ import * as x from "react-dom";
12
12
  //#region node_modules/vaul/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs
13
13
  // @__NO_SIDE_EFFECTS__
14
- function C(e) {
15
- let t = m.forwardRef((t, n) => {
14
+ function S(e) {
15
+ let t = p.forwardRef((t, n) => {
16
16
  let { children: r, ...i } = t, o = null, s = !1, c = [];
17
- O(r) && typeof k == "function" && (r = k(r._payload)), m.Children.forEach(r, (e) => {
17
+ D(r) && typeof k == "function" && (r = k(r._payload)), p.Children.forEach(r, (e) => {
18
18
  if (ee(e)) {
19
19
  s = !0;
20
20
  let t = e, n = "child" in t.props ? t.props.child : t.props.children;
21
- O(n) && typeof k == "function" && (n = k(n._payload)), o = T(t, n), c.push(o?.props?.children);
21
+ D(n) && typeof k == "function" && (n = k(n._payload)), o = w(t, n), c.push(o?.props?.children);
22
22
  } else c.push(e);
23
- }), o ? o = m.cloneElement(o, void 0, c) : !s && m.Children.count(r) === 1 && m.isValidElement(r) && (o = r);
24
- let l = o ? D(o) : void 0, u = a(n, l);
23
+ }), o ? o = p.cloneElement(o, void 0, c) : !s && p.Children.count(r) === 1 && p.isValidElement(r) && (o = r);
24
+ let l = o ? E(o) : void 0, u = a(n, l);
25
25
  if (!o) {
26
- if (r || r === 0) throw Error(s ? ie(e) : re(e));
26
+ if (r || r === 0) throw Error(s ? re(e) : ne(e));
27
27
  return r;
28
28
  }
29
- let d = E(i, o.props ?? {});
30
- return o.type !== m.Fragment && (d.ref = n ? u : l), m.cloneElement(o, d);
29
+ let d = T(i, o.props ?? {});
30
+ return o.type !== p.Fragment && (d.ref = n ? u : l), p.cloneElement(o, d);
31
31
  });
32
32
  return t.displayName = `${e}.Slot`, t;
33
33
  }
34
- var w = Symbol.for("radix.slottable"), T = (e, t) => {
34
+ var C = Symbol.for("radix.slottable"), w = (e, t) => {
35
35
  if ("child" in e.props) {
36
36
  let t = e.props.child;
37
- return m.isValidElement(t) ? m.cloneElement(t, void 0, e.props.children(t.props.children)) : null;
37
+ return p.isValidElement(t) ? p.cloneElement(t, void 0, e.props.children(t.props.children)) : null;
38
38
  }
39
- return m.isValidElement(t) ? t : null;
39
+ return p.isValidElement(t) ? t : null;
40
40
  };
41
- function E(e, t) {
41
+ function T(e, t) {
42
42
  let n = { ...t };
43
43
  for (let r in t) {
44
44
  let i = e[r], a = t[r];
@@ -55,21 +55,21 @@ function E(e, t) {
55
55
  ...n
56
56
  };
57
57
  }
58
- function D(e) {
58
+ function E(e) {
59
59
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
60
60
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
61
61
  }
62
62
  function ee(e) {
63
- return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === w;
63
+ return p.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === C;
64
64
  }
65
65
  var te = Symbol.for("react.lazy");
66
- function O(e) {
67
- return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === te && "_payload" in e && ne(e._payload);
66
+ function D(e) {
67
+ return typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === te && "_payload" in e && O(e._payload);
68
68
  }
69
- function ne(e) {
69
+ function O(e) {
70
70
  return typeof e == "object" && !!e && "then" in e;
71
71
  }
72
- var re = (e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, ie = (e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, k = m.use, A = [
72
+ var ne = (e) => `${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`, re = (e) => `${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`, k = p.use, A = [
73
73
  "a",
74
74
  "button",
75
75
  "div",
@@ -88,9 +88,9 @@ var re = (e) => `${e} failed to slot onto its children. Expected a single React
88
88
  "svg",
89
89
  "ul"
90
90
  ].reduce((e, t) => {
91
- let n = /* @__PURE__ */ C(`Primitive.${t}`), r = m.forwardRef((e, r) => {
91
+ let n = /* @__PURE__ */ S(`Primitive.${t}`), r = p.forwardRef((e, r) => {
92
92
  let { asChild: i, ...a } = e, o = i ? n : t;
93
- return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ b(o, {
93
+ return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ y(o, {
94
94
  ...a,
95
95
  ref: r
96
96
  });
@@ -100,68 +100,79 @@ var re = (e) => `${e} failed to slot onto its children. Expected a single React
100
100
  [t]: r
101
101
  };
102
102
  }, {});
103
- function ae(e, t) {
104
- e && S.flushSync(() => e.dispatchEvent(t));
103
+ function ie(e, t) {
104
+ e && x.flushSync(() => e.dispatchEvent(t));
105
+ }
106
+ //#endregion
107
+ //#region node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs
108
+ function ae(e, t = globalThis?.document) {
109
+ let n = l(e);
110
+ p.useEffect(() => {
111
+ let e = (e) => {
112
+ e.key === "Escape" && n(e);
113
+ };
114
+ return t.addEventListener("keydown", e, { capture: !0 }), () => t.removeEventListener("keydown", e, { capture: !0 });
115
+ }, [n, t]);
105
116
  }
106
117
  //#endregion
107
118
  //#region node_modules/vaul/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
108
- var oe = "DismissableLayer", j = "dismissableLayer.update", M = "dismissableLayer.pointerDownOutside", se = "dismissableLayer.focusOutside", N, P = m.createContext({
119
+ var oe = "DismissableLayer", j = "dismissableLayer.update", M = "dismissableLayer.pointerDownOutside", se = "dismissableLayer.focusOutside", N, P = p.createContext({
109
120
  layers: /* @__PURE__ */ new Set(),
110
121
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
111
122
  branches: /* @__PURE__ */ new Set()
112
- }), F = m.forwardRef((e, t) => {
113
- let { disableOutsidePointerEvents: n = !1, onEscapeKeyDown: i, onPointerDownOutside: o, onFocusOutside: s, onInteractOutside: c, onDismiss: l, ...d } = e, f = m.useContext(P), [p, h] = m.useState(null), g = p?.ownerDocument ?? globalThis?.document, [, _] = m.useState({}), v = a(t, (e) => h(e)), y = Array.from(f.layers), [x] = [...f.layersWithOutsidePointerEventsDisabled].slice(-1), S = y.indexOf(x), C = p ? y.indexOf(p) : -1, w = f.layersWithOutsidePointerEventsDisabled.size > 0, T = C >= S, E = I((e) => {
114
- let t = e.target, n = [...f.branches].some((e) => e.contains(t));
115
- !T || n || (o?.(e), c?.(e), e.defaultPrevented || l?.());
116
- }, g), D = ue((e) => {
123
+ }), F = p.forwardRef((e, n) => {
124
+ let { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: o, onFocusOutside: s, onInteractOutside: c, onDismiss: l, ...u } = e, d = p.useContext(P), [f, m] = p.useState(null), h = f?.ownerDocument ?? globalThis?.document, [, g] = p.useState({}), _ = a(n, (e) => m(e)), v = Array.from(d.layers), [b] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = v.indexOf(b), S = f ? v.indexOf(f) : -1, C = d.layersWithOutsidePointerEventsDisabled.size > 0, w = S >= x, T = I((e) => {
125
+ let t = e.target, n = [...d.branches].some((e) => e.contains(t));
126
+ !w || n || (o?.(e), c?.(e), e.defaultPrevented || l?.());
127
+ }, h), E = ue((e) => {
117
128
  let t = e.target;
118
- [...f.branches].some((e) => e.contains(t)) || (s?.(e), c?.(e), e.defaultPrevented || l?.());
119
- }, g);
120
- return u((e) => {
121
- C === f.layers.size - 1 && (i?.(e), !e.defaultPrevented && l && (e.preventDefault(), l()));
122
- }, g), m.useEffect(() => {
123
- if (p) return n && (f.layersWithOutsidePointerEventsDisabled.size === 0 && (N = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), f.layersWithOutsidePointerEventsDisabled.add(p)), f.layers.add(p), de(), () => {
124
- n && (f.layersWithOutsidePointerEventsDisabled.delete(p), f.layersWithOutsidePointerEventsDisabled.size === 0 && (g.body.style.pointerEvents = N));
129
+ [...d.branches].some((e) => e.contains(t)) || (s?.(e), c?.(e), e.defaultPrevented || l?.());
130
+ }, h);
131
+ return ae((e) => {
132
+ S === d.layers.size - 1 && (i?.(e), !e.defaultPrevented && l && (e.preventDefault(), l()));
133
+ }, h), p.useEffect(() => {
134
+ if (f) return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (N = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), de(), () => {
135
+ r && (d.layersWithOutsidePointerEventsDisabled.delete(f), d.layersWithOutsidePointerEventsDisabled.size === 0 && (h.body.style.pointerEvents = N));
125
136
  };
126
137
  }, [
127
- p,
128
- g,
129
- n,
130
- f
131
- ]), m.useEffect(() => () => {
132
- p && (f.layers.delete(p), f.layersWithOutsidePointerEventsDisabled.delete(p), de());
133
- }, [p, f]), m.useEffect(() => {
134
- let e = () => _({});
138
+ f,
139
+ h,
140
+ r,
141
+ d
142
+ ]), p.useEffect(() => () => {
143
+ f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f), de());
144
+ }, [f, d]), p.useEffect(() => {
145
+ let e = () => g({});
135
146
  return document.addEventListener(j, e), () => document.removeEventListener(j, e);
136
- }, []), /* @__PURE__ */ b(A.div, {
137
- ...d,
138
- ref: v,
147
+ }, []), /* @__PURE__ */ y(A.div, {
148
+ ...u,
149
+ ref: _,
139
150
  style: {
140
- pointerEvents: w ? T ? "auto" : "none" : void 0,
151
+ pointerEvents: C ? w ? "auto" : "none" : void 0,
141
152
  ...e.style
142
153
  },
143
- onFocusCapture: r(e.onFocusCapture, D.onFocusCapture),
144
- onBlurCapture: r(e.onBlurCapture, D.onBlurCapture),
145
- onPointerDownCapture: r(e.onPointerDownCapture, E.onPointerDownCapture)
154
+ onFocusCapture: t(e.onFocusCapture, E.onFocusCapture),
155
+ onBlurCapture: t(e.onBlurCapture, E.onBlurCapture),
156
+ onPointerDownCapture: t(e.onPointerDownCapture, T.onPointerDownCapture)
146
157
  });
147
158
  });
148
159
  F.displayName = oe;
149
- var ce = "DismissableLayerBranch", le = m.forwardRef((e, t) => {
150
- let n = m.useContext(P), r = m.useRef(null), i = a(t, r);
151
- return m.useEffect(() => {
160
+ var ce = "DismissableLayerBranch", le = p.forwardRef((e, t) => {
161
+ let n = p.useContext(P), r = p.useRef(null), i = a(t, r);
162
+ return p.useEffect(() => {
152
163
  let e = r.current;
153
164
  if (e) return n.branches.add(e), () => {
154
165
  n.branches.delete(e);
155
166
  };
156
- }, [n.branches]), /* @__PURE__ */ b(A.div, {
167
+ }, [n.branches]), /* @__PURE__ */ y(A.div, {
157
168
  ...e,
158
169
  ref: i
159
170
  });
160
171
  });
161
172
  le.displayName = ce;
162
173
  function I(e, t = globalThis?.document) {
163
- let n = l(e), r = m.useRef(!1), i = m.useRef(() => {});
164
- return m.useEffect(() => {
174
+ let n = l(e), r = p.useRef(!1), i = p.useRef(() => {});
175
+ return p.useEffect(() => {
165
176
  let e = (e) => {
166
177
  if (e.target && !r.current) {
167
178
  let r = function() {
@@ -179,8 +190,8 @@ function I(e, t = globalThis?.document) {
179
190
  }, [t, n]), { onPointerDownCapture: () => r.current = !0 };
180
191
  }
181
192
  function ue(e, t = globalThis?.document) {
182
- let n = l(e), r = m.useRef(!1);
183
- return m.useEffect(() => {
193
+ let n = l(e), r = p.useRef(!1);
194
+ return p.useEffect(() => {
184
195
  let e = (e) => {
185
196
  e.target && !r.current && L(se, n, { originalEvent: e }, { discrete: !1 });
186
197
  };
@@ -200,15 +211,15 @@ function L(e, t, n, { discrete: r }) {
200
211
  cancelable: !0,
201
212
  detail: n
202
213
  });
203
- t && i.addEventListener(e, t, { once: !0 }), r ? ae(i, a) : i.dispatchEvent(a);
214
+ t && i.addEventListener(e, t, { once: !0 }), r ? ie(i, a) : i.dispatchEvent(a);
204
215
  }
205
216
  //#endregion
206
217
  //#region node_modules/vaul/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
207
- var R = "focusScope.autoFocusOnMount", fe = "focusScope.autoFocusOnUnmount", pe = {
218
+ var R = "focusScope.autoFocusOnMount", z = "focusScope.autoFocusOnUnmount", fe = {
208
219
  bubbles: !1,
209
220
  cancelable: !0
210
- }, me = "FocusScope", z = m.forwardRef((e, t) => {
211
- let { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: o, ...s } = e, [c, u] = m.useState(null), d = l(i), f = l(o), p = m.useRef(null), h = a(t, (e) => u(e)), g = m.useRef({
221
+ }, pe = "FocusScope", B = p.forwardRef((e, t) => {
222
+ let { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: o, ...s } = e, [c, u] = p.useState(null), d = l(i), f = l(o), m = p.useRef(null), h = a(t, (e) => u(e)), g = p.useRef({
212
223
  paused: !1,
213
224
  pause() {
214
225
  this.paused = !0;
@@ -217,18 +228,18 @@ var R = "focusScope.autoFocusOnMount", fe = "focusScope.autoFocusOnUnmount", pe
217
228
  this.paused = !1;
218
229
  }
219
230
  }).current;
220
- m.useEffect(() => {
231
+ p.useEffect(() => {
221
232
  if (r) {
222
233
  let e = function(e) {
223
234
  if (g.paused || !c) return;
224
235
  let t = e.target;
225
- c.contains(t) ? p.current = t : V(p.current, { select: !0 });
236
+ c.contains(t) ? m.current = t : H(m.current, { select: !0 });
226
237
  }, t = function(e) {
227
238
  if (g.paused || !c) return;
228
239
  let t = e.relatedTarget;
229
- t !== null && (c.contains(t) || V(p.current, { select: !0 }));
240
+ t !== null && (c.contains(t) || H(m.current, { select: !0 }));
230
241
  }, n = function(e) {
231
- if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && V(c);
242
+ if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && H(c);
232
243
  };
233
244
  document.addEventListener("focusin", e), document.addEventListener("focusout", t);
234
245
  let r = new MutationObserver(n);
@@ -243,18 +254,18 @@ var R = "focusScope.autoFocusOnMount", fe = "focusScope.autoFocusOnUnmount", pe
243
254
  r,
244
255
  c,
245
256
  g.paused
246
- ]), m.useEffect(() => {
257
+ ]), p.useEffect(() => {
247
258
  if (c) {
248
- H.add(g);
259
+ U.add(g);
249
260
  let e = document.activeElement;
250
261
  if (!c.contains(e)) {
251
- let t = new CustomEvent(R, pe);
252
- c.addEventListener(R, d), c.dispatchEvent(t), t.defaultPrevented || (he(Se(B(c)), { select: !0 }), document.activeElement === e && V(c));
262
+ let t = new CustomEvent(R, fe);
263
+ c.addEventListener(R, d), c.dispatchEvent(t), t.defaultPrevented || (me(xe(V(c)), { select: !0 }), document.activeElement === e && H(c));
253
264
  }
254
265
  return () => {
255
266
  c.removeEventListener(R, d), setTimeout(() => {
256
- let t = new CustomEvent(fe, pe);
257
- c.addEventListener(fe, f), c.dispatchEvent(t), t.defaultPrevented || V(e ?? document.body, { select: !0 }), c.removeEventListener(fe, f), H.remove(g);
267
+ let t = new CustomEvent(z, fe);
268
+ c.addEventListener(z, f), c.dispatchEvent(t), t.defaultPrevented || H(e ?? document.body, { select: !0 }), c.removeEventListener(z, f), U.remove(g);
258
269
  }, 0);
259
270
  };
260
271
  }
@@ -264,35 +275,35 @@ var R = "focusScope.autoFocusOnMount", fe = "focusScope.autoFocusOnUnmount", pe
264
275
  f,
265
276
  g
266
277
  ]);
267
- let _ = m.useCallback((e) => {
278
+ let _ = p.useCallback((e) => {
268
279
  if (!n && !r || g.paused) return;
269
280
  let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, i = document.activeElement;
270
281
  if (t && i) {
271
- let t = e.currentTarget, [r, a] = ge(t);
272
- r && a ? !e.shiftKey && i === a ? (e.preventDefault(), n && V(r, { select: !0 })) : e.shiftKey && i === r && (e.preventDefault(), n && V(a, { select: !0 })) : i === t && e.preventDefault();
282
+ let t = e.currentTarget, [r, a] = he(t);
283
+ r && a ? !e.shiftKey && i === a ? (e.preventDefault(), n && H(r, { select: !0 })) : e.shiftKey && i === r && (e.preventDefault(), n && H(a, { select: !0 })) : i === t && e.preventDefault();
273
284
  }
274
285
  }, [
275
286
  n,
276
287
  r,
277
288
  g.paused
278
289
  ]);
279
- return /* @__PURE__ */ b(A.div, {
290
+ return /* @__PURE__ */ y(A.div, {
280
291
  tabIndex: -1,
281
292
  ...s,
282
293
  ref: h,
283
294
  onKeyDown: _
284
295
  });
285
296
  });
286
- z.displayName = me;
287
- function he(e, { select: t = !1 } = {}) {
297
+ B.displayName = pe;
298
+ function me(e, { select: t = !1 } = {}) {
288
299
  let n = document.activeElement;
289
- for (let r of e) if (V(r, { select: t }), document.activeElement !== n) return;
300
+ for (let r of e) if (H(r, { select: t }), document.activeElement !== n) return;
290
301
  }
291
- function ge(e) {
292
- let t = B(e);
293
- return [_e(t, e), _e(t.reverse(), e)];
302
+ function he(e) {
303
+ let t = V(e);
304
+ return [ge(t, e), ge(t.reverse(), e)];
294
305
  }
295
- function B(e) {
306
+ function V(e) {
296
307
  let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
297
308
  let t = e.tagName === "INPUT" && e.type === "hidden";
298
309
  return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
@@ -300,10 +311,10 @@ function B(e) {
300
311
  for (; n.nextNode();) t.push(n.currentNode);
301
312
  return t;
302
313
  }
303
- function _e(e, t) {
304
- for (let n of e) if (!ve(n, { upTo: t })) return n;
314
+ function ge(e, t) {
315
+ for (let n of e) if (!_e(n, { upTo: t })) return n;
305
316
  }
306
- function ve(e, { upTo: t }) {
317
+ function _e(e, { upTo: t }) {
307
318
  if (getComputedStyle(e).visibility === "hidden") return !0;
308
319
  for (; e;) {
309
320
  if (t !== void 0 && e === t) return !1;
@@ -312,57 +323,57 @@ function ve(e, { upTo: t }) {
312
323
  }
313
324
  return !1;
314
325
  }
315
- function ye(e) {
326
+ function ve(e) {
316
327
  return e instanceof HTMLInputElement && "select" in e;
317
328
  }
318
- function V(e, { select: t = !1 } = {}) {
329
+ function H(e, { select: t = !1 } = {}) {
319
330
  if (e && e.focus) {
320
331
  let n = document.activeElement;
321
- e.focus({ preventScroll: !0 }), e !== n && ye(e) && t && e.select();
332
+ e.focus({ preventScroll: !0 }), e !== n && ve(e) && t && e.select();
322
333
  }
323
334
  }
324
- var H = be();
325
- function be() {
335
+ var U = ye();
336
+ function ye() {
326
337
  let e = [];
327
338
  return {
328
339
  add(t) {
329
340
  let n = e[0];
330
- t !== n && n?.pause(), e = xe(e, t), e.unshift(t);
341
+ t !== n && n?.pause(), e = be(e, t), e.unshift(t);
331
342
  },
332
343
  remove(t) {
333
- e = xe(e, t), e[0]?.resume();
344
+ e = be(e, t), e[0]?.resume();
334
345
  }
335
346
  };
336
347
  }
337
- function xe(e, t) {
348
+ function be(e, t) {
338
349
  let n = [...e], r = n.indexOf(t);
339
350
  return r !== -1 && n.splice(r, 1), n;
340
351
  }
341
- function Se(e) {
352
+ function xe(e) {
342
353
  return e.filter((e) => e.tagName !== "A");
343
354
  }
344
355
  //#endregion
345
356
  //#region node_modules/vaul/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.mjs
346
- var U = "Portal", Ce = m.forwardRef((e, t) => {
347
- let { container: r, ...i } = e, [a, o] = m.useState(!1);
348
- n(() => o(!0), []);
349
- let s = r || a && globalThis?.document?.body;
350
- return s ? S.createPortal(/* @__PURE__ */ b(A.div, {
357
+ var W = "Portal", Se = p.forwardRef((e, t) => {
358
+ let { container: n, ...i } = e, [a, o] = p.useState(!1);
359
+ r(() => o(!0), []);
360
+ let s = n || a && globalThis?.document?.body;
361
+ return s ? x.createPortal(/* @__PURE__ */ y(A.div, {
351
362
  ...i,
352
363
  ref: t
353
364
  }), s) : null;
354
365
  });
355
- Ce.displayName = U;
366
+ Se.displayName = W;
356
367
  //#endregion
357
368
  //#region node_modules/vaul/node_modules/@radix-ui/react-dialog/dist/index.mjs
358
- var W = "Dialog", [we, Te] = e(W), [Ee, G] = we(W), De = (e) => {
359
- let { __scopeDialog: t, children: n, open: r, defaultOpen: a, onOpenChange: o, modal: c = !0 } = e, l = m.useRef(null), u = m.useRef(null), [d, f] = i({
369
+ var G = "Dialog", [Ce, we] = n(G), [Te, K] = Ce(G), Ee = (e) => {
370
+ let { __scopeDialog: t, children: n, open: r, defaultOpen: a, onOpenChange: o, modal: c = !0 } = e, l = p.useRef(null), u = p.useRef(null), [d, f] = i({
360
371
  prop: r,
361
372
  defaultProp: a ?? !1,
362
373
  onChange: o,
363
- caller: W
374
+ caller: G
364
375
  });
365
- return /* @__PURE__ */ b(Ee, {
376
+ return /* @__PURE__ */ y(Te, {
366
377
  scope: t,
367
378
  triggerRef: l,
368
379
  contentRef: u,
@@ -371,34 +382,34 @@ var W = "Dialog", [we, Te] = e(W), [Ee, G] = we(W), De = (e) => {
371
382
  descriptionId: s(),
372
383
  open: d,
373
384
  onOpenChange: f,
374
- onOpenToggle: m.useCallback(() => f((e) => !e), [f]),
385
+ onOpenToggle: p.useCallback(() => f((e) => !e), [f]),
375
386
  modal: c,
376
387
  children: n
377
388
  });
378
389
  };
379
- De.displayName = W;
380
- var Oe = "DialogTrigger", ke = m.forwardRef((e, t) => {
381
- let { __scopeDialog: n, ...i } = e, o = G(Oe, n), s = a(t, o.triggerRef);
382
- return /* @__PURE__ */ b(A.button, {
390
+ Ee.displayName = G;
391
+ var De = "DialogTrigger", Oe = p.forwardRef((e, n) => {
392
+ let { __scopeDialog: r, ...i } = e, o = K(De, r), s = a(n, o.triggerRef);
393
+ return /* @__PURE__ */ y(A.button, {
383
394
  type: "button",
384
395
  "aria-haspopup": "dialog",
385
396
  "aria-expanded": o.open,
386
397
  "aria-controls": o.open ? o.contentId : void 0,
387
- "data-state": Je(o.open),
398
+ "data-state": qe(o.open),
388
399
  ...i,
389
400
  ref: s,
390
- onClick: r(e.onClick, o.onOpenToggle)
401
+ onClick: t(e.onClick, o.onOpenToggle)
391
402
  });
392
403
  });
393
- ke.displayName = Oe;
394
- var Ae = "DialogPortal", [je, Me] = we(Ae, { forceMount: void 0 }), Ne = (e) => {
395
- let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a = G(Ae, t);
396
- return /* @__PURE__ */ b(je, {
404
+ Oe.displayName = De;
405
+ var ke = "DialogPortal", [Ae, je] = Ce(ke, { forceMount: void 0 }), Me = (e) => {
406
+ let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a = K(ke, t);
407
+ return /* @__PURE__ */ y(Ae, {
397
408
  scope: t,
398
409
  forceMount: n,
399
- children: m.Children.map(r, (e) => /* @__PURE__ */ b(o, {
410
+ children: p.Children.map(r, (e) => /* @__PURE__ */ y(o, {
400
411
  present: n || a.open,
401
- children: /* @__PURE__ */ b(Ce, {
412
+ children: /* @__PURE__ */ y(Se, {
402
413
  asChild: !0,
403
414
  container: i,
404
415
  children: e
@@ -406,26 +417,26 @@ var Ae = "DialogPortal", [je, Me] = we(Ae, { forceMount: void 0 }), Ne = (e) =>
406
417
  }))
407
418
  });
408
419
  };
409
- Ne.displayName = Ae;
410
- var Pe = "DialogOverlay", Fe = m.forwardRef((e, t) => {
411
- let n = Me(Pe, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = G(Pe, e.__scopeDialog);
412
- return a.modal ? /* @__PURE__ */ b(o, {
420
+ Me.displayName = ke;
421
+ var Ne = "DialogOverlay", Pe = p.forwardRef((e, t) => {
422
+ let n = je(Ne, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = K(Ne, e.__scopeDialog);
423
+ return a.modal ? /* @__PURE__ */ y(o, {
413
424
  present: r || a.open,
414
- children: /* @__PURE__ */ b(Le, {
425
+ children: /* @__PURE__ */ y(Ie, {
415
426
  ...i,
416
427
  ref: t
417
428
  })
418
429
  }) : null;
419
430
  });
420
- Fe.displayName = Pe;
421
- var Ie = /* @__PURE__ */ C("DialogOverlay.RemoveScroll"), Le = m.forwardRef((e, t) => {
422
- let { __scopeDialog: n, ...r } = e, i = G(Pe, n);
423
- return /* @__PURE__ */ b(d, {
424
- as: Ie,
431
+ Pe.displayName = Ne;
432
+ var Fe = /* @__PURE__ */ S("DialogOverlay.RemoveScroll"), Ie = p.forwardRef((e, t) => {
433
+ let { __scopeDialog: n, ...r } = e, i = K(Ne, n);
434
+ return /* @__PURE__ */ y(u, {
435
+ as: Fe,
425
436
  allowPinchZoom: !0,
426
437
  shards: [i.contentRef],
427
- children: /* @__PURE__ */ b(A.div, {
428
- "data-state": Je(i.open),
438
+ children: /* @__PURE__ */ y(A.div, {
439
+ "data-state": qe(i.open),
429
440
  ...r,
430
441
  ref: t,
431
442
  style: {
@@ -434,42 +445,42 @@ var Ie = /* @__PURE__ */ C("DialogOverlay.RemoveScroll"), Le = m.forwardRef((e,
434
445
  }
435
446
  })
436
447
  });
437
- }), K = "DialogContent", Re = m.forwardRef((e, t) => {
438
- let n = Me(K, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = G(K, e.__scopeDialog);
439
- return /* @__PURE__ */ b(o, {
448
+ }), q = "DialogContent", Le = p.forwardRef((e, t) => {
449
+ let n = je(q, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = K(q, e.__scopeDialog);
450
+ return /* @__PURE__ */ y(o, {
440
451
  present: r || a.open,
441
- children: a.modal ? /* @__PURE__ */ b(ze, {
452
+ children: a.modal ? /* @__PURE__ */ y(Re, {
442
453
  ...i,
443
454
  ref: t
444
- }) : /* @__PURE__ */ b(Be, {
455
+ }) : /* @__PURE__ */ y(ze, {
445
456
  ...i,
446
457
  ref: t
447
458
  })
448
459
  });
449
460
  });
450
- Re.displayName = K;
451
- var ze = m.forwardRef((e, t) => {
452
- let n = G(K, e.__scopeDialog), i = m.useRef(null), o = a(t, n.contentRef, i);
453
- return m.useEffect(() => {
461
+ Le.displayName = q;
462
+ var Re = p.forwardRef((e, n) => {
463
+ let r = K(q, e.__scopeDialog), i = p.useRef(null), o = a(n, r.contentRef, i);
464
+ return p.useEffect(() => {
454
465
  let e = i.current;
455
- if (e) return p(e);
456
- }, []), /* @__PURE__ */ b(Ve, {
466
+ if (e) return f(e);
467
+ }, []), /* @__PURE__ */ y(Be, {
457
468
  ...e,
458
469
  ref: o,
459
- trapFocus: n.open,
460
- disableOutsidePointerEvents: n.open,
461
- onCloseAutoFocus: r(e.onCloseAutoFocus, (e) => {
462
- e.preventDefault(), n.triggerRef.current?.focus();
470
+ trapFocus: r.open,
471
+ disableOutsidePointerEvents: r.open,
472
+ onCloseAutoFocus: t(e.onCloseAutoFocus, (e) => {
473
+ e.preventDefault(), r.triggerRef.current?.focus();
463
474
  }),
464
- onPointerDownOutside: r(e.onPointerDownOutside, (e) => {
475
+ onPointerDownOutside: t(e.onPointerDownOutside, (e) => {
465
476
  let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
466
477
  (t.button === 2 || n) && e.preventDefault();
467
478
  }),
468
- onFocusOutside: r(e.onFocusOutside, (e) => e.preventDefault())
479
+ onFocusOutside: t(e.onFocusOutside, (e) => e.preventDefault())
469
480
  });
470
- }), Be = m.forwardRef((e, t) => {
471
- let n = G(K, e.__scopeDialog), r = m.useRef(!1), i = m.useRef(!1);
472
- return /* @__PURE__ */ b(Ve, {
481
+ }), ze = p.forwardRef((e, t) => {
482
+ let n = K(q, e.__scopeDialog), r = p.useRef(!1), i = p.useRef(!1);
483
+ return /* @__PURE__ */ y(Be, {
473
484
  ...e,
474
485
  ref: t,
475
486
  trapFocus: !1,
@@ -483,75 +494,75 @@ var ze = m.forwardRef((e, t) => {
483
494
  n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
484
495
  }
485
496
  });
486
- }), Ve = m.forwardRef((e, t) => {
487
- let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: o, ...s } = e, c = G(K, n), l = m.useRef(null), u = a(t, l);
488
- return f(), /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(z, {
497
+ }), Be = p.forwardRef((e, t) => {
498
+ let { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: o, ...s } = e, c = K(q, n), l = p.useRef(null), u = a(t, l);
499
+ return d(), /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(B, {
489
500
  asChild: !0,
490
501
  loop: !0,
491
502
  trapped: r,
492
503
  onMountAutoFocus: i,
493
504
  onUnmountAutoFocus: o,
494
- children: /* @__PURE__ */ b(F, {
505
+ children: /* @__PURE__ */ y(F, {
495
506
  role: "dialog",
496
507
  id: c.contentId,
497
508
  "aria-describedby": c.descriptionId,
498
509
  "aria-labelledby": c.titleId,
499
- "data-state": Je(c.open),
510
+ "data-state": qe(c.open),
500
511
  ...s,
501
512
  ref: u,
502
513
  onDismiss: () => c.onOpenChange(!1)
503
514
  })
504
- }), /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(Qe, { titleId: c.titleId }), /* @__PURE__ */ b(et, {
515
+ }), /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(Ze, { titleId: c.titleId }), /* @__PURE__ */ y($e, {
505
516
  contentRef: l,
506
517
  descriptionId: c.descriptionId
507
518
  })] })] });
508
- }), He = "DialogTitle", Ue = m.forwardRef((e, t) => {
509
- let { __scopeDialog: n, ...r } = e, i = G(He, n);
510
- return /* @__PURE__ */ b(A.h2, {
519
+ }), Ve = "DialogTitle", He = p.forwardRef((e, t) => {
520
+ let { __scopeDialog: n, ...r } = e, i = K(Ve, n);
521
+ return /* @__PURE__ */ y(A.h2, {
511
522
  id: i.titleId,
512
523
  ...r,
513
524
  ref: t
514
525
  });
515
526
  });
516
- Ue.displayName = He;
517
- var We = "DialogDescription", Ge = m.forwardRef((e, t) => {
518
- let { __scopeDialog: n, ...r } = e, i = G(We, n);
519
- return /* @__PURE__ */ b(A.p, {
527
+ He.displayName = Ve;
528
+ var Ue = "DialogDescription", We = p.forwardRef((e, t) => {
529
+ let { __scopeDialog: n, ...r } = e, i = K(Ue, n);
530
+ return /* @__PURE__ */ y(A.p, {
520
531
  id: i.descriptionId,
521
532
  ...r,
522
533
  ref: t
523
534
  });
524
535
  });
525
- Ge.displayName = We;
526
- var Ke = "DialogClose", qe = m.forwardRef((e, t) => {
527
- let { __scopeDialog: n, ...i } = e, a = G(Ke, n);
528
- return /* @__PURE__ */ b(A.button, {
536
+ We.displayName = Ue;
537
+ var Ge = "DialogClose", Ke = p.forwardRef((e, n) => {
538
+ let { __scopeDialog: r, ...i } = e, a = K(Ge, r);
539
+ return /* @__PURE__ */ y(A.button, {
529
540
  type: "button",
530
541
  ...i,
531
- ref: t,
532
- onClick: r(e.onClick, () => a.onOpenChange(!1))
542
+ ref: n,
543
+ onClick: t(e.onClick, () => a.onOpenChange(!1))
533
544
  });
534
545
  });
535
- qe.displayName = Ke;
536
- function Je(e) {
546
+ Ke.displayName = Ge;
547
+ function qe(e) {
537
548
  return e ? "open" : "closed";
538
549
  }
539
- var Ye = "DialogTitleWarning", [Xe, Ze] = t(Ye, {
540
- contentName: K,
541
- titleName: He,
550
+ var Je = "DialogTitleWarning", [Ye, Xe] = e(Je, {
551
+ contentName: q,
552
+ titleName: Ve,
542
553
  docsSlug: "dialog"
543
- }), Qe = ({ titleId: e }) => {
544
- let t = Ze(Ye), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
554
+ }), Ze = ({ titleId: e }) => {
555
+ let t = Xe(Je), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
545
556
 
546
557
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
547
558
 
548
559
  For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
549
- return m.useEffect(() => {
560
+ return p.useEffect(() => {
550
561
  e && (document.getElementById(e) || console.error(n));
551
562
  }, [n, e]), null;
552
- }, $e = "DialogDescriptionWarning", et = ({ contentRef: e, descriptionId: t }) => {
553
- let n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ze($e).contentName}}.`;
554
- return m.useEffect(() => {
563
+ }, Qe = "DialogDescriptionWarning", $e = ({ contentRef: e, descriptionId: t }) => {
564
+ let n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Xe(Qe).contentName}}.`;
565
+ return p.useEffect(() => {
555
566
  let r = e.current?.getAttribute("aria-describedby");
556
567
  t && r && (document.getElementById(t) || console.warn(n));
557
568
  }, [
@@ -559,15 +570,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
559
570
  e,
560
571
  t
561
572
  ]), null;
562
- }, tt = De, nt = ke, rt = Ne, it = Fe, at = Re, ot = Ue, st = Ge, ct = qe;
573
+ }, et = Ee, tt = Oe, nt = Me, rt = Pe, it = Le, at = He, ot = We, st = Ke;
563
574
  //#endregion
564
575
  //#region node_modules/vaul/dist/index.mjs
565
- function lt(e) {
576
+ function ct(e) {
566
577
  if (!e || typeof document > "u") return;
567
578
  let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
568
579
  n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
569
580
  }
570
- var ut = h.createContext({
581
+ var lt = m.createContext({
571
582
  drawerRef: { current: null },
572
583
  overlayRef: { current: null },
573
584
  onPress: () => {},
@@ -597,50 +608,50 @@ var ut = h.createContext({
597
608
  noBodyStyles: !1,
598
609
  container: null,
599
610
  autoFocus: !1
600
- }), q = () => {
601
- let e = h.useContext(ut);
611
+ }), J = () => {
612
+ let e = m.useContext(lt);
602
613
  if (!e) throw Error("useDrawerContext must be used within a Drawer.Root");
603
614
  return e;
604
615
  };
605
- lt("[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(\n[data-state=closed]\n){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)}}");
606
- function dt() {
616
+ ct("[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(\n[data-state=closed]\n){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)}}");
617
+ function ut() {
607
618
  let e = navigator.userAgent;
608
619
  return typeof window < "u" && (/Firefox/.test(e) && /Mobile/.test(e) || /FxiOS/.test(e));
609
620
  }
621
+ function dt() {
622
+ return gt(/^Mac/);
623
+ }
610
624
  function ft() {
611
- return _t(/^Mac/);
625
+ return gt(/^iPhone/);
612
626
  }
613
627
  function pt() {
614
- return _t(/^iPhone/);
628
+ return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
615
629
  }
616
630
  function mt() {
617
- return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
631
+ return gt(/^iPad/) || dt() && navigator.maxTouchPoints > 1;
618
632
  }
619
633
  function ht() {
620
- return _t(/^iPad/) || ft() && navigator.maxTouchPoints > 1;
621
- }
622
- function gt() {
623
- return pt() || ht();
634
+ return ft() || mt();
624
635
  }
625
- function _t(e) {
636
+ function gt(e) {
626
637
  return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
627
638
  }
628
- var vt = 24, yt = typeof window < "u" ? _ : g;
629
- function bt(...e) {
639
+ var _t = 24, vt = typeof window < "u" ? g : h;
640
+ function yt(...e) {
630
641
  return (...t) => {
631
642
  for (let n of e) typeof n == "function" && n(...t);
632
643
  };
633
644
  }
634
- var xt = typeof document < "u" && window.visualViewport;
635
- function St(e) {
645
+ var bt = typeof document < "u" && window.visualViewport;
646
+ function xt(e) {
636
647
  let t = window.getComputedStyle(e);
637
648
  return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
638
649
  }
639
- function Ct(e) {
640
- for (St(e) && (e = e.parentElement); e && !St(e);) e = e.parentElement;
650
+ function St(e) {
651
+ for (xt(e) && (e = e.parentElement); e && !xt(e);) e = e.parentElement;
641
652
  return e || document.scrollingElement || document.documentElement;
642
653
  }
643
- var wt = new Set([
654
+ var Ct = /* @__PURE__ */ new Set([
644
655
  "checkbox",
645
656
  "radio",
646
657
  "range",
@@ -650,18 +661,18 @@ var wt = new Set([
650
661
  "button",
651
662
  "submit",
652
663
  "reset"
653
- ]), Tt = 0, Et;
654
- function Dt(e = {}) {
664
+ ]), wt = 0, Tt;
665
+ function Et(e = {}) {
655
666
  let { isDisabled: t } = e;
656
- yt(() => {
657
- if (!t) return Tt++, Tt === 1 && gt() && (Et = Ot()), () => {
658
- Tt--, Tt === 0 && Et?.();
667
+ vt(() => {
668
+ if (!t) return wt++, wt === 1 && ht() && (Tt = Dt()), () => {
669
+ wt--, wt === 0 && Tt?.();
659
670
  };
660
671
  }, [t]);
661
672
  }
662
- function Ot() {
673
+ function Dt() {
663
674
  let e, t = 0, n = (n) => {
664
- e = Ct(n.target), !(e === document.documentElement && e === document.body) && (t = n.changedTouches[0].pageY);
675
+ e = St(n.target), !(e === document.documentElement && e === document.body) && (t = n.changedTouches[0].pageY);
665
676
  }, r = (n) => {
666
677
  if (!e || e === document.documentElement || e === document.body) {
667
678
  n.preventDefault();
@@ -671,70 +682,70 @@ function Ot() {
671
682
  a !== 0 && ((i <= 0 && r > t || i >= a && r < t) && n.preventDefault(), t = r);
672
683
  }, i = (e) => {
673
684
  let t = e.target;
674
- jt(t) && t !== document.activeElement && (e.preventDefault(), t.style.transform = "translateY(-2000px)", t.focus(), requestAnimationFrame(() => {
685
+ At(t) && t !== document.activeElement && (e.preventDefault(), t.style.transform = "translateY(-2000px)", t.focus(), requestAnimationFrame(() => {
675
686
  t.style.transform = "";
676
687
  }));
677
688
  }, a = (e) => {
678
689
  let t = e.target;
679
- jt(t) && (t.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
680
- t.style.transform = "", xt && (xt.height < window.innerHeight ? requestAnimationFrame(() => {
681
- At(t);
682
- }) : xt.addEventListener("resize", () => At(t), { once: !0 }));
690
+ At(t) && (t.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
691
+ t.style.transform = "", bt && (bt.height < window.innerHeight ? requestAnimationFrame(() => {
692
+ kt(t);
693
+ }) : bt.addEventListener("resize", () => kt(t), { once: !0 }));
683
694
  }));
684
695
  }, o = () => {
685
696
  window.scrollTo(0, 0);
686
- }, s = window.pageXOffset, c = window.pageYOffset, l = bt(kt(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
697
+ }, s = window.pageXOffset, c = window.pageYOffset, l = yt(Ot(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
687
698
  window.scrollTo(0, 0);
688
- let u = bt(J(document, "touchstart", n, {
699
+ let u = yt(Y(document, "touchstart", n, {
689
700
  passive: !1,
690
701
  capture: !0
691
- }), J(document, "touchmove", r, {
702
+ }), Y(document, "touchmove", r, {
692
703
  passive: !1,
693
704
  capture: !0
694
- }), J(document, "touchend", i, {
705
+ }), Y(document, "touchend", i, {
695
706
  passive: !1,
696
707
  capture: !0
697
- }), J(document, "focus", a, !0), J(window, "scroll", o));
708
+ }), Y(document, "focus", a, !0), Y(window, "scroll", o));
698
709
  return () => {
699
710
  l(), u(), window.scrollTo(s, c);
700
711
  };
701
712
  }
702
- function kt(e, t, n) {
713
+ function Ot(e, t, n) {
703
714
  let r = e.style[t];
704
715
  return e.style[t] = n, () => {
705
716
  e.style[t] = r;
706
717
  };
707
718
  }
708
- function J(e, t, n, r) {
719
+ function Y(e, t, n, r) {
709
720
  return e.addEventListener(t, n, r), () => {
710
721
  e.removeEventListener(t, n, r);
711
722
  };
712
723
  }
713
- function At(e) {
724
+ function kt(e) {
714
725
  let t = document.scrollingElement || document.documentElement;
715
726
  for (; e && e !== t;) {
716
- let t = Ct(e);
727
+ let t = St(e);
717
728
  if (t !== document.documentElement && t !== document.body && t !== e) {
718
729
  let n = t.getBoundingClientRect().top, r = e.getBoundingClientRect().top;
719
- e.getBoundingClientRect().bottom > t.getBoundingClientRect().bottom + vt && (t.scrollTop += r - n);
730
+ e.getBoundingClientRect().bottom > t.getBoundingClientRect().bottom + _t && (t.scrollTop += r - n);
720
731
  }
721
732
  e = t.parentElement;
722
733
  }
723
734
  }
724
- function jt(e) {
725
- return e instanceof HTMLInputElement && !wt.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
735
+ function At(e) {
736
+ return e instanceof HTMLInputElement && !Ct.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
726
737
  }
727
- function Mt(e, t) {
738
+ function jt(e, t) {
728
739
  typeof e == "function" ? e(t) : e != null && (e.current = t);
729
740
  }
730
- function Nt(...e) {
731
- return (t) => e.forEach((e) => Mt(e, t));
741
+ function Mt(...e) {
742
+ return (t) => e.forEach((e) => jt(e, t));
732
743
  }
733
- function Pt(...e) {
734
- return m.useCallback(Nt(...e), e);
744
+ function Nt(...e) {
745
+ return p.useCallback(Mt(...e), e);
735
746
  }
736
- var Ft = /* @__PURE__ */ new WeakMap();
737
- function Y(e, t, n = !1) {
747
+ var Pt = /* @__PURE__ */ new WeakMap();
748
+ function X(e, t, n = !1) {
738
749
  if (!e || !(e instanceof HTMLElement)) return;
739
750
  let r = {};
740
751
  Object.entries(t).forEach(([t, n]) => {
@@ -743,14 +754,14 @@ function Y(e, t, n = !1) {
743
754
  return;
744
755
  }
745
756
  r[t] = e.style[t], e.style[t] = n;
746
- }), !n && Ft.set(e, r);
757
+ }), !n && Pt.set(e, r);
747
758
  }
748
- function It(e, t) {
759
+ function Ft(e, t) {
749
760
  if (!e || !(e instanceof HTMLElement)) return;
750
- let n = Ft.get(e);
761
+ let n = Pt.get(e);
751
762
  n && (e.style[t] = n[t]);
752
763
  }
753
- var X = (e) => {
764
+ var Z = (e) => {
754
765
  switch (e) {
755
766
  case "top":
756
767
  case "bottom": return !0;
@@ -759,22 +770,22 @@ var X = (e) => {
759
770
  default: return e;
760
771
  }
761
772
  };
762
- function Lt(e, t) {
773
+ function It(e, t) {
763
774
  if (!e) return null;
764
775
  let n = window.getComputedStyle(e), r = n.transform || n.webkitTransform || n.mozTransform, i = r.match(/^matrix3d\((.+)\)$/);
765
- return i ? parseFloat(i[1].split(", ")[X(t) ? 13 : 12]) : (i = r.match(/^matrix\((.+)\)$/), i ? parseFloat(i[1].split(", ")[X(t) ? 5 : 4]) : null);
776
+ return i ? parseFloat(i[1].split(", ")[Z(t) ? 13 : 12]) : (i = r.match(/^matrix\((.+)\)$/), i ? parseFloat(i[1].split(", ")[Z(t) ? 5 : 4]) : null);
766
777
  }
767
- function Rt(e) {
778
+ function Lt(e) {
768
779
  return 8 * (Math.log(e + 1) - 2);
769
780
  }
770
- function zt(e, t) {
781
+ function Rt(e, t) {
771
782
  if (!e) return () => {};
772
783
  let n = e.style.cssText;
773
784
  return Object.assign(e.style, t), () => {
774
785
  e.style.cssText = n;
775
786
  };
776
787
  }
777
- var Z = {
788
+ var Q = {
778
789
  DURATION: .5,
779
790
  EASE: [
780
791
  .32,
@@ -782,16 +793,16 @@ var Z = {
782
793
  0,
783
794
  1
784
795
  ]
785
- }, Bt = .4, Vt = .25, Ht = 100, Ut = 8, Wt = 16, Gt = 26, Kt = "vaul-dragging";
786
- function qt(e) {
787
- let t = h.useRef(e);
788
- return h.useEffect(() => {
796
+ }, zt = .4, Bt = .25, Vt = 100, Ht = 8, Ut = 16, Wt = 26, Gt = "vaul-dragging";
797
+ function Kt(e) {
798
+ let t = m.useRef(e);
799
+ return m.useEffect(() => {
789
800
  t.current = e;
790
- }), h.useMemo(() => (...e) => t.current == null ? void 0 : t.current.call(t, ...e), []);
801
+ }), m.useMemo(() => (...e) => t.current == null ? void 0 : t.current.call(t, ...e), []);
791
802
  }
792
- function Jt({ defaultProp: e, onChange: t }) {
793
- let n = h.useState(e), [r] = n, i = h.useRef(r), a = qt(t);
794
- return h.useEffect(() => {
803
+ function qt({ defaultProp: e, onChange: t }) {
804
+ let n = m.useState(e), [r] = n, i = m.useRef(r), a = Kt(t);
805
+ return m.useEffect(() => {
795
806
  i.current !== r && (a(r), i.current = r);
796
807
  }, [
797
808
  r,
@@ -799,12 +810,12 @@ function Jt({ defaultProp: e, onChange: t }) {
799
810
  a
800
811
  ]), n;
801
812
  }
802
- function Yt({ prop: e, defaultProp: t, onChange: n = () => {} }) {
803
- let [r, i] = Jt({
813
+ function Jt({ prop: e, defaultProp: t, onChange: n = () => {} }) {
814
+ let [r, i] = qt({
804
815
  defaultProp: t,
805
816
  onChange: n
806
- }), a = e !== void 0, o = a ? e : r, s = qt(n);
807
- return [o, h.useCallback((t) => {
817
+ }), a = e !== void 0, o = a ? e : r, s = Kt(n);
818
+ return [o, m.useCallback((t) => {
808
819
  if (a) {
809
820
  let n = typeof t == "function" ? t(e) : t;
810
821
  n !== e && s(n);
@@ -816,16 +827,16 @@ function Yt({ prop: e, defaultProp: t, onChange: n = () => {} }) {
816
827
  s
817
828
  ])];
818
829
  }
819
- function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: i, fadeFromIndex: a, onSnapPointChange: o, direction: s = "bottom", container: c, snapToSequentialPoint: l }) {
820
- let [u, d] = Yt({
830
+ function Yt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: i, fadeFromIndex: a, onSnapPointChange: o, direction: s = "bottom", container: c, snapToSequentialPoint: l }) {
831
+ let [u, d] = Jt({
821
832
  prop: e,
822
833
  defaultProp: n?.[0],
823
834
  onChange: t
824
- }), [f, p] = h.useState(typeof window < "u" ? {
835
+ }), [f, p] = m.useState(typeof window < "u" ? {
825
836
  innerWidth: window.innerWidth,
826
837
  innerHeight: window.innerHeight
827
838
  } : void 0);
828
- h.useEffect(() => {
839
+ m.useEffect(() => {
829
840
  function e() {
830
841
  p({
831
842
  innerWidth: window.innerWidth,
@@ -834,7 +845,7 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
834
845
  }
835
846
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
836
847
  }, []);
837
- let m = h.useMemo(() => u === n?.[n.length - 1] || null, [n, u]), g = h.useMemo(() => n?.findIndex((e) => e === u) ?? null, [n, u]), _ = n && n.length > 0 && (a || a === 0) && !Number.isNaN(a) && n[a] === u || !n, v = h.useMemo(() => {
848
+ let h = m.useMemo(() => u === n?.[n.length - 1] || null, [n, u]), g = m.useMemo(() => n?.findIndex((e) => e === u) ?? null, [n, u]), _ = n && n.length > 0 && (a || a === 0) && !Number.isNaN(a) && n[a] === u || !n, v = m.useMemo(() => {
838
849
  let e = c ? {
839
850
  width: c.getBoundingClientRect().width,
840
851
  height: c.getBoundingClientRect().height
@@ -847,7 +858,7 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
847
858
  };
848
859
  return n?.map((t) => {
849
860
  let n = typeof t == "string", r = 0;
850
- if (n && (r = parseInt(t, 10)), X(s)) {
861
+ if (n && (r = parseInt(t, 10)), Z(s)) {
851
862
  let i = n ? r : f ? t * e.height : 0;
852
863
  return f ? s === "bottom" ? e.height - i : -e.height + i : i;
853
864
  }
@@ -858,16 +869,16 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
858
869
  n,
859
870
  f,
860
871
  c
861
- ]), y = h.useMemo(() => g === null ? null : v?.[g], [v, g]), b = h.useCallback((e) => {
872
+ ]), y = m.useMemo(() => g === null ? null : v?.[g], [v, g]), b = m.useCallback((e) => {
862
873
  let t = v?.findIndex((t) => t === e) ?? null;
863
- o(t), Y(r.current, {
864
- transition: `transform ${Z.DURATION}s cubic-bezier(${Z.EASE.join(",")})`,
865
- transform: X(s) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)`
866
- }), v && t !== v.length - 1 && a !== void 0 && t !== a && t < a ? Y(i.current, {
867
- transition: `opacity ${Z.DURATION}s cubic-bezier(${Z.EASE.join(",")})`,
874
+ o(t), X(r.current, {
875
+ transition: `transform ${Q.DURATION}s cubic-bezier(${Q.EASE.join(",")})`,
876
+ transform: Z(s) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)`
877
+ }), v && t !== v.length - 1 && a !== void 0 && t !== a && t < a ? X(i.current, {
878
+ transition: `opacity ${Q.DURATION}s cubic-bezier(${Q.EASE.join(",")})`,
868
879
  opacity: "0"
869
- }) : Y(i.current, {
870
- transition: `opacity ${Z.DURATION}s cubic-bezier(${Z.EASE.join(",")})`,
880
+ }) : X(i.current, {
881
+ transition: `opacity ${Q.DURATION}s cubic-bezier(${Q.EASE.join(",")})`,
871
882
  opacity: "1"
872
883
  }), d(n?.[Math.max(t, 0)]);
873
884
  }, [
@@ -878,7 +889,7 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
878
889
  i,
879
890
  d
880
891
  ]);
881
- h.useEffect(() => {
892
+ m.useEffect(() => {
882
893
  if (u || e) {
883
894
  let t = n?.findIndex((t) => t === e || t === u) ?? -1;
884
895
  v && t !== -1 && typeof v[t] == "number" && b(v[t]);
@@ -893,7 +904,7 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
893
904
  function x({ draggedDistance: e, closeDrawer: t, velocity: r, dismissible: o }) {
894
905
  if (a === void 0) return;
895
906
  let c = s === "bottom" || s === "right" ? (y ?? 0) - e : (y ?? 0) + e, u = g === a - 1, d = g === 0, f = e > 0;
896
- if (u && Y(i.current, { transition: `opacity ${Z.DURATION}s cubic-bezier(${Z.EASE.join(",")})` }), !l && r > 2 && !f) {
907
+ if (u && X(i.current, { transition: `opacity ${Q.DURATION}s cubic-bezier(${Q.EASE.join(",")})` }), !l && r > 2 && !f) {
897
908
  o ? t() : b(v[0]);
898
909
  return;
899
910
  }
@@ -901,10 +912,10 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
901
912
  b(v[n.length - 1]);
902
913
  return;
903
914
  }
904
- let p = v?.reduce((e, t) => typeof e != "number" || typeof t != "number" ? e : Math.abs(t - c) < Math.abs(e - c) ? t : e), h = X(s) ? window.innerHeight : window.innerWidth;
905
- if (r > Bt && Math.abs(e) < h * .4) {
915
+ let p = v?.reduce((e, t) => typeof e != "number" || typeof t != "number" ? e : Math.abs(t - c) < Math.abs(e - c) ? t : e), m = Z(s) ? window.innerHeight : window.innerWidth;
916
+ if (r > zt && Math.abs(e) < m * .4) {
906
917
  let e = f ? 1 : -1;
907
- if (e > 0 && m && n) {
918
+ if (e > 0 && h && n) {
908
919
  b(v[n.length - 1]);
909
920
  return;
910
921
  }
@@ -917,7 +928,7 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
917
928
  function S({ draggedDistance: e }) {
918
929
  if (y === null) return;
919
930
  let t = s === "bottom" || s === "right" ? y - e : y + e;
920
- (s === "bottom" || s === "right") && t < v[v.length - 1] || (s === "top" || s === "left") && t > v[v.length - 1] || Y(r.current, { transform: X(s) ? `translate3d(0, ${t}px, 0)` : `translate3d(${t}px, 0, 0)` });
931
+ (s === "bottom" || s === "right") && t < v[v.length - 1] || (s === "top" || s === "left") && t > v[v.length - 1] || X(r.current, { transform: Z(s) ? `translate3d(0, ${t}px, 0)` : `translate3d(${t}px, 0, 0)` });
921
932
  }
922
933
  function C(e, t) {
923
934
  if (!n || typeof g != "number" || !v || a === void 0) return null;
@@ -929,7 +940,7 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
929
940
  return r ? 1 - s : s;
930
941
  }
931
942
  return {
932
- isLastSnapPoint: m,
943
+ isLastSnapPoint: h,
933
944
  activeSnapPoint: u,
934
945
  shouldFade: _,
935
946
  getPercentageDragged: C,
@@ -940,31 +951,31 @@ function Xt({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n,
940
951
  snapPointsOffset: v
941
952
  };
942
953
  }
943
- function Zt() {
944
- let { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: i } = q(), a = h.useRef(null), o = v(() => document.body.style.backgroundColor, []);
954
+ function Xt() {
955
+ let { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: i } = J(), a = m.useRef(null), o = _(() => document.body.style.backgroundColor, []);
945
956
  function s() {
946
- return (window.innerWidth - Gt) / window.innerWidth;
957
+ return (window.innerWidth - Wt) / window.innerWidth;
947
958
  }
948
- h.useEffect(() => {
959
+ m.useEffect(() => {
949
960
  if (t && n) {
950
961
  a.current && clearTimeout(a.current);
951
962
  let t = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
952
963
  if (!t) return;
953
- r && !i && zt(document.body, { background: "black" }), zt(t, {
954
- transformOrigin: X(e) ? "top" : "left",
964
+ r && !i && Rt(document.body, { background: "black" }), Rt(t, {
965
+ transformOrigin: Z(e) ? "top" : "left",
955
966
  transitionProperty: "transform, border-radius",
956
- transitionDuration: `${Z.DURATION}s`,
957
- transitionTimingFunction: `cubic-bezier(${Z.EASE.join(",")})`
967
+ transitionDuration: `${Q.DURATION}s`,
968
+ transitionTimingFunction: `cubic-bezier(${Q.EASE.join(",")})`
958
969
  });
959
- let n = zt(t, {
960
- borderRadius: `${Ut}px`,
970
+ let n = Rt(t, {
971
+ borderRadius: `${Ht}px`,
961
972
  overflow: "hidden",
962
- ...X(e) ? { transform: `scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)` } : { transform: `scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)` }
973
+ ...Z(e) ? { transform: `scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)` } : { transform: `scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)` }
963
974
  });
964
975
  return () => {
965
976
  n(), a.current = window.setTimeout(() => {
966
977
  o ? document.body.style.background = o : document.body.style.removeProperty("background");
967
- }, Z.DURATION * 1e3);
978
+ }, Q.DURATION * 1e3);
968
979
  };
969
980
  }
970
981
  }, [
@@ -973,11 +984,11 @@ function Zt() {
973
984
  o
974
985
  ]);
975
986
  }
976
- var Q = null;
987
+ var Zt = null;
977
988
  function Qt({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: i, noBodyStyles: a }) {
978
- let [o, s] = h.useState(() => typeof window < "u" ? window.location.href : ""), c = h.useRef(0), l = h.useCallback(() => {
979
- if (mt() && Q === null && e && !a) {
980
- Q = {
989
+ let [o, s] = m.useState(() => typeof window < "u" ? window.location.href : ""), c = m.useRef(0), l = m.useCallback(() => {
990
+ if (pt() && Zt === null && e && !a) {
991
+ Zt = {
981
992
  position: document.body.style.position,
982
993
  top: document.body.style.top,
983
994
  left: document.body.style.left,
@@ -995,30 +1006,30 @@ function Qt({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
995
1006
  e && c.current >= t && (document.body.style.top = `${-(c.current + e)}px`);
996
1007
  }), 300);
997
1008
  }
998
- }, [e]), u = h.useCallback(() => {
999
- if (mt() && Q !== null && !a) {
1009
+ }, [e]), u = m.useCallback(() => {
1010
+ if (pt() && Zt !== null && !a) {
1000
1011
  let e = -parseInt(document.body.style.top, 10), t = -parseInt(document.body.style.left, 10);
1001
- Object.assign(document.body.style, Q), window.requestAnimationFrame(() => {
1012
+ Object.assign(document.body.style, Zt), window.requestAnimationFrame(() => {
1002
1013
  if (i && o !== window.location.href) {
1003
1014
  s(window.location.href);
1004
1015
  return;
1005
1016
  }
1006
1017
  window.scrollTo(t, e);
1007
- }), Q = null;
1018
+ }), Zt = null;
1008
1019
  }
1009
1020
  }, [o]);
1010
- return h.useEffect(() => {
1021
+ return m.useEffect(() => {
1011
1022
  function e() {
1012
1023
  c.current = window.scrollY;
1013
1024
  }
1014
1025
  return e(), window.addEventListener("scroll", e), () => {
1015
1026
  window.removeEventListener("scroll", e);
1016
1027
  };
1017
- }, []), h.useEffect(() => {
1028
+ }, []), m.useEffect(() => {
1018
1029
  if (t) return () => {
1019
1030
  typeof document > "u" || document.querySelector("[data-vaul-drawer]") || u();
1020
1031
  };
1021
- }, [t, u]), h.useEffect(() => {
1032
+ }, [t, u]), m.useEffect(() => {
1022
1033
  n || !r || (e ? (!window.matchMedia("(display-mode: standalone)").matches && l(), t || window.setTimeout(() => {
1023
1034
  u();
1024
1035
  }, 500)) : u());
@@ -1032,33 +1043,33 @@ function Qt({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRes
1032
1043
  u
1033
1044
  ]), { restorePositionSetting: u };
1034
1045
  }
1035
- function $t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, snapPoints: a, shouldScaleBackground: o = !1, setBackgroundColorOnScale: s = !0, closeThreshold: c = Vt, scrollLockTimeout: l = Ht, dismissible: u = !0, handleOnly: d = !1, fadeFromIndex: f = a && a.length - 1, activeSnapPoint: p, setActiveSnapPoint: m, fixed: g, modal: _ = !0, onClose: v, nested: y, noBodyStyles: b = !1, direction: x = "bottom", defaultOpen: S = !1, disablePreventScroll: C = !0, snapToSequentialPoint: w = !1, preventScrollRestoration: T = !1, repositionInputs: E = !0, onAnimationEnd: D, container: ee, autoFocus: te = !1 }) {
1036
- let [O = !1, ne] = Yt({
1046
+ function $t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, snapPoints: a, shouldScaleBackground: o = !1, setBackgroundColorOnScale: s = !0, closeThreshold: c = Bt, scrollLockTimeout: l = Vt, dismissible: u = !0, handleOnly: d = !1, fadeFromIndex: f = a && a.length - 1, activeSnapPoint: p, setActiveSnapPoint: h, fixed: g, modal: _ = !0, onClose: v, nested: y, noBodyStyles: b = !1, direction: x = "bottom", defaultOpen: S = !1, disablePreventScroll: C = !0, snapToSequentialPoint: w = !1, preventScrollRestoration: T = !1, repositionInputs: E = !0, onAnimationEnd: ee, container: te, autoFocus: D = !1 }) {
1047
+ let [O = !1, ne] = Jt({
1037
1048
  defaultProp: S,
1038
1049
  prop: e,
1039
1050
  onChange: (e) => {
1040
- t?.(e), !e && !y && V(), setTimeout(() => {
1041
- D?.(e);
1042
- }, Z.DURATION * 1e3), e && !_ && typeof window < "u" && window.requestAnimationFrame(() => {
1051
+ t?.(e), !e && !y && H(), setTimeout(() => {
1052
+ ee?.(e);
1053
+ }, Q.DURATION * 1e3), e && !_ && typeof window < "u" && window.requestAnimationFrame(() => {
1043
1054
  document.body.style.pointerEvents = "auto";
1044
1055
  }), e || (document.body.style.pointerEvents = "auto");
1045
1056
  }
1046
- }), [re, ie] = h.useState(!1), [k, A] = h.useState(!1), [ae, oe] = h.useState(!1), j = h.useRef(null), M = h.useRef(null), se = h.useRef(null), N = h.useRef(null), P = h.useRef(null), F = h.useRef(!1), ce = h.useRef(null), le = h.useRef(0), I = h.useRef(!1), ue = h.useRef(!S), de = h.useRef(0), L = h.useRef(null), R = h.useRef(L.current?.getBoundingClientRect().height || 0), fe = h.useRef(L.current?.getBoundingClientRect().width || 0), pe = h.useRef(0), { activeSnapPoint: me, activeSnapPointIndex: z, setActiveSnapPoint: he, onRelease: ge, snapPointsOffset: B, onDrag: _e, shouldFade: ve, getPercentageDragged: ye } = Xt({
1057
+ }), [re, k] = m.useState(!1), [A, ie] = m.useState(!1), [ae, oe] = m.useState(!1), j = m.useRef(null), M = m.useRef(null), se = m.useRef(null), N = m.useRef(null), P = m.useRef(null), F = m.useRef(!1), ce = m.useRef(null), le = m.useRef(0), I = m.useRef(!1), ue = m.useRef(!S), de = m.useRef(0), L = m.useRef(null), R = m.useRef(L.current?.getBoundingClientRect().height || 0), z = m.useRef(L.current?.getBoundingClientRect().width || 0), fe = m.useRef(0), { activeSnapPoint: pe, activeSnapPointIndex: B, setActiveSnapPoint: me, onRelease: he, snapPointsOffset: V, onDrag: ge, shouldFade: _e, getPercentageDragged: ve } = Yt({
1047
1058
  snapPoints: a,
1048
1059
  activeSnapPointProp: p,
1049
- setActiveSnapPointProp: m,
1060
+ setActiveSnapPointProp: h,
1050
1061
  drawerRef: L,
1051
1062
  fadeFromIndex: f,
1052
1063
  overlayRef: j,
1053
- onSnapPointChange: h.useCallback((e) => {
1054
- a && e === B.length - 1 && (M.current = /* @__PURE__ */ new Date());
1064
+ onSnapPointChange: m.useCallback((e) => {
1065
+ a && e === V.length - 1 && (M.current = /* @__PURE__ */ new Date());
1055
1066
  }, []),
1056
1067
  direction: x,
1057
- container: ee,
1068
+ container: te,
1058
1069
  snapToSequentialPoint: w
1059
1070
  });
1060
- Dt({ isDisabled: !O || k || !_ || ae || !re || !E || !C });
1061
- let { restorePositionSetting: V } = Qt({
1071
+ Et({ isDisabled: !O || A || !_ || ae || !re || !E || !C });
1072
+ let { restorePositionSetting: H } = Qt({
1062
1073
  isOpen: O,
1063
1074
  modal: _,
1064
1075
  nested: y ?? !1,
@@ -1066,14 +1077,14 @@ function $t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
1066
1077
  preventScrollRestoration: T,
1067
1078
  noBodyStyles: b
1068
1079
  });
1069
- function H() {
1070
- return (window.innerWidth - Gt) / window.innerWidth;
1080
+ function U() {
1081
+ return (window.innerWidth - Wt) / window.innerWidth;
1071
1082
  }
1072
- function be(e) {
1073
- !u && !a || L.current && !L.current.contains(e.target) || (R.current = L.current?.getBoundingClientRect().height || 0, fe.current = L.current?.getBoundingClientRect().width || 0, A(!0), se.current = /* @__PURE__ */ new Date(), gt() && window.addEventListener("touchend", () => F.current = !1, { once: !0 }), e.target.setPointerCapture(e.pointerId), le.current = X(x) ? e.pageY : e.pageX);
1083
+ function ye(e) {
1084
+ !u && !a || L.current && !L.current.contains(e.target) || (R.current = L.current?.getBoundingClientRect().height || 0, z.current = L.current?.getBoundingClientRect().width || 0, ie(!0), se.current = /* @__PURE__ */ new Date(), ht() && window.addEventListener("touchend", () => F.current = !1, { once: !0 }), e.target.setPointerCapture(e.pointerId), le.current = Z(x) ? e.pageY : e.pageX);
1074
1085
  }
1075
- function xe(e, t) {
1076
- let n = e, r = window.getSelection()?.toString(), i = L.current ? Lt(L.current, x) : null, a = /* @__PURE__ */ new Date();
1086
+ function be(e, t) {
1087
+ let n = e, r = window.getSelection()?.toString(), i = L.current ? It(L.current, x) : null, a = /* @__PURE__ */ new Date();
1077
1088
  if (n.tagName === "SELECT" || n.hasAttribute("data-vaul-no-drag") || n.closest("[data-vaul-no-drag]")) return !1;
1078
1089
  if (x === "right" || x === "left") return !0;
1079
1090
  if (M.current && a.getTime() - M.current.getTime() < 500) return !1;
@@ -1089,207 +1100,207 @@ function $t({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
1089
1100
  }
1090
1101
  return !0;
1091
1102
  }
1092
- function Se(e) {
1093
- if (L.current && k) {
1094
- let t = x === "bottom" || x === "right" ? 1 : -1, n = (le.current - (X(x) ? e.pageY : e.pageX)) * t, i = n > 0, s = a && !u && !i;
1095
- if (s && z === 0) return;
1096
- let c = Math.abs(n), l = document.querySelector("[data-vaul-drawer-wrapper]"), d = c / (x === "bottom" || x === "top" ? R.current : fe.current), p = ye(c, i);
1097
- if (p !== null && (d = p), s && d >= 1 || !F.current && !xe(e.target, i)) return;
1098
- if (L.current.classList.add(Kt), F.current = !0, Y(L.current, { transition: "none" }), Y(j.current, { transition: "none" }), a && _e({ draggedDistance: n }), i && !a) {
1099
- let e = Rt(n), r = Math.min(e * -1, 0) * t;
1100
- Y(L.current, { transform: X(x) ? `translate3d(0, ${r}px, 0)` : `translate3d(${r}px, 0, 0)` });
1103
+ function xe(e) {
1104
+ if (L.current && A) {
1105
+ let t = x === "bottom" || x === "right" ? 1 : -1, n = (le.current - (Z(x) ? e.pageY : e.pageX)) * t, i = n > 0, s = a && !u && !i;
1106
+ if (s && B === 0) return;
1107
+ let c = Math.abs(n), l = document.querySelector("[data-vaul-drawer-wrapper]"), d = c / (x === "bottom" || x === "top" ? R.current : z.current), p = ve(c, i);
1108
+ if (p !== null && (d = p), s && d >= 1 || !F.current && !be(e.target, i)) return;
1109
+ if (L.current.classList.add(Gt), F.current = !0, X(L.current, { transition: "none" }), X(j.current, { transition: "none" }), a && ge({ draggedDistance: n }), i && !a) {
1110
+ let e = Lt(n), r = Math.min(e * -1, 0) * t;
1111
+ X(L.current, { transform: Z(x) ? `translate3d(0, ${r}px, 0)` : `translate3d(${r}px, 0, 0)` });
1101
1112
  return;
1102
1113
  }
1103
1114
  let m = 1 - d;
1104
- if ((ve || f && z === f - 1) && (r?.(e, d), Y(j.current, {
1115
+ if ((_e || f && B === f - 1) && (r?.(e, d), X(j.current, {
1105
1116
  opacity: `${m}`,
1106
1117
  transition: "none"
1107
1118
  }, !0)), l && j.current && o) {
1108
- let e = Math.min(H() + d * (1 - H()), 1), t = 8 - d * 8, n = Math.max(0, 14 - d * 14);
1109
- Y(l, {
1119
+ let e = Math.min(U() + d * (1 - U()), 1), t = 8 - d * 8, n = Math.max(0, 14 - d * 14);
1120
+ X(l, {
1110
1121
  borderRadius: `${t}px`,
1111
- transform: X(x) ? `scale(${e}) translate3d(0, ${n}px, 0)` : `scale(${e}) translate3d(${n}px, 0, 0)`,
1122
+ transform: Z(x) ? `scale(${e}) translate3d(0, ${n}px, 0)` : `scale(${e}) translate3d(${n}px, 0, 0)`,
1112
1123
  transition: "none"
1113
1124
  }, !0);
1114
1125
  }
1115
1126
  if (!a) {
1116
1127
  let e = c * t;
1117
- Y(L.current, { transform: X(x) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)` });
1128
+ X(L.current, { transform: Z(x) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)` });
1118
1129
  }
1119
1130
  }
1120
1131
  }
1121
- h.useEffect(() => {
1132
+ m.useEffect(() => {
1122
1133
  window.requestAnimationFrame(() => {
1123
1134
  ue.current = !0;
1124
1135
  });
1125
- }, []), h.useEffect(() => {
1136
+ }, []), m.useEffect(() => {
1126
1137
  var e;
1127
1138
  function t() {
1128
1139
  if (!L.current || !E) return;
1129
1140
  let e = document.activeElement;
1130
- if (jt(e) || I.current) {
1141
+ if (At(e) || I.current) {
1131
1142
  let e = window.visualViewport?.height || 0, t = window.innerHeight, n = t - e, r = L.current.getBoundingClientRect().height || 0, i = r > t * .8;
1132
- pe.current ||= r;
1143
+ fe.current ||= r;
1133
1144
  let o = L.current.getBoundingClientRect().top;
1134
- if (Math.abs(de.current - n) > 60 && (I.current = !I.current), a && a.length > 0 && B && z) {
1135
- let e = B[z] || 0;
1145
+ if (Math.abs(de.current - n) > 60 && (I.current = !I.current), a && a.length > 0 && V && B) {
1146
+ let e = V[B] || 0;
1136
1147
  n += e;
1137
1148
  }
1138
1149
  if (de.current = n, r > e || I.current) {
1139
1150
  let t = L.current.getBoundingClientRect().height, r = t;
1140
- t > e && (r = e - (i ? o : Gt)), g ? L.current.style.height = `${t - Math.max(n, 0)}px` : L.current.style.height = `${Math.max(r, e - o)}px`;
1141
- } else dt() || (L.current.style.height = `${pe.current}px`);
1151
+ t > e && (r = e - (i ? o : Wt)), g ? L.current.style.height = `${t - Math.max(n, 0)}px` : L.current.style.height = `${Math.max(r, e - o)}px`;
1152
+ } else ut() || (L.current.style.height = `${fe.current}px`);
1142
1153
  a && a.length > 0 && !I.current ? L.current.style.bottom = "0px" : L.current.style.bottom = `${Math.max(n, 0)}px`;
1143
1154
  }
1144
1155
  }
1145
1156
  return (e = window.visualViewport) == null || e.addEventListener("resize", t), () => window.visualViewport?.removeEventListener("resize", t);
1146
1157
  }, [
1147
- z,
1158
+ B,
1148
1159
  a,
1149
- B
1160
+ V
1150
1161
  ]);
1151
- function U(e) {
1152
- W(), v?.(), e || ne(!1), setTimeout(() => {
1153
- a && he(a[0]);
1154
- }, Z.DURATION * 1e3);
1162
+ function W(e) {
1163
+ G(), v?.(), e || ne(!1), setTimeout(() => {
1164
+ a && me(a[0]);
1165
+ }, Q.DURATION * 1e3);
1155
1166
  }
1156
- function Ce() {
1167
+ function Se() {
1157
1168
  if (!L.current) return;
1158
- let e = document.querySelector("[data-vaul-drawer-wrapper]"), t = Lt(L.current, x);
1159
- Y(L.current, {
1169
+ let e = document.querySelector("[data-vaul-drawer-wrapper]"), t = It(L.current, x);
1170
+ X(L.current, {
1160
1171
  transform: "translate3d(0, 0, 0)",
1161
- transition: `transform ${Z.DURATION}s cubic-bezier(${Z.EASE.join(",")})`
1162
- }), Y(j.current, {
1163
- transition: `opacity ${Z.DURATION}s cubic-bezier(${Z.EASE.join(",")})`,
1172
+ transition: `transform ${Q.DURATION}s cubic-bezier(${Q.EASE.join(",")})`
1173
+ }), X(j.current, {
1174
+ transition: `opacity ${Q.DURATION}s cubic-bezier(${Q.EASE.join(",")})`,
1164
1175
  opacity: "1"
1165
- }), o && t && t > 0 && O && Y(e, {
1166
- borderRadius: `${Ut}px`,
1176
+ }), o && t && t > 0 && O && X(e, {
1177
+ borderRadius: `${Ht}px`,
1167
1178
  overflow: "hidden",
1168
- ...X(x) ? {
1169
- transform: `scale(${H()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
1179
+ ...Z(x) ? {
1180
+ transform: `scale(${U()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
1170
1181
  transformOrigin: "top"
1171
1182
  } : {
1172
- transform: `scale(${H()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
1183
+ transform: `scale(${U()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
1173
1184
  transformOrigin: "left"
1174
1185
  },
1175
1186
  transitionProperty: "transform, border-radius",
1176
- transitionDuration: `${Z.DURATION}s`,
1177
- transitionTimingFunction: `cubic-bezier(${Z.EASE.join(",")})`
1187
+ transitionDuration: `${Q.DURATION}s`,
1188
+ transitionTimingFunction: `cubic-bezier(${Q.EASE.join(",")})`
1178
1189
  }, !0);
1179
1190
  }
1180
- function W() {
1181
- !k || !L.current || (L.current.classList.remove(Kt), F.current = !1, A(!1), N.current = /* @__PURE__ */ new Date());
1191
+ function G() {
1192
+ !A || !L.current || (L.current.classList.remove(Gt), F.current = !1, ie(!1), N.current = /* @__PURE__ */ new Date());
1182
1193
  }
1183
- function we(e) {
1184
- if (!k || !L.current) return;
1185
- L.current.classList.remove(Kt), F.current = !1, A(!1), N.current = /* @__PURE__ */ new Date();
1186
- let t = Lt(L.current, x);
1187
- if (!e || !xe(e.target, !1) || !t || Number.isNaN(t) || se.current === null) return;
1188
- let n = N.current.getTime() - se.current.getTime(), r = le.current - (X(x) ? e.pageY : e.pageX), o = Math.abs(r) / n;
1194
+ function Ce(e) {
1195
+ if (!A || !L.current) return;
1196
+ L.current.classList.remove(Gt), F.current = !1, ie(!1), N.current = /* @__PURE__ */ new Date();
1197
+ let t = It(L.current, x);
1198
+ if (!e || !be(e.target, !1) || !t || Number.isNaN(t) || se.current === null) return;
1199
+ let n = N.current.getTime() - se.current.getTime(), r = le.current - (Z(x) ? e.pageY : e.pageX), o = Math.abs(r) / n;
1189
1200
  if (o > .05 && (oe(!0), setTimeout(() => {
1190
1201
  oe(!1);
1191
1202
  }, 200)), a) {
1192
- ge({
1203
+ he({
1193
1204
  draggedDistance: r * (x === "bottom" || x === "right" ? 1 : -1),
1194
- closeDrawer: U,
1205
+ closeDrawer: W,
1195
1206
  velocity: o,
1196
1207
  dismissible: u
1197
1208
  }), i?.(e, !0);
1198
1209
  return;
1199
1210
  }
1200
1211
  if (x === "bottom" || x === "right" ? r > 0 : r < 0) {
1201
- Ce(), i?.(e, !0);
1212
+ Se(), i?.(e, !0);
1202
1213
  return;
1203
1214
  }
1204
- if (o > Bt) {
1205
- U(), i?.(e, !1);
1215
+ if (o > zt) {
1216
+ W(), i?.(e, !1);
1206
1217
  return;
1207
1218
  }
1208
1219
  let s = Math.min(L.current.getBoundingClientRect().height ?? 0, window.innerHeight), l = Math.min(L.current.getBoundingClientRect().width ?? 0, window.innerWidth);
1209
1220
  if (Math.abs(t) >= (x === "left" || x === "right" ? l : s) * c) {
1210
- U(), i?.(e, !1);
1221
+ W(), i?.(e, !1);
1211
1222
  return;
1212
1223
  }
1213
- i?.(e, !0), Ce();
1224
+ i?.(e, !0), Se();
1214
1225
  }
1215
- h.useEffect(() => (O && (Y(document.documentElement, { scrollBehavior: "auto" }), M.current = /* @__PURE__ */ new Date()), () => {
1216
- It(document.documentElement, "scrollBehavior");
1226
+ m.useEffect(() => (O && (X(document.documentElement, { scrollBehavior: "auto" }), M.current = /* @__PURE__ */ new Date()), () => {
1227
+ Ft(document.documentElement, "scrollBehavior");
1217
1228
  }), [O]);
1218
- function Te(e) {
1219
- let t = e ? (window.innerWidth - Wt) / window.innerWidth : 1, n = e ? -16 : 0;
1220
- ce.current && window.clearTimeout(ce.current), Y(L.current, {
1221
- transition: `transform ${Z.DURATION}s cubic-bezier(${Z.EASE.join(",")})`,
1222
- transform: X(x) ? `scale(${t}) translate3d(0, ${n}px, 0)` : `scale(${t}) translate3d(${n}px, 0, 0)`
1229
+ function we(e) {
1230
+ let t = e ? (window.innerWidth - Ut) / window.innerWidth : 1, n = e ? -16 : 0;
1231
+ ce.current && window.clearTimeout(ce.current), X(L.current, {
1232
+ transition: `transform ${Q.DURATION}s cubic-bezier(${Q.EASE.join(",")})`,
1233
+ transform: Z(x) ? `scale(${t}) translate3d(0, ${n}px, 0)` : `scale(${t}) translate3d(${n}px, 0, 0)`
1223
1234
  }), !e && L.current && (ce.current = setTimeout(() => {
1224
- let e = Lt(L.current, x);
1225
- Y(L.current, {
1235
+ let e = It(L.current, x);
1236
+ X(L.current, {
1226
1237
  transition: "none",
1227
- transform: X(x) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)`
1238
+ transform: Z(x) ? `translate3d(0, ${e}px, 0)` : `translate3d(${e}px, 0, 0)`
1228
1239
  });
1229
1240
  }, 500));
1230
1241
  }
1231
- function Ee(e, t) {
1242
+ function Te(e, t) {
1232
1243
  if (t < 0) return;
1233
- let n = (window.innerWidth - Wt) / window.innerWidth, r = n + t * (1 - n), i = -16 + t * Wt;
1234
- Y(L.current, {
1235
- transform: X(x) ? `scale(${r}) translate3d(0, ${i}px, 0)` : `scale(${r}) translate3d(${i}px, 0, 0)`,
1244
+ let n = (window.innerWidth - Ut) / window.innerWidth, r = n + t * (1 - n), i = -16 + t * Ut;
1245
+ X(L.current, {
1246
+ transform: Z(x) ? `scale(${r}) translate3d(0, ${i}px, 0)` : `scale(${r}) translate3d(${i}px, 0, 0)`,
1236
1247
  transition: "none"
1237
1248
  });
1238
1249
  }
1239
- function G(e, t) {
1240
- let n = X(x) ? window.innerHeight : window.innerWidth, r = t ? (n - Wt) / n : 1, i = t ? -16 : 0;
1241
- t && Y(L.current, {
1242
- transition: `transform ${Z.DURATION}s cubic-bezier(${Z.EASE.join(",")})`,
1243
- transform: X(x) ? `scale(${r}) translate3d(0, ${i}px, 0)` : `scale(${r}) translate3d(${i}px, 0, 0)`
1250
+ function K(e, t) {
1251
+ let n = Z(x) ? window.innerHeight : window.innerWidth, r = t ? (n - Ut) / n : 1, i = t ? -16 : 0;
1252
+ t && X(L.current, {
1253
+ transition: `transform ${Q.DURATION}s cubic-bezier(${Q.EASE.join(",")})`,
1254
+ transform: Z(x) ? `scale(${r}) translate3d(0, ${i}px, 0)` : `scale(${r}) translate3d(${i}px, 0, 0)`
1244
1255
  });
1245
1256
  }
1246
- return h.useEffect(() => {
1257
+ return m.useEffect(() => {
1247
1258
  _ || window.requestAnimationFrame(() => {
1248
1259
  document.body.style.pointerEvents = "auto";
1249
1260
  });
1250
- }, [_]), /*#__PURE__*/ h.createElement(tt, {
1261
+ }, [_]), /*#__PURE__*/ m.createElement(et, {
1251
1262
  defaultOpen: S,
1252
1263
  onOpenChange: (e) => {
1253
- !u && !e || (e ? ie(!0) : U(!0), ne(e));
1264
+ !u && !e || (e ? k(!0) : W(!0), ne(e));
1254
1265
  },
1255
1266
  open: O
1256
- }, /*#__PURE__*/ h.createElement(ut.Provider, { value: {
1257
- activeSnapPoint: me,
1267
+ }, /*#__PURE__*/ m.createElement(lt.Provider, { value: {
1268
+ activeSnapPoint: pe,
1258
1269
  snapPoints: a,
1259
- setActiveSnapPoint: he,
1270
+ setActiveSnapPoint: me,
1260
1271
  drawerRef: L,
1261
1272
  overlayRef: j,
1262
1273
  onOpenChange: t,
1263
- onPress: be,
1264
- onRelease: we,
1265
- onDrag: Se,
1274
+ onPress: ye,
1275
+ onRelease: Ce,
1276
+ onDrag: xe,
1266
1277
  dismissible: u,
1267
1278
  shouldAnimate: ue,
1268
1279
  handleOnly: d,
1269
1280
  isOpen: O,
1270
- isDragging: k,
1271
- shouldFade: ve,
1272
- closeDrawer: U,
1273
- onNestedDrag: Ee,
1274
- onNestedOpenChange: Te,
1275
- onNestedRelease: G,
1281
+ isDragging: A,
1282
+ shouldFade: _e,
1283
+ closeDrawer: W,
1284
+ onNestedDrag: Te,
1285
+ onNestedOpenChange: we,
1286
+ onNestedRelease: K,
1276
1287
  keyboardIsOpen: I,
1277
1288
  modal: _,
1278
- snapPointsOffset: B,
1279
- activeSnapPointIndex: z,
1289
+ snapPointsOffset: V,
1290
+ activeSnapPointIndex: B,
1280
1291
  direction: x,
1281
1292
  shouldScaleBackground: o,
1282
1293
  setBackgroundColorOnScale: s,
1283
1294
  noBodyStyles: b,
1284
- container: ee,
1285
- autoFocus: te
1295
+ container: te,
1296
+ autoFocus: D
1286
1297
  } }, n));
1287
1298
  }
1288
- var en = /*#__PURE__*/ h.forwardRef(function({ ...e }, t) {
1289
- let { overlayRef: n, snapPoints: r, onRelease: i, shouldFade: a, isOpen: o, modal: s, shouldAnimate: c } = q(), l = Pt(t, n), u = r && r.length > 0;
1299
+ var en = /*#__PURE__*/ m.forwardRef(function({ ...e }, t) {
1300
+ let { overlayRef: n, snapPoints: r, onRelease: i, shouldFade: a, isOpen: o, modal: s, shouldAnimate: c } = J(), l = Nt(t, n), u = r && r.length > 0;
1290
1301
  if (!s) return null;
1291
- let d = h.useCallback((e) => i(e), [i]);
1292
- return /*#__PURE__*/ h.createElement(it, {
1302
+ let d = m.useCallback((e) => i(e), [i]);
1303
+ return /*#__PURE__*/ m.createElement(rt, {
1293
1304
  onMouseUp: d,
1294
1305
  ref: l,
1295
1306
  "data-vaul-overlay": "",
@@ -1300,10 +1311,10 @@ var en = /*#__PURE__*/ h.forwardRef(function({ ...e }, t) {
1300
1311
  });
1301
1312
  });
1302
1313
  en.displayName = "Drawer.Overlay";
1303
- var tn = /*#__PURE__*/ h.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: n, ...r }, i) {
1304
- let { drawerRef: a, onPress: o, onRelease: s, onDrag: c, keyboardIsOpen: l, snapPointsOffset: u, activeSnapPointIndex: d, modal: f, isOpen: p, direction: m, snapPoints: g, container: _, handleOnly: v, shouldAnimate: y, autoFocus: b } = q(), [x, S] = h.useState(!1), C = Pt(i, a), w = h.useRef(null), T = h.useRef(null), E = h.useRef(!1), D = g && g.length > 0;
1305
- Zt();
1306
- let ee = (e, t, n = 0) => {
1314
+ var tn = /*#__PURE__*/ m.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: n, ...r }, i) {
1315
+ let { drawerRef: a, onPress: o, onRelease: s, onDrag: c, keyboardIsOpen: l, snapPointsOffset: u, activeSnapPointIndex: d, modal: f, isOpen: p, direction: h, snapPoints: g, container: _, handleOnly: v, shouldAnimate: y, autoFocus: b } = J(), [x, S] = m.useState(!1), C = Nt(i, a), w = m.useRef(null), T = m.useRef(null), E = m.useRef(!1), ee = g && g.length > 0;
1316
+ Xt();
1317
+ let te = (e, t, n = 0) => {
1307
1318
  if (E.current) return !0;
1308
1319
  let r = Math.abs(e.y), i = Math.abs(e.x), a = i > r, o = ["bottom", "right"].includes(t) ? 1 : -1;
1309
1320
  if (t === "left" || t === "right") {
@@ -1311,19 +1322,19 @@ var tn = /*#__PURE__*/ h.forwardRef(function({ onPointerDownOutside: e, style: t
1311
1322
  } else if (!(e.y * o < 0) && r >= 0 && r <= n) return !a;
1312
1323
  return E.current = !0, !0;
1313
1324
  };
1314
- h.useEffect(() => {
1315
- D && window.requestAnimationFrame(() => {
1325
+ m.useEffect(() => {
1326
+ ee && window.requestAnimationFrame(() => {
1316
1327
  S(!0);
1317
1328
  });
1318
1329
  }, []);
1319
- function te(e) {
1330
+ function D(e) {
1320
1331
  w.current = null, E.current = !1, s(e);
1321
1332
  }
1322
- return /*#__PURE__*/ h.createElement(at, {
1323
- "data-vaul-drawer-direction": m,
1333
+ return /*#__PURE__*/ m.createElement(it, {
1334
+ "data-vaul-drawer-direction": h,
1324
1335
  "data-vaul-drawer": "",
1325
1336
  "data-vaul-delayed-snap-points": x ? "true" : "false",
1326
- "data-vaul-snap-points": p && D ? "true" : "false",
1337
+ "data-vaul-snap-points": p && ee ? "true" : "false",
1327
1338
  "data-vaul-custom-container": _ ? "true" : "false",
1328
1339
  "data-vaul-animate": y?.current ? "true" : "false",
1329
1340
  ...r,
@@ -1357,25 +1368,25 @@ var tn = /*#__PURE__*/ h.forwardRef(function({ onPointerDownOutside: e, style: t
1357
1368
  onPointerMove: (e) => {
1358
1369
  if (T.current = e, v || (r.onPointerMove == null || r.onPointerMove.call(r, e), !w.current)) return;
1359
1370
  let t = e.pageY - w.current.y, n = e.pageX - w.current.x, i = e.pointerType === "touch" ? 10 : 2;
1360
- ee({
1371
+ te({
1361
1372
  x: n,
1362
1373
  y: t
1363
- }, m, i) ? c(e) : (Math.abs(n) > i || Math.abs(t) > i) && (w.current = null);
1374
+ }, h, i) ? c(e) : (Math.abs(n) > i || Math.abs(t) > i) && (w.current = null);
1364
1375
  },
1365
1376
  onPointerUp: (e) => {
1366
1377
  r.onPointerUp == null || r.onPointerUp.call(r, e), w.current = null, E.current = !1, s(e);
1367
1378
  },
1368
1379
  onPointerOut: (e) => {
1369
- r.onPointerOut == null || r.onPointerOut.call(r, e), te(T.current);
1380
+ r.onPointerOut == null || r.onPointerOut.call(r, e), D(T.current);
1370
1381
  },
1371
1382
  onContextMenu: (e) => {
1372
- r.onContextMenu == null || r.onContextMenu.call(r, e), T.current && te(T.current);
1383
+ r.onContextMenu == null || r.onContextMenu.call(r, e), T.current && D(T.current);
1373
1384
  }
1374
1385
  });
1375
1386
  });
1376
1387
  tn.displayName = "Drawer.Content";
1377
- var nn = 250, rn = 120, an = /*#__PURE__*/ h.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
1378
- let { closeDrawer: i, isDragging: a, snapPoints: o, activeSnapPoint: s, setActiveSnapPoint: c, dismissible: l, handleOnly: u, isOpen: d, onPress: f, onDrag: p } = q(), m = h.useRef(null), g = h.useRef(!1);
1388
+ var nn = 250, rn = 120, an = /*#__PURE__*/ m.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
1389
+ let { closeDrawer: i, isDragging: a, snapPoints: o, activeSnapPoint: s, setActiveSnapPoint: c, dismissible: l, handleOnly: u, isOpen: d, onPress: f, onDrag: p } = J(), h = m.useRef(null), g = m.useRef(!1);
1379
1390
  function _() {
1380
1391
  if (g.current) {
1381
1392
  b();
@@ -1404,14 +1415,14 @@ var nn = 250, rn = 120, an = /*#__PURE__*/ h.forwardRef(function({ preventCycle:
1404
1415
  c(n);
1405
1416
  }
1406
1417
  function y() {
1407
- m.current = window.setTimeout(() => {
1418
+ h.current = window.setTimeout(() => {
1408
1419
  g.current = !0;
1409
1420
  }, nn);
1410
1421
  }
1411
1422
  function b() {
1412
- m.current && window.clearTimeout(m.current), g.current = !1;
1423
+ h.current && window.clearTimeout(h.current), g.current = !1;
1413
1424
  }
1414
- return /*#__PURE__*/ h.createElement("div", {
1425
+ return /*#__PURE__*/ m.createElement("div", {
1415
1426
  onClick: _,
1416
1427
  onPointerCancel: b,
1417
1428
  onPointerDown: (e) => {
@@ -1425,16 +1436,16 @@ var nn = 250, rn = 120, an = /*#__PURE__*/ h.forwardRef(function({ preventCycle:
1425
1436
  "data-vaul-handle": "",
1426
1437
  "aria-hidden": "true",
1427
1438
  ...n
1428
- }, /*#__PURE__*/ h.createElement("span", {
1439
+ }, /*#__PURE__*/ m.createElement("span", {
1429
1440
  "data-vaul-handle-hitarea": "",
1430
1441
  "aria-hidden": "true"
1431
1442
  }, t));
1432
1443
  });
1433
1444
  an.displayName = "Drawer.Handle";
1434
1445
  function on({ onDrag: e, onOpenChange: t, open: n, ...r }) {
1435
- let { onNestedDrag: i, onNestedOpenChange: a, onNestedRelease: o } = q();
1446
+ let { onNestedDrag: i, onNestedOpenChange: a, onNestedRelease: o } = J();
1436
1447
  if (!i) throw Error("Drawer.NestedRoot must be placed in another drawer");
1437
- return /*#__PURE__*/ h.createElement($t, {
1448
+ return /*#__PURE__*/ m.createElement($t, {
1438
1449
  nested: !0,
1439
1450
  open: n,
1440
1451
  onClose: () => {
@@ -1451,8 +1462,8 @@ function on({ onDrag: e, onOpenChange: t, open: n, ...r }) {
1451
1462
  });
1452
1463
  }
1453
1464
  function sn(e) {
1454
- let t = q(), { container: n = t.container, ...r } = e;
1455
- return /*#__PURE__*/ h.createElement(rt, {
1465
+ let t = J(), { container: n = t.container, ...r } = e;
1466
+ return /*#__PURE__*/ m.createElement(nt, {
1456
1467
  container: n,
1457
1468
  ...r
1458
1469
  });
@@ -1462,50 +1473,50 @@ var $ = {
1462
1473
  NestedRoot: on,
1463
1474
  Content: tn,
1464
1475
  Overlay: en,
1465
- Trigger: nt,
1476
+ Trigger: tt,
1466
1477
  Portal: sn,
1467
1478
  Handle: an,
1468
- Close: ct,
1469
- Title: ot,
1470
- Description: st
1479
+ Close: st,
1480
+ Title: at,
1481
+ Description: ot
1471
1482
  };
1472
1483
  //#endregion
1473
1484
  //#region src/components/ui/drawer.tsx
1474
1485
  function cn({ ...e }) {
1475
- return /* @__PURE__ */ b($.Root, {
1486
+ return /* @__PURE__ */ y($.Root, {
1476
1487
  "data-slot": "drawer",
1477
1488
  ...e
1478
1489
  });
1479
1490
  }
1480
1491
  function ln({ ...e }) {
1481
- return /* @__PURE__ */ b($.Trigger, {
1492
+ return /* @__PURE__ */ y($.Trigger, {
1482
1493
  "data-slot": "drawer-trigger",
1483
1494
  ...e
1484
1495
  });
1485
1496
  }
1486
1497
  function un({ ...e }) {
1487
- return /* @__PURE__ */ b($.Portal, {
1498
+ return /* @__PURE__ */ y($.Portal, {
1488
1499
  "data-slot": "drawer-portal",
1489
1500
  ...e
1490
1501
  });
1491
1502
  }
1492
1503
  function dn({ ...e }) {
1493
- return /* @__PURE__ */ b($.Close, {
1504
+ return /* @__PURE__ */ y($.Close, {
1494
1505
  "data-slot": "drawer-close",
1495
1506
  ...e
1496
1507
  });
1497
1508
  }
1498
1509
  function fn({ className: e, ...t }) {
1499
- return /* @__PURE__ */ b($.Overlay, {
1510
+ return /* @__PURE__ */ y($.Overlay, {
1500
1511
  className: c("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-1000 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in", e),
1501
1512
  "data-slot": "drawer-overlay",
1502
1513
  ...t
1503
1514
  });
1504
1515
  }
1505
1516
  function pn({ className: e, children: t, ...n }) {
1506
- return /* @__PURE__ */ x(un, {
1517
+ return /* @__PURE__ */ b(un, {
1507
1518
  "data-slot": "drawer-portal",
1508
- children: [/* @__PURE__ */ b(fn, {}), /* @__PURE__ */ b($.Content, {
1519
+ children: [/* @__PURE__ */ y(fn, {}), /* @__PURE__ */ y($.Content, {
1509
1520
  className: c("group/drawer-content fixed z-1000 flex h-auto flex-col bg-white", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-0", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm", e),
1510
1521
  "data-slot": "drawer-content",
1511
1522
  ...n,
@@ -1514,28 +1525,28 @@ function pn({ className: e, children: t, ...n }) {
1514
1525
  });
1515
1526
  }
1516
1527
  function mn({ className: e, ...t }) {
1517
- return /* @__PURE__ */ b("div", {
1528
+ return /* @__PURE__ */ y("div", {
1518
1529
  className: c("flex flex-col gap-2 p-5", e),
1519
1530
  "data-slot": "drawer-header",
1520
1531
  ...t
1521
1532
  });
1522
1533
  }
1523
1534
  function hn({ className: e, ...t }) {
1524
- return /* @__PURE__ */ b("div", {
1535
+ return /* @__PURE__ */ y("div", {
1525
1536
  className: c("mt-auto flex flex-col gap-2 p-5", e),
1526
1537
  "data-slot": "drawer-footer",
1527
1538
  ...t
1528
1539
  });
1529
1540
  }
1530
1541
  function gn({ className: e, ...t }) {
1531
- return /* @__PURE__ */ b($.Title, {
1542
+ return /* @__PURE__ */ y($.Title, {
1532
1543
  className: c("font-semibold text-foreground", e),
1533
1544
  "data-slot": "drawer-title",
1534
1545
  ...t
1535
1546
  });
1536
1547
  }
1537
1548
  function _n({ className: e, ...t }) {
1538
- return /* @__PURE__ */ b($.Description, {
1549
+ return /* @__PURE__ */ y($.Description, {
1539
1550
  className: c("text-muted-foreground text-sm", e),
1540
1551
  "data-slot": "drawer-description",
1541
1552
  ...t