@decocms/mesh 2.59.3 → 2.59.4

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 (139) hide show
  1. package/dist/client/assets/{AlertCircle-xn5rFX2T.js → AlertCircle-DcHEglIM.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-Bb6bw7wO.js → ArrowLeft-Dlm4CF9d.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-DmmjiRhr.js → ArrowUp-CC-2uYGu.js} +1 -1
  4. package/dist/client/assets/{Calendar-DjDp3sZ6.js → Calendar-PdB3o_9d.js} +1 -1
  5. package/dist/client/assets/{Check-CP3euUrF.js → Check-BzMGOxMB.js} +1 -1
  6. package/dist/client/assets/{ChevronDown-sM8LyvvZ.js → ChevronDown-BV0rwdFr.js} +1 -1
  7. package/dist/client/assets/{Code01-DR-jbECo.js → Code01-KWN4ist8.js} +1 -1
  8. package/dist/client/assets/{Copy01-Ds6kUzpe.js → Copy01-DH_iV9-n.js} +1 -1
  9. package/dist/client/assets/{DotsHorizontal-DZRRv704.js → DotsHorizontal-CFL9xkGv.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-DZEGrhum.js → DotsVertical-DOgWrY6o.js} +1 -1
  11. package/dist/client/assets/{Download01-BxIh__MC.js → Download01-npnn9kWB.js} +1 -1
  12. package/dist/client/assets/{Edit01-BVZvpfR8.js → Edit01-CH6U7DHj.js} +1 -1
  13. package/dist/client/assets/{File02-Dh_9xh7Q.js → File02-Cuc-ZPtg.js} +1 -1
  14. package/dist/client/assets/{File06-B5Dv7-Oa.js → File06-BUwGdOjl.js} +1 -1
  15. package/dist/client/assets/{FilterLines-DH_DosQX.js → FilterLines-ia0H5bBk.js} +1 -1
  16. package/dist/client/assets/{Grid01-BRgRtmbs.js → Grid01-DmaR0g3f.js} +1 -1
  17. package/dist/client/assets/{Home02-lEMcKcn1.js → Home02-Cagj2miO.js} +1 -1
  18. package/dist/client/assets/{Image01-DoUr5ERm.js → Image01-BCcbzsoK.js} +1 -1
  19. package/dist/client/assets/{Inbox01-DGDxlReT.js → Inbox01-DoVQ3gCk.js} +1 -1
  20. package/dist/client/assets/{InfoCircle-BzAYvvO0.js → InfoCircle-qTETvFXb.js} +1 -1
  21. package/dist/client/assets/{Key01-DYMhbAB1.js → Key01-CHZQ8Cf-.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-CG-vKoro.js → LinkExternal01-Cq8yx7fP.js} +1 -1
  23. package/dist/client/assets/{List-7uuZoLIU.js → List-DZ53jWcW.js} +1 -1
  24. package/dist/client/assets/{Loading01-CaAuMuYs.js → Loading01-Bo9vDQAp.js} +1 -1
  25. package/dist/client/assets/{Lock01-B3UR0GHM.js → Lock01-C1QZkjy0.js} +1 -1
  26. package/dist/client/assets/{Pin01-YRdxhSee.js → Pin01-NWg5BL2M.js} +1 -1
  27. package/dist/client/assets/{Play-CUJHUsFq.js → Play-D2yqwct8.js} +1 -1
  28. package/dist/client/assets/{Plus-BfTBbS63.js → Plus-DAW17Fqf.js} +1 -1
  29. package/dist/client/assets/{SearchMd-DVKxUKrX.js → SearchMd-D9E7kgub.js} +1 -1
  30. package/dist/client/assets/{Share07-DC87ym6H.js → Share07-CN4FUsWW.js} +1 -1
  31. package/dist/client/assets/{Terminal-Csxea4Ut.js → Terminal-1HZulC_H.js} +1 -1
  32. package/dist/client/assets/{Tool01-ChloSpuN.js → Tool01-Ir04gLyn.js} +1 -1
  33. package/dist/client/assets/{Trash01-DFo133oe.js → Trash01-BUkAP1vf.js} +1 -1
  34. package/dist/client/assets/{Upload01-D1Hk2Al6.js → Upload01-DPPzM8Sw.js} +1 -1
  35. package/dist/client/assets/{Users03-D4Z1AQ9s.js → Users03-DscKVk_U.js} +1 -1
  36. package/dist/client/assets/{X-DhTQLdE5.js → X-DyyqPnhR.js} +1 -1
  37. package/dist/client/assets/{XClose-DnQCXbLq.js → XClose-nvPI0OtD.js} +1 -1
  38. package/dist/client/assets/{agent-detail-ByBpnMWY.js → agent-detail-pV-lC3Zh.js} +1 -1
  39. package/dist/client/assets/{agents-EruM84S0.js → agents-DepniFRU.js} +1 -1
  40. package/dist/client/assets/{alert-dialog-DZDASW_Y.js → alert-dialog-QzYPe_ae.js} +1 -1
  41. package/dist/client/assets/{auth-catchall-DMglr4vj.js → auth-catchall-COlMpx6Y.js} +1 -1
  42. package/dist/client/assets/{avatar-D8fhy6Ww.js → avatar-KkS1NpLz.js} +1 -1
  43. package/dist/client/assets/{badge-DUUncEQr.js → badge-CfH2vrIM.js} +1 -1
  44. package/dist/client/assets/{binder-BPAsHHtz.js → binder-Cyeq_Zec.js} +1 -1
  45. package/dist/client/assets/{button-CrpAre8y.js → button-D_0RTXDt.js} +1 -1
  46. package/dist/client/assets/{card-DFAR9fdq.js → card-BmOa96dk.js} +1 -1
  47. package/dist/client/assets/{checkbox-C3_7sazf.js → checkbox-CUtYbeQD.js} +1 -1
  48. package/dist/client/assets/{circle-alert-CKX7xMwa.js → circle-alert-BnmazpCh.js} +1 -1
  49. package/dist/client/assets/collapsible-0N2BB6Bm.js +23 -0
  50. package/dist/client/assets/{collection-detail-P4xS7bsU.js → collection-detail-CeAvZaUS.js} +1 -1
  51. package/dist/client/assets/{collection-display-button-Bg3dpeu8.js → collection-display-button-Cm0zQnM_.js} +1 -1
  52. package/dist/client/assets/{collection-header-otDJIXED.js → collection-header-CbT_At3k.js} +1 -1
  53. package/dist/client/assets/{collection-page-CUjvCEL-.js → collection-page-CpAhF9Tg.js} +1 -1
  54. package/dist/client/assets/{collection-search-DCaFQu6x.js → collection-search-DRZ8ScZP.js} +1 -1
  55. package/dist/client/assets/{collection-tab-CzmKWGIs.js → collection-tab-CyuO9CaU.js} +1 -1
  56. package/dist/client/assets/{collection-table-wrapper-DGYtCyoO.js → collection-table-wrapper-CspbeKNx.js} +1 -1
  57. package/dist/client/assets/{connect-BdCEolcr.js → connect-Dx3Myol5.js} +1 -1
  58. package/dist/client/assets/{connection-card-rs_E5lwE.js → connection-card-C6VYrDSx.js} +1 -1
  59. package/dist/client/assets/{connection-detail-DmZtLLGV.js → connection-detail-BAO1w9SL.js} +1 -1
  60. package/dist/client/assets/{connections-cBCnIsVT.js → connections-xwpD87cp.js} +1 -1
  61. package/dist/client/assets/{constants-CAezfWK1.js → constants-D8fdcBr8.js} +1 -1
  62. package/dist/client/assets/constants-rfrR0uMr.js +1 -0
  63. package/dist/client/assets/{create-organization-dialog-BPmyxFH3.js → create-organization-dialog-D96wehG4.js} +1 -1
  64. package/dist/client/assets/{dialog-DHQqGK7g.js → dialog-B-A0vnh-.js} +1 -1
  65. package/dist/client/assets/{dropdown-menu-C8F0EsLR.js → dropdown-menu-CMmh8IDN.js} +1 -1
  66. package/dist/client/assets/{dynamic-plugin-layout-D4RjVErB.js → dynamic-plugin-layout-D5OcFZH0.js} +1 -1
  67. package/dist/client/assets/{empty-state-DrxI6i2r.js → empty-state-BS0aVQHO.js} +1 -1
  68. package/dist/client/assets/{empty-state--pBjJrWJ.js → empty-state-DKQ_J1zp.js} +1 -1
  69. package/dist/client/assets/{env-vars-editor-B2cK0oXN.js → env-vars-editor-BFfuzqB5.js} +1 -1
  70. package/dist/client/assets/{error-boundary-C4ZiBZqG.js → error-boundary-ynZ9rF8y.js} +1 -1
  71. package/dist/client/assets/{extract-connection-data-BQo5YaFM.js → extract-connection-data-5Dbbyfmc.js} +1 -1
  72. package/dist/client/assets/{file-browser-DsCPH1Ag.js → file-browser-DWYmbjoP.js} +2 -2
  73. package/dist/client/assets/{form-DQQrIzsV.js → form-DngqlMy0.js} +1 -1
  74. package/dist/client/assets/{grid-view-DW981ZW7.js → grid-view-DBdpM4tG.js} +1 -1
  75. package/dist/client/assets/{home-D-N7CfPC.js → home-Dh3O7N9x.js} +1 -1
  76. package/dist/client/assets/{index-D55GsjfR.js → index-B8BaCPuX.js} +1 -1
  77. package/dist/client/assets/{index-BVCaXPqJ.js → index-BWcrkV98.js} +1 -1
  78. package/dist/client/assets/{index-CsFpv8QQ.js → index-BtGsFE3_.js} +1 -1
  79. package/dist/client/assets/{index-CYuJPFs9.js → index-C_CYTppS.js} +1 -1
  80. package/dist/client/assets/{index-DaTQM6wc.js → index-DaiP89U7.js} +1 -1
  81. package/dist/client/assets/{index-M3wOD-T-.js → index-Dho9MRVw.js} +2 -2
  82. package/dist/client/assets/{infiniteQueryObserver-CfX1I4Ag.js → infiniteQueryObserver-DDmbfPGP.js} +1 -1
  83. package/dist/client/assets/{input-YM08EPCC.js → input-trZWilTG.js} +1 -1
  84. package/dist/client/assets/{layout-BHkRlBCz.js → layout-BZ8_9wgI.js} +1 -1
  85. package/dist/client/assets/{localstorage-keys-hwI1e15G.js → localstorage-keys-B7V7cQcH.js} +1 -1
  86. package/dist/client/assets/{login-DST3z8Qq.js → login-D61ut3BQ.js} +1 -1
  87. package/dist/client/assets/{mcp-oauth-PtJaIBSs.js → mcp-oauth-kjSe-9sd.js} +1 -1
  88. package/dist/client/assets/{mcp-server-card-BGCxJtFs.js → mcp-server-card-DkR0AaJs.js} +1 -1
  89. package/dist/client/assets/{mcp-server-detail-CLu2K73s.js → mcp-server-detail-Bq0lDMH3.js} +2 -2
  90. package/dist/client/assets/{members-DdELhmRF.js → members-DqAGtLhZ.js} +1 -1
  91. package/dist/client/assets/{monaco-editor-i9oMLTE9.js → monaco-editor-KzPiR_VS.js} +1 -1
  92. package/dist/client/assets/{monitoring-CVIH1wIi.js → monitoring-DkEahA8B.js} +1 -1
  93. package/dist/client/assets/{oauth-callback-BHMg2ciL.js → oauth-callback-C_OPSpWp.js} +1 -1
  94. package/dist/client/assets/{page-DVKYkPd1.js → page-BQkgsSw9.js} +1 -1
  95. package/dist/client/assets/{page-DAZ87OMt.js → page-DWOf0lbq.js} +1 -1
  96. package/dist/client/assets/{pin-to-sidebar-button-CnJDDpqU.js → pin-to-sidebar-button-Cdnz6iok.js} +1 -1
  97. package/dist/client/assets/{plugin-empty-state-CRXDez4A.js → plugin-empty-state-Dr-6CK5g.js} +1 -1
  98. package/dist/client/assets/{plugin-header-BW0ZqJ9r.js → plugin-header-CAC6QLaV.js} +1 -1
  99. package/dist/client/assets/{plugins-Ciz3DPby.js → plugins-57qT4Dil.js} +1 -1
  100. package/dist/client/assets/{popover-B_5ZVJni.js → popover-Bkt9Kfhi.js} +1 -1
  101. package/dist/client/assets/{registry-utils-CcsfK0rU.js → registry-utils-tiv71gSA.js} +1 -1
  102. package/dist/client/assets/{resizable-rgbJMlXu.js → resizable-BdOXbYHL.js} +1 -1
  103. package/dist/client/assets/{resource-tabs-DnsGbVCQ.js → resource-tabs-G-U5EIhm.js} +1 -1
  104. package/dist/client/assets/{select-D2wMncj-.js → select-reGYS0Ly.js} +1 -1
  105. package/dist/client/assets/{settings-CLiZONWL.js → settings-zvu2qyde.js} +1 -1
  106. package/dist/client/assets/{shell-layout-Cjy6ltJC.js → shell-layout-C-8OlUFV.js} +1 -1
  107. package/dist/client/assets/{spinner-B3atGTOQ.js → spinner-E8mBz_Z6.js} +1 -1
  108. package/dist/client/assets/{store-invite-Ckjal6E8.js → store-invite-DnYGNBjx.js} +1 -1
  109. package/dist/client/assets/{switch-DKUU5EKy.js → switch-t5mcsF2Z.js} +1 -1
  110. package/dist/client/assets/{textarea-55XlgpLZ.js → textarea-x7X_L353.js} +1 -1
  111. package/dist/client/assets/{tools-list-ENMGYPBW.js → tools-list-DQZuaE9M.js} +1 -1
  112. package/dist/client/assets/{tooltip-D1Jc2Tgr.js → tooltip-Cw2xVvTD.js} +1 -1
  113. package/dist/client/assets/{typewriter-title-1wCftG4E.js → typewriter-title-BK26jx8M.js} +1 -1
  114. package/dist/client/assets/{use-binding-DdMe4omo.js → use-binding-BVBmgj67.js} +1 -1
  115. package/dist/client/assets/{use-collections-COu7mzCX.js → use-collections-CVO4vm4G.js} +1 -1
  116. package/dist/client/assets/{use-connection-D5-dSK3A.js → use-connection-BU-nKbTz.js} +1 -1
  117. package/dist/client/assets/{use-create-virtual-mcp-BaTDfij5.js → use-create-virtual-mcp-Cr2fOp7g.js} +1 -1
  118. package/dist/client/assets/{use-deco-chat-open-BRCU7WzQ.js → use-deco-chat-open-D-b5da72.js} +1 -1
  119. package/dist/client/assets/{use-list-state-xhqAqE-A.js → use-list-state-ClsnlmlI.js} +1 -1
  120. package/dist/client/assets/{use-mcp-prompts-BLDzHD20.js → use-mcp-prompts-B5zcyY9X.js} +1 -1
  121. package/dist/client/assets/{use-members-IqhuQTuW.js → use-members-CVUMGKct.js} +1 -1
  122. package/dist/client/assets/{use-mobile-DIZjLJK7.js → use-mobile-VoJXvE1W.js} +1 -1
  123. package/dist/client/assets/{use-organization-settings-D9D-nJ5w.js → use-organization-settings-CeE0FyqT.js} +1 -1
  124. package/dist/client/assets/{use-virtual-mcp-Ciz726kq.js → use-virtual-mcp-DbjvrtSR.js} +1 -1
  125. package/dist/client/assets/useInfiniteQuery-CVAyTLiO.js +1 -0
  126. package/dist/client/assets/{useMutation-i3JyomhH.js → useMutation-Lj_Cbq0P.js} +1 -1
  127. package/dist/client/assets/useQuery-C2zqJzGD.js +1 -0
  128. package/dist/client/assets/useSuspenseInfiniteQuery-BS0TxHG_.js +1 -0
  129. package/dist/client/assets/{view-mode-toggle-DWoBF8kY.js → view-mode-toggle-BagEO4CJ.js} +1 -1
  130. package/dist/client/assets/{workflow-BQn7VIZF.js → workflow-BuhbYm_s.js} +1 -1
  131. package/dist/client/index.html +1 -1
  132. package/dist/server/cli.js +134 -134
  133. package/dist/server/server.js +121 -121
  134. package/package.json +1 -1
  135. package/dist/client/assets/collapsible-CNHksBot.js +0 -23
  136. package/dist/client/assets/constants-AccVhxEg.js +0 -1
  137. package/dist/client/assets/useInfiniteQuery-DZakeCfr.js +0 -1
  138. package/dist/client/assets/useQuery-BQUu3Rwx.js +0 -1
  139. package/dist/client/assets/useSuspenseInfiniteQuery-aRxFMhU5.js +0 -1
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));i.displayName="AlertCircle";export{i};
1
+ import{r}from"./index-Dho9MRVw.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));i.displayName="AlertCircle";export{i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M19 12H5m0 0 7 7m-7-7 7-7"}));i.displayName="ArrowLeft";export{i};
1
+ import{r}from"./index-Dho9MRVw.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M19 12H5m0 0 7 7m-7-7 7-7"}));i.displayName="ArrowLeft";export{i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const i=({size:e=24,color:o="currentColor",...t})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},r.createElement("path",{d:"M12 19V5m0 0-7 7m7-7 7 7"}));i.displayName="ArrowUp";export{i};
1
+ import{r}from"./index-Dho9MRVw.js";const i=({size:e=24,color:o="currentColor",...t})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},r.createElement("path",{d:"M12 19V5m0 0-7 7m7-7 7 7"}));i.displayName="ArrowUp";export{i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M21 10H3m13-8v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22Z"}));a.displayName="Calendar";export{a as n};
1
+ import{r}from"./index-Dho9MRVw.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M21 10H3m13-8v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22Z"}));a.displayName="Calendar";export{a as n};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M20 6 9 17l-5-5"}));i.displayName="Check";export{i};
1
+ import{r}from"./index-Dho9MRVw.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M20 6 9 17l-5-5"}));i.displayName="Check";export{i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const n=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m6 9 6 6 6-6"}));n.displayName="ChevronDown";export{n as t};
1
+ import{r}from"./index-Dho9MRVw.js";const n=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m6 9 6 6 6-6"}));n.displayName="ChevronDown";export{n as t};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m16 18 6-6-6-6M8 6l-6 6 6 6"}));i.displayName="Code01";export{i};
1
+ import{r}from"./index-Dho9MRVw.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m16 18 6-6-6-6M8 6l-6 6 6 6"}));i.displayName="Code01";export{i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const o=({size:e=24,color:t="currentColor",...a})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},r.createElement("path",{d:"M5 15c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C2 13.398 2 12.932 2 12V5.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C3.52 2 4.08 2 5.2 2H12c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C15 3.602 15 4.068 15 5m-2.8 17h6.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.48 22 19.92 22 18.8v-6.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 9 19.92 9 18.8 9h-6.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C9 10.52 9 11.08 9 12.2v6.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C10.52 22 11.08 22 12.2 22Z"}));o.displayName="Copy01";export{o as a};
1
+ import{r}from"./index-Dho9MRVw.js";const o=({size:e=24,color:t="currentColor",...a})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},r.createElement("path",{d:"M5 15c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C2 13.398 2 12.932 2 12V5.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C3.52 2 4.08 2 5.2 2H12c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C15 3.602 15 4.068 15 5m-2.8 17h6.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.48 22 19.92 22 18.8v-6.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 9 19.92 9 18.8 9h-6.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C9 10.52 9 11.08 9 12.2v6.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C10.52 22 11.08 22 12.2 22Z"}));o.displayName="Copy01";export{o as a};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm7 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));i.displayName="DotsHorizontal";export{i};
1
+ import{r}from"./index-Dho9MRVw.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm7 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));i.displayName="DotsHorizontal";export{i};
@@ -1 +1 @@
1
- import{r as t}from"./index-M3wOD-T-.js";const i=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0-7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));i.displayName="DotsVertical";export{i};
1
+ import{r as t}from"./index-Dho9MRVw.js";const i=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0-7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));i.displayName="DotsVertical";export{i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const n=({size:e=24,color:o="currentColor",...t})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},r.createElement("path",{d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-5-5 5m0 0-5-5m5 5V3"}));n.displayName="Download01";export{n};
1
+ import{r}from"./index-Dho9MRVw.js";const n=({size:e=24,color:o="currentColor",...t})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},r.createElement("path",{d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-5-5 5m0 0-5-5m5 5V3"}));n.displayName="Download01";export{n};
@@ -1 +1 @@
1
- import{r as t}from"./index-M3wOD-T-.js";const i=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M2.876 18.116c.046-.414.069-.62.131-.814a2 2 0 0 1 .234-.485c.111-.17.259-.317.553-.61L17 3a2.828 2.828 0 1 1 4 4L7.794 20.206c-.294.294-.442.442-.611.553a2 2 0 0 1-.485.233c-.193.063-.4.086-.814.132L2.5 21.5l.376-3.384Z"}));i.displayName="Edit01";export{i};
1
+ import{r as t}from"./index-Dho9MRVw.js";const i=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M2.876 18.116c.046-.414.069-.62.131-.814a2 2 0 0 1 .234-.485c.111-.17.259-.317.553-.61L17 3a2.828 2.828 0 1 1 4 4L7.794 20.206c-.294.294-.442.442-.611.553a2 2 0 0 1-.485.233c-.193.063-.4.086-.814.132L2.5 21.5l.376-3.384Z"}));i.displayName="Edit01";export{i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M14 11H8m2 4H8m8-8H8m12-.2v10.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 22 16.88 22 15.2 22H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 19.72 4 18.88 4 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C6.28 2 7.12 2 8.8 2h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C20 4.28 20 5.12 20 6.8Z"}));i.displayName="File02";export{i};
1
+ import{r}from"./index-Dho9MRVw.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M14 11H8m2 4H8m8-8H8m12-.2v10.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 22 16.88 22 15.2 22H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 19.72 4 18.88 4 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C6.28 2 7.12 2 8.8 2h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C20 4.28 20 5.12 20 6.8Z"}));i.displayName="File02";export{i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M14 2.27V6.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437c.214.11.494.11 1.054.11h4.13M16 13H8m8 4H8m2-8H8m6-7H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 4.28 4 5.12 4 6.8v10.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 22 7.12 22 8.8 22h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 19.72 20 18.88 20 17.2V8l-6-6Z"}));i.displayName="File06";export{i};
1
+ import{r}from"./index-Dho9MRVw.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M14 2.27V6.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437c.214.11.494.11 1.054.11h4.13M16 13H8m8 4H8m2-8H8m6-7H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 4.28 4 5.12 4 6.8v10.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 22 7.12 22 8.8 22h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 19.72 20 18.88 20 17.2V8l-6-6Z"}));i.displayName="File06";export{i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M6 12h12M3 6h18M9 18h6"}));i.displayName="FilterLines";export{i};
1
+ import{r}from"./index-Dho9MRVw.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M6 12h12M3 6h18M9 18h6"}));i.displayName="FilterLines";export{i};
@@ -1 +1 @@
1
- import{r as t}from"./index-M3wOD-T-.js";const o=({size:e=24,color:a="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:a,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"m9 18 6-6-6-6"}));o.displayName="ChevronRight";const c=({size:e=24,color:a="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:a,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M8.4 3H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 3.76 3 4.04 3 4.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 10 4.04 10 4.6 10h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C10 9.24 10 8.96 10 8.4V4.6c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C9.24 3 8.96 3 8.4 3Zm11 0h-3.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C14 3.76 14 4.04 14 4.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C14.76 10 15.04 10 15.6 10h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C21 9.24 21 8.96 21 8.4V4.6c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C20.24 3 19.96 3 19.4 3Zm0 11h-3.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C14 14.76 14 15.04 14 15.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C14.76 21 15.04 21 15.6 21h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C21 20.24 21 19.96 21 19.4v-3.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C20.24 14 19.96 14 19.4 14Zm-11 0H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 14.76 3 15.04 3 15.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C10 20.24 10 19.96 10 19.4v-3.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C9.24 14 8.96 14 8.4 14Z"}));c.displayName="Grid01";export{c,o as i};
1
+ import{r as t}from"./index-Dho9MRVw.js";const o=({size:e=24,color:a="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:a,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"m9 18 6-6-6-6"}));o.displayName="ChevronRight";const c=({size:e=24,color:a="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:a,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M8.4 3H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 3.76 3 4.04 3 4.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 10 4.04 10 4.6 10h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C10 9.24 10 8.96 10 8.4V4.6c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C9.24 3 8.96 3 8.4 3Zm11 0h-3.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C14 3.76 14 4.04 14 4.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C14.76 10 15.04 10 15.6 10h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C21 9.24 21 8.96 21 8.4V4.6c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C20.24 3 19.96 3 19.4 3Zm0 11h-3.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C14 14.76 14 15.04 14 15.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C14.76 21 15.04 21 15.6 21h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C21 20.24 21 19.96 21 19.4v-3.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C20.24 14 19.96 14 19.4 14Zm-11 0H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 14.76 3 15.04 3 15.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C10 20.24 10 19.96 10 19.4v-3.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C9.24 14 8.96 14 8.4 14Z"}));c.displayName="Grid01";export{c,o as i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const o=({size:e=24,color:t="currentColor",...a})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},r.createElement("path",{d:"M9 21v-7.4c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 12 10.04 12 10.6 12h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 12.76 15 13.04 15 13.6V21M11.018 2.764 4.235 8.039c-.453.353-.68.53-.843.75a2 2 0 0 0-.318.65C3 9.704 3 9.991 3 10.565V17.8c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8v-7.235c0-.574 0-.861-.074-1.126a2.002 2.002 0 0 0-.318-.65c-.163-.22-.39-.397-.843-.75l-6.783-5.275c-.351-.273-.527-.41-.72-.462a1 1 0 0 0-.523 0c-.194.052-.37.189-.721.462Z"}));o.displayName="Home02";export{o as a};
1
+ import{r}from"./index-Dho9MRVw.js";const o=({size:e=24,color:t="currentColor",...a})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},r.createElement("path",{d:"M9 21v-7.4c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 12 10.04 12 10.6 12h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 12.76 15 13.04 15 13.6V21M11.018 2.764 4.235 8.039c-.453.353-.68.53-.843.75a2 2 0 0 0-.318.65C3 9.704 3 9.991 3 10.565V17.8c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8v-7.235c0-.574 0-.861-.074-1.126a2.002 2.002 0 0 0-.318-.65c-.163-.22-.39-.397-.843-.75l-6.783-5.275c-.351-.273-.527-.41-.72-.462a1 1 0 0 0-.523 0c-.194.052-.37.189-.721.462Z"}));o.displayName="Home02";export{o as a};
@@ -1 +1 @@
1
- import{r as a}from"./index-M3wOD-T-.js";const o=({size:e=24,color:r="currentColor",...t})=>a.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},a.createElement("path",{d:"M16.2 21H6.931c-.605 0-.908 0-1.049-.12a.5.5 0 0 1-.173-.42c.014-.183.228-.397.657-.826l8.503-8.503c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L21 15v1.2M16.2 21c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 18.72 21 17.88 21 16.2M16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4M10.5 8.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"}));o.displayName="Image01";export{o as a};
1
+ import{r as a}from"./index-Dho9MRVw.js";const o=({size:e=24,color:r="currentColor",...t})=>a.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},a.createElement("path",{d:"M16.2 21H6.931c-.605 0-.908 0-1.049-.12a.5.5 0 0 1-.173-.42c.014-.183.228-.397.657-.826l8.503-8.503c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L21 15v1.2M16.2 21c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 18.72 21 17.88 21 16.2M16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4M10.5 8.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"}));o.displayName="Image01";export{o as a};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const c=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M2.5 12h3.382c.685 0 1.312.387 1.618 1 .306.613.933 1 1.618 1h5.764c.685 0 1.312-.387 1.618-1 .306-.613.933-1 1.618-1H21.5M8.967 4h6.066c1.077 0 1.616 0 2.091.164a3 3 0 0 1 1.121.693c.36.352.6.833 1.082 1.796l2.166 4.333c.19.378.284.567.35.765.06.177.102.357.128.541.029.207.029.418.029.841V15.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 20 18.88 20 17.2 20H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 17.72 2 16.88 2 15.2v-2.067c0-.422 0-.634.029-.84.026-.184.068-.365.128-.541.066-.199.16-.388.35-.766l2.166-4.333c.482-.963.723-1.444 1.082-1.796a3 3 0 0 1 1.12-.693C7.352 4 7.89 4 8.968 4Z"}));c.displayName="Inbox01";export{c as n};
1
+ import{r}from"./index-Dho9MRVw.js";const c=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M2.5 12h3.382c.685 0 1.312.387 1.618 1 .306.613.933 1 1.618 1h5.764c.685 0 1.312-.387 1.618-1 .306-.613.933-1 1.618-1H21.5M8.967 4h6.066c1.077 0 1.616 0 2.091.164a3 3 0 0 1 1.121.693c.36.352.6.833 1.082 1.796l2.166 4.333c.19.378.284.567.35.765.06.177.102.357.128.541.029.207.029.418.029.841V15.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 20 18.88 20 17.2 20H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 17.72 2 16.88 2 15.2v-2.067c0-.422 0-.634.029-.84.026-.184.068-.365.128-.541.066-.199.16-.388.35-.766l2.166-4.333c.482-.963.723-1.444 1.082-1.796a3 3 0 0 1 1.12-.693C7.352 4 7.89 4 8.968 4Z"}));c.displayName="Inbox01";export{c as n};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const i=({size:e=24,color:o="currentColor",...t})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},r.createElement("path",{d:"M12 16v-4m0-4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));i.displayName="InfoCircle";export{i};
1
+ import{r}from"./index-Dho9MRVw.js";const i=({size:e=24,color:o="currentColor",...t})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},r.createElement("path",{d:"M12 16v-4m0-4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));i.displayName="InfoCircle";export{i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M17 9a1.99 1.99 0 0 0-.586-1.414A1.994 1.994 0 0 0 15 7m0 8a6 6 0 1 0-5.946-5.193c.058.434.087.651.068.789a.853.853 0 0 1-.117.346c-.068.121-.187.24-.426.479l-5.11 5.11c-.173.173-.26.26-.322.36a1 1 0 0 0-.12.29C3 17.296 3 17.418 3 17.663V19.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H7v-2h2v-2h2l1.58-1.58c.238-.238.357-.357.478-.425a.852.852 0 0 1 .346-.117c.138-.02.355.01.789.068.264.036.533.054.807.054Z"}));a.displayName="Key01";export{a as i};
1
+ import{r}from"./index-Dho9MRVw.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M17 9a1.99 1.99 0 0 0-.586-1.414A1.994 1.994 0 0 0 15 7m0 8a6 6 0 1 0-5.946-5.193c.058.434.087.651.068.789a.853.853 0 0 1-.117.346c-.068.121-.187.24-.426.479l-5.11 5.11c-.173.173-.26.26-.322.36a1 1 0 0 0-.12.29C3 17.296 3 17.418 3 17.663V19.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H7v-2h2v-2h2l1.58-1.58c.238-.238.357-.357.478-.425a.852.852 0 0 1 .346-.117c.138-.02.355.01.789.068.264.036.533.054.807.054Z"}));a.displayName="Key01";export{a as i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const n=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M21 9V3m0 0h-6m6 0-8 8m-3-6H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 7.28 3 8.12 3 9.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C19 18.72 19 17.88 19 16.2V14"}));n.displayName="LinkExternal01";export{n};
1
+ import{r}from"./index-Dho9MRVw.js";const n=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M21 9V3m0 0h-6m6 0-8 8m-3-6H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 7.28 3 8.12 3 9.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C19 18.72 19 17.88 19 16.2V14"}));n.displayName="LinkExternal01";export{n};
@@ -1 +1 @@
1
- import{r as t}from"./index-M3wOD-T-.js";const i=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M21 12H9m12-6H9m12 12H9m-4-6a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm0-6a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm0 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}));i.displayName="List";export{i};
1
+ import{r as t}from"./index-Dho9MRVw.js";const i=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M21 12H9m12-6H9m12 12H9m-4-6a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm0-6a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm0 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}));i.displayName="List";export{i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));i.displayName="Loading01";export{i};
1
+ import{r}from"./index-Dho9MRVw.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));i.displayName="Loading01";export{i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z"}));a.displayName="Lock01";export{a as i};
1
+ import{r}from"./index-Dho9MRVw.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z"}));a.displayName="Lock01";export{a as i};
@@ -1 +1 @@
1
- import{r as c}from"./index-M3wOD-T-.js";const o=({size:e=24,color:r="currentColor",...t})=>c.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},c.createElement("path",{d:"M12 15v7M8 7.308v2.13c0 .209 0 .313-.02.412a1.001 1.001 0 0 1-.09.254c-.045.09-.11.172-.24.334L6.08 12.4c-.666.833-.999 1.249-.999 1.599a1 1 0 0 0 .376.782C5.731 15 6.264 15 7.33 15h9.342c1.066 0 1.599 0 1.873-.219A1 1 0 0 0 18.92 14c0-.35-.333-.766-1-1.599l-1.569-1.962c-.13-.162-.195-.243-.241-.334a1.004 1.004 0 0 1-.09-.254C16 9.75 16 9.647 16 9.44V7.31c0-.116 0-.174.007-.23.006-.05.015-.1.029-.15a2.02 2.02 0 0 1 .079-.215l1.008-2.52c.294-.735.44-1.102.38-1.397a1 1 0 0 0-.427-.63C16.825 2 16.429 2 15.637 2H8.364c-.792 0-1.188 0-1.44.167a1 1 0 0 0-.426.63c-.06.295.086.662.38 1.397l1.008 2.52c.043.107.064.16.08.215a1 1 0 0 1 .028.15c.006.056.006.114.006.23Z"}));o.displayName="Pin01";export{o as c};
1
+ import{r as c}from"./index-Dho9MRVw.js";const o=({size:e=24,color:r="currentColor",...t})=>c.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},c.createElement("path",{d:"M12 15v7M8 7.308v2.13c0 .209 0 .313-.02.412a1.001 1.001 0 0 1-.09.254c-.045.09-.11.172-.24.334L6.08 12.4c-.666.833-.999 1.249-.999 1.599a1 1 0 0 0 .376.782C5.731 15 6.264 15 7.33 15h9.342c1.066 0 1.599 0 1.873-.219A1 1 0 0 0 18.92 14c0-.35-.333-.766-1-1.599l-1.569-1.962c-.13-.162-.195-.243-.241-.334a1.004 1.004 0 0 1-.09-.254C16 9.75 16 9.647 16 9.44V7.31c0-.116 0-.174.007-.23.006-.05.015-.1.029-.15a2.02 2.02 0 0 1 .079-.215l1.008-2.52c.294-.735.44-1.102.38-1.397a1 1 0 0 0-.427-.63C16.825 2 16.429 2 15.637 2H8.364c-.792 0-1.188 0-1.44.167a1 1 0 0 0-.426.63c-.06.295.086.662.38 1.397l1.008 2.52c.043.107.064.16.08.215a1 1 0 0 1 .028.15c.006.056.006.114.006.23Z"}));o.displayName="Pin01";export{o as c};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M5 4.99c0-.972 0-1.457.202-1.725a1 1 0 0 1 .738-.395c.335-.02.74.25 1.548.788l10.515 7.01c.668.446 1.002.668 1.118.949a1 1 0 0 1 0 .766c-.116.28-.45.503-1.118.948l-10.515 7.01c-.809.54-1.213.809-1.548.789a1 1 0 0 1-.738-.395C5 20.467 5 19.98 5 19.01V4.99Z"}));a.displayName="Play";export{a as i};
1
+ import{r}from"./index-Dho9MRVw.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M5 4.99c0-.972 0-1.457.202-1.725a1 1 0 0 1 .738-.395c.335-.02.74.25 1.548.788l10.515 7.01c.668.446 1.002.668 1.118.949a1 1 0 0 1 0 .766c-.116.28-.45.503-1.118.948l-10.515 7.01c-.809.54-1.213.809-1.548.789a1 1 0 0 1-.738-.395C5 20.467 5 19.98 5 19.01V4.99Z"}));a.displayName="Play";export{a as i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 5v14m-7-7h14"}));i.displayName="Plus";export{i as s};
1
+ import{r}from"./index-Dho9MRVw.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 5v14m-7-7h14"}));i.displayName="Plus";export{i as s};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m21 21-4.35-4.35M19 11a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z"}));i.displayName="SearchMd";export{i};
1
+ import{r}from"./index-Dho9MRVw.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m21 21-4.35-4.35M19 11a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z"}));i.displayName="SearchMd";export{i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m8.59 13.51 6.83 3.98m-.01-10.98-6.82 3.98M21 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM9 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm12 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}));a.displayName="Share07";export{a as i};
1
+ import{r}from"./index-Dho9MRVw.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m8.59 13.51 6.83 3.98m-.01-10.98-6.82 3.98M21 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM9 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm12 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}));a.displayName="Share07";export{a as i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m4 17 6-6-6-6m8 14h8"}));i.displayName="Terminal";export{i};
1
+ import{r}from"./index-Dho9MRVw.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m4 17 6-6-6-6m8 14h8"}));i.displayName="Terminal";export{i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M3 9h13.5a4.5 4.5 0 1 1 0 9H12M3 9l4-4M3 9l4 4"}));a.displayName="FlipBackward";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M15.631 7.631c-.396-.396-.594-.594-.668-.822a1 1 0 0 1 0-.618c.074-.228.272-.426.668-.822L18.47 2.53a6 6 0 0 0-8.3 6.895c.12.49.179.734.168.888a.849.849 0 0 1-.11.392c-.07.138-.207.274-.48.547L3.5 17.5a2.121 2.121 0 0 0 3 3l6.248-6.248c.273-.273.41-.41.547-.48a.849.849 0 0 1 .392-.11c.154-.011.399.049.888.168a6 6 0 0 0 6.895-8.3l-2.84 2.84c-.396.396-.594.594-.822.668a1 1 0 0 1-.618 0c-.228-.074-.426-.272-.822-.668l-.738-.738Z"}));i.displayName="Tool01";export{i as a,a as i};
1
+ import{r}from"./index-Dho9MRVw.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M3 9h13.5a4.5 4.5 0 1 1 0 9H12M3 9l4-4M3 9l4 4"}));a.displayName="FlipBackward";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M15.631 7.631c-.396-.396-.594-.594-.668-.822a1 1 0 0 1 0-.618c.074-.228.272-.426.668-.822L18.47 2.53a6 6 0 0 0-8.3 6.895c.12.49.179.734.168.888a.849.849 0 0 1-.11.392c-.07.138-.207.274-.48.547L3.5 17.5a2.121 2.121 0 0 0 3 3l6.248-6.248c.273-.273.41-.41.547-.48a.849.849 0 0 1 .392-.11c.154-.011.399.049.888.168a6 6 0 0 0 6.895-8.3l-2.84 2.84c-.396.396-.594.594-.822.668a1 1 0 0 1-.618 0c-.228-.074-.426-.272-.822-.668l-.738-.738Z"}));i.displayName="Tool01";export{i as a,a as i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M16 6v-.8c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 2 13.92 2 12.8 2h-1.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C8 3.52 8 4.08 8 5.2V6m2 5.5v5m4-5v5M3 6h18m-2 0v11.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C16.72 22 15.88 22 14.2 22H9.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C5 19.72 5 18.88 5 17.2V6"}));a.displayName="Trash01";export{a as s};
1
+ import{r}from"./index-Dho9MRVw.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M16 6v-.8c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 2 13.92 2 12.8 2h-1.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C8 3.52 8 4.08 8 5.2V6m2 5.5v5m4-5v5M3 6h18m-2 0v11.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C16.72 22 15.88 22 14.2 22H9.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C5 19.72 5 18.88 5 17.2V6"}));a.displayName="Trash01";export{a as s};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-7-5-5m0 0L7 8m5-5v12"}));i.displayName="Upload01";export{i};
1
+ import{r}from"./index-Dho9MRVw.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-7-5-5m0 0L7 8m5-5v12"}));i.displayName="Upload01";export{i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M18 15.837c1.456.731 2.704 1.905 3.615 3.373.18.29.27.436.302.637.063.409-.216.912-.597 1.073-.188.08-.398.08-.82.08M16 11.532a4.5 4.5 0 0 0 0-8.064M14 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM2.56 18.938C4.153 16.545 6.67 15 9.5 15s5.346 1.545 6.94 3.938c.35.525.525.787.505 1.122-.016.26-.187.58-.396.738-.267.202-.635.202-1.371.202H3.822c-.736 0-1.104 0-1.372-.202a1.109 1.109 0 0 1-.395-.738c-.02-.335.155-.597.504-1.122Z"}));a.displayName="Users03";export{a as t};
1
+ import{r}from"./index-Dho9MRVw.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M18 15.837c1.456.731 2.704 1.905 3.615 3.373.18.29.27.436.302.637.063.409-.216.912-.597 1.073-.188.08-.398.08-.82.08M16 11.532a4.5 4.5 0 0 0 0-8.064M14 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM2.56 18.938C4.153 16.545 6.67 15 9.5 15s5.346 1.545 6.94 3.938c.35.525.525.787.505 1.122-.016.26-.187.58-.396.738-.267.202-.635.202-1.371.202H3.822c-.736 0-1.104 0-1.372-.202a1.109 1.109 0 0 1-.395-.738c-.02-.335.155-.597.504-1.122Z"}));a.displayName="Users03";export{a as t};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M17 7 7 17M7 7l10 10"}));i.displayName="X";export{i};
1
+ import{r}from"./index-Dho9MRVw.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M17 7 7 17M7 7l10 10"}));i.displayName="X";export{i};
@@ -1 +1 @@
1
- import{r}from"./index-M3wOD-T-.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M18 6 6 18M6 6l12 12"}));i.displayName="XClose";export{i as s};
1
+ import{r}from"./index-Dho9MRVw.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M18 6 6 18M6 6l12 12"}));i.displayName="XClose";export{i as s};
@@ -1 +1 @@
1
- import{r as N,o as G,n as O,s as j,_ as Pe,v as gt,w as bt,j as t,x as xe,az as vt,R as jt,I as Nt,z as Ce,D as Ct,B as qe,E as yt,c as _,u as Me,an as Re,l as _t,a as kt,b9 as wt,bm as St,k as Tt,h as It,av as Et}from"./index-M3wOD-T-.js";import{u as At,C as Ot,a as Dt}from"./collapsible-CNHksBot.js";import{I as ie,E as Pt}from"./empty-state--pBjJrWJ.js";import{E as fe,i as Mt}from"./error-boundary-C4ZiBZqG.js";import{P as Rt}from"./pin-to-sidebar-button-CnJDDpqU.js";import{u as $t}from"./use-deco-chat-open-BRCU7WzQ.js";import{B as $e}from"./badge-DUUncEQr.js";import{c as U,B}from"./button-CrpAre8y.js";import{I as He}from"./input-YM08EPCC.js";import{S as zt}from"./switch-DKUU5EKy.js";import{T as Lt}from"./textarea-55XlgpLZ.js";import{T as K,b as ye,c as q,a as Y}from"./tooltip-D1Jc2Tgr.js";import{b as Vt,u as Ye}from"./use-connection-D5-dSK3A.js";import{u as Ft,a as Bt}from"./use-virtual-mcp-Ciz726kq.js";import{i as Ze}from"./Grid01-BRgRtmbs.js";import{n as Gt}from"./select-D2wMncj-.js";import{i as ze}from"./File02-Dh_9xh7Q.js";import{a as Le,i as Ut}from"./Tool01-ChloSpuN.js";import{i as Ve}from"./Loading01-CaAuMuYs.js";import{i as Ht}from"./Play-CUJHUsFq.js";import{s as We}from"./Plus-BfTBbS63.js";import{i as Wt}from"./Share07-DC87ym6H.js";import{b as Kt,V as qt}from"./layout-BHkRlBCz.js";import{C as Yt}from"./collection-search-DCaFQu6x.js";import{C as Fe}from"./checkbox-C3_7sazf.js";import{e as Zt,a as Je,D as Qe,b as Jt,c as Qt}from"./dialog-DHQqGK7g.js";import{f as Xt}from"./use-collections-COu7mzCX.js";import{u as Be}from"./constants-CAezfWK1.js";import{c as es,u as ts}from"./use-mcp-prompts-BLDzHD20.js";import{s as Xe}from"./slugify-CEUa2lfQ.js";import{I as ss,R as ls,a as os}from"./index-BVCaXPqJ.js";import{i as et}from"./Check-CP3euUrF.js";import{i as ns}from"./Code01-DR-jbECo.js";import{a as is}from"./Copy01-Ds6kUzpe.js";import{i as _e}from"./InfoCircle-BzAYvvO0.js";import"./use-binding-DdMe4omo.js";import"./binder-BPAsHHtz.js";import"./useSuspenseInfiniteQuery-aRxFMhU5.js";import"./infiniteQueryObserver-CfX1I4Ag.js";import"./localstorage-keys-hwI1e15G.js";import"./useQuery-BQUu3Rwx.js";import"./useMutation-i3JyomhH.js";import"./popover-B_5ZVJni.js";import"./ChevronDown-sM8LyvvZ.js";import"./File06-B5Dv7-Oa.js";import"./Image01-DoUr5ERm.js";import"./SearchMd-DVKxUKrX.js";import"./Pin01-YRdxhSee.js";import"./use-organization-settings-D9D-nJ5w.js";import"./ArrowLeft-Bb6bw7wO.js";import"./X-DhTQLdE5.js";const tt=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));tt.displayName="ArrowsRight";const st=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));st.displayName="Circle";const lt=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M9 2v3m6-3v3M9 19v3m6-3v3m4-13h3m-3 5h3M2 9h3m-3 5h3m4.8 5h4.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C19 16.72 19 15.88 19 14.2V9.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C16.72 5 15.88 5 14.2 5H9.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C5 7.28 5 8.12 5 9.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C7.28 19 8.12 19 9.8 19Z"}));lt.displayName="CpuChip02";const he=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"m9.75 20.75 1.473.818c.284.158.425.237.576.268.133.027.27.027.402 0 .15-.031.292-.11.576-.268l1.473-.818m-9-2.5-1.427-.793c-.3-.166-.45-.25-.558-.368a1 1 0 0 1-.215-.364C3 16.573 3 16.401 3 16.06V14.5m0-5V7.942c0-.343 0-.514.05-.667a1 1 0 0 1 .215-.364c.109-.119.258-.202.558-.368L5.25 5.75m4.5-2.5 1.473-.818c.284-.158.425-.237.576-.267a1 1 0 0 1 .402 0c.15.03.292.11.576.267l1.473.818m4.5 2.5 1.427.793c.3.166.45.25.558.368a1 1 0 0 1 .215.364c.05.153.05.324.05.667V9.5m0 5v1.559c0 .342 0 .514-.05.666a.999.999 0 0 1-.215.364c-.109.119-.258.202-.558.368l-1.427.793m-9-7.5L12 12m0 0 2.25-1.25M12 12v2.5M3 7l2.25 1.25m13.5 0L21 7m-9 12.5V22"}));he.displayName="CubeOutline";const ot=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M10 17.659V20a2 2 0 1 0 4 0v-2.341M12 2v1m-9 9H2m3.5-6.5-.6-.6m13.6.6.6-.6M22 12h-1m-3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"}));ot.displayName="Lightbulb02";const nt=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M7 3v3.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C7.76 8 8.04 8 8.6 8h6.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C17 7.24 17 6.96 17 6.4V4m0 17v-6.4c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C16.24 13 15.96 13 15.4 13H8.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C7 13.76 7 14.04 7 14.6V21M21 9.325V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h6.875c.489 0 .733 0 .963.055.204.05.4.13.579.24.201.123.374.296.72.642l3.126 3.126c.346.346.519.519.642.72.11.18.19.374.24.579.055.23.055.474.055.963Z"}));nt.displayName="Save01";const rs=G({connection_id:j().describe("Connection ID"),selected_tools:O(j()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:O(j()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:O(j()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),as=G({id:j().describe("Unique identifier for the virtual MCP"),title:j().describe("Human-readable name for the virtual MCP"),description:j().nullable().describe("Description of the virtual MCP"),icon:j().nullable().describe("Icon URL for the virtual MCP"),created_at:j().describe("When the virtual MCP was created"),updated_at:j().describe("When the virtual MCP was last updated"),created_by:j().describe("User ID who created the virtual MCP"),updated_by:j().optional().describe("User ID who last updated the virtual MCP"),organization_id:j().describe("Organization ID this virtual MCP belongs to"),status:Pe(["active","inactive"]).describe("Current status"),metadata:G({instructions:j().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:O(rs).describe("Connections with their selected tools, resources, and prompts")});G({title:j().min(1).max(255).describe("Name for the virtual MCP"),description:j().nullable().optional().describe("Optional description"),icon:j().nullable().optional().describe("Optional icon URL"),status:Pe(["active","inactive"]).optional().default("active").describe("Initial status"),metadata:G({instructions:j().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:O(G({connection_id:j().describe("Connection ID"),selected_tools:O(j()).nullable().optional().describe("Selected tool names (null/undefined = all tools included)"),selected_resources:O(j()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources included)"),selected_prompts:O(j()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts included)")})).describe("Connections to include with their selected tools/resources/prompts")});G({title:j().min(1).max(255).optional().describe("New name"),description:j().nullable().optional().describe("New description (null to clear)"),icon:j().nullable().optional().describe("New icon URL (null to clear)"),status:Pe(["active","inactive"]).optional().describe("New status"),metadata:G({instructions:j().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:O(G({connection_id:j().describe("Connection ID"),selected_tools:O(j()).nullable().optional().describe("Selected tool names (null/undefined = all tools included)"),selected_resources:O(j()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources included)"),selected_prompts:O(j()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts included)")})).optional().describe("New connections (replaces existing)")});var ge="Tabs",[cs]=yt(ge,[qe]),it=qe(),[ds,Ge]=cs(ge),rt=N.forwardRef((l,e)=>{const{__scopeTabs:s,value:o,onValueChange:n,defaultValue:i,orientation:d="horizontal",dir:r,activationMode:c="automatic",...u}=l,m=gt(r),[a,p]=bt({prop:o,onChange:n,defaultProp:i??"",caller:ge});return t.jsx(ds,{scope:s,baseId:vt(),value:a,onValueChange:p,orientation:d,dir:m,activationMode:c,children:t.jsx(xe.div,{dir:m,"data-orientation":d,...u,ref:e})})});rt.displayName=ge;var at="TabsList",ct=N.forwardRef((l,e)=>{const{__scopeTabs:s,loop:o=!0,...n}=l,i=Ge(at,s),d=it(s);return t.jsx(jt,{asChild:!0,...d,orientation:i.orientation,dir:i.dir,loop:o,children:t.jsx(xe.div,{role:"tablist","aria-orientation":i.orientation,...n,ref:e})})});ct.displayName=at;var dt="TabsTrigger",ut=N.forwardRef((l,e)=>{const{__scopeTabs:s,value:o,disabled:n=!1,...i}=l,d=Ge(dt,s),r=it(s),c=ft(d.baseId,o),u=xt(d.baseId,o),m=o===d.value;return t.jsx(Nt,{asChild:!0,...r,focusable:!n,active:m,children:t.jsx(xe.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":u,"data-state":m?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:c,...i,ref:e,onMouseDown:Ce(l.onMouseDown,a=>{!n&&a.button===0&&a.ctrlKey===!1?d.onValueChange(o):a.preventDefault()}),onKeyDown:Ce(l.onKeyDown,a=>{[" ","Enter"].includes(a.key)&&d.onValueChange(o)}),onFocus:Ce(l.onFocus,()=>{const a=d.activationMode!=="manual";!m&&!n&&a&&d.onValueChange(o)})})})});ut.displayName=dt;var mt="TabsContent",pt=N.forwardRef((l,e)=>{const{__scopeTabs:s,value:o,forceMount:n,children:i,...d}=l,r=Ge(mt,s),c=ft(r.baseId,o),u=xt(r.baseId,o),m=o===r.value,a=N.useRef(m);return N.useEffect(()=>{const p=requestAnimationFrame(()=>a.current=!1);return()=>cancelAnimationFrame(p)},[]),t.jsx(Ct,{present:n||m,children:({present:p})=>t.jsx(xe.div,{"data-state":m?"active":"inactive","data-orientation":r.orientation,role:"tabpanel","aria-labelledby":c,hidden:!p,id:u,tabIndex:0,...d,ref:e,style:{...l.style,animationDuration:a.current?"0s":void 0},children:p&&i})})});pt.displayName=mt;function ft(l,e){return`${l}-trigger-${e}`}function xt(l,e){return`${l}-content-${e}`}var us=rt,ms=ct,ps=ut,fs=pt;function xs(l){const e=_.c(10);let s,o,n;e[0]!==l?({className:s,variant:n,...o}=l,e[0]=l,e[1]=s,e[2]=o,e[3]=n):(s=e[1],o=e[2],n=e[3]);const i=n===void 0?"pill":n;let d;e[4]!==s?(d=U("flex flex-col gap-2",s),e[4]=s,e[5]=d):d=e[5];let r;return e[6]!==o||e[7]!==d||e[8]!==i?(r=t.jsx(us,{"data-slot":"tabs","data-variant":i,className:d,...o}),e[6]=o,e[7]=d,e[8]=i,e[9]=r):r=e[9],r}function hs(l){const e=_.c(11);let s,o,n;e[0]!==l?({className:s,variant:n,...o}=l,e[0]=l,e[1]=s,e[2]=o,e[3]=n):(s=e[1],o=e[2],n=e[3]);const i=n||"pill",d=i==="underline"?"flex h-[52px] items-center border-b border-border":i==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let r;e[4]!==s||e[5]!==d?(r=U(d,s),e[4]=s,e[5]=d,e[6]=r):r=e[6];let c;return e[7]!==i||e[8]!==o||e[9]!==r?(c=t.jsx(ms,{"data-slot":"tabs-list","data-variant":i,className:r,...o}),e[7]=i,e[8]=o,e[9]=r,e[10]=c):c=e[10],c}function ke(l){const e=_.c(11);let s,o,n;e[0]!==l?({className:s,variant:n,...o}=l,e[0]=l,e[1]=s,e[2]=o,e[3]=n):(s=e[1],o=e[2],n=e[3]);const i=n||"pill",d=i==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-foreground disabled:pointer-events-none disabled:opacity-50":i==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let r;e[4]!==s||e[5]!==d?(r=U(d,s),e[4]=s,e[5]=d,e[6]=r):r=e[6];let c;return e[7]!==i||e[8]!==o||e[9]!==r?(c=t.jsx(ps,{"data-slot":"tabs-trigger","data-variant":i,className:r,...o}),e[7]=i,e[8]=o,e[9]=r,e[10]=c):c=e[10],c}function we(l){const e=_.c(8);let s,o;e[0]!==l?({className:s,...o}=l,e[0]=l,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=U("flex-1 outline-none h-full",s),e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==o||e[6]!==n?(i=t.jsx(fs,{"data-slot":"tabs-content",className:n,...o}),e[5]=o,e[6]=n,e[7]=i):i=e[7],i}function Se(l){return l===null?"all":l?.length??0}function gs(l,e){const s=l[e];if(!s)return"";const o=[];return s.tools===null?o.push("all tools"):s.tools&&s.tools.length>0&&o.push(`${s.tools.length} tools`),s.resources===null?o.push("all resources"):s.resources&&s.resources.length>0&&o.push(`${s.resources.length} resources`),s.prompts===null?o.push("all prompts"):s.prompts&&s.prompts.length>0&&o.push(`${s.prompts.length} prompts`),o.join(", ")}function bs(l,e){const s=l[e];return s?!((s.tools===void 0||s.tools!==null&&s.tools.length===0)&&(s.resources===void 0||s.resources!==null&&s.resources.length===0)&&(s.prompts===void 0||s.prompts!==null&&s.prompts.length===0)):!1}const vs={tools:null,resources:null,prompts:null};function Te(){const l=_.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex items-center justify-center h-32",children:t.jsx(Ve,{className:"animate-spin text-muted-foreground",size:24})}),l[0]=e):e=l[0],e}function Ie(l){return({error:e})=>e?.message?.includes("Method not found")||e?.code===-32601?t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:l})}):t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(Mt,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e?.message||"An unexpected error occurred"})]})]})}function js(l){const e=_.c(18),{item:s,isSelected:o,onToggle:n,disabled:i}=l,d=i?"cursor-not-allowed opacity-50":"cursor-pointer",r=o?"bg-accent/25":"hover:bg-muted/50";let c;e[0]!==d||e[1]!==r?(c=U("flex items-start gap-3 p-4 rounded-lg transition-colors",d,r),e[0]=d,e[1]=r,e[2]=c):c=e[2];let u;e[3]!==s.name?(u=t.jsx("p",{className:"text-sm font-medium leading-none",children:s.name}),e[3]=s.name,e[4]=u):u=e[4];let m;e[5]!==s.description?(m=s.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:s.description}),e[5]=s.description,e[6]=m):m=e[6];let a;e[7]!==u||e[8]!==m?(a=t.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[u,m]}),e[7]=u,e[8]=m,e[9]=a):a=e[9];let p;e[10]!==i||e[11]!==o||e[12]!==n?(p=t.jsx(Fe,{checked:o,onCheckedChange:n,disabled:i,className:"mt-0.5"}),e[10]=i,e[11]=o,e[12]=n,e[13]=p):p=e[13];let g;return e[14]!==c||e[15]!==a||e[16]!==p?(g=t.jsxs("label",{className:c,children:[a,p]}),e[14]=c,e[15]=a,e[16]=p,e[17]=g):g=e[17],g}function Ue(l){const e=_.c(32),{items:s,selections:o,onToggle:n,onToggleAll:i,emptyMessage:d,disabled:r}=l;let c,u,m,a,p;if(e[0]!==r||e[1]!==d||e[2]!==s||e[3]!==n||e[4]!==i||e[5]!==o){p=Symbol.for("react.early_return_sentinel");e:{const f=s.map(Ns);if(s.length===0){let y;e[11]!==d?(y=t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:d})}),e[11]=d,e[12]=y):y=e[12],p=y;break e}m="flex flex-col h-full";const C=r?"cursor-not-allowed opacity-50":"cursor-pointer";let v;e[13]!==C?(v=U("flex items-start gap-3 p-4",C),e[13]=C,e[14]=v):v=e[14];let x;e[15]!==s.length?(x=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsxs("span",{className:"text-sm font-medium",children:["Select All (",s.length,")"]})}),e[15]=s.length,e[16]=x):x=e[16];const w=o===null;let S;e[17]!==r||e[18]!==i||e[19]!==w?(S=t.jsx(Fe,{checked:w,onCheckedChange:i,disabled:r,className:"mt-0.5"}),e[17]=r,e[18]=i,e[19]=w,e[20]=S):S=e[20],e[21]!==S||e[22]!==v||e[23]!==x?(a=t.jsx("div",{className:"px-4 border-b border-border shrink-0",children:t.jsxs("label",{className:v,children:[x,S]})}),e[21]=S,e[22]=v,e[23]=x,e[24]=a):a=e[24],c="flex-1 overflow-auto px-4 py-3 space-y-1",u=s.map(y=>t.jsx(js,{item:y,isSelected:o===null||o?.includes(y.id),onToggle:()=>n(y.id,f),disabled:r},y.id))}e[0]=r,e[1]=d,e[2]=s,e[3]=n,e[4]=i,e[5]=o,e[6]=c,e[7]=u,e[8]=m,e[9]=a,e[10]=p}else c=e[6],u=e[7],m=e[8],a=e[9],p=e[10];if(p!==Symbol.for("react.early_return_sentinel"))return p;let g;e[25]!==c||e[26]!==u?(g=t.jsx("div",{className:c,children:u}),e[25]=c,e[26]=u,e[27]=g):g=e[27];let h;return e[28]!==m||e[29]!==a||e[30]!==g?(h=t.jsxs("div",{className:m,children:[a,g]}),e[28]=m,e[29]=a,e[30]=g,e[31]=h):h=e[31],h}function Ns(l){return l.id}function Cs(l){const e=_.c(13),{connectionId:s,selections:o,onToggle:n,onToggleAll:i,disabled:d}=l,{org:r}=Me();let c;e[0]!==s||e[1]!==r.id?(c={connectionId:s,orgId:r.id},e[0]=s,e[1]=r.id,e[2]=c):c=e[2];const u=Be(c);let m;e[3]!==u?(m={client:u},e[3]=u,e[4]=m):m=e[4];const{data:a}=Xt(m);let p;e[5]!==a.tools?(p=a.tools.map(ys),e[5]=a.tools,e[6]=p):p=e[6];const g=p;let h;return e[7]!==d||e[8]!==g||e[9]!==n||e[10]!==i||e[11]!==o?(h=t.jsx(Ue,{items:g,selections:o,onToggle:n,onToggleAll:i,emptyMessage:"No tools available",disabled:d}),e[7]=d,e[8]=g,e[9]=n,e[10]=i,e[11]=o,e[12]=h):h=e[12],h}function ys(l){return{id:l.name,name:l.name,description:l.description}}function _s(l){const e=_.c(13),{connectionId:s,selections:o,onToggle:n,onToggleAll:i,disabled:d}=l,{org:r}=Me();let c;e[0]!==s||e[1]!==r.id?(c={connectionId:s,orgId:r.id},e[0]=s,e[1]=r.id,e[2]=c):c=e[2];const u=Be(c);let m;e[3]!==u?(m={client:u},e[3]=u,e[4]=m):m=e[4];const{data:a}=es(m);let p;e[5]!==a.resources?(p=a.resources.map(ks),e[5]=a.resources,e[6]=p):p=e[6];const g=p;let h;return e[7]!==d||e[8]!==g||e[9]!==n||e[10]!==i||e[11]!==o?(h=t.jsx(Ue,{items:g,selections:o,onToggle:n,onToggleAll:i,emptyMessage:"No resources available",disabled:d}),e[7]=d,e[8]=g,e[9]=n,e[10]=i,e[11]=o,e[12]=h):h=e[12],h}function ks(l){return{id:l.name||l.uri,name:l.name||l.uri,description:l.description}}function ws(l){const e=_.c(13),{connectionId:s,selections:o,onToggle:n,onToggleAll:i,disabled:d}=l,{org:r}=Me();let c;e[0]!==s||e[1]!==r.id?(c={connectionId:s,orgId:r.id},e[0]=s,e[1]=r.id,e[2]=c):c=e[2];const u=Be(c);let m;e[3]!==u?(m={client:u},e[3]=u,e[4]=m):m=e[4];const{data:a}=ts(m);let p;e[5]!==a.prompts?(p=a.prompts.map(Ss),e[5]=a.prompts,e[6]=p):p=e[6];const g=p;let h;return e[7]!==d||e[8]!==g||e[9]!==n||e[10]!==i||e[11]!==o?(h=t.jsx(Ue,{items:g,selections:o,onToggle:n,onToggleAll:i,emptyMessage:"No prompts available",disabled:d}),e[7]=d,e[8]=g,e[9]=n,e[10]=i,e[11]=o,e[12]=h):h=e[12],h}function Ss(l){return{id:l.name,name:l.name,description:l.description}}function Ts(l){const e=_.c(24),{connection:s,isSelected:o,hasSelections:n,summary:i,onClick:d,onToggleAll:r,disabled:c}=l,u=c?"cursor-not-allowed opacity-50":"cursor-pointer",m=o?"bg-accent":"hover:bg-muted/50";let a;e[0]!==u||e[1]!==m?(a=U("flex items-center gap-2 p-2 h-12 rounded-lg transition-colors",u,m),e[0]=u,e[1]=m,e[2]=a):a=e[2];const p=c?void 0:d;let g;e[3]!==s.icon||e[4]!==s.title?(g=t.jsx(ie,{icon:s.icon,name:s.title,size:"xs",className:"shrink-0"}),e[3]=s.icon,e[4]=s.title,e[5]=g):g=e[5];let h;e[6]!==s.title?(h=t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[6]=s.title,e[7]=h):h=e[7];let f;e[8]!==n||e[9]!==i?(f=n&&i&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:i}),e[8]=n,e[9]=i,e[10]=f):f=e[10];let C;e[11]!==h||e[12]!==f?(C=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[h,f]}),e[11]=h,e[12]=f,e[13]=C):C=e[13];let v;e[14]!==c||e[15]!==n||e[16]!==r?(v=t.jsx(Fe,{checked:n,onCheckedChange:r,onClick:Is,disabled:c,className:"shrink-0"}),e[14]=c,e[15]=n,e[16]=r,e[17]=v):v=e[17];let x;return e[18]!==a||e[19]!==p||e[20]!==g||e[21]!==C||e[22]!==v?(x=t.jsxs("div",{className:a,onClick:p,children:[g,C,v]}),e[18]=a,e[19]=p,e[20]=g,e[21]=C,e[22]=v,e[23]=x):x=e[23],x}function Is(l){return l.stopPropagation()}function Es(l){const e=_.c(22),{allConnections:s,searchTerm:o,selectedId:n,hasSelections:i,getSelectionSummary:d,onConnectionClick:r,onToggleAll:c,disabled:u}=l;let m;e[0]!==s||e[1]!==o?(m=o?s.filter(h=>h.title.toLowerCase().includes(o.toLowerCase())||h.description?.toLowerCase().includes(o.toLowerCase())):s,e[0]=s,e[1]=o,e[2]=m):m=e[2];const a=m;if(a.length===0){const h=o?"No connections found":"No connections available";let f;return e[3]!==h?(f=t.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground p-4",children:h}),e[3]=h,e[4]=f):f=e[4],f}let p;if(e[5]!==u||e[6]!==a||e[7]!==d||e[8]!==i||e[9]!==r||e[10]!==c||e[11]!==n){let h;e[13]!==u||e[14]!==d||e[15]!==i||e[16]!==r||e[17]!==c||e[18]!==n?(h=f=>t.jsx(Ts,{connection:f,isSelected:n===f.id,hasSelections:i(f.id),summary:d(f.id),onClick:()=>r(f.id),onToggleAll:()=>c(f.id),disabled:u},f.id),e[13]=u,e[14]=d,e[15]=i,e[16]=r,e[17]=c,e[18]=n,e[19]=h):h=e[19],p=a.map(h),e[5]=u,e[6]=a,e[7]=d,e[8]=i,e[9]=r,e[10]=c,e[11]=n,e[12]=p}else p=e[12];let g;return e[20]!==p?(g=t.jsx("div",{className:"flex flex-col gap-0.5",children:p}),e[20]=p,e[21]=g):g=e[21],g}function As(l){const e={};for(const s of l)e[s.connection_id]={tools:s.selected_tools,resources:s.selected_resources??null,prompts:s.selected_prompts??null};return e}function Ee(l){return Object.entries(l).map(([e,s])=>({connection_id:e,selected_tools:s.tools,selected_resources:s.resources,selected_prompts:s.prompts}))}function Os(l,e){switch(e.type){case"SET_SEARCH_TERM":return{...l,searchTerm:e.payload};case"SET_SELECTED":return{...l,selectedId:e.payload};case"SET_ACTIVE_TAB":return{...l,activeTab:e.payload};case"RESET":return{searchTerm:"",selectedId:e.payload.selectedId??e.payload.firstConnectionId??null,activeTab:"tools"};case"SELECT_CONNECTION":return{...l,selectedId:e.payload,activeTab:"tools"};default:return l}}const Ke=(l,e)=>l.find(s=>s.id===e)??l[0];function Ds(l){const e=_.c(79),{open:s,onOpenChange:o,selectedId:n,form:i,connections:d}=l;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={},e[0]=r):r=e[0];const c=Vt(r);let u;e[1]!==c||e[2]!==n?(u=Ke(c,n)?.id??null,e[1]=c,e[2]=n,e[3]=u):u=e[3];let m;e[4]!==u?(m={activeTab:"tools",searchTerm:"",selectedId:u},e[4]=u,e[5]=m):m=e[5];const[a,p]=N.useReducer(Os,m);let g;e[6]!==d?(g=d??[],e[6]=d,e[7]=g):g=e[7];let h;e[8]!==g?(h=As(g),e[8]=g,e[9]=h):h=e[9];const f=h;let C;e[10]!==c||e[11]!==a.selectedId?(C=Ke(c,a.selectedId),e[10]=c,e[11]=a.selectedId,e[12]=C):C=e[12];const v=C;let x;e[13]!==f?(x=b=>bs(f,b),e[13]=f,e[14]=x):x=e[14];const w=x;let S;e[15]!==f?(S=b=>gs(f,b),e[15]=f,e[16]=S):S=e[16];const y=S;let L;e[17]!==i||e[18]!==f?(L=(b,k,E,W)=>{const oe=f[b]?.[k];let A;oe===null?A=W.filter(Ne=>Ne!==E):oe?.includes(E)?A=oe.filter(Ne=>Ne!==E):(A=[...oe??[],E],A.length===W.length&&(A=null));const ne={...f};ne[b]?ne[b]={...ne[b]}:ne[b]={tools:null,resources:null,prompts:null},ne[b][k]=A,i.setValue("connections",Ee(ne),{shouldDirty:!0,shouldTouch:!0})},e[17]=i,e[18]=f,e[19]=L):L=e[19];const T=L;let V;e[20]!==i||e[21]!==f?(V=(b,k)=>{const oe=f[b]?.[k]===null?[]:null,A={...f};A[b]?A[b]={...A[b]}:A[b]={tools:null,resources:null,prompts:null},A[b][k]=oe,i.setValue("connections",Ee(A),{shouldDirty:!0,shouldTouch:!0})},e[20]=i,e[21]=f,e[22]=V):V=e[22];const I=V;let D;e[23]!==T?(D=(b,k,E)=>T(b,"tools",k,E),e[23]=T,e[24]=D):D=e[24];const R=D;let P;e[25]!==T?(P=(b,k,E)=>T(b,"resources",k,E),e[25]=T,e[26]=P):P=e[26];const $=P;let M;e[27]!==T?(M=(b,k,E)=>T(b,"prompts",k,E),e[27]=T,e[28]=M):M=e[28];const z=M;let F;e[29]!==I?(F=b=>I(b,"tools"),e[29]=I,e[30]=F):F=e[30];const H=F;let re;e[31]!==I?(re=b=>I(b,"resources"),e[31]=I,e[32]=re):re=e[32];const be=re;let ae;e[33]!==I?(ae=b=>I(b,"prompts"),e[33]=I,e[34]=ae):ae=e[34];const ve=ae;let ce;e[35]!==i||e[36]!==f?(ce=b=>{const k=f[b],E=k&&k.tools===null&&k.resources===null&&k.prompts===null,W={...f};E?delete W[b]:W[b]=vs,i.setValue("connections",Ee(W),{shouldDirty:!0,shouldTouch:!0})},e[35]=i,e[36]=f,e[37]=ce):ce=e[37];const je=ce;let de;e[38]!==c||e[39]!==o||e[40]!==n?(de=b=>{b&&p({type:"RESET",payload:{selectedId:n,firstConnectionId:c[0]?.id??null}}),o(b)},e[38]=c,e[39]=o,e[40]=n,e[41]=de):de=e[41];const Z=de;let ue;e[42]===Symbol.for("react.memo_cache_sentinel")?(ue=b=>{p({type:"SELECT_CONNECTION",payload:b})},e[42]=ue):ue=e[42];const ht=ue;let me;e[43]===Symbol.for("react.memo_cache_sentinel")?(me=b=>p({type:"SET_SEARCH_TERM",payload:b}),e[43]=me):me=e[43];let J;e[44]!==a.searchTerm?(J=t.jsx(Yt,{value:a.searchTerm,onChange:me,placeholder:"Search connections..."}),e[44]=a.searchTerm,e[45]=J):J=e[45];let Q;e[46]!==c||e[47]!==a.searchTerm||e[48]!==a.selectedId||e[49]!==y||e[50]!==w||e[51]!==je?(Q=t.jsx("div",{className:"flex-1 overflow-auto p-2",children:t.jsx(Es,{allConnections:c,searchTerm:a.searchTerm,selectedId:a.selectedId,hasSelections:w,getSelectionSummary:y,onConnectionClick:ht,onToggleAll:je})}),e[46]=c,e[47]=a.searchTerm,e[48]=a.selectedId,e[49]=y,e[50]=w,e[51]=je,e[52]=Q):Q=e[52];let X;e[53]!==J||e[54]!==Q?(X=t.jsxs("div",{className:"w-full sm:w-72 sm:border-r border-b sm:border-b-0 border-border flex flex-col bg-background sm:h-full max-h-[40vh] sm:max-h-full",children:[J,Q]}),e[53]=J,e[54]=Q,e[55]=X):X=e[55];let ee;e[56]!==v||e[57]!==a.activeTab||e[58]!==a.selectedId||e[59]!==f||e[60]!==ve||e[61]!==be||e[62]!==H||e[63]!==z||e[64]!==$||e[65]!==R?(ee=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:v&&a.selectedId?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"p-6 border-b border-border shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(ie,{icon:v.icon,name:v.title,size:"md",className:"shrink-0"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("h2",{className:"text-lg font-semibold truncate",children:v.title}),v.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:v.description})]})]})}),t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:t.jsxs(xs,{value:a.activeTab,onValueChange:b=>p({type:"SET_ACTIVE_TAB",payload:b}),variant:"underline",className:"flex-1 flex flex-col overflow-hidden",children:[t.jsxs(hs,{variant:"underline",className:"shrink-0 px-6",children:[t.jsxs(ke,{value:"tools",variant:"underline",className:"gap-2",children:[t.jsx(Le,{size:16}),"Tools"]}),t.jsxs(ke,{value:"resources",variant:"underline",className:"gap-2",children:[t.jsx(he,{size:16}),"Resources"]}),t.jsxs(ke,{value:"prompts",variant:"underline",className:"gap-2",children:[t.jsx(ze,{size:16}),"Prompts"]})]}),t.jsx(we,{value:"tools",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:Ie("Tools not supported by this server"),children:t.jsx(N.Suspense,{fallback:t.jsx(Te,{}),children:t.jsx(Cs,{connectionId:a.selectedId,selections:a.selectedId&&f[a.selectedId]?f[a.selectedId].tools:[],onToggle:(b,k)=>a.selectedId&&R(a.selectedId,b,k),onToggleAll:()=>a.selectedId&&H(a.selectedId)})})})}),t.jsx(we,{value:"resources",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:Ie("Resources not supported by this server"),children:t.jsx(N.Suspense,{fallback:t.jsx(Te,{}),children:t.jsx(_s,{connectionId:a.selectedId,selections:a.selectedId&&f[a.selectedId]?f[a.selectedId].resources:[],onToggle:(b,k)=>a.selectedId&&$(a.selectedId,b,k),onToggleAll:()=>a.selectedId&&be(a.selectedId)})})})}),t.jsx(we,{value:"prompts",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:Ie("Prompts not supported by this server"),children:t.jsx(N.Suspense,{fallback:t.jsx(Te,{}),children:t.jsx(ws,{connectionId:a.selectedId,selections:a.selectedId&&f[a.selectedId]?f[a.selectedId].prompts:[],onToggle:(b,k)=>a.selectedId&&z(a.selectedId,b,k),onToggleAll:()=>a.selectedId&&ve(a.selectedId)})})})})]})})]}):t.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:"Select a connection to view its tools, resources, and prompts"})}),e[56]=v,e[57]=a.activeTab,e[58]=a.selectedId,e[59]=f,e[60]=ve,e[61]=be,e[62]=H,e[63]=z,e[64]=$,e[65]=R,e[66]=ee):ee=e[66];let te;e[67]!==X||e[68]!==ee?(te=t.jsxs("div",{className:"flex-1 flex overflow-hidden min-h-0 flex-col sm:flex-row",children:[X,ee]}),e[67]=X,e[68]=ee,e[69]=te):te=e[69];let se;e[70]!==Z?(se=t.jsx(Zt,{className:"px-6 py-4 border-t border-border shrink-0",children:t.jsx(B,{variant:"outline",onClick:()=>Z(!1),children:"Done"})}),e[70]=Z,e[71]=se):se=e[71];let le;e[72]!==te||e[73]!==se?(le=t.jsxs(Je,{className:"sm:max-w-5xl h-[80vh] max-h-[80vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[te,se]}),e[72]=te,e[73]=se,e[74]=le):le=e[74];let pe;return e[75]!==Z||e[76]!==s||e[77]!==le?(pe=t.jsx(Qe,{open:s,onOpenChange:Z,children:le}),e[75]=Z,e[76]=s,e[77]=le,e[78]=pe):pe=e[78],pe}function Ps(l){const e=_.c(8);let s,o;e[0]!==l?({className:s,...o}=l,e[0]=l,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=U("grid gap-3",s),e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==o||e[6]!==n?(i=t.jsx(ls,{"data-slot":"radio-group",className:n,...o}),e[5]=o,e[6]=n,e[7]=i):i=e[7],i}function Ae(l){const e=_.c(9);let s,o;e[0]!==l?({className:s,...o}=l,e[0]=l,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=U("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",s),e[3]=s,e[4]=n):n=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(os,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:t.jsx(st,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})}),e[5]=i):i=e[5];let d;return e[6]!==o||e[7]!==n?(d=t.jsx(ss,{"data-slot":"radio-group-item",className:n,...o,children:i}),e[6]=o,e[7]=n,e[8]=d):d=e[8],d}function Ms(l){const s=new TextEncoder().encode(l),o=Array.from(s,n=>String.fromCharCode(n)).join("");return btoa(o)}function Rs(l){const e=_.c(10),{url:s}=l,[o,n]=N.useState(!1);let i;e[0]!==s?(i=async()=>{await navigator.clipboard.writeText(s),n(!0),Re.success("Agent URL copied to clipboard"),setTimeout(()=>n(!1),2e3)},e[0]=s,e[1]=i):i=e[1];const d=i;let r;e[2]!==o?(r=o?t.jsx(et,{size:20,className:"text-green-600"}):t.jsx(is,{size:20}),e[2]=o,e[3]=r):r=e[3];const c=o?"Copied!":"Copy URL";let u;e[4]!==c?(u=t.jsx("span",{className:"text-xs font-medium",children:c}),e[4]=c,e[5]=u):u=e[5];let m;return e[6]!==d||e[7]!==r||e[8]!==u?(m=t.jsxs(B,{type:"button",variant:"outline",onClick:d,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[r,u]}),e[6]=d,e[7]=r,e[8]=u,e[9]=m):m=e[9],m}function $s(l){const e=_.c(7),{url:s,serverName:o}=l;let n;e[0]!==o||e[1]!==s?(n=()=>{const u=Xe(o),a=Ms(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),p=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(u)}&config=${encodeURIComponent(a)}`;window.open(p,"_blank"),Re.success("Opening Cursor...")},e[0]=o,e[1]=s,e[2]=n):n=e[2];const i=n;let d,r;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("img",{src:"/logos/cursor.svg",alt:"Cursor",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(11%) sepia(8%) saturate(785%) hue-rotate(1deg) brightness(95%) contrast(89%)"}}),r=t.jsx("span",{className:"text-xs font-medium",children:"Install on Cursor"}),e[3]=d,e[4]=r):(d=e[3],r=e[4]);let c;return e[5]!==i?(c=t.jsxs(B,{type:"button",variant:"outline",onClick:i,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[d,r]}),e[5]=i,e[6]=c):c=e[6],c}function zs(l){const e=_.c(11),{url:s,serverName:o}=l,[n,i]=N.useState(!1);let d;e[0]!==o||e[1]!==s?(d=async()=>{const p=Xe(o),h=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),f=`claude mcp add-json "${p}" '${h.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(f),i(!0),Re.success("Claude Code command copied to clipboard"),setTimeout(()=>i(!1),2e3)},e[0]=o,e[1]=s,e[2]=d):d=e[2];const r=d;let c;e[3]!==n?(c=n?t.jsx(et,{size:20,className:"text-green-600"}):t.jsx("img",{src:"/logos/Claude Code.svg",alt:"Claude Code",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(55%) sepia(31%) saturate(1264%) hue-rotate(331deg) brightness(92%) contrast(86%)"}}),e[3]=n,e[4]=c):c=e[4];const u=n?"Copied!":"Install on Claude";let m;e[5]!==u?(m=t.jsx("span",{className:"text-xs font-medium",children:u}),e[5]=u,e[6]=m):m=e[6];let a;return e[7]!==r||e[8]!==c||e[9]!==m?(a=t.jsxs(B,{type:"button",variant:"outline",onClick:r,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[c,m]}),e[7]=r,e[8]=c,e[9]=m,e[10]=a):a=e[10],a}function Ls(l){const e=_.c(40),{open:s,onOpenChange:o,virtualMcp:n}=l,[i,d]=N.useState("code_execution");let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=H=>{(H==="passthrough"||H==="smart_tool_selection"||H==="code_execution")&&d(H)},e[0]=r):r=e[0];const c=r;let u;e[1]!==i||e[2]!==n.id?(u=new URL(`/mcp/virtual-mcp/${n.id}`,window.location.origin),u.searchParams.set("mode",i),e[1]=i,e[2]=n.id,e[3]=u):u=e[3];let m;e[4]!==n.id||e[5]!==n.title?(m=n.title||`agent-${n.id?.slice(0,8)??"default"}`,e[4]=n.id,e[5]=n.title,e[6]=m):m=e[6];const a=m;let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(Jt,{children:t.jsx(Qt,{children:"Share Agent"})}),e[7]=p):p=e[7];let g;e[8]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[8]=g):g=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(tt,{className:"size-5 text-muted-foreground"})}),e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Direct access"}),e[10]=f):f=e[10];let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(K,{asChild:!0,children:t.jsx(_e,{className:"size-3.5 text-muted-foreground"})}),e[11]=C):C=e[11];let v;e[12]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsxs("label",{htmlFor:"mode-passthrough",className:"flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[h,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[f,t.jsx(ye,{children:t.jsxs(q,{children:[C,t.jsx(Y,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"All tools are exposed directly via tools/list. Best for small tool surfaces with deterministic behavior."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Best for small teams or when you need predictable behavior"})]}),t.jsx(Ae,{id:"mode-passthrough",value:"passthrough"})]}),e[12]=v):v=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(ot,{className:"size-5 text-muted-foreground"})}),e[13]=x):x=e[13];let w;e[14]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart discovery"}),e[14]=w):w=e[14];let S;e[15]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(K,{asChild:!0,children:t.jsx(_e,{className:"size-3.5 text-muted-foreground"})}),e[15]=S):S=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsxs("label",{htmlFor:"mode-smart",className:"flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[x,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[w,t.jsx(ye,{children:t.jsxs(q,{children:[S,t.jsx(Y,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"Uses meta-tools (GATEWAY_SEARCH_TOOLS, GATEWAY_DESCRIBE_TOOLS, GATEWAY_CALL_TOOL) to keep the tool list small and request details on demand."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Ideal for large teams with many tools - AI finds what it needs"})]}),t.jsx(Ae,{id:"mode-smart",value:"smart_tool_selection"})]}),e[16]=y):y=e[16];let L;e[17]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(ns,{className:"size-5 text-muted-foreground"})}),e[17]=L):L=e[17];let T;e[18]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart execution"}),e[18]=T):T=e[18];let V;e[19]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(K,{asChild:!0,children:t.jsx(_e,{className:"size-3.5 text-muted-foreground"})}),e[19]=V):V=e[19];let I;e[20]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsxs("label",{htmlFor:"mode-code",className:"relative flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[L,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[T,t.jsx(ye,{children:t.jsxs(q,{children:[V,t.jsx(Y,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"Exposes meta-tools for discovery + sandboxed execution (GATEWAY_RUN_CODE). Reduces overhead on large surfaces by shifting work into a controlled runtime."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Maximum flexibility - AI can write code to orchestrate tools"})]}),t.jsx(Ae,{id:"mode-code",value:"code_execution"}),t.jsx($e,{variant:"outline",className:"absolute -top-2.5 left-1/2 -translate-x-1/2 bg-background z-10",children:"Recommended"})]}),e[20]=I):I=e[20];let D;e[21]!==i?(D=t.jsxs("div",{className:"flex flex-col gap-3",children:[g,t.jsxs(Ps,{value:i,onValueChange:c,className:"flex flex-col gap-4.5",children:[v,y,I]})]}),e[21]=i,e[22]=D):D=e[22];let R;e[23]!==u.href?(R=t.jsx(Rs,{url:u.href}),e[23]=u.href,e[24]=R):R=e[24];let P,$;e[25]!==a||e[26]!==u.href?(P=t.jsx($s,{url:u.href,serverName:a}),$=t.jsx(zs,{url:u.href,serverName:a}),e[25]=a,e[26]=u.href,e[27]=P,e[28]=$):(P=e[27],$=e[28]);let M;e[29]!==R||e[30]!==P||e[31]!==$?(M=t.jsx("div",{className:"flex flex-col gap-3 pt-2",children:t.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[R,P,$]})}),e[29]=R,e[30]=P,e[31]=$,e[32]=M):M=e[32];let z;e[33]!==D||e[34]!==M?(z=t.jsxs(Je,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[p,t.jsxs("div",{className:"flex flex-col gap-6",children:[D,M]})]}),e[33]=D,e[34]=M,e[35]=z):z=e[35];let F;return e[36]!==o||e[37]!==s||e[38]!==z?(F=t.jsx(Qe,{open:s,onOpenChange:o,children:z}),e[36]=o,e[37]=s,e[38]=z,e[39]=F):F=e[39],F}const Vs=as.pick({title:!0,description:!0,status:!0,metadata:!0,connections:!0}).extend({title:j().min(1,"Name is required").max(255)});function Fs(l,e){switch(e.type){case"SET_SHARE_DIALOG_OPEN":return{...l,shareDialogOpen:e.payload};case"SET_CONNECTION_DIALOG_OPEN":return{...l,connectionDialogOpen:e.payload};case"SET_EDITING_CONNECTION_ID":return{...l,editingConnectionId:e.payload};case"SET_SKILLS_OPEN":return{...l,skillsOpen:e.payload};default:return l}}function Oe(l){const e=_.c(3),{connection_id:s}=l,o=Ye(s);if(!o)return null;let n;return e[0]!==o.icon||e[1]!==o.title?(n=t.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:t.jsx(ie,{icon:o.icon,name:o.title,size:"xs"})}),e[0]=o.icon,e[1]=o.title,e[2]=n):n=e[2],n}Oe.Fallback=function(){return t.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:t.jsx("div",{className:"size-5 rounded bg-muted animate-pulse"})})};function De(l){const e=_.c(27),{connection_id:s,selected_tools:o,selected_resources:n,selected_prompts:i,onClick:d}=l,r=Ye(s);if(!r)return null;let c;e[0]!==o?(c=Se(o),e[0]=o,e[1]=c):c=e[1];const u=c;let m;e[2]!==n?(m=Se(n),e[2]=n,e[3]=m):m=e[3];const a=m;let p;e[4]!==i?(p=Se(i),e[4]=i,e[5]=p):p=e[5];const g=p;let h;e[6]!==r.icon||e[7]!==r.title?(h=t.jsx(ie,{icon:r.icon,name:r.title,size:"xs"}),e[6]=r.icon,e[7]=r.title,e[8]=h):h=e[8];let f;e[9]!==r.title?(f=t.jsx("p",{className:"flex-1 text-sm font-normal text-foreground truncate",children:r.title}),e[9]=r.title,e[10]=f):f=e[10];let C;e[11]!==u?(C=u!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:u==="all"?"all":u}),t.jsx(Le,{size:12})]}),e[11]=u,e[12]=C):C=e[12];let v;e[13]!==a?(v=a!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:a==="all"?"all":a}),t.jsx(he,{size:12})]}),e[13]=a,e[14]=v):v=e[14];let x;e[15]!==g?(x=g!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:g==="all"?"all":g}),t.jsx(ze,{size:12})]}),e[15]=g,e[16]=x):x=e[16];let w;e[17]!==C||e[18]!==v||e[19]!==x?(w=t.jsxs($e,{variant:"secondary",className:"bg-muted h-5 gap-2 px-1.5 py-1 flex items-center",children:[C,v,x]}),e[17]=C,e[18]=v,e[19]=x,e[20]=w):w=e[20];let S;e[21]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(Ze,{size:16,className:"text-muted-foreground shrink-0"}),e[21]=S):S=e[21];let y;return e[22]!==d||e[23]!==h||e[24]!==f||e[25]!==w?(y=t.jsxs("div",{onClick:d,className:"w-full h-12 flex items-center gap-2 px-3 rounded-lg border border-border hover:bg-accent/50 transition-colors cursor-pointer",children:[h,f,w,S]}),e[22]=d,e[23]=h,e[24]=f,e[25]=w,e[26]=y):y=e[26],y}De.Fallback=function(){return t.jsxs("div",{className:"w-full h-12 flex items-center gap-2 px-3 rounded-lg border border-border",children:[t.jsx("div",{className:"size-5 rounded bg-muted animate-pulse shrink-0"}),t.jsx("div",{className:"flex-1 h-4 rounded bg-muted animate-pulse"}),t.jsxs($e,{variant:"secondary",className:"bg-muted h-5 gap-2 px-1.5 py-1 flex items-center",children:[t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(Le,{size:12})]}),t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(he,{size:12})]}),t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(ze,{size:12})]})]}),t.jsx(Ze,{size:16,className:"text-muted-foreground shrink-0"})]})};function Bs({virtualMcp:l}){const s=wt().location.href,o=St(),n=Bt(),i=Tt({resolver:It(Vs),defaultValues:l}),d=i.watch("connections"),[r,c]=N.useReducer(Fs,{shareDialogOpen:!1,connectionDialogOpen:!1,editingConnectionId:null,skillsOpen:!1}),[,u]=$t(),{setVirtualMcpId:m}=At();N.useEffect(()=>{u(!0),m(l.id)},[l.id]);const a=()=>{m(l.id),u(!0)},p=i.formState.isDirty,g=async()=>{const x=i.getValues(),w=await n.update.mutateAsync({id:l.id,data:x});i.reset(w)},h=()=>{i.reset(l)},f=()=>{c({type:"SET_EDITING_CONNECTION_ID",payload:null}),c({type:"SET_CONNECTION_DIALOG_OPEN",payload:!0})},C=x=>{c({type:"SET_EDITING_CONNECTION_ID",payload:x}),c({type:"SET_CONNECTION_DIALOG_OPEN",payload:!0})},v=n.update.isPending;return t.jsxs(Kt,{onBack:()=>o.history.back(),children:[t.jsxs(qt,{children:[t.jsxs(q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(B,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:!p||v,onClick:h,"aria-label":"Cancel",children:t.jsx(Ut,{size:14})})})}),t.jsx(Y,{side:"bottom",children:"Cancel"})]}),t.jsxs(q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(B,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:!p||v,onClick:g,"aria-label":"Save",children:v?t.jsx(Ve,{size:14,className:"animate-spin"}):t.jsx(nt,{size:14})})})}),t.jsx(Y,{side:"bottom",children:"Save"})]}),t.jsxs(q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsxs(B,{variant:"outline",size:"sm",className:"h-7 gap-1.5 px-2 border border-input",onClick:a,"aria-label":"Test Agent",children:[t.jsx(Ht,{size:14}),"Test Agent"]})})}),t.jsx(Y,{side:"bottom",children:"Test this agent in chat"})]}),t.jsxs(q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(B,{variant:"outline",size:"icon",className:"size-7 border border-input",onClick:()=>c({type:"SET_SHARE_DIALOG_OPEN",payload:!0}),"aria-label":"Share",children:t.jsx(Wt,{size:14})})})}),t.jsx(Y,{side:"bottom",children:"Share"})]}),t.jsx(Rt,{title:l.title,url:s,icon:l.icon??"cpu_chip"})]}),t.jsx("div",{className:"flex h-full w-full bg-background overflow-auto",children:t.jsxs("div",{className:"flex flex-col w-full",children:[t.jsxs("div",{className:"flex items-start justify-between gap-4 p-6 shrink-0",children:[t.jsxs("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[t.jsx(ie,{icon:l.icon,name:i.watch("title")||"Agent",size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(lt,{})}),t.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[t.jsx(He,{...i.register("title"),className:"h-auto py-0.5 text-lg! font-medium leading-7 px-1 -mx-1 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Agent Name"}),t.jsx(He,{...i.register("description"),className:"h-auto py-0.5 text-base text-muted-foreground leading-6 px-1 -mx-1 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Add a description..."})]})]}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(zt,{checked:i.watch("status")==="active",onCheckedChange:x=>i.setValue("status",x?"active":"inactive",{shouldDirty:!0})})})]}),t.jsxs(Ot,{open:r.skillsOpen,onOpenChange:x=>c({type:"SET_SKILLS_OPEN",payload:x}),className:"border-t border-border shrink-0 max-h-[400px] overflow-hidden flex flex-col",children:[d.length===0?t.jsxs("button",{type:"button",onClick:f,className:"w-full flex items-center justify-between px-6 py-4 hover:bg-muted/50 transition-colors cursor-pointer",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Skills"}),t.jsxs("div",{className:"h-7 px-2 inline-flex items-center justify-center gap-1 rounded-md text-sm text-muted-foreground",children:[t.jsx(We,{size:14}),"Add"]})]}):t.jsx(Dt,{asChild:!0,children:t.jsxs("button",{type:"button",className:"w-full flex items-center justify-between px-6 py-4 hover:bg-muted/50 transition-colors cursor-pointer",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Skills"}),t.jsxs("div",{className:"flex items-center",children:[t.jsx("div",{className:"flex items-center -space-x-2 ease-(--ease-out-expo)",style:{width:r.skillsOpen?0:"auto",marginRight:r.skillsOpen?0:4,opacity:r.skillsOpen?0:1,pointerEvents:r.skillsOpen?"none":"auto",transitionProperty:"all",transitionDuration:r.skillsOpen?"0ms":"200ms"},children:d.slice(0,4).map(x=>t.jsx(N.Suspense,{fallback:t.jsx(Oe.Fallback,{}),children:t.jsx(Oe,{connection_id:x.connection_id})},x.connection_id))}),t.jsxs("div",{role:"button",tabIndex:0,className:"h-7 inline-flex items-center justify-center rounded-md text-sm text-muted-foreground overflow-hidden transition-all duration-200 ease-(--ease-out-expo) hover:bg-accent hover:text-accent-foreground",style:{width:r.skillsOpen?"auto":28,paddingLeft:r.skillsOpen?8:0,paddingRight:r.skillsOpen?8:0,gap:r.skillsOpen?4:0},onPointerDown:x=>{x.stopPropagation()},onClick:x=>{x.stopPropagation(),x.preventDefault(),f()},onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.stopPropagation(),x.preventDefault(),f())},children:[t.jsx(We,{size:14,className:"shrink-0"}),t.jsx("span",{className:"overflow-hidden whitespace-nowrap transition-all duration-200 ease-(--ease-out-expo)",style:{width:r.skillsOpen?"auto":0,opacity:r.skillsOpen?1:0},children:"Add"})]}),t.jsx("div",{className:"h-7 inline-flex items-center justify-center overflow-hidden transition-all duration-200 ease-(--ease-out-expo)",style:{width:r.skillsOpen?28:0,opacity:r.skillsOpen?1:0},children:t.jsx(Gt,{size:16,className:"shrink-0"})})]})]})}),t.jsx("div",{className:"grid overflow-hidden transition-[grid-template-rows] duration-200 ease-(--ease-out-expo)",style:{gridTemplateRows:r.skillsOpen?"1fr":"0fr"},children:t.jsx("div",{className:"min-h-0 overflow-hidden",children:t.jsx("div",{className:"overflow-y-auto max-h-[300px] mask-[linear-gradient(to_bottom,black_calc(100%-40px),transparent_100%)]",children:t.jsx("div",{className:"flex flex-col gap-2 px-6 pb-4 pt-2",children:d.map(x=>t.jsx(N.Suspense,{fallback:t.jsx(De.Fallback,{}),children:t.jsx(De,{connection_id:x.connection_id,selected_tools:x.selected_tools,selected_resources:x.selected_resources,selected_prompts:x.selected_prompts,onClick:()=>C(x.connection_id)})},x.connection_id))})})})})]}),t.jsxs("div",{className:"flex flex-col flex-1 p-6 border-t border-border overflow-auto",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground mb-2",children:"Instructions"}),t.jsx(Et,{name:"metadata.instructions",control:i.control,render:({field:x})=>t.jsx(Lt,{...x,value:x.value??"",placeholder:"Write instructions here...",className:"min-h-[200px] resize-none text-sm placeholder:text-muted-foreground/50 leading-relaxed border-0 rounded-none shadow-none px-0 focus-visible:ring-0 focus-visible:ring-offset-0 focus:border-0 bg-transparent"})})]})]})}),t.jsx(Ds,{open:r.connectionDialogOpen,onOpenChange:x=>c({type:"SET_CONNECTION_DIALOG_OPEN",payload:x}),selectedId:r.editingConnectionId,form:i,connections:d}),t.jsx(Ls,{open:r.shareDialogOpen,onOpenChange:x=>c({type:"SET_SHARE_DIALOG_OPEN",payload:x}),virtualMcp:l})]})}function Gs(){const l=_.c(6),e=_t();let s;l[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org/agents/$agentId"},l[0]=s):s=l[0];const o=kt(s),{org:n,agentId:i}=o,d=Ft(i);if(!d){let c;return l[1]!==e||l[2]!==n?(c=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Pt,{title:"Agent not found",description:"This Agent may have been deleted or you may not have access.",actions:t.jsx(B,{variant:"outline",onClick:()=>e({to:"/$org/agents",params:{org:n}}),children:"Back to agents"})})}),l[1]=e,l[2]=n,l[3]=c):c=l[3],c}let r;return l[4]!==d?(r=t.jsx(Bs,{virtualMcp:d}),l[4]=d,l[5]=r):r=l[5],r}function Fl(){const l=_.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(fe,{children:t.jsx(N.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(Ve,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Gs,{})})}),l[0]=e):e=l[0],e}export{Fl as default};
1
+ import{r as N,o as G,n as O,s as j,_ as Pe,v as gt,w as bt,j as t,x as xe,az as vt,R as jt,I as Nt,z as Ce,D as Ct,B as qe,E as yt,c as _,u as Me,an as Re,l as _t,a as kt,b9 as wt,bm as St,k as Tt,h as It,av as Et}from"./index-Dho9MRVw.js";import{u as At,C as Ot,a as Dt}from"./collapsible-0N2BB6Bm.js";import{I as ie,E as Pt}from"./empty-state-DKQ_J1zp.js";import{E as fe,i as Mt}from"./error-boundary-ynZ9rF8y.js";import{P as Rt}from"./pin-to-sidebar-button-Cdnz6iok.js";import{u as $t}from"./use-deco-chat-open-D-b5da72.js";import{B as $e}from"./badge-CfH2vrIM.js";import{c as U,B}from"./button-D_0RTXDt.js";import{I as He}from"./input-trZWilTG.js";import{S as zt}from"./switch-t5mcsF2Z.js";import{T as Lt}from"./textarea-x7X_L353.js";import{T as K,b as ye,c as q,a as Y}from"./tooltip-Cw2xVvTD.js";import{b as Vt,u as Ye}from"./use-connection-BU-nKbTz.js";import{u as Ft,a as Bt}from"./use-virtual-mcp-DbjvrtSR.js";import{i as Ze}from"./Grid01-DmaR0g3f.js";import{n as Gt}from"./select-reGYS0Ly.js";import{i as ze}from"./File02-Cuc-ZPtg.js";import{a as Le,i as Ut}from"./Tool01-Ir04gLyn.js";import{i as Ve}from"./Loading01-Bo9vDQAp.js";import{i as Ht}from"./Play-D2yqwct8.js";import{s as We}from"./Plus-DAW17Fqf.js";import{i as Wt}from"./Share07-CN4FUsWW.js";import{b as Kt,V as qt}from"./layout-BZ8_9wgI.js";import{C as Yt}from"./collection-search-DRZ8ScZP.js";import{C as Fe}from"./checkbox-CUtYbeQD.js";import{e as Zt,a as Je,D as Qe,b as Jt,c as Qt}from"./dialog-B-A0vnh-.js";import{f as Xt}from"./use-collections-CVO4vm4G.js";import{u as Be}from"./constants-D8fdcBr8.js";import{c as es,u as ts}from"./use-mcp-prompts-B5zcyY9X.js";import{s as Xe}from"./slugify-CEUa2lfQ.js";import{I as ss,R as ls,a as os}from"./index-BWcrkV98.js";import{i as et}from"./Check-BzMGOxMB.js";import{i as ns}from"./Code01-KWN4ist8.js";import{a as is}from"./Copy01-DH_iV9-n.js";import{i as _e}from"./InfoCircle-qTETvFXb.js";import"./use-binding-BVBmgj67.js";import"./binder-Cyeq_Zec.js";import"./useSuspenseInfiniteQuery-BS0TxHG_.js";import"./infiniteQueryObserver-DDmbfPGP.js";import"./localstorage-keys-B7V7cQcH.js";import"./useQuery-C2zqJzGD.js";import"./useMutation-Lj_Cbq0P.js";import"./popover-Bkt9Kfhi.js";import"./ChevronDown-BV0rwdFr.js";import"./File06-BUwGdOjl.js";import"./Image01-BCcbzsoK.js";import"./SearchMd-D9E7kgub.js";import"./Pin01-NWg5BL2M.js";import"./use-organization-settings-CeE0FyqT.js";import"./ArrowLeft-Dlm4CF9d.js";import"./X-DyyqPnhR.js";const tt=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));tt.displayName="ArrowsRight";const st=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));st.displayName="Circle";const lt=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M9 2v3m6-3v3M9 19v3m6-3v3m4-13h3m-3 5h3M2 9h3m-3 5h3m4.8 5h4.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C19 16.72 19 15.88 19 14.2V9.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C16.72 5 15.88 5 14.2 5H9.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C5 7.28 5 8.12 5 9.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C7.28 19 8.12 19 9.8 19Z"}));lt.displayName="CpuChip02";const he=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"m9.75 20.75 1.473.818c.284.158.425.237.576.268.133.027.27.027.402 0 .15-.031.292-.11.576-.268l1.473-.818m-9-2.5-1.427-.793c-.3-.166-.45-.25-.558-.368a1 1 0 0 1-.215-.364C3 16.573 3 16.401 3 16.06V14.5m0-5V7.942c0-.343 0-.514.05-.667a1 1 0 0 1 .215-.364c.109-.119.258-.202.558-.368L5.25 5.75m4.5-2.5 1.473-.818c.284-.158.425-.237.576-.267a1 1 0 0 1 .402 0c.15.03.292.11.576.267l1.473.818m4.5 2.5 1.427.793c.3.166.45.25.558.368a1 1 0 0 1 .215.364c.05.153.05.324.05.667V9.5m0 5v1.559c0 .342 0 .514-.05.666a.999.999 0 0 1-.215.364c-.109.119-.258.202-.558.368l-1.427.793m-9-7.5L12 12m0 0 2.25-1.25M12 12v2.5M3 7l2.25 1.25m13.5 0L21 7m-9 12.5V22"}));he.displayName="CubeOutline";const ot=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M10 17.659V20a2 2 0 1 0 4 0v-2.341M12 2v1m-9 9H2m3.5-6.5-.6-.6m13.6.6.6-.6M22 12h-1m-3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"}));ot.displayName="Lightbulb02";const nt=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M7 3v3.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C7.76 8 8.04 8 8.6 8h6.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C17 7.24 17 6.96 17 6.4V4m0 17v-6.4c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C16.24 13 15.96 13 15.4 13H8.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C7 13.76 7 14.04 7 14.6V21M21 9.325V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h6.875c.489 0 .733 0 .963.055.204.05.4.13.579.24.201.123.374.296.72.642l3.126 3.126c.346.346.519.519.642.72.11.18.19.374.24.579.055.23.055.474.055.963Z"}));nt.displayName="Save01";const rs=G({connection_id:j().describe("Connection ID"),selected_tools:O(j()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:O(j()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:O(j()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),as=G({id:j().describe("Unique identifier for the virtual MCP"),title:j().describe("Human-readable name for the virtual MCP"),description:j().nullable().describe("Description of the virtual MCP"),icon:j().nullable().describe("Icon URL for the virtual MCP"),created_at:j().describe("When the virtual MCP was created"),updated_at:j().describe("When the virtual MCP was last updated"),created_by:j().describe("User ID who created the virtual MCP"),updated_by:j().optional().describe("User ID who last updated the virtual MCP"),organization_id:j().describe("Organization ID this virtual MCP belongs to"),status:Pe(["active","inactive"]).describe("Current status"),metadata:G({instructions:j().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:O(rs).describe("Connections with their selected tools, resources, and prompts")});G({title:j().min(1).max(255).describe("Name for the virtual MCP"),description:j().nullable().optional().describe("Optional description"),icon:j().nullable().optional().describe("Optional icon URL"),status:Pe(["active","inactive"]).optional().default("active").describe("Initial status"),metadata:G({instructions:j().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:O(G({connection_id:j().describe("Connection ID"),selected_tools:O(j()).nullable().optional().describe("Selected tool names (null/undefined = all tools included)"),selected_resources:O(j()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources included)"),selected_prompts:O(j()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts included)")})).describe("Connections to include with their selected tools/resources/prompts")});G({title:j().min(1).max(255).optional().describe("New name"),description:j().nullable().optional().describe("New description (null to clear)"),icon:j().nullable().optional().describe("New icon URL (null to clear)"),status:Pe(["active","inactive"]).optional().describe("New status"),metadata:G({instructions:j().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:O(G({connection_id:j().describe("Connection ID"),selected_tools:O(j()).nullable().optional().describe("Selected tool names (null/undefined = all tools included)"),selected_resources:O(j()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources included)"),selected_prompts:O(j()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts included)")})).optional().describe("New connections (replaces existing)")});var ge="Tabs",[cs]=yt(ge,[qe]),it=qe(),[ds,Ge]=cs(ge),rt=N.forwardRef((l,e)=>{const{__scopeTabs:s,value:o,onValueChange:n,defaultValue:i,orientation:d="horizontal",dir:r,activationMode:c="automatic",...u}=l,m=gt(r),[a,p]=bt({prop:o,onChange:n,defaultProp:i??"",caller:ge});return t.jsx(ds,{scope:s,baseId:vt(),value:a,onValueChange:p,orientation:d,dir:m,activationMode:c,children:t.jsx(xe.div,{dir:m,"data-orientation":d,...u,ref:e})})});rt.displayName=ge;var at="TabsList",ct=N.forwardRef((l,e)=>{const{__scopeTabs:s,loop:o=!0,...n}=l,i=Ge(at,s),d=it(s);return t.jsx(jt,{asChild:!0,...d,orientation:i.orientation,dir:i.dir,loop:o,children:t.jsx(xe.div,{role:"tablist","aria-orientation":i.orientation,...n,ref:e})})});ct.displayName=at;var dt="TabsTrigger",ut=N.forwardRef((l,e)=>{const{__scopeTabs:s,value:o,disabled:n=!1,...i}=l,d=Ge(dt,s),r=it(s),c=ft(d.baseId,o),u=xt(d.baseId,o),m=o===d.value;return t.jsx(Nt,{asChild:!0,...r,focusable:!n,active:m,children:t.jsx(xe.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":u,"data-state":m?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:c,...i,ref:e,onMouseDown:Ce(l.onMouseDown,a=>{!n&&a.button===0&&a.ctrlKey===!1?d.onValueChange(o):a.preventDefault()}),onKeyDown:Ce(l.onKeyDown,a=>{[" ","Enter"].includes(a.key)&&d.onValueChange(o)}),onFocus:Ce(l.onFocus,()=>{const a=d.activationMode!=="manual";!m&&!n&&a&&d.onValueChange(o)})})})});ut.displayName=dt;var mt="TabsContent",pt=N.forwardRef((l,e)=>{const{__scopeTabs:s,value:o,forceMount:n,children:i,...d}=l,r=Ge(mt,s),c=ft(r.baseId,o),u=xt(r.baseId,o),m=o===r.value,a=N.useRef(m);return N.useEffect(()=>{const p=requestAnimationFrame(()=>a.current=!1);return()=>cancelAnimationFrame(p)},[]),t.jsx(Ct,{present:n||m,children:({present:p})=>t.jsx(xe.div,{"data-state":m?"active":"inactive","data-orientation":r.orientation,role:"tabpanel","aria-labelledby":c,hidden:!p,id:u,tabIndex:0,...d,ref:e,style:{...l.style,animationDuration:a.current?"0s":void 0},children:p&&i})})});pt.displayName=mt;function ft(l,e){return`${l}-trigger-${e}`}function xt(l,e){return`${l}-content-${e}`}var us=rt,ms=ct,ps=ut,fs=pt;function xs(l){const e=_.c(10);let s,o,n;e[0]!==l?({className:s,variant:n,...o}=l,e[0]=l,e[1]=s,e[2]=o,e[3]=n):(s=e[1],o=e[2],n=e[3]);const i=n===void 0?"pill":n;let d;e[4]!==s?(d=U("flex flex-col gap-2",s),e[4]=s,e[5]=d):d=e[5];let r;return e[6]!==o||e[7]!==d||e[8]!==i?(r=t.jsx(us,{"data-slot":"tabs","data-variant":i,className:d,...o}),e[6]=o,e[7]=d,e[8]=i,e[9]=r):r=e[9],r}function hs(l){const e=_.c(11);let s,o,n;e[0]!==l?({className:s,variant:n,...o}=l,e[0]=l,e[1]=s,e[2]=o,e[3]=n):(s=e[1],o=e[2],n=e[3]);const i=n||"pill",d=i==="underline"?"flex h-[52px] items-center border-b border-border":i==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let r;e[4]!==s||e[5]!==d?(r=U(d,s),e[4]=s,e[5]=d,e[6]=r):r=e[6];let c;return e[7]!==i||e[8]!==o||e[9]!==r?(c=t.jsx(ms,{"data-slot":"tabs-list","data-variant":i,className:r,...o}),e[7]=i,e[8]=o,e[9]=r,e[10]=c):c=e[10],c}function ke(l){const e=_.c(11);let s,o,n;e[0]!==l?({className:s,variant:n,...o}=l,e[0]=l,e[1]=s,e[2]=o,e[3]=n):(s=e[1],o=e[2],n=e[3]);const i=n||"pill",d=i==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-foreground disabled:pointer-events-none disabled:opacity-50":i==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let r;e[4]!==s||e[5]!==d?(r=U(d,s),e[4]=s,e[5]=d,e[6]=r):r=e[6];let c;return e[7]!==i||e[8]!==o||e[9]!==r?(c=t.jsx(ps,{"data-slot":"tabs-trigger","data-variant":i,className:r,...o}),e[7]=i,e[8]=o,e[9]=r,e[10]=c):c=e[10],c}function we(l){const e=_.c(8);let s,o;e[0]!==l?({className:s,...o}=l,e[0]=l,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=U("flex-1 outline-none h-full",s),e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==o||e[6]!==n?(i=t.jsx(fs,{"data-slot":"tabs-content",className:n,...o}),e[5]=o,e[6]=n,e[7]=i):i=e[7],i}function Se(l){return l===null?"all":l?.length??0}function gs(l,e){const s=l[e];if(!s)return"";const o=[];return s.tools===null?o.push("all tools"):s.tools&&s.tools.length>0&&o.push(`${s.tools.length} tools`),s.resources===null?o.push("all resources"):s.resources&&s.resources.length>0&&o.push(`${s.resources.length} resources`),s.prompts===null?o.push("all prompts"):s.prompts&&s.prompts.length>0&&o.push(`${s.prompts.length} prompts`),o.join(", ")}function bs(l,e){const s=l[e];return s?!((s.tools===void 0||s.tools!==null&&s.tools.length===0)&&(s.resources===void 0||s.resources!==null&&s.resources.length===0)&&(s.prompts===void 0||s.prompts!==null&&s.prompts.length===0)):!1}const vs={tools:null,resources:null,prompts:null};function Te(){const l=_.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex items-center justify-center h-32",children:t.jsx(Ve,{className:"animate-spin text-muted-foreground",size:24})}),l[0]=e):e=l[0],e}function Ie(l){return({error:e})=>e?.message?.includes("Method not found")||e?.code===-32601?t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:l})}):t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(Mt,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e?.message||"An unexpected error occurred"})]})]})}function js(l){const e=_.c(18),{item:s,isSelected:o,onToggle:n,disabled:i}=l,d=i?"cursor-not-allowed opacity-50":"cursor-pointer",r=o?"bg-accent/25":"hover:bg-muted/50";let c;e[0]!==d||e[1]!==r?(c=U("flex items-start gap-3 p-4 rounded-lg transition-colors",d,r),e[0]=d,e[1]=r,e[2]=c):c=e[2];let u;e[3]!==s.name?(u=t.jsx("p",{className:"text-sm font-medium leading-none",children:s.name}),e[3]=s.name,e[4]=u):u=e[4];let m;e[5]!==s.description?(m=s.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:s.description}),e[5]=s.description,e[6]=m):m=e[6];let a;e[7]!==u||e[8]!==m?(a=t.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[u,m]}),e[7]=u,e[8]=m,e[9]=a):a=e[9];let p;e[10]!==i||e[11]!==o||e[12]!==n?(p=t.jsx(Fe,{checked:o,onCheckedChange:n,disabled:i,className:"mt-0.5"}),e[10]=i,e[11]=o,e[12]=n,e[13]=p):p=e[13];let g;return e[14]!==c||e[15]!==a||e[16]!==p?(g=t.jsxs("label",{className:c,children:[a,p]}),e[14]=c,e[15]=a,e[16]=p,e[17]=g):g=e[17],g}function Ue(l){const e=_.c(32),{items:s,selections:o,onToggle:n,onToggleAll:i,emptyMessage:d,disabled:r}=l;let c,u,m,a,p;if(e[0]!==r||e[1]!==d||e[2]!==s||e[3]!==n||e[4]!==i||e[5]!==o){p=Symbol.for("react.early_return_sentinel");e:{const f=s.map(Ns);if(s.length===0){let y;e[11]!==d?(y=t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:d})}),e[11]=d,e[12]=y):y=e[12],p=y;break e}m="flex flex-col h-full";const C=r?"cursor-not-allowed opacity-50":"cursor-pointer";let v;e[13]!==C?(v=U("flex items-start gap-3 p-4",C),e[13]=C,e[14]=v):v=e[14];let x;e[15]!==s.length?(x=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsxs("span",{className:"text-sm font-medium",children:["Select All (",s.length,")"]})}),e[15]=s.length,e[16]=x):x=e[16];const w=o===null;let S;e[17]!==r||e[18]!==i||e[19]!==w?(S=t.jsx(Fe,{checked:w,onCheckedChange:i,disabled:r,className:"mt-0.5"}),e[17]=r,e[18]=i,e[19]=w,e[20]=S):S=e[20],e[21]!==S||e[22]!==v||e[23]!==x?(a=t.jsx("div",{className:"px-4 border-b border-border shrink-0",children:t.jsxs("label",{className:v,children:[x,S]})}),e[21]=S,e[22]=v,e[23]=x,e[24]=a):a=e[24],c="flex-1 overflow-auto px-4 py-3 space-y-1",u=s.map(y=>t.jsx(js,{item:y,isSelected:o===null||o?.includes(y.id),onToggle:()=>n(y.id,f),disabled:r},y.id))}e[0]=r,e[1]=d,e[2]=s,e[3]=n,e[4]=i,e[5]=o,e[6]=c,e[7]=u,e[8]=m,e[9]=a,e[10]=p}else c=e[6],u=e[7],m=e[8],a=e[9],p=e[10];if(p!==Symbol.for("react.early_return_sentinel"))return p;let g;e[25]!==c||e[26]!==u?(g=t.jsx("div",{className:c,children:u}),e[25]=c,e[26]=u,e[27]=g):g=e[27];let h;return e[28]!==m||e[29]!==a||e[30]!==g?(h=t.jsxs("div",{className:m,children:[a,g]}),e[28]=m,e[29]=a,e[30]=g,e[31]=h):h=e[31],h}function Ns(l){return l.id}function Cs(l){const e=_.c(13),{connectionId:s,selections:o,onToggle:n,onToggleAll:i,disabled:d}=l,{org:r}=Me();let c;e[0]!==s||e[1]!==r.id?(c={connectionId:s,orgId:r.id},e[0]=s,e[1]=r.id,e[2]=c):c=e[2];const u=Be(c);let m;e[3]!==u?(m={client:u},e[3]=u,e[4]=m):m=e[4];const{data:a}=Xt(m);let p;e[5]!==a.tools?(p=a.tools.map(ys),e[5]=a.tools,e[6]=p):p=e[6];const g=p;let h;return e[7]!==d||e[8]!==g||e[9]!==n||e[10]!==i||e[11]!==o?(h=t.jsx(Ue,{items:g,selections:o,onToggle:n,onToggleAll:i,emptyMessage:"No tools available",disabled:d}),e[7]=d,e[8]=g,e[9]=n,e[10]=i,e[11]=o,e[12]=h):h=e[12],h}function ys(l){return{id:l.name,name:l.name,description:l.description}}function _s(l){const e=_.c(13),{connectionId:s,selections:o,onToggle:n,onToggleAll:i,disabled:d}=l,{org:r}=Me();let c;e[0]!==s||e[1]!==r.id?(c={connectionId:s,orgId:r.id},e[0]=s,e[1]=r.id,e[2]=c):c=e[2];const u=Be(c);let m;e[3]!==u?(m={client:u},e[3]=u,e[4]=m):m=e[4];const{data:a}=es(m);let p;e[5]!==a.resources?(p=a.resources.map(ks),e[5]=a.resources,e[6]=p):p=e[6];const g=p;let h;return e[7]!==d||e[8]!==g||e[9]!==n||e[10]!==i||e[11]!==o?(h=t.jsx(Ue,{items:g,selections:o,onToggle:n,onToggleAll:i,emptyMessage:"No resources available",disabled:d}),e[7]=d,e[8]=g,e[9]=n,e[10]=i,e[11]=o,e[12]=h):h=e[12],h}function ks(l){return{id:l.name||l.uri,name:l.name||l.uri,description:l.description}}function ws(l){const e=_.c(13),{connectionId:s,selections:o,onToggle:n,onToggleAll:i,disabled:d}=l,{org:r}=Me();let c;e[0]!==s||e[1]!==r.id?(c={connectionId:s,orgId:r.id},e[0]=s,e[1]=r.id,e[2]=c):c=e[2];const u=Be(c);let m;e[3]!==u?(m={client:u},e[3]=u,e[4]=m):m=e[4];const{data:a}=ts(m);let p;e[5]!==a.prompts?(p=a.prompts.map(Ss),e[5]=a.prompts,e[6]=p):p=e[6];const g=p;let h;return e[7]!==d||e[8]!==g||e[9]!==n||e[10]!==i||e[11]!==o?(h=t.jsx(Ue,{items:g,selections:o,onToggle:n,onToggleAll:i,emptyMessage:"No prompts available",disabled:d}),e[7]=d,e[8]=g,e[9]=n,e[10]=i,e[11]=o,e[12]=h):h=e[12],h}function Ss(l){return{id:l.name,name:l.name,description:l.description}}function Ts(l){const e=_.c(24),{connection:s,isSelected:o,hasSelections:n,summary:i,onClick:d,onToggleAll:r,disabled:c}=l,u=c?"cursor-not-allowed opacity-50":"cursor-pointer",m=o?"bg-accent":"hover:bg-muted/50";let a;e[0]!==u||e[1]!==m?(a=U("flex items-center gap-2 p-2 h-12 rounded-lg transition-colors",u,m),e[0]=u,e[1]=m,e[2]=a):a=e[2];const p=c?void 0:d;let g;e[3]!==s.icon||e[4]!==s.title?(g=t.jsx(ie,{icon:s.icon,name:s.title,size:"xs",className:"shrink-0"}),e[3]=s.icon,e[4]=s.title,e[5]=g):g=e[5];let h;e[6]!==s.title?(h=t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[6]=s.title,e[7]=h):h=e[7];let f;e[8]!==n||e[9]!==i?(f=n&&i&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:i}),e[8]=n,e[9]=i,e[10]=f):f=e[10];let C;e[11]!==h||e[12]!==f?(C=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[h,f]}),e[11]=h,e[12]=f,e[13]=C):C=e[13];let v;e[14]!==c||e[15]!==n||e[16]!==r?(v=t.jsx(Fe,{checked:n,onCheckedChange:r,onClick:Is,disabled:c,className:"shrink-0"}),e[14]=c,e[15]=n,e[16]=r,e[17]=v):v=e[17];let x;return e[18]!==a||e[19]!==p||e[20]!==g||e[21]!==C||e[22]!==v?(x=t.jsxs("div",{className:a,onClick:p,children:[g,C,v]}),e[18]=a,e[19]=p,e[20]=g,e[21]=C,e[22]=v,e[23]=x):x=e[23],x}function Is(l){return l.stopPropagation()}function Es(l){const e=_.c(22),{allConnections:s,searchTerm:o,selectedId:n,hasSelections:i,getSelectionSummary:d,onConnectionClick:r,onToggleAll:c,disabled:u}=l;let m;e[0]!==s||e[1]!==o?(m=o?s.filter(h=>h.title.toLowerCase().includes(o.toLowerCase())||h.description?.toLowerCase().includes(o.toLowerCase())):s,e[0]=s,e[1]=o,e[2]=m):m=e[2];const a=m;if(a.length===0){const h=o?"No connections found":"No connections available";let f;return e[3]!==h?(f=t.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground p-4",children:h}),e[3]=h,e[4]=f):f=e[4],f}let p;if(e[5]!==u||e[6]!==a||e[7]!==d||e[8]!==i||e[9]!==r||e[10]!==c||e[11]!==n){let h;e[13]!==u||e[14]!==d||e[15]!==i||e[16]!==r||e[17]!==c||e[18]!==n?(h=f=>t.jsx(Ts,{connection:f,isSelected:n===f.id,hasSelections:i(f.id),summary:d(f.id),onClick:()=>r(f.id),onToggleAll:()=>c(f.id),disabled:u},f.id),e[13]=u,e[14]=d,e[15]=i,e[16]=r,e[17]=c,e[18]=n,e[19]=h):h=e[19],p=a.map(h),e[5]=u,e[6]=a,e[7]=d,e[8]=i,e[9]=r,e[10]=c,e[11]=n,e[12]=p}else p=e[12];let g;return e[20]!==p?(g=t.jsx("div",{className:"flex flex-col gap-0.5",children:p}),e[20]=p,e[21]=g):g=e[21],g}function As(l){const e={};for(const s of l)e[s.connection_id]={tools:s.selected_tools,resources:s.selected_resources??null,prompts:s.selected_prompts??null};return e}function Ee(l){return Object.entries(l).map(([e,s])=>({connection_id:e,selected_tools:s.tools,selected_resources:s.resources,selected_prompts:s.prompts}))}function Os(l,e){switch(e.type){case"SET_SEARCH_TERM":return{...l,searchTerm:e.payload};case"SET_SELECTED":return{...l,selectedId:e.payload};case"SET_ACTIVE_TAB":return{...l,activeTab:e.payload};case"RESET":return{searchTerm:"",selectedId:e.payload.selectedId??e.payload.firstConnectionId??null,activeTab:"tools"};case"SELECT_CONNECTION":return{...l,selectedId:e.payload,activeTab:"tools"};default:return l}}const Ke=(l,e)=>l.find(s=>s.id===e)??l[0];function Ds(l){const e=_.c(79),{open:s,onOpenChange:o,selectedId:n,form:i,connections:d}=l;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={},e[0]=r):r=e[0];const c=Vt(r);let u;e[1]!==c||e[2]!==n?(u=Ke(c,n)?.id??null,e[1]=c,e[2]=n,e[3]=u):u=e[3];let m;e[4]!==u?(m={activeTab:"tools",searchTerm:"",selectedId:u},e[4]=u,e[5]=m):m=e[5];const[a,p]=N.useReducer(Os,m);let g;e[6]!==d?(g=d??[],e[6]=d,e[7]=g):g=e[7];let h;e[8]!==g?(h=As(g),e[8]=g,e[9]=h):h=e[9];const f=h;let C;e[10]!==c||e[11]!==a.selectedId?(C=Ke(c,a.selectedId),e[10]=c,e[11]=a.selectedId,e[12]=C):C=e[12];const v=C;let x;e[13]!==f?(x=b=>bs(f,b),e[13]=f,e[14]=x):x=e[14];const w=x;let S;e[15]!==f?(S=b=>gs(f,b),e[15]=f,e[16]=S):S=e[16];const y=S;let L;e[17]!==i||e[18]!==f?(L=(b,k,E,W)=>{const oe=f[b]?.[k];let A;oe===null?A=W.filter(Ne=>Ne!==E):oe?.includes(E)?A=oe.filter(Ne=>Ne!==E):(A=[...oe??[],E],A.length===W.length&&(A=null));const ne={...f};ne[b]?ne[b]={...ne[b]}:ne[b]={tools:null,resources:null,prompts:null},ne[b][k]=A,i.setValue("connections",Ee(ne),{shouldDirty:!0,shouldTouch:!0})},e[17]=i,e[18]=f,e[19]=L):L=e[19];const T=L;let V;e[20]!==i||e[21]!==f?(V=(b,k)=>{const oe=f[b]?.[k]===null?[]:null,A={...f};A[b]?A[b]={...A[b]}:A[b]={tools:null,resources:null,prompts:null},A[b][k]=oe,i.setValue("connections",Ee(A),{shouldDirty:!0,shouldTouch:!0})},e[20]=i,e[21]=f,e[22]=V):V=e[22];const I=V;let D;e[23]!==T?(D=(b,k,E)=>T(b,"tools",k,E),e[23]=T,e[24]=D):D=e[24];const R=D;let P;e[25]!==T?(P=(b,k,E)=>T(b,"resources",k,E),e[25]=T,e[26]=P):P=e[26];const $=P;let M;e[27]!==T?(M=(b,k,E)=>T(b,"prompts",k,E),e[27]=T,e[28]=M):M=e[28];const z=M;let F;e[29]!==I?(F=b=>I(b,"tools"),e[29]=I,e[30]=F):F=e[30];const H=F;let re;e[31]!==I?(re=b=>I(b,"resources"),e[31]=I,e[32]=re):re=e[32];const be=re;let ae;e[33]!==I?(ae=b=>I(b,"prompts"),e[33]=I,e[34]=ae):ae=e[34];const ve=ae;let ce;e[35]!==i||e[36]!==f?(ce=b=>{const k=f[b],E=k&&k.tools===null&&k.resources===null&&k.prompts===null,W={...f};E?delete W[b]:W[b]=vs,i.setValue("connections",Ee(W),{shouldDirty:!0,shouldTouch:!0})},e[35]=i,e[36]=f,e[37]=ce):ce=e[37];const je=ce;let de;e[38]!==c||e[39]!==o||e[40]!==n?(de=b=>{b&&p({type:"RESET",payload:{selectedId:n,firstConnectionId:c[0]?.id??null}}),o(b)},e[38]=c,e[39]=o,e[40]=n,e[41]=de):de=e[41];const Z=de;let ue;e[42]===Symbol.for("react.memo_cache_sentinel")?(ue=b=>{p({type:"SELECT_CONNECTION",payload:b})},e[42]=ue):ue=e[42];const ht=ue;let me;e[43]===Symbol.for("react.memo_cache_sentinel")?(me=b=>p({type:"SET_SEARCH_TERM",payload:b}),e[43]=me):me=e[43];let J;e[44]!==a.searchTerm?(J=t.jsx(Yt,{value:a.searchTerm,onChange:me,placeholder:"Search connections..."}),e[44]=a.searchTerm,e[45]=J):J=e[45];let Q;e[46]!==c||e[47]!==a.searchTerm||e[48]!==a.selectedId||e[49]!==y||e[50]!==w||e[51]!==je?(Q=t.jsx("div",{className:"flex-1 overflow-auto p-2",children:t.jsx(Es,{allConnections:c,searchTerm:a.searchTerm,selectedId:a.selectedId,hasSelections:w,getSelectionSummary:y,onConnectionClick:ht,onToggleAll:je})}),e[46]=c,e[47]=a.searchTerm,e[48]=a.selectedId,e[49]=y,e[50]=w,e[51]=je,e[52]=Q):Q=e[52];let X;e[53]!==J||e[54]!==Q?(X=t.jsxs("div",{className:"w-full sm:w-72 sm:border-r border-b sm:border-b-0 border-border flex flex-col bg-background sm:h-full max-h-[40vh] sm:max-h-full",children:[J,Q]}),e[53]=J,e[54]=Q,e[55]=X):X=e[55];let ee;e[56]!==v||e[57]!==a.activeTab||e[58]!==a.selectedId||e[59]!==f||e[60]!==ve||e[61]!==be||e[62]!==H||e[63]!==z||e[64]!==$||e[65]!==R?(ee=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:v&&a.selectedId?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"p-6 border-b border-border shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(ie,{icon:v.icon,name:v.title,size:"md",className:"shrink-0"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("h2",{className:"text-lg font-semibold truncate",children:v.title}),v.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:v.description})]})]})}),t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:t.jsxs(xs,{value:a.activeTab,onValueChange:b=>p({type:"SET_ACTIVE_TAB",payload:b}),variant:"underline",className:"flex-1 flex flex-col overflow-hidden",children:[t.jsxs(hs,{variant:"underline",className:"shrink-0 px-6",children:[t.jsxs(ke,{value:"tools",variant:"underline",className:"gap-2",children:[t.jsx(Le,{size:16}),"Tools"]}),t.jsxs(ke,{value:"resources",variant:"underline",className:"gap-2",children:[t.jsx(he,{size:16}),"Resources"]}),t.jsxs(ke,{value:"prompts",variant:"underline",className:"gap-2",children:[t.jsx(ze,{size:16}),"Prompts"]})]}),t.jsx(we,{value:"tools",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:Ie("Tools not supported by this server"),children:t.jsx(N.Suspense,{fallback:t.jsx(Te,{}),children:t.jsx(Cs,{connectionId:a.selectedId,selections:a.selectedId&&f[a.selectedId]?f[a.selectedId].tools:[],onToggle:(b,k)=>a.selectedId&&R(a.selectedId,b,k),onToggleAll:()=>a.selectedId&&H(a.selectedId)})})})}),t.jsx(we,{value:"resources",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:Ie("Resources not supported by this server"),children:t.jsx(N.Suspense,{fallback:t.jsx(Te,{}),children:t.jsx(_s,{connectionId:a.selectedId,selections:a.selectedId&&f[a.selectedId]?f[a.selectedId].resources:[],onToggle:(b,k)=>a.selectedId&&$(a.selectedId,b,k),onToggleAll:()=>a.selectedId&&be(a.selectedId)})})})}),t.jsx(we,{value:"prompts",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:Ie("Prompts not supported by this server"),children:t.jsx(N.Suspense,{fallback:t.jsx(Te,{}),children:t.jsx(ws,{connectionId:a.selectedId,selections:a.selectedId&&f[a.selectedId]?f[a.selectedId].prompts:[],onToggle:(b,k)=>a.selectedId&&z(a.selectedId,b,k),onToggleAll:()=>a.selectedId&&ve(a.selectedId)})})})})]})})]}):t.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:"Select a connection to view its tools, resources, and prompts"})}),e[56]=v,e[57]=a.activeTab,e[58]=a.selectedId,e[59]=f,e[60]=ve,e[61]=be,e[62]=H,e[63]=z,e[64]=$,e[65]=R,e[66]=ee):ee=e[66];let te;e[67]!==X||e[68]!==ee?(te=t.jsxs("div",{className:"flex-1 flex overflow-hidden min-h-0 flex-col sm:flex-row",children:[X,ee]}),e[67]=X,e[68]=ee,e[69]=te):te=e[69];let se;e[70]!==Z?(se=t.jsx(Zt,{className:"px-6 py-4 border-t border-border shrink-0",children:t.jsx(B,{variant:"outline",onClick:()=>Z(!1),children:"Done"})}),e[70]=Z,e[71]=se):se=e[71];let le;e[72]!==te||e[73]!==se?(le=t.jsxs(Je,{className:"sm:max-w-5xl h-[80vh] max-h-[80vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[te,se]}),e[72]=te,e[73]=se,e[74]=le):le=e[74];let pe;return e[75]!==Z||e[76]!==s||e[77]!==le?(pe=t.jsx(Qe,{open:s,onOpenChange:Z,children:le}),e[75]=Z,e[76]=s,e[77]=le,e[78]=pe):pe=e[78],pe}function Ps(l){const e=_.c(8);let s,o;e[0]!==l?({className:s,...o}=l,e[0]=l,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=U("grid gap-3",s),e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==o||e[6]!==n?(i=t.jsx(ls,{"data-slot":"radio-group",className:n,...o}),e[5]=o,e[6]=n,e[7]=i):i=e[7],i}function Ae(l){const e=_.c(9);let s,o;e[0]!==l?({className:s,...o}=l,e[0]=l,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=U("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",s),e[3]=s,e[4]=n):n=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(os,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:t.jsx(st,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})}),e[5]=i):i=e[5];let d;return e[6]!==o||e[7]!==n?(d=t.jsx(ss,{"data-slot":"radio-group-item",className:n,...o,children:i}),e[6]=o,e[7]=n,e[8]=d):d=e[8],d}function Ms(l){const s=new TextEncoder().encode(l),o=Array.from(s,n=>String.fromCharCode(n)).join("");return btoa(o)}function Rs(l){const e=_.c(10),{url:s}=l,[o,n]=N.useState(!1);let i;e[0]!==s?(i=async()=>{await navigator.clipboard.writeText(s),n(!0),Re.success("Agent URL copied to clipboard"),setTimeout(()=>n(!1),2e3)},e[0]=s,e[1]=i):i=e[1];const d=i;let r;e[2]!==o?(r=o?t.jsx(et,{size:20,className:"text-green-600"}):t.jsx(is,{size:20}),e[2]=o,e[3]=r):r=e[3];const c=o?"Copied!":"Copy URL";let u;e[4]!==c?(u=t.jsx("span",{className:"text-xs font-medium",children:c}),e[4]=c,e[5]=u):u=e[5];let m;return e[6]!==d||e[7]!==r||e[8]!==u?(m=t.jsxs(B,{type:"button",variant:"outline",onClick:d,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[r,u]}),e[6]=d,e[7]=r,e[8]=u,e[9]=m):m=e[9],m}function $s(l){const e=_.c(7),{url:s,serverName:o}=l;let n;e[0]!==o||e[1]!==s?(n=()=>{const u=Xe(o),a=Ms(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),p=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(u)}&config=${encodeURIComponent(a)}`;window.open(p,"_blank"),Re.success("Opening Cursor...")},e[0]=o,e[1]=s,e[2]=n):n=e[2];const i=n;let d,r;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("img",{src:"/logos/cursor.svg",alt:"Cursor",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(11%) sepia(8%) saturate(785%) hue-rotate(1deg) brightness(95%) contrast(89%)"}}),r=t.jsx("span",{className:"text-xs font-medium",children:"Install on Cursor"}),e[3]=d,e[4]=r):(d=e[3],r=e[4]);let c;return e[5]!==i?(c=t.jsxs(B,{type:"button",variant:"outline",onClick:i,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[d,r]}),e[5]=i,e[6]=c):c=e[6],c}function zs(l){const e=_.c(11),{url:s,serverName:o}=l,[n,i]=N.useState(!1);let d;e[0]!==o||e[1]!==s?(d=async()=>{const p=Xe(o),h=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),f=`claude mcp add-json "${p}" '${h.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(f),i(!0),Re.success("Claude Code command copied to clipboard"),setTimeout(()=>i(!1),2e3)},e[0]=o,e[1]=s,e[2]=d):d=e[2];const r=d;let c;e[3]!==n?(c=n?t.jsx(et,{size:20,className:"text-green-600"}):t.jsx("img",{src:"/logos/Claude Code.svg",alt:"Claude Code",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(55%) sepia(31%) saturate(1264%) hue-rotate(331deg) brightness(92%) contrast(86%)"}}),e[3]=n,e[4]=c):c=e[4];const u=n?"Copied!":"Install on Claude";let m;e[5]!==u?(m=t.jsx("span",{className:"text-xs font-medium",children:u}),e[5]=u,e[6]=m):m=e[6];let a;return e[7]!==r||e[8]!==c||e[9]!==m?(a=t.jsxs(B,{type:"button",variant:"outline",onClick:r,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[c,m]}),e[7]=r,e[8]=c,e[9]=m,e[10]=a):a=e[10],a}function Ls(l){const e=_.c(40),{open:s,onOpenChange:o,virtualMcp:n}=l,[i,d]=N.useState("code_execution");let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=H=>{(H==="passthrough"||H==="smart_tool_selection"||H==="code_execution")&&d(H)},e[0]=r):r=e[0];const c=r;let u;e[1]!==i||e[2]!==n.id?(u=new URL(`/mcp/virtual-mcp/${n.id}`,window.location.origin),u.searchParams.set("mode",i),e[1]=i,e[2]=n.id,e[3]=u):u=e[3];let m;e[4]!==n.id||e[5]!==n.title?(m=n.title||`agent-${n.id?.slice(0,8)??"default"}`,e[4]=n.id,e[5]=n.title,e[6]=m):m=e[6];const a=m;let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(Jt,{children:t.jsx(Qt,{children:"Share Agent"})}),e[7]=p):p=e[7];let g;e[8]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[8]=g):g=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(tt,{className:"size-5 text-muted-foreground"})}),e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Direct access"}),e[10]=f):f=e[10];let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(K,{asChild:!0,children:t.jsx(_e,{className:"size-3.5 text-muted-foreground"})}),e[11]=C):C=e[11];let v;e[12]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsxs("label",{htmlFor:"mode-passthrough",className:"flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[h,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[f,t.jsx(ye,{children:t.jsxs(q,{children:[C,t.jsx(Y,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"All tools are exposed directly via tools/list. Best for small tool surfaces with deterministic behavior."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Best for small teams or when you need predictable behavior"})]}),t.jsx(Ae,{id:"mode-passthrough",value:"passthrough"})]}),e[12]=v):v=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(ot,{className:"size-5 text-muted-foreground"})}),e[13]=x):x=e[13];let w;e[14]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart discovery"}),e[14]=w):w=e[14];let S;e[15]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(K,{asChild:!0,children:t.jsx(_e,{className:"size-3.5 text-muted-foreground"})}),e[15]=S):S=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsxs("label",{htmlFor:"mode-smart",className:"flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[x,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[w,t.jsx(ye,{children:t.jsxs(q,{children:[S,t.jsx(Y,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"Uses meta-tools (GATEWAY_SEARCH_TOOLS, GATEWAY_DESCRIBE_TOOLS, GATEWAY_CALL_TOOL) to keep the tool list small and request details on demand."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Ideal for large teams with many tools - AI finds what it needs"})]}),t.jsx(Ae,{id:"mode-smart",value:"smart_tool_selection"})]}),e[16]=y):y=e[16];let L;e[17]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(ns,{className:"size-5 text-muted-foreground"})}),e[17]=L):L=e[17];let T;e[18]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart execution"}),e[18]=T):T=e[18];let V;e[19]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(K,{asChild:!0,children:t.jsx(_e,{className:"size-3.5 text-muted-foreground"})}),e[19]=V):V=e[19];let I;e[20]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsxs("label",{htmlFor:"mode-code",className:"relative flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[L,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[T,t.jsx(ye,{children:t.jsxs(q,{children:[V,t.jsx(Y,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"Exposes meta-tools for discovery + sandboxed execution (GATEWAY_RUN_CODE). Reduces overhead on large surfaces by shifting work into a controlled runtime."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Maximum flexibility - AI can write code to orchestrate tools"})]}),t.jsx(Ae,{id:"mode-code",value:"code_execution"}),t.jsx($e,{variant:"outline",className:"absolute -top-2.5 left-1/2 -translate-x-1/2 bg-background z-10",children:"Recommended"})]}),e[20]=I):I=e[20];let D;e[21]!==i?(D=t.jsxs("div",{className:"flex flex-col gap-3",children:[g,t.jsxs(Ps,{value:i,onValueChange:c,className:"flex flex-col gap-4.5",children:[v,y,I]})]}),e[21]=i,e[22]=D):D=e[22];let R;e[23]!==u.href?(R=t.jsx(Rs,{url:u.href}),e[23]=u.href,e[24]=R):R=e[24];let P,$;e[25]!==a||e[26]!==u.href?(P=t.jsx($s,{url:u.href,serverName:a}),$=t.jsx(zs,{url:u.href,serverName:a}),e[25]=a,e[26]=u.href,e[27]=P,e[28]=$):(P=e[27],$=e[28]);let M;e[29]!==R||e[30]!==P||e[31]!==$?(M=t.jsx("div",{className:"flex flex-col gap-3 pt-2",children:t.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[R,P,$]})}),e[29]=R,e[30]=P,e[31]=$,e[32]=M):M=e[32];let z;e[33]!==D||e[34]!==M?(z=t.jsxs(Je,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[p,t.jsxs("div",{className:"flex flex-col gap-6",children:[D,M]})]}),e[33]=D,e[34]=M,e[35]=z):z=e[35];let F;return e[36]!==o||e[37]!==s||e[38]!==z?(F=t.jsx(Qe,{open:s,onOpenChange:o,children:z}),e[36]=o,e[37]=s,e[38]=z,e[39]=F):F=e[39],F}const Vs=as.pick({title:!0,description:!0,status:!0,metadata:!0,connections:!0}).extend({title:j().min(1,"Name is required").max(255)});function Fs(l,e){switch(e.type){case"SET_SHARE_DIALOG_OPEN":return{...l,shareDialogOpen:e.payload};case"SET_CONNECTION_DIALOG_OPEN":return{...l,connectionDialogOpen:e.payload};case"SET_EDITING_CONNECTION_ID":return{...l,editingConnectionId:e.payload};case"SET_SKILLS_OPEN":return{...l,skillsOpen:e.payload};default:return l}}function Oe(l){const e=_.c(3),{connection_id:s}=l,o=Ye(s);if(!o)return null;let n;return e[0]!==o.icon||e[1]!==o.title?(n=t.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:t.jsx(ie,{icon:o.icon,name:o.title,size:"xs"})}),e[0]=o.icon,e[1]=o.title,e[2]=n):n=e[2],n}Oe.Fallback=function(){return t.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:t.jsx("div",{className:"size-5 rounded bg-muted animate-pulse"})})};function De(l){const e=_.c(27),{connection_id:s,selected_tools:o,selected_resources:n,selected_prompts:i,onClick:d}=l,r=Ye(s);if(!r)return null;let c;e[0]!==o?(c=Se(o),e[0]=o,e[1]=c):c=e[1];const u=c;let m;e[2]!==n?(m=Se(n),e[2]=n,e[3]=m):m=e[3];const a=m;let p;e[4]!==i?(p=Se(i),e[4]=i,e[5]=p):p=e[5];const g=p;let h;e[6]!==r.icon||e[7]!==r.title?(h=t.jsx(ie,{icon:r.icon,name:r.title,size:"xs"}),e[6]=r.icon,e[7]=r.title,e[8]=h):h=e[8];let f;e[9]!==r.title?(f=t.jsx("p",{className:"flex-1 text-sm font-normal text-foreground truncate",children:r.title}),e[9]=r.title,e[10]=f):f=e[10];let C;e[11]!==u?(C=u!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:u==="all"?"all":u}),t.jsx(Le,{size:12})]}),e[11]=u,e[12]=C):C=e[12];let v;e[13]!==a?(v=a!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:a==="all"?"all":a}),t.jsx(he,{size:12})]}),e[13]=a,e[14]=v):v=e[14];let x;e[15]!==g?(x=g!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:g==="all"?"all":g}),t.jsx(ze,{size:12})]}),e[15]=g,e[16]=x):x=e[16];let w;e[17]!==C||e[18]!==v||e[19]!==x?(w=t.jsxs($e,{variant:"secondary",className:"bg-muted h-5 gap-2 px-1.5 py-1 flex items-center",children:[C,v,x]}),e[17]=C,e[18]=v,e[19]=x,e[20]=w):w=e[20];let S;e[21]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(Ze,{size:16,className:"text-muted-foreground shrink-0"}),e[21]=S):S=e[21];let y;return e[22]!==d||e[23]!==h||e[24]!==f||e[25]!==w?(y=t.jsxs("div",{onClick:d,className:"w-full h-12 flex items-center gap-2 px-3 rounded-lg border border-border hover:bg-accent/50 transition-colors cursor-pointer",children:[h,f,w,S]}),e[22]=d,e[23]=h,e[24]=f,e[25]=w,e[26]=y):y=e[26],y}De.Fallback=function(){return t.jsxs("div",{className:"w-full h-12 flex items-center gap-2 px-3 rounded-lg border border-border",children:[t.jsx("div",{className:"size-5 rounded bg-muted animate-pulse shrink-0"}),t.jsx("div",{className:"flex-1 h-4 rounded bg-muted animate-pulse"}),t.jsxs($e,{variant:"secondary",className:"bg-muted h-5 gap-2 px-1.5 py-1 flex items-center",children:[t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(Le,{size:12})]}),t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(he,{size:12})]}),t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(ze,{size:12})]})]}),t.jsx(Ze,{size:16,className:"text-muted-foreground shrink-0"})]})};function Bs({virtualMcp:l}){const s=wt().location.href,o=St(),n=Bt(),i=Tt({resolver:It(Vs),defaultValues:l}),d=i.watch("connections"),[r,c]=N.useReducer(Fs,{shareDialogOpen:!1,connectionDialogOpen:!1,editingConnectionId:null,skillsOpen:!1}),[,u]=$t(),{setVirtualMcpId:m}=At();N.useEffect(()=>{u(!0),m(l.id)},[l.id]);const a=()=>{m(l.id),u(!0)},p=i.formState.isDirty,g=async()=>{const x=i.getValues(),w=await n.update.mutateAsync({id:l.id,data:x});i.reset(w)},h=()=>{i.reset(l)},f=()=>{c({type:"SET_EDITING_CONNECTION_ID",payload:null}),c({type:"SET_CONNECTION_DIALOG_OPEN",payload:!0})},C=x=>{c({type:"SET_EDITING_CONNECTION_ID",payload:x}),c({type:"SET_CONNECTION_DIALOG_OPEN",payload:!0})},v=n.update.isPending;return t.jsxs(Kt,{onBack:()=>o.history.back(),children:[t.jsxs(qt,{children:[t.jsxs(q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(B,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:!p||v,onClick:h,"aria-label":"Cancel",children:t.jsx(Ut,{size:14})})})}),t.jsx(Y,{side:"bottom",children:"Cancel"})]}),t.jsxs(q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(B,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:!p||v,onClick:g,"aria-label":"Save",children:v?t.jsx(Ve,{size:14,className:"animate-spin"}):t.jsx(nt,{size:14})})})}),t.jsx(Y,{side:"bottom",children:"Save"})]}),t.jsxs(q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsxs(B,{variant:"outline",size:"sm",className:"h-7 gap-1.5 px-2 border border-input",onClick:a,"aria-label":"Test Agent",children:[t.jsx(Ht,{size:14}),"Test Agent"]})})}),t.jsx(Y,{side:"bottom",children:"Test this agent in chat"})]}),t.jsxs(q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(B,{variant:"outline",size:"icon",className:"size-7 border border-input",onClick:()=>c({type:"SET_SHARE_DIALOG_OPEN",payload:!0}),"aria-label":"Share",children:t.jsx(Wt,{size:14})})})}),t.jsx(Y,{side:"bottom",children:"Share"})]}),t.jsx(Rt,{title:l.title,url:s,icon:l.icon??"cpu_chip"})]}),t.jsx("div",{className:"flex h-full w-full bg-background overflow-auto",children:t.jsxs("div",{className:"flex flex-col w-full",children:[t.jsxs("div",{className:"flex items-start justify-between gap-4 p-6 shrink-0",children:[t.jsxs("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[t.jsx(ie,{icon:l.icon,name:i.watch("title")||"Agent",size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(lt,{})}),t.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[t.jsx(He,{...i.register("title"),className:"h-auto py-0.5 text-lg! font-medium leading-7 px-1 -mx-1 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Agent Name"}),t.jsx(He,{...i.register("description"),className:"h-auto py-0.5 text-base text-muted-foreground leading-6 px-1 -mx-1 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Add a description..."})]})]}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(zt,{checked:i.watch("status")==="active",onCheckedChange:x=>i.setValue("status",x?"active":"inactive",{shouldDirty:!0})})})]}),t.jsxs(Ot,{open:r.skillsOpen,onOpenChange:x=>c({type:"SET_SKILLS_OPEN",payload:x}),className:"border-t border-border shrink-0 max-h-[400px] overflow-hidden flex flex-col",children:[d.length===0?t.jsxs("button",{type:"button",onClick:f,className:"w-full flex items-center justify-between px-6 py-4 hover:bg-muted/50 transition-colors cursor-pointer",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Skills"}),t.jsxs("div",{className:"h-7 px-2 inline-flex items-center justify-center gap-1 rounded-md text-sm text-muted-foreground",children:[t.jsx(We,{size:14}),"Add"]})]}):t.jsx(Dt,{asChild:!0,children:t.jsxs("button",{type:"button",className:"w-full flex items-center justify-between px-6 py-4 hover:bg-muted/50 transition-colors cursor-pointer",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Skills"}),t.jsxs("div",{className:"flex items-center",children:[t.jsx("div",{className:"flex items-center -space-x-2 ease-(--ease-out-expo)",style:{width:r.skillsOpen?0:"auto",marginRight:r.skillsOpen?0:4,opacity:r.skillsOpen?0:1,pointerEvents:r.skillsOpen?"none":"auto",transitionProperty:"all",transitionDuration:r.skillsOpen?"0ms":"200ms"},children:d.slice(0,4).map(x=>t.jsx(N.Suspense,{fallback:t.jsx(Oe.Fallback,{}),children:t.jsx(Oe,{connection_id:x.connection_id})},x.connection_id))}),t.jsxs("div",{role:"button",tabIndex:0,className:"h-7 inline-flex items-center justify-center rounded-md text-sm text-muted-foreground overflow-hidden transition-all duration-200 ease-(--ease-out-expo) hover:bg-accent hover:text-accent-foreground",style:{width:r.skillsOpen?"auto":28,paddingLeft:r.skillsOpen?8:0,paddingRight:r.skillsOpen?8:0,gap:r.skillsOpen?4:0},onPointerDown:x=>{x.stopPropagation()},onClick:x=>{x.stopPropagation(),x.preventDefault(),f()},onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.stopPropagation(),x.preventDefault(),f())},children:[t.jsx(We,{size:14,className:"shrink-0"}),t.jsx("span",{className:"overflow-hidden whitespace-nowrap transition-all duration-200 ease-(--ease-out-expo)",style:{width:r.skillsOpen?"auto":0,opacity:r.skillsOpen?1:0},children:"Add"})]}),t.jsx("div",{className:"h-7 inline-flex items-center justify-center overflow-hidden transition-all duration-200 ease-(--ease-out-expo)",style:{width:r.skillsOpen?28:0,opacity:r.skillsOpen?1:0},children:t.jsx(Gt,{size:16,className:"shrink-0"})})]})]})}),t.jsx("div",{className:"grid overflow-hidden transition-[grid-template-rows] duration-200 ease-(--ease-out-expo)",style:{gridTemplateRows:r.skillsOpen?"1fr":"0fr"},children:t.jsx("div",{className:"min-h-0 overflow-hidden",children:t.jsx("div",{className:"overflow-y-auto max-h-[300px] mask-[linear-gradient(to_bottom,black_calc(100%-40px),transparent_100%)]",children:t.jsx("div",{className:"flex flex-col gap-2 px-6 pb-4 pt-2",children:d.map(x=>t.jsx(N.Suspense,{fallback:t.jsx(De.Fallback,{}),children:t.jsx(De,{connection_id:x.connection_id,selected_tools:x.selected_tools,selected_resources:x.selected_resources,selected_prompts:x.selected_prompts,onClick:()=>C(x.connection_id)})},x.connection_id))})})})})]}),t.jsxs("div",{className:"flex flex-col flex-1 p-6 border-t border-border overflow-auto",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground mb-2",children:"Instructions"}),t.jsx(Et,{name:"metadata.instructions",control:i.control,render:({field:x})=>t.jsx(Lt,{...x,value:x.value??"",placeholder:"Write instructions here...",className:"min-h-[200px] resize-none text-sm placeholder:text-muted-foreground/50 leading-relaxed border-0 rounded-none shadow-none px-0 focus-visible:ring-0 focus-visible:ring-offset-0 focus:border-0 bg-transparent"})})]})]})}),t.jsx(Ds,{open:r.connectionDialogOpen,onOpenChange:x=>c({type:"SET_CONNECTION_DIALOG_OPEN",payload:x}),selectedId:r.editingConnectionId,form:i,connections:d}),t.jsx(Ls,{open:r.shareDialogOpen,onOpenChange:x=>c({type:"SET_SHARE_DIALOG_OPEN",payload:x}),virtualMcp:l})]})}function Gs(){const l=_.c(6),e=_t();let s;l[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org/agents/$agentId"},l[0]=s):s=l[0];const o=kt(s),{org:n,agentId:i}=o,d=Ft(i);if(!d){let c;return l[1]!==e||l[2]!==n?(c=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Pt,{title:"Agent not found",description:"This Agent may have been deleted or you may not have access.",actions:t.jsx(B,{variant:"outline",onClick:()=>e({to:"/$org/agents",params:{org:n}}),children:"Back to agents"})})}),l[1]=e,l[2]=n,l[3]=c):c=l[3],c}let r;return l[4]!==d?(r=t.jsx(Bs,{virtualMcp:d}),l[4]=d,l[5]=r):r=l[5],r}function Fl(){const l=_.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(fe,{children:t.jsx(N.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(Ve,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Gs,{})})}),l[0]=e):e=l[0],e}export{Fl as default};