decocms 2.186.9 → 2.186.10
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-DoDnREQU.js → AlertCircle-Cbtm5L98.js} +1 -1
- package/dist/client/assets/{ArrowLeft-1uQ4hoAA.js → ArrowLeft-CCViWpBS.js} +1 -1
- package/dist/client/assets/{ArrowUp-CiCCsmLU.js → ArrowUp-PknJL_3i.js} +1 -1
- package/dist/client/assets/{Check-DsqqbwRv.js → Check-Cj1LnSt2.js} +1 -1
- package/dist/client/assets/{ChevronDown-DMIUCeXF.js → ChevronDown-CHOEDpCq.js} +1 -1
- package/dist/client/assets/{ChevronRight-BvErZvXV.js → ChevronRight-DY2lrGOn.js} +1 -1
- package/dist/client/assets/{ChevronUp-BPTkFtVQ.js → ChevronUp-B38OwFL_.js} +1 -1
- package/dist/client/assets/{Container-D8gJR-V9.js → Container-DLm11uCu.js} +1 -1
- package/dist/client/assets/{Dataflow03-D9B0IMv1.js → Dataflow03-Ba3PnLD-.js} +1 -1
- package/dist/client/assets/{FolderClosed-DtTyOuV-.js → FolderClosed-rrRpN158.js} +1 -1
- package/dist/client/assets/{Loading01-DTPGNGDe.js → Loading01-CJFbgK59.js} +1 -1
- package/dist/client/assets/{Play-BSN624z4.js → Play-CsSGdP4Z.js} +1 -1
- package/dist/client/assets/{Plus-VNSvGQN9.js → Plus-CfD-fvi9.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Dbe0-ztA.js → RefreshCcw01-Cja044eH.js} +1 -1
- package/dist/client/assets/{SearchMd-BVguqJPF.js → SearchMd-B4W5fcyf.js} +1 -1
- package/dist/client/assets/{Settings01-BKawEeOc.js → Settings01-CMhz8juF.js} +1 -1
- package/dist/client/assets/{Trash01-p_-P7rrZ.js → Trash01-Cl6ql_TT.js} +1 -1
- package/dist/client/assets/{Type01-D1knZTdC.js → Type01-UhdL8ksX.js} +1 -1
- package/dist/client/assets/{Upload01-D-cgBdXK.js → Upload01-DX94fj05.js} +1 -1
- package/dist/client/assets/{User01-C1Py8RLi.js → User01-BgxUQ8sC.js} +1 -1
- package/dist/client/assets/{X-AnvD8fGN.js → X-De9pN2CV.js} +1 -1
- package/dist/client/assets/{XCircle-Of71XlDY.js → XCircle-wueTdlAa.js} +1 -1
- package/dist/client/assets/{XClose-CIHCEBuc.js → XClose-CZL78D4W.js} +1 -1
- package/dist/client/assets/{Zap-Cbf8Gxw3.js → Zap-CeI4Bf9r.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-9beskZXW.js → agent-connections-preview-DgOyqMmO.js} +1 -1
- package/dist/client/assets/{agent-detail-CpQCW--v.js → agent-detail-BrPBEK2H.js} +1 -1
- package/dist/client/assets/{agents-C4-J6TQS.js → agents-C0fbUAlo.js} +1 -1
- package/dist/client/assets/{ai-providers-logos-Du8KzWpH.js → ai-providers-logos-BditdJqa.js} +1 -1
- package/dist/client/assets/{alert-dialog-BIZOEctM.js → alert-dialog-BTHm3OB6.js} +1 -1
- package/dist/client/assets/{auth-catchall-BjYN1-n9.js → auth-catchall-c350Gt_l.js} +1 -1
- package/dist/client/assets/{automation-detail-Ca2mfThk.js → automation-detail-KCkCQOlG.js} +1 -1
- package/dist/client/assets/{automations-D_MLQzBu.js → automations-DlYjNJ-T.js} +1 -1
- package/dist/client/assets/{avatar-BDzYYIB_.js → avatar-B2cKnsRn.js} +1 -1
- package/dist/client/assets/{badge-CintUB2m.js → badge-BHawtHqt.js} +1 -1
- package/dist/client/assets/{breadcrumb-CCT_gYCX.js → breadcrumb-D8w6T3TH.js} +1 -1
- package/dist/client/assets/{card-DiqqquYR.js → card-DP3El98a.js} +1 -1
- package/dist/client/assets/{checkbox-B5yMaD1U.js → checkbox-B17TL9Yy.js} +1 -1
- package/dist/client/assets/{collapsible-CUnNCwaM.js → collapsible-DbjcsjQi.js} +1 -1
- package/dist/client/assets/{collection-detail-DYyODume.js → collection-detail-C6eOIJhR.js} +1 -1
- package/dist/client/assets/{collection-display-button-6w4fqzbK.js → collection-display-button-CCE6Hf4p.js} +1 -1
- package/dist/client/assets/{collection-search-R3szwhKc.js → collection-search-DQX16wbn.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BYkH4l2b.js → collection-table-wrapper-Csa2FMUQ.js} +1 -1
- package/dist/client/assets/{collection-tabs-CTpzw-QP.js → collection-tabs-CNP12Tiu.js} +1 -1
- package/dist/client/assets/{collections-Md0axhBZ.js → collections-nigUfX75.js} +1 -1
- package/dist/client/assets/{command-oqXofzFf.js → command-CEWGR7a5.js} +1 -1
- package/dist/client/assets/{connection-card-u3N2FMhV.js → connection-card-4f__CZNa.js} +1 -1
- package/dist/client/assets/{connection-detail-DkArP4xi.js → connection-detail-B9kB7yu6.js} +1 -1
- package/dist/client/assets/{connections-DYEJw6-9.js → connections-BCGXism-.js} +1 -1
- package/dist/client/assets/{constants-Cf6w8uWj.js → constants-B5ylLz8P.js} +1 -1
- package/dist/client/assets/constants-G9TKH6sR.js +1 -0
- package/dist/client/assets/{context-BNN0sjtQ.js → context-DRHBeAGs.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Dxw___Aq.js → create-organization-dialog-CWSHs2rw.js} +1 -1
- package/dist/client/assets/{create-project-dialog-Db-cXCFP.js → create-project-dialog-CX--SrDy.js} +1 -1
- package/dist/client/assets/{danger-D0MixhKB.js → danger-CGFCjSd5.js} +1 -1
- package/dist/client/assets/{danger-zone-DJu8uIZo.js → danger-zone-DS1p5Z1H.js} +1 -1
- package/dist/client/assets/{dependencies-DKpj5-z2.js → dependencies-DzKDg0s7.js} +1 -1
- package/dist/client/assets/{dialog-B_ZBKGcK.js → dialog-D7WigTyK.js} +1 -1
- package/dist/client/assets/{drawer-DxTGqDKY.js → drawer-DkpraRh8.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BGBf4SQr.js → dropdown-menu-PjKkpqts.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BwaaiDL6.js → dynamic-plugin-layout--G8RvSxX.js} +1 -1
- package/dist/client/assets/{editable-task-title-mwJckul7.js → editable-task-title-DW-xTRvX.js} +1 -1
- package/dist/client/assets/{empty-state-Dt5CC_E7.js → empty-state-CAvSvSHU.js} +1 -1
- package/dist/client/assets/{empty-state-5hCgVmoA.js → empty-state-D14a0Zxq.js} +1 -1
- package/dist/client/assets/{env-vars-editor-CSLx760Y.js → env-vars-editor-Kwm2KcaP.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BdJfym5q.js → extract-connection-data-BhDGo06G.js} +1 -1
- package/dist/client/assets/{form-BAfFoDTS.js → form-DXxHt_ci.js} +1 -1
- package/dist/client/assets/{general-ihPcNIOb.js → general-BQAd2Vf4.js} +1 -1
- package/dist/client/assets/{home-BSU9U8m-.js → home-C9Hjf4rP.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-CxiHwpr_.js → import-from-deco-dialog-B6yW7KqN.js} +1 -1
- package/dist/client/assets/{index-BUla3j6g.js → index-B-Jlqnye.js} +1 -1
- package/dist/client/assets/{index-DzY5efun.js → index-BBdUsNQs.js} +1 -1
- package/dist/client/assets/{index-ALdwmNA1.js → index-BxcI4xNK.js} +1 -1
- package/dist/client/assets/{index-CT7BYuwf.js → index-D3056qAr.js} +1 -1
- package/dist/client/assets/{index-BlVIyhiN.js → index-DWiV_aLY.js} +1 -1
- package/dist/client/assets/{index-BB9dnQ8g.js → index-DlX3m2OJ.js} +1 -1
- package/dist/client/assets/{index-BclDkWx8.js → index-Dqx4k4bH.js} +1 -1
- package/dist/client/assets/{index-D2soXfaG.js → index-Drzwukrz.js} +1 -1
- package/dist/client/assets/{index-CGKC8BVy.js → index-cjdRPOfg.js} +1 -1
- package/dist/client/assets/{index-Y_g6-sbQ.js → index-fnzLSheB.js} +2 -2
- package/dist/client/assets/{index-TzbVkru2.js → index-mZiJdp7F.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BvNG1QG_.js → infiniteQueryObserver-DN95LZQa.js} +1 -1
- package/dist/client/assets/{input-BJjZBSH8.js → input-CBI5HJST.js} +1 -1
- package/dist/client/assets/{integration-icon-7Bz6GmNv.js → integration-icon-3E3I1Ow-.js} +1 -1
- package/dist/client/assets/{label-BagqgWUv.js → label-_1-T_NFE.js} +1 -1
- package/dist/client/assets/{layout-BPbh2R4B.js → layout-6qPsvkaE.js} +1 -1
- package/dist/client/assets/{layout-BL6sB2DL.js → layout-Bz1664Tv.js} +1 -1
- package/dist/client/assets/{login-DfPhQ0qS.js → login-C_txKEQ0.js} +1 -1
- package/dist/client/assets/{logo-upload-BlhGNrgV.js → logo-upload-mdUsABL8.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BSLoo8nT.js → mcp-app-renderer-B2FWYfE4.js} +1 -1
- package/dist/client/assets/{mcp-server-card-DV_BN-gm.js → mcp-server-card-BIEWzRvB.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-CZ_j8X5E.js → mcp-server-detail-BOnb8TLh.js} +2 -2
- package/dist/client/assets/{members-2b6Jtq6P.js → members-ayS36sMo.js} +1 -1
- package/dist/client/assets/{monaco-editor-CzOYJf-q.js → monaco-editor-WEkFmf8F.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-BltMP3h3.js → monitoring-dashboard-edit-Cjg34Kwl.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-CwHqCHxn.js → monitoring-dashboard-view-Sy_NtlSG.js} +1 -1
- package/dist/client/assets/{monitoring-B3bfHtHG.js → monitoring-oPPTc1LP.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DdkGoKLi.js → monitoring-stats-row-Bn9Uwk5d.js} +1 -1
- package/dist/client/assets/{oauth-callback-Csht94Tu.js → oauth-callback-49UXjt9V.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-4QVXXmM1.js → oauth-callback-ai-provider-BVZyJ0h5.js} +1 -1
- package/dist/client/assets/{org-ai-providers-Udjn3QRR.js → org-ai-providers-BM6HJKuc.js} +1 -1
- package/dist/client/assets/{page-CZ2WRv_I.js → page-DZsI7Ctd.js} +1 -1
- package/dist/client/assets/{page-Bu3owRsU.js → page-DqQHSwAo.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-2Yos5GOU.js → plugin-empty-state-ChNZcRJs.js} +1 -1
- package/dist/client/assets/{plugin-header-CqAMfljl.js → plugin-header-D6KTV5fu.js} +1 -1
- package/dist/client/assets/plugins-DWpFeozR.js +1 -0
- package/dist/client/assets/{popover-lD-HtMf4.js → popover-DoT6XNod.js} +1 -1
- package/dist/client/assets/{project-app-view-BuPOn3s0.js → project-app-view-D27YxwOB.js} +1 -1
- package/dist/client/assets/project-layout-CxV9JRT2.js +1 -0
- package/dist/client/assets/{project-plugins-CIRGXDFY.js → project-plugins-DWXQnNI_.js} +1 -1
- package/dist/client/assets/{projects-list-BcL7c7DQ.js → projects-list-DGwgAc0o.js} +1 -1
- package/dist/client/assets/{registry-layout-j-JX07UN.js → registry-layout-D_7EozeN.js} +1 -1
- package/dist/client/assets/{registry-utils-DDsRF62n.js → registry-utils-BiwNNrLy.js} +1 -1
- package/dist/client/assets/{reset-password-CHFMULJN.js → reset-password-D4joRU3v.js} +1 -1
- package/dist/client/assets/{resizable-CTPIKv4j.js → resizable-BTe7pUxK.js} +1 -1
- package/dist/client/assets/{save-actions-xo9lGU3J.js → save-actions-r3fCxT64.js} +1 -1
- package/dist/client/assets/{scroll-area-Dvs0ghbP.js → scroll-area-DcQSaz6_.js} +1 -1
- package/dist/client/assets/{select-9VPJVrM5.js → select-CuLy3REb.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-B6M52JVi.js → select-virtual-mcp-DF77Fde_.js} +1 -1
- package/dist/client/assets/{shell-layout-DO1T7Kx6.js → shell-layout-ORIDPuR9.js} +2 -2
- package/dist/client/assets/{sidebar-settings-CZn76McG.js → sidebar-settings-C0JRgwvB.js} +1 -1
- package/dist/client/assets/{skeleton-DPPFiXsR.js → skeleton-kJ_1M0ks.js} +1 -1
- package/dist/client/assets/{spinner-DRNxYthF.js → spinner-CJLGQeTL.js} +1 -1
- package/dist/client/assets/{store-invite-CrG3z_Nw.js → store-invite-BvklUdrL.js} +1 -1
- package/dist/client/assets/{switch-BHSO5vl3.js → switch-uIQMlKq6.js} +1 -1
- package/dist/client/assets/{table-CvtSPXA4.js → table-BTOlVJn3.js} +1 -1
- package/dist/client/assets/{tabs-CdWME6KE.js → tabs-CxRF-CYj.js} +1 -1
- package/dist/client/assets/{task-status-DFJ-29wD.js → task-status-zYkVm9gw.js} +1 -1
- package/dist/client/assets/tasks-cDGgR1rD.js +1 -0
- package/dist/client/assets/{tasks-panel-BRc3ZfGK.js → tasks-panel-otVJY_Br.js} +1 -1
- package/dist/client/assets/{textarea-Dtfhz_OA.js → textarea-rEHudfyV.js} +1 -1
- package/dist/client/assets/{time-range-picker-DcKa3AFf.js → time-range-picker-BCnME4zz.js} +1 -1
- package/dist/client/assets/{toggle-group-iephCdnh.js → toggle-group-vE44W8pW.js} +1 -1
- package/dist/client/assets/{tools-list-CDbT-l23.js → tools-list-BZyPUTpN.js} +1 -1
- package/dist/client/assets/{tooltip-Cem552VW.js → tooltip-hlHlzWhV.js} +1 -1
- package/dist/client/assets/{types-DmDUXWAD.js → types-BMfsriOE.js} +1 -1
- package/dist/client/assets/{use-automations-DSFrBv_6.js → use-automations-BNWbF42a.js} +1 -1
- package/dist/client/assets/{use-collections-D0k_QRc1.js → use-collections-B0VCcn8e.js} +1 -1
- package/dist/client/assets/{use-connection-CP_xYk4Q.js → use-connection-BUxUpG_F.js} +1 -1
- package/dist/client/assets/{use-copy-d-3iM6J5.js → use-copy-J8HCGL54.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Dl6pqwaW.js → use-create-virtual-mcp-CSUTkPbs.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DtHbnYey.js → use-infinite-scroll-ztH4kpTo.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-DZlZY82P.js → use-install-from-registry-BkNDTVYn.js} +1 -1
- package/dist/client/assets/{use-list-state-DlUAsHMe.js → use-list-state-DYEAn42K.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-8NM9rwku.js → use-mcp-prompts-vhovBlsL.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-CHuUMbyT.js → use-mcp-resources-BR6sQvU6.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BhKK8D6X.js → use-mcp-tools-CfZSf4F7.js} +1 -1
- package/dist/client/assets/{use-members-dsS5L-Vf.js → use-members-DgXFii4e.js} +1 -1
- package/dist/client/assets/{use-project-3rL77wj_.js → use-project-_2326oBQ.js} +1 -1
- package/dist/client/assets/{use-store-discovery-CbIFZaKF.js → use-store-discovery-QlCtGR49.js} +1 -1
- package/dist/client/assets/{use-view-mode-CUtH8BDh.js → use-view-mode-Ctjdtgx6.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-tHRSpblC.js → use-virtual-mcp-DtVNlpR8.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-COM61pAf.js +1 -0
- package/dist/client/assets/{useMutation-09-2Qwl6.js → useMutation-CsiTkFgY.js} +1 -1
- package/dist/client/assets/useQuery-D7A6izWp.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-aZXW_lbE.js +1 -0
- package/dist/client/assets/{user-BOuwXTIR.js → user-Bs9OrNKP.js} +1 -1
- package/dist/client/assets/{workflow-D4GNw4Q9.js → workflow--ij0aqKH.js} +1 -1
- package/dist/client/assets/{workflow-BXPIrAUA.js → workflow-XMMRqOtB.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/constants-B4UGdbkn.js +0 -1
- package/dist/client/assets/plugins-CCu6p4dx.js +0 -1
- package/dist/client/assets/project-layout-u1PVsl6x.js +0 -1
- package/dist/client/assets/tasks-BlhTZX1-.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CjAl-HeV.js +0 -1
- package/dist/client/assets/useQuery-DKMHT49Q.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DZTp9qX4.js +0 -1
- package/dist/server/node_modules/pg/LICENSE +0 -21
- package/dist/server/node_modules/pg/README.md +0 -95
- package/dist/server/node_modules/pg/esm/index.mjs +0 -20
- package/dist/server/node_modules/pg/lib/client.js +0 -743
- package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
- package/dist/server/node_modules/pg/lib/connection.js +0 -221
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
- package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
- package/dist/server/node_modules/pg/lib/defaults.js +0 -91
- package/dist/server/node_modules/pg/lib/index.js +0 -73
- package/dist/server/node_modules/pg/lib/native/client.js +0 -323
- package/dist/server/node_modules/pg/lib/native/index.js +0 -2
- package/dist/server/node_modules/pg/lib/native/query.js +0 -165
- package/dist/server/node_modules/pg/lib/query.js +0 -252
- package/dist/server/node_modules/pg/lib/result.js +0 -109
- package/dist/server/node_modules/pg/lib/stream.js +0 -83
- package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
- package/dist/server/node_modules/pg/lib/utils.js +0 -217
- package/dist/server/node_modules/pg/package.json +0 -76
- package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
- package/dist/server/node_modules/postgres-array/index.js +0 -97
- package/dist/server/node_modules/postgres-array/license +0 -21
- package/dist/server/node_modules/postgres-array/package.json +0 -35
- package/dist/server/node_modules/postgres-array/readme.md +0 -43
- package/dist/server/node_modules/postgres-bytea/index.js +0 -33
- package/dist/server/node_modules/postgres-bytea/license +0 -21
- package/dist/server/node_modules/postgres-bytea/package.json +0 -34
- package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
- package/dist/server/node_modules/postgres-date/index.js +0 -116
- package/dist/server/node_modules/postgres-date/license +0 -21
- package/dist/server/node_modules/postgres-date/package.json +0 -33
- package/dist/server/node_modules/postgres-date/readme.md +0 -49
- package/dist/server/node_modules/split2/LICENSE +0 -13
- package/dist/server/node_modules/split2/README.md +0 -85
- package/dist/server/node_modules/split2/bench.js +0 -27
- package/dist/server/node_modules/split2/index.js +0 -141
- package/dist/server/node_modules/split2/package.json +0 -39
- package/dist/server/node_modules/split2/test.js +0 -409
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));i.displayName="AlertCircle";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M19 12H5m0 0 7 7m-7-7 7-7"}));i.displayName="ArrowLeft";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const i=({size:e=24,color:o="currentColor",...t})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},r.createElement("path",{d:"M12 5v14m0 0 7-7m-7 7-7-7"}));i.displayName="ArrowDown";const n=({size:e=24,color:o="currentColor",...t})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},r.createElement("path",{d:"M12 19V5m0 0-7 7m7-7 7 7"}));n.displayName="ArrowUp";export{n as i,i as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M20 6 9 17l-5-5"}));i.displayName="Check";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const n=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m6 9 6 6 6-6"}));n.displayName="ChevronDown";export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m9 18 6-6-6-6"}));i.displayName="ChevronRight";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const n=({size:e=24,color:o="currentColor",...t})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},r.createElement("path",{d:"m18 15-6-6-6 6"}));n.displayName="ChevronUp";export{n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const c=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M20.5 7.278 12 12m0 0L3.5 7.278M12 12v9.5m9-5.441V7.942c0-.343 0-.514-.05-.667a1 1 0 0 0-.215-.364c-.109-.119-.258-.202-.558-.368l-7.4-4.111c-.284-.158-.425-.237-.575-.267a1 1 0 0 0-.403 0c-.15.03-.292.11-.576.267l-7.4 4.11c-.3.167-.45.25-.558.369a1 1 0 0 0-.215.364C3 7.428 3 7.599 3 7.942v8.117c0 .342 0 .514.05.666a1 1 0 0 0 .215.364c.109.119.258.202.558.368l7.4 4.111c.284.158.425.237.576.268.133.027.27.027.402 0 .15-.031.292-.11.576-.268l7.4-4.11c.3-.167.45-.25.558-.369a.999.999 0 0 0 .215-.364c.05-.152.05-.324.05-.666Z"}));c.displayName="Container";export{c as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a}from"./index-
|
|
1
|
+
import{r as a}from"./index-fnzLSheB.js";const t=({size:c=24,color:e="currentColor",...r})=>a.createElement("svg",{viewBox:"0 0 24 24",width:c,height:c,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},a.createElement("path",{d:"M11 4.5h7.3c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874c.218.428.218.988.218 2.108V9c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C19.898 12 19.432 12 18.5 12M13 19.5H5.7c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C2.5 17.98 2.5 17.42 2.5 16.3V15c0-.932 0-1.398.152-1.765a2 2 0 0 1 1.083-1.083C4.102 12 4.568 12 5.5 12m4.8 2.5h3.4c.28 0 .42 0 .527-.055a.5.5 0 0 0 .218-.218c.055-.107.055-.247.055-.527v-3.4c0-.28 0-.42-.055-.527a.5.5 0 0 0-.218-.218C14.12 9.5 13.98 9.5 13.7 9.5h-3.4c-.28 0-.42 0-.527.055a.5.5 0 0 0-.218.218c-.055.107-.055.247-.055.527v3.4c0 .28 0 .42.055.527a.5.5 0 0 0 .218.218c.107.055.247.055.527.055Zm7.5 7.5h3.4c.28 0 .42 0 .527-.055a.5.5 0 0 0 .218-.218C22 21.62 22 21.48 22 21.2v-3.4c0-.28 0-.42-.055-.527a.5.5 0 0 0-.218-.218C21.62 17 21.48 17 21.2 17h-3.4c-.28 0-.42 0-.527.055a.5.5 0 0 0-.218.218C17 17.38 17 17.52 17 17.8v3.4c0 .28 0 .42.055.527a.5.5 0 0 0 .218.218c.107.055.247.055.527.055ZM2.8 7h3.4c.28 0 .42 0 .527-.054a.5.5 0 0 0 .218-.219C7 6.62 7 6.48 7 6.2V2.8c0-.28 0-.42-.054-.527a.5.5 0 0 0-.219-.219C6.62 2 6.48 2 6.2 2H2.8c-.28 0-.42 0-.527.054a.5.5 0 0 0-.219.219C2 2.38 2 2.52 2 2.8v3.4c0 .28 0 .42.054.527a.5.5 0 0 0 .219.218C2.38 7 2.52 7 2.8 7Z"}));t.displayName="Dataflow03";export{t as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const a=({size:e=24,color:o="currentColor",...t})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},r.createElement("path",{d:"m13 7-1.116-2.231c-.32-.642-.481-.963-.72-1.198a2 2 0 0 0-.748-.462C10.1 3 9.74 3 9.022 3H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 4.52 2 5.08 2 6.2V7m0 0h15.2c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C22 9.28 22 10.12 22 11.8v4.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2V7Zm7.5 4.5 5 5M16 14a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"}));a.displayName="FolderClosed";export{a as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));i.displayName="Loading01";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./index-
|
|
1
|
+
import{r as t}from"./index-fnzLSheB.js";const a=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M5 15c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C2 13.398 2 12.932 2 12V5.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C3.52 2 4.08 2 5.2 2H12c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C15 3.602 15 4.068 15 5m-2.8 17h6.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.48 22 19.92 22 18.8v-6.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 9 19.92 9 18.8 9h-6.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C9 10.52 9 11.08 9 12.2v6.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C10.52 22 11.08 22 12.2 22Z"}));a.displayName="Copy01";const i=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-5-5 5m0 0-5-5m5 5V3"}));i.displayName="Download01";const n=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M6 12h12M3 6h18M9 18h6"}));n.displayName="FilterLines";const c=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M17 9a1.99 1.99 0 0 0-.586-1.414A1.994 1.994 0 0 0 15 7m0 8a6 6 0 1 0-5.946-5.193c.058.434.087.651.068.789a.853.853 0 0 1-.117.346c-.068.121-.187.24-.426.479l-5.11 5.11c-.173.173-.26.26-.322.36a1 1 0 0 0-.12.29C3 17.296 3 17.418 3 17.663V19.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H7v-2h2v-2h2l1.58-1.58c.238-.238.357-.357.478-.425a.852.852 0 0 1 .346-.117c.138-.02.355.01.789.068.264.036.533.054.807.054Z"}));c.displayName="Key01";const s=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M5 4.99c0-.972 0-1.457.202-1.725a1 1 0 0 1 .738-.395c.335-.02.74.25 1.548.788l10.515 7.01c.668.446 1.002.668 1.118.949a1 1 0 0 1 0 .766c-.116.28-.45.503-1.118.948l-10.515 7.01c-.809.54-1.213.809-1.548.789a1 1 0 0 1-.738-.395C5 20.467 5 19.98 5 19.01V4.99Z"}));s.displayName="Play";export{n as a,c as b,a as c,s as i,i as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M12 5v14m-7-7h14"}));i.displayName="Plus";export{i as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./index-
|
|
1
|
+
import{r as t}from"./index-fnzLSheB.js";const i=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));i.displayName="Circle";const n=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0-7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));n.displayName="DotsVertical";const a=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M2.42 12.713c-.136-.215-.204-.323-.242-.49a1.173 1.173 0 0 1 0-.446c.038-.167.106-.274.242-.49C3.546 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.029.125.029.322 0 .446-.038.167-.106.274-.242.49C20.455 14.495 17.105 19 12 19c-5.106 0-8.455-4.505-9.58-6.287Z"}),t.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));a.displayName="Eye";const s=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M2 10s2.005-2.732 3.634-4.362A9 9 0 1 1 12 21a9.004 9.004 0 0 1-8.648-6.5M2 10V4m0 6h6"}));s.displayName="RefreshCcw01";export{s as a,i as b,n as i,a as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"m21 21-4.35-4.35M19 11a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z"}));i.displayName="SearchMd";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a}from"./index-
|
|
1
|
+
import{r as a}from"./index-fnzLSheB.js";const o=({size:e=24,color:t="currentColor",...r})=>a.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},a.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}),a.createElement("path",{d:"M18.727 14.727a1.5 1.5 0 0 0 .3 1.655l.055.054a1.816 1.816 0 0 1 0 2.573 1.818 1.818 0 0 1-2.573 0l-.055-.055a1.5 1.5 0 0 0-1.654-.3 1.5 1.5 0 0 0-.91 1.373v.155a1.818 1.818 0 1 1-3.636 0V20.1a1.5 1.5 0 0 0-.981-1.373 1.5 1.5 0 0 0-1.655.3l-.054.055a1.818 1.818 0 0 1-3.106-1.287 1.818 1.818 0 0 1 .533-1.286l.054-.055a1.5 1.5 0 0 0 .3-1.654 1.5 1.5 0 0 0-1.372-.91h-.155a1.818 1.818 0 1 1 0-3.636H3.9a1.5 1.5 0 0 0 1.373-.981 1.5 1.5 0 0 0-.3-1.655l-.055-.054A1.818 1.818 0 1 1 7.491 4.99l.054.054a1.5 1.5 0 0 0 1.655.3h.073a1.5 1.5 0 0 0 .909-1.372v-.155a1.818 1.818 0 0 1 3.636 0V3.9a1.499 1.499 0 0 0 .91 1.373 1.5 1.5 0 0 0 1.654-.3l.054-.055a1.817 1.817 0 0 1 2.573 0 1.819 1.819 0 0 1 0 2.573l-.055.054a1.5 1.5 0 0 0-.3 1.655v.073a1.5 1.5 0 0 0 1.373.909h.155a1.818 1.818 0 0 1 0 3.636H20.1a1.499 1.499 0 0 0-1.373.91Z"}));o.displayName="Settings01";export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M16 6v-.8c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 2 13.92 2 12.8 2h-1.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C8 3.52 8 4.08 8 5.2V6m2 5.5v5m4-5v5M3 6h18m-2 0v11.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C16.72 22 15.88 22 14.2 22H9.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C5 19.72 5 18.88 5 17.2V6"}));a.displayName="Trash01";export{a as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./index-
|
|
1
|
+
import{r as t}from"./index-fnzLSheB.js";const a=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M21 10H3m13-8v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22Z"}));a.displayName="Calendar";const i=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"m15 18-6-6 6-6"}));i.displayName="ChevronLeft";const n=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M12 6v6l4 2m6-2c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));n.displayName="Clock";const c=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"m16 18 6-6-6-6M8 6l-6 6 6 6"}));c.displayName="Code01";const s=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M11 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 22 5.12 22 6.8 22h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 19.72 20 18.88 20 17.2V13M8 16h1.675c.489 0 .733 0 .963-.055.204-.05.4-.13.579-.24.201-.123.374-.296.72-.642L21.5 5.5a2.121 2.121 0 0 0-3-3l-9.563 9.563c-.346.346-.519.519-.642.72a2 2 0 0 0-.24.579c-.055.23-.055.474-.055.963V16Z"}));s.displayName="Edit05";const d=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M8.4 3H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 3.76 3 4.04 3 4.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 10 4.04 10 4.6 10h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C10 9.24 10 8.96 10 8.4V4.6c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C9.24 3 8.96 3 8.4 3Zm11 0h-3.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C14 3.76 14 4.04 14 4.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C14.76 10 15.04 10 15.6 10h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C21 9.24 21 8.96 21 8.4V4.6c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C20.24 3 19.96 3 19.4 3Zm0 11h-3.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C14 14.76 14 15.04 14 15.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C14.76 21 15.04 21 15.6 21h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C21 20.24 21 19.96 21 19.4v-3.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C20.24 14 19.96 14 19.4 14Zm-11 0H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 14.76 3 15.04 3 15.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C10 20.24 10 19.96 10 19.4v-3.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C9.24 14 8.96 14 8.4 14Z"}));d.displayName="Grid01";const h=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M4 7c0-.932 0-1.398.152-1.765a2 2 0 0 1 1.083-1.083C5.602 4 6.068 4 7 4h10c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C20 5.602 20 6.068 20 7M9 20h6M12 4v16"}));h.displayName="Type01";export{s as a,a as b,d as c,h as d,c as i,i as n,n as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-7-5-5m0 0L7 8m5-5v12"}));i.displayName="Upload01";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const a=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"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"}));a.displayName="User01";export{a as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M17 7 7 17M7 7l10 10"}));i.displayName="X";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./index-
|
|
1
|
+
import{r as t}from"./index-fnzLSheB.js";const a=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M5 12h14m0 0-7-7m7 7-7 7"}));a.displayName="ArrowRight";const i=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"m7.5 12 3 3 6-6m5.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));i.displayName="CheckCircle";const n=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"m9 12 2 2 4.5-4.5m2.401-4.501a2.03 2.03 0 0 0 1.1 1.1l1.744.723a2.033 2.033 0 0 1 1.1 2.656l-.722 1.744a2.03 2.03 0 0 0 0 1.556l.722 1.744a2.033 2.033 0 0 1-1.1 2.656L19 17.901A2.033 2.033 0 0 0 17.9 19l-.723 1.745a2.032 2.032 0 0 1-2.656 1.1l-1.744-.722a2.032 2.032 0 0 0-1.555 0l-1.745.723a2.033 2.033 0 0 1-2.654-1.1L6.1 19.001A2.033 2.033 0 0 0 5 17.9l-1.744-.723a2.033 2.033 0 0 1-1.1-2.654l.721-1.744a2.033 2.033 0 0 0 0-1.556l-.722-1.746a2.033 2.033 0 0 1 1.1-2.657L5 6.098A2.03 2.03 0 0 0 6.1 5l.723-1.745a2.033 2.033 0 0 1 2.656-1.1l1.744.722a2.033 2.033 0 0 0 1.555-.001l1.746-.72a2.032 2.032 0 0 1 2.655 1.1l.723 1.746v-.003Z"}));n.displayName="CheckVerified02";const c=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M10.743 5.092C11.149 5.032 11.569 5 12 5c5.105 0 8.455 4.505 9.58 6.287.137.215.205.323.243.49a1.16 1.16 0 0 1 0 .447c-.038.166-.107.274-.244.492-.3.474-.757 1.141-1.363 1.865M6.724 6.715c-2.162 1.467-3.63 3.504-4.303 4.57-.137.217-.205.325-.243.492a1.173 1.173 0 0 0 0 .446c.038.167.106.274.242.49C3.546 14.495 6.895 19 12 19c2.059 0 3.832-.732 5.289-1.723M3 3l18 18M9.88 9.879a3 3 0 1 0 4.243 4.243"}));c.displayName="EyeOff";const l=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M3 9h13.5a4.5 4.5 0 1 1 0 9H12M3 9l4-4M3 9l4 4"}));l.displayName="FlipBackward";const s=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M2 12h20M2 12c0 5.523 4.477 10 10 10M2 12C2 6.477 6.477 2 12 2m10 10c0 5.523-4.477 10-10 10m10-10c0-5.523-4.477-10-10-10m0 0a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10m0-20a15.3 15.3 0 0 0-4 10 15.3 15.3 0 0 0 4 10"}));s.displayName="Globe01";const d=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M12.5 3H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H17c.93 0 1.395 0 1.776-.102a3 3 0 0 0 2.122-2.122C21 18.395 21 17.93 21 17m-2-9V2m-3 3h6M10.5 8.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4.49 3.418-8.459 7.69c-.476.433-.714.649-.735.836a.5.5 0 0 0 .167.431C6.105 21 6.426 21 7.07 21h9.387c1.44 0 2.159 0 2.724-.242a3 3 0 0 0 1.578-1.578c.242-.565.242-1.285.242-2.724 0-.484 0-.726-.053-.952a2.001 2.001 0 0 0-.374-.778c-.143-.182-.332-.333-.71-.636l-2.797-2.237c-.379-.303-.568-.454-.776-.508a1 1 0 0 0-.557.018c-.205.066-.384.23-.743.555Z"}));d.displayName="ImagePlus";const h=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"m12.708 18.364-1.415 1.414a5 5 0 1 1-7.07-7.07l1.413-1.415m12.728 1.414 1.415-1.414a5 5 0 0 0-7.071-7.071l-1.415 1.414M8.5 15.5l7-7"}));h.displayName="Link01";const m=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M21 9V3m0 0h-6m6 0-8 8m-3-6H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 7.28 3 8.12 3 9.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C19 18.72 19 17.88 19 16.2V14"}));m.displayName="LinkExternal01";const k=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M10.5 9.002a2.248 2.248 0 0 1 4.369.75C14.869 11.25 12.62 12 12.62 12m.028 3h.01m-.16 5a8.5 8.5 0 1 0-8.056-5.783c.108.32.162.481.172.604a.899.899 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021.07.002.12.009.187.024.069.016.155.05.329.116A8.478 8.478 0 0 0 12.5 20Z"}));k.displayName="MessageQuestionCircle";const u=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M7 3v3.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C7.76 8 8.04 8 8.6 8h6.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C17 7.24 17 6.96 17 6.4V4m0 17v-6.4c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C16.24 13 15.96 13 15.4 13H8.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C7 13.76 7 14.04 7 14.6V21M21 9.325V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h6.875c.489 0 .733 0 .963.055.204.05.4.13.579.24.201.123.374.296.72.642l3.126 3.126c.346.346.519.519.642.72.11.18.19.374.24.579.055.23.055.474.055.963Z"}));u.displayName="Save01";const p=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"}),t.createElement("path",{d:"M8 9.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C8.76 8 9.04 8 9.6 8h4.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C16 8.76 16 9.04 16 9.6v4.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C15.24 16 14.96 16 14.4 16H9.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C8 15.24 8 14.96 8 14.4V9.6Z"}));p.displayName="StopSquare";const C=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"m6 6 4.5 4.5M6 6H3L2 3l1-1 3 1v3Zm13.259-3.259-2.628 2.628c-.396.396-.594.594-.668.822a1 1 0 0 0 0 .618c.074.228.272.426.668.822l.238.238c.396.396.594.594.822.668a1 1 0 0 0 .618 0c.228-.074.426-.272.822-.668L21.59 5.41a5.5 5.5 0 0 1-6.16 7.485c-.485-.096-.729-.144-.876-.13a.836.836 0 0 0-.373.114c-.13.07-.261.201-.523.463L6.5 20.5a2.121 2.121 0 0 1-3-3l7.157-7.157c.262-.262.393-.393.463-.524a.836.836 0 0 0 .113-.372c.015-.148-.033-.39-.129-.877a5.5 5.5 0 0 1 8.155-5.83ZM12 15l5.5 5.5a2.121 2.121 0 0 0 3-3l-4.525-4.525a5.475 5.475 0 0 1-.934-.17c-.39-.107-.816-.03-1.101.255L12 15Z"}));C.displayName="Tool02";const v=({size:e=24,color:o="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"m15 9-6 6m0-6 6 6m7-3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));v.displayName="XCircle";export{l as a,u as b,i as c,a as d,v as e,c as f,s as g,d as h,n as i,h as j,C as k,p as l,m as n,k as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M18 6 6 18M6 6l12 12"}));i.displayName="XClose";export{i as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-fnzLSheB.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M13 2 4.093 12.688c-.348.418-.523.628-.525.804a.5.5 0 0 0 .185.397c.138.111.41.111.955.111H12l-1 8 8.907-10.688c.348-.418.523-.628.525-.804a.5.5 0 0 0-.185-.397c-.138-.111-.41-.111-.955-.111H12l1-8Z"}));i.displayName="Zap";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as h,y as d,j as n,r as v}from"./index-
|
|
1
|
+
import{d as h,y as d,j as n,r as v}from"./index-fnzLSheB.js";import{I as p}from"./integration-icon-3E3I1Ow-.js";import{u as z}from"./use-connection-BUxUpG_F.js";function f(g){const e=h.c(4),{connection_id:i,iconSize:a}=g,c=a===void 0?"xs":a,s=z(i);if(!s)return null;let t;return e[0]!==s.icon||e[1]!==s.title||e[2]!==c?(t=n.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:n.jsx(p,{icon:s.icon,name:s.title,size:c})}),e[0]=s.icon,e[1]=s.title,e[2]=c,e[3]=t):t=e[3],t}f.Fallback=function({iconSize:e="xs"}){const i=e==="sm"?"size-6":"size-5";return n.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:n.jsx("div",{className:d(i,"rounded bg-muted animate-pulse")})})};function N(g){const e=h.c(18),{connectionIds:i,maxVisibleIcons:a,iconSize:c,className:s}=g,t=a===void 0?2:a,r=c===void 0?"xs":c;if(i.length===0)return null;let l,o,m;if(e[0]!==s||e[1]!==i||e[2]!==r||e[3]!==t){const j=i.slice(0,t);l=i.length-t,e[7]!==s?(o=d("flex items-center justify-end -space-x-2",s),e[7]=s,e[8]=o):o=e[8];let b;e[9]!==r?(b=k=>n.jsx(v.Suspense,{fallback:n.jsx(f.Fallback,{iconSize:r}),children:n.jsx(f,{connection_id:k,iconSize:r})},k),e[9]=r,e[10]=b):b=e[10],m=j.map(b),e[0]=s,e[1]=i,e[2]=r,e[3]=t,e[4]=l,e[5]=o,e[6]=m}else l=e[4],o=e[5],m=e[6];let u;e[11]!==r||e[12]!==l?(u=l>0&&n.jsx("div",{className:d("shrink-0 bg-background ring-1 ring-background border border-border rounded-lg flex items-center justify-center",r==="sm"?"size-8":"size-6"),children:n.jsxs("span",{className:d(r==="sm"?"text-sm":"text-xs","font-medium text-muted-foreground"),children:["+",l]})}),e[11]=r,e[12]=l,e[13]=u):u=e[13];let x;return e[14]!==o||e[15]!==m||e[16]!==u?(x=n.jsxs("div",{className:o,children:[m,u]}),e[14]=o,e[15]=m,e[16]=u,e[17]=x):x=e[17],x}N.Fallback=function({maxVisibleIcons:e=2,iconSize:i="xs"}){const a=i==="sm"?"size-6":"size-5",c=i==="sm"?"size-8":"size-6";return n.jsxs("div",{className:"flex items-center -space-x-2",children:[Array.from({length:Math.min(e,2)}).map((s,t)=>n.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:n.jsx("div",{className:d(a,"rounded bg-muted animate-pulse")})},t)),n.jsx("div",{className:d("shrink-0 bg-background ring-1 ring-background border border-border rounded-lg flex items-center justify-center",c),children:n.jsx("div",{className:d(i==="sm"?"h-3.5 w-5":"h-3 w-4","rounded bg-muted animate-pulse")})})]})};export{N as A};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as R,r as M,y as J,j as t,w as te,B as X,E as pe,a8 as ot,c as me,V as nt,q as rt,f as it,k as at,O as Ye,v as ct,t as dt,H as mt,J as Ge}from"./index-Y_g6-sbQ.js";import{u as ut}from"./context-BNN0sjtQ.js";import{E as ft}from"./empty-state-5hCgVmoA.js";import{I as be}from"./input-BJjZBSH8.js";import{a as Je,b as qe,P as Qe}from"./popover-lD-HtMf4.js";import{S as xt}from"./scroll-area-Dvs0ghbP.js";import{a as pt,i as ht}from"./Type01-D1knZTdC.js";import{i as gt}from"./SearchMd-BVguqJPF.js";import{u as xe,v as Xe,w as Ze,x as jt,y as bt,z as Ce,B as Ue,A as He,C as Nt,D as yt,I as $e,E as ze,F as Re,G as Le,H as vt,J as Se,K as Ct,L as St}from"./integration-icon-7Bz6GmNv.js";import{i as _t}from"./Upload01-D-cgBdXK.js";import{a as Tt}from"./index-BlVIyhiN.js";import{B as Pe}from"./badge-CintUB2m.js";import{C as kt,a as wt}from"./collapsible-CUnNCwaM.js";import{S as It}from"./switch-BHSO5vl3.js";import{T as Et}from"./textarea-Dtfhz_OA.js";import{u as At,a as he,c as _e,T as ge,b as je}from"./tooltip-Cem552VW.js";import{b as Ot,u as Dt}from"./use-connection-CP_xYk4Q.js";import{u as $t,a as zt}from"./use-virtual-mcp-tHRSpblC.js";import{i as et}from"./ChevronRight-BvErZvXV.js";import{n as Rt}from"./ChevronUp-BPTkFtVQ.js";import{i as Me}from"./Loading01-DTPGNGDe.js";import{c as Fe,b as Lt,i as Pt}from"./Play-BSN624z4.js";import{s as Ke}from"./Plus-VNSvGQN9.js";import{B as Mt,a as Ft,b as We,d as Bt,e as Vt,c as Gt}from"./breadcrumb-CCT_gYCX.js";import{V as Ut,a as Ht}from"./layout-BL6sB2DL.js";import{S as Kt}from"./save-actions-xo9lGU3J.js";import{C as Wt}from"./collection-search-R3szwhKc.js";import{T as Yt}from"./tools-list-CDbT-l23.js";import{C as Be}from"./checkbox-B5yMaD1U.js";import{d as Jt,D as tt,a as st,b as qt,c as Qt}from"./dialog-B_ZBKGcK.js";import{T as Te,a as Xt,b as ke,c as Zt}from"./tabs-CdWME6KE.js";import{u as Ne,a as es}from"./constants-Cf6w8uWj.js";import{c as ts}from"./use-mcp-tools-BhKK8D6X.js";import{a as ss}from"./use-mcp-resources-CHuUMbyT.js";import{u as ls}from"./use-mcp-prompts-8NM9rwku.js";import{s as lt}from"./slugify-CEUa2lfQ.js";import{c as os,a as ns,D as rs}from"./drawer-DxTGqDKY.js";import{I as is,R as as,a as cs}from"./index-ALdwmNA1.js";import{b as ds}from"./RefreshCcw01-Dbe0-ztA.js";import{i as ye}from"./Check-DsqqbwRv.js";import{A as ms}from"./agent-connections-preview-9beskZXW.js";import"./decopilot-events-Brt4gAR6.js";import"./index-BclDkWx8.js";import"./index-BdQq_4o_.js";import"./Container-D8gJR-V9.js";import"./AlertCircle-DoDnREQU.js";import"./ArrowUp-CiCCsmLU.js";import"./ArrowLeft-1uQ4hoAA.js";import"./XCircle-Of71XlDY.js";import"./ChevronDown-DMIUCeXF.js";import"./Dataflow03-D9B0IMv1.js";import"./FolderClosed-DtTyOuV-.js";import"./Settings01-BKawEeOc.js";import"./Trash01-p_-P7rrZ.js";import"./User01-C1Py8RLi.js";import"./XClose-CIHCEBuc.js";import"./X-AnvD8fGN.js";import"./Zap-Cbf8Gxw3.js";import"./useQuery-DKMHT49Q.js";import"./useMutation-09-2Qwl6.js";import"./index-TzbVkru2.js";import"./index-CT7BYuwf.js";import"./use-collections-D0k_QRc1.js";import"./collection-display-button-6w4fqzbK.js";import"./dropdown-menu-BGBf4SQr.js";import"./collection-table-wrapper-BYkH4l2b.js";import"./table-CvtSPXA4.js";import"./card-DiqqquYR.js";import"./types-DmDUXWAD.js";function us(n){const e=R.c(58),{value:s,onChange:o,name:l,size:r,className:d}=n,m=r===void 0?"lg":r,[i,c]=M.useState(!1),[f,h]=M.useState("icons"),[p,g]=M.useState("");let x;e[0]!==s?(x=()=>{const O=xe(s);return O.type==="icon"||O.type==="url"&&O.color?O.color:"blue"},e[0]=s,e[1]=x):x=e[1];const[a,b]=M.useState(x);let u;e[2]!==o||e[3]!==a?(u=O=>{o(Ce(O,a))},e[2]=o,e[3]=a,e[4]=u):u=e[4];const j=u;let N;e[5]!==o||e[6]!==s?(N=O=>{b(O);const Z=xe(s);Z.type==="icon"?o(Ce(Z.name,O)):Z.type==="url"&&o(Ue(Z.url,O))},e[5]=o,e[6]=s,e[7]=N):N=e[7];const C=N;let y;e[8]!==o||e[9]!==a?(y=O=>{o(Ue(O,a)),c(!1)},e[8]=o,e[9]=a,e[10]=y):y=e[10];const k=y;let w;e[11]!==o||e[12]!==a?(w=()=>{const O=Xe(),Z=O[Math.floor(Math.random()*O.length)];o(Ce(Z,a))},e[11]=o,e[12]=a,e[13]=w):w=e[13];const S=w;let E;e[14]!==d?(E=J("relative group cursor-pointer rounded-2xl",d),e[14]=d,e[15]=E):E=e[15];let _;e[16]!==l||e[17]!==m||e[18]!==s?(_=t.jsx(He,{icon:s,name:l,size:m}),e[16]=l,e[17]=m,e[18]=s,e[19]=_):_=e[19];let I;e[20]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity rounded-2xl overflow-hidden",children:t.jsx(pt,{size:16,className:"text-white"})}),e[20]=I):I=e[20];let T;e[21]!==E||e[22]!==_?(T=t.jsx(Je,{asChild:!0,children:t.jsxs("button",{type:"button",className:E,children:[_,I]})}),e[21]=E,e[22]=_,e[23]=T):T=e[23];let A;e[24]!==l||e[25]!==s?(A=t.jsx("div",{className:"flex items-center justify-center py-4",children:t.jsx(He,{icon:s,name:l,size:"xl"})}),e[24]=l,e[25]=s,e[26]=A):A=e[26];let D;e[27]===Symbol.for("react.memo_cache_sentinel")?(D=()=>h("icons"),e[27]=D):D=e[27];const G=f==="icons"?"border-foreground text-foreground":"border-transparent text-muted-foreground hover:text-foreground";let L;e[28]!==G?(L=J("px-3 py-2 text-sm font-medium border-b-2 -mb-px transition-colors",G),e[28]=G,e[29]=L):L=e[29];let F;e[30]!==L?(F=t.jsx("button",{type:"button",onClick:D,className:L,children:"Icons"}),e[30]=L,e[31]=F):F=e[31];let U;e[32]===Symbol.for("react.memo_cache_sentinel")?(U=()=>h("upload"),e[32]=U):U=e[32];const K=f==="upload"?"border-foreground text-foreground":"border-transparent text-muted-foreground hover:text-foreground";let P;e[33]!==K?(P=J("px-3 py-2 text-sm font-medium border-b-2 -mb-px transition-colors",K),e[33]=K,e[34]=P):P=e[34];let B;e[35]!==P?(B=t.jsx("button",{type:"button",onClick:U,className:P,children:"Upload"}),e[35]=P,e[36]=B):B=e[36];let $;e[37]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx("div",{className:"flex-1"}),e[37]=$):$=e[37];let z;e[38]!==F||e[39]!==B?(z=t.jsxs("div",{className:"flex items-center border-b border-border px-3",children:[F,B,$]}),e[38]=F,e[39]=B,e[40]=z):z=e[40];let V;e[41]!==C||e[42]!==S||e[43]!==j||e[44]!==k||e[45]!==p||e[46]!==a||e[47]!==f||e[48]!==s?(V=f==="icons"?t.jsx(hs,{search:p,onSearchChange:g,selectedColor:a,onColorChange:C,onSelectIcon:j,onRandom:S,currentIconName:xe(s).type==="icon"?xe(s).name:null}):t.jsx(gs,{onUpload:k}),e[41]=C,e[42]=S,e[43]=j,e[44]=k,e[45]=p,e[46]=a,e[47]=f,e[48]=s,e[49]=V):V=e[49];let W;e[50]!==A||e[51]!==z||e[52]!==V?(W=t.jsx(qe,{align:"start",className:"w-80 p-0",onOpenAutoFocus:fs,children:t.jsxs("div",{className:"flex flex-col",children:[A,z,V]})}),e[50]=A,e[51]=z,e[52]=V,e[53]=W):W=e[53];let H;return e[54]!==i||e[55]!==T||e[56]!==W?(H=t.jsxs(Qe,{open:i,onOpenChange:c,children:[T,W]}),e[54]=i,e[55]=T,e[56]=W,e[57]=H):H=e[57],H}function fs(n){return n.preventDefault()}function xs(n){const e=R.c(27),{selectedColor:s,onColorChange:o}=n,[l,r]=M.useState(!1);let d,m,i,c,f,h,p;if(e[0]!==l||e[1]!==s){const j=Ze(s);m=Qe,h=l,p=r,d=Je,f=!0,i="button",c=J("h-6 w-6 rounded-full shrink-0 ring-2 ring-offset-2 ring-offset-background transition-all cursor-pointer hover:scale-110",j.dot,"ring-foreground/20"),e[0]=l,e[1]=s,e[2]=d,e[3]=m,e[4]=i,e[5]=c,e[6]=f,e[7]=h,e[8]=p}else d=e[2],m=e[3],i=e[4],c=e[5],f=e[6],h=e[7],p=e[8];let g;e[9]!==i||e[10]!==c?(g=t.jsx("button",{type:i,className:c,title:"Change color"}),e[9]=i,e[10]=c,e[11]=g):g=e[11];let x;e[12]!==d||e[13]!==f||e[14]!==g?(x=t.jsx(d,{asChild:f,children:g}),e[12]=d,e[13]=f,e[14]=g,e[15]=x):x=e[15];let a;e[16]!==o||e[17]!==s?(a=yt.map(j=>t.jsx("button",{type:"button",onClick:()=>{o(j.name),r(!1)},className:J("h-5 w-5 rounded-full transition-all shrink-0 cursor-pointer",j.dot,s===j.name?"ring-2 ring-offset-1 ring-offset-background ring-foreground/30 scale-110":"hover:scale-110"),title:j.name},j.name)),e[16]=o,e[17]=s,e[18]=a):a=e[18];let b;e[19]!==a?(b=t.jsx(qe,{align:"start",side:"right",sideOffset:8,className:"w-auto p-2",onOpenAutoFocus:ps,children:t.jsx("div",{className:"grid grid-cols-4 gap-1",children:a})}),e[19]=a,e[20]=b):b=e[20];let u;return e[21]!==m||e[22]!==h||e[23]!==p||e[24]!==x||e[25]!==b?(u=t.jsxs(m,{open:h,onOpenChange:p,children:[x,b]}),e[21]=m,e[22]=h,e[23]=p,e[24]=x,e[25]=b,e[26]=u):u=e[26],u}function ps(n){return n.preventDefault()}function hs(n){const e=R.c(44),{search:s,onSearchChange:o,selectedColor:l,onColorChange:r,onSelectIcon:d,onRandom:m,currentIconName:i}=n;let c,f,h,p,g,x,a;if(e[0]!==i||e[1]!==r||e[2]!==m||e[3]!==o||e[4]!==d||e[5]!==s||e[6]!==l){const C=Xe(),y=Ze(l);f=s.trim()?C.filter(T=>{const A=jt(T),D=s.toLowerCase();return A.includes(D)||T.toLowerCase().includes(D)}):C,x="flex flex-col";let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(gt,{size:14,className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none"}),e[14]=k):k=e[14];let w;e[15]!==o?(w=T=>o(T.target.value),e[15]=o,e[16]=w):w=e[16];let S;e[17]!==s||e[18]!==w?(S=t.jsxs("div",{className:"relative flex-1",children:[k,t.jsx(be,{value:s,onChange:w,placeholder:"Filter...",className:"h-8 text-xs pl-7"})]}),e[17]=s,e[18]=w,e[19]=S):S=e[19];let E;e[20]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(Nt,{size:14,className:"text-muted-foreground"}),e[20]=E):E=e[20];let _;e[21]!==m?(_=t.jsx("button",{type:"button",onClick:m,className:"h-8 w-8 flex items-center justify-center rounded-md border border-border hover:bg-accent transition-colors shrink-0",title:"Random icon",children:E}),e[21]=m,e[22]=_):_=e[22];let I;e[23]!==r||e[24]!==l?(I=t.jsx(xs,{selectedColor:l,onColorChange:r}),e[23]=r,e[24]=l,e[25]=I):I=e[25],e[26]!==_||e[27]!==I||e[28]!==S?(a=t.jsxs("div",{className:"flex items-center gap-2 px-3 py-2",children:[S,_,I]}),e[26]=_,e[27]=I,e[28]=S,e[29]=a):a=e[29],c=xt,g="h-56",h="grid grid-cols-9 gap-0.5 px-2 pb-2",p=f.map(T=>{const A=bt(T);return A?t.jsx("button",{type:"button",onClick:()=>d(T),className:J("h-8 w-8 flex items-center justify-center rounded-md transition-colors cursor-pointer",i===T?J(y.bg,y.text):J(y.text,"hover:bg-accent")),title:T,children:t.jsx(A,{size:18})},T):null}),e[0]=i,e[1]=r,e[2]=m,e[3]=o,e[4]=d,e[5]=s,e[6]=l,e[7]=c,e[8]=f,e[9]=h,e[10]=p,e[11]=g,e[12]=x,e[13]=a}else c=e[7],f=e[8],h=e[9],p=e[10],g=e[11],x=e[12],a=e[13];let b;e[30]!==h||e[31]!==p?(b=t.jsx("div",{className:h,children:p}),e[30]=h,e[31]=p,e[32]=b):b=e[32];let u;e[33]!==f.length?(u=f.length===0&&t.jsx("div",{className:"flex items-center justify-center py-8 text-sm text-muted-foreground",children:"No icons found"}),e[33]=f.length,e[34]=u):u=e[34];let j;e[35]!==c||e[36]!==g||e[37]!==b||e[38]!==u?(j=t.jsxs(c,{className:g,children:[b,u]}),e[35]=c,e[36]=g,e[37]=b,e[38]=u,e[39]=j):j=e[39];let N;return e[40]!==x||e[41]!==a||e[42]!==j?(N=t.jsxs("div",{className:x,children:[a,j]}),e[40]=x,e[41]=a,e[42]=j,e[43]=N):N=e[43],N}function gs(n){const e=R.c(27),{onUpload:s}=n,o=M.useRef(null);let l;e[0]!==s?(l=k=>{const w=k.target.files?.[0];if(!w)return;if(w.size>2097152){te.error("Image must be smaller than 2MB");return}const S=new FileReader;S.onerror=()=>{te.error("Failed to read image file"),o.current&&(o.current.value="")},S.onloadend=()=>{S.readyState===FileReader.DONE&&S.result&&s(S.result),o.current&&(o.current.value="")},S.readAsDataURL(w)},e[0]=s,e[1]=l):l=e[1];const r=l,[d,m]=M.useState("");let i;e[2]!==s||e[3]!==d?(i=()=>{const k=d.trim();k&&(s(k),m(""))},e[2]=s,e[3]=d,e[4]=i):i=e[4];const c=i;let f;e[5]!==r?(f=t.jsx("input",{type:"file",ref:o,className:"hidden",accept:"image/*",onChange:r}),e[5]=r,e[6]=f):f=e[6];let h;e[7]===Symbol.for("react.memo_cache_sentinel")?(h=()=>o.current?.click(),e[7]=h):h=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsxs("button",{type:"button",onClick:h,className:"h-24 rounded-lg border-2 border-dashed border-border hover:border-foreground/50 hover:bg-accent/50 transition-colors flex flex-col items-center justify-center gap-2 text-muted-foreground hover:text-foreground",children:[t.jsx(_t,{size:20}),t.jsx("span",{className:"text-xs",children:"Click to upload an image (max 2MB)"})]}),e[8]=p):p=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"text-xs text-muted-foreground",children:"or"}),t.jsx("div",{className:"flex-1 h-px bg-border"})]}),e[9]=g):g=e[9];let x;e[10]===Symbol.for("react.memo_cache_sentinel")?(x=k=>m(k.target.value),e[10]=x):x=e[10];let a;e[11]!==c?(a=k=>{k.key==="Enter"&&(k.preventDefault(),c())},e[11]=c,e[12]=a):a=e[12];let b;e[13]!==d||e[14]!==a?(b=t.jsx(be,{value:d,onChange:x,placeholder:"Paste image URL...",className:"h-8 text-xs flex-1",onKeyDown:a}),e[13]=d,e[14]=a,e[15]=b):b=e[15];let u;e[16]!==d?(u=d.trim(),e[16]=d,e[17]=u):u=e[17];const j=!u;let N;e[18]!==c||e[19]!==j?(N=t.jsx(X,{variant:"outline",size:"sm",className:"h-8 px-3 text-xs shrink-0",onClick:c,disabled:j,children:"Apply"}),e[18]=c,e[19]=j,e[20]=N):N=e[20];let C;e[21]!==N||e[22]!==b?(C=t.jsxs("div",{className:"flex items-center gap-1.5",children:[b,N]}),e[21]=N,e[22]=b,e[23]=C):C=e[23];let y;return e[24]!==C||e[25]!==f?(y=t.jsxs("div",{className:"flex flex-col gap-3 p-4",children:[f,p,g,C]}),e[24]=C,e[25]=f,e[26]=y):y=e[26],y}function we(n){return n===null?"all":n?.length??0}function js(n,e){const s=n[e];if(!s)return"";const o=[];return s.tools===null?o.push("all tools"):s.tools&&s.tools.length>0&&o.push(`${s.tools.length} tools`),s.resources===null?o.push("all resources"):s.resources&&s.resources.length>0&&o.push(`${s.resources.length} resources`),s.prompts===null?o.push("all prompts"):s.prompts&&s.prompts.length>0&&o.push(`${s.prompts.length} prompts`),o.join(", ")}function bs(n,e){const s=n[e];return s?!((s.tools===void 0||s.tools!==null&&s.tools.length===0)&&(s.resources===void 0||s.resources!==null&&s.resources.length===0)&&(s.prompts===void 0||s.prompts!==null&&s.prompts.length===0)):!1}const Ns={tools:null,resources:null,prompts:null};function Ie(){const n=R.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex items-center justify-center h-32",children:t.jsx(Me,{className:"animate-spin text-muted-foreground",size:24})}),n[0]=e):e=n[0],e}function Ee(n){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:n})}):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(ot,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e?.message?e.message.length>200?`${e.message.slice(0,200)}...`:e.message:"An unexpected error occurred"})]})]})}function ys(n){const e=R.c(23),{item:s,isSelected:o,onToggle:l,disabled:r}=n,d=r?"cursor-not-allowed opacity-50":"cursor-pointer",m=o?"bg-accent/25":"hover:bg-muted/50";let i;e[0]!==d||e[1]!==m?(i=J("flex items-start gap-3 p-4 rounded-lg transition-colors",d,m),e[0]=d,e[1]=m,e[2]=i):i=e[2];let c;e[3]!==s.name?(c=t.jsx("p",{className:"text-sm font-medium leading-none truncate",children:s.name}),e[3]=s.name,e[4]=c):c=e[4];let f;e[5]!==s.tags?(f=s.tags&&t.jsx("span",{className:"shrink-0",children:s.tags}),e[5]=s.tags,e[6]=f):f=e[6];let h;e[7]!==c||e[8]!==f?(h=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[c,f]}),e[7]=c,e[8]=f,e[9]=h):h=e[9];let p;e[10]!==s.description?(p=s.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:s.description}),e[10]=s.description,e[11]=p):p=e[11];let g;e[12]!==h||e[13]!==p?(g=t.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[h,p]}),e[12]=h,e[13]=p,e[14]=g):g=e[14];let x;e[15]!==r||e[16]!==o||e[17]!==l?(x=t.jsx(Be,{checked:o,onCheckedChange:l,disabled:r,className:"mt-0.5"}),e[15]=r,e[16]=o,e[17]=l,e[18]=x):x=e[18];let a;return e[19]!==i||e[20]!==g||e[21]!==x?(a=t.jsxs("label",{className:i,children:[g,x]}),e[19]=i,e[20]=g,e[21]=x,e[22]=a):a=e[22],a}function Ve(n){const e=R.c(32),{items:s,selections:o,onToggle:l,onToggleAll:r,emptyMessage:d,disabled:m}=n;let i,c,f,h,p;if(e[0]!==m||e[1]!==d||e[2]!==s||e[3]!==l||e[4]!==r||e[5]!==o){p=Symbol.for("react.early_return_sentinel");e:{const a=s.map(vs);if(s.length===0){let y;e[11]!==d?(y=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:d})}),e[11]=d,e[12]=y):y=e[12],p=y;break e}f="flex flex-col h-full";const b=m?"cursor-not-allowed opacity-50":"cursor-pointer";let u;e[13]!==b?(u=J("flex items-start gap-3 p-4",b),e[13]=b,e[14]=u):u=e[14];let j;e[15]!==s.length?(j=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]=j):j=e[16];const N=o===null;let C;e[17]!==m||e[18]!==r||e[19]!==N?(C=t.jsx(Be,{checked:N,onCheckedChange:r,disabled:m,className:"mt-0.5"}),e[17]=m,e[18]=r,e[19]=N,e[20]=C):C=e[20],e[21]!==C||e[22]!==u||e[23]!==j?(h=t.jsx("div",{className:"px-4 border-b border-border shrink-0",children:t.jsxs("label",{className:u,children:[j,C]})}),e[21]=C,e[22]=u,e[23]=j,e[24]=h):h=e[24],i="flex-1 overflow-auto px-4 py-3 space-y-1",c=s.map(y=>t.jsx(ys,{item:y,isSelected:o===null||o?.includes(y.id),onToggle:()=>l(y.id,a),disabled:m},y.id))}e[0]=m,e[1]=d,e[2]=s,e[3]=l,e[4]=r,e[5]=o,e[6]=i,e[7]=c,e[8]=f,e[9]=h,e[10]=p}else i=e[6],c=e[7],f=e[8],h=e[9],p=e[10];if(p!==Symbol.for("react.early_return_sentinel"))return p;let g;e[25]!==i||e[26]!==c?(g=t.jsx("div",{className:i,children:c}),e[25]=i,e[26]=c,e[27]=g):g=e[27];let x;return e[28]!==f||e[29]!==h||e[30]!==g?(x=t.jsxs("div",{className:f,children:[h,g]}),e[28]=f,e[29]=h,e[30]=g,e[31]=x):x=e[31],x}function vs(n){return n.id}function Cs(n){const e=R.c(13),{connectionId:s,selections:o,onToggle:l,onToggleAll:r,disabled:d}=n,{org:m}=me();let i;e[0]!==s||e[1]!==m.id?(i={connectionId:s,orgId:m.id},e[0]=s,e[1]=m.id,e[2]=i):i=e[2];const c=Ne(i);let f;e[3]!==c?(f={client:c},e[3]=c,e[4]=f):f=e[4];const{data:h}=ts(f);let p;e[5]!==h.tools?(p=h.tools.map(Ss),e[5]=h.tools,e[6]=p):p=e[6];const g=p;let x;return e[7]!==d||e[8]!==g||e[9]!==l||e[10]!==r||e[11]!==o?(x=t.jsx(Ve,{items:g,selections:o,onToggle:l,onToggleAll:r,emptyMessage:"No tools available",disabled:d}),e[7]=d,e[8]=g,e[9]=l,e[10]=r,e[11]=o,e[12]=x):x=e[12],x}function Ss(n){return{id:n.name,name:n.name,description:n.description,tags:t.jsx(Yt,{annotations:n.annotations,_meta:n._meta})}}function _s(n){const e=R.c(13),{connectionId:s,selections:o,onToggle:l,onToggleAll:r,disabled:d}=n,{org:m}=me();let i;e[0]!==s||e[1]!==m.id?(i={connectionId:s,orgId:m.id},e[0]=s,e[1]=m.id,e[2]=i):i=e[2];const c=Ne(i);let f;e[3]!==c?(f={client:c},e[3]=c,e[4]=f):f=e[4];const{data:h}=ss(f);let p;e[5]!==h.resources?(p=h.resources.map(Ts),e[5]=h.resources,e[6]=p):p=e[6];const g=p;let x;return e[7]!==d||e[8]!==g||e[9]!==l||e[10]!==r||e[11]!==o?(x=t.jsx(Ve,{items:g,selections:o,onToggle:l,onToggleAll:r,emptyMessage:"No resources available",disabled:d}),e[7]=d,e[8]=g,e[9]=l,e[10]=r,e[11]=o,e[12]=x):x=e[12],x}function Ts(n){return{id:n.name||n.uri,name:n.name||n.uri,description:n.description}}function ks(n){const e=R.c(13),{connectionId:s,selections:o,onToggle:l,onToggleAll:r,disabled:d}=n,{org:m}=me();let i;e[0]!==s||e[1]!==m.id?(i={connectionId:s,orgId:m.id},e[0]=s,e[1]=m.id,e[2]=i):i=e[2];const c=Ne(i);let f;e[3]!==c?(f={client:c},e[3]=c,e[4]=f):f=e[4];const{data:h}=ls(f);let p;e[5]!==h.prompts?(p=h.prompts.map(ws),e[5]=h.prompts,e[6]=p):p=e[6];const g=p;let x;return e[7]!==d||e[8]!==g||e[9]!==l||e[10]!==r||e[11]!==o?(x=t.jsx(Ve,{items:g,selections:o,onToggle:l,onToggleAll:r,emptyMessage:"No prompts available",disabled:d}),e[7]=d,e[8]=g,e[9]=l,e[10]=r,e[11]=o,e[12]=x):x=e[12],x}function ws(n){return{id:n.name,name:n.name,description:n.description}}function Is(n){const e=R.c(24),{connection:s,isSelected:o,hasSelections:l,summary:r,onClick:d,onToggleAll:m,disabled:i}=n,c=i?"cursor-not-allowed opacity-50":"cursor-pointer",f=o?"bg-accent":"hover:bg-muted/50";let h;e[0]!==c||e[1]!==f?(h=J("flex items-center gap-2 p-2 h-12 rounded-lg transition-colors",c,f),e[0]=c,e[1]=f,e[2]=h):h=e[2];const p=i?void 0:d;let g;e[3]!==s.icon||e[4]!==s.title?(g=t.jsx($e,{icon:s.icon,name:s.title,size:"xs",className:"shrink-0"}),e[3]=s.icon,e[4]=s.title,e[5]=g):g=e[5];let x;e[6]!==s.title?(x=t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[6]=s.title,e[7]=x):x=e[7];let a;e[8]!==l||e[9]!==r?(a=l&&r&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:r}),e[8]=l,e[9]=r,e[10]=a):a=e[10];let b;e[11]!==x||e[12]!==a?(b=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[x,a]}),e[11]=x,e[12]=a,e[13]=b):b=e[13];let u;e[14]!==i||e[15]!==l||e[16]!==m?(u=t.jsx(Be,{checked:l,onCheckedChange:m,onClick:Es,disabled:i,className:"shrink-0"}),e[14]=i,e[15]=l,e[16]=m,e[17]=u):u=e[17];let j;return e[18]!==h||e[19]!==p||e[20]!==g||e[21]!==b||e[22]!==u?(j=t.jsxs("div",{className:h,onClick:p,children:[g,b,u]}),e[18]=h,e[19]=p,e[20]=g,e[21]=b,e[22]=u,e[23]=j):j=e[23],j}function Es(n){return n.stopPropagation()}function As(n){const e=R.c(22),{allConnections:s,searchTerm:o,selectedId:l,hasSelections:r,getSelectionSummary:d,onConnectionClick:m,onToggleAll:i,disabled:c}=n;let f;e[0]!==s||e[1]!==o?(f=o?s.filter(x=>x.title.toLowerCase().includes(o.toLowerCase())||x.description?.toLowerCase().includes(o.toLowerCase())):s,e[0]=s,e[1]=o,e[2]=f):f=e[2];const h=f;if(h.length===0){const x=o?"No connections found":"No connections available";let a;return e[3]!==x?(a=t.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground p-4",children:x}),e[3]=x,e[4]=a):a=e[4],a}let p;if(e[5]!==c||e[6]!==h||e[7]!==d||e[8]!==r||e[9]!==m||e[10]!==i||e[11]!==l){let x;e[13]!==c||e[14]!==d||e[15]!==r||e[16]!==m||e[17]!==i||e[18]!==l?(x=a=>t.jsx(Is,{connection:a,isSelected:l===a.id,hasSelections:r(a.id),summary:d(a.id),onClick:()=>m(a.id),onToggleAll:()=>i(a.id),disabled:c},a.id),e[13]=c,e[14]=d,e[15]=r,e[16]=m,e[17]=i,e[18]=l,e[19]=x):x=e[19],p=h.map(x),e[5]=c,e[6]=h,e[7]=d,e[8]=r,e[9]=m,e[10]=i,e[11]=l,e[12]=p}else p=e[12];let g;return e[20]!==p?(g=t.jsx("div",{className:"flex flex-col gap-0.5",children:p}),e[20]=p,e[21]=g):g=e[21],g}function Os(n){const e=R.c(75),{currentConnection:s,activeTab:o,selectedId:l,formData:r,toggleTool:d,toggleResource:m,togglePrompt:i,toggleAllTools:c,toggleAllResources:f,toggleAllPrompts:h,onTabChange:p}=n;let g;e[0]!==s.icon||e[1]!==s.title?(g=t.jsx($e,{icon:s.icon,name:s.title,size:"md",className:"shrink-0"}),e[0]=s.icon,e[1]=s.title,e[2]=g):g=e[2];let x;e[3]!==s.title?(x=t.jsx("h2",{className:"text-lg font-semibold truncate",children:s.title}),e[3]=s.title,e[4]=x):x=e[4];let a;e[5]!==s.description?(a=s.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:s.description}),e[5]=s.description,e[6]=a):a=e[6];let b;e[7]!==x||e[8]!==a?(b=t.jsxs("div",{className:"flex-1 min-w-0",children:[x,a]}),e[7]=x,e[8]=a,e[9]=b):b=e[9];let u;e[10]!==g||e[11]!==b?(u=t.jsx("div",{className:"p-6 border-b border-border shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[g,b]})}),e[10]=g,e[11]=b,e[12]=u):u=e[12];let j;e[13]!==p?(j=H=>p(H),e[13]=p,e[14]=j):j=e[14];let N;e[15]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsxs(Te,{value:"tools",variant:"underline",className:"gap-2",children:[t.jsx(ze,{size:16}),"Tools"]}),e[15]=N):N=e[15];let C;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsxs(Te,{value:"resources",variant:"underline",className:"gap-2",children:[t.jsx(Re,{size:16}),"Resources"]}),e[16]=C):C=e[16];let y;e[17]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsxs(Xt,{variant:"underline",className:"shrink-0 px-6",children:[N,C,t.jsxs(Te,{value:"prompts",variant:"underline",className:"gap-2",children:[t.jsx(Le,{size:16}),"Prompts"]})]}),e[17]=y):y=e[17];let k;e[18]===Symbol.for("react.memo_cache_sentinel")?(k=Ee("Tools not supported by this server"),e[18]=k):k=e[18];let w;e[19]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(Ie,{}),e[19]=w):w=e[19];let S;e[20]!==r||e[21]!==l?(S=r[l]?r[l].tools:[],e[20]=r,e[21]=l,e[22]=S):S=e[22];let E;e[23]!==l||e[24]!==d?(E=(H,O)=>d(l,H,O),e[23]=l,e[24]=d,e[25]=E):E=e[25];let _;e[26]!==l||e[27]!==c?(_=()=>c(l),e[26]=l,e[27]=c,e[28]=_):_=e[28];let I;e[29]!==l||e[30]!==S||e[31]!==E||e[32]!==_?(I=t.jsx(ke,{value:"tools",className:"flex-1 overflow-hidden mt-0",children:t.jsx(pe,{fallback:k,children:t.jsx(M.Suspense,{fallback:w,children:t.jsx(Cs,{connectionId:l,selections:S,onToggle:E,onToggleAll:_})})})}),e[29]=l,e[30]=S,e[31]=E,e[32]=_,e[33]=I):I=e[33];let T;e[34]===Symbol.for("react.memo_cache_sentinel")?(T=Ee("Resources not supported by this server"),e[34]=T):T=e[34];let A;e[35]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(Ie,{}),e[35]=A):A=e[35];let D;e[36]!==r||e[37]!==l?(D=r[l]?r[l].resources:[],e[36]=r,e[37]=l,e[38]=D):D=e[38];let G;e[39]!==l||e[40]!==m?(G=(H,O)=>m(l,H,O),e[39]=l,e[40]=m,e[41]=G):G=e[41];let L;e[42]!==l||e[43]!==f?(L=()=>f(l),e[42]=l,e[43]=f,e[44]=L):L=e[44];let F;e[45]!==l||e[46]!==D||e[47]!==G||e[48]!==L?(F=t.jsx(ke,{value:"resources",className:"flex-1 overflow-hidden mt-0",children:t.jsx(pe,{fallback:T,children:t.jsx(M.Suspense,{fallback:A,children:t.jsx(_s,{connectionId:l,selections:D,onToggle:G,onToggleAll:L})})})}),e[45]=l,e[46]=D,e[47]=G,e[48]=L,e[49]=F):F=e[49];let U;e[50]===Symbol.for("react.memo_cache_sentinel")?(U=Ee("Prompts not supported by this server"),e[50]=U):U=e[50];let K;e[51]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(Ie,{}),e[51]=K):K=e[51];let P;e[52]!==r||e[53]!==l?(P=r[l]?r[l].prompts:[],e[52]=r,e[53]=l,e[54]=P):P=e[54];let B;e[55]!==l||e[56]!==i?(B=(H,O)=>i(l,H,O),e[55]=l,e[56]=i,e[57]=B):B=e[57];let $;e[58]!==l||e[59]!==h?($=()=>h(l),e[58]=l,e[59]=h,e[60]=$):$=e[60];let z;e[61]!==l||e[62]!==P||e[63]!==B||e[64]!==$?(z=t.jsx(ke,{value:"prompts",className:"flex-1 overflow-hidden mt-0",children:t.jsx(pe,{fallback:U,children:t.jsx(M.Suspense,{fallback:K,children:t.jsx(ks,{connectionId:l,selections:P,onToggle:B,onToggleAll:$})})})}),e[61]=l,e[62]=P,e[63]=B,e[64]=$,e[65]=z):z=e[65];let V;e[66]!==o||e[67]!==I||e[68]!==F||e[69]!==z||e[70]!==j?(V=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:t.jsxs(Zt,{value:o,onValueChange:j,variant:"underline",className:"flex-1 flex flex-col overflow-hidden",children:[y,I,F,z]})}),e[66]=o,e[67]=I,e[68]=F,e[69]=z,e[70]=j,e[71]=V):V=e[71];let W;return e[72]!==V||e[73]!==u?(W=t.jsxs(t.Fragment,{children:[u,V]}),e[72]=V,e[73]=u,e[74]=W):W=e[74],W}function Ds(n){const e={};for(const s of n)e[s.connection_id]={tools:s.selected_tools,resources:s.selected_resources??null,prompts:s.selected_prompts??null};return e}function Ae(n){return Object.entries(n).map(([e,s])=>({connection_id:e,selected_tools:s.tools,selected_resources:s.resources,selected_prompts:s.prompts}))}function $s(n,e){switch(e.type){case"SET_SEARCH_TERM":return{...n,searchTerm:e.payload};case"SET_SELECTED":return{...n,selectedId:e.payload};case"SET_ACTIVE_TAB":return{...n,activeTab:e.payload};case"RESET":return{searchTerm:"",selectedId:e.payload.selectedId??e.payload.firstConnectionId??null,activeTab:"tools"};case"SELECT_CONNECTION":return{...n,selectedId:e.payload,activeTab:"tools"};default:return n}}const zs=(n,e)=>n.find(s=>s.id===e)??n[0];function Rs(n){const e=R.c(77),{open:s,onOpenChange:o,selectedId:l,form:r,connections:d}=n;let m;e[0]!==l?(m={activeTab:"tools",searchTerm:"",selectedId:l},e[0]=l,e[1]=m):m=e[1];const[i,c]=M.useReducer($s,m),f=M.useDeferredValue(i.searchTerm);let h;e[2]!==f?(h={searchTerm:f},e[2]=f,e[3]=h):h=e[3];const p=Ot(h);let g;e[4]!==d?(g=d??[],e[4]=d,e[5]=g):g=e[5];let x;e[6]!==g?(x=Ds(g),e[6]=g,e[7]=x):x=e[7];const a=x;let b;e[8]!==p||e[9]!==i.selectedId?(b=zs(p,i.selectedId),e[8]=p,e[9]=i.selectedId,e[10]=b):b=e[10];const u=b,j=u?.id??null;let N;e[11]!==a?(N=v=>bs(a,v),e[11]=a,e[12]=N):N=e[12];const C=N;let y;e[13]!==a?(y=v=>js(a,v),e[13]=a,e[14]=y):y=e[14];const k=y;let w;e[15]!==r||e[16]!==a?(w=(v,Y,q,ee)=>{const ce=a[v]?.[Y];let Q;ce===null?Q=ee.filter(ve=>ve!==q):ce?.includes(q)?Q=ce.filter(ve=>ve!==q):(Q=[...ce??[],q],Q.length===ee.length&&(Q=null));const de={...a};de[v]?de[v]={...de[v]}:de[v]={tools:null,resources:null,prompts:null},de[v][Y]=Q,r.setValue("connections",Ae(de),{shouldDirty:!0,shouldTouch:!0})},e[15]=r,e[16]=a,e[17]=w):w=e[17];const S=w;let E;e[18]!==r||e[19]!==a?(E=(v,Y)=>{const ce=a[v]?.[Y]===null?[]:null,Q={...a};Q[v]?Q[v]={...Q[v]}:Q[v]={tools:null,resources:null,prompts:null},Q[v][Y]=ce,r.setValue("connections",Ae(Q),{shouldDirty:!0,shouldTouch:!0})},e[18]=r,e[19]=a,e[20]=E):E=e[20];const _=E;let I;e[21]!==S?(I=(v,Y,q)=>S(v,"tools",Y,q),e[21]=S,e[22]=I):I=e[22];const T=I;let A;e[23]!==S?(A=(v,Y,q)=>S(v,"resources",Y,q),e[23]=S,e[24]=A):A=e[24];const D=A;let G;e[25]!==S?(G=(v,Y,q)=>S(v,"prompts",Y,q),e[25]=S,e[26]=G):G=e[26];const L=G;let F;e[27]!==_?(F=v=>_(v,"tools"),e[27]=_,e[28]=F):F=e[28];const U=F;let K;e[29]!==_?(K=v=>_(v,"resources"),e[29]=_,e[30]=K):K=e[30];const P=K;let B;e[31]!==_?(B=v=>_(v,"prompts"),e[31]=_,e[32]=B):B=e[32];const $=B;let z;e[33]!==r||e[34]!==a?(z=v=>{const Y=a[v],q=Y&&Y.tools===null&&Y.resources===null&&Y.prompts===null,ee={...a};q?delete ee[v]:ee[v]=Ns,r.setValue("connections",Ae(ee),{shouldDirty:!0,shouldTouch:!0})},e[33]=r,e[34]=a,e[35]=z):z=e[35];const V=z;let W;e[36]!==p||e[37]!==o||e[38]!==l?(W=v=>{v&&c({type:"RESET",payload:{selectedId:l,firstConnectionId:p[0]?.id??null}}),o(v)},e[36]=p,e[37]=o,e[38]=l,e[39]=W):W=e[39];const H=W;let O;e[40]===Symbol.for("react.memo_cache_sentinel")?(O=v=>{c({type:"SELECT_CONNECTION",payload:v})},e[40]=O):O=e[40];const Z=O;let ue;e[41]===Symbol.for("react.memo_cache_sentinel")?(ue=v=>c({type:"SET_SEARCH_TERM",payload:v}),e[41]=ue):ue=e[41];let se;e[42]!==i.searchTerm?(se=t.jsx(Wt,{value:i.searchTerm,onChange:ue,placeholder:"Search connections..."}),e[42]=i.searchTerm,e[43]=se):se=e[43];let le;e[44]!==p||e[45]!==i.searchTerm||e[46]!==j||e[47]!==k||e[48]!==C||e[49]!==V?(le=t.jsx("div",{className:"flex-1 overflow-auto p-2",children:t.jsx(As,{allConnections:p,searchTerm:i.searchTerm,selectedId:j,hasSelections:C,getSelectionSummary:k,onConnectionClick:Z,onToggleAll:V})}),e[44]=p,e[45]=i.searchTerm,e[46]=j,e[47]=k,e[48]=C,e[49]=V,e[50]=le):le=e[50];let oe;e[51]!==se||e[52]!==le?(oe=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:[se,le]}),e[51]=se,e[52]=le,e[53]=oe):oe=e[53];let ne;e[54]!==u||e[55]!==i.activeTab||e[56]!==j||e[57]!==a||e[58]!==$||e[59]!==P||e[60]!==U||e[61]!==L||e[62]!==D||e[63]!==T?(ne=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:u&&j?t.jsx(Os,{currentConnection:u,activeTab:i.activeTab,selectedId:j,formData:a,toggleTool:T,toggleResource:D,togglePrompt:L,toggleAllTools:U,toggleAllResources:P,toggleAllPrompts:$,onTabChange:v=>c({type:"SET_ACTIVE_TAB",payload:v})},j):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[54]=u,e[55]=i.activeTab,e[56]=j,e[57]=a,e[58]=$,e[59]=P,e[60]=U,e[61]=L,e[62]=D,e[63]=T,e[64]=ne):ne=e[64];let re;e[65]!==oe||e[66]!==ne?(re=t.jsxs("div",{className:"flex-1 flex overflow-hidden min-h-0 flex-col sm:flex-row",children:[oe,ne]}),e[65]=oe,e[66]=ne,e[67]=re):re=e[67];let ie;e[68]!==H?(ie=t.jsx(Jt,{className:"px-6 py-4 border-t border-border shrink-0",children:t.jsx(X,{variant:"outline",onClick:()=>H(!1),children:"Done"})}),e[68]=H,e[69]=ie):ie=e[69];let ae;e[70]!==re||e[71]!==ie?(ae=t.jsxs(tt,{className:"sm:max-w-5xl h-[80vh] max-h-[80vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[re,ie]}),e[70]=re,e[71]=ie,e[72]=ae):ae=e[72];let fe;return e[73]!==H||e[74]!==s||e[75]!==ae?(fe=t.jsx(st,{open:s,onOpenChange:H,children:ae}),e[73]=H,e[74]=s,e[75]=ae,e[76]=fe):fe=e[76],fe}const Ls=nt.pick({title:!0,description:!0,icon:!0,status:!0,metadata:!0,connections:!0}).extend({title:rt().min(1,"Name is required").max(255)});function Ps(n){const e=R.c(8);let s,o;e[0]!==n?({className:s,...o}=n,e[0]=n,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let l;e[3]!==s?(l=J("grid gap-3",s),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==o||e[6]!==l?(r=t.jsx(as,{"data-slot":"radio-group",className:l,...o}),e[5]=o,e[6]=l,e[7]=r):r=e[7],r}function Oe(n){const e=R.c(9);let s,o;e[0]!==n?({className:s,...o}=n,e[0]=n,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let l;e[3]!==s?(l=J("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 r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(cs,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:t.jsx(ds,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})}),e[5]=r):r=e[5];let d;return e[6]!==o||e[7]!==l?(d=t.jsx(is,{"data-slot":"radio-group-item",className:l,...o,children:r}),e[6]=o,e[7]=l,e[8]=d):d=e[8],d}function Ms(n){const s=new TextEncoder().encode(n),o=Array.from(s,l=>String.fromCharCode(l)).join("");return btoa(o)}function Fs(n){const e=R.c(10),{url:s}=n,[o,l]=M.useState(!1);let r;e[0]!==s?(r=async()=>{await navigator.clipboard.writeText(s),l(!0),te.success("Agent URL copied to clipboard"),setTimeout(()=>l(!1),2e3)},e[0]=s,e[1]=r):r=e[1];const d=r;let m;e[2]!==o?(m=o?t.jsx(ye,{size:20,className:"text-green-600"}):t.jsx(Fe,{size:20}),e[2]=o,e[3]=m):m=e[3];const i=o?"Copied!":"Copy URL";let c;e[4]!==i?(c=t.jsx("span",{className:"text-xs font-medium",children:i}),e[4]=i,e[5]=c):c=e[5];let f;return e[6]!==d||e[7]!==m||e[8]!==c?(f=t.jsxs(X,{type:"button",variant:"outline",onClick:d,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[m,c]}),e[6]=d,e[7]=m,e[8]=c,e[9]=f):f=e[9],f}function Bs(n){const e=R.c(7),{url:s,serverName:o}=n;let l;e[0]!==o||e[1]!==s?(l=()=>{const c=lt(o),h=Ms(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),p=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(c)}&config=${encodeURIComponent(h)}`;window.open(p,"_blank"),te.success("Opening Cursor...")},e[0]=o,e[1]=s,e[2]=l):l=e[2];const r=l;let d,m;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=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%)"}}),m=t.jsx("span",{className:"text-xs font-medium",children:"Install on Cursor"}),e[3]=d,e[4]=m):(d=e[3],m=e[4]);let i;return e[5]!==r?(i=t.jsxs(X,{type:"button",variant:"outline",onClick:r,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[d,m]}),e[5]=r,e[6]=i):i=e[6],i}function Vs(n){const e=R.c(11),{url:s,serverName:o}=n,[l,r]=M.useState(!1);let d;e[0]!==o||e[1]!==s?(d=async()=>{const p=lt(o),x=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),a=`claude mcp add-json "${p}" '${x.replace(/'/g,"'\\''")}' --scope user`;await navigator.clipboard.writeText(a),r(!0),te.success("Claude Code command copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[0]=o,e[1]=s,e[2]=d):d=e[2];const m=d;let i;e[3]!==l?(i=l?t.jsx(ye,{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]=i):i=e[4];const c=l?"Copied!":"Install on Claude";let f;e[5]!==c?(f=t.jsx("span",{className:"text-xs font-medium",children:c}),e[5]=c,e[6]=f):f=e[6];let h;return e[7]!==m||e[8]!==i||e[9]!==f?(h=t.jsxs(X,{type:"button",variant:"outline",onClick:m,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[i,f]}),e[7]=m,e[8]=i,e[9]=f,e[10]=h):h=e[10],h}function Gs({virtualMcp:n}){const{org:e}=me(),s=Ne({connectionId:es,orgId:e.id}),[o,l]=M.useState(null),[r,d]=M.useState(!1),[m,i]=M.useState(!1),c=n.id,f=n.title||`agent-${c.slice(0,8)}`,h=o?`bunx @decocms/typegen@latest --mcp ${c} --key ${o} --output client.ts`:`bunx @decocms/typegen@latest --mcp ${c} --key <api-key> --output client.ts`,p=async()=>{d(!0);try{const a=(await s.callTool({name:"API_KEY_CREATE",arguments:{name:`typegen-${f}`,permissions:{[c]:["*"]}}})).structuredContent?.key;if(!a)throw new Error("No key in response");l(a)}catch{te.error("Failed to generate API key")}finally{d(!1)}},g=async()=>{await navigator.clipboard.writeText(h),i(!0),te.success("Command copied to clipboard"),setTimeout(()=>i(!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."]})]}),!o&&t.jsxs(X,{type:"button",variant:"outline",size:"sm",className:"shrink-0 gap-1.5",onClick:p,disabled:r,children:[r?t.jsx(Me,{size:14,className:"animate-spin"}):t.jsx(Lt,{size:14}),t.jsx("span",{children:r?"Generating…":"Generate API key"})]})]}),o&&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:h}),t.jsx(X,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:g,children:m?t.jsx(ye,{size:12,className:"text-green-600"}):t.jsx(Fe,{size:12})})]})}),t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Runtime variables"}),t.jsx(Us,{apiKey:o})]})}function Us(n){const e=R.c(19),{apiKey:s}=n,[o,l]=M.useState(!1),r=window.location.origin,d=s?`MESH_API_KEY=${s}`:"MESH_API_KEY=<api-key>",m=`MESH_BASE_URL=${r}`,i=`${d}
|
|
1
|
+
import{d as R,r as M,y as J,j as t,w as te,B as X,E as pe,a8 as ot,c as me,V as nt,q as rt,f as it,k as at,O as Ye,v as ct,t as dt,H as mt,J as Ge}from"./index-fnzLSheB.js";import{u as ut}from"./context-DRHBeAGs.js";import{E as ft}from"./empty-state-D14a0Zxq.js";import{I as be}from"./input-CBI5HJST.js";import{a as Je,b as qe,P as Qe}from"./popover-DoT6XNod.js";import{S as xt}from"./scroll-area-DcQSaz6_.js";import{a as pt,i as ht}from"./Type01-UhdL8ksX.js";import{i as gt}from"./SearchMd-B4W5fcyf.js";import{u as xe,v as Xe,w as Ze,x as jt,y as bt,z as Ce,B as Ue,A as He,C as Nt,D as yt,I as $e,E as ze,F as Re,G as Le,H as vt,J as Se,K as Ct,L as St}from"./integration-icon-3E3I1Ow-.js";import{i as _t}from"./Upload01-DX94fj05.js";import{a as Tt}from"./index-DWiV_aLY.js";import{B as Pe}from"./badge-BHawtHqt.js";import{C as kt,a as wt}from"./collapsible-DbjcsjQi.js";import{S as It}from"./switch-uIQMlKq6.js";import{T as Et}from"./textarea-rEHudfyV.js";import{u as At,a as he,c as _e,T as ge,b as je}from"./tooltip-hlHlzWhV.js";import{b as Ot,u as Dt}from"./use-connection-BUxUpG_F.js";import{u as $t,a as zt}from"./use-virtual-mcp-DtVNlpR8.js";import{i as et}from"./ChevronRight-DY2lrGOn.js";import{n as Rt}from"./ChevronUp-B38OwFL_.js";import{i as Me}from"./Loading01-CJFbgK59.js";import{c as Fe,b as Lt,i as Pt}from"./Play-CsSGdP4Z.js";import{s as Ke}from"./Plus-CfD-fvi9.js";import{B as Mt,a as Ft,b as We,d as Bt,e as Vt,c as Gt}from"./breadcrumb-D8w6T3TH.js";import{V as Ut,a as Ht}from"./layout-Bz1664Tv.js";import{S as Kt}from"./save-actions-r3fCxT64.js";import{C as Wt}from"./collection-search-DQX16wbn.js";import{T as Yt}from"./tools-list-BZyPUTpN.js";import{C as Be}from"./checkbox-B17TL9Yy.js";import{d as Jt,D as tt,a as st,b as qt,c as Qt}from"./dialog-D7WigTyK.js";import{T as Te,a as Xt,b as ke,c as Zt}from"./tabs-CxRF-CYj.js";import{u as Ne,a as es}from"./constants-B5ylLz8P.js";import{c as ts}from"./use-mcp-tools-CfZSf4F7.js";import{a as ss}from"./use-mcp-resources-BR6sQvU6.js";import{u as ls}from"./use-mcp-prompts-vhovBlsL.js";import{s as lt}from"./slugify-CEUa2lfQ.js";import{c as os,a as ns,D as rs}from"./drawer-DkpraRh8.js";import{I as is,R as as,a as cs}from"./index-BxcI4xNK.js";import{b as ds}from"./RefreshCcw01-Cja044eH.js";import{i as ye}from"./Check-Cj1LnSt2.js";import{A as ms}from"./agent-connections-preview-DgOyqMmO.js";import"./decopilot-events-Brt4gAR6.js";import"./index-Dqx4k4bH.js";import"./index-BdQq_4o_.js";import"./Container-DLm11uCu.js";import"./AlertCircle-Cbtm5L98.js";import"./ArrowUp-PknJL_3i.js";import"./ArrowLeft-CCViWpBS.js";import"./XCircle-wueTdlAa.js";import"./ChevronDown-CHOEDpCq.js";import"./Dataflow03-Ba3PnLD-.js";import"./FolderClosed-rrRpN158.js";import"./Settings01-CMhz8juF.js";import"./Trash01-Cl6ql_TT.js";import"./User01-BgxUQ8sC.js";import"./XClose-CZL78D4W.js";import"./X-De9pN2CV.js";import"./Zap-CeI4Bf9r.js";import"./useQuery-D7A6izWp.js";import"./useMutation-CsiTkFgY.js";import"./index-mZiJdp7F.js";import"./index-D3056qAr.js";import"./use-collections-B0VCcn8e.js";import"./collection-display-button-CCE6Hf4p.js";import"./dropdown-menu-PjKkpqts.js";import"./collection-table-wrapper-Csa2FMUQ.js";import"./table-BTOlVJn3.js";import"./card-DP3El98a.js";import"./types-BMfsriOE.js";function us(n){const e=R.c(58),{value:s,onChange:o,name:l,size:r,className:d}=n,m=r===void 0?"lg":r,[i,c]=M.useState(!1),[f,h]=M.useState("icons"),[p,g]=M.useState("");let x;e[0]!==s?(x=()=>{const O=xe(s);return O.type==="icon"||O.type==="url"&&O.color?O.color:"blue"},e[0]=s,e[1]=x):x=e[1];const[a,b]=M.useState(x);let u;e[2]!==o||e[3]!==a?(u=O=>{o(Ce(O,a))},e[2]=o,e[3]=a,e[4]=u):u=e[4];const j=u;let N;e[5]!==o||e[6]!==s?(N=O=>{b(O);const Z=xe(s);Z.type==="icon"?o(Ce(Z.name,O)):Z.type==="url"&&o(Ue(Z.url,O))},e[5]=o,e[6]=s,e[7]=N):N=e[7];const C=N;let y;e[8]!==o||e[9]!==a?(y=O=>{o(Ue(O,a)),c(!1)},e[8]=o,e[9]=a,e[10]=y):y=e[10];const k=y;let w;e[11]!==o||e[12]!==a?(w=()=>{const O=Xe(),Z=O[Math.floor(Math.random()*O.length)];o(Ce(Z,a))},e[11]=o,e[12]=a,e[13]=w):w=e[13];const S=w;let E;e[14]!==d?(E=J("relative group cursor-pointer rounded-2xl",d),e[14]=d,e[15]=E):E=e[15];let _;e[16]!==l||e[17]!==m||e[18]!==s?(_=t.jsx(He,{icon:s,name:l,size:m}),e[16]=l,e[17]=m,e[18]=s,e[19]=_):_=e[19];let I;e[20]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity rounded-2xl overflow-hidden",children:t.jsx(pt,{size:16,className:"text-white"})}),e[20]=I):I=e[20];let T;e[21]!==E||e[22]!==_?(T=t.jsx(Je,{asChild:!0,children:t.jsxs("button",{type:"button",className:E,children:[_,I]})}),e[21]=E,e[22]=_,e[23]=T):T=e[23];let A;e[24]!==l||e[25]!==s?(A=t.jsx("div",{className:"flex items-center justify-center py-4",children:t.jsx(He,{icon:s,name:l,size:"xl"})}),e[24]=l,e[25]=s,e[26]=A):A=e[26];let D;e[27]===Symbol.for("react.memo_cache_sentinel")?(D=()=>h("icons"),e[27]=D):D=e[27];const G=f==="icons"?"border-foreground text-foreground":"border-transparent text-muted-foreground hover:text-foreground";let L;e[28]!==G?(L=J("px-3 py-2 text-sm font-medium border-b-2 -mb-px transition-colors",G),e[28]=G,e[29]=L):L=e[29];let F;e[30]!==L?(F=t.jsx("button",{type:"button",onClick:D,className:L,children:"Icons"}),e[30]=L,e[31]=F):F=e[31];let U;e[32]===Symbol.for("react.memo_cache_sentinel")?(U=()=>h("upload"),e[32]=U):U=e[32];const K=f==="upload"?"border-foreground text-foreground":"border-transparent text-muted-foreground hover:text-foreground";let P;e[33]!==K?(P=J("px-3 py-2 text-sm font-medium border-b-2 -mb-px transition-colors",K),e[33]=K,e[34]=P):P=e[34];let B;e[35]!==P?(B=t.jsx("button",{type:"button",onClick:U,className:P,children:"Upload"}),e[35]=P,e[36]=B):B=e[36];let $;e[37]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx("div",{className:"flex-1"}),e[37]=$):$=e[37];let z;e[38]!==F||e[39]!==B?(z=t.jsxs("div",{className:"flex items-center border-b border-border px-3",children:[F,B,$]}),e[38]=F,e[39]=B,e[40]=z):z=e[40];let V;e[41]!==C||e[42]!==S||e[43]!==j||e[44]!==k||e[45]!==p||e[46]!==a||e[47]!==f||e[48]!==s?(V=f==="icons"?t.jsx(hs,{search:p,onSearchChange:g,selectedColor:a,onColorChange:C,onSelectIcon:j,onRandom:S,currentIconName:xe(s).type==="icon"?xe(s).name:null}):t.jsx(gs,{onUpload:k}),e[41]=C,e[42]=S,e[43]=j,e[44]=k,e[45]=p,e[46]=a,e[47]=f,e[48]=s,e[49]=V):V=e[49];let W;e[50]!==A||e[51]!==z||e[52]!==V?(W=t.jsx(qe,{align:"start",className:"w-80 p-0",onOpenAutoFocus:fs,children:t.jsxs("div",{className:"flex flex-col",children:[A,z,V]})}),e[50]=A,e[51]=z,e[52]=V,e[53]=W):W=e[53];let H;return e[54]!==i||e[55]!==T||e[56]!==W?(H=t.jsxs(Qe,{open:i,onOpenChange:c,children:[T,W]}),e[54]=i,e[55]=T,e[56]=W,e[57]=H):H=e[57],H}function fs(n){return n.preventDefault()}function xs(n){const e=R.c(27),{selectedColor:s,onColorChange:o}=n,[l,r]=M.useState(!1);let d,m,i,c,f,h,p;if(e[0]!==l||e[1]!==s){const j=Ze(s);m=Qe,h=l,p=r,d=Je,f=!0,i="button",c=J("h-6 w-6 rounded-full shrink-0 ring-2 ring-offset-2 ring-offset-background transition-all cursor-pointer hover:scale-110",j.dot,"ring-foreground/20"),e[0]=l,e[1]=s,e[2]=d,e[3]=m,e[4]=i,e[5]=c,e[6]=f,e[7]=h,e[8]=p}else d=e[2],m=e[3],i=e[4],c=e[5],f=e[6],h=e[7],p=e[8];let g;e[9]!==i||e[10]!==c?(g=t.jsx("button",{type:i,className:c,title:"Change color"}),e[9]=i,e[10]=c,e[11]=g):g=e[11];let x;e[12]!==d||e[13]!==f||e[14]!==g?(x=t.jsx(d,{asChild:f,children:g}),e[12]=d,e[13]=f,e[14]=g,e[15]=x):x=e[15];let a;e[16]!==o||e[17]!==s?(a=yt.map(j=>t.jsx("button",{type:"button",onClick:()=>{o(j.name),r(!1)},className:J("h-5 w-5 rounded-full transition-all shrink-0 cursor-pointer",j.dot,s===j.name?"ring-2 ring-offset-1 ring-offset-background ring-foreground/30 scale-110":"hover:scale-110"),title:j.name},j.name)),e[16]=o,e[17]=s,e[18]=a):a=e[18];let b;e[19]!==a?(b=t.jsx(qe,{align:"start",side:"right",sideOffset:8,className:"w-auto p-2",onOpenAutoFocus:ps,children:t.jsx("div",{className:"grid grid-cols-4 gap-1",children:a})}),e[19]=a,e[20]=b):b=e[20];let u;return e[21]!==m||e[22]!==h||e[23]!==p||e[24]!==x||e[25]!==b?(u=t.jsxs(m,{open:h,onOpenChange:p,children:[x,b]}),e[21]=m,e[22]=h,e[23]=p,e[24]=x,e[25]=b,e[26]=u):u=e[26],u}function ps(n){return n.preventDefault()}function hs(n){const e=R.c(44),{search:s,onSearchChange:o,selectedColor:l,onColorChange:r,onSelectIcon:d,onRandom:m,currentIconName:i}=n;let c,f,h,p,g,x,a;if(e[0]!==i||e[1]!==r||e[2]!==m||e[3]!==o||e[4]!==d||e[5]!==s||e[6]!==l){const C=Xe(),y=Ze(l);f=s.trim()?C.filter(T=>{const A=jt(T),D=s.toLowerCase();return A.includes(D)||T.toLowerCase().includes(D)}):C,x="flex flex-col";let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(gt,{size:14,className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none"}),e[14]=k):k=e[14];let w;e[15]!==o?(w=T=>o(T.target.value),e[15]=o,e[16]=w):w=e[16];let S;e[17]!==s||e[18]!==w?(S=t.jsxs("div",{className:"relative flex-1",children:[k,t.jsx(be,{value:s,onChange:w,placeholder:"Filter...",className:"h-8 text-xs pl-7"})]}),e[17]=s,e[18]=w,e[19]=S):S=e[19];let E;e[20]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(Nt,{size:14,className:"text-muted-foreground"}),e[20]=E):E=e[20];let _;e[21]!==m?(_=t.jsx("button",{type:"button",onClick:m,className:"h-8 w-8 flex items-center justify-center rounded-md border border-border hover:bg-accent transition-colors shrink-0",title:"Random icon",children:E}),e[21]=m,e[22]=_):_=e[22];let I;e[23]!==r||e[24]!==l?(I=t.jsx(xs,{selectedColor:l,onColorChange:r}),e[23]=r,e[24]=l,e[25]=I):I=e[25],e[26]!==_||e[27]!==I||e[28]!==S?(a=t.jsxs("div",{className:"flex items-center gap-2 px-3 py-2",children:[S,_,I]}),e[26]=_,e[27]=I,e[28]=S,e[29]=a):a=e[29],c=xt,g="h-56",h="grid grid-cols-9 gap-0.5 px-2 pb-2",p=f.map(T=>{const A=bt(T);return A?t.jsx("button",{type:"button",onClick:()=>d(T),className:J("h-8 w-8 flex items-center justify-center rounded-md transition-colors cursor-pointer",i===T?J(y.bg,y.text):J(y.text,"hover:bg-accent")),title:T,children:t.jsx(A,{size:18})},T):null}),e[0]=i,e[1]=r,e[2]=m,e[3]=o,e[4]=d,e[5]=s,e[6]=l,e[7]=c,e[8]=f,e[9]=h,e[10]=p,e[11]=g,e[12]=x,e[13]=a}else c=e[7],f=e[8],h=e[9],p=e[10],g=e[11],x=e[12],a=e[13];let b;e[30]!==h||e[31]!==p?(b=t.jsx("div",{className:h,children:p}),e[30]=h,e[31]=p,e[32]=b):b=e[32];let u;e[33]!==f.length?(u=f.length===0&&t.jsx("div",{className:"flex items-center justify-center py-8 text-sm text-muted-foreground",children:"No icons found"}),e[33]=f.length,e[34]=u):u=e[34];let j;e[35]!==c||e[36]!==g||e[37]!==b||e[38]!==u?(j=t.jsxs(c,{className:g,children:[b,u]}),e[35]=c,e[36]=g,e[37]=b,e[38]=u,e[39]=j):j=e[39];let N;return e[40]!==x||e[41]!==a||e[42]!==j?(N=t.jsxs("div",{className:x,children:[a,j]}),e[40]=x,e[41]=a,e[42]=j,e[43]=N):N=e[43],N}function gs(n){const e=R.c(27),{onUpload:s}=n,o=M.useRef(null);let l;e[0]!==s?(l=k=>{const w=k.target.files?.[0];if(!w)return;if(w.size>2097152){te.error("Image must be smaller than 2MB");return}const S=new FileReader;S.onerror=()=>{te.error("Failed to read image file"),o.current&&(o.current.value="")},S.onloadend=()=>{S.readyState===FileReader.DONE&&S.result&&s(S.result),o.current&&(o.current.value="")},S.readAsDataURL(w)},e[0]=s,e[1]=l):l=e[1];const r=l,[d,m]=M.useState("");let i;e[2]!==s||e[3]!==d?(i=()=>{const k=d.trim();k&&(s(k),m(""))},e[2]=s,e[3]=d,e[4]=i):i=e[4];const c=i;let f;e[5]!==r?(f=t.jsx("input",{type:"file",ref:o,className:"hidden",accept:"image/*",onChange:r}),e[5]=r,e[6]=f):f=e[6];let h;e[7]===Symbol.for("react.memo_cache_sentinel")?(h=()=>o.current?.click(),e[7]=h):h=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsxs("button",{type:"button",onClick:h,className:"h-24 rounded-lg border-2 border-dashed border-border hover:border-foreground/50 hover:bg-accent/50 transition-colors flex flex-col items-center justify-center gap-2 text-muted-foreground hover:text-foreground",children:[t.jsx(_t,{size:20}),t.jsx("span",{className:"text-xs",children:"Click to upload an image (max 2MB)"})]}),e[8]=p):p=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"text-xs text-muted-foreground",children:"or"}),t.jsx("div",{className:"flex-1 h-px bg-border"})]}),e[9]=g):g=e[9];let x;e[10]===Symbol.for("react.memo_cache_sentinel")?(x=k=>m(k.target.value),e[10]=x):x=e[10];let a;e[11]!==c?(a=k=>{k.key==="Enter"&&(k.preventDefault(),c())},e[11]=c,e[12]=a):a=e[12];let b;e[13]!==d||e[14]!==a?(b=t.jsx(be,{value:d,onChange:x,placeholder:"Paste image URL...",className:"h-8 text-xs flex-1",onKeyDown:a}),e[13]=d,e[14]=a,e[15]=b):b=e[15];let u;e[16]!==d?(u=d.trim(),e[16]=d,e[17]=u):u=e[17];const j=!u;let N;e[18]!==c||e[19]!==j?(N=t.jsx(X,{variant:"outline",size:"sm",className:"h-8 px-3 text-xs shrink-0",onClick:c,disabled:j,children:"Apply"}),e[18]=c,e[19]=j,e[20]=N):N=e[20];let C;e[21]!==N||e[22]!==b?(C=t.jsxs("div",{className:"flex items-center gap-1.5",children:[b,N]}),e[21]=N,e[22]=b,e[23]=C):C=e[23];let y;return e[24]!==C||e[25]!==f?(y=t.jsxs("div",{className:"flex flex-col gap-3 p-4",children:[f,p,g,C]}),e[24]=C,e[25]=f,e[26]=y):y=e[26],y}function we(n){return n===null?"all":n?.length??0}function js(n,e){const s=n[e];if(!s)return"";const o=[];return s.tools===null?o.push("all tools"):s.tools&&s.tools.length>0&&o.push(`${s.tools.length} tools`),s.resources===null?o.push("all resources"):s.resources&&s.resources.length>0&&o.push(`${s.resources.length} resources`),s.prompts===null?o.push("all prompts"):s.prompts&&s.prompts.length>0&&o.push(`${s.prompts.length} prompts`),o.join(", ")}function bs(n,e){const s=n[e];return s?!((s.tools===void 0||s.tools!==null&&s.tools.length===0)&&(s.resources===void 0||s.resources!==null&&s.resources.length===0)&&(s.prompts===void 0||s.prompts!==null&&s.prompts.length===0)):!1}const Ns={tools:null,resources:null,prompts:null};function Ie(){const n=R.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex items-center justify-center h-32",children:t.jsx(Me,{className:"animate-spin text-muted-foreground",size:24})}),n[0]=e):e=n[0],e}function Ee(n){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:n})}):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(ot,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e?.message?e.message.length>200?`${e.message.slice(0,200)}...`:e.message:"An unexpected error occurred"})]})]})}function ys(n){const e=R.c(23),{item:s,isSelected:o,onToggle:l,disabled:r}=n,d=r?"cursor-not-allowed opacity-50":"cursor-pointer",m=o?"bg-accent/25":"hover:bg-muted/50";let i;e[0]!==d||e[1]!==m?(i=J("flex items-start gap-3 p-4 rounded-lg transition-colors",d,m),e[0]=d,e[1]=m,e[2]=i):i=e[2];let c;e[3]!==s.name?(c=t.jsx("p",{className:"text-sm font-medium leading-none truncate",children:s.name}),e[3]=s.name,e[4]=c):c=e[4];let f;e[5]!==s.tags?(f=s.tags&&t.jsx("span",{className:"shrink-0",children:s.tags}),e[5]=s.tags,e[6]=f):f=e[6];let h;e[7]!==c||e[8]!==f?(h=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[c,f]}),e[7]=c,e[8]=f,e[9]=h):h=e[9];let p;e[10]!==s.description?(p=s.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:s.description}),e[10]=s.description,e[11]=p):p=e[11];let g;e[12]!==h||e[13]!==p?(g=t.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[h,p]}),e[12]=h,e[13]=p,e[14]=g):g=e[14];let x;e[15]!==r||e[16]!==o||e[17]!==l?(x=t.jsx(Be,{checked:o,onCheckedChange:l,disabled:r,className:"mt-0.5"}),e[15]=r,e[16]=o,e[17]=l,e[18]=x):x=e[18];let a;return e[19]!==i||e[20]!==g||e[21]!==x?(a=t.jsxs("label",{className:i,children:[g,x]}),e[19]=i,e[20]=g,e[21]=x,e[22]=a):a=e[22],a}function Ve(n){const e=R.c(32),{items:s,selections:o,onToggle:l,onToggleAll:r,emptyMessage:d,disabled:m}=n;let i,c,f,h,p;if(e[0]!==m||e[1]!==d||e[2]!==s||e[3]!==l||e[4]!==r||e[5]!==o){p=Symbol.for("react.early_return_sentinel");e:{const a=s.map(vs);if(s.length===0){let y;e[11]!==d?(y=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:d})}),e[11]=d,e[12]=y):y=e[12],p=y;break e}f="flex flex-col h-full";const b=m?"cursor-not-allowed opacity-50":"cursor-pointer";let u;e[13]!==b?(u=J("flex items-start gap-3 p-4",b),e[13]=b,e[14]=u):u=e[14];let j;e[15]!==s.length?(j=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]=j):j=e[16];const N=o===null;let C;e[17]!==m||e[18]!==r||e[19]!==N?(C=t.jsx(Be,{checked:N,onCheckedChange:r,disabled:m,className:"mt-0.5"}),e[17]=m,e[18]=r,e[19]=N,e[20]=C):C=e[20],e[21]!==C||e[22]!==u||e[23]!==j?(h=t.jsx("div",{className:"px-4 border-b border-border shrink-0",children:t.jsxs("label",{className:u,children:[j,C]})}),e[21]=C,e[22]=u,e[23]=j,e[24]=h):h=e[24],i="flex-1 overflow-auto px-4 py-3 space-y-1",c=s.map(y=>t.jsx(ys,{item:y,isSelected:o===null||o?.includes(y.id),onToggle:()=>l(y.id,a),disabled:m},y.id))}e[0]=m,e[1]=d,e[2]=s,e[3]=l,e[4]=r,e[5]=o,e[6]=i,e[7]=c,e[8]=f,e[9]=h,e[10]=p}else i=e[6],c=e[7],f=e[8],h=e[9],p=e[10];if(p!==Symbol.for("react.early_return_sentinel"))return p;let g;e[25]!==i||e[26]!==c?(g=t.jsx("div",{className:i,children:c}),e[25]=i,e[26]=c,e[27]=g):g=e[27];let x;return e[28]!==f||e[29]!==h||e[30]!==g?(x=t.jsxs("div",{className:f,children:[h,g]}),e[28]=f,e[29]=h,e[30]=g,e[31]=x):x=e[31],x}function vs(n){return n.id}function Cs(n){const e=R.c(13),{connectionId:s,selections:o,onToggle:l,onToggleAll:r,disabled:d}=n,{org:m}=me();let i;e[0]!==s||e[1]!==m.id?(i={connectionId:s,orgId:m.id},e[0]=s,e[1]=m.id,e[2]=i):i=e[2];const c=Ne(i);let f;e[3]!==c?(f={client:c},e[3]=c,e[4]=f):f=e[4];const{data:h}=ts(f);let p;e[5]!==h.tools?(p=h.tools.map(Ss),e[5]=h.tools,e[6]=p):p=e[6];const g=p;let x;return e[7]!==d||e[8]!==g||e[9]!==l||e[10]!==r||e[11]!==o?(x=t.jsx(Ve,{items:g,selections:o,onToggle:l,onToggleAll:r,emptyMessage:"No tools available",disabled:d}),e[7]=d,e[8]=g,e[9]=l,e[10]=r,e[11]=o,e[12]=x):x=e[12],x}function Ss(n){return{id:n.name,name:n.name,description:n.description,tags:t.jsx(Yt,{annotations:n.annotations,_meta:n._meta})}}function _s(n){const e=R.c(13),{connectionId:s,selections:o,onToggle:l,onToggleAll:r,disabled:d}=n,{org:m}=me();let i;e[0]!==s||e[1]!==m.id?(i={connectionId:s,orgId:m.id},e[0]=s,e[1]=m.id,e[2]=i):i=e[2];const c=Ne(i);let f;e[3]!==c?(f={client:c},e[3]=c,e[4]=f):f=e[4];const{data:h}=ss(f);let p;e[5]!==h.resources?(p=h.resources.map(Ts),e[5]=h.resources,e[6]=p):p=e[6];const g=p;let x;return e[7]!==d||e[8]!==g||e[9]!==l||e[10]!==r||e[11]!==o?(x=t.jsx(Ve,{items:g,selections:o,onToggle:l,onToggleAll:r,emptyMessage:"No resources available",disabled:d}),e[7]=d,e[8]=g,e[9]=l,e[10]=r,e[11]=o,e[12]=x):x=e[12],x}function Ts(n){return{id:n.name||n.uri,name:n.name||n.uri,description:n.description}}function ks(n){const e=R.c(13),{connectionId:s,selections:o,onToggle:l,onToggleAll:r,disabled:d}=n,{org:m}=me();let i;e[0]!==s||e[1]!==m.id?(i={connectionId:s,orgId:m.id},e[0]=s,e[1]=m.id,e[2]=i):i=e[2];const c=Ne(i);let f;e[3]!==c?(f={client:c},e[3]=c,e[4]=f):f=e[4];const{data:h}=ls(f);let p;e[5]!==h.prompts?(p=h.prompts.map(ws),e[5]=h.prompts,e[6]=p):p=e[6];const g=p;let x;return e[7]!==d||e[8]!==g||e[9]!==l||e[10]!==r||e[11]!==o?(x=t.jsx(Ve,{items:g,selections:o,onToggle:l,onToggleAll:r,emptyMessage:"No prompts available",disabled:d}),e[7]=d,e[8]=g,e[9]=l,e[10]=r,e[11]=o,e[12]=x):x=e[12],x}function ws(n){return{id:n.name,name:n.name,description:n.description}}function Is(n){const e=R.c(24),{connection:s,isSelected:o,hasSelections:l,summary:r,onClick:d,onToggleAll:m,disabled:i}=n,c=i?"cursor-not-allowed opacity-50":"cursor-pointer",f=o?"bg-accent":"hover:bg-muted/50";let h;e[0]!==c||e[1]!==f?(h=J("flex items-center gap-2 p-2 h-12 rounded-lg transition-colors",c,f),e[0]=c,e[1]=f,e[2]=h):h=e[2];const p=i?void 0:d;let g;e[3]!==s.icon||e[4]!==s.title?(g=t.jsx($e,{icon:s.icon,name:s.title,size:"xs",className:"shrink-0"}),e[3]=s.icon,e[4]=s.title,e[5]=g):g=e[5];let x;e[6]!==s.title?(x=t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[6]=s.title,e[7]=x):x=e[7];let a;e[8]!==l||e[9]!==r?(a=l&&r&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:r}),e[8]=l,e[9]=r,e[10]=a):a=e[10];let b;e[11]!==x||e[12]!==a?(b=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[x,a]}),e[11]=x,e[12]=a,e[13]=b):b=e[13];let u;e[14]!==i||e[15]!==l||e[16]!==m?(u=t.jsx(Be,{checked:l,onCheckedChange:m,onClick:Es,disabled:i,className:"shrink-0"}),e[14]=i,e[15]=l,e[16]=m,e[17]=u):u=e[17];let j;return e[18]!==h||e[19]!==p||e[20]!==g||e[21]!==b||e[22]!==u?(j=t.jsxs("div",{className:h,onClick:p,children:[g,b,u]}),e[18]=h,e[19]=p,e[20]=g,e[21]=b,e[22]=u,e[23]=j):j=e[23],j}function Es(n){return n.stopPropagation()}function As(n){const e=R.c(22),{allConnections:s,searchTerm:o,selectedId:l,hasSelections:r,getSelectionSummary:d,onConnectionClick:m,onToggleAll:i,disabled:c}=n;let f;e[0]!==s||e[1]!==o?(f=o?s.filter(x=>x.title.toLowerCase().includes(o.toLowerCase())||x.description?.toLowerCase().includes(o.toLowerCase())):s,e[0]=s,e[1]=o,e[2]=f):f=e[2];const h=f;if(h.length===0){const x=o?"No connections found":"No connections available";let a;return e[3]!==x?(a=t.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground p-4",children:x}),e[3]=x,e[4]=a):a=e[4],a}let p;if(e[5]!==c||e[6]!==h||e[7]!==d||e[8]!==r||e[9]!==m||e[10]!==i||e[11]!==l){let x;e[13]!==c||e[14]!==d||e[15]!==r||e[16]!==m||e[17]!==i||e[18]!==l?(x=a=>t.jsx(Is,{connection:a,isSelected:l===a.id,hasSelections:r(a.id),summary:d(a.id),onClick:()=>m(a.id),onToggleAll:()=>i(a.id),disabled:c},a.id),e[13]=c,e[14]=d,e[15]=r,e[16]=m,e[17]=i,e[18]=l,e[19]=x):x=e[19],p=h.map(x),e[5]=c,e[6]=h,e[7]=d,e[8]=r,e[9]=m,e[10]=i,e[11]=l,e[12]=p}else p=e[12];let g;return e[20]!==p?(g=t.jsx("div",{className:"flex flex-col gap-0.5",children:p}),e[20]=p,e[21]=g):g=e[21],g}function Os(n){const e=R.c(75),{currentConnection:s,activeTab:o,selectedId:l,formData:r,toggleTool:d,toggleResource:m,togglePrompt:i,toggleAllTools:c,toggleAllResources:f,toggleAllPrompts:h,onTabChange:p}=n;let g;e[0]!==s.icon||e[1]!==s.title?(g=t.jsx($e,{icon:s.icon,name:s.title,size:"md",className:"shrink-0"}),e[0]=s.icon,e[1]=s.title,e[2]=g):g=e[2];let x;e[3]!==s.title?(x=t.jsx("h2",{className:"text-lg font-semibold truncate",children:s.title}),e[3]=s.title,e[4]=x):x=e[4];let a;e[5]!==s.description?(a=s.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:s.description}),e[5]=s.description,e[6]=a):a=e[6];let b;e[7]!==x||e[8]!==a?(b=t.jsxs("div",{className:"flex-1 min-w-0",children:[x,a]}),e[7]=x,e[8]=a,e[9]=b):b=e[9];let u;e[10]!==g||e[11]!==b?(u=t.jsx("div",{className:"p-6 border-b border-border shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[g,b]})}),e[10]=g,e[11]=b,e[12]=u):u=e[12];let j;e[13]!==p?(j=H=>p(H),e[13]=p,e[14]=j):j=e[14];let N;e[15]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsxs(Te,{value:"tools",variant:"underline",className:"gap-2",children:[t.jsx(ze,{size:16}),"Tools"]}),e[15]=N):N=e[15];let C;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsxs(Te,{value:"resources",variant:"underline",className:"gap-2",children:[t.jsx(Re,{size:16}),"Resources"]}),e[16]=C):C=e[16];let y;e[17]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsxs(Xt,{variant:"underline",className:"shrink-0 px-6",children:[N,C,t.jsxs(Te,{value:"prompts",variant:"underline",className:"gap-2",children:[t.jsx(Le,{size:16}),"Prompts"]})]}),e[17]=y):y=e[17];let k;e[18]===Symbol.for("react.memo_cache_sentinel")?(k=Ee("Tools not supported by this server"),e[18]=k):k=e[18];let w;e[19]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(Ie,{}),e[19]=w):w=e[19];let S;e[20]!==r||e[21]!==l?(S=r[l]?r[l].tools:[],e[20]=r,e[21]=l,e[22]=S):S=e[22];let E;e[23]!==l||e[24]!==d?(E=(H,O)=>d(l,H,O),e[23]=l,e[24]=d,e[25]=E):E=e[25];let _;e[26]!==l||e[27]!==c?(_=()=>c(l),e[26]=l,e[27]=c,e[28]=_):_=e[28];let I;e[29]!==l||e[30]!==S||e[31]!==E||e[32]!==_?(I=t.jsx(ke,{value:"tools",className:"flex-1 overflow-hidden mt-0",children:t.jsx(pe,{fallback:k,children:t.jsx(M.Suspense,{fallback:w,children:t.jsx(Cs,{connectionId:l,selections:S,onToggle:E,onToggleAll:_})})})}),e[29]=l,e[30]=S,e[31]=E,e[32]=_,e[33]=I):I=e[33];let T;e[34]===Symbol.for("react.memo_cache_sentinel")?(T=Ee("Resources not supported by this server"),e[34]=T):T=e[34];let A;e[35]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(Ie,{}),e[35]=A):A=e[35];let D;e[36]!==r||e[37]!==l?(D=r[l]?r[l].resources:[],e[36]=r,e[37]=l,e[38]=D):D=e[38];let G;e[39]!==l||e[40]!==m?(G=(H,O)=>m(l,H,O),e[39]=l,e[40]=m,e[41]=G):G=e[41];let L;e[42]!==l||e[43]!==f?(L=()=>f(l),e[42]=l,e[43]=f,e[44]=L):L=e[44];let F;e[45]!==l||e[46]!==D||e[47]!==G||e[48]!==L?(F=t.jsx(ke,{value:"resources",className:"flex-1 overflow-hidden mt-0",children:t.jsx(pe,{fallback:T,children:t.jsx(M.Suspense,{fallback:A,children:t.jsx(_s,{connectionId:l,selections:D,onToggle:G,onToggleAll:L})})})}),e[45]=l,e[46]=D,e[47]=G,e[48]=L,e[49]=F):F=e[49];let U;e[50]===Symbol.for("react.memo_cache_sentinel")?(U=Ee("Prompts not supported by this server"),e[50]=U):U=e[50];let K;e[51]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(Ie,{}),e[51]=K):K=e[51];let P;e[52]!==r||e[53]!==l?(P=r[l]?r[l].prompts:[],e[52]=r,e[53]=l,e[54]=P):P=e[54];let B;e[55]!==l||e[56]!==i?(B=(H,O)=>i(l,H,O),e[55]=l,e[56]=i,e[57]=B):B=e[57];let $;e[58]!==l||e[59]!==h?($=()=>h(l),e[58]=l,e[59]=h,e[60]=$):$=e[60];let z;e[61]!==l||e[62]!==P||e[63]!==B||e[64]!==$?(z=t.jsx(ke,{value:"prompts",className:"flex-1 overflow-hidden mt-0",children:t.jsx(pe,{fallback:U,children:t.jsx(M.Suspense,{fallback:K,children:t.jsx(ks,{connectionId:l,selections:P,onToggle:B,onToggleAll:$})})})}),e[61]=l,e[62]=P,e[63]=B,e[64]=$,e[65]=z):z=e[65];let V;e[66]!==o||e[67]!==I||e[68]!==F||e[69]!==z||e[70]!==j?(V=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:t.jsxs(Zt,{value:o,onValueChange:j,variant:"underline",className:"flex-1 flex flex-col overflow-hidden",children:[y,I,F,z]})}),e[66]=o,e[67]=I,e[68]=F,e[69]=z,e[70]=j,e[71]=V):V=e[71];let W;return e[72]!==V||e[73]!==u?(W=t.jsxs(t.Fragment,{children:[u,V]}),e[72]=V,e[73]=u,e[74]=W):W=e[74],W}function Ds(n){const e={};for(const s of n)e[s.connection_id]={tools:s.selected_tools,resources:s.selected_resources??null,prompts:s.selected_prompts??null};return e}function Ae(n){return Object.entries(n).map(([e,s])=>({connection_id:e,selected_tools:s.tools,selected_resources:s.resources,selected_prompts:s.prompts}))}function $s(n,e){switch(e.type){case"SET_SEARCH_TERM":return{...n,searchTerm:e.payload};case"SET_SELECTED":return{...n,selectedId:e.payload};case"SET_ACTIVE_TAB":return{...n,activeTab:e.payload};case"RESET":return{searchTerm:"",selectedId:e.payload.selectedId??e.payload.firstConnectionId??null,activeTab:"tools"};case"SELECT_CONNECTION":return{...n,selectedId:e.payload,activeTab:"tools"};default:return n}}const zs=(n,e)=>n.find(s=>s.id===e)??n[0];function Rs(n){const e=R.c(77),{open:s,onOpenChange:o,selectedId:l,form:r,connections:d}=n;let m;e[0]!==l?(m={activeTab:"tools",searchTerm:"",selectedId:l},e[0]=l,e[1]=m):m=e[1];const[i,c]=M.useReducer($s,m),f=M.useDeferredValue(i.searchTerm);let h;e[2]!==f?(h={searchTerm:f},e[2]=f,e[3]=h):h=e[3];const p=Ot(h);let g;e[4]!==d?(g=d??[],e[4]=d,e[5]=g):g=e[5];let x;e[6]!==g?(x=Ds(g),e[6]=g,e[7]=x):x=e[7];const a=x;let b;e[8]!==p||e[9]!==i.selectedId?(b=zs(p,i.selectedId),e[8]=p,e[9]=i.selectedId,e[10]=b):b=e[10];const u=b,j=u?.id??null;let N;e[11]!==a?(N=v=>bs(a,v),e[11]=a,e[12]=N):N=e[12];const C=N;let y;e[13]!==a?(y=v=>js(a,v),e[13]=a,e[14]=y):y=e[14];const k=y;let w;e[15]!==r||e[16]!==a?(w=(v,Y,q,ee)=>{const ce=a[v]?.[Y];let Q;ce===null?Q=ee.filter(ve=>ve!==q):ce?.includes(q)?Q=ce.filter(ve=>ve!==q):(Q=[...ce??[],q],Q.length===ee.length&&(Q=null));const de={...a};de[v]?de[v]={...de[v]}:de[v]={tools:null,resources:null,prompts:null},de[v][Y]=Q,r.setValue("connections",Ae(de),{shouldDirty:!0,shouldTouch:!0})},e[15]=r,e[16]=a,e[17]=w):w=e[17];const S=w;let E;e[18]!==r||e[19]!==a?(E=(v,Y)=>{const ce=a[v]?.[Y]===null?[]:null,Q={...a};Q[v]?Q[v]={...Q[v]}:Q[v]={tools:null,resources:null,prompts:null},Q[v][Y]=ce,r.setValue("connections",Ae(Q),{shouldDirty:!0,shouldTouch:!0})},e[18]=r,e[19]=a,e[20]=E):E=e[20];const _=E;let I;e[21]!==S?(I=(v,Y,q)=>S(v,"tools",Y,q),e[21]=S,e[22]=I):I=e[22];const T=I;let A;e[23]!==S?(A=(v,Y,q)=>S(v,"resources",Y,q),e[23]=S,e[24]=A):A=e[24];const D=A;let G;e[25]!==S?(G=(v,Y,q)=>S(v,"prompts",Y,q),e[25]=S,e[26]=G):G=e[26];const L=G;let F;e[27]!==_?(F=v=>_(v,"tools"),e[27]=_,e[28]=F):F=e[28];const U=F;let K;e[29]!==_?(K=v=>_(v,"resources"),e[29]=_,e[30]=K):K=e[30];const P=K;let B;e[31]!==_?(B=v=>_(v,"prompts"),e[31]=_,e[32]=B):B=e[32];const $=B;let z;e[33]!==r||e[34]!==a?(z=v=>{const Y=a[v],q=Y&&Y.tools===null&&Y.resources===null&&Y.prompts===null,ee={...a};q?delete ee[v]:ee[v]=Ns,r.setValue("connections",Ae(ee),{shouldDirty:!0,shouldTouch:!0})},e[33]=r,e[34]=a,e[35]=z):z=e[35];const V=z;let W;e[36]!==p||e[37]!==o||e[38]!==l?(W=v=>{v&&c({type:"RESET",payload:{selectedId:l,firstConnectionId:p[0]?.id??null}}),o(v)},e[36]=p,e[37]=o,e[38]=l,e[39]=W):W=e[39];const H=W;let O;e[40]===Symbol.for("react.memo_cache_sentinel")?(O=v=>{c({type:"SELECT_CONNECTION",payload:v})},e[40]=O):O=e[40];const Z=O;let ue;e[41]===Symbol.for("react.memo_cache_sentinel")?(ue=v=>c({type:"SET_SEARCH_TERM",payload:v}),e[41]=ue):ue=e[41];let se;e[42]!==i.searchTerm?(se=t.jsx(Wt,{value:i.searchTerm,onChange:ue,placeholder:"Search connections..."}),e[42]=i.searchTerm,e[43]=se):se=e[43];let le;e[44]!==p||e[45]!==i.searchTerm||e[46]!==j||e[47]!==k||e[48]!==C||e[49]!==V?(le=t.jsx("div",{className:"flex-1 overflow-auto p-2",children:t.jsx(As,{allConnections:p,searchTerm:i.searchTerm,selectedId:j,hasSelections:C,getSelectionSummary:k,onConnectionClick:Z,onToggleAll:V})}),e[44]=p,e[45]=i.searchTerm,e[46]=j,e[47]=k,e[48]=C,e[49]=V,e[50]=le):le=e[50];let oe;e[51]!==se||e[52]!==le?(oe=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:[se,le]}),e[51]=se,e[52]=le,e[53]=oe):oe=e[53];let ne;e[54]!==u||e[55]!==i.activeTab||e[56]!==j||e[57]!==a||e[58]!==$||e[59]!==P||e[60]!==U||e[61]!==L||e[62]!==D||e[63]!==T?(ne=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:u&&j?t.jsx(Os,{currentConnection:u,activeTab:i.activeTab,selectedId:j,formData:a,toggleTool:T,toggleResource:D,togglePrompt:L,toggleAllTools:U,toggleAllResources:P,toggleAllPrompts:$,onTabChange:v=>c({type:"SET_ACTIVE_TAB",payload:v})},j):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[54]=u,e[55]=i.activeTab,e[56]=j,e[57]=a,e[58]=$,e[59]=P,e[60]=U,e[61]=L,e[62]=D,e[63]=T,e[64]=ne):ne=e[64];let re;e[65]!==oe||e[66]!==ne?(re=t.jsxs("div",{className:"flex-1 flex overflow-hidden min-h-0 flex-col sm:flex-row",children:[oe,ne]}),e[65]=oe,e[66]=ne,e[67]=re):re=e[67];let ie;e[68]!==H?(ie=t.jsx(Jt,{className:"px-6 py-4 border-t border-border shrink-0",children:t.jsx(X,{variant:"outline",onClick:()=>H(!1),children:"Done"})}),e[68]=H,e[69]=ie):ie=e[69];let ae;e[70]!==re||e[71]!==ie?(ae=t.jsxs(tt,{className:"sm:max-w-5xl h-[80vh] max-h-[80vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[re,ie]}),e[70]=re,e[71]=ie,e[72]=ae):ae=e[72];let fe;return e[73]!==H||e[74]!==s||e[75]!==ae?(fe=t.jsx(st,{open:s,onOpenChange:H,children:ae}),e[73]=H,e[74]=s,e[75]=ae,e[76]=fe):fe=e[76],fe}const Ls=nt.pick({title:!0,description:!0,icon:!0,status:!0,metadata:!0,connections:!0}).extend({title:rt().min(1,"Name is required").max(255)});function Ps(n){const e=R.c(8);let s,o;e[0]!==n?({className:s,...o}=n,e[0]=n,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let l;e[3]!==s?(l=J("grid gap-3",s),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==o||e[6]!==l?(r=t.jsx(as,{"data-slot":"radio-group",className:l,...o}),e[5]=o,e[6]=l,e[7]=r):r=e[7],r}function Oe(n){const e=R.c(9);let s,o;e[0]!==n?({className:s,...o}=n,e[0]=n,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let l;e[3]!==s?(l=J("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 r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(cs,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:t.jsx(ds,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})}),e[5]=r):r=e[5];let d;return e[6]!==o||e[7]!==l?(d=t.jsx(is,{"data-slot":"radio-group-item",className:l,...o,children:r}),e[6]=o,e[7]=l,e[8]=d):d=e[8],d}function Ms(n){const s=new TextEncoder().encode(n),o=Array.from(s,l=>String.fromCharCode(l)).join("");return btoa(o)}function Fs(n){const e=R.c(10),{url:s}=n,[o,l]=M.useState(!1);let r;e[0]!==s?(r=async()=>{await navigator.clipboard.writeText(s),l(!0),te.success("Agent URL copied to clipboard"),setTimeout(()=>l(!1),2e3)},e[0]=s,e[1]=r):r=e[1];const d=r;let m;e[2]!==o?(m=o?t.jsx(ye,{size:20,className:"text-green-600"}):t.jsx(Fe,{size:20}),e[2]=o,e[3]=m):m=e[3];const i=o?"Copied!":"Copy URL";let c;e[4]!==i?(c=t.jsx("span",{className:"text-xs font-medium",children:i}),e[4]=i,e[5]=c):c=e[5];let f;return e[6]!==d||e[7]!==m||e[8]!==c?(f=t.jsxs(X,{type:"button",variant:"outline",onClick:d,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[m,c]}),e[6]=d,e[7]=m,e[8]=c,e[9]=f):f=e[9],f}function Bs(n){const e=R.c(7),{url:s,serverName:o}=n;let l;e[0]!==o||e[1]!==s?(l=()=>{const c=lt(o),h=Ms(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),p=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(c)}&config=${encodeURIComponent(h)}`;window.open(p,"_blank"),te.success("Opening Cursor...")},e[0]=o,e[1]=s,e[2]=l):l=e[2];const r=l;let d,m;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=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%)"}}),m=t.jsx("span",{className:"text-xs font-medium",children:"Install on Cursor"}),e[3]=d,e[4]=m):(d=e[3],m=e[4]);let i;return e[5]!==r?(i=t.jsxs(X,{type:"button",variant:"outline",onClick:r,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[d,m]}),e[5]=r,e[6]=i):i=e[6],i}function Vs(n){const e=R.c(11),{url:s,serverName:o}=n,[l,r]=M.useState(!1);let d;e[0]!==o||e[1]!==s?(d=async()=>{const p=lt(o),x=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),a=`claude mcp add-json "${p}" '${x.replace(/'/g,"'\\''")}' --scope user`;await navigator.clipboard.writeText(a),r(!0),te.success("Claude Code command copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[0]=o,e[1]=s,e[2]=d):d=e[2];const m=d;let i;e[3]!==l?(i=l?t.jsx(ye,{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]=i):i=e[4];const c=l?"Copied!":"Install on Claude";let f;e[5]!==c?(f=t.jsx("span",{className:"text-xs font-medium",children:c}),e[5]=c,e[6]=f):f=e[6];let h;return e[7]!==m||e[8]!==i||e[9]!==f?(h=t.jsxs(X,{type:"button",variant:"outline",onClick:m,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[i,f]}),e[7]=m,e[8]=i,e[9]=f,e[10]=h):h=e[10],h}function Gs({virtualMcp:n}){const{org:e}=me(),s=Ne({connectionId:es,orgId:e.id}),[o,l]=M.useState(null),[r,d]=M.useState(!1),[m,i]=M.useState(!1),c=n.id,f=n.title||`agent-${c.slice(0,8)}`,h=o?`bunx @decocms/typegen@latest --mcp ${c} --key ${o} --output client.ts`:`bunx @decocms/typegen@latest --mcp ${c} --key <api-key> --output client.ts`,p=async()=>{d(!0);try{const a=(await s.callTool({name:"API_KEY_CREATE",arguments:{name:`typegen-${f}`,permissions:{[c]:["*"]}}})).structuredContent?.key;if(!a)throw new Error("No key in response");l(a)}catch{te.error("Failed to generate API key")}finally{d(!1)}},g=async()=>{await navigator.clipboard.writeText(h),i(!0),te.success("Command copied to clipboard"),setTimeout(()=>i(!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."]})]}),!o&&t.jsxs(X,{type:"button",variant:"outline",size:"sm",className:"shrink-0 gap-1.5",onClick:p,disabled:r,children:[r?t.jsx(Me,{size:14,className:"animate-spin"}):t.jsx(Lt,{size:14}),t.jsx("span",{children:r?"Generating…":"Generate API key"})]})]}),o&&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:h}),t.jsx(X,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:g,children:m?t.jsx(ye,{size:12,className:"text-green-600"}):t.jsx(Fe,{size:12})})]})}),t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Runtime variables"}),t.jsx(Us,{apiKey:o})]})}function Us(n){const e=R.c(19),{apiKey:s}=n,[o,l]=M.useState(!1),r=window.location.origin,d=s?`MESH_API_KEY=${s}`:"MESH_API_KEY=<api-key>",m=`MESH_BASE_URL=${r}`,i=`${d}
|
|
2
2
|
${m}`;let c;e[0]!==i?(c=async()=>{await navigator.clipboard.writeText(i),l(!0),setTimeout(()=>l(!1),2e3)},e[0]=i,e[1]=c):c=e[1];const f=c,h=!s;let p;e[2]!==h?(p=J({"opacity-50":h}),e[2]=h,e[3]=p):p=e[3];let g;e[4]!==d||e[5]!==p?(g=t.jsx("span",{className:p,children:d}),e[4]=d,e[5]=p,e[6]=g):g=e[6];let x,a;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("br",{}),a=t.jsx("span",{children:m}),e[7]=x,e[8]=a):(x=e[7],a=e[8]);let b;e[9]!==g?(b=t.jsxs("code",{className:"min-w-0 flex-1 font-mono text-xs text-muted-foreground",children:[g,x,a]}),e[9]=g,e[10]=b):b=e[10];let u;e[11]!==o?(u=o?t.jsx(ye,{size:12,className:"text-green-600"}):t.jsx(Fe,{size:12}),e[11]=o,e[12]=u):u=e[12];let j;e[13]!==f||e[14]!==u?(j=t.jsx(X,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:f,children:u}),e[13]=f,e[14]=u,e[15]=j):j=e[15];let N;return e[16]!==b||e[17]!==j?(N=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:[b,j]})}),e[16]=b,e[17]=j,e[18]=N):N=e[18],N}function Hs(n){const e=R.c(3),{virtualMcp:s}=n;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"h-20 animate-pulse rounded-md bg-muted"}),e[0]=o):o=e[0];let l;return e[1]!==s?(l=t.jsx(M.Suspense,{fallback:o,children:t.jsx(Gs,{virtualMcp:s})}),e[1]=s,e[2]=l):l=e[2],l}function Ks(n){const e=R.c(53),{open:s,onOpenChange:o,virtualMcp:l}=n,[r,d]=M.useState("code_execution");let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=$=>{($==="passthrough"||$==="smart_tool_selection"||$==="code_execution")&&d($)},e[0]=m):m=e[0];const i=m;let c;e[1]!==r||e[2]!==l.id?(c=new URL(`/mcp/virtual-mcp/${l.id}`,window.location.origin),c.searchParams.set("mode",r),e[1]=r,e[2]=l.id,e[3]=c):c=e[3];let f;e[4]!==l.id||e[5]!==l.title?(f=l.title||`agent-${l.id?.slice(0,8)??"default"}`,e[4]=l.id,e[5]=l.title,e[6]=f):f=e[6];const h=f,p=At();let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[7]=g):g=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(vt,{className:"size-5 text-muted-foreground"})}),e[8]=x):x=e[8];let a;e[9]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Direct access"}),e[9]=a):a=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(he,{asChild:!0,children:t.jsx(Se,{className:"size-3.5 text-muted-foreground"})}),e[10]=b):b=e[10];let u;e[11]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsxs("label",{htmlFor:"mode-passthrough",className:"flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[x,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[a,t.jsx(_e,{children:t.jsxs(ge,{children:[b,t.jsx(je,{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(Oe,{id:"mode-passthrough",value:"passthrough"})]}),e[11]=u):u=e[11];let j;e[12]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Ct,{className:"size-5 text-muted-foreground"})}),e[12]=j):j=e[12];let N;e[13]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart discovery"}),e[13]=N):N=e[13];let C;e[14]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(he,{asChild:!0,children:t.jsx(Se,{className:"size-3.5 text-muted-foreground"})}),e[14]=C):C=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y=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:[j,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[N,t.jsx(_e,{children:t.jsxs(ge,{children:[C,t.jsx(je,{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(Oe,{id:"mode-smart",value:"smart_tool_selection"})]}),e[15]=y):y=e[15];let k;e[16]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(ht,{className:"size-5 text-muted-foreground"})}),e[16]=k):k=e[16];let w;e[17]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart execution"}),e[17]=w):w=e[17];let S;e[18]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(he,{asChild:!0,children:t.jsx(Se,{className:"size-3.5 text-muted-foreground"})}),e[18]=S):S=e[18];let E;e[19]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsxs("label",{htmlFor:"mode-code",className:"relative flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[k,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[w,t.jsx(_e,{children:t.jsxs(ge,{children:[S,t.jsx(je,{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(Oe,{id:"mode-code",value:"code_execution"}),t.jsx(Pe,{variant:"outline",className:"absolute -top-2.5 left-1/2 -translate-x-1/2 bg-background z-10",children:"Recommended"})]}),e[19]=E):E=e[19];let _;e[20]!==r?(_=t.jsxs("div",{className:"flex flex-col gap-3",children:[g,t.jsxs(Ps,{value:r,onValueChange:i,className:"flex flex-col gap-4.5",children:[u,y,E]})]}),e[20]=r,e[21]=_):_=e[21];let I;e[22]!==c.href?(I=t.jsx(Fs,{url:c.href}),e[22]=c.href,e[23]=I):I=e[23];let T,A;e[24]!==h||e[25]!==c.href?(T=t.jsx(Bs,{url:c.href,serverName:h}),A=t.jsx(Vs,{url:c.href,serverName:h}),e[24]=h,e[25]=c.href,e[26]=T,e[27]=A):(T=e[26],A=e[27]);let D;e[28]!==I||e[29]!==T||e[30]!==A?(D=t.jsx("div",{className:"flex flex-col gap-3 pt-2",children:t.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[I,T,A]})}),e[28]=I,e[29]=T,e[30]=A,e[31]=D):D=e[31];let G;e[32]===Symbol.for("react.memo_cache_sentinel")?(G=t.jsx("div",{className:"border-t border-border"}),e[32]=G):G=e[32];let L;e[33]!==l?(L=t.jsx(Hs,{virtualMcp:l}),e[33]=l,e[34]=L):L=e[34];let F;e[35]!==_||e[36]!==D||e[37]!==L?(F=t.jsxs("div",{className:"flex flex-col gap-6",children:[_,D,G,L]}),e[35]=_,e[36]=D,e[37]=L,e[38]=F):F=e[38];const U=F;if(p){let $;e[39]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(os,{className:"mt-4 mb-4 text-base font-semibold",children:"Connect"}),e[39]=$):$=e[39];let z;e[40]!==U?(z=t.jsx(ns,{children:t.jsxs("div",{className:"flex-1 overflow-y-auto px-4 pb-6 [touch-action:pan-y]",children:[$,U]})}),e[40]=U,e[41]=z):z=e[41];let V;return e[42]!==o||e[43]!==s||e[44]!==z?(V=t.jsx(rs,{open:s,onOpenChange:o,children:z}),e[42]=o,e[43]=s,e[44]=z,e[45]=V):V=e[45],V}let K;e[46]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(qt,{children:t.jsx(Qt,{children:"Connect"})}),e[46]=K):K=e[46];let P;e[47]!==U?(P=t.jsxs(tt,{className:"max-h-[80vh] overflow-y-auto sm:max-w-2xl",children:[K,U]}),e[47]=U,e[48]=P):P=e[48];let B;return e[49]!==o||e[50]!==s||e[51]!==P?(B=t.jsx(st,{open:s,onOpenChange:o,children:P}),e[49]=o,e[50]=s,e[51]=P,e[52]=B):B=e[52],B}function Ws(n,e){switch(e.type){case"SET_SHARE_DIALOG_OPEN":return{...n,shareDialogOpen:e.payload};case"SET_CONNECTION_DIALOG_OPEN":return{...n,connectionDialogOpen:e.payload};case"SET_EDITING_CONNECTION_ID":return{...n,editingConnectionId:e.payload};case"SET_SKILLS_OPEN":return{...n,skillsOpen:e.payload};default:return n}}function De(n){const e=R.c(27),{connection_id:s,selected_tools:o,selected_resources:l,selected_prompts:r,onClick:d}=n,m=Dt(s);if(!m)return null;let i;e[0]!==o?(i=we(o),e[0]=o,e[1]=i):i=e[1];const c=i;let f;e[2]!==l?(f=we(l),e[2]=l,e[3]=f):f=e[3];const h=f;let p;e[4]!==r?(p=we(r),e[4]=r,e[5]=p):p=e[5];const g=p;let x;e[6]!==m.icon||e[7]!==m.title?(x=t.jsx($e,{icon:m.icon,name:m.title,size:"xs"}),e[6]=m.icon,e[7]=m.title,e[8]=x):x=e[8];let a;e[9]!==m.title?(a=t.jsx("p",{className:"flex-1 text-sm font-normal text-foreground truncate",children:m.title}),e[9]=m.title,e[10]=a):a=e[10];let b;e[11]!==c?(b=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(ze,{size:12})]}),e[11]=c,e[12]=b):b=e[12];let u;e[13]!==h?(u=h!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:h==="all"?"all":h}),t.jsx(Re,{size:12})]}),e[13]=h,e[14]=u):u=e[14];let j;e[15]!==g?(j=g!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:g==="all"?"all":g}),t.jsx(Le,{size:12})]}),e[15]=g,e[16]=j):j=e[16];let N;e[17]!==b||e[18]!==u||e[19]!==j?(N=t.jsxs(Pe,{variant:"secondary",className:"bg-muted h-5 gap-2 px-1.5 py-1 flex items-center",children:[b,u,j]}),e[17]=b,e[18]=u,e[19]=j,e[20]=N):N=e[20];let C;e[21]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(et,{size:16,className:"text-muted-foreground shrink-0"}),e[21]=C):C=e[21];let y;return e[22]!==d||e[23]!==x||e[24]!==a||e[25]!==N?(y=t.jsxs("div",{onClick:d,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:[x,a,N,C]}),e[22]=d,e[23]=x,e[24]=a,e[25]=N,e[26]=y):y=e[26],y}De.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(Pe,{variant:"secondary",className:"bg-muted h-5 gap-2 px-1.5 py-1 flex items-center",children:[t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(ze,{size:12})]}),t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(Re,{size:12})]}),t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(Le,{size:12})]})]}),t.jsx(et,{size:16,className:"text-muted-foreground shrink-0"})]})};function Ys({virtualMcp:n}){const{org:e}=me(),s=zt(),o=ct({resolver:dt(Ls),defaultValues:n}),l=o.watch("connections"),[r,d]=M.useReducer(Ws,{shareDialogOpen:!1,connectionDialogOpen:!1,editingConnectionId:null,skillsOpen:localStorage.getItem("agent-connections-open")==="true"}),[,m]=Tt(),{setVirtualMcpId:i}=ut();M.useEffect(()=>{m(!0),i(n.id)},[n.id]);const c=()=>{i(n.id),m(!0)},f=o.formState.isDirty,h=async()=>{const u=o.getValues(),j=await s.update.mutateAsync({id:n.id,data:u});o.reset(j)},p=()=>{o.reset(n)},g=()=>{d({type:"SET_EDITING_CONNECTION_ID",payload:null}),d({type:"SET_CONNECTION_DIALOG_OPEN",payload:!0})},x=u=>{d({type:"SET_EDITING_CONNECTION_ID",payload:u}),d({type:"SET_CONNECTION_DIALOG_OPEN",payload:!0})},a=s.update.isPending,b=t.jsx(Mt,{children:t.jsxs(Ft,{children:[t.jsx(We,{children:t.jsx(Bt,{asChild:!0,children:t.jsx(mt,{to:"/$org/$project/agents",params:{org:e.slug,project:Ye},children:"Agents"})})}),t.jsx(Vt,{}),t.jsx(We,{children:t.jsx(Gt,{children:n.title})})]})});return t.jsxs(Ut,{breadcrumb:b,children:[t.jsxs(Ht,{children:[t.jsx(Kt,{onSave:h,onUndo:p,isDirty:f,isSaving:a}),t.jsxs(ge,{delayDuration:0,children:[t.jsx(he,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsxs(X,{variant:"outline",size:"sm",className:"h-7 gap-1.5 px-2 border border-input",onClick:c,"aria-label":"Test Agent",children:[t.jsx(Pt,{size:14}),"Test Agent"]})})}),t.jsx(je,{side:"bottom",children:"Test this agent in chat"})]}),t.jsxs(X,{variant:"outline",size:"sm",className:"h-7 gap-1.5 px-2 border border-input",onClick:()=>d({type:"SET_SHARE_DIALOG_OPEN",payload:!0}),children:[t.jsx(St,{size:14}),"Connect"]})]}),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,{control:o.control,name:"icon",render:({field:u})=>t.jsx(us,{value:u.value,onChange:u.onChange,name:o.watch("title")||"Agent",size:"lg",className:"shrink-0 shadow-sm"})}),t.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[t.jsx(be,{...o.register("title"),className:"h-auto py-0.5 text-lg! font-medium leading-7 px-1 -mx-1 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Agent Name"}),t.jsx(be,{...o.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(It,{checked:o.watch("status")==="active",onCheckedChange:u=>o.setValue("status",u?"active":"inactive",{shouldDirty:!0})})})]}),t.jsxs(kt,{open:r.skillsOpen,onOpenChange:u=>{localStorage.setItem("agent-connections-open",String(u)),d({type:"SET_SKILLS_OPEN",payload:u})},className:"border-t border-border shrink-0 max-h-[400px] overflow-hidden flex flex-col",children:[l.length===0?t.jsxs("div",{className:"px-6 py-4 flex flex-col gap-3",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Connections"}),t.jsxs("button",{type:"button",onClick:g,className:"flex items-center gap-3 px-3 py-2.5 rounded-lg border border-border hover:bg-accent/50 transition-colors w-full text-left cursor-pointer overflow-hidden",children:[t.jsxs("div",{className:"relative flex items-center justify-center size-8 rounded-md text-muted-foreground/75 shrink-0",children:[t.jsxs("svg",{className:"absolute inset-0 size-full overflow-hidden",fill:"none",viewBox:"0 0 32 32",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"agent-detail-border-gradient",gradientUnits:"userSpaceOnUse",x1:"0",y1:"0",x2:"32",y2:"32",children:[t.jsx("animateTransform",{attributeName:"gradientTransform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"6s",repeatCount:"indefinite"}),t.jsx("stop",{offset:"0%",stopColor:"var(--chart-1)"}),t.jsx("stop",{offset:"100%",stopColor:"var(--chart-4)"})]})}),t.jsx("rect",{x:"0.5",y:"0.5",width:"31",height:"31",rx:"5.5",stroke:"url(#agent-detail-border-gradient)",strokeWidth:"1",strokeDasharray:"3 3"})]}),t.jsx(Ke,{size:16})]}),t.jsx("span",{className:"text-sm text-muted-foreground truncate",children:"No connections yet. Add one to get started."})]})]}):t.jsx(wt,{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:"Connections"}),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(ms,{connectionIds:l.map(u=>u.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:u=>{u.stopPropagation()},onClick:u=>{u.stopPropagation(),u.preventDefault(),g()},onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.stopPropagation(),u.preventDefault(),g())},children:[t.jsx(Ke,{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(Rt,{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:l.map(u=>t.jsx(M.Suspense,{fallback:t.jsx(De.Fallback,{}),children:t.jsx(De,{connection_id:u.connection_id,selected_tools:u.selected_tools,selected_resources:u.selected_resources,selected_prompts:u.selected_prompts,onClick:()=>x(u.connection_id)})},u.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(Ge,{name:"metadata.instructions",control:o.control,render:({field:u})=>t.jsx(Et,{...u,value:u.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(Rs,{open:r.connectionDialogOpen,onOpenChange:u=>d({type:"SET_CONNECTION_DIALOG_OPEN",payload:u}),selectedId:r.editingConnectionId,form:o,connections:l}),t.jsx(Ks,{open:r.shareDialogOpen,onOpenChange:u=>d({type:"SET_SHARE_DIALOG_OPEN",payload:u}),virtualMcp:n})]})}function Js(){const n=R.c(6),e=it();let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org/$project/agents/$agentId"},n[0]=s):s=n[0];const o=at(s),{org:l,agentId:r}=o,d=$t(r);if(!d){let i;return n[1]!==e||n[2]!==l?(i=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(ft,{title:"Agent not found",description:"This Agent may have been deleted or you may not have access.",actions:t.jsx(X,{variant:"outline",onClick:()=>e({to:"/$org/$project/agents",params:{org:l,project:Ye}}),children:"Back to agents"})})}),n[1]=e,n[2]=l,n[3]=i):i=n[3],i}let m;return n[4]!==d?(m=t.jsx(Ys,{virtualMcp:d}),n[4]=d,n[5]=m):m=n[5],m}function uo(){const n=R.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(pe,{children:t.jsx(M.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(Me,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Js,{})})}),n[0]=e):e=n[0],e}export{uo as default};
|