@decocms/mesh 2.114.2 → 2.114.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-BdP92l7X.js → AlertCircle-BIMqw_5-.js} +1 -1
- package/dist/client/assets/{AlertOctagon-Rr2l0fxh.js → AlertOctagon-DCet6Uv3.js} +1 -1
- package/dist/client/assets/{AlertTriangle-CY_-7aJF.js → AlertTriangle-zLp1y7-M.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DFfU5VuP.js → ArrowLeft-k1fcl9NK.js} +1 -1
- package/dist/client/assets/{ArrowUp-I-A62Wxd.js → ArrowUp-jELa2z5C.js} +1 -1
- package/dist/client/assets/{Check-CVKnwJBY.js → Check-BVNkiO-r.js} +1 -1
- package/dist/client/assets/{CheckCircle-D-rYJHRo.js → CheckCircle-t07NryvB.js} +1 -1
- package/dist/client/assets/{CheckDone01-DYFSMdW3.js → CheckDone01-Dth089nj.js} +1 -1
- package/dist/client/assets/{CheckVerified02-BVh_Gxcs.js → CheckVerified02-C-pYn5Ze.js} +1 -1
- package/dist/client/assets/{ChevronDown-D5ff6saN.js → ChevronDown-CfQqTr__.js} +1 -1
- package/dist/client/assets/{ChevronRight-C8j7LAQ2.js → ChevronRight-fjhPsf49.js} +1 -1
- package/dist/client/assets/{Clock-zOD9TyEC.js → Clock-CYiT8ACa.js} +1 -1
- package/dist/client/assets/{Code01-BZxryKMN.js → Code01-CeL0BWtu.js} +1 -1
- package/dist/client/assets/{Container-C5BViBN6.js → Container-ByqGd6Uy.js} +1 -1
- package/dist/client/assets/{Copy01-DNd1Ispu.js → Copy01-DR480BtW.js} +1 -1
- package/dist/client/assets/{Dataflow03-CSEKvFdt.js → Dataflow03-DI6H1Dx3.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-BBqzCUna.js → DotsHorizontal-BR75qX5y.js} +1 -1
- package/dist/client/assets/{DotsVertical-54W9Gp2R.js → DotsVertical-Cu5MRChG.js} +1 -1
- package/dist/client/assets/{Download01-DT3rpbSw.js → Download01-CpHhgR77.js} +1 -1
- package/dist/client/assets/{Edit01-DwmF64aq.js → Edit01-1PHQYqRQ.js} +1 -1
- package/dist/client/assets/{Eye-BZL-4zsY.js → Eye-CK_RXIJn.js} +1 -1
- package/dist/client/assets/{File02-SzmU0lnv.js → File02-DdP6KW7N.js} +1 -1
- package/dist/client/assets/{File06-BI0VUvQW.js → File06-BVjx-ooZ.js} +1 -1
- package/dist/client/assets/{FilterLines-D2muynqe.js → FilterLines-CNB1FGdO.js} +1 -1
- package/dist/client/assets/{Globe01-DiwJfU7l.js → Globe01-HwocQ3h6.js} +1 -1
- package/dist/client/assets/{Globe02-l9Cgb3NK.js → Globe02-D_Ml-Wmd.js} +1 -1
- package/dist/client/assets/{Grid01-DsYQ_oYv.js → Grid01-C92C0ZiE.js} +1 -1
- package/dist/client/assets/{Hash02-CdSsvoL9.js → Hash02-BxTW4QyH.js} +1 -1
- package/dist/client/assets/{Home02-lgvZ9jPY.js → Home02-BXpcTBVe.js} +1 -1
- package/dist/client/assets/{Image01-CBRl_ma-.js → Image01-B1MZrMYE.js} +1 -1
- package/dist/client/assets/{Inbox01-CXpLQUl3.js → Inbox01-Rul9NtEV.js} +1 -1
- package/dist/client/assets/{InfoCircle-CBhELEm5.js → InfoCircle-22MONY54.js} +1 -1
- package/dist/client/assets/{Key01-CTUfKK1Y.js → Key01-CpLgYQNF.js} +1 -1
- package/dist/client/assets/{LinkExternal01-C_UoTlVt.js → LinkExternal01-BXvUd0zS.js} +1 -1
- package/dist/client/assets/{List-CXd3HgNf.js → List-DWXbw0rd.js} +1 -1
- package/dist/client/assets/{Loading01-T5bxWl24.js → Loading01-D3VoLrCE.js} +1 -1
- package/dist/client/assets/{Lock01-oGMNa4tj.js → Lock01-j0OyGgS5.js} +1 -1
- package/dist/client/assets/{Pin01-IE7zREnx.js → Pin01-8bJvqwmS.js} +1 -1
- package/dist/client/assets/{Play-DTKn98C3.js → Play-5Po5MZl1.js} +1 -1
- package/dist/client/assets/{Plus-C7OAUPbV.js → Plus-hXcfla7A.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-BHJMWzE6.js → RefreshCcw01-w29kn5iE.js} +1 -1
- package/dist/client/assets/{RefreshCw01-CYr0gf6f.js → RefreshCw01-BWffByP-.js} +1 -1
- package/dist/client/assets/{Rows03-DXdlD9eS.js → Rows03-CmQ7VfDs.js} +1 -1
- package/dist/client/assets/{Save01-CW48ujzI.js → Save01-C6jmbuoZ.js} +1 -1
- package/dist/client/assets/{SearchMd-D0ge7VLl.js → SearchMd-CvAJ9EWO.js} +1 -1
- package/dist/client/assets/{Settings01-DSvdOAH2.js → Settings01-C_xKwser.js} +1 -1
- package/dist/client/assets/{Share07-DoaR4YK_.js → Share07-PYxNayg6.js} +1 -1
- package/dist/client/assets/{Shield01-a0s1wwek.js → Shield01-CLMQaoqN.js} +1 -1
- package/dist/client/assets/{Terminal-Bq3byDSF.js → Terminal-DehvCs5P.js} +1 -1
- package/dist/client/assets/{Tool01-5OUfWyig.js → Tool01-BC3ZDC9C.js} +1 -1
- package/dist/client/assets/{Trash01-FFL3QSvQ.js → Trash01-CudSsKDI.js} +1 -1
- package/dist/client/assets/{Upload01-CFs6TsZZ.js → Upload01-BOcBq6Mh.js} +1 -1
- package/dist/client/assets/{Users03-EyzvMfVV.js → Users03-CP0pXzvQ.js} +1 -1
- package/dist/client/assets/{XCircle-BG9lERqy.js → XCircle-COjMqF_k.js} +1 -1
- package/dist/client/assets/{XClose-BH8ymIge.js → XClose-BiXqLsTp.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-8BUAmGEe.js → agent-connections-preview-7cHqqPSJ.js} +1 -1
- package/dist/client/assets/{agent-detail-Dqb5Ci3o.js → agent-detail-DlHvFB5c.js} +1 -1
- package/dist/client/assets/{agents-CRCBm2Ev.js → agents-COf-vCrL.js} +1 -1
- package/dist/client/assets/{alert-dialog-D4TxZ3VS.js → alert-dialog-Dl4Vgvoo.js} +1 -1
- package/dist/client/assets/{auth-catchall-Di4SrfZR.js → auth-catchall-BqHZhWs9.js} +1 -1
- package/dist/client/assets/{avatar-eaZ9yveJ.js → avatar-CaXfYyEp.js} +1 -1
- package/dist/client/assets/{badge-EykGopY8.js → badge-wMb3Y-8E.js} +1 -1
- package/dist/client/assets/{binder-CzKynqQC.js → binder--ELnynus.js} +1 -1
- package/dist/client/assets/{breadcrumb-DlLkIbY1.js → breadcrumb-BgmfAzQW.js} +1 -1
- package/dist/client/assets/{button-eaqLZOCM.js → button-B3wvaVSV.js} +1 -1
- package/dist/client/assets/{card-DQOcrqoE.js → card-Dg4qw_Um.js} +1 -1
- package/dist/client/assets/{checkbox-CpbO2Yum.js → checkbox-NruFfeX6.js} +1 -1
- package/dist/client/assets/{circle-alert-CSSTnmQQ.js → circle-alert-DDdGOo-p.js} +1 -1
- package/dist/client/assets/{collection-detail-DSjXgzmA.js → collection-detail-BKP_DT9l.js} +1 -1
- package/dist/client/assets/{collection-tab-DN4CUrD_.js → collection-tab-DfV0bwhG.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-B0BtiFqG.js → collection-table-wrapper-8ZivTkeI.js} +1 -1
- package/dist/client/assets/{collection-tabs--_IhSU5C.js → collection-tabs-52rAfvQw.js} +1 -1
- package/dist/client/assets/{command-DrAS6O2r.js → command-Xaxyegsh.js} +1 -1
- package/dist/client/assets/{connect-19iqS2YF.js → connect-E11Mo5mT.js} +1 -1
- package/dist/client/assets/{connection-card-S8xw2Uw6.js → connection-card-aZ9ZIviE.js} +1 -1
- package/dist/client/assets/{connection-detail-CPDN1qP6.js → connection-detail-Bqsyw_N5.js} +1 -1
- package/dist/client/assets/{connections-CpLQpJVP.js → connections-BdvJpHkU.js} +1 -1
- package/dist/client/assets/constants-B5F0DXlV.js +1 -0
- package/dist/client/assets/{constants-D7qLFIUa.js → constants-HxzYhcpl.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-KE-u9cfo.js → create-organization-dialog-Bij5MntH.js} +1 -1
- package/dist/client/assets/{create-project-dialog-CNwHzNcZ.js → create-project-dialog-BROaVV-B.js} +1 -1
- package/dist/client/assets/{dialog-D7_B2uii.js → dialog-DKEzHh3_.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CEbvodTC.js → dropdown-menu-B8zAzVyw.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DHld8Vaf.js → dynamic-plugin-layout-nOxAlSIO.js} +1 -1
- package/dist/client/assets/{empty-state-BYrJytPO.js → empty-state-BTihO37R.js} +1 -1
- package/dist/client/assets/{empty-state-DUJ-w8xc.js → empty-state-D84o7p8j.js} +1 -1
- package/dist/client/assets/{env-vars-editor-mKye8GbL.js → env-vars-editor-D1yTHv-8.js} +1 -1
- package/dist/client/assets/{error-boundary-Dvk7eIUJ.js → error-boundary-DOj5ZIEf.js} +1 -1
- package/dist/client/assets/{extract-connection-data-ZKVsJvVi.js → extract-connection-data-CJ0N44pB.js} +1 -1
- package/dist/client/assets/{file-browser-Q5mKDS5G.js → file-browser-CjjS-hVU.js} +2 -2
- package/dist/client/assets/{form-DTjgc7E1.js → form-DXmjkX5K.js} +1 -1
- package/dist/client/assets/{grid-view-BINbb70M.js → grid-view-B2x76gZW.js} +1 -1
- package/dist/client/assets/{home-twwSa8uP.js → home-nyHOnz_S.js} +1 -1
- package/dist/client/assets/{index-ByjdQTkj.js → index-5hZzaujp.js} +1 -1
- package/dist/client/assets/{index-DJtULvNg.js → index-B1amT4cG.js} +3 -3
- package/dist/client/assets/{index-CBHiMww-.js → index-C1uLNwGO.js} +1 -1
- package/dist/client/assets/{index-BpwVJlhl.js → index-C2Rh-iWT.js} +1 -1
- package/dist/client/assets/{index-BiTVNvni.js → index-CHfv5zuS.js} +1 -1
- package/dist/client/assets/{index-DD8oFnE0.js → index-DQJX3EMS.js} +1 -1
- package/dist/client/assets/{index-D1IFXNFI.js → index-P3vDp8s1.js} +1 -1
- package/dist/client/assets/{index-SZWvR3qd.js → index-_RykQo2Q.js} +1 -1
- package/dist/client/assets/{index-BrNNYlfF.js → index-whQgID_3.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CGV3hMMF.js → infiniteQueryObserver-D19TTRT9.js} +1 -1
- package/dist/client/assets/{input-B0SBH7Cs.js → input-DzuDiRcd.js} +1 -1
- package/dist/client/assets/{integration-icon-rMI_9K4r.js → integration-icon-D424d7sU.js} +1 -1
- package/dist/client/assets/{label-Bz5MXHYJ.js → label-BlC2umPV.js} +1 -1
- package/dist/client/assets/{layout-DhYlgGzA.js → layout-jhaCZcgQ.js} +1 -1
- package/dist/client/assets/{localstorage-keys-CI6Z4fm6.js → localstorage-keys-DLKOB_hn.js} +1 -1
- package/dist/client/assets/{login-BfxE_Sz3.js → login-0ERd0JVK.js} +1 -1
- package/dist/client/assets/{markdown-BGXwzeeE.js → markdown-fhDAUlnf.js} +1 -1
- package/dist/client/assets/{mcp-oauth-D_wqa8vh.js → mcp-oauth-Dz0eGlgf.js} +1 -1
- package/dist/client/assets/{mcp-server-card-BQr3PIAV.js → mcp-server-card-CD4S9gSq.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-TzDs2eyw.js → mcp-server-detail-C7x4TClw.js} +2 -2
- package/dist/client/assets/{members-DHbYymN3.js → members-DJmYCvEB.js} +1 -1
- package/dist/client/assets/{monitoring-DqsDGbw-.js → monitoring-BiUYXXCA.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-5kDLFmCV.js → monitoring-dashboard-edit-D7zkk2Vk.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-B3-E1Gpy.js → monitoring-dashboard-view-BDaY-M5Y.js} +1 -1
- package/dist/client/assets/{oauth-callback-DVq7u8Je.js → oauth-callback-CuZVu4qI.js} +1 -1
- package/dist/client/assets/{page-D3QXl2Ip.js → page-CGEDYOzN.js} +1 -1
- package/dist/client/assets/{page-fNUZqwSL.js → page-Ddk70w-D.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BVCw2-mF.js → plugin-empty-state-DQxOUxND.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-7pZYl3gH.js → plugin-empty-state-Dhb394Oy.js} +1 -1
- package/dist/client/assets/{plugin-header-B8KtVdye.js → plugin-header-RQThaYb6.js} +1 -1
- package/dist/client/assets/{plugin-header-HWqxxJgj.js → plugin-header-qYjTdij8.js} +1 -1
- package/dist/client/assets/{popover-D5RphbE0.js → popover-BBIx9xvl.js} +1 -1
- package/dist/client/assets/{project-layout-BZq8-5Uq.js → project-layout-BT1FCYln.js} +1 -1
- package/dist/client/assets/{project-settings-CY0Y7dc-.js → project-settings-CKicr39y.js} +1 -1
- package/dist/client/assets/{projects-list-BRA18Y06.js → projects-list-BCJeu1Mp.js} +1 -1
- package/dist/client/assets/{ranking-layout-DfWqNUT7.js → ranking-layout-Cvfzj_A8.js} +1 -1
- package/dist/client/assets/{readme-viewer-BcjTTSaK.js → readme-viewer-CLC_9fEo.js} +1 -1
- package/dist/client/assets/{registry-layout-B-XZ5aAT.js → registry-layout-Bn-R6o3t.js} +1 -1
- package/dist/client/assets/{registry-utils-zW-rXJgs.js → registry-utils-BuLz585P.js} +1 -1
- package/dist/client/assets/{reports-layout-BITiG4PC.js → reports-layout-CKzxnNJB.js} +1 -1
- package/dist/client/assets/{reset-password-DkcOqVwI.js → reset-password-Bx6Eui0T.js} +1 -1
- package/dist/client/assets/{resizable-BYS5u1YR.js → resizable-CNQeHJMq.js} +1 -1
- package/dist/client/assets/{save-actions-Cr8gCIHi.js → save-actions-eiYEuuXJ.js} +1 -1
- package/dist/client/assets/{scroll-area-DiOFX4MA.js → scroll-area-CUkav_Yq.js} +1 -1
- package/dist/client/assets/{select-B2gByP1Y.js → select-BC2NheiG.js} +1 -1
- package/dist/client/assets/{shell-layout-DEfY0VTh.js → shell-layout-CC--vHLE.js} +1 -1
- package/dist/client/assets/{spinner-DW62uFVe.js → spinner-B9Yx5JiU.js} +1 -1
- package/dist/client/assets/{store-invite-DT2EPL27.js → store-invite-D7fPEwxN.js} +1 -1
- package/dist/client/assets/{switch-DtRL0IOe.js → switch-C3e0Po3O.js} +1 -1
- package/dist/client/assets/{table-CH_Ac6jn.js → table-Dk5S8CvU.js} +1 -1
- package/dist/client/assets/{tasks-D2-FOY5S.js → tasks-B5ljIkcC.js} +1 -1
- package/dist/client/assets/{textarea-BQMo4FS_.js → textarea-CpCoUxeL.js} +1 -1
- package/dist/client/assets/{time-range-picker-DloKivtV.js → time-range-picker-DdOI4s4z.js} +1 -1
- package/dist/client/assets/{toggle-group-7CVGd3b4.js → toggle-group-A5DobM91.js} +1 -1
- package/dist/client/assets/{tools-list-T1Po8RdJ.js → tools-list-eJ4ppYQ3.js} +1 -1
- package/dist/client/assets/{tooltip-D0R_EwpY.js → tooltip-CRlxaib0.js} +1 -1
- package/dist/client/assets/{topbar-portal-IJqbHtdo.js → topbar-portal-Cg4M1TWj.js} +1 -1
- package/dist/client/assets/{typewriter-title-IW5lZJuV.js → typewriter-title-yxwyjc60.js} +1 -1
- package/dist/client/assets/{use-binding-Bbl2jels.js → use-binding-COQw-0h_.js} +1 -1
- package/dist/client/assets/{use-connection-CCjOXaHU.js → use-connection-CqXagEzK.js} +1 -1
- package/dist/client/assets/{use-copy-DIntq5HW.js → use-copy-p1mRh5W_.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-C72Z8_st.js → use-create-virtual-mcp-AZujAG2C.js} +1 -1
- package/dist/client/assets/{use-deco-chat-open-BPJIwj0P.js → use-deco-chat-open-wZFGrp-k.js} +7 -7
- package/dist/client/assets/{use-install-from-registry-DWvmx9ee.js → use-install-from-registry-CQd3WrYK.js} +1 -1
- package/dist/client/assets/{use-list-state-_Tzedr0z.js → use-list-state-D9NU-8Ev.js} +1 -1
- package/dist/client/assets/{use-llm-BKkivZVR.js → use-llm-fAyro43J.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-IBqTMDhV.js → use-mcp-prompts-D1-dNA0Z.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CBsvOt9h.js → use-mcp-tools-B7qx_R2Q.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BBB1hUlN.js → use-organization-settings-CcG2mz2I.js} +1 -1
- package/dist/client/assets/{use-project-DjZSPmGg.js → use-project-D7iLSsYE.js} +1 -1
- package/dist/client/assets/{use-view-mode-a7ihHmyH.js → use-view-mode-DL3bskoS.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BTst7kuR.js → use-virtual-mcp-DruGCXgU.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DG4O4Spo.js +1 -0
- package/dist/client/assets/{useMutation-CgMSCUji.js → useMutation-Bv9q7pEj.js} +1 -1
- package/dist/client/assets/useQuery-76sOrPQ-.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DSwqKk5V.js +1 -0
- package/dist/client/assets/{workflow-D6QaXBek.js → workflow-qlHwB4Dy.js} +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/constants-CK1PLXYP.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Bjii8Fvr.js +0 -1
- package/dist/client/assets/useQuery-CAfWkV_-.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CrUGhS0H.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as A,c as L,j as s,u as Ne,b as He,bz as Ue,L as We,bv as At,bG as Ot,O as X,I as tt,e as Ve,d as ge,t as he,bH as Tt,b6 as Mt,z as Lt,A as Et,S as st,f as Dt,h as Rt,N as Ht,n as Ut,K as Ft,m as nt,P as Bt}from"./index-DJtULvNg.js";import{C as re}from"./index-SZWvR3qd.js";import{I as Wt}from"./integration-icon-rMI_9K4r.js";import{P as ke,u as rt,d as xe,e as ie,f as Fe,g as Ie,h as Pe,i as it,j as qt,k as Gt,l as lt,m as Vt,n as Zt,o as Kt,p as Yt}from"./index-BpwVJlhl.js";import{e as Ze,u as Qt,g as Ae,S as se,h as Jt,C as Xt,f as es,j as ts}from"./use-deco-chat-open-BPJIwj0P.js";import{c as K,B as Ee}from"./button-eaqLZOCM.js";import{d as ss}from"./constants-D7qLFIUa.js";import{T as ns,i as rs,b as is}from"./typewriter-title-IW5lZJuV.js";import{s as ze}from"./Plus-C7OAUPbV.js";import{t as Ke}from"./Users03-EyzvMfVV.js";import{i as De,a as ot,b as at,T as ct,c as ls}from"./tooltip-D0R_EwpY.js";import{E as dt}from"./error-boundary-Dvk7eIUJ.js";import{C as mt}from"./create-project-dialog-CNwHzNcZ.js";import{n as qe}from"./CheckDone01-DYFSMdW3.js";import{n as os}from"./Container-C5BViBN6.js";import{e as as}from"./Dataflow03-CSEKvFdt.js";import{a as cs}from"./Home02-lgvZ9jPY.js";import{t as Re}from"./Settings01-DSvdOAH2.js";import{u as ft,a as ut}from"./use-project-DjZSPmGg.js";import{t as xt}from"./ChevronDown-D5ff6saN.js";import{A as je}from"./avatar-eaZ9yveJ.js";import{c as ee,g as $e,d as ds,e as ms,f as fs,b as pt,D as ht,a as gt}from"./dropdown-menu-CEbvodTC.js";import{i as be}from"./Check-CVKnwJBY.js";import{C as us}from"./create-organization-dialog-KE-u9cfo.js";import{a as jt}from"./Copy01-DNd1Ispu.js";import{i as bt}from"./File06-BI0VUvQW.js";import{i as xs}from"./Globe01-DiwJfU7l.js";import{n as _e}from"./LinkExternal01-C_UoTlVt.js";import{i as ps}from"./Shield01-a0s1wwek.js";import{c as hs,b as gs,g as js,a as bs,D as Ns}from"./dialog-D7_B2uii.js";import{L as we}from"./label-Bz5MXHYJ.js";import{S as vs,a as ys,b as Ss,d as Be,c as ks}from"./select-B2gByP1Y.js";import{S as Le}from"./switch-DtRL0IOe.js";import{i as Cs}from"./Code01-BZxryKMN.js";import{a as _s,P as ws,b as zs}from"./popover-D5RphbE0.js";import{n as Xe}from"./Inbox01-CXpLQUl3.js";import{s as $s}from"./XClose-BH8ymIge.js";import{u as Nt,a as Is}from"./use-organization-settings-BBB1hUlN.js";import{i as Ps}from"./ChevronRight-C8j7LAQ2.js";import{u as Ye,L as Qe}from"./localstorage-keys-CI6Z4fm6.js";import{R as As,a as vt,b as Os}from"./resizable-BYS5u1YR.js";import"./spinner-DW62uFVe.js";import"./use-mcp-prompts-IBqTMDhV.js";import"./useQuery-CAfWkV_-.js";import"./form-DTjgc7E1.js";import"./input-B0SBH7Cs.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-I-A62Wxd.js";import"./Edit01-DwmF64aq.js";import"./XCircle-BG9lERqy.js";import"./AlertCircle-BdP92l7X.js";import"./AlertTriangle-CY_-7aJF.js";import"./ArrowLeft-DFfU5VuP.js";import"./use-copy-DIntq5HW.js";import"./badge-EykGopY8.js";import"./use-virtual-mcp-BTst7kuR.js";import"./use-connection-CCjOXaHU.js";import"./useMutation-CgMSCUji.js";import"./SearchMd-D0ge7VLl.js";import"./use-create-virtual-mcp-C72Z8_st.js";import"./marked.esm-BaswSlok.js";import"./markdown-BGXwzeeE.js";import"./tools-list-T1Po8RdJ.js";import"./collection-table-wrapper-B0BtiFqG.js";import"./Grid01-DsYQ_oYv.js";import"./List-CXd3HgNf.js";import"./table-CH_Ac6jn.js";import"./empty-state-BYrJytPO.js";import"./Loading01-T5bxWl24.js";import"./card-DQOcrqoE.js";import"./Eye-BZL-4zsY.js";import"./Globe02-l9Cgb3NK.js";import"./RefreshCw01-CYr0gf6f.js";import"./layout-DhYlgGzA.js";import"./generate-id-Dyweu44Y.js";import"./Clock-zOD9TyEC.js";import"./Trash01-FFL3QSvQ.js";import"./use-llm-BKkivZVR.js";import"./use-binding-Bbl2jels.js";import"./binder-CzKynqQC.js";import"./Image01-CBRl_ma-.js";import"./RefreshCcw01-BHJMWzE6.js";import"./useSuspenseInfiniteQuery-CrUGhS0H.js";import"./infiniteQueryObserver-CGV3hMMF.js";import"./index-BrNNYlfF.js";import"./textarea-BQMo4FS_.js";import"./alert-dialog-D4TxZ3VS.js";const yt=({size:t=24,color:e="currentColor",...n})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},A.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"}));yt.displayName="BarChart10";const St=({size:t=24,color:e="currentColor",...n})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},A.createElement("path",{d:"M9.354 21c.705.622 1.632 1 2.646 1s1.94-.378 2.646-1M18 8A6 6 0 1 0 6 8c0 3.09-.78 5.206-1.65 6.605-.735 1.18-1.102 1.771-1.089 1.936.015.182.054.252.2.36.133.099.732.099 1.928.099H18.61c1.196 0 1.795 0 1.927-.098.147-.11.186-.179.2-.361.014-.165-.353-.755-1.088-1.936C18.78 13.206 18 11.09 18 8Z"}));St.displayName="Bell01";const Je=({size:t=24,color:e="currentColor",...n})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},A.createElement("path",{d:"M15 21v-5.4c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 14 13.96 14 13.4 14h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 14.76 9 15.04 9 15.6V21M3 7a3 3 0 0 0 6 0 3 3 0 1 0 6 0 3 3 0 1 0 6 0M6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 3 18.92 3 17.8 3H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2v11.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21Z"}));Je.displayName="Building02";const kt=({size:t=24,color:e="currentColor",...n})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},A.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"}));kt.displayName="FaceSmile";const Ct=({size:t=24,color:e="currentColor",...n})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},A.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"}));Ct.displayName="LogOut01";const _t=({size:t=24,color:e="currentColor",...n})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},A.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"}));_t.displayName="MessageTextCircle02";function Ts(){const t=L.c(65),{org:e}=Ne(),[,n]=Ze(),{selectedVirtualMcp:l,modelsConnections:i,isChatEmpty:a,activeThreadId:r,createThread:o,switchToThread:d,threads:c}=Qt();let m;if(t[0]!==r||t[1]!==c){let B;t[3]!==r?(B=W=>W.id===r,t[3]=r,t[4]=B):B=t[4],m=c.find(B),t[0]=r,t[1]=c,t[2]=m}else m=t[2];const u=m,[f,h]=A.useState(!1),[p,j]=A.useTransition();let g;t[5]!==e.id?(g=ss(e.id),t[5]=e.id,t[6]=g):g=t[6];const x=l??g;let b;t[7]!==o?(b=()=>{j(()=>{o()})},t[7]=o,t[8]=b):b=t[8];const v=b;if(i.length===0){let B;t[9]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(ke.Header.Left,{className:"gap-2"}),t[9]=B):B=t[9];let W;t[10]!==n?(W=()=>n(!1),t[10]=n,t[11]=W):W=t[11];let C;t[12]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(De,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=C):C=t[12];let q;t[13]!==W?(q=s.jsxs(ke.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[B,s.jsx(ke.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:W,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:C})})]}),t[13]=W,t[14]=q):q=t[14];let J;t[15]!==e?(J=s.jsx(re.Main,{className:"flex flex-col items-center",children:s.jsx(re.EmptyState,{children:s.jsx(re.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[15]=e,t[16]=J):J=t[16];let le;return t[17]!==q||t[18]!==J?(le=s.jsxs(re,{className:"animate-in fade-in-0 duration-200",children:[q,J]}),t[17]=q,t[18]=J,t[19]=le):le=t[19],le}const N=f?"duration-300 opacity-0 -translate-x-4 pointer-events-none":p?"duration-150 opacity-0 pointer-events-none":"duration-300 opacity-100 translate-x-0";let y;t[20]!==N?(y=K("absolute inset-0 flex flex-col transition-[opacity,transform] ease-[var(--ease-out-quart)]",N),t[20]=N,t[21]=y):y=t[21];let S;t[22]!==u||t[23]!==a?(S=!a&&u?.title&&s.jsx(ns,{text:u.title,className:"text-sm font-medium text-foreground"}),t[22]=u,t[23]=a,t[24]=S):S=t[24];let z;t[25]!==S?(z=s.jsx(ke.Header.Left,{className:"gap-2",children:S}),t[25]=S,t[26]=z):z=t[26];let M;t[27]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(ze,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=M):M=t[27];let E;t[28]!==v||t[29]!==p?(E=s.jsx("button",{type:"button",onClick:v,disabled:p,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:M}),t[28]=v,t[29]=p,t[30]=E):E=t[30];let I;t[31]===Symbol.for("react.memo_cache_sentinel")?(I=()=>h(!0),t[31]=I):I=t[31];let U;t[32]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx("button",{type:"button",onClick:I,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Chat history",children:s.jsx(rs,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=U):U=t[32];let D;t[33]!==n?(D=()=>n(!1),t[33]=n,t[34]=D):D=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 $;t[36]!==D?($=s.jsx("button",{type:"button",onClick:D,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:F}),t[36]=D,t[37]=$):$=t[37];let P;t[38]!==$||t[39]!==E?(P=s.jsxs(ke.Header.Right,{className:"gap-1",children:[E,U,$]}),t[38]=$,t[39]=E,t[40]=P):P=t[40];let _;t[41]!==P||t[42]!==z?(_=s.jsxs(ke.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[z,P]}),t[41]=P,t[42]=z,t[43]=_):_=t[43];let O;t[44]!==x||t[45]!==a?(O=s.jsx(re.Main,{children:a?s.jsx(re.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(Wt,{icon:x.icon,name:x.title,size:"lg",fallbackIcon:s.jsx(Ke,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:x.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:x.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(re.IceBreakers,{})]})}):s.jsx(re.Messages,{})}),t[44]=x,t[45]=a,t[46]=O):O=t[46];let T;t[47]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(re.Footer,{children:s.jsx(re.Input,{})}),t[47]=T):T=t[47];let R;t[48]!==_||t[49]!==O||t[50]!==y?(R=s.jsxs("div",{className:y,children:[_,O,T]}),t[48]=_,t[49]=O,t[50]=y,t[51]=R):R=t[51];const te=f?"opacity-100 translate-x-0":"opacity-0 translate-x-4 pointer-events-none";let Y;t[52]!==te?(Y=K("absolute inset-0 flex flex-col transition-[opacity,transform] duration-300 ease-[var(--ease-out-quart)]",te),t[52]=te,t[53]=Y):Y=t[53];let Q;t[54]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>h(!1),t[54]=Q):Q=t[54];let G;t[55]!==r||t[56]!==d||t[57]!==c?(G=s.jsx(is,{threads:c,activeThreadId:r,onThreadSelect:d,onClose:Q}),t[55]=r,t[56]=d,t[57]=c,t[58]=G):G=t[58];let H;t[59]!==Y||t[60]!==G?(H=s.jsx("div",{className:Y,children:G}),t[59]=Y,t[60]=G,t[61]=H):H=t[61];let V;return t[62]!==R||t[63]!==H?(V=s.jsxs(re,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[R,H]}),t[62]=R,t[63]=H,t[64]=V):V=t[64],V}function Ms(){const t=L.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(re.Skeleton,{}),t[0]=e):e=t[0];let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(dt,{fallback:e,children:s.jsx(A.Suspense,{fallback:s.jsx(re.Skeleton,{}),children:s.jsx(Ts,{})})}),t[1]=n):n=t[1],n}function Ls(){const t=L.c(54),[e]=Ae(),{locator:n,org:l}=Ne(),i=He(),a=Ue(),{org:r,project:o}=We.parse(n),d=We.isOrgAdminProject(n),{data:c}=ft(l.id,o);let m;t[0]!==c?.enabledPlugins?(m=c?.enabledPlugins??[],t[0]=c?.enabledPlugins,t[1]=m):m=t[1];const u=m;let f;t[2]!==u?(f=w=>u.includes(w.pluginId),t[2]=u,t[3]=f):f=t[3];const h=At.filter(f),p=a.location.pathname,j=`/${r}/${o}`,g=p===j||p===`${j}/`;let k;t[4]!==j||t[5]!==p?(k=w=>p.startsWith(`${j}/${w}`),t[4]=j,t[5]=p,t[6]=k):k=t[6];const x=k;let b;t[7]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(cs,{}),t[7]=b):b=t[7];const v={key:"home",label:"Home",icon:b,isActive:g,onClick:()=>{g?window.dispatchEvent(new CustomEvent("reset-home-view")):i({to:"/$org/$project",params:{org:r,project:o}})}};let N;t[8]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(qe,{}),t[8]=N):N=t[8];const y={key:"tasks",label:"Tasks",icon:N,isActive:x("tasks"),onClick:()=>i({to:"/$org/$project/tasks",params:{org:r,project:X}})};let S;t[9]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(os,{}),t[9]=S):S=t[9];const z={key:"mcps",label:"Connections",icon:S,isActive:x("mcps"),onClick:()=>i({to:"/$org/$project/mcps",params:{org:r,project:X}})};let M;t[10]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(tt,{}),t[10]=M):M=t[10];const E={key:"projects",label:"Projects",icon:M,isActive:x("projects"),onClick:()=>i({to:"/$org/$project/projects",params:{org:r,project:X}})};let I;t[11]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(Je,{}),t[11]=I):I=t[11];const U={key:"store",label:"Store",icon:I,isActive:x("store"),onClick:()=>i({to:"/$org/$project/store",params:{org:r,project:X}})};let D;t[12]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Ke,{}),t[12]=D):D=t[12];const F={key:"agents",label:"Agents",icon:D,isActive:x("agents"),onClick:()=>i({to:"/$org/$project/agents",params:{org:r,project:X}})};let $;t[13]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(yt,{}),t[13]=$):$=t[13];const P={key:"monitoring",label:"Monitor",icon:$,isActive:x("monitoring"),onClick:()=>i({to:"/$org/$project/monitoring",params:{org:r,project:X}})};let _;t[14]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(kt,{}),t[14]=_):_=t[14];const O={key:"members",label:"Members",icon:_,isActive:x("members"),onClick:()=>i({to:"/$org/$project/members",params:{org:r,project:X}})},T=h.map(w=>({key:w.pluginId,label:w.label,icon:w.icon,isActive:x(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:r,project:o,pluginId:w.pluginId}})}));let R;t[15]!==u?(R=w=>u.includes(w.pluginId),t[15]=u,t[16]=R):R=t[16];const Y=Ot.filter(R).map(w=>({type:"group",group:{id:`${w.pluginId}-${w.id}`,label:w.label,items:w.items.map((Z,ne)=>({key:`${w.pluginId}-${w.id}-${ne}`,label:Z.label,icon:Z.icon,isActive:x(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:r,project:o,pluginId:w.pluginId}})})),defaultExpanded:w.defaultExpanded??!0}}));if(d){let w;t[17]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Re,{}),t[17]=w):w=t[17];let Z;t[18]!==x?(Z=x("settings"),t[18]=x,t[19]=Z):Z=t[19];let ne;t[20]!==i||t[21]!==r?(ne=()=>i({to:"/$org/$project/settings",params:{org:r,project:X}}),t[20]=i,t[21]=r,t[22]=ne):ne=t[22];let ce;t[23]!==Z||t[24]!==ne?(ce={key:"settings",label:"Settings",icon:w,isActive:Z,onClick:ne},t[23]=Z,t[24]=ne,t[25]=ce):ce=t[25];const pe=ce,me=[{type:"items",items:[v,...e.experimental_tasks?[y]:[],...e.experimental_projects?[E]:[]]},{type:"group",group:{id:"build",label:"Build",items:[F,z,U],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[P,O,pe],defaultExpanded:!0}}];if(T.length>0){let de;t[26]!==T?(de={type:"items",items:T},t[26]=T,t[27]=de):de=t[27],me.push(de)}return Y.length>0&&me.push(...Y),me}let Q;t[28]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(qe,{}),t[28]=Q):Q=t[28];let G;t[29]!==x?(G=x("tasks"),t[29]=x,t[30]=G):G=t[30];let H;t[31]!==i||t[32]!==r||t[33]!==o?(H=()=>i({to:"/$org/$project/tasks",params:{org:r,project:o}}),t[31]=i,t[32]=r,t[33]=o,t[34]=H):H=t[34];let V;t[35]!==G||t[36]!==H?(V={key:"tasks",label:"Tasks",icon:Q,isActive:G,onClick:H},t[35]=G,t[36]=H,t[37]=V):V=t[37];const B=V;let W;t[38]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(as,{}),t[38]=W):W=t[38];let C;t[39]!==x?(C=x("workflows"),t[39]=x,t[40]=C):C=t[40];let q;t[41]!==i||t[42]!==r||t[43]!==o?(q=()=>i({to:"/$org/$project/workflows",params:{org:r,project:o}}),t[41]=i,t[42]=r,t[43]=o,t[44]=q):q=t[44];let J;t[45]!==C||t[46]!==q?(J={key:"workflows",label:"Workflows",icon:W,isActive:C,onClick:q},t[45]=C,t[46]=q,t[47]=J):J=t[47];const le=J;let oe;t[48]!==e.experimental_tasks||t[49]!==B?(oe=e.experimental_tasks?[B]:[],t[48]=e.experimental_tasks,t[49]=B,t[50]=oe):oe=t[50];const ae=[{type:"items",items:[v,...oe,le]}];if(T.length>0){let w;t[51]===Symbol.for("react.memo_cache_sentinel")?(w={type:"divider"},t[51]=w):w=t[51],ae.push(w);let Z;t[52]!==T?(Z={type:"items",items:T},t[52]=T,t[53]=Z):Z=t[53],ae.push(Z)}return Y.length>0&&ae.push(...Y),ae}function Es(t){const e=L.c(11),{label:n,children:l,defaultExpanded:i}=t,a=i===void 0?!0:i,[r,o]=A.useState(a),{state:d}=rt(),c=d==="collapsed";let m;e[0]!==r||e[1]!==c||e[2]!==n?(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(xe,{children:s.jsx(ie,{children:s.jsxs(Fe,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>o(!r),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:n}),s.jsx(xt,{size:12,className:K("text-muted-foreground transition-transform duration-200",!r&&"-rotate-90")})]})})}),e[0]=r,e[1]=c,e[2]=n,e[3]=m):m=e[3];let u;e[4]!==l||e[5]!==r||e[6]!==c?(u=(c||r)&&s.jsx(Ie,{children:s.jsx(xe,{className:"gap-0.5",children:l})}),e[4]=l,e[5]=r,e[6]=c,e[7]=u):u=e[7];let f;return e[8]!==m||e[9]!==u?(f=s.jsxs(Pe,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[m,u]}),e[8]=m,e[9]=u,e[10]=f):f=e[10],f}function wt(t){const e=L.c(13),{item:n}=t;let l;e[0]!==n.icon?(l=s.jsx("span",{className:"[&>svg]:size-4",children:n.icon}),e[0]=n.icon,e[1]=l):l=e[1];let i;e[2]!==n.label?(i=s.jsx("span",{className:"truncate group-data-[collapsible=icon]:hidden",children:n.label}),e[2]=n.label,e[3]=i):i=e[3];let a;e[4]!==n.isActive||e[5]!==n.label||e[6]!==n.onClick||e[7]!==l||e[8]!==i?(a=s.jsxs(Fe,{onClick:n.onClick,isActive:n.isActive,tooltip:n.label,children:[l,i]}),e[4]=n.isActive,e[5]=n.label,e[6]=n.onClick,e[7]=l,e[8]=i,e[9]=a):a=e[9];let r;return e[10]!==n.key||e[11]!==a?(r=s.jsx(ie,{children:a},n.key),e[10]=n.key,e[11]=a,e[12]=r):r=e[12],r}function Ds(t){const e=L.c(12),{section:n}=t;switch(n.type){case"divider":{let l;return e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(it,{className:"my-2"}),e[0]=l):l=e[0],l}case"spacer":{let l;return e[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex-1"}),e[1]=l):l=e[1],l}case"group":{const l=n.group.label,i=n.group.defaultExpanded;let a;e[2]!==n.group.items?(a=n.group.items.map(Hs),e[2]=n.group.items,e[3]=a):a=e[3];let r;return e[4]!==n.group.defaultExpanded||e[5]!==n.group.label||e[6]!==a?(r=s.jsx(Es,{label:l,defaultExpanded:i,children:a}),e[4]=n.group.defaultExpanded,e[5]=n.group.label,e[6]=a,e[7]=r):r=e[7],r}case"items":{let l;e[8]!==n.items?(l=n.items.map(Rs),e[8]=n.items,e[9]=l):l=e[9];let i;return e[10]!==l?(i=s.jsx(Pe,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ie,{children:s.jsx(xe,{className:"gap-0.5",children:l})})}),e[10]=l,e[11]=i):i=e[11],i}}}function Rs(t){return s.jsx(wt,{item:t},t.key)}function Hs(t){return s.jsx(wt,{item:t},t.key)}function zt(t){const e=L.c(14),{sections:n,header:l,footer:i,additionalContent:a,variant:r,collapsible:o,contentClassName:d}=t,c=r===void 0?"sidebar":r,m=o===void 0?"icon":o;let u;e[0]!==d?(u=K("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]=u):u=e[1];let f;e[2]!==n?(f=n.map(Us),e[2]=n,e[3]=f):f=e[3];let h;e[4]!==a||e[5]!==u||e[6]!==f?(h=s.jsxs(qt,{className:u,children:[f,a]}),e[4]=a,e[5]=u,e[6]=f,e[7]=h):h=e[7];let p;return e[8]!==m||e[9]!==i||e[10]!==l||e[11]!==h||e[12]!==c?(p=s.jsxs(Gt,{variant:c,collapsible:m,children:[l,h,i]}),e[8]=m,e[9]=i,e[10]=l,e[11]=h,e[12]=c,e[13]=p):p=e[13],p}function Us(t,e){return s.jsx(Ds,{section:t},e)}zt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,n)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(se,{className:"h-full bg-sidebar-accent rounded-md"})},n))})};function Fs(){const t=L.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(se,{className:"h-8 w-full rounded-lg"}),s.jsx(se,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function Bs(t){const e=L.c(12),{organizationId:n,currentProjectSlug:l,onSelect:i}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={suspense:!0},e[0]=a):a=e[0];const{data:r}=ut(n,a);let o,d;if(e[1]!==l||e[2]!==i||e[3]!==r){d=Symbol.for("react.early_return_sentinel");e:{const m=r?.filter(Ws)??[];if(m.length===0){let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=f):f=e[6],d=f;break e}let u;e[7]!==l||e[8]!==i?(u=f=>{const h=l===f.slug,p=f.ui?.themeColor??"#3B82F6";return s.jsxs(ee,{className:K("gap-2.5",h&&"bg-accent"),onClick:()=>i(f.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:p},children:f.ui?.icon?s.jsx("img",{src:f.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:f.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:f.name}),h&&s.jsx(be,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},f.id)},e[7]=l,e[8]=i,e[9]=u):u=e[9],o=m.map(u)}e[1]=l,e[2]=i,e[3]=r,e[4]=o,e[5]=d}else o=e[4],d=e[5];if(d!==Symbol.for("react.early_return_sentinel"))return d;let c;return e[10]!==o?(c=s.jsx(s.Fragment,{children:o}),e[10]=o,e[11]=c):c=e[11],c}function Ws(t){return t.slug!==X}function qs(t){let e=0;for(let l=0;l<t.length;l++)e=t.charCodeAt(l)+((e<<5)-e);const n=Math.abs(e)%360;return{backgroundColor:`hsl(${n} 55% 70%)`,color:`hsl(${n} 55% 20%)`}}function $t(t){const e=L.c(44),{isCollapsed:n,onCreateProject:l}=t,i=n===void 0?!1:n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const{org:r,project:o}=Ve(a),{data:d}=ge.useListOrganizations(),c=He(),m=d?.find(C=>C.slug===r),[u,f]=A.useState(!1),[h]=Ae(),p=h.experimental_projects,j=o===X,{data:g}=ft(m?.id??"",j?"":o??"");let k;e[1]!==r?(k=(C,q)=>C.slug===r?-1:q.slug===r?1:C.name.localeCompare(q.name),e[1]=r,e[2]=k):k=e[2];const x=[...d??[]].sort(k);let b;e[3]!==c||e[4]!==r?(b=()=>{r&&c({to:"/$org/$project",params:{org:r,project:X}})},e[3]=c,e[4]=r,e[5]=b):b=e[5];const v=b;let N;e[6]!==c||e[7]!==r?(N=C=>{r&&c({to:"/$org/$project",params:{org:r,project:C}})},e[6]=c,e[7]=r,e[8]=N):N=e[8];const y=N;let S;e[9]!==c?(S=C=>{c({to:"/$org/$project",params:{org:C,project:X}})},e[9]=c,e[10]=S):S=e[10];const z=S;let M;e[11]!==l?(M=l?()=>l():void 0,e[11]=l,e[12]=M):M=e[12];const E=M;let I;e[13]!==c||e[14]!==r||e[15]!==o?(I=()=>{!r||!o||c({to:"/$org/$project/settings",params:{org:r,project:o}})},e[13]=c,e[14]=r,e[15]=o,e[16]=I):I=e[16];const U=I,D=ht,F=i?"w-auto pr-1.5":"w-full";let $;e[17]!==F?($=K("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]=$):$=e[18];const P=j?s.jsx("div",{className:K("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:qs(m?.name??""),children:m?.logo?s.jsx("img",{src:m.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:K("font-semibold leading-none",i?"text-[9px]":"text-xs"),children:(m?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:K("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:g?.ui?.themeColor??"#60a5fa"},children:g?.ui?.icon?s.jsx("img",{src:g.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:K("font-semibold text-white",i?"text-xs":"text-lg"),children:(g?.name??o??"?").charAt(0).toUpperCase()})});let _;e[19]!==m?.name||e[20]!==g?.name||e[21]!==p||e[22]!==i||e[23]!==j||e[24]!==o?(_=!i&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:p?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:j?"Studio":g?.name??o??""})]}):s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:m?.name??"Select org"})}),s.jsx(Jt,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=m?.name,e[20]=g?.name,e[21]=p,e[22]=i,e[23]=j,e[24]=o,e[25]=_):_=e[25];let O;e[26]!==$||e[27]!==P||e[28]!==_?(O=s.jsx(gt,{asChild:!0,children:s.jsxs("button",{type:"button",className:$,children:[P,_]})}),e[26]=$,e[27]=P,e[28]=_,e[29]=O):O=e[29];const T=pt,R="start",te="bottom",Y="w-64 flex flex-col gap-0.5",Q=Gs,G=p?s.jsxs(s.Fragment,{children:[s.jsxs(ee,{className:K("gap-2.5",j&&"bg-accent"),onClick:v,children:[s.jsx(je,{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]}),j&&s.jsx(be,{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(A.Suspense,{fallback:s.jsx(Fs,{}),children:s.jsx(Bs,{organizationId:m.id,currentProjectSlug:o,orgSlug:r??"",onSelect:y})}),E&&s.jsxs(ee,{className:"gap-2.5",onClick:E,children:[s.jsx(ze,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),s.jsx($e,{}),s.jsxs(ds,{children:[s.jsxs(ms,{className:"gap-2.5",children:[s.jsx(Je,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),s.jsxs(fs,{className:"w-48 flex flex-col gap-0.5",children:[x.map(C=>s.jsxs(ee,{className:K("gap-2.5",C.slug===r&&"bg-accent"),onClick:()=>z(C.slug),children:[s.jsx(je,{url:C.logo??"",fallback:C.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:C.name}),C.slug===r&&s.jsx(be,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},C.id)),s.jsx($e,{}),s.jsxs(ee,{className:"gap-2.5",onClick:()=>f(!0),children:[s.jsx(ze,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]})]})]}),s.jsxs(ee,{className:"gap-2.5",onClick:U,children:[s.jsx(Re,{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"}),x.map(C=>s.jsxs(ee,{className:K("gap-2.5",C.slug===r&&"bg-accent"),onClick:()=>z(C.slug),children:[s.jsx(je,{url:C.logo??"",fallback:C.name,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:C.name}),C.slug===r&&s.jsx(be,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},C.id)),s.jsxs(ee,{className:"gap-2.5",onClick:()=>f(!0),children:[s.jsx(ze,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]}),s.jsx($e,{}),s.jsxs(ee,{className:"gap-2.5",onClick:U,children:[s.jsx(Re,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]});let H;e[30]!==T||e[31]!==Q||e[32]!==G?(H=s.jsx(T,{align:R,side:te,className:Y,onCloseAutoFocus:Q,children:G}),e[30]=T,e[31]=Q,e[32]=G,e[33]=H):H=e[33];let V;e[34]!==D||e[35]!==O||e[36]!==H?(V=s.jsxs(D,{children:[O,H]}),e[34]=D,e[35]=O,e[36]=H,e[37]=V):V=e[37];let B;e[38]!==u||e[39]!==f?(B=s.jsx(us,{open:u,onOpenChange:f}),e[38]=u,e[39]=f,e[40]=B):B=e[40];let W;return e[41]!==V||e[42]!==B?(W=s.jsxs(s.Fragment,{children:[V,B]}),e[41]=V,e[42]=B,e[43]=W):W=e[43],W}function Gs(t){return t.preventDefault()}$t.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(se,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(se,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Ge(t){const e=L.c(23),{onCreateProject:n}=t,{state:l}=rt(),i=l==="collapsed",[a,r]=Ze();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const{org:d,project:c}=Ve(o),{location:m}=Ue(),u=m.pathname===`/${d}/${c}`||m.pathname===`/${d}/${c}/`;let f;e[1]!==r?(f=()=>{r(Vs)},e[1]=r,e[2]=f):f=e[2];const h=f;let p;e[3]!==i||e[4]!==n?(p=s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx($t,{isCollapsed:i,onCreateProject:n})}),e[3]=i,e[4]=n,e[5]=p):p=e[5];const j=i||u?"max-w-0 opacity-0 pointer-events-none":"max-w-[2rem] opacity-100";let g;e[6]!==j?(g=K("flex items-center gap-0.5 shrink-0 overflow-hidden transition-[max-width,opacity] duration-300 ease-[var(--ease-out-quart)]",j),e[6]=j,e[7]=g):g=e[7];const k=a&&"bg-sidebar-accent text-sidebar-foreground";let x;e[8]!==k?(x=K("size-7 hover:bg-sidebar-accent text-sidebar-foreground/50 hover:text-sidebar-foreground",k),e[8]=k,e[9]=x):x=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(_t,{size:14,className:"text-inherit"}),e[10]=b):b=e[10];let v;e[11]!==x||e[12]!==h?(v=s.jsx(ot,{asChild:!0,children:s.jsx(Ee,{variant:"ghost",size:"icon",className:x,onClick:h,"aria-label":"Toggle Decopilot",children:b})}),e[11]=x,e[12]=h,e[13]=v):v=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(at,{side:"bottom",children:"Toggle Decopilot"}),e[14]=N):N=e[14];let y;e[15]!==v?(y=s.jsxs(ct,{children:[v,N]}),e[15]=v,e[16]=y):y=e[16];let S;e[17]!==y||e[18]!==g?(S=s.jsx("div",{className:g,children:y}),e[17]=y,e[18]=g,e[19]=S):S=e[19];let z;return e[20]!==S||e[21]!==p?(z=s.jsx(lt,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(xe,{children:s.jsx(ie,{children:s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[p,S]})})})}),e[20]=S,e[21]=p,e[22]=z):z=e[22],z}function Vs(t){return!t}Ge.Skeleton=function(){return s.jsx(lt,{className:"px-3",children:s.jsx(xe,{children:s.jsx(ie,{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(se,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(se,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsxs("div",{className:"flex items-center gap-0.5",children:[s.jsx(se,{className:"size-7 rounded-lg bg-sidebar-accent"}),s.jsx(se,{className:"size-7 rounded-lg bg-sidebar-accent"})]})]})})})})};function Zs(t){const e=L.c(108),{open:n,onOpenChange:l,user:i,userImage:a}=t,[r,o]=Ae(),[d,c]=A.useState(!1);let m;e[0]!==i.id?(m=()=>{navigator.clipboard.writeText(i.id),c(!0),setTimeout(()=>c(!1),2e3)},e[0]=i.id,e[1]=m):m=e[1];const u=m;let f;e[2]!==o?(f=async fe=>{if(fe&&await Notification.requestPermission()!=="granted"){he.error("Notifications denied. Please enable them in your browser settings."),o(sn);return}o(ue=>({...ue,enableNotifications:fe}))},e[2]=o,e[3]=f):f=e[3];const h=f;let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(hs,{className:"text-base",children:"Profile Settings"}),e[4]=p):p=e[4];let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsxs(gs,{className:"px-6 pt-6 pb-4 border-b border-border shrink-0 relative",children:[p,s.jsxs(js,{className:"absolute top-1/2 right-4 -translate-y-1/2 cursor-pointer rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",children:[s.jsx(De,{size:16}),s.jsx("span",{className:"sr-only",children:"Close"})]})]}),e[5]=j):j=e[5];const g=i.name||"U";let k;e[6]!==g||e[7]!==a?(k=s.jsx(je,{url:a,fallback:g,shape:"circle",size:"xl",className:"h-16 w-16"}),e[6]=g,e[7]=a,e[8]=k):k=e[8];const x=i.name||"User";let b;e[9]!==x?(b=s.jsx("span",{className:"text-base font-medium text-foreground",children:x}),e[9]=x,e[10]=b):b=e[10];let v;e[11]!==i.email?(v=s.jsx("span",{className:"text-sm text-muted-foreground",children:i.email}),e[11]=i.email,e[12]=v):v=e[12];let N;e[13]!==b||e[14]!==v?(N=s.jsxs("div",{className:"flex flex-col gap-1",children:[b,v]}),e[13]=b,e[14]=v,e[15]=N):N=e[15];let y;e[16]!==N||e[17]!==k?(y=s.jsxs("div",{className:"flex items-center gap-4",children:[k,N]}),e[16]=N,e[17]=k,e[18]=y):y=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx("h3",{className:"text-sm font-medium text-foreground",children:"Preferences"}),e[19]=S):S=e[19];let z;e[20]!==o?(z=()=>o(tn),e[20]=o,e[21]=z):z=e[21];let M;e[22]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsxs("div",{className:"flex flex-col gap-1 flex-1 min-w-0",children:[s.jsxs(we,{className:"text-sm font-medium text-foreground flex items-center gap-2 pointer-events-none",children:[s.jsx(Cs,{size:16,className:"text-muted-foreground"}),"Developer Mode"]}),s.jsx("p",{className:"text-xs text-muted-foreground pointer-events-none",children:"Show technical details like JSON input/output for tool calls"})]}),e[22]=M):M=e[22];let E;e[23]!==o?(E=fe=>o(ue=>({...ue,devMode:fe})),e[23]=o,e[24]=E):E=e[24];let I;e[25]!==r.devMode||e[26]!==E?(I=s.jsx("div",{onClick:en,children:s.jsx(Le,{checked:r.devMode,onCheckedChange:E})}),e[25]=r.devMode,e[26]=E,e[27]=I):I=e[27];let U;e[28]!==z||e[29]!==I?(U=s.jsxs("button",{type:"button",onClick:z,className:"flex items-center justify-between gap-4 p-4 rounded-lg border border-border hover:bg-accent/50 transition-colors text-left w-full cursor-pointer",children:[M,I]}),e[28]=z,e[29]=I,e[30]=U):U=e[30];let D;e[31]!==h||e[32]!==r.enableNotifications?(D=()=>h(!r.enableNotifications),e[31]=h,e[32]=r.enableNotifications,e[33]=D):D=e[33];let F;e[34]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsxs("div",{className:"flex flex-col gap-1 flex-1 min-w-0",children:[s.jsxs(we,{className:"text-sm font-medium text-foreground flex items-center gap-2 pointer-events-none",children:[s.jsx(St,{size:16,className:"text-muted-foreground"}),"Notifications"]}),s.jsx("p",{className:"text-xs text-muted-foreground pointer-events-none",children:"Play a sound and show notifications when chat messages complete while app is unfocused"})]}),e[34]=F):F=e[34];let $;e[35]!==h||e[36]!==r.enableNotifications?($=s.jsx("div",{onClick:Xs,children:s.jsx(Le,{disabled:typeof Notification>"u",checked:r.enableNotifications,onCheckedChange:h})}),e[35]=h,e[36]=r.enableNotifications,e[37]=$):$=e[37];let P;e[38]!==D||e[39]!==$?(P=s.jsxs("button",{type:"button",disabled:typeof Notification>"u",onClick:D,className:"flex items-center justify-between gap-4 p-4 rounded-lg border border-border hover:bg-accent/50 transition-colors text-left w-full cursor-pointer",children:[F,$]}),e[38]=D,e[39]=$,e[40]=P):P=e[40];let _;e[41]!==U||e[42]!==P?(_=s.jsxs("div",{className:"flex flex-col gap-2",children:[S,U,P]}),e[41]=U,e[42]=P,e[43]=_):_=e[43];let O,T;e[44]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(we,{className:"text-sm font-medium text-foreground",children:"Tool Approval"}),T=s.jsx("p",{className:"text-xs text-muted-foreground",children:"Choose when to require approval before tools execute"}),e[44]=O,e[45]=T):(O=e[44],T=e[45]);let R;e[46]!==o?(R=fe=>o(ue=>({...ue,toolApprovalLevel:fe})),e[46]=o,e[47]=R):R=e[47];let te;e[48]===Symbol.for("react.memo_cache_sentinel")?(te=s.jsx(ys,{className:"w-full",children:s.jsx(Ss,{})}),e[48]=te):te=e[48];let Y;e[49]===Symbol.for("react.memo_cache_sentinel")?(Y=s.jsx(Be,{value:"none",children:s.jsxs("div",{className:"flex items-start flex-col gap-0.5",children:[s.jsx("span",{className:"font-medium",children:"None"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Require approval for all tool calls"})]})}),e[49]=Y):Y=e[49];let Q;e[50]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(Be,{value:"readonly",children:s.jsxs("div",{className:"flex items-start flex-col gap-0.5",children:[s.jsx("span",{className:"font-medium",children:"Read-only"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[50]=Q):Q=e[50];let G;e[51]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsxs(ks,{children:[Y,Q,s.jsx(Be,{value:"yolo",children:s.jsxs("div",{className:"flex items-start flex-col gap-0.5",children:[s.jsx("span",{className:"font-medium",children:"YOLO"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all tools without approval"})]})})]}),e[51]=G):G=e[51];let H;e[52]!==r.toolApprovalLevel||e[53]!==R?(H=s.jsxs("div",{className:"flex flex-col gap-2",children:[O,T,s.jsxs(vs,{value:r.toolApprovalLevel,onValueChange:R,children:[te,G]})]}),e[52]=r.toolApprovalLevel,e[53]=R,e[54]=H):H=e[54];let V,B;e[55]===Symbol.for("react.memo_cache_sentinel")?(V=s.jsx("h3",{className:"text-sm font-medium text-foreground",children:"Experimental"}),B=s.jsx("p",{className:"text-xs text-muted-foreground",children:"Experimental features are unstable and may change or stop working at any time."}),e[55]=V,e[56]=B):(V=e[55],B=e[56]);let W;e[57]!==o?(W=()=>o(Js),e[57]=o,e[58]=W):W=e[58];let C;e[59]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsxs("div",{className:"flex flex-col gap-1 flex-1 min-w-0",children:[s.jsxs(we,{className:"text-sm font-medium text-foreground flex items-center gap-2 pointer-events-none",children:[s.jsx(tt,{size:16,className:"text-muted-foreground"}),"Projects"]}),s.jsx("p",{className:"text-xs text-muted-foreground pointer-events-none",children:"Enable the projects feature in the sidebar"})]}),e[59]=C):C=e[59];let q;e[60]!==o?(q=fe=>o(ue=>({...ue,experimental_projects:fe})),e[60]=o,e[61]=q):q=e[61];let J;e[62]!==r.experimental_projects||e[63]!==q?(J=s.jsx("div",{onClick:Qs,children:s.jsx(Le,{checked:r.experimental_projects,onCheckedChange:q})}),e[62]=r.experimental_projects,e[63]=q,e[64]=J):J=e[64];let le;e[65]!==W||e[66]!==J?(le=s.jsxs("button",{type:"button",onClick:W,className:"flex items-center justify-between gap-4 p-4 rounded-lg border border-border hover:bg-accent/50 transition-colors text-left w-full cursor-pointer",children:[C,J]}),e[65]=W,e[66]=J,e[67]=le):le=e[67];let oe;e[68]!==o?(oe=()=>o(Ys),e[68]=o,e[69]=oe):oe=e[69];let Ce;e[70]===Symbol.for("react.memo_cache_sentinel")?(Ce=s.jsxs("div",{className:"flex flex-col gap-1 flex-1 min-w-0",children:[s.jsxs(we,{className:"text-sm font-medium text-foreground flex items-center gap-2 pointer-events-none",children:[s.jsx(qe,{size:16,className:"text-muted-foreground"}),"Tasks"]}),s.jsx("p",{className:"text-xs text-muted-foreground pointer-events-none",children:"Enable the tasks feature in the sidebar"})]}),e[70]=Ce):Ce=e[70];let ae;e[71]!==o?(ae=fe=>o(ue=>({...ue,experimental_tasks:fe})),e[71]=o,e[72]=ae):ae=e[72];let w;e[73]!==r.experimental_tasks||e[74]!==ae?(w=s.jsx("div",{onClick:Ks,children:s.jsx(Le,{checked:r.experimental_tasks,onCheckedChange:ae})}),e[73]=r.experimental_tasks,e[74]=ae,e[75]=w):w=e[75];let Z;e[76]!==oe||e[77]!==w?(Z=s.jsxs("button",{type:"button",onClick:oe,className:"flex items-center justify-between gap-4 p-4 rounded-lg border border-border hover:bg-accent/50 transition-colors text-left w-full cursor-pointer",children:[Ce,w]}),e[76]=oe,e[77]=w,e[78]=Z):Z=e[78];let ne;e[79]!==le||e[80]!==Z?(ne=s.jsxs("div",{className:"flex flex-col gap-2",children:[V,B,le,Z]}),e[79]=le,e[80]=Z,e[81]=ne):ne=e[81];let ce;e[82]!==y||e[83]!==_||e[84]!==H||e[85]!==ne?(ce=s.jsxs("div",{className:"p-5 space-y-6 min-h-[225px] overflow-y-auto",children:[y,_,H,ne]}),e[82]=y,e[83]=_,e[84]=H,e[85]=ne,e[86]=ce):ce=e[86];let pe;e[87]!==i.id?(pe=s.jsx("span",{className:"font-mono text-xs",children:i.id}),e[87]=i.id,e[88]=pe):pe=e[88];let me;e[89]!==d?(me=d?s.jsx(be,{size:14,className:"text-green-600"}):s.jsx(jt,{size:14,className:"opacity-0 group-hover:opacity-100 transition-opacity"}),e[89]=d,e[90]=me):me=e[90];let de;e[91]!==u||e[92]!==pe||e[93]!==me?(de=s.jsx(ot,{asChild:!0,children:s.jsxs("button",{type:"button",onClick:u,className:"group flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[pe,me]})}),e[91]=u,e[92]=pe,e[93]=me,e[94]=de):de=e[94];let Oe;e[95]===Symbol.for("react.memo_cache_sentinel")?(Oe=s.jsx(at,{side:"top",children:s.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[95]=Oe):Oe=e[95];let ve;e[96]!==de?(ve=s.jsx(ls,{children:s.jsxs(ct,{children:[de,Oe]})}),e[96]=de,e[97]=ve):ve=e[97];let Te;e[98]===Symbol.for("react.memo_cache_sentinel")?(Te=s.jsxs("span",{className:"text-xs text-muted-foreground/75",children:["v","2.114.2"]}),e[98]=Te):Te=e[98];let ye;e[99]!==ve?(ye=s.jsxs("div",{className:"border-t border-border px-5 py-4 flex items-center justify-between shrink-0",children:[ve,Te]}),e[99]=ve,e[100]=ye):ye=e[100];let Se;e[101]!==ce||e[102]!==ye?(Se=s.jsxs(bs,{className:"sm:max-w-lg sm:max-h-[85vh] p-0 flex flex-col",closeButtonClassName:"hidden",children:[j,s.jsxs("div",{className:"flex flex-col overflow-y-hidden",children:[ce,ye]})]}),e[101]=ce,e[102]=ye,e[103]=Se):Se=e[103];let Me;return e[104]!==l||e[105]!==n||e[106]!==Se?(Me=s.jsx(Ns,{open:n,onOpenChange:l,children:Se}),e[104]=l,e[105]=n,e[106]=Se,e[107]=Me):Me=e[107],Me}function Ks(t){return t.stopPropagation()}function Ys(t){return{...t,experimental_tasks:!t.experimental_tasks}}function Qs(t){return t.stopPropagation()}function Js(t){return{...t,experimental_projects:!t.experimental_projects}}function Xs(t){return t.stopPropagation()}function en(t){return t.stopPropagation()}function tn(t){return{...t,devMode:!t.devMode}}function sn(t){return{...t,enableNotifications:!1}}function nn(t){const e=L.c(50),{user:n,userImage:l}=t,[i,a]=A.useState(!1),[r,o]=A.useState(!1);let d;e[0]!==n.email||e[1]!==n.id||e[2]!==n.name?(d=()=>{const R=`ID: ${n.id}
|
|
1
|
+
import{r as A,c as L,j as s,u as Ne,b as He,bz as Ue,L as We,bv as At,bG as Ot,O as X,I as tt,e as Ve,d as ge,t as he,bH as Tt,b6 as Mt,z as Lt,A as Et,S as st,f as Dt,h as Rt,N as Ht,n as Ut,K as Ft,m as nt,P as Bt}from"./index-B1amT4cG.js";import{C as re}from"./index-_RykQo2Q.js";import{I as Wt}from"./integration-icon-D424d7sU.js";import{P as ke,u as rt,d as xe,e as ie,f as Fe,g as Ie,h as Pe,i as it,j as qt,k as Gt,l as lt,m as Vt,n as Zt,o as Kt,p as Yt}from"./index-C2Rh-iWT.js";import{e as Ze,u as Qt,g as Ae,S as se,h as Jt,C as Xt,f as es,j as ts}from"./use-deco-chat-open-wZFGrp-k.js";import{c as K,B as Ee}from"./button-B3wvaVSV.js";import{d as ss}from"./constants-HxzYhcpl.js";import{T as ns,i as rs,b as is}from"./typewriter-title-yxwyjc60.js";import{s as ze}from"./Plus-hXcfla7A.js";import{t as Ke}from"./Users03-CP0pXzvQ.js";import{i as De,a as ot,b as at,T as ct,c as ls}from"./tooltip-CRlxaib0.js";import{E as dt}from"./error-boundary-DOj5ZIEf.js";import{C as mt}from"./create-project-dialog-BROaVV-B.js";import{n as qe}from"./CheckDone01-Dth089nj.js";import{n as os}from"./Container-ByqGd6Uy.js";import{e as as}from"./Dataflow03-DI6H1Dx3.js";import{a as cs}from"./Home02-BXpcTBVe.js";import{t as Re}from"./Settings01-C_xKwser.js";import{u as ft,a as ut}from"./use-project-D7iLSsYE.js";import{t as xt}from"./ChevronDown-CfQqTr__.js";import{A as je}from"./avatar-CaXfYyEp.js";import{c as ee,g as $e,d as ds,e as ms,f as fs,b as pt,D as ht,a as gt}from"./dropdown-menu-B8zAzVyw.js";import{i as be}from"./Check-BVNkiO-r.js";import{C as us}from"./create-organization-dialog-Bij5MntH.js";import{a as jt}from"./Copy01-DR480BtW.js";import{i as bt}from"./File06-BVjx-ooZ.js";import{i as xs}from"./Globe01-HwocQ3h6.js";import{n as _e}from"./LinkExternal01-BXvUd0zS.js";import{i as ps}from"./Shield01-CLMQaoqN.js";import{c as hs,b as gs,g as js,a as bs,D as Ns}from"./dialog-DKEzHh3_.js";import{L as we}from"./label-BlC2umPV.js";import{S as vs,a as ys,b as Ss,d as Be,c as ks}from"./select-BC2NheiG.js";import{S as Le}from"./switch-C3e0Po3O.js";import{i as Cs}from"./Code01-CeL0BWtu.js";import{a as _s,P as ws,b as zs}from"./popover-BBIx9xvl.js";import{n as Xe}from"./Inbox01-Rul9NtEV.js";import{s as $s}from"./XClose-BiXqLsTp.js";import{u as Nt,a as Is}from"./use-organization-settings-CcG2mz2I.js";import{i as Ps}from"./ChevronRight-fjhPsf49.js";import{u as Ye,L as Qe}from"./localstorage-keys-DLKOB_hn.js";import{R as As,a as vt,b as Os}from"./resizable-CNQeHJMq.js";import"./spinner-B9Yx5JiU.js";import"./use-mcp-prompts-D1-dNA0Z.js";import"./useQuery-76sOrPQ-.js";import"./form-DXmjkX5K.js";import"./input-DzuDiRcd.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-jELa2z5C.js";import"./Edit01-1PHQYqRQ.js";import"./XCircle-COjMqF_k.js";import"./AlertCircle-BIMqw_5-.js";import"./AlertTriangle-zLp1y7-M.js";import"./ArrowLeft-k1fcl9NK.js";import"./use-copy-p1mRh5W_.js";import"./badge-wMb3Y-8E.js";import"./use-virtual-mcp-DruGCXgU.js";import"./use-connection-CqXagEzK.js";import"./useMutation-Bv9q7pEj.js";import"./SearchMd-CvAJ9EWO.js";import"./use-create-virtual-mcp-AZujAG2C.js";import"./marked.esm-BaswSlok.js";import"./markdown-fhDAUlnf.js";import"./tools-list-eJ4ppYQ3.js";import"./collection-table-wrapper-8ZivTkeI.js";import"./Grid01-C92C0ZiE.js";import"./List-DWXbw0rd.js";import"./table-Dk5S8CvU.js";import"./empty-state-BTihO37R.js";import"./Loading01-D3VoLrCE.js";import"./card-Dg4qw_Um.js";import"./Eye-CK_RXIJn.js";import"./Globe02-D_Ml-Wmd.js";import"./RefreshCw01-BWffByP-.js";import"./layout-jhaCZcgQ.js";import"./generate-id-Dyweu44Y.js";import"./Clock-CYiT8ACa.js";import"./Trash01-CudSsKDI.js";import"./use-llm-fAyro43J.js";import"./use-binding-COQw-0h_.js";import"./binder--ELnynus.js";import"./Image01-B1MZrMYE.js";import"./RefreshCcw01-w29kn5iE.js";import"./useSuspenseInfiniteQuery-DSwqKk5V.js";import"./infiniteQueryObserver-D19TTRT9.js";import"./index-whQgID_3.js";import"./textarea-CpCoUxeL.js";import"./alert-dialog-Dl4Vgvoo.js";const yt=({size:t=24,color:e="currentColor",...n})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},A.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"}));yt.displayName="BarChart10";const St=({size:t=24,color:e="currentColor",...n})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},A.createElement("path",{d:"M9.354 21c.705.622 1.632 1 2.646 1s1.94-.378 2.646-1M18 8A6 6 0 1 0 6 8c0 3.09-.78 5.206-1.65 6.605-.735 1.18-1.102 1.771-1.089 1.936.015.182.054.252.2.36.133.099.732.099 1.928.099H18.61c1.196 0 1.795 0 1.927-.098.147-.11.186-.179.2-.361.014-.165-.353-.755-1.088-1.936C18.78 13.206 18 11.09 18 8Z"}));St.displayName="Bell01";const Je=({size:t=24,color:e="currentColor",...n})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},A.createElement("path",{d:"M15 21v-5.4c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 14 13.96 14 13.4 14h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 14.76 9 15.04 9 15.6V21M3 7a3 3 0 0 0 6 0 3 3 0 1 0 6 0 3 3 0 1 0 6 0M6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 3 18.92 3 17.8 3H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2v11.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21Z"}));Je.displayName="Building02";const kt=({size:t=24,color:e="currentColor",...n})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},A.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"}));kt.displayName="FaceSmile";const Ct=({size:t=24,color:e="currentColor",...n})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},A.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"}));Ct.displayName="LogOut01";const _t=({size:t=24,color:e="currentColor",...n})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},A.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"}));_t.displayName="MessageTextCircle02";function Ts(){const t=L.c(65),{org:e}=Ne(),[,n]=Ze(),{selectedVirtualMcp:l,modelsConnections:i,isChatEmpty:a,activeThreadId:r,createThread:o,switchToThread:d,threads:c}=Qt();let m;if(t[0]!==r||t[1]!==c){let B;t[3]!==r?(B=W=>W.id===r,t[3]=r,t[4]=B):B=t[4],m=c.find(B),t[0]=r,t[1]=c,t[2]=m}else m=t[2];const u=m,[f,h]=A.useState(!1),[p,j]=A.useTransition();let g;t[5]!==e.id?(g=ss(e.id),t[5]=e.id,t[6]=g):g=t[6];const x=l??g;let b;t[7]!==o?(b=()=>{j(()=>{o()})},t[7]=o,t[8]=b):b=t[8];const v=b;if(i.length===0){let B;t[9]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(ke.Header.Left,{className:"gap-2"}),t[9]=B):B=t[9];let W;t[10]!==n?(W=()=>n(!1),t[10]=n,t[11]=W):W=t[11];let C;t[12]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(De,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=C):C=t[12];let q;t[13]!==W?(q=s.jsxs(ke.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[B,s.jsx(ke.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:W,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:C})})]}),t[13]=W,t[14]=q):q=t[14];let J;t[15]!==e?(J=s.jsx(re.Main,{className:"flex flex-col items-center",children:s.jsx(re.EmptyState,{children:s.jsx(re.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[15]=e,t[16]=J):J=t[16];let le;return t[17]!==q||t[18]!==J?(le=s.jsxs(re,{className:"animate-in fade-in-0 duration-200",children:[q,J]}),t[17]=q,t[18]=J,t[19]=le):le=t[19],le}const N=f?"duration-300 opacity-0 -translate-x-4 pointer-events-none":p?"duration-150 opacity-0 pointer-events-none":"duration-300 opacity-100 translate-x-0";let y;t[20]!==N?(y=K("absolute inset-0 flex flex-col transition-[opacity,transform] ease-[var(--ease-out-quart)]",N),t[20]=N,t[21]=y):y=t[21];let S;t[22]!==u||t[23]!==a?(S=!a&&u?.title&&s.jsx(ns,{text:u.title,className:"text-sm font-medium text-foreground"}),t[22]=u,t[23]=a,t[24]=S):S=t[24];let z;t[25]!==S?(z=s.jsx(ke.Header.Left,{className:"gap-2",children:S}),t[25]=S,t[26]=z):z=t[26];let M;t[27]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(ze,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=M):M=t[27];let E;t[28]!==v||t[29]!==p?(E=s.jsx("button",{type:"button",onClick:v,disabled:p,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:M}),t[28]=v,t[29]=p,t[30]=E):E=t[30];let I;t[31]===Symbol.for("react.memo_cache_sentinel")?(I=()=>h(!0),t[31]=I):I=t[31];let U;t[32]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx("button",{type:"button",onClick:I,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Chat history",children:s.jsx(rs,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=U):U=t[32];let D;t[33]!==n?(D=()=>n(!1),t[33]=n,t[34]=D):D=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 $;t[36]!==D?($=s.jsx("button",{type:"button",onClick:D,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:F}),t[36]=D,t[37]=$):$=t[37];let P;t[38]!==$||t[39]!==E?(P=s.jsxs(ke.Header.Right,{className:"gap-1",children:[E,U,$]}),t[38]=$,t[39]=E,t[40]=P):P=t[40];let _;t[41]!==P||t[42]!==z?(_=s.jsxs(ke.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[z,P]}),t[41]=P,t[42]=z,t[43]=_):_=t[43];let O;t[44]!==x||t[45]!==a?(O=s.jsx(re.Main,{children:a?s.jsx(re.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(Wt,{icon:x.icon,name:x.title,size:"lg",fallbackIcon:s.jsx(Ke,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:x.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:x.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(re.IceBreakers,{})]})}):s.jsx(re.Messages,{})}),t[44]=x,t[45]=a,t[46]=O):O=t[46];let T;t[47]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(re.Footer,{children:s.jsx(re.Input,{})}),t[47]=T):T=t[47];let R;t[48]!==_||t[49]!==O||t[50]!==y?(R=s.jsxs("div",{className:y,children:[_,O,T]}),t[48]=_,t[49]=O,t[50]=y,t[51]=R):R=t[51];const te=f?"opacity-100 translate-x-0":"opacity-0 translate-x-4 pointer-events-none";let Y;t[52]!==te?(Y=K("absolute inset-0 flex flex-col transition-[opacity,transform] duration-300 ease-[var(--ease-out-quart)]",te),t[52]=te,t[53]=Y):Y=t[53];let Q;t[54]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>h(!1),t[54]=Q):Q=t[54];let G;t[55]!==r||t[56]!==d||t[57]!==c?(G=s.jsx(is,{threads:c,activeThreadId:r,onThreadSelect:d,onClose:Q}),t[55]=r,t[56]=d,t[57]=c,t[58]=G):G=t[58];let H;t[59]!==Y||t[60]!==G?(H=s.jsx("div",{className:Y,children:G}),t[59]=Y,t[60]=G,t[61]=H):H=t[61];let V;return t[62]!==R||t[63]!==H?(V=s.jsxs(re,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[R,H]}),t[62]=R,t[63]=H,t[64]=V):V=t[64],V}function Ms(){const t=L.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(re.Skeleton,{}),t[0]=e):e=t[0];let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(dt,{fallback:e,children:s.jsx(A.Suspense,{fallback:s.jsx(re.Skeleton,{}),children:s.jsx(Ts,{})})}),t[1]=n):n=t[1],n}function Ls(){const t=L.c(54),[e]=Ae(),{locator:n,org:l}=Ne(),i=He(),a=Ue(),{org:r,project:o}=We.parse(n),d=We.isOrgAdminProject(n),{data:c}=ft(l.id,o);let m;t[0]!==c?.enabledPlugins?(m=c?.enabledPlugins??[],t[0]=c?.enabledPlugins,t[1]=m):m=t[1];const u=m;let f;t[2]!==u?(f=w=>u.includes(w.pluginId),t[2]=u,t[3]=f):f=t[3];const h=At.filter(f),p=a.location.pathname,j=`/${r}/${o}`,g=p===j||p===`${j}/`;let k;t[4]!==j||t[5]!==p?(k=w=>p.startsWith(`${j}/${w}`),t[4]=j,t[5]=p,t[6]=k):k=t[6];const x=k;let b;t[7]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(cs,{}),t[7]=b):b=t[7];const v={key:"home",label:"Home",icon:b,isActive:g,onClick:()=>{g?window.dispatchEvent(new CustomEvent("reset-home-view")):i({to:"/$org/$project",params:{org:r,project:o}})}};let N;t[8]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(qe,{}),t[8]=N):N=t[8];const y={key:"tasks",label:"Tasks",icon:N,isActive:x("tasks"),onClick:()=>i({to:"/$org/$project/tasks",params:{org:r,project:X}})};let S;t[9]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(os,{}),t[9]=S):S=t[9];const z={key:"mcps",label:"Connections",icon:S,isActive:x("mcps"),onClick:()=>i({to:"/$org/$project/mcps",params:{org:r,project:X}})};let M;t[10]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(tt,{}),t[10]=M):M=t[10];const E={key:"projects",label:"Projects",icon:M,isActive:x("projects"),onClick:()=>i({to:"/$org/$project/projects",params:{org:r,project:X}})};let I;t[11]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(Je,{}),t[11]=I):I=t[11];const U={key:"store",label:"Store",icon:I,isActive:x("store"),onClick:()=>i({to:"/$org/$project/store",params:{org:r,project:X}})};let D;t[12]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Ke,{}),t[12]=D):D=t[12];const F={key:"agents",label:"Agents",icon:D,isActive:x("agents"),onClick:()=>i({to:"/$org/$project/agents",params:{org:r,project:X}})};let $;t[13]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(yt,{}),t[13]=$):$=t[13];const P={key:"monitoring",label:"Monitor",icon:$,isActive:x("monitoring"),onClick:()=>i({to:"/$org/$project/monitoring",params:{org:r,project:X}})};let _;t[14]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(kt,{}),t[14]=_):_=t[14];const O={key:"members",label:"Members",icon:_,isActive:x("members"),onClick:()=>i({to:"/$org/$project/members",params:{org:r,project:X}})},T=h.map(w=>({key:w.pluginId,label:w.label,icon:w.icon,isActive:x(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:r,project:o,pluginId:w.pluginId}})}));let R;t[15]!==u?(R=w=>u.includes(w.pluginId),t[15]=u,t[16]=R):R=t[16];const Y=Ot.filter(R).map(w=>({type:"group",group:{id:`${w.pluginId}-${w.id}`,label:w.label,items:w.items.map((Z,ne)=>({key:`${w.pluginId}-${w.id}-${ne}`,label:Z.label,icon:Z.icon,isActive:x(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:r,project:o,pluginId:w.pluginId}})})),defaultExpanded:w.defaultExpanded??!0}}));if(d){let w;t[17]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Re,{}),t[17]=w):w=t[17];let Z;t[18]!==x?(Z=x("settings"),t[18]=x,t[19]=Z):Z=t[19];let ne;t[20]!==i||t[21]!==r?(ne=()=>i({to:"/$org/$project/settings",params:{org:r,project:X}}),t[20]=i,t[21]=r,t[22]=ne):ne=t[22];let ce;t[23]!==Z||t[24]!==ne?(ce={key:"settings",label:"Settings",icon:w,isActive:Z,onClick:ne},t[23]=Z,t[24]=ne,t[25]=ce):ce=t[25];const pe=ce,me=[{type:"items",items:[v,...e.experimental_tasks?[y]:[],...e.experimental_projects?[E]:[]]},{type:"group",group:{id:"build",label:"Build",items:[F,z,U],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[P,O,pe],defaultExpanded:!0}}];if(T.length>0){let de;t[26]!==T?(de={type:"items",items:T},t[26]=T,t[27]=de):de=t[27],me.push(de)}return Y.length>0&&me.push(...Y),me}let Q;t[28]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(qe,{}),t[28]=Q):Q=t[28];let G;t[29]!==x?(G=x("tasks"),t[29]=x,t[30]=G):G=t[30];let H;t[31]!==i||t[32]!==r||t[33]!==o?(H=()=>i({to:"/$org/$project/tasks",params:{org:r,project:o}}),t[31]=i,t[32]=r,t[33]=o,t[34]=H):H=t[34];let V;t[35]!==G||t[36]!==H?(V={key:"tasks",label:"Tasks",icon:Q,isActive:G,onClick:H},t[35]=G,t[36]=H,t[37]=V):V=t[37];const B=V;let W;t[38]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(as,{}),t[38]=W):W=t[38];let C;t[39]!==x?(C=x("workflows"),t[39]=x,t[40]=C):C=t[40];let q;t[41]!==i||t[42]!==r||t[43]!==o?(q=()=>i({to:"/$org/$project/workflows",params:{org:r,project:o}}),t[41]=i,t[42]=r,t[43]=o,t[44]=q):q=t[44];let J;t[45]!==C||t[46]!==q?(J={key:"workflows",label:"Workflows",icon:W,isActive:C,onClick:q},t[45]=C,t[46]=q,t[47]=J):J=t[47];const le=J;let oe;t[48]!==e.experimental_tasks||t[49]!==B?(oe=e.experimental_tasks?[B]:[],t[48]=e.experimental_tasks,t[49]=B,t[50]=oe):oe=t[50];const ae=[{type:"items",items:[v,...oe,le]}];if(T.length>0){let w;t[51]===Symbol.for("react.memo_cache_sentinel")?(w={type:"divider"},t[51]=w):w=t[51],ae.push(w);let Z;t[52]!==T?(Z={type:"items",items:T},t[52]=T,t[53]=Z):Z=t[53],ae.push(Z)}return Y.length>0&&ae.push(...Y),ae}function Es(t){const e=L.c(11),{label:n,children:l,defaultExpanded:i}=t,a=i===void 0?!0:i,[r,o]=A.useState(a),{state:d}=rt(),c=d==="collapsed";let m;e[0]!==r||e[1]!==c||e[2]!==n?(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(xe,{children:s.jsx(ie,{children:s.jsxs(Fe,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>o(!r),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:n}),s.jsx(xt,{size:12,className:K("text-muted-foreground transition-transform duration-200",!r&&"-rotate-90")})]})})}),e[0]=r,e[1]=c,e[2]=n,e[3]=m):m=e[3];let u;e[4]!==l||e[5]!==r||e[6]!==c?(u=(c||r)&&s.jsx(Ie,{children:s.jsx(xe,{className:"gap-0.5",children:l})}),e[4]=l,e[5]=r,e[6]=c,e[7]=u):u=e[7];let f;return e[8]!==m||e[9]!==u?(f=s.jsxs(Pe,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[m,u]}),e[8]=m,e[9]=u,e[10]=f):f=e[10],f}function wt(t){const e=L.c(13),{item:n}=t;let l;e[0]!==n.icon?(l=s.jsx("span",{className:"[&>svg]:size-4",children:n.icon}),e[0]=n.icon,e[1]=l):l=e[1];let i;e[2]!==n.label?(i=s.jsx("span",{className:"truncate group-data-[collapsible=icon]:hidden",children:n.label}),e[2]=n.label,e[3]=i):i=e[3];let a;e[4]!==n.isActive||e[5]!==n.label||e[6]!==n.onClick||e[7]!==l||e[8]!==i?(a=s.jsxs(Fe,{onClick:n.onClick,isActive:n.isActive,tooltip:n.label,children:[l,i]}),e[4]=n.isActive,e[5]=n.label,e[6]=n.onClick,e[7]=l,e[8]=i,e[9]=a):a=e[9];let r;return e[10]!==n.key||e[11]!==a?(r=s.jsx(ie,{children:a},n.key),e[10]=n.key,e[11]=a,e[12]=r):r=e[12],r}function Ds(t){const e=L.c(12),{section:n}=t;switch(n.type){case"divider":{let l;return e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(it,{className:"my-2"}),e[0]=l):l=e[0],l}case"spacer":{let l;return e[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex-1"}),e[1]=l):l=e[1],l}case"group":{const l=n.group.label,i=n.group.defaultExpanded;let a;e[2]!==n.group.items?(a=n.group.items.map(Hs),e[2]=n.group.items,e[3]=a):a=e[3];let r;return e[4]!==n.group.defaultExpanded||e[5]!==n.group.label||e[6]!==a?(r=s.jsx(Es,{label:l,defaultExpanded:i,children:a}),e[4]=n.group.defaultExpanded,e[5]=n.group.label,e[6]=a,e[7]=r):r=e[7],r}case"items":{let l;e[8]!==n.items?(l=n.items.map(Rs),e[8]=n.items,e[9]=l):l=e[9];let i;return e[10]!==l?(i=s.jsx(Pe,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ie,{children:s.jsx(xe,{className:"gap-0.5",children:l})})}),e[10]=l,e[11]=i):i=e[11],i}}}function Rs(t){return s.jsx(wt,{item:t},t.key)}function Hs(t){return s.jsx(wt,{item:t},t.key)}function zt(t){const e=L.c(14),{sections:n,header:l,footer:i,additionalContent:a,variant:r,collapsible:o,contentClassName:d}=t,c=r===void 0?"sidebar":r,m=o===void 0?"icon":o;let u;e[0]!==d?(u=K("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]=u):u=e[1];let f;e[2]!==n?(f=n.map(Us),e[2]=n,e[3]=f):f=e[3];let h;e[4]!==a||e[5]!==u||e[6]!==f?(h=s.jsxs(qt,{className:u,children:[f,a]}),e[4]=a,e[5]=u,e[6]=f,e[7]=h):h=e[7];let p;return e[8]!==m||e[9]!==i||e[10]!==l||e[11]!==h||e[12]!==c?(p=s.jsxs(Gt,{variant:c,collapsible:m,children:[l,h,i]}),e[8]=m,e[9]=i,e[10]=l,e[11]=h,e[12]=c,e[13]=p):p=e[13],p}function Us(t,e){return s.jsx(Ds,{section:t},e)}zt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,n)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(se,{className:"h-full bg-sidebar-accent rounded-md"})},n))})};function Fs(){const t=L.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(se,{className:"h-8 w-full rounded-lg"}),s.jsx(se,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function Bs(t){const e=L.c(12),{organizationId:n,currentProjectSlug:l,onSelect:i}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={suspense:!0},e[0]=a):a=e[0];const{data:r}=ut(n,a);let o,d;if(e[1]!==l||e[2]!==i||e[3]!==r){d=Symbol.for("react.early_return_sentinel");e:{const m=r?.filter(Ws)??[];if(m.length===0){let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=f):f=e[6],d=f;break e}let u;e[7]!==l||e[8]!==i?(u=f=>{const h=l===f.slug,p=f.ui?.themeColor??"#3B82F6";return s.jsxs(ee,{className:K("gap-2.5",h&&"bg-accent"),onClick:()=>i(f.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:p},children:f.ui?.icon?s.jsx("img",{src:f.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:f.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:f.name}),h&&s.jsx(be,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},f.id)},e[7]=l,e[8]=i,e[9]=u):u=e[9],o=m.map(u)}e[1]=l,e[2]=i,e[3]=r,e[4]=o,e[5]=d}else o=e[4],d=e[5];if(d!==Symbol.for("react.early_return_sentinel"))return d;let c;return e[10]!==o?(c=s.jsx(s.Fragment,{children:o}),e[10]=o,e[11]=c):c=e[11],c}function Ws(t){return t.slug!==X}function qs(t){let e=0;for(let l=0;l<t.length;l++)e=t.charCodeAt(l)+((e<<5)-e);const n=Math.abs(e)%360;return{backgroundColor:`hsl(${n} 55% 70%)`,color:`hsl(${n} 55% 20%)`}}function $t(t){const e=L.c(44),{isCollapsed:n,onCreateProject:l}=t,i=n===void 0?!1:n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const{org:r,project:o}=Ve(a),{data:d}=ge.useListOrganizations(),c=He(),m=d?.find(C=>C.slug===r),[u,f]=A.useState(!1),[h]=Ae(),p=h.experimental_projects,j=o===X,{data:g}=ft(m?.id??"",j?"":o??"");let k;e[1]!==r?(k=(C,q)=>C.slug===r?-1:q.slug===r?1:C.name.localeCompare(q.name),e[1]=r,e[2]=k):k=e[2];const x=[...d??[]].sort(k);let b;e[3]!==c||e[4]!==r?(b=()=>{r&&c({to:"/$org/$project",params:{org:r,project:X}})},e[3]=c,e[4]=r,e[5]=b):b=e[5];const v=b;let N;e[6]!==c||e[7]!==r?(N=C=>{r&&c({to:"/$org/$project",params:{org:r,project:C}})},e[6]=c,e[7]=r,e[8]=N):N=e[8];const y=N;let S;e[9]!==c?(S=C=>{c({to:"/$org/$project",params:{org:C,project:X}})},e[9]=c,e[10]=S):S=e[10];const z=S;let M;e[11]!==l?(M=l?()=>l():void 0,e[11]=l,e[12]=M):M=e[12];const E=M;let I;e[13]!==c||e[14]!==r||e[15]!==o?(I=()=>{!r||!o||c({to:"/$org/$project/settings",params:{org:r,project:o}})},e[13]=c,e[14]=r,e[15]=o,e[16]=I):I=e[16];const U=I,D=ht,F=i?"w-auto pr-1.5":"w-full";let $;e[17]!==F?($=K("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]=$):$=e[18];const P=j?s.jsx("div",{className:K("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:qs(m?.name??""),children:m?.logo?s.jsx("img",{src:m.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:K("font-semibold leading-none",i?"text-[9px]":"text-xs"),children:(m?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:K("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:g?.ui?.themeColor??"#60a5fa"},children:g?.ui?.icon?s.jsx("img",{src:g.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:K("font-semibold text-white",i?"text-xs":"text-lg"),children:(g?.name??o??"?").charAt(0).toUpperCase()})});let _;e[19]!==m?.name||e[20]!==g?.name||e[21]!==p||e[22]!==i||e[23]!==j||e[24]!==o?(_=!i&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:p?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:j?"Studio":g?.name??o??""})]}):s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:m?.name??"Select org"})}),s.jsx(Jt,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=m?.name,e[20]=g?.name,e[21]=p,e[22]=i,e[23]=j,e[24]=o,e[25]=_):_=e[25];let O;e[26]!==$||e[27]!==P||e[28]!==_?(O=s.jsx(gt,{asChild:!0,children:s.jsxs("button",{type:"button",className:$,children:[P,_]})}),e[26]=$,e[27]=P,e[28]=_,e[29]=O):O=e[29];const T=pt,R="start",te="bottom",Y="w-64 flex flex-col gap-0.5",Q=Gs,G=p?s.jsxs(s.Fragment,{children:[s.jsxs(ee,{className:K("gap-2.5",j&&"bg-accent"),onClick:v,children:[s.jsx(je,{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]}),j&&s.jsx(be,{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(A.Suspense,{fallback:s.jsx(Fs,{}),children:s.jsx(Bs,{organizationId:m.id,currentProjectSlug:o,orgSlug:r??"",onSelect:y})}),E&&s.jsxs(ee,{className:"gap-2.5",onClick:E,children:[s.jsx(ze,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),s.jsx($e,{}),s.jsxs(ds,{children:[s.jsxs(ms,{className:"gap-2.5",children:[s.jsx(Je,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),s.jsxs(fs,{className:"w-48 flex flex-col gap-0.5",children:[x.map(C=>s.jsxs(ee,{className:K("gap-2.5",C.slug===r&&"bg-accent"),onClick:()=>z(C.slug),children:[s.jsx(je,{url:C.logo??"",fallback:C.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:C.name}),C.slug===r&&s.jsx(be,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},C.id)),s.jsx($e,{}),s.jsxs(ee,{className:"gap-2.5",onClick:()=>f(!0),children:[s.jsx(ze,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]})]})]}),s.jsxs(ee,{className:"gap-2.5",onClick:U,children:[s.jsx(Re,{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"}),x.map(C=>s.jsxs(ee,{className:K("gap-2.5",C.slug===r&&"bg-accent"),onClick:()=>z(C.slug),children:[s.jsx(je,{url:C.logo??"",fallback:C.name,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:C.name}),C.slug===r&&s.jsx(be,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},C.id)),s.jsxs(ee,{className:"gap-2.5",onClick:()=>f(!0),children:[s.jsx(ze,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]}),s.jsx($e,{}),s.jsxs(ee,{className:"gap-2.5",onClick:U,children:[s.jsx(Re,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]});let H;e[30]!==T||e[31]!==Q||e[32]!==G?(H=s.jsx(T,{align:R,side:te,className:Y,onCloseAutoFocus:Q,children:G}),e[30]=T,e[31]=Q,e[32]=G,e[33]=H):H=e[33];let V;e[34]!==D||e[35]!==O||e[36]!==H?(V=s.jsxs(D,{children:[O,H]}),e[34]=D,e[35]=O,e[36]=H,e[37]=V):V=e[37];let B;e[38]!==u||e[39]!==f?(B=s.jsx(us,{open:u,onOpenChange:f}),e[38]=u,e[39]=f,e[40]=B):B=e[40];let W;return e[41]!==V||e[42]!==B?(W=s.jsxs(s.Fragment,{children:[V,B]}),e[41]=V,e[42]=B,e[43]=W):W=e[43],W}function Gs(t){return t.preventDefault()}$t.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(se,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(se,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Ge(t){const e=L.c(23),{onCreateProject:n}=t,{state:l}=rt(),i=l==="collapsed",[a,r]=Ze();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const{org:d,project:c}=Ve(o),{location:m}=Ue(),u=m.pathname===`/${d}/${c}`||m.pathname===`/${d}/${c}/`;let f;e[1]!==r?(f=()=>{r(Vs)},e[1]=r,e[2]=f):f=e[2];const h=f;let p;e[3]!==i||e[4]!==n?(p=s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx($t,{isCollapsed:i,onCreateProject:n})}),e[3]=i,e[4]=n,e[5]=p):p=e[5];const j=i||u?"max-w-0 opacity-0 pointer-events-none":"max-w-[2rem] opacity-100";let g;e[6]!==j?(g=K("flex items-center gap-0.5 shrink-0 overflow-hidden transition-[max-width,opacity] duration-300 ease-[var(--ease-out-quart)]",j),e[6]=j,e[7]=g):g=e[7];const k=a&&"bg-sidebar-accent text-sidebar-foreground";let x;e[8]!==k?(x=K("size-7 hover:bg-sidebar-accent text-sidebar-foreground/50 hover:text-sidebar-foreground",k),e[8]=k,e[9]=x):x=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(_t,{size:14,className:"text-inherit"}),e[10]=b):b=e[10];let v;e[11]!==x||e[12]!==h?(v=s.jsx(ot,{asChild:!0,children:s.jsx(Ee,{variant:"ghost",size:"icon",className:x,onClick:h,"aria-label":"Toggle Decopilot",children:b})}),e[11]=x,e[12]=h,e[13]=v):v=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(at,{side:"bottom",children:"Toggle Decopilot"}),e[14]=N):N=e[14];let y;e[15]!==v?(y=s.jsxs(ct,{children:[v,N]}),e[15]=v,e[16]=y):y=e[16];let S;e[17]!==y||e[18]!==g?(S=s.jsx("div",{className:g,children:y}),e[17]=y,e[18]=g,e[19]=S):S=e[19];let z;return e[20]!==S||e[21]!==p?(z=s.jsx(lt,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(xe,{children:s.jsx(ie,{children:s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[p,S]})})})}),e[20]=S,e[21]=p,e[22]=z):z=e[22],z}function Vs(t){return!t}Ge.Skeleton=function(){return s.jsx(lt,{className:"px-3",children:s.jsx(xe,{children:s.jsx(ie,{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(se,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(se,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsxs("div",{className:"flex items-center gap-0.5",children:[s.jsx(se,{className:"size-7 rounded-lg bg-sidebar-accent"}),s.jsx(se,{className:"size-7 rounded-lg bg-sidebar-accent"})]})]})})})})};function Zs(t){const e=L.c(108),{open:n,onOpenChange:l,user:i,userImage:a}=t,[r,o]=Ae(),[d,c]=A.useState(!1);let m;e[0]!==i.id?(m=()=>{navigator.clipboard.writeText(i.id),c(!0),setTimeout(()=>c(!1),2e3)},e[0]=i.id,e[1]=m):m=e[1];const u=m;let f;e[2]!==o?(f=async fe=>{if(fe&&await Notification.requestPermission()!=="granted"){he.error("Notifications denied. Please enable them in your browser settings."),o(sn);return}o(ue=>({...ue,enableNotifications:fe}))},e[2]=o,e[3]=f):f=e[3];const h=f;let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(hs,{className:"text-base",children:"Profile Settings"}),e[4]=p):p=e[4];let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsxs(gs,{className:"px-6 pt-6 pb-4 border-b border-border shrink-0 relative",children:[p,s.jsxs(js,{className:"absolute top-1/2 right-4 -translate-y-1/2 cursor-pointer rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",children:[s.jsx(De,{size:16}),s.jsx("span",{className:"sr-only",children:"Close"})]})]}),e[5]=j):j=e[5];const g=i.name||"U";let k;e[6]!==g||e[7]!==a?(k=s.jsx(je,{url:a,fallback:g,shape:"circle",size:"xl",className:"h-16 w-16"}),e[6]=g,e[7]=a,e[8]=k):k=e[8];const x=i.name||"User";let b;e[9]!==x?(b=s.jsx("span",{className:"text-base font-medium text-foreground",children:x}),e[9]=x,e[10]=b):b=e[10];let v;e[11]!==i.email?(v=s.jsx("span",{className:"text-sm text-muted-foreground",children:i.email}),e[11]=i.email,e[12]=v):v=e[12];let N;e[13]!==b||e[14]!==v?(N=s.jsxs("div",{className:"flex flex-col gap-1",children:[b,v]}),e[13]=b,e[14]=v,e[15]=N):N=e[15];let y;e[16]!==N||e[17]!==k?(y=s.jsxs("div",{className:"flex items-center gap-4",children:[k,N]}),e[16]=N,e[17]=k,e[18]=y):y=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx("h3",{className:"text-sm font-medium text-foreground",children:"Preferences"}),e[19]=S):S=e[19];let z;e[20]!==o?(z=()=>o(tn),e[20]=o,e[21]=z):z=e[21];let M;e[22]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsxs("div",{className:"flex flex-col gap-1 flex-1 min-w-0",children:[s.jsxs(we,{className:"text-sm font-medium text-foreground flex items-center gap-2 pointer-events-none",children:[s.jsx(Cs,{size:16,className:"text-muted-foreground"}),"Developer Mode"]}),s.jsx("p",{className:"text-xs text-muted-foreground pointer-events-none",children:"Show technical details like JSON input/output for tool calls"})]}),e[22]=M):M=e[22];let E;e[23]!==o?(E=fe=>o(ue=>({...ue,devMode:fe})),e[23]=o,e[24]=E):E=e[24];let I;e[25]!==r.devMode||e[26]!==E?(I=s.jsx("div",{onClick:en,children:s.jsx(Le,{checked:r.devMode,onCheckedChange:E})}),e[25]=r.devMode,e[26]=E,e[27]=I):I=e[27];let U;e[28]!==z||e[29]!==I?(U=s.jsxs("button",{type:"button",onClick:z,className:"flex items-center justify-between gap-4 p-4 rounded-lg border border-border hover:bg-accent/50 transition-colors text-left w-full cursor-pointer",children:[M,I]}),e[28]=z,e[29]=I,e[30]=U):U=e[30];let D;e[31]!==h||e[32]!==r.enableNotifications?(D=()=>h(!r.enableNotifications),e[31]=h,e[32]=r.enableNotifications,e[33]=D):D=e[33];let F;e[34]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsxs("div",{className:"flex flex-col gap-1 flex-1 min-w-0",children:[s.jsxs(we,{className:"text-sm font-medium text-foreground flex items-center gap-2 pointer-events-none",children:[s.jsx(St,{size:16,className:"text-muted-foreground"}),"Notifications"]}),s.jsx("p",{className:"text-xs text-muted-foreground pointer-events-none",children:"Play a sound and show notifications when chat messages complete while app is unfocused"})]}),e[34]=F):F=e[34];let $;e[35]!==h||e[36]!==r.enableNotifications?($=s.jsx("div",{onClick:Xs,children:s.jsx(Le,{disabled:typeof Notification>"u",checked:r.enableNotifications,onCheckedChange:h})}),e[35]=h,e[36]=r.enableNotifications,e[37]=$):$=e[37];let P;e[38]!==D||e[39]!==$?(P=s.jsxs("button",{type:"button",disabled:typeof Notification>"u",onClick:D,className:"flex items-center justify-between gap-4 p-4 rounded-lg border border-border hover:bg-accent/50 transition-colors text-left w-full cursor-pointer",children:[F,$]}),e[38]=D,e[39]=$,e[40]=P):P=e[40];let _;e[41]!==U||e[42]!==P?(_=s.jsxs("div",{className:"flex flex-col gap-2",children:[S,U,P]}),e[41]=U,e[42]=P,e[43]=_):_=e[43];let O,T;e[44]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(we,{className:"text-sm font-medium text-foreground",children:"Tool Approval"}),T=s.jsx("p",{className:"text-xs text-muted-foreground",children:"Choose when to require approval before tools execute"}),e[44]=O,e[45]=T):(O=e[44],T=e[45]);let R;e[46]!==o?(R=fe=>o(ue=>({...ue,toolApprovalLevel:fe})),e[46]=o,e[47]=R):R=e[47];let te;e[48]===Symbol.for("react.memo_cache_sentinel")?(te=s.jsx(ys,{className:"w-full",children:s.jsx(Ss,{})}),e[48]=te):te=e[48];let Y;e[49]===Symbol.for("react.memo_cache_sentinel")?(Y=s.jsx(Be,{value:"none",children:s.jsxs("div",{className:"flex items-start flex-col gap-0.5",children:[s.jsx("span",{className:"font-medium",children:"None"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Require approval for all tool calls"})]})}),e[49]=Y):Y=e[49];let Q;e[50]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(Be,{value:"readonly",children:s.jsxs("div",{className:"flex items-start flex-col gap-0.5",children:[s.jsx("span",{className:"font-medium",children:"Read-only"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[50]=Q):Q=e[50];let G;e[51]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsxs(ks,{children:[Y,Q,s.jsx(Be,{value:"yolo",children:s.jsxs("div",{className:"flex items-start flex-col gap-0.5",children:[s.jsx("span",{className:"font-medium",children:"YOLO"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all tools without approval"})]})})]}),e[51]=G):G=e[51];let H;e[52]!==r.toolApprovalLevel||e[53]!==R?(H=s.jsxs("div",{className:"flex flex-col gap-2",children:[O,T,s.jsxs(vs,{value:r.toolApprovalLevel,onValueChange:R,children:[te,G]})]}),e[52]=r.toolApprovalLevel,e[53]=R,e[54]=H):H=e[54];let V,B;e[55]===Symbol.for("react.memo_cache_sentinel")?(V=s.jsx("h3",{className:"text-sm font-medium text-foreground",children:"Experimental"}),B=s.jsx("p",{className:"text-xs text-muted-foreground",children:"Experimental features are unstable and may change or stop working at any time."}),e[55]=V,e[56]=B):(V=e[55],B=e[56]);let W;e[57]!==o?(W=()=>o(Js),e[57]=o,e[58]=W):W=e[58];let C;e[59]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsxs("div",{className:"flex flex-col gap-1 flex-1 min-w-0",children:[s.jsxs(we,{className:"text-sm font-medium text-foreground flex items-center gap-2 pointer-events-none",children:[s.jsx(tt,{size:16,className:"text-muted-foreground"}),"Projects"]}),s.jsx("p",{className:"text-xs text-muted-foreground pointer-events-none",children:"Enable the projects feature in the sidebar"})]}),e[59]=C):C=e[59];let q;e[60]!==o?(q=fe=>o(ue=>({...ue,experimental_projects:fe})),e[60]=o,e[61]=q):q=e[61];let J;e[62]!==r.experimental_projects||e[63]!==q?(J=s.jsx("div",{onClick:Qs,children:s.jsx(Le,{checked:r.experimental_projects,onCheckedChange:q})}),e[62]=r.experimental_projects,e[63]=q,e[64]=J):J=e[64];let le;e[65]!==W||e[66]!==J?(le=s.jsxs("button",{type:"button",onClick:W,className:"flex items-center justify-between gap-4 p-4 rounded-lg border border-border hover:bg-accent/50 transition-colors text-left w-full cursor-pointer",children:[C,J]}),e[65]=W,e[66]=J,e[67]=le):le=e[67];let oe;e[68]!==o?(oe=()=>o(Ys),e[68]=o,e[69]=oe):oe=e[69];let Ce;e[70]===Symbol.for("react.memo_cache_sentinel")?(Ce=s.jsxs("div",{className:"flex flex-col gap-1 flex-1 min-w-0",children:[s.jsxs(we,{className:"text-sm font-medium text-foreground flex items-center gap-2 pointer-events-none",children:[s.jsx(qe,{size:16,className:"text-muted-foreground"}),"Tasks"]}),s.jsx("p",{className:"text-xs text-muted-foreground pointer-events-none",children:"Enable the tasks feature in the sidebar"})]}),e[70]=Ce):Ce=e[70];let ae;e[71]!==o?(ae=fe=>o(ue=>({...ue,experimental_tasks:fe})),e[71]=o,e[72]=ae):ae=e[72];let w;e[73]!==r.experimental_tasks||e[74]!==ae?(w=s.jsx("div",{onClick:Ks,children:s.jsx(Le,{checked:r.experimental_tasks,onCheckedChange:ae})}),e[73]=r.experimental_tasks,e[74]=ae,e[75]=w):w=e[75];let Z;e[76]!==oe||e[77]!==w?(Z=s.jsxs("button",{type:"button",onClick:oe,className:"flex items-center justify-between gap-4 p-4 rounded-lg border border-border hover:bg-accent/50 transition-colors text-left w-full cursor-pointer",children:[Ce,w]}),e[76]=oe,e[77]=w,e[78]=Z):Z=e[78];let ne;e[79]!==le||e[80]!==Z?(ne=s.jsxs("div",{className:"flex flex-col gap-2",children:[V,B,le,Z]}),e[79]=le,e[80]=Z,e[81]=ne):ne=e[81];let ce;e[82]!==y||e[83]!==_||e[84]!==H||e[85]!==ne?(ce=s.jsxs("div",{className:"p-5 space-y-6 min-h-[225px] overflow-y-auto",children:[y,_,H,ne]}),e[82]=y,e[83]=_,e[84]=H,e[85]=ne,e[86]=ce):ce=e[86];let pe;e[87]!==i.id?(pe=s.jsx("span",{className:"font-mono text-xs",children:i.id}),e[87]=i.id,e[88]=pe):pe=e[88];let me;e[89]!==d?(me=d?s.jsx(be,{size:14,className:"text-green-600"}):s.jsx(jt,{size:14,className:"opacity-0 group-hover:opacity-100 transition-opacity"}),e[89]=d,e[90]=me):me=e[90];let de;e[91]!==u||e[92]!==pe||e[93]!==me?(de=s.jsx(ot,{asChild:!0,children:s.jsxs("button",{type:"button",onClick:u,className:"group flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[pe,me]})}),e[91]=u,e[92]=pe,e[93]=me,e[94]=de):de=e[94];let Oe;e[95]===Symbol.for("react.memo_cache_sentinel")?(Oe=s.jsx(at,{side:"top",children:s.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[95]=Oe):Oe=e[95];let ve;e[96]!==de?(ve=s.jsx(ls,{children:s.jsxs(ct,{children:[de,Oe]})}),e[96]=de,e[97]=ve):ve=e[97];let Te;e[98]===Symbol.for("react.memo_cache_sentinel")?(Te=s.jsxs("span",{className:"text-xs text-muted-foreground/75",children:["v","2.114.3"]}),e[98]=Te):Te=e[98];let ye;e[99]!==ve?(ye=s.jsxs("div",{className:"border-t border-border px-5 py-4 flex items-center justify-between shrink-0",children:[ve,Te]}),e[99]=ve,e[100]=ye):ye=e[100];let Se;e[101]!==ce||e[102]!==ye?(Se=s.jsxs(bs,{className:"sm:max-w-lg sm:max-h-[85vh] p-0 flex flex-col",closeButtonClassName:"hidden",children:[j,s.jsxs("div",{className:"flex flex-col overflow-y-hidden",children:[ce,ye]})]}),e[101]=ce,e[102]=ye,e[103]=Se):Se=e[103];let Me;return e[104]!==l||e[105]!==n||e[106]!==Se?(Me=s.jsx(Ns,{open:n,onOpenChange:l,children:Se}),e[104]=l,e[105]=n,e[106]=Se,e[107]=Me):Me=e[107],Me}function Ks(t){return t.stopPropagation()}function Ys(t){return{...t,experimental_tasks:!t.experimental_tasks}}function Qs(t){return t.stopPropagation()}function Js(t){return{...t,experimental_projects:!t.experimental_projects}}function Xs(t){return t.stopPropagation()}function en(t){return t.stopPropagation()}function tn(t){return{...t,devMode:!t.devMode}}function sn(t){return{...t,enableNotifications:!1}}function nn(t){const e=L.c(50),{user:n,userImage:l}=t,[i,a]=A.useState(!1),[r,o]=A.useState(!1);let d;e[0]!==n.email||e[1]!==n.id||e[2]!==n.name?(d=()=>{const R=`ID: ${n.id}
|
|
2
2
|
Name: ${n.name||"N/A"}
|
|
3
3
|
Email: ${n.email}`;navigator.clipboard.writeText(R),o(!0),he.success("User info copied to clipboard"),setTimeout(()=>o(!1),2e3)},e[0]=n.email,e[1]=n.id,e[2]=n.name,e[3]=d):d=e[3];const c=d,m=n.name||n.email||"U";let u;e[4]!==m||e[5]!==l?(u=s.jsx(je,{url:l,fallback:m,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=m,e[5]=l,e[6]=u):u=e[6];const f=n.name||"User";let h;e[7]!==f?(h=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]=h):h=e[8];let p;e[9]!==u||e[10]!==h?(p=s.jsx(gt,{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:[u,h]})}),e[9]=u,e[10]=h,e[11]=p):p=e[11];const j=n.name||n.email||"U";let g;e[12]!==j||e[13]!==l?(g=s.jsx(je,{url:l,fallback:j,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=j,e[13]=l,e[14]=g):g=e[14];const k=n.name||"User";let x;e[15]!==k?(x=s.jsx("div",{className:"text-sm font-medium truncate",children:k}),e[15]=k,e[16]=x):x=e[16];let b;e[17]!==n.email?(b=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:n.email}),e[17]=n.email,e[18]=b):b=e[18];let v;e[19]!==x||e[20]!==b?(v=s.jsxs("div",{className:"flex-1 min-w-0",children:[x,b]}),e[19]=x,e[20]=b,e[21]=v):v=e[21];let N;e[22]!==r?(N=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:r?s.jsx(be,{size:14,className:"text-green-600"}):s.jsx(jt,{size:14,className:"text-muted-foreground"})}),e[22]=r,e[23]=N):N=e[23];let y;e[24]!==c||e[25]!==v||e[26]!==N||e[27]!==g?(y=s.jsxs(ee,{onClick:c,className:"gap-2.5 group",children:[g,v,N]}),e[24]=c,e[25]=v,e[26]=N,e[27]=g,e[28]=y):y=e[28];let S;e[29]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx($e,{}),e[29]=S):S=e[29];let z;e[30]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsxs(ee,{className:"gap-2.5",onClick:()=>a(!0),children:[s.jsx(Re,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]}),e[30]=z):z=e[30];let M;e[31]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(ee,{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(bt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx(_e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[31]=M):M=e[31];let E;e[32]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(ee,{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(ps,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx(_e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[32]=E):E=e[32];let I;e[33]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(ee,{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(Tt,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx(_e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[33]=I):I=e[33];let U;e[34]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(ee,{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(Ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx(_e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[34]=U):U=e[34];let D,F;e[35]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(ee,{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(xs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx(_e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),F=s.jsx($e,{}),e[35]=D,e[36]=F):(D=e[35],F=e[36]);let $;e[37]===Symbol.for("react.memo_cache_sentinel")?($=s.jsxs(ee,{className:"gap-2.5",onClick:rn,children:[s.jsx(Ct,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[37]=$):$=e[37];let P;e[38]!==y?(P=s.jsxs(pt,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:ln,children:[y,S,z,M,E,I,U,D,F,$]}),e[38]=y,e[39]=P):P=e[39];let _;e[40]!==P||e[41]!==p?(_=s.jsxs(ht,{children:[p,P]}),e[40]=P,e[41]=p,e[42]=_):_=e[42];let O;e[43]!==i||e[44]!==n||e[45]!==l?(O=i&&s.jsx(Zs,{open:i,onOpenChange:a,user:n,userImage:l}),e[43]=i,e[44]=n,e[45]=l,e[46]=O):O=e[46];let T;return e[47]!==_||e[48]!==O?(T=s.jsxs(s.Fragment,{children:[_,O]}),e[47]=_,e[48]=O,e[49]=T):T=e[49],T}function rn(){return ge.signOut()}function ln(t){return t.preventDefault()}function It(){const t=L.c(7),{data:e}=ge.useSession();if(!e?.user){let d;return t[0]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(je,{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 n=e.user,l=n.name??void 0;let i;t[1]!==l||t[2]!==n?(i={...n,name:l},t[1]=l,t[2]=n,t[3]=i):i=t[3];const a=i,r=n.image;let o;return t[4]!==r||t[5]!==a?(o=s.jsx(nn,{user:a,userImage:r}),t[4]=r,t[5]=a,t[6]=o):o=t[6],o}function on({invitation:t}){const[e,n]=A.useState(!1),[l,i]=A.useState(!1),a=Lt(),r=async()=>{n(!0);try{const d=await ge.organization.acceptInvitation({invitationId:t.id});if(d.error)he.error(d.error.message),n(!1);else{const c=await ge.organization.setActive({organizationId:t.organizationId});he.success("Invitation accepted!");const m=c?.data?.slug;window.location.href=m?`/${m}`:"/"}}catch{he.error("Failed to accept invitation"),n(!1)}},o=async()=>{i(!0);try{const d=await ge.organization.rejectInvitation({invitationId:t.id});d.error?(he.error(d.error.message),i(!1)):(he.success("Invitation declined"),a.invalidateQueries())}catch{he.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(Ee,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:r,disabled:e||l,"aria-label":"Accept invitation",children:s.jsx(be,{size:14})}),s.jsx(Ee,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:o,disabled:e||l,"aria-label":"Decline invitation",children:s.jsx($s,{size:14})})]})]})}function an(){const t=A.useContext(Mt),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(l=>l.status==="pending"&&new Date(l.expiresAt)>new Date)}function cn(){const t=L.c(12),e=an();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(It,{})}),t[0]=n):n=t[0];let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ws,{asChild:!0,children:s.jsx(Ee,{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(Xe,{size:16})})}),t[1]=l):l=t[1];let i;t[2]!==e.length?(i=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[2]=e.length,t[3]=i):i=t[3];let a;t[4]!==i?(a=s.jsxs("div",{className:"relative",children:[l,i]}),t[4]=i,t[5]=a):a=t[5];let r;t[6]===Symbol.for("react.memo_cache_sentinel")?(r=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[6]=r):r=t[6];let o;t[7]!==e?(o=s.jsxs(_s,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[r,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(Xe,{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(dn)})]}),t[7]=e,t[8]=o):o=t[8];let d;return t[9]!==a||t[10]!==o?(d=s.jsx(Vt,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:s.jsx(xe,{children:s.jsx(ie,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[n,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(zs,{children:[a,o]})})]})})})}),t[9]=a,t[10]=o,t[11]=d):d=t[11],d}function dn(t){return s.jsx(on,{invitation:t},t.id)}function Pt(t){const e=L.c(4),{children:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(it,{className:"my-2"}),e[0]=l):l=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ie,{children:s.jsx("div",{className:"group-data-[collapsible=icon]:hidden px-2 py-0 text-xs font-medium h-6 text-muted-foreground flex items-center justify-between",children:s.jsx("span",{className:"whitespace-nowrap",children:"Pinned Views"})})}),e[1]=i):i=e[1];let a;return e[2]!==n?(a=s.jsxs(s.Fragment,{children:[l,i,n]}),e[2]=n,e[3]=a):a=e[3],a}function mn(t){const e=L.c(26),{item:n}=t,l=He(),{org:i}=Ne(),a=Nt(i.id),r=Is(i.id);let o;e[0]!==r.update||e[1]!==n.url||e[2]!==a?.sidebar_items?(o=async()=>{const v=(a?.sidebar_items||[]).filter(N=>N.url!==n.url);await r.update.mutateAsync({sidebar_items:v})},e[0]=r.update,e[1]=n.url,e[2]=a?.sidebar_items,e[3]=o):o=e[3];const d=o;let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=/^https?:\/\/.+/,e[4]=c):c=e[4];let m;e[5]!==n.icon?(m=c.test(n.icon),e[5]=n.icon,e[6]=m):m=e[6];const u=m;let f;e[7]!==n.url||e[8]!==l?(f=()=>{l({to:n.url})},e[7]=n.url,e[8]=l,e[9]=f):f=e[9];const h=n.title;let p;e[10]!==u||e[11]!==n.icon||e[12]!==n.title?(p=s.jsx("div",{className:"flex items-center justify-center shrink-0",children:u?s.jsx("img",{src:n.icon,alt:n.title,className:"h-4 w-4 rounded object-cover"}):s.jsx(bt,{size:16,className:"text-muted-foreground group-hover/item:text-foreground transition-colors"})}),e[10]=u,e[11]=n.icon,e[12]=n.title,e[13]=p):p=e[13];let j;e[14]!==n.title?(j=n.title.toLocaleLowerCase(),e[14]=n.title,e[15]=j):j=e[15];let g;e[16]!==j?(g=s.jsx("div",{className:"flex-1 min-w-0 flex flex-col items-start",children:s.jsx("span",{className:"truncate text-sm w-full capitalize",children:j})}),e[16]=j,e[17]=g):g=e[17];let k;e[18]!==d?(k=s.jsx(De,{size:16,className:"text-muted-foreground opacity-0 group-hover/item:opacity-50 hover:opacity-100 cursor-pointer",onClick:b=>{b.preventDefault(),b.stopPropagation(),d()}}),e[18]=d,e[19]=k):k=e[19];let x;return e[20]!==n.title||e[21]!==f||e[22]!==p||e[23]!==g||e[24]!==k?(x=s.jsx(ie,{children:s.jsxs(Fe,{className:"w-full pr-2 group/item relative cursor-pointer text-foreground/90 hover:text-foreground",onClick:f,tooltip:h,children:[p,g,k]})}),e[20]=n.title,e[21]=f,e[22]=p,e[23]=g,e[24]=k,e[25]=x):x=e[25],x}function et(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(ie,{children:s.jsx("div",{className:"flex items-center gap-2 px-4 py-2",children:s.jsx(se,{className:"h-4 flex-1"})})}),t[0]=e):e=t[0],e}function fn(){const t=L.c(4),{org:e}=Ne(),l=Nt(e.id)?.sidebar_items;if(!l?.length)return null;let i;t[0]!==l?(i=l.map(un),t[0]=l,t[1]=i):i=t[1];let a;return t[2]!==i?(a=s.jsx(Pt,{children:i}),t[2]=i,t[3]=a):a=t[3],a}function un(t){return s.jsx(mn,{item:t},t.url)}function xn(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(A.Suspense,{fallback:s.jsxs(Pt,{children:[s.jsx(et,{}),s.jsx(et,{})]}),children:s.jsx(fn,{})}),t[0]=e):e=t[0],e}function pn(t){const e=L.c(11),{project:n}=t,l=n.ui?.themeColor??"#60a5fa";if(n.ui?.icon){let d;return e[0]!==n.ui.icon?(d=s.jsx("img",{src:n.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=n.ui.icon,e[1]=d):d=e[1],d}let i;e[2]!==l?(i={backgroundColor:l},e[2]=l,e[3]=i):i=e[3];let a;e[4]!==n.name?(a=n.name.charAt(0).toUpperCase(),e[4]=n.name,e[5]=a):a=e[5];let r;e[6]!==a?(r=s.jsx("span",{className:"text-[10px] font-medium text-white",children:a}),e[6]=a,e[7]=r):r=e[7];let o;return e[8]!==i||e[9]!==r?(o=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:i,children:r}),e[8]=i,e[9]=r,e[10]=o):o=e[10],o}function hn(t){const e=L.c(14),{project:n}=t,l=He(),{org:i}=Ne();let a;e[0]!==l||e[1]!==i.slug||e[2]!==n.slug?(a=()=>{l({to:"/$org/$project",params:{org:i.slug,project:n.slug}})},e[0]=l,e[1]=i.slug,e[2]=n.slug,e[3]=a):a=e[3];let r;e[4]!==n?(r=s.jsx(pn,{project:n}),e[4]=n,e[5]=r):r=e[5];let o;e[6]!==n.name?(o=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:n.name}),e[6]=n.name,e[7]=o):o=e[7];let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Ps,{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]!==n.name||e[10]!==a||e[11]!==r||e[12]!==o?(c=s.jsx(ie,{children:s.jsxs(Fe,{onClick:a,tooltip:n.name,children:[r,o,d]})}),e[9]=n.name,e[10]=a,e[11]=r,e[12]=o,e[13]=c):c=e[13],c}function gn(){const t=L.c(55),{org:e}=Ne(),{data:n,isLoading:l}=ut(e.id),[i,a]=A.useState(!0),[r,o]=A.useState(!1);let d,c,m,u,f,h,p,j,g,k,x,b,v;if(t[0]!==l||t[1]!==i||t[2]!==n){v=Symbol.for("react.early_return_sentinel");e:{const D=n?.filter(bn)??[];if(l){let R;t[16]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(ie,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(se,{className:"h-4 w-4 rounded"}),s.jsx(se,{className:"h-4 flex-1"})]})}),t[16]=R):R=t[16];let te;t[17]===Symbol.for("react.memo_cache_sentinel")?(te=s.jsx(Pe,{className:"py-0 px-0",children:s.jsx(Ie,{children:s.jsxs(xe,{className:"gap-0.5",children:[R,s.jsx(ie,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(se,{className:"h-4 w-4 rounded"}),s.jsx(se,{className:"h-4 flex-1"})]})})]})})}),t[17]=te):te=t[17],v=te;break e}b="group/projects-section mt-2",f=Xt,k=i,x=a,u=Pe,g="py-0 px-0",m=Ie,c=xe,p="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 $=!i&&"-rotate-90";let P;t[19]!==$?(P=K("text-muted-foreground shrink-0 transition-transform duration-200",$),t[19]=$,t[20]=P):P=t[20];let _;t[21]!==P?(_=s.jsx(es,{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(xt,{size:12,className:P})]})}),t[21]=P,t[22]=_):_=t[22];let O;t[23]===Symbol.for("react.memo_cache_sentinel")?(O=()=>o(!0),t[23]=O):O=t[23];let T;t[24]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx("button",{type:"button",onClick:O,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(ze,{size:16})}),t[24]=T):T=t[24],t[25]!==_?(j=s.jsx(ie,{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:[_,T]})}),t[25]=_,t[26]=j):j=t[26],d=ts,h=D.length===0?s.jsx(ie,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):D.map(jn)}t[0]=l,t[1]=i,t[2]=n,t[3]=d,t[4]=c,t[5]=m,t[6]=u,t[7]=f,t[8]=h,t[9]=p,t[10]=j,t[11]=g,t[12]=k,t[13]=x,t[14]=b,t[15]=v}else d=t[3],c=t[4],m=t[5],u=t[6],f=t[7],h=t[8],p=t[9],j=t[10],g=t[11],k=t[12],x=t[13],b=t[14],v=t[15];if(v!==Symbol.for("react.early_return_sentinel"))return v;let N;t[27]!==d||t[28]!==h?(N=s.jsx(d,{children:h}),t[27]=d,t[28]=h,t[29]=N):N=t[29];let y;t[30]!==c||t[31]!==p||t[32]!==j||t[33]!==N?(y=s.jsxs(c,{className:p,children:[j,N]}),t[30]=c,t[31]=p,t[32]=j,t[33]=N,t[34]=y):y=t[34];let S;t[35]!==m||t[36]!==y?(S=s.jsx(m,{children:y}),t[35]=m,t[36]=y,t[37]=S):S=t[37];let z;t[38]!==u||t[39]!==S||t[40]!==g?(z=s.jsx(u,{className:g,children:S}),t[38]=u,t[39]=S,t[40]=g,t[41]=z):z=t[41];let M;t[42]!==f||t[43]!==z||t[44]!==k||t[45]!==x?(M=s.jsx(f,{open:k,onOpenChange:x,children:z}),t[42]=f,t[43]=z,t[44]=k,t[45]=x,t[46]=M):M=t[46];let E;t[47]!==M||t[48]!==b?(E=s.jsx("div",{className:b,children:M}),t[47]=M,t[48]=b,t[49]=E):E=t[49];let I;t[50]!==r?(I=s.jsx(mt,{open:r,onOpenChange:o}),t[50]=r,t[51]=I):I=t[51];let U;return t[52]!==E||t[53]!==I?(U=s.jsxs(s.Fragment,{children:[E,I]}),t[52]=E,t[53]=I,t[54]=U):U=t[54],U}function jn(t){return s.jsx(hn,{project:t},t.id)}function bn(t){return t.slug!==X}function Nn(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(A.Suspense,{fallback:s.jsx(Pe,{className:"py-0 px-0",children:s.jsx(Ie,{children:s.jsx(xe,{className:"gap-0.5",children:s.jsx(ie,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(se,{className:"h-4 w-4 rounded"}),s.jsx(se,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(gn,{})}),t[0]=e):e=t[0],e}function vn(t){const e=L.c(15),{onCreateProject:n}=t,[l]=Ae(),i=Ls(),{locator:a}=Ne();let r;e[0]!==a?(r=We.isOrgAdminProject(a),e[0]=a,e[1]=r):r=e[1];const o=r;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Ge.Skeleton,{}),e[2]=d):d=e[2];let c;e[3]!==n?(c=s.jsx(A.Suspense,{fallback:d,children:s.jsx(Ge,{onCreateProject:n})}),e[3]=n,e[4]=c):c=e[4];let m;e[5]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(cn,{}),e[5]=m):m=e[5];let u;e[6]!==o||e[7]!==l?(u=o?l.experimental_projects?s.jsx(Nn,{}):null:s.jsx(xn,{}),e[6]=o,e[7]=l,e[8]=u):u=e[8];let f;e[9]!==u?(f=s.jsx(dt,{children:s.jsx(A.Suspense,{fallback:null,children:u})}),e[9]=u,e[10]=f):f=e[10];let h;return e[11]!==i||e[12]!==c||e[13]!==f?(h=s.jsx(zt,{sections:i,header:c,footer:m,additionalContent:f}),e[11]=i,e[12]=c,e[13]=f,e[14]=h):h=e[14],h}function yn(){const t=L.c(2),n=Ue().location.href;let l;return t[0]!==n?(l=s.jsx(Ht,{to:"/login",search:{next:n},replace:!0}),t[0]=n,t[1]=l):l=t[1],l}function Sn(t){const e=L.c(6),{children:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Et,{children:s.jsx(st,{})}),e[0]=l):l=e[0];let i;e[1]!==n?(i=s.jsx(Dt,{children:n}),e[1]=n,e[2]=i):i=e[2];let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Rt,{children:s.jsx(yn,{})}),e[3]=a):a=e[3];let r;return e[4]!==i?(r=s.jsxs(s.Fragment,{children:[l,i,a]}),e[4]=i,e[5]=r):r=e[5],r}function kn(t){const e=L.c(10),{children:n,className:l}=t,[,i]=A.useTransition();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=Qe.decoChatPanelWidth(),e[0]=a):a=e[0];const[r,o]=Ye(a,30);let d;e[1]!==o?(d=f=>i(()=>o(f)),e[1]=o,e[2]=d):d=e[2];const c=d;let m;e[3]!==l?(m=K("min-w-0",l),e[3]=l,e[4]=m):m=e[4];let u;return e[5]!==r||e[6]!==n||e[7]!==c||e[8]!==m?(u=s.jsx(vt,{defaultSize:r,minSize:20,className:m,onResize:c,children:n}),e[5]=r,e[6]=n,e[7]=c,e[8]=m,e[9]=u):u=e[9],u}function Cn(t){const e=L.c(5),{children:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Qe.sidebarOpen(),e[0]=l):l=e[0];const[i,a]=Ye(l,!0);let r;return e[1]!==n||e[2]!==a||e[3]!==i?(r=s.jsx(Zt,{open:i,onOpenChange:a,children:n}),e[1]=n,e[2]=a,e[3]=i,e[4]=r):r=e[4],r}function _n(t){const e=L.c(24),{isStudio:n,isHomeRoute:l,onCreateProject:i}=t,[a]=Ze();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=Qe.decoChatPanelWidth(),e[0]=r):r=e[0];const[o]=Ye(r,30),[d]=Ae(),c=n&&d.experimental_projects?"":void 0,m=`${o}cqi`;let u;e[1]!==m?(u={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":m},e[1]=m,e[2]=u):u=e[2];const f=u;let h;e[3]!==i?(h=s.jsx(vn,{onCreateProject:i}),e[3]=i,e[4]=h):h=e[4];let p;e[5]===Symbol.for("react.memo_cache_sentinel")?(p={background:"transparent",containerType:"inline-size"},e[5]=p):p=e[5];let j;e[6]===Symbol.for("react.memo_cache_sentinel")?(j={overflow:"visible"},e[6]=j):j=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g={overflow:"visible"},e[7]=g):g=e[7];const k=a&&"rounded-tr-[0.75rem] border-r";let x;e[8]!==k?(x=K("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]=x):x=e[9];let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(nt,{})}),e[10]=b):b=e[10];let v;e[11]!==x?(v=s.jsx(vt,{className:"min-w-0 flex flex-col",style:g,children:s.jsx("div",{className:x,children:b})}),e[11]=x,e[12]=v):v=e[12];let N;e[13]!==a||e[14]!==l?(N=!l&&s.jsxs(s.Fragment,{children:[s.jsx(As,{className:"bg-sidebar"}),s.jsx(kn,{className:K("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",a?"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(Ms,{})})})})]}),e[13]=a,e[14]=l,e[15]=N):N=e[15];let y;e[16]!==v||e[17]!==N?(y=s.jsx(Kt,{className:"pt-1.5",style:p,children:s.jsxs(Os,{direction:"horizontal",className:"h-full",style:j,children:[v,N]})}),e[16]=v,e[17]=N,e[18]=y):y=e[18];let S;return e[19]!==y||e[20]!==c||e[21]!==f||e[22]!==h?(S=s.jsxs(Yt,{className:"flex-1 bg-sidebar","data-studio":c,style:f,children:[h,y]}),e[19]=y,e[20]=c,e[21]=f,e[22]=h,e[23]=S):S=e[23],S}function wn(){const{org:t,project:e}=Ve({strict:!1}),n=Ue(),[l,i]=A.useState(!1),a=n.location.pathname===`/${t}/${e}`||n.location.pathname===`/${t}/${e}/`,r=e??X,{data:o}=Ut({queryKey:Ft.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:m}=await ge.organization.setActive({organizationSlug:t});return{org:m,project:{slug:r,isOrgAdmin:r===X}}},gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1});if(!o)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(It,{})}),s.jsx(nt,{})]});if(!o.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const d={...o,project:{...o.project,slug:r,isOrgAdmin:r===X}},c=r===X;return s.jsxs(Bt,{...d,children:[s.jsx(Cn,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(re.Provider,{children:s.jsx(_n,{isStudio:c,isHomeRoute:a,onCreateProject:()=>i(!0)})})})}),s.jsx(mt,{open:l,onOpenChange:i})]})}function oi(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Sn,{children:s.jsx(A.Suspense,{fallback:s.jsx(st,{}),children:s.jsx(wn,{})})}),t[0]=e):e=t[0],e}export{oi as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,y as d,j as a}from"./index-
|
|
1
|
+
import{c as C,y as d,j as a}from"./index-B1amT4cG.js";import{c as m}from"./button-B3wvaVSV.js";const u=d("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",special:"fill-special text-backround"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=m(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let l,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=l,e[4]=i):(l=e[3],i=e[4]);let s;e[5]!==t?(s=a.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=a.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h,e as S,j as o,A as x,S as d,f as j,h as b,a as g,d as y,O as N,N as p}from"./index-
|
|
1
|
+
import{c as h,e as S,j as o,A as x,S as d,f as j,h as b,a as g,d as y,O as N,N as p}from"./index-B1amT4cG.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,a9 as C,at as y,ar as T,av as I,az as M,aA as z,ay as A,c as H}from"./index-
|
|
1
|
+
import{r as c,j as i,a9 as C,at as y,ar as T,av as I,az as M,aA as z,ay as A,c as H}from"./index-B1amT4cG.js";import{c as g}from"./button-B3wvaVSV.js";var b="Switch",[U]=A(b),[q,L]=U(b),E=c.forwardRef((s,e)=>{const{__scopeSwitch:t,name:r,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=s,[p,h]=c.useState(null),v=y(e,m=>h(m)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:a,defaultProp:n??!1,onChange:k,caller:b});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(s.onClick,m=>{N(B=>!B),S&&(x.current=m.isPropagationStopped(),x.current||m.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:r,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=b;var P="SwitchThumb",R=c.forwardRef((s,e)=>{const{__scopeSwitch:t,...r}=s,a=L(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:s,control:e,checked:t,bubbles:r=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=z(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:r});h.call(l,t),l.dispatchEvent(v)}},[u,t,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(s){return s?"checked":"unchecked"}var $=E,D=R;function X(s){const e=H.c(9);let t,r;e[0]!==s?({className:t,...r}=s,e[0]=s,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let a;e[3]!==t?(a=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==r||e[7]!==a?(o=i.jsx($,{"data-slot":"switch",className:a,...r,children:n}),e[6]=r,e[7]=a,e[8]=o):o=e[8],o}export{X as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,j as c}from"./index-
|
|
1
|
+
import{c as r,j as c}from"./index-B1amT4cG.js";import{c as i}from"./button-B3wvaVSV.js";function b(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-background",children:c.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-background",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function u(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{u as T,f as a,m as b,x as c,p as d,b as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as B,j as r,r as F,u as O,b as W,n as Q,K as Y}from"./index-
|
|
1
|
+
import{c as B,j as r,r as F,u as O,b as W,n as Q,K as Y}from"./index-B1amT4cG.js";import"./index-_RykQo2Q.js";import{C as G,a as J}from"./collection-table-wrapper-8ZivTkeI.js";import{C as X,E as I}from"./empty-state-BTihO37R.js";import{E as Z}from"./error-boundary-DOj5ZIEf.js";import{P as h}from"./index-C2Rh-iWT.js";import{u as ee,U as te}from"./use-list-state-D9NU-8Ev.js";import{f as re}from"./format-time-CMKyl-GC.js";import{a as se,u as oe}from"./constants-HxzYhcpl.js";import{B as ie,a as ae,b as le,c as ne}from"./breadcrumb-BgmfAzQW.js";import{B as f}from"./badge-wMb3Y-8E.js";import{i as ce}from"./AlertCircle-BIMqw_5-.js";import{c as me}from"./AlertOctagon-DCet6Uv3.js";import{n as V}from"./CheckDone01-Dth089nj.js";import{i as de}from"./Check-BVNkiO-r.js";import{s as pe}from"./Clock-CYiT8ACa.js";import{i as R}from"./Loading01-D3VoLrCE.js";import{u as ue}from"./use-deco-chat-open-wZFGrp-k.js";import"./button-B3wvaVSV.js";import"./popover-BBIx9xvl.js";import"./spinner-B9Yx5JiU.js";import"./tooltip-CRlxaib0.js";import"./index-whQgID_3.js";import"./use-mcp-prompts-D1-dNA0Z.js";import"./useQuery-76sOrPQ-.js";import"./dialog-DKEzHh3_.js";import"./form-DXmjkX5K.js";import"./label-BlC2umPV.js";import"./input-DzuDiRcd.js";import"./integration-icon-D424d7sU.js";import"./Container-ByqGd6Uy.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-jELa2z5C.js";import"./ChevronDown-CfQqTr__.js";import"./Edit01-1PHQYqRQ.js";import"./Users03-CP0pXzvQ.js";import"./XCircle-COjMqF_k.js";import"./AlertTriangle-zLp1y7-M.js";import"./ArrowLeft-k1fcl9NK.js";import"./use-copy-p1mRh5W_.js";import"./Code01-CeL0BWtu.js";import"./use-virtual-mcp-DruGCXgU.js";import"./use-connection-CqXagEzK.js";import"./useMutation-Bv9q7pEj.js";import"./SearchMd-CvAJ9EWO.js";import"./use-create-virtual-mcp-AZujAG2C.js";import"./ChevronRight-fjhPsf49.js";import"./marked.esm-BaswSlok.js";import"./markdown-fhDAUlnf.js";import"./Copy01-DR480BtW.js";import"./tools-list-eJ4ppYQ3.js";import"./card-Dg4qw_Um.js";import"./Eye-CK_RXIJn.js";import"./Globe02-D_Ml-Wmd.js";import"./RefreshCw01-BWffByP-.js";import"./layout-jhaCZcgQ.js";import"./generate-id-Dyweu44Y.js";import"./Trash01-CudSsKDI.js";import"./dropdown-menu-B8zAzVyw.js";import"./Grid01-C92C0ZiE.js";import"./List-DWXbw0rd.js";import"./table-Dk5S8CvU.js";import"./avatar-CaXfYyEp.js";import"./use-view-mode-DL3bskoS.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-llm-fAyro43J.js";import"./use-binding-COQw-0h_.js";import"./binder--ELnynus.js";import"./localstorage-keys-DLKOB_hn.js";import"./select-BC2NheiG.js";import"./File06-BVjx-ooZ.js";import"./Image01-B1MZrMYE.js";import"./RefreshCcw01-w29kn5iE.js";import"./Settings01-C_xKwser.js";import"./useSuspenseInfiniteQuery-DSwqKk5V.js";import"./infiniteQueryObserver-D19TTRT9.js";function fe(e){const s=B.c(7),{status:a}=e;switch(a){case"in_progress":{let o;return s[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsxs(f,{variant:"secondary",className:"gap-1",children:[r.jsx(R,{size:11,className:"animate-spin"}),"Running"]}),s[0]=o):o=s[0],o}case"completed":{let o;return s[1]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsxs(f,{variant:"success",className:"gap-1",children:[r.jsx(de,{size:11}),"Completed"]}),s[1]=o):o=s[1],o}case"requires_action":{let o;return s[2]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsxs(f,{variant:"outline",className:"gap-1 text-blue-600 border-blue-600/40",children:[r.jsx(ce,{size:11}),"Waiting for input"]}),s[2]=o):o=s[2],o}case"failed":{let o;return s[3]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsxs(f,{variant:"destructive",className:"gap-1",children:[r.jsx(me,{size:11}),"Failed"]}),s[3]=o):o=s[3],o}case"expired":{let o;return s[4]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsxs(f,{variant:"outline",className:"gap-1 text-warning border-warning/40",children:[r.jsx(pe,{size:11}),"Timed out"]}),s[4]=o):o=s[4],o}default:{let o;return s[5]!==a?(o=r.jsx(f,{variant:"secondary",className:"gap-1",children:a}),s[5]=a,s[6]=o):o=s[6],o}}}function he(){const e=B.c(49),{org:s,project:a,locator:o}=O();let x;e[0]!==s.id?(x={connectionId:se,orgId:s.id},e[0]=s.id,e[1]=x):x=e[1];const g=oe(x),v=W(),{switchToThread:k}=ue();let j;e[2]!==s.slug?(j={namespace:s.slug,resource:"tasks",defaultSortKey:"updated_at",defaultViewMode:"table"},e[2]=s.slug,e[3]=j):j=e[3];const t=ee(j);let l;e[4]!==o?(l=Y.taskThreads(o),e[4]=o,e[5]=l):l=e[5];let n;e[6]!==g?(n=async()=>{if(!g)throw new Error("MCP client is not available");const i=await g.callTool({name:"COLLECTION_THREADS_LIST",arguments:{limit:100,offset:0}});return(i.structuredContent??i).items??[]},e[6]=g,e[7]=n):n=e[7];let y;e[8]!==l||e[9]!==n?(y={queryKey:l,queryFn:n,staleTime:3e4},e[8]=l,e[9]=n,e[10]=y):y=e[10];const{data:D}=Q(y);let S;if(e[11]!==D||e[12]!==t){const i=D.filter(Se),z=t.searchTerm?i.filter(M=>M.title.toLowerCase().includes(t.searchTerm.toLowerCase())):i;let T;e[14]!==t?(T=(M,H)=>{const{sortKey:L,sortDirection:P}=t;if(!L||!P)return 0;const U=String(M[L]??""),q=String(H[L]??""),$=U.localeCompare(q);return P==="asc"?$:-$},e[14]=t,e[15]=T):T=e[15],S=[...z].sort(T),e[11]=D,e[12]=t,e[13]=S}else S=e[13];const K=S;let b;e[16]!==v||e[17]!==s.slug||e[18]!==a.slug||e[19]!==k?(b=async i=>{await k(i.id),v({to:"/$org/$project",params:{org:s.slug,project:a.slug}})},e[16]=v,e[17]=s.slug,e[18]=a.slug,e[19]=k,e[20]=b):b=e[20];const E=b;let _;e[21]===Symbol.for("react.memo_cache_sentinel")?(_=[{id:"title",header:"Title",render:ye,cellClassName:"flex-1 min-w-0",sortable:!0},{id:"status",header:"Status",render:je,cellClassName:"w-40 shrink-0",sortable:!0},{id:"created_by",header:"Created by",render:ge,cellClassName:"w-32 shrink-0"},{id:"updated_at",header:"Updated",render:xe,cellClassName:"max-w-24 w-24 shrink-0",sortable:!0}],e[21]=_):_=e[21];const A=_;let w;e[22]===Symbol.for("react.memo_cache_sentinel")?(w=r.jsx(h.Header.Left,{children:r.jsx(ie,{children:r.jsx(ae,{children:r.jsx(le,{children:r.jsx(ne,{children:"Tasks"})})})})}),e[22]=w):w=e[22];let C;e[23]===Symbol.for("react.memo_cache_sentinel")?(C=[{id:"title",label:"Title"},{id:"status",label:"Status"},{id:"updated_at",label:"Updated"}],e[23]=C):C=e[23];let c;e[24]!==t.handleSort||e[25]!==t.setViewMode||e[26]!==t.sortDirection||e[27]!==t.sortKey||e[28]!==t.viewMode?(c=r.jsxs(h.Header,{children:[w,r.jsx(h.Header.Right,{children:r.jsx(G,{viewMode:t.viewMode,onViewModeChange:t.setViewMode,sortKey:t.sortKey,sortDirection:t.sortDirection,onSort:t.handleSort,sortOptions:C})})]}),e[24]=t.handleSort,e[25]=t.setViewMode,e[26]=t.sortDirection,e[27]=t.sortKey,e[28]=t.viewMode,e[29]=c):c=e[29];let m;e[30]!==t?(m=i=>{i.key==="Escape"&&(t.setSearch(""),i.target.blur())},e[30]=t,e[31]=m):m=e[31];let d;e[32]!==t.search||e[33]!==t.setSearch||e[34]!==m?(d=r.jsx(X,{value:t.search,onChange:t.setSearch,placeholder:"Search tasks...",onKeyDown:m}),e[32]=t.search,e[33]=t.setSearch,e[34]=m,e[35]=d):d=e[35];let p;e[36]!==t.search?(p=t.search?r.jsx(I,{image:r.jsx(V,{size:36,className:"text-muted-foreground"}),title:"No tasks found",description:`No tasks match "${t.search}"`}):r.jsx(I,{image:r.jsx("div",{className:"flex items-center justify-center w-16 h-16 rounded-full bg-muted",children:r.jsx(V,{size:32,className:"text-muted-foreground"})}),title:"No tasks yet",description:"Tasks will appear here when agents start processing work."}),e[36]=t.search,e[37]=p):p=e[37];let u;e[38]!==t.handleSort||e[39]!==t.sortDirection||e[40]!==t.sortKey||e[41]!==E||e[42]!==p||e[43]!==K?(u=r.jsx(h.Content,{children:r.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r.jsx(J,{columns:A,data:K,isLoading:!1,sortKey:t.sortKey,sortDirection:t.sortDirection,onSort:t.handleSort,onRowClick:E,emptyState:p})})}),e[38]=t.handleSort,e[39]=t.sortDirection,e[40]=t.sortKey,e[41]=E,e[42]=p,e[43]=K,e[44]=u):u=e[44];let N;return e[45]!==c||e[46]!==d||e[47]!==u?(N=r.jsxs(h,{children:[c,d,u]}),e[45]=c,e[46]=d,e[47]=u,e[48]=N):N=e[48],N}function xe(e){return r.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:e.updated_at?re(new Date(e.updated_at)):"—"})}function ge(e){return r.jsx(te,{id:e.created_by,size:"3xs"})}function je(e){return r.jsx(fe,{status:e.status??"completed"})}function ye(e){return r.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.title})}function Se(e){return!e.hidden}function Ut(){const e=B.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx(Z,{children:r.jsx(F.Suspense,{fallback:r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(R,{size:32,className:"animate-spin text-muted-foreground"})}),children:r.jsx(he,{})})}),e[0]=s):s=e[0],s}export{Ut as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o,j as n}from"./index-
|
|
1
|
+
import{c as o,j as n}from"./index-B1amT4cG.js";import{c as l}from"./button-B3wvaVSV.js";function u(s){const e=o.c(8);let r,i;e[0]!==s?({className:r,...i}=s,e[0]=s,e[1]=r,e[2]=i):(r=e[1],i=e[2]);let t;e[3]!==r?(t=l("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-xl border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),e[3]=r,e[4]=t):t=e[4];let a;return e[5]!==i||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...i}),e[5]=i,e[6]=t,e[7]=a):a=e[7],a}export{u as T};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as x,c as At,b as yn,u as bn,j as s,O as kt,t as ne}from"./index-
|
|
1
|
+
import{r as x,c as At,b as yn,u as bn,j as s,O as kt,t as ne}from"./index-B1amT4cG.js";import{B as xn}from"./badge-wMb3Y-8E.js";import{B as I,c as U,b as Dt}from"./button-B3wvaVSV.js";import{b as lt,P as ct,a as ut}from"./popover-BBIx9xvl.js";import{T as Ge,a as Qe,b as Xe}from"./tooltip-CRlxaib0.js";import{i as Je}from"./Check-BVNkiO-r.js";import{a as $e}from"./Copy01-DR480BtW.js";import{n as Mt}from"./Download01-CpHhgR77.js";import{i as wn}from"./FilterLines-CNB1FGdO.js";import{i as Nn}from"./Key01-CpLgYQNF.js";import{i as kn}from"./Play-5Po5MZl1.js";import{M as _t,n as Dn,a as Mn}from"./scroll-area-CUkav_Yq.js";import{t as _n}from"./ChevronDown-CfQqTr__.js";import{s as jn}from"./Clock-CYiT8ACa.js";import{i as Cn}from"./ChevronRight-fjhPsf49.js";import{I as jt}from"./input-DzuDiRcd.js";const Ht=({size:t=24,color:e="currentColor",...n})=>x.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},x.createElement("path",{d:"m15 18-6-6 6-6"}));Ht.displayName="ChevronLeft";const Sn=({size:t=24,color:e="currentColor",...n})=>x.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},x.createElement("path",{d:"M11 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 22 5.12 22 6.8 22h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 19.72 20 18.88 20 17.2V13M8 16h1.675c.489 0 .733 0 .963-.055.204-.05.4-.13.579-.24.201-.123.374-.296.72-.642L21.5 5.5a2.121 2.121 0 0 0-3-3l-9.563 9.563c-.346.346-.519.519-.642.72a2 2 0 0 0-.24.579c-.055.23-.055.474-.055.963V16Z"}));Sn.displayName="Edit05";const qt=({size:t=24,color:e="currentColor",...n})=>x.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},x.createElement("path",{d:"M4 7c0-.932 0-1.398.152-1.765a2 2 0 0 1 1.083-1.083C5.602 4 6.068 4 7 4h10c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C20 5.602 20 6.068 20 7M9 20h6M12 4v16"}));qt.displayName="Type01";const Ct={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function On(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),r=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${r}`}).join(",")}function Ao(t){return t?t.split(",").map(e=>{const[n,r,...a]=e.split(":");return{key:decodeURIComponent(n||""),operator:r||"eq",value:decodeURIComponent(a.join(":")||"")}}):[]}function Ho(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function qo(t){return t.trim()?t.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[n,...r]=e.split("=");return{key:n||"",operator:"eq",value:r.join("=")}}if(e.includes("~")){const[n,...r]=e.split("~");return{key:n||"",operator:"contains",value:r.join("~")}}if(e.includes("@")){const[n,...r]=e.split("@");return{key:n||"",operator:"in",value:r.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function zo(t){const e={},n={},r=[],a={};for(const o of t)if(o.key.trim())switch(o.operator){case"eq":o.value&&(e[o.key]=o.value);break;case"contains":o.value&&(n[o.key]=`%${o.value}%`);break;case"exists":r.push(o.key);break;case"in":o.value&&(a[o.key]=o.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(n).length>0?n:void 0,propertyKeys:r.length>0?r:void 0,propertyInValues:Object.keys(a).length>0?a:void 0}}function St(t){if(!t)return{content:"null",isTruncated:!1,originalSize:4};const e=JSON.stringify(t,null,2),n=e.length;return n<=Ct.maxJsonRenderSize?{content:e,isTruncated:!1,originalSize:n}:{content:e.slice(0,Ct.maxJsonRenderSize)+`
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as x,ar as h,j as c,a9 as m,av as k,bm as p,au as M,aw as T,ay as S,aq as A,as as F,y as $,c as P}from"./index-
|
|
1
|
+
import{r as x,ar as h,j as c,a9 as m,av as k,bm as p,au as M,aw as T,ay as S,aq as A,as as F,y as $,c as P}from"./index-B1amT4cG.js";import{c as C}from"./button-B3wvaVSV.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[t,o]=h({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=S(v,[T]),I=T(),b=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});b.displayName=v;var[z,y]=w(v),D=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...r,ref:e})})}),B=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...r,ref:e})})});b.displayName=v;var[O,q]=w(v),R=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=I(l),u=A(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(F,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=y(f,a.__scopeToggleGroup),s=q(f,a.__scopeToggleGroup),n=I(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=y(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),H=b,L=N;const U=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function Q(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(H,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function W(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(U({variant:o.variant||t,size:o.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=r,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(L,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{Q as T,W as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,b as F,r as D,j as t,O as J}from"./index-
|
|
1
|
+
import{c as z,b as F,r as D,j as t,O as J}from"./index-B1amT4cG.js";import{a as q,C as Q}from"./collection-table-wrapper-8ZivTkeI.js";import{E as K,C as X}from"./empty-state-BTihO37R.js";import{I as Y}from"./integration-icon-D424d7sU.js";import{B as Z}from"./badge-wMb3Y-8E.js";import{C as ee}from"./card-Dg4qw_Um.js";import{T as te,a as oe,b as se,c as ne}from"./tooltip-CRlxaib0.js";import{i as re}from"./AlertTriangle-zLp1y7-M.js";import{s as ae}from"./Eye-CK_RXIJn.js";import{s as ie}from"./Globe02-D_Ml-Wmd.js";import{s as le}from"./RefreshCw01-BWffByP-.js";import{V as ce}from"./layout-jhaCZcgQ.js";const me=[{key:"readOnlyHint",label:"Read-only",Icon:ae,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:re,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:le,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:ie,variant:"outline"}];function de(o){const e=z.c(11),{annotations:r}=o;if(!r)return null;let a,c,m,d;if(e[0]!==r){d=Symbol.for("react.early_return_sentinel");e:{const u=me.filter(h=>r[h.key]===!0);if(u.length===0){d=null;break e}a=ne,c="flex gap-1 flex-nowrap",m=u.map(fe)}e[0]=r,e[1]=a,e[2]=c,e[3]=m,e[4]=d}else a=e[1],c=e[2],m=e[3],d=e[4];if(d!==Symbol.for("react.early_return_sentinel"))return d;let f;e[5]!==c||e[6]!==m?(f=t.jsx("div",{className:c,children:m}),e[5]=c,e[6]=m,e[7]=f):f=e[7];let p;return e[8]!==a||e[9]!==f?(p=t.jsx(a,{children:f}),e[8]=a,e[9]=f,e[10]=p):p=e[10],p}function fe(o){const{label:e,Icon:r,variant:a}=o;return t.jsxs(te,{children:[t.jsx(oe,{asChild:!0,children:t.jsx(Z,{asChild:!0,variant:a,className:"size-6 p-1",children:t.jsx(r,{})})}),t.jsx(se,{children:e})]},e)}function Le(o){const e=z.c(40),{tools:r,connectionId:a,org:c,onToolClick:m,showToolbar:d,emptyMessage:f,isLoading:p}=o,u=d===void 0?!0:d,h=f===void 0?"This connection doesn't have any tools yet.":f,E=p===void 0?!1:p,R=F(),[i,H]=D.useState(""),[x,G]=D.useState("table"),[n,M]=D.useState("name"),[l,V]=D.useState("asc");let T;e[0]!==l||e[1]!==n?(T=s=>{n===s?(V(je),l==="desc"&&M(void 0)):(M(s),V("asc"))},e[0]=l,e[1]=n,e[2]=T):T=e[2];const g=T;let S;e[3]!==a||e[4]!==R||e[5]!==m||e[6]!==c?(S=s=>{m?m(s):a&&c&&R({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:c,project:J,connectionId:a,collectionName:"tools",itemId:encodeURIComponent(s.name)}})},e[3]=a,e[4]=R,e[5]=m,e[6]=c,e[7]=S):S=e[7];const w=S;let I;if(e[8]!==i||e[9]!==l||e[10]!==n||e[11]!==r){const s=!r||r.length===0?[]:i.trim()?(()=>{const O=i.toLowerCase();return r.filter(C=>C.name.toLowerCase().includes(O)||C.description&&C.description.toLowerCase().includes(O))})():r;I=!n||!l?s:[...s].sort((O,C)=>{const U=O[n]||"",W=C[n]||"",B=String(U).localeCompare(String(W));return l==="asc"?B:-B}),e[8]=i,e[9]=l,e[10]=n,e[11]=r,e[12]=I}else I=e[12];const v=I;let _;e[13]===Symbol.for("react.memo_cache_sentinel")?(_=[{id:"name",header:"Name",render:ge,sortable:!0},{id:"annotations",header:"Hints",render:xe,cellClassName:"w-32 shrink-0"},{id:"description",header:"Description",render:he,cellClassName:"flex-1",sortable:!0}],e[13]=_):_=e[13];const A=_;let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=A.filter(ue).map(pe),e[14]=k):k=e[14];const P=k;let j;e[15]!==g||e[16]!==u||e[17]!==l||e[18]!==n||e[19]!==x?(j=u&&t.jsx(ce,{children:t.jsx(Q,{viewMode:x,onViewModeChange:G,sortKey:n,sortDirection:l,onSort:g,sortOptions:P})}),e[15]=g,e[16]=u,e[17]=l,e[18]=n,e[19]=x,e[20]=j):j=e[20];let $;e[21]===Symbol.for("react.memo_cache_sentinel")?($=s=>{s.key==="Escape"&&(H(""),s.target.blur())},e[21]=$):$=e[21];let y;e[22]!==i?(y=t.jsx(X,{value:i,onChange:H,placeholder:"Search tools...",onKeyDown:$}),e[22]=i,e[23]=y):y=e[23];let N;e[24]!==h||e[25]!==g||e[26]!==w||e[27]!==E||e[28]!==i||e[29]!==l||e[30]!==n||e[31]!==v||e[32]!==x?(N=x==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:v.length===0?t.jsx(K,{image:null,title:i?"No tools found":"No tools available",description:i?"Try adjusting your search terms":h}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:v.map(s=>t.jsx(ee,{className:"cursor-pointer transition-colors",onClick:()=>w(s),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(Y,{icon:null,name:s.name,size:"md",className:"shrink-0 shadow-sm"}),t.jsxs("div",{className:"flex flex-col gap-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.name}),t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:s.description||"No description"})]})]})},s.name))})}):t.jsx(q,{columns:A,data:v,isLoading:E,sortKey:n,sortDirection:l,onSort:g,onRowClick:s=>w(s),emptyState:t.jsx(K,{image:null,title:i?"No tools found":"No tools available",description:i?"Try adjusting your search terms":h})}),e[24]=h,e[25]=g,e[26]=w,e[27]=E,e[28]=i,e[29]=l,e[30]=n,e[31]=v,e[32]=x,e[33]=N):N=e[33];let b;e[34]!==y||e[35]!==N?(b=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[y,N]}),e[34]=y,e[35]=N,e[36]=b):b=e[36];let L;return e[37]!==b||e[38]!==j?(L=t.jsxs(t.Fragment,{children:[j,b]}),e[37]=b,e[38]=j,e[39]=L):L=e[39],L}function pe(o){return{id:o.id,label:typeof o.header=="string"?o.header:o.id}}function ue(o){return o.sortable}function he(o){return t.jsx("span",{className:"text-sm text-foreground",children:o.description||"—"})}function xe(o){return t.jsx(de,{annotations:o.annotations})}function ge(o){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:o.name})}function je(o){return o==="asc"?"desc":o==="desc"?null:"asc"}export{de as T,Le as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,at as H,j as c,aH as J,a9 as Q,av as C,ax as $,aI as Z,an as ee,ar as te,aG as oe,aJ as G,aP as re,aQ as ne,ay as se,aU as ae,aR as ie,c as _}from"./index-
|
|
1
|
+
import{r as a,at as H,j as c,aH as J,a9 as Q,av as C,ax as $,aI as Z,an as ee,ar as te,aG as oe,aJ as G,aP as re,aQ as ne,ay as se,aU as ae,aR as ie,c as _}from"./index-B1amT4cG.js";import{R as le}from"./index-whQgID_3.js";import{c as ce}from"./button-B3wvaVSV.js";var[O]=se("Tooltip",[G]),L=G(),B="TooltipProvider",ue=700,k="tooltip.open",[de,A]=O(B),z=o=>{const{__scopeTooltip:e,delayDuration:t=ue,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,i=a.useRef(!0),d=a.useRef(!1),l=a.useRef(0);return a.useEffect(()=>{const p=l.current;return()=>window.clearTimeout(p)},[]),c.jsx(de,{scope:e,isOpenDelayedRef:i,delayDuration:t,onOpen:a.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:a.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};z.displayName=B;var R="Tooltip",[pe,j]=O(R),F=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:i,delayDuration:d}=o,l=A(R,o.__scopeTooltip),p=L(e),[u,h]=a.useState(null),v=ee(),f=a.useRef(0),x=i??l.disableHoverableContent,g=d??l.delayDuration,m=a.useRef(!1),[y,T]=te({prop:r,defaultProp:n??!1,onChange:S=>{S?(l.onOpen(),document.dispatchEvent(new CustomEvent(k))):l.onClose(),s?.(S)},caller:R}),w=a.useMemo(()=>y?m.current?"delayed-open":"instant-open":"closed",[y]),E=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m.current=!1,T(!0)},[T]),P=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,T(!1)},[T]),N=a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{m.current=!0,T(!0),f.current=0},g)},[g,T]);return a.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(oe,{...p,children:c.jsx(pe,{scope:e,contentId:v,open:y,stateAttribute:w,trigger:u,onTriggerChange:h,onTriggerEnter:a.useCallback(()=>{l.isOpenDelayedRef.current?N():E()},[l.isOpenDelayedRef,N,E]),onTriggerLeave:a.useCallback(()=>{x?P():(window.clearTimeout(f.current),f.current=0)},[P,x]),onOpen:E,onClose:P,disableHoverableContent:x,children:t})})};F.displayName=R;var M="TooltipTrigger",U=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=j(M,t),s=A(M,t),i=L(t),d=a.useRef(null),l=H(e,d,n.onTriggerChange),p=a.useRef(!1),u=a.useRef(!1),h=a.useCallback(()=>p.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx(J,{asChild:!0,...i,children:c.jsx(Q.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:l,onPointerMove:C(o.onPointerMove,v=>{v.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",h,{once:!0})}),onFocus:C(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});U.displayName=M;var I="TooltipPortal",[fe,he]=O(I,{forceMount:void 0}),q=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=j(I,e);return c.jsx(fe,{scope:e,forceMount:t,children:c.jsx($,{present:t||s.open,children:c.jsx(Z,{asChild:!0,container:n,children:r})})})};q.displayName=I;var b="TooltipContent",V=a.forwardRef((o,e)=>{const t=he(b,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,i=j(b,o.__scopeTooltip);return c.jsx($,{present:r||i.open,children:i.disableHoverableContent?c.jsx(W,{side:n,...s,ref:e}):c.jsx(ve,{side:n,...s,ref:e})})}),ve=a.forwardRef((o,e)=>{const t=j(b,o.__scopeTooltip),r=A(b,o.__scopeTooltip),n=a.useRef(null),s=H(e,n),[i,d]=a.useState(null),{trigger:l,onClose:p}=t,u=n.current,{onPointerInTransitChange:h}=r,v=a.useCallback(()=>{d(null),h(!1)},[h]),f=a.useCallback((x,g)=>{const m=x.currentTarget,y={x:x.clientX,y:x.clientY},T=Te(y,m.getBoundingClientRect()),w=ye(y,T),E=Ce(g.getBoundingClientRect()),P=we([...w,...E]);d(P),h(!0)},[h]);return a.useEffect(()=>()=>v(),[v]),a.useEffect(()=>{if(l&&u){const x=m=>f(m,u),g=m=>f(m,l);return l.addEventListener("pointerleave",x),u.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",x),u.removeEventListener("pointerleave",g)}}},[l,u,f,v]),a.useEffect(()=>{if(i){const x=g=>{const m=g.target,y={x:g.clientX,y:g.clientY},T=l?.contains(m)||u?.contains(m),w=!be(y,i);T?v():w&&(v(),p())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,u,i,p,v]),c.jsx(W,{...o,ref:s})}),[xe,me]=O(R,{isInside:!1}),ge=ae("TooltipContent"),W=a.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:i,...d}=o,l=j(b,t),p=L(t),{onClose:u}=l;return a.useEffect(()=>(document.addEventListener(k,u),()=>document.removeEventListener(k,u)),[u]),a.useEffect(()=>{if(l.trigger){const h=v=>{v.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,u]),c.jsx(re,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:u,children:c.jsxs(ne,{"data-state":l.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(ge,{children:r}),c.jsx(xe,{scope:t,isInside:!0,children:c.jsx(le,{id:l.contentId,role:"tooltip",children:n||r})})]})})});V.displayName=b;var X="TooltipArrow",Y=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=L(t);return me(X,t).isInside?null:c.jsx(ie,{...n,...r,ref:e})});Y.displayName=X;function Te(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 ye(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 Ce(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 be(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,i=e.length-1;s<e.length;i=s++){const d=e[s],l=e[i],p=d.x,u=d.y,h=l.x,v=l.y;u>r!=v>r&&t<(h-p)*(r-u)/(v-u)+p&&(n=!n)}return n}function we(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),Ee(e)}function Ee(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],i=e[e.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.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],i=t[t.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.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 Pe=z,Re=F,_e=U,je=q,Oe=V,Le=Y;const De=({size:o=24,color:e="currentColor",...t})=>a.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},a.createElement("path",{d:"M17 7 7 17M7 7l10 10"}));De.displayName="X";const K=768,D=()=>globalThis.innerWidth<K;function Ne(){const o=_.c(2),[e,t]=a.useState(D);let r,n;return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{const s=()=>t(D),i=globalThis.matchMedia(`(max-width: ${K-1}px)`);return i.addEventListener("change",s),t(D),()=>i.removeEventListener("change",s)},n=[],o[0]=r,o[1]=n):(r=o[0],n=o[1]),a.useEffect(r,n),e}function ke(o){const e=_.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(Pe,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Se(o){const e=_.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(ke,{children:c.jsx(Re,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function He(o){const e=_.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(_e,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function $e(o){const e=_.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 i=s===void 0?0:s;let d;e[5]!==r?(d=ce("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 l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=c.jsx(Le,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=l):l=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==i||e[11]!==d?(p=c.jsx(je,{children:c.jsxs(Oe,{"data-slot":"tooltip-content",sideOffset:i,className:d,...n,children:[t,l]})}),e[8]=t,e[9]=n,e[10]=i,e[11]=d,e[12]=p):p=e[12],p}export{Se as T,He as a,$e as b,ke as c,De as i,Ne as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,j as l,r}from"./index-
|
|
1
|
+
import{c,j as l,r}from"./index-B1amT4cG.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};
|