@decocms/mesh 2.131.2 → 2.131.3
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-Dkqr1r1Q.js → AlertCircle-DlPS0B2V.js} +1 -1
- package/dist/client/assets/{AlertOctagon-BwExqGuJ.js → AlertOctagon-BuLp3fZC.js} +1 -1
- package/dist/client/assets/{AlignLeft-CKUGLbMc.js → AlignLeft-CK2LK9_P.js} +1 -1
- package/dist/client/assets/{ArrowDown-CRMfpA3C.js → ArrowDown-Dz6Gxuoh.js} +1 -1
- package/dist/client/assets/{ArrowLeft-98jtQw40.js → ArrowLeft-m0b492UP.js} +1 -1
- package/dist/client/assets/{ArrowUp-s_vVz9nI.js → ArrowUp-Djo3xiq5.js} +1 -1
- package/dist/client/assets/{Check-DojSaPH3.js → Check-BIAvy6yX.js} +1 -1
- package/dist/client/assets/{CheckCircle-CjD5Bvma.js → CheckCircle-ZlxnLwuD.js} +1 -1
- package/dist/client/assets/{CheckDone01-PzZ4aJ2B.js → CheckDone01-SmxvYrNZ.js} +1 -1
- package/dist/client/assets/{CheckVerified02-BOo5Cll4.js → CheckVerified02-Cq3SMoM5.js} +1 -1
- package/dist/client/assets/{ChevronDown-BgBeiqk4.js → ChevronDown-B_XlOG4n.js} +1 -1
- package/dist/client/assets/{ChevronRight-ntt7kj2X.js → ChevronRight--WZMG8rl.js} +1 -1
- package/dist/client/assets/{Clock-hhjRO-p5.js → Clock-DF385WmK.js} +1 -1
- package/dist/client/assets/{Code01-CtiiBuUZ.js → Code01-CF9Fqf4v.js} +1 -1
- package/dist/client/assets/{Container-DETG3Vpm.js → Container-CAK8Ef10.js} +1 -1
- package/dist/client/assets/{Copy01-DAgw87le.js → Copy01-DhxT-EHF.js} +1 -1
- package/dist/client/assets/{Dataflow03-yymJ3qCi.js → Dataflow03-jO7_7pxv.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-CRDR3ikP.js → DotsHorizontal-mcB-Jm-p.js} +1 -1
- package/dist/client/assets/{DotsVertical-Cb88o4dO.js → DotsVertical-BHwWihUa.js} +1 -1
- package/dist/client/assets/{Download01-DYRyy6E8.js → Download01-BAQPnXKJ.js} +1 -1
- package/dist/client/assets/{Edit01-Ce9T4GDO.js → Edit01-BAKH21Ta.js} +1 -1
- package/dist/client/assets/{Eye-DPG-E6S3.js → Eye-CwfPY6I3.js} +1 -1
- package/dist/client/assets/{File02-Bershn1K.js → File02-BGmXPhDl.js} +1 -1
- package/dist/client/assets/{File06-CIJNH202.js → File06-Dq4QeYow.js} +1 -1
- package/dist/client/assets/{FilterLines-C-QyLRQ-.js → FilterLines-CvVXx1lM.js} +1 -1
- package/dist/client/assets/{Globe01-CUXKjyjC.js → Globe01-vtxLyn0R.js} +1 -1
- package/dist/client/assets/{Globe02-WbvfAq6T.js → Globe02-D5-pXhdl.js} +1 -1
- package/dist/client/assets/{Grid01-Q5lBUjoI.js → Grid01-DF8yAKWy.js} +1 -1
- package/dist/client/assets/{Hash02-CCAET11m.js → Hash02-rOtzXEDy.js} +1 -1
- package/dist/client/assets/{Home02-DWi1gwG-.js → Home02-B3qxGVx_.js} +1 -1
- package/dist/client/assets/{Image01-Dfl09rMQ.js → Image01-CdQc9_Kn.js} +1 -1
- package/dist/client/assets/{Inbox01-KkWlgZrW.js → Inbox01-Cgsr8OUk.js} +1 -1
- package/dist/client/assets/{InfoCircle-Khu_MP7C.js → InfoCircle-C2XIwn6f.js} +1 -1
- package/dist/client/assets/{Key01-_bxQwPT1.js → Key01-DvGVU5tM.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DVl53tU_.js → LinkExternal01-DN5IcIrY.js} +1 -1
- package/dist/client/assets/{List-B6fT_JC1.js → List-cJBOedUB.js} +1 -1
- package/dist/client/assets/{Loading01-7lPd5VY0.js → Loading01-DUKazYJk.js} +1 -1
- package/dist/client/assets/{Lock01-CqvrjdCQ.js → Lock01-BDndlndK.js} +1 -1
- package/dist/client/assets/{Play-CRp2Fiq8.js → Play-BoOE6qYY.js} +1 -1
- package/dist/client/assets/{Plus-B4CifUaz.js → Plus-xPrSIBe6.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Pv9wWC4C.js → RefreshCcw01-34kOjxGl.js} +1 -1
- package/dist/client/assets/{Rows03-70mPs707.js → Rows03-BBJg6G3G.js} +1 -1
- package/dist/client/assets/{Save01-Bf1LNfFv.js → Save01-CVZL-KwT.js} +1 -1
- package/dist/client/assets/{SearchMd-D2_y6K19.js → SearchMd-C6p4WuWU.js} +1 -1
- package/dist/client/assets/{Settings01-sVEW_DKV.js → Settings01-C-qUCDkW.js} +1 -1
- package/dist/client/assets/{Shield01-CztMZVsY.js → Shield01-CGOTAY5M.js} +1 -1
- package/dist/client/assets/{Terminal-Dc4yKk87.js → Terminal-BFqTLoyA.js} +1 -1
- package/dist/client/assets/{Trash01-DrId97Wg.js → Trash01-BtuExZ9Q.js} +1 -1
- package/dist/client/assets/{Upload01-BciJNrXE.js → Upload01-DvQiLBB9.js} +1 -1
- package/dist/client/assets/{Users03-mZsyOxFC.js → Users03-B39x9j9y.js} +1 -1
- package/dist/client/assets/{XCircle-DAMM1xqw.js → XCircle-JTpXXWsC.js} +1 -1
- package/dist/client/assets/{XClose-Bk127sk1.js → XClose-_flpZkDx.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-C-MHAVyG.js → agent-connections-preview-D4sm_ya8.js} +1 -1
- package/dist/client/assets/agent-detail-O__Ac8gp.js +2 -0
- package/dist/client/assets/agents-Bn6F1Zoa.js +1 -0
- package/dist/client/assets/{alert-dialog-CTH20CPb.js → alert-dialog-BDxMDVo1.js} +2 -2
- package/dist/client/assets/{auth-catchall-CObdt_tX.js → auth-catchall-kNoDzBnk.js} +1 -1
- package/dist/client/assets/{avatar-CLLAtWtt.js → avatar-C9P0gqhN.js} +1 -1
- package/dist/client/assets/{badge-bamcfFQO.js → badge-Cd5VRqG2.js} +1 -1
- package/dist/client/assets/{binder-BSRzuzet.js → binder-BSqhIBEo.js} +1 -1
- package/dist/client/assets/{breadcrumb-CbjyCrUB.js → breadcrumb-DW0yuSjw.js} +1 -1
- package/dist/client/assets/{card-CT9eRBO8.js → card-C7mKq0Al.js} +1 -1
- package/dist/client/assets/{chart-qBlGBPsr.js → chart-BAZKlJ67.js} +1 -1
- package/dist/client/assets/{checkbox-fZN_zkkc.js → checkbox-DBGyogTp.js} +1 -1
- package/dist/client/assets/{circle-alert-DiZHZEQ5.js → circle-alert-oNPOZrxG.js} +1 -1
- package/dist/client/assets/collapsible-BR69xWDn.js +1 -0
- package/dist/client/assets/{collection-detail-Cdyo4Jme.js → collection-detail-DRtO60n0.js} +3 -3
- package/dist/client/assets/{collection-search-BkqfEg-m.js → collection-search-DTH23sfv.js} +1 -1
- package/dist/client/assets/{collection-tab-CFsl8XVU.js → collection-tab-DcoI4Uge.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CQELj61q.js → collection-table-wrapper-17gGtoIE.js} +1 -1
- package/dist/client/assets/{collection-tabs-DYZ2tP7j.js → collection-tabs-WM8uIQcb.js} +1 -1
- package/dist/client/assets/{command-TgV2tll9.js → command-4Vw0Qhhq.js} +1 -1
- package/dist/client/assets/{connect-BUtRFK0H.js → connect-dBx1ArAL.js} +1 -1
- package/dist/client/assets/{connection-card-D6yVNj26.js → connection-card-Bnb4ztny.js} +1 -1
- package/dist/client/assets/connection-detail-CQ6_kDeT.js +1 -0
- package/dist/client/assets/connections-8KY_ShvQ.js +1 -0
- package/dist/client/assets/{constants-d5m3mPET.js → constants-BhT1RxOf.js} +1 -1
- package/dist/client/assets/constants-da5q_EnE.js +1 -0
- package/dist/client/assets/{context-2tm88ePK.js → context-BBcoPt-U.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DpKq7vI7.js → create-organization-dialog-DzVdn81Q.js} +1 -1
- package/dist/client/assets/{create-project-dialog-D3gJUHFV.js → create-project-dialog-B8Pi5NuK.js} +1 -1
- package/dist/client/assets/dialog-Dvc12rqj.js +1 -0
- package/dist/client/assets/{dropdown-menu-ChxmccFR.js → dropdown-menu-CkNoSZQN.js} +1 -1
- package/dist/client/assets/dynamic-plugin-layout-CLQB7TKz.js +1 -0
- package/dist/client/assets/editable-thread-title-CwlSHlt8.js +16 -0
- package/dist/client/assets/{empty-state-DVahD977.js → empty-state-BTWthjUh.js} +1 -1
- package/dist/client/assets/{env-vars-editor-Cteh4D4v.js → env-vars-editor-COsCn64B.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Ck5zVWtS.js → extract-connection-data-rbihX2c5.js} +1 -1
- package/dist/client/assets/{file-browser-DHCSXXck.js → file-browser-B1RzPAtd.js} +2 -2
- package/dist/client/assets/{form-CcJszJH6.js → form--v_6A-Ne.js} +1 -1
- package/dist/client/assets/{grid-view-C8HbhPQo.js → grid-view-CoEr8taJ.js} +1 -1
- package/dist/client/assets/{home-B7fxCmTd.js → home-Byv7Q--9.js} +1 -1
- package/dist/client/assets/{index-GgsXGTPv.js → index-4MyK8Ufm.js} +1 -1
- package/dist/client/assets/{index-DWR1QaYA.js → index-Br8kKohg.js} +1 -1
- package/dist/client/assets/{index-Bs0We-94.js → index-C5Tpyka5.js} +1 -1
- package/dist/client/assets/{index-7L39VpRz.js → index-C9zVB5WG.js} +3 -3
- package/dist/client/assets/{index-Ds36Fm_U.js → index-CIQsWYRd.js} +1 -1
- package/dist/client/assets/index-CmrMzoJs.js +1 -0
- package/dist/client/assets/{index-r-yz0P9p.js → index-DBNEyPj5.js} +1 -1
- package/dist/client/assets/{index-CQtw16nY.js → index-QVlRbrQ5.js} +9 -9
- package/dist/client/assets/index-Rya1vVnc.css +1 -0
- package/dist/client/assets/index-nJ7zp6px.js +1 -0
- package/dist/client/assets/{infiniteQueryObserver-CP14HTXs.js → infiniteQueryObserver-fiTcrowg.js} +1 -1
- package/dist/client/assets/{input-Bg0LE4bT.js → input-Dulb50P0.js} +1 -1
- package/dist/client/assets/{integration-icon-BXY2mwKh.js → integration-icon-DxUgniRd.js} +1 -1
- package/dist/client/assets/{label--nPLxPOS.js → label-N7w17Mk3.js} +1 -1
- package/dist/client/assets/{layout-DKJsGI23.js → layout-DamKiHJu.js} +1 -1
- package/dist/client/assets/{localstorage-keys-oS_TlQ3E.js → localstorage-keys-CZwloscb.js} +1 -1
- package/dist/client/assets/{login-CiffSVUh.js → login-Coqa5XXN.js} +1 -1
- package/dist/client/assets/{markdown-eMMio6z7.js → markdown-BZXGJB-W.js} +1 -1
- package/dist/client/assets/{mcp-oauth-IsIZEZHY.js → mcp-oauth-CNYT89wd.js} +1 -1
- package/dist/client/assets/{mcp-server-card-DM4CcEET.js → mcp-server-card-C8lGlwNL.js} +1 -1
- package/dist/client/assets/mcp-server-detail-BE_Pdjh4.js +2 -0
- package/dist/client/assets/members-BR48Zy7w.js +3 -0
- package/dist/client/assets/{monitoring-BhcuVePL.js → monitoring-BYHNRux1.js} +2 -2
- package/dist/client/assets/monitoring-dashboard-edit-C3fB0hxS.js +1 -0
- package/dist/client/assets/{monitoring-dashboard-view-BChtKAyU.js → monitoring-dashboard-view-CK5QtkLZ.js} +2 -2
- package/dist/client/assets/{oauth-callback-BKrMsxxf.js → oauth-callback-B91mfF7u.js} +1 -1
- package/dist/client/assets/{page-CN23mc6T.js → page-Bz6ZAe5V.js} +1 -1
- package/dist/client/assets/page-ClBjAvI8.js +1 -0
- package/dist/client/assets/{plugin-empty-state-Co1LYNEp.js → plugin-empty-state-09_7LKCk.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-D4zO5Njw.js → plugin-empty-state-DhaBpvUb.js} +1 -1
- package/dist/client/assets/{plugin-header-BGUmePDs.js → plugin-header-B16ya8ma.js} +1 -1
- package/dist/client/assets/{plugin-header-Bas1mlKg.js → plugin-header-DDK1Gzuw.js} +1 -1
- package/dist/client/assets/popover-Brg4j9U4.js +1 -0
- package/dist/client/assets/project-layout-BO93auVr.js +1 -0
- package/dist/client/assets/projects-list-UJWNTYbm.js +1 -0
- package/dist/client/assets/ranking-layout-C5-IAJdb.js +1 -0
- package/dist/client/assets/{readme-viewer-6FL6XLyI.js → readme-viewer-D9gvMWcQ.js} +1 -1
- package/dist/client/assets/{registry-layout-DYG56sJW.js → registry-layout-lalPIUy1.js} +3 -3
- package/dist/client/assets/{registry-utils-DC7a4FRQ.js → registry-utils-BHPNdF4d.js} +1 -1
- package/dist/client/assets/{reports-layout-DW-iK2df.js → reports-layout-DxDhUGJ8.js} +1 -1
- package/dist/client/assets/{reset-password-BqXH6TI0.js → reset-password-DL3lIlmS.js} +1 -1
- package/dist/client/assets/{resizable-Bmi8ywnl.js → resizable-FI4WTwGD.js} +1 -1
- package/dist/client/assets/{save-actions-6MVOB16y.js → save-actions-BcqCo4y3.js} +1 -1
- package/dist/client/assets/{scroll-area-SCgyyuRW.js → scroll-area-D0QNw4tp.js} +1 -1
- package/dist/client/assets/{select-CGP3oimv.js → select-D1oSPElz.js} +1 -1
- package/dist/client/assets/shell-layout-xyeS0lIg.js +3 -0
- package/dist/client/assets/{skeleton-mQwjcvS8.js → skeleton-DlHAPl4v.js} +1 -1
- package/dist/client/assets/{spinner-Cf0i7zzZ.js → spinner-BXKsVp1S.js} +1 -1
- package/dist/client/assets/{store-invite-C-CBwltf.js → store-invite-CCiSQtm-.js} +1 -1
- package/dist/client/assets/{switch-DhSajm1n.js → switch-CrrLS5F0.js} +1 -1
- package/dist/client/assets/{table-6jko7EVZ.js → table-DlgTYaKr.js} +1 -1
- package/dist/client/assets/{tabs-KIo7byD9.js → tabs-Brz8FGNW.js} +1 -1
- package/dist/client/assets/tasks--lG17-41.js +1 -0
- package/dist/client/assets/{textarea-CGNubTQN.js → textarea-COlgWmtQ.js} +1 -1
- package/dist/client/assets/{time-range-picker-Da1I56kP.js → time-range-picker-Dp-73_eh.js} +1 -1
- package/dist/client/assets/{toggle-group-BgYBpox6.js → toggle-group-DRLYbeNR.js} +1 -1
- package/dist/client/assets/{tools-list-CZoJzyx-.js → tools-list-BnQCFmS3.js} +1 -1
- package/dist/client/assets/{tooltip-BMv47aFy.js → tooltip-wsLIWfBV.js} +1 -1
- package/dist/client/assets/{topbar-portal-UpXPvyHv.js → topbar-portal-L3nYDcPb.js} +1 -1
- package/dist/client/assets/{types-C_2JvMAa.js → types-DCpHM3H3.js} +1 -1
- package/dist/client/assets/{use-binding-C2dcwpZA.js → use-binding-DA-OMuxn.js} +1 -1
- package/dist/client/assets/{use-connection-IkOXJVs8.js → use-connection-CpIvuZgj.js} +1 -1
- package/dist/client/assets/{use-copy-BowGG0wE.js → use-copy-DTGgn0Wp.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BV-BX4O9.js → use-create-virtual-mcp-V8EAMd66.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-AdOkNCam.js → use-install-from-registry-Ckk1r5Fb.js} +1 -1
- package/dist/client/assets/{use-list-state-Coa6tFOY.js → use-list-state-DttTc7Mb.js} +1 -1
- package/dist/client/assets/{use-llm-U5Tp2HaY.js → use-llm-DORYQD8S.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Bzsxv_BD.js → use-mcp-prompts-Cu7mPqG1.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BSeWl3ZG.js → use-mcp-tools-DKBxq10d.js} +1 -1
- package/dist/client/assets/{use-members-CfArLi61.js → use-members-BUB6yk2M.js} +1 -1
- package/dist/client/assets/{use-mobile-DT3I3lYu.js → use-mobile-JSb9Dln5.js} +1 -1
- package/dist/client/assets/{use-project-7ErRlLNv.js → use-project-r6R5RHNq.js} +1 -1
- package/dist/client/assets/{use-settings-modal-B_qfHumC.js → use-settings-modal-D8rRTAi8.js} +1 -1
- package/dist/client/assets/{use-view-mode-C-QHw5_R.js → use-view-mode-BM1VKKNU.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CKU96AGJ.js → use-virtual-mcp-C4vCklTv.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-1kxKg8ab.js +1 -0
- package/dist/client/assets/{useMutation-DXZOMQax.js → useMutation-C0x6BtF8.js} +1 -1
- package/dist/client/assets/useQuery-ITBNMKD9.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-BFqd2TrW.js +1 -0
- package/dist/client/assets/workflow-BoAHMqIZ.js +1 -0
- package/dist/client/index.html +2 -2
- package/package.json +1 -1
- package/dist/client/assets/X-CdhcYEPm.js +0 -1
- package/dist/client/assets/agent-detail-BK0xRmME.js +0 -2
- package/dist/client/assets/agents-9jKX-hiO.js +0 -1
- package/dist/client/assets/connection-detail-DWCec7hj.js +0 -1
- package/dist/client/assets/connections-Cy0bbe_1.js +0 -1
- package/dist/client/assets/constants-nlkFmlkQ.js +0 -1
- package/dist/client/assets/dialog-DsUvY3CK.js +0 -1
- package/dist/client/assets/dynamic-plugin-layout-Civxlcd_.js +0 -1
- package/dist/client/assets/editable-thread-title-zu9gS6K0.js +0 -16
- package/dist/client/assets/index-9OYqqcI6.js +0 -1
- package/dist/client/assets/index-DGca9RW1.css +0 -1
- package/dist/client/assets/index-DoxdpoOD.js +0 -1
- package/dist/client/assets/mcp-server-detail-D0XVRD6T.js +0 -2
- package/dist/client/assets/members-CEnPPP7a.js +0 -3
- package/dist/client/assets/monitoring-dashboard-edit-QSsBIHZf.js +0 -1
- package/dist/client/assets/page-6hSDNqkW.js +0 -1
- package/dist/client/assets/popover-BtiU6fhH.js +0 -1
- package/dist/client/assets/project-layout-Bx4fNXhV.js +0 -1
- package/dist/client/assets/projects-list-DlikR8oG.js +0 -1
- package/dist/client/assets/ranking-layout-CFyA0-Iw.js +0 -1
- package/dist/client/assets/shell-layout-Digqb3dN.js +0 -3
- package/dist/client/assets/tasks-t3s4IpKE.js +0 -1
- package/dist/client/assets/use-deco-chat-open-CQvalpAq.js +0 -1
- package/dist/client/assets/useInfiniteQuery-uyheNs5A.js +0 -1
- package/dist/client/assets/useQuery-BnNC7qj6.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Bcy2cAxP.js +0 -1
- package/dist/client/assets/workflow-D41RuMSS.js +0 -1
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{r as O,c as E,j as s,E as Fe,u as fe,v as G,b as Ie,bZ as Ce,L as $e,c6 as dt,c7 as mt,O as K,a3 as ut,e as Pe,d as ae,B as Se,t as le,c8 as ft,ba as pt,m as xt,A as ht,S as Ue,f as gt,h as jt,N as bt,n as yt,K as Nt,aJ as He,P as vt}from"./index-7L39VpRz.js";import{C as X}from"./index-CQtw16nY.js";import{I as St}from"./integration-icon-BXY2mwKh.js";import{P as de,u as Be,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 Ge,m as wt,n as $t,o as zt,p as It}from"./index-9OYqqcI6.js";import{u as Te,C as Pt,b as At,c as Tt}from"./use-deco-chat-open-CQvalpAq.js";import{d as Ot,u as Mt}from"./constants-d5m3mPET.js";import{E as Et,i as Lt,a as Dt}from"./editable-thread-title-zu9gS6K0.js";import{s as xe}from"./Plus-B4CifUaz.js";import{t as Oe}from"./Users03-mZsyOxFC.js";import{i as Le}from"./X-CdhcYEPm.js";import{b as Rt,i as Ft}from"./context-2tm88ePK.js";import{C as We}from"./create-project-dialog-D3gJUHFV.js";import{u as _e,S as Q}from"./skeleton-mQwjcvS8.js";import{t as qe,u as Ke,i as Ut}from"./use-settings-modal-B_qfHumC.js";import{n as De}from"./CheckDone01-PzZ4aJ2B.js";import{n as Ht}from"./Container-DETG3Vpm.js";import{e as Bt}from"./Dataflow03-yymJ3qCi.js";import{a as Gt}from"./Home02-DWi1gwG-.js";import{t as ke}from"./Settings01-sVEW_DKV.js";import{a as Ye,u as Ve}from"./use-project-7ErRlLNv.js";import{t as Ze}from"./ChevronDown-BgBeiqk4.js";import{a as Wt,b as qt,T as Kt}from"./tooltip-BMv47aFy.js";import{A as me}from"./avatar-CLLAtWtt.js";import{c as V,g as he,d as Yt,e as Vt,f as Zt,b as Qe,D as Je,a as Xe}from"./dropdown-menu-ChxmccFR.js";import{i as ue}from"./Check-DojSaPH3.js";import{C as Qt}from"./create-organization-dialog-DpKq7vI7.js";import{a as Jt}from"./Copy01-DAgw87le.js";import{i as Xt}from"./File06-CIJNH202.js";import{i as es}from"./Globe01-CUXKjyjC.js";import{n as pe}from"./LinkExternal01-DVl53tU_.js";import{i as ts}from"./Shield01-CztMZVsY.js";import{b as ss,a as rs,P as ns}from"./popover-BtiU6fhH.js";import{n as Re}from"./Inbox01-KkWlgZrW.js";import{s as is}from"./XClose-Bk127sk1.js";import{h as os}from"./use-connection-IkOXJVs8.js";import{b as ls}from"./use-mcp-tools-BSeWl3ZG.js";import{c as as,A as cs}from"./use-binding-C2dcwpZA.js";import{i as ds}from"./ChevronRight-ntt7kj2X.js";import{u as Me,L as Ee}from"./localstorage-keys-oS_TlQ3E.js";import{R as ms,a as et,b as us}from"./resizable-Bmi8ywnl.js";import"./spinner-Cf0i7zzZ.js";import"./use-mcp-prompts-Bzsxv_BD.js";import"./useQuery-BnNC7qj6.js";import"./dialog-DsUvY3CK.js";import"./form-CcJszJH6.js";import"./label--nPLxPOS.js";import"./input-Bg0LE4bT.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-s_vVz9nI.js";import"./Edit01-Ce9T4GDO.js";import"./XCircle-DAMM1xqw.js";import"./AlertCircle-Dkqr1r1Q.js";import"./select-CGP3oimv.js";import"./index-Ds36Fm_U.js";import"./ArrowLeft-98jtQw40.js";import"./use-copy-BowGG0wE.js";import"./tabs-KIo7byD9.js";import"./badge-bamcfFQO.js";import"./Code01-CtiiBuUZ.js";import"./use-virtual-mcp-CKU96AGJ.js";import"./SearchMd-D2_y6K19.js";import"./use-create-virtual-mcp-BV-BX4O9.js";import"./marked.esm-BaswSlok.js";import"./markdown-eMMio6z7.js";import"./types-C_2JvMAa.js";import"./Eye-DPG-E6S3.js";import"./Globe02-WbvfAq6T.js";import"./collection-search-BkqfEg-m.js";import"./Loading01-7lPd5VY0.js";import"./generate-id-Dyweu44Y.js";import"./Clock-hhjRO-p5.js";import"./Trash01-DrId97Wg.js";import"./use-mobile-DT3I3lYu.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-U5Tp2HaY.js";import"./checkbox-fZN_zkkc.js";import"./AlignLeft-CKUGLbMc.js";import"./Image01-Dfl09rMQ.js";import"./RefreshCcw01-Pv9wWC4C.js";import"./useSuspenseInfiniteQuery-Bcy2cAxP.js";import"./infiniteQueryObserver-CP14HTXs.js";import"./useMutation-DXZOMQax.js";import"./textarea-CGNubTQN.js";import"./alert-dialog-CTH20CPb.js";import"./binder-BSRzuzet.js";const tt=({size:t=24,color:e="currentColor",...r})=>O.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},O.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})=>O.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},O.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})=>O.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},O.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})=>O.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},O.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 fs(){const t=E.c(65),{org:e}=fe(),[,r]=Te(),{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 B;t[3]!==n?(B=W=>W.id===n,t[3]=n,t[4]=B):B=t[4],m=c.find(B),t[0]=n,t[1]=c,t[2]=m}else m=t[2];const f=m,[u,N]=O.useState(!1),[x,h]=O.useTransition();let j;t[5]!==e.id?(j=Ot(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 B;t[9]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(de.Header.Left,{className:"gap-2"}),t[9]=B):B=t[9];let W;t[10]!==r?(W=()=>r(!1),t[10]=r,t[11]=W):W=t[11];let _;t[12]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Le,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=_):_=t[12];let q;t[13]!==W?(q=s.jsxs(de.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[B,s.jsx(de.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:W,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]=W,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=G("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 D;t[32]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx("button",{type:"button",onClick:w,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Chat history",children:s.jsx(Lt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=D):D=t[32];let T;t[33]!==r?(T=()=>r(!1),t[33]=r,t[34]=T):T=t[34];let U;t[35]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(Le,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[35]=U):U=t[35];let M;t[36]!==T?(M=s.jsx("button",{type:"button",onClick:T,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:U}),t[36]=T,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,D,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 L;t[44]!==p||t[45]!==l?(L=s.jsx(X.Main,{children:l?s.jsx(X.EmptyState,{children:s.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[s.jsx(St,{icon:p.icon,name:p.title,size:"lg",fallbackIcon:s.jsx(Oe,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:p.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:p.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(X.IceBreakers,{})]})}):s.jsx(X.Messages,{})}),t[44]=p,t[45]=l,t[46]=L):L=t[46];let 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 F;t[48]!==P||t[49]!==L||t[50]!==S?(F=s.jsxs("div",{className:S,children:[P,L,A]}),t[48]=P,t[49]=L,t[50]=S,t[51]=F):F=t[51];const ee=u?"opacity-100 translate-x-0":"opacity-0 translate-x-4 pointer-events-none";let te;t[52]!==ee?(te=G("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(Dt,{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 Z;return t[62]!==F||t[63]!==H?(Z=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]=Z):Z=t[64],Z}function ps(){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(Fe,{fallback:e,children:s.jsx(O.Suspense,{fallback:s.jsx(X.Skeleton,{}),children:s.jsx(fs,{})})}),t[1]=r):r=t[1],r}function xs(){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(Gt,{}),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(De,{}),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 D={key:"store",label:"Store",icon:w,isActive:p("store"),onClick:()=>i({to:"/$org/$project/store",params:{org:n,project:K}})};let T;t[12]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(Oe,{}),t[12]=T):T=t[12];const U={key:"agents",label:"Agents",icon:T,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 L={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 F;t[15]!==f?(F=I=>f.includes(I.pluginId),t[15]=f,t[16]=F):F=t[16];const te=mt.filter(F).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:[U,$,D],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[R,L,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(De,{}),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 Z;t[35]!==Y||t[36]!==H?(Z={key:"tasks",label:"Tasks",icon:se,isActive:Y,onClick:H},t[35]=Y,t[36]=H,t[37]=Z):Z=t[37];const B=Z;let W;t[38]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(Bt,{}),t[38]=W):W=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:W,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]!==B?(be=e.experimental_tasks?[B]:[],t[48]=e.experimental_tasks,t[49]=B,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 hs(t){const e=E.c(11),{label:r,children:o,defaultExpanded:i}=t,l=i===void 0?!0:i,[n,a]=O.useState(l),{state:d}=Be(),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(Ze,{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 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 gs(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(bs),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(hs,{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(js),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 js(t){return s.jsx(it,{item:t},t.key)}function bs(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=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(ys),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 ys(t,e){return s.jsx(gs,{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(Q,{className:"h-full bg-sidebar-accent rounded-md"})},r))})};function Ns(){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(Q,{className:"h-8 w-full rounded-lg"}),s.jsx(Q,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function vs(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(Ss)??[];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:G("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 Ss(t){return t.slug!==K}function ks(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]=O.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 D=w,T=Je,U=i?"w-auto pr-1.5":"w-full";let M;e[17]!==U?(M=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]",U),e[17]=U,e[18]=M):M=e[18];const R=h?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:ks(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 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(Ft,{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 L;e[26]!==M||e[27]!==R||e[28]!==P?(L=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]=L):L=e[29];const A=Qe,F="start",ee="bottom",te="w-64 flex flex-col gap-0.5",se=Cs,Y=x?s.jsxs(s.Fragment,{children:[s.jsxs(V,{className:G("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(O.Suspense,{fallback:s.jsx(Ns,{}),children:s.jsx(vs,{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(Zt,{className:"w-48 flex flex-col gap-0.5",children:[p.map(_=>s.jsxs(V,{className:G("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:D,children:[s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]}):s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Organizations"}),p.map(_=>s.jsxs(V,{className:G("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:D,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:F,side:ee,className:te,onCloseAutoFocus:se,children:Y}),e[30]=A,e[31]=se,e[32]=Y,e[33]=H):H=e[33];let Z;e[34]!==T||e[35]!==L||e[36]!==H?(Z=s.jsxs(T,{children:[L,H]}),e[34]=T,e[35]=L,e[36]=H,e[37]=Z):Z=e[37];let B;e[38]!==f||e[39]!==u?(B=s.jsx(Qt,{open:f,onOpenChange:u}),e[38]=f,e[39]=u,e[40]=B):B=e[40];let W;return e[41]!==Z||e[42]!==B?(W=s.jsxs(s.Fragment,{children:[Z,B]}),e[41]=Z,e[42]=B,e[43]=W):W=e[43],W}function Cs(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(Q,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(Q,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function ze(t){const e=E.c(23),{onCreateProject:r}=t,{state:o}=Be(),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}=Pe(a),{location:m}=Ce(),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 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=G("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=G("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(Wt,{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(Ge,{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 _s(t){return!t}ze.Skeleton=function(){return s.jsx(Ge,{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(Q,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(Q,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsxs("div",{className:"flex items-center gap-0.5",children:[s.jsx(Q,{className:"size-7 rounded-lg bg-sidebar-accent"}),s.jsx(Q,{className:"size-7 rounded-lg bg-sidebar-accent"})]})]})})})})};function ws(t){const e=E.c(50),{user:r,userImage:o}=t,{open:i}=Ke(),[l,n]=O.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 D;e[37]===Symbol.for("react.memo_cache_sentinel")?(D=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]=D):D=e[37];let T;e[38]===Symbol.for("react.memo_cache_sentinel")?(T=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]=T):T=e[38];let U;e[39]===Symbol.for("react.memo_cache_sentinel")?(U=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(Oe,{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]=U):U=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:$s,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 L;e[43]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.131.2"]})}),e[43]=L):L=e[43];let A;e[44]!==g||e[45]!==C?(A=s.jsxs(Qe,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:zs,children:[g,S,C,w,D,T,U,M,R,P,L]}),e[44]=g,e[45]=C,e[46]=A):A=e[46];let F;return e[47]!==A||e[48]!==N?(F=s.jsxs(Je,{children:[N,A]}),e[47]=A,e[48]=N,e[49]=F):F=e[49],F}function $s(){return ae.signOut()}function zs(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(ws,{user:l,userImage:n}),t[4]=n,t[5]=l,t[6]=a):a=t[6],a}function Is({invitation:t}){const[e,r]=O.useState(!1),[o,i]=O.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 Ps(){const t=O.useContext(pt),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(o=>o.status==="pending"&&new Date(o.expiresAt)>new Date)}class As extends O.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 Ts="gateway-chip-period";function Os(){try{const t=localStorage.getItem(Ts);if(t==="daily"||t==="weekly"||t==="monthly")return t}catch{}return"daily"}function Ms(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 Es(t){return t>=90?"text-destructive":t>=70?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Ls(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}`,$=Ms(u,f)}else if(f!=null&&f>0){const C=f-u;let w;e[23]!==f||e[24]!==C?(w=Math.round(C/f*100),e[23]=f,e[24]=C,e[25]=w):w=e[25];const D=Math.min(100,w);h="Usage",j=`${D}%`,$=Es(D)}else{const C=Os(),w=C==="daily"?x.daily:C==="weekly"?x.weekly:x.monthly,D=C==="daily"?"/day":C==="weekly"?"/wk":"/mo";h="Usage";let T;e[26]!==w?(T=w.toFixed(2),e[26]=w,e[27]=T):T=e[27],j=`$${T}${D}`,$="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(Ut,{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=G("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 Rs(){const t=E.c(4),e=os();let r;t[0]!==e?(r=e.find(Fs),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(Ls,{connectionId:o.id}),t[2]=o.id,t[3]=i):i=t[3],i}function Fs(t){return as(t,cs)}function Us(){const t=E.c(13),e=Ps();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(As,{children:s.jsx(O.Suspense,{fallback:null,children:s.jsx(Rs,{})})}),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(Hs)})]}),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 Hs(t){return s.jsx(Is,{invitation:t},t.id)}function Bs(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 Gs(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(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(ds,{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 Ws(){const t=E.c(55),{org:e}=fe(),{data:r,isLoading:o}=Ve(e.id),[i,l]=O.useState(!0),[n,a]=O.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 T=r?.filter(Ks)??[];if(o){let F;t[16]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(ne,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(Q,{className:"h-4 w-4 rounded"}),s.jsx(Q,{className:"h-4 flex-1"})]})}),t[16]=F):F=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:[F,s.jsx(ne,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(Q,{className:"h-4 w-4 rounded"}),s.jsx(Q,{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 U;t[18]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=U):U=t[18];const M=!i&&"-rotate-90";let R;t[19]!==M?(R=G("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:[U,s.jsx(Ze,{size:12,className:R})]})}),t[21]=R,t[22]=P):P=t[22];let L;t[23]===Symbol.for("react.memo_cache_sentinel")?(L=()=>a(!0),t[23]=L):L=t[23];let A;t[24]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx("button",{type:"button",onClick:L,title:"Create new project",className:"opacity-0 group-hover/projects-section:opacity-100 transition-opacity text-muted-foreground hover:text-foreground flex items-center justify-center h-4 rounded shrink-0",children:s.jsx(xe,{size:16})}),t[24]=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=Tt,N=T.length===0?s.jsx(ne,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):T.map(qs)}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(We,{open:n,onOpenChange:a}),t[50]=n,t[51]=w):w=t[51];let D;return t[52]!==C||t[53]!==w?(D=s.jsxs(s.Fragment,{children:[C,w]}),t[52]=C,t[53]=w,t[54]=D):D=t[54],D}function qs(t){return s.jsx(Gs,{project:t},t.id)}function Ks(t){return t.slug!==K}function Ys(){const t=E.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(O.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(Q,{className:"h-4 w-4 rounded"}),s.jsx(Q,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Ws,{})}),t[0]=e):e=t[0],e}function Vs(t){const e=E.c(13),{onCreateProject:r}=t,[o]=_e(),i=xs(),{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(O.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(Fe,{children:s.jsx(O.Suspense,{fallback:null,children:s.jsx(Ys,{})})}):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 Zs(){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(Ue,{})}),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(Zs,{})}),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 Js(t){const e=E.c(10),{children:r,className:o}=t,[,i]=O.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=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(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 Xs(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 er(t){const e=E.c(24),{isStudio:r,isHomeRoute:o,onCreateProject:i}=t,[l]=Te();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(Vs,{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=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)]",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(ms,{className:"bg-sidebar"}),s.jsx(Js,{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(ps,{})})})})]}),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(us,{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 tr(){const{org:t,project:e}=Pe({strict:!1}),r=Ce(),[o,i]=O.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(Xs,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(X.Provider,{children:s.jsx(er,{isStudio:c,isHomeRoute:l,onCreateProject:()=>i(!0)})})})}),s.jsx(We,{open:o,onOpenChange:i})]})}function Mn(){const t=E.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Qs,{children:s.jsx(O.Suspense,{fallback:s.jsx(Ue,{}),children:s.jsx(tr,{})})}),t[0]=e):e=t[0],e}export{Mn 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-7L39VpRz.js";import{C as ce,a as me}from"./collection-table-wrapper-CQELj61q.js";import{C as de,E as J}from"./collection-search-BkqfEg-m.js";import{P as _}from"./index-9OYqqcI6.js";import{u as ue,U as pe}from"./use-list-state-Coa6tFOY.js";import{f as fe}from"./format-time-CMKyl-GC.js";import{a as he,u as xe}from"./constants-d5m3mPET.js";import{B as ge,a as je,b as ye,c as Se}from"./breadcrumb-CbjyCrUB.js";import{B as b}from"./badge-bamcfFQO.js";import{i as be}from"./AlertCircle-Dkqr1r1Q.js";import{c as _e}from"./AlertOctagon-BwExqGuJ.js";import{n as X}from"./CheckDone01-PzZ4aJ2B.js";import{i as we}from"./Check-DojSaPH3.js";import{s as Ce}from"./Clock-hhjRO-p5.js";import{i as ee}from"./Loading01-7lPd5VY0.js";import{u as Ne,a as Te}from"./context-2tm88ePK.js";import"./dropdown-menu-ChxmccFR.js";import"./ChevronRight-ntt7kj2X.js";import"./ArrowDown-CRMfpA3C.js";import"./ArrowUp-s_vVz9nI.js";import"./Grid01-Q5lBUjoI.js";import"./List-B6fT_JC1.js";import"./tooltip-BMv47aFy.js";import"./index-Ds36Fm_U.js";import"./table-6jko7EVZ.js";import"./SearchMd-D2_y6K19.js";import"./input-Bg0LE4bT.js";import"./use-mobile-DT3I3lYu.js";import"./X-CdhcYEPm.js";import"./avatar-CLLAtWtt.js";import"./useQuery-BnNC7qj6.js";import"./use-view-mode-C-QHw5_R.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-virtual-mcp-CKU96AGJ.js";import"./use-connection-IkOXJVs8.js";import"./useMutation-DXZOMQax.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-U5Tp2HaY.js";import"./use-binding-C2dcwpZA.js";import"./binder-BSRzuzet.js";import"./localstorage-keys-oS_TlQ3E.js";import"./skeleton-mQwjcvS8.js";import"./checkbox-fZN_zkkc.js";import"./dialog-DsUvY3CK.js";import"./select-CGP3oimv.js";import"./ChevronDown-BgBeiqk4.js";import"./AlignLeft-CKUGLbMc.js";import"./ArrowLeft-98jtQw40.js";import"./Image01-Dfl09rMQ.js";import"./RefreshCcw01-Pv9wWC4C.js";import"./Settings01-sVEW_DKV.js";import"./useSuspenseInfiniteQuery-Bcy2cAxP.js";import"./infiniteQueryObserver-CP14HTXs.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 Et(){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{Et as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,G as T,j as i,H as g,aC as k,M as A,U as M,T as $,I,bz as D,c as f}from"./index-7L39VpRz.js";import{u as B,L as G}from"./localstorage-keys-oS_TlQ3E.js";const z=({size:t=24,color:e="currentColor",...o})=>a.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},a.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));z.displayName="ArrowsRight";const F=({size:t=24,color:e="currentColor",...o})=>a.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},a.createElement("path",{d:"M10 17.659V20a2 2 0 1 0 4 0v-2.341M12 2v1m-9 9H2m3.5-6.5-.6-.6m13.6.6.6-.6M22 12h-1m-3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"}));F.displayName="Lightbulb02";var m="Collapsible",[H,Z]=M(m),[W,v]=H(m),P=a.forwardRef((t,e)=>{const{__scopeCollapsible:o,open:n,defaultOpen:s,disabled:c,onOpenChange:l,...C}=t,[p,d]=T({prop:n,defaultProp:s??!1,onChange:l,caller:m});return i.jsx(W,{scope:o,disabled:c,contentId:k(),open:p,onOpenToggle:a.useCallback(()=>d(b=>!b),[d]),children:i.jsx(g.div,{"data-state":y(p),"data-disabled":c?"":void 0,...C,ref:e})})});P.displayName=m;var S="CollapsibleTrigger",x=a.forwardRef((t,e)=>{const{__scopeCollapsible:o,...n}=t,s=v(S,o);return i.jsx(g.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":y(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:e,onClick:A(t.onClick,s.onOpenToggle)})});x.displayName=S;var R="CollapsibleContent",E=a.forwardRef((t,e)=>{const{forceMount:o,...n}=t,s=v(R,t.__scopeCollapsible);return i.jsx($,{present:o||s.open,children:({present:c})=>i.jsx(q,{...n,ref:e,present:c})})});E.displayName=R;var q=a.forwardRef((t,e)=>{const{__scopeCollapsible:o,present:n,children:s,...c}=t,l=v(R,o),[C,p]=a.useState(n),d=a.useRef(null),b=I(e,d),N=a.useRef(0),_=N.current,j=a.useRef(0),w=j.current,h=l.open||C,L=a.useRef(h),u=a.useRef(void 0);return a.useEffect(()=>{const r=requestAnimationFrame(()=>L.current=!1);return()=>cancelAnimationFrame(r)},[]),D(()=>{const r=d.current;if(r){u.current=u.current||{transitionDuration:r.style.transitionDuration,animationName:r.style.animationName},r.style.transitionDuration="0s",r.style.animationName="none";const O=r.getBoundingClientRect();N.current=O.height,j.current=O.width,L.current||(r.style.transitionDuration=u.current.transitionDuration,r.style.animationName=u.current.animationName),p(n)}},[l.open,n]),i.jsx(g.div,{"data-state":y(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!h,...c,ref:b,style:{"--radix-collapsible-content-height":_?`${_}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...t.style},children:h&&s})});function y(t){return t?"open":"closed"}var K=P,J=x,Q=E;function X(t){const e=f.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let n;return e[2]!==o?(n=i.jsx(K,{"data-slot":"collapsible",...o}),e[2]=o,e[3]=n):n=e[3],n}function ee(t){const e=f.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let n;return e[2]!==o?(n=i.jsx(x,{"data-slot":"collapsible-trigger",...o}),e[2]=o,e[3]=n):n=e[3],n}function te(t){const e=f.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let n;return e[2]!==o?(n=i.jsx(E,{"data-slot":"collapsible-content",...o}),e[2]=o,e[3]=n):n=e[3],n}function oe(){const t=f.c(4);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=G.decoChatOpen(),t[0]=e):e=t[0];const[o,n]=B(e,U);let s;return t[1]!==o||t[2]!==n?(s=[o,n],t[1]=o,t[2]=n,t[3]=s):s=t[3],s}function U(t){return!!(t??!0)}export{X as C,K as R,J as T,F as a,ee as b,te as c,Q as d,Z as e,z as i,oe as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-CP14HTXs.js";import{Y as i}from"./index-7L39VpRz.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-7L39VpRz.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-CP14HTXs.js";import{Y as u,Z as n}from"./index-7L39VpRz.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as N,u as w,d as q,b as G,j as t,B as I,O as B,c as _,E as Q,_ as J,aF as Z,m as V,K as W,t as A}from"./index-7L39VpRz.js";import{a as Y,u as X,e as ee}from"./constants-d5m3mPET.js";import{C as te}from"./collection-tab-CFsl8XVU.js";import{g as ne,h as se}from"./use-connection-IkOXJVs8.js";import{E as F}from"./collection-search-BkqfEg-m.js";import{P as x}from"./index-9OYqqcI6.js";import{B as R,a as M,b as z,c as T}from"./breadcrumb-CbjyCrUB.js";import{a as ie,b as oe}from"./use-binding-C2dcwpZA.js";import{i as le}from"./Loading01-7lPd5VY0.js";import{s as re}from"./RefreshCcw01-Pv9wWC4C.js";import{u as ae}from"./useMutation-DXZOMQax.js";import{e as ce}from"./Dataflow03-yymJ3qCi.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-CQELj61q.js";import"./dropdown-menu-ChxmccFR.js";import"./Check-DojSaPH3.js";import"./ChevronRight-ntt7kj2X.js";import"./ArrowDown-CRMfpA3C.js";import"./ArrowUp-s_vVz9nI.js";import"./Grid01-Q5lBUjoI.js";import"./List-B6fT_JC1.js";import"./tooltip-BMv47aFy.js";import"./index-Ds36Fm_U.js";import"./table-6jko7EVZ.js";import"./card-CT9eRBO8.js";import"./integration-icon-BXY2mwKh.js";import"./Container-DETG3Vpm.js";import"./Copy01-DAgw87le.js";import"./DotsVertical-Cb88o4dO.js";import"./Edit01-Ce9T4GDO.js";import"./Eye-DPG-E6S3.js";import"./Trash01-DrId97Wg.js";import"./empty-state-DVahD977.js";import"./Inbox01-KkWlgZrW.js";import"./use-list-state-Coa6tFOY.js";import"./avatar-CLLAtWtt.js";import"./useQuery-BnNC7qj6.js";import"./use-view-mode-C-QHw5_R.js";import"./use-mobile-DT3I3lYu.js";import"./constants-nlkFmlkQ.js";import"./alert-dialog-CTH20CPb.js";import"./Plus-B4CifUaz.js";import"./layout-DKJsGI23.js";import"./SearchMd-D2_y6K19.js";import"./input-Bg0LE4bT.js";import"./X-CdhcYEPm.js";import"./binder-BSRzuzet.js";const U=({size:n=24,color:e="currentColor",...i})=>N.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},N.createElement("path",{d:"m9.395 19.371.585 1.315a2.212 2.212 0 0 0 4.044 0l.584-1.315a2.426 2.426 0 0 1 2.47-1.423l1.43.152a2.212 2.212 0 0 0 2.023-3.502l-.847-1.164a2.428 2.428 0 0 1-.46-1.434c0-.513.163-1.014.464-1.429l.847-1.163a2.211 2.211 0 0 0-2.022-3.502l-1.43.152a2.433 2.433 0 0 1-1.47-.312 2.426 2.426 0 0 1-1-1.117l-.589-1.315a2.212 2.212 0 0 0-4.044 0L9.395 4.63c-.207.468-.557.86-1 1.117-.445.256-.96.365-1.47.312l-1.434-.152a2.212 2.212 0 0 0-2.023 3.502l.847 1.163a2.43 2.43 0 0 1 0 2.858l-.847 1.163a2.21 2.21 0 0 0 .786 3.273c.382.195.811.274 1.237.23l1.43-.153a2.434 2.434 0 0 1 2.474 1.43Z"}),N.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));U.displayName="Settings02";function de({title:n,description:e,wellKnownMcp:i,imageSrc:a,onConnected:o}){const c=ne(),{org:{slug:s}}=w(),{data:r}=q.useSession(),d=G(),[m,p]=N.useState(!1),l=async()=>{if(!(!i||!r?.user?.id)){p(!0);try{const f=await c.create.mutateAsync(i);o?.(f.id),d({to:"/$org/$project/mcps/$connectionId",params:{org:s,project:B,connectionId:f.id}})}finally{p(!1)}}},u=()=>{d({to:"/$org/$project/mcps",params:{org:s,project:B},search:{action:"create"}})};return t.jsx(F,{image:a?t.jsx("img",{src:a,alt:n,width:336,height:320,className:"max-w-full h-auto"}):null,title:n,description:e,actions:t.jsxs(t.Fragment,{children:[t.jsxs(I,{variant:"outline",onClick:l,disabled:m||!i,children:[i?.icon&&t.jsx("img",{src:i.icon,alt:"",className:"size-4"}),m?"Installing...":`Install ${i?.title||"MCP"}`]}),t.jsx(I,{variant:"outline",onClick:u,children:"Custom Connection"})]})})}function me(n){const e=_.c(35),{bindingName:i,collectionName:a,title:o,emptyState:c,wellKnownMcp:s}=n,{org:r}=w(),d=se();let m;e[0]!==d||e[1]!==i?(m={connections:d,binding:i},e[0]=d,e[1]=i,e[2]=m):m=e[2];const l=ie(m)[0],u=oe(l);let f;if(e[3]!==a||e[4]!==u){let g;e[6]!==a?(g=$=>$.name.toLowerCase()===a.toLowerCase(),e[6]=a,e[7]=g):g=e[7],f=u.find(g),e[3]=a,e[4]=u,e[5]=f}else f=e[5];const S=f,[D,H]=N.useState(null),L=l&&S&&(l.id||D);let h;e[8]!==o?(h=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(R,{children:t.jsx(M,{children:t.jsx(z,{children:t.jsx(T,{children:o})})})})})}),e[8]=o,e[9]=h):h=e[9];let j;e[10]!==l||e[11]!==r||e[12]!==o?(j=g=>{const{error:$,resetError:K}=g;return t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(J,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsxs("h3",{className:"text-lg font-medium",children:["Failed to load ",o.toLowerCase()]}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:$?.message||"Unable to connect to the server. Please check that it is running and accessible."})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs(I,{variant:"outline",onClick:K,children:[t.jsx(re,{className:"size-4"}),"Try again"]}),l&&t.jsx(I,{variant:"outline",asChild:!0,children:t.jsxs(Z,{to:"/$org/$project/mcps/$connectionId",params:{org:r.slug,project:B,connectionId:l.id},search:{tab:"settings"},children:[t.jsx(U,{className:"size-4"}),"Connection Settings"]})})]})]})},e[10]=l,e[11]=r,e[12]=o,e[13]=j):j=e[13];let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),e[14]=k):k=e[14];let b;e[15]!==o?(b=o.toLowerCase(),e[15]=o,e[16]=b):b=e[16];let C;e[17]!==b?(C=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[k,t.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",b,"..."]})]}),e[17]=b,e[18]=C):C=e[18];let y;e[19]!==S||e[20]!==l||e[21]!==c||e[22]!==r||e[23]!==L||e[24]!==s?(y=L?t.jsx(te,{connectionId:l.id,org:r.slug,activeCollection:S}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(de,{title:c.title,description:c.description,wellKnownMcp:s,imageSrc:c.imageSrc,onConnected:g=>{H(g)}})}),e[19]=S,e[20]=l,e[21]=c,e[22]=r,e[23]=L,e[24]=s,e[25]=y):y=e[25];let P;e[26]!==C||e[27]!==y?(P=t.jsx(N.Suspense,{fallback:C,children:y}),e[26]=C,e[27]=y,e[28]=P):P=e[28];let E;e[29]!==j||e[30]!==P?(E=t.jsx(x.Content,{children:t.jsx(Q,{fallback:j,children:P})}),e[29]=j,e[30]=P,e[31]=E):E=e[31];let v;return e[32]!==E||e[33]!==h?(v=t.jsxs(x,{children:[h,E]}),e[32]=E,e[33]=h,e[34]=v):v=e[34],v}function ue(){const n=_.c(12),{org:e,project:i}=w(),a=V();let o;n[0]!==e.id?(o={connectionId:Y,orgId:e.id},n[0]=e.id,n[1]=o):o=n[1];const c=X(o);let s;n[2]!==c||n[3]!==i?(s=async p=>{const l=i.enabledPlugins??[];if(l.includes(p))return;const u=[...l,p],f=await c.callTool({name:"PROJECT_UPDATE",arguments:{projectId:i.id,enabledPlugins:u}});return f.structuredContent??f},n[2]=c,n[3]=i,n[4]=s):s=n[4];let r;n[5]!==e.id||n[6]!==i||n[7]!==a?(r=()=>{a.invalidateQueries({queryKey:W.project(e.id,i.slug)}),a.invalidateQueries({queryKey:W.projects(e.id)})},n[5]=e.id,n[6]=i,n[7]=a,n[8]=r):r=n[8];let d;return n[9]!==s||n[10]!==r?(d={mutationFn:s,onSuccess:r,onError:pe},n[9]=s,n[10]=r,n[11]=d):d=n[11],ae(d)}function pe(n){A.error("Failed to enable plugin: "+(n instanceof Error?n.message:"Unknown error"))}function fe(n){const e=_.c(12),{pluginId:i,title:a,description:o,icon:c}=n,s=ue();let r;e[0]!==s||e[1]!==i?(r=async()=>{try{await s.mutateAsync(i),A.success("Plugin enabled!")}catch{}},e[0]=s,e[1]=i,e[2]=r):r=e[2];const d=r,m=c??null,p=s.isPending?"Enabling…":"Enable plugin";let l;e[3]!==s.isPending||e[4]!==d||e[5]!==p?(l=t.jsx(I,{onClick:d,disabled:s.isPending,children:p}),e[3]=s.isPending,e[4]=d,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==o||e[8]!==m||e[9]!==l||e[10]!==a?(u=t.jsx(F,{image:m,title:a,description:o,actions:l}),e[7]=o,e[8]=m,e[9]=l,e[10]=a,e[11]=u):u=e[11],u}const O="workflows";function at(){const n=_.c(3),{project:e}=w();if(!(e.enabledPlugins??[]).includes(O)){let c;n[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(R,{children:t.jsx(M,{children:t.jsx(z,{children:t.jsx(T,{children:"Workflows"})})})})})}),n[0]=c):c=n[0];let s;return n[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs(x,{children:[c,t.jsx(x.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(fe,{pluginId:O,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:t.jsx("div",{className:"bg-muted p-4 rounded-full",children:t.jsx(ce,{className:"size-8 text-muted-foreground"})})})})})]}),n[1]=s):s=n[1],s}let o;return n[2]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(me,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Run durable MCP tool calls in background."},wellKnownMcp:ee()}),n[2]=o):o=n[2],o}export{at as default};
|