@decocms/mesh 2.130.0 → 2.131.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-B5HluIO3.js → AlertCircle-DMi123Hf.js} +1 -1
- package/dist/client/assets/{AlertOctagon-DLDnfSxq.js → AlertOctagon-CCKH4Uc0.js} +1 -1
- package/dist/client/assets/AlignLeft-QRMuLxyY.js +1 -0
- package/dist/client/assets/{ArrowDown-BzJ1vFPJ.js → ArrowDown-Dm6K3M_w.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DCnfi4gY.js → ArrowLeft-C1YvpVtK.js} +1 -1
- package/dist/client/assets/{ArrowUp-u6rq77eg.js → ArrowUp-DGKREoz7.js} +1 -1
- package/dist/client/assets/{Check-BLsa6Dp0.js → Check-DbjhVroq.js} +1 -1
- package/dist/client/assets/{CheckCircle-C896qa_4.js → CheckCircle-zSYJyE2o.js} +1 -1
- package/dist/client/assets/{CheckDone01-DyLMxeZH.js → CheckDone01-DDiaEWe6.js} +1 -1
- package/dist/client/assets/{CheckVerified02-1buQCuAU.js → CheckVerified02-C2ByNW2Z.js} +1 -1
- package/dist/client/assets/{ChevronDown-DVvRSZbO.js → ChevronDown-BfnyO-f-.js} +1 -1
- package/dist/client/assets/{ChevronRight-D35EN1KP.js → ChevronRight-LHJ8rwy-.js} +1 -1
- package/dist/client/assets/{Clock-CdVNfxF9.js → Clock-6CL36KIE.js} +1 -1
- package/dist/client/assets/{Code01-DChqD2bN.js → Code01-CYvfolYO.js} +1 -1
- package/dist/client/assets/{Container-Dp-HDyo2.js → Container-ry4Xw9xr.js} +1 -1
- package/dist/client/assets/{Copy01-CnJbZgtN.js → Copy01-D-8l_DMV.js} +1 -1
- package/dist/client/assets/{Dataflow03-BitSjF7Q.js → Dataflow03-DQXIoZvf.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-Z_Qp5Vin.js → DotsHorizontal-C9uL-hbM.js} +1 -1
- package/dist/client/assets/{DotsVertical-B16xdrDF.js → DotsVertical-k4TBK1r6.js} +1 -1
- package/dist/client/assets/{Download01-D_DIAPke.js → Download01-CgfyUwU5.js} +1 -1
- package/dist/client/assets/{Edit01-B658of-t.js → Edit01-AKDBiUSO.js} +1 -1
- package/dist/client/assets/{Eye-CYnIw-SN.js → Eye-gghEeRfr.js} +1 -1
- package/dist/client/assets/{File02-CHIjhcG6.js → File02-CEjpsnYD.js} +1 -1
- package/dist/client/assets/{File06-CVRi_0gi.js → File06-UqhuGICV.js} +1 -1
- package/dist/client/assets/{FilterLines-DDr56AOU.js → FilterLines-B8t_9-Z3.js} +1 -1
- package/dist/client/assets/{Globe01-UCeXtqE1.js → Globe01-Bl6eyakG.js} +1 -1
- package/dist/client/assets/{Globe02-Byh3m_ui.js → Globe02-Cxhnprjc.js} +1 -1
- package/dist/client/assets/{Grid01-rxOSnLNN.js → Grid01-C539gpzb.js} +1 -1
- package/dist/client/assets/{Hash02-C4CcmK6g.js → Hash02-4mnfA3dI.js} +1 -1
- package/dist/client/assets/{Home02-mrr2txUf.js → Home02-tLj3R-tD.js} +1 -1
- package/dist/client/assets/{Image01-QajO_doQ.js → Image01-6PD7bEds.js} +1 -1
- package/dist/client/assets/{Inbox01-CAyLyUGs.js → Inbox01-B5Fc7oRA.js} +1 -1
- package/dist/client/assets/{InfoCircle-BU-3deyT.js → InfoCircle-SnyWDres.js} +1 -1
- package/dist/client/assets/{Key01-BrK_QOJr.js → Key01-Dpc_Suzw.js} +1 -1
- package/dist/client/assets/{LinkExternal01-D0ySMlz2.js → LinkExternal01-CbLsiRMn.js} +1 -1
- package/dist/client/assets/{List-IhyiQnaM.js → List-C14SKrVB.js} +1 -1
- package/dist/client/assets/{Loading01-CsfvkbwN.js → Loading01-iCpUJopy.js} +1 -1
- package/dist/client/assets/{Lock01-q0zwnZYS.js → Lock01-CrXE51xJ.js} +1 -1
- package/dist/client/assets/{Play-SjpFEK2t.js → Play-BtkaH_yf.js} +1 -1
- package/dist/client/assets/{Plus-Bu2lcrFj.js → Plus-Cy7J9WUI.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-D1gKEPJg.js → RefreshCcw01-ClpY_BRV.js} +1 -1
- package/dist/client/assets/{Rows03-Cw5fJ9ZD.js → Rows03-DxEriXmU.js} +1 -1
- package/dist/client/assets/{Save01-BlXHOOUu.js → Save01-wZYw2zxY.js} +1 -1
- package/dist/client/assets/{SearchMd-BYNjNi6G.js → SearchMd-BuUjumBL.js} +1 -1
- package/dist/client/assets/{Settings01-Chj-u0vw.js → Settings01-CK_34JoM.js} +1 -1
- package/dist/client/assets/{Shield01-BXEWKkuq.js → Shield01-JSaU7Wxh.js} +1 -1
- package/dist/client/assets/{Terminal-DxVYbzVO.js → Terminal-BKcGepp-.js} +1 -1
- package/dist/client/assets/{Trash01-BzIbN_if.js → Trash01-CT5g4zaW.js} +1 -1
- package/dist/client/assets/{Upload01-BgkchdJF.js → Upload01-DHrINUTF.js} +1 -1
- package/dist/client/assets/{Users03-D53eD1vq.js → Users03-DNCG18us.js} +1 -1
- package/dist/client/assets/{X-DHjK9PDN.js → X-D4P057xM.js} +1 -1
- package/dist/client/assets/{XCircle-z2ZmsW0F.js → XCircle-C8g3hIQt.js} +1 -1
- package/dist/client/assets/{XClose-3tA4ra4j.js → XClose-Crqhw3J7.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-mkQa7W_h.js → agent-connections-preview-C213VWnS.js} +1 -1
- package/dist/client/assets/agent-detail-B9z3tpd6.js +2 -0
- package/dist/client/assets/{agents-2tgZRPGa.js → agents-DMIkV4h2.js} +1 -1
- package/dist/client/assets/{alert-dialog-DUAKkVAq.js → alert-dialog-31vAifTK.js} +2 -2
- package/dist/client/assets/{auth-catchall-DV3Iqc3Q.js → auth-catchall-BtHERDJi.js} +1 -1
- package/dist/client/assets/{avatar-CH22spOE.js → avatar-BsiGNuUz.js} +1 -1
- package/dist/client/assets/{badge-DRjYdqbX.js → badge-DJljGfSq.js} +1 -1
- package/dist/client/assets/{binder-rpVFRee0.js → binder-D8Bh9Fm3.js} +1 -1
- package/dist/client/assets/{breadcrumb-KjJWdRpb.js → breadcrumb-iMcSeqrc.js} +1 -1
- package/dist/client/assets/{card-BkNoFHpx.js → card-CELBcYXV.js} +1 -1
- package/dist/client/assets/{chart-CQCEgLna.js → chart-B4Mmg1Q-.js} +1 -1
- package/dist/client/assets/{checkbox-By3bAdh7.js → checkbox-QWODOgoz.js} +1 -1
- package/dist/client/assets/{circle-alert-ljj5FwIc.js → circle-alert-B6D-TDq-.js} +1 -1
- package/dist/client/assets/{collection-detail-EDVIxYBM.js → collection-detail-CbSjrCNd.js} +3 -3
- package/dist/client/assets/{collection-search-C_OMYxZl.js → collection-search-DzqDMmsG.js} +1 -1
- package/dist/client/assets/{collection-tab-B07wbIZz.js → collection-tab-DUB7egyl.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-l5klS4Y7.js → collection-table-wrapper-DBwx2gIx.js} +1 -1
- package/dist/client/assets/{collection-tabs-9ADp-6pz.js → collection-tabs-BqTpXxpM.js} +1 -1
- package/dist/client/assets/{command-Uh-geTua.js → command-Cnc164rC.js} +1 -1
- package/dist/client/assets/{connect-CxvZe6pe.js → connect-DlrcB0Oq.js} +1 -1
- package/dist/client/assets/{connection-card-BeIb5gxR.js → connection-card-BANozpxC.js} +1 -1
- package/dist/client/assets/connection-detail-DaG6QB_F.js +1 -0
- package/dist/client/assets/{connections-cl3JMAjX.js → connections-BvmeyXXC.js} +1 -1
- package/dist/client/assets/{constants-CK6_mNWE.js → constants-BI1zDvDn.js} +1 -1
- package/dist/client/assets/constants-CkBtayzt.js +1 -0
- package/dist/client/assets/context-zCxbj6li.js +23 -0
- package/dist/client/assets/{create-organization-dialog-r-SCzyV8.js → create-organization-dialog-Dpd1ywrN.js} +1 -1
- package/dist/client/assets/{create-project-dialog-BhUKTQbH.js → create-project-dialog-DChymebi.js} +1 -1
- package/dist/client/assets/{dialog-DLTkBtv6.js → dialog-Do03H7yN.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Rs1iwpA7.js → dropdown-menu-Ba58pGV8.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DsVAEvvX.js → dynamic-plugin-layout-CHonNfvK.js} +1 -1
- package/dist/client/assets/{editable-thread-title-C4YmJmVC.js → editable-thread-title-CVmwgHHg.js} +1 -1
- package/dist/client/assets/{empty-state-DS4eEQ1G.js → empty-state-1scxmZs8.js} +1 -1
- package/dist/client/assets/{env-vars-editor-D-5q9agv.js → env-vars-editor-CCegTaip.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CYMN0D5n.js → extract-connection-data-BKQXvltb.js} +1 -1
- package/dist/client/assets/{file-browser-CrNWmsx8.js → file-browser-EjfRK6mg.js} +2 -2
- package/dist/client/assets/{form-CqZTFrgI.js → form-dXW_I1ph.js} +1 -1
- package/dist/client/assets/{grid-view-MhHnpGdx.js → grid-view-MJdYyMFP.js} +1 -1
- package/dist/client/assets/{home-B0uJxFQa.js → home-ByufY4Sy.js} +1 -1
- package/dist/client/assets/{index-jc9pWxLI.js → index-6d87pWdr.js} +1 -1
- package/dist/client/assets/{index-C3NRRye7.js → index-B5qImc8v.js} +1 -1
- package/dist/client/assets/{index-m9GkCLcf.js → index-BNpuO_G1.js} +1 -1
- package/dist/client/assets/{index-C2G8QaMi.js → index-CEqBoYmq.js} +1 -1
- package/dist/client/assets/index-DgSgbJcy.js +1 -0
- package/dist/client/assets/{index-fzPVAN-9.js → index-EJ96grwY.js} +1 -1
- package/dist/client/assets/{index-COF-ZUER.js → index-SQyrFbfm.js} +3 -3
- package/dist/client/assets/{index-BRG6oG9k.js → index-ficQ3eqW.js} +1 -1
- package/dist/client/assets/{index-C7G5_i2M.js → index-wWGDtNCU.js} +1 -1
- package/dist/client/assets/index-yxYGVp8v.css +1 -0
- package/dist/client/assets/{infiniteQueryObserver-DMR1gRjq.js → infiniteQueryObserver-VRNdHjKN.js} +1 -1
- package/dist/client/assets/{input-KmmBtQqC.js → input-C5Rjbbp-.js} +1 -1
- package/dist/client/assets/{integration-icon-C7zTMltL.js → integration-icon-uSS8hUch.js} +1 -1
- package/dist/client/assets/{label-LyCIIy-s.js → label-cKQmhewm.js} +1 -1
- package/dist/client/assets/{layout-B0qVoorz.js → layout-8lg7tiiD.js} +1 -1
- package/dist/client/assets/{localstorage-keys-YdXjcRD_.js → localstorage-keys-seNkjiQl.js} +1 -1
- package/dist/client/assets/{login-BmAlf_7g.js → login-V1gS5lDI.js} +1 -1
- package/dist/client/assets/{markdown-BAPLlhtH.js → markdown-D8FrWPff.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BkicgfKB.js → mcp-oauth-C6xkwIb-.js} +1 -1
- package/dist/client/assets/{mcp-server-card-XSZNkWji.js → mcp-server-card-Ok_qzLQz.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-BCBzFOJ0.js → mcp-server-detail-BtBTCD2n.js} +2 -2
- package/dist/client/assets/{members-BkMxHVNh.js → members-BldiVXed.js} +1 -1
- package/dist/client/assets/monitoring-dashboard-edit-CXmCF6gC.js +1 -0
- package/dist/client/assets/{monitoring-dashboard-view-lquWquwa.js → monitoring-dashboard-view-DePoovSq.js} +1 -1
- package/dist/client/assets/{monitoring-zK5Os_Xd.js → monitoring-dvmC8TGS.js} +1 -1
- package/dist/client/assets/{oauth-callback-C0aSTeSz.js → oauth-callback-Dn1LI5IG.js} +1 -1
- package/dist/client/assets/page-BYmiWKDq.js +1 -0
- package/dist/client/assets/{page-C4z6jnWr.js → page-Dm5atWis.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CN28OBKP.js → plugin-empty-state-CKIjx-eV.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-Cr3OcLQb.js → plugin-empty-state-ohIMZv0D.js} +1 -1
- package/dist/client/assets/{plugin-header-DEQ_2BT-.js → plugin-header-BS18HAyY.js} +1 -1
- package/dist/client/assets/{plugin-header-BAd4TVRB.js → plugin-header-HYeNHyTe.js} +1 -1
- package/dist/client/assets/popover-z5frSt2L.js +1 -0
- package/dist/client/assets/{project-layout-CXqCD1ie.js → project-layout-BxTuIFi3.js} +1 -1
- package/dist/client/assets/{projects-list-DUfj_GU1.js → projects-list-C9KK2i4R.js} +1 -1
- package/dist/client/assets/{ranking-layout-CWWU1E-T.js → ranking-layout-Bm0LpG6g.js} +1 -1
- package/dist/client/assets/{readme-viewer-C3CH5PkA.js → readme-viewer-CZkPjhWz.js} +1 -1
- package/dist/client/assets/{registry-layout-aJ6v5_rh.js → registry-layout-LCOaqMI2.js} +1 -1
- package/dist/client/assets/{registry-utils-DChzaAtg.js → registry-utils-B-2fbh-Z.js} +1 -1
- package/dist/client/assets/{reports-layout-Yf5wR5Pt.js → reports-layout-Bzgcy1UJ.js} +1 -1
- package/dist/client/assets/{reset-password-C92BZ_ME.js → reset-password-CHpr9oem.js} +1 -1
- package/dist/client/assets/{resizable-B-Qs4MnW.js → resizable-BYfQHaK6.js} +1 -1
- package/dist/client/assets/{save-actions-DA3NJYvU.js → save-actions-TgeLFbpe.js} +1 -1
- package/dist/client/assets/{scroll-area-BPz7jSkv.js → scroll-area-5Fho4sky.js} +4 -4
- package/dist/client/assets/{select-Dq9gmG1z.js → select-CizyN8VQ.js} +1 -1
- package/dist/client/assets/shell-layout-Bpq7Dlhv.js +3 -0
- package/dist/client/assets/{skeleton-DLBNN6aB.js → skeleton-C7JMree5.js} +1 -1
- package/dist/client/assets/{spinner-DXzEFrFF.js → spinner-YKb1hPOQ.js} +1 -1
- package/dist/client/assets/{store-invite-D0uFFASc.js → store-invite-D7ZEG5RE.js} +1 -1
- package/dist/client/assets/{switch-B4rwROhR.js → switch-CBcw97W5.js} +1 -1
- package/dist/client/assets/{table-kdwlUG2L.js → table-CXKu3mUr.js} +1 -1
- package/dist/client/assets/{tabs-BFDcCzl1.js → tabs-Dd98njLP.js} +1 -1
- package/dist/client/assets/tasks-BAG_wO4h.js +1 -0
- package/dist/client/assets/{textarea-DC-WMIl6.js → textarea-P1Iq_yoU.js} +1 -1
- package/dist/client/assets/{time-range-picker-t4Dh_ak4.js → time-range-picker-hvQrVHK9.js} +1 -1
- package/dist/client/assets/{toggle-group-VR-1H49C.js → toggle-group-Cbof6NG4.js} +1 -1
- package/dist/client/assets/{tools-list-BMIuQ3o9.js → tools-list-maCu2q3m.js} +1 -1
- package/dist/client/assets/{tooltip-B737AXap.js → tooltip-B-cok5ra.js} +1 -1
- package/dist/client/assets/{topbar-portal-BQe1VIDk.js → topbar-portal-B3nTFI9t.js} +1 -1
- package/dist/client/assets/{types-WdszXmGC.js → types-B4OO-WrM.js} +1 -1
- package/dist/client/assets/{use-binding-DM-esmtd.js → use-binding-8GNaEhUS.js} +1 -1
- package/dist/client/assets/{use-connection-aD8fkp_8.js → use-connection-CM6laORR.js} +1 -1
- package/dist/client/assets/{use-copy-DlnJ3efF.js → use-copy-B44PaF7i.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CyNVcUwg.js → use-create-virtual-mcp-CfjGvHYs.js} +1 -1
- package/dist/client/assets/{use-deco-chat-open-Di4IIHjn.js → use-deco-chat-open-3TeoXCmL.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-DdkeT6p2.js → use-install-from-registry-DcOjSwGG.js} +1 -1
- package/dist/client/assets/{use-list-state-HK1l7uw0.js → use-list-state-DV75afxy.js} +1 -1
- package/dist/client/assets/{use-llm-D7mfyv_H.js → use-llm-CVhayDor.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-D4Kkewqh.js → use-mcp-prompts-ujC0seLu.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C7emNghr.js → use-mcp-tools-BLFUT4fz.js} +1 -1
- package/dist/client/assets/{use-members-D87KrEWH.js → use-members-mFh2K6yp.js} +1 -1
- package/dist/client/assets/{use-mobile-Cm0g_xnU.js → use-mobile-DdeKUhAR.js} +1 -1
- package/dist/client/assets/{use-project-C09s5HF9.js → use-project-0ih1xISt.js} +1 -1
- package/dist/client/assets/{use-settings-modal-CTu56ywY.js → use-settings-modal-CpLTH5Bd.js} +1 -1
- package/dist/client/assets/{use-view-mode-JvLsfDEL.js → use-view-mode-DCV45z7u.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Bblywqb_.js → use-virtual-mcp-BvS32srI.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D9qlp_R9.js +1 -0
- package/dist/client/assets/{useMutation-N686vlmR.js → useMutation-DW2RCqOf.js} +1 -1
- package/dist/client/assets/useQuery-Dn_bA-JU.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-Dj-vji2c.js +1 -0
- package/dist/client/assets/{workflow-DzguMIiA.js → workflow-CvVvKDcn.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +4 -4
- package/dist/server/migrate.js +3 -3
- package/dist/server/server.js +4 -4
- package/package.json +1 -1
- package/dist/client/assets/Tool01-Chydq5Pa.js +0 -1
- package/dist/client/assets/agent-detail-DJmBDWW3.js +0 -2
- package/dist/client/assets/connection-detail-BfFG0a91.js +0 -1
- package/dist/client/assets/constants-C66xuD6u.js +0 -1
- package/dist/client/assets/context-Cq4v7gsg.js +0 -23
- package/dist/client/assets/index-BcDQ75Aq.css +0 -1
- package/dist/client/assets/index-C6FlOd-3.js +0 -1
- package/dist/client/assets/monitoring-dashboard-edit-DRNIcXD8.js +0 -1
- package/dist/client/assets/page-CrfVaGUv.js +0 -1
- package/dist/client/assets/popover-mJHcGIrQ.js +0 -1
- package/dist/client/assets/shell-layout-BYhmiLBm.js +0 -3
- package/dist/client/assets/tasks-BIj2GMDH.js +0 -1
- package/dist/client/assets/useInfiniteQuery-C7pHrKFI.js +0 -1
- package/dist/client/assets/useQuery-Jk2FsFxb.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CqwwV5Gr.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,I as k,bN as $,j as d,H as j,D as rt,G as Ne,aK as st,aC as be,aL as lt,M as P,aM as at,a2 as _e,aN as Ee,bO as it,W as ct,bP as dt,aO as ut,aR as pt,aP as ft,aS as mt,aT as ht,U as vt,aQ as gt,aU as xt,aV as St,c as ee,v as oe}from"./index-COF-ZUER.js";import{V as wt}from"./index-jc9pWxLI.js";import{i as Ct}from"./Check-BLsa6Dp0.js";import{t as Re}from"./ChevronDown-DVvRSZbO.js";function Pe(n,[e,t]){return Math.min(t,Math.max(e,n))}var yt=[" ","Enter","ArrowUp","ArrowDown"],It=[" ","Enter"],Q="Select",[de,ue,bt]=it(Q),[ne]=vt(Q,[bt,Ee]),pe=Ee(),[Tt,G]=ne(Q),[Nt,Pt]=ne(Q),je=n=>{const{__scopeSelect:e,children:t,open:o,defaultOpen:r,onOpenChange:i,value:s,defaultValue:l,onValueChange:a,dir:u,name:h,autoComplete:g,disabled:b,required:w,form:S}=n,p=pe(e),[v,C]=c.useState(null),[m,x]=c.useState(null),[U,M]=c.useState(!1),re=rt(u),[_,O]=Ne({prop:o,defaultProp:r??!1,onChange:i,caller:Q}),[W,q]=Ne({prop:s,defaultProp:l,onChange:a,caller:Q}),L=c.useRef(null),B=v?S||!!v.closest("form"):!0,[F,V]=c.useState(new Set),H=Array.from(F).map(E=>E.props.value).join(";");return d.jsx(st,{...p,children:d.jsxs(Tt,{required:w,scope:e,trigger:v,onTriggerChange:C,valueNode:m,onValueNodeChange:x,valueNodeHasChildren:U,onValueNodeHasChildrenChange:M,contentId:be(),value:W,onValueChange:q,open:_,onOpenChange:O,dir:re,triggerPointerDownPosRef:L,disabled:b,children:[d.jsx(de.Provider,{scope:e,children:d.jsx(Nt,{scope:n.__scopeSelect,onNativeOptionAdd:c.useCallback(E=>{V(D=>new Set(D).add(E))},[]),onNativeOptionRemove:c.useCallback(E=>{V(D=>{const z=new Set(D);return z.delete(E),z})},[]),children:t})}),B?d.jsxs(Je,{"aria-hidden":!0,required:w,tabIndex:-1,name:h,autoComplete:g,value:W,onChange:E=>q(E.target.value),disabled:b,form:S,children:[W===void 0?d.jsx("option",{value:""}):null,Array.from(F)]},H):null]})})};je.displayName=Q;var Me="SelectTrigger",Ae=c.forwardRef((n,e)=>{const{__scopeSelect:t,disabled:o=!1,...r}=n,i=pe(t),s=G(Me,t),l=s.disabled||o,a=k(e,s.onTriggerChange),u=ue(t),h=c.useRef("touch"),[g,b,w]=tt(p=>{const v=u().filter(x=>!x.disabled),C=v.find(x=>x.value===s.value),m=ot(v,p,C);m!==void 0&&s.onValueChange(m.value)}),S=p=>{l||(s.onOpenChange(!0),w()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return d.jsx(lt,{asChild:!0,...i,children:d.jsx(j.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":et(s.value)?"":void 0,...r,ref:a,onClick:P(r.onClick,p=>{p.currentTarget.focus(),h.current!=="mouse"&&S(p)}),onPointerDown:P(r.onPointerDown,p=>{h.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(S(p),p.preventDefault())}),onKeyDown:P(r.onKeyDown,p=>{const v=g.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&b(p.key),!(v&&p.key===" ")&&yt.includes(p.key)&&(S(),p.preventDefault())})})})});Ae.displayName=Me;var Oe="SelectValue",De=c.forwardRef((n,e)=>{const{__scopeSelect:t,className:o,style:r,children:i,placeholder:s="",...l}=n,a=G(Oe,t),{onValueNodeHasChildrenChange:u}=a,h=i!==void 0,g=k(e,a.onValueNodeChange);return $(()=>{u(h)},[u,h]),d.jsx(j.span,{...l,ref:g,style:{pointerEvents:"none"},children:et(a.value)?d.jsx(d.Fragment,{children:s}):i})});De.displayName=Oe;var _t="SelectIcon",ke=c.forwardRef((n,e)=>{const{__scopeSelect:t,children:o,...r}=n;return d.jsx(j.span,{"aria-hidden":!0,...r,ref:e,children:o||"▼"})});ke.displayName=_t;var Et="SelectPortal",Le=n=>d.jsx(at,{asChild:!0,...n});Le.displayName=Et;var J="SelectContent",Be=c.forwardRef((n,e)=>{const t=G(J,n.__scopeSelect),[o,r]=c.useState();if($(()=>{r(new DocumentFragment)},[]),!t.open){const i=o;return i?_e.createPortal(d.jsx(Ve,{scope:n.__scopeSelect,children:d.jsx(de.Slot,{scope:n.__scopeSelect,children:d.jsx("div",{children:n.children})})}),i):null}return d.jsx(He,{...n,ref:e})});Be.displayName=J;var A=10,[Ve,Y]=ne(J),Rt="SelectContentImpl",jt=gt("SelectContent.RemoveScroll"),He=c.forwardRef((n,e)=>{const{__scopeSelect:t,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:i,onPointerDownOutside:s,side:l,sideOffset:a,align:u,alignOffset:h,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:S,hideWhenDetached:p,avoidCollisions:v,...C}=n,m=G(J,t),[x,U]=c.useState(null),[M,re]=c.useState(null),_=k(e,f=>U(f)),[O,W]=c.useState(null),[q,L]=c.useState(null),B=ue(t),[F,V]=c.useState(!1),H=c.useRef(!1);c.useEffect(()=>{if(x)return ut(x)},[x]),pt();const E=c.useCallback(f=>{const[T,...R]=B().map(N=>N.ref.current),[y]=R.slice(-1),I=document.activeElement;for(const N of f)if(N===I||(N?.scrollIntoView({block:"nearest"}),N===T&&M&&(M.scrollTop=0),N===y&&M&&(M.scrollTop=M.scrollHeight),N?.focus(),document.activeElement!==I))return},[B,M]),D=c.useCallback(()=>E([O,x]),[E,O,x]);c.useEffect(()=>{F&&D()},[F,D]);const{onOpenChange:z,triggerPointerDownPosRef:K}=m;c.useEffect(()=>{if(x){let f={x:0,y:0};const T=y=>{f={x:Math.abs(Math.round(y.pageX)-(K.current?.x??0)),y:Math.abs(Math.round(y.pageY)-(K.current?.y??0))}},R=y=>{f.x<=10&&f.y<=10?y.preventDefault():x.contains(y.target)||z(!1),document.removeEventListener("pointermove",T),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",T),document.addEventListener("pointerup",R,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",T),document.removeEventListener("pointerup",R,{capture:!0})}}},[x,z,K]),c.useEffect(()=>{const f=()=>z(!1);return window.addEventListener("blur",f),window.addEventListener("resize",f),()=>{window.removeEventListener("blur",f),window.removeEventListener("resize",f)}},[z]);const[fe,ae]=tt(f=>{const T=B().filter(I=>!I.disabled),R=T.find(I=>I.ref.current===document.activeElement),y=ot(T,f,R);y&&setTimeout(()=>y.ref.current.focus())}),me=c.useCallback((f,T,R)=>{const y=!H.current&&!R;(m.value!==void 0&&m.value===T||y)&&(W(f),y&&(H.current=!0))},[m.value]),he=c.useCallback(()=>x?.focus(),[x]),te=c.useCallback((f,T,R)=>{const y=!H.current&&!R;(m.value!==void 0&&m.value===T||y)&&L(f)},[m.value]),ie=o==="popper"?Se:ze,se=ie===Se?{side:l,sideOffset:a,align:u,alignOffset:h,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:S,hideWhenDetached:p,avoidCollisions:v}:{};return d.jsx(Ve,{scope:t,content:x,viewport:M,onViewportChange:re,itemRefCallback:me,selectedItem:O,onItemLeave:he,itemTextRefCallback:te,focusSelectedItem:D,selectedItemText:q,position:o,isPositioned:F,searchRef:fe,children:d.jsx(ft,{as:jt,allowPinchZoom:!0,children:d.jsx(mt,{asChild:!0,trapped:m.open,onMountAutoFocus:f=>{f.preventDefault()},onUnmountAutoFocus:P(r,f=>{m.trigger?.focus({preventScroll:!0}),f.preventDefault()}),children:d.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:d.jsx(ie,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:f=>f.preventDefault(),...C,...se,onPlaced:()=>V(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:P(C.onKeyDown,f=>{const T=f.ctrlKey||f.altKey||f.metaKey;if(f.key==="Tab"&&f.preventDefault(),!T&&f.key.length===1&&ae(f.key),["ArrowUp","ArrowDown","Home","End"].includes(f.key)){let y=B().filter(I=>!I.disabled).map(I=>I.ref.current);if(["ArrowUp","End"].includes(f.key)&&(y=y.slice().reverse()),["ArrowUp","ArrowDown"].includes(f.key)){const I=f.target,N=y.indexOf(I);y=y.slice(N+1)}setTimeout(()=>E(y)),f.preventDefault()}})})})})})})});He.displayName=Rt;var Mt="SelectItemAlignedPosition",ze=c.forwardRef((n,e)=>{const{__scopeSelect:t,onPlaced:o,...r}=n,i=G(J,t),s=Y(J,t),[l,a]=c.useState(null),[u,h]=c.useState(null),g=k(e,_=>h(_)),b=ue(t),w=c.useRef(!1),S=c.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:C,focusSelectedItem:m}=s,x=c.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&p&&v&&C){const _=i.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),W=i.valueNode.getBoundingClientRect(),q=C.getBoundingClientRect();if(i.dir!=="rtl"){const I=q.left-O.left,N=W.left-I,X=_.left-N,Z=_.width+X,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=Pe(N,[A,Math.max(A,ge-ve)]);l.style.minWidth=Z+"px",l.style.left=xe+"px"}else{const I=O.right-q.right,N=window.innerWidth-W.right-I,X=window.innerWidth-_.right-N,Z=_.width+X,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=Pe(N,[A,Math.max(A,ge-ve)]);l.style.minWidth=Z+"px",l.style.right=xe+"px"}const L=b(),B=window.innerHeight-A*2,F=p.scrollHeight,V=window.getComputedStyle(u),H=parseInt(V.borderTopWidth,10),E=parseInt(V.paddingTop,10),D=parseInt(V.borderBottomWidth,10),z=parseInt(V.paddingBottom,10),K=H+E+F+z+D,fe=Math.min(v.offsetHeight*5,K),ae=window.getComputedStyle(p),me=parseInt(ae.paddingTop,10),he=parseInt(ae.paddingBottom,10),te=_.top+_.height/2-A,ie=B-te,se=v.offsetHeight/2,f=v.offsetTop+se,T=H+E+f,R=K-T;if(T<=te){const I=L.length>0&&v===L[L.length-1].ref.current;l.style.bottom="0px";const N=u.clientHeight-p.offsetTop-p.offsetHeight,X=Math.max(ie,se+(I?he:0)+N+D),Z=T+X;l.style.height=Z+"px"}else{const I=L.length>0&&v===L[0].ref.current;l.style.top="0px";const X=Math.max(te,H+p.offsetTop+(I?me:0)+se)+R;l.style.height=X+"px",p.scrollTop=T-te+p.offsetTop}l.style.margin=`${A}px 0`,l.style.minHeight=fe+"px",l.style.maxHeight=B+"px",o?.(),requestAnimationFrame(()=>w.current=!0)}},[b,i.trigger,i.valueNode,l,u,p,v,C,i.dir,o]);$(()=>x(),[x]);const[U,M]=c.useState();$(()=>{u&&M(window.getComputedStyle(u).zIndex)},[u]);const re=c.useCallback(_=>{_&&S.current===!0&&(x(),m?.(),S.current=!1)},[x,m]);return d.jsx(Ot,{scope:t,contentWrapper:l,shouldExpandOnScrollRef:w,onScrollButtonChange:re,children:d.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:U},children:d.jsx(j.div,{...r,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});ze.displayName=Mt;var At="SelectPopperPosition",Se=c.forwardRef((n,e)=>{const{__scopeSelect:t,align:o="start",collisionPadding:r=A,...i}=n,s=pe(t);return d.jsx(xt,{...s,...i,ref:e,align:o,collisionPadding:r,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Se.displayName=At;var[Ot,Te]=ne(J,{}),we="SelectViewport",Ue=c.forwardRef((n,e)=>{const{__scopeSelect:t,nonce:o,...r}=n,i=Y(we,t),s=Te(we,t),l=k(e,i.onViewportChange),a=c.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),d.jsx(de.Slot,{scope:t,children:d.jsx(j.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:P(r.onScroll,u=>{const h=u.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:b}=s;if(b?.current&&g){const w=Math.abs(a.current-h.scrollTop);if(w>0){const S=window.innerHeight-A*2,p=parseFloat(g.style.minHeight),v=parseFloat(g.style.height),C=Math.max(p,v);if(C<S){const m=C+w,x=Math.min(S,m),U=m-x;g.style.height=x+"px",g.style.bottom==="0px"&&(h.scrollTop=U>0?U:0,g.style.justifyContent="flex-end")}}}a.current=h.scrollTop})})})]})});Ue.displayName=we;var We="SelectGroup",[Dt,kt]=ne(We),Lt=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n,r=be();return d.jsx(Dt,{scope:t,id:r,children:d.jsx(j.div,{role:"group","aria-labelledby":r,...o,ref:e})})});Lt.displayName=We;var Fe="SelectLabel",Bt=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n,r=kt(Fe,t);return d.jsx(j.div,{id:r.id,...o,ref:e})});Bt.displayName=Fe;var ce="SelectItem",[Vt,Ke]=ne(ce),$e=c.forwardRef((n,e)=>{const{__scopeSelect:t,value:o,disabled:r=!1,textValue:i,...s}=n,l=G(ce,t),a=Y(ce,t),u=l.value===o,[h,g]=c.useState(i??""),[b,w]=c.useState(!1),S=k(e,m=>a.itemRefCallback?.(m,o,r)),p=be(),v=c.useRef("touch"),C=()=>{r||(l.onValueChange(o),l.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(Vt,{scope:t,value:o,disabled:r,textId:p,isSelected:u,onItemTextChange:c.useCallback(m=>{g(x=>x||(m?.textContent??"").trim())},[]),children:d.jsx(de.ItemSlot,{scope:t,value:o,disabled:r,textValue:h,children:d.jsx(j.div,{role:"option","aria-labelledby":p,"data-highlighted":b?"":void 0,"aria-selected":u&&b,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...s,ref:S,onFocus:P(s.onFocus,()=>w(!0)),onBlur:P(s.onBlur,()=>w(!1)),onClick:P(s.onClick,()=>{v.current!=="mouse"&&C()}),onPointerUp:P(s.onPointerUp,()=>{v.current==="mouse"&&C()}),onPointerDown:P(s.onPointerDown,m=>{v.current=m.pointerType}),onPointerMove:P(s.onPointerMove,m=>{v.current=m.pointerType,r?a.onItemLeave?.():v.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:P(s.onPointerLeave,m=>{m.currentTarget===document.activeElement&&a.onItemLeave?.()}),onKeyDown:P(s.onKeyDown,m=>{a.searchRef?.current!==""&&m.key===" "||(It.includes(m.key)&&C(),m.key===" "&&m.preventDefault())})})})})});$e.displayName=ce;var le="SelectItemText",Ge=c.forwardRef((n,e)=>{const{__scopeSelect:t,className:o,style:r,...i}=n,s=G(le,t),l=Y(le,t),a=Ke(le,t),u=Pt(le,t),[h,g]=c.useState(null),b=k(e,C=>g(C),a.onItemTextChange,C=>l.itemTextRefCallback?.(C,a.value,a.disabled)),w=h?.textContent,S=c.useMemo(()=>d.jsx("option",{value:a.value,disabled:a.disabled,children:w},a.value),[a.disabled,a.value,w]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=u;return $(()=>(p(S),()=>v(S)),[p,v,S]),d.jsxs(d.Fragment,{children:[d.jsx(j.span,{id:a.textId,...i,ref:b}),a.isSelected&&s.valueNode&&!s.valueNodeHasChildren?_e.createPortal(i.children,s.valueNode):null]})});Ge.displayName=le;var Ye="SelectItemIndicator",qe=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n;return Ke(Ye,t).isSelected?d.jsx(j.span,{"aria-hidden":!0,...o,ref:e}):null});qe.displayName=Ye;var Ce="SelectScrollUpButton",Xe=c.forwardRef((n,e)=>{const t=Y(Ce,n.__scopeSelect),o=Te(Ce,n.__scopeSelect),[r,i]=c.useState(!1),s=k(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let l=function(){const u=a.scrollTop>0;i(u)};const a=t.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),r?d.jsx(Qe,{...n,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=t;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});Xe.displayName=Ce;var ye="SelectScrollDownButton",Ze=c.forwardRef((n,e)=>{const t=Y(ye,n.__scopeSelect),o=Te(ye,n.__scopeSelect),[r,i]=c.useState(!1),s=k(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let l=function(){const u=a.scrollHeight-a.clientHeight,h=Math.ceil(a.scrollTop)<u;i(h)};const a=t.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),r?d.jsx(Qe,{...n,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=t;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});Ze.displayName=ye;var Qe=c.forwardRef((n,e)=>{const{__scopeSelect:t,onAutoScroll:o,...r}=n,i=Y("SelectScrollButton",t),s=c.useRef(null),l=ue(t),a=c.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return c.useEffect(()=>()=>a(),[a]),$(()=>{l().find(h=>h.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),d.jsx(j.div,{"aria-hidden":!0,...r,ref:e,style:{flexShrink:0,...r.style},onPointerDown:P(r.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(o,50))}),onPointerMove:P(r.onPointerMove,()=>{i.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(o,50))}),onPointerLeave:P(r.onPointerLeave,()=>{a()})})}),Ht="SelectSeparator",zt=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n;return d.jsx(j.div,{"aria-hidden":!0,...o,ref:e})});zt.displayName=Ht;var Ie="SelectArrow",Ut=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n,r=pe(t),i=G(Ie,t),s=Y(Ie,t);return i.open&&s.position==="popper"?d.jsx(St,{...r,...o,ref:e}):null});Ut.displayName=Ie;var Wt="SelectBubbleInput",Je=c.forwardRef(({__scopeSelect:n,value:e,...t},o)=>{const r=c.useRef(null),i=k(o,r),s=ct(e);return c.useEffect(()=>{const l=r.current;if(!l)return;const a=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(a,"value").set;if(s!==e&&h){const g=new Event("change",{bubbles:!0});h.call(l,e),l.dispatchEvent(g)}},[s,e]),d.jsx(j.select,{...t,style:{...wt,...t.style},ref:i,defaultValue:e})});Je.displayName=Wt;function et(n){return n===""||n===void 0}function tt(n){const e=dt(n),t=c.useRef(""),o=c.useRef(0),r=c.useCallback(s=>{const l=t.current+s;e(l),(function a(u){t.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>a(""),1e3))})(l)},[e]),i=c.useCallback(()=>{t.current="",window.clearTimeout(o.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(o.current),[]),[t,r,i]}function ot(n,e,t){const r=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,i=t?n.indexOf(t):-1;let s=Ft(n,Math.max(i,0));r.length===1&&(s=s.filter(u=>u!==t));const a=s.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return a!==t?a:void 0}function Ft(n,e){return n.map((t,o)=>n[(e+o)%n.length])}var Kt=je,$t=Ae,Gt=De,Yt=ke,qt=Le,Xt=Be,Zt=Ue,Qt=$e,Jt=Ge,eo=qe,to=Xe,oo=Ze;const nt=({size:n=24,color:e="currentColor",...t})=>c.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},c.createElement("path",{d:"m18 15-6-6-6 6"}));nt.displayName="ChevronUp";function co(n){const e=ee.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=d.jsx(Kt,{"data-slot":"select",...t}),e[2]=t,e[3]=o):o=e[3],o}function uo(n){const e=ee.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=d.jsx(Gt,{"data-slot":"select-value",...t}),e[2]=t,e[3]=o):o=e[3],o}function po(n){const e=ee.c(13);let t,o,r,i;e[0]!==n?({className:o,size:i,children:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=i):(t=e[1],o=e[2],r=e[3],i=e[4]);const s=i===void 0?"default":i;let l;e[5]!==o?(l=oe("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]: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 hover:bg-accent hover:text-accent-foreground dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-lg border bg-transparent px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-10 data-[size=sm]:h-7 data-[size=xs]:h-7 data-[size=xs]:px-2.5 data-[size=xs]:py-1.5 data-[size=xs]:rounded-lg *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),e[5]=o,e[6]=l):l=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=d.jsx(Yt,{asChild:!0,children:d.jsx(Re,{className:"size-4 opacity-50"})}),e[7]=a):a=e[7];let u;return e[8]!==t||e[9]!==r||e[10]!==s||e[11]!==l?(u=d.jsxs($t,{"data-slot":"select-trigger","data-size":s,className:l,...r,children:[t,a]}),e[8]=t,e[9]=r,e[10]=s,e[11]=l,e[12]=u):u=e[12],u}function fo(n){const e=ee.c(25);let t,o,r,i,s;e[0]!==n?({className:o,children:t,position:i,hideScrollButtons:s,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=i,e[5]=s):(t=e[1],o=e[2],r=e[3],i=e[4],s=e[5]);const l=i===void 0?"popper":i,a=s===void 0?!1:s,u=l==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";let h;e[6]!==o||e[7]!==u?(h=oe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border shadow-md",u,o),e[6]=o,e[7]=u,e[8]=h):h=e[8];let g;e[9]!==a?(g=!a&&d.jsx(no,{}),e[9]=a,e[10]=g):g=e[10];const b=l==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";let w;e[11]!==b?(w=oe("p-1",b),e[11]=b,e[12]=w):w=e[12];let S;e[13]!==t||e[14]!==w?(S=d.jsx(Zt,{className:w,children:t}),e[13]=t,e[14]=w,e[15]=S):S=e[15];let p;e[16]!==a?(p=!a&&d.jsx(ro,{}),e[16]=a,e[17]=p):p=e[17];let v;return e[18]!==l||e[19]!==r||e[20]!==h||e[21]!==g||e[22]!==S||e[23]!==p?(v=d.jsx(qt,{children:d.jsxs(Xt,{"data-slot":"select-content",className:h,position:l,...r,children:[g,S,p]})}),e[18]=l,e[19]=r,e[20]=h,e[21]=g,e[22]=S,e[23]=p,e[24]=v):v=e[24],v}function mo(n){const e=ee.c(16);let t,o,r,i;e[0]!==n?({className:o,children:t,hideCheck:i,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=i):(t=e[1],o=e[2],r=e[3],i=e[4]);const s=i===void 0?!1:i;let l;e[5]!==o?(l=oe("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",o),e[5]=o,e[6]=l):l=e[6];let a;e[7]!==s?(a=!s&&d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(eo,{children:d.jsx(Ct,{className:"size-4"})})}),e[7]=s,e[8]=a):a=e[8];let u;e[9]!==t?(u=d.jsx(Jt,{children:t}),e[9]=t,e[10]=u):u=e[10];let h;return e[11]!==r||e[12]!==l||e[13]!==a||e[14]!==u?(h=d.jsxs(Qt,{"data-slot":"select-item",className:l,...r,children:[a,u]}),e[11]=r,e[12]=l,e[13]=a,e[14]=u,e[15]=h):h=e[15],h}function no(n){const e=ee.c(9);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=r):r=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=d.jsx(nt,{className:"size-4"}),e[5]=i):i=e[5];let s;return e[6]!==o||e[7]!==r?(s=d.jsx(to,{"data-slot":"select-scroll-up-button",className:r,...o,children:i}),e[6]=o,e[7]=r,e[8]=s):s=e[8],s}function ro(n){const e=ee.c(9);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=r):r=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=d.jsx(Re,{className:"size-4"}),e[5]=i):i=e[5];let s;return e[6]!==o||e[7]!==r?(s=d.jsx(oo,{"data-slot":"select-scroll-down-button",className:r,...o,children:i}),e[6]=o,e[7]=r,e[8]=s):s=e[8],s}export{co as S,po as a,uo as b,fo as c,mo as d,Pe as e,nt as n};
|
|
1
|
+
import{r as c,I as k,bO as $,j as d,H as j,D as rt,G as Pe,aL as st,aC as be,aM as lt,M as N,aN as at,a2 as _e,aO as Ee,bP as it,W as ct,bQ as dt,aP as ut,aS as pt,aQ as ft,aT as mt,aU as ht,U as vt,aR as gt,aV as xt,aW as St,c as ee,v as oe}from"./index-SQyrFbfm.js";import{V as wt}from"./index-6d87pWdr.js";import{i as Ct}from"./Check-DbjhVroq.js";import{t as Re}from"./ChevronDown-BfnyO-f-.js";function Ne(n,[e,t]){return Math.min(t,Math.max(e,n))}var yt=[" ","Enter","ArrowUp","ArrowDown"],It=[" ","Enter"],Q="Select",[de,ue,bt]=it(Q),[ne]=vt(Q,[bt,Ee]),pe=Ee(),[Tt,G]=ne(Q),[Pt,Nt]=ne(Q),je=n=>{const{__scopeSelect:e,children:t,open:o,defaultOpen:r,onOpenChange:i,value:s,defaultValue:l,onValueChange:a,dir:u,name:h,autoComplete:g,disabled:b,required:w,form:S}=n,p=pe(e),[v,C]=c.useState(null),[m,x]=c.useState(null),[U,M]=c.useState(!1),re=rt(u),[_,O]=Pe({prop:o,defaultProp:r??!1,onChange:i,caller:Q}),[W,q]=Pe({prop:s,defaultProp:l,onChange:a,caller:Q}),L=c.useRef(null),B=v?S||!!v.closest("form"):!0,[F,V]=c.useState(new Set),H=Array.from(F).map(E=>E.props.value).join(";");return d.jsx(st,{...p,children:d.jsxs(Tt,{required:w,scope:e,trigger:v,onTriggerChange:C,valueNode:m,onValueNodeChange:x,valueNodeHasChildren:U,onValueNodeHasChildrenChange:M,contentId:be(),value:W,onValueChange:q,open:_,onOpenChange:O,dir:re,triggerPointerDownPosRef:L,disabled:b,children:[d.jsx(de.Provider,{scope:e,children:d.jsx(Pt,{scope:n.__scopeSelect,onNativeOptionAdd:c.useCallback(E=>{V(D=>new Set(D).add(E))},[]),onNativeOptionRemove:c.useCallback(E=>{V(D=>{const z=new Set(D);return z.delete(E),z})},[]),children:t})}),B?d.jsxs(Je,{"aria-hidden":!0,required:w,tabIndex:-1,name:h,autoComplete:g,value:W,onChange:E=>q(E.target.value),disabled:b,form:S,children:[W===void 0?d.jsx("option",{value:""}):null,Array.from(F)]},H):null]})})};je.displayName=Q;var Me="SelectTrigger",Ae=c.forwardRef((n,e)=>{const{__scopeSelect:t,disabled:o=!1,...r}=n,i=pe(t),s=G(Me,t),l=s.disabled||o,a=k(e,s.onTriggerChange),u=ue(t),h=c.useRef("touch"),[g,b,w]=tt(p=>{const v=u().filter(x=>!x.disabled),C=v.find(x=>x.value===s.value),m=ot(v,p,C);m!==void 0&&s.onValueChange(m.value)}),S=p=>{l||(s.onOpenChange(!0),w()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return d.jsx(lt,{asChild:!0,...i,children:d.jsx(j.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":et(s.value)?"":void 0,...r,ref:a,onClick:N(r.onClick,p=>{p.currentTarget.focus(),h.current!=="mouse"&&S(p)}),onPointerDown:N(r.onPointerDown,p=>{h.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(S(p),p.preventDefault())}),onKeyDown:N(r.onKeyDown,p=>{const v=g.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&b(p.key),!(v&&p.key===" ")&&yt.includes(p.key)&&(S(),p.preventDefault())})})})});Ae.displayName=Me;var Oe="SelectValue",De=c.forwardRef((n,e)=>{const{__scopeSelect:t,className:o,style:r,children:i,placeholder:s="",...l}=n,a=G(Oe,t),{onValueNodeHasChildrenChange:u}=a,h=i!==void 0,g=k(e,a.onValueNodeChange);return $(()=>{u(h)},[u,h]),d.jsx(j.span,{...l,ref:g,style:{pointerEvents:"none"},children:et(a.value)?d.jsx(d.Fragment,{children:s}):i})});De.displayName=Oe;var _t="SelectIcon",ke=c.forwardRef((n,e)=>{const{__scopeSelect:t,children:o,...r}=n;return d.jsx(j.span,{"aria-hidden":!0,...r,ref:e,children:o||"▼"})});ke.displayName=_t;var Et="SelectPortal",Le=n=>d.jsx(at,{asChild:!0,...n});Le.displayName=Et;var J="SelectContent",Be=c.forwardRef((n,e)=>{const t=G(J,n.__scopeSelect),[o,r]=c.useState();if($(()=>{r(new DocumentFragment)},[]),!t.open){const i=o;return i?_e.createPortal(d.jsx(Ve,{scope:n.__scopeSelect,children:d.jsx(de.Slot,{scope:n.__scopeSelect,children:d.jsx("div",{children:n.children})})}),i):null}return d.jsx(He,{...n,ref:e})});Be.displayName=J;var A=10,[Ve,Y]=ne(J),Rt="SelectContentImpl",jt=gt("SelectContent.RemoveScroll"),He=c.forwardRef((n,e)=>{const{__scopeSelect:t,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:i,onPointerDownOutside:s,side:l,sideOffset:a,align:u,alignOffset:h,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:S,hideWhenDetached:p,avoidCollisions:v,...C}=n,m=G(J,t),[x,U]=c.useState(null),[M,re]=c.useState(null),_=k(e,f=>U(f)),[O,W]=c.useState(null),[q,L]=c.useState(null),B=ue(t),[F,V]=c.useState(!1),H=c.useRef(!1);c.useEffect(()=>{if(x)return ut(x)},[x]),pt();const E=c.useCallback(f=>{const[T,...R]=B().map(P=>P.ref.current),[y]=R.slice(-1),I=document.activeElement;for(const P of f)if(P===I||(P?.scrollIntoView({block:"nearest"}),P===T&&M&&(M.scrollTop=0),P===y&&M&&(M.scrollTop=M.scrollHeight),P?.focus(),document.activeElement!==I))return},[B,M]),D=c.useCallback(()=>E([O,x]),[E,O,x]);c.useEffect(()=>{F&&D()},[F,D]);const{onOpenChange:z,triggerPointerDownPosRef:K}=m;c.useEffect(()=>{if(x){let f={x:0,y:0};const T=y=>{f={x:Math.abs(Math.round(y.pageX)-(K.current?.x??0)),y:Math.abs(Math.round(y.pageY)-(K.current?.y??0))}},R=y=>{f.x<=10&&f.y<=10?y.preventDefault():x.contains(y.target)||z(!1),document.removeEventListener("pointermove",T),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",T),document.addEventListener("pointerup",R,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",T),document.removeEventListener("pointerup",R,{capture:!0})}}},[x,z,K]),c.useEffect(()=>{const f=()=>z(!1);return window.addEventListener("blur",f),window.addEventListener("resize",f),()=>{window.removeEventListener("blur",f),window.removeEventListener("resize",f)}},[z]);const[fe,ae]=tt(f=>{const T=B().filter(I=>!I.disabled),R=T.find(I=>I.ref.current===document.activeElement),y=ot(T,f,R);y&&setTimeout(()=>y.ref.current.focus())}),me=c.useCallback((f,T,R)=>{const y=!H.current&&!R;(m.value!==void 0&&m.value===T||y)&&(W(f),y&&(H.current=!0))},[m.value]),he=c.useCallback(()=>x?.focus(),[x]),te=c.useCallback((f,T,R)=>{const y=!H.current&&!R;(m.value!==void 0&&m.value===T||y)&&L(f)},[m.value]),ie=o==="popper"?Se:ze,se=ie===Se?{side:l,sideOffset:a,align:u,alignOffset:h,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:S,hideWhenDetached:p,avoidCollisions:v}:{};return d.jsx(Ve,{scope:t,content:x,viewport:M,onViewportChange:re,itemRefCallback:me,selectedItem:O,onItemLeave:he,itemTextRefCallback:te,focusSelectedItem:D,selectedItemText:q,position:o,isPositioned:F,searchRef:fe,children:d.jsx(ft,{as:jt,allowPinchZoom:!0,children:d.jsx(mt,{asChild:!0,trapped:m.open,onMountAutoFocus:f=>{f.preventDefault()},onUnmountAutoFocus:N(r,f=>{m.trigger?.focus({preventScroll:!0}),f.preventDefault()}),children:d.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:d.jsx(ie,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:f=>f.preventDefault(),...C,...se,onPlaced:()=>V(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:N(C.onKeyDown,f=>{const T=f.ctrlKey||f.altKey||f.metaKey;if(f.key==="Tab"&&f.preventDefault(),!T&&f.key.length===1&&ae(f.key),["ArrowUp","ArrowDown","Home","End"].includes(f.key)){let y=B().filter(I=>!I.disabled).map(I=>I.ref.current);if(["ArrowUp","End"].includes(f.key)&&(y=y.slice().reverse()),["ArrowUp","ArrowDown"].includes(f.key)){const I=f.target,P=y.indexOf(I);y=y.slice(P+1)}setTimeout(()=>E(y)),f.preventDefault()}})})})})})})});He.displayName=Rt;var Mt="SelectItemAlignedPosition",ze=c.forwardRef((n,e)=>{const{__scopeSelect:t,onPlaced:o,...r}=n,i=G(J,t),s=Y(J,t),[l,a]=c.useState(null),[u,h]=c.useState(null),g=k(e,_=>h(_)),b=ue(t),w=c.useRef(!1),S=c.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:C,focusSelectedItem:m}=s,x=c.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&p&&v&&C){const _=i.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),W=i.valueNode.getBoundingClientRect(),q=C.getBoundingClientRect();if(i.dir!=="rtl"){const I=q.left-O.left,P=W.left-I,X=_.left-P,Z=_.width+X,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=Ne(P,[A,Math.max(A,ge-ve)]);l.style.minWidth=Z+"px",l.style.left=xe+"px"}else{const I=O.right-q.right,P=window.innerWidth-W.right-I,X=window.innerWidth-_.right-P,Z=_.width+X,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=Ne(P,[A,Math.max(A,ge-ve)]);l.style.minWidth=Z+"px",l.style.right=xe+"px"}const L=b(),B=window.innerHeight-A*2,F=p.scrollHeight,V=window.getComputedStyle(u),H=parseInt(V.borderTopWidth,10),E=parseInt(V.paddingTop,10),D=parseInt(V.borderBottomWidth,10),z=parseInt(V.paddingBottom,10),K=H+E+F+z+D,fe=Math.min(v.offsetHeight*5,K),ae=window.getComputedStyle(p),me=parseInt(ae.paddingTop,10),he=parseInt(ae.paddingBottom,10),te=_.top+_.height/2-A,ie=B-te,se=v.offsetHeight/2,f=v.offsetTop+se,T=H+E+f,R=K-T;if(T<=te){const I=L.length>0&&v===L[L.length-1].ref.current;l.style.bottom="0px";const P=u.clientHeight-p.offsetTop-p.offsetHeight,X=Math.max(ie,se+(I?he:0)+P+D),Z=T+X;l.style.height=Z+"px"}else{const I=L.length>0&&v===L[0].ref.current;l.style.top="0px";const X=Math.max(te,H+p.offsetTop+(I?me:0)+se)+R;l.style.height=X+"px",p.scrollTop=T-te+p.offsetTop}l.style.margin=`${A}px 0`,l.style.minHeight=fe+"px",l.style.maxHeight=B+"px",o?.(),requestAnimationFrame(()=>w.current=!0)}},[b,i.trigger,i.valueNode,l,u,p,v,C,i.dir,o]);$(()=>x(),[x]);const[U,M]=c.useState();$(()=>{u&&M(window.getComputedStyle(u).zIndex)},[u]);const re=c.useCallback(_=>{_&&S.current===!0&&(x(),m?.(),S.current=!1)},[x,m]);return d.jsx(Ot,{scope:t,contentWrapper:l,shouldExpandOnScrollRef:w,onScrollButtonChange:re,children:d.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:U},children:d.jsx(j.div,{...r,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});ze.displayName=Mt;var At="SelectPopperPosition",Se=c.forwardRef((n,e)=>{const{__scopeSelect:t,align:o="start",collisionPadding:r=A,...i}=n,s=pe(t);return d.jsx(xt,{...s,...i,ref:e,align:o,collisionPadding:r,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Se.displayName=At;var[Ot,Te]=ne(J,{}),we="SelectViewport",Ue=c.forwardRef((n,e)=>{const{__scopeSelect:t,nonce:o,...r}=n,i=Y(we,t),s=Te(we,t),l=k(e,i.onViewportChange),a=c.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),d.jsx(de.Slot,{scope:t,children:d.jsx(j.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:N(r.onScroll,u=>{const h=u.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:b}=s;if(b?.current&&g){const w=Math.abs(a.current-h.scrollTop);if(w>0){const S=window.innerHeight-A*2,p=parseFloat(g.style.minHeight),v=parseFloat(g.style.height),C=Math.max(p,v);if(C<S){const m=C+w,x=Math.min(S,m),U=m-x;g.style.height=x+"px",g.style.bottom==="0px"&&(h.scrollTop=U>0?U:0,g.style.justifyContent="flex-end")}}}a.current=h.scrollTop})})})]})});Ue.displayName=we;var We="SelectGroup",[Dt,kt]=ne(We),Lt=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n,r=be();return d.jsx(Dt,{scope:t,id:r,children:d.jsx(j.div,{role:"group","aria-labelledby":r,...o,ref:e})})});Lt.displayName=We;var Fe="SelectLabel",Bt=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n,r=kt(Fe,t);return d.jsx(j.div,{id:r.id,...o,ref:e})});Bt.displayName=Fe;var ce="SelectItem",[Vt,Ke]=ne(ce),$e=c.forwardRef((n,e)=>{const{__scopeSelect:t,value:o,disabled:r=!1,textValue:i,...s}=n,l=G(ce,t),a=Y(ce,t),u=l.value===o,[h,g]=c.useState(i??""),[b,w]=c.useState(!1),S=k(e,m=>a.itemRefCallback?.(m,o,r)),p=be(),v=c.useRef("touch"),C=()=>{r||(l.onValueChange(o),l.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(Vt,{scope:t,value:o,disabled:r,textId:p,isSelected:u,onItemTextChange:c.useCallback(m=>{g(x=>x||(m?.textContent??"").trim())},[]),children:d.jsx(de.ItemSlot,{scope:t,value:o,disabled:r,textValue:h,children:d.jsx(j.div,{role:"option","aria-labelledby":p,"data-highlighted":b?"":void 0,"aria-selected":u&&b,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...s,ref:S,onFocus:N(s.onFocus,()=>w(!0)),onBlur:N(s.onBlur,()=>w(!1)),onClick:N(s.onClick,()=>{v.current!=="mouse"&&C()}),onPointerUp:N(s.onPointerUp,()=>{v.current==="mouse"&&C()}),onPointerDown:N(s.onPointerDown,m=>{v.current=m.pointerType}),onPointerMove:N(s.onPointerMove,m=>{v.current=m.pointerType,r?a.onItemLeave?.():v.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(s.onPointerLeave,m=>{m.currentTarget===document.activeElement&&a.onItemLeave?.()}),onKeyDown:N(s.onKeyDown,m=>{a.searchRef?.current!==""&&m.key===" "||(It.includes(m.key)&&C(),m.key===" "&&m.preventDefault())})})})})});$e.displayName=ce;var le="SelectItemText",Ge=c.forwardRef((n,e)=>{const{__scopeSelect:t,className:o,style:r,...i}=n,s=G(le,t),l=Y(le,t),a=Ke(le,t),u=Nt(le,t),[h,g]=c.useState(null),b=k(e,C=>g(C),a.onItemTextChange,C=>l.itemTextRefCallback?.(C,a.value,a.disabled)),w=h?.textContent,S=c.useMemo(()=>d.jsx("option",{value:a.value,disabled:a.disabled,children:w},a.value),[a.disabled,a.value,w]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=u;return $(()=>(p(S),()=>v(S)),[p,v,S]),d.jsxs(d.Fragment,{children:[d.jsx(j.span,{id:a.textId,...i,ref:b}),a.isSelected&&s.valueNode&&!s.valueNodeHasChildren?_e.createPortal(i.children,s.valueNode):null]})});Ge.displayName=le;var Ye="SelectItemIndicator",qe=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n;return Ke(Ye,t).isSelected?d.jsx(j.span,{"aria-hidden":!0,...o,ref:e}):null});qe.displayName=Ye;var Ce="SelectScrollUpButton",Xe=c.forwardRef((n,e)=>{const t=Y(Ce,n.__scopeSelect),o=Te(Ce,n.__scopeSelect),[r,i]=c.useState(!1),s=k(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let l=function(){const u=a.scrollTop>0;i(u)};const a=t.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),r?d.jsx(Qe,{...n,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=t;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});Xe.displayName=Ce;var ye="SelectScrollDownButton",Ze=c.forwardRef((n,e)=>{const t=Y(ye,n.__scopeSelect),o=Te(ye,n.__scopeSelect),[r,i]=c.useState(!1),s=k(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let l=function(){const u=a.scrollHeight-a.clientHeight,h=Math.ceil(a.scrollTop)<u;i(h)};const a=t.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),r?d.jsx(Qe,{...n,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=t;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});Ze.displayName=ye;var Qe=c.forwardRef((n,e)=>{const{__scopeSelect:t,onAutoScroll:o,...r}=n,i=Y("SelectScrollButton",t),s=c.useRef(null),l=ue(t),a=c.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return c.useEffect(()=>()=>a(),[a]),$(()=>{l().find(h=>h.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),d.jsx(j.div,{"aria-hidden":!0,...r,ref:e,style:{flexShrink:0,...r.style},onPointerDown:N(r.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(o,50))}),onPointerMove:N(r.onPointerMove,()=>{i.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(o,50))}),onPointerLeave:N(r.onPointerLeave,()=>{a()})})}),Ht="SelectSeparator",zt=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n;return d.jsx(j.div,{"aria-hidden":!0,...o,ref:e})});zt.displayName=Ht;var Ie="SelectArrow",Ut=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n,r=pe(t),i=G(Ie,t),s=Y(Ie,t);return i.open&&s.position==="popper"?d.jsx(St,{...r,...o,ref:e}):null});Ut.displayName=Ie;var Wt="SelectBubbleInput",Je=c.forwardRef(({__scopeSelect:n,value:e,...t},o)=>{const r=c.useRef(null),i=k(o,r),s=ct(e);return c.useEffect(()=>{const l=r.current;if(!l)return;const a=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(a,"value").set;if(s!==e&&h){const g=new Event("change",{bubbles:!0});h.call(l,e),l.dispatchEvent(g)}},[s,e]),d.jsx(j.select,{...t,style:{...wt,...t.style},ref:i,defaultValue:e})});Je.displayName=Wt;function et(n){return n===""||n===void 0}function tt(n){const e=dt(n),t=c.useRef(""),o=c.useRef(0),r=c.useCallback(s=>{const l=t.current+s;e(l),(function a(u){t.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>a(""),1e3))})(l)},[e]),i=c.useCallback(()=>{t.current="",window.clearTimeout(o.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(o.current),[]),[t,r,i]}function ot(n,e,t){const r=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,i=t?n.indexOf(t):-1;let s=Ft(n,Math.max(i,0));r.length===1&&(s=s.filter(u=>u!==t));const a=s.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return a!==t?a:void 0}function Ft(n,e){return n.map((t,o)=>n[(e+o)%n.length])}var Kt=je,$t=Ae,Gt=De,Yt=ke,qt=Le,Xt=Be,Zt=Ue,Qt=$e,Jt=Ge,eo=qe,to=Xe,oo=Ze;const nt=({size:n=24,color:e="currentColor",...t})=>c.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},c.createElement("path",{d:"m18 15-6-6-6 6"}));nt.displayName="ChevronUp";function co(n){const e=ee.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=d.jsx(Kt,{"data-slot":"select",...t}),e[2]=t,e[3]=o):o=e[3],o}function uo(n){const e=ee.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=d.jsx(Gt,{"data-slot":"select-value",...t}),e[2]=t,e[3]=o):o=e[3],o}function po(n){const e=ee.c(13);let t,o,r,i;e[0]!==n?({className:o,size:i,children:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=i):(t=e[1],o=e[2],r=e[3],i=e[4]);const s=i===void 0?"default":i;let l;e[5]!==o?(l=oe("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]: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 hover:bg-accent hover:text-accent-foreground dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-lg border bg-transparent px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-10 data-[size=sm]:h-7 data-[size=xs]:h-7 data-[size=xs]:px-2.5 data-[size=xs]:py-1.5 data-[size=xs]:rounded-lg *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),e[5]=o,e[6]=l):l=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=d.jsx(Yt,{asChild:!0,children:d.jsx(Re,{className:"size-4 opacity-50"})}),e[7]=a):a=e[7];let u;return e[8]!==t||e[9]!==r||e[10]!==s||e[11]!==l?(u=d.jsxs($t,{"data-slot":"select-trigger","data-size":s,className:l,...r,children:[t,a]}),e[8]=t,e[9]=r,e[10]=s,e[11]=l,e[12]=u):u=e[12],u}function fo(n){const e=ee.c(25);let t,o,r,i,s;e[0]!==n?({className:o,children:t,position:i,hideScrollButtons:s,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=i,e[5]=s):(t=e[1],o=e[2],r=e[3],i=e[4],s=e[5]);const l=i===void 0?"popper":i,a=s===void 0?!1:s,u=l==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";let h;e[6]!==o||e[7]!==u?(h=oe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border shadow-md",u,o),e[6]=o,e[7]=u,e[8]=h):h=e[8];let g;e[9]!==a?(g=!a&&d.jsx(no,{}),e[9]=a,e[10]=g):g=e[10];const b=l==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";let w;e[11]!==b?(w=oe("p-1",b),e[11]=b,e[12]=w):w=e[12];let S;e[13]!==t||e[14]!==w?(S=d.jsx(Zt,{className:w,children:t}),e[13]=t,e[14]=w,e[15]=S):S=e[15];let p;e[16]!==a?(p=!a&&d.jsx(ro,{}),e[16]=a,e[17]=p):p=e[17];let v;return e[18]!==l||e[19]!==r||e[20]!==h||e[21]!==g||e[22]!==S||e[23]!==p?(v=d.jsx(qt,{children:d.jsxs(Xt,{"data-slot":"select-content",className:h,position:l,...r,children:[g,S,p]})}),e[18]=l,e[19]=r,e[20]=h,e[21]=g,e[22]=S,e[23]=p,e[24]=v):v=e[24],v}function mo(n){const e=ee.c(16);let t,o,r,i;e[0]!==n?({className:o,children:t,hideCheck:i,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=i):(t=e[1],o=e[2],r=e[3],i=e[4]);const s=i===void 0?!1:i;let l;e[5]!==o?(l=oe("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",o),e[5]=o,e[6]=l):l=e[6];let a;e[7]!==s?(a=!s&&d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(eo,{children:d.jsx(Ct,{className:"size-4"})})}),e[7]=s,e[8]=a):a=e[8];let u;e[9]!==t?(u=d.jsx(Jt,{children:t}),e[9]=t,e[10]=u):u=e[10];let h;return e[11]!==r||e[12]!==l||e[13]!==a||e[14]!==u?(h=d.jsxs(Qt,{"data-slot":"select-item",className:l,...r,children:[a,u]}),e[11]=r,e[12]=l,e[13]=a,e[14]=u,e[15]=h):h=e[15],h}function no(n){const e=ee.c(9);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=r):r=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=d.jsx(nt,{className:"size-4"}),e[5]=i):i=e[5];let s;return e[6]!==o||e[7]!==r?(s=d.jsx(to,{"data-slot":"select-scroll-up-button",className:r,...o,children:i}),e[6]=o,e[7]=r,e[8]=s):s=e[8],s}function ro(n){const e=ee.c(9);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=r):r=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=d.jsx(Re,{className:"size-4"}),e[5]=i):i=e[5];let s;return e[6]!==o||e[7]!==r?(s=d.jsx(oo,{"data-slot":"select-scroll-down-button",className:r,...o,children:i}),e[6]=o,e[7]=r,e[8]=s):s=e[8],s}export{co as S,po as a,uo as b,fo as c,mo as d,Ne as e,nt as n};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{r as T,c as E,j as s,E as Ue,u as fe,v as B,b as Ie,bZ as Ce,L as $e,c6 as dt,c7 as mt,O as K,a3 as ut,e as Pe,d as ae,B as Se,t as le,c8 as ft,ba as pt,m as xt,A as ht,S as Fe,f as gt,h as jt,N as bt,n as yt,K as Nt,aJ as He,P as vt}from"./index-SQyrFbfm.js";import{C as X}from"./index-B5qImc8v.js";import{I as St}from"./integration-icon-uSS8hUch.js";import{P as de,u as We,d as ie,e as ne,f as Ae,g as ge,h as je,i as kt,j as Ct,k as _t,l as Be,m as wt,n as $t,o as zt,p as It}from"./index-CEqBoYmq.js";import{u as Oe,C as Pt,b as At,c as Ot}from"./use-deco-chat-open-3TeoXCmL.js";import{d as Tt,u as Mt}from"./constants-BI1zDvDn.js";import{E as Et,i as Dt,a as Lt}from"./editable-thread-title-CVmwgHHg.js";import{s as xe}from"./Plus-Cy7J9WUI.js";import{t as Te}from"./Users03-DNCG18us.js";import{i as De}from"./X-D4P057xM.js";import{b as Rt,i as Ut}from"./context-zCxbj6li.js";import{C as Ge}from"./create-project-dialog-DChymebi.js";import{u as _e,S as Q}from"./skeleton-C7JMree5.js";import{t as qe,u as Ke,i as Ft}from"./use-settings-modal-CpLTH5Bd.js";import{n as Le}from"./CheckDone01-DDiaEWe6.js";import{n as Ht}from"./Container-ry4Xw9xr.js";import{e as Wt}from"./Dataflow03-DQXIoZvf.js";import{a as Bt}from"./Home02-tLj3R-tD.js";import{t as ke}from"./Settings01-CK_34JoM.js";import{a as Ve,u as Ye}from"./use-project-0ih1xISt.js";import{t as Ze}from"./ChevronDown-BfnyO-f-.js";import{a as Gt,b as qt,T as Kt}from"./tooltip-B-cok5ra.js";import{A as me}from"./avatar-BsiGNuUz.js";import{c as Y,g as he,d as Vt,e as Yt,f as Zt,b as Qe,D as Je,a as Xe}from"./dropdown-menu-Ba58pGV8.js";import{i as ue}from"./Check-DbjhVroq.js";import{C as Qt}from"./create-organization-dialog-Dpd1ywrN.js";import{a as Jt}from"./Copy01-D-8l_DMV.js";import{i as Xt}from"./File06-UqhuGICV.js";import{i as es}from"./Globe01-Bl6eyakG.js";import{n as pe}from"./LinkExternal01-CbLsiRMn.js";import{i as ts}from"./Shield01-JSaU7Wxh.js";import{b as ss,a as rs,P as ns}from"./popover-z5frSt2L.js";import{n as Re}from"./Inbox01-B5Fc7oRA.js";import{s as is}from"./XClose-Crqhw3J7.js";import{h as os}from"./use-connection-CM6laORR.js";import{b as ls}from"./use-mcp-tools-BLFUT4fz.js";import{i as as}from"./deco-constants-BmtTfZbQ.js";import{i as cs}from"./ChevronRight-LHJ8rwy-.js";import{u as Me,L as Ee}from"./localstorage-keys-seNkjiQl.js";import{R as ds,a as et,b as ms}from"./resizable-BYfQHaK6.js";import"./spinner-YKb1hPOQ.js";import"./use-mcp-prompts-ujC0seLu.js";import"./useQuery-Dn_bA-JU.js";import"./dialog-Do03H7yN.js";import"./form-dXW_I1ph.js";import"./label-cKQmhewm.js";import"./input-C5Rjbbp-.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-DGKREoz7.js";import"./Edit01-AKDBiUSO.js";import"./XCircle-C8g3hIQt.js";import"./AlertCircle-DMi123Hf.js";import"./select-CizyN8VQ.js";import"./index-6d87pWdr.js";import"./ArrowLeft-C1YvpVtK.js";import"./use-copy-B44PaF7i.js";import"./tabs-Dd98njLP.js";import"./badge-DJljGfSq.js";import"./Code01-CYvfolYO.js";import"./use-virtual-mcp-BvS32srI.js";import"./SearchMd-BuUjumBL.js";import"./use-create-virtual-mcp-CfjGvHYs.js";import"./marked.esm-BaswSlok.js";import"./markdown-D8FrWPff.js";import"./types-B4OO-WrM.js";import"./Eye-gghEeRfr.js";import"./Globe02-Cxhnprjc.js";import"./collection-search-DzqDMmsG.js";import"./Loading01-iCpUJopy.js";import"./generate-id-Dyweu44Y.js";import"./Clock-6CL36KIE.js";import"./Trash01-CT5g4zaW.js";import"./use-mobile-DdeKUhAR.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-CVhayDor.js";import"./use-binding-8GNaEhUS.js";import"./binder-D8Bh9Fm3.js";import"./checkbox-QWODOgoz.js";import"./AlignLeft-QRMuLxyY.js";import"./Image01-6PD7bEds.js";import"./RefreshCcw01-ClpY_BRV.js";import"./useSuspenseInfiniteQuery-Dj-vji2c.js";import"./infiniteQueryObserver-VRNdHjKN.js";import"./useMutation-DW2RCqOf.js";import"./textarea-P1Iq_yoU.js";import"./alert-dialog-31vAifTK.js";const tt=({size:t=24,color:e="currentColor",...r})=>T.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},T.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));tt.displayName="BarChart10";const st=({size:t=24,color:e="currentColor",...r})=>T.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},T.createElement("path",{d:"M8 14s1.5 2 4 2 4-2 4-2m-1-5h.01M9 9h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-6.5-3a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm-6 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"}));st.displayName="FaceSmile";const rt=({size:t=24,color:e="currentColor",...r})=>T.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},T.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H9"}));rt.displayName="LogOut01";const nt=({size:t=24,color:e="currentColor",...r})=>T.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},T.createElement("path",{d:"M8 9.5h4M8 13h7m-3 8a9 9 0 1 0-8.342-5.616c.081.2.122.3.14.381a.907.907 0 0 1 .024.219c0 .083-.015.173-.045.353l-.593 3.558c-.062.373-.093.56-.035.694a.5.5 0 0 0 .262.262c.135.058.321.027.694-.035l3.558-.593c.18-.03.27-.045.353-.045.081 0 .14.006.219.024.08.018.18.059.38.14A8.973 8.973 0 0 0 12 21Z"}));nt.displayName="MessageTextCircle02";function us(){const t=E.c(65),{org:e}=fe(),[,r]=Oe(),{selectedVirtualMcp:o,modelsConnections:i,isChatEmpty:l,activeThreadId:n,createThread:a,switchToThread:d,threads:c}=Rt();let m;if(t[0]!==n||t[1]!==c){let W;t[3]!==n?(W=G=>G.id===n,t[3]=n,t[4]=W):W=t[4],m=c.find(W),t[0]=n,t[1]=c,t[2]=m}else m=t[2];const f=m,[u,N]=T.useState(!1),[x,h]=T.useTransition();let j;t[5]!==e.id?(j=Tt(e.id),t[5]=e.id,t[6]=j):j=t[6];const p=o??j;let b;t[7]!==a?(b=()=>{h(()=>{a()})},t[7]=a,t[8]=b):b=t[8];const v=b;if(i.length===0){let W;t[9]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(de.Header.Left,{className:"gap-2"}),t[9]=W):W=t[9];let G;t[10]!==r?(G=()=>r(!1),t[10]=r,t[11]=G):G=t[11];let _;t[12]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(De,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=_):_=t[12];let q;t[13]!==G?(q=s.jsxs(de.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[W,s.jsx(de.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:G,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:_})})]}),t[13]=G,t[14]=q):q=t[14];let re;t[15]!==e?(re=s.jsx(X.Main,{className:"flex flex-col items-center",children:s.jsx(X.EmptyState,{children:s.jsx(X.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[15]=e,t[16]=re):re=t[16];let ce;return t[17]!==q||t[18]!==re?(ce=s.jsxs(X,{className:"animate-in fade-in-0 duration-200",children:[q,re]}),t[17]=q,t[18]=re,t[19]=ce):ce=t[19],ce}const g=u?"duration-300 opacity-0 -translate-x-4 pointer-events-none":x?"duration-150 opacity-0 pointer-events-none":"duration-300 opacity-100 translate-x-0";let S;t[20]!==g?(S=B("absolute inset-0 flex flex-col transition-[opacity,transform] ease-[var(--ease-out-quart)]",g),t[20]=g,t[21]=S):S=t[21];let y;t[22]!==f||t[23]!==l?(y=!l&&f?.title&&s.jsx(Et,{threadId:f.id,text:f.title,className:"text-sm font-medium text-foreground"}),t[22]=f,t[23]=l,t[24]=y):y=t[24];let $;t[25]!==y?($=s.jsx(de.Header.Left,{className:"gap-2",children:y}),t[25]=y,t[26]=$):$=t[26];let z;t[27]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(xe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=z):z=t[27];let C;t[28]!==v||t[29]!==x?(C=s.jsx("button",{type:"button",onClick:v,disabled:x,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:z}),t[28]=v,t[29]=x,t[30]=C):C=t[30];let w;t[31]===Symbol.for("react.memo_cache_sentinel")?(w=()=>N(!0),t[31]=w):w=t[31];let L;t[32]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx("button",{type:"button",onClick:w,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Chat history",children:s.jsx(Dt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=L):L=t[32];let O;t[33]!==r?(O=()=>r(!1),t[33]=r,t[34]=O):O=t[34];let F;t[35]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(De,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[35]=F):F=t[35];let M;t[36]!==O?(M=s.jsx("button",{type:"button",onClick:O,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:F}),t[36]=O,t[37]=M):M=t[37];let R;t[38]!==M||t[39]!==C?(R=s.jsxs(de.Header.Right,{className:"gap-1",children:[C,L,M]}),t[38]=M,t[39]=C,t[40]=R):R=t[40];let P;t[41]!==R||t[42]!==$?(P=s.jsxs(de.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[$,R]}),t[41]=R,t[42]=$,t[43]=P):P=t[43];let D;t[44]!==p||t[45]!==l?(D=s.jsx(X.Main,{children:l?s.jsx(X.EmptyState,{children:s.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[s.jsx(St,{icon:p.icon,name:p.title,size:"lg",fallbackIcon:s.jsx(Te,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:p.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:p.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(X.IceBreakers,{})]})}):s.jsx(X.Messages,{})}),t[44]=p,t[45]=l,t[46]=D):D=t[46];let A;t[47]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(X.Footer,{children:s.jsx(X.Input,{})}),t[47]=A):A=t[47];let U;t[48]!==P||t[49]!==D||t[50]!==S?(U=s.jsxs("div",{className:S,children:[P,D,A]}),t[48]=P,t[49]=D,t[50]=S,t[51]=U):U=t[51];const ee=u?"opacity-100 translate-x-0":"opacity-0 translate-x-4 pointer-events-none";let te;t[52]!==ee?(te=B("absolute inset-0 flex flex-col transition-[opacity,transform] duration-300 ease-[var(--ease-out-quart)]",ee),t[52]=ee,t[53]=te):te=t[53];let se;t[54]===Symbol.for("react.memo_cache_sentinel")?(se=()=>N(!1),t[54]=se):se=t[54];let V;t[55]!==n||t[56]!==d||t[57]!==c?(V=s.jsx(Lt,{threads:c,activeThreadId:n,onThreadSelect:d,onClose:se}),t[55]=n,t[56]=d,t[57]=c,t[58]=V):V=t[58];let H;t[59]!==te||t[60]!==V?(H=s.jsx("div",{className:te,children:V}),t[59]=te,t[60]=V,t[61]=H):H=t[61];let Z;return t[62]!==U||t[63]!==H?(Z=s.jsxs(X,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[U,H]}),t[62]=U,t[63]=H,t[64]=Z):Z=t[64],Z}function fs(){const t=E.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(X.Skeleton,{}),t[0]=e):e=t[0];let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ue,{fallback:e,children:s.jsx(T.Suspense,{fallback:s.jsx(X.Skeleton,{}),children:s.jsx(us,{})})}),t[1]=r):r=t[1],r}function ps(){const t=E.c(54),[e]=_e(),{locator:r,org:o}=fe(),i=Ie(),l=Ce(),{org:n,project:a}=$e.parse(r),d=$e.isOrgAdminProject(r),{data:c}=Ve(o.id,a);let m;t[0]!==c?.enabledPlugins?(m=c?.enabledPlugins??[],t[0]=c?.enabledPlugins,t[1]=m):m=t[1];const f=m;let u;t[2]!==f?(u=I=>f.includes(I.pluginId),t[2]=f,t[3]=u):u=t[3];const N=dt.filter(u),x=l.location.pathname,h=`/${n}/${a}`,j=x===h||x===`${h}/`;let k;t[4]!==h||t[5]!==x?(k=I=>x.startsWith(`${h}/${I}`),t[4]=h,t[5]=x,t[6]=k):k=t[6];const p=k;let b;t[7]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Bt,{}),t[7]=b):b=t[7];const v={key:"home",label:"Home",icon:b,isActive:j,onClick:()=>{j?window.dispatchEvent(new CustomEvent("reset-home-view")):i({to:"/$org/$project",params:{org:n,project:a}})}};let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(Le,{}),t[8]=g):g=t[8];const S={key:"tasks",label:"Tasks",icon:g,isActive:p("tasks"),onClick:()=>i({to:"/$org/$project/tasks",params:{org:n,project:K}})};let y;t[9]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(Ht,{}),t[9]=y):y=t[9];const $={key:"mcps",label:"Connections",icon:y,isActive:p("mcps"),onClick:()=>i({to:"/$org/$project/mcps",params:{org:n,project:K}})};let z;t[10]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(ut,{}),t[10]=z):z=t[10];const C={key:"projects",label:"Projects",icon:z,isActive:p("projects"),onClick:()=>i({to:"/$org/$project/projects",params:{org:n,project:K}})};let w;t[11]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(qe,{}),t[11]=w):w=t[11];const L={key:"store",label:"Store",icon:w,isActive:p("store"),onClick:()=>i({to:"/$org/$project/store",params:{org:n,project:K}})};let O;t[12]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(Te,{}),t[12]=O):O=t[12];const F={key:"agents",label:"Agents",icon:O,isActive:p("agents"),onClick:()=>i({to:"/$org/$project/agents",params:{org:n,project:K}})};let M;t[13]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(tt,{}),t[13]=M):M=t[13];const R={key:"monitoring",label:"Monitor",icon:M,isActive:p("monitoring"),onClick:()=>i({to:"/$org/$project/monitoring",params:{org:n,project:K}})};let P;t[14]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(st,{}),t[14]=P):P=t[14];const D={key:"members",label:"Members",icon:P,isActive:p("members"),onClick:()=>i({to:"/$org/$project/members",params:{org:n,project:K}})},A=N.map(I=>({key:I.pluginId,label:I.label,icon:I.icon,isActive:p(I.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:n,project:a,pluginId:I.pluginId}})}));let U;t[15]!==f?(U=I=>f.includes(I.pluginId),t[15]=f,t[16]=U):U=t[16];const te=mt.filter(U).map(I=>({type:"group",group:{id:`${I.pluginId}-${I.id}`,label:I.label,items:I.items.map((J,oe)=>({key:`${I.pluginId}-${I.id}-${oe}`,label:J.label,icon:J.icon,isActive:p(I.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:n,project:a,pluginId:I.pluginId}})})),defaultExpanded:I.defaultExpanded??!0}}));if(d){let I;t[17]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(ke,{}),t[17]=I):I=t[17];let J;t[18]!==p?(J=p("settings"),t[18]=p,t[19]=J):J=t[19];let oe;t[20]!==i||t[21]!==n?(oe=()=>i({to:"/$org/$project/settings",params:{org:n,project:K}}),t[20]=i,t[21]=n,t[22]=oe):oe=t[22];let Ne;t[23]!==J||t[24]!==oe?(Ne={key:"settings",label:"Settings",icon:I,isActive:J,onClick:oe},t[23]=J,t[24]=oe,t[25]=Ne):Ne=t[25];const ct=Ne,we=[{type:"items",items:[v,...e.experimental_tasks?[S]:[],...e.experimental_projects?[C]:[]]},{type:"group",group:{id:"build",label:"Build",items:[F,$,L],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[R,D,ct],defaultExpanded:!0}}];if(A.length>0){let ve;t[26]!==A?(ve={type:"items",items:A},t[26]=A,t[27]=ve):ve=t[27],we.push(ve)}return te.length>0&&we.push(...te),we}let se;t[28]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(Le,{}),t[28]=se):se=t[28];let V;t[29]!==p?(V=p("tasks"),t[29]=p,t[30]=V):V=t[30];let H;t[31]!==i||t[32]!==n||t[33]!==a?(H=()=>i({to:"/$org/$project/tasks",params:{org:n,project:a}}),t[31]=i,t[32]=n,t[33]=a,t[34]=H):H=t[34];let Z;t[35]!==V||t[36]!==H?(Z={key:"tasks",label:"Tasks",icon:se,isActive:V,onClick:H},t[35]=V,t[36]=H,t[37]=Z):Z=t[37];const W=Z;let G;t[38]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsx(Wt,{}),t[38]=G):G=t[38];let _;t[39]!==p?(_=p("workflows"),t[39]=p,t[40]=_):_=t[40];let q;t[41]!==i||t[42]!==n||t[43]!==a?(q=()=>i({to:"/$org/$project/workflows",params:{org:n,project:a}}),t[41]=i,t[42]=n,t[43]=a,t[44]=q):q=t[44];let re;t[45]!==_||t[46]!==q?(re={key:"workflows",label:"Workflows",icon:G,isActive:_,onClick:q},t[45]=_,t[46]=q,t[47]=re):re=t[47];const ce=re;let be;t[48]!==e.experimental_tasks||t[49]!==W?(be=e.experimental_tasks?[W]:[],t[48]=e.experimental_tasks,t[49]=W,t[50]=be):be=t[50];const ye=[{type:"items",items:[v,...be,ce]}];if(A.length>0){let I;t[51]===Symbol.for("react.memo_cache_sentinel")?(I={type:"divider"},t[51]=I):I=t[51],ye.push(I);let J;t[52]!==A?(J={type:"items",items:A},t[52]=A,t[53]=J):J=t[53],ye.push(J)}return te.length>0&&ye.push(...te),ye}function xs(t){const e=E.c(11),{label:r,children:o,defaultExpanded:i}=t,l=i===void 0?!0:i,[n,a]=T.useState(l),{state:d}=We(),c=d==="collapsed";let m;e[0]!==n||e[1]!==c||e[2]!==r?(m=c?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(ie,{children:s.jsx(ne,{children:s.jsxs(Ae,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>a(!n),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:r}),s.jsx(Ze,{size:12,className:B("text-muted-foreground transition-transform duration-200",!n&&"-rotate-90")})]})})}),e[0]=n,e[1]=c,e[2]=r,e[3]=m):m=e[3];let f;e[4]!==o||e[5]!==n||e[6]!==c?(f=(c||n)&&s.jsx(ge,{children:s.jsx(ie,{className:"gap-0.5",children:o})}),e[4]=o,e[5]=n,e[6]=c,e[7]=f):f=e[7];let u;return e[8]!==m||e[9]!==f?(u=s.jsxs(je,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[m,f]}),e[8]=m,e[9]=f,e[10]=u):u=e[10],u}function it(t){const e=E.c(13),{item:r}=t;let o;e[0]!==r.icon?(o=s.jsx("span",{className:"[&>svg]:size-4",children:r.icon}),e[0]=r.icon,e[1]=o):o=e[1];let i;e[2]!==r.label?(i=s.jsx("span",{className:"truncate group-data-[collapsible=icon]:hidden",children:r.label}),e[2]=r.label,e[3]=i):i=e[3];let l;e[4]!==r.isActive||e[5]!==r.label||e[6]!==r.onClick||e[7]!==o||e[8]!==i?(l=s.jsxs(Ae,{onClick:r.onClick,isActive:r.isActive,tooltip:r.label,children:[o,i]}),e[4]=r.isActive,e[5]=r.label,e[6]=r.onClick,e[7]=o,e[8]=i,e[9]=l):l=e[9];let n;return e[10]!==r.key||e[11]!==l?(n=s.jsx(ne,{children:l},r.key),e[10]=r.key,e[11]=l,e[12]=n):n=e[12],n}function hs(t){const e=E.c(12),{section:r}=t;switch(r.type){case"divider":{let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(kt,{className:"my-2"}),e[0]=o):o=e[0],o}case"spacer":{let o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1"}),e[1]=o):o=e[1],o}case"group":{const o=r.group.label,i=r.group.defaultExpanded;let l;e[2]!==r.group.items?(l=r.group.items.map(js),e[2]=r.group.items,e[3]=l):l=e[3];let n;return e[4]!==r.group.defaultExpanded||e[5]!==r.group.label||e[6]!==l?(n=s.jsx(xs,{label:o,defaultExpanded:i,children:l}),e[4]=r.group.defaultExpanded,e[5]=r.group.label,e[6]=l,e[7]=n):n=e[7],n}case"items":{let o;e[8]!==r.items?(o=r.items.map(gs),e[8]=r.items,e[9]=o):o=e[9];let i;return e[10]!==o?(i=s.jsx(je,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(ge,{children:s.jsx(ie,{className:"gap-0.5",children:o})})}),e[10]=o,e[11]=i):i=e[11],i}}}function gs(t){return s.jsx(it,{item:t},t.key)}function js(t){return s.jsx(it,{item:t},t.key)}function ot(t){const e=E.c(14),{sections:r,header:o,footer:i,additionalContent:l,variant:n,collapsible:a,contentClassName:d}=t,c=n===void 0?"sidebar":n,m=a===void 0?"icon":a;let f;e[0]!==d?(f=B("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",d),e[0]=d,e[1]=f):f=e[1];let u;e[2]!==r?(u=r.map(bs),e[2]=r,e[3]=u):u=e[3];let N;e[4]!==l||e[5]!==f||e[6]!==u?(N=s.jsxs(Ct,{className:f,children:[u,l]}),e[4]=l,e[5]=f,e[6]=u,e[7]=N):N=e[7];let x;return e[8]!==m||e[9]!==i||e[10]!==o||e[11]!==N||e[12]!==c?(x=s.jsxs(_t,{variant:c,collapsible:m,children:[o,N,i]}),e[8]=m,e[9]=i,e[10]=o,e[11]=N,e[12]=c,e[13]=x):x=e[13],x}function bs(t,e){return s.jsx(hs,{section:t},e)}ot.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,r)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(Q,{className:"h-full bg-sidebar-accent rounded-md"})},r))})};function ys(){const t=E.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(Q,{className:"h-8 w-full rounded-lg"}),s.jsx(Q,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function Ns(t){const e=E.c(12),{organizationId:r,currentProjectSlug:o,onSelect:i}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={suspense:!0},e[0]=l):l=e[0];const{data:n}=Ye(r,l);let a,d;if(e[1]!==o||e[2]!==i||e[3]!==n){d=Symbol.for("react.early_return_sentinel");e:{const m=n?.filter(vs)??[];if(m.length===0){let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=u):u=e[6],d=u;break e}let f;e[7]!==o||e[8]!==i?(f=u=>{const N=o===u.slug,x=u.ui?.themeColor??"#3B82F6";return s.jsxs(Y,{className:B("gap-2.5",N&&"bg-accent"),onClick:()=>i(u.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:{backgroundColor:x},children:u.ui?.icon?s.jsx("img",{src:u.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:u.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:u.name}),N&&s.jsx(ue,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},u.id)},e[7]=o,e[8]=i,e[9]=f):f=e[9],a=m.map(f)}e[1]=o,e[2]=i,e[3]=n,e[4]=a,e[5]=d}else a=e[4],d=e[5];if(d!==Symbol.for("react.early_return_sentinel"))return d;let c;return e[10]!==a?(c=s.jsx(s.Fragment,{children:a}),e[10]=a,e[11]=c):c=e[11],c}function vs(t){return t.slug!==K}function Ss(t){let e=0;for(let o=0;o<t.length;o++)e=t.charCodeAt(o)+((e<<5)-e);const r=Math.abs(e)%360;return{backgroundColor:`hsl(${r} 55% 70%)`,color:`hsl(${r} 55% 20%)`}}function lt(t){const e=E.c(44),{isCollapsed:r,onCreateProject:o}=t,i=r===void 0?!1:r;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},e[0]=l):l=e[0];const{org:n,project:a}=Pe(l),{data:d}=ae.useListOrganizations(),c=Ie(),m=d?.find(_=>_.slug===n),[f,u]=T.useState(!1),[N]=_e(),x=N.experimental_projects,h=a===K,{data:j}=Ve(m?.id??"",h?"":a??"");let k;e[1]!==n?(k=(_,q)=>_.slug===n?-1:q.slug===n?1:_.name.localeCompare(q.name),e[1]=n,e[2]=k):k=e[2];const p=[...d??[]].sort(k);let b;e[3]!==c||e[4]!==n?(b=()=>{n&&c({to:"/$org/$project",params:{org:n,project:K}})},e[3]=c,e[4]=n,e[5]=b):b=e[5];const v=b;let g;e[6]!==c||e[7]!==n?(g=_=>{n&&c({to:"/$org/$project",params:{org:n,project:_}})},e[6]=c,e[7]=n,e[8]=g):g=e[8];const S=g;let y;e[9]!==c?(y=_=>{c({to:"/$org/$project",params:{org:_,project:K}})},e[9]=c,e[10]=y):y=e[10];const $=y;let z;e[11]!==o?(z=o?()=>o():void 0,e[11]=o,e[12]=z):z=e[12];const C=z;let w;e[13]!==c||e[14]!==n||e[15]!==a?(w=()=>{if(!n||!a)return;const _=a===K;c({to:"/$org/$project",params:{org:n,project:a},search:q=>({...q,settings:_?"org.general":`project:${a}:general`})})},e[13]=c,e[14]=n,e[15]=a,e[16]=w):w=e[16];const L=w,O=Je,F=i?"w-auto pr-1.5":"w-full";let M;e[17]!==F?(M=B("flex items-center gap-3 rounded-md p-1.5 pr-2 text-left hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring min-h-[2.75rem]",F),e[17]=F,e[18]=M):M=e[18];const R=h?s.jsx("div",{className:B("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",i?"size-6":"size-8"),style:m?.logo?void 0:Ss(m?.name??""),children:m?.logo?s.jsx("img",{src:m.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:B("font-semibold leading-none",i?"text-[9px]":"text-xs"),children:(m?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:B("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",i?"size-6":"size-8"),style:{backgroundColor:j?.ui?.themeColor??"#60a5fa"},children:j?.ui?.icon?s.jsx("img",{src:j.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:B("font-semibold text-white",i?"text-xs":"text-lg"),children:(j?.name??a??"?").charAt(0).toUpperCase()})});let P;e[19]!==m?.name||e[20]!==j?.name||e[21]!==x||e[22]!==i||e[23]!==h||e[24]!==a?(P=!i&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:x?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:m?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:h?"Studio":j?.name??a??""})]}):s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:m?.name??"Select org"})}),s.jsx(Ut,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=m?.name,e[20]=j?.name,e[21]=x,e[22]=i,e[23]=h,e[24]=a,e[25]=P):P=e[25];let D;e[26]!==M||e[27]!==R||e[28]!==P?(D=s.jsx(Xe,{asChild:!0,children:s.jsxs("button",{type:"button",className:M,children:[R,P]})}),e[26]=M,e[27]=R,e[28]=P,e[29]=D):D=e[29];const A=Qe,U="start",ee="bottom",te="w-64 flex flex-col gap-0.5",se=ks,V=x?s.jsxs(s.Fragment,{children:[s.jsxs(Y,{className:B("gap-2.5",h&&"bg-accent"),onClick:v,children:[s.jsx(me,{url:m?.logo??"",fallback:m?.name??"",size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",m?.name]}),h&&s.jsx(ue,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]}),s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Projects"}),m&&s.jsx(T.Suspense,{fallback:s.jsx(ys,{}),children:s.jsx(Ns,{organizationId:m.id,currentProjectSlug:a,orgSlug:n??"",onSelect:S})}),C&&s.jsxs(Y,{className:"gap-2.5",onClick:C,children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),s.jsx(he,{}),s.jsxs(Vt,{children:[s.jsxs(Yt,{className:"gap-2.5",children:[s.jsx(qe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),s.jsxs(Zt,{className:"w-48 flex flex-col gap-0.5",children:[p.map(_=>s.jsxs(Y,{className:B("gap-2.5",_.slug===n&&"bg-accent"),onClick:()=>$(_.slug),children:[s.jsx(me,{url:_.logo??"",fallback:_.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:_.name}),_.slug===n&&s.jsx(ue,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},_.id)),s.jsx(he,{}),s.jsxs(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:L,children:[s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]}):s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Organizations"}),p.map(_=>s.jsxs(Y,{className:B("gap-2.5",_.slug===n&&"bg-accent"),onClick:()=>$(_.slug),children:[s.jsx(me,{url:_.logo??"",fallback:_.name,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:_.name}),_.slug===n&&s.jsx(ue,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},_.id)),s.jsxs(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:L,children:[s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]});let H;e[30]!==A||e[31]!==se||e[32]!==V?(H=s.jsx(A,{align:U,side:ee,className:te,onCloseAutoFocus:se,children:V}),e[30]=A,e[31]=se,e[32]=V,e[33]=H):H=e[33];let Z;e[34]!==O||e[35]!==D||e[36]!==H?(Z=s.jsxs(O,{children:[D,H]}),e[34]=O,e[35]=D,e[36]=H,e[37]=Z):Z=e[37];let W;e[38]!==f||e[39]!==u?(W=s.jsx(Qt,{open:f,onOpenChange:u}),e[38]=f,e[39]=u,e[40]=W):W=e[40];let G;return e[41]!==Z||e[42]!==W?(G=s.jsxs(s.Fragment,{children:[Z,W]}),e[41]=Z,e[42]=W,e[43]=G):G=e[43],G}function ks(t){return t.preventDefault()}lt.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(Q,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(Q,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function ze(t){const e=E.c(23),{onCreateProject:r}=t,{state:o}=We(),i=o==="collapsed",[l,n]=Oe();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const{org:d,project:c}=Pe(a),{location:m}=Ce(),f=m.pathname===`/${d}/${c}`||m.pathname===`/${d}/${c}/`;let u;e[1]!==n?(u=()=>{n(Cs)},e[1]=n,e[2]=u):u=e[2];const N=u;let x;e[3]!==i||e[4]!==r?(x=s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(lt,{isCollapsed:i,onCreateProject:r})}),e[3]=i,e[4]=r,e[5]=x):x=e[5];const h=i||f?"max-w-0 opacity-0 pointer-events-none":"max-w-[2rem] opacity-100";let j;e[6]!==h?(j=B("flex items-center gap-0.5 shrink-0 overflow-hidden transition-[max-width,opacity] duration-300 ease-[var(--ease-out-quart)]",h),e[6]=h,e[7]=j):j=e[7];const k=l&&"bg-sidebar-accent text-sidebar-foreground";let p;e[8]!==k?(p=B("size-7 hover:bg-sidebar-accent text-sidebar-foreground/50 hover:text-sidebar-foreground",k),e[8]=k,e[9]=p):p=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(nt,{size:14,className:"text-inherit"}),e[10]=b):b=e[10];let v;e[11]!==p||e[12]!==N?(v=s.jsx(Gt,{asChild:!0,children:s.jsx(Se,{variant:"ghost",size:"icon",className:p,onClick:N,"aria-label":"Toggle Decopilot",children:b})}),e[11]=p,e[12]=N,e[13]=v):v=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(qt,{side:"bottom",children:"Toggle Decopilot"}),e[14]=g):g=e[14];let S;e[15]!==v?(S=s.jsxs(Kt,{children:[v,g]}),e[15]=v,e[16]=S):S=e[16];let y;e[17]!==S||e[18]!==j?(y=s.jsx("div",{className:j,children:S}),e[17]=S,e[18]=j,e[19]=y):y=e[19];let $;return e[20]!==y||e[21]!==x?($=s.jsx(Be,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(ie,{children:s.jsx(ne,{children:s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[x,y]})})})}),e[20]=y,e[21]=x,e[22]=$):$=e[22],$}function Cs(t){return!t}ze.Skeleton=function(){return s.jsx(Be,{className:"px-3",children:s.jsx(ie,{children:s.jsx(ne,{children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 p-1.5",children:[s.jsx(Q,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(Q,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsxs("div",{className:"flex items-center gap-0.5",children:[s.jsx(Q,{className:"size-7 rounded-lg bg-sidebar-accent"}),s.jsx(Q,{className:"size-7 rounded-lg bg-sidebar-accent"})]})]})})})})};function _s(t){const e=E.c(50),{user:r,userImage:o}=t,{open:i}=Ke(),[l,n]=T.useState(!1);let a;e[0]!==r.email||e[1]!==r.id||e[2]!==r.name?(a=()=>{const ee=`ID: ${r.id}
|
|
2
|
+
Name: ${r.name||"N/A"}
|
|
3
|
+
Email: ${r.email}`;navigator.clipboard.writeText(ee),n(!0),le.success("User info copied to clipboard"),setTimeout(()=>n(!1),2e3)},e[0]=r.email,e[1]=r.id,e[2]=r.name,e[3]=a):a=e[3];const d=a,c=r.name||r.email||"U";let m;e[4]!==c||e[5]!==o?(m=s.jsx(me,{url:o,fallback:c,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=c,e[5]=o,e[6]=m):m=e[6];const f=r.name||"User";let u;e[7]!==f?(u=s.jsx("div",{className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:s.jsx("div",{className:"text-sm font-medium truncate text-sidebar-foreground leading-none",children:f})}),e[7]=f,e[8]=u):u=e[8];let N;e[9]!==m||e[10]!==u?(N=s.jsx(Xe,{asChild:!0,children:s.jsxs("button",{className:"flex w-full h-8 items-center gap-2 rounded-md px-1 hover:bg-sidebar-accent transition-colors text-left min-w-0",children:[m,u]})}),e[9]=m,e[10]=u,e[11]=N):N=e[11];const x=r.name||r.email||"U";let h;e[12]!==x||e[13]!==o?(h=s.jsx(me,{url:o,fallback:x,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=x,e[13]=o,e[14]=h):h=e[14];const j=r.name||"User";let k;e[15]!==j?(k=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=k):k=e[16];let p;e[17]!==r.email?(p=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:r.email}),e[17]=r.email,e[18]=p):p=e[18];let b;e[19]!==k||e[20]!==p?(b=s.jsxs("div",{className:"flex-1 min-w-0",children:[k,p]}),e[19]=k,e[20]=p,e[21]=b):b=e[21];let v;e[22]!==l?(v=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:l?s.jsx(ue,{size:14,className:"text-green-600"}):s.jsx(Jt,{size:14,className:"text-muted-foreground"})}),e[22]=l,e[23]=v):v=e[23];let g;e[24]!==d||e[25]!==b||e[26]!==v||e[27]!==h?(g=s.jsxs(Y,{onClick:d,className:"gap-2.5 group",children:[h,b,v]}),e[24]=d,e[25]=b,e[26]=v,e[27]=h,e[28]=g):g=e[28];let S;e[29]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(he,{}),e[29]=S):S=e[29];let y;e[30]!==i?(y=()=>i("account.preferences"),e[30]=i,e[31]=y):y=e[31];let $,z;e[32]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),z=s.jsx("span",{children:"Settings"}),e[32]=$,e[33]=z):($=e[32],z=e[33]);let C;e[34]!==y?(C=s.jsxs(Y,{className:"gap-2.5",onClick:y,children:[$,z]}),e[34]=y,e[35]=C):C=e[35];let w;e[36]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(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(Xt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=w):w=e[36];let L;e[37]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(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(ts,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=L):L=e[37];let O;e[38]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(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(ft,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=O):O=e[38];let F;e[39]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(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(Te,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=F):F=e[39];let M,R;e[40]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(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(es,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),R=s.jsx(he,{}),e[40]=M,e[41]=R):(M=e[40],R=e[41]);let P;e[42]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsxs(Y,{className:"gap-2.5",onClick:ws,children:[s.jsx(rt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=P):P=e[42];let D;e[43]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.131.0"]})}),e[43]=D):D=e[43];let A;e[44]!==g||e[45]!==C?(A=s.jsxs(Qe,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:$s,children:[g,S,C,w,L,O,F,M,R,P,D]}),e[44]=g,e[45]=C,e[46]=A):A=e[46];let U;return e[47]!==A||e[48]!==N?(U=s.jsxs(Je,{children:[N,A]}),e[47]=A,e[48]=N,e[49]=U):U=e[49],U}function ws(){return ae.signOut()}function $s(t){return t.preventDefault()}function at(){const t=E.c(7),{data:e}=ae.useSession();if(!e?.user){let d;return t[0]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(me,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=d):d=t[0],d}const r=e.user,o=r.name??void 0;let i;t[1]!==o||t[2]!==r?(i={...r,name:o},t[1]=o,t[2]=r,t[3]=i):i=t[3];const l=i,n=r.image;let a;return t[4]!==n||t[5]!==l?(a=s.jsx(_s,{user:l,userImage:n}),t[4]=n,t[5]=l,t[6]=a):a=t[6],a}function zs({invitation:t}){const[e,r]=T.useState(!1),[o,i]=T.useState(!1),l=xt(),n=async()=>{r(!0);try{const d=await ae.organization.acceptInvitation({invitationId:t.id});if(d.error)le.error(d.error.message),r(!1);else{const c=await ae.organization.setActive({organizationId:t.organizationId});le.success("Invitation accepted!");const m=c?.data?.slug;window.location.href=m?`/${m}`:"/"}}catch{le.error("Failed to accept invitation"),r(!1)}},a=async()=>{i(!0);try{const d=await ae.organization.rejectInvitation({invitationId:t.id});d.error?(le.error(d.error.message),i(!1)):(le.success("Invitation declined"),l.invalidateQueries())}catch{le.error("Failed to decline invitation"),i(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"You've been invited to join"}),s.jsx("p",{className:"text-sm font-medium truncate",children:t.organizationName??"Unknown organization"})]}),s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s.jsx(Se,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:n,disabled:e||o,"aria-label":"Accept invitation",children:s.jsx(ue,{size:14})}),s.jsx(Se,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:a,disabled:e||o,"aria-label":"Decline invitation",children:s.jsx(is,{size:14})})]})]})}function Is(){const t=T.useContext(pt),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(o=>o.status==="pending"&&new Date(o.expiresAt)>new Date)}class Ps extends T.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,r){}render(){return this.state.hasError?null:this.props.children}}const As="gateway-chip-period";function Os(){try{const t=localStorage.getItem(As);if(t==="daily"||t==="weekly"||t==="monthly")return t}catch{}return"daily"}function Ts(t,e){if(!e||e<=0)return"text-foreground/70";const r=t/e;return r<=.05?"text-destructive":r<=.2?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Ms(t){return t>=90?"text-destructive":t>=70?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Es(t){const e=E.c(42),{connectionId:r}=t,{open:o}=Ke(),{org:i}=fe();let l;e[0]!==r||e[1]!==i.id?(l={connectionId:r,orgId:i.id},e[0]=r,e[1]=i.id,e[2]=l):l=e[2];const n=Mt(l);let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a={},e[3]=a):a=e[3];let d;e[4]!==n?(d={client:n,toolName:"GATEWAY_USAGE",toolArguments:a,staleTime:6e4,select:Ds},e[4]=n,e[5]=d):d=e[5];const{data:c}=ls(d),m=c?.billing.mode??"prepaid",f=c?.limit.total??null,u=c?.limit.remaining??0;let N;e[6]!==c?.usage?(N=c?.usage??{total:0,daily:0,weekly:0,monthly:0},e[6]=c?.usage,e[7]=N):N=e[7];const x=N;let h,j,k,p,b,v,g;if(e[8]!==m||e[9]!==h||e[10]!==u||e[11]!==f||e[12]!==o||e[13]!==x){let $;if(m==="prepaid"){h="Credits";let C;e[21]!==u?(C=u.toFixed(2),e[21]=u,e[22]=C):C=e[22],j=`$${C}`,$=Ts(u,f)}else if(f!=null&&f>0){const C=f-u;let w;e[23]!==f||e[24]!==C?(w=Math.round(C/f*100),e[23]=f,e[24]=C,e[25]=w):w=e[25];const L=Math.min(100,w);h="Usage",j=`${L}%`,$=Ms(L)}else{const C=Os(),w=C==="daily"?x.daily:C==="weekly"?x.weekly:x.monthly,L=C==="daily"?"/day":C==="weekly"?"/wk":"/mo";h="Usage";let O;e[26]!==w?(O=w.toFixed(2),e[26]=w,e[27]=O):O=e[27],j=`$${O}${L}`,$="text-foreground/70"}p="button",e[28]!==o?(b=()=>o("org.billing"),e[28]=o,e[29]=b):b=e[29],v="group-data-[collapsible=icon]:hidden flex items-center justify-between w-full px-2 py-1.5 rounded-md hover:bg-sidebar-accent transition-colors";let z;e[30]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Ft,{size:13,className:"text-muted-foreground/60 shrink-0"}),e[30]=z):z=e[30],e[31]!==h?(g=s.jsxs("div",{className:"flex items-center gap-1.5",children:[z,s.jsx("span",{className:"text-xs text-muted-foreground",children:h})]}),e[31]=h,e[32]=g):g=e[32],k=B("text-xs font-medium tabular-nums",$),e[8]=m,e[9]=h,e[10]=u,e[11]=f,e[12]=o,e[13]=x,e[14]=k,e[15]=p,e[16]=b,e[17]=v,e[18]=g,e[19]=h,e[20]=j}else k=e[14],p=e[15],b=e[16],v=e[17],g=e[18],h=e[19],j=e[20];let S;e[33]!==k||e[34]!==j?(S=s.jsx("span",{className:k,children:j}),e[33]=k,e[34]=j,e[35]=S):S=e[35];let y;return e[36]!==S||e[37]!==p||e[38]!==b||e[39]!==v||e[40]!==g?(y=s.jsxs("button",{type:p,onClick:b,className:v,children:[g,S]}),e[36]=S,e[37]=p,e[38]=b,e[39]=v,e[40]=g,e[41]=y):y=e[41],y}function Ds(t){return t.structuredContent}function Ls(){const t=E.c(4),e=os();let r;t[0]!==e?(r=e.find(Rs),t[0]=e,t[1]=r):r=t[1];const o=r;if(!o?.id)return null;let i;return t[2]!==o.id?(i=s.jsx(Es,{connectionId:o.id}),t[2]=o.id,t[3]=i):i=t[3],i}function Rs(t){return as(t.connection_url)}function Us(){const t=E.c(13),e=Is();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ps,{children:s.jsx(T.Suspense,{fallback:null,children:s.jsx(Ls,{})})}),t[0]=r):r=t[0];let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(at,{})}),t[1]=o):o=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(rs,{asChild:!0,children:s.jsx(Se,{variant:"ghost",size:"icon",className:"size-8 text-sidebar-foreground/50 hover:text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Open inbox",children:s.jsx(Re,{size:16})})}),t[2]=i):i=t[2];let l;t[3]!==e.length?(l=e.length>0&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 ring-2 ring-sidebar pointer-events-none"}),t[3]=e.length,t[4]=l):l=t[4];let n;t[5]!==l?(n=s.jsxs("div",{className:"relative",children:[i,l]}),t[5]=l,t[6]=n):n=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"px-4 py-3 border-b border-border shrink-0",children:s.jsx("h3",{className:"text-sm font-medium",children:"Inbox"})}),t[7]=a):a=t[7];let d;t[8]!==e?(d=s.jsxs(ss,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[a,e.length===0?s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[s.jsx(Re,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"No messages or invites pending"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Messages, workspace and project invitations will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:e.map(Fs)})]}),t[8]=e,t[9]=d):d=t[9];let c;return t[10]!==n||t[11]!==d?(c=s.jsxs(wt,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[r,s.jsx(ie,{children:s.jsx(ne,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[o,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(ns,{children:[n,d]})})]})})})]}),t[10]=n,t[11]=d,t[12]=c):c=t[12],c}function Fs(t){return s.jsx(zs,{invitation:t},t.id)}function Hs(t){const e=E.c(11),{project:r}=t,o=r.ui?.themeColor??"#60a5fa";if(r.ui?.icon){let d;return e[0]!==r.ui.icon?(d=s.jsx("img",{src:r.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=r.ui.icon,e[1]=d):d=e[1],d}let i;e[2]!==o?(i={backgroundColor:o},e[2]=o,e[3]=i):i=e[3];let l;e[4]!==r.name?(l=r.name.charAt(0).toUpperCase(),e[4]=r.name,e[5]=l):l=e[5];let n;e[6]!==l?(n=s.jsx("span",{className:"text-[10px] font-medium text-white",children:l}),e[6]=l,e[7]=n):n=e[7];let a;return e[8]!==i||e[9]!==n?(a=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:i,children:n}),e[8]=i,e[9]=n,e[10]=a):a=e[10],a}function Ws(t){const e=E.c(14),{project:r}=t,o=Ie(),{org:i}=fe();let l;e[0]!==o||e[1]!==i.slug||e[2]!==r.slug?(l=()=>{o({to:"/$org/$project",params:{org:i.slug,project:r.slug}})},e[0]=o,e[1]=i.slug,e[2]=r.slug,e[3]=l):l=e[3];let n;e[4]!==r?(n=s.jsx(Hs,{project:r}),e[4]=r,e[5]=n):n=e[5];let a;e[6]!==r.name?(a=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:r.name}),e[6]=r.name,e[7]=a):a=e[7];let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(cs,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=d):d=e[8];let c;return e[9]!==r.name||e[10]!==l||e[11]!==n||e[12]!==a?(c=s.jsx(ne,{children:s.jsxs(Ae,{onClick:l,tooltip:r.name,children:[n,a,d]})}),e[9]=r.name,e[10]=l,e[11]=n,e[12]=a,e[13]=c):c=e[13],c}function Bs(){const t=E.c(55),{org:e}=fe(),{data:r,isLoading:o}=Ye(e.id),[i,l]=T.useState(!0),[n,a]=T.useState(!1);let d,c,m,f,u,N,x,h,j,k,p,b,v;if(t[0]!==o||t[1]!==i||t[2]!==r){v=Symbol.for("react.early_return_sentinel");e:{const O=r?.filter(qs)??[];if(o){let U;t[16]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(ne,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(Q,{className:"h-4 w-4 rounded"}),s.jsx(Q,{className:"h-4 flex-1"})]})}),t[16]=U):U=t[16];let ee;t[17]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(je,{className:"py-0 px-0",children:s.jsx(ge,{children:s.jsxs(ie,{className:"gap-0.5",children:[U,s.jsx(ne,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(Q,{className:"h-4 w-4 rounded"}),s.jsx(Q,{className:"h-4 flex-1"})]})})]})})}),t[17]=ee):ee=t[17],v=ee;break e}b="group/projects-section mt-2",u=Pt,k=i,p=l,f=je,j="py-0 px-0",m=ge,c=ie,x="gap-0.5";let F;t[18]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=F):F=t[18];const M=!i&&"-rotate-90";let R;t[19]!==M?(R=B("text-muted-foreground shrink-0 transition-transform duration-200",M),t[19]=M,t[20]=R):R=t[20];let P;t[21]!==R?(P=s.jsx(At,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[F,s.jsx(Ze,{size:12,className:R})]})}),t[21]=R,t[22]=P):P=t[22];let D;t[23]===Symbol.for("react.memo_cache_sentinel")?(D=()=>a(!0),t[23]=D):D=t[23];let A;t[24]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx("button",{type:"button",onClick:D,title:"Create new project",className:"opacity-0 group-hover/projects-section:opacity-100 transition-opacity text-muted-foreground hover:text-foreground flex items-center justify-center h-4 rounded shrink-0",children:s.jsx(xe,{size:16})}),t[24]=A):A=t[24],t[25]!==P?(h=s.jsx(ne,{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs("div",{className:"flex h-6 w-full items-center gap-1 rounded-md pl-1.5 pr-0.5 hover:bg-sidebar-accent transition-colors",children:[P,A]})}),t[25]=P,t[26]=h):h=t[26],d=Ot,N=O.length===0?s.jsx(ne,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):O.map(Gs)}t[0]=o,t[1]=i,t[2]=r,t[3]=d,t[4]=c,t[5]=m,t[6]=f,t[7]=u,t[8]=N,t[9]=x,t[10]=h,t[11]=j,t[12]=k,t[13]=p,t[14]=b,t[15]=v}else d=t[3],c=t[4],m=t[5],f=t[6],u=t[7],N=t[8],x=t[9],h=t[10],j=t[11],k=t[12],p=t[13],b=t[14],v=t[15];if(v!==Symbol.for("react.early_return_sentinel"))return v;let g;t[27]!==d||t[28]!==N?(g=s.jsx(d,{children:N}),t[27]=d,t[28]=N,t[29]=g):g=t[29];let S;t[30]!==c||t[31]!==x||t[32]!==h||t[33]!==g?(S=s.jsxs(c,{className:x,children:[h,g]}),t[30]=c,t[31]=x,t[32]=h,t[33]=g,t[34]=S):S=t[34];let y;t[35]!==m||t[36]!==S?(y=s.jsx(m,{children:S}),t[35]=m,t[36]=S,t[37]=y):y=t[37];let $;t[38]!==f||t[39]!==y||t[40]!==j?($=s.jsx(f,{className:j,children:y}),t[38]=f,t[39]=y,t[40]=j,t[41]=$):$=t[41];let z;t[42]!==u||t[43]!==$||t[44]!==k||t[45]!==p?(z=s.jsx(u,{open:k,onOpenChange:p,children:$}),t[42]=u,t[43]=$,t[44]=k,t[45]=p,t[46]=z):z=t[46];let C;t[47]!==z||t[48]!==b?(C=s.jsx("div",{className:b,children:z}),t[47]=z,t[48]=b,t[49]=C):C=t[49];let w;t[50]!==n?(w=s.jsx(Ge,{open:n,onOpenChange:a}),t[50]=n,t[51]=w):w=t[51];let L;return t[52]!==C||t[53]!==w?(L=s.jsxs(s.Fragment,{children:[C,w]}),t[52]=C,t[53]=w,t[54]=L):L=t[54],L}function Gs(t){return s.jsx(Ws,{project:t},t.id)}function qs(t){return t.slug!==K}function Ks(){const t=E.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(T.Suspense,{fallback:s.jsx(je,{className:"py-0 px-0",children:s.jsx(ge,{children:s.jsx(ie,{className:"gap-0.5",children:s.jsx(ne,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(Q,{className:"h-4 w-4 rounded"}),s.jsx(Q,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Bs,{})}),t[0]=e):e=t[0],e}function Vs(t){const e=E.c(13),{onCreateProject:r}=t,[o]=_e(),i=ps(),{locator:l}=fe();let n;e[0]!==l?(n=$e.isOrgAdminProject(l),e[0]=l,e[1]=n):n=e[1];const a=n;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(ze.Skeleton,{}),e[2]=d):d=e[2];let c;e[3]!==r?(c=s.jsx(T.Suspense,{fallback:d,children:s.jsx(ze,{onCreateProject:r})}),e[3]=r,e[4]=c):c=e[4];let m;e[5]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(Us,{}),e[5]=m):m=e[5];let f;e[6]!==a||e[7]!==o?(f=a&&o.experimental_projects?s.jsx(Ue,{children:s.jsx(T.Suspense,{fallback:null,children:s.jsx(Ks,{})})}):null,e[6]=a,e[7]=o,e[8]=f):f=e[8];let u;return e[9]!==i||e[10]!==c||e[11]!==f?(u=s.jsx(ot,{sections:i,header:c,footer:m,additionalContent:f}),e[9]=i,e[10]=c,e[11]=f,e[12]=u):u=e[12],u}function Ys(){const t=E.c(2),r=Ce().location.href;let o;return t[0]!==r?(o=s.jsx(bt,{to:"/login",search:{next:r},replace:!0}),t[0]=r,t[1]=o):o=t[1],o}function Zs(t){const e=E.c(6),{children:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(ht,{children:s.jsx(Fe,{})}),e[0]=o):o=e[0];let i;e[1]!==r?(i=s.jsx(gt,{children:r}),e[1]=r,e[2]=i):i=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(jt,{children:s.jsx(Ys,{})}),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 Qs(t){const e=E.c(10),{children:r,className:o}=t,[,i]=T.useTransition();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Ee.decoChatPanelWidth(),e[0]=l):l=e[0];const[n,a]=Me(l,30);let d;e[1]!==a?(d=u=>i(()=>a(u)),e[1]=a,e[2]=d):d=e[2];const c=d;let m;e[3]!==o?(m=B("min-w-0",o),e[3]=o,e[4]=m):m=e[4];let f;return e[5]!==n||e[6]!==r||e[7]!==c||e[8]!==m?(f=s.jsx(et,{defaultSize:n,minSize:20,className:m,onResize:c,children:r}),e[5]=n,e[6]=r,e[7]=c,e[8]=m,e[9]=f):f=e[9],f}function Js(t){const e=E.c(5),{children:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Ee.sidebarOpen(),e[0]=o):o=e[0];const[i,l]=Me(o,!0);let n;return e[1]!==r||e[2]!==l||e[3]!==i?(n=s.jsx($t,{open:i,onOpenChange:l,children:r}),e[1]=r,e[2]=l,e[3]=i,e[4]=n):n=e[4],n}function Xs(t){const e=E.c(24),{isStudio:r,isHomeRoute:o,onCreateProject:i}=t,[l]=Oe();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Ee.decoChatPanelWidth(),e[0]=n):n=e[0];const[a]=Me(n,30),[d]=_e(),c=r&&d.experimental_projects?"":void 0,m=`${a}cqi`;let f;e[1]!==m?(f={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":m},e[1]=m,e[2]=f):f=e[2];const u=f;let N;e[3]!==i?(N=s.jsx(Vs,{onCreateProject:i}),e[3]=i,e[4]=N):N=e[4];let x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x={background:"transparent",containerType:"inline-size"},e[5]=x):x=e[5];let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h={overflow:"visible"},e[6]=h):h=e[6];let j;e[7]===Symbol.for("react.memo_cache_sentinel")?(j={overflow:"visible"},e[7]=j):j=e[7];const k=l&&"rounded-tr-[0.75rem] border-r";let p;e[8]!==k?(p=B("flex flex-col flex-1 min-h-0 bg-card overflow-hidden","border-t border-l border-sidebar-border","rounded-tl-[0.75rem]","transition-[border-radius] duration-200 ease-[var(--ease-out-quart)]",k),e[8]=k,e[9]=p):p=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(He,{})}),e[10]=b):b=e[10];let v;e[11]!==p?(v=s.jsx(et,{className:"min-w-0 flex flex-col",style:j,children:s.jsx("div",{className:p,children:b})}),e[11]=p,e[12]=v):v=e[12];let g;e[13]!==l||e[14]!==o?(g=!o&&s.jsxs(s.Fragment,{children:[s.jsx(ds,{className:"bg-sidebar"}),s.jsx(Qs,{className:B("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",l?"max-w-[var(--chat-panel-w)] bg-sidebar":"max-w-0"),children:s.jsx("div",{className:"h-full min-w-[var(--chat-panel-w)] pl-1.5 pr-1.5 pb-1.5",children:s.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden border border-sidebar-border shadow-sm",children:s.jsx(fs,{})})})})]}),e[13]=l,e[14]=o,e[15]=g):g=e[15];let S;e[16]!==v||e[17]!==g?(S=s.jsx(zt,{className:"pt-1.5",style:x,children:s.jsxs(ms,{direction:"horizontal",className:"h-full",style:h,children:[v,g]})}),e[16]=v,e[17]=g,e[18]=S):S=e[18];let y;return e[19]!==S||e[20]!==c||e[21]!==u||e[22]!==N?(y=s.jsxs(It,{className:"flex-1 bg-sidebar","data-studio":c,style:u,children:[N,S]}),e[19]=S,e[20]=c,e[21]=u,e[22]=N,e[23]=y):y=e[23],y}function er(){const{org:t,project:e}=Pe({strict:!1}),r=Ce(),[o,i]=T.useState(!1),l=r.location.pathname===`/${t}/${e}`||r.location.pathname===`/${t}/${e}/`,n=e??K,{data:a}=yt({queryKey:Nt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:m}=await ae.organization.setActive({organizationSlug:t});return{org:m,project:{slug:n,isOrgAdmin:n===K}}},gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1});if(!a)return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("header",{className:"h-12 flex items-center justify-end px-4 border-b border-border",children:s.jsx("div",{className:"w-fit",children:s.jsx(at,{})})}),s.jsx(He,{})]});if(!a.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const d={...a,project:{...a.project,slug:n,isOrgAdmin:n===K}},c=n===K;return s.jsxs(vt,{...d,children:[s.jsx(Js,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(X.Provider,{children:s.jsx(Xs,{isStudio:c,isHomeRoute:l,onCreateProject:()=>i(!0)})})})}),s.jsx(Ge,{open:o,onOpenChange:i})]})}function Mn(){const t=E.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Zs,{children:s.jsx(T.Suspense,{fallback:s.jsx(Fe,{}),children:s.jsx(er,{})})}),t[0]=e):e=t[0],e}export{Mn as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l,v as r,j as c}from"./index-
|
|
1
|
+
import{c as l,v as r,j as c}from"./index-SQyrFbfm.js";import{u as i,L as f}from"./localstorage-keys-seNkjiQl.js";const m={devMode:!1,experimental_projects:!1,experimental_tasks:!1,toolApprovalLevel:"none",enableNotifications:typeof Notification<"u"};function E(){const t=l.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=f.preferences(),t[0]=e):e=t[0],i(e,p)}function p(t){return{...m,...t}}function x(t){const e=l.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=r("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=c.jsx("div",{"data-slot":"skeleton",className:n,...o}),e[5]=o,e[6]=n,e[7]=a):a=e[7],a}export{x as S,E as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,v as d,z as m,j as a}from"./index-
|
|
1
|
+
import{c as C,v as d,z as m,j as a}from"./index-SQyrFbfm.js";const u=m("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=d(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-SQyrFbfm.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,H as C,I as y,G as I,M as T,W as M,X as H,U,c as z,v as g}from"./index-
|
|
1
|
+
import{r as c,j as i,H as C,I as y,G as I,M as T,W as M,X as H,U,c as z,v as g}from"./index-SQyrFbfm.js";var m="Switch",[A]=U(m),[q,L]=A(m),E=c.forwardRef((a,e)=>{const{__scopeSwitch:t,name:r,checked:s,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=a,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=I({prop:s,defaultProp:n??!1,onChange:k,caller:m});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:T(a.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.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=m;var P="SwitchThumb",R=c.forwardRef((a,e)=>{const{__scopeSwitch:t,...r}=a,s=L(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:a,control:e,checked:t,bubbles:r=!0,...s},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(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,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(a){return a?"checked":"unchecked"}var W=E,X=R;function D(a){const e=z.c(9);let t,r;e[0]!==a?({className:t,...r}=a,e[0]=a,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=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]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(X,{"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]!==s?(o=i.jsx(W,{"data-slot":"switch",className:s,...r,children:n}),e[6]=r,e[7]=s,e[8]=o):o=e[8],o}export{D as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,v as i,j as c}from"./index-
|
|
1
|
+
import{c as r,v as i,j as c}from"./index-SQyrFbfm.js";function d(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 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("[&_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 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: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 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("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 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("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 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("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{m as T,b as a,p as b,u as c,f as d,d as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as p,D as M,G as k,j as d,H as f,aC as P,T as S,U as F,Q as y,J as V,M as T,R as D,c as x,v as g}from"./index-
|
|
1
|
+
import{r as p,D as M,G as k,j as d,H as f,aC as P,T as S,U as F,Q as y,J as V,M as T,R as D,c as x,v as g}from"./index-SQyrFbfm.js";var m="Tabs",[G]=F(m,[y]),C=y(),[L,h]=G(m),w=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...v}=n,u=M(i),[c,b]=k({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:P(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(f.div,{dir:u,"data-orientation":o,...v,ref:e})})});w.displayName=m;var N="TabsList",j=p.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=C(a);return d.jsx(D,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(f.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=C(a),l=E(o.baseId,t),v=$(o.baseId,t),u=t===o.value;return d.jsx(V,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(f.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":v,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),v=$(i.baseId,t),u=t===i.value,c=p.useRef(u);return p.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(S,{present:r||u,children:({present:b})=>d.jsx(f.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:v,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=w,K=j,B=_,H=A;function J(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function O(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(H,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{Q as T,O as a,U as b,J as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as O,j as r,E as ae,r as Z,u as oe,b as ie,m as le,n as ne,K as G}from"./index-SQyrFbfm.js";import{C as ce,a as me}from"./collection-table-wrapper-DBwx2gIx.js";import{C as de,E as J}from"./collection-search-DzqDMmsG.js";import{P as _}from"./index-CEqBoYmq.js";import{u as ue,U as pe}from"./use-list-state-DV75afxy.js";import{f as fe}from"./format-time-CMKyl-GC.js";import{a as he,u as xe}from"./constants-BI1zDvDn.js";import{B as ge,a as je,b as ye,c as Se}from"./breadcrumb-iMcSeqrc.js";import{B as b}from"./badge-DJljGfSq.js";import{i as be}from"./AlertCircle-DMi123Hf.js";import{c as _e}from"./AlertOctagon-CCKH4Uc0.js";import{n as X}from"./CheckDone01-DDiaEWe6.js";import{i as we}from"./Check-DbjhVroq.js";import{s as Ce}from"./Clock-6CL36KIE.js";import{i as ee}from"./Loading01-iCpUJopy.js";import{u as Ne,a as Te}from"./context-zCxbj6li.js";import"./dropdown-menu-Ba58pGV8.js";import"./ChevronRight-LHJ8rwy-.js";import"./ArrowDown-Dm6K3M_w.js";import"./ArrowUp-DGKREoz7.js";import"./Grid01-C539gpzb.js";import"./List-C14SKrVB.js";import"./tooltip-B-cok5ra.js";import"./index-6d87pWdr.js";import"./table-CXKu3mUr.js";import"./SearchMd-BuUjumBL.js";import"./input-C5Rjbbp-.js";import"./use-mobile-DdeKUhAR.js";import"./X-D4P057xM.js";import"./avatar-BsiGNuUz.js";import"./useQuery-Dn_bA-JU.js";import"./use-view-mode-DCV45z7u.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-virtual-mcp-BvS32srI.js";import"./use-connection-CM6laORR.js";import"./useMutation-DW2RCqOf.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-CVhayDor.js";import"./use-binding-8GNaEhUS.js";import"./binder-D8Bh9Fm3.js";import"./localstorage-keys-seNkjiQl.js";import"./skeleton-C7JMree5.js";import"./checkbox-QWODOgoz.js";import"./dialog-Do03H7yN.js";import"./select-CizyN8VQ.js";import"./ChevronDown-BfnyO-f-.js";import"./AlignLeft-QRMuLxyY.js";import"./ArrowLeft-C1YvpVtK.js";import"./Image01-6PD7bEds.js";import"./RefreshCcw01-ClpY_BRV.js";import"./Settings01-CK_34JoM.js";import"./useSuspenseInfiniteQuery-Dj-vji2c.js";import"./infiniteQueryObserver-VRNdHjKN.js";function ke(e){const s=O.c(9),{status:n,stepCount:l}=e;switch(n){case"in_progress":{let a;s[0]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsx(ee,{size:11,className:"animate-spin"}),s[0]=a):a=s[0];const c=l?`Running · step ${l}`:"Running";let m;return s[1]!==c?(m=r.jsxs(b,{variant:"secondary",className:"gap-1",children:[a,c]}),s[1]=c,s[2]=m):m=s[2],m}case"completed":{let a;return s[3]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"success",className:"gap-1",children:[r.jsx(we,{size:11}),"Completed"]}),s[3]=a):a=s[3],a}case"requires_action":{let a;return s[4]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"outline",className:"gap-1 text-blue-600 border-blue-600/40",children:[r.jsx(be,{size:11}),"Waiting for input"]}),s[4]=a):a=s[4],a}case"failed":{let a;return s[5]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"destructive",className:"gap-1",children:[r.jsx(_e,{size:11}),"Failed"]}),s[5]=a):a=s[5],a}case"expired":{let a;return s[6]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"outline",className:"gap-1 text-warning border-warning/40",children:[r.jsx(Ce,{size:11}),"Timed out"]}),s[6]=a):a=s[6],a}default:{let a;return s[7]!==n?(a=r.jsx(b,{variant:"secondary",className:"gap-1",children:n}),s[7]=n,s[8]=a):a=s[8],a}}}function ve(){const e=O.c(64),{org:s,project:n,locator:l}=oe();let a;e[0]!==s.id?(a={connectionId:he,orgId:s.id},e[0]=s.id,e[1]=a):a=e[1];const c=xe(a),m=ie(),{switchToThread:I}=Ne(),P=le();let w;e[2]===Symbol.for("react.memo_cache_sentinel")?(w=new Map,e[2]=w):w=e[2];const[R,Q]=Z.useState(w);let C;e[3]===Symbol.for("react.memo_cache_sentinel")?(C=o=>{Q(S=>{const i=new Map(S);return i.set(o.subject,o.data.stepCount),i})},e[3]=C):C=e[3];let d;e[4]!==l||e[5]!==P?(d=o=>{P.invalidateQueries({queryKey:G.taskThreads(l)}),o.data.status!=="in_progress"&&Q(S=>{const i=new Map(S);return i.delete(o.subject),i})},e[4]=l,e[5]=P,e[6]=d):d=e[6];let N;e[7]!==s.id||e[8]!==d?(N={orgId:s.id,onStep:C,onThreadStatus:d},e[7]=s.id,e[8]=d,e[9]=N):N=e[9],Te(N);let T;e[10]!==s.slug?(T={namespace:s.slug,resource:"tasks",defaultSortKey:"updated_at",defaultViewMode:"table"},e[10]=s.slug,e[11]=T):T=e[11];const t=ue(T);let u;e[12]!==l?(u=G.taskThreads(l),e[12]=l,e[13]=u):u=e[13];let p;e[14]!==c?(p=async()=>{if(!c)throw new Error("MCP client is not available");const o=await c.callTool({name:"COLLECTION_THREADS_LIST",arguments:{limit:100,offset:0}});return(o.structuredContent??o).items??[]},e[14]=c,e[15]=p):p=e[15];let k;e[16]!==u||e[17]!==p?(k={queryKey:u,queryFn:p,staleTime:3e4},e[16]=u,e[17]=p,e[18]=k):k=e[18];const{data:V}=ne(k);let v;if(e[19]!==V||e[20]!==t){const o=V.filter(Ee),S=t.searchTerm?o.filter(U=>U.title.toLowerCase().includes(t.searchTerm.toLowerCase())):o;let i;e[22]!==t?(i=(U,te)=>{const{sortKey:F,sortDirection:W}=t;if(!F||!W)return 0;const se=String(U[F]??""),re=String(te[F]??""),Y=se.localeCompare(re);return W==="asc"?Y:-Y},e[22]=t,e[23]=i):i=e[23],v=[...S].sort(i),e[19]=V,e[20]=t,e[21]=v}else v=e[21];const q=v;let D;e[24]!==m||e[25]!==s.slug||e[26]!==n.slug||e[27]!==I?(D=async o=>{await I(o.id),m({to:"/$org/$project",params:{org:s.slug,project:n.slug}})},e[24]=m,e[25]=s.slug,e[26]=n.slug,e[27]=I,e[28]=D):D=e[28];const A=D;let K;e[29]===Symbol.for("react.memo_cache_sentinel")?(K={id:"title",header:"Title",render:Me,cellClassName:"flex-1 min-w-0",sortable:!0},e[29]=K):K=e[29];let f;e[30]!==R?(f={id:"status",header:"Status",render:o=>r.jsx(ke,{status:o.status??"completed",stepCount:R.get(o.id)}),cellClassName:"w-40 shrink-0",sortable:!0},e[30]=R,e[31]=f):f=e[31];let M,E;e[32]===Symbol.for("react.memo_cache_sentinel")?(M={id:"created_by",header:"Created by",render:Ke,cellClassName:"w-32 shrink-0"},E={id:"updated_at",header:"Updated",render:De,cellClassName:"max-w-24 w-24 shrink-0",sortable:!0},e[32]=M,e[33]=E):(M=e[32],E=e[33]);let L;e[34]!==f?(L=[K,f,M,E],e[34]=f,e[35]=L):L=e[35];const H=L;let B;e[36]===Symbol.for("react.memo_cache_sentinel")?(B=r.jsx(_.Header.Left,{children:r.jsx(ge,{children:r.jsx(je,{children:r.jsx(ye,{children:r.jsx(Se,{children:"Tasks"})})})})}),e[36]=B):B=e[36];let z;e[37]===Symbol.for("react.memo_cache_sentinel")?(z=[{id:"title",label:"Title"},{id:"status",label:"Status"},{id:"updated_at",label:"Updated"}],e[37]=z):z=e[37];let h;e[38]!==t.handleSort||e[39]!==t.setViewMode||e[40]!==t.sortDirection||e[41]!==t.sortKey||e[42]!==t.viewMode?(h=r.jsxs(_.Header,{children:[B,r.jsx(_.Header.Right,{children:r.jsx(ce,{viewMode:t.viewMode,onViewModeChange:t.setViewMode,sortKey:t.sortKey,sortDirection:t.sortDirection,onSort:t.handleSort,sortOptions:z})})]}),e[38]=t.handleSort,e[39]=t.setViewMode,e[40]=t.sortDirection,e[41]=t.sortKey,e[42]=t.viewMode,e[43]=h):h=e[43];let x;e[44]!==t?(x=o=>{o.key==="Escape"&&(t.setSearch(""),o.target.blur())},e[44]=t,e[45]=x):x=e[45];let g;e[46]!==t.search||e[47]!==t.setSearch||e[48]!==x?(g=r.jsx(de,{value:t.search,onChange:t.setSearch,placeholder:"Search tasks...",onKeyDown:x}),e[46]=t.search,e[47]=t.setSearch,e[48]=x,e[49]=g):g=e[49];let j;e[50]!==t.search?(j=t.search?r.jsx(J,{image:r.jsx(X,{size:36,className:"text-muted-foreground"}),title:"No tasks found",description:`No tasks match "${t.search}"`}):r.jsx(J,{image:r.jsx("div",{className:"flex items-center justify-center w-16 h-16 rounded-full bg-muted",children:r.jsx(X,{size:32,className:"text-muted-foreground"})}),title:"No tasks yet",description:"Tasks will appear here when agents start processing work."}),e[50]=t.search,e[51]=j):j=e[51];let y;e[52]!==H||e[53]!==t.handleSort||e[54]!==t.sortDirection||e[55]!==t.sortKey||e[56]!==A||e[57]!==j||e[58]!==q?(y=r.jsx(_.Content,{children:r.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r.jsx(me,{columns:H,data:q,isLoading:!1,sortKey:t.sortKey,sortDirection:t.sortDirection,onSort:t.handleSort,onRowClick:A,emptyState:j})})}),e[52]=H,e[53]=t.handleSort,e[54]=t.sortDirection,e[55]=t.sortKey,e[56]=A,e[57]=j,e[58]=q,e[59]=y):y=e[59];let $;return e[60]!==h||e[61]!==g||e[62]!==y?($=r.jsxs(_,{children:[h,g,y]}),e[60]=h,e[61]=g,e[62]=y,e[63]=$):$=e[63],$}function De(e){return r.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:e.updated_at?fe(new Date(e.updated_at)):"—"})}function Ke(e){return r.jsx(pe,{id:e.created_by,size:"3xs"})}function Me(e){return r.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.title})}function Ee(e){return!e.hidden}function Et(){const e=O.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx(ae,{children:r.jsx(Z.Suspense,{fallback:r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(ee,{size:32,className:"animate-spin text-muted-foreground"})}),children:r.jsx(ve,{})})}),e[0]=s):s=e[0],s}export{Et as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o,v as n,j as l}from"./index-
|
|
1
|
+
import{c as o,v as n,j as l}from"./index-SQyrFbfm.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=n("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",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=l.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as x,c as At,b as yn,u as bn,j as s,B as I,O as kt,t as ne,v as U,
|
|
1
|
+
import{r as x,c as At,b as yn,u as bn,j as s,B as I,O as kt,t as ne,v as U,a_ as Dt}from"./index-SQyrFbfm.js";import{B as xn}from"./badge-DJljGfSq.js";import{P as lt,a as ct,b as ut}from"./popover-z5frSt2L.js";import{T as Ge,a as Qe,b as Xe}from"./tooltip-B-cok5ra.js";import{i as Je}from"./Check-DbjhVroq.js";import{a as $e}from"./Copy01-D-8l_DMV.js";import{n as Mt}from"./Download01-CgfyUwU5.js";import{i as wn}from"./FilterLines-B8t_9-Z3.js";import{i as Nn}from"./Key01-Dpc_Suzw.js";import{i as kn}from"./Play-BtkaH_yf.js";import{M as _t,n as Dn,a as Mn}from"./scroll-area-5Fho4sky.js";import{t as _n}from"./ChevronDown-BfnyO-f-.js";import{s as jn}from"./Clock-6CL36KIE.js";import{i as Cn}from"./ChevronRight-LHJ8rwy-.js";import{I as jt}from"./input-C5Rjbbp-.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 $o(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 Ao(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 Ho(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 qo(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,G as h,j as c,H as m,M as
|
|
1
|
+
import{r as x,G as h,j as c,H as m,M as k,bN as p,J as M,Q as T,U as S,D as A,R as D,z as F,c as P,v as C}from"./index-SQyrFbfm.js";var j="Toggle",_=x.forwardRef((r,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...a}=r,[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":r.disabled?"":void 0,...a,ref:e,onClick:k(r.onClick,()=>{r.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=S(v,[T]),z=T(),G=p.forwardRef((r,e)=>{const{type:l,...s}=r;if(l==="single"){const n=s;return c.jsx($,{...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}\``)});G.displayName=v;var[I,R]=w(v),$=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=h({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(I,{scope:r.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(y,{...a,ref:e})})}),B=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[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(I,{scope:r.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(y,{...a,ref:e})})});G.displayName=v;var[H,O]=w(v),y=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:a,dir:t,loop:o=!0,...i}=r,d=z(l),u=A(t),g={role:"group",dir:u,...i};return c.jsx(H,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(D,{asChild:!0,...d,orientation:a,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((r,e)=>{const l=R(f,r.__scopeToggleGroup),s=O(f,r.__scopeToggleGroup),n=z(r.__scopeToggleGroup),a=l.value.includes(r.value),t=s.disabled||r.disabled,o={...r,pressed:a,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:a,ref:i,children:c.jsx(b,{...o,ref:e})}):c.jsx(b,{...o,ref:e})});N.displayName=f;var b=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,value:s,...n}=r,a=R(f,l),t={role:"radio","aria-checked":r.pressed,"aria-pressed":void 0},o=a.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?a.onItemActivate(s):a.onItemDeactivate(s)}})}),U=G,J=N;const L=F("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(r){const e=P.c(20);let l,s,n,a,t;e[0]!==r?({className:s,variant:t,size:a,children:l,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=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]!==a||e[9]!==t?(i={variant:t,size:a},e[8]=a,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]!==a||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(U,{"data-slot":"toggle-group","data-variant":t,"data-size":a,className:o,...n,children:d}),e[14]=n,e[15]=a,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function K(r){const e=P.c(18);let l,s,n,a,t;e[0]!==r?({className:s,children:l,variant:t,size:a,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||a;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==a||e[10]!==t?(u=C(L({variant:o.variant||t,size:o.size||a}),"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]=a,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(J,{"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,K as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,b as X,r as H,j as t,_ as Y,$ as Z,O as ee}from"./index-
|
|
1
|
+
import{c as z,b as X,r as H,j as t,_ as Y,$ as Z,O as ee}from"./index-SQyrFbfm.js";import{a as te,C as se}from"./collection-table-wrapper-DBwx2gIx.js";import{E as B,C as oe}from"./collection-search-DzqDMmsG.js";import{I as ne}from"./integration-icon-uSS8hUch.js";import{B as K}from"./badge-DJljGfSq.js";import{C as ae}from"./card-CELBcYXV.js";import{T as G,a as P,b as W,c as re}from"./tooltip-B-cok5ra.js";import{g as ie,s as le}from"./types-B4OO-WrM.js";import{s as ce}from"./Eye-gghEeRfr.js";import{s as de}from"./Globe02-Cxhnprjc.js";import{V as me}from"./layout-8lg7tiiD.js";const fe=[{key:"readOnlyHint",label:"Read-only",Icon:ce,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:Y,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:Z,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:de,variant:"outline"}];function pe(s){const e=z.c(18),{annotations:r,_meta:m}=s;let u;e[0]!==m?(u=ie(m),e[0]=m,e[1]=u):u=e[1];const l=!!u;let h,x,c,f,d;if(e[2]!==r||e[3]!==l){d=Symbol.for("react.early_return_sentinel");e:{const n=r?fe.filter(I=>r[I.key]===!0):[];if(n.length===0&&!l){d=null;break e}h=re,x="flex gap-1 flex-nowrap",e[9]!==l?(c=l&&t.jsxs(G,{children:[t.jsx(P,{asChild:!0,children:t.jsx(K,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:t.jsx(le,{})})}),t.jsx(W,{children:"Interactive"})]}),e[9]=l,e[10]=c):c=e[10],f=n.map(ue)}e[2]=r,e[3]=l,e[4]=h,e[5]=x,e[6]=c,e[7]=f,e[8]=d}else h=e[4],x=e[5],c=e[6],f=e[7],d=e[8];if(d!==Symbol.for("react.early_return_sentinel"))return d;let p;e[11]!==x||e[12]!==c||e[13]!==f?(p=t.jsxs("div",{className:x,children:[c,f]}),e[11]=x,e[12]=c,e[13]=f,e[14]=p):p=e[14];let g;return e[15]!==h||e[16]!==p?(g=t.jsx(h,{children:p}),e[15]=h,e[16]=p,e[17]=g):g=e[17],g}function ue(s){const{label:e,Icon:r,variant:m}=s;return t.jsxs(G,{children:[t.jsx(P,{asChild:!0,children:t.jsx(K,{asChild:!0,variant:m,className:"size-6 p-1",children:t.jsx(r,{})})}),t.jsx(W,{children:e})]},e)}function Oe(s){const e=z.c(40),{tools:r,connectionId:m,org:u,onToolClick:l,showToolbar:h,emptyMessage:x,isLoading:c}=s,f=h===void 0?!0:h,d=x===void 0?"This connection doesn't have any tools yet.":x,p=c===void 0?!1:c,g=X(),[n,I]=H.useState(""),[j,F]=H.useState("table"),[a,M]=H.useState("name"),[i,V]=H.useState("asc");let w;e[0]!==i||e[1]!==a?(w=o=>{a===o?(V(Ne),i==="desc"&&M(void 0)):(M(o),V("asc"))},e[0]=i,e[1]=a,e[2]=w):w=e[2];const y=w;let _;e[3]!==m||e[4]!==g||e[5]!==l||e[6]!==u?(_=o=>{l?l(o):m&&u&&g({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:u,project:ee,connectionId:m,collectionName:"tools",itemId:encodeURIComponent(o.name)}})},e[3]=m,e[4]=g,e[5]=l,e[6]=u,e[7]=_):_=e[7];const k=_;let $;if(e[8]!==n||e[9]!==i||e[10]!==a||e[11]!==r){const o=!r||r.length===0?[]:n.trim()?(()=>{const E=n.toLowerCase();return r.filter(S=>S.name.toLowerCase().includes(E)||S.description&&S.description.toLowerCase().includes(E))})():r;$=!a||!i?o:[...o].sort((E,S)=>{const q=E[a]||"",Q=S[a]||"",U=String(q).localeCompare(String(Q));return i==="asc"?U:-U}),e[8]=n,e[9]=i,e[10]=a,e[11]=r,e[12]=$}else $=e[12];const T=$;let L;e[13]===Symbol.for("react.memo_cache_sentinel")?(L=[{id:"name",header:"Name",render:ye,sortable:!0},{id:"annotations",header:"Hints",render:je,cellClassName:"w-32 shrink-0"},{id:"description",header:"Description",render:ge,cellClassName:"flex-1",sortable:!0}],e[13]=L):L=e[13];const A=L;let O;e[14]===Symbol.for("react.memo_cache_sentinel")?(O=A.filter(xe).map(he),e[14]=O):O=e[14];const J=O;let N;e[15]!==y||e[16]!==f||e[17]!==i||e[18]!==a||e[19]!==j?(N=f&&t.jsx(me,{children:t.jsx(se,{viewMode:j,onViewModeChange:F,sortKey:a,sortDirection:i,onSort:y,sortOptions:J})}),e[15]=y,e[16]=f,e[17]=i,e[18]=a,e[19]=j,e[20]=N):N=e[20];let R;e[21]===Symbol.for("react.memo_cache_sentinel")?(R=o=>{o.key==="Escape"&&(I(""),o.target.blur())},e[21]=R):R=e[21];let v;e[22]!==n?(v=t.jsx(oe,{value:n,onChange:I,placeholder:"Search tools...",onKeyDown:R}),e[22]=n,e[23]=v):v=e[23];let b;e[24]!==d||e[25]!==y||e[26]!==k||e[27]!==p||e[28]!==n||e[29]!==i||e[30]!==a||e[31]!==T||e[32]!==j?(b=j==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:T.length===0?t.jsx(B,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":d}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:T.map(o=>t.jsx(ae,{className:"cursor-pointer transition-colors",onClick:()=>k(o),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(ne,{icon:null,name:o.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:o.name}),t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:o.description||"No description"})]})]})},o.name))})}):t.jsx(te,{columns:A,data:T,isLoading:p,sortKey:a,sortDirection:i,onSort:y,onRowClick:o=>k(o),emptyState:t.jsx(B,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":d})}),e[24]=d,e[25]=y,e[26]=k,e[27]=p,e[28]=n,e[29]=i,e[30]=a,e[31]=T,e[32]=j,e[33]=b):b=e[33];let C;e[34]!==v||e[35]!==b?(C=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[v,b]}),e[34]=v,e[35]=b,e[36]=C):C=e[36];let D;return e[37]!==C||e[38]!==N?(D=t.jsxs(t.Fragment,{children:[N,C]}),e[37]=C,e[38]=N,e[39]=D):D=e[39],D}function he(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function xe(s){return s.sortable}function ge(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function je(s){return t.jsx(pe,{annotations:s.annotations,_meta:s._meta})}function ye(s){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:s.name})}function Ne(s){return s==="asc"?"desc":s==="desc"?null:"asc"}export{Oe as T,pe as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,I as H,j as c,
|
|
1
|
+
import{r as i,I as H,j as c,aM as X,H as K,M as C,T as S,aN as Z,aC as J,G as Q,aL as ee,aO as G,aU as te,aV as oe,U as re,aZ as ne,aW as se,c as j,v as ae}from"./index-SQyrFbfm.js";import{R as ie}from"./index-6d87pWdr.js";var[O]=re("Tooltip",[G]),D=G(),$="TooltipProvider",le=700,L="tooltip.open",[ce,k]=O($),F=o=>{const{__scopeTooltip:e,delayDuration:t=le,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=i.useRef(!0),d=i.useRef(!1),a=i.useRef(0);return i.useEffect(()=>{const p=a.current;return()=>window.clearTimeout(p)},[]),c.jsx(ce,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:i.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=$;var R="Tooltip",[ue,_]=O(R),z=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,a=k(R,o.__scopeTooltip),p=D(e),[u,v]=i.useState(null),x=J(),f=i.useRef(0),h=l??a.disableHoverableContent,T=d??a.delayDuration,g=i.useRef(!1),[y,m]=Q({prop:r,defaultProp:n??!1,onChange:I=>{I?(a.onOpen(),document.dispatchEvent(new CustomEvent(L))):a.onClose(),s?.(I)},caller:R}),w=i.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,m(!0)},[m]),P=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),N=i.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,m(!0),f.current=0},T)},[T,m]);return i.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:i.useCallback(()=>{a.isOpenDelayedRef.current?N():E()},[a.isOpenDelayedRef,N,E]),onTriggerLeave:i.useCallback(()=>{h?P():(window.clearTimeout(f.current),f.current=0)},[P,h]),onOpen:E,onClose:P,disableHoverableContent:h,children:t})})};z.displayName=R;var A="TooltipTrigger",U=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(A,t),s=k(A,t),l=D(t),d=i.useRef(null),a=H(e,d,n.onTriggerChange),p=i.useRef(!1),u=i.useRef(!1),v=i.useCallback(()=>p.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(X,{asChild:!0,...l,children:c.jsx(K.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,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)})})});U.displayName=A;var M="TooltipPortal",[de,pe]=O(M,{forceMount:void 0}),B=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(Z,{asChild:!0,container:n,children:r})})})};B.displayName=M;var b="TooltipContent",V=i.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(Y,{side:n,...s,ref:e}):c.jsx(fe,{side:n,...s,ref:e})})}),fe=i.forwardRef((o,e)=>{const t=_(b,o.__scopeTooltip),r=k(b,o.__scopeTooltip),n=i.useRef(null),s=H(e,n),[l,d]=i.useState(null),{trigger:a,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=i.useCallback(()=>{d(null),v(!1)},[v]),f=i.useCallback((h,T)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},m=ge(y,g.getBoundingClientRect()),w=Te(y,m),E=me(T.getBoundingClientRect()),P=Ce([...w,...E]);d(P),v(!0)},[v]);return i.useEffect(()=>()=>x(),[x]),i.useEffect(()=>{if(a&&u){const h=g=>f(g,u),T=g=>f(g,a);return a.addEventListener("pointerleave",h),u.addEventListener("pointerleave",T),()=>{a.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",T)}}},[a,u,f,x]),i.useEffect(()=>{if(l){const h=T=>{const g=T.target,y={x:T.clientX,y:T.clientY},m=a?.contains(g)||u?.contains(g),w=!ye(y,l);m?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[a,u,l,p,x]),c.jsx(Y,{...o,ref:s})}),[ve,xe]=O(R,{isInside:!1}),he=ne("TooltipContent"),Y=i.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,a=_(b,t),p=D(t),{onClose:u}=a;return i.useEffect(()=>(document.addEventListener(L,u),()=>document.removeEventListener(L,u)),[u]),i.useEffect(()=>{if(a.trigger){const v=x=>{x.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[a.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":a.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(ie,{id:a.contentId,role:"tooltip",children:n||r})})]})})});V.displayName=b;var q="TooltipArrow",W=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return xe(q,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});W.displayName=q;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 Te(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 me(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],a=e[l],p=d.x,u=d.y,v=a.x,x=a.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=F,Ee=z,Pe=U,Re=B,_e=V,je=W;function Oe(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 Ae(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(Oe,{children:c.jsx(Ee,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function ke(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 Me(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=ae("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 a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx(je,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=a):a=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,a]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{Ae as T,ke as a,Me as b,Oe as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,j as l,r}from"./index-
|
|
1
|
+
import{c,j as l,r}from"./index-SQyrFbfm.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};
|