zudoku 0.41.5 → 0.42.0

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 (529) hide show
  1. package/dist/app/main.js +6 -0
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/config/validators/common.d.ts +420 -288
  4. package/dist/config/validators/common.js +10 -0
  5. package/dist/config/validators/common.js.map +1 -1
  6. package/dist/config/validators/validate.d.ts +161 -108
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.js +1 -0
  9. package/dist/index.js.map +1 -1
  10. package/dist/lib/components/BuildCheck.js +3 -2
  11. package/dist/lib/components/BuildCheck.js.map +1 -1
  12. package/dist/lib/components/Markdown.d.ts +3 -1
  13. package/dist/lib/components/Markdown.js +8 -14
  14. package/dist/lib/components/Markdown.js.map +1 -1
  15. package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
  16. package/dist/lib/components/index.d.ts +2 -1
  17. package/dist/lib/core/ZudokuContext.d.ts +7 -0
  18. package/dist/lib/core/ZudokuContext.js.map +1 -1
  19. package/dist/lib/errors/ErrorAlert.js +1 -1
  20. package/dist/lib/errors/ErrorAlert.js.map +1 -1
  21. package/dist/lib/plugins/openapi/CollapsibleCode.js +1 -1
  22. package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
  23. package/dist/lib/plugins/openapi/Sidecar.js +1 -1
  24. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  25. package/dist/lib/plugins/openapi/SidecarExamples.js +1 -1
  26. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  27. package/dist/lib/shiki.d.ts +35 -0
  28. package/dist/lib/shiki.js +103 -0
  29. package/dist/lib/shiki.js.map +1 -0
  30. package/dist/lib/ui/Callout.js +1 -1
  31. package/dist/lib/ui/Callout.js.map +1 -1
  32. package/dist/lib/ui/CodeBlock.d.ts +16 -0
  33. package/dist/lib/ui/CodeBlock.js +18 -0
  34. package/dist/lib/ui/CodeBlock.js.map +1 -0
  35. package/dist/lib/ui/SyntaxHighlight.d.ts +10 -15
  36. package/dist/lib/ui/SyntaxHighlight.js +10 -60
  37. package/dist/lib/ui/SyntaxHighlight.js.map +1 -1
  38. package/dist/lib/util/MdxComponents.d.ts +9 -3
  39. package/dist/lib/util/MdxComponents.js +9 -10
  40. package/dist/lib/util/MdxComponents.js.map +1 -1
  41. package/dist/vite/config.js +34 -0
  42. package/dist/vite/config.js.map +1 -1
  43. package/dist/vite/plugin-mdx.js +4 -11
  44. package/dist/vite/plugin-mdx.js.map +1 -1
  45. package/dist/vite/plugin-shiki-register.d.ts +3 -0
  46. package/dist/vite/plugin-shiki-register.js +38 -0
  47. package/dist/vite/plugin-shiki-register.js.map +1 -0
  48. package/dist/vite/plugin.js +2 -0
  49. package/dist/vite/plugin.js.map +1 -1
  50. package/lib/AuthenticationPlugin-EeQpQI3D.js +55 -0
  51. package/lib/{AuthenticationPlugin-DPCuR3xm.js.map → AuthenticationPlugin-EeQpQI3D.js.map} +1 -1
  52. package/lib/{Button-BBNrKpQd.js → Button-Bdk_Ij3U.js} +3 -3
  53. package/lib/{Button-BBNrKpQd.js.map → Button-Bdk_Ij3U.js.map} +1 -1
  54. package/lib/{Callout-D3Ja4OPX.js → Callout-XadUe37J.js} +12 -12
  55. package/lib/{Callout-D3Ja4OPX.js.map → Callout-XadUe37J.js.map} +1 -1
  56. package/lib/{CategoryHeading-D06WK_Wo.js → CategoryHeading-DZi-Szor.js} +2 -2
  57. package/lib/{CategoryHeading-D06WK_Wo.js.map → CategoryHeading-DZi-Szor.js.map} +1 -1
  58. package/lib/{Dialog-ByYz4ABw.js → Dialog-CNf2oWXG.js} +2 -2
  59. package/lib/{Dialog-ByYz4ABw.js.map → Dialog-CNf2oWXG.js.map} +1 -1
  60. package/lib/{Drawer-CEwbkLDb.js → Drawer-BPBxzel2.js} +25 -25
  61. package/lib/{Drawer-CEwbkLDb.js.map → Drawer-BPBxzel2.js.map} +1 -1
  62. package/lib/Markdown-1l-DtDbF.js +7688 -0
  63. package/lib/Markdown-1l-DtDbF.js.map +1 -0
  64. package/lib/MdxPage-Dxbq6lFr.js +84 -0
  65. package/lib/{MdxPage-CH19q_hk.js.map → MdxPage-Dxbq6lFr.js.map} +1 -1
  66. package/lib/{OasProvider-n805wUHH.js → OasProvider-DKpTJMH2.js} +4 -4
  67. package/lib/{OasProvider-n805wUHH.js.map → OasProvider-DKpTJMH2.js.map} +1 -1
  68. package/lib/{OperationList-BAhWsh8C.js → OperationList-DVOyNeno.js} +1385 -1417
  69. package/lib/{OperationList-BAhWsh8C.js.map → OperationList-DVOyNeno.js.map} +1 -1
  70. package/lib/{Pagination-DAjXddnj.js → Pagination-COMmV-g9.js} +4 -4
  71. package/lib/{Pagination-DAjXddnj.js.map → Pagination-COMmV-g9.js.map} +1 -1
  72. package/lib/RouteGuard-CGqivwrh.js +733 -0
  73. package/lib/{RouteGuard-DRtEu9nh.js.map → RouteGuard-CGqivwrh.js.map} +1 -1
  74. package/lib/{SchemaList-BJ0GDIcI.js → SchemaList-BTWzXyYQ.js} +43 -44
  75. package/lib/{SchemaList-BJ0GDIcI.js.map → SchemaList-BTWzXyYQ.js.map} +1 -1
  76. package/lib/{SchemaView-J7Srn-Iy.js → SchemaView-DNKKW3nB.js} +7 -11
  77. package/lib/{SchemaView-J7Srn-Iy.js.map → SchemaView-DNKKW3nB.js.map} +1 -1
  78. package/lib/Select-m-ITdvFa.js +211 -0
  79. package/lib/{Select-CT64Ou40.js.map → Select-m-ITdvFa.js.map} +1 -1
  80. package/lib/SlotletProvider-DhK1Fmm9.js +254 -0
  81. package/lib/SlotletProvider-DhK1Fmm9.js.map +1 -0
  82. package/lib/SyntaxHighlight-CJ6FoYvt.js +9104 -0
  83. package/lib/SyntaxHighlight-CJ6FoYvt.js.map +1 -0
  84. package/lib/{Toc-D_tV8_Ri.js → Toc-CzMOgcPS.js} +3 -3
  85. package/lib/{Toc-D_tV8_Ri.js.map → Toc-CzMOgcPS.js.map} +1 -1
  86. package/lib/{chunk-BAXFHI7N-BVBOl9s0.js → chunk-BAXFHI7N-CFrZQ7Oh.js} +257 -264
  87. package/lib/{chunk-BAXFHI7N-BVBOl9s0.js.map → chunk-BAXFHI7N-CFrZQ7Oh.js.map} +1 -1
  88. package/lib/{circular-ByJI6Mci.js → circular-D__GEK2G.js} +47 -47
  89. package/lib/{circular-ByJI6Mci.js.map → circular-D__GEK2G.js.map} +1 -1
  90. package/lib/{cn-qaFjX9_3.js → cn-CwJPJKOE.js} +28 -29
  91. package/lib/{cn-qaFjX9_3.js.map → cn-CwJPJKOE.js.map} +1 -1
  92. package/lib/{createServer-IW7v5hWm.js → createServer-B4l2NSkt.js} +3724 -3868
  93. package/lib/{createServer-IW7v5hWm.js.map → createServer-B4l2NSkt.js.map} +1 -1
  94. package/lib/hook-CyNmcNr8.js +1443 -0
  95. package/lib/{hook-CldJlP5c.js.map → hook-CyNmcNr8.js.map} +1 -1
  96. package/lib/{index-DwT-v3zK.js → index--oeBayMa.js} +2 -2
  97. package/lib/{index-DwT-v3zK.js.map → index--oeBayMa.js.map} +1 -1
  98. package/lib/index-BcMPFdRU.js +4975 -0
  99. package/lib/index-BcMPFdRU.js.map +1 -0
  100. package/lib/{index-LNp6rxyU.js → index-BvvmIczU.js} +2 -2
  101. package/lib/{index-LNp6rxyU.js.map → index-BvvmIczU.js.map} +1 -1
  102. package/lib/{index-Dbvpddzr.js → index-CCS3ifKs.js} +690 -733
  103. package/lib/{index-Dbvpddzr.js.map → index-CCS3ifKs.js.map} +1 -1
  104. package/lib/{index-CuBIgTKC.js → index-CrcNWbel.js} +9 -9
  105. package/lib/{index-CuBIgTKC.js.map → index-CrcNWbel.js.map} +1 -1
  106. package/lib/{index-CPNSgwSb.js → index-Z13x6tPX.js} +5 -5
  107. package/lib/{index-CPNSgwSb.js.map → index-Z13x6tPX.js.map} +1 -1
  108. package/lib/{index-DcHeSvkE.js → index-zddirpDj.js} +581 -609
  109. package/lib/{index-DcHeSvkE.js.map → index-zddirpDj.js.map} +1 -1
  110. package/lib/invariant-D3QcI9fa.js +22 -0
  111. package/lib/{invariant-Caa8-XvF.js.map → invariant-D3QcI9fa.js.map} +1 -1
  112. package/lib/mutation-narTVsCe.js +196 -0
  113. package/lib/{mutation-DBQh7AOZ.js.map → mutation-narTVsCe.js.map} +1 -1
  114. package/lib/processors/removeParameters.js +27 -28
  115. package/lib/processors/removeParameters.js.map +1 -1
  116. package/lib/processors/removePaths.js +17 -17
  117. package/lib/processors/removePaths.js.map +1 -1
  118. package/lib/ui/Accordion.js +1 -1
  119. package/lib/ui/ActionButton.js +2 -2
  120. package/lib/ui/Alert.js +2 -2
  121. package/lib/ui/AlertDialog.js +1 -1
  122. package/lib/ui/Badge.js +2 -2
  123. package/lib/ui/Breadcrumb.js +1 -1
  124. package/lib/ui/Button.js +2 -2
  125. package/lib/ui/Callout.js +7 -7
  126. package/lib/ui/Callout.js.map +1 -1
  127. package/lib/ui/Card.js +1 -1
  128. package/lib/ui/Carousel.js +175 -175
  129. package/lib/ui/Carousel.js.map +1 -1
  130. package/lib/ui/Checkbox.js +1 -1
  131. package/lib/ui/CodeBlock.js +83 -0
  132. package/lib/ui/CodeBlock.js.map +1 -0
  133. package/lib/ui/Command.js +58 -58
  134. package/lib/ui/Command.js.map +1 -1
  135. package/lib/ui/Dialog.js +1 -1
  136. package/lib/ui/Drawer.js +2 -2
  137. package/lib/ui/DropdownMenu.js +1 -1
  138. package/lib/ui/Form.js +1 -1
  139. package/lib/ui/HoverCard.js +1 -1
  140. package/lib/ui/Input.js +1 -1
  141. package/lib/ui/Label.js +2 -2
  142. package/lib/ui/Pagination.js +1 -1
  143. package/lib/ui/Popover.js +1 -1
  144. package/lib/ui/Progress.js +1 -1
  145. package/lib/ui/RadioGroup.js +1 -1
  146. package/lib/ui/ScrollArea.js +1 -1
  147. package/lib/ui/Select.js +1 -1
  148. package/lib/ui/Skeleton.js +1 -1
  149. package/lib/ui/Slider.js +1 -1
  150. package/lib/ui/Switch.js +1 -1
  151. package/lib/ui/SyntaxHighlight.js +4 -6
  152. package/lib/ui/SyntaxHighlight.js.map +1 -1
  153. package/lib/ui/Tabs.js +1 -1
  154. package/lib/ui/Textarea.js +1 -1
  155. package/lib/ui/Toggle.js +2 -2
  156. package/lib/ui/ToggleGroup.js +1 -1
  157. package/lib/ui/Tooltip.js +1 -1
  158. package/lib/ui/util.js +1 -1
  159. package/lib/{useExposedProps-DbIZXspi.js → useExposedProps-n1u49409.js} +2 -2
  160. package/lib/{useExposedProps-DbIZXspi.js.map → useExposedProps-n1u49409.js.map} +1 -1
  161. package/lib/zudoku.auth-auth0.js +28 -31
  162. package/lib/zudoku.auth-auth0.js.map +1 -1
  163. package/lib/zudoku.auth-clerk.js +62 -68
  164. package/lib/zudoku.auth-clerk.js.map +1 -1
  165. package/lib/zudoku.auth-openid.js +475 -483
  166. package/lib/zudoku.auth-openid.js.map +1 -1
  167. package/lib/zudoku.components.js +7 -7
  168. package/lib/zudoku.hooks.js +2 -2
  169. package/lib/zudoku.plugin-api-catalog.js +45 -45
  170. package/lib/zudoku.plugin-api-catalog.js.map +1 -1
  171. package/lib/zudoku.plugin-api-keys.js +6 -6
  172. package/lib/zudoku.plugin-custom-pages.js +3 -3
  173. package/lib/zudoku.plugin-markdown.js +25 -28
  174. package/lib/zudoku.plugin-markdown.js.map +1 -1
  175. package/lib/zudoku.plugin-openapi.js +3 -3
  176. package/lib/zudoku.plugin-redirect.js +1 -1
  177. package/lib/zudoku.plugin-search-inkeep.js +26 -27
  178. package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
  179. package/lib/zudoku.plugin-search-pagefind.js +107 -110
  180. package/lib/zudoku.plugin-search-pagefind.js.map +1 -1
  181. package/package.json +16 -6
  182. package/src/app/main.css +53 -3
  183. package/src/app/main.tsx +7 -0
  184. package/src/lib/components/BuildCheck.tsx +4 -2
  185. package/src/lib/components/Markdown.tsx +29 -24
  186. package/src/lib/core/ZudokuContext.ts +4 -0
  187. package/src/lib/errors/ErrorAlert.tsx +1 -1
  188. package/src/lib/plugins/openapi/CollapsibleCode.tsx +5 -2
  189. package/src/lib/plugins/openapi/Sidecar.tsx +1 -1
  190. package/src/lib/plugins/openapi/SidecarExamples.tsx +2 -2
  191. package/src/lib/shiki.ts +129 -0
  192. package/src/lib/ui/Callout.tsx +1 -1
  193. package/src/lib/ui/CodeBlock.tsx +102 -0
  194. package/src/lib/ui/SyntaxHighlight.tsx +18 -182
  195. package/src/lib/util/MdxComponents.tsx +27 -14
  196. package/src/shiki/langs/abap.js +1 -0
  197. package/src/shiki/langs/actionscript-3.js +1 -0
  198. package/src/shiki/langs/ada.js +1 -0
  199. package/src/shiki/langs/angular-expression.js +1 -0
  200. package/src/shiki/langs/angular-html.js +1 -0
  201. package/src/shiki/langs/angular-inline-style.js +1 -0
  202. package/src/shiki/langs/angular-inline-template.js +1 -0
  203. package/src/shiki/langs/angular-let-declaration.js +1 -0
  204. package/src/shiki/langs/angular-template-blocks.js +1 -0
  205. package/src/shiki/langs/angular-template.js +1 -0
  206. package/src/shiki/langs/angular-ts.js +1 -0
  207. package/src/shiki/langs/apache.js +1 -0
  208. package/src/shiki/langs/apex.js +1 -0
  209. package/src/shiki/langs/apl.js +1 -0
  210. package/src/shiki/langs/applescript.js +1 -0
  211. package/src/shiki/langs/ara.js +1 -0
  212. package/src/shiki/langs/asciidoc.js +1 -0
  213. package/src/shiki/langs/asm.js +1 -0
  214. package/src/shiki/langs/astro.js +1 -0
  215. package/src/shiki/langs/awk.js +1 -0
  216. package/src/shiki/langs/ballerina.js +1 -0
  217. package/src/shiki/langs/bat.js +1 -0
  218. package/src/shiki/langs/beancount.js +1 -0
  219. package/src/shiki/langs/berry.js +1 -0
  220. package/src/shiki/langs/bibtex.js +1 -0
  221. package/src/shiki/langs/bicep.js +1 -0
  222. package/src/shiki/langs/blade.js +1 -0
  223. package/src/shiki/langs/bsl.js +1 -0
  224. package/src/shiki/langs/c.js +1 -0
  225. package/src/shiki/langs/cadence.js +1 -0
  226. package/src/shiki/langs/cairo.js +1 -0
  227. package/src/shiki/langs/clarity.js +1 -0
  228. package/src/shiki/langs/clojure.js +1 -0
  229. package/src/shiki/langs/cmake.js +1 -0
  230. package/src/shiki/langs/cobol.js +1 -0
  231. package/src/shiki/langs/codeowners.js +1 -0
  232. package/src/shiki/langs/codeql.js +1 -0
  233. package/src/shiki/langs/coffee.js +1 -0
  234. package/src/shiki/langs/common-lisp.js +1 -0
  235. package/src/shiki/langs/coq.js +1 -0
  236. package/src/shiki/langs/cpp-macro.js +1 -0
  237. package/src/shiki/langs/cpp.js +1 -0
  238. package/src/shiki/langs/crystal.js +1 -0
  239. package/src/shiki/langs/csharp.js +1 -0
  240. package/src/shiki/langs/css.js +1 -0
  241. package/src/shiki/langs/csv.js +1 -0
  242. package/src/shiki/langs/cue.js +1 -0
  243. package/src/shiki/langs/cypher.js +1 -0
  244. package/src/shiki/langs/d.js +1 -0
  245. package/src/shiki/langs/dart.js +1 -0
  246. package/src/shiki/langs/dax.js +1 -0
  247. package/src/shiki/langs/desktop.js +1 -0
  248. package/src/shiki/langs/diff.js +1 -0
  249. package/src/shiki/langs/docker.js +1 -0
  250. package/src/shiki/langs/dotenv.js +1 -0
  251. package/src/shiki/langs/dream-maker.js +1 -0
  252. package/src/shiki/langs/edge.js +1 -0
  253. package/src/shiki/langs/elixir.js +1 -0
  254. package/src/shiki/langs/elm.js +1 -0
  255. package/src/shiki/langs/emacs-lisp.js +1 -0
  256. package/src/shiki/langs/erb.js +1 -0
  257. package/src/shiki/langs/erlang.js +1 -0
  258. package/src/shiki/langs/es-tag-css.js +1 -0
  259. package/src/shiki/langs/es-tag-glsl.js +1 -0
  260. package/src/shiki/langs/es-tag-html.js +1 -0
  261. package/src/shiki/langs/es-tag-sql.js +1 -0
  262. package/src/shiki/langs/es-tag-xml.js +1 -0
  263. package/src/shiki/langs/fennel.js +1 -0
  264. package/src/shiki/langs/fish.js +1 -0
  265. package/src/shiki/langs/fluent.js +1 -0
  266. package/src/shiki/langs/fortran-fixed-form.js +1 -0
  267. package/src/shiki/langs/fortran-free-form.js +1 -0
  268. package/src/shiki/langs/fsharp.js +1 -0
  269. package/src/shiki/langs/gdresource.js +1 -0
  270. package/src/shiki/langs/gdscript.js +1 -0
  271. package/src/shiki/langs/gdshader.js +1 -0
  272. package/src/shiki/langs/genie.js +1 -0
  273. package/src/shiki/langs/gherkin.js +1 -0
  274. package/src/shiki/langs/git-commit.js +1 -0
  275. package/src/shiki/langs/git-rebase.js +1 -0
  276. package/src/shiki/langs/gleam.js +1 -0
  277. package/src/shiki/langs/glimmer-js.js +1 -0
  278. package/src/shiki/langs/glimmer-ts.js +1 -0
  279. package/src/shiki/langs/glsl.js +1 -0
  280. package/src/shiki/langs/gnuplot.js +1 -0
  281. package/src/shiki/langs/go.js +1 -0
  282. package/src/shiki/langs/graphql.js +1 -0
  283. package/src/shiki/langs/groovy.js +1 -0
  284. package/src/shiki/langs/hack.js +1 -0
  285. package/src/shiki/langs/haml.js +1 -0
  286. package/src/shiki/langs/handlebars.js +1 -0
  287. package/src/shiki/langs/haskell.js +1 -0
  288. package/src/shiki/langs/haxe.js +1 -0
  289. package/src/shiki/langs/hcl.js +1 -0
  290. package/src/shiki/langs/hjson.js +1 -0
  291. package/src/shiki/langs/hlsl.js +1 -0
  292. package/src/shiki/langs/html-derivative.js +1 -0
  293. package/src/shiki/langs/html.js +1 -0
  294. package/src/shiki/langs/http.js +1 -0
  295. package/src/shiki/langs/hxml.js +1 -0
  296. package/src/shiki/langs/hy.js +1 -0
  297. package/src/shiki/langs/imba.js +1 -0
  298. package/src/shiki/langs/ini.js +1 -0
  299. package/src/shiki/langs/java.js +1 -0
  300. package/src/shiki/langs/javascript.js +1 -0
  301. package/src/shiki/langs/jinja-html.js +1 -0
  302. package/src/shiki/langs/jinja.js +1 -0
  303. package/src/shiki/langs/jison.js +1 -0
  304. package/src/shiki/langs/json.js +1 -0
  305. package/src/shiki/langs/json5.js +1 -0
  306. package/src/shiki/langs/jsonc.js +1 -0
  307. package/src/shiki/langs/jsonl.js +1 -0
  308. package/src/shiki/langs/jsonnet.js +1 -0
  309. package/src/shiki/langs/jssm.js +1 -0
  310. package/src/shiki/langs/jsx.js +1 -0
  311. package/src/shiki/langs/julia.js +1 -0
  312. package/src/shiki/langs/kotlin.js +1 -0
  313. package/src/shiki/langs/kusto.js +1 -0
  314. package/src/shiki/langs/latex.js +1 -0
  315. package/src/shiki/langs/lean.js +1 -0
  316. package/src/shiki/langs/less.js +1 -0
  317. package/src/shiki/langs/liquid.js +1 -0
  318. package/src/shiki/langs/llvm.js +1 -0
  319. package/src/shiki/langs/log.js +1 -0
  320. package/src/shiki/langs/logo.js +1 -0
  321. package/src/shiki/langs/lua.js +1 -0
  322. package/src/shiki/langs/luau.js +1 -0
  323. package/src/shiki/langs/make.js +1 -0
  324. package/src/shiki/langs/markdown-vue.js +1 -0
  325. package/src/shiki/langs/markdown.js +1 -0
  326. package/src/shiki/langs/marko.js +1 -0
  327. package/src/shiki/langs/matlab.js +1 -0
  328. package/src/shiki/langs/mdc.js +1 -0
  329. package/src/shiki/langs/mdx.js +1 -0
  330. package/src/shiki/langs/mermaid.js +1 -0
  331. package/src/shiki/langs/mipsasm.js +1 -0
  332. package/src/shiki/langs/mojo.js +1 -0
  333. package/src/shiki/langs/move.js +1 -0
  334. package/src/shiki/langs/narrat.js +1 -0
  335. package/src/shiki/langs/nextflow.js +1 -0
  336. package/src/shiki/langs/nginx.js +1 -0
  337. package/src/shiki/langs/nim.js +1 -0
  338. package/src/shiki/langs/nix.js +1 -0
  339. package/src/shiki/langs/nushell.js +1 -0
  340. package/src/shiki/langs/objective-c.js +1 -0
  341. package/src/shiki/langs/objective-cpp.js +1 -0
  342. package/src/shiki/langs/ocaml.js +1 -0
  343. package/src/shiki/langs/pascal.js +1 -0
  344. package/src/shiki/langs/perl.js +1 -0
  345. package/src/shiki/langs/php.js +1 -0
  346. package/src/shiki/langs/plsql.js +1 -0
  347. package/src/shiki/langs/po.js +1 -0
  348. package/src/shiki/langs/polar.js +1 -0
  349. package/src/shiki/langs/postcss.js +1 -0
  350. package/src/shiki/langs/powerquery.js +1 -0
  351. package/src/shiki/langs/powershell.js +1 -0
  352. package/src/shiki/langs/prisma.js +1 -0
  353. package/src/shiki/langs/prolog.js +1 -0
  354. package/src/shiki/langs/proto.js +1 -0
  355. package/src/shiki/langs/pug.js +1 -0
  356. package/src/shiki/langs/puppet.js +1 -0
  357. package/src/shiki/langs/purescript.js +1 -0
  358. package/src/shiki/langs/python.js +1 -0
  359. package/src/shiki/langs/qml.js +1 -0
  360. package/src/shiki/langs/qmldir.js +1 -0
  361. package/src/shiki/langs/qss.js +1 -0
  362. package/src/shiki/langs/r.js +1 -0
  363. package/src/shiki/langs/racket.js +1 -0
  364. package/src/shiki/langs/raku.js +1 -0
  365. package/src/shiki/langs/razor.js +1 -0
  366. package/src/shiki/langs/reg.js +1 -0
  367. package/src/shiki/langs/regexp.js +1 -0
  368. package/src/shiki/langs/rel.js +1 -0
  369. package/src/shiki/langs/riscv.js +1 -0
  370. package/src/shiki/langs/rst.js +1 -0
  371. package/src/shiki/langs/ruby.js +1 -0
  372. package/src/shiki/langs/rust.js +1 -0
  373. package/src/shiki/langs/sas.js +1 -0
  374. package/src/shiki/langs/sass.js +1 -0
  375. package/src/shiki/langs/scala.js +1 -0
  376. package/src/shiki/langs/scheme.js +1 -0
  377. package/src/shiki/langs/scss.js +1 -0
  378. package/src/shiki/langs/sdbl.js +1 -0
  379. package/src/shiki/langs/shaderlab.js +1 -0
  380. package/src/shiki/langs/shellscript.js +1 -0
  381. package/src/shiki/langs/shellsession.js +1 -0
  382. package/src/shiki/langs/smalltalk.js +1 -0
  383. package/src/shiki/langs/solidity.js +1 -0
  384. package/src/shiki/langs/soy.js +1 -0
  385. package/src/shiki/langs/sparql.js +1 -0
  386. package/src/shiki/langs/splunk.js +1 -0
  387. package/src/shiki/langs/sql.js +1 -0
  388. package/src/shiki/langs/ssh-config.js +1 -0
  389. package/src/shiki/langs/stata.js +1 -0
  390. package/src/shiki/langs/stylus.js +1 -0
  391. package/src/shiki/langs/svelte.js +1 -0
  392. package/src/shiki/langs/swift.js +1 -0
  393. package/src/shiki/langs/system-verilog.js +1 -0
  394. package/src/shiki/langs/systemd.js +1 -0
  395. package/src/shiki/langs/talonscript.js +1 -0
  396. package/src/shiki/langs/tasl.js +1 -0
  397. package/src/shiki/langs/tcl.js +1 -0
  398. package/src/shiki/langs/templ.js +1 -0
  399. package/src/shiki/langs/terraform.js +1 -0
  400. package/src/shiki/langs/tex.js +1 -0
  401. package/src/shiki/langs/toml.js +1 -0
  402. package/src/shiki/langs/ts-tags.js +1 -0
  403. package/src/shiki/langs/tsv.js +1 -0
  404. package/src/shiki/langs/tsx.js +1 -0
  405. package/src/shiki/langs/turtle.js +1 -0
  406. package/src/shiki/langs/twig.js +1 -0
  407. package/src/shiki/langs/typescript.js +1 -0
  408. package/src/shiki/langs/typespec.js +1 -0
  409. package/src/shiki/langs/typst.js +1 -0
  410. package/src/shiki/langs/v.js +1 -0
  411. package/src/shiki/langs/vala.js +1 -0
  412. package/src/shiki/langs/vb.js +1 -0
  413. package/src/shiki/langs/verilog.js +1 -0
  414. package/src/shiki/langs/vhdl.js +1 -0
  415. package/src/shiki/langs/viml.js +1 -0
  416. package/src/shiki/langs/vue-directives.js +1 -0
  417. package/src/shiki/langs/vue-html.js +1 -0
  418. package/src/shiki/langs/vue-interpolations.js +1 -0
  419. package/src/shiki/langs/vue-sfc-style-variable-injection.js +1 -0
  420. package/src/shiki/langs/vue.js +1 -0
  421. package/src/shiki/langs/vyper.js +1 -0
  422. package/src/shiki/langs/wasm.js +1 -0
  423. package/src/shiki/langs/wenyan.js +1 -0
  424. package/src/shiki/langs/wgsl.js +1 -0
  425. package/src/shiki/langs/wikitext.js +1 -0
  426. package/src/shiki/langs/wit.js +1 -0
  427. package/src/shiki/langs/wolfram.js +1 -0
  428. package/src/shiki/langs/xml.js +1 -0
  429. package/src/shiki/langs/xsl.js +1 -0
  430. package/src/shiki/langs/yaml.js +1 -0
  431. package/src/shiki/langs/zenscript.js +1 -0
  432. package/src/shiki/langs/zig.js +1 -0
  433. package/src/shiki/themes/andromeeda.js +1 -0
  434. package/src/shiki/themes/aurora-x.js +1 -0
  435. package/src/shiki/themes/ayu-dark.js +1 -0
  436. package/src/shiki/themes/catppuccin-frappe.js +1 -0
  437. package/src/shiki/themes/catppuccin-latte.js +1 -0
  438. package/src/shiki/themes/catppuccin-macchiato.js +1 -0
  439. package/src/shiki/themes/catppuccin-mocha.js +1 -0
  440. package/src/shiki/themes/dark-plus.js +1 -0
  441. package/src/shiki/themes/dracula-soft.js +1 -0
  442. package/src/shiki/themes/dracula.js +1 -0
  443. package/src/shiki/themes/everforest-dark.js +1 -0
  444. package/src/shiki/themes/everforest-light.js +1 -0
  445. package/src/shiki/themes/github-dark-default.js +1 -0
  446. package/src/shiki/themes/github-dark-dimmed.js +1 -0
  447. package/src/shiki/themes/github-dark-high-contrast.js +1 -0
  448. package/src/shiki/themes/github-dark.js +1 -0
  449. package/src/shiki/themes/github-light-default.js +1 -0
  450. package/src/shiki/themes/github-light-high-contrast.js +1 -0
  451. package/src/shiki/themes/github-light.js +1 -0
  452. package/src/shiki/themes/gruvbox-dark-hard.js +1 -0
  453. package/src/shiki/themes/gruvbox-dark-medium.js +1 -0
  454. package/src/shiki/themes/gruvbox-dark-soft.js +1 -0
  455. package/src/shiki/themes/gruvbox-light-hard.js +1 -0
  456. package/src/shiki/themes/gruvbox-light-medium.js +1 -0
  457. package/src/shiki/themes/gruvbox-light-soft.js +1 -0
  458. package/src/shiki/themes/houston.js +1 -0
  459. package/src/shiki/themes/kanagawa-dragon.js +1 -0
  460. package/src/shiki/themes/kanagawa-lotus.js +1 -0
  461. package/src/shiki/themes/kanagawa-wave.js +1 -0
  462. package/src/shiki/themes/laserwave.js +1 -0
  463. package/src/shiki/themes/light-plus.js +1 -0
  464. package/src/shiki/themes/material-theme-darker.js +1 -0
  465. package/src/shiki/themes/material-theme-lighter.js +1 -0
  466. package/src/shiki/themes/material-theme-ocean.js +1 -0
  467. package/src/shiki/themes/material-theme-palenight.js +1 -0
  468. package/src/shiki/themes/material-theme.js +1 -0
  469. package/src/shiki/themes/min-dark.js +1 -0
  470. package/src/shiki/themes/min-light.js +1 -0
  471. package/src/shiki/themes/monokai.js +1 -0
  472. package/src/shiki/themes/night-owl.js +1 -0
  473. package/src/shiki/themes/nord.js +1 -0
  474. package/src/shiki/themes/one-dark-pro.js +1 -0
  475. package/src/shiki/themes/one-light.js +1 -0
  476. package/src/shiki/themes/plastic.js +1 -0
  477. package/src/shiki/themes/poimandres.js +1 -0
  478. package/src/shiki/themes/red.js +1 -0
  479. package/src/shiki/themes/rose-pine-dawn.js +1 -0
  480. package/src/shiki/themes/rose-pine-moon.js +1 -0
  481. package/src/shiki/themes/rose-pine.js +1 -0
  482. package/src/shiki/themes/slack-dark.js +1 -0
  483. package/src/shiki/themes/slack-ochin.js +1 -0
  484. package/src/shiki/themes/snazzy-light.js +1 -0
  485. package/src/shiki/themes/solarized-dark.js +1 -0
  486. package/src/shiki/themes/solarized-light.js +1 -0
  487. package/src/shiki/themes/synthwave-84.js +1 -0
  488. package/src/shiki/themes/tokyo-night.js +1 -0
  489. package/src/shiki/themes/vesper.js +1 -0
  490. package/src/shiki/themes/vitesse-black.js +1 -0
  491. package/src/shiki/themes/vitesse-dark.js +1 -0
  492. package/src/shiki/themes/vitesse-light.js +1 -0
  493. package/lib/AuthenticationPlugin-DPCuR3xm.js +0 -58
  494. package/lib/Markdown-mFpg_n9p.js +0 -17125
  495. package/lib/Markdown-mFpg_n9p.js.map +0 -1
  496. package/lib/MdxPage-CH19q_hk.js +0 -85
  497. package/lib/RouteGuard-DRtEu9nh.js +0 -744
  498. package/lib/Select-CT64Ou40.js +0 -223
  499. package/lib/SlotletProvider-CS_nO-XT.js +0 -340
  500. package/lib/SlotletProvider-CS_nO-XT.js.map +0 -1
  501. package/lib/SyntaxHighlight-CxhyyMkF.js +0 -2890
  502. package/lib/SyntaxHighlight-CxhyyMkF.js.map +0 -1
  503. package/lib/hook-CldJlP5c.js +0 -1478
  504. package/lib/index-BeYI7Btu.js +0 -5031
  505. package/lib/index-BeYI7Btu.js.map +0 -1
  506. package/lib/invariant-Caa8-XvF.js +0 -26
  507. package/lib/mutation-DBQh7AOZ.js +0 -211
  508. package/lib/prism-bash.min-HHIMdNJ_.js +0 -7
  509. package/lib/prism-bash.min-HHIMdNJ_.js.map +0 -1
  510. package/lib/prism-csharp.min-C43x1RY2.js +0 -63
  511. package/lib/prism-csharp.min-C43x1RY2.js.map +0 -1
  512. package/lib/prism-java.min-CQzr40NQ.js +0 -35
  513. package/lib/prism-java.min-CQzr40NQ.js.map +0 -1
  514. package/lib/prism-javascript.min-CEqHqgbm.js +0 -9
  515. package/lib/prism-javascript.min-CEqHqgbm.js.map +0 -1
  516. package/lib/prism-json.min-B1GJqK1k.js +0 -2
  517. package/lib/prism-json.min-B1GJqK1k.js.map +0 -1
  518. package/lib/prism-jsstacktrace.min-BfobCF2F.js +0 -2
  519. package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +0 -1
  520. package/lib/prism-markdown.min-C0Qn0m-5.js +0 -61
  521. package/lib/prism-markdown.min-C0Qn0m-5.js.map +0 -1
  522. package/lib/prism-markup-BNGj0Tvm.js +0 -174
  523. package/lib/prism-markup-BNGj0Tvm.js.map +0 -1
  524. package/lib/prism-objectivec.min-BXSWqpJJ.js +0 -2
  525. package/lib/prism-objectivec.min-BXSWqpJJ.js.map +0 -1
  526. package/lib/prism-ruby.min-L9OdQ6tU.js +0 -38
  527. package/lib/prism-ruby.min-L9OdQ6tU.js.map +0 -1
  528. package/lib/prism-typescript.min-qTySPvCh.js +0 -34
  529. package/lib/prism-typescript.min-qTySPvCh.js.map +0 -1
@@ -1,89 +1,77 @@
1
- var Ft = Object.defineProperty;
2
- var tt = (t) => {
3
- throw TypeError(t);
4
- };
5
- var zt = (t, n, s) => n in t ? Ft(t, n, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[n] = s;
6
- var J = (t, n, s) => zt(t, typeof n != "symbol" ? n + "" : n, s), Ht = (t, n, s) => n.has(t) || tt("Cannot " + s);
7
- var pe = (t, n, s) => (Ht(t, n, "read from private field"), s ? s.call(t) : n.get(t)), he = (t, n, s) => n.has(t) ? tt("Cannot add the same private member more than once") : n instanceof WeakSet ? n.add(t) : n.set(t, s);
8
1
  import { j as e } from "./jsx-runtime-C5mzlN2N.js";
9
- import { ChevronRightIcon as Q, CheckIcon as Mt, DotIcon as _t, Check as Bt, XIcon as Gt, Circle as Jt, ChevronDownIcon as Ut, InfoIcon as nt, LogInIcon as Qt, CirclePlayIcon as Wt } from "lucide-react";
10
- import { r as Zt, m as st } from "./chunk-BAXFHI7N-BVBOl9s0.js";
11
- import { p as xt, q as ft, r as Xt, m as Kt, t as Yt, f as R, l as en } from "./hook-CldJlP5c.js";
12
- import { Button as W } from "./ui/Button.js";
13
- import { Z as tn } from "./invariant-Caa8-XvF.js";
14
- import { VisuallyHidden as nn } from "@radix-ui/react-visually-hidden";
15
- import * as v from "react";
16
- import { Fragment as q, useRef as G, useEffect as se, useMemo as sn, useState as k, useCallback as an, useTransition as rn } from "react";
17
- import { D as Pe, a as ke, b as Ie, d as gt, e as yt, f as on } from "./Dialog-ByYz4ABw.js";
18
- import { S as je, a as be, b as Ne, c as we, e as U, u as ln } from "./Select-CT64Ou40.js";
19
- import { b as Re, u as Oe, C as L, a as dn, F as cn } from "./index.esm-D2ZUREQN.js";
20
- import { c as vt } from "./index-CPNSgwSb.js";
21
- import { c as u } from "./cn-qaFjX9_3.js";
22
- import { Tabs as jt, TabsList as bt, TabsTrigger as H, TabsContent as M } from "./ui/Tabs.js";
23
- import { o as mn } from "./objectEntries-yMIkr2mI.js";
24
- import { u as un } from "./useLatest-hmRS46UF.js";
25
- import { z as pn } from "./index-DwT-v3zK.js";
26
- import { B as A } from "./Button-BBNrKpQd.js";
27
- import * as b from "@radix-ui/react-dropdown-menu";
28
- import * as Ce from "@radix-ui/react-checkbox";
29
- import * as ae from "@radix-ui/react-popover";
30
- import { PopoverAnchor as hn } from "@radix-ui/react-popover";
31
- import { P as xn } from "./index-CuBIgTKC.js";
32
- import { g as fn, h as gn, C as yn, b as vn, f as jn } from "./Callout-D3Ja4OPX.js";
33
- import { Input as qe } from "./ui/Input.js";
34
- import { Slot as bn } from "@radix-ui/react-slot";
35
- import * as Nt from "@radix-ui/react-label";
36
- import * as Z from "@radix-ui/react-radio-group";
37
- import { S as Nn } from "./Spinner-mNLZ6awP.js";
38
- import { Callout as wn } from "./ui/Callout.js";
39
- import { Card as wt, CardHeader as Cn, CardTitle as Sn, CardContent as Tn } from "./ui/Card.js";
40
- import { Collapsible as at, CollapsibleTrigger as rt, CollapsibleContent as ot } from "./ui/Collapsible.js";
41
- import * as Le from "@radix-ui/react-collapsible";
42
- import { S as $n } from "./SyntaxHighlight-CxhyyMkF.js";
43
- let xe;
44
- const Pn = (t) => {
45
- var n;
46
- if ((n = t.errors) != null && n[0])
47
- throw new tn(t.errors[0].message, {
2
+ import { ChevronRightIcon as B, CheckIcon as Rt, DotIcon as kt, Check as It, XIcon as Ot, Circle as qt, ChevronDownIcon as Et, InfoIcon as _e, LogInIcon as Lt, CirclePlayIcon as At } from "lucide-react";
3
+ import { r as Dt, m as Be } from "./chunk-BAXFHI7N-CFrZQ7Oh.js";
4
+ import { p as nt, q as st, r as Vt, m as Ft, t as zt, f as R, l as Ht } from "./hook-CyNmcNr8.js";
5
+ import { Button as G } from "./ui/Button.js";
6
+ import { Z as Mt } from "./invariant-D3QcI9fa.js";
7
+ import { VisuallyHidden as _t } from "@radix-ui/react-visually-hidden";
8
+ import * as g from "react";
9
+ import { Fragment as q, useRef as M, useEffect as Y, useMemo as Bt, useState as $, useCallback as Gt, useTransition as Jt } from "react";
10
+ import { D as ve, a as je, b as be, d as at, e as rt, f as Ut } from "./Dialog-CNf2oWXG.js";
11
+ import { S as me, a as ue, b as pe, c as he, e as _, u as Qt } from "./Select-m-ITdvFa.js";
12
+ import { b as Ne, u as we, C as E, a as Wt, F as Zt } from "./index.esm-D2ZUREQN.js";
13
+ import { c as ot } from "./index-Z13x6tPX.js";
14
+ import { c as u } from "./cn-CwJPJKOE.js";
15
+ import { Tabs as it, TabsList as lt, TabsTrigger as V, TabsContent as F } from "./ui/Tabs.js";
16
+ import { o as Xt } from "./objectEntries-yMIkr2mI.js";
17
+ import { u as Kt } from "./useLatest-hmRS46UF.js";
18
+ import { z as Yt } from "./index--oeBayMa.js";
19
+ import { B as L } from "./Button-Bdk_Ij3U.js";
20
+ import * as v from "@radix-ui/react-dropdown-menu";
21
+ import * as xe from "@radix-ui/react-checkbox";
22
+ import * as ee from "@radix-ui/react-popover";
23
+ import { PopoverAnchor as en } from "@radix-ui/react-popover";
24
+ import { P as tn } from "./index-CrcNWbel.js";
25
+ import { g as nn, h as sn, C as an, b as rn, f as on } from "./Callout-XadUe37J.js";
26
+ import { Input as Ce } from "./ui/Input.js";
27
+ import { Slot as ln } from "@radix-ui/react-slot";
28
+ import * as dt from "@radix-ui/react-label";
29
+ import * as J from "@radix-ui/react-radio-group";
30
+ import { S as dn } from "./Spinner-mNLZ6awP.js";
31
+ import { Callout as cn } from "./ui/Callout.js";
32
+ import { Card as ct, CardHeader as mn, CardTitle as un, CardContent as pn } from "./ui/Card.js";
33
+ import { Collapsible as Ge, CollapsibleTrigger as Je, CollapsibleContent as Ue } from "./ui/Collapsible.js";
34
+ import * as Se from "@radix-ui/react-collapsible";
35
+ import { S as hn } from "./SyntaxHighlight-CJ6FoYvt.js";
36
+ let oe;
37
+ const xn = (t) => {
38
+ if (t.errors?.[0])
39
+ throw new Mt(t.errors[0].message, {
48
40
  developerHint: "Check your configuration value `apis.type` and `apis.input` in the Zudoku config."
49
41
  });
50
42
  };
51
- var ie, le;
52
- class kn {
43
+ class fn {
53
44
  constructor(n) {
54
- he(this, ie, async () => (xe || (xe = import("./createServer-IW7v5hWm.js").then(
55
- (n) => n.createServer(this.config)
56
- )), xe));
57
- he(this, le, async (n) => this.config.server ? fetch(this.config.server, n) : (await pe(this, ie).call(this)).fetch("http://localhost/graphql", n));
58
- J(this, "fetch", async (n, s) => {
59
- var l;
60
- const a = (l = n.match(/query (\w+)/)) == null ? void 0 : l[1], r = await pe(this, le).call(this, {
61
- method: "POST",
62
- body: JSON.stringify({ query: n, variables: s, operationName: a }),
63
- headers: { "Content-Type": "application/json" }
64
- });
65
- if (!r.ok)
66
- throw new Error("Network response was not ok");
67
- const i = await r.json();
68
- return Pn(i), i.data;
69
- });
70
45
  this.config = n;
71
46
  }
47
+ #e = async () => (oe || (oe = import("./createServer-B4l2NSkt.js").then(
48
+ (n) => n.createServer(this.config)
49
+ )), oe);
50
+ #t = async (n) => this.config.server ? fetch(this.config.server, n) : (await this.#e()).fetch("http://localhost/graphql", n);
51
+ fetch = async (n, s) => {
52
+ const a = n.match(/query (\w+)/)?.[1], r = await this.#t({
53
+ method: "POST",
54
+ body: JSON.stringify({ query: n, variables: s, operationName: a }),
55
+ headers: { "Content-Type": "application/json" }
56
+ });
57
+ if (!r.ok)
58
+ throw new Error("Network response was not ok");
59
+ const i = await r.json();
60
+ return xn(i), i.data;
61
+ };
72
62
  }
73
- ie = new WeakMap(), le = new WeakMap();
74
- class E extends String {
75
- constructor(s, a) {
76
- super(s);
77
- J(this, "__apiType");
78
- J(this, "value");
79
- J(this, "__meta__");
80
- this.value = s, this.__meta__ = a;
63
+ class A extends String {
64
+ __apiType;
65
+ value;
66
+ __meta__;
67
+ constructor(n, s) {
68
+ super(n), this.value = n, this.__meta__ = s;
81
69
  }
82
70
  toString() {
83
71
  return this.value;
84
72
  }
85
73
  }
86
- const In = new E(
74
+ const gn = new A(
87
75
  `
88
76
  fragment OperationsFragment on OperationItem {
89
77
  slug
@@ -151,7 +139,7 @@ const In = new E(
151
139
  }
152
140
  `,
153
141
  { fragmentName: "OperationsFragment" }
154
- ), Rn = new E(`
142
+ ), yn = new A(`
155
143
  query ServersQuery($input: JSON!, $type: SchemaType!) {
156
144
  schema(input: $input, type: $type) {
157
145
  url
@@ -160,13 +148,13 @@ const In = new E(
160
148
  }
161
149
  }
162
150
  }
163
- `), On = new E(`
151
+ `), vn = new A(`
164
152
  query SchemaWarmup($input: JSON!, $type: SchemaType!) {
165
153
  schema(input: $input, type: $type) {
166
154
  openapi
167
155
  }
168
156
  }
169
- `), qn = new E(`
157
+ `), jn = new A(`
170
158
  query OperationsForTag($input: JSON!, $type: SchemaType!, $tag: String, $untagged: Boolean) {
171
159
  schema(input: $input, type: $type) {
172
160
  servers {
@@ -258,7 +246,7 @@ const In = new E(
258
246
  schema
259
247
  }
260
248
  }
261
- }`), Ln = new E(`
249
+ }`), bn = new A(`
262
250
  query GetSchemas($input: JSON!, $type: SchemaType!) {
263
251
  schema(input: $input, type: $type) {
264
252
  title
@@ -273,7 +261,7 @@ const In = new E(
273
261
  }
274
262
  }
275
263
  }
276
- `), An = new E(`
264
+ `), Nn = new A(`
277
265
  query getServerQuery($input: JSON!, $type: SchemaType!) {
278
266
  schema(input: $input, type: $type) {
279
267
  url
@@ -282,7 +270,7 @@ const In = new E(
282
270
  }
283
271
  }
284
272
  }
285
- `), Dn = new E(`
273
+ `), wn = new A(`
286
274
  query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
287
275
  schema(input: $input, type: $type) {
288
276
  tags {
@@ -304,19 +292,19 @@ const In = new E(
304
292
  }
305
293
  }
306
294
  }
307
- `), En = {
308
- "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Rn,
309
- "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": In,
310
- "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": On,
311
- "\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": qn,
312
- "\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": Ln,
313
- "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": An,
314
- "\n query GetSidebarOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": Dn
295
+ `), Cn = {
296
+ "\n query ServersQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": yn,
297
+ "\n fragment OperationsFragment on OperationItem {\n slug\n summary\n method\n description\n operationId\n contentTypes\n path\n deprecated\n extensions\n parameters {\n name\n in\n description\n required\n schema\n style\n explode\n examples {\n name\n description\n externalValue\n value\n summary\n }\n }\n requestBody {\n content {\n mediaType\n encoding {\n name\n }\n examples {\n name\n description\n externalValue\n value\n summary\n }\n schema\n }\n description\n required\n }\n responses {\n statusCode\n links\n description\n content {\n examples {\n name\n description\n externalValue\n value\n summary\n }\n mediaType\n encoding {\n name\n }\n schema\n }\n }\n }\n": gn,
298
+ "\n query SchemaWarmup($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n openapi\n }\n }\n": vn,
299
+ "\n query OperationsForTag(\n $input: JSON!\n $type: SchemaType!\n $tag: String\n $untagged: Boolean\n ) {\n schema(input: $input, type: $type) {\n servers {\n url\n }\n description\n summary\n title\n url\n version\n tag(slug: $tag, untagged: $untagged) {\n name\n description\n operations {\n slug\n ...OperationsFragment\n }\n next {\n name\n slug\n }\n prev {\n name\n slug\n }\n }\n }\n }\n": jn,
300
+ "\n query GetSchemas($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n title\n description\n summary\n components {\n schemas {\n name\n schema\n extensions\n }\n }\n }\n }\n": bn,
301
+ "\n query getServerQuery($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n url\n servers {\n url\n }\n }\n }\n": Nn,
302
+ "\n query GetSidebarOperations($input: JSON!, $type: SchemaType!) {\n schema(input: $input, type: $type) {\n tags {\n slug\n name\n extensions\n operations {\n summary\n slug\n method\n operationId\n path\n }\n }\n components {\n schemas {\n __typename\n }\n }\n }\n }\n": wn
315
303
  };
316
- function Vn(t) {
317
- return En[t] ?? {};
304
+ function Sn(t) {
305
+ return Cn[t] ?? {};
318
306
  }
319
- const Fn = vt(
307
+ const Tn = ot(
320
308
  "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
321
309
  {
322
310
  variants: {
@@ -329,17 +317,17 @@ const Fn = vt(
329
317
  variant: "default"
330
318
  }
331
319
  }
332
- ), Se = v.forwardRef(({ className: t, variant: n, ...s }, a) => /* @__PURE__ */ e.jsx(
320
+ ), fe = g.forwardRef(({ className: t, variant: n, ...s }, a) => /* @__PURE__ */ e.jsx(
333
321
  "div",
334
322
  {
335
323
  ref: a,
336
324
  role: "alert",
337
- className: u(Fn({ variant: n }), t),
325
+ className: u(Tn({ variant: n }), t),
338
326
  ...s
339
327
  }
340
328
  ));
341
- Se.displayName = "Alert";
342
- const Te = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
329
+ fe.displayName = "Alert";
330
+ const ge = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
343
331
  "h5",
344
332
  {
345
333
  ref: s,
@@ -347,8 +335,8 @@ const Te = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
347
335
  ...n
348
336
  }
349
337
  ));
350
- Te.displayName = "AlertTitle";
351
- const $e = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
338
+ ge.displayName = "AlertTitle";
339
+ const ye = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
352
340
  "div",
353
341
  {
354
342
  ref: s,
@@ -356,34 +344,34 @@ const $e = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
356
344
  ...n
357
345
  }
358
346
  ));
359
- $e.displayName = "AlertDescription";
360
- const zn = ({
347
+ ye.displayName = "AlertDescription";
348
+ const $n = ({
361
349
  path: t,
362
350
  renderParam: n
363
351
  }) => {
364
352
  let s = 0;
365
353
  return t.split("/").map((a, r, i) => {
366
- const l = Array.from(a.matchAll(/{([^}]+)}/g)), c = [];
354
+ const l = Array.from(a.matchAll(/{([^}]+)}/g)), m = [];
367
355
  let d = 0;
368
356
  return l.forEach((p) => {
369
- const [f, w] = p;
370
- if (!w) return;
371
- const j = p.index;
372
- j > d && c.push(
373
- /* @__PURE__ */ e.jsx(q, { children: a.slice(d, j) }, `text-${d}-${j}`)
374
- ), c.push(
375
- /* @__PURE__ */ e.jsx(q, { children: n({ name: w, originalValue: f, index: s++ }) }, `param-${w}`)
376
- ), d = j + f.length;
377
- }), d < a.length && c.push(
357
+ const [x, N] = p;
358
+ if (!N) return;
359
+ const y = p.index;
360
+ y > d && m.push(
361
+ /* @__PURE__ */ e.jsx(q, { children: a.slice(d, y) }, `text-${d}-${y}`)
362
+ ), m.push(
363
+ /* @__PURE__ */ e.jsx(q, { children: n({ name: N, originalValue: x, index: s++ }) }, `param-${N}`)
364
+ ), d = y + x.length;
365
+ }), d < a.length && m.push(
378
366
  /* @__PURE__ */ e.jsx(q, { children: a.slice(d) }, `text-${d}-${a.length}`)
379
367
  ), // eslint-disable-next-line react/no-array-index-key
380
368
  /* @__PURE__ */ e.jsxs(q, { children: [
381
- c,
369
+ m,
382
370
  r < i.length - 1 && "/",
383
371
  /* @__PURE__ */ e.jsx("wbr", {})
384
372
  ] }, `${a}-${r}`);
385
373
  });
386
- }, Ct = v.forwardRef(
374
+ }, mt = g.forwardRef(
387
375
  ({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
388
376
  "textarea",
389
377
  {
@@ -396,25 +384,25 @@ const zn = ({
396
384
  }
397
385
  )
398
386
  );
399
- Ct.displayName = "Textarea";
400
- const fe = (t) => Math.abs(
387
+ mt.displayName = "Textarea";
388
+ const ie = (t) => Math.abs(
401
389
  isNaN(parseInt(t)) ? t.toLowerCase().charCodeAt(0) - 96 : isNaN(parseInt(t)) ? 0 : parseInt(t)
402
- ), ge = (t) => t.length > 1 ? parseInt(t.split("").reduce((n, s) => `${fe(n) + fe(s)}`)) : fe(t), it = (t, n = {}) => {
403
- const s = (3 * ge(t) + 2 * ge(t) + ge(t)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
390
+ ), le = (t) => t.length > 1 ? parseInt(t.split("").reduce((n, s) => `${ie(n) + ie(s)}`)) : ie(t), Qe = (t, n = {}) => {
391
+ const s = (3 * le(t) + 2 * le(t) + le(t)) % 360, { saturation: a = 75, lightness: r = 60 } = n;
404
392
  return `${s}deg ${a}% ${r}%`;
405
- }, ye = "data-linked-param", Hn = (t) => {
406
- const { resolvedTheme: n } = pn();
393
+ }, de = "data-linked-param", Pn = (t) => {
394
+ const { resolvedTheme: n } = Yt();
407
395
  return {
408
- text: it(
396
+ text: Qe(
409
397
  t,
410
398
  n === "light" ? { saturation: 95, lightness: 38 } : {}
411
399
  ),
412
- background: it(
400
+ background: Qe(
413
401
  t,
414
402
  n === "light" ? { saturation: 85, lightness: 40 } : {}
415
403
  )
416
404
  };
417
- }, St = ({
405
+ }, ut = ({
418
406
  name: t,
419
407
  className: n,
420
408
  slug: s,
@@ -422,25 +410,25 @@ const fe = (t) => Math.abs(
422
410
  children: r,
423
411
  onClick: i
424
412
  }) => {
425
- const l = G(null), c = s == null ? void 0 : s.replace(/[{}]/g, ""), d = t.replace(/[{}]/g, ""), { text: p, background: f } = Hn(d), w = `hsl(${p} / 100%)`, j = `hsl(${f} / 10%)`, h = `hsl(${f} / 50%)`;
426
- return se(() => {
427
- if (!c || !l.current) return;
428
- const g = () => {
429
- document.querySelectorAll(`[${ye}="${c}"]`).forEach((x) => {
430
- x instanceof HTMLElement && (x.dataset.active = "true");
413
+ const l = M(null), m = s?.replace(/[{}]/g, ""), d = t.replace(/[{}]/g, ""), { text: p, background: x } = Pn(d), N = `hsl(${p} / 100%)`, y = `hsl(${x} / 10%)`, c = `hsl(${x} / 50%)`;
414
+ return Y(() => {
415
+ if (!m || !l.current) return;
416
+ const f = () => {
417
+ document.querySelectorAll(`[${de}="${m}"]`).forEach((b) => {
418
+ b instanceof HTMLElement && (b.dataset.active = "true");
431
419
  });
432
- }, m = () => {
433
- document.querySelectorAll(`[${ye}="${c}"]`).forEach((x) => {
434
- x instanceof HTMLElement && (x.dataset.active = "false");
420
+ }, h = () => {
421
+ document.querySelectorAll(`[${de}="${m}"]`).forEach((b) => {
422
+ b instanceof HTMLElement && (b.dataset.active = "false");
435
423
  });
436
- }, y = l.current;
437
- return y.addEventListener("mouseenter", g), y.addEventListener("mouseleave", m), () => {
438
- y.removeEventListener("mouseenter", g), y.removeEventListener("mouseleave", m);
424
+ }, j = l.current;
425
+ return j.addEventListener("mouseenter", f), j.addEventListener("mouseleave", h), () => {
426
+ j.removeEventListener("mouseenter", f), j.removeEventListener("mouseleave", h);
439
427
  };
440
- }, [c]), /* @__PURE__ */ e.jsx(
428
+ }, [m]), /* @__PURE__ */ e.jsx(
441
429
  "span",
442
430
  {
443
- [ye]: c,
431
+ [de]: m,
444
432
  className: u(
445
433
  // This may not contain (inline-)flex or (inline-)block otherwise it breaks the browser's full text search
446
434
  "relative transition-all duration-100 rounded-lg",
@@ -453,35 +441,31 @@ const fe = (t) => Math.abs(
453
441
  ref: l,
454
442
  onClick: i,
455
443
  style: {
456
- "--param-color": w,
457
- "--border-color": h,
458
- "--background-color": j
444
+ "--param-color": N,
445
+ "--border-color": c,
446
+ "--background-color": y
459
447
  },
460
448
  children: r ?? t
461
449
  }
462
450
  );
463
- }, Mn = xt()(
464
- ft(
451
+ }, Rn = nt()(
452
+ st(
465
453
  (t) => ({
466
454
  selectedServer: void 0,
467
455
  setSelectedServer: (n) => t({ selectedServer: n })
468
456
  }),
469
457
  { name: "zudoku-selected-server" }
470
458
  )
471
- ), _n = (t) => {
472
- const { selectedServer: n, setSelectedServer: s } = Mn();
473
- return { selectedServer: sn(
474
- () => {
475
- var r;
476
- return n && t.some((i) => i.url === n) ? n : ((r = t.at(0)) == null ? void 0 : r.url) ?? "";
477
- },
459
+ ), kn = (t) => {
460
+ const { selectedServer: n, setSelectedServer: s } = Rn();
461
+ return { selectedServer: Bt(
462
+ () => n && t.some((r) => r.url === n) ? n : t.at(0)?.url ?? "",
478
463
  [n, t]
479
464
  ), setSelectedServer: s };
480
- }, Bn = (t, n, s) => {
465
+ }, In = (t, n, s) => {
481
466
  const a = n.replace(/(:\w+|\{\w+})/g, (i) => {
482
- var d;
483
467
  const l = i.replace(/[:{}]/g, "");
484
- return ((d = s.pathParams.find((p) => p.name === l)) == null ? void 0 : d.value) ?? i;
468
+ return s.pathParams.find((d) => d.name === l)?.value ?? i;
485
469
  }), r = new URL(
486
470
  a.replace(/^\//, ""),
487
471
  t.endsWith("/") ? t : `${t}/`
@@ -489,8 +473,8 @@ const fe = (t) => Math.abs(
489
473
  return s.queryParams.filter((i) => i.active).forEach((i) => {
490
474
  r.searchParams.set(i.name, i.value);
491
475
  }), r;
492
- }, Tt = b.Root, $t = b.Trigger, Gn = b.Group, Jn = v.forwardRef(({ className: t, inset: n, children: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
493
- b.SubTrigger,
476
+ }, pt = v.Root, ht = v.Trigger, On = v.Group, qn = g.forwardRef(({ className: t, inset: n, children: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
477
+ v.SubTrigger,
494
478
  {
495
479
  ref: r,
496
480
  className: u(
@@ -501,13 +485,13 @@ const fe = (t) => Math.abs(
501
485
  ...a,
502
486
  children: [
503
487
  s,
504
- /* @__PURE__ */ e.jsx(Q, { className: "ml-auto h-4 w-4" })
488
+ /* @__PURE__ */ e.jsx(B, { className: "ml-auto h-4 w-4" })
505
489
  ]
506
490
  }
507
491
  ));
508
- Jn.displayName = b.SubTrigger.displayName;
509
- const Un = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
510
- b.SubContent,
492
+ qn.displayName = v.SubTrigger.displayName;
493
+ const En = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
494
+ v.SubContent,
511
495
  {
512
496
  ref: s,
513
497
  className: u(
@@ -517,9 +501,9 @@ const Un = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
517
501
  ...n
518
502
  }
519
503
  ));
520
- Un.displayName = b.SubContent.displayName;
521
- const Ae = v.forwardRef(({ className: t, sideOffset: n = 4, ...s }, a) => /* @__PURE__ */ e.jsx(b.Portal, { children: /* @__PURE__ */ e.jsx(
522
- b.Content,
504
+ En.displayName = v.SubContent.displayName;
505
+ const Te = g.forwardRef(({ className: t, sideOffset: n = 4, ...s }, a) => /* @__PURE__ */ e.jsx(v.Portal, { children: /* @__PURE__ */ e.jsx(
506
+ v.Content,
523
507
  {
524
508
  ref: a,
525
509
  sideOffset: n,
@@ -531,9 +515,9 @@ const Ae = v.forwardRef(({ className: t, sideOffset: n = 4, ...s }, a) => /* @__
531
515
  ...s
532
516
  }
533
517
  ) }));
534
- Ae.displayName = b.Content.displayName;
535
- const De = v.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
536
- b.Item,
518
+ Te.displayName = v.Content.displayName;
519
+ const $e = g.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
520
+ v.Item,
537
521
  {
538
522
  ref: a,
539
523
  className: u(
@@ -544,9 +528,9 @@ const De = v.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */
544
528
  ...s
545
529
  }
546
530
  ));
547
- De.displayName = b.Item.displayName;
548
- const Qn = v.forwardRef(({ className: t, children: n, checked: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
549
- b.CheckboxItem,
531
+ $e.displayName = v.Item.displayName;
532
+ const Ln = g.forwardRef(({ className: t, children: n, checked: s, ...a }, r) => /* @__PURE__ */ e.jsxs(
533
+ v.CheckboxItem,
550
534
  {
551
535
  ref: r,
552
536
  className: u(
@@ -556,14 +540,14 @@ const Qn = v.forwardRef(({ className: t, children: n, checked: s, ...a }, r) =>
556
540
  checked: s,
557
541
  ...a,
558
542
  children: [
559
- /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(b.ItemIndicator, { children: /* @__PURE__ */ e.jsx(Mt, { className: "h-4 w-4" }) }) }),
543
+ /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(v.ItemIndicator, { children: /* @__PURE__ */ e.jsx(Rt, { className: "h-4 w-4" }) }) }),
560
544
  n
561
545
  ]
562
546
  }
563
547
  ));
564
- Qn.displayName = b.CheckboxItem.displayName;
565
- const Wn = v.forwardRef(({ className: t, children: n, ...s }, a) => /* @__PURE__ */ e.jsxs(
566
- b.RadioItem,
548
+ Ln.displayName = v.CheckboxItem.displayName;
549
+ const An = g.forwardRef(({ className: t, children: n, ...s }, a) => /* @__PURE__ */ e.jsxs(
550
+ v.RadioItem,
567
551
  {
568
552
  ref: a,
569
553
  className: u(
@@ -572,14 +556,14 @@ const Wn = v.forwardRef(({ className: t, children: n, ...s }, a) => /* @__PURE__
572
556
  ),
573
557
  ...s,
574
558
  children: [
575
- /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(b.ItemIndicator, { children: /* @__PURE__ */ e.jsx(_t, { className: "h-4 w-4 fill-current" }) }) }),
559
+ /* @__PURE__ */ e.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(v.ItemIndicator, { children: /* @__PURE__ */ e.jsx(kt, { className: "h-4 w-4 fill-current" }) }) }),
576
560
  n
577
561
  ]
578
562
  }
579
563
  ));
580
- Wn.displayName = b.RadioItem.displayName;
581
- const Pt = v.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
582
- b.Label,
564
+ An.displayName = v.RadioItem.displayName;
565
+ const xt = g.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */ e.jsx(
566
+ v.Label,
583
567
  {
584
568
  ref: a,
585
569
  className: u(
@@ -590,44 +574,41 @@ const Pt = v.forwardRef(({ className: t, inset: n, ...s }, a) => /* @__PURE__ */
590
574
  ...s
591
575
  }
592
576
  ));
593
- Pt.displayName = b.Label.displayName;
594
- const kt = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
595
- b.Separator,
577
+ xt.displayName = v.Label.displayName;
578
+ const ft = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
579
+ v.Separator,
596
580
  {
597
581
  ref: s,
598
582
  className: u("-mx-1 my-1 h-px bg-muted", t),
599
583
  ...n
600
584
  }
601
585
  ));
602
- kt.displayName = b.Separator.displayName;
603
- const Zn = ({
586
+ ft.displayName = v.Separator.displayName;
587
+ const Dn = ({
604
588
  examples: t,
605
589
  onSelect: n
606
- }) => /* @__PURE__ */ e.jsxs(Tt, { children: [
607
- /* @__PURE__ */ e.jsx($t, { asChild: !0, children: /* @__PURE__ */ e.jsx(A, { variant: "outline", children: "Use Example" }) }),
608
- /* @__PURE__ */ e.jsx(Ae, { className: "max-w-72", children: t.map((s) => {
609
- var a;
610
- return /* @__PURE__ */ e.jsxs("div", { children: [
611
- /* @__PURE__ */ e.jsx(Pt, { children: s.mediaType }),
612
- /* @__PURE__ */ e.jsx(kt, {}),
613
- /* @__PURE__ */ e.jsx(Gn, { children: (a = s.examples) == null ? void 0 : a.map((r) => /* @__PURE__ */ e.jsx(
614
- De,
615
- {
616
- onSelect: () => n(r, s.mediaType),
617
- children: /* @__PURE__ */ e.jsx(
618
- "span",
619
- {
620
- className: "line-clamp-1",
621
- title: r.summary ?? r.name,
622
- children: r.summary ?? r.name
623
- }
624
- )
625
- },
626
- r.name
627
- )) })
628
- ] }, s.mediaType);
629
- }) })
630
- ] }), X = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
590
+ }) => /* @__PURE__ */ e.jsxs(pt, { children: [
591
+ /* @__PURE__ */ e.jsx(ht, { asChild: !0, children: /* @__PURE__ */ e.jsx(L, { variant: "outline", children: "Use Example" }) }),
592
+ /* @__PURE__ */ e.jsx(Te, { className: "max-w-72", children: t.map((s) => /* @__PURE__ */ e.jsxs("div", { children: [
593
+ /* @__PURE__ */ e.jsx(xt, { children: s.mediaType }),
594
+ /* @__PURE__ */ e.jsx(ft, {}),
595
+ /* @__PURE__ */ e.jsx(On, { children: s.examples?.map((a) => /* @__PURE__ */ e.jsx(
596
+ $e,
597
+ {
598
+ onSelect: () => n(a, s.mediaType),
599
+ children: /* @__PURE__ */ e.jsx(
600
+ "span",
601
+ {
602
+ className: "line-clamp-1",
603
+ title: a.summary ?? a.name,
604
+ children: a.summary ?? a.name
605
+ }
606
+ )
607
+ },
608
+ a.name
609
+ )) })
610
+ ] }, s.mediaType)) })
611
+ ] }), U = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
631
612
  "div",
632
613
  {
633
614
  ref: s,
@@ -638,8 +619,8 @@ const Zn = ({
638
619
  ...n
639
620
  }
640
621
  ));
641
- X.displayName = "Card";
642
- const Xn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
622
+ U.displayName = "Card";
623
+ const Vn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
643
624
  "div",
644
625
  {
645
626
  ref: s,
@@ -647,8 +628,8 @@ const Xn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
647
628
  ...n
648
629
  }
649
630
  ));
650
- Xn.displayName = "CardHeader";
651
- const Kn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
631
+ Vn.displayName = "CardHeader";
632
+ const Fn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
652
633
  "h3",
653
634
  {
654
635
  ref: s,
@@ -656,8 +637,8 @@ const Kn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
656
637
  ...n
657
638
  }
658
639
  ));
659
- Kn.displayName = "CardTitle";
660
- const Yn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
640
+ Fn.displayName = "CardTitle";
641
+ const zn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
661
642
  "p",
662
643
  {
663
644
  ref: s,
@@ -665,10 +646,10 @@ const Yn = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
665
646
  ...n
666
647
  }
667
648
  ));
668
- Yn.displayName = "CardDescription";
669
- const es = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx("div", { ref: s, className: u("p-6 pt-0", t), ...n }));
670
- es.displayName = "CardContent";
671
- const ts = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
649
+ zn.displayName = "CardDescription";
650
+ const Hn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx("div", { ref: s, className: u("p-6 pt-0", t), ...n }));
651
+ Hn.displayName = "CardContent";
652
+ const Mn = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
672
653
  "div",
673
654
  {
674
655
  ref: s,
@@ -676,9 +657,9 @@ const ts = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
676
657
  ...n
677
658
  }
678
659
  ));
679
- ts.displayName = "CardFooter";
680
- const de = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
681
- Ce.Root,
660
+ Mn.displayName = "CardFooter";
661
+ const se = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
662
+ xe.Root,
682
663
  {
683
664
  ref: s,
684
665
  className: u(
@@ -688,17 +669,17 @@ const de = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
688
669
  ),
689
670
  ...n,
690
671
  children: /* @__PURE__ */ e.jsx(
691
- Ce.Indicator,
672
+ xe.Indicator,
692
673
  {
693
674
  className: u("flex items-center justify-center text-current"),
694
- children: /* @__PURE__ */ e.jsx(Bt, { className: "h-4 w-4" })
675
+ children: /* @__PURE__ */ e.jsx(It, { className: "h-4 w-4" })
695
676
  }
696
677
  )
697
678
  }
698
679
  ));
699
- de.displayName = Ce.Root.displayName;
700
- const ns = ae.Root, It = v.forwardRef(({ className: t, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ e.jsx(ae.Portal, { children: /* @__PURE__ */ e.jsx(
701
- ae.Content,
680
+ se.displayName = xe.Root.displayName;
681
+ const _n = ee.Root, gt = g.forwardRef(({ className: t, align: n = "center", sideOffset: s = 4, ...a }, r) => /* @__PURE__ */ e.jsx(ee.Portal, { children: /* @__PURE__ */ e.jsx(
682
+ ee.Content,
702
683
  {
703
684
  ref: r,
704
685
  align: n,
@@ -710,8 +691,8 @@ const ns = ae.Root, It = v.forwardRef(({ className: t, align: n = "center", side
710
691
  ...a
711
692
  }
712
693
  ) }));
713
- It.displayName = ae.Content.displayName;
714
- const ss = ({
694
+ gt.displayName = ee.Content.displayName;
695
+ const Bn = ({
715
696
  value: t,
716
697
  options: n,
717
698
  onChange: s,
@@ -720,13 +701,13 @@ const ss = ({
720
701
  onEnterPress: i,
721
702
  ref: l
722
703
  }) => {
723
- const [c, d] = k(!1), [p, f] = k(!1), w = xn((h) => h.filtered.count), j = G(null);
724
- return /* @__PURE__ */ e.jsxs(ns, { open: c, children: [
725
- /* @__PURE__ */ e.jsx(hn, { children: /* @__PURE__ */ e.jsx(
726
- gn,
704
+ const [m, d] = $(!1), [p, x] = $(!1), N = tn((c) => c.filtered.count), y = M(null);
705
+ return /* @__PURE__ */ e.jsxs(_n, { open: m, children: [
706
+ /* @__PURE__ */ e.jsx(en, { children: /* @__PURE__ */ e.jsx(
707
+ sn,
727
708
  {
728
- ref: (h) => {
729
- j.current = h, typeof l == "function" ? l(h) : l && (l.current = h);
709
+ ref: (c) => {
710
+ y.current = c, typeof l == "function" ? l(c) : l && (l.current = c);
730
711
  },
731
712
  value: t,
732
713
  placeholder: r,
@@ -735,62 +716,61 @@ const ss = ({
735
716
  onBlur: () => {
736
717
  p || d(!1);
737
718
  },
738
- onKeyDown: (h) => {
739
- var g;
740
- h.key === "Enter" && (d(!1), (g = j.current) == null || g.blur(), i == null || i(h));
719
+ onKeyDown: (c) => {
720
+ c.key === "Enter" && (d(!1), y.current?.blur(), i?.(c));
741
721
  },
742
- onValueChange: (h) => s(h)
722
+ onValueChange: (c) => s(c)
743
723
  }
744
724
  ) }),
745
725
  /* @__PURE__ */ e.jsx(
746
- It,
726
+ gt,
747
727
  {
748
- onMouseEnter: () => f(!0),
749
- onMouseLeave: () => f(!1),
750
- onOpenAutoFocus: (h) => h.preventDefault(),
728
+ onMouseEnter: () => x(!0),
729
+ onMouseLeave: () => x(!1),
730
+ onOpenAutoFocus: (c) => c.preventDefault(),
751
731
  className: u("p-0 w-[--radix-popover-trigger-width]", {
752
- "border-0": w === 0
732
+ "border-0": N === 0
753
733
  }),
754
734
  align: "start",
755
735
  side: "bottom",
756
- onWheel: (h) => {
757
- h.stopPropagation();
736
+ onWheel: (c) => {
737
+ c.stopPropagation();
758
738
  },
759
- onTouchMove: (h) => {
760
- h.stopPropagation();
739
+ onTouchMove: (c) => {
740
+ c.stopPropagation();
761
741
  },
762
- children: /* @__PURE__ */ e.jsx(yn, { className: "max-h-[140px]", children: n.map((h) => /* @__PURE__ */ e.jsx(
763
- vn,
742
+ children: /* @__PURE__ */ e.jsx(an, { className: "max-h-[140px]", children: n.map((c) => /* @__PURE__ */ e.jsx(
743
+ rn,
764
744
  {
765
- value: h,
766
- onSelect: (g) => {
767
- s(g), d(!1);
745
+ value: c,
746
+ onSelect: (f) => {
747
+ s(f), d(!1);
768
748
  },
769
749
  className: "cursor-pointer",
770
- children: h
750
+ children: c
771
751
  },
772
- h
752
+ c
773
753
  )) })
774
754
  }
775
755
  )
776
756
  ] });
777
- }, re = ({ shouldFilter: t, ...n }) => /* @__PURE__ */ e.jsx(fn, { className: "bg-transparent", shouldFilter: t, children: /* @__PURE__ */ e.jsx(ss, { ...n }) }), Ee = (t, n) => {
778
- const s = v.forwardRef(({ className: a, asChild: r, ...i }, l) => {
779
- const c = r ? bn : t;
780
- return v.createElement(c, {
757
+ }, te = ({ shouldFilter: t, ...n }) => /* @__PURE__ */ e.jsx(nn, { className: "bg-transparent", shouldFilter: t, children: /* @__PURE__ */ e.jsx(Bn, { ...n }) }), Pe = (t, n) => {
758
+ const s = g.forwardRef(({ className: a, asChild: r, ...i }, l) => {
759
+ const m = r ? ln : t;
760
+ return g.createElement(m, {
781
761
  ...i,
782
762
  ref: l,
783
763
  className: typeof n == "function" ? n({ className: a }) : u(n, a)
784
764
  });
785
765
  });
786
766
  return s.displayName = `VariantComponent(${t})`, s;
787
- }, Ve = Ee(
767
+ }, Re = Pe(
788
768
  "div",
789
769
  "grid grid-cols-[2fr_3fr] gap-2 items-center"
790
- ), Fe = Ee(
770
+ ), ke = Pe(
791
771
  "div",
792
772
  "group hover:bg-accent px-3 grid col-span-full grid-cols-subgrid"
793
- ), as = Object.freeze([
773
+ ), Gn = Object.freeze([
794
774
  "Accept",
795
775
  "Accept-Encoding",
796
776
  "Accept-Language",
@@ -817,70 +797,66 @@ const ss = ({
817
797
  "Set-Cookie",
818
798
  "User-Agent",
819
799
  "X-Requested-With"
820
- ]), rs = ({
800
+ ]), Jn = ({
821
801
  control: t,
822
802
  headers: n
823
803
  }) => {
824
- const { fields: s, append: a, remove: r } = Re({
804
+ const { fields: s, append: a, remove: r } = Ne({
825
805
  control: t,
826
806
  name: "headers"
827
- }), { setValue: i, watch: l } = Oe(), c = G([]), d = G([]), p = l("headers"), f = an(() => {
807
+ }), { setValue: i, watch: l } = we(), m = M([]), d = M([]), p = l("headers"), x = Gt(() => {
828
808
  a({ name: "", value: "", active: !1 });
829
809
  }, [a]);
830
- se(() => {
831
- p.length === 0 && f();
832
- }, [p, f]);
833
- const w = (g) => {
834
- var m;
835
- (m = c.current[g]) == null || m.focus();
836
- }, j = (g) => {
837
- f(), requestAnimationFrame(() => {
838
- var m;
839
- return (m = d.current[g + 1]) == null ? void 0 : m.focus();
840
- });
841
- }, h = n.filter((g) => !p.some((m) => m.name === g.name)).map(({ name: g }) => g);
810
+ Y(() => {
811
+ p.length === 0 && x();
812
+ }, [p, x]);
813
+ const N = (f) => {
814
+ m.current[f]?.focus();
815
+ }, y = (f) => {
816
+ x(), requestAnimationFrame(() => d.current[f + 1]?.focus());
817
+ }, c = n.filter((f) => !p.some((h) => h.name === f.name)).map(({ name: f }) => f);
842
818
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
843
- /* @__PURE__ */ e.jsx(X, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(Ve, { children: s.map((g, m) => {
844
- const y = n.find(
845
- (x) => x.name === l(`headers.${m}.name`)
819
+ /* @__PURE__ */ e.jsx(U, { className: "overflow-hidden", children: /* @__PURE__ */ e.jsx(Re, { children: s.map((f, h) => {
820
+ const j = n.find(
821
+ (b) => b.name === l(`headers.${h}.name`)
846
822
  );
847
- return /* @__PURE__ */ e.jsxs(Fe, { children: [
823
+ return /* @__PURE__ */ e.jsxs(ke, { children: [
848
824
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 ", children: [
849
825
  /* @__PURE__ */ e.jsx(
850
- L,
826
+ E,
851
827
  {
852
828
  control: t,
853
- name: `headers.${m}.active`,
854
- render: ({ field: x }) => /* @__PURE__ */ e.jsx(
855
- de,
829
+ name: `headers.${h}.active`,
830
+ render: ({ field: b }) => /* @__PURE__ */ e.jsx(
831
+ se,
856
832
  {
857
- id: `headers.${m}.active`,
858
- checked: x.value,
859
- onCheckedChange: (T) => {
860
- x.onChange(T);
833
+ id: `headers.${h}.active`,
834
+ checked: b.value,
835
+ onCheckedChange: (k) => {
836
+ b.onChange(k);
861
837
  }
862
838
  }
863
839
  )
864
840
  }
865
841
  ),
866
842
  /* @__PURE__ */ e.jsx(
867
- L,
843
+ E,
868
844
  {
869
845
  control: t,
870
- name: `headers.${m}.name`,
871
- render: ({ field: x }) => /* @__PURE__ */ e.jsx(
872
- re,
846
+ name: `headers.${h}.name`,
847
+ render: ({ field: b }) => /* @__PURE__ */ e.jsx(
848
+ te,
873
849
  {
874
- ...x,
850
+ ...b,
875
851
  placeholder: "Name",
876
852
  className: "border-0 shadow-none bg-transparent text-xs font-mono",
877
- options: [...h, ...as],
878
- onEnterPress: () => w(m),
879
- onChange: (T) => {
880
- x.onChange(T), i(`headers.${m}.active`, !0);
853
+ options: [...c, ...Gn],
854
+ onEnterPress: () => N(h),
855
+ onChange: (k) => {
856
+ b.onChange(k), i(`headers.${h}.active`, !0);
881
857
  },
882
- ref: (T) => {
883
- d.current[m] = T;
858
+ ref: (k) => {
859
+ d.current[h] = k;
884
860
  }
885
861
  }
886
862
  )
@@ -889,32 +865,32 @@ const ss = ({
889
865
  ] }),
890
866
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
891
867
  /* @__PURE__ */ e.jsx(
892
- L,
868
+ E,
893
869
  {
894
870
  control: t,
895
- name: `headers.${m}.value`,
896
- render: ({ field: x }) => (y == null ? void 0 : y.enum) && y.enum.length > 0 ? /* @__PURE__ */ e.jsx(
897
- re,
871
+ name: `headers.${h}.value`,
872
+ render: ({ field: b }) => j?.enum && j.enum.length > 0 ? /* @__PURE__ */ e.jsx(
873
+ te,
898
874
  {
899
875
  shouldFilter: !1,
900
- value: x.value,
901
- options: y.enum ?? [],
902
- onChange: ($) => {
903
- x.onChange($), i(`headers.${m}.active`, !0);
876
+ value: b.value,
877
+ options: j.enum ?? [],
878
+ onChange: (I) => {
879
+ b.onChange(I), i(`headers.${h}.active`, !0);
904
880
  },
905
881
  className: "font-mono text-xs border-0"
906
882
  }
907
883
  ) : /* @__PURE__ */ e.jsx(
908
- qe,
884
+ Ce,
909
885
  {
910
886
  placeholder: "Value",
911
887
  className: "w-full border-0 shadow-none text-xs font-mono focus-visible:ring-0",
912
- ...x,
913
- ref: ($) => {
914
- c.current[m] = $;
888
+ ...b,
889
+ ref: (I) => {
890
+ m.current[h] = I;
915
891
  },
916
- onKeyDown: ($) => {
917
- $.key === "Enter" && $.currentTarget.value.trim() && j(m);
892
+ onKeyDown: (I) => {
893
+ I.key === "Enter" && I.currentTarget.value.trim() && y(h);
918
894
  },
919
895
  autoComplete: "off"
920
896
  }
@@ -922,52 +898,52 @@ const ss = ({
922
898
  }
923
899
  ),
924
900
  /* @__PURE__ */ e.jsx(
925
- W,
901
+ G,
926
902
  {
927
903
  size: "icon",
928
904
  variant: "ghost",
929
905
  className: "text-muted-foreground opacity-0 group-hover:opacity-100 rounded-full w-8 h-7",
930
- onClick: () => r(m),
906
+ onClick: () => r(h),
931
907
  type: "button",
932
- children: /* @__PURE__ */ e.jsx(Gt, { size: 16 })
908
+ children: /* @__PURE__ */ e.jsx(Ot, { size: 16 })
933
909
  }
934
910
  )
935
911
  ] })
936
- ] }, g.id);
912
+ ] }, f.id);
937
913
  }) }) }),
938
914
  /* @__PURE__ */ e.jsx("div", { className: "text-end", children: /* @__PURE__ */ e.jsx(
939
- W,
915
+ G,
940
916
  {
941
917
  className: "",
942
- onClick: f,
918
+ onClick: x,
943
919
  type: "button",
944
920
  variant: "secondary",
945
921
  children: "Add header"
946
922
  }
947
923
  ) })
948
924
  ] });
949
- }, os = vt(
925
+ }, Un = ot(
950
926
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
951
- ), _ = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
952
- Nt.Root,
927
+ ), z = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
928
+ dt.Root,
953
929
  {
954
930
  ref: s,
955
- className: u(os(), t),
931
+ className: u(Un(), t),
956
932
  ...n
957
933
  }
958
934
  ));
959
- _.displayName = Nt.Root.displayName;
960
- const ze = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
961
- Z.Root,
935
+ z.displayName = dt.Root.displayName;
936
+ const Ie = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
937
+ J.Root,
962
938
  {
963
939
  className: u("grid gap-2", t),
964
940
  ...n,
965
941
  ref: s
966
942
  }
967
943
  ));
968
- ze.displayName = Z.Root.displayName;
969
- const oe = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
970
- Z.Item,
944
+ Ie.displayName = J.Root.displayName;
945
+ const ne = g.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
946
+ J.Item,
971
947
  {
972
948
  ref: s,
973
949
  className: u(
@@ -975,81 +951,81 @@ const oe = v.forwardRef(({ className: t, ...n }, s) => /* @__PURE__ */ e.jsx(
975
951
  t
976
952
  ),
977
953
  ...n,
978
- children: /* @__PURE__ */ e.jsx(Z.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(Jt, { className: "h-2.5 w-2.5 fill-current text-current" }) })
954
+ children: /* @__PURE__ */ e.jsx(J.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(qt, { className: "h-2.5 w-2.5 fill-current text-current" }) })
979
955
  }
980
956
  ));
981
- oe.displayName = Z.Item.displayName;
982
- const Rt = ({
957
+ ne.displayName = J.Item.displayName;
958
+ const yt = ({
983
959
  identities: t,
984
960
  setValue: n,
985
961
  value: s
986
- }) => /* @__PURE__ */ e.jsx(X, { className: "w-full overflow-hidden", children: /* @__PURE__ */ e.jsxs(
987
- ze,
962
+ }) => /* @__PURE__ */ e.jsx(U, { className: "w-full overflow-hidden", children: /* @__PURE__ */ e.jsxs(
963
+ Ie,
988
964
  {
989
965
  onValueChange: (a) => n(a),
990
966
  value: s,
991
- defaultValue: B,
967
+ defaultValue: H,
992
968
  className: "gap-0",
993
- disabled: (t == null ? void 0 : t.length) === 0,
969
+ disabled: t?.length === 0,
994
970
  children: [
995
971
  /* @__PURE__ */ e.jsxs(
996
- _,
972
+ z,
997
973
  {
998
974
  className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
999
975
  htmlFor: "none",
1000
976
  children: [
1001
- /* @__PURE__ */ e.jsx(oe, { value: B, id: "none", children: "None" }),
1002
- /* @__PURE__ */ e.jsx(_, { htmlFor: "none", className: "ml-2", children: "None" })
977
+ /* @__PURE__ */ e.jsx(ne, { value: H, id: "none", children: "None" }),
978
+ /* @__PURE__ */ e.jsx(z, { htmlFor: "none", className: "ml-2", children: "None" })
1003
979
  ]
1004
980
  }
1005
981
  ),
1006
- t == null ? void 0 : t.map((a) => /* @__PURE__ */ e.jsxs(
1007
- _,
982
+ t?.map((a) => /* @__PURE__ */ e.jsxs(
983
+ z,
1008
984
  {
1009
985
  className: "h-12 border-b items-center flex p-4 cursor-pointer hover:bg-accent",
1010
986
  children: [
1011
- /* @__PURE__ */ e.jsx(oe, { value: a.id, id: a.id, children: a.label }),
1012
- /* @__PURE__ */ e.jsx(_, { htmlFor: a.id, className: "ml-2", children: a.label })
987
+ /* @__PURE__ */ e.jsx(ne, { value: a.id, id: a.id, children: a.label }),
988
+ /* @__PURE__ */ e.jsx(z, { htmlFor: a.id, className: "ml-2", children: a.label })
1013
989
  ]
1014
990
  },
1015
991
  a.id
1016
992
  ))
1017
993
  ]
1018
994
  }
1019
- ) }), is = ({
995
+ ) }), Qn = ({
1020
996
  onSubmit: t,
1021
997
  identities: n,
1022
998
  open: s,
1023
999
  onOpenChange: a
1024
1000
  }) => {
1025
- const [r, i] = k(void 0), [l, c] = k(!1);
1026
- return /* @__PURE__ */ e.jsx(Pe, { open: s, onOpenChange: a, children: /* @__PURE__ */ e.jsxs(ke, { children: [
1027
- /* @__PURE__ */ e.jsx(Ie, { children: "Select an auth identity" }),
1028
- /* @__PURE__ */ e.jsx(gt, { children: "Please select an identity for this request." }),
1001
+ const [r, i] = $(void 0), [l, m] = $(!1);
1002
+ return /* @__PURE__ */ e.jsx(ve, { open: s, onOpenChange: a, children: /* @__PURE__ */ e.jsxs(je, { children: [
1003
+ /* @__PURE__ */ e.jsx(be, { children: "Select an auth identity" }),
1004
+ /* @__PURE__ */ e.jsx(at, { children: "Please select an identity for this request." }),
1029
1005
  /* @__PURE__ */ e.jsx("div", { className: "max-h-80 overflow-auto", children: /* @__PURE__ */ e.jsx(
1030
- Rt,
1006
+ yt,
1031
1007
  {
1032
1008
  identities: n,
1033
1009
  setValue: i,
1034
1010
  value: r
1035
1011
  }
1036
1012
  ) }),
1037
- /* @__PURE__ */ e.jsxs(yt, { className: "flex flex-col gap-2", children: [
1013
+ /* @__PURE__ */ e.jsxs(rt, { className: "flex flex-col gap-2", children: [
1038
1014
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
1039
1015
  /* @__PURE__ */ e.jsx(
1040
- de,
1016
+ se,
1041
1017
  {
1042
1018
  id: "remember",
1043
1019
  checked: l,
1044
- onCheckedChange: (d) => c(
1020
+ onCheckedChange: (d) => m(
1045
1021
  d === "indeterminate" ? !1 : !!d
1046
1022
  )
1047
1023
  }
1048
1024
  ),
1049
- /* @__PURE__ */ e.jsx(_, { htmlFor: "remember", children: "Remember my choice" })
1025
+ /* @__PURE__ */ e.jsx(z, { htmlFor: "remember", children: "Remember my choice" })
1050
1026
  ] }),
1051
1027
  /* @__PURE__ */ e.jsx(
1052
- A,
1028
+ L,
1053
1029
  {
1054
1030
  onClick: () => t({ identity: r, rememberedIdentity: l }),
1055
1031
  children: "Send"
@@ -1057,24 +1033,24 @@ const Rt = ({
1057
1033
  )
1058
1034
  ] })
1059
1035
  ] }) });
1060
- }, ls = ({
1036
+ }, Wn = ({
1061
1037
  control: t,
1062
1038
  url: n
1063
1039
  }) => {
1064
- const { fields: s } = Re({
1040
+ const { fields: s } = Ne({
1065
1041
  control: t,
1066
1042
  name: "pathParams"
1067
1043
  }), a = [...s].sort(
1068
1044
  (r, i) => n.indexOf(`{${r.name}}`) - n.indexOf(`{${i.name}}`)
1069
1045
  );
1070
- return /* @__PURE__ */ e.jsx(X, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx(Ve, { children: a.map((r, i) => /* @__PURE__ */ e.jsxs(Fe, { children: [
1046
+ return /* @__PURE__ */ e.jsx(U, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx(Re, { children: a.map((r, i) => /* @__PURE__ */ e.jsxs(ke, { children: [
1071
1047
  /* @__PURE__ */ e.jsx(
1072
- L,
1048
+ E,
1073
1049
  {
1074
1050
  control: t,
1075
1051
  name: `pathParams.${i}.name`,
1076
1052
  render: () => /* @__PURE__ */ e.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ e.jsx(
1077
- St,
1053
+ ut,
1078
1054
  {
1079
1055
  slug: r.name,
1080
1056
  name: r.name,
@@ -1084,12 +1060,12 @@ const Rt = ({
1084
1060
  }
1085
1061
  ),
1086
1062
  /* @__PURE__ */ e.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ e.jsx(
1087
- L,
1063
+ E,
1088
1064
  {
1089
1065
  control: t,
1090
1066
  name: `pathParams.${i}.value`,
1091
1067
  render: ({ field: l }) => /* @__PURE__ */ e.jsx(
1092
- qe,
1068
+ Ce,
1093
1069
  {
1094
1070
  ...l,
1095
1071
  required: !0,
@@ -1100,30 +1076,30 @@ const Rt = ({
1100
1076
  }
1101
1077
  ) })
1102
1078
  ] }, r.id)) }) });
1103
- }, ds = Ee(
1079
+ }, Zn = Pe(
1104
1080
  "input",
1105
1081
  "px-2 bg-transparent h-6 font-mono text-xs m-2"
1106
- ), cs = ({
1082
+ ), Xn = ({
1107
1083
  control: t,
1108
1084
  queryParams: n
1109
1085
  }) => {
1110
- const { fields: s } = Re({
1086
+ const { fields: s } = Ne({
1111
1087
  control: t,
1112
1088
  name: "queryParams"
1113
- }), a = Oe(), r = n.map((i) => !!i.isRequired);
1114
- return /* @__PURE__ */ e.jsx(X, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("div", { className: "w-full ", children: /* @__PURE__ */ e.jsx(Ve, { children: s.map((i, l) => {
1115
- const c = n.find(
1089
+ }), a = we(), r = n.map((i) => !!i.isRequired);
1090
+ return /* @__PURE__ */ e.jsx(U, { className: "rounded-lg", children: /* @__PURE__ */ e.jsx("div", { className: "w-full ", children: /* @__PURE__ */ e.jsx(Re, { children: s.map((i, l) => {
1091
+ const m = n.find(
1116
1092
  (d) => d.name === a.watch(`queryParams.${l}.name`)
1117
1093
  );
1118
- return /* @__PURE__ */ e.jsxs(Fe, { children: [
1094
+ return /* @__PURE__ */ e.jsxs(ke, { children: [
1119
1095
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
1120
1096
  /* @__PURE__ */ e.jsx(
1121
- L,
1097
+ E,
1122
1098
  {
1123
1099
  control: t,
1124
1100
  name: `queryParams.${l}.active`,
1125
1101
  render: ({ field: d }) => /* @__PURE__ */ e.jsx(
1126
- de,
1102
+ se,
1127
1103
  {
1128
1104
  id: `queryParams.${l}.active`,
1129
1105
  className: "mr-2",
@@ -1134,10 +1110,10 @@ const Rt = ({
1134
1110
  }
1135
1111
  ),
1136
1112
  /* @__PURE__ */ e.jsx(
1137
- L,
1113
+ E,
1138
1114
  {
1139
1115
  control: t,
1140
- render: ({ field: d }) => r[l] ? /* @__PURE__ */ e.jsx(ds, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1116
+ render: ({ field: d }) => r[l] ? /* @__PURE__ */ e.jsx(Zn, { asChild: !0, children: /* @__PURE__ */ e.jsxs(
1141
1117
  "label",
1142
1118
  {
1143
1119
  className: "flex items-center cursor-pointer gap-1",
@@ -1149,7 +1125,7 @@ const Rt = ({
1149
1125
  ]
1150
1126
  }
1151
1127
  ) }) : /* @__PURE__ */ e.jsx(
1152
- re,
1128
+ te,
1153
1129
  {
1154
1130
  value: d.value,
1155
1131
  options: n.map((p) => p.name),
@@ -1164,25 +1140,25 @@ const Rt = ({
1164
1140
  )
1165
1141
  ] }, i.id),
1166
1142
  /* @__PURE__ */ e.jsx("div", { className: "flex justify-between items-center", children: /* @__PURE__ */ e.jsx(
1167
- L,
1143
+ E,
1168
1144
  {
1169
1145
  control: t,
1170
- render: ({ field: d }) => (c == null ? void 0 : c.enum) && c.enum.length > 0 ? /* @__PURE__ */ e.jsx(
1171
- re,
1146
+ render: ({ field: d }) => m?.enum && m.enum.length > 0 ? /* @__PURE__ */ e.jsx(
1147
+ te,
1172
1148
  {
1173
1149
  value: d.value,
1174
- options: c.enum ?? [],
1175
- onChange: (f) => {
1176
- d.onChange(f), a.setValue(`queryParams.${l}.active`, !0);
1150
+ options: m.enum ?? [],
1151
+ onChange: (x) => {
1152
+ d.onChange(x), a.setValue(`queryParams.${l}.active`, !0);
1177
1153
  },
1178
1154
  className: "font-mono text-xs border-0 ring-1 ring-ring"
1179
1155
  }
1180
1156
  ) : /* @__PURE__ */ e.jsx(
1181
- qe,
1157
+ Ce,
1182
1158
  {
1183
1159
  ...d,
1184
- onChange: (f) => {
1185
- d.onChange(f.target.value), f.target.value.length > 0 && a.setValue(`queryParams.${l}.active`, !0);
1160
+ onChange: (x) => {
1161
+ d.onChange(x.target.value), x.target.value.length > 0 && a.setValue(`queryParams.${l}.active`, !0);
1186
1162
  },
1187
1163
  placeholder: "Enter value",
1188
1164
  className: "w-full border-0 shadow-none focus-visible:ring-0 text-xs font-mono"
@@ -1193,8 +1169,8 @@ const Rt = ({
1193
1169
  ) })
1194
1170
  ] }, i.id);
1195
1171
  }) }) }) });
1196
- }, ms = xt()(
1197
- ft(
1172
+ }, Kn = nt()(
1173
+ st(
1198
1174
  (t, n) => ({
1199
1175
  rememberedIdentity: null,
1200
1176
  setRememberedIdentity: (s) => t({ rememberedIdentity: s }),
@@ -1204,25 +1180,25 @@ const Rt = ({
1204
1180
  }),
1205
1181
  {
1206
1182
  name: "identity-storage",
1207
- storage: Xt(() => sessionStorage)
1183
+ storage: Vt(() => sessionStorage)
1208
1184
  }
1209
1185
  )
1210
- ), us = ({
1186
+ ), Yn = ({
1211
1187
  open: t,
1212
1188
  setOpen: n,
1213
1189
  onSignUp: s,
1214
1190
  onLogin: a
1215
- }) => /* @__PURE__ */ e.jsx(Pe, { open: t, onOpenChange: n, children: /* @__PURE__ */ e.jsxs(ke, { children: [
1216
- /* @__PURE__ */ e.jsx(Ie, { children: "Welcome to the Playground!" }),
1217
- /* @__PURE__ */ e.jsx(gt, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
1218
- /* @__PURE__ */ e.jsxs(yt, { className: "flex gap-2 sm:justify-between", children: [
1219
- /* @__PURE__ */ e.jsx(A, { type: "button", variant: "ghost", onClick: () => n(!1), children: "Skip" }),
1191
+ }) => /* @__PURE__ */ e.jsx(ve, { open: t, onOpenChange: n, children: /* @__PURE__ */ e.jsxs(je, { children: [
1192
+ /* @__PURE__ */ e.jsx(be, { children: "Welcome to the Playground!" }),
1193
+ /* @__PURE__ */ e.jsx(at, { children: "The Playground is a tool for developers to test and explore our APIs. To use the Playground, you need to login." }),
1194
+ /* @__PURE__ */ e.jsxs(rt, { className: "flex gap-2 sm:justify-between", children: [
1195
+ /* @__PURE__ */ e.jsx(L, { type: "button", variant: "ghost", onClick: () => n(!1), children: "Skip" }),
1220
1196
  /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2", children: [
1221
- s && /* @__PURE__ */ e.jsx(A, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
1222
- a && /* @__PURE__ */ e.jsx(A, { type: "button", variant: "default", onClick: a, children: "Login" })
1197
+ s && /* @__PURE__ */ e.jsx(L, { type: "button", variant: "outline", onClick: s, children: "Sign Up" }),
1198
+ a && /* @__PURE__ */ e.jsx(L, { type: "button", variant: "default", onClick: a, children: "Login" })
1223
1199
  ] })
1224
1200
  ] })
1225
- ] }) }), I = {
1201
+ ] }) }), P = {
1226
1202
  green: "text-green-600",
1227
1203
  blue: "text-sky-600",
1228
1204
  yellow: "text-yellow-600",
@@ -1230,45 +1206,45 @@ const Rt = ({
1230
1206
  purple: "text-purple-600",
1231
1207
  indigo: "text-indigo-600",
1232
1208
  gray: "text-gray-600"
1233
- }, ps = {
1234
- get: I.green,
1235
- post: I.blue,
1236
- put: I.yellow,
1237
- delete: I.red,
1238
- patch: I.purple,
1239
- options: I.indigo,
1240
- head: I.gray,
1241
- trace: I.gray
1242
- }, hs = (t) => ps[t.toLocaleLowerCase()] ?? I.gray, xs = ({
1209
+ }, es = {
1210
+ get: P.green,
1211
+ post: P.blue,
1212
+ put: P.yellow,
1213
+ delete: P.red,
1214
+ patch: P.purple,
1215
+ options: P.indigo,
1216
+ head: P.gray,
1217
+ trace: P.gray
1218
+ }, ts = (t) => es[t.toLocaleLowerCase()] ?? P.gray, ns = ({
1243
1219
  method: t,
1244
1220
  url: n,
1245
1221
  headers: s,
1246
1222
  body: a
1247
1223
  }) => /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 font-mono text-xs", children: [
1248
1224
  /* @__PURE__ */ e.jsxs("div", { className: "gap-2 p-2 bg-muted rounded-md", children: [
1249
- /* @__PURE__ */ e.jsx("span", { className: u(hs(t), "font-semibold"), children: t }),
1225
+ /* @__PURE__ */ e.jsx("span", { className: u(ts(t), "font-semibold"), children: t }),
1250
1226
  " ",
1251
1227
  /* @__PURE__ */ e.jsx("span", { className: "break-all", children: n }),
1252
1228
  " ",
1253
1229
  /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "HTTP/1.1" })
1254
1230
  ] }),
1255
1231
  /* @__PURE__ */ e.jsxs("div", { className: "mx-1.5 flex flex-col gap-3", children: [
1256
- /* @__PURE__ */ e.jsxs(at, { defaultOpen: !0, children: [
1257
- /* @__PURE__ */ e.jsxs(rt, { className: "flex items-center gap-2 hover:text-primary group", children: [
1258
- /* @__PURE__ */ e.jsx(Q, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1232
+ /* @__PURE__ */ e.jsxs(Ge, { defaultOpen: !0, children: [
1233
+ /* @__PURE__ */ e.jsxs(Je, { className: "flex items-center gap-2 hover:text-primary group", children: [
1234
+ /* @__PURE__ */ e.jsx(B, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1259
1235
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
1260
1236
  ] }),
1261
- /* @__PURE__ */ e.jsx(ot, { children: /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2", children: s.map(([r, i]) => /* @__PURE__ */ e.jsxs(q, { children: [
1237
+ /* @__PURE__ */ e.jsx(Ue, { children: /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2", children: s.map(([r, i]) => /* @__PURE__ */ e.jsxs(q, { children: [
1262
1238
  /* @__PURE__ */ e.jsx("div", { className: "text-primary", children: r }),
1263
1239
  /* @__PURE__ */ e.jsx("div", { className: "break-all", children: i })
1264
1240
  ] }, r)) }) })
1265
1241
  ] }),
1266
- /* @__PURE__ */ e.jsxs(at, { defaultOpen: !0, children: [
1267
- /* @__PURE__ */ e.jsxs(rt, { className: "flex items-center gap-2 hover:text-primary group", children: [
1268
- /* @__PURE__ */ e.jsx(Q, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1242
+ /* @__PURE__ */ e.jsxs(Ge, { defaultOpen: !0, children: [
1243
+ /* @__PURE__ */ e.jsxs(Je, { className: "flex items-center gap-2 hover:text-primary group", children: [
1244
+ /* @__PURE__ */ e.jsx(B, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1269
1245
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Body" })
1270
1246
  ] }),
1271
- /* @__PURE__ */ e.jsx(ot, { children: /* @__PURE__ */ e.jsx("div", { className: "pl-0 pt-2", children: /* @__PURE__ */ e.jsx(
1247
+ /* @__PURE__ */ e.jsx(Ue, { children: /* @__PURE__ */ e.jsx("div", { className: "pl-0 pt-2", children: /* @__PURE__ */ e.jsx(
1272
1248
  "div",
1273
1249
  {
1274
1250
  className: u(
@@ -1280,29 +1256,29 @@ const Rt = ({
1280
1256
  ) }) })
1281
1257
  ] })
1282
1258
  ] })
1283
- ] }), lt = Le.Root, dt = Le.CollapsibleTrigger, ct = Le.CollapsibleContent;
1284
- function He(t) {
1259
+ ] }), We = Se.Root, Ze = Se.CollapsibleTrigger, Xe = Se.CollapsibleContent;
1260
+ function Oe(t) {
1285
1261
  if (t === null) return "null";
1286
1262
  if (Array.isArray(t)) {
1287
1263
  if (t.length === 0) return "any[]";
1288
1264
  const n = t[0];
1289
- return n === void 0 ? "any[]" : `${He(n)}[]`;
1265
+ return n === void 0 ? "any[]" : `${Oe(n)}[]`;
1290
1266
  }
1291
- return typeof t == "object" ? fs(t) : typeof t;
1267
+ return typeof t == "object" ? ss(t) : typeof t;
1292
1268
  }
1293
- function fs(t, n = "") {
1269
+ function ss(t, n = "") {
1294
1270
  const s = ["{"];
1295
1271
  for (const [a, r] of Object.entries(t)) {
1296
- const i = He(r);
1272
+ const i = Oe(r);
1297
1273
  s.push(` ${a}: ${i};`);
1298
1274
  }
1299
1275
  return s.push("}"), s.join(`
1300
1276
  `);
1301
1277
  }
1302
- function gs(t) {
1303
- return { lines: [`type GeneratedType = ${He(t)};`] };
1278
+ function as(t) {
1279
+ return { lines: [`type GeneratedType = ${Oe(t)};`] };
1304
1280
  }
1305
- const ys = {
1281
+ const rs = {
1306
1282
  200: "OK",
1307
1283
  201: "Created",
1308
1284
  202: "Accepted",
@@ -1313,35 +1289,31 @@ const ys = {
1313
1289
  404: "Not Found",
1314
1290
  405: "Method Not Allowed",
1315
1291
  500: "Internal Server Error"
1316
- }, mt = (t) => {
1292
+ }, Ke = (t) => {
1317
1293
  const n = Math.floor(Math.log(t) / Math.log(1e3));
1318
1294
  return `${(t / Math.pow(1e3, n)).toFixed(
1319
1295
  n ? 2 : 0
1320
1296
  )} ${n ? `${"kMGTPEZY"[n - 1]}B` : "B"}`;
1321
- }, vs = (t) => {
1322
- var s;
1323
- return (s = Object.entries({
1324
- "application/json": "json",
1325
- "text/json": "json",
1326
- "text/html": "html",
1327
- "text/css": "css",
1328
- "text/javascript": "javascript",
1329
- "application/xml": "xml",
1330
- "application/xhtml+xml": "xhtml"
1331
- }).find(
1332
- ([a]) => t.includes(a)
1333
- )) == null ? void 0 : s[1];
1334
- }, js = (t) => {
1335
- var s;
1336
- const n = ((s = t.find(([a, r]) => a === "Content-Type")) == null ? void 0 : s[1]) || "";
1337
- return vs(n);
1338
- }, bs = (t) => {
1297
+ }, os = (t) => Object.entries({
1298
+ "application/json": "json",
1299
+ "text/json": "json",
1300
+ "text/html": "html",
1301
+ "text/css": "css",
1302
+ "text/javascript": "javascript",
1303
+ "application/xml": "xml",
1304
+ "application/xhtml+xml": "xhtml"
1305
+ }).find(
1306
+ ([s]) => t.includes(s)
1307
+ )?.[1], is = (t) => {
1308
+ const n = t.find(([s, a]) => s === "Content-Type")?.[1] || "";
1309
+ return os(n);
1310
+ }, ls = (t) => {
1339
1311
  try {
1340
1312
  return JSON.stringify(JSON.parse(t), null, 2);
1341
1313
  } catch {
1342
1314
  return null;
1343
1315
  }
1344
- }, Ns = (t) => {
1316
+ }, ds = (t) => {
1345
1317
  const n = [
1346
1318
  "Content-Type",
1347
1319
  "Content-Length",
@@ -1355,7 +1327,7 @@ const ys = {
1355
1327
  const r = n.indexOf(s.toLowerCase()), i = n.indexOf(a.toLowerCase());
1356
1328
  return r === i ? 0 : r === -1 ? 1 : i === -1 ? -1 : r - i;
1357
1329
  });
1358
- }, ut = 64e3, ws = ({
1330
+ }, Ye = 64e3, cs = ({
1359
1331
  body: t = "",
1360
1332
  headers: n,
1361
1333
  status: s,
@@ -1363,54 +1335,53 @@ const ys = {
1363
1335
  size: r,
1364
1336
  url: i
1365
1337
  }) => {
1366
- var g;
1367
- const l = js(n), c = bs(t), d = c || t, [p, f] = k(
1368
- c ? "formatted" : "raw"
1369
- ), w = Kt({
1338
+ const l = is(n), m = ls(t), d = m || t, [p, x] = $(
1339
+ m ? "formatted" : "raw"
1340
+ ), N = Ft({
1370
1341
  queryKey: ["types", d],
1371
- queryFn: async () => gs(JSON.parse(d)),
1342
+ queryFn: async () => as(JSON.parse(d)),
1372
1343
  enabled: p === "types"
1373
- }), j = Ns([...n]), h = r > ut;
1344
+ }), y = ds([...n]), c = r > Ye;
1374
1345
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 h-full overflow-auto max-h-[calc(100vh-220px)] ", children: [
1375
- /* @__PURE__ */ e.jsxs(lt, { defaultOpen: !0, children: [
1376
- /* @__PURE__ */ e.jsxs(dt, { className: "flex items-center gap-2 hover:text-primary group", children: [
1377
- /* @__PURE__ */ e.jsx(Q, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1346
+ /* @__PURE__ */ e.jsxs(We, { defaultOpen: !0, children: [
1347
+ /* @__PURE__ */ e.jsxs(Ze, { className: "flex items-center gap-2 hover:text-primary group", children: [
1348
+ /* @__PURE__ */ e.jsx(B, { className: "h-4 w-4 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1378
1349
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Headers" })
1379
1350
  ] }),
1380
- /* @__PURE__ */ e.jsx(ct, { children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2 font-mono text-xs", children: [
1381
- j.slice(0, 5).map(([m, y]) => /* @__PURE__ */ e.jsxs(q, { children: [
1382
- /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: m }),
1383
- /* @__PURE__ */ e.jsx("div", { className: "break-all", children: y })
1384
- ] }, m)),
1385
- j.length > 5 && /* @__PURE__ */ e.jsxs(lt, { className: "col-span-full grid-cols-subgrid grid", children: [
1386
- /* @__PURE__ */ e.jsxs(dt, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
1387
- /* @__PURE__ */ e.jsx(Q, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1351
+ /* @__PURE__ */ e.jsx(Xe, { children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-[auto,1fr] gap-x-8 gap-y-1 pl-1.5 pt-2 font-mono text-xs", children: [
1352
+ y.slice(0, 5).map(([f, h]) => /* @__PURE__ */ e.jsxs(q, { children: [
1353
+ /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: f }),
1354
+ /* @__PURE__ */ e.jsx("div", { className: "break-all", children: h })
1355
+ ] }, f)),
1356
+ y.length > 5 && /* @__PURE__ */ e.jsxs(We, { className: "col-span-full grid-cols-subgrid grid", children: [
1357
+ /* @__PURE__ */ e.jsxs(Ze, { className: "col-span-2 text-xs text-muted-foreground hover:text-primary flex items-center gap-1 py-1", children: [
1358
+ /* @__PURE__ */ e.jsx(B, { className: "h-3 w-3 transition-transform duration-200 group-data-[state=open]:rotate-[90deg]" }),
1388
1359
  "Show ",
1389
- j.length - 5,
1360
+ y.length - 5,
1390
1361
  " more headers"
1391
1362
  ] }),
1392
- /* @__PURE__ */ e.jsx(ct, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: j.slice(5).map(([m, y]) => /* @__PURE__ */ e.jsxs(q, { children: [
1393
- /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: m }),
1394
- /* @__PURE__ */ e.jsx("div", { className: "break-all", children: y })
1395
- ] }, m)) })
1363
+ /* @__PURE__ */ e.jsx(Xe, { className: "col-span-full grid grid-cols-subgrid gap-x-8 gap-y-1 ", children: y.slice(5).map(([f, h]) => /* @__PURE__ */ e.jsxs(q, { children: [
1364
+ /* @__PURE__ */ e.jsx("div", { className: "text-primary whitespace-pre", children: f }),
1365
+ /* @__PURE__ */ e.jsx("div", { className: "break-all", children: h })
1366
+ ] }, f)) })
1396
1367
  ] })
1397
1368
  ] }) })
1398
1369
  ] }),
1399
- /* @__PURE__ */ e.jsxs(wt, { className: "shadow-none", children: [
1400
- h && /* @__PURE__ */ e.jsxs(jn, { type: "info", className: "my-0 p-2", children: [
1370
+ /* @__PURE__ */ e.jsxs(ct, { className: "shadow-none", children: [
1371
+ c && /* @__PURE__ */ e.jsxs(on, { type: "info", className: "my-0 p-2", children: [
1401
1372
  "Code highlight is disabled for responses larger than",
1402
1373
  " ",
1403
- mt(ut)
1374
+ Ke(Ye)
1404
1375
  ] }),
1405
1376
  /* @__PURE__ */ e.jsx(
1406
- $n,
1377
+ hn,
1407
1378
  {
1408
- language: p === "types" ? "typescript" : p === "raw" ? c ? "plain" : l : "json",
1379
+ language: p === "types" ? "typescript" : p === "raw" ? m ? "plain" : l : "json",
1409
1380
  showCopy: "always",
1410
- disabled: h,
1381
+ disabled: c,
1411
1382
  noBackground: !0,
1412
1383
  className: "overflow-x-auto p-4 text-xs max-h-[calc(83.333vh-180px)]",
1413
- code: (p === "raw" ? t : p === "types" ? (g = w.data) == null ? void 0 : g.lines.join(`
1384
+ code: (p === "raw" ? t : p === "types" ? N.data?.lines.join(`
1414
1385
  `) : d) ?? ""
1415
1386
  }
1416
1387
  )
@@ -1422,7 +1393,7 @@ const ys = {
1422
1393
  " ",
1423
1394
  s,
1424
1395
  " ",
1425
- ys[s] ?? ""
1396
+ rs[s] ?? ""
1426
1397
  ] }),
1427
1398
  /* @__PURE__ */ e.jsxs("div", { children: [
1428
1399
  /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "Time" }),
@@ -1433,48 +1404,47 @@ const ys = {
1433
1404
  /* @__PURE__ */ e.jsxs("div", { children: [
1434
1405
  /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground", children: "Size" }),
1435
1406
  " ",
1436
- mt(r)
1407
+ Ke(r)
1437
1408
  ] })
1438
1409
  ] }),
1439
- c && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
1440
- je,
1410
+ m && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs(
1411
+ me,
1441
1412
  {
1442
1413
  value: p,
1443
- onValueChange: (m) => f(m),
1414
+ onValueChange: (f) => x(f),
1444
1415
  children: [
1445
- /* @__PURE__ */ e.jsx(be, { className: "min-w-32", children: /* @__PURE__ */ e.jsx(Ne, { placeholder: "View" }) }),
1446
- /* @__PURE__ */ e.jsxs(we, { children: [
1447
- /* @__PURE__ */ e.jsx(U, { value: "formatted", children: "Formatted" }),
1448
- /* @__PURE__ */ e.jsx(U, { value: "raw", children: "Raw" }),
1449
- /* @__PURE__ */ e.jsx(U, { value: "types", children: "Types" })
1416
+ /* @__PURE__ */ e.jsx(ue, { className: "min-w-32", children: /* @__PURE__ */ e.jsx(pe, { placeholder: "View" }) }),
1417
+ /* @__PURE__ */ e.jsxs(he, { children: [
1418
+ /* @__PURE__ */ e.jsx(_, { value: "formatted", children: "Formatted" }),
1419
+ /* @__PURE__ */ e.jsx(_, { value: "raw", children: "Raw" }),
1420
+ /* @__PURE__ */ e.jsx(_, { value: "types", children: "Types" })
1450
1421
  ] })
1451
1422
  ]
1452
1423
  }
1453
1424
  ) })
1454
1425
  ] })
1455
1426
  ] });
1456
- }, Cs = ({
1427
+ }, ms = ({
1457
1428
  queryMutation: t,
1458
1429
  showPathParamsWarning: n,
1459
1430
  showLongRunningWarning: s,
1460
1431
  onCancel: a
1461
1432
  }) => {
1462
- var i;
1463
- const r = ((((i = t.data) == null ? void 0 : i.status) ?? 0) / 100).toFixed(0);
1433
+ const r = ((t.data?.status ?? 0) / 100).toFixed(0);
1464
1434
  return /* @__PURE__ */ e.jsx("div", { className: "min-w-0 p-4 py-8 bg-muted/50", children: t.error ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2", children: [
1465
- n && /* @__PURE__ */ e.jsx(wn, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1466
- /* @__PURE__ */ e.jsxs(wt, { children: [
1467
- /* @__PURE__ */ e.jsx(Cn, { children: /* @__PURE__ */ e.jsx(Sn, { children: "Request failed" }) }),
1468
- /* @__PURE__ */ e.jsxs(Tn, { children: [
1435
+ n && /* @__PURE__ */ e.jsx(cn, { type: "caution", children: "Some path parameters are missing values. Please fill them in to ensure the request is sent correctly." }),
1436
+ /* @__PURE__ */ e.jsxs(ct, { children: [
1437
+ /* @__PURE__ */ e.jsx(mn, { children: /* @__PURE__ */ e.jsx(un, { children: "Request failed" }) }),
1438
+ /* @__PURE__ */ e.jsxs(pn, { children: [
1469
1439
  "Error:",
1470
1440
  " ",
1471
1441
  t.error.message || String(t.error) || "Unexpected error"
1472
1442
  ] })
1473
1443
  ] })
1474
- ] }) : t.data ? /* @__PURE__ */ e.jsxs(jt, { defaultValue: "response", children: [
1475
- /* @__PURE__ */ e.jsxs(bt, { children: [
1476
- /* @__PURE__ */ e.jsx(H, { value: "request", children: "Request" }),
1477
- /* @__PURE__ */ e.jsxs(H, { value: "response", children: [
1444
+ ] }) : t.data ? /* @__PURE__ */ e.jsxs(it, { defaultValue: "response", children: [
1445
+ /* @__PURE__ */ e.jsxs(lt, { children: [
1446
+ /* @__PURE__ */ e.jsx(V, { value: "request", children: "Request" }),
1447
+ /* @__PURE__ */ e.jsxs(V, { value: "response", children: [
1478
1448
  "Response",
1479
1449
  /* @__PURE__ */ e.jsxs(
1480
1450
  "span",
@@ -1495,9 +1465,9 @@ const ys = {
1495
1465
  )
1496
1466
  ] })
1497
1467
  ] }),
1498
- /* @__PURE__ */ e.jsx(M, { value: "request", children: /* @__PURE__ */ e.jsx(xs, { ...t.data.request }) }),
1499
- /* @__PURE__ */ e.jsx(M, { value: "response", children: /* @__PURE__ */ e.jsx(
1500
- ws,
1468
+ /* @__PURE__ */ e.jsx(F, { value: "request", children: /* @__PURE__ */ e.jsx(ns, { ...t.data.request }) }),
1469
+ /* @__PURE__ */ e.jsx(F, { value: "response", children: /* @__PURE__ */ e.jsx(
1470
+ cs,
1501
1471
  {
1502
1472
  status: t.data.status,
1503
1473
  time: t.data.time,
@@ -1508,7 +1478,7 @@ const ys = {
1508
1478
  }
1509
1479
  ) })
1510
1480
  ] }) : /* @__PURE__ */ e.jsx("div", { className: "grid place-items-center h-full", children: t.isPending ? /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 items-center mt-20", children: [
1511
- /* @__PURE__ */ e.jsx(Nn, { size: 20 }),
1481
+ /* @__PURE__ */ e.jsx(dn, { size: 20 }),
1512
1482
  /* @__PURE__ */ e.jsxs(
1513
1483
  "div",
1514
1484
  {
@@ -1519,7 +1489,7 @@ const ys = {
1519
1489
  children: [
1520
1490
  "Looks like the request is taking longer than expected.",
1521
1491
  /* @__PURE__ */ e.jsx(
1522
- W,
1492
+ G,
1523
1493
  {
1524
1494
  type: "button",
1525
1495
  onClick: a,
@@ -1533,47 +1503,43 @@ const ys = {
1533
1503
  }
1534
1504
  )
1535
1505
  ] }) : /* @__PURE__ */ e.jsx("span", { className: "text-[16px] font-semibold text-muted-foreground", children: "Send a request first to see the response here" }) }) });
1536
- }, Ss = ({
1506
+ }, us = ({
1537
1507
  identities: t,
1538
1508
  formRef: n,
1539
1509
  disabled: s
1540
1510
  }) => {
1541
- const { setValue: a } = Oe(), [r, i] = k();
1542
- return t.length === 0 ? /* @__PURE__ */ e.jsx(A, { disabled: s, children: "Send" }) : /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
1511
+ const { setValue: a } = we(), [r, i] = $();
1512
+ return t.length === 0 ? /* @__PURE__ */ e.jsx(L, { disabled: s, children: "Send" }) : /* @__PURE__ */ e.jsxs("div", { className: "flex", children: [
1543
1513
  /* @__PURE__ */ e.jsx(
1544
- A,
1514
+ L,
1545
1515
  {
1546
1516
  className: "rounded-r-none inset-shadow-sm",
1547
1517
  disabled: s,
1548
- onClick: () => {
1549
- var l;
1550
- return (l = n == null ? void 0 : n.current) == null ? void 0 : l.requestSubmit();
1551
- },
1518
+ onClick: () => n?.current?.requestSubmit(),
1552
1519
  children: "Send"
1553
1520
  }
1554
1521
  ),
1555
- /* @__PURE__ */ e.jsxs(Tt, { children: [
1556
- /* @__PURE__ */ e.jsx($t, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1557
- A,
1522
+ /* @__PURE__ */ e.jsxs(pt, { children: [
1523
+ /* @__PURE__ */ e.jsx(ht, { asChild: !0, children: /* @__PURE__ */ e.jsx(
1524
+ L,
1558
1525
  {
1559
1526
  disabled: s,
1560
1527
  className: "rounded-l-none border-l border-border/40 inset-shadow-sm w-6",
1561
1528
  size: "icon",
1562
- children: /* @__PURE__ */ e.jsx(Ut, { className: "w-4 h-4" })
1529
+ children: /* @__PURE__ */ e.jsx(Et, { className: "w-4 h-4" })
1563
1530
  }
1564
1531
  ) }),
1565
- /* @__PURE__ */ e.jsx(ze, { value: r, children: /* @__PURE__ */ e.jsx(Ae, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: B, label: "None" }, ...t].map(
1532
+ /* @__PURE__ */ e.jsx(Ie, { value: r, children: /* @__PURE__ */ e.jsx(Te, { className: "w-56", align: "end", alignOffset: -150, children: [{ id: H, label: "None" }, ...t].map(
1566
1533
  (l) => /* @__PURE__ */ e.jsxs(
1567
- De,
1534
+ $e,
1568
1535
  {
1569
1536
  onClick: () => {
1570
- var c;
1571
- i(l.id), a("identity", l.id), (c = n == null ? void 0 : n.current) == null || c.requestSubmit();
1537
+ i(l.id), a("identity", l.id), n?.current?.requestSubmit();
1572
1538
  },
1573
1539
  onMouseEnter: () => i(l.id),
1574
1540
  onMouseLeave: () => i(void 0),
1575
1541
  children: [
1576
- /* @__PURE__ */ e.jsx(oe, { value: l.id, className: "mr-2" }),
1542
+ /* @__PURE__ */ e.jsx(ne, { value: l.id, className: "mr-2" }),
1577
1543
  l.label
1578
1544
  ]
1579
1545
  },
@@ -1582,13 +1548,13 @@ const ys = {
1582
1548
  ) }) })
1583
1549
  ] })
1584
1550
  ] });
1585
- }, B = "__none", ve = {
1551
+ }, H = "__none", ce = {
1586
1552
  Plain: "text/plain",
1587
1553
  JSON: "application/json",
1588
1554
  XML: "application/xml",
1589
1555
  YAML: "application/yaml",
1590
1556
  CSV: "text/csv"
1591
- }, Ts = ({
1557
+ }, ps = ({
1592
1558
  server: t,
1593
1559
  servers: n = [],
1594
1560
  url: s,
@@ -1596,18 +1562,17 @@ const ys = {
1596
1562
  headers: r = [],
1597
1563
  queryParams: i = [],
1598
1564
  pathParams: l = [],
1599
- defaultBody: c = "",
1565
+ defaultBody: m = "",
1600
1566
  examples: d,
1601
1567
  requiresLogin: p = !1,
1602
- onLogin: f,
1603
- onSignUp: w
1568
+ onLogin: x,
1569
+ onSignUp: N
1604
1570
  }) => {
1605
- var Ze, Xe;
1606
- const { selectedServer: j, setSelectedServer: h } = _n(
1571
+ const { selectedServer: y, setSelectedServer: c } = kn(
1607
1572
  n.map((o) => ({ url: o }))
1608
- ), [g, m] = k(!1), y = Yt(), { setRememberedIdentity: x, getRememberedIdentity: T } = ms(), [, $] = rn(), [ce, K] = k(!1), [Y, D] = k(!1), ee = G(void 0), Be = un(x), { register: Ge, control: te, handleSubmit: Je, watch: Ue, setValue: V, ...me } = dn({
1573
+ ), [f, h] = $(!1), j = zt(), { setRememberedIdentity: b, getRememberedIdentity: k } = Kn(), [, I] = Jt(), [bt, Nt] = $(!1), [wt, Q] = $(!1), W = M(void 0), Le = Kt(b), { register: Ae, control: Z, handleSubmit: De, watch: Ve, setValue: D, ...ae } = Wt({
1609
1574
  defaultValues: {
1610
- body: c,
1575
+ body: m,
1611
1576
  bodyContentType: "JSON",
1612
1577
  queryParams: i.map((o) => ({
1613
1578
  name: o.name,
@@ -1637,150 +1602,146 @@ const ys = {
1637
1602
  active: !1
1638
1603
  }
1639
1604
  ]),
1640
- identity: T(
1641
- ((Ze = y.data) == null ? void 0 : Ze.map((o) => o.id)) ?? []
1605
+ identity: k(
1606
+ j.data?.map((o) => o.id) ?? []
1642
1607
  )
1643
1608
  }
1644
- }), C = Ue(), Qe = G(null);
1645
- se(() => {
1646
- C.identity && Be.current(C.identity);
1647
- }, [Be, C.identity]);
1648
- const ue = ln({
1609
+ }), C = Ve(), Fe = M(null);
1610
+ Y(() => {
1611
+ C.identity && Le.current(C.identity);
1612
+ }, [Le, C.identity]);
1613
+ const re = Qt({
1649
1614
  mutationFn: async (o) => {
1650
- var Ke, Ye;
1651
1615
  const S = performance.now(), O = !o.headers.some(
1652
- (N) => N.active && N.name.toLowerCase() === "content-type"
1653
- ), F = Object.fromEntries([
1654
- ...o.headers.filter((N) => N.name && N.active).map((N) => [N.name, N.value]),
1655
- ...O ? [["content-type", ve[o.bodyContentType]]] : []
1656
- ]), P = new Request(
1657
- Bn(t ?? j, s, o),
1616
+ (w) => w.active && w.name.toLowerCase() === "content-type"
1617
+ ), K = Object.fromEntries([
1618
+ ...o.headers.filter((w) => w.name && w.active).map((w) => [w.name, w.value]),
1619
+ ...O ? [["content-type", ce[o.bodyContentType]]] : []
1620
+ ]), T = new Request(
1621
+ In(t ?? y, s, o),
1658
1622
  {
1659
1623
  method: a.toUpperCase(),
1660
- headers: F,
1624
+ headers: K,
1661
1625
  body: o.body ? o.body : void 0
1662
1626
  }
1663
1627
  );
1664
- o.identity !== B && await ((Ye = (Ke = y.data) == null ? void 0 : Ke.find((N) => N.id === o.identity)) == null ? void 0 : Ye.authorizeRequest(P));
1665
- const z = setTimeout(
1666
- () => D(!0),
1628
+ o.identity !== H && await j.data?.find((w) => w.id === o.identity)?.authorizeRequest(T);
1629
+ const He = setTimeout(
1630
+ () => Q(!0),
1667
1631
  3210
1668
1632
  );
1669
- ee.current = new AbortController();
1633
+ W.current = new AbortController();
1670
1634
  try {
1671
- const N = await fetch(P, {
1672
- signal: ee.current.signal
1635
+ const w = await fetch(T, {
1636
+ signal: W.current.signal
1673
1637
  });
1674
- clearTimeout(z), D(!1);
1675
- const Et = performance.now() - S, et = await N.text(), Vt = new URL(P.url);
1638
+ clearTimeout(He), Q(!1);
1639
+ const $t = performance.now() - S, Me = await w.text(), Pt = new URL(T.url);
1676
1640
  return {
1677
- status: N.status,
1678
- headers: Array.from(N.headers.entries()),
1679
- size: et.length,
1680
- body: et,
1681
- time: Et,
1641
+ status: w.status,
1642
+ headers: Array.from(w.headers.entries()),
1643
+ size: Me.length,
1644
+ body: Me,
1645
+ time: $t,
1682
1646
  request: {
1683
- method: P.method.toUpperCase(),
1684
- url: P.url,
1647
+ method: T.method.toUpperCase(),
1648
+ url: T.url,
1685
1649
  headers: [
1686
- ["Host", Vt.host],
1650
+ ["Host", Pt.host],
1687
1651
  ["User-Agent", "Zudoku Playground"],
1688
- ...Array.from(P.headers.entries())
1652
+ ...Array.from(T.headers.entries())
1689
1653
  ],
1690
1654
  body: o.body ? o.body : void 0
1691
1655
  }
1692
1656
  };
1693
- } catch (N) {
1694
- throw clearTimeout(z), D(!1), N instanceof TypeError ? new Error(
1657
+ } catch (w) {
1658
+ throw clearTimeout(He), Q(!1), w instanceof TypeError ? new Error(
1695
1659
  "The request failed, possibly due to network issues or CORS policy."
1696
- ) : N;
1660
+ ) : w;
1697
1661
  }
1698
1662
  }
1699
1663
  });
1700
- se(() => () => {
1701
- var o;
1702
- (o = ee.current) == null || o.abort();
1664
+ Y(() => () => {
1665
+ W.current?.abort();
1703
1666
  }, []);
1704
- const Lt = /* @__PURE__ */ e.jsx(
1705
- zn,
1667
+ const Ct = /* @__PURE__ */ e.jsx(
1668
+ $n,
1706
1669
  {
1707
1670
  path: s,
1708
1671
  renderParam: ({ name: o, originalValue: S, index: O }) => {
1709
- var P;
1710
- const F = (P = C.pathParams.find(
1711
- (z) => z.name === o
1712
- )) == null ? void 0 : P.value;
1672
+ const K = C.pathParams.find(
1673
+ (T) => T.name === o
1674
+ )?.value;
1713
1675
  return /* @__PURE__ */ e.jsx(
1714
- St,
1676
+ ut,
1715
1677
  {
1716
1678
  name: o,
1717
1679
  backgroundOpacity: "0",
1718
1680
  slug: o,
1719
- onClick: () => me.setFocus(`pathParams.${O}.value`),
1720
- children: F || S
1681
+ onClick: () => ae.setFocus(`pathParams.${O}.value`),
1682
+ children: K || S
1721
1683
  }
1722
1684
  );
1723
1685
  }
1724
1686
  }
1725
- ), We = C.queryParams.filter((o) => o.active).map((o, S, O) => /* @__PURE__ */ e.jsxs(q, { children: [
1687
+ ), ze = C.queryParams.filter((o) => o.active).map((o, S, O) => /* @__PURE__ */ e.jsxs(q, { children: [
1726
1688
  o.name,
1727
1689
  "=",
1728
1690
  encodeURIComponent(o.value).replaceAll("%20", "+"),
1729
1691
  S < O.length - 1 && "&",
1730
1692
  /* @__PURE__ */ e.jsx("wbr", {})
1731
- ] }, o.name)), At = /* @__PURE__ */ e.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: t ? /* @__PURE__ */ e.jsx("span", { children: t.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : n.length > 1 && /* @__PURE__ */ e.jsxs(
1732
- je,
1693
+ ] }, o.name)), St = /* @__PURE__ */ e.jsx("div", { className: "inline-block opacity-50 hover:opacity-100 transition", children: t ? /* @__PURE__ */ e.jsx("span", { children: t.replace(/^https?:\/\//, "").replace(/\/$/, "") }) : n.length > 1 && /* @__PURE__ */ e.jsxs(
1694
+ me,
1733
1695
  {
1734
1696
  onValueChange: (o) => {
1735
- $(() => h(o));
1697
+ I(() => c(o));
1736
1698
  },
1737
- value: j,
1738
- defaultValue: j,
1699
+ value: y,
1700
+ defaultValue: y,
1739
1701
  children: [
1740
- /* @__PURE__ */ e.jsx(be, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ e.jsx(Ne, {}) }),
1741
- /* @__PURE__ */ e.jsx(we, { children: n.map((o) => /* @__PURE__ */ e.jsx(U, { value: o, children: o.replace(/^https?:\/\//, "").replace(/\/$/, "") }, o)) })
1702
+ /* @__PURE__ */ e.jsx(ue, { className: "p-0 border-none flex-row-reverse bg-transparent text-xs gap-0.5 h-auto translate-y-[4px]", children: /* @__PURE__ */ e.jsx(pe, {}) }),
1703
+ /* @__PURE__ */ e.jsx(he, { children: n.map((o) => /* @__PURE__ */ e.jsx(_, { value: o, children: o.replace(/^https?:\/\//, "").replace(/\/$/, "") }, o)) })
1742
1704
  ]
1743
1705
  }
1744
- ) }), Dt = p && !ce, ne = ["POST", "PUT", "PATCH", "DELETE"].includes(
1706
+ ) }), Tt = p && !bt, X = ["POST", "PUT", "PATCH", "DELETE"].includes(
1745
1707
  a.toUpperCase()
1746
1708
  );
1747
1709
  return /* @__PURE__ */ e.jsx(
1748
- cn,
1710
+ Zt,
1749
1711
  {
1750
- register: Ge,
1751
- control: te,
1752
- handleSubmit: Je,
1753
- watch: Ue,
1754
- setValue: V,
1755
- ...me,
1712
+ register: Ae,
1713
+ control: Z,
1714
+ handleSubmit: De,
1715
+ watch: Ve,
1716
+ setValue: D,
1717
+ ...ae,
1756
1718
  children: /* @__PURE__ */ e.jsxs(
1757
1719
  "form",
1758
1720
  {
1759
- onSubmit: Je((o) => {
1760
- var S;
1761
- ((S = y.data) == null ? void 0 : S.length) === 0 || o.identity ? ue.mutate(o) : m(!0);
1721
+ onSubmit: De((o) => {
1722
+ j.data?.length === 0 || o.identity ? re.mutate(o) : h(!0);
1762
1723
  }),
1763
- ref: Qe,
1724
+ ref: Fe,
1764
1725
  className: "relative",
1765
1726
  children: [
1766
1727
  /* @__PURE__ */ e.jsx(
1767
- is,
1728
+ Qn,
1768
1729
  {
1769
- identities: y.data ?? [],
1770
- open: g,
1771
- onOpenChange: m,
1730
+ identities: j.data ?? [],
1731
+ open: f,
1732
+ onOpenChange: h,
1772
1733
  onSubmit: ({ rememberedIdentity: o, identity: S }) => {
1773
- o && V("identity", S ?? B), m(!1), ue.mutate({ ...C, identity: S });
1734
+ o && D("identity", S ?? H), h(!1), re.mutate({ ...C, identity: S });
1774
1735
  }
1775
1736
  }
1776
1737
  ),
1777
1738
  /* @__PURE__ */ e.jsx(
1778
- us,
1739
+ Yn,
1779
1740
  {
1780
- open: Dt,
1781
- setOpen: (o) => K(!o),
1782
- onSignUp: w,
1783
- onLogin: f
1741
+ open: Tt,
1742
+ setOpen: (o) => Nt(!o),
1743
+ onSignUp: N,
1744
+ onLogin: x
1784
1745
  }
1785
1746
  ),
1786
1747
  /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 text-sm h-full", children: [
@@ -1789,135 +1750,133 @@ const ys = {
1789
1750
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-1 items-center w-full border rounded-md", children: [
1790
1751
  /* @__PURE__ */ e.jsx("div", { className: "border-r p-2 bg-muted rounded-l-md self-stretch font-semibold font-mono flex items-center", children: a.toUpperCase() }),
1791
1752
  /* @__PURE__ */ e.jsxs("div", { className: "items-center px-2 py-0.5 font-mono text-xs break-all leading-6", children: [
1792
- At,
1793
- Lt,
1794
- We.length > 0 ? "?" : "",
1795
- We
1753
+ St,
1754
+ Ct,
1755
+ ze.length > 0 ? "?" : "",
1756
+ ze
1796
1757
  ] })
1797
1758
  ] }),
1798
1759
  /* @__PURE__ */ e.jsx(
1799
- Ss,
1760
+ us,
1800
1761
  {
1801
- identities: y.data ?? [],
1802
- formRef: Qe,
1803
- disabled: y.isLoading || me.formState.isSubmitting
1762
+ identities: j.data ?? [],
1763
+ formRef: Fe,
1764
+ disabled: j.isLoading || ae.formState.isSubmitting
1804
1765
  }
1805
1766
  )
1806
1767
  ] }),
1807
- /* @__PURE__ */ e.jsxs(jt, { defaultValue: "parameters", children: [
1808
- /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ e.jsxs(bt, { children: [
1809
- /* @__PURE__ */ e.jsxs(H, { value: "parameters", children: [
1768
+ /* @__PURE__ */ e.jsxs(it, { defaultValue: "parameters", children: [
1769
+ /* @__PURE__ */ e.jsx("div", { className: "flex flex-wrap gap-1 justify-between", children: /* @__PURE__ */ e.jsxs(lt, { children: [
1770
+ /* @__PURE__ */ e.jsxs(V, { value: "parameters", children: [
1810
1771
  "Parameters",
1811
1772
  (C.pathParams.some((o) => o.value !== "") || C.queryParams.some((o) => o.active)) && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1812
1773
  ] }),
1813
- /* @__PURE__ */ e.jsxs(H, { value: "headers", children: [
1774
+ /* @__PURE__ */ e.jsxs(V, { value: "headers", children: [
1814
1775
  "Headers",
1815
1776
  C.headers.filter((o) => o.active).length > 0 && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1816
1777
  ] }),
1817
- /* @__PURE__ */ e.jsxs(H, { value: "auth", children: [
1778
+ /* @__PURE__ */ e.jsxs(V, { value: "auth", children: [
1818
1779
  "Auth",
1819
- C.identity !== B && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1780
+ C.identity !== H && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1820
1781
  ] }),
1821
- /* @__PURE__ */ e.jsxs(H, { value: "body", children: [
1782
+ /* @__PURE__ */ e.jsxs(V, { value: "body", children: [
1822
1783
  "Body",
1823
1784
  C.body && /* @__PURE__ */ e.jsx("div", { className: "w-2 h-2 rounded-full bg-blue-400 ml-2" })
1824
1785
  ] })
1825
1786
  ] }) }),
1826
- /* @__PURE__ */ e.jsx(M, { value: "headers", children: /* @__PURE__ */ e.jsx(rs, { control: te, headers: r }) }),
1827
- /* @__PURE__ */ e.jsxs(M, { value: "parameters", children: [
1787
+ /* @__PURE__ */ e.jsx(F, { value: "headers", children: /* @__PURE__ */ e.jsx(Jn, { control: Z, headers: r }) }),
1788
+ /* @__PURE__ */ e.jsxs(F, { value: "parameters", children: [
1828
1789
  l.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1829
1790
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Path Parameters" }),
1830
- /* @__PURE__ */ e.jsx(ls, { url: s, control: te })
1791
+ /* @__PURE__ */ e.jsx(Wn, { url: s, control: Z })
1831
1792
  ] }),
1832
1793
  /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1833
1794
  /* @__PURE__ */ e.jsx("span", { className: "font-semibold", children: "Query Parameters" }),
1834
- /* @__PURE__ */ e.jsx(cs, { control: te, queryParams: i })
1795
+ /* @__PURE__ */ e.jsx(Xn, { control: Z, queryParams: i })
1835
1796
  ] })
1836
1797
  ] }),
1837
- /* @__PURE__ */ e.jsxs(M, { value: "body", children: [
1798
+ /* @__PURE__ */ e.jsxs(F, { value: "body", children: [
1838
1799
  !["POST", "PUT", "PATCH", "DELETE"].includes(
1839
1800
  a.toUpperCase()
1840
- ) && /* @__PURE__ */ e.jsxs(Se, { className: "mb-2", children: [
1841
- /* @__PURE__ */ e.jsx(nt, { className: "w-4 h-4" }),
1842
- /* @__PURE__ */ e.jsx(Te, { children: "Body" }),
1843
- /* @__PURE__ */ e.jsx($e, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
1801
+ ) && /* @__PURE__ */ e.jsxs(fe, { className: "mb-2", children: [
1802
+ /* @__PURE__ */ e.jsx(_e, { className: "w-4 h-4" }),
1803
+ /* @__PURE__ */ e.jsx(ge, { children: "Body" }),
1804
+ /* @__PURE__ */ e.jsx(ye, { children: "Body is only supported for POST, PUT, PATCH, and DELETE requests" })
1844
1805
  ] }),
1845
1806
  /* @__PURE__ */ e.jsx(
1846
- Ct,
1807
+ mt,
1847
1808
  {
1848
- ...Ge("body"),
1809
+ ...Ae("body"),
1849
1810
  className: u(
1850
1811
  "border w-full rounded-lg bg-muted/40 p-2 h-64 font-mono text-[13px]",
1851
- !ne && "h-20 bg-muted"
1812
+ !X && "h-20 bg-muted"
1852
1813
  ),
1853
- placeholder: ne ? void 0 : "This request does not support a body",
1854
- disabled: !ne
1814
+ placeholder: X ? void 0 : "This request does not support a body",
1815
+ disabled: !X
1855
1816
  }
1856
1817
  ),
1857
- ne && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
1818
+ X && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 mt-2 justify-between", children: [
1858
1819
  /* @__PURE__ */ e.jsxs(
1859
- je,
1820
+ me,
1860
1821
  {
1861
1822
  value: C.bodyContentType,
1862
- onValueChange: (o) => V(
1823
+ onValueChange: (o) => D(
1863
1824
  "bodyContentType",
1864
1825
  o
1865
1826
  ),
1866
1827
  children: [
1867
- /* @__PURE__ */ e.jsx(be, { className: "w-[100px]", children: /* @__PURE__ */ e.jsx(Ne, {}) }),
1868
- /* @__PURE__ */ e.jsx(we, { children: Object.keys(ve).map((o) => /* @__PURE__ */ e.jsx(U, { value: o, children: o }, o)) })
1828
+ /* @__PURE__ */ e.jsx(ue, { className: "w-[100px]", children: /* @__PURE__ */ e.jsx(pe, {}) }),
1829
+ /* @__PURE__ */ e.jsx(he, { children: Object.keys(ce).map((o) => /* @__PURE__ */ e.jsx(_, { value: o, children: o }, o)) })
1869
1830
  ]
1870
1831
  }
1871
1832
  ),
1872
1833
  d && d.length > 0 && /* @__PURE__ */ e.jsx(
1873
- Zn,
1834
+ Dn,
1874
1835
  {
1875
1836
  examples: d,
1876
1837
  onSelect: (o, S) => {
1877
- var F;
1878
- V(
1838
+ D(
1879
1839
  "body",
1880
1840
  JSON.stringify(o.value, null, 2)
1881
1841
  );
1882
- const O = (F = mn(ve).find(
1883
- ([P, z]) => z === S
1884
- )) == null ? void 0 : F[0];
1885
- O && V("bodyContentType", O);
1842
+ const O = Xt(ce).find(
1843
+ ([K, T]) => T === S
1844
+ )?.[0];
1845
+ O && D("bodyContentType", O);
1886
1846
  }
1887
1847
  }
1888
1848
  )
1889
1849
  ] })
1890
1850
  ] }),
1891
- /* @__PURE__ */ e.jsx(M, { value: "auth", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1892
- ((Xe = y.data) == null ? void 0 : Xe.length) === 0 && /* @__PURE__ */ e.jsxs(Se, { children: [
1893
- /* @__PURE__ */ e.jsx(nt, { className: "w-4 h-4" }),
1894
- /* @__PURE__ */ e.jsx(Te, { children: "Authentication" }),
1895
- /* @__PURE__ */ e.jsx($e, { children: "No identities found. Please create an identity first." })
1851
+ /* @__PURE__ */ e.jsx(F, { value: "auth", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-4 my-4", children: [
1852
+ j.data?.length === 0 && /* @__PURE__ */ e.jsxs(fe, { children: [
1853
+ /* @__PURE__ */ e.jsx(_e, { className: "w-4 h-4" }),
1854
+ /* @__PURE__ */ e.jsx(ge, { children: "Authentication" }),
1855
+ /* @__PURE__ */ e.jsx(ye, { children: "No identities found. Please create an identity first." })
1896
1856
  ] }),
1897
1857
  /* @__PURE__ */ e.jsx("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ e.jsx(
1898
- Rt,
1858
+ yt,
1899
1859
  {
1900
1860
  value: C.identity,
1901
- identities: y.data ?? [],
1902
- setValue: (o) => V("identity", o)
1861
+ identities: j.data ?? [],
1862
+ setValue: (o) => D("identity", o)
1903
1863
  }
1904
1864
  ) })
1905
1865
  ] }) })
1906
1866
  ] })
1907
1867
  ] }),
1908
1868
  /* @__PURE__ */ e.jsx(
1909
- Cs,
1869
+ ms,
1910
1870
  {
1911
- queryMutation: ue,
1871
+ queryMutation: re,
1912
1872
  showPathParamsWarning: C.pathParams.some(
1913
1873
  (o) => o.value === ""
1914
1874
  ),
1915
- showLongRunningWarning: Y,
1875
+ showLongRunningWarning: wt,
1916
1876
  onCancel: () => {
1917
- var o;
1918
- (o = ee.current) == null || o.abort(
1877
+ W.current?.abort(
1919
1878
  "Request cancelled by the user"
1920
- ), D(!1);
1879
+ ), Q(!1);
1921
1880
  }
1922
1881
  }
1923
1882
  )
@@ -1927,7 +1886,7 @@ const ys = {
1927
1886
  )
1928
1887
  }
1929
1888
  );
1930
- }, $s = ({
1889
+ }, hs = ({
1931
1890
  className: t,
1932
1891
  size: n = 16
1933
1892
  }) => /* @__PURE__ */ e.jsx(
@@ -1948,33 +1907,33 @@ const ys = {
1948
1907
  }
1949
1908
  )
1950
1909
  }
1951
- ), Ps = (t) => {
1952
- const [n, s] = k(!1);
1953
- return /* @__PURE__ */ e.jsxs(Pe, { onOpenChange: (a) => s(a), children: [
1954
- /* @__PURE__ */ e.jsx(on, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
1910
+ ), xs = (t) => {
1911
+ const [n, s] = $(!1);
1912
+ return /* @__PURE__ */ e.jsxs(ve, { onOpenChange: (a) => s(a), children: [
1913
+ /* @__PURE__ */ e.jsx(Ut, { asChild: !0, children: t.children ?? /* @__PURE__ */ e.jsxs(
1955
1914
  "button",
1956
1915
  {
1957
1916
  type: "button",
1958
1917
  className: "flex gap-1 items-center px-2 py-1 rounded-md transition text-xs bg-primary text-primary-foreground shadow-sm hover:bg-primary/80",
1959
1918
  children: [
1960
1919
  "Test",
1961
- /* @__PURE__ */ e.jsx($s, { size: 14 })
1920
+ /* @__PURE__ */ e.jsx(hs, { size: 14 })
1962
1921
  ]
1963
1922
  }
1964
1923
  ) }),
1965
1924
  /* @__PURE__ */ e.jsxs(
1966
- ke,
1925
+ je,
1967
1926
  {
1968
1927
  className: "max-w-screen-xl w-full h-5/6 overflow-hidden p-0",
1969
1928
  "aria-describedby": void 0,
1970
1929
  children: [
1971
- /* @__PURE__ */ e.jsx(nn, { children: /* @__PURE__ */ e.jsx(Ie, { children: "Playground" }) }),
1972
- n && /* @__PURE__ */ e.jsx(Ts, { ...t })
1930
+ /* @__PURE__ */ e.jsx(_t, { children: /* @__PURE__ */ e.jsx(be, { children: "Playground" }) }),
1931
+ n && /* @__PURE__ */ e.jsx(ps, { ...t })
1973
1932
  ]
1974
1933
  }
1975
1934
  )
1976
1935
  ] });
1977
- }, ks = {
1936
+ }, fs = {
1978
1937
  get: "green",
1979
1938
  post: "blue",
1980
1939
  put: "yellow",
@@ -1982,7 +1941,7 @@ const ys = {
1982
1941
  patch: "purple",
1983
1942
  options: "gray",
1984
1943
  head: "gray"
1985
- }, pt = ({
1944
+ }, et = ({
1986
1945
  label: t,
1987
1946
  path: n,
1988
1947
  operations: s,
@@ -2004,14 +1963,14 @@ const ys = {
2004
1963
  href: `${n}#${i.slug}`,
2005
1964
  badge: {
2006
1965
  label: i.method,
2007
- color: ks[i.method.toLowerCase()],
1966
+ color: fs[i.method.toLowerCase()],
2008
1967
  invert: !0
2009
1968
  }
2010
1969
  }))
2011
- }), ht = (t) => ({
1970
+ }), tt = (t) => ({
2012
1971
  path: t.routePath,
2013
1972
  async lazy() {
2014
- const { OasProvider: n } = await import("./OasProvider-n805wUHH.js");
1973
+ const { OasProvider: n } = await import("./OasProvider-DKpTJMH2.js");
2015
1974
  return {
2016
1975
  element: /* @__PURE__ */ e.jsx(
2017
1976
  n,
@@ -2025,45 +1984,45 @@ const ys = {
2025
1984
  };
2026
1985
  },
2027
1986
  children: t.routes
2028
- }), Me = ({
1987
+ }), qe = ({
2029
1988
  path: t,
2030
1989
  tag: n,
2031
1990
  untagged: s
2032
1991
  }) => ({
2033
1992
  path: t,
2034
1993
  async lazy() {
2035
- const { OperationList: a } = await import("./OperationList-BAhWsh8C.js");
1994
+ const { OperationList: a } = await import("./OperationList-DVOyNeno.js");
2036
1995
  return { element: /* @__PURE__ */ e.jsx(a, { tag: n, untagged: s }) };
2037
1996
  }
2038
- }), Ot = (t) => [
1997
+ }), vt = (t) => [
2039
1998
  // Category without tagged operations
2040
- Me({
2041
- path: R(t, _e),
1999
+ qe({
2000
+ path: R(t, Ee),
2042
2001
  untagged: !0
2043
2002
  }),
2044
2003
  // Schema list route
2045
2004
  {
2046
2005
  path: R(t, "~schemas"),
2047
2006
  lazy: async () => {
2048
- const { SchemaList: n } = await import("./SchemaList-BJ0GDIcI.js");
2007
+ const { SchemaList: n } = await import("./SchemaList-BTWzXyYQ.js");
2049
2008
  return { element: /* @__PURE__ */ e.jsx(n, {}) };
2050
2009
  }
2051
2010
  }
2052
- ], Is = (t, n) => {
2053
- const s = R(t, n.at(0) ?? _e);
2011
+ ], gs = (t, n) => {
2012
+ const s = R(t, n.at(0) ?? Ee);
2054
2013
  return [
2055
2014
  // Redirect to first tag on the index route
2056
- { index: !0, loader: () => Zt(s) },
2015
+ { index: !0, loader: () => Dt(s) },
2057
2016
  // Create routes for each tag
2058
2017
  ...n.map(
2059
- (a) => Me({
2018
+ (a) => qe({
2060
2019
  path: R(t, a),
2061
2020
  tag: a
2062
2021
  })
2063
2022
  ),
2064
- ...Ot(t)
2023
+ ...vt(t)
2065
2024
  ];
2066
- }, qt = (t) => t.type === "file" ? Object.keys(t.input) : [], Rs = ({
2025
+ }, jt = (t) => t.type === "file" ? Object.keys(t.input) : [], ys = ({
2067
2026
  basePath: t,
2068
2027
  config: n,
2069
2028
  client: s
@@ -2071,30 +2030,30 @@ const ys = {
2071
2030
  const a = n.tagPages;
2072
2031
  if (!a)
2073
2032
  return [
2074
- ht({
2033
+ tt({
2075
2034
  basePath: t,
2076
2035
  routePath: t,
2077
2036
  routes: [
2078
- Me({ path: t + "/:tag?" }),
2079
- ...Ot(t)
2037
+ qe({ path: t + "/:tag?" }),
2038
+ ...vt(t)
2080
2039
  ],
2081
2040
  client: s,
2082
2041
  config: n
2083
2042
  })
2084
2043
  ];
2085
- const r = qt(n);
2044
+ const r = jt(n);
2086
2045
  return (r.length > 1 ? [void 0, ...r] : [void 0]).map((l) => {
2087
- const c = R(t, l);
2088
- return ht({
2046
+ const m = R(t, l);
2047
+ return tt({
2089
2048
  basePath: t,
2090
2049
  version: l,
2091
- routePath: c,
2092
- routes: Is(c, a),
2050
+ routePath: m,
2051
+ routes: gs(m, a),
2093
2052
  client: s,
2094
2053
  config: n
2095
2054
  });
2096
2055
  });
2097
- }, Os = Vn(`
2056
+ }, vs = Sn(`
2098
2057
  query GetSidebarOperations($input: JSON!, $type: SchemaType!) {
2099
2058
  schema(input: $input, type: $type) {
2100
2059
  tags {
@@ -2116,8 +2075,8 @@ const ys = {
2116
2075
  }
2117
2076
  }
2118
2077
  }
2119
- `), _e = "~endpoints", la = (t) => {
2120
- const n = R(t.navigationId ?? "/reference"), s = new kn(t);
2078
+ `), Ee = "~endpoints", Qs = (t) => {
2079
+ const n = R(t.navigationId ?? "/reference"), s = new fn(t);
2121
2080
  return {
2122
2081
  getHead: () => {
2123
2082
  if (t.type === "url" && !t.skipPreload)
@@ -2139,95 +2098,93 @@ const ys = {
2139
2098
  server: r,
2140
2099
  method: i,
2141
2100
  url: l,
2142
- children: c,
2101
+ children: m,
2143
2102
  ...d
2144
2103
  }) => {
2145
- const p = en();
2104
+ const p = Ht();
2146
2105
  if (!r)
2147
2106
  throw new Error("Server is required");
2148
2107
  return a && !p.isAuthenticated ? /* @__PURE__ */ e.jsxs(
2149
- W,
2108
+ G,
2150
2109
  {
2151
2110
  className: "gap-2 items-center",
2152
2111
  variant: "outline",
2153
2112
  onClick: p.login,
2154
2113
  children: [
2155
2114
  "Login to open in Playground ",
2156
- /* @__PURE__ */ e.jsx(Qt, { size: 16 })
2115
+ /* @__PURE__ */ e.jsx(Lt, { size: 16 })
2157
2116
  ]
2158
2117
  }
2159
2118
  ) : /* @__PURE__ */ e.jsx(
2160
- Ps,
2119
+ xs,
2161
2120
  {
2162
2121
  url: l ?? "/",
2163
2122
  method: i ?? "get",
2164
2123
  server: r,
2165
2124
  ...d,
2166
- children: /* @__PURE__ */ e.jsx(W, { className: "gap-2 items-center", variant: "outline", children: c ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2125
+ children: /* @__PURE__ */ e.jsx(G, { className: "gap-2 items-center", variant: "outline", children: m ?? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2167
2126
  "Open in Playground ",
2168
- /* @__PURE__ */ e.jsx(Wt, { size: 16 })
2127
+ /* @__PURE__ */ e.jsx(At, { size: 16 })
2169
2128
  ] }) })
2170
2129
  }
2171
2130
  );
2172
2131
  }
2173
2132
  }),
2174
2133
  getSidebar: async (a, r) => {
2175
- var l, c, d, p;
2176
- if (!st({ path: n, end: !1 }, a))
2134
+ if (!Be({ path: n, end: !1 }, a))
2177
2135
  return [];
2178
- const i = st(
2136
+ const i = Be(
2179
2137
  { path: `${n}/:version?/:tag`, end: !0 },
2180
2138
  a
2181
2139
  );
2182
2140
  try {
2183
- const f = i == null ? void 0 : i.params.version, w = f ?? qt(t).at(0), { type: j } = t, h = j === "file" ? t.input[w] : t.input, g = await r.queryClient.ensureQueryData({
2184
- queryKey: ["sidebar-operations-query", h],
2185
- queryFn: () => s.fetch(Os, { type: j, input: h })
2186
- }), m = g.schema.tags.flatMap((x) => {
2187
- var K, Y, D;
2188
- if (!x.name || x.operations.length === 0) return [];
2189
- const T = R(n, f, x.slug), $ = ((K = x.extensions) == null ? void 0 : K["x-zudoku-collapsed"]) ?? !((Y = t.options) != null && Y.expandAllTags), ce = ((D = x.extensions) == null ? void 0 : D["x-zudoku-collapsible"]) ?? !0;
2190
- return pt({
2191
- label: x.name,
2192
- path: T,
2193
- operations: x.operations,
2194
- collapsed: $,
2195
- collapsible: ce
2141
+ const l = i?.params.version, m = l ?? jt(t).at(0), { type: d } = t, p = d === "file" ? t.input[m] : t.input, x = await r.queryClient.ensureQueryData({
2142
+ queryKey: ["sidebar-operations-query", p],
2143
+ queryFn: () => s.fetch(vs, { type: d, input: p })
2144
+ }), N = x.schema.tags.flatMap((c) => {
2145
+ if (!c.name || c.operations.length === 0) return [];
2146
+ const f = R(n, l, c.slug), h = c.extensions?.["x-zudoku-collapsed"] ?? !t.options?.expandAllTags, j = c.extensions?.["x-zudoku-collapsible"] ?? !0;
2147
+ return et({
2148
+ label: c.name,
2149
+ path: f,
2150
+ operations: c.operations,
2151
+ collapsed: h,
2152
+ collapsible: j
2196
2153
  });
2197
- }), y = (l = g.schema.tags.find(
2198
- (x) => !x.name
2199
- )) == null ? void 0 : l.operations;
2200
- return y && m.push(
2201
- pt({
2154
+ }), y = x.schema.tags.find(
2155
+ (c) => !c.name
2156
+ )?.operations;
2157
+ return y && N.push(
2158
+ et({
2202
2159
  label: "Other endpoints",
2203
- path: R(n, f, _e),
2160
+ path: R(n, l, Ee),
2204
2161
  operations: y,
2205
- collapsed: !((c = t.options) != null && c.expandAllTags)
2162
+ collapsed: !t.options?.expandAllTags
2206
2163
  })
2207
- ), (p = (d = g.schema.components) == null ? void 0 : d.schemas) != null && p.length && m.push({
2164
+ ), x.schema.components?.schemas?.length && N.push({
2208
2165
  type: "link",
2209
2166
  label: "Schemas",
2210
- href: R(n, f, "~schemas")
2211
- }), m;
2167
+ href: R(n, l, "~schemas")
2168
+ }), N;
2212
2169
  } catch {
2213
2170
  return [];
2214
2171
  }
2215
2172
  },
2216
- getRoutes: () => Rs({ basePath: n, config: t, client: s })
2173
+ getRoutes: () => ys({ basePath: n, config: t, client: s })
2217
2174
  };
2218
2175
  };
2219
2176
  export {
2220
- lt as C,
2221
- Ps as P,
2222
- _e as U,
2223
- dt as a,
2224
- ct as b,
2225
- Vn as c,
2226
- St as d,
2227
- zn as e,
2228
- qt as g,
2229
- hs as m,
2230
- la as o,
2231
- _n as u
2177
+ We as C,
2178
+ xs as P,
2179
+ Ee as U,
2180
+ Ze as a,
2181
+ Xe as b,
2182
+ Sn as c,
2183
+ ut as d,
2184
+ $n as e,
2185
+ jt as g,
2186
+ ts as m,
2187
+ Qs as o,
2188
+ kn as u
2232
2189
  };
2233
- //# sourceMappingURL=index-Dbvpddzr.js.map
2190
+ //# sourceMappingURL=index-CCS3ifKs.js.map