@decocms/mesh 2.28.1 → 2.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/dist/client/assets/{AlertCircle-EIOycPU_.js → AlertCircle-3Pxg2P_i.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-D8mOcbFs.js → ArrowLeft-UBssGQ3_.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-BKGQ9QQQ.js → ArrowUp-MnVdQxWX.js} +1 -1
  4. package/dist/client/assets/{Check-CLWAJZPj.js → Check-yoiyrqoL.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-D8aa7cAP.js → ChevronDown-BlKqZ66z.js} +1 -1
  6. package/dist/client/assets/{Code01-DEJKI1Wc.js → Code01-RmXixa6y.js} +1 -1
  7. package/dist/client/assets/{Copy01-BO1kpcoa.js → Copy01-BLLmXBc5.js} +1 -1
  8. package/dist/client/assets/{DotsHorizontal-ByJ6m6vJ.js → DotsHorizontal-BMMtv2wO.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-Bvvur7wy.js → DotsVertical-PBjWbzwJ.js} +1 -1
  10. package/dist/client/assets/{Download01-BYa76rl0.js → Download01-DF_DLE8P.js} +1 -1
  11. package/dist/client/assets/{Edit01-COa4GltG.js → Edit01-DjKKkpJx.js} +1 -1
  12. package/dist/client/assets/{File06-D2L0trKf.js → File06-BvoVIa2F.js} +1 -1
  13. package/dist/client/assets/{FilterLines-pZ4TagLQ.js → FilterLines-ysuOZUy8.js} +1 -1
  14. package/dist/client/assets/{FlipBackward-Bl3F0RS9.js → FlipBackward-DwAzBzjC.js} +1 -1
  15. package/dist/client/assets/{GitBranch01-DYJKpt3H.js → GitBranch01-RTsu2Pt_.js} +1 -1
  16. package/dist/client/assets/{Grid01-Dk81yuDv.js → Grid01-CNEf3UoL.js} +1 -1
  17. package/dist/client/assets/{Home02-BN6uJNy4.js → Home02-DsDxDk7R.js} +1 -1
  18. package/dist/client/assets/{Image01-vXr1ZOOe.js → Image01-B3DlQYAI.js} +1 -1
  19. package/dist/client/assets/{Inbox01-kisLOq-f.js → Inbox01-CuXfbhAN.js} +1 -1
  20. package/dist/client/assets/{InfoCircle-CjgtmxjG.js → InfoCircle-BCsSecsp.js} +1 -1
  21. package/dist/client/assets/{Key01-a1--VPe-.js → Key01-B3Ctc8kf.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-BO02xr5L.js → LinkExternal01-BNdqcBWP.js} +1 -1
  23. package/dist/client/assets/{List-Bx7w2dTu.js → List-DFdv7PYp.js} +1 -1
  24. package/dist/client/assets/{Loading01-C5B-ooYi.js → Loading01-BkVbIYYs.js} +1 -1
  25. package/dist/client/assets/{Lock01-BYMrLfLB.js → Lock01-Cza9iYC8.js} +1 -1
  26. package/dist/client/assets/{Play-8aV_HhRz.js → Play-DzPpZmgI.js} +1 -1
  27. package/dist/client/assets/{Plus-BHM6bjy0.js → Plus-qNfisIQV.js} +1 -1
  28. package/dist/client/assets/{SearchMd-0lNCZZZG.js → SearchMd-DEod-sVt.js} +1 -1
  29. package/dist/client/assets/{Terminal-BykkjhsL.js → Terminal-DX8xM5mx.js} +1 -1
  30. package/dist/client/assets/{Trash01-lk0vkKg5.js → Trash01-C_UVJByK.js} +1 -1
  31. package/dist/client/assets/{Upload01-Dw3JKVl6.js → Upload01-BNJScnq4.js} +1 -1
  32. package/dist/client/assets/{X-tnSHuJ8s.js → X-DRPZjxg9.js} +1 -1
  33. package/dist/client/assets/{XClose-BoX2F8A7.js → XClose-C6hd5X95.js} +1 -1
  34. package/dist/client/assets/{agent-detail-BjmBEpxG.js → agent-detail-DNkb-49S.js} +1 -1
  35. package/dist/client/assets/{agents-sVdzDgQ7.js → agents-BTk5hI-B.js} +1 -1
  36. package/dist/client/assets/{alert-dialog-N05icYLS.js → alert-dialog-z1mADwEG.js} +1 -1
  37. package/dist/client/assets/{auth-catchall-DpGzhHBp.js → auth-catchall-CMnpQH0c.js} +1 -1
  38. package/dist/client/assets/{avatar-Bfd9jiY4.js → avatar-CyD4y-Hs.js} +1 -1
  39. package/dist/client/assets/{badge-93zNB6CU.js → badge-BI_bD2v6.js} +1 -1
  40. package/dist/client/assets/{binder-D_-Weyed.js → binder-Cl6WsAkI.js} +1 -1
  41. package/dist/client/assets/{button-Cy99o_Nr.js → button-BjyFV51s.js} +1 -1
  42. package/dist/client/assets/{card-DKMUMGoi.js → card-Bqtkl7sF.js} +1 -1
  43. package/dist/client/assets/{checkbox-89R7qtED.js → checkbox-i6HycpjB.js} +1 -1
  44. package/dist/client/assets/{collection-detail-B5uNPED8.js → collection-detail-BN9YxuXP.js} +1 -1
  45. package/dist/client/assets/{collection-display-button-Cw-aPj8d.js → collection-display-button-DbY33BY1.js} +1 -1
  46. package/dist/client/assets/{collection-header-BO1RAhXE.js → collection-header-Bqiij5-y.js} +1 -1
  47. package/dist/client/assets/{collection-page-D6u1h5CG.js → collection-page-CK2pCBvw.js} +1 -1
  48. package/dist/client/assets/{collection-search-B2T9aTUG.js → collection-search-CDy1ALDw.js} +1 -1
  49. package/dist/client/assets/{collection-tab-D3CIcU2u.js → collection-tab-BldVah7T.js} +1 -1
  50. package/dist/client/assets/{collection-table-wrapper-Cj2Z05Vz.js → collection-table-wrapper-m7An0eu5.js} +1 -1
  51. package/dist/client/assets/{connection-k0ZpINRn.js → connection-BsqnB2FJ.js} +1 -1
  52. package/dist/client/assets/{connection-card-BOX4VMQP.js → connection-card-D5p4qN7C.js} +1 -1
  53. package/dist/client/assets/{connection-detail-BuHnjY7X.js → connection-detail-KMMxIPtX.js} +1 -1
  54. package/dist/client/assets/{connections-CbNkPCTw.js → connections-BplBxopq.js} +1 -1
  55. package/dist/client/assets/constants-Cy3ipE35.js +1 -0
  56. package/dist/client/assets/{create-organization-dialog-q2z9btBC.js → create-organization-dialog-De9L3SMV.js} +1 -1
  57. package/dist/client/assets/{dialog-DZfJwUtV.js → dialog-BNsW_zrz.js} +1 -1
  58. package/dist/client/assets/{dropdown-menu-C_fFa6XQ.js → dropdown-menu-CHWSOD8_.js} +1 -1
  59. package/dist/client/assets/{dynamic-plugin-layout-CS57UHBr.js → dynamic-plugin-layout-BdNV8xr5.js} +1 -1
  60. package/dist/client/assets/{empty-state-CSpGZ0zM.js → empty-state-C5i2xL9Y.js} +1 -1
  61. package/dist/client/assets/{empty-state-cHW3B9GZ.js → empty-state-DyuI9nxj.js} +1 -1
  62. package/dist/client/assets/{env-vars-editor-DhK3BhBf.js → env-vars-editor-CV9yJnb-.js} +1 -1
  63. package/dist/client/assets/{error-boundary-D8_vhZ9J.js → error-boundary-DAH5w09n.js} +1 -1
  64. package/dist/client/assets/{extract-connection-data-FQWeWdu7.js → extract-connection-data-BwfQHbRv.js} +1 -1
  65. package/dist/client/assets/{file-browser-DwqXq15k.js → file-browser-DahftWvE.js} +2 -2
  66. package/dist/client/assets/{form-rTeLGao5.js → form-CpXA-_lk.js} +1 -1
  67. package/dist/client/assets/{grid-view-_YjowTBk.js → grid-view-wdDD9CmD.js} +1 -1
  68. package/dist/client/assets/{home-CkFyBGCV.js → home-CBA6ueFs.js} +1 -1
  69. package/dist/client/assets/{index-DQq1UaWT.js → index-Acn1-Gvl.js} +7 -7
  70. package/dist/client/assets/{index-BqNrC2MD.js → index-Bi6yHeuG.js} +1 -1
  71. package/dist/client/assets/{index-Der4WAhG.js → index-RkAiu7dw.js} +2 -2
  72. package/dist/client/assets/{index-DOi4GxKE.js → index-ipYvuB0t.js} +1 -1
  73. package/dist/client/assets/{index-BziAdRg9.js → index-mkoS7UEj.js} +1 -1
  74. package/dist/client/assets/{infiniteQueryObserver-CNz2ePzA.js → infiniteQueryObserver-DH6m7Sll.js} +1 -1
  75. package/dist/client/assets/{input-jdZhb1mP.js → input-DRcixE8Y.js} +1 -1
  76. package/dist/client/assets/{layout-CK5UnyR8.js → layout-BiNRh0l3.js} +1 -1
  77. package/dist/client/assets/{localstorage-keys-BisCN-1_.js → localstorage-keys-dTkn_1-n.js} +1 -1
  78. package/dist/client/assets/{login-BSVzYWMp.js → login-QUKgRhwS.js} +1 -1
  79. package/dist/client/assets/{mcp-oauth-zhF8wgYv.js → mcp-oauth-B-g9ojPu.js} +1 -1
  80. package/dist/client/assets/{mcp-server-card-BKTWpqu-.js → mcp-server-card-XwnUNNr9.js} +1 -1
  81. package/dist/client/assets/{mcp-server-detail-DuU5GLLt.js → mcp-server-detail-cPnmRiqN.js} +1 -1
  82. package/dist/client/assets/{members-Cj-d9pqr.js → members-Cei1ckuA.js} +1 -1
  83. package/dist/client/assets/{monaco-editor-C3so8JO0.js → monaco-editor-8ajNlMw5.js} +1 -1
  84. package/dist/client/assets/{monitoring-Dt0wQq4G.js → monitoring-BK7JN-tH.js} +1 -1
  85. package/dist/client/assets/{oauth-callback-XQ7fYw4Z.js → oauth-callback-DljX8KLG.js} +1 -1
  86. package/dist/client/assets/{page-C9nLgQb3.js → page-5AfD8I9m.js} +1 -1
  87. package/dist/client/assets/{page-31OFJlio.js → page-C0J8_JPM.js} +1 -1
  88. package/dist/client/assets/{pin-to-sidebar-button-CaIBFH4V.js → pin-to-sidebar-button-KizaOWag.js} +1 -1
  89. package/dist/client/assets/{plugin-empty-state-DpxaAFXD.js → plugin-empty-state-IozJJ6yY.js} +1 -1
  90. package/dist/client/assets/{plugin-header-uxh6Jn0g.js → plugin-header-Cjl2nXLB.js} +1 -1
  91. package/dist/client/assets/{plugins-KL3KK6VB.js → plugins-BC6u2kHV.js} +1 -1
  92. package/dist/client/assets/{popover-B1tHQLjm.js → popover-CRsqCTCD.js} +1 -1
  93. package/dist/client/assets/{project-context-provider-BJCgjK68.js → project-context-provider-CMPckjDL.js} +1 -1
  94. package/dist/client/assets/{registry-utils-DiFb8Rc6.js → registry-utils-4u_OxIPh.js} +1 -1
  95. package/dist/client/assets/{resizable-Dn7kfcY3.js → resizable-CwB-UcIk.js} +1 -1
  96. package/dist/client/assets/{resource-tabs-Crblm6E4.js → resource-tabs-Bok-aIug.js} +1 -1
  97. package/dist/client/assets/{schema-C-JYV9PO.js → schema-BG_5nil3.js} +1 -1
  98. package/dist/client/assets/{select-B6A3D0j-.js → select-De66oXlo.js} +1 -1
  99. package/dist/client/assets/{settings-8F1swdFM.js → settings-Dg0_jjfj.js} +1 -1
  100. package/dist/client/assets/{shell-layout-B9yhl54B.js → shell-layout-Cendnsq1.js} +1 -1
  101. package/dist/client/assets/{spinner-BbbeY1z3.js → spinner-B5BpFruc.js} +1 -1
  102. package/dist/client/assets/{switch-0F337IIu.js → switch-Dptn4iU8.js} +1 -1
  103. package/dist/client/assets/{textarea-C8EOZPu0.js → textarea-Cp2Q3idX.js} +1 -1
  104. package/dist/client/assets/{tool-set-selector-Bc1omQS6.js → tool-set-selector-BmmXkAMq.js} +1 -1
  105. package/dist/client/assets/{tools-list-BldSx2JE.js → tools-list-CWezcmVT.js} +1 -1
  106. package/dist/client/assets/{tooltip-DaXn6N6z.js → tooltip-D_6S8XJj.js} +1 -1
  107. package/dist/client/assets/{typewriter-title-wz473Jtw.js → typewriter-title-CJ3wXYvb.js} +1 -1
  108. package/dist/client/assets/{use-binding-BDCJHVVv.js → use-binding-CtNasu81.js} +1 -1
  109. package/dist/client/assets/{use-collections-q6OfA5kN.js → use-collections-B3q4szKJ.js} +1 -1
  110. package/dist/client/assets/{use-connection-Np7UKB9l.js → use-connection-B4LwqzAy.js} +1 -1
  111. package/dist/client/assets/{use-connection-resources-B8KxKnED.js → use-connection-resources-DhxK4nxY.js} +1 -1
  112. package/dist/client/assets/{use-create-virtual-mcp-CzY_Xp0e.js → use-create-virtual-mcp-BHiCN5B5.js} +1 -1
  113. package/dist/client/assets/{use-list-state-CTgR3vLm.js → use-list-state-v0o-iQLf.js} +1 -1
  114. package/dist/client/assets/{use-mcp-BqlKaipX.js → use-mcp-Zshi-uBD.js} +1 -1
  115. package/dist/client/assets/{use-members-DfqPaCW0.js → use-members-Ck3lla8J.js} +1 -1
  116. package/dist/client/assets/{use-mobile-DdbEmUPe.js → use-mobile-JMRj2bzL.js} +1 -1
  117. package/dist/client/assets/{use-organization-settings-BpG3cJCM.js → use-organization-settings-CbfCpvPO.js} +1 -1
  118. package/dist/client/assets/{use-tool-call-DN5_gqx2.js → use-tool-call-uKJah0MZ.js} +1 -1
  119. package/dist/client/assets/{use-virtual-mcp-system-prompt-CGljrQsK.js → use-virtual-mcp-system-prompt-BL6VfgiI.js} +1 -1
  120. package/dist/client/assets/{use-virtual-mcp-BYvDJkOz.js → use-virtual-mcp-zI75jpyP.js} +1 -1
  121. package/dist/client/assets/useInfiniteQuery-Bwi00IeS.js +1 -0
  122. package/dist/client/assets/{useMutation-aUPZde1e.js → useMutation-DiXSqFla.js} +1 -1
  123. package/dist/client/assets/useQuery-o2THkaxs.js +1 -0
  124. package/dist/client/assets/{value-DIJUHofB.js → value-BYci-qfm.js} +1 -1
  125. package/dist/client/assets/{view-mode-toggle-fGMaJ0TS.js → view-mode-toggle-C9TxrmrJ.js} +1 -1
  126. package/dist/client/assets/{workflow-DFPSrgWX.js → workflow-8HIYz4H7.js} +1 -1
  127. package/dist/client/index.html +1 -1
  128. package/dist/server/cli.js +56 -56
  129. package/dist/server/server.js +89 -89
  130. package/package.json +1 -1
  131. package/dist/client/assets/constants-roUJ8XGa.js +0 -1
  132. package/dist/client/assets/useInfiniteQuery-HXSMJDnZ.js +0 -1
  133. package/dist/client/assets/useQuery-ji9qJP4z.js +0 -1
@@ -1 +1 @@
1
- import{r}from"./index-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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}from"./index-Der4WAhG.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:"M3 9h13.5a4.5 4.5 0 1 1 0 9H12M3 9l4-4M3 9l4 4"}));i.displayName="FlipBackward";export{i};
1
+ import{r}from"./index-RkAiu7dw.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:"M3 9h13.5a4.5 4.5 0 1 1 0 9H12M3 9l4-4M3 9l4 4"}));i.displayName="FlipBackward";export{i};
@@ -1 +1 @@
1
- import{r}from"./index-Der4WAhG.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:"M3 3v10.2c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 18 6.12 18 7.8 18H15m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0ZM3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z"}));i.displayName="GitBranch01";export{i};
1
+ import{r}from"./index-RkAiu7dw.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:"M3 3v10.2c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 18 6.12 18 7.8 18H15m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0ZM3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z"}));i.displayName="GitBranch01";export{i};
@@ -1 +1 @@
1
- import{r as t}from"./index-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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 t}from"./index-Der4WAhG.js";const a=({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 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";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:"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"}));i.displayName="Play";export{i,a as n};
1
+ import{r as t}from"./index-RkAiu7dw.js";const a=({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 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";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:"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"}));i.displayName="Play";export{i,a as n};
@@ -1 +1 @@
1
- import{r}from"./index-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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-Der4WAhG.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-RkAiu7dw.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 S,_ as Ce,y as ae,I as D,z as _,c as P,j as t,f as Be,d as st,b as lt,k as ot,ad as nt,B as it,E as rt,t as Re}from"./index-Der4WAhG.js";import{I as ze,E as ct}from"./empty-state-CSpGZ0zM.js";import{E as Fe}from"./error-boundary-D8_vhZ9J.js";import{C as We}from"./checkbox-89R7qtED.js";import{c as Y,B as H}from"./button-Cy99o_Nr.js";import{i as at}from"./ArrowLeft-D8mOcbFs.js";import{u as He}from"./use-connection-Np7UKB9l.js";import{C as dt}from"./collection-search-B2T9aTUG.js";import{p as mt}from"./schema-C-JYV9PO.js";import{I as Ae}from"./input-jdZhb1mP.js";import{s as ut}from"./Plus-BHM6bjy0.js";import{i as ft}from"./X-tnSHuJ8s.js";import{P as ht}from"./pin-to-sidebar-button-CaIBFH4V.js";import{T as xt}from"./tool-set-selector-Bc1omQS6.js";import{b as pt,a as gt,i as bt}from"./use-virtual-mcp-BYvDJkOz.js";import{u as jt,a as vt}from"./use-connection-resources-B8KxKnED.js";import{u as St}from"./use-virtual-mcp-system-prompt-CGljrQsK.js";import{s as qe}from"./slugify-CEUa2lfQ.js";import{B as Ge}from"./badge-93zNB6CU.js";import{a as Ct,D as Nt,c as _t,d as yt}from"./dialog-DZfJwUtV.js";import{F as ve,a as wt,b as Ne,d as _e,f as ye,c as kt}from"./form-rTeLGao5.js";import{I as It,R as Mt,a as Tt}from"./index-DOi4GxKE.js";import{R as Pt}from"./resource-tabs-Crblm6E4.js";import{S as $t,a as Rt,b as zt,c as At,d as De}from"./select-B6A3D0j-.js";import{S as Vt}from"./switch-0F337IIu.js";import{T as Et}from"./textarea-C8EOZPu0.js";import{a as J,c as Q,b as K,T as X}from"./tooltip-DaXn6N6z.js";import{i as Ze}from"./Check-CLWAJZPj.js";import{i as Dt}from"./Code01-DEJKI1Wc.js";import{a as Lt}from"./Copy01-BO1kpcoa.js";import{i as Ot}from"./FlipBackward-Bl3F0RS9.js";import{i as Se}from"./InfoCircle-CjgtmxjG.js";import{i as $e}from"./Loading01-C5B-ooYi.js";import{a as Ut,V as Bt,b as Ft}from"./layout-CK5UnyR8.js";import"./connection-k0ZpINRn.js";import"./project-context-provider-BJCgjK68.js";import"./use-collections-q6OfA5kN.js";import"./useMutation-aUPZde1e.js";import"./SearchMd-0lNCZZZG.js";import"./use-organization-settings-BpG3cJCM.js";import"./localstorage-keys-BisCN-1_.js";import"./useQuery-ji9qJP4z.js";import"./ChevronDown-D8aa7cAP.js";const Ye=({size:l=24,color:e="currentColor",...s})=>S.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},S.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));Ye.displayName="ArrowsRight";const Je=({size:l=24,color:e="currentColor",...s})=>S.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},S.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"}));Je.displayName="Circle";const Qe=({size:l=24,color:e="currentColor",...s})=>S.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},S.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"}));Qe.displayName="Lightbulb02";const Ke=({size:l=24,color:e="currentColor",...s})=>S.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},S.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"}));Ke.displayName="Save01";const Xe=({size:l=24,color:e="currentColor",...s})=>S.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},S.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"}));Xe.displayName="Share07";const Ve=Ce(["inclusion","exclusion"]).describe("Tool selection mode: 'inclusion' = include selected (default), 'exclusion' = exclude selected"),Wt=ae({connection_id:_().describe("Connection ID"),selected_tools:D(_()).nullable().describe("Selected tool names. With 'inclusion' mode: null = all tools included. With 'exclusion' mode: null = entire connection excluded"),selected_resources:D(_()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. With 'inclusion' mode: null = all resources included."),selected_prompts:D(_()).nullable().describe("Selected prompt names. With 'inclusion' mode: null = all prompts included. With 'exclusion' mode: null = entire connection excluded.")}),Ht=ae({id:_().describe("Unique identifier for the virtual MCP"),title:_().describe("Human-readable name for the virtual MCP"),description:_().nullable().describe("Description of the virtual MCP"),icon:_().nullable().optional().describe("Icon URL for the virtual MCP"),created_at:_().describe("When the virtual MCP was created"),updated_at:_().describe("When the virtual MCP was last updated"),created_by:_().describe("User ID who created the virtual MCP"),updated_by:_().optional().describe("User ID who last updated the virtual MCP"),organization_id:_().describe("Organization ID this virtual MCP belongs to"),tool_selection_mode:Ve.describe("Tool selection mode: 'inclusion' = include selected, 'exclusion' = exclude selected"),status:Ce(["active","inactive"]).describe("Current status"),connections:D(Wt).describe("Connections with their selected tools (behavior depends on tool_selection_mode)")});ae({title:_().min(1).max(255).describe("Name for the virtual MCP"),description:_().nullable().optional().describe("Optional description"),tool_selection_mode:Ve.optional().default("inclusion").describe("Tool selection mode (defaults to 'inclusion')"),icon:_().nullable().optional().describe("Optional icon URL"),status:Ce(["active","inactive"]).optional().default("active").describe("Initial status"),connections:D(ae({connection_id:_().describe("Connection ID"),selected_tools:D(_()).nullable().optional().describe("Selected tool names (null/undefined = all tools or full exclusion)"),selected_resources:D(_()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources)"),selected_prompts:D(_()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts or full exclusion)")})).describe("Connections to include/exclude (can be empty for exclusion mode)")});ae({title:_().min(1).max(255).optional().describe("New name"),description:_().nullable().optional().describe("New description (null to clear)"),tool_selection_mode:Ve.optional().describe("New tool selection mode"),icon:_().nullable().optional().describe("New icon URL (null to clear)"),status:Ce(["active","inactive"]).optional().describe("New status"),connections:D(ae({connection_id:_().describe("Connection ID"),selected_tools:D(_()).nullable().optional().describe("Selected tool names (null/undefined = all tools or full exclusion)"),selected_resources:D(_()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources)"),selected_prompts:D(_()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts or full exclusion)")})).optional().describe("New connections (replaces existing)")});const qt=S.memo(function(e){const s=P.c(20),{connection:o,isSelected:n,hasItemsEnabled:i,activeItemsCount:r,totalItemsCount:c,onSelect:m,onToggle:a}=e,d=n?"bg-accent/50":"hover:bg-muted/50";let f;s[0]!==d?(f=Y("flex items-center gap-3 p-2 rounded-lg transition-colors will-change-auto",d),s[0]=d,s[1]=f):f=s[1];let u;s[2]!==o.icon||s[3]!==o.title?(u=t.jsx(ze,{icon:o.icon,name:o.title,size:"xs"}),s[2]=o.icon,s[3]=o.title,s[4]=u):u=s[4];let x;s[5]!==o.title?(x=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:o.title})}),s[5]=o.title,s[6]=x):x=s[6];let p;s[7]!==m||s[8]!==u||s[9]!==x?(p=t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:m,children:[u,x]}),s[7]=m,s[8]=u,s[9]=x,s[10]=p):p=s[10];let g;s[11]!==r||s[12]!==i||s[13]!==a||s[14]!==c?(g=c>0&&t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[r,"/",c]}),t.jsx(We,{checked:i,onCheckedChange:a,onClick:Zt})]}),s[11]=r,s[12]=i,s[13]=a,s[14]=c,s[15]=g):g=s[15];let v;return s[16]!==f||s[17]!==p||s[18]!==g?(v=t.jsxs("div",{className:f,children:[p,g]}),s[16]=f,s[17]=p,s[18]=g,s[19]=v):v=s[19],v}),Gt=S.memo(function(e){const s=P.c(18),{connectionId:o,item:n,isSelected:i,onToggle:r}=e,c=`item-${o}-${n.id}`,m=i?"text-foreground":"text-muted-foreground";let a;s[0]!==m?(a=Y("text-sm font-medium",m),s[0]=m,s[1]=a):a=s[1];let d;s[2]!==n.name||s[3]!==a?(d=t.jsx("div",{className:"flex items-center gap-2 mb-1",children:t.jsx("span",{className:a,children:n.name})}),s[2]=n.name,s[3]=a,s[4]=d):d=s[4];let f;s[5]!==n.description?(f=n.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:n.description}),s[5]=n.description,s[6]=f):f=s[6];let u;s[7]!==d||s[8]!==f?(u=t.jsxs("div",{className:"flex-1 min-w-0",children:[d,f]}),s[7]=d,s[8]=f,s[9]=u):u=s[9];const x=`item-${o}-${n.id}`;let p;s[10]!==i||s[11]!==r||s[12]!==x?(p=t.jsx("div",{className:"flex items-center shrink-0",children:t.jsx(We,{id:x,checked:i,onCheckedChange:r,onClick:Yt})}),s[10]=i,s[11]=r,s[12]=x,s[13]=p):p=s[13];let g;return s[14]!==c||s[15]!==u||s[16]!==p?(g=t.jsxs("label",{className:"flex items-center gap-3 p-3 rounded-lg hover:bg-muted/50 cursor-pointer group will-change-auto",htmlFor:c,children:[u,p]}),s[14]=c,s[15]=u,s[16]=p,s[17]=g):g=s[17],g});function et({itemSet:l,onItemSetChange:e,getItems:s,itemLabel:o,emptyItemsMessage:n,extraContent:i,excludeVirtualMcpId:r}){const[c,m]=S.useState(""),a=S.useDeferredValue(c),[d,f]=S.useState("all"),[u,x]=S.useState(!1),p=S.useRef(new Set(Object.keys(l))),g=He({searchTerm:a.trim()||void 0}),v=r?g.filter(h=>h.connection_type!=="VIRTUAL"?!0:mt(h.connection_url)!==r):g,b=p.current,y=[...b.values()].map(h=>v.find(N=>N.id===h)).filter(h=>h!==void 0),C=v.filter(h=>!b.has(h.id)),j=[...y,...C],k=h=>{const N=l[h];return N!==void 0&&N.length>0},w=j.filter(h=>{if(d==="all")return!0;const N=k(h.id);return d==="selected"?N:d==="unselected"?!N:!0}),[$,T]=S.useState(j[0]?.id??null),I=$?j.find(h=>h.id===$)??null:null,A=I?s(I):[],B=(h,N)=>l[h]?.includes(N)??!1,R=(h,N)=>{const F=l[h]??[],O=F.includes(N),q={...l};if(O){const G=F.filter(Z=>Z!==N);G.length===0?delete q[h]:q[h]=G}else q[h]=[...F,N];e(q)},V=h=>{const N=j.find(W=>W.id===h);if(!N)return;const F=s(N);if(F.length===0)return;const O=l[h]??[],q=F.map(W=>W.id),G=O.length>0&&q.every(W=>O.includes(W)),Z={...l};G?delete Z[h]:(Z[h]=q,T(h)),e(Z)},L=h=>{T(h),x(!0)},z=()=>{x(!1)};return t.jsxs("div",{className:"flex h-full",children:[t.jsxs("div",{className:Y("w-full md:w-80 border-r border-border flex flex-col",u&&"hidden md:flex"),children:[t.jsx(dt,{value:c,onChange:m,placeholder:"Search Connections..."}),t.jsxs("div",{className:"flex gap-1 p-2 border-b border-border",children:[t.jsx("button",{onClick:()=>f("all"),className:Y("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="all"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"All"}),t.jsx("button",{onClick:()=>f("selected"),className:Y("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="selected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Selected"}),t.jsx("button",{onClick:()=>f("unselected"),className:Y("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="unselected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Unselected"})]}),t.jsx("div",{className:"flex-1 overflow-auto",children:w.length===0?t.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:c?"No connections found":d==="selected"?"No servers selected":d==="unselected"?"No unselected servers":"No connections available"}):t.jsx("div",{className:"p-2 space-y-1",children:w.map(h=>{const F=s(h).length,O=l[h.id]?.length??0;return t.jsx(qt,{connection:h,isSelected:$===h.id,hasItemsEnabled:k(h.id),activeItemsCount:O,totalItemsCount:F,onSelect:()=>L(h.id),onToggle:()=>V(h.id)},h.id)})})})]}),t.jsx("div",{className:Y("flex-1 flex-col",u?"flex":"hidden md:flex"),children:I?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"md:hidden border-b border-border p-4 flex items-center gap-3",children:[t.jsx(H,{variant:"ghost",size:"sm",onClick:z,className:"h-8 w-8 p-0 shrink-0",children:t.jsx(at,{size:20})}),t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[t.jsx(ze,{icon:I.icon,name:I.title,size:"sm"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:I.title}),I.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:I.description})]})]})]}),i,t.jsx("div",{className:"flex-1 overflow-auto p-4",children:A.length===0?t.jsx("div",{className:"text-sm text-muted-foreground text-center py-8",children:n||`This connection has no ${o} available`}):t.jsx("div",{className:"space-y-2",children:A.map(h=>t.jsx(Gt,{connectionId:I.id,item:h,isSelected:B(I.id,h.id),onToggle:()=>R(I.id,h.id)},h.id))})})]}):t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:["Select a connection to view its ",o]})})})]})}function Zt(l){return l.stopPropagation()}function Yt(l){return l.stopPropagation()}function Jt(l){const e=P.c(7),{promptSet:s,onPromptSetChange:o,connectionPrompts:n,excludeVirtualMcpId:i}=l;let r;e[0]!==n?(r=a=>(n.get(a.id)??[]).map(Qt),e[0]=n,e[1]=r):r=e[1];const c=r;let m;return e[2]!==i||e[3]!==c||e[4]!==o||e[5]!==s?(m=t.jsx(et,{itemSet:s,onItemSetChange:o,getItems:c,itemLabel:"prompts",emptyItemsMessage:"This connection has no prompts available",excludeVirtualMcpId:i}),e[2]=i,e[3]=c,e[4]=o,e[5]=s,e[6]=m):m=e[6],m}function Qt(l){return{id:l.name,name:l.name,description:l.description}}function Kt(l){return l.includes("*")}function Xt(l){const e=P.c(27),{patterns:s,onAddPattern:o,onRemovePattern:n}=l,[i,r]=S.useState("");let c;e[0]!==i||e[1]!==o||e[2]!==s?(c=()=>{const u=i.trim();u&&!s.includes(u)&&(o(u),r(""))},e[0]=i,e[1]=o,e[2]=s,e[3]=c):c=e[3];const m=c;let a;e[4]!==m?(a=u=>{u.key==="Enter"&&(u.preventDefault(),m())},e[4]=m,e[5]=a):a=e[5];const d=a;let f;if(e[6]!==m||e[7]!==d||e[8]!==i||e[9]!==n||e[10]!==s){const u=s.filter(Kt);let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("code",{children:"*"}),e[12]=x):x=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsxs("div",{className:"text-xs text-muted-foreground",children:["Add URI patterns to match multiple resources. Use ",x," for single segment and ",t.jsx("code",{children:"**"})," for multiple segments."]}),e[13]=p):p=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=w=>r(w.target.value),e[14]=g):g=e[14];let v;e[15]!==d||e[16]!==i?(v=t.jsx(Ae,{value:i,onChange:g,onKeyDown:d,placeholder:"e.g., file:///**/*.ts or db://users/*",className:"flex-1 text-sm"}),e[15]=d,e[16]=i,e[17]=v):v=e[17];let b;e[18]!==i?(b=i.trim(),e[18]=i,e[19]=b):b=e[19];const y=!b;let C;e[20]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(ut,{size:16}),e[20]=C):C=e[20];let j;e[21]!==m||e[22]!==y?(j=t.jsx(H,{type:"button",variant:"outline",size:"sm",onClick:m,disabled:y,children:C}),e[21]=m,e[22]=y,e[23]=j):j=e[23];let k;e[24]!==j||e[25]!==v?(k=t.jsxs("div",{className:"flex gap-2",children:[v,j]}),e[24]=j,e[25]=v,e[26]=k):k=e[26],f=t.jsxs("div",{className:"border-b border-border p-4 space-y-3",children:[p,k,u.length>0&&t.jsx("div",{className:"flex flex-wrap gap-2",children:u.map(w=>t.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-muted rounded-md text-xs",children:[t.jsx("code",{className:"text-foreground",children:w}),t.jsx("button",{type:"button",onClick:()=>n(w),className:"text-muted-foreground hover:text-foreground",children:t.jsx(ft,{size:12})})]},w))})]}),e[6]=m,e[7]=d,e[8]=i,e[9]=n,e[10]=s,e[11]=f}else f=e[11];return f}function es(l){const e=P.c(24),{resourceSet:s,onResourceSetChange:o,connectionResources:n,excludeVirtualMcpId:i}=l,[r]=S.useState(null);let c;e[0]!==n?(c=j=>(n.get(j.id)??[]).map(ts),e[0]=n,e[1]=c):c=e[1];const m=c;let a;e[2]!==o||e[3]!==s?(a=(j,k)=>{const w=s[j]??[];w.includes(k)||o({...s,[j]:[...w,k]})},e[2]=o,e[3]=s,e[4]=a):a=e[4];const d=a;let f;e[5]!==o||e[6]!==s?(f=(j,k)=>{const $=(s[j]??[]).filter(T=>T!==k);if($.length===0){const T={...s};delete T[j],o(T)}else o({...s,[j]:$})},e[5]=o,e[6]=s,e[7]=f):f=e[7];const u=f;let x;e[8]!==o?(x=j=>{o(j)},e[8]=o,e[9]=x):x=e[9];const p=x;let g;e[10]!==s||e[11]!==r?(g=r?s[r]??[]:[],e[10]=s,e[11]=r,e[12]=g):g=e[12];const v=g;let b;e[13]!==d||e[14]!==u||e[15]!==r||e[16]!==v?(b=r?t.jsx(Xt,{patterns:v,onAddPattern:j=>d(r,j),onRemovePattern:j=>u(r,j)}):null,e[13]=d,e[14]=u,e[15]=r,e[16]=v,e[17]=b):b=e[17];const y=b;let C;return e[18]!==i||e[19]!==y||e[20]!==m||e[21]!==p||e[22]!==s?(C=t.jsx("div",{className:"h-full",children:t.jsx(et,{itemSet:s,onItemSetChange:p,getItems:m,itemLabel:"resources",emptyItemsMessage:"This connection has no resources available",extraContent:y,excludeVirtualMcpId:i})}),e[18]=i,e[19]=y,e[20]=m,e[21]=p,e[22]=s,e[23]=C):C=e[23],C}function ts(l){return{id:l.uri,name:l.name||l.uri,description:l.description||l.uri}}function ss(l){const e=P.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=Y("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(Mt,{"data-slot":"radio-group",className:n,...o}),e[5]=o,e[6]=n,e[7]=i):i=e[7],i}function Pe(l){const e=P.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=Y("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(Tt,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:t.jsx(Je,{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 r;return e[6]!==o||e[7]!==n?(r=t.jsx(It,{"data-slot":"radio-group-item",className:n,...o,children:i}),e[6]=o,e[7]=n,e[8]=r):r=e[8],r}function ls(l){const s=new TextEncoder().encode(l),o=Array.from(s,n=>String.fromCharCode(n)).join("");return btoa(o)}const os=Ht.pick({title:!0,description:!0,status:!0,tool_selection_mode:!0}).extend({title:_().min(1,"Name is required").max(255)});function Le(l,e){const s={};for(const o of l.connections)if(o.selected_tools===null){const n=e.get(o.connection_id)??[];n.length>0&&(s[o.connection_id]=n)}else o.selected_tools.length>0&&(s[o.connection_id]=o.selected_tools);return s}function Oe(l){const e={};for(const s of l.connections)s.selected_resources!==null&&s.selected_resources!==void 0&&s.selected_resources.length>0&&(e[s.connection_id]=s.selected_resources);return e}function Ue(l){const e={};for(const s of l.connections)s.selected_prompts!==null&&s.selected_prompts!==void 0&&s.selected_prompts.length>0&&(e[s.connection_id]=s.selected_prompts);return e}function ns(l,e,s,o){const n=new Set([...Object.keys(l),...Object.keys(e),...Object.keys(s)]);return Array.from(n).map(i=>{const r=l[i]??[],c=o.get(i)??[],m=c.length>0&&c.every(a=>r.includes(a));return{connection_id:i,selected_tools:r.length===0||m?null:r,selected_resources:e[i]??null,selected_prompts:s[i]??null}})}function is(l){const e=P.c(10),{url:s}=l,[o,n]=S.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 r=i;let c;e[2]!==o?(c=o?t.jsx(Ze,{size:20,className:"text-green-600"}):t.jsx(Lt,{size:20}),e[2]=o,e[3]=c):c=e[3];const m=o?"Copied!":"Copy URL";let a;e[4]!==m?(a=t.jsx("span",{className:"text-xs font-medium",children:m}),e[4]=m,e[5]=a):a=e[5];let d;return e[6]!==r||e[7]!==c||e[8]!==a?(d=t.jsxs(H,{type:"button",variant:"outline",onClick:r,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[c,a]}),e[6]=r,e[7]=c,e[8]=a,e[9]=d):d=e[9],d}function rs(l){const e=P.c(7),{url:s,serverName:o}=l;let n;e[0]!==o||e[1]!==s?(n=()=>{const a=qe(o),f=ls(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),u=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(a)}&config=${encodeURIComponent(f)}`;window.open(u,"_blank"),Re.success("Opening Cursor...")},e[0]=o,e[1]=s,e[2]=n):n=e[2];const i=n;let r,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=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%)"}}),c=t.jsx("span",{className:"text-xs font-medium",children:"Install on Cursor"}),e[3]=r,e[4]=c):(r=e[3],c=e[4]);let m;return e[5]!==i?(m=t.jsxs(H,{type:"button",variant:"outline",onClick:i,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[r,c]}),e[5]=i,e[6]=m):m=e[6],m}function cs(l){const e=P.c(11),{url:s,serverName:o}=l,[n,i]=S.useState(!1);let r;e[0]!==o||e[1]!==s?(r=async()=>{const u=qe(o),p=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),g=`claude mcp add "${u}" --config '${p.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(g),i(!0),Re.success("Claude Code command copied to clipboard"),setTimeout(()=>i(!1),2e3)},e[0]=o,e[1]=s,e[2]=r):r=e[2];const c=r;let m;e[3]!==n?(m=n?t.jsx(Ze,{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]=m):m=e[4];const a=n?"Copied!":"Install on Claude";let d;e[5]!==a?(d=t.jsx("span",{className:"text-xs font-medium",children:a}),e[5]=a,e[6]=d):d=e[6];let f;return e[7]!==c||e[8]!==m||e[9]!==d?(f=t.jsxs(H,{type:"button",variant:"outline",onClick:c,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[m,d]}),e[7]=c,e[8]=m,e[9]=d,e[10]=f):f=e[10],f}function as(l){const e=P.c(40),{open:s,onOpenChange:o,virtualMcp:n}=l,[i,r]=S.useState("code_execution");let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=N=>{(N==="passthrough"||N==="smart_tool_selection"||N==="code_execution")&&r(N)},e[0]=c):c=e[0];const m=c;let a;e[1]!==i||e[2]!==n.id?(a=new URL(`/mcp/virtual-mcp/${n.id}`,window.location.origin),a.searchParams.set("mode",i),e[1]=i,e[2]=n.id,e[3]=a):a=e[3];let d;e[4]!==n.id||e[5]!==n.title?(d=n.title||`agent-${n.id.slice(0,8)}`,e[4]=n.id,e[5]=n.title,e[6]=d):d=e[6];const f=d;let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(Ct,{children:t.jsx(Nt,{children:"Share Agent"})}),e[7]=u):u=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[8]=x):x=e[8];let p;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Ye,{className:"size-5 text-muted-foreground"})}),e[9]=p):p=e[9];let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Direct access"}),e[10]=g):g=e[10];let v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(K,{asChild:!0,children:t.jsx(Se,{className:"size-3.5 text-muted-foreground"})}),e[11]=v):v=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=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:[p,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[g,t.jsx(J,{children:t.jsxs(Q,{children:[v,t.jsx(X,{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(Pe,{id:"mode-passthrough",value:"passthrough"})]}),e[12]=b):b=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Qe,{className:"size-5 text-muted-foreground"})}),e[13]=y):y=e[13];let C;e[14]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart discovery"}),e[14]=C):C=e[14];let j;e[15]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(K,{asChild:!0,children:t.jsx(Se,{className:"size-3.5 text-muted-foreground"})}),e[15]=j):j=e[15];let k;e[16]===Symbol.for("react.memo_cache_sentinel")?(k=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:[y,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[C,t.jsx(J,{children:t.jsxs(Q,{children:[j,t.jsx(X,{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(Pe,{id:"mode-smart",value:"smart_tool_selection"})]}),e[16]=k):k=e[16];let w;e[17]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Dt,{className:"size-5 text-muted-foreground"})}),e[17]=w):w=e[17];let $;e[18]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart execution"}),e[18]=$):$=e[18];let T;e[19]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(K,{asChild:!0,children:t.jsx(Se,{className:"size-3.5 text-muted-foreground"})}),e[19]=T):T=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:[w,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[$,t.jsx(J,{children:t.jsxs(Q,{children:[T,t.jsx(X,{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(Pe,{id:"mode-code",value:"code_execution"}),t.jsx(Ge,{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 A;e[21]!==i?(A=t.jsxs("div",{className:"flex flex-col gap-3",children:[x,t.jsxs(ss,{value:i,onValueChange:m,className:"flex flex-col gap-4.5",children:[b,k,I]})]}),e[21]=i,e[22]=A):A=e[22];let B;e[23]!==a.href?(B=t.jsx(is,{url:a.href}),e[23]=a.href,e[24]=B):B=e[24];let R,V;e[25]!==f||e[26]!==a.href?(R=t.jsx(rs,{url:a.href,serverName:f}),V=t.jsx(cs,{url:a.href,serverName:f}),e[25]=f,e[26]=a.href,e[27]=R,e[28]=V):(R=e[27],V=e[28]);let L;e[29]!==B||e[30]!==R||e[31]!==V?(L=t.jsx("div",{className:"flex flex-col gap-3 pt-2",children:t.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[B,R,V]})}),e[29]=B,e[30]=R,e[31]=V,e[32]=L):L=e[32];let z;e[33]!==A||e[34]!==L?(z=t.jsxs(_t,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[u,t.jsxs("div",{className:"flex flex-col gap-6",children:[A,L]})]}),e[33]=A,e[34]=L,e[35]=z):z=e[35];let h;return e[36]!==o||e[37]!==s||e[38]!==z?(h=t.jsx(yt,{open:s,onOpenChange:o,children:z}),e[36]=o,e[37]=s,e[38]=z,e[39]=h):h=e[39],h}function ds(l){const e=P.c(31),{form:s,icon:o,virtualMcpId:n}=l,[i,r]=St(n);let c;e[0]!==s?(c=s.watch("title")||"Agent",e[0]=s,e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(bt,{}),e[2]=m):m=e[2];let a;e[3]!==o||e[4]!==c?(a=t.jsx(ze,{icon:o,name:c,size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:m}),e[3]=o,e[4]=c,e[5]=a):a=e[5];let d;e[6]!==s.control?(d=t.jsx(ve,{control:s.control,name:"status",render:hs}),e[6]=s.control,e[7]=d):d=e[7];let f;e[8]!==a||e[9]!==d?(f=t.jsxs("div",{className:"flex items-start justify-between",children:[a,d]}),e[8]=a,e[9]=d,e[10]=f):f=e[10];let u;e[11]!==s.control?(u=t.jsxs("div",{className:"flex flex-col",children:[t.jsx(ve,{control:s.control,name:"title",render:fs}),t.jsx(ve,{control:s.control,name:"description",render:us})]}),e[11]=s.control,e[12]=u):u=e[12];let x;e[13]!==f||e[14]!==u?(x=t.jsxs("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:[f,u]}),e[13]=f,e[14]=u,e[15]=x):x=e[15];let p;e[16]!==s.control?(p=t.jsx("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:t.jsx(ve,{control:s.control,name:"tool_selection_mode",render:ms})}),e[16]=s.control,e[17]=p):p=e[17];let g;e[18]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsxs("div",{children:[t.jsx("h4",{className:"text-sm font-medium text-foreground mb-1",children:"System Prompt"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Stored locally for now"})]}),e[18]=g):g=e[18];let v;e[19]!==r?(v=j=>r(j.target.value),e[19]=r,e[20]=v):v=e[20];let b;e[21]!==i||e[22]!==v?(b=t.jsxs("div",{className:"flex flex-col gap-3 p-5",children:[g,t.jsx(Et,{value:i,onChange:v,placeholder:"Enter system prompt instructions...",className:"min-h-[240px] resize-none text-sm leading-relaxed"})]}),e[21]=i,e[22]=v,e[23]=b):b=e[23];let y;e[24]!==b||e[25]!==x||e[26]!==p?(y=t.jsxs("div",{className:"flex flex-col",children:[x,p,b]}),e[24]=b,e[25]=x,e[26]=p,e[27]=y):y=e[27];let C;return e[28]!==s||e[29]!==y?(C=t.jsx("div",{className:"flex flex-col h-full overflow-auto",children:t.jsx(wt,{...s,children:y})}),e[28]=s,e[29]=y,e[30]=C):C=e[30],C}function ms(l){const{field:e}=l;return t.jsxs(Ne,{children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsx(kt,{className:"mb-0",children:"Selection Mode"}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(J,{children:t.jsxs(Q,{children:[t.jsx(K,{asChild:!0,children:t.jsx(H,{type:"button",variant:"ghost",size:"icon",className:"size-7","aria-label":"Selection mode help",children:t.jsx(Se,{size:14,className:"text-muted-foreground"})})}),t.jsx(X,{side:"left",className:"max-w-sm",children:t.jsxs("div",{className:"text-xs space-y-1",children:[t.jsxs("div",{children:[t.jsx("strong",{children:"Include:"})," Only selected items are exposed."]}),t.jsxs("div",{children:[t.jsx("strong",{children:"Exclude:"})," All items except selected ones are exposed."]})]})})]})}),t.jsxs($t,{value:e.value,onValueChange:e.onChange,children:[t.jsx(_e,{children:t.jsx(Rt,{className:"w-[180px]",children:t.jsx(zt,{})})}),t.jsxs(At,{children:[t.jsx(De,{value:"inclusion",children:"Include Selected"}),t.jsx(De,{value:"exclusion",children:"Exclude Selected"})]})]})]})]}),t.jsx(ye,{})]})}function us(l){const{field:e}=l;return t.jsxs(Ne,{className:"w-full space-y-0",children:[t.jsx(_e,{children:t.jsx(Ae,{...e,value:e.value||"",className:"h-auto text-base text-muted-foreground leading-6 px-0 border-transparent hover:border-input focus:border-input bg-transparent transition-all",placeholder:"Add a description..."})}),t.jsx(ye,{})]})}function fs(l){const{field:e}=l;return t.jsxs(Ne,{className:"w-full space-y-0",children:[t.jsx(_e,{children:t.jsx(Ae,{...e,className:"h-auto text-lg! font-medium leading-7 px-0 border-transparent hover:border-input focus:border-input bg-transparent transition-all",placeholder:"Agent Name"})}),t.jsx(ye,{})]})}function hs(l){const{field:e}=l;return t.jsxs(Ne,{children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ge,{variant:e.value==="active"?"success":"outline",children:e.value==="active"?"Active":"Inactive"}),t.jsx(_e,{children:t.jsx(Vt,{checked:e.value==="active",onCheckedChange:s=>e.onChange(s?"active":"inactive")})})]}),t.jsx(ye,{})]})}function xs(l){const e=P.c(81),{virtualMcp:s,virtualMcpId:o,requestedTabId:n}=l,r=ot().location.href,c=nt();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={from:"/$org/agents/$agentId"},e[0]=m):m=e[0];const a=Be(m),d=gt();let f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f={},e[1]=f):f=e[1];const u=He(f);let x;e[2]!==u?(x=u.map(gs),e[2]=u,e[3]=x):x=e[3];const p=x,{promptsMap:g}=jt(p),{resourcesMap:v}=vt(p);let b;if(e[4]!==u){b=new Map;for(const M of u)M.tools&&M.tools.length>0&&b.set(M.id,M.tools.map(ps));e[4]=u,e[5]=b}else b=e[5];let y;e[6]!==b||e[7]!==s?(y=()=>Le(s,b),e[6]=b,e[7]=s,e[8]=y):y=e[8];const[C,j]=S.useState(y);let k;e[9]!==s?(k=()=>Oe(s),e[9]=s,e[10]=k):k=e[10];const[w,$]=S.useState(k);let T;e[11]!==s?(T=()=>Ue(s),e[11]=s,e[12]=T):T=e[12];const[I,A]=S.useState(T),[B,R]=S.useState(!1),[V,L]=S.useState(!1);let z;e[13]===Symbol.for("react.memo_cache_sentinel")?(z=M=>{j(M),R(!0)},e[13]=z):z=e[13];const h=z;let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=M=>{$(M),R(!0)},e[14]=N):N=e[14];const F=N;let O;e[15]===Symbol.for("react.memo_cache_sentinel")?(O=M=>{A(M),R(!0)},e[15]=O):O=e[15];const q=O;let G;e[16]===Symbol.for("react.memo_cache_sentinel")?(G=it(os),e[16]=G):G=e[16];const Z=s.tool_selection_mode??"inclusion";let W;e[17]!==Z||e[18]!==s.description||e[19]!==s.status||e[20]!==s.title?(W={resolver:G,defaultValues:{title:s.title,description:s.description,status:s.status,tool_selection_mode:Z}},e[17]=Z,e[18]=s.description,e[19]=s.status,e[20]=s.title,e[21]=W):W=e[21];const U=rt(W),we=U.formState.isDirty||B;let me;e[22]!==d.update||e[23]!==b||e[24]!==U||e[25]!==I||e[26]!==w||e[27]!==C||e[28]!==o?(me=async()=>{try{const M=U.getValues(),je=ns(C,w,I,b),tt={title:M.title,description:M.description,status:M.status,tool_selection_mode:M.tool_selection_mode,connections:je};await d.update.mutateAsync({id:o,data:tt}),U.reset(M),R(!1)}catch(M){console.error("Failed to save virtual MCP:",M)}},e[22]=d.update,e[23]=b,e[24]=U,e[25]=I,e[26]=w,e[27]=C,e[28]=o,e[29]=me):me=e[29];const ke=me;let ue;e[30]!==b||e[31]!==U||e[32]!==s?(ue=()=>{U.reset({title:s.title,description:s.description,status:s.status,tool_selection_mode:s.tool_selection_mode??"inclusion"}),j(Le(s,b)),$(Oe(s)),A(Ue(s)),R(!1)},e[30]=b,e[31]=U,e[32]=s,e[33]=ue):ue=e[33];const Ie=ue;let fe;e[34]===Symbol.for("react.memo_cache_sentinel")?(fe=[{id:"settings",label:"Settings"},{id:"tools",label:"Tools"},{id:"resources",label:"Resources"},{id:"prompts",label:"Prompts"}],e[34]=fe):fe=e[34];const Ee=fe,E=Ee.some(M=>M.id===n)?n:"settings";let he;e[35]!==a?(he=M=>{a({search:je=>({...je,tab:M}),replace:!0})},e[35]=a,e[36]=he):he=e[36];const Me=he,de=d.update.isPending;let ee;e[37]!==c.history?(ee=()=>c.history.back(),e[37]=c.history,e[38]=ee):ee=e[38];let te;e[39]!==E||e[40]!==Me?(te=t.jsx(Ut,{children:t.jsx(Pt,{tabs:Ee,activeTab:E,onTabChange:Me})}),e[39]=E,e[40]=Me,e[41]=te):te=e[41];let se;e[42]!==Ie||e[43]!==ke||e[44]!==we||e[45]!==de?(se=we&&t.jsxs(t.Fragment,{children:[t.jsx(J,{children:t.jsxs(Q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(H,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:de,onClick:Ie,"aria-label":"Cancel",children:t.jsx(Ot,{size:14})})})}),t.jsx(X,{side:"bottom",children:"Cancel"})]})}),t.jsx(J,{children:t.jsxs(Q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(H,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:de,onClick:ke,"aria-label":"Save",children:de?t.jsx($e,{size:14,className:"animate-spin"}):t.jsx(Ke,{size:14})})})}),t.jsx(X,{side:"bottom",children:"Save"})]})})]}),e[42]=Ie,e[43]=ke,e[44]=we,e[45]=de,e[46]=se):se=e[46];let xe;e[47]===Symbol.for("react.memo_cache_sentinel")?(xe=()=>L(!0),e[47]=xe):xe=e[47];let pe;e[48]===Symbol.for("react.memo_cache_sentinel")?(pe=t.jsx(J,{children:t.jsxs(Q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(H,{variant:"outline",size:"icon",className:"size-7 border border-input",onClick:xe,"aria-label":"Share",children:t.jsx(Xe,{size:14})})})}),t.jsx(X,{side:"bottom",children:"Share"})]})}),e[48]=pe):pe=e[48];const Te=s.icon??"cpu_chip";let le;e[49]!==Te||e[50]!==r||e[51]!==s.title?(le=t.jsx(ht,{title:s.title,url:r,icon:Te}),e[49]=Te,e[50]=r,e[51]=s.title,e[52]=le):le=e[52];let oe;e[53]!==se||e[54]!==le?(oe=t.jsxs(Bt,{children:[se,pe,le]}),e[53]=se,e[54]=le,e[55]=oe):oe=e[55];let ge;e[56]===Symbol.for("react.memo_cache_sentinel")?(ge=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx($e,{size:32,className:"animate-spin text-muted-foreground"})}),e[56]=ge):ge=e[56];let ne;e[57]!==E||e[58]!==g||e[59]!==v||e[60]!==U||e[61]!==I||e[62]!==w||e[63]!==C||e[64]!==s.icon||e[65]!==o?(ne=E==="settings"?t.jsx(ds,{form:U,icon:s.icon,virtualMcpId:o}):E==="tools"?t.jsx(xt,{toolSet:C,onToolSetChange:h,excludeVirtualMcpId:o}):E==="resources"?t.jsx(es,{resourceSet:w,onResourceSetChange:F,connectionResources:v,excludeVirtualMcpId:o}):E==="prompts"?t.jsx(Jt,{promptSet:I,onPromptSetChange:q,connectionPrompts:g,excludeVirtualMcpId:o}):null,e[57]=E,e[58]=g,e[59]=v,e[60]=U,e[61]=I,e[62]=w,e[63]=C,e[64]=s.icon,e[65]=o,e[66]=ne):ne=e[66];let ie;e[67]!==ne?(ie=t.jsx(S.Suspense,{fallback:ge,children:ne}),e[67]=ne,e[68]=ie):ie=e[68];let re;e[69]!==E||e[70]!==ie?(re=t.jsx("div",{className:"flex h-full w-full bg-background overflow-hidden",children:t.jsx("div",{className:"flex-1 flex flex-col min-w-0 bg-background overflow-hidden",children:t.jsx("div",{className:"h-full overflow-auto",children:t.jsx(Fe,{children:ie},E)})})}),e[69]=E,e[70]=ie,e[71]=re):re=e[71];let ce;e[72]!==V||e[73]!==s?(ce=t.jsx(as,{open:V,onOpenChange:L,virtualMcp:s}),e[72]=V,e[73]=s,e[74]=ce):ce=e[74];let be;return e[75]!==ee||e[76]!==te||e[77]!==oe||e[78]!==re||e[79]!==ce?(be=t.jsxs(Ft,{onBack:ee,children:[te,oe,re,ce]}),e[75]=ee,e[76]=te,e[77]=oe,e[78]=re,e[79]=ce,e[80]=be):be=e[80],be}function ps(l){return l.name}function gs(l){return l.id}function bs(){const l=P.c(10);let e;l[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/$org/agents/$agentId"},l[0]=e):e=l[0];const s=Be(e);let o;l[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},l[1]=o):o=l[1];const n=st(o),{org:i}=n,r=n.agentId??n.virtualMcpId??"";let c;l[2]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},l[2]=c):c=l[2];const a=lt(c).tab||"settings",d=pt(r);if(!d){let u;return l[3]!==s||l[4]!==i?(u=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(ct,{title:"Agent not found",description:"This Agent may have been deleted or you may not have access.",actions:t.jsx(H,{variant:"outline",onClick:()=>s({to:"/$org/agents",params:{org:i}}),children:"Back to agents"})})}),l[3]=s,l[4]=i,l[5]=u):u=l[5],u}let f;return l[6]!==a||l[7]!==d||l[8]!==r?(f=t.jsx(xs,{virtualMcp:d,virtualMcpId:r,requestedTabId:a}),l[6]=a,l[7]=d,l[8]=r,l[9]=f):f=l[9],f}function js(){const l=P.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Fe,{children:t.jsx(S.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx($e,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(bs,{})})}),l[0]=e):e=l[0],e}function dl(){const l=P.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(js,{}),l[0]=e):e=l[0],e}export{dl as default};
1
+ import{r as S,_ as Ce,y as ae,I as D,z as _,c as P,j as t,f as Be,d as st,b as lt,k as ot,ad as nt,B as it,E as rt,t as Re}from"./index-RkAiu7dw.js";import{I as ze,E as ct}from"./empty-state-C5i2xL9Y.js";import{E as Fe}from"./error-boundary-DAH5w09n.js";import{C as We}from"./checkbox-i6HycpjB.js";import{c as Y,B as H}from"./button-BjyFV51s.js";import{i as at}from"./ArrowLeft-UBssGQ3_.js";import{u as He}from"./use-connection-B4LwqzAy.js";import{C as dt}from"./collection-search-CDy1ALDw.js";import{p as mt}from"./schema-BG_5nil3.js";import{I as Ae}from"./input-DRcixE8Y.js";import{s as ut}from"./Plus-qNfisIQV.js";import{i as ft}from"./X-DRPZjxg9.js";import{P as ht}from"./pin-to-sidebar-button-KizaOWag.js";import{T as xt}from"./tool-set-selector-BmmXkAMq.js";import{b as pt,a as gt,i as bt}from"./use-virtual-mcp-zI75jpyP.js";import{u as jt,a as vt}from"./use-connection-resources-DhxK4nxY.js";import{u as St}from"./use-virtual-mcp-system-prompt-BL6VfgiI.js";import{s as qe}from"./slugify-CEUa2lfQ.js";import{B as Ge}from"./badge-BI_bD2v6.js";import{a as Ct,D as Nt,c as _t,d as yt}from"./dialog-BNsW_zrz.js";import{F as ve,a as wt,b as Ne,d as _e,f as ye,c as kt}from"./form-CpXA-_lk.js";import{I as It,R as Mt,a as Tt}from"./index-ipYvuB0t.js";import{R as Pt}from"./resource-tabs-Bok-aIug.js";import{S as $t,a as Rt,b as zt,c as At,d as De}from"./select-De66oXlo.js";import{S as Vt}from"./switch-Dptn4iU8.js";import{T as Et}from"./textarea-Cp2Q3idX.js";import{a as J,c as Q,b as K,T as X}from"./tooltip-D_6S8XJj.js";import{i as Ze}from"./Check-yoiyrqoL.js";import{i as Dt}from"./Code01-RmXixa6y.js";import{a as Lt}from"./Copy01-BLLmXBc5.js";import{i as Ot}from"./FlipBackward-DwAzBzjC.js";import{i as Se}from"./InfoCircle-BCsSecsp.js";import{i as $e}from"./Loading01-BkVbIYYs.js";import{a as Ut,V as Bt,b as Ft}from"./layout-BiNRh0l3.js";import"./connection-BsqnB2FJ.js";import"./project-context-provider-CMPckjDL.js";import"./use-collections-B3q4szKJ.js";import"./useMutation-DiXSqFla.js";import"./SearchMd-DEod-sVt.js";import"./use-organization-settings-CbfCpvPO.js";import"./localstorage-keys-dTkn_1-n.js";import"./useQuery-o2THkaxs.js";import"./ChevronDown-BlKqZ66z.js";const Ye=({size:l=24,color:e="currentColor",...s})=>S.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},S.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));Ye.displayName="ArrowsRight";const Je=({size:l=24,color:e="currentColor",...s})=>S.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},S.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"}));Je.displayName="Circle";const Qe=({size:l=24,color:e="currentColor",...s})=>S.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},S.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"}));Qe.displayName="Lightbulb02";const Ke=({size:l=24,color:e="currentColor",...s})=>S.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},S.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"}));Ke.displayName="Save01";const Xe=({size:l=24,color:e="currentColor",...s})=>S.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},S.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"}));Xe.displayName="Share07";const Ve=Ce(["inclusion","exclusion"]).describe("Tool selection mode: 'inclusion' = include selected (default), 'exclusion' = exclude selected"),Wt=ae({connection_id:_().describe("Connection ID"),selected_tools:D(_()).nullable().describe("Selected tool names. With 'inclusion' mode: null = all tools included. With 'exclusion' mode: null = entire connection excluded"),selected_resources:D(_()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. With 'inclusion' mode: null = all resources included."),selected_prompts:D(_()).nullable().describe("Selected prompt names. With 'inclusion' mode: null = all prompts included. With 'exclusion' mode: null = entire connection excluded.")}),Ht=ae({id:_().describe("Unique identifier for the virtual MCP"),title:_().describe("Human-readable name for the virtual MCP"),description:_().nullable().describe("Description of the virtual MCP"),icon:_().nullable().optional().describe("Icon URL for the virtual MCP"),created_at:_().describe("When the virtual MCP was created"),updated_at:_().describe("When the virtual MCP was last updated"),created_by:_().describe("User ID who created the virtual MCP"),updated_by:_().optional().describe("User ID who last updated the virtual MCP"),organization_id:_().describe("Organization ID this virtual MCP belongs to"),tool_selection_mode:Ve.describe("Tool selection mode: 'inclusion' = include selected, 'exclusion' = exclude selected"),status:Ce(["active","inactive"]).describe("Current status"),connections:D(Wt).describe("Connections with their selected tools (behavior depends on tool_selection_mode)")});ae({title:_().min(1).max(255).describe("Name for the virtual MCP"),description:_().nullable().optional().describe("Optional description"),tool_selection_mode:Ve.optional().default("inclusion").describe("Tool selection mode (defaults to 'inclusion')"),icon:_().nullable().optional().describe("Optional icon URL"),status:Ce(["active","inactive"]).optional().default("active").describe("Initial status"),connections:D(ae({connection_id:_().describe("Connection ID"),selected_tools:D(_()).nullable().optional().describe("Selected tool names (null/undefined = all tools or full exclusion)"),selected_resources:D(_()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources)"),selected_prompts:D(_()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts or full exclusion)")})).describe("Connections to include/exclude (can be empty for exclusion mode)")});ae({title:_().min(1).max(255).optional().describe("New name"),description:_().nullable().optional().describe("New description (null to clear)"),tool_selection_mode:Ve.optional().describe("New tool selection mode"),icon:_().nullable().optional().describe("New icon URL (null to clear)"),status:Ce(["active","inactive"]).optional().describe("New status"),connections:D(ae({connection_id:_().describe("Connection ID"),selected_tools:D(_()).nullable().optional().describe("Selected tool names (null/undefined = all tools or full exclusion)"),selected_resources:D(_()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources)"),selected_prompts:D(_()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts or full exclusion)")})).optional().describe("New connections (replaces existing)")});const qt=S.memo(function(e){const s=P.c(20),{connection:o,isSelected:n,hasItemsEnabled:i,activeItemsCount:r,totalItemsCount:c,onSelect:m,onToggle:a}=e,d=n?"bg-accent/50":"hover:bg-muted/50";let f;s[0]!==d?(f=Y("flex items-center gap-3 p-2 rounded-lg transition-colors will-change-auto",d),s[0]=d,s[1]=f):f=s[1];let u;s[2]!==o.icon||s[3]!==o.title?(u=t.jsx(ze,{icon:o.icon,name:o.title,size:"xs"}),s[2]=o.icon,s[3]=o.title,s[4]=u):u=s[4];let x;s[5]!==o.title?(x=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:o.title})}),s[5]=o.title,s[6]=x):x=s[6];let p;s[7]!==m||s[8]!==u||s[9]!==x?(p=t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:m,children:[u,x]}),s[7]=m,s[8]=u,s[9]=x,s[10]=p):p=s[10];let g;s[11]!==r||s[12]!==i||s[13]!==a||s[14]!==c?(g=c>0&&t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[r,"/",c]}),t.jsx(We,{checked:i,onCheckedChange:a,onClick:Zt})]}),s[11]=r,s[12]=i,s[13]=a,s[14]=c,s[15]=g):g=s[15];let v;return s[16]!==f||s[17]!==p||s[18]!==g?(v=t.jsxs("div",{className:f,children:[p,g]}),s[16]=f,s[17]=p,s[18]=g,s[19]=v):v=s[19],v}),Gt=S.memo(function(e){const s=P.c(18),{connectionId:o,item:n,isSelected:i,onToggle:r}=e,c=`item-${o}-${n.id}`,m=i?"text-foreground":"text-muted-foreground";let a;s[0]!==m?(a=Y("text-sm font-medium",m),s[0]=m,s[1]=a):a=s[1];let d;s[2]!==n.name||s[3]!==a?(d=t.jsx("div",{className:"flex items-center gap-2 mb-1",children:t.jsx("span",{className:a,children:n.name})}),s[2]=n.name,s[3]=a,s[4]=d):d=s[4];let f;s[5]!==n.description?(f=n.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:n.description}),s[5]=n.description,s[6]=f):f=s[6];let u;s[7]!==d||s[8]!==f?(u=t.jsxs("div",{className:"flex-1 min-w-0",children:[d,f]}),s[7]=d,s[8]=f,s[9]=u):u=s[9];const x=`item-${o}-${n.id}`;let p;s[10]!==i||s[11]!==r||s[12]!==x?(p=t.jsx("div",{className:"flex items-center shrink-0",children:t.jsx(We,{id:x,checked:i,onCheckedChange:r,onClick:Yt})}),s[10]=i,s[11]=r,s[12]=x,s[13]=p):p=s[13];let g;return s[14]!==c||s[15]!==u||s[16]!==p?(g=t.jsxs("label",{className:"flex items-center gap-3 p-3 rounded-lg hover:bg-muted/50 cursor-pointer group will-change-auto",htmlFor:c,children:[u,p]}),s[14]=c,s[15]=u,s[16]=p,s[17]=g):g=s[17],g});function et({itemSet:l,onItemSetChange:e,getItems:s,itemLabel:o,emptyItemsMessage:n,extraContent:i,excludeVirtualMcpId:r}){const[c,m]=S.useState(""),a=S.useDeferredValue(c),[d,f]=S.useState("all"),[u,x]=S.useState(!1),p=S.useRef(new Set(Object.keys(l))),g=He({searchTerm:a.trim()||void 0}),v=r?g.filter(h=>h.connection_type!=="VIRTUAL"?!0:mt(h.connection_url)!==r):g,b=p.current,y=[...b.values()].map(h=>v.find(N=>N.id===h)).filter(h=>h!==void 0),C=v.filter(h=>!b.has(h.id)),j=[...y,...C],k=h=>{const N=l[h];return N!==void 0&&N.length>0},w=j.filter(h=>{if(d==="all")return!0;const N=k(h.id);return d==="selected"?N:d==="unselected"?!N:!0}),[$,T]=S.useState(j[0]?.id??null),I=$?j.find(h=>h.id===$)??null:null,A=I?s(I):[],B=(h,N)=>l[h]?.includes(N)??!1,R=(h,N)=>{const F=l[h]??[],O=F.includes(N),q={...l};if(O){const G=F.filter(Z=>Z!==N);G.length===0?delete q[h]:q[h]=G}else q[h]=[...F,N];e(q)},V=h=>{const N=j.find(W=>W.id===h);if(!N)return;const F=s(N);if(F.length===0)return;const O=l[h]??[],q=F.map(W=>W.id),G=O.length>0&&q.every(W=>O.includes(W)),Z={...l};G?delete Z[h]:(Z[h]=q,T(h)),e(Z)},L=h=>{T(h),x(!0)},z=()=>{x(!1)};return t.jsxs("div",{className:"flex h-full",children:[t.jsxs("div",{className:Y("w-full md:w-80 border-r border-border flex flex-col",u&&"hidden md:flex"),children:[t.jsx(dt,{value:c,onChange:m,placeholder:"Search Connections..."}),t.jsxs("div",{className:"flex gap-1 p-2 border-b border-border",children:[t.jsx("button",{onClick:()=>f("all"),className:Y("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="all"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"All"}),t.jsx("button",{onClick:()=>f("selected"),className:Y("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="selected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Selected"}),t.jsx("button",{onClick:()=>f("unselected"),className:Y("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="unselected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Unselected"})]}),t.jsx("div",{className:"flex-1 overflow-auto",children:w.length===0?t.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:c?"No connections found":d==="selected"?"No servers selected":d==="unselected"?"No unselected servers":"No connections available"}):t.jsx("div",{className:"p-2 space-y-1",children:w.map(h=>{const F=s(h).length,O=l[h.id]?.length??0;return t.jsx(qt,{connection:h,isSelected:$===h.id,hasItemsEnabled:k(h.id),activeItemsCount:O,totalItemsCount:F,onSelect:()=>L(h.id),onToggle:()=>V(h.id)},h.id)})})})]}),t.jsx("div",{className:Y("flex-1 flex-col",u?"flex":"hidden md:flex"),children:I?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"md:hidden border-b border-border p-4 flex items-center gap-3",children:[t.jsx(H,{variant:"ghost",size:"sm",onClick:z,className:"h-8 w-8 p-0 shrink-0",children:t.jsx(at,{size:20})}),t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[t.jsx(ze,{icon:I.icon,name:I.title,size:"sm"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:I.title}),I.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:I.description})]})]})]}),i,t.jsx("div",{className:"flex-1 overflow-auto p-4",children:A.length===0?t.jsx("div",{className:"text-sm text-muted-foreground text-center py-8",children:n||`This connection has no ${o} available`}):t.jsx("div",{className:"space-y-2",children:A.map(h=>t.jsx(Gt,{connectionId:I.id,item:h,isSelected:B(I.id,h.id),onToggle:()=>R(I.id,h.id)},h.id))})})]}):t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:["Select a connection to view its ",o]})})})]})}function Zt(l){return l.stopPropagation()}function Yt(l){return l.stopPropagation()}function Jt(l){const e=P.c(7),{promptSet:s,onPromptSetChange:o,connectionPrompts:n,excludeVirtualMcpId:i}=l;let r;e[0]!==n?(r=a=>(n.get(a.id)??[]).map(Qt),e[0]=n,e[1]=r):r=e[1];const c=r;let m;return e[2]!==i||e[3]!==c||e[4]!==o||e[5]!==s?(m=t.jsx(et,{itemSet:s,onItemSetChange:o,getItems:c,itemLabel:"prompts",emptyItemsMessage:"This connection has no prompts available",excludeVirtualMcpId:i}),e[2]=i,e[3]=c,e[4]=o,e[5]=s,e[6]=m):m=e[6],m}function Qt(l){return{id:l.name,name:l.name,description:l.description}}function Kt(l){return l.includes("*")}function Xt(l){const e=P.c(27),{patterns:s,onAddPattern:o,onRemovePattern:n}=l,[i,r]=S.useState("");let c;e[0]!==i||e[1]!==o||e[2]!==s?(c=()=>{const u=i.trim();u&&!s.includes(u)&&(o(u),r(""))},e[0]=i,e[1]=o,e[2]=s,e[3]=c):c=e[3];const m=c;let a;e[4]!==m?(a=u=>{u.key==="Enter"&&(u.preventDefault(),m())},e[4]=m,e[5]=a):a=e[5];const d=a;let f;if(e[6]!==m||e[7]!==d||e[8]!==i||e[9]!==n||e[10]!==s){const u=s.filter(Kt);let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("code",{children:"*"}),e[12]=x):x=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsxs("div",{className:"text-xs text-muted-foreground",children:["Add URI patterns to match multiple resources. Use ",x," for single segment and ",t.jsx("code",{children:"**"})," for multiple segments."]}),e[13]=p):p=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=w=>r(w.target.value),e[14]=g):g=e[14];let v;e[15]!==d||e[16]!==i?(v=t.jsx(Ae,{value:i,onChange:g,onKeyDown:d,placeholder:"e.g., file:///**/*.ts or db://users/*",className:"flex-1 text-sm"}),e[15]=d,e[16]=i,e[17]=v):v=e[17];let b;e[18]!==i?(b=i.trim(),e[18]=i,e[19]=b):b=e[19];const y=!b;let C;e[20]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(ut,{size:16}),e[20]=C):C=e[20];let j;e[21]!==m||e[22]!==y?(j=t.jsx(H,{type:"button",variant:"outline",size:"sm",onClick:m,disabled:y,children:C}),e[21]=m,e[22]=y,e[23]=j):j=e[23];let k;e[24]!==j||e[25]!==v?(k=t.jsxs("div",{className:"flex gap-2",children:[v,j]}),e[24]=j,e[25]=v,e[26]=k):k=e[26],f=t.jsxs("div",{className:"border-b border-border p-4 space-y-3",children:[p,k,u.length>0&&t.jsx("div",{className:"flex flex-wrap gap-2",children:u.map(w=>t.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-muted rounded-md text-xs",children:[t.jsx("code",{className:"text-foreground",children:w}),t.jsx("button",{type:"button",onClick:()=>n(w),className:"text-muted-foreground hover:text-foreground",children:t.jsx(ft,{size:12})})]},w))})]}),e[6]=m,e[7]=d,e[8]=i,e[9]=n,e[10]=s,e[11]=f}else f=e[11];return f}function es(l){const e=P.c(24),{resourceSet:s,onResourceSetChange:o,connectionResources:n,excludeVirtualMcpId:i}=l,[r]=S.useState(null);let c;e[0]!==n?(c=j=>(n.get(j.id)??[]).map(ts),e[0]=n,e[1]=c):c=e[1];const m=c;let a;e[2]!==o||e[3]!==s?(a=(j,k)=>{const w=s[j]??[];w.includes(k)||o({...s,[j]:[...w,k]})},e[2]=o,e[3]=s,e[4]=a):a=e[4];const d=a;let f;e[5]!==o||e[6]!==s?(f=(j,k)=>{const $=(s[j]??[]).filter(T=>T!==k);if($.length===0){const T={...s};delete T[j],o(T)}else o({...s,[j]:$})},e[5]=o,e[6]=s,e[7]=f):f=e[7];const u=f;let x;e[8]!==o?(x=j=>{o(j)},e[8]=o,e[9]=x):x=e[9];const p=x;let g;e[10]!==s||e[11]!==r?(g=r?s[r]??[]:[],e[10]=s,e[11]=r,e[12]=g):g=e[12];const v=g;let b;e[13]!==d||e[14]!==u||e[15]!==r||e[16]!==v?(b=r?t.jsx(Xt,{patterns:v,onAddPattern:j=>d(r,j),onRemovePattern:j=>u(r,j)}):null,e[13]=d,e[14]=u,e[15]=r,e[16]=v,e[17]=b):b=e[17];const y=b;let C;return e[18]!==i||e[19]!==y||e[20]!==m||e[21]!==p||e[22]!==s?(C=t.jsx("div",{className:"h-full",children:t.jsx(et,{itemSet:s,onItemSetChange:p,getItems:m,itemLabel:"resources",emptyItemsMessage:"This connection has no resources available",extraContent:y,excludeVirtualMcpId:i})}),e[18]=i,e[19]=y,e[20]=m,e[21]=p,e[22]=s,e[23]=C):C=e[23],C}function ts(l){return{id:l.uri,name:l.name||l.uri,description:l.description||l.uri}}function ss(l){const e=P.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=Y("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(Mt,{"data-slot":"radio-group",className:n,...o}),e[5]=o,e[6]=n,e[7]=i):i=e[7],i}function Pe(l){const e=P.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=Y("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(Tt,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:t.jsx(Je,{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 r;return e[6]!==o||e[7]!==n?(r=t.jsx(It,{"data-slot":"radio-group-item",className:n,...o,children:i}),e[6]=o,e[7]=n,e[8]=r):r=e[8],r}function ls(l){const s=new TextEncoder().encode(l),o=Array.from(s,n=>String.fromCharCode(n)).join("");return btoa(o)}const os=Ht.pick({title:!0,description:!0,status:!0,tool_selection_mode:!0}).extend({title:_().min(1,"Name is required").max(255)});function Le(l,e){const s={};for(const o of l.connections)if(o.selected_tools===null){const n=e.get(o.connection_id)??[];n.length>0&&(s[o.connection_id]=n)}else o.selected_tools.length>0&&(s[o.connection_id]=o.selected_tools);return s}function Oe(l){const e={};for(const s of l.connections)s.selected_resources!==null&&s.selected_resources!==void 0&&s.selected_resources.length>0&&(e[s.connection_id]=s.selected_resources);return e}function Ue(l){const e={};for(const s of l.connections)s.selected_prompts!==null&&s.selected_prompts!==void 0&&s.selected_prompts.length>0&&(e[s.connection_id]=s.selected_prompts);return e}function ns(l,e,s,o){const n=new Set([...Object.keys(l),...Object.keys(e),...Object.keys(s)]);return Array.from(n).map(i=>{const r=l[i]??[],c=o.get(i)??[],m=c.length>0&&c.every(a=>r.includes(a));return{connection_id:i,selected_tools:r.length===0||m?null:r,selected_resources:e[i]??null,selected_prompts:s[i]??null}})}function is(l){const e=P.c(10),{url:s}=l,[o,n]=S.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 r=i;let c;e[2]!==o?(c=o?t.jsx(Ze,{size:20,className:"text-green-600"}):t.jsx(Lt,{size:20}),e[2]=o,e[3]=c):c=e[3];const m=o?"Copied!":"Copy URL";let a;e[4]!==m?(a=t.jsx("span",{className:"text-xs font-medium",children:m}),e[4]=m,e[5]=a):a=e[5];let d;return e[6]!==r||e[7]!==c||e[8]!==a?(d=t.jsxs(H,{type:"button",variant:"outline",onClick:r,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[c,a]}),e[6]=r,e[7]=c,e[8]=a,e[9]=d):d=e[9],d}function rs(l){const e=P.c(7),{url:s,serverName:o}=l;let n;e[0]!==o||e[1]!==s?(n=()=>{const a=qe(o),f=ls(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),u=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(a)}&config=${encodeURIComponent(f)}`;window.open(u,"_blank"),Re.success("Opening Cursor...")},e[0]=o,e[1]=s,e[2]=n):n=e[2];const i=n;let r,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=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%)"}}),c=t.jsx("span",{className:"text-xs font-medium",children:"Install on Cursor"}),e[3]=r,e[4]=c):(r=e[3],c=e[4]);let m;return e[5]!==i?(m=t.jsxs(H,{type:"button",variant:"outline",onClick:i,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[r,c]}),e[5]=i,e[6]=m):m=e[6],m}function cs(l){const e=P.c(11),{url:s,serverName:o}=l,[n,i]=S.useState(!1);let r;e[0]!==o||e[1]!==s?(r=async()=>{const u=qe(o),p=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),g=`claude mcp add "${u}" --config '${p.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(g),i(!0),Re.success("Claude Code command copied to clipboard"),setTimeout(()=>i(!1),2e3)},e[0]=o,e[1]=s,e[2]=r):r=e[2];const c=r;let m;e[3]!==n?(m=n?t.jsx(Ze,{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]=m):m=e[4];const a=n?"Copied!":"Install on Claude";let d;e[5]!==a?(d=t.jsx("span",{className:"text-xs font-medium",children:a}),e[5]=a,e[6]=d):d=e[6];let f;return e[7]!==c||e[8]!==m||e[9]!==d?(f=t.jsxs(H,{type:"button",variant:"outline",onClick:c,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[m,d]}),e[7]=c,e[8]=m,e[9]=d,e[10]=f):f=e[10],f}function as(l){const e=P.c(40),{open:s,onOpenChange:o,virtualMcp:n}=l,[i,r]=S.useState("code_execution");let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=N=>{(N==="passthrough"||N==="smart_tool_selection"||N==="code_execution")&&r(N)},e[0]=c):c=e[0];const m=c;let a;e[1]!==i||e[2]!==n.id?(a=new URL(`/mcp/virtual-mcp/${n.id}`,window.location.origin),a.searchParams.set("mode",i),e[1]=i,e[2]=n.id,e[3]=a):a=e[3];let d;e[4]!==n.id||e[5]!==n.title?(d=n.title||`agent-${n.id.slice(0,8)}`,e[4]=n.id,e[5]=n.title,e[6]=d):d=e[6];const f=d;let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(Ct,{children:t.jsx(Nt,{children:"Share Agent"})}),e[7]=u):u=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[8]=x):x=e[8];let p;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Ye,{className:"size-5 text-muted-foreground"})}),e[9]=p):p=e[9];let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Direct access"}),e[10]=g):g=e[10];let v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(K,{asChild:!0,children:t.jsx(Se,{className:"size-3.5 text-muted-foreground"})}),e[11]=v):v=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=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:[p,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[g,t.jsx(J,{children:t.jsxs(Q,{children:[v,t.jsx(X,{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(Pe,{id:"mode-passthrough",value:"passthrough"})]}),e[12]=b):b=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Qe,{className:"size-5 text-muted-foreground"})}),e[13]=y):y=e[13];let C;e[14]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart discovery"}),e[14]=C):C=e[14];let j;e[15]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(K,{asChild:!0,children:t.jsx(Se,{className:"size-3.5 text-muted-foreground"})}),e[15]=j):j=e[15];let k;e[16]===Symbol.for("react.memo_cache_sentinel")?(k=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:[y,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[C,t.jsx(J,{children:t.jsxs(Q,{children:[j,t.jsx(X,{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(Pe,{id:"mode-smart",value:"smart_tool_selection"})]}),e[16]=k):k=e[16];let w;e[17]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Dt,{className:"size-5 text-muted-foreground"})}),e[17]=w):w=e[17];let $;e[18]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart execution"}),e[18]=$):$=e[18];let T;e[19]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(K,{asChild:!0,children:t.jsx(Se,{className:"size-3.5 text-muted-foreground"})}),e[19]=T):T=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:[w,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[$,t.jsx(J,{children:t.jsxs(Q,{children:[T,t.jsx(X,{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(Pe,{id:"mode-code",value:"code_execution"}),t.jsx(Ge,{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 A;e[21]!==i?(A=t.jsxs("div",{className:"flex flex-col gap-3",children:[x,t.jsxs(ss,{value:i,onValueChange:m,className:"flex flex-col gap-4.5",children:[b,k,I]})]}),e[21]=i,e[22]=A):A=e[22];let B;e[23]!==a.href?(B=t.jsx(is,{url:a.href}),e[23]=a.href,e[24]=B):B=e[24];let R,V;e[25]!==f||e[26]!==a.href?(R=t.jsx(rs,{url:a.href,serverName:f}),V=t.jsx(cs,{url:a.href,serverName:f}),e[25]=f,e[26]=a.href,e[27]=R,e[28]=V):(R=e[27],V=e[28]);let L;e[29]!==B||e[30]!==R||e[31]!==V?(L=t.jsx("div",{className:"flex flex-col gap-3 pt-2",children:t.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[B,R,V]})}),e[29]=B,e[30]=R,e[31]=V,e[32]=L):L=e[32];let z;e[33]!==A||e[34]!==L?(z=t.jsxs(_t,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[u,t.jsxs("div",{className:"flex flex-col gap-6",children:[A,L]})]}),e[33]=A,e[34]=L,e[35]=z):z=e[35];let h;return e[36]!==o||e[37]!==s||e[38]!==z?(h=t.jsx(yt,{open:s,onOpenChange:o,children:z}),e[36]=o,e[37]=s,e[38]=z,e[39]=h):h=e[39],h}function ds(l){const e=P.c(31),{form:s,icon:o,virtualMcpId:n}=l,[i,r]=St(n);let c;e[0]!==s?(c=s.watch("title")||"Agent",e[0]=s,e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(bt,{}),e[2]=m):m=e[2];let a;e[3]!==o||e[4]!==c?(a=t.jsx(ze,{icon:o,name:c,size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:m}),e[3]=o,e[4]=c,e[5]=a):a=e[5];let d;e[6]!==s.control?(d=t.jsx(ve,{control:s.control,name:"status",render:hs}),e[6]=s.control,e[7]=d):d=e[7];let f;e[8]!==a||e[9]!==d?(f=t.jsxs("div",{className:"flex items-start justify-between",children:[a,d]}),e[8]=a,e[9]=d,e[10]=f):f=e[10];let u;e[11]!==s.control?(u=t.jsxs("div",{className:"flex flex-col",children:[t.jsx(ve,{control:s.control,name:"title",render:fs}),t.jsx(ve,{control:s.control,name:"description",render:us})]}),e[11]=s.control,e[12]=u):u=e[12];let x;e[13]!==f||e[14]!==u?(x=t.jsxs("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:[f,u]}),e[13]=f,e[14]=u,e[15]=x):x=e[15];let p;e[16]!==s.control?(p=t.jsx("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:t.jsx(ve,{control:s.control,name:"tool_selection_mode",render:ms})}),e[16]=s.control,e[17]=p):p=e[17];let g;e[18]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsxs("div",{children:[t.jsx("h4",{className:"text-sm font-medium text-foreground mb-1",children:"System Prompt"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Stored locally for now"})]}),e[18]=g):g=e[18];let v;e[19]!==r?(v=j=>r(j.target.value),e[19]=r,e[20]=v):v=e[20];let b;e[21]!==i||e[22]!==v?(b=t.jsxs("div",{className:"flex flex-col gap-3 p-5",children:[g,t.jsx(Et,{value:i,onChange:v,placeholder:"Enter system prompt instructions...",className:"min-h-[240px] resize-none text-sm leading-relaxed"})]}),e[21]=i,e[22]=v,e[23]=b):b=e[23];let y;e[24]!==b||e[25]!==x||e[26]!==p?(y=t.jsxs("div",{className:"flex flex-col",children:[x,p,b]}),e[24]=b,e[25]=x,e[26]=p,e[27]=y):y=e[27];let C;return e[28]!==s||e[29]!==y?(C=t.jsx("div",{className:"flex flex-col h-full overflow-auto",children:t.jsx(wt,{...s,children:y})}),e[28]=s,e[29]=y,e[30]=C):C=e[30],C}function ms(l){const{field:e}=l;return t.jsxs(Ne,{children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsx(kt,{className:"mb-0",children:"Selection Mode"}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(J,{children:t.jsxs(Q,{children:[t.jsx(K,{asChild:!0,children:t.jsx(H,{type:"button",variant:"ghost",size:"icon",className:"size-7","aria-label":"Selection mode help",children:t.jsx(Se,{size:14,className:"text-muted-foreground"})})}),t.jsx(X,{side:"left",className:"max-w-sm",children:t.jsxs("div",{className:"text-xs space-y-1",children:[t.jsxs("div",{children:[t.jsx("strong",{children:"Include:"})," Only selected items are exposed."]}),t.jsxs("div",{children:[t.jsx("strong",{children:"Exclude:"})," All items except selected ones are exposed."]})]})})]})}),t.jsxs($t,{value:e.value,onValueChange:e.onChange,children:[t.jsx(_e,{children:t.jsx(Rt,{className:"w-[180px]",children:t.jsx(zt,{})})}),t.jsxs(At,{children:[t.jsx(De,{value:"inclusion",children:"Include Selected"}),t.jsx(De,{value:"exclusion",children:"Exclude Selected"})]})]})]})]}),t.jsx(ye,{})]})}function us(l){const{field:e}=l;return t.jsxs(Ne,{className:"w-full space-y-0",children:[t.jsx(_e,{children:t.jsx(Ae,{...e,value:e.value||"",className:"h-auto text-base text-muted-foreground leading-6 px-0 border-transparent hover:border-input focus:border-input bg-transparent transition-all",placeholder:"Add a description..."})}),t.jsx(ye,{})]})}function fs(l){const{field:e}=l;return t.jsxs(Ne,{className:"w-full space-y-0",children:[t.jsx(_e,{children:t.jsx(Ae,{...e,className:"h-auto text-lg! font-medium leading-7 px-0 border-transparent hover:border-input focus:border-input bg-transparent transition-all",placeholder:"Agent Name"})}),t.jsx(ye,{})]})}function hs(l){const{field:e}=l;return t.jsxs(Ne,{children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ge,{variant:e.value==="active"?"success":"outline",children:e.value==="active"?"Active":"Inactive"}),t.jsx(_e,{children:t.jsx(Vt,{checked:e.value==="active",onCheckedChange:s=>e.onChange(s?"active":"inactive")})})]}),t.jsx(ye,{})]})}function xs(l){const e=P.c(81),{virtualMcp:s,virtualMcpId:o,requestedTabId:n}=l,r=ot().location.href,c=nt();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={from:"/$org/agents/$agentId"},e[0]=m):m=e[0];const a=Be(m),d=gt();let f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f={},e[1]=f):f=e[1];const u=He(f);let x;e[2]!==u?(x=u.map(gs),e[2]=u,e[3]=x):x=e[3];const p=x,{promptsMap:g}=jt(p),{resourcesMap:v}=vt(p);let b;if(e[4]!==u){b=new Map;for(const M of u)M.tools&&M.tools.length>0&&b.set(M.id,M.tools.map(ps));e[4]=u,e[5]=b}else b=e[5];let y;e[6]!==b||e[7]!==s?(y=()=>Le(s,b),e[6]=b,e[7]=s,e[8]=y):y=e[8];const[C,j]=S.useState(y);let k;e[9]!==s?(k=()=>Oe(s),e[9]=s,e[10]=k):k=e[10];const[w,$]=S.useState(k);let T;e[11]!==s?(T=()=>Ue(s),e[11]=s,e[12]=T):T=e[12];const[I,A]=S.useState(T),[B,R]=S.useState(!1),[V,L]=S.useState(!1);let z;e[13]===Symbol.for("react.memo_cache_sentinel")?(z=M=>{j(M),R(!0)},e[13]=z):z=e[13];const h=z;let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=M=>{$(M),R(!0)},e[14]=N):N=e[14];const F=N;let O;e[15]===Symbol.for("react.memo_cache_sentinel")?(O=M=>{A(M),R(!0)},e[15]=O):O=e[15];const q=O;let G;e[16]===Symbol.for("react.memo_cache_sentinel")?(G=it(os),e[16]=G):G=e[16];const Z=s.tool_selection_mode??"inclusion";let W;e[17]!==Z||e[18]!==s.description||e[19]!==s.status||e[20]!==s.title?(W={resolver:G,defaultValues:{title:s.title,description:s.description,status:s.status,tool_selection_mode:Z}},e[17]=Z,e[18]=s.description,e[19]=s.status,e[20]=s.title,e[21]=W):W=e[21];const U=rt(W),we=U.formState.isDirty||B;let me;e[22]!==d.update||e[23]!==b||e[24]!==U||e[25]!==I||e[26]!==w||e[27]!==C||e[28]!==o?(me=async()=>{try{const M=U.getValues(),je=ns(C,w,I,b),tt={title:M.title,description:M.description,status:M.status,tool_selection_mode:M.tool_selection_mode,connections:je};await d.update.mutateAsync({id:o,data:tt}),U.reset(M),R(!1)}catch(M){console.error("Failed to save virtual MCP:",M)}},e[22]=d.update,e[23]=b,e[24]=U,e[25]=I,e[26]=w,e[27]=C,e[28]=o,e[29]=me):me=e[29];const ke=me;let ue;e[30]!==b||e[31]!==U||e[32]!==s?(ue=()=>{U.reset({title:s.title,description:s.description,status:s.status,tool_selection_mode:s.tool_selection_mode??"inclusion"}),j(Le(s,b)),$(Oe(s)),A(Ue(s)),R(!1)},e[30]=b,e[31]=U,e[32]=s,e[33]=ue):ue=e[33];const Ie=ue;let fe;e[34]===Symbol.for("react.memo_cache_sentinel")?(fe=[{id:"settings",label:"Settings"},{id:"tools",label:"Tools"},{id:"resources",label:"Resources"},{id:"prompts",label:"Prompts"}],e[34]=fe):fe=e[34];const Ee=fe,E=Ee.some(M=>M.id===n)?n:"settings";let he;e[35]!==a?(he=M=>{a({search:je=>({...je,tab:M}),replace:!0})},e[35]=a,e[36]=he):he=e[36];const Me=he,de=d.update.isPending;let ee;e[37]!==c.history?(ee=()=>c.history.back(),e[37]=c.history,e[38]=ee):ee=e[38];let te;e[39]!==E||e[40]!==Me?(te=t.jsx(Ut,{children:t.jsx(Pt,{tabs:Ee,activeTab:E,onTabChange:Me})}),e[39]=E,e[40]=Me,e[41]=te):te=e[41];let se;e[42]!==Ie||e[43]!==ke||e[44]!==we||e[45]!==de?(se=we&&t.jsxs(t.Fragment,{children:[t.jsx(J,{children:t.jsxs(Q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(H,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:de,onClick:Ie,"aria-label":"Cancel",children:t.jsx(Ot,{size:14})})})}),t.jsx(X,{side:"bottom",children:"Cancel"})]})}),t.jsx(J,{children:t.jsxs(Q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(H,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:de,onClick:ke,"aria-label":"Save",children:de?t.jsx($e,{size:14,className:"animate-spin"}):t.jsx(Ke,{size:14})})})}),t.jsx(X,{side:"bottom",children:"Save"})]})})]}),e[42]=Ie,e[43]=ke,e[44]=we,e[45]=de,e[46]=se):se=e[46];let xe;e[47]===Symbol.for("react.memo_cache_sentinel")?(xe=()=>L(!0),e[47]=xe):xe=e[47];let pe;e[48]===Symbol.for("react.memo_cache_sentinel")?(pe=t.jsx(J,{children:t.jsxs(Q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(H,{variant:"outline",size:"icon",className:"size-7 border border-input",onClick:xe,"aria-label":"Share",children:t.jsx(Xe,{size:14})})})}),t.jsx(X,{side:"bottom",children:"Share"})]})}),e[48]=pe):pe=e[48];const Te=s.icon??"cpu_chip";let le;e[49]!==Te||e[50]!==r||e[51]!==s.title?(le=t.jsx(ht,{title:s.title,url:r,icon:Te}),e[49]=Te,e[50]=r,e[51]=s.title,e[52]=le):le=e[52];let oe;e[53]!==se||e[54]!==le?(oe=t.jsxs(Bt,{children:[se,pe,le]}),e[53]=se,e[54]=le,e[55]=oe):oe=e[55];let ge;e[56]===Symbol.for("react.memo_cache_sentinel")?(ge=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx($e,{size:32,className:"animate-spin text-muted-foreground"})}),e[56]=ge):ge=e[56];let ne;e[57]!==E||e[58]!==g||e[59]!==v||e[60]!==U||e[61]!==I||e[62]!==w||e[63]!==C||e[64]!==s.icon||e[65]!==o?(ne=E==="settings"?t.jsx(ds,{form:U,icon:s.icon,virtualMcpId:o}):E==="tools"?t.jsx(xt,{toolSet:C,onToolSetChange:h,excludeVirtualMcpId:o}):E==="resources"?t.jsx(es,{resourceSet:w,onResourceSetChange:F,connectionResources:v,excludeVirtualMcpId:o}):E==="prompts"?t.jsx(Jt,{promptSet:I,onPromptSetChange:q,connectionPrompts:g,excludeVirtualMcpId:o}):null,e[57]=E,e[58]=g,e[59]=v,e[60]=U,e[61]=I,e[62]=w,e[63]=C,e[64]=s.icon,e[65]=o,e[66]=ne):ne=e[66];let ie;e[67]!==ne?(ie=t.jsx(S.Suspense,{fallback:ge,children:ne}),e[67]=ne,e[68]=ie):ie=e[68];let re;e[69]!==E||e[70]!==ie?(re=t.jsx("div",{className:"flex h-full w-full bg-background overflow-hidden",children:t.jsx("div",{className:"flex-1 flex flex-col min-w-0 bg-background overflow-hidden",children:t.jsx("div",{className:"h-full overflow-auto",children:t.jsx(Fe,{children:ie},E)})})}),e[69]=E,e[70]=ie,e[71]=re):re=e[71];let ce;e[72]!==V||e[73]!==s?(ce=t.jsx(as,{open:V,onOpenChange:L,virtualMcp:s}),e[72]=V,e[73]=s,e[74]=ce):ce=e[74];let be;return e[75]!==ee||e[76]!==te||e[77]!==oe||e[78]!==re||e[79]!==ce?(be=t.jsxs(Ft,{onBack:ee,children:[te,oe,re,ce]}),e[75]=ee,e[76]=te,e[77]=oe,e[78]=re,e[79]=ce,e[80]=be):be=e[80],be}function ps(l){return l.name}function gs(l){return l.id}function bs(){const l=P.c(10);let e;l[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/$org/agents/$agentId"},l[0]=e):e=l[0];const s=Be(e);let o;l[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},l[1]=o):o=l[1];const n=st(o),{org:i}=n,r=n.agentId??n.virtualMcpId??"";let c;l[2]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},l[2]=c):c=l[2];const a=lt(c).tab||"settings",d=pt(r);if(!d){let u;return l[3]!==s||l[4]!==i?(u=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(ct,{title:"Agent not found",description:"This Agent may have been deleted or you may not have access.",actions:t.jsx(H,{variant:"outline",onClick:()=>s({to:"/$org/agents",params:{org:i}}),children:"Back to agents"})})}),l[3]=s,l[4]=i,l[5]=u):u=l[5],u}let f;return l[6]!==a||l[7]!==d||l[8]!==r?(f=t.jsx(xs,{virtualMcp:d,virtualMcpId:r,requestedTabId:a}),l[6]=a,l[7]=d,l[8]=r,l[9]=f):f=l[9],f}function js(){const l=P.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Fe,{children:t.jsx(S.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx($e,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(bs,{})})}),l[0]=e):e=l[0],e}function dl(){const l=P.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(js,{}),l[0]=e):e=l[0],e}export{dl as default};
@@ -1 +1 @@
1
- import{c as ee,j as t,r as te,f as oe}from"./index-Der4WAhG.js";import{C as ne}from"./collection-header-BO1RAhXE.js";import{C as re}from"./collection-page-D6u1h5CG.js";import{C as ie}from"./collection-search-B2T9aTUG.js";import{C as ae}from"./collection-table-wrapper-Cj2Z05Vz.js";import{C as le}from"./connection-card-BOX4VMQP.js";import{E as q,I as ce}from"./empty-state-CSpGZ0zM.js";import{E as de}from"./error-boundary-D8_vhZ9J.js";import{u as me,a as ue,i as x}from"./use-virtual-mcp-BYvDJkOz.js";import{u as ge,s as J}from"./use-list-state-CTgR3vLm.js";import{u as pe}from"./use-create-virtual-mcp-CzY_Xp0e.js";import{u as he}from"./project-context-provider-BJCgjK68.js";import{c as fe,b as xe,d as je,A as Ce,e as we,g as Ne,a as ye,f as De}from"./alert-dialog-N05icYLS.js";import{B as se}from"./badge-93zNB6CU.js";import{B as G}from"./button-Cy99o_Nr.js";import{b as Q,D as U,a as X,c as V}from"./dropdown-menu-C_fFa6XQ.js";import{i as Y}from"./DotsVertical-Bvvur7wy.js";import{i as Se}from"./Loading01-C5B-ooYi.js";import{s as Z}from"./Trash01-lk0vkKg5.js";import"./collection-display-button-Cw-aPj8d.js";import"./ArrowUp-BKGQ9QQQ.js";import"./Check-CLWAJZPj.js";import"./Grid01-Dk81yuDv.js";import"./List-Bx7w2dTu.js";import"./tooltip-DaXn6N6z.js";import"./view-mode-toggle-fGMaJ0TS.js";import"./SearchMd-0lNCZZZG.js";import"./input-jdZhb1mP.js";import"./card-DKMUMGoi.js";import"./useMutation-aUPZde1e.js";import"./connection-k0ZpINRn.js";import"./use-collections-q6OfA5kN.js";import"./use-mobile-DdbEmUPe.js";function be(e,n){switch(n.type){case"delete":return{mode:"deleting",virtualMcp:n.virtualMcp};case"close":return{mode:"idle"}}}function ve(){const e=ee.c(63),{org:n}=he(),i=oe();let j;e[0]!==n.slug?(j={namespace:n.slug,resource:"agents"},e[0]=n.slug,e[1]=j):j=e[1];const s=ge(j),f=me(s);let C;e[2]===Symbol.for("react.memo_cache_sentinel")?(C={navigateOnCreate:!0},e[2]=C):C=e[2];const{createVirtualMCP:O,isCreating:w}=pe(C),B=ue();let N;e[3]===Symbol.for("react.memo_cache_sentinel")?(N={mode:"idle"},e[3]=N):N=e[3];const[r,y]=te.useReducer(be,N);let D;e[4]!==B||e[5]!==r.mode||e[6]!==r.virtualMcp?(D=async()=>{if(r.mode!=="deleting")return;const o=r.virtualMcp.id;y({type:"close"});try{await B.delete.mutateAsync(o)}catch{}},e[4]=B,e[5]=r.mode,e[6]=r.virtualMcp,e[7]=D):D=e[7];const R=D;let S,b,v,k,A,_;e[8]===Symbol.for("react.memo_cache_sentinel")?(S={id:"icon",header:"",render:Ke,cellClassName:"w-16 shrink-0",wrap:!0},b={id:"title",header:"Name",render:Ee,cellClassName:"w-48 min-w-0 shrink-0",sortable:!0},v={id:"description",header:"Description",render:Pe,cellClassName:"flex-1 min-w-0",wrap:!0,sortable:!0},k={id:"mode",header:"Mode",accessor:$e,cellClassName:"w-[100px]"},A={id:"connections",header:"Connections",render:Me,cellClassName:"w-24 shrink-0"},_={id:"status",header:"Status",render:ze,cellClassName:"w-24 shrink-0",sortable:!0},e[8]=S,e[9]=b,e[10]=v,e[11]=k,e[12]=A,e[13]=_):(S=e[8],b=e[9],v=e[10],k=e[11],A=e[12],_=e[13]);let I;e[14]!==i||e[15]!==n.slug?(I=[S,b,v,k,A,_,{id:"actions",header:"",render:o=>t.jsxs(Q,{children:[t.jsx(U,{asChild:!0,children:t.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Ie,children:t.jsx(Y,{size:20})})}),t.jsxs(X,{align:"end",onClick:_e,children:[t.jsxs(V,{onClick:a=>{a.stopPropagation(),i({to:"/$org/agents/$agentId",params:{org:n.slug,agentId:o.id}})},children:[t.jsx(J,{size:16}),"Open"]}),t.jsxs(V,{variant:"destructive",onClick:a=>{a.stopPropagation(),y({type:"delete",virtualMcp:o})},children:[t.jsx(Z,{size:16}),"Delete"]})]})]}),cellClassName:"w-12 shrink-0"}],e[14]=i,e[15]=n.slug,e[16]=I):I=e[16];const T=I,H=w?"Creating...":"Create Agent";let z;e[17]!==O||e[18]!==w||e[19]!==H?(z=t.jsx(G,{onClick:O,size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",disabled:w,children:H}),e[17]=O,e[18]=w,e[19]=H,e[20]=z):z=e[20];const L=z,F=r.mode==="deleting";let M;e[21]===Symbol.for("react.memo_cache_sentinel")?(M=o=>!o&&y({type:"close"}),e[21]=M):M=e[21];let $;e[22]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(fe,{children:"Delete Agent?"}),e[22]=$):$=e[22];const W=r.mode==="deleting"&&r.virtualMcp.title;let l;e[23]!==W?(l=t.jsxs(xe,{children:[$,t.jsxs(je,{children:["This action cannot be undone. This will permanently delete"," ",t.jsx("span",{className:"font-medium text-foreground",children:W}),"."]})]}),e[23]=W,e[24]=l):l=e[24];let P;e[25]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(Ce,{children:"Cancel"}),e[25]=P):P=e[25];let c;e[26]!==R?(c=t.jsxs(we,{children:[P,t.jsx(Ne,{onClick:R,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[26]=R,e[27]=c):c=e[27];let d;e[28]!==l||e[29]!==c?(d=t.jsxs(ye,{children:[l,c]}),e[28]=l,e[29]=c,e[30]=d):d=e[30];let m;e[31]!==F||e[32]!==d?(m=t.jsx(De,{open:F,onOpenChange:M,children:d}),e[31]=F,e[32]=d,e[33]=m):m=e[33];let E;e[34]===Symbol.for("react.memo_cache_sentinel")?(E=[{id:"title",label:"Name"},{id:"description",label:"Description"},{id:"status",label:"Status"}],e[34]=E):E=e[34];let u;e[35]!==L||e[36]!==s.handleSort||e[37]!==s.setViewMode||e[38]!==s.sortDirection||e[39]!==s.sortKey||e[40]!==s.viewMode?(u=t.jsx(ne,{title:"Agents",viewMode:s.viewMode,onViewModeChange:s.setViewMode,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,sortOptions:E,ctaButton:L}),e[35]=L,e[36]=s.handleSort,e[37]=s.setViewMode,e[38]=s.sortDirection,e[39]=s.sortKey,e[40]=s.viewMode,e[41]=u):u=e[41];let g;e[42]!==s?(g=o=>{o.key==="Escape"&&(s.setSearch(""),o.target.blur())},e[42]=s,e[43]=g):g=e[43];let p;e[44]!==s.search||e[45]!==s.setSearch||e[46]!==g?(p=t.jsx(ie,{value:s.search,onChange:s.setSearch,placeholder:"Search for an agent...",onKeyDown:g}),e[44]=s.search,e[45]=s.setSearch,e[46]=g,e[47]=p):p=e[47];let h;e[48]!==T||e[49]!==s.handleSort||e[50]!==s.search||e[51]!==s.sortDirection||e[52]!==s.sortKey||e[53]!==s.viewMode||e[54]!==i||e[55]!==n.slug||e[56]!==f?(h=s.viewMode==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:f.length===0?t.jsx(q,{image:t.jsx(x,{size:36,className:"text-muted-foreground"}),title:s.search?"No agents found":"No agents yet",description:s.search?`No agents match "${s.search}"`:"Create an agent to aggregate tools from multiple Connections."}):t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:f.map(o=>t.jsx(le,{connection:{id:o.id,title:o.title,description:o.description,icon:o.icon,status:o.status},fallbackIcon:t.jsx(x,{}),onClick:()=>i({to:"/$org/agents/$agentId",params:{org:n.slug,agentId:o.id}}),footer:t.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[t.jsxs("span",{children:[o.connections.length," connection",o.connections.length!==1?"s":""]}),t.jsx("span",{children:"•"}),t.jsx("span",{children:o.tool_selection_mode==="exclusion"?"Exclude":"Include"})]}),headerActions:t.jsxs(Q,{children:[t.jsx(U,{asChild:!0,children:t.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Ae,children:t.jsx(Y,{size:20})})}),t.jsxs(X,{align:"end",onClick:ke,children:[t.jsxs(V,{onClick:a=>{a.stopPropagation(),i({to:"/$org/agents/$agentId",params:{org:n.slug,agentId:o.id}})},children:[t.jsx(J,{size:16}),"Open"]}),t.jsxs(V,{variant:"destructive",onClick:a=>{a.stopPropagation(),y({type:"delete",virtualMcp:o})},children:[t.jsx(Z,{size:16}),"Delete"]})]})]})},o.id))})}):t.jsx(ae,{columns:T,data:f,isLoading:!1,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,onRowClick:o=>i({to:"/$org/agents/$agentId",params:{org:n.slug,agentId:o.id}}),emptyState:s.search?t.jsx(q,{image:t.jsx(x,{size:36,className:"text-muted-foreground"}),title:"No agents found",description:`No agents match "${s.search}"`}):t.jsx(q,{image:t.jsx(x,{size:36,className:"text-muted-foreground"}),title:"No agents yet",description:"Create an agent to aggregate tools from multiple Connections."})}),e[48]=T,e[49]=s.handleSort,e[50]=s.search,e[51]=s.sortDirection,e[52]=s.sortKey,e[53]=s.viewMode,e[54]=i,e[55]=n.slug,e[56]=f,e[57]=h):h=e[57];let K;return e[58]!==m||e[59]!==u||e[60]!==p||e[61]!==h?(K=t.jsxs(re,{children:[m,u,p,h]}),e[58]=m,e[59]=u,e[60]=p,e[61]=h,e[62]=K):K=e[62],K}function ke(e){return e.stopPropagation()}function Ae(e){return e.stopPropagation()}function _e(e){return e.stopPropagation()}function Ie(e){return e.stopPropagation()}function ze(e){return t.jsx(se,{variant:e.status==="active"?"default":"outline",children:e.status})}function Me(e){return t.jsx("span",{className:"text-sm text-muted-foreground",children:e.connections.length})}function $e(e){return t.jsx(se,{variant:"outline",className:"text-xs",children:e.tool_selection_mode==="exclusion"?"Exclude":"Include"})}function Pe(e){return t.jsx("span",{className:"text-sm text-foreground line-clamp-2",children:e.description||"—"})}function Ee(e){return t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.title})}function Ke(e){return t.jsx(ce,{icon:e.icon,name:e.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(x,{size:16})})}function ft(){const e=ee.c(1);let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(de,{children:t.jsx(te.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Se,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(ve,{})})}),e[0]=n):n=e[0],n}export{ft as default};
1
+ import{c as ee,j as t,r as te,f as oe}from"./index-RkAiu7dw.js";import{C as ne}from"./collection-header-Bqiij5-y.js";import{C as re}from"./collection-page-CK2pCBvw.js";import{C as ie}from"./collection-search-CDy1ALDw.js";import{C as ae}from"./collection-table-wrapper-m7An0eu5.js";import{C as le}from"./connection-card-D5p4qN7C.js";import{E as q,I as ce}from"./empty-state-C5i2xL9Y.js";import{E as de}from"./error-boundary-DAH5w09n.js";import{u as me,a as ue,i as x}from"./use-virtual-mcp-zI75jpyP.js";import{u as ge,s as J}from"./use-list-state-v0o-iQLf.js";import{u as pe}from"./use-create-virtual-mcp-BHiCN5B5.js";import{u as he}from"./project-context-provider-CMPckjDL.js";import{c as fe,b as xe,d as je,A as Ce,e as we,g as Ne,a as ye,f as De}from"./alert-dialog-z1mADwEG.js";import{B as se}from"./badge-BI_bD2v6.js";import{B as G}from"./button-BjyFV51s.js";import{b as Q,D as U,a as X,c as V}from"./dropdown-menu-CHWSOD8_.js";import{i as Y}from"./DotsVertical-PBjWbzwJ.js";import{i as Se}from"./Loading01-BkVbIYYs.js";import{s as Z}from"./Trash01-C_UVJByK.js";import"./collection-display-button-DbY33BY1.js";import"./ArrowUp-MnVdQxWX.js";import"./Check-yoiyrqoL.js";import"./Grid01-CNEf3UoL.js";import"./List-DFdv7PYp.js";import"./tooltip-D_6S8XJj.js";import"./view-mode-toggle-C9TxrmrJ.js";import"./SearchMd-DEod-sVt.js";import"./input-DRcixE8Y.js";import"./card-Bqtkl7sF.js";import"./useMutation-DiXSqFla.js";import"./connection-BsqnB2FJ.js";import"./use-collections-B3q4szKJ.js";import"./use-mobile-JMRj2bzL.js";function be(e,n){switch(n.type){case"delete":return{mode:"deleting",virtualMcp:n.virtualMcp};case"close":return{mode:"idle"}}}function ve(){const e=ee.c(63),{org:n}=he(),i=oe();let j;e[0]!==n.slug?(j={namespace:n.slug,resource:"agents"},e[0]=n.slug,e[1]=j):j=e[1];const s=ge(j),f=me(s);let C;e[2]===Symbol.for("react.memo_cache_sentinel")?(C={navigateOnCreate:!0},e[2]=C):C=e[2];const{createVirtualMCP:O,isCreating:w}=pe(C),B=ue();let N;e[3]===Symbol.for("react.memo_cache_sentinel")?(N={mode:"idle"},e[3]=N):N=e[3];const[r,y]=te.useReducer(be,N);let D;e[4]!==B||e[5]!==r.mode||e[6]!==r.virtualMcp?(D=async()=>{if(r.mode!=="deleting")return;const o=r.virtualMcp.id;y({type:"close"});try{await B.delete.mutateAsync(o)}catch{}},e[4]=B,e[5]=r.mode,e[6]=r.virtualMcp,e[7]=D):D=e[7];const R=D;let S,b,v,k,A,_;e[8]===Symbol.for("react.memo_cache_sentinel")?(S={id:"icon",header:"",render:Ke,cellClassName:"w-16 shrink-0",wrap:!0},b={id:"title",header:"Name",render:Ee,cellClassName:"w-48 min-w-0 shrink-0",sortable:!0},v={id:"description",header:"Description",render:Pe,cellClassName:"flex-1 min-w-0",wrap:!0,sortable:!0},k={id:"mode",header:"Mode",accessor:$e,cellClassName:"w-[100px]"},A={id:"connections",header:"Connections",render:Me,cellClassName:"w-24 shrink-0"},_={id:"status",header:"Status",render:ze,cellClassName:"w-24 shrink-0",sortable:!0},e[8]=S,e[9]=b,e[10]=v,e[11]=k,e[12]=A,e[13]=_):(S=e[8],b=e[9],v=e[10],k=e[11],A=e[12],_=e[13]);let I;e[14]!==i||e[15]!==n.slug?(I=[S,b,v,k,A,_,{id:"actions",header:"",render:o=>t.jsxs(Q,{children:[t.jsx(U,{asChild:!0,children:t.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Ie,children:t.jsx(Y,{size:20})})}),t.jsxs(X,{align:"end",onClick:_e,children:[t.jsxs(V,{onClick:a=>{a.stopPropagation(),i({to:"/$org/agents/$agentId",params:{org:n.slug,agentId:o.id}})},children:[t.jsx(J,{size:16}),"Open"]}),t.jsxs(V,{variant:"destructive",onClick:a=>{a.stopPropagation(),y({type:"delete",virtualMcp:o})},children:[t.jsx(Z,{size:16}),"Delete"]})]})]}),cellClassName:"w-12 shrink-0"}],e[14]=i,e[15]=n.slug,e[16]=I):I=e[16];const T=I,H=w?"Creating...":"Create Agent";let z;e[17]!==O||e[18]!==w||e[19]!==H?(z=t.jsx(G,{onClick:O,size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",disabled:w,children:H}),e[17]=O,e[18]=w,e[19]=H,e[20]=z):z=e[20];const L=z,F=r.mode==="deleting";let M;e[21]===Symbol.for("react.memo_cache_sentinel")?(M=o=>!o&&y({type:"close"}),e[21]=M):M=e[21];let $;e[22]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(fe,{children:"Delete Agent?"}),e[22]=$):$=e[22];const W=r.mode==="deleting"&&r.virtualMcp.title;let l;e[23]!==W?(l=t.jsxs(xe,{children:[$,t.jsxs(je,{children:["This action cannot be undone. This will permanently delete"," ",t.jsx("span",{className:"font-medium text-foreground",children:W}),"."]})]}),e[23]=W,e[24]=l):l=e[24];let P;e[25]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(Ce,{children:"Cancel"}),e[25]=P):P=e[25];let c;e[26]!==R?(c=t.jsxs(we,{children:[P,t.jsx(Ne,{onClick:R,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[26]=R,e[27]=c):c=e[27];let d;e[28]!==l||e[29]!==c?(d=t.jsxs(ye,{children:[l,c]}),e[28]=l,e[29]=c,e[30]=d):d=e[30];let m;e[31]!==F||e[32]!==d?(m=t.jsx(De,{open:F,onOpenChange:M,children:d}),e[31]=F,e[32]=d,e[33]=m):m=e[33];let E;e[34]===Symbol.for("react.memo_cache_sentinel")?(E=[{id:"title",label:"Name"},{id:"description",label:"Description"},{id:"status",label:"Status"}],e[34]=E):E=e[34];let u;e[35]!==L||e[36]!==s.handleSort||e[37]!==s.setViewMode||e[38]!==s.sortDirection||e[39]!==s.sortKey||e[40]!==s.viewMode?(u=t.jsx(ne,{title:"Agents",viewMode:s.viewMode,onViewModeChange:s.setViewMode,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,sortOptions:E,ctaButton:L}),e[35]=L,e[36]=s.handleSort,e[37]=s.setViewMode,e[38]=s.sortDirection,e[39]=s.sortKey,e[40]=s.viewMode,e[41]=u):u=e[41];let g;e[42]!==s?(g=o=>{o.key==="Escape"&&(s.setSearch(""),o.target.blur())},e[42]=s,e[43]=g):g=e[43];let p;e[44]!==s.search||e[45]!==s.setSearch||e[46]!==g?(p=t.jsx(ie,{value:s.search,onChange:s.setSearch,placeholder:"Search for an agent...",onKeyDown:g}),e[44]=s.search,e[45]=s.setSearch,e[46]=g,e[47]=p):p=e[47];let h;e[48]!==T||e[49]!==s.handleSort||e[50]!==s.search||e[51]!==s.sortDirection||e[52]!==s.sortKey||e[53]!==s.viewMode||e[54]!==i||e[55]!==n.slug||e[56]!==f?(h=s.viewMode==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:f.length===0?t.jsx(q,{image:t.jsx(x,{size:36,className:"text-muted-foreground"}),title:s.search?"No agents found":"No agents yet",description:s.search?`No agents match "${s.search}"`:"Create an agent to aggregate tools from multiple Connections."}):t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:f.map(o=>t.jsx(le,{connection:{id:o.id,title:o.title,description:o.description,icon:o.icon,status:o.status},fallbackIcon:t.jsx(x,{}),onClick:()=>i({to:"/$org/agents/$agentId",params:{org:n.slug,agentId:o.id}}),footer:t.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[t.jsxs("span",{children:[o.connections.length," connection",o.connections.length!==1?"s":""]}),t.jsx("span",{children:"•"}),t.jsx("span",{children:o.tool_selection_mode==="exclusion"?"Exclude":"Include"})]}),headerActions:t.jsxs(Q,{children:[t.jsx(U,{asChild:!0,children:t.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Ae,children:t.jsx(Y,{size:20})})}),t.jsxs(X,{align:"end",onClick:ke,children:[t.jsxs(V,{onClick:a=>{a.stopPropagation(),i({to:"/$org/agents/$agentId",params:{org:n.slug,agentId:o.id}})},children:[t.jsx(J,{size:16}),"Open"]}),t.jsxs(V,{variant:"destructive",onClick:a=>{a.stopPropagation(),y({type:"delete",virtualMcp:o})},children:[t.jsx(Z,{size:16}),"Delete"]})]})]})},o.id))})}):t.jsx(ae,{columns:T,data:f,isLoading:!1,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,onRowClick:o=>i({to:"/$org/agents/$agentId",params:{org:n.slug,agentId:o.id}}),emptyState:s.search?t.jsx(q,{image:t.jsx(x,{size:36,className:"text-muted-foreground"}),title:"No agents found",description:`No agents match "${s.search}"`}):t.jsx(q,{image:t.jsx(x,{size:36,className:"text-muted-foreground"}),title:"No agents yet",description:"Create an agent to aggregate tools from multiple Connections."})}),e[48]=T,e[49]=s.handleSort,e[50]=s.search,e[51]=s.sortDirection,e[52]=s.sortKey,e[53]=s.viewMode,e[54]=i,e[55]=n.slug,e[56]=f,e[57]=h):h=e[57];let K;return e[58]!==m||e[59]!==u||e[60]!==p||e[61]!==h?(K=t.jsxs(re,{children:[m,u,p,h]}),e[58]=m,e[59]=u,e[60]=p,e[61]=h,e[62]=K):K=e[62],K}function ke(e){return e.stopPropagation()}function Ae(e){return e.stopPropagation()}function _e(e){return e.stopPropagation()}function Ie(e){return e.stopPropagation()}function ze(e){return t.jsx(se,{variant:e.status==="active"?"default":"outline",children:e.status})}function Me(e){return t.jsx("span",{className:"text-sm text-muted-foreground",children:e.connections.length})}function $e(e){return t.jsx(se,{variant:"outline",className:"text-xs",children:e.tool_selection_mode==="exclusion"?"Exclude":"Include"})}function Pe(e){return t.jsx("span",{className:"text-sm text-foreground line-clamp-2",children:e.description||"—"})}function Ee(e){return t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.title})}function Ke(e){return t.jsx(ce,{icon:e.icon,name:e.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(x,{size:16})})}function ft(){const e=ee.c(1);let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(de,{children:t.jsx(te.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Se,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(ve,{})})}),e[0]=n):n=e[0],n}export{ft as default};
@@ -1,4 +1,4 @@
1
- import{r as i,a1 as m,j as r,bI as T,C as w,a6 as O,g as A,R as M,T as I,D as z,P as F,bJ as D,bK as L,a4 as G,bu as k,O as H,c as n}from"./index-Der4WAhG.js";import{c as p,b as v}from"./button-Cy99o_Nr.js";var x="AlertDialog",[V]=G(x,[D]),d=D(),N=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(M,{...a,...t,modal:!0})};N.displayName=x;var W="AlertDialogTrigger",Y=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(k,{...o,...a,ref:e})});Y.displayName=W;var q="AlertDialogPortal",y=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(F,{...a,...t})};y.displayName=q;var B="AlertDialogOverlay",_=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(H,{...o,...a,ref:e})});_.displayName=B;var f="AlertDialogContent",[J,K]=V(f),Q=L("AlertDialogContent"),b=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,children:a,...o}=l,s=d(t),c=i.useRef(null),S=m(e,c),u=i.useRef(null);return r.jsx(T,{contentName:f,titleName:j,docsSlug:"alert-dialog",children:r.jsx(J,{scope:t,cancelRef:u,children:r.jsxs(w,{role:"alertdialog",...s,...o,ref:S,onOpenAutoFocus:O(o.onOpenAutoFocus,g=>{g.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[r.jsx(Q,{children:a}),r.jsx(X,{contentRef:c})]})})})});b.displayName=f;var j="AlertDialogTitle",h=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(I,{...o,...a,ref:e})});h.displayName=j;var R="AlertDialogDescription",C=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(z,{...o,...a,ref:e})});C.displayName=R;var U="AlertDialogAction",E=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(A,{...o,...a,ref:e})});E.displayName=U;var $="AlertDialogCancel",P=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,{cancelRef:o}=K($,t),s=d(t),c=m(e,o);return r.jsx(A,{...s,...a,ref:c})});P.displayName=$;var X=({contentRef:l})=>{const e=`\`${f}\` requires a description for the component to be accessible for screen reader users.
1
+ import{r as i,a1 as m,j as r,bI as T,C as w,a6 as O,g as A,R as M,T as I,D as z,P as F,bJ as D,bK as L,a4 as G,bu as k,O as H,c as n}from"./index-RkAiu7dw.js";import{c as p,b as v}from"./button-BjyFV51s.js";var x="AlertDialog",[V]=G(x,[D]),d=D(),N=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(M,{...a,...t,modal:!0})};N.displayName=x;var W="AlertDialogTrigger",Y=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(k,{...o,...a,ref:e})});Y.displayName=W;var q="AlertDialogPortal",y=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(F,{...a,...t})};y.displayName=q;var B="AlertDialogOverlay",_=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(H,{...o,...a,ref:e})});_.displayName=B;var f="AlertDialogContent",[J,K]=V(f),Q=L("AlertDialogContent"),b=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,children:a,...o}=l,s=d(t),c=i.useRef(null),S=m(e,c),u=i.useRef(null);return r.jsx(T,{contentName:f,titleName:j,docsSlug:"alert-dialog",children:r.jsx(J,{scope:t,cancelRef:u,children:r.jsxs(w,{role:"alertdialog",...s,...o,ref:S,onOpenAutoFocus:O(o.onOpenAutoFocus,g=>{g.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[r.jsx(Q,{children:a}),r.jsx(X,{contentRef:c})]})})})});b.displayName=f;var j="AlertDialogTitle",h=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(I,{...o,...a,ref:e})});h.displayName=j;var R="AlertDialogDescription",C=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(z,{...o,...a,ref:e})});C.displayName=R;var U="AlertDialogAction",E=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(A,{...o,...a,ref:e})});E.displayName=U;var $="AlertDialogCancel",P=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,{cancelRef:o}=K($,t),s=d(t),c=m(e,o);return r.jsx(A,{...s,...a,ref:c})});P.displayName=$;var X=({contentRef:l})=>{const e=`\`${f}\` requires a description for the component to be accessible for screen reader users.
2
2
 
3
3
  You can add a description to the \`${f}\` by passing a \`${R}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
4
4
 
@@ -1 +1 @@
1
- import{c as r,d as m,j as n,A as o}from"./index-Der4WAhG.js";function i(){const e=r.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/auth/$pathname"},e[0]=t):t=e[0];const{pathname:s}=m(t);let a;return e[1]!==s?(a=n.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:n.jsx(o,{pathname:s})}),e[1]=s,e[2]=a):a=e[2],a}export{i as default};
1
+ import{c as r,d as m,j as n,A as o}from"./index-RkAiu7dw.js";function i(){const e=r.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/auth/$pathname"},e[0]=t):t=e[0];const{pathname:s}=m(t);let a;return e[1]!==s?(a=n.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:n.jsx(o,{pathname:s})}),e[1]=s,e[2]=a):a=e[2],a}export{i as default};