@decocms/mesh 2.123.2 → 2.123.4
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-BpvTeRWZ.js → AlertCircle-DiDJuuO7.js} +1 -1
- package/dist/client/assets/{AlertOctagon-KPbgj_fe.js → AlertOctagon-T8X2xR5Y.js} +1 -1
- package/dist/client/assets/{AlertTriangle-BQr7kJDW.js → AlertTriangle-BR7J9Jvh.js} +1 -1
- package/dist/client/assets/{ArrowLeft-6opPa7zy.js → ArrowLeft-CZ4ZZXqO.js} +1 -1
- package/dist/client/assets/{ArrowUp-Bt1al9WB.js → ArrowUp-CBTnQfpb.js} +1 -1
- package/dist/client/assets/{Check-COoTrHCh.js → Check-ebSdGxZp.js} +1 -1
- package/dist/client/assets/{CheckCircle-Dif3Jy99.js → CheckCircle-BX10u03U.js} +1 -1
- package/dist/client/assets/{CheckDone01-B8UrJ9b0.js → CheckDone01-BKZeNjYI.js} +1 -1
- package/dist/client/assets/{CheckVerified02-BXTAAE0g.js → CheckVerified02-Bc-TzDsw.js} +1 -1
- package/dist/client/assets/{ChevronDown-5ys0844E.js → ChevronDown-BxrIQ2Hg.js} +1 -1
- package/dist/client/assets/{ChevronRight-B8put0eN.js → ChevronRight-D1zpPr9G.js} +1 -1
- package/dist/client/assets/{Clock-lQFxjk3U.js → Clock-ByTlM-Ae.js} +1 -1
- package/dist/client/assets/{Code01-BZ3OnS6C.js → Code01-62o0ASv5.js} +1 -1
- package/dist/client/assets/{Container-CYXpgUH-.js → Container-Cr2TCDTS.js} +1 -1
- package/dist/client/assets/{Copy01-RhM6GPKh.js → Copy01-CfVZSokb.js} +1 -1
- package/dist/client/assets/{Dataflow03-DQ3l0uK3.js → Dataflow03-CEYvQeh9.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-CXUsxuDx.js → DotsHorizontal-D_wKOZTi.js} +1 -1
- package/dist/client/assets/{DotsVertical--UCmDvo-.js → DotsVertical-BNJZVkhj.js} +1 -1
- package/dist/client/assets/{Download01-RzJvHlJ-.js → Download01-CMusldak.js} +1 -1
- package/dist/client/assets/{Edit01-pUCJ7HNy.js → Edit01-BySGjbs-.js} +1 -1
- package/dist/client/assets/{Eye-Dk7SbACo.js → Eye-Wh_bq-Y4.js} +1 -1
- package/dist/client/assets/{File02-BuUCkwHe.js → File02-Drnn3tnJ.js} +1 -1
- package/dist/client/assets/{File06-BiAuw-uA.js → File06-CL04kImU.js} +1 -1
- package/dist/client/assets/{FilterLines-DAGdGqpc.js → FilterLines-DgwYDfry.js} +1 -1
- package/dist/client/assets/{Globe01-BW-Ba2wM.js → Globe01-BMVTN5_w.js} +1 -1
- package/dist/client/assets/{Globe02-JrHK1B-m.js → Globe02-BD3ZCWms.js} +1 -1
- package/dist/client/assets/{Grid01-B0TbJ6AU.js → Grid01-BWcrgmNx.js} +1 -1
- package/dist/client/assets/{Hash02-CjnFXmXE.js → Hash02-Dqi3bcQt.js} +1 -1
- package/dist/client/assets/{Home02-DygdOIOt.js → Home02-lTWiIHtK.js} +1 -1
- package/dist/client/assets/{Image01-CjAt3NIh.js → Image01-DcX1niB5.js} +1 -1
- package/dist/client/assets/{Inbox01-iihr_vaX.js → Inbox01-8_gDqife.js} +1 -1
- package/dist/client/assets/{InfoCircle-DgqWMR4R.js → InfoCircle-BKPaDpeK.js} +1 -1
- package/dist/client/assets/{Key01-CMhaJPaL.js → Key01-CyWdmMm6.js} +1 -1
- package/dist/client/assets/{LinkExternal01-zi5yhvLt.js → LinkExternal01-DPNrtGWV.js} +1 -1
- package/dist/client/assets/{List-BIF-EvrZ.js → List-DqeEnxu3.js} +1 -1
- package/dist/client/assets/{Loading01-BdPk5R9C.js → Loading01-BZRHfswB.js} +1 -1
- package/dist/client/assets/{Lock01-CPquSRx9.js → Lock01-BDqkVPGz.js} +1 -1
- package/dist/client/assets/{Pin01-CR3q25pP.js → Pin01-BDMJN64-.js} +1 -1
- package/dist/client/assets/{Play-C4BzmLav.js → Play-BKXV9SNy.js} +1 -1
- package/dist/client/assets/{Plus-BJkQ4qvs.js → Plus-YlJja9E2.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-CMJUa0vf.js → RefreshCcw01-Ci0qepHw.js} +1 -1
- package/dist/client/assets/{RefreshCw01-CwUk_ICv.js → RefreshCw01-Sv3Ciq4-.js} +1 -1
- package/dist/client/assets/{Rows03-CaPKdXTG.js → Rows03-DjbwBGBI.js} +1 -1
- package/dist/client/assets/{Save01-pTgRxfLl.js → Save01-CUHpjboy.js} +1 -1
- package/dist/client/assets/{SearchMd-BkraDgIf.js → SearchMd-CdY2Qz31.js} +1 -1
- package/dist/client/assets/{Settings01-JN6f9_qk.js → Settings01-hHMZndAB.js} +1 -1
- package/dist/client/assets/{Shield01-MwzSK_IW.js → Shield01-BC6B_xBt.js} +1 -1
- package/dist/client/assets/{Terminal-D0agZcO6.js → Terminal-D2rGQta9.js} +1 -1
- package/dist/client/assets/{Tool01-VRdaPnbs.js → Tool01-8K3JOGke.js} +1 -1
- package/dist/client/assets/{Trash01-BS69Rn26.js → Trash01-DjSET-_p.js} +1 -1
- package/dist/client/assets/{Upload01-bzy9bCNi.js → Upload01-C0CPwbYb.js} +1 -1
- package/dist/client/assets/{Users03-13i8se4V.js → Users03-BiJcw06H.js} +1 -1
- package/dist/client/assets/{XCircle-Bnl7RwSj.js → XCircle-oJlXTAnn.js} +1 -1
- package/dist/client/assets/{XClose-CIsPKYhP.js → XClose-CNjsPY9p.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-eu9uGyuz.js → agent-connections-preview-CyTgEjXK.js} +1 -1
- package/dist/client/assets/{agent-detail-wValyywk.js → agent-detail-9DFcapAu.js} +1 -1
- package/dist/client/assets/{agents-BQf_kwYr.js → agents-4gtiAnuv.js} +1 -1
- package/dist/client/assets/{alert-dialog-CTIXpfNf.js → alert-dialog-DG1mgLiN.js} +1 -1
- package/dist/client/assets/{auth-catchall-Co8IiazS.js → auth-catchall-BSjXqHGj.js} +1 -1
- package/dist/client/assets/{avatar-CUhi-qzb.js → avatar-CLzAk7bk.js} +1 -1
- package/dist/client/assets/{badge-BAIkBZff.js → badge-zj5rJqFG.js} +1 -1
- package/dist/client/assets/{binder-DZp12Y3n.js → binder-Yx0eVQL7.js} +1 -1
- package/dist/client/assets/{breadcrumb-C2msqz1b.js → breadcrumb-p3FP4YzT.js} +1 -1
- package/dist/client/assets/{button-BpEnz7t9.js → button-BlFVi9O-.js} +1 -1
- package/dist/client/assets/{card-DILUA5lp.js → card-C5XZXHnb.js} +1 -1
- package/dist/client/assets/{chart-yT8TpKTO.js → chart-CECGc95G.js} +1 -1
- package/dist/client/assets/{checkbox-DsMm03Et.js → checkbox-C81GTltZ.js} +1 -1
- package/dist/client/assets/{circle-alert-ld-jNaFW.js → circle-alert-DTrbbil0.js} +1 -1
- package/dist/client/assets/{collection-detail-Bps6AdGb.js → collection-detail-DC6lEGsR.js} +1 -1
- package/dist/client/assets/{collection-tab-Cb2OKmOU.js → collection-tab-dYtQ3dOc.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BcYBtIFU.js → collection-table-wrapper-D3UQPYYs.js} +1 -1
- package/dist/client/assets/{collection-tabs-CJN7uriQ.js → collection-tabs-DXae7bMN.js} +1 -1
- package/dist/client/assets/{command-DFf8Hw6Q.js → command-C0Lk3OoX.js} +1 -1
- package/dist/client/assets/{connect-CjDjmgo0.js → connect-B0zgap2s.js} +1 -1
- package/dist/client/assets/{connection-card-Cxm32ifq.js → connection-card-Bfx8qlqL.js} +1 -1
- package/dist/client/assets/{connection-detail-3ns6XuoV.js → connection-detail-CFl60IV3.js} +1 -1
- package/dist/client/assets/{connections-DSBc-5jR.js → connections-40Z9p3na.js} +1 -1
- package/dist/client/assets/constants-0nWmzfAq.js +1 -0
- package/dist/client/assets/{constants-BoBHGSW8.js → constants-DS4O9R8r.js} +1 -1
- package/dist/client/assets/{context-KYYCma1O.js → context-CJpih0Aq.js} +2 -2
- package/dist/client/assets/{create-organization-dialog-pjo7W0nj.js → create-organization-dialog-BFIfEtVL.js} +1 -1
- package/dist/client/assets/{create-project-dialog-B6kkAgjA.js → create-project-dialog-D2mtQ7wt.js} +1 -1
- package/dist/client/assets/{deco-constants-DGRap-0f.js → deco-constants-B2fB4qCk.js} +1 -1
- package/dist/client/assets/{dialog-CKyGpmoE.js → dialog-BED3woG1.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Df5G5zUr.js → dropdown-menu-Db2R0f6-.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-C7RtCIjV.js → dynamic-plugin-layout-BzLyvc2d.js} +1 -1
- package/dist/client/assets/{empty-state-BO_xpc7n.js → empty-state-CIZqXQMR.js} +1 -1
- package/dist/client/assets/{empty-state-CXRsSa_5.js → empty-state-DwKYfPjb.js} +1 -1
- package/dist/client/assets/{env-vars-editor-CWL7WVCl.js → env-vars-editor-CDWwUXgx.js} +1 -1
- package/dist/client/assets/{error-boundary-DKBJmhkm.js → error-boundary-DFWzxGF2.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CVVFDhKc.js → extract-connection-data-1y_2LKN1.js} +1 -1
- package/dist/client/assets/{file-browser-DFvCuor8.js → file-browser-BLbb-Y8y.js} +2 -2
- package/dist/client/assets/{form-DW9viO4r.js → form-DdvC8UfL.js} +1 -1
- package/dist/client/assets/{grid-view-7qEPSoqU.js → grid-view-CqSeu3_O.js} +1 -1
- package/dist/client/assets/{home-BNkgmOcB.js → home-DlTcQ85K.js} +1 -1
- package/dist/client/assets/{index-ZJgHVjA9.js → index-6Tp9fsVX.js} +1 -1
- package/dist/client/assets/{index-42oFt7Vf.js → index-BG2jkRwM.js} +1 -1
- package/dist/client/assets/{index-CLnaj1R8.js → index-Bb5ajAZZ.js} +1 -1
- package/dist/client/assets/{index-C2ysDUMA.js → index-C5tdq0OE.js} +1 -1
- package/dist/client/assets/{index-DYSwonwp.js → index-CNFSBpm2.js} +1 -1
- package/dist/client/assets/{index-Dj3-TAFC.js → index-Chdo1wOf.js} +3 -3
- package/dist/client/assets/{index-LqsHIY-h.js → index-Cs9SJKB2.js} +1 -1
- package/dist/client/assets/{index-pyLbkMHd.js → index-D8_oQFvH.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CXT3S8iT.js → infiniteQueryObserver-DOxbID_2.js} +1 -1
- package/dist/client/assets/{input-BJdUVCMG.js → input-C2bYHqSZ.js} +1 -1
- package/dist/client/assets/{integration-icon-CitBcWGE.js → integration-icon-CHfvIBul.js} +1 -1
- package/dist/client/assets/{label-CLOKtxmE.js → label-Cz00Hk_C.js} +1 -1
- package/dist/client/assets/{layout-Bm2oJesN.js → layout-D8HdJww7.js} +1 -1
- package/dist/client/assets/{localstorage-keys-Bxhx_7VG.js → localstorage-keys-D6jY_B8O.js} +1 -1
- package/dist/client/assets/{login-C1DGsJab.js → login-B4sEC044.js} +1 -1
- package/dist/client/assets/{markdown-C6oZzbdV.js → markdown-W0glOUUc.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BgGOZ6Yl.js → mcp-oauth-CxZiVIG0.js} +1 -1
- package/dist/client/assets/{mcp-server-card-Bs5CjNs8.js → mcp-server-card-MyE_33s4.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-TYK4H4ys.js → mcp-server-detail-DPKP-AVk.js} +2 -2
- package/dist/client/assets/{members-Dtp6tHqv.js → members-C0wNcB0L.js} +1 -1
- package/dist/client/assets/{monitoring-D4yuvuET.js → monitoring-DnyUAZQs.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-BhZoWvFY.js → monitoring-dashboard-edit-CeSLs60r.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-D3TquP25.js → monitoring-dashboard-view-CXYrse_E.js} +1 -1
- package/dist/client/assets/{oauth-callback-deuUTi00.js → oauth-callback-CtEIzTst.js} +1 -1
- package/dist/client/assets/{page-DOr5GIYN.js → page-BaeXPwI_.js} +1 -1
- package/dist/client/assets/{page-D2E5ZzCU.js → page-wIVLNXO6.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-TS8DmJJp.js → plugin-empty-state-C3dQRExn.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-Bgs1lZLk.js → plugin-empty-state-CtOLvnau.js} +1 -1
- package/dist/client/assets/{plugin-header-BeCh7KII.js → plugin-header-BpYtnCvY.js} +1 -1
- package/dist/client/assets/{plugin-header-CBzycd5v.js → plugin-header-wMO8zy_s.js} +1 -1
- package/dist/client/assets/{popover-BvNaYtjG.js → popover-B4On8gSm.js} +1 -1
- package/dist/client/assets/{project-layout-DUPzxc2p.js → project-layout-1AjzWWMn.js} +1 -1
- package/dist/client/assets/{projects-list-BnTZ2oT-.js → projects-list-DNSZsINF.js} +1 -1
- package/dist/client/assets/{ranking-layout-CRWlaZ6i.js → ranking-layout-BgeMngBH.js} +1 -1
- package/dist/client/assets/{readme-viewer-BIh-4-st.js → readme-viewer-gb5hrmSg.js} +1 -1
- package/dist/client/assets/{registry-layout-DCY6UJG0.js → registry-layout-Cyki9u_h.js} +1 -1
- package/dist/client/assets/{registry-utils-fUWTJDy1.js → registry-utils-BL6Np0uD.js} +1 -1
- package/dist/client/assets/{reports-layout-D8otPyup.js → reports-layout-DImwy6ND.js} +1 -1
- package/dist/client/assets/{reset-password-B2xcsGcX.js → reset-password-ButVRXi9.js} +1 -1
- package/dist/client/assets/{resizable-B7M-KqaZ.js → resizable-DUdJ1A_O.js} +1 -1
- package/dist/client/assets/{save-actions-CnZBYHaQ.js → save-actions-BiCpAXjr.js} +1 -1
- package/dist/client/assets/{scroll-area-CK3Yk4ZG.js → scroll-area-C9Z4g4D3.js} +1 -1
- package/dist/client/assets/{select-D3Cqu_xI.js → select-DwyzrBGR.js} +1 -1
- package/dist/client/assets/{shell-layout-gULKyNae.js → shell-layout-BGf6BKNx.js} +1 -1
- package/dist/client/assets/{skeleton-BEJPNsmx.js → skeleton-DdrlSfda.js} +1 -1
- package/dist/client/assets/{spinner-DP-rnGOg.js → spinner-DeIV40-d.js} +1 -1
- package/dist/client/assets/{store-invite-7kH88tcd.js → store-invite-DHfus7Si.js} +1 -1
- package/dist/client/assets/{switch-Dc13mBjk.js → switch-BW_XeGpN.js} +1 -1
- package/dist/client/assets/{table-5zDBkIKt.js → table-N5hQy-1m.js} +1 -1
- package/dist/client/assets/{tasks-VFkq3Gln.js → tasks-CKkoq9mO.js} +1 -1
- package/dist/client/assets/{textarea-DQjt4TcB.js → textarea-B5CEImaf.js} +1 -1
- package/dist/client/assets/{time-range-picker-DlLbbTWq.js → time-range-picker-B3M_kZtN.js} +1 -1
- package/dist/client/assets/{toggle-group-7v5RUGzy.js → toggle-group-k8q-T2Qa.js} +1 -1
- package/dist/client/assets/{tools-list-CYXwR1B4.js → tools-list-TXvbi7bf.js} +1 -1
- package/dist/client/assets/{tooltip-jCrVkUGG.js → tooltip-BWW8lvJo.js} +1 -1
- package/dist/client/assets/{topbar-portal-BgsY0Tym.js → topbar-portal-m9wB0x-E.js} +1 -1
- package/dist/client/assets/{typewriter-title-CqQ7vz03.js → typewriter-title-DcVIzze1.js} +1 -1
- package/dist/client/assets/{use-binding-D1PhjEYd.js → use-binding-DT0OPEEL.js} +1 -1
- package/dist/client/assets/{use-connection-CU2MpSPl.js → use-connection-O4z2Mc_F.js} +1 -1
- package/dist/client/assets/{use-copy-52ScM36o.js → use-copy-Drx5AGFH.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Dgc9LRMA.js → use-create-virtual-mcp-CZu2JnDv.js} +1 -1
- package/dist/client/assets/{use-deco-chat-open-DEcM1zJp.js → use-deco-chat-open-Qq9AtQ8h.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-D0ma5MSu.js → use-install-from-registry-Dc84s0lp.js} +1 -1
- package/dist/client/assets/{use-list-state-CHfyM4gv.js → use-list-state-DQM_pDDC.js} +1 -1
- package/dist/client/assets/{use-llm-CeHDiSJa.js → use-llm-Z9GIoSzc.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DKsdNnZ7.js → use-mcp-prompts-uD1aNW_g.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-D1hnuDSz.js → use-mcp-tools-B8wkpbTs.js} +1 -1
- package/dist/client/assets/{use-mobile-Dn42c33D.js → use-mobile-ziAtnWz2.js} +1 -1
- package/dist/client/assets/{use-organization-settings-D7m45jWB.js → use-organization-settings-BJEr33WT.js} +1 -1
- package/dist/client/assets/{use-project-BPC08iXP.js → use-project-Dz1PHkz5.js} +1 -1
- package/dist/client/assets/{use-settings-modal-Ddi5OSQC.js → use-settings-modal-CYH_HZlL.js} +1 -1
- package/dist/client/assets/{use-view-mode-D6ejd-aW.js → use-view-mode-CRJUL6S-.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BSB4fi0P.js → use-virtual-mcp-BateG3is.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BHuahm2t.js +1 -0
- package/dist/client/assets/{useMutation-DXvszu1D.js → useMutation-BTkDU0tp.js} +1 -1
- package/dist/client/assets/useQuery-C0AkqYB7.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DPaJK1nP.js +1 -0
- package/dist/client/assets/{workflow-tlR1uEKO.js → workflow-CTPlOYoh.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +211 -211
- package/dist/server/migrate.js +184 -184
- package/dist/server/server.js +190 -190
- package/package.json +1 -1
- package/dist/client/assets/constants-BU0VInXj.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CrVQg4J6.js +0 -1
- package/dist/client/assets/useQuery-7VkeRbRj.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BUl5uhPk.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as z,c as _,j as s,u as le,b as Ce,by as _e,L as Ie,bF as xt,bG as ht,O as V,H as gt,e as Oe,d as ce,t as ae,bH as jt,b6 as bt,m as Nt,A as yt,S as He,f as vt,h as St,N as kt,n as Ct,K as _t,aD as Ue,P as wt}from"./index-Dj3-TAFC.js";import{C as X}from"./index-CLnaj1R8.js";import{I as $t}from"./integration-icon-CitBcWGE.js";import{P as me,u as We,d as ie,e as ee,f as we,g as ge,h as je,i as Ge,j as zt,k as It,l as Be,m as Pt,n as At,o as Ot,p as Tt}from"./index-ZJgHVjA9.js";import{u as Te,C as Mt,e as Et,f as Lt}from"./use-deco-chat-open-DEcM1zJp.js";import{c as G,B as Se}from"./button-BpEnz7t9.js";import{d as Dt,u as Rt}from"./constants-BoBHGSW8.js";import{T as Ft,i as Ht,b as Ut}from"./typewriter-title-CqQ7vz03.js";import{s as xe}from"./Plus-BJkQ4qvs.js";import{t as Me}from"./Users03-13i8se4V.js";import{i as Pe,a as Wt,b as Gt,T as Bt}from"./tooltip-jCrVkUGG.js";import{E as qe}from"./error-boundary-DKBJmhkm.js";import{b as qt,i as Vt}from"./context-KYYCma1O.js";import{C as Ve}from"./create-project-dialog-B6kkAgjA.js";import{u as $e,S as Z}from"./skeleton-BEJPNsmx.js";import{t as Ke,u as Ye}from"./use-settings-modal-Ddi5OSQC.js";import{n as De}from"./CheckDone01-B8UrJ9b0.js";import{n as Kt}from"./Container-CYXpgUH-.js";import{e as Yt}from"./Dataflow03-DQ3l0uK3.js";import{a as Qt}from"./Home02-DygdOIOt.js";import{t as ke}from"./Settings01-JN6f9_qk.js";import{a as Qe,u as Ze}from"./use-project-BPC08iXP.js";import{t as Je}from"./ChevronDown-5ys0844E.js";import{A as ue}from"./avatar-CUhi-qzb.js";import{c as Y,g as he,d as Zt,e as Jt,f as Xt,b as Xe,D as et,a as tt}from"./dropdown-menu-Df5G5zUr.js";import{i as fe}from"./Check-COoTrHCh.js";import{C as es}from"./create-organization-dialog-pjo7W0nj.js";import{a as ts}from"./Copy01-RhM6GPKh.js";import{i as st}from"./File06-BiAuw-uA.js";import{i as ss}from"./Globe01-BW-Ba2wM.js";import{n as pe}from"./LinkExternal01-zi5yhvLt.js";import{i as rs}from"./Shield01-MwzSK_IW.js";import{a as ns,P as is,b as os}from"./popover-BvNaYtjG.js";import{D as ls,i as as}from"./deco-constants-DGRap-0f.js";import{n as Re}from"./Inbox01-iihr_vaX.js";import{s as cs}from"./XClose-CIsPKYhP.js";import{h as ds}from"./use-connection-CU2MpSPl.js";import{b as ms}from"./use-mcp-tools-D1hnuDSz.js";import{u as rt,a as us}from"./use-organization-settings-D7m45jWB.js";import{i as fs}from"./ChevronRight-B8put0eN.js";import{u as Ee,L as Le}from"./localstorage-keys-Bxhx_7VG.js";import{R as ps,a as nt,b as xs}from"./resizable-B7M-KqaZ.js";import"./spinner-DP-rnGOg.js";import"./use-mcp-prompts-DKsdNnZ7.js";import"./useQuery-7VkeRbRj.js";import"./dialog-CKyGpmoE.js";import"./form-DW9viO4r.js";import"./label-CLOKtxmE.js";import"./input-BJdUVCMG.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-Bt1al9WB.js";import"./Edit01-pUCJ7HNy.js";import"./XCircle-Bnl7RwSj.js";import"./AlertCircle-BpvTeRWZ.js";import"./AlertTriangle-BQr7kJDW.js";import"./ArrowLeft-6opPa7zy.js";import"./use-copy-52ScM36o.js";import"./badge-BAIkBZff.js";import"./Code01-BZ3OnS6C.js";import"./use-virtual-mcp-BSB4fi0P.js";import"./SearchMd-BkraDgIf.js";import"./use-create-virtual-mcp-Dgc9LRMA.js";import"./marked.esm-BaswSlok.js";import"./markdown-C6oZzbdV.js";import"./tools-list-CYXwR1B4.js";import"./collection-table-wrapper-BcYBtIFU.js";import"./Grid01-B0TbJ6AU.js";import"./List-BIF-EvrZ.js";import"./table-5zDBkIKt.js";import"./empty-state-CXRsSa_5.js";import"./Loading01-BdPk5R9C.js";import"./card-DILUA5lp.js";import"./Eye-Dk7SbACo.js";import"./Globe02-JrHK1B-m.js";import"./RefreshCw01-CwUk_ICv.js";import"./layout-Bm2oJesN.js";import"./generate-id-Dyweu44Y.js";import"./Clock-lQFxjk3U.js";import"./Trash01-BS69Rn26.js";import"./use-mobile-Dn42c33D.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-CeHDiSJa.js";import"./use-binding-D1PhjEYd.js";import"./binder-DZp12Y3n.js";import"./select-D3Cqu_xI.js";import"./Image01-CjAt3NIh.js";import"./RefreshCcw01-CMJUa0vf.js";import"./useSuspenseInfiniteQuery-BUl5uhPk.js";import"./infiniteQueryObserver-CXT3S8iT.js";import"./useMutation-DXvszu1D.js";import"./textarea-DQjt4TcB.js";import"./alert-dialog-CTIXpfNf.js";const it=({size:t=24,color:e="currentColor",...r})=>z.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},z.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));it.displayName="BarChart10";const ot=({size:t=24,color:e="currentColor",...r})=>z.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},z.createElement("path",{d:"M8 14s1.5 2 4 2 4-2 4-2m-1-5h.01M9 9h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-6.5-3a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm-6 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"}));ot.displayName="FaceSmile";const lt=({size:t=24,color:e="currentColor",...r})=>z.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},z.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H9"}));lt.displayName="LogOut01";const at=({size:t=24,color:e="currentColor",...r})=>z.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},z.createElement("path",{d:"M8 9.5h4M8 13h7m-3 8a9 9 0 1 0-8.342-5.616c.081.2.122.3.14.381a.907.907 0 0 1 .024.219c0 .083-.015.173-.045.353l-.593 3.558c-.062.373-.093.56-.035.694a.5.5 0 0 0 .262.262c.135.058.321.027.694-.035l3.558-.593c.18-.03.27-.045.353-.045.081 0 .14.006.219.024.08.018.18.059.38.14A8.973 8.973 0 0 0 12 21Z"}));at.displayName="MessageTextCircle02";function hs(){const t=_.c(65),{org:e}=le(),[,r]=Te(),{selectedVirtualMcp:o,modelsConnections:i,isChatEmpty:l,activeThreadId:n,createThread:a,switchToThread:d,threads:c}=qt();let m;if(t[0]!==n||t[1]!==c){let U;t[3]!==n?(U=B=>B.id===n,t[3]=n,t[4]=U):U=t[4],m=c.find(U),t[0]=n,t[1]=c,t[2]=m}else m=t[2];const f=m,[u,h]=z.useState(!1),[x,g]=z.useTransition();let j;t[5]!==e.id?(j=Dt(e.id),t[5]=e.id,t[6]=j):j=t[6];const p=o??j;let b;t[7]!==a?(b=()=>{g(()=>{a()})},t[7]=a,t[8]=b):b=t[8];const S=b;if(i.length===0){let U;t[9]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(me.Header.Left,{className:"gap-2"}),t[9]=U):U=t[9];let B;t[10]!==r?(B=()=>r(!1),t[10]=r,t[11]=B):B=t[11];let k;t[12]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(Pe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=k):k=t[12];let q;t[13]!==B?(q=s.jsxs(me.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[U,s.jsx(me.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:B,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:k})})]}),t[13]=B,t[14]=q):q=t[14];let ne;t[15]!==e?(ne=s.jsx(X.Main,{className:"flex flex-col items-center",children:s.jsx(X.EmptyState,{children:s.jsx(X.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[15]=e,t[16]=ne):ne=t[16];let de;return t[17]!==q||t[18]!==ne?(de=s.jsxs(X,{className:"animate-in fade-in-0 duration-200",children:[q,ne]}),t[17]=q,t[18]=ne,t[19]=de):de=t[19],de}const y=u?"duration-300 opacity-0 -translate-x-4 pointer-events-none":x?"duration-150 opacity-0 pointer-events-none":"duration-300 opacity-100 translate-x-0";let C;t[20]!==y?(C=G("absolute inset-0 flex flex-col transition-[opacity,transform] ease-[var(--ease-out-quart)]",y),t[20]=y,t[21]=C):C=t[21];let N;t[22]!==f||t[23]!==l?(N=!l&&f?.title&&s.jsx(Ft,{text:f.title,className:"text-sm font-medium text-foreground"}),t[22]=f,t[23]=l,t[24]=N):N=t[24];let I;t[25]!==N?(I=s.jsx(me.Header.Left,{className:"gap-2",children:N}),t[25]=N,t[26]=I):I=t[26];let T;t[27]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(xe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=T):T=t[27];let E;t[28]!==S||t[29]!==x?(E=s.jsx("button",{type:"button",onClick:S,disabled:x,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:T}),t[28]=S,t[29]=x,t[30]=E):E=t[30];let M;t[31]===Symbol.for("react.memo_cache_sentinel")?(M=()=>h(!0),t[31]=M):M=t[31];let W;t[32]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx("button",{type:"button",onClick:M,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Chat history",children:s.jsx(Ht,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=W):W=t[32];let D;t[33]!==r?(D=()=>r(!1),t[33]=r,t[34]=D):D=t[34];let R;t[35]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(Pe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[35]=R):R=t[35];let P;t[36]!==D?(P=s.jsx("button",{type:"button",onClick:D,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:R}),t[36]=D,t[37]=P):P=t[37];let L;t[38]!==P||t[39]!==E?(L=s.jsxs(me.Header.Right,{className:"gap-1",children:[E,W,P]}),t[38]=P,t[39]=E,t[40]=L):L=t[40];let $;t[41]!==L||t[42]!==I?($=s.jsxs(me.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[I,L]}),t[41]=L,t[42]=I,t[43]=$):$=t[43];let A;t[44]!==p||t[45]!==l?(A=s.jsx(X.Main,{children:l?s.jsx(X.EmptyState,{children:s.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[s.jsx($t,{icon:p.icon,name:p.title,size:"lg",fallbackIcon:s.jsx(Me,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:p.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:p.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(X.IceBreakers,{})]})}):s.jsx(X.Messages,{})}),t[44]=p,t[45]=l,t[46]=A):A=t[46];let O;t[47]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(X.Footer,{children:s.jsx(X.Input,{})}),t[47]=O):O=t[47];let F;t[48]!==$||t[49]!==A||t[50]!==C?(F=s.jsxs("div",{className:C,children:[$,A,O]}),t[48]=$,t[49]=A,t[50]=C,t[51]=F):F=t[51];const re=u?"opacity-100 translate-x-0":"opacity-0 translate-x-4 pointer-events-none";let te;t[52]!==re?(te=G("absolute inset-0 flex flex-col transition-[opacity,transform] duration-300 ease-[var(--ease-out-quart)]",re),t[52]=re,t[53]=te):te=t[53];let se;t[54]===Symbol.for("react.memo_cache_sentinel")?(se=()=>h(!1),t[54]=se):se=t[54];let K;t[55]!==n||t[56]!==d||t[57]!==c?(K=s.jsx(Ut,{threads:c,activeThreadId:n,onThreadSelect:d,onClose:se}),t[55]=n,t[56]=d,t[57]=c,t[58]=K):K=t[58];let H;t[59]!==te||t[60]!==K?(H=s.jsx("div",{className:te,children:K}),t[59]=te,t[60]=K,t[61]=H):H=t[61];let Q;return t[62]!==F||t[63]!==H?(Q=s.jsxs(X,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[F,H]}),t[62]=F,t[63]=H,t[64]=Q):Q=t[64],Q}function gs(){const t=_.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(X.Skeleton,{}),t[0]=e):e=t[0];let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(qe,{fallback:e,children:s.jsx(z.Suspense,{fallback:s.jsx(X.Skeleton,{}),children:s.jsx(hs,{})})}),t[1]=r):r=t[1],r}function js(){const t=_.c(54),[e]=$e(),{locator:r,org:o}=le(),i=Ce(),l=_e(),{org:n,project:a}=Ie.parse(r),d=Ie.isOrgAdminProject(r),{data:c}=Qe(o.id,a);let m;t[0]!==c?.enabledPlugins?(m=c?.enabledPlugins??[],t[0]=c?.enabledPlugins,t[1]=m):m=t[1];const f=m;let u;t[2]!==f?(u=w=>f.includes(w.pluginId),t[2]=f,t[3]=u):u=t[3];const h=xt.filter(u),x=l.location.pathname,g=`/${n}/${a}`,j=x===g||x===`${g}/`;let v;t[4]!==g||t[5]!==x?(v=w=>x.startsWith(`${g}/${w}`),t[4]=g,t[5]=x,t[6]=v):v=t[6];const p=v;let b;t[7]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Qt,{}),t[7]=b):b=t[7];const S={key:"home",label:"Home",icon:b,isActive:j,onClick:()=>{j?window.dispatchEvent(new CustomEvent("reset-home-view")):i({to:"/$org/$project",params:{org:n,project:a}})}};let y;t[8]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(De,{}),t[8]=y):y=t[8];const C={key:"tasks",label:"Tasks",icon:y,isActive:p("tasks"),onClick:()=>i({to:"/$org/$project/tasks",params:{org:n,project:V}})};let N;t[9]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(Kt,{}),t[9]=N):N=t[9];const I={key:"mcps",label:"Connections",icon:N,isActive:p("mcps"),onClick:()=>i({to:"/$org/$project/mcps",params:{org:n,project:V}})};let T;t[10]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(gt,{}),t[10]=T):T=t[10];const E={key:"projects",label:"Projects",icon:T,isActive:p("projects"),onClick:()=>i({to:"/$org/$project/projects",params:{org:n,project:V}})};let M;t[11]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(Ke,{}),t[11]=M):M=t[11];const W={key:"store",label:"Store",icon:M,isActive:p("store"),onClick:()=>i({to:"/$org/$project/store",params:{org:n,project:V}})};let D;t[12]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Me,{}),t[12]=D):D=t[12];const R={key:"agents",label:"Agents",icon:D,isActive:p("agents"),onClick:()=>i({to:"/$org/$project/agents",params:{org:n,project:V}})};let P;t[13]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(it,{}),t[13]=P):P=t[13];const L={key:"monitoring",label:"Monitor",icon:P,isActive:p("monitoring"),onClick:()=>i({to:"/$org/$project/monitoring",params:{org:n,project:V}})};let $;t[14]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(ot,{}),t[14]=$):$=t[14];const A={key:"members",label:"Members",icon:$,isActive:p("members"),onClick:()=>i({to:"/$org/$project/members",params:{org:n,project:V}})},O=h.map(w=>({key:w.pluginId,label:w.label,icon:w.icon,isActive:p(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:n,project:a,pluginId:w.pluginId}})}));let F;t[15]!==f?(F=w=>f.includes(w.pluginId),t[15]=f,t[16]=F):F=t[16];const te=ht.filter(F).map(w=>({type:"group",group:{id:`${w.pluginId}-${w.id}`,label:w.label,items:w.items.map((J,oe)=>({key:`${w.pluginId}-${w.id}-${oe}`,label:J.label,icon:J.icon,isActive:p(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:n,project:a,pluginId:w.pluginId}})})),defaultExpanded:w.defaultExpanded??!0}}));if(d){let w;t[17]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(ke,{}),t[17]=w):w=t[17];let J;t[18]!==p?(J=p("settings"),t[18]=p,t[19]=J):J=t[19];let oe;t[20]!==i||t[21]!==n?(oe=()=>i({to:"/$org/$project/settings",params:{org:n,project:V}}),t[20]=i,t[21]=n,t[22]=oe):oe=t[22];let ye;t[23]!==J||t[24]!==oe?(ye={key:"settings",label:"Settings",icon:w,isActive:J,onClick:oe},t[23]=J,t[24]=oe,t[25]=ye):ye=t[25];const pt=ye,ze=[{type:"items",items:[S,...e.experimental_tasks?[C]:[],...e.experimental_projects?[E]:[]]},{type:"group",group:{id:"build",label:"Build",items:[R,I,W],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[L,A,pt],defaultExpanded:!0}}];if(O.length>0){let ve;t[26]!==O?(ve={type:"items",items:O},t[26]=O,t[27]=ve):ve=t[27],ze.push(ve)}return te.length>0&&ze.push(...te),ze}let se;t[28]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(De,{}),t[28]=se):se=t[28];let K;t[29]!==p?(K=p("tasks"),t[29]=p,t[30]=K):K=t[30];let H;t[31]!==i||t[32]!==n||t[33]!==a?(H=()=>i({to:"/$org/$project/tasks",params:{org:n,project:a}}),t[31]=i,t[32]=n,t[33]=a,t[34]=H):H=t[34];let Q;t[35]!==K||t[36]!==H?(Q={key:"tasks",label:"Tasks",icon:se,isActive:K,onClick:H},t[35]=K,t[36]=H,t[37]=Q):Q=t[37];const U=Q;let B;t[38]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(Yt,{}),t[38]=B):B=t[38];let k;t[39]!==p?(k=p("workflows"),t[39]=p,t[40]=k):k=t[40];let q;t[41]!==i||t[42]!==n||t[43]!==a?(q=()=>i({to:"/$org/$project/workflows",params:{org:n,project:a}}),t[41]=i,t[42]=n,t[43]=a,t[44]=q):q=t[44];let ne;t[45]!==k||t[46]!==q?(ne={key:"workflows",label:"Workflows",icon:B,isActive:k,onClick:q},t[45]=k,t[46]=q,t[47]=ne):ne=t[47];const de=ne;let be;t[48]!==e.experimental_tasks||t[49]!==U?(be=e.experimental_tasks?[U]:[],t[48]=e.experimental_tasks,t[49]=U,t[50]=be):be=t[50];const Ne=[{type:"items",items:[S,...be,de]}];if(O.length>0){let w;t[51]===Symbol.for("react.memo_cache_sentinel")?(w={type:"divider"},t[51]=w):w=t[51],Ne.push(w);let J;t[52]!==O?(J={type:"items",items:O},t[52]=O,t[53]=J):J=t[53],Ne.push(J)}return te.length>0&&Ne.push(...te),Ne}function bs(t){const e=_.c(11),{label:r,children:o,defaultExpanded:i}=t,l=i===void 0?!0:i,[n,a]=z.useState(l),{state:d}=We(),c=d==="collapsed";let m;e[0]!==n||e[1]!==c||e[2]!==r?(m=c?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(ie,{children:s.jsx(ee,{children:s.jsxs(we,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>a(!n),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:r}),s.jsx(Je,{size:12,className:G("text-muted-foreground transition-transform duration-200",!n&&"-rotate-90")})]})})}),e[0]=n,e[1]=c,e[2]=r,e[3]=m):m=e[3];let f;e[4]!==o||e[5]!==n||e[6]!==c?(f=(c||n)&&s.jsx(ge,{children:s.jsx(ie,{className:"gap-0.5",children:o})}),e[4]=o,e[5]=n,e[6]=c,e[7]=f):f=e[7];let u;return e[8]!==m||e[9]!==f?(u=s.jsxs(je,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[m,f]}),e[8]=m,e[9]=f,e[10]=u):u=e[10],u}function ct(t){const e=_.c(13),{item:r}=t;let o;e[0]!==r.icon?(o=s.jsx("span",{className:"[&>svg]:size-4",children:r.icon}),e[0]=r.icon,e[1]=o):o=e[1];let i;e[2]!==r.label?(i=s.jsx("span",{className:"truncate group-data-[collapsible=icon]:hidden",children:r.label}),e[2]=r.label,e[3]=i):i=e[3];let l;e[4]!==r.isActive||e[5]!==r.label||e[6]!==r.onClick||e[7]!==o||e[8]!==i?(l=s.jsxs(we,{onClick:r.onClick,isActive:r.isActive,tooltip:r.label,children:[o,i]}),e[4]=r.isActive,e[5]=r.label,e[6]=r.onClick,e[7]=o,e[8]=i,e[9]=l):l=e[9];let n;return e[10]!==r.key||e[11]!==l?(n=s.jsx(ee,{children:l},r.key),e[10]=r.key,e[11]=l,e[12]=n):n=e[12],n}function Ns(t){const 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(Ge,{className:"my-2"}),e[0]=o):o=e[0],o}case"spacer":{let o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1"}),e[1]=o):o=e[1],o}case"group":{const o=r.group.label,i=r.group.defaultExpanded;let l;e[2]!==r.group.items?(l=r.group.items.map(vs),e[2]=r.group.items,e[3]=l):l=e[3];let n;return e[4]!==r.group.defaultExpanded||e[5]!==r.group.label||e[6]!==l?(n=s.jsx(bs,{label:o,defaultExpanded:i,children:l}),e[4]=r.group.defaultExpanded,e[5]=r.group.label,e[6]=l,e[7]=n):n=e[7],n}case"items":{let o;e[8]!==r.items?(o=r.items.map(ys),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 ys(t){return s.jsx(ct,{item:t},t.key)}function vs(t){return s.jsx(ct,{item:t},t.key)}function dt(t){const e=_.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(Ss),e[2]=r,e[3]=u):u=e[3];let h;e[4]!==l||e[5]!==f||e[6]!==u?(h=s.jsxs(zt,{className:f,children:[u,l]}),e[4]=l,e[5]=f,e[6]=u,e[7]=h):h=e[7];let x;return e[8]!==m||e[9]!==i||e[10]!==o||e[11]!==h||e[12]!==c?(x=s.jsxs(It,{variant:c,collapsible:m,children:[o,h,i]}),e[8]=m,e[9]=i,e[10]=o,e[11]=h,e[12]=c,e[13]=x):x=e[13],x}function Ss(t,e){return s.jsx(Ns,{section:t},e)}dt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,r)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(Z,{className:"h-full bg-sidebar-accent rounded-md"})},r))})};function ks(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(Z,{className:"h-8 w-full rounded-lg"}),s.jsx(Z,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function Cs(t){const e=_.c(12),{organizationId:r,currentProjectSlug:o,onSelect:i}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={suspense:!0},e[0]=l):l=e[0];const{data:n}=Ze(r,l);let a,d;if(e[1]!==o||e[2]!==i||e[3]!==n){d=Symbol.for("react.early_return_sentinel");e:{const m=n?.filter(_s)??[];if(m.length===0){let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=u):u=e[6],d=u;break e}let f;e[7]!==o||e[8]!==i?(f=u=>{const h=o===u.slug,x=u.ui?.themeColor??"#3B82F6";return s.jsxs(Y,{className:G("gap-2.5",h&&"bg-accent"),onClick:()=>i(u.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:{backgroundColor:x},children:u.ui?.icon?s.jsx("img",{src:u.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:u.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:u.name}),h&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},u.id)},e[7]=o,e[8]=i,e[9]=f):f=e[9],a=m.map(f)}e[1]=o,e[2]=i,e[3]=n,e[4]=a,e[5]=d}else a=e[4],d=e[5];if(d!==Symbol.for("react.early_return_sentinel"))return d;let c;return e[10]!==a?(c=s.jsx(s.Fragment,{children:a}),e[10]=a,e[11]=c):c=e[11],c}function _s(t){return t.slug!==V}function ws(t){let e=0;for(let o=0;o<t.length;o++)e=t.charCodeAt(o)+((e<<5)-e);const r=Math.abs(e)%360;return{backgroundColor:`hsl(${r} 55% 70%)`,color:`hsl(${r} 55% 20%)`}}function mt(t){const e=_.c(44),{isCollapsed:r,onCreateProject:o}=t,i=r===void 0?!1:r;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},e[0]=l):l=e[0];const{org:n,project:a}=Oe(l),{data:d}=ce.useListOrganizations(),c=Ce(),m=d?.find(k=>k.slug===n),[f,u]=z.useState(!1),[h]=$e(),x=h.experimental_projects,g=a===V,{data:j}=Qe(m?.id??"",g?"":a??"");let v;e[1]!==n?(v=(k,q)=>k.slug===n?-1:q.slug===n?1:k.name.localeCompare(q.name),e[1]=n,e[2]=v):v=e[2];const p=[...d??[]].sort(v);let b;e[3]!==c||e[4]!==n?(b=()=>{n&&c({to:"/$org/$project",params:{org:n,project:V}})},e[3]=c,e[4]=n,e[5]=b):b=e[5];const S=b;let y;e[6]!==c||e[7]!==n?(y=k=>{n&&c({to:"/$org/$project",params:{org:n,project:k}})},e[6]=c,e[7]=n,e[8]=y):y=e[8];const C=y;let N;e[9]!==c?(N=k=>{c({to:"/$org/$project",params:{org:k,project:V}})},e[9]=c,e[10]=N):N=e[10];const I=N;let T;e[11]!==o?(T=o?()=>o():void 0,e[11]=o,e[12]=T):T=e[12];const E=T;let M;e[13]!==c||e[14]!==n||e[15]!==a?(M=()=>{if(!n||!a)return;const k=a===V;c({to:"/$org/$project",params:{org:n,project:a},search:q=>({...q,settings:k?"org.general":`project:${a}:general`})})},e[13]=c,e[14]=n,e[15]=a,e[16]=M):M=e[16];const W=M,D=et,R=i?"w-auto pr-1.5":"w-full";let P;e[17]!==R?(P=G("flex items-center gap-3 rounded-md p-1.5 pr-2 text-left hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring min-h-[2.75rem]",R),e[17]=R,e[18]=P):P=e[18];const L=g?s.jsx("div",{className:G("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",i?"size-6":"size-8"),style:m?.logo?void 0:ws(m?.name??""),children:m?.logo?s.jsx("img",{src:m.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:G("font-semibold leading-none",i?"text-[9px]":"text-xs"),children:(m?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:G("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",i?"size-6":"size-8"),style:{backgroundColor:j?.ui?.themeColor??"#60a5fa"},children:j?.ui?.icon?s.jsx("img",{src:j.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:G("font-semibold text-white",i?"text-xs":"text-lg"),children:(j?.name??a??"?").charAt(0).toUpperCase()})});let $;e[19]!==m?.name||e[20]!==j?.name||e[21]!==x||e[22]!==i||e[23]!==g||e[24]!==a?($=!i&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:x?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:m?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:g?"Studio":j?.name??a??""})]}):s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:m?.name??"Select org"})}),s.jsx(Vt,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=m?.name,e[20]=j?.name,e[21]=x,e[22]=i,e[23]=g,e[24]=a,e[25]=$):$=e[25];let A;e[26]!==P||e[27]!==L||e[28]!==$?(A=s.jsx(tt,{asChild:!0,children:s.jsxs("button",{type:"button",className:P,children:[L,$]})}),e[26]=P,e[27]=L,e[28]=$,e[29]=A):A=e[29];const O=Xe,F="start",re="bottom",te="w-64 flex flex-col gap-0.5",se=$s,K=x?s.jsxs(s.Fragment,{children:[s.jsxs(Y,{className:G("gap-2.5",g&&"bg-accent"),onClick:S,children:[s.jsx(ue,{url:m?.logo??"",fallback:m?.name??"",size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",m?.name]}),g&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]}),s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Projects"}),m&&s.jsx(z.Suspense,{fallback:s.jsx(ks,{}),children:s.jsx(Cs,{organizationId:m.id,currentProjectSlug:a,orgSlug:n??"",onSelect:C})}),E&&s.jsxs(Y,{className:"gap-2.5",onClick:E,children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),s.jsx(he,{}),s.jsxs(Zt,{children:[s.jsxs(Jt,{className:"gap-2.5",children:[s.jsx(Ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),s.jsxs(Xt,{className:"w-48 flex flex-col gap-0.5",children:[p.map(k=>s.jsxs(Y,{className:G("gap-2.5",k.slug===n&&"bg-accent"),onClick:()=>I(k.slug),children:[s.jsx(ue,{url:k.logo??"",fallback:k.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:k.name}),k.slug===n&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},k.id)),s.jsx(he,{}),s.jsxs(Y,{className:"gap-2.5",onClick:()=>u(!0),children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]})]})]}),s.jsxs(Y,{className:"gap-2.5",onClick:W,children:[s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]}):s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Organizations"}),p.map(k=>s.jsxs(Y,{className:G("gap-2.5",k.slug===n&&"bg-accent"),onClick:()=>I(k.slug),children:[s.jsx(ue,{url:k.logo??"",fallback:k.name,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:k.name}),k.slug===n&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},k.id)),s.jsxs(Y,{className:"gap-2.5",onClick:()=>u(!0),children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]}),s.jsx(he,{}),s.jsxs(Y,{className:"gap-2.5",onClick:W,children:[s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]});let H;e[30]!==O||e[31]!==se||e[32]!==K?(H=s.jsx(O,{align:F,side:re,className:te,onCloseAutoFocus:se,children:K}),e[30]=O,e[31]=se,e[32]=K,e[33]=H):H=e[33];let Q;e[34]!==D||e[35]!==A||e[36]!==H?(Q=s.jsxs(D,{children:[A,H]}),e[34]=D,e[35]=A,e[36]=H,e[37]=Q):Q=e[37];let U;e[38]!==f||e[39]!==u?(U=s.jsx(es,{open:f,onOpenChange:u}),e[38]=f,e[39]=u,e[40]=U):U=e[40];let B;return e[41]!==Q||e[42]!==U?(B=s.jsxs(s.Fragment,{children:[Q,U]}),e[41]=Q,e[42]=U,e[43]=B):B=e[43],B}function $s(t){return t.preventDefault()}mt.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(Z,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(Z,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Ae(t){const e=_.c(23),{onCreateProject:r}=t,{state:o}=We(),i=o==="collapsed",[l,n]=Te();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const{org:d,project:c}=Oe(a),{location:m}=_e(),f=m.pathname===`/${d}/${c}`||m.pathname===`/${d}/${c}/`;let u;e[1]!==n?(u=()=>{n(zs)},e[1]=n,e[2]=u):u=e[2];const h=u;let x;e[3]!==i||e[4]!==r?(x=s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(mt,{isCollapsed:i,onCreateProject:r})}),e[3]=i,e[4]=r,e[5]=x):x=e[5];const g=i||f?"max-w-0 opacity-0 pointer-events-none":"max-w-[2rem] opacity-100";let j;e[6]!==g?(j=G("flex items-center gap-0.5 shrink-0 overflow-hidden transition-[max-width,opacity] duration-300 ease-[var(--ease-out-quart)]",g),e[6]=g,e[7]=j):j=e[7];const v=l&&"bg-sidebar-accent text-sidebar-foreground";let p;e[8]!==v?(p=G("size-7 hover:bg-sidebar-accent text-sidebar-foreground/50 hover:text-sidebar-foreground",v),e[8]=v,e[9]=p):p=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(at,{size:14,className:"text-inherit"}),e[10]=b):b=e[10];let S;e[11]!==p||e[12]!==h?(S=s.jsx(Wt,{asChild:!0,children:s.jsx(Se,{variant:"ghost",size:"icon",className:p,onClick:h,"aria-label":"Toggle Decopilot",children:b})}),e[11]=p,e[12]=h,e[13]=S):S=e[13];let y;e[14]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(Gt,{side:"bottom",children:"Toggle Decopilot"}),e[14]=y):y=e[14];let C;e[15]!==S?(C=s.jsxs(Bt,{children:[S,y]}),e[15]=S,e[16]=C):C=e[16];let N;e[17]!==C||e[18]!==j?(N=s.jsx("div",{className:j,children:C}),e[17]=C,e[18]=j,e[19]=N):N=e[19];let I;return e[20]!==N||e[21]!==x?(I=s.jsx(Be,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(ie,{children:s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[x,N]})})})}),e[20]=N,e[21]=x,e[22]=I):I=e[22],I}function zs(t){return!t}Ae.Skeleton=function(){return s.jsx(Be,{className:"px-3",children:s.jsx(ie,{children:s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 p-1.5",children:[s.jsx(Z,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(Z,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsxs("div",{className:"flex items-center gap-0.5",children:[s.jsx(Z,{className:"size-7 rounded-lg bg-sidebar-accent"}),s.jsx(Z,{className:"size-7 rounded-lg bg-sidebar-accent"})]})]})})})})};function Is(t){const e=_.c(49),{user:r,userImage:o}=t,{open:i}=Ye(),[l,n]=z.useState(!1);let a;e[0]!==r.email||e[1]!==r.id||e[2]!==r.name?(a=()=>{const F=`ID: ${r.id}
|
|
1
|
+
import{r as z,c as _,j as s,u as le,b as Ce,by as _e,L as Ie,bF as xt,bG as ht,O as V,H as gt,e as Oe,d as ce,t as ae,bH as jt,b6 as bt,m as Nt,A as yt,S as He,f as vt,h as St,N as kt,n as Ct,K as _t,aD as Ue,P as wt}from"./index-Chdo1wOf.js";import{C as X}from"./index-Bb5ajAZZ.js";import{I as $t}from"./integration-icon-CHfvIBul.js";import{P as me,u as We,d as ie,e as ee,f as we,g as ge,h as je,i as Ge,j as zt,k as It,l as Be,m as Pt,n as At,o as Ot,p as Tt}from"./index-6Tp9fsVX.js";import{u as Te,C as Mt,e as Et,f as Lt}from"./use-deco-chat-open-Qq9AtQ8h.js";import{c as G,B as Se}from"./button-BlFVi9O-.js";import{d as Dt,u as Rt}from"./constants-DS4O9R8r.js";import{T as Ft,i as Ht,b as Ut}from"./typewriter-title-DcVIzze1.js";import{s as xe}from"./Plus-YlJja9E2.js";import{t as Me}from"./Users03-BiJcw06H.js";import{i as Pe,a as Wt,b as Gt,T as Bt}from"./tooltip-BWW8lvJo.js";import{E as qe}from"./error-boundary-DFWzxGF2.js";import{b as qt,i as Vt}from"./context-CJpih0Aq.js";import{C as Ve}from"./create-project-dialog-D2mtQ7wt.js";import{u as $e,S as Z}from"./skeleton-DdrlSfda.js";import{t as Ke,u as Ye}from"./use-settings-modal-CYH_HZlL.js";import{n as De}from"./CheckDone01-BKZeNjYI.js";import{n as Kt}from"./Container-Cr2TCDTS.js";import{e as Yt}from"./Dataflow03-CEYvQeh9.js";import{a as Qt}from"./Home02-lTWiIHtK.js";import{t as ke}from"./Settings01-hHMZndAB.js";import{a as Qe,u as Ze}from"./use-project-Dz1PHkz5.js";import{t as Je}from"./ChevronDown-BxrIQ2Hg.js";import{A as ue}from"./avatar-CLzAk7bk.js";import{c as Y,g as he,d as Zt,e as Jt,f as Xt,b as Xe,D as et,a as tt}from"./dropdown-menu-Db2R0f6-.js";import{i as fe}from"./Check-ebSdGxZp.js";import{C as es}from"./create-organization-dialog-BFIfEtVL.js";import{a as ts}from"./Copy01-CfVZSokb.js";import{i as st}from"./File06-CL04kImU.js";import{i as ss}from"./Globe01-BMVTN5_w.js";import{n as pe}from"./LinkExternal01-DPNrtGWV.js";import{i as rs}from"./Shield01-BC6B_xBt.js";import{a as ns,P as is,b as os}from"./popover-B4On8gSm.js";import{D as ls,i as as}from"./deco-constants-B2fB4qCk.js";import{n as Re}from"./Inbox01-8_gDqife.js";import{s as cs}from"./XClose-CNjsPY9p.js";import{h as ds}from"./use-connection-O4z2Mc_F.js";import{b as ms}from"./use-mcp-tools-B8wkpbTs.js";import{u as rt,a as us}from"./use-organization-settings-BJEr33WT.js";import{i as fs}from"./ChevronRight-D1zpPr9G.js";import{u as Ee,L as Le}from"./localstorage-keys-D6jY_B8O.js";import{R as ps,a as nt,b as xs}from"./resizable-DUdJ1A_O.js";import"./spinner-DeIV40-d.js";import"./use-mcp-prompts-uD1aNW_g.js";import"./useQuery-C0AkqYB7.js";import"./dialog-BED3woG1.js";import"./form-DdvC8UfL.js";import"./label-Cz00Hk_C.js";import"./input-C2bYHqSZ.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-CBTnQfpb.js";import"./Edit01-BySGjbs-.js";import"./XCircle-oJlXTAnn.js";import"./AlertCircle-DiDJuuO7.js";import"./AlertTriangle-BR7J9Jvh.js";import"./ArrowLeft-CZ4ZZXqO.js";import"./use-copy-Drx5AGFH.js";import"./badge-zj5rJqFG.js";import"./Code01-62o0ASv5.js";import"./use-virtual-mcp-BateG3is.js";import"./SearchMd-CdY2Qz31.js";import"./use-create-virtual-mcp-CZu2JnDv.js";import"./marked.esm-BaswSlok.js";import"./markdown-W0glOUUc.js";import"./tools-list-TXvbi7bf.js";import"./collection-table-wrapper-D3UQPYYs.js";import"./Grid01-BWcrgmNx.js";import"./List-DqeEnxu3.js";import"./table-N5hQy-1m.js";import"./empty-state-DwKYfPjb.js";import"./Loading01-BZRHfswB.js";import"./card-C5XZXHnb.js";import"./Eye-Wh_bq-Y4.js";import"./Globe02-BD3ZCWms.js";import"./RefreshCw01-Sv3Ciq4-.js";import"./layout-D8HdJww7.js";import"./generate-id-Dyweu44Y.js";import"./Clock-ByTlM-Ae.js";import"./Trash01-DjSET-_p.js";import"./use-mobile-ziAtnWz2.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-Z9GIoSzc.js";import"./use-binding-DT0OPEEL.js";import"./binder-Yx0eVQL7.js";import"./select-DwyzrBGR.js";import"./Image01-DcX1niB5.js";import"./RefreshCcw01-Ci0qepHw.js";import"./useSuspenseInfiniteQuery-DPaJK1nP.js";import"./infiniteQueryObserver-DOxbID_2.js";import"./useMutation-BTkDU0tp.js";import"./textarea-B5CEImaf.js";import"./alert-dialog-DG1mgLiN.js";const it=({size:t=24,color:e="currentColor",...r})=>z.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},z.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));it.displayName="BarChart10";const ot=({size:t=24,color:e="currentColor",...r})=>z.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},z.createElement("path",{d:"M8 14s1.5 2 4 2 4-2 4-2m-1-5h.01M9 9h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-6.5-3a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm-6 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"}));ot.displayName="FaceSmile";const lt=({size:t=24,color:e="currentColor",...r})=>z.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},z.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H9"}));lt.displayName="LogOut01";const at=({size:t=24,color:e="currentColor",...r})=>z.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},z.createElement("path",{d:"M8 9.5h4M8 13h7m-3 8a9 9 0 1 0-8.342-5.616c.081.2.122.3.14.381a.907.907 0 0 1 .024.219c0 .083-.015.173-.045.353l-.593 3.558c-.062.373-.093.56-.035.694a.5.5 0 0 0 .262.262c.135.058.321.027.694-.035l3.558-.593c.18-.03.27-.045.353-.045.081 0 .14.006.219.024.08.018.18.059.38.14A8.973 8.973 0 0 0 12 21Z"}));at.displayName="MessageTextCircle02";function hs(){const t=_.c(65),{org:e}=le(),[,r]=Te(),{selectedVirtualMcp:o,modelsConnections:i,isChatEmpty:l,activeThreadId:n,createThread:a,switchToThread:d,threads:c}=qt();let m;if(t[0]!==n||t[1]!==c){let U;t[3]!==n?(U=B=>B.id===n,t[3]=n,t[4]=U):U=t[4],m=c.find(U),t[0]=n,t[1]=c,t[2]=m}else m=t[2];const f=m,[u,h]=z.useState(!1),[x,g]=z.useTransition();let j;t[5]!==e.id?(j=Dt(e.id),t[5]=e.id,t[6]=j):j=t[6];const p=o??j;let b;t[7]!==a?(b=()=>{g(()=>{a()})},t[7]=a,t[8]=b):b=t[8];const S=b;if(i.length===0){let U;t[9]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(me.Header.Left,{className:"gap-2"}),t[9]=U):U=t[9];let B;t[10]!==r?(B=()=>r(!1),t[10]=r,t[11]=B):B=t[11];let k;t[12]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(Pe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=k):k=t[12];let q;t[13]!==B?(q=s.jsxs(me.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[U,s.jsx(me.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:B,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:k})})]}),t[13]=B,t[14]=q):q=t[14];let ne;t[15]!==e?(ne=s.jsx(X.Main,{className:"flex flex-col items-center",children:s.jsx(X.EmptyState,{children:s.jsx(X.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[15]=e,t[16]=ne):ne=t[16];let de;return t[17]!==q||t[18]!==ne?(de=s.jsxs(X,{className:"animate-in fade-in-0 duration-200",children:[q,ne]}),t[17]=q,t[18]=ne,t[19]=de):de=t[19],de}const y=u?"duration-300 opacity-0 -translate-x-4 pointer-events-none":x?"duration-150 opacity-0 pointer-events-none":"duration-300 opacity-100 translate-x-0";let C;t[20]!==y?(C=G("absolute inset-0 flex flex-col transition-[opacity,transform] ease-[var(--ease-out-quart)]",y),t[20]=y,t[21]=C):C=t[21];let N;t[22]!==f||t[23]!==l?(N=!l&&f?.title&&s.jsx(Ft,{text:f.title,className:"text-sm font-medium text-foreground"}),t[22]=f,t[23]=l,t[24]=N):N=t[24];let I;t[25]!==N?(I=s.jsx(me.Header.Left,{className:"gap-2",children:N}),t[25]=N,t[26]=I):I=t[26];let T;t[27]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(xe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=T):T=t[27];let E;t[28]!==S||t[29]!==x?(E=s.jsx("button",{type:"button",onClick:S,disabled:x,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:T}),t[28]=S,t[29]=x,t[30]=E):E=t[30];let M;t[31]===Symbol.for("react.memo_cache_sentinel")?(M=()=>h(!0),t[31]=M):M=t[31];let W;t[32]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx("button",{type:"button",onClick:M,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Chat history",children:s.jsx(Ht,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=W):W=t[32];let D;t[33]!==r?(D=()=>r(!1),t[33]=r,t[34]=D):D=t[34];let R;t[35]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(Pe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[35]=R):R=t[35];let P;t[36]!==D?(P=s.jsx("button",{type:"button",onClick:D,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:R}),t[36]=D,t[37]=P):P=t[37];let L;t[38]!==P||t[39]!==E?(L=s.jsxs(me.Header.Right,{className:"gap-1",children:[E,W,P]}),t[38]=P,t[39]=E,t[40]=L):L=t[40];let $;t[41]!==L||t[42]!==I?($=s.jsxs(me.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[I,L]}),t[41]=L,t[42]=I,t[43]=$):$=t[43];let A;t[44]!==p||t[45]!==l?(A=s.jsx(X.Main,{children:l?s.jsx(X.EmptyState,{children:s.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[s.jsx($t,{icon:p.icon,name:p.title,size:"lg",fallbackIcon:s.jsx(Me,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:p.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:p.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(X.IceBreakers,{})]})}):s.jsx(X.Messages,{})}),t[44]=p,t[45]=l,t[46]=A):A=t[46];let O;t[47]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(X.Footer,{children:s.jsx(X.Input,{})}),t[47]=O):O=t[47];let F;t[48]!==$||t[49]!==A||t[50]!==C?(F=s.jsxs("div",{className:C,children:[$,A,O]}),t[48]=$,t[49]=A,t[50]=C,t[51]=F):F=t[51];const re=u?"opacity-100 translate-x-0":"opacity-0 translate-x-4 pointer-events-none";let te;t[52]!==re?(te=G("absolute inset-0 flex flex-col transition-[opacity,transform] duration-300 ease-[var(--ease-out-quart)]",re),t[52]=re,t[53]=te):te=t[53];let se;t[54]===Symbol.for("react.memo_cache_sentinel")?(se=()=>h(!1),t[54]=se):se=t[54];let K;t[55]!==n||t[56]!==d||t[57]!==c?(K=s.jsx(Ut,{threads:c,activeThreadId:n,onThreadSelect:d,onClose:se}),t[55]=n,t[56]=d,t[57]=c,t[58]=K):K=t[58];let H;t[59]!==te||t[60]!==K?(H=s.jsx("div",{className:te,children:K}),t[59]=te,t[60]=K,t[61]=H):H=t[61];let Q;return t[62]!==F||t[63]!==H?(Q=s.jsxs(X,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[F,H]}),t[62]=F,t[63]=H,t[64]=Q):Q=t[64],Q}function gs(){const t=_.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(X.Skeleton,{}),t[0]=e):e=t[0];let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(qe,{fallback:e,children:s.jsx(z.Suspense,{fallback:s.jsx(X.Skeleton,{}),children:s.jsx(hs,{})})}),t[1]=r):r=t[1],r}function js(){const t=_.c(54),[e]=$e(),{locator:r,org:o}=le(),i=Ce(),l=_e(),{org:n,project:a}=Ie.parse(r),d=Ie.isOrgAdminProject(r),{data:c}=Qe(o.id,a);let m;t[0]!==c?.enabledPlugins?(m=c?.enabledPlugins??[],t[0]=c?.enabledPlugins,t[1]=m):m=t[1];const f=m;let u;t[2]!==f?(u=w=>f.includes(w.pluginId),t[2]=f,t[3]=u):u=t[3];const h=xt.filter(u),x=l.location.pathname,g=`/${n}/${a}`,j=x===g||x===`${g}/`;let v;t[4]!==g||t[5]!==x?(v=w=>x.startsWith(`${g}/${w}`),t[4]=g,t[5]=x,t[6]=v):v=t[6];const p=v;let b;t[7]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Qt,{}),t[7]=b):b=t[7];const S={key:"home",label:"Home",icon:b,isActive:j,onClick:()=>{j?window.dispatchEvent(new CustomEvent("reset-home-view")):i({to:"/$org/$project",params:{org:n,project:a}})}};let y;t[8]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(De,{}),t[8]=y):y=t[8];const C={key:"tasks",label:"Tasks",icon:y,isActive:p("tasks"),onClick:()=>i({to:"/$org/$project/tasks",params:{org:n,project:V}})};let N;t[9]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(Kt,{}),t[9]=N):N=t[9];const I={key:"mcps",label:"Connections",icon:N,isActive:p("mcps"),onClick:()=>i({to:"/$org/$project/mcps",params:{org:n,project:V}})};let T;t[10]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(gt,{}),t[10]=T):T=t[10];const E={key:"projects",label:"Projects",icon:T,isActive:p("projects"),onClick:()=>i({to:"/$org/$project/projects",params:{org:n,project:V}})};let M;t[11]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(Ke,{}),t[11]=M):M=t[11];const W={key:"store",label:"Store",icon:M,isActive:p("store"),onClick:()=>i({to:"/$org/$project/store",params:{org:n,project:V}})};let D;t[12]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Me,{}),t[12]=D):D=t[12];const R={key:"agents",label:"Agents",icon:D,isActive:p("agents"),onClick:()=>i({to:"/$org/$project/agents",params:{org:n,project:V}})};let P;t[13]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(it,{}),t[13]=P):P=t[13];const L={key:"monitoring",label:"Monitor",icon:P,isActive:p("monitoring"),onClick:()=>i({to:"/$org/$project/monitoring",params:{org:n,project:V}})};let $;t[14]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(ot,{}),t[14]=$):$=t[14];const A={key:"members",label:"Members",icon:$,isActive:p("members"),onClick:()=>i({to:"/$org/$project/members",params:{org:n,project:V}})},O=h.map(w=>({key:w.pluginId,label:w.label,icon:w.icon,isActive:p(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:n,project:a,pluginId:w.pluginId}})}));let F;t[15]!==f?(F=w=>f.includes(w.pluginId),t[15]=f,t[16]=F):F=t[16];const te=ht.filter(F).map(w=>({type:"group",group:{id:`${w.pluginId}-${w.id}`,label:w.label,items:w.items.map((J,oe)=>({key:`${w.pluginId}-${w.id}-${oe}`,label:J.label,icon:J.icon,isActive:p(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:n,project:a,pluginId:w.pluginId}})})),defaultExpanded:w.defaultExpanded??!0}}));if(d){let w;t[17]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(ke,{}),t[17]=w):w=t[17];let J;t[18]!==p?(J=p("settings"),t[18]=p,t[19]=J):J=t[19];let oe;t[20]!==i||t[21]!==n?(oe=()=>i({to:"/$org/$project/settings",params:{org:n,project:V}}),t[20]=i,t[21]=n,t[22]=oe):oe=t[22];let ye;t[23]!==J||t[24]!==oe?(ye={key:"settings",label:"Settings",icon:w,isActive:J,onClick:oe},t[23]=J,t[24]=oe,t[25]=ye):ye=t[25];const pt=ye,ze=[{type:"items",items:[S,...e.experimental_tasks?[C]:[],...e.experimental_projects?[E]:[]]},{type:"group",group:{id:"build",label:"Build",items:[R,I,W],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[L,A,pt],defaultExpanded:!0}}];if(O.length>0){let ve;t[26]!==O?(ve={type:"items",items:O},t[26]=O,t[27]=ve):ve=t[27],ze.push(ve)}return te.length>0&&ze.push(...te),ze}let se;t[28]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(De,{}),t[28]=se):se=t[28];let K;t[29]!==p?(K=p("tasks"),t[29]=p,t[30]=K):K=t[30];let H;t[31]!==i||t[32]!==n||t[33]!==a?(H=()=>i({to:"/$org/$project/tasks",params:{org:n,project:a}}),t[31]=i,t[32]=n,t[33]=a,t[34]=H):H=t[34];let Q;t[35]!==K||t[36]!==H?(Q={key:"tasks",label:"Tasks",icon:se,isActive:K,onClick:H},t[35]=K,t[36]=H,t[37]=Q):Q=t[37];const U=Q;let B;t[38]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(Yt,{}),t[38]=B):B=t[38];let k;t[39]!==p?(k=p("workflows"),t[39]=p,t[40]=k):k=t[40];let q;t[41]!==i||t[42]!==n||t[43]!==a?(q=()=>i({to:"/$org/$project/workflows",params:{org:n,project:a}}),t[41]=i,t[42]=n,t[43]=a,t[44]=q):q=t[44];let ne;t[45]!==k||t[46]!==q?(ne={key:"workflows",label:"Workflows",icon:B,isActive:k,onClick:q},t[45]=k,t[46]=q,t[47]=ne):ne=t[47];const de=ne;let be;t[48]!==e.experimental_tasks||t[49]!==U?(be=e.experimental_tasks?[U]:[],t[48]=e.experimental_tasks,t[49]=U,t[50]=be):be=t[50];const Ne=[{type:"items",items:[S,...be,de]}];if(O.length>0){let w;t[51]===Symbol.for("react.memo_cache_sentinel")?(w={type:"divider"},t[51]=w):w=t[51],Ne.push(w);let J;t[52]!==O?(J={type:"items",items:O},t[52]=O,t[53]=J):J=t[53],Ne.push(J)}return te.length>0&&Ne.push(...te),Ne}function bs(t){const e=_.c(11),{label:r,children:o,defaultExpanded:i}=t,l=i===void 0?!0:i,[n,a]=z.useState(l),{state:d}=We(),c=d==="collapsed";let m;e[0]!==n||e[1]!==c||e[2]!==r?(m=c?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(ie,{children:s.jsx(ee,{children:s.jsxs(we,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>a(!n),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:r}),s.jsx(Je,{size:12,className:G("text-muted-foreground transition-transform duration-200",!n&&"-rotate-90")})]})})}),e[0]=n,e[1]=c,e[2]=r,e[3]=m):m=e[3];let f;e[4]!==o||e[5]!==n||e[6]!==c?(f=(c||n)&&s.jsx(ge,{children:s.jsx(ie,{className:"gap-0.5",children:o})}),e[4]=o,e[5]=n,e[6]=c,e[7]=f):f=e[7];let u;return e[8]!==m||e[9]!==f?(u=s.jsxs(je,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[m,f]}),e[8]=m,e[9]=f,e[10]=u):u=e[10],u}function ct(t){const e=_.c(13),{item:r}=t;let o;e[0]!==r.icon?(o=s.jsx("span",{className:"[&>svg]:size-4",children:r.icon}),e[0]=r.icon,e[1]=o):o=e[1];let i;e[2]!==r.label?(i=s.jsx("span",{className:"truncate group-data-[collapsible=icon]:hidden",children:r.label}),e[2]=r.label,e[3]=i):i=e[3];let l;e[4]!==r.isActive||e[5]!==r.label||e[6]!==r.onClick||e[7]!==o||e[8]!==i?(l=s.jsxs(we,{onClick:r.onClick,isActive:r.isActive,tooltip:r.label,children:[o,i]}),e[4]=r.isActive,e[5]=r.label,e[6]=r.onClick,e[7]=o,e[8]=i,e[9]=l):l=e[9];let n;return e[10]!==r.key||e[11]!==l?(n=s.jsx(ee,{children:l},r.key),e[10]=r.key,e[11]=l,e[12]=n):n=e[12],n}function Ns(t){const 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(Ge,{className:"my-2"}),e[0]=o):o=e[0],o}case"spacer":{let o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1"}),e[1]=o):o=e[1],o}case"group":{const o=r.group.label,i=r.group.defaultExpanded;let l;e[2]!==r.group.items?(l=r.group.items.map(vs),e[2]=r.group.items,e[3]=l):l=e[3];let n;return e[4]!==r.group.defaultExpanded||e[5]!==r.group.label||e[6]!==l?(n=s.jsx(bs,{label:o,defaultExpanded:i,children:l}),e[4]=r.group.defaultExpanded,e[5]=r.group.label,e[6]=l,e[7]=n):n=e[7],n}case"items":{let o;e[8]!==r.items?(o=r.items.map(ys),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 ys(t){return s.jsx(ct,{item:t},t.key)}function vs(t){return s.jsx(ct,{item:t},t.key)}function dt(t){const e=_.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(Ss),e[2]=r,e[3]=u):u=e[3];let h;e[4]!==l||e[5]!==f||e[6]!==u?(h=s.jsxs(zt,{className:f,children:[u,l]}),e[4]=l,e[5]=f,e[6]=u,e[7]=h):h=e[7];let x;return e[8]!==m||e[9]!==i||e[10]!==o||e[11]!==h||e[12]!==c?(x=s.jsxs(It,{variant:c,collapsible:m,children:[o,h,i]}),e[8]=m,e[9]=i,e[10]=o,e[11]=h,e[12]=c,e[13]=x):x=e[13],x}function Ss(t,e){return s.jsx(Ns,{section:t},e)}dt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,r)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(Z,{className:"h-full bg-sidebar-accent rounded-md"})},r))})};function ks(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(Z,{className:"h-8 w-full rounded-lg"}),s.jsx(Z,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function Cs(t){const e=_.c(12),{organizationId:r,currentProjectSlug:o,onSelect:i}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={suspense:!0},e[0]=l):l=e[0];const{data:n}=Ze(r,l);let a,d;if(e[1]!==o||e[2]!==i||e[3]!==n){d=Symbol.for("react.early_return_sentinel");e:{const m=n?.filter(_s)??[];if(m.length===0){let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=u):u=e[6],d=u;break e}let f;e[7]!==o||e[8]!==i?(f=u=>{const h=o===u.slug,x=u.ui?.themeColor??"#3B82F6";return s.jsxs(Y,{className:G("gap-2.5",h&&"bg-accent"),onClick:()=>i(u.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:{backgroundColor:x},children:u.ui?.icon?s.jsx("img",{src:u.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:u.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:u.name}),h&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},u.id)},e[7]=o,e[8]=i,e[9]=f):f=e[9],a=m.map(f)}e[1]=o,e[2]=i,e[3]=n,e[4]=a,e[5]=d}else a=e[4],d=e[5];if(d!==Symbol.for("react.early_return_sentinel"))return d;let c;return e[10]!==a?(c=s.jsx(s.Fragment,{children:a}),e[10]=a,e[11]=c):c=e[11],c}function _s(t){return t.slug!==V}function ws(t){let e=0;for(let o=0;o<t.length;o++)e=t.charCodeAt(o)+((e<<5)-e);const r=Math.abs(e)%360;return{backgroundColor:`hsl(${r} 55% 70%)`,color:`hsl(${r} 55% 20%)`}}function mt(t){const e=_.c(44),{isCollapsed:r,onCreateProject:o}=t,i=r===void 0?!1:r;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},e[0]=l):l=e[0];const{org:n,project:a}=Oe(l),{data:d}=ce.useListOrganizations(),c=Ce(),m=d?.find(k=>k.slug===n),[f,u]=z.useState(!1),[h]=$e(),x=h.experimental_projects,g=a===V,{data:j}=Qe(m?.id??"",g?"":a??"");let v;e[1]!==n?(v=(k,q)=>k.slug===n?-1:q.slug===n?1:k.name.localeCompare(q.name),e[1]=n,e[2]=v):v=e[2];const p=[...d??[]].sort(v);let b;e[3]!==c||e[4]!==n?(b=()=>{n&&c({to:"/$org/$project",params:{org:n,project:V}})},e[3]=c,e[4]=n,e[5]=b):b=e[5];const S=b;let y;e[6]!==c||e[7]!==n?(y=k=>{n&&c({to:"/$org/$project",params:{org:n,project:k}})},e[6]=c,e[7]=n,e[8]=y):y=e[8];const C=y;let N;e[9]!==c?(N=k=>{c({to:"/$org/$project",params:{org:k,project:V}})},e[9]=c,e[10]=N):N=e[10];const I=N;let T;e[11]!==o?(T=o?()=>o():void 0,e[11]=o,e[12]=T):T=e[12];const E=T;let M;e[13]!==c||e[14]!==n||e[15]!==a?(M=()=>{if(!n||!a)return;const k=a===V;c({to:"/$org/$project",params:{org:n,project:a},search:q=>({...q,settings:k?"org.general":`project:${a}:general`})})},e[13]=c,e[14]=n,e[15]=a,e[16]=M):M=e[16];const W=M,D=et,R=i?"w-auto pr-1.5":"w-full";let P;e[17]!==R?(P=G("flex items-center gap-3 rounded-md p-1.5 pr-2 text-left hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring min-h-[2.75rem]",R),e[17]=R,e[18]=P):P=e[18];const L=g?s.jsx("div",{className:G("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",i?"size-6":"size-8"),style:m?.logo?void 0:ws(m?.name??""),children:m?.logo?s.jsx("img",{src:m.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:G("font-semibold leading-none",i?"text-[9px]":"text-xs"),children:(m?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:G("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",i?"size-6":"size-8"),style:{backgroundColor:j?.ui?.themeColor??"#60a5fa"},children:j?.ui?.icon?s.jsx("img",{src:j.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:G("font-semibold text-white",i?"text-xs":"text-lg"),children:(j?.name??a??"?").charAt(0).toUpperCase()})});let $;e[19]!==m?.name||e[20]!==j?.name||e[21]!==x||e[22]!==i||e[23]!==g||e[24]!==a?($=!i&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:x?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:m?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:g?"Studio":j?.name??a??""})]}):s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:m?.name??"Select org"})}),s.jsx(Vt,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=m?.name,e[20]=j?.name,e[21]=x,e[22]=i,e[23]=g,e[24]=a,e[25]=$):$=e[25];let A;e[26]!==P||e[27]!==L||e[28]!==$?(A=s.jsx(tt,{asChild:!0,children:s.jsxs("button",{type:"button",className:P,children:[L,$]})}),e[26]=P,e[27]=L,e[28]=$,e[29]=A):A=e[29];const O=Xe,F="start",re="bottom",te="w-64 flex flex-col gap-0.5",se=$s,K=x?s.jsxs(s.Fragment,{children:[s.jsxs(Y,{className:G("gap-2.5",g&&"bg-accent"),onClick:S,children:[s.jsx(ue,{url:m?.logo??"",fallback:m?.name??"",size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",m?.name]}),g&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]}),s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Projects"}),m&&s.jsx(z.Suspense,{fallback:s.jsx(ks,{}),children:s.jsx(Cs,{organizationId:m.id,currentProjectSlug:a,orgSlug:n??"",onSelect:C})}),E&&s.jsxs(Y,{className:"gap-2.5",onClick:E,children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),s.jsx(he,{}),s.jsxs(Zt,{children:[s.jsxs(Jt,{className:"gap-2.5",children:[s.jsx(Ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),s.jsxs(Xt,{className:"w-48 flex flex-col gap-0.5",children:[p.map(k=>s.jsxs(Y,{className:G("gap-2.5",k.slug===n&&"bg-accent"),onClick:()=>I(k.slug),children:[s.jsx(ue,{url:k.logo??"",fallback:k.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:k.name}),k.slug===n&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},k.id)),s.jsx(he,{}),s.jsxs(Y,{className:"gap-2.5",onClick:()=>u(!0),children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]})]})]}),s.jsxs(Y,{className:"gap-2.5",onClick:W,children:[s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]}):s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Organizations"}),p.map(k=>s.jsxs(Y,{className:G("gap-2.5",k.slug===n&&"bg-accent"),onClick:()=>I(k.slug),children:[s.jsx(ue,{url:k.logo??"",fallback:k.name,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:k.name}),k.slug===n&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},k.id)),s.jsxs(Y,{className:"gap-2.5",onClick:()=>u(!0),children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]}),s.jsx(he,{}),s.jsxs(Y,{className:"gap-2.5",onClick:W,children:[s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]});let H;e[30]!==O||e[31]!==se||e[32]!==K?(H=s.jsx(O,{align:F,side:re,className:te,onCloseAutoFocus:se,children:K}),e[30]=O,e[31]=se,e[32]=K,e[33]=H):H=e[33];let Q;e[34]!==D||e[35]!==A||e[36]!==H?(Q=s.jsxs(D,{children:[A,H]}),e[34]=D,e[35]=A,e[36]=H,e[37]=Q):Q=e[37];let U;e[38]!==f||e[39]!==u?(U=s.jsx(es,{open:f,onOpenChange:u}),e[38]=f,e[39]=u,e[40]=U):U=e[40];let B;return e[41]!==Q||e[42]!==U?(B=s.jsxs(s.Fragment,{children:[Q,U]}),e[41]=Q,e[42]=U,e[43]=B):B=e[43],B}function $s(t){return t.preventDefault()}mt.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(Z,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(Z,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Ae(t){const e=_.c(23),{onCreateProject:r}=t,{state:o}=We(),i=o==="collapsed",[l,n]=Te();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const{org:d,project:c}=Oe(a),{location:m}=_e(),f=m.pathname===`/${d}/${c}`||m.pathname===`/${d}/${c}/`;let u;e[1]!==n?(u=()=>{n(zs)},e[1]=n,e[2]=u):u=e[2];const h=u;let x;e[3]!==i||e[4]!==r?(x=s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(mt,{isCollapsed:i,onCreateProject:r})}),e[3]=i,e[4]=r,e[5]=x):x=e[5];const g=i||f?"max-w-0 opacity-0 pointer-events-none":"max-w-[2rem] opacity-100";let j;e[6]!==g?(j=G("flex items-center gap-0.5 shrink-0 overflow-hidden transition-[max-width,opacity] duration-300 ease-[var(--ease-out-quart)]",g),e[6]=g,e[7]=j):j=e[7];const v=l&&"bg-sidebar-accent text-sidebar-foreground";let p;e[8]!==v?(p=G("size-7 hover:bg-sidebar-accent text-sidebar-foreground/50 hover:text-sidebar-foreground",v),e[8]=v,e[9]=p):p=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(at,{size:14,className:"text-inherit"}),e[10]=b):b=e[10];let S;e[11]!==p||e[12]!==h?(S=s.jsx(Wt,{asChild:!0,children:s.jsx(Se,{variant:"ghost",size:"icon",className:p,onClick:h,"aria-label":"Toggle Decopilot",children:b})}),e[11]=p,e[12]=h,e[13]=S):S=e[13];let y;e[14]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(Gt,{side:"bottom",children:"Toggle Decopilot"}),e[14]=y):y=e[14];let C;e[15]!==S?(C=s.jsxs(Bt,{children:[S,y]}),e[15]=S,e[16]=C):C=e[16];let N;e[17]!==C||e[18]!==j?(N=s.jsx("div",{className:j,children:C}),e[17]=C,e[18]=j,e[19]=N):N=e[19];let I;return e[20]!==N||e[21]!==x?(I=s.jsx(Be,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(ie,{children:s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[x,N]})})})}),e[20]=N,e[21]=x,e[22]=I):I=e[22],I}function zs(t){return!t}Ae.Skeleton=function(){return s.jsx(Be,{className:"px-3",children:s.jsx(ie,{children:s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 p-1.5",children:[s.jsx(Z,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(Z,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsxs("div",{className:"flex items-center gap-0.5",children:[s.jsx(Z,{className:"size-7 rounded-lg bg-sidebar-accent"}),s.jsx(Z,{className:"size-7 rounded-lg bg-sidebar-accent"})]})]})})})})};function Is(t){const e=_.c(49),{user:r,userImage:o}=t,{open:i}=Ye(),[l,n]=z.useState(!1);let a;e[0]!==r.email||e[1]!==r.id||e[2]!==r.name?(a=()=>{const F=`ID: ${r.id}
|
|
2
2
|
Name: ${r.name||"N/A"}
|
|
3
3
|
Email: ${r.email}`;navigator.clipboard.writeText(F),n(!0),ae.success("User info copied to clipboard"),setTimeout(()=>n(!1),2e3)},e[0]=r.email,e[1]=r.id,e[2]=r.name,e[3]=a):a=e[3];const d=a,c=r.name||r.email||"U";let m;e[4]!==c||e[5]!==o?(m=s.jsx(ue,{url:o,fallback:c,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=c,e[5]=o,e[6]=m):m=e[6];const f=r.name||"User";let u;e[7]!==f?(u=s.jsx("div",{className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:s.jsx("div",{className:"text-sm font-medium truncate text-sidebar-foreground leading-none",children:f})}),e[7]=f,e[8]=u):u=e[8];let h;e[9]!==m||e[10]!==u?(h=s.jsx(tt,{asChild:!0,children:s.jsxs("button",{className:"flex w-full h-8 items-center gap-2 rounded-md px-1 hover:bg-sidebar-accent transition-colors text-left min-w-0",children:[m,u]})}),e[9]=m,e[10]=u,e[11]=h):h=e[11];const x=r.name||r.email||"U";let g;e[12]!==x||e[13]!==o?(g=s.jsx(ue,{url:o,fallback:x,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=x,e[13]=o,e[14]=g):g=e[14];const j=r.name||"User";let v;e[15]!==j?(v=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=v):v=e[16];let p;e[17]!==r.email?(p=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:r.email}),e[17]=r.email,e[18]=p):p=e[18];let b;e[19]!==v||e[20]!==p?(b=s.jsxs("div",{className:"flex-1 min-w-0",children:[v,p]}),e[19]=v,e[20]=p,e[21]=b):b=e[21];let S;e[22]!==l?(S=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:l?s.jsx(fe,{size:14,className:"text-green-600"}):s.jsx(ts,{size:14,className:"text-muted-foreground"})}),e[22]=l,e[23]=S):S=e[23];let y;e[24]!==d||e[25]!==b||e[26]!==S||e[27]!==g?(y=s.jsxs(Y,{onClick:d,className:"gap-2.5 group",children:[g,b,S]}),e[24]=d,e[25]=b,e[26]=S,e[27]=g,e[28]=y):y=e[28];let C;e[29]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(he,{}),e[29]=C):C=e[29];let N;e[30]!==i?(N=()=>i("account.preferences"),e[30]=i,e[31]=N):N=e[31];let I,T;e[32]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),T=s.jsx("span",{children:"Settings"}),e[32]=I,e[33]=T):(I=e[32],T=e[33]);let E;e[34]!==N?(E=s.jsxs(Y,{className:"gap-2.5",onClick:N,children:[I,T]}),e[34]=N,e[35]=E):E=e[35];let M;e[36]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(Y,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(st,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=M):M=e[36];let W;e[37]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(Y,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(rs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=W):W=e[37];let D;e[38]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Y,{asChild:!0,children:s.jsxs("a",{href:"https://github.com/decocms/mesh",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(jt,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=D):D=e[38];let R;e[39]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(Y,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com/discord",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Me,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=R):R=e[39];let P,L;e[40]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(Y,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ss,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),L=s.jsx(he,{}),e[40]=P,e[41]=L):(P=e[40],L=e[41]);let $;e[42]===Symbol.for("react.memo_cache_sentinel")?($=s.jsxs(Y,{className:"gap-2.5",onClick:Ps,children:[s.jsx(lt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=$):$=e[42];let A;e[43]!==y||e[44]!==E?(A=s.jsxs(Xe,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:As,children:[y,C,E,M,W,D,R,P,L,$]}),e[43]=y,e[44]=E,e[45]=A):A=e[45];let O;return e[46]!==A||e[47]!==h?(O=s.jsxs(et,{children:[h,A]}),e[46]=A,e[47]=h,e[48]=O):O=e[48],O}function Ps(){return ce.signOut()}function As(t){return t.preventDefault()}function ut(){const t=_.c(7),{data:e}=ce.useSession();if(!e?.user){let d;return t[0]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(ue,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=d):d=t[0],d}const r=e.user,o=r.name??void 0;let i;t[1]!==o||t[2]!==r?(i={...r,name:o},t[1]=o,t[2]=r,t[3]=i):i=t[3];const l=i,n=r.image;let a;return t[4]!==n||t[5]!==l?(a=s.jsx(Is,{user:l,userImage:n}),t[4]=n,t[5]=l,t[6]=a):a=t[6],a}function Os({invitation:t}){const[e,r]=z.useState(!1),[o,i]=z.useState(!1),l=Nt(),n=async()=>{r(!0);try{const d=await ce.organization.acceptInvitation({invitationId:t.id});if(d.error)ae.error(d.error.message),r(!1);else{const c=await ce.organization.setActive({organizationId:t.organizationId});ae.success("Invitation accepted!");const m=c?.data?.slug;window.location.href=m?`/${m}`:"/"}}catch{ae.error("Failed to accept invitation"),r(!1)}},a=async()=>{i(!0);try{const d=await ce.organization.rejectInvitation({invitationId:t.id});d.error?(ae.error(d.error.message),i(!1)):(ae.success("Invitation declined"),l.invalidateQueries())}catch{ae.error("Failed to decline invitation"),i(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"You've been invited to join"}),s.jsx("p",{className:"text-sm font-medium truncate",children:t.organizationName??"Unknown organization"})]}),s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s.jsx(Se,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:n,disabled:e||o,"aria-label":"Accept invitation",children:s.jsx(fe,{size:14})}),s.jsx(Se,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:a,disabled:e||o,"aria-label":"Decline invitation",children:s.jsx(cs,{size:14})})]})]})}function Ts(){const t=z.useContext(bt),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(o=>o.status==="pending"&&new Date(o.expiresAt)>new Date)}class Ms extends z.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,r){}render(){return this.state.hasError?null:this.props.children}}function Es(t){const e=_.c(16),{connectionId:r}=t,{open:o}=Ye(),{org:i}=le();let l;e[0]!==r||e[1]!==i.id?(l={connectionId:r,orgId:i.id},e[0]=r,e[1]=i.id,e[2]=l):l=e[2];const n=Rt(l);let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a={},e[3]=a):a=e[3];let d;e[4]!==n?(d={client:n,toolName:"GATEWAY_USAGE",toolArguments:a,staleTime:6e4,select:Ls},e[4]=n,e[5]=d):d=e[5];const{data:c}=ms(d),m=c?.limit.remaining??0;let f;e[6]!==o?(f=()=>o("org.billing"),e[6]=o,e[7]=f):f=e[7];let u;e[8]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(as,{size:13,className:"text-muted-foreground/60 shrink-0"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Credits"})]}),e[8]=u):u=e[8];let h;e[9]!==m?(h=m.toFixed(2),e[9]=m,e[10]=h):h=e[10];let x;e[11]!==h?(x=s.jsxs("span",{className:"text-xs font-medium tabular-nums text-foreground/70",children:["$",h]}),e[11]=h,e[12]=x):x=e[12];let g;return e[13]!==f||e[14]!==x?(g=s.jsxs("button",{type:"button",onClick:f,className:"group-data-[collapsible=icon]:hidden flex items-center justify-between w-full px-2 py-1.5 rounded-md hover:bg-sidebar-accent transition-colors",children:[u,x]}),e[13]=f,e[14]=x,e[15]=g):g=e[15],g}function Ls(t){return t.structuredContent}function Ds(){const t=_.c(4),e=ds();let r;t[0]!==e?(r=e.find(Rs),t[0]=e,t[1]=r):r=t[1];const o=r;if(!o?.id)return null;let i;return t[2]!==o.id?(i=s.jsx(Es,{connectionId:o.id}),t[2]=o.id,t[3]=i):i=t[3],i}function Rs(t){return t.connection_url===ls}function Fs(){const t=_.c(13),e=Ts();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ms,{children:s.jsx(z.Suspense,{fallback:null,children:s.jsx(Ds,{})})}),t[0]=r):r=t[0];let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(ut,{})}),t[1]=o):o=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(is,{asChild:!0,children:s.jsx(Se,{variant:"ghost",size:"icon",className:"size-8 text-sidebar-foreground/50 hover:text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Open inbox",children:s.jsx(Re,{size:16})})}),t[2]=i):i=t[2];let l;t[3]!==e.length?(l=e.length>0&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 ring-2 ring-sidebar pointer-events-none"}),t[3]=e.length,t[4]=l):l=t[4];let n;t[5]!==l?(n=s.jsxs("div",{className:"relative",children:[i,l]}),t[5]=l,t[6]=n):n=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"px-4 py-3 border-b border-border shrink-0",children:s.jsx("h3",{className:"text-sm font-medium",children:"Inbox"})}),t[7]=a):a=t[7];let d;t[8]!==e?(d=s.jsxs(ns,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[a,e.length===0?s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[s.jsx(Re,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"No messages or invites pending"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Messages, workspace and project invitations will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:e.map(Hs)})]}),t[8]=e,t[9]=d):d=t[9];let c;return t[10]!==n||t[11]!==d?(c=s.jsxs(Pt,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[r,s.jsx(ie,{children:s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[o,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(os,{children:[n,d]})})]})})})]}),t[10]=n,t[11]=d,t[12]=c):c=t[12],c}function Hs(t){return s.jsx(Os,{invitation:t},t.id)}function ft(t){const e=_.c(4),{children:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Ge,{className:"my-2"}),e[0]=o):o=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ee,{children:s.jsx("div",{className:"group-data-[collapsible=icon]:hidden px-2 py-0 text-xs font-medium h-6 text-muted-foreground flex items-center justify-between",children:s.jsx("span",{className:"whitespace-nowrap",children:"Pinned Views"})})}),e[1]=i):i=e[1];let l;return e[2]!==r?(l=s.jsxs(s.Fragment,{children:[o,i,r]}),e[2]=r,e[3]=l):l=e[3],l}function Us(t){const e=_.c(26),{item:r}=t,o=Ce(),{org:i}=le(),l=rt(i.id),n=us(i.id);let a;e[0]!==n.update||e[1]!==r.url||e[2]!==l?.sidebar_items?(a=async()=>{const S=(l?.sidebar_items||[]).filter(y=>y.url!==r.url);await n.update.mutateAsync({sidebar_items:S})},e[0]=n.update,e[1]=r.url,e[2]=l?.sidebar_items,e[3]=a):a=e[3];const d=a;let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=/^https?:\/\/.+/,e[4]=c):c=e[4];let m;e[5]!==r.icon?(m=c.test(r.icon),e[5]=r.icon,e[6]=m):m=e[6];const f=m;let u;e[7]!==r.url||e[8]!==o?(u=()=>{o({to:r.url})},e[7]=r.url,e[8]=o,e[9]=u):u=e[9];const h=r.title;let x;e[10]!==f||e[11]!==r.icon||e[12]!==r.title?(x=s.jsx("div",{className:"flex items-center justify-center shrink-0",children:f?s.jsx("img",{src:r.icon,alt:r.title,className:"h-4 w-4 rounded object-cover"}):s.jsx(st,{size:16,className:"text-muted-foreground group-hover/item:text-foreground transition-colors"})}),e[10]=f,e[11]=r.icon,e[12]=r.title,e[13]=x):x=e[13];let g;e[14]!==r.title?(g=r.title.toLocaleLowerCase(),e[14]=r.title,e[15]=g):g=e[15];let j;e[16]!==g?(j=s.jsx("div",{className:"flex-1 min-w-0 flex flex-col items-start",children:s.jsx("span",{className:"truncate text-sm w-full capitalize",children:g})}),e[16]=g,e[17]=j):j=e[17];let v;e[18]!==d?(v=s.jsx(Pe,{size:16,className:"text-muted-foreground opacity-0 group-hover/item:opacity-50 hover:opacity-100 cursor-pointer",onClick:b=>{b.preventDefault(),b.stopPropagation(),d()}}),e[18]=d,e[19]=v):v=e[19];let p;return e[20]!==r.title||e[21]!==u||e[22]!==x||e[23]!==j||e[24]!==v?(p=s.jsx(ee,{children:s.jsxs(we,{className:"w-full pr-2 group/item relative cursor-pointer text-foreground/90 hover:text-foreground",onClick:u,tooltip:h,children:[x,j,v]})}),e[20]=r.title,e[21]=u,e[22]=x,e[23]=j,e[24]=v,e[25]=p):p=e[25],p}function Fe(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(ee,{children:s.jsx("div",{className:"flex items-center gap-2 px-4 py-2",children:s.jsx(Z,{className:"h-4 flex-1"})})}),t[0]=e):e=t[0],e}function Ws(){const t=_.c(4),{org:e}=le(),o=rt(e.id)?.sidebar_items;if(!o?.length)return null;let i;t[0]!==o?(i=o.map(Gs),t[0]=o,t[1]=i):i=t[1];let l;return t[2]!==i?(l=s.jsx(ft,{children:i}),t[2]=i,t[3]=l):l=t[3],l}function Gs(t){return s.jsx(Us,{item:t},t.url)}function Bs(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(z.Suspense,{fallback:s.jsxs(ft,{children:[s.jsx(Fe,{}),s.jsx(Fe,{})]}),children:s.jsx(Ws,{})}),t[0]=e):e=t[0],e}function qs(t){const 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 Vs(t){const e=_.c(14),{project:r}=t,o=Ce(),{org:i}=le();let l;e[0]!==o||e[1]!==i.slug||e[2]!==r.slug?(l=()=>{o({to:"/$org/$project",params:{org:i.slug,project:r.slug}})},e[0]=o,e[1]=i.slug,e[2]=r.slug,e[3]=l):l=e[3];let n;e[4]!==r?(n=s.jsx(qs,{project:r}),e[4]=r,e[5]=n):n=e[5];let a;e[6]!==r.name?(a=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:r.name}),e[6]=r.name,e[7]=a):a=e[7];let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(fs,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=d):d=e[8];let c;return e[9]!==r.name||e[10]!==l||e[11]!==n||e[12]!==a?(c=s.jsx(ee,{children:s.jsxs(we,{onClick:l,tooltip:r.name,children:[n,a,d]})}),e[9]=r.name,e[10]=l,e[11]=n,e[12]=a,e[13]=c):c=e[13],c}function Ks(){const t=_.c(55),{org:e}=le(),{data:r,isLoading:o}=Ze(e.id),[i,l]=z.useState(!0),[n,a]=z.useState(!1);let d,c,m,f,u,h,x,g,j,v,p,b,S;if(t[0]!==o||t[1]!==i||t[2]!==r){S=Symbol.for("react.early_return_sentinel");e:{const D=r?.filter(Qs)??[];if(o){let F;t[16]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(Z,{className:"h-4 w-4 rounded"}),s.jsx(Z,{className:"h-4 flex-1"})]})}),t[16]=F):F=t[16];let re;t[17]===Symbol.for("react.memo_cache_sentinel")?(re=s.jsx(je,{className:"py-0 px-0",children:s.jsx(ge,{children:s.jsxs(ie,{className:"gap-0.5",children:[F,s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(Z,{className:"h-4 w-4 rounded"}),s.jsx(Z,{className:"h-4 flex-1"})]})})]})})}),t[17]=re):re=t[17],S=re;break e}b="group/projects-section mt-2",u=Mt,v=i,p=l,f=je,j="py-0 px-0",m=ge,c=ie,x="gap-0.5";let R;t[18]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=R):R=t[18];const P=!i&&"-rotate-90";let L;t[19]!==P?(L=G("text-muted-foreground shrink-0 transition-transform duration-200",P),t[19]=P,t[20]=L):L=t[20];let $;t[21]!==L?($=s.jsx(Et,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[R,s.jsx(Je,{size:12,className:L})]})}),t[21]=L,t[22]=$):$=t[22];let A;t[23]===Symbol.for("react.memo_cache_sentinel")?(A=()=>a(!0),t[23]=A):A=t[23];let O;t[24]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx("button",{type:"button",onClick:A,title:"Create new project",className:"opacity-0 group-hover/projects-section:opacity-100 transition-opacity text-muted-foreground hover:text-foreground flex items-center justify-center h-4 rounded shrink-0",children:s.jsx(xe,{size:16})}),t[24]=O):O=t[24],t[25]!==$?(g=s.jsx(ee,{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs("div",{className:"flex h-6 w-full items-center gap-1 rounded-md pl-1.5 pr-0.5 hover:bg-sidebar-accent transition-colors",children:[$,O]})}),t[25]=$,t[26]=g):g=t[26],d=Lt,h=D.length===0?s.jsx(ee,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):D.map(Ys)}t[0]=o,t[1]=i,t[2]=r,t[3]=d,t[4]=c,t[5]=m,t[6]=f,t[7]=u,t[8]=h,t[9]=x,t[10]=g,t[11]=j,t[12]=v,t[13]=p,t[14]=b,t[15]=S}else d=t[3],c=t[4],m=t[5],f=t[6],u=t[7],h=t[8],x=t[9],g=t[10],j=t[11],v=t[12],p=t[13],b=t[14],S=t[15];if(S!==Symbol.for("react.early_return_sentinel"))return S;let y;t[27]!==d||t[28]!==h?(y=s.jsx(d,{children:h}),t[27]=d,t[28]=h,t[29]=y):y=t[29];let C;t[30]!==c||t[31]!==x||t[32]!==g||t[33]!==y?(C=s.jsxs(c,{className:x,children:[g,y]}),t[30]=c,t[31]=x,t[32]=g,t[33]=y,t[34]=C):C=t[34];let N;t[35]!==m||t[36]!==C?(N=s.jsx(m,{children:C}),t[35]=m,t[36]=C,t[37]=N):N=t[37];let I;t[38]!==f||t[39]!==N||t[40]!==j?(I=s.jsx(f,{className:j,children:N}),t[38]=f,t[39]=N,t[40]=j,t[41]=I):I=t[41];let T;t[42]!==u||t[43]!==I||t[44]!==v||t[45]!==p?(T=s.jsx(u,{open:v,onOpenChange:p,children:I}),t[42]=u,t[43]=I,t[44]=v,t[45]=p,t[46]=T):T=t[46];let E;t[47]!==T||t[48]!==b?(E=s.jsx("div",{className:b,children:T}),t[47]=T,t[48]=b,t[49]=E):E=t[49];let M;t[50]!==n?(M=s.jsx(Ve,{open:n,onOpenChange:a}),t[50]=n,t[51]=M):M=t[51];let W;return t[52]!==E||t[53]!==M?(W=s.jsxs(s.Fragment,{children:[E,M]}),t[52]=E,t[53]=M,t[54]=W):W=t[54],W}function Ys(t){return s.jsx(Vs,{project:t},t.id)}function Qs(t){return t.slug!==V}function Zs(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(z.Suspense,{fallback:s.jsx(je,{className:"py-0 px-0",children:s.jsx(ge,{children:s.jsx(ie,{className:"gap-0.5",children:s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(Z,{className:"h-4 w-4 rounded"}),s.jsx(Z,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Ks,{})}),t[0]=e):e=t[0],e}function Js(t){const e=_.c(15),{onCreateProject:r}=t,[o]=$e(),i=js(),{locator:l}=le();let n;e[0]!==l?(n=Ie.isOrgAdminProject(l),e[0]=l,e[1]=n):n=e[1];const a=n;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Ae.Skeleton,{}),e[2]=d):d=e[2];let c;e[3]!==r?(c=s.jsx(z.Suspense,{fallback:d,children:s.jsx(Ae,{onCreateProject:r})}),e[3]=r,e[4]=c):c=e[4];let m;e[5]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(Fs,{}),e[5]=m):m=e[5];let f;e[6]!==a||e[7]!==o?(f=a?o.experimental_projects?s.jsx(Zs,{}):null:s.jsx(Bs,{}),e[6]=a,e[7]=o,e[8]=f):f=e[8];let u;e[9]!==f?(u=s.jsx(qe,{children:s.jsx(z.Suspense,{fallback:null,children:f})}),e[9]=f,e[10]=u):u=e[10];let h;return e[11]!==i||e[12]!==c||e[13]!==u?(h=s.jsx(dt,{sections:i,header:c,footer:m,additionalContent:u}),e[11]=i,e[12]=c,e[13]=u,e[14]=h):h=e[14],h}function Xs(){const t=_.c(2),r=_e().location.href;let o;return t[0]!==r?(o=s.jsx(kt,{to:"/login",search:{next:r},replace:!0}),t[0]=r,t[1]=o):o=t[1],o}function er(t){const e=_.c(6),{children:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(yt,{children:s.jsx(He,{})}),e[0]=o):o=e[0];let i;e[1]!==r?(i=s.jsx(vt,{children:r}),e[1]=r,e[2]=i):i=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(St,{children:s.jsx(Xs,{})}),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 tr(t){const e=_.c(10),{children:r,className:o}=t,[,i]=z.useTransition();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Le.decoChatPanelWidth(),e[0]=l):l=e[0];const[n,a]=Ee(l,30);let d;e[1]!==a?(d=u=>i(()=>a(u)),e[1]=a,e[2]=d):d=e[2];const c=d;let m;e[3]!==o?(m=G("min-w-0",o),e[3]=o,e[4]=m):m=e[4];let f;return e[5]!==n||e[6]!==r||e[7]!==c||e[8]!==m?(f=s.jsx(nt,{defaultSize:n,minSize:20,className:m,onResize:c,children:r}),e[5]=n,e[6]=r,e[7]=c,e[8]=m,e[9]=f):f=e[9],f}function sr(t){const e=_.c(5),{children:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Le.sidebarOpen(),e[0]=o):o=e[0];const[i,l]=Ee(o,!0);let n;return e[1]!==r||e[2]!==l||e[3]!==i?(n=s.jsx(At,{open:i,onOpenChange:l,children:r}),e[1]=r,e[2]=l,e[3]=i,e[4]=n):n=e[4],n}function rr(t){const e=_.c(24),{isStudio:r,isHomeRoute:o,onCreateProject:i}=t,[l]=Te();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Le.decoChatPanelWidth(),e[0]=n):n=e[0];const[a]=Ee(n,30),[d]=$e(),c=r&&d.experimental_projects?"":void 0,m=`${a}cqi`;let f;e[1]!==m?(f={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":m},e[1]=m,e[2]=f):f=e[2];const u=f;let h;e[3]!==i?(h=s.jsx(Js,{onCreateProject:i}),e[3]=i,e[4]=h):h=e[4];let x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x={background:"transparent",containerType:"inline-size"},e[5]=x):x=e[5];let g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g={overflow:"visible"},e[6]=g):g=e[6];let j;e[7]===Symbol.for("react.memo_cache_sentinel")?(j={overflow:"visible"},e[7]=j):j=e[7];const v=l&&"rounded-tr-[0.75rem] border-r";let p;e[8]!==v?(p=G("flex flex-col flex-1 min-h-0 bg-card overflow-hidden","border-t border-l border-sidebar-border","rounded-tl-[0.75rem]","transition-[border-radius] duration-200 ease-[var(--ease-out-quart)]",v),e[8]=v,e[9]=p):p=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(Ue,{})}),e[10]=b):b=e[10];let S;e[11]!==p?(S=s.jsx(nt,{className:"min-w-0 flex flex-col",style:j,children:s.jsx("div",{className:p,children:b})}),e[11]=p,e[12]=S):S=e[12];let y;e[13]!==l||e[14]!==o?(y=!o&&s.jsxs(s.Fragment,{children:[s.jsx(ps,{className:"bg-sidebar"}),s.jsx(tr,{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(gs,{})})})})]}),e[13]=l,e[14]=o,e[15]=y):y=e[15];let C;e[16]!==S||e[17]!==y?(C=s.jsx(Ot,{className:"pt-1.5",style:x,children:s.jsxs(xs,{direction:"horizontal",className:"h-full",style:g,children:[S,y]})}),e[16]=S,e[17]=y,e[18]=C):C=e[18];let N;return e[19]!==C||e[20]!==c||e[21]!==u||e[22]!==h?(N=s.jsxs(Tt,{className:"flex-1 bg-sidebar","data-studio":c,style:u,children:[h,C]}),e[19]=C,e[20]=c,e[21]=u,e[22]=h,e[23]=N):N=e[23],N}function nr(){const{org:t,project:e}=Oe({strict:!1}),r=_e(),[o,i]=z.useState(!1),l=r.location.pathname===`/${t}/${e}`||r.location.pathname===`/${t}/${e}/`,n=e??V,{data:a}=Ct({queryKey:_t.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:m}=await ce.organization.setActive({organizationSlug:t});return{org:m,project:{slug:n,isOrgAdmin:n===V}}},gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1});if(!a)return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("header",{className:"h-12 flex items-center justify-end px-4 border-b border-border",children:s.jsx(ut,{})}),s.jsx(Ue,{})]});if(!a.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const d={...a,project:{...a.project,slug:n,isOrgAdmin:n===V}},c=n===V;return s.jsxs(wt,{...d,children:[s.jsx(sr,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(X.Provider,{children:s.jsx(rr,{isStudio:c,isHomeRoute:l,onCreateProject:()=>i(!0)})})})}),s.jsx(Ve,{open:o,onOpenChange:i})]})}function Bn(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(er,{children:s.jsx(z.Suspense,{fallback:s.jsx(He,{}),children:s.jsx(nr,{})})}),t[0]=e):e=t[0],e}export{Bn as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,j as l}from"./index-
|
|
1
|
+
import{c as r,j as l}from"./index-Chdo1wOf.js";import{u as c,L as i}from"./localstorage-keys-D6jY_B8O.js";import{c as f}from"./button-BlFVi9O-.js";const m={devMode:!1,experimental_projects:!1,experimental_tasks:!1,toolApprovalLevel:"none",enableNotifications:typeof Notification<"u"};function x(){const t=r.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.preferences(),t[0]=e):e=t[0],c(e,p)}function p(t){return{...m,...t}}function S(t){const e=r.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=f("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=n):n=e[4];let a;return e[5]!==o||e[6]!==n?(a=l.jsx("div",{"data-slot":"skeleton",className:n,...o}),e[5]=o,e[6]=n,e[7]=a):a=e[7],a}export{S,x as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,y as d,j as a}from"./index-
|
|
1
|
+
import{c as C,y as d,j as a}from"./index-Chdo1wOf.js";import{c as m}from"./button-BlFVi9O-.js";const u=d("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",special:"fill-special text-backround"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=m(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let l,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=l,e[4]=i):(l=e[3],i=e[4]);let s;e[5]!==t?(s=a.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=a.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h,e as S,j as o,A as x,S as d,f as j,h as b,a as g,d as y,O as N,N as p}from"./index-
|
|
1
|
+
import{c as h,e as S,j as o,A as x,S as d,f as j,h as b,a as g,d as y,O as N,N as p}from"./index-Chdo1wOf.js";function R(e){const t=h.c(5),{appName:l}=e;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},t[0]=s):s=t[0];const n=g(s);let a;if(t[1]!==n){const r=new URLSearchParams;for(const[_,u]of Object.entries(n))u!=null&&r.set(_,String(u));a=r.toString(),t[1]=n,t[2]=a}else a=t[2];const f=a,c=`/store/${encodeURIComponent(l)}${f?`?${f}`:""}`;let i;return t[3]!==c?(i=o.jsx(p,{to:"/login",search:{next:c},replace:!0}),t[3]=c,t[4]=i):i=t[4],i}function $(){const e=h.c(10);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[1]=s):s=e[1];const n=g(s),{data:a,isPending:f}=y.useListOrganizations();if(f){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(d,{}),e[2]=r):r=e[2],r}const m=a?.[0];if(!m){let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(p,{to:"/",replace:!0}),e[3]=r):r=e[3],r}let c;e[4]!==l||e[5]!==m.slug?(c={org:m.slug,project:N,appName:l},e[4]=l,e[5]=m.slug,e[6]=c):c=e[6];let i;return e[7]!==n||e[8]!==c?(i=o.jsx(p,{to:"/$org/$project/store/$appName",params:c,search:n,replace:!0}),e[7]=n,e[8]=c,e[9]=i):i=e[9],i}function v(){const e=h.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(x,{children:o.jsx(d,{})}),e[1]=s):s=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(j,{children:o.jsx($,{})}),e[2]=n):n=e[2];let a;return e[3]!==l?(a=o.jsxs(o.Fragment,{children:[s,n,o.jsx(b,{children:o.jsx(R,{appName:l})})]}),e[3]=l,e[4]=a):a=e[4],a}export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as i,ar as C,as as y,ap as T,au as I,ay as M,az as z,ax as H,c as A}from"./index-
|
|
1
|
+
import{r as c,j as i,ar as C,as as y,ap as T,au as I,ay as M,az as z,ax as H,c as A}from"./index-Chdo1wOf.js";import{c as g}from"./button-BlFVi9O-.js";var b="Switch",[U]=H(b),[q,L]=U(b),E=c.forwardRef((s,e)=>{const{__scopeSwitch:t,name:r,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=s,[p,h]=c.useState(null),v=y(e,m=>h(m)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:a,defaultProp:n??!1,onChange:k,caller:b});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(s.onClick,m=>{N(B=>!B),S&&(x.current=m.isPropagationStopped(),x.current||m.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:r,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=b;var P="SwitchThumb",R=c.forwardRef((s,e)=>{const{__scopeSwitch:t,...r}=s,a=L(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:s,control:e,checked:t,bubbles:r=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=z(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:r});h.call(l,t),l.dispatchEvent(v)}},[u,t,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(s){return s?"checked":"unchecked"}var $=E,D=R;function X(s){const e=A.c(9);let t,r;e[0]!==s?({className:t,...r}=s,e[0]=s,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let a;e[3]!==t?(a=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==r||e[7]!==a?(o=i.jsx($,{"data-slot":"switch",className:a,...r,children:n}),e[6]=r,e[7]=a,e[8]=o):o=e[8],o}export{X as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,j as c}from"./index-
|
|
1
|
+
import{c as r,j as c}from"./index-Chdo1wOf.js";import{c as i}from"./button-BlFVi9O-.js";function b(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-background",children:c.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-background",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function u(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{u as T,f as a,m as b,x as c,p as d,b as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as O,j as r,r as Z,u as ae,b as oe,m as ie,n as le,K as G}from"./index-
|
|
1
|
+
import{c as O,j as r,r as Z,u as ae,b as oe,m as ie,n as le,K as G}from"./index-Chdo1wOf.js";import{C as ne,a as ce}from"./collection-table-wrapper-D3UQPYYs.js";import{C as me,E as J}from"./empty-state-DwKYfPjb.js";import{E as de}from"./error-boundary-DFWzxGF2.js";import{P as _}from"./index-6Tp9fsVX.js";import{u as ue,U as pe}from"./use-list-state-DQM_pDDC.js";import{f as fe}from"./format-time-CMKyl-GC.js";import{a as he,u as xe}from"./constants-DS4O9R8r.js";import{B as ge,a as je,b as ye,c as Se}from"./breadcrumb-p3FP4YzT.js";import{B as b}from"./badge-zj5rJqFG.js";import{i as be}from"./AlertCircle-DiDJuuO7.js";import{c as _e}from"./AlertOctagon-T8X2xR5Y.js";import{n as X}from"./CheckDone01-BKZeNjYI.js";import{i as we}from"./Check-ebSdGxZp.js";import{s as Ce}from"./Clock-ByTlM-Ae.js";import{i as ee}from"./Loading01-BZRHfswB.js";import{u as Ne,a as Te}from"./context-CJpih0Aq.js";import"./button-BlFVi9O-.js";import"./dropdown-menu-Db2R0f6-.js";import"./ChevronRight-D1zpPr9G.js";import"./ArrowUp-CBTnQfpb.js";import"./Grid01-BWcrgmNx.js";import"./List-DqeEnxu3.js";import"./tooltip-BWW8lvJo.js";import"./table-N5hQy-1m.js";import"./SearchMd-CdY2Qz31.js";import"./input-C2bYHqSZ.js";import"./AlertTriangle-BR7J9Jvh.js";import"./use-mobile-ziAtnWz2.js";import"./avatar-CLzAk7bk.js";import"./useQuery-C0AkqYB7.js";import"./use-view-mode-CRJUL6S-.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-virtual-mcp-BateG3is.js";import"./use-connection-O4z2Mc_F.js";import"./useMutation-BTkDU0tp.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-Z9GIoSzc.js";import"./use-binding-DT0OPEEL.js";import"./binder-Yx0eVQL7.js";import"./localstorage-keys-D6jY_B8O.js";import"./skeleton-DdrlSfda.js";import"./popover-B4On8gSm.js";import"./select-DwyzrBGR.js";import"./ChevronDown-BxrIQ2Hg.js";import"./File06-CL04kImU.js";import"./Image01-DcX1niB5.js";import"./RefreshCcw01-Ci0qepHw.js";import"./Settings01-hHMZndAB.js";import"./useSuspenseInfiniteQuery-DPaJK1nP.js";import"./infiniteQueryObserver-DOxbID_2.js";function ke(e){const s=O.c(9),{status:n,stepCount:l}=e;switch(n){case"in_progress":{let a;s[0]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsx(ee,{size:11,className:"animate-spin"}),s[0]=a):a=s[0];const c=l?`Running · step ${l}`:"Running";let m;return s[1]!==c?(m=r.jsxs(b,{variant:"secondary",className:"gap-1",children:[a,c]}),s[1]=c,s[2]=m):m=s[2],m}case"completed":{let a;return s[3]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"success",className:"gap-1",children:[r.jsx(we,{size:11}),"Completed"]}),s[3]=a):a=s[3],a}case"requires_action":{let a;return s[4]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"outline",className:"gap-1 text-blue-600 border-blue-600/40",children:[r.jsx(be,{size:11}),"Waiting for input"]}),s[4]=a):a=s[4],a}case"failed":{let a;return s[5]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"destructive",className:"gap-1",children:[r.jsx(_e,{size:11}),"Failed"]}),s[5]=a):a=s[5],a}case"expired":{let a;return s[6]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"outline",className:"gap-1 text-warning border-warning/40",children:[r.jsx(Ce,{size:11}),"Timed out"]}),s[6]=a):a=s[6],a}default:{let a;return s[7]!==n?(a=r.jsx(b,{variant:"secondary",className:"gap-1",children:n}),s[7]=n,s[8]=a):a=s[8],a}}}function ve(){const e=O.c(64),{org:s,project:n,locator:l}=ae();let a;e[0]!==s.id?(a={connectionId:he,orgId:s.id},e[0]=s.id,e[1]=a):a=e[1];const c=xe(a),m=oe(),{switchToThread:I}=Ne(),P=ie();let w;e[2]===Symbol.for("react.memo_cache_sentinel")?(w=new Map,e[2]=w):w=e[2];const[R,Q]=Z.useState(w);let C;e[3]===Symbol.for("react.memo_cache_sentinel")?(C=o=>{Q(S=>{const i=new Map(S);return i.set(o.subject,o.data.stepCount),i})},e[3]=C):C=e[3];let d;e[4]!==l||e[5]!==P?(d=o=>{P.invalidateQueries({queryKey:G.taskThreads(l)}),o.data.status!=="in_progress"&&Q(S=>{const i=new Map(S);return i.delete(o.subject),i})},e[4]=l,e[5]=P,e[6]=d):d=e[6];let N;e[7]!==s.id||e[8]!==d?(N={orgId:s.id,onStep:C,onThreadStatus:d},e[7]=s.id,e[8]=d,e[9]=N):N=e[9],Te(N);let T;e[10]!==s.slug?(T={namespace:s.slug,resource:"tasks",defaultSortKey:"updated_at",defaultViewMode:"table"},e[10]=s.slug,e[11]=T):T=e[11];const t=ue(T);let u;e[12]!==l?(u=G.taskThreads(l),e[12]=l,e[13]=u):u=e[13];let p;e[14]!==c?(p=async()=>{if(!c)throw new Error("MCP client is not available");const o=await c.callTool({name:"COLLECTION_THREADS_LIST",arguments:{limit:100,offset:0}});return(o.structuredContent??o).items??[]},e[14]=c,e[15]=p):p=e[15];let k;e[16]!==u||e[17]!==p?(k={queryKey:u,queryFn:p,staleTime:3e4},e[16]=u,e[17]=p,e[18]=k):k=e[18];const{data:V}=le(k);let v;if(e[19]!==V||e[20]!==t){const o=V.filter(Ee),S=t.searchTerm?o.filter(U=>U.title.toLowerCase().includes(t.searchTerm.toLowerCase())):o;let i;e[22]!==t?(i=(U,te)=>{const{sortKey:F,sortDirection:W}=t;if(!F||!W)return 0;const se=String(U[F]??""),re=String(te[F]??""),Y=se.localeCompare(re);return W==="asc"?Y:-Y},e[22]=t,e[23]=i):i=e[23],v=[...S].sort(i),e[19]=V,e[20]=t,e[21]=v}else v=e[21];const q=v;let D;e[24]!==m||e[25]!==s.slug||e[26]!==n.slug||e[27]!==I?(D=async o=>{await I(o.id),m({to:"/$org/$project",params:{org:s.slug,project:n.slug}})},e[24]=m,e[25]=s.slug,e[26]=n.slug,e[27]=I,e[28]=D):D=e[28];const A=D;let K;e[29]===Symbol.for("react.memo_cache_sentinel")?(K={id:"title",header:"Title",render:Me,cellClassName:"flex-1 min-w-0",sortable:!0},e[29]=K):K=e[29];let f;e[30]!==R?(f={id:"status",header:"Status",render:o=>r.jsx(ke,{status:o.status??"completed",stepCount:R.get(o.id)}),cellClassName:"w-40 shrink-0",sortable:!0},e[30]=R,e[31]=f):f=e[31];let M,E;e[32]===Symbol.for("react.memo_cache_sentinel")?(M={id:"created_by",header:"Created by",render:Ke,cellClassName:"w-32 shrink-0"},E={id:"updated_at",header:"Updated",render:De,cellClassName:"max-w-24 w-24 shrink-0",sortable:!0},e[32]=M,e[33]=E):(M=e[32],E=e[33]);let L;e[34]!==f?(L=[K,f,M,E],e[34]=f,e[35]=L):L=e[35];const H=L;let B;e[36]===Symbol.for("react.memo_cache_sentinel")?(B=r.jsx(_.Header.Left,{children:r.jsx(ge,{children:r.jsx(je,{children:r.jsx(ye,{children:r.jsx(Se,{children:"Tasks"})})})})}),e[36]=B):B=e[36];let z;e[37]===Symbol.for("react.memo_cache_sentinel")?(z=[{id:"title",label:"Title"},{id:"status",label:"Status"},{id:"updated_at",label:"Updated"}],e[37]=z):z=e[37];let h;e[38]!==t.handleSort||e[39]!==t.setViewMode||e[40]!==t.sortDirection||e[41]!==t.sortKey||e[42]!==t.viewMode?(h=r.jsxs(_.Header,{children:[B,r.jsx(_.Header.Right,{children:r.jsx(ne,{viewMode:t.viewMode,onViewModeChange:t.setViewMode,sortKey:t.sortKey,sortDirection:t.sortDirection,onSort:t.handleSort,sortOptions:z})})]}),e[38]=t.handleSort,e[39]=t.setViewMode,e[40]=t.sortDirection,e[41]=t.sortKey,e[42]=t.viewMode,e[43]=h):h=e[43];let x;e[44]!==t?(x=o=>{o.key==="Escape"&&(t.setSearch(""),o.target.blur())},e[44]=t,e[45]=x):x=e[45];let g;e[46]!==t.search||e[47]!==t.setSearch||e[48]!==x?(g=r.jsx(me,{value:t.search,onChange:t.setSearch,placeholder:"Search tasks...",onKeyDown:x}),e[46]=t.search,e[47]=t.setSearch,e[48]=x,e[49]=g):g=e[49];let j;e[50]!==t.search?(j=t.search?r.jsx(J,{image:r.jsx(X,{size:36,className:"text-muted-foreground"}),title:"No tasks found",description:`No tasks match "${t.search}"`}):r.jsx(J,{image:r.jsx("div",{className:"flex items-center justify-center w-16 h-16 rounded-full bg-muted",children:r.jsx(X,{size:32,className:"text-muted-foreground"})}),title:"No tasks yet",description:"Tasks will appear here when agents start processing work."}),e[50]=t.search,e[51]=j):j=e[51];let y;e[52]!==H||e[53]!==t.handleSort||e[54]!==t.sortDirection||e[55]!==t.sortKey||e[56]!==A||e[57]!==j||e[58]!==q?(y=r.jsx(_.Content,{children:r.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r.jsx(ce,{columns:H,data:q,isLoading:!1,sortKey:t.sortKey,sortDirection:t.sortDirection,onSort:t.handleSort,onRowClick:A,emptyState:j})})}),e[52]=H,e[53]=t.handleSort,e[54]=t.sortDirection,e[55]=t.sortKey,e[56]=A,e[57]=j,e[58]=q,e[59]=y):y=e[59];let $;return e[60]!==h||e[61]!==g||e[62]!==y?($=r.jsxs(_,{children:[h,g,y]}),e[60]=h,e[61]=g,e[62]=y,e[63]=$):$=e[63],$}function De(e){return r.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:e.updated_at?fe(new Date(e.updated_at)):"—"})}function Ke(e){return r.jsx(pe,{id:e.created_by,size:"3xs"})}function Me(e){return r.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.title})}function Ee(e){return!e.hidden}function Kt(){const e=O.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx(de,{children:r.jsx(Z.Suspense,{fallback:r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(ee,{size:32,className:"animate-spin text-muted-foreground"})}),children:r.jsx(ve,{})})}),e[0]=s):s=e[0],s}export{Kt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o,j as n}from"./index-
|
|
1
|
+
import{c as o,j as n}from"./index-Chdo1wOf.js";import{c as l}from"./button-BlFVi9O-.js";function u(s){const e=o.c(8);let r,i;e[0]!==s?({className:r,...i}=s,e[0]=s,e[1]=r,e[2]=i):(r=e[1],i=e[2]);let t;e[3]!==r?(t=l("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-xl border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),e[3]=r,e[4]=t):t=e[4];let a;return e[5]!==i||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...i}),e[5]=i,e[6]=t,e[7]=a):a=e[7],a}export{u as T};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as x,c as At,b as yn,u as bn,j as s,O as kt,t as ne}from"./index-
|
|
1
|
+
import{r as x,c as At,b as yn,u as bn,j as s,O as kt,t as ne}from"./index-Chdo1wOf.js";import{B as xn}from"./badge-zj5rJqFG.js";import{B as I,c as U,b as Dt}from"./button-BlFVi9O-.js";import{b as lt,P as ct,a as ut}from"./popover-B4On8gSm.js";import{T as Ge,a as Qe,b as Xe}from"./tooltip-BWW8lvJo.js";import{i as Je}from"./Check-ebSdGxZp.js";import{a as $e}from"./Copy01-CfVZSokb.js";import{n as Mt}from"./Download01-CMusldak.js";import{i as wn}from"./FilterLines-DgwYDfry.js";import{i as Nn}from"./Key01-CyWdmMm6.js";import{i as kn}from"./Play-BKXV9SNy.js";import{M as _t,n as Dn,a as Mn}from"./scroll-area-C9Z4g4D3.js";import{t as _n}from"./ChevronDown-BxrIQ2Hg.js";import{s as jn}from"./Clock-ByTlM-Ae.js";import{i as Cn}from"./ChevronRight-D1zpPr9G.js";import{I as jt}from"./input-C2bYHqSZ.js";const Ht=({size:t=24,color:e="currentColor",...n})=>x.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},x.createElement("path",{d:"m15 18-6-6 6-6"}));Ht.displayName="ChevronLeft";const Sn=({size:t=24,color:e="currentColor",...n})=>x.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},x.createElement("path",{d:"M11 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 22 5.12 22 6.8 22h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 19.72 20 18.88 20 17.2V13M8 16h1.675c.489 0 .733 0 .963-.055.204-.05.4-.13.579-.24.201-.123.374-.296.72-.642L21.5 5.5a2.121 2.121 0 0 0-3-3l-9.563 9.563c-.346.346-.519.519-.642.72a2 2 0 0 0-.24.579c-.055.23-.055.474-.055.963V16Z"}));Sn.displayName="Edit05";const qt=({size:t=24,color:e="currentColor",...n})=>x.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},x.createElement("path",{d:"M4 7c0-.932 0-1.398.152-1.765a2 2 0 0 1 1.083-1.083C5.602 4 6.068 4 7 4h10c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C20 5.602 20 6.068 20 7M9 20h6M12 4v16"}));qt.displayName="Type01";const Ct={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function On(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),r=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${r}`}).join(",")}function Ao(t){return t?t.split(",").map(e=>{const[n,r,...a]=e.split(":");return{key:decodeURIComponent(n||""),operator:r||"eq",value:decodeURIComponent(a.join(":")||"")}}):[]}function Ho(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function qo(t){return t.trim()?t.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[n,...r]=e.split("=");return{key:n||"",operator:"eq",value:r.join("=")}}if(e.includes("~")){const[n,...r]=e.split("~");return{key:n||"",operator:"contains",value:r.join("~")}}if(e.includes("@")){const[n,...r]=e.split("@");return{key:n||"",operator:"in",value:r.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function zo(t){const e={},n={},r=[],a={};for(const o of t)if(o.key.trim())switch(o.operator){case"eq":o.value&&(e[o.key]=o.value);break;case"contains":o.value&&(n[o.key]=`%${o.value}%`);break;case"exists":r.push(o.key);break;case"in":o.value&&(a[o.key]=o.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(n).length>0?n:void 0,propertyKeys:r.length>0?r:void 0,propertyInValues:Object.keys(a).length>0?a:void 0}}function St(t){if(!t)return{content:"null",isTruncated:!1,originalSize:4};const e=JSON.stringify(t,null,2),n=e.length;return n<=Ct.maxJsonRenderSize?{content:e,isTruncated:!1,originalSize:n}:{content:e.slice(0,Ct.maxJsonRenderSize)+`
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as x,ap as h,j as c,ar as m,au as k,bm as p,at as M,av as T,ax as S,ao as A,aq as F,y as $,c as P}from"./index-
|
|
1
|
+
import{r as x,ap as h,j as c,ar as m,au as k,bm as p,at as M,av as T,ax as S,ao as A,aq as F,y as $,c as P}from"./index-Chdo1wOf.js";import{c as C}from"./button-BlFVi9O-.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[t,o]=h({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=S(v,[T]),I=T(),b=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});b.displayName=v;var[z,y]=w(v),D=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...r,ref:e})})}),B=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...r,ref:e})})});b.displayName=v;var[O,q]=w(v),R=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=I(l),u=A(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(F,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=y(f,a.__scopeToggleGroup),s=q(f,a.__scopeToggleGroup),n=I(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=y(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),H=b,L=N;const U=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function Q(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(H,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function W(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(U({variant:o.variant||t,size:o.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=r,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(L,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{Q as T,W as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,b as F,r as D,j as t,O as J}from"./index-
|
|
1
|
+
import{c as z,b as F,r as D,j as t,O as J}from"./index-Chdo1wOf.js";import{a as q,C as Q}from"./collection-table-wrapper-D3UQPYYs.js";import{E as K,C as X}from"./empty-state-DwKYfPjb.js";import{I as Y}from"./integration-icon-CHfvIBul.js";import{B as Z}from"./badge-zj5rJqFG.js";import{C as ee}from"./card-C5XZXHnb.js";import{T as te,a as oe,b as se,c as ne}from"./tooltip-BWW8lvJo.js";import{i as re}from"./AlertTriangle-BR7J9Jvh.js";import{s as ae}from"./Eye-Wh_bq-Y4.js";import{s as ie}from"./Globe02-BD3ZCWms.js";import{s as le}from"./RefreshCw01-Sv3Ciq4-.js";import{V as ce}from"./layout-D8HdJww7.js";const me=[{key:"readOnlyHint",label:"Read-only",Icon:ae,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:re,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:le,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:ie,variant:"outline"}];function de(o){const e=z.c(11),{annotations:r}=o;if(!r)return null;let a,c,m,d;if(e[0]!==r){d=Symbol.for("react.early_return_sentinel");e:{const u=me.filter(h=>r[h.key]===!0);if(u.length===0){d=null;break e}a=ne,c="flex gap-1 flex-nowrap",m=u.map(fe)}e[0]=r,e[1]=a,e[2]=c,e[3]=m,e[4]=d}else a=e[1],c=e[2],m=e[3],d=e[4];if(d!==Symbol.for("react.early_return_sentinel"))return d;let f;e[5]!==c||e[6]!==m?(f=t.jsx("div",{className:c,children:m}),e[5]=c,e[6]=m,e[7]=f):f=e[7];let p;return e[8]!==a||e[9]!==f?(p=t.jsx(a,{children:f}),e[8]=a,e[9]=f,e[10]=p):p=e[10],p}function fe(o){const{label:e,Icon:r,variant:a}=o;return t.jsxs(te,{children:[t.jsx(oe,{asChild:!0,children:t.jsx(Z,{asChild:!0,variant:a,className:"size-6 p-1",children:t.jsx(r,{})})}),t.jsx(se,{children:e})]},e)}function Le(o){const e=z.c(40),{tools:r,connectionId:a,org:c,onToolClick:m,showToolbar:d,emptyMessage:f,isLoading:p}=o,u=d===void 0?!0:d,h=f===void 0?"This connection doesn't have any tools yet.":f,E=p===void 0?!1:p,R=F(),[i,H]=D.useState(""),[x,G]=D.useState("table"),[n,M]=D.useState("name"),[l,V]=D.useState("asc");let T;e[0]!==l||e[1]!==n?(T=s=>{n===s?(V(je),l==="desc"&&M(void 0)):(M(s),V("asc"))},e[0]=l,e[1]=n,e[2]=T):T=e[2];const g=T;let S;e[3]!==a||e[4]!==R||e[5]!==m||e[6]!==c?(S=s=>{m?m(s):a&&c&&R({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:c,project:J,connectionId:a,collectionName:"tools",itemId:encodeURIComponent(s.name)}})},e[3]=a,e[4]=R,e[5]=m,e[6]=c,e[7]=S):S=e[7];const w=S;let I;if(e[8]!==i||e[9]!==l||e[10]!==n||e[11]!==r){const s=!r||r.length===0?[]:i.trim()?(()=>{const O=i.toLowerCase();return r.filter(C=>C.name.toLowerCase().includes(O)||C.description&&C.description.toLowerCase().includes(O))})():r;I=!n||!l?s:[...s].sort((O,C)=>{const U=O[n]||"",W=C[n]||"",B=String(U).localeCompare(String(W));return l==="asc"?B:-B}),e[8]=i,e[9]=l,e[10]=n,e[11]=r,e[12]=I}else I=e[12];const v=I;let _;e[13]===Symbol.for("react.memo_cache_sentinel")?(_=[{id:"name",header:"Name",render:ge,sortable:!0},{id:"annotations",header:"Hints",render:xe,cellClassName:"w-32 shrink-0"},{id:"description",header:"Description",render:he,cellClassName:"flex-1",sortable:!0}],e[13]=_):_=e[13];const A=_;let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=A.filter(ue).map(pe),e[14]=k):k=e[14];const P=k;let j;e[15]!==g||e[16]!==u||e[17]!==l||e[18]!==n||e[19]!==x?(j=u&&t.jsx(ce,{children:t.jsx(Q,{viewMode:x,onViewModeChange:G,sortKey:n,sortDirection:l,onSort:g,sortOptions:P})}),e[15]=g,e[16]=u,e[17]=l,e[18]=n,e[19]=x,e[20]=j):j=e[20];let $;e[21]===Symbol.for("react.memo_cache_sentinel")?($=s=>{s.key==="Escape"&&(H(""),s.target.blur())},e[21]=$):$=e[21];let y;e[22]!==i?(y=t.jsx(X,{value:i,onChange:H,placeholder:"Search tools...",onKeyDown:$}),e[22]=i,e[23]=y):y=e[23];let N;e[24]!==h||e[25]!==g||e[26]!==w||e[27]!==E||e[28]!==i||e[29]!==l||e[30]!==n||e[31]!==v||e[32]!==x?(N=x==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:v.length===0?t.jsx(K,{image:null,title:i?"No tools found":"No tools available",description:i?"Try adjusting your search terms":h}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:v.map(s=>t.jsx(ee,{className:"cursor-pointer transition-colors",onClick:()=>w(s),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(Y,{icon:null,name:s.name,size:"md",className:"shrink-0 shadow-sm"}),t.jsxs("div",{className:"flex flex-col gap-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.name}),t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:s.description||"No description"})]})]})},s.name))})}):t.jsx(q,{columns:A,data:v,isLoading:E,sortKey:n,sortDirection:l,onSort:g,onRowClick:s=>w(s),emptyState:t.jsx(K,{image:null,title:i?"No tools found":"No tools available",description:i?"Try adjusting your search terms":h})}),e[24]=h,e[25]=g,e[26]=w,e[27]=E,e[28]=i,e[29]=l,e[30]=n,e[31]=v,e[32]=x,e[33]=N):N=e[33];let b;e[34]!==y||e[35]!==N?(b=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[y,N]}),e[34]=y,e[35]=N,e[36]=b):b=e[36];let L;return e[37]!==b||e[38]!==j?(L=t.jsxs(t.Fragment,{children:[j,b]}),e[37]=b,e[38]=j,e[39]=L):L=e[39],L}function pe(o){return{id:o.id,label:typeof o.header=="string"?o.header:o.id}}function ue(o){return o.sortable}function he(o){return t.jsx("span",{className:"text-sm text-foreground",children:o.description||"—"})}function xe(o){return t.jsx(de,{annotations:o.annotations})}function ge(o){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:o.name})}function je(o){return o==="asc"?"desc":o==="desc"?null:"asc"}export{Le as T,de as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,as as H,j as c,aH as W,ar as J,au as C,aw as S,aI as K,al as Q,ap as Z,aG as ee,aJ as G,aP as te,aQ as oe,ax as re,aU as ne,aR as se,c as j}from"./index-
|
|
1
|
+
import{r as a,as as H,j as c,aH as W,ar as J,au as C,aw as S,aI as K,al as Q,ap as Z,aG as ee,aJ as G,aP as te,aQ as oe,ax as re,aU as ne,aR as se,c as j}from"./index-Chdo1wOf.js";import{R as ae}from"./constants-DS4O9R8r.js";import{c as ie}from"./button-BlFVi9O-.js";var[O]=re("Tooltip",[G]),k=G(),$="TooltipProvider",le=700,D="tooltip.open",[ce,A]=O($),z=o=>{const{__scopeTooltip:e,delayDuration:t=le,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=a.useRef(!0),d=a.useRef(!1),i=a.useRef(0);return a.useEffect(()=>{const p=i.current;return()=>window.clearTimeout(p)},[]),c.jsx(ce,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:a.useCallback(()=>{window.clearTimeout(i.current),l.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:a.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};z.displayName=$;var R="Tooltip",[ue,_]=O(R),F=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,i=A(R,o.__scopeTooltip),p=k(e),[u,v]=a.useState(null),x=Q(),f=a.useRef(0),h=l??i.disableHoverableContent,m=d??i.delayDuration,g=a.useRef(!1),[y,T]=Z({prop:r,defaultProp:n??!1,onChange:I=>{I?(i.onOpen(),document.dispatchEvent(new CustomEvent(D))):i.onClose(),s?.(I)},caller:R}),w=a.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,T(!0)},[T]),P=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,T(!1)},[T]),N=a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,T(!0),f.current=0},m)},[m,T]);return a.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(ee,{...p,children:c.jsx(ue,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:a.useCallback(()=>{i.isOpenDelayedRef.current?N():E()},[i.isOpenDelayedRef,N,E]),onTriggerLeave:a.useCallback(()=>{h?P():(window.clearTimeout(f.current),f.current=0)},[P,h]),onOpen:E,onClose:P,disableHoverableContent:h,children:t})})};F.displayName=R;var L="TooltipTrigger",B=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(L,t),s=A(L,t),l=k(t),d=a.useRef(null),i=H(e,d,n.onTriggerChange),p=a.useRef(!1),u=a.useRef(!1),v=a.useCallback(()=>p.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(W,{asChild:!0,...l,children:c.jsx(J.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:i,onPointerMove:C(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});B.displayName=L;var M="TooltipPortal",[de,pe]=O(M,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(M,e);return c.jsx(de,{scope:e,forceMount:t,children:c.jsx(S,{present:t||s.open,children:c.jsx(K,{asChild:!0,container:n,children:r})})})};U.displayName=M;var b="TooltipContent",V=a.forwardRef((o,e)=>{const t=pe(b,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(b,o.__scopeTooltip);return c.jsx(S,{present:r||l.open,children:l.disableHoverableContent?c.jsx(X,{side:n,...s,ref:e}):c.jsx(fe,{side:n,...s,ref:e})})}),fe=a.forwardRef((o,e)=>{const t=_(b,o.__scopeTooltip),r=A(b,o.__scopeTooltip),n=a.useRef(null),s=H(e,n),[l,d]=a.useState(null),{trigger:i,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=a.useCallback(()=>{d(null),v(!1)},[v]),f=a.useCallback((h,m)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},T=ge(y,g.getBoundingClientRect()),w=me(y,T),E=Te(m.getBoundingClientRect()),P=Ce([...w,...E]);d(P),v(!0)},[v]);return a.useEffect(()=>()=>x(),[x]),a.useEffect(()=>{if(i&&u){const h=g=>f(g,u),m=g=>f(g,i);return i.addEventListener("pointerleave",h),u.addEventListener("pointerleave",m),()=>{i.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",m)}}},[i,u,f,x]),a.useEffect(()=>{if(l){const h=m=>{const g=m.target,y={x:m.clientX,y:m.clientY},T=i?.contains(g)||u?.contains(g),w=!ye(y,l);T?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[i,u,l,p,x]),c.jsx(X,{...o,ref:s})}),[ve,xe]=O(R,{isInside:!1}),he=ne("TooltipContent"),X=a.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,i=_(b,t),p=k(t),{onClose:u}=i;return a.useEffect(()=>(document.addEventListener(D,u),()=>document.removeEventListener(D,u)),[u]),a.useEffect(()=>{if(i.trigger){const v=x=>{x.target?.contains(i.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[i.trigger,u]),c.jsx(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(oe,{"data-state":i.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(he,{children:r}),c.jsx(ve,{scope:t,isInside:!0,children:c.jsx(ae,{id:i.contentId,role:"tooltip",children:n||r})})]})})});V.displayName=b;var Y="TooltipArrow",q=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=k(t);return xe(Y,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});q.displayName=Y;function ge(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function me(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function Te(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function ye(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],i=e[l],p=d.x,u=d.y,v=i.x,x=i.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function Ce(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),be(e)}function be(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var we=z,Ee=F,Pe=B,Re=U,_e=V,je=q;const Oe=({size:o=24,color:e="currentColor",...t})=>a.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},a.createElement("path",{d:"M17 7 7 17M7 7l10 10"}));Oe.displayName="X";function ke(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(we,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Me(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(ke,{children:c.jsx(Ee,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function Ne(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Pe,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Ie(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ie("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let i;e[7]===Symbol.for("react.memo_cache_sentinel")?(i=c.jsx(je,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=i):i=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Re,{children:c.jsxs(_e,{"data-slot":"tooltip-content",sideOffset:l,className:d,...n,children:[t,i]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{Me as T,Ne as a,Ie as b,ke as c,Oe as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,j as l,r}from"./index-
|
|
1
|
+
import{c,j as l,r}from"./index-Chdo1wOf.js";const s=r.createContext(null);function x(i){const t=c.c(3),{value:u,children:n}=i,o=u;let e;return t[0]!==n||t[1]!==o?(e=l.jsx(s.Provider,{value:o,children:n}),t[0]=n,t[1]=o,t[2]=e):e=t[2],e}function p(i){const t=r.useContext(s);if(!t)throw new Error("usePluginContext must be used within a PluginContextProvider");if(!t.connectionId||!t.connection||!t.toolCaller)throw new Error("usePluginContext requires a valid connection. Use { partial: true } in empty state components.");return t}r.createContext(null);export{x as P,p as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as C,c as T,j as t}from"./index-
|
|
1
|
+
import{r as C,c as T,j as t}from"./index-Chdo1wOf.js";import{I as L}from"./input-C2bYHqSZ.js";import{S as _,a as $,b as V,c as z}from"./index-6Tp9fsVX.js";import{c as S}from"./button-BlFVi9O-.js";import{i as I}from"./SearchMd-CdY2Qz31.js";const D=({size:l=24,color:e="currentColor",...s})=>C.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},C.createElement("path",{d:"m22.7 13.5-2-2-2 2M21 12a9 9 0 1 1-1.245-4.57M12 7v5l3 2"}));D.displayName="ClockRewind";const E=({size:l=24,color:e="currentColor",...s})=>C.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},C.createElement("path",{d:"m10 15-3.075 3.114c-.43.434-.644.651-.828.666a.5.5 0 0 1-.421-.172c-.12-.14-.12-.446-.12-1.056v-1.56c0-.548-.449-.944-.99-1.024v0a3 3 0 0 1-2.534-2.533C2 12.219 2 11.96 2 11.445V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h7.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 4.28 19 5.12 19 6.8V11m0 11-2.176-1.513c-.306-.213-.46-.32-.626-.395a2.002 2.002 0 0 0-.462-.145c-.18-.033-.367-.033-.74-.033H13.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C10 18.394 10 17.834 10 16.714V14.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C11.52 11 12.08 11 13.2 11h5.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 12.52 22 13.08 22 14.2v2.714c0 .932 0 1.398-.152 1.766a2 2 0 0 1-1.083 1.082c-.367.152-.833.152-1.765.152V22Z"}));E.displayName="MessageChatSquare";function H(l){const e=T.c(24),{threads:s,activeThreadId:i,onThreadSelect:o,onClose:r,showHeader:c,showBackButton:w}=l,d=c===void 0?!0:c,n=w===void 0?!1:w,[a,k]=C.useState("");let y;e[0]!==a||e[1]!==s?(y=a.trim()?s.filter(h=>(h.title||"New chat").toLowerCase().includes(a.toLowerCase())):s,e[0]=a,e[1]=s,e[2]=y):y=e[2];const v=y;let f;e[3]!==r||e[4]!==o?(f=h=>{o(h),r&&r()},e[3]=r,e[4]=o,e[5]=f):f=e[5];const b=f;let x;e[6]!==r||e[7]!==n||e[8]!==d?(x=d&&t.jsxs("div",{className:"h-12 px-4 flex items-center justify-between border-b shrink-0",children:[t.jsx("span",{className:"text-sm font-medium",children:"Chat History"}),n&&t.jsx("button",{type:"button",onClick:r,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Back to chat"})]}),e[6]=r,e[7]=n,e[8]=d,e[9]=x):x=e[9];let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=S("px-3 py-3 border-b","shrink-0"),e[10]=g):g=e[10];let N;e[11]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(I,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[11]=N):N=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=h=>k(h.target.value),e[12]=u):u=e[12];let m;e[13]!==a?(m=t.jsx("div",{className:g,children:t.jsxs("div",{className:"relative",children:[N,t.jsx(L,{type:"text",placeholder:"Search conversations...",value:a,onChange:u,className:"pl-9 h-9 text-sm"})]})}),e[13]=a,e[14]=m):m=e[14];let p;e[15]!==i||e[16]!==v||e[17]!==b||e[18]!==a?(p=t.jsx("div",{className:"flex-1 overflow-y-auto",children:v.length===0?t.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-12 px-4 text-center",children:[t.jsx("div",{className:"size-12 rounded-full bg-muted/50 flex items-center justify-center",children:t.jsx(E,{size:24,className:"text-muted-foreground"})}),t.jsxs("div",{className:"space-y-1",children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:a?"No results found":"No conversations yet"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:a?"Try a different search term":"Start a new chat to see your history here"})]})]}):t.jsx("div",{className:"flex flex-col py-2",children:v.map(h=>{const B=h.id===i;return t.jsx("button",{type:"button",onClick:()=>b(h.id),className:S("flex items-center gap-3 px-4 py-3 text-left transition-colors hover:bg-accent/50",B&&"bg-accent/50"),children:t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:S("text-sm truncate",B?"font-medium text-foreground":"text-muted-foreground"),children:h.title||"New chat"}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:new Date(h.updated_at).toLocaleDateString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})})]})},h.id)})})}),e[15]=i,e[16]=v,e[17]=b,e[18]=a,e[19]=p):p=e[19];let j;return e[20]!==p||e[21]!==x||e[22]!==m?(j=t.jsxs(t.Fragment,{children:[x,m,p]}),e[20]=p,e[21]=x,e[22]=m,e[23]=j):j=e[23],j}function q(l){const e=T.c(9),{open:s,onOpenChange:i,threads:o,activeThreadId:r,onThreadSelect:c}=l;let w;e[0]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(_,{className:"h-12 px-4 flex flex-row items-center justify-between border-b shrink-0",children:t.jsx($,{className:"text-sm font-medium",children:"Chat History"})}),e[0]=w):w=e[0];let d;e[1]!==r||e[2]!==c||e[3]!==o?(d=t.jsxs(V,{side:"right",className:"w-[320px] sm:w-[380px] p-0 flex flex-col",children:[w,t.jsx(H,{threads:o,activeThreadId:r,onThreadSelect:c,showHeader:!1})]}),e[1]=r,e[2]=c,e[3]=o,e[4]=d):d=e[4];let n;return e[5]!==i||e[6]!==s||e[7]!==d?(n=t.jsx(z,{open:s,onOpenChange:i,children:d}),e[5]=i,e[6]=s,e[7]=d,e[8]=n):n=e[8],n}function F(l){const e=T.c(5),{threads:s,activeThreadId:i,onThreadSelect:o,onClose:r}=l;let c;return e[0]!==i||e[1]!==r||e[2]!==o||e[3]!==s?(c=t.jsx("div",{className:"flex flex-col h-full w-full bg-background",children:t.jsx(H,{threads:s,activeThreadId:i,onThreadSelect:o,onClose:r,showBackButton:!0})}),e[0]=i,e[1]=r,e[2]=o,e[3]=s,e[4]=c):c=e[4],c}function O(l){const e=T.c(22),{text:s,className:i,speed:o}=l,r=i===void 0?"":i,c=o===void 0?30:o,[w,d]=C.useState(!1),n=s.length/c*1e3,a=s.length,k=`${s.length}ch`;let y;e[0]!==n?(y=()=>{d(!1);const h=setTimeout(()=>{d(!0)},n);return()=>clearTimeout(h)},e[0]=n,e[1]=y):y=e[1];let v;e[2]!==n||e[3]!==s?(v=[s,n],e[2]=n,e[3]=s,e[4]=v):v=e[4],C.useEffect(y,v);let f;e[5]!==r?(f=S(r,"block overflow-hidden inline-flex"),e[5]=r,e[6]=f):f=e[6];const b=`${n}ms`;let x;e[7]!==k||e[8]!==a||e[9]!==b?(x={"--typewriter-duration":b,"--typewriter-steps":a,"--typewriter-max-width":k},e[7]=k,e[8]=a,e[9]=b,e[10]=x):x=e[10];const g=x,N=w&&"truncate";let u;e[11]!==N?(u=S("typewriter-text",N),e[11]=N,e[12]=u):u=e[12];let m;e[13]!==u||e[14]!==s?(m=t.jsx("span",{className:u,children:s}),e[13]=u,e[14]=s,e[15]=m):m=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("style",{children:`
|
|
2
2
|
.typewriter-text {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
width: 0;
|