zudoku 0.0.0-fb7d300 → 0.0.0-fc5c03b

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 (267) hide show
  1. package/client.d.ts +7 -0
  2. package/dist/app/entry.client.d.ts +1 -0
  3. package/dist/app/entry.client.js +13 -0
  4. package/dist/app/entry.client.js.map +1 -1
  5. package/dist/app/entry.server.d.ts +1 -0
  6. package/dist/app/entry.server.js +1 -0
  7. package/dist/app/entry.server.js.map +1 -1
  8. package/dist/app/main.js +2 -1
  9. package/dist/app/main.js.map +1 -1
  10. package/dist/app/sentry.d.ts +3 -0
  11. package/dist/app/sentry.js +19 -0
  12. package/dist/app/sentry.js.map +1 -0
  13. package/dist/app/tailwind.d.ts +2 -1
  14. package/dist/app/tailwind.js +64 -52
  15. package/dist/app/tailwind.js.map +1 -1
  16. package/dist/cli/cli.js +0 -2
  17. package/dist/cli/cli.js.map +1 -1
  18. package/dist/cli/common/logger.js +9 -0
  19. package/dist/cli/common/logger.js.map +1 -1
  20. package/dist/cli/common/outdated.js +2 -1
  21. package/dist/cli/common/outdated.js.map +1 -1
  22. package/dist/config/common.d.ts +8 -0
  23. package/dist/config/common.js +2 -0
  24. package/dist/config/common.js.map +1 -0
  25. package/dist/config/config.d.ts +3 -2
  26. package/dist/config/loader.d.ts +20 -0
  27. package/dist/config/loader.js +154 -0
  28. package/dist/config/loader.js.map +1 -0
  29. package/dist/config/validators/InputSidebarSchema.d.ts +14 -13
  30. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  31. package/dist/config/validators/common.d.ts +4911 -0
  32. package/dist/config/validators/common.js +276 -0
  33. package/dist/config/validators/common.js.map +1 -0
  34. package/dist/config/validators/icon-types.d.ts +1 -0
  35. package/dist/config/validators/icon-types.js +2 -0
  36. package/dist/config/validators/icon-types.js.map +1 -0
  37. package/dist/config/validators/validate.d.ts +777 -521
  38. package/dist/config/validators/validate.js +9 -228
  39. package/dist/config/validators/validate.js.map +1 -1
  40. package/dist/lib/authentication/providers/openid.js +7 -2
  41. package/dist/lib/authentication/providers/openid.js.map +1 -1
  42. package/dist/lib/components/Heading.d.ts +4 -4
  43. package/dist/lib/components/Heading.js +1 -1
  44. package/dist/lib/components/Heading.js.map +1 -1
  45. package/dist/lib/components/Layout.js +3 -2
  46. package/dist/lib/components/Layout.js.map +1 -1
  47. package/dist/lib/components/Markdown.js +1 -1
  48. package/dist/lib/components/Markdown.js.map +1 -1
  49. package/dist/lib/components/MobileTopNavigation.js +1 -1
  50. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  51. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  52. package/dist/lib/components/ReactMarkdown.js +182 -0
  53. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  54. package/dist/lib/components/Search.d.ts +3 -1
  55. package/dist/lib/components/Search.js +3 -3
  56. package/dist/lib/components/Search.js.map +1 -1
  57. package/dist/lib/components/SyntaxHighlight.js +0 -4
  58. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  59. package/dist/lib/components/TopNavigation.d.ts +1 -1
  60. package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
  61. package/dist/lib/components/navigation/Sidebar.js +2 -2
  62. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  63. package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
  64. package/dist/lib/components/navigation/SidebarCategory.js +3 -4
  65. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  66. package/dist/lib/components/navigation/SidebarItem.d.ts +2 -4
  67. package/dist/lib/components/navigation/SidebarItem.js +5 -10
  68. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  69. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  70. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  71. package/dist/lib/core/ZudokuContext.d.ts +1 -1
  72. package/dist/lib/oas/graphql/index.js +4 -1
  73. package/dist/lib/oas/graphql/index.js.map +1 -1
  74. package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
  75. package/dist/lib/oas/parser/upgrade/index.js +3 -20
  76. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  77. package/dist/lib/plugins/api-catalog/Catalog.d.ts +6 -0
  78. package/dist/lib/plugins/api-catalog/Catalog.js +29 -0
  79. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  80. package/dist/lib/plugins/api-catalog/index.d.ts +23 -0
  81. package/dist/lib/plugins/api-catalog/index.js +15 -0
  82. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  83. package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -1
  84. package/dist/lib/plugins/markdown/MdxPage.js +15 -2
  85. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  86. package/dist/lib/plugins/markdown/index.d.ts +2 -1
  87. package/dist/lib/plugins/markdown/index.js +1 -1
  88. package/dist/lib/plugins/markdown/index.js.map +1 -1
  89. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  90. package/dist/lib/plugins/openapi/OperationList.js +47 -2
  91. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  92. package/dist/lib/plugins/openapi/client/GraphQLClient.js +12 -0
  93. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
  94. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +1 -1
  95. package/dist/lib/plugins/openapi/client/useCreateQuery.js +4 -2
  96. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
  97. package/dist/lib/plugins/openapi/graphql/gql.d.ts +1 -1
  98. package/dist/lib/plugins/openapi/graphql/gql.js +1 -1
  99. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  100. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +2 -0
  101. package/dist/lib/plugins/openapi/graphql/graphql.js +1 -0
  102. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  103. package/dist/lib/plugins/openapi/interfaces.d.ts +1 -1
  104. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
  105. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  106. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +6 -0
  107. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +14 -0
  108. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -0
  109. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.d.ts +1 -0
  110. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +125 -0
  111. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -0
  112. package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +11 -0
  113. package/dist/lib/plugins/openapi/post-processors/removePaths.js +33 -0
  114. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +1 -0
  115. package/dist/lib/plugins/openapi/post-processors/removePaths.test.d.ts +1 -0
  116. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +104 -0
  117. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +1 -0
  118. package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +1 -0
  119. package/dist/lib/plugins/openapi/post-processors/traverse.js +2 -0
  120. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +1 -0
  121. package/dist/lib/plugins/redirect/index.d.ts +1 -1
  122. package/dist/lib/ui/Button.d.ts +1 -1
  123. package/dist/lib/ui/Command.d.ts +1 -1
  124. package/dist/lib/util/MdxComponents.d.ts +2 -3
  125. package/dist/lib/util/MdxComponents.js.map +1 -1
  126. package/dist/lib/util/traverse.d.ts +2 -0
  127. package/dist/lib/util/traverse.js +18 -0
  128. package/dist/lib/util/traverse.js.map +1 -0
  129. package/dist/vite/build.js +15 -3
  130. package/dist/vite/build.js.map +1 -1
  131. package/dist/vite/config.d.ts +6 -4
  132. package/dist/vite/config.js +54 -15
  133. package/dist/vite/config.js.map +1 -1
  134. package/dist/vite/config.test.js +7 -5
  135. package/dist/vite/config.test.js.map +1 -1
  136. package/dist/vite/dev-server.js +12 -3
  137. package/dist/vite/dev-server.js.map +1 -1
  138. package/dist/vite/output.d.ts +1 -1
  139. package/dist/vite/output.js +39 -10
  140. package/dist/vite/output.js.map +1 -1
  141. package/dist/vite/plugin-api.js +67 -20
  142. package/dist/vite/plugin-api.js.map +1 -1
  143. package/dist/vite/plugin-component.js +15 -19
  144. package/dist/vite/plugin-component.js.map +1 -1
  145. package/dist/vite/plugin-config-reload.d.ts +1 -2
  146. package/dist/vite/plugin-config-reload.js.map +1 -1
  147. package/dist/vite/plugin-config.js +20 -0
  148. package/dist/vite/plugin-config.js.map +1 -1
  149. package/dist/vite/plugin-docs.test.js +15 -23
  150. package/dist/vite/plugin-docs.test.js.map +1 -1
  151. package/dist/vite/plugin-mdx.js +58 -4
  152. package/dist/vite/plugin-mdx.js.map +1 -1
  153. package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +2 -2
  154. package/dist/vite/{plugin-custom-css.js → plugin-theme-css.js} +10 -3
  155. package/dist/vite/plugin-theme-css.js.map +1 -0
  156. package/dist/vite/plugin.d.ts +1 -2
  157. package/dist/vite/plugin.js +2 -2
  158. package/dist/vite/plugin.js.map +1 -1
  159. package/dist/vite/prerender.d.ts +2 -1
  160. package/dist/vite/prerender.js +2 -2
  161. package/dist/vite/prerender.js.map +1 -1
  162. package/dist/vite/sitemap.d.ts +1 -1
  163. package/dist/zuplo/env.d.ts +6 -0
  164. package/dist/zuplo/env.js +9 -0
  165. package/dist/zuplo/env.js.map +1 -0
  166. package/dist/zuplo/with-zuplo.d.ts +3 -0
  167. package/dist/zuplo/with-zuplo.js +28 -0
  168. package/dist/zuplo/with-zuplo.js.map +1 -0
  169. package/lib/AnchorLink-BR0MvI7n.js +35 -0
  170. package/lib/AnchorLink-BR0MvI7n.js.map +1 -0
  171. package/lib/{Markdown-ievDDhFT.js → Markdown-CRsmPPfY.js} +13084 -13096
  172. package/lib/Markdown-CRsmPPfY.js.map +1 -0
  173. package/lib/MdxPage-Wp8QU0-q.js +188 -0
  174. package/lib/MdxPage-Wp8QU0-q.js.map +1 -0
  175. package/lib/{OperationList-BwBl1xrD.js → OperationList-u8xHU9-b.js} +1031 -1016
  176. package/lib/OperationList-u8xHU9-b.js.map +1 -0
  177. package/lib/{SlotletProvider-DyomlzGx.js → SlotletProvider-BgvYIPQe.js} +2 -2
  178. package/lib/{SlotletProvider-DyomlzGx.js.map → SlotletProvider-BgvYIPQe.js.map} +1 -1
  179. package/lib/{SyntaxHighlight-DkLOsjHS.js → SyntaxHighlight-C31iouiO.js} +1 -3
  180. package/lib/{SyntaxHighlight-DkLOsjHS.js.map → SyntaxHighlight-C31iouiO.js.map} +1 -1
  181. package/lib/assets/{worker-CPsGZsve.js → worker-C_2va8B8.js} +8 -9
  182. package/lib/assets/worker-C_2va8B8.js.map +1 -0
  183. package/lib/{createServer-DK-g7kbB.js → createServer-BCAHdrpE.js} +4461 -5248
  184. package/lib/createServer-BCAHdrpE.js.map +1 -0
  185. package/lib/{index-DNxQ_rCt.js → index-CmdLGbbk.js} +53 -47
  186. package/lib/index-CmdLGbbk.js.map +1 -0
  187. package/lib/{AnchorLink-CDlhr8gL.js → index.esm-Bm8pj-bc.js} +223 -254
  188. package/lib/index.esm-Bm8pj-bc.js.map +1 -0
  189. package/lib/object_hash-CvlLgU-M.js +785 -0
  190. package/lib/object_hash-CvlLgU-M.js.map +1 -0
  191. package/lib/post-processors/removeExtensions.js +11 -0
  192. package/lib/post-processors/removeExtensions.js.map +1 -0
  193. package/lib/post-processors/removePaths.js +28 -0
  194. package/lib/post-processors/removePaths.js.map +1 -0
  195. package/lib/post-processors/traverse.js +12 -0
  196. package/lib/post-processors/traverse.js.map +1 -0
  197. package/lib/ui/Drawer.js +79 -79
  198. package/lib/ui/Drawer.js.map +1 -1
  199. package/lib/zudoku.auth-openid.js +42 -37
  200. package/lib/zudoku.auth-openid.js.map +1 -1
  201. package/lib/zudoku.components.js +386 -367
  202. package/lib/zudoku.components.js.map +1 -1
  203. package/lib/zudoku.openapi-worker.js +1 -1
  204. package/lib/zudoku.plugin-api-catalog.js +121 -0
  205. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  206. package/lib/zudoku.plugin-api-keys.js +1 -1
  207. package/lib/zudoku.plugin-custom-pages.js +1 -1
  208. package/lib/zudoku.plugin-markdown.js +15 -14
  209. package/lib/zudoku.plugin-markdown.js.map +1 -1
  210. package/lib/zudoku.plugin-openapi.js +1 -1
  211. package/lib/zudoku.plugin-redirect.js.map +1 -1
  212. package/package.json +32 -9
  213. package/src/app/entry.client.tsx +15 -0
  214. package/src/app/entry.server.tsx +1 -0
  215. package/src/app/main.tsx +5 -1
  216. package/src/app/sentry.ts +24 -0
  217. package/src/app/tailwind.ts +67 -52
  218. package/src/lib/authentication/providers/openid.tsx +7 -2
  219. package/src/lib/components/Heading.tsx +13 -13
  220. package/src/lib/components/Layout.tsx +8 -3
  221. package/src/lib/components/Markdown.tsx +1 -1
  222. package/src/lib/components/MobileTopNavigation.tsx +18 -18
  223. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  224. package/src/lib/components/ReactMarkdown.tsx +264 -0
  225. package/src/lib/components/Search.tsx +3 -3
  226. package/src/lib/components/SyntaxHighlight.tsx +0 -4
  227. package/src/lib/components/TopNavigation.tsx +1 -1
  228. package/src/lib/components/navigation/Sidebar.tsx +18 -8
  229. package/src/lib/components/navigation/SidebarCategory.tsx +10 -9
  230. package/src/lib/components/navigation/SidebarItem.tsx +10 -13
  231. package/src/lib/components/navigation/SidebarWrapper.tsx +1 -1
  232. package/src/lib/core/ZudokuContext.ts +1 -1
  233. package/src/lib/oas/graphql/index.ts +4 -1
  234. package/src/lib/oas/parser/upgrade/index.ts +4 -27
  235. package/src/lib/plugins/api-catalog/Catalog.tsx +124 -0
  236. package/src/lib/plugins/api-catalog/index.tsx +50 -0
  237. package/src/lib/plugins/markdown/MdxPage.tsx +27 -1
  238. package/src/lib/plugins/markdown/index.tsx +3 -1
  239. package/src/lib/plugins/markdown/resolver.ts +2 -4
  240. package/src/lib/plugins/openapi/OperationList.tsx +64 -3
  241. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +17 -0
  242. package/src/lib/plugins/openapi/client/useCreateQuery.ts +5 -2
  243. package/src/lib/plugins/openapi/graphql/gql.ts +2 -2
  244. package/src/lib/plugins/openapi/graphql/graphql.ts +3 -0
  245. package/src/lib/plugins/openapi/interfaces.ts +1 -1
  246. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -0
  247. package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +144 -0
  248. package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +24 -0
  249. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +126 -0
  250. package/src/lib/plugins/openapi/post-processors/removePaths.ts +55 -0
  251. package/src/lib/plugins/openapi/post-processors/traverse.ts +1 -0
  252. package/src/lib/plugins/redirect/index.tsx +1 -1
  253. package/src/lib/util/MdxComponents.tsx +2 -5
  254. package/src/lib/util/traverse.ts +25 -0
  255. package/dist/vite/plugin-custom-css.js.map +0 -1
  256. package/lib/AnchorLink-CDlhr8gL.js.map +0 -1
  257. package/lib/Markdown-ievDDhFT.js.map +0 -1
  258. package/lib/MdxPage-Bwn-VSsH.js +0 -174
  259. package/lib/MdxPage-Bwn-VSsH.js.map +0 -1
  260. package/lib/OperationList-BwBl1xrD.js.map +0 -1
  261. package/lib/assets/worker-CPsGZsve.js.map +0 -1
  262. package/lib/createServer-DK-g7kbB.js.map +0 -1
  263. package/lib/index-DNxQ_rCt.js.map +0 -1
  264. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  265. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  266. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  267. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
package/lib/ui/Drawer.js CHANGED
@@ -206,7 +206,7 @@ function Gt(...t) {
206
206
  return wt.useCallback(He(...t), t);
207
207
  }
208
208
  const Jt = /* @__PURE__ */ new WeakMap();
209
- function C(t, n, e = !1) {
209
+ function $(t, n, e = !1) {
210
210
  if (!t || !(t instanceof HTMLElement)) return;
211
211
  let a = {};
212
212
  Object.entries(n).forEach(([i, o]) => {
@@ -222,7 +222,7 @@ function ke(t, n) {
222
222
  let e = Jt.get(t);
223
223
  e && (t.style[n] = e[n]);
224
224
  }
225
- const $ = (t) => {
225
+ const C = (t) => {
226
226
  switch (t) {
227
227
  case "top":
228
228
  case "bottom":
@@ -242,7 +242,7 @@ function bt(t, n) {
242
242
  e.transform || e.webkitTransform || e.mozTransform
243
243
  );
244
244
  let i = a.match(/^matrix3d\((.+)\)$/);
245
- return i ? parseFloat(i[1].split(", ")[$(n) ? 13 : 12]) : (i = a.match(/^matrix\((.+)\)$/), i ? parseFloat(i[1].split(", ")[$(n) ? 5 : 4]) : null);
245
+ return i ? parseFloat(i[1].split(", ")[C(n) ? 13 : 12]) : (i = a.match(/^matrix\((.+)\)$/), i ? parseFloat(i[1].split(", ")[C(n) ? 5 : 4]) : null);
246
246
  }
247
247
  function Le(t) {
248
248
  return 8 * (Math.log(t + 1) - 2);
@@ -350,7 +350,7 @@ function We({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
350
350
  return (b = e == null ? void 0 : e.map((y) => {
351
351
  const I = typeof y == "string";
352
352
  let M = 0;
353
- if (I && (M = parseInt(y, 10)), $(m)) {
353
+ if (I && (M = parseInt(y, 10)), C(m)) {
354
354
  const l = I ? M : w ? y * u.height : 0;
355
355
  return w ? m === "bottom" ? u.height - l : -u.height + l : l;
356
356
  }
@@ -367,13 +367,13 @@ function We({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
367
367
  ]), A = r.useCallback((u) => {
368
368
  var b;
369
369
  const y = (b = h == null ? void 0 : h.findIndex((I) => I === u)) != null ? b : null;
370
- f(y), C(a.current, {
370
+ f(y), $(a.current, {
371
371
  transition: `transform ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
372
- transform: $(m) ? `translate3d(0, ${u}px, 0)` : `translate3d(${u}px, 0, 0)`
373
- }), h && y !== h.length - 1 && o !== void 0 && y !== o && y < o ? C(i.current, {
372
+ transform: C(m) ? `translate3d(0, ${u}px, 0)` : `translate3d(${u}px, 0, 0)`
373
+ }), h && y !== h.length - 1 && o !== void 0 && y !== o && y < o ? $(i.current, {
374
374
  transition: `opacity ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
375
375
  opacity: "0"
376
- }) : C(i.current, {
376
+ }) : $(i.current, {
377
377
  transition: `opacity ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
378
378
  opacity: "1"
379
379
  }), p(e == null ? void 0 : e[Math.max(y, 0)]);
@@ -398,10 +398,10 @@ function We({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
398
398
  h,
399
399
  A
400
400
  ]);
401
- function d({ draggedDistance: u, closeDrawer: b, velocity: y, dismissible: I }) {
401
+ function c({ draggedDistance: u, closeDrawer: b, velocity: y, dismissible: I }) {
402
402
  if (o === void 0) return;
403
403
  const M = m === "bottom" || m === "right" ? (N ?? 0) - u : (N ?? 0) + u, j = E === o - 1, l = E === 0, U = u > 0;
404
- if (j && C(i.current, {
404
+ if (j && $(i.current, {
405
405
  transition: `opacity ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`
406
406
  }), !T && y > 2 && !U) {
407
407
  I ? b() : A(h[0]);
@@ -411,7 +411,7 @@ function We({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
411
411
  A(h[e.length - 1]);
412
412
  return;
413
413
  }
414
- const _ = h == null ? void 0 : h.reduce((P, K) => typeof P != "number" || typeof K != "number" ? P : Math.abs(K - M) < Math.abs(P - M) ? K : P), W = $(m) ? window.innerHeight : window.innerWidth;
414
+ const _ = h == null ? void 0 : h.reduce((P, K) => typeof P != "number" || typeof K != "number" ? P : Math.abs(K - M) < Math.abs(P - M) ? K : P), W = C(m) ? window.innerHeight : window.innerWidth;
415
415
  if (y > Qt && Math.abs(u) < W * 0.4) {
416
416
  const P = U ? 1 : -1;
417
417
  if (P > 0 && k && e) {
@@ -427,8 +427,8 @@ function We({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
427
427
  function Y({ draggedDistance: u }) {
428
428
  if (N === null) return;
429
429
  const b = m === "bottom" || m === "right" ? N - u : N + u;
430
- (m === "bottom" || m === "right") && b < h[h.length - 1] || (m === "top" || m === "left") && b > h[h.length - 1] || C(a.current, {
431
- transform: $(m) ? `translate3d(0, ${b}px, 0)` : `translate3d(${b}px, 0, 0)`
430
+ (m === "bottom" || m === "right") && b < h[h.length - 1] || (m === "top" || m === "left") && b > h[h.length - 1] || $(a.current, {
431
+ transform: C(m) ? `translate3d(0, ${b}px, 0)` : `translate3d(${b}px, 0, 0)`
432
432
  });
433
433
  }
434
434
  function tt(u, b) {
@@ -448,7 +448,7 @@ function We({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
448
448
  getPercentageDragged: tt,
449
449
  setActiveSnapPoint: p,
450
450
  activeSnapPointIndex: E,
451
- onRelease: d,
451
+ onRelease: c,
452
452
  onDrag: Y,
453
453
  snapPointsOffset: h
454
454
  };
@@ -468,7 +468,7 @@ function Ve() {
468
468
  Be(a && !i ? Ct(document.body, {
469
469
  background: "black"
470
470
  }) : ze, Ct(R, {
471
- transformOrigin: $(t) ? "top" : "left",
471
+ transformOrigin: C(t) ? "top" : "left",
472
472
  transitionProperty: "transform, border-radius",
473
473
  transitionDuration: `${x.DURATION}s`,
474
474
  transitionTimingFunction: `cubic-bezier(${x.EASE.join(",")})`
@@ -476,7 +476,7 @@ function Ve() {
476
476
  const T = Ct(R, {
477
477
  borderRadius: `${Zt}px`,
478
478
  overflow: "hidden",
479
- ...$(t) ? {
479
+ ...C(t) ? {
480
480
  transform: `scale(${m()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
481
481
  } : {
482
482
  transform: `scale(${m()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`
@@ -563,7 +563,7 @@ function Ye({ isOpen: t, modal: n, nested: e, hasBeenOpened: a, preventScrollRes
563
563
  restorePositionSetting: g
564
564
  };
565
565
  }
566
- function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, snapPoints: o, shouldScaleBackground: f = !1, setBackgroundColorOnScale: m = !0, closeThreshold: R = Fe, scrollLockTimeout: T = Ue, dismissible: g = !0, handleOnly: p = !1, fadeFromIndex: w = o && o.length - 1, activeSnapPoint: B, setActiveSnapPoint: k, fixed: E, modal: F = !0, onClose: h, nested: N, noBodyStyles: A = !1, direction: d = "bottom", defaultOpen: Y = !1, disablePreventScroll: tt = !0, snapToSequentialPoint: u = !1, preventScrollRestoration: b = !1, repositionInputs: y = !0, onAnimationEnd: I, container: M, autoFocus: j = !1 }) {
566
+ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, snapPoints: o, shouldScaleBackground: f = !1, setBackgroundColorOnScale: m = !0, closeThreshold: R = Fe, scrollLockTimeout: T = Ue, dismissible: g = !0, handleOnly: p = !1, fadeFromIndex: w = o && o.length - 1, activeSnapPoint: B, setActiveSnapPoint: k, fixed: E, modal: F = !0, onClose: h, nested: N, noBodyStyles: A = !1, direction: c = "bottom", defaultOpen: Y = !1, disablePreventScroll: tt = !0, snapToSequentialPoint: u = !1, preventScrollRestoration: b = !1, repositionInputs: y = !0, onAnimationEnd: I, container: M, autoFocus: j = !1 }) {
567
567
  var l, U;
568
568
  const [_ = !1, W] = ee({
569
569
  defaultProp: Y,
@@ -575,17 +575,17 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
575
575
  document.body.style.pointerEvents = "auto";
576
576
  }), s || (document.body.style.pointerEvents = "auto");
577
577
  }
578
- }), [P, K] = r.useState(!1), [G, lt] = r.useState(!1), [se, Pt] = r.useState(!1), rt = r.useRef(null), ht = r.useRef(null), St = r.useRef(null), Rt = r.useRef(null), ut = r.useRef(null), ct = r.useRef(!1), Dt = r.useRef(null), Tt = r.useRef(0), at = r.useRef(!1), It = r.useRef(!Y), _t = r.useRef(0), c = r.useRef(null), Ht = r.useRef(((l = c.current) == null ? void 0 : l.getBoundingClientRect().height) || 0), kt = r.useRef(((U = c.current) == null ? void 0 : U.getBoundingClientRect().width) || 0), Et = r.useRef(0), le = r.useCallback((s) => {
578
+ }), [P, K] = r.useState(!1), [G, lt] = r.useState(!1), [se, Pt] = r.useState(!1), rt = r.useRef(null), ht = r.useRef(null), St = r.useRef(null), Rt = r.useRef(null), ut = r.useRef(null), ct = r.useRef(!1), Dt = r.useRef(null), Tt = r.useRef(0), at = r.useRef(!1), It = r.useRef(!Y), _t = r.useRef(0), d = r.useRef(null), Ht = r.useRef(((l = d.current) == null ? void 0 : l.getBoundingClientRect().height) || 0), kt = r.useRef(((U = d.current) == null ? void 0 : U.getBoundingClientRect().width) || 0), Et = r.useRef(0), le = r.useCallback((s) => {
579
579
  o && s === dt.length - 1 && (ht.current = /* @__PURE__ */ new Date());
580
580
  }, []), { activeSnapPoint: ue, activeSnapPointIndex: ot, setActiveSnapPoint: Lt, onRelease: ce, snapPointsOffset: dt, onDrag: de, shouldFade: Bt, getPercentageDragged: fe } = We({
581
581
  snapPoints: o,
582
582
  activeSnapPointProp: B,
583
583
  setActiveSnapPointProp: k,
584
- drawerRef: c,
584
+ drawerRef: d,
585
585
  fadeFromIndex: w,
586
586
  overlayRef: rt,
587
587
  onSnapPointChange: le,
588
- direction: d,
588
+ direction: c,
589
589
  container: M,
590
590
  snapToSequentialPoint: u
591
591
  });
@@ -605,21 +605,21 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
605
605
  }
606
606
  function pe(s) {
607
607
  var S, D;
608
- !g && !o || c.current && !c.current.contains(s.target) || (Ht.current = ((S = c.current) == null ? void 0 : S.getBoundingClientRect().height) || 0, kt.current = ((D = c.current) == null ? void 0 : D.getBoundingClientRect().width) || 0, lt(!0), St.current = /* @__PURE__ */ new Date(), Xt() && window.addEventListener("touchend", () => ct.current = !1, {
608
+ !g && !o || d.current && !d.current.contains(s.target) || (Ht.current = ((S = d.current) == null ? void 0 : S.getBoundingClientRect().height) || 0, kt.current = ((D = d.current) == null ? void 0 : D.getBoundingClientRect().width) || 0, lt(!0), St.current = /* @__PURE__ */ new Date(), Xt() && window.addEventListener("touchend", () => ct.current = !1, {
609
609
  once: !0
610
- }), s.target.setPointerCapture(s.pointerId), Tt.current = $(d) ? s.pageY : s.pageX);
610
+ }), s.target.setPointerCapture(s.pointerId), Tt.current = C(c) ? s.pageY : s.pageX);
611
611
  }
612
612
  function Ft(s, S) {
613
613
  var D;
614
614
  let v = s;
615
- const O = (D = window.getSelection()) == null ? void 0 : D.toString(), L = c.current ? bt(c.current, d) : null, H = /* @__PURE__ */ new Date();
615
+ const O = (D = window.getSelection()) == null ? void 0 : D.toString(), L = d.current ? bt(d.current, c) : null, H = /* @__PURE__ */ new Date();
616
616
  if (v.tagName === "SELECT" || v.hasAttribute("data-vaul-no-drag") || v.closest("[data-vaul-no-drag]"))
617
617
  return !1;
618
- if (d === "right" || d === "left")
618
+ if (c === "right" || c === "left")
619
619
  return !0;
620
620
  if (ht.current && H.getTime() - ht.current.getTime() < 500)
621
621
  return !1;
622
- if (L !== null && (d === "bottom" ? L > 0 : L < 0))
622
+ if (L !== null && (c === "bottom" ? L > 0 : L < 0))
623
623
  return !0;
624
624
  if (O && O.length > 0)
625
625
  return !1;
@@ -637,42 +637,42 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
637
637
  return !0;
638
638
  }
639
639
  function we(s) {
640
- if (c.current && G) {
641
- const S = d === "bottom" || d === "right" ? 1 : -1, D = (Tt.current - ($(d) ? s.pageY : s.pageX)) * S, v = D > 0, O = o && !g && !v;
640
+ if (d.current && G) {
641
+ const S = c === "bottom" || c === "right" ? 1 : -1, D = (Tt.current - (C(c) ? s.pageY : s.pageX)) * S, v = D > 0, O = o && !g && !v;
642
642
  if (O && ot === 0) return;
643
- const L = Math.abs(D), H = document.querySelector("[data-vaul-drawer-wrapper]"), J = d === "bottom" || d === "top" ? Ht.current : kt.current;
643
+ const L = Math.abs(D), H = document.querySelector("[data-vaul-drawer-wrapper]"), J = c === "bottom" || c === "top" ? Ht.current : kt.current;
644
644
  let z = L / J;
645
645
  const et = fe(L, v);
646
646
  if (et !== null && (z = et), O && z >= 1 || !ct.current && !Ft(s.target, v)) return;
647
- if (c.current.classList.add($t), ct.current = !0, C(c.current, {
647
+ if (d.current.classList.add($t), ct.current = !0, $(d.current, {
648
648
  transition: "none"
649
- }), C(rt.current, {
649
+ }), $(rt.current, {
650
650
  transition: "none"
651
651
  }), o && de({
652
652
  draggedDistance: D
653
653
  }), v && !o) {
654
654
  const q = Le(D), vt = Math.min(q * -1, 0) * S;
655
- C(c.current, {
656
- transform: $(d) ? `translate3d(0, ${vt}px, 0)` : `translate3d(${vt}px, 0, 0)`
655
+ $(d.current, {
656
+ transform: C(c) ? `translate3d(0, ${vt}px, 0)` : `translate3d(${vt}px, 0, 0)`
657
657
  });
658
658
  return;
659
659
  }
660
660
  const Q = 1 - z;
661
- if ((Bt || w && ot === w - 1) && (a == null || a(s, z), C(rt.current, {
661
+ if ((Bt || w && ot === w - 1) && (a == null || a(s, z), $(rt.current, {
662
662
  opacity: `${Q}`,
663
663
  transition: "none"
664
664
  }, !0)), H && rt.current && f) {
665
665
  const q = Math.min(gt() + z * (1 - gt()), 1), vt = 8 - z * 8, jt = Math.max(0, 14 - z * 14);
666
- C(H, {
666
+ $(H, {
667
667
  borderRadius: `${vt}px`,
668
- transform: $(d) ? `scale(${q}) translate3d(0, ${jt}px, 0)` : `scale(${q}) translate3d(${jt}px, 0, 0)`,
668
+ transform: C(c) ? `scale(${q}) translate3d(0, ${jt}px, 0)` : `scale(${q}) translate3d(${jt}px, 0, 0)`,
669
669
  transition: "none"
670
670
  }, !0);
671
671
  }
672
672
  if (!o) {
673
673
  const q = L * S;
674
- C(c.current, {
675
- transform: $(d) ? `translate3d(0, ${q}px, 0)` : `translate3d(${q}px, 0, 0)`
674
+ $(d.current, {
675
+ transform: C(c) ? `translate3d(0, ${q}px, 0)` : `translate3d(${q}px, 0, 0)`
676
676
  });
677
677
  }
678
678
  }
@@ -684,25 +684,25 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
684
684
  }, []), r.useEffect(() => {
685
685
  var s;
686
686
  function S() {
687
- if (!c.current || !y) return;
687
+ if (!d.current || !y) return;
688
688
  const D = document.activeElement;
689
689
  if (At(D) || at.current) {
690
690
  var v;
691
691
  const O = ((v = window.visualViewport) == null ? void 0 : v.height) || 0, L = window.innerHeight;
692
692
  let H = L - O;
693
- const J = c.current.getBoundingClientRect().height || 0, z = J > L * 0.8;
693
+ const J = d.current.getBoundingClientRect().height || 0, z = J > L * 0.8;
694
694
  Et.current || (Et.current = J);
695
- const et = c.current.getBoundingClientRect().top;
695
+ const et = d.current.getBoundingClientRect().top;
696
696
  if (Math.abs(_t.current - H) > 60 && (at.current = !at.current), o && o.length > 0 && dt && ot) {
697
697
  const Q = dt[ot] || 0;
698
698
  H += Q;
699
699
  }
700
700
  if (_t.current = H, J > O || at.current) {
701
- const Q = c.current.getBoundingClientRect().height;
701
+ const Q = d.current.getBoundingClientRect().height;
702
702
  let q = Q;
703
- Q > O && (q = O - (z ? et : Nt)), E ? c.current.style.height = `${Q - Math.max(H, 0)}px` : c.current.style.height = `${Math.max(q, O - et)}px`;
704
- } else Ee() || (c.current.style.height = `${Et.current}px`);
705
- o && o.length > 0 && !at.current ? c.current.style.bottom = "0px" : c.current.style.bottom = `${Math.max(H, 0)}px`;
703
+ Q > O && (q = O - (z ? et : Nt)), E ? d.current.style.height = `${Q - Math.max(H, 0)}px` : d.current.style.height = `${Math.max(q, O - et)}px`;
704
+ } else Ee() || (d.current.style.height = `${Et.current}px`);
705
+ o && o.length > 0 && !at.current ? d.current.style.bottom = "0px" : d.current.style.bottom = `${Math.max(H, 0)}px`;
706
706
  }
707
707
  }
708
708
  return (s = window.visualViewport) == null || s.addEventListener("resize", S), () => {
@@ -720,18 +720,18 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
720
720
  }, x.DURATION * 1e3);
721
721
  }
722
722
  function Ut() {
723
- if (!c.current) return;
724
- const s = document.querySelector("[data-vaul-drawer-wrapper]"), S = bt(c.current, d);
725
- C(c.current, {
723
+ if (!d.current) return;
724
+ const s = document.querySelector("[data-vaul-drawer-wrapper]"), S = bt(d.current, c);
725
+ $(d.current, {
726
726
  transform: "translate3d(0, 0, 0)",
727
727
  transition: `transform ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`
728
- }), C(rt.current, {
728
+ }), $(rt.current, {
729
729
  transition: `opacity ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
730
730
  opacity: "1"
731
- }), f && S && S > 0 && _ && C(s, {
731
+ }), f && S && S > 0 && _ && $(s, {
732
732
  borderRadius: `${Zt}px`,
733
733
  overflow: "hidden",
734
- ...$(d) ? {
734
+ ...C(c) ? {
735
735
  transform: `scale(${gt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
736
736
  transformOrigin: "top"
737
737
  } : {
@@ -744,26 +744,26 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
744
744
  }, !0);
745
745
  }
746
746
  function he() {
747
- !G || !c.current || (c.current.classList.remove($t), ct.current = !1, lt(!1), Rt.current = /* @__PURE__ */ new Date());
747
+ !G || !d.current || (d.current.classList.remove($t), ct.current = !1, lt(!1), Rt.current = /* @__PURE__ */ new Date());
748
748
  }
749
749
  function ge(s) {
750
- if (!G || !c.current) return;
751
- c.current.classList.remove($t), ct.current = !1, lt(!1), Rt.current = /* @__PURE__ */ new Date();
752
- const S = bt(c.current, d);
750
+ if (!G || !d.current) return;
751
+ d.current.classList.remove($t), ct.current = !1, lt(!1), Rt.current = /* @__PURE__ */ new Date();
752
+ const S = bt(d.current, c);
753
753
  if (!s || !Ft(s.target, !1) || !S || Number.isNaN(S) || St.current === null) return;
754
- const D = Rt.current.getTime() - St.current.getTime(), v = Tt.current - ($(d) ? s.pageY : s.pageX), O = Math.abs(v) / D;
754
+ const D = Rt.current.getTime() - St.current.getTime(), v = Tt.current - (C(c) ? s.pageY : s.pageX), O = Math.abs(v) / D;
755
755
  if (O > 0.05 && (Pt(!0), setTimeout(() => {
756
756
  Pt(!1);
757
757
  }, 200)), o) {
758
758
  ce({
759
- draggedDistance: v * (d === "bottom" || d === "right" ? 1 : -1),
759
+ draggedDistance: v * (c === "bottom" || c === "right" ? 1 : -1),
760
760
  closeDrawer: ft,
761
761
  velocity: O,
762
762
  dismissible: g
763
763
  }), i == null || i(s, !0);
764
764
  return;
765
765
  }
766
- if (d === "bottom" || d === "right" ? v > 0 : v < 0) {
766
+ if (c === "bottom" || c === "right" ? v > 0 : v < 0) {
767
767
  Ut(), i == null || i(s, !0);
768
768
  return;
769
769
  }
@@ -772,16 +772,16 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
772
772
  return;
773
773
  }
774
774
  var L;
775
- const H = Math.min((L = c.current.getBoundingClientRect().height) != null ? L : 0, window.innerHeight);
775
+ const H = Math.min((L = d.current.getBoundingClientRect().height) != null ? L : 0, window.innerHeight);
776
776
  var J;
777
- const z = Math.min((J = c.current.getBoundingClientRect().width) != null ? J : 0, window.innerWidth), et = d === "left" || d === "right";
777
+ const z = Math.min((J = d.current.getBoundingClientRect().width) != null ? J : 0, window.innerWidth), et = c === "left" || c === "right";
778
778
  if (Math.abs(S) >= (et ? z : H) * R) {
779
779
  ft(), i == null || i(s, !1);
780
780
  return;
781
781
  }
782
782
  i == null || i(s, !0), Ut();
783
783
  }
784
- r.useEffect(() => (_ && (C(document.documentElement, {
784
+ r.useEffect(() => (_ && ($(document.documentElement, {
785
785
  scrollBehavior: "auto"
786
786
  }), ht.current = /* @__PURE__ */ new Date()), () => {
787
787
  ke(document.documentElement, "scrollBehavior");
@@ -790,30 +790,30 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
790
790
  ]);
791
791
  function ve(s) {
792
792
  const S = s ? (window.innerWidth - nt) / window.innerWidth : 1, D = s ? -nt : 0;
793
- Dt.current && window.clearTimeout(Dt.current), C(c.current, {
793
+ Dt.current && window.clearTimeout(Dt.current), $(d.current, {
794
794
  transition: `transform ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
795
- transform: `scale(${S}) translate3d(0, ${D}px, 0)`
796
- }), !s && c.current && (Dt.current = setTimeout(() => {
797
- const v = bt(c.current, d);
798
- C(c.current, {
795
+ transform: C(c) ? `scale(${S}) translate3d(0, ${D}px, 0)` : `scale(${S}) translate3d(${D}, 0, 0)`
796
+ }), !s && d.current && (Dt.current = setTimeout(() => {
797
+ const v = bt(d.current, c);
798
+ $(d.current, {
799
799
  transition: "none",
800
- transform: $(d) ? `translate3d(0, ${v}px, 0)` : `translate3d(${v}px, 0, 0)`
800
+ transform: C(c) ? `translate3d(0, ${v}px, 0)` : `translate3d(${v}px, 0, 0)`
801
801
  });
802
802
  }, 500));
803
803
  }
804
804
  function ye(s, S) {
805
805
  if (S < 0) return;
806
806
  const D = (window.innerWidth - nt) / window.innerWidth, v = D + S * (1 - D), O = -nt + S * nt;
807
- C(c.current, {
808
- transform: $(d) ? `scale(${v}) translate3d(0, ${O}px, 0)` : `scale(${v}) translate3d(${O}px, 0, 0)`,
807
+ $(d.current, {
808
+ transform: C(c) ? `scale(${v}) translate3d(0, ${O}px, 0)` : `scale(${v}) translate3d(${O}px, 0, 0)`,
809
809
  transition: "none"
810
810
  });
811
811
  }
812
812
  function be(s, S) {
813
- const D = $(d) ? window.innerHeight : window.innerWidth, v = S ? (D - nt) / D : 1, O = S ? -nt : 0;
814
- S && C(c.current, {
813
+ const D = C(c) ? window.innerHeight : window.innerWidth, v = S ? (D - nt) / D : 1, O = S ? -nt : 0;
814
+ S && $(d.current, {
815
815
  transition: `transform ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
816
- transform: $(d) ? `scale(${v}) translate3d(0, ${O}px, 0)` : `scale(${v}) translate3d(${O}px, 0, 0)`
816
+ transform: C(c) ? `scale(${v}) translate3d(0, ${O}px, 0)` : `scale(${v}) translate3d(${O}px, 0, 0)`
817
817
  });
818
818
  }
819
819
  return r.useEffect(() => {
@@ -833,7 +833,7 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
833
833
  activeSnapPoint: ue,
834
834
  snapPoints: o,
835
835
  setActiveSnapPoint: Lt,
836
- drawerRef: c,
836
+ drawerRef: d,
837
837
  overlayRef: rt,
838
838
  onOpenChange: n,
839
839
  onPress: pe,
@@ -853,7 +853,7 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
853
853
  modal: F,
854
854
  snapPointsOffset: dt,
855
855
  activeSnapPointIndex: ot,
856
- direction: d,
856
+ direction: c,
857
857
  shouldScaleBackground: f,
858
858
  setBackgroundColorOnScale: m,
859
859
  noBodyStyles: A,
@@ -881,7 +881,7 @@ const re = /* @__PURE__ */ r.forwardRef(function({ ...t }, n) {
881
881
  });
882
882
  re.displayName = "Drawer.Overlay";
883
883
  const ae = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, style: n, onOpenAutoFocus: e, ...a }, i) {
884
- const { drawerRef: o, onPress: f, onRelease: m, onDrag: R, keyboardIsOpen: T, snapPointsOffset: g, activeSnapPointIndex: p, modal: w, isOpen: B, direction: k, snapPoints: E, container: F, handleOnly: h, shouldAnimate: N, autoFocus: A } = st(), [d, Y] = r.useState(!1), tt = Gt(i, o), u = r.useRef(null), b = r.useRef(null), y = r.useRef(!1), I = E && E.length > 0;
884
+ const { drawerRef: o, onPress: f, onRelease: m, onDrag: R, keyboardIsOpen: T, snapPointsOffset: g, activeSnapPointIndex: p, modal: w, isOpen: B, direction: k, snapPoints: E, container: F, handleOnly: h, shouldAnimate: N, autoFocus: A } = st(), [c, Y] = r.useState(!1), tt = Gt(i, o), u = r.useRef(null), b = r.useRef(null), y = r.useRef(!1), I = E && E.length > 0;
885
885
  Ve();
886
886
  const M = (l, U, _ = 0) => {
887
887
  if (y.current) return !0;
@@ -907,7 +907,7 @@ const ae = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, styl
907
907
  return /* @__PURE__ */ r.createElement(Z.Content, {
908
908
  "data-vaul-drawer-direction": k,
909
909
  "data-vaul-drawer": "",
910
- "data-vaul-delayed-snap-points": d ? "true" : "false",
910
+ "data-vaul-delayed-snap-points": c ? "true" : "false",
911
911
  "data-vaul-snap-points": B && I ? "true" : "false",
912
912
  "data-vaul-custom-container": F ? "true" : "false",
913
913
  "data-vaul-animate": N != null && N.current ? "true" : "false",
@@ -999,11 +999,11 @@ const qe = 250, Xe = 120, oe = /* @__PURE__ */ r.forwardRef(function({ preventCy
999
999
  return /* @__PURE__ */ r.createElement("div", {
1000
1000
  onClick: F,
1001
1001
  onPointerCancel: A,
1002
- onPointerDown: (d) => {
1003
- g && w(d), N();
1002
+ onPointerDown: (c) => {
1003
+ g && w(c), N();
1004
1004
  },
1005
- onPointerMove: (d) => {
1006
- g && B(d);
1005
+ onPointerMove: (c) => {
1006
+ g && B(c);
1007
1007
  },
1008
1008
  // onPointerUp is already handled by the content component
1009
1009
  ref: a,