@decocms/mesh 2.124.0 → 2.125.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-FqZvtfh1.js → AlertCircle-BzYW4X7z.js} +1 -1
- package/dist/client/assets/{AlertOctagon-raXiOXHj.js → AlertOctagon-CUysWl_m.js} +1 -1
- package/dist/client/assets/{AlertTriangle-Cag6cydu.js → AlertTriangle-DniGvpwb.js} +1 -1
- package/dist/client/assets/{ArrowDown-BzwwIvol.js → ArrowDown-B35oswmj.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CHSuXHTI.js → ArrowLeft-dS1h2Fqu.js} +1 -1
- package/dist/client/assets/{ArrowUp-lkpB-gsw.js → ArrowUp-G8RCE5_O.js} +1 -1
- package/dist/client/assets/{Check-BEIYk4IG.js → Check-Bv0pZ3gl.js} +1 -1
- package/dist/client/assets/{CheckCircle-BwIxyhQy.js → CheckCircle-lzDHXhkH.js} +1 -1
- package/dist/client/assets/{CheckDone01-Duh5ZNi_.js → CheckDone01-BrxNvWbF.js} +1 -1
- package/dist/client/assets/{CheckVerified02-DFKFrqtt.js → CheckVerified02-6wwLRSRQ.js} +1 -1
- package/dist/client/assets/{ChevronDown-DDsgD0_a.js → ChevronDown-CggIFEVQ.js} +1 -1
- package/dist/client/assets/{ChevronRight-dj0VUAfs.js → ChevronRight-DgAfR8pA.js} +1 -1
- package/dist/client/assets/{Clock-Dv-gTw8O.js → Clock-IA7N95Qq.js} +1 -1
- package/dist/client/assets/{Code01-DbWG3kai.js → Code01-DP2jwP0n.js} +1 -1
- package/dist/client/assets/{Container-BY7Dg1ME.js → Container-jfv9L6Hc.js} +1 -1
- package/dist/client/assets/{Copy01-BpXeBtQY.js → Copy01-Dq7Edhtu.js} +1 -1
- package/dist/client/assets/{Dataflow03-Ce5PVi3u.js → Dataflow03-C6KAN8vb.js} +1 -1
- package/dist/client/assets/{DotsHorizontal--qP7BuAi.js → DotsHorizontal-CQ-MbYsC.js} +1 -1
- package/dist/client/assets/{DotsVertical-_M8uWFPN.js → DotsVertical-PhooMqUv.js} +1 -1
- package/dist/client/assets/{Download01-Cvq7FqwC.js → Download01-CA9RmYjX.js} +1 -1
- package/dist/client/assets/{Edit01-BOdZHKPa.js → Edit01-DRruZKzG.js} +1 -1
- package/dist/client/assets/{Eye-D_CQVe6k.js → Eye-B9ZDOUkE.js} +1 -1
- package/dist/client/assets/{File02-BtCmWw9V.js → File02-B2t2I1sM.js} +1 -1
- package/dist/client/assets/{File06-D2nPQ2vd.js → File06-2US99J_V.js} +1 -1
- package/dist/client/assets/{FilterLines-CeQtwyiF.js → FilterLines-BFeSNY4D.js} +1 -1
- package/dist/client/assets/{Globe01-BUNBHHR9.js → Globe01-Dxe6Kj1c.js} +1 -1
- package/dist/client/assets/{Globe02-DXh1wFnz.js → Globe02-BPmEw10H.js} +1 -1
- package/dist/client/assets/{Grid01-DDvgvRE8.js → Grid01-CJW4ZLO5.js} +1 -1
- package/dist/client/assets/{Hash02-CCi87yL-.js → Hash02-CIZbsu7P.js} +1 -1
- package/dist/client/assets/{Home02-WM8fzzhX.js → Home02-Doo3wLuN.js} +1 -1
- package/dist/client/assets/{Image01-ToJS21L5.js → Image01-C9h8llDV.js} +1 -1
- package/dist/client/assets/{Inbox01-Dl3sNTM-.js → Inbox01-BweXezQd.js} +1 -1
- package/dist/client/assets/{InfoCircle-CHNw8w2I.js → InfoCircle-DBbArWGV.js} +1 -1
- package/dist/client/assets/{Key01-CBasGMu5.js → Key01-CfL5jY3W.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BIouwr8D.js → LinkExternal01-DAvzaXYE.js} +1 -1
- package/dist/client/assets/{List-iNTJ6fUY.js → List-sG42OZ_v.js} +1 -1
- package/dist/client/assets/{Loading01-BFMhWWtD.js → Loading01-BHMOj-H5.js} +1 -1
- package/dist/client/assets/{Lock01-C4Sc75k7.js → Lock01-CQ3bhGvR.js} +1 -1
- package/dist/client/assets/{Pin01-BE9Oh0sU.js → Pin01-8MTlfWD2.js} +1 -1
- package/dist/client/assets/{Play-gsrF7xxW.js → Play-APj1Lxit.js} +1 -1
- package/dist/client/assets/{Plus-Ck954sGm.js → Plus-DNqvDLOK.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-zTyzcouM.js → RefreshCcw01-4dzpBOob.js} +1 -1
- package/dist/client/assets/{RefreshCw01-DbiZ19Ml.js → RefreshCw01-DHXbMDcX.js} +1 -1
- package/dist/client/assets/{Rows03-B0JH9Ohl.js → Rows03-Cdgrgsit.js} +1 -1
- package/dist/client/assets/{Save01-CGYgsRh8.js → Save01-D-T2SbCx.js} +1 -1
- package/dist/client/assets/{SearchMd-Dvn1Eo76.js → SearchMd-BLcaRHQs.js} +1 -1
- package/dist/client/assets/{Settings01-CE-2gHzf.js → Settings01-DKXbh8uh.js} +1 -1
- package/dist/client/assets/{Shield01-BB8IGqoD.js → Shield01-B89AcbSX.js} +1 -1
- package/dist/client/assets/{Terminal-DQESGxaj.js → Terminal-BblMM2fp.js} +1 -1
- package/dist/client/assets/{Trash01-BC7PAlKV.js → Trash01-CkTOgej8.js} +1 -1
- package/dist/client/assets/{Upload01-CASznv9t.js → Upload01-gcuuVZ2S.js} +1 -1
- package/dist/client/assets/{Users03-DJ0q7ZN3.js → Users03-C1B58zTV.js} +1 -1
- package/dist/client/assets/{XCircle-JhpX2IQK.js → XCircle-DneNZUk0.js} +1 -1
- package/dist/client/assets/{XClose-Cpw_0BW6.js → XClose-Dgr_gyyv.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-Dhs8DGJ9.js → agent-connections-preview-Dq0jl9Fh.js} +1 -1
- package/dist/client/assets/{agent-detail-C8HmsASY.js → agent-detail-BNn3Uyo0.js} +1 -1
- package/dist/client/assets/{agents-BUO9Of5M.js → agents-BAZxaM_m.js} +1 -1
- package/dist/client/assets/alert-dialog-BvNipqK_.js +7 -0
- package/dist/client/assets/{auth-catchall-Cts5maQI.js → auth-catchall-BoSUXTLZ.js} +1 -1
- package/dist/client/assets/{avatar-BLu12sL5.js → avatar-BNKSN34R.js} +1 -1
- package/dist/client/assets/{badge-D4ZHiXFA.js → badge-Do8iK9u9.js} +1 -1
- package/dist/client/assets/{binder-BeV9Iq0g.js → binder-BBB8LQyx.js} +1 -1
- package/dist/client/assets/{breadcrumb-kQQ-d55s.js → breadcrumb-DeYbtjMk.js} +1 -1
- package/dist/client/assets/{button-BxOn_P7A.js → button-D6YZfFzy.js} +1 -1
- package/dist/client/assets/{card-DMS-g9Fe.js → card-BNyCnFpQ.js} +1 -1
- package/dist/client/assets/{chart-Dm5seKC_.js → chart--8-symKO.js} +1 -1
- package/dist/client/assets/{checkbox-QVK1EYTJ.js → checkbox-BZwARXIv.js} +1 -1
- package/dist/client/assets/{circle-alert-BGE5uKTO.js → circle-alert-YjViK8VE.js} +1 -1
- package/dist/client/assets/{collection-detail-BNuWQnMo.js → collection-detail-LkGK1rw-.js} +1 -1
- package/dist/client/assets/{collection-search-WzmN-NEH.js → collection-search-CBYSITVU.js} +1 -1
- package/dist/client/assets/{collection-tab-CqF7e-el.js → collection-tab-BrrYAQmN.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DpYYlIci.js → collection-table-wrapper-fNhnYl-G.js} +1 -1
- package/dist/client/assets/{collection-tabs-BzQ9gNkb.js → collection-tabs-D0bfkNrY.js} +1 -1
- package/dist/client/assets/{command-pJXSXf5S.js → command-Dt3t7o57.js} +1 -1
- package/dist/client/assets/{connect-DpHmbRge.js → connect-DPEGql6L.js} +1 -1
- package/dist/client/assets/{connection-card-CRsOF1KU.js → connection-card-Cwh5xUmA.js} +1 -1
- package/dist/client/assets/{connection-detail-B1dOB0AI.js → connection-detail-DgHwxZSJ.js} +1 -1
- package/dist/client/assets/{connections-EWXE105G.js → connections-D2AuzZXu.js} +1 -1
- package/dist/client/assets/{constants-9bKBT988.js → constants-8URKDp4Y.js} +1 -1
- package/dist/client/assets/constants-oXq_cTdm.js +1 -0
- package/dist/client/assets/{context-LmNUO0nU.js → context-DHicyHl4.js} +9 -9
- package/dist/client/assets/{create-organization-dialog-CuKocaBI.js → create-organization-dialog-Cb3EQpzl.js} +1 -1
- package/dist/client/assets/{create-project-dialog-heqHF5Xt.js → create-project-dialog-BjqZAjhY.js} +1 -1
- package/dist/client/assets/{deco-constants-YxoGHwHI.js → deco-constants-CyaJG-D1.js} +1 -1
- package/dist/client/assets/{dialog-8Qx5GCEw.js → dialog-DSPMVHyJ.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BbhseL--.js → dropdown-menu-CRT7qGQ9.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-Ch1QuglW.js → dynamic-plugin-layout-Dj3hkiA6.js} +1 -1
- package/dist/client/assets/{empty-state-CSzTWTZI.js → empty-state-BA6UkF4p.js} +1 -1
- package/dist/client/assets/{empty-state-C7VZap1W.js → empty-state-sMx3NP6e.js} +1 -1
- package/dist/client/assets/{env-vars-editor-C0KF8UB-.js → env-vars-editor-DuW-Il-b.js} +1 -1
- package/dist/client/assets/{error-boundary-BpCU-F5d.js → error-boundary-lFjWy2-n.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CLG2vt6G.js → extract-connection-data-B39uuFqG.js} +1 -1
- package/dist/client/assets/{file-browser-4BKj7MWu.js → file-browser-BIF8ssgw.js} +2 -2
- package/dist/client/assets/{form-Dn5Ilwyi.js → form-BMtUcs2k.js} +1 -1
- package/dist/client/assets/{grid-view-aIHLkNPN.js → grid-view-e1dnT7b5.js} +1 -1
- package/dist/client/assets/{home-md1YObTz.js → home-1A3rDo1n.js} +1 -1
- package/dist/client/assets/index-BMDGI420.css +1 -0
- package/dist/client/assets/{index-DlglR7Dv.js → index-B_nMIrSY.js} +1 -1
- package/dist/client/assets/{index-DdzAhdkZ.js → index-CCjxSJ1y.js} +1 -1
- package/dist/client/assets/{index-Du85XF43.js → index-CjGa0AXv.js} +1 -1
- package/dist/client/assets/{index-CWIKLTkS.js → index-DJ_LDW-E.js} +1 -1
- package/dist/client/assets/{index-BtVQ48XT.js → index-DmoBx0VC.js} +1 -1
- package/dist/client/assets/{index-ow5WSrzH.js → index-DnrfuViL.js} +1 -1
- package/dist/client/assets/{index-DQipirM0.js → index-DwBgLSti.js} +3 -3
- package/dist/client/assets/{index-CIUI9_Ip.js → index-QQ-XmLlG.js} +51 -51
- package/dist/client/assets/{infiniteQueryObserver-45WqMl59.js → infiniteQueryObserver-Yvt0ZTml.js} +1 -1
- package/dist/client/assets/{input-D3a40-af.js → input-B7id4I1j.js} +1 -1
- package/dist/client/assets/{integration-icon-6FQvxTss.js → integration-icon-qV_BsBQR.js} +1 -1
- package/dist/client/assets/{label-_-PuJzKE.js → label-29qY4FPs.js} +1 -1
- package/dist/client/assets/{layout-C5y_iFls.js → layout-Ck3H2-cu.js} +1 -1
- package/dist/client/assets/{localstorage-keys-Xr0m_-Nl.js → localstorage-keys-Ct4C992S.js} +1 -1
- package/dist/client/assets/{login-CGG5vJdW.js → login-DO8QasPa.js} +1 -1
- package/dist/client/assets/{markdown-DumqyZQo.js → markdown-jp5pFlBz.js} +1 -1
- package/dist/client/assets/{mcp-oauth-ZHptqU19.js → mcp-oauth-Bb9gvF4o.js} +1 -1
- package/dist/client/assets/{mcp-server-card-uS3QofMZ.js → mcp-server-card-D_Epc4aH.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-BKF_R4E0.js → mcp-server-detail-Dut9IDFd.js} +2 -2
- package/dist/client/assets/{members-BRSEA55l.js → members-4s3A4PQH.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-1EYxjqsS.js → monitoring-dashboard-edit-DyFCcJjq.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-B9ky_iuo.js → monitoring-dashboard-view-Bc4tCiDF.js} +1 -1
- package/dist/client/assets/{monitoring-ChGczzDH.js → monitoring-gEkChCwS.js} +1 -1
- package/dist/client/assets/{oauth-callback-DiCjOlTo.js → oauth-callback-tz7MTdrq.js} +1 -1
- package/dist/client/assets/page-YrzfNFn-.js +1 -0
- package/dist/client/assets/{page-Bd4vke_j.js → page-pkTyp5rB.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-3Ic2Cddr.js → plugin-empty-state-YsTdKC2B.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-B0aoDY0o.js → plugin-empty-state-dEbxXjO6.js} +1 -1
- package/dist/client/assets/{plugin-header-lqwqxxa8.js → plugin-header-Di-tZc0h.js} +1 -1
- package/dist/client/assets/{plugin-header-1MpH5dMN.js → plugin-header-Djvd0-eL.js} +1 -1
- package/dist/client/assets/{popover-O7pPZSal.js → popover-pjzQQlLd.js} +1 -1
- package/dist/client/assets/{project-layout-Dk2D-43Q.js → project-layout-Bp5s1iI1.js} +1 -1
- package/dist/client/assets/{projects-list-CApnnFAH.js → projects-list-DcozT0tR.js} +1 -1
- package/dist/client/assets/{ranking-layout-CB_f3cVs.js → ranking-layout-D3PvNfv7.js} +1 -1
- package/dist/client/assets/{readme-viewer-61IpnmPP.js → readme-viewer-BmO5RwRH.js} +1 -1
- package/dist/client/assets/{registry-layout-DGM76yIZ.js → registry-layout-DEN2jHtD.js} +1 -1
- package/dist/client/assets/{registry-utils-DSUIffwE.js → registry-utils-DMdc5PTp.js} +1 -1
- package/dist/client/assets/{reports-layout-BMSW5Pvz.js → reports-layout-DziFQRp_.js} +1 -1
- package/dist/client/assets/{reset-password-R313_uMV.js → reset-password-CrHLBBwi.js} +1 -1
- package/dist/client/assets/{resizable-Dz9Hl0cL.js → resizable-jXkpfiVS.js} +1 -1
- package/dist/client/assets/{save-actions-De5hNsxX.js → save-actions-BPg_8VMI.js} +1 -1
- package/dist/client/assets/{scroll-area-dZhjEr7K.js → scroll-area-CcejXaMp.js} +1 -1
- package/dist/client/assets/{select-BSYdCUMN.js → select-CkeKfTEx.js} +1 -1
- package/dist/client/assets/shell-layout-C4PQ301W.js +3 -0
- package/dist/client/assets/{skeleton-D-Lsp11A.js → skeleton-DNLZ4Kho.js} +1 -1
- package/dist/client/assets/{spinner-BL4ZMZYA.js → spinner-DZtD-MX0.js} +1 -1
- package/dist/client/assets/{store-invite-B0hYE1ZZ.js → store-invite-B_jz8YSY.js} +1 -1
- package/dist/client/assets/{switch-DyckCxcC.js → switch-DFKxfcc5.js} +1 -1
- package/dist/client/assets/{table-D0pFXKN4.js → table-Csfk_VXo.js} +1 -1
- package/dist/client/assets/{tasks-DPZywEmF.js → tasks-Dv2Dq-cV.js} +1 -1
- package/dist/client/assets/{textarea-DX9d61Sr.js → textarea-GWXLFYfv.js} +1 -1
- package/dist/client/assets/{time-range-picker-fngIp4Wo.js → time-range-picker-DnUGZRLa.js} +1 -1
- package/dist/client/assets/{toggle-group-Z0vsy7J4.js → toggle-group-CojJ3wZ4.js} +1 -1
- package/dist/client/assets/{tools-list-B0lut0n1.js → tools-list-BPGP3JUO.js} +1 -1
- package/dist/client/assets/{tooltip-B7RjBzxU.js → tooltip-D71dCz4E.js} +1 -1
- package/dist/client/assets/{topbar-portal-D44GN90b.js → topbar-portal-BKT0Es8i.js} +1 -1
- package/dist/client/assets/typewriter-title-DqLjhGgL.js +16 -0
- package/dist/client/assets/{use-binding-oEpPFbv0.js → use-binding-DbH4Xe03.js} +1 -1
- package/dist/client/assets/{use-connection-DXequUdB.js → use-connection-BEGrPCmR.js} +1 -1
- package/dist/client/assets/{use-copy-h8i-bDIZ.js → use-copy-DsHlaDHD.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DG-_igKD.js → use-create-virtual-mcp-BzTARjrD.js} +1 -1
- package/dist/client/assets/{use-deco-chat-open-BAG5m-JA.js → use-deco-chat-open-CxG3qwlT.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-BCGIZz8M.js → use-install-from-registry-CSDJ0ZgD.js} +1 -1
- package/dist/client/assets/{use-list-state-DjtYoYEW.js → use-list-state-DvpdPuz-.js} +1 -1
- package/dist/client/assets/{use-llm-DDqwpIPn.js → use-llm-BbYG_RIr.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CqOiamVC.js → use-mcp-prompts-qD8uHlkj.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Dt6WorDi.js → use-mcp-tools-BAsmCzEJ.js} +1 -1
- package/dist/client/assets/{use-mobile-CYG2M3Mj.js → use-mobile-Bs0AkxK7.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Db9DvZjz.js → use-organization-settings-BJ9tNAL9.js} +1 -1
- package/dist/client/assets/{use-project-x4-rNIeb.js → use-project-CXHCn5kp.js} +1 -1
- package/dist/client/assets/{use-settings-modal-D-E-U1i_.js → use-settings-modal-Dx8IF1Gs.js} +1 -1
- package/dist/client/assets/{use-view-mode-C5FzaFBT.js → use-view-mode-DMPiUC22.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Bq4iD2DN.js → use-virtual-mcp-DBzFAk7J.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DXQ7BtjQ.js +1 -0
- package/dist/client/assets/{useMutation-8rEyObWg.js → useMutation-DgG1LVg-.js} +1 -1
- package/dist/client/assets/useQuery-CPsXfVfR.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-CuH1Eku2.js +1 -0
- package/dist/client/assets/{view-mode-toggle-DumSmhPz.js → view-mode-toggle-2-qyK3LU.js} +1 -1
- package/dist/client/assets/{workflow-Nf6onDYr.js → workflow-YppA7Sxi.js} +1 -1
- package/dist/client/index.html +2 -2
- package/package.json +1 -1
- package/dist/client/assets/alert-dialog-K0UnFp_v.js +0 -7
- package/dist/client/assets/constants-CS_UcM7e.js +0 -1
- package/dist/client/assets/index-BpxApmrT.css +0 -1
- package/dist/client/assets/page-BqTRzB6R.js +0 -1
- package/dist/client/assets/shell-layout-CGTPLB_Q.js +0 -3
- package/dist/client/assets/typewriter-title-CkssIeLy.js +0 -16
- package/dist/client/assets/useInfiniteQuery-qwQj5SMK.js +0 -1
- package/dist/client/assets/useQuery-CqT-L2b-.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BKpm_7Fb.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as _,c as T,j as t,u as de,V as Je,s as Ze,t as ce,b as Qe,e as Xe,O as Ge,bx as et,l as tt,k as st,aD as lt,q as ot}from"./index-DQipirM0.js";import{u as nt}from"./context-LmNUO0nU.js";import{E as it}from"./empty-state-C7VZap1W.js";import{E as fe}from"./error-boundary-BpCU-F5d.js";import{I as ge}from"./integration-icon-6FQvxTss.js";import{I as rt,R as at,a as ct,P as dt}from"./index-ow5WSrzH.js";import{T as ve,a as Oe,b as mt,c as Ce,d as ut,i as ft,e as pt,u as xt,C as ht,f as gt}from"./use-deco-chat-open-BAG5m-JA.js";import{B as $e}from"./badge-D4ZHiXFA.js";import{B as J,c as ae}from"./button-BxOn_P7A.js";import{I as Me}from"./input-D3a40-af.js";import{S as jt}from"./switch-DyckCxcC.js";import{T as bt}from"./textarea-DX9d61Sr.js";import{a as pe,c as _e,T as xe,b as he}from"./tooltip-B7RjBzxU.js";import{h as Nt,f as yt}from"./use-connection-DXequUdB.js";import{u as vt,a as Ct}from"./use-virtual-mcp-Bq4iD2DN.js";import{i as He}from"./ChevronRight-dj0VUAfs.js";import{n as _t}from"./select-BSYdCUMN.js";import{i as De}from"./File02-BtCmWw9V.js";import{i as Le}from"./Loading01-BFMhWWtD.js";import{i as St}from"./Play-gsrF7xxW.js";import{s as Ve}from"./Plus-Ck954sGm.js";import{t as Tt}from"./Users03-DJ0q7ZN3.js";import{B as kt,a as wt,b as Be,d as Et,e as It,c as At}from"./breadcrumb-kQQ-d55s.js";import{a as Ot,V as $t}from"./layout-C5y_iFls.js";import{S as Dt}from"./save-actions-De5hNsxX.js";import{C as Lt}from"./collection-search-WzmN-NEH.js";import{a as zt}from"./tools-list-B0lut0n1.js";import{C as ze}from"./checkbox-QVK1EYTJ.js";import{e as Rt,a as Ue,D as Ke,b as Pt,c as Mt}from"./dialog-8Qx5GCEw.js";import{u as je,a as Vt}from"./constants-9bKBT988.js";import{c as Bt}from"./use-mcp-tools-Dt6WorDi.js";import{c as Ft,u as Gt}from"./use-mcp-prompts-CqOiamVC.js";import{i as Ht}from"./AlertTriangle-Cag6cydu.js";import{s as We}from"./slugify-CEUa2lfQ.js";import{i as be}from"./Check-BEIYk4IG.js";import{i as Ut}from"./Code01-DbWG3kai.js";import{a as Re}from"./Copy01-BpXeBtQY.js";import{i as Se}from"./InfoCircle-CHNw8w2I.js";import{i as Kt}from"./Key01-CBasGMu5.js";import{A as Wt}from"./agent-connections-preview-Dhs8DGJ9.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-DDqwpIPn.js";import"./use-binding-oEpPFbv0.js";import"./binder-BeV9Iq0g.js";import"./useQuery-CqT-L2b-.js";import"./localstorage-keys-Xr0m_-Nl.js";import"./useMutation-8rEyObWg.js";import"./skeleton-D-Lsp11A.js";import"./popover-O7pPZSal.js";import"./ChevronDown-DDsgD0_a.js";import"./File06-D2nPQ2vd.js";import"./Grid01-DDvgvRE8.js";import"./Image01-ToJS21L5.js";import"./RefreshCcw01-zTyzcouM.js";import"./SearchMd-Dvn1Eo76.js";import"./Settings01-CE-2gHzf.js";import"./useSuspenseInfiniteQuery-BKpm_7Fb.js";import"./infiniteQueryObserver-45WqMl59.js";import"./Container-BY7Dg1ME.js";import"./Pin01-BE9Oh0sU.js";import"./use-organization-settings-Db9DvZjz.js";import"./index-DlglR7Dv.js";import"./use-mobile-CYG2M3Mj.js";import"./Save01-CGYgsRh8.js";import"./collection-table-wrapper-DpYYlIci.js";import"./dropdown-menu-BbhseL--.js";import"./ArrowDown-BzwwIvol.js";import"./ArrowUp-lkpB-gsw.js";import"./List-iNTJ6fUY.js";import"./view-mode-toggle-DumSmhPz.js";import"./table-D0pFXKN4.js";import"./card-DMS-g9Fe.js";import"./Eye-D_CQVe6k.js";import"./Globe02-DXh1wFnz.js";import"./RefreshCw01-DbiZ19Ml.js";const Ye=({size:o=24,color:e="currentColor",...s})=>_.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},_.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));Ye.displayName="Circle";const Ne=({size:o=24,color:e="currentColor",...s})=>_.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},_.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"}));Ne.displayName="CubeOutline";const qe=({size:o=24,color:e="currentColor",...s})=>_.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},_.createElement("path",{d:"m12 5.5-4.638 6.747c-.28.406-.42.609-.41.778a.5.5 0 0 0 .195.373c.135.102.38.102.874.102H12v5l4.638-6.747c.28-.406.42-.609.41-.778a.5.5 0 0 0-.195-.373c-.135-.102-.38-.102-.874-.102H12v-5Z"}),_.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"}));qe.displayName="ZapCircle";function Te(o){return o===null?"all":o?.length??0}function Yt(o,e){const s=o[e];if(!s)return"";const i=[];return s.tools===null?i.push("all tools"):s.tools&&s.tools.length>0&&i.push(`${s.tools.length} tools`),s.resources===null?i.push("all resources"):s.resources&&s.resources.length>0&&i.push(`${s.resources.length} resources`),s.prompts===null?i.push("all prompts"):s.prompts&&s.prompts.length>0&&i.push(`${s.prompts.length} prompts`),i.join(", ")}function qt(o,e){const s=o[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 Jt={tools:null,resources:null,prompts:null};function ke(){const o=T.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex items-center justify-center h-32",children:t.jsx(Le,{className:"animate-spin text-muted-foreground",size:24})}),o[0]=e):e=o[0],e}function we(o){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:o})}):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(Ht,{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 Zt(o){const e=T.c(23),{item:s,isSelected:i,onToggle:l,disabled:n}=o,u=n?"cursor-not-allowed opacity-50":"cursor-pointer",r=i?"bg-accent/25":"hover:bg-muted/50";let a;e[0]!==u||e[1]!==r?(a=ae("flex items-start gap-3 p-4 rounded-lg transition-colors",u,r),e[0]=u,e[1]=r,e[2]=a):a=e[2];let d;e[3]!==s.name?(d=t.jsx("p",{className:"text-sm font-medium leading-none truncate",children:s.name}),e[3]=s.name,e[4]=d):d=e[4];let p;e[5]!==s.tags?(p=s.tags&&t.jsx("span",{className:"shrink-0",children:s.tags}),e[5]=s.tags,e[6]=p):p=e[6];let c;e[7]!==d||e[8]!==p?(c=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[d,p]}),e[7]=d,e[8]=p,e[9]=c):c=e[9];let h;e[10]!==s.description?(h=s.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:s.description}),e[10]=s.description,e[11]=h):h=e[11];let x;e[12]!==c||e[13]!==h?(x=t.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[c,h]}),e[12]=c,e[13]=h,e[14]=x):x=e[14];let f;e[15]!==n||e[16]!==i||e[17]!==l?(f=t.jsx(ze,{checked:i,onCheckedChange:l,disabled:n,className:"mt-0.5"}),e[15]=n,e[16]=i,e[17]=l,e[18]=f):f=e[18];let m;return e[19]!==a||e[20]!==x||e[21]!==f?(m=t.jsxs("label",{className:a,children:[x,f]}),e[19]=a,e[20]=x,e[21]=f,e[22]=m):m=e[22],m}function Pe(o){const e=T.c(32),{items:s,selections:i,onToggle:l,onToggleAll:n,emptyMessage:u,disabled:r}=o;let a,d,p,c,h;if(e[0]!==r||e[1]!==u||e[2]!==s||e[3]!==l||e[4]!==n||e[5]!==i){h=Symbol.for("react.early_return_sentinel");e:{const m=s.map(Qt);if(s.length===0){let C;e[11]!==u?(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:u})}),e[11]=u,e[12]=C):C=e[12],h=C;break e}p="flex flex-col h-full";const N=r?"cursor-not-allowed opacity-50":"cursor-pointer";let j;e[13]!==N?(j=ae("flex items-start gap-3 p-4",N),e[13]=N,e[14]=j):j=e[14];let b;e[15]!==s.length?(b=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]=b):b=e[16];const g=i===null;let v;e[17]!==r||e[18]!==n||e[19]!==g?(v=t.jsx(ze,{checked:g,onCheckedChange:n,disabled:r,className:"mt-0.5"}),e[17]=r,e[18]=n,e[19]=g,e[20]=v):v=e[20],e[21]!==v||e[22]!==j||e[23]!==b?(c=t.jsx("div",{className:"px-4 border-b border-border shrink-0",children:t.jsxs("label",{className:j,children:[b,v]})}),e[21]=v,e[22]=j,e[23]=b,e[24]=c):c=e[24],a="flex-1 overflow-auto px-4 py-3 space-y-1",d=s.map(C=>t.jsx(Zt,{item:C,isSelected:i===null||i?.includes(C.id),onToggle:()=>l(C.id,m),disabled:r},C.id))}e[0]=r,e[1]=u,e[2]=s,e[3]=l,e[4]=n,e[5]=i,e[6]=a,e[7]=d,e[8]=p,e[9]=c,e[10]=h}else a=e[6],d=e[7],p=e[8],c=e[9],h=e[10];if(h!==Symbol.for("react.early_return_sentinel"))return h;let x;e[25]!==a||e[26]!==d?(x=t.jsx("div",{className:a,children:d}),e[25]=a,e[26]=d,e[27]=x):x=e[27];let f;return e[28]!==p||e[29]!==c||e[30]!==x?(f=t.jsxs("div",{className:p,children:[c,x]}),e[28]=p,e[29]=c,e[30]=x,e[31]=f):f=e[31],f}function Qt(o){return o.id}function Xt(o){const e=T.c(13),{connectionId:s,selections:i,onToggle:l,onToggleAll:n,disabled:u}=o,{org:r}=de();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 d=je(a);let p;e[3]!==d?(p={client:d},e[3]=d,e[4]=p):p=e[4];const{data:c}=Bt(p);let h;e[5]!==c.tools?(h=c.tools.map(es),e[5]=c.tools,e[6]=h):h=e[6];const x=h;let f;return e[7]!==u||e[8]!==x||e[9]!==l||e[10]!==n||e[11]!==i?(f=t.jsx(Pe,{items:x,selections:i,onToggle:l,onToggleAll:n,emptyMessage:"No tools available",disabled:u}),e[7]=u,e[8]=x,e[9]=l,e[10]=n,e[11]=i,e[12]=f):f=e[12],f}function es(o){return{id:o.name,name:o.name,description:o.description,tags:t.jsx(zt,{annotations:o.annotations})}}function ts(o){const e=T.c(13),{connectionId:s,selections:i,onToggle:l,onToggleAll:n,disabled:u}=o,{org:r}=de();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 d=je(a);let p;e[3]!==d?(p={client:d},e[3]=d,e[4]=p):p=e[4];const{data:c}=Ft(p);let h;e[5]!==c.resources?(h=c.resources.map(ss),e[5]=c.resources,e[6]=h):h=e[6];const x=h;let f;return e[7]!==u||e[8]!==x||e[9]!==l||e[10]!==n||e[11]!==i?(f=t.jsx(Pe,{items:x,selections:i,onToggle:l,onToggleAll:n,emptyMessage:"No resources available",disabled:u}),e[7]=u,e[8]=x,e[9]=l,e[10]=n,e[11]=i,e[12]=f):f=e[12],f}function ss(o){return{id:o.name||o.uri,name:o.name||o.uri,description:o.description}}function ls(o){const e=T.c(13),{connectionId:s,selections:i,onToggle:l,onToggleAll:n,disabled:u}=o,{org:r}=de();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 d=je(a);let p;e[3]!==d?(p={client:d},e[3]=d,e[4]=p):p=e[4];const{data:c}=Gt(p);let h;e[5]!==c.prompts?(h=c.prompts.map(os),e[5]=c.prompts,e[6]=h):h=e[6];const x=h;let f;return e[7]!==u||e[8]!==x||e[9]!==l||e[10]!==n||e[11]!==i?(f=t.jsx(Pe,{items:x,selections:i,onToggle:l,onToggleAll:n,emptyMessage:"No prompts available",disabled:u}),e[7]=u,e[8]=x,e[9]=l,e[10]=n,e[11]=i,e[12]=f):f=e[12],f}function os(o){return{id:o.name,name:o.name,description:o.description}}function ns(o){const e=T.c(24),{connection:s,isSelected:i,hasSelections:l,summary:n,onClick:u,onToggleAll:r,disabled:a}=o,d=a?"cursor-not-allowed opacity-50":"cursor-pointer",p=i?"bg-accent":"hover:bg-muted/50";let c;e[0]!==d||e[1]!==p?(c=ae("flex items-center gap-2 p-2 h-12 rounded-lg transition-colors",d,p),e[0]=d,e[1]=p,e[2]=c):c=e[2];const h=a?void 0:u;let x;e[3]!==s.icon||e[4]!==s.title?(x=t.jsx(ge,{icon:s.icon,name:s.title,size:"xs",className:"shrink-0"}),e[3]=s.icon,e[4]=s.title,e[5]=x):x=e[5];let f;e[6]!==s.title?(f=t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[6]=s.title,e[7]=f):f=e[7];let m;e[8]!==l||e[9]!==n?(m=l&&n&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:n}),e[8]=l,e[9]=n,e[10]=m):m=e[10];let N;e[11]!==f||e[12]!==m?(N=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[f,m]}),e[11]=f,e[12]=m,e[13]=N):N=e[13];let j;e[14]!==a||e[15]!==l||e[16]!==r?(j=t.jsx(ze,{checked:l,onCheckedChange:r,onClick:is,disabled:a,className:"shrink-0"}),e[14]=a,e[15]=l,e[16]=r,e[17]=j):j=e[17];let b;return e[18]!==c||e[19]!==h||e[20]!==x||e[21]!==N||e[22]!==j?(b=t.jsxs("div",{className:c,onClick:h,children:[x,N,j]}),e[18]=c,e[19]=h,e[20]=x,e[21]=N,e[22]=j,e[23]=b):b=e[23],b}function is(o){return o.stopPropagation()}function rs(o){const e=T.c(22),{allConnections:s,searchTerm:i,selectedId:l,hasSelections:n,getSelectionSummary:u,onConnectionClick:r,onToggleAll:a,disabled:d}=o;let p;e[0]!==s||e[1]!==i?(p=i?s.filter(f=>f.title.toLowerCase().includes(i.toLowerCase())||f.description?.toLowerCase().includes(i.toLowerCase())):s,e[0]=s,e[1]=i,e[2]=p):p=e[2];const c=p;if(c.length===0){const f=i?"No connections found":"No connections available";let m;return e[3]!==f?(m=t.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground p-4",children:f}),e[3]=f,e[4]=m):m=e[4],m}let h;if(e[5]!==d||e[6]!==c||e[7]!==u||e[8]!==n||e[9]!==r||e[10]!==a||e[11]!==l){let f;e[13]!==d||e[14]!==u||e[15]!==n||e[16]!==r||e[17]!==a||e[18]!==l?(f=m=>t.jsx(ns,{connection:m,isSelected:l===m.id,hasSelections:n(m.id),summary:u(m.id),onClick:()=>r(m.id),onToggleAll:()=>a(m.id),disabled:d},m.id),e[13]=d,e[14]=u,e[15]=n,e[16]=r,e[17]=a,e[18]=l,e[19]=f):f=e[19],h=c.map(f),e[5]=d,e[6]=c,e[7]=u,e[8]=n,e[9]=r,e[10]=a,e[11]=l,e[12]=h}else h=e[12];let x;return e[20]!==h?(x=t.jsx("div",{className:"flex flex-col gap-0.5",children:h}),e[20]=h,e[21]=x):x=e[21],x}function as(o){const e=T.c(75),{currentConnection:s,activeTab:i,selectedId:l,formData:n,toggleTool:u,toggleResource:r,togglePrompt:a,toggleAllTools:d,toggleAllResources:p,toggleAllPrompts:c,onTabChange:h}=o;let x;e[0]!==s.icon||e[1]!==s.title?(x=t.jsx(ge,{icon:s.icon,name:s.title,size:"md",className:"shrink-0"}),e[0]=s.icon,e[1]=s.title,e[2]=x):x=e[2];let f;e[3]!==s.title?(f=t.jsx("h2",{className:"text-lg font-semibold truncate",children:s.title}),e[3]=s.title,e[4]=f):f=e[4];let m;e[5]!==s.description?(m=s.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:s.description}),e[5]=s.description,e[6]=m):m=e[6];let N;e[7]!==f||e[8]!==m?(N=t.jsxs("div",{className:"flex-1 min-w-0",children:[f,m]}),e[7]=f,e[8]=m,e[9]=N):N=e[9];let j;e[10]!==x||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:[x,N]})}),e[10]=x,e[11]=N,e[12]=j):j=e[12];let b;e[13]!==h?(b=G=>h(G),e[13]=h,e[14]=b):b=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsxs(ve,{value:"tools",variant:"underline",className:"gap-2",children:[t.jsx(Oe,{size:16}),"Tools"]}),e[15]=g):g=e[15];let v;e[16]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsxs(ve,{value:"resources",variant:"underline",className:"gap-2",children:[t.jsx(Ne,{size:16}),"Resources"]}),e[16]=v):v=e[16];let C;e[17]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsxs(mt,{variant:"underline",className:"shrink-0 px-6",children:[g,v,t.jsxs(ve,{value:"prompts",variant:"underline",className:"gap-2",children:[t.jsx(De,{size:16}),"Prompts"]})]}),e[17]=C):C=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 k;e[19]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(ke,{}),e[19]=k):k=e[19];let $;e[20]!==n||e[21]!==l?($=n[l]?n[l].tools:[],e[20]=n,e[21]=l,e[22]=$):$=e[22];let S;e[23]!==l||e[24]!==u?(S=(G,Z)=>u(l,G,Z),e[23]=l,e[24]=u,e[25]=S):S=e[25];let w;e[26]!==l||e[27]!==d?(w=()=>d(l),e[26]=l,e[27]=d,e[28]=w):w=e[28];let A;e[29]!==l||e[30]!==$||e[31]!==S||e[32]!==w?(A=t.jsx(Ce,{value:"tools",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:P,children:t.jsx(_.Suspense,{fallback:k,children:t.jsx(Xt,{connectionId:l,selections:$,onToggle:S,onToggleAll:w})})})}),e[29]=l,e[30]=$,e[31]=S,e[32]=w,e[33]=A):A=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(ke,{}),e[35]=z):z=e[35];let E;e[36]!==n||e[37]!==l?(E=n[l]?n[l].resources:[],e[36]=n,e[37]=l,e[38]=E):E=e[38];let R;e[39]!==l||e[40]!==r?(R=(G,Z)=>r(l,G,Z),e[39]=l,e[40]=r,e[41]=R):R=e[41];let I;e[42]!==l||e[43]!==p?(I=()=>p(l),e[42]=l,e[43]=p,e[44]=I):I=e[44];let O;e[45]!==l||e[46]!==E||e[47]!==R||e[48]!==I?(O=t.jsx(Ce,{value:"resources",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:D,children:t.jsx(_.Suspense,{fallback:z,children:t.jsx(ts,{connectionId:l,selections:E,onToggle:R,onToggleAll:I})})})}),e[45]=l,e[46]=E,e[47]=R,e[48]=I,e[49]=O):O=e[49];let M;e[50]===Symbol.for("react.memo_cache_sentinel")?(M=we("Prompts not supported by this server"),e[50]=M):M=e[50];let V;e[51]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(ke,{}),e[51]=V):V=e[51];let H;e[52]!==n||e[53]!==l?(H=n[l]?n[l].prompts:[],e[52]=n,e[53]=l,e[54]=H):H=e[54];let Y;e[55]!==l||e[56]!==a?(Y=(G,Z)=>a(l,G,Z),e[55]=l,e[56]=a,e[57]=Y):Y=e[57];let U;e[58]!==l||e[59]!==c?(U=()=>c(l),e[58]=l,e[59]=c,e[60]=U):U=e[60];let q;e[61]!==l||e[62]!==H||e[63]!==Y||e[64]!==U?(q=t.jsx(Ce,{value:"prompts",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:M,children:t.jsx(_.Suspense,{fallback:V,children:t.jsx(ls,{connectionId:l,selections:H,onToggle:Y,onToggleAll:U})})})}),e[61]=l,e[62]=H,e[63]=Y,e[64]=U,e[65]=q):q=e[65];let K;e[66]!==i||e[67]!==A||e[68]!==O||e[69]!==q||e[70]!==b?(K=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:t.jsxs(ut,{value:i,onValueChange:b,variant:"underline",className:"flex-1 flex flex-col overflow-hidden",children:[C,A,O,q]})}),e[66]=i,e[67]=A,e[68]=O,e[69]=q,e[70]=b,e[71]=K):K=e[71];let W;return e[72]!==K||e[73]!==j?(W=t.jsxs(t.Fragment,{children:[j,K]}),e[72]=K,e[73]=j,e[74]=W):W=e[74],W}function cs(o){const e={};for(const s of o)e[s.connection_id]={tools:s.selected_tools,resources:s.selected_resources??null,prompts:s.selected_prompts??null};return e}function Ee(o){return Object.entries(o).map(([e,s])=>({connection_id:e,selected_tools:s.tools,selected_resources:s.resources,selected_prompts:s.prompts}))}function ds(o,e){switch(e.type){case"SET_SEARCH_TERM":return{...o,searchTerm:e.payload};case"SET_SELECTED":return{...o,selectedId:e.payload};case"SET_ACTIVE_TAB":return{...o,activeTab:e.payload};case"RESET":return{searchTerm:"",selectedId:e.payload.selectedId??e.payload.firstConnectionId??null,activeTab:"tools"};case"SELECT_CONNECTION":return{...o,selectedId:e.payload,activeTab:"tools"};default:return o}}const Fe=(o,e)=>o.find(s=>s.id===e)??o[0];function ms(o){const e=T.c(79),{open:s,onOpenChange:i,selectedId:l,form:n,connections:u}=o;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={},e[0]=r):r=e[0];const a=Nt(r);let d;e[1]!==a||e[2]!==l?(d=Fe(a,l)?.id??null,e[1]=a,e[2]=l,e[3]=d):d=e[3];let p;e[4]!==d?(p={activeTab:"tools",searchTerm:"",selectedId:d},e[4]=d,e[5]=p):p=e[5];const[c,h]=_.useReducer(ds,p);let x;e[6]!==u?(x=u??[],e[6]=u,e[7]=x):x=e[7];let f;e[8]!==x?(f=cs(x),e[8]=x,e[9]=f):f=e[9];const m=f;let N;e[10]!==a||e[11]!==c.selectedId?(N=Fe(a,c.selectedId),e[10]=a,e[11]=c.selectedId,e[12]=N):N=e[12];const j=N;let b;e[13]!==m?(b=y=>qt(m,y),e[13]=m,e[14]=b):b=e[14];const g=b;let v;e[15]!==m?(v=y=>Yt(m,y),e[15]=m,e[16]=v):v=e[16];const C=v;let P;e[17]!==n||e[18]!==m?(P=(y,L,B,Q)=>{const ie=m[y]?.[L];let F;ie===null?F=Q.filter(ye=>ye!==B):ie?.includes(B)?F=ie.filter(ye=>ye!==B):(F=[...ie??[],B],F.length===Q.length&&(F=null));const re={...m};re[y]?re[y]={...re[y]}:re[y]={tools:null,resources:null,prompts:null},re[y][L]=F,n.setValue("connections",Ee(re),{shouldDirty:!0,shouldTouch:!0})},e[17]=n,e[18]=m,e[19]=P):P=e[19];const k=P;let $;e[20]!==n||e[21]!==m?($=(y,L)=>{const ie=m[y]?.[L]===null?[]:null,F={...m};F[y]?F[y]={...F[y]}:F[y]={tools:null,resources:null,prompts:null},F[y][L]=ie,n.setValue("connections",Ee(F),{shouldDirty:!0,shouldTouch:!0})},e[20]=n,e[21]=m,e[22]=$):$=e[22];const S=$;let w;e[23]!==k?(w=(y,L,B)=>k(y,"tools",L,B),e[23]=k,e[24]=w):w=e[24];const A=w;let D;e[25]!==k?(D=(y,L,B)=>k(y,"resources",L,B),e[25]=k,e[26]=D):D=e[26];const z=D;let E;e[27]!==k?(E=(y,L,B)=>k(y,"prompts",L,B),e[27]=k,e[28]=E):E=e[28];const R=E;let I;e[29]!==S?(I=y=>S(y,"tools"),e[29]=S,e[30]=I):I=e[30];const O=I;let M;e[31]!==S?(M=y=>S(y,"resources"),e[31]=S,e[32]=M):M=e[32];const V=M;let H;e[33]!==S?(H=y=>S(y,"prompts"),e[33]=S,e[34]=H):H=e[34];const Y=H;let U;e[35]!==n||e[36]!==m?(U=y=>{const L=m[y],B=L&&L.tools===null&&L.resources===null&&L.prompts===null,Q={...m};B?delete Q[y]:Q[y]=Jt,n.setValue("connections",Ee(Q),{shouldDirty:!0,shouldTouch:!0})},e[35]=n,e[36]=m,e[37]=U):U=e[37];const q=U;let K;e[38]!==a||e[39]!==i||e[40]!==l?(K=y=>{y&&h({type:"RESET",payload:{selectedId:l,firstConnectionId:a[0]?.id??null}}),i(y)},e[38]=a,e[39]=i,e[40]=l,e[41]=K):K=e[41];const W=K;let G;e[42]===Symbol.for("react.memo_cache_sentinel")?(G=y=>{h({type:"SELECT_CONNECTION",payload:y})},e[42]=G):G=e[42];const Z=G;let me;e[43]===Symbol.for("react.memo_cache_sentinel")?(me=y=>h({type:"SET_SEARCH_TERM",payload:y}),e[43]=me):me=e[43];let X;e[44]!==c.searchTerm?(X=t.jsx(Lt,{value:c.searchTerm,onChange:me,placeholder:"Search connections..."}),e[44]=c.searchTerm,e[45]=X):X=e[45];let ee;e[46]!==a||e[47]!==c.searchTerm||e[48]!==c.selectedId||e[49]!==C||e[50]!==g||e[51]!==q?(ee=t.jsx("div",{className:"flex-1 overflow-auto p-2",children:t.jsx(rs,{allConnections:a,searchTerm:c.searchTerm,selectedId:c.selectedId,hasSelections:g,getSelectionSummary:C,onConnectionClick:Z,onToggleAll:q})}),e[46]=a,e[47]=c.searchTerm,e[48]=c.selectedId,e[49]=C,e[50]=g,e[51]=q,e[52]=ee):ee=e[52];let te;e[53]!==X||e[54]!==ee?(te=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:[X,ee]}),e[53]=X,e[54]=ee,e[55]=te):te=e[55];let se;e[56]!==j||e[57]!==c.activeTab||e[58]!==c.selectedId||e[59]!==m||e[60]!==Y||e[61]!==V||e[62]!==O||e[63]!==R||e[64]!==z||e[65]!==A?(se=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:j&&c.selectedId?t.jsx(as,{currentConnection:j,activeTab:c.activeTab,selectedId:c.selectedId,formData:m,toggleTool:A,toggleResource:z,togglePrompt:R,toggleAllTools:O,toggleAllResources:V,toggleAllPrompts:Y,onTabChange:y=>h({type:"SET_ACTIVE_TAB",payload:y})},c.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]=c.activeTab,e[58]=c.selectedId,e[59]=m,e[60]=Y,e[61]=V,e[62]=O,e[63]=R,e[64]=z,e[65]=A,e[66]=se):se=e[66];let le;e[67]!==te||e[68]!==se?(le=t.jsxs("div",{className:"flex-1 flex overflow-hidden min-h-0 flex-col sm:flex-row",children:[te,se]}),e[67]=te,e[68]=se,e[69]=le):le=e[69];let oe;e[70]!==W?(oe=t.jsx(Rt,{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]=oe):oe=e[71];let ne;e[72]!==le||e[73]!==oe?(ne=t.jsxs(Ue,{className:"sm:max-w-5xl h-[80vh] max-h-[80vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[le,oe]}),e[72]=le,e[73]=oe,e[74]=ne):ne=e[74];let ue;return e[75]!==W||e[76]!==s||e[77]!==ne?(ue=t.jsx(Ke,{open:s,onOpenChange:W,children:ne}),e[75]=W,e[76]=s,e[77]=ne,e[78]=ue):ue=e[78],ue}const us=Je.pick({title:!0,description:!0,status:!0,metadata:!0,connections:!0}).extend({title:Ze().min(1,"Name is required").max(255)});function fs(o){const e=T.c(8);let s,i;e[0]!==o?({className:s,...i}=o,e[0]=o,e[1]=s,e[2]=i):(s=e[1],i=e[2]);let l;e[3]!==s?(l=ae("grid gap-3",s),e[3]=s,e[4]=l):l=e[4];let n;return e[5]!==i||e[6]!==l?(n=t.jsx(at,{"data-slot":"radio-group",className:l,...i}),e[5]=i,e[6]=l,e[7]=n):n=e[7],n}function Ie(o){const e=T.c(9);let s,i;e[0]!==o?({className:s,...i}=o,e[0]=o,e[1]=s,e[2]=i):(s=e[1],i=e[2]);let l;e[3]!==s?(l=ae("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]=l):l=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(ct,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:t.jsx(Ye,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})}),e[5]=n):n=e[5];let u;return e[6]!==i||e[7]!==l?(u=t.jsx(rt,{"data-slot":"radio-group-item",className:l,...i,children:n}),e[6]=i,e[7]=l,e[8]=u):u=e[8],u}function ps(o){const s=new TextEncoder().encode(o),i=Array.from(s,l=>String.fromCharCode(l)).join("");return btoa(i)}function xs(o){const e=T.c(10),{url:s}=o,[i,l]=_.useState(!1);let n;e[0]!==s?(n=async()=>{await navigator.clipboard.writeText(s),l(!0),ce.success("Agent URL copied to clipboard"),setTimeout(()=>l(!1),2e3)},e[0]=s,e[1]=n):n=e[1];const u=n;let r;e[2]!==i?(r=i?t.jsx(be,{size:20,className:"text-green-600"}):t.jsx(Re,{size:20}),e[2]=i,e[3]=r):r=e[3];const a=i?"Copied!":"Copy URL";let d;e[4]!==a?(d=t.jsx("span",{className:"text-xs font-medium",children:a}),e[4]=a,e[5]=d):d=e[5];let p;return e[6]!==u||e[7]!==r||e[8]!==d?(p=t.jsxs(J,{type:"button",variant:"outline",onClick:u,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[r,d]}),e[6]=u,e[7]=r,e[8]=d,e[9]=p):p=e[9],p}function hs(o){const e=T.c(7),{url:s,serverName:i}=o;let l;e[0]!==i||e[1]!==s?(l=()=>{const d=We(i),c=ps(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),h=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(d)}&config=${encodeURIComponent(c)}`;window.open(h,"_blank"),ce.success("Opening Cursor...")},e[0]=i,e[1]=s,e[2]=l):l=e[2];const n=l;let u,r;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=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]=u,e[4]=r):(u=e[3],r=e[4]);let a;return e[5]!==n?(a=t.jsxs(J,{type:"button",variant:"outline",onClick:n,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[u,r]}),e[5]=n,e[6]=a):a=e[6],a}function gs(o){const e=T.c(11),{url:s,serverName:i}=o,[l,n]=_.useState(!1);let u;e[0]!==i||e[1]!==s?(u=async()=>{const h=We(i),f=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),m=`claude mcp add-json "${h}" '${f.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(m),n(!0),ce.success("Claude Code command copied to clipboard"),setTimeout(()=>n(!1),2e3)},e[0]=i,e[1]=s,e[2]=u):u=e[2];const r=u;let a;e[3]!==l?(a=l?t.jsx(be,{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]=l,e[4]=a):a=e[4];const d=l?"Copied!":"Install on Claude";let p;e[5]!==d?(p=t.jsx("span",{className:"text-xs font-medium",children:d}),e[5]=d,e[6]=p):p=e[6];let c;return e[7]!==r||e[8]!==a||e[9]!==p?(c=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,p]}),e[7]=r,e[8]=a,e[9]=p,e[10]=c):c=e[10],c}function js({virtualMcp:o}){const{org:e}=de(),s=je({connectionId:Vt,orgId:e.id}),[i,l]=_.useState(null),[n,u]=_.useState(!1),[r,a]=_.useState(!1),d=o.id,p=o.title||`agent-${d.slice(0,8)}`,c=i?`bunx @decocms/typegen@latest --mcp ${d} --key ${i} --output client.ts`:`bunx @decocms/typegen@latest --mcp ${d} --key <api-key> --output client.ts`,h=async()=>{u(!0);try{const m=(await s.callTool({name:"API_KEY_CREATE",arguments:{name:`typegen-${p}`,permissions:{[d]:["*"]}}})).structuredContent?.key;if(!m)throw new Error("No key in response");l(m)}catch{ce.error("Failed to generate API key")}finally{u(!1)}},x=async()=>{await navigator.clipboard.writeText(c),a(!0),ce.success("Command copied to clipboard"),setTimeout(()=>a(!1),2e3)};return t.jsxs("div",{className:"flex min-w-0 flex-col gap-3",children:[t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("h4",{className:"text-sm font-medium text-foreground",children:"Generate typed client"}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:["Introspects this agent and writes a typed"," ",t.jsx("code",{className:"font-mono",children:"client.ts"})," you can import directly."]})]}),!i&&t.jsxs(J,{type:"button",variant:"outline",size:"sm",className:"shrink-0 gap-1.5",onClick:h,disabled:n,children:[n?t.jsx(Le,{size:14,className:"animate-spin"}):t.jsx(Kt,{size:14}),t.jsx("span",{children:n?"Generating…":"Generate API key"})]})]}),i&&t.jsx("p",{className:"rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-xs text-amber-700",children:"Store this key securely — it won't be shown again."}),t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Generate client"}),t.jsx("div",{className:"rounded-md border border-input bg-muted/50 px-3 py-2.5",children:t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsx("code",{className:"min-w-0 flex-1 break-all font-mono text-xs text-muted-foreground",children:c}),t.jsx(J,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:x,children:r?t.jsx(be,{size:12,className:"text-green-600"}):t.jsx(Re,{size:12})})]})}),t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Runtime variables"}),t.jsx(bs,{apiKey:i})]})}function bs(o){const e=T.c(19),{apiKey:s}=o,[i,l]=_.useState(!1),n=window.location.origin,u=s?`MESH_API_KEY=${s}`:"MESH_API_KEY=<api-key>",r=`MESH_BASE_URL=${n}`,a=`${u}
|
|
1
|
+
import{r as _,c as T,j as t,u as de,V as Je,s as Ze,t as ce,b as Qe,e as Xe,O as Ge,by as et,l as tt,k as st,aE as lt,q as ot}from"./index-DwBgLSti.js";import{u as nt}from"./context-DHicyHl4.js";import{E as it}from"./empty-state-sMx3NP6e.js";import{E as fe}from"./error-boundary-lFjWy2-n.js";import{I as ge}from"./integration-icon-qV_BsBQR.js";import{I as rt,R as at,a as ct,P as dt}from"./index-DnrfuViL.js";import{T as ve,a as Oe,b as mt,c as Ce,d as ut,i as ft,e as pt,u as xt,C as ht,f as gt}from"./use-deco-chat-open-CxG3qwlT.js";import{B as $e}from"./badge-Do8iK9u9.js";import{B as J,c as ae}from"./button-D6YZfFzy.js";import{I as Me}from"./input-B7id4I1j.js";import{S as jt}from"./switch-DFKxfcc5.js";import{T as bt}from"./textarea-GWXLFYfv.js";import{a as pe,c as _e,T as xe,b as he}from"./tooltip-D71dCz4E.js";import{h as Nt,f as yt}from"./use-connection-BEGrPCmR.js";import{u as vt,a as Ct}from"./use-virtual-mcp-DBzFAk7J.js";import{i as He}from"./ChevronRight-DgAfR8pA.js";import{n as _t}from"./select-CkeKfTEx.js";import{i as De}from"./File02-B2t2I1sM.js";import{i as Le}from"./Loading01-BHMOj-H5.js";import{i as St}from"./Play-APj1Lxit.js";import{s as Ve}from"./Plus-DNqvDLOK.js";import{t as Tt}from"./Users03-C1B58zTV.js";import{B as kt,a as wt,b as Be,d as Et,e as It,c as At}from"./breadcrumb-DeYbtjMk.js";import{a as Ot,V as $t}from"./layout-Ck3H2-cu.js";import{S as Dt}from"./save-actions-BPg_8VMI.js";import{C as Lt}from"./collection-search-CBYSITVU.js";import{a as zt}from"./tools-list-BPGP3JUO.js";import{C as ze}from"./checkbox-BZwARXIv.js";import{e as Rt,a as Ue,D as Ke,b as Pt,c as Mt}from"./dialog-DSPMVHyJ.js";import{u as je,a as Vt}from"./constants-8URKDp4Y.js";import{c as Bt}from"./use-mcp-tools-BAsmCzEJ.js";import{c as Ft,u as Gt}from"./use-mcp-prompts-qD8uHlkj.js";import{i as Ht}from"./AlertTriangle-DniGvpwb.js";import{s as We}from"./slugify-CEUa2lfQ.js";import{i as be}from"./Check-Bv0pZ3gl.js";import{i as Ut}from"./Code01-DP2jwP0n.js";import{a as Re}from"./Copy01-Dq7Edhtu.js";import{i as Se}from"./InfoCircle-DBbArWGV.js";import{i as Kt}from"./Key01-CfL5jY3W.js";import{A as Wt}from"./agent-connections-preview-Dq0jl9Fh.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-BbYG_RIr.js";import"./use-binding-DbH4Xe03.js";import"./binder-BBB8LQyx.js";import"./useQuery-CPsXfVfR.js";import"./localstorage-keys-Ct4C992S.js";import"./useMutation-DgG1LVg-.js";import"./skeleton-DNLZ4Kho.js";import"./popover-pjzQQlLd.js";import"./ChevronDown-CggIFEVQ.js";import"./File06-2US99J_V.js";import"./Grid01-CJW4ZLO5.js";import"./Image01-C9h8llDV.js";import"./RefreshCcw01-4dzpBOob.js";import"./SearchMd-BLcaRHQs.js";import"./Settings01-DKXbh8uh.js";import"./useSuspenseInfiniteQuery-CuH1Eku2.js";import"./infiniteQueryObserver-Yvt0ZTml.js";import"./Container-jfv9L6Hc.js";import"./Pin01-8MTlfWD2.js";import"./use-organization-settings-BJ9tNAL9.js";import"./index-B_nMIrSY.js";import"./use-mobile-Bs0AkxK7.js";import"./Save01-D-T2SbCx.js";import"./collection-table-wrapper-fNhnYl-G.js";import"./dropdown-menu-CRT7qGQ9.js";import"./ArrowDown-B35oswmj.js";import"./ArrowUp-G8RCE5_O.js";import"./List-sG42OZ_v.js";import"./view-mode-toggle-2-qyK3LU.js";import"./table-Csfk_VXo.js";import"./card-BNyCnFpQ.js";import"./Eye-B9ZDOUkE.js";import"./Globe02-BPmEw10H.js";import"./RefreshCw01-DHXbMDcX.js";const Ye=({size:o=24,color:e="currentColor",...s})=>_.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},_.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));Ye.displayName="Circle";const Ne=({size:o=24,color:e="currentColor",...s})=>_.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},_.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"}));Ne.displayName="CubeOutline";const qe=({size:o=24,color:e="currentColor",...s})=>_.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},_.createElement("path",{d:"m12 5.5-4.638 6.747c-.28.406-.42.609-.41.778a.5.5 0 0 0 .195.373c.135.102.38.102.874.102H12v5l4.638-6.747c.28-.406.42-.609.41-.778a.5.5 0 0 0-.195-.373c-.135-.102-.38-.102-.874-.102H12v-5Z"}),_.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"}));qe.displayName="ZapCircle";function Te(o){return o===null?"all":o?.length??0}function Yt(o,e){const s=o[e];if(!s)return"";const i=[];return s.tools===null?i.push("all tools"):s.tools&&s.tools.length>0&&i.push(`${s.tools.length} tools`),s.resources===null?i.push("all resources"):s.resources&&s.resources.length>0&&i.push(`${s.resources.length} resources`),s.prompts===null?i.push("all prompts"):s.prompts&&s.prompts.length>0&&i.push(`${s.prompts.length} prompts`),i.join(", ")}function qt(o,e){const s=o[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 Jt={tools:null,resources:null,prompts:null};function ke(){const o=T.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex items-center justify-center h-32",children:t.jsx(Le,{className:"animate-spin text-muted-foreground",size:24})}),o[0]=e):e=o[0],e}function we(o){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:o})}):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(Ht,{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 Zt(o){const e=T.c(23),{item:s,isSelected:i,onToggle:l,disabled:n}=o,u=n?"cursor-not-allowed opacity-50":"cursor-pointer",r=i?"bg-accent/25":"hover:bg-muted/50";let a;e[0]!==u||e[1]!==r?(a=ae("flex items-start gap-3 p-4 rounded-lg transition-colors",u,r),e[0]=u,e[1]=r,e[2]=a):a=e[2];let d;e[3]!==s.name?(d=t.jsx("p",{className:"text-sm font-medium leading-none truncate",children:s.name}),e[3]=s.name,e[4]=d):d=e[4];let p;e[5]!==s.tags?(p=s.tags&&t.jsx("span",{className:"shrink-0",children:s.tags}),e[5]=s.tags,e[6]=p):p=e[6];let c;e[7]!==d||e[8]!==p?(c=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[d,p]}),e[7]=d,e[8]=p,e[9]=c):c=e[9];let h;e[10]!==s.description?(h=s.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:s.description}),e[10]=s.description,e[11]=h):h=e[11];let x;e[12]!==c||e[13]!==h?(x=t.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[c,h]}),e[12]=c,e[13]=h,e[14]=x):x=e[14];let f;e[15]!==n||e[16]!==i||e[17]!==l?(f=t.jsx(ze,{checked:i,onCheckedChange:l,disabled:n,className:"mt-0.5"}),e[15]=n,e[16]=i,e[17]=l,e[18]=f):f=e[18];let m;return e[19]!==a||e[20]!==x||e[21]!==f?(m=t.jsxs("label",{className:a,children:[x,f]}),e[19]=a,e[20]=x,e[21]=f,e[22]=m):m=e[22],m}function Pe(o){const e=T.c(32),{items:s,selections:i,onToggle:l,onToggleAll:n,emptyMessage:u,disabled:r}=o;let a,d,p,c,h;if(e[0]!==r||e[1]!==u||e[2]!==s||e[3]!==l||e[4]!==n||e[5]!==i){h=Symbol.for("react.early_return_sentinel");e:{const m=s.map(Qt);if(s.length===0){let C;e[11]!==u?(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:u})}),e[11]=u,e[12]=C):C=e[12],h=C;break e}p="flex flex-col h-full";const N=r?"cursor-not-allowed opacity-50":"cursor-pointer";let j;e[13]!==N?(j=ae("flex items-start gap-3 p-4",N),e[13]=N,e[14]=j):j=e[14];let b;e[15]!==s.length?(b=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]=b):b=e[16];const g=i===null;let v;e[17]!==r||e[18]!==n||e[19]!==g?(v=t.jsx(ze,{checked:g,onCheckedChange:n,disabled:r,className:"mt-0.5"}),e[17]=r,e[18]=n,e[19]=g,e[20]=v):v=e[20],e[21]!==v||e[22]!==j||e[23]!==b?(c=t.jsx("div",{className:"px-4 border-b border-border shrink-0",children:t.jsxs("label",{className:j,children:[b,v]})}),e[21]=v,e[22]=j,e[23]=b,e[24]=c):c=e[24],a="flex-1 overflow-auto px-4 py-3 space-y-1",d=s.map(C=>t.jsx(Zt,{item:C,isSelected:i===null||i?.includes(C.id),onToggle:()=>l(C.id,m),disabled:r},C.id))}e[0]=r,e[1]=u,e[2]=s,e[3]=l,e[4]=n,e[5]=i,e[6]=a,e[7]=d,e[8]=p,e[9]=c,e[10]=h}else a=e[6],d=e[7],p=e[8],c=e[9],h=e[10];if(h!==Symbol.for("react.early_return_sentinel"))return h;let x;e[25]!==a||e[26]!==d?(x=t.jsx("div",{className:a,children:d}),e[25]=a,e[26]=d,e[27]=x):x=e[27];let f;return e[28]!==p||e[29]!==c||e[30]!==x?(f=t.jsxs("div",{className:p,children:[c,x]}),e[28]=p,e[29]=c,e[30]=x,e[31]=f):f=e[31],f}function Qt(o){return o.id}function Xt(o){const e=T.c(13),{connectionId:s,selections:i,onToggle:l,onToggleAll:n,disabled:u}=o,{org:r}=de();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 d=je(a);let p;e[3]!==d?(p={client:d},e[3]=d,e[4]=p):p=e[4];const{data:c}=Bt(p);let h;e[5]!==c.tools?(h=c.tools.map(es),e[5]=c.tools,e[6]=h):h=e[6];const x=h;let f;return e[7]!==u||e[8]!==x||e[9]!==l||e[10]!==n||e[11]!==i?(f=t.jsx(Pe,{items:x,selections:i,onToggle:l,onToggleAll:n,emptyMessage:"No tools available",disabled:u}),e[7]=u,e[8]=x,e[9]=l,e[10]=n,e[11]=i,e[12]=f):f=e[12],f}function es(o){return{id:o.name,name:o.name,description:o.description,tags:t.jsx(zt,{annotations:o.annotations})}}function ts(o){const e=T.c(13),{connectionId:s,selections:i,onToggle:l,onToggleAll:n,disabled:u}=o,{org:r}=de();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 d=je(a);let p;e[3]!==d?(p={client:d},e[3]=d,e[4]=p):p=e[4];const{data:c}=Ft(p);let h;e[5]!==c.resources?(h=c.resources.map(ss),e[5]=c.resources,e[6]=h):h=e[6];const x=h;let f;return e[7]!==u||e[8]!==x||e[9]!==l||e[10]!==n||e[11]!==i?(f=t.jsx(Pe,{items:x,selections:i,onToggle:l,onToggleAll:n,emptyMessage:"No resources available",disabled:u}),e[7]=u,e[8]=x,e[9]=l,e[10]=n,e[11]=i,e[12]=f):f=e[12],f}function ss(o){return{id:o.name||o.uri,name:o.name||o.uri,description:o.description}}function ls(o){const e=T.c(13),{connectionId:s,selections:i,onToggle:l,onToggleAll:n,disabled:u}=o,{org:r}=de();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 d=je(a);let p;e[3]!==d?(p={client:d},e[3]=d,e[4]=p):p=e[4];const{data:c}=Gt(p);let h;e[5]!==c.prompts?(h=c.prompts.map(os),e[5]=c.prompts,e[6]=h):h=e[6];const x=h;let f;return e[7]!==u||e[8]!==x||e[9]!==l||e[10]!==n||e[11]!==i?(f=t.jsx(Pe,{items:x,selections:i,onToggle:l,onToggleAll:n,emptyMessage:"No prompts available",disabled:u}),e[7]=u,e[8]=x,e[9]=l,e[10]=n,e[11]=i,e[12]=f):f=e[12],f}function os(o){return{id:o.name,name:o.name,description:o.description}}function ns(o){const e=T.c(24),{connection:s,isSelected:i,hasSelections:l,summary:n,onClick:u,onToggleAll:r,disabled:a}=o,d=a?"cursor-not-allowed opacity-50":"cursor-pointer",p=i?"bg-accent":"hover:bg-muted/50";let c;e[0]!==d||e[1]!==p?(c=ae("flex items-center gap-2 p-2 h-12 rounded-lg transition-colors",d,p),e[0]=d,e[1]=p,e[2]=c):c=e[2];const h=a?void 0:u;let x;e[3]!==s.icon||e[4]!==s.title?(x=t.jsx(ge,{icon:s.icon,name:s.title,size:"xs",className:"shrink-0"}),e[3]=s.icon,e[4]=s.title,e[5]=x):x=e[5];let f;e[6]!==s.title?(f=t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[6]=s.title,e[7]=f):f=e[7];let m;e[8]!==l||e[9]!==n?(m=l&&n&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:n}),e[8]=l,e[9]=n,e[10]=m):m=e[10];let N;e[11]!==f||e[12]!==m?(N=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[f,m]}),e[11]=f,e[12]=m,e[13]=N):N=e[13];let j;e[14]!==a||e[15]!==l||e[16]!==r?(j=t.jsx(ze,{checked:l,onCheckedChange:r,onClick:is,disabled:a,className:"shrink-0"}),e[14]=a,e[15]=l,e[16]=r,e[17]=j):j=e[17];let b;return e[18]!==c||e[19]!==h||e[20]!==x||e[21]!==N||e[22]!==j?(b=t.jsxs("div",{className:c,onClick:h,children:[x,N,j]}),e[18]=c,e[19]=h,e[20]=x,e[21]=N,e[22]=j,e[23]=b):b=e[23],b}function is(o){return o.stopPropagation()}function rs(o){const e=T.c(22),{allConnections:s,searchTerm:i,selectedId:l,hasSelections:n,getSelectionSummary:u,onConnectionClick:r,onToggleAll:a,disabled:d}=o;let p;e[0]!==s||e[1]!==i?(p=i?s.filter(f=>f.title.toLowerCase().includes(i.toLowerCase())||f.description?.toLowerCase().includes(i.toLowerCase())):s,e[0]=s,e[1]=i,e[2]=p):p=e[2];const c=p;if(c.length===0){const f=i?"No connections found":"No connections available";let m;return e[3]!==f?(m=t.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground p-4",children:f}),e[3]=f,e[4]=m):m=e[4],m}let h;if(e[5]!==d||e[6]!==c||e[7]!==u||e[8]!==n||e[9]!==r||e[10]!==a||e[11]!==l){let f;e[13]!==d||e[14]!==u||e[15]!==n||e[16]!==r||e[17]!==a||e[18]!==l?(f=m=>t.jsx(ns,{connection:m,isSelected:l===m.id,hasSelections:n(m.id),summary:u(m.id),onClick:()=>r(m.id),onToggleAll:()=>a(m.id),disabled:d},m.id),e[13]=d,e[14]=u,e[15]=n,e[16]=r,e[17]=a,e[18]=l,e[19]=f):f=e[19],h=c.map(f),e[5]=d,e[6]=c,e[7]=u,e[8]=n,e[9]=r,e[10]=a,e[11]=l,e[12]=h}else h=e[12];let x;return e[20]!==h?(x=t.jsx("div",{className:"flex flex-col gap-0.5",children:h}),e[20]=h,e[21]=x):x=e[21],x}function as(o){const e=T.c(75),{currentConnection:s,activeTab:i,selectedId:l,formData:n,toggleTool:u,toggleResource:r,togglePrompt:a,toggleAllTools:d,toggleAllResources:p,toggleAllPrompts:c,onTabChange:h}=o;let x;e[0]!==s.icon||e[1]!==s.title?(x=t.jsx(ge,{icon:s.icon,name:s.title,size:"md",className:"shrink-0"}),e[0]=s.icon,e[1]=s.title,e[2]=x):x=e[2];let f;e[3]!==s.title?(f=t.jsx("h2",{className:"text-lg font-semibold truncate",children:s.title}),e[3]=s.title,e[4]=f):f=e[4];let m;e[5]!==s.description?(m=s.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:s.description}),e[5]=s.description,e[6]=m):m=e[6];let N;e[7]!==f||e[8]!==m?(N=t.jsxs("div",{className:"flex-1 min-w-0",children:[f,m]}),e[7]=f,e[8]=m,e[9]=N):N=e[9];let j;e[10]!==x||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:[x,N]})}),e[10]=x,e[11]=N,e[12]=j):j=e[12];let b;e[13]!==h?(b=G=>h(G),e[13]=h,e[14]=b):b=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsxs(ve,{value:"tools",variant:"underline",className:"gap-2",children:[t.jsx(Oe,{size:16}),"Tools"]}),e[15]=g):g=e[15];let v;e[16]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsxs(ve,{value:"resources",variant:"underline",className:"gap-2",children:[t.jsx(Ne,{size:16}),"Resources"]}),e[16]=v):v=e[16];let C;e[17]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsxs(mt,{variant:"underline",className:"shrink-0 px-6",children:[g,v,t.jsxs(ve,{value:"prompts",variant:"underline",className:"gap-2",children:[t.jsx(De,{size:16}),"Prompts"]})]}),e[17]=C):C=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 k;e[19]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(ke,{}),e[19]=k):k=e[19];let $;e[20]!==n||e[21]!==l?($=n[l]?n[l].tools:[],e[20]=n,e[21]=l,e[22]=$):$=e[22];let S;e[23]!==l||e[24]!==u?(S=(G,Z)=>u(l,G,Z),e[23]=l,e[24]=u,e[25]=S):S=e[25];let w;e[26]!==l||e[27]!==d?(w=()=>d(l),e[26]=l,e[27]=d,e[28]=w):w=e[28];let A;e[29]!==l||e[30]!==$||e[31]!==S||e[32]!==w?(A=t.jsx(Ce,{value:"tools",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:P,children:t.jsx(_.Suspense,{fallback:k,children:t.jsx(Xt,{connectionId:l,selections:$,onToggle:S,onToggleAll:w})})})}),e[29]=l,e[30]=$,e[31]=S,e[32]=w,e[33]=A):A=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(ke,{}),e[35]=z):z=e[35];let E;e[36]!==n||e[37]!==l?(E=n[l]?n[l].resources:[],e[36]=n,e[37]=l,e[38]=E):E=e[38];let R;e[39]!==l||e[40]!==r?(R=(G,Z)=>r(l,G,Z),e[39]=l,e[40]=r,e[41]=R):R=e[41];let I;e[42]!==l||e[43]!==p?(I=()=>p(l),e[42]=l,e[43]=p,e[44]=I):I=e[44];let O;e[45]!==l||e[46]!==E||e[47]!==R||e[48]!==I?(O=t.jsx(Ce,{value:"resources",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:D,children:t.jsx(_.Suspense,{fallback:z,children:t.jsx(ts,{connectionId:l,selections:E,onToggle:R,onToggleAll:I})})})}),e[45]=l,e[46]=E,e[47]=R,e[48]=I,e[49]=O):O=e[49];let M;e[50]===Symbol.for("react.memo_cache_sentinel")?(M=we("Prompts not supported by this server"),e[50]=M):M=e[50];let V;e[51]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(ke,{}),e[51]=V):V=e[51];let H;e[52]!==n||e[53]!==l?(H=n[l]?n[l].prompts:[],e[52]=n,e[53]=l,e[54]=H):H=e[54];let Y;e[55]!==l||e[56]!==a?(Y=(G,Z)=>a(l,G,Z),e[55]=l,e[56]=a,e[57]=Y):Y=e[57];let U;e[58]!==l||e[59]!==c?(U=()=>c(l),e[58]=l,e[59]=c,e[60]=U):U=e[60];let q;e[61]!==l||e[62]!==H||e[63]!==Y||e[64]!==U?(q=t.jsx(Ce,{value:"prompts",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:M,children:t.jsx(_.Suspense,{fallback:V,children:t.jsx(ls,{connectionId:l,selections:H,onToggle:Y,onToggleAll:U})})})}),e[61]=l,e[62]=H,e[63]=Y,e[64]=U,e[65]=q):q=e[65];let K;e[66]!==i||e[67]!==A||e[68]!==O||e[69]!==q||e[70]!==b?(K=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:t.jsxs(ut,{value:i,onValueChange:b,variant:"underline",className:"flex-1 flex flex-col overflow-hidden",children:[C,A,O,q]})}),e[66]=i,e[67]=A,e[68]=O,e[69]=q,e[70]=b,e[71]=K):K=e[71];let W;return e[72]!==K||e[73]!==j?(W=t.jsxs(t.Fragment,{children:[j,K]}),e[72]=K,e[73]=j,e[74]=W):W=e[74],W}function cs(o){const e={};for(const s of o)e[s.connection_id]={tools:s.selected_tools,resources:s.selected_resources??null,prompts:s.selected_prompts??null};return e}function Ee(o){return Object.entries(o).map(([e,s])=>({connection_id:e,selected_tools:s.tools,selected_resources:s.resources,selected_prompts:s.prompts}))}function ds(o,e){switch(e.type){case"SET_SEARCH_TERM":return{...o,searchTerm:e.payload};case"SET_SELECTED":return{...o,selectedId:e.payload};case"SET_ACTIVE_TAB":return{...o,activeTab:e.payload};case"RESET":return{searchTerm:"",selectedId:e.payload.selectedId??e.payload.firstConnectionId??null,activeTab:"tools"};case"SELECT_CONNECTION":return{...o,selectedId:e.payload,activeTab:"tools"};default:return o}}const Fe=(o,e)=>o.find(s=>s.id===e)??o[0];function ms(o){const e=T.c(79),{open:s,onOpenChange:i,selectedId:l,form:n,connections:u}=o;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={},e[0]=r):r=e[0];const a=Nt(r);let d;e[1]!==a||e[2]!==l?(d=Fe(a,l)?.id??null,e[1]=a,e[2]=l,e[3]=d):d=e[3];let p;e[4]!==d?(p={activeTab:"tools",searchTerm:"",selectedId:d},e[4]=d,e[5]=p):p=e[5];const[c,h]=_.useReducer(ds,p);let x;e[6]!==u?(x=u??[],e[6]=u,e[7]=x):x=e[7];let f;e[8]!==x?(f=cs(x),e[8]=x,e[9]=f):f=e[9];const m=f;let N;e[10]!==a||e[11]!==c.selectedId?(N=Fe(a,c.selectedId),e[10]=a,e[11]=c.selectedId,e[12]=N):N=e[12];const j=N;let b;e[13]!==m?(b=y=>qt(m,y),e[13]=m,e[14]=b):b=e[14];const g=b;let v;e[15]!==m?(v=y=>Yt(m,y),e[15]=m,e[16]=v):v=e[16];const C=v;let P;e[17]!==n||e[18]!==m?(P=(y,L,B,Q)=>{const ie=m[y]?.[L];let F;ie===null?F=Q.filter(ye=>ye!==B):ie?.includes(B)?F=ie.filter(ye=>ye!==B):(F=[...ie??[],B],F.length===Q.length&&(F=null));const re={...m};re[y]?re[y]={...re[y]}:re[y]={tools:null,resources:null,prompts:null},re[y][L]=F,n.setValue("connections",Ee(re),{shouldDirty:!0,shouldTouch:!0})},e[17]=n,e[18]=m,e[19]=P):P=e[19];const k=P;let $;e[20]!==n||e[21]!==m?($=(y,L)=>{const ie=m[y]?.[L]===null?[]:null,F={...m};F[y]?F[y]={...F[y]}:F[y]={tools:null,resources:null,prompts:null},F[y][L]=ie,n.setValue("connections",Ee(F),{shouldDirty:!0,shouldTouch:!0})},e[20]=n,e[21]=m,e[22]=$):$=e[22];const S=$;let w;e[23]!==k?(w=(y,L,B)=>k(y,"tools",L,B),e[23]=k,e[24]=w):w=e[24];const A=w;let D;e[25]!==k?(D=(y,L,B)=>k(y,"resources",L,B),e[25]=k,e[26]=D):D=e[26];const z=D;let E;e[27]!==k?(E=(y,L,B)=>k(y,"prompts",L,B),e[27]=k,e[28]=E):E=e[28];const R=E;let I;e[29]!==S?(I=y=>S(y,"tools"),e[29]=S,e[30]=I):I=e[30];const O=I;let M;e[31]!==S?(M=y=>S(y,"resources"),e[31]=S,e[32]=M):M=e[32];const V=M;let H;e[33]!==S?(H=y=>S(y,"prompts"),e[33]=S,e[34]=H):H=e[34];const Y=H;let U;e[35]!==n||e[36]!==m?(U=y=>{const L=m[y],B=L&&L.tools===null&&L.resources===null&&L.prompts===null,Q={...m};B?delete Q[y]:Q[y]=Jt,n.setValue("connections",Ee(Q),{shouldDirty:!0,shouldTouch:!0})},e[35]=n,e[36]=m,e[37]=U):U=e[37];const q=U;let K;e[38]!==a||e[39]!==i||e[40]!==l?(K=y=>{y&&h({type:"RESET",payload:{selectedId:l,firstConnectionId:a[0]?.id??null}}),i(y)},e[38]=a,e[39]=i,e[40]=l,e[41]=K):K=e[41];const W=K;let G;e[42]===Symbol.for("react.memo_cache_sentinel")?(G=y=>{h({type:"SELECT_CONNECTION",payload:y})},e[42]=G):G=e[42];const Z=G;let me;e[43]===Symbol.for("react.memo_cache_sentinel")?(me=y=>h({type:"SET_SEARCH_TERM",payload:y}),e[43]=me):me=e[43];let X;e[44]!==c.searchTerm?(X=t.jsx(Lt,{value:c.searchTerm,onChange:me,placeholder:"Search connections..."}),e[44]=c.searchTerm,e[45]=X):X=e[45];let ee;e[46]!==a||e[47]!==c.searchTerm||e[48]!==c.selectedId||e[49]!==C||e[50]!==g||e[51]!==q?(ee=t.jsx("div",{className:"flex-1 overflow-auto p-2",children:t.jsx(rs,{allConnections:a,searchTerm:c.searchTerm,selectedId:c.selectedId,hasSelections:g,getSelectionSummary:C,onConnectionClick:Z,onToggleAll:q})}),e[46]=a,e[47]=c.searchTerm,e[48]=c.selectedId,e[49]=C,e[50]=g,e[51]=q,e[52]=ee):ee=e[52];let te;e[53]!==X||e[54]!==ee?(te=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:[X,ee]}),e[53]=X,e[54]=ee,e[55]=te):te=e[55];let se;e[56]!==j||e[57]!==c.activeTab||e[58]!==c.selectedId||e[59]!==m||e[60]!==Y||e[61]!==V||e[62]!==O||e[63]!==R||e[64]!==z||e[65]!==A?(se=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:j&&c.selectedId?t.jsx(as,{currentConnection:j,activeTab:c.activeTab,selectedId:c.selectedId,formData:m,toggleTool:A,toggleResource:z,togglePrompt:R,toggleAllTools:O,toggleAllResources:V,toggleAllPrompts:Y,onTabChange:y=>h({type:"SET_ACTIVE_TAB",payload:y})},c.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]=c.activeTab,e[58]=c.selectedId,e[59]=m,e[60]=Y,e[61]=V,e[62]=O,e[63]=R,e[64]=z,e[65]=A,e[66]=se):se=e[66];let le;e[67]!==te||e[68]!==se?(le=t.jsxs("div",{className:"flex-1 flex overflow-hidden min-h-0 flex-col sm:flex-row",children:[te,se]}),e[67]=te,e[68]=se,e[69]=le):le=e[69];let oe;e[70]!==W?(oe=t.jsx(Rt,{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]=oe):oe=e[71];let ne;e[72]!==le||e[73]!==oe?(ne=t.jsxs(Ue,{className:"sm:max-w-5xl h-[80vh] max-h-[80vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[le,oe]}),e[72]=le,e[73]=oe,e[74]=ne):ne=e[74];let ue;return e[75]!==W||e[76]!==s||e[77]!==ne?(ue=t.jsx(Ke,{open:s,onOpenChange:W,children:ne}),e[75]=W,e[76]=s,e[77]=ne,e[78]=ue):ue=e[78],ue}const us=Je.pick({title:!0,description:!0,status:!0,metadata:!0,connections:!0}).extend({title:Ze().min(1,"Name is required").max(255)});function fs(o){const e=T.c(8);let s,i;e[0]!==o?({className:s,...i}=o,e[0]=o,e[1]=s,e[2]=i):(s=e[1],i=e[2]);let l;e[3]!==s?(l=ae("grid gap-3",s),e[3]=s,e[4]=l):l=e[4];let n;return e[5]!==i||e[6]!==l?(n=t.jsx(at,{"data-slot":"radio-group",className:l,...i}),e[5]=i,e[6]=l,e[7]=n):n=e[7],n}function Ie(o){const e=T.c(9);let s,i;e[0]!==o?({className:s,...i}=o,e[0]=o,e[1]=s,e[2]=i):(s=e[1],i=e[2]);let l;e[3]!==s?(l=ae("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]=l):l=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(ct,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:t.jsx(Ye,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})}),e[5]=n):n=e[5];let u;return e[6]!==i||e[7]!==l?(u=t.jsx(rt,{"data-slot":"radio-group-item",className:l,...i,children:n}),e[6]=i,e[7]=l,e[8]=u):u=e[8],u}function ps(o){const s=new TextEncoder().encode(o),i=Array.from(s,l=>String.fromCharCode(l)).join("");return btoa(i)}function xs(o){const e=T.c(10),{url:s}=o,[i,l]=_.useState(!1);let n;e[0]!==s?(n=async()=>{await navigator.clipboard.writeText(s),l(!0),ce.success("Agent URL copied to clipboard"),setTimeout(()=>l(!1),2e3)},e[0]=s,e[1]=n):n=e[1];const u=n;let r;e[2]!==i?(r=i?t.jsx(be,{size:20,className:"text-green-600"}):t.jsx(Re,{size:20}),e[2]=i,e[3]=r):r=e[3];const a=i?"Copied!":"Copy URL";let d;e[4]!==a?(d=t.jsx("span",{className:"text-xs font-medium",children:a}),e[4]=a,e[5]=d):d=e[5];let p;return e[6]!==u||e[7]!==r||e[8]!==d?(p=t.jsxs(J,{type:"button",variant:"outline",onClick:u,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[r,d]}),e[6]=u,e[7]=r,e[8]=d,e[9]=p):p=e[9],p}function hs(o){const e=T.c(7),{url:s,serverName:i}=o;let l;e[0]!==i||e[1]!==s?(l=()=>{const d=We(i),c=ps(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),h=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(d)}&config=${encodeURIComponent(c)}`;window.open(h,"_blank"),ce.success("Opening Cursor...")},e[0]=i,e[1]=s,e[2]=l):l=e[2];const n=l;let u,r;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=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]=u,e[4]=r):(u=e[3],r=e[4]);let a;return e[5]!==n?(a=t.jsxs(J,{type:"button",variant:"outline",onClick:n,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[u,r]}),e[5]=n,e[6]=a):a=e[6],a}function gs(o){const e=T.c(11),{url:s,serverName:i}=o,[l,n]=_.useState(!1);let u;e[0]!==i||e[1]!==s?(u=async()=>{const h=We(i),f=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),m=`claude mcp add-json "${h}" '${f.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(m),n(!0),ce.success("Claude Code command copied to clipboard"),setTimeout(()=>n(!1),2e3)},e[0]=i,e[1]=s,e[2]=u):u=e[2];const r=u;let a;e[3]!==l?(a=l?t.jsx(be,{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]=l,e[4]=a):a=e[4];const d=l?"Copied!":"Install on Claude";let p;e[5]!==d?(p=t.jsx("span",{className:"text-xs font-medium",children:d}),e[5]=d,e[6]=p):p=e[6];let c;return e[7]!==r||e[8]!==a||e[9]!==p?(c=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,p]}),e[7]=r,e[8]=a,e[9]=p,e[10]=c):c=e[10],c}function js({virtualMcp:o}){const{org:e}=de(),s=je({connectionId:Vt,orgId:e.id}),[i,l]=_.useState(null),[n,u]=_.useState(!1),[r,a]=_.useState(!1),d=o.id,p=o.title||`agent-${d.slice(0,8)}`,c=i?`bunx @decocms/typegen@latest --mcp ${d} --key ${i} --output client.ts`:`bunx @decocms/typegen@latest --mcp ${d} --key <api-key> --output client.ts`,h=async()=>{u(!0);try{const m=(await s.callTool({name:"API_KEY_CREATE",arguments:{name:`typegen-${p}`,permissions:{[d]:["*"]}}})).structuredContent?.key;if(!m)throw new Error("No key in response");l(m)}catch{ce.error("Failed to generate API key")}finally{u(!1)}},x=async()=>{await navigator.clipboard.writeText(c),a(!0),ce.success("Command copied to clipboard"),setTimeout(()=>a(!1),2e3)};return t.jsxs("div",{className:"flex min-w-0 flex-col gap-3",children:[t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("h4",{className:"text-sm font-medium text-foreground",children:"Generate typed client"}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:["Introspects this agent and writes a typed"," ",t.jsx("code",{className:"font-mono",children:"client.ts"})," you can import directly."]})]}),!i&&t.jsxs(J,{type:"button",variant:"outline",size:"sm",className:"shrink-0 gap-1.5",onClick:h,disabled:n,children:[n?t.jsx(Le,{size:14,className:"animate-spin"}):t.jsx(Kt,{size:14}),t.jsx("span",{children:n?"Generating…":"Generate API key"})]})]}),i&&t.jsx("p",{className:"rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-xs text-amber-700",children:"Store this key securely — it won't be shown again."}),t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Generate client"}),t.jsx("div",{className:"rounded-md border border-input bg-muted/50 px-3 py-2.5",children:t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsx("code",{className:"min-w-0 flex-1 break-all font-mono text-xs text-muted-foreground",children:c}),t.jsx(J,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:x,children:r?t.jsx(be,{size:12,className:"text-green-600"}):t.jsx(Re,{size:12})})]})}),t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Runtime variables"}),t.jsx(bs,{apiKey:i})]})}function bs(o){const e=T.c(19),{apiKey:s}=o,[i,l]=_.useState(!1),n=window.location.origin,u=s?`MESH_API_KEY=${s}`:"MESH_API_KEY=<api-key>",r=`MESH_BASE_URL=${n}`,a=`${u}
|
|
2
2
|
${r}`;let d;e[0]!==a?(d=async()=>{await navigator.clipboard.writeText(a),l(!0),setTimeout(()=>l(!1),2e3)},e[0]=a,e[1]=d):d=e[1];const p=d,c=!s;let h;e[2]!==c?(h=ae({"opacity-50":c}),e[2]=c,e[3]=h):h=e[3];let x;e[4]!==u||e[5]!==h?(x=t.jsx("span",{className:h,children:u}),e[4]=u,e[5]=h,e[6]=x):x=e[6];let f,m;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx("br",{}),m=t.jsx("span",{children:r}),e[7]=f,e[8]=m):(f=e[7],m=e[8]);let N;e[9]!==x?(N=t.jsxs("code",{className:"min-w-0 flex-1 font-mono text-xs text-muted-foreground",children:[x,f,m]}),e[9]=x,e[10]=N):N=e[10];let j;e[11]!==i?(j=i?t.jsx(be,{size:12,className:"text-green-600"}):t.jsx(Re,{size:12}),e[11]=i,e[12]=j):j=e[12];let b;e[13]!==p||e[14]!==j?(b=t.jsx(J,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:p,children:j}),e[13]=p,e[14]=j,e[15]=b):b=e[15];let g;return e[16]!==N||e[17]!==b?(g=t.jsx("div",{className:"rounded-md border border-input bg-muted/50 px-3 py-2.5",children:t.jsxs("div",{className:"flex items-start gap-2",children:[N,b]})}),e[16]=N,e[17]=b,e[18]=g):g=e[18],g}function Ns(o){const e=T.c(3),{virtualMcp:s}=o;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"h-20 animate-pulse rounded-md bg-muted"}),e[0]=i):i=e[0];let l;return e[1]!==s?(l=t.jsx(_.Suspense,{fallback:i,children:t.jsx(js,{virtualMcp:s})}),e[1]=s,e[2]=l):l=e[2],l}function ys(o){const e=T.c(44),{open:s,onOpenChange:i,virtualMcp:l}=o,[n,u]=_.useState("code_execution");let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=V=>{(V==="passthrough"||V==="smart_tool_selection"||V==="code_execution")&&u(V)},e[0]=r):r=e[0];const a=r;let d;e[1]!==n||e[2]!==l.id?(d=new URL(`/mcp/virtual-mcp/${l.id}`,window.location.origin),d.searchParams.set("mode",n),e[1]=n,e[2]=l.id,e[3]=d):d=e[3];let p;e[4]!==l.id||e[5]!==l.title?(p=l.title||`agent-${l.id?.slice(0,8)??"default"}`,e[4]=l.id,e[5]=l.title,e[6]=p):p=e[6];const c=p;let h;e[7]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(Pt,{children:t.jsx(Mt,{children:"Connect"})}),e[7]=h):h=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[8]=x):x=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(ft,{className:"size-5 text-muted-foreground"})}),e[9]=f):f=e[9];let m;e[10]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Direct access"}),e[10]=m):m=e[10];let N;e[11]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(pe,{asChild:!0,children:t.jsx(Se,{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:[f,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[m,t.jsx(_e,{children:t.jsxs(xe,{children:[N,t.jsx(he,{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 b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(pt,{className:"size-5 text-muted-foreground"})}),e[13]=b):b=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 v;e[15]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(pe,{asChild:!0,children:t.jsx(Se,{className:"size-3.5 text-muted-foreground"})}),e[15]=v):v=e[15];let C;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=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:[b,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(_e,{children:t.jsxs(xe,{children:[v,t.jsx(he,{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]=C):C=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(Ut,{className:"size-5 text-muted-foreground"})}),e[17]=P):P=e[17];let k;e[18]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart execution"}),e[18]=k):k=e[18];let $;e[19]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(pe,{asChild:!0,children:t.jsx(Se,{className:"size-3.5 text-muted-foreground"})}),e[19]=$):$=e[19];let S;e[20]===Symbol.for("react.memo_cache_sentinel")?(S=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:[k,t.jsx(_e,{children:t.jsxs(xe,{children:[$,t.jsx(he,{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]=S):S=e[20];let w;e[21]!==n?(w=t.jsxs("div",{className:"flex flex-col gap-3",children:[x,t.jsxs(fs,{value:n,onValueChange:a,className:"flex flex-col gap-4.5",children:[j,C,S]})]}),e[21]=n,e[22]=w):w=e[22];let A;e[23]!==d.href?(A=t.jsx(xs,{url:d.href}),e[23]=d.href,e[24]=A):A=e[24];let D,z;e[25]!==c||e[26]!==d.href?(D=t.jsx(hs,{url:d.href,serverName:c}),z=t.jsx(gs,{url:d.href,serverName:c}),e[25]=c,e[26]=d.href,e[27]=D,e[28]=z):(D=e[27],z=e[28]);let E;e[29]!==A||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:[A,D,z]})}),e[29]=A,e[30]=D,e[31]=z,e[32]=E):E=e[32];let R;e[33]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx("div",{className:"border-t border-border"}),e[33]=R):R=e[33];let I;e[34]!==l?(I=t.jsx(Ns,{virtualMcp:l}),e[34]=l,e[35]=I):I=e[35];let O;e[36]!==w||e[37]!==E||e[38]!==I?(O=t.jsxs(Ue,{className:"max-h-[80vh] overflow-y-auto sm:max-w-2xl",children:[h,t.jsxs("div",{className:"flex flex-col gap-6",children:[w,E,R,I]})]}),e[36]=w,e[37]=E,e[38]=I,e[39]=O):O=e[39];let M;return e[40]!==i||e[41]!==s||e[42]!==O?(M=t.jsx(Ke,{open:s,onOpenChange:i,children:O}),e[40]=i,e[41]=s,e[42]=O,e[43]=M):M=e[43],M}function vs(o,e){switch(e.type){case"SET_SHARE_DIALOG_OPEN":return{...o,shareDialogOpen:e.payload};case"SET_CONNECTION_DIALOG_OPEN":return{...o,connectionDialogOpen:e.payload};case"SET_EDITING_CONNECTION_ID":return{...o,editingConnectionId:e.payload};case"SET_SKILLS_OPEN":return{...o,skillsOpen:e.payload};default:return o}}function Ae(o){const e=T.c(27),{connection_id:s,selected_tools:i,selected_resources:l,selected_prompts:n,onClick:u}=o,r=yt(s);if(!r)return null;let a;e[0]!==i?(a=Te(i),e[0]=i,e[1]=a):a=e[1];const d=a;let p;e[2]!==l?(p=Te(l),e[2]=l,e[3]=p):p=e[3];const c=p;let h;e[4]!==n?(h=Te(n),e[4]=n,e[5]=h):h=e[5];const x=h;let f;e[6]!==r.icon||e[7]!==r.title?(f=t.jsx(ge,{icon:r.icon,name:r.title,size:"xs"}),e[6]=r.icon,e[7]=r.title,e[8]=f):f=e[8];let m;e[9]!==r.title?(m=t.jsx("p",{className:"flex-1 text-sm font-normal text-foreground truncate",children:r.title}),e[9]=r.title,e[10]=m):m=e[10];let N;e[11]!==d?(N=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(Oe,{size:12})]}),e[11]=d,e[12]=N):N=e[12];let j;e[13]!==c?(j=c!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:c==="all"?"all":c}),t.jsx(Ne,{size:12})]}),e[13]=c,e[14]=j):j=e[14];let b;e[15]!==x?(b=x!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:x==="all"?"all":x}),t.jsx(De,{size:12})]}),e[15]=x,e[16]=b):b=e[16];let g;e[17]!==N||e[18]!==j||e[19]!==b?(g=t.jsxs($e,{variant:"secondary",className:"bg-muted h-5 gap-2 px-1.5 py-1 flex items-center",children:[N,j,b]}),e[17]=N,e[18]=j,e[19]=b,e[20]=g):g=e[20];let v;e[21]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(He,{size:16,className:"text-muted-foreground shrink-0"}),e[21]=v):v=e[21];let C;return e[22]!==u||e[23]!==f||e[24]!==m||e[25]!==g?(C=t.jsxs("div",{onClick:u,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:[f,m,g,v]}),e[22]=u,e[23]=f,e[24]=m,e[25]=g,e[26]=C):C=e[26],C}Ae.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(Oe,{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(Ne,{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(De,{size:12})]})]}),t.jsx(He,{size:16,className:"text-muted-foreground shrink-0"})]})};function Cs({virtualMcp:o}){const{org:e}=de(),i=et().location.href,l=Ct(),n=tt({resolver:st(us),defaultValues:o}),u=n.watch("connections"),[r,a]=_.useReducer(vs,{shareDialogOpen:!1,connectionDialogOpen:!1,editingConnectionId:null,skillsOpen:!1}),[,d]=xt(),{setVirtualMcpId:p}=nt();_.useEffect(()=>{d(!0),p(o.id)},[o.id]);const c=()=>{p(o.id),d(!0)},h=n.formState.isDirty,x=async()=>{const g=n.getValues(),v=await l.update.mutateAsync({id:o.id,data:g});n.reset(v)},f=()=>{n.reset(o)},m=()=>{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=l.update.isPending,b=t.jsx(kt,{children:t.jsxs(wt,{children:[t.jsx(Be,{children:t.jsx(Et,{asChild:!0,children:t.jsx(lt,{to:"/$org/$project/agents",params:{org:e.slug,project:Ge},children:"Agents"})})}),t.jsx(It,{}),t.jsx(Be,{children:t.jsx(At,{children:o.title})})]})});return t.jsxs(Ot,{breadcrumb:b,children:[t.jsxs($t,{children:[t.jsx(Dt,{onSave:x,onUndo:f,isDirty:h,isSaving:j}),t.jsxs(xe,{delayDuration:0,children:[t.jsx(pe,{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:c,"aria-label":"Test Agent",children:[t.jsx(St,{size:14}),"Test Agent"]})})}),t.jsx(he,{side:"bottom",children:"Test this agent in chat"})]}),t.jsxs(J,{variant:"outline",size:"sm",className:"h-7 gap-1.5 px-2 border border-input",onClick:()=>a({type:"SET_SHARE_DIALOG_OPEN",payload:!0}),children:[t.jsx(qe,{size:14}),"Connect"]}),t.jsx(dt,{title:o.title,url:i,icon:o.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(ge,{icon:o.icon,name:n.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(Me,{...n.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(Me,{...n.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(jt,{checked:n.watch("status")==="active",onCheckedChange:g=>n.setValue("status",g?"active":"inactive",{shouldDirty:!0})})})]}),t.jsxs(ht,{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:[u.length===0?t.jsxs("button",{type:"button",onClick:m,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(Ve,{size:14}),"Add"]})]}):t.jsx(gt,{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:"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:t.jsx(Wt,{connectionIds:u.map(g=>g.connection_id),maxVisibleIcons:2})}),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(),m()},onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&(g.stopPropagation(),g.preventDefault(),m())},children:[t.jsx(Ve,{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(_t,{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:u.map(g=>t.jsx(_.Suspense,{fallback:t.jsx(Ae.Fallback,{}),children:t.jsx(Ae,{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(ot,{name:"metadata.instructions",control:n.control,render:({field:g})=>t.jsx(bt,{...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(ms,{open:r.connectionDialogOpen,onOpenChange:g=>a({type:"SET_CONNECTION_DIALOG_OPEN",payload:g}),selectedId:r.editingConnectionId,form:n,connections:u}),t.jsx(ys,{open:r.shareDialogOpen,onOpenChange:g=>a({type:"SET_SHARE_DIALOG_OPEN",payload:g}),virtualMcp:o})]})}function _s(){const o=T.c(6),e=Qe();let s;o[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org/$project/agents/$agentId"},o[0]=s):s=o[0];const i=Xe(s),{org:l,agentId:n}=i,u=vt(n);if(!u){let a;return o[1]!==e||o[2]!==l?(a=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(it,{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/$project/agents",params:{org:l,project:Ge}}),children:"Back to agents"})})}),o[1]=e,o[2]=l,o[3]=a):a=o[3],a}let r;return o[4]!==u?(r=t.jsx(Cs,{virtualMcp:u}),o[4]=u,o[5]=r):r=o[5],r}function Kl(){const o=T.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(fe,{children:t.jsx(_.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(Le,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(_s,{})})}),o[0]=e):e=o[0],e}export{Kl as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as ie,j as t,r as X,u as ne,b as ae,O as V}from"./index-DQipirM0.js";import{C as le,a as ce}from"./collection-table-wrapper-DpYYlIci.js";import{C as de}from"./collection-search-WzmN-NEH.js";import{P as j}from"./index-DlglR7Dv.js";import{B as me,a as pe,b as ue,c as ge}from"./breadcrumb-kQQ-d55s.js";import{C as fe}from"./connection-card-CRsOF1KU.js";import{E as q}from"./empty-state-C7VZap1W.js";import{E as he}from"./error-boundary-BpCU-F5d.js";import{I as xe}from"./integration-icon-6FQvxTss.js";import{u as je,U as Ce}from"./use-list-state-DjtYoYEW.js";import{u as be}from"./use-create-virtual-mcp-DG-_igKD.js";import{i as ye}from"./constants-9bKBT988.js";import{b as we,a as Ne}from"./use-virtual-mcp-Bq4iD2DN.js";import{c as De,b as Se,d as _e,A as ke,e as ve,g as Ae,a as Ie,f as Pe}from"./alert-dialog-K0UnFp_v.js";import{B as Q}from"./button-BxOn_P7A.js";import{D as Y,a as Z,b as ee,c as R}from"./dropdown-menu-BbhseL--.js";import{i as te}from"./DotsVertical-_M8uWFPN.js";import{s as se}from"./Eye-D_CQVe6k.js";import{i as $e}from"./Loading01-BFMhWWtD.js";import{s as oe}from"./Trash01-BC7PAlKV.js";import{t as C}from"./Users03-DJ0q7ZN3.js";import{A as re}from"./agent-connections-preview-Dhs8DGJ9.js";import{f as ze}from"./format-time-CMKyl-GC.js";import"./ArrowDown-BzwwIvol.js";import"./ArrowUp-lkpB-gsw.js";import"./Check-BEIYk4IG.js";import"./Grid01-DDvgvRE8.js";import"./List-iNTJ6fUY.js";import"./tooltip-B7RjBzxU.js";import"./view-mode-toggle-DumSmhPz.js";import"./table-D0pFXKN4.js";import"./SearchMd-Dvn1Eo76.js";import"./input-D3a40-af.js";import"./use-mobile-CYG2M3Mj.js";import"./ChevronRight-dj0VUAfs.js";import"./card-DMS-g9Fe.js";import"./AlertTriangle-Cag6cydu.js";import"./Container-BY7Dg1ME.js";import"./avatar-BLu12sL5.js";import"./useQuery-CqT-L2b-.js";import"./use-view-mode-C5FzaFBT.js";import"./use-connection-DXequUdB.js";import"./useMutation-8rEyObWg.js";import"./differenceInSeconds-NQ4PDo0z.js";function Me(e,r){switch(r.type){case"delete":return{mode:"deleting",virtualMcp:r.virtualMcp};case"close":return{mode:"idle"}}}function Be(){const e=ie.c(65),{org:r}=ne(),n=ae();let b;e[0]!==r.slug?(b={namespace:r.slug,resource:"agents"},e[0]=r.slug,e[1]=b):b=e[1];const s=je(b),x=we(s);let y;e[2]===Symbol.for("react.memo_cache_sentinel")?(y={navigateOnCreate:!0},e[2]=y):y=e[2];const{createVirtualMCP:T,isCreating:w}=be(y),U=Ne();let N;e[3]===Symbol.for("react.memo_cache_sentinel")?(N={mode:"idle"},e[3]=N):N=e[3];const[i,D]=X.useReducer(Me,N);let S;e[4]!==U||e[5]!==i.mode||e[6]!==i.virtualMcp?(S=async()=>{if(i.mode!=="deleting")return;const o=i.virtualMcp.id;if(D({type:"close"}),!(!o||ye(o)))try{await U.delete.mutateAsync(o)}catch{}},e[4]=U,e[5]=i.mode,e[6]=i.virtualMcp,e[7]=S):S=e[7];const L=S;let _,k,v,A,I;e[8]===Symbol.for("react.memo_cache_sentinel")?(_={id:"title",header:"Name",render:Fe,cellClassName:"w-48 min-w-0 shrink-0",sortable:!0},k={id:"description",header:"Description",render:He,cellClassName:"flex-1 min-w-0",wrap:!0,sortable:!0},v={id:"connections",header:"Connections",render:Ue,cellClassName:"w-28 shrink-0"},A={id:"updated_by",header:"Updated by",render:Te,cellClassName:"w-32 shrink-0",sortable:!0},I={id:"updated_at",header:"Updated",render:Re,cellClassName:"max-w-24 w-24 shrink-0",sortable:!0},e[8]=_,e[9]=k,e[10]=v,e[11]=A,e[12]=I):(_=e[8],k=e[9],v=e[10],A=e[11],I=e[12]);let P;e[13]!==n||e[14]!==r.slug?(P=[_,k,v,A,I,{id:"actions",header:"",render:o=>t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Ve,children:t.jsx(te,{size:20})})}),t.jsxs(ee,{align:"end",onClick:Ke,children:[t.jsxs(R,{onClick:a=>{a.stopPropagation(),n({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:V,agentId:o.id}})},children:[t.jsx(se,{size:16}),"Open"]}),t.jsxs(R,{variant:"destructive",onClick:a=>{a.stopPropagation(),D({type:"delete",virtualMcp:o})},children:[t.jsx(oe,{size:16}),"Delete"]})]})]}),cellClassName:"w-12 shrink-0"}],e[13]=n,e[14]=r.slug,e[15]=P):P=e[15];const H=P,F=w?"Creating...":"Create Agent";let $;e[16]!==T||e[17]!==w||e[18]!==F?($=t.jsx(Q,{onClick:T,size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",disabled:w,children:F}),e[16]=T,e[17]=w,e[18]=F,e[19]=$):$=e[19];const G=$,J=i.mode==="deleting";let z;e[20]===Symbol.for("react.memo_cache_sentinel")?(z=o=>!o&&D({type:"close"}),e[20]=z):z=e[20];let M;e[21]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx(De,{children:"Delete Agent?"}),e[21]=M):M=e[21];const W=i.mode==="deleting"&&i.virtualMcp.title;let l;e[22]!==W?(l=t.jsxs(Se,{children:[M,t.jsxs(_e,{children:["This action cannot be undone. This will permanently delete"," ",t.jsx("span",{className:"font-medium text-foreground",children:W}),"."]})]}),e[22]=W,e[23]=l):l=e[23];let B;e[24]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(ke,{children:"Cancel"}),e[24]=B):B=e[24];let c;e[25]!==L?(c=t.jsxs(ve,{children:[B,t.jsx(Ae,{onClick:L,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[25]=L,e[26]=c):c=e[26];let d;e[27]!==l||e[28]!==c?(d=t.jsxs(Ie,{children:[l,c]}),e[27]=l,e[28]=c,e[29]=d):d=e[29];let m;e[30]!==J||e[31]!==d?(m=t.jsx(Pe,{open:J,onOpenChange:z,children:d}),e[30]=J,e[31]=d,e[32]=m):m=e[32];let O;e[33]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(j.Header.Left,{children:t.jsx(me,{children:t.jsx(pe,{children:t.jsx(ue,{children:t.jsx(ge,{children:"Agents"})})})})}),e[33]=O):O=e[33];let E;e[34]===Symbol.for("react.memo_cache_sentinel")?(E=[{id:"title",label:"Name"},{id:"description",label:"Description"},{id:"updated_by",label:"Updated by"},{id:"updated_at",label:"Updated"}],e[34]=E):E=e[34];let p;e[35]!==s.handleSort||e[36]!==s.setViewMode||e[37]!==s.sortDirection||e[38]!==s.sortKey||e[39]!==s.viewMode?(p=t.jsx(le,{viewMode:s.viewMode,onViewModeChange:s.setViewMode,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,sortOptions:E}),e[35]=s.handleSort,e[36]=s.setViewMode,e[37]=s.sortDirection,e[38]=s.sortKey,e[39]=s.viewMode,e[40]=p):p=e[40];let u;e[41]!==G||e[42]!==p?(u=t.jsxs(j.Header,{children:[O,t.jsxs(j.Header.Right,{children:[p,G]})]}),e[41]=G,e[42]=p,e[43]=u):u=e[43];let g;e[44]!==s?(g=o=>{o.key==="Escape"&&(s.setSearch(""),o.target.blur())},e[44]=s,e[45]=g):g=e[45];let f;e[46]!==s.search||e[47]!==s.setSearch||e[48]!==g?(f=t.jsx(de,{value:s.search,onChange:s.setSearch,placeholder:"Search for an agent...",onKeyDown:g}),e[46]=s.search,e[47]=s.setSearch,e[48]=g,e[49]=f):f=e[49];let h;e[50]!==H||e[51]!==s.handleSort||e[52]!==s.search||e[53]!==s.sortDirection||e[54]!==s.sortKey||e[55]!==s.viewMode||e[56]!==n||e[57]!==r.slug||e[58]!==x?(h=t.jsx(j.Content,{children:s.viewMode==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:x.length===0?t.jsx(q,{image:t.jsx(C,{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-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:x.map(o=>t.jsx(fe,{connection:{id:o.id??"",title:o.title,description:o.description,icon:o.icon,status:o.status},fallbackIcon:t.jsx(C,{}),onClick:()=>n({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:V,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(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Ee,children:t.jsx(te,{size:20})})}),t.jsxs(ee,{align:"end",onClick:Oe,children:[t.jsxs(R,{onClick:a=>{a.stopPropagation(),n({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:V,agentId:o.id}})},children:[t.jsx(se,{size:16}),"Open"]}),t.jsxs(R,{variant:"destructive",onClick:a=>{a.stopPropagation(),D({type:"delete",virtualMcp:o})},children:[t.jsx(oe,{size:16}),"Delete"]})]})]})},o.id??"default"))})}):t.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:t.jsx(ce,{columns:H,data:x,isLoading:!1,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,onRowClick:o=>n({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:V,agentId:o.id}}),emptyState:s.search?t.jsx(q,{image:t.jsx(C,{size:36,className:"text-muted-foreground"}),title:"No agents found",description:`No agents match "${s.search}"`}):t.jsx(q,{image:t.jsx(C,{size:36,className:"text-muted-foreground"}),title:"No agents yet",description:"Create an agent to aggregate tools from multiple Connections."})})})}),e[50]=H,e[51]=s.handleSort,e[52]=s.search,e[53]=s.sortDirection,e[54]=s.sortKey,e[55]=s.viewMode,e[56]=n,e[57]=r.slug,e[58]=x,e[59]=h):h=e[59];let K;return e[60]!==m||e[61]!==u||e[62]!==f||e[63]!==h?(K=t.jsxs(j,{children:[m,u,f,h]}),e[60]=m,e[61]=u,e[62]=f,e[63]=h,e[64]=K):K=e[64],K}function Oe(e){return e.stopPropagation()}function Ee(e){return e.stopPropagation()}function Ke(e){return e.stopPropagation()}function Ve(e){return e.stopPropagation()}function Re(e){return t.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:e.updated_at?ze(new Date(e.updated_at)):"—"})}function Te(e){return t.jsx(Ce,{id:e.updated_by??e.created_by,size:"3xs"})}function Ue(e){return t.jsx(X.Suspense,{fallback:t.jsx(re.Fallback,{}),children:t.jsx(re,{connectionIds:e.connections.map(Le),maxVisibleIcons:2})})}function Le(e){return e.connection_id}function He(e){return t.jsx("span",{className:"text-sm text-foreground line-clamp-2",children:e.description||"—"})}function Fe(e){return t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[t.jsx(xe,{icon:e.icon,name:e.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(C,{size:16})}),t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.title})]})}function Ot(){const e=ie.c(1);let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(he,{children:t.jsx(X.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx($e,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Be,{})})}),e[0]=r):r=e[0],r}export{Ot as default};
|
|
1
|
+
import{c as ie,j as t,r as X,u as ne,b as ae,O as V}from"./index-DwBgLSti.js";import{C as le,a as ce}from"./collection-table-wrapper-fNhnYl-G.js";import{C as de}from"./collection-search-CBYSITVU.js";import{P as j}from"./index-B_nMIrSY.js";import{B as me,a as pe,b as ue,c as ge}from"./breadcrumb-DeYbtjMk.js";import{C as fe}from"./connection-card-Cwh5xUmA.js";import{E as q}from"./empty-state-sMx3NP6e.js";import{E as he}from"./error-boundary-lFjWy2-n.js";import{I as xe}from"./integration-icon-qV_BsBQR.js";import{u as je,U as Ce}from"./use-list-state-DvpdPuz-.js";import{u as be}from"./use-create-virtual-mcp-BzTARjrD.js";import{i as ye}from"./constants-8URKDp4Y.js";import{b as we,a as Ne}from"./use-virtual-mcp-DBzFAk7J.js";import{c as De,b as Se,d as _e,A as ke,e as ve,g as Ae,a as Ie,f as Pe}from"./alert-dialog-BvNipqK_.js";import{B as Q}from"./button-D6YZfFzy.js";import{D as Y,a as Z,b as ee,c as R}from"./dropdown-menu-CRT7qGQ9.js";import{i as te}from"./DotsVertical-PhooMqUv.js";import{s as se}from"./Eye-B9ZDOUkE.js";import{i as $e}from"./Loading01-BHMOj-H5.js";import{s as oe}from"./Trash01-CkTOgej8.js";import{t as C}from"./Users03-C1B58zTV.js";import{A as re}from"./agent-connections-preview-Dq0jl9Fh.js";import{f as ze}from"./format-time-CMKyl-GC.js";import"./ArrowDown-B35oswmj.js";import"./ArrowUp-G8RCE5_O.js";import"./Check-Bv0pZ3gl.js";import"./Grid01-CJW4ZLO5.js";import"./List-sG42OZ_v.js";import"./tooltip-D71dCz4E.js";import"./view-mode-toggle-2-qyK3LU.js";import"./table-Csfk_VXo.js";import"./SearchMd-BLcaRHQs.js";import"./input-B7id4I1j.js";import"./use-mobile-Bs0AkxK7.js";import"./ChevronRight-DgAfR8pA.js";import"./card-BNyCnFpQ.js";import"./AlertTriangle-DniGvpwb.js";import"./Container-jfv9L6Hc.js";import"./avatar-BNKSN34R.js";import"./useQuery-CPsXfVfR.js";import"./use-view-mode-DMPiUC22.js";import"./use-connection-BEGrPCmR.js";import"./useMutation-DgG1LVg-.js";import"./differenceInSeconds-NQ4PDo0z.js";function Me(e,r){switch(r.type){case"delete":return{mode:"deleting",virtualMcp:r.virtualMcp};case"close":return{mode:"idle"}}}function Be(){const e=ie.c(65),{org:r}=ne(),n=ae();let b;e[0]!==r.slug?(b={namespace:r.slug,resource:"agents"},e[0]=r.slug,e[1]=b):b=e[1];const s=je(b),x=we(s);let y;e[2]===Symbol.for("react.memo_cache_sentinel")?(y={navigateOnCreate:!0},e[2]=y):y=e[2];const{createVirtualMCP:T,isCreating:w}=be(y),U=Ne();let N;e[3]===Symbol.for("react.memo_cache_sentinel")?(N={mode:"idle"},e[3]=N):N=e[3];const[i,D]=X.useReducer(Me,N);let S;e[4]!==U||e[5]!==i.mode||e[6]!==i.virtualMcp?(S=async()=>{if(i.mode!=="deleting")return;const o=i.virtualMcp.id;if(D({type:"close"}),!(!o||ye(o)))try{await U.delete.mutateAsync(o)}catch{}},e[4]=U,e[5]=i.mode,e[6]=i.virtualMcp,e[7]=S):S=e[7];const L=S;let _,k,v,A,I;e[8]===Symbol.for("react.memo_cache_sentinel")?(_={id:"title",header:"Name",render:Fe,cellClassName:"w-48 min-w-0 shrink-0",sortable:!0},k={id:"description",header:"Description",render:He,cellClassName:"flex-1 min-w-0",wrap:!0,sortable:!0},v={id:"connections",header:"Connections",render:Ue,cellClassName:"w-28 shrink-0"},A={id:"updated_by",header:"Updated by",render:Te,cellClassName:"w-32 shrink-0",sortable:!0},I={id:"updated_at",header:"Updated",render:Re,cellClassName:"max-w-24 w-24 shrink-0",sortable:!0},e[8]=_,e[9]=k,e[10]=v,e[11]=A,e[12]=I):(_=e[8],k=e[9],v=e[10],A=e[11],I=e[12]);let P;e[13]!==n||e[14]!==r.slug?(P=[_,k,v,A,I,{id:"actions",header:"",render:o=>t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Ve,children:t.jsx(te,{size:20})})}),t.jsxs(ee,{align:"end",onClick:Ke,children:[t.jsxs(R,{onClick:a=>{a.stopPropagation(),n({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:V,agentId:o.id}})},children:[t.jsx(se,{size:16}),"Open"]}),t.jsxs(R,{variant:"destructive",onClick:a=>{a.stopPropagation(),D({type:"delete",virtualMcp:o})},children:[t.jsx(oe,{size:16}),"Delete"]})]})]}),cellClassName:"w-12 shrink-0"}],e[13]=n,e[14]=r.slug,e[15]=P):P=e[15];const H=P,F=w?"Creating...":"Create Agent";let $;e[16]!==T||e[17]!==w||e[18]!==F?($=t.jsx(Q,{onClick:T,size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",disabled:w,children:F}),e[16]=T,e[17]=w,e[18]=F,e[19]=$):$=e[19];const G=$,J=i.mode==="deleting";let z;e[20]===Symbol.for("react.memo_cache_sentinel")?(z=o=>!o&&D({type:"close"}),e[20]=z):z=e[20];let M;e[21]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx(De,{children:"Delete Agent?"}),e[21]=M):M=e[21];const W=i.mode==="deleting"&&i.virtualMcp.title;let l;e[22]!==W?(l=t.jsxs(Se,{children:[M,t.jsxs(_e,{children:["This action cannot be undone. This will permanently delete"," ",t.jsx("span",{className:"font-medium text-foreground",children:W}),"."]})]}),e[22]=W,e[23]=l):l=e[23];let B;e[24]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(ke,{children:"Cancel"}),e[24]=B):B=e[24];let c;e[25]!==L?(c=t.jsxs(ve,{children:[B,t.jsx(Ae,{onClick:L,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[25]=L,e[26]=c):c=e[26];let d;e[27]!==l||e[28]!==c?(d=t.jsxs(Ie,{children:[l,c]}),e[27]=l,e[28]=c,e[29]=d):d=e[29];let m;e[30]!==J||e[31]!==d?(m=t.jsx(Pe,{open:J,onOpenChange:z,children:d}),e[30]=J,e[31]=d,e[32]=m):m=e[32];let O;e[33]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(j.Header.Left,{children:t.jsx(me,{children:t.jsx(pe,{children:t.jsx(ue,{children:t.jsx(ge,{children:"Agents"})})})})}),e[33]=O):O=e[33];let E;e[34]===Symbol.for("react.memo_cache_sentinel")?(E=[{id:"title",label:"Name"},{id:"description",label:"Description"},{id:"updated_by",label:"Updated by"},{id:"updated_at",label:"Updated"}],e[34]=E):E=e[34];let p;e[35]!==s.handleSort||e[36]!==s.setViewMode||e[37]!==s.sortDirection||e[38]!==s.sortKey||e[39]!==s.viewMode?(p=t.jsx(le,{viewMode:s.viewMode,onViewModeChange:s.setViewMode,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,sortOptions:E}),e[35]=s.handleSort,e[36]=s.setViewMode,e[37]=s.sortDirection,e[38]=s.sortKey,e[39]=s.viewMode,e[40]=p):p=e[40];let u;e[41]!==G||e[42]!==p?(u=t.jsxs(j.Header,{children:[O,t.jsxs(j.Header.Right,{children:[p,G]})]}),e[41]=G,e[42]=p,e[43]=u):u=e[43];let g;e[44]!==s?(g=o=>{o.key==="Escape"&&(s.setSearch(""),o.target.blur())},e[44]=s,e[45]=g):g=e[45];let f;e[46]!==s.search||e[47]!==s.setSearch||e[48]!==g?(f=t.jsx(de,{value:s.search,onChange:s.setSearch,placeholder:"Search for an agent...",onKeyDown:g}),e[46]=s.search,e[47]=s.setSearch,e[48]=g,e[49]=f):f=e[49];let h;e[50]!==H||e[51]!==s.handleSort||e[52]!==s.search||e[53]!==s.sortDirection||e[54]!==s.sortKey||e[55]!==s.viewMode||e[56]!==n||e[57]!==r.slug||e[58]!==x?(h=t.jsx(j.Content,{children:s.viewMode==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:x.length===0?t.jsx(q,{image:t.jsx(C,{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-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:x.map(o=>t.jsx(fe,{connection:{id:o.id??"",title:o.title,description:o.description,icon:o.icon,status:o.status},fallbackIcon:t.jsx(C,{}),onClick:()=>n({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:V,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(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Ee,children:t.jsx(te,{size:20})})}),t.jsxs(ee,{align:"end",onClick:Oe,children:[t.jsxs(R,{onClick:a=>{a.stopPropagation(),n({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:V,agentId:o.id}})},children:[t.jsx(se,{size:16}),"Open"]}),t.jsxs(R,{variant:"destructive",onClick:a=>{a.stopPropagation(),D({type:"delete",virtualMcp:o})},children:[t.jsx(oe,{size:16}),"Delete"]})]})]})},o.id??"default"))})}):t.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:t.jsx(ce,{columns:H,data:x,isLoading:!1,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,onRowClick:o=>n({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:V,agentId:o.id}}),emptyState:s.search?t.jsx(q,{image:t.jsx(C,{size:36,className:"text-muted-foreground"}),title:"No agents found",description:`No agents match "${s.search}"`}):t.jsx(q,{image:t.jsx(C,{size:36,className:"text-muted-foreground"}),title:"No agents yet",description:"Create an agent to aggregate tools from multiple Connections."})})})}),e[50]=H,e[51]=s.handleSort,e[52]=s.search,e[53]=s.sortDirection,e[54]=s.sortKey,e[55]=s.viewMode,e[56]=n,e[57]=r.slug,e[58]=x,e[59]=h):h=e[59];let K;return e[60]!==m||e[61]!==u||e[62]!==f||e[63]!==h?(K=t.jsxs(j,{children:[m,u,f,h]}),e[60]=m,e[61]=u,e[62]=f,e[63]=h,e[64]=K):K=e[64],K}function Oe(e){return e.stopPropagation()}function Ee(e){return e.stopPropagation()}function Ke(e){return e.stopPropagation()}function Ve(e){return e.stopPropagation()}function Re(e){return t.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:e.updated_at?ze(new Date(e.updated_at)):"—"})}function Te(e){return t.jsx(Ce,{id:e.updated_by??e.created_by,size:"3xs"})}function Ue(e){return t.jsx(X.Suspense,{fallback:t.jsx(re.Fallback,{}),children:t.jsx(re,{connectionIds:e.connections.map(Le),maxVisibleIcons:2})})}function Le(e){return e.connection_id}function He(e){return t.jsx("span",{className:"text-sm text-foreground line-clamp-2",children:e.description||"—"})}function Fe(e){return t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[t.jsx(xe,{icon:e.icon,name:e.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(C,{size:16})}),t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.title})]})}function Ot(){const e=ie.c(1);let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(he,{children:t.jsx(X.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx($e,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Be,{})})}),e[0]=r):r=e[0],r}export{Ot as default};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{j as r,I as w,r as n,as as m,aS as O,J as M,au as I,T as z,M as F,W as A,aT as D,Q as L,aU as G,ax as W,X as k,U as H,c as i}from"./index-DwBgLSti.js";import{c as p,b as v}from"./button-D6YZfFzy.js";var x="AlertDialog",[U]=W(x,[D]),d=D(),N=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(w,{...a,...t,modal:!0})};N.displayName=x;var V="AlertDialogTrigger",y=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(k,{...o,...a,ref:e})});y.displayName=V;var Y="AlertDialogPortal",j=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(L,{...a,...t})};j.displayName=Y;var q="AlertDialogOverlay",_=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(H,{...o,...a,ref:e})});_.displayName=q;var g="AlertDialogContent",[B,J]=U(g),Q=G("AlertDialogContent"),h=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,children:a,...o}=l,s=d(t),c=n.useRef(null),P=m(e,c),u=n.useRef(null);return r.jsx(O,{contentName:g,titleName:b,docsSlug:"alert-dialog",children:r.jsx(B,{scope:t,cancelRef:u,children:r.jsxs(M,{role:"alertdialog",...s,...o,ref:P,onOpenAutoFocus:I(o.onOpenAutoFocus,f=>{f.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:f=>f.preventDefault(),onInteractOutside:f=>f.preventDefault(),children:[r.jsx(Q,{children:a}),r.jsx(K,{contentRef:c})]})})})});h.displayName=g;var b="AlertDialogTitle",$=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(z,{...o,...a,ref:e})});$.displayName=b;var E="AlertDialogDescription",R=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(F,{...o,...a,ref:e})});R.displayName=E;var X="AlertDialogAction",C=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(A,{...o,...a,ref:e})});C.displayName=X;var S="AlertDialogCancel",T=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,{cancelRef:o}=J(S,t),s=d(t),c=m(e,o);return r.jsx(A,{...s,...a,ref:c})});T.displayName=S;var K=({contentRef:l})=>{const e=`\`${g}\` requires a description for the component to be accessible for screen reader users.
|
|
2
|
+
|
|
3
|
+
You can add a description to the \`${g}\` by passing a \`${E}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4
|
+
|
|
5
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${g}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
6
|
+
|
|
7
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return n.useEffect(()=>{document.getElementById(l.current?.getAttribute("aria-describedby"))||console.warn(e)},[e,l]),null},Z=N,ee=y,te=j,ae=_,oe=h,le=C,se=T,re=$,ie=R;function ge(l){const e=i.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=r.jsx(Z,{"data-slot":"alert-dialog",...t}),e[2]=t,e[3]=a):a=e[3],a}function fe(l){const e=i.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=r.jsx(ee,{"data-slot":"alert-dialog-trigger",...t}),e[2]=t,e[3]=a):a=e[3],a}function ne(l){const e=i.c(4);let t;e[0]!==l?({...t}=l,e[0]=l,e[1]=t):t=e[1];let a;return e[2]!==t?(a=r.jsx(te,{"data-slot":"alert-dialog-portal",...t}),e[2]=t,e[3]=a):a=e[3],a}function ce(l){const e=i.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx(ae,{"data-slot":"alert-dialog-overlay",className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function ue(l){const e=i.c(9);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(ce,{}),e[3]=o):o=e[3];let s;e[4]!==t?(s=p("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-xl border p-6 shadow-lg duration-200 sm:max-w-lg",t),e[4]=t,e[5]=s):s=e[5];let c;return e[6]!==a||e[7]!==s?(c=r.jsxs(ne,{children:[o,r.jsx(oe,{"data-slot":"alert-dialog-content",className:s,...a})]}),e[6]=a,e[7]=s,e[8]=c):c=e[8],c}function me(l){const e=i.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p("flex flex-col gap-2 text-center sm:text-left",t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx("div",{"data-slot":"alert-dialog-header",className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function Ae(l){const e=i.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx("div",{"data-slot":"alert-dialog-footer",className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function De(l){const e=i.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p("text-lg font-semibold",t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx(re,{"data-slot":"alert-dialog-title",className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function ve(l){const e=i.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p("text-muted-foreground text-sm",t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx(ie,{"data-slot":"alert-dialog-description",className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function xe(l){const e=i.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p(v(),t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx(le,{className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}function Ne(l){const e=i.c(8);let t,a;e[0]!==l?({className:t,...a}=l,e[0]=l,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let o;e[3]!==t?(o=p(v({variant:"outline"}),t),e[3]=t,e[4]=o):o=e[4];let s;return e[5]!==a||e[6]!==o?(s=r.jsx(se,{className:o,...a}),e[5]=a,e[6]=o,e[7]=s):s=e[7],s}export{Ne as A,ue as a,me as b,De as c,ve as d,Ae as e,ge as f,xe as g,fe as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l,e as m,j as t,A as f,S as h,f as x,g as r,h as p,N as u}from"./index-
|
|
1
|
+
import{c as l,e as m,j as t,A as f,S as h,f as x,g as r,h as p,N as u}from"./index-DwBgLSti.js";function d(){const e=l.c(1),a=window.location.pathname+window.location.search;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(u,{to:"/login",search:{next:a},replace:!0}),e[0]=n):n=e[0],n}function g(){const e=l.c(6);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={from:"/auth/$pathname"},e[0]=a):a=e[0];const{pathname:n}=m(a);if(n==="accept-invitation"){let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(f,{children:t.jsx(h,{})}),e[1]=c):c=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(x,{children:t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(r,{pathname:"accept-invitation"})})}),e[2]=i):i=e[2];let o;return e[3]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsxs(t.Fragment,{children:[c,i,t.jsx(p,{children:t.jsx(d,{})})]}),e[3]=o):o=e[3],o}let s;return e[4]!==n?(s=t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(r,{pathname:n})}),e[4]=n,e[5]=s):s=e[5],s}export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as R,c as j,j as i,y as I,
|
|
1
|
+
import{r as R,c as j,j as i,y as I,aA as $,aB as L,aC as M}from"./index-DwBgLSti.js";import{c as f}from"./button-D6YZfFzy.js";const V=({size:a=24,color:e="currentColor",...o})=>R.createElement("svg",{viewBox:"0 0 24 24",width:a,height:a,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},R.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 o,t;e[0]!==a?({className:o,...t}=a,e[0]=a,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let s;e[3]!==o?(s=f("relative flex size-8 shrink-0 overflow-hidden rounded-full",o),e[3]=o,e[4]=s):s=e[4];let r;return e[5]!==t||e[6]!==s?(r=i.jsx(M,{"data-slot":"avatar",className:s,...t}),e[5]=t,e[6]=s,e[7]=r):r=e[7],r}function B(a){const e=j.c(8);let o,t;e[0]!==a?({className:o,...t}=a,e[0]=a,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let s;e[3]!==o?(s=f("aspect-square size-full",o),e[3]=o,e[4]=s):s=e[4];let r;return e[5]!==t||e[6]!==s?(r=i.jsx($,{"data-slot":"avatar-image",className:s,...t}),e[5]=t,e[6]=s,e[7]=r):r=e[7],r}function T(a){const e=j.c(8);let o,t;e[0]!==a?({className:o,...t}=a,e[0]=a,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let s;e[3]!==o?(s=f("bg-muted flex size-full items-center justify-center rounded-full",o),e[3]=o,e[4]=s):s=e[4];let r;return e[5]!==t||e[6]!==s?(r=i.jsx(L,{"data-slot":"avatar-fallback",className:s,...t}),e[5]=t,e[6]=s,e[7]=r):r=e[7],r}const S=["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"],W="drop-shadow-lg text-muted-foreground bg-muted shadow-lg";function _(a){let e=0;for(let t=0;t<a.length;t++)e=a.charCodeAt(t)+((e<<5)-e);const o=Math.abs(e)%S.length;return S[o]}const U=I("border border-border",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"w-3 h-3 text-[7px] font-semibold","2xs":"w-4 h-4 text-[9px] 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=I("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),Z=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 G(a){const e=j.c(35);let o,t,s,r,n,d,g,l;e[0]!==a?({url:l,fallback:t,shape:r,size:n,objectFit:d,className:o,muted:g,...s}=a,e[0]=a,e[1]=o,e[2]=t,e[3]=s,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(o=e[1],t=e[2],s=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]=R.useState(!1);let C;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],C=c;break e}C=t}const F=C;let y;e:{if(k){y=W;break e}if(typeof t=="string"){let c;e[11]!==t?(c=_(t),e[11]=t,e[12]=c):c=e[12],y=c;break e}y=S[0]}const z=y;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]!==o||e[19]!==b||e[20]!==h?(w=f(U({shape:b,size:h}),o),e[18]=o,e[19]=b,e[20]=h,e[21]=w):w=e[21];let v;e[22]!==z||e[23]!==F||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",z),children:i.jsx(V,{size:Z(h)})}):i.jsxs(i.Fragment,{children:[l&&!m&&i.jsx(B,{src:l,loading:"lazy",alt:"Avatar",className:f(D({objectFit:u})),onError:()=>x(!0)}),(!l||m)&&i.jsx(T,{className:f(z,"rounded-none"),children:F})]}),e[22]=z,e[23]=F,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]!==s||e[32]!==v||e[33]!==w?(A=i.jsx(O,{className:w,...s,children:v}),e[31]=s,e[32]=v,e[33]=w,e[34]=A):A=e[34],A}function H(a){const e=j.c(18);let o,t,s,r,n,d,g,l;e[0]!==a?({shape:r,size:n,url:l,fallback:t,objectFit:d,className:o,muted:g,...s}=a,e[0]=a,e[1]=o,e[2]=t,e[3]=s,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(o=e[1],t=e[2],s=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]!==o||e[10]!==t||e[11]!==k||e[12]!==u||e[13]!==s||e[14]!==b||e[15]!==m||e[16]!==l?(x=i.jsx(G,{shape:b,url:l,fallback:t,size:m,objectFit:u,className:o,muted:k,...s}),e[9]=o,e[10]=t,e[11]=k,e[12]=u,e[13]=s,e[14]=b,e[15]=m,e[16]=l,e[17]=x):x=e[17],x}H.Skeleton=function({shape:e="square",size:o="base",className:t}){return i.jsx("div",{className:f(U({shape:e,size:o}),"bg-muted animate-pulse",t)})};export{H as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,j as u,v as l,y as v}from"./index-
|
|
1
|
+
import{c as d,j as u,v as l,y as v}from"./index-DwBgLSti.js";import{c as g}from"./button-D6YZfFzy.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 +1 @@
|
|
|
1
|
-
import"./index-
|
|
1
|
+
import"./index-DwBgLSti.js";function a(o){return{isImplementedBy:c=>{for(const e of o){const r=typeof e.name=="string"?new RegExp(`^${e.name}$`):e.name,t=c.find(i=>r.test(i.name));if(!(!t&&e.opt)&&!t)return!1}return!0}}}function s(o,c){const e=o.tools;if(!e||e.length===0)return!1;const r=e.map(n=>({name:n.name,inputSchema:n.inputSchema})),t=c.map(n=>({name:n.name,inputSchema:n.inputSchema,opt:n.opt}));return a(t).isImplementedBy(r)}export{a,s as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,j as c,v as u}from"./index-
|
|
1
|
+
import{c as n,j as c,v as u}from"./index-DwBgLSti.js";import{i as d}from"./ChevronRight-DgAfR8pA.js";import{c as m}from"./button-D6YZfFzy.js";function x(r){const e=n.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=c.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=n.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=c.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=n.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=c.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=n.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?u:"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=c.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=n.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-medium truncate",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=c.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=n.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??c.jsx(d,{}),e[6]=a,e[7]=i):i=e[7];let o;return e[8]!==s||e[9]!==l||e[10]!==i?(o=c.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 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b0 as u,b1 as l,c as g,j as v,v as p,y as b}from"./index-DwBgLSti.js";function x(...n){return u(l(n))}const f=b("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm 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"},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=g.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)?p:"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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o,j as c}from"./index-
|
|
1
|
+
import{c as o,j as c}from"./index-DwBgLSti.js";import{c as d}from"./button-D6YZfFzy.js";function f(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("bg-card text-card-foreground hover:bg-accent/50 flex flex-col gap-6 rounded-xl border border-border/75 shadow-xs",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function p(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto]",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function m(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("leading-none font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function u(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function x(r){const e=o.c(4);let t;e[0]!==r?({...t}=r,e[0]=r,e[1]=t):t=e[1];let s;return e[2]!==t?(s=c.jsx("div",{"data-slot":"card-content",...t}),e[2]=t,e[3]=s):s=e[3],s}export{f as C,x as a,m as b,u as c,p as d};
|