@decocms/mesh 2.59.1 → 2.59.2
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.
- package/dist/client/assets/{AlertCircle-fPPcaR5f.js → AlertCircle--GzH2vta.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DT1xTBGU.js → ArrowLeft-DzpTEYvO.js} +1 -1
- package/dist/client/assets/{ArrowUp-CtR259iO.js → ArrowUp-BfBrilbk.js} +1 -1
- package/dist/client/assets/{Check-DU7cpByy.js → Check-CXkamnnr.js} +1 -1
- package/dist/client/assets/{ChevronDown-azWbt7u-.js → ChevronDown-DaqG_J6Z.js} +1 -1
- package/dist/client/assets/{Code01-COCYoPwi.js → Code01-BNQVP8-g.js} +1 -1
- package/dist/client/assets/{Copy01-BS5F7eSr.js → Copy01-CpBgXJFP.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-CGIWHwff.js → DotsHorizontal-BDAFctKq.js} +1 -1
- package/dist/client/assets/{DotsVertical-D0UahMMI.js → DotsVertical-D5MnD2QZ.js} +1 -1
- package/dist/client/assets/{Download01-Drbb93GF.js → Download01-4Tu3o0-K.js} +1 -1
- package/dist/client/assets/{Edit01-Y-NULVv3.js → Edit01-7Ak8JL9W.js} +1 -1
- package/dist/client/assets/{File06-Bkbh_2zg.js → File06-C7QVLRp6.js} +1 -1
- package/dist/client/assets/{FilterLines-CJ9m3X3i.js → FilterLines-UNZ5Kk_X.js} +1 -1
- package/dist/client/assets/{FlipBackward-CBCHYAL0.js → FlipBackward-Cc_OirbM.js} +1 -1
- package/dist/client/assets/{Grid01-g97U8qPw.js → Grid01-C_dMOr-7.js} +1 -1
- package/dist/client/assets/{Home02-DbfcHYft.js → Home02-Cfg1gm8U.js} +1 -1
- package/dist/client/assets/{Image01-Bjd8Adfr.js → Image01-C6IcS9Ip.js} +1 -1
- package/dist/client/assets/{Inbox01-CLqVjnaB.js → Inbox01-D1IW7Je7.js} +1 -1
- package/dist/client/assets/{InfoCircle-DRozFBoN.js → InfoCircle-Dwuc2RiH.js} +1 -1
- package/dist/client/assets/{Key01-DYF-_FxZ.js → Key01-CrwOIsjX.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DlDS1S8C.js → LinkExternal01-yVEf-2cT.js} +1 -1
- package/dist/client/assets/{List-DflJv9FE.js → List-d88_8fTd.js} +1 -1
- package/dist/client/assets/{Loading01-WEA2Z3sB.js → Loading01-Bf56vlFv.js} +1 -1
- package/dist/client/assets/{Lock01-Bd04eNWH.js → Lock01-CQ0bp8OP.js} +1 -1
- package/dist/client/assets/{Pin01-Bi-ERQ-E.js → Pin01-DBKe5RmK.js} +1 -1
- package/dist/client/assets/{Play-Phpxo-Gg.js → Play-l95VP5u9.js} +1 -1
- package/dist/client/assets/{Plus-C51GvXtB.js → Plus-CcqPpwU0.js} +1 -1
- package/dist/client/assets/{SearchMd-C-0AQItY.js → SearchMd-Ns-pswyj.js} +1 -1
- package/dist/client/assets/{Share07-CExAPT_-.js → Share07-B5yrbjwk.js} +1 -1
- package/dist/client/assets/{Terminal-BIPX0F_t.js → Terminal-qZhwvVsv.js} +1 -1
- package/dist/client/assets/{Trash01-DlMEaqpj.js → Trash01-DVYV3BJw.js} +1 -1
- package/dist/client/assets/{Upload01-CUUKYNN3.js → Upload01-CCAaxnrW.js} +1 -1
- package/dist/client/assets/{Users03-CnY0pIWD.js → Users03-CSRHEIl2.js} +1 -1
- package/dist/client/assets/{X-CCyovJoX.js → X-Dz8JZ2ZX.js} +1 -1
- package/dist/client/assets/{XClose-QHHERH-x.js → XClose-BhgPfyG3.js} +1 -1
- package/dist/client/assets/{agent-detail-C7hvmlfv.js → agent-detail-nBBUtMd0.js} +1 -1
- package/dist/client/assets/{agents-v16TW_mQ.js → agents-4MJAHJGV.js} +1 -1
- package/dist/client/assets/{alert-dialog-DXUFHjZG.js → alert-dialog-5t1wq8Xl.js} +1 -1
- package/dist/client/assets/{auth-catchall-BXh0OUyB.js → auth-catchall-CTOFzXVU.js} +1 -1
- package/dist/client/assets/{avatar-BIq-NZMM.js → avatar-Cx4ORVtq.js} +1 -1
- package/dist/client/assets/{badge-Y7JSGKlq.js → badge-DfeUgg96.js} +1 -1
- package/dist/client/assets/{binder-CP43LYqU.js → binder-Dh-m11Sm.js} +1 -1
- package/dist/client/assets/{button-CZtA6e27.js → button-C83AQWC1.js} +1 -1
- package/dist/client/assets/{card-CvWkq_X8.js → card-CbXWWn3M.js} +1 -1
- package/dist/client/assets/{checkbox-DODuulDI.js → checkbox-DcPieRc5.js} +1 -1
- package/dist/client/assets/{circle-alert-DSFyuFJV.js → circle-alert-ChrxIBwd.js} +1 -1
- package/dist/client/assets/{collection-detail-C74ieQgx.js → collection-detail-B_qs3xwg.js} +1 -1
- package/dist/client/assets/{collection-display-button-BVuh0Ujb.js → collection-display-button-DlAEKbje.js} +1 -1
- package/dist/client/assets/{collection-header-ChDPCqnl.js → collection-header-Fc9BtUxQ.js} +1 -1
- package/dist/client/assets/{collection-page-l6wHN3i-.js → collection-page-DvzZtNQd.js} +1 -1
- package/dist/client/assets/{collection-search-BMTwYZEY.js → collection-search-bOTNZP0b.js} +1 -1
- package/dist/client/assets/{collection-tab-pveYZhJB.js → collection-tab-BB_A78nH.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BmOSh0Ti.js → collection-table-wrapper-Ch8oh2UW.js} +1 -1
- package/dist/client/assets/{connect-BNx3fCnL.js → connect-DYIKCRWy.js} +1 -1
- package/dist/client/assets/{connection-card-OBK79Ok0.js → connection-card-BZU7F7-m.js} +1 -1
- package/dist/client/assets/{connection-detail-CTWJ36af.js → connection-detail-D3-I_W38.js} +1 -1
- package/dist/client/assets/{connections-B7qKl0yx.js → connections-dluTnyJM.js} +1 -1
- package/dist/client/assets/constants-CnfPGmdA.js +1 -0
- package/dist/client/assets/{constants-DTaz4Q6l.js → constants-ytntCGH9.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-wKnCm4tD.js → create-organization-dialog-GjXRxTaj.js} +1 -1
- package/dist/client/assets/{dialog-_hbfKjgR.js → dialog-D_ebnPDF.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Q-xjH7Pn.js → dropdown-menu-CzQCi3DZ.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BvxSYJx0.js → dynamic-plugin-layout-DrCIvG61.js} +1 -1
- package/dist/client/assets/{empty-state-BZp4ZNND.js → empty-state-Cr5g6Vh9.js} +1 -1
- package/dist/client/assets/{empty-state-DwJP9EeA.js → empty-state-CxA9hap0.js} +1 -1
- package/dist/client/assets/{env-vars-editor-CM58G7UL.js → env-vars-editor-DXJo5cdV.js} +1 -1
- package/dist/client/assets/{error-boundary-TOEZuFH_.js → error-boundary-Dg0Af8BA.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DgTMj_79.js → extract-connection-data-BYPMZtVW.js} +1 -1
- package/dist/client/assets/{file-browser-Bgi-XRAm.js → file-browser-2RP-n1Xp.js} +2 -2
- package/dist/client/assets/{form-DVP4UGQF.js → form-BISYEAnP.js} +1 -1
- package/dist/client/assets/{grid-view-BKbjwXal.js → grid-view-BzgHSliB.js} +1 -1
- package/dist/client/assets/{home-CHThgzq3.js → home-CZ1MSx2E.js} +1 -1
- package/dist/client/assets/{index--8-j2jIW.js → index-B-pYSGnK.js} +1 -1
- package/dist/client/assets/{index-BPDeXK2i.js → index-C8OOnmm1.js} +2 -2
- package/dist/client/assets/{index-DvgT-Ylp.js → index-CIvJ2wFV.js} +1 -1
- package/dist/client/assets/{index-ChSFgM-0.js → index-CmUKmcyS.js} +1 -1
- package/dist/client/assets/{index-q4slkA9o.js → index-HgNYu27A.js} +1 -1
- package/dist/client/assets/{index-Bb8qRjka.js → index-c6ju_hIh.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CkfPEnDe.js → infiniteQueryObserver-B1N6PF-z.js} +1 -1
- package/dist/client/assets/{input-BH7rcQ6N.js → input-CrR0FEof.js} +1 -1
- package/dist/client/assets/{layout-Bjcx__oq.js → layout-BGZtLEwK.js} +1 -1
- package/dist/client/assets/{localstorage-keys-CQxtmiwn.js → localstorage-keys-N4jrVxvr.js} +1 -1
- package/dist/client/assets/{login-H8mnQ1nn.js → login-BFXWEB6t.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DCAX9rvQ.js → mcp-oauth-BkqLXiLL.js} +1 -1
- package/dist/client/assets/{mcp-server-card-B7eAu89V.js → mcp-server-card-CkDDvd5o.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-BBu255GS.js → mcp-server-detail-CuItqIIY.js} +2 -2
- package/dist/client/assets/{members-DtDB93xu.js → members-C3Nvqq2t.js} +1 -1
- package/dist/client/assets/{monaco-editor-CSEPfDhp.js → monaco-editor-gim9RLZ3.js} +1 -1
- package/dist/client/assets/{monitoring-DrLLpiIk.js → monitoring-AmN2oTrM.js} +1 -1
- package/dist/client/assets/{oauth-callback-B1p8XG7Z.js → oauth-callback-BO8hRY4t.js} +1 -1
- package/dist/client/assets/{page-CCtDo97_.js → page-BcZkyr2a.js} +1 -1
- package/dist/client/assets/{page-CC98dZbM.js → page-D-IBJ4SW.js} +1 -1
- package/dist/client/assets/{pin-to-sidebar-button-BhX11X__.js → pin-to-sidebar-button-DbV8w54G.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DQiXYx1t.js → plugin-empty-state-Df2LAyPv.js} +1 -1
- package/dist/client/assets/{plugin-header-CBg64TM8.js → plugin-header-e5FObvvx.js} +1 -1
- package/dist/client/assets/{plugins-D1wlWAhy.js → plugins-BOsIh96E.js} +1 -1
- package/dist/client/assets/{popover-DRX_xxtv.js → popover-B2yKs5LA.js} +1 -1
- package/dist/client/assets/{registry-utils-1tI_xdzz.js → registry-utils-DekIcM3F.js} +1 -1
- package/dist/client/assets/{resizable-2WLYZXF8.js → resizable-V4jINWPU.js} +1 -1
- package/dist/client/assets/{resource-tabs--Vf32v1q.js → resource-tabs-BsRvwnyx.js} +1 -1
- package/dist/client/assets/{select-t24zUjd9.js → select-BlFReF6r.js} +1 -1
- package/dist/client/assets/{settings-CrvbtsPm.js → settings-cRTESMAX.js} +1 -1
- package/dist/client/assets/{shell-layout-eRPaowBH.js → shell-layout-BfC0vVyw.js} +1 -1
- package/dist/client/assets/{spinner-DtqP2JJP.js → spinner-CwfYynNt.js} +1 -1
- package/dist/client/assets/{store-invite-DhzcnT_6.js → store-invite-BErtY6PV.js} +1 -1
- package/dist/client/assets/{switch-Bary1URs.js → switch-DjW_2nBx.js} +1 -1
- package/dist/client/assets/{textarea-CS6QXlwX.js → textarea-DRMuRqUv.js} +1 -1
- package/dist/client/assets/{tool-set-selector-Bi3mcGiN.js → tool-set-selector-Btgo2YwH.js} +1 -1
- package/dist/client/assets/{tools-list-DHi6RJds.js → tools-list-DesNUyav.js} +1 -1
- package/dist/client/assets/{tooltip-DZZDyQXc.js → tooltip-aHeHMhKh.js} +1 -1
- package/dist/client/assets/{typewriter-title-Cy3KhZIj.js → typewriter-title-DRU6uRKP.js} +1 -1
- package/dist/client/assets/{use-binding-DA5WksVi.js → use-binding-C2mDgpbB.js} +1 -1
- package/dist/client/assets/{use-collections-B6FnnWjM.js → use-collections-CkAaybvR.js} +1 -1
- package/dist/client/assets/{use-connection-D3KERTW2.js → use-connection-TLrid9RM.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DTS0bNB1.js → use-create-virtual-mcp-Bi6QQFl1.js} +1 -1
- package/dist/client/assets/{use-list-state-rseoSQyE.js → use-list-state-DuKw_MMV.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Bg7WZoid.js → use-mcp-prompts-D5tApqEs.js} +1 -1
- package/dist/client/assets/{use-members-DpbK1cBA.js → use-members-g_5Yt7ve.js} +1 -1
- package/dist/client/assets/{use-mobile-CCX94LGD.js → use-mobile-DQ806XzQ.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CrIvplba.js → use-organization-settings-C-IzAdi1.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BEkx8KQT.js → use-virtual-mcp-C8lLKpyG.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BUOCgX3w.js +1 -0
- package/dist/client/assets/{useMutation-BMW6ucfs.js → useMutation-C4aXMLv3.js} +1 -1
- package/dist/client/assets/useQuery-DNOH3p7p.js +1 -0
- package/dist/client/assets/{view-mode-toggle-Cxs_NdgM.js → view-mode-toggle-jPeow5hv.js} +1 -1
- package/dist/client/assets/{workflow-CsZCHJ-t.js → workflow-pPSpZECL.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +159 -159
- package/dist/server/migrate.js +141 -141
- package/dist/server/server.js +144 -144
- package/package.json +1 -1
- package/dist/client/assets/constants-CglLP18m.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Dv5zSBcU.js +0 -1
- package/dist/client/assets/useQuery-BytVpPBL.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r as t}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r as t}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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 as t}from"./index-
|
|
1
|
+
import{r as t}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r as a}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r as t}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z"}));a.displayName="Lock01";export{a as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c}from"./index-
|
|
1
|
+
import{r as c}from"./index-C8OOnmm1.js";const o=({size:e=24,color:r="currentColor",...t})=>c.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},c.createElement("path",{d:"M12 15v7M8 7.308v2.13c0 .209 0 .313-.02.412a1.001 1.001 0 0 1-.09.254c-.045.09-.11.172-.24.334L6.08 12.4c-.666.833-.999 1.249-.999 1.599a1 1 0 0 0 .376.782C5.731 15 6.264 15 7.33 15h9.342c1.066 0 1.599 0 1.873-.219A1 1 0 0 0 18.92 14c0-.35-.333-.766-1-1.599l-1.569-1.962c-.13-.162-.195-.243-.241-.334a1.004 1.004 0 0 1-.09-.254C16 9.75 16 9.647 16 9.44V7.31c0-.116 0-.174.007-.23.006-.05.015-.1.029-.15a2.02 2.02 0 0 1 .079-.215l1.008-2.52c.294-.735.44-1.102.38-1.397a1 1 0 0 0-.427-.63C16.825 2 16.429 2 15.637 2H8.364c-.792 0-1.188 0-1.44.167a1 1 0 0 0-.426.63c-.06.295.086.662.38 1.397l1.008 2.52c.043.107.064.16.08.215a1 1 0 0 1 .028.15c.006.056.006.114.006.23Z"}));o.displayName="Pin01";export{o as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./index-
|
|
1
|
+
import{r as t}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m8.59 13.51 6.83 3.98m-.01-10.98-6.82 3.98M21 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM9 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm12 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}));a.displayName="Share07";export{a as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M18 15.837c1.456.731 2.704 1.905 3.615 3.373.18.29.27.436.302.637.063.409-.216.912-.597 1.073-.188.08-.398.08-.82.08M16 11.532a4.5 4.5 0 0 0 0-8.064M14 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM2.56 18.938C4.153 16.545 6.67 15 9.5 15s5.346 1.545 6.94 3.938c.35.525.525.787.505 1.122-.016.26-.187.58-.396.738-.267.202-.635.202-1.371.202H3.822c-.736 0-1.104 0-1.372-.202a1.109 1.109 0 0 1-.395-.738c-.02-.335.155-.597.504-1.122Z"}));a.displayName="Users03";export{a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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-
|
|
1
|
+
import{r}from"./index-C8OOnmm1.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 y,c as M,j as s,p as st,l as qe,a as ot,f as nt,V as lt,s as rt,bj as it,bt as at,u as ct,h as dt,k as mt,ab as Re}from"./index-BPDeXK2i.js";import{I as ze,E as ut}from"./empty-state-BZp4ZNND.js";import{E as Ue}from"./error-boundary-TOEZuFH_.js";import{C as We}from"./checkbox-DODuulDI.js";import{c as Y,B as G}from"./button-CZtA6e27.js";import{i as ft}from"./ArrowLeft-DT1xTBGU.js";import{b as Ye}from"./use-connection-D3KERTW2.js";import{C as ht}from"./collection-search-BMTwYZEY.js";import{I as Ae}from"./input-BH7rcQ6N.js";import{s as xt}from"./Plus-C51GvXtB.js";import{i as pt}from"./X-CCyovJoX.js";import{P as gt}from"./pin-to-sidebar-button-BhX11X__.js";import{T as bt}from"./tool-set-selector-Bi3mcGiN.js";import{I as jt,R as vt,a as yt,u as Ee}from"./index-ChSFgM-0.js";import{c as De,K as Fe}from"./constants-DTaz4Q6l.js";import{l as Ct,a as Nt}from"./use-mcp-prompts-Bg7WZoid.js";import{u as St,a as _t}from"./use-virtual-mcp-BEkx8KQT.js";import{s as Ge}from"./slugify-CEUa2lfQ.js";import{B as He}from"./badge-Y7JSGKlq.js";import{b as wt,c as kt,a as It,D as Tt}from"./dialog-_hbfKjgR.js";import{F as ve,a as Mt,b as ye,d as Ce,f as Ne,c as $t}from"./form-DVP4UGQF.js";import{R as Pt}from"./resource-tabs--Vf32v1q.js";import{S as Rt}from"./switch-Bary1URs.js";import{T as zt}from"./textarea-CS6QXlwX.js";import{b as le,c as re,T as ie,a as ae}from"./tooltip-DZZDyQXc.js";import{i as Ke}from"./Check-DU7cpByy.js";import{i as At}from"./Code01-COCYoPwi.js";import{a as Vt}from"./Copy01-BS5F7eSr.js";import{i as Et}from"./FlipBackward-CBCHYAL0.js";import{i as Me}from"./InfoCircle-DRozFBoN.js";import{i as Pe}from"./Loading01-WEA2Z3sB.js";import{i as Dt}from"./Share07-CExAPT_-.js";import{t as Ft}from"./Users03-CnY0pIWD.js";import{a as Lt,V as Bt,b as Ot}from"./layout-Bjcx__oq.js";import"./use-collections-B6FnnWjM.js";import"./useMutation-BMW6ucfs.js";import"./useQuery-BytVpPBL.js";import"./SearchMd-C-0AQItY.js";import"./Pin01-Bi-ERQ-E.js";import"./use-organization-settings-CrIvplba.js";const Qe=({size:o=24,color:e="currentColor",...t})=>y.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},y.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));Qe.displayName="ArrowsRight";const Je=({size:o=24,color:e="currentColor",...t})=>y.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},y.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 Ze=({size:o=24,color:e="currentColor",...t})=>y.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},y.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"}));Ze.displayName="Lightbulb02";const Xe=({size:o=24,color:e="currentColor",...t})=>y.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},y.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"}));Xe.displayName="Save01";const qt=y.memo(function(e){const t=M.c(20),{connection:n,isSelected:l,hasItemsEnabled:r,activeItemsCount:i,totalItemsCount:a,onSelect:m,onToggle:c}=e,d=l?"bg-accent/50":"hover:bg-muted/50";let u;t[0]!==d?(u=Y("flex items-center gap-3 p-2 rounded-lg transition-colors will-change-auto",d),t[0]=d,t[1]=u):u=t[1];let f;t[2]!==n.icon||t[3]!==n.title?(f=s.jsx(ze,{icon:n.icon,name:n.title,size:"xs"}),t[2]=n.icon,t[3]=n.title,t[4]=f):f=t[4];let x;t[5]!==n.title?(x=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:n.title})}),t[5]=n.title,t[6]=x):x=t[6];let p;t[7]!==m||t[8]!==f||t[9]!==x?(p=s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:m,children:[f,x]}),t[7]=m,t[8]=f,t[9]=x,t[10]=p):p=t[10];let g;t[11]!==i||t[12]!==r||t[13]!==c||t[14]!==a?(g=a>0&&s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[i,"/",a]}),s.jsx(We,{checked:r,onCheckedChange:c,onClick:Wt})]}),t[11]=i,t[12]=r,t[13]=c,t[14]=a,t[15]=g):g=t[15];let N;return t[16]!==u||t[17]!==p||t[18]!==g?(N=s.jsxs("div",{className:u,children:[p,g]}),t[16]=u,t[17]=p,t[18]=g,t[19]=N):N=t[19],N}),Ut=y.memo(function(e){const t=M.c(18),{connectionId:n,item:l,isSelected:r,onToggle:i}=e,a=`item-${n}-${l.id}`,m=r?"text-foreground":"text-muted-foreground";let c;t[0]!==m?(c=Y("text-sm font-medium",m),t[0]=m,t[1]=c):c=t[1];let d;t[2]!==l.name||t[3]!==c?(d=s.jsx("div",{className:"flex items-center gap-2 mb-1",children:s.jsx("span",{className:c,children:l.name})}),t[2]=l.name,t[3]=c,t[4]=d):d=t[4];let u;t[5]!==l.description?(u=l.description&&s.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:l.description}),t[5]=l.description,t[6]=u):u=t[6];let f;t[7]!==d||t[8]!==u?(f=s.jsxs("div",{className:"flex-1 min-w-0",children:[d,u]}),t[7]=d,t[8]=u,t[9]=f):f=t[9];const x=`item-${n}-${l.id}`;let p;t[10]!==r||t[11]!==i||t[12]!==x?(p=s.jsx("div",{className:"flex items-center shrink-0",children:s.jsx(We,{id:x,checked:r,onCheckedChange:i,onClick:Yt})}),t[10]=r,t[11]=i,t[12]=x,t[13]=p):p=t[13];let g;return t[14]!==a||t[15]!==f||t[16]!==p?(g=s.jsxs("label",{className:"flex items-center gap-3 p-3 rounded-lg hover:bg-muted/50 cursor-pointer group will-change-auto",htmlFor:a,children:[f,p]}),t[14]=a,t[15]=f,t[16]=p,t[17]=g):g=t[17],g});function et({itemSet:o,onItemSetChange:e,getItems:t,itemLabel:n,emptyItemsMessage:l,extraContent:r,excludeVirtualMcpId:i}){const[a,m]=y.useState(""),c=y.useDeferredValue(a),[d,u]=y.useState("all"),[f,x]=y.useState(!1),p=y.useRef(new Set(Object.keys(o))),g=Ye({searchTerm:c.trim()||void 0}),N=i?g.filter(h=>h.connection_type!=="VIRTUAL"?!0:st(h.connection_url)!==i):g,S=p.current,I=[...S.values()].map(h=>N.find(C=>C.id===h)).filter(h=>h!==void 0),k=N.filter(h=>!S.has(h.id)),b=[...I,...k],v=h=>{const C=o[h];return C!==void 0&&C.length>0},_=b.filter(h=>{if(d==="all")return!0;const C=v(h.id);return d==="selected"?C:d==="unselected"?!C:!0}),[T,$]=y.useState(b[0]?.id??null),w=T?b.find(h=>h.id===T)??null:null,P=w?t(w):[],V=(h,C)=>o[h]?.includes(C)??!1,R=(h,C)=>{const D=o[h]??[],F=D.includes(C),q={...o};if(F){const U=D.filter(H=>H!==C);U.length===0?delete q[h]:q[h]=U}else q[h]=[...D,C];e(q)},z=h=>{const C=b.find(B=>B.id===h);if(!C)return;const D=t(C);if(D.length===0)return;const F=o[h]??[],q=D.map(B=>B.id),U=F.length>0&&q.every(B=>F.includes(B)),H={...o};U?delete H[h]:(H[h]=q,$(h)),e(H)},E=h=>{$(h),x(!0)},L=()=>{x(!1)};return s.jsxs("div",{className:"flex h-full",children:[s.jsxs("div",{className:Y("w-full md:w-80 border-r border-border flex flex-col",f&&"hidden md:flex"),children:[s.jsx(ht,{value:a,onChange:m,placeholder:"Search Connections..."}),s.jsxs("div",{className:"flex gap-1 p-2 border-b border-border",children:[s.jsx("button",{onClick:()=>u("all"),className:Y("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="all"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"All"}),s.jsx("button",{onClick:()=>u("selected"),className:Y("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="selected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Selected"}),s.jsx("button",{onClick:()=>u("unselected"),className:Y("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="unselected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Unselected"})]}),s.jsx("div",{className:"flex-1 overflow-auto",children:_.length===0?s.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:a?"No connections found":d==="selected"?"No servers selected":d==="unselected"?"No unselected servers":"No connections available"}):s.jsx("div",{className:"p-2 space-y-1",children:_.map(h=>{const D=t(h).length,F=o[h.id]?.length??0;return s.jsx(qt,{connection:h,isSelected:T===h.id,hasItemsEnabled:v(h.id),activeItemsCount:F,totalItemsCount:D,onSelect:()=>E(h.id),onToggle:()=>z(h.id)},h.id)})})})]}),s.jsx("div",{className:Y("flex-1 flex-col",f?"flex":"hidden md:flex"),children:w?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"md:hidden border-b border-border p-4 flex items-center gap-3",children:[s.jsx(G,{variant:"ghost",size:"sm",onClick:L,className:"h-8 w-8 p-0 shrink-0",children:s.jsx(ft,{size:20})}),s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[s.jsx(ze,{icon:w.icon,name:w.title,size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:w.title}),w.description&&s.jsx("p",{className:"text-sm text-muted-foreground truncate",children:w.description})]})]})]}),r,s.jsx("div",{className:"flex-1 overflow-auto p-4",children:P.length===0?s.jsx("div",{className:"text-sm text-muted-foreground text-center py-8",children:l||`This connection has no ${n} available`}):s.jsx("div",{className:"space-y-2",children:P.map(h=>s.jsx(Ut,{connectionId:w.id,item:h,isSelected:V(w.id,h.id),onToggle:()=>R(w.id,h.id)},h.id))})})]}):s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:["Select a connection to view its ",n]})})})]})}function Wt(o){return o.stopPropagation()}function Yt(o){return o.stopPropagation()}function Gt(o){const e=M.c(7),{promptSet:t,onPromptSetChange:n,connectionPrompts:l,excludeVirtualMcpId:r}=o;let i;e[0]!==l?(i=c=>(l.get(c.id)??[]).map(Ht),e[0]=l,e[1]=i):i=e[1];const a=i;let m;return e[2]!==r||e[3]!==a||e[4]!==n||e[5]!==t?(m=s.jsx(et,{itemSet:t,onItemSetChange:n,getItems:a,itemLabel:"prompts",emptyItemsMessage:"This connection has no prompts available",excludeVirtualMcpId:r}),e[2]=r,e[3]=a,e[4]=n,e[5]=t,e[6]=m):m=e[6],m}function Ht(o){return{id:o.name,name:o.name,description:o.description}}function Kt(o){return o.includes("*")}function Qt(o){const e=M.c(27),{patterns:t,onAddPattern:n,onRemovePattern:l}=o,[r,i]=y.useState("");let a;e[0]!==r||e[1]!==n||e[2]!==t?(a=()=>{const f=r.trim();f&&!t.includes(f)&&(n(f),i(""))},e[0]=r,e[1]=n,e[2]=t,e[3]=a):a=e[3];const m=a;let c;e[4]!==m?(c=f=>{f.key==="Enter"&&(f.preventDefault(),m())},e[4]=m,e[5]=c):c=e[5];const d=c;let u;if(e[6]!==m||e[7]!==d||e[8]!==r||e[9]!==l||e[10]!==t){const f=t.filter(Kt);let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("code",{children:"*"}),e[12]=x):x=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("div",{className:"text-xs text-muted-foreground",children:["Add URI patterns to match multiple resources. Use ",x," for single segment and ",s.jsx("code",{children:"**"})," for multiple segments."]}),e[13]=p):p=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=_=>i(_.target.value),e[14]=g):g=e[14];let N;e[15]!==d||e[16]!==r?(N=s.jsx(Ae,{value:r,onChange:g,onKeyDown:d,placeholder:"e.g., file:///**/*.ts or db://users/*",className:"flex-1 text-sm"}),e[15]=d,e[16]=r,e[17]=N):N=e[17];let S;e[18]!==r?(S=r.trim(),e[18]=r,e[19]=S):S=e[19];const I=!S;let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(xt,{size:16}),e[20]=k):k=e[20];let b;e[21]!==m||e[22]!==I?(b=s.jsx(G,{type:"button",variant:"outline",size:"sm",onClick:m,disabled:I,children:k}),e[21]=m,e[22]=I,e[23]=b):b=e[23];let v;e[24]!==b||e[25]!==N?(v=s.jsxs("div",{className:"flex gap-2",children:[N,b]}),e[24]=b,e[25]=N,e[26]=v):v=e[26],u=s.jsxs("div",{className:"border-b border-border p-4 space-y-3",children:[p,v,f.length>0&&s.jsx("div",{className:"flex flex-wrap gap-2",children:f.map(_=>s.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-muted rounded-md text-xs",children:[s.jsx("code",{className:"text-foreground",children:_}),s.jsx("button",{type:"button",onClick:()=>l(_),className:"text-muted-foreground hover:text-foreground",children:s.jsx(pt,{size:12})})]},_))})]}),e[6]=m,e[7]=d,e[8]=r,e[9]=l,e[10]=t,e[11]=u}else u=e[11];return u}function Jt(o){const e=M.c(24),{resourceSet:t,onResourceSetChange:n,connectionResources:l,excludeVirtualMcpId:r}=o,[i]=y.useState(null);let a;e[0]!==l?(a=b=>(l.get(b.id)??[]).map(Zt),e[0]=l,e[1]=a):a=e[1];const m=a;let c;e[2]!==n||e[3]!==t?(c=(b,v)=>{const _=t[b]??[];_.includes(v)||n({...t,[b]:[..._,v]})},e[2]=n,e[3]=t,e[4]=c):c=e[4];const d=c;let u;e[5]!==n||e[6]!==t?(u=(b,v)=>{const T=(t[b]??[]).filter($=>$!==v);if(T.length===0){const $={...t};delete $[b],n($)}else n({...t,[b]:T})},e[5]=n,e[6]=t,e[7]=u):u=e[7];const f=u;let x;e[8]!==n?(x=b=>{n(b)},e[8]=n,e[9]=x):x=e[9];const p=x;let g;e[10]!==t||e[11]!==i?(g=i?t[i]??[]:[],e[10]=t,e[11]=i,e[12]=g):g=e[12];const N=g;let S;e[13]!==d||e[14]!==f||e[15]!==i||e[16]!==N?(S=i?s.jsx(Qt,{patterns:N,onAddPattern:b=>d(i,b),onRemovePattern:b=>f(i,b)}):null,e[13]=d,e[14]=f,e[15]=i,e[16]=N,e[17]=S):S=e[17];const I=S;let k;return e[18]!==r||e[19]!==I||e[20]!==m||e[21]!==p||e[22]!==t?(k=s.jsx("div",{className:"h-full",children:s.jsx(et,{itemSet:t,onItemSetChange:p,getItems:m,itemLabel:"resources",emptyItemsMessage:"This connection has no resources available",extraContent:I,excludeVirtualMcpId:r})}),e[18]=r,e[19]=I,e[20]=m,e[21]=p,e[22]=t,e[23]=k):k=e[23],k}function Zt(o){return{id:o.uri,name:o.name||o.uri,description:o.description||o.uri}}function Xt(o){const e=M.c(8);let t,n;e[0]!==o?({className:t,...n}=o,e[0]=o,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let l;e[3]!==t?(l=Y("grid gap-3",t),e[3]=t,e[4]=l):l=e[4];let r;return e[5]!==n||e[6]!==l?(r=s.jsx(vt,{"data-slot":"radio-group",className:l,...n}),e[5]=n,e[6]=l,e[7]=r):r=e[7],r}function $e(o){const e=M.c(9);let t,n;e[0]!==o?({className:t,...n}=o,e[0]=o,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let l;e[3]!==t?(l=Y("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=l):l=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(yt,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:s.jsx(Je,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})}),e[5]=r):r=e[5];let i;return e[6]!==n||e[7]!==l?(i=s.jsx(jt,{"data-slot":"radio-group-item",className:l,...n,children:r}),e[6]=n,e[7]=l,e[8]=i):i=e[8],i}function es(o){const t=new TextEncoder().encode(o),n=Array.from(t,l=>String.fromCharCode(l)).join("");return btoa(n)}const ts=lt.pick({title:!0,description:!0,status:!0,metadata:!0}).extend({title:rt().min(1,"Name is required").max(255)});function Le(o,e){const t={};for(const n of o.connections)if(n.selected_tools===null){const l=e.get(n.connection_id)??[];l.length>0&&(t[n.connection_id]=l)}else n.selected_tools.length>0&&(t[n.connection_id]=n.selected_tools);return t}function Be(o){const e={};for(const t of o.connections)t.selected_resources!==null&&t.selected_resources!==void 0&&t.selected_resources.length>0&&(e[t.connection_id]=t.selected_resources);return e}function Oe(o){const e={};for(const t of o.connections)t.selected_prompts!==null&&t.selected_prompts!==void 0&&t.selected_prompts.length>0&&(e[t.connection_id]=t.selected_prompts);return e}function ss(o,e,t,n){const l=new Set([...Object.keys(o),...Object.keys(e),...Object.keys(t)]);return Array.from(l).map(r=>{const i=o[r]??[],a=n.get(r)??[],m=a.length>0&&a.every(c=>i.includes(c));return{connection_id:r,selected_tools:i.length===0||m?null:i,selected_resources:e[r]??null,selected_prompts:t[r]??null}})}function os(o){const e=M.c(10),{url:t}=o,[n,l]=y.useState(!1);let r;e[0]!==t?(r=async()=>{await navigator.clipboard.writeText(t),l(!0),Re.success("Agent URL copied to clipboard"),setTimeout(()=>l(!1),2e3)},e[0]=t,e[1]=r):r=e[1];const i=r;let a;e[2]!==n?(a=n?s.jsx(Ke,{size:20,className:"text-green-600"}):s.jsx(Vt,{size:20}),e[2]=n,e[3]=a):a=e[3];const m=n?"Copied!":"Copy URL";let c;e[4]!==m?(c=s.jsx("span",{className:"text-xs font-medium",children:m}),e[4]=m,e[5]=c):c=e[5];let d;return e[6]!==i||e[7]!==a||e[8]!==c?(d=s.jsxs(G,{type:"button",variant:"outline",onClick:i,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[a,c]}),e[6]=i,e[7]=a,e[8]=c,e[9]=d):d=e[9],d}function ns(o){const e=M.c(7),{url:t,serverName:n}=o;let l;e[0]!==n||e[1]!==t?(l=()=>{const c=Ge(n),u=es(JSON.stringify({type:"http",url:t,headers:{"x-mesh-client":"Cursor"}},null,2)),f=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(c)}&config=${encodeURIComponent(u)}`;window.open(f,"_blank"),Re.success("Opening Cursor...")},e[0]=n,e[1]=t,e[2]=l):l=e[2];const r=l;let i,a;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.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%)"}}),a=s.jsx("span",{className:"text-xs font-medium",children:"Install on Cursor"}),e[3]=i,e[4]=a):(i=e[3],a=e[4]);let m;return e[5]!==r?(m=s.jsxs(G,{type:"button",variant:"outline",onClick:r,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[i,a]}),e[5]=r,e[6]=m):m=e[6],m}function ls(o){const e=M.c(11),{url:t,serverName:n}=o,[l,r]=y.useState(!1);let i;e[0]!==n||e[1]!==t?(i=async()=>{const f=Ge(n),p=JSON.stringify({type:"http",url:t,headers:{"x-mesh-client":"Claude Code"}},null,2),g=`claude mcp add-json "${f}" '${p.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(g),r(!0),Re.success("Claude Code command copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[0]=n,e[1]=t,e[2]=i):i=e[2];const a=i;let m;e[3]!==l?(m=l?s.jsx(Ke,{size:20,className:"text-green-600"}):s.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]=l,e[4]=m):m=e[4];const c=l?"Copied!":"Install on Claude";let d;e[5]!==c?(d=s.jsx("span",{className:"text-xs font-medium",children:c}),e[5]=c,e[6]=d):d=e[6];let u;return e[7]!==a||e[8]!==m||e[9]!==d?(u=s.jsxs(G,{type:"button",variant:"outline",onClick:a,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[m,d]}),e[7]=a,e[8]=m,e[9]=d,e[10]=u):u=e[10],u}function rs(o){const e=M.c(40),{open:t,onOpenChange:n,virtualMcp:l}=o,[r,i]=y.useState("code_execution");let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=C=>{(C==="passthrough"||C==="smart_tool_selection"||C==="code_execution")&&i(C)},e[0]=a):a=e[0];const m=a;let c;e[1]!==r||e[2]!==l.id?(c=new URL(`/mcp/virtual-mcp/${l.id}`,window.location.origin),c.searchParams.set("mode",r),e[1]=r,e[2]=l.id,e[3]=c):c=e[3];let d;e[4]!==l.id||e[5]!==l.title?(d=l.title||`agent-${l.id?.slice(0,8)??"default"}`,e[4]=l.id,e[5]=l.title,e[6]=d):d=e[6];const u=d;let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(wt,{children:s.jsx(kt,{children:"Share Agent"})}),e[7]=f):f=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("div",{children:s.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[8]=x):x=e[8];let p;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx("div",{className:"p-1.5 shrink-0",children:s.jsx(Qe,{className:"size-5 text-muted-foreground"})}),e[9]=p):p=e[9];let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx("span",{className:"text-sm font-medium text-foreground",children:"Direct access"}),e[10]=g):g=e[10];let N;e[11]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(ie,{asChild:!0,children:s.jsx(Me,{className:"size-3.5 text-muted-foreground"})}),e[11]=N):N=e[11];let S;e[12]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsxs("label",{htmlFor:"mode-passthrough",className:"flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[p,s.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[g,s.jsx(le,{children:s.jsxs(re,{children:[N,s.jsx(ae,{className:"max-w-xs",children:s.jsx("p",{className:"text-xs",children:"All tools are exposed directly via tools/list. Best for small tool surfaces with deterministic behavior."})})]})})]}),s.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Best for small teams or when you need predictable behavior"})]}),s.jsx($e,{id:"mode-passthrough",value:"passthrough"})]}),e[12]=S):S=e[12];let I;e[13]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx("div",{className:"p-1.5 shrink-0",children:s.jsx(Ze,{className:"size-5 text-muted-foreground"})}),e[13]=I):I=e[13];let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart discovery"}),e[14]=k):k=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(ie,{asChild:!0,children:s.jsx(Me,{className:"size-3.5 text-muted-foreground"})}),e[15]=b):b=e[15];let v;e[16]===Symbol.for("react.memo_cache_sentinel")?(v=s.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:[I,s.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[k,s.jsx(le,{children:s.jsxs(re,{children:[b,s.jsx(ae,{className:"max-w-xs",children:s.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."})})]})})]}),s.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Ideal for large teams with many tools - AI finds what it needs"})]}),s.jsx($e,{id:"mode-smart",value:"smart_tool_selection"})]}),e[16]=v):v=e[16];let _;e[17]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx("div",{className:"p-1.5 shrink-0",children:s.jsx(At,{className:"size-5 text-muted-foreground"})}),e[17]=_):_=e[17];let T;e[18]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart execution"}),e[18]=T):T=e[18];let $;e[19]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(ie,{asChild:!0,children:s.jsx(Me,{className:"size-3.5 text-muted-foreground"})}),e[19]=$):$=e[19];let w;e[20]===Symbol.for("react.memo_cache_sentinel")?(w=s.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:[_,s.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[T,s.jsx(le,{children:s.jsxs(re,{children:[$,s.jsx(ae,{className:"max-w-xs",children:s.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."})})]})})]}),s.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Maximum flexibility - AI can write code to orchestrate tools"})]}),s.jsx($e,{id:"mode-code",value:"code_execution"}),s.jsx(He,{variant:"outline",className:"absolute -top-2.5 left-1/2 -translate-x-1/2 bg-background z-10",children:"Recommended"})]}),e[20]=w):w=e[20];let P;e[21]!==r?(P=s.jsxs("div",{className:"flex flex-col gap-3",children:[x,s.jsxs(Xt,{value:r,onValueChange:m,className:"flex flex-col gap-4.5",children:[S,v,w]})]}),e[21]=r,e[22]=P):P=e[22];let V;e[23]!==c.href?(V=s.jsx(os,{url:c.href}),e[23]=c.href,e[24]=V):V=e[24];let R,z;e[25]!==u||e[26]!==c.href?(R=s.jsx(ns,{url:c.href,serverName:u}),z=s.jsx(ls,{url:c.href,serverName:u}),e[25]=u,e[26]=c.href,e[27]=R,e[28]=z):(R=e[27],z=e[28]);let E;e[29]!==V||e[30]!==R||e[31]!==z?(E=s.jsx("div",{className:"flex flex-col gap-3 pt-2",children:s.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[V,R,z]})}),e[29]=V,e[30]=R,e[31]=z,e[32]=E):E=e[32];let L;e[33]!==P||e[34]!==E?(L=s.jsxs(It,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[f,s.jsxs("div",{className:"flex flex-col gap-6",children:[P,E]})]}),e[33]=P,e[34]=E,e[35]=L):L=e[35];let h;return e[36]!==n||e[37]!==t||e[38]!==L?(h=s.jsx(Tt,{open:t,onOpenChange:n,children:L}),e[36]=n,e[37]=t,e[38]=L,e[39]=h):h=e[39],h}function is(o){const e=M.c(25),{form:t,icon:n}=o;let l;e[0]!==t?(l=t.watch("title")||"Agent",e[0]=t,e[1]=l):l=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ft,{}),e[2]=r):r=e[2];let i;e[3]!==n||e[4]!==l?(i=s.jsx(ze,{icon:n,name:l,size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:r}),e[3]=n,e[4]=l,e[5]=i):i=e[5];let a;e[6]!==t.control?(a=s.jsx(ve,{control:t.control,name:"status",render:ms}),e[6]=t.control,e[7]=a):a=e[7];let m;e[8]!==i||e[9]!==a?(m=s.jsxs("div",{className:"flex items-start justify-between",children:[i,a]}),e[8]=i,e[9]=a,e[10]=m):m=e[10];let c;e[11]!==t.control?(c=s.jsxs("div",{className:"flex flex-col",children:[s.jsx(ve,{control:t.control,name:"title",render:ds}),s.jsx(ve,{control:t.control,name:"description",render:cs})]}),e[11]=t.control,e[12]=c):c=e[12];let d;e[13]!==m||e[14]!==c?(d=s.jsxs("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:[m,c]}),e[13]=m,e[14]=c,e[15]=d):d=e[15];let u;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("div",{className:"flex flex-col gap-4 p-5 border-b border-border"}),e[16]=u):u=e[16];let f;e[17]!==t.control?(f=s.jsx("div",{className:"flex flex-col gap-3 p-5",children:s.jsx(ve,{control:t.control,name:"metadata",render:as})}),e[17]=t.control,e[18]=f):f=e[18];let x;e[19]!==d||e[20]!==f?(x=s.jsxs("div",{className:"flex flex-col",children:[d,u,f]}),e[19]=d,e[20]=f,e[21]=x):x=e[21];let p;return e[22]!==t||e[23]!==x?(p=s.jsx("div",{className:"flex flex-col h-full overflow-auto",children:s.jsx(Mt,{...t,children:x})}),e[22]=t,e[23]=x,e[24]=p):p=e[24],p}function as(o){const{field:e}=o;return s.jsxs(ye,{children:[s.jsxs("div",{children:[s.jsx($t,{className:"text-sm font-medium text-foreground mb-1",children:"Instructions"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Define the agent's role, capabilities, and behavior to guide how it interprets requests, uses available tools, and responds to users."})]}),s.jsx(Ce,{children:s.jsx(zt,{value:e.value?.instructions??"",onChange:t=>e.onChange({...e.value??{},instructions:t.target.value||void 0}),placeholder:"You are a helpful assistant that specializes in customer support. Your role is to help users resolve issues and answer questions...",className:"min-h-[240px] resize-none text-sm leading-relaxed"})}),s.jsx(Ne,{})]})}function cs(o){const{field:e}=o;return s.jsxs(ye,{className:"w-full space-y-0",children:[s.jsx(Ce,{children:s.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..."})}),s.jsx(Ne,{})]})}function ds(o){const{field:e}=o;return s.jsxs(ye,{className:"w-full space-y-0",children:[s.jsx(Ce,{children:s.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"})}),s.jsx(Ne,{})]})}function ms(o){const{field:e}=o;return s.jsxs(ye,{children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(He,{variant:e.value==="active"?"success":"outline",children:e.value==="active"?"Active":"Inactive"}),s.jsx(Ce,{children:s.jsx(Rt,{checked:e.value==="active",onCheckedChange:t=>e.onChange(t?"active":"inactive")})})]}),s.jsx(Ne,{})]})}function us(o){const e=M.c(75),{virtualMcp:t,virtualMcpId:n,requestedTabId:l}=o,i=it().location.href,a=at();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={from:"/$org/agents/$agentId"},e[0]=m):m=e[0];const c=qe(m),d=_t(),{org:u}=ct();let f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f={},e[1]=f):f=e[1];const x=Ye(f),p=x.map(ps);let g;e[2]!==u?(g=j=>({queryKey:Fe.connectionPrompts(j),queryFn:async()=>{try{const A=await De({connectionId:j,orgId:u.id});return await Ct(A)}catch{return{prompts:[]}}},staleTime:6e4,retry:!1}),e[2]=u,e[3]=g):g=e[3];const N=Ee({queries:p.map(g)});let S;e[4]!==u?(S=j=>({queryKey:Fe.connectionResources(j),queryFn:async()=>{try{const A=await De({connectionId:j,orgId:u.id});return await Nt(A)}catch{return{resources:[]}}},staleTime:6e4,retry:!1}),e[4]=u,e[5]=S):S=e[5];const I=Ee({queries:p.map(S)}),k=new Map;p.forEach((j,A)=>{const K=N[A];K?.data?k.set(j,K.data.prompts.map(xs)):k.set(j,[])});const b=new Map;p.forEach((j,A)=>{const K=I[A];K?.data?b.set(j,K.data.resources.map(hs)):b.set(j,[])});let v;if(e[6]!==x){v=new Map;for(const j of x)j.tools&&j.tools.length>0&&v.set(j.id,j.tools.map(fs));e[6]=x,e[7]=v}else v=e[7];let _;e[8]!==v||e[9]!==t?(_=()=>Le(t,v),e[8]=v,e[9]=t,e[10]=_):_=e[10];const[T,$]=y.useState(_);let w;e[11]!==t?(w=()=>Be(t),e[11]=t,e[12]=w):w=e[12];const[P,V]=y.useState(w);let R;e[13]!==t?(R=()=>Oe(t),e[13]=t,e[14]=R):R=e[14];const[z,E]=y.useState(R),[L,h]=y.useState(!1),[C,D]=y.useState(!1);let F;e[15]===Symbol.for("react.memo_cache_sentinel")?(F=j=>{$(j),h(!0)},e[15]=F):F=e[15];const q=F;let U;e[16]===Symbol.for("react.memo_cache_sentinel")?(U=j=>{V(j),h(!0)},e[16]=U):U=e[16];const H=U;let B;e[17]===Symbol.for("react.memo_cache_sentinel")?(B=j=>{E(j),h(!0)},e[17]=B):B=e[17];const tt=B;let de;e[18]===Symbol.for("react.memo_cache_sentinel")?(de=dt(ts),e[18]=de):de=e[18];let Q;e[19]!==t.metadata?(Q=t.metadata??{instructions:""},e[19]=t.metadata,e[20]=Q):Q=e[20];let me;e[21]!==Q||e[22]!==t.description||e[23]!==t.status||e[24]!==t.title?(me={resolver:de,defaultValues:{title:t.title,description:t.description,status:t.status,metadata:Q}},e[21]=Q,e[22]=t.description,e[23]=t.status,e[24]=t.title,e[25]=me):me=e[25];const W=mt(me),Se=W.formState.isDirty||L;let ue;e[26]!==d.update||e[27]!==v||e[28]!==W||e[29]!==z||e[30]!==P||e[31]!==T||e[32]!==n?(ue=async()=>{try{const j=W.getValues(),A=ss(T,P,z,v),K={title:j.title,description:j.description,status:j.status,metadata:j.metadata,connections:A};await d.update.mutateAsync({id:n,data:K}),W.reset(j),h(!1)}catch(j){console.error("Failed to save virtual MCP:",j)}},e[26]=d.update,e[27]=v,e[28]=W,e[29]=z,e[30]=P,e[31]=T,e[32]=n,e[33]=ue):ue=e[33];const _e=ue;let fe;e[34]!==v||e[35]!==W||e[36]!==t?(fe=()=>{W.reset({title:t.title,description:t.description,status:t.status,metadata:t.metadata??{instructions:""}}),$(Le(t,v)),V(Be(t)),E(Oe(t)),h(!1)},e[34]=v,e[35]=W,e[36]=t,e[37]=fe):fe=e[37];const we=fe;let he;e[38]===Symbol.for("react.memo_cache_sentinel")?(he=[{id:"settings",label:"Settings"},{id:"tools",label:"Tools"},{id:"resources",label:"Resources"},{id:"prompts",label:"Prompts"}],e[38]=he):he=e[38];const Ve=he,O=Ve.some(j=>j.id===l)?l:"settings";let xe;e[39]!==c?(xe=j=>{c({search:A=>({...A,tab:j}),replace:!0})},e[39]=c,e[40]=xe):xe=e[40];const ke=xe,ce=d.update.isPending;let J;e[41]!==a.history?(J=()=>a.history.back(),e[41]=a.history,e[42]=J):J=e[42];let Z;e[43]!==O||e[44]!==ke?(Z=s.jsx(Lt,{children:s.jsx(Pt,{tabs:Ve,activeTab:O,onTabChange:ke})}),e[43]=O,e[44]=ke,e[45]=Z):Z=e[45];let X;e[46]!==we||e[47]!==_e||e[48]!==Se||e[49]!==ce?(X=Se&&s.jsxs(s.Fragment,{children:[s.jsx(le,{children:s.jsxs(re,{delayDuration:0,children:[s.jsx(ie,{asChild:!0,children:s.jsx("span",{className:"inline-block",children:s.jsx(G,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:ce,onClick:we,"aria-label":"Cancel",children:s.jsx(Et,{size:14})})})}),s.jsx(ae,{side:"bottom",children:"Cancel"})]})}),s.jsx(le,{children:s.jsxs(re,{delayDuration:0,children:[s.jsx(ie,{asChild:!0,children:s.jsx("span",{className:"inline-block",children:s.jsx(G,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:ce,onClick:_e,"aria-label":"Save",children:ce?s.jsx(Pe,{size:14,className:"animate-spin"}):s.jsx(Xe,{size:14})})})}),s.jsx(ae,{side:"bottom",children:"Save"})]})})]}),e[46]=we,e[47]=_e,e[48]=Se,e[49]=ce,e[50]=X):X=e[50];let pe;e[51]===Symbol.for("react.memo_cache_sentinel")?(pe=()=>D(!0),e[51]=pe):pe=e[51];let ge;e[52]===Symbol.for("react.memo_cache_sentinel")?(ge=s.jsx(le,{children:s.jsxs(re,{delayDuration:0,children:[s.jsx(ie,{asChild:!0,children:s.jsx("span",{className:"inline-block",children:s.jsx(G,{variant:"outline",size:"icon",className:"size-7 border border-input",onClick:pe,"aria-label":"Share",children:s.jsx(Dt,{size:14})})})}),s.jsx(ae,{side:"bottom",children:"Share"})]})}),e[52]=ge):ge=e[52];const Ie=t.icon??"cpu_chip";let ee;e[53]!==Ie||e[54]!==i||e[55]!==t.title?(ee=s.jsx(gt,{title:t.title,url:i,icon:Ie}),e[53]=Ie,e[54]=i,e[55]=t.title,e[56]=ee):ee=e[56];let te;e[57]!==X||e[58]!==ee?(te=s.jsxs(Bt,{children:[X,ge,ee]}),e[57]=X,e[58]=ee,e[59]=te):te=e[59];let be;e[60]===Symbol.for("react.memo_cache_sentinel")?(be=s.jsx("div",{className:"flex h-full items-center justify-center",children:s.jsx(Pe,{size:32,className:"animate-spin text-muted-foreground"})}),e[60]=be):be=e[60];const Te=O==="settings"?s.jsx(is,{form:W,icon:t.icon}):O==="tools"?s.jsx(bt,{toolSet:T,onToolSetChange:q,excludeVirtualMcpId:n}):O==="resources"?s.jsx(Jt,{resourceSet:P,onResourceSetChange:H,connectionResources:b,excludeVirtualMcpId:n}):O==="prompts"?s.jsx(Gt,{promptSet:z,onPromptSetChange:tt,connectionPrompts:k,excludeVirtualMcpId:n}):null;let se;e[61]!==Te?(se=s.jsx(y.Suspense,{fallback:be,children:Te}),e[61]=Te,e[62]=se):se=e[62];let oe;e[63]!==O||e[64]!==se?(oe=s.jsx("div",{className:"flex h-full w-full bg-background overflow-hidden",children:s.jsx("div",{className:"flex-1 flex flex-col min-w-0 bg-background overflow-hidden",children:s.jsx("div",{className:"h-full overflow-auto",children:s.jsx(Ue,{children:se},O)})})}),e[63]=O,e[64]=se,e[65]=oe):oe=e[65];let ne;e[66]!==C||e[67]!==t?(ne=s.jsx(rs,{open:C,onOpenChange:D,virtualMcp:t}),e[66]=C,e[67]=t,e[68]=ne):ne=e[68];let je;return e[69]!==J||e[70]!==Z||e[71]!==te||e[72]!==oe||e[73]!==ne?(je=s.jsxs(Ot,{onBack:J,children:[Z,te,oe,ne]}),e[69]=J,e[70]=Z,e[71]=te,e[72]=oe,e[73]=ne,e[74]=je):je=e[74],je}function fs(o){return o.name}function hs(o){return{uri:o.uri,name:o.name,description:o.description}}function xs(o){return{name:o.name,description:o.description}}function ps(o){return o.id}function gs(){const o=M.c(10);let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/$org/agents/$agentId"},o[0]=e):e=o[0];const t=qe(e);let n;o[1]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},o[1]=n):n=o[1];const l=ot(n),{org:r}=l,i=l.agentId??l.virtualMcpId??"";let a;o[2]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},o[2]=a):a=o[2];const c=nt(a).tab||"settings",d=St(i);if(!d){let f;return o[3]!==t||o[4]!==r?(f=s.jsx("div",{className:"flex h-full w-full bg-background",children:s.jsx(ut,{title:"Agent not found",description:"This Agent may have been deleted or you may not have access.",actions:s.jsx(G,{variant:"outline",onClick:()=>t({to:"/$org/agents",params:{org:r}}),children:"Back to agents"})})}),o[3]=t,o[4]=r,o[5]=f):f=o[5],f}let u;return o[6]!==c||o[7]!==d||o[8]!==i?(u=s.jsx(us,{virtualMcp:d,virtualMcpId:i,requestedTabId:c}),o[6]=c,o[7]=d,o[8]=i,o[9]=u):u=o[9],u}function bs(){const o=M.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Ue,{children:s.jsx(y.Suspense,{fallback:s.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:s.jsx(Pe,{size:32,className:"animate-spin text-muted-foreground"})}),children:s.jsx(gs,{})})}),o[0]=e):e=o[0],e}function ro(){const o=M.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(bs,{}),o[0]=e):e=o[0],e}export{ro as default};
|
|
1
|
+
import{r as y,c as M,j as s,p as st,l as qe,a as ot,f as nt,V as lt,s as rt,bj as it,bt as at,u as ct,h as dt,k as mt,ab as Re}from"./index-C8OOnmm1.js";import{I as ze,E as ut}from"./empty-state-Cr5g6Vh9.js";import{E as Ue}from"./error-boundary-Dg0Af8BA.js";import{C as We}from"./checkbox-DcPieRc5.js";import{c as Y,B as G}from"./button-C83AQWC1.js";import{i as ft}from"./ArrowLeft-DzpTEYvO.js";import{b as Ye}from"./use-connection-TLrid9RM.js";import{C as ht}from"./collection-search-bOTNZP0b.js";import{I as Ae}from"./input-CrR0FEof.js";import{s as xt}from"./Plus-CcqPpwU0.js";import{i as pt}from"./X-Dz8JZ2ZX.js";import{P as gt}from"./pin-to-sidebar-button-DbV8w54G.js";import{T as bt}from"./tool-set-selector-Btgo2YwH.js";import{I as jt,R as vt,a as yt,u as Ee}from"./index-CmUKmcyS.js";import{c as De,K as Fe}from"./constants-ytntCGH9.js";import{l as Ct,a as Nt}from"./use-mcp-prompts-D5tApqEs.js";import{u as St,a as _t}from"./use-virtual-mcp-C8lLKpyG.js";import{s as Ge}from"./slugify-CEUa2lfQ.js";import{B as He}from"./badge-DfeUgg96.js";import{b as wt,c as kt,a as It,D as Tt}from"./dialog-D_ebnPDF.js";import{F as ve,a as Mt,b as ye,d as Ce,f as Ne,c as $t}from"./form-BISYEAnP.js";import{R as Pt}from"./resource-tabs-BsRvwnyx.js";import{S as Rt}from"./switch-DjW_2nBx.js";import{T as zt}from"./textarea-DRMuRqUv.js";import{b as le,c as re,T as ie,a as ae}from"./tooltip-aHeHMhKh.js";import{i as Ke}from"./Check-CXkamnnr.js";import{i as At}from"./Code01-BNQVP8-g.js";import{a as Vt}from"./Copy01-CpBgXJFP.js";import{i as Et}from"./FlipBackward-Cc_OirbM.js";import{i as Me}from"./InfoCircle-Dwuc2RiH.js";import{i as Pe}from"./Loading01-Bf56vlFv.js";import{i as Dt}from"./Share07-B5yrbjwk.js";import{t as Ft}from"./Users03-CSRHEIl2.js";import{a as Lt,V as Bt,b as Ot}from"./layout-BGZtLEwK.js";import"./use-collections-CkAaybvR.js";import"./useMutation-C4aXMLv3.js";import"./useQuery-DNOH3p7p.js";import"./SearchMd-Ns-pswyj.js";import"./Pin01-DBKe5RmK.js";import"./use-organization-settings-C-IzAdi1.js";const Qe=({size:o=24,color:e="currentColor",...t})=>y.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},y.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));Qe.displayName="ArrowsRight";const Je=({size:o=24,color:e="currentColor",...t})=>y.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},y.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 Ze=({size:o=24,color:e="currentColor",...t})=>y.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},y.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"}));Ze.displayName="Lightbulb02";const Xe=({size:o=24,color:e="currentColor",...t})=>y.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},y.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"}));Xe.displayName="Save01";const qt=y.memo(function(e){const t=M.c(20),{connection:n,isSelected:l,hasItemsEnabled:r,activeItemsCount:i,totalItemsCount:a,onSelect:m,onToggle:c}=e,d=l?"bg-accent/50":"hover:bg-muted/50";let u;t[0]!==d?(u=Y("flex items-center gap-3 p-2 rounded-lg transition-colors will-change-auto",d),t[0]=d,t[1]=u):u=t[1];let f;t[2]!==n.icon||t[3]!==n.title?(f=s.jsx(ze,{icon:n.icon,name:n.title,size:"xs"}),t[2]=n.icon,t[3]=n.title,t[4]=f):f=t[4];let x;t[5]!==n.title?(x=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:n.title})}),t[5]=n.title,t[6]=x):x=t[6];let p;t[7]!==m||t[8]!==f||t[9]!==x?(p=s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:m,children:[f,x]}),t[7]=m,t[8]=f,t[9]=x,t[10]=p):p=t[10];let g;t[11]!==i||t[12]!==r||t[13]!==c||t[14]!==a?(g=a>0&&s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[i,"/",a]}),s.jsx(We,{checked:r,onCheckedChange:c,onClick:Wt})]}),t[11]=i,t[12]=r,t[13]=c,t[14]=a,t[15]=g):g=t[15];let N;return t[16]!==u||t[17]!==p||t[18]!==g?(N=s.jsxs("div",{className:u,children:[p,g]}),t[16]=u,t[17]=p,t[18]=g,t[19]=N):N=t[19],N}),Ut=y.memo(function(e){const t=M.c(18),{connectionId:n,item:l,isSelected:r,onToggle:i}=e,a=`item-${n}-${l.id}`,m=r?"text-foreground":"text-muted-foreground";let c;t[0]!==m?(c=Y("text-sm font-medium",m),t[0]=m,t[1]=c):c=t[1];let d;t[2]!==l.name||t[3]!==c?(d=s.jsx("div",{className:"flex items-center gap-2 mb-1",children:s.jsx("span",{className:c,children:l.name})}),t[2]=l.name,t[3]=c,t[4]=d):d=t[4];let u;t[5]!==l.description?(u=l.description&&s.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:l.description}),t[5]=l.description,t[6]=u):u=t[6];let f;t[7]!==d||t[8]!==u?(f=s.jsxs("div",{className:"flex-1 min-w-0",children:[d,u]}),t[7]=d,t[8]=u,t[9]=f):f=t[9];const x=`item-${n}-${l.id}`;let p;t[10]!==r||t[11]!==i||t[12]!==x?(p=s.jsx("div",{className:"flex items-center shrink-0",children:s.jsx(We,{id:x,checked:r,onCheckedChange:i,onClick:Yt})}),t[10]=r,t[11]=i,t[12]=x,t[13]=p):p=t[13];let g;return t[14]!==a||t[15]!==f||t[16]!==p?(g=s.jsxs("label",{className:"flex items-center gap-3 p-3 rounded-lg hover:bg-muted/50 cursor-pointer group will-change-auto",htmlFor:a,children:[f,p]}),t[14]=a,t[15]=f,t[16]=p,t[17]=g):g=t[17],g});function et({itemSet:o,onItemSetChange:e,getItems:t,itemLabel:n,emptyItemsMessage:l,extraContent:r,excludeVirtualMcpId:i}){const[a,m]=y.useState(""),c=y.useDeferredValue(a),[d,u]=y.useState("all"),[f,x]=y.useState(!1),p=y.useRef(new Set(Object.keys(o))),g=Ye({searchTerm:c.trim()||void 0}),N=i?g.filter(h=>h.connection_type!=="VIRTUAL"?!0:st(h.connection_url)!==i):g,S=p.current,I=[...S.values()].map(h=>N.find(C=>C.id===h)).filter(h=>h!==void 0),k=N.filter(h=>!S.has(h.id)),b=[...I,...k],v=h=>{const C=o[h];return C!==void 0&&C.length>0},_=b.filter(h=>{if(d==="all")return!0;const C=v(h.id);return d==="selected"?C:d==="unselected"?!C:!0}),[T,$]=y.useState(b[0]?.id??null),w=T?b.find(h=>h.id===T)??null:null,P=w?t(w):[],V=(h,C)=>o[h]?.includes(C)??!1,R=(h,C)=>{const D=o[h]??[],F=D.includes(C),q={...o};if(F){const U=D.filter(H=>H!==C);U.length===0?delete q[h]:q[h]=U}else q[h]=[...D,C];e(q)},z=h=>{const C=b.find(B=>B.id===h);if(!C)return;const D=t(C);if(D.length===0)return;const F=o[h]??[],q=D.map(B=>B.id),U=F.length>0&&q.every(B=>F.includes(B)),H={...o};U?delete H[h]:(H[h]=q,$(h)),e(H)},E=h=>{$(h),x(!0)},L=()=>{x(!1)};return s.jsxs("div",{className:"flex h-full",children:[s.jsxs("div",{className:Y("w-full md:w-80 border-r border-border flex flex-col",f&&"hidden md:flex"),children:[s.jsx(ht,{value:a,onChange:m,placeholder:"Search Connections..."}),s.jsxs("div",{className:"flex gap-1 p-2 border-b border-border",children:[s.jsx("button",{onClick:()=>u("all"),className:Y("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="all"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"All"}),s.jsx("button",{onClick:()=>u("selected"),className:Y("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="selected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Selected"}),s.jsx("button",{onClick:()=>u("unselected"),className:Y("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="unselected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Unselected"})]}),s.jsx("div",{className:"flex-1 overflow-auto",children:_.length===0?s.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:a?"No connections found":d==="selected"?"No servers selected":d==="unselected"?"No unselected servers":"No connections available"}):s.jsx("div",{className:"p-2 space-y-1",children:_.map(h=>{const D=t(h).length,F=o[h.id]?.length??0;return s.jsx(qt,{connection:h,isSelected:T===h.id,hasItemsEnabled:v(h.id),activeItemsCount:F,totalItemsCount:D,onSelect:()=>E(h.id),onToggle:()=>z(h.id)},h.id)})})})]}),s.jsx("div",{className:Y("flex-1 flex-col",f?"flex":"hidden md:flex"),children:w?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"md:hidden border-b border-border p-4 flex items-center gap-3",children:[s.jsx(G,{variant:"ghost",size:"sm",onClick:L,className:"h-8 w-8 p-0 shrink-0",children:s.jsx(ft,{size:20})}),s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[s.jsx(ze,{icon:w.icon,name:w.title,size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:w.title}),w.description&&s.jsx("p",{className:"text-sm text-muted-foreground truncate",children:w.description})]})]})]}),r,s.jsx("div",{className:"flex-1 overflow-auto p-4",children:P.length===0?s.jsx("div",{className:"text-sm text-muted-foreground text-center py-8",children:l||`This connection has no ${n} available`}):s.jsx("div",{className:"space-y-2",children:P.map(h=>s.jsx(Ut,{connectionId:w.id,item:h,isSelected:V(w.id,h.id),onToggle:()=>R(w.id,h.id)},h.id))})})]}):s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:["Select a connection to view its ",n]})})})]})}function Wt(o){return o.stopPropagation()}function Yt(o){return o.stopPropagation()}function Gt(o){const e=M.c(7),{promptSet:t,onPromptSetChange:n,connectionPrompts:l,excludeVirtualMcpId:r}=o;let i;e[0]!==l?(i=c=>(l.get(c.id)??[]).map(Ht),e[0]=l,e[1]=i):i=e[1];const a=i;let m;return e[2]!==r||e[3]!==a||e[4]!==n||e[5]!==t?(m=s.jsx(et,{itemSet:t,onItemSetChange:n,getItems:a,itemLabel:"prompts",emptyItemsMessage:"This connection has no prompts available",excludeVirtualMcpId:r}),e[2]=r,e[3]=a,e[4]=n,e[5]=t,e[6]=m):m=e[6],m}function Ht(o){return{id:o.name,name:o.name,description:o.description}}function Kt(o){return o.includes("*")}function Qt(o){const e=M.c(27),{patterns:t,onAddPattern:n,onRemovePattern:l}=o,[r,i]=y.useState("");let a;e[0]!==r||e[1]!==n||e[2]!==t?(a=()=>{const f=r.trim();f&&!t.includes(f)&&(n(f),i(""))},e[0]=r,e[1]=n,e[2]=t,e[3]=a):a=e[3];const m=a;let c;e[4]!==m?(c=f=>{f.key==="Enter"&&(f.preventDefault(),m())},e[4]=m,e[5]=c):c=e[5];const d=c;let u;if(e[6]!==m||e[7]!==d||e[8]!==r||e[9]!==l||e[10]!==t){const f=t.filter(Kt);let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("code",{children:"*"}),e[12]=x):x=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("div",{className:"text-xs text-muted-foreground",children:["Add URI patterns to match multiple resources. Use ",x," for single segment and ",s.jsx("code",{children:"**"})," for multiple segments."]}),e[13]=p):p=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=_=>i(_.target.value),e[14]=g):g=e[14];let N;e[15]!==d||e[16]!==r?(N=s.jsx(Ae,{value:r,onChange:g,onKeyDown:d,placeholder:"e.g., file:///**/*.ts or db://users/*",className:"flex-1 text-sm"}),e[15]=d,e[16]=r,e[17]=N):N=e[17];let S;e[18]!==r?(S=r.trim(),e[18]=r,e[19]=S):S=e[19];const I=!S;let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(xt,{size:16}),e[20]=k):k=e[20];let b;e[21]!==m||e[22]!==I?(b=s.jsx(G,{type:"button",variant:"outline",size:"sm",onClick:m,disabled:I,children:k}),e[21]=m,e[22]=I,e[23]=b):b=e[23];let v;e[24]!==b||e[25]!==N?(v=s.jsxs("div",{className:"flex gap-2",children:[N,b]}),e[24]=b,e[25]=N,e[26]=v):v=e[26],u=s.jsxs("div",{className:"border-b border-border p-4 space-y-3",children:[p,v,f.length>0&&s.jsx("div",{className:"flex flex-wrap gap-2",children:f.map(_=>s.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-muted rounded-md text-xs",children:[s.jsx("code",{className:"text-foreground",children:_}),s.jsx("button",{type:"button",onClick:()=>l(_),className:"text-muted-foreground hover:text-foreground",children:s.jsx(pt,{size:12})})]},_))})]}),e[6]=m,e[7]=d,e[8]=r,e[9]=l,e[10]=t,e[11]=u}else u=e[11];return u}function Jt(o){const e=M.c(24),{resourceSet:t,onResourceSetChange:n,connectionResources:l,excludeVirtualMcpId:r}=o,[i]=y.useState(null);let a;e[0]!==l?(a=b=>(l.get(b.id)??[]).map(Zt),e[0]=l,e[1]=a):a=e[1];const m=a;let c;e[2]!==n||e[3]!==t?(c=(b,v)=>{const _=t[b]??[];_.includes(v)||n({...t,[b]:[..._,v]})},e[2]=n,e[3]=t,e[4]=c):c=e[4];const d=c;let u;e[5]!==n||e[6]!==t?(u=(b,v)=>{const T=(t[b]??[]).filter($=>$!==v);if(T.length===0){const $={...t};delete $[b],n($)}else n({...t,[b]:T})},e[5]=n,e[6]=t,e[7]=u):u=e[7];const f=u;let x;e[8]!==n?(x=b=>{n(b)},e[8]=n,e[9]=x):x=e[9];const p=x;let g;e[10]!==t||e[11]!==i?(g=i?t[i]??[]:[],e[10]=t,e[11]=i,e[12]=g):g=e[12];const N=g;let S;e[13]!==d||e[14]!==f||e[15]!==i||e[16]!==N?(S=i?s.jsx(Qt,{patterns:N,onAddPattern:b=>d(i,b),onRemovePattern:b=>f(i,b)}):null,e[13]=d,e[14]=f,e[15]=i,e[16]=N,e[17]=S):S=e[17];const I=S;let k;return e[18]!==r||e[19]!==I||e[20]!==m||e[21]!==p||e[22]!==t?(k=s.jsx("div",{className:"h-full",children:s.jsx(et,{itemSet:t,onItemSetChange:p,getItems:m,itemLabel:"resources",emptyItemsMessage:"This connection has no resources available",extraContent:I,excludeVirtualMcpId:r})}),e[18]=r,e[19]=I,e[20]=m,e[21]=p,e[22]=t,e[23]=k):k=e[23],k}function Zt(o){return{id:o.uri,name:o.name||o.uri,description:o.description||o.uri}}function Xt(o){const e=M.c(8);let t,n;e[0]!==o?({className:t,...n}=o,e[0]=o,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let l;e[3]!==t?(l=Y("grid gap-3",t),e[3]=t,e[4]=l):l=e[4];let r;return e[5]!==n||e[6]!==l?(r=s.jsx(vt,{"data-slot":"radio-group",className:l,...n}),e[5]=n,e[6]=l,e[7]=r):r=e[7],r}function $e(o){const e=M.c(9);let t,n;e[0]!==o?({className:t,...n}=o,e[0]=o,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let l;e[3]!==t?(l=Y("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=l):l=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(yt,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:s.jsx(Je,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})}),e[5]=r):r=e[5];let i;return e[6]!==n||e[7]!==l?(i=s.jsx(jt,{"data-slot":"radio-group-item",className:l,...n,children:r}),e[6]=n,e[7]=l,e[8]=i):i=e[8],i}function es(o){const t=new TextEncoder().encode(o),n=Array.from(t,l=>String.fromCharCode(l)).join("");return btoa(n)}const ts=lt.pick({title:!0,description:!0,status:!0,metadata:!0}).extend({title:rt().min(1,"Name is required").max(255)});function Le(o,e){const t={};for(const n of o.connections)if(n.selected_tools===null){const l=e.get(n.connection_id)??[];l.length>0&&(t[n.connection_id]=l)}else n.selected_tools.length>0&&(t[n.connection_id]=n.selected_tools);return t}function Be(o){const e={};for(const t of o.connections)t.selected_resources!==null&&t.selected_resources!==void 0&&t.selected_resources.length>0&&(e[t.connection_id]=t.selected_resources);return e}function Oe(o){const e={};for(const t of o.connections)t.selected_prompts!==null&&t.selected_prompts!==void 0&&t.selected_prompts.length>0&&(e[t.connection_id]=t.selected_prompts);return e}function ss(o,e,t,n){const l=new Set([...Object.keys(o),...Object.keys(e),...Object.keys(t)]);return Array.from(l).map(r=>{const i=o[r]??[],a=n.get(r)??[],m=a.length>0&&a.every(c=>i.includes(c));return{connection_id:r,selected_tools:i.length===0||m?null:i,selected_resources:e[r]??null,selected_prompts:t[r]??null}})}function os(o){const e=M.c(10),{url:t}=o,[n,l]=y.useState(!1);let r;e[0]!==t?(r=async()=>{await navigator.clipboard.writeText(t),l(!0),Re.success("Agent URL copied to clipboard"),setTimeout(()=>l(!1),2e3)},e[0]=t,e[1]=r):r=e[1];const i=r;let a;e[2]!==n?(a=n?s.jsx(Ke,{size:20,className:"text-green-600"}):s.jsx(Vt,{size:20}),e[2]=n,e[3]=a):a=e[3];const m=n?"Copied!":"Copy URL";let c;e[4]!==m?(c=s.jsx("span",{className:"text-xs font-medium",children:m}),e[4]=m,e[5]=c):c=e[5];let d;return e[6]!==i||e[7]!==a||e[8]!==c?(d=s.jsxs(G,{type:"button",variant:"outline",onClick:i,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[a,c]}),e[6]=i,e[7]=a,e[8]=c,e[9]=d):d=e[9],d}function ns(o){const e=M.c(7),{url:t,serverName:n}=o;let l;e[0]!==n||e[1]!==t?(l=()=>{const c=Ge(n),u=es(JSON.stringify({type:"http",url:t,headers:{"x-mesh-client":"Cursor"}},null,2)),f=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(c)}&config=${encodeURIComponent(u)}`;window.open(f,"_blank"),Re.success("Opening Cursor...")},e[0]=n,e[1]=t,e[2]=l):l=e[2];const r=l;let i,a;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.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%)"}}),a=s.jsx("span",{className:"text-xs font-medium",children:"Install on Cursor"}),e[3]=i,e[4]=a):(i=e[3],a=e[4]);let m;return e[5]!==r?(m=s.jsxs(G,{type:"button",variant:"outline",onClick:r,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[i,a]}),e[5]=r,e[6]=m):m=e[6],m}function ls(o){const e=M.c(11),{url:t,serverName:n}=o,[l,r]=y.useState(!1);let i;e[0]!==n||e[1]!==t?(i=async()=>{const f=Ge(n),p=JSON.stringify({type:"http",url:t,headers:{"x-mesh-client":"Claude Code"}},null,2),g=`claude mcp add-json "${f}" '${p.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(g),r(!0),Re.success("Claude Code command copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[0]=n,e[1]=t,e[2]=i):i=e[2];const a=i;let m;e[3]!==l?(m=l?s.jsx(Ke,{size:20,className:"text-green-600"}):s.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]=l,e[4]=m):m=e[4];const c=l?"Copied!":"Install on Claude";let d;e[5]!==c?(d=s.jsx("span",{className:"text-xs font-medium",children:c}),e[5]=c,e[6]=d):d=e[6];let u;return e[7]!==a||e[8]!==m||e[9]!==d?(u=s.jsxs(G,{type:"button",variant:"outline",onClick:a,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[m,d]}),e[7]=a,e[8]=m,e[9]=d,e[10]=u):u=e[10],u}function rs(o){const e=M.c(40),{open:t,onOpenChange:n,virtualMcp:l}=o,[r,i]=y.useState("code_execution");let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=C=>{(C==="passthrough"||C==="smart_tool_selection"||C==="code_execution")&&i(C)},e[0]=a):a=e[0];const m=a;let c;e[1]!==r||e[2]!==l.id?(c=new URL(`/mcp/virtual-mcp/${l.id}`,window.location.origin),c.searchParams.set("mode",r),e[1]=r,e[2]=l.id,e[3]=c):c=e[3];let d;e[4]!==l.id||e[5]!==l.title?(d=l.title||`agent-${l.id?.slice(0,8)??"default"}`,e[4]=l.id,e[5]=l.title,e[6]=d):d=e[6];const u=d;let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(wt,{children:s.jsx(kt,{children:"Share Agent"})}),e[7]=f):f=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("div",{children:s.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[8]=x):x=e[8];let p;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx("div",{className:"p-1.5 shrink-0",children:s.jsx(Qe,{className:"size-5 text-muted-foreground"})}),e[9]=p):p=e[9];let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx("span",{className:"text-sm font-medium text-foreground",children:"Direct access"}),e[10]=g):g=e[10];let N;e[11]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(ie,{asChild:!0,children:s.jsx(Me,{className:"size-3.5 text-muted-foreground"})}),e[11]=N):N=e[11];let S;e[12]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsxs("label",{htmlFor:"mode-passthrough",className:"flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[p,s.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[g,s.jsx(le,{children:s.jsxs(re,{children:[N,s.jsx(ae,{className:"max-w-xs",children:s.jsx("p",{className:"text-xs",children:"All tools are exposed directly via tools/list. Best for small tool surfaces with deterministic behavior."})})]})})]}),s.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Best for small teams or when you need predictable behavior"})]}),s.jsx($e,{id:"mode-passthrough",value:"passthrough"})]}),e[12]=S):S=e[12];let I;e[13]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx("div",{className:"p-1.5 shrink-0",children:s.jsx(Ze,{className:"size-5 text-muted-foreground"})}),e[13]=I):I=e[13];let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart discovery"}),e[14]=k):k=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(ie,{asChild:!0,children:s.jsx(Me,{className:"size-3.5 text-muted-foreground"})}),e[15]=b):b=e[15];let v;e[16]===Symbol.for("react.memo_cache_sentinel")?(v=s.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:[I,s.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[k,s.jsx(le,{children:s.jsxs(re,{children:[b,s.jsx(ae,{className:"max-w-xs",children:s.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."})})]})})]}),s.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Ideal for large teams with many tools - AI finds what it needs"})]}),s.jsx($e,{id:"mode-smart",value:"smart_tool_selection"})]}),e[16]=v):v=e[16];let _;e[17]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx("div",{className:"p-1.5 shrink-0",children:s.jsx(At,{className:"size-5 text-muted-foreground"})}),e[17]=_):_=e[17];let T;e[18]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart execution"}),e[18]=T):T=e[18];let $;e[19]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(ie,{asChild:!0,children:s.jsx(Me,{className:"size-3.5 text-muted-foreground"})}),e[19]=$):$=e[19];let w;e[20]===Symbol.for("react.memo_cache_sentinel")?(w=s.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:[_,s.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[T,s.jsx(le,{children:s.jsxs(re,{children:[$,s.jsx(ae,{className:"max-w-xs",children:s.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."})})]})})]}),s.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Maximum flexibility - AI can write code to orchestrate tools"})]}),s.jsx($e,{id:"mode-code",value:"code_execution"}),s.jsx(He,{variant:"outline",className:"absolute -top-2.5 left-1/2 -translate-x-1/2 bg-background z-10",children:"Recommended"})]}),e[20]=w):w=e[20];let P;e[21]!==r?(P=s.jsxs("div",{className:"flex flex-col gap-3",children:[x,s.jsxs(Xt,{value:r,onValueChange:m,className:"flex flex-col gap-4.5",children:[S,v,w]})]}),e[21]=r,e[22]=P):P=e[22];let V;e[23]!==c.href?(V=s.jsx(os,{url:c.href}),e[23]=c.href,e[24]=V):V=e[24];let R,z;e[25]!==u||e[26]!==c.href?(R=s.jsx(ns,{url:c.href,serverName:u}),z=s.jsx(ls,{url:c.href,serverName:u}),e[25]=u,e[26]=c.href,e[27]=R,e[28]=z):(R=e[27],z=e[28]);let E;e[29]!==V||e[30]!==R||e[31]!==z?(E=s.jsx("div",{className:"flex flex-col gap-3 pt-2",children:s.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[V,R,z]})}),e[29]=V,e[30]=R,e[31]=z,e[32]=E):E=e[32];let L;e[33]!==P||e[34]!==E?(L=s.jsxs(It,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[f,s.jsxs("div",{className:"flex flex-col gap-6",children:[P,E]})]}),e[33]=P,e[34]=E,e[35]=L):L=e[35];let h;return e[36]!==n||e[37]!==t||e[38]!==L?(h=s.jsx(Tt,{open:t,onOpenChange:n,children:L}),e[36]=n,e[37]=t,e[38]=L,e[39]=h):h=e[39],h}function is(o){const e=M.c(25),{form:t,icon:n}=o;let l;e[0]!==t?(l=t.watch("title")||"Agent",e[0]=t,e[1]=l):l=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ft,{}),e[2]=r):r=e[2];let i;e[3]!==n||e[4]!==l?(i=s.jsx(ze,{icon:n,name:l,size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:r}),e[3]=n,e[4]=l,e[5]=i):i=e[5];let a;e[6]!==t.control?(a=s.jsx(ve,{control:t.control,name:"status",render:ms}),e[6]=t.control,e[7]=a):a=e[7];let m;e[8]!==i||e[9]!==a?(m=s.jsxs("div",{className:"flex items-start justify-between",children:[i,a]}),e[8]=i,e[9]=a,e[10]=m):m=e[10];let c;e[11]!==t.control?(c=s.jsxs("div",{className:"flex flex-col",children:[s.jsx(ve,{control:t.control,name:"title",render:ds}),s.jsx(ve,{control:t.control,name:"description",render:cs})]}),e[11]=t.control,e[12]=c):c=e[12];let d;e[13]!==m||e[14]!==c?(d=s.jsxs("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:[m,c]}),e[13]=m,e[14]=c,e[15]=d):d=e[15];let u;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("div",{className:"flex flex-col gap-4 p-5 border-b border-border"}),e[16]=u):u=e[16];let f;e[17]!==t.control?(f=s.jsx("div",{className:"flex flex-col gap-3 p-5",children:s.jsx(ve,{control:t.control,name:"metadata",render:as})}),e[17]=t.control,e[18]=f):f=e[18];let x;e[19]!==d||e[20]!==f?(x=s.jsxs("div",{className:"flex flex-col",children:[d,u,f]}),e[19]=d,e[20]=f,e[21]=x):x=e[21];let p;return e[22]!==t||e[23]!==x?(p=s.jsx("div",{className:"flex flex-col h-full overflow-auto",children:s.jsx(Mt,{...t,children:x})}),e[22]=t,e[23]=x,e[24]=p):p=e[24],p}function as(o){const{field:e}=o;return s.jsxs(ye,{children:[s.jsxs("div",{children:[s.jsx($t,{className:"text-sm font-medium text-foreground mb-1",children:"Instructions"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Define the agent's role, capabilities, and behavior to guide how it interprets requests, uses available tools, and responds to users."})]}),s.jsx(Ce,{children:s.jsx(zt,{value:e.value?.instructions??"",onChange:t=>e.onChange({...e.value??{},instructions:t.target.value||void 0}),placeholder:"You are a helpful assistant that specializes in customer support. Your role is to help users resolve issues and answer questions...",className:"min-h-[240px] resize-none text-sm leading-relaxed"})}),s.jsx(Ne,{})]})}function cs(o){const{field:e}=o;return s.jsxs(ye,{className:"w-full space-y-0",children:[s.jsx(Ce,{children:s.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..."})}),s.jsx(Ne,{})]})}function ds(o){const{field:e}=o;return s.jsxs(ye,{className:"w-full space-y-0",children:[s.jsx(Ce,{children:s.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"})}),s.jsx(Ne,{})]})}function ms(o){const{field:e}=o;return s.jsxs(ye,{children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(He,{variant:e.value==="active"?"success":"outline",children:e.value==="active"?"Active":"Inactive"}),s.jsx(Ce,{children:s.jsx(Rt,{checked:e.value==="active",onCheckedChange:t=>e.onChange(t?"active":"inactive")})})]}),s.jsx(Ne,{})]})}function us(o){const e=M.c(75),{virtualMcp:t,virtualMcpId:n,requestedTabId:l}=o,i=it().location.href,a=at();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={from:"/$org/agents/$agentId"},e[0]=m):m=e[0];const c=qe(m),d=_t(),{org:u}=ct();let f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f={},e[1]=f):f=e[1];const x=Ye(f),p=x.map(ps);let g;e[2]!==u?(g=j=>({queryKey:Fe.connectionPrompts(j),queryFn:async()=>{try{const A=await De({connectionId:j,orgId:u.id});return await Ct(A)}catch{return{prompts:[]}}},staleTime:6e4,retry:!1}),e[2]=u,e[3]=g):g=e[3];const N=Ee({queries:p.map(g)});let S;e[4]!==u?(S=j=>({queryKey:Fe.connectionResources(j),queryFn:async()=>{try{const A=await De({connectionId:j,orgId:u.id});return await Nt(A)}catch{return{resources:[]}}},staleTime:6e4,retry:!1}),e[4]=u,e[5]=S):S=e[5];const I=Ee({queries:p.map(S)}),k=new Map;p.forEach((j,A)=>{const K=N[A];K?.data?k.set(j,K.data.prompts.map(xs)):k.set(j,[])});const b=new Map;p.forEach((j,A)=>{const K=I[A];K?.data?b.set(j,K.data.resources.map(hs)):b.set(j,[])});let v;if(e[6]!==x){v=new Map;for(const j of x)j.tools&&j.tools.length>0&&v.set(j.id,j.tools.map(fs));e[6]=x,e[7]=v}else v=e[7];let _;e[8]!==v||e[9]!==t?(_=()=>Le(t,v),e[8]=v,e[9]=t,e[10]=_):_=e[10];const[T,$]=y.useState(_);let w;e[11]!==t?(w=()=>Be(t),e[11]=t,e[12]=w):w=e[12];const[P,V]=y.useState(w);let R;e[13]!==t?(R=()=>Oe(t),e[13]=t,e[14]=R):R=e[14];const[z,E]=y.useState(R),[L,h]=y.useState(!1),[C,D]=y.useState(!1);let F;e[15]===Symbol.for("react.memo_cache_sentinel")?(F=j=>{$(j),h(!0)},e[15]=F):F=e[15];const q=F;let U;e[16]===Symbol.for("react.memo_cache_sentinel")?(U=j=>{V(j),h(!0)},e[16]=U):U=e[16];const H=U;let B;e[17]===Symbol.for("react.memo_cache_sentinel")?(B=j=>{E(j),h(!0)},e[17]=B):B=e[17];const tt=B;let de;e[18]===Symbol.for("react.memo_cache_sentinel")?(de=dt(ts),e[18]=de):de=e[18];let Q;e[19]!==t.metadata?(Q=t.metadata??{instructions:""},e[19]=t.metadata,e[20]=Q):Q=e[20];let me;e[21]!==Q||e[22]!==t.description||e[23]!==t.status||e[24]!==t.title?(me={resolver:de,defaultValues:{title:t.title,description:t.description,status:t.status,metadata:Q}},e[21]=Q,e[22]=t.description,e[23]=t.status,e[24]=t.title,e[25]=me):me=e[25];const W=mt(me),Se=W.formState.isDirty||L;let ue;e[26]!==d.update||e[27]!==v||e[28]!==W||e[29]!==z||e[30]!==P||e[31]!==T||e[32]!==n?(ue=async()=>{try{const j=W.getValues(),A=ss(T,P,z,v),K={title:j.title,description:j.description,status:j.status,metadata:j.metadata,connections:A};await d.update.mutateAsync({id:n,data:K}),W.reset(j),h(!1)}catch(j){console.error("Failed to save virtual MCP:",j)}},e[26]=d.update,e[27]=v,e[28]=W,e[29]=z,e[30]=P,e[31]=T,e[32]=n,e[33]=ue):ue=e[33];const _e=ue;let fe;e[34]!==v||e[35]!==W||e[36]!==t?(fe=()=>{W.reset({title:t.title,description:t.description,status:t.status,metadata:t.metadata??{instructions:""}}),$(Le(t,v)),V(Be(t)),E(Oe(t)),h(!1)},e[34]=v,e[35]=W,e[36]=t,e[37]=fe):fe=e[37];const we=fe;let he;e[38]===Symbol.for("react.memo_cache_sentinel")?(he=[{id:"settings",label:"Settings"},{id:"tools",label:"Tools"},{id:"resources",label:"Resources"},{id:"prompts",label:"Prompts"}],e[38]=he):he=e[38];const Ve=he,O=Ve.some(j=>j.id===l)?l:"settings";let xe;e[39]!==c?(xe=j=>{c({search:A=>({...A,tab:j}),replace:!0})},e[39]=c,e[40]=xe):xe=e[40];const ke=xe,ce=d.update.isPending;let J;e[41]!==a.history?(J=()=>a.history.back(),e[41]=a.history,e[42]=J):J=e[42];let Z;e[43]!==O||e[44]!==ke?(Z=s.jsx(Lt,{children:s.jsx(Pt,{tabs:Ve,activeTab:O,onTabChange:ke})}),e[43]=O,e[44]=ke,e[45]=Z):Z=e[45];let X;e[46]!==we||e[47]!==_e||e[48]!==Se||e[49]!==ce?(X=Se&&s.jsxs(s.Fragment,{children:[s.jsx(le,{children:s.jsxs(re,{delayDuration:0,children:[s.jsx(ie,{asChild:!0,children:s.jsx("span",{className:"inline-block",children:s.jsx(G,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:ce,onClick:we,"aria-label":"Cancel",children:s.jsx(Et,{size:14})})})}),s.jsx(ae,{side:"bottom",children:"Cancel"})]})}),s.jsx(le,{children:s.jsxs(re,{delayDuration:0,children:[s.jsx(ie,{asChild:!0,children:s.jsx("span",{className:"inline-block",children:s.jsx(G,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:ce,onClick:_e,"aria-label":"Save",children:ce?s.jsx(Pe,{size:14,className:"animate-spin"}):s.jsx(Xe,{size:14})})})}),s.jsx(ae,{side:"bottom",children:"Save"})]})})]}),e[46]=we,e[47]=_e,e[48]=Se,e[49]=ce,e[50]=X):X=e[50];let pe;e[51]===Symbol.for("react.memo_cache_sentinel")?(pe=()=>D(!0),e[51]=pe):pe=e[51];let ge;e[52]===Symbol.for("react.memo_cache_sentinel")?(ge=s.jsx(le,{children:s.jsxs(re,{delayDuration:0,children:[s.jsx(ie,{asChild:!0,children:s.jsx("span",{className:"inline-block",children:s.jsx(G,{variant:"outline",size:"icon",className:"size-7 border border-input",onClick:pe,"aria-label":"Share",children:s.jsx(Dt,{size:14})})})}),s.jsx(ae,{side:"bottom",children:"Share"})]})}),e[52]=ge):ge=e[52];const Ie=t.icon??"cpu_chip";let ee;e[53]!==Ie||e[54]!==i||e[55]!==t.title?(ee=s.jsx(gt,{title:t.title,url:i,icon:Ie}),e[53]=Ie,e[54]=i,e[55]=t.title,e[56]=ee):ee=e[56];let te;e[57]!==X||e[58]!==ee?(te=s.jsxs(Bt,{children:[X,ge,ee]}),e[57]=X,e[58]=ee,e[59]=te):te=e[59];let be;e[60]===Symbol.for("react.memo_cache_sentinel")?(be=s.jsx("div",{className:"flex h-full items-center justify-center",children:s.jsx(Pe,{size:32,className:"animate-spin text-muted-foreground"})}),e[60]=be):be=e[60];const Te=O==="settings"?s.jsx(is,{form:W,icon:t.icon}):O==="tools"?s.jsx(bt,{toolSet:T,onToolSetChange:q,excludeVirtualMcpId:n}):O==="resources"?s.jsx(Jt,{resourceSet:P,onResourceSetChange:H,connectionResources:b,excludeVirtualMcpId:n}):O==="prompts"?s.jsx(Gt,{promptSet:z,onPromptSetChange:tt,connectionPrompts:k,excludeVirtualMcpId:n}):null;let se;e[61]!==Te?(se=s.jsx(y.Suspense,{fallback:be,children:Te}),e[61]=Te,e[62]=se):se=e[62];let oe;e[63]!==O||e[64]!==se?(oe=s.jsx("div",{className:"flex h-full w-full bg-background overflow-hidden",children:s.jsx("div",{className:"flex-1 flex flex-col min-w-0 bg-background overflow-hidden",children:s.jsx("div",{className:"h-full overflow-auto",children:s.jsx(Ue,{children:se},O)})})}),e[63]=O,e[64]=se,e[65]=oe):oe=e[65];let ne;e[66]!==C||e[67]!==t?(ne=s.jsx(rs,{open:C,onOpenChange:D,virtualMcp:t}),e[66]=C,e[67]=t,e[68]=ne):ne=e[68];let je;return e[69]!==J||e[70]!==Z||e[71]!==te||e[72]!==oe||e[73]!==ne?(je=s.jsxs(Ot,{onBack:J,children:[Z,te,oe,ne]}),e[69]=J,e[70]=Z,e[71]=te,e[72]=oe,e[73]=ne,e[74]=je):je=e[74],je}function fs(o){return o.name}function hs(o){return{uri:o.uri,name:o.name,description:o.description}}function xs(o){return{name:o.name,description:o.description}}function ps(o){return o.id}function gs(){const o=M.c(10);let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/$org/agents/$agentId"},o[0]=e):e=o[0];const t=qe(e);let n;o[1]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},o[1]=n):n=o[1];const l=ot(n),{org:r}=l,i=l.agentId??l.virtualMcpId??"";let a;o[2]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},o[2]=a):a=o[2];const c=nt(a).tab||"settings",d=St(i);if(!d){let f;return o[3]!==t||o[4]!==r?(f=s.jsx("div",{className:"flex h-full w-full bg-background",children:s.jsx(ut,{title:"Agent not found",description:"This Agent may have been deleted or you may not have access.",actions:s.jsx(G,{variant:"outline",onClick:()=>t({to:"/$org/agents",params:{org:r}}),children:"Back to agents"})})}),o[3]=t,o[4]=r,o[5]=f):f=o[5],f}let u;return o[6]!==c||o[7]!==d||o[8]!==i?(u=s.jsx(us,{virtualMcp:d,virtualMcpId:i,requestedTabId:c}),o[6]=c,o[7]=d,o[8]=i,o[9]=u):u=o[9],u}function bs(){const o=M.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Ue,{children:s.jsx(y.Suspense,{fallback:s.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:s.jsx(Pe,{size:32,className:"animate-spin text-muted-foreground"})}),children:s.jsx(gs,{})})}),o[0]=e):e=o[0],e}function ro(){const o=M.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(bs,{}),o[0]=e):e=o[0],e}export{ro as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Z,j as t,r as ee,u as te,l as se}from"./index-
|
|
1
|
+
import{c as Z,j as t,r as ee,u as te,l as se}from"./index-C8OOnmm1.js";import{C as oe}from"./collection-header-Fc9BtUxQ.js";import{C as re}from"./collection-page-DvzZtNQd.js";import{C as ne}from"./collection-search-bOTNZP0b.js";import{C as ie}from"./collection-table-wrapper-Ch8oh2UW.js";import{C as ae}from"./connection-card-BZU7F7-m.js";import{E as W,I as le}from"./empty-state-Cr5g6Vh9.js";import{E as ce}from"./error-boundary-Dg0Af8BA.js";import{u as de,s as G}from"./use-list-state-DuKw_MMV.js";import{u as me}from"./use-create-virtual-mcp-Bi6QQFl1.js";import{i as ge}from"./constants-ytntCGH9.js";import{b as ue,a as pe}from"./use-virtual-mcp-C8lLKpyG.js";import{c as he,b as fe,d as xe,A as je,e as Ce,g as we,a as ye,f as Ne}from"./alert-dialog-5t1wq8Xl.js";import{B as De}from"./badge-DfeUgg96.js";import{B as q}from"./button-C83AQWC1.js";import{D as J,a as Q,b as U,c as E}from"./dropdown-menu-CzQCi3DZ.js";import{i as X}from"./DotsVertical-D5MnD2QZ.js";import{i as Se}from"./Loading01-Bf56vlFv.js";import{s as Y}from"./Trash01-DVYV3BJw.js";import{t as x}from"./Users03-CSRHEIl2.js";import"./collection-display-button-DlAEKbje.js";import"./ArrowUp-BfBrilbk.js";import"./Check-CXkamnnr.js";import"./Grid01-C_dMOr-7.js";import"./List-d88_8fTd.js";import"./tooltip-aHeHMhKh.js";import"./view-mode-toggle-jPeow5hv.js";import"./SearchMd-Ns-pswyj.js";import"./input-CrR0FEof.js";import"./card-CbXWWn3M.js";import"./use-mobile-DQ806XzQ.js";import"./use-collections-CkAaybvR.js";import"./useMutation-C4aXMLv3.js";import"./useQuery-DNOH3p7p.js";function be(e,r){switch(r.type){case"delete":return{mode:"deleting",virtualMcp:r.virtualMcp};case"close":return{mode:"idle"}}}function ve(){const e=Z.c(62),{org:r}=te(),i=se();let j;e[0]!==r.slug?(j={namespace:r.slug,resource:"agents"},e[0]=r.slug,e[1]=j):j=e[1];const s=de(j),f=ue(s);let C;e[2]===Symbol.for("react.memo_cache_sentinel")?(C={navigateOnCreate:!0},e[2]=C):C=e[2];const{createVirtualMCP:V,isCreating:w}=me(C),O=pe();let y;e[3]===Symbol.for("react.memo_cache_sentinel")?(y={mode:"idle"},e[3]=y):y=e[3];const[n,N]=ee.useReducer(be,y);let D;e[4]!==O||e[5]!==n.mode||e[6]!==n.virtualMcp?(D=async()=>{if(n.mode!=="deleting")return;const o=n.virtualMcp.id;if(N({type:"close"}),!(!o||ge(o)))try{await O.delete.mutateAsync(o)}catch{}},e[4]=O,e[5]=n.mode,e[6]=n.virtualMcp,e[7]=D):D=e[7];const B=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:$e,cellClassName:"w-48 min-w-0 shrink-0",sortable:!0},v={id:"description",header:"Description",render:_e,cellClassName:"flex-1 min-w-0",wrap:!0,sortable:!0},k={id:"connections",header:"Connections",render:Pe,cellClassName:"w-24 shrink-0"},A={id:"status",header:"Status",render:Ie,cellClassName:"w-24 shrink-0",sortable:!0},e[8]=S,e[9]=b,e[10]=v,e[11]=k,e[12]=A):(S=e[8],b=e[9],v=e[10],k=e[11],A=e[12]);let z;e[13]!==i||e[14]!==r.slug?(z=[S,b,v,k,A,{id:"actions",header:"",render:o=>t.jsxs(J,{children:[t.jsx(Q,{asChild:!0,children:t.jsx(q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Me,children:t.jsx(X,{size:20})})}),t.jsxs(U,{align:"end",onClick:ze,children:[t.jsxs(E,{onClick:a=>{a.stopPropagation(),i({to:"/$org/agents/$agentId",params:{org:r.slug,agentId:o.id}})},children:[t.jsx(G,{size:16}),"Open"]}),t.jsxs(E,{variant:"destructive",onClick:a=>{a.stopPropagation(),N({type:"delete",virtualMcp:o})},children:[t.jsx(Y,{size:16}),"Delete"]})]})]}),cellClassName:"w-12 shrink-0"}],e[13]=i,e[14]=r.slug,e[15]=z):z=e[15];const R=z,T=w?"Creating...":"Create Agent";let M;e[16]!==V||e[17]!==w||e[18]!==T?(M=t.jsx(q,{onClick:V,size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",disabled:w,children:T}),e[16]=V,e[17]=w,e[18]=T,e[19]=M):M=e[19];const H=M,L=n.mode==="deleting";let I;e[20]===Symbol.for("react.memo_cache_sentinel")?(I=o=>!o&&N({type:"close"}),e[20]=I):I=e[20];let P;e[21]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(he,{children:"Delete Agent?"}),e[21]=P):P=e[21];const F=n.mode==="deleting"&&n.virtualMcp.title;let l;e[22]!==F?(l=t.jsxs(fe,{children:[P,t.jsxs(xe,{children:["This action cannot be undone. This will permanently delete"," ",t.jsx("span",{className:"font-medium text-foreground",children:F}),"."]})]}),e[22]=F,e[23]=l):l=e[23];let _;e[24]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(je,{children:"Cancel"}),e[24]=_):_=e[24];let c;e[25]!==B?(c=t.jsxs(Ce,{children:[_,t.jsx(we,{onClick:B,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[25]=B,e[26]=c):c=e[26];let d;e[27]!==l||e[28]!==c?(d=t.jsxs(ye,{children:[l,c]}),e[27]=l,e[28]=c,e[29]=d):d=e[29];let m;e[30]!==L||e[31]!==d?(m=t.jsx(Ne,{open:L,onOpenChange:I,children:d}),e[30]=L,e[31]=d,e[32]=m):m=e[32];let $;e[33]===Symbol.for("react.memo_cache_sentinel")?($=[{id:"title",label:"Name"},{id:"description",label:"Description"},{id:"status",label:"Status"}],e[33]=$):$=e[33];let g;e[34]!==H||e[35]!==s.handleSort||e[36]!==s.setViewMode||e[37]!==s.sortDirection||e[38]!==s.sortKey||e[39]!==s.viewMode?(g=t.jsx(oe,{title:"Agents",viewMode:s.viewMode,onViewModeChange:s.setViewMode,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,sortOptions:$,ctaButton:H}),e[34]=H,e[35]=s.handleSort,e[36]=s.setViewMode,e[37]=s.sortDirection,e[38]=s.sortKey,e[39]=s.viewMode,e[40]=g):g=e[40];let u;e[41]!==s?(u=o=>{o.key==="Escape"&&(s.setSearch(""),o.target.blur())},e[41]=s,e[42]=u):u=e[42];let p;e[43]!==s.search||e[44]!==s.setSearch||e[45]!==u?(p=t.jsx(ne,{value:s.search,onChange:s.setSearch,placeholder:"Search for an agent...",onKeyDown:u}),e[43]=s.search,e[44]=s.setSearch,e[45]=u,e[46]=p):p=e[46];let h;e[47]!==R||e[48]!==s.handleSort||e[49]!==s.search||e[50]!==s.sortDirection||e[51]!==s.sortKey||e[52]!==s.viewMode||e[53]!==i||e[54]!==r.slug||e[55]!==f?(h=s.viewMode==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:f.length===0?t.jsx(W,{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(ae,{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:r.slug,agentId:o.id}}),footer:t.jsx("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":""]})}),headerActions:t.jsxs(J,{children:[t.jsx(Q,{asChild:!0,children:t.jsx(q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Ae,children:t.jsx(X,{size:20})})}),t.jsxs(U,{align:"end",onClick:ke,children:[t.jsxs(E,{onClick:a=>{a.stopPropagation(),i({to:"/$org/agents/$agentId",params:{org:r.slug,agentId:o.id}})},children:[t.jsx(G,{size:16}),"Open"]}),t.jsxs(E,{variant:"destructive",onClick:a=>{a.stopPropagation(),N({type:"delete",virtualMcp:o})},children:[t.jsx(Y,{size:16}),"Delete"]})]})]})},o.id??"default"))})}):t.jsx(ie,{columns:R,data:f,isLoading:!1,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,onRowClick:o=>i({to:"/$org/agents/$agentId",params:{org:r.slug,agentId:o.id}}),emptyState:s.search?t.jsx(W,{image:t.jsx(x,{size:36,className:"text-muted-foreground"}),title:"No agents found",description:`No agents match "${s.search}"`}):t.jsx(W,{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[47]=R,e[48]=s.handleSort,e[49]=s.search,e[50]=s.sortDirection,e[51]=s.sortKey,e[52]=s.viewMode,e[53]=i,e[54]=r.slug,e[55]=f,e[56]=h):h=e[56];let K;return e[57]!==m||e[58]!==g||e[59]!==p||e[60]!==h?(K=t.jsxs(re,{children:[m,g,p,h]}),e[57]=m,e[58]=g,e[59]=p,e[60]=h,e[61]=K):K=e[61],K}function ke(e){return e.stopPropagation()}function Ae(e){return e.stopPropagation()}function ze(e){return e.stopPropagation()}function Me(e){return e.stopPropagation()}function Ie(e){return t.jsx(De,{variant:e.status==="active"?"default":"outline",children:e.status})}function Pe(e){return t.jsx("span",{className:"text-sm text-muted-foreground",children:e.connections.length})}function _e(e){return t.jsx("span",{className:"text-sm text-foreground line-clamp-2",children:e.description||"—"})}function $e(e){return t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.title})}function Ke(e){return t.jsx(le,{icon:e.icon,name:e.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(x,{size:16})})}function ft(){const e=Z.c(1);let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(ce,{children:t.jsx(ee.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]=r):r=e[0],r}export{ft as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as i,ak as m,j as r,aK as w,v as T,am as O,z as A,R as M,T as I,D as z,w as L,aL as D,aM as F,at as k,y as G,x as H,c as n}from"./index-
|
|
1
|
+
import{r as i,ak as m,j as r,aK as w,v as T,am as O,z as A,R as M,T as I,D as z,w as L,aL as D,aM as F,at as k,y as G,x as H,c as n}from"./index-C8OOnmm1.js";import{c as p,b as v}from"./button-C83AQWC1.js";var x="AlertDialog",[V]=k(x,[D]),d=D(),N=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(M,{...a,...t,modal:!0})};N.displayName=x;var W="AlertDialogTrigger",Y=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(G,{...o,...a,ref:e})});Y.displayName=W;var q="AlertDialogPortal",y=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(L,{...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",[K,J]=V(f),Q=F("AlertDialogContent"),j=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,children:a,...o}=l,s=d(t),c=i.useRef(null),P=m(e,c),u=i.useRef(null);return r.jsx(w,{contentName:f,titleName:b,docsSlug:"alert-dialog",children:r.jsx(K,{scope:t,cancelRef:u,children:r.jsxs(T,{role:"alertdialog",...s,...o,ref:P,onOpenAutoFocus:O(o.onOpenAutoFocus,g=>{g.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[r.jsx(Q,{children:a}),r.jsx(X,{contentRef:c})]})})})});j.displayName=f;var b="AlertDialogTitle",h=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(I,{...o,...a,ref:e})});h.displayName=b;var R="AlertDialogDescription",E=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(z,{...o,...a,ref:e})});E.displayName=R;var U="AlertDialogAction",C=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(A,{...o,...a,ref:e})});C.displayName=U;var $="AlertDialogCancel",S=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,{cancelRef:o}=J($,t),s=d(t),c=m(e,o);return r.jsx(A,{...s,...a,ref:c})});S.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,a as m,j as n,A as o}from"./index-
|
|
1
|
+
import{c as r,a as m,j as n,A as o}from"./index-C8OOnmm1.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 +1 @@
|
|
|
1
|
-
import{r as I,c as j,j as i,t as S,aH as $,aI as L,aJ as M}from"./index-
|
|
1
|
+
import{r as I,c as j,j as i,t as S,aH as $,aI as L,aJ as M}from"./index-C8OOnmm1.js";import{c as f}from"./button-C83AQWC1.js";const V=({size:a=24,color:e="currentColor",...s})=>I.createElement("svg",{viewBox:"0 0 24 24",width:a,height:a,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},I.createElement("path",{d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"}));V.displayName="User01";function O(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("relative flex size-8 shrink-0 overflow-hidden rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(M,{"data-slot":"avatar",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function T(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("aspect-square size-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx($,{"data-slot":"avatar-image",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function W(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=f("bg-muted flex size-full items-center justify-center rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(L,{"data-slot":"avatar-fallback",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}const R=["drop-shadow-lg bg-gradient-to-br from-red-100 to-red-300 text-red-800 shadow-lg shadow-red-300/40 ring-1 ring-red-300/30","drop-shadow-lg bg-gradient-to-br from-lime-100 to-lime-300 text-lime-800 shadow-lg shadow-lime-300/40 ring-1 ring-lime-300/30","drop-shadow-lg bg-gradient-to-br from-emerald-100 to-emerald-300 text-emerald-800 shadow-lg shadow-emerald-300/40 ring-1 ring-emerald-300/30","drop-shadow-lg bg-gradient-to-br from-orange-100 to-orange-300 text-orange-800 shadow-lg shadow-orange-300/40 ring-1 ring-orange-300/30","drop-shadow-lg bg-gradient-to-br from-amber-100 to-amber-300 text-amber-800 shadow-lg shadow-amber-300/40 ring-1 ring-amber-300/30","drop-shadow-lg bg-gradient-to-br from-yellow-100 to-yellow-300 text-yellow-800 shadow-lg shadow-yellow-300/40 ring-1 ring-yellow-300/30","drop-shadow-lg bg-gradient-to-br from-green-100 to-green-300 text-green-800 shadow-lg shadow-green-300/40 ring-1 ring-green-300/30","drop-shadow-lg bg-gradient-to-br from-teal-100 to-teal-300 text-teal-800 shadow-lg shadow-teal-300/40 ring-1 ring-teal-300/30","drop-shadow-lg bg-gradient-to-br from-cyan-100 to-cyan-300 text-cyan-800 shadow-lg shadow-cyan-300/40 ring-1 ring-cyan-300/30","drop-shadow-lg bg-gradient-to-br from-sky-100 to-sky-300 text-sky-800 shadow-lg shadow-sky-300/40 ring-1 ring-sky-300/30","drop-shadow-lg bg-gradient-to-br from-blue-100 to-blue-300 text-blue-800 shadow-lg shadow-blue-300/40 ring-1 ring-blue-300/30","drop-shadow-lg bg-gradient-to-br from-indigo-100 to-indigo-300 text-indigo-800 shadow-lg shadow-indigo-300/40 ring-1 ring-indigo-300/30","drop-shadow-lg bg-gradient-to-br from-violet-100 to-violet-300 text-violet-800 shadow-lg shadow-violet-300/40 ring-1 ring-violet-300/30","drop-shadow-lg bg-gradient-to-br from-purple-100 to-purple-300 text-purple-800 shadow-lg shadow-purple-300/40 ring-1 ring-purple-300/30","drop-shadow-lg bg-gradient-to-br from-fuchsia-100 to-fuchsia-300 text-fuchsia-800 shadow-lg shadow-fuchsia-300/40 ring-1 ring-fuchsia-300/30","drop-shadow-lg bg-gradient-to-br from-pink-100 to-pink-300 text-pink-800 shadow-lg shadow-pink-300/40 ring-1 ring-pink-300/30","drop-shadow-lg bg-gradient-to-br from-rose-100 to-rose-300 text-rose-800 shadow-lg shadow-rose-300/40 ring-1 ring-rose-300/30"],_="drop-shadow-lg text-muted-foreground bg-muted shadow-lg";function B(a){let e=0;for(let t=0;t<a.length;t++)e=a.charCodeAt(t)+((e<<5)-e);const s=Math.abs(e)%R.length;return R[s]}const U=S("border border-border",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"w-3 h-3 text-xs font-semibold","2xs":"w-4 h-4 text-xs font-semibold",xs:"w-6 h-6 text-sm font-semibold",sm:"w-8 h-8 text-lg font-semibold",base:"w-10 h-10 text-2xl font-semibold",lg:"w-12 h-12 text-3xl font-semibold",xl:"w-16 h-16 text-4xl font-semibold","2xl":"w-20 h-20 text-5xl font-semibold","3xl":"w-32 h-32 text-7xl font-semibold"}},compoundVariants:[{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-xl"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-xl"},{shape:"square",size:"xl",class:"rounded-2xl"},{shape:"square",size:"2xl",class:"rounded-3xl"},{shape:"square",size:"3xl",class:"rounded-[40px]"}],defaultVariants:{shape:"square",size:"base"}}),D=S("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),H=a=>{const e={"3xs":8,"2xs":8,xs:12,sm:16,base:24,lg:28,xl:36,"2xl":48,"3xl":80};return e[a]||e.base};function J(a){const e=j.c(35);let s,t,o,r,n,d,g,l;e[0]!==a?({url:l,fallback:t,shape:r,size:n,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,[m,x]=I.useState(!1);let F;e:{if(typeof t=="string"){let c;e[9]!==t?(c=t.trim().slice(0,2).toUpperCase(),e[9]=t,e[10]=c):c=e[10],F=c;break e}F=t}const C=F;let z;e:{if(k){z=_;break e}if(typeof t=="string"){let c;e[11]!==t?(c=B(t),e[11]=t,e[12]=c):c=e[12],z=c;break e}z=R[0]}const y=z;let N;e[13]!==l?(N=l?.startsWith("icon://"),e[13]=l,e[14]=N):N=e[14];const p=N;let q;e[15]!==p||e[16]!==l?(q=p?l?.replace("icon://",""):void 0,e[15]=p,e[16]=l,e[17]=q):q=e[17];const E=q;let w;e[18]!==s||e[19]!==b||e[20]!==h?(w=f(U({shape:b,size:h}),s),e[18]=s,e[19]=b,e[20]=h,e[21]=w):w=e[21];let v;e[22]!==y||e[23]!==C||e[24]!==E||e[25]!==m||e[26]!==p||e[27]!==u||e[28]!==h||e[29]!==l?(v=p&&E?i.jsx("div",{className:f("flex items-center justify-center w-full h-full",y),children:i.jsx(V,{size:H(h)})}):i.jsxs(i.Fragment,{children:[l&&!m&&i.jsx(T,{src:l,loading:"lazy",alt:"Avatar",className:f(D({objectFit:u})),onError:()=>x(!0)}),(!l||m)&&i.jsx(W,{className:f(y,"rounded-none"),children:C})]}),e[22]=y,e[23]=C,e[24]=E,e[25]=m,e[26]=p,e[27]=u,e[28]=h,e[29]=l,e[30]=v):v=e[30];let A;return e[31]!==o||e[32]!==v||e[33]!==w?(A=i.jsx(O,{className:w,...o,children:v}),e[31]=o,e[32]=v,e[33]=w,e[34]=A):A=e[34],A}function Z(a){const e=j.c(18);let s,t,o,r,n,d,g,l;e[0]!==a?({shape:r,size:n,url:l,fallback:t,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,m=h??"base";let x;return e[9]!==s||e[10]!==t||e[11]!==k||e[12]!==u||e[13]!==o||e[14]!==b||e[15]!==m||e[16]!==l?(x=i.jsx(J,{shape:b,url:l,fallback:t,size:m,objectFit:u,className:s,muted:k,...o}),e[9]=s,e[10]=t,e[11]=k,e[12]=u,e[13]=o,e[14]=b,e[15]=m,e[16]=l,e[17]=x):x=e[17],x}Z.Skeleton=function({shape:e="square",size:s="base",className:t}){return i.jsx("div",{className:f(U({shape:e,size:s}),"bg-muted animate-pulse",t)})};export{Z as A};
|