ics-ui-kit 0.1.0-alpha.12 → 0.1.0-alpha.13

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 (227) hide show
  1. package/dist/Button-DQtBfU9y.js +57 -0
  2. package/dist/Button-DQtBfU9y.js.map +1 -0
  3. package/dist/{Button-DhfE69q0.js → ButtonBase-BEM8SNmT.js} +27 -56
  4. package/dist/ButtonBase-BEM8SNmT.js.map +1 -0
  5. package/dist/CarouselItem-pSHe0ufN.js +1500 -0
  6. package/dist/CarouselItem-pSHe0ufN.js.map +1 -0
  7. package/dist/CheckboxField-i_-dPpFM.js +370 -0
  8. package/dist/CheckboxField-i_-dPpFM.js.map +1 -0
  9. package/dist/Divider-C0Ss5GJT.js +47 -0
  10. package/dist/{Divider-D3NvaU8c.js.map → Divider-C0Ss5GJT.js.map} +1 -1
  11. package/dist/Field-3XJNFTql.js +78 -0
  12. package/dist/Field-3XJNFTql.js.map +1 -0
  13. package/dist/FieldLabel-CAbVan3E.js +97 -0
  14. package/dist/FieldLabel-CAbVan3E.js.map +1 -0
  15. package/dist/FormBody-4HptEjhb.js +103 -0
  16. package/dist/FormBody-4HptEjhb.js.map +1 -0
  17. package/dist/{IconButton-BUPs2kEo.js → IconButton-BkBsOIf5.js} +15 -15
  18. package/dist/{IconButton-BUPs2kEo.js.map → IconButton-BkBsOIf5.js.map} +1 -1
  19. package/dist/ImagePlaceholder-CNAKQWTh.js +45 -0
  20. package/dist/ImagePlaceholder-CNAKQWTh.js.map +1 -0
  21. package/dist/ImagePreview-DHi7A8md.js +156 -0
  22. package/dist/ImagePreview-DHi7A8md.js.map +1 -0
  23. package/dist/ImageUploader-46sxdmt5.js +123 -0
  24. package/dist/ImageUploader-46sxdmt5.js.map +1 -0
  25. package/dist/IsolatedStylesWrapper-WgaoHh7y.js +179 -0
  26. package/dist/IsolatedStylesWrapper-WgaoHh7y.js.map +1 -0
  27. package/dist/Modal-D33MSQot.js +125 -0
  28. package/dist/Modal-D33MSQot.js.map +1 -0
  29. package/dist/ScrollShadowContainer-ByNH68Kg.js +636 -0
  30. package/dist/ScrollShadowContainer-ByNH68Kg.js.map +1 -0
  31. package/dist/Toggle-7AlEmn8A.js +104 -0
  32. package/dist/Toggle-7AlEmn8A.js.map +1 -0
  33. package/dist/ToggleGroup-CT453MNp.js +200 -0
  34. package/dist/ToggleGroup-CT453MNp.js.map +1 -0
  35. package/dist/Tooltip-C4BbGF2_.js +372 -0
  36. package/dist/Tooltip-C4BbGF2_.js.map +1 -0
  37. package/dist/{bundle-mjs-D6wdQkGI.js → bundle-mjs-LhQum_e3.js} +676 -425
  38. package/dist/bundle-mjs-LhQum_e3.js.map +1 -0
  39. package/dist/check-C-TqZgvb.js.map +1 -1
  40. package/dist/chevron-right-CobOebzi.js.map +1 -1
  41. package/dist/components/badge.js +1 -1
  42. package/dist/components/button/icon-button/IconButton.stories.d.ts +330 -2
  43. package/dist/components/button/loading-button/LoadingButton.d.ts +249 -0
  44. package/dist/components/button/loading-button/LoadingButton.stories.d.ts +219 -0
  45. package/dist/components/button.js +6 -5
  46. package/dist/components/button.js.map +1 -1
  47. package/dist/components/carousel.js +65 -1532
  48. package/dist/components/carousel.js.map +1 -1
  49. package/dist/components/checkbox.js +1 -1
  50. package/dist/components/divider/content-divider/ContentDivider.d.ts +14 -0
  51. package/dist/components/divider/content-divider/ContentDivider.stories.d.ts +7 -0
  52. package/dist/components/divider/index.d.ts +1 -0
  53. package/dist/components/divider.js +45 -2
  54. package/dist/components/divider.js.map +1 -1
  55. package/dist/components/drawer/templates/drawer-footer-template/DrawerFooterTemplate.d.ts +3 -0
  56. package/dist/components/drawer.js +450 -447
  57. package/dist/components/drawer.js.map +1 -1
  58. package/dist/components/dropdown.js +37 -33
  59. package/dist/components/dropdown.js.map +1 -1
  60. package/dist/components/empty-state/EmptyState.d.ts +2 -2
  61. package/dist/components/empty-state.js +1 -1
  62. package/dist/components/empty-state.js.map +1 -1
  63. package/dist/components/field/Field.d.ts +35 -0
  64. package/dist/components/field.js +1 -1
  65. package/dist/components/form/components/form-header/FormHeader.d.ts +2 -2
  66. package/dist/components/form.js +289 -288
  67. package/dist/components/form.js.map +1 -1
  68. package/dist/components/gallery/Gallery.d.ts +21 -0
  69. package/dist/components/gallery/Gallery.stories.d.ts +26 -0
  70. package/dist/components/gallery/index.d.ts +1 -0
  71. package/dist/components/gallery.d.ts +2 -0
  72. package/dist/components/gallery.js +130 -0
  73. package/dist/components/gallery.js.map +1 -0
  74. package/dist/components/icon-tooltip/IconTooltip.d.ts +2 -1
  75. package/dist/components/image-placeholder.js +2 -42
  76. package/dist/components/image-placeholder.js.map +1 -1
  77. package/dist/components/image-preview/ImagePreview.d.ts +6 -6
  78. package/dist/components/image-preview.js +2 -136
  79. package/dist/components/image-preview.js.map +1 -1
  80. package/dist/components/image-uploader.js +2 -118
  81. package/dist/components/image-uploader.js.map +1 -1
  82. package/dist/components/input/file-input/FileInput.d.ts +3 -1
  83. package/dist/components/input-otp.js +1 -1
  84. package/dist/components/input-otp.js.map +1 -1
  85. package/dist/components/input.js +176 -195
  86. package/dist/components/input.js.map +1 -1
  87. package/dist/components/isolated-styles-wrapper/IsolatedStylesWrapper.d.ts +1 -1
  88. package/dist/components/label/Label.stories.d.ts +0 -2
  89. package/dist/components/label/field-label/FieldLabel.d.ts +11 -0
  90. package/dist/components/label/field-label/FieldLabel.stories.d.ts +1 -0
  91. package/dist/components/label/field-label/components/RequiredIcon.d.ts +5 -0
  92. package/dist/components/label.js +1 -1
  93. package/dist/components/loading/Loading.d.ts +4 -4
  94. package/dist/components/loading.js +2 -2
  95. package/dist/components/loading.js.map +1 -1
  96. package/dist/components/modal.js +12 -122
  97. package/dist/components/modal.js.map +1 -1
  98. package/dist/components/option-group.js +1 -1
  99. package/dist/components/popover.js +34 -31
  100. package/dist/components/popover.js.map +1 -1
  101. package/dist/components/scheduler.js +11 -11
  102. package/dist/components/scheduler.js.map +1 -1
  103. package/dist/components/scroll-shadow-container/ScrollShadowContainer.d.ts +1 -0
  104. package/dist/components/scroll-shadow-container.js +1 -1
  105. package/dist/components/select.js +487 -519
  106. package/dist/components/select.js.map +1 -1
  107. package/dist/components/shortcut/Shortcut.d.ts +14 -14
  108. package/dist/components/shortcut/Shortcut.stories.d.ts +7 -7
  109. package/dist/components/shortcut.js +16 -16
  110. package/dist/components/shortcut.js.map +1 -1
  111. package/dist/components/skeleton/Skeleton.d.ts +1 -0
  112. package/dist/components/skeleton/Skeleton.stories.d.ts +7 -0
  113. package/dist/components/skeleton/index.d.ts +1 -0
  114. package/dist/components/skeleton.d.ts +2 -0
  115. package/dist/components/skeleton.js +33 -0
  116. package/dist/components/skeleton.js.map +1 -0
  117. package/dist/components/switch.js +147 -126
  118. package/dist/components/switch.js.map +1 -1
  119. package/dist/components/tabs.js +9 -8
  120. package/dist/components/tabs.js.map +1 -1
  121. package/dist/components/tag.js +3 -3
  122. package/dist/components/toast.js +4 -4
  123. package/dist/components/toast.js.map +1 -1
  124. package/dist/components/toggle-group.js +1 -1
  125. package/dist/components/toggle.js +1 -1
  126. package/dist/components/tooltip/Tooltip.stories.d.ts +7 -0
  127. package/dist/components/tooltip/index.d.ts +1 -0
  128. package/dist/components/tooltip.d.ts +2 -0
  129. package/dist/components/tooltip.js +8 -0
  130. package/dist/components/tooltip.js.map +1 -0
  131. package/dist/createLucideIcon-DgrNxRV5.js.map +1 -1
  132. package/dist/design-tokens.source.json +1 -1
  133. package/dist/download-CVOGyQ0e.js.map +1 -1
  134. package/dist/downloadFile-yZV-aaO2.js +15 -0
  135. package/dist/downloadFile-yZV-aaO2.js.map +1 -0
  136. package/dist/index-B6K06mzp.js +67 -0
  137. package/dist/index-B6K06mzp.js.map +1 -0
  138. package/dist/index-BCZIl2rL.js +68 -0
  139. package/dist/index-BCZIl2rL.js.map +1 -0
  140. package/dist/index-BZPx6jYI.js.map +1 -1
  141. package/dist/index-Bj6ZBhqh.js +105 -0
  142. package/dist/index-Bj6ZBhqh.js.map +1 -0
  143. package/dist/index-ByaXH_ih.js.map +1 -1
  144. package/dist/index-CACw01gt.js +702 -0
  145. package/dist/index-CACw01gt.js.map +1 -0
  146. package/dist/index-COBL2CQB.js +14 -0
  147. package/dist/index-COBL2CQB.js.map +1 -0
  148. package/dist/index-CR-odn5-.js.map +1 -1
  149. package/dist/{index-BjbwEU_d.js → index-ClwWa5fz.js} +20 -20
  150. package/dist/index-ClwWa5fz.js.map +1 -0
  151. package/dist/{index-DwbC6luJ.js → index-Cx4x7Bv2.js} +52 -50
  152. package/dist/index-Cx4x7Bv2.js.map +1 -0
  153. package/dist/index-CzNelU6n.js +55 -0
  154. package/dist/index-CzNelU6n.js.map +1 -0
  155. package/dist/index-DBsc8nMF.js +43 -0
  156. package/dist/index-DBsc8nMF.js.map +1 -0
  157. package/dist/index-Mbnk_gHS.js +102 -0
  158. package/dist/index-Mbnk_gHS.js.map +1 -0
  159. package/dist/index-bhXb51Q1.js +215 -0
  160. package/dist/index-bhXb51Q1.js.map +1 -0
  161. package/dist/index-n71RB2rx.js +1592 -0
  162. package/dist/index-n71RB2rx.js.map +1 -0
  163. package/dist/index-rKs9bXHr.js +7 -0
  164. package/dist/index-rKs9bXHr.js.map +1 -0
  165. package/dist/lib/utils/file/downloadFile.d.ts +2 -0
  166. package/dist/lib/utils/image/imageConverter.d.ts +23 -0
  167. package/dist/styles-scoped.css +72 -18
  168. package/dist/styles.css +72 -18
  169. package/dist/{utils-DGzAmwok.js → utils-BK4mPzkB.js} +2 -2
  170. package/dist/utils-BK4mPzkB.js.map +1 -0
  171. package/dist/x-JgjNP5oH.js.map +1 -1
  172. package/package.json +1 -1
  173. package/dist/Button-DhfE69q0.js.map +0 -1
  174. package/dist/CheckboxField-CL1Tc7P4.js +0 -257
  175. package/dist/CheckboxField-CL1Tc7P4.js.map +0 -1
  176. package/dist/Divider-D3NvaU8c.js +0 -46
  177. package/dist/Field-COOo8o9f.js +0 -80
  178. package/dist/Field-COOo8o9f.js.map +0 -1
  179. package/dist/FieldLabel-BGxT_RaE.js +0 -64
  180. package/dist/FieldLabel-BGxT_RaE.js.map +0 -1
  181. package/dist/FormBody-DM52shm4.js +0 -101
  182. package/dist/FormBody-DM52shm4.js.map +0 -1
  183. package/dist/IsolatedStylesWrapper-B_Qu75eR.js +0 -555
  184. package/dist/IsolatedStylesWrapper-B_Qu75eR.js.map +0 -1
  185. package/dist/ScrollShadowContainer-DSKr3_fV.js +0 -690
  186. package/dist/ScrollShadowContainer-DSKr3_fV.js.map +0 -1
  187. package/dist/Toggle-BuYtICWv.js +0 -129
  188. package/dist/Toggle-BuYtICWv.js.map +0 -1
  189. package/dist/ToggleGroup-CMyUAz04.js +0 -467
  190. package/dist/ToggleGroup-CMyUAz04.js.map +0 -1
  191. package/dist/bundle-mjs-D6wdQkGI.js.map +0 -1
  192. package/dist/floating-ui.react-dom-CWfR7VfF.js +0 -1346
  193. package/dist/floating-ui.react-dom-CWfR7VfF.js.map +0 -1
  194. package/dist/index-0WznJ1QS.js +0 -276
  195. package/dist/index-0WznJ1QS.js.map +0 -1
  196. package/dist/index-BjbwEU_d.js.map +0 -1
  197. package/dist/index-BqriTm0o.js +0 -47
  198. package/dist/index-BqriTm0o.js.map +0 -1
  199. package/dist/index-C6bvrqL8.js +0 -563
  200. package/dist/index-C6bvrqL8.js.map +0 -1
  201. package/dist/index-C6t9z3on.js +0 -97
  202. package/dist/index-C6t9z3on.js.map +0 -1
  203. package/dist/index-CaQG3DzJ.js +0 -64
  204. package/dist/index-CaQG3DzJ.js.map +0 -1
  205. package/dist/index-ChTGHCkY.js +0 -255
  206. package/dist/index-ChTGHCkY.js.map +0 -1
  207. package/dist/index-D808y1pT.js +0 -178
  208. package/dist/index-D808y1pT.js.map +0 -1
  209. package/dist/index-DE3fiSzl.js +0 -28
  210. package/dist/index-DE3fiSzl.js.map +0 -1
  211. package/dist/index-DPws5oAn.js +0 -90
  212. package/dist/index-DPws5oAn.js.map +0 -1
  213. package/dist/index-DeUgDpdG.js +0 -80
  214. package/dist/index-DeUgDpdG.js.map +0 -1
  215. package/dist/index-DvquTpxI.js +0 -140
  216. package/dist/index-DvquTpxI.js.map +0 -1
  217. package/dist/index-DwbC6luJ.js.map +0 -1
  218. package/dist/index-Ncxt32Wo.js +0 -174
  219. package/dist/index-Ncxt32Wo.js.map +0 -1
  220. package/dist/index-U7y6nBZR.js +0 -179
  221. package/dist/index-U7y6nBZR.js.map +0 -1
  222. package/dist/index-pysSAa5G.js +0 -57
  223. package/dist/index-pysSAa5G.js.map +0 -1
  224. package/dist/tooltip-DI3_ZKNk.js +0 -365
  225. package/dist/tooltip-DI3_ZKNk.js.map +0 -1
  226. package/dist/utils-DGzAmwok.js.map +0 -1
  227. /package/dist/components/{ui/tooltip.d.ts → tooltip/Tooltip.d.ts} +0 -0
@@ -1,56 +1,56 @@
1
- var Ie = Object.defineProperty, Le = Object.defineProperties;
2
- var Pe = Object.getOwnPropertyDescriptors;
3
- var Dt = Object.getOwnPropertySymbols;
4
- var Zt = Object.prototype.hasOwnProperty, Gt = Object.prototype.propertyIsEnumerable;
5
- var Kt = (t, n, e) => n in t ? Ie(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, E = (t, n) => {
6
- for (var e in n || (n = {}))
7
- Zt.call(n, e) && Kt(t, e, n[e]);
8
- if (Dt)
9
- for (var e of Dt(n))
10
- Gt.call(n, e) && Kt(t, e, n[e]);
11
- return t;
12
- }, j = (t, n) => Le(t, Pe(n));
13
- var _ = (t, n) => {
14
- var e = {};
15
- for (var r in t)
16
- Zt.call(t, r) && n.indexOf(r) < 0 && (e[r] = t[r]);
17
- if (t != null && Dt)
18
- for (var r of Dt(t))
19
- n.indexOf(r) < 0 && Gt.call(t, r) && (e[r] = t[r]);
1
+ var It = Object.defineProperty, Lt = Object.defineProperties;
2
+ var Pt = Object.getOwnPropertyDescriptors;
3
+ var De = Object.getOwnPropertySymbols;
4
+ var Ze = Object.prototype.hasOwnProperty, Ge = Object.prototype.propertyIsEnumerable;
5
+ var Ke = (e, n, t) => n in e ? It(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, E = (e, n) => {
6
+ for (var t in n || (n = {}))
7
+ Ze.call(n, t) && Ke(e, t, n[t]);
8
+ if (De)
9
+ for (var t of De(n))
10
+ Ge.call(n, t) && Ke(e, t, n[t]);
20
11
  return e;
12
+ }, j = (e, n) => Lt(e, Pt(n));
13
+ var _ = (e, n) => {
14
+ var t = {};
15
+ for (var r in e)
16
+ Ze.call(e, r) && n.indexOf(r) < 0 && (t[r] = e[r]);
17
+ if (e != null && De)
18
+ for (var r of De(e))
19
+ n.indexOf(r) < 0 && Ge.call(e, r) && (t[r] = e[r]);
20
+ return t;
21
21
  };
22
- import { jsx as D, jsxs as it } from "react/jsx-runtime";
23
- import * as Ct from "react";
24
- import o, { useLayoutEffect as _e, useEffect as ke, useMemo as Fe } from "react";
25
- import { T as Be, C as We, P as ze, b as Ue, D as Ve, R as je, a as Ye, O as qe } from "../index-DwbC6luJ.js";
26
- import { c as oe } from "../utils-DGzAmwok.js";
27
- import { S as Xe } from "../ScrollShadowContainer-DSKr3_fV.js";
28
- import { c as et } from "../index-CR-odn5-.js";
29
- import { o as Ke } from "../Overlay-CgZtnOj6.js";
30
- import { I as Ze } from "../IsolatedStylesWrapper-B_Qu75eR.js";
31
- import { B as Et } from "../Button-DhfE69q0.js";
32
- import { a as Ge } from "../CheckboxField-CL1Tc7P4.js";
33
- import { L as Je } from "../FieldLabel-BGxT_RaE.js";
34
- import { D as Qe } from "../Description-ZE34bSch.js";
35
- import { I as Jt } from "../Icon-CSPBHL_x.js";
36
- import { c as tn } from "../createLucideIcon-DgrNxRV5.js";
37
- import { X as en } from "../x-JgjNP5oH.js";
22
+ import { jsx as D, jsxs as ie } from "react/jsx-runtime";
23
+ import * as Ce from "react";
24
+ import o, { useLayoutEffect as _t, useEffect as kt, useMemo as Ft } from "react";
25
+ import { T as Bt, C as Wt, P as zt, b as Ut, D as Vt, R as jt, a as Yt, O as qt } from "../index-Cx4x7Bv2.js";
26
+ import { c as ot } from "../utils-BK4mPzkB.js";
27
+ import { S as Xt } from "../ScrollShadowContainer-ByNH68Kg.js";
28
+ import { c as te } from "../index-CR-odn5-.js";
29
+ import { o as Kt } from "../Overlay-CgZtnOj6.js";
30
+ import { I as Zt } from "../IsolatedStylesWrapper-WgaoHh7y.js";
31
+ import { B as Ee } from "../Button-DQtBfU9y.js";
32
+ import { a as Gt } from "../CheckboxField-i_-dPpFM.js";
33
+ import { L as Jt } from "../FieldLabel-CAbVan3E.js";
34
+ import { D as Qt } from "../Description-ZE34bSch.js";
35
+ import { I as Je } from "../Icon-CSPBHL_x.js";
36
+ import { c as en } from "../createLucideIcon-DgrNxRV5.js";
37
+ import { X as tn } from "../x-JgjNP5oH.js";
38
38
  /**
39
39
  * @license lucide-react v0.460.0 - ISC
40
40
  *
41
41
  * This source code is licensed under the ISC license.
42
42
  * See the LICENSE file in the root directory of this source tree.
43
43
  */
44
- const nn = tn("ArrowLeft", [
44
+ const nn = en("ArrowLeft", [
45
45
  ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
46
46
  ["path", { d: "M19 12H5", key: "x3x0zl" }]
47
47
  ]);
48
- function rn(t) {
48
+ function rn(e) {
49
49
  if (typeof document == "undefined") return;
50
- let n = document.head || document.getElementsByTagName("head")[0], e = document.createElement("style");
51
- e.type = "text/css", n.appendChild(e), e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
50
+ let n = document.head || document.getElementsByTagName("head")[0], t = document.createElement("style");
51
+ t.type = "text/css", n.appendChild(t), t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
52
52
  }
53
- const ie = o.createContext({
53
+ const it = o.createContext({
54
54
  drawerRef: {
55
55
  current: null
56
56
  },
@@ -97,55 +97,55 @@ const ie = o.createContext({
97
97
  noBodyStyles: !1,
98
98
  container: null,
99
99
  autoFocus: !1
100
- }), ht = () => {
101
- const t = o.useContext(ie);
102
- if (!t)
100
+ }), he = () => {
101
+ const e = o.useContext(it);
102
+ if (!e)
103
103
  throw new Error("useDrawerContext must be used within a Drawer.Root");
104
- return t;
104
+ return e;
105
105
  };
106
106
  rn(`[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(
107
107
  [data-state=closed]
108
108
  ){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)}}`);
109
109
  function an() {
110
- const t = navigator.userAgent;
111
- return typeof window != "undefined" && (/Firefox/.test(t) && /Mobile/.test(t) || // Android Firefox
112
- /FxiOS/.test(t));
110
+ const e = navigator.userAgent;
111
+ return typeof window != "undefined" && (/Firefox/.test(e) && /Mobile/.test(e) || // Android Firefox
112
+ /FxiOS/.test(e));
113
113
  }
114
114
  function on() {
115
- return Ft(/^Mac/);
115
+ return Fe(/^Mac/);
116
116
  }
117
117
  function sn() {
118
- return Ft(/^iPhone/);
118
+ return Fe(/^iPhone/);
119
119
  }
120
- function Qt() {
120
+ function Qe() {
121
121
  return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
122
122
  }
123
123
  function ln() {
124
- return Ft(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
124
+ return Fe(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
125
125
  on() && navigator.maxTouchPoints > 1;
126
126
  }
127
- function se() {
127
+ function st() {
128
128
  return sn() || ln();
129
129
  }
130
- function Ft(t) {
131
- return typeof window != "undefined" && window.navigator != null ? t.test(window.navigator.platform) : void 0;
130
+ function Fe(e) {
131
+ return typeof window != "undefined" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
132
132
  }
133
- const un = 24, cn = typeof window != "undefined" ? _e : ke;
134
- function te(...t) {
133
+ const un = 24, cn = typeof window != "undefined" ? _t : kt;
134
+ function et(...e) {
135
135
  return (...n) => {
136
- for (let e of t)
137
- typeof e == "function" && e(...n);
136
+ for (let t of e)
137
+ typeof t == "function" && t(...n);
138
138
  };
139
139
  }
140
- const Ht = typeof document != "undefined" && window.visualViewport;
141
- function ee(t) {
142
- let n = window.getComputedStyle(t);
140
+ const He = typeof document != "undefined" && window.visualViewport;
141
+ function tt(e) {
142
+ let n = window.getComputedStyle(e);
143
143
  return /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
144
144
  }
145
- function le(t) {
146
- for (ee(t) && (t = t.parentElement); t && !ee(t); )
147
- t = t.parentElement;
148
- return t || document.scrollingElement || document.documentElement;
145
+ function lt(e) {
146
+ for (tt(e) && (e = e.parentElement); e && !tt(e); )
147
+ e = e.parentElement;
148
+ return e || document.scrollingElement || document.documentElement;
149
149
  }
150
150
  const dn = /* @__PURE__ */ new Set([
151
151
  "checkbox",
@@ -158,114 +158,114 @@ const dn = /* @__PURE__ */ new Set([
158
158
  "submit",
159
159
  "reset"
160
160
  ]);
161
- let Tt = 0, It;
162
- function fn(t = {}) {
163
- let { isDisabled: n } = t;
161
+ let Te = 0, Ie;
162
+ function fn(e = {}) {
163
+ let { isDisabled: n } = e;
164
164
  cn(() => {
165
165
  if (!n)
166
- return Tt++, Tt === 1 && se() && (It = mn()), () => {
167
- Tt--, Tt === 0 && (It == null || It());
166
+ return Te++, Te === 1 && st() && (Ie = mn()), () => {
167
+ Te--, Te === 0 && (Ie == null || Ie());
168
168
  };
169
169
  }, [
170
170
  n
171
171
  ]);
172
172
  }
173
173
  function mn() {
174
- let t, n = 0, e = (s) => {
175
- t = le(s.target), !(t === document.documentElement && t === document.body) && (n = s.changedTouches[0].pageY);
174
+ let e, n = 0, t = (s) => {
175
+ e = lt(s.target), !(e === document.documentElement && e === document.body) && (n = s.changedTouches[0].pageY);
176
176
  }, r = (s) => {
177
- if (!t || t === document.documentElement || t === document.body) {
177
+ if (!e || e === document.documentElement || e === document.body) {
178
178
  s.preventDefault();
179
179
  return;
180
180
  }
181
- let u = s.changedTouches[0].pageY, A = t.scrollTop, k = t.scrollHeight - t.clientHeight;
181
+ let u = s.changedTouches[0].pageY, A = e.scrollTop, k = e.scrollHeight - e.clientHeight;
182
182
  k !== 0 && ((A <= 0 && u > n || A >= k && u < n) && s.preventDefault(), n = u);
183
183
  }, a = (s) => {
184
184
  let u = s.target;
185
- _t(u) && u !== document.activeElement && (s.preventDefault(), u.style.transform = "translateY(-2000px)", u.focus(), requestAnimationFrame(() => {
185
+ _e(u) && u !== document.activeElement && (s.preventDefault(), u.style.transform = "translateY(-2000px)", u.focus(), requestAnimationFrame(() => {
186
186
  u.style.transform = "";
187
187
  }));
188
188
  }, i = (s) => {
189
189
  let u = s.target;
190
- _t(u) && (u.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
191
- u.style.transform = "", Ht && (Ht.height < window.innerHeight ? requestAnimationFrame(() => {
192
- ne(u);
193
- }) : Ht.addEventListener("resize", () => ne(u), {
190
+ _e(u) && (u.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
191
+ u.style.transform = "", He && (He.height < window.innerHeight ? requestAnimationFrame(() => {
192
+ nt(u);
193
+ }) : He.addEventListener("resize", () => nt(u), {
194
194
  once: !0
195
195
  }));
196
196
  }));
197
197
  }, g = () => {
198
198
  window.scrollTo(0, 0);
199
- }, d = window.pageXOffset, y = window.pageYOffset, T = te(pn(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
199
+ }, d = window.pageXOffset, y = window.pageYOffset, T = et(pn(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
200
200
  window.scrollTo(0, 0);
201
- let v = te(pt(document, "touchstart", e, {
201
+ let v = et(pe(document, "touchstart", t, {
202
202
  passive: !1,
203
203
  capture: !0
204
- }), pt(document, "touchmove", r, {
204
+ }), pe(document, "touchmove", r, {
205
205
  passive: !1,
206
206
  capture: !0
207
- }), pt(document, "touchend", a, {
207
+ }), pe(document, "touchend", a, {
208
208
  passive: !1,
209
209
  capture: !0
210
- }), pt(document, "focus", i, !0), pt(window, "scroll", g));
210
+ }), pe(document, "focus", i, !0), pe(window, "scroll", g));
211
211
  return () => {
212
212
  T(), v(), window.scrollTo(d, y);
213
213
  };
214
214
  }
215
- function pn(t, n, e) {
216
- let r = t.style[n];
217
- return t.style[n] = e, () => {
218
- t.style[n] = r;
215
+ function pn(e, n, t) {
216
+ let r = e.style[n];
217
+ return e.style[n] = t, () => {
218
+ e.style[n] = r;
219
219
  };
220
220
  }
221
- function pt(t, n, e, r) {
222
- return t.addEventListener(n, e, r), () => {
223
- t.removeEventListener(n, e, r);
221
+ function pe(e, n, t, r) {
222
+ return e.addEventListener(n, t, r), () => {
223
+ e.removeEventListener(n, t, r);
224
224
  };
225
225
  }
226
- function ne(t) {
226
+ function nt(e) {
227
227
  let n = document.scrollingElement || document.documentElement;
228
- for (; t && t !== n; ) {
229
- let e = le(t);
230
- if (e !== document.documentElement && e !== document.body && e !== t) {
231
- let r = e.getBoundingClientRect().top, a = t.getBoundingClientRect().top, i = t.getBoundingClientRect().bottom;
232
- const g = e.getBoundingClientRect().bottom + un;
233
- i > g && (e.scrollTop += a - r);
228
+ for (; e && e !== n; ) {
229
+ let t = lt(e);
230
+ if (t !== document.documentElement && t !== document.body && t !== e) {
231
+ let r = t.getBoundingClientRect().top, a = e.getBoundingClientRect().top, i = e.getBoundingClientRect().bottom;
232
+ const g = t.getBoundingClientRect().bottom + un;
233
+ i > g && (t.scrollTop += a - r);
234
234
  }
235
- t = e.parentElement;
235
+ e = t.parentElement;
236
236
  }
237
237
  }
238
- function _t(t) {
239
- return t instanceof HTMLInputElement && !dn.has(t.type) || t instanceof HTMLTextAreaElement || t instanceof HTMLElement && t.isContentEditable;
238
+ function _e(e) {
239
+ return e instanceof HTMLInputElement && !dn.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
240
240
  }
241
- function wn(t, n) {
242
- typeof t == "function" ? t(n) : t != null && (t.current = n);
241
+ function wn(e, n) {
242
+ typeof e == "function" ? e(n) : e != null && (e.current = n);
243
243
  }
244
- function hn(...t) {
245
- return (n) => t.forEach((e) => wn(e, n));
244
+ function hn(...e) {
245
+ return (n) => e.forEach((t) => wn(t, n));
246
246
  }
247
- function ue(...t) {
248
- return Ct.useCallback(hn(...t), t);
247
+ function ut(...e) {
248
+ return Ce.useCallback(hn(...e), e);
249
249
  }
250
- const ce = /* @__PURE__ */ new WeakMap();
251
- function H(t, n, e = !1) {
252
- if (!t || !(t instanceof HTMLElement)) return;
250
+ const ct = /* @__PURE__ */ new WeakMap();
251
+ function H(e, n, t = !1) {
252
+ if (!e || !(e instanceof HTMLElement)) return;
253
253
  let r = {};
254
254
  Object.entries(n).forEach(([a, i]) => {
255
255
  if (a.startsWith("--")) {
256
- t.style.setProperty(a, i);
256
+ e.style.setProperty(a, i);
257
257
  return;
258
258
  }
259
- r[a] = t.style[a], t.style[a] = i;
260
- }), !e && ce.set(t, r);
259
+ r[a] = e.style[a], e.style[a] = i;
260
+ }), !t && ct.set(e, r);
261
261
  }
262
- function gn(t, n) {
263
- if (!t || !(t instanceof HTMLElement)) return;
264
- let e = ce.get(t);
265
- e && (t.style[n] = e[n]);
262
+ function gn(e, n) {
263
+ if (!e || !(e instanceof HTMLElement)) return;
264
+ let t = ct.get(e);
265
+ t && (e.style[n] = t[n]);
266
266
  }
267
- const $ = (t) => {
268
- switch (t) {
267
+ const $ = (e) => {
268
+ switch (e) {
269
269
  case "top":
270
270
  case "bottom":
271
271
  return !0;
@@ -273,34 +273,34 @@ const $ = (t) => {
273
273
  case "right":
274
274
  return !1;
275
275
  default:
276
- return t;
276
+ return e;
277
277
  }
278
278
  };
279
- function Rt(t, n) {
280
- if (!t)
279
+ function xe(e, n) {
280
+ if (!e)
281
281
  return null;
282
- const e = window.getComputedStyle(t), r = (
282
+ const t = window.getComputedStyle(e), r = (
283
283
  // @ts-ignore
284
- e.transform || e.webkitTransform || e.mozTransform
284
+ t.transform || t.webkitTransform || t.mozTransform
285
285
  );
286
286
  let a = r.match(/^matrix3d\((.+)\)$/);
287
287
  return a ? parseFloat(a[1].split(", ")[$(n) ? 13 : 12]) : (a = r.match(/^matrix\((.+)\)$/), a ? parseFloat(a[1].split(", ")[$(n) ? 5 : 4]) : null);
288
288
  }
289
- function vn(t) {
290
- return 8 * (Math.log(t + 1) - 2);
289
+ function vn(e) {
290
+ return 8 * (Math.log(e + 1) - 2);
291
291
  }
292
- function Lt(t, n) {
293
- if (!t) return () => {
292
+ function Le(e, n) {
293
+ if (!e) return () => {
294
294
  };
295
- const e = t.style.cssText;
296
- return Object.assign(t.style, n), () => {
297
- t.style.cssText = e;
295
+ const t = e.style.cssText;
296
+ return Object.assign(e.style, n), () => {
297
+ e.style.cssText = t;
298
298
  };
299
299
  }
300
- function yn(...t) {
300
+ function yn(...e) {
301
301
  return (...n) => {
302
- for (const e of t)
303
- typeof e == "function" && e(...n);
302
+ for (const t of e)
303
+ typeof t == "function" && t(...n);
304
304
  };
305
305
  }
306
306
  const C = {
@@ -311,37 +311,37 @@ const C = {
311
311
  0,
312
312
  1
313
313
  ]
314
- }, de = 0.4, bn = 0.25, Sn = 100, fe = 8, xt = 16, kt = 26, Pt = "vaul-dragging";
315
- function me(t) {
316
- const n = o.useRef(t);
314
+ }, dt = 0.4, bn = 0.25, Sn = 100, ft = 8, Re = 16, ke = 26, Pe = "vaul-dragging";
315
+ function mt(e) {
316
+ const n = o.useRef(e);
317
317
  return o.useEffect(() => {
318
- n.current = t;
319
- }), o.useMemo(() => (...e) => n.current == null ? void 0 : n.current.call(n, ...e), []);
318
+ n.current = e;
319
+ }), o.useMemo(() => (...t) => n.current == null ? void 0 : n.current.call(n, ...t), []);
320
320
  }
321
- function Dn({ defaultProp: t, onChange: n }) {
322
- const e = o.useState(t), [r] = e, a = o.useRef(r), i = me(n);
321
+ function Dn({ defaultProp: e, onChange: n }) {
322
+ const t = o.useState(e), [r] = t, a = o.useRef(r), i = mt(n);
323
323
  return o.useEffect(() => {
324
324
  a.current !== r && (i(r), a.current = r);
325
325
  }, [
326
326
  r,
327
327
  a,
328
328
  i
329
- ]), e;
329
+ ]), t;
330
330
  }
331
- function pe({ prop: t, defaultProp: n, onChange: e = () => {
331
+ function pt({ prop: e, defaultProp: n, onChange: t = () => {
332
332
  } }) {
333
333
  const [r, a] = Dn({
334
334
  defaultProp: n,
335
- onChange: e
336
- }), i = t !== void 0, g = i ? t : r, d = me(e), y = o.useCallback((T) => {
335
+ onChange: t
336
+ }), i = e !== void 0, g = i ? e : r, d = mt(t), y = o.useCallback((T) => {
337
337
  if (i) {
338
- const s = typeof T == "function" ? T(t) : T;
339
- s !== t && d(s);
338
+ const s = typeof T == "function" ? T(e) : T;
339
+ s !== e && d(s);
340
340
  } else
341
341
  a(T);
342
342
  }, [
343
343
  i,
344
- t,
344
+ e,
345
345
  a,
346
346
  d
347
347
  ]);
@@ -350,10 +350,10 @@ function pe({ prop: t, defaultProp: n, onChange: e = () => {
350
350
  y
351
351
  ];
352
352
  }
353
- function Tn({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e, drawerRef: r, overlayRef: a, fadeFromIndex: i, onSnapPointChange: g, direction: d = "bottom", container: y, snapToSequentialPoint: T }) {
354
- const [v, s] = pe({
355
- prop: t,
356
- defaultProp: e == null ? void 0 : e[0],
353
+ function Tn({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: t, drawerRef: r, overlayRef: a, fadeFromIndex: i, onSnapPointChange: g, direction: d = "bottom", container: y, snapToSequentialPoint: T }) {
354
+ const [v, s] = pt({
355
+ prop: e,
356
+ defaultProp: t == null ? void 0 : t[0],
357
357
  onChange: n
358
358
  }), [u, A] = o.useState(typeof window != "undefined" ? {
359
359
  innerWidth: window.innerWidth,
@@ -368,16 +368,16 @@ function Tn({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
368
368
  }
369
369
  return window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
370
370
  }, []);
371
- const k = o.useMemo(() => v === (e == null ? void 0 : e[e.length - 1]) || null, [
372
- e,
371
+ const k = o.useMemo(() => v === (t == null ? void 0 : t[t.length - 1]) || null, [
372
+ t,
373
373
  v
374
374
  ]), O = o.useMemo(() => {
375
375
  var w;
376
- return (w = e == null ? void 0 : e.findIndex((R) => R === v)) != null ? w : null;
376
+ return (w = t == null ? void 0 : t.findIndex((x) => x === v)) != null ? w : null;
377
377
  }, [
378
- e,
378
+ t,
379
379
  v
380
- ]), P = e && e.length > 0 && (i || i === 0) && !Number.isNaN(i) && e[i] === v || !e, f = o.useMemo(() => {
380
+ ]), P = t && t.length > 0 && (i || i === 0) && !Number.isNaN(i) && t[i] === v || !t, f = o.useMemo(() => {
381
381
  const w = y ? {
382
382
  width: y.getBoundingClientRect().width,
383
383
  height: y.getBoundingClientRect().height
@@ -388,8 +388,8 @@ function Tn({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
388
388
  width: 0,
389
389
  height: 0
390
390
  };
391
- var R;
392
- return (R = e == null ? void 0 : e.map((h) => {
391
+ var x;
392
+ return (x = t == null ? void 0 : t.map((h) => {
393
393
  const I = typeof h == "string";
394
394
  let M = 0;
395
395
  if (I && (M = parseInt(h, 10)), $(d)) {
@@ -398,17 +398,17 @@ function Tn({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
398
398
  }
399
399
  const q = I ? M : u ? h * w.width : 0;
400
400
  return u ? d === "right" ? w.width - q : -w.width + q : q;
401
- })) != null ? R : [];
401
+ })) != null ? x : [];
402
402
  }, [
403
- e,
403
+ t,
404
404
  u,
405
405
  y
406
406
  ]), F = o.useMemo(() => O !== null ? f == null ? void 0 : f[O] : null, [
407
407
  f,
408
408
  O
409
409
  ]), B = o.useCallback((w) => {
410
- var R;
411
- const h = (R = f == null ? void 0 : f.findIndex((I) => I === w)) != null ? R : null;
410
+ var x;
411
+ const h = (x = f == null ? void 0 : f.findIndex((I) => I === w)) != null ? x : null;
412
412
  g(h), H(r.current, {
413
413
  transition: `transform ${C.DURATION}s cubic-bezier(${C.EASE.join(",")})`,
414
414
  transform: $(d) ? `translate3d(0, ${w}px, 0)` : `translate3d(${w}px, 0, 0)`
@@ -418,49 +418,49 @@ function Tn({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
418
418
  }) : H(a.current, {
419
419
  transition: `opacity ${C.DURATION}s cubic-bezier(${C.EASE.join(",")})`,
420
420
  opacity: "1"
421
- }), s(e == null ? void 0 : e[Math.max(h, 0)]);
421
+ }), s(t == null ? void 0 : t[Math.max(h, 0)]);
422
422
  }, [
423
423
  r.current,
424
- e,
424
+ t,
425
425
  f,
426
426
  i,
427
427
  a,
428
428
  s
429
429
  ]);
430
430
  o.useEffect(() => {
431
- if (v || t) {
431
+ if (v || e) {
432
432
  var w;
433
- const R = (w = e == null ? void 0 : e.findIndex((h) => h === t || h === v)) != null ? w : -1;
434
- f && R !== -1 && typeof f[R] == "number" && B(f[R]);
433
+ const x = (w = t == null ? void 0 : t.findIndex((h) => h === e || h === v)) != null ? w : -1;
434
+ f && x !== -1 && typeof f[x] == "number" && B(f[x]);
435
435
  }
436
436
  }, [
437
437
  v,
438
- t,
439
438
  e,
439
+ t,
440
440
  f,
441
441
  B
442
442
  ]);
443
- function p({ draggedDistance: w, closeDrawer: R, velocity: h, dismissible: I }) {
443
+ function p({ draggedDistance: w, closeDrawer: x, velocity: h, dismissible: I }) {
444
444
  if (i === void 0) return;
445
- const M = d === "bottom" || d === "right" ? (F != null ? F : 0) - w : (F != null ? F : 0) + w, q = O === i - 1, U = O === 0, tt = w > 0;
445
+ const M = d === "bottom" || d === "right" ? (F != null ? F : 0) - w : (F != null ? F : 0) + w, q = O === i - 1, U = O === 0, ee = w > 0;
446
446
  if (q && H(a.current, {
447
447
  transition: `opacity ${C.DURATION}s cubic-bezier(${C.EASE.join(",")})`
448
- }), !T && h > 2 && !tt) {
449
- I ? R() : B(f[0]);
448
+ }), !T && h > 2 && !ee) {
449
+ I ? x() : B(f[0]);
450
450
  return;
451
451
  }
452
- if (!T && h > 2 && tt && f && e) {
453
- B(f[e.length - 1]);
452
+ if (!T && h > 2 && ee && f && t) {
453
+ B(f[t.length - 1]);
454
454
  return;
455
455
  }
456
456
  const c = f == null ? void 0 : f.reduce((L, V) => typeof L != "number" || typeof V != "number" ? L : Math.abs(V - M) < Math.abs(L - M) ? V : L), X = $(d) ? window.innerHeight : window.innerWidth;
457
- if (h > de && Math.abs(w) < X * 0.4) {
458
- const L = tt ? 1 : -1;
459
- if (L > 0 && k && e) {
460
- B(f[e.length - 1]);
457
+ if (h > dt && Math.abs(w) < X * 0.4) {
458
+ const L = ee ? 1 : -1;
459
+ if (L > 0 && k && t) {
460
+ B(f[t.length - 1]);
461
461
  return;
462
462
  }
463
- if (U && L < 0 && I && R(), O === null) return;
463
+ if (U && L < 0 && I && x(), O === null) return;
464
464
  B(f[O + L]);
465
465
  return;
466
466
  }
@@ -468,17 +468,17 @@ function Tn({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
468
468
  }
469
469
  function Y({ draggedDistance: w }) {
470
470
  if (F === null) return;
471
- const R = d === "bottom" || d === "right" ? F - w : F + w;
472
- (d === "bottom" || d === "right") && R < f[f.length - 1] || (d === "top" || d === "left") && R > f[f.length - 1] || H(r.current, {
473
- transform: $(d) ? `translate3d(0, ${R}px, 0)` : `translate3d(${R}px, 0, 0)`
471
+ const x = d === "bottom" || d === "right" ? F - w : F + w;
472
+ (d === "bottom" || d === "right") && x < f[f.length - 1] || (d === "top" || d === "left") && x > f[f.length - 1] || H(r.current, {
473
+ transform: $(d) ? `translate3d(0, ${x}px, 0)` : `translate3d(${x}px, 0, 0)`
474
474
  });
475
475
  }
476
- function Z(w, R) {
477
- if (!e || typeof O != "number" || !f || i === void 0) return null;
476
+ function Z(w, x) {
477
+ if (!t || typeof O != "number" || !f || i === void 0) return null;
478
478
  const h = O === i - 1;
479
- if (O >= i && R)
479
+ if (O >= i && x)
480
480
  return 0;
481
- if (h && !R) return 1;
481
+ if (h && !x) return 1;
482
482
  if (!P && !h) return null;
483
483
  const M = h ? O + 1 : O - 1, q = h ? f[M] - f[M - 1] : f[M + 1] - f[M], U = w / Math.abs(q);
484
484
  return h ? 1 - U : U;
@@ -495,30 +495,30 @@ function Tn({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
495
495
  snapPointsOffset: f
496
496
  };
497
497
  }
498
- const Rn = () => () => {
498
+ const xn = () => () => {
499
499
  };
500
- function xn() {
501
- const { direction: t, isOpen: n, shouldScaleBackground: e, setBackgroundColorOnScale: r, noBodyStyles: a } = ht(), i = o.useRef(null), g = Fe(() => document.body.style.backgroundColor, []);
500
+ function Rn() {
501
+ const { direction: e, isOpen: n, shouldScaleBackground: t, setBackgroundColorOnScale: r, noBodyStyles: a } = he(), i = o.useRef(null), g = Ft(() => document.body.style.backgroundColor, []);
502
502
  function d() {
503
- return (window.innerWidth - kt) / window.innerWidth;
503
+ return (window.innerWidth - ke) / window.innerWidth;
504
504
  }
505
505
  o.useEffect(() => {
506
- if (n && e) {
506
+ if (n && t) {
507
507
  i.current && clearTimeout(i.current);
508
508
  const y = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
509
509
  if (!y) return;
510
- yn(r && !a ? Lt(document.body, {
510
+ yn(r && !a ? Le(document.body, {
511
511
  background: "black"
512
- }) : Rn, Lt(y, {
513
- transformOrigin: $(t) ? "top" : "left",
512
+ }) : xn, Le(y, {
513
+ transformOrigin: $(e) ? "top" : "left",
514
514
  transitionProperty: "transform, border-radius",
515
515
  transitionDuration: `${C.DURATION}s`,
516
516
  transitionTimingFunction: `cubic-bezier(${C.EASE.join(",")})`
517
517
  }));
518
- const T = Lt(y, E({
519
- borderRadius: `${fe}px`,
518
+ const T = Le(y, E({
519
+ borderRadius: `${ft}px`,
520
520
  overflow: "hidden"
521
- }, $(t) ? {
521
+ }, $(e) ? {
522
522
  transform: `scale(${d()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
523
523
  } : {
524
524
  transform: `scale(${d()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`
@@ -531,15 +531,15 @@ function xn() {
531
531
  }
532
532
  }, [
533
533
  n,
534
- e,
534
+ t,
535
535
  g
536
536
  ]);
537
537
  }
538
- let wt = null;
539
- function En({ isOpen: t, modal: n, nested: e, hasBeenOpened: r, preventScrollRestoration: a, noBodyStyles: i }) {
538
+ let we = null;
539
+ function En({ isOpen: e, modal: n, nested: t, hasBeenOpened: r, preventScrollRestoration: a, noBodyStyles: i }) {
540
540
  const [g, d] = o.useState(() => typeof window != "undefined" ? window.location.href : ""), y = o.useRef(0), T = o.useCallback(() => {
541
- if (Qt() && wt === null && t && !i) {
542
- wt = {
541
+ if (Qe() && we === null && e && !i) {
542
+ we = {
543
543
  position: document.body.style.position,
544
544
  top: document.body.style.top,
545
545
  left: document.body.style.left,
@@ -558,17 +558,17 @@ function En({ isOpen: t, modal: n, nested: e, hasBeenOpened: r, preventScrollRes
558
558
  }), 300);
559
559
  }
560
560
  }, [
561
- t
561
+ e
562
562
  ]), v = o.useCallback(() => {
563
- if (Qt() && wt !== null && !i) {
563
+ if (Qe() && we !== null && !i) {
564
564
  const s = -parseInt(document.body.style.top, 10), u = -parseInt(document.body.style.left, 10);
565
- Object.assign(document.body.style, wt), window.requestAnimationFrame(() => {
565
+ Object.assign(document.body.style, we), window.requestAnimationFrame(() => {
566
566
  if (a && g !== window.location.href) {
567
567
  d(window.location.href);
568
568
  return;
569
569
  }
570
570
  window.scrollTo(u, s);
571
- }), wt = null;
571
+ }), we = null;
572
572
  }
573
573
  }, [
574
574
  g
@@ -589,87 +589,87 @@ function En({ isOpen: t, modal: n, nested: e, hasBeenOpened: r, preventScrollRes
589
589
  n,
590
590
  v
591
591
  ]), o.useEffect(() => {
592
- e || !r || (t ? (!window.matchMedia("(display-mode: standalone)").matches && T(), n || window.setTimeout(() => {
592
+ t || !r || (e ? (!window.matchMedia("(display-mode: standalone)").matches && T(), n || window.setTimeout(() => {
593
593
  v();
594
594
  }, 500)) : v());
595
595
  }, [
596
- t,
596
+ e,
597
597
  r,
598
598
  g,
599
599
  n,
600
- e,
600
+ t,
601
601
  T,
602
602
  v
603
603
  ]), {
604
604
  restorePositionSetting: v
605
605
  };
606
606
  }
607
- function Cn({ open: t, onOpenChange: n, children: e, onDrag: r, onRelease: a, snapPoints: i, shouldScaleBackground: g = !1, setBackgroundColorOnScale: d = !0, closeThreshold: y = bn, scrollLockTimeout: T = Sn, dismissible: v = !0, handleOnly: s = !1, fadeFromIndex: u = i && i.length - 1, activeSnapPoint: A, setActiveSnapPoint: k, fixed: O, modal: P = !0, onClose: f, nested: F, noBodyStyles: B = !1, direction: p = "bottom", defaultOpen: Y = !1, disablePreventScroll: Z = !0, snapToSequentialPoint: w = !1, preventScrollRestoration: R = !1, repositionInputs: h = !0, onAnimationEnd: I, container: M, autoFocus: q = !1 }) {
608
- var U, tt;
609
- const [c = !1, X] = pe({
607
+ function Cn({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: a, snapPoints: i, shouldScaleBackground: g = !1, setBackgroundColorOnScale: d = !0, closeThreshold: y = bn, scrollLockTimeout: T = Sn, dismissible: v = !0, handleOnly: s = !1, fadeFromIndex: u = i && i.length - 1, activeSnapPoint: A, setActiveSnapPoint: k, fixed: O, modal: P = !0, onClose: f, nested: F, noBodyStyles: B = !1, direction: p = "bottom", defaultOpen: Y = !1, disablePreventScroll: Z = !0, snapToSequentialPoint: w = !1, preventScrollRestoration: x = !1, repositionInputs: h = !0, onAnimationEnd: I, container: M, autoFocus: q = !1 }) {
608
+ var U, ee;
609
+ const [c = !1, X] = pt({
610
610
  defaultProp: Y,
611
- prop: t,
611
+ prop: e,
612
612
  onChange: (l) => {
613
- n == null || n(l), !l && !F && Ee(), setTimeout(() => {
613
+ n == null || n(l), !l && !F && Et(), setTimeout(() => {
614
614
  I == null || I(l);
615
615
  }, C.DURATION * 1e3), l && !P && typeof window != "undefined" && window.requestAnimationFrame(() => {
616
616
  document.body.style.pointerEvents = "auto";
617
617
  }), l || (document.body.style.pointerEvents = "auto");
618
618
  }
619
- }), [L, V] = o.useState(!1), [G, at] = o.useState(!1), [gt, vt] = o.useState(!1), st = o.useRef(null), yt = o.useRef(null), Ot = o.useRef(null), Nt = o.useRef(null), ct = o.useRef(null), dt = o.useRef(!1), $t = o.useRef(null), At = o.useRef(0), lt = o.useRef(!1), Bt = o.useRef(!Y), Wt = o.useRef(0), m = o.useRef(null), zt = o.useRef(((U = m.current) == null ? void 0 : U.getBoundingClientRect().height) || 0), Ut = o.useRef(((tt = m.current) == null ? void 0 : tt.getBoundingClientRect().width) || 0), Mt = o.useRef(0), Se = o.useCallback((l) => {
620
- i && l === ft.length - 1 && (yt.current = /* @__PURE__ */ new Date());
621
- }, []), { activeSnapPoint: De, activeSnapPointIndex: ut, setActiveSnapPoint: Vt, onRelease: Te, snapPointsOffset: ft, onDrag: Re, shouldFade: jt, getPercentageDragged: xe } = Tn({
619
+ }), [L, V] = o.useState(!1), [G, ae] = o.useState(!1), [ge, ve] = o.useState(!1), se = o.useRef(null), ye = o.useRef(null), Oe = o.useRef(null), Ne = o.useRef(null), ce = o.useRef(null), de = o.useRef(!1), $e = o.useRef(null), Ae = o.useRef(0), le = o.useRef(!1), Be = o.useRef(!Y), We = o.useRef(0), m = o.useRef(null), ze = o.useRef(((U = m.current) == null ? void 0 : U.getBoundingClientRect().height) || 0), Ue = o.useRef(((ee = m.current) == null ? void 0 : ee.getBoundingClientRect().width) || 0), Me = o.useRef(0), St = o.useCallback((l) => {
620
+ i && l === fe.length - 1 && (ye.current = /* @__PURE__ */ new Date());
621
+ }, []), { activeSnapPoint: Dt, activeSnapPointIndex: ue, setActiveSnapPoint: Ve, onRelease: Tt, snapPointsOffset: fe, onDrag: xt, shouldFade: je, getPercentageDragged: Rt } = Tn({
622
622
  snapPoints: i,
623
623
  activeSnapPointProp: A,
624
624
  setActiveSnapPointProp: k,
625
625
  drawerRef: m,
626
626
  fadeFromIndex: u,
627
- overlayRef: st,
628
- onSnapPointChange: Se,
627
+ overlayRef: se,
628
+ onSnapPointChange: St,
629
629
  direction: p,
630
630
  container: M,
631
631
  snapToSequentialPoint: w
632
632
  });
633
633
  fn({
634
- isDisabled: !c || G || !P || gt || !L || !h || !Z
634
+ isDisabled: !c || G || !P || ge || !L || !h || !Z
635
635
  });
636
- const { restorePositionSetting: Ee } = En({
636
+ const { restorePositionSetting: Et } = En({
637
637
  isOpen: c,
638
638
  modal: P,
639
639
  nested: F != null ? F : !1,
640
640
  hasBeenOpened: L,
641
- preventScrollRestoration: R,
641
+ preventScrollRestoration: x,
642
642
  noBodyStyles: B
643
643
  });
644
- function bt() {
645
- return (window.innerWidth - kt) / window.innerWidth;
644
+ function be() {
645
+ return (window.innerWidth - ke) / window.innerWidth;
646
646
  }
647
- function Ce(l) {
648
- var S, x;
649
- !v && !i || m.current && !m.current.contains(l.target) || (zt.current = ((S = m.current) == null ? void 0 : S.getBoundingClientRect().height) || 0, Ut.current = ((x = m.current) == null ? void 0 : x.getBoundingClientRect().width) || 0, at(!0), Ot.current = /* @__PURE__ */ new Date(), se() && window.addEventListener("touchend", () => dt.current = !1, {
647
+ function Ct(l) {
648
+ var S, R;
649
+ !v && !i || m.current && !m.current.contains(l.target) || (ze.current = ((S = m.current) == null ? void 0 : S.getBoundingClientRect().height) || 0, Ue.current = ((R = m.current) == null ? void 0 : R.getBoundingClientRect().width) || 0, ae(!0), Oe.current = /* @__PURE__ */ new Date(), st() && window.addEventListener("touchend", () => de.current = !1, {
650
650
  once: !0
651
- }), l.target.setPointerCapture(l.pointerId), At.current = $(p) ? l.pageY : l.pageX);
651
+ }), l.target.setPointerCapture(l.pointerId), Ae.current = $(p) ? l.pageY : l.pageX);
652
652
  }
653
- function Yt(l, S) {
654
- var x;
653
+ function Ye(l, S) {
654
+ var R;
655
655
  let b = l;
656
- const N = (x = window.getSelection()) == null ? void 0 : x.toString(), z = m.current ? Rt(m.current, p) : null, W = /* @__PURE__ */ new Date();
656
+ const N = (R = window.getSelection()) == null ? void 0 : R.toString(), z = m.current ? xe(m.current, p) : null, W = /* @__PURE__ */ new Date();
657
657
  if (b.tagName === "SELECT" || b.hasAttribute("data-vaul-no-drag") || b.closest("[data-vaul-no-drag]"))
658
658
  return !1;
659
659
  if (p === "right" || p === "left")
660
660
  return !0;
661
- if (yt.current && W.getTime() - yt.current.getTime() < 500)
661
+ if (ye.current && W.getTime() - ye.current.getTime() < 500)
662
662
  return !1;
663
663
  if (z !== null && (p === "bottom" ? z > 0 : z < 0))
664
664
  return !0;
665
665
  if (N && N.length > 0)
666
666
  return !1;
667
- if (ct.current && W.getTime() - ct.current.getTime() < T && z === 0 || S)
668
- return ct.current = W, !1;
667
+ if (ce.current && W.getTime() - ce.current.getTime() < T && z === 0 || S)
668
+ return ce.current = W, !1;
669
669
  for (; b; ) {
670
670
  if (b.scrollHeight > b.clientHeight) {
671
671
  if (b.scrollTop !== 0)
672
- return ct.current = /* @__PURE__ */ new Date(), !1;
672
+ return ce.current = /* @__PURE__ */ new Date(), !1;
673
673
  if (b.getAttribute("role") === "dialog")
674
674
  return !0;
675
675
  }
@@ -677,36 +677,36 @@ function Cn({ open: t, onOpenChange: n, children: e, onDrag: r, onRelease: a, sn
677
677
  }
678
678
  return !0;
679
679
  }
680
- function Oe(l) {
680
+ function Ot(l) {
681
681
  if (m.current && G) {
682
- const S = p === "bottom" || p === "right" ? 1 : -1, x = (At.current - ($(p) ? l.pageY : l.pageX)) * S, b = x > 0, N = i && !v && !b;
683
- if (N && ut === 0) return;
684
- const z = Math.abs(x), W = document.querySelector("[data-vaul-drawer-wrapper]"), nt = p === "bottom" || p === "top" ? zt.current : Ut.current;
685
- let K = z / nt;
686
- const ot = xe(z, b);
687
- if (ot !== null && (K = ot), N && K >= 1 || !dt.current && !Yt(l.target, b)) return;
688
- if (m.current.classList.add(Pt), dt.current = !0, H(m.current, {
682
+ const S = p === "bottom" || p === "right" ? 1 : -1, R = (Ae.current - ($(p) ? l.pageY : l.pageX)) * S, b = R > 0, N = i && !v && !b;
683
+ if (N && ue === 0) return;
684
+ const z = Math.abs(R), W = document.querySelector("[data-vaul-drawer-wrapper]"), ne = p === "bottom" || p === "top" ? ze.current : Ue.current;
685
+ let K = z / ne;
686
+ const oe = Rt(z, b);
687
+ if (oe !== null && (K = oe), N && K >= 1 || !de.current && !Ye(l.target, b)) return;
688
+ if (m.current.classList.add(Pe), de.current = !0, H(m.current, {
689
689
  transition: "none"
690
- }), H(st.current, {
690
+ }), H(se.current, {
691
691
  transition: "none"
692
- }), i && Re({
693
- draggedDistance: x
692
+ }), i && xt({
693
+ draggedDistance: R
694
694
  }), b && !i) {
695
- const J = vn(x), St = Math.min(J * -1, 0) * S;
695
+ const J = vn(R), Se = Math.min(J * -1, 0) * S;
696
696
  H(m.current, {
697
- transform: $(p) ? `translate3d(0, ${St}px, 0)` : `translate3d(${St}px, 0, 0)`
697
+ transform: $(p) ? `translate3d(0, ${Se}px, 0)` : `translate3d(${Se}px, 0, 0)`
698
698
  });
699
699
  return;
700
700
  }
701
- const rt = 1 - K;
702
- if ((jt || u && ut === u - 1) && (r == null || r(l, K), H(st.current, {
703
- opacity: `${rt}`,
701
+ const re = 1 - K;
702
+ if ((je || u && ue === u - 1) && (r == null || r(l, K), H(se.current, {
703
+ opacity: `${re}`,
704
704
  transition: "none"
705
- }, !0)), W && st.current && g) {
706
- const J = Math.min(bt() + K * (1 - bt()), 1), St = 8 - K * 8, Xt = Math.max(0, 14 - K * 14);
705
+ }, !0)), W && se.current && g) {
706
+ const J = Math.min(be() + K * (1 - be()), 1), Se = 8 - K * 8, Xe = Math.max(0, 14 - K * 14);
707
707
  H(W, {
708
- borderRadius: `${St}px`,
709
- transform: $(p) ? `scale(${J}) translate3d(0, ${Xt}px, 0)` : `scale(${J}) translate3d(${Xt}px, 0, 0)`,
708
+ borderRadius: `${Se}px`,
709
+ transform: $(p) ? `scale(${J}) translate3d(0, ${Xe}px, 0)` : `scale(${J}) translate3d(${Xe}px, 0, 0)`,
710
710
  transition: "none"
711
711
  }, !0);
712
712
  }
@@ -720,63 +720,63 @@ function Cn({ open: t, onOpenChange: n, children: e, onDrag: r, onRelease: a, sn
720
720
  }
721
721
  o.useEffect(() => {
722
722
  window.requestAnimationFrame(() => {
723
- Bt.current = !0;
723
+ Be.current = !0;
724
724
  });
725
725
  }, []), o.useEffect(() => {
726
726
  var l;
727
727
  function S() {
728
728
  if (!m.current || !h) return;
729
- const x = document.activeElement;
730
- if (_t(x) || lt.current) {
729
+ const R = document.activeElement;
730
+ if (_e(R) || le.current) {
731
731
  var b;
732
732
  const N = ((b = window.visualViewport) == null ? void 0 : b.height) || 0, z = window.innerHeight;
733
733
  let W = z - N;
734
- const nt = m.current.getBoundingClientRect().height || 0, K = nt > z * 0.8;
735
- Mt.current || (Mt.current = nt);
736
- const ot = m.current.getBoundingClientRect().top;
737
- if (Math.abs(Wt.current - W) > 60 && (lt.current = !lt.current), i && i.length > 0 && ft && ut) {
738
- const rt = ft[ut] || 0;
739
- W += rt;
734
+ const ne = m.current.getBoundingClientRect().height || 0, K = ne > z * 0.8;
735
+ Me.current || (Me.current = ne);
736
+ const oe = m.current.getBoundingClientRect().top;
737
+ if (Math.abs(We.current - W) > 60 && (le.current = !le.current), i && i.length > 0 && fe && ue) {
738
+ const re = fe[ue] || 0;
739
+ W += re;
740
740
  }
741
- if (Wt.current = W, nt > N || lt.current) {
742
- const rt = m.current.getBoundingClientRect().height;
743
- let J = rt;
744
- rt > N && (J = N - (K ? ot : kt)), O ? m.current.style.height = `${rt - Math.max(W, 0)}px` : m.current.style.height = `${Math.max(J, N - ot)}px`;
745
- } else an() || (m.current.style.height = `${Mt.current}px`);
746
- i && i.length > 0 && !lt.current ? m.current.style.bottom = "0px" : m.current.style.bottom = `${Math.max(W, 0)}px`;
741
+ if (We.current = W, ne > N || le.current) {
742
+ const re = m.current.getBoundingClientRect().height;
743
+ let J = re;
744
+ re > N && (J = N - (K ? oe : ke)), O ? m.current.style.height = `${re - Math.max(W, 0)}px` : m.current.style.height = `${Math.max(J, N - oe)}px`;
745
+ } else an() || (m.current.style.height = `${Me.current}px`);
746
+ i && i.length > 0 && !le.current ? m.current.style.bottom = "0px" : m.current.style.bottom = `${Math.max(W, 0)}px`;
747
747
  }
748
748
  }
749
749
  return (l = window.visualViewport) == null || l.addEventListener("resize", S), () => {
750
- var x;
751
- return (x = window.visualViewport) == null ? void 0 : x.removeEventListener("resize", S);
750
+ var R;
751
+ return (R = window.visualViewport) == null ? void 0 : R.removeEventListener("resize", S);
752
752
  };
753
753
  }, [
754
- ut,
754
+ ue,
755
755
  i,
756
- ft
756
+ fe
757
757
  ]);
758
- function mt(l) {
759
- Ne(), f == null || f(), l || X(!1), setTimeout(() => {
760
- i && Vt(i[0]);
758
+ function me(l) {
759
+ Nt(), f == null || f(), l || X(!1), setTimeout(() => {
760
+ i && Ve(i[0]);
761
761
  }, C.DURATION * 1e3);
762
762
  }
763
- function qt() {
763
+ function qe() {
764
764
  if (!m.current) return;
765
- const l = document.querySelector("[data-vaul-drawer-wrapper]"), S = Rt(m.current, p);
765
+ const l = document.querySelector("[data-vaul-drawer-wrapper]"), S = xe(m.current, p);
766
766
  H(m.current, {
767
767
  transform: "translate3d(0, 0, 0)",
768
768
  transition: `transform ${C.DURATION}s cubic-bezier(${C.EASE.join(",")})`
769
- }), H(st.current, {
769
+ }), H(se.current, {
770
770
  transition: `opacity ${C.DURATION}s cubic-bezier(${C.EASE.join(",")})`,
771
771
  opacity: "1"
772
772
  }), g && S && S > 0 && c && H(l, j(E({
773
- borderRadius: `${fe}px`,
773
+ borderRadius: `${ft}px`,
774
774
  overflow: "hidden"
775
775
  }, $(p) ? {
776
- transform: `scale(${bt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
776
+ transform: `scale(${be()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
777
777
  transformOrigin: "top"
778
778
  } : {
779
- transform: `scale(${bt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
779
+ transform: `scale(${be()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
780
780
  transformOrigin: "left"
781
781
  }), {
782
782
  transitionProperty: "transform, border-radius",
@@ -784,74 +784,74 @@ function Cn({ open: t, onOpenChange: n, children: e, onDrag: r, onRelease: a, sn
784
784
  transitionTimingFunction: `cubic-bezier(${C.EASE.join(",")})`
785
785
  }), !0);
786
786
  }
787
- function Ne() {
788
- !G || !m.current || (m.current.classList.remove(Pt), dt.current = !1, at(!1), Nt.current = /* @__PURE__ */ new Date());
787
+ function Nt() {
788
+ !G || !m.current || (m.current.classList.remove(Pe), de.current = !1, ae(!1), Ne.current = /* @__PURE__ */ new Date());
789
789
  }
790
- function $e(l) {
790
+ function $t(l) {
791
791
  if (!G || !m.current) return;
792
- m.current.classList.remove(Pt), dt.current = !1, at(!1), Nt.current = /* @__PURE__ */ new Date();
793
- const S = Rt(m.current, p);
794
- if (!l || !Yt(l.target, !1) || !S || Number.isNaN(S) || Ot.current === null) return;
795
- const x = Nt.current.getTime() - Ot.current.getTime(), b = At.current - ($(p) ? l.pageY : l.pageX), N = Math.abs(b) / x;
796
- if (N > 0.05 && (vt(!0), setTimeout(() => {
797
- vt(!1);
792
+ m.current.classList.remove(Pe), de.current = !1, ae(!1), Ne.current = /* @__PURE__ */ new Date();
793
+ const S = xe(m.current, p);
794
+ if (!l || !Ye(l.target, !1) || !S || Number.isNaN(S) || Oe.current === null) return;
795
+ const R = Ne.current.getTime() - Oe.current.getTime(), b = Ae.current - ($(p) ? l.pageY : l.pageX), N = Math.abs(b) / R;
796
+ if (N > 0.05 && (ve(!0), setTimeout(() => {
797
+ ve(!1);
798
798
  }, 200)), i) {
799
- Te({
799
+ Tt({
800
800
  draggedDistance: b * (p === "bottom" || p === "right" ? 1 : -1),
801
- closeDrawer: mt,
801
+ closeDrawer: me,
802
802
  velocity: N,
803
803
  dismissible: v
804
804
  }), a == null || a(l, !0);
805
805
  return;
806
806
  }
807
807
  if (p === "bottom" || p === "right" ? b > 0 : b < 0) {
808
- qt(), a == null || a(l, !0);
808
+ qe(), a == null || a(l, !0);
809
809
  return;
810
810
  }
811
- if (N > de) {
812
- mt(), a == null || a(l, !1);
811
+ if (N > dt) {
812
+ me(), a == null || a(l, !1);
813
813
  return;
814
814
  }
815
815
  var z;
816
816
  const W = Math.min((z = m.current.getBoundingClientRect().height) != null ? z : 0, window.innerHeight);
817
- var nt;
818
- const K = Math.min((nt = m.current.getBoundingClientRect().width) != null ? nt : 0, window.innerWidth), ot = p === "left" || p === "right";
819
- if (Math.abs(S) >= (ot ? K : W) * y) {
820
- mt(), a == null || a(l, !1);
817
+ var ne;
818
+ const K = Math.min((ne = m.current.getBoundingClientRect().width) != null ? ne : 0, window.innerWidth), oe = p === "left" || p === "right";
819
+ if (Math.abs(S) >= (oe ? K : W) * y) {
820
+ me(), a == null || a(l, !1);
821
821
  return;
822
822
  }
823
- a == null || a(l, !0), qt();
823
+ a == null || a(l, !0), qe();
824
824
  }
825
825
  o.useEffect(() => (c && (H(document.documentElement, {
826
826
  scrollBehavior: "auto"
827
- }), yt.current = /* @__PURE__ */ new Date()), () => {
827
+ }), ye.current = /* @__PURE__ */ new Date()), () => {
828
828
  gn(document.documentElement, "scrollBehavior");
829
829
  }), [
830
830
  c
831
831
  ]);
832
- function Ae(l) {
833
- const S = l ? (window.innerWidth - xt) / window.innerWidth : 1, x = l ? -16 : 0;
834
- $t.current && window.clearTimeout($t.current), H(m.current, {
832
+ function At(l) {
833
+ const S = l ? (window.innerWidth - Re) / window.innerWidth : 1, R = l ? -16 : 0;
834
+ $e.current && window.clearTimeout($e.current), H(m.current, {
835
835
  transition: `transform ${C.DURATION}s cubic-bezier(${C.EASE.join(",")})`,
836
- transform: $(p) ? `scale(${S}) translate3d(0, ${x}px, 0)` : `scale(${S}) translate3d(${x}px, 0, 0)`
837
- }), !l && m.current && ($t.current = setTimeout(() => {
838
- const b = Rt(m.current, p);
836
+ transform: $(p) ? `scale(${S}) translate3d(0, ${R}px, 0)` : `scale(${S}) translate3d(${R}px, 0, 0)`
837
+ }), !l && m.current && ($e.current = setTimeout(() => {
838
+ const b = xe(m.current, p);
839
839
  H(m.current, {
840
840
  transition: "none",
841
841
  transform: $(p) ? `translate3d(0, ${b}px, 0)` : `translate3d(${b}px, 0, 0)`
842
842
  });
843
843
  }, 500));
844
844
  }
845
- function Me(l, S) {
845
+ function Mt(l, S) {
846
846
  if (S < 0) return;
847
- const x = (window.innerWidth - xt) / window.innerWidth, b = x + S * (1 - x), N = -16 + S * xt;
847
+ const R = (window.innerWidth - Re) / window.innerWidth, b = R + S * (1 - R), N = -16 + S * Re;
848
848
  H(m.current, {
849
849
  transform: $(p) ? `scale(${b}) translate3d(0, ${N}px, 0)` : `scale(${b}) translate3d(${N}px, 0, 0)`,
850
850
  transition: "none"
851
851
  });
852
852
  }
853
- function He(l, S) {
854
- const x = $(p) ? window.innerHeight : window.innerWidth, b = S ? (x - xt) / x : 1, N = S ? -16 : 0;
853
+ function Ht(l, S) {
854
+ const R = $(p) ? window.innerHeight : window.innerWidth, b = S ? (R - Re) / R : 1, N = S ? -16 : 0;
855
855
  S && H(m.current, {
856
856
  transition: `transform ${C.DURATION}s cubic-bezier(${C.EASE.join(",")})`,
857
857
  transform: $(p) ? `scale(${b}) translate3d(0, ${N}px, 0)` : `scale(${b}) translate3d(${N}px, 0, 0)`
@@ -863,37 +863,37 @@ function Cn({ open: t, onOpenChange: n, children: e, onDrag: r, onRelease: a, sn
863
863
  });
864
864
  }, [
865
865
  P
866
- ]), /* @__PURE__ */ o.createElement(je, {
866
+ ]), /* @__PURE__ */ o.createElement(jt, {
867
867
  defaultOpen: Y,
868
868
  onOpenChange: (l) => {
869
- !v && !l || (l ? V(!0) : mt(!0), X(l));
869
+ !v && !l || (l ? V(!0) : me(!0), X(l));
870
870
  },
871
871
  open: c
872
- }, /* @__PURE__ */ o.createElement(ie.Provider, {
872
+ }, /* @__PURE__ */ o.createElement(it.Provider, {
873
873
  value: {
874
- activeSnapPoint: De,
874
+ activeSnapPoint: Dt,
875
875
  snapPoints: i,
876
- setActiveSnapPoint: Vt,
876
+ setActiveSnapPoint: Ve,
877
877
  drawerRef: m,
878
- overlayRef: st,
878
+ overlayRef: se,
879
879
  onOpenChange: n,
880
- onPress: Ce,
881
- onRelease: $e,
882
- onDrag: Oe,
880
+ onPress: Ct,
881
+ onRelease: $t,
882
+ onDrag: Ot,
883
883
  dismissible: v,
884
- shouldAnimate: Bt,
884
+ shouldAnimate: Be,
885
885
  handleOnly: s,
886
886
  isOpen: c,
887
887
  isDragging: G,
888
- shouldFade: jt,
889
- closeDrawer: mt,
890
- onNestedDrag: Me,
891
- onNestedOpenChange: Ae,
892
- onNestedRelease: He,
893
- keyboardIsOpen: lt,
888
+ shouldFade: je,
889
+ closeDrawer: me,
890
+ onNestedDrag: Mt,
891
+ onNestedOpenChange: At,
892
+ onNestedRelease: Ht,
893
+ keyboardIsOpen: le,
894
894
  modal: P,
895
- snapPointsOffset: ft,
896
- activeSnapPointIndex: ut,
895
+ snapPointsOffset: fe,
896
+ activeSnapPointIndex: ue,
897
897
  direction: p,
898
898
  shouldScaleBackground: g,
899
899
  setBackgroundColorOnScale: d,
@@ -901,41 +901,41 @@ function Cn({ open: t, onOpenChange: n, children: e, onDrag: r, onRelease: a, sn
901
901
  container: M,
902
902
  autoFocus: q
903
903
  }
904
- }, e));
904
+ }, t));
905
905
  }
906
- const we = /* @__PURE__ */ o.forwardRef(function(e, n) {
907
- var t = _(e, []);
908
- const { overlayRef: r, snapPoints: a, onRelease: i, shouldFade: g, isOpen: d, modal: y, shouldAnimate: T } = ht(), v = ue(n, r), s = a && a.length > 0;
906
+ const wt = /* @__PURE__ */ o.forwardRef(function(t, n) {
907
+ var e = _(t, []);
908
+ const { overlayRef: r, snapPoints: a, onRelease: i, shouldFade: g, isOpen: d, modal: y, shouldAnimate: T } = he(), v = ut(n, r), s = a && a.length > 0;
909
909
  if (!y)
910
910
  return null;
911
911
  const u = o.useCallback((A) => i(A), [
912
912
  i
913
913
  ]);
914
- return /* @__PURE__ */ o.createElement(qe, E({
914
+ return /* @__PURE__ */ o.createElement(qt, E({
915
915
  onMouseUp: u,
916
916
  ref: v,
917
917
  "data-vaul-overlay": "",
918
918
  "data-vaul-snap-points": d && s ? "true" : "false",
919
919
  "data-vaul-snap-points-overlay": d && g ? "true" : "false",
920
920
  "data-vaul-animate": T != null && T.current ? "true" : "false"
921
- }, t));
921
+ }, e));
922
922
  });
923
- we.displayName = "Drawer.Overlay";
924
- const he = /* @__PURE__ */ o.forwardRef(function(i, a) {
925
- var g = i, { onPointerDownOutside: t, style: n, onOpenAutoFocus: e } = g, r = _(g, ["onPointerDownOutside", "style", "onOpenAutoFocus"]);
926
- const { drawerRef: d, onPress: y, onRelease: T, onDrag: v, keyboardIsOpen: s, snapPointsOffset: u, activeSnapPointIndex: A, modal: k, isOpen: O, direction: P, snapPoints: f, container: F, handleOnly: B, shouldAnimate: p, autoFocus: Y } = ht(), [Z, w] = o.useState(!1), R = ue(a, d), h = o.useRef(null), I = o.useRef(null), M = o.useRef(!1), q = f && f.length > 0;
927
- xn();
923
+ wt.displayName = "Drawer.Overlay";
924
+ const ht = /* @__PURE__ */ o.forwardRef(function(i, a) {
925
+ var g = i, { onPointerDownOutside: e, style: n, onOpenAutoFocus: t } = g, r = _(g, ["onPointerDownOutside", "style", "onOpenAutoFocus"]);
926
+ const { drawerRef: d, onPress: y, onRelease: T, onDrag: v, keyboardIsOpen: s, snapPointsOffset: u, activeSnapPointIndex: A, modal: k, isOpen: O, direction: P, snapPoints: f, container: F, handleOnly: B, shouldAnimate: p, autoFocus: Y } = he(), [Z, w] = o.useState(!1), x = ut(a, d), h = o.useRef(null), I = o.useRef(null), M = o.useRef(!1), q = f && f.length > 0;
927
+ Rn();
928
928
  const U = (c, X, L = 0) => {
929
929
  if (M.current) return !0;
930
- const V = Math.abs(c.y), G = Math.abs(c.x), at = G > V, gt = [
930
+ const V = Math.abs(c.y), G = Math.abs(c.x), ae = G > V, ge = [
931
931
  "bottom",
932
932
  "right"
933
933
  ].includes(X) ? 1 : -1;
934
934
  if (X === "left" || X === "right") {
935
- if (!(c.x * gt < 0) && G >= 0 && G <= L)
936
- return at;
937
- } else if (!(c.y * gt < 0) && V >= 0 && V <= L)
938
- return !at;
935
+ if (!(c.x * ge < 0) && G >= 0 && G <= L)
936
+ return ae;
937
+ } else if (!(c.y * ge < 0) && V >= 0 && V <= L)
938
+ return !ae;
939
939
  return M.current = !0, !0;
940
940
  };
941
941
  o.useEffect(() => {
@@ -943,10 +943,10 @@ const he = /* @__PURE__ */ o.forwardRef(function(i, a) {
943
943
  w(!0);
944
944
  });
945
945
  }, []);
946
- function tt(c) {
946
+ function ee(c) {
947
947
  h.current = null, M.current = !1, T(c);
948
948
  }
949
- return /* @__PURE__ */ o.createElement(Ye, j(E({
949
+ return /* @__PURE__ */ o.createElement(Yt, j(E({
950
950
  "data-vaul-drawer-direction": P,
951
951
  "data-vaul-drawer": "",
952
952
  "data-vaul-delayed-snap-points": Z ? "true" : "false",
@@ -954,7 +954,7 @@ const he = /* @__PURE__ */ o.forwardRef(function(i, a) {
954
954
  "data-vaul-custom-container": F ? "true" : "false",
955
955
  "data-vaul-animate": p != null && p.current ? "true" : "false"
956
956
  }, r), {
957
- ref: R,
957
+ ref: x,
958
958
  style: u && u.length > 0 ? E({
959
959
  "--snap-point-height": `${u[A != null ? A : 0]}px`
960
960
  }, n) : n,
@@ -965,10 +965,10 @@ const he = /* @__PURE__ */ o.forwardRef(function(i, a) {
965
965
  }, y(c));
966
966
  },
967
967
  onOpenAutoFocus: (c) => {
968
- e == null || e(c), Y || c.preventDefault();
968
+ t == null || t(c), Y || c.preventDefault();
969
969
  },
970
970
  onPointerDownOutside: (c) => {
971
- if (t == null || t(c), !k || c.defaultPrevented) {
971
+ if (e == null || e(c), !k || c.defaultPrevented) {
972
972
  c.preventDefault();
973
973
  return;
974
974
  }
@@ -992,17 +992,17 @@ const he = /* @__PURE__ */ o.forwardRef(function(i, a) {
992
992
  r.onPointerUp == null || r.onPointerUp.call(r, c), h.current = null, M.current = !1, T(c);
993
993
  },
994
994
  onPointerOut: (c) => {
995
- r.onPointerOut == null || r.onPointerOut.call(r, c), tt(I.current);
995
+ r.onPointerOut == null || r.onPointerOut.call(r, c), ee(I.current);
996
996
  },
997
997
  onContextMenu: (c) => {
998
- r.onContextMenu == null || r.onContextMenu.call(r, c), I.current && tt(I.current);
998
+ r.onContextMenu == null || r.onContextMenu.call(r, c), I.current && ee(I.current);
999
999
  }
1000
1000
  }));
1001
1001
  });
1002
- he.displayName = "Drawer.Content";
1002
+ ht.displayName = "Drawer.Content";
1003
1003
  const On = 250, Nn = 120, $n = /* @__PURE__ */ o.forwardRef(function(a, r) {
1004
- var i = a, { preventCycle: t = !1, children: n } = i, e = _(i, ["preventCycle", "children"]);
1005
- const { closeDrawer: g, isDragging: d, snapPoints: y, activeSnapPoint: T, setActiveSnapPoint: v, dismissible: s, handleOnly: u, isOpen: A, onPress: k, onDrag: O } = ht(), P = o.useRef(null), f = o.useRef(!1);
1004
+ var i = a, { preventCycle: e = !1, children: n } = i, t = _(i, ["preventCycle", "children"]);
1005
+ const { closeDrawer: g, isDragging: d, snapPoints: y, activeSnapPoint: T, setActiveSnapPoint: v, dismissible: s, handleOnly: u, isOpen: A, onPress: k, onDrag: O } = he(), P = o.useRef(null), f = o.useRef(!1);
1006
1006
  function F() {
1007
1007
  if (f.current) {
1008
1008
  Y();
@@ -1013,7 +1013,7 @@ const On = 250, Nn = 120, $n = /* @__PURE__ */ o.forwardRef(function(a, r) {
1013
1013
  }, Nn);
1014
1014
  }
1015
1015
  function B() {
1016
- if (d || t || f.current) {
1016
+ if (d || e || f.current) {
1017
1017
  Y();
1018
1018
  return;
1019
1019
  }
@@ -1027,8 +1027,8 @@ const On = 250, Nn = 120, $n = /* @__PURE__ */ o.forwardRef(function(a, r) {
1027
1027
  }
1028
1028
  const w = y.findIndex((h) => h === T);
1029
1029
  if (w === -1) return;
1030
- const R = y[w + 1];
1031
- v(R);
1030
+ const x = y[w + 1];
1031
+ v(x);
1032
1032
  }
1033
1033
  function p() {
1034
1034
  P.current = window.setTimeout(() => {
@@ -1052,86 +1052,86 @@ const On = 250, Nn = 120, $n = /* @__PURE__ */ o.forwardRef(function(a, r) {
1052
1052
  "data-vaul-drawer-visible": A ? "true" : "false",
1053
1053
  "data-vaul-handle": "",
1054
1054
  "aria-hidden": "true"
1055
- }, e), /* @__PURE__ */ o.createElement("span", {
1055
+ }, t), /* @__PURE__ */ o.createElement("span", {
1056
1056
  "data-vaul-handle-hitarea": "",
1057
1057
  "aria-hidden": "true"
1058
1058
  }, n));
1059
1059
  });
1060
1060
  $n.displayName = "Drawer.Handle";
1061
- function An(t) {
1062
- const n = ht(), a = t, { container: e = n.container } = a, r = _(a, ["container"]);
1063
- return /* @__PURE__ */ o.createElement(ze, E({
1064
- container: e
1061
+ function An(e) {
1062
+ const n = he(), a = e, { container: t = n.container } = a, r = _(a, ["container"]);
1063
+ return /* @__PURE__ */ o.createElement(zt, E({
1064
+ container: t
1065
1065
  }, r));
1066
1066
  }
1067
1067
  const Q = {
1068
1068
  Root: Cn,
1069
- Content: he,
1070
- Overlay: we,
1071
- Trigger: Be,
1069
+ Content: ht,
1070
+ Overlay: wt,
1071
+ Trigger: Bt,
1072
1072
  Portal: An,
1073
- Close: We,
1074
- Title: Ue,
1075
- Description: Ve
1076
- }, Mn = (e) => {
1077
- var r = e, { shouldScaleBackground: t = !0 } = r, n = _(r, ["shouldScaleBackground"]);
1078
- return /* @__PURE__ */ D(Q.Root, E({ shouldScaleBackground: t }, n));
1073
+ Close: Wt,
1074
+ Title: Ut,
1075
+ Description: Vt
1076
+ }, Mn = (t) => {
1077
+ var r = t, { shouldScaleBackground: e = !0 } = r, n = _(r, ["shouldScaleBackground"]);
1078
+ return /* @__PURE__ */ D(Q.Root, E({ shouldScaleBackground: e }, n));
1079
1079
  };
1080
1080
  Mn.displayName = "Drawer";
1081
- const dr = Q.Trigger, Hn = Q.Portal, re = Q.Close, In = Ct.forwardRef((r, e) => {
1082
- var a = r, { className: t } = a, n = _(a, ["className"]);
1081
+ const dr = Q.Trigger, Hn = Q.Portal, rt = Q.Close, In = Ce.forwardRef((r, t) => {
1082
+ var a = r, { className: e } = a, n = _(a, ["className"]);
1083
1083
  return /* @__PURE__ */ D(
1084
1084
  Q.Title,
1085
1085
  E({
1086
- ref: e,
1087
- className: oe("text-lg font-semibold leading-none tracking-tight", t)
1086
+ ref: t,
1087
+ className: ot("text-lg font-semibold leading-none tracking-tight", e)
1088
1088
  }, n)
1089
1089
  );
1090
1090
  });
1091
1091
  In.displayName = Q.Title.displayName;
1092
- const Ln = Ct.forwardRef((r, e) => {
1093
- var a = r, { className: t } = a, n = _(a, ["className"]);
1094
- return /* @__PURE__ */ D(Q.Description, E({ ref: e, className: oe("text-sm text-muted-foreground", t) }, n));
1092
+ const Ln = Ce.forwardRef((r, t) => {
1093
+ var a = r, { className: e } = a, n = _(a, ["className"]);
1094
+ return /* @__PURE__ */ D(Q.Description, E({ ref: t, className: ot("text-sm text-muted-foreground", e) }, n));
1095
1095
  });
1096
1096
  Ln.displayName = Q.Description.displayName;
1097
- const Pn = et({
1098
- base: "overflow-auto bg-secondary-bg",
1097
+ const Pn = te({
1098
+ base: "overflow-auto bg-secondary-bg py-3",
1099
1099
  slots: {
1100
1100
  // Грид с 1 ячейкой задается, чтобы корректно отображался скролл
1101
1101
  wrapper: "grid h-full grid-cols-1 grid-rows-1"
1102
1102
  }
1103
1103
  }), _n = o.forwardRef(
1104
1104
  (a, r) => {
1105
- var i = a, { className: t, children: n } = i, e = _(i, ["className", "children"]);
1105
+ var i = a, { className: e, children: n } = i, t = _(i, ["className", "children"]);
1106
1106
  const g = Pn();
1107
- return /* @__PURE__ */ D(Xe, j(E({ wrapperClassName: g.wrapper() }, e), { ref: r, children: /* @__PURE__ */ D("div", j(E({ className: g.base({ className: t }) }, e), { children: n })) }));
1107
+ return /* @__PURE__ */ D(Xt, j(E({ wrapperClassName: g.wrapper() }, t), { ref: r, children: /* @__PURE__ */ D("div", j(E({ className: g.base({ className: e }) }, t), { children: n })) }));
1108
1108
  }
1109
1109
  );
1110
1110
  _n.displayName = "DrawerBody";
1111
- const ge = o.forwardRef((a, r) => {
1112
- var i = a, { blur: t, type: n } = i, e = _(i, ["blur", "type"]);
1113
- return /* @__PURE__ */ D(Q.Overlay, E({ ref: r, className: Ke({ blur: t, type: n }) }, e));
1111
+ const gt = o.forwardRef((a, r) => {
1112
+ var i = a, { blur: e, type: n } = i, t = _(i, ["blur", "type"]);
1113
+ return /* @__PURE__ */ D(Q.Overlay, E({ ref: r, className: Kt({ blur: e, type: n }) }, t));
1114
1114
  });
1115
- ge.displayName = "DrawerOverlay";
1116
- const kn = et({
1115
+ gt.displayName = "DrawerOverlay";
1116
+ const kn = te({
1117
1117
  base: "fill-secondary-bg",
1118
1118
  slots: {
1119
1119
  handler: "fill-primary-border"
1120
1120
  }
1121
1121
  }), Fn = () => {
1122
- const t = kn();
1123
- return /* @__PURE__ */ it("svg", { className: t.base(), xmlns: "http://www.w3.org/2000/svg", width: "80", height: "12", viewBox: "0 0 80 12", children: [
1122
+ const e = kn();
1123
+ return /* @__PURE__ */ ie("svg", { className: e.base(), xmlns: "http://www.w3.org/2000/svg", width: "80", height: "12", viewBox: "0 0 80 12", children: [
1124
1124
  /* @__PURE__ */ D("path", { d: "M-0.5 12H22C19.1257 12 16.1864 10.9008 14.7634 8.71571L11.389 3.53429C9.96593 1.34918 7.31256 0 4.43829 0H-0.5V12Z" }),
1125
1125
  /* @__PURE__ */ D("path", { d: "M59 12H80.5V0H76.5562C73.6819 0 71.0285 1.34918 69.6055 3.53429L66.2311 8.71571C64.808 10.9008 61.8743 12 59 12Z" }),
1126
1126
  /* @__PURE__ */ D(
1127
1127
  "path",
1128
1128
  {
1129
- className: t.handler(),
1129
+ className: e.handler(),
1130
1130
  d: "M27 0C25.067 0 23.5 1.37113 23.5 3.0625C23.5 4.75387 25.067 6.125 27 6.125H54C55.933 6.125 57.5 4.75387 57.5 3.0625C57.5 1.37113 55.933 0 54 0H27Z"
1131
1131
  }
1132
1132
  )
1133
1133
  ] });
1134
- }, Bn = et({ base: "flex flex-row" }), ae = et({
1134
+ }, Bn = te({ base: "flex flex-row" }), at = te({
1135
1135
  base: "h-3 flex-1 bg-secondary-bg",
1136
1136
  variants: {
1137
1137
  position: {
@@ -1139,53 +1139,54 @@ const kn = et({
1139
1139
  right: "rounded-tr-2xl"
1140
1140
  }
1141
1141
  }
1142
- }), ve = Ct.forwardRef(
1143
- (r, e) => {
1144
- var a = r, { className: t } = a, n = _(a, ["className"]);
1145
- return /* @__PURE__ */ it("div", j(E({ ref: e, className: Bn({ className: t }) }, n), { children: [
1146
- /* @__PURE__ */ D("div", { className: ae({ position: "left" }) }),
1142
+ }), vt = Ce.forwardRef(
1143
+ (r, t) => {
1144
+ var a = r, { className: e } = a, n = _(a, ["className"]);
1145
+ return /* @__PURE__ */ ie("div", j(E({ ref: t, className: Bn({ className: e }) }, n), { children: [
1146
+ /* @__PURE__ */ D("div", { className: at({ position: "left" }) }),
1147
1147
  /* @__PURE__ */ D(Fn, {}),
1148
- /* @__PURE__ */ D("div", { className: ae({ position: "right" }) })
1148
+ /* @__PURE__ */ D("div", { className: at({ position: "right" }) })
1149
1149
  ] }));
1150
1150
  }
1151
1151
  );
1152
- ve.displayName = "DrawerHandler";
1153
- const Wn = et({
1152
+ vt.displayName = "DrawerHandler";
1153
+ const Wn = te({
1154
1154
  base: "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[calc(100vh-44px)] flex-col rounded-t-2xl after:!bg-secondary-bg"
1155
1155
  }), zn = o.forwardRef((g, i) => {
1156
- var d = g, { className: t, children: n, overlayBlur: e, overlayType: r } = d, a = _(d, ["className", "children", "overlayBlur", "overlayType"]);
1157
- return /* @__PURE__ */ D(Hn, { children: /* @__PURE__ */ it(Ze, { children: [
1158
- /* @__PURE__ */ D(ge, { blur: e, type: r }),
1159
- /* @__PURE__ */ it(Q.Content, j(E({ ref: i, className: Wn({ className: t }) }, a), { children: [
1160
- /* @__PURE__ */ D(ve, {}),
1156
+ var d = g, { className: e, children: n, overlayBlur: t, overlayType: r } = d, a = _(d, ["className", "children", "overlayBlur", "overlayType"]);
1157
+ return /* @__PURE__ */ D(Hn, { children: /* @__PURE__ */ ie(Zt, { children: [
1158
+ /* @__PURE__ */ D(gt, { blur: t, type: r }),
1159
+ /* @__PURE__ */ ie(Q.Content, j(E({ ref: i, className: Wn({ className: e }) }, a), { children: [
1160
+ /* @__PURE__ */ D(vt, {}),
1161
1161
  n
1162
1162
  ] }))
1163
1163
  ] }) });
1164
1164
  });
1165
1165
  zn.displayName = "DrawerContent";
1166
- const Un = et({
1166
+ const Un = te({
1167
1167
  base: "mt-auto flex flex-col gap-2 bg-secondary-bg p-4"
1168
- }), ye = o.forwardRef(
1169
- (r, e) => {
1170
- var a = r, { className: t } = a, n = _(a, ["className"]);
1171
- return /* @__PURE__ */ D("div", E({ ref: e, className: Un({ className: t }) }, n));
1168
+ }), yt = o.forwardRef(
1169
+ (r, t) => {
1170
+ var a = r, { className: e } = a, n = _(a, ["className"]);
1171
+ return /* @__PURE__ */ D("div", E({ ref: t, className: Un({ className: e }) }, n));
1172
1172
  }
1173
1173
  );
1174
- ye.displayName = "DrawerFooter";
1175
- const Vn = et({
1174
+ yt.displayName = "DrawerFooter";
1175
+ const Vn = te({
1176
1176
  base: "grid gap-1.5 bg-secondary-bg p-4 text-center sm:text-left"
1177
- }), be = o.forwardRef(
1178
- (r, e) => {
1179
- var a = r, { className: t } = a, n = _(a, ["className"]);
1180
- return /* @__PURE__ */ D("div", E({ ref: e, className: Vn({ className: t }) }, n));
1177
+ }), bt = o.forwardRef(
1178
+ (r, t) => {
1179
+ var a = r, { className: e } = a, n = _(a, ["className"]);
1180
+ return /* @__PURE__ */ D("div", E({ ref: t, className: Vn({ className: e }) }, n));
1181
1181
  }
1182
1182
  );
1183
- be.displayName = "DrawerHeader";
1184
- const jn = et({
1183
+ bt.displayName = "DrawerHeader";
1184
+ const jn = te({
1185
1185
  base: "flex flex-col items-start gap-3 py-3",
1186
1186
  slots: {
1187
1187
  buttonWrapper: "flex w-full items-start gap-3",
1188
- button: "px-8 py-3"
1188
+ button: "px-8 py-3",
1189
+ checkbox: "py-1"
1189
1190
  },
1190
1191
  variants: {
1191
1192
  position: {
@@ -1202,9 +1203,9 @@ const jn = et({
1202
1203
  }), Yn = o.forwardRef(
1203
1204
  (v, T) => {
1204
1205
  var s = v, {
1205
- className: t,
1206
+ className: e,
1206
1207
  primaryButton: n,
1207
- primaryButtonProps: e,
1208
+ primaryButtonProps: t,
1208
1209
  secondaryButton: r,
1209
1210
  secondaryButtonProps: a,
1210
1211
  checkboxLabel: i,
@@ -1220,33 +1221,35 @@ const jn = et({
1220
1221
  "checkboxProps",
1221
1222
  "position"
1222
1223
  ]);
1223
- const u = jn({ className: t, position: d }), A = n && /* @__PURE__ */ D(
1224
- Et,
1224
+ const u = jn({ className: e, position: d }), A = n && /* @__PURE__ */ D(
1225
+ Ee,
1225
1226
  j(E({
1226
- variant: "primary"
1227
- }, e), {
1228
- className: u.button({ className: e == null ? void 0 : e.className }),
1227
+ variant: "primary",
1228
+ size: "xl"
1229
+ }, t), {
1230
+ className: u.button({ className: t == null ? void 0 : t.className }),
1229
1231
  children: n
1230
1232
  }),
1231
1233
  "primary-button"
1232
1234
  ), k = r && /* @__PURE__ */ D(
1233
- Et,
1235
+ Ee,
1234
1236
  j(E({
1235
- variant: "outline"
1237
+ variant: "outline",
1238
+ size: "xl"
1236
1239
  }, a), {
1237
1240
  className: u.button({ className: a == null ? void 0 : a.className }),
1238
1241
  children: r
1239
1242
  }),
1240
1243
  "secondary-button"
1241
1244
  ), O = n || r;
1242
- return /* @__PURE__ */ it(ye, j(E({ ref: T, className: u.base() }, y), { children: [
1243
- i && /* @__PURE__ */ D(Ge, E({ label: i }, g)),
1245
+ return /* @__PURE__ */ ie(yt, j(E({ ref: T, className: u.base() }, y), { children: [
1246
+ i && /* @__PURE__ */ D(Gt, E({ className: u.checkbox(), label: i }, g)),
1244
1247
  O && /* @__PURE__ */ D("div", { className: u.buttonWrapper(), children: d === "vertical" ? [A, k] : [k, A] })
1245
1248
  ] }));
1246
1249
  }
1247
1250
  );
1248
1251
  Yn.displayName = "DrawerFooterTemplate";
1249
- const qn = et({
1252
+ const qn = te({
1250
1253
  base: "flex flex-row items-start gap-1 p-0 pr-1",
1251
1254
  variants: {
1252
1255
  hasBackButton: {
@@ -1261,15 +1264,15 @@ const qn = et({
1261
1264
  }
1262
1265
  }), Xn = o.forwardRef(
1263
1266
  (T, y) => {
1264
- var v = T, { className: t, description: n, title: e, showBackButton: r, backButtonProps: a, showCloseButton: i, closeButtonProps: g } = v, d = _(v, ["className", "description", "title", "showBackButton", "backButtonProps", "showCloseButton", "closeButtonProps"]);
1265
- const s = qn({ className: t, hasBackButton: !!r });
1266
- return /* @__PURE__ */ it(be, j(E({ ref: y, className: s.base() }, d), { children: [
1267
- r !== !1 && /* @__PURE__ */ D(re, { asChild: !0, children: /* @__PURE__ */ D(Et, j(E({ size: "xl", variant: "text", className: s.button() }, a), { children: /* @__PURE__ */ D(Jt, { icon: nn, size: "lg" }) })) }),
1268
- /* @__PURE__ */ it("div", { className: s.titleWrapper(), children: [
1269
- /* @__PURE__ */ D(Je, { className: s.label(), children: e }),
1270
- /* @__PURE__ */ D(Qe, { children: n })
1267
+ var v = T, { className: e, description: n, title: t, showBackButton: r, backButtonProps: a, showCloseButton: i, closeButtonProps: g } = v, d = _(v, ["className", "description", "title", "showBackButton", "backButtonProps", "showCloseButton", "closeButtonProps"]);
1268
+ const s = qn({ className: e, hasBackButton: !!r });
1269
+ return /* @__PURE__ */ ie(bt, j(E({ ref: y, className: s.base() }, d), { children: [
1270
+ r !== !1 && /* @__PURE__ */ D(rt, { asChild: !0, children: /* @__PURE__ */ D(Ee, j(E({ size: "xl", variant: "text", className: s.button() }, a), { children: /* @__PURE__ */ D(Je, { icon: nn, size: "lg" }) })) }),
1271
+ /* @__PURE__ */ ie("div", { className: s.titleWrapper(), children: [
1272
+ /* @__PURE__ */ D(Jt, { className: s.label(), children: t }),
1273
+ /* @__PURE__ */ D(Qt, { children: n })
1271
1274
  ] }),
1272
- i !== !1 && /* @__PURE__ */ D(re, { asChild: !0, children: /* @__PURE__ */ D(Et, j(E({ size: "xl", variant: "text", className: s.button() }, g), { children: /* @__PURE__ */ D(Jt, { icon: en, size: "lg" }) })) })
1275
+ i !== !1 && /* @__PURE__ */ D(rt, { asChild: !0, children: /* @__PURE__ */ D(Ee, j(E({ size: "xl", variant: "text", className: s.button() }, g), { children: /* @__PURE__ */ D(Je, { icon: tn, size: "lg" }) })) })
1273
1276
  ] }));
1274
1277
  }
1275
1278
  );
@@ -1277,15 +1280,15 @@ Xn.displayName = "DrawerHeaderTemplate";
1277
1280
  export {
1278
1281
  Mn as Drawer,
1279
1282
  _n as DrawerBody,
1280
- re as DrawerClose,
1283
+ rt as DrawerClose,
1281
1284
  zn as DrawerContent,
1282
1285
  Ln as DrawerDescription,
1283
- ye as DrawerFooter,
1286
+ yt as DrawerFooter,
1284
1287
  Yn as DrawerFooterTemplate,
1285
- ve as DrawerHandler,
1286
- be as DrawerHeader,
1288
+ vt as DrawerHandler,
1289
+ bt as DrawerHeader,
1287
1290
  Xn as DrawerHeaderTemplate,
1288
- ge as DrawerOverlay,
1291
+ gt as DrawerOverlay,
1289
1292
  Hn as DrawerPortal,
1290
1293
  In as DrawerTitle,
1291
1294
  dr as DrawerTrigger