zudoku 0.0.0-e09234c → 0.0.0-e097cbb

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 (1385) hide show
  1. package/README.md +121 -0
  2. package/cli.js +3 -0
  3. package/dist/app/ZuploBuildConfig.d.ts +155 -0
  4. package/dist/app/ZuploBuildConfig.js +29 -0
  5. package/dist/app/ZuploBuildConfig.js.map +1 -0
  6. package/dist/app/demo.js +1 -4
  7. package/dist/app/demo.js.map +1 -1
  8. package/dist/app/entry.client.d.ts +6 -0
  9. package/dist/app/entry.client.js +17 -1
  10. package/dist/app/entry.client.js.map +1 -1
  11. package/dist/app/entry.server.d.ts +9 -6
  12. package/dist/app/entry.server.js +18 -14
  13. package/dist/app/entry.server.js.map +1 -1
  14. package/dist/app/env.d.ts +33 -0
  15. package/dist/app/env.js +29 -0
  16. package/dist/app/env.js.map +1 -0
  17. package/dist/app/main.d.ts +3 -3
  18. package/dist/app/main.js +33 -17
  19. package/dist/app/main.js.map +1 -1
  20. package/dist/app/sentry.d.ts +3 -0
  21. package/dist/app/sentry.js +19 -0
  22. package/dist/app/sentry.js.map +1 -0
  23. package/dist/app/standalone.js +1 -4
  24. package/dist/app/standalone.js.map +1 -1
  25. package/dist/app/tailwind.d.ts +2 -1
  26. package/dist/app/tailwind.js +80 -48
  27. package/dist/app/tailwind.js.map +1 -1
  28. package/dist/cli/build/handler.d.ts +1 -3
  29. package/dist/cli/build/handler.js +9 -1
  30. package/dist/cli/build/handler.js.map +1 -1
  31. package/dist/cli/cli.js +18 -5
  32. package/dist/cli/cli.js.map +1 -1
  33. package/dist/cli/cmds/build.d.ts +11 -3
  34. package/dist/cli/cmds/build.js +21 -13
  35. package/dist/cli/cmds/build.js.map +1 -1
  36. package/dist/cli/cmds/dev.d.ts +1 -1
  37. package/dist/cli/cmds/dev.js +5 -0
  38. package/dist/cli/cmds/dev.js.map +1 -1
  39. package/dist/cli/cmds/preview.d.ts +16 -0
  40. package/dist/cli/cmds/preview.js +25 -0
  41. package/dist/cli/cmds/preview.js.map +1 -0
  42. package/dist/cli/common/logger.js +9 -0
  43. package/dist/cli/common/logger.js.map +1 -1
  44. package/dist/cli/common/machine-id/lib.js +1 -0
  45. package/dist/cli/common/machine-id/lib.js.map +1 -1
  46. package/dist/cli/common/outdated.js +2 -1
  47. package/dist/cli/common/outdated.js.map +1 -1
  48. package/dist/cli/common/output.js.map +1 -1
  49. package/dist/cli/common/utils/ports.d.ts +1 -1
  50. package/dist/cli/common/utils/ports.js +16 -15
  51. package/dist/cli/common/utils/ports.js.map +1 -1
  52. package/dist/cli/dev/handler.d.ts +1 -0
  53. package/dist/cli/dev/handler.js +15 -12
  54. package/dist/cli/dev/handler.js.map +1 -1
  55. package/dist/cli/preview/handler.d.ts +3 -0
  56. package/dist/cli/preview/handler.js +35 -0
  57. package/dist/cli/preview/handler.js.map +1 -0
  58. package/dist/codegen.d.ts +3 -0
  59. package/dist/codegen.js +45 -0
  60. package/dist/codegen.js.map +1 -0
  61. package/dist/config/common.d.ts +10 -0
  62. package/dist/config/common.js +2 -0
  63. package/dist/config/common.js.map +1 -0
  64. package/dist/config/config.d.ts +20 -16
  65. package/dist/config/loader.d.ts +6 -0
  66. package/dist/config/loader.js +65 -0
  67. package/dist/config/loader.js.map +1 -0
  68. package/dist/config/validators/BuildSchema.d.ts +60 -0
  69. package/dist/config/validators/BuildSchema.js +31 -0
  70. package/dist/config/validators/BuildSchema.js.map +1 -0
  71. package/dist/config/validators/InputSidebarSchema.d.ts +50 -34
  72. package/dist/config/validators/InputSidebarSchema.js +11 -1
  73. package/dist/config/validators/InputSidebarSchema.js.map +1 -1
  74. package/dist/config/validators/SidebarSchema.d.ts +24 -1
  75. package/dist/config/validators/SidebarSchema.js +73 -32
  76. package/dist/config/validators/SidebarSchema.js.map +1 -1
  77. package/dist/config/validators/common.d.ts +7676 -0
  78. package/dist/config/validators/common.js +402 -0
  79. package/dist/config/validators/common.js.map +1 -0
  80. package/dist/config/validators/icon-types.d.ts +1 -0
  81. package/dist/config/validators/icon-types.js +2 -0
  82. package/dist/config/validators/icon-types.js.map +1 -0
  83. package/dist/config/validators/validate.d.ts +1869 -540
  84. package/dist/config/validators/validate.js +9 -213
  85. package/dist/config/validators/validate.js.map +1 -1
  86. package/dist/index.d.ts +4 -3
  87. package/dist/index.js +2 -1
  88. package/dist/index.js.map +1 -1
  89. package/dist/lib/MissingIcon.d.ts +2 -0
  90. package/dist/lib/MissingIcon.js +7 -0
  91. package/dist/lib/MissingIcon.js.map +1 -0
  92. package/dist/lib/authentication/AuthenticationPlugin.d.ts +4 -2
  93. package/dist/lib/authentication/AuthenticationPlugin.js +3 -0
  94. package/dist/lib/authentication/AuthenticationPlugin.js.map +1 -1
  95. package/dist/lib/authentication/authentication.d.ts +4 -3
  96. package/dist/lib/authentication/components/CallbackHandler.js +21 -31
  97. package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
  98. package/dist/lib/authentication/components/SignIn.d.ts +1 -1
  99. package/dist/lib/authentication/components/SignIn.js +5 -2
  100. package/dist/lib/authentication/components/SignIn.js.map +1 -1
  101. package/dist/lib/authentication/components/SignOut.js +2 -2
  102. package/dist/lib/authentication/components/SignOut.js.map +1 -1
  103. package/dist/lib/authentication/components/SignUp.d.ts +1 -1
  104. package/dist/lib/authentication/components/SignUp.js +4 -1
  105. package/dist/lib/authentication/components/SignUp.js.map +1 -1
  106. package/dist/lib/authentication/hook.d.ts +6 -4
  107. package/dist/lib/authentication/hook.js +12 -4
  108. package/dist/lib/authentication/hook.js.map +1 -1
  109. package/dist/lib/authentication/providers/auth0.d.ts +2 -2
  110. package/dist/lib/authentication/providers/auth0.js +14 -12
  111. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  112. package/dist/lib/authentication/providers/clerk.d.ts +2 -2
  113. package/dist/lib/authentication/providers/clerk.js +54 -12
  114. package/dist/lib/authentication/providers/clerk.js.map +1 -1
  115. package/dist/lib/authentication/providers/openid.d.ts +15 -5
  116. package/dist/lib/authentication/providers/openid.js +62 -46
  117. package/dist/lib/authentication/providers/openid.js.map +1 -1
  118. package/dist/lib/authentication/providers/supabase.d.ts +4 -0
  119. package/dist/lib/authentication/providers/supabase.js +117 -0
  120. package/dist/lib/authentication/providers/supabase.js.map +1 -0
  121. package/dist/lib/authentication/state.d.ts +23 -19
  122. package/dist/lib/authentication/state.js +34 -7
  123. package/dist/lib/authentication/state.js.map +1 -1
  124. package/dist/lib/authentication/use-broadcast/shared.d.ts +48 -0
  125. package/dist/lib/authentication/use-broadcast/shared.js +243 -0
  126. package/dist/lib/authentication/use-broadcast/shared.js.map +1 -0
  127. package/dist/lib/authentication/use-broadcast/useBroadcast.d.ts +24 -0
  128. package/dist/lib/authentication/use-broadcast/useBroadcast.js +106 -0
  129. package/dist/lib/authentication/use-broadcast/useBroadcast.js.map +1 -0
  130. package/dist/lib/components/AnchorLink.d.ts +2 -2
  131. package/dist/lib/components/AnchorLink.js +9 -5
  132. package/dist/lib/components/AnchorLink.js.map +1 -1
  133. package/dist/lib/components/Autocomplete.d.ts +13 -0
  134. package/dist/lib/components/Autocomplete.js +47 -0
  135. package/dist/lib/components/Autocomplete.js.map +1 -0
  136. package/dist/lib/components/Banner.js +1 -1
  137. package/dist/lib/components/Banner.js.map +1 -1
  138. package/dist/lib/components/Bootstrap.d.ts +5 -3
  139. package/dist/lib/components/Bootstrap.js +13 -6
  140. package/dist/lib/components/Bootstrap.js.map +1 -1
  141. package/dist/lib/components/BuildCheck.d.ts +4 -0
  142. package/dist/lib/components/BuildCheck.js +38 -0
  143. package/dist/lib/components/BuildCheck.js.map +1 -0
  144. package/dist/lib/components/ClientOnly.d.ts +4 -2
  145. package/dist/lib/components/ClientOnly.js +1 -1
  146. package/dist/lib/components/ClientOnly.js.map +1 -1
  147. package/dist/lib/components/DeveloperHint.js +2 -1
  148. package/dist/lib/components/DeveloperHint.js.map +1 -1
  149. package/dist/lib/components/Footer.d.ts +1 -0
  150. package/dist/lib/components/Footer.js +32 -0
  151. package/dist/lib/components/Footer.js.map +1 -0
  152. package/dist/lib/components/Header.js +22 -15
  153. package/dist/lib/components/Header.js.map +1 -1
  154. package/dist/lib/components/Heading.d.ts +4 -4
  155. package/dist/lib/components/Heading.js +1 -1
  156. package/dist/lib/components/Heading.js.map +1 -1
  157. package/dist/lib/components/InlineCode.d.ts +2 -1
  158. package/dist/lib/components/InlineCode.js +2 -9
  159. package/dist/lib/components/InlineCode.js.map +1 -1
  160. package/dist/lib/components/Layout.js +9 -20
  161. package/dist/lib/components/Layout.js.map +1 -1
  162. package/dist/lib/components/Main.d.ts +2 -0
  163. package/dist/lib/components/Main.js +17 -0
  164. package/dist/lib/components/Main.js.map +1 -0
  165. package/dist/lib/components/Markdown.d.ts +2 -2
  166. package/dist/lib/components/Markdown.js +4 -2
  167. package/dist/lib/components/Markdown.js.map +1 -1
  168. package/dist/lib/components/MobileTopNavigation.js +12 -7
  169. package/dist/lib/components/MobileTopNavigation.js.map +1 -1
  170. package/dist/lib/components/NotFoundPage.js +1 -1
  171. package/dist/lib/components/NotFoundPage.js.map +1 -1
  172. package/dist/lib/components/Pagination.d.ts +11 -0
  173. package/dist/lib/components/Pagination.js +10 -0
  174. package/dist/lib/components/Pagination.js.map +1 -0
  175. package/dist/lib/components/PathRenderer.d.ts +11 -0
  176. package/dist/lib/components/PathRenderer.js +28 -0
  177. package/dist/lib/components/PathRenderer.js.map +1 -0
  178. package/dist/lib/components/ReactMarkdown.d.ts +29 -0
  179. package/dist/lib/components/ReactMarkdown.js +182 -0
  180. package/dist/lib/components/ReactMarkdown.js.map +1 -0
  181. package/dist/lib/components/Search.d.ts +3 -1
  182. package/dist/lib/components/Search.js +9 -3
  183. package/dist/lib/components/Search.js.map +1 -1
  184. package/dist/lib/components/SlotletProvider.d.ts +3 -2
  185. package/dist/lib/components/SlotletProvider.js.map +1 -1
  186. package/dist/lib/components/StatusPage.d.ts +7 -0
  187. package/dist/lib/components/StatusPage.js +71 -0
  188. package/dist/lib/components/StatusPage.js.map +1 -0
  189. package/dist/lib/components/ThemeSwitch.d.ts +1 -0
  190. package/dist/lib/components/ThemeSwitch.js +16 -0
  191. package/dist/lib/components/ThemeSwitch.js.map +1 -0
  192. package/dist/lib/components/TopNavigation.d.ts +6 -0
  193. package/dist/lib/components/TopNavigation.js +45 -17
  194. package/dist/lib/components/TopNavigation.js.map +1 -1
  195. package/dist/lib/components/{DevPortal.d.ts → Zudoku.d.ts} +3 -3
  196. package/dist/lib/components/{DevPortal.js → Zudoku.js} +22 -18
  197. package/dist/lib/components/Zudoku.js.map +1 -0
  198. package/dist/lib/components/cache.d.ts +13 -0
  199. package/dist/lib/components/cache.js +20 -0
  200. package/dist/lib/components/cache.js.map +1 -0
  201. package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
  202. package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
  203. package/dist/lib/components/context/BypassProtectedRoutesContext.js.map +1 -0
  204. package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
  205. package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
  206. package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
  207. package/dist/lib/components/context/ViewportAnchorContext.d.ts +2 -4
  208. package/dist/lib/components/context/ViewportAnchorContext.js +29 -23
  209. package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
  210. package/dist/lib/components/context/ZudokuContext.d.ts +8 -7
  211. package/dist/lib/components/context/ZudokuContext.js +28 -20
  212. package/dist/lib/components/context/ZudokuContext.js.map +1 -1
  213. package/dist/lib/components/context/ZudokuProvider.d.ts +2 -2
  214. package/dist/lib/components/context/ZudokuProvider.js.map +1 -1
  215. package/dist/lib/components/index.d.ts +58 -17
  216. package/dist/lib/components/index.js +27 -6
  217. package/dist/lib/components/index.js.map +1 -1
  218. package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
  219. package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
  220. package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
  221. package/dist/lib/components/navigation/Sidebar.d.ts +5 -1
  222. package/dist/lib/components/navigation/Sidebar.js +3 -7
  223. package/dist/lib/components/navigation/Sidebar.js.map +1 -1
  224. package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
  225. package/dist/lib/components/navigation/SidebarBadge.js +13 -11
  226. package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
  227. package/dist/lib/components/navigation/SidebarCategory.d.ts +3 -3
  228. package/dist/lib/components/navigation/SidebarCategory.js +26 -21
  229. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  230. package/dist/lib/components/navigation/SidebarItem.d.ts +3 -4
  231. package/dist/lib/components/navigation/SidebarItem.js +19 -17
  232. package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
  233. package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
  234. package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
  235. package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
  236. package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +5 -7
  237. package/dist/lib/components/navigation/Toc.js.map +1 -0
  238. package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
  239. package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
  240. package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
  241. package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
  242. package/dist/lib/components/navigation/ZuploLogo.js +4 -0
  243. package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
  244. package/dist/lib/components/navigation/utils.js +3 -3
  245. package/dist/lib/components/navigation/utils.js.map +1 -1
  246. package/dist/lib/core/RouteGuard.d.ts +2 -0
  247. package/dist/lib/core/RouteGuard.js +52 -0
  248. package/dist/lib/core/RouteGuard.js.map +1 -0
  249. package/dist/lib/core/{DevPortalContext.d.ts → ZudokuContext.d.ts} +39 -15
  250. package/dist/lib/core/ZudokuContext.js +69 -0
  251. package/dist/lib/core/ZudokuContext.js.map +1 -0
  252. package/dist/lib/core/plugins.d.ts +31 -17
  253. package/dist/lib/core/plugins.js +3 -0
  254. package/dist/lib/core/plugins.js.map +1 -1
  255. package/dist/lib/errors/ErrorAlert.d.ts +1 -1
  256. package/dist/lib/errors/ErrorAlert.js +13 -3
  257. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  258. package/dist/lib/errors/RouterError.js +1 -1
  259. package/dist/lib/errors/RouterError.js.map +1 -1
  260. package/dist/lib/hooks/index.d.ts +3 -0
  261. package/dist/lib/hooks/index.js +5 -0
  262. package/dist/lib/hooks/index.js.map +1 -0
  263. package/dist/lib/hooks/useEvent.d.ts +11 -0
  264. package/dist/lib/hooks/useEvent.js +19 -0
  265. package/dist/lib/hooks/useEvent.js.map +1 -0
  266. package/dist/lib/hooks/useEvent.test.js +100 -0
  267. package/dist/lib/hooks/useEvent.test.js.map +1 -0
  268. package/dist/lib/icons.d.ts +1 -0
  269. package/dist/lib/icons.js +1 -0
  270. package/dist/lib/icons.js.map +1 -1
  271. package/dist/lib/oas/graphql/circular.d.ts +3 -0
  272. package/dist/lib/oas/graphql/circular.js +38 -0
  273. package/dist/lib/oas/graphql/circular.js.map +1 -0
  274. package/dist/lib/oas/graphql/index.d.ts +25 -1
  275. package/dist/lib/oas/graphql/index.js +216 -69
  276. package/dist/lib/oas/graphql/index.js.map +1 -1
  277. package/dist/lib/oas/parser/dereference/index.js +8 -3
  278. package/dist/lib/oas/parser/dereference/index.js.map +1 -1
  279. package/dist/lib/oas/parser/index.d.ts +5 -3
  280. package/dist/lib/oas/parser/index.js +2 -23
  281. package/dist/lib/oas/parser/index.js.map +1 -1
  282. package/dist/lib/oas/parser/upgrade/index.d.ts +2 -2
  283. package/dist/lib/oas/parser/upgrade/index.js +22 -22
  284. package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
  285. package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -0
  286. package/dist/lib/plugins/api-catalog/Catalog.js +26 -0
  287. package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -0
  288. package/dist/lib/plugins/api-catalog/index.d.ts +31 -0
  289. package/dist/lib/plugins/api-catalog/index.js +46 -0
  290. package/dist/lib/plugins/api-catalog/index.js.map +1 -0
  291. package/dist/lib/plugins/api-keys/CreateApiKey.js +9 -5
  292. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  293. package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
  294. package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
  295. package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
  296. package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
  297. package/dist/lib/plugins/api-keys/index.d.ts +10 -9
  298. package/dist/lib/plugins/api-keys/index.js +4 -0
  299. package/dist/lib/plugins/api-keys/index.js.map +1 -1
  300. package/dist/lib/plugins/custom-pages/CustomPage.js +2 -2
  301. package/dist/lib/plugins/custom-pages/index.d.ts +2 -2
  302. package/dist/lib/plugins/custom-pages/index.js.map +1 -1
  303. package/dist/lib/plugins/markdown/MdxPage.d.ts +10 -2
  304. package/dist/lib/plugins/markdown/MdxPage.js +17 -4
  305. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  306. package/dist/lib/plugins/markdown/index.d.ts +5 -3
  307. package/dist/lib/plugins/markdown/index.js +1 -1
  308. package/dist/lib/plugins/markdown/index.js.map +1 -1
  309. package/dist/lib/plugins/markdown/resolver.d.ts +0 -6
  310. package/dist/lib/plugins/markdown/resolver.js +0 -29
  311. package/dist/lib/plugins/markdown/resolver.js.map +1 -1
  312. package/dist/lib/plugins/openapi/CollapsibleCode.d.ts +5 -0
  313. package/dist/lib/plugins/openapi/CollapsibleCode.js +25 -0
  314. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -0
  315. package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
  316. package/dist/lib/plugins/openapi/ColorizedParam.js +29 -14
  317. package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
  318. package/dist/lib/plugins/openapi/Endpoint.js +13 -16
  319. package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
  320. package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
  321. package/dist/lib/plugins/openapi/OasProvider.js +29 -0
  322. package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
  323. package/dist/lib/plugins/openapi/OperationList.d.ts +6 -3
  324. package/dist/lib/plugins/openapi/OperationList.js +107 -27
  325. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  326. package/dist/lib/plugins/openapi/OperationListItem.d.ts +5 -3
  327. package/dist/lib/plugins/openapi/OperationListItem.js +10 -5
  328. package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
  329. package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
  330. package/dist/lib/plugins/openapi/ParamInfos.js +43 -0
  331. package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
  332. package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
  333. package/dist/lib/plugins/openapi/ParameterList.js +3 -2
  334. package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
  335. package/dist/lib/plugins/openapi/ParameterListItem.js +19 -1
  336. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  337. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
  338. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +12 -3
  339. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  340. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
  341. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -9
  342. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  343. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +7 -6
  344. package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
  345. package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
  346. package/dist/lib/plugins/openapi/SchemaList.js +52 -0
  347. package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
  348. package/dist/lib/plugins/openapi/Sidecar.d.ts +1 -1
  349. package/dist/lib/plugins/openapi/Sidecar.js +83 -64
  350. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  351. package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
  352. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  353. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
  354. package/dist/lib/plugins/openapi/SidecarExamples.js +68 -0
  355. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
  356. package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
  357. package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
  358. package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +8 -0
  359. package/dist/lib/plugins/openapi/client/GraphQLClient.js +43 -0
  360. package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -0
  361. package/dist/lib/plugins/openapi/client/GraphQLContext.d.ts +7 -0
  362. package/dist/lib/plugins/openapi/client/GraphQLContext.js +5 -0
  363. package/dist/lib/plugins/openapi/client/GraphQLContext.js.map +1 -0
  364. package/dist/lib/plugins/openapi/client/createServer.d.ts +3 -1
  365. package/dist/lib/plugins/openapi/client/createServer.js +5 -2
  366. package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
  367. package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +9 -0
  368. package/dist/lib/plugins/openapi/client/useCreateQuery.js +14 -0
  369. package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -0
  370. package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
  371. package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
  372. package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
  373. package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
  374. package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
  375. package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
  376. package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
  377. package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
  378. package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
  379. package/dist/lib/plugins/openapi/context.d.ts +3 -3
  380. package/dist/lib/plugins/openapi/graphql/fragment-masking.d.ts +3 -3
  381. package/dist/lib/plugins/openapi/graphql/fragment-masking.js +3 -4
  382. package/dist/lib/plugins/openapi/graphql/fragment-masking.js.map +1 -1
  383. package/dist/lib/plugins/openapi/graphql/gql.d.ts +8 -46
  384. package/dist/lib/plugins/openapi/graphql/gql.js +6 -13
  385. package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
  386. package/dist/lib/plugins/openapi/graphql/graphql.d.ts +141 -25
  387. package/dist/lib/plugins/openapi/graphql/graphql.js +238 -662
  388. package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
  389. package/dist/lib/plugins/openapi/index.d.ts +11 -7
  390. package/dist/lib/plugins/openapi/index.js +72 -104
  391. package/dist/lib/plugins/openapi/index.js.map +1 -1
  392. package/dist/lib/plugins/openapi/interfaces.d.ts +56 -3
  393. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  394. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +8 -0
  395. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  396. package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
  397. package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
  398. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  399. package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
  400. package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
  401. package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
  402. package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
  403. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +10 -0
  404. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
  405. package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
  406. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
  407. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
  408. package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
  409. package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
  410. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  411. package/dist/lib/plugins/openapi/playground/Playground.d.ts +37 -2
  412. package/dist/lib/plugins/openapi/playground/Playground.js +133 -70
  413. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  414. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +2 -2
  415. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  416. package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
  417. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  418. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
  419. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
  420. package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
  421. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
  422. package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
  423. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
  424. package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
  425. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
  426. package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
  427. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
  428. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
  429. package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
  430. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
  431. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +101 -0
  432. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
  433. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +9 -0
  434. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +17 -0
  435. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
  436. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
  437. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
  438. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
  439. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
  440. package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
  441. package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
  442. package/dist/lib/plugins/openapi/processors/removeExtensions.js +16 -0
  443. package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
  444. package/dist/lib/plugins/openapi/processors/removeExtensions.test.d.ts +1 -0
  445. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js +194 -0
  446. package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
  447. package/dist/lib/plugins/openapi/processors/removeParameters.d.ts +12 -0
  448. package/dist/lib/plugins/openapi/processors/removeParameters.js +66 -0
  449. package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
  450. package/dist/lib/plugins/openapi/processors/removeParameters.test.d.ts +1 -0
  451. package/dist/lib/plugins/openapi/processors/removeParameters.test.js +159 -0
  452. package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
  453. package/dist/lib/plugins/openapi/processors/removePaths.d.ts +13 -0
  454. package/dist/lib/plugins/openapi/processors/removePaths.js +33 -0
  455. package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
  456. package/dist/lib/plugins/openapi/processors/removePaths.test.d.ts +1 -0
  457. package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
  458. package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
  459. package/dist/lib/plugins/openapi/processors/traverse.d.ts +1 -0
  460. package/dist/lib/plugins/openapi/processors/traverse.js +2 -0
  461. package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
  462. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
  463. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
  464. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
  465. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
  466. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
  467. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
  468. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
  469. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
  470. package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
  471. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
  472. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +12 -0
  473. package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
  474. package/dist/lib/plugins/openapi/schema/{SchemaComponents.d.ts → SchemaPropertyItem.d.ts} +2 -4
  475. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +45 -0
  476. package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
  477. package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -2
  478. package/dist/lib/plugins/openapi/schema/SchemaView.js +38 -48
  479. package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
  480. package/dist/lib/plugins/openapi/schema/utils.d.ts +3 -0
  481. package/dist/lib/plugins/openapi/schema/utils.js +8 -1
  482. package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
  483. package/dist/lib/plugins/openapi/state.d.ts +25 -0
  484. package/dist/lib/plugins/openapi/state.js +18 -0
  485. package/dist/lib/plugins/openapi/state.js.map +1 -0
  486. package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
  487. package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
  488. package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
  489. package/dist/lib/plugins/openapi/util/generateSchemaExample.d.ts +0 -1
  490. package/dist/lib/plugins/openapi/util/generateSchemaExample.js +73 -39
  491. package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
  492. package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
  493. package/dist/lib/plugins/openapi/util/getRoutes.js +87 -0
  494. package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
  495. package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
  496. package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
  497. package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
  498. package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
  499. package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
  500. package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
  501. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
  502. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
  503. package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
  504. package/dist/lib/plugins/redirect/index.d.ts +4 -7
  505. package/dist/lib/plugins/redirect/index.js +2 -2
  506. package/dist/lib/plugins/redirect/index.js.map +1 -1
  507. package/dist/lib/plugins/search-inkeep/index.d.ts +24 -5
  508. package/dist/lib/plugins/search-inkeep/index.js +41 -5
  509. package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
  510. package/dist/lib/plugins/search-inkeep/inkeep.d.ts +3 -4
  511. package/dist/lib/plugins/search-inkeep/inkeep.js.map +1 -1
  512. package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
  513. package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
  514. package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
  515. package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
  516. package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
  517. package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
  518. package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
  519. package/dist/lib/plugins/search-pagefind/get-results.js +42 -0
  520. package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
  521. package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
  522. package/dist/lib/plugins/search-pagefind/index.js +9 -0
  523. package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
  524. package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
  525. package/dist/lib/plugins/search-pagefind/types.js +2 -0
  526. package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
  527. package/dist/lib/ui/Accordion.d.ts +7 -0
  528. package/dist/lib/ui/Accordion.js +14 -0
  529. package/dist/lib/ui/Accordion.js.map +1 -0
  530. package/dist/lib/ui/ActionButton.d.ts +4 -0
  531. package/dist/lib/ui/ActionButton.js +10 -0
  532. package/dist/lib/ui/ActionButton.js.map +1 -0
  533. package/dist/lib/ui/Alert.d.ts +8 -0
  534. package/dist/lib/ui/Alert.js +23 -0
  535. package/dist/lib/ui/Alert.js.map +1 -0
  536. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  537. package/dist/lib/ui/AlertDialog.js +27 -0
  538. package/dist/lib/ui/AlertDialog.js.map +1 -0
  539. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  540. package/dist/lib/ui/AspectRatio.js +4 -0
  541. package/dist/lib/ui/AspectRatio.js.map +1 -0
  542. package/dist/lib/ui/Badge.d.ts +9 -0
  543. package/dist/lib/ui/Badge.js +22 -0
  544. package/dist/lib/ui/Badge.js.map +1 -0
  545. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  546. package/dist/lib/ui/Breadcrumb.js +24 -0
  547. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  548. package/dist/lib/ui/Button.d.ts +3 -4
  549. package/dist/lib/ui/Button.js +2 -1
  550. package/dist/lib/ui/Button.js.map +1 -1
  551. package/dist/lib/ui/Callout.d.ts +2 -1
  552. package/dist/lib/ui/Callout.js +3 -2
  553. package/dist/lib/ui/Callout.js.map +1 -1
  554. package/dist/lib/ui/Card.js +1 -1
  555. package/dist/lib/ui/Card.js.map +1 -1
  556. package/dist/lib/ui/Carousel.d.ts +18 -0
  557. package/dist/lib/ui/Carousel.js +99 -0
  558. package/dist/lib/ui/Carousel.js.map +1 -0
  559. package/dist/lib/ui/Checkbox.d.ts +4 -0
  560. package/dist/lib/ui/Checkbox.js +9 -0
  561. package/dist/lib/ui/Checkbox.js.map +1 -0
  562. package/dist/lib/ui/Collapsible.d.ts +5 -0
  563. package/dist/lib/ui/Collapsible.js +6 -0
  564. package/dist/lib/ui/Collapsible.js.map +1 -0
  565. package/dist/lib/ui/Command.d.ts +94 -0
  566. package/dist/lib/ui/Command.js +35 -0
  567. package/dist/lib/ui/Command.js.map +1 -0
  568. package/dist/lib/{components → ui}/Dialog.js +2 -2
  569. package/dist/lib/ui/Dialog.js.map +1 -0
  570. package/dist/lib/ui/Form.d.ts +23 -0
  571. package/dist/lib/ui/Form.js +63 -0
  572. package/dist/lib/ui/Form.js.map +1 -0
  573. package/dist/lib/ui/HoverCard.d.ts +6 -0
  574. package/dist/lib/ui/HoverCard.js +10 -0
  575. package/dist/lib/ui/HoverCard.js.map +1 -0
  576. package/dist/lib/ui/Input.d.ts +1 -2
  577. package/dist/lib/ui/Input.js.map +1 -1
  578. package/dist/lib/ui/Label.d.ts +5 -0
  579. package/dist/lib/ui/Label.js +10 -0
  580. package/dist/lib/ui/Label.js.map +1 -0
  581. package/dist/lib/ui/Pagination.d.ts +28 -0
  582. package/dist/lib/ui/Pagination.js +24 -0
  583. package/dist/lib/ui/Pagination.js.map +1 -0
  584. package/dist/lib/ui/Popover.d.ts +6 -0
  585. package/dist/lib/ui/Popover.js +10 -0
  586. package/dist/lib/ui/Popover.js.map +1 -0
  587. package/dist/lib/ui/Progress.d.ts +4 -0
  588. package/dist/lib/ui/Progress.js +8 -0
  589. package/dist/lib/ui/Progress.js.map +1 -0
  590. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  591. package/dist/lib/ui/RadioGroup.js +15 -0
  592. package/dist/lib/ui/RadioGroup.js.map +1 -0
  593. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  594. package/dist/lib/ui/ScrollArea.js +12 -0
  595. package/dist/lib/ui/ScrollArea.js.map +1 -0
  596. package/dist/lib/{components → ui}/Select.js +3 -3
  597. package/dist/lib/ui/Select.js.map +1 -0
  598. package/dist/lib/ui/Skeleton.d.ts +2 -0
  599. package/dist/lib/ui/Skeleton.js +7 -0
  600. package/dist/lib/ui/Skeleton.js.map +1 -0
  601. package/dist/lib/ui/Slider.d.ts +4 -0
  602. package/dist/lib/ui/Slider.js +8 -0
  603. package/dist/lib/ui/Slider.js.map +1 -0
  604. package/dist/lib/ui/Stepper.d.ts +3 -0
  605. package/dist/lib/ui/Stepper.js +7 -0
  606. package/dist/lib/ui/Stepper.js.map +1 -0
  607. package/dist/lib/ui/Switch.d.ts +4 -0
  608. package/dist/lib/ui/Switch.js +8 -0
  609. package/dist/lib/ui/Switch.js.map +1 -0
  610. package/dist/lib/ui/SyntaxHighlight.d.ts +15 -0
  611. package/dist/lib/ui/SyntaxHighlight.js +62 -0
  612. package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
  613. package/dist/lib/ui/Textarea.d.ts +4 -0
  614. package/dist/lib/ui/Textarea.js +9 -0
  615. package/dist/lib/ui/Textarea.js.map +1 -0
  616. package/dist/lib/ui/Toggle.d.ts +12 -0
  617. package/dist/lib/ui/Toggle.js +26 -0
  618. package/dist/lib/ui/Toggle.js.map +1 -0
  619. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  620. package/dist/lib/ui/ToggleGroup.js +21 -0
  621. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  622. package/dist/lib/ui/Tooltip.d.ts +7 -0
  623. package/dist/lib/ui/Tooltip.js +11 -0
  624. package/dist/lib/ui/Tooltip.js.map +1 -0
  625. package/dist/lib/ui/util.d.ts +2 -0
  626. package/dist/lib/ui/util.js +3 -0
  627. package/dist/lib/ui/util.js.map +1 -0
  628. package/dist/lib/util/MdxComponents.d.ts +24 -21
  629. package/dist/lib/util/MdxComponents.js +10 -7
  630. package/dist/lib/util/MdxComponents.js.map +1 -1
  631. package/dist/lib/util/createVariantComponent.d.ts +2 -2
  632. package/dist/lib/util/detectOS.d.ts +1 -0
  633. package/dist/lib/util/detectOS.js +11 -0
  634. package/dist/lib/util/detectOS.js.map +1 -0
  635. package/dist/lib/util/ensureArray.d.ts +1 -0
  636. package/dist/lib/util/ensureArray.js +2 -0
  637. package/dist/lib/util/ensureArray.js.map +1 -0
  638. package/dist/lib/util/invariant.d.ts +9 -0
  639. package/dist/lib/util/invariant.js +7 -3
  640. package/dist/lib/util/invariant.js.map +1 -1
  641. package/dist/lib/util/joinPath.d.ts +3 -0
  642. package/dist/lib/util/joinPath.js +3 -0
  643. package/dist/lib/util/joinPath.js.map +1 -1
  644. package/dist/lib/util/joinUrl.d.ts +1 -0
  645. package/dist/lib/util/joinUrl.js +40 -0
  646. package/dist/lib/util/joinUrl.js.map +1 -0
  647. package/dist/lib/util/joinUrl.test.d.ts +1 -0
  648. package/dist/lib/util/joinUrl.test.js +43 -0
  649. package/dist/lib/util/joinUrl.test.js.map +1 -0
  650. package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
  651. package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
  652. package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
  653. package/dist/lib/util/traverse.d.ts +3 -0
  654. package/dist/lib/util/traverse.js +22 -0
  655. package/dist/lib/util/traverse.js.map +1 -0
  656. package/dist/lib/util/types.d.ts +7 -0
  657. package/dist/lib/util/types.js +2 -0
  658. package/dist/lib/util/types.js.map +1 -0
  659. package/dist/lib/util/useExposedProps.js +3 -2
  660. package/dist/lib/util/useExposedProps.js.map +1 -1
  661. package/dist/lib/util/useIsomorphicLayoutEffect.d.ts +3 -0
  662. package/dist/lib/util/useIsomorphicLayoutEffect.js +4 -0
  663. package/dist/lib/util/useIsomorphicLayoutEffect.js.map +1 -0
  664. package/dist/lib/util/useLatest.d.ts +1 -0
  665. package/dist/lib/util/useLatest.js +15 -0
  666. package/dist/lib/util/useLatest.js.map +1 -0
  667. package/dist/lib/util/useOnScreen.d.ts +5 -0
  668. package/dist/lib/util/useOnScreen.js +19 -0
  669. package/dist/lib/util/useOnScreen.js.map +1 -0
  670. package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
  671. package/dist/lib/util/useScrollToAnchor.js +42 -37
  672. package/dist/lib/util/useScrollToAnchor.js.map +1 -1
  673. package/dist/lib/util/useScrollToTop.js +7 -5
  674. package/dist/lib/util/useScrollToTop.js.map +1 -1
  675. package/dist/vite/api/SchemaManager.d.ts +36 -0
  676. package/dist/vite/api/SchemaManager.js +120 -0
  677. package/dist/vite/api/SchemaManager.js.map +1 -0
  678. package/dist/vite/api/SchemaManager.test.d.ts +1 -0
  679. package/dist/vite/api/SchemaManager.test.js +106 -0
  680. package/dist/vite/api/SchemaManager.test.js.map +1 -0
  681. package/dist/vite/api/schema-codegen.d.ts +12 -0
  682. package/dist/vite/api/schema-codegen.js +85 -0
  683. package/dist/vite/api/schema-codegen.js.map +1 -0
  684. package/dist/vite/api/schema-codegen.test.d.ts +1 -0
  685. package/dist/vite/api/schema-codegen.test.js +313 -0
  686. package/dist/vite/api/schema-codegen.test.js.map +1 -0
  687. package/dist/vite/build.js +43 -14
  688. package/dist/vite/build.js.map +1 -1
  689. package/dist/vite/config.d.ts +7 -14
  690. package/dist/vite/config.js +125 -112
  691. package/dist/vite/config.js.map +1 -1
  692. package/dist/vite/config.test.js +11 -5
  693. package/dist/vite/config.test.js.map +1 -1
  694. package/dist/vite/create-pagefind-index.d.ts +4 -0
  695. package/dist/vite/create-pagefind-index.js +12 -0
  696. package/dist/vite/create-pagefind-index.js.map +1 -0
  697. package/dist/vite/css/collect.d.ts +2 -0
  698. package/dist/vite/css/collect.js +27 -0
  699. package/dist/vite/css/collect.js.map +1 -0
  700. package/dist/vite/css/plugin.d.ts +5 -0
  701. package/dist/vite/css/plugin.js +79 -0
  702. package/dist/vite/css/plugin.js.map +1 -0
  703. package/dist/vite/dev-server.d.ts +5 -2
  704. package/dist/vite/dev-server.js +66 -16
  705. package/dist/vite/dev-server.js.map +1 -1
  706. package/dist/vite/error-handler.d.ts +1 -1
  707. package/dist/vite/error-handler.js +1 -1
  708. package/dist/vite/error-handler.js.map +1 -1
  709. package/dist/vite/html.js +0 -2
  710. package/dist/vite/html.js.map +1 -1
  711. package/dist/vite/output.d.ts +113 -0
  712. package/dist/vite/output.js +60 -0
  713. package/dist/vite/output.js.map +1 -0
  714. package/dist/vite/plugin-api-keys.d.ts +2 -2
  715. package/dist/vite/plugin-api-keys.js +5 -5
  716. package/dist/vite/plugin-api-keys.js.map +1 -1
  717. package/dist/vite/plugin-api.d.ts +2 -2
  718. package/dist/vite/plugin-api.js +145 -32
  719. package/dist/vite/plugin-api.js.map +1 -1
  720. package/dist/vite/plugin-auth.d.ts +2 -2
  721. package/dist/vite/plugin-auth.js +7 -4
  722. package/dist/vite/plugin-auth.js.map +1 -1
  723. package/dist/vite/plugin-component.d.ts +2 -2
  724. package/dist/vite/plugin-component.js +22 -12
  725. package/dist/vite/plugin-component.js.map +1 -1
  726. package/dist/vite/plugin-config-reload.d.ts +4 -4
  727. package/dist/vite/plugin-config-reload.js +13 -8
  728. package/dist/vite/plugin-config-reload.js.map +1 -1
  729. package/dist/vite/plugin-config.d.ts +2 -3
  730. package/dist/vite/plugin-config.js +26 -3
  731. package/dist/vite/plugin-config.js.map +1 -1
  732. package/dist/vite/plugin-custom-pages.d.ts +2 -2
  733. package/dist/vite/plugin-custom-pages.js +3 -3
  734. package/dist/vite/plugin-custom-pages.js.map +1 -1
  735. package/dist/vite/plugin-docs.d.ts +3 -3
  736. package/dist/vite/plugin-docs.js +23 -6
  737. package/dist/vite/plugin-docs.js.map +1 -1
  738. package/dist/vite/plugin-docs.test.js +15 -23
  739. package/dist/vite/plugin-docs.test.js.map +1 -1
  740. package/dist/vite/plugin-frontmatter.d.ts +2 -1
  741. package/dist/vite/plugin-frontmatter.js +28 -24
  742. package/dist/vite/plugin-frontmatter.js.map +1 -1
  743. package/dist/vite/plugin-mdx.d.ts +2 -8
  744. package/dist/vite/plugin-mdx.js +89 -16
  745. package/dist/vite/plugin-mdx.js.map +1 -1
  746. package/dist/vite/plugin-redirect.d.ts +2 -2
  747. package/dist/vite/plugin-redirect.js +3 -3
  748. package/dist/vite/plugin-redirect.js.map +1 -1
  749. package/dist/vite/plugin-search.d.ts +3 -0
  750. package/dist/vite/plugin-search.js +30 -0
  751. package/dist/vite/plugin-search.js.map +1 -0
  752. package/dist/vite/plugin-sidebar.d.ts +5 -3
  753. package/dist/vite/plugin-sidebar.js +24 -11
  754. package/dist/vite/plugin-sidebar.js.map +1 -1
  755. package/dist/vite/{plugin-custom-css.d.ts → plugin-theme-css.d.ts} +3 -3
  756. package/dist/vite/plugin-theme-css.js +117 -0
  757. package/dist/vite/plugin-theme-css.js.map +1 -0
  758. package/dist/vite/plugin.d.ts +2 -3
  759. package/dist/vite/plugin.js +10 -6
  760. package/dist/vite/plugin.js.map +1 -1
  761. package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
  762. package/dist/vite/prerender/FileWritingResponse.js +51 -0
  763. package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
  764. package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
  765. package/dist/vite/prerender/InMemoryResponse.js +32 -0
  766. package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
  767. package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
  768. package/dist/vite/prerender/PrerenderResponse.js +2 -0
  769. package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
  770. package/dist/vite/prerender/prerender.d.ts +15 -0
  771. package/dist/vite/prerender/prerender.js +109 -0
  772. package/dist/vite/prerender/prerender.js.map +1 -0
  773. package/dist/vite/prerender/worker.d.ts +13 -0
  774. package/dist/vite/prerender/worker.js +59 -0
  775. package/dist/vite/prerender/worker.js.map +1 -0
  776. package/dist/vite/remarkStaticGeneration.d.ts +3 -0
  777. package/dist/vite/remarkStaticGeneration.js +125 -0
  778. package/dist/vite/remarkStaticGeneration.js.map +1 -0
  779. package/dist/vite/reporter.d.ts +3 -0
  780. package/dist/vite/reporter.js +33 -0
  781. package/dist/vite/reporter.js.map +1 -0
  782. package/dist/vite/sitemap.d.ts +1 -1
  783. package/dist/vite/sitemap.js +2 -1
  784. package/dist/vite/sitemap.js.map +1 -1
  785. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  786. package/dist/zuplo/enrich-with-zuplo.js +185 -0
  787. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  788. package/dist/zuplo/policy-types.d.ts +33 -0
  789. package/dist/zuplo/policy-types.js +8 -0
  790. package/dist/zuplo/policy-types.js.map +1 -0
  791. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  792. package/dist/zuplo/with-zuplo-processors.js +26 -0
  793. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  794. package/dist/zuplo/with-zuplo.d.ts +6 -0
  795. package/dist/zuplo/with-zuplo.js +10 -0
  796. package/dist/zuplo/with-zuplo.js.map +1 -0
  797. package/lib/AuthenticationPlugin-ByDF051g.js +99 -0
  798. package/lib/AuthenticationPlugin-ByDF051g.js.map +1 -0
  799. package/lib/Button-BBNrKpQd.js +49 -0
  800. package/lib/Button-BBNrKpQd.js.map +1 -0
  801. package/lib/Callout-D3Ja4OPX.js +230 -0
  802. package/lib/Callout-D3Ja4OPX.js.map +1 -0
  803. package/lib/Card-BtheiD7j.js +61 -0
  804. package/lib/Card-BtheiD7j.js.map +1 -0
  805. package/lib/CategoryHeading-D06WK_Wo.js +10 -0
  806. package/lib/{CategoryHeading-B7TlPvuN.js.map → CategoryHeading-D06WK_Wo.js.map} +1 -1
  807. package/lib/ClientOnly-E7hGysn1.js +11 -0
  808. package/lib/ClientOnly-E7hGysn1.js.map +1 -0
  809. package/lib/Dialog-ByYz4ABw.js +98 -0
  810. package/lib/Dialog-ByYz4ABw.js.map +1 -0
  811. package/lib/Drawer-CEwbkLDb.js +1133 -0
  812. package/lib/Drawer-CEwbkLDb.js.map +1 -0
  813. package/lib/Markdown-mFpg_n9p.js +17125 -0
  814. package/lib/Markdown-mFpg_n9p.js.map +1 -0
  815. package/lib/MdxPage-Cm7atiW3.js +85 -0
  816. package/lib/MdxPage-Cm7atiW3.js.map +1 -0
  817. package/lib/OasProvider-DBJ3ZUTp.js +34 -0
  818. package/lib/OasProvider-DBJ3ZUTp.js.map +1 -0
  819. package/lib/OperationList-zUAJl5qO.js +5125 -0
  820. package/lib/OperationList-zUAJl5qO.js.map +1 -0
  821. package/lib/Pagination-DLPL5z77.js +48 -0
  822. package/lib/Pagination-DLPL5z77.js.map +1 -0
  823. package/lib/RouteGuard-DRtEu9nh.js +744 -0
  824. package/lib/RouteGuard-DRtEu9nh.js.map +1 -0
  825. package/lib/SchemaList-YsfrEmpL.js +148 -0
  826. package/lib/SchemaList-YsfrEmpL.js.map +1 -0
  827. package/lib/SchemaView-C3JbhWHn.js +367 -0
  828. package/lib/SchemaView-C3JbhWHn.js.map +1 -0
  829. package/lib/Select-CT64Ou40.js +223 -0
  830. package/lib/Select-CT64Ou40.js.map +1 -0
  831. package/lib/SlotletProvider-CS_nO-XT.js +340 -0
  832. package/lib/SlotletProvider-CS_nO-XT.js.map +1 -0
  833. package/lib/{Spinner-3cQDBVGr.js → Spinner-mNLZ6awP.js} +2 -2
  834. package/lib/{Spinner-3cQDBVGr.js.map → Spinner-mNLZ6awP.js.map} +1 -1
  835. package/lib/SyntaxHighlight-CxhyyMkF.js +2890 -0
  836. package/lib/SyntaxHighlight-CxhyyMkF.js.map +1 -0
  837. package/lib/Toc-D_tV8_Ri.js +92 -0
  838. package/lib/Toc-D_tV8_Ri.js.map +1 -0
  839. package/lib/_commonjsHelpers-B4e78b8K.js +29 -0
  840. package/lib/_commonjsHelpers-B4e78b8K.js.map +1 -0
  841. package/lib/chunk-BAXFHI7N-BVBOl9s0.js +1826 -0
  842. package/lib/chunk-BAXFHI7N-BVBOl9s0.js.map +1 -0
  843. package/lib/circular-ByJI6Mci.js +15877 -0
  844. package/lib/circular-ByJI6Mci.js.map +1 -0
  845. package/lib/cn-qaFjX9_3.js +2279 -0
  846. package/lib/cn-qaFjX9_3.js.map +1 -0
  847. package/lib/context-Lrf2Y9bR.js +22 -0
  848. package/lib/context-Lrf2Y9bR.js.map +1 -0
  849. package/lib/createServer-IW7v5hWm.js +12318 -0
  850. package/lib/createServer-IW7v5hWm.js.map +1 -0
  851. package/lib/hook-CldJlP5c.js +1478 -0
  852. package/lib/hook-CldJlP5c.js.map +1 -0
  853. package/lib/index-BBgdF7h4.js +2184 -0
  854. package/lib/index-BBgdF7h4.js.map +1 -0
  855. package/lib/index-Bn6Lc9tq.js +9 -0
  856. package/lib/{index-DJqnphbT.js.map → index-Bn6Lc9tq.js.map} +1 -1
  857. package/lib/index-CPNSgwSb.js +36 -0
  858. package/lib/index-CPNSgwSb.js.map +1 -0
  859. package/lib/index-CuBIgTKC.js +316 -0
  860. package/lib/index-CuBIgTKC.js.map +1 -0
  861. package/lib/{index-CkwDvuPt.js → index-DcHeSvkE.js} +348 -318
  862. package/lib/index-DcHeSvkE.js.map +1 -0
  863. package/lib/index-DnQftvP4.js +5031 -0
  864. package/lib/index-DnQftvP4.js.map +1 -0
  865. package/lib/index-DwT-v3zK.js +86 -0
  866. package/lib/index-DwT-v3zK.js.map +1 -0
  867. package/lib/{index-D06ATMgg.js → index-LNp6rxyU.js} +2 -2
  868. package/lib/{index-D06ATMgg.js.map → index-LNp6rxyU.js.map} +1 -1
  869. package/lib/index.esm-D2ZUREQN.js +1216 -0
  870. package/lib/index.esm-D2ZUREQN.js.map +1 -0
  871. package/lib/invariant-Caa8-XvF.js +26 -0
  872. package/lib/invariant-Caa8-XvF.js.map +1 -0
  873. package/lib/jsx-runtime-C5mzlN2N.js +285 -0
  874. package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
  875. package/lib/mutation-DBQh7AOZ.js +211 -0
  876. package/lib/mutation-DBQh7AOZ.js.map +1 -0
  877. package/lib/objectEntries-yMIkr2mI.js +5 -0
  878. package/lib/objectEntries-yMIkr2mI.js.map +1 -0
  879. package/lib/{prism-bash.min-DadFsM4Z.js → prism-bash.min-HHIMdNJ_.js} +4 -4
  880. package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-HHIMdNJ_.js.map} +1 -1
  881. package/lib/prism-csharp.min-C43x1RY2.js +63 -0
  882. package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-C43x1RY2.js.map} +1 -1
  883. package/lib/prism-java.min-CQzr40NQ.js +35 -0
  884. package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-CQzr40NQ.js.map} +1 -1
  885. package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -1
  886. package/lib/prism-json.min-B1GJqK1k.js.map +1 -1
  887. package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
  888. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
  889. package/lib/{prism-markdown.min-F3U-vPBi.js → prism-markdown.min-C0Qn0m-5.js} +30 -30
  890. package/lib/{prism-markdown.min-F3U-vPBi.js.map → prism-markdown.min-C0Qn0m-5.js.map} +1 -1
  891. package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
  892. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -1
  893. package/lib/prism-ruby.min-L9OdQ6tU.js +38 -0
  894. package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-L9OdQ6tU.js.map} +1 -1
  895. package/lib/prism-typescript.min-qTySPvCh.js +34 -0
  896. package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-qTySPvCh.js.map} +1 -1
  897. package/lib/processors/removeExtensions.js +11 -0
  898. package/lib/processors/removeExtensions.js.map +1 -0
  899. package/lib/processors/removeParameters.js +48 -0
  900. package/lib/processors/removeParameters.js.map +1 -0
  901. package/lib/processors/removePaths.js +28 -0
  902. package/lib/processors/removePaths.js.map +1 -0
  903. package/lib/processors/traverse.js +15 -0
  904. package/lib/processors/traverse.js.map +1 -0
  905. package/lib/ui/Accordion.js +47 -0
  906. package/lib/ui/Accordion.js.map +1 -0
  907. package/lib/ui/ActionButton.js +25 -0
  908. package/lib/ui/ActionButton.js.map +1 -0
  909. package/lib/ui/Alert.js +51 -0
  910. package/lib/ui/Alert.js.map +1 -0
  911. package/lib/ui/AlertDialog.js +114 -0
  912. package/lib/ui/AlertDialog.js.map +1 -0
  913. package/lib/ui/AspectRatio.js +6 -0
  914. package/lib/ui/AspectRatio.js.map +1 -0
  915. package/lib/ui/Badge.js +28 -0
  916. package/lib/ui/Badge.js.map +1 -0
  917. package/lib/ui/Breadcrumb.js +94 -0
  918. package/lib/ui/Breadcrumb.js.map +1 -0
  919. package/lib/ui/Button.js +50 -0
  920. package/lib/ui/Button.js.map +1 -0
  921. package/lib/ui/Callout.js +96 -0
  922. package/lib/ui/Callout.js.map +1 -0
  923. package/lib/ui/Card.js +62 -0
  924. package/lib/ui/Card.js.map +1 -0
  925. package/lib/ui/Carousel.js +1416 -0
  926. package/lib/ui/Carousel.js.map +1 -0
  927. package/lib/ui/Checkbox.js +29 -0
  928. package/lib/ui/Checkbox.js.map +1 -0
  929. package/lib/ui/Collapsible.js +8 -0
  930. package/lib/ui/Collapsible.js.map +1 -0
  931. package/lib/ui/Command.js +156 -0
  932. package/lib/ui/Command.js.map +1 -0
  933. package/lib/ui/Dialog.js +101 -0
  934. package/lib/ui/Dialog.js.map +1 -0
  935. package/lib/ui/Drawer.js +17 -0
  936. package/lib/ui/Drawer.js.map +1 -0
  937. package/lib/ui/DropdownMenu.js +145 -0
  938. package/lib/ui/DropdownMenu.js.map +1 -0
  939. package/lib/ui/Form.js +95 -0
  940. package/lib/ui/Form.js.map +1 -0
  941. package/lib/ui/HoverCard.js +24 -0
  942. package/lib/ui/HoverCard.js.map +1 -0
  943. package/lib/ui/Input.js +22 -0
  944. package/lib/ui/Input.js.map +1 -0
  945. package/lib/ui/Label.js +20 -0
  946. package/lib/ui/Label.js.map +1 -0
  947. package/lib/ui/Pagination.js +106 -0
  948. package/lib/ui/Pagination.js.map +1 -0
  949. package/lib/ui/Popover.js +24 -0
  950. package/lib/ui/Popover.js.map +1 -0
  951. package/lib/ui/Progress.js +27 -0
  952. package/lib/ui/Progress.js.map +1 -0
  953. package/lib/ui/RadioGroup.js +32 -0
  954. package/lib/ui/RadioGroup.js.map +1 -0
  955. package/lib/ui/ScrollArea.js +39 -0
  956. package/lib/ui/ScrollArea.js.map +1 -0
  957. package/lib/ui/Select.js +122 -0
  958. package/lib/ui/Select.js.map +1 -0
  959. package/lib/ui/Skeleton.js +18 -0
  960. package/lib/ui/Skeleton.js.map +1 -0
  961. package/lib/ui/Slider.js +24 -0
  962. package/lib/ui/Slider.js.map +1 -0
  963. package/lib/ui/Stepper.js +6 -0
  964. package/lib/ui/Stepper.js.map +1 -0
  965. package/lib/ui/Switch.js +28 -0
  966. package/lib/ui/Switch.js.map +1 -0
  967. package/lib/ui/SyntaxHighlight.js +11 -0
  968. package/lib/ui/SyntaxHighlight.js.map +1 -0
  969. package/lib/ui/Tabs.js +47 -0
  970. package/lib/ui/Tabs.js.map +1 -0
  971. package/lib/ui/Textarea.js +21 -0
  972. package/lib/ui/Textarea.js.map +1 -0
  973. package/lib/ui/Toggle.js +38 -0
  974. package/lib/ui/Toggle.js.map +1 -0
  975. package/lib/ui/ToggleGroup.js +42 -0
  976. package/lib/ui/ToggleGroup.js.map +1 -0
  977. package/lib/ui/Tooltip.js +24 -0
  978. package/lib/ui/Tooltip.js.map +1 -0
  979. package/lib/ui/util.js +6 -0
  980. package/lib/ui/util.js.map +1 -0
  981. package/lib/useExposedProps-DbIZXspi.js +9 -0
  982. package/lib/useExposedProps-DbIZXspi.js.map +1 -0
  983. package/lib/useLatest-hmRS46UF.js +11 -0
  984. package/lib/useLatest-hmRS46UF.js.map +1 -0
  985. package/lib/zudoku.auth-auth0.js +30 -25
  986. package/lib/zudoku.auth-auth0.js.map +1 -1
  987. package/lib/zudoku.auth-clerk.js +101 -55
  988. package/lib/zudoku.auth-clerk.js.map +1 -1
  989. package/lib/zudoku.auth-openid.js +643 -679
  990. package/lib/zudoku.auth-openid.js.map +1 -1
  991. package/lib/zudoku.components.js +33 -3450
  992. package/lib/zudoku.components.js.map +1 -1
  993. package/lib/zudoku.hooks.js +19 -0
  994. package/lib/zudoku.hooks.js.map +1 -0
  995. package/lib/zudoku.icons.js +10 -0
  996. package/lib/zudoku.icons.js.map +1 -1
  997. package/lib/zudoku.plugin-api-catalog.js +117 -0
  998. package/lib/zudoku.plugin-api-catalog.js.map +1 -0
  999. package/lib/zudoku.plugin-api-keys.js +104 -108
  1000. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  1001. package/lib/zudoku.plugin-custom-pages.js +10 -9
  1002. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  1003. package/lib/zudoku.plugin-markdown.js +27 -47
  1004. package/lib/zudoku.plugin-markdown.js.map +1 -1
  1005. package/lib/zudoku.plugin-openapi.js +7 -11
  1006. package/lib/zudoku.plugin-openapi.js.map +1 -1
  1007. package/lib/zudoku.plugin-redirect.js +2 -2
  1008. package/lib/zudoku.plugin-redirect.js.map +1 -1
  1009. package/lib/zudoku.plugin-search-inkeep.js +53 -28
  1010. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  1011. package/lib/zudoku.plugin-search-pagefind.js +233 -0
  1012. package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
  1013. package/lib/zudoku.plugins.js +14 -0
  1014. package/lib/zudoku.plugins.js.map +1 -0
  1015. package/package.json +157 -80
  1016. package/src/app/ZuploBuildConfig.ts +33 -0
  1017. package/src/app/demo-cdn.html +31 -31
  1018. package/src/app/demo.tsx +1 -5
  1019. package/src/app/entry.client.tsx +26 -1
  1020. package/src/app/entry.server.tsx +80 -63
  1021. package/src/app/env.ts +35 -0
  1022. package/src/app/main.css +101 -40
  1023. package/src/app/main.tsx +61 -19
  1024. package/src/app/sentry.ts +24 -0
  1025. package/src/app/standalone.tsx +1 -5
  1026. package/src/app/tailwind.ts +83 -48
  1027. package/src/lib/MissingIcon.tsx +22 -0
  1028. package/src/lib/authentication/AuthenticationPlugin.tsx +4 -1
  1029. package/src/lib/authentication/authentication.ts +5 -3
  1030. package/src/lib/authentication/components/CallbackHandler.tsx +20 -51
  1031. package/src/lib/authentication/components/SignIn.tsx +35 -2
  1032. package/src/lib/authentication/components/SignOut.tsx +3 -2
  1033. package/src/lib/authentication/components/SignUp.tsx +35 -1
  1034. package/src/lib/authentication/hook.ts +13 -4
  1035. package/src/lib/authentication/providers/auth0.tsx +20 -16
  1036. package/src/lib/authentication/providers/clerk.tsx +70 -15
  1037. package/src/lib/authentication/providers/openid.tsx +86 -58
  1038. package/src/lib/authentication/providers/supabase.tsx +157 -0
  1039. package/src/lib/authentication/state.ts +56 -25
  1040. package/{LICENSE.md → src/lib/authentication/use-broadcast/LICENSE.md} +2 -2
  1041. package/src/lib/authentication/use-broadcast/shared.ts +372 -0
  1042. package/src/lib/authentication/use-broadcast/useBroadcast.ts +146 -0
  1043. package/src/lib/components/AnchorLink.tsx +13 -8
  1044. package/src/lib/components/Autocomplete.tsx +113 -0
  1045. package/src/lib/components/Banner.tsx +1 -0
  1046. package/src/lib/components/Bootstrap.tsx +43 -16
  1047. package/src/lib/components/BuildCheck.tsx +75 -0
  1048. package/src/lib/components/ClientOnly.tsx +6 -3
  1049. package/src/lib/components/DeveloperHint.tsx +6 -1
  1050. package/src/lib/components/Footer.tsx +139 -0
  1051. package/src/lib/components/Header.tsx +96 -53
  1052. package/src/lib/components/Heading.tsx +13 -13
  1053. package/src/lib/components/InlineCode.tsx +13 -16
  1054. package/src/lib/components/Layout.tsx +33 -54
  1055. package/src/lib/components/Main.tsx +50 -0
  1056. package/src/lib/components/Markdown.tsx +15 -16
  1057. package/src/lib/components/MobileTopNavigation.tsx +40 -30
  1058. package/src/lib/components/NotFoundPage.tsx +1 -1
  1059. package/src/lib/components/Pagination.tsx +50 -0
  1060. package/src/lib/components/PathRenderer.tsx +61 -0
  1061. package/src/lib/components/ReactMarkdown.license.txt +21 -0
  1062. package/src/lib/components/ReactMarkdown.tsx +264 -0
  1063. package/src/lib/components/Search.tsx +17 -6
  1064. package/src/lib/components/SlotletProvider.tsx +3 -1
  1065. package/src/lib/components/StatusPage.tsx +91 -0
  1066. package/src/lib/components/ThemeSwitch.tsx +46 -0
  1067. package/src/lib/components/TopNavigation.tsx +84 -36
  1068. package/src/lib/components/Zudoku.tsx +119 -0
  1069. package/src/lib/components/cache.ts +23 -0
  1070. package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
  1071. package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
  1072. package/src/lib/components/context/ViewportAnchorContext.tsx +34 -36
  1073. package/src/lib/components/context/ZudokuContext.ts +39 -22
  1074. package/src/lib/components/context/ZudokuProvider.tsx +2 -2
  1075. package/src/lib/components/index.ts +33 -6
  1076. package/src/lib/components/navigation/PoweredByZudoku.tsx +28 -0
  1077. package/src/lib/components/navigation/Sidebar.tsx +38 -29
  1078. package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
  1079. package/src/lib/components/navigation/SidebarCategory.tsx +59 -56
  1080. package/src/lib/components/navigation/SidebarItem.tsx +30 -39
  1081. package/src/lib/components/navigation/SidebarWrapper.tsx +42 -22
  1082. package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +5 -14
  1083. package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
  1084. package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
  1085. package/src/lib/components/navigation/utils.ts +3 -3
  1086. package/src/lib/core/RouteGuard.tsx +96 -0
  1087. package/src/lib/core/{DevPortalContext.ts → ZudokuContext.ts} +76 -32
  1088. package/src/lib/core/plugins.ts +44 -22
  1089. package/src/lib/errors/ErrorAlert.tsx +36 -15
  1090. package/src/lib/errors/RouterError.tsx +1 -1
  1091. package/src/lib/hooks/index.ts +5 -0
  1092. package/src/lib/hooks/useEvent.test.tsx +149 -0
  1093. package/src/lib/hooks/useEvent.ts +41 -0
  1094. package/src/lib/icons.ts +1 -0
  1095. package/src/lib/oas/graphql/circular.ts +50 -0
  1096. package/src/lib/oas/graphql/index.ts +298 -104
  1097. package/src/lib/oas/parser/dereference/index.ts +10 -4
  1098. package/src/lib/oas/parser/index.ts +9 -30
  1099. package/src/lib/oas/parser/upgrade/index.ts +25 -30
  1100. package/src/lib/plugins/api-catalog/Catalog.tsx +73 -0
  1101. package/src/lib/plugins/api-catalog/index.tsx +115 -0
  1102. package/src/lib/plugins/api-keys/CreateApiKey.tsx +10 -6
  1103. package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
  1104. package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
  1105. package/src/lib/plugins/api-keys/index.tsx +16 -10
  1106. package/src/lib/plugins/custom-pages/CustomPage.tsx +2 -2
  1107. package/src/lib/plugins/custom-pages/index.tsx +3 -3
  1108. package/src/lib/plugins/markdown/MdxPage.tsx +43 -41
  1109. package/src/lib/plugins/markdown/index.tsx +7 -4
  1110. package/src/lib/plugins/markdown/resolver.ts +2 -37
  1111. package/src/lib/plugins/openapi/CollapsibleCode.tsx +83 -0
  1112. package/src/lib/plugins/openapi/ColorizedParam.tsx +49 -23
  1113. package/src/lib/plugins/openapi/Endpoint.tsx +19 -22
  1114. package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
  1115. package/src/lib/plugins/openapi/OperationList.tsx +240 -70
  1116. package/src/lib/plugins/openapi/OperationListItem.tsx +136 -88
  1117. package/src/lib/plugins/openapi/ParamInfos.tsx +88 -0
  1118. package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
  1119. package/src/lib/plugins/openapi/ParameterListItem.tsx +78 -31
  1120. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +21 -2
  1121. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -33
  1122. package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +46 -58
  1123. package/src/lib/plugins/openapi/SchemaList.tsx +151 -0
  1124. package/src/lib/plugins/openapi/Sidecar.tsx +147 -113
  1125. package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
  1126. package/src/lib/plugins/openapi/SidecarExamples.tsx +162 -0
  1127. package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
  1128. package/src/lib/plugins/openapi/client/GraphQLClient.tsx +65 -0
  1129. package/src/lib/plugins/openapi/client/GraphQLContext.tsx +16 -0
  1130. package/src/lib/plugins/openapi/client/createServer.ts +8 -2
  1131. package/src/lib/plugins/openapi/client/useCreateQuery.ts +26 -0
  1132. package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
  1133. package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
  1134. package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
  1135. package/src/lib/plugins/openapi/context.tsx +2 -2
  1136. package/src/lib/plugins/openapi/graphql/fragment-masking.ts +11 -18
  1137. package/src/lib/plugins/openapi/graphql/gql.ts +38 -30
  1138. package/src/lib/plugins/openapi/graphql/graphql.ts +386 -682
  1139. package/src/lib/plugins/openapi/index.tsx +110 -134
  1140. package/src/lib/plugins/openapi/interfaces.ts +57 -3
  1141. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +52 -0
  1142. package/src/lib/plugins/openapi/playground/Headers.tsx +165 -36
  1143. package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
  1144. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +54 -0
  1145. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
  1146. package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -64
  1147. package/src/lib/plugins/openapi/playground/Playground.tsx +386 -245
  1148. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +7 -4
  1149. package/src/lib/plugins/openapi/playground/QueryParams.tsx +86 -88
  1150. package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
  1151. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
  1152. package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
  1153. package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
  1154. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +230 -0
  1155. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +123 -0
  1156. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
  1157. package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
  1158. package/src/lib/plugins/openapi/processors/removeExtensions.test.ts +222 -0
  1159. package/src/lib/plugins/openapi/processors/removeExtensions.ts +29 -0
  1160. package/src/lib/plugins/openapi/processors/removeParameters.test.ts +182 -0
  1161. package/src/lib/plugins/openapi/processors/removeParameters.ts +103 -0
  1162. package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
  1163. package/src/lib/plugins/openapi/processors/removePaths.ts +57 -0
  1164. package/src/lib/plugins/openapi/processors/traverse.ts +1 -0
  1165. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
  1166. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
  1167. package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
  1168. package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +36 -0
  1169. package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +153 -0
  1170. package/src/lib/plugins/openapi/schema/SchemaView.tsx +87 -135
  1171. package/src/lib/plugins/openapi/schema/utils.ts +16 -1
  1172. package/src/lib/plugins/openapi/state.ts +36 -0
  1173. package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
  1174. package/src/lib/plugins/openapi/util/generateSchemaExample.ts +88 -43
  1175. package/src/lib/plugins/openapi/util/getRoutes.tsx +134 -0
  1176. package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
  1177. package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
  1178. package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
  1179. package/src/lib/plugins/redirect/index.tsx +6 -10
  1180. package/src/lib/plugins/search-inkeep/index.tsx +80 -25
  1181. package/src/lib/plugins/search-inkeep/inkeep.ts +3 -9
  1182. package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
  1183. package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
  1184. package/src/lib/plugins/search-pagefind/get-results.tsx +75 -0
  1185. package/src/lib/plugins/search-pagefind/index.tsx +21 -0
  1186. package/src/lib/plugins/search-pagefind/types.ts +118 -0
  1187. package/src/lib/ui/Accordion.tsx +56 -0
  1188. package/src/lib/ui/ActionButton.tsx +28 -0
  1189. package/src/lib/ui/{Note.tsx → Alert.tsx} +11 -10
  1190. package/src/lib/ui/AlertDialog.tsx +139 -0
  1191. package/src/lib/ui/AspectRatio.tsx +5 -0
  1192. package/src/lib/ui/Badge.tsx +37 -0
  1193. package/src/lib/ui/Breadcrumb.tsx +115 -0
  1194. package/src/lib/ui/Button.tsx +5 -3
  1195. package/src/lib/ui/Callout.tsx +29 -10
  1196. package/src/lib/ui/Card.tsx +1 -1
  1197. package/src/lib/ui/Carousel.tsx +260 -0
  1198. package/src/lib/ui/Checkbox.tsx +29 -0
  1199. package/src/lib/ui/Collapsible.tsx +9 -0
  1200. package/src/lib/ui/Command.tsx +193 -0
  1201. package/src/lib/{components → ui}/Dialog.tsx +4 -3
  1202. package/src/lib/ui/Form.tsx +177 -0
  1203. package/src/lib/ui/HoverCard.tsx +27 -0
  1204. package/src/lib/ui/Input.tsx +1 -2
  1205. package/src/lib/ui/Label.tsx +24 -0
  1206. package/src/lib/ui/Pagination.tsx +117 -0
  1207. package/src/lib/ui/Popover.tsx +29 -0
  1208. package/src/lib/ui/Progress.tsx +26 -0
  1209. package/src/lib/ui/RadioGroup.tsx +42 -0
  1210. package/src/lib/ui/ScrollArea.tsx +46 -0
  1211. package/src/lib/{components → ui}/Select.tsx +2 -2
  1212. package/src/lib/ui/Skeleton.tsx +15 -0
  1213. package/src/lib/ui/Slider.tsx +26 -0
  1214. package/src/lib/ui/Stepper.tsx +8 -0
  1215. package/src/lib/ui/Switch.tsx +27 -0
  1216. package/src/lib/ui/SyntaxHighlight.tsx +186 -0
  1217. package/src/lib/ui/Textarea.tsx +23 -0
  1218. package/src/lib/ui/Toggle.tsx +43 -0
  1219. package/src/lib/ui/ToggleGroup.tsx +59 -0
  1220. package/src/lib/ui/Tooltip.tsx +28 -0
  1221. package/src/lib/ui/util.tsx +3 -0
  1222. package/src/lib/util/MdxComponents.tsx +12 -12
  1223. package/src/lib/util/createVariantComponent.tsx +2 -2
  1224. package/src/lib/util/detectOS.ts +9 -0
  1225. package/src/lib/util/ensureArray.ts +3 -0
  1226. package/src/lib/util/invariant.ts +15 -3
  1227. package/src/lib/util/joinPath.tsx +3 -0
  1228. package/src/lib/util/joinUrl.test.ts +62 -0
  1229. package/src/lib/util/joinUrl.ts +57 -0
  1230. package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
  1231. package/src/lib/util/traverse.ts +31 -0
  1232. package/src/lib/util/types.ts +7 -0
  1233. package/src/lib/util/useExposedProps.tsx +8 -2
  1234. package/src/lib/util/useIsomorphicLayoutEffect.ts +5 -0
  1235. package/src/lib/util/useLatest.ts +18 -0
  1236. package/src/lib/util/useOnScreen.ts +34 -0
  1237. package/src/lib/util/useScrollToAnchor.ts +48 -39
  1238. package/src/lib/util/useScrollToTop.ts +9 -4
  1239. package/client.d.ts +0 -1
  1240. package/dist/internal.d.ts +0 -1
  1241. package/dist/internal.js +0 -2
  1242. package/dist/internal.js.map +0 -1
  1243. package/dist/lib/components/DevPortal.js.map +0 -1
  1244. package/dist/lib/components/Dialog.js.map +0 -1
  1245. package/dist/lib/components/Select.js.map +0 -1
  1246. package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
  1247. package/dist/lib/components/SyntaxHighlight.js +0 -50
  1248. package/dist/lib/components/SyntaxHighlight.js.map +0 -1
  1249. package/dist/lib/components/context/PluginSystem.js +0 -2
  1250. package/dist/lib/components/context/PluginSystem.js.map +0 -1
  1251. package/dist/lib/components/context/ThemeContext.d.ts +0 -2
  1252. package/dist/lib/components/context/ThemeContext.js +0 -7
  1253. package/dist/lib/components/context/ThemeContext.js.map +0 -1
  1254. package/dist/lib/components/context/ThemeProvider.d.ts +0 -4
  1255. package/dist/lib/components/context/ThemeProvider.js +0 -23
  1256. package/dist/lib/components/context/ThemeProvider.js.map +0 -1
  1257. package/dist/lib/core/DevPortalContext.js +0 -49
  1258. package/dist/lib/core/DevPortalContext.js.map +0 -1
  1259. package/dist/lib/plugins/markdown/Toc.js.map +0 -1
  1260. package/dist/lib/plugins/openapi/Route.d.ts +0 -6
  1261. package/dist/lib/plugins/openapi/Route.js +0 -8
  1262. package/dist/lib/plugins/openapi/Route.js.map +0 -1
  1263. package/dist/lib/plugins/openapi/client/createMemoryClient.d.ts +0 -12
  1264. package/dist/lib/plugins/openapi/client/createMemoryClient.js +0 -46
  1265. package/dist/lib/plugins/openapi/client/createMemoryClient.js.map +0 -1
  1266. package/dist/lib/plugins/openapi/client/createWorkerClient.d.ts +0 -10
  1267. package/dist/lib/plugins/openapi/client/createWorkerClient.js +0 -61
  1268. package/dist/lib/plugins/openapi/client/createWorkerClient.js.map +0 -1
  1269. package/dist/lib/plugins/openapi/client/interfaces.d.ts +0 -4
  1270. package/dist/lib/plugins/openapi/client/interfaces.js +0 -2
  1271. package/dist/lib/plugins/openapi/client/interfaces.js.map +0 -1
  1272. package/dist/lib/plugins/openapi/client/worker.js +0 -20
  1273. package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
  1274. package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
  1275. package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
  1276. package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
  1277. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
  1278. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
  1279. package/dist/lib/plugins/openapi-worker.d.ts +0 -1
  1280. package/dist/lib/plugins/openapi-worker.js +0 -2
  1281. package/dist/lib/plugins/openapi-worker.js.map +0 -1
  1282. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.d.ts +0 -2
  1283. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js +0 -3
  1284. package/dist/lib/plugins/search-inkeep/InkeepCustomTrigger.js.map +0 -1
  1285. package/dist/lib/themeToggle.d.ts +0 -1
  1286. package/dist/lib/themeToggle.js +0 -7
  1287. package/dist/lib/themeToggle.js.map +0 -1
  1288. package/dist/lib/ui/Note.d.ts +0 -8
  1289. package/dist/lib/ui/Note.js +0 -23
  1290. package/dist/lib/ui/Note.js.map +0 -1
  1291. package/dist/lib/util/createWaitForNotify.d.ts +0 -1
  1292. package/dist/lib/util/createWaitForNotify.js +0 -15
  1293. package/dist/lib/util/createWaitForNotify.js.map +0 -1
  1294. package/dist/vite/plugin-custom-css.js +0 -55
  1295. package/dist/vite/plugin-custom-css.js.map +0 -1
  1296. package/dist/vite/plugin-html-transform.d.ts +0 -2
  1297. package/dist/vite/plugin-html-transform.js +0 -15
  1298. package/dist/vite/plugin-html-transform.js.map +0 -1
  1299. package/dist/vite/prerender.d.ts +0 -21
  1300. package/dist/vite/prerender.js +0 -88
  1301. package/dist/vite/prerender.js.map +0 -1
  1302. package/lib/AnchorLink-DNsmBTRp.js +0 -705
  1303. package/lib/AnchorLink-DNsmBTRp.js.map +0 -1
  1304. package/lib/AuthenticationPlugin-CKyNe953.js +0 -55
  1305. package/lib/AuthenticationPlugin-CKyNe953.js.map +0 -1
  1306. package/lib/CategoryHeading-B7TlPvuN.js +0 -10
  1307. package/lib/DeveloperHint-B_QCCafl.js +0 -16
  1308. package/lib/DeveloperHint-B_QCCafl.js.map +0 -1
  1309. package/lib/ErrorPage-DqqAV1dr.js +0 -16
  1310. package/lib/ErrorPage-DqqAV1dr.js.map +0 -1
  1311. package/lib/InkeepCustomTrigger-CE5-K5ex.js +0 -6
  1312. package/lib/InkeepCustomTrigger-CE5-K5ex.js.map +0 -1
  1313. package/lib/Input-RKErK8rC.js +0 -2229
  1314. package/lib/Input-RKErK8rC.js.map +0 -1
  1315. package/lib/Markdown-Y__eLG0x.js +0 -20441
  1316. package/lib/Markdown-Y__eLG0x.js.map +0 -1
  1317. package/lib/MdxPage-Df0B_t9t.js +0 -173
  1318. package/lib/MdxPage-Df0B_t9t.js.map +0 -1
  1319. package/lib/OperationList-yuVHI6ul.js +0 -601
  1320. package/lib/OperationList-yuVHI6ul.js.map +0 -1
  1321. package/lib/Route-BaAjY0N-.js +0 -13
  1322. package/lib/Route-BaAjY0N-.js.map +0 -1
  1323. package/lib/SidebarBadge-DGTOim55.js +0 -503
  1324. package/lib/SidebarBadge-DGTOim55.js.map +0 -1
  1325. package/lib/SlotletProvider-DmqWiVFt.js +0 -239
  1326. package/lib/SlotletProvider-DmqWiVFt.js.map +0 -1
  1327. package/lib/ZudokuContext-D-TANjzJ.js +0 -1222
  1328. package/lib/ZudokuContext-D-TANjzJ.js.map +0 -1
  1329. package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
  1330. package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
  1331. package/lib/assets/index-B_Jk_Yzp.js +0 -4820
  1332. package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
  1333. package/lib/assets/worker-DaFlmuyf.js +0 -18111
  1334. package/lib/assets/worker-DaFlmuyf.js.map +0 -1
  1335. package/lib/index-CkwDvuPt.js.map +0 -1
  1336. package/lib/index-D7tBXCIO.js +0 -124
  1337. package/lib/index-D7tBXCIO.js.map +0 -1
  1338. package/lib/index-DFN92YJN.js +0 -1782
  1339. package/lib/index-DFN92YJN.js.map +0 -1
  1340. package/lib/index-DG-VRw9t.js +0 -2867
  1341. package/lib/index-DG-VRw9t.js.map +0 -1
  1342. package/lib/index-DJqnphbT.js +0 -35
  1343. package/lib/index-vPSN3k3e.js +0 -5952
  1344. package/lib/index-vPSN3k3e.js.map +0 -1
  1345. package/lib/jsx-runtime-B6kdoens.js +0 -635
  1346. package/lib/jsx-runtime-B6kdoens.js.map +0 -1
  1347. package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
  1348. package/lib/prism-java.min-d5iT_mOd.js +0 -7
  1349. package/lib/prism-markup-templating-DZrrEs0A.js +0 -62
  1350. package/lib/prism-markup-templating-DZrrEs0A.js.map +0 -1
  1351. package/lib/prism-php.min-o7FpoMP_.js +0 -11
  1352. package/lib/prism-php.min-o7FpoMP_.js.map +0 -1
  1353. package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
  1354. package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
  1355. package/lib/router-BsfSoK2j.js +0 -3024
  1356. package/lib/router-BsfSoK2j.js.map +0 -1
  1357. package/lib/state-CsuHT8ZO.js +0 -183
  1358. package/lib/state-CsuHT8ZO.js.map +0 -1
  1359. package/lib/urql-core-KJnLL26g.js +0 -1455
  1360. package/lib/urql-core-KJnLL26g.js.map +0 -1
  1361. package/lib/useExposedProps-BWwxa-Hg.js +0 -9
  1362. package/lib/useExposedProps-BWwxa-Hg.js.map +0 -1
  1363. package/lib/zudoku.openapi-worker.js +0 -16255
  1364. package/lib/zudoku.openapi-worker.js.map +0 -1
  1365. package/src/lib/components/DevPortal.tsx +0 -111
  1366. package/src/lib/components/SyntaxHighlight.tsx +0 -122
  1367. package/src/lib/components/context/PluginSystem.ts +0 -0
  1368. package/src/lib/components/context/ThemeContext.tsx +0 -8
  1369. package/src/lib/components/context/ThemeProvider.tsx +0 -27
  1370. package/src/lib/plugins/openapi/Route.tsx +0 -20
  1371. package/src/lib/plugins/openapi/client/createMemoryClient.ts +0 -51
  1372. package/src/lib/plugins/openapi/client/createWorkerClient.ts +0 -75
  1373. package/src/lib/plugins/openapi/client/interfaces.ts +0 -5
  1374. package/src/lib/plugins/openapi/client/worker.ts +0 -30
  1375. package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
  1376. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +0 -126
  1377. package/src/lib/plugins/openapi-worker.ts +0 -1
  1378. package/src/lib/plugins/search-inkeep/InkeepCustomTrigger.tsx +0 -3
  1379. package/src/lib/themeToggle.ts +0 -7
  1380. package/src/lib/util/createWaitForNotify.ts +0 -18
  1381. /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
  1382. /package/dist/lib/{components/context/PluginSystem.d.ts → hooks/useEvent.test.d.ts} +0 -0
  1383. /package/dist/lib/plugins/openapi/{client/worker.d.ts → playground/result-panel/convertToTypes.test.d.ts} +0 -0
  1384. /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
  1385. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
@@ -1,3453 +1,36 @@
1
- var Ba = Object.defineProperty;
2
- var hn = (e) => {
3
- throw TypeError(e);
4
- };
5
- var Ha = (e, t, n) => t in e ? Ba(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
6
- var ae = (e, t, n) => Ha(e, typeof t != "symbol" ? t + "" : t, n), pn = (e, t, n) => t.has(e) || hn("Cannot " + n);
7
- var w = (e, t, n) => (pn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ce = (e, t, n) => t.has(e) ? hn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), X = (e, t, n, r) => (pn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
8
- var ut = (e, t, n, r) => ({
9
- set _(o) {
10
- X(e, t, o, n);
11
- },
12
- get _() {
13
- return w(e, t, r);
14
- }
15
- });
16
- import { a as In, H as kt, M as Ua, A as za, u as Ka } from "./AnchorLink-DNsmBTRp.js";
17
- import { e as qa, f as Qa, R as Va, N as gt, L as yt, g as Ga, O as An, h as Wa, b as Ya, u as $t } from "./index-DFN92YJN.js";
18
- import { E as kn, S as xe, a as Xa, R as Ja } from "./SlotletProvider-DmqWiVFt.js";
19
- import { j as a } from "./jsx-runtime-B6kdoens.js";
20
- import { M as Za, f as eo, c as $n, p as Fn, A as to, d as rt, j as no, b as I, k as ro, F as ao, D as oo, C as so, P as qe, i as Ft, q as io, s as Ln, R as lo, S as co, t as uo, h as fo, r as Bn, m as ho, a as vt, u as Hn, V as Un, n as mn, B as Pt } from "./index-DG-VRw9t.js";
21
- import { a as F, c as zn, b as po, T as mo, d as go, V as vo, u as Lt, e as wo, C as xo } from "./Markdown-Y__eLG0x.js";
22
- import * as h from "react";
23
- import p, { StrictMode as Kn, createContext as qn, Component as yo, createElement as gn, isValidElement as bo, useState as Ie, useMemo as mt, useLayoutEffect as So, useEffect as Ce, useCallback as Qn, Suspense as Bt, memo as Vn, useContext as Co, Fragment as Mo, useRef as Ht, forwardRef as Ro } from "react";
24
- import { a as Ut } from "./index-DJqnphbT.js";
25
- import { B as Eo } from "./router-BsfSoK2j.js";
26
- import { a as Tt, R as Do, T as No, C as jo } from "./index-D7tBXCIO.js";
27
- import { S as Gn, g as Wn, Q as Po, n as se, m as vn, i as wn, j as be, k as To, l as _o, o as Oo, p as Io, q as xn, r as yn, t as Ao, h as bn, v as Sn, w as ko, x as Ze, b as Ae, y as Yn, z as $o, d as Fo, Z as Lo, A as Bo, B as Ho } from "./ZudokuContext-D-TANjzJ.js";
28
- import { ChevronRightIcon as Xn, CheckIcon as Uo, DotIcon as zo, CircleXIcon as Ko, SearchIcon as qo, MenuIcon as Qo, MoonStarIcon as Vo, SunIcon as Go, ExternalLinkIcon as Wo, PanelLeftIcon as Yo } from "lucide-react";
29
- import { c as Jn, P as bt, R as Xo, I as Jo, O as Zo, C as es, T as ts, a as ns, b as rs, D as as, d as os, e as ss, S as Mt } from "./SidebarBadge-DGTOim55.js";
30
- import { S as is } from "./Spinner-3cQDBVGr.js";
31
- function ls({ error: e }) {
32
- return /* @__PURE__ */ a.jsx(kn, { error: e });
33
- }
34
- var at = {};
35
- const cs = /* @__PURE__ */ Ut(Eo), us = /* @__PURE__ */ Ut(qa), ds = /* @__PURE__ */ Ut(Qa);
36
- Object.defineProperty(at, "__esModule", { value: !0 });
37
- var fs = p, we = cs, zt = us, Se = ds;
38
- function hs(e) {
39
- if (e && e.__esModule) return e;
40
- var t = /* @__PURE__ */ Object.create(null);
41
- return e && Object.keys(e).forEach(function(n) {
42
- if (n !== "default") {
43
- var r = Object.getOwnPropertyDescriptor(e, n);
44
- Object.defineProperty(t, n, r.get ? r : {
45
- enumerable: !0,
46
- get: function() {
47
- return e[n];
48
- }
49
- });
50
- }
51
- }), t.default = e, Object.freeze(t);
52
- }
53
- var ge = /* @__PURE__ */ hs(fs);
54
- function ps({
55
- basename: e,
56
- children: t,
57
- location: n = "/",
58
- future: r
59
- }) {
60
- typeof n == "string" && (n = Se.parsePath(n));
61
- let o = we.Action.Pop, s = {
62
- pathname: n.pathname || "/",
63
- search: n.search || "",
64
- hash: n.hash || "",
65
- state: n.state != null ? n.state : null,
66
- key: n.key || "default"
67
- }, i = Zn();
68
- return /* @__PURE__ */ ge.createElement(Se.Router, {
69
- basename: e,
70
- children: t,
71
- location: s,
72
- navigationType: o,
73
- navigator: i,
74
- future: r,
75
- static: !0
76
- });
77
- }
78
- function ms({
79
- context: e,
80
- router: t,
81
- hydrate: n = !0,
82
- nonce: r
83
- }) {
84
- t && e || (process.env.NODE_ENV !== "production" ? we.UNSAFE_invariant(!1, "You must provide `router` and `context` to <StaticRouterProvider>") : we.UNSAFE_invariant(!1));
85
- let o = {
86
- router: t,
87
- navigator: Zn(),
88
- static: !0,
89
- staticContext: e,
90
- basename: e.basename || "/"
91
- }, s = /* @__PURE__ */ new Map(), i = "";
92
- if (n !== !1) {
93
- let u = {
94
- loaderData: e.loaderData,
95
- actionData: e.actionData,
96
- errors: vs(e.errors)
97
- };
98
- i = `window.__staticRouterHydrationData = JSON.parse(${Cs(JSON.stringify(JSON.stringify(u)))});`;
99
- }
100
- let {
101
- state: l
102
- } = o.router;
103
- return /* @__PURE__ */ ge.createElement(ge.Fragment, null, /* @__PURE__ */ ge.createElement(Se.UNSAFE_DataRouterContext.Provider, {
104
- value: o
105
- }, /* @__PURE__ */ ge.createElement(Se.UNSAFE_DataRouterStateContext.Provider, {
106
- value: l
107
- }, /* @__PURE__ */ ge.createElement(Se.UNSAFE_FetchersContext.Provider, {
108
- value: s
109
- }, /* @__PURE__ */ ge.createElement(Se.UNSAFE_ViewTransitionContext.Provider, {
110
- value: {
111
- isTransitioning: !1
112
- }
113
- }, /* @__PURE__ */ ge.createElement(Se.Router, {
114
- basename: o.basename,
115
- location: l.location,
116
- navigationType: l.historyAction,
117
- navigator: o.navigator,
118
- static: o.static,
119
- future: {
120
- v7_relativeSplatPath: t.future.v7_relativeSplatPath
121
- }
122
- }, /* @__PURE__ */ ge.createElement(gs, {
123
- routes: t.routes,
124
- future: t.future,
125
- state: l
126
- })))))), i ? /* @__PURE__ */ ge.createElement("script", {
127
- suppressHydrationWarning: !0,
128
- nonce: r,
129
- dangerouslySetInnerHTML: {
130
- __html: i
131
- }
132
- }) : null);
133
- }
134
- function gs({
135
- routes: e,
136
- future: t,
137
- state: n
138
- }) {
139
- return zt.UNSAFE_useRoutesImpl(e, void 0, n, t);
140
- }
141
- function vs(e) {
142
- if (!e) return null;
143
- let t = Object.entries(e), n = {};
144
- for (let [r, o] of t)
145
- we.isRouteErrorResponse(o) ? n[r] = {
146
- ...o,
147
- __type: "RouteErrorResponse"
148
- } : o instanceof Error ? n[r] = {
149
- message: o.message,
150
- __type: "Error",
151
- // If this is a subclass (i.e., ReferenceError), send up the type so we
152
- // can re-create the same type during hydration.
153
- ...o.name !== "Error" ? {
154
- __subType: o.name
155
- } : {}
156
- } : n[r] = o;
157
- return n;
158
- }
159
- function Zn() {
160
- return {
161
- createHref: er,
162
- encodeLocation: tr,
163
- push(e) {
164
- throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`);
165
- },
166
- replace(e) {
167
- throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`);
168
- },
169
- go(e) {
170
- throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`);
171
- },
172
- back() {
173
- throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.");
174
- },
175
- forward() {
176
- throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.");
177
- }
178
- };
179
- }
180
- function ws(e, t) {
181
- return we.createStaticHandler(e, {
182
- ...t,
183
- mapRouteProperties: zt.UNSAFE_mapRouteProperties
184
- });
185
- }
186
- function xs(e, t, n = {}) {
187
- let r = {}, o = we.UNSAFE_convertRoutesToDataRoutes(e, zt.UNSAFE_mapRouteProperties, void 0, r), s = t.matches.map((l) => {
188
- let u = r[l.route.id] || l.route;
189
- return {
190
- ...l,
191
- route: u
192
- };
193
- }), i = (l) => `You cannot use router.${l}() on the server because it is a stateless environment`;
194
- return {
195
- get basename() {
196
- return t.basename;
197
- },
198
- get future() {
199
- var l, u;
200
- return {
201
- v7_fetcherPersist: !1,
202
- v7_normalizeFormMethod: !1,
203
- v7_partialHydration: ((l = n.future) == null ? void 0 : l.v7_partialHydration) === !0,
204
- v7_prependBasename: !1,
205
- v7_relativeSplatPath: ((u = n.future) == null ? void 0 : u.v7_relativeSplatPath) === !0,
206
- v7_skipActionErrorRevalidation: !1
207
- };
208
- },
209
- get state() {
210
- return {
211
- historyAction: we.Action.Pop,
212
- location: t.location,
213
- matches: s,
214
- loaderData: t.loaderData,
215
- actionData: t.actionData,
216
- errors: t.errors,
217
- initialized: !0,
218
- navigation: we.IDLE_NAVIGATION,
219
- restoreScrollPosition: null,
220
- preventScrollReset: !1,
221
- revalidation: "idle",
222
- fetchers: /* @__PURE__ */ new Map(),
223
- blockers: /* @__PURE__ */ new Map()
224
- };
225
- },
226
- get routes() {
227
- return o;
228
- },
229
- get window() {
230
- },
231
- initialize() {
232
- throw i("initialize");
233
- },
234
- subscribe() {
235
- throw i("subscribe");
236
- },
237
- enableScrollRestoration() {
238
- throw i("enableScrollRestoration");
239
- },
240
- navigate() {
241
- throw i("navigate");
242
- },
243
- fetch() {
244
- throw i("fetch");
245
- },
246
- revalidate() {
247
- throw i("revalidate");
248
- },
249
- createHref: er,
250
- encodeLocation: tr,
251
- getFetcher() {
252
- return we.IDLE_FETCHER;
253
- },
254
- deleteFetcher() {
255
- throw i("deleteFetcher");
256
- },
257
- dispose() {
258
- throw i("dispose");
259
- },
260
- getBlocker() {
261
- return we.IDLE_BLOCKER;
262
- },
263
- deleteBlocker() {
264
- throw i("deleteBlocker");
265
- },
266
- patchRoutes() {
267
- throw i("patchRoutes");
268
- },
269
- _internalFetchControllers: /* @__PURE__ */ new Map(),
270
- _internalActiveDeferreds: /* @__PURE__ */ new Map(),
271
- _internalSetRoutes() {
272
- throw i("_internalSetRoutes");
273
- }
274
- };
275
- }
276
- function er(e) {
277
- return typeof e == "string" ? e : Se.createPath(e);
278
- }
279
- function tr(e) {
280
- let t = typeof e == "string" ? e : Se.createPath(e);
281
- t = t.replace(/ $/, "%20");
282
- let n = ys.test(t) ? new URL(t) : new URL(t, "http://localhost");
283
- return {
284
- pathname: n.pathname,
285
- search: n.search,
286
- hash: n.hash
287
- };
288
- }
289
- const ys = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bs = {
290
- "&": "\\u0026",
291
- ">": "\\u003e",
292
- "<": "\\u003c",
293
- "\u2028": "\\u2028",
294
- "\u2029": "\\u2029"
295
- }, Ss = /[&><\u2028\u2029]/g;
296
- function Cs(e) {
297
- return e.replace(Ss, (t) => bs[t]);
298
- }
299
- at.StaticRouter = ps;
300
- var Ms = at.StaticRouterProvider = ms;
301
- at.createStaticHandler = ws;
302
- at.createStaticRouter = xs;
303
- const Rs = ({
304
- router: e,
305
- hydrate: t = !1
306
- }) => /* @__PURE__ */ a.jsx(Kn, { children: /* @__PURE__ */ a.jsx(In, { children: /* @__PURE__ */ a.jsx(Tt.Provider, { value: { stagger: !t }, children: /* @__PURE__ */ a.jsx(Va, { router: e }) }) }) }), Es = ({
307
- router: e,
308
- context: t,
309
- helmetContext: n
310
- }) => /* @__PURE__ */ a.jsx(Kn, { children: /* @__PURE__ */ a.jsx(In, { context: n, children: /* @__PURE__ */ a.jsx(Ms, { router: e, context: t }) }) });
311
- var ve, Tn, Ds = (Tn = class extends Gn {
312
- constructor(t = {}) {
313
- super();
314
- ce(this, ve);
315
- this.config = t, X(this, ve, /* @__PURE__ */ new Map());
316
- }
317
- build(t, n, r) {
318
- const o = n.queryKey, s = n.queryHash ?? Wn(o, n);
319
- let i = this.get(s);
320
- return i || (i = new Po({
321
- cache: this,
322
- queryKey: o,
323
- queryHash: s,
324
- options: t.defaultQueryOptions(n),
325
- state: r,
326
- defaultOptions: t.getQueryDefaults(o)
327
- }), this.add(i)), i;
328
- }
329
- add(t) {
330
- w(this, ve).has(t.queryHash) || (w(this, ve).set(t.queryHash, t), this.notify({
331
- type: "added",
332
- query: t
333
- }));
334
- }
335
- remove(t) {
336
- const n = w(this, ve).get(t.queryHash);
337
- n && (t.destroy(), n === t && w(this, ve).delete(t.queryHash), this.notify({ type: "removed", query: t }));
338
- }
339
- clear() {
340
- se.batch(() => {
341
- this.getAll().forEach((t) => {
342
- this.remove(t);
343
- });
344
- });
345
- }
346
- get(t) {
347
- return w(this, ve).get(t);
348
- }
349
- getAll() {
350
- return [...w(this, ve).values()];
351
- }
352
- find(t) {
353
- const n = { exact: !0, ...t };
354
- return this.getAll().find(
355
- (r) => vn(n, r)
356
- );
357
- }
358
- findAll(t = {}) {
359
- const n = this.getAll();
360
- return Object.keys(t).length > 0 ? n.filter((r) => vn(t, r)) : n;
361
- }
362
- notify(t) {
363
- se.batch(() => {
364
- this.listeners.forEach((n) => {
365
- n(t);
366
- });
367
- });
368
- }
369
- onFocus() {
370
- se.batch(() => {
371
- this.getAll().forEach((t) => {
372
- t.onFocus();
373
- });
374
- });
375
- }
376
- onOnline() {
377
- se.batch(() => {
378
- this.getAll().forEach((t) => {
379
- t.onOnline();
380
- });
381
- });
382
- }
383
- }, ve = new WeakMap(), Tn), oe, nt, _n, Ns = (_n = class extends Gn {
384
- constructor(t = {}) {
385
- super();
386
- ce(this, oe);
387
- ce(this, nt);
388
- this.config = t, X(this, oe, /* @__PURE__ */ new Map()), X(this, nt, Date.now());
389
- }
390
- build(t, n, r) {
391
- const o = new Za({
392
- mutationCache: this,
393
- mutationId: ++ut(this, nt)._,
394
- options: t.defaultMutationOptions(n),
395
- state: r
396
- });
397
- return this.add(o), o;
398
- }
399
- add(t) {
400
- const n = dt(t), r = w(this, oe).get(n) ?? [];
401
- r.push(t), w(this, oe).set(n, r), this.notify({ type: "added", mutation: t });
402
- }
403
- remove(t) {
404
- var r;
405
- const n = dt(t);
406
- if (w(this, oe).has(n)) {
407
- const o = (r = w(this, oe).get(n)) == null ? void 0 : r.filter((s) => s !== t);
408
- o && (o.length === 0 ? w(this, oe).delete(n) : w(this, oe).set(n, o));
409
- }
410
- this.notify({ type: "removed", mutation: t });
411
- }
412
- canRun(t) {
413
- var r;
414
- const n = (r = w(this, oe).get(dt(t))) == null ? void 0 : r.find((o) => o.state.status === "pending");
415
- return !n || n === t;
416
- }
417
- runNext(t) {
418
- var r;
419
- const n = (r = w(this, oe).get(dt(t))) == null ? void 0 : r.find((o) => o !== t && o.state.isPaused);
420
- return (n == null ? void 0 : n.continue()) ?? Promise.resolve();
421
- }
422
- clear() {
423
- se.batch(() => {
424
- this.getAll().forEach((t) => {
425
- this.remove(t);
426
- });
427
- });
428
- }
429
- getAll() {
430
- return [...w(this, oe).values()].flat();
431
- }
432
- find(t) {
433
- const n = { exact: !0, ...t };
434
- return this.getAll().find(
435
- (r) => wn(n, r)
436
- );
437
- }
438
- findAll(t = {}) {
439
- return this.getAll().filter((n) => wn(t, n));
440
- }
441
- notify(t) {
442
- se.batch(() => {
443
- this.listeners.forEach((n) => {
444
- n(t);
445
- });
446
- });
447
- }
448
- resumePausedMutations() {
449
- const t = this.getAll().filter((n) => n.state.isPaused);
450
- return se.batch(
451
- () => Promise.all(
452
- t.map((n) => n.continue().catch(be))
453
- )
454
- );
455
- }
456
- }, oe = new WeakMap(), nt = new WeakMap(), _n);
457
- function dt(e) {
458
- var t;
459
- return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
460
- }
461
- function Cn(e) {
462
- return {
463
- onFetch: (t, n) => {
464
- var f, c, d, R, g;
465
- const r = t.options, o = (d = (c = (f = t.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : d.direction, s = ((R = t.state.data) == null ? void 0 : R.pages) || [], i = ((g = t.state.data) == null ? void 0 : g.pageParams) || [];
466
- let l = { pages: [], pageParams: [] }, u = 0;
467
- const m = async () => {
468
- let b = !1;
469
- const _ = (N) => {
470
- Object.defineProperty(N, "signal", {
471
- enumerable: !0,
472
- get: () => (t.signal.aborted ? b = !0 : t.signal.addEventListener("abort", () => {
473
- b = !0;
474
- }), t.signal)
475
- });
476
- }, M = To(t.options, t.fetchOptions), A = async (N, v, z) => {
477
- if (b)
478
- return Promise.reject();
479
- if (v == null && N.pages.length)
480
- return Promise.resolve(N);
481
- const Z = {
482
- queryKey: t.queryKey,
483
- pageParam: v,
484
- direction: z ? "backward" : "forward",
485
- meta: t.options.meta
486
- };
487
- _(Z);
488
- const S = await M(
489
- Z
490
- ), { maxPages: j } = t.options, D = z ? _o : Oo;
491
- return {
492
- pages: D(N.pages, S, j),
493
- pageParams: D(N.pageParams, v, j)
494
- };
495
- };
496
- if (o && s.length) {
497
- const N = o === "backward", v = N ? js : Mn, z = {
498
- pages: s,
499
- pageParams: i
500
- }, Z = v(r, z);
501
- l = await A(z, Z, N);
502
- } else {
503
- const N = e ?? s.length;
504
- do {
505
- const v = u === 0 ? i[0] ?? r.initialPageParam : Mn(r, l);
506
- if (u > 0 && v == null)
507
- break;
508
- l = await A(l, v), u++;
509
- } while (u < N);
510
- }
511
- return l;
512
- };
513
- t.options.persister ? t.fetchFn = () => {
514
- var b, _;
515
- return (_ = (b = t.options).persister) == null ? void 0 : _.call(
516
- b,
517
- m,
518
- {
519
- queryKey: t.queryKey,
520
- meta: t.options.meta,
521
- signal: t.signal
522
- },
523
- n
524
- );
525
- } : t.fetchFn = m;
526
- }
527
- };
528
- }
529
- function Mn(e, { pages: t, pageParams: n }) {
530
- const r = t.length - 1;
531
- return t.length > 0 ? e.getNextPageParam(
532
- t[r],
533
- t,
534
- n[r],
535
- n
536
- ) : void 0;
537
- }
538
- function js(e, { pages: t, pageParams: n }) {
539
- var r;
540
- return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, n[0], n) : void 0;
541
- }
542
- var $, Ne, je, He, Ue, Pe, ze, Ke, On, Ps = (On = class {
543
- constructor(e = {}) {
544
- ce(this, $);
545
- ce(this, Ne);
546
- ce(this, je);
547
- ce(this, He);
548
- ce(this, Ue);
549
- ce(this, Pe);
550
- ce(this, ze);
551
- ce(this, Ke);
552
- X(this, $, e.queryCache || new Ds()), X(this, Ne, e.mutationCache || new Ns()), X(this, je, e.defaultOptions || {}), X(this, He, /* @__PURE__ */ new Map()), X(this, Ue, /* @__PURE__ */ new Map()), X(this, Pe, 0);
553
- }
554
- mount() {
555
- ut(this, Pe)._++, w(this, Pe) === 1 && (X(this, ze, Io.subscribe(async (e) => {
556
- e && (await this.resumePausedMutations(), w(this, $).onFocus());
557
- })), X(this, Ke, xn.subscribe(async (e) => {
558
- e && (await this.resumePausedMutations(), w(this, $).onOnline());
559
- })));
560
- }
561
- unmount() {
562
- var e, t;
563
- ut(this, Pe)._--, w(this, Pe) === 0 && ((e = w(this, ze)) == null || e.call(this), X(this, ze, void 0), (t = w(this, Ke)) == null || t.call(this), X(this, Ke, void 0));
564
- }
565
- isFetching(e) {
566
- return w(this, $).findAll({ ...e, fetchStatus: "fetching" }).length;
567
- }
568
- isMutating(e) {
569
- return w(this, Ne).findAll({ ...e, status: "pending" }).length;
570
- }
571
- getQueryData(e) {
572
- var n;
573
- const t = this.defaultQueryOptions({ queryKey: e });
574
- return (n = w(this, $).get(t.queryHash)) == null ? void 0 : n.state.data;
575
- }
576
- ensureQueryData(e) {
577
- const t = this.getQueryData(e.queryKey);
578
- if (t === void 0)
579
- return this.fetchQuery(e);
580
- {
581
- const n = this.defaultQueryOptions(e), r = w(this, $).build(this, n);
582
- return e.revalidateIfStale && r.isStaleByTime(yn(n.staleTime, r)) && this.prefetchQuery(n), Promise.resolve(t);
583
- }
584
- }
585
- getQueriesData(e) {
586
- return w(this, $).findAll(e).map(({ queryKey: t, state: n }) => {
587
- const r = n.data;
588
- return [t, r];
589
- });
590
- }
591
- setQueryData(e, t, n) {
592
- const r = this.defaultQueryOptions({ queryKey: e }), o = w(this, $).get(
593
- r.queryHash
594
- ), s = o == null ? void 0 : o.state.data, i = Ao(t, s);
595
- if (i !== void 0)
596
- return w(this, $).build(this, r).setData(i, { ...n, manual: !0 });
597
- }
598
- setQueriesData(e, t, n) {
599
- return se.batch(
600
- () => w(this, $).findAll(e).map(({ queryKey: r }) => [
601
- r,
602
- this.setQueryData(r, t, n)
603
- ])
604
- );
605
- }
606
- getQueryState(e) {
607
- var n;
608
- const t = this.defaultQueryOptions({ queryKey: e });
609
- return (n = w(this, $).get(t.queryHash)) == null ? void 0 : n.state;
610
- }
611
- removeQueries(e) {
612
- const t = w(this, $);
613
- se.batch(() => {
614
- t.findAll(e).forEach((n) => {
615
- t.remove(n);
616
- });
617
- });
618
- }
619
- resetQueries(e, t) {
620
- const n = w(this, $), r = {
621
- type: "active",
622
- ...e
623
- };
624
- return se.batch(() => (n.findAll(e).forEach((o) => {
625
- o.reset();
626
- }), this.refetchQueries(r, t)));
627
- }
628
- cancelQueries(e = {}, t = {}) {
629
- const n = { revert: !0, ...t }, r = se.batch(
630
- () => w(this, $).findAll(e).map((o) => o.cancel(n))
631
- );
632
- return Promise.all(r).then(be).catch(be);
633
- }
634
- invalidateQueries(e = {}, t = {}) {
635
- return se.batch(() => {
636
- if (w(this, $).findAll(e).forEach((r) => {
637
- r.invalidate();
638
- }), e.refetchType === "none")
639
- return Promise.resolve();
640
- const n = {
641
- ...e,
642
- type: e.refetchType ?? e.type ?? "active"
643
- };
644
- return this.refetchQueries(n, t);
645
- });
646
- }
647
- refetchQueries(e = {}, t) {
648
- const n = {
649
- ...t,
650
- cancelRefetch: (t == null ? void 0 : t.cancelRefetch) ?? !0
651
- }, r = se.batch(
652
- () => w(this, $).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
653
- let s = o.fetch(void 0, n);
654
- return n.throwOnError || (s = s.catch(be)), o.state.fetchStatus === "paused" ? Promise.resolve() : s;
655
- })
656
- );
657
- return Promise.all(r).then(be);
658
- }
659
- fetchQuery(e) {
660
- const t = this.defaultQueryOptions(e);
661
- t.retry === void 0 && (t.retry = !1);
662
- const n = w(this, $).build(this, t);
663
- return n.isStaleByTime(
664
- yn(t.staleTime, n)
665
- ) ? n.fetch(t) : Promise.resolve(n.state.data);
666
- }
667
- prefetchQuery(e) {
668
- return this.fetchQuery(e).then(be).catch(be);
669
- }
670
- fetchInfiniteQuery(e) {
671
- return e.behavior = Cn(e.pages), this.fetchQuery(e);
672
- }
673
- prefetchInfiniteQuery(e) {
674
- return this.fetchInfiniteQuery(e).then(be).catch(be);
675
- }
676
- ensureInfiniteQueryData(e) {
677
- return e.behavior = Cn(e.pages), this.ensureQueryData(e);
678
- }
679
- resumePausedMutations() {
680
- return xn.isOnline() ? w(this, Ne).resumePausedMutations() : Promise.resolve();
681
- }
682
- getQueryCache() {
683
- return w(this, $);
684
- }
685
- getMutationCache() {
686
- return w(this, Ne);
687
- }
688
- getDefaultOptions() {
689
- return w(this, je);
690
- }
691
- setDefaultOptions(e) {
692
- X(this, je, e);
693
- }
694
- setQueryDefaults(e, t) {
695
- w(this, He).set(bn(e), {
696
- queryKey: e,
697
- defaultOptions: t
698
- });
699
- }
700
- getQueryDefaults(e) {
701
- const t = [...w(this, He).values()];
702
- let n = {};
703
- return t.forEach((r) => {
704
- Sn(e, r.queryKey) && (n = { ...n, ...r.defaultOptions });
705
- }), n;
706
- }
707
- setMutationDefaults(e, t) {
708
- w(this, Ue).set(bn(e), {
709
- mutationKey: e,
710
- defaultOptions: t
711
- });
712
- }
713
- getMutationDefaults(e) {
714
- const t = [...w(this, Ue).values()];
715
- let n = {};
716
- return t.forEach((r) => {
717
- Sn(e, r.mutationKey) && (n = { ...n, ...r.defaultOptions });
718
- }), n;
719
- }
720
- defaultQueryOptions(e) {
721
- if (e._defaulted)
722
- return e;
723
- const t = {
724
- ...w(this, je).queries,
725
- ...this.getQueryDefaults(e.queryKey),
726
- ...e,
727
- _defaulted: !0
728
- };
729
- return t.queryHash || (t.queryHash = Wn(
730
- t.queryKey,
731
- t
732
- )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.enabled !== !0 && t.queryFn === ko && (t.enabled = !1), t;
733
- }
734
- defaultMutationOptions(e) {
735
- return e != null && e._defaulted ? e : {
736
- ...w(this, je).mutations,
737
- ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
738
- ...e,
739
- _defaulted: !0
740
- };
741
- }
742
- clear() {
743
- w(this, $).clear(), w(this, Ne).clear();
744
- }
745
- }, $ = new WeakMap(), Ne = new WeakMap(), je = new WeakMap(), He = new WeakMap(), Ue = new WeakMap(), Pe = new WeakMap(), ze = new WeakMap(), Ke = new WeakMap(), On);
746
- const Ts = qn(null), Rt = {
747
- didCatch: !1,
748
- error: null
749
- };
750
- class _s extends yo {
751
- constructor(t) {
752
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Rt;
753
- }
754
- static getDerivedStateFromError(t) {
755
- return {
756
- didCatch: !0,
757
- error: t
758
- };
759
- }
760
- resetErrorBoundary() {
761
- const {
762
- error: t
763
- } = this.state;
764
- if (t !== null) {
765
- for (var n, r, o = arguments.length, s = new Array(o), i = 0; i < o; i++)
766
- s[i] = arguments[i];
767
- (n = (r = this.props).onReset) === null || n === void 0 || n.call(r, {
768
- args: s,
769
- reason: "imperative-api"
770
- }), this.setState(Rt);
771
- }
772
- }
773
- componentDidCatch(t, n) {
774
- var r, o;
775
- (r = (o = this.props).onError) === null || r === void 0 || r.call(o, t, n);
776
- }
777
- componentDidUpdate(t, n) {
778
- const {
779
- didCatch: r
780
- } = this.state, {
781
- resetKeys: o
782
- } = this.props;
783
- if (r && n.error !== null && Os(t.resetKeys, o)) {
784
- var s, i;
785
- (s = (i = this.props).onReset) === null || s === void 0 || s.call(i, {
786
- next: o,
787
- prev: t.resetKeys,
788
- reason: "keys"
789
- }), this.setState(Rt);
790
- }
791
- }
792
- render() {
793
- const {
794
- children: t,
795
- fallbackRender: n,
796
- FallbackComponent: r,
797
- fallback: o
798
- } = this.props, {
799
- didCatch: s,
800
- error: i
801
- } = this.state;
802
- let l = t;
803
- if (s) {
804
- const u = {
805
- error: i,
806
- resetErrorBoundary: this.resetErrorBoundary
807
- };
808
- if (typeof n == "function")
809
- l = n(u);
810
- else if (r)
811
- l = gn(r, u);
812
- else if (o === null || bo(o))
813
- l = o;
814
- else
815
- throw i;
816
- }
817
- return gn(Ts.Provider, {
818
- value: {
819
- didCatch: s,
820
- error: i,
821
- resetErrorBoundary: this.resetErrorBoundary
822
- }
823
- }, l);
824
- }
825
- }
826
- function Os() {
827
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
828
- return e.length !== t.length || e.some((n, r) => !Object.is(n, t[r]));
829
- }
830
- const Is = (e) => "getProfileMenuItems" in e && typeof e.getProfileMenuItems == "function", As = (e) => "getRoutes" in e && typeof e.getRoutes == "function", ks = (e) => "renderSearch" in e && typeof e.renderSearch == "function", $s = (e) => "initialize" in e && typeof e.initialize == "function", Fs = (e) => "getHead" in e && typeof e.getHead == "function", Ls = (e) => "getMdxComponents" in e && typeof e.getMdxComponents == "function", Bs = (e) => "getIdentities" in e && typeof e.getIdentities == "function", nr = new Ps();
831
- class Hs {
832
- constructor(t) {
833
- ae(this, "plugins");
834
- ae(this, "sidebars");
835
- ae(this, "topNavigation");
836
- ae(this, "meta");
837
- ae(this, "page");
838
- ae(this, "authentication");
839
- ae(this, "navigationPlugins");
840
- ae(this, "initialize", async () => {
841
- await Promise.all(
842
- this.plugins.filter($s).map((t) => {
843
- var n;
844
- return (n = t.initialize) == null ? void 0 : n.call(t, this);
845
- })
846
- );
847
- });
848
- ae(this, "invalidateCache", async (t) => {
849
- await nr.invalidateQueries({ queryKey: t });
850
- });
851
- ae(this, "getApiIdentities", async () => (await Promise.all(
852
- this.plugins.filter(Bs).map((n) => n.getIdentities(this))
853
- )).flat());
854
- ae(this, "getPluginSidebar", async (t) => (await Promise.all(
855
- this.navigationPlugins.map(
856
- (r) => {
857
- var o;
858
- return (o = r.getSidebar) == null ? void 0 : o.call(r, Ze(t));
859
- }
860
- )
861
- )).flatMap((r) => r ?? []));
862
- ae(this, "signRequest", async (t) => {
863
- if (!this.authentication)
864
- throw new Error("No authentication provider configured");
865
- const n = await this.authentication.getAccessToken();
866
- return t.headers.set("Authorization", `Bearer ${n}`), t;
867
- });
868
- this.plugins = t.plugins ?? [], this.topNavigation = t.topNavigation ?? [], this.sidebars = t.sidebars ?? {}, this.navigationPlugins = this.plugins.filter(As), this.authentication = t.authentication, this.meta = t.metadata, this.page = t.page;
869
- }
870
- }
871
- function Us({ error: e, resetErrorBoundary: t }) {
872
- return /* @__PURE__ */ a.jsx(kn, { error: e });
873
- }
874
- const ft = globalThis;
875
- (!ft.requestIdleCallback || !ft.cancelIdleCallback) && (ft.requestIdleCallback = (e) => setTimeout(e, 1), ft.cancelIdleCallback = clearTimeout);
876
- var _t = ["Enter", " "], zs = ["ArrowDown", "PageUp", "Home"], rr = ["ArrowUp", "PageDown", "End"], Ks = [...zs, ...rr], qs = {
877
- ltr: [..._t, "ArrowRight"],
878
- rtl: [..._t, "ArrowLeft"]
879
- }, Qs = {
880
- ltr: ["ArrowLeft"],
881
- rtl: ["ArrowRight"]
882
- }, ot = "Menu", [et, Vs, Gs] = eo(ot), [ke, ar] = $n(ot, [
883
- Gs,
884
- Fn,
885
- Jn
886
- ]), st = Fn(), or = Jn(), [sr, Te] = ke(ot), [Ws, it] = ke(ot), ir = (e) => {
887
- const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, l = st(t), [u, m] = h.useState(null), f = h.useRef(!1), c = Ft(s), d = fo(o);
888
- return h.useEffect(() => {
889
- const R = () => {
890
- f.current = !0, document.addEventListener("pointerdown", g, { capture: !0, once: !0 }), document.addEventListener("pointermove", g, { capture: !0, once: !0 });
891
- }, g = () => f.current = !1;
892
- return document.addEventListener("keydown", R, { capture: !0 }), () => {
893
- document.removeEventListener("keydown", R, { capture: !0 }), document.removeEventListener("pointerdown", g, { capture: !0 }), document.removeEventListener("pointermove", g, { capture: !0 });
894
- };
895
- }, []), /* @__PURE__ */ a.jsx(Bn, { ...l, children: /* @__PURE__ */ a.jsx(
896
- sr,
897
- {
898
- scope: t,
899
- open: n,
900
- onOpenChange: c,
901
- content: u,
902
- onContentChange: m,
903
- children: /* @__PURE__ */ a.jsx(
904
- Ws,
905
- {
906
- scope: t,
907
- onClose: h.useCallback(() => c(!1), [c]),
908
- isUsingKeyboardRef: f,
909
- dir: d,
910
- modal: i,
911
- children: r
912
- }
913
- )
914
- }
915
- ) });
916
- };
917
- ir.displayName = ot;
918
- var Ys = "MenuAnchor", Kt = h.forwardRef(
919
- (e, t) => {
920
- const { __scopeMenu: n, ...r } = e, o = st(n);
921
- return /* @__PURE__ */ a.jsx(to, { ...o, ...r, ref: t });
922
- }
923
- );
924
- Kt.displayName = Ys;
925
- var qt = "MenuPortal", [Xs, lr] = ke(qt, {
926
- forceMount: void 0
927
- }), cr = (e) => {
928
- const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = Te(qt, t);
929
- return /* @__PURE__ */ a.jsx(Xs, { scope: t, forceMount: n, children: /* @__PURE__ */ a.jsx(bt, { present: n || s.open, children: /* @__PURE__ */ a.jsx(ho, { asChild: !0, container: o, children: r }) }) });
930
- };
931
- cr.displayName = qt;
932
- var ue = "MenuContent", [Js, Qt] = ke(ue), ur = h.forwardRef(
933
- (e, t) => {
934
- const n = lr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu);
935
- return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(bt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ a.jsx(Zs, { ...o, ref: t }) : /* @__PURE__ */ a.jsx(ei, { ...o, ref: t }) }) }) });
936
- }
937
- ), Zs = h.forwardRef(
938
- (e, t) => {
939
- const n = Te(ue, e.__scopeMenu), r = h.useRef(null), o = rt(t, r);
940
- return h.useEffect(() => {
941
- const s = r.current;
942
- if (s) return no(s);
943
- }, []), /* @__PURE__ */ a.jsx(
944
- Vt,
945
- {
946
- ...e,
947
- ref: o,
948
- trapFocus: n.open,
949
- disableOutsidePointerEvents: n.open,
950
- disableOutsideScroll: !0,
951
- onFocusOutside: I(
952
- e.onFocusOutside,
953
- (s) => s.preventDefault(),
954
- { checkForDefaultPrevented: !1 }
955
- ),
956
- onDismiss: () => n.onOpenChange(!1)
957
- }
958
- );
959
- }
960
- ), ei = h.forwardRef((e, t) => {
961
- const n = Te(ue, e.__scopeMenu);
962
- return /* @__PURE__ */ a.jsx(
963
- Vt,
964
- {
965
- ...e,
966
- ref: t,
967
- trapFocus: !1,
968
- disableOutsidePointerEvents: !1,
969
- disableOutsideScroll: !1,
970
- onDismiss: () => n.onOpenChange(!1)
971
- }
972
- );
973
- }), Vt = h.forwardRef(
974
- (e, t) => {
975
- const {
976
- __scopeMenu: n,
977
- loop: r = !1,
978
- trapFocus: o,
979
- onOpenAutoFocus: s,
980
- onCloseAutoFocus: i,
981
- disableOutsidePointerEvents: l,
982
- onEntryFocus: u,
983
- onEscapeKeyDown: m,
984
- onPointerDownOutside: f,
985
- onFocusOutside: c,
986
- onInteractOutside: d,
987
- onDismiss: R,
988
- disableOutsideScroll: g,
989
- ...b
990
- } = e, _ = Te(ue, n), M = it(ue, n), A = st(n), N = or(n), v = Vs(n), [z, Z] = h.useState(null), S = h.useRef(null), j = rt(t, S, _.onContentChange), D = h.useRef(0), B = h.useRef(""), K = h.useRef(0), W = h.useRef(null), x = h.useRef("right"), V = h.useRef(0), G = g ? lo : h.Fragment, te = g ? { as: co, allowPinchZoom: !0 } : void 0, q = (y) => {
991
- var le, Re;
992
- const Q = B.current + y, ie = v().filter((re) => !re.disabled), de = document.activeElement, pe = (le = ie.find((re) => re.ref.current === de)) == null ? void 0 : le.textValue, Me = ie.map((re) => re.textValue), $e = fi(Me, Q, pe), ye = (Re = ie.find((re) => re.textValue === $e)) == null ? void 0 : Re.ref.current;
993
- (function re(Fe) {
994
- B.current = Fe, window.clearTimeout(D.current), Fe !== "" && (D.current = window.setTimeout(() => re(""), 1e3));
995
- })(Q), ye && setTimeout(() => ye.focus());
996
- };
997
- h.useEffect(() => () => window.clearTimeout(D.current), []), ro();
998
- const Y = h.useCallback((y) => {
999
- var ie, de;
1000
- return x.current === ((ie = W.current) == null ? void 0 : ie.side) && pi(y, (de = W.current) == null ? void 0 : de.area);
1001
- }, []);
1002
- return /* @__PURE__ */ a.jsx(
1003
- Js,
1004
- {
1005
- scope: n,
1006
- searchRef: B,
1007
- onItemEnter: h.useCallback(
1008
- (y) => {
1009
- Y(y) && y.preventDefault();
1010
- },
1011
- [Y]
1012
- ),
1013
- onItemLeave: h.useCallback(
1014
- (y) => {
1015
- var Q;
1016
- Y(y) || ((Q = S.current) == null || Q.focus(), Z(null));
1017
- },
1018
- [Y]
1019
- ),
1020
- onTriggerLeave: h.useCallback(
1021
- (y) => {
1022
- Y(y) && y.preventDefault();
1023
- },
1024
- [Y]
1025
- ),
1026
- pointerGraceTimerRef: K,
1027
- onPointerGraceIntentChange: h.useCallback((y) => {
1028
- W.current = y;
1029
- }, []),
1030
- children: /* @__PURE__ */ a.jsx(G, { ...te, children: /* @__PURE__ */ a.jsx(
1031
- ao,
1032
- {
1033
- asChild: !0,
1034
- trapped: o,
1035
- onMountAutoFocus: I(s, (y) => {
1036
- var Q;
1037
- y.preventDefault(), (Q = S.current) == null || Q.focus({ preventScroll: !0 });
1038
- }),
1039
- onUnmountAutoFocus: i,
1040
- children: /* @__PURE__ */ a.jsx(
1041
- oo,
1042
- {
1043
- asChild: !0,
1044
- disableOutsidePointerEvents: l,
1045
- onEscapeKeyDown: m,
1046
- onPointerDownOutside: f,
1047
- onFocusOutside: c,
1048
- onInteractOutside: d,
1049
- onDismiss: R,
1050
- children: /* @__PURE__ */ a.jsx(
1051
- Xo,
1052
- {
1053
- asChild: !0,
1054
- ...N,
1055
- dir: M.dir,
1056
- orientation: "vertical",
1057
- loop: r,
1058
- currentTabStopId: z,
1059
- onCurrentTabStopIdChange: Z,
1060
- onEntryFocus: I(u, (y) => {
1061
- M.isUsingKeyboardRef.current || y.preventDefault();
1062
- }),
1063
- preventScrollOnEntryFocus: !0,
1064
- children: /* @__PURE__ */ a.jsx(
1065
- so,
1066
- {
1067
- role: "menu",
1068
- "aria-orientation": "vertical",
1069
- "data-state": Dr(_.open),
1070
- "data-radix-menu-content": "",
1071
- dir: M.dir,
1072
- ...A,
1073
- ...b,
1074
- ref: j,
1075
- style: { outline: "none", ...b.style },
1076
- onKeyDown: I(b.onKeyDown, (y) => {
1077
- const ie = y.target.closest("[data-radix-menu-content]") === y.currentTarget, de = y.ctrlKey || y.altKey || y.metaKey, pe = y.key.length === 1;
1078
- ie && (y.key === "Tab" && y.preventDefault(), !de && pe && q(y.key));
1079
- const Me = S.current;
1080
- if (y.target !== Me || !Ks.includes(y.key)) return;
1081
- y.preventDefault();
1082
- const ye = v().filter((le) => !le.disabled).map((le) => le.ref.current);
1083
- rr.includes(y.key) && ye.reverse(), ui(ye);
1084
- }),
1085
- onBlur: I(e.onBlur, (y) => {
1086
- y.currentTarget.contains(y.target) || (window.clearTimeout(D.current), B.current = "");
1087
- }),
1088
- onPointerMove: I(
1089
- e.onPointerMove,
1090
- tt((y) => {
1091
- const Q = y.target, ie = V.current !== y.clientX;
1092
- if (y.currentTarget.contains(Q) && ie) {
1093
- const de = y.clientX > V.current ? "right" : "left";
1094
- x.current = de, V.current = y.clientX;
1095
- }
1096
- })
1097
- )
1098
- }
1099
- )
1100
- }
1101
- )
1102
- }
1103
- )
1104
- }
1105
- ) })
1106
- }
1107
- );
1108
- }
1109
- );
1110
- ur.displayName = ue;
1111
- var ti = "MenuGroup", Gt = h.forwardRef(
1112
- (e, t) => {
1113
- const { __scopeMenu: n, ...r } = e;
1114
- return /* @__PURE__ */ a.jsx(qe.div, { role: "group", ...r, ref: t });
1115
- }
1116
- );
1117
- Gt.displayName = ti;
1118
- var ni = "MenuLabel", dr = h.forwardRef(
1119
- (e, t) => {
1120
- const { __scopeMenu: n, ...r } = e;
1121
- return /* @__PURE__ */ a.jsx(qe.div, { ...r, ref: t });
1122
- }
1123
- );
1124
- dr.displayName = ni;
1125
- var wt = "MenuItem", Rn = "menu.itemSelect", St = h.forwardRef(
1126
- (e, t) => {
1127
- const { disabled: n = !1, onSelect: r, ...o } = e, s = h.useRef(null), i = it(wt, e.__scopeMenu), l = Qt(wt, e.__scopeMenu), u = rt(t, s), m = h.useRef(!1), f = () => {
1128
- const c = s.current;
1129
- if (!n && c) {
1130
- const d = new CustomEvent(Rn, { bubbles: !0, cancelable: !0 });
1131
- c.addEventListener(Rn, (R) => r == null ? void 0 : r(R), { once: !0 }), uo(c, d), d.defaultPrevented ? m.current = !1 : i.onClose();
1132
- }
1133
- };
1134
- return /* @__PURE__ */ a.jsx(
1135
- fr,
1136
- {
1137
- ...o,
1138
- ref: u,
1139
- disabled: n,
1140
- onClick: I(e.onClick, f),
1141
- onPointerDown: (c) => {
1142
- var d;
1143
- (d = e.onPointerDown) == null || d.call(e, c), m.current = !0;
1144
- },
1145
- onPointerUp: I(e.onPointerUp, (c) => {
1146
- var d;
1147
- m.current || (d = c.currentTarget) == null || d.click();
1148
- }),
1149
- onKeyDown: I(e.onKeyDown, (c) => {
1150
- const d = l.searchRef.current !== "";
1151
- n || d && c.key === " " || _t.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
1152
- })
1153
- }
1154
- );
1155
- }
1156
- );
1157
- St.displayName = wt;
1158
- var fr = h.forwardRef(
1159
- (e, t) => {
1160
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Qt(wt, n), l = or(n), u = h.useRef(null), m = rt(t, u), [f, c] = h.useState(!1), [d, R] = h.useState("");
1161
- return h.useEffect(() => {
1162
- const g = u.current;
1163
- g && R((g.textContent ?? "").trim());
1164
- }, [s.children]), /* @__PURE__ */ a.jsx(
1165
- et.ItemSlot,
1166
- {
1167
- scope: n,
1168
- disabled: r,
1169
- textValue: o ?? d,
1170
- children: /* @__PURE__ */ a.jsx(Jo, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ a.jsx(
1171
- qe.div,
1172
- {
1173
- role: "menuitem",
1174
- "data-highlighted": f ? "" : void 0,
1175
- "aria-disabled": r || void 0,
1176
- "data-disabled": r ? "" : void 0,
1177
- ...s,
1178
- ref: m,
1179
- onPointerMove: I(
1180
- e.onPointerMove,
1181
- tt((g) => {
1182
- r ? i.onItemLeave(g) : (i.onItemEnter(g), g.defaultPrevented || g.currentTarget.focus({ preventScroll: !0 }));
1183
- })
1184
- ),
1185
- onPointerLeave: I(
1186
- e.onPointerLeave,
1187
- tt((g) => i.onItemLeave(g))
1188
- ),
1189
- onFocus: I(e.onFocus, () => c(!0)),
1190
- onBlur: I(e.onBlur, () => c(!1))
1191
- }
1192
- ) })
1193
- }
1194
- );
1195
- }
1196
- ), ri = "MenuCheckboxItem", hr = h.forwardRef(
1197
- (e, t) => {
1198
- const { checked: n = !1, onCheckedChange: r, ...o } = e;
1199
- return /* @__PURE__ */ a.jsx(wr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ a.jsx(
1200
- St,
1201
- {
1202
- role: "menuitemcheckbox",
1203
- "aria-checked": xt(n) ? "mixed" : n,
1204
- ...o,
1205
- ref: t,
1206
- "data-state": Xt(n),
1207
- onSelect: I(
1208
- o.onSelect,
1209
- () => r == null ? void 0 : r(xt(n) ? !0 : !n),
1210
- { checkForDefaultPrevented: !1 }
1211
- )
1212
- }
1213
- ) });
1214
- }
1215
- );
1216
- hr.displayName = ri;
1217
- var pr = "MenuRadioGroup", [ai, oi] = ke(
1218
- pr,
1219
- { value: void 0, onValueChange: () => {
1220
- } }
1221
- ), mr = h.forwardRef(
1222
- (e, t) => {
1223
- const { value: n, onValueChange: r, ...o } = e, s = Ft(r);
1224
- return /* @__PURE__ */ a.jsx(ai, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ a.jsx(Gt, { ...o, ref: t }) });
1225
- }
1226
- );
1227
- mr.displayName = pr;
1228
- var gr = "MenuRadioItem", vr = h.forwardRef(
1229
- (e, t) => {
1230
- const { value: n, ...r } = e, o = oi(gr, e.__scopeMenu), s = n === o.value;
1231
- return /* @__PURE__ */ a.jsx(wr, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ a.jsx(
1232
- St,
1233
- {
1234
- role: "menuitemradio",
1235
- "aria-checked": s,
1236
- ...r,
1237
- ref: t,
1238
- "data-state": Xt(s),
1239
- onSelect: I(
1240
- r.onSelect,
1241
- () => {
1242
- var i;
1243
- return (i = o.onValueChange) == null ? void 0 : i.call(o, n);
1244
- },
1245
- { checkForDefaultPrevented: !1 }
1246
- )
1247
- }
1248
- ) });
1249
- }
1250
- );
1251
- vr.displayName = gr;
1252
- var Wt = "MenuItemIndicator", [wr, si] = ke(
1253
- Wt,
1254
- { checked: !1 }
1255
- ), xr = h.forwardRef(
1256
- (e, t) => {
1257
- const { __scopeMenu: n, forceMount: r, ...o } = e, s = si(Wt, n);
1258
- return /* @__PURE__ */ a.jsx(
1259
- bt,
1260
- {
1261
- present: r || xt(s.checked) || s.checked === !0,
1262
- children: /* @__PURE__ */ a.jsx(
1263
- qe.span,
1264
- {
1265
- ...o,
1266
- ref: t,
1267
- "data-state": Xt(s.checked)
1268
- }
1269
- )
1270
- }
1271
- );
1272
- }
1273
- );
1274
- xr.displayName = Wt;
1275
- var ii = "MenuSeparator", yr = h.forwardRef(
1276
- (e, t) => {
1277
- const { __scopeMenu: n, ...r } = e;
1278
- return /* @__PURE__ */ a.jsx(
1279
- qe.div,
1280
- {
1281
- role: "separator",
1282
- "aria-orientation": "horizontal",
1283
- ...r,
1284
- ref: t
1285
- }
1286
- );
1287
- }
1288
- );
1289
- yr.displayName = ii;
1290
- var li = "MenuArrow", br = h.forwardRef(
1291
- (e, t) => {
1292
- const { __scopeMenu: n, ...r } = e, o = st(n);
1293
- return /* @__PURE__ */ a.jsx(io, { ...o, ...r, ref: t });
1294
- }
1295
- );
1296
- br.displayName = li;
1297
- var Yt = "MenuSub", [ci, Sr] = ke(Yt), Cr = (e) => {
1298
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = Te(Yt, t), i = st(t), [l, u] = h.useState(null), [m, f] = h.useState(null), c = Ft(o);
1299
- return h.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ a.jsx(Bn, { ...i, children: /* @__PURE__ */ a.jsx(
1300
- sr,
1301
- {
1302
- scope: t,
1303
- open: r,
1304
- onOpenChange: c,
1305
- content: m,
1306
- onContentChange: f,
1307
- children: /* @__PURE__ */ a.jsx(
1308
- ci,
1309
- {
1310
- scope: t,
1311
- contentId: vt(),
1312
- triggerId: vt(),
1313
- trigger: l,
1314
- onTriggerChange: u,
1315
- children: n
1316
- }
1317
- )
1318
- }
1319
- ) });
1320
- };
1321
- Cr.displayName = Yt;
1322
- var Xe = "MenuSubTrigger", Mr = h.forwardRef(
1323
- (e, t) => {
1324
- const n = Te(Xe, e.__scopeMenu), r = it(Xe, e.__scopeMenu), o = Sr(Xe, e.__scopeMenu), s = Qt(Xe, e.__scopeMenu), i = h.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: u } = s, m = { __scopeMenu: e.__scopeMenu }, f = h.useCallback(() => {
1325
- i.current && window.clearTimeout(i.current), i.current = null;
1326
- }, []);
1327
- return h.useEffect(() => f, [f]), h.useEffect(() => {
1328
- const c = l.current;
1329
- return () => {
1330
- window.clearTimeout(c), u(null);
1331
- };
1332
- }, [l, u]), /* @__PURE__ */ a.jsx(Kt, { asChild: !0, ...m, children: /* @__PURE__ */ a.jsx(
1333
- fr,
1334
- {
1335
- id: o.triggerId,
1336
- "aria-haspopup": "menu",
1337
- "aria-expanded": n.open,
1338
- "aria-controls": o.contentId,
1339
- "data-state": Dr(n.open),
1340
- ...e,
1341
- ref: Ln(t, o.onTriggerChange),
1342
- onClick: (c) => {
1343
- var d;
1344
- (d = e.onClick) == null || d.call(e, c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), n.open || n.onOpenChange(!0));
1345
- },
1346
- onPointerMove: I(
1347
- e.onPointerMove,
1348
- tt((c) => {
1349
- s.onItemEnter(c), !c.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
1350
- n.onOpenChange(!0), f();
1351
- }, 100));
1352
- })
1353
- ),
1354
- onPointerLeave: I(
1355
- e.onPointerLeave,
1356
- tt((c) => {
1357
- var R, g;
1358
- f();
1359
- const d = (R = n.content) == null ? void 0 : R.getBoundingClientRect();
1360
- if (d) {
1361
- const b = (g = n.content) == null ? void 0 : g.dataset.side, _ = b === "right", M = _ ? -5 : 5, A = d[_ ? "left" : "right"], N = d[_ ? "right" : "left"];
1362
- s.onPointerGraceIntentChange({
1363
- area: [
1364
- // Apply a bleed on clientX to ensure that our exit point is
1365
- // consistently within polygon bounds
1366
- { x: c.clientX + M, y: c.clientY },
1367
- { x: A, y: d.top },
1368
- { x: N, y: d.top },
1369
- { x: N, y: d.bottom },
1370
- { x: A, y: d.bottom }
1371
- ],
1372
- side: b
1373
- }), window.clearTimeout(l.current), l.current = window.setTimeout(
1374
- () => s.onPointerGraceIntentChange(null),
1375
- 300
1376
- );
1377
- } else {
1378
- if (s.onTriggerLeave(c), c.defaultPrevented) return;
1379
- s.onPointerGraceIntentChange(null);
1380
- }
1381
- })
1382
- ),
1383
- onKeyDown: I(e.onKeyDown, (c) => {
1384
- var R;
1385
- const d = s.searchRef.current !== "";
1386
- e.disabled || d && c.key === " " || qs[r.dir].includes(c.key) && (n.onOpenChange(!0), (R = n.content) == null || R.focus(), c.preventDefault());
1387
- })
1388
- }
1389
- ) });
1390
- }
1391
- );
1392
- Mr.displayName = Xe;
1393
- var Rr = "MenuSubContent", Er = h.forwardRef(
1394
- (e, t) => {
1395
- const n = lr(ue, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = Te(ue, e.__scopeMenu), i = it(ue, e.__scopeMenu), l = Sr(Rr, e.__scopeMenu), u = h.useRef(null), m = rt(t, u);
1396
- return /* @__PURE__ */ a.jsx(et.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(bt, { present: r || s.open, children: /* @__PURE__ */ a.jsx(et.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ a.jsx(
1397
- Vt,
1398
- {
1399
- id: l.contentId,
1400
- "aria-labelledby": l.triggerId,
1401
- ...o,
1402
- ref: m,
1403
- align: "start",
1404
- side: i.dir === "rtl" ? "left" : "right",
1405
- disableOutsidePointerEvents: !1,
1406
- disableOutsideScroll: !1,
1407
- trapFocus: !1,
1408
- onOpenAutoFocus: (f) => {
1409
- var c;
1410
- i.isUsingKeyboardRef.current && ((c = u.current) == null || c.focus()), f.preventDefault();
1411
- },
1412
- onCloseAutoFocus: (f) => f.preventDefault(),
1413
- onFocusOutside: I(e.onFocusOutside, (f) => {
1414
- f.target !== l.trigger && s.onOpenChange(!1);
1415
- }),
1416
- onEscapeKeyDown: I(e.onEscapeKeyDown, (f) => {
1417
- i.onClose(), f.preventDefault();
1418
- }),
1419
- onKeyDown: I(e.onKeyDown, (f) => {
1420
- var R;
1421
- const c = f.currentTarget.contains(f.target), d = Qs[i.dir].includes(f.key);
1422
- c && d && (s.onOpenChange(!1), (R = l.trigger) == null || R.focus(), f.preventDefault());
1423
- })
1424
- }
1425
- ) }) }) });
1426
- }
1427
- );
1428
- Er.displayName = Rr;
1429
- function Dr(e) {
1430
- return e ? "open" : "closed";
1431
- }
1432
- function xt(e) {
1433
- return e === "indeterminate";
1434
- }
1435
- function Xt(e) {
1436
- return xt(e) ? "indeterminate" : e ? "checked" : "unchecked";
1437
- }
1438
- function ui(e) {
1439
- const t = document.activeElement;
1440
- for (const n of e)
1441
- if (n === t || (n.focus(), document.activeElement !== t)) return;
1442
- }
1443
- function di(e, t) {
1444
- return e.map((n, r) => e[(t + r) % e.length]);
1445
- }
1446
- function fi(e, t, n) {
1447
- const o = t.length > 1 && Array.from(t).every((m) => m === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
1448
- let i = di(e, Math.max(s, 0));
1449
- o.length === 1 && (i = i.filter((m) => m !== n));
1450
- const u = i.find(
1451
- (m) => m.toLowerCase().startsWith(o.toLowerCase())
1452
- );
1453
- return u !== n ? u : void 0;
1454
- }
1455
- function hi(e, t) {
1456
- const { x: n, y: r } = e;
1457
- let o = !1;
1458
- for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
1459
- const l = t[s].x, u = t[s].y, m = t[i].x, f = t[i].y;
1460
- u > r != f > r && n < (m - l) * (r - u) / (f - u) + l && (o = !o);
1461
- }
1462
- return o;
1463
- }
1464
- function pi(e, t) {
1465
- if (!t) return !1;
1466
- const n = { x: e.clientX, y: e.clientY };
1467
- return hi(n, t);
1468
- }
1469
- function tt(e) {
1470
- return (t) => t.pointerType === "mouse" ? e(t) : void 0;
1471
- }
1472
- var mi = ir, gi = Kt, vi = cr, wi = ur, xi = Gt, yi = dr, bi = St, Si = hr, Ci = mr, Mi = vr, Ri = xr, Ei = yr, Di = br, Ni = Cr, ji = Mr, Pi = Er, Jt = "DropdownMenu", [Ti, dc] = $n(
1473
- Jt,
1474
- [ar]
1475
- ), J = ar(), [_i, Nr] = Ti(Jt), jr = (e) => {
1476
- const {
1477
- __scopeDropdownMenu: t,
1478
- children: n,
1479
- dir: r,
1480
- open: o,
1481
- defaultOpen: s,
1482
- onOpenChange: i,
1483
- modal: l = !0
1484
- } = e, u = J(t), m = h.useRef(null), [f = !1, c] = Hn({
1485
- prop: o,
1486
- defaultProp: s,
1487
- onChange: i
1488
- });
1489
- return /* @__PURE__ */ a.jsx(
1490
- _i,
1491
- {
1492
- scope: t,
1493
- triggerId: vt(),
1494
- triggerRef: m,
1495
- contentId: vt(),
1496
- open: f,
1497
- onOpenChange: c,
1498
- onOpenToggle: h.useCallback(() => c((d) => !d), [c]),
1499
- modal: l,
1500
- children: /* @__PURE__ */ a.jsx(mi, { ...u, open: f, onOpenChange: c, dir: r, modal: l, children: n })
1501
- }
1502
- );
1503
- };
1504
- jr.displayName = Jt;
1505
- var Pr = "DropdownMenuTrigger", Tr = h.forwardRef(
1506
- (e, t) => {
1507
- const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Nr(Pr, n), i = J(n);
1508
- return /* @__PURE__ */ a.jsx(gi, { asChild: !0, ...i, children: /* @__PURE__ */ a.jsx(
1509
- qe.button,
1510
- {
1511
- type: "button",
1512
- id: s.triggerId,
1513
- "aria-haspopup": "menu",
1514
- "aria-expanded": s.open,
1515
- "aria-controls": s.open ? s.contentId : void 0,
1516
- "data-state": s.open ? "open" : "closed",
1517
- "data-disabled": r ? "" : void 0,
1518
- disabled: r,
1519
- ...o,
1520
- ref: Ln(t, s.triggerRef),
1521
- onPointerDown: I(e.onPointerDown, (l) => {
1522
- !r && l.button === 0 && l.ctrlKey === !1 && (s.onOpenToggle(), s.open || l.preventDefault());
1523
- }),
1524
- onKeyDown: I(e.onKeyDown, (l) => {
1525
- r || (["Enter", " "].includes(l.key) && s.onOpenToggle(), l.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(l.key) && l.preventDefault());
1526
- })
1527
- }
1528
- ) });
1529
- }
1530
- );
1531
- Tr.displayName = Pr;
1532
- var Oi = "DropdownMenuPortal", _r = (e) => {
1533
- const { __scopeDropdownMenu: t, ...n } = e, r = J(t);
1534
- return /* @__PURE__ */ a.jsx(vi, { ...r, ...n });
1535
- };
1536
- _r.displayName = Oi;
1537
- var Or = "DropdownMenuContent", Ir = h.forwardRef(
1538
- (e, t) => {
1539
- const { __scopeDropdownMenu: n, ...r } = e, o = Nr(Or, n), s = J(n), i = h.useRef(!1);
1540
- return /* @__PURE__ */ a.jsx(
1541
- wi,
1542
- {
1543
- id: o.contentId,
1544
- "aria-labelledby": o.triggerId,
1545
- ...s,
1546
- ...r,
1547
- ref: t,
1548
- onCloseAutoFocus: I(e.onCloseAutoFocus, (l) => {
1549
- var u;
1550
- i.current || (u = o.triggerRef.current) == null || u.focus(), i.current = !1, l.preventDefault();
1551
- }),
1552
- onInteractOutside: I(e.onInteractOutside, (l) => {
1553
- const u = l.detail.originalEvent, m = u.button === 0 && u.ctrlKey === !0, f = u.button === 2 || m;
1554
- (!o.modal || f) && (i.current = !0);
1555
- }),
1556
- style: {
1557
- ...e.style,
1558
- "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
1559
- "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
1560
- "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
1561
- "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
1562
- "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
1563
- }
1564
- }
1565
- );
1566
- }
1567
- );
1568
- Ir.displayName = Or;
1569
- var Ii = "DropdownMenuGroup", Ai = h.forwardRef(
1570
- (e, t) => {
1571
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1572
- return /* @__PURE__ */ a.jsx(xi, { ...o, ...r, ref: t });
1573
- }
1574
- );
1575
- Ai.displayName = Ii;
1576
- var ki = "DropdownMenuLabel", Ar = h.forwardRef(
1577
- (e, t) => {
1578
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1579
- return /* @__PURE__ */ a.jsx(yi, { ...o, ...r, ref: t });
1580
- }
1581
- );
1582
- Ar.displayName = ki;
1583
- var $i = "DropdownMenuItem", kr = h.forwardRef(
1584
- (e, t) => {
1585
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1586
- return /* @__PURE__ */ a.jsx(bi, { ...o, ...r, ref: t });
1587
- }
1588
- );
1589
- kr.displayName = $i;
1590
- var Fi = "DropdownMenuCheckboxItem", $r = h.forwardRef((e, t) => {
1591
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1592
- return /* @__PURE__ */ a.jsx(Si, { ...o, ...r, ref: t });
1593
- });
1594
- $r.displayName = Fi;
1595
- var Li = "DropdownMenuRadioGroup", Bi = h.forwardRef((e, t) => {
1596
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1597
- return /* @__PURE__ */ a.jsx(Ci, { ...o, ...r, ref: t });
1598
- });
1599
- Bi.displayName = Li;
1600
- var Hi = "DropdownMenuRadioItem", Fr = h.forwardRef((e, t) => {
1601
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1602
- return /* @__PURE__ */ a.jsx(Mi, { ...o, ...r, ref: t });
1603
- });
1604
- Fr.displayName = Hi;
1605
- var Ui = "DropdownMenuItemIndicator", Lr = h.forwardRef((e, t) => {
1606
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1607
- return /* @__PURE__ */ a.jsx(Ri, { ...o, ...r, ref: t });
1608
- });
1609
- Lr.displayName = Ui;
1610
- var zi = "DropdownMenuSeparator", Br = h.forwardRef((e, t) => {
1611
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1612
- return /* @__PURE__ */ a.jsx(Ei, { ...o, ...r, ref: t });
1613
- });
1614
- Br.displayName = zi;
1615
- var Ki = "DropdownMenuArrow", qi = h.forwardRef(
1616
- (e, t) => {
1617
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1618
- return /* @__PURE__ */ a.jsx(Di, { ...o, ...r, ref: t });
1619
- }
1620
- );
1621
- qi.displayName = Ki;
1622
- var Qi = (e) => {
1623
- const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = J(t), [l = !1, u] = Hn({
1624
- prop: r,
1625
- defaultProp: s,
1626
- onChange: o
1627
- });
1628
- return /* @__PURE__ */ a.jsx(Ni, { ...i, open: l, onOpenChange: u, children: n });
1629
- }, Vi = "DropdownMenuSubTrigger", Hr = h.forwardRef((e, t) => {
1630
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1631
- return /* @__PURE__ */ a.jsx(ji, { ...o, ...r, ref: t });
1632
- });
1633
- Hr.displayName = Vi;
1634
- var Gi = "DropdownMenuSubContent", Ur = h.forwardRef((e, t) => {
1635
- const { __scopeDropdownMenu: n, ...r } = e, o = J(n);
1636
- return /* @__PURE__ */ a.jsx(
1637
- Pi,
1638
- {
1639
- ...o,
1640
- ...r,
1641
- ref: t,
1642
- style: {
1643
- ...e.style,
1644
- "--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
1645
- "--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
1646
- "--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
1647
- "--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
1648
- "--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
1649
- }
1650
- }
1651
- );
1652
- });
1653
- Ur.displayName = Gi;
1654
- var Wi = jr, Yi = Tr, zr = _r, Kr = Ir, qr = Ar, Qr = kr, Vr = $r, Gr = Fr, Wr = Lr, Yr = Br, Xi = Qi, Xr = Hr, Jr = Ur;
1655
- const Ji = Wi, Zi = Yi, el = zr, tl = Xi, Zr = h.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1656
- Xr,
1657
- {
1658
- ref: o,
1659
- className: F(
1660
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
1661
- t && "pl-8",
1662
- e
1663
- ),
1664
- ...r,
1665
- children: [
1666
- n,
1667
- /* @__PURE__ */ a.jsx(Xn, { className: "ml-auto h-4 w-4" })
1668
- ]
1669
- }
1670
- ));
1671
- Zr.displayName = Xr.displayName;
1672
- const ea = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1673
- Jr,
1674
- {
1675
- ref: n,
1676
- className: F(
1677
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1678
- e
1679
- ),
1680
- ...t
1681
- }
1682
- ));
1683
- ea.displayName = Jr.displayName;
1684
- const ta = h.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ a.jsx(zr, { children: /* @__PURE__ */ a.jsx(
1685
- Kr,
1686
- {
1687
- ref: r,
1688
- sideOffset: t,
1689
- className: F(
1690
- "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
1691
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
1692
- e
1693
- ),
1694
- ...n
1695
- }
1696
- ) }));
1697
- ta.displayName = Kr.displayName;
1698
- const na = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1699
- Qr,
1700
- {
1701
- ref: r,
1702
- className: F(
1703
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1704
- t && "pl-8",
1705
- e
1706
- ),
1707
- ...n
1708
- }
1709
- ));
1710
- na.displayName = Qr.displayName;
1711
- const nl = h.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ a.jsxs(
1712
- Vr,
1713
- {
1714
- ref: o,
1715
- className: F(
1716
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1717
- e
1718
- ),
1719
- checked: n,
1720
- ...r,
1721
- children: [
1722
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Wr, { children: /* @__PURE__ */ a.jsx(Uo, { className: "h-4 w-4" }) }) }),
1723
- t
1724
- ]
1725
- }
1726
- ));
1727
- nl.displayName = Vr.displayName;
1728
- const rl = h.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ a.jsxs(
1729
- Gr,
1730
- {
1731
- ref: r,
1732
- className: F(
1733
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
1734
- e
1735
- ),
1736
- ...n,
1737
- children: [
1738
- /* @__PURE__ */ a.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ a.jsx(Wr, { children: /* @__PURE__ */ a.jsx(zo, { className: "h-4 w-4 fill-current" }) }) }),
1739
- t
1740
- ]
1741
- }
1742
- ));
1743
- rl.displayName = Gr.displayName;
1744
- const ra = h.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ a.jsx(
1745
- qr,
1746
- {
1747
- ref: r,
1748
- className: F(
1749
- "px-2 py-1.5 text-sm font-semibold",
1750
- t && "pl-8",
1751
- e
1752
- ),
1753
- ...n
1754
- }
1755
- ));
1756
- ra.displayName = qr.displayName;
1757
- const aa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
1758
- Yr,
1759
- {
1760
- ref: n,
1761
- className: F("-mx-1 my-1 h-px bg-muted", e),
1762
- ...t
1763
- }
1764
- ));
1765
- aa.displayName = Yr.displayName;
1766
- const En = {
1767
- info: "bg-blue-500",
1768
- note: "bg-gray-500",
1769
- tip: "bg-green-600",
1770
- caution: "bg-orange-500",
1771
- danger: "bg-rose-500"
1772
- }, al = () => {
1773
- const { page: e } = Ae(), [t, n] = Ie(!0);
1774
- if (!(e != null && e.banner) || !t)
1775
- return /* @__PURE__ */ a.jsx("style", { children: ":root { --banner-height: 0px; }" });
1776
- const r = e.banner.color && e.banner.color in En ? En[e.banner.color] : e.banner.color ? void 0 : "bg-primary", o = r ? {} : { backgroundColor: e.banner.color };
1777
- return /* @__PURE__ */ a.jsxs(
1778
- "div",
1779
- {
1780
- className: F(
1781
- "relative text-primary-foreground text-sm font-medium px-4 py-2 flex gap-2 items-center",
1782
- r
1783
- ),
1784
- style: o,
1785
- children: [
1786
- /* @__PURE__ */ a.jsx("div", { className: "w-full", children: e.banner.message }),
1787
- e.banner.dismissible && /* @__PURE__ */ a.jsx(
1788
- "button",
1789
- {
1790
- type: "button",
1791
- className: "md:absolute md:right-4 -m-1.5 p-1.5 hover:bg-accent-foreground/10 rounded-md",
1792
- onClick: () => n(!1),
1793
- children: /* @__PURE__ */ a.jsx(Ko, { size: 16 })
1794
- }
1795
- )
1796
- ]
1797
- }
1798
- );
1799
- };
1800
- function ol(e) {
1801
- if (typeof document > "u") return;
1802
- let t = document.head || document.getElementsByTagName("head")[0], n = document.createElement("style");
1803
- n.type = "text/css", t.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));
1804
- }
1805
- const oa = p.createContext({
1806
- drawerRef: {
1807
- current: null
1808
- },
1809
- overlayRef: {
1810
- current: null
1811
- },
1812
- onPress: () => {
1813
- },
1814
- onRelease: () => {
1815
- },
1816
- onDrag: () => {
1817
- },
1818
- onNestedDrag: () => {
1819
- },
1820
- onNestedOpenChange: () => {
1821
- },
1822
- onNestedRelease: () => {
1823
- },
1824
- openProp: void 0,
1825
- dismissible: !1,
1826
- isOpen: !1,
1827
- isDragging: !1,
1828
- keyboardIsOpen: {
1829
- current: !1
1830
- },
1831
- snapPointsOffset: null,
1832
- snapPoints: null,
1833
- handleOnly: !1,
1834
- modal: !1,
1835
- shouldFade: !1,
1836
- activeSnapPoint: null,
1837
- onOpenChange: () => {
1838
- },
1839
- setActiveSnapPoint: () => {
1840
- },
1841
- closeDrawer: () => {
1842
- },
1843
- direction: "bottom",
1844
- shouldAnimate: {
1845
- current: !0
1846
- },
1847
- shouldScaleBackground: !1,
1848
- setBackgroundColorOnScale: !0,
1849
- noBodyStyles: !1,
1850
- container: null,
1851
- autoFocus: !1
1852
- }), Qe = () => {
1853
- const e = p.useContext(oa);
1854
- if (!e)
1855
- throw new Error("useDrawerContext must be used within a Drawer.Root");
1856
- return e;
1857
- };
1858
- ol(`[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(
1859
- [data-state=closed]
1860
- ){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)}}`);
1861
- function sl() {
1862
- const e = navigator.userAgent;
1863
- return typeof window < "u" && (/Firefox/.test(e) && /Mobile/.test(e) || // Android Firefox
1864
- /FxiOS/.test(e));
1865
- }
1866
- function il() {
1867
- return Zt(/^Mac/);
1868
- }
1869
- function ll() {
1870
- return Zt(/^iPhone/);
1871
- }
1872
- function Dn() {
1873
- return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
1874
- }
1875
- function cl() {
1876
- return Zt(/^iPad/) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
1877
- il() && navigator.maxTouchPoints > 1;
1878
- }
1879
- function sa() {
1880
- return ll() || cl();
1881
- }
1882
- function Zt(e) {
1883
- return typeof window < "u" && window.navigator != null ? e.test(window.navigator.platform) : void 0;
1884
- }
1885
- const ul = 24, dl = typeof window < "u" ? So : Ce;
1886
- function Nn(...e) {
1887
- return (...t) => {
1888
- for (let n of e)
1889
- typeof n == "function" && n(...t);
1890
- };
1891
- }
1892
- const Et = typeof document < "u" && window.visualViewport;
1893
- function jn(e) {
1894
- let t = window.getComputedStyle(e);
1895
- return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
1896
- }
1897
- function ia(e) {
1898
- for (jn(e) && (e = e.parentElement); e && !jn(e); )
1899
- e = e.parentElement;
1900
- return e || document.scrollingElement || document.documentElement;
1901
- }
1902
- const fl = /* @__PURE__ */ new Set([
1903
- "checkbox",
1904
- "radio",
1905
- "range",
1906
- "color",
1907
- "file",
1908
- "image",
1909
- "button",
1910
- "submit",
1911
- "reset"
1912
- ]);
1913
- let ht = 0, Dt;
1914
- function hl(e = {}) {
1915
- let { isDisabled: t } = e;
1916
- dl(() => {
1917
- if (!t)
1918
- return ht++, ht === 1 && sa() && (Dt = pl()), () => {
1919
- ht--, ht === 0 && (Dt == null || Dt());
1920
- };
1921
- }, [
1922
- t
1923
- ]);
1924
- }
1925
- function pl() {
1926
- let e, t = 0, n = (c) => {
1927
- e = ia(c.target), !(e === document.documentElement && e === document.body) && (t = c.changedTouches[0].pageY);
1928
- }, r = (c) => {
1929
- if (!e || e === document.documentElement || e === document.body) {
1930
- c.preventDefault();
1931
- return;
1932
- }
1933
- let d = c.changedTouches[0].pageY, R = e.scrollTop, g = e.scrollHeight - e.clientHeight;
1934
- g !== 0 && ((R <= 0 && d > t || R >= g && d < t) && c.preventDefault(), t = d);
1935
- }, o = (c) => {
1936
- let d = c.target;
1937
- Ot(d) && d !== document.activeElement && (c.preventDefault(), d.style.transform = "translateY(-2000px)", d.focus(), requestAnimationFrame(() => {
1938
- d.style.transform = "";
1939
- }));
1940
- }, s = (c) => {
1941
- let d = c.target;
1942
- Ot(d) && (d.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
1943
- d.style.transform = "", Et && (Et.height < window.innerHeight ? requestAnimationFrame(() => {
1944
- Pn(d);
1945
- }) : Et.addEventListener("resize", () => Pn(d), {
1946
- once: !0
1947
- }));
1948
- }));
1949
- }, i = () => {
1950
- window.scrollTo(0, 0);
1951
- }, l = window.pageXOffset, u = window.pageYOffset, m = Nn(ml(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`));
1952
- window.scrollTo(0, 0);
1953
- let f = Nn(We(document, "touchstart", n, {
1954
- passive: !1,
1955
- capture: !0
1956
- }), We(document, "touchmove", r, {
1957
- passive: !1,
1958
- capture: !0
1959
- }), We(document, "touchend", o, {
1960
- passive: !1,
1961
- capture: !0
1962
- }), We(document, "focus", s, !0), We(window, "scroll", i));
1963
- return () => {
1964
- m(), f(), window.scrollTo(l, u);
1965
- };
1966
- }
1967
- function ml(e, t, n) {
1968
- let r = e.style[t];
1969
- return e.style[t] = n, () => {
1970
- e.style[t] = r;
1971
- };
1972
- }
1973
- function We(e, t, n, r) {
1974
- return e.addEventListener(t, n, r), () => {
1975
- e.removeEventListener(t, n, r);
1976
- };
1977
- }
1978
- function Pn(e) {
1979
- let t = document.scrollingElement || document.documentElement;
1980
- for (; e && e !== t; ) {
1981
- let n = ia(e);
1982
- if (n !== document.documentElement && n !== document.body && n !== e) {
1983
- let r = n.getBoundingClientRect().top, o = e.getBoundingClientRect().top, s = e.getBoundingClientRect().bottom;
1984
- const i = n.getBoundingClientRect().bottom + ul;
1985
- s > i && (n.scrollTop += o - r);
1986
- }
1987
- e = n.parentElement;
1988
- }
1989
- }
1990
- function Ot(e) {
1991
- return e instanceof HTMLInputElement && !fl.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1992
- }
1993
- function gl(e, t) {
1994
- typeof e == "function" ? e(t) : e != null && (e.current = t);
1995
- }
1996
- function vl(...e) {
1997
- return (t) => e.forEach((n) => gl(n, t));
1998
- }
1999
- function la(...e) {
2000
- return h.useCallback(vl(...e), e);
2001
- }
2002
- const ca = /* @__PURE__ */ new WeakMap();
2003
- function H(e, t, n = !1) {
2004
- if (!e || !(e instanceof HTMLElement)) return;
2005
- let r = {};
2006
- Object.entries(t).forEach(([o, s]) => {
2007
- if (o.startsWith("--")) {
2008
- e.style.setProperty(o, s);
2009
- return;
2010
- }
2011
- r[o] = e.style[o], e.style[o] = s;
2012
- }), !n && ca.set(e, r);
2013
- }
2014
- function wl(e, t) {
2015
- if (!e || !(e instanceof HTMLElement)) return;
2016
- let n = ca.get(e);
2017
- n && (e.style[t] = n[t]);
2018
- }
2019
- const U = (e) => {
2020
- switch (e) {
2021
- case "top":
2022
- case "bottom":
2023
- return !0;
2024
- case "left":
2025
- case "right":
2026
- return !1;
2027
- default:
2028
- return e;
2029
- }
2030
- };
2031
- function pt(e, t) {
2032
- if (!e)
2033
- return null;
2034
- const n = window.getComputedStyle(e), r = (
2035
- // @ts-ignore
2036
- n.transform || n.webkitTransform || n.mozTransform
2037
- );
2038
- let o = r.match(/^matrix3d\((.+)\)$/);
2039
- return o ? parseFloat(o[1].split(", ")[U(t) ? 13 : 12]) : (o = r.match(/^matrix\((.+)\)$/), o ? parseFloat(o[1].split(", ")[U(t) ? 5 : 4]) : null);
2040
- }
2041
- function xl(e) {
2042
- return 8 * (Math.log(e + 1) - 2);
2043
- }
2044
- function Nt(e, t) {
2045
- if (!e) return () => {
2046
- };
2047
- const n = e.style.cssText;
2048
- return Object.assign(e.style, t), () => {
2049
- e.style.cssText = n;
2050
- };
2051
- }
2052
- function yl(...e) {
2053
- return (...t) => {
2054
- for (const n of e)
2055
- typeof n == "function" && n(...t);
2056
- };
2057
- }
2058
- const k = {
2059
- DURATION: 0.5,
2060
- EASE: [
2061
- 0.32,
2062
- 0.72,
2063
- 0,
2064
- 1
2065
- ]
2066
- }, ua = 0.4, bl = 0.25, Sl = 100, da = 8, Oe = 16, It = 26, jt = "vaul-dragging";
2067
- function fa(e) {
2068
- const t = p.useRef(e);
2069
- return p.useEffect(() => {
2070
- t.current = e;
2071
- }), p.useMemo(() => (...n) => t.current == null ? void 0 : t.current.call(t, ...n), []);
2072
- }
2073
- function Cl({ defaultProp: e, onChange: t }) {
2074
- const n = p.useState(e), [r] = n, o = p.useRef(r), s = fa(t);
2075
- return p.useEffect(() => {
2076
- o.current !== r && (s(r), o.current = r);
2077
- }, [
2078
- r,
2079
- o,
2080
- s
2081
- ]), n;
2082
- }
2083
- function ha({ prop: e, defaultProp: t, onChange: n = () => {
2084
- } }) {
2085
- const [r, o] = Cl({
2086
- defaultProp: t,
2087
- onChange: n
2088
- }), s = e !== void 0, i = s ? e : r, l = fa(n), u = p.useCallback((m) => {
2089
- if (s) {
2090
- const c = typeof m == "function" ? m(e) : m;
2091
- c !== e && l(c);
2092
- } else
2093
- o(m);
2094
- }, [
2095
- s,
2096
- e,
2097
- o,
2098
- l
2099
- ]);
2100
- return [
2101
- i,
2102
- u
2103
- ];
2104
- }
2105
- function Ml({ activeSnapPointProp: e, setActiveSnapPointProp: t, snapPoints: n, drawerRef: r, overlayRef: o, fadeFromIndex: s, onSnapPointChange: i, direction: l = "bottom", container: u, snapToSequentialPoint: m }) {
2106
- const [f, c] = ha({
2107
- prop: e,
2108
- defaultProp: n == null ? void 0 : n[0],
2109
- onChange: t
2110
- }), [d, R] = p.useState(typeof window < "u" ? {
2111
- innerWidth: window.innerWidth,
2112
- innerHeight: window.innerHeight
2113
- } : void 0);
2114
- p.useEffect(() => {
2115
- function S() {
2116
- R({
2117
- innerWidth: window.innerWidth,
2118
- innerHeight: window.innerHeight
2119
- });
2120
- }
2121
- return window.addEventListener("resize", S), () => window.removeEventListener("resize", S);
2122
- }, []);
2123
- const g = p.useMemo(() => f === (n == null ? void 0 : n[n.length - 1]) || null, [
2124
- n,
2125
- f
2126
- ]), b = p.useMemo(() => {
2127
- var S;
2128
- return (S = n == null ? void 0 : n.findIndex((j) => j === f)) != null ? S : null;
2129
- }, [
2130
- n,
2131
- f
2132
- ]), _ = n && n.length > 0 && (s || s === 0) && !Number.isNaN(s) && n[s] === f || !n, M = p.useMemo(() => {
2133
- const S = u ? {
2134
- width: u.getBoundingClientRect().width,
2135
- height: u.getBoundingClientRect().height
2136
- } : typeof window < "u" ? {
2137
- width: window.innerWidth,
2138
- height: window.innerHeight
2139
- } : {
2140
- width: 0,
2141
- height: 0
2142
- };
2143
- var j;
2144
- return (j = n == null ? void 0 : n.map((D) => {
2145
- const B = typeof D == "string";
2146
- let K = 0;
2147
- if (B && (K = parseInt(D, 10)), U(l)) {
2148
- const x = B ? K : d ? D * S.height : 0;
2149
- return d ? l === "bottom" ? S.height - x : -S.height + x : x;
2150
- }
2151
- const W = B ? K : d ? D * S.width : 0;
2152
- return d ? l === "right" ? S.width - W : -S.width + W : W;
2153
- })) != null ? j : [];
2154
- }, [
2155
- n,
2156
- d,
2157
- u
2158
- ]), A = p.useMemo(() => b !== null ? M == null ? void 0 : M[b] : null, [
2159
- M,
2160
- b
2161
- ]), N = p.useCallback((S) => {
2162
- var j;
2163
- const D = (j = M == null ? void 0 : M.findIndex((B) => B === S)) != null ? j : null;
2164
- i(D), H(r.current, {
2165
- transition: `transform ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2166
- transform: U(l) ? `translate3d(0, ${S}px, 0)` : `translate3d(${S}px, 0, 0)`
2167
- }), M && D !== M.length - 1 && s !== void 0 && D !== s && D < s ? H(o.current, {
2168
- transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2169
- opacity: "0"
2170
- }) : H(o.current, {
2171
- transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2172
- opacity: "1"
2173
- }), c(n == null ? void 0 : n[Math.max(D, 0)]);
2174
- }, [
2175
- r.current,
2176
- n,
2177
- M,
2178
- s,
2179
- o,
2180
- c
2181
- ]);
2182
- p.useEffect(() => {
2183
- if (f || e) {
2184
- var S;
2185
- const j = (S = n == null ? void 0 : n.findIndex((D) => D === e || D === f)) != null ? S : -1;
2186
- M && j !== -1 && typeof M[j] == "number" && N(M[j]);
2187
- }
2188
- }, [
2189
- f,
2190
- e,
2191
- n,
2192
- M,
2193
- N
2194
- ]);
2195
- function v({ draggedDistance: S, closeDrawer: j, velocity: D, dismissible: B }) {
2196
- if (s === void 0) return;
2197
- const K = l === "bottom" || l === "right" ? (A ?? 0) - S : (A ?? 0) + S, W = b === s - 1, x = b === 0, V = S > 0;
2198
- if (W && H(o.current, {
2199
- transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`
2200
- }), !m && D > 2 && !V) {
2201
- B ? j() : N(M[0]);
2202
- return;
2203
- }
2204
- if (!m && D > 2 && V && M && n) {
2205
- N(M[n.length - 1]);
2206
- return;
2207
- }
2208
- const G = M == null ? void 0 : M.reduce((q, Y) => typeof q != "number" || typeof Y != "number" ? q : Math.abs(Y - K) < Math.abs(q - K) ? Y : q), te = U(l) ? window.innerHeight : window.innerWidth;
2209
- if (D > ua && Math.abs(S) < te * 0.4) {
2210
- const q = V ? 1 : -1;
2211
- if (q > 0 && g && n) {
2212
- N(M[n.length - 1]);
2213
- return;
2214
- }
2215
- if (x && q < 0 && B && j(), b === null) return;
2216
- N(M[b + q]);
2217
- return;
2218
- }
2219
- N(G);
2220
- }
2221
- function z({ draggedDistance: S }) {
2222
- if (A === null) return;
2223
- const j = l === "bottom" || l === "right" ? A - S : A + S;
2224
- (l === "bottom" || l === "right") && j < M[M.length - 1] || (l === "top" || l === "left") && j > M[M.length - 1] || H(r.current, {
2225
- transform: U(l) ? `translate3d(0, ${j}px, 0)` : `translate3d(${j}px, 0, 0)`
2226
- });
2227
- }
2228
- function Z(S, j) {
2229
- if (!n || typeof b != "number" || !M || s === void 0) return null;
2230
- const D = b === s - 1;
2231
- if (b >= s && j)
2232
- return 0;
2233
- if (D && !j) return 1;
2234
- if (!_ && !D) return null;
2235
- const K = D ? b + 1 : b - 1, W = D ? M[K] - M[K - 1] : M[K + 1] - M[K], x = S / Math.abs(W);
2236
- return D ? 1 - x : x;
2237
- }
2238
- return {
2239
- isLastSnapPoint: g,
2240
- activeSnapPoint: f,
2241
- shouldFade: _,
2242
- getPercentageDragged: Z,
2243
- setActiveSnapPoint: c,
2244
- activeSnapPointIndex: b,
2245
- onRelease: v,
2246
- onDrag: z,
2247
- snapPointsOffset: M
2248
- };
2249
- }
2250
- const Rl = () => () => {
2251
- };
2252
- function El() {
2253
- const { direction: e, isOpen: t, shouldScaleBackground: n, setBackgroundColorOnScale: r, noBodyStyles: o } = Qe(), s = p.useRef(null), i = mt(() => document.body.style.backgroundColor, []);
2254
- function l() {
2255
- return (window.innerWidth - It) / window.innerWidth;
2256
- }
2257
- p.useEffect(() => {
2258
- if (t && n) {
2259
- s.current && clearTimeout(s.current);
2260
- const u = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
2261
- if (!u) return;
2262
- yl(r && !o ? Nt(document.body, {
2263
- background: "black"
2264
- }) : Rl, Nt(u, {
2265
- transformOrigin: U(e) ? "top" : "left",
2266
- transitionProperty: "transform, border-radius",
2267
- transitionDuration: `${k.DURATION}s`,
2268
- transitionTimingFunction: `cubic-bezier(${k.EASE.join(",")})`
2269
- }));
2270
- const m = Nt(u, {
2271
- borderRadius: `${da}px`,
2272
- overflow: "hidden",
2273
- ...U(e) ? {
2274
- transform: `scale(${l()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`
2275
- } : {
2276
- transform: `scale(${l()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`
2277
- }
2278
- });
2279
- return () => {
2280
- m(), s.current = window.setTimeout(() => {
2281
- i ? document.body.style.background = i : document.body.style.removeProperty("background");
2282
- }, k.DURATION * 1e3);
2283
- };
2284
- }
2285
- }, [
2286
- t,
2287
- n,
2288
- i
2289
- ]);
2290
- }
2291
- let Ye = null;
2292
- function Dl({ isOpen: e, modal: t, nested: n, hasBeenOpened: r, preventScrollRestoration: o, noBodyStyles: s }) {
2293
- const [i, l] = p.useState(() => typeof window < "u" ? window.location.href : ""), u = p.useRef(0), m = p.useCallback(() => {
2294
- if (Dn() && Ye === null && e && !s) {
2295
- Ye = {
2296
- position: document.body.style.position,
2297
- top: document.body.style.top,
2298
- left: document.body.style.left,
2299
- height: document.body.style.height,
2300
- right: "unset"
2301
- };
2302
- const { scrollX: c, innerHeight: d } = window;
2303
- document.body.style.setProperty("position", "fixed", "important"), Object.assign(document.body.style, {
2304
- top: `${-u.current}px`,
2305
- left: `${-c}px`,
2306
- right: "0px",
2307
- height: "auto"
2308
- }), window.setTimeout(() => window.requestAnimationFrame(() => {
2309
- const R = d - window.innerHeight;
2310
- R && u.current >= d && (document.body.style.top = `${-(u.current + R)}px`);
2311
- }), 300);
2312
- }
2313
- }, [
2314
- e
2315
- ]), f = p.useCallback(() => {
2316
- if (Dn() && Ye !== null && !s) {
2317
- const c = -parseInt(document.body.style.top, 10), d = -parseInt(document.body.style.left, 10);
2318
- Object.assign(document.body.style, Ye), window.requestAnimationFrame(() => {
2319
- if (o && i !== window.location.href) {
2320
- l(window.location.href);
2321
- return;
2322
- }
2323
- window.scrollTo(d, c);
2324
- }), Ye = null;
2325
- }
2326
- }, [
2327
- i
2328
- ]);
2329
- return p.useEffect(() => {
2330
- function c() {
2331
- u.current = window.scrollY;
2332
- }
2333
- return c(), window.addEventListener("scroll", c), () => {
2334
- window.removeEventListener("scroll", c);
2335
- };
2336
- }, []), p.useEffect(() => {
2337
- if (t)
2338
- return () => {
2339
- typeof document > "u" || document.querySelector("[data-vaul-drawer]") || f();
2340
- };
2341
- }, [
2342
- t,
2343
- f
2344
- ]), p.useEffect(() => {
2345
- n || !r || (e ? (!window.matchMedia("(display-mode: standalone)").matches && m(), t || window.setTimeout(() => {
2346
- f();
2347
- }, 500)) : f());
2348
- }, [
2349
- e,
2350
- r,
2351
- i,
2352
- t,
2353
- n,
2354
- m,
2355
- f
2356
- ]), {
2357
- restorePositionSetting: f
2358
- };
2359
- }
2360
- function pa({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: o, snapPoints: s, shouldScaleBackground: i = !1, setBackgroundColorOnScale: l = !0, closeThreshold: u = bl, scrollLockTimeout: m = Sl, dismissible: f = !0, handleOnly: c = !1, fadeFromIndex: d = s && s.length - 1, activeSnapPoint: R, setActiveSnapPoint: g, fixed: b, modal: _ = !0, onClose: M, nested: A, noBodyStyles: N = !1, direction: v = "bottom", defaultOpen: z = !1, disablePreventScroll: Z = !0, snapToSequentialPoint: S = !1, preventScrollRestoration: j = !1, repositionInputs: D = !0, onAnimationEnd: B, container: K, autoFocus: W = !1 }) {
2361
- var x, V;
2362
- const [G = !1, te] = ha({
2363
- defaultProp: z,
2364
- prop: e,
2365
- onChange: (C) => {
2366
- t == null || t(C), !C && !A && _a(), setTimeout(() => {
2367
- B == null || B(C);
2368
- }, k.DURATION * 1e3), C && !_ && typeof window < "u" && window.requestAnimationFrame(() => {
2369
- document.body.style.pointerEvents = "auto";
2370
- }), C || (document.body.style.pointerEvents = "auto");
2371
- }
2372
- }), [q, Y] = p.useState(!1), [y, Q] = p.useState(!1), [ie, de] = p.useState(!1), pe = p.useRef(null), Me = p.useRef(null), $e = p.useRef(null), ye = p.useRef(null), le = p.useRef(null), Re = p.useRef(!1), re = p.useRef(null), Fe = p.useRef(0), Le = p.useRef(!1), rn = p.useRef(!z), an = p.useRef(0), E = p.useRef(null), on = p.useRef(((x = E.current) == null ? void 0 : x.getBoundingClientRect().height) || 0), sn = p.useRef(((V = E.current) == null ? void 0 : V.getBoundingClientRect().width) || 0), Ct = p.useRef(0), Da = p.useCallback((C) => {
2373
- s && C === Ve.length - 1 && (Me.current = /* @__PURE__ */ new Date());
2374
- }, []), { activeSnapPoint: Na, activeSnapPointIndex: Be, setActiveSnapPoint: ln, onRelease: ja, snapPointsOffset: Ve, onDrag: Pa, shouldFade: cn, getPercentageDragged: Ta } = Ml({
2375
- snapPoints: s,
2376
- activeSnapPointProp: R,
2377
- setActiveSnapPointProp: g,
2378
- drawerRef: E,
2379
- fadeFromIndex: d,
2380
- overlayRef: pe,
2381
- onSnapPointChange: Da,
2382
- direction: v,
2383
- container: K,
2384
- snapToSequentialPoint: S
2385
- });
2386
- hl({
2387
- isDisabled: !G || y || !_ || ie || !q || !D || !Z
2388
- });
2389
- const { restorePositionSetting: _a } = Dl({
2390
- isOpen: G,
2391
- modal: _,
2392
- nested: A ?? !1,
2393
- hasBeenOpened: q,
2394
- preventScrollRestoration: j,
2395
- noBodyStyles: N
2396
- });
2397
- function lt() {
2398
- return (window.innerWidth - It) / window.innerWidth;
2399
- }
2400
- function Oa(C) {
2401
- var T, O;
2402
- !f && !s || E.current && !E.current.contains(C.target) || (on.current = ((T = E.current) == null ? void 0 : T.getBoundingClientRect().height) || 0, sn.current = ((O = E.current) == null ? void 0 : O.getBoundingClientRect().width) || 0, Q(!0), $e.current = /* @__PURE__ */ new Date(), sa() && window.addEventListener("touchend", () => Re.current = !1, {
2403
- once: !0
2404
- }), C.target.setPointerCapture(C.pointerId), Fe.current = U(v) ? C.pageY : C.pageX);
2405
- }
2406
- function un(C, T) {
2407
- var O;
2408
- let P = C;
2409
- const L = (O = window.getSelection()) == null ? void 0 : O.toString(), ne = E.current ? pt(E.current, v) : null, ee = /* @__PURE__ */ new Date();
2410
- if (P.tagName === "SELECT" || P.hasAttribute("data-vaul-no-drag") || P.closest("[data-vaul-no-drag]"))
2411
- return !1;
2412
- if (v === "right" || v === "left")
2413
- return !0;
2414
- if (Me.current && ee.getTime() - Me.current.getTime() < 500)
2415
- return !1;
2416
- if (ne !== null && (v === "bottom" ? ne > 0 : ne < 0))
2417
- return !0;
2418
- if (L && L.length > 0)
2419
- return !1;
2420
- if (le.current && ee.getTime() - le.current.getTime() < m && ne === 0 || T)
2421
- return le.current = ee, !1;
2422
- for (; P; ) {
2423
- if (P.scrollHeight > P.clientHeight) {
2424
- if (P.scrollTop !== 0)
2425
- return le.current = /* @__PURE__ */ new Date(), !1;
2426
- if (P.getAttribute("role") === "dialog")
2427
- return !0;
2428
- }
2429
- P = P.parentNode;
2430
- }
2431
- return !0;
2432
- }
2433
- function Ia(C) {
2434
- if (E.current && y) {
2435
- const T = v === "bottom" || v === "right" ? 1 : -1, O = (Fe.current - (U(v) ? C.pageY : C.pageX)) * T, P = O > 0, L = s && !f && !P;
2436
- if (L && Be === 0) return;
2437
- const ne = Math.abs(O), ee = document.querySelector("[data-vaul-drawer-wrapper]"), Ee = v === "bottom" || v === "top" ? on.current : sn.current;
2438
- let fe = ne / Ee;
2439
- const _e = Ta(ne, P);
2440
- if (_e !== null && (fe = _e), L && fe >= 1 || !Re.current && !un(C.target, P)) return;
2441
- if (E.current.classList.add(jt), Re.current = !0, H(E.current, {
2442
- transition: "none"
2443
- }), H(pe.current, {
2444
- transition: "none"
2445
- }), s && Pa({
2446
- draggedDistance: O
2447
- }), P && !s) {
2448
- const me = xl(O), ct = Math.min(me * -1, 0) * T;
2449
- H(E.current, {
2450
- transform: U(v) ? `translate3d(0, ${ct}px, 0)` : `translate3d(${ct}px, 0, 0)`
2451
- });
2452
- return;
2453
- }
2454
- const De = 1 - fe;
2455
- if ((cn || d && Be === d - 1) && (r == null || r(C, fe), H(pe.current, {
2456
- opacity: `${De}`,
2457
- transition: "none"
2458
- }, !0)), ee && pe.current && i) {
2459
- const me = Math.min(lt() + fe * (1 - lt()), 1), ct = 8 - fe * 8, fn = Math.max(0, 14 - fe * 14);
2460
- H(ee, {
2461
- borderRadius: `${ct}px`,
2462
- transform: U(v) ? `scale(${me}) translate3d(0, ${fn}px, 0)` : `scale(${me}) translate3d(${fn}px, 0, 0)`,
2463
- transition: "none"
2464
- }, !0);
2465
- }
2466
- if (!s) {
2467
- const me = ne * T;
2468
- H(E.current, {
2469
- transform: U(v) ? `translate3d(0, ${me}px, 0)` : `translate3d(${me}px, 0, 0)`
2470
- });
2471
- }
2472
- }
2473
- }
2474
- p.useEffect(() => {
2475
- window.requestAnimationFrame(() => {
2476
- rn.current = !0;
2477
- });
2478
- }, []), p.useEffect(() => {
2479
- var C;
2480
- function T() {
2481
- if (!E.current || !D) return;
2482
- const O = document.activeElement;
2483
- if (Ot(O) || Le.current) {
2484
- var P;
2485
- const L = ((P = window.visualViewport) == null ? void 0 : P.height) || 0, ne = window.innerHeight;
2486
- let ee = ne - L;
2487
- const Ee = E.current.getBoundingClientRect().height || 0, fe = Ee > ne * 0.8;
2488
- Ct.current || (Ct.current = Ee);
2489
- const _e = E.current.getBoundingClientRect().top;
2490
- if (Math.abs(an.current - ee) > 60 && (Le.current = !Le.current), s && s.length > 0 && Ve && Be) {
2491
- const De = Ve[Be] || 0;
2492
- ee += De;
2493
- }
2494
- if (an.current = ee, Ee > L || Le.current) {
2495
- const De = E.current.getBoundingClientRect().height;
2496
- let me = De;
2497
- De > L && (me = L - (fe ? _e : It)), b ? E.current.style.height = `${De - Math.max(ee, 0)}px` : E.current.style.height = `${Math.max(me, L - _e)}px`;
2498
- } else sl() || (E.current.style.height = `${Ct.current}px`);
2499
- s && s.length > 0 && !Le.current ? E.current.style.bottom = "0px" : E.current.style.bottom = `${Math.max(ee, 0)}px`;
2500
- }
2501
- }
2502
- return (C = window.visualViewport) == null || C.addEventListener("resize", T), () => {
2503
- var O;
2504
- return (O = window.visualViewport) == null ? void 0 : O.removeEventListener("resize", T);
2505
- };
2506
- }, [
2507
- Be,
2508
- s,
2509
- Ve
2510
- ]);
2511
- function Ge(C) {
2512
- Aa(), M == null || M(), C || te(!1), setTimeout(() => {
2513
- s && ln(s[0]);
2514
- }, k.DURATION * 1e3);
2515
- }
2516
- function dn() {
2517
- if (!E.current) return;
2518
- const C = document.querySelector("[data-vaul-drawer-wrapper]"), T = pt(E.current, v);
2519
- H(E.current, {
2520
- transform: "translate3d(0, 0, 0)",
2521
- transition: `transform ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`
2522
- }), H(pe.current, {
2523
- transition: `opacity ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2524
- opacity: "1"
2525
- }), i && T && T > 0 && G && H(C, {
2526
- borderRadius: `${da}px`,
2527
- overflow: "hidden",
2528
- ...U(v) ? {
2529
- transform: `scale(${lt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,
2530
- transformOrigin: "top"
2531
- } : {
2532
- transform: `scale(${lt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,
2533
- transformOrigin: "left"
2534
- },
2535
- transitionProperty: "transform, border-radius",
2536
- transitionDuration: `${k.DURATION}s`,
2537
- transitionTimingFunction: `cubic-bezier(${k.EASE.join(",")})`
2538
- }, !0);
2539
- }
2540
- function Aa() {
2541
- !y || !E.current || (E.current.classList.remove(jt), Re.current = !1, Q(!1), ye.current = /* @__PURE__ */ new Date());
2542
- }
2543
- function ka(C) {
2544
- if (!y || !E.current) return;
2545
- E.current.classList.remove(jt), Re.current = !1, Q(!1), ye.current = /* @__PURE__ */ new Date();
2546
- const T = pt(E.current, v);
2547
- if (!C || !un(C.target, !1) || !T || Number.isNaN(T) || $e.current === null) return;
2548
- const O = ye.current.getTime() - $e.current.getTime(), P = Fe.current - (U(v) ? C.pageY : C.pageX), L = Math.abs(P) / O;
2549
- if (L > 0.05 && (de(!0), setTimeout(() => {
2550
- de(!1);
2551
- }, 200)), s) {
2552
- ja({
2553
- draggedDistance: P * (v === "bottom" || v === "right" ? 1 : -1),
2554
- closeDrawer: Ge,
2555
- velocity: L,
2556
- dismissible: f
2557
- }), o == null || o(C, !0);
2558
- return;
2559
- }
2560
- if (v === "bottom" || v === "right" ? P > 0 : P < 0) {
2561
- dn(), o == null || o(C, !0);
2562
- return;
2563
- }
2564
- if (L > ua) {
2565
- Ge(), o == null || o(C, !1);
2566
- return;
2567
- }
2568
- var ne;
2569
- const ee = Math.min((ne = E.current.getBoundingClientRect().height) != null ? ne : 0, window.innerHeight);
2570
- var Ee;
2571
- const fe = Math.min((Ee = E.current.getBoundingClientRect().width) != null ? Ee : 0, window.innerWidth), _e = v === "left" || v === "right";
2572
- if (Math.abs(T) >= (_e ? fe : ee) * u) {
2573
- Ge(), o == null || o(C, !1);
2574
- return;
2575
- }
2576
- o == null || o(C, !0), dn();
2577
- }
2578
- p.useEffect(() => (G && (H(document.documentElement, {
2579
- scrollBehavior: "auto"
2580
- }), Me.current = /* @__PURE__ */ new Date()), () => {
2581
- wl(document.documentElement, "scrollBehavior");
2582
- }), [
2583
- G
2584
- ]);
2585
- function $a(C) {
2586
- const T = C ? (window.innerWidth - Oe) / window.innerWidth : 1, O = C ? -Oe : 0;
2587
- re.current && window.clearTimeout(re.current), H(E.current, {
2588
- transition: `transform ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2589
- transform: `scale(${T}) translate3d(0, ${O}px, 0)`
2590
- }), !C && E.current && (re.current = setTimeout(() => {
2591
- const P = pt(E.current, v);
2592
- H(E.current, {
2593
- transition: "none",
2594
- transform: U(v) ? `translate3d(0, ${P}px, 0)` : `translate3d(${P}px, 0, 0)`
2595
- });
2596
- }, 500));
2597
- }
2598
- function Fa(C, T) {
2599
- if (T < 0) return;
2600
- const O = (window.innerWidth - Oe) / window.innerWidth, P = O + T * (1 - O), L = -Oe + T * Oe;
2601
- H(E.current, {
2602
- transform: U(v) ? `scale(${P}) translate3d(0, ${L}px, 0)` : `scale(${P}) translate3d(${L}px, 0, 0)`,
2603
- transition: "none"
2604
- });
2605
- }
2606
- function La(C, T) {
2607
- const O = U(v) ? window.innerHeight : window.innerWidth, P = T ? (O - Oe) / O : 1, L = T ? -Oe : 0;
2608
- T && H(E.current, {
2609
- transition: `transform ${k.DURATION}s cubic-bezier(${k.EASE.join(",")})`,
2610
- transform: U(v) ? `scale(${P}) translate3d(0, ${L}px, 0)` : `scale(${P}) translate3d(${L}px, 0, 0)`
2611
- });
2612
- }
2613
- return p.useEffect(() => {
2614
- _ || window.requestAnimationFrame(() => {
2615
- document.body.style.pointerEvents = "auto";
2616
- });
2617
- }, [
2618
- _
2619
- ]), /* @__PURE__ */ p.createElement(os, {
2620
- defaultOpen: z,
2621
- onOpenChange: (C) => {
2622
- !f && !C || (C ? Y(!0) : Ge(!0), te(C));
2623
- },
2624
- open: G
2625
- }, /* @__PURE__ */ p.createElement(oa.Provider, {
2626
- value: {
2627
- activeSnapPoint: Na,
2628
- snapPoints: s,
2629
- setActiveSnapPoint: ln,
2630
- drawerRef: E,
2631
- overlayRef: pe,
2632
- onOpenChange: t,
2633
- onPress: Oa,
2634
- onRelease: ka,
2635
- onDrag: Ia,
2636
- dismissible: f,
2637
- shouldAnimate: rn,
2638
- handleOnly: c,
2639
- isOpen: G,
2640
- isDragging: y,
2641
- shouldFade: cn,
2642
- closeDrawer: Ge,
2643
- onNestedDrag: Fa,
2644
- onNestedOpenChange: $a,
2645
- onNestedRelease: La,
2646
- keyboardIsOpen: Le,
2647
- modal: _,
2648
- snapPointsOffset: Ve,
2649
- activeSnapPointIndex: Be,
2650
- direction: v,
2651
- shouldScaleBackground: i,
2652
- setBackgroundColorOnScale: l,
2653
- noBodyStyles: N,
2654
- container: K,
2655
- autoFocus: W
2656
- }
2657
- }, n));
2658
- }
2659
- const ma = /* @__PURE__ */ p.forwardRef(function({ ...e }, t) {
2660
- const { overlayRef: n, snapPoints: r, onRelease: o, shouldFade: s, isOpen: i, modal: l, shouldAnimate: u } = Qe(), m = la(t, n), f = r && r.length > 0;
2661
- if (!l)
2662
- return null;
2663
- const c = p.useCallback((d) => o(d), [
2664
- o
2665
- ]);
2666
- return /* @__PURE__ */ p.createElement(Zo, {
2667
- onMouseUp: c,
2668
- ref: m,
2669
- "data-vaul-overlay": "",
2670
- "data-vaul-snap-points": i && f ? "true" : "false",
2671
- "data-vaul-snap-points-overlay": i && s ? "true" : "false",
2672
- "data-vaul-animate": u != null && u.current ? "true" : "false",
2673
- ...e
2674
- });
2675
- });
2676
- ma.displayName = "Drawer.Overlay";
2677
- const ga = /* @__PURE__ */ p.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: n, ...r }, o) {
2678
- const { drawerRef: s, onPress: i, onRelease: l, onDrag: u, keyboardIsOpen: m, snapPointsOffset: f, activeSnapPointIndex: c, modal: d, isOpen: R, direction: g, snapPoints: b, container: _, handleOnly: M, shouldAnimate: A, autoFocus: N } = Qe(), [v, z] = p.useState(!1), Z = la(o, s), S = p.useRef(null), j = p.useRef(null), D = p.useRef(!1), B = b && b.length > 0;
2679
- El();
2680
- const K = (x, V, G = 0) => {
2681
- if (D.current) return !0;
2682
- const te = Math.abs(x.y), q = Math.abs(x.x), Y = q > te, y = [
2683
- "bottom",
2684
- "right"
2685
- ].includes(V) ? 1 : -1;
2686
- if (V === "left" || V === "right") {
2687
- if (!(x.x * y < 0) && q >= 0 && q <= G)
2688
- return Y;
2689
- } else if (!(x.y * y < 0) && te >= 0 && te <= G)
2690
- return !Y;
2691
- return D.current = !0, !0;
2692
- };
2693
- p.useEffect(() => {
2694
- B && window.requestAnimationFrame(() => {
2695
- z(!0);
2696
- });
2697
- }, []);
2698
- function W(x) {
2699
- S.current = null, D.current = !1, l(x);
2700
- }
2701
- return /* @__PURE__ */ p.createElement(es, {
2702
- "data-vaul-drawer-direction": g,
2703
- "data-vaul-drawer": "",
2704
- "data-vaul-delayed-snap-points": v ? "true" : "false",
2705
- "data-vaul-snap-points": R && B ? "true" : "false",
2706
- "data-vaul-custom-container": _ ? "true" : "false",
2707
- "data-vaul-animate": A != null && A.current ? "true" : "false",
2708
- ...r,
2709
- ref: Z,
2710
- style: f && f.length > 0 ? {
2711
- "--snap-point-height": `${f[c ?? 0]}px`,
2712
- ...t
2713
- } : t,
2714
- onPointerDown: (x) => {
2715
- M || (r.onPointerDown == null || r.onPointerDown.call(r, x), S.current = {
2716
- x: x.pageX,
2717
- y: x.pageY
2718
- }, i(x));
2719
- },
2720
- onOpenAutoFocus: (x) => {
2721
- n == null || n(x), N || x.preventDefault();
2722
- },
2723
- onPointerDownOutside: (x) => {
2724
- if (e == null || e(x), !d || x.defaultPrevented) {
2725
- x.preventDefault();
2726
- return;
2727
- }
2728
- m.current && (m.current = !1);
2729
- },
2730
- onFocusOutside: (x) => {
2731
- if (!d) {
2732
- x.preventDefault();
2733
- return;
2734
- }
2735
- },
2736
- onPointerMove: (x) => {
2737
- if (j.current = x, M || (r.onPointerMove == null || r.onPointerMove.call(r, x), !S.current)) return;
2738
- const V = x.pageY - S.current.y, G = x.pageX - S.current.x, te = x.pointerType === "touch" ? 10 : 2;
2739
- K({
2740
- x: G,
2741
- y: V
2742
- }, g, te) ? u(x) : (Math.abs(G) > te || Math.abs(V) > te) && (S.current = null);
2743
- },
2744
- onPointerUp: (x) => {
2745
- r.onPointerUp == null || r.onPointerUp.call(r, x), S.current = null, D.current = !1, l(x);
2746
- },
2747
- onPointerOut: (x) => {
2748
- r.onPointerOut == null || r.onPointerOut.call(r, x), W(j.current);
2749
- },
2750
- onContextMenu: (x) => {
2751
- r.onContextMenu == null || r.onContextMenu.call(r, x), j.current && W(j.current);
2752
- }
2753
- });
2754
- });
2755
- ga.displayName = "Drawer.Content";
2756
- const Nl = 250, jl = 120, va = /* @__PURE__ */ p.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
2757
- const { closeDrawer: o, isDragging: s, snapPoints: i, activeSnapPoint: l, setActiveSnapPoint: u, dismissible: m, handleOnly: f, isOpen: c, onPress: d, onDrag: R } = Qe(), g = p.useRef(null), b = p.useRef(!1);
2758
- function _() {
2759
- if (b.current) {
2760
- N();
2761
- return;
2762
- }
2763
- window.setTimeout(() => {
2764
- M();
2765
- }, jl);
2766
- }
2767
- function M() {
2768
- if (s || e || b.current) {
2769
- N();
2770
- return;
2771
- }
2772
- if (N(), !i || i.length === 0) {
2773
- m || o();
2774
- return;
2775
- }
2776
- if (l === i[i.length - 1] && m) {
2777
- o();
2778
- return;
2779
- }
2780
- const z = i.findIndex((S) => S === l);
2781
- if (z === -1) return;
2782
- const Z = i[z + 1];
2783
- u(Z);
2784
- }
2785
- function A() {
2786
- g.current = window.setTimeout(() => {
2787
- b.current = !0;
2788
- }, Nl);
2789
- }
2790
- function N() {
2791
- g.current && window.clearTimeout(g.current), b.current = !1;
2792
- }
2793
- return /* @__PURE__ */ p.createElement("div", {
2794
- onClick: _,
2795
- onPointerCancel: N,
2796
- onPointerDown: (v) => {
2797
- f && d(v), A();
2798
- },
2799
- onPointerMove: (v) => {
2800
- f && R(v);
2801
- },
2802
- // onPointerUp is already handled by the content component
2803
- ref: r,
2804
- "data-vaul-drawer-visible": c ? "true" : "false",
2805
- "data-vaul-handle": "",
2806
- "aria-hidden": "true",
2807
- ...n
2808
- }, /* @__PURE__ */ p.createElement("span", {
2809
- "data-vaul-handle-hitarea": "",
2810
- "aria-hidden": "true"
2811
- }, t));
2812
- });
2813
- va.displayName = "Drawer.Handle";
2814
- function Pl({ onDrag: e, onOpenChange: t, ...n }) {
2815
- const { onNestedDrag: r, onNestedOpenChange: o, onNestedRelease: s } = Qe();
2816
- if (!r)
2817
- throw new Error("Drawer.NestedRoot must be placed in another drawer");
2818
- return /* @__PURE__ */ p.createElement(pa, {
2819
- nested: !0,
2820
- onClose: () => {
2821
- o(!1);
2822
- },
2823
- onDrag: (i, l) => {
2824
- r(i, l), e == null || e(i, l);
2825
- },
2826
- onOpenChange: (i) => {
2827
- i && o(i);
2828
- },
2829
- onRelease: s,
2830
- ...n
2831
- });
2832
- }
2833
- function Tl(e) {
2834
- const t = Qe(), { container: n = t.container, ...r } = e;
2835
- return /* @__PURE__ */ p.createElement(ss, {
2836
- container: n,
2837
- ...r
2838
- });
2839
- }
2840
- const he = {
2841
- Root: pa,
2842
- NestedRoot: Pl,
2843
- Content: ga,
2844
- Overlay: ma,
2845
- Trigger: ts,
2846
- Portal: Tl,
2847
- Handle: va,
2848
- Close: ns,
2849
- Title: rs,
2850
- Description: as
2851
- }, en = ({
2852
- shouldScaleBackground: e = !0,
2853
- ...t
2854
- }) => /* @__PURE__ */ a.jsx(
2855
- he.Root,
2856
- {
2857
- shouldScaleBackground: e,
2858
- ...t
2859
- }
2860
- );
2861
- en.displayName = "Drawer";
2862
- const wa = he.Trigger, _l = he.Portal, Ol = he.Close, xa = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2863
- he.Overlay,
2864
- {
2865
- ref: n,
2866
- className: F("fixed inset-0 z-50 bg-black/80", e),
2867
- ...t
2868
- }
2869
- ));
2870
- xa.displayName = he.Overlay.displayName;
2871
- const tn = h.forwardRef(
2872
- ({ className: e, children: t, hideBar: n = !0, ...r }, o) => /* @__PURE__ */ a.jsxs(_l, { children: [
2873
- /* @__PURE__ */ a.jsx(xa, {}),
2874
- /* @__PURE__ */ a.jsxs(
2875
- he.Content,
2876
- {
2877
- ref: o,
2878
- className: F(
2879
- "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
2880
- e
2881
- ),
2882
- ...r,
2883
- children: [
2884
- !n && /* @__PURE__ */ a.jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
2885
- t
2886
- ]
2887
- }
2888
- )
2889
- ] })
2890
- );
2891
- tn.displayName = "DrawerContent";
2892
- const nn = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2893
- he.Title,
2894
- {
2895
- ref: n,
2896
- className: F(
2897
- "text-lg font-semibold leading-none tracking-tight",
2898
- e
2899
- ),
2900
- ...t
2901
- }
2902
- ));
2903
- nn.displayName = he.Title.displayName;
2904
- const Il = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
2905
- he.Description,
2906
- {
2907
- ref: n,
2908
- className: F("text-sm text-muted-foreground", e),
2909
- ...t
2910
- }
2911
- ));
2912
- Il.displayName = he.Description.displayName;
2913
- const ya = () => {
2914
- const e = Ae(), [t, n] = Ie(!1), r = Qn(() => n(!1), []);
2915
- Ce(() => {
2916
- if (t)
2917
- return;
2918
- function s(i) {
2919
- i.key === "k" && (i.metaKey || i.ctrlKey) && (i.preventDefault(), n(!0));
2920
- }
2921
- return window.addEventListener("keydown", s), () => {
2922
- window.removeEventListener("keydown", s);
2923
- };
2924
- }, [t, n]);
2925
- const o = e.plugins.find(ks);
2926
- return o ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2927
- /* @__PURE__ */ a.jsxs(
2928
- "button",
2929
- {
2930
- type: "button",
2931
- onClick: () => n(!0),
2932
- className: "flex items-center border border-input hover:bg-accent hover:text-accent-foreground p-4 relative h-8 justify-start rounded-lg bg-background text-sm text-muted-foreground shadow-none w-full sm:w-72",
2933
- children: [
2934
- /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 flex-grow", children: [
2935
- /* @__PURE__ */ a.jsx(qo, { size: 14 }),
2936
- "Search"
2937
- ] }),
2938
- /* @__PURE__ */ a.jsx("kbd", { className: "absolute right-[0.3rem] top-[0.3rem] hidden h-5 select-none items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[11px] font-medium opacity-100 sm:flex", children: "⌘K" })
2939
- ]
2940
- }
2941
- ),
2942
- /* @__PURE__ */ a.jsx(Bt, { fallback: null, children: o.renderSearch({
2943
- isOpen: t,
2944
- onClose: r
2945
- }) })
2946
- ] }) : null;
2947
- }, Al = () => {
2948
- const { topNavigation: e } = Ae();
2949
- return /* @__PURE__ */ a.jsxs(en, { direction: "right", children: [
2950
- /* @__PURE__ */ a.jsx("div", { className: "flex lg:hidden justify-self-end", children: /* @__PURE__ */ a.jsx(wa, { className: "lg:hidden", children: /* @__PURE__ */ a.jsx(Qo, { size: 22 }) }) }),
2951
- /* @__PURE__ */ a.jsxs(
2952
- tn,
2953
- {
2954
- className: "lg:hidden h-screen right-0 left-auto w-[320px] rounded-none overflow-auto",
2955
- "aria-describedby": void 0,
2956
- children: [
2957
- /* @__PURE__ */ a.jsx(Un, { children: /* @__PURE__ */ a.jsx(nn, { children: "Navigation" }) }),
2958
- /* @__PURE__ */ a.jsx("div", { className: "flex p-4", children: /* @__PURE__ */ a.jsx(ya, {}) }),
2959
- /* @__PURE__ */ a.jsx("ul", { className: "flex flex-col items-center gap-4 p-4", children: e.map((t) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
2960
- gt,
2961
- {
2962
- className: ({ isActive: n }) => zn(
2963
- "block font-medium border-b-2",
2964
- n ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2965
- ),
2966
- to: t.id,
2967
- children: /* @__PURE__ */ a.jsx(Ol, { children: t.label })
2968
- }
2969
- ) }, t.label)) })
2970
- ]
2971
- }
2972
- )
2973
- ] });
2974
- }, kl = () => {
2975
- const { topNavigation: e } = Ae();
2976
- return e.length <= 1 ? /* @__PURE__ */ a.jsx("style", { children: ":root { --top-nav-height: 0px; }" }) : /* @__PURE__ */ a.jsx(Bt, { children: /* @__PURE__ */ a.jsx("nav", { className: "hidden lg:block border-b text-sm px-12 h-[--top-nav-height]", children: /* @__PURE__ */ a.jsx("ul", { className: "flex flex-row items-center gap-8", children: e.map((t) => /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx($l, { ...t }) }, t.id)) }) }) });
2977
- }, $l = ({ id: e, label: t, default: n }) => {
2978
- var u;
2979
- const { sidebars: r } = Ae(), o = Yn(), s = r[e], i = n ?? (s ? $o(s, (m) => {
2980
- if (m.type === "doc") return Ze(m.id);
2981
- }) : Ze(e));
2982
- if (!i)
2983
- throw new Error(
2984
- `No links found in top navigation for top navigation '${e}'. Check that the sidebar isn't empty or that a default link set.`
2985
- );
2986
- const l = ((u = o.data.topNavItem) == null ? void 0 : u.id) === e;
2987
- return /* @__PURE__ */ a.jsx(
2988
- yt,
2989
- {
2990
- className: zn(
2991
- "block py-3.5 font-medium -mb-px border-b-2",
2992
- l ? "border-primary text-foreground" : "border-transparent text-foreground/75 hover:text-foreground hover:border-accent-foreground/25"
2993
- ),
2994
- to: i,
2995
- children: t
2996
- }
2997
- );
2998
- }, ba = ({ item: e }) => e.children ? /* @__PURE__ */ a.jsxs(tl, { children: [
2999
- /* @__PURE__ */ a.jsx(Zr, { children: e.label }),
3000
- /* @__PURE__ */ a.jsx(el, { children: /* @__PURE__ */ a.jsx(ea, { children: e.children.map((t, n) => (
3001
- // eslint-disable-next-line react/no-array-index-key
3002
- /* @__PURE__ */ a.jsx(ba, { item: t }, n)
3003
- )) }) })
3004
- ] }, e.label) : /* @__PURE__ */ a.jsx(yt, { to: e.path ?? "", children: /* @__PURE__ */ a.jsx(na, { children: e.label }, e.label) }), Sa = Vn(function() {
3005
- const t = mn(), [n, r] = po(), { isAuthenticated: o, profile: s, isAuthEnabled: i } = mn(), l = Ae(), { page: u, plugins: m } = l, f = m.filter((d) => Is(d)).flatMap((d) => d.getProfileMenuItems(l)).map((d) => /* @__PURE__ */ a.jsx(ba, { item: d }, d.label)), c = n ? Vo : Go;
3006
- return /* @__PURE__ */ a.jsxs("header", { className: "sticky lg:top-0 z-10 bg-background/80 backdrop-blur w-full", children: [
3007
- /* @__PURE__ */ a.jsx(al, {}),
3008
- /* @__PURE__ */ a.jsxs("div", { className: "max-w-screen-2xl mx-auto", children: [
3009
- /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-2 lg:grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-10 lg:px-12 h-[--top-header-height]", children: [
3010
- /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(yt, { to: "/", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3.5", children: [
3011
- (u == null ? void 0 : u.logo) && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3012
- /* @__PURE__ */ a.jsx(
3013
- "img",
3014
- {
3015
- src: /https?:\/\//.test(u.logo.src.light) ? u.logo.src.light : "/" + u.logo.src.light,
3016
- alt: u.logo.alt ?? u.pageTitle,
3017
- style: { width: u.logo.width },
3018
- className: F("h-10", n && "hidden"),
3019
- loading: "lazy"
3020
- }
3021
- ),
3022
- /* @__PURE__ */ a.jsx(
3023
- "img",
3024
- {
3025
- src: /https?:\/\//.test(u.logo.src.dark) ? u.logo.src.dark : "/" + u.logo.src.dark,
3026
- alt: u.logo.alt ?? u.pageTitle,
3027
- style: { width: u.logo.width },
3028
- className: F("h-10", !n && "hidden"),
3029
- loading: "lazy"
3030
- }
3031
- )
3032
- ] }),
3033
- /* @__PURE__ */ a.jsx("span", { className: "font-bold text-2xl text-foreground/85 tracking-wide", children: u == null ? void 0 : u.pageTitle })
3034
- ] }) }) }),
3035
- /* @__PURE__ */ a.jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-[--sidecar-grid-cols] items-center gap-8", children: [
3036
- /* @__PURE__ */ a.jsx("div", { className: "w-full justify-center hidden lg:flex", children: /* @__PURE__ */ a.jsx(ya, {}) }),
3037
- /* @__PURE__ */ a.jsx(Al, {}),
3038
- /* @__PURE__ */ a.jsxs("div", { className: "hidden lg:flex items-center justify-self-end text-sm gap-2", children: [
3039
- /* @__PURE__ */ a.jsx(xe, { name: "head-navigation-start" }),
3040
- i && !o ? /* @__PURE__ */ a.jsx(Pt, { variant: "ghost", onClick: () => t.login(), children: "Login" }) : f.length > 0 && /* @__PURE__ */ a.jsxs(Ji, { modal: !1, children: [
3041
- /* @__PURE__ */ a.jsx(Zi, { asChild: !0, children: /* @__PURE__ */ a.jsx(Pt, { variant: "ghost", children: s != null && s.email ? `${s.email}` : "My Account" }) }),
3042
- /* @__PURE__ */ a.jsxs(ta, { className: "w-56", children: [
3043
- /* @__PURE__ */ a.jsx(ra, { children: "My Account" }),
3044
- /* @__PURE__ */ a.jsx(aa, {}),
3045
- f
3046
- ] })
3047
- ] }),
3048
- /* @__PURE__ */ a.jsx(
3049
- "button",
3050
- {
3051
- type: "button",
3052
- "aria-label": n ? "Switch to light mode" : "Switch to dark mode",
3053
- className: "cursor-pointer hover:bg-secondary p-2.5 -m-2.5 rounded-full",
3054
- onClick: r,
3055
- children: /* @__PURE__ */ a.jsx(c, { size: 18 })
3056
- }
3057
- ),
3058
- /* @__PURE__ */ a.jsx(xe, { name: "head-navigation-end" })
3059
- ] })
3060
- ] })
3061
- ] }),
3062
- /* @__PURE__ */ a.jsx(xe, { name: "top-navigation-before" }),
3063
- /* @__PURE__ */ a.jsx(kl, {}),
3064
- /* @__PURE__ */ a.jsx(xe, { name: "top-navigation-after" })
3065
- ] })
3066
- ] });
3067
- }), Ca = {
3068
- Header: Sa
3069
- }, Fl = qn(Ca), Ll = Fl.Provider, Bl = (e) => {
3070
- const [t, n] = Ie(!1);
3071
- Ce(() => {
3072
- const s = localStorage.getItem("theme"), i = window.matchMedia("(prefers-color-scheme: dark)"), l = s === "dark" || !s && i.matches;
3073
- n(l);
3074
- }, [t]);
3075
- const r = Qn(() => {
3076
- const s = !t;
3077
- document.documentElement.classList.toggle("dark", s), localStorage.setItem("theme", s ? "dark" : "light"), n(s);
3078
- }, [t]), o = [t, r];
3079
- return /* @__PURE__ */ a.jsx(mo.Provider, { value: o, ...e });
3080
- }, Hl = ({
3081
- children: e,
3082
- context: t
3083
- }) => (Fo({
3084
- queryFn: async () => (await t.initialize(), !0),
3085
- queryKey: ["zudoku-initialize"]
3086
- }), /* @__PURE__ */ a.jsx(Lo.Provider, { value: t, children: e })), Ul = ({
3087
- children: e,
3088
- ...t
3089
- }) => {
3090
- var c, d;
3091
- const n = mt(
3092
- () => ({ ...Ca, ...t.overrides }),
3093
- [t.overrides]
3094
- ), r = mt(() => {
3095
- var g;
3096
- return {
3097
- ...(t.plugins ?? []).filter(Ls).flatMap(
3098
- (b) => b.getMdxComponents ? [b.getMdxComponents()] : []
3099
- ).reduce((b, _) => ({ ...b, ..._ }), {}),
3100
- ...go,
3101
- ...(g = t.mdx) == null ? void 0 : g.components
3102
- };
3103
- }, [(c = t.mdx) == null ? void 0 : c.components, t.plugins]), { stagger: o } = Co(Tt), [s, i] = Ie(!1), l = mt(
3104
- () => s ? { stagger: !0 } : { stagger: o },
3105
- [o, s]
3106
- ), u = Ga();
3107
- Ce(() => {
3108
- s || i(!0);
3109
- }, [s, u.location]);
3110
- const [m] = Ie(() => new Hs(t)), f = (d = t.plugins) == null ? void 0 : d.filter(Fs).map((R, g) => {
3111
- var b;
3112
- return /* @__PURE__ */ a.jsx(Mo, { children: (b = R.getHead) == null ? void 0 : b.call(R) }, g);
3113
- });
3114
- return /* @__PURE__ */ a.jsxs(Bo, { client: nr, children: [
3115
- /* @__PURE__ */ a.jsx(kt, { children: f }),
3116
- /* @__PURE__ */ a.jsx(Tt.Provider, { value: l, children: /* @__PURE__ */ a.jsx(Hl, { context: m, children: /* @__PURE__ */ a.jsx(Ua, { components: r, children: /* @__PURE__ */ a.jsx(Bl, { children: /* @__PURE__ */ a.jsx(Ll, { value: n, children: /* @__PURE__ */ a.jsx(Xa, { slotlets: t.slotlets, children: /* @__PURE__ */ a.jsx(vo, { children: e ?? /* @__PURE__ */ a.jsx(An, {}) }) }) }) }) }) }) })
3117
- ] });
3118
- }, zl = Vn(Ul), Ma = (e) => /* @__PURE__ */ a.jsx(_s, { FallbackComponent: Us, children: /* @__PURE__ */ a.jsx(zl, { ...e }) });
3119
- Ma.displayName = "DevPortal";
3120
- const Kl = ({
3121
- category: e,
3122
- level: t
3123
- }) => {
3124
- var d, R;
3125
- const n = Ho(e), [r, o] = Ie(!1), s = e.collapsible ?? !0, i = e.collapsed ?? !0, l = !!(!s || !i || n), [u, m] = Ie(l), f = Wa(((d = e.link) == null ? void 0 : d.id) ?? "");
3126
- Ce(() => {
3127
- n && m(!0);
3128
- }, [n]);
3129
- const c = s && /* @__PURE__ */ a.jsx(
3130
- "button",
3131
- {
3132
- type: "button",
3133
- onClick: (g) => {
3134
- g.preventDefault(), m((b) => !b), o(!0);
3135
- },
3136
- children: /* @__PURE__ */ a.jsx(
3137
- Xn,
3138
- {
3139
- size: 16,
3140
- className: F(
3141
- r && "transition",
3142
- "shrink-0 group-data-[state=open]:rotate-90"
3143
- )
3144
- }
3145
- )
3146
- }
3147
- );
3148
- return /* @__PURE__ */ a.jsxs(
3149
- Do,
3150
- {
3151
- className: "flex flex-col",
3152
- defaultOpen: l,
3153
- open: u,
3154
- onOpenChange: () => m(!0),
3155
- children: [
3156
- /* @__PURE__ */ a.jsx(No, { className: "group", asChild: !0, disabled: !s, children: /* @__PURE__ */ a.jsxs(
3157
- "div",
3158
- {
3159
- onClick: () => o(!0),
3160
- className: Je({
3161
- isActive: !1,
3162
- isTopLevel: t === 0,
3163
- className: [
3164
- "text-start",
3165
- s ? "cursor-pointer" : "cursor-default hover:bg-transparent"
3166
- ]
3167
- }),
3168
- children: [
3169
- e.icon && /* @__PURE__ */ a.jsx(
3170
- e.icon,
3171
- {
3172
- size: 16,
3173
- className: F(
3174
- "align-[-0.125em] -translate-x-1",
3175
- f && "text-primary"
3176
- )
3177
- }
3178
- ),
3179
- ((R = e.link) == null ? void 0 : R.type) === "doc" ? /* @__PURE__ */ a.jsx(
3180
- gt,
3181
- {
3182
- to: Ze(e.link.id),
3183
- className: "flex-1",
3184
- onClick: () => {
3185
- f && !u && m(!0);
3186
- },
3187
- children: /* @__PURE__ */ a.jsxs(
3188
- "div",
3189
- {
3190
- className: F(
3191
- "flex items-center gap-2 justify-between w-full",
3192
- f ? "text-primary" : "text-foreground/80"
3193
- ),
3194
- children: [
3195
- /* @__PURE__ */ a.jsx("div", { className: "truncate", children: e.label }),
3196
- c
3197
- ]
3198
- }
3199
- )
3200
- }
3201
- ) : /* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between w-full", children: [
3202
- /* @__PURE__ */ a.jsx("div", { className: "flex gap-2 truncate w-full", children: e.label }),
3203
- c
3204
- ] })
3205
- ]
3206
- }
3207
- ) }),
3208
- /* @__PURE__ */ a.jsx(
3209
- jo,
3210
- {
3211
- className: F(
3212
- // CollapsibleContent class is used to animate and it should only be applied when the user has triggered the toggle
3213
- r && "CollapsibleContent"
3214
- ),
3215
- children: /* @__PURE__ */ a.jsx("ul", { className: "mt-1 border-l ms-0.5", children: e.items.map((g) => /* @__PURE__ */ a.jsx(
3216
- At,
3217
- {
3218
- level: t + 1,
3219
- item: g
3220
- },
3221
- ("id" in g ? g.id : "") + ("href" in g ? g.href : "") + g.label
3222
- )) })
3223
- }
3224
- )
3225
- ]
3226
- }
3227
- );
3228
- }, Je = wo(
3229
- "flex items-center gap-2 px-[--padding-nav-item] py-1.5 rounded-lg hover:bg-accent transition-colors duration-300",
3230
- {
3231
- variants: {
3232
- isTopLevel: {
3233
- true: "font-medium -mx-[--padding-nav-item]",
3234
- false: "-mr-[--padding-nav-item] ml-[--padding-nav-item]"
3235
- },
3236
- isActive: {
3237
- true: "text-primary font-medium",
3238
- false: "text-foreground/80"
3239
- },
3240
- isMuted: {
3241
- true: "text-foreground/30",
3242
- false: ""
3243
- }
3244
- },
3245
- defaultVariants: {
3246
- isActive: !1
3247
- }
3248
- }
3249
- ), Ra = "data-anchor", At = ({
3250
- item: e,
3251
- level: t = 0
3252
- }) => {
3253
- var o, s;
3254
- const { activeAnchor: n } = Lt(), [r] = Ya();
3255
- switch (e.type) {
3256
- case "category":
3257
- return /* @__PURE__ */ a.jsx(Kl, { category: e, level: t });
3258
- case "doc":
3259
- return /* @__PURE__ */ a.jsxs(
3260
- gt,
3261
- {
3262
- className: ({ isActive: i }) => Je({ isActive: i, isTopLevel: t === 0 }),
3263
- to: Ze(e.id),
3264
- children: [
3265
- e.icon && /* @__PURE__ */ a.jsx(e.icon, { size: 16, className: "align-[-0.125em]" }),
3266
- e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3267
- /* @__PURE__ */ a.jsx("span", { className: "truncate flex-1", title: e.label, children: e.label }),
3268
- /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3269
- ] }) : e.label
3270
- ]
3271
- }
3272
- );
3273
- case "link":
3274
- return e.href.startsWith("#") ? /* @__PURE__ */ a.jsx(
3275
- za,
3276
- {
3277
- to: { hash: e.href, search: r.toString() },
3278
- [Ra]: e.href.slice(1),
3279
- className: Je({
3280
- isActive: e.href.slice(1) === n,
3281
- isTopLevel: t === 0,
3282
- className: ((o = e.badge) == null ? void 0 : o.placement) !== "start" && "justify-between"
3283
- }),
3284
- children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3285
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3286
- /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3287
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
3288
- }
3289
- ) : e.href.startsWith("http") ? /* @__PURE__ */ a.jsxs(
3290
- "a",
3291
- {
3292
- className: Je({ isTopLevel: t === 0 }),
3293
- href: e.href,
3294
- target: "_blank",
3295
- rel: "noopener noreferrer",
3296
- children: [
3297
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-normal", children: e.label }),
3298
- /* @__PURE__ */ a.jsx("span", { className: "whitespace-nowrap", children: /* @__PURE__ */ a.jsx(Wo, { className: "inline -translate-y-0.5", size: 12 }) })
3299
- ]
3300
- }
3301
- ) : /* @__PURE__ */ a.jsx(
3302
- gt,
3303
- {
3304
- className: Je({
3305
- className: ((s = e.badge) == null ? void 0 : s.placement) !== "start" && "justify-between"
3306
- }),
3307
- to: e.href,
3308
- children: e.badge ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3309
- /* @__PURE__ */ a.jsx("span", { className: "truncate", title: e.label, children: e.label }),
3310
- /* @__PURE__ */ a.jsx(Mt, { ...e.badge })
3311
- ] }) : /* @__PURE__ */ a.jsx("span", { className: "break-all", children: e.label })
3312
- }
3313
- );
3314
- }
3315
- }, ql = (e, t = { block: "center" }) => {
3316
- if (!e) return;
3317
- const n = e.getBoundingClientRect();
3318
- n.top >= 0 && n.left >= 0 && n.bottom <= (window.innerHeight || document.documentElement.clientHeight) && n.right <= (window.innerWidth || document.documentElement.clientWidth) || e.scrollIntoView(t);
3319
- }, Ql = () => {
3320
- const e = $t(), { setActiveAnchor: t } = Lt();
3321
- Ce(() => {
3322
- if (!e.hash) return;
3323
- const n = decodeURIComponent(e.hash.split("/")[0].slice(1)), r = () => {
3324
- const o = document.getElementById(n), s = document.querySelector(`[${Ra}="${n}"]`);
3325
- return o ? (o.scrollIntoView(), ql(s), requestIdleCallback(() => t(n)), !0) : !1;
3326
- };
3327
- if (!r()) {
3328
- const o = new MutationObserver((s, i) => {
3329
- r() && i.disconnect();
3330
- });
3331
- return o.observe(document.body, { childList: !0, subtree: !0 }), () => o.disconnect();
3332
- }
3333
- }, [e.hash, t]);
3334
- }, Vl = () => {
3335
- const e = $t(), t = Ht(e.pathname);
3336
- Ce(() => {
3337
- t.current !== e.pathname && (window.scrollTo(0, 0), t.current = e.pathname);
3338
- }, [e.pathname]);
3339
- }, Ea = Ro(({ children: e, className: t, pushMainContent: n }, r) => /* @__PURE__ */ a.jsx(
3340
- "nav",
3341
- {
3342
- "data-navigation": String(n),
3343
- className: F(
3344
- "scrollbar peer hidden lg:flex flex-col fixed text-sm overflow-y-auto shrink-0",
3345
- "px-[--padding-nav-item] -mx-[--padding-nav-item] pb-20 mt-[--padding-content-top]",
3346
- "w-[--side-nav-width] h-[calc(100%-var(--header-height))] scroll-pt-2 gap-2",
3347
- t
3348
- ),
3349
- ref: r,
3350
- children: e
3351
- }
3352
- ));
3353
- Ea.displayName = "SidebarWrapper";
3354
- const Gl = () => {
3355
- const e = Ht(null), t = Yn();
3356
- return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3357
- /* @__PURE__ */ a.jsxs(
3358
- Ea,
3359
- {
3360
- ref: e,
3361
- pushMainContent: t.data.sidebar.length > 0,
3362
- children: [
3363
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-before-navigation" }),
3364
- t.data.sidebar.map((n) => /* @__PURE__ */ a.jsx(At, { item: n }, n.label)),
3365
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-after-navigation" })
3366
- ]
3367
- }
3368
- ),
3369
- /* @__PURE__ */ a.jsxs(
3370
- tn,
3371
- {
3372
- className: "lg:hidden h-screen left-0 p-6 w-[320px] rounded-none overflow-auto",
3373
- "aria-describedby": void 0,
3374
- children: [
3375
- /* @__PURE__ */ a.jsx(Un, { children: /* @__PURE__ */ a.jsx(nn, { children: "Sidebar" }) }),
3376
- t.data.sidebar.map((n) => /* @__PURE__ */ a.jsx(At, { item: n }, n.label))
3377
- ]
3378
- }
3379
- )
3380
- ] });
3381
- }, Wl = ({ children: e }) => {
3382
- const t = $t(), { setActiveAnchor: n } = Lt(), { meta: r, authentication: o } = Ae();
3383
- Ql(), Vl();
3384
- const s = Ht(t.pathname);
3385
- return Ce(() => {
3386
- var i;
3387
- (i = o == null ? void 0 : o.pageLoad) == null || i.call(o);
3388
- }, [o]), Ce(() => {
3389
- t.pathname !== s.current && n(""), s.current = t.pathname;
3390
- }, [t.pathname, n]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3391
- !1,
3392
- /* @__PURE__ */ a.jsxs(kt, { titleTemplate: r == null ? void 0 : r.title, children: [
3393
- (r == null ? void 0 : r.description) && /* @__PURE__ */ a.jsx("meta", { name: "description", content: r.description }),
3394
- (r == null ? void 0 : r.favicon) && /* @__PURE__ */ a.jsx("link", { rel: "icon", href: r.favicon })
3395
- ] }),
3396
- /* @__PURE__ */ a.jsx(xe, { name: "layout-before-head" }),
3397
- /* @__PURE__ */ a.jsx(Sa, {}),
3398
- /* @__PURE__ */ a.jsx(xe, { name: "layout-after-head" }),
3399
- /* @__PURE__ */ a.jsx("div", { className: "w-full max-w-screen-2xl mx-auto px-10 lg:px-12", children: /* @__PURE__ */ a.jsx(
3400
- Bt,
3401
- {
3402
- fallback: /* @__PURE__ */ a.jsx("main", { className: "grid h-[calc(100vh-var(--header-height))] place-items-center", children: /* @__PURE__ */ a.jsx(is, {}) }),
3403
- children: /* @__PURE__ */ a.jsxs(en, { direction: "left", children: [
3404
- /* @__PURE__ */ a.jsx(Gl, {}),
3405
- /* @__PURE__ */ a.jsx(
3406
- "div",
3407
- {
3408
- className: F(
3409
- "lg:hidden -mx-10 px-10 py-2 sticky bg-background/80 backdrop-blur z-10 top-0 left-0 right-0 border-b",
3410
- "peer-data-[navigation=false]:hidden"
3411
- ),
3412
- children: /* @__PURE__ */ a.jsxs(wa, { className: "flex items-center gap-2", children: [
3413
- /* @__PURE__ */ a.jsx(Yo, { size: 16, strokeWidth: 1.5 }),
3414
- /* @__PURE__ */ a.jsx("span", { className: "text-sm", children: "Menu" })
3415
- ] })
3416
- }
3417
- ),
3418
- /* @__PURE__ */ a.jsxs(
3419
- "main",
3420
- {
3421
- className: F(
3422
- "h-full dark:border-white/10 translate-x-0",
3423
- "lg:overflow-visible",
3424
- // This works in tandem with the `SidebarWrapper` component
3425
- "lg:peer-data-[navigation=true]:w-[calc(100%-var(--side-nav-width))]",
3426
- "lg:peer-data-[navigation=true]:translate-x-[--side-nav-width] lg:peer-data-[navigation=true]:pl-12"
3427
- ),
3428
- children: [
3429
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-before-content" }),
3430
- e ?? /* @__PURE__ */ a.jsx(An, {}),
3431
- /* @__PURE__ */ a.jsx(xe, { name: "zudoku-after-content" })
3432
- ]
3433
- }
3434
- )
3435
- ] })
3436
- }
3437
- ) })
3438
- ] });
3439
- }, fc = Ka, hc = xo, pc = Ma, mc = Wl, gc = yt, vc = Ja, wc = ls, xc = Rs, yc = Es, bc = Pt, Sc = kt;
1
+ import "./RouteGuard-DRtEu9nh.js";
2
+ import "./index-DwT-v3zK.js";
3
+ import "./chunk-BAXFHI7N-BVBOl9s0.js";
4
+ import "./hook-CldJlP5c.js";
5
+ import "./SlotletProvider-CS_nO-XT.js";
6
+ import { e as d, f as k, n as l, B as S, C as h, j as B, l as c, H as E, d as H, L, M, g as R, R as Z, S as f, k as g, i as y, Z as A, a as b, h as j, c as v, m as w, b as x } from "./index-DnQftvP4.js";
7
+ import "./ui/Button.js";
8
+ import "./ui/Callout.js";
9
+ import "./ClientOnly-E7hGysn1.js";
10
+ import "./Markdown-mFpg_n9p.js";
11
+ import "./Spinner-mNLZ6awP.js";
3440
12
  export {
3441
- xc as Bootstrap,
3442
- yc as BootstrapStatic,
3443
- bc as Button,
3444
- hc as Callout,
3445
- pc as DevPortal,
3446
- Sc as Head,
3447
- mc as Layout,
3448
- gc as Link,
3449
- vc as RouterError,
3450
- wc as ServerError,
3451
- fc as useMDXComponents
13
+ d as Bootstrap,
14
+ k as BootstrapStatic,
15
+ l as BuildCheck,
16
+ S as Button,
17
+ h as CACHE_KEYS,
18
+ B as Callout,
19
+ c as ClientOnly,
20
+ E as Head,
21
+ H as Layout,
22
+ L as Link,
23
+ M as Markdown,
24
+ R as RouteGuard,
25
+ Z as RouterError,
26
+ f as ServerError,
27
+ g as Spinner,
28
+ y as StatusPage,
29
+ A as Zudoku,
30
+ b as useAuth,
31
+ j as useCache,
32
+ v as useMDXComponents,
33
+ w as useTheme,
34
+ x as useZudoku
3452
35
  };
3453
36
  //# sourceMappingURL=zudoku.components.js.map