zudoku 0.25.3 → 0.26.1

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 (278) hide show
  1. package/dist/cli/dev/handler.js +2 -2
  2. package/dist/cli/dev/handler.js.map +1 -1
  3. package/dist/config/config.d.ts +1 -0
  4. package/dist/config/loader.js +1 -1
  5. package/dist/config/loader.js.map +1 -1
  6. package/dist/config/validators/common.d.ts +39 -28
  7. package/dist/config/validators/common.js +1 -0
  8. package/dist/config/validators/common.js.map +1 -1
  9. package/dist/config/validators/icon-types.d.ts +1 -1
  10. package/dist/config/validators/validate.d.ts +17 -12
  11. package/dist/lib/authentication/providers/auth0.js +1 -1
  12. package/dist/lib/authentication/providers/auth0.js.map +1 -1
  13. package/dist/lib/authentication/providers/openid.d.ts +1 -1
  14. package/dist/lib/authentication/providers/openid.js +10 -6
  15. package/dist/lib/authentication/providers/openid.js.map +1 -1
  16. package/dist/lib/components/Autocomplete.d.ts +12 -0
  17. package/dist/lib/components/Autocomplete.js +47 -0
  18. package/dist/lib/components/Autocomplete.js.map +1 -0
  19. package/dist/lib/components/Header.js +3 -3
  20. package/dist/lib/components/Header.js.map +1 -1
  21. package/dist/lib/components/index.js +2 -2
  22. package/dist/lib/components/index.js.map +1 -1
  23. package/dist/lib/components/navigation/SidebarCategory.js +1 -1
  24. package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
  25. package/dist/lib/plugins/markdown/MdxPage.js +8 -2
  26. package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
  27. package/dist/lib/plugins/openapi/OperationList.js +3 -0
  28. package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
  29. package/dist/lib/plugins/openapi/ParameterListItem.js +1 -1
  30. package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
  31. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +3 -1
  32. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -2
  33. package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
  34. package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +2 -1
  35. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +2 -2
  36. package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
  37. package/dist/lib/plugins/openapi/Sidecar.js +9 -6
  38. package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
  39. package/dist/lib/plugins/openapi/SidecarBox.js +1 -1
  40. package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
  41. package/dist/lib/plugins/openapi/SidecarExamples.d.ts +2 -1
  42. package/dist/lib/plugins/openapi/SidecarExamples.js +7 -4
  43. package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
  44. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
  45. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +12 -0
  46. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
  47. package/dist/lib/plugins/openapi/playground/Headers.js +66 -4
  48. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  49. package/dist/lib/plugins/openapi/playground/Playground.d.ts +5 -1
  50. package/dist/lib/plugins/openapi/playground/Playground.js +36 -11
  51. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  52. package/dist/lib/plugins/openapi/playground/QueryParams.js +20 -30
  53. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  54. package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +2 -1
  55. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +5 -3
  56. package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -1
  57. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +49 -0
  58. package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -1
  59. package/dist/lib/plugins/openapi/post-processors/removeParameters.d.ts +10 -0
  60. package/dist/lib/plugins/openapi/post-processors/removeParameters.js +66 -0
  61. package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +1 -0
  62. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.d.ts +1 -0
  63. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js +131 -0
  64. package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +1 -0
  65. package/dist/lib/plugins/openapi/schema/SchemaComponents.js +1 -1
  66. package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +1 -1
  67. package/dist/lib/ui/Badge.d.ts +1 -1
  68. package/dist/lib/ui/Badge.js +1 -0
  69. package/dist/lib/ui/Badge.js.map +1 -1
  70. package/dist/lib/ui/Command.d.ts +9 -1
  71. package/dist/lib/ui/Command.js +5 -1
  72. package/dist/lib/ui/Command.js.map +1 -1
  73. package/dist/lib/util/joinUrl.d.ts +1 -0
  74. package/dist/lib/util/joinUrl.js +40 -0
  75. package/dist/lib/util/joinUrl.js.map +1 -0
  76. package/dist/vite/build.js +10 -10
  77. package/dist/vite/build.js.map +1 -1
  78. package/dist/vite/config.js +4 -1
  79. package/dist/vite/config.js.map +1 -1
  80. package/dist/vite/config.test.js +5 -1
  81. package/dist/vite/config.test.js.map +1 -1
  82. package/dist/vite/dev-server.js +4 -1
  83. package/dist/vite/dev-server.js.map +1 -1
  84. package/dist/vite/plugin-api.d.ts +1 -1
  85. package/dist/vite/plugin-api.js +23 -5
  86. package/dist/vite/plugin-api.js.map +1 -1
  87. package/dist/vite/plugin-auth.js +4 -1
  88. package/dist/vite/plugin-auth.js.map +1 -1
  89. package/dist/vite/plugin-mdx.js +9 -4
  90. package/dist/vite/plugin-mdx.js.map +1 -1
  91. package/dist/vite/prerender.d.ts +2 -2
  92. package/dist/vite/prerender.js +4 -4
  93. package/dist/vite/prerender.js.map +1 -1
  94. package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
  95. package/dist/zuplo/enrich-with-zuplo.js +184 -0
  96. package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
  97. package/dist/zuplo/env.d.ts +1 -0
  98. package/dist/zuplo/env.js +3 -0
  99. package/dist/zuplo/env.js.map +1 -1
  100. package/dist/zuplo/policy-types.d.ts +33 -0
  101. package/dist/zuplo/policy-types.js +8 -0
  102. package/dist/zuplo/policy-types.js.map +1 -0
  103. package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
  104. package/dist/zuplo/with-zuplo-processors.js +26 -0
  105. package/dist/zuplo/with-zuplo-processors.js.map +1 -0
  106. package/dist/zuplo/with-zuplo.d.ts +1 -2
  107. package/dist/zuplo/with-zuplo.js +6 -27
  108. package/dist/zuplo/with-zuplo.js.map +1 -1
  109. package/lib/{AnchorLink-DFZZbmvr.js → AnchorLink-bObQitZv.js} +3 -3
  110. package/lib/{AnchorLink-DFZZbmvr.js.map → AnchorLink-bObQitZv.js.map} +1 -1
  111. package/lib/{AuthenticationPlugin-D7G3me8L.js → AuthenticationPlugin-C9SwOxkc.js} +4 -4
  112. package/lib/{AuthenticationPlugin-D7G3me8L.js.map → AuthenticationPlugin-C9SwOxkc.js.map} +1 -1
  113. package/lib/{CategoryHeading-CBconmtI.js → CategoryHeading-MYL1u_6K.js} +3 -3
  114. package/lib/{CategoryHeading-CBconmtI.js.map → CategoryHeading-MYL1u_6K.js.map} +1 -1
  115. package/lib/{Markdown-CZDLNOFc.js → Markdown-DFN6p0J-.js} +1041 -1041
  116. package/lib/{Markdown-CZDLNOFc.js.map → Markdown-DFN6p0J-.js.map} +1 -1
  117. package/lib/{MdxPage-DKMbBROv.js → MdxPage-D9c4z09Q.js} +61 -56
  118. package/lib/MdxPage-D9c4z09Q.js.map +1 -0
  119. package/lib/{OperationList-B8bHMKme.js → OperationList-DGJWDx1G.js} +1264 -1244
  120. package/lib/OperationList-DGJWDx1G.js.map +1 -0
  121. package/lib/{Route-DYwKZ_c_.js → Route-VdmEyOD0.js} +5 -5
  122. package/lib/{Route-DYwKZ_c_.js.map → Route-VdmEyOD0.js.map} +1 -1
  123. package/lib/{Select-B_IxRUUC.js → Select-D3O7wISy.js} +36 -36
  124. package/lib/{Select-B_IxRUUC.js.map → Select-D3O7wISy.js.map} +1 -1
  125. package/lib/{SlotletProvider-pfc9oejW.js → SlotletProvider-_3zzX_g_.js} +53 -53
  126. package/lib/{SlotletProvider-pfc9oejW.js.map → SlotletProvider-_3zzX_g_.js.map} +1 -1
  127. package/lib/{Button-DeAoTouo.js → Spinner-BlzrEEk1.js} +16 -13
  128. package/lib/Spinner-BlzrEEk1.js.map +1 -0
  129. package/lib/{SyntaxHighlight-Bz-lOJtH.js → SyntaxHighlight-CJCSPG1F.js} +297 -301
  130. package/lib/{SyntaxHighlight-Bz-lOJtH.js.map → SyntaxHighlight-CJCSPG1F.js.map} +1 -1
  131. package/lib/{ZudokuContext-hmLMUdf2.js → ZudokuContext-DeQZEp-x.js} +357 -356
  132. package/lib/ZudokuContext-DeQZEp-x.js.map +1 -0
  133. package/lib/{chunk-D52XG6IA-Dl7HLe6j.js → chunk-SYFQ2XB5-BF5IDYrB.js} +410 -412
  134. package/lib/chunk-SYFQ2XB5-BF5IDYrB.js.map +1 -0
  135. package/lib/context-rwLGh-6_.js +22 -0
  136. package/lib/{context-h_UkBLvr.js.map → context-rwLGh-6_.js.map} +1 -1
  137. package/lib/{createServer-BznDkeSA.js → createServer-BcaswoFO.js} +1274 -1286
  138. package/lib/createServer-BcaswoFO.js.map +1 -0
  139. package/lib/{hook-CHq7pFyz.js → hook-BRQEDRbn.js} +17 -17
  140. package/lib/{hook-CHq7pFyz.js.map → hook-BRQEDRbn.js.map} +1 -1
  141. package/lib/index-B7mqiOei.js +509 -0
  142. package/lib/index-B7mqiOei.js.map +1 -0
  143. package/lib/index-CXRrqOIl.js +1750 -0
  144. package/lib/index-CXRrqOIl.js.map +1 -0
  145. package/lib/index-Djenk2Hj.js +36 -0
  146. package/lib/{index-CPNSgwSb.js.map → index-Djenk2Hj.js.map} +1 -1
  147. package/lib/{index-CBXSgjaE.js → index-Dl3Yl0yb.js} +65 -69
  148. package/lib/index-Dl3Yl0yb.js.map +1 -0
  149. package/lib/{index.esm-BSV1C092.js → index.esm-9-TF9KQB.js} +52 -52
  150. package/lib/{index.esm-BSV1C092.js.map → index.esm-9-TF9KQB.js.map} +1 -1
  151. package/lib/index.esm-CrSoEshU.js +1207 -0
  152. package/lib/index.esm-CrSoEshU.js.map +1 -0
  153. package/lib/joinUrl-BTy9bvoK.js +20 -0
  154. package/lib/joinUrl-BTy9bvoK.js.map +1 -0
  155. package/lib/{jsx-runtime-Dx-03ztt.js → jsx-runtime-Bdg6XQ1m.js} +135 -135
  156. package/lib/{jsx-runtime-Dx-03ztt.js.map → jsx-runtime-Bdg6XQ1m.js.map} +1 -1
  157. package/lib/post-processors/removeExtensions.js +7 -7
  158. package/lib/post-processors/removeExtensions.js.map +1 -1
  159. package/lib/post-processors/removeParameters.js +48 -0
  160. package/lib/post-processors/removeParameters.js.map +1 -0
  161. package/lib/{prism-bash.min-DadFsM4Z.js → prism-bash.min-HHIMdNJ_.js} +4 -4
  162. package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-HHIMdNJ_.js.map} +1 -1
  163. package/lib/{prism-csharp.min-DUwvItt4.js → prism-csharp.min-bQAo2pmx.js} +33 -33
  164. package/lib/{prism-csharp.min-DUwvItt4.js.map → prism-csharp.min-bQAo2pmx.js.map} +1 -1
  165. package/lib/{prism-java.min-BtgBR4yd.js → prism-java.min-BpvsOuIa.js} +12 -12
  166. package/lib/{prism-java.min-BtgBR4yd.js.map → prism-java.min-BpvsOuIa.js.map} +1 -1
  167. package/lib/{prism-markdown.min-F3U-vPBi.js → prism-markdown.min-C0Qn0m-5.js} +30 -30
  168. package/lib/{prism-markdown.min-F3U-vPBi.js.map → prism-markdown.min-C0Qn0m-5.js.map} +1 -1
  169. package/lib/{prism-ruby.min-DeDXCp1r.js → prism-ruby.min-Dx9KO9ds.js} +16 -16
  170. package/lib/{prism-ruby.min-DeDXCp1r.js.map → prism-ruby.min-Dx9KO9ds.js.map} +1 -1
  171. package/lib/prism-typescript.min-CD7H2IYQ.js.map +1 -1
  172. package/lib/state-mM7uaXTW.js +202 -0
  173. package/lib/state-mM7uaXTW.js.map +1 -0
  174. package/lib/ui/Accordion.js +1 -1
  175. package/lib/ui/ActionButton.js +10 -11
  176. package/lib/ui/ActionButton.js.map +1 -1
  177. package/lib/ui/Alert.js +2 -2
  178. package/lib/ui/AlertDialog.js +1 -1
  179. package/lib/ui/Badge.js +3 -2
  180. package/lib/ui/Badge.js.map +1 -1
  181. package/lib/ui/Breadcrumb.js +1 -1
  182. package/lib/ui/Button.js +2 -2
  183. package/lib/ui/Callout.js +1 -1
  184. package/lib/ui/Card.js +1 -1
  185. package/lib/ui/Carousel.js +3 -3
  186. package/lib/ui/Carousel.js.map +1 -1
  187. package/lib/ui/Checkbox.js +2 -2
  188. package/lib/ui/Command.js +125 -13
  189. package/lib/ui/Command.js.map +1 -1
  190. package/lib/ui/Dialog.js +1 -1
  191. package/lib/ui/Drawer.js +520 -519
  192. package/lib/ui/Drawer.js.map +1 -1
  193. package/lib/ui/DropdownMenu.js +1 -1
  194. package/lib/ui/Form.js +2 -2
  195. package/lib/ui/HoverCard.js +1 -1
  196. package/lib/ui/Input.js +1 -1
  197. package/lib/ui/Label.js +2 -2
  198. package/lib/ui/Pagination.js +7 -7
  199. package/lib/ui/Popover.js +1 -1
  200. package/lib/ui/Progress.js +1 -1
  201. package/lib/ui/RadioGroup.js +1 -1
  202. package/lib/ui/ScrollArea.js +1 -1
  203. package/lib/ui/Select.js +1 -1
  204. package/lib/ui/Skeleton.js +1 -1
  205. package/lib/ui/Slider.js +1 -1
  206. package/lib/ui/Switch.js +1 -1
  207. package/lib/ui/Tabs.js +1 -1
  208. package/lib/ui/Textarea.js +1 -1
  209. package/lib/ui/Toggle.js +2 -2
  210. package/lib/ui/ToggleGroup.js +1 -1
  211. package/lib/ui/Tooltip.js +1 -1
  212. package/lib/{useExposedProps-DE9lR6MF.js → useExposedProps-CetwhZpP.js} +2 -2
  213. package/lib/{useExposedProps-DE9lR6MF.js.map → useExposedProps-CetwhZpP.js.map} +1 -1
  214. package/lib/zudoku.auth-auth0.js +8 -10
  215. package/lib/zudoku.auth-auth0.js.map +1 -1
  216. package/lib/zudoku.auth-clerk.js +18 -18
  217. package/lib/zudoku.auth-openid.js +225 -221
  218. package/lib/zudoku.auth-openid.js.map +1 -1
  219. package/lib/zudoku.components.js +476 -461
  220. package/lib/zudoku.components.js.map +1 -1
  221. package/lib/zudoku.plugin-api-catalog.js +5 -5
  222. package/lib/zudoku.plugin-api-keys.js +7 -7
  223. package/lib/zudoku.plugin-custom-pages.js +3 -3
  224. package/lib/zudoku.plugin-markdown.js +2 -2
  225. package/lib/zudoku.plugin-openapi.js +5 -5
  226. package/lib/zudoku.plugin-redirect.js +1 -1
  227. package/lib/zudoku.plugin-search-inkeep.js +9 -9
  228. package/package.json +48 -48
  229. package/src/app/main.css +50 -50
  230. package/src/lib/authentication/providers/auth0.tsx +1 -4
  231. package/src/lib/authentication/providers/openid.tsx +12 -5
  232. package/src/lib/components/Autocomplete.tsx +111 -0
  233. package/src/lib/components/Header.tsx +3 -3
  234. package/src/lib/components/index.ts +2 -2
  235. package/src/lib/components/navigation/SidebarCategory.tsx +2 -2
  236. package/src/lib/plugins/markdown/MdxPage.tsx +9 -1
  237. package/src/lib/plugins/openapi/OperationList.tsx +4 -0
  238. package/src/lib/plugins/openapi/ParameterListItem.tsx +1 -5
  239. package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +5 -0
  240. package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +8 -2
  241. package/src/lib/plugins/openapi/Sidecar.tsx +15 -7
  242. package/src/lib/plugins/openapi/SidecarBox.tsx +1 -1
  243. package/src/lib/plugins/openapi/SidecarExamples.tsx +14 -6
  244. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +51 -0
  245. package/src/lib/plugins/openapi/playground/Headers.tsx +138 -41
  246. package/src/lib/plugins/openapi/playground/Playground.tsx +156 -62
  247. package/src/lib/plugins/openapi/playground/QueryParams.tsx +89 -122
  248. package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +58 -0
  249. package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +7 -4
  250. package/src/lib/plugins/openapi/post-processors/removeParameters.test.ts +148 -0
  251. package/src/lib/plugins/openapi/post-processors/removeParameters.ts +101 -0
  252. package/src/lib/plugins/openapi/schema/SchemaComponents.tsx +1 -1
  253. package/src/lib/ui/Badge.tsx +1 -0
  254. package/src/lib/ui/Command.tsx +20 -0
  255. package/src/lib/util/joinUrl.ts +57 -0
  256. package/dist/lib/plugins/openapi/playground/EnumSelector.d.ts +0 -8
  257. package/dist/lib/plugins/openapi/playground/EnumSelector.js +0 -21
  258. package/dist/lib/plugins/openapi/playground/EnumSelector.js.map +0 -1
  259. package/lib/Button-DeAoTouo.js.map +0 -1
  260. package/lib/Command-9x_kZHr4.js +0 -611
  261. package/lib/Command-9x_kZHr4.js.map +0 -1
  262. package/lib/MdxPage-DKMbBROv.js.map +0 -1
  263. package/lib/OperationList-B8bHMKme.js.map +0 -1
  264. package/lib/Spinner-DuxJLLNE.js +0 -7
  265. package/lib/Spinner-DuxJLLNE.js.map +0 -1
  266. package/lib/ZudokuContext-hmLMUdf2.js.map +0 -1
  267. package/lib/chunk-D52XG6IA-Dl7HLe6j.js.map +0 -1
  268. package/lib/context-h_UkBLvr.js +0 -22
  269. package/lib/createServer-BznDkeSA.js.map +0 -1
  270. package/lib/index-CBXSgjaE.js.map +0 -1
  271. package/lib/index-CPNSgwSb.js +0 -36
  272. package/lib/index-sD8L1_Dl.js +0 -1292
  273. package/lib/index-sD8L1_Dl.js.map +0 -1
  274. package/lib/index.esm-BnnBRKJX.js +0 -1214
  275. package/lib/index.esm-BnnBRKJX.js.map +0 -1
  276. package/lib/state-CFQsUZUP.js +0 -202
  277. package/lib/state-CFQsUZUP.js.map +0 -1
  278. package/src/lib/plugins/openapi/playground/EnumSelector.tsx +0 -86
@@ -1,611 +0,0 @@
1
- import { j as w } from "./jsx-runtime-Dx-03ztt.js";
2
- import * as C from "@radix-ui/react-dialog";
3
- import * as a from "react";
4
- import _e from "react";
5
- import { Primitive as M } from "@radix-ui/react-primitive";
6
- import { useId as F } from "@radix-ui/react-id";
7
- import { X as Te, Search as Me } from "lucide-react";
8
- import { c as L } from "./cn-qaFjX9_3.js";
9
- const $e = C.Root, Nt = C.Trigger, Ve = C.Portal, ke = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ w.jsx(
10
- C.Overlay,
11
- {
12
- ref: t,
13
- className: L(
14
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
15
- e
16
- ),
17
- ...r
18
- }
19
- ));
20
- ke.displayName = C.Overlay.displayName;
21
- const Re = a.forwardRef(({ className: e, children: r, ...t }, f) => /* @__PURE__ */ w.jsxs(Ve, { children: [
22
- /* @__PURE__ */ w.jsx(ke, {}),
23
- /* @__PURE__ */ w.jsxs(
24
- C.Content,
25
- {
26
- ref: f,
27
- className: L(
28
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
29
- e
30
- ),
31
- ...t,
32
- children: [
33
- r,
34
- /* @__PURE__ */ w.jsxs(C.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
35
- /* @__PURE__ */ w.jsx(Te, { className: "h-4 w-4" }),
36
- /* @__PURE__ */ w.jsx("span", { className: "sr-only", children: "Close" })
37
- ] })
38
- ]
39
- }
40
- )
41
- ] }));
42
- Re.displayName = C.Content.displayName;
43
- const Ke = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ w.jsx(
44
- C.Title,
45
- {
46
- ref: t,
47
- className: L(
48
- "text-lg font-semibold leading-none tracking-tight",
49
- e
50
- ),
51
- ...r
52
- }
53
- ));
54
- Ke.displayName = C.Title.displayName;
55
- const qe = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ w.jsx(
56
- C.Description,
57
- {
58
- ref: t,
59
- className: L("text-sm text-muted-foreground", e),
60
- ...r
61
- }
62
- ));
63
- qe.displayName = C.Description.displayName;
64
- var ye = 1, Ue = 0.9, Ge = 0.8, Pe = 0.17, ae = 0.1, oe = 0.999, Fe = 0.9999, Be = 0.99, He = /[\\\/_+.#"@\[\(\{&]/, ze = /[\\\/_+.#"@\[\(\{&]/g, We = /[\s-]/, Ce = /[\s-]/g;
65
- function se(e, r, t, f, o, u, c) {
66
- if (u === r.length) return o === e.length ? ye : Be;
67
- var v = `${o},${u}`;
68
- if (c[v] !== void 0) return c[v];
69
- for (var h = f.charAt(u), m = t.indexOf(h, o), s = 0, i, y, x, N; m >= 0; ) i = se(e, r, t, f, m + 1, u + 1, c), i > s && (m === o ? i *= ye : He.test(e.charAt(m - 1)) ? (i *= Ge, x = e.slice(o, m - 1).match(ze), x && o > 0 && (i *= Math.pow(oe, x.length))) : We.test(e.charAt(m - 1)) ? (i *= Ue, N = e.slice(o, m - 1).match(Ce), N && o > 0 && (i *= Math.pow(oe, N.length))) : (i *= Pe, o > 0 && (i *= Math.pow(oe, m - o))), e.charAt(m) !== r.charAt(u) && (i *= Fe)), (i < ae && t.charAt(m - 1) === f.charAt(u + 1) || f.charAt(u + 1) === f.charAt(u) && t.charAt(m - 1) !== f.charAt(u)) && (y = se(e, r, t, f, m + 1, u + 2, c), y * ae > i && (i = y * ae)), i > s && (s = i), m = t.indexOf(h, m + 1);
70
- return c[v] = s, s;
71
- }
72
- function Se(e) {
73
- return e.toLowerCase().replace(Ce, " ");
74
- }
75
- function Xe(e, r, t) {
76
- return e = t && t.length > 0 ? `${e + " " + t.join(" ")}` : e, se(e, r, Se(e), Se(r), 0, 0, {});
77
- }
78
- var Z = { exports: {} }, le = {};
79
- /**
80
- * @license React
81
- * use-sync-external-store-shim.production.min.js
82
- *
83
- * Copyright (c) Facebook, Inc. and its affiliates.
84
- *
85
- * This source code is licensed under the MIT license found in the
86
- * LICENSE file in the root directory of this source tree.
87
- */
88
- var xe;
89
- function Ye() {
90
- if (xe) return le;
91
- xe = 1;
92
- var e = _e;
93
- function r(i, y) {
94
- return i === y && (i !== 0 || 1 / i === 1 / y) || i !== i && y !== y;
95
- }
96
- var t = typeof Object.is == "function" ? Object.is : r, f = e.useState, o = e.useEffect, u = e.useLayoutEffect, c = e.useDebugValue;
97
- function v(i, y) {
98
- var x = y(), N = f({ inst: { value: x, getSnapshot: y } }), O = N[0].inst, I = N[1];
99
- return u(function() {
100
- O.value = x, O.getSnapshot = y, h(O) && I({ inst: O });
101
- }, [i, x, y]), o(function() {
102
- return h(O) && I({ inst: O }), i(function() {
103
- h(O) && I({ inst: O });
104
- });
105
- }, [i]), c(x), x;
106
- }
107
- function h(i) {
108
- var y = i.getSnapshot;
109
- i = i.value;
110
- try {
111
- var x = y();
112
- return !t(i, x);
113
- } catch {
114
- return !0;
115
- }
116
- }
117
- function m(i, y) {
118
- return y();
119
- }
120
- var s = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? m : v;
121
- return le.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : s, le;
122
- }
123
- var ie = {};
124
- /**
125
- * @license React
126
- * use-sync-external-store-shim.development.js
127
- *
128
- * Copyright (c) Facebook, Inc. and its affiliates.
129
- *
130
- * This source code is licensed under the MIT license found in the
131
- * LICENSE file in the root directory of this source tree.
132
- */
133
- var be;
134
- function Je() {
135
- return be || (be = 1, process.env.NODE_ENV !== "production" && function() {
136
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
137
- var e = _e, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
138
- function t(_) {
139
- {
140
- for (var b = arguments.length, R = new Array(b > 1 ? b - 1 : 0), p = 1; p < b; p++)
141
- R[p - 1] = arguments[p];
142
- f("error", _, R);
143
- }
144
- }
145
- function f(_, b, R) {
146
- {
147
- var p = r.ReactDebugCurrentFrame, k = p.getStackAddendum();
148
- k !== "" && (b += "%s", R = R.concat([k]));
149
- var T = R.map(function(j) {
150
- return String(j);
151
- });
152
- T.unshift("Warning: " + b), Function.prototype.apply.call(console[_], console, T);
153
- }
154
- }
155
- function o(_, b) {
156
- return _ === b && (_ !== 0 || 1 / _ === 1 / b) || _ !== _ && b !== b;
157
- }
158
- var u = typeof Object.is == "function" ? Object.is : o, c = e.useState, v = e.useEffect, h = e.useLayoutEffect, m = e.useDebugValue, s = !1, i = !1;
159
- function y(_, b, R) {
160
- s || e.startTransition !== void 0 && (s = !0, t("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
161
- var p = b();
162
- if (!i) {
163
- var k = b();
164
- u(p, k) || (t("The result of getSnapshot should be cached to avoid an infinite loop"), i = !0);
165
- }
166
- var T = c({
167
- inst: {
168
- value: p,
169
- getSnapshot: b
170
- }
171
- }), j = T[0].inst, $ = T[1];
172
- return h(function() {
173
- j.value = p, j.getSnapshot = b, x(j) && $({
174
- inst: j
175
- });
176
- }, [_, p, b]), v(function() {
177
- x(j) && $({
178
- inst: j
179
- });
180
- var B = function() {
181
- x(j) && $({
182
- inst: j
183
- });
184
- };
185
- return _(B);
186
- }, [_]), m(p), p;
187
- }
188
- function x(_) {
189
- var b = _.getSnapshot, R = _.value;
190
- try {
191
- var p = b();
192
- return !u(R, p);
193
- } catch {
194
- return !0;
195
- }
196
- }
197
- function N(_, b, R) {
198
- return b();
199
- }
200
- var O = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", I = !O, G = I ? N : y, J = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : G;
201
- ie.useSyncExternalStore = J, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
202
- }()), ie;
203
- }
204
- var Ee;
205
- function Qe() {
206
- return Ee || (Ee = 1, process.env.NODE_ENV === "production" ? Z.exports = Ye() : Z.exports = Je()), Z.exports;
207
- }
208
- var Ze = Qe(), W = '[cmdk-group=""]', ue = '[cmdk-group-items=""]', et = '[cmdk-group-heading=""]', ce = '[cmdk-item=""]', we = `${ce}:not([aria-disabled="true"])`, de = "cmdk-item-select", K = "data-value", tt = (e, r, t) => Xe(e, r, t), Ne = a.createContext(void 0), Y = () => a.useContext(Ne), Oe = a.createContext(void 0), fe = () => a.useContext(Oe), De = a.createContext(void 0), Ie = a.forwardRef((e, r) => {
209
- let t = P(() => {
210
- var n, d;
211
- return { search: "", value: (d = (n = e.value) != null ? n : e.defaultValue) != null ? d : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
212
- }), f = P(() => /* @__PURE__ */ new Set()), o = P(() => /* @__PURE__ */ new Map()), u = P(() => /* @__PURE__ */ new Map()), c = P(() => /* @__PURE__ */ new Set()), v = je(e), { label: h, children: m, value: s, onValueChange: i, filter: y, shouldFilter: x, loop: N, disablePointerSelection: O = !1, vimBindings: I = !0, ...G } = e, J = F(), _ = F(), b = F(), R = a.useRef(null), p = ft();
213
- q(() => {
214
- if (s !== void 0) {
215
- let n = s.trim();
216
- t.current.value = n, k.emit();
217
- }
218
- }, [s]), q(() => {
219
- p(6, me);
220
- }, []);
221
- let k = a.useMemo(() => ({ subscribe: (n) => (c.current.add(n), () => c.current.delete(n)), snapshot: () => t.current, setState: (n, d, g) => {
222
- var l, S, E;
223
- if (!Object.is(t.current[n], d)) {
224
- if (t.current[n] = d, n === "search") te(), $(), p(1, B);
225
- else if (n === "value" && (g || p(5, me), ((l = v.current) == null ? void 0 : l.value) !== void 0)) {
226
- let A = d ?? "";
227
- (E = (S = v.current).onValueChange) == null || E.call(S, A);
228
- return;
229
- }
230
- k.emit();
231
- }
232
- }, emit: () => {
233
- c.current.forEach((n) => n());
234
- } }), []), T = a.useMemo(() => ({ value: (n, d, g) => {
235
- var l;
236
- d !== ((l = u.current.get(n)) == null ? void 0 : l.value) && (u.current.set(n, { value: d, keywords: g }), t.current.filtered.items.set(n, j(d, g)), p(2, () => {
237
- $(), k.emit();
238
- }));
239
- }, item: (n, d) => (f.current.add(n), d && (o.current.has(d) ? o.current.get(d).add(n) : o.current.set(d, /* @__PURE__ */ new Set([n]))), p(3, () => {
240
- te(), $(), t.current.value || B(), k.emit();
241
- }), () => {
242
- u.current.delete(n), f.current.delete(n), t.current.filtered.items.delete(n);
243
- let g = H();
244
- p(4, () => {
245
- te(), (g == null ? void 0 : g.getAttribute("id")) === n && B(), k.emit();
246
- });
247
- }), group: (n) => (o.current.has(n) || o.current.set(n, /* @__PURE__ */ new Set()), () => {
248
- u.current.delete(n), o.current.delete(n);
249
- }), filter: () => v.current.shouldFilter, label: h || e["aria-label"], getDisablePointerSelection: () => v.current.disablePointerSelection, listId: J, inputId: b, labelId: _, listInnerRef: R }), []);
250
- function j(n, d) {
251
- var g, l;
252
- let S = (l = (g = v.current) == null ? void 0 : g.filter) != null ? l : tt;
253
- return n ? S(n, t.current.search, d) : 0;
254
- }
255
- function $() {
256
- if (!t.current.search || v.current.shouldFilter === !1) return;
257
- let n = t.current.filtered.items, d = [];
258
- t.current.filtered.groups.forEach((l) => {
259
- let S = o.current.get(l), E = 0;
260
- S.forEach((A) => {
261
- let V = n.get(A);
262
- E = Math.max(V, E);
263
- }), d.push([l, E]);
264
- });
265
- let g = R.current;
266
- z().sort((l, S) => {
267
- var E, A;
268
- let V = l.getAttribute("id"), Q = S.getAttribute("id");
269
- return ((E = n.get(Q)) != null ? E : 0) - ((A = n.get(V)) != null ? A : 0);
270
- }).forEach((l) => {
271
- let S = l.closest(ue);
272
- S ? S.appendChild(l.parentElement === S ? l : l.closest(`${ue} > *`)) : g.appendChild(l.parentElement === g ? l : l.closest(`${ue} > *`));
273
- }), d.sort((l, S) => S[1] - l[1]).forEach((l) => {
274
- var S;
275
- let E = (S = R.current) == null ? void 0 : S.querySelector(`${W}[${K}="${encodeURIComponent(l[0])}"]`);
276
- E == null || E.parentElement.appendChild(E);
277
- });
278
- }
279
- function B() {
280
- let n = z().find((g) => g.getAttribute("aria-disabled") !== "true"), d = n == null ? void 0 : n.getAttribute(K);
281
- k.setState("value", d || void 0);
282
- }
283
- function te() {
284
- var n, d, g, l;
285
- if (!t.current.search || v.current.shouldFilter === !1) {
286
- t.current.filtered.count = f.current.size;
287
- return;
288
- }
289
- t.current.filtered.groups = /* @__PURE__ */ new Set();
290
- let S = 0;
291
- for (let E of f.current) {
292
- let A = (d = (n = u.current.get(E)) == null ? void 0 : n.value) != null ? d : "", V = (l = (g = u.current.get(E)) == null ? void 0 : g.keywords) != null ? l : [], Q = j(A, V);
293
- t.current.filtered.items.set(E, Q), Q > 0 && S++;
294
- }
295
- for (let [E, A] of o.current) for (let V of A) if (t.current.filtered.items.get(V) > 0) {
296
- t.current.filtered.groups.add(E);
297
- break;
298
- }
299
- t.current.filtered.count = S;
300
- }
301
- function me() {
302
- var n, d, g;
303
- let l = H();
304
- l && (((n = l.parentElement) == null ? void 0 : n.firstChild) === l && ((g = (d = l.closest(W)) == null ? void 0 : d.querySelector(et)) == null || g.scrollIntoView({ block: "nearest" })), l.scrollIntoView({ block: "nearest" }));
305
- }
306
- function H() {
307
- var n;
308
- return (n = R.current) == null ? void 0 : n.querySelector(`${ce}[aria-selected="true"]`);
309
- }
310
- function z() {
311
- var n;
312
- return Array.from(((n = R.current) == null ? void 0 : n.querySelectorAll(we)) || []);
313
- }
314
- function re(n) {
315
- let d = z()[n];
316
- d && k.setState("value", d.getAttribute(K));
317
- }
318
- function ne(n) {
319
- var d;
320
- let g = H(), l = z(), S = l.findIndex((A) => A === g), E = l[S + n];
321
- (d = v.current) != null && d.loop && (E = S + n < 0 ? l[l.length - 1] : S + n === l.length ? l[0] : l[S + n]), E && k.setState("value", E.getAttribute(K));
322
- }
323
- function pe(n) {
324
- let d = H(), g = d == null ? void 0 : d.closest(W), l;
325
- for (; g && !l; ) g = n > 0 ? dt(g, W) : ct(g, W), l = g == null ? void 0 : g.querySelector(we);
326
- l ? k.setState("value", l.getAttribute(K)) : ne(n);
327
- }
328
- let ve = () => re(z().length - 1), ge = (n) => {
329
- n.preventDefault(), n.metaKey ? ve() : n.altKey ? pe(1) : ne(1);
330
- }, he = (n) => {
331
- n.preventDefault(), n.metaKey ? re(0) : n.altKey ? pe(-1) : ne(-1);
332
- };
333
- return a.createElement(M.div, { ref: r, tabIndex: -1, ...G, "cmdk-root": "", onKeyDown: (n) => {
334
- var d;
335
- if ((d = G.onKeyDown) == null || d.call(G, n), !n.defaultPrevented) switch (n.key) {
336
- case "n":
337
- case "j": {
338
- I && n.ctrlKey && ge(n);
339
- break;
340
- }
341
- case "ArrowDown": {
342
- ge(n);
343
- break;
344
- }
345
- case "p":
346
- case "k": {
347
- I && n.ctrlKey && he(n);
348
- break;
349
- }
350
- case "ArrowUp": {
351
- he(n);
352
- break;
353
- }
354
- case "Home": {
355
- n.preventDefault(), re(0);
356
- break;
357
- }
358
- case "End": {
359
- n.preventDefault(), ve();
360
- break;
361
- }
362
- case "Enter":
363
- if (!n.nativeEvent.isComposing && n.keyCode !== 229) {
364
- n.preventDefault();
365
- let g = H();
366
- if (g) {
367
- let l = new Event(de);
368
- g.dispatchEvent(l);
369
- }
370
- }
371
- }
372
- } }, a.createElement("label", { "cmdk-label": "", htmlFor: T.inputId, id: T.labelId, style: pt }, h), ee(e, (n) => a.createElement(Oe.Provider, { value: k }, a.createElement(Ne.Provider, { value: T }, n))));
373
- }), rt = a.forwardRef((e, r) => {
374
- var t, f;
375
- let o = F(), u = a.useRef(null), c = a.useContext(De), v = Y(), h = je(e), m = (f = (t = h.current) == null ? void 0 : t.forceMount) != null ? f : c == null ? void 0 : c.forceMount;
376
- q(() => {
377
- if (!m) return v.item(o, c == null ? void 0 : c.id);
378
- }, [m]);
379
- let s = Ae(o, u, [e.value, e.children, u], e.keywords), i = fe(), y = U((p) => p.value && p.value === s.current), x = U((p) => m || v.filter() === !1 ? !0 : p.search ? p.filtered.items.get(o) > 0 : !0);
380
- a.useEffect(() => {
381
- let p = u.current;
382
- if (!(!p || e.disabled)) return p.addEventListener(de, N), () => p.removeEventListener(de, N);
383
- }, [x, e.onSelect, e.disabled]);
384
- function N() {
385
- var p, k;
386
- O(), (k = (p = h.current).onSelect) == null || k.call(p, s.current);
387
- }
388
- function O() {
389
- i.setState("value", s.current, !0);
390
- }
391
- if (!x) return null;
392
- let { disabled: I, value: G, onSelect: J, forceMount: _, keywords: b, ...R } = e;
393
- return a.createElement(M.div, { ref: X([u, r]), ...R, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!I, "aria-selected": !!y, "data-disabled": !!I, "data-selected": !!y, onPointerMove: I || v.getDisablePointerSelection() ? void 0 : O, onClick: I ? void 0 : N }, e.children);
394
- }), nt = a.forwardRef((e, r) => {
395
- let { heading: t, children: f, forceMount: o, ...u } = e, c = F(), v = a.useRef(null), h = a.useRef(null), m = F(), s = Y(), i = U((x) => o || s.filter() === !1 ? !0 : x.search ? x.filtered.groups.has(c) : !0);
396
- q(() => s.group(c), []), Ae(c, v, [e.value, e.heading, h]);
397
- let y = a.useMemo(() => ({ id: c, forceMount: o }), [o]);
398
- return a.createElement(M.div, { ref: X([v, r]), ...u, "cmdk-group": "", role: "presentation", hidden: i ? void 0 : !0 }, t && a.createElement("div", { ref: h, "cmdk-group-heading": "", "aria-hidden": !0, id: m }, t), ee(e, (x) => a.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": t ? m : void 0 }, a.createElement(De.Provider, { value: y }, x))));
399
- }), at = a.forwardRef((e, r) => {
400
- let { alwaysRender: t, ...f } = e, o = a.useRef(null), u = U((c) => !c.search);
401
- return !t && !u ? null : a.createElement(M.div, { ref: X([o, r]), ...f, "cmdk-separator": "", role: "separator" });
402
- }), ot = a.forwardRef((e, r) => {
403
- let { onValueChange: t, ...f } = e, o = e.value != null, u = fe(), c = U((s) => s.search), v = U((s) => s.value), h = Y(), m = a.useMemo(() => {
404
- var s;
405
- let i = (s = h.listInnerRef.current) == null ? void 0 : s.querySelector(`${ce}[${K}="${encodeURIComponent(v)}"]`);
406
- return i == null ? void 0 : i.getAttribute("id");
407
- }, []);
408
- return a.useEffect(() => {
409
- e.value != null && u.setState("search", e.value);
410
- }, [e.value]), a.createElement(M.input, { ref: r, ...f, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": h.listId, "aria-labelledby": h.labelId, "aria-activedescendant": m, id: h.inputId, type: "text", value: o ? e.value : c, onChange: (s) => {
411
- o || u.setState("search", s.target.value), t == null || t(s.target.value);
412
- } });
413
- }), lt = a.forwardRef((e, r) => {
414
- let { children: t, label: f = "Suggestions", ...o } = e, u = a.useRef(null), c = a.useRef(null), v = Y();
415
- return a.useEffect(() => {
416
- if (c.current && u.current) {
417
- let h = c.current, m = u.current, s, i = new ResizeObserver(() => {
418
- s = requestAnimationFrame(() => {
419
- let y = h.offsetHeight;
420
- m.style.setProperty("--cmdk-list-height", y.toFixed(1) + "px");
421
- });
422
- });
423
- return i.observe(h), () => {
424
- cancelAnimationFrame(s), i.unobserve(h);
425
- };
426
- }
427
- }, []), a.createElement(M.div, { ref: X([u, r]), ...o, "cmdk-list": "", role: "listbox", "aria-label": f, id: v.listId }, ee(e, (h) => a.createElement("div", { ref: X([c, v.listInnerRef]), "cmdk-list-sizer": "" }, h)));
428
- }), it = a.forwardRef((e, r) => {
429
- let { open: t, onOpenChange: f, overlayClassName: o, contentClassName: u, container: c, ...v } = e;
430
- return a.createElement(C.Root, { open: t, onOpenChange: f }, a.createElement(C.Portal, { container: c }, a.createElement(C.Overlay, { "cmdk-overlay": "", className: o }), a.createElement(C.Content, { "aria-label": e.label, "cmdk-dialog": "", className: u }, a.createElement(Ie, { ref: r, ...v }))));
431
- }), ut = a.forwardRef((e, r) => U((t) => t.filtered.count === 0) ? a.createElement(M.div, { ref: r, ...e, "cmdk-empty": "", role: "presentation" }) : null), st = a.forwardRef((e, r) => {
432
- let { progress: t, children: f, label: o = "Loading...", ...u } = e;
433
- return a.createElement(M.div, { ref: r, ...u, "cmdk-loading": "", role: "progressbar", "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, ee(e, (c) => a.createElement("div", { "aria-hidden": !0 }, c)));
434
- }), D = Object.assign(Ie, { List: lt, Item: rt, Input: ot, Group: nt, Separator: at, Dialog: it, Empty: ut, Loading: st });
435
- function dt(e, r) {
436
- let t = e.nextElementSibling;
437
- for (; t; ) {
438
- if (t.matches(r)) return t;
439
- t = t.nextElementSibling;
440
- }
441
- }
442
- function ct(e, r) {
443
- let t = e.previousElementSibling;
444
- for (; t; ) {
445
- if (t.matches(r)) return t;
446
- t = t.previousElementSibling;
447
- }
448
- }
449
- function je(e) {
450
- let r = a.useRef(e);
451
- return q(() => {
452
- r.current = e;
453
- }), r;
454
- }
455
- var q = typeof window > "u" ? a.useEffect : a.useLayoutEffect;
456
- function P(e) {
457
- let r = a.useRef();
458
- return r.current === void 0 && (r.current = e()), r;
459
- }
460
- function X(e) {
461
- return (r) => {
462
- e.forEach((t) => {
463
- typeof t == "function" ? t(r) : t != null && (t.current = r);
464
- });
465
- };
466
- }
467
- function U(e) {
468
- let r = fe(), t = () => e(r.snapshot());
469
- return Ze.useSyncExternalStore(r.subscribe, t, t);
470
- }
471
- function Ae(e, r, t, f = []) {
472
- let o = a.useRef(), u = Y();
473
- return q(() => {
474
- var c;
475
- let v = (() => {
476
- var m;
477
- for (let s of t) {
478
- if (typeof s == "string") return s.trim();
479
- if (typeof s == "object" && "current" in s) return s.current ? (m = s.current.textContent) == null ? void 0 : m.trim() : o.current;
480
- }
481
- })(), h = f.map((m) => m.trim());
482
- u.value(e, v, h), (c = r.current) == null || c.setAttribute(K, v), o.current = v;
483
- }), o;
484
- }
485
- var ft = () => {
486
- let [e, r] = a.useState(), t = P(() => /* @__PURE__ */ new Map());
487
- return q(() => {
488
- t.current.forEach((f) => f()), t.current = /* @__PURE__ */ new Map();
489
- }, [e]), (f, o) => {
490
- t.current.set(f, o), r({});
491
- };
492
- };
493
- function mt(e) {
494
- let r = e.type;
495
- return typeof r == "function" ? r(e.props) : "render" in r ? r.render(e.props) : e;
496
- }
497
- function ee({ asChild: e, children: r }, t) {
498
- return e && a.isValidElement(r) ? a.cloneElement(mt(r), { ref: r.ref }, t(r.props.children)) : t(r);
499
- }
500
- var pt = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
501
- const Le = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ w.jsx(
502
- D,
503
- {
504
- ref: t,
505
- className: L(
506
- "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
507
- e
508
- ),
509
- ...r
510
- }
511
- ));
512
- Le.displayName = D.displayName;
513
- const Ot = ({ children: e, ...r }) => /* @__PURE__ */ w.jsx($e, { ...r, children: /* @__PURE__ */ w.jsx(Re, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ w.jsx(Le, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), vt = a.forwardRef(({ className: e, ...r }, t) => (
514
- // eslint-disable-next-line react/no-unknown-property
515
- /* @__PURE__ */ w.jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
516
- /* @__PURE__ */ w.jsx(Me, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
517
- /* @__PURE__ */ w.jsx(
518
- D.Input,
519
- {
520
- ref: t,
521
- className: L(
522
- "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
523
- e
524
- ),
525
- ...r
526
- }
527
- )
528
- ] })
529
- ));
530
- vt.displayName = D.Input.displayName;
531
- const gt = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ w.jsx(
532
- D.List,
533
- {
534
- ref: t,
535
- className: L("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
536
- ...r
537
- }
538
- ));
539
- gt.displayName = D.List.displayName;
540
- const ht = a.forwardRef((e, r) => /* @__PURE__ */ w.jsx(
541
- D.Empty,
542
- {
543
- ref: r,
544
- className: "py-6 text-center text-sm",
545
- ...e
546
- }
547
- ));
548
- ht.displayName = D.Empty.displayName;
549
- const yt = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ w.jsx(
550
- D.Group,
551
- {
552
- ref: t,
553
- className: L(
554
- "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
555
- e
556
- ),
557
- ...r
558
- }
559
- ));
560
- yt.displayName = D.Group.displayName;
561
- const St = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ w.jsx(
562
- D.Separator,
563
- {
564
- ref: t,
565
- className: L("-mx-1 h-px bg-border", e),
566
- ...r
567
- }
568
- ));
569
- St.displayName = D.Separator.displayName;
570
- const xt = a.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ w.jsx(
571
- D.Item,
572
- {
573
- ref: t,
574
- className: L(
575
- "relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
576
- e
577
- ),
578
- ...r
579
- }
580
- ));
581
- xt.displayName = D.Item.displayName;
582
- const bt = ({
583
- className: e,
584
- ...r
585
- }) => /* @__PURE__ */ w.jsx(
586
- "span",
587
- {
588
- className: L(
589
- "ml-auto text-xs tracking-widest text-muted-foreground",
590
- e
591
- ),
592
- ...r
593
- }
594
- );
595
- bt.displayName = "CommandShortcut";
596
- export {
597
- Le as C,
598
- $e as D,
599
- vt as a,
600
- gt as b,
601
- ht as c,
602
- xt as d,
603
- Nt as e,
604
- Re as f,
605
- Ke as g,
606
- Ot as h,
607
- yt as i,
608
- St as j,
609
- bt as k
610
- };
611
- //# sourceMappingURL=Command-9x_kZHr4.js.map