@decocms/mesh 2.24.0 → 2.25.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-CV_2Ske6.js → AlertCircle-3W_m-Fsi.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-BahOAMyC.js → ArrowLeft-DYI8t286.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-D7M3SswO.js → ArrowUp-vC2Zi9_R.js} +1 -1
  4. package/dist/client/assets/{Check-Cl1DPN8W.js → Check-B4FhLTO4.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-QptcKPPq.js → ChevronDown-BHnwuF4W.js} +1 -1
  6. package/dist/client/assets/{Code01-CSoaiT62.js → Code01-BtOJaBQv.js} +1 -1
  7. package/dist/client/assets/{Copy01-DsZYv9_9.js → Copy01-PEpHJeOd.js} +1 -1
  8. package/dist/client/assets/{DotsHorizontal-Aoyfmqeo.js → DotsHorizontal-DVbPehNV.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-DqzXFrVL.js → DotsVertical-Bzc4Gatf.js} +1 -1
  10. package/dist/client/assets/{Download01-DWGjnFFr.js → Download01-C66SDE0R.js} +1 -1
  11. package/dist/client/assets/{Edit01-BfNte4_5.js → Edit01-BNWHIUTG.js} +1 -1
  12. package/dist/client/assets/{File06-MyNxuf_W.js → File06-CK3PV4rY.js} +1 -1
  13. package/dist/client/assets/{FilterLines-D3Q31BkI.js → FilterLines-D7UwR7KZ.js} +1 -1
  14. package/dist/client/assets/{FlipBackward-vsVFh-C6.js → FlipBackward-BleS_v-U.js} +1 -1
  15. package/dist/client/assets/{GitBranch01-BqcP5DIB.js → GitBranch01-B5YMXdzm.js} +1 -1
  16. package/dist/client/assets/{Grid01-yvEs5TWW.js → Grid01-Dcc_Kw-0.js} +1 -1
  17. package/dist/client/assets/{Home02-DjFn6K-r.js → Home02-CPYtby_b.js} +1 -1
  18. package/dist/client/assets/{Image01-CYYkJQ3k.js → Image01-BIwZ6-CD.js} +1 -1
  19. package/dist/client/assets/{Inbox01-BhCAhDsN.js → Inbox01-fwfxdmtU.js} +1 -1
  20. package/dist/client/assets/{InfoCircle-D-tECwtz.js → InfoCircle-2SHEljrK.js} +1 -1
  21. package/dist/client/assets/{Key01-Yka-P-CN.js → Key01-SiAw-ip5.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-DgUNNdya.js → LinkExternal01-BJuCFr7S.js} +1 -1
  23. package/dist/client/assets/{List-BwQLP7Xm.js → List-C5kGBIj2.js} +1 -1
  24. package/dist/client/assets/{Loading01-BEWxFOsJ.js → Loading01-BGZ1XiOQ.js} +1 -1
  25. package/dist/client/assets/{Lock01-BhAPWcE3.js → Lock01-BTxHCdF8.js} +1 -1
  26. package/dist/client/assets/{Play-CekdqE6r.js → Play-Bt2r1Xrv.js} +1 -1
  27. package/dist/client/assets/{Plus-CnFAGbmk.js → Plus-CNhfCKJP.js} +1 -1
  28. package/dist/client/assets/{SearchMd-fJfE7iLY.js → SearchMd-BFmtT6AB.js} +1 -1
  29. package/dist/client/assets/{Terminal-ejweaysv.js → Terminal-b1QI07Qp.js} +1 -1
  30. package/dist/client/assets/{Trash01-uhyK-8nB.js → Trash01-CTUNxVBm.js} +1 -1
  31. package/dist/client/assets/{Upload01-BsNcOyJi.js → Upload01-vS7LmzJP.js} +1 -1
  32. package/dist/client/assets/{X-CxYkZpBQ.js → X-DZWdzEQ2.js} +1 -1
  33. package/dist/client/assets/{XClose-Y6oe-mwV.js → XClose-B6UZH6K7.js} +1 -1
  34. package/dist/client/assets/{agent-detail-BwHpiO3s.js → agent-detail-CdPNeu-w.js} +1 -1
  35. package/dist/client/assets/{agents-BHGOj2hY.js → agents-BMFOq1cD.js} +1 -1
  36. package/dist/client/assets/{alert-dialog-t9YTjfeS.js → alert-dialog-B1gGaxIy.js} +1 -1
  37. package/dist/client/assets/{auth-catchall-BeIbwmpd.js → auth-catchall-BGfl9DyV.js} +1 -1
  38. package/dist/client/assets/{avatar-63HLGHa6.js → avatar-BRM5gID6.js} +1 -1
  39. package/dist/client/assets/{badge-H3tu3alI.js → badge-DbfGipV0.js} +1 -1
  40. package/dist/client/assets/{binder-h-DAIqZk.js → binder-BhmVwgZs.js} +1 -1
  41. package/dist/client/assets/{button-BY0U_trB.js → button-DGFNdBvA.js} +1 -1
  42. package/dist/client/assets/{card-BgqGJlKn.js → card-C7V56esP.js} +1 -1
  43. package/dist/client/assets/{checkbox-B49kYNJ-.js → checkbox-DewrwTF-.js} +1 -1
  44. package/dist/client/assets/{collection-detail-BEvt6SJv.js → collection-detail-Rb5y7Iwp.js} +1 -1
  45. package/dist/client/assets/{collection-display-button-CKAn8RZK.js → collection-display-button-sJ1vCkku.js} +1 -1
  46. package/dist/client/assets/{collection-header-BCxNcaP0.js → collection-header-BLDLBpTZ.js} +1 -1
  47. package/dist/client/assets/{collection-page-4ehGOEaI.js → collection-page-DfW6PFSb.js} +1 -1
  48. package/dist/client/assets/{collection-search-DtIPt7nm.js → collection-search-BbDYzv2F.js} +1 -1
  49. package/dist/client/assets/{collection-tab-DaIWakkn.js → collection-tab-PNWFeuRB.js} +1 -1
  50. package/dist/client/assets/{collection-table-wrapper-BajIguAD.js → collection-table-wrapper-BBoyf5l0.js} +1 -1
  51. package/dist/client/assets/{connection-B9wsQJ4x.js → connection-CFT2rD3Y.js} +1 -1
  52. package/dist/client/assets/{connection-card-kOCwfSqa.js → connection-card-Cp5tWFAe.js} +1 -1
  53. package/dist/client/assets/{connection-detail-CeIMKRLP.js → connection-detail-cGn8ttlI.js} +1 -1
  54. package/dist/client/assets/{connections-CoWwPPSP.js → connections-Cl1oaJVk.js} +1 -1
  55. package/dist/client/assets/constants-B-C4kQbA.js +1 -0
  56. package/dist/client/assets/{create-organization-dialog-CO6Jpf4A.js → create-organization-dialog-DShw3SrU.js} +1 -1
  57. package/dist/client/assets/{dialog-iJAwIjfK.js → dialog-DrRN5T9B.js} +1 -1
  58. package/dist/client/assets/{dropdown-menu-DG1GIIwU.js → dropdown-menu-IL1YwGEs.js} +1 -1
  59. package/dist/client/assets/{dynamic-plugin-layout-DGRod1Lg.js → dynamic-plugin-layout-DOPRsROZ.js} +1 -1
  60. package/dist/client/assets/{empty-state-BTtikpWV.js → empty-state-B6Fzia3k.js} +1 -1
  61. package/dist/client/assets/{empty-state-CgGQoUxw.js → empty-state-DG-8Rgwf.js} +1 -1
  62. package/dist/client/assets/{env-vars-editor-5qNLK4j_.js → env-vars-editor-XVUBKNuI.js} +1 -1
  63. package/dist/client/assets/{error-boundary-Wp2wTq0T.js → error-boundary-D8Ei-eQB.js} +1 -1
  64. package/dist/client/assets/{extract-connection-data-BvlzvR4m.js → extract-connection-data-BEN3i8rq.js} +1 -1
  65. package/dist/client/assets/{file-browser-DwREbCtv.js → file-browser-cmO42V9X.js} +2 -2
  66. package/dist/client/assets/{form-C12U5i4A.js → form-BHuxfep8.js} +1 -1
  67. package/dist/client/assets/{grid-view-Dy0_lFLB.js → grid-view-BeKlIdKt.js} +1 -1
  68. package/dist/client/assets/{home-CTE_1w5Z.js → home-BZYfDXfg.js} +1 -1
  69. package/dist/client/assets/{index-C7jbdfWM.js → index-6p8pYyVk.js} +1 -1
  70. package/dist/client/assets/{index-BOoYPbIt.css → index-BIoHhQEt.css} +1 -1
  71. package/dist/client/assets/{index-BF36lrM0.js → index-CexdbKny.js} +2 -2
  72. package/dist/client/assets/{index-CezFL9px.js → index-D089AfF2.js} +1 -1
  73. package/dist/client/assets/{index-xvNq1s6k.js → index-DHPXzWI2.js} +1 -1
  74. package/dist/client/assets/{index-C62W55Yo.js → index-DZGZVyjC.js} +1 -1
  75. package/dist/client/assets/{infiniteQueryObserver-Cqhltp2W.js → infiniteQueryObserver-DSOFqwgw.js} +1 -1
  76. package/dist/client/assets/{input-CpdDHW2j.js → input-BTP3P3xF.js} +1 -1
  77. package/dist/client/assets/{layout-BLmqRDQz.js → layout-Dx8oOx42.js} +1 -1
  78. package/dist/client/assets/{localstorage-keys-DrYwgV-b.js → localstorage-keys-BpH8MrVb.js} +1 -1
  79. package/dist/client/assets/{login-BleXV37s.js → login-DmVZeIiU.js} +1 -1
  80. package/dist/client/assets/{mcp-oauth-CMNXgXw9.js → mcp-oauth-CqdT5Ux6.js} +1 -1
  81. package/dist/client/assets/{mcp-server-card-CLD0MlHi.js → mcp-server-card-Cz1RNfFs.js} +1 -1
  82. package/dist/client/assets/{mcp-server-detail-C8nn-cjk.js → mcp-server-detail-DSM6uBPB.js} +1 -1
  83. package/dist/client/assets/{members-BJsU2IDJ.js → members-Dz5hJ8N4.js} +1 -1
  84. package/dist/client/assets/{monaco-editor-CqsxwMR1.js → monaco-editor-cnPZS-Og.js} +1 -1
  85. package/dist/client/assets/{monitoring-DI2F2-gW.js → monitoring-vXgaC9bi.js} +1 -1
  86. package/dist/client/assets/{oauth-callback-BG19emHo.js → oauth-callback-tX-qpwuB.js} +1 -1
  87. package/dist/client/assets/{page-Dt-xJ0t7.js → page-CC_yBF2y.js} +1 -1
  88. package/dist/client/assets/{page-D3Fotx0f.js → page-DYwTybJ7.js} +1 -1
  89. package/dist/client/assets/{pin-to-sidebar-button-D-6-fLPf.js → pin-to-sidebar-button-eQ5IXY3U.js} +1 -1
  90. package/dist/client/assets/{plugin-empty-state-BvctpTEE.js → plugin-empty-state-hwolak6V.js} +1 -1
  91. package/dist/client/assets/{plugin-header-D41UNBLt.js → plugin-header-B2HJl6uN.js} +1 -1
  92. package/dist/client/assets/{plugins-C8gEzMs6.js → plugins-C9YAju3R.js} +1 -1
  93. package/dist/client/assets/{popover-BeoKBBM1.js → popover-ByUZTxRe.js} +1 -1
  94. package/dist/client/assets/{project-context-provider-DzsB7M-_.js → project-context-provider-D-EZcDmf.js} +1 -1
  95. package/dist/client/assets/{registry-utils-Bvv1buXq.js → registry-utils-TUazuS7s.js} +1 -1
  96. package/dist/client/assets/{resizable-_8uWIPP-.js → resizable-cj5ZM6OX.js} +1 -1
  97. package/dist/client/assets/{resource-tabs-BLyBe1s2.js → resource-tabs-DtWwP8ma.js} +1 -1
  98. package/dist/client/assets/{select-BIz3vvEQ.js → select-AhxnOTSV.js} +1 -1
  99. package/dist/client/assets/{settings-lkeLq0lX.js → settings-MTd4J0O6.js} +1 -1
  100. package/dist/client/assets/{shell-layout-DlLuXMY5.js → shell-layout-Dck6aPSx.js} +1 -1
  101. package/dist/client/assets/{spinner-CTVrJwKL.js → spinner-Dmre_I5T.js} +1 -1
  102. package/dist/client/assets/{switch-Dy4gwRqa.js → switch-D3vcgV_M.js} +1 -1
  103. package/dist/client/assets/{textarea-t5B3OM9P.js → textarea-nvtKfgZ6.js} +1 -1
  104. package/dist/client/assets/{tool-set-selector-ByauUXgY.js → tool-set-selector-CJF-YyBy.js} +1 -1
  105. package/dist/client/assets/{tools-list-BeACAG3i.js → tools-list-CrCBPq5B.js} +1 -1
  106. package/dist/client/assets/{tooltip-BK_1J9C_.js → tooltip-Bzt9TSoy.js} +1 -1
  107. package/dist/client/assets/{typewriter-title-Cg14Kxt7.js → typewriter-title-Bzxh0wvC.js} +1 -1
  108. package/dist/client/assets/{use-binding-Dye-n-yU.js → use-binding-CBeJwSaf.js} +1 -1
  109. package/dist/client/assets/{use-collections-Ckty0ghF.js → use-collections-HpDaPUjt.js} +1 -1
  110. package/dist/client/assets/{use-connection-DhKqHtbu.js → use-connection-6IWs4Iz3.js} +1 -1
  111. package/dist/client/assets/{use-connection-resources-AvDNzmBV.js → use-connection-resources-DV53P-i_.js} +1 -1
  112. package/dist/client/assets/{use-create-virtual-mcp-CRFUmT7b.js → use-create-virtual-mcp-DiLPU3nD.js} +1 -1
  113. package/dist/client/assets/{use-list-state-TtAnvO_b.js → use-list-state-_1r07pIM.js} +1 -1
  114. package/dist/client/assets/{use-mcp-CpX9yUli.js → use-mcp-C6V524NJ.js} +1 -1
  115. package/dist/client/assets/{use-members-TfLkqobx.js → use-members-BYodMH7B.js} +1 -1
  116. package/dist/client/assets/{use-mobile-hytGZ4u1.js → use-mobile-BbjF7byN.js} +1 -1
  117. package/dist/client/assets/{use-organization-settings-1IcqHHyX.js → use-organization-settings--vyLpBQ1.js} +1 -1
  118. package/dist/client/assets/{use-tool-call-BL77c1ZY.js → use-tool-call-DMOQC5y3.js} +1 -1
  119. package/dist/client/assets/{use-virtual-mcp-DkhKq3Hu.js → use-virtual-mcp-XnL0ZUJn.js} +1 -1
  120. package/dist/client/assets/{use-virtual-mcp-system-prompt-_ZIF4JTa.js → use-virtual-mcp-system-prompt-AMNsgyQB.js} +1 -1
  121. package/dist/client/assets/useInfiniteQuery-DvoFb9Fx.js +1 -0
  122. package/dist/client/assets/{useMutation-CwqnnhnA.js → useMutation-CVUYIVK0.js} +1 -1
  123. package/dist/client/assets/useQuery-CDyjJxWa.js +1 -0
  124. package/dist/client/assets/{value-DHIwgTGn.js → value-ZFhnirhh.js} +1 -1
  125. package/dist/client/assets/{view-mode-toggle-iqfK1oLC.js → view-mode-toggle-a1m1pL_s.js} +1 -1
  126. package/dist/client/assets/{workflow-Dx5p2iNU.js → workflow-B1mp8_G0.js} +1 -1
  127. package/dist/client/index.html +2 -2
  128. package/dist/server/cli.js +167 -161
  129. package/dist/server/server.js +163 -157
  130. package/package.json +1 -1
  131. package/dist/client/assets/constants-CQNxHBLU.js +0 -1
  132. package/dist/client/assets/useInfiniteQuery-V_LiOKxm.js +0 -1
  133. package/dist/client/assets/useQuery-Dx7rylpD.js +0 -1
@@ -1 +1 @@
1
- import{r}from"./index-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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-BF36lrM0.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-CexdbKny.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 C,_ as ve,y as re,I as D,z as _,c as P,j as t,f as Ue,d as tt,b as st,k as lt,af as ot,B as nt,E as it,t as Re}from"./index-BF36lrM0.js";import{I as ze,E as rt}from"./empty-state-CgGQoUxw.js";import{E as Fe}from"./error-boundary-Wp2wTq0T.js";import{C as We}from"./checkbox-B49kYNJ-.js";import{c as q,B as F}from"./button-BY0U_trB.js";import{i as ct}from"./ArrowLeft-BahOAMyC.js";import{u as He}from"./use-connection-DhKqHtbu.js";import{C as at}from"./collection-search-DtIPt7nm.js";import{I as Ae}from"./input-CpdDHW2j.js";import{s as dt}from"./Plus-CnFAGbmk.js";import{i as mt}from"./X-CxYkZpBQ.js";import{P as ut}from"./pin-to-sidebar-button-D-6-fLPf.js";import{T as ft}from"./tool-set-selector-ByauUXgY.js";import{b as ht,a as xt,i as pt}from"./use-virtual-mcp-DkhKq3Hu.js";import{u as gt,a as bt}from"./use-connection-resources-AvDNzmBV.js";import{u as jt}from"./use-virtual-mcp-system-prompt-_ZIF4JTa.js";import{s as qe}from"./slugify-CEUa2lfQ.js";import{B as Ge}from"./badge-H3tu3alI.js";import{a as vt,D as St,c as Ct,d as Nt}from"./dialog-iJAwIjfK.js";import{F as be,a as _t,b as Se,d as Ce,f as Ne,c as yt}from"./form-C12U5i4A.js";import{I as wt,R as kt,a as It}from"./index-C62W55Yo.js";import{R as Mt}from"./resource-tabs-BLyBe1s2.js";import{S as Tt,a as Pt,b as $t,c as Rt,d as De}from"./select-BIz3vvEQ.js";import{S as zt}from"./switch-Dy4gwRqa.js";import{T as At}from"./textarea-t5B3OM9P.js";import{a as Z,c as Y,b as J,T as Q}from"./tooltip-BK_1J9C_.js";import{i as Ze}from"./Check-Cl1DPN8W.js";import{i as Et}from"./Code01-CSoaiT62.js";import{a as Vt}from"./Copy01-DsZYv9_9.js";import{i as Dt}from"./FlipBackward-vsVFh-C6.js";import{i as je}from"./InfoCircle-D-tECwtz.js";import{i as $e}from"./Loading01-BEWxFOsJ.js";import{a as Lt,V as Ot,b as Bt}from"./layout-BLmqRDQz.js";import"./connection-B9wsQJ4x.js";import"./project-context-provider-DzsB7M-_.js";import"./use-collections-Ckty0ghF.js";import"./useMutation-CwqnnhnA.js";import"./SearchMd-fJfE7iLY.js";import"./use-organization-settings-1IcqHHyX.js";import"./localstorage-keys-DrYwgV-b.js";import"./useQuery-Dx7rylpD.js";import"./ChevronDown-QptcKPPq.js";const Ye=({size:l=24,color:e="currentColor",...s})=>C.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},C.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})=>C.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},C.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})=>C.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},C.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})=>C.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},C.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})=>C.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},C.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 Ee=ve(["inclusion","exclusion"]).describe("Tool selection mode: 'inclusion' = include selected (default), 'exclusion' = exclude selected"),Ut=re({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.")}),Ft=re({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:Ee.describe("Tool selection mode: 'inclusion' = include selected, 'exclusion' = exclude selected"),status:ve(["active","inactive"]).describe("Current status"),connections:D(Ut).describe("Connections with their selected tools (behavior depends on tool_selection_mode)")});re({title:_().min(1).max(255).describe("Name for the virtual MCP"),description:_().nullable().optional().describe("Optional description"),tool_selection_mode:Ee.optional().default("inclusion").describe("Tool selection mode (defaults to 'inclusion')"),icon:_().nullable().optional().describe("Optional icon URL"),status:ve(["active","inactive"]).optional().default("active").describe("Initial status"),connections:D(re({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)")});re({title:_().min(1).max(255).optional().describe("New name"),description:_().nullable().optional().describe("New description (null to clear)"),tool_selection_mode:Ee.optional().describe("New tool selection mode"),icon:_().nullable().optional().describe("New icon URL (null to clear)"),status:ve(["active","inactive"]).optional().describe("New status"),connections:D(re({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 Wt=C.memo(function(e){const s=P.c(20),{connection:o,isSelected:i,hasItemsEnabled:n,activeItemsCount:a,totalItemsCount:c,onSelect:u,onToggle:r}=e,d=i?"bg-accent/50":"hover:bg-muted/50";let f;s[0]!==d?(f=q("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 m;s[2]!==o.icon||s[3]!==o.title?(m=t.jsx(ze,{icon:o.icon,name:o.title,size:"xs"}),s[2]=o.icon,s[3]=o.title,s[4]=m):m=s[4];let p;s[5]!==o.title?(p=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]=p):p=s[6];let x;s[7]!==u||s[8]!==m||s[9]!==p?(x=t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:u,children:[m,p]}),s[7]=u,s[8]=m,s[9]=p,s[10]=x):x=s[10];let g;s[11]!==a||s[12]!==n||s[13]!==r||s[14]!==c?(g=c>0&&t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[a,"/",c]}),t.jsx(We,{checked:n,onCheckedChange:r,onClick:qt})]}),s[11]=a,s[12]=n,s[13]=r,s[14]=c,s[15]=g):g=s[15];let v;return s[16]!==f||s[17]!==x||s[18]!==g?(v=t.jsxs("div",{className:f,children:[x,g]}),s[16]=f,s[17]=x,s[18]=g,s[19]=v):v=s[19],v}),Ht=C.memo(function(e){const s=P.c(18),{connectionId:o,item:i,isSelected:n,onToggle:a}=e,c=`item-${o}-${i.id}`,u=n?"text-foreground":"text-muted-foreground";let r;s[0]!==u?(r=q("text-sm font-medium",u),s[0]=u,s[1]=r):r=s[1];let d;s[2]!==i.name||s[3]!==r?(d=t.jsx("div",{className:"flex items-center gap-2 mb-1",children:t.jsx("span",{className:r,children:i.name})}),s[2]=i.name,s[3]=r,s[4]=d):d=s[4];let f;s[5]!==i.description?(f=i.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:i.description}),s[5]=i.description,s[6]=f):f=s[6];let m;s[7]!==d||s[8]!==f?(m=t.jsxs("div",{className:"flex-1 min-w-0",children:[d,f]}),s[7]=d,s[8]=f,s[9]=m):m=s[9];const p=`item-${o}-${i.id}`;let x;s[10]!==n||s[11]!==a||s[12]!==p?(x=t.jsx("div",{className:"flex items-center shrink-0",children:t.jsx(We,{id:p,checked:n,onCheckedChange:a,onClick:Gt})}),s[10]=n,s[11]=a,s[12]=p,s[13]=x):x=s[13];let g;return s[14]!==c||s[15]!==m||s[16]!==x?(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:[m,x]}),s[14]=c,s[15]=m,s[16]=x,s[17]=g):g=s[17],g});function et({itemSet:l,onItemSetChange:e,getItems:s,itemLabel:o,emptyItemsMessage:i,extraContent:n}){const[a,c]=C.useState(""),u=C.useDeferredValue(a),[r,d]=C.useState("all"),[f,m]=C.useState(!1),p=C.useRef(new Set(Object.keys(l))),x=He({searchTerm:u.trim()||void 0}),g=p.current,v=[...g.values()].map(h=>x.find(N=>N.id===h)).filter(h=>h!==void 0),j=x.filter(h=>!g.has(h.id)),S=[...v,...j],b=h=>{const N=l[h];return N!==void 0&&N.length>0},y=S.filter(h=>{if(r==="all")return!0;const N=b(h.id);return r==="selected"?N:r==="unselected"?!N:!0}),[I,k]=C.useState(S[0]?.id??null),w=I?S.find(h=>h.id===I)??null:null,A=w?s(w):[],z=(h,N)=>l[h]?.includes(N)??!1,L=(h,N)=>{const $=l[h]??[],T=$.includes(N),W={...l};if(T){const H=$.filter(G=>G!==N);H.length===0?delete W[h]:W[h]=H}else W[h]=[...$,N];e(W)},B=h=>{const N=S.find(U=>U.id===h);if(!N)return;const $=s(N);if($.length===0)return;const T=l[h]??[],W=$.map(U=>U.id),H=T.length>0&&W.every(U=>T.includes(U)),G={...l};H?delete G[h]:(G[h]=W,k(h)),e(G)},R=h=>{k(h),m(!0)},E=()=>{m(!1)};return t.jsxs("div",{className:"flex h-full",children:[t.jsxs("div",{className:q("w-full md:w-80 border-r border-border flex flex-col",f&&"hidden md:flex"),children:[t.jsx(at,{value:a,onChange:c,placeholder:"Search Connections..."}),t.jsxs("div",{className:"flex gap-1 p-2 border-b border-border",children:[t.jsx("button",{onClick:()=>d("all"),className:q("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",r==="all"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"All"}),t.jsx("button",{onClick:()=>d("selected"),className:q("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",r==="selected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Selected"}),t.jsx("button",{onClick:()=>d("unselected"),className:q("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",r==="unselected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Unselected"})]}),t.jsx("div",{className:"flex-1 overflow-auto",children:y.length===0?t.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:a?"No connections found":r==="selected"?"No servers selected":r==="unselected"?"No unselected servers":"No connections available"}):t.jsx("div",{className:"p-2 space-y-1",children:y.map(h=>{const $=s(h).length,T=l[h.id]?.length??0;return t.jsx(Wt,{connection:h,isSelected:I===h.id,hasItemsEnabled:b(h.id),activeItemsCount:T,totalItemsCount:$,onSelect:()=>R(h.id),onToggle:()=>B(h.id)},h.id)})})})]}),t.jsx("div",{className:q("flex-1 flex-col",f?"flex":"hidden md:flex"),children:w?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(F,{variant:"ghost",size:"sm",onClick:E,className:"h-8 w-8 p-0 shrink-0",children:t.jsx(ct,{size:20})}),t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[t.jsx(ze,{icon:w.icon,name:w.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:w.title}),w.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:w.description})]})]})]}),n,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:i||`This connection has no ${o} available`}):t.jsx("div",{className:"space-y-2",children:A.map(h=>t.jsx(Ht,{connectionId:w.id,item:h,isSelected:z(w.id,h.id),onToggle:()=>L(w.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 qt(l){return l.stopPropagation()}function Gt(l){return l.stopPropagation()}function Zt(l){const e=P.c(6),{promptSet:s,onPromptSetChange:o,connectionPrompts:i}=l;let n;e[0]!==i?(n=u=>(i.get(u.id)??[]).map(Yt),e[0]=i,e[1]=n):n=e[1];const a=n;let c;return e[2]!==a||e[3]!==o||e[4]!==s?(c=t.jsx(et,{itemSet:s,onItemSetChange:o,getItems:a,itemLabel:"prompts",emptyItemsMessage:"This connection has no prompts available"}),e[2]=a,e[3]=o,e[4]=s,e[5]=c):c=e[5],c}function Yt(l){return{id:l.name,name:l.name,description:l.description}}function Jt(l){return l.includes("*")}function Qt(l){const e=P.c(27),{patterns:s,onAddPattern:o,onRemovePattern:i}=l,[n,a]=C.useState("");let c;e[0]!==n||e[1]!==o||e[2]!==s?(c=()=>{const m=n.trim();m&&!s.includes(m)&&(o(m),a(""))},e[0]=n,e[1]=o,e[2]=s,e[3]=c):c=e[3];const u=c;let r;e[4]!==u?(r=m=>{m.key==="Enter"&&(m.preventDefault(),u())},e[4]=u,e[5]=r):r=e[5];const d=r;let f;if(e[6]!==u||e[7]!==d||e[8]!==n||e[9]!==i||e[10]!==s){const m=s.filter(Jt);let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("code",{children:"*"}),e[12]=p):p=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsxs("div",{className:"text-xs text-muted-foreground",children:["Add URI patterns to match multiple resources. Use ",p," for single segment and ",t.jsx("code",{children:"**"})," for multiple segments."]}),e[13]=x):x=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=k=>a(k.target.value),e[14]=g):g=e[14];let v;e[15]!==d||e[16]!==n?(v=t.jsx(Ae,{value:n,onChange:g,onKeyDown:d,placeholder:"e.g., file:///**/*.ts or db://users/*",className:"flex-1 text-sm"}),e[15]=d,e[16]=n,e[17]=v):v=e[17];let j;e[18]!==n?(j=n.trim(),e[18]=n,e[19]=j):j=e[19];const S=!j;let b;e[20]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(dt,{size:16}),e[20]=b):b=e[20];let y;e[21]!==u||e[22]!==S?(y=t.jsx(F,{type:"button",variant:"outline",size:"sm",onClick:u,disabled:S,children:b}),e[21]=u,e[22]=S,e[23]=y):y=e[23];let I;e[24]!==y||e[25]!==v?(I=t.jsxs("div",{className:"flex gap-2",children:[v,y]}),e[24]=y,e[25]=v,e[26]=I):I=e[26],f=t.jsxs("div",{className:"border-b border-border p-4 space-y-3",children:[x,I,m.length>0&&t.jsx("div",{className:"flex flex-wrap gap-2",children:m.map(k=>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:k}),t.jsx("button",{type:"button",onClick:()=>i(k),className:"text-muted-foreground hover:text-foreground",children:t.jsx(mt,{size:12})})]},k))})]}),e[6]=u,e[7]=d,e[8]=n,e[9]=i,e[10]=s,e[11]=f}else f=e[11];return f}function Kt(l){const e=P.c(23),{resourceSet:s,onResourceSetChange:o,connectionResources:i}=l,[n]=C.useState(null);let a;e[0]!==i?(a=b=>(i.get(b.id)??[]).map(Xt),e[0]=i,e[1]=a):a=e[1];const c=a;let u;e[2]!==o||e[3]!==s?(u=(b,y)=>{const I=s[b]??[];I.includes(y)||o({...s,[b]:[...I,y]})},e[2]=o,e[3]=s,e[4]=u):u=e[4];const r=u;let d;e[5]!==o||e[6]!==s?(d=(b,y)=>{const k=(s[b]??[]).filter(w=>w!==y);if(k.length===0){const w={...s};delete w[b],o(w)}else o({...s,[b]:k})},e[5]=o,e[6]=s,e[7]=d):d=e[7];const f=d;let m;e[8]!==o?(m=b=>{o(b)},e[8]=o,e[9]=m):m=e[9];const p=m;let x;e[10]!==s||e[11]!==n?(x=n?s[n]??[]:[],e[10]=s,e[11]=n,e[12]=x):x=e[12];const g=x;let v;e[13]!==r||e[14]!==f||e[15]!==n||e[16]!==g?(v=n?t.jsx(Qt,{patterns:g,onAddPattern:b=>r(n,b),onRemovePattern:b=>f(n,b)}):null,e[13]=r,e[14]=f,e[15]=n,e[16]=g,e[17]=v):v=e[17];const j=v;let S;return e[18]!==j||e[19]!==c||e[20]!==p||e[21]!==s?(S=t.jsx("div",{className:"h-full",children:t.jsx(et,{itemSet:s,onItemSetChange:p,getItems:c,itemLabel:"resources",emptyItemsMessage:"This connection has no resources available",extraContent:j})}),e[18]=j,e[19]=c,e[20]=p,e[21]=s,e[22]=S):S=e[22],S}function Xt(l){return{id:l.uri,name:l.name||l.uri,description:l.description||l.uri}}function es(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 i;e[3]!==s?(i=q("grid gap-3",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==o||e[6]!==i?(n=t.jsx(kt,{"data-slot":"radio-group",className:i,...o}),e[5]=o,e[6]=i,e[7]=n):n=e[7],n}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 i;e[3]!==s?(i=q("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]=i):i=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(It,{"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]=n):n=e[5];let a;return e[6]!==o||e[7]!==i?(a=t.jsx(wt,{"data-slot":"radio-group-item",className:i,...o,children:n}),e[6]=o,e[7]=i,e[8]=a):a=e[8],a}function ts(l){const s=new TextEncoder().encode(l),o=Array.from(s,i=>String.fromCharCode(i)).join("");return btoa(o)}const ss=Ft.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 i=e.get(o.connection_id)??[];i.length>0&&(s[o.connection_id]=i)}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 Be(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 ls(l,e,s,o){const i=new Set([...Object.keys(l),...Object.keys(e),...Object.keys(s)]);return Array.from(i).map(n=>{const a=l[n]??[],c=o.get(n)??[],u=c.length>0&&c.every(r=>a.includes(r));return{connection_id:n,selected_tools:a.length===0||u?null:a,selected_resources:e[n]??null,selected_prompts:s[n]??null}})}function os(l){const e=P.c(10),{url:s}=l,[o,i]=C.useState(!1);let n;e[0]!==s?(n=async()=>{await navigator.clipboard.writeText(s),i(!0),Re.success("Agent URL copied to clipboard"),setTimeout(()=>i(!1),2e3)},e[0]=s,e[1]=n):n=e[1];const a=n;let c;e[2]!==o?(c=o?t.jsx(Ze,{size:20,className:"text-green-600"}):t.jsx(Vt,{size:20}),e[2]=o,e[3]=c):c=e[3];const u=o?"Copied!":"Copy URL";let r;e[4]!==u?(r=t.jsx("span",{className:"text-xs font-medium",children:u}),e[4]=u,e[5]=r):r=e[5];let d;return e[6]!==a||e[7]!==c||e[8]!==r?(d=t.jsxs(F,{type:"button",variant:"outline",onClick:a,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[c,r]}),e[6]=a,e[7]=c,e[8]=r,e[9]=d):d=e[9],d}function ns(l){const e=P.c(7),{url:s,serverName:o}=l;let i;e[0]!==o||e[1]!==s?(i=()=>{const r=qe(o),f=ts(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),m=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(r)}&config=${encodeURIComponent(f)}`;window.open(m,"_blank"),Re.success("Opening Cursor...")},e[0]=o,e[1]=s,e[2]=i):i=e[2];const n=i;let a,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=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]=a,e[4]=c):(a=e[3],c=e[4]);let u;return e[5]!==n?(u=t.jsxs(F,{type:"button",variant:"outline",onClick:n,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[a,c]}),e[5]=n,e[6]=u):u=e[6],u}function is(l){const e=P.c(11),{url:s,serverName:o}=l,[i,n]=C.useState(!1);let a;e[0]!==o||e[1]!==s?(a=async()=>{const m=qe(o),x=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),g=`claude mcp add "${m}" --config '${x.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(g),n(!0),Re.success("Claude Code command copied to clipboard"),setTimeout(()=>n(!1),2e3)},e[0]=o,e[1]=s,e[2]=a):a=e[2];const c=a;let u;e[3]!==i?(u=i?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]=i,e[4]=u):u=e[4];const r=i?"Copied!":"Install on Claude";let d;e[5]!==r?(d=t.jsx("span",{className:"text-xs font-medium",children:r}),e[5]=r,e[6]=d):d=e[6];let f;return e[7]!==c||e[8]!==u||e[9]!==d?(f=t.jsxs(F,{type:"button",variant:"outline",onClick:c,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[u,d]}),e[7]=c,e[8]=u,e[9]=d,e[10]=f):f=e[10],f}function rs(l){const e=P.c(40),{open:s,onOpenChange:o,virtualMcp:i}=l,[n,a]=C.useState("code_execution");let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=T=>{(T==="passthrough"||T==="smart_tool_selection"||T==="code_execution")&&a(T)},e[0]=c):c=e[0];const u=c;let r;e[1]!==n||e[2]!==i.id?(r=new URL(`/mcp/gateway/${i.id}`,window.location.origin),r.searchParams.set("mode",n),e[1]=n,e[2]=i.id,e[3]=r):r=e[3];let d;e[4]!==i.id||e[5]!==i.title?(d=i.title||`agent-${i.id.slice(0,8)}`,e[4]=i.id,e[5]=i.title,e[6]=d):d=e[6];const f=d;let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(vt,{children:t.jsx(St,{children:"Share Agent"})}),e[7]=m):m=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[8]=p):p=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Ye,{className:"size-5 text-muted-foreground"})}),e[9]=x):x=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(J,{asChild:!0,children:t.jsx(je,{className:"size-3.5 text-muted-foreground"})}),e[11]=v):v=e[11];let j;e[12]===Symbol.for("react.memo_cache_sentinel")?(j=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:[x,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(Z,{children:t.jsxs(Y,{children:[v,t.jsx(Q,{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]=j):j=e[12];let S;e[13]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Qe,{className:"size-5 text-muted-foreground"})}),e[13]=S):S=e[13];let b;e[14]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart discovery"}),e[14]=b):b=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(J,{asChild:!0,children:t.jsx(je,{className:"size-3.5 text-muted-foreground"})}),e[15]=y):y=e[15];let I;e[16]===Symbol.for("react.memo_cache_sentinel")?(I=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:[S,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[b,t.jsx(Z,{children:t.jsxs(Y,{children:[y,t.jsx(Q,{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]=I):I=e[16];let k;e[17]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Et,{className:"size-5 text-muted-foreground"})}),e[17]=k):k=e[17];let w;e[18]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart execution"}),e[18]=w):w=e[18];let A;e[19]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(J,{asChild:!0,children:t.jsx(je,{className:"size-3.5 text-muted-foreground"})}),e[19]=A):A=e[19];let z;e[20]===Symbol.for("react.memo_cache_sentinel")?(z=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:[k,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[w,t.jsx(Z,{children:t.jsxs(Y,{children:[A,t.jsx(Q,{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]=z):z=e[20];let L;e[21]!==n?(L=t.jsxs("div",{className:"flex flex-col gap-3",children:[p,t.jsxs(es,{value:n,onValueChange:u,className:"flex flex-col gap-4.5",children:[j,I,z]})]}),e[21]=n,e[22]=L):L=e[22];let B;e[23]!==r.href?(B=t.jsx(os,{url:r.href}),e[23]=r.href,e[24]=B):B=e[24];let R,E;e[25]!==f||e[26]!==r.href?(R=t.jsx(ns,{url:r.href,serverName:f}),E=t.jsx(is,{url:r.href,serverName:f}),e[25]=f,e[26]=r.href,e[27]=R,e[28]=E):(R=e[27],E=e[28]);let h;e[29]!==B||e[30]!==R||e[31]!==E?(h=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,E]})}),e[29]=B,e[30]=R,e[31]=E,e[32]=h):h=e[32];let N;e[33]!==L||e[34]!==h?(N=t.jsxs(Ct,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[m,t.jsxs("div",{className:"flex flex-col gap-6",children:[L,h]})]}),e[33]=L,e[34]=h,e[35]=N):N=e[35];let $;return e[36]!==o||e[37]!==s||e[38]!==N?($=t.jsx(Nt,{open:s,onOpenChange:o,children:N}),e[36]=o,e[37]=s,e[38]=N,e[39]=$):$=e[39],$}function cs(l){const e=P.c(31),{form:s,icon:o,virtualMcpId:i}=l,[n,a]=jt(i);let c;e[0]!==s?(c=s.watch("title")||"Agent",e[0]=s,e[1]=c):c=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(pt,{}),e[2]=u):u=e[2];let r;e[3]!==o||e[4]!==c?(r=t.jsx(ze,{icon:o,name:c,size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:u}),e[3]=o,e[4]=c,e[5]=r):r=e[5];let d;e[6]!==s.control?(d=t.jsx(be,{control:s.control,name:"status",render:us}),e[6]=s.control,e[7]=d):d=e[7];let f;e[8]!==r||e[9]!==d?(f=t.jsxs("div",{className:"flex items-start justify-between",children:[r,d]}),e[8]=r,e[9]=d,e[10]=f):f=e[10];let m;e[11]!==s.control?(m=t.jsxs("div",{className:"flex flex-col",children:[t.jsx(be,{control:s.control,name:"title",render:ms}),t.jsx(be,{control:s.control,name:"description",render:ds})]}),e[11]=s.control,e[12]=m):m=e[12];let p;e[13]!==f||e[14]!==m?(p=t.jsxs("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:[f,m]}),e[13]=f,e[14]=m,e[15]=p):p=e[15];let x;e[16]!==s.control?(x=t.jsx("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:t.jsx(be,{control:s.control,name:"tool_selection_mode",render:as})}),e[16]=s.control,e[17]=x):x=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]!==a?(v=y=>a(y.target.value),e[19]=a,e[20]=v):v=e[20];let j;e[21]!==n||e[22]!==v?(j=t.jsxs("div",{className:"flex flex-col gap-3 p-5",children:[g,t.jsx(At,{value:n,onChange:v,placeholder:"Enter system prompt instructions...",className:"min-h-[240px] resize-none text-sm leading-relaxed"})]}),e[21]=n,e[22]=v,e[23]=j):j=e[23];let S;e[24]!==j||e[25]!==p||e[26]!==x?(S=t.jsxs("div",{className:"flex flex-col",children:[p,x,j]}),e[24]=j,e[25]=p,e[26]=x,e[27]=S):S=e[27];let b;return e[28]!==s||e[29]!==S?(b=t.jsx("div",{className:"flex flex-col h-full overflow-auto",children:t.jsx(_t,{...s,children:S})}),e[28]=s,e[29]=S,e[30]=b):b=e[30],b}function as(l){const{field:e}=l;return t.jsxs(Se,{children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsx(yt,{className:"mb-0",children:"Selection Mode"}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(Z,{children:t.jsxs(Y,{children:[t.jsx(J,{asChild:!0,children:t.jsx(F,{type:"button",variant:"ghost",size:"icon",className:"size-7","aria-label":"Selection mode help",children:t.jsx(je,{size:14,className:"text-muted-foreground"})})}),t.jsx(Q,{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(Tt,{value:e.value,onValueChange:e.onChange,children:[t.jsx(Ce,{children:t.jsx(Pt,{className:"w-[180px]",children:t.jsx($t,{})})}),t.jsxs(Rt,{children:[t.jsx(De,{value:"inclusion",children:"Include Selected"}),t.jsx(De,{value:"exclusion",children:"Exclude Selected"})]})]})]})]}),t.jsx(Ne,{})]})}function ds(l){const{field:e}=l;return t.jsxs(Se,{className:"w-full space-y-0",children:[t.jsx(Ce,{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(Ne,{})]})}function ms(l){const{field:e}=l;return t.jsxs(Se,{className:"w-full space-y-0",children:[t.jsx(Ce,{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(Ne,{})]})}function us(l){const{field:e}=l;return t.jsxs(Se,{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(Ce,{children:t.jsx(zt,{checked:e.value==="active",onCheckedChange:s=>e.onChange(s?"active":"inactive")})})]}),t.jsx(Ne,{})]})}function fs(l){const e=P.c(81),{virtualMcp:s,virtualMcpId:o,requestedTabId:i}=l,a=lt().location.href,c=ot();let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={from:"/$org/agents/$agentId"},e[0]=u):u=e[0];const r=Ue(u),d=xt();let f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f={},e[1]=f):f=e[1];const m=He(f);let p;e[2]!==m?(p=m.map(xs),e[2]=m,e[3]=p):p=e[3];const x=p,{promptsMap:g}=gt(x),{resourcesMap:v}=bt(x);let j;if(e[4]!==m){j=new Map;for(const M of m)M.tools&&M.tools.length>0&&j.set(M.id,M.tools.map(hs));e[4]=m,e[5]=j}else j=e[5];let S;e[6]!==j||e[7]!==s?(S=()=>Le(s,j),e[6]=j,e[7]=s,e[8]=S):S=e[8];const[b,y]=C.useState(S);let I;e[9]!==s?(I=()=>Oe(s),e[9]=s,e[10]=I):I=e[10];const[k,w]=C.useState(I);let A;e[11]!==s?(A=()=>Be(s),e[11]=s,e[12]=A):A=e[12];const[z,L]=C.useState(A),[B,R]=C.useState(!1),[E,h]=C.useState(!1);let N;e[13]===Symbol.for("react.memo_cache_sentinel")?(N=M=>{y(M),R(!0)},e[13]=N):N=e[13];const $=N;let T;e[14]===Symbol.for("react.memo_cache_sentinel")?(T=M=>{w(M),R(!0)},e[14]=T):T=e[14];const W=T;let H;e[15]===Symbol.for("react.memo_cache_sentinel")?(H=M=>{L(M),R(!0)},e[15]=H):H=e[15];const G=H;let U;e[16]===Symbol.for("react.memo_cache_sentinel")?(U=nt(ss),e[16]=U):U=e[16];const _e=s.tool_selection_mode??"inclusion";let ae;e[17]!==_e||e[18]!==s.description||e[19]!==s.status||e[20]!==s.title?(ae={resolver:U,defaultValues:{title:s.title,description:s.description,status:s.status,tool_selection_mode:_e}},e[17]=_e,e[18]=s.description,e[19]=s.status,e[20]=s.title,e[21]=ae):ae=e[21];const O=it(ae),ye=O.formState.isDirty||B;let de;e[22]!==d.update||e[23]!==j||e[24]!==O||e[25]!==z||e[26]!==k||e[27]!==b||e[28]!==o?(de=async()=>{const M=O.getValues(),Te=ls(b,k,z,j);await d.update.mutateAsync({id:o,data:{title:M.title,description:M.description,status:M.status,tool_selection_mode:M.tool_selection_mode,connections:Te}}),O.reset(M),R(!1)},e[22]=d.update,e[23]=j,e[24]=O,e[25]=z,e[26]=k,e[27]=b,e[28]=o,e[29]=de):de=e[29];const we=de;let me;e[30]!==j||e[31]!==O||e[32]!==s?(me=()=>{O.reset({title:s.title,description:s.description,status:s.status,tool_selection_mode:s.tool_selection_mode??"inclusion"}),y(Le(s,j)),w(Oe(s)),L(Be(s)),R(!1)},e[30]=j,e[31]=O,e[32]=s,e[33]=me):me=e[33];const ke=me;let ue;e[34]===Symbol.for("react.memo_cache_sentinel")?(ue=[{id:"settings",label:"Settings"},{id:"tools",label:"Tools"},{id:"resources",label:"Resources"},{id:"prompts",label:"Prompts"}],e[34]=ue):ue=e[34];const Ve=ue,V=Ve.some(M=>M.id===i)?i:"settings";let fe;e[35]!==r?(fe=M=>{r({search:Te=>({...Te,tab:M}),replace:!0})},e[35]=r,e[36]=fe):fe=e[36];const Ie=fe,ce=d.update.isPending;let K;e[37]!==c.history?(K=()=>c.history.back(),e[37]=c.history,e[38]=K):K=e[38];let X;e[39]!==V||e[40]!==Ie?(X=t.jsx(Lt,{children:t.jsx(Mt,{tabs:Ve,activeTab:V,onTabChange:Ie})}),e[39]=V,e[40]=Ie,e[41]=X):X=e[41];let ee;e[42]!==ke||e[43]!==we||e[44]!==ye||e[45]!==ce?(ee=ye&&t.jsxs(t.Fragment,{children:[t.jsx(Z,{children:t.jsxs(Y,{delayDuration:0,children:[t.jsx(J,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(F,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:ce,onClick:ke,"aria-label":"Cancel",children:t.jsx(Dt,{size:14})})})}),t.jsx(Q,{side:"bottom",children:"Cancel"})]})}),t.jsx(Z,{children:t.jsxs(Y,{delayDuration:0,children:[t.jsx(J,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(F,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:ce,onClick:we,"aria-label":"Save",children:ce?t.jsx($e,{size:14,className:"animate-spin"}):t.jsx(Ke,{size:14})})})}),t.jsx(Q,{side:"bottom",children:"Save"})]})})]}),e[42]=ke,e[43]=we,e[44]=ye,e[45]=ce,e[46]=ee):ee=e[46];let he;e[47]===Symbol.for("react.memo_cache_sentinel")?(he=()=>h(!0),e[47]=he):he=e[47];let xe;e[48]===Symbol.for("react.memo_cache_sentinel")?(xe=t.jsx(Z,{children:t.jsxs(Y,{delayDuration:0,children:[t.jsx(J,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(F,{variant:"outline",size:"icon",className:"size-7 border border-input",onClick:he,"aria-label":"Share",children:t.jsx(Xe,{size:14})})})}),t.jsx(Q,{side:"bottom",children:"Share"})]})}),e[48]=xe):xe=e[48];const Me=s.icon??"cpu_chip";let te;e[49]!==Me||e[50]!==a||e[51]!==s.title?(te=t.jsx(ut,{title:s.title,url:a,icon:Me}),e[49]=Me,e[50]=a,e[51]=s.title,e[52]=te):te=e[52];let se;e[53]!==ee||e[54]!==te?(se=t.jsxs(Ot,{children:[ee,xe,te]}),e[53]=ee,e[54]=te,e[55]=se):se=e[55];let pe;e[56]===Symbol.for("react.memo_cache_sentinel")?(pe=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]=pe):pe=e[56];let le;e[57]!==V||e[58]!==g||e[59]!==v||e[60]!==O||e[61]!==z||e[62]!==k||e[63]!==b||e[64]!==s.icon||e[65]!==o?(le=V==="settings"?t.jsx(cs,{form:O,icon:s.icon,virtualMcpId:o}):V==="tools"?t.jsx(ft,{toolSet:b,onToolSetChange:$}):V==="resources"?t.jsx(Kt,{resourceSet:k,onResourceSetChange:W,connectionResources:v}):V==="prompts"?t.jsx(Zt,{promptSet:z,onPromptSetChange:G,connectionPrompts:g}):null,e[57]=V,e[58]=g,e[59]=v,e[60]=O,e[61]=z,e[62]=k,e[63]=b,e[64]=s.icon,e[65]=o,e[66]=le):le=e[66];let oe;e[67]!==le?(oe=t.jsx(C.Suspense,{fallback:pe,children:le}),e[67]=le,e[68]=oe):oe=e[68];let ne;e[69]!==V||e[70]!==oe?(ne=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:oe},V)})})}),e[69]=V,e[70]=oe,e[71]=ne):ne=e[71];let ie;e[72]!==E||e[73]!==s?(ie=t.jsx(rs,{open:E,onOpenChange:h,virtualMcp:s}),e[72]=E,e[73]=s,e[74]=ie):ie=e[74];let ge;return e[75]!==K||e[76]!==X||e[77]!==se||e[78]!==ne||e[79]!==ie?(ge=t.jsxs(Bt,{onBack:K,children:[X,se,ne,ie]}),e[75]=K,e[76]=X,e[77]=se,e[78]=ne,e[79]=ie,e[80]=ge):ge=e[80],ge}function hs(l){return l.name}function xs(l){return l.id}function ps(){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=Ue(e);let o;l[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},l[1]=o):o=l[1];const i=tt(o),{org:n}=i,a=i.agentId??i.virtualMcpId??i.gatewayId??"";let c;l[2]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},l[2]=c):c=l[2];const r=st(c).tab||"settings",d=ht(a);if(!d){let m;return l[3]!==s||l[4]!==n?(m=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(rt,{title:"Agent not found",description:"This Agent may have been deleted or you may not have access.",actions:t.jsx(F,{variant:"outline",onClick:()=>s({to:"/$org/agents",params:{org:n}}),children:"Back to agents"})})}),l[3]=s,l[4]=n,l[5]=m):m=l[5],m}let f;return l[6]!==r||l[7]!==d||l[8]!==a?(f=t.jsx(fs,{virtualMcp:d,virtualMcpId:a,requestedTabId:r}),l[6]=r,l[7]=d,l[8]=a,l[9]=f):f=l[9],f}function gs(){const l=P.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Fe,{children:t.jsx(C.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(ps,{})})}),l[0]=e):e=l[0],e}function rl(){const l=P.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(gs,{}),l[0]=e):e=l[0],e}export{rl as default};
1
+ import{r as C,_ as ve,y as re,I as D,z as _,c as P,j as t,f as Ue,d as tt,b as st,k as lt,af as ot,B as nt,E as it,t as Re}from"./index-CexdbKny.js";import{I as ze,E as rt}from"./empty-state-DG-8Rgwf.js";import{E as Fe}from"./error-boundary-D8Ei-eQB.js";import{C as We}from"./checkbox-DewrwTF-.js";import{c as q,B as F}from"./button-DGFNdBvA.js";import{i as ct}from"./ArrowLeft-DYI8t286.js";import{u as He}from"./use-connection-6IWs4Iz3.js";import{C as at}from"./collection-search-BbDYzv2F.js";import{I as Ae}from"./input-BTP3P3xF.js";import{s as dt}from"./Plus-CNhfCKJP.js";import{i as mt}from"./X-DZWdzEQ2.js";import{P as ut}from"./pin-to-sidebar-button-eQ5IXY3U.js";import{T as ft}from"./tool-set-selector-CJF-YyBy.js";import{b as ht,a as xt,i as pt}from"./use-virtual-mcp-XnL0ZUJn.js";import{u as gt,a as bt}from"./use-connection-resources-DV53P-i_.js";import{u as jt}from"./use-virtual-mcp-system-prompt-AMNsgyQB.js";import{s as qe}from"./slugify-CEUa2lfQ.js";import{B as Ge}from"./badge-DbfGipV0.js";import{a as vt,D as St,c as Ct,d as Nt}from"./dialog-DrRN5T9B.js";import{F as be,a as _t,b as Se,d as Ce,f as Ne,c as yt}from"./form-BHuxfep8.js";import{I as wt,R as kt,a as It}from"./index-DZGZVyjC.js";import{R as Mt}from"./resource-tabs-DtWwP8ma.js";import{S as Tt,a as Pt,b as $t,c as Rt,d as De}from"./select-AhxnOTSV.js";import{S as zt}from"./switch-D3vcgV_M.js";import{T as At}from"./textarea-nvtKfgZ6.js";import{a as Z,c as Y,b as J,T as Q}from"./tooltip-Bzt9TSoy.js";import{i as Ze}from"./Check-B4FhLTO4.js";import{i as Et}from"./Code01-BtOJaBQv.js";import{a as Vt}from"./Copy01-PEpHJeOd.js";import{i as Dt}from"./FlipBackward-BleS_v-U.js";import{i as je}from"./InfoCircle-2SHEljrK.js";import{i as $e}from"./Loading01-BGZ1XiOQ.js";import{a as Lt,V as Ot,b as Bt}from"./layout-Dx8oOx42.js";import"./connection-CFT2rD3Y.js";import"./project-context-provider-D-EZcDmf.js";import"./use-collections-HpDaPUjt.js";import"./useMutation-CVUYIVK0.js";import"./SearchMd-BFmtT6AB.js";import"./use-organization-settings--vyLpBQ1.js";import"./localstorage-keys-BpH8MrVb.js";import"./useQuery-CDyjJxWa.js";import"./ChevronDown-BHnwuF4W.js";const Ye=({size:l=24,color:e="currentColor",...s})=>C.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},C.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})=>C.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},C.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})=>C.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},C.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})=>C.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},C.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})=>C.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},C.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 Ee=ve(["inclusion","exclusion"]).describe("Tool selection mode: 'inclusion' = include selected (default), 'exclusion' = exclude selected"),Ut=re({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.")}),Ft=re({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:Ee.describe("Tool selection mode: 'inclusion' = include selected, 'exclusion' = exclude selected"),status:ve(["active","inactive"]).describe("Current status"),connections:D(Ut).describe("Connections with their selected tools (behavior depends on tool_selection_mode)")});re({title:_().min(1).max(255).describe("Name for the virtual MCP"),description:_().nullable().optional().describe("Optional description"),tool_selection_mode:Ee.optional().default("inclusion").describe("Tool selection mode (defaults to 'inclusion')"),icon:_().nullable().optional().describe("Optional icon URL"),status:ve(["active","inactive"]).optional().default("active").describe("Initial status"),connections:D(re({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)")});re({title:_().min(1).max(255).optional().describe("New name"),description:_().nullable().optional().describe("New description (null to clear)"),tool_selection_mode:Ee.optional().describe("New tool selection mode"),icon:_().nullable().optional().describe("New icon URL (null to clear)"),status:ve(["active","inactive"]).optional().describe("New status"),connections:D(re({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 Wt=C.memo(function(e){const s=P.c(20),{connection:o,isSelected:i,hasItemsEnabled:n,activeItemsCount:a,totalItemsCount:c,onSelect:u,onToggle:r}=e,d=i?"bg-accent/50":"hover:bg-muted/50";let f;s[0]!==d?(f=q("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 m;s[2]!==o.icon||s[3]!==o.title?(m=t.jsx(ze,{icon:o.icon,name:o.title,size:"xs"}),s[2]=o.icon,s[3]=o.title,s[4]=m):m=s[4];let p;s[5]!==o.title?(p=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]=p):p=s[6];let x;s[7]!==u||s[8]!==m||s[9]!==p?(x=t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:u,children:[m,p]}),s[7]=u,s[8]=m,s[9]=p,s[10]=x):x=s[10];let g;s[11]!==a||s[12]!==n||s[13]!==r||s[14]!==c?(g=c>0&&t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[a,"/",c]}),t.jsx(We,{checked:n,onCheckedChange:r,onClick:qt})]}),s[11]=a,s[12]=n,s[13]=r,s[14]=c,s[15]=g):g=s[15];let v;return s[16]!==f||s[17]!==x||s[18]!==g?(v=t.jsxs("div",{className:f,children:[x,g]}),s[16]=f,s[17]=x,s[18]=g,s[19]=v):v=s[19],v}),Ht=C.memo(function(e){const s=P.c(18),{connectionId:o,item:i,isSelected:n,onToggle:a}=e,c=`item-${o}-${i.id}`,u=n?"text-foreground":"text-muted-foreground";let r;s[0]!==u?(r=q("text-sm font-medium",u),s[0]=u,s[1]=r):r=s[1];let d;s[2]!==i.name||s[3]!==r?(d=t.jsx("div",{className:"flex items-center gap-2 mb-1",children:t.jsx("span",{className:r,children:i.name})}),s[2]=i.name,s[3]=r,s[4]=d):d=s[4];let f;s[5]!==i.description?(f=i.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:i.description}),s[5]=i.description,s[6]=f):f=s[6];let m;s[7]!==d||s[8]!==f?(m=t.jsxs("div",{className:"flex-1 min-w-0",children:[d,f]}),s[7]=d,s[8]=f,s[9]=m):m=s[9];const p=`item-${o}-${i.id}`;let x;s[10]!==n||s[11]!==a||s[12]!==p?(x=t.jsx("div",{className:"flex items-center shrink-0",children:t.jsx(We,{id:p,checked:n,onCheckedChange:a,onClick:Gt})}),s[10]=n,s[11]=a,s[12]=p,s[13]=x):x=s[13];let g;return s[14]!==c||s[15]!==m||s[16]!==x?(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:[m,x]}),s[14]=c,s[15]=m,s[16]=x,s[17]=g):g=s[17],g});function et({itemSet:l,onItemSetChange:e,getItems:s,itemLabel:o,emptyItemsMessage:i,extraContent:n}){const[a,c]=C.useState(""),u=C.useDeferredValue(a),[r,d]=C.useState("all"),[f,m]=C.useState(!1),p=C.useRef(new Set(Object.keys(l))),x=He({searchTerm:u.trim()||void 0}),g=p.current,v=[...g.values()].map(h=>x.find(N=>N.id===h)).filter(h=>h!==void 0),j=x.filter(h=>!g.has(h.id)),S=[...v,...j],b=h=>{const N=l[h];return N!==void 0&&N.length>0},y=S.filter(h=>{if(r==="all")return!0;const N=b(h.id);return r==="selected"?N:r==="unselected"?!N:!0}),[I,k]=C.useState(S[0]?.id??null),w=I?S.find(h=>h.id===I)??null:null,A=w?s(w):[],z=(h,N)=>l[h]?.includes(N)??!1,L=(h,N)=>{const $=l[h]??[],T=$.includes(N),W={...l};if(T){const H=$.filter(G=>G!==N);H.length===0?delete W[h]:W[h]=H}else W[h]=[...$,N];e(W)},B=h=>{const N=S.find(U=>U.id===h);if(!N)return;const $=s(N);if($.length===0)return;const T=l[h]??[],W=$.map(U=>U.id),H=T.length>0&&W.every(U=>T.includes(U)),G={...l};H?delete G[h]:(G[h]=W,k(h)),e(G)},R=h=>{k(h),m(!0)},E=()=>{m(!1)};return t.jsxs("div",{className:"flex h-full",children:[t.jsxs("div",{className:q("w-full md:w-80 border-r border-border flex flex-col",f&&"hidden md:flex"),children:[t.jsx(at,{value:a,onChange:c,placeholder:"Search Connections..."}),t.jsxs("div",{className:"flex gap-1 p-2 border-b border-border",children:[t.jsx("button",{onClick:()=>d("all"),className:q("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",r==="all"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"All"}),t.jsx("button",{onClick:()=>d("selected"),className:q("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",r==="selected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Selected"}),t.jsx("button",{onClick:()=>d("unselected"),className:q("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",r==="unselected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Unselected"})]}),t.jsx("div",{className:"flex-1 overflow-auto",children:y.length===0?t.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:a?"No connections found":r==="selected"?"No servers selected":r==="unselected"?"No unselected servers":"No connections available"}):t.jsx("div",{className:"p-2 space-y-1",children:y.map(h=>{const $=s(h).length,T=l[h.id]?.length??0;return t.jsx(Wt,{connection:h,isSelected:I===h.id,hasItemsEnabled:b(h.id),activeItemsCount:T,totalItemsCount:$,onSelect:()=>R(h.id),onToggle:()=>B(h.id)},h.id)})})})]}),t.jsx("div",{className:q("flex-1 flex-col",f?"flex":"hidden md:flex"),children:w?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(F,{variant:"ghost",size:"sm",onClick:E,className:"h-8 w-8 p-0 shrink-0",children:t.jsx(ct,{size:20})}),t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[t.jsx(ze,{icon:w.icon,name:w.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:w.title}),w.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:w.description})]})]})]}),n,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:i||`This connection has no ${o} available`}):t.jsx("div",{className:"space-y-2",children:A.map(h=>t.jsx(Ht,{connectionId:w.id,item:h,isSelected:z(w.id,h.id),onToggle:()=>L(w.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 qt(l){return l.stopPropagation()}function Gt(l){return l.stopPropagation()}function Zt(l){const e=P.c(6),{promptSet:s,onPromptSetChange:o,connectionPrompts:i}=l;let n;e[0]!==i?(n=u=>(i.get(u.id)??[]).map(Yt),e[0]=i,e[1]=n):n=e[1];const a=n;let c;return e[2]!==a||e[3]!==o||e[4]!==s?(c=t.jsx(et,{itemSet:s,onItemSetChange:o,getItems:a,itemLabel:"prompts",emptyItemsMessage:"This connection has no prompts available"}),e[2]=a,e[3]=o,e[4]=s,e[5]=c):c=e[5],c}function Yt(l){return{id:l.name,name:l.name,description:l.description}}function Jt(l){return l.includes("*")}function Qt(l){const e=P.c(27),{patterns:s,onAddPattern:o,onRemovePattern:i}=l,[n,a]=C.useState("");let c;e[0]!==n||e[1]!==o||e[2]!==s?(c=()=>{const m=n.trim();m&&!s.includes(m)&&(o(m),a(""))},e[0]=n,e[1]=o,e[2]=s,e[3]=c):c=e[3];const u=c;let r;e[4]!==u?(r=m=>{m.key==="Enter"&&(m.preventDefault(),u())},e[4]=u,e[5]=r):r=e[5];const d=r;let f;if(e[6]!==u||e[7]!==d||e[8]!==n||e[9]!==i||e[10]!==s){const m=s.filter(Jt);let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("code",{children:"*"}),e[12]=p):p=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsxs("div",{className:"text-xs text-muted-foreground",children:["Add URI patterns to match multiple resources. Use ",p," for single segment and ",t.jsx("code",{children:"**"})," for multiple segments."]}),e[13]=x):x=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=k=>a(k.target.value),e[14]=g):g=e[14];let v;e[15]!==d||e[16]!==n?(v=t.jsx(Ae,{value:n,onChange:g,onKeyDown:d,placeholder:"e.g., file:///**/*.ts or db://users/*",className:"flex-1 text-sm"}),e[15]=d,e[16]=n,e[17]=v):v=e[17];let j;e[18]!==n?(j=n.trim(),e[18]=n,e[19]=j):j=e[19];const S=!j;let b;e[20]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(dt,{size:16}),e[20]=b):b=e[20];let y;e[21]!==u||e[22]!==S?(y=t.jsx(F,{type:"button",variant:"outline",size:"sm",onClick:u,disabled:S,children:b}),e[21]=u,e[22]=S,e[23]=y):y=e[23];let I;e[24]!==y||e[25]!==v?(I=t.jsxs("div",{className:"flex gap-2",children:[v,y]}),e[24]=y,e[25]=v,e[26]=I):I=e[26],f=t.jsxs("div",{className:"border-b border-border p-4 space-y-3",children:[x,I,m.length>0&&t.jsx("div",{className:"flex flex-wrap gap-2",children:m.map(k=>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:k}),t.jsx("button",{type:"button",onClick:()=>i(k),className:"text-muted-foreground hover:text-foreground",children:t.jsx(mt,{size:12})})]},k))})]}),e[6]=u,e[7]=d,e[8]=n,e[9]=i,e[10]=s,e[11]=f}else f=e[11];return f}function Kt(l){const e=P.c(23),{resourceSet:s,onResourceSetChange:o,connectionResources:i}=l,[n]=C.useState(null);let a;e[0]!==i?(a=b=>(i.get(b.id)??[]).map(Xt),e[0]=i,e[1]=a):a=e[1];const c=a;let u;e[2]!==o||e[3]!==s?(u=(b,y)=>{const I=s[b]??[];I.includes(y)||o({...s,[b]:[...I,y]})},e[2]=o,e[3]=s,e[4]=u):u=e[4];const r=u;let d;e[5]!==o||e[6]!==s?(d=(b,y)=>{const k=(s[b]??[]).filter(w=>w!==y);if(k.length===0){const w={...s};delete w[b],o(w)}else o({...s,[b]:k})},e[5]=o,e[6]=s,e[7]=d):d=e[7];const f=d;let m;e[8]!==o?(m=b=>{o(b)},e[8]=o,e[9]=m):m=e[9];const p=m;let x;e[10]!==s||e[11]!==n?(x=n?s[n]??[]:[],e[10]=s,e[11]=n,e[12]=x):x=e[12];const g=x;let v;e[13]!==r||e[14]!==f||e[15]!==n||e[16]!==g?(v=n?t.jsx(Qt,{patterns:g,onAddPattern:b=>r(n,b),onRemovePattern:b=>f(n,b)}):null,e[13]=r,e[14]=f,e[15]=n,e[16]=g,e[17]=v):v=e[17];const j=v;let S;return e[18]!==j||e[19]!==c||e[20]!==p||e[21]!==s?(S=t.jsx("div",{className:"h-full",children:t.jsx(et,{itemSet:s,onItemSetChange:p,getItems:c,itemLabel:"resources",emptyItemsMessage:"This connection has no resources available",extraContent:j})}),e[18]=j,e[19]=c,e[20]=p,e[21]=s,e[22]=S):S=e[22],S}function Xt(l){return{id:l.uri,name:l.name||l.uri,description:l.description||l.uri}}function es(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 i;e[3]!==s?(i=q("grid gap-3",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==o||e[6]!==i?(n=t.jsx(kt,{"data-slot":"radio-group",className:i,...o}),e[5]=o,e[6]=i,e[7]=n):n=e[7],n}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 i;e[3]!==s?(i=q("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]=i):i=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(It,{"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]=n):n=e[5];let a;return e[6]!==o||e[7]!==i?(a=t.jsx(wt,{"data-slot":"radio-group-item",className:i,...o,children:n}),e[6]=o,e[7]=i,e[8]=a):a=e[8],a}function ts(l){const s=new TextEncoder().encode(l),o=Array.from(s,i=>String.fromCharCode(i)).join("");return btoa(o)}const ss=Ft.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 i=e.get(o.connection_id)??[];i.length>0&&(s[o.connection_id]=i)}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 Be(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 ls(l,e,s,o){const i=new Set([...Object.keys(l),...Object.keys(e),...Object.keys(s)]);return Array.from(i).map(n=>{const a=l[n]??[],c=o.get(n)??[],u=c.length>0&&c.every(r=>a.includes(r));return{connection_id:n,selected_tools:a.length===0||u?null:a,selected_resources:e[n]??null,selected_prompts:s[n]??null}})}function os(l){const e=P.c(10),{url:s}=l,[o,i]=C.useState(!1);let n;e[0]!==s?(n=async()=>{await navigator.clipboard.writeText(s),i(!0),Re.success("Agent URL copied to clipboard"),setTimeout(()=>i(!1),2e3)},e[0]=s,e[1]=n):n=e[1];const a=n;let c;e[2]!==o?(c=o?t.jsx(Ze,{size:20,className:"text-green-600"}):t.jsx(Vt,{size:20}),e[2]=o,e[3]=c):c=e[3];const u=o?"Copied!":"Copy URL";let r;e[4]!==u?(r=t.jsx("span",{className:"text-xs font-medium",children:u}),e[4]=u,e[5]=r):r=e[5];let d;return e[6]!==a||e[7]!==c||e[8]!==r?(d=t.jsxs(F,{type:"button",variant:"outline",onClick:a,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[c,r]}),e[6]=a,e[7]=c,e[8]=r,e[9]=d):d=e[9],d}function ns(l){const e=P.c(7),{url:s,serverName:o}=l;let i;e[0]!==o||e[1]!==s?(i=()=>{const r=qe(o),f=ts(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),m=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(r)}&config=${encodeURIComponent(f)}`;window.open(m,"_blank"),Re.success("Opening Cursor...")},e[0]=o,e[1]=s,e[2]=i):i=e[2];const n=i;let a,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=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]=a,e[4]=c):(a=e[3],c=e[4]);let u;return e[5]!==n?(u=t.jsxs(F,{type:"button",variant:"outline",onClick:n,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[a,c]}),e[5]=n,e[6]=u):u=e[6],u}function is(l){const e=P.c(11),{url:s,serverName:o}=l,[i,n]=C.useState(!1);let a;e[0]!==o||e[1]!==s?(a=async()=>{const m=qe(o),x=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),g=`claude mcp add "${m}" --config '${x.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(g),n(!0),Re.success("Claude Code command copied to clipboard"),setTimeout(()=>n(!1),2e3)},e[0]=o,e[1]=s,e[2]=a):a=e[2];const c=a;let u;e[3]!==i?(u=i?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]=i,e[4]=u):u=e[4];const r=i?"Copied!":"Install on Claude";let d;e[5]!==r?(d=t.jsx("span",{className:"text-xs font-medium",children:r}),e[5]=r,e[6]=d):d=e[6];let f;return e[7]!==c||e[8]!==u||e[9]!==d?(f=t.jsxs(F,{type:"button",variant:"outline",onClick:c,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[u,d]}),e[7]=c,e[8]=u,e[9]=d,e[10]=f):f=e[10],f}function rs(l){const e=P.c(40),{open:s,onOpenChange:o,virtualMcp:i}=l,[n,a]=C.useState("code_execution");let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=T=>{(T==="passthrough"||T==="smart_tool_selection"||T==="code_execution")&&a(T)},e[0]=c):c=e[0];const u=c;let r;e[1]!==n||e[2]!==i.id?(r=new URL(`/mcp/gateway/${i.id}`,window.location.origin),r.searchParams.set("mode",n),e[1]=n,e[2]=i.id,e[3]=r):r=e[3];let d;e[4]!==i.id||e[5]!==i.title?(d=i.title||`agent-${i.id.slice(0,8)}`,e[4]=i.id,e[5]=i.title,e[6]=d):d=e[6];const f=d;let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(vt,{children:t.jsx(St,{children:"Share Agent"})}),e[7]=m):m=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[8]=p):p=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Ye,{className:"size-5 text-muted-foreground"})}),e[9]=x):x=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(J,{asChild:!0,children:t.jsx(je,{className:"size-3.5 text-muted-foreground"})}),e[11]=v):v=e[11];let j;e[12]===Symbol.for("react.memo_cache_sentinel")?(j=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:[x,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(Z,{children:t.jsxs(Y,{children:[v,t.jsx(Q,{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]=j):j=e[12];let S;e[13]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Qe,{className:"size-5 text-muted-foreground"})}),e[13]=S):S=e[13];let b;e[14]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart discovery"}),e[14]=b):b=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx(J,{asChild:!0,children:t.jsx(je,{className:"size-3.5 text-muted-foreground"})}),e[15]=y):y=e[15];let I;e[16]===Symbol.for("react.memo_cache_sentinel")?(I=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:[S,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[b,t.jsx(Z,{children:t.jsxs(Y,{children:[y,t.jsx(Q,{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]=I):I=e[16];let k;e[17]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Et,{className:"size-5 text-muted-foreground"})}),e[17]=k):k=e[17];let w;e[18]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart execution"}),e[18]=w):w=e[18];let A;e[19]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(J,{asChild:!0,children:t.jsx(je,{className:"size-3.5 text-muted-foreground"})}),e[19]=A):A=e[19];let z;e[20]===Symbol.for("react.memo_cache_sentinel")?(z=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:[k,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[w,t.jsx(Z,{children:t.jsxs(Y,{children:[A,t.jsx(Q,{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]=z):z=e[20];let L;e[21]!==n?(L=t.jsxs("div",{className:"flex flex-col gap-3",children:[p,t.jsxs(es,{value:n,onValueChange:u,className:"flex flex-col gap-4.5",children:[j,I,z]})]}),e[21]=n,e[22]=L):L=e[22];let B;e[23]!==r.href?(B=t.jsx(os,{url:r.href}),e[23]=r.href,e[24]=B):B=e[24];let R,E;e[25]!==f||e[26]!==r.href?(R=t.jsx(ns,{url:r.href,serverName:f}),E=t.jsx(is,{url:r.href,serverName:f}),e[25]=f,e[26]=r.href,e[27]=R,e[28]=E):(R=e[27],E=e[28]);let h;e[29]!==B||e[30]!==R||e[31]!==E?(h=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,E]})}),e[29]=B,e[30]=R,e[31]=E,e[32]=h):h=e[32];let N;e[33]!==L||e[34]!==h?(N=t.jsxs(Ct,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[m,t.jsxs("div",{className:"flex flex-col gap-6",children:[L,h]})]}),e[33]=L,e[34]=h,e[35]=N):N=e[35];let $;return e[36]!==o||e[37]!==s||e[38]!==N?($=t.jsx(Nt,{open:s,onOpenChange:o,children:N}),e[36]=o,e[37]=s,e[38]=N,e[39]=$):$=e[39],$}function cs(l){const e=P.c(31),{form:s,icon:o,virtualMcpId:i}=l,[n,a]=jt(i);let c;e[0]!==s?(c=s.watch("title")||"Agent",e[0]=s,e[1]=c):c=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(pt,{}),e[2]=u):u=e[2];let r;e[3]!==o||e[4]!==c?(r=t.jsx(ze,{icon:o,name:c,size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:u}),e[3]=o,e[4]=c,e[5]=r):r=e[5];let d;e[6]!==s.control?(d=t.jsx(be,{control:s.control,name:"status",render:us}),e[6]=s.control,e[7]=d):d=e[7];let f;e[8]!==r||e[9]!==d?(f=t.jsxs("div",{className:"flex items-start justify-between",children:[r,d]}),e[8]=r,e[9]=d,e[10]=f):f=e[10];let m;e[11]!==s.control?(m=t.jsxs("div",{className:"flex flex-col",children:[t.jsx(be,{control:s.control,name:"title",render:ms}),t.jsx(be,{control:s.control,name:"description",render:ds})]}),e[11]=s.control,e[12]=m):m=e[12];let p;e[13]!==f||e[14]!==m?(p=t.jsxs("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:[f,m]}),e[13]=f,e[14]=m,e[15]=p):p=e[15];let x;e[16]!==s.control?(x=t.jsx("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:t.jsx(be,{control:s.control,name:"tool_selection_mode",render:as})}),e[16]=s.control,e[17]=x):x=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]!==a?(v=y=>a(y.target.value),e[19]=a,e[20]=v):v=e[20];let j;e[21]!==n||e[22]!==v?(j=t.jsxs("div",{className:"flex flex-col gap-3 p-5",children:[g,t.jsx(At,{value:n,onChange:v,placeholder:"Enter system prompt instructions...",className:"min-h-[240px] resize-none text-sm leading-relaxed"})]}),e[21]=n,e[22]=v,e[23]=j):j=e[23];let S;e[24]!==j||e[25]!==p||e[26]!==x?(S=t.jsxs("div",{className:"flex flex-col",children:[p,x,j]}),e[24]=j,e[25]=p,e[26]=x,e[27]=S):S=e[27];let b;return e[28]!==s||e[29]!==S?(b=t.jsx("div",{className:"flex flex-col h-full overflow-auto",children:t.jsx(_t,{...s,children:S})}),e[28]=s,e[29]=S,e[30]=b):b=e[30],b}function as(l){const{field:e}=l;return t.jsxs(Se,{children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsx(yt,{className:"mb-0",children:"Selection Mode"}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(Z,{children:t.jsxs(Y,{children:[t.jsx(J,{asChild:!0,children:t.jsx(F,{type:"button",variant:"ghost",size:"icon",className:"size-7","aria-label":"Selection mode help",children:t.jsx(je,{size:14,className:"text-muted-foreground"})})}),t.jsx(Q,{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(Tt,{value:e.value,onValueChange:e.onChange,children:[t.jsx(Ce,{children:t.jsx(Pt,{className:"w-[180px]",children:t.jsx($t,{})})}),t.jsxs(Rt,{children:[t.jsx(De,{value:"inclusion",children:"Include Selected"}),t.jsx(De,{value:"exclusion",children:"Exclude Selected"})]})]})]})]}),t.jsx(Ne,{})]})}function ds(l){const{field:e}=l;return t.jsxs(Se,{className:"w-full space-y-0",children:[t.jsx(Ce,{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(Ne,{})]})}function ms(l){const{field:e}=l;return t.jsxs(Se,{className:"w-full space-y-0",children:[t.jsx(Ce,{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(Ne,{})]})}function us(l){const{field:e}=l;return t.jsxs(Se,{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(Ce,{children:t.jsx(zt,{checked:e.value==="active",onCheckedChange:s=>e.onChange(s?"active":"inactive")})})]}),t.jsx(Ne,{})]})}function fs(l){const e=P.c(81),{virtualMcp:s,virtualMcpId:o,requestedTabId:i}=l,a=lt().location.href,c=ot();let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u={from:"/$org/agents/$agentId"},e[0]=u):u=e[0];const r=Ue(u),d=xt();let f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f={},e[1]=f):f=e[1];const m=He(f);let p;e[2]!==m?(p=m.map(xs),e[2]=m,e[3]=p):p=e[3];const x=p,{promptsMap:g}=gt(x),{resourcesMap:v}=bt(x);let j;if(e[4]!==m){j=new Map;for(const M of m)M.tools&&M.tools.length>0&&j.set(M.id,M.tools.map(hs));e[4]=m,e[5]=j}else j=e[5];let S;e[6]!==j||e[7]!==s?(S=()=>Le(s,j),e[6]=j,e[7]=s,e[8]=S):S=e[8];const[b,y]=C.useState(S);let I;e[9]!==s?(I=()=>Oe(s),e[9]=s,e[10]=I):I=e[10];const[k,w]=C.useState(I);let A;e[11]!==s?(A=()=>Be(s),e[11]=s,e[12]=A):A=e[12];const[z,L]=C.useState(A),[B,R]=C.useState(!1),[E,h]=C.useState(!1);let N;e[13]===Symbol.for("react.memo_cache_sentinel")?(N=M=>{y(M),R(!0)},e[13]=N):N=e[13];const $=N;let T;e[14]===Symbol.for("react.memo_cache_sentinel")?(T=M=>{w(M),R(!0)},e[14]=T):T=e[14];const W=T;let H;e[15]===Symbol.for("react.memo_cache_sentinel")?(H=M=>{L(M),R(!0)},e[15]=H):H=e[15];const G=H;let U;e[16]===Symbol.for("react.memo_cache_sentinel")?(U=nt(ss),e[16]=U):U=e[16];const _e=s.tool_selection_mode??"inclusion";let ae;e[17]!==_e||e[18]!==s.description||e[19]!==s.status||e[20]!==s.title?(ae={resolver:U,defaultValues:{title:s.title,description:s.description,status:s.status,tool_selection_mode:_e}},e[17]=_e,e[18]=s.description,e[19]=s.status,e[20]=s.title,e[21]=ae):ae=e[21];const O=it(ae),ye=O.formState.isDirty||B;let de;e[22]!==d.update||e[23]!==j||e[24]!==O||e[25]!==z||e[26]!==k||e[27]!==b||e[28]!==o?(de=async()=>{const M=O.getValues(),Te=ls(b,k,z,j);await d.update.mutateAsync({id:o,data:{title:M.title,description:M.description,status:M.status,tool_selection_mode:M.tool_selection_mode,connections:Te}}),O.reset(M),R(!1)},e[22]=d.update,e[23]=j,e[24]=O,e[25]=z,e[26]=k,e[27]=b,e[28]=o,e[29]=de):de=e[29];const we=de;let me;e[30]!==j||e[31]!==O||e[32]!==s?(me=()=>{O.reset({title:s.title,description:s.description,status:s.status,tool_selection_mode:s.tool_selection_mode??"inclusion"}),y(Le(s,j)),w(Oe(s)),L(Be(s)),R(!1)},e[30]=j,e[31]=O,e[32]=s,e[33]=me):me=e[33];const ke=me;let ue;e[34]===Symbol.for("react.memo_cache_sentinel")?(ue=[{id:"settings",label:"Settings"},{id:"tools",label:"Tools"},{id:"resources",label:"Resources"},{id:"prompts",label:"Prompts"}],e[34]=ue):ue=e[34];const Ve=ue,V=Ve.some(M=>M.id===i)?i:"settings";let fe;e[35]!==r?(fe=M=>{r({search:Te=>({...Te,tab:M}),replace:!0})},e[35]=r,e[36]=fe):fe=e[36];const Ie=fe,ce=d.update.isPending;let K;e[37]!==c.history?(K=()=>c.history.back(),e[37]=c.history,e[38]=K):K=e[38];let X;e[39]!==V||e[40]!==Ie?(X=t.jsx(Lt,{children:t.jsx(Mt,{tabs:Ve,activeTab:V,onTabChange:Ie})}),e[39]=V,e[40]=Ie,e[41]=X):X=e[41];let ee;e[42]!==ke||e[43]!==we||e[44]!==ye||e[45]!==ce?(ee=ye&&t.jsxs(t.Fragment,{children:[t.jsx(Z,{children:t.jsxs(Y,{delayDuration:0,children:[t.jsx(J,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(F,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:ce,onClick:ke,"aria-label":"Cancel",children:t.jsx(Dt,{size:14})})})}),t.jsx(Q,{side:"bottom",children:"Cancel"})]})}),t.jsx(Z,{children:t.jsxs(Y,{delayDuration:0,children:[t.jsx(J,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(F,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:ce,onClick:we,"aria-label":"Save",children:ce?t.jsx($e,{size:14,className:"animate-spin"}):t.jsx(Ke,{size:14})})})}),t.jsx(Q,{side:"bottom",children:"Save"})]})})]}),e[42]=ke,e[43]=we,e[44]=ye,e[45]=ce,e[46]=ee):ee=e[46];let he;e[47]===Symbol.for("react.memo_cache_sentinel")?(he=()=>h(!0),e[47]=he):he=e[47];let xe;e[48]===Symbol.for("react.memo_cache_sentinel")?(xe=t.jsx(Z,{children:t.jsxs(Y,{delayDuration:0,children:[t.jsx(J,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(F,{variant:"outline",size:"icon",className:"size-7 border border-input",onClick:he,"aria-label":"Share",children:t.jsx(Xe,{size:14})})})}),t.jsx(Q,{side:"bottom",children:"Share"})]})}),e[48]=xe):xe=e[48];const Me=s.icon??"cpu_chip";let te;e[49]!==Me||e[50]!==a||e[51]!==s.title?(te=t.jsx(ut,{title:s.title,url:a,icon:Me}),e[49]=Me,e[50]=a,e[51]=s.title,e[52]=te):te=e[52];let se;e[53]!==ee||e[54]!==te?(se=t.jsxs(Ot,{children:[ee,xe,te]}),e[53]=ee,e[54]=te,e[55]=se):se=e[55];let pe;e[56]===Symbol.for("react.memo_cache_sentinel")?(pe=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]=pe):pe=e[56];let le;e[57]!==V||e[58]!==g||e[59]!==v||e[60]!==O||e[61]!==z||e[62]!==k||e[63]!==b||e[64]!==s.icon||e[65]!==o?(le=V==="settings"?t.jsx(cs,{form:O,icon:s.icon,virtualMcpId:o}):V==="tools"?t.jsx(ft,{toolSet:b,onToolSetChange:$}):V==="resources"?t.jsx(Kt,{resourceSet:k,onResourceSetChange:W,connectionResources:v}):V==="prompts"?t.jsx(Zt,{promptSet:z,onPromptSetChange:G,connectionPrompts:g}):null,e[57]=V,e[58]=g,e[59]=v,e[60]=O,e[61]=z,e[62]=k,e[63]=b,e[64]=s.icon,e[65]=o,e[66]=le):le=e[66];let oe;e[67]!==le?(oe=t.jsx(C.Suspense,{fallback:pe,children:le}),e[67]=le,e[68]=oe):oe=e[68];let ne;e[69]!==V||e[70]!==oe?(ne=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:oe},V)})})}),e[69]=V,e[70]=oe,e[71]=ne):ne=e[71];let ie;e[72]!==E||e[73]!==s?(ie=t.jsx(rs,{open:E,onOpenChange:h,virtualMcp:s}),e[72]=E,e[73]=s,e[74]=ie):ie=e[74];let ge;return e[75]!==K||e[76]!==X||e[77]!==se||e[78]!==ne||e[79]!==ie?(ge=t.jsxs(Bt,{onBack:K,children:[X,se,ne,ie]}),e[75]=K,e[76]=X,e[77]=se,e[78]=ne,e[79]=ie,e[80]=ge):ge=e[80],ge}function hs(l){return l.name}function xs(l){return l.id}function ps(){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=Ue(e);let o;l[1]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},l[1]=o):o=l[1];const i=tt(o),{org:n}=i,a=i.agentId??i.virtualMcpId??i.gatewayId??"";let c;l[2]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},l[2]=c):c=l[2];const r=st(c).tab||"settings",d=ht(a);if(!d){let m;return l[3]!==s||l[4]!==n?(m=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(rt,{title:"Agent not found",description:"This Agent may have been deleted or you may not have access.",actions:t.jsx(F,{variant:"outline",onClick:()=>s({to:"/$org/agents",params:{org:n}}),children:"Back to agents"})})}),l[3]=s,l[4]=n,l[5]=m):m=l[5],m}let f;return l[6]!==r||l[7]!==d||l[8]!==a?(f=t.jsx(fs,{virtualMcp:d,virtualMcpId:a,requestedTabId:r}),l[6]=r,l[7]=d,l[8]=a,l[9]=f):f=l[9],f}function gs(){const l=P.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Fe,{children:t.jsx(C.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(ps,{})})}),l[0]=e):e=l[0],e}function rl(){const l=P.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(gs,{}),l[0]=e):e=l[0],e}export{rl as default};
@@ -1 +1 @@
1
- import{c as ee,j as t,r as te,f as oe}from"./index-BF36lrM0.js";import{C as ne}from"./collection-header-BCxNcaP0.js";import{C as re}from"./collection-page-4ehGOEaI.js";import{C as ie}from"./collection-search-DtIPt7nm.js";import{C as ae}from"./collection-table-wrapper-BajIguAD.js";import{C as le}from"./connection-card-kOCwfSqa.js";import{E as q,I as ce}from"./empty-state-CgGQoUxw.js";import{E as de}from"./error-boundary-Wp2wTq0T.js";import{u as me,a as ue,i as x}from"./use-virtual-mcp-DkhKq3Hu.js";import{u as ge,s as J}from"./use-list-state-TtAnvO_b.js";import{u as pe}from"./use-create-virtual-mcp-CRFUmT7b.js";import{u as he}from"./project-context-provider-DzsB7M-_.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-t9YTjfeS.js";import{B as se}from"./badge-H3tu3alI.js";import{B as G}from"./button-BY0U_trB.js";import{b as Q,D as U,a as X,c as V}from"./dropdown-menu-DG1GIIwU.js";import{i as Y}from"./DotsVertical-DqzXFrVL.js";import{i as Se}from"./Loading01-BEWxFOsJ.js";import{s as Z}from"./Trash01-uhyK-8nB.js";import"./collection-display-button-CKAn8RZK.js";import"./ArrowUp-D7M3SswO.js";import"./Check-Cl1DPN8W.js";import"./Grid01-yvEs5TWW.js";import"./List-BwQLP7Xm.js";import"./tooltip-BK_1J9C_.js";import"./view-mode-toggle-iqfK1oLC.js";import"./SearchMd-fJfE7iLY.js";import"./input-CpdDHW2j.js";import"./card-BgqGJlKn.js";import"./connection-B9wsQJ4x.js";import"./use-collections-Ckty0ghF.js";import"./useMutation-CwqnnhnA.js";import"./use-mobile-hytGZ4u1.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-CexdbKny.js";import{C as ne}from"./collection-header-BLDLBpTZ.js";import{C as re}from"./collection-page-DfW6PFSb.js";import{C as ie}from"./collection-search-BbDYzv2F.js";import{C as ae}from"./collection-table-wrapper-BBoyf5l0.js";import{C as le}from"./connection-card-Cp5tWFAe.js";import{E as q,I as ce}from"./empty-state-DG-8Rgwf.js";import{E as de}from"./error-boundary-D8Ei-eQB.js";import{u as me,a as ue,i as x}from"./use-virtual-mcp-XnL0ZUJn.js";import{u as ge,s as J}from"./use-list-state-_1r07pIM.js";import{u as pe}from"./use-create-virtual-mcp-DiLPU3nD.js";import{u as he}from"./project-context-provider-D-EZcDmf.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-B1gGaxIy.js";import{B as se}from"./badge-DbfGipV0.js";import{B as G}from"./button-DGFNdBvA.js";import{b as Q,D as U,a as X,c as V}from"./dropdown-menu-IL1YwGEs.js";import{i as Y}from"./DotsVertical-Bzc4Gatf.js";import{i as Se}from"./Loading01-BGZ1XiOQ.js";import{s as Z}from"./Trash01-CTUNxVBm.js";import"./collection-display-button-sJ1vCkku.js";import"./ArrowUp-vC2Zi9_R.js";import"./Check-B4FhLTO4.js";import"./Grid01-Dcc_Kw-0.js";import"./List-C5kGBIj2.js";import"./tooltip-Bzt9TSoy.js";import"./view-mode-toggle-a1m1pL_s.js";import"./SearchMd-BFmtT6AB.js";import"./input-BTP3P3xF.js";import"./card-C7V56esP.js";import"./connection-CFT2rD3Y.js";import"./use-collections-HpDaPUjt.js";import"./useMutation-CVUYIVK0.js";import"./use-mobile-BbjF7byN.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,bI as m,a3 as A,j as r,bJ as T,a5 as w,C as O,a8 as M,bK as I,g as D,R as z,T as F,D as L,P as G,bu as k,O as H,c as n}from"./index-BF36lrM0.js";import{c as p,b as v}from"./button-BY0U_trB.js";var x="AlertDialog",[V]=w(x,[m]),d=m(),N=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(z,{...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(G,{...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=I("AlertDialogContent"),b=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,children:a,...o}=l,s=d(t),c=i.useRef(null),S=A(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(O,{role:"alertdialog",...s,...o,ref:S,onOpenAutoFocus:M(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(F,{...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(L,{...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(D,{...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=A(e,o);return r.jsx(D,{...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,bI as m,a3 as A,j as r,bJ as T,a5 as w,C as O,a8 as M,bK as I,g as D,R as z,T as F,D as L,P as G,bu as k,O as H,c as n}from"./index-CexdbKny.js";import{c as p,b as v}from"./button-DGFNdBvA.js";var x="AlertDialog",[V]=w(x,[m]),d=m(),N=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(z,{...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(G,{...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=I("AlertDialogContent"),b=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,children:a,...o}=l,s=d(t),c=i.useRef(null),S=A(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(O,{role:"alertdialog",...s,...o,ref:S,onOpenAutoFocus:M(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(F,{...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(L,{...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(D,{...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=A(e,o);return r.jsx(D,{...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-BF36lrM0.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-CexdbKny.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};