@decocms/mesh 2.130.1 → 2.131.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-Y6iSJK0t.js → AlertCircle-DMi123Hf.js} +1 -1
- package/dist/client/assets/{AlertOctagon-r7aH80QB.js → AlertOctagon-CCKH4Uc0.js} +1 -1
- package/dist/client/assets/AlignLeft-QRMuLxyY.js +1 -0
- package/dist/client/assets/{ArrowDown-DPy5cnDQ.js → ArrowDown-Dm6K3M_w.js} +1 -1
- package/dist/client/assets/{ArrowLeft-p4dfchJF.js → ArrowLeft-C1YvpVtK.js} +1 -1
- package/dist/client/assets/{ArrowUp-Dx6U6WtF.js → ArrowUp-DGKREoz7.js} +1 -1
- package/dist/client/assets/{Check-BIaai9j0.js → Check-DbjhVroq.js} +1 -1
- package/dist/client/assets/{CheckCircle-DvhMgeYT.js → CheckCircle-zSYJyE2o.js} +1 -1
- package/dist/client/assets/{CheckDone01-kUo2KMa3.js → CheckDone01-DDiaEWe6.js} +1 -1
- package/dist/client/assets/{CheckVerified02-DfOayhlO.js → CheckVerified02-C2ByNW2Z.js} +1 -1
- package/dist/client/assets/{ChevronDown-Dyskz-ZD.js → ChevronDown-BfnyO-f-.js} +1 -1
- package/dist/client/assets/{ChevronRight-D6p6jiry.js → ChevronRight-LHJ8rwy-.js} +1 -1
- package/dist/client/assets/{Clock-Dymou738.js → Clock-6CL36KIE.js} +1 -1
- package/dist/client/assets/{Code01-BYnTXqsh.js → Code01-CYvfolYO.js} +1 -1
- package/dist/client/assets/{Container-DBGOFJUc.js → Container-ry4Xw9xr.js} +1 -1
- package/dist/client/assets/{Copy01-CPaHCgqg.js → Copy01-D-8l_DMV.js} +1 -1
- package/dist/client/assets/{Dataflow03-D8kdCLb1.js → Dataflow03-DQXIoZvf.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-Ra63dU8X.js → DotsHorizontal-C9uL-hbM.js} +1 -1
- package/dist/client/assets/{DotsVertical-DcLEsGDj.js → DotsVertical-k4TBK1r6.js} +1 -1
- package/dist/client/assets/{Download01-BP0Ze81Q.js → Download01-CgfyUwU5.js} +1 -1
- package/dist/client/assets/{Edit01-BEBZ-Ht5.js → Edit01-AKDBiUSO.js} +1 -1
- package/dist/client/assets/{Eye-VtlrDhJf.js → Eye-gghEeRfr.js} +1 -1
- package/dist/client/assets/{File02-Dcc2k6VI.js → File02-CEjpsnYD.js} +1 -1
- package/dist/client/assets/{File06-DCHaBaad.js → File06-UqhuGICV.js} +1 -1
- package/dist/client/assets/{FilterLines-D64nKG0E.js → FilterLines-B8t_9-Z3.js} +1 -1
- package/dist/client/assets/{Globe01-Rd2g694_.js → Globe01-Bl6eyakG.js} +1 -1
- package/dist/client/assets/{Globe02-nOidPs01.js → Globe02-Cxhnprjc.js} +1 -1
- package/dist/client/assets/{Grid01-C8gF-dWK.js → Grid01-C539gpzb.js} +1 -1
- package/dist/client/assets/{Hash02-fd4i0k8G.js → Hash02-4mnfA3dI.js} +1 -1
- package/dist/client/assets/{Home02-ABQZ6xOx.js → Home02-tLj3R-tD.js} +1 -1
- package/dist/client/assets/{Image01-BrzUQQ9K.js → Image01-6PD7bEds.js} +1 -1
- package/dist/client/assets/{Inbox01-DK0JkUYE.js → Inbox01-B5Fc7oRA.js} +1 -1
- package/dist/client/assets/{InfoCircle-DO1owwAA.js → InfoCircle-SnyWDres.js} +1 -1
- package/dist/client/assets/{Key01-bHmq-6W2.js → Key01-Dpc_Suzw.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DyOgk9O3.js → LinkExternal01-CbLsiRMn.js} +1 -1
- package/dist/client/assets/{List-mX8yEKmx.js → List-C14SKrVB.js} +1 -1
- package/dist/client/assets/{Loading01-Jv8Mbea8.js → Loading01-iCpUJopy.js} +1 -1
- package/dist/client/assets/{Lock01-DPx3YF5B.js → Lock01-CrXE51xJ.js} +1 -1
- package/dist/client/assets/{Play-DciA3rqD.js → Play-BtkaH_yf.js} +1 -1
- package/dist/client/assets/{Plus-Cecv4wEo.js → Plus-Cy7J9WUI.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Busgf2jQ.js → RefreshCcw01-ClpY_BRV.js} +1 -1
- package/dist/client/assets/{Rows03-CBXDKtLW.js → Rows03-DxEriXmU.js} +1 -1
- package/dist/client/assets/{Save01-P2clZJAi.js → Save01-wZYw2zxY.js} +1 -1
- package/dist/client/assets/{SearchMd-CS2uMIPl.js → SearchMd-BuUjumBL.js} +1 -1
- package/dist/client/assets/{Settings01-BAgxhvm4.js → Settings01-CK_34JoM.js} +1 -1
- package/dist/client/assets/{Shield01-Dw8oloiN.js → Shield01-JSaU7Wxh.js} +1 -1
- package/dist/client/assets/{Terminal-d72o721Q.js → Terminal-BKcGepp-.js} +1 -1
- package/dist/client/assets/{Trash01-CKATI1mI.js → Trash01-CT5g4zaW.js} +1 -1
- package/dist/client/assets/{Upload01-jmiBld-4.js → Upload01-DHrINUTF.js} +1 -1
- package/dist/client/assets/{Users03-CLx_Qxdb.js → Users03-DNCG18us.js} +1 -1
- package/dist/client/assets/{X-RC7YVNJU.js → X-D4P057xM.js} +1 -1
- package/dist/client/assets/{XCircle-BgJPZWR5.js → XCircle-C8g3hIQt.js} +1 -1
- package/dist/client/assets/{XClose-D-4ELBrc.js → XClose-Crqhw3J7.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-Dac4pEFh.js → agent-connections-preview-C213VWnS.js} +1 -1
- package/dist/client/assets/agent-detail-B9z3tpd6.js +2 -0
- package/dist/client/assets/{agents-vcyOPs3U.js → agents-DMIkV4h2.js} +1 -1
- package/dist/client/assets/{alert-dialog-CdqWA8wc.js → alert-dialog-31vAifTK.js} +2 -2
- package/dist/client/assets/{auth-catchall-B-_Zqliv.js → auth-catchall-BtHERDJi.js} +1 -1
- package/dist/client/assets/{avatar-tLGNC2ok.js → avatar-BsiGNuUz.js} +1 -1
- package/dist/client/assets/{badge-0EzsH3AB.js → badge-DJljGfSq.js} +1 -1
- package/dist/client/assets/{binder-w9dF9fSa.js → binder-D8Bh9Fm3.js} +1 -1
- package/dist/client/assets/{breadcrumb-BcJj21EL.js → breadcrumb-iMcSeqrc.js} +1 -1
- package/dist/client/assets/{card-c-CJHmFC.js → card-CELBcYXV.js} +1 -1
- package/dist/client/assets/{chart-PoFYShLf.js → chart-B4Mmg1Q-.js} +1 -1
- package/dist/client/assets/{checkbox-kw1ENx9l.js → checkbox-QWODOgoz.js} +1 -1
- package/dist/client/assets/{circle-alert-orNW2INv.js → circle-alert-B6D-TDq-.js} +1 -1
- package/dist/client/assets/{collection-detail-DcWT7KrG.js → collection-detail-CbSjrCNd.js} +3 -3
- package/dist/client/assets/{collection-search-DeB-znan.js → collection-search-DzqDMmsG.js} +1 -1
- package/dist/client/assets/{collection-tab-DnFTZr-h.js → collection-tab-DUB7egyl.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BkrnGVuo.js → collection-table-wrapper-DBwx2gIx.js} +1 -1
- package/dist/client/assets/{collection-tabs-CI_dPETO.js → collection-tabs-BqTpXxpM.js} +1 -1
- package/dist/client/assets/{command-CtwsQYlg.js → command-Cnc164rC.js} +1 -1
- package/dist/client/assets/{connect-Cjj5OaBk.js → connect-DlrcB0Oq.js} +1 -1
- package/dist/client/assets/{connection-card-DmcuYZ2d.js → connection-card-BANozpxC.js} +1 -1
- package/dist/client/assets/connection-detail-DaG6QB_F.js +1 -0
- package/dist/client/assets/{connections-CQQbEDkG.js → connections-BvmeyXXC.js} +1 -1
- package/dist/client/assets/{constants-DyBxaLKI.js → constants-BI1zDvDn.js} +1 -1
- package/dist/client/assets/constants-CkBtayzt.js +1 -0
- package/dist/client/assets/context-zCxbj6li.js +23 -0
- package/dist/client/assets/{create-organization-dialog-BolmWoUA.js → create-organization-dialog-Dpd1ywrN.js} +1 -1
- package/dist/client/assets/{create-project-dialog-MbK1spLU.js → create-project-dialog-DChymebi.js} +1 -1
- package/dist/client/assets/{dialog-L8ZakXii.js → dialog-Do03H7yN.js} +1 -1
- package/dist/client/assets/{dropdown-menu-VTiqKHN9.js → dropdown-menu-Ba58pGV8.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-CMgyIw65.js → dynamic-plugin-layout-CHonNfvK.js} +1 -1
- package/dist/client/assets/{editable-thread-title-CPogfRoD.js → editable-thread-title-CVmwgHHg.js} +1 -1
- package/dist/client/assets/{empty-state-CevFdaoX.js → empty-state-1scxmZs8.js} +1 -1
- package/dist/client/assets/{env-vars-editor-CZ9xwqbP.js → env-vars-editor-CCegTaip.js} +1 -1
- package/dist/client/assets/{extract-connection-data-bPHhUn8L.js → extract-connection-data-BKQXvltb.js} +1 -1
- package/dist/client/assets/{file-browser-BBOKW0fZ.js → file-browser-EjfRK6mg.js} +2 -2
- package/dist/client/assets/{form-p8UY3zWX.js → form-dXW_I1ph.js} +1 -1
- package/dist/client/assets/{grid-view-CBiwYQ_M.js → grid-view-MJdYyMFP.js} +1 -1
- package/dist/client/assets/{home-gtPjmaoD.js → home-ByufY4Sy.js} +1 -1
- package/dist/client/assets/{index-BymQJSqf.js → index-6d87pWdr.js} +1 -1
- package/dist/client/assets/{index-BPWcS_Kf.js → index-B5qImc8v.js} +1 -1
- package/dist/client/assets/{index-BRPNbM-s.js → index-BNpuO_G1.js} +1 -1
- package/dist/client/assets/{index-G8oxxr2G.js → index-CEqBoYmq.js} +1 -1
- package/dist/client/assets/index-DgSgbJcy.js +1 -0
- package/dist/client/assets/{index-CmPWq7Ch.js → index-EJ96grwY.js} +1 -1
- package/dist/client/assets/{index-0HoOnen3.js → index-SQyrFbfm.js} +3 -3
- package/dist/client/assets/{index-CWyCvGNo.js → index-ficQ3eqW.js} +1 -1
- package/dist/client/assets/{index-Cz17zD6m.js → index-wWGDtNCU.js} +1 -1
- package/dist/client/assets/index-yxYGVp8v.css +1 -0
- package/dist/client/assets/{infiniteQueryObserver-Be7iTEXe.js → infiniteQueryObserver-VRNdHjKN.js} +1 -1
- package/dist/client/assets/{input-BtUicd3Q.js → input-C5Rjbbp-.js} +1 -1
- package/dist/client/assets/{integration-icon-5VjL1GgL.js → integration-icon-uSS8hUch.js} +1 -1
- package/dist/client/assets/{label-D6atofYo.js → label-cKQmhewm.js} +1 -1
- package/dist/client/assets/{layout-Cgu_nW-7.js → layout-8lg7tiiD.js} +1 -1
- package/dist/client/assets/{localstorage-keys-BoChS3hJ.js → localstorage-keys-seNkjiQl.js} +1 -1
- package/dist/client/assets/{login-BJHT5HcO.js → login-V1gS5lDI.js} +1 -1
- package/dist/client/assets/{markdown-C4hTkq3E.js → markdown-D8FrWPff.js} +1 -1
- package/dist/client/assets/{mcp-oauth-D5R57Lko.js → mcp-oauth-C6xkwIb-.js} +1 -1
- package/dist/client/assets/{mcp-server-card-BiIhdNix.js → mcp-server-card-Ok_qzLQz.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-BhlbPBsp.js → mcp-server-detail-BtBTCD2n.js} +2 -2
- package/dist/client/assets/{members-OikP95XQ.js → members-BldiVXed.js} +1 -1
- package/dist/client/assets/monitoring-dashboard-edit-CXmCF6gC.js +1 -0
- package/dist/client/assets/{monitoring-dashboard-view-DRykeaHO.js → monitoring-dashboard-view-DePoovSq.js} +1 -1
- package/dist/client/assets/{monitoring-DapgIfZL.js → monitoring-dvmC8TGS.js} +1 -1
- package/dist/client/assets/{oauth-callback-DZIR2PjB.js → oauth-callback-Dn1LI5IG.js} +1 -1
- package/dist/client/assets/page-BYmiWKDq.js +1 -0
- package/dist/client/assets/{page-PH6ZVWlA.js → page-Dm5atWis.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-kz2uan6n.js → plugin-empty-state-CKIjx-eV.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-y1tYhlY3.js → plugin-empty-state-ohIMZv0D.js} +1 -1
- package/dist/client/assets/{plugin-header-nmFTSFoR.js → plugin-header-BS18HAyY.js} +1 -1
- package/dist/client/assets/{plugin-header-BJbVVCoY.js → plugin-header-HYeNHyTe.js} +1 -1
- package/dist/client/assets/popover-z5frSt2L.js +1 -0
- package/dist/client/assets/{project-layout-BqSVP5TE.js → project-layout-BxTuIFi3.js} +1 -1
- package/dist/client/assets/{projects-list-3Z4u-J4l.js → projects-list-C9KK2i4R.js} +1 -1
- package/dist/client/assets/{ranking-layout-DDk0F0da.js → ranking-layout-Bm0LpG6g.js} +1 -1
- package/dist/client/assets/{readme-viewer-BFDmw5ln.js → readme-viewer-CZkPjhWz.js} +1 -1
- package/dist/client/assets/{registry-layout-tBKkcjtf.js → registry-layout-LCOaqMI2.js} +1 -1
- package/dist/client/assets/{registry-utils-BPK3KAEQ.js → registry-utils-B-2fbh-Z.js} +1 -1
- package/dist/client/assets/{reports-layout-C1Rj5mWL.js → reports-layout-Bzgcy1UJ.js} +1 -1
- package/dist/client/assets/{reset-password-CoNNt1yx.js → reset-password-CHpr9oem.js} +1 -1
- package/dist/client/assets/{resizable-CpFkObl0.js → resizable-BYfQHaK6.js} +1 -1
- package/dist/client/assets/{save-actions-CNp28sAN.js → save-actions-TgeLFbpe.js} +1 -1
- package/dist/client/assets/{scroll-area-Bhoi0n_B.js → scroll-area-5Fho4sky.js} +4 -4
- package/dist/client/assets/{select-DOO2sOs0.js → select-CizyN8VQ.js} +1 -1
- package/dist/client/assets/shell-layout-Bpq7Dlhv.js +3 -0
- package/dist/client/assets/{skeleton-CR236scd.js → skeleton-C7JMree5.js} +1 -1
- package/dist/client/assets/{spinner-DzG2AImj.js → spinner-YKb1hPOQ.js} +1 -1
- package/dist/client/assets/{store-invite-CeIOMnWs.js → store-invite-D7ZEG5RE.js} +1 -1
- package/dist/client/assets/{switch-UjGh-56-.js → switch-CBcw97W5.js} +1 -1
- package/dist/client/assets/{table-CK5AQN01.js → table-CXKu3mUr.js} +1 -1
- package/dist/client/assets/{tabs-ZEd61iZd.js → tabs-Dd98njLP.js} +1 -1
- package/dist/client/assets/tasks-BAG_wO4h.js +1 -0
- package/dist/client/assets/{textarea-Ca7XZUqN.js → textarea-P1Iq_yoU.js} +1 -1
- package/dist/client/assets/{time-range-picker-GPYqbq-o.js → time-range-picker-hvQrVHK9.js} +1 -1
- package/dist/client/assets/{toggle-group-BgEBi3gu.js → toggle-group-Cbof6NG4.js} +1 -1
- package/dist/client/assets/{tools-list-DJeaOzT_.js → tools-list-maCu2q3m.js} +1 -1
- package/dist/client/assets/{tooltip-BWlQ9UL9.js → tooltip-B-cok5ra.js} +1 -1
- package/dist/client/assets/{topbar-portal-CMlW5IwY.js → topbar-portal-B3nTFI9t.js} +1 -1
- package/dist/client/assets/{types-BPCR06YW.js → types-B4OO-WrM.js} +1 -1
- package/dist/client/assets/{use-binding-CcrgjIcJ.js → use-binding-8GNaEhUS.js} +1 -1
- package/dist/client/assets/{use-connection-B6TFiTxb.js → use-connection-CM6laORR.js} +1 -1
- package/dist/client/assets/{use-copy-DfInz4oY.js → use-copy-B44PaF7i.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-pELq4UZ_.js → use-create-virtual-mcp-CfjGvHYs.js} +1 -1
- package/dist/client/assets/{use-deco-chat-open-BmqwFIXp.js → use-deco-chat-open-3TeoXCmL.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-BCXPqkOi.js → use-install-from-registry-DcOjSwGG.js} +1 -1
- package/dist/client/assets/{use-list-state-Bpa4-xTU.js → use-list-state-DV75afxy.js} +1 -1
- package/dist/client/assets/{use-llm-7gZpMpM0.js → use-llm-CVhayDor.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BIRErCHu.js → use-mcp-prompts-ujC0seLu.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BjSYCbSh.js → use-mcp-tools-BLFUT4fz.js} +1 -1
- package/dist/client/assets/{use-members-BUeDkAPW.js → use-members-mFh2K6yp.js} +1 -1
- package/dist/client/assets/{use-mobile-B9jSIPRg.js → use-mobile-DdeKUhAR.js} +1 -1
- package/dist/client/assets/{use-project-B6kYJzwY.js → use-project-0ih1xISt.js} +1 -1
- package/dist/client/assets/{use-settings-modal-Bi52YF5w.js → use-settings-modal-CpLTH5Bd.js} +1 -1
- package/dist/client/assets/{use-view-mode-CHcflreW.js → use-view-mode-DCV45z7u.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C4mcpRPm.js → use-virtual-mcp-BvS32srI.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D9qlp_R9.js +1 -0
- package/dist/client/assets/{useMutation-C13VGcqo.js → useMutation-DW2RCqOf.js} +1 -1
- package/dist/client/assets/useQuery-Dn_bA-JU.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-Dj-vji2c.js +1 -0
- package/dist/client/assets/{workflow-N0cDVEpp.js → workflow-CvVvKDcn.js} +1 -1
- package/dist/client/index.html +2 -2
- package/package.json +1 -1
- package/dist/client/assets/Tool01-DkfecWlX.js +0 -1
- package/dist/client/assets/agent-detail-D5a7TiOz.js +0 -2
- package/dist/client/assets/connection-detail-DOePEdlc.js +0 -1
- package/dist/client/assets/constants-DK6m0rOQ.js +0 -1
- package/dist/client/assets/context-GOV4Tst1.js +0 -23
- package/dist/client/assets/index-BcDQ75Aq.css +0 -1
- package/dist/client/assets/index-CqCzS9v2.js +0 -1
- package/dist/client/assets/monitoring-dashboard-edit-Yzekapph.js +0 -1
- package/dist/client/assets/page-iyMzbA2I.js +0 -1
- package/dist/client/assets/popover-P8B4MdX3.js +0 -1
- package/dist/client/assets/shell-layout-CSB6jzfL.js +0 -3
- package/dist/client/assets/tasks-C15WiR9-.js +0 -1
- package/dist/client/assets/useInfiniteQuery-78QQc26G.js +0 -1
- package/dist/client/assets/useQuery-CI6Jq2Tz.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BfZMgfKc.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as b,c as y,j as s,v as U,E as ee,u as te,d as se,B as W,t as ie}from"./index-0HoOnen3.js";import{V as le,C as j}from"./index-BPWcS_Kf.js";import{E as re,i as oe,T as ne,t as ae}from"./editable-thread-title-CPogfRoD.js";import{u as G,b as ce}from"./context-GOV4Tst1.js";import{I as J}from"./integration-icon-5VjL1GgL.js";import{P as me,a as de,b as fe}from"./popover-P8B4MdX3.js";import{S as K}from"./skeleton-CR236scd.js";import{i as pe,d as ue}from"./constants-DyBxaLKI.js";import{b as he}from"./use-virtual-mcp-C4mcpRPm.js";import{i as xe}from"./ChevronRight-D6p6jiry.js";import{t as Q}from"./Users03-CLx_Qxdb.js";import{P as V}from"./index-G8oxxr2G.js";import{a as Z,b as D,T as q}from"./tooltip-BWlQ9UL9.js";import{s as je}from"./Plus-Cecv4wEo.js";import"./spinner-DzG2AImj.js";import"./use-mcp-prompts-BIRErCHu.js";import"./useQuery-CI6Jq2Tz.js";import"./dialog-L8ZakXii.js";import"./X-RC7YVNJU.js";import"./form-p8UY3zWX.js";import"./label-D6atofYo.js";import"./input-BtUicd3Q.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-Dx6U6WtF.js";import"./ChevronDown-Dyskz-ZD.js";import"./Edit01-BEBZ-Ht5.js";import"./XCircle-BgJPZWR5.js";import"./AlertCircle-Y6iSJK0t.js";import"./select-DOO2sOs0.js";import"./index-BymQJSqf.js";import"./Check-BIaai9j0.js";import"./ArrowLeft-p4dfchJF.js";import"./use-copy-DfInz4oY.js";import"./tabs-ZEd61iZd.js";import"./badge-0EzsH3AB.js";import"./use-deco-chat-open-BmqwFIXp.js";import"./localstorage-keys-BoChS3hJ.js";import"./useMutation-C13VGcqo.js";import"./Code01-BYnTXqsh.js";import"./SearchMd-CS2uMIPl.js";import"./use-create-virtual-mcp-pELq4UZ_.js";import"./Copy01-CPaHCgqg.js";import"./marked.esm-BaswSlok.js";import"./markdown-C4hTkq3E.js";import"./types-BPCR06YW.js";import"./Eye-VtlrDhJf.js";import"./Globe02-nOidPs01.js";import"./XClose-D-4ELBrc.js";import"./collection-search-DeB-znan.js";import"./Loading01-Jv8Mbea8.js";import"./deco-constants-BmtTfZbQ.js";import"./use-connection-B6TFiTxb.js";import"./generate-id-Dyweu44Y.js";import"./Clock-Dymou738.js";import"./Trash01-CKATI1mI.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-7gZpMpM0.js";import"./use-binding-CcrgjIcJ.js";import"./binder-w9dF9fSa.js";import"./File06-DCHaBaad.js";import"./Grid01-C8gF-dWK.js";import"./Image01-BrzUQQ9K.js";import"./RefreshCcw01-Busgf2jQ.js";import"./Settings01-BAgxhvm4.js";import"./useSuspenseInfiniteQuery-BfZMgfKc.js";import"./infiniteQueryObserver-Be7iTEXe.js";import"./Container-DBGOFJUc.js";import"./use-mobile-B9jSIPRg.js";const X=({size:e=24,color:t="currentColor",...i})=>b.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},b.createElement("path",{d:"m8.59 13.51 6.83 3.98m-.01-10.98-6.82 3.98M21 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM9 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm12 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}));X.displayName="Share07";function ge(e){const t=y.c(15),{agent:i}=e,{setVirtualMcpId:u}=G();let o;t[0]!==i.id||t[1]!==u?(o=()=>{u(i.id)},t[0]=i.id,t[1]=u,t[2]=o):o=t[2];const l=o;let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=U("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors hover:bg-accent/30","cursor-pointer","self-stretch"),t[3]=m):m=t[3];const d=`Select agent ${i.title}`;let r;t[4]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Q,{size:20}),t[4]=r):r=t[4];let c;t[5]!==i.icon||t[6]!==i.title?(c=s.jsx(J,{icon:i.icon,name:i.title,fallbackIcon:r}),t[5]=i.icon,t[6]=i.title,t[7]=c):c=t[7];let a;t[8]!==i.title?(a=s.jsx("p",{className:"text-sm text-foreground text-center leading-tight line-clamp-2",children:i.title}),t[8]=i.title,t[9]=a):a=t[9];let n;return t[10]!==l||t[11]!==d||t[12]!==c||t[13]!==a?(n=s.jsxs("button",{type:"button",onClick:l,className:m,"aria-label":d,children:[c,a]}),t[10]=l,t[11]=d,t[12]=c,t[13]=a,t[14]=n):n=t[14],n}function be(e){const t=y.c(14),{virtualMcps:i,selectedVirtualMcpId:u,onVirtualMcpChange:o}=e,[l,m]=b.useState(!1),d=b.useRef(null);let r,c;t[0]!==l?(r=()=>{l&&setTimeout(()=>{d.current?.focus()},0)},c=[l],t[0]=l,t[1]=r,t[2]=c):(r=t[1],c=t[2]),b.useEffect(r,c);let a;t[3]!==o?(a=N=>{o(N),m(!1)},t[3]=o,t[4]=a):a=t[4];const n=a;let f;t[5]===Symbol.for("react.memo_cache_sentinel")?(f=U("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors hover:bg-accent/30","cursor-pointer","self-stretch"),t[5]=f):f=t[5];let p;t[6]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(me,{asChild:!0,children:s.jsxs("button",{type:"button",className:f,"aria-label":"See all agents",children:[s.jsx("div",{className:"size-12 rounded-lg bg-accent flex items-center justify-center shrink-0",children:s.jsx(xe,{size:24,className:"text-foreground"})}),s.jsx("p",{className:"text-sm text-foreground text-center leading-tight",children:"See all"})]})}),t[6]=p):p=t[6];let h;t[7]!==n||t[8]!==u||t[9]!==i?(h=s.jsx(de,{className:"w-[550px] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,children:s.jsx(le,{virtualMcps:i,selectedVirtualMcpId:u,onVirtualMcpChange:n,searchInputRef:d})}),t[7]=n,t[8]=u,t[9]=i,t[10]=h):h=t[10];let g;return t[11]!==l||t[12]!==h?(g=s.jsxs(fe,{open:l,onOpenChange:m,children:[p,h]}),t[11]=l,t[12]=h,t[13]=g):g=t[13],g}function ye(){const e=y.c(20),t=he(),{selectedVirtualMcp:i,setVirtualMcpId:u}=G();let o,l,m,d,r,c;if(e[0]!==t){r=Symbol.for("react.early_return_sentinel");e:{const h=t.filter(ve).slice(0,6);if(h.length===0){r=null;break e}c=t.map(Se),m="w-full max-w-[800px]",e[7]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx("h2",{className:"text-sm font-medium text-muted-foreground mb-4",children:"Recently used agents"}),e[7]=d):d=e[7],o="grid grid-cols-3 sm:grid-cols-4 md:grid-cols-7 gap-2",l=h.map(Ne)}e[0]=t,e[1]=o,e[2]=l,e[3]=m,e[4]=d,e[5]=r,e[6]=c}else o=e[1],l=e[2],m=e[3],d=e[4],r=e[5],c=e[6];if(r!==Symbol.for("react.early_return_sentinel"))return r;const a=i?.id??null;let n;e[8]!==u||e[9]!==a||e[10]!==c?(n=s.jsx(be,{virtualMcps:c,selectedVirtualMcpId:a,onVirtualMcpChange:u}),e[8]=u,e[9]=a,e[10]=c,e[11]=n):n=e[11];let f;e[12]!==o||e[13]!==l||e[14]!==n?(f=s.jsxs("div",{className:o,children:[l,n]}),e[12]=o,e[13]=l,e[14]=n,e[15]=f):f=e[15];let p;return e[16]!==m||e[17]!==d||e[18]!==f?(p=s.jsxs("div",{className:m,children:[d,f]}),e[16]=m,e[17]=d,e[18]=f,e[19]=p):p=e[19],p}function Ne(e){return s.jsx(ge,{agent:e},e.id??"default")}function Se(e){return{id:e.id,title:e.title,description:e.description,icon:e.icon}}function ve(e){return e.id!==null&&!pe(e.id)}function _e(){const e=y.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(K,{className:"h-5 w-40 mb-4"}),e[0]=t):t=e[0];let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs("div",{className:"w-full max-w-[800px]",children:[t,s.jsx("div",{className:"grid grid-cols-3 sm:grid-cols-4 md:grid-cols-7 gap-2",children:Array.from({length:7}).map(Ce)})]}),e[1]=i):i=e[1],i}function Ce(e,t){return s.jsxs("div",{className:"flex flex-col items-center gap-3 p-2 self-stretch",children:[s.jsx(K,{className:"size-6 rounded-md shrink-0"}),s.jsx(K,{className:"h-4 w-full"})]},t)}function we(){const e=y.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(b.Suspense,{fallback:s.jsx(_e,{}),children:s.jsx(ye,{})}),e[0]=t):t=e[0],t}function ke(){const e=y.c(53),{org:t}=te(),{data:i}=se.useSession(),{modelsConnections:u,isChatEmpty:o,activeThreadId:l,createThread:m,switchToThread:d,threads:r,selectedVirtualMcp:c}=ce();let a;if(e[0]!==l||e[1]!==r){let x;e[3]!==l?(x=Y=>Y.id===l,e[3]=l,e[4]=x):x=e[4],a=r.find(x),e[0]=l,e[1]=r,e[2]=a}else a=e[2];const n=a,[f,p]=b.useState(!1);let h;e[5]!==i?.user?.name?(h=i?.user?.name?.split(" ")[0]||"there",e[5]=i?.user?.name,e[6]=h):h=e[6];const g=h;let N;e[7]!==t.id?(N=ue(t.id),e[7]=t.id,e[8]=N):N=e[8];const $=c??N;if(u.length===0){let x;return e[9]!==t?(x=s.jsx("div",{className:"flex flex-col size-full bg-background items-center justify-center",children:s.jsx(j.NoLlmBindingEmptyState,{org:t})}),e[9]=t,e[10]=x):x=e[10],x}let S;e[11]!==n?(S=n?.title&&s.jsx(re,{threadId:n.id,text:n.title,className:"text-sm font-medium text-foreground"}),e[11]=n,e[12]=S):S=e[12];let v;e[13]!==S?(v=s.jsx(V.Header.Left,{className:"gap-2",children:S}),e[13]=S,e[14]=v):v=e[14];let _;e[15]!==m?(_=()=>m(),e[15]=m,e[16]=_):_=e[16];let A;e[17]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(je,{size:16}),e[17]=A):A=e[17];let C;e[18]!==o||e[19]!==_?(C=s.jsx(Z,{asChild:!0,children:s.jsx(W,{type:"button",variant:"outline",size:"icon",className:"size-7 border border-input",onClick:_,disabled:o,"aria-label":"New chat",children:A})}),e[18]=o,e[19]=_,e[20]=C):C=e[20];let H;e[21]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(D,{children:"New chat"}),e[21]=H):H=e[21];let w;e[22]!==C?(w=s.jsxs(q,{children:[C,H]}),e[22]=C,e[23]=w):w=e[23];let L;e[24]===Symbol.for("react.memo_cache_sentinel")?(L=()=>p(!0),e[24]=L):L=e[24];let R;e[25]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsxs(q,{children:[s.jsx(Z,{asChild:!0,children:s.jsx(W,{type:"button",variant:"outline",size:"icon",className:"size-7 border border-input",onClick:L,"aria-label":"Chat history",children:s.jsx(oe,{size:16})})}),s.jsx(D,{children:"Chat history"})]}),e[25]=R):R=e[25];let B;e[26]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(X,{size:16}),e[26]=B):B=e[26];let k;e[27]!==o?(k=s.jsx(Z,{asChild:!0,children:s.jsx(W,{type:"button",variant:"outline",size:"icon",className:"size-7 border border-input",onClick:Te,disabled:o,"aria-label":"Share chat",children:B})}),e[27]=o,e[28]=k):k=e[28];let O;e[29]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(D,{children:"Share chat"}),e[29]=O):O=e[29];let T;e[30]!==k?(T=s.jsxs(q,{children:[k,O]}),e[30]=k,e[31]=T):T=e[31];let M;e[32]!==T||e[33]!==w?(M=s.jsxs(V.Header.Right,{className:"gap-1",children:[w,R,T]}),e[32]=T,e[33]=w,e[34]=M):M=e[34];let z;e[35]!==M||e[36]!==v?(z=s.jsxs(V.Header,{className:"flex-none z-10 bg-background",children:[v,M]}),e[35]=M,e[36]=v,e[37]=z):z=e[37];let I;e[38]!==$||e[39]!==o||e[40]!==g?(I=o?s.jsxs("div",{className:"flex-1 min-h-0 flex flex-col items-center justify-center px-10 pb-32 pt-10",children:[s.jsxs("div",{className:"flex flex-col items-center w-full max-w-[600px]",children:[s.jsx("div",{className:"flex justify-center mb-4",children:s.jsx(J,{icon:$.icon,name:$.title,size:"md",fallbackIcon:s.jsx(Q,{size:20}),className:"size-12 rounded-xl border border-stone-200/60 shadow-sm aspect-square transition-opacity duration-200"})}),s.jsx("div",{className:"text-center mb-8",children:s.jsxs("p",{className:"text-xl font-medium text-foreground",children:["What's on your mind, ",g,"?"]})}),s.jsx("div",{className:"w-full",children:s.jsx(j.Input,{})}),s.jsx(j.IceBreakers,{className:"w-full"})]}),s.jsx("div",{className:"flex flex-col items-center w-full mt-4",children:s.jsx(we,{})})]}):s.jsxs(s.Fragment,{children:[s.jsx(j.Main,{children:s.jsx(j.Messages,{})}),s.jsx(j.Footer,{children:s.jsx(j.Input,{})})]}),e[38]=$,e[39]=o,e[40]=g,e[41]=I):I=e[41];let E;e[42]!==d?(E=async x=>{await d(x),p(!1)},e[42]=d,e[43]=E):E=e[43];let P;e[44]!==l||e[45]!==f||e[46]!==E||e[47]!==r?(P=s.jsx(ne,{open:f,onOpenChange:p,threads:r,activeThreadId:l,onThreadSelect:E}),e[44]=l,e[45]=f,e[46]=E,e[47]=r,e[48]=P):P=e[48];let F;return e[49]!==z||e[50]!==I||e[51]!==P?(F=s.jsxs(j,{children:[z,I,P]}),e[49]=z,e[50]=I,e[51]=P,e[52]=F):F=e[52],F}function Te(){ie.info("Share feature coming soon")}function Me(e){const t=y.c(14),{error:i,onRetry:u}=e,o=i?.message?.includes("401")||i?.message?.toLowerCase().includes("unauthorized");let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs(V.Header,{className:"flex-none",children:[s.jsx(V.Header.Left,{className:"gap-2"}),s.jsx(V.Header.Right,{className:"gap-1"})]}),t[0]=l):l=t[0];let m;t[1]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full mx-auto w-fit",children:s.jsx(ae,{className:"h-6 w-6 text-destructive"})}),t[1]=m):m=t[1];const d=o?"Unable to load models":"Something went wrong";let r;t[2]!==d?(r=s.jsx("h3",{className:"text-lg font-medium",children:d}),t[2]=d,t[3]=r):r=t[3];const c=o?"There was an authentication error while loading the models. This might be due to an expired session or invalid API key.":i?.message||"An unexpected error occurred";let a;t[4]!==c?(a=s.jsx("p",{className:"text-sm text-muted-foreground",children:c}),t[4]=c,t[5]=a):a=t[5];let n;t[6]!==r||t[7]!==a?(n=s.jsxs("div",{className:"space-y-2",children:[r,a]}),t[6]=r,t[7]=a,t[8]=n):n=t[8];let f;t[9]!==u?(f=s.jsx(W,{variant:"outline",onClick:u,children:"Try again"}),t[9]=u,t[10]=f):f=t[10];let p;return t[11]!==n||t[12]!==f?(p=s.jsxs(j,{children:[l,s.jsx("div",{className:"flex-1 flex flex-col items-center justify-center p-6 text-center",children:s.jsxs("div",{className:"max-w-sm space-y-4",children:[m,n,f]})})]}),t[11]=n,t[12]=f,t[13]=p):p=t[13],p}function qt(){const e=y.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ee,{fallback:ze,children:s.jsx(b.Suspense,{fallback:s.jsx(j.Skeleton,{}),children:s.jsx(ke,{})})}),e[0]=t):t=e[0],t}function ze(e){const{error:t,resetError:i}=e;return s.jsx(Me,{error:t,onRetry:i})}export{qt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,G as $,j as c,aK as L,aC as G,I as A,H as _,M as P,aL as j,T as w,aM as H,aN as E,aO as z,aP as K,U,aQ as V,aR as Q,aS as W,aT as Z,aU as q,aV as B,c as R,v as J}from"./index-0HoOnen3.js";var C="Popover",[b]=U(C,[E]),g=E(),[X,d]=b(C),N=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,p=g(e),l=i.useRef(null),[u,h]=i.useState(!1),[x,f]=$({prop:r,defaultProp:n??!1,onChange:s,caller:C});return c.jsx(L,{...p,children:c.jsx(X,{scope:e,contentId:G(),triggerRef:l,open:x,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:a,children:o})})};N.displayName=C;var F="PopoverAnchor",Y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(F,o),s=g(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(a(),()=>p()),[a,p]),c.jsx(j,{...s,...r,ref:e})});Y.displayName=F;var S="PopoverTrigger",y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(S,o),s=g(o),a=A(e,n.triggerRef),p=c.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":k(n.open),...r,ref:a,onClick:P(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:c.jsx(j,{asChild:!0,...s,children:p})});y.displayName=S;var O="PopoverPortal",[ee,oe]=b(O,{forceMount:void 0}),M=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=d(O,e);return c.jsx(ee,{scope:e,forceMount:o,children:c.jsx(w,{present:o||s.open,children:c.jsx(H,{asChild:!0,container:n,children:r})})})};M.displayName=O;var v="PopoverContent",T=i.forwardRef((t,e)=>{const o=oe(v,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=d(v,t.__scopePopover);return c.jsx(w,{present:r||s.open,children:s.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});T.displayName=v;var te=V("PopoverContent.RemoveScroll"),re=i.forwardRef((t,e)=>{const o=d(v,t.__scopePopover),r=i.useRef(null),n=A(e,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return z(a)},[]),c.jsx(K,{as:te,allowPinchZoom:!0,children:c.jsx(D,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:P(t.onPointerDownOutside,a=>{const p=a.detail.originalEvent,l=p.button===0&&p.ctrlKey===!0,u=p.button===2||l;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:P(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=i.forwardRef((t,e)=>{const o=d(v,t.__scopePopover),r=i.useRef(!1),n=i.useRef(!1);return c.jsx(D,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),D=i.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:h,...x}=t,f=d(v,o),m=g(o);return Q(),c.jsx(W,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(Z,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(q,{"data-state":k(f.open),role:"dialog",id:f.contentId,...m,...x,ref:e,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),I="PopoverClose",se=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(I,o);return c.jsx(_.button,{type:"button",...r,ref:e,onClick:P(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=I;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=g(o);return c.jsx(B,{...n,...r,ref:e})});ce.displayName=ae;function k(t){return t?"open":"closed"}var ie=N,pe=y,le=M,ue=T;function fe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(ie,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function ve(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function Pe(t){const e=R.c(12);let o,r,n,s;e[0]!==t?({className:o,align:n,sideOffset:s,...r}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s):(o=e[1],r=e[2],n=e[3],s=e[4]);const a=n===void 0?"center":n,p=s===void 0?4:s;let l;e[5]!==o?(l=J("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg overflow-hidden border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=l):l=e[6];let u;return e[7]!==a||e[8]!==r||e[9]!==p||e[10]!==l?(u=c.jsx(le,{children:c.jsx(ue,{"data-slot":"popover-content",align:a,sideOffset:p,className:l,...r})}),e[7]=a,e[8]=r,e[9]=p,e[10]=l,e[11]=u):u=e[11],u}export{ve as P,Pe as a,fe as b};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{r as T,c as E,j as s,E as Ue,u as fe,v as B,b as Ie,bY as Ce,L as $e,c5 as dt,c6 as mt,O as K,a3 as ut,e as Pe,d as ae,B as Se,t as le,c7 as ft,b9 as pt,m as xt,A as ht,S as Fe,f as gt,h as jt,N as bt,n as yt,K as Nt,aH as He,P as vt}from"./index-0HoOnen3.js";import{C as X}from"./index-BPWcS_Kf.js";import{I as St}from"./integration-icon-5VjL1GgL.js";import{P as de,u as We,d as ie,e as ne,f as Ae,g as ge,h as je,i as kt,j as Ct,k as _t,l as Be,m as wt,n as $t,o as zt,p as It}from"./index-G8oxxr2G.js";import{u as Oe,C as Pt,b as At,c as Ot}from"./use-deco-chat-open-BmqwFIXp.js";import{d as Tt,u as Mt}from"./constants-DyBxaLKI.js";import{E as Et,i as Dt,a as Lt}from"./editable-thread-title-CPogfRoD.js";import{s as xe}from"./Plus-Cecv4wEo.js";import{t as Te}from"./Users03-CLx_Qxdb.js";import{i as De}from"./X-RC7YVNJU.js";import{b as Rt,i as Ut}from"./context-GOV4Tst1.js";import{C as Ge}from"./create-project-dialog-MbK1spLU.js";import{u as _e,S as Z}from"./skeleton-CR236scd.js";import{t as qe,u as Ke,i as Ft}from"./use-settings-modal-Bi52YF5w.js";import{n as Le}from"./CheckDone01-kUo2KMa3.js";import{n as Ht}from"./Container-DBGOFJUc.js";import{e as Wt}from"./Dataflow03-D8kdCLb1.js";import{a as Bt}from"./Home02-ABQZ6xOx.js";import{t as ke}from"./Settings01-BAgxhvm4.js";import{a as Ye,u as Ve}from"./use-project-B6kYJzwY.js";import{t as Qe}from"./ChevronDown-Dyskz-ZD.js";import{a as Gt,b as qt,T as Kt}from"./tooltip-BWlQ9UL9.js";import{A as me}from"./avatar-tLGNC2ok.js";import{c as V,g as he,d as Yt,e as Vt,f as Qt,b as Ze,D as Je,a as Xe}from"./dropdown-menu-VTiqKHN9.js";import{i as ue}from"./Check-BIaai9j0.js";import{C as Zt}from"./create-organization-dialog-BolmWoUA.js";import{a as Jt}from"./Copy01-CPaHCgqg.js";import{i as Xt}from"./File06-DCHaBaad.js";import{i as es}from"./Globe01-Rd2g694_.js";import{n as pe}from"./LinkExternal01-DyOgk9O3.js";import{i as ts}from"./Shield01-Dw8oloiN.js";import{a as ss,P as rs,b as ns}from"./popover-P8B4MdX3.js";import{n as Re}from"./Inbox01-DK0JkUYE.js";import{s as is}from"./XClose-D-4ELBrc.js";import{h as os}from"./use-connection-B6TFiTxb.js";import{b as ls}from"./use-mcp-tools-BjSYCbSh.js";import{i as as}from"./deco-constants-BmtTfZbQ.js";import{i as cs}from"./ChevronRight-D6p6jiry.js";import{u as Me,L as Ee}from"./localstorage-keys-BoChS3hJ.js";import{R as ds,a as et,b as ms}from"./resizable-CpFkObl0.js";import"./spinner-DzG2AImj.js";import"./use-mcp-prompts-BIRErCHu.js";import"./useQuery-CI6Jq2Tz.js";import"./dialog-L8ZakXii.js";import"./form-p8UY3zWX.js";import"./label-D6atofYo.js";import"./input-BtUicd3Q.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-Dx6U6WtF.js";import"./Edit01-BEBZ-Ht5.js";import"./XCircle-BgJPZWR5.js";import"./AlertCircle-Y6iSJK0t.js";import"./select-DOO2sOs0.js";import"./index-BymQJSqf.js";import"./ArrowLeft-p4dfchJF.js";import"./use-copy-DfInz4oY.js";import"./tabs-ZEd61iZd.js";import"./badge-0EzsH3AB.js";import"./Code01-BYnTXqsh.js";import"./use-virtual-mcp-C4mcpRPm.js";import"./SearchMd-CS2uMIPl.js";import"./use-create-virtual-mcp-pELq4UZ_.js";import"./marked.esm-BaswSlok.js";import"./markdown-C4hTkq3E.js";import"./types-BPCR06YW.js";import"./Eye-VtlrDhJf.js";import"./Globe02-nOidPs01.js";import"./collection-search-DeB-znan.js";import"./Loading01-Jv8Mbea8.js";import"./generate-id-Dyweu44Y.js";import"./Clock-Dymou738.js";import"./Trash01-CKATI1mI.js";import"./use-mobile-B9jSIPRg.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-7gZpMpM0.js";import"./use-binding-CcrgjIcJ.js";import"./binder-w9dF9fSa.js";import"./Grid01-C8gF-dWK.js";import"./Image01-BrzUQQ9K.js";import"./RefreshCcw01-Busgf2jQ.js";import"./useSuspenseInfiniteQuery-BfZMgfKc.js";import"./infiniteQueryObserver-Be7iTEXe.js";import"./useMutation-C13VGcqo.js";import"./textarea-Ca7XZUqN.js";import"./alert-dialog-CdqWA8wc.js";const tt=({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"}));tt.displayName="BarChart10";const st=({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"}));st.displayName="FaceSmile";const rt=({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"}));rt.displayName="LogOut01";const nt=({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"}));nt.displayName="MessageTextCircle02";function us(){const t=E.c(65),{org:e}=fe(),[,r]=Oe(),{selectedVirtualMcp:o,modelsConnections:i,isChatEmpty:l,activeThreadId:n,createThread:a,switchToThread:d,threads:c}=Rt();let m;if(t[0]!==n||t[1]!==c){let W;t[3]!==n?(W=G=>G.id===n,t[3]=n,t[4]=W):W=t[4],m=c.find(W),t[0]=n,t[1]=c,t[2]=m}else m=t[2];const f=m,[u,N]=T.useState(!1),[x,h]=T.useTransition();let j;t[5]!==e.id?(j=Tt(e.id),t[5]=e.id,t[6]=j):j=t[6];const p=o??j;let b;t[7]!==a?(b=()=>{h(()=>{a()})},t[7]=a,t[8]=b):b=t[8];const v=b;if(i.length===0){let W;t[9]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(de.Header.Left,{className:"gap-2"}),t[9]=W):W=t[9];let G;t[10]!==r?(G=()=>r(!1),t[10]=r,t[11]=G):G=t[11];let _;t[12]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(De,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=_):_=t[12];let q;t[13]!==G?(q=s.jsxs(de.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[W,s.jsx(de.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:G,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]=G,t[14]=q):q=t[14];let re;t[15]!==e?(re=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]=re):re=t[16];let ce;return t[17]!==q||t[18]!==re?(ce=s.jsxs(X,{className:"animate-in fade-in-0 duration-200",children:[q,re]}),t[17]=q,t[18]=re,t[19]=ce):ce=t[19],ce}const g=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 S;t[20]!==g?(S=B("absolute inset-0 flex flex-col transition-[opacity,transform] ease-[var(--ease-out-quart)]",g),t[20]=g,t[21]=S):S=t[21];let y;t[22]!==f||t[23]!==l?(y=!l&&f?.title&&s.jsx(Et,{threadId:f.id,text:f.title,className:"text-sm font-medium text-foreground"}),t[22]=f,t[23]=l,t[24]=y):y=t[24];let $;t[25]!==y?($=s.jsx(de.Header.Left,{className:"gap-2",children:y}),t[25]=y,t[26]=$):$=t[26];let z;t[27]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(xe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=z):z=t[27];let C;t[28]!==v||t[29]!==x?(C=s.jsx("button",{type:"button",onClick:v,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:z}),t[28]=v,t[29]=x,t[30]=C):C=t[30];let w;t[31]===Symbol.for("react.memo_cache_sentinel")?(w=()=>N(!0),t[31]=w):w=t[31];let L;t[32]===Symbol.for("react.memo_cache_sentinel")?(L=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(Dt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=L):L=t[32];let O;t[33]!==r?(O=()=>r(!1),t[33]=r,t[34]=O):O=t[34];let F;t[35]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(De,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[35]=F):F=t[35];let M;t[36]!==O?(M=s.jsx("button",{type:"button",onClick:O,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]=O,t[37]=M):M=t[37];let R;t[38]!==M||t[39]!==C?(R=s.jsxs(de.Header.Right,{className:"gap-1",children:[C,L,M]}),t[38]=M,t[39]=C,t[40]=R):R=t[40];let P;t[41]!==R||t[42]!==$?(P=s.jsxs(de.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[$,R]}),t[41]=R,t[42]=$,t[43]=P):P=t[43];let D;t[44]!==p||t[45]!==l?(D=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(St,{icon:p.icon,name:p.title,size:"lg",fallbackIcon:s.jsx(Te,{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]=D):D=t[46];let A;t[47]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(X.Footer,{children:s.jsx(X.Input,{})}),t[47]=A):A=t[47];let U;t[48]!==P||t[49]!==D||t[50]!==S?(U=s.jsxs("div",{className:S,children:[P,D,A]}),t[48]=P,t[49]=D,t[50]=S,t[51]=U):U=t[51];const ee=u?"opacity-100 translate-x-0":"opacity-0 translate-x-4 pointer-events-none";let te;t[52]!==ee?(te=B("absolute inset-0 flex flex-col transition-[opacity,transform] duration-300 ease-[var(--ease-out-quart)]",ee),t[52]=ee,t[53]=te):te=t[53];let se;t[54]===Symbol.for("react.memo_cache_sentinel")?(se=()=>N(!1),t[54]=se):se=t[54];let Y;t[55]!==n||t[56]!==d||t[57]!==c?(Y=s.jsx(Lt,{threads:c,activeThreadId:n,onThreadSelect:d,onClose:se}),t[55]=n,t[56]=d,t[57]=c,t[58]=Y):Y=t[58];let H;t[59]!==te||t[60]!==Y?(H=s.jsx("div",{className:te,children:Y}),t[59]=te,t[60]=Y,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 fs(){const t=E.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(Ue,{fallback:e,children:s.jsx(T.Suspense,{fallback:s.jsx(X.Skeleton,{}),children:s.jsx(us,{})})}),t[1]=r):r=t[1],r}function ps(){const t=E.c(54),[e]=_e(),{locator:r,org:o}=fe(),i=Ie(),l=Ce(),{org:n,project:a}=$e.parse(r),d=$e.isOrgAdminProject(r),{data:c}=Ye(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=I=>f.includes(I.pluginId),t[2]=f,t[3]=u):u=t[3];const N=dt.filter(u),x=l.location.pathname,h=`/${n}/${a}`,j=x===h||x===`${h}/`;let k;t[4]!==h||t[5]!==x?(k=I=>x.startsWith(`${h}/${I}`),t[4]=h,t[5]=x,t[6]=k):k=t[6];const p=k;let b;t[7]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Bt,{}),t[7]=b):b=t[7];const v={key:"home",label:"Home",icon:b,isActive:j,onClick:()=>{j?window.dispatchEvent(new CustomEvent("reset-home-view")):i({to:"/$org/$project",params:{org:n,project:a}})}};let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(Le,{}),t[8]=g):g=t[8];const S={key:"tasks",label:"Tasks",icon:g,isActive:p("tasks"),onClick:()=>i({to:"/$org/$project/tasks",params:{org:n,project:K}})};let y;t[9]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(Ht,{}),t[9]=y):y=t[9];const $={key:"mcps",label:"Connections",icon:y,isActive:p("mcps"),onClick:()=>i({to:"/$org/$project/mcps",params:{org:n,project:K}})};let z;t[10]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(ut,{}),t[10]=z):z=t[10];const C={key:"projects",label:"Projects",icon:z,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(qe,{}),t[11]=w):w=t[11];const L={key:"store",label:"Store",icon:w,isActive:p("store"),onClick:()=>i({to:"/$org/$project/store",params:{org:n,project:K}})};let O;t[12]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(Te,{}),t[12]=O):O=t[12];const F={key:"agents",label:"Agents",icon:O,isActive:p("agents"),onClick:()=>i({to:"/$org/$project/agents",params:{org:n,project:K}})};let M;t[13]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(tt,{}),t[13]=M):M=t[13];const R={key:"monitoring",label:"Monitor",icon:M,isActive:p("monitoring"),onClick:()=>i({to:"/$org/$project/monitoring",params:{org:n,project:K}})};let P;t[14]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(st,{}),t[14]=P):P=t[14];const D={key:"members",label:"Members",icon:P,isActive:p("members"),onClick:()=>i({to:"/$org/$project/members",params:{org:n,project:K}})},A=N.map(I=>({key:I.pluginId,label:I.label,icon:I.icon,isActive:p(I.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:n,project:a,pluginId:I.pluginId}})}));let U;t[15]!==f?(U=I=>f.includes(I.pluginId),t[15]=f,t[16]=U):U=t[16];const te=mt.filter(U).map(I=>({type:"group",group:{id:`${I.pluginId}-${I.id}`,label:I.label,items:I.items.map((J,oe)=>({key:`${I.pluginId}-${I.id}-${oe}`,label:J.label,icon:J.icon,isActive:p(I.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:n,project:a,pluginId:I.pluginId}})})),defaultExpanded:I.defaultExpanded??!0}}));if(d){let I;t[17]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(ke,{}),t[17]=I):I=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:I,isActive:J,onClick:oe},t[23]=J,t[24]=oe,t[25]=Ne):Ne=t[25];const ct=Ne,we=[{type:"items",items:[v,...e.experimental_tasks?[S]:[],...e.experimental_projects?[C]:[]]},{type:"group",group:{id:"build",label:"Build",items:[F,$,L],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[R,D,ct],defaultExpanded:!0}}];if(A.length>0){let ve;t[26]!==A?(ve={type:"items",items:A},t[26]=A,t[27]=ve):ve=t[27],we.push(ve)}return te.length>0&&we.push(...te),we}let se;t[28]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(Le,{}),t[28]=se):se=t[28];let Y;t[29]!==p?(Y=p("tasks"),t[29]=p,t[30]=Y):Y=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]!==Y||t[36]!==H?(Q={key:"tasks",label:"Tasks",icon:se,isActive:Y,onClick:H},t[35]=Y,t[36]=H,t[37]=Q):Q=t[37];const W=Q;let G;t[38]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsx(Wt,{}),t[38]=G):G=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 re;t[45]!==_||t[46]!==q?(re={key:"workflows",label:"Workflows",icon:G,isActive:_,onClick:q},t[45]=_,t[46]=q,t[47]=re):re=t[47];const ce=re;let be;t[48]!==e.experimental_tasks||t[49]!==W?(be=e.experimental_tasks?[W]:[],t[48]=e.experimental_tasks,t[49]=W,t[50]=be):be=t[50];const ye=[{type:"items",items:[v,...be,ce]}];if(A.length>0){let I;t[51]===Symbol.for("react.memo_cache_sentinel")?(I={type:"divider"},t[51]=I):I=t[51],ye.push(I);let J;t[52]!==A?(J={type:"items",items:A},t[52]=A,t[53]=J):J=t[53],ye.push(J)}return te.length>0&&ye.push(...te),ye}function xs(t){const e=E.c(11),{label:r,children:o,defaultExpanded:i}=t,l=i===void 0?!0:i,[n,a]=T.useState(l),{state:d}=We(),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(ne,{children:s.jsxs(Ae,{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(Qe,{size:12,className:B("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 it(t){const e=E.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(Ae,{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(ne,{children:l},r.key),e[10]=r.key,e[11]=l,e[12]=n):n=e[12],n}function hs(t){const e=E.c(12),{section:r}=t;switch(r.type){case"divider":{let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(kt,{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(js),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(xs,{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(gs),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 gs(t){return s.jsx(it,{item:t},t.key)}function js(t){return s.jsx(it,{item:t},t.key)}function ot(t){const e=E.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=B("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(bs),e[2]=r,e[3]=u):u=e[3];let N;e[4]!==l||e[5]!==f||e[6]!==u?(N=s.jsxs(Ct,{className:f,children:[u,l]}),e[4]=l,e[5]=f,e[6]=u,e[7]=N):N=e[7];let x;return e[8]!==m||e[9]!==i||e[10]!==o||e[11]!==N||e[12]!==c?(x=s.jsxs(_t,{variant:c,collapsible:m,children:[o,N,i]}),e[8]=m,e[9]=i,e[10]=o,e[11]=N,e[12]=c,e[13]=x):x=e[13],x}function bs(t,e){return s.jsx(hs,{section:t},e)}ot.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 ys(){const t=E.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 Ns(t){const e=E.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}=Ve(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(vs)??[];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 N=o===u.slug,x=u.ui?.themeColor??"#3B82F6";return s.jsxs(V,{className:B("gap-2.5",N&&"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}),N&&s.jsx(ue,{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 vs(t){return t.slug!==K}function Ss(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 lt(t){const e=E.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}=Pe(l),{data:d}=ae.useListOrganizations(),c=Ie(),m=d?.find(_=>_.slug===n),[f,u]=T.useState(!1),[N]=_e(),x=N.experimental_projects,h=a===K,{data:j}=Ye(m?.id??"",h?"":a??"");let k;e[1]!==n?(k=(_,q)=>_.slug===n?-1:q.slug===n?1:_.name.localeCompare(q.name),e[1]=n,e[2]=k):k=e[2];const p=[...d??[]].sort(k);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 v=b;let g;e[6]!==c||e[7]!==n?(g=_=>{n&&c({to:"/$org/$project",params:{org:n,project:_}})},e[6]=c,e[7]=n,e[8]=g):g=e[8];const S=g;let y;e[9]!==c?(y=_=>{c({to:"/$org/$project",params:{org:_,project:K}})},e[9]=c,e[10]=y):y=e[10];const $=y;let z;e[11]!==o?(z=o?()=>o():void 0,e[11]=o,e[12]=z):z=e[12];const C=z;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 L=w,O=Je,F=i?"w-auto pr-1.5":"w-full";let M;e[17]!==F?(M=B("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]=M):M=e[18];const R=h?s.jsx("div",{className:B("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:Ss(m?.name??""),children:m?.logo?s.jsx("img",{src:m.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:B("font-semibold leading-none",i?"text-[9px]":"text-xs"),children:(m?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:B("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:j?.ui?.themeColor??"#60a5fa"},children:j?.ui?.icon?s.jsx("img",{src:j.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:B("font-semibold text-white",i?"text-xs":"text-lg"),children:(j?.name??a??"?").charAt(0).toUpperCase()})});let P;e[19]!==m?.name||e[20]!==j?.name||e[21]!==x||e[22]!==i||e[23]!==h||e[24]!==a?(P=!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":j?.name??a??""})]}):s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:m?.name??"Select org"})}),s.jsx(Ut,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=m?.name,e[20]=j?.name,e[21]=x,e[22]=i,e[23]=h,e[24]=a,e[25]=P):P=e[25];let D;e[26]!==M||e[27]!==R||e[28]!==P?(D=s.jsx(Xe,{asChild:!0,children:s.jsxs("button",{type:"button",className:M,children:[R,P]})}),e[26]=M,e[27]=R,e[28]=P,e[29]=D):D=e[29];const A=Ze,U="start",ee="bottom",te="w-64 flex flex-col gap-0.5",se=ks,Y=x?s.jsxs(s.Fragment,{children:[s.jsxs(V,{className:B("gap-2.5",h&&"bg-accent"),onClick:v,children:[s.jsx(me,{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(ue,{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(ys,{}),children:s.jsx(Ns,{organizationId:m.id,currentProjectSlug:a,orgSlug:n??"",onSelect:S})}),C&&s.jsxs(V,{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(Yt,{children:[s.jsxs(Vt,{className:"gap-2.5",children:[s.jsx(qe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),s.jsxs(Qt,{className:"w-48 flex flex-col gap-0.5",children:[p.map(_=>s.jsxs(V,{className:B("gap-2.5",_.slug===n&&"bg-accent"),onClick:()=>$(_.slug),children:[s.jsx(me,{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(ue,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},_.id)),s.jsx(he,{}),s.jsxs(V,{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(V,{className:"gap-2.5",onClick:L,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(V,{className:B("gap-2.5",_.slug===n&&"bg-accent"),onClick:()=>$(_.slug),children:[s.jsx(me,{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(ue,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},_.id)),s.jsxs(V,{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(V,{className:"gap-2.5",onClick:L,children:[s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]});let H;e[30]!==A||e[31]!==se||e[32]!==Y?(H=s.jsx(A,{align:U,side:ee,className:te,onCloseAutoFocus:se,children:Y}),e[30]=A,e[31]=se,e[32]=Y,e[33]=H):H=e[33];let Q;e[34]!==O||e[35]!==D||e[36]!==H?(Q=s.jsxs(O,{children:[D,H]}),e[34]=O,e[35]=D,e[36]=H,e[37]=Q):Q=e[37];let W;e[38]!==f||e[39]!==u?(W=s.jsx(Zt,{open:f,onOpenChange:u}),e[38]=f,e[39]=u,e[40]=W):W=e[40];let G;return e[41]!==Q||e[42]!==W?(G=s.jsxs(s.Fragment,{children:[Q,W]}),e[41]=Q,e[42]=W,e[43]=G):G=e[43],G}function ks(t){return t.preventDefault()}lt.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 ze(t){const e=E.c(23),{onCreateProject:r}=t,{state:o}=We(),i=o==="collapsed",[l,n]=Oe();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const{org:d,project:c}=Pe(a),{location:m}=Ce(),f=m.pathname===`/${d}/${c}`||m.pathname===`/${d}/${c}/`;let u;e[1]!==n?(u=()=>{n(Cs)},e[1]=n,e[2]=u):u=e[2];const N=u;let x;e[3]!==i||e[4]!==r?(x=s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(lt,{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 j;e[6]!==h?(j=B("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]=j):j=e[7];const k=l&&"bg-sidebar-accent text-sidebar-foreground";let p;e[8]!==k?(p=B("size-7 hover:bg-sidebar-accent text-sidebar-foreground/50 hover:text-sidebar-foreground",k),e[8]=k,e[9]=p):p=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(nt,{size:14,className:"text-inherit"}),e[10]=b):b=e[10];let v;e[11]!==p||e[12]!==N?(v=s.jsx(Gt,{asChild:!0,children:s.jsx(Se,{variant:"ghost",size:"icon",className:p,onClick:N,"aria-label":"Toggle Decopilot",children:b})}),e[11]=p,e[12]=N,e[13]=v):v=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(qt,{side:"bottom",children:"Toggle Decopilot"}),e[14]=g):g=e[14];let S;e[15]!==v?(S=s.jsxs(Kt,{children:[v,g]}),e[15]=v,e[16]=S):S=e[16];let y;e[17]!==S||e[18]!==j?(y=s.jsx("div",{className:j,children:S}),e[17]=S,e[18]=j,e[19]=y):y=e[19];let $;return e[20]!==y||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(ne,{children:s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[x,y]})})})}),e[20]=y,e[21]=x,e[22]=$):$=e[22],$}function Cs(t){return!t}ze.Skeleton=function(){return s.jsx(Be,{className:"px-3",children:s.jsx(ie,{children:s.jsx(ne,{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 _s(t){const e=E.c(50),{user:r,userImage:o}=t,{open:i}=Ke(),[l,n]=T.useState(!1);let a;e[0]!==r.email||e[1]!==r.id||e[2]!==r.name?(a=()=>{const ee=`ID: ${r.id}
|
|
2
|
-
Name: ${r.name||"N/A"}
|
|
3
|
-
Email: ${r.email}`;navigator.clipboard.writeText(ee),n(!0),le.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(me,{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 N;e[9]!==m||e[10]!==u?(N=s.jsx(Xe,{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]=N):N=e[11];const x=r.name||r.email||"U";let h;e[12]!==x||e[13]!==o?(h=s.jsx(me,{url:o,fallback:x,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=x,e[13]=o,e[14]=h):h=e[14];const j=r.name||"User";let k;e[15]!==j?(k=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=k):k=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]!==k||e[20]!==p?(b=s.jsxs("div",{className:"flex-1 min-w-0",children:[k,p]}),e[19]=k,e[20]=p,e[21]=b):b=e[21];let v;e[22]!==l?(v=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:l?s.jsx(ue,{size:14,className:"text-green-600"}):s.jsx(Jt,{size:14,className:"text-muted-foreground"})}),e[22]=l,e[23]=v):v=e[23];let g;e[24]!==d||e[25]!==b||e[26]!==v||e[27]!==h?(g=s.jsxs(V,{onClick:d,className:"gap-2.5 group",children:[h,b,v]}),e[24]=d,e[25]=b,e[26]=v,e[27]=h,e[28]=g):g=e[28];let S;e[29]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(he,{}),e[29]=S):S=e[29];let y;e[30]!==i?(y=()=>i("account.preferences"),e[30]=i,e[31]=y):y=e[31];let $,z;e[32]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),z=s.jsx("span",{children:"Settings"}),e[32]=$,e[33]=z):($=e[32],z=e[33]);let C;e[34]!==y?(C=s.jsxs(V,{className:"gap-2.5",onClick:y,children:[$,z]}),e[34]=y,e[35]=C):C=e[35];let w;e[36]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(V,{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(Xt,{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 L;e[37]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(V,{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(ts,{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]=L):L=e[37];let O;e[38]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(V,{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(ft,{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]=O):O=e[38];let F;e[39]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(V,{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(Te,{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 M,R;e[40]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(V,{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(es,{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]=M,e[41]=R):(M=e[40],R=e[41]);let P;e[42]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsxs(V,{className:"gap-2.5",onClick:ws,children:[s.jsx(rt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=P):P=e[42];let D;e[43]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.130.1"]})}),e[43]=D):D=e[43];let A;e[44]!==g||e[45]!==C?(A=s.jsxs(Ze,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:$s,children:[g,S,C,w,L,O,F,M,R,P,D]}),e[44]=g,e[45]=C,e[46]=A):A=e[46];let U;return e[47]!==A||e[48]!==N?(U=s.jsxs(Je,{children:[N,A]}),e[47]=A,e[48]=N,e[49]=U):U=e[49],U}function ws(){return ae.signOut()}function $s(t){return t.preventDefault()}function at(){const t=E.c(7),{data:e}=ae.useSession();if(!e?.user){let d;return t[0]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(me,{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(_s,{user:l,userImage:n}),t[4]=n,t[5]=l,t[6]=a):a=t[6],a}function zs({invitation:t}){const[e,r]=T.useState(!1),[o,i]=T.useState(!1),l=xt(),n=async()=>{r(!0);try{const d=await ae.organization.acceptInvitation({invitationId:t.id});if(d.error)le.error(d.error.message),r(!1);else{const c=await ae.organization.setActive({organizationId:t.organizationId});le.success("Invitation accepted!");const m=c?.data?.slug;window.location.href=m?`/${m}`:"/"}}catch{le.error("Failed to accept invitation"),r(!1)}},a=async()=>{i(!0);try{const d=await ae.organization.rejectInvitation({invitationId:t.id});d.error?(le.error(d.error.message),i(!1)):(le.success("Invitation declined"),l.invalidateQueries())}catch{le.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(ue,{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(is,{size:14})})]})]})}function Is(){const t=T.useContext(pt),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(o=>o.status==="pending"&&new Date(o.expiresAt)>new Date)}class Ps 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 As="gateway-chip-period";function Os(){try{const t=localStorage.getItem(As);if(t==="daily"||t==="weekly"||t==="monthly")return t}catch{}return"daily"}function Ts(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 Ms(t){return t>=90?"text-destructive":t>=70?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Es(t){const e=E.c(42),{connectionId:r}=t,{open:o}=Ke(),{org:i}=fe();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=Mt(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:Ds},e[4]=n,e[5]=d):d=e[5];const{data:c}=ls(d),m=c?.billing.mode??"prepaid",f=c?.limit.total??null,u=c?.limit.remaining??0;let N;e[6]!==c?.usage?(N=c?.usage??{total:0,daily:0,weekly:0,monthly:0},e[6]=c?.usage,e[7]=N):N=e[7];const x=N;let h,j,k,p,b,v,g;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],j=`$${C}`,$=Ts(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 L=Math.min(100,w);h="Usage",j=`${L}%`,$=Ms(L)}else{const C=Os(),w=C==="daily"?x.daily:C==="weekly"?x.weekly:x.monthly,L=C==="daily"?"/day":C==="weekly"?"/wk":"/mo";h="Usage";let O;e[26]!==w?(O=w.toFixed(2),e[26]=w,e[27]=O):O=e[27],j=`$${O}${L}`,$="text-foreground/70"}p="button",e[28]!==o?(b=()=>o("org.billing"),e[28]=o,e[29]=b):b=e[29],v="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 z;e[30]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Ft,{size:13,className:"text-muted-foreground/60 shrink-0"}),e[30]=z):z=e[30],e[31]!==h?(g=s.jsxs("div",{className:"flex items-center gap-1.5",children:[z,s.jsx("span",{className:"text-xs text-muted-foreground",children:h})]}),e[31]=h,e[32]=g):g=e[32],k=B("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]=k,e[15]=p,e[16]=b,e[17]=v,e[18]=g,e[19]=h,e[20]=j}else k=e[14],p=e[15],b=e[16],v=e[17],g=e[18],h=e[19],j=e[20];let S;e[33]!==k||e[34]!==j?(S=s.jsx("span",{className:k,children:j}),e[33]=k,e[34]=j,e[35]=S):S=e[35];let y;return e[36]!==S||e[37]!==p||e[38]!==b||e[39]!==v||e[40]!==g?(y=s.jsxs("button",{type:p,onClick:b,className:v,children:[g,S]}),e[36]=S,e[37]=p,e[38]=b,e[39]=v,e[40]=g,e[41]=y):y=e[41],y}function Ds(t){return t.structuredContent}function Ls(){const t=E.c(4),e=os();let r;t[0]!==e?(r=e.find(Rs),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(Es,{connectionId:o.id}),t[2]=o.id,t[3]=i):i=t[3],i}function Rs(t){return as(t.connection_url)}function Us(){const t=E.c(13),e=Is();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ps,{children:s.jsx(T.Suspense,{fallback:null,children:s.jsx(Ls,{})})}),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(at,{})}),t[1]=o):o=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(rs,{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(ss,{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(Fs)})]}),t[8]=e,t[9]=d):d=t[9];let c;return t[10]!==n||t[11]!==d?(c=s.jsxs(wt,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[r,s.jsx(ie,{children:s.jsx(ne,{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(ns,{children:[n,d]})})]})})})]}),t[10]=n,t[11]=d,t[12]=c):c=t[12],c}function Fs(t){return s.jsx(zs,{invitation:t},t.id)}function Hs(t){const e=E.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 Ws(t){const e=E.c(14),{project:r}=t,o=Ie(),{org:i}=fe();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(Hs,{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(cs,{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(ne,{children:s.jsxs(Ae,{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 Bs(){const t=E.c(55),{org:e}=fe(),{data:r,isLoading:o}=Ve(e.id),[i,l]=T.useState(!0),[n,a]=T.useState(!1);let d,c,m,f,u,N,x,h,j,k,p,b,v;if(t[0]!==o||t[1]!==i||t[2]!==r){v=Symbol.for("react.early_return_sentinel");e:{const O=r?.filter(qs)??[];if(o){let U;t[16]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(ne,{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 ee;t[17]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(je,{className:"py-0 px-0",children:s.jsx(ge,{children:s.jsxs(ie,{className:"gap-0.5",children:[U,s.jsx(ne,{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]=ee):ee=t[17],v=ee;break e}b="group/projects-section mt-2",u=Pt,k=i,p=l,f=je,j="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 M=!i&&"-rotate-90";let R;t[19]!==M?(R=B("text-muted-foreground shrink-0 transition-transform duration-200",M),t[19]=M,t[20]=R):R=t[20];let P;t[21]!==R?(P=s.jsx(At,{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(Qe,{size:12,className:R})]})}),t[21]=R,t[22]=P):P=t[22];let D;t[23]===Symbol.for("react.memo_cache_sentinel")?(D=()=>a(!0),t[23]=D):D=t[23];let A;t[24]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx("button",{type:"button",onClick:D,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]=A):A=t[24],t[25]!==P?(h=s.jsx(ne,{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:[P,A]})}),t[25]=P,t[26]=h):h=t[26],d=Ot,N=O.length===0?s.jsx(ne,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):O.map(Gs)}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]=N,t[9]=x,t[10]=h,t[11]=j,t[12]=k,t[13]=p,t[14]=b,t[15]=v}else d=t[3],c=t[4],m=t[5],f=t[6],u=t[7],N=t[8],x=t[9],h=t[10],j=t[11],k=t[12],p=t[13],b=t[14],v=t[15];if(v!==Symbol.for("react.early_return_sentinel"))return v;let g;t[27]!==d||t[28]!==N?(g=s.jsx(d,{children:N}),t[27]=d,t[28]=N,t[29]=g):g=t[29];let S;t[30]!==c||t[31]!==x||t[32]!==h||t[33]!==g?(S=s.jsxs(c,{className:x,children:[h,g]}),t[30]=c,t[31]=x,t[32]=h,t[33]=g,t[34]=S):S=t[34];let y;t[35]!==m||t[36]!==S?(y=s.jsx(m,{children:S}),t[35]=m,t[36]=S,t[37]=y):y=t[37];let $;t[38]!==f||t[39]!==y||t[40]!==j?($=s.jsx(f,{className:j,children:y}),t[38]=f,t[39]=y,t[40]=j,t[41]=$):$=t[41];let z;t[42]!==u||t[43]!==$||t[44]!==k||t[45]!==p?(z=s.jsx(u,{open:k,onOpenChange:p,children:$}),t[42]=u,t[43]=$,t[44]=k,t[45]=p,t[46]=z):z=t[46];let C;t[47]!==z||t[48]!==b?(C=s.jsx("div",{className:b,children:z}),t[47]=z,t[48]=b,t[49]=C):C=t[49];let w;t[50]!==n?(w=s.jsx(Ge,{open:n,onOpenChange:a}),t[50]=n,t[51]=w):w=t[51];let L;return t[52]!==C||t[53]!==w?(L=s.jsxs(s.Fragment,{children:[C,w]}),t[52]=C,t[53]=w,t[54]=L):L=t[54],L}function Gs(t){return s.jsx(Ws,{project:t},t.id)}function qs(t){return t.slug!==K}function Ks(){const t=E.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(ne,{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(Bs,{})}),t[0]=e):e=t[0],e}function Ys(t){const e=E.c(13),{onCreateProject:r}=t,[o]=_e(),i=ps(),{locator:l}=fe();let n;e[0]!==l?(n=$e.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(ze.Skeleton,{}),e[2]=d):d=e[2];let c;e[3]!==r?(c=s.jsx(T.Suspense,{fallback:d,children:s.jsx(ze,{onCreateProject:r})}),e[3]=r,e[4]=c):c=e[4];let m;e[5]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(Us,{}),e[5]=m):m=e[5];let f;e[6]!==a||e[7]!==o?(f=a&&o.experimental_projects?s.jsx(Ue,{children:s.jsx(T.Suspense,{fallback:null,children:s.jsx(Ks,{})})}):null,e[6]=a,e[7]=o,e[8]=f):f=e[8];let u;return e[9]!==i||e[10]!==c||e[11]!==f?(u=s.jsx(ot,{sections:i,header:c,footer:m,additionalContent:f}),e[9]=i,e[10]=c,e[11]=f,e[12]=u):u=e[12],u}function Vs(){const t=E.c(2),r=Ce().location.href;let o;return t[0]!==r?(o=s.jsx(bt,{to:"/login",search:{next:r},replace:!0}),t[0]=r,t[1]=o):o=t[1],o}function Qs(t){const e=E.c(6),{children:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(ht,{children:s.jsx(Fe,{})}),e[0]=o):o=e[0];let i;e[1]!==r?(i=s.jsx(gt,{children:r}),e[1]=r,e[2]=i):i=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(jt,{children:s.jsx(Vs,{})}),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 Zs(t){const e=E.c(10),{children:r,className:o}=t,[,i]=T.useTransition();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Ee.decoChatPanelWidth(),e[0]=l):l=e[0];const[n,a]=Me(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=B("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(et,{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 Js(t){const e=E.c(5),{children:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Ee.sidebarOpen(),e[0]=o):o=e[0];const[i,l]=Me(o,!0);let n;return e[1]!==r||e[2]!==l||e[3]!==i?(n=s.jsx($t,{open:i,onOpenChange:l,children:r}),e[1]=r,e[2]=l,e[3]=i,e[4]=n):n=e[4],n}function Xs(t){const e=E.c(24),{isStudio:r,isHomeRoute:o,onCreateProject:i}=t,[l]=Oe();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Ee.decoChatPanelWidth(),e[0]=n):n=e[0];const[a]=Me(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 N;e[3]!==i?(N=s.jsx(Ys,{onCreateProject:i}),e[3]=i,e[4]=N):N=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 j;e[7]===Symbol.for("react.memo_cache_sentinel")?(j={overflow:"visible"},e[7]=j):j=e[7];const k=l&&"rounded-tr-[0.75rem] border-r";let p;e[8]!==k?(p=B("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)]",k),e[8]=k,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 v;e[11]!==p?(v=s.jsx(et,{className:"min-w-0 flex flex-col",style:j,children:s.jsx("div",{className:p,children:b})}),e[11]=p,e[12]=v):v=e[12];let g;e[13]!==l||e[14]!==o?(g=!o&&s.jsxs(s.Fragment,{children:[s.jsx(ds,{className:"bg-sidebar"}),s.jsx(Zs,{className:B("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(fs,{})})})})]}),e[13]=l,e[14]=o,e[15]=g):g=e[15];let S;e[16]!==v||e[17]!==g?(S=s.jsx(zt,{className:"pt-1.5",style:x,children:s.jsxs(ms,{direction:"horizontal",className:"h-full",style:h,children:[v,g]})}),e[16]=v,e[17]=g,e[18]=S):S=e[18];let y;return e[19]!==S||e[20]!==c||e[21]!==u||e[22]!==N?(y=s.jsxs(It,{className:"flex-1 bg-sidebar","data-studio":c,style:u,children:[N,S]}),e[19]=S,e[20]=c,e[21]=u,e[22]=N,e[23]=y):y=e[23],y}function er(){const{org:t,project:e}=Pe({strict:!1}),r=Ce(),[o,i]=T.useState(!1),l=r.location.pathname===`/${t}/${e}`||r.location.pathname===`/${t}/${e}/`,n=e??K,{data:a}=yt({queryKey:Nt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:m}=await ae.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(at,{})})}),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(vt,{...d,children:[s.jsx(Js,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(X.Provider,{children:s.jsx(Xs,{isStudio:c,isHomeRoute:l,onCreateProject:()=>i(!0)})})})}),s.jsx(Ge,{open:o,onOpenChange:i})]})}function Tn(){const t=E.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Qs,{children:s.jsx(T.Suspense,{fallback:s.jsx(Fe,{}),children:s.jsx(er,{})})}),t[0]=e):e=t[0],e}export{Tn as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as O,j as r,E as ae,r as Z,u as oe,b as ie,m as le,n as ne,K as G}from"./index-0HoOnen3.js";import{C as ce,a as me}from"./collection-table-wrapper-BkrnGVuo.js";import{C as de,E as J}from"./collection-search-DeB-znan.js";import{P as _}from"./index-G8oxxr2G.js";import{u as ue,U as pe}from"./use-list-state-Bpa4-xTU.js";import{f as fe}from"./format-time-CMKyl-GC.js";import{a as he,u as xe}from"./constants-DyBxaLKI.js";import{B as ge,a as je,b as ye,c as Se}from"./breadcrumb-BcJj21EL.js";import{B as b}from"./badge-0EzsH3AB.js";import{i as be}from"./AlertCircle-Y6iSJK0t.js";import{c as _e}from"./AlertOctagon-r7aH80QB.js";import{n as X}from"./CheckDone01-kUo2KMa3.js";import{i as we}from"./Check-BIaai9j0.js";import{s as Ce}from"./Clock-Dymou738.js";import{i as ee}from"./Loading01-Jv8Mbea8.js";import{u as Ne,a as Te}from"./context-GOV4Tst1.js";import"./dropdown-menu-VTiqKHN9.js";import"./ChevronRight-D6p6jiry.js";import"./ArrowDown-DPy5cnDQ.js";import"./ArrowUp-Dx6U6WtF.js";import"./Grid01-C8gF-dWK.js";import"./List-mX8yEKmx.js";import"./tooltip-BWlQ9UL9.js";import"./index-BymQJSqf.js";import"./table-CK5AQN01.js";import"./SearchMd-CS2uMIPl.js";import"./input-BtUicd3Q.js";import"./use-mobile-B9jSIPRg.js";import"./X-RC7YVNJU.js";import"./avatar-tLGNC2ok.js";import"./useQuery-CI6Jq2Tz.js";import"./use-view-mode-CHcflreW.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-virtual-mcp-C4mcpRPm.js";import"./use-connection-B6TFiTxb.js";import"./useMutation-C13VGcqo.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-7gZpMpM0.js";import"./use-binding-CcrgjIcJ.js";import"./binder-w9dF9fSa.js";import"./localstorage-keys-BoChS3hJ.js";import"./skeleton-CR236scd.js";import"./popover-P8B4MdX3.js";import"./select-DOO2sOs0.js";import"./ChevronDown-Dyskz-ZD.js";import"./File06-DCHaBaad.js";import"./Image01-BrzUQQ9K.js";import"./RefreshCcw01-Busgf2jQ.js";import"./Settings01-BAgxhvm4.js";import"./useSuspenseInfiniteQuery-BfZMgfKc.js";import"./infiniteQueryObserver-Be7iTEXe.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}=oe();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=ie(),{switchToThread:I}=Ne(),P=le();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}=ne(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(ce,{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(de,{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(me,{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 Kt(){const e=O.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx(ae,{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{Kt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-Be7iTEXe.js";import{Y as i}from"./index-0HoOnen3.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Y as u,ap as s}from"./index-0HoOnen3.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-Be7iTEXe.js";import{Y as u,Z as n}from"./index-0HoOnen3.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|