@decocms/mesh 2.122.0 → 2.122.1
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-xlmc_ewP.js → AlertCircle-BVVnAYuU.js} +1 -1
- package/dist/client/assets/{AlertOctagon-D421ZtkR.js → AlertOctagon-DAoVcYfN.js} +1 -1
- package/dist/client/assets/{AlertTriangle-Ddzav--o.js → AlertTriangle-CUVtD1cK.js} +1 -1
- package/dist/client/assets/{ArrowLeft-Cm3_NyIq.js → ArrowLeft-DzYh9znv.js} +1 -1
- package/dist/client/assets/{ArrowUp-D7gFQV8U.js → ArrowUp-XLHR20Bz.js} +1 -1
- package/dist/client/assets/{Check-CwhCIsIx.js → Check-CI1M-aUm.js} +1 -1
- package/dist/client/assets/{CheckCircle-gVXszZ9H.js → CheckCircle-P9Ew9AEd.js} +1 -1
- package/dist/client/assets/{CheckDone01-CZrV6JdL.js → CheckDone01-BJx2tyNO.js} +1 -1
- package/dist/client/assets/{CheckVerified02-BG2LRHT3.js → CheckVerified02-CmXYy4Qy.js} +1 -1
- package/dist/client/assets/{ChevronDown-DHYql12c.js → ChevronDown-BUB2YOp6.js} +1 -1
- package/dist/client/assets/{ChevronRight-qRilEtY5.js → ChevronRight-BcGE4eLl.js} +1 -1
- package/dist/client/assets/{Clock-Ck0JfdvV.js → Clock-C6XJe-ip.js} +1 -1
- package/dist/client/assets/{Code01-CJtE_l6W.js → Code01-CHRkMw8I.js} +1 -1
- package/dist/client/assets/{Container-DmRzes59.js → Container-DqNvmfx-.js} +1 -1
- package/dist/client/assets/{Copy01-_H9GhcIe.js → Copy01-BY2Ym1jz.js} +1 -1
- package/dist/client/assets/{Dataflow03-DVn12h_U.js → Dataflow03-s3maqm06.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-wYWp0xyO.js → DotsHorizontal-6W_-5fN3.js} +1 -1
- package/dist/client/assets/{DotsVertical-DXaOiE8_.js → DotsVertical-FpKpbwve.js} +1 -1
- package/dist/client/assets/{Download01-CYVDY-WP.js → Download01-BtxGwroP.js} +1 -1
- package/dist/client/assets/{Edit01-BNuFD-E4.js → Edit01-DWQwaJLP.js} +1 -1
- package/dist/client/assets/{Eye-DRUYj907.js → Eye-CN84Rg_e.js} +1 -1
- package/dist/client/assets/{File02-BTJzpWWh.js → File02-CE0ulhix.js} +1 -1
- package/dist/client/assets/{File06-D7PEf5a6.js → File06-POqeol7K.js} +1 -1
- package/dist/client/assets/{FilterLines-DEUbdgpO.js → FilterLines-BngrA-Vc.js} +1 -1
- package/dist/client/assets/{Globe01-D38ZY7LP.js → Globe01-CRRVCZPp.js} +1 -1
- package/dist/client/assets/{Globe02-C1VZ1Sth.js → Globe02-BOwytKUQ.js} +1 -1
- package/dist/client/assets/{Grid01-CSoBYZVu.js → Grid01-CrrQdHyQ.js} +1 -1
- package/dist/client/assets/{Hash02-70NdGfYY.js → Hash02-D5qQRSpH.js} +1 -1
- package/dist/client/assets/{Home02-TEl7q7Ca.js → Home02-CbnkiUd3.js} +1 -1
- package/dist/client/assets/{Image01-B7uGBtXf.js → Image01-0GB5gE55.js} +1 -1
- package/dist/client/assets/{Inbox01-D4AhYFiy.js → Inbox01-D2CbZGV0.js} +1 -1
- package/dist/client/assets/{InfoCircle-1K9NYGAl.js → InfoCircle-CrIA5JGn.js} +1 -1
- package/dist/client/assets/{Key01-BabDlHce.js → Key01-sDGBwEJO.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CpfoXnvY.js → LinkExternal01-D1N24TfU.js} +1 -1
- package/dist/client/assets/{List-FibtrqYM.js → List-CFbT-gRE.js} +1 -1
- package/dist/client/assets/{Loading01-Bl1Pk_oo.js → Loading01-BQpiT2Km.js} +1 -1
- package/dist/client/assets/{Lock01-BltwB-9b.js → Lock01-B-ejVTyE.js} +1 -1
- package/dist/client/assets/{Pin01-BmPA32VH.js → Pin01-Cf-uUt5k.js} +1 -1
- package/dist/client/assets/{Play-CbvJYqM5.js → Play-C2FHbGJY.js} +1 -1
- package/dist/client/assets/{Plus-CPirwa1w.js → Plus-CyH336o_.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-DpTBiD-b.js → RefreshCcw01-BCCuAsaG.js} +1 -1
- package/dist/client/assets/{RefreshCw01-B1WiG0_Y.js → RefreshCw01-hflDLSFA.js} +1 -1
- package/dist/client/assets/{Rows03-CSDgVDop.js → Rows03-ByhpLL30.js} +1 -1
- package/dist/client/assets/{Save01-LUKipDfp.js → Save01-BzwGnBjT.js} +1 -1
- package/dist/client/assets/{SearchMd-CmV0Tepn.js → SearchMd-DqBr4YSX.js} +1 -1
- package/dist/client/assets/{Settings01-C0WLxd49.js → Settings01-CAHrWGsy.js} +1 -1
- package/dist/client/assets/{Shield01-BbVNhLRQ.js → Shield01-CeiLEW-c.js} +1 -1
- package/dist/client/assets/{Terminal-BNbAKfj5.js → Terminal-B7PZg5_v.js} +1 -1
- package/dist/client/assets/{Tool01-XlUnVTZF.js → Tool01-1daL4csu.js} +1 -1
- package/dist/client/assets/{Trash01-CsD9CMZr.js → Trash01-BKG_9Nc0.js} +1 -1
- package/dist/client/assets/{Upload01-Tev8kZ4-.js → Upload01-CAiuVVLk.js} +1 -1
- package/dist/client/assets/{Users03-B5yv7ula.js → Users03-DUX4KBZd.js} +1 -1
- package/dist/client/assets/{XCircle-BGdKXUli.js → XCircle-DqQIxmmH.js} +1 -1
- package/dist/client/assets/{XClose-CBFYdEvF.js → XClose-BS3lqxQE.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-CDXgp0lX.js → agent-connections-preview-CSlc2PJJ.js} +1 -1
- package/dist/client/assets/{agent-detail-H6KClcRl.js → agent-detail-Dj_HvsYh.js} +1 -1
- package/dist/client/assets/{agents-DMasQsS6.js → agents-CBF6H7RP.js} +1 -1
- package/dist/client/assets/{alert-dialog-DB07UdJN.js → alert-dialog-DuCfMVyu.js} +1 -1
- package/dist/client/assets/{auth-catchall-vsfBBopf.js → auth-catchall-B0XRiWs-.js} +1 -1
- package/dist/client/assets/{avatar-DlH0tlJW.js → avatar-CtMtkon6.js} +1 -1
- package/dist/client/assets/{badge-DApFAaFp.js → badge-BiM_Kwdy.js} +1 -1
- package/dist/client/assets/{binder-DA98_oix.js → binder-M32S5qt-.js} +1 -1
- package/dist/client/assets/{breadcrumb-rKBAWCrS.js → breadcrumb-Clw8k6sY.js} +1 -1
- package/dist/client/assets/{button-CZPRmDPf.js → button-C38FSEE2.js} +1 -1
- package/dist/client/assets/{card-RVty8OZv.js → card-DHtxlOun.js} +1 -1
- package/dist/client/assets/{chart-IzVtzoKL.js → chart-DOI07tEn.js} +1 -1
- package/dist/client/assets/{checkbox-BcFea8vV.js → checkbox-TmSYmuz-.js} +1 -1
- package/dist/client/assets/{circle-alert-D5ZoEK1D.js → circle-alert-BiGGy0Wa.js} +1 -1
- package/dist/client/assets/{collection-detail-D6YGM3Fm.js → collection-detail-BHynJC2o.js} +1 -1
- package/dist/client/assets/{collection-tab-B5SlZhK5.js → collection-tab-DV6NAdw_.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Dg5F9IdT.js → collection-table-wrapper-CTuCG2FE.js} +1 -1
- package/dist/client/assets/{collection-tabs-DBVkuHlL.js → collection-tabs-BsPO9qGx.js} +1 -1
- package/dist/client/assets/{command-BsoFq-dz.js → command-B4IH7oLh.js} +1 -1
- package/dist/client/assets/{connect-Bu-5xEzi.js → connect-wARxy5J3.js} +1 -1
- package/dist/client/assets/{connection-card-DzedQCif.js → connection-card-CGS63iBz.js} +1 -1
- package/dist/client/assets/connection-detail-DFe6Zvcb.js +1 -0
- package/dist/client/assets/{connections-C2FCZthc.js → connections-_HoqN1MC.js} +1 -1
- package/dist/client/assets/constants-BXOSYwTE.js +1 -0
- package/dist/client/assets/{constants-C2M7RsNt.js → constants-BaFEB8b-.js} +1 -1
- package/dist/client/assets/{context-BgVlhaqT.js → context-BymoNfwG.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Cwe3EZ2W.js → create-organization-dialog-NdYQj5I6.js} +1 -1
- package/dist/client/assets/{create-project-dialog-CICUNrHC.js → create-project-dialog-D9kQYac1.js} +1 -1
- package/dist/client/assets/deco-constants--kJ0Z6w-.js +1 -0
- package/dist/client/assets/{dialog-DGoua-F-.js → dialog-BfDpZtmU.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CEy971MU.js → dropdown-menu-5Q1S_nmt.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-C0ICbkQo.js → dynamic-plugin-layout-DpLad0pP.js} +1 -1
- package/dist/client/assets/{empty-state-C_g2tsPC.js → empty-state-Btxi5aDW.js} +1 -1
- package/dist/client/assets/{empty-state-C_zMtSoY.js → empty-state-DhMtnWhc.js} +1 -1
- package/dist/client/assets/{env-vars-editor-C8MNbLkk.js → env-vars-editor-_CnLGpzp.js} +1 -1
- package/dist/client/assets/{error-boundary-DqZtjxEB.js → error-boundary-BAseIOMs.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BdeTK8Ro.js → extract-connection-data-D-R9bGcw.js} +1 -1
- package/dist/client/assets/{file-browser-q6rlKrnm.js → file-browser-BJTX10-H.js} +2 -2
- package/dist/client/assets/{form-CFbWoYe6.js → form-Duj5rYPY.js} +1 -1
- package/dist/client/assets/{grid-view-DPEEIdxr.js → grid-view-CY-Pt-DN.js} +1 -1
- package/dist/client/assets/{home-CS0lvzq9.js → home-CR6CBlk3.js} +1 -1
- package/dist/client/assets/{index-BpjZjisS.js → index-BAVeLSdZ.js} +1 -1
- package/dist/client/assets/{index-BzbwskdO.js → index-BP-6X59N.js} +1 -1
- package/dist/client/assets/{index-DOQ9GLeH.js → index-BzCzXQyz.js} +1 -1
- package/dist/client/assets/{index-0fcwYTfR.js → index-C08Y_l-4.js} +40 -40
- package/dist/client/assets/{index-Dq6km8uv.js → index-C_UZR9Al.js} +1 -1
- package/dist/client/assets/{index-Bl5KG9xm.js → index-CfMyGfp-.js} +1 -1
- package/dist/client/assets/{index-0yaYrNTf.js → index-CgzoCLgc.js} +1 -1
- package/dist/client/assets/{index-DrrqKIxq.js → index-DUaXcF2Y.js} +3 -3
- package/dist/client/assets/{infiniteQueryObserver-BUe0-uqo.js → infiniteQueryObserver-CTWB_6Pl.js} +1 -1
- package/dist/client/assets/{input-C2aMc-tK.js → input-nC3fVO_T.js} +1 -1
- package/dist/client/assets/{integration-icon-BVqKl9De.js → integration-icon-BJjr_yjT.js} +1 -1
- package/dist/client/assets/{label-CoS6RHW3.js → label-DNQa2RYx.js} +1 -1
- package/dist/client/assets/{layout-D1KoVO75.js → layout-DpeD1Oy6.js} +1 -1
- package/dist/client/assets/{localstorage-keys-Dn-W0lb3.js → localstorage-keys-Bgp3KpAx.js} +1 -1
- package/dist/client/assets/{login-VK-mokwH.js → login-D2JrFX2K.js} +1 -1
- package/dist/client/assets/{markdown-BM0BQJdP.js → markdown-Cf7IY55U.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DeNBGJ6_.js → mcp-oauth-BLnZgjxv.js} +1 -1
- package/dist/client/assets/{mcp-server-card-DacuauM5.js → mcp-server-card-CPHrQOBO.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-BLz5yvcq.js → mcp-server-detail-BWASaYux.js} +2 -2
- package/dist/client/assets/{members-DenaIJqs.js → members-ByLO20ZC.js} +1 -1
- package/dist/client/assets/{monitoring-CJ1M1mUC.js → monitoring-CUvl1bMQ.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-R1y62lIg.js → monitoring-dashboard-edit-FypFRP7W.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-BKjuLdW2.js → monitoring-dashboard-view-CBGwHTiq.js} +1 -1
- package/dist/client/assets/{oauth-callback-DX8HUvyR.js → oauth-callback-CQZPACPj.js} +1 -1
- package/dist/client/assets/{page-sxnt39Ii.js → page-CGMtCDG9.js} +1 -1
- package/dist/client/assets/page-D9XG5gWE.js +1 -0
- package/dist/client/assets/{plugin-empty-state-D5H9c9JD.js → plugin-empty-state-B2bPIJ8g.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-ChCFqmd0.js → plugin-empty-state-DAgYG9oM.js} +1 -1
- package/dist/client/assets/{plugin-header-CVre9sGT.js → plugin-header-BZ_bnOIA.js} +1 -1
- package/dist/client/assets/{plugin-header-BWrOoTRo.js → plugin-header-DlIuXUB1.js} +1 -1
- package/dist/client/assets/{popover-D64RiLTH.js → popover-C7TEDPPX.js} +1 -1
- package/dist/client/assets/project-layout-Bz0fAWOX.js +1 -0
- package/dist/client/assets/{projects-list-DnkqBPpp.js → projects-list-CZOJJQ4r.js} +1 -1
- package/dist/client/assets/{ranking-layout-Wlr8fTR0.js → ranking-layout-yXMf82Up.js} +1 -1
- package/dist/client/assets/{readme-viewer-DHp79NQe.js → readme-viewer-CPctzDRX.js} +1 -1
- package/dist/client/assets/{registry-layout-DYNrneTu.js → registry-layout-BZvQk7Y7.js} +1 -1
- package/dist/client/assets/{registry-utils-B3BaD7r8.js → registry-utils-Oggj_xMq.js} +1 -1
- package/dist/client/assets/{reports-layout-BbfZIE8e.js → reports-layout-DXFiVT0_.js} +1 -1
- package/dist/client/assets/{reset-password-BQ__IAnv.js → reset-password-DBiebA1w.js} +1 -1
- package/dist/client/assets/{resizable-DAFw0KAb.js → resizable-CCg_tI-V.js} +1 -1
- package/dist/client/assets/{save-actions-DGAmsooG.js → save-actions-DDzpXkd-.js} +1 -1
- package/dist/client/assets/{scroll-area-DH4YtMqo.js → scroll-area-qTHkfF4T.js} +1 -1
- package/dist/client/assets/{select-L9VC3PJn.js → select-DCzWOtv_.js} +1 -1
- package/dist/client/assets/shell-layout-pg8oeiHE.js +3 -0
- package/dist/client/assets/{skeleton-C7PEWbcl.js → skeleton-Bt3jUDUw.js} +1 -1
- package/dist/client/assets/{spinner-BCc4DqcN.js → spinner-CWE8tjzW.js} +1 -1
- package/dist/client/assets/{store-invite-CVYdc9iu.js → store-invite-DBKVKVIH.js} +1 -1
- package/dist/client/assets/{switch-EPGLJyI3.js → switch-Bvl66gxe.js} +1 -1
- package/dist/client/assets/{table-BKrr_ZVb.js → table-BA-KWrxY.js} +1 -1
- package/dist/client/assets/{tasks-Bn5ZyhP_.js → tasks-G7ZclK3d.js} +1 -1
- package/dist/client/assets/{textarea-bPVDAJiU.js → textarea-NFHS7lO4.js} +1 -1
- package/dist/client/assets/{time-range-picker-VyfEBU8i.js → time-range-picker-50MkRwwt.js} +1 -1
- package/dist/client/assets/{toggle-group-Dp_hXbL3.js → toggle-group-BycoE7QP.js} +1 -1
- package/dist/client/assets/{tools-list-BdI3Q54q.js → tools-list-CCnsAWVf.js} +1 -1
- package/dist/client/assets/{tooltip-Di7lOmib.js → tooltip-6JffvwCM.js} +1 -1
- package/dist/client/assets/{topbar-portal-DKAZNOCc.js → topbar-portal-BihfMmvT.js} +1 -1
- package/dist/client/assets/{typewriter-title-CJBquTSX.js → typewriter-title-C9sSe_PC.js} +1 -1
- package/dist/client/assets/{use-binding-lQ5At5HW.js → use-binding-8Em_uPSw.js} +1 -1
- package/dist/client/assets/{use-connection-DjTWTI9s.js → use-connection-BVmWInYm.js} +1 -1
- package/dist/client/assets/{use-copy-Cy4z0myA.js → use-copy-Ch2W8HP8.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DyqNrljf.js → use-create-virtual-mcp-CaLArXFt.js} +1 -1
- package/dist/client/assets/{use-deco-chat-open-BuSNLd83.js → use-deco-chat-open-CZ9jT-vT.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-Dww4DIOX.js → use-install-from-registry-CUoaU5II.js} +1 -1
- package/dist/client/assets/{use-list-state-1nCBLa98.js → use-list-state-C7ByWZZx.js} +1 -1
- package/dist/client/assets/{use-llm-Ce8POLUd.js → use-llm-CYTkm_iU.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-9RF1o3Vk.js → use-mcp-prompts-FdJ4b_gv.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-mAwwC0gK.js → use-mcp-tools-BKYvAeYX.js} +1 -1
- package/dist/client/assets/{use-mobile-Cyo_7CU1.js → use-mobile-CoSef9ka.js} +1 -1
- package/dist/client/assets/{use-organization-settings-dfLWy4_Y.js → use-organization-settings-CDSeX3ad.js} +1 -1
- package/dist/client/assets/{use-project-BLgGy5mK.js → use-project-grYbeSwv.js} +1 -1
- package/dist/client/assets/{use-settings-modal-BAyKuvP-.js → use-settings-modal-Ct2d62qN.js} +1 -1
- package/dist/client/assets/{use-view-mode-Dz6ZqxC7.js → use-view-mode-NjB2u4HS.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BA3G4Be3.js → use-virtual-mcp-CfiCk2LY.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-vr7wXeNh.js +1 -0
- package/dist/client/assets/{useMutation-byIh8vPM.js → useMutation-Bb4_Bkms.js} +1 -1
- package/dist/client/assets/useQuery-rvm-uvBH.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-ToEqDar0.js +1 -0
- package/dist/client/assets/{workflow-j7kNV5HR.js → workflow-CM2J2-FV.js} +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/Coins01-BilMBcS0.js +0 -1
- package/dist/client/assets/connection-detail-CbVv5VEj.js +0 -1
- package/dist/client/assets/constants-BHCPzANQ.js +0 -1
- package/dist/client/assets/page-B9pAkFvr.js +0 -1
- package/dist/client/assets/project-layout-BaHenL2i.js +0 -1
- package/dist/client/assets/shell-layout-BEcaEstI.js +0 -3
- package/dist/client/assets/useInfiniteQuery-CIiL-5Y3.js +0 -1
- package/dist/client/assets/useQuery-DcU1ldNG.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Dc-GS2UT.js +0 -1
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{r as z,c as w,j as s,u as le,b as Ce,by as _e,L as Ie,bF as xt,bG as ht,O as V,H as gt,e as Oe,d as ce,t as ae,bH as jt,b6 as bt,m as Nt,A as yt,S as He,f as vt,h as St,N as kt,n as Ct,K as _t,aD as Ue,P as wt}from"./index-DrrqKIxq.js";import{C as X}from"./index-0fcwYTfR.js";import{I as $t}from"./integration-icon-BVqKl9De.js";import{P as me,u as We,d as ie,e as ee,f as we,g as ge,h as je,i as Ge,j as zt,k as It,l as Be,m as Pt,n as At,o as Ot,p as Tt}from"./index-BzbwskdO.js";import{u as Te,C as Mt,e as Et,f as Lt}from"./use-deco-chat-open-BuSNLd83.js";import{c as G,B as Se}from"./button-CZPRmDPf.js";import{d as Dt,u as Rt}from"./constants-C2M7RsNt.js";import{T as Ft,i as Ht,b as Ut}from"./typewriter-title-CJBquTSX.js";import{s as xe}from"./Plus-CPirwa1w.js";import{t as Me}from"./Users03-B5yv7ula.js";import{i as Pe,a as Wt,b as Gt,T as Bt}from"./tooltip-Di7lOmib.js";import{E as qe}from"./error-boundary-DqZtjxEB.js";import{b as qt,i as Vt}from"./context-BgVlhaqT.js";import{C as Ve}from"./create-project-dialog-CICUNrHC.js";import{u as $e,S as Z}from"./skeleton-C7PEWbcl.js";import{t as Ke,u as Ye}from"./use-settings-modal-BAyKuvP-.js";import{n as De}from"./CheckDone01-CZrV6JdL.js";import{n as Kt}from"./Container-DmRzes59.js";import{e as Yt}from"./Dataflow03-DVn12h_U.js";import{a as Qt}from"./Home02-TEl7q7Ca.js";import{t as ke}from"./Settings01-C0WLxd49.js";import{a as Qe,u as Ze}from"./use-project-BLgGy5mK.js";import{t as Je}from"./ChevronDown-DHYql12c.js";import{A as ue}from"./avatar-DlH0tlJW.js";import{c as Y,g as he,d as Zt,e as Jt,f as Xt,b as Xe,D as et,a as tt}from"./dropdown-menu-CEy971MU.js";import{i as fe}from"./Check-CwhCIsIx.js";import{C as es}from"./create-organization-dialog-Cwe3EZ2W.js";import{a as ts}from"./Copy01-_H9GhcIe.js";import{i as st}from"./File06-D7PEf5a6.js";import{i as ss}from"./Globe01-D38ZY7LP.js";import{n as pe}from"./LinkExternal01-CpfoXnvY.js";import{i as rs}from"./Shield01-BbVNhLRQ.js";import{a as ns,P as is,b as os}from"./popover-D64RiLTH.js";import{i as ls}from"./Coins01-BilMBcS0.js";import{n as Re}from"./Inbox01-D4AhYFiy.js";import{s as as}from"./XClose-CBFYdEvF.js";import{h as cs}from"./use-connection-DjTWTI9s.js";import{b as ds}from"./use-mcp-tools-mAwwC0gK.js";import{u as rt,a as ms}from"./use-organization-settings-dfLWy4_Y.js";import{i as us}from"./ChevronRight-qRilEtY5.js";import{u as Ee,L as Le}from"./localstorage-keys-Dn-W0lb3.js";import{R as fs,a as nt,b as ps}from"./resizable-DAFw0KAb.js";import"./spinner-BCc4DqcN.js";import"./use-mcp-prompts-9RF1o3Vk.js";import"./useQuery-DcU1ldNG.js";import"./dialog-DGoua-F-.js";import"./form-CFbWoYe6.js";import"./label-CoS6RHW3.js";import"./input-C2aMc-tK.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-D7gFQV8U.js";import"./Edit01-BNuFD-E4.js";import"./XCircle-BGdKXUli.js";import"./AlertCircle-xlmc_ewP.js";import"./AlertTriangle-Ddzav--o.js";import"./ArrowLeft-Cm3_NyIq.js";import"./use-copy-Cy4z0myA.js";import"./badge-DApFAaFp.js";import"./Code01-CJtE_l6W.js";import"./use-virtual-mcp-BA3G4Be3.js";import"./SearchMd-CmV0Tepn.js";import"./use-create-virtual-mcp-DyqNrljf.js";import"./marked.esm-BaswSlok.js";import"./markdown-BM0BQJdP.js";import"./tools-list-BdI3Q54q.js";import"./collection-table-wrapper-Dg5F9IdT.js";import"./Grid01-CSoBYZVu.js";import"./List-FibtrqYM.js";import"./table-BKrr_ZVb.js";import"./empty-state-C_g2tsPC.js";import"./Loading01-Bl1Pk_oo.js";import"./card-RVty8OZv.js";import"./Eye-DRUYj907.js";import"./Globe02-C1VZ1Sth.js";import"./RefreshCw01-B1WiG0_Y.js";import"./layout-D1KoVO75.js";import"./generate-id-Dyweu44Y.js";import"./Clock-Ck0JfdvV.js";import"./Trash01-CsD9CMZr.js";import"./use-mobile-Cyo_7CU1.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-Ce8POLUd.js";import"./use-binding-lQ5At5HW.js";import"./binder-DA98_oix.js";import"./select-L9VC3PJn.js";import"./Image01-B7uGBtXf.js";import"./RefreshCcw01-DpTBiD-b.js";import"./useSuspenseInfiniteQuery-Dc-GS2UT.js";import"./infiniteQueryObserver-BUe0-uqo.js";import"./useMutation-byIh8vPM.js";import"./textarea-bPVDAJiU.js";import"./alert-dialog-DB07UdJN.js";const it=({size:t=24,color:e="currentColor",...r})=>z.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},z.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));it.displayName="BarChart10";const ot=({size:t=24,color:e="currentColor",...r})=>z.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},z.createElement("path",{d:"M8 14s1.5 2 4 2 4-2 4-2m-1-5h.01M9 9h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-6.5-3a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm-6 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"}));ot.displayName="FaceSmile";const lt=({size:t=24,color:e="currentColor",...r})=>z.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},z.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H9"}));lt.displayName="LogOut01";const at=({size:t=24,color:e="currentColor",...r})=>z.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},z.createElement("path",{d:"M8 9.5h4M8 13h7m-3 8a9 9 0 1 0-8.342-5.616c.081.2.122.3.14.381a.907.907 0 0 1 .024.219c0 .083-.015.173-.045.353l-.593 3.558c-.062.373-.093.56-.035.694a.5.5 0 0 0 .262.262c.135.058.321.027.694-.035l3.558-.593c.18-.03.27-.045.353-.045.081 0 .14.006.219.024.08.018.18.059.38.14A8.973 8.973 0 0 0 12 21Z"}));at.displayName="MessageTextCircle02";function xs(){const t=w.c(65),{org:e}=le(),[,r]=Te(),{selectedVirtualMcp:o,modelsConnections:i,isChatEmpty:l,activeThreadId:n,createThread:a,switchToThread:d,threads:c}=qt();let m;if(t[0]!==n||t[1]!==c){let U;t[3]!==n?(U=B=>B.id===n,t[3]=n,t[4]=U):U=t[4],m=c.find(U),t[0]=n,t[1]=c,t[2]=m}else m=t[2];const f=m,[u,h]=z.useState(!1),[x,g]=z.useTransition();let j;t[5]!==e.id?(j=Dt(e.id),t[5]=e.id,t[6]=j):j=t[6];const p=o??j;let b;t[7]!==a?(b=()=>{g(()=>{a()})},t[7]=a,t[8]=b):b=t[8];const S=b;if(i.length===0){let U;t[9]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(me.Header.Left,{className:"gap-2"}),t[9]=U):U=t[9];let B;t[10]!==r?(B=()=>r(!1),t[10]=r,t[11]=B):B=t[11];let k;t[12]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(Pe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=k):k=t[12];let q;t[13]!==B?(q=s.jsxs(me.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[U,s.jsx(me.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:B,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:k})})]}),t[13]=B,t[14]=q):q=t[14];let ne;t[15]!==e?(ne=s.jsx(X.Main,{className:"flex flex-col items-center",children:s.jsx(X.EmptyState,{children:s.jsx(X.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[15]=e,t[16]=ne):ne=t[16];let de;return t[17]!==q||t[18]!==ne?(de=s.jsxs(X,{className:"animate-in fade-in-0 duration-200",children:[q,ne]}),t[17]=q,t[18]=ne,t[19]=de):de=t[19],de}const y=u?"duration-300 opacity-0 -translate-x-4 pointer-events-none":x?"duration-150 opacity-0 pointer-events-none":"duration-300 opacity-100 translate-x-0";let C;t[20]!==y?(C=G("absolute inset-0 flex flex-col transition-[opacity,transform] ease-[var(--ease-out-quart)]",y),t[20]=y,t[21]=C):C=t[21];let N;t[22]!==f||t[23]!==l?(N=!l&&f?.title&&s.jsx(Ft,{text:f.title,className:"text-sm font-medium text-foreground"}),t[22]=f,t[23]=l,t[24]=N):N=t[24];let I;t[25]!==N?(I=s.jsx(me.Header.Left,{className:"gap-2",children:N}),t[25]=N,t[26]=I):I=t[26];let T;t[27]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(xe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=T):T=t[27];let E;t[28]!==S||t[29]!==x?(E=s.jsx("button",{type:"button",onClick:S,disabled:x,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:T}),t[28]=S,t[29]=x,t[30]=E):E=t[30];let M;t[31]===Symbol.for("react.memo_cache_sentinel")?(M=()=>h(!0),t[31]=M):M=t[31];let W;t[32]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx("button",{type:"button",onClick:M,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Chat history",children:s.jsx(Ht,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=W):W=t[32];let D;t[33]!==r?(D=()=>r(!1),t[33]=r,t[34]=D):D=t[34];let R;t[35]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(Pe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[35]=R):R=t[35];let P;t[36]!==D?(P=s.jsx("button",{type:"button",onClick:D,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:R}),t[36]=D,t[37]=P):P=t[37];let L;t[38]!==P||t[39]!==E?(L=s.jsxs(me.Header.Right,{className:"gap-1",children:[E,W,P]}),t[38]=P,t[39]=E,t[40]=L):L=t[40];let $;t[41]!==L||t[42]!==I?($=s.jsxs(me.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[I,L]}),t[41]=L,t[42]=I,t[43]=$):$=t[43];let A;t[44]!==p||t[45]!==l?(A=s.jsx(X.Main,{children:l?s.jsx(X.EmptyState,{children:s.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[s.jsx($t,{icon:p.icon,name:p.title,size:"lg",fallbackIcon:s.jsx(Me,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:p.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:p.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(X.IceBreakers,{})]})}):s.jsx(X.Messages,{})}),t[44]=p,t[45]=l,t[46]=A):A=t[46];let O;t[47]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(X.Footer,{children:s.jsx(X.Input,{})}),t[47]=O):O=t[47];let F;t[48]!==$||t[49]!==A||t[50]!==C?(F=s.jsxs("div",{className:C,children:[$,A,O]}),t[48]=$,t[49]=A,t[50]=C,t[51]=F):F=t[51];const re=u?"opacity-100 translate-x-0":"opacity-0 translate-x-4 pointer-events-none";let te;t[52]!==re?(te=G("absolute inset-0 flex flex-col transition-[opacity,transform] duration-300 ease-[var(--ease-out-quart)]",re),t[52]=re,t[53]=te):te=t[53];let se;t[54]===Symbol.for("react.memo_cache_sentinel")?(se=()=>h(!1),t[54]=se):se=t[54];let K;t[55]!==n||t[56]!==d||t[57]!==c?(K=s.jsx(Ut,{threads:c,activeThreadId:n,onThreadSelect:d,onClose:se}),t[55]=n,t[56]=d,t[57]=c,t[58]=K):K=t[58];let H;t[59]!==te||t[60]!==K?(H=s.jsx("div",{className:te,children:K}),t[59]=te,t[60]=K,t[61]=H):H=t[61];let Q;return t[62]!==F||t[63]!==H?(Q=s.jsxs(X,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[F,H]}),t[62]=F,t[63]=H,t[64]=Q):Q=t[64],Q}function hs(){const t=w.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(X.Skeleton,{}),t[0]=e):e=t[0];let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(qe,{fallback:e,children:s.jsx(z.Suspense,{fallback:s.jsx(X.Skeleton,{}),children:s.jsx(xs,{})})}),t[1]=r):r=t[1],r}function gs(){const t=w.c(54),[e]=$e(),{locator:r,org:o}=le(),i=Ce(),l=_e(),{org:n,project:a}=Ie.parse(r),d=Ie.isOrgAdminProject(r),{data:c}=Qe(o.id,a);let m;t[0]!==c?.enabledPlugins?(m=c?.enabledPlugins??[],t[0]=c?.enabledPlugins,t[1]=m):m=t[1];const f=m;let u;t[2]!==f?(u=_=>f.includes(_.pluginId),t[2]=f,t[3]=u):u=t[3];const h=xt.filter(u),x=l.location.pathname,g=`/${n}/${a}`,j=x===g||x===`${g}/`;let v;t[4]!==g||t[5]!==x?(v=_=>x.startsWith(`${g}/${_}`),t[4]=g,t[5]=x,t[6]=v):v=t[6];const p=v;let b;t[7]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Qt,{}),t[7]=b):b=t[7];const S={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 y;t[8]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(De,{}),t[8]=y):y=t[8];const C={key:"tasks",label:"Tasks",icon:y,isActive:p("tasks"),onClick:()=>i({to:"/$org/$project/tasks",params:{org:n,project:V}})};let N;t[9]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(Kt,{}),t[9]=N):N=t[9];const I={key:"mcps",label:"Connections",icon:N,isActive:p("mcps"),onClick:()=>i({to:"/$org/$project/mcps",params:{org:n,project:V}})};let T;t[10]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(gt,{}),t[10]=T):T=t[10];const E={key:"projects",label:"Projects",icon:T,isActive:p("projects"),onClick:()=>i({to:"/$org/$project/projects",params:{org:n,project:V}})};let M;t[11]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(Ke,{}),t[11]=M):M=t[11];const W={key:"store",label:"Store",icon:M,isActive:p("store"),onClick:()=>i({to:"/$org/$project/store",params:{org:n,project:V}})};let D;t[12]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Me,{}),t[12]=D):D=t[12];const R={key:"agents",label:"Agents",icon:D,isActive:p("agents"),onClick:()=>i({to:"/$org/$project/agents",params:{org:n,project:V}})};let P;t[13]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(it,{}),t[13]=P):P=t[13];const L={key:"monitoring",label:"Monitor",icon:P,isActive:p("monitoring"),onClick:()=>i({to:"/$org/$project/monitoring",params:{org:n,project:V}})};let $;t[14]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(ot,{}),t[14]=$):$=t[14];const A={key:"members",label:"Members",icon:$,isActive:p("members"),onClick:()=>i({to:"/$org/$project/members",params:{org:n,project:V}})},O=h.map(_=>({key:_.pluginId,label:_.label,icon:_.icon,isActive:p(_.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:n,project:a,pluginId:_.pluginId}})}));let F;t[15]!==f?(F=_=>f.includes(_.pluginId),t[15]=f,t[16]=F):F=t[16];const te=ht.filter(F).map(_=>({type:"group",group:{id:`${_.pluginId}-${_.id}`,label:_.label,items:_.items.map((J,oe)=>({key:`${_.pluginId}-${_.id}-${oe}`,label:J.label,icon:J.icon,isActive:p(_.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:n,project:a,pluginId:_.pluginId}})})),defaultExpanded:_.defaultExpanded??!0}}));if(d){let _;t[17]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(ke,{}),t[17]=_):_=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:V}}),t[20]=i,t[21]=n,t[22]=oe):oe=t[22];let ye;t[23]!==J||t[24]!==oe?(ye={key:"settings",label:"Settings",icon:_,isActive:J,onClick:oe},t[23]=J,t[24]=oe,t[25]=ye):ye=t[25];const pt=ye,ze=[{type:"items",items:[S,...e.experimental_tasks?[C]:[],...e.experimental_projects?[E]:[]]},{type:"group",group:{id:"build",label:"Build",items:[R,I,W],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[L,A,pt],defaultExpanded:!0}}];if(O.length>0){let ve;t[26]!==O?(ve={type:"items",items:O},t[26]=O,t[27]=ve):ve=t[27],ze.push(ve)}return te.length>0&&ze.push(...te),ze}let se;t[28]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(De,{}),t[28]=se):se=t[28];let K;t[29]!==p?(K=p("tasks"),t[29]=p,t[30]=K):K=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]!==K||t[36]!==H?(Q={key:"tasks",label:"Tasks",icon:se,isActive:K,onClick:H},t[35]=K,t[36]=H,t[37]=Q):Q=t[37];const U=Q;let B;t[38]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(Yt,{}),t[38]=B):B=t[38];let k;t[39]!==p?(k=p("workflows"),t[39]=p,t[40]=k):k=t[40];let q;t[41]!==i||t[42]!==n||t[43]!==a?(q=()=>i({to:"/$org/$project/workflows",params:{org:n,project:a}}),t[41]=i,t[42]=n,t[43]=a,t[44]=q):q=t[44];let ne;t[45]!==k||t[46]!==q?(ne={key:"workflows",label:"Workflows",icon:B,isActive:k,onClick:q},t[45]=k,t[46]=q,t[47]=ne):ne=t[47];const de=ne;let be;t[48]!==e.experimental_tasks||t[49]!==U?(be=e.experimental_tasks?[U]:[],t[48]=e.experimental_tasks,t[49]=U,t[50]=be):be=t[50];const Ne=[{type:"items",items:[S,...be,de]}];if(O.length>0){let _;t[51]===Symbol.for("react.memo_cache_sentinel")?(_={type:"divider"},t[51]=_):_=t[51],Ne.push(_);let J;t[52]!==O?(J={type:"items",items:O},t[52]=O,t[53]=J):J=t[53],Ne.push(J)}return te.length>0&&Ne.push(...te),Ne}function js(t){const e=w.c(11),{label:r,children:o,defaultExpanded:i}=t,l=i===void 0?!0:i,[n,a]=z.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(ee,{children:s.jsxs(we,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>a(!n),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:r}),s.jsx(Je,{size:12,className:G("text-muted-foreground transition-transform duration-200",!n&&"-rotate-90")})]})})}),e[0]=n,e[1]=c,e[2]=r,e[3]=m):m=e[3];let f;e[4]!==o||e[5]!==n||e[6]!==c?(f=(c||n)&&s.jsx(ge,{children:s.jsx(ie,{className:"gap-0.5",children:o})}),e[4]=o,e[5]=n,e[6]=c,e[7]=f):f=e[7];let u;return e[8]!==m||e[9]!==f?(u=s.jsxs(je,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[m,f]}),e[8]=m,e[9]=f,e[10]=u):u=e[10],u}function ct(t){const e=w.c(13),{item:r}=t;let o;e[0]!==r.icon?(o=s.jsx("span",{className:"[&>svg]:size-4",children:r.icon}),e[0]=r.icon,e[1]=o):o=e[1];let i;e[2]!==r.label?(i=s.jsx("span",{className:"truncate group-data-[collapsible=icon]:hidden",children:r.label}),e[2]=r.label,e[3]=i):i=e[3];let l;e[4]!==r.isActive||e[5]!==r.label||e[6]!==r.onClick||e[7]!==o||e[8]!==i?(l=s.jsxs(we,{onClick:r.onClick,isActive:r.isActive,tooltip:r.label,children:[o,i]}),e[4]=r.isActive,e[5]=r.label,e[6]=r.onClick,e[7]=o,e[8]=i,e[9]=l):l=e[9];let n;return e[10]!==r.key||e[11]!==l?(n=s.jsx(ee,{children:l},r.key),e[10]=r.key,e[11]=l,e[12]=n):n=e[12],n}function bs(t){const e=w.c(12),{section:r}=t;switch(r.type){case"divider":{let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Ge,{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(ys),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(js,{label:o,defaultExpanded:i,children:l}),e[4]=r.group.defaultExpanded,e[5]=r.group.label,e[6]=l,e[7]=n):n=e[7],n}case"items":{let o;e[8]!==r.items?(o=r.items.map(Ns),e[8]=r.items,e[9]=o):o=e[9];let i;return e[10]!==o?(i=s.jsx(je,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(ge,{children:s.jsx(ie,{className:"gap-0.5",children:o})})}),e[10]=o,e[11]=i):i=e[11],i}}}function Ns(t){return s.jsx(ct,{item:t},t.key)}function ys(t){return s.jsx(ct,{item:t},t.key)}function dt(t){const e=w.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=G("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(vs),e[2]=r,e[3]=u):u=e[3];let h;e[4]!==l||e[5]!==f||e[6]!==u?(h=s.jsxs(zt,{className:f,children:[u,l]}),e[4]=l,e[5]=f,e[6]=u,e[7]=h):h=e[7];let x;return e[8]!==m||e[9]!==i||e[10]!==o||e[11]!==h||e[12]!==c?(x=s.jsxs(It,{variant:c,collapsible:m,children:[o,h,i]}),e[8]=m,e[9]=i,e[10]=o,e[11]=h,e[12]=c,e[13]=x):x=e[13],x}function vs(t,e){return s.jsx(bs,{section:t},e)}dt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,r)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(Z,{className:"h-full bg-sidebar-accent rounded-md"})},r))})};function Ss(){const t=w.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 ks(t){const e=w.c(12),{organizationId:r,currentProjectSlug:o,onSelect:i}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={suspense:!0},e[0]=l):l=e[0];const{data:n}=Ze(r,l);let a,d;if(e[1]!==o||e[2]!==i||e[3]!==n){d=Symbol.for("react.early_return_sentinel");e:{const m=n?.filter(Cs)??[];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 h=o===u.slug,x=u.ui?.themeColor??"#3B82F6";return s.jsxs(Y,{className:G("gap-2.5",h&&"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}),h&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},u.id)},e[7]=o,e[8]=i,e[9]=f):f=e[9],a=m.map(f)}e[1]=o,e[2]=i,e[3]=n,e[4]=a,e[5]=d}else a=e[4],d=e[5];if(d!==Symbol.for("react.early_return_sentinel"))return d;let c;return e[10]!==a?(c=s.jsx(s.Fragment,{children:a}),e[10]=a,e[11]=c):c=e[11],c}function Cs(t){return t.slug!==V}function _s(t){let e=0;for(let o=0;o<t.length;o++)e=t.charCodeAt(o)+((e<<5)-e);const r=Math.abs(e)%360;return{backgroundColor:`hsl(${r} 55% 70%)`,color:`hsl(${r} 55% 20%)`}}function mt(t){const e=w.c(44),{isCollapsed:r,onCreateProject:o}=t,i=r===void 0?!1:r;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},e[0]=l):l=e[0];const{org:n,project:a}=Oe(l),{data:d}=ce.useListOrganizations(),c=Ce(),m=d?.find(k=>k.slug===n),[f,u]=z.useState(!1),[h]=$e(),x=h.experimental_projects,g=a===V,{data:j}=Qe(m?.id??"",g?"":a??"");let v;e[1]!==n?(v=(k,q)=>k.slug===n?-1:q.slug===n?1:k.name.localeCompare(q.name),e[1]=n,e[2]=v):v=e[2];const p=[...d??[]].sort(v);let b;e[3]!==c||e[4]!==n?(b=()=>{n&&c({to:"/$org/$project",params:{org:n,project:V}})},e[3]=c,e[4]=n,e[5]=b):b=e[5];const S=b;let y;e[6]!==c||e[7]!==n?(y=k=>{n&&c({to:"/$org/$project",params:{org:n,project:k}})},e[6]=c,e[7]=n,e[8]=y):y=e[8];const C=y;let N;e[9]!==c?(N=k=>{c({to:"/$org/$project",params:{org:k,project:V}})},e[9]=c,e[10]=N):N=e[10];const I=N;let T;e[11]!==o?(T=o?()=>o():void 0,e[11]=o,e[12]=T):T=e[12];const E=T;let M;e[13]!==c||e[14]!==n||e[15]!==a?(M=()=>{if(!n||!a)return;const k=a===V;c({to:"/$org/$project",params:{org:n,project:a},search:q=>({...q,settings:k?"org.general":`project:${a}:general`})})},e[13]=c,e[14]=n,e[15]=a,e[16]=M):M=e[16];const W=M,D=et,R=i?"w-auto pr-1.5":"w-full";let P;e[17]!==R?(P=G("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]",R),e[17]=R,e[18]=P):P=e[18];const L=g?s.jsx("div",{className:G("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:_s(m?.name??""),children:m?.logo?s.jsx("img",{src:m.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:G("font-semibold leading-none",i?"text-[9px]":"text-xs"),children:(m?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:G("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:G("font-semibold text-white",i?"text-xs":"text-lg"),children:(j?.name??a??"?").charAt(0).toUpperCase()})});let $;e[19]!==m?.name||e[20]!==j?.name||e[21]!==x||e[22]!==i||e[23]!==g||e[24]!==a?($=!i&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:x?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:m?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:g?"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(Vt,{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]=g,e[24]=a,e[25]=$):$=e[25];let A;e[26]!==P||e[27]!==L||e[28]!==$?(A=s.jsx(tt,{asChild:!0,children:s.jsxs("button",{type:"button",className:P,children:[L,$]})}),e[26]=P,e[27]=L,e[28]=$,e[29]=A):A=e[29];const O=Xe,F="start",re="bottom",te="w-64 flex flex-col gap-0.5",se=ws,K=x?s.jsxs(s.Fragment,{children:[s.jsxs(Y,{className:G("gap-2.5",g&&"bg-accent"),onClick:S,children:[s.jsx(ue,{url:m?.logo??"",fallback:m?.name??"",size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",m?.name]}),g&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]}),s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Projects"}),m&&s.jsx(z.Suspense,{fallback:s.jsx(Ss,{}),children:s.jsx(ks,{organizationId:m.id,currentProjectSlug:a,orgSlug:n??"",onSelect:C})}),E&&s.jsxs(Y,{className:"gap-2.5",onClick:E,children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),s.jsx(he,{}),s.jsxs(Zt,{children:[s.jsxs(Jt,{className:"gap-2.5",children:[s.jsx(Ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),s.jsxs(Xt,{className:"w-48 flex flex-col gap-0.5",children:[p.map(k=>s.jsxs(Y,{className:G("gap-2.5",k.slug===n&&"bg-accent"),onClick:()=>I(k.slug),children:[s.jsx(ue,{url:k.logo??"",fallback:k.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:k.name}),k.slug===n&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},k.id)),s.jsx(he,{}),s.jsxs(Y,{className:"gap-2.5",onClick:()=>u(!0),children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]})]})]}),s.jsxs(Y,{className:"gap-2.5",onClick:W,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(k=>s.jsxs(Y,{className:G("gap-2.5",k.slug===n&&"bg-accent"),onClick:()=>I(k.slug),children:[s.jsx(ue,{url:k.logo??"",fallback:k.name,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:k.name}),k.slug===n&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},k.id)),s.jsxs(Y,{className:"gap-2.5",onClick:()=>u(!0),children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]}),s.jsx(he,{}),s.jsxs(Y,{className:"gap-2.5",onClick:W,children:[s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]});let H;e[30]!==O||e[31]!==se||e[32]!==K?(H=s.jsx(O,{align:F,side:re,className:te,onCloseAutoFocus:se,children:K}),e[30]=O,e[31]=se,e[32]=K,e[33]=H):H=e[33];let Q;e[34]!==D||e[35]!==A||e[36]!==H?(Q=s.jsxs(D,{children:[A,H]}),e[34]=D,e[35]=A,e[36]=H,e[37]=Q):Q=e[37];let U;e[38]!==f||e[39]!==u?(U=s.jsx(es,{open:f,onOpenChange:u}),e[38]=f,e[39]=u,e[40]=U):U=e[40];let B;return e[41]!==Q||e[42]!==U?(B=s.jsxs(s.Fragment,{children:[Q,U]}),e[41]=Q,e[42]=U,e[43]=B):B=e[43],B}function ws(t){return t.preventDefault()}mt.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(Z,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(Z,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Ae(t){const e=w.c(23),{onCreateProject:r}=t,{state:o}=We(),i=o==="collapsed",[l,n]=Te();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const{org:d,project:c}=Oe(a),{location:m}=_e(),f=m.pathname===`/${d}/${c}`||m.pathname===`/${d}/${c}/`;let u;e[1]!==n?(u=()=>{n($s)},e[1]=n,e[2]=u):u=e[2];const h=u;let x;e[3]!==i||e[4]!==r?(x=s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(mt,{isCollapsed:i,onCreateProject:r})}),e[3]=i,e[4]=r,e[5]=x):x=e[5];const g=i||f?"max-w-0 opacity-0 pointer-events-none":"max-w-[2rem] opacity-100";let j;e[6]!==g?(j=G("flex items-center gap-0.5 shrink-0 overflow-hidden transition-[max-width,opacity] duration-300 ease-[var(--ease-out-quart)]",g),e[6]=g,e[7]=j):j=e[7];const v=l&&"bg-sidebar-accent text-sidebar-foreground";let p;e[8]!==v?(p=G("size-7 hover:bg-sidebar-accent text-sidebar-foreground/50 hover:text-sidebar-foreground",v),e[8]=v,e[9]=p):p=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(at,{size:14,className:"text-inherit"}),e[10]=b):b=e[10];let S;e[11]!==p||e[12]!==h?(S=s.jsx(Wt,{asChild:!0,children:s.jsx(Se,{variant:"ghost",size:"icon",className:p,onClick:h,"aria-label":"Toggle Decopilot",children:b})}),e[11]=p,e[12]=h,e[13]=S):S=e[13];let y;e[14]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(Gt,{side:"bottom",children:"Toggle Decopilot"}),e[14]=y):y=e[14];let C;e[15]!==S?(C=s.jsxs(Bt,{children:[S,y]}),e[15]=S,e[16]=C):C=e[16];let N;e[17]!==C||e[18]!==j?(N=s.jsx("div",{className:j,children:C}),e[17]=C,e[18]=j,e[19]=N):N=e[19];let I;return e[20]!==N||e[21]!==x?(I=s.jsx(Be,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(ie,{children:s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[x,N]})})})}),e[20]=N,e[21]=x,e[22]=I):I=e[22],I}function $s(t){return!t}Ae.Skeleton=function(){return s.jsx(Be,{className:"px-3",children:s.jsx(ie,{children:s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 p-1.5",children:[s.jsx(Z,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(Z,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsxs("div",{className:"flex items-center gap-0.5",children:[s.jsx(Z,{className:"size-7 rounded-lg bg-sidebar-accent"}),s.jsx(Z,{className:"size-7 rounded-lg bg-sidebar-accent"})]})]})})})})};function zs(t){const e=w.c(49),{user:r,userImage:o}=t,{open:i}=Ye(),[l,n]=z.useState(!1);let a;e[0]!==r.email||e[1]!==r.id||e[2]!==r.name?(a=()=>{const F=`ID: ${r.id}
|
|
2
|
-
Name: ${r.name||"N/A"}
|
|
3
|
-
Email: ${r.email}`;navigator.clipboard.writeText(F),n(!0),ae.success("User info copied to clipboard"),setTimeout(()=>n(!1),2e3)},e[0]=r.email,e[1]=r.id,e[2]=r.name,e[3]=a):a=e[3];const d=a,c=r.name||r.email||"U";let m;e[4]!==c||e[5]!==o?(m=s.jsx(ue,{url:o,fallback:c,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=c,e[5]=o,e[6]=m):m=e[6];const f=r.name||"User";let u;e[7]!==f?(u=s.jsx("div",{className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:s.jsx("div",{className:"text-sm font-medium truncate text-sidebar-foreground leading-none",children:f})}),e[7]=f,e[8]=u):u=e[8];let h;e[9]!==m||e[10]!==u?(h=s.jsx(tt,{asChild:!0,children:s.jsxs("button",{className:"flex w-full h-8 items-center gap-2 rounded-md px-1 hover:bg-sidebar-accent transition-colors text-left min-w-0",children:[m,u]})}),e[9]=m,e[10]=u,e[11]=h):h=e[11];const x=r.name||r.email||"U";let g;e[12]!==x||e[13]!==o?(g=s.jsx(ue,{url:o,fallback:x,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=x,e[13]=o,e[14]=g):g=e[14];const j=r.name||"User";let v;e[15]!==j?(v=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=v):v=e[16];let p;e[17]!==r.email?(p=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:r.email}),e[17]=r.email,e[18]=p):p=e[18];let b;e[19]!==v||e[20]!==p?(b=s.jsxs("div",{className:"flex-1 min-w-0",children:[v,p]}),e[19]=v,e[20]=p,e[21]=b):b=e[21];let S;e[22]!==l?(S=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:l?s.jsx(fe,{size:14,className:"text-green-600"}):s.jsx(ts,{size:14,className:"text-muted-foreground"})}),e[22]=l,e[23]=S):S=e[23];let y;e[24]!==d||e[25]!==b||e[26]!==S||e[27]!==g?(y=s.jsxs(Y,{onClick:d,className:"gap-2.5 group",children:[g,b,S]}),e[24]=d,e[25]=b,e[26]=S,e[27]=g,e[28]=y):y=e[28];let C;e[29]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(he,{}),e[29]=C):C=e[29];let N;e[30]!==i?(N=()=>i("account.preferences"),e[30]=i,e[31]=N):N=e[31];let I,T;e[32]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),T=s.jsx("span",{children:"Settings"}),e[32]=I,e[33]=T):(I=e[32],T=e[33]);let E;e[34]!==N?(E=s.jsxs(Y,{className:"gap-2.5",onClick:N,children:[I,T]}),e[34]=N,e[35]=E):E=e[35];let M;e[36]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(Y,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(st,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=M):M=e[36];let W;e[37]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(Y,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(rs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=W):W=e[37];let D;e[38]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Y,{asChild:!0,children:s.jsxs("a",{href:"https://github.com/decocms/mesh",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(jt,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=D):D=e[38];let R;e[39]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(Y,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com/discord",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Me,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=R):R=e[39];let P,L;e[40]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(Y,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ss,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),L=s.jsx(he,{}),e[40]=P,e[41]=L):(P=e[40],L=e[41]);let $;e[42]===Symbol.for("react.memo_cache_sentinel")?($=s.jsxs(Y,{className:"gap-2.5",onClick:Is,children:[s.jsx(lt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=$):$=e[42];let A;e[43]!==y||e[44]!==E?(A=s.jsxs(Xe,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:Ps,children:[y,C,E,M,W,D,R,P,L,$]}),e[43]=y,e[44]=E,e[45]=A):A=e[45];let O;return e[46]!==A||e[47]!==h?(O=s.jsxs(et,{children:[h,A]}),e[46]=A,e[47]=h,e[48]=O):O=e[48],O}function Is(){return ce.signOut()}function Ps(t){return t.preventDefault()}function ut(){const t=w.c(7),{data:e}=ce.useSession();if(!e?.user){let d;return t[0]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(ue,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=d):d=t[0],d}const r=e.user,o=r.name??void 0;let i;t[1]!==o||t[2]!==r?(i={...r,name:o},t[1]=o,t[2]=r,t[3]=i):i=t[3];const l=i,n=r.image;let a;return t[4]!==n||t[5]!==l?(a=s.jsx(zs,{user:l,userImage:n}),t[4]=n,t[5]=l,t[6]=a):a=t[6],a}function As({invitation:t}){const[e,r]=z.useState(!1),[o,i]=z.useState(!1),l=Nt(),n=async()=>{r(!0);try{const d=await ce.organization.acceptInvitation({invitationId:t.id});if(d.error)ae.error(d.error.message),r(!1);else{const c=await ce.organization.setActive({organizationId:t.organizationId});ae.success("Invitation accepted!");const m=c?.data?.slug;window.location.href=m?`/${m}`:"/"}}catch{ae.error("Failed to accept invitation"),r(!1)}},a=async()=>{i(!0);try{const d=await ce.organization.rejectInvitation({invitationId:t.id});d.error?(ae.error(d.error.message),i(!1)):(ae.success("Invitation declined"),l.invalidateQueries())}catch{ae.error("Failed to decline invitation"),i(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"You've been invited to join"}),s.jsx("p",{className:"text-sm font-medium truncate",children:t.organizationName??"Unknown organization"})]}),s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s.jsx(Se,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:n,disabled:e||o,"aria-label":"Accept invitation",children:s.jsx(fe,{size:14})}),s.jsx(Se,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:a,disabled:e||o,"aria-label":"Decline invitation",children:s.jsx(as,{size:14})})]})]})}function Os(){const t=z.useContext(bt),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(o=>o.status==="pending"&&new Date(o.expiresAt)>new Date)}class Ts extends z.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 Ms=["sites-deco-ai-gateway.decocache.com"];function Es(t){const e=w.c(16),{connectionId:r}=t,{open:o}=Ye(),{org:i}=le();let l;e[0]!==r||e[1]!==i.id?(l={connectionId:r,orgId:i.id},e[0]=r,e[1]=i.id,e[2]=l):l=e[2];const n=Rt(l);let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a={},e[3]=a):a=e[3];let d;e[4]!==n?(d={client:n,toolName:"GATEWAY_USAGE",toolArguments:a,staleTime:6e4,select:Ls},e[4]=n,e[5]=d):d=e[5];const{data:c}=ds(d),m=c?.limit.remaining??0;let f;e[6]!==o?(f=()=>o("org.billing"),e[6]=o,e[7]=f):f=e[7];let u;e[8]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(ls,{size:13,className:"text-muted-foreground/60 shrink-0"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Credits"})]}),e[8]=u):u=e[8];let h;e[9]!==m?(h=m.toFixed(2),e[9]=m,e[10]=h):h=e[10];let x;e[11]!==h?(x=s.jsxs("span",{className:"text-xs font-medium tabular-nums text-foreground/70",children:["$",h]}),e[11]=h,e[12]=x):x=e[12];let g;return e[13]!==f||e[14]!==x?(g=s.jsxs("button",{type:"button",onClick:f,className:"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",children:[u,x]}),e[13]=f,e[14]=x,e[15]=g):g=e[15],g}function Ls(t){return t.structuredContent}function Ds(){const e=cs().find(r=>{try{return!!r.connection_url&&Ms.includes(new URL(r.connection_url).host)}catch{return!1}});return e?.id?s.jsx(Es,{connectionId:e.id}):null}function Rs(){const t=w.c(13),e=Os();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ts,{children:s.jsx(z.Suspense,{fallback:null,children:s.jsx(Ds,{})})}),t[0]=r):r=t[0];let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(ut,{})}),t[1]=o):o=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(is,{asChild:!0,children:s.jsx(Se,{variant:"ghost",size:"icon",className:"size-8 text-sidebar-foreground/50 hover:text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Open inbox",children:s.jsx(Re,{size:16})})}),t[2]=i):i=t[2];let l;t[3]!==e.length?(l=e.length>0&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 ring-2 ring-sidebar pointer-events-none"}),t[3]=e.length,t[4]=l):l=t[4];let n;t[5]!==l?(n=s.jsxs("div",{className:"relative",children:[i,l]}),t[5]=l,t[6]=n):n=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"px-4 py-3 border-b border-border shrink-0",children:s.jsx("h3",{className:"text-sm font-medium",children:"Inbox"})}),t[7]=a):a=t[7];let d;t[8]!==e?(d=s.jsxs(ns,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[a,e.length===0?s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[s.jsx(Re,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"No messages or invites pending"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Messages, workspace and project invitations will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:e.map(Fs)})]}),t[8]=e,t[9]=d):d=t[9];let c;return t[10]!==n||t[11]!==d?(c=s.jsxs(Pt,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[r,s.jsx(ie,{children:s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[o,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(os,{children:[n,d]})})]})})})]}),t[10]=n,t[11]=d,t[12]=c):c=t[12],c}function Fs(t){return s.jsx(As,{invitation:t},t.id)}function ft(t){const e=w.c(4),{children:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Ge,{className:"my-2"}),e[0]=o):o=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ee,{children:s.jsx("div",{className:"group-data-[collapsible=icon]:hidden px-2 py-0 text-xs font-medium h-6 text-muted-foreground flex items-center justify-between",children:s.jsx("span",{className:"whitespace-nowrap",children:"Pinned Views"})})}),e[1]=i):i=e[1];let l;return e[2]!==r?(l=s.jsxs(s.Fragment,{children:[o,i,r]}),e[2]=r,e[3]=l):l=e[3],l}function Hs(t){const e=w.c(26),{item:r}=t,o=Ce(),{org:i}=le(),l=rt(i.id),n=ms(i.id);let a;e[0]!==n.update||e[1]!==r.url||e[2]!==l?.sidebar_items?(a=async()=>{const S=(l?.sidebar_items||[]).filter(y=>y.url!==r.url);await n.update.mutateAsync({sidebar_items:S})},e[0]=n.update,e[1]=r.url,e[2]=l?.sidebar_items,e[3]=a):a=e[3];const d=a;let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=/^https?:\/\/.+/,e[4]=c):c=e[4];let m;e[5]!==r.icon?(m=c.test(r.icon),e[5]=r.icon,e[6]=m):m=e[6];const f=m;let u;e[7]!==r.url||e[8]!==o?(u=()=>{o({to:r.url})},e[7]=r.url,e[8]=o,e[9]=u):u=e[9];const h=r.title;let x;e[10]!==f||e[11]!==r.icon||e[12]!==r.title?(x=s.jsx("div",{className:"flex items-center justify-center shrink-0",children:f?s.jsx("img",{src:r.icon,alt:r.title,className:"h-4 w-4 rounded object-cover"}):s.jsx(st,{size:16,className:"text-muted-foreground group-hover/item:text-foreground transition-colors"})}),e[10]=f,e[11]=r.icon,e[12]=r.title,e[13]=x):x=e[13];let g;e[14]!==r.title?(g=r.title.toLocaleLowerCase(),e[14]=r.title,e[15]=g):g=e[15];let j;e[16]!==g?(j=s.jsx("div",{className:"flex-1 min-w-0 flex flex-col items-start",children:s.jsx("span",{className:"truncate text-sm w-full capitalize",children:g})}),e[16]=g,e[17]=j):j=e[17];let v;e[18]!==d?(v=s.jsx(Pe,{size:16,className:"text-muted-foreground opacity-0 group-hover/item:opacity-50 hover:opacity-100 cursor-pointer",onClick:b=>{b.preventDefault(),b.stopPropagation(),d()}}),e[18]=d,e[19]=v):v=e[19];let p;return e[20]!==r.title||e[21]!==u||e[22]!==x||e[23]!==j||e[24]!==v?(p=s.jsx(ee,{children:s.jsxs(we,{className:"w-full pr-2 group/item relative cursor-pointer text-foreground/90 hover:text-foreground",onClick:u,tooltip:h,children:[x,j,v]})}),e[20]=r.title,e[21]=u,e[22]=x,e[23]=j,e[24]=v,e[25]=p):p=e[25],p}function Fe(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(ee,{children:s.jsx("div",{className:"flex items-center gap-2 px-4 py-2",children:s.jsx(Z,{className:"h-4 flex-1"})})}),t[0]=e):e=t[0],e}function Us(){const t=w.c(4),{org:e}=le(),o=rt(e.id)?.sidebar_items;if(!o?.length)return null;let i;t[0]!==o?(i=o.map(Ws),t[0]=o,t[1]=i):i=t[1];let l;return t[2]!==i?(l=s.jsx(ft,{children:i}),t[2]=i,t[3]=l):l=t[3],l}function Ws(t){return s.jsx(Hs,{item:t},t.url)}function Gs(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(z.Suspense,{fallback:s.jsxs(ft,{children:[s.jsx(Fe,{}),s.jsx(Fe,{})]}),children:s.jsx(Us,{})}),t[0]=e):e=t[0],e}function Bs(t){const e=w.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 qs(t){const e=w.c(14),{project:r}=t,o=Ce(),{org:i}=le();let l;e[0]!==o||e[1]!==i.slug||e[2]!==r.slug?(l=()=>{o({to:"/$org/$project",params:{org:i.slug,project:r.slug}})},e[0]=o,e[1]=i.slug,e[2]=r.slug,e[3]=l):l=e[3];let n;e[4]!==r?(n=s.jsx(Bs,{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(us,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=d):d=e[8];let c;return e[9]!==r.name||e[10]!==l||e[11]!==n||e[12]!==a?(c=s.jsx(ee,{children:s.jsxs(we,{onClick:l,tooltip:r.name,children:[n,a,d]})}),e[9]=r.name,e[10]=l,e[11]=n,e[12]=a,e[13]=c):c=e[13],c}function Vs(){const t=w.c(55),{org:e}=le(),{data:r,isLoading:o}=Ze(e.id),[i,l]=z.useState(!0),[n,a]=z.useState(!1);let d,c,m,f,u,h,x,g,j,v,p,b,S;if(t[0]!==o||t[1]!==i||t[2]!==r){S=Symbol.for("react.early_return_sentinel");e:{const D=r?.filter(Ys)??[];if(o){let F;t[16]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(Z,{className:"h-4 w-4 rounded"}),s.jsx(Z,{className:"h-4 flex-1"})]})}),t[16]=F):F=t[16];let re;t[17]===Symbol.for("react.memo_cache_sentinel")?(re=s.jsx(je,{className:"py-0 px-0",children:s.jsx(ge,{children:s.jsxs(ie,{className:"gap-0.5",children:[F,s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(Z,{className:"h-4 w-4 rounded"}),s.jsx(Z,{className:"h-4 flex-1"})]})})]})})}),t[17]=re):re=t[17],S=re;break e}b="group/projects-section mt-2",u=Mt,v=i,p=l,f=je,j="py-0 px-0",m=ge,c=ie,x="gap-0.5";let R;t[18]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=R):R=t[18];const P=!i&&"-rotate-90";let L;t[19]!==P?(L=G("text-muted-foreground shrink-0 transition-transform duration-200",P),t[19]=P,t[20]=L):L=t[20];let $;t[21]!==L?($=s.jsx(Et,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[R,s.jsx(Je,{size:12,className:L})]})}),t[21]=L,t[22]=$):$=t[22];let A;t[23]===Symbol.for("react.memo_cache_sentinel")?(A=()=>a(!0),t[23]=A):A=t[23];let O;t[24]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx("button",{type:"button",onClick:A,title:"Create new project",className:"opacity-0 group-hover/projects-section:opacity-100 transition-opacity text-muted-foreground hover:text-foreground flex items-center justify-center h-4 rounded shrink-0",children:s.jsx(xe,{size:16})}),t[24]=O):O=t[24],t[25]!==$?(g=s.jsx(ee,{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs("div",{className:"flex h-6 w-full items-center gap-1 rounded-md pl-1.5 pr-0.5 hover:bg-sidebar-accent transition-colors",children:[$,O]})}),t[25]=$,t[26]=g):g=t[26],d=Lt,h=D.length===0?s.jsx(ee,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):D.map(Ks)}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]=h,t[9]=x,t[10]=g,t[11]=j,t[12]=v,t[13]=p,t[14]=b,t[15]=S}else d=t[3],c=t[4],m=t[5],f=t[6],u=t[7],h=t[8],x=t[9],g=t[10],j=t[11],v=t[12],p=t[13],b=t[14],S=t[15];if(S!==Symbol.for("react.early_return_sentinel"))return S;let y;t[27]!==d||t[28]!==h?(y=s.jsx(d,{children:h}),t[27]=d,t[28]=h,t[29]=y):y=t[29];let C;t[30]!==c||t[31]!==x||t[32]!==g||t[33]!==y?(C=s.jsxs(c,{className:x,children:[g,y]}),t[30]=c,t[31]=x,t[32]=g,t[33]=y,t[34]=C):C=t[34];let N;t[35]!==m||t[36]!==C?(N=s.jsx(m,{children:C}),t[35]=m,t[36]=C,t[37]=N):N=t[37];let I;t[38]!==f||t[39]!==N||t[40]!==j?(I=s.jsx(f,{className:j,children:N}),t[38]=f,t[39]=N,t[40]=j,t[41]=I):I=t[41];let T;t[42]!==u||t[43]!==I||t[44]!==v||t[45]!==p?(T=s.jsx(u,{open:v,onOpenChange:p,children:I}),t[42]=u,t[43]=I,t[44]=v,t[45]=p,t[46]=T):T=t[46];let E;t[47]!==T||t[48]!==b?(E=s.jsx("div",{className:b,children:T}),t[47]=T,t[48]=b,t[49]=E):E=t[49];let M;t[50]!==n?(M=s.jsx(Ve,{open:n,onOpenChange:a}),t[50]=n,t[51]=M):M=t[51];let W;return t[52]!==E||t[53]!==M?(W=s.jsxs(s.Fragment,{children:[E,M]}),t[52]=E,t[53]=M,t[54]=W):W=t[54],W}function Ks(t){return s.jsx(qs,{project:t},t.id)}function Ys(t){return t.slug!==V}function Qs(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(z.Suspense,{fallback:s.jsx(je,{className:"py-0 px-0",children:s.jsx(ge,{children:s.jsx(ie,{className:"gap-0.5",children:s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(Z,{className:"h-4 w-4 rounded"}),s.jsx(Z,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Vs,{})}),t[0]=e):e=t[0],e}function Zs(t){const e=w.c(15),{onCreateProject:r}=t,[o]=$e(),i=gs(),{locator:l}=le();let n;e[0]!==l?(n=Ie.isOrgAdminProject(l),e[0]=l,e[1]=n):n=e[1];const a=n;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Ae.Skeleton,{}),e[2]=d):d=e[2];let c;e[3]!==r?(c=s.jsx(z.Suspense,{fallback:d,children:s.jsx(Ae,{onCreateProject:r})}),e[3]=r,e[4]=c):c=e[4];let m;e[5]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(Rs,{}),e[5]=m):m=e[5];let f;e[6]!==a||e[7]!==o?(f=a?o.experimental_projects?s.jsx(Qs,{}):null:s.jsx(Gs,{}),e[6]=a,e[7]=o,e[8]=f):f=e[8];let u;e[9]!==f?(u=s.jsx(qe,{children:s.jsx(z.Suspense,{fallback:null,children:f})}),e[9]=f,e[10]=u):u=e[10];let h;return e[11]!==i||e[12]!==c||e[13]!==u?(h=s.jsx(dt,{sections:i,header:c,footer:m,additionalContent:u}),e[11]=i,e[12]=c,e[13]=u,e[14]=h):h=e[14],h}function Js(){const t=w.c(2),r=_e().location.href;let o;return t[0]!==r?(o=s.jsx(kt,{to:"/login",search:{next:r},replace:!0}),t[0]=r,t[1]=o):o=t[1],o}function Xs(t){const e=w.c(6),{children:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(yt,{children:s.jsx(He,{})}),e[0]=o):o=e[0];let i;e[1]!==r?(i=s.jsx(vt,{children:r}),e[1]=r,e[2]=i):i=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(St,{children:s.jsx(Js,{})}),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 er(t){const e=w.c(10),{children:r,className:o}=t,[,i]=z.useTransition();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Le.decoChatPanelWidth(),e[0]=l):l=e[0];const[n,a]=Ee(l,30);let d;e[1]!==a?(d=u=>i(()=>a(u)),e[1]=a,e[2]=d):d=e[2];const c=d;let m;e[3]!==o?(m=G("min-w-0",o),e[3]=o,e[4]=m):m=e[4];let f;return e[5]!==n||e[6]!==r||e[7]!==c||e[8]!==m?(f=s.jsx(nt,{defaultSize:n,minSize:20,className:m,onResize:c,children:r}),e[5]=n,e[6]=r,e[7]=c,e[8]=m,e[9]=f):f=e[9],f}function tr(t){const e=w.c(5),{children:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Le.sidebarOpen(),e[0]=o):o=e[0];const[i,l]=Ee(o,!0);let n;return e[1]!==r||e[2]!==l||e[3]!==i?(n=s.jsx(At,{open:i,onOpenChange:l,children:r}),e[1]=r,e[2]=l,e[3]=i,e[4]=n):n=e[4],n}function sr(t){const e=w.c(24),{isStudio:r,isHomeRoute:o,onCreateProject:i}=t,[l]=Te();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Le.decoChatPanelWidth(),e[0]=n):n=e[0];const[a]=Ee(n,30),[d]=$e(),c=r&&d.experimental_projects?"":void 0,m=`${a}cqi`;let f;e[1]!==m?(f={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":m},e[1]=m,e[2]=f):f=e[2];const u=f;let h;e[3]!==i?(h=s.jsx(Zs,{onCreateProject:i}),e[3]=i,e[4]=h):h=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 g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g={overflow:"visible"},e[6]=g):g=e[6];let j;e[7]===Symbol.for("react.memo_cache_sentinel")?(j={overflow:"visible"},e[7]=j):j=e[7];const v=l&&"rounded-tr-[0.75rem] border-r";let p;e[8]!==v?(p=G("flex flex-col flex-1 min-h-0 bg-card overflow-hidden","border-t border-l border-sidebar-border","rounded-tl-[0.75rem]","transition-[border-radius] duration-200 ease-[var(--ease-out-quart)]",v),e[8]=v,e[9]=p):p=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(Ue,{})}),e[10]=b):b=e[10];let S;e[11]!==p?(S=s.jsx(nt,{className:"min-w-0 flex flex-col",style:j,children:s.jsx("div",{className:p,children:b})}),e[11]=p,e[12]=S):S=e[12];let y;e[13]!==l||e[14]!==o?(y=!o&&s.jsxs(s.Fragment,{children:[s.jsx(fs,{className:"bg-sidebar"}),s.jsx(er,{className:G("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(hs,{})})})})]}),e[13]=l,e[14]=o,e[15]=y):y=e[15];let C;e[16]!==S||e[17]!==y?(C=s.jsx(Ot,{className:"pt-1.5",style:x,children:s.jsxs(ps,{direction:"horizontal",className:"h-full",style:g,children:[S,y]})}),e[16]=S,e[17]=y,e[18]=C):C=e[18];let N;return e[19]!==C||e[20]!==c||e[21]!==u||e[22]!==h?(N=s.jsxs(Tt,{className:"flex-1 bg-sidebar","data-studio":c,style:u,children:[h,C]}),e[19]=C,e[20]=c,e[21]=u,e[22]=h,e[23]=N):N=e[23],N}function rr(){const{org:t,project:e}=Oe({strict:!1}),r=_e(),[o,i]=z.useState(!1),l=r.location.pathname===`/${t}/${e}`||r.location.pathname===`/${t}/${e}/`,n=e??V,{data:a}=Ct({queryKey:_t.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:m}=await ce.organization.setActive({organizationSlug:t});return{org:m,project:{slug:n,isOrgAdmin:n===V}}},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(ut,{})}),s.jsx(Ue,{})]});if(!a.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const d={...a,project:{...a.project,slug:n,isOrgAdmin:n===V}},c=n===V;return s.jsxs(wt,{...d,children:[s.jsx(tr,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(X.Provider,{children:s.jsx(sr,{isStudio:c,isHomeRoute:l,onCreateProject:()=>i(!0)})})})}),s.jsx(Ve,{open:o,onOpenChange:i})]})}function Gn(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Xs,{children:s.jsx(z.Suspense,{fallback:s.jsx(He,{}),children:s.jsx(rr,{})})}),t[0]=e):e=t[0],e}export{Gn as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-BUe0-uqo.js";import{z as i}from"./index-DrrqKIxq.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{z as u,a8 as s}from"./index-DrrqKIxq.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-BUe0-uqo.js";import{z as u,B as n}from"./index-DrrqKIxq.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|