@decocms/mesh 2.61.0 → 2.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-DZft-TG2.js → AlertCircle-Ba1Op7JG.js} +1 -1
- package/dist/client/assets/{ArrowUp-D5u5S04m.js → ArrowUp-CsjFvEVu.js} +1 -1
- package/dist/client/assets/{Calendar-D09MNLuS.js → Calendar-8At6qOri.js} +1 -1
- package/dist/client/assets/{Check-DCDAnqOU.js → Check-BQfWrOsa.js} +1 -1
- package/dist/client/assets/{ChevronDown-DutrckZC.js → ChevronDown-a23q7ncj.js} +1 -1
- package/dist/client/assets/{ChevronRight-DspCPj_w.js → ChevronRight-BKSZBVse.js} +1 -1
- package/dist/client/assets/{Code01-DedonTWa.js → Code01-P3ZWE6Wq.js} +1 -1
- package/dist/client/assets/{Copy01-BWDgSjt6.js → Copy01-CIESL5kI.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-HzP-MqOT.js → DotsHorizontal-CcEfPxiK.js} +1 -1
- package/dist/client/assets/{DotsVertical-DiYKrTRi.js → DotsVertical-CJIZpidj.js} +1 -1
- package/dist/client/assets/{Download01-b-4mb5pm.js → Download01-CqyWjjTW.js} +1 -1
- package/dist/client/assets/{Edit01-D7FAjBpe.js → Edit01-B4XYqrFu.js} +1 -1
- package/dist/client/assets/{File02-DE5qRuoV.js → File02-BF9rq9ig.js} +1 -1
- package/dist/client/assets/{File06-Dyp_EEPp.js → File06-bOvxxnZ2.js} +1 -1
- package/dist/client/assets/{FilterLines-DYs8Amde.js → FilterLines-CmZpHRnn.js} +1 -1
- package/dist/client/assets/{Grid01-hfoOS4OQ.js → Grid01-IhRcMWbZ.js} +1 -1
- package/dist/client/assets/{Home02-BftR1elJ.js → Home02-DwOGKHOa.js} +1 -1
- package/dist/client/assets/{Image01-BBnTxqKs.js → Image01-sUTjP5wq.js} +1 -1
- package/dist/client/assets/{Inbox01-Br0-Fo7T.js → Inbox01-BnDnIXUM.js} +1 -1
- package/dist/client/assets/{InfoCircle-4Gg1mCvl.js → InfoCircle-WR60YcfQ.js} +1 -1
- package/dist/client/assets/{Key01-ImEEyxuW.js → Key01-CPYx3GjY.js} +1 -1
- package/dist/client/assets/{LinkExternal01-f9rwgdRB.js → LinkExternal01-1QN6qTXo.js} +1 -1
- package/dist/client/assets/{List-Byzk8GIH.js → List-BaGrtyGA.js} +1 -1
- package/dist/client/assets/{Loading01-267RBTet.js → Loading01-C4MO3DLf.js} +1 -1
- package/dist/client/assets/{Lock01-h-Hl5Kq5.js → Lock01-B8efAtfK.js} +1 -1
- package/dist/client/assets/{Pin01-DBrrq4D2.js → Pin01-C-K4KVz6.js} +1 -1
- package/dist/client/assets/{Play-DAIuzg5S.js → Play-tvHP06ah.js} +1 -1
- package/dist/client/assets/{Plus-zV6WU4JB.js → Plus-ByTt0Dzz.js} +1 -1
- package/dist/client/assets/{SearchMd-7_DsxZht.js → SearchMd-DCAvw-zt.js} +1 -1
- package/dist/client/assets/{Share07-Cnrwf8Jg.js → Share07-DWSOuaTc.js} +1 -1
- package/dist/client/assets/{Terminal-DyHs8Rf6.js → Terminal-CZfhkitA.js} +1 -1
- package/dist/client/assets/Tool01-DJkWVCxw.js +1 -0
- package/dist/client/assets/{Trash01-DlcrlG40.js → Trash01-BmWnYoTo.js} +1 -1
- package/dist/client/assets/{Upload01-CEsNtyVM.js → Upload01-Dc0X9F2g.js} +1 -1
- package/dist/client/assets/{Users03-b0Q6Esat.js → Users03-C-YPAI9c.js} +1 -1
- package/dist/client/assets/{X-BDbowDxs.js → X-BHekJF0G.js} +1 -1
- package/dist/client/assets/{XClose-BU7t8GBR.js → XClose-CDs3a-Ob.js} +1 -1
- package/dist/client/assets/agent-detail-4k8w16fq.js +1 -0
- package/dist/client/assets/{agents-dsz6OFgr.js → agents-6fUxAEpD.js} +1 -1
- package/dist/client/assets/{alert-dialog-DvH3np1K.js → alert-dialog-DMTRbHIN.js} +2 -2
- package/dist/client/assets/{auth-catchall-RZI2QIfW.js → auth-catchall-DrRrFKQk.js} +1 -1
- package/dist/client/assets/{avatar-DLsqU89S.js → avatar-5yweOYlX.js} +1 -1
- package/dist/client/assets/badge-B_zXl-jd.js +1 -0
- package/dist/client/assets/{binder-DhS3ZsVD.js → binder-DNt-QaD5.js} +1 -1
- package/dist/client/assets/breadcrumb-DYbYAORz.js +1 -0
- package/dist/client/assets/button-ZOo4pjl-.js +1 -0
- package/dist/client/assets/{card-D919Ye14.js → card-DhGWuaMP.js} +1 -1
- package/dist/client/assets/{checkbox-dmut6tGA.js → checkbox-CQBacaBF.js} +1 -1
- package/dist/client/assets/{circle-alert-O76dHf-6.js → circle-alert-BQ9TG01K.js} +1 -1
- package/dist/client/assets/{collapsible-CZO59QRP.js → collapsible-0t7QAPTM.js} +1 -1
- package/dist/client/assets/collection-detail-DFhGpw2f.js +26 -0
- package/dist/client/assets/{collection-search-imk5y1tl.js → collection-search-19Uoq0wQ.js} +1 -1
- package/dist/client/assets/{collection-tab-CqQprMKz.js → collection-tab-CogQiK5y.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-C7PJGoEH.js → collection-table-wrapper-BepAjo7t.js} +1 -1
- package/dist/client/assets/{connect-pBMimCL2.js → connect-D53lRIS2.js} +1 -1
- package/dist/client/assets/{connection-card-D2X3Om4T.js → connection-card-D1HxijTE.js} +1 -1
- package/dist/client/assets/{connection-detail-By8rfkHM.js → connection-detail-C3WTnyuO.js} +1 -1
- package/dist/client/assets/{connections-Da_gf-d4.js → connections-B0UpBHBH.js} +1 -1
- package/dist/client/assets/{constants-BZCTYQ-m.js → constants-CgYg5TtN.js} +1 -1
- package/dist/client/assets/constants-j8UyVq9f.js +1 -0
- package/dist/client/assets/{create-organization-dialog-Cwl_Gkel.js → create-organization-dialog-DEacdY5C.js} +1 -1
- package/dist/client/assets/dialog-C8W_SUym.js +1 -0
- package/dist/client/assets/dropdown-menu-v13S1hcn.js +1 -0
- package/dist/client/assets/{dynamic-plugin-layout-DSctkXDf.js → dynamic-plugin-layout-B-0mr5zD.js} +1 -1
- package/dist/client/assets/empty-state-BcO1Ypur.js +1 -0
- package/dist/client/assets/{empty-state-uG-DnAQb.js → empty-state-FX9PTasG.js} +1 -1
- package/dist/client/assets/{env-vars-editor-ChPRpV0a.js → env-vars-editor-BDdZakcM.js} +1 -1
- package/dist/client/assets/{error-boundary-BNlY9vIT.js → error-boundary-m114tUpJ.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Bjn7AN9v.js → extract-connection-data-DyggfQBs.js} +1 -1
- package/dist/client/assets/{file-browser-FSoZTHG-.js → file-browser-D-KlovGy.js} +2 -2
- package/dist/client/assets/form-r49NhVFy.js +1 -0
- package/dist/client/assets/{grid-view-DRczCiEv.js → grid-view-DxmE20Kf.js} +1 -1
- package/dist/client/assets/{home-DuoTXUw3.js → home-nCCmJCuu.js} +1 -1
- package/dist/client/assets/{index-By5YaRHP.js → index-BbS1IcRL.js} +1 -1
- package/dist/client/assets/{index-bZDjEZjy.js → index-Bs29EeVO.js} +2 -2
- package/dist/client/assets/{index-DQEC9k6R.js → index-C4EJpxzW.js} +1 -1
- package/dist/client/assets/{index-Bk3VGbpH.js → index-D4SxGvpq.js} +1 -1
- package/dist/client/assets/{index-B8-fuOjQ.js → index-DxOSzDZh.js} +1 -1
- package/dist/client/assets/index-psOxwHJD.js +1 -0
- package/dist/client/assets/index-ytnZ687L.js +25 -0
- package/dist/client/assets/{infiniteQueryObserver-R-jPe69x.js → infiniteQueryObserver-HNFv_Ra4.js} +1 -1
- package/dist/client/assets/{input-Db3X6HvF.js → input-C4GtYEoZ.js} +1 -1
- package/dist/client/assets/{layout-oEMg2tAu.js → layout-DIZIdVHa.js} +1 -1
- package/dist/client/assets/{localstorage-keys-Bdti-2mC.js → localstorage-keys-Bm36wvj7.js} +1 -1
- package/dist/client/assets/{login-CGsneu9K.js → login-94e59ej-.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BmPwjDVD.js → mcp-oauth-Dr83fUMz.js} +1 -1
- package/dist/client/assets/{mcp-server-card-BcwB38uI.js → mcp-server-card-D3NweLAu.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-ScZZDM2u.js → mcp-server-detail-5y7XANLb.js} +2 -2
- package/dist/client/assets/{members-DrIeM1RI.js → members-DP1aRHjX.js} +1 -1
- package/dist/client/assets/{monaco-editor-B37z8w3N.js → monaco-editor-Bb429dTQ.js} +1 -1
- package/dist/client/assets/{monitoring-IotTEObQ.js → monitoring-E-kPGB57.js} +1 -1
- package/dist/client/assets/{oauth-callback-CtpbBZ0j.js → oauth-callback-jLJ-n7ws.js} +1 -1
- package/dist/client/assets/{page-Bm0zH9kR.js → page-BDCV1_H1.js} +1 -1
- package/dist/client/assets/{page-BFuI9gLJ.js → page-BbamCL5c.js} +1 -1
- package/dist/client/assets/{pin-to-sidebar-button-Dz_XGqkX.js → pin-to-sidebar-button-1GCs6x8a.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-ByGsbM_q.js → plugin-empty-state-iwSrZL3O.js} +1 -1
- package/dist/client/assets/{plugin-header-C_aZs0N6.js → plugin-header-Bp4Gwa8J.js} +1 -1
- package/dist/client/assets/{plugins-C4o2Tg3p.js → plugins-CDmts_jJ.js} +1 -1
- package/dist/client/assets/popover-CUkUY7Kj.js +1 -0
- package/dist/client/assets/{registry-utils-pqvn-SQ9.js → registry-utils-Do3XnHa6.js} +1 -1
- package/dist/client/assets/{resizable-Ds3XfyD1.js → resizable-CI_df1fw.js} +1 -1
- package/dist/client/assets/{resource-tabs-Ckk3ov-s.js → resource-tabs-D2NgBxYW.js} +1 -1
- package/dist/client/assets/select-DqXwJZyT.js +1 -0
- package/dist/client/assets/{settings-RIVj-SMS.js → settings-CK6KB251.js} +1 -1
- package/dist/client/assets/{shell-layout-D5XFL0IE.js → shell-layout-CVRKso4S.js} +1 -1
- package/dist/client/assets/{spinner-Ch036S5x.js → spinner-_C_bSKie.js} +1 -1
- package/dist/client/assets/{store-invite-88nPipDW.js → store-invite-CJSOrtY9.js} +1 -1
- package/dist/client/assets/switch-Cd91eyGn.js +1 -0
- package/dist/client/assets/{table-fsTaEaaU.js → table-BpYYfeqL.js} +1 -1
- package/dist/client/assets/{textarea-CJUn3-Wq.js → textarea-CvbGXUX_.js} +1 -1
- package/dist/client/assets/{tools-list-D62d9csj.js → tools-list-BJ4Nz1PD.js} +1 -1
- package/dist/client/assets/typewriter-title-BmfXfQ4Z.js +16 -0
- package/dist/client/assets/use-binding-GlE21mVe.js +23 -0
- package/dist/client/assets/{use-collections-C8m0cpJK.js → use-collections-BNOLiMAP.js} +1 -1
- package/dist/client/assets/{use-connection-BsXZoJuC.js → use-connection-_63RHsQC.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-C-dJH0KT.js → use-create-virtual-mcp-D0aLBOrN.js} +1 -1
- package/dist/client/assets/{use-deco-chat-open-DaZlP6gy.js → use-deco-chat-open-CV4KNODR.js} +1 -1
- package/dist/client/assets/{use-list-state-BR0DnP45.js → use-list-state-C35WGVlD.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CauCdNEE.js → use-mcp-prompts-Cs-0fn1r.js} +1 -1
- package/dist/client/assets/{use-members-C9xyUK_j.js → use-members-k6Mq8L05.js} +1 -1
- package/dist/client/assets/{use-mobile-BJaPqgO-.js → use-mobile-viw7itqe.js} +1 -1
- package/dist/client/assets/{use-organization-settings-C7v8TF4x.js → use-organization-settings-DmHiyg1G.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Mo0Ax2sa.js → use-virtual-mcp-d_sGPR5Q.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-3B7DIQNV.js +1 -0
- package/dist/client/assets/{useMutation-BUU-3CfS.js → useMutation-DpUHdLIR.js} +1 -1
- package/dist/client/assets/useQuery-By0-zS-_.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-CNdbzDY7.js +1 -0
- package/dist/client/assets/{view-mode-toggle-BuBlE9kN.js → view-mode-toggle-D5fN84Hq.js} +1 -1
- package/dist/client/assets/{workflow-BHUnmDkZ.js → workflow-FDu9kVkd.js} +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/Tool01-BI-I3hYP.js +0 -1
- package/dist/client/assets/agent-detail-CMBzFEVK.js +0 -1
- package/dist/client/assets/badge-D0aebo3b.js +0 -1
- package/dist/client/assets/breadcrumb-DYzoaO6c.js +0 -1
- package/dist/client/assets/button-ClfTbYRX.js +0 -1
- package/dist/client/assets/collection-detail-DfuPZ-Eh.js +0 -26
- package/dist/client/assets/constants-ClcoOK3l.js +0 -1
- package/dist/client/assets/dialog-Btg4sCez.js +0 -1
- package/dist/client/assets/dropdown-menu-DN1Ltf10.js +0 -1
- package/dist/client/assets/empty-state-DYXlKoSr.js +0 -1
- package/dist/client/assets/form-CYYoaqIb.js +0 -1
- package/dist/client/assets/index-B8Y83hFI.js +0 -1
- package/dist/client/assets/index-Bb-7JPLn.js +0 -25
- package/dist/client/assets/popover-CjjV7g4X.js +0 -1
- package/dist/client/assets/select-DdPku9Z8.js +0 -1
- package/dist/client/assets/switch-D4uenvWn.js +0 -1
- package/dist/client/assets/typewriter-title-BY44IAZn.js +0 -16
- package/dist/client/assets/use-binding-a8EbFjQ8.js +0 -23
- package/dist/client/assets/useInfiniteQuery-DAahyMrR.js +0 -1
- package/dist/client/assets/useQuery-CziyW3rA.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D9t8xGlB.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,x as c}from"./index-
|
|
1
|
+
import{c as u,x as c}from"./index-Bs29EeVO.js";import{u as p}from"./useQuery-By0-zS-_.js";import{K as n}from"./constants-CgYg5TtN.js";async function f(l){return l.getServerCapabilities()?.resources?await l.listResources():{resources:[]}}async function b(l,e){return await l.readResource({uri:e})}function R(l){const e=u.c(12);let t,s;e[0]!==l?({client:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=n.mcpResourcesList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>f(t),e[5]=t,e[6]=i):i=e[6];const o=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==o?(a={...s,queryKey:r,queryFn:i,staleTime:o,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=o,e[11]=a):a=e[11],c(a)}function L(l){const e=u.c(12);let t,s;e[0]!==l?({client:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=n.mcpResourcesList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>f(t),e[5]=t,e[6]=i):i=e[6];const o=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==o?(a={...s,queryKey:r,queryFn:i,staleTime:o,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=o,e[11]=a):a=e[11],p(a)}async function m(l){return l.getServerCapabilities()?.prompts?await l.listPrompts():{prompts:[]}}async function T(l,e,t){if(!l.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await l.getPrompt({name:e,arguments:t??{}})}function g(l){const e=u.c(12);let t,s;e[0]!==l?({client:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=n.mcpPromptsList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>m(t),e[5]=t,e[6]=i):i=e[6];const o=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==o?(a={...s,queryKey:r,queryFn:i,staleTime:o,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=o,e[11]=a):a=e[11],c(a)}function C(l){const e=u.c(12);let t,s;e[0]!==l?({client:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=n.mcpPromptsList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>m(t),e[5]=t,e[6]=i):i=e[6];const o=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==o?(a={...s,queryKey:r,queryFn:i,staleTime:o,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=o,e[11]=a):a=e[11],p(a)}export{f as a,C as b,R as c,L as d,T as g,m as l,b as r,g as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,u as o,x as u,K as i,g as a}from"./index-
|
|
1
|
+
import{c as n,u as o,x as u,K as i,g as a}from"./index-Bs29EeVO.js";function l(){const e=n.c(4),{locator:r}=o();let t;e[0]!==r?(t=i.members(r),e[0]=r,e[1]=t):t=e[1];let s;return e[2]!==t?(s={queryKey:t,queryFn:c},e[2]=t,e[3]=s):s=e[3],u(s)}function c(){return a.organization.listMembers()}export{l as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as m,r}from"./index-
|
|
1
|
+
import{c as m,r}from"./index-Bs29EeVO.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as m,u as T,x as d,
|
|
1
|
+
import{c as m,u as T,x as d,a3 as y,K as g}from"./index-Bs29EeVO.js";import{u as _}from"./useMutation-DpUHdLIR.js";import{a as p,u as A}from"./constants-CgYg5TtN.js";function D(e){const t=m.c(10),{org:i}=T();let l;t[0]!==i.id?(l={connectionId:p,orgId:i.id},t[0]=i.id,t[1]=l):l=t[1];const c=A(l);let u;t[2]!==e?(u=g.organizationSettings(e),t[2]=e,t[3]=u):u=t[3];let s;t[4]!==c||t[5]!==e?(s=async()=>{const a=await c.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}}),r=a.structuredContent??a;return r||{organizationId:e,sidebar_items:null,enabled_plugins:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}},t[4]=c,t[5]=e,t[6]=s):s=t[6];let n;t[7]!==u||t[8]!==s?(n={queryKey:u,queryFn:s,staleTime:6e4},t[7]=u,t[8]=s,t[9]=n):n=t[9];const{data:o}=d(n);return o}function G(e){const t=m.c(13),i=y(),{org:l}=T();let c;t[0]!==l.id?(c={connectionId:p,orgId:l.id},t[0]=l.id,t[1]=c):c=t[1];const u=A(c);let s;t[2]!==u||t[3]!==e?(s=async S=>{const f=await u.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e,...S}});return f.structuredContent??f},t[2]=u,t[3]=e,t[4]=s):s=t[4];let n;t[5]!==e||t[6]!==i?(n=S=>{i.setQueryData(g.organizationSettings(e),S)},t[5]=e,t[6]=i,t[7]=n):n=t[7];let o;t[8]!==s||t[9]!==n?(o={mutationFn:s,onSuccess:n},t[8]=s,t[9]=n,t[10]=o):o=t[10];const a=_(o);let r;return t[11]!==a?(r={update:a},t[11]=a,t[12]=r):r=t[12],r}export{G as a,D as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,u as r}from"./index-
|
|
1
|
+
import{c,u as r}from"./index-Bs29EeVO.js";import{b as a,u as C,a as I}from"./use-collections-BNOLiMAP.js";import{a as l,u}from"./constants-CgYg5TtN.js";function m(i){const t=c.c(4);let o;t[0]!==i?(o=i===void 0?{}:i,t[0]=i,t[1]=o):o=t[1];const n=o,{org:e}=r();let s;t[2]!==e.id?(s={connectionId:l,orgId:e.id},t[2]=e.id,t[3]=s):s=t[3];const d=u(s);return a(e.id,"VIRTUAL_MCP",d,n)}function V(i){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:l,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=u(n);return I(o.id,"VIRTUAL_MCP",i??void 0,e)}function p(){const i=c.c(2),{org:t}=r();let o;i[0]!==t.id?(o={connectionId:l,orgId:t.id},i[0]=t.id,i[1]=o):o=i[1];const n=u(o);return C(t.id,"VIRTUAL_MCP",n)}export{p as a,m as b,V as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./infiniteQueryObserver-HNFv_Ra4.js";import{H as i}from"./index-Bs29EeVO.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aQ as l,aR as p,aS as n,aT as d,aU as h,a3 as b,r as o,aV as m,aW as f}from"./index-Bs29EeVO.js";var v=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),p(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??d();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,i=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#e.onSuccess?.(t.data,s,i,e),this.#e.onSettled?.(t.data,null,s,i,e)):t?.type==="error"&&(this.#e.onError?.(t.error,s,i,e),this.#e.onSettled?.(void 0,t.error,s,i,e))}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const i=b(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(a=>e.subscribe(h.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((a,c)=>{e.mutate(a,c).catch(m)},[e]);if(r.error&&f(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{H as u,a8 as s}from"./index-Bs29EeVO.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./infiniteQueryObserver-HNFv_Ra4.js";import{H as u,I as n}from"./index-Bs29EeVO.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Y,r as V,j as i}from"./index-
|
|
1
|
+
import{c as Y,r as V,j as i}from"./index-Bs29EeVO.js";import{c as n}from"./button-ZOo4pjl-.js";const Z={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function oe(J){const e=Y.c(66),{value:o,onValueChange:l,options:t,size:D,fullWidth:F,className:W}=J,K=D===void 0?"sm":D,w=F===void 0?!1:F,G=V.useRef(null),H=V.useRef(null);let R;e[0]===Symbol.for("react.memo_cache_sentinel")?(R={left:0,width:0,opacity:0},e[0]=R):R=e[0];const[N,O]=V.useState(R);let _;e[1]===Symbol.for("react.memo_cache_sentinel")?(_=S=>{if(!S.current)return;const{offsetLeft:U,offsetWidth:X}=S.current;O({left:U,width:X,opacity:1})},e[1]=_):_=e[1];const Q=_;let C;e[2]!==t[0].value||e[3]!==o?(C=()=>{const S=o===t[0].value?G:H;Q(S)},e[2]=t[0].value,e[3]=o,e[4]=C):C=e[4];let E;e[5]!==t||e[6]!==o?(E=[o,t],e[5]=t,e[6]=o,e[7]=E):E=e[7],V.useEffect(C,E);const s=Z[K];let a;e[8]!==W?(a=n("relative flex gap-0 bg-muted rounded-lg",W),e[8]=W,e[9]=a):a=e[9];let c;e[10]!==l||e[11]!==t[0].value?(c=()=>l(t[0].value),e[10]=l,e[11]=t[0].value,e[12]=c):c=e[12];const $=w?"flex-1 h-12 px-4":s.button,I=!w&&t[0].label?"px-3":"";let r;e[13]!==I||e[14]!==$?(r=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",$,I),e[13]=I,e[14]=$,e[15]=r):r=e[15];const P=o===t[0].value?"text-foreground":"text-muted-foreground";let u;e[16]!==s.icon||e[17]!==P?(u=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,P),e[16]=s.icon,e[17]=P,e[18]=u):u=e[18];let f;e[19]!==t[0].icon||e[20]!==u?(f=i.jsx("span",{className:u,children:t[0].icon}),e[19]=t[0].icon,e[20]=u,e[21]=f):f=e[21];let d;e[22]!==t[0].label||e[23]!==t[0].value||e[24]!==o?(d=t[0].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[0].value?"text-foreground":"text-muted-foreground"),children:t[0].label}),e[22]=t[0].label,e[23]=t[0].value,e[24]=o,e[25]=d):d=e[25];let m;e[26]!==r||e[27]!==f||e[28]!==d||e[29]!==c?(m=i.jsxs("button",{ref:G,type:"button",onClick:c,className:r,children:[f,d]}),e[26]=r,e[27]=f,e[28]=d,e[29]=c,e[30]=m):m=e[30];let x;e[31]!==l||e[32]!==t[1].value?(x=()=>l(t[1].value),e[31]=l,e[32]=t[1].value,e[33]=x):x=e[33];const L=w?"flex-1 h-12 px-4":s.button,M=!w&&t[1].label?"px-3":"";let p;e[34]!==L||e[35]!==M?(p=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",L,M),e[34]=L,e[35]=M,e[36]=p):p=e[36];const T=o===t[1].value?"text-foreground":"text-muted-foreground";let b;e[37]!==s.icon||e[38]!==T?(b=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,T),e[37]=s.icon,e[38]=T,e[39]=b):b=e[39];let v;e[40]!==t[1].icon||e[41]!==b?(v=i.jsx("span",{className:b,children:t[1].icon}),e[40]=t[1].icon,e[41]=b,e[42]=v):v=e[42];let g;e[43]!==t[1].label||e[44]!==t[1].value||e[45]!==o?(g=t[1].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[1].value?"text-foreground":"text-muted-foreground"),children:t[1].label}),e[43]=t[1].label,e[44]=t[1].value,e[45]=o,e[46]=g):g=e[46];let h;e[47]!==x||e[48]!==p||e[49]!==v||e[50]!==g?(h=i.jsxs("button",{ref:H,type:"button",onClick:x,className:p,children:[v,g]}),e[47]=x,e[48]=p,e[49]=v,e[50]=g,e[51]=h):h=e[51];const q=w?"h-12":s.button;let y;e[52]!==q?(y=n("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",q),e[52]=q,e[53]=y):y=e[53];const A=`${N.left}px`,B=`${N.width}px`;let j;e[54]!==N.opacity||e[55]!==A||e[56]!==B?(j={left:A,width:B,opacity:N.opacity},e[54]=N.opacity,e[55]=A,e[56]=B,e[57]=j):j=e[57];let z;e[58]!==y||e[59]!==j?(z=i.jsx("div",{className:y,style:j}),e[58]=y,e[59]=j,e[60]=z):z=e[60];let k;return e[61]!==m||e[62]!==h||e[63]!==z||e[64]!==a?(k=i.jsxs("div",{className:a,children:[m,h,z]}),e[61]=m,e[62]=h,e[63]=z,e[64]=a,e[65]=k):k=e[65],k}export{oe as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as v,g as $,l as _,r as N,j as e,c as L}from"./index-
|
|
1
|
+
import{u as v,g as $,l as _,r as N,j as e,c as L}from"./index-Bs29EeVO.js";import{e as R}from"./constants-CgYg5TtN.js";import{C as z}from"./collection-tab-CogQiK5y.js";import{a as A,b as F}from"./use-connection-_63RHsQC.js";import{B as k}from"./button-ZOo4pjl-.js";import{E as H}from"./empty-state-BcO1Ypur.js";import{P as y}from"./index-BbS1IcRL.js";import{B as M,a as O,b as T,c as V}from"./breadcrumb-DYbYAORz.js";import{a as q,b as D}from"./use-binding-GlE21mVe.js";import{i as G}from"./Loading01-C4MO3DLf.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-BepAjo7t.js";import"./dropdown-menu-v13S1hcn.js";import"./ChevronRight-BKSZBVse.js";import"./ArrowUp-CsjFvEVu.js";import"./Check-BQfWrOsa.js";import"./Grid01-IhRcMWbZ.js";import"./List-BaGrtyGA.js";import"./view-mode-toggle-D5fN84Hq.js";import"./table-BpYYfeqL.js";import"./collection-search-19Uoq0wQ.js";import"./SearchMd-DCAvw-zt.js";import"./input-C4GtYEoZ.js";import"./card-DhGWuaMP.js";import"./Copy01-CIESL5kI.js";import"./DotsVertical-CJIZpidj.js";import"./Edit01-B4XYqrFu.js";import"./use-list-state-C35WGVlD.js";import"./use-mobile-viw7itqe.js";import"./Trash01-BmWnYoTo.js";import"./empty-state-FX9PTasG.js";import"./Inbox01-BnDnIXUM.js";import"./avatar-5yweOYlX.js";import"./useQuery-By0-zS-_.js";import"./pin-to-sidebar-button-1GCs6x8a.js";import"./Pin01-C-K4KVz6.js";import"./use-organization-settings-DmHiyg1G.js";import"./useMutation-DpUHdLIR.js";import"./use-collections-BNOLiMAP.js";import"./constants-j8UyVq9f.js";import"./alert-dialog-DMTRbHIN.js";import"./Plus-ByTt0Dzz.js";import"./layout-DIZIdVHa.js";import"./binder-DNt-QaD5.js";function J({title:i,description:t,wellKnownMcp:o,imageSrc:n,onConnected:s}){const l=A(),{org:{slug:m}}=v(),{data:C}=$.useSession(),d=_(),[a,w]=N.useState(!1),r=async()=>{if(!(!o||!C?.user?.id)){w(!0);try{const c=await l.create.mutateAsync(o);s?.(c.id),d({to:"/$org/mcps/$connectionId",params:{org:m,connectionId:c.id}})}finally{w(!1)}}},j=()=>{d({to:"/$org/mcps",params:{org:m},search:{action:"create"}})};return e.jsx(H,{image:n?e.jsx("img",{src:n,alt:i,width:336,height:320,className:"max-w-full h-auto"}):null,title:i,description:t,actions:e.jsxs(e.Fragment,{children:[e.jsxs(k,{variant:"outline",onClick:r,disabled:a||!o,children:[o?.icon&&e.jsx("img",{src:o.icon,alt:"",className:"size-4"}),a?"Installing...":`Install ${o?.title||"MCP"}`]}),e.jsx(k,{variant:"outline",onClick:j,children:"Custom Connection"})]})})}function Q(i){const t=L.c(28),{bindingName:o,collectionName:n,title:s,emptyState:l,wellKnownMcp:m}=i,{org:C}=v(),d=F();let a;t[0]!==d||t[1]!==o?(a={connections:d,binding:o},t[0]=d,t[1]=o,t[2]=a):a=t[2];const r=q(a)[0],j=D(r);let c;if(t[3]!==n||t[4]!==j){let h;t[6]!==n?(h=W=>W.name.toLowerCase()===n.toLowerCase(),t[6]=n,t[7]=h):h=t[7],c=j.find(h),t[3]=n,t[4]=j,t[5]=c}else c=t[5];const b=c,[P,E]=N.useState(null),B=r&&b&&(r.id||P);let p;t[8]!==s?(p=e.jsx(y.Header,{children:e.jsx(y.Header.Left,{children:e.jsx(M,{children:e.jsx(O,{children:e.jsx(T,{children:e.jsx(V,{children:s})})})})})}),t[8]=s,t[9]=p):p=t[9];let S;t[10]===Symbol.for("react.memo_cache_sentinel")?(S=e.jsx(G,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t[10]=S):S=t[10];let u;t[11]!==s?(u=s.toLowerCase(),t[11]=s,t[12]=u):u=t[12];let f;t[13]!==u?(f=e.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[S,e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",u,"..."]})]}),t[13]=u,t[14]=f):f=t[14];let g;t[15]!==b||t[16]!==r||t[17]!==l||t[18]!==C||t[19]!==B||t[20]!==m?(g=B?e.jsx(z,{connectionId:r.id,org:C.slug,activeCollection:b}):e.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:e.jsx(J,{title:l.title,description:l.description,wellKnownMcp:m,imageSrc:l.imageSrc,onConnected:h=>{E(h)}})}),t[15]=b,t[16]=r,t[17]=l,t[18]=C,t[19]=B,t[20]=m,t[21]=g):g=t[21];let x;t[22]!==f||t[23]!==g?(x=e.jsx(y.Content,{children:e.jsx(N.Suspense,{fallback:f,children:g})}),t[22]=f,t[23]=g,t[24]=x):x=t[24];let I;return t[25]!==p||t[26]!==x?(I=e.jsxs(y,{children:[p,x]}),t[25]=p,t[26]=x,t[27]=I):I=t[27],I}function Ht(){const i=L.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(Q,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Install MCP Studio to create and manage automated workflows with multiple steps and integrations."},wellKnownMcp:R()}),i[0]=t):t=i[0],t}export{Ht as default};
|
package/dist/client/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<title>MCP Mesh</title>
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
6
|
-
<script type="module" crossorigin src="/assets/index-
|
|
6
|
+
<script type="module" crossorigin src="/assets/index-Bs29EeVO.js"></script>
|
|
7
7
|
<link rel="stylesheet" crossorigin href="/assets/index-C4iufez8.css">
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r}from"./index-bZDjEZjy.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M3 9h13.5a4.5 4.5 0 1 1 0 9H12M3 9l4-4M3 9l4 4"}));a.displayName="FlipBackward";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M15.631 7.631c-.396-.396-.594-.594-.668-.822a1 1 0 0 1 0-.618c.074-.228.272-.426.668-.822L18.47 2.53a6 6 0 0 0-8.3 6.895c.12.49.179.734.168.888a.849.849 0 0 1-.11.392c-.07.138-.207.274-.48.547L3.5 17.5a2.121 2.121 0 0 0 3 3l6.248-6.248c.273-.273.41-.41.547-.48a.849.849 0 0 1 .392-.11c.154-.011.399.049.888.168a6 6 0 0 0 6.895-8.3l-2.84 2.84c-.396.396-.594.594-.822.668a1 1 0 0 1-.618 0c-.228-.074-.426-.272-.822-.668l-.738-.738Z"}));i.displayName="Tool01";export{i as a,a as i};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as y,j as t,I as xt,D as he,F as Ne,R as pt,H as ht,z as gt,B as bt,ay as jt,G as Ue,J as vt,c as T,u as ge,V as Nt,s as yt,v as De,l as Ct,a as _t,b6 as Tt,k as kt,h as St,q as wt,au as Et}from"./index-bZDjEZjy.js";import{u as It,C as At,a as Ot}from"./collapsible-CZO59QRP.js";import{I as ue,T as ee,b as ye,c as te,a as se,E as Dt}from"./empty-state-DYXlKoSr.js";import{E as pe,i as $t}from"./error-boundary-BNlY9vIT.js";import{P as Lt}from"./pin-to-sidebar-button-Dz_XGqkX.js";import{u as zt}from"./use-deco-chat-open-DaZlP6gy.js";import{B as $e}from"./badge-D0aebo3b.js";import{c as Y,B as J}from"./button-ClfTbYRX.js";import{I as Be}from"./input-Db3X6HvF.js";import{S as Rt}from"./switch-D4uenvWn.js";import{T as Pt}from"./textarea-CJUn3-Wq.js";import{b as Mt,u as Ke}from"./use-connection-BsXZoJuC.js";import{u as Vt,a as Ft}from"./use-virtual-mcp-Mo0Ax2sa.js";import{i as qe}from"./ChevronRight-DspCPj_w.js";import{n as Bt}from"./select-DdPku9Z8.js";import{i as Le}from"./File02-DE5qRuoV.js";import{a as ze,i as Gt}from"./Tool01-BI-I3hYP.js";import{i as Re}from"./Loading01-267RBTet.js";import{i as Ht}from"./Play-DAIuzg5S.js";import{s as Ge}from"./Plus-zV6WU4JB.js";import{i as Wt}from"./Share07-Cnrwf8Jg.js";import{B as Ut,a as Kt,b as He,d as qt,e as Jt,c as Yt}from"./breadcrumb-DYzoaO6c.js";import{b as Zt,V as Qt}from"./layout-oEMg2tAu.js";import{C as Xt}from"./collection-search-imk5y1tl.js";import{C as Pe}from"./checkbox-dmut6tGA.js";import{e as es,a as Je,D as Ye,b as ts,c as ss}from"./dialog-Btg4sCez.js";import{f as ls}from"./use-collections-C8m0cpJK.js";import{u as Me}from"./constants-BZCTYQ-m.js";import{c as os,u as ns}from"./use-mcp-prompts-CauCdNEE.js";import{s as Ze}from"./slugify-CEUa2lfQ.js";import{I as is,R as rs,a as as}from"./index-B8Y83hFI.js";import{i as Qe}from"./Check-DCDAnqOU.js";import{i as cs}from"./Code01-DedonTWa.js";import{a as ds}from"./Copy01-BWDgSjt6.js";import{i as Ce}from"./InfoCircle-4Gg1mCvl.js";import"./use-binding-a8EbFjQ8.js";import"./binder-DhS3ZsVD.js";import"./useSuspenseInfiniteQuery-D9t8xGlB.js";import"./infiniteQueryObserver-R-jPe69x.js";import"./localstorage-keys-Bdti-2mC.js";import"./useQuery-CziyW3rA.js";import"./useMutation-BUU-3CfS.js";import"./popover-CjjV7g4X.js";import"./ChevronDown-DutrckZC.js";import"./File06-Dyp_EEPp.js";import"./Grid01-hfoOS4OQ.js";import"./Image01-BBnTxqKs.js";import"./SearchMd-7_DsxZht.js";import"./Pin01-DBrrq4D2.js";import"./use-organization-settings-C7v8TF4x.js";import"./index-By5YaRHP.js";import"./X-BDbowDxs.js";const Xe=({size:l=24,color:e="currentColor",...s})=>y.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},y.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));Xe.displayName="ArrowsRight";const et=({size:l=24,color:e="currentColor",...s})=>y.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},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"}));et.displayName="Circle";const tt=({size:l=24,color:e="currentColor",...s})=>y.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},y.createElement("path",{d:"M9 2v3m6-3v3M9 19v3m6-3v3m4-13h3m-3 5h3M2 9h3m-3 5h3m4.8 5h4.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C19 16.72 19 15.88 19 14.2V9.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C16.72 5 15.88 5 14.2 5H9.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C5 7.28 5 8.12 5 9.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C7.28 19 8.12 19 9.8 19Z"}));tt.displayName="CpuChip02";const be=({size:l=24,color:e="currentColor",...s})=>y.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},y.createElement("path",{d:"m9.75 20.75 1.473.818c.284.158.425.237.576.268.133.027.27.027.402 0 .15-.031.292-.11.576-.268l1.473-.818m-9-2.5-1.427-.793c-.3-.166-.45-.25-.558-.368a1 1 0 0 1-.215-.364C3 16.573 3 16.401 3 16.06V14.5m0-5V7.942c0-.343 0-.514.05-.667a1 1 0 0 1 .215-.364c.109-.119.258-.202.558-.368L5.25 5.75m4.5-2.5 1.473-.818c.284-.158.425-.237.576-.267a1 1 0 0 1 .402 0c.15.03.292.11.576.267l1.473.818m4.5 2.5 1.427.793c.3.166.45.25.558.368a1 1 0 0 1 .215.364c.05.153.05.324.05.667V9.5m0 5v1.559c0 .342 0 .514-.05.666a.999.999 0 0 1-.215.364c-.109.119-.258.202-.558.368l-1.427.793m-9-7.5L12 12m0 0 2.25-1.25M12 12v2.5M3 7l2.25 1.25m13.5 0L21 7m-9 12.5V22"}));be.displayName="CubeOutline";const st=({size:l=24,color:e="currentColor",...s})=>y.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},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"}));st.displayName="Lightbulb02";const lt=({size:l=24,color:e="currentColor",...s})=>y.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},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"}));lt.displayName="Save01";var je="Tabs",[ms]=vt(je,[Ue]),ot=Ue(),[us,Ve]=ms(je),nt=y.forwardRef((l,e)=>{const{__scopeTabs:s,value:n,onValueChange:o,defaultValue:i,orientation:c="horizontal",dir:r,activationMode:a="automatic",...m}=l,u=gt(r),[d,f]=bt({prop:n,onChange:o,defaultProp:i??"",caller:je});return t.jsx(us,{scope:s,baseId:jt(),value:d,onValueChange:f,orientation:c,dir:u,activationMode:a,children:t.jsx(he.div,{dir:u,"data-orientation":c,...m,ref:e})})});nt.displayName=je;var it="TabsList",rt=y.forwardRef((l,e)=>{const{__scopeTabs:s,loop:n=!0,...o}=l,i=Ve(it,s),c=ot(s);return t.jsx(pt,{asChild:!0,...c,orientation:i.orientation,dir:i.dir,loop:n,children:t.jsx(he.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:e})})});rt.displayName=it;var at="TabsTrigger",ct=y.forwardRef((l,e)=>{const{__scopeTabs:s,value:n,disabled:o=!1,...i}=l,c=Ve(at,s),r=ot(s),a=ut(c.baseId,n),m=ft(c.baseId,n),u=n===c.value;return t.jsx(xt,{asChild:!0,...r,focusable:!o,active:u,children:t.jsx(he.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":m,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:a,...i,ref:e,onMouseDown:Ne(l.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?c.onValueChange(n):d.preventDefault()}),onKeyDown:Ne(l.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&c.onValueChange(n)}),onFocus:Ne(l.onFocus,()=>{const d=c.activationMode!=="manual";!u&&!o&&d&&c.onValueChange(n)})})})});ct.displayName=at;var dt="TabsContent",mt=y.forwardRef((l,e)=>{const{__scopeTabs:s,value:n,forceMount:o,children:i,...c}=l,r=Ve(dt,s),a=ut(r.baseId,n),m=ft(r.baseId,n),u=n===r.value,d=y.useRef(u);return y.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),t.jsx(ht,{present:o||u,children:({present:f})=>t.jsx(he.div,{"data-state":u?"active":"inactive","data-orientation":r.orientation,role:"tabpanel","aria-labelledby":a,hidden:!f,id:m,tabIndex:0,...c,ref:e,style:{...l.style,animationDuration:d.current?"0s":void 0},children:f&&i})})});mt.displayName=dt;function ut(l,e){return`${l}-trigger-${e}`}function ft(l,e){return`${l}-content-${e}`}var fs=nt,xs=rt,ps=ct,hs=mt;function gs(l){const e=T.c(10);let s,n,o;e[0]!==l?({className:s,variant:o,...n}=l,e[0]=l,e[1]=s,e[2]=n,e[3]=o):(s=e[1],n=e[2],o=e[3]);const i=o===void 0?"pill":o;let c;e[4]!==s?(c=Y("flex flex-col gap-2",s),e[4]=s,e[5]=c):c=e[5];let r;return e[6]!==n||e[7]!==c||e[8]!==i?(r=t.jsx(fs,{"data-slot":"tabs","data-variant":i,className:c,...n}),e[6]=n,e[7]=c,e[8]=i,e[9]=r):r=e[9],r}function bs(l){const e=T.c(11);let s,n,o;e[0]!==l?({className:s,variant:o,...n}=l,e[0]=l,e[1]=s,e[2]=n,e[3]=o):(s=e[1],n=e[2],o=e[3]);const i=o||"pill",c=i==="underline"?"flex h-[52px] items-center border-b border-border":i==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let r;e[4]!==s||e[5]!==c?(r=Y(c,s),e[4]=s,e[5]=c,e[6]=r):r=e[6];let a;return e[7]!==i||e[8]!==n||e[9]!==r?(a=t.jsx(xs,{"data-slot":"tabs-list","data-variant":i,className:r,...n}),e[7]=i,e[8]=n,e[9]=r,e[10]=a):a=e[10],a}function _e(l){const e=T.c(11);let s,n,o;e[0]!==l?({className:s,variant:o,...n}=l,e[0]=l,e[1]=s,e[2]=n,e[3]=o):(s=e[1],n=e[2],o=e[3]);const i=o||"pill",c=i==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-foreground disabled:pointer-events-none disabled:opacity-50":i==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let r;e[4]!==s||e[5]!==c?(r=Y(c,s),e[4]=s,e[5]=c,e[6]=r):r=e[6];let a;return e[7]!==i||e[8]!==n||e[9]!==r?(a=t.jsx(ps,{"data-slot":"tabs-trigger","data-variant":i,className:r,...n}),e[7]=i,e[8]=n,e[9]=r,e[10]=a):a=e[10],a}function Te(l){const e=T.c(8);let s,n;e[0]!==l?({className:s,...n}=l,e[0]=l,e[1]=s,e[2]=n):(s=e[1],n=e[2]);let o;e[3]!==s?(o=Y("flex-1 outline-none h-full",s),e[3]=s,e[4]=o):o=e[4];let i;return e[5]!==n||e[6]!==o?(i=t.jsx(hs,{"data-slot":"tabs-content",className:o,...n}),e[5]=n,e[6]=o,e[7]=i):i=e[7],i}function ke(l){return l===null?"all":l?.length??0}function js(l,e){const s=l[e];if(!s)return"";const n=[];return s.tools===null?n.push("all tools"):s.tools&&s.tools.length>0&&n.push(`${s.tools.length} tools`),s.resources===null?n.push("all resources"):s.resources&&s.resources.length>0&&n.push(`${s.resources.length} resources`),s.prompts===null?n.push("all prompts"):s.prompts&&s.prompts.length>0&&n.push(`${s.prompts.length} prompts`),n.join(", ")}function vs(l,e){const s=l[e];return s?!((s.tools===void 0||s.tools!==null&&s.tools.length===0)&&(s.resources===void 0||s.resources!==null&&s.resources.length===0)&&(s.prompts===void 0||s.prompts!==null&&s.prompts.length===0)):!1}const Ns={tools:null,resources:null,prompts:null};function Se(){const l=T.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex items-center justify-center h-32",children:t.jsx(Re,{className:"animate-spin text-muted-foreground",size:24})}),l[0]=e):e=l[0],e}function we(l){return({error:e})=>e?.message?.includes("Method not found")||e?.code===-32601?t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:l})}):t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx($t,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e?.message?e.message.length>200?`${e.message.slice(0,200)}...`:e.message:"An unexpected error occurred"})]})]})}function ys(l){const e=T.c(18),{item:s,isSelected:n,onToggle:o,disabled:i}=l,c=i?"cursor-not-allowed opacity-50":"cursor-pointer",r=n?"bg-accent/25":"hover:bg-muted/50";let a;e[0]!==c||e[1]!==r?(a=Y("flex items-start gap-3 p-4 rounded-lg transition-colors",c,r),e[0]=c,e[1]=r,e[2]=a):a=e[2];let m;e[3]!==s.name?(m=t.jsx("p",{className:"text-sm font-medium leading-none",children:s.name}),e[3]=s.name,e[4]=m):m=e[4];let u;e[5]!==s.description?(u=s.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:s.description}),e[5]=s.description,e[6]=u):u=e[6];let d;e[7]!==m||e[8]!==u?(d=t.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[m,u]}),e[7]=m,e[8]=u,e[9]=d):d=e[9];let f;e[10]!==i||e[11]!==n||e[12]!==o?(f=t.jsx(Pe,{checked:n,onCheckedChange:o,disabled:i,className:"mt-0.5"}),e[10]=i,e[11]=n,e[12]=o,e[13]=f):f=e[13];let h;return e[14]!==a||e[15]!==d||e[16]!==f?(h=t.jsxs("label",{className:a,children:[d,f]}),e[14]=a,e[15]=d,e[16]=f,e[17]=h):h=e[17],h}function Fe(l){const e=T.c(32),{items:s,selections:n,onToggle:o,onToggleAll:i,emptyMessage:c,disabled:r}=l;let a,m,u,d,f;if(e[0]!==r||e[1]!==c||e[2]!==s||e[3]!==o||e[4]!==i||e[5]!==n){f=Symbol.for("react.early_return_sentinel");e:{const x=s.map(Cs);if(s.length===0){let _;e[11]!==c?(_=t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:c})}),e[11]=c,e[12]=_):_=e[12],f=_;break e}u="flex flex-col h-full";const N=r?"cursor-not-allowed opacity-50":"cursor-pointer";let j;e[13]!==N?(j=Y("flex items-start gap-3 p-4",N),e[13]=N,e[14]=j):j=e[14];let v;e[15]!==s.length?(v=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsxs("span",{className:"text-sm font-medium",children:["Select All (",s.length,")"]})}),e[15]=s.length,e[16]=v):v=e[16];const g=n===null;let C;e[17]!==r||e[18]!==i||e[19]!==g?(C=t.jsx(Pe,{checked:g,onCheckedChange:i,disabled:r,className:"mt-0.5"}),e[17]=r,e[18]=i,e[19]=g,e[20]=C):C=e[20],e[21]!==C||e[22]!==j||e[23]!==v?(d=t.jsx("div",{className:"px-4 border-b border-border shrink-0",children:t.jsxs("label",{className:j,children:[v,C]})}),e[21]=C,e[22]=j,e[23]=v,e[24]=d):d=e[24],a="flex-1 overflow-auto px-4 py-3 space-y-1",m=s.map(_=>t.jsx(ys,{item:_,isSelected:n===null||n?.includes(_.id),onToggle:()=>o(_.id,x),disabled:r},_.id))}e[0]=r,e[1]=c,e[2]=s,e[3]=o,e[4]=i,e[5]=n,e[6]=a,e[7]=m,e[8]=u,e[9]=d,e[10]=f}else a=e[6],m=e[7],u=e[8],d=e[9],f=e[10];if(f!==Symbol.for("react.early_return_sentinel"))return f;let h;e[25]!==a||e[26]!==m?(h=t.jsx("div",{className:a,children:m}),e[25]=a,e[26]=m,e[27]=h):h=e[27];let p;return e[28]!==u||e[29]!==d||e[30]!==h?(p=t.jsxs("div",{className:u,children:[d,h]}),e[28]=u,e[29]=d,e[30]=h,e[31]=p):p=e[31],p}function Cs(l){return l.id}function _s(l){const e=T.c(13),{connectionId:s,selections:n,onToggle:o,onToggleAll:i,disabled:c}=l,{org:r}=ge();let a;e[0]!==s||e[1]!==r.id?(a={connectionId:s,orgId:r.id},e[0]=s,e[1]=r.id,e[2]=a):a=e[2];const m=Me(a);let u;e[3]!==m?(u={client:m},e[3]=m,e[4]=u):u=e[4];const{data:d}=ls(u);let f;e[5]!==d.tools?(f=d.tools.map(Ts),e[5]=d.tools,e[6]=f):f=e[6];const h=f;let p;return e[7]!==c||e[8]!==h||e[9]!==o||e[10]!==i||e[11]!==n?(p=t.jsx(Fe,{items:h,selections:n,onToggle:o,onToggleAll:i,emptyMessage:"No tools available",disabled:c}),e[7]=c,e[8]=h,e[9]=o,e[10]=i,e[11]=n,e[12]=p):p=e[12],p}function Ts(l){return{id:l.name,name:l.name,description:l.description}}function ks(l){const e=T.c(13),{connectionId:s,selections:n,onToggle:o,onToggleAll:i,disabled:c}=l,{org:r}=ge();let a;e[0]!==s||e[1]!==r.id?(a={connectionId:s,orgId:r.id},e[0]=s,e[1]=r.id,e[2]=a):a=e[2];const m=Me(a);let u;e[3]!==m?(u={client:m},e[3]=m,e[4]=u):u=e[4];const{data:d}=os(u);let f;e[5]!==d.resources?(f=d.resources.map(Ss),e[5]=d.resources,e[6]=f):f=e[6];const h=f;let p;return e[7]!==c||e[8]!==h||e[9]!==o||e[10]!==i||e[11]!==n?(p=t.jsx(Fe,{items:h,selections:n,onToggle:o,onToggleAll:i,emptyMessage:"No resources available",disabled:c}),e[7]=c,e[8]=h,e[9]=o,e[10]=i,e[11]=n,e[12]=p):p=e[12],p}function Ss(l){return{id:l.name||l.uri,name:l.name||l.uri,description:l.description}}function ws(l){const e=T.c(13),{connectionId:s,selections:n,onToggle:o,onToggleAll:i,disabled:c}=l,{org:r}=ge();let a;e[0]!==s||e[1]!==r.id?(a={connectionId:s,orgId:r.id},e[0]=s,e[1]=r.id,e[2]=a):a=e[2];const m=Me(a);let u;e[3]!==m?(u={client:m},e[3]=m,e[4]=u):u=e[4];const{data:d}=ns(u);let f;e[5]!==d.prompts?(f=d.prompts.map(Es),e[5]=d.prompts,e[6]=f):f=e[6];const h=f;let p;return e[7]!==c||e[8]!==h||e[9]!==o||e[10]!==i||e[11]!==n?(p=t.jsx(Fe,{items:h,selections:n,onToggle:o,onToggleAll:i,emptyMessage:"No prompts available",disabled:c}),e[7]=c,e[8]=h,e[9]=o,e[10]=i,e[11]=n,e[12]=p):p=e[12],p}function Es(l){return{id:l.name,name:l.name,description:l.description}}function Is(l){const e=T.c(24),{connection:s,isSelected:n,hasSelections:o,summary:i,onClick:c,onToggleAll:r,disabled:a}=l,m=a?"cursor-not-allowed opacity-50":"cursor-pointer",u=n?"bg-accent":"hover:bg-muted/50";let d;e[0]!==m||e[1]!==u?(d=Y("flex items-center gap-2 p-2 h-12 rounded-lg transition-colors",m,u),e[0]=m,e[1]=u,e[2]=d):d=e[2];const f=a?void 0:c;let h;e[3]!==s.icon||e[4]!==s.title?(h=t.jsx(ue,{icon:s.icon,name:s.title,size:"xs",className:"shrink-0"}),e[3]=s.icon,e[4]=s.title,e[5]=h):h=e[5];let p;e[6]!==s.title?(p=t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[6]=s.title,e[7]=p):p=e[7];let x;e[8]!==o||e[9]!==i?(x=o&&i&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:i}),e[8]=o,e[9]=i,e[10]=x):x=e[10];let N;e[11]!==p||e[12]!==x?(N=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[p,x]}),e[11]=p,e[12]=x,e[13]=N):N=e[13];let j;e[14]!==a||e[15]!==o||e[16]!==r?(j=t.jsx(Pe,{checked:o,onCheckedChange:r,onClick:As,disabled:a,className:"shrink-0"}),e[14]=a,e[15]=o,e[16]=r,e[17]=j):j=e[17];let v;return e[18]!==d||e[19]!==f||e[20]!==h||e[21]!==N||e[22]!==j?(v=t.jsxs("div",{className:d,onClick:f,children:[h,N,j]}),e[18]=d,e[19]=f,e[20]=h,e[21]=N,e[22]=j,e[23]=v):v=e[23],v}function As(l){return l.stopPropagation()}function Os(l){const e=T.c(22),{allConnections:s,searchTerm:n,selectedId:o,hasSelections:i,getSelectionSummary:c,onConnectionClick:r,onToggleAll:a,disabled:m}=l;let u;e[0]!==s||e[1]!==n?(u=n?s.filter(p=>p.title.toLowerCase().includes(n.toLowerCase())||p.description?.toLowerCase().includes(n.toLowerCase())):s,e[0]=s,e[1]=n,e[2]=u):u=e[2];const d=u;if(d.length===0){const p=n?"No connections found":"No connections available";let x;return e[3]!==p?(x=t.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground p-4",children:p}),e[3]=p,e[4]=x):x=e[4],x}let f;if(e[5]!==m||e[6]!==d||e[7]!==c||e[8]!==i||e[9]!==r||e[10]!==a||e[11]!==o){let p;e[13]!==m||e[14]!==c||e[15]!==i||e[16]!==r||e[17]!==a||e[18]!==o?(p=x=>t.jsx(Is,{connection:x,isSelected:o===x.id,hasSelections:i(x.id),summary:c(x.id),onClick:()=>r(x.id),onToggleAll:()=>a(x.id),disabled:m},x.id),e[13]=m,e[14]=c,e[15]=i,e[16]=r,e[17]=a,e[18]=o,e[19]=p):p=e[19],f=d.map(p),e[5]=m,e[6]=d,e[7]=c,e[8]=i,e[9]=r,e[10]=a,e[11]=o,e[12]=f}else f=e[12];let h;return e[20]!==f?(h=t.jsx("div",{className:"flex flex-col gap-0.5",children:f}),e[20]=f,e[21]=h):h=e[21],h}function Ds(l){const e=T.c(75),{currentConnection:s,activeTab:n,selectedId:o,formData:i,toggleTool:c,toggleResource:r,togglePrompt:a,toggleAllTools:m,toggleAllResources:u,toggleAllPrompts:d,onTabChange:f}=l;let h;e[0]!==s.icon||e[1]!==s.title?(h=t.jsx(ue,{icon:s.icon,name:s.title,size:"md",className:"shrink-0"}),e[0]=s.icon,e[1]=s.title,e[2]=h):h=e[2];let p;e[3]!==s.title?(p=t.jsx("h2",{className:"text-lg font-semibold truncate",children:s.title}),e[3]=s.title,e[4]=p):p=e[4];let x;e[5]!==s.description?(x=s.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:s.description}),e[5]=s.description,e[6]=x):x=e[6];let N;e[7]!==p||e[8]!==x?(N=t.jsxs("div",{className:"flex-1 min-w-0",children:[p,x]}),e[7]=p,e[8]=x,e[9]=N):N=e[9];let j;e[10]!==h||e[11]!==N?(j=t.jsx("div",{className:"p-6 border-b border-border shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[h,N]})}),e[10]=h,e[11]=N,e[12]=j):j=e[12];let v;e[13]!==f?(v=F=>f(F),e[13]=f,e[14]=v):v=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsxs(_e,{value:"tools",variant:"underline",className:"gap-2",children:[t.jsx(ze,{size:16}),"Tools"]}),e[15]=g):g=e[15];let C;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsxs(_e,{value:"resources",variant:"underline",className:"gap-2",children:[t.jsx(be,{size:16}),"Resources"]}),e[16]=C):C=e[16];let _;e[17]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsxs(bs,{variant:"underline",className:"shrink-0 px-6",children:[g,C,t.jsxs(_e,{value:"prompts",variant:"underline",className:"gap-2",children:[t.jsx(Le,{size:16}),"Prompts"]})]}),e[17]=_):_=e[17];let P;e[18]===Symbol.for("react.memo_cache_sentinel")?(P=we("Tools not supported by this server"),e[18]=P):P=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(Se,{}),e[19]=S):S=e[19];let O;e[20]!==i||e[21]!==o?(O=i[o]?i[o].tools:[],e[20]=i,e[21]=o,e[22]=O):O=e[22];let k;e[23]!==o||e[24]!==c?(k=(F,Q)=>c(o,F,Q),e[23]=o,e[24]=c,e[25]=k):k=e[25];let w;e[26]!==o||e[27]!==m?(w=()=>m(o),e[26]=o,e[27]=m,e[28]=w):w=e[28];let I;e[29]!==o||e[30]!==O||e[31]!==k||e[32]!==w?(I=t.jsx(Te,{value:"tools",className:"flex-1 overflow-hidden mt-0",children:t.jsx(pe,{fallback:P,children:t.jsx(y.Suspense,{fallback:S,children:t.jsx(_s,{connectionId:o,selections:O,onToggle:k,onToggleAll:w})})})}),e[29]=o,e[30]=O,e[31]=k,e[32]=w,e[33]=I):I=e[33];let D;e[34]===Symbol.for("react.memo_cache_sentinel")?(D=we("Resources not supported by this server"),e[34]=D):D=e[34];let z;e[35]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx(Se,{}),e[35]=z):z=e[35];let E;e[36]!==i||e[37]!==o?(E=i[o]?i[o].resources:[],e[36]=i,e[37]=o,e[38]=E):E=e[38];let A;e[39]!==o||e[40]!==r?(A=(F,Q)=>r(o,F,Q),e[39]=o,e[40]=r,e[41]=A):A=e[41];let $;e[42]!==o||e[43]!==u?($=()=>u(o),e[42]=o,e[43]=u,e[44]=$):$=e[44];let R;e[45]!==o||e[46]!==E||e[47]!==A||e[48]!==$?(R=t.jsx(Te,{value:"resources",className:"flex-1 overflow-hidden mt-0",children:t.jsx(pe,{fallback:D,children:t.jsx(y.Suspense,{fallback:z,children:t.jsx(ks,{connectionId:o,selections:E,onToggle:A,onToggleAll:$})})})}),e[45]=o,e[46]=E,e[47]=A,e[48]=$,e[49]=R):R=e[49];let q;e[50]===Symbol.for("react.memo_cache_sentinel")?(q=we("Prompts not supported by this server"),e[50]=q):q=e[50];let Z;e[51]===Symbol.for("react.memo_cache_sentinel")?(Z=t.jsx(Se,{}),e[51]=Z):Z=e[51];let B;e[52]!==i||e[53]!==o?(B=i[o]?i[o].prompts:[],e[52]=i,e[53]=o,e[54]=B):B=e[54];let U;e[55]!==o||e[56]!==a?(U=(F,Q)=>a(o,F,Q),e[55]=o,e[56]=a,e[57]=U):U=e[57];let G;e[58]!==o||e[59]!==d?(G=()=>d(o),e[58]=o,e[59]=d,e[60]=G):G=e[60];let K;e[61]!==o||e[62]!==B||e[63]!==U||e[64]!==G?(K=t.jsx(Te,{value:"prompts",className:"flex-1 overflow-hidden mt-0",children:t.jsx(pe,{fallback:q,children:t.jsx(y.Suspense,{fallback:Z,children:t.jsx(ws,{connectionId:o,selections:B,onToggle:U,onToggleAll:G})})})}),e[61]=o,e[62]=B,e[63]=U,e[64]=G,e[65]=K):K=e[65];let H;e[66]!==n||e[67]!==I||e[68]!==R||e[69]!==K||e[70]!==v?(H=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:t.jsxs(gs,{value:n,onValueChange:v,variant:"underline",className:"flex-1 flex flex-col overflow-hidden",children:[_,I,R,K]})}),e[66]=n,e[67]=I,e[68]=R,e[69]=K,e[70]=v,e[71]=H):H=e[71];let W;return e[72]!==H||e[73]!==j?(W=t.jsxs(t.Fragment,{children:[j,H]}),e[72]=H,e[73]=j,e[74]=W):W=e[74],W}function $s(l){const e={};for(const s of l)e[s.connection_id]={tools:s.selected_tools,resources:s.selected_resources??null,prompts:s.selected_prompts??null};return e}function Ee(l){return Object.entries(l).map(([e,s])=>({connection_id:e,selected_tools:s.tools,selected_resources:s.resources,selected_prompts:s.prompts}))}function Ls(l,e){switch(e.type){case"SET_SEARCH_TERM":return{...l,searchTerm:e.payload};case"SET_SELECTED":return{...l,selectedId:e.payload};case"SET_ACTIVE_TAB":return{...l,activeTab:e.payload};case"RESET":return{searchTerm:"",selectedId:e.payload.selectedId??e.payload.firstConnectionId??null,activeTab:"tools"};case"SELECT_CONNECTION":return{...l,selectedId:e.payload,activeTab:"tools"};default:return l}}const We=(l,e)=>l.find(s=>s.id===e)??l[0];function zs(l){const e=T.c(79),{open:s,onOpenChange:n,selectedId:o,form:i,connections:c}=l;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={},e[0]=r):r=e[0];const a=Mt(r);let m;e[1]!==a||e[2]!==o?(m=We(a,o)?.id??null,e[1]=a,e[2]=o,e[3]=m):m=e[3];let u;e[4]!==m?(u={activeTab:"tools",searchTerm:"",selectedId:m},e[4]=m,e[5]=u):u=e[5];const[d,f]=y.useReducer(Ls,u);let h;e[6]!==c?(h=c??[],e[6]=c,e[7]=h):h=e[7];let p;e[8]!==h?(p=$s(h),e[8]=h,e[9]=p):p=e[9];const x=p;let N;e[10]!==a||e[11]!==d.selectedId?(N=We(a,d.selectedId),e[10]=a,e[11]=d.selectedId,e[12]=N):N=e[12];const j=N;let v;e[13]!==x?(v=b=>vs(x,b),e[13]=x,e[14]=v):v=e[14];const g=v;let C;e[15]!==x?(C=b=>js(x,b),e[15]=x,e[16]=C):C=e[16];const _=C;let P;e[17]!==i||e[18]!==x?(P=(b,L,M,X)=>{const de=x[b]?.[L];let V;de===null?V=X.filter(ve=>ve!==M):de?.includes(M)?V=de.filter(ve=>ve!==M):(V=[...de??[],M],V.length===X.length&&(V=null));const me={...x};me[b]?me[b]={...me[b]}:me[b]={tools:null,resources:null,prompts:null},me[b][L]=V,i.setValue("connections",Ee(me),{shouldDirty:!0,shouldTouch:!0})},e[17]=i,e[18]=x,e[19]=P):P=e[19];const S=P;let O;e[20]!==i||e[21]!==x?(O=(b,L)=>{const de=x[b]?.[L]===null?[]:null,V={...x};V[b]?V[b]={...V[b]}:V[b]={tools:null,resources:null,prompts:null},V[b][L]=de,i.setValue("connections",Ee(V),{shouldDirty:!0,shouldTouch:!0})},e[20]=i,e[21]=x,e[22]=O):O=e[22];const k=O;let w;e[23]!==S?(w=(b,L,M)=>S(b,"tools",L,M),e[23]=S,e[24]=w):w=e[24];const I=w;let D;e[25]!==S?(D=(b,L,M)=>S(b,"resources",L,M),e[25]=S,e[26]=D):D=e[26];const z=D;let E;e[27]!==S?(E=(b,L,M)=>S(b,"prompts",L,M),e[27]=S,e[28]=E):E=e[28];const A=E;let $;e[29]!==k?($=b=>k(b,"tools"),e[29]=k,e[30]=$):$=e[30];const R=$;let q;e[31]!==k?(q=b=>k(b,"resources"),e[31]=k,e[32]=q):q=e[32];const Z=q;let B;e[33]!==k?(B=b=>k(b,"prompts"),e[33]=k,e[34]=B):B=e[34];const U=B;let G;e[35]!==i||e[36]!==x?(G=b=>{const L=x[b],M=L&&L.tools===null&&L.resources===null&&L.prompts===null,X={...x};M?delete X[b]:X[b]=Ns,i.setValue("connections",Ee(X),{shouldDirty:!0,shouldTouch:!0})},e[35]=i,e[36]=x,e[37]=G):G=e[37];const K=G;let H;e[38]!==a||e[39]!==n||e[40]!==o?(H=b=>{b&&f({type:"RESET",payload:{selectedId:o,firstConnectionId:a[0]?.id??null}}),n(b)},e[38]=a,e[39]=n,e[40]=o,e[41]=H):H=e[41];const W=H;let F;e[42]===Symbol.for("react.memo_cache_sentinel")?(F=b=>{f({type:"SELECT_CONNECTION",payload:b})},e[42]=F):F=e[42];const Q=F;let fe;e[43]===Symbol.for("react.memo_cache_sentinel")?(fe=b=>f({type:"SET_SEARCH_TERM",payload:b}),e[43]=fe):fe=e[43];let le;e[44]!==d.searchTerm?(le=t.jsx(Xt,{value:d.searchTerm,onChange:fe,placeholder:"Search connections..."}),e[44]=d.searchTerm,e[45]=le):le=e[45];let oe;e[46]!==a||e[47]!==d.searchTerm||e[48]!==d.selectedId||e[49]!==_||e[50]!==g||e[51]!==K?(oe=t.jsx("div",{className:"flex-1 overflow-auto p-2",children:t.jsx(Os,{allConnections:a,searchTerm:d.searchTerm,selectedId:d.selectedId,hasSelections:g,getSelectionSummary:_,onConnectionClick:Q,onToggleAll:K})}),e[46]=a,e[47]=d.searchTerm,e[48]=d.selectedId,e[49]=_,e[50]=g,e[51]=K,e[52]=oe):oe=e[52];let ne;e[53]!==le||e[54]!==oe?(ne=t.jsxs("div",{className:"w-full sm:w-72 sm:border-r border-b sm:border-b-0 border-border flex flex-col bg-background sm:h-full max-h-[40vh] sm:max-h-full",children:[le,oe]}),e[53]=le,e[54]=oe,e[55]=ne):ne=e[55];let ie;e[56]!==j||e[57]!==d.activeTab||e[58]!==d.selectedId||e[59]!==x||e[60]!==U||e[61]!==Z||e[62]!==R||e[63]!==A||e[64]!==z||e[65]!==I?(ie=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:j&&d.selectedId?t.jsx(Ds,{currentConnection:j,activeTab:d.activeTab,selectedId:d.selectedId,formData:x,toggleTool:I,toggleResource:z,togglePrompt:A,toggleAllTools:R,toggleAllResources:Z,toggleAllPrompts:U,onTabChange:b=>f({type:"SET_ACTIVE_TAB",payload:b})},d.selectedId):t.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:"Select a connection to view its tools, resources, and prompts"})}),e[56]=j,e[57]=d.activeTab,e[58]=d.selectedId,e[59]=x,e[60]=U,e[61]=Z,e[62]=R,e[63]=A,e[64]=z,e[65]=I,e[66]=ie):ie=e[66];let re;e[67]!==ne||e[68]!==ie?(re=t.jsxs("div",{className:"flex-1 flex overflow-hidden min-h-0 flex-col sm:flex-row",children:[ne,ie]}),e[67]=ne,e[68]=ie,e[69]=re):re=e[69];let ae;e[70]!==W?(ae=t.jsx(es,{className:"px-6 py-4 border-t border-border shrink-0",children:t.jsx(J,{variant:"outline",onClick:()=>W(!1),children:"Done"})}),e[70]=W,e[71]=ae):ae=e[71];let ce;e[72]!==re||e[73]!==ae?(ce=t.jsxs(Je,{className:"sm:max-w-5xl h-[80vh] max-h-[80vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[re,ae]}),e[72]=re,e[73]=ae,e[74]=ce):ce=e[74];let xe;return e[75]!==W||e[76]!==s||e[77]!==ce?(xe=t.jsx(Ye,{open:s,onOpenChange:W,children:ce}),e[75]=W,e[76]=s,e[77]=ce,e[78]=xe):xe=e[78],xe}const Rs=Nt.pick({title:!0,description:!0,status:!0,metadata:!0,connections:!0}).extend({title:yt().min(1,"Name is required").max(255)});function Ps(l){const e=T.c(8);let s,n;e[0]!==l?({className:s,...n}=l,e[0]=l,e[1]=s,e[2]=n):(s=e[1],n=e[2]);let o;e[3]!==s?(o=Y("grid gap-3",s),e[3]=s,e[4]=o):o=e[4];let i;return e[5]!==n||e[6]!==o?(i=t.jsx(rs,{"data-slot":"radio-group",className:o,...n}),e[5]=n,e[6]=o,e[7]=i):i=e[7],i}function Ie(l){const e=T.c(9);let s,n;e[0]!==l?({className:s,...n}=l,e[0]=l,e[1]=s,e[2]=n):(s=e[1],n=e[2]);let o;e[3]!==s?(o=Y("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",s),e[3]=s,e[4]=o):o=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(as,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:t.jsx(et,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})}),e[5]=i):i=e[5];let c;return e[6]!==n||e[7]!==o?(c=t.jsx(is,{"data-slot":"radio-group-item",className:o,...n,children:i}),e[6]=n,e[7]=o,e[8]=c):c=e[8],c}function Ms(l){const s=new TextEncoder().encode(l),n=Array.from(s,o=>String.fromCharCode(o)).join("");return btoa(n)}function Vs(l){const e=T.c(10),{url:s}=l,[n,o]=y.useState(!1);let i;e[0]!==s?(i=async()=>{await navigator.clipboard.writeText(s),o(!0),De.success("Agent URL copied to clipboard"),setTimeout(()=>o(!1),2e3)},e[0]=s,e[1]=i):i=e[1];const c=i;let r;e[2]!==n?(r=n?t.jsx(Qe,{size:20,className:"text-green-600"}):t.jsx(ds,{size:20}),e[2]=n,e[3]=r):r=e[3];const a=n?"Copied!":"Copy URL";let m;e[4]!==a?(m=t.jsx("span",{className:"text-xs font-medium",children:a}),e[4]=a,e[5]=m):m=e[5];let u;return e[6]!==c||e[7]!==r||e[8]!==m?(u=t.jsxs(J,{type:"button",variant:"outline",onClick:c,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[r,m]}),e[6]=c,e[7]=r,e[8]=m,e[9]=u):u=e[9],u}function Fs(l){const e=T.c(7),{url:s,serverName:n}=l;let o;e[0]!==n||e[1]!==s?(o=()=>{const m=Ze(n),d=Ms(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),f=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(m)}&config=${encodeURIComponent(d)}`;window.open(f,"_blank"),De.success("Opening Cursor...")},e[0]=n,e[1]=s,e[2]=o):o=e[2];const i=o;let c,r;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("img",{src:"/logos/cursor.svg",alt:"Cursor",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(11%) sepia(8%) saturate(785%) hue-rotate(1deg) brightness(95%) contrast(89%)"}}),r=t.jsx("span",{className:"text-xs font-medium",children:"Install on Cursor"}),e[3]=c,e[4]=r):(c=e[3],r=e[4]);let a;return e[5]!==i?(a=t.jsxs(J,{type:"button",variant:"outline",onClick:i,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[c,r]}),e[5]=i,e[6]=a):a=e[6],a}function Bs(l){const e=T.c(11),{url:s,serverName:n}=l,[o,i]=y.useState(!1);let c;e[0]!==n||e[1]!==s?(c=async()=>{const f=Ze(n),p=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),x=`claude mcp add-json "${f}" '${p.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(x),i(!0),De.success("Claude Code command copied to clipboard"),setTimeout(()=>i(!1),2e3)},e[0]=n,e[1]=s,e[2]=c):c=e[2];const r=c;let a;e[3]!==o?(a=o?t.jsx(Qe,{size:20,className:"text-green-600"}):t.jsx("img",{src:"/logos/Claude Code.svg",alt:"Claude Code",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(55%) sepia(31%) saturate(1264%) hue-rotate(331deg) brightness(92%) contrast(86%)"}}),e[3]=o,e[4]=a):a=e[4];const m=o?"Copied!":"Install on Claude";let u;e[5]!==m?(u=t.jsx("span",{className:"text-xs font-medium",children:m}),e[5]=m,e[6]=u):u=e[6];let d;return e[7]!==r||e[8]!==a||e[9]!==u?(d=t.jsxs(J,{type:"button",variant:"outline",onClick:r,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[a,u]}),e[7]=r,e[8]=a,e[9]=u,e[10]=d):d=e[10],d}function Gs(l){const e=T.c(40),{open:s,onOpenChange:n,virtualMcp:o}=l,[i,c]=y.useState("code_execution");let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=R=>{(R==="passthrough"||R==="smart_tool_selection"||R==="code_execution")&&c(R)},e[0]=r):r=e[0];const a=r;let m;e[1]!==i||e[2]!==o.id?(m=new URL(`/mcp/virtual-mcp/${o.id}`,window.location.origin),m.searchParams.set("mode",i),e[1]=i,e[2]=o.id,e[3]=m):m=e[3];let u;e[4]!==o.id||e[5]!==o.title?(u=o.title||`agent-${o.id?.slice(0,8)??"default"}`,e[4]=o.id,e[5]=o.title,e[6]=u):u=e[6];const d=u;let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(ts,{children:t.jsx(ss,{children:"Share Agent"})}),e[7]=f):f=e[7];let h;e[8]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[8]=h):h=e[8];let p;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Xe,{className:"size-5 text-muted-foreground"})}),e[9]=p):p=e[9];let x;e[10]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Direct access"}),e[10]=x):x=e[10];let N;e[11]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(ee,{asChild:!0,children:t.jsx(Ce,{className:"size-3.5 text-muted-foreground"})}),e[11]=N):N=e[11];let j;e[12]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsxs("label",{htmlFor:"mode-passthrough",className:"flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[p,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[x,t.jsx(ye,{children:t.jsxs(te,{children:[N,t.jsx(se,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"All tools are exposed directly via tools/list. Best for small tool surfaces with deterministic behavior."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Best for small teams or when you need predictable behavior"})]}),t.jsx(Ie,{id:"mode-passthrough",value:"passthrough"})]}),e[12]=j):j=e[12];let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(st,{className:"size-5 text-muted-foreground"})}),e[13]=v):v=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart discovery"}),e[14]=g):g=e[14];let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(ee,{asChild:!0,children:t.jsx(Ce,{className:"size-3.5 text-muted-foreground"})}),e[15]=C):C=e[15];let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsxs("label",{htmlFor:"mode-smart",className:"flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[v,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[g,t.jsx(ye,{children:t.jsxs(te,{children:[C,t.jsx(se,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"Uses meta-tools (GATEWAY_SEARCH_TOOLS, GATEWAY_DESCRIBE_TOOLS, GATEWAY_CALL_TOOL) to keep the tool list small and request details on demand."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Ideal for large teams with many tools - AI finds what it needs"})]}),t.jsx(Ie,{id:"mode-smart",value:"smart_tool_selection"})]}),e[16]=_):_=e[16];let P;e[17]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(cs,{className:"size-5 text-muted-foreground"})}),e[17]=P):P=e[17];let S;e[18]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart execution"}),e[18]=S):S=e[18];let O;e[19]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(ee,{asChild:!0,children:t.jsx(Ce,{className:"size-3.5 text-muted-foreground"})}),e[19]=O):O=e[19];let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsxs("label",{htmlFor:"mode-code",className:"relative flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[P,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[S,t.jsx(ye,{children:t.jsxs(te,{children:[O,t.jsx(se,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"Exposes meta-tools for discovery + sandboxed execution (GATEWAY_RUN_CODE). Reduces overhead on large surfaces by shifting work into a controlled runtime."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Maximum flexibility - AI can write code to orchestrate tools"})]}),t.jsx(Ie,{id:"mode-code",value:"code_execution"}),t.jsx($e,{variant:"outline",className:"absolute -top-2.5 left-1/2 -translate-x-1/2 bg-background z-10",children:"Recommended"})]}),e[20]=k):k=e[20];let w;e[21]!==i?(w=t.jsxs("div",{className:"flex flex-col gap-3",children:[h,t.jsxs(Ps,{value:i,onValueChange:a,className:"flex flex-col gap-4.5",children:[j,_,k]})]}),e[21]=i,e[22]=w):w=e[22];let I;e[23]!==m.href?(I=t.jsx(Vs,{url:m.href}),e[23]=m.href,e[24]=I):I=e[24];let D,z;e[25]!==d||e[26]!==m.href?(D=t.jsx(Fs,{url:m.href,serverName:d}),z=t.jsx(Bs,{url:m.href,serverName:d}),e[25]=d,e[26]=m.href,e[27]=D,e[28]=z):(D=e[27],z=e[28]);let E;e[29]!==I||e[30]!==D||e[31]!==z?(E=t.jsx("div",{className:"flex flex-col gap-3 pt-2",children:t.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[I,D,z]})}),e[29]=I,e[30]=D,e[31]=z,e[32]=E):E=e[32];let A;e[33]!==w||e[34]!==E?(A=t.jsxs(Je,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[f,t.jsxs("div",{className:"flex flex-col gap-6",children:[w,E]})]}),e[33]=w,e[34]=E,e[35]=A):A=e[35];let $;return e[36]!==n||e[37]!==s||e[38]!==A?($=t.jsx(Ye,{open:s,onOpenChange:n,children:A}),e[36]=n,e[37]=s,e[38]=A,e[39]=$):$=e[39],$}function Hs(l,e){switch(e.type){case"SET_SHARE_DIALOG_OPEN":return{...l,shareDialogOpen:e.payload};case"SET_CONNECTION_DIALOG_OPEN":return{...l,connectionDialogOpen:e.payload};case"SET_EDITING_CONNECTION_ID":return{...l,editingConnectionId:e.payload};case"SET_SKILLS_OPEN":return{...l,skillsOpen:e.payload};default:return l}}function Ae(l){const e=T.c(3),{connection_id:s}=l,n=Ke(s);if(!n)return null;let o;return e[0]!==n.icon||e[1]!==n.title?(o=t.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:t.jsx(ue,{icon:n.icon,name:n.title,size:"xs"})}),e[0]=n.icon,e[1]=n.title,e[2]=o):o=e[2],o}Ae.Fallback=function(){return t.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:t.jsx("div",{className:"size-5 rounded bg-muted animate-pulse"})})};function Oe(l){const e=T.c(27),{connection_id:s,selected_tools:n,selected_resources:o,selected_prompts:i,onClick:c}=l,r=Ke(s);if(!r)return null;let a;e[0]!==n?(a=ke(n),e[0]=n,e[1]=a):a=e[1];const m=a;let u;e[2]!==o?(u=ke(o),e[2]=o,e[3]=u):u=e[3];const d=u;let f;e[4]!==i?(f=ke(i),e[4]=i,e[5]=f):f=e[5];const h=f;let p;e[6]!==r.icon||e[7]!==r.title?(p=t.jsx(ue,{icon:r.icon,name:r.title,size:"xs"}),e[6]=r.icon,e[7]=r.title,e[8]=p):p=e[8];let x;e[9]!==r.title?(x=t.jsx("p",{className:"flex-1 text-sm font-normal text-foreground truncate",children:r.title}),e[9]=r.title,e[10]=x):x=e[10];let N;e[11]!==m?(N=m!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:m==="all"?"all":m}),t.jsx(ze,{size:12})]}),e[11]=m,e[12]=N):N=e[12];let j;e[13]!==d?(j=d!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:d==="all"?"all":d}),t.jsx(be,{size:12})]}),e[13]=d,e[14]=j):j=e[14];let v;e[15]!==h?(v=h!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:h==="all"?"all":h}),t.jsx(Le,{size:12})]}),e[15]=h,e[16]=v):v=e[16];let g;e[17]!==N||e[18]!==j||e[19]!==v?(g=t.jsxs($e,{variant:"secondary",className:"bg-muted h-5 gap-2 px-1.5 py-1 flex items-center",children:[N,j,v]}),e[17]=N,e[18]=j,e[19]=v,e[20]=g):g=e[20];let C;e[21]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(qe,{size:16,className:"text-muted-foreground shrink-0"}),e[21]=C):C=e[21];let _;return e[22]!==c||e[23]!==p||e[24]!==x||e[25]!==g?(_=t.jsxs("div",{onClick:c,className:"w-full h-12 flex items-center gap-2 px-3 rounded-lg border border-border hover:bg-accent/50 transition-colors cursor-pointer",children:[p,x,g,C]}),e[22]=c,e[23]=p,e[24]=x,e[25]=g,e[26]=_):_=e[26],_}Oe.Fallback=function(){return t.jsxs("div",{className:"w-full h-12 flex items-center gap-2 px-3 rounded-lg border border-border",children:[t.jsx("div",{className:"size-5 rounded bg-muted animate-pulse shrink-0"}),t.jsx("div",{className:"flex-1 h-4 rounded bg-muted animate-pulse"}),t.jsxs($e,{variant:"secondary",className:"bg-muted h-5 gap-2 px-1.5 py-1 flex items-center",children:[t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(ze,{size:12})]}),t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(be,{size:12})]}),t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(Le,{size:12})]})]}),t.jsx(qe,{size:16,className:"text-muted-foreground shrink-0"})]})};function Ws({virtualMcp:l}){const{org:e}=ge(),n=Tt().location.href,o=Ft(),i=kt({resolver:St(Rs),defaultValues:l}),c=i.watch("connections"),[r,a]=y.useReducer(Hs,{shareDialogOpen:!1,connectionDialogOpen:!1,editingConnectionId:null,skillsOpen:!1}),[,m]=zt(),{setVirtualMcpId:u}=It();y.useEffect(()=>{m(!0),u(l.id)},[l.id]);const d=()=>{u(l.id),m(!0)},f=i.formState.isDirty,h=async()=>{const g=i.getValues(),C=await o.update.mutateAsync({id:l.id,data:g});i.reset(C)},p=()=>{i.reset(l)},x=()=>{a({type:"SET_EDITING_CONNECTION_ID",payload:null}),a({type:"SET_CONNECTION_DIALOG_OPEN",payload:!0})},N=g=>{a({type:"SET_EDITING_CONNECTION_ID",payload:g}),a({type:"SET_CONNECTION_DIALOG_OPEN",payload:!0})},j=o.update.isPending,v=t.jsx(Ut,{children:t.jsxs(Kt,{children:[t.jsx(He,{children:t.jsx(qt,{asChild:!0,children:t.jsx(wt,{to:"/$org/agents",params:{org:e.slug},children:"Agents"})})}),t.jsx(Jt,{}),t.jsx(He,{children:t.jsx(Yt,{children:l.title})})]})});return t.jsxs(Zt,{breadcrumb:v,children:[t.jsxs(Qt,{children:[t.jsxs(te,{delayDuration:0,children:[t.jsx(ee,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(J,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:!f||j,onClick:p,"aria-label":"Cancel",children:t.jsx(Gt,{size:14})})})}),t.jsx(se,{side:"bottom",children:"Cancel"})]}),t.jsxs(te,{delayDuration:0,children:[t.jsx(ee,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(J,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:!f||j,onClick:h,"aria-label":"Save",children:j?t.jsx(Re,{size:14,className:"animate-spin"}):t.jsx(lt,{size:14})})})}),t.jsx(se,{side:"bottom",children:"Save"})]}),t.jsxs(te,{delayDuration:0,children:[t.jsx(ee,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsxs(J,{variant:"outline",size:"sm",className:"h-7 gap-1.5 px-2 border border-input",onClick:d,"aria-label":"Test Agent",children:[t.jsx(Ht,{size:14}),"Test Agent"]})})}),t.jsx(se,{side:"bottom",children:"Test this agent in chat"})]}),t.jsxs(te,{delayDuration:0,children:[t.jsx(ee,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(J,{variant:"outline",size:"icon",className:"size-7 border border-input",onClick:()=>a({type:"SET_SHARE_DIALOG_OPEN",payload:!0}),"aria-label":"Share",children:t.jsx(Wt,{size:14})})})}),t.jsx(se,{side:"bottom",children:"Share"})]}),t.jsx(Lt,{title:l.title,url:n,icon:l.icon??"cpu_chip"})]}),t.jsx("div",{className:"flex h-full w-full bg-background overflow-auto",children:t.jsxs("div",{className:"flex flex-col w-full",children:[t.jsxs("div",{className:"flex items-start justify-between gap-4 p-6 shrink-0",children:[t.jsxs("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[t.jsx(ue,{icon:l.icon,name:i.watch("title")||"Agent",size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(tt,{})}),t.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[t.jsx(Be,{...i.register("title"),className:"h-auto py-0.5 text-lg! font-medium leading-7 px-1 -mx-1 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Agent Name"}),t.jsx(Be,{...i.register("description"),className:"h-auto py-0.5 text-base text-muted-foreground leading-6 px-1 -mx-1 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Add a description..."})]})]}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(Rt,{checked:i.watch("status")==="active",onCheckedChange:g=>i.setValue("status",g?"active":"inactive",{shouldDirty:!0})})})]}),t.jsxs(At,{open:r.skillsOpen,onOpenChange:g=>a({type:"SET_SKILLS_OPEN",payload:g}),className:"border-t border-border shrink-0 max-h-[400px] overflow-hidden flex flex-col",children:[c.length===0?t.jsxs("button",{type:"button",onClick:x,className:"w-full flex items-center justify-between px-6 py-4 hover:bg-muted/50 transition-colors cursor-pointer",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Skills"}),t.jsxs("div",{className:"h-7 px-2 inline-flex items-center justify-center gap-1 rounded-md text-sm text-muted-foreground",children:[t.jsx(Ge,{size:14}),"Add"]})]}):t.jsx(Ot,{asChild:!0,children:t.jsxs("button",{type:"button",className:"w-full flex items-center justify-between px-6 py-4 hover:bg-muted/50 transition-colors cursor-pointer",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Skills"}),t.jsxs("div",{className:"flex items-center",children:[t.jsx("div",{className:"flex items-center -space-x-2 ease-(--ease-out-expo)",style:{width:r.skillsOpen?0:"auto",marginRight:r.skillsOpen?0:4,opacity:r.skillsOpen?0:1,pointerEvents:r.skillsOpen?"none":"auto",transitionProperty:"all",transitionDuration:r.skillsOpen?"0ms":"200ms"},children:c.slice(0,4).map(g=>t.jsx(y.Suspense,{fallback:t.jsx(Ae.Fallback,{}),children:t.jsx(Ae,{connection_id:g.connection_id})},g.connection_id))}),t.jsxs("div",{role:"button",tabIndex:0,className:"h-7 inline-flex items-center justify-center rounded-md text-sm text-muted-foreground overflow-hidden transition-all duration-200 ease-(--ease-out-expo) hover:bg-accent hover:text-accent-foreground",style:{width:r.skillsOpen?"auto":28,paddingLeft:r.skillsOpen?8:0,paddingRight:r.skillsOpen?8:0,gap:r.skillsOpen?4:0},onPointerDown:g=>{g.stopPropagation()},onClick:g=>{g.stopPropagation(),g.preventDefault(),x()},onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&(g.stopPropagation(),g.preventDefault(),x())},children:[t.jsx(Ge,{size:14,className:"shrink-0"}),t.jsx("span",{className:"overflow-hidden whitespace-nowrap transition-all duration-200 ease-(--ease-out-expo)",style:{width:r.skillsOpen?"auto":0,opacity:r.skillsOpen?1:0},children:"Add"})]}),t.jsx("div",{className:"h-7 inline-flex items-center justify-center overflow-hidden transition-all duration-200 ease-(--ease-out-expo)",style:{width:r.skillsOpen?28:0,opacity:r.skillsOpen?1:0},children:t.jsx(Bt,{size:16,className:"shrink-0"})})]})]})}),t.jsx("div",{className:"grid overflow-hidden transition-[grid-template-rows] duration-200 ease-(--ease-out-expo)",style:{gridTemplateRows:r.skillsOpen?"1fr":"0fr"},children:t.jsx("div",{className:"min-h-0 overflow-hidden",children:t.jsx("div",{className:"overflow-y-auto max-h-[300px] mask-[linear-gradient(to_bottom,black_calc(100%-40px),transparent_100%)]",children:t.jsx("div",{className:"flex flex-col gap-2 px-6 pb-4 pt-2",children:c.map(g=>t.jsx(y.Suspense,{fallback:t.jsx(Oe.Fallback,{}),children:t.jsx(Oe,{connection_id:g.connection_id,selected_tools:g.selected_tools,selected_resources:g.selected_resources,selected_prompts:g.selected_prompts,onClick:()=>N(g.connection_id)})},g.connection_id))})})})})]}),t.jsxs("div",{className:"flex flex-col flex-1 p-6 border-t border-border overflow-auto",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground mb-2",children:"Instructions"}),t.jsx(Et,{name:"metadata.instructions",control:i.control,render:({field:g})=>t.jsx(Pt,{...g,value:g.value??"",placeholder:"Write instructions here...",className:"min-h-[200px] resize-none text-sm placeholder:text-muted-foreground/50 leading-relaxed border-0 rounded-none shadow-none px-0 focus-visible:ring-0 focus-visible:ring-offset-0 focus:border-0 bg-transparent"})})]})]})}),t.jsx(zs,{open:r.connectionDialogOpen,onOpenChange:g=>a({type:"SET_CONNECTION_DIALOG_OPEN",payload:g}),selectedId:r.editingConnectionId,form:i,connections:c}),t.jsx(Gs,{open:r.shareDialogOpen,onOpenChange:g=>a({type:"SET_SHARE_DIALOG_OPEN",payload:g}),virtualMcp:l})]})}function Us(){const l=T.c(6),e=Ct();let s;l[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org/agents/$agentId"},l[0]=s):s=l[0];const n=_t(s),{org:o,agentId:i}=n,c=Vt(i);if(!c){let a;return l[1]!==e||l[2]!==o?(a=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Dt,{title:"Agent not found",description:"This Agent may have been deleted or you may not have access.",actions:t.jsx(J,{variant:"outline",onClick:()=>e({to:"/$org/agents",params:{org:o}}),children:"Back to agents"})})}),l[1]=e,l[2]=o,l[3]=a):a=l[3],a}let r;return l[4]!==c?(r=t.jsx(Ws,{virtualMcp:c}),l[4]=c,l[5]=r):r=l[5],r}function Wl(){const l=T.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(pe,{children:t.jsx(y.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(Re,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Us,{})})}),l[0]=e):e=l[0],e}export{Wl as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as d,j as u,a3 as l,y as v}from"./index-bZDjEZjy.js";import{c as g}from"./button-ClfTbYRX.js";const f=v("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",success:"border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function m(o){const e=d.c(12);let r,s,a,t;e[0]!==o?({className:r,variant:t,asChild:a,...s}=o,e[0]=o,e[1]=r,e[2]=s,e[3]=a,e[4]=t):(r=e[1],s=e[2],a=e[3],t=e[4]);const c=(a===void 0?!1:a)?l:"span";let i;e[5]!==r||e[6]!==t?(i=g(f({variant:t}),r),e[5]=r,e[6]=t,e[7]=i):i=e[7];let n;return e[8]!==c||e[9]!==s||e[10]!==i?(n=u.jsx(c,{"data-slot":"badge",className:i,...s}),e[8]=c,e[9]=s,e[10]=i,e[11]=n):n=e[11],n}export{m as B};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c,j as n,a3 as f}from"./index-bZDjEZjy.js";import{i as u}from"./ChevronRight-DspCPj_w.js";import{c as m}from"./button-ClfTbYRX.js";function x(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("min-w-0 overflow-hidden",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=n.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function N(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=n.jsx("ol",{"data-slot":"breadcrumb-list",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function g(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("inline-flex items-center gap-1.5 min-w-0",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=n.jsx("li",{"data-slot":"breadcrumb-item",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function j(r){const e=c.c(10);let a,t,s;e[0]!==r?({asChild:a,className:t,...s}=r,e[0]=r,e[1]=a,e[2]=t,e[3]=s):(a=e[1],t=e[2],s=e[3]);const l=a?f:"a";let i;e[4]!==t?(i=m("hover:text-foreground transition-colors truncate",t),e[4]=t,e[5]=i):i=e[5];let o;return e[6]!==l||e[7]!==s||e[8]!==i?(o=n.jsx(l,{"data-slot":"breadcrumb-link",className:i,...s}),e[6]=l,e[7]=s,e[8]=i,e[9]=o):o=e[9],o}function h(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("text-foreground font-normal truncate",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=n.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function B(r){const e=c.c(12);let a,t,s;e[0]!==r?({children:a,className:t,...s}=r,e[0]=r,e[1]=a,e[2]=t,e[3]=s):(a=e[1],t=e[2],s=e[3]);let l;e[4]!==t?(l=m("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",t),e[4]=t,e[5]=l):l=e[5];let i;e[6]!==a?(i=a??n.jsx(u,{}),e[6]=a,e[7]=i):i=e[7];let o;return e[8]!==s||e[9]!==l||e[10]!==i?(o=n.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:l,...s,children:i}),e[8]=s,e[9]=l,e[10]=i,e[11]=o):o=e[11],o}export{x as B,N as a,g as b,h as c,j as d,B as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aS as g,aT as u,c as l,j as v,a3 as b,y as p}from"./index-bZDjEZjy.js";function x(...n){return g(u(n))}const f=p("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground",brand:"bg-brand-green-light text-brand-green-dark hover:bg-brand-green-light/90"},size:{default:"h-10 px-4 py-2 has-[>svg]:px-3",sm:"h-7 gap-1.5 px-3 has-[>svg]:px-2.5",xs:"h-6 gap-1 px-2 text-xs has-[>svg]:px-1.5",lg:"h-10 px-6 has-[>svg]:px-4",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}});function k(n){const e=l.c(14);let t,r,s,o,i;e[0]!==n?({className:t,variant:i,size:s,asChild:o,...r}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=s,e[4]=o,e[5]=i):(t=e[1],r=e[2],s=e[3],o=e[4],i=e[5]);const c=(o===void 0?!1:o)?b:"button";let a;e[6]!==t||e[7]!==s||e[8]!==i?(a=x(f({variant:i,size:s,className:t})),e[6]=t,e[7]=s,e[8]=i,e[9]=a):a=e[9];let d;return e[10]!==c||e[11]!==r||e[12]!==a?(d=v.jsx(c,{"data-slot":"button",className:a,...r}),e[10]=c,e[11]=r,e[12]=a,e[13]=d):d=e[13],d}export{k as B,f as b,x as c};
|