zudoku 0.0.0-f2fd45c → 0.0.0-f3786a4

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 (842) hide show
  1. package/client.d.ts +7 -0
  2. package/dist/app/demo.js +1 -4
  3. package/dist/app/demo.js.map +1 -1
  4. package/dist/app/entry.client.d.ts +1 -0
  5. package/dist/app/entry.client.js +14 -1
  6. package/dist/app/entry.client.js.map +1 -1
  7. package/dist/app/entry.server.d.ts +1 -0
  8. package/dist/app/entry.server.js +8 -8
  9. package/dist/app/entry.server.js.map +1 -1
  10. package/dist/app/main.d.ts +3 -3
  11. package/dist/app/main.js +23 -10
  12. package/dist/app/main.js.map +1 -1
  13. package/dist/app/sentry.d.ts +3 -0
  14. package/dist/app/sentry.js +19 -0
  15. package/dist/app/sentry.js.map +1 -0
  16. package/dist/app/standalone.js +1 -4
  17. package/dist/app/standalone.js.map +1 -1
  18. package/dist/app/tailwind.d.ts +2 -1
  19. package/dist/app/tailwind.js +64 -52
  20. package/dist/app/tailwind.js.map +1 -1
  21. package/dist/cli/cli.js +0 -2
  22. package/dist/cli/cli.js.map +1 -1
  23. package/dist/cli/cmds/build.js +1 -0
  24. package/dist/cli/cmds/build.js.map +1 -1
  25. package/dist/cli/cmds/dev.js +5 -0
  26. package/dist/cli/cmds/dev.js.map +1 -1
  27. package/dist/cli/common/logger.js +9 -0
  28. package/dist/cli/common/logger.js.map +1 -1
  29. package/dist/cli/common/outdated.js +2 -1
  30. package/dist/cli/common/outdated.js.map +1 -1
  31. package/dist/cli/dev/handler.d.ts +1 -0
  32. package/dist/cli/dev/handler.js +3 -3
  33. package/dist/cli/dev/handler.js.map +1 -1
  34. package/dist/codegen.d.ts +3 -0
  35. package/dist/codegen.js +45 -0
  36. package/dist/codegen.js.map +1 -0
  37. package/dist/config/common.d.ts +8 -0
  38. package/dist/config/common.js +2 -0
  39. package/dist/config/common.js.map +1 -0
  40. package/dist/config/config.d.ts +4 -2
  41. package/dist/config/loader.d.ts +20 -0
  42. package/dist/config/loader.js +154 -0
  43. package/dist/config/loader.js.map +1 -0
  44. package/dist/config/validators/InputSidebarSchema.d.ts +37 -21
  45. package/dist/config/validators/InputSidebarSchema.js +1 -0
  46. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  47. package/dist/config/validators/common.d.ts +5034 -0
  48. package/dist/config/validators/common.js +287 -0
  49. package/dist/config/validators/common.js.map +1 -0
  50. package/dist/config/validators/icon-types.d.ts +1 -0
  51. package/dist/config/validators/icon-types.js +2 -0
  52. package/dist/config/validators/icon-types.js.map +1 -0
  53. package/dist/config/validators/validate.d.ts +875 -566
  54. package/dist/config/validators/validate.js +9 -228
  55. package/dist/config/validators/validate.js.map +1 -1
  56. package/dist/index.d.ts +2 -2
  57. package/dist/index.js +1 -1
  58. package/dist/index.js.map +1 -1
  59. package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
  60. package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
  61. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  62. package/dist/lib/authentication/authentication.d.ts +3 -3
  63. package/dist/lib/authentication/components/CallbackHandler.js +1 -1
  64. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  65. package/dist/lib/authentication/components/SignIn.js +1 -1
  66. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  67. package/dist/lib/authentication/components/SignOut.js +2 -2
  68. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  69. package/dist/lib/authentication/hook.d.ts +5 -4
  70. package/dist/lib/authentication/hook.js +1 -3
  71. package/dist/lib/authentication/hook.js.map +1 -1
  72. package/dist/lib/authentication/providers/auth0.js +12 -12
  73. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  74. package/dist/lib/authentication/providers/clerk.js +29 -6
  75. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  76. package/dist/lib/authentication/providers/openid.d.ts +8 -2
  77. package/dist/lib/authentication/providers/openid.js +31 -35
  78. package/dist/lib/authentication/providers/openid.js.map +1 -1
  79. package/dist/lib/authentication/state.d.ts +25 -4
  80. package/dist/lib/authentication/state.js +28 -3
  81. package/dist/lib/authentication/state.js.map +1 -1
  82. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  83. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  84. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  85. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  86. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  87. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  88. package/dist/lib/components/AnchorLink.d.ts +1 -1
  89. package/dist/lib/components/AnchorLink.js +6 -3
  90. package/dist/lib/components/AnchorLink.js.map +1 -1
  91. package/dist/lib/components/Autocomplete.d.ts +12 -0
  92. package/dist/lib/components/Autocomplete.js +47 -0
  93. package/dist/lib/components/Autocomplete.js.map +1 -0
  94. package/dist/lib/components/Bootstrap.d.ts +4 -3
  95. package/dist/lib/components/Bootstrap.js +12 -6
  96. package/dist/lib/components/Bootstrap.js.map +1 -1
  97. package/dist/lib/components/ClientOnly.d.ts +4 -2
  98. package/dist/lib/components/ClientOnly.js +1 -1
  99. package/dist/lib/components/ClientOnly.js.map +1 -1
  100. package/dist/lib/components/DeveloperHint.js +2 -1
  101. package/dist/lib/components/DeveloperHint.js.map +1 -1
  102. package/dist/lib/components/Header.js +21 -15
  103. package/dist/lib/components/Header.js.map +1 -1
  104. package/dist/lib/components/Heading.d.ts +4 -4
  105. package/dist/lib/components/Heading.js +1 -1
  106. package/dist/lib/components/Heading.js.map +1 -1
  107. package/dist/lib/components/Layout.js +14 -5
  108. package/dist/lib/components/Layout.js.map +1 -1
  109. package/dist/lib/components/Markdown.d.ts +2 -2
  110. package/dist/lib/components/Markdown.js +4 -2
  111. package/dist/lib/components/Markdown.js.map +1 -1
  112. package/dist/lib/components/MobileTopNavigation.js +6 -7
  113. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  114. package/dist/lib/components/NotFoundPage.js +1 -1
  115. package/dist/lib/components/NotFoundPage.js.map +1 -1
  116. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  117. package/dist/lib/components/ReactMarkdown.js +182 -0
  118. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  119. package/dist/lib/components/Search.d.ts +3 -1
  120. package/dist/lib/components/Search.js +3 -3
  121. package/dist/lib/components/Search.js.map +1 -1
  122. package/dist/lib/components/SlotletProvider.d.ts +2 -2
  123. package/dist/lib/components/StatusPage.d.ts +7 -0
  124. package/dist/lib/components/StatusPage.js +71 -0
  125. package/dist/lib/components/StatusPage.js.map +1 -0
  126. package/dist/lib/components/SyntaxHighlight.d.ts +2 -1
  127. package/dist/lib/components/SyntaxHighlight.js +17 -17
  128. package/dist/lib/components/SyntaxHighlight.js.map +1 -1
  129. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  130. package/dist/lib/components/ThemeSwitch.js +13 -0
  131. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  132. package/dist/lib/components/TopNavigation.d.ts +2 -0
  133. package/dist/lib/components/TopNavigation.js +14 -8
  134. package/dist/lib/components/TopNavigation.js.map +1 -1
  135. package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
  136. package/dist/lib/components/{DevPortal.js → Zudoku.js} +14 -15
  137. package/dist/lib/components/Zudoku.js.map +1 -0
  138. package/dist/lib/components/cache.d.ts +6 -0
  139. package/dist/lib/components/cache.js +13 -0
  140. package/dist/lib/components/cache.js.map +1 -0
  141. package/dist/lib/components/context/ViewportAnchorContext.js +16 -4
  142. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  143. package/dist/lib/components/context/ZudokuContext.d.ts +7 -7
  144. package/dist/lib/components/context/ZudokuContext.js +11 -15
  145. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  146. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  147. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  148. package/dist/lib/components/index.d.ts +34 -15
  149. package/dist/lib/components/index.js +12 -6
  150. package/dist/lib/components/index.js.map +1 -1
  151. package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
  152. package/dist/lib/components/navigation/Sidebar.js +2 -2
  153. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  154. package/dist/lib/components/navigation/SidebarBadge.d.ts +4 -3
  155. package/dist/lib/components/navigation/SidebarBadge.js +11 -11
  156. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  157. package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
  158. package/dist/lib/components/navigation/SidebarCategory.js +5 -6
  159. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  160. package/dist/lib/components/navigation/SidebarItem.d.ts +2 -4
  161. package/dist/lib/components/navigation/SidebarItem.js +7 -12
  162. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  163. package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
  164. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  165. package/dist/lib/components/navigation/utils.js +3 -3
  166. package/dist/lib/components/navigation/utils.js.map +1 -1
  167. package/dist/lib/core/RouteGuard.d.ts +1 -0
  168. package/dist/lib/core/RouteGuard.js +28 -0
  169. package/dist/lib/core/RouteGuard.js.map +1 -0
  170. package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +8 -10
  171. package/dist/lib/core/{DevPortalContext.js → ZudokuContext.js} +11 -14
  172. package/dist/lib/core/ZudokuContext.js.map +1 -0
  173. package/dist/lib/core/plugins.d.ts +17 -13
  174. package/dist/lib/core/plugins.js.map +1 -1
  175. package/dist/lib/errors/ErrorAlert.js +1 -1
  176. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  177. package/dist/lib/errors/RouterError.js +1 -1
  178. package/dist/lib/errors/RouterError.js.map +1 -1
  179. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  180. package/dist/lib/oas/graphql/circular.js +27 -0
  181. package/dist/lib/oas/graphql/circular.js.map +1 -0
  182. package/dist/lib/oas/graphql/index.d.ts +3 -0
  183. package/dist/lib/oas/graphql/index.js +40 -26
  184. package/dist/lib/oas/graphql/index.js.map +1 -1
  185. package/dist/lib/oas/parser/dereference/index.js +6 -3
  186. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  187. package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
  188. package/dist/lib/oas/parser/upgrade/index.js +19 -20
  189. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  190. package/dist/lib/plugins/api-catalog/Catalog.d.ts +2 -0
  191. package/dist/lib/plugins/api-catalog/Catalog.js +36 -0
  192. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  193. package/dist/lib/plugins/api-catalog/index.d.ts +30 -0
  194. package/dist/lib/plugins/api-catalog/index.js +15 -0
  195. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  196. package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
  197. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  198. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  199. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  200. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  201. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  202. package/dist/lib/plugins/api-keys/index.d.ts +9 -9
  203. package/dist/lib/plugins/api-keys/index.js +3 -0
  204. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  205. package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
  206. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  207. package/dist/lib/plugins/markdown/MdxPage.d.ts +9 -1
  208. package/dist/lib/plugins/markdown/MdxPage.js +22 -3
  209. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  210. package/dist/lib/plugins/markdown/index.d.ts +5 -3
  211. package/dist/lib/plugins/markdown/index.js +1 -1
  212. package/dist/lib/plugins/markdown/index.js.map +1 -1
  213. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  214. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  215. package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
  216. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  217. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  218. package/dist/lib/plugins/openapi/ColorizedParam.js +27 -14
  219. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  220. package/dist/lib/plugins/openapi/Endpoint.js +8 -10
  221. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  222. package/dist/lib/plugins/openapi/OperationList.d.ts +2 -2
  223. package/dist/lib/plugins/openapi/OperationList.js +46 -23
  224. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  225. package/dist/lib/plugins/openapi/OperationListItem.d.ts +2 -1
  226. package/dist/lib/plugins/openapi/OperationListItem.js +14 -4
  227. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  228. package/dist/lib/plugins/openapi/ParameterListItem.js +7 -1
  229. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  230. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -1
  231. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +5 -2
  232. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  233. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +4 -5
  234. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +4 -10
  235. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  236. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +7 -6
  237. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  238. package/dist/lib/plugins/openapi/Route.d.ts +7 -5
  239. package/dist/lib/plugins/openapi/Route.js +23 -5
  240. package/dist/lib/plugins/openapi/Route.js.map +1 -1
  241. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  242. package/dist/lib/plugins/openapi/Sidecar.js +46 -51
  243. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  244. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  245. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  246. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
  247. package/dist/lib/plugins/openapi/SidecarExamples.js +65 -0
  248. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  249. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  250. package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
  251. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  252. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  253. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  254. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  255. package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
  256. package/dist/lib/plugins/openapi/client/createServer.js +5 -2
  257. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  258. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +5 -0
  259. package/dist/lib/plugins/openapi/client/useCreateQuery.js +13 -0
  260. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  261. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  262. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  263. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  264. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  265. package/dist/lib/plugins/openapi/graphql/gql.d.ts +5 -51
  266. package/dist/lib/plugins/openapi/graphql/gql.js +5 -3
  267. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  268. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +34 -8
  269. package/dist/lib/plugins/openapi/graphql/graphql.js +195 -662
  270. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  271. package/dist/lib/plugins/openapi/index.d.ts +4 -3
  272. package/dist/lib/plugins/openapi/index.js +56 -74
  273. package/dist/lib/plugins/openapi/index.js.map +1 -1
  274. package/dist/lib/plugins/openapi/interfaces.d.ts +26 -2
  275. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  276. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +12 -0
  277. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  278. package/dist/lib/plugins/openapi/playground/Headers.js +66 -4
  279. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  280. package/dist/lib/plugins/openapi/playground/PathParams.js +9 -4
  281. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  282. package/dist/lib/plugins/openapi/playground/Playground.d.ts +8 -1
  283. package/dist/lib/plugins/openapi/playground/Playground.js +40 -12
  284. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  285. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  286. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  287. package/dist/lib/plugins/openapi/playground/QueryParams.js +19 -14
  288. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  289. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +7 -0
  290. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +16 -0
  291. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -0
  292. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +174 -0
  293. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -0
  294. package/dist/lib/plugins/openapi/post-processors/removeParameters.d.ts +10 -0
  295. package/dist/lib/plugins/openapi/post-processors/removeParameters.js +66 -0
  296. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +1 -0
  297. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.d.ts +1 -0
  298. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js +131 -0
  299. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +1 -0
  300. package/dist/lib/plugins/openapi/post-processors/removePaths.d.ts +11 -0
  301. package/dist/lib/plugins/openapi/post-processors/removePaths.js +33 -0
  302. package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +1 -0
  303. package/dist/lib/plugins/openapi/post-processors/removePaths.test.d.ts +1 -0
  304. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +104 -0
  305. package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +1 -0
  306. package/dist/lib/plugins/openapi/post-processors/traverse.d.ts +1 -0
  307. package/dist/lib/plugins/openapi/post-processors/traverse.js +2 -0
  308. package/dist/lib/plugins/openapi/post-processors/traverse.js.map +1 -0
  309. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +9 -2
  310. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -1
  311. package/dist/lib/plugins/openapi/schema/SchemaView.js +2 -1
  312. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  313. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
  314. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +36 -39
  315. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  316. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  317. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  318. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  319. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  320. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  321. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  322. package/dist/lib/plugins/redirect/index.d.ts +3 -3
  323. package/dist/lib/plugins/redirect/index.js +1 -1
  324. package/dist/lib/plugins/redirect/index.js.map +1 -1
  325. package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
  326. package/dist/lib/plugins/search-inkeep/index.js +41 -5
  327. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  328. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  329. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  330. package/dist/lib/ui/ActionButton.d.ts +4 -0
  331. package/dist/lib/ui/ActionButton.js +10 -0
  332. package/dist/lib/ui/ActionButton.js.map +1 -0
  333. package/dist/lib/ui/Badge.d.ts +1 -1
  334. package/dist/lib/ui/Badge.js +2 -1
  335. package/dist/lib/ui/Badge.js.map +1 -1
  336. package/dist/lib/ui/Button.d.ts +1 -1
  337. package/dist/lib/ui/Card.js +1 -1
  338. package/dist/lib/ui/Card.js.map +1 -1
  339. package/dist/lib/ui/Checkbox.d.ts +8 -2
  340. package/dist/lib/ui/Checkbox.js +13 -1
  341. package/dist/lib/ui/Checkbox.js.map +1 -1
  342. package/dist/lib/ui/Command.d.ts +10 -2
  343. package/dist/lib/ui/Command.js +5 -1
  344. package/dist/lib/ui/Command.js.map +1 -1
  345. package/dist/lib/util/MdxComponents.d.ts +19 -20
  346. package/dist/lib/util/MdxComponents.js +3 -5
  347. package/dist/lib/util/MdxComponents.js.map +1 -1
  348. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  349. package/dist/lib/util/joinUrl.d.ts +1 -0
  350. package/dist/lib/util/joinUrl.js +40 -0
  351. package/dist/lib/util/joinUrl.js.map +1 -0
  352. package/dist/lib/util/traverse.d.ts +9 -0
  353. package/dist/lib/util/traverse.js +22 -0
  354. package/dist/lib/util/traverse.js.map +1 -0
  355. package/dist/lib/util/useExposedProps.js +1 -1
  356. package/dist/lib/util/useExposedProps.js.map +1 -1
  357. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  358. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  359. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  360. package/dist/lib/util/useOnScreen.d.ts +4 -0
  361. package/dist/lib/util/useOnScreen.js +19 -0
  362. package/dist/lib/util/useOnScreen.js.map +1 -0
  363. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  364. package/dist/lib/util/useScrollToAnchor.js +27 -16
  365. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  366. package/dist/lib/util/useScrollToTop.js +1 -1
  367. package/dist/lib/util/useScrollToTop.js.map +1 -1
  368. package/dist/vite/api/schema-codegen.d.ts +12 -0
  369. package/dist/vite/api/schema-codegen.js +62 -0
  370. package/dist/vite/api/schema-codegen.js.map +1 -0
  371. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  372. package/dist/vite/api/schema-codegen.test.js +247 -0
  373. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  374. package/dist/vite/build.js +24 -10
  375. package/dist/vite/build.js.map +1 -1
  376. package/dist/vite/config.d.ts +6 -4
  377. package/dist/vite/config.js +83 -31
  378. package/dist/vite/config.js.map +1 -1
  379. package/dist/vite/config.test.js +11 -5
  380. package/dist/vite/config.test.js.map +1 -1
  381. package/dist/vite/css/collect.d.ts +2 -0
  382. package/dist/vite/css/collect.js +27 -0
  383. package/dist/vite/css/collect.js.map +1 -0
  384. package/dist/vite/css/plugin.d.ts +5 -0
  385. package/dist/vite/css/plugin.js +79 -0
  386. package/dist/vite/css/plugin.js.map +1 -0
  387. package/dist/vite/dev-server.d.ts +1 -0
  388. package/dist/vite/dev-server.js +26 -6
  389. package/dist/vite/dev-server.js.map +1 -1
  390. package/dist/vite/html.js +0 -2
  391. package/dist/vite/html.js.map +1 -1
  392. package/dist/vite/output.d.ts +1 -1
  393. package/dist/vite/output.js +44 -12
  394. package/dist/vite/output.js.map +1 -1
  395. package/dist/vite/plugin-api.d.ts +1 -1
  396. package/dist/vite/plugin-api.js +154 -22
  397. package/dist/vite/plugin-api.js.map +1 -1
  398. package/dist/vite/plugin-auth.js +4 -1
  399. package/dist/vite/plugin-auth.js.map +1 -1
  400. package/dist/vite/plugin-component.js +14 -19
  401. package/dist/vite/plugin-component.js.map +1 -1
  402. package/dist/vite/plugin-config-reload.d.ts +1 -2
  403. package/dist/vite/plugin-config-reload.js.map +1 -1
  404. package/dist/vite/plugin-config.js +20 -0
  405. package/dist/vite/plugin-config.js.map +1 -1
  406. package/dist/vite/plugin-docs.test.js +15 -23
  407. package/dist/vite/plugin-docs.test.js.map +1 -1
  408. package/dist/vite/plugin-mdx.d.ts +0 -6
  409. package/dist/vite/plugin-mdx.js +72 -10
  410. package/dist/vite/plugin-mdx.js.map +1 -1
  411. package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +2 -2
  412. package/dist/vite/plugin-theme-css.js +114 -0
  413. package/dist/vite/plugin-theme-css.js.map +1 -0
  414. package/dist/vite/plugin.d.ts +1 -2
  415. package/dist/vite/plugin.js +6 -4
  416. package/dist/vite/plugin.js.map +1 -1
  417. package/dist/vite/prerender.d.ts +3 -2
  418. package/dist/vite/prerender.js +8 -6
  419. package/dist/vite/prerender.js.map +1 -1
  420. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  421. package/dist/vite/remarkStaticGeneration.js +125 -0
  422. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  423. package/dist/vite/sitemap.d.ts +1 -1
  424. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  425. package/dist/zuplo/enrich-with-zuplo.js +184 -0
  426. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  427. package/dist/zuplo/env.d.ts +7 -0
  428. package/dist/zuplo/env.js +12 -0
  429. package/dist/zuplo/env.js.map +1 -0
  430. package/dist/zuplo/policy-types.d.ts +33 -0
  431. package/dist/zuplo/policy-types.js +8 -0
  432. package/dist/zuplo/policy-types.js.map +1 -0
  433. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  434. package/dist/zuplo/with-zuplo-processors.js +26 -0
  435. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  436. package/dist/zuplo/with-zuplo.d.ts +3 -0
  437. package/dist/zuplo/with-zuplo.js +9 -0
  438. package/dist/zuplo/with-zuplo.js.map +1 -0
  439. package/lib/AuthenticationPlugin-CvwlQWjV.js +58 -0
  440. package/lib/AuthenticationPlugin-CvwlQWjV.js.map +1 -0
  441. package/lib/{CategoryHeading-Bb9dqxD3.js → CategoryHeading-MYL1u_6K.js} +3 -3
  442. package/lib/{CategoryHeading-Bb9dqxD3.js.map → CategoryHeading-MYL1u_6K.js.map} +1 -1
  443. package/lib/{ClientOnly-CVN6leDu.js → ClientOnly-E7hGysn1.js} +4 -4
  444. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  445. package/lib/Markdown-B8o9Qz4q.js +15213 -0
  446. package/lib/Markdown-B8o9Qz4q.js.map +1 -0
  447. package/lib/MdxPage-DiWukCrZ.js +193 -0
  448. package/lib/MdxPage-DiWukCrZ.js.map +1 -0
  449. package/lib/OperationList-CyNwMHMV.js +5146 -0
  450. package/lib/OperationList-CyNwMHMV.js.map +1 -0
  451. package/lib/Route-DH64hIrR.js +35 -0
  452. package/lib/Route-DH64hIrR.js.map +1 -0
  453. package/lib/{Select-Bagt3Bme.js → Select-4kIgJ1bc.js} +39 -39
  454. package/lib/Select-4kIgJ1bc.js.map +1 -0
  455. package/lib/SlotletProvider-CtIp8rP3.js +221 -0
  456. package/lib/SlotletProvider-CtIp8rP3.js.map +1 -0
  457. package/lib/Spinner-BlzrEEk1.js +51 -0
  458. package/lib/Spinner-BlzrEEk1.js.map +1 -0
  459. package/lib/{StaggeredRender-DDHSzQKE.js → StaggeredRender-DgsamH_G.js} +3 -3
  460. package/lib/{StaggeredRender-DDHSzQKE.js.map → StaggeredRender-DgsamH_G.js.map} +1 -1
  461. package/lib/SyntaxHighlight-C1w1QPdY.js +2980 -0
  462. package/lib/SyntaxHighlight-C1w1QPdY.js.map +1 -0
  463. package/lib/ZudokuContext-Bp2uQx1d.js +1228 -0
  464. package/lib/ZudokuContext-Bp2uQx1d.js.map +1 -0
  465. package/lib/chunk-SYFQ2XB5-BPvC-soB.js +1821 -0
  466. package/lib/chunk-SYFQ2XB5-BPvC-soB.js.map +1 -0
  467. package/lib/circular-Dgpd6AN-.js +15397 -0
  468. package/lib/circular-Dgpd6AN-.js.map +1 -0
  469. package/lib/{cn-BmFQLtkS.js → cn-qaFjX9_3.js} +2 -2
  470. package/lib/cn-qaFjX9_3.js.map +1 -0
  471. package/lib/context-rwLGh-6_.js +22 -0
  472. package/lib/context-rwLGh-6_.js.map +1 -0
  473. package/lib/createServer-BV0tHzLK.js +12590 -0
  474. package/lib/createServer-BV0tHzLK.js.map +1 -0
  475. package/lib/{hook-sn0zMTkE.js → hook-BDmay56y.js} +22 -24
  476. package/lib/hook-BDmay56y.js.map +1 -0
  477. package/lib/index-B7mqiOei.js +509 -0
  478. package/lib/index-B7mqiOei.js.map +1 -0
  479. package/lib/index-BtNudmKQ.js +1744 -0
  480. package/lib/index-BtNudmKQ.js.map +1 -0
  481. package/lib/index-Djenk2Hj.js +36 -0
  482. package/lib/index-Djenk2Hj.js.map +1 -0
  483. package/lib/{index-CkwDvuPt.js → index-Dl3Yl0yb.js} +303 -286
  484. package/lib/index-Dl3Yl0yb.js.map +1 -0
  485. package/lib/index-LNp6rxyU.js.map +1 -1
  486. package/lib/index.esm-9-TF9KQB.js +692 -0
  487. package/lib/index.esm-9-TF9KQB.js.map +1 -0
  488. package/lib/index.esm-CrSoEshU.js +1207 -0
  489. package/lib/index.esm-CrSoEshU.js.map +1 -0
  490. package/lib/invariant-Caa8-XvF.js.map +1 -1
  491. package/lib/joinUrl-BTy9bvoK.js +20 -0
  492. package/lib/joinUrl-BTy9bvoK.js.map +1 -0
  493. package/lib/jsx-runtime-Bdg6XQ1m.js +446 -0
  494. package/lib/jsx-runtime-Bdg6XQ1m.js.map +1 -0
  495. package/lib/post-processors/removeExtensions.js +11 -0
  496. package/lib/post-processors/removeExtensions.js.map +1 -0
  497. package/lib/post-processors/removeParameters.js +48 -0
  498. package/lib/post-processors/removeParameters.js.map +1 -0
  499. package/lib/post-processors/removePaths.js +28 -0
  500. package/lib/post-processors/removePaths.js.map +1 -0
  501. package/lib/post-processors/traverse.js +15 -0
  502. package/lib/post-processors/traverse.js.map +1 -0
  503. package/lib/{prism-bash.min-DadFsM4Z.js → prism-bash.min-HHIMdNJ_.js} +4 -4
  504. package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-HHIMdNJ_.js.map} +1 -1
  505. package/lib/prism-csharp.min-bQAo2pmx.js +63 -0
  506. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-bQAo2pmx.js.map} +1 -1
  507. package/lib/prism-java.min-BpvsOuIa.js +35 -0
  508. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BpvsOuIa.js.map} +1 -1
  509. package/lib/{prism-markdown.min-F3U-vPBi.js → prism-markdown.min-C0Qn0m-5.js} +30 -30
  510. package/lib/{prism-markdown.min-F3U-vPBi.js.map → prism-markdown.min-C0Qn0m-5.js.map} +1 -1
  511. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  512. package/lib/prism-ruby.min-Dx9KO9ds.js +38 -0
  513. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-Dx9KO9ds.js.map} +1 -1
  514. package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
  515. package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
  516. package/lib/state-mM7uaXTW.js +202 -0
  517. package/lib/state-mM7uaXTW.js.map +1 -0
  518. package/lib/ui/Accordion.js +2 -2
  519. package/lib/ui/Accordion.js.map +1 -1
  520. package/lib/ui/ActionButton.js +24 -0
  521. package/lib/ui/ActionButton.js.map +1 -0
  522. package/lib/ui/Alert.js +3 -3
  523. package/lib/ui/Alert.js.map +1 -1
  524. package/lib/ui/AlertDialog.js +2 -2
  525. package/lib/ui/AlertDialog.js.map +1 -1
  526. package/lib/ui/Badge.js +5 -4
  527. package/lib/ui/Badge.js.map +1 -1
  528. package/lib/ui/Breadcrumb.js +2 -2
  529. package/lib/ui/Breadcrumb.js.map +1 -1
  530. package/lib/ui/Button.js +3 -3
  531. package/lib/ui/Button.js.map +1 -1
  532. package/lib/ui/Callout.js +2 -2
  533. package/lib/ui/Callout.js.map +1 -1
  534. package/lib/ui/Card.js +9 -9
  535. package/lib/ui/Card.js.map +1 -1
  536. package/lib/ui/Carousel.js +408 -402
  537. package/lib/ui/Carousel.js.map +1 -1
  538. package/lib/ui/Checkbox.js +26 -15
  539. package/lib/ui/Checkbox.js.map +1 -1
  540. package/lib/ui/Command.js +80 -501
  541. package/lib/ui/Command.js.map +1 -1
  542. package/lib/ui/Dialog.js +2 -2
  543. package/lib/ui/Dialog.js.map +1 -1
  544. package/lib/ui/Drawer.js +515 -514
  545. package/lib/ui/Drawer.js.map +1 -1
  546. package/lib/ui/DropdownMenu.js +2 -2
  547. package/lib/ui/DropdownMenu.js.map +1 -1
  548. package/lib/ui/Form.js +3 -3
  549. package/lib/ui/Form.js.map +1 -1
  550. package/lib/ui/HoverCard.js +2 -2
  551. package/lib/ui/Input.js +2 -2
  552. package/lib/ui/Input.js.map +1 -1
  553. package/lib/ui/Label.js +3 -3
  554. package/lib/ui/Pagination.js +8 -8
  555. package/lib/ui/Pagination.js.map +1 -1
  556. package/lib/ui/Popover.js +2 -2
  557. package/lib/ui/Popover.js.map +1 -1
  558. package/lib/ui/Progress.js +2 -2
  559. package/lib/ui/Progress.js.map +1 -1
  560. package/lib/ui/RadioGroup.js +2 -2
  561. package/lib/ui/RadioGroup.js.map +1 -1
  562. package/lib/ui/ScrollArea.js +2 -2
  563. package/lib/ui/ScrollArea.js.map +1 -1
  564. package/lib/ui/Select.js +2 -2
  565. package/lib/ui/Select.js.map +1 -1
  566. package/lib/ui/Skeleton.js +2 -2
  567. package/lib/ui/Skeleton.js.map +1 -1
  568. package/lib/ui/Slider.js +2 -2
  569. package/lib/ui/Switch.js +2 -2
  570. package/lib/ui/Switch.js.map +1 -1
  571. package/lib/ui/Tabs.js +2 -2
  572. package/lib/ui/Textarea.js +2 -2
  573. package/lib/ui/Textarea.js.map +1 -1
  574. package/lib/ui/Toggle.js +3 -3
  575. package/lib/ui/Toggle.js.map +1 -1
  576. package/lib/ui/ToggleGroup.js +2 -2
  577. package/lib/ui/ToggleGroup.js.map +1 -1
  578. package/lib/ui/Tooltip.js +2 -2
  579. package/lib/{useExposedProps-ChOIUaS4.js → useExposedProps-BLKFBylA.js} +2 -2
  580. package/lib/useExposedProps-BLKFBylA.js.map +1 -0
  581. package/lib/useScrollToAnchor-S-NbG5Za.js +288 -0
  582. package/lib/useScrollToAnchor-S-NbG5Za.js.map +1 -0
  583. package/lib/zudoku.auth-auth0.js +24 -20
  584. package/lib/zudoku.auth-auth0.js.map +1 -1
  585. package/lib/zudoku.auth-clerk.js +79 -51
  586. package/lib/zudoku.auth-clerk.js.map +1 -1
  587. package/lib/zudoku.auth-openid.js +409 -410
  588. package/lib/zudoku.auth-openid.js.map +1 -1
  589. package/lib/zudoku.components.js +855 -1120
  590. package/lib/zudoku.components.js.map +1 -1
  591. package/lib/zudoku.plugin-api-catalog.js +123 -0
  592. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  593. package/lib/zudoku.plugin-api-keys.js +40 -39
  594. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  595. package/lib/zudoku.plugin-custom-pages.js +4 -4
  596. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  597. package/lib/zudoku.plugin-markdown.js +16 -15
  598. package/lib/zudoku.plugin-markdown.js.map +1 -1
  599. package/lib/zudoku.plugin-openapi.js +6 -10
  600. package/lib/zudoku.plugin-openapi.js.map +1 -1
  601. package/lib/zudoku.plugin-redirect.js +1 -1
  602. package/lib/zudoku.plugin-redirect.js.map +1 -1
  603. package/lib/zudoku.plugin-search-inkeep.js +53 -24
  604. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  605. package/package.json +109 -82
  606. package/src/app/demo.tsx +1 -5
  607. package/src/app/entry.client.tsx +16 -1
  608. package/src/app/entry.server.tsx +62 -55
  609. package/src/app/main.css +58 -45
  610. package/src/app/main.tsx +36 -13
  611. package/src/app/sentry.ts +24 -0
  612. package/src/app/standalone.tsx +1 -5
  613. package/src/app/tailwind.ts +67 -52
  614. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
  615. package/src/lib/authentication/authentication.ts +3 -3
  616. package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
  617. package/src/lib/authentication/components/SignIn.tsx +1 -1
  618. package/src/lib/authentication/components/SignOut.tsx +3 -2
  619. package/src/lib/authentication/hook.ts +1 -3
  620. package/src/lib/authentication/providers/auth0.tsx +16 -14
  621. package/src/lib/authentication/providers/clerk.tsx +38 -7
  622. package/src/lib/authentication/providers/openid.tsx +41 -40
  623. package/src/lib/authentication/state.ts +50 -9
  624. package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
  625. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  626. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  627. package/src/lib/components/AnchorLink.tsx +6 -3
  628. package/src/lib/components/Autocomplete.tsx +111 -0
  629. package/src/lib/components/Bootstrap.tsx +36 -16
  630. package/src/lib/components/ClientOnly.tsx +6 -3
  631. package/src/lib/components/DeveloperHint.tsx +6 -1
  632. package/src/lib/components/Header.tsx +81 -49
  633. package/src/lib/components/Heading.tsx +13 -13
  634. package/src/lib/components/Layout.tsx +55 -38
  635. package/src/lib/components/Markdown.tsx +15 -16
  636. package/src/lib/components/MobileTopNavigation.tsx +27 -30
  637. package/src/lib/components/NotFoundPage.tsx +1 -1
  638. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  639. package/src/lib/components/ReactMarkdown.tsx +264 -0
  640. package/src/lib/components/Search.tsx +3 -3
  641. package/src/lib/components/SlotletProvider.tsx +1 -1
  642. package/src/lib/components/StatusPage.tsx +91 -0
  643. package/src/lib/components/SyntaxHighlight.tsx +95 -50
  644. package/src/lib/components/ThemeSwitch.tsx +25 -0
  645. package/src/lib/components/TopNavigation.tsx +28 -20
  646. package/src/lib/components/Zudoku.tsx +108 -0
  647. package/src/lib/components/cache.ts +15 -0
  648. package/src/lib/components/context/ViewportAnchorContext.tsx +20 -6
  649. package/src/lib/components/context/ZudokuContext.ts +15 -18
  650. package/src/lib/components/context/ZudokuProvider.tsx +2 -2
  651. package/src/lib/components/index.ts +17 -7
  652. package/src/lib/components/navigation/Sidebar.tsx +20 -10
  653. package/src/lib/components/navigation/SidebarBadge.tsx +13 -11
  654. package/src/lib/components/navigation/SidebarCategory.tsx +8 -11
  655. package/src/lib/components/navigation/SidebarItem.tsx +12 -15
  656. package/src/lib/components/navigation/SidebarWrapper.tsx +3 -2
  657. package/src/lib/components/navigation/utils.ts +3 -3
  658. package/src/lib/core/RouteGuard.tsx +35 -0
  659. package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +13 -20
  660. package/src/lib/core/plugins.ts +17 -17
  661. package/src/lib/errors/ErrorAlert.tsx +2 -1
  662. package/src/lib/errors/RouterError.tsx +1 -1
  663. package/src/lib/oas/graphql/circular.ts +29 -0
  664. package/src/lib/oas/graphql/index.ts +51 -35
  665. package/src/lib/oas/parser/dereference/index.ts +8 -4
  666. package/src/lib/oas/parser/upgrade/index.ts +22 -28
  667. package/src/lib/plugins/api-catalog/Catalog.tsx +123 -0
  668. package/src/lib/plugins/api-catalog/index.tsx +64 -0
  669. package/src/lib/plugins/api-keys/CreateApiKey.tsx +1 -1
  670. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  671. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  672. package/src/lib/plugins/api-keys/index.tsx +13 -10
  673. package/src/lib/plugins/custom-pages/index.tsx +3 -3
  674. package/src/lib/plugins/markdown/MdxPage.tsx +36 -2
  675. package/src/lib/plugins/markdown/index.tsx +7 -4
  676. package/src/lib/plugins/markdown/resolver.ts +2 -4
  677. package/src/lib/plugins/openapi/CollapsibleCode.tsx +83 -0
  678. package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
  679. package/src/lib/plugins/openapi/Endpoint.tsx +8 -13
  680. package/src/lib/plugins/openapi/OperationList.tsx +84 -44
  681. package/src/lib/plugins/openapi/OperationListItem.tsx +33 -4
  682. package/src/lib/plugins/openapi/ParameterListItem.tsx +35 -31
  683. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +7 -0
  684. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +14 -34
  685. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +46 -58
  686. package/src/lib/plugins/openapi/Route.tsx +42 -11
  687. package/src/lib/plugins/openapi/Sidecar.tsx +89 -82
  688. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  689. package/src/lib/plugins/openapi/SidecarExamples.tsx +163 -0
  690. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
  691. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  692. package/src/lib/plugins/openapi/client/createServer.ts +8 -2
  693. package/src/lib/plugins/openapi/client/useCreateQuery.ts +18 -0
  694. package/src/lib/plugins/openapi/context.tsx +2 -2
  695. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  696. package/src/lib/plugins/openapi/graphql/gql.ts +12 -29
  697. package/src/lib/plugins/openapi/graphql/graphql.ts +236 -665
  698. package/src/lib/plugins/openapi/index.tsx +85 -105
  699. package/src/lib/plugins/openapi/interfaces.ts +31 -2
  700. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +51 -0
  701. package/src/lib/plugins/openapi/playground/Headers.tsx +139 -41
  702. package/src/lib/plugins/openapi/playground/PathParams.tsx +72 -63
  703. package/src/lib/plugins/openapi/playground/Playground.tsx +181 -74
  704. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
  705. package/src/lib/plugins/openapi/playground/QueryParams.tsx +87 -91
  706. package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +202 -0
  707. package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +27 -0
  708. package/src/lib/plugins/openapi/post-processors/removeParameters.test.ts +148 -0
  709. package/src/lib/plugins/openapi/post-processors/removeParameters.ts +101 -0
  710. package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +126 -0
  711. package/src/lib/plugins/openapi/post-processors/removePaths.ts +55 -0
  712. package/src/lib/plugins/openapi/post-processors/traverse.ts +1 -0
  713. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +29 -8
  714. package/src/lib/plugins/openapi/schema/SchemaView.tsx +5 -2
  715. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +44 -43
  716. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  717. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  718. package/src/lib/plugins/redirect/index.tsx +4 -4
  719. package/src/lib/plugins/search-inkeep/index.tsx +80 -25
  720. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  721. package/src/lib/ui/ActionButton.tsx +28 -0
  722. package/src/lib/ui/Badge.tsx +2 -1
  723. package/src/lib/ui/Card.tsx +1 -1
  724. package/src/lib/ui/Checkbox.tsx +24 -7
  725. package/src/lib/ui/Command.tsx +20 -0
  726. package/src/lib/util/MdxComponents.tsx +5 -9
  727. package/src/lib/util/createVariantComponent.tsx +2 -2
  728. package/src/lib/util/joinUrl.ts +57 -0
  729. package/src/lib/util/traverse.ts +35 -0
  730. package/src/lib/util/useExposedProps.tsx +1 -1
  731. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  732. package/src/lib/util/useOnScreen.ts +32 -0
  733. package/src/lib/util/useScrollToAnchor.ts +33 -16
  734. package/src/lib/util/useScrollToTop.ts +1 -1
  735. package/dist/lib/components/DevPortal.js.map +0 -1
  736. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  737. package/dist/lib/components/context/ThemeContext.js +0 -7
  738. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  739. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  740. package/dist/lib/components/context/ThemeProvider.js +0 -23
  741. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  742. package/dist/lib/core/DevPortalContext.js.map +0 -1
  743. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  744. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  745. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  746. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  747. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  748. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  749. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  750. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  751. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  752. package/dist/lib/plugins/openapi/client/worker.js +0 -20
  753. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  754. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  755. package/dist/lib/plugins/openapi-worker.js +0 -2
  756. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  757. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  758. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  759. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  760. package/dist/lib/themeToggle.d.ts +0 -1
  761. package/dist/lib/themeToggle.js +0 -7
  762. package/dist/lib/themeToggle.js.map +0 -1
  763. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  764. package/dist/lib/util/createWaitForNotify.js +0 -15
  765. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  766. package/dist/vite/plugin-custom-css.js +0 -55
  767. package/dist/vite/plugin-custom-css.js.map +0 -1
  768. package/dist/vite/plugin-html-transform.d.ts +0 -2
  769. package/dist/vite/plugin-html-transform.js +0 -15
  770. package/dist/vite/plugin-html-transform.js.map +0 -1
  771. package/lib/AnchorLink-BbB2q-jx.js +0 -705
  772. package/lib/AnchorLink-BbB2q-jx.js.map +0 -1
  773. package/lib/AuthenticationPlugin-C9BHGXlE.js +0 -55
  774. package/lib/AuthenticationPlugin-C9BHGXlE.js.map +0 -1
  775. package/lib/ClientOnly-CVN6leDu.js.map +0 -1
  776. package/lib/DeveloperHint-DHdLXGHA.js +0 -16
  777. package/lib/DeveloperHint-DHdLXGHA.js.map +0 -1
  778. package/lib/Dialog-k70Qfukb.js +0 -67
  779. package/lib/Dialog-k70Qfukb.js.map +0 -1
  780. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  781. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  782. package/lib/Markdown-BDcCAWwm.js +0 -18059
  783. package/lib/Markdown-BDcCAWwm.js.map +0 -1
  784. package/lib/MdxPage-DKMH_t0f.js +0 -174
  785. package/lib/MdxPage-DKMH_t0f.js.map +0 -1
  786. package/lib/OperationList-Tj7ubW_t.js +0 -604
  787. package/lib/OperationList-Tj7ubW_t.js.map +0 -1
  788. package/lib/Route-C3DGB6OS.js +0 -13
  789. package/lib/Route-C3DGB6OS.js.map +0 -1
  790. package/lib/Select-Bagt3Bme.js.map +0 -1
  791. package/lib/SlotletProvider-Da7eFgd2.js +0 -241
  792. package/lib/SlotletProvider-Da7eFgd2.js.map +0 -1
  793. package/lib/Spinner-C6zroowC.js +0 -40
  794. package/lib/Spinner-C6zroowC.js.map +0 -1
  795. package/lib/ZudokuContext-BKXGJTmu.js +0 -1222
  796. package/lib/ZudokuContext-BKXGJTmu.js.map +0 -1
  797. package/lib/assets/index-B_Jk_Yzp.js +0 -4820
  798. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  799. package/lib/assets/worker-Bf8vjASY.js +0 -18197
  800. package/lib/assets/worker-Bf8vjASY.js.map +0 -1
  801. package/lib/cn-BmFQLtkS.js.map +0 -1
  802. package/lib/hook-sn0zMTkE.js.map +0 -1
  803. package/lib/index-AjWCJNGC.js +0 -5690
  804. package/lib/index-AjWCJNGC.js.map +0 -1
  805. package/lib/index-BuAyrJe3.js +0 -46
  806. package/lib/index-BuAyrJe3.js.map +0 -1
  807. package/lib/index-CRo94sKK.js +0 -1783
  808. package/lib/index-CRo94sKK.js.map +0 -1
  809. package/lib/index-CkwDvuPt.js.map +0 -1
  810. package/lib/index.esm-C5mr_sKO.js +0 -1193
  811. package/lib/index.esm-C5mr_sKO.js.map +0 -1
  812. package/lib/jsx-runtime-B6kdoens.js +0 -635
  813. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  814. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  815. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  816. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  817. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  818. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  819. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  820. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  821. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  822. package/lib/router-BsfSoK2j.js +0 -3024
  823. package/lib/router-BsfSoK2j.js.map +0 -1
  824. package/lib/state-CsuHT8ZO.js +0 -183
  825. package/lib/state-CsuHT8ZO.js.map +0 -1
  826. package/lib/urql-core-KJnLL26g.js +0 -1455
  827. package/lib/urql-core-KJnLL26g.js.map +0 -1
  828. package/lib/useExposedProps-ChOIUaS4.js.map +0 -1
  829. package/lib/zudoku.openapi-worker.js +0 -16341
  830. package/lib/zudoku.openapi-worker.js.map +0 -1
  831. package/src/lib/components/DevPortal.tsx +0 -111
  832. package/src/lib/components/context/ThemeContext.tsx +0 -8
  833. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  834. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
  835. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
  836. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  837. package/src/lib/plugins/openapi/client/worker.ts +0 -30
  838. package/src/lib/plugins/openapi-worker.ts +0 -1
  839. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  840. package/src/lib/themeToggle.ts +0 -7
  841. package/src/lib/util/createWaitForNotify.ts +0 -18
  842. /package/dist/lib/plugins/openapi/{client/worker.d.ts → post-processors/removeExtensions.test.d.ts} +0 -0
package/lib/ui/Drawer.js CHANGED
@@ -1,14 +1,14 @@
1
- import { j as X } from "../jsx-runtime-B6kdoens.js";
2
- import * as wt from "react";
3
- import r, { useMemo as Se, useLayoutEffect as Re, useEffect as De } from "react";
1
+ import { j as X } from "../jsx-runtime-Bdg6XQ1m.js";
2
+ import * as pe from "react";
3
+ import r, { useMemo as St, useLayoutEffect as Rt, useEffect as Dt } from "react";
4
4
  import * as Z from "@radix-ui/react-dialog";
5
- import { c as it } from "../cn-BmFQLtkS.js";
6
- function Te(t) {
5
+ import { c as oe } from "../cn-qaFjX9_3.js";
6
+ function Tt(e) {
7
7
  if (typeof document > "u") return;
8
- let n = document.head || document.getElementsByTagName("head")[0], e = document.createElement("style");
9
- e.type = "text/css", n.appendChild(e), e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
8
+ let n = document.head || document.getElementsByTagName("head")[0], t = document.createElement("style");
9
+ t.type = "text/css", n.appendChild(t), t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
10
10
  }
11
- const qt = r.createContext({
11
+ const qe = r.createContext({
12
12
  drawerRef: {
13
13
  current: null
14
14
  },
@@ -55,57 +55,57 @@ const qt = r.createContext({
55
55
  noBodyStyles: !1,
56
56
  container: null,
57
57
  autoFocus: !1
58
- }), st = () => {
59
- const t = r.useContext(qt);
60
- if (!t)
58
+ }), ie = () => {
59
+ const e = r.useContext(qe);
60
+ if (!e)
61
61
  throw new Error("useDrawerContext must be used within a Drawer.Root");
62
- return t;
62
+ return e;
63
63
  };
64
- Te(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
64
+ Tt(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
65
65
  [data-state=closed]
66
66
  ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);
67
- function Ee() {
68
- const t = navigator.userAgent;
69
- return typeof window < "u" && (/Firefox/.test(t) && /Mobile/.test(t) || // Android Firefox
70
- /FxiOS/.test(t));
67
+ function Et() {
68
+ const e = navigator.userAgent;
69
+ return typeof window < "u" && (/Firefox/.test(e) && /Mobile/.test(e) || // Android Firefox
70
+ /FxiOS/.test(e));
71
71
  }
72
- function xe() {
73
- return Mt(/^Mac/);
72
+ function xt() {
73
+ return Me(/^Mac/);
74
74
  }
75
- function Oe() {
76
- return Mt(/^iPhone/);
75
+ function Ot() {
76
+ return Me(/^iPhone/);
77
77
  }
78
- function Wt() {
78
+ function We() {
79
79
  return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
80
80
  }
81
- function Ce() {
82
- return Mt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
83
- xe() && navigator.maxTouchPoints > 1;
81
+ function Ct() {
82
+ return Me(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
83
+ xt() && navigator.maxTouchPoints > 1;
84
84
  }
85
- function Xt() {
86
- return Oe() || Ce();
85
+ function Xe() {
86
+ return Ot() || Ct();
87
87
  }
88
- function Mt(t) {
89
- return typeof window < "u" && window.navigator != null ? t.test(window.navigator.platform) : void 0;
88
+ function Me(e) {
89
+ return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
90
90
  }
91
- const $e = 24, Ae = typeof window < "u" ? Re : De;
92
- function zt(...t) {
91
+ const $t = 24, At = typeof window < "u" ? Rt : Dt;
92
+ function ze(...e) {
93
93
  return (...n) => {
94
- for (let e of t)
95
- typeof e == "function" && e(...n);
94
+ for (let t of e)
95
+ typeof t == "function" && t(...n);
96
96
  };
97
97
  }
98
- const xt = typeof document < "u" && window.visualViewport;
99
- function Vt(t) {
100
- let n = window.getComputedStyle(t);
98
+ const xe = typeof document < "u" && window.visualViewport;
99
+ function Ve(e) {
100
+ let n = window.getComputedStyle(e);
101
101
  return /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
102
102
  }
103
- function Kt(t) {
104
- for (Vt(t) && (t = t.parentElement); t && !Vt(t); )
105
- t = t.parentElement;
106
- return t || document.scrollingElement || document.documentElement;
103
+ function Ke(e) {
104
+ for (Ve(e) && (e = e.parentElement); e && !Ve(e); )
105
+ e = e.parentElement;
106
+ return e || document.scrollingElement || document.documentElement;
107
107
  }
108
- const Ne = /* @__PURE__ */ new Set([
108
+ const Nt = /* @__PURE__ */ new Set([
109
109
  "checkbox",
110
110
  "radio",
111
111
  "range",
@@ -116,114 +116,114 @@ const Ne = /* @__PURE__ */ new Set([
116
116
  "submit",
117
117
  "reset"
118
118
  ]);
119
- let yt = 0, Ot;
120
- function Me(t = {}) {
121
- let { isDisabled: n } = t;
122
- Ae(() => {
119
+ let ve = 0, Oe;
120
+ function Mt(e = {}) {
121
+ let { isDisabled: n } = e;
122
+ At(() => {
123
123
  if (!n)
124
- return yt++, yt === 1 && Xt() && (Ot = Pe()), () => {
125
- yt--, yt === 0 && (Ot == null || Ot());
124
+ return ve++, ve === 1 && Xe() && (Oe = Pt()), () => {
125
+ ve--, ve === 0 && (Oe == null || Oe());
126
126
  };
127
127
  }, [
128
128
  n
129
129
  ]);
130
130
  }
131
- function Pe() {
132
- let t, n = 0, e = (p) => {
133
- t = Kt(p.target), !(t === document.documentElement && t === document.body) && (n = p.changedTouches[0].pageY);
134
- }, a = (p) => {
135
- if (!t || t === document.documentElement || t === document.body) {
136
- p.preventDefault();
131
+ function Pt() {
132
+ let e, n = 0, t = (m) => {
133
+ e = Ke(m.target), !(e === document.documentElement && e === document.body) && (n = m.changedTouches[0].pageY);
134
+ }, a = (m) => {
135
+ if (!e || e === document.documentElement || e === document.body) {
136
+ m.preventDefault();
137
137
  return;
138
138
  }
139
- let w = p.changedTouches[0].pageY, B = t.scrollTop, k = t.scrollHeight - t.clientHeight;
140
- k !== 0 && ((B <= 0 && w > n || B >= k && w < n) && p.preventDefault(), n = w);
141
- }, i = (p) => {
142
- let w = p.target;
143
- At(w) && w !== document.activeElement && (p.preventDefault(), w.style.transform = "translateY(-2000px)", w.focus(), requestAnimationFrame(() => {
144
- w.style.transform = "";
139
+ let p = m.changedTouches[0].pageY, B = e.scrollTop, k = e.scrollHeight - e.clientHeight;
140
+ k !== 0 && ((B <= 0 && p > n || B >= k && p < n) && m.preventDefault(), n = p);
141
+ }, i = (m) => {
142
+ let p = m.target;
143
+ Ae(p) && p !== document.activeElement && (m.preventDefault(), p.style.transform = "translateY(-2000px)", p.focus(), requestAnimationFrame(() => {
144
+ p.style.transform = "";
145
145
  }));
146
- }, o = (p) => {
147
- let w = p.target;
148
- At(w) && (w.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
149
- w.style.transform = "", xt && (xt.height < window.innerHeight ? requestAnimationFrame(() => {
150
- Yt(w);
151
- }) : xt.addEventListener("resize", () => Yt(w), {
146
+ }, o = (m) => {
147
+ let p = m.target;
148
+ Ae(p) && (p.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
149
+ p.style.transform = "", xe && (xe.height < window.innerHeight ? requestAnimationFrame(() => {
150
+ Ye(p);
151
+ }) : xe.addEventListener("resize", () => Ye(p), {
152
152
  once: !0
153
153
  }));
154
154
  }));
155
- }, f = () => {
155
+ }, g = () => {
156
156
  window.scrollTo(0, 0);
157
- }, m = window.pageXOffset, R = window.pageYOffset, T = zt(Ie(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
157
+ }, u = window.pageXOffset, b = window.pageYOffset, T = ze(It(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
158
158
  window.scrollTo(0, 0);
159
- let g = zt(mt(document, "touchstart", e, {
159
+ let h = ze(fe(document, "touchstart", t, {
160
160
  passive: !1,
161
161
  capture: !0
162
- }), mt(document, "touchmove", a, {
162
+ }), fe(document, "touchmove", a, {
163
163
  passive: !1,
164
164
  capture: !0
165
- }), mt(document, "touchend", i, {
165
+ }), fe(document, "touchend", i, {
166
166
  passive: !1,
167
167
  capture: !0
168
- }), mt(document, "focus", o, !0), mt(window, "scroll", f));
168
+ }), fe(document, "focus", o, !0), fe(window, "scroll", g));
169
169
  return () => {
170
- T(), g(), window.scrollTo(m, R);
170
+ T(), h(), window.scrollTo(u, b);
171
171
  };
172
172
  }
173
- function Ie(t, n, e) {
174
- let a = t.style[n];
175
- return t.style[n] = e, () => {
176
- t.style[n] = a;
173
+ function It(e, n, t) {
174
+ let a = e.style[n];
175
+ return e.style[n] = t, () => {
176
+ e.style[n] = a;
177
177
  };
178
178
  }
179
- function mt(t, n, e, a) {
180
- return t.addEventListener(n, e, a), () => {
181
- t.removeEventListener(n, e, a);
179
+ function fe(e, n, t, a) {
180
+ return e.addEventListener(n, t, a), () => {
181
+ e.removeEventListener(n, t, a);
182
182
  };
183
183
  }
184
- function Yt(t) {
184
+ function Ye(e) {
185
185
  let n = document.scrollingElement || document.documentElement;
186
- for (; t && t !== n; ) {
187
- let e = Kt(t);
188
- if (e !== document.documentElement && e !== document.body && e !== t) {
189
- let a = e.getBoundingClientRect().top, i = t.getBoundingClientRect().top, o = t.getBoundingClientRect().bottom;
190
- const f = e.getBoundingClientRect().bottom + $e;
191
- o > f && (e.scrollTop += i - a);
186
+ for (; e && e !== n; ) {
187
+ let t = Ke(e);
188
+ if (t !== document.documentElement && t !== document.body && t !== e) {
189
+ let a = t.getBoundingClientRect().top, i = e.getBoundingClientRect().top, o = e.getBoundingClientRect().bottom;
190
+ const g = t.getBoundingClientRect().bottom + $t;
191
+ o > g && (t.scrollTop += i - a);
192
192
  }
193
- t = e.parentElement;
193
+ e = t.parentElement;
194
194
  }
195
195
  }
196
- function At(t) {
197
- return t instanceof HTMLInputElement && !Ne.has(t.type) || t instanceof HTMLTextAreaElement || t instanceof HTMLElement && t.isContentEditable;
196
+ function Ae(e) {
197
+ return e instanceof HTMLInputElement && !Nt.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
198
198
  }
199
- function _e(t, n) {
200
- typeof t == "function" ? t(n) : t != null && (t.current = n);
199
+ function _t(e, n) {
200
+ typeof e == "function" ? e(n) : e != null && (e.current = n);
201
201
  }
202
- function He(...t) {
203
- return (n) => t.forEach((e) => _e(e, n));
202
+ function Ht(...e) {
203
+ return (n) => e.forEach((t) => _t(t, n));
204
204
  }
205
- function Gt(...t) {
206
- return wt.useCallback(He(...t), t);
205
+ function Ge(...e) {
206
+ return pe.useCallback(Ht(...e), e);
207
207
  }
208
- const Jt = /* @__PURE__ */ new WeakMap();
209
- function C(t, n, e = !1) {
210
- if (!t || !(t instanceof HTMLElement)) return;
208
+ const Je = /* @__PURE__ */ new WeakMap();
209
+ function $(e, n, t = !1) {
210
+ if (!e || !(e instanceof HTMLElement)) return;
211
211
  let a = {};
212
212
  Object.entries(n).forEach(([i, o]) => {
213
213
  if (i.startsWith("--")) {
214
- t.style.setProperty(i, o);
214
+ e.style.setProperty(i, o);
215
215
  return;
216
216
  }
217
- a[i] = t.style[i], t.style[i] = o;
218
- }), !e && Jt.set(t, a);
217
+ a[i] = e.style[i], e.style[i] = o;
218
+ }), !t && Je.set(e, a);
219
219
  }
220
- function ke(t, n) {
221
- if (!t || !(t instanceof HTMLElement)) return;
222
- let e = Jt.get(t);
223
- e && (t.style[n] = e[n]);
220
+ function kt(e, n) {
221
+ if (!e || !(e instanceof HTMLElement)) return;
222
+ let t = Je.get(e);
223
+ t && (e.style[n] = t[n]);
224
224
  }
225
- const $ = (t) => {
226
- switch (t) {
225
+ const C = (e) => {
226
+ switch (e) {
227
227
  case "top":
228
228
  case "bottom":
229
229
  return !0;
@@ -231,34 +231,34 @@ const $ = (t) => {
231
231
  case "right":
232
232
  return !1;
233
233
  default:
234
- return t;
234
+ return e;
235
235
  }
236
236
  };
237
- function bt(t, n) {
238
- if (!t)
237
+ function ye(e, n) {
238
+ if (!e)
239
239
  return null;
240
- const e = window.getComputedStyle(t), a = (
240
+ const t = window.getComputedStyle(e), a = (
241
241
  // @ts-ignore
242
- e.transform || e.webkitTransform || e.mozTransform
242
+ t.transform || t.webkitTransform || t.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
- function Le(t) {
248
- return 8 * (Math.log(t + 1) - 2);
247
+ function Lt(e) {
248
+ return 8 * (Math.log(e + 1) - 2);
249
249
  }
250
- function Ct(t, n) {
251
- if (!t) return () => {
250
+ function Ce(e, n) {
251
+ if (!e) return () => {
252
252
  };
253
- const e = t.style.cssText;
254
- return Object.assign(t.style, n), () => {
255
- t.style.cssText = e;
253
+ const t = e.style.cssText;
254
+ return Object.assign(e.style, n), () => {
255
+ e.style.cssText = t;
256
256
  };
257
257
  }
258
- function Be(...t) {
258
+ function Bt(...e) {
259
259
  return (...n) => {
260
- for (const e of t)
261
- typeof e == "function" && e(...n);
260
+ for (const t of e)
261
+ typeof t == "function" && t(...n);
262
262
  };
263
263
  }
264
264
  const x = {
@@ -269,76 +269,76 @@ const x = {
269
269
  0,
270
270
  1
271
271
  ]
272
- }, Qt = 0.4, Fe = 0.25, Ue = 100, Zt = 8, nt = 16, Nt = 26, $t = "vaul-dragging";
273
- function te(t) {
274
- const n = r.useRef(t);
272
+ }, Qe = 0.4, Ft = 0.25, Ut = 100, Ze = 8, be = 16, Ne = 26, $e = "vaul-dragging";
273
+ function et(e) {
274
+ const n = r.useRef(e);
275
275
  return r.useEffect(() => {
276
- n.current = t;
277
- }), r.useMemo(() => (...e) => n.current == null ? void 0 : n.current.call(n, ...e), []);
276
+ n.current = e;
277
+ }), r.useMemo(() => (...t) => n.current == null ? void 0 : n.current.call(n, ...t), []);
278
278
  }
279
- function je({ defaultProp: t, onChange: n }) {
280
- const e = r.useState(t), [a] = e, i = r.useRef(a), o = te(n);
279
+ function jt({ defaultProp: e, onChange: n }) {
280
+ const t = r.useState(e), [a] = t, i = r.useRef(a), o = et(n);
281
281
  return r.useEffect(() => {
282
282
  i.current !== a && (o(a), i.current = a);
283
283
  }, [
284
284
  a,
285
285
  i,
286
286
  o
287
- ]), e;
287
+ ]), t;
288
288
  }
289
- function ee({ prop: t, defaultProp: n, onChange: e = () => {
289
+ function tt({ prop: e, defaultProp: n, onChange: t = () => {
290
290
  } }) {
291
- const [a, i] = je({
291
+ const [a, i] = jt({
292
292
  defaultProp: n,
293
- onChange: e
294
- }), o = t !== void 0, f = o ? t : a, m = te(e), R = r.useCallback((T) => {
293
+ onChange: t
294
+ }), o = e !== void 0, g = o ? e : a, u = et(t), b = r.useCallback((T) => {
295
295
  if (o) {
296
- const p = typeof T == "function" ? T(t) : T;
297
- p !== t && m(p);
296
+ const m = typeof T == "function" ? T(e) : T;
297
+ m !== e && u(m);
298
298
  } else
299
299
  i(T);
300
300
  }, [
301
301
  o,
302
- t,
302
+ e,
303
303
  i,
304
- m
304
+ u
305
305
  ]);
306
306
  return [
307
- f,
308
- R
307
+ g,
308
+ b
309
309
  ];
310
310
  }
311
- function We({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e, drawerRef: a, overlayRef: i, fadeFromIndex: o, onSnapPointChange: f, direction: m = "bottom", container: R, snapToSequentialPoint: T }) {
312
- const [g, p] = ee({
313
- prop: t,
314
- defaultProp: e == null ? void 0 : e[0],
311
+ function Wt({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: t, drawerRef: a, overlayRef: i, fadeFromIndex: o, onSnapPointChange: g, direction: u = "bottom", container: b, snapToSequentialPoint: T }) {
312
+ const [h, m] = tt({
313
+ prop: e,
314
+ defaultProp: t == null ? void 0 : t[0],
315
315
  onChange: n
316
- }), [w, B] = r.useState(typeof window < "u" ? {
316
+ }), [p, B] = r.useState(typeof window < "u" ? {
317
317
  innerWidth: window.innerWidth,
318
318
  innerHeight: window.innerHeight
319
319
  } : void 0);
320
320
  r.useEffect(() => {
321
- function u() {
321
+ function c() {
322
322
  B({
323
323
  innerWidth: window.innerWidth,
324
324
  innerHeight: window.innerHeight
325
325
  });
326
326
  }
327
- return window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
327
+ return window.addEventListener("resize", c), () => window.removeEventListener("resize", c);
328
328
  }, []);
329
- const k = r.useMemo(() => g === (e == null ? void 0 : e[e.length - 1]) || null, [
330
- e,
331
- g
329
+ const k = r.useMemo(() => h === (t == null ? void 0 : t[t.length - 1]) || null, [
330
+ t,
331
+ h
332
332
  ]), E = r.useMemo(() => {
333
- var u;
334
- return (u = e == null ? void 0 : e.findIndex((b) => b === g)) != null ? u : null;
333
+ var c;
334
+ return (c = t == null ? void 0 : t.findIndex((S) => S === h)) != null ? c : null;
335
335
  }, [
336
- e,
337
- g
338
- ]), F = e && e.length > 0 && (o || o === 0) && !Number.isNaN(o) && e[o] === g || !e, h = r.useMemo(() => {
339
- const u = R ? {
340
- width: R.getBoundingClientRect().width,
341
- height: R.getBoundingClientRect().height
336
+ t,
337
+ h
338
+ ]), F = t && t.length > 0 && (o || o === 0) && !Number.isNaN(o) && t[o] === h || !t, w = r.useMemo(() => {
339
+ const c = b ? {
340
+ width: b.getBoundingClientRect().width,
341
+ height: b.getBoundingClientRect().height
342
342
  } : typeof window < "u" ? {
343
343
  width: window.innerWidth,
344
344
  height: window.innerHeight
@@ -346,289 +346,289 @@ function We({ activeSnapPointProp: t, setActiveSnapPointProp: n, snapPoints: e,
346
346
  width: 0,
347
347
  height: 0
348
348
  };
349
- var b;
350
- return (b = e == null ? void 0 : e.map((y) => {
349
+ var S;
350
+ return (S = t == null ? void 0 : t.map((y) => {
351
351
  const I = typeof y == "string";
352
352
  let M = 0;
353
- if (I && (M = parseInt(y, 10)), $(m)) {
354
- const l = I ? M : w ? y * u.height : 0;
355
- return w ? m === "bottom" ? u.height - l : -u.height + l : l;
353
+ if (I && (M = parseInt(y, 10)), C(u)) {
354
+ const l = I ? M : p ? y * c.height : 0;
355
+ return p ? u === "bottom" ? c.height - l : -c.height + l : l;
356
356
  }
357
- const j = I ? M : w ? y * u.width : 0;
358
- return w ? m === "right" ? u.width - j : -u.width + j : j;
359
- })) != null ? b : [];
357
+ const j = I ? M : p ? y * c.width : 0;
358
+ return p ? u === "right" ? c.width - j : -c.width + j : j;
359
+ })) != null ? S : [];
360
360
  }, [
361
- e,
361
+ t,
362
+ p,
363
+ b
364
+ ]), N = r.useMemo(() => E !== null ? w == null ? void 0 : w[E] : null, [
362
365
  w,
363
- R
364
- ]), N = r.useMemo(() => E !== null ? h == null ? void 0 : h[E] : null, [
365
- h,
366
366
  E
367
- ]), A = r.useCallback((u) => {
368
- var b;
369
- const y = (b = h == null ? void 0 : h.findIndex((I) => I === u)) != null ? b : null;
370
- f(y), C(a.current, {
367
+ ]), A = r.useCallback((c) => {
368
+ var S;
369
+ const y = (S = w == null ? void 0 : w.findIndex((I) => I === c)) != null ? S : null;
370
+ g(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(u) ? `translate3d(0, ${c}px, 0)` : `translate3d(${c}px, 0, 0)`
373
+ }), w && y !== w.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
- }), p(e == null ? void 0 : e[Math.max(y, 0)]);
379
+ }), m(t == null ? void 0 : t[Math.max(y, 0)]);
380
380
  }, [
381
381
  a.current,
382
- e,
383
- h,
382
+ t,
383
+ w,
384
384
  o,
385
385
  i,
386
- p
386
+ m
387
387
  ]);
388
388
  r.useEffect(() => {
389
- if (g || t) {
390
- var u;
391
- const b = (u = e == null ? void 0 : e.findIndex((y) => y === t || y === g)) != null ? u : -1;
392
- h && b !== -1 && typeof h[b] == "number" && A(h[b]);
389
+ if (h || e) {
390
+ var c;
391
+ const S = (c = t == null ? void 0 : t.findIndex((y) => y === e || y === h)) != null ? c : -1;
392
+ w && S !== -1 && typeof w[S] == "number" && A(w[S]);
393
393
  }
394
394
  }, [
395
- g,
396
- t,
397
- e,
398
395
  h,
396
+ e,
397
+ t,
398
+ w,
399
399
  A
400
400
  ]);
401
- function d({ draggedDistance: u, closeDrawer: b, velocity: y, dismissible: I }) {
401
+ function d({ draggedDistance: c, closeDrawer: S, velocity: y, dismissible: I }) {
402
402
  if (o === void 0) return;
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, {
403
+ const M = u === "bottom" || u === "right" ? (N ?? 0) - c : (N ?? 0) + c, j = E === o - 1, l = E === 0, U = c > 0;
404
+ if (j && $(i.current, {
405
405
  transition: `opacity ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`
406
406
  }), !T && y > 2 && !U) {
407
- I ? b() : A(h[0]);
407
+ I ? S() : A(w[0]);
408
408
  return;
409
409
  }
410
- if (!T && y > 2 && U && h && e) {
411
- A(h[e.length - 1]);
410
+ if (!T && y > 2 && U && w && t) {
411
+ A(w[t.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;
415
- if (y > Qt && Math.abs(u) < W * 0.4) {
414
+ const _ = w == null ? void 0 : w.reduce((P, K) => typeof P != "number" || typeof K != "number" ? P : Math.abs(K - M) < Math.abs(P - M) ? K : P), W = C(u) ? window.innerHeight : window.innerWidth;
415
+ if (y > Qe && Math.abs(c) < W * 0.4) {
416
416
  const P = U ? 1 : -1;
417
- if (P > 0 && k && e) {
418
- A(h[e.length - 1]);
417
+ if (P > 0 && k && t) {
418
+ A(w[t.length - 1]);
419
419
  return;
420
420
  }
421
- if (l && P < 0 && I && b(), E === null) return;
422
- A(h[E + P]);
421
+ if (l && P < 0 && I && S(), E === null) return;
422
+ A(w[E + P]);
423
423
  return;
424
424
  }
425
425
  A(_);
426
426
  }
427
- function Y({ draggedDistance: u }) {
427
+ function Y({ draggedDistance: c }) {
428
428
  if (N === null) return;
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)`
429
+ const S = u === "bottom" || u === "right" ? N - c : N + c;
430
+ (u === "bottom" || u === "right") && S < w[w.length - 1] || (u === "top" || u === "left") && S > w[w.length - 1] || $(a.current, {
431
+ transform: C(u) ? `translate3d(0, ${S}px, 0)` : `translate3d(${S}px, 0, 0)`
432
432
  });
433
433
  }
434
- function tt(u, b) {
435
- if (!e || typeof E != "number" || !h || o === void 0) return null;
434
+ function ee(c, S) {
435
+ if (!t || typeof E != "number" || !w || o === void 0) return null;
436
436
  const y = E === o - 1;
437
- if (E >= o && b)
437
+ if (E >= o && S)
438
438
  return 0;
439
- if (y && !b) return 1;
439
+ if (y && !S) return 1;
440
440
  if (!F && !y) return null;
441
- const M = y ? E + 1 : E - 1, j = y ? h[M] - h[M - 1] : h[M + 1] - h[M], l = u / Math.abs(j);
441
+ const M = y ? E + 1 : E - 1, j = y ? w[M] - w[M - 1] : w[M + 1] - w[M], l = c / Math.abs(j);
442
442
  return y ? 1 - l : l;
443
443
  }
444
444
  return {
445
445
  isLastSnapPoint: k,
446
- activeSnapPoint: g,
446
+ activeSnapPoint: h,
447
447
  shouldFade: F,
448
- getPercentageDragged: tt,
449
- setActiveSnapPoint: p,
448
+ getPercentageDragged: ee,
449
+ setActiveSnapPoint: m,
450
450
  activeSnapPointIndex: E,
451
451
  onRelease: d,
452
452
  onDrag: Y,
453
- snapPointsOffset: h
453
+ snapPointsOffset: w
454
454
  };
455
455
  }
456
- const ze = () => () => {
456
+ const zt = () => () => {
457
457
  };
458
- function Ve() {
459
- const { direction: t, isOpen: n, shouldScaleBackground: e, setBackgroundColorOnScale: a, noBodyStyles: i } = st(), o = r.useRef(null), f = Se(() => document.body.style.backgroundColor, []);
460
- function m() {
461
- return (window.innerWidth - Nt) / window.innerWidth;
458
+ function Vt() {
459
+ const { direction: e, isOpen: n, shouldScaleBackground: t, setBackgroundColorOnScale: a, noBodyStyles: i } = ie(), o = r.useRef(null), g = St(() => document.body.style.backgroundColor, []);
460
+ function u() {
461
+ return (window.innerWidth - Ne) / window.innerWidth;
462
462
  }
463
463
  r.useEffect(() => {
464
- if (n && e) {
464
+ if (n && t) {
465
465
  o.current && clearTimeout(o.current);
466
- const R = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
467
- if (!R) return;
468
- Be(a && !i ? Ct(document.body, {
466
+ const b = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
467
+ if (!b) return;
468
+ Bt(a && !i ? Ce(document.body, {
469
469
  background: "black"
470
- }) : ze, Ct(R, {
471
- transformOrigin: $(t) ? "top" : "left",
470
+ }) : zt, Ce(b, {
471
+ transformOrigin: C(e) ? "top" : "left",
472
472
  transitionProperty: "transform, border-radius",
473
473
  transitionDuration: `${x.DURATION}s`,
474
474
  transitionTimingFunction: `cubic-bezier(${x.EASE.join(",")})`
475
475
  }));
476
- const T = Ct(R, {
477
- borderRadius: `${Zt}px`,
476
+ const T = Ce(b, {
477
+ borderRadius: `${Ze}px`,
478
478
  overflow: "hidden",
479
- ...$(t) ? {
480
- transform: `scale(${m()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
479
+ ...C(e) ? {
480
+ transform: `scale(${u()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
481
481
  } : {
482
- transform: `scale(${m()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`
482
+ transform: `scale(${u()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`
483
483
  }
484
484
  });
485
485
  return () => {
486
486
  T(), o.current = window.setTimeout(() => {
487
- f ? document.body.style.background = f : document.body.style.removeProperty("background");
487
+ g ? document.body.style.background = g : document.body.style.removeProperty("background");
488
488
  }, x.DURATION * 1e3);
489
489
  };
490
490
  }
491
491
  }, [
492
492
  n,
493
- e,
494
- f
493
+ t,
494
+ g
495
495
  ]);
496
496
  }
497
- let pt = null;
498
- function Ye({ isOpen: t, modal: n, nested: e, hasBeenOpened: a, preventScrollRestoration: i, noBodyStyles: o }) {
499
- const [f, m] = r.useState(() => typeof window < "u" ? window.location.href : ""), R = r.useRef(0), T = r.useCallback(() => {
500
- if (Wt() && pt === null && t && !o) {
501
- pt = {
497
+ let me = null;
498
+ function Yt({ isOpen: e, modal: n, nested: t, hasBeenOpened: a, preventScrollRestoration: i, noBodyStyles: o }) {
499
+ const [g, u] = r.useState(() => typeof window < "u" ? window.location.href : ""), b = r.useRef(0), T = r.useCallback(() => {
500
+ if (We() && me === null && e && !o) {
501
+ me = {
502
502
  position: document.body.style.position,
503
503
  top: document.body.style.top,
504
504
  left: document.body.style.left,
505
505
  height: document.body.style.height,
506
506
  right: "unset"
507
507
  };
508
- const { scrollX: p, innerHeight: w } = window;
508
+ const { scrollX: m, innerHeight: p } = window;
509
509
  document.body.style.setProperty("position", "fixed", "important"), Object.assign(document.body.style, {
510
- top: `${-R.current}px`,
511
- left: `${-p}px`,
510
+ top: `${-b.current}px`,
511
+ left: `${-m}px`,
512
512
  right: "0px",
513
513
  height: "auto"
514
514
  }), window.setTimeout(() => window.requestAnimationFrame(() => {
515
- const B = w - window.innerHeight;
516
- B && R.current >= w && (document.body.style.top = `${-(R.current + B)}px`);
515
+ const B = p - window.innerHeight;
516
+ B && b.current >= p && (document.body.style.top = `${-(b.current + B)}px`);
517
517
  }), 300);
518
518
  }
519
519
  }, [
520
- t
521
- ]), g = r.useCallback(() => {
522
- if (Wt() && pt !== null && !o) {
523
- const p = -parseInt(document.body.style.top, 10), w = -parseInt(document.body.style.left, 10);
524
- Object.assign(document.body.style, pt), window.requestAnimationFrame(() => {
525
- if (i && f !== window.location.href) {
526
- m(window.location.href);
520
+ e
521
+ ]), h = r.useCallback(() => {
522
+ if (We() && me !== null && !o) {
523
+ const m = -parseInt(document.body.style.top, 10), p = -parseInt(document.body.style.left, 10);
524
+ Object.assign(document.body.style, me), window.requestAnimationFrame(() => {
525
+ if (i && g !== window.location.href) {
526
+ u(window.location.href);
527
527
  return;
528
528
  }
529
- window.scrollTo(w, p);
530
- }), pt = null;
529
+ window.scrollTo(p, m);
530
+ }), me = null;
531
531
  }
532
532
  }, [
533
- f
533
+ g
534
534
  ]);
535
535
  return r.useEffect(() => {
536
- function p() {
537
- R.current = window.scrollY;
536
+ function m() {
537
+ b.current = window.scrollY;
538
538
  }
539
- return p(), window.addEventListener("scroll", p), () => {
540
- window.removeEventListener("scroll", p);
539
+ return m(), window.addEventListener("scroll", m), () => {
540
+ window.removeEventListener("scroll", m);
541
541
  };
542
542
  }, []), r.useEffect(() => {
543
543
  if (n)
544
544
  return () => {
545
- typeof document > "u" || document.querySelector("[data-vaul-drawer]") || g();
545
+ typeof document > "u" || document.querySelector("[data-vaul-drawer]") || h();
546
546
  };
547
547
  }, [
548
548
  n,
549
- g
549
+ h
550
550
  ]), r.useEffect(() => {
551
- e || !a || (t ? (!window.matchMedia("(display-mode: standalone)").matches && T(), n || window.setTimeout(() => {
552
- g();
553
- }, 500)) : g());
551
+ t || !a || (e ? (!window.matchMedia("(display-mode: standalone)").matches && T(), n || window.setTimeout(() => {
552
+ h();
553
+ }, 500)) : h());
554
554
  }, [
555
- t,
555
+ e,
556
556
  a,
557
- f,
557
+ g,
558
558
  n,
559
- e,
559
+ t,
560
560
  T,
561
- g
561
+ h
562
562
  ]), {
563
- restorePositionSetting: g
563
+ restorePositionSetting: h
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 nt({ open: e, onOpenChange: n, children: t, onDrag: a, onRelease: i, snapPoints: o, shouldScaleBackground: g = !1, setBackgroundColorOnScale: u = !0, closeThreshold: b = Ft, scrollLockTimeout: T = Ut, dismissible: h = !0, handleOnly: m = !1, fadeFromIndex: p = o && o.length - 1, activeSnapPoint: B, setActiveSnapPoint: k, fixed: E, modal: F = !0, onClose: w, nested: N, noBodyStyles: A = !1, direction: d = "bottom", defaultOpen: Y = !1, disablePreventScroll: ee = !0, snapToSequentialPoint: c = !1, preventScrollRestoration: S = !1, repositionInputs: y = !0, onAnimationEnd: I, container: M, autoFocus: j = !1 }) {
567
567
  var l, U;
568
- const [_ = !1, W] = ee({
568
+ const [_ = !1, W] = tt({
569
569
  defaultProp: Y,
570
- prop: t,
570
+ prop: e,
571
571
  onChange: (s) => {
572
- n == null || n(s), !s && !N && me(), setTimeout(() => {
572
+ n == null || n(s), !s && !N && mt(), setTimeout(() => {
573
573
  I == null || I(s);
574
574
  }, x.DURATION * 1e3), s && !F && typeof window < "u" && window.requestAnimationFrame(() => {
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) => {
579
- o && s === dt.length - 1 && (ht.current = /* @__PURE__ */ new Date());
580
- }, []), { activeSnapPoint: ue, activeSnapPointIndex: ot, setActiveSnapPoint: Lt, onRelease: ce, snapPointsOffset: dt, onDrag: de, shouldFade: Bt, getPercentageDragged: fe } = We({
578
+ }), [P, K] = r.useState(!1), [G, se] = r.useState(!1), [st, Pe] = r.useState(!1), ne = r.useRef(null), we = r.useRef(null), Se = r.useRef(null), Re = r.useRef(null), le = r.useRef(null), ue = r.useRef(!1), De = r.useRef(null), Te = r.useRef(0), re = r.useRef(!1), Ie = r.useRef(!Y), _e = r.useRef(0), f = r.useRef(null), He = r.useRef(((l = f.current) == null ? void 0 : l.getBoundingClientRect().height) || 0), ke = r.useRef(((U = f.current) == null ? void 0 : U.getBoundingClientRect().width) || 0), Ee = r.useRef(0), lt = r.useCallback((s) => {
579
+ o && s === ce.length - 1 && (we.current = /* @__PURE__ */ new Date());
580
+ }, []), { activeSnapPoint: ut, activeSnapPointIndex: ae, setActiveSnapPoint: Le, onRelease: ct, snapPointsOffset: ce, onDrag: dt, shouldFade: Be, getPercentageDragged: ft } = Wt({
581
581
  snapPoints: o,
582
582
  activeSnapPointProp: B,
583
583
  setActiveSnapPointProp: k,
584
- drawerRef: c,
585
- fadeFromIndex: w,
586
- overlayRef: rt,
587
- onSnapPointChange: le,
584
+ drawerRef: f,
585
+ fadeFromIndex: p,
586
+ overlayRef: ne,
587
+ onSnapPointChange: lt,
588
588
  direction: d,
589
589
  container: M,
590
- snapToSequentialPoint: u
590
+ snapToSequentialPoint: c
591
591
  });
592
- Me({
593
- isDisabled: !_ || G || !F || se || !P || !y || !tt
592
+ Mt({
593
+ isDisabled: !_ || G || !F || st || !P || !y || !ee
594
594
  });
595
- const { restorePositionSetting: me } = Ye({
595
+ const { restorePositionSetting: mt } = Yt({
596
596
  isOpen: _,
597
597
  modal: F,
598
598
  nested: N ?? !1,
599
599
  hasBeenOpened: P,
600
- preventScrollRestoration: b,
600
+ preventScrollRestoration: S,
601
601
  noBodyStyles: A
602
602
  });
603
- function gt() {
604
- return (window.innerWidth - Nt) / window.innerWidth;
603
+ function he() {
604
+ return (window.innerWidth - Ne) / window.innerWidth;
605
605
  }
606
- function pe(s) {
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, {
606
+ function pt(s) {
607
+ var R, D;
608
+ !h && !o || f.current && !f.current.contains(s.target) || (He.current = ((R = f.current) == null ? void 0 : R.getBoundingClientRect().height) || 0, ke.current = ((D = f.current) == null ? void 0 : D.getBoundingClientRect().width) || 0, se(!0), Se.current = /* @__PURE__ */ new Date(), Xe() && window.addEventListener("touchend", () => ue.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), Te.current = C(d) ? s.pageY : s.pageX);
611
611
  }
612
- function Ft(s, S) {
612
+ function Fe(s, R) {
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 = f.current ? ye(f.current, d) : 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
618
  if (d === "right" || d === "left")
619
619
  return !0;
620
- if (ht.current && H.getTime() - ht.current.getTime() < 500)
620
+ if (we.current && H.getTime() - we.current.getTime() < 500)
621
621
  return !1;
622
622
  if (L !== null && (d === "bottom" ? L > 0 : L < 0))
623
623
  return !0;
624
624
  if (O && O.length > 0)
625
625
  return !1;
626
- if (ut.current && H.getTime() - ut.current.getTime() < T && L === 0 || S)
627
- return ut.current = H, !1;
626
+ if (le.current && H.getTime() - le.current.getTime() < T && L === 0 || R)
627
+ return le.current = H, !1;
628
628
  for (; v; ) {
629
629
  if (v.scrollHeight > v.clientHeight) {
630
630
  if (v.scrollTop !== 0)
631
- return ut.current = /* @__PURE__ */ new Date(), !1;
631
+ return le.current = /* @__PURE__ */ new Date(), !1;
632
632
  if (v.getAttribute("role") === "dialog")
633
633
  return !0;
634
634
  }
@@ -636,106 +636,106 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
636
636
  }
637
637
  return !0;
638
638
  }
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;
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;
639
+ function wt(s) {
640
+ if (f.current && G) {
641
+ const R = d === "bottom" || d === "right" ? 1 : -1, D = (Te.current - (C(d) ? s.pageY : s.pageX)) * R, v = D > 0, O = o && !h && !v;
642
+ if (O && ae === 0) return;
643
+ const L = Math.abs(D), H = document.querySelector("[data-vaul-drawer-wrapper]"), J = d === "bottom" || d === "top" ? He.current : ke.current;
644
644
  let z = L / J;
645
- const et = fe(L, v);
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, {
645
+ const te = ft(L, v);
646
+ if (te !== null && (z = te), O && z >= 1 || !ue.current && !Fe(s.target, v)) return;
647
+ if (f.current.classList.add($e), ue.current = !0, $(f.current, {
648
648
  transition: "none"
649
- }), C(rt.current, {
649
+ }), $(ne.current, {
650
650
  transition: "none"
651
- }), o && de({
651
+ }), o && dt({
652
652
  draggedDistance: D
653
653
  }), v && !o) {
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)`
654
+ const q = Lt(D), ge = Math.min(q * -1, 0) * R;
655
+ $(f.current, {
656
+ transform: C(d) ? `translate3d(0, ${ge}px, 0)` : `translate3d(${ge}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 ((Be || p && ae === p - 1) && (a == null || a(s, z), $(ne.current, {
662
662
  opacity: `${Q}`,
663
663
  transition: "none"
664
- }, !0)), H && rt.current && f) {
665
- const q = Math.min(gt() + z * (1 - gt()), 1), vt = 8 - z * 8, jt = Math.max(0, 14 - z * 14);
666
- C(H, {
667
- borderRadius: `${vt}px`,
668
- transform: $(d) ? `scale(${q}) translate3d(0, ${jt}px, 0)` : `scale(${q}) translate3d(${jt}px, 0, 0)`,
664
+ }, !0)), H && ne.current && g) {
665
+ const q = Math.min(he() + z * (1 - he()), 1), ge = 8 - z * 8, je = Math.max(0, 14 - z * 14);
666
+ $(H, {
667
+ borderRadius: `${ge}px`,
668
+ transform: C(d) ? `scale(${q}) translate3d(0, ${je}px, 0)` : `scale(${q}) translate3d(${je}px, 0, 0)`,
669
669
  transition: "none"
670
670
  }, !0);
671
671
  }
672
672
  if (!o) {
673
- const q = L * S;
674
- C(c.current, {
675
- transform: $(d) ? `translate3d(0, ${q}px, 0)` : `translate3d(${q}px, 0, 0)`
673
+ const q = L * R;
674
+ $(f.current, {
675
+ transform: C(d) ? `translate3d(0, ${q}px, 0)` : `translate3d(${q}px, 0, 0)`
676
676
  });
677
677
  }
678
678
  }
679
679
  }
680
680
  r.useEffect(() => {
681
681
  window.requestAnimationFrame(() => {
682
- It.current = !0;
682
+ Ie.current = !0;
683
683
  });
684
684
  }, []), r.useEffect(() => {
685
685
  var s;
686
- function S() {
687
- if (!c.current || !y) return;
686
+ function R() {
687
+ if (!f.current || !y) return;
688
688
  const D = document.activeElement;
689
- if (At(D) || at.current) {
689
+ if (Ae(D) || re.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;
694
- Et.current || (Et.current = J);
695
- const et = c.current.getBoundingClientRect().top;
696
- if (Math.abs(_t.current - H) > 60 && (at.current = !at.current), o && o.length > 0 && dt && ot) {
697
- const Q = dt[ot] || 0;
693
+ const J = f.current.getBoundingClientRect().height || 0, z = J > L * 0.8;
694
+ Ee.current || (Ee.current = J);
695
+ const te = f.current.getBoundingClientRect().top;
696
+ if (Math.abs(_e.current - H) > 60 && (re.current = !re.current), o && o.length > 0 && ce && ae) {
697
+ const Q = ce[ae] || 0;
698
698
  H += Q;
699
699
  }
700
- if (_t.current = H, J > O || at.current) {
701
- const Q = c.current.getBoundingClientRect().height;
700
+ if (_e.current = H, J > O || re.current) {
701
+ const Q = f.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 ? te : Ne)), E ? f.current.style.height = `${Q - Math.max(H, 0)}px` : f.current.style.height = `${Math.max(q, O - te)}px`;
704
+ } else Et() || (f.current.style.height = `${Ee.current}px`);
705
+ o && o.length > 0 && !re.current ? f.current.style.bottom = "0px" : f.current.style.bottom = `${Math.max(H, 0)}px`;
706
706
  }
707
707
  }
708
- return (s = window.visualViewport) == null || s.addEventListener("resize", S), () => {
708
+ return (s = window.visualViewport) == null || s.addEventListener("resize", R), () => {
709
709
  var D;
710
- return (D = window.visualViewport) == null ? void 0 : D.removeEventListener("resize", S);
710
+ return (D = window.visualViewport) == null ? void 0 : D.removeEventListener("resize", R);
711
711
  };
712
712
  }, [
713
- ot,
713
+ ae,
714
714
  o,
715
- dt
715
+ ce
716
716
  ]);
717
- function ft(s) {
718
- he(), h == null || h(), s || W(!1), setTimeout(() => {
719
- o && Lt(o[0]);
717
+ function de(s) {
718
+ ht(), w == null || w(), s || W(!1), setTimeout(() => {
719
+ o && Le(o[0]);
720
720
  }, x.DURATION * 1e3);
721
721
  }
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, {
722
+ function Ue() {
723
+ if (!f.current) return;
724
+ const s = document.querySelector("[data-vaul-drawer-wrapper]"), R = ye(f.current, d);
725
+ $(f.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
+ }), $(ne.current, {
729
729
  transition: `opacity ${x.DURATION}s cubic-bezier(${x.EASE.join(",")})`,
730
730
  opacity: "1"
731
- }), f && S && S > 0 && _ && C(s, {
732
- borderRadius: `${Zt}px`,
731
+ }), g && R && R > 0 && _ && $(s, {
732
+ borderRadius: `${Ze}px`,
733
733
  overflow: "hidden",
734
- ...$(d) ? {
735
- transform: `scale(${gt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
734
+ ...C(d) ? {
735
+ transform: `scale(${he()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
736
736
  transformOrigin: "top"
737
737
  } : {
738
- transform: `scale(${gt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
738
+ transform: `scale(${he()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
739
739
  transformOrigin: "left"
740
740
  },
741
741
  transitionProperty: "transform, border-radius",
@@ -743,77 +743,77 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
743
743
  transitionTimingFunction: `cubic-bezier(${x.EASE.join(",")})`
744
744
  }, !0);
745
745
  }
746
- function he() {
747
- !G || !c.current || (c.current.classList.remove($t), ct.current = !1, lt(!1), Rt.current = /* @__PURE__ */ new Date());
746
+ function ht() {
747
+ !G || !f.current || (f.current.classList.remove($e), ue.current = !1, se(!1), Re.current = /* @__PURE__ */ new Date());
748
748
  }
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);
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;
755
- if (O > 0.05 && (Pt(!0), setTimeout(() => {
756
- Pt(!1);
749
+ function gt(s) {
750
+ if (!G || !f.current) return;
751
+ f.current.classList.remove($e), ue.current = !1, se(!1), Re.current = /* @__PURE__ */ new Date();
752
+ const R = ye(f.current, d);
753
+ if (!s || !Fe(s.target, !1) || !R || Number.isNaN(R) || Se.current === null) return;
754
+ const D = Re.current.getTime() - Se.current.getTime(), v = Te.current - (C(d) ? s.pageY : s.pageX), O = Math.abs(v) / D;
755
+ if (O > 0.05 && (Pe(!0), setTimeout(() => {
756
+ Pe(!1);
757
757
  }, 200)), o) {
758
- ce({
758
+ ct({
759
759
  draggedDistance: v * (d === "bottom" || d === "right" ? 1 : -1),
760
- closeDrawer: ft,
760
+ closeDrawer: de,
761
761
  velocity: O,
762
- dismissible: g
762
+ dismissible: h
763
763
  }), i == null || i(s, !0);
764
764
  return;
765
765
  }
766
766
  if (d === "bottom" || d === "right" ? v > 0 : v < 0) {
767
- Ut(), i == null || i(s, !0);
767
+ Ue(), i == null || i(s, !0);
768
768
  return;
769
769
  }
770
- if (O > Qt) {
771
- ft(), i == null || i(s, !1);
770
+ if (O > Qe) {
771
+ de(), i == null || i(s, !1);
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 = f.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";
778
- if (Math.abs(S) >= (et ? z : H) * R) {
779
- ft(), i == null || i(s, !1);
777
+ const z = Math.min((J = f.current.getBoundingClientRect().width) != null ? J : 0, window.innerWidth), te = d === "left" || d === "right";
778
+ if (Math.abs(R) >= (te ? z : H) * b) {
779
+ de(), i == null || i(s, !1);
780
780
  return;
781
781
  }
782
- i == null || i(s, !0), Ut();
782
+ i == null || i(s, !0), Ue();
783
783
  }
784
- r.useEffect(() => (_ && (C(document.documentElement, {
784
+ r.useEffect(() => (_ && ($(document.documentElement, {
785
785
  scrollBehavior: "auto"
786
- }), ht.current = /* @__PURE__ */ new Date()), () => {
787
- ke(document.documentElement, "scrollBehavior");
786
+ }), we.current = /* @__PURE__ */ new Date()), () => {
787
+ kt(document.documentElement, "scrollBehavior");
788
788
  }), [
789
789
  _
790
790
  ]);
791
- function ve(s) {
792
- const S = s ? (window.innerWidth - nt) / window.innerWidth : 1, D = s ? -nt : 0;
793
- Dt.current && window.clearTimeout(Dt.current), C(c.current, {
791
+ function vt(s) {
792
+ const R = s ? (window.innerWidth - be) / window.innerWidth : 1, D = s ? -16 : 0;
793
+ De.current && window.clearTimeout(De.current), $(f.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(d) ? `scale(${R}) translate3d(0, ${D}px, 0)` : `scale(${R}) translate3d(${D}px, 0, 0)`
796
+ }), !s && f.current && (De.current = setTimeout(() => {
797
+ const v = ye(f.current, d);
798
+ $(f.current, {
799
799
  transition: "none",
800
- transform: $(d) ? `translate3d(0, ${v}px, 0)` : `translate3d(${v}px, 0, 0)`
800
+ transform: C(d) ? `translate3d(0, ${v}px, 0)` : `translate3d(${v}px, 0, 0)`
801
801
  });
802
802
  }, 500));
803
803
  }
804
- function ye(s, S) {
805
- if (S < 0) return;
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)`,
804
+ function yt(s, R) {
805
+ if (R < 0) return;
806
+ const D = (window.innerWidth - be) / window.innerWidth, v = D + R * (1 - D), O = -16 + R * be;
807
+ $(f.current, {
808
+ transform: C(d) ? `scale(${v}) translate3d(0, ${O}px, 0)` : `scale(${v}) translate3d(${O}px, 0, 0)`,
809
809
  transition: "none"
810
810
  });
811
811
  }
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, {
812
+ function bt(s, R) {
813
+ const D = C(d) ? window.innerHeight : window.innerWidth, v = R ? (D - be) / D : 1, O = R ? -16 : 0;
814
+ R && $(f.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(d) ? `scale(${v}) translate3d(0, ${O}px, 0)` : `scale(${v}) translate3d(${O}px, 0, 0)`
817
817
  });
818
818
  }
819
819
  return r.useEffect(() => {
@@ -825,64 +825,64 @@ function ne({ open: t, onOpenChange: n, children: e, onDrag: a, onRelease: i, sn
825
825
  ]), /* @__PURE__ */ r.createElement(Z.Root, {
826
826
  defaultOpen: Y,
827
827
  onOpenChange: (s) => {
828
- !g && !s || (s ? K(!0) : ft(!0), W(s));
828
+ !h && !s || (s ? K(!0) : de(!0), W(s));
829
829
  },
830
830
  open: _
831
- }, /* @__PURE__ */ r.createElement(qt.Provider, {
831
+ }, /* @__PURE__ */ r.createElement(qe.Provider, {
832
832
  value: {
833
- activeSnapPoint: ue,
833
+ activeSnapPoint: ut,
834
834
  snapPoints: o,
835
- setActiveSnapPoint: Lt,
836
- drawerRef: c,
837
- overlayRef: rt,
835
+ setActiveSnapPoint: Le,
836
+ drawerRef: f,
837
+ overlayRef: ne,
838
838
  onOpenChange: n,
839
- onPress: pe,
840
- onRelease: ge,
841
- onDrag: we,
842
- dismissible: g,
843
- shouldAnimate: It,
844
- handleOnly: p,
839
+ onPress: pt,
840
+ onRelease: gt,
841
+ onDrag: wt,
842
+ dismissible: h,
843
+ shouldAnimate: Ie,
844
+ handleOnly: m,
845
845
  isOpen: _,
846
846
  isDragging: G,
847
- shouldFade: Bt,
848
- closeDrawer: ft,
849
- onNestedDrag: ye,
850
- onNestedOpenChange: ve,
851
- onNestedRelease: be,
852
- keyboardIsOpen: at,
847
+ shouldFade: Be,
848
+ closeDrawer: de,
849
+ onNestedDrag: yt,
850
+ onNestedOpenChange: vt,
851
+ onNestedRelease: bt,
852
+ keyboardIsOpen: re,
853
853
  modal: F,
854
- snapPointsOffset: dt,
855
- activeSnapPointIndex: ot,
854
+ snapPointsOffset: ce,
855
+ activeSnapPointIndex: ae,
856
856
  direction: d,
857
- shouldScaleBackground: f,
858
- setBackgroundColorOnScale: m,
857
+ shouldScaleBackground: g,
858
+ setBackgroundColorOnScale: u,
859
859
  noBodyStyles: A,
860
860
  container: M,
861
861
  autoFocus: j
862
862
  }
863
- }, e));
863
+ }, t));
864
864
  }
865
- const re = /* @__PURE__ */ r.forwardRef(function({ ...t }, n) {
866
- const { overlayRef: e, snapPoints: a, onRelease: i, shouldFade: o, isOpen: f, modal: m, shouldAnimate: R } = st(), T = Gt(n, e), g = a && a.length > 0;
867
- if (!m)
865
+ const rt = /* @__PURE__ */ r.forwardRef(function({ ...e }, n) {
866
+ const { overlayRef: t, snapPoints: a, onRelease: i, shouldFade: o, isOpen: g, modal: u, shouldAnimate: b } = ie(), T = Ge(n, t), h = a && a.length > 0;
867
+ if (!u)
868
868
  return null;
869
- const p = r.useCallback((w) => i(w), [
869
+ const m = r.useCallback((p) => i(p), [
870
870
  i
871
871
  ]);
872
872
  return /* @__PURE__ */ r.createElement(Z.Overlay, {
873
- onMouseUp: p,
873
+ onMouseUp: m,
874
874
  ref: T,
875
875
  "data-vaul-overlay": "",
876
- "data-vaul-snap-points": f && g ? "true" : "false",
877
- "data-vaul-snap-points-overlay": f && o ? "true" : "false",
878
- "data-vaul-animate": R != null && R.current ? "true" : "false",
879
- ...t
876
+ "data-vaul-snap-points": g && h ? "true" : "false",
877
+ "data-vaul-snap-points-overlay": g && o ? "true" : "false",
878
+ "data-vaul-animate": b != null && b.current ? "true" : "false",
879
+ ...e
880
880
  });
881
881
  });
882
- re.displayName = "Drawer.Overlay";
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;
885
- Ve();
882
+ rt.displayName = "Drawer.Overlay";
883
+ const at = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: e, style: n, onOpenAutoFocus: t, ...a }, i) {
884
+ const { drawerRef: o, onPress: g, onRelease: u, onDrag: b, keyboardIsOpen: T, snapPointsOffset: h, activeSnapPointIndex: m, modal: p, isOpen: B, direction: k, snapPoints: E, container: F, handleOnly: w, shouldAnimate: N, autoFocus: A } = ie(), [d, Y] = r.useState(!1), ee = Ge(i, o), c = r.useRef(null), S = r.useRef(null), y = r.useRef(!1), I = E && E.length > 0;
885
+ Vt();
886
886
  const M = (l, U, _ = 0) => {
887
887
  if (y.current) return !0;
888
888
  const W = Math.abs(l.y), P = Math.abs(l.x), K = P > W, G = [
@@ -902,7 +902,7 @@ const ae = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, styl
902
902
  });
903
903
  }, []);
904
904
  function j(l) {
905
- u.current = null, y.current = !1, m(l);
905
+ c.current = null, y.current = !1, u(l);
906
906
  }
907
907
  return /* @__PURE__ */ r.createElement(Z.Content, {
908
908
  "data-vaul-drawer-direction": k,
@@ -912,86 +912,86 @@ const ae = /* @__PURE__ */ r.forwardRef(function({ onPointerDownOutside: t, styl
912
912
  "data-vaul-custom-container": F ? "true" : "false",
913
913
  "data-vaul-animate": N != null && N.current ? "true" : "false",
914
914
  ...a,
915
- ref: tt,
916
- style: g && g.length > 0 ? {
917
- "--snap-point-height": `${g[p ?? 0]}px`,
915
+ ref: ee,
916
+ style: h && h.length > 0 ? {
917
+ "--snap-point-height": `${h[m ?? 0]}px`,
918
918
  ...n
919
919
  } : n,
920
920
  onPointerDown: (l) => {
921
- h || (a.onPointerDown == null || a.onPointerDown.call(a, l), u.current = {
921
+ w || (a.onPointerDown == null || a.onPointerDown.call(a, l), c.current = {
922
922
  x: l.pageX,
923
923
  y: l.pageY
924
- }, f(l));
924
+ }, g(l));
925
925
  },
926
926
  onOpenAutoFocus: (l) => {
927
- e == null || e(l), A || l.preventDefault();
927
+ t == null || t(l), A || l.preventDefault();
928
928
  },
929
929
  onPointerDownOutside: (l) => {
930
- if (t == null || t(l), !w || l.defaultPrevented) {
930
+ if (e == null || e(l), !p || l.defaultPrevented) {
931
931
  l.preventDefault();
932
932
  return;
933
933
  }
934
934
  T.current && (T.current = !1);
935
935
  },
936
936
  onFocusOutside: (l) => {
937
- if (!w) {
937
+ if (!p) {
938
938
  l.preventDefault();
939
939
  return;
940
940
  }
941
941
  },
942
942
  onPointerMove: (l) => {
943
- if (b.current = l, h || (a.onPointerMove == null || a.onPointerMove.call(a, l), !u.current)) return;
944
- const U = l.pageY - u.current.y, _ = l.pageX - u.current.x, W = l.pointerType === "touch" ? 10 : 2;
943
+ if (S.current = l, w || (a.onPointerMove == null || a.onPointerMove.call(a, l), !c.current)) return;
944
+ const U = l.pageY - c.current.y, _ = l.pageX - c.current.x, W = l.pointerType === "touch" ? 10 : 2;
945
945
  M({
946
946
  x: _,
947
947
  y: U
948
- }, k, W) ? R(l) : (Math.abs(_) > W || Math.abs(U) > W) && (u.current = null);
948
+ }, k, W) ? b(l) : (Math.abs(_) > W || Math.abs(U) > W) && (c.current = null);
949
949
  },
950
950
  onPointerUp: (l) => {
951
- a.onPointerUp == null || a.onPointerUp.call(a, l), u.current = null, y.current = !1, m(l);
951
+ a.onPointerUp == null || a.onPointerUp.call(a, l), c.current = null, y.current = !1, u(l);
952
952
  },
953
953
  onPointerOut: (l) => {
954
- a.onPointerOut == null || a.onPointerOut.call(a, l), j(b.current);
954
+ a.onPointerOut == null || a.onPointerOut.call(a, l), j(S.current);
955
955
  },
956
956
  onContextMenu: (l) => {
957
- a.onContextMenu == null || a.onContextMenu.call(a, l), b.current && j(b.current);
957
+ a.onContextMenu == null || a.onContextMenu.call(a, l), S.current && j(S.current);
958
958
  }
959
959
  });
960
960
  });
961
- ae.displayName = "Drawer.Content";
962
- const qe = 250, Xe = 120, oe = /* @__PURE__ */ r.forwardRef(function({ preventCycle: t = !1, children: n, ...e }, a) {
963
- const { closeDrawer: i, isDragging: o, snapPoints: f, activeSnapPoint: m, setActiveSnapPoint: R, dismissible: T, handleOnly: g, isOpen: p, onPress: w, onDrag: B } = st(), k = r.useRef(null), E = r.useRef(!1);
961
+ at.displayName = "Drawer.Content";
962
+ const qt = 250, Xt = 120, ot = /* @__PURE__ */ r.forwardRef(function({ preventCycle: e = !1, children: n, ...t }, a) {
963
+ const { closeDrawer: i, isDragging: o, snapPoints: g, activeSnapPoint: u, setActiveSnapPoint: b, dismissible: T, handleOnly: h, isOpen: m, onPress: p, onDrag: B } = ie(), k = r.useRef(null), E = r.useRef(!1);
964
964
  function F() {
965
965
  if (E.current) {
966
966
  A();
967
967
  return;
968
968
  }
969
969
  window.setTimeout(() => {
970
- h();
971
- }, Xe);
970
+ w();
971
+ }, Xt);
972
972
  }
973
- function h() {
974
- if (o || t || E.current) {
973
+ function w() {
974
+ if (o || e || E.current) {
975
975
  A();
976
976
  return;
977
977
  }
978
- if (A(), !f || f.length === 0) {
978
+ if (A(), !g || g.length === 0) {
979
979
  T || i();
980
980
  return;
981
981
  }
982
- if (m === f[f.length - 1] && T) {
982
+ if (u === g[g.length - 1] && T) {
983
983
  i();
984
984
  return;
985
985
  }
986
- const Y = f.findIndex((u) => u === m);
986
+ const Y = g.findIndex((c) => c === u);
987
987
  if (Y === -1) return;
988
- const tt = f[Y + 1];
989
- R(tt);
988
+ const ee = g[Y + 1];
989
+ b(ee);
990
990
  }
991
991
  function N() {
992
992
  k.current = window.setTimeout(() => {
993
993
  E.current = !0;
994
- }, qe);
994
+ }, qt);
995
995
  }
996
996
  function A() {
997
997
  k.current && window.clearTimeout(k.current), E.current = !1;
@@ -1000,153 +1000,154 @@ const qe = 250, Xe = 120, oe = /* @__PURE__ */ r.forwardRef(function({ preventCy
1000
1000
  onClick: F,
1001
1001
  onPointerCancel: A,
1002
1002
  onPointerDown: (d) => {
1003
- g && w(d), N();
1003
+ h && p(d), N();
1004
1004
  },
1005
1005
  onPointerMove: (d) => {
1006
- g && B(d);
1006
+ h && B(d);
1007
1007
  },
1008
1008
  // onPointerUp is already handled by the content component
1009
1009
  ref: a,
1010
- "data-vaul-drawer-visible": p ? "true" : "false",
1010
+ "data-vaul-drawer-visible": m ? "true" : "false",
1011
1011
  "data-vaul-handle": "",
1012
1012
  "aria-hidden": "true",
1013
- ...e
1013
+ ...t
1014
1014
  }, /* @__PURE__ */ r.createElement("span", {
1015
1015
  "data-vaul-handle-hitarea": "",
1016
1016
  "aria-hidden": "true"
1017
1017
  }, n));
1018
1018
  });
1019
- oe.displayName = "Drawer.Handle";
1020
- function Ke({ onDrag: t, onOpenChange: n, ...e }) {
1021
- const { onNestedDrag: a, onNestedOpenChange: i, onNestedRelease: o } = st();
1022
- if (!a)
1019
+ ot.displayName = "Drawer.Handle";
1020
+ function Kt({ onDrag: e, onOpenChange: n, open: t, ...a }) {
1021
+ const { onNestedDrag: i, onNestedOpenChange: o, onNestedRelease: g } = ie();
1022
+ if (!i)
1023
1023
  throw new Error("Drawer.NestedRoot must be placed in another drawer");
1024
- return /* @__PURE__ */ r.createElement(ne, {
1024
+ return /* @__PURE__ */ r.createElement(nt, {
1025
1025
  nested: !0,
1026
+ open: t,
1026
1027
  onClose: () => {
1027
- i(!1);
1028
+ o(!1);
1028
1029
  },
1029
- onDrag: (f, m) => {
1030
- a(f, m), t == null || t(f, m);
1030
+ onDrag: (u, b) => {
1031
+ i(u, b), e == null || e(u, b);
1031
1032
  },
1032
- onOpenChange: (f) => {
1033
- f && i(f);
1033
+ onOpenChange: (u) => {
1034
+ u && o(u), n == null || n(u);
1034
1035
  },
1035
- onRelease: o,
1036
- ...e
1036
+ onRelease: g,
1037
+ ...a
1037
1038
  });
1038
1039
  }
1039
- function Ge(t) {
1040
- const n = st(), { container: e = n.container, ...a } = t;
1040
+ function Gt(e) {
1041
+ const n = ie(), { container: t = n.container, ...a } = e;
1041
1042
  return /* @__PURE__ */ r.createElement(Z.Portal, {
1042
- container: e,
1043
+ container: t,
1043
1044
  ...a
1044
1045
  });
1045
1046
  }
1046
1047
  const V = {
1047
- Root: ne,
1048
- NestedRoot: Ke,
1049
- Content: ae,
1050
- Overlay: re,
1048
+ Root: nt,
1049
+ NestedRoot: Kt,
1050
+ Content: at,
1051
+ Overlay: rt,
1051
1052
  Trigger: Z.Trigger,
1052
- Portal: Ge,
1053
- Handle: oe,
1053
+ Portal: Gt,
1054
+ Handle: ot,
1054
1055
  Close: Z.Close,
1055
1056
  Title: Z.Title,
1056
1057
  Description: Z.Description
1057
- }, Je = ({
1058
- shouldScaleBackground: t = !0,
1058
+ }, Jt = ({
1059
+ shouldScaleBackground: e = !0,
1059
1060
  ...n
1060
1061
  }) => /* @__PURE__ */ X.jsx(
1061
1062
  V.Root,
1062
1063
  {
1063
- shouldScaleBackground: t,
1064
+ shouldScaleBackground: e,
1064
1065
  ...n
1065
1066
  }
1066
1067
  );
1067
- Je.displayName = "Drawer";
1068
- const ln = V.Trigger, Qe = V.Portal, un = V.Close, ie = wt.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ X.jsx(
1068
+ Jt.displayName = "Drawer";
1069
+ const ln = V.Trigger, Qt = V.Portal, un = V.Close, it = pe.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ X.jsx(
1069
1070
  V.Overlay,
1070
1071
  {
1071
- ref: e,
1072
- className: it("fixed inset-0 z-50 bg-black/80", t),
1072
+ ref: t,
1073
+ className: oe("fixed inset-0 z-50 bg-black/80", e),
1073
1074
  ...n
1074
1075
  }
1075
1076
  ));
1076
- ie.displayName = V.Overlay.displayName;
1077
- const Ze = wt.forwardRef(
1078
- ({ className: t, children: n, hideBar: e = !0, ...a }, i) => /* @__PURE__ */ X.jsxs(Qe, { children: [
1079
- /* @__PURE__ */ X.jsx(ie, {}),
1077
+ it.displayName = V.Overlay.displayName;
1078
+ const Zt = pe.forwardRef(
1079
+ ({ className: e, children: n, hideBar: t = !0, ...a }, i) => /* @__PURE__ */ X.jsxs(Qt, { children: [
1080
+ /* @__PURE__ */ X.jsx(it, {}),
1080
1081
  /* @__PURE__ */ X.jsxs(
1081
1082
  V.Content,
1082
1083
  {
1083
1084
  ref: i,
1084
- className: it(
1085
+ className: oe(
1085
1086
  "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
1086
- t
1087
+ e
1087
1088
  ),
1088
1089
  ...a,
1089
1090
  children: [
1090
- !e && /* @__PURE__ */ X.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
1091
+ !t && /* @__PURE__ */ X.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
1091
1092
  n
1092
1093
  ]
1093
1094
  }
1094
1095
  )
1095
1096
  ] })
1096
1097
  );
1097
- Ze.displayName = "DrawerContent";
1098
- const tn = ({
1099
- className: t,
1098
+ Zt.displayName = "DrawerContent";
1099
+ const en = ({
1100
+ className: e,
1100
1101
  ...n
1101
1102
  }) => /* @__PURE__ */ X.jsx(
1102
1103
  "div",
1103
1104
  {
1104
- className: it("grid gap-1.5 p-4 text-center sm:text-left", t),
1105
+ className: oe("grid gap-1.5 p-4 text-center sm:text-left", e),
1105
1106
  ...n
1106
1107
  }
1107
1108
  );
1108
- tn.displayName = "DrawerHeader";
1109
- const en = ({
1110
- className: t,
1109
+ en.displayName = "DrawerHeader";
1110
+ const tn = ({
1111
+ className: e,
1111
1112
  ...n
1112
1113
  }) => /* @__PURE__ */ X.jsx(
1113
1114
  "div",
1114
1115
  {
1115
- className: it("mt-auto flex flex-col gap-2 p-4", t),
1116
+ className: oe("mt-auto flex flex-col gap-2 p-4", e),
1116
1117
  ...n
1117
1118
  }
1118
1119
  );
1119
- en.displayName = "DrawerFooter";
1120
- const nn = wt.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ X.jsx(
1120
+ tn.displayName = "DrawerFooter";
1121
+ const nn = pe.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ X.jsx(
1121
1122
  V.Title,
1122
1123
  {
1123
- ref: e,
1124
- className: it(
1124
+ ref: t,
1125
+ className: oe(
1125
1126
  "text-lg font-semibold leading-none tracking-tight",
1126
- t
1127
+ e
1127
1128
  ),
1128
1129
  ...n
1129
1130
  }
1130
1131
  ));
1131
1132
  nn.displayName = V.Title.displayName;
1132
- const rn = wt.forwardRef(({ className: t, ...n }, e) => /* @__PURE__ */ X.jsx(
1133
+ const rn = pe.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ X.jsx(
1133
1134
  V.Description,
1134
1135
  {
1135
- ref: e,
1136
- className: it("text-sm text-muted-foreground", t),
1136
+ ref: t,
1137
+ className: oe("text-sm text-muted-foreground", e),
1137
1138
  ...n
1138
1139
  }
1139
1140
  ));
1140
1141
  rn.displayName = V.Description.displayName;
1141
1142
  export {
1142
- Je as Drawer,
1143
+ Jt as Drawer,
1143
1144
  un as DrawerClose,
1144
- Ze as DrawerContent,
1145
+ Zt as DrawerContent,
1145
1146
  rn as DrawerDescription,
1146
- en as DrawerFooter,
1147
- tn as DrawerHeader,
1148
- ie as DrawerOverlay,
1149
- Qe as DrawerPortal,
1147
+ tn as DrawerFooter,
1148
+ en as DrawerHeader,
1149
+ it as DrawerOverlay,
1150
+ Qt as DrawerPortal,
1150
1151
  nn as DrawerTitle,
1151
1152
  ln as DrawerTrigger
1152
1153
  };