@decocms/mesh 2.125.2 → 2.126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-Cnw5GhjM.js → AlertCircle-LGpS_W0y.js} +1 -1
- package/dist/client/assets/{AlertOctagon-PE1D_d6N.js → AlertOctagon-B8MQnfim.js} +1 -1
- package/dist/client/assets/{AlertTriangle-DiiOmxZ5.js → AlertTriangle-BauDdA9B.js} +1 -1
- package/dist/client/assets/{ArrowDown-Dq_ix_a5.js → ArrowDown-OoKXTEnQ.js} +1 -1
- package/dist/client/assets/{ArrowLeft-2v2jDyMq.js → ArrowLeft-Dn8aVT34.js} +1 -1
- package/dist/client/assets/{ArrowUp-CP0dzs2U.js → ArrowUp-C43RK3lv.js} +1 -1
- package/dist/client/assets/{Check-IyJXmB3D.js → Check-DM3yWukQ.js} +1 -1
- package/dist/client/assets/{CheckCircle-D3-L-7q8.js → CheckCircle-s30iekcd.js} +1 -1
- package/dist/client/assets/{CheckDone01-Bl3K1H3i.js → CheckDone01-C4PaB87i.js} +1 -1
- package/dist/client/assets/{CheckVerified02-BTHXPwp3.js → CheckVerified02-DU8VH_8T.js} +1 -1
- package/dist/client/assets/{ChevronDown-CrA0GhEu.js → ChevronDown-Bvtjl1_J.js} +1 -1
- package/dist/client/assets/{ChevronRight-CQzN9ZtD.js → ChevronRight-BKg32aVF.js} +1 -1
- package/dist/client/assets/{Clock-BMY1eaW0.js → Clock-Db0q0BRR.js} +1 -1
- package/dist/client/assets/{Code01-CeGRGPJZ.js → Code01-B3OBXj9k.js} +1 -1
- package/dist/client/assets/{Container-BgkRftdL.js → Container-C5C-QC37.js} +1 -1
- package/dist/client/assets/{Copy01-B7sbyU73.js → Copy01-DzvhIVnU.js} +1 -1
- package/dist/client/assets/{Dataflow03-YIKw6rhG.js → Dataflow03-97xXCxRc.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-CStsW4jn.js → DotsHorizontal-DMaXCWHm.js} +1 -1
- package/dist/client/assets/{DotsVertical-BPB7nTxW.js → DotsVertical-JJuFY8qc.js} +1 -1
- package/dist/client/assets/{Download01-Iy9CsXT2.js → Download01-DQldvQzj.js} +1 -1
- package/dist/client/assets/{Edit01-BpchkiZj.js → Edit01-BWtM7ub2.js} +1 -1
- package/dist/client/assets/{Eye-CF7Jsi4h.js → Eye-msaxJPjl.js} +1 -1
- package/dist/client/assets/{File02-CNIaQNnA.js → File02-BTq_raQ0.js} +1 -1
- package/dist/client/assets/{File06-CN-CUlfW.js → File06-CkssxHwK.js} +1 -1
- package/dist/client/assets/{FilterLines-DKhKP4R7.js → FilterLines-DzDnwBbY.js} +1 -1
- package/dist/client/assets/{Globe01-C1WtitJR.js → Globe01-yf3RJj7g.js} +1 -1
- package/dist/client/assets/{Globe02-CLsJ4yCM.js → Globe02-DKs0xoZA.js} +1 -1
- package/dist/client/assets/{Grid01-BfcTdCmK.js → Grid01-BHkfA168.js} +1 -1
- package/dist/client/assets/{Hash02-66QHm8zh.js → Hash02-Dp3aQkYF.js} +1 -1
- package/dist/client/assets/{Home02-CLBx-CYf.js → Home02-AwwZSxVR.js} +1 -1
- package/dist/client/assets/{Image01-DiX4EYL6.js → Image01-BNys_Mns.js} +1 -1
- package/dist/client/assets/{Inbox01-uvAm2NdJ.js → Inbox01-NqZ6AxHy.js} +1 -1
- package/dist/client/assets/{InfoCircle-D8WkBwCV.js → InfoCircle-COa3ThIj.js} +1 -1
- package/dist/client/assets/{Key01-CRfrhjcx.js → Key01-CtmMXgET.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Dmi80ZqJ.js → LinkExternal01-B3-zqscw.js} +1 -1
- package/dist/client/assets/{List-DHYjADtQ.js → List-Cnm7l2wU.js} +1 -1
- package/dist/client/assets/{Loading01-5Os1EBQC.js → Loading01-BQNDOWoE.js} +1 -1
- package/dist/client/assets/{Lock01-CMu9e9I1.js → Lock01-CBVbJi0G.js} +1 -1
- package/dist/client/assets/{Pin01-Dtlca92y.js → Pin01-T7uk7ccW.js} +1 -1
- package/dist/client/assets/{Play-DpYyJNLB.js → Play-CDz_Acji.js} +1 -1
- package/dist/client/assets/{Plus-BZOdPpEn.js → Plus-WCxYwLGA.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-BU6Us9RR.js → RefreshCcw01-Ce4Zz6-L.js} +1 -1
- package/dist/client/assets/{RefreshCw01-ClksFdlE.js → RefreshCw01-Bg7WUwR3.js} +1 -1
- package/dist/client/assets/{Rows03-iLB6Pjez.js → Rows03-CDFo4INw.js} +1 -1
- package/dist/client/assets/{Save01-ipX1ktUE.js → Save01-C6t04HUj.js} +1 -1
- package/dist/client/assets/{SearchMd-C4hV7R8V.js → SearchMd-7zTlMjUG.js} +1 -1
- package/dist/client/assets/{Settings01-KIfOk1bg.js → Settings01-DnNomfd3.js} +1 -1
- package/dist/client/assets/{Shield01-Nc9e9wCl.js → Shield01-DdcqF-Gb.js} +1 -1
- package/dist/client/assets/{Terminal-1Out0GjX.js → Terminal-DMjgMuI5.js} +1 -1
- package/dist/client/assets/Tool01-DoJfr-IU.js +1 -0
- package/dist/client/assets/{Trash01-DA9Iy0yG.js → Trash01-DTKgec-l.js} +1 -1
- package/dist/client/assets/{Upload01-Co__isOw.js → Upload01-CppGjF6X.js} +1 -1
- package/dist/client/assets/{Users03-D2hf7hmK.js → Users03-CyGMH8pS.js} +1 -1
- package/dist/client/assets/{X-gSzwTkxQ.js → X-DhzUfCBr.js} +1 -1
- package/dist/client/assets/{XCircle-C6_3gAM6.js → XCircle-Bq0_f5be.js} +1 -1
- package/dist/client/assets/{XClose-MRwdozeO.js → XClose-kI_2EClC.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-D6JhcHHQ.js → agent-connections-preview-HN-oaDES.js} +1 -1
- package/dist/client/assets/agent-detail-B74TC3B0.js +2 -0
- package/dist/client/assets/agents-BYGMiTiE.js +1 -0
- package/dist/client/assets/alert-dialog-YaiDdNnH.js +7 -0
- package/dist/client/assets/{auth-catchall-B4V1ZqhA.js → auth-catchall-CkvlF1AK.js} +1 -1
- package/dist/client/assets/{avatar-DvchIe54.js → avatar-DxO_71W5.js} +1 -1
- package/dist/client/assets/{badge-DU-tZMJX.js → badge-DriFi26e.js} +1 -1
- package/dist/client/assets/{binder-DYtUzpSy.js → binder-BGgM6Lg4.js} +1 -1
- package/dist/client/assets/{breadcrumb-Btg1z4US.js → breadcrumb-DrHiC5wf.js} +1 -1
- package/dist/client/assets/{button-SrN4bZ1L.js → button-TXPV9u45.js} +1 -1
- package/dist/client/assets/{card-qnGcUCM7.js → card-C58nCIMb.js} +1 -1
- package/dist/client/assets/{chart-Dv2iFlyz.js → chart-DNbePsMl.js} +5 -5
- package/dist/client/assets/{checkbox-CysU4JNH.js → checkbox-CtqaJz_f.js} +1 -1
- package/dist/client/assets/{circle-alert-BCTsSu2I.js → circle-alert-BU4T93kt.js} +1 -1
- package/dist/client/assets/collection-detail-RXSILc2C.js +26 -0
- package/dist/client/assets/collection-search-BKBrWx0L.js +1 -0
- package/dist/client/assets/collection-tab-Du_MsYkg.js +1 -0
- package/dist/client/assets/collection-table-wrapper-D4ORko-B.js +1 -0
- package/dist/client/assets/{collection-tabs-GSP6CAnl.js → collection-tabs-DwdXqSDI.js} +1 -1
- package/dist/client/assets/{command-Du6rS94S.js → command-CrETjPM6.js} +1 -1
- package/dist/client/assets/{connect-DOymnzkM.js → connect-Bftioi5k.js} +1 -1
- package/dist/client/assets/{connection-card-CMw5gBsW.js → connection-card-DJtPsQXC.js} +1 -1
- package/dist/client/assets/connection-detail-UgsAzzHi.js +1 -0
- package/dist/client/assets/connections-CIVV_4Z5.js +1 -0
- package/dist/client/assets/constants-CZUfxf6O.js +1 -0
- package/dist/client/assets/{constants-DisK0xae.js → constants-DEI8O4hQ.js} +1 -1
- package/dist/client/assets/{context-C_I7xFo7.js → context-C5W0brIi.js} +2 -2
- package/dist/client/assets/{create-organization-dialog-yQPBfpjD.js → create-organization-dialog-CjitkLS5.js} +1 -1
- package/dist/client/assets/{create-project-dialog-OPPYG5uC.js → create-project-dialog-Btom6Pv1.js} +1 -1
- package/dist/client/assets/{deco-constants-GtDdHPMJ.js → deco-constants-DBAyO8EZ.js} +1 -1
- package/dist/client/assets/{dialog-DH6FGz6L.js → dialog-wuqlToby.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CvPfeATW.js → dropdown-menu-Ba6gkTmn.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-deQJwm8k.js → dynamic-plugin-layout-DHAky12t.js} +1 -1
- package/dist/client/assets/{empty-state-B_zGNEf7.js → empty-state-D8Gg0QJT.js} +1 -1
- package/dist/client/assets/{env-vars-editor-DpLZr7Mp.js → env-vars-editor-BiT3HGiU.js} +1 -1
- package/dist/client/assets/{error-boundary-CgOqOmL9.js → error-boundary-zygCkG0M.js} +1 -1
- package/dist/client/assets/{extract-connection-data-qY6ONXDc.js → extract-connection-data-CJpPKJk0.js} +1 -1
- package/dist/client/assets/{file-browser-iY7A5vK5.js → file-browser-BBzx58qW.js} +2 -2
- package/dist/client/assets/{form-DdSGRLg9.js → form-CdePd7Pv.js} +1 -1
- package/dist/client/assets/{grid-view-Nx0znnGe.js → grid-view-DflJZBdy.js} +1 -1
- package/dist/client/assets/{home-WDKWnX-6.js → home-Dbo5eVtn.js} +1 -1
- package/dist/client/assets/{index-BNESb5f9.js → index-B6YmkzTH.js} +1 -1
- package/dist/client/assets/index-B7FUMscm.css +1 -0
- package/dist/client/assets/{index-p3omciU2.js → index-BDPRLX-4.js} +37 -37
- package/dist/client/assets/{index-Cr3EE_Oz.js → index-BWyutPV5.js} +1 -1
- package/dist/client/assets/{index-BGG0J_lN.js → index-Bk-0u2bj.js} +72 -62
- package/dist/client/assets/{index-BmoMauUd.js → index-DMbcW5ts.js} +1 -1
- package/dist/client/assets/{index-C4EDt4lI.js → index-DaDJqKaJ.js} +1 -1
- package/dist/client/assets/{index-CqCSkLvQ.js → index-DyqsChsw.js} +1 -1
- package/dist/client/assets/index-YRFd6HJw.js +1 -0
- package/dist/client/assets/{index-BQJHl8k7.js → index-qq_KAj9h.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Bwh-NMGh.js → infiniteQueryObserver-C0Lkx8tQ.js} +1 -1
- package/dist/client/assets/{input-C19rUyj9.js → input-D_ph6wQi.js} +1 -1
- package/dist/client/assets/{integration-icon-CMj9-FPS.js → integration-icon-CWe3aQ6t.js} +1 -1
- package/dist/client/assets/{label-vYcgzZeb.js → label-C1HpB4GV.js} +1 -1
- package/dist/client/assets/{layout-B39Q-9q3.js → layout-Bd96cPIt.js} +1 -1
- package/dist/client/assets/{localstorage-keys-DIWr3Ek_.js → localstorage-keys-DPvmMmhc.js} +1 -1
- package/dist/client/assets/{login-CA6nx1du.js → login-BSCfq1-U.js} +1 -1
- package/dist/client/assets/{markdown-Dc-S7aGn.js → markdown-DRSGrJ01.js} +1 -1
- package/dist/client/assets/mcp-oauth-C2nS4eVY.js +1 -0
- package/dist/client/assets/{mcp-server-card-ByBnE-vj.js → mcp-server-card-xAMTxIFp.js} +1 -1
- package/dist/client/assets/mcp-server-detail-DWeC-d7q.js +2 -0
- package/dist/client/assets/members-D2sHhm7P.js +3 -0
- package/dist/client/assets/{monitoring-WM-Rk7qO.js → monitoring-DmDaA6pX.js} +2 -2
- package/dist/client/assets/{monitoring-dashboard-edit-Dp8NRuZd.js → monitoring-dashboard-edit-D-CjBdg5.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-wLbkoGo1.js → monitoring-dashboard-view-DLtVeEmh.js} +1 -1
- package/dist/client/assets/{oauth-callback-CaX2c7Wu.js → oauth-callback-Dxel0vXg.js} +1 -1
- package/dist/client/assets/page-BsvuXDx0.js +1 -0
- package/dist/client/assets/page-DafO9Vsq.js +1 -0
- package/dist/client/assets/{plugin-empty-state-CVngkfX3.js → plugin-empty-state-dfX9T95D.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-D0_za-x_.js → plugin-empty-state-rzJ3vtCR.js} +1 -1
- package/dist/client/assets/{plugin-header-CqyTjT8y.js → plugin-header-CsWU692q.js} +1 -1
- package/dist/client/assets/{plugin-header-PVE46n-W.js → plugin-header-Wka6wy0Q.js} +1 -1
- package/dist/client/assets/{popover-Bz-dtYC4.js → popover-Dt4_z2id.js} +1 -1
- package/dist/client/assets/{project-layout-Cz0HYNyh.js → project-layout-DI1hNjLJ.js} +1 -1
- package/dist/client/assets/projects-list-DOU4Z6y2.js +1 -0
- package/dist/client/assets/{ranking-layout-CiiVJptK.js → ranking-layout-6RB09MfT.js} +1 -1
- package/dist/client/assets/{readme-viewer-C7GbD9G5.js → readme-viewer-BGtJvXCC.js} +1 -1
- package/dist/client/assets/{registry-layout-ChpSfSFu.js → registry-layout-CcqSqRDx.js} +1 -1
- package/dist/client/assets/{registry-utils-B61PMbF-.js → registry-utils-B0iZy2Nk.js} +1 -1
- package/dist/client/assets/{reports-layout-BvKe5aI3.js → reports-layout-B5LghGJo.js} +2 -2
- package/dist/client/assets/{reset-password-B7ISHNC0.js → reset-password-R4LjbQ2i.js} +1 -1
- package/dist/client/assets/{resizable-Cu9ocREr.js → resizable-h7fEF3zV.js} +1 -1
- package/dist/client/assets/{save-actions-CAz6Fzpg.js → save-actions-jSFDRjsZ.js} +1 -1
- package/dist/client/assets/{scroll-area-CVHsk4Pe.js → scroll-area-DIiM0juX.js} +4 -4
- package/dist/client/assets/{select-DFuMzqKt.js → select-DNtTB4Bo.js} +1 -1
- package/dist/client/assets/shell-layout-AyiHAnWo.js +3 -0
- package/dist/client/assets/{skeleton-DQTz2Cfy.js → skeleton-DNzAW1SF.js} +1 -1
- package/dist/client/assets/{spinner-DxDNcb59.js → spinner-DjxJ1r6s.js} +1 -1
- package/dist/client/assets/{store-invite-SskJUHyO.js → store-invite-Bh32JaEx.js} +1 -1
- package/dist/client/assets/switch-C4IhOA6e.js +1 -0
- package/dist/client/assets/{table-CQcuIfNu.js → table-CMEfP9H3.js} +1 -1
- package/dist/client/assets/tasks-Gduw0sMp.js +1 -0
- package/dist/client/assets/{textarea-BDWEwIDH.js → textarea-Db3p0Rx5.js} +1 -1
- package/dist/client/assets/{time-range-picker-kirfhhc9.js → time-range-picker-CT5RhAAM.js} +1 -1
- package/dist/client/assets/{toggle-group-BMIOl_5K.js → toggle-group-C7Kfwbwx.js} +1 -1
- package/dist/client/assets/tools-list-DGeXMyE8.js +1 -0
- package/dist/client/assets/{tooltip-BbsUVNzK.js → tooltip-D4BVYhMw.js} +1 -1
- package/dist/client/assets/{topbar-portal-BRE2WBz7.js → topbar-portal-BiKG3YrO.js} +1 -1
- package/dist/client/assets/types-BOpB4sEB.js +155 -0
- package/dist/client/assets/{typewriter-title-BILoCXrZ.js → typewriter-title-CFGwN_v6.js} +1 -1
- package/dist/client/assets/{use-binding-BdZ1UVgx.js → use-binding-aajuNegG.js} +1 -1
- package/dist/client/assets/{use-connection-DkSSfi9a.js → use-connection-DtRMRT7L.js} +1 -1
- package/dist/client/assets/{use-copy-BB2kbW8i.js → use-copy-BGqPeXhk.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CHG7UVpA.js → use-create-virtual-mcp-BVu6cs2B.js} +1 -1
- package/dist/client/assets/use-deco-chat-open-BIVGrLhn.js +1 -0
- package/dist/client/assets/{use-install-from-registry-BqPjgCPd.js → use-install-from-registry-DJL5tOsu.js} +1 -1
- package/dist/client/assets/{use-list-state-DpzviSdT.js → use-list-state-BCruWJWf.js} +1 -1
- package/dist/client/assets/{use-llm-DTPk3_13.js → use-llm-Bv-6sCcC.js} +1 -1
- package/dist/client/assets/use-mcp-prompts-DpRM5L66.js +1 -0
- package/dist/client/assets/{use-mcp-tools-CGC3tcmA.js → use-mcp-tools-Bko1eKF9.js} +1 -1
- package/dist/client/assets/{use-mobile-CjVgJBva.js → use-mobile-D74rFejl.js} +1 -1
- package/dist/client/assets/{use-organization-settings-rYyRzSoT.js → use-organization-settings-D0kwnOS2.js} +1 -1
- package/dist/client/assets/{use-project-CnwCxI-j.js → use-project-C0JtBRdq.js} +1 -1
- package/dist/client/assets/{use-settings-modal-tv8Da55W.js → use-settings-modal-BI2pyMdc.js} +1 -1
- package/dist/client/assets/{use-view-mode-DDLmSRVK.js → use-view-mode-C0BRp2tQ.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-gsGIP_cY.js → use-virtual-mcp-DH4qIlbr.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BX2g8PmS.js +1 -0
- package/dist/client/assets/{useMutation-GHxEJTN4.js → useMutation-B2OXPKQT.js} +1 -1
- package/dist/client/assets/useQuery-Cf9H-zdg.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-BvCS7sCC.js +1 -0
- package/dist/client/assets/workflow-Bh9fK-oW.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +9 -9
- package/dist/server/migrate.js +6 -6
- package/dist/server/server.js +9 -9
- package/package.json +2 -1
- package/dist/client/assets/agent-detail-BpcgS_WA.js +0 -2
- package/dist/client/assets/agents-CiEGGxbH.js +0 -1
- package/dist/client/assets/alert-dialog-BwY-RhAj.js +0 -7
- package/dist/client/assets/collection-detail-BYSxk4oE.js +0 -26
- package/dist/client/assets/collection-search-B9NZ4RH6.js +0 -1
- package/dist/client/assets/collection-tab-BcJoa4qY.js +0 -1
- package/dist/client/assets/collection-table-wrapper-ByW-kXsd.js +0 -1
- package/dist/client/assets/connection-detail-dcoyE7_9.js +0 -1
- package/dist/client/assets/connections-C-xjHvMP.js +0 -1
- package/dist/client/assets/constants-XXbgLKEI.js +0 -1
- package/dist/client/assets/empty-state-DUeMScV0.js +0 -1
- package/dist/client/assets/index-CrsSJxhW.js +0 -1
- package/dist/client/assets/index-D1eaSCBW.css +0 -1
- package/dist/client/assets/mcp-oauth-C04X2g0h.js +0 -1
- package/dist/client/assets/mcp-server-detail-C68kfF_y.js +0 -2
- package/dist/client/assets/members-Yn81rJ_1.js +0 -3
- package/dist/client/assets/page-BvMChlEF.js +0 -1
- package/dist/client/assets/page-CXSHaeva.js +0 -1
- package/dist/client/assets/projects-list-BfIgV1F1.js +0 -1
- package/dist/client/assets/shell-layout-Wquvsd36.js +0 -3
- package/dist/client/assets/switch-D4ggk_Yk.js +0 -1
- package/dist/client/assets/tasks-CnBGBvBV.js +0 -1
- package/dist/client/assets/tools-list-Cn1p3mLu.js +0 -1
- package/dist/client/assets/use-deco-chat-open-BD3xJReE.js +0 -1
- package/dist/client/assets/use-mcp-prompts-CB93WJg8.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DrLsISf0.js +0 -1
- package/dist/client/assets/useQuery-KFMXc5Td.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Cw1MYhE7.js +0 -1
- package/dist/client/assets/view-mode-toggle-BeStXEmg.js +0 -1
- package/dist/client/assets/workflow-DujY0Kfk.js +0 -1
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{r as T,c as z,j as s,u as le,b as Ce,bx as _e,L as Ie,bG as xt,bH as ht,O as K,H as gt,e as Oe,d as ce,t as ae,bI as jt,b5 as bt,m as yt,A as Nt,S as Fe,f as vt,h as St,N as kt,n as Ct,K as _t,aC as He,P as wt}from"./index-p3omciU2.js";import{C as X}from"./index-BGG0J_lN.js";import{I as $t}from"./integration-icon-CMj9-FPS.js";import{P as me,u as Ge,d as ie,e as ee,f as we,g as ge,h as je,i as We,j as zt,k as It,l as Be,m as Pt,n as At,o as Ot,p as Tt}from"./index-C4EDt4lI.js";import{u as Te,C as Mt,f as Et,g as Lt}from"./use-deco-chat-open-BD3xJReE.js";import{c as W,B as Se}from"./button-SrN4bZ1L.js";import{d as Dt,u as Rt}from"./constants-DisK0xae.js";import{T as Ut,i as Ft,b as Ht}from"./typewriter-title-BILoCXrZ.js";import{s as xe}from"./Plus-BZOdPpEn.js";import{t as Me}from"./Users03-D2hf7hmK.js";import{i as Pe}from"./X-gSzwTkxQ.js";import{E as qe}from"./error-boundary-CgOqOmL9.js";import{b as Gt,i as Wt}from"./context-C_I7xFo7.js";import{C as Ke}from"./create-project-dialog-OPPYG5uC.js";import{u as $e,S as Z}from"./skeleton-DQTz2Cfy.js";import{t as Ve,u as Ye}from"./use-settings-modal-tv8Da55W.js";import{n as De}from"./CheckDone01-Bl3K1H3i.js";import{n as Bt}from"./Container-BgkRftdL.js";import{e as qt}from"./Dataflow03-YIKw6rhG.js";import{a as Kt}from"./Home02-CLBx-CYf.js";import{t as ke}from"./Settings01-KIfOk1bg.js";import{a as Qe,u as Ze}from"./use-project-CnwCxI-j.js";import{t as Je}from"./ChevronDown-CrA0GhEu.js";import{a as Vt,b as Yt,T as Qt}from"./tooltip-BbsUVNzK.js";import{A as ue}from"./avatar-DvchIe54.js";import{c as Y,g as he,d as Zt,e as Jt,f as Xt,b as Xe,D as et,a as tt}from"./dropdown-menu-CvPfeATW.js";import{i as fe}from"./Check-IyJXmB3D.js";import{C as es}from"./create-organization-dialog-yQPBfpjD.js";import{a as ts}from"./Copy01-B7sbyU73.js";import{i as st}from"./File06-CN-CUlfW.js";import{i as ss}from"./Globe01-C1WtitJR.js";import{n as pe}from"./LinkExternal01-Dmi80ZqJ.js";import{i as rs}from"./Shield01-Nc9e9wCl.js";import{a as ns,P as is,b as os}from"./popover-Bz-dtYC4.js";import{i as ls,a as as}from"./deco-constants-GtDdHPMJ.js";import{n as Re}from"./Inbox01-uvAm2NdJ.js";import{s as cs}from"./XClose-MRwdozeO.js";import{h as ds}from"./use-connection-DkSSfi9a.js";import{b as ms}from"./use-mcp-tools-CGC3tcmA.js";import{u as rt,a as us}from"./use-organization-settings-rYyRzSoT.js";import{i as fs}from"./ChevronRight-CQzN9ZtD.js";import{u as Ee,L as Le}from"./localstorage-keys-DIWr3Ek_.js";import{R as ps,a as nt,b as xs}from"./resizable-Cu9ocREr.js";import"./spinner-DxDNcb59.js";import"./use-mcp-prompts-CB93WJg8.js";import"./useQuery-KFMXc5Td.js";import"./dialog-DH6FGz6L.js";import"./form-DdSGRLg9.js";import"./label-vYcgzZeb.js";import"./input-C19rUyj9.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-CP0dzs2U.js";import"./Edit01-BpchkiZj.js";import"./XCircle-C6_3gAM6.js";import"./AlertCircle-Cnw5GhjM.js";import"./AlertTriangle-DiiOmxZ5.js";import"./ArrowLeft-2v2jDyMq.js";import"./use-copy-BB2kbW8i.js";import"./badge-DU-tZMJX.js";import"./Code01-CeGRGPJZ.js";import"./use-virtual-mcp-gsGIP_cY.js";import"./SearchMd-C4hV7R8V.js";import"./use-create-virtual-mcp-CHG7UVpA.js";import"./marked.esm-BaswSlok.js";import"./markdown-Dc-S7aGn.js";import"./Eye-CF7Jsi4h.js";import"./Globe02-CLsJ4yCM.js";import"./select-DFuMzqKt.js";import"./index-BQJHl8k7.js";import"./empty-state-DUeMScV0.js";import"./generate-id-Dyweu44Y.js";import"./Clock-BMY1eaW0.js";import"./Trash01-DA9Iy0yG.js";import"./use-mobile-CjVgJBva.js";import"./collection-search-B9NZ4RH6.js";import"./Loading01-5Os1EBQC.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-DTPk3_13.js";import"./use-binding-BdZ1UVgx.js";import"./binder-DYtUzpSy.js";import"./Grid01-BfcTdCmK.js";import"./Image01-DiX4EYL6.js";import"./RefreshCcw01-BU6Us9RR.js";import"./useSuspenseInfiniteQuery-Cw1MYhE7.js";import"./infiniteQueryObserver-Bwh-NMGh.js";import"./useMutation-GHxEJTN4.js";import"./textarea-BDWEwIDH.js";import"./alert-dialog-BwY-RhAj.js";const it=({size:t=24,color:e="currentColor",...r})=>T.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},T.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));it.displayName="BarChart10";const ot=({size:t=24,color:e="currentColor",...r})=>T.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},T.createElement("path",{d:"M8 14s1.5 2 4 2 4-2 4-2m-1-5h.01M9 9h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-6.5-3a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm-6 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"}));ot.displayName="FaceSmile";const lt=({size:t=24,color:e="currentColor",...r})=>T.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},T.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.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 21H9"}));lt.displayName="LogOut01";const at=({size:t=24,color:e="currentColor",...r})=>T.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},T.createElement("path",{d:"M8 9.5h4M8 13h7m-3 8a9 9 0 1 0-8.342-5.616c.081.2.122.3.14.381a.907.907 0 0 1 .024.219c0 .083-.015.173-.045.353l-.593 3.558c-.062.373-.093.56-.035.694a.5.5 0 0 0 .262.262c.135.058.321.027.694-.035l3.558-.593c.18-.03.27-.045.353-.045.081 0 .14.006.219.024.08.018.18.059.38.14A8.973 8.973 0 0 0 12 21Z"}));at.displayName="MessageTextCircle02";function hs(){const t=z.c(65),{org:e}=le(),[,r]=Te(),{selectedVirtualMcp:o,modelsConnections:i,isChatEmpty:l,activeThreadId:n,createThread:a,switchToThread:d,threads:c}=Gt();let m;if(t[0]!==n||t[1]!==c){let G;t[3]!==n?(G=B=>B.id===n,t[3]=n,t[4]=G):G=t[4],m=c.find(G),t[0]=n,t[1]=c,t[2]=m}else m=t[2];const f=m,[u,j]=T.useState(!1),[x,h]=T.useTransition();let g;t[5]!==e.id?(g=Dt(e.id),t[5]=e.id,t[6]=g):g=t[6];const p=o??g;let b;t[7]!==a?(b=()=>{h(()=>{a()})},t[7]=a,t[8]=b):b=t[8];const S=b;if(i.length===0){let G;t[9]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsx(me.Header.Left,{className:"gap-2"}),t[9]=G):G=t[9];let B;t[10]!==r?(B=()=>r(!1),t[10]=r,t[11]=B):B=t[11];let _;t[12]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Pe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=_):_=t[12];let q;t[13]!==B?(q=s.jsxs(me.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[G,s.jsx(me.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:B,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:_})})]}),t[13]=B,t[14]=q):q=t[14];let ne;t[15]!==e?(ne=s.jsx(X.Main,{className:"flex flex-col items-center",children:s.jsx(X.EmptyState,{children:s.jsx(X.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[15]=e,t[16]=ne):ne=t[16];let de;return t[17]!==q||t[18]!==ne?(de=s.jsxs(X,{className:"animate-in fade-in-0 duration-200",children:[q,ne]}),t[17]=q,t[18]=ne,t[19]=de):de=t[19],de}const y=u?"duration-300 opacity-0 -translate-x-4 pointer-events-none":x?"duration-150 opacity-0 pointer-events-none":"duration-300 opacity-100 translate-x-0";let k;t[20]!==y?(k=W("absolute inset-0 flex flex-col transition-[opacity,transform] ease-[var(--ease-out-quart)]",y),t[20]=y,t[21]=k):k=t[21];let N;t[22]!==f||t[23]!==l?(N=!l&&f?.title&&s.jsx(Ut,{text:f.title,className:"text-sm font-medium text-foreground"}),t[22]=f,t[23]=l,t[24]=N):N=t[24];let $;t[25]!==N?($=s.jsx(me.Header.Left,{className:"gap-2",children:N}),t[25]=N,t[26]=$):$=t[26];let I;t[27]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(xe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=I):I=t[27];let C;t[28]!==S||t[29]!==x?(C=s.jsx("button",{type:"button",onClick:S,disabled:x,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:I}),t[28]=S,t[29]=x,t[30]=C):C=t[30];let w;t[31]===Symbol.for("react.memo_cache_sentinel")?(w=()=>j(!0),t[31]=w):w=t[31];let D;t[32]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx("button",{type:"button",onClick:w,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Chat history",children:s.jsx(Ft,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=D):D=t[32];let M;t[33]!==r?(M=()=>r(!1),t[33]=r,t[34]=M):M=t[34];let F;t[35]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(Pe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[35]=F):F=t[35];let E;t[36]!==M?(E=s.jsx("button",{type:"button",onClick:M,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:F}),t[36]=M,t[37]=E):E=t[37];let R;t[38]!==E||t[39]!==C?(R=s.jsxs(me.Header.Right,{className:"gap-1",children:[C,D,E]}),t[38]=E,t[39]=C,t[40]=R):R=t[40];let A;t[41]!==R||t[42]!==$?(A=s.jsxs(me.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[$,R]}),t[41]=R,t[42]=$,t[43]=A):A=t[43];let L;t[44]!==p||t[45]!==l?(L=s.jsx(X.Main,{children:l?s.jsx(X.EmptyState,{children:s.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[s.jsx($t,{icon:p.icon,name:p.title,size:"lg",fallbackIcon:s.jsx(Me,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:p.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:p.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(X.IceBreakers,{})]})}):s.jsx(X.Messages,{})}),t[44]=p,t[45]=l,t[46]=L):L=t[46];let O;t[47]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(X.Footer,{children:s.jsx(X.Input,{})}),t[47]=O):O=t[47];let U;t[48]!==A||t[49]!==L||t[50]!==k?(U=s.jsxs("div",{className:k,children:[A,L,O]}),t[48]=A,t[49]=L,t[50]=k,t[51]=U):U=t[51];const te=u?"opacity-100 translate-x-0":"opacity-0 translate-x-4 pointer-events-none";let se;t[52]!==te?(se=W("absolute inset-0 flex flex-col transition-[opacity,transform] duration-300 ease-[var(--ease-out-quart)]",te),t[52]=te,t[53]=se):se=t[53];let re;t[54]===Symbol.for("react.memo_cache_sentinel")?(re=()=>j(!1),t[54]=re):re=t[54];let V;t[55]!==n||t[56]!==d||t[57]!==c?(V=s.jsx(Ht,{threads:c,activeThreadId:n,onThreadSelect:d,onClose:re}),t[55]=n,t[56]=d,t[57]=c,t[58]=V):V=t[58];let H;t[59]!==se||t[60]!==V?(H=s.jsx("div",{className:se,children:V}),t[59]=se,t[60]=V,t[61]=H):H=t[61];let Q;return t[62]!==U||t[63]!==H?(Q=s.jsxs(X,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[U,H]}),t[62]=U,t[63]=H,t[64]=Q):Q=t[64],Q}function gs(){const t=z.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(X.Skeleton,{}),t[0]=e):e=t[0];let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(qe,{fallback:e,children:s.jsx(T.Suspense,{fallback:s.jsx(X.Skeleton,{}),children:s.jsx(hs,{})})}),t[1]=r):r=t[1],r}function js(){const t=z.c(54),[e]=$e(),{locator:r,org:o}=le(),i=Ce(),l=_e(),{org:n,project:a}=Ie.parse(r),d=Ie.isOrgAdminProject(r),{data:c}=Qe(o.id,a);let m;t[0]!==c?.enabledPlugins?(m=c?.enabledPlugins??[],t[0]=c?.enabledPlugins,t[1]=m):m=t[1];const f=m;let u;t[2]!==f?(u=P=>f.includes(P.pluginId),t[2]=f,t[3]=u):u=t[3];const j=xt.filter(u),x=l.location.pathname,h=`/${n}/${a}`,g=x===h||x===`${h}/`;let v;t[4]!==h||t[5]!==x?(v=P=>x.startsWith(`${h}/${P}`),t[4]=h,t[5]=x,t[6]=v):v=t[6];const p=v;let b;t[7]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Kt,{}),t[7]=b):b=t[7];const S={key:"home",label:"Home",icon:b,isActive:g,onClick:()=>{g?window.dispatchEvent(new CustomEvent("reset-home-view")):i({to:"/$org/$project",params:{org:n,project:a}})}};let y;t[8]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(De,{}),t[8]=y):y=t[8];const k={key:"tasks",label:"Tasks",icon:y,isActive:p("tasks"),onClick:()=>i({to:"/$org/$project/tasks",params:{org:n,project:K}})};let N;t[9]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(Bt,{}),t[9]=N):N=t[9];const $={key:"mcps",label:"Connections",icon:N,isActive:p("mcps"),onClick:()=>i({to:"/$org/$project/mcps",params:{org:n,project:K}})};let I;t[10]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(gt,{}),t[10]=I):I=t[10];const C={key:"projects",label:"Projects",icon:I,isActive:p("projects"),onClick:()=>i({to:"/$org/$project/projects",params:{org:n,project:K}})};let w;t[11]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Ve,{}),t[11]=w):w=t[11];const D={key:"store",label:"Store",icon:w,isActive:p("store"),onClick:()=>i({to:"/$org/$project/store",params:{org:n,project:K}})};let M;t[12]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(Me,{}),t[12]=M):M=t[12];const F={key:"agents",label:"Agents",icon:M,isActive:p("agents"),onClick:()=>i({to:"/$org/$project/agents",params:{org:n,project:K}})};let E;t[13]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(it,{}),t[13]=E):E=t[13];const R={key:"monitoring",label:"Monitor",icon:E,isActive:p("monitoring"),onClick:()=>i({to:"/$org/$project/monitoring",params:{org:n,project:K}})};let A;t[14]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(ot,{}),t[14]=A):A=t[14];const L={key:"members",label:"Members",icon:A,isActive:p("members"),onClick:()=>i({to:"/$org/$project/members",params:{org:n,project:K}})},O=j.map(P=>({key:P.pluginId,label:P.label,icon:P.icon,isActive:p(P.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:n,project:a,pluginId:P.pluginId}})}));let U;t[15]!==f?(U=P=>f.includes(P.pluginId),t[15]=f,t[16]=U):U=t[16];const se=ht.filter(U).map(P=>({type:"group",group:{id:`${P.pluginId}-${P.id}`,label:P.label,items:P.items.map((J,oe)=>({key:`${P.pluginId}-${P.id}-${oe}`,label:J.label,icon:J.icon,isActive:p(P.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:n,project:a,pluginId:P.pluginId}})})),defaultExpanded:P.defaultExpanded??!0}}));if(d){let P;t[17]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(ke,{}),t[17]=P):P=t[17];let J;t[18]!==p?(J=p("settings"),t[18]=p,t[19]=J):J=t[19];let oe;t[20]!==i||t[21]!==n?(oe=()=>i({to:"/$org/$project/settings",params:{org:n,project:K}}),t[20]=i,t[21]=n,t[22]=oe):oe=t[22];let Ne;t[23]!==J||t[24]!==oe?(Ne={key:"settings",label:"Settings",icon:P,isActive:J,onClick:oe},t[23]=J,t[24]=oe,t[25]=Ne):Ne=t[25];const pt=Ne,ze=[{type:"items",items:[S,...e.experimental_tasks?[k]:[],...e.experimental_projects?[C]:[]]},{type:"group",group:{id:"build",label:"Build",items:[F,$,D],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[R,L,pt],defaultExpanded:!0}}];if(O.length>0){let ve;t[26]!==O?(ve={type:"items",items:O},t[26]=O,t[27]=ve):ve=t[27],ze.push(ve)}return se.length>0&&ze.push(...se),ze}let re;t[28]===Symbol.for("react.memo_cache_sentinel")?(re=s.jsx(De,{}),t[28]=re):re=t[28];let V;t[29]!==p?(V=p("tasks"),t[29]=p,t[30]=V):V=t[30];let H;t[31]!==i||t[32]!==n||t[33]!==a?(H=()=>i({to:"/$org/$project/tasks",params:{org:n,project:a}}),t[31]=i,t[32]=n,t[33]=a,t[34]=H):H=t[34];let Q;t[35]!==V||t[36]!==H?(Q={key:"tasks",label:"Tasks",icon:re,isActive:V,onClick:H},t[35]=V,t[36]=H,t[37]=Q):Q=t[37];const G=Q;let B;t[38]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(qt,{}),t[38]=B):B=t[38];let _;t[39]!==p?(_=p("workflows"),t[39]=p,t[40]=_):_=t[40];let q;t[41]!==i||t[42]!==n||t[43]!==a?(q=()=>i({to:"/$org/$project/workflows",params:{org:n,project:a}}),t[41]=i,t[42]=n,t[43]=a,t[44]=q):q=t[44];let ne;t[45]!==_||t[46]!==q?(ne={key:"workflows",label:"Workflows",icon:B,isActive:_,onClick:q},t[45]=_,t[46]=q,t[47]=ne):ne=t[47];const de=ne;let be;t[48]!==e.experimental_tasks||t[49]!==G?(be=e.experimental_tasks?[G]:[],t[48]=e.experimental_tasks,t[49]=G,t[50]=be):be=t[50];const ye=[{type:"items",items:[S,...be,de]}];if(O.length>0){let P;t[51]===Symbol.for("react.memo_cache_sentinel")?(P={type:"divider"},t[51]=P):P=t[51],ye.push(P);let J;t[52]!==O?(J={type:"items",items:O},t[52]=O,t[53]=J):J=t[53],ye.push(J)}return se.length>0&&ye.push(...se),ye}function bs(t){const e=z.c(11),{label:r,children:o,defaultExpanded:i}=t,l=i===void 0?!0:i,[n,a]=T.useState(l),{state:d}=Ge(),c=d==="collapsed";let m;e[0]!==n||e[1]!==c||e[2]!==r?(m=c?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(ie,{children:s.jsx(ee,{children:s.jsxs(we,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>a(!n),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:r}),s.jsx(Je,{size:12,className:W("text-muted-foreground transition-transform duration-200",!n&&"-rotate-90")})]})})}),e[0]=n,e[1]=c,e[2]=r,e[3]=m):m=e[3];let f;e[4]!==o||e[5]!==n||e[6]!==c?(f=(c||n)&&s.jsx(ge,{children:s.jsx(ie,{className:"gap-0.5",children:o})}),e[4]=o,e[5]=n,e[6]=c,e[7]=f):f=e[7];let u;return e[8]!==m||e[9]!==f?(u=s.jsxs(je,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[m,f]}),e[8]=m,e[9]=f,e[10]=u):u=e[10],u}function ct(t){const e=z.c(13),{item:r}=t;let o;e[0]!==r.icon?(o=s.jsx("span",{className:"[&>svg]:size-4",children:r.icon}),e[0]=r.icon,e[1]=o):o=e[1];let i;e[2]!==r.label?(i=s.jsx("span",{className:"truncate group-data-[collapsible=icon]:hidden",children:r.label}),e[2]=r.label,e[3]=i):i=e[3];let l;e[4]!==r.isActive||e[5]!==r.label||e[6]!==r.onClick||e[7]!==o||e[8]!==i?(l=s.jsxs(we,{onClick:r.onClick,isActive:r.isActive,tooltip:r.label,children:[o,i]}),e[4]=r.isActive,e[5]=r.label,e[6]=r.onClick,e[7]=o,e[8]=i,e[9]=l):l=e[9];let n;return e[10]!==r.key||e[11]!==l?(n=s.jsx(ee,{children:l},r.key),e[10]=r.key,e[11]=l,e[12]=n):n=e[12],n}function ys(t){const e=z.c(12),{section:r}=t;switch(r.type){case"divider":{let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(We,{className:"my-2"}),e[0]=o):o=e[0],o}case"spacer":{let o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1"}),e[1]=o):o=e[1],o}case"group":{const o=r.group.label,i=r.group.defaultExpanded;let l;e[2]!==r.group.items?(l=r.group.items.map(vs),e[2]=r.group.items,e[3]=l):l=e[3];let n;return e[4]!==r.group.defaultExpanded||e[5]!==r.group.label||e[6]!==l?(n=s.jsx(bs,{label:o,defaultExpanded:i,children:l}),e[4]=r.group.defaultExpanded,e[5]=r.group.label,e[6]=l,e[7]=n):n=e[7],n}case"items":{let o;e[8]!==r.items?(o=r.items.map(Ns),e[8]=r.items,e[9]=o):o=e[9];let i;return e[10]!==o?(i=s.jsx(je,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(ge,{children:s.jsx(ie,{className:"gap-0.5",children:o})})}),e[10]=o,e[11]=i):i=e[11],i}}}function Ns(t){return s.jsx(ct,{item:t},t.key)}function vs(t){return s.jsx(ct,{item:t},t.key)}function dt(t){const e=z.c(14),{sections:r,header:o,footer:i,additionalContent:l,variant:n,collapsible:a,contentClassName:d}=t,c=n===void 0?"sidebar":n,m=a===void 0?"icon":a;let f;e[0]!==d?(f=W("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",d),e[0]=d,e[1]=f):f=e[1];let u;e[2]!==r?(u=r.map(Ss),e[2]=r,e[3]=u):u=e[3];let j;e[4]!==l||e[5]!==f||e[6]!==u?(j=s.jsxs(zt,{className:f,children:[u,l]}),e[4]=l,e[5]=f,e[6]=u,e[7]=j):j=e[7];let x;return e[8]!==m||e[9]!==i||e[10]!==o||e[11]!==j||e[12]!==c?(x=s.jsxs(It,{variant:c,collapsible:m,children:[o,j,i]}),e[8]=m,e[9]=i,e[10]=o,e[11]=j,e[12]=c,e[13]=x):x=e[13],x}function Ss(t,e){return s.jsx(ys,{section:t},e)}dt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,r)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(Z,{className:"h-full bg-sidebar-accent rounded-md"})},r))})};function ks(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(Z,{className:"h-8 w-full rounded-lg"}),s.jsx(Z,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function Cs(t){const e=z.c(12),{organizationId:r,currentProjectSlug:o,onSelect:i}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={suspense:!0},e[0]=l):l=e[0];const{data:n}=Ze(r,l);let a,d;if(e[1]!==o||e[2]!==i||e[3]!==n){d=Symbol.for("react.early_return_sentinel");e:{const m=n?.filter(_s)??[];if(m.length===0){let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=u):u=e[6],d=u;break e}let f;e[7]!==o||e[8]!==i?(f=u=>{const j=o===u.slug,x=u.ui?.themeColor??"#3B82F6";return s.jsxs(Y,{className:W("gap-2.5",j&&"bg-accent"),onClick:()=>i(u.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:{backgroundColor:x},children:u.ui?.icon?s.jsx("img",{src:u.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:u.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:u.name}),j&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},u.id)},e[7]=o,e[8]=i,e[9]=f):f=e[9],a=m.map(f)}e[1]=o,e[2]=i,e[3]=n,e[4]=a,e[5]=d}else a=e[4],d=e[5];if(d!==Symbol.for("react.early_return_sentinel"))return d;let c;return e[10]!==a?(c=s.jsx(s.Fragment,{children:a}),e[10]=a,e[11]=c):c=e[11],c}function _s(t){return t.slug!==K}function ws(t){let e=0;for(let o=0;o<t.length;o++)e=t.charCodeAt(o)+((e<<5)-e);const r=Math.abs(e)%360;return{backgroundColor:`hsl(${r} 55% 70%)`,color:`hsl(${r} 55% 20%)`}}function mt(t){const e=z.c(44),{isCollapsed:r,onCreateProject:o}=t,i=r===void 0?!1:r;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},e[0]=l):l=e[0];const{org:n,project:a}=Oe(l),{data:d}=ce.useListOrganizations(),c=Ce(),m=d?.find(_=>_.slug===n),[f,u]=T.useState(!1),[j]=$e(),x=j.experimental_projects,h=a===K,{data:g}=Qe(m?.id??"",h?"":a??"");let v;e[1]!==n?(v=(_,q)=>_.slug===n?-1:q.slug===n?1:_.name.localeCompare(q.name),e[1]=n,e[2]=v):v=e[2];const p=[...d??[]].sort(v);let b;e[3]!==c||e[4]!==n?(b=()=>{n&&c({to:"/$org/$project",params:{org:n,project:K}})},e[3]=c,e[4]=n,e[5]=b):b=e[5];const S=b;let y;e[6]!==c||e[7]!==n?(y=_=>{n&&c({to:"/$org/$project",params:{org:n,project:_}})},e[6]=c,e[7]=n,e[8]=y):y=e[8];const k=y;let N;e[9]!==c?(N=_=>{c({to:"/$org/$project",params:{org:_,project:K}})},e[9]=c,e[10]=N):N=e[10];const $=N;let I;e[11]!==o?(I=o?()=>o():void 0,e[11]=o,e[12]=I):I=e[12];const C=I;let w;e[13]!==c||e[14]!==n||e[15]!==a?(w=()=>{if(!n||!a)return;const _=a===K;c({to:"/$org/$project",params:{org:n,project:a},search:q=>({...q,settings:_?"org.general":`project:${a}:general`})})},e[13]=c,e[14]=n,e[15]=a,e[16]=w):w=e[16];const D=w,M=et,F=i?"w-auto pr-1.5":"w-full";let E;e[17]!==F?(E=W("flex items-center gap-3 rounded-md p-1.5 pr-2 text-left hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring min-h-[2.75rem]",F),e[17]=F,e[18]=E):E=e[18];const R=h?s.jsx("div",{className:W("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",i?"size-6":"size-8"),style:m?.logo?void 0:ws(m?.name??""),children:m?.logo?s.jsx("img",{src:m.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:W("font-semibold leading-none",i?"text-[9px]":"text-xs"),children:(m?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:W("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",i?"size-6":"size-8"),style:{backgroundColor:g?.ui?.themeColor??"#60a5fa"},children:g?.ui?.icon?s.jsx("img",{src:g.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:W("font-semibold text-white",i?"text-xs":"text-lg"),children:(g?.name??a??"?").charAt(0).toUpperCase()})});let A;e[19]!==m?.name||e[20]!==g?.name||e[21]!==x||e[22]!==i||e[23]!==h||e[24]!==a?(A=!i&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:x?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:m?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:h?"Studio":g?.name??a??""})]}):s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:m?.name??"Select org"})}),s.jsx(Wt,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=m?.name,e[20]=g?.name,e[21]=x,e[22]=i,e[23]=h,e[24]=a,e[25]=A):A=e[25];let L;e[26]!==E||e[27]!==R||e[28]!==A?(L=s.jsx(tt,{asChild:!0,children:s.jsxs("button",{type:"button",className:E,children:[R,A]})}),e[26]=E,e[27]=R,e[28]=A,e[29]=L):L=e[29];const O=Xe,U="start",te="bottom",se="w-64 flex flex-col gap-0.5",re=$s,V=x?s.jsxs(s.Fragment,{children:[s.jsxs(Y,{className:W("gap-2.5",h&&"bg-accent"),onClick:S,children:[s.jsx(ue,{url:m?.logo??"",fallback:m?.name??"",size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",m?.name]}),h&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]}),s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Projects"}),m&&s.jsx(T.Suspense,{fallback:s.jsx(ks,{}),children:s.jsx(Cs,{organizationId:m.id,currentProjectSlug:a,orgSlug:n??"",onSelect:k})}),C&&s.jsxs(Y,{className:"gap-2.5",onClick:C,children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),s.jsx(he,{}),s.jsxs(Zt,{children:[s.jsxs(Jt,{className:"gap-2.5",children:[s.jsx(Ve,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),s.jsxs(Xt,{className:"w-48 flex flex-col gap-0.5",children:[p.map(_=>s.jsxs(Y,{className:W("gap-2.5",_.slug===n&&"bg-accent"),onClick:()=>$(_.slug),children:[s.jsx(ue,{url:_.logo??"",fallback:_.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:_.name}),_.slug===n&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},_.id)),s.jsx(he,{}),s.jsxs(Y,{className:"gap-2.5",onClick:()=>u(!0),children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]})]})]}),s.jsxs(Y,{className:"gap-2.5",onClick:D,children:[s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]}):s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Organizations"}),p.map(_=>s.jsxs(Y,{className:W("gap-2.5",_.slug===n&&"bg-accent"),onClick:()=>$(_.slug),children:[s.jsx(ue,{url:_.logo??"",fallback:_.name,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:_.name}),_.slug===n&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},_.id)),s.jsxs(Y,{className:"gap-2.5",onClick:()=>u(!0),children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]}),s.jsx(he,{}),s.jsxs(Y,{className:"gap-2.5",onClick:D,children:[s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]});let H;e[30]!==O||e[31]!==re||e[32]!==V?(H=s.jsx(O,{align:U,side:te,className:se,onCloseAutoFocus:re,children:V}),e[30]=O,e[31]=re,e[32]=V,e[33]=H):H=e[33];let Q;e[34]!==M||e[35]!==L||e[36]!==H?(Q=s.jsxs(M,{children:[L,H]}),e[34]=M,e[35]=L,e[36]=H,e[37]=Q):Q=e[37];let G;e[38]!==f||e[39]!==u?(G=s.jsx(es,{open:f,onOpenChange:u}),e[38]=f,e[39]=u,e[40]=G):G=e[40];let B;return e[41]!==Q||e[42]!==G?(B=s.jsxs(s.Fragment,{children:[Q,G]}),e[41]=Q,e[42]=G,e[43]=B):B=e[43],B}function $s(t){return t.preventDefault()}mt.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(Z,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(Z,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Ae(t){const e=z.c(23),{onCreateProject:r}=t,{state:o}=Ge(),i=o==="collapsed",[l,n]=Te();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const{org:d,project:c}=Oe(a),{location:m}=_e(),f=m.pathname===`/${d}/${c}`||m.pathname===`/${d}/${c}/`;let u;e[1]!==n?(u=()=>{n(zs)},e[1]=n,e[2]=u):u=e[2];const j=u;let x;e[3]!==i||e[4]!==r?(x=s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(mt,{isCollapsed:i,onCreateProject:r})}),e[3]=i,e[4]=r,e[5]=x):x=e[5];const h=i||f?"max-w-0 opacity-0 pointer-events-none":"max-w-[2rem] opacity-100";let g;e[6]!==h?(g=W("flex items-center gap-0.5 shrink-0 overflow-hidden transition-[max-width,opacity] duration-300 ease-[var(--ease-out-quart)]",h),e[6]=h,e[7]=g):g=e[7];const v=l&&"bg-sidebar-accent text-sidebar-foreground";let p;e[8]!==v?(p=W("size-7 hover:bg-sidebar-accent text-sidebar-foreground/50 hover:text-sidebar-foreground",v),e[8]=v,e[9]=p):p=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(at,{size:14,className:"text-inherit"}),e[10]=b):b=e[10];let S;e[11]!==p||e[12]!==j?(S=s.jsx(Vt,{asChild:!0,children:s.jsx(Se,{variant:"ghost",size:"icon",className:p,onClick:j,"aria-label":"Toggle Decopilot",children:b})}),e[11]=p,e[12]=j,e[13]=S):S=e[13];let y;e[14]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(Yt,{side:"bottom",children:"Toggle Decopilot"}),e[14]=y):y=e[14];let k;e[15]!==S?(k=s.jsxs(Qt,{children:[S,y]}),e[15]=S,e[16]=k):k=e[16];let N;e[17]!==k||e[18]!==g?(N=s.jsx("div",{className:g,children:k}),e[17]=k,e[18]=g,e[19]=N):N=e[19];let $;return e[20]!==N||e[21]!==x?($=s.jsx(Be,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(ie,{children:s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[x,N]})})})}),e[20]=N,e[21]=x,e[22]=$):$=e[22],$}function zs(t){return!t}Ae.Skeleton=function(){return s.jsx(Be,{className:"px-3",children:s.jsx(ie,{children:s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 p-1.5",children:[s.jsx(Z,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(Z,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsxs("div",{className:"flex items-center gap-0.5",children:[s.jsx(Z,{className:"size-7 rounded-lg bg-sidebar-accent"}),s.jsx(Z,{className:"size-7 rounded-lg bg-sidebar-accent"})]})]})})})})};function Is(t){const e=z.c(50),{user:r,userImage:o}=t,{open:i}=Ye(),[l,n]=T.useState(!1);let a;e[0]!==r.email||e[1]!==r.id||e[2]!==r.name?(a=()=>{const te=`ID: ${r.id}
|
|
2
|
-
Name: ${r.name||"N/A"}
|
|
3
|
-
Email: ${r.email}`;navigator.clipboard.writeText(te),n(!0),ae.success("User info copied to clipboard"),setTimeout(()=>n(!1),2e3)},e[0]=r.email,e[1]=r.id,e[2]=r.name,e[3]=a):a=e[3];const d=a,c=r.name||r.email||"U";let m;e[4]!==c||e[5]!==o?(m=s.jsx(ue,{url:o,fallback:c,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=c,e[5]=o,e[6]=m):m=e[6];const f=r.name||"User";let u;e[7]!==f?(u=s.jsx("div",{className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:s.jsx("div",{className:"text-sm font-medium truncate text-sidebar-foreground leading-none",children:f})}),e[7]=f,e[8]=u):u=e[8];let j;e[9]!==m||e[10]!==u?(j=s.jsx(tt,{asChild:!0,children:s.jsxs("button",{className:"flex w-full h-8 items-center gap-2 rounded-md px-1 hover:bg-sidebar-accent transition-colors text-left min-w-0",children:[m,u]})}),e[9]=m,e[10]=u,e[11]=j):j=e[11];const x=r.name||r.email||"U";let h;e[12]!==x||e[13]!==o?(h=s.jsx(ue,{url:o,fallback:x,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=x,e[13]=o,e[14]=h):h=e[14];const g=r.name||"User";let v;e[15]!==g?(v=s.jsx("div",{className:"text-sm font-medium truncate",children:g}),e[15]=g,e[16]=v):v=e[16];let p;e[17]!==r.email?(p=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:r.email}),e[17]=r.email,e[18]=p):p=e[18];let b;e[19]!==v||e[20]!==p?(b=s.jsxs("div",{className:"flex-1 min-w-0",children:[v,p]}),e[19]=v,e[20]=p,e[21]=b):b=e[21];let S;e[22]!==l?(S=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:l?s.jsx(fe,{size:14,className:"text-green-600"}):s.jsx(ts,{size:14,className:"text-muted-foreground"})}),e[22]=l,e[23]=S):S=e[23];let y;e[24]!==d||e[25]!==b||e[26]!==S||e[27]!==h?(y=s.jsxs(Y,{onClick:d,className:"gap-2.5 group",children:[h,b,S]}),e[24]=d,e[25]=b,e[26]=S,e[27]=h,e[28]=y):y=e[28];let k;e[29]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(he,{}),e[29]=k):k=e[29];let N;e[30]!==i?(N=()=>i("account.preferences"),e[30]=i,e[31]=N):N=e[31];let $,I;e[32]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),I=s.jsx("span",{children:"Settings"}),e[32]=$,e[33]=I):($=e[32],I=e[33]);let C;e[34]!==N?(C=s.jsxs(Y,{className:"gap-2.5",onClick:N,children:[$,I]}),e[34]=N,e[35]=C):C=e[35];let w;e[36]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Y,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(st,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=w):w=e[36];let D;e[37]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Y,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(rs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=D):D=e[37];let M;e[38]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(Y,{asChild:!0,children:s.jsxs("a",{href:"https://github.com/decocms/mesh",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(jt,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=M):M=e[38];let F;e[39]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(Y,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com/discord",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Me,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=F):F=e[39];let E,R;e[40]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(Y,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ss,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),R=s.jsx(he,{}),e[40]=E,e[41]=R):(E=e[40],R=e[41]);let A;e[42]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsxs(Y,{className:"gap-2.5",onClick:Ps,children:[s.jsx(lt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=A):A=e[42];let L;e[43]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.125.2"]})}),e[43]=L):L=e[43];let O;e[44]!==y||e[45]!==C?(O=s.jsxs(Xe,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:As,children:[y,k,C,w,D,M,F,E,R,A,L]}),e[44]=y,e[45]=C,e[46]=O):O=e[46];let U;return e[47]!==O||e[48]!==j?(U=s.jsxs(et,{children:[j,O]}),e[47]=O,e[48]=j,e[49]=U):U=e[49],U}function Ps(){return ce.signOut()}function As(t){return t.preventDefault()}function ut(){const t=z.c(7),{data:e}=ce.useSession();if(!e?.user){let d;return t[0]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(ue,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=d):d=t[0],d}const r=e.user,o=r.name??void 0;let i;t[1]!==o||t[2]!==r?(i={...r,name:o},t[1]=o,t[2]=r,t[3]=i):i=t[3];const l=i,n=r.image;let a;return t[4]!==n||t[5]!==l?(a=s.jsx(Is,{user:l,userImage:n}),t[4]=n,t[5]=l,t[6]=a):a=t[6],a}function Os({invitation:t}){const[e,r]=T.useState(!1),[o,i]=T.useState(!1),l=yt(),n=async()=>{r(!0);try{const d=await ce.organization.acceptInvitation({invitationId:t.id});if(d.error)ae.error(d.error.message),r(!1);else{const c=await ce.organization.setActive({organizationId:t.organizationId});ae.success("Invitation accepted!");const m=c?.data?.slug;window.location.href=m?`/${m}`:"/"}}catch{ae.error("Failed to accept invitation"),r(!1)}},a=async()=>{i(!0);try{const d=await ce.organization.rejectInvitation({invitationId:t.id});d.error?(ae.error(d.error.message),i(!1)):(ae.success("Invitation declined"),l.invalidateQueries())}catch{ae.error("Failed to decline invitation"),i(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"You've been invited to join"}),s.jsx("p",{className:"text-sm font-medium truncate",children:t.organizationName??"Unknown organization"})]}),s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s.jsx(Se,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:n,disabled:e||o,"aria-label":"Accept invitation",children:s.jsx(fe,{size:14})}),s.jsx(Se,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:a,disabled:e||o,"aria-label":"Decline invitation",children:s.jsx(cs,{size:14})})]})]})}function Ts(){const t=T.useContext(bt),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(o=>o.status==="pending"&&new Date(o.expiresAt)>new Date)}class Ms extends T.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,r){}render(){return this.state.hasError?null:this.props.children}}const Es="gateway-chip-period";function Ls(){try{const t=localStorage.getItem(Es);if(t==="daily"||t==="weekly"||t==="monthly")return t}catch{}return"daily"}function Ds(t,e){if(!e||e<=0)return"text-foreground/70";const r=t/e;return r<=.05?"text-destructive":r<=.2?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Rs(t){return t>=90?"text-destructive":t>=70?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Us(t){const e=z.c(42),{connectionId:r}=t,{open:o}=Ye(),{org:i}=le();let l;e[0]!==r||e[1]!==i.id?(l={connectionId:r,orgId:i.id},e[0]=r,e[1]=i.id,e[2]=l):l=e[2];const n=Rt(l);let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a={},e[3]=a):a=e[3];let d;e[4]!==n?(d={client:n,toolName:"GATEWAY_USAGE",toolArguments:a,staleTime:6e4,select:Fs},e[4]=n,e[5]=d):d=e[5];const{data:c}=ms(d),m=c?.billing.mode??"prepaid",f=c?.limit.total??null,u=c?.limit.remaining??0;let j;e[6]!==c?.usage?(j=c?.usage??{total:0,daily:0,weekly:0,monthly:0},e[6]=c?.usage,e[7]=j):j=e[7];const x=j;let h,g,v,p,b,S,y;if(e[8]!==m||e[9]!==h||e[10]!==u||e[11]!==f||e[12]!==o||e[13]!==x){let $;if(m==="prepaid"){h="Credits";let C;e[21]!==u?(C=u.toFixed(2),e[21]=u,e[22]=C):C=e[22],g=`$${C}`,$=Ds(u,f)}else if(f!=null&&f>0){const C=f-u;let w;e[23]!==f||e[24]!==C?(w=Math.round(C/f*100),e[23]=f,e[24]=C,e[25]=w):w=e[25];const D=Math.min(100,w);h="Usage",g=`${D}%`,$=Rs(D)}else{const C=Ls(),w=C==="daily"?x.daily:C==="weekly"?x.weekly:x.monthly,D=C==="daily"?"/day":C==="weekly"?"/wk":"/mo";h="Usage";let M;e[26]!==w?(M=w.toFixed(2),e[26]=w,e[27]=M):M=e[27],g=`$${M}${D}`,$="text-foreground/70"}p="button",e[28]!==o?(b=()=>o("org.billing"),e[28]=o,e[29]=b):b=e[29],S="group-data-[collapsible=icon]:hidden flex items-center justify-between w-full px-2 py-1.5 rounded-md hover:bg-sidebar-accent transition-colors";let I;e[30]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(as,{size:13,className:"text-muted-foreground/60 shrink-0"}),e[30]=I):I=e[30],e[31]!==h?(y=s.jsxs("div",{className:"flex items-center gap-1.5",children:[I,s.jsx("span",{className:"text-xs text-muted-foreground",children:h})]}),e[31]=h,e[32]=y):y=e[32],v=W("text-xs font-medium tabular-nums",$),e[8]=m,e[9]=h,e[10]=u,e[11]=f,e[12]=o,e[13]=x,e[14]=v,e[15]=p,e[16]=b,e[17]=S,e[18]=y,e[19]=h,e[20]=g}else v=e[14],p=e[15],b=e[16],S=e[17],y=e[18],h=e[19],g=e[20];let k;e[33]!==v||e[34]!==g?(k=s.jsx("span",{className:v,children:g}),e[33]=v,e[34]=g,e[35]=k):k=e[35];let N;return e[36]!==k||e[37]!==p||e[38]!==b||e[39]!==S||e[40]!==y?(N=s.jsxs("button",{type:p,onClick:b,className:S,children:[y,k]}),e[36]=k,e[37]=p,e[38]=b,e[39]=S,e[40]=y,e[41]=N):N=e[41],N}function Fs(t){return t.structuredContent}function Hs(){const t=z.c(4),e=ds();let r;t[0]!==e?(r=e.find(Gs),t[0]=e,t[1]=r):r=t[1];const o=r;if(!o?.id)return null;let i;return t[2]!==o.id?(i=s.jsx(Us,{connectionId:o.id}),t[2]=o.id,t[3]=i):i=t[3],i}function Gs(t){return ls(t.connection_url)}function Ws(){const t=z.c(13),e=Ts();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ms,{children:s.jsx(T.Suspense,{fallback:null,children:s.jsx(Hs,{})})}),t[0]=r):r=t[0];let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(ut,{})}),t[1]=o):o=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(is,{asChild:!0,children:s.jsx(Se,{variant:"ghost",size:"icon",className:"size-8 text-sidebar-foreground/50 hover:text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Open inbox",children:s.jsx(Re,{size:16})})}),t[2]=i):i=t[2];let l;t[3]!==e.length?(l=e.length>0&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 ring-2 ring-sidebar pointer-events-none"}),t[3]=e.length,t[4]=l):l=t[4];let n;t[5]!==l?(n=s.jsxs("div",{className:"relative",children:[i,l]}),t[5]=l,t[6]=n):n=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"px-4 py-3 border-b border-border shrink-0",children:s.jsx("h3",{className:"text-sm font-medium",children:"Inbox"})}),t[7]=a):a=t[7];let d;t[8]!==e?(d=s.jsxs(ns,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[a,e.length===0?s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[s.jsx(Re,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"No messages or invites pending"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Messages, workspace and project invitations will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:e.map(Bs)})]}),t[8]=e,t[9]=d):d=t[9];let c;return t[10]!==n||t[11]!==d?(c=s.jsxs(Pt,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[r,s.jsx(ie,{children:s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[o,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(os,{children:[n,d]})})]})})})]}),t[10]=n,t[11]=d,t[12]=c):c=t[12],c}function Bs(t){return s.jsx(Os,{invitation:t},t.id)}function ft(t){const e=z.c(4),{children:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(We,{className:"my-2"}),e[0]=o):o=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ee,{children:s.jsx("div",{className:"group-data-[collapsible=icon]:hidden px-2 py-0 text-xs font-medium h-6 text-muted-foreground flex items-center justify-between",children:s.jsx("span",{className:"whitespace-nowrap",children:"Pinned Views"})})}),e[1]=i):i=e[1];let l;return e[2]!==r?(l=s.jsxs(s.Fragment,{children:[o,i,r]}),e[2]=r,e[3]=l):l=e[3],l}function qs(t){const e=z.c(26),{item:r}=t,o=Ce(),{org:i}=le(),l=rt(i.id),n=us(i.id);let a;e[0]!==n.update||e[1]!==r.url||e[2]!==l?.sidebar_items?(a=async()=>{const S=(l?.sidebar_items||[]).filter(y=>y.url!==r.url);await n.update.mutateAsync({sidebar_items:S})},e[0]=n.update,e[1]=r.url,e[2]=l?.sidebar_items,e[3]=a):a=e[3];const d=a;let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=/^https?:\/\/.+/,e[4]=c):c=e[4];let m;e[5]!==r.icon?(m=c.test(r.icon),e[5]=r.icon,e[6]=m):m=e[6];const f=m;let u;e[7]!==r.url||e[8]!==o?(u=()=>{o({to:r.url})},e[7]=r.url,e[8]=o,e[9]=u):u=e[9];const j=r.title;let x;e[10]!==f||e[11]!==r.icon||e[12]!==r.title?(x=s.jsx("div",{className:"flex items-center justify-center shrink-0",children:f?s.jsx("img",{src:r.icon,alt:r.title,className:"h-4 w-4 rounded object-cover"}):s.jsx(st,{size:16,className:"text-muted-foreground group-hover/item:text-foreground transition-colors"})}),e[10]=f,e[11]=r.icon,e[12]=r.title,e[13]=x):x=e[13];let h;e[14]!==r.title?(h=r.title.toLocaleLowerCase(),e[14]=r.title,e[15]=h):h=e[15];let g;e[16]!==h?(g=s.jsx("div",{className:"flex-1 min-w-0 flex flex-col items-start",children:s.jsx("span",{className:"truncate text-sm w-full capitalize",children:h})}),e[16]=h,e[17]=g):g=e[17];let v;e[18]!==d?(v=s.jsx(Pe,{size:16,className:"text-muted-foreground opacity-0 group-hover/item:opacity-50 hover:opacity-100 cursor-pointer",onClick:b=>{b.preventDefault(),b.stopPropagation(),d()}}),e[18]=d,e[19]=v):v=e[19];let p;return e[20]!==r.title||e[21]!==u||e[22]!==x||e[23]!==g||e[24]!==v?(p=s.jsx(ee,{children:s.jsxs(we,{className:"w-full pr-2 group/item relative cursor-pointer text-foreground/90 hover:text-foreground",onClick:u,tooltip:j,children:[x,g,v]})}),e[20]=r.title,e[21]=u,e[22]=x,e[23]=g,e[24]=v,e[25]=p):p=e[25],p}function Ue(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(ee,{children:s.jsx("div",{className:"flex items-center gap-2 px-4 py-2",children:s.jsx(Z,{className:"h-4 flex-1"})})}),t[0]=e):e=t[0],e}function Ks(){const t=z.c(4),{org:e}=le(),o=rt(e.id)?.sidebar_items;if(!o?.length)return null;let i;t[0]!==o?(i=o.map(Vs),t[0]=o,t[1]=i):i=t[1];let l;return t[2]!==i?(l=s.jsx(ft,{children:i}),t[2]=i,t[3]=l):l=t[3],l}function Vs(t){return s.jsx(qs,{item:t},t.url)}function Ys(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(T.Suspense,{fallback:s.jsxs(ft,{children:[s.jsx(Ue,{}),s.jsx(Ue,{})]}),children:s.jsx(Ks,{})}),t[0]=e):e=t[0],e}function Qs(t){const e=z.c(11),{project:r}=t,o=r.ui?.themeColor??"#60a5fa";if(r.ui?.icon){let d;return e[0]!==r.ui.icon?(d=s.jsx("img",{src:r.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=r.ui.icon,e[1]=d):d=e[1],d}let i;e[2]!==o?(i={backgroundColor:o},e[2]=o,e[3]=i):i=e[3];let l;e[4]!==r.name?(l=r.name.charAt(0).toUpperCase(),e[4]=r.name,e[5]=l):l=e[5];let n;e[6]!==l?(n=s.jsx("span",{className:"text-[10px] font-medium text-white",children:l}),e[6]=l,e[7]=n):n=e[7];let a;return e[8]!==i||e[9]!==n?(a=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:i,children:n}),e[8]=i,e[9]=n,e[10]=a):a=e[10],a}function Zs(t){const e=z.c(14),{project:r}=t,o=Ce(),{org:i}=le();let l;e[0]!==o||e[1]!==i.slug||e[2]!==r.slug?(l=()=>{o({to:"/$org/$project",params:{org:i.slug,project:r.slug}})},e[0]=o,e[1]=i.slug,e[2]=r.slug,e[3]=l):l=e[3];let n;e[4]!==r?(n=s.jsx(Qs,{project:r}),e[4]=r,e[5]=n):n=e[5];let a;e[6]!==r.name?(a=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:r.name}),e[6]=r.name,e[7]=a):a=e[7];let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(fs,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=d):d=e[8];let c;return e[9]!==r.name||e[10]!==l||e[11]!==n||e[12]!==a?(c=s.jsx(ee,{children:s.jsxs(we,{onClick:l,tooltip:r.name,children:[n,a,d]})}),e[9]=r.name,e[10]=l,e[11]=n,e[12]=a,e[13]=c):c=e[13],c}function Js(){const t=z.c(55),{org:e}=le(),{data:r,isLoading:o}=Ze(e.id),[i,l]=T.useState(!0),[n,a]=T.useState(!1);let d,c,m,f,u,j,x,h,g,v,p,b,S;if(t[0]!==o||t[1]!==i||t[2]!==r){S=Symbol.for("react.early_return_sentinel");e:{const M=r?.filter(er)??[];if(o){let U;t[16]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(Z,{className:"h-4 w-4 rounded"}),s.jsx(Z,{className:"h-4 flex-1"})]})}),t[16]=U):U=t[16];let te;t[17]===Symbol.for("react.memo_cache_sentinel")?(te=s.jsx(je,{className:"py-0 px-0",children:s.jsx(ge,{children:s.jsxs(ie,{className:"gap-0.5",children:[U,s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(Z,{className:"h-4 w-4 rounded"}),s.jsx(Z,{className:"h-4 flex-1"})]})})]})})}),t[17]=te):te=t[17],S=te;break e}b="group/projects-section mt-2",u=Mt,v=i,p=l,f=je,g="py-0 px-0",m=ge,c=ie,x="gap-0.5";let F;t[18]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=F):F=t[18];const E=!i&&"-rotate-90";let R;t[19]!==E?(R=W("text-muted-foreground shrink-0 transition-transform duration-200",E),t[19]=E,t[20]=R):R=t[20];let A;t[21]!==R?(A=s.jsx(Et,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[F,s.jsx(Je,{size:12,className:R})]})}),t[21]=R,t[22]=A):A=t[22];let L;t[23]===Symbol.for("react.memo_cache_sentinel")?(L=()=>a(!0),t[23]=L):L=t[23];let O;t[24]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx("button",{type:"button",onClick:L,title:"Create new project",className:"opacity-0 group-hover/projects-section:opacity-100 transition-opacity text-muted-foreground hover:text-foreground flex items-center justify-center h-4 rounded shrink-0",children:s.jsx(xe,{size:16})}),t[24]=O):O=t[24],t[25]!==A?(h=s.jsx(ee,{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs("div",{className:"flex h-6 w-full items-center gap-1 rounded-md pl-1.5 pr-0.5 hover:bg-sidebar-accent transition-colors",children:[A,O]})}),t[25]=A,t[26]=h):h=t[26],d=Lt,j=M.length===0?s.jsx(ee,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):M.map(Xs)}t[0]=o,t[1]=i,t[2]=r,t[3]=d,t[4]=c,t[5]=m,t[6]=f,t[7]=u,t[8]=j,t[9]=x,t[10]=h,t[11]=g,t[12]=v,t[13]=p,t[14]=b,t[15]=S}else d=t[3],c=t[4],m=t[5],f=t[6],u=t[7],j=t[8],x=t[9],h=t[10],g=t[11],v=t[12],p=t[13],b=t[14],S=t[15];if(S!==Symbol.for("react.early_return_sentinel"))return S;let y;t[27]!==d||t[28]!==j?(y=s.jsx(d,{children:j}),t[27]=d,t[28]=j,t[29]=y):y=t[29];let k;t[30]!==c||t[31]!==x||t[32]!==h||t[33]!==y?(k=s.jsxs(c,{className:x,children:[h,y]}),t[30]=c,t[31]=x,t[32]=h,t[33]=y,t[34]=k):k=t[34];let N;t[35]!==m||t[36]!==k?(N=s.jsx(m,{children:k}),t[35]=m,t[36]=k,t[37]=N):N=t[37];let $;t[38]!==f||t[39]!==N||t[40]!==g?($=s.jsx(f,{className:g,children:N}),t[38]=f,t[39]=N,t[40]=g,t[41]=$):$=t[41];let I;t[42]!==u||t[43]!==$||t[44]!==v||t[45]!==p?(I=s.jsx(u,{open:v,onOpenChange:p,children:$}),t[42]=u,t[43]=$,t[44]=v,t[45]=p,t[46]=I):I=t[46];let C;t[47]!==I||t[48]!==b?(C=s.jsx("div",{className:b,children:I}),t[47]=I,t[48]=b,t[49]=C):C=t[49];let w;t[50]!==n?(w=s.jsx(Ke,{open:n,onOpenChange:a}),t[50]=n,t[51]=w):w=t[51];let D;return t[52]!==C||t[53]!==w?(D=s.jsxs(s.Fragment,{children:[C,w]}),t[52]=C,t[53]=w,t[54]=D):D=t[54],D}function Xs(t){return s.jsx(Zs,{project:t},t.id)}function er(t){return t.slug!==K}function tr(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(T.Suspense,{fallback:s.jsx(je,{className:"py-0 px-0",children:s.jsx(ge,{children:s.jsx(ie,{className:"gap-0.5",children:s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(Z,{className:"h-4 w-4 rounded"}),s.jsx(Z,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Js,{})}),t[0]=e):e=t[0],e}function sr(t){const e=z.c(15),{onCreateProject:r}=t,[o]=$e(),i=js(),{locator:l}=le();let n;e[0]!==l?(n=Ie.isOrgAdminProject(l),e[0]=l,e[1]=n):n=e[1];const a=n;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Ae.Skeleton,{}),e[2]=d):d=e[2];let c;e[3]!==r?(c=s.jsx(T.Suspense,{fallback:d,children:s.jsx(Ae,{onCreateProject:r})}),e[3]=r,e[4]=c):c=e[4];let m;e[5]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(Ws,{}),e[5]=m):m=e[5];let f;e[6]!==a||e[7]!==o?(f=a?o.experimental_projects?s.jsx(tr,{}):null:s.jsx(Ys,{}),e[6]=a,e[7]=o,e[8]=f):f=e[8];let u;e[9]!==f?(u=s.jsx(qe,{children:s.jsx(T.Suspense,{fallback:null,children:f})}),e[9]=f,e[10]=u):u=e[10];let j;return e[11]!==i||e[12]!==c||e[13]!==u?(j=s.jsx(dt,{sections:i,header:c,footer:m,additionalContent:u}),e[11]=i,e[12]=c,e[13]=u,e[14]=j):j=e[14],j}function rr(){const t=z.c(2),r=_e().location.href;let o;return t[0]!==r?(o=s.jsx(kt,{to:"/login",search:{next:r},replace:!0}),t[0]=r,t[1]=o):o=t[1],o}function nr(t){const e=z.c(6),{children:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Nt,{children:s.jsx(Fe,{})}),e[0]=o):o=e[0];let i;e[1]!==r?(i=s.jsx(vt,{children:r}),e[1]=r,e[2]=i):i=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(St,{children:s.jsx(rr,{})}),e[3]=l):l=e[3];let n;return e[4]!==i?(n=s.jsxs(s.Fragment,{children:[o,i,l]}),e[4]=i,e[5]=n):n=e[5],n}function ir(t){const e=z.c(10),{children:r,className:o}=t,[,i]=T.useTransition();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Le.decoChatPanelWidth(),e[0]=l):l=e[0];const[n,a]=Ee(l,30);let d;e[1]!==a?(d=u=>i(()=>a(u)),e[1]=a,e[2]=d):d=e[2];const c=d;let m;e[3]!==o?(m=W("min-w-0",o),e[3]=o,e[4]=m):m=e[4];let f;return e[5]!==n||e[6]!==r||e[7]!==c||e[8]!==m?(f=s.jsx(nt,{defaultSize:n,minSize:20,className:m,onResize:c,children:r}),e[5]=n,e[6]=r,e[7]=c,e[8]=m,e[9]=f):f=e[9],f}function or(t){const e=z.c(5),{children:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Le.sidebarOpen(),e[0]=o):o=e[0];const[i,l]=Ee(o,!0);let n;return e[1]!==r||e[2]!==l||e[3]!==i?(n=s.jsx(At,{open:i,onOpenChange:l,children:r}),e[1]=r,e[2]=l,e[3]=i,e[4]=n):n=e[4],n}function lr(t){const e=z.c(24),{isStudio:r,isHomeRoute:o,onCreateProject:i}=t,[l]=Te();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Le.decoChatPanelWidth(),e[0]=n):n=e[0];const[a]=Ee(n,30),[d]=$e(),c=r&&d.experimental_projects?"":void 0,m=`${a}cqi`;let f;e[1]!==m?(f={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":m},e[1]=m,e[2]=f):f=e[2];const u=f;let j;e[3]!==i?(j=s.jsx(sr,{onCreateProject:i}),e[3]=i,e[4]=j):j=e[4];let x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x={background:"transparent",containerType:"inline-size"},e[5]=x):x=e[5];let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h={overflow:"visible"},e[6]=h):h=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g={overflow:"visible"},e[7]=g):g=e[7];const v=l&&"rounded-tr-[0.75rem] border-r";let p;e[8]!==v?(p=W("flex flex-col flex-1 min-h-0 bg-card overflow-hidden","border-t border-l border-sidebar-border","rounded-tl-[0.75rem]","transition-[border-radius] duration-200 ease-[var(--ease-out-quart)]",v),e[8]=v,e[9]=p):p=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(He,{})}),e[10]=b):b=e[10];let S;e[11]!==p?(S=s.jsx(nt,{className:"min-w-0 flex flex-col",style:g,children:s.jsx("div",{className:p,children:b})}),e[11]=p,e[12]=S):S=e[12];let y;e[13]!==l||e[14]!==o?(y=!o&&s.jsxs(s.Fragment,{children:[s.jsx(ps,{className:"bg-sidebar"}),s.jsx(ir,{className:W("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",l?"max-w-[var(--chat-panel-w)] bg-sidebar":"max-w-0"),children:s.jsx("div",{className:"h-full min-w-[var(--chat-panel-w)] pl-1.5 pr-1.5 pb-1.5",children:s.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden border border-sidebar-border shadow-sm",children:s.jsx(gs,{})})})})]}),e[13]=l,e[14]=o,e[15]=y):y=e[15];let k;e[16]!==S||e[17]!==y?(k=s.jsx(Ot,{className:"pt-1.5",style:x,children:s.jsxs(xs,{direction:"horizontal",className:"h-full",style:h,children:[S,y]})}),e[16]=S,e[17]=y,e[18]=k):k=e[18];let N;return e[19]!==k||e[20]!==c||e[21]!==u||e[22]!==j?(N=s.jsxs(Tt,{className:"flex-1 bg-sidebar","data-studio":c,style:u,children:[j,k]}),e[19]=k,e[20]=c,e[21]=u,e[22]=j,e[23]=N):N=e[23],N}function ar(){const{org:t,project:e}=Oe({strict:!1}),r=_e(),[o,i]=T.useState(!1),l=r.location.pathname===`/${t}/${e}`||r.location.pathname===`/${t}/${e}/`,n=e??K,{data:a}=Ct({queryKey:_t.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:m}=await ce.organization.setActive({organizationSlug:t});return{org:m,project:{slug:n,isOrgAdmin:n===K}}},gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1});if(!a)return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("header",{className:"h-12 flex items-center justify-end px-4 border-b border-border",children:s.jsx("div",{className:"w-fit",children:s.jsx(ut,{})})}),s.jsx(He,{})]});if(!a.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const d={...a,project:{...a.project,slug:n,isOrgAdmin:n===K}},c=n===K;return s.jsxs(wt,{...d,children:[s.jsx(or,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(X.Provider,{children:s.jsx(lr,{isStudio:c,isHomeRoute:l,onCreateProject:()=>i(!0)})})})}),s.jsx(Ke,{open:o,onOpenChange:i})]})}function Bn(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(nr,{children:s.jsx(T.Suspense,{fallback:s.jsx(Fe,{}),children:s.jsx(ar,{})})}),t[0]=e):e=t[0],e}export{Bn as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as c,j as i,a8 as C,ar as y,ap as T,at as I,ax as M,ay as H,aw as z,c as A}from"./index-p3omciU2.js";import{c as g}from"./button-SrN4bZ1L.js";var b="Switch",[U]=z(b),[q,L]=U(b),E=c.forwardRef((s,e)=>{const{__scopeSwitch:t,name:r,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:w,form:l,...k}=s,[p,h]=c.useState(null),v=y(e,m=>h(m)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:a,defaultProp:n??!1,onChange:w,caller:b});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...k,ref:v,onClick:I(s.onClick,m=>{N(B=>!B),S&&(x.current=m.isPropagationStopped(),x.current||m.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:r,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=b;var P="SwitchThumb",R=c.forwardRef((s,e)=>{const{__scopeSwitch:t,...r}=s,a=L(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:s,control:e,checked:t,bubbles:r=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),w=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const k=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(k,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:r});h.call(l,t),l.dispatchEvent(v)}},[u,t,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(s){return s?"checked":"unchecked"}var $=E,D=R;function X(s){const e=A.c(9);let t,r;e[0]!==s?({className:t,...r}=s,e[0]=s,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let a;e[3]!==t?(a=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==r||e[7]!==a?(o=i.jsx($,{"data-slot":"switch",className:a,...r,children:n}),e[6]=r,e[7]=a,e[8]=o):o=e[8],o}export{X as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as O,j as r,r as Z,u as ae,b as oe,m as ie,n as le,K as G}from"./index-p3omciU2.js";import{C as ne,a as ce}from"./collection-table-wrapper-ByW-kXsd.js";import{C as me}from"./collection-search-B9NZ4RH6.js";import{E as J}from"./empty-state-DUeMScV0.js";import{E as de}from"./error-boundary-CgOqOmL9.js";import{P as _}from"./index-C4EDt4lI.js";import{u as ue,U as pe}from"./use-list-state-DpzviSdT.js";import{f as fe}from"./format-time-CMKyl-GC.js";import{a as he,u as xe}from"./constants-DisK0xae.js";import{B as ge,a as je,b as ye,c as Se}from"./breadcrumb-Btg1z4US.js";import{B as b}from"./badge-DU-tZMJX.js";import{i as be}from"./AlertCircle-Cnw5GhjM.js";import{c as _e}from"./AlertOctagon-PE1D_d6N.js";import{n as X}from"./CheckDone01-Bl3K1H3i.js";import{i as we}from"./Check-IyJXmB3D.js";import{s as Ce}from"./Clock-BMY1eaW0.js";import{i as ee}from"./Loading01-5Os1EBQC.js";import{u as Ne,a as Te}from"./context-C_I7xFo7.js";import"./button-SrN4bZ1L.js";import"./dropdown-menu-CvPfeATW.js";import"./ChevronRight-CQzN9ZtD.js";import"./ArrowDown-Dq_ix_a5.js";import"./ArrowUp-CP0dzs2U.js";import"./Grid01-BfcTdCmK.js";import"./List-DHYjADtQ.js";import"./tooltip-BbsUVNzK.js";import"./index-BQJHl8k7.js";import"./view-mode-toggle-BeStXEmg.js";import"./table-CQcuIfNu.js";import"./SearchMd-C4hV7R8V.js";import"./input-C19rUyj9.js";import"./AlertTriangle-DiiOmxZ5.js";import"./use-mobile-CjVgJBva.js";import"./X-gSzwTkxQ.js";import"./avatar-DvchIe54.js";import"./useQuery-KFMXc5Td.js";import"./use-view-mode-DDLmSRVK.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-virtual-mcp-gsGIP_cY.js";import"./use-connection-DkSSfi9a.js";import"./useMutation-GHxEJTN4.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-DTPk3_13.js";import"./use-binding-BdZ1UVgx.js";import"./binder-DYtUzpSy.js";import"./localstorage-keys-DIWr3Ek_.js";import"./skeleton-DQTz2Cfy.js";import"./popover-Bz-dtYC4.js";import"./select-DFuMzqKt.js";import"./ChevronDown-CrA0GhEu.js";import"./File06-CN-CUlfW.js";import"./Image01-DiX4EYL6.js";import"./RefreshCcw01-BU6Us9RR.js";import"./Settings01-KIfOk1bg.js";import"./useSuspenseInfiniteQuery-Cw1MYhE7.js";import"./infiniteQueryObserver-Bwh-NMGh.js";function ke(e){const s=O.c(9),{status:n,stepCount:l}=e;switch(n){case"in_progress":{let a;s[0]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsx(ee,{size:11,className:"animate-spin"}),s[0]=a):a=s[0];const c=l?`Running · step ${l}`:"Running";let m;return s[1]!==c?(m=r.jsxs(b,{variant:"secondary",className:"gap-1",children:[a,c]}),s[1]=c,s[2]=m):m=s[2],m}case"completed":{let a;return s[3]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"success",className:"gap-1",children:[r.jsx(we,{size:11}),"Completed"]}),s[3]=a):a=s[3],a}case"requires_action":{let a;return s[4]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"outline",className:"gap-1 text-blue-600 border-blue-600/40",children:[r.jsx(be,{size:11}),"Waiting for input"]}),s[4]=a):a=s[4],a}case"failed":{let a;return s[5]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"destructive",className:"gap-1",children:[r.jsx(_e,{size:11}),"Failed"]}),s[5]=a):a=s[5],a}case"expired":{let a;return s[6]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"outline",className:"gap-1 text-warning border-warning/40",children:[r.jsx(Ce,{size:11}),"Timed out"]}),s[6]=a):a=s[6],a}default:{let a;return s[7]!==n?(a=r.jsx(b,{variant:"secondary",className:"gap-1",children:n}),s[7]=n,s[8]=a):a=s[8],a}}}function ve(){const e=O.c(64),{org:s,project:n,locator:l}=ae();let a;e[0]!==s.id?(a={connectionId:he,orgId:s.id},e[0]=s.id,e[1]=a):a=e[1];const c=xe(a),m=oe(),{switchToThread:I}=Ne(),P=ie();let w;e[2]===Symbol.for("react.memo_cache_sentinel")?(w=new Map,e[2]=w):w=e[2];const[R,Q]=Z.useState(w);let C;e[3]===Symbol.for("react.memo_cache_sentinel")?(C=o=>{Q(S=>{const i=new Map(S);return i.set(o.subject,o.data.stepCount),i})},e[3]=C):C=e[3];let d;e[4]!==l||e[5]!==P?(d=o=>{P.invalidateQueries({queryKey:G.taskThreads(l)}),o.data.status!=="in_progress"&&Q(S=>{const i=new Map(S);return i.delete(o.subject),i})},e[4]=l,e[5]=P,e[6]=d):d=e[6];let N;e[7]!==s.id||e[8]!==d?(N={orgId:s.id,onStep:C,onThreadStatus:d},e[7]=s.id,e[8]=d,e[9]=N):N=e[9],Te(N);let T;e[10]!==s.slug?(T={namespace:s.slug,resource:"tasks",defaultSortKey:"updated_at",defaultViewMode:"table"},e[10]=s.slug,e[11]=T):T=e[11];const t=ue(T);let u;e[12]!==l?(u=G.taskThreads(l),e[12]=l,e[13]=u):u=e[13];let p;e[14]!==c?(p=async()=>{if(!c)throw new Error("MCP client is not available");const o=await c.callTool({name:"COLLECTION_THREADS_LIST",arguments:{limit:100,offset:0}});return(o.structuredContent??o).items??[]},e[14]=c,e[15]=p):p=e[15];let k;e[16]!==u||e[17]!==p?(k={queryKey:u,queryFn:p,staleTime:3e4},e[16]=u,e[17]=p,e[18]=k):k=e[18];const{data:V}=le(k);let v;if(e[19]!==V||e[20]!==t){const o=V.filter(Ee),S=t.searchTerm?o.filter(U=>U.title.toLowerCase().includes(t.searchTerm.toLowerCase())):o;let i;e[22]!==t?(i=(U,te)=>{const{sortKey:F,sortDirection:W}=t;if(!F||!W)return 0;const se=String(U[F]??""),re=String(te[F]??""),Y=se.localeCompare(re);return W==="asc"?Y:-Y},e[22]=t,e[23]=i):i=e[23],v=[...S].sort(i),e[19]=V,e[20]=t,e[21]=v}else v=e[21];const q=v;let D;e[24]!==m||e[25]!==s.slug||e[26]!==n.slug||e[27]!==I?(D=async o=>{await I(o.id),m({to:"/$org/$project",params:{org:s.slug,project:n.slug}})},e[24]=m,e[25]=s.slug,e[26]=n.slug,e[27]=I,e[28]=D):D=e[28];const A=D;let K;e[29]===Symbol.for("react.memo_cache_sentinel")?(K={id:"title",header:"Title",render:Me,cellClassName:"flex-1 min-w-0",sortable:!0},e[29]=K):K=e[29];let f;e[30]!==R?(f={id:"status",header:"Status",render:o=>r.jsx(ke,{status:o.status??"completed",stepCount:R.get(o.id)}),cellClassName:"w-40 shrink-0",sortable:!0},e[30]=R,e[31]=f):f=e[31];let M,E;e[32]===Symbol.for("react.memo_cache_sentinel")?(M={id:"created_by",header:"Created by",render:Ke,cellClassName:"w-32 shrink-0"},E={id:"updated_at",header:"Updated",render:De,cellClassName:"max-w-24 w-24 shrink-0",sortable:!0},e[32]=M,e[33]=E):(M=e[32],E=e[33]);let L;e[34]!==f?(L=[K,f,M,E],e[34]=f,e[35]=L):L=e[35];const H=L;let B;e[36]===Symbol.for("react.memo_cache_sentinel")?(B=r.jsx(_.Header.Left,{children:r.jsx(ge,{children:r.jsx(je,{children:r.jsx(ye,{children:r.jsx(Se,{children:"Tasks"})})})})}),e[36]=B):B=e[36];let z;e[37]===Symbol.for("react.memo_cache_sentinel")?(z=[{id:"title",label:"Title"},{id:"status",label:"Status"},{id:"updated_at",label:"Updated"}],e[37]=z):z=e[37];let h;e[38]!==t.handleSort||e[39]!==t.setViewMode||e[40]!==t.sortDirection||e[41]!==t.sortKey||e[42]!==t.viewMode?(h=r.jsxs(_.Header,{children:[B,r.jsx(_.Header.Right,{children:r.jsx(ne,{viewMode:t.viewMode,onViewModeChange:t.setViewMode,sortKey:t.sortKey,sortDirection:t.sortDirection,onSort:t.handleSort,sortOptions:z})})]}),e[38]=t.handleSort,e[39]=t.setViewMode,e[40]=t.sortDirection,e[41]=t.sortKey,e[42]=t.viewMode,e[43]=h):h=e[43];let x;e[44]!==t?(x=o=>{o.key==="Escape"&&(t.setSearch(""),o.target.blur())},e[44]=t,e[45]=x):x=e[45];let g;e[46]!==t.search||e[47]!==t.setSearch||e[48]!==x?(g=r.jsx(me,{value:t.search,onChange:t.setSearch,placeholder:"Search tasks...",onKeyDown:x}),e[46]=t.search,e[47]=t.setSearch,e[48]=x,e[49]=g):g=e[49];let j;e[50]!==t.search?(j=t.search?r.jsx(J,{image:r.jsx(X,{size:36,className:"text-muted-foreground"}),title:"No tasks found",description:`No tasks match "${t.search}"`}):r.jsx(J,{image:r.jsx("div",{className:"flex items-center justify-center w-16 h-16 rounded-full bg-muted",children:r.jsx(X,{size:32,className:"text-muted-foreground"})}),title:"No tasks yet",description:"Tasks will appear here when agents start processing work."}),e[50]=t.search,e[51]=j):j=e[51];let y;e[52]!==H||e[53]!==t.handleSort||e[54]!==t.sortDirection||e[55]!==t.sortKey||e[56]!==A||e[57]!==j||e[58]!==q?(y=r.jsx(_.Content,{children:r.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r.jsx(ce,{columns:H,data:q,isLoading:!1,sortKey:t.sortKey,sortDirection:t.sortDirection,onSort:t.handleSort,onRowClick:A,emptyState:j})})}),e[52]=H,e[53]=t.handleSort,e[54]=t.sortDirection,e[55]=t.sortKey,e[56]=A,e[57]=j,e[58]=q,e[59]=y):y=e[59];let $;return e[60]!==h||e[61]!==g||e[62]!==y?($=r.jsxs(_,{children:[h,g,y]}),e[60]=h,e[61]=g,e[62]=y,e[63]=$):$=e[63],$}function De(e){return r.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:e.updated_at?fe(new Date(e.updated_at)):"—"})}function Ke(e){return r.jsx(pe,{id:e.created_by,size:"3xs"})}function Me(e){return r.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.title})}function Ee(e){return!e.hidden}function zt(){const e=O.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx(de,{children:r.jsx(Z.Suspense,{fallback:r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(ee,{size:32,className:"animate-spin text-muted-foreground"})}),children:r.jsx(ve,{})})}),e[0]=s):s=e[0],s}export{zt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as z,b as F,r as D,j as t,O as J}from"./index-p3omciU2.js";import{a as q,C as Q}from"./collection-table-wrapper-ByW-kXsd.js";import{C as X}from"./collection-search-B9NZ4RH6.js";import{E as K}from"./empty-state-DUeMScV0.js";import{I as Y}from"./integration-icon-CMj9-FPS.js";import{B as Z}from"./badge-DU-tZMJX.js";import{C as ee}from"./card-qnGcUCM7.js";import{T as te,a as oe,b as se,c as ne}from"./tooltip-BbsUVNzK.js";import{i as re}from"./AlertTriangle-DiiOmxZ5.js";import{s as ae}from"./Eye-CF7Jsi4h.js";import{s as ie}from"./Globe02-CLsJ4yCM.js";import{s as le}from"./RefreshCw01-ClksFdlE.js";import{V as ce}from"./layout-B39Q-9q3.js";const me=[{key:"readOnlyHint",label:"Read-only",Icon:ae,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:re,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:le,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:ie,variant:"outline"}];function de(o){const e=z.c(11),{annotations:r}=o;if(!r)return null;let a,c,m,d;if(e[0]!==r){d=Symbol.for("react.early_return_sentinel");e:{const u=me.filter(h=>r[h.key]===!0);if(u.length===0){d=null;break e}a=ne,c="flex gap-1 flex-nowrap",m=u.map(fe)}e[0]=r,e[1]=a,e[2]=c,e[3]=m,e[4]=d}else a=e[1],c=e[2],m=e[3],d=e[4];if(d!==Symbol.for("react.early_return_sentinel"))return d;let f;e[5]!==c||e[6]!==m?(f=t.jsx("div",{className:c,children:m}),e[5]=c,e[6]=m,e[7]=f):f=e[7];let p;return e[8]!==a||e[9]!==f?(p=t.jsx(a,{children:f}),e[8]=a,e[9]=f,e[10]=p):p=e[10],p}function fe(o){const{label:e,Icon:r,variant:a}=o;return t.jsxs(te,{children:[t.jsx(oe,{asChild:!0,children:t.jsx(Z,{asChild:!0,variant:a,className:"size-6 p-1",children:t.jsx(r,{})})}),t.jsx(se,{children:e})]},e)}function Oe(o){const e=z.c(40),{tools:r,connectionId:a,org:c,onToolClick:m,showToolbar:d,emptyMessage:f,isLoading:p}=o,u=d===void 0?!0:d,h=f===void 0?"This connection doesn't have any tools yet.":f,E=p===void 0?!1:p,R=F(),[i,H]=D.useState(""),[x,G]=D.useState("table"),[n,M]=D.useState("name"),[l,V]=D.useState("asc");let T;e[0]!==l||e[1]!==n?(T=s=>{n===s?(V(je),l==="desc"&&M(void 0)):(M(s),V("asc"))},e[0]=l,e[1]=n,e[2]=T):T=e[2];const g=T;let S;e[3]!==a||e[4]!==R||e[5]!==m||e[6]!==c?(S=s=>{m?m(s):a&&c&&R({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:c,project:J,connectionId:a,collectionName:"tools",itemId:encodeURIComponent(s.name)}})},e[3]=a,e[4]=R,e[5]=m,e[6]=c,e[7]=S):S=e[7];const w=S;let I;if(e[8]!==i||e[9]!==l||e[10]!==n||e[11]!==r){const s=!r||r.length===0?[]:i.trim()?(()=>{const O=i.toLowerCase();return r.filter(C=>C.name.toLowerCase().includes(O)||C.description&&C.description.toLowerCase().includes(O))})():r;I=!n||!l?s:[...s].sort((O,C)=>{const U=O[n]||"",W=C[n]||"",B=String(U).localeCompare(String(W));return l==="asc"?B:-B}),e[8]=i,e[9]=l,e[10]=n,e[11]=r,e[12]=I}else I=e[12];const v=I;let _;e[13]===Symbol.for("react.memo_cache_sentinel")?(_=[{id:"name",header:"Name",render:ge,sortable:!0},{id:"annotations",header:"Hints",render:xe,cellClassName:"w-32 shrink-0"},{id:"description",header:"Description",render:he,cellClassName:"flex-1",sortable:!0}],e[13]=_):_=e[13];const A=_;let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=A.filter(ue).map(pe),e[14]=k):k=e[14];const P=k;let j;e[15]!==g||e[16]!==u||e[17]!==l||e[18]!==n||e[19]!==x?(j=u&&t.jsx(ce,{children:t.jsx(Q,{viewMode:x,onViewModeChange:G,sortKey:n,sortDirection:l,onSort:g,sortOptions:P})}),e[15]=g,e[16]=u,e[17]=l,e[18]=n,e[19]=x,e[20]=j):j=e[20];let $;e[21]===Symbol.for("react.memo_cache_sentinel")?($=s=>{s.key==="Escape"&&(H(""),s.target.blur())},e[21]=$):$=e[21];let y;e[22]!==i?(y=t.jsx(X,{value:i,onChange:H,placeholder:"Search tools...",onKeyDown:$}),e[22]=i,e[23]=y):y=e[23];let N;e[24]!==h||e[25]!==g||e[26]!==w||e[27]!==E||e[28]!==i||e[29]!==l||e[30]!==n||e[31]!==v||e[32]!==x?(N=x==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:v.length===0?t.jsx(K,{image:null,title:i?"No tools found":"No tools available",description:i?"Try adjusting your search terms":h}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:v.map(s=>t.jsx(ee,{className:"cursor-pointer transition-colors",onClick:()=>w(s),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(Y,{icon:null,name:s.name,size:"md",className:"shrink-0 shadow-sm"}),t.jsxs("div",{className:"flex flex-col gap-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.name}),t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:s.description||"No description"})]})]})},s.name))})}):t.jsx(q,{columns:A,data:v,isLoading:E,sortKey:n,sortDirection:l,onSort:g,onRowClick:s=>w(s),emptyState:t.jsx(K,{image:null,title:i?"No tools found":"No tools available",description:i?"Try adjusting your search terms":h})}),e[24]=h,e[25]=g,e[26]=w,e[27]=E,e[28]=i,e[29]=l,e[30]=n,e[31]=v,e[32]=x,e[33]=N):N=e[33];let b;e[34]!==y||e[35]!==N?(b=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[y,N]}),e[34]=y,e[35]=N,e[36]=b):b=e[36];let L;return e[37]!==b||e[38]!==j?(L=t.jsxs(t.Fragment,{children:[j,b]}),e[37]=b,e[38]=j,e[39]=L):L=e[39],L}function pe(o){return{id:o.id,label:typeof o.header=="string"?o.header:o.id}}function ue(o){return o.sortable}function he(o){return t.jsx("span",{className:"text-sm text-foreground",children:o.description||"—"})}function xe(o){return t.jsx(de,{annotations:o.annotations})}function ge(o){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:o.name})}function je(o){return o==="asc"?"desc":o==="desc"?null:"asc"}export{Oe as T,de as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as l,ao as Q,ap as M,j as c,a8 as g,am as P,av as S,aw as O,au as D,as as U,at as h,aq as X,c as m,ar as ee,bm as te}from"./index-p3omciU2.js";import{c as C}from"./button-SrN4bZ1L.js";import{u as ae,L as ne}from"./localstorage-keys-DIWr3Ek_.js";const oe=({size:t=24,color:e="currentColor",...a})=>l.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},l.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));oe.displayName="ArrowsRight";const re=({size:t=24,color:e="currentColor",...a})=>l.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},l.createElement("path",{d:"M10 17.659V20a2 2 0 1 0 4 0v-2.341M12 2v1m-9 9H2m3.5-6.5-.6-.6m13.6.6.6-.6M22 12h-1m-3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"}));re.displayName="Lightbulb02";const se=({size:t=24,color:e="currentColor",...a})=>l.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},l.createElement("path",{d:"M15.631 7.631c-.396-.396-.594-.594-.668-.822a1 1 0 0 1 0-.618c.074-.228.272-.426.668-.822L18.47 2.53a6 6 0 0 0-8.3 6.895c.12.49.179.734.168.888a.849.849 0 0 1-.11.392c-.07.138-.207.274-.48.547L3.5 17.5a2.121 2.121 0 0 0 3 3l6.248-6.248c.273-.273.41-.41.547-.48a.849.849 0 0 1 .392-.11c.154-.011.399.049.888.168a6 6 0 0 0 6.895-8.3l-2.84 2.84c-.396.396-.594.594-.822.668a1 1 0 0 1-.618 0c-.228-.074-.426-.272-.822-.668l-.738-.738Z"}));se.displayName="Tool01";var T="Tabs",[ie]=O(T,[D]),F=D(),[le,w]=ie(T),V=l.forwardRef((t,e)=>{const{__scopeTabs:a,value:n,onValueChange:o,defaultValue:r,orientation:s="horizontal",dir:i,activationMode:d="automatic",...f}=t,u=Q(i),[p,v]=M({prop:n,onChange:o,defaultProp:r??"",caller:T});return c.jsx(le,{scope:a,baseId:P(),value:p,onValueChange:v,orientation:s,dir:u,activationMode:d,children:c.jsx(g.div,{dir:u,"data-orientation":s,...f,ref:e})})});V.displayName=T;var G="TabsList",B=l.forwardRef((t,e)=>{const{__scopeTabs:a,loop:n=!0,...o}=t,r=w(G,a),s=F(a);return c.jsx(X,{asChild:!0,...s,orientation:r.orientation,dir:r.dir,loop:n,children:c.jsx(g.div,{role:"tablist","aria-orientation":r.orientation,...o,ref:e})})});B.displayName=G;var z="TabsTrigger",K=l.forwardRef((t,e)=>{const{__scopeTabs:a,value:n,disabled:o=!1,...r}=t,s=w(z,a),i=F(a),d=H(s.baseId,n),f=Z(s.baseId,n),u=n===s.value;return c.jsx(U,{asChild:!0,...i,focusable:!o,active:u,children:c.jsx(g.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...r,ref:e,onMouseDown:h(t.onMouseDown,p=>{!o&&p.button===0&&p.ctrlKey===!1?s.onValueChange(n):p.preventDefault()}),onKeyDown:h(t.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&s.onValueChange(n)}),onFocus:h(t.onFocus,()=>{const p=s.activationMode!=="manual";!u&&!o&&p&&s.onValueChange(n)})})})});K.displayName=z;var q="TabsContent",W=l.forwardRef((t,e)=>{const{__scopeTabs:a,value:n,forceMount:o,children:r,...s}=t,i=w(q,a),d=H(i.baseId,n),f=Z(i.baseId,n),u=n===i.value,p=l.useRef(u);return l.useEffect(()=>{const v=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(v)},[]),c.jsx(S,{present:o||u,children:({present:v})=>c.jsx(g.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":d,hidden:!v,id:f,tabIndex:0,...s,ref:e,style:{...t.style,animationDuration:p.current?"0s":void 0},children:v&&r})})});W.displayName=q;function H(t,e){return`${t}-trigger-${e}`}function Z(t,e){return`${t}-content-${e}`}var ce=V,de=B,ue=K,pe=W;function Te(t){const e=m.c(10);let a,n,o;e[0]!==t?({className:a,variant:o,...n}=t,e[0]=t,e[1]=a,e[2]=n,e[3]=o):(a=e[1],n=e[2],o=e[3]);const r=o===void 0?"pill":o;let s;e[4]!==a?(s=C("flex flex-col gap-2",a),e[4]=a,e[5]=s):s=e[5];let i;return e[6]!==n||e[7]!==s||e[8]!==r?(i=c.jsx(ce,{"data-slot":"tabs","data-variant":r,className:s,...n}),e[6]=n,e[7]=s,e[8]=r,e[9]=i):i=e[9],i}function ye(t){const e=m.c(11);let a,n,o;e[0]!==t?({className:a,variant:o,...n}=t,e[0]=t,e[1]=a,e[2]=n,e[3]=o):(a=e[1],n=e[2],o=e[3]);const r=o||"pill",s=r==="underline"?"flex h-[52px] items-center border-b border-border":r==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==s?(i=C(s,a),e[4]=a,e[5]=s,e[6]=i):i=e[6];let d;return e[7]!==r||e[8]!==n||e[9]!==i?(d=c.jsx(de,{"data-slot":"tabs-list","data-variant":r,className:i,...n}),e[7]=r,e[8]=n,e[9]=i,e[10]=d):d=e[10],d}function Re(t){const e=m.c(11);let a,n,o;e[0]!==t?({className:a,variant:o,...n}=t,e[0]=t,e[1]=a,e[2]=n,e[3]=o):(a=e[1],n=e[2],o=e[3]);const r=o||"pill",s=r==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":r==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==s?(i=C(s,a),e[4]=a,e[5]=s,e[6]=i):i=e[6];let d;return e[7]!==r||e[8]!==n||e[9]!==i?(d=c.jsx(ue,{"data-slot":"tabs-trigger","data-variant":r,className:i,...n}),e[7]=r,e[8]=n,e[9]=i,e[10]=d):d=e[10],d}function we(t){const e=m.c(8);let a,n;e[0]!==t?({className:a,...n}=t,e[0]=t,e[1]=a,e[2]=n):(a=e[1],n=e[2]);let o;e[3]!==a?(o=C("flex-1 outline-none h-full",a),e[3]=a,e[4]=o):o=e[4];let r;return e[5]!==n||e[6]!==o?(r=c.jsx(pe,{"data-slot":"tabs-content",className:o,...n}),e[5]=n,e[6]=o,e[7]=r):r=e[7],r}var y="Collapsible",[fe,Ne]=O(y),[be,N]=fe(y),Y=l.forwardRef((t,e)=>{const{__scopeCollapsible:a,open:n,defaultOpen:o,disabled:r,onOpenChange:s,...i}=t,[d,f]=M({prop:n,defaultProp:o??!1,onChange:s,caller:y});return c.jsx(be,{scope:a,disabled:r,contentId:P(),open:d,onOpenToggle:l.useCallback(()=>f(u=>!u),[f]),children:c.jsx(g.div,{"data-state":$(d),"data-disabled":r?"":void 0,...i,ref:e})})});Y.displayName=y;var J="CollapsibleTrigger",_=l.forwardRef((t,e)=>{const{__scopeCollapsible:a,...n}=t,o=N(J,a);return c.jsx(g.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":$(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:e,onClick:h(t.onClick,o.onOpenToggle)})});_.displayName=J;var j="CollapsibleContent",E=l.forwardRef((t,e)=>{const{forceMount:a,...n}=t,o=N(j,t.__scopeCollapsible);return c.jsx(S,{present:a||o.open,children:({present:r})=>c.jsx(ve,{...n,ref:e,present:r})})});E.displayName=j;var ve=l.forwardRef((t,e)=>{const{__scopeCollapsible:a,present:n,children:o,...r}=t,s=N(j,a),[i,d]=l.useState(n),f=l.useRef(null),u=ee(e,f),p=l.useRef(0),v=p.current,k=l.useRef(0),A=k.current,R=s.open||i,I=l.useRef(R),x=l.useRef(void 0);return l.useEffect(()=>{const b=requestAnimationFrame(()=>I.current=!1);return()=>cancelAnimationFrame(b)},[]),te(()=>{const b=f.current;if(b){x.current=x.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const L=b.getBoundingClientRect();p.current=L.height,k.current=L.width,I.current||(b.style.transitionDuration=x.current.transitionDuration,b.style.animationName=x.current.animationName),d(n)}},[s.open,n]),c.jsx(g.div,{"data-state":$(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!R,...r,ref:u,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":A?`${A}px`:void 0,...t.style},children:R&&o})});function $(t){return t?"open":"closed"}var me=Y,_e=_,je=E;function Ee(t){const e=m.c(4);let a;e[0]!==t?({...a}=t,e[0]=t,e[1]=a):a=e[1];let n;return e[2]!==a?(n=c.jsx(me,{"data-slot":"collapsible",...a}),e[2]=a,e[3]=n):n=e[3],n}function $e(t){const e=m.c(4);let a;e[0]!==t?({...a}=t,e[0]=t,e[1]=a):a=e[1];let n;return e[2]!==a?(n=c.jsx(_,{"data-slot":"collapsible-trigger",...a}),e[2]=a,e[3]=n):n=e[3],n}function ke(t){const e=m.c(4);let a;e[0]!==t?({...a}=t,e[0]=t,e[1]=a):a=e[1];let n;return e[2]!==a?(n=c.jsx(E,{"data-slot":"collapsible-content",...a}),e[2]=a,e[3]=n):n=e[3],n}function Ae(){const t=m.c(4);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=ne.decoChatOpen(),t[0]=e):e=t[0];const[a,n]=ae(e,ge);let o;return t[1]!==a||t[2]!==n?(o=[a,n],t[1]=a,t[2]=n,t[3]=o):o=t[3],o}function ge(t){return!!(t??!0)}export{Ee as C,me as R,Re as T,se as a,ye as b,we as c,Te as d,re as e,$e as f,ke as g,_e as h,oe as i,je as j,Ne as k,Ae as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as n,b1 as u,b2 as p,n as f}from"./index-p3omciU2.js";import{u as m}from"./useQuery-KFMXc5Td.js";import{K as c}from"./constants-DisK0xae.js";async function y(o){if(!o.getServerCapabilities()?.resources)return{resources:[]};try{return await o.listResources()}catch(t){if(t instanceof u&&t.code===p.MethodNotFound)return{resources:[]};throw t}}async function R(o,e){return await o.readResource({uri:e})}function w(o){const e=n.c(12);let t,s;e[0]!==o?({client:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=c.mcpResourcesList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>y(t),e[5]=t,e[6]=i):i=e[6];const l=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==l?(a={...s,queryKey:r,queryFn:i,staleTime:l,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=l,e[11]=a):a=e[11],f(a)}function C(o){const e=n.c(12);let t,s;e[0]!==o?({client:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=c.mcpResourcesList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>y(t),e[5]=t,e[6]=i):i=e[6];const l=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==l?(a={...s,queryKey:r,queryFn:i,staleTime:l,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=l,e[11]=a):a=e[11],m(a)}async function b(o){if(!o.getServerCapabilities()?.prompts)return{prompts:[]};try{return await o.listPrompts()}catch(t){if(t instanceof u&&t.code===p.MethodNotFound)return{prompts:[]};throw t}}async function L(o,e,t){if(!o.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await o.getPrompt({name:e,arguments:t??{}})}function T(o){const e=n.c(12);let t,s;e[0]!==o?({client:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=c.mcpPromptsList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>b(t),e[5]=t,e[6]=i):i=e[6];const l=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==l?(a={...s,queryKey:r,queryFn:i,staleTime:l,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=l,e[11]=a):a=e[11],f(a)}function g(o){const e=n.c(12);let t,s;e[0]!==o?({client:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=c.mcpPromptsList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>b(t),e[5]=t,e[6]=i):i=e[6];const l=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==l?(a={...s,queryKey:r,queryFn:i,staleTime:l,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=l,e[11]=a):a=e[11],m(a)}export{y as a,g as b,w as c,C as d,L as g,b as l,R as r,T as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-Bwh-NMGh.js";import{z as i}from"./index-p3omciU2.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{z as u,a9 as s}from"./index-p3omciU2.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-Bwh-NMGh.js";import{z as u,B as n}from"./index-p3omciU2.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as Y,r as V,j as i}from"./index-p3omciU2.js";import{c as n}from"./button-SrN4bZ1L.js";const Z={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function oe(J){const e=Y.c(66),{value:o,onValueChange:l,options:t,size:D,fullWidth:F,className:W}=J,K=D===void 0?"sm":D,w=F===void 0?!1:F,G=V.useRef(null),H=V.useRef(null);let R;e[0]===Symbol.for("react.memo_cache_sentinel")?(R={left:0,width:0,opacity:0},e[0]=R):R=e[0];const[N,O]=V.useState(R);let _;e[1]===Symbol.for("react.memo_cache_sentinel")?(_=S=>{if(!S.current)return;const{offsetLeft:U,offsetWidth:X}=S.current;O({left:U,width:X,opacity:1})},e[1]=_):_=e[1];const Q=_;let C;e[2]!==t[0].value||e[3]!==o?(C=()=>{const S=o===t[0].value?G:H;Q(S)},e[2]=t[0].value,e[3]=o,e[4]=C):C=e[4];let E;e[5]!==t||e[6]!==o?(E=[o,t],e[5]=t,e[6]=o,e[7]=E):E=e[7],V.useEffect(C,E);const s=Z[K];let a;e[8]!==W?(a=n("relative flex gap-0 bg-muted rounded-lg",W),e[8]=W,e[9]=a):a=e[9];let c;e[10]!==l||e[11]!==t[0].value?(c=()=>l(t[0].value),e[10]=l,e[11]=t[0].value,e[12]=c):c=e[12];const $=w?"flex-1 h-12 px-4":s.button,I=!w&&t[0].label?"px-3":"";let r;e[13]!==I||e[14]!==$?(r=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",$,I),e[13]=I,e[14]=$,e[15]=r):r=e[15];const P=o===t[0].value?"text-foreground":"text-muted-foreground";let u;e[16]!==s.icon||e[17]!==P?(u=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,P),e[16]=s.icon,e[17]=P,e[18]=u):u=e[18];let f;e[19]!==t[0].icon||e[20]!==u?(f=i.jsx("span",{className:u,children:t[0].icon}),e[19]=t[0].icon,e[20]=u,e[21]=f):f=e[21];let d;e[22]!==t[0].label||e[23]!==t[0].value||e[24]!==o?(d=t[0].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[0].value?"text-foreground":"text-muted-foreground"),children:t[0].label}),e[22]=t[0].label,e[23]=t[0].value,e[24]=o,e[25]=d):d=e[25];let m;e[26]!==r||e[27]!==f||e[28]!==d||e[29]!==c?(m=i.jsxs("button",{ref:G,type:"button",onClick:c,className:r,children:[f,d]}),e[26]=r,e[27]=f,e[28]=d,e[29]=c,e[30]=m):m=e[30];let x;e[31]!==l||e[32]!==t[1].value?(x=()=>l(t[1].value),e[31]=l,e[32]=t[1].value,e[33]=x):x=e[33];const L=w?"flex-1 h-12 px-4":s.button,M=!w&&t[1].label?"px-3":"";let p;e[34]!==L||e[35]!==M?(p=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",L,M),e[34]=L,e[35]=M,e[36]=p):p=e[36];const T=o===t[1].value?"text-foreground":"text-muted-foreground";let b;e[37]!==s.icon||e[38]!==T?(b=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,T),e[37]=s.icon,e[38]=T,e[39]=b):b=e[39];let v;e[40]!==t[1].icon||e[41]!==b?(v=i.jsx("span",{className:b,children:t[1].icon}),e[40]=t[1].icon,e[41]=b,e[42]=v):v=e[42];let g;e[43]!==t[1].label||e[44]!==t[1].value||e[45]!==o?(g=t[1].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[1].value?"text-foreground":"text-muted-foreground"),children:t[1].label}),e[43]=t[1].label,e[44]=t[1].value,e[45]=o,e[46]=g):g=e[46];let h;e[47]!==x||e[48]!==p||e[49]!==v||e[50]!==g?(h=i.jsxs("button",{ref:H,type:"button",onClick:x,className:p,children:[v,g]}),e[47]=x,e[48]=p,e[49]=v,e[50]=g,e[51]=h):h=e[51];const q=w?"h-12":s.button;let y;e[52]!==q?(y=n("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",q),e[52]=q,e[53]=y):y=e[53];const A=`${N.left}px`,B=`${N.width}px`;let j;e[54]!==N.opacity||e[55]!==A||e[56]!==B?(j={left:A,width:B,opacity:N.opacity},e[54]=N.opacity,e[55]=A,e[56]=B,e[57]=j):j=e[57];let z;e[58]!==y||e[59]!==j?(z=i.jsx("div",{className:y,style:j}),e[58]=y,e[59]=j,e[60]=z):z=e[60];let k;return e[61]!==m||e[62]!==h||e[63]!==z||e[64]!==a?(k=i.jsxs("div",{className:a,children:[m,h,z]}),e[61]=m,e[62]=h,e[63]=z,e[64]=a,e[65]=k):k=e[65],k}export{oe as V};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as N,u as w,d as q,b as G,j as t,O as B,c as L,aD as Q,m as J,K as W,t as A}from"./index-p3omciU2.js";import{a as Z,u as V,e as Y}from"./constants-DisK0xae.js";import{C as X}from"./collection-tab-BcJoa4qY.js";import{g as ee,h as te}from"./use-connection-DkSSfi9a.js";import{B as I}from"./button-SrN4bZ1L.js";import{E as R}from"./empty-state-DUeMScV0.js";import{E as ne}from"./error-boundary-CgOqOmL9.js";import{P as x}from"./index-C4EDt4lI.js";import{B as F,a as M,b as z,c as T}from"./breadcrumb-Btg1z4US.js";import{a as se,b as ie}from"./use-binding-BdZ1UVgx.js";import{i as oe}from"./AlertTriangle-DiiOmxZ5.js";import{i as le}from"./Loading01-5Os1EBQC.js";import{s as re}from"./RefreshCcw01-BU6Us9RR.js";import{u as ae}from"./useMutation-GHxEJTN4.js";import{e as ce}from"./Dataflow03-YIKw6rhG.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-ByW-kXsd.js";import"./dropdown-menu-CvPfeATW.js";import"./Check-IyJXmB3D.js";import"./ChevronRight-CQzN9ZtD.js";import"./ArrowDown-Dq_ix_a5.js";import"./ArrowUp-CP0dzs2U.js";import"./Grid01-BfcTdCmK.js";import"./List-DHYjADtQ.js";import"./tooltip-BbsUVNzK.js";import"./index-BQJHl8k7.js";import"./view-mode-toggle-BeStXEmg.js";import"./table-CQcuIfNu.js";import"./collection-search-B9NZ4RH6.js";import"./SearchMd-C4hV7R8V.js";import"./input-C19rUyj9.js";import"./card-qnGcUCM7.js";import"./integration-icon-CMj9-FPS.js";import"./Container-BgkRftdL.js";import"./Copy01-B7sbyU73.js";import"./DotsVertical-BPB7nTxW.js";import"./Edit01-BpchkiZj.js";import"./Eye-CF7Jsi4h.js";import"./Trash01-DA9Iy0yG.js";import"./empty-state-B_zGNEf7.js";import"./Inbox01-uvAm2NdJ.js";import"./use-list-state-DpzviSdT.js";import"./avatar-DvchIe54.js";import"./useQuery-KFMXc5Td.js";import"./use-view-mode-DDLmSRVK.js";import"./use-mobile-CjVgJBva.js";import"./constants-XXbgLKEI.js";import"./alert-dialog-BwY-RhAj.js";import"./Plus-BZOdPpEn.js";import"./layout-B39Q-9q3.js";import"./X-gSzwTkxQ.js";import"./binder-DYtUzpSy.js";const D=({size:n=24,color:e="currentColor",...i})=>N.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},N.createElement("path",{d:"m9.395 19.371.585 1.315a2.212 2.212 0 0 0 4.044 0l.584-1.315a2.426 2.426 0 0 1 2.47-1.423l1.43.152a2.212 2.212 0 0 0 2.023-3.502l-.847-1.164a2.428 2.428 0 0 1-.46-1.434c0-.513.163-1.014.464-1.429l.847-1.163a2.211 2.211 0 0 0-2.022-3.502l-1.43.152a2.433 2.433 0 0 1-1.47-.312 2.426 2.426 0 0 1-1-1.117l-.589-1.315a2.212 2.212 0 0 0-4.044 0L9.395 4.63c-.207.468-.557.86-1 1.117-.445.256-.96.365-1.47.312l-1.434-.152a2.212 2.212 0 0 0-2.023 3.502l.847 1.163a2.43 2.43 0 0 1 0 2.858l-.847 1.163a2.21 2.21 0 0 0 .786 3.273c.382.195.811.274 1.237.23l1.43-.153a2.434 2.434 0 0 1 2.474 1.43Z"}),N.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));D.displayName="Settings02";function me({title:n,description:e,wellKnownMcp:i,imageSrc:a,onConnected:o}){const c=ee(),{org:{slug:s}}=w(),{data:r}=q.useSession(),m=G(),[d,p]=N.useState(!1),l=async()=>{if(!(!i||!r?.user?.id)){p(!0);try{const f=await c.create.mutateAsync(i);o?.(f.id),m({to:"/$org/$project/mcps/$connectionId",params:{org:s,project:B,connectionId:f.id}})}finally{p(!1)}}},u=()=>{m({to:"/$org/$project/mcps",params:{org:s,project:B},search:{action:"create"}})};return t.jsx(R,{image:a?t.jsx("img",{src:a,alt:n,width:336,height:320,className:"max-w-full h-auto"}):null,title:n,description:e,actions:t.jsxs(t.Fragment,{children:[t.jsxs(I,{variant:"outline",onClick:l,disabled:d||!i,children:[i?.icon&&t.jsx("img",{src:i.icon,alt:"",className:"size-4"}),d?"Installing...":`Install ${i?.title||"MCP"}`]}),t.jsx(I,{variant:"outline",onClick:u,children:"Custom Connection"})]})})}function de(n){const e=L.c(35),{bindingName:i,collectionName:a,title:o,emptyState:c,wellKnownMcp:s}=n,{org:r}=w(),m=te();let d;e[0]!==m||e[1]!==i?(d={connections:m,binding:i},e[0]=m,e[1]=i,e[2]=d):d=e[2];const l=se(d)[0],u=ie(l);let f;if(e[3]!==a||e[4]!==u){let g;e[6]!==a?(g=$=>$.name.toLowerCase()===a.toLowerCase(),e[6]=a,e[7]=g):g=e[7],f=u.find(g),e[3]=a,e[4]=u,e[5]=f}else f=e[5];const S=f,[U,H]=N.useState(null),_=l&&S&&(l.id||U);let h;e[8]!==o?(h=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(M,{children:t.jsx(z,{children:t.jsx(T,{children:o})})})})})}),e[8]=o,e[9]=h):h=e[9];let j;e[10]!==l||e[11]!==r||e[12]!==o?(j=g=>{const{error:$,resetError:K}=g;return 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(oe,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsxs("h3",{className:"text-lg font-medium",children:["Failed to load ",o.toLowerCase()]}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:$?.message||"Unable to connect to the server. Please check that it is running and accessible."})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs(I,{variant:"outline",onClick:K,children:[t.jsx(re,{className:"size-4"}),"Try again"]}),l&&t.jsx(I,{variant:"outline",asChild:!0,children:t.jsxs(Q,{to:"/$org/$project/mcps/$connectionId",params:{org:r.slug,project:B,connectionId:l.id},search:{tab:"settings"},children:[t.jsx(D,{className:"size-4"}),"Connection Settings"]})})]})]})},e[10]=l,e[11]=r,e[12]=o,e[13]=j):j=e[13];let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),e[14]=k):k=e[14];let b;e[15]!==o?(b=o.toLowerCase(),e[15]=o,e[16]=b):b=e[16];let C;e[17]!==b?(C=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[k,t.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",b,"..."]})]}),e[17]=b,e[18]=C):C=e[18];let y;e[19]!==S||e[20]!==l||e[21]!==c||e[22]!==r||e[23]!==_||e[24]!==s?(y=_?t.jsx(X,{connectionId:l.id,org:r.slug,activeCollection:S}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(me,{title:c.title,description:c.description,wellKnownMcp:s,imageSrc:c.imageSrc,onConnected:g=>{H(g)}})}),e[19]=S,e[20]=l,e[21]=c,e[22]=r,e[23]=_,e[24]=s,e[25]=y):y=e[25];let P;e[26]!==C||e[27]!==y?(P=t.jsx(N.Suspense,{fallback:C,children:y}),e[26]=C,e[27]=y,e[28]=P):P=e[28];let E;e[29]!==j||e[30]!==P?(E=t.jsx(x.Content,{children:t.jsx(ne,{fallback:j,children:P})}),e[29]=j,e[30]=P,e[31]=E):E=e[31];let v;return e[32]!==E||e[33]!==h?(v=t.jsxs(x,{children:[h,E]}),e[32]=E,e[33]=h,e[34]=v):v=e[34],v}function ue(){const n=L.c(12),{org:e,project:i}=w(),a=J();let o;n[0]!==e.id?(o={connectionId:Z,orgId:e.id},n[0]=e.id,n[1]=o):o=n[1];const c=V(o);let s;n[2]!==c||n[3]!==i?(s=async p=>{const l=i.enabledPlugins??[];if(l.includes(p))return;const u=[...l,p],f=await c.callTool({name:"PROJECT_UPDATE",arguments:{projectId:i.id,enabledPlugins:u}});return f.structuredContent??f},n[2]=c,n[3]=i,n[4]=s):s=n[4];let r;n[5]!==e.id||n[6]!==i||n[7]!==a?(r=()=>{a.invalidateQueries({queryKey:W.project(e.id,i.slug)}),a.invalidateQueries({queryKey:W.projects(e.id)})},n[5]=e.id,n[6]=i,n[7]=a,n[8]=r):r=n[8];let m;return n[9]!==s||n[10]!==r?(m={mutationFn:s,onSuccess:r,onError:pe},n[9]=s,n[10]=r,n[11]=m):m=n[11],ae(m)}function pe(n){A.error("Failed to enable plugin: "+(n instanceof Error?n.message:"Unknown error"))}function fe(n){const e=L.c(12),{pluginId:i,title:a,description:o,icon:c}=n,s=ue();let r;e[0]!==s||e[1]!==i?(r=async()=>{try{await s.mutateAsync(i),A.success("Plugin enabled!")}catch{}},e[0]=s,e[1]=i,e[2]=r):r=e[2];const m=r,d=c??null,p=s.isPending?"Enabling…":"Enable plugin";let l;e[3]!==s.isPending||e[4]!==m||e[5]!==p?(l=t.jsx(I,{onClick:m,disabled:s.isPending,children:p}),e[3]=s.isPending,e[4]=m,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==o||e[8]!==d||e[9]!==l||e[10]!==a?(u=t.jsx(R,{image:d,title:a,description:o,actions:l}),e[7]=o,e[8]=d,e[9]=l,e[10]=a,e[11]=u):u=e[11],u}const O="workflows";function pt(){const n=L.c(3),{project:e}=w();if(!(e.enabledPlugins??[]).includes(O)){let c;n[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(M,{children:t.jsx(z,{children:t.jsx(T,{children:"Workflows"})})})})})}),n[0]=c):c=n[0];let s;return n[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs(x,{children:[c,t.jsx(x.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(fe,{pluginId:O,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:t.jsx("div",{className:"bg-muted p-4 rounded-full",children:t.jsx(ce,{className:"size-8 text-muted-foreground"})})})})})]}),n[1]=s):s=n[1],s}let o;return n[2]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(de,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Run durable MCP tool calls in background."},wellKnownMcp:Y()}),n[2]=o):o=n[2],o}export{pt as default};
|