@decocms/mesh 2.63.0 → 2.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-ByS2S7QG.js → AlertCircle-B7sqll3Z.js} +1 -1
- package/dist/client/assets/{ArrowUp-Pc2qwI_3.js → ArrowUp-D8YYlj5b.js} +1 -1
- package/dist/client/assets/{Calendar-MP2K9xOR.js → Calendar-Cn4v8JwE.js} +1 -1
- package/dist/client/assets/{Check-kOHUYBJY.js → Check-lN7sUZo8.js} +1 -1
- package/dist/client/assets/{ChevronDown-J2iKAqyZ.js → ChevronDown-En_P43wp.js} +1 -1
- package/dist/client/assets/{ChevronRight-Cua3_Oqd.js → ChevronRight-BB2YL4K4.js} +1 -1
- package/dist/client/assets/{Code01-DORFegNP.js → Code01-Dgx2dgXr.js} +1 -1
- package/dist/client/assets/{Copy01-U5Mrbyn4.js → Copy01-daHVbD8K.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-nhuBUuxR.js → DotsHorizontal-DT2O2EOj.js} +1 -1
- package/dist/client/assets/{DotsVertical-CDOXEsr8.js → DotsVertical-D1ZY49Um.js} +1 -1
- package/dist/client/assets/{Download01-jn6ziu2W.js → Download01-oP6u6TmF.js} +1 -1
- package/dist/client/assets/{Edit01-C_cfLeJc.js → Edit01-C_JM_ANM.js} +1 -1
- package/dist/client/assets/{File02-Gea-raGb.js → File02-DlRIy2xF.js} +1 -1
- package/dist/client/assets/{File06-DE5HPnG3.js → File06-2dtWfDa_.js} +1 -1
- package/dist/client/assets/{FilterLines-CeL96HHO.js → FilterLines-BCtAjuvO.js} +1 -1
- package/dist/client/assets/{Grid01-CkZU0tWV.js → Grid01-DHptyetH.js} +1 -1
- package/dist/client/assets/{Home02-BLvW9ZzY.js → Home02-CwpXJj-n.js} +1 -1
- package/dist/client/assets/{Image01-CIkj8y0a.js → Image01-CILGPgam.js} +1 -1
- package/dist/client/assets/{Inbox01-8S74uH1Z.js → Inbox01-BTvTBHN2.js} +1 -1
- package/dist/client/assets/{InfoCircle-BfJTzk81.js → InfoCircle-COTflZ7n.js} +1 -1
- package/dist/client/assets/{Key01-BFw74njR.js → Key01-DFKkR5uc.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BRD6ViRl.js → LinkExternal01-WHnCc-Ds.js} +1 -1
- package/dist/client/assets/{List-4IPwuAX9.js → List-Dl-Bi1Os.js} +1 -1
- package/dist/client/assets/{Loading01-CCSRv8tX.js → Loading01-D8raUT2q.js} +1 -1
- package/dist/client/assets/{Lock01-B367KJK-.js → Lock01-0pDC11sR.js} +1 -1
- package/dist/client/assets/{Pin01-dHyXwRhr.js → Pin01-C3nTzsY2.js} +1 -1
- package/dist/client/assets/{Play-DiP4pY8r.js → Play-B3d026b0.js} +1 -1
- package/dist/client/assets/{Plus-B5QrRvCn.js → Plus-BcqTpnxy.js} +1 -1
- package/dist/client/assets/{SearchMd-D2POsGFy.js → SearchMd-DVuLBPJW.js} +1 -1
- package/dist/client/assets/{Share07-CQptN91g.js → Share07-DW8M4mUv.js} +1 -1
- package/dist/client/assets/{Terminal-CsAynI3M.js → Terminal-BOgtpg9n.js} +1 -1
- package/dist/client/assets/{Tool01-DdjIy29J.js → Tool01-D95FDZLP.js} +1 -1
- package/dist/client/assets/{Trash01-BdLDRPDl.js → Trash01-CR6s5yrj.js} +1 -1
- package/dist/client/assets/{Upload01-BB9AN-C_.js → Upload01-CkSc1CyA.js} +1 -1
- package/dist/client/assets/{Users03-DPYHJvoT.js → Users03-CCWN1VQn.js} +1 -1
- package/dist/client/assets/{X-CVoqpcAx.js → X-BsLffR19.js} +1 -1
- package/dist/client/assets/{XClose-CqNB1Ju1.js → XClose-D9VL7Fhs.js} +1 -1
- package/dist/client/assets/{agent-detail-BA2oH52J.js → agent-detail-DEjCff0P.js} +1 -1
- package/dist/client/assets/{agents-CexpEqf3.js → agents-C0Oa7sFF.js} +1 -1
- package/dist/client/assets/{alert-dialog-9PxNij5-.js → alert-dialog-BYFUia7V.js} +1 -1
- package/dist/client/assets/{auth-catchall-UkCMdvlG.js → auth-catchall-B3lc_CZ9.js} +1 -1
- package/dist/client/assets/{avatar-Cr99ARr3.js → avatar-B6WhQiHI.js} +1 -1
- package/dist/client/assets/{badge-a9rJdKKG.js → badge-D19NcG12.js} +1 -1
- package/dist/client/assets/{binder-BHtkW0UD.js → binder-CwgOa4SG.js} +1 -1
- package/dist/client/assets/{breadcrumb-DBCyZqWb.js → breadcrumb-BuFIEIOz.js} +1 -1
- package/dist/client/assets/{button-BB_m2E67.js → button-BNRw8VbO.js} +1 -1
- package/dist/client/assets/{card-DQu0Qiy4.js → card-B2_21gZH.js} +1 -1
- package/dist/client/assets/{checkbox-BYeejX3s.js → checkbox-D0Zw7dGS.js} +1 -1
- package/dist/client/assets/{circle-alert-W5iOrtbw.js → circle-alert-DepalnIB.js} +1 -1
- package/dist/client/assets/{collapsible-Ce6mH95q.js → collapsible-Dg-5RnYq.js} +1 -1
- package/dist/client/assets/{collection-detail-Wj5M0Fmc.js → collection-detail-DFH_vpkO.js} +1 -1
- package/dist/client/assets/{collection-search-DozvRnxE.js → collection-search-D5gi0-bL.js} +1 -1
- package/dist/client/assets/{collection-tab-BRIJmTl-.js → collection-tab-DxItkIfa.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CTuXfFv4.js → collection-table-wrapper-igJ5OqPc.js} +1 -1
- package/dist/client/assets/{connect-DKTGUww4.js → connect-CtxQyDSW.js} +1 -1
- package/dist/client/assets/{connection-card-Bp0BNZom.js → connection-card-GHfjxhQ1.js} +1 -1
- package/dist/client/assets/{connection-detail-DdEzYohs.js → connection-detail-sqbtlWZ0.js} +1 -1
- package/dist/client/assets/{connections-C2ef7EGE.js → connections-DeNXDjso.js} +1 -1
- package/dist/client/assets/{constants-nQTTOIWL.js → constants-Cpe-c81c.js} +1 -1
- package/dist/client/assets/constants-gYpJq1UH.js +1 -0
- package/dist/client/assets/{create-organization-dialog-CgJo2N7J.js → create-organization-dialog-7bdcAksX.js} +1 -1
- package/dist/client/assets/{dialog-BPGYkE6E.js → dialog-Csoqe4hG.js} +1 -1
- package/dist/client/assets/{dropdown-menu-w3xNt286.js → dropdown-menu-CsYNL9oo.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DB7JIoTi.js → dynamic-plugin-layout-bKoth3Ne.js} +1 -1
- package/dist/client/assets/{empty-state-DI837doR.js → empty-state-Cn1CRUZO.js} +1 -1
- package/dist/client/assets/{empty-state-Cuxzpiqy.js → empty-state-CpRLw49r.js} +1 -1
- package/dist/client/assets/{env-vars-editor-dEtMntyA.js → env-vars-editor-0JsZHlg0.js} +1 -1
- package/dist/client/assets/{error-boundary-UVoBd-EX.js → error-boundary-DQ5uRgdY.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BkwH9UE5.js → extract-connection-data-B6LHMHtn.js} +1 -1
- package/dist/client/assets/{file-browser-DBtEgqmA.js → file-browser-xiIO0qLw.js} +2 -2
- package/dist/client/assets/{form-CFGJ-U5C.js → form-DAoJifFq.js} +1 -1
- package/dist/client/assets/{grid-view-BNbopqbx.js → grid-view-Bj9WDB_-.js} +1 -1
- package/dist/client/assets/{home-DzPPiX6r.js → home-BgLX6VJQ.js} +1 -1
- package/dist/client/assets/{index-CRFYi63w.js → index-BhNLW4h1.js} +1 -1
- package/dist/client/assets/{index-Cw0Cq7G5.js → index-Bos_CuhY.js} +2 -2
- package/dist/client/assets/index-CU94_QoM.css +1 -0
- package/dist/client/assets/{index-Cr1-k0ke.js → index-CsOz92iP.js} +1 -1
- package/dist/client/assets/{index-CERcQBYB.js → index-DJLvIq1X.js} +1 -1
- package/dist/client/assets/{index-DrbTAGPY.js → index-GUdoiFzV.js} +1 -1
- package/dist/client/assets/{index-BxQtX61C.js → index-P_cUV9l9.js} +1 -1
- package/dist/client/assets/{index-DVqIQLTS.js → index-yjsBu7QA.js} +2 -2
- package/dist/client/assets/{infiniteQueryObserver-qdoAkrLg.js → infiniteQueryObserver-D_8FFQdU.js} +1 -1
- package/dist/client/assets/{input-D53urYud.js → input-C-GM7dsu.js} +1 -1
- package/dist/client/assets/{layout-CvATyvqE.js → layout-D8G7uVC8.js} +1 -1
- package/dist/client/assets/{localstorage-keys-Dt0DQ7_M.js → localstorage-keys-C_mtBNzA.js} +1 -1
- package/dist/client/assets/{login-C_lPzYbi.js → login-FPJg9vSY.js} +1 -1
- package/dist/client/assets/{mcp-oauth-ALBEJIVW.js → mcp-oauth-l77m3IWF.js} +1 -1
- package/dist/client/assets/{mcp-server-card-BSDiwyMq.js → mcp-server-card-D5sj_LDb.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-hoJFp--l.js → mcp-server-detail-BFJxlaGZ.js} +2 -2
- package/dist/client/assets/{members-DhIxxmb-.js → members-D6XXyYMu.js} +1 -1
- package/dist/client/assets/{monaco-editor-Dv5Uv_CH.js → monaco-editor-p_EFt-aT.js} +1 -1
- package/dist/client/assets/{monitoring-CesgjcG6.js → monitoring-CFkcXam_.js} +1 -1
- package/dist/client/assets/{oauth-callback-D881LTdt.js → oauth-callback-DN_uk9hh.js} +1 -1
- package/dist/client/assets/{page-Bz36h7wn.js → page-BityQMBs.js} +1 -1
- package/dist/client/assets/{page-BINds3__.js → page-D2S0EYIA.js} +1 -1
- package/dist/client/assets/{pin-to-sidebar-button-VWxGEpa7.js → pin-to-sidebar-button-qPJJKT8U.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BKQ3hXbm.js → plugin-empty-state-CuuSx5zh.js} +1 -1
- package/dist/client/assets/{plugin-header-D2pQH9wJ.js → plugin-header-BpBy7iT0.js} +1 -1
- package/dist/client/assets/{plugins-BaoheFvZ.js → plugins-CEFWqcJY.js} +1 -1
- package/dist/client/assets/{popover-C9gpO_P1.js → popover-u_i609j_.js} +1 -1
- package/dist/client/assets/{registry-utils-COHLTguy.js → registry-utils-BNFgymSf.js} +1 -1
- package/dist/client/assets/{resizable-Dl3VUWr8.js → resizable-Bac7VXSC.js} +1 -1
- package/dist/client/assets/{resource-tabs-Ddi84XBD.js → resource-tabs-CE-63rPp.js} +1 -1
- package/dist/client/assets/{select-DsmrYLOe.js → select-B4SPtD5h.js} +1 -1
- package/dist/client/assets/{settings-Z2r51vE-.js → settings-CoEwEtT9.js} +1 -1
- package/dist/client/assets/shell-layout-BH2X3Yeb.js +12 -0
- package/dist/client/assets/{spinner-CaiollDD.js → spinner-Duo6KesX.js} +1 -1
- package/dist/client/assets/{store-invite-E7IkGyCx.js → store-invite-CyZGTGUz.js} +1 -1
- package/dist/client/assets/{switch-BRyOsD9X.js → switch-DBMrpKuB.js} +1 -1
- package/dist/client/assets/{table-By59ASmK.js → table-NP0FOAI5.js} +1 -1
- package/dist/client/assets/{textarea-BB8VII1W.js → textarea-ByvgxbRE.js} +1 -1
- package/dist/client/assets/{tools-list-DURWgp8a.js → tools-list-gkMtCYZf.js} +1 -1
- package/dist/client/assets/{typewriter-title-BTENJbqy.js → typewriter-title-CZvcEhZW.js} +1 -1
- package/dist/client/assets/{use-binding-BKAkfTQP.js → use-binding-CNR8kDE7.js} +1 -1
- package/dist/client/assets/{use-collections-CidxL5e8.js → use-collections-Hp9XPnUY.js} +1 -1
- package/dist/client/assets/{use-connection-nBbiimhv.js → use-connection-Dj100t8H.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CPQ3EWAe.js → use-create-virtual-mcp-B01dvSQa.js} +1 -1
- package/dist/client/assets/{use-deco-chat-open-CxrySluI.js → use-deco-chat-open-C4y7eW_U.js} +1 -1
- package/dist/client/assets/{use-list-state-DDhTHJ9V.js → use-list-state-DsM4HMGd.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-0zuoUwAA.js → use-mcp-prompts-SKr2e7l0.js} +1 -1
- package/dist/client/assets/{use-members-CVCClaOw.js → use-members-C8R91dOK.js} +1 -1
- package/dist/client/assets/{use-mobile-D3kiHSC9.js → use-mobile-CS2zVR4m.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Bnh92zjq.js → use-organization-settings-ClYOYczD.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BzFn2znu.js → use-virtual-mcp-XGRCLjSr.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C34Ot4VI.js +1 -0
- package/dist/client/assets/{useMutation-DYyKBkRY.js → useMutation-VOj1VEf8.js} +1 -1
- package/dist/client/assets/useQuery-C5RIveiE.js +1 -0
- package/dist/client/assets/{view-mode-toggle-C2aKUr7i.js → view-mode-toggle-zGyN0eoT.js} +1 -1
- package/dist/client/assets/{workflow-DrGi1tqo.js → workflow-BRSWFGSV.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +82 -82
- package/dist/server/migrate.js +169 -169
- package/dist/server/server.js +62 -62
- package/package.json +1 -1
- package/dist/client/assets/constants-DuCds5dq.js +0 -1
- package/dist/client/assets/index-DTBzssSX.css +0 -1
- package/dist/client/assets/shell-layout-LyCgzjUJ.js +0 -12
- package/dist/client/assets/useInfiniteQuery-Cg3dUfja.js +0 -1
- package/dist/client/assets/useQuery-CC03be4X.js +0 -1
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{r as j,c as w,j as n,u as be,l as ie,b6 as Ce,L as Me,w as kt,H as _t,y as zt,v as G,bA as He,g as W,a as ke,aY as $t,bB as It,b3 as Ue,bC as le,b as Ot,S as Be,d as Tt,e as Mt,N as Et,x as Lt,P as At,aN as We,K as Pt,O as Dt}from"./index-DVqIQLTS.js";import{C as H,u as Rt}from"./index-Cw0Cq7G5.js";import{I as Ht,n as Ut,b as Fe,a as ue,T as he,c as pe}from"./empty-state-Cuxzpiqy.js";import{P as ae}from"./index-BxQtX61C.js";import{u as je}from"./use-deco-chat-open-CxrySluI.js";import{c as M,B as P}from"./button-BB_m2E67.js";import{d as Bt}from"./constants-nQTTOIWL.js";import{T as Wt,i as Ft,b as Vt,S as Zt,c as Kt,d as Gt,e as Yt,f as qt,t as Ve}from"./typewriter-title-BTENJbqy.js";import{s as Ze}from"./Plus-B5QrRvCn.js";import{t as Ke}from"./Users03-DPYHJvoT.js";import{i as xe}from"./X-CVoqpcAx.js";import{E as Ge}from"./error-boundary-UVoBd-EX.js";import{u as Jt,S as Q,c as Xt}from"./collapsible-Ce6mH95q.js";import{a as Qt}from"./Home02-BLvW9ZzY.js";import{u as _e,a as es}from"./use-organization-settings-Bnh92zjq.js";import{u as oe}from"./use-mobile-D3kiHSC9.js";import{A as q}from"./avatar-Cr99ARr3.js";import{P as ze,a as $e,b as Ie}from"./popover-C9gpO_P1.js";import{t as ts}from"./ChevronDown-J2iKAqyZ.js";import{c as ss,b as ns,g as as,a as rs,D as ls}from"./dialog-BPGYkE6E.js";import{L as is}from"./form-CFGJ-U5C.js";import{S as os}from"./switch-BRyOsD9X.js";import{i as ge}from"./Check-kOHUYBJY.js";import{i as cs}from"./Code01-DORFegNP.js";import{a as Ye}from"./Copy01-U5Mrbyn4.js";import{i as ds}from"./Lock01-B367KJK-.js";import{C as qe}from"./create-organization-dialog-CgJo2N7J.js";import{n as Ee}from"./Inbox01-8S74uH1Z.js";import{B as Le}from"./badge-a9rJdKKG.js";import{s as Ae}from"./XClose-CqNB1Ju1.js";import{i as ms}from"./File06-DE5HPnG3.js";import{I as fs}from"./input-D53urYud.js";import{c as us}from"./Grid01-CkZU0tWV.js";import{a as hs,b as ps,D as xs,c as gs,g as Pe}from"./dropdown-menu-w3xNt286.js";import{n as De}from"./LinkExternal01-BRD6ViRl.js";import{u as Je,L as Xe}from"./localstorage-keys-Dt0DQ7_M.js";import{R as bs,a as Qe,b as js}from"./resizable-Dl3VUWr8.js";import"./spinner-CaiollDD.js";import"./use-mcp-prompts-0zuoUwAA.js";import"./useQuery-CC03be4X.js";import"./AlertCircle-ByS2S7QG.js";import"./ArrowUp-Pc2qwI_3.js";import"./Edit01-C_cfLeJc.js";import"./ChevronRight-Cua3_Oqd.js";import"./Terminal-CsAynI3M.js";import"./monaco-editor-Dv5Uv_CH.js";import"./use-connection-nBbiimhv.js";import"./use-collections-CidxL5e8.js";import"./useMutation-DYyKBkRY.js";import"./generate-id-Dyweu44Y.js";import"./SearchMd-D2POsGFy.js";import"./Trash01-BdLDRPDl.js";import"./use-virtual-mcp-BzFn2znu.js";import"./use-create-virtual-mcp-CPQ3EWAe.js";import"./use-binding-BKAkfTQP.js";import"./binder-BHtkW0UD.js";import"./select-DsmrYLOe.js";import"./Image01-CIkj8y0a.js";import"./infiniteQueryObserver-qdoAkrLg.js";import"./alert-dialog-9PxNij5-.js";const we=({size:t=24,color:e="currentColor",...s})=>j.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},j.createElement("path",{d:"M7 17 17 7m0 0H7m10 0v10"}));we.displayName="ArrowUpRight";const et=({size:t=24,color:e="currentColor",...s})=>j.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},j.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"}));et.displayName="BarChart10";const tt=({size:t=24,color:e="currentColor",...s})=>j.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},j.createElement("path",{d:"m12 21-.1-.15c-.695-1.042-1.042-1.563-1.5-1.94a4 4 0 0 0-1.378-.737C8.453 18 7.827 18 6.575 18H5.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C2 16.48 2 15.92 2 14.8V6.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C3.52 3 4.08 3 5.2 3h.4c2.24 0 3.36 0 4.216.436a4 4 0 0 1 1.748 1.748C12 6.04 12 7.16 12 9.4M12 21V9.4M12 21l.1-.15c.695-1.042 1.042-1.563 1.5-1.94a3.999 3.999 0 0 1 1.378-.737C15.547 18 16.173 18 17.425 18H18.8c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 16.48 22 15.92 22 14.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 3 19.92 3 18.8 3h-.4c-2.24 0-3.36 0-4.216.436a4 4 0 0 0-1.748 1.748C12 6.04 12 7.16 12 9.4"}));tt.displayName="BookOpen01";const st=({size:t=24,color:e="currentColor",...s})=>j.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},j.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"}));st.displayName="Building02";const nt=({size:t=24,color:e="currentColor",...s})=>j.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},j.createElement("path",{d:"m18 17-5-5 5-5m-7 10-5-5 5-5"}));nt.displayName="ChevronLeftDouble";const at=({size:t=24,color:e="currentColor",...s})=>j.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},j.createElement("path",{d:"m6 17 5-5-5-5m7 10 5-5-5-5"}));at.displayName="ChevronRightDouble";const rt=({size:t=24,color:e="currentColor",...s})=>j.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},j.createElement("path",{d:"M2 12h20M2 12c0 5.523 4.477 10 10 10M2 12C2 6.477 6.477 2 12 2m10 10c0 5.523-4.477 10-10 10m10-10c0-5.523-4.477-10-10-10m0 0a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10m0-20a15.3 15.3 0 0 0-4 10 15.3 15.3 0 0 0 4 10"}));rt.displayName="Globe01";const lt=({size:t=24,color:e="currentColor",...s})=>j.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},j.createElement("path",{d:"M15 3v18M7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3Z"}));lt.displayName="LayoutRight";const it=({size:t=24,color:e="currentColor",...s})=>j.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},j.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"}));it.displayName="LogOut01";const ot=({size:t=24,color:e="currentColor",...s})=>j.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},j.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m3 5c0 .93 0 1.395-.102 1.776a3 3 0 0 1-2.122 2.122C9.395 21 8.93 21 8 21h-.5c-1.398 0-2.097 0-2.648-.228a3 3 0 0 1-1.624-1.624C3 18.597 3 17.898 3 16.5v-9c0-1.398 0-2.097.228-2.648a3 3 0 0 1 1.624-1.624C5.403 3 6.102 3 7.5 3H8c.93 0 1.395 0 1.776.102a3 3 0 0 1 2.122 2.122C12 5.605 12 6.07 12 7"}));ot.displayName="LogOut02";const ct=({size:t=24,color:e="currentColor",...s})=>j.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},j.createElement("path",{d:"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 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.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20Z"}));ct.displayName="Mail01";const Oe=({size:t=24,color:e="currentColor",...s})=>j.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},j.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}),j.createElement("path",{d:"M18.727 14.727a1.5 1.5 0 0 0 .3 1.655l.055.054a1.816 1.816 0 0 1 0 2.573 1.818 1.818 0 0 1-2.573 0l-.055-.055a1.5 1.5 0 0 0-1.654-.3 1.5 1.5 0 0 0-.91 1.373v.155a1.818 1.818 0 1 1-3.636 0V20.1a1.5 1.5 0 0 0-.981-1.373 1.5 1.5 0 0 0-1.655.3l-.054.055a1.818 1.818 0 0 1-3.106-1.287 1.818 1.818 0 0 1 .533-1.286l.054-.055a1.5 1.5 0 0 0 .3-1.654 1.5 1.5 0 0 0-1.372-.91h-.155a1.818 1.818 0 1 1 0-3.636H3.9a1.5 1.5 0 0 0 1.373-.981 1.5 1.5 0 0 0-.3-1.655l-.055-.054A1.818 1.818 0 1 1 7.491 4.99l.054.054a1.5 1.5 0 0 0 1.655.3h.073a1.5 1.5 0 0 0 .909-1.372v-.155a1.818 1.818 0 0 1 3.636 0V3.9a1.499 1.499 0 0 0 .91 1.373 1.5 1.5 0 0 0 1.654-.3l.054-.055a1.817 1.817 0 0 1 2.573 0 1.819 1.819 0 0 1 0 2.573l-.055.054a1.5 1.5 0 0 0-.3 1.655v.073a1.5 1.5 0 0 0 1.373.909h.155a1.818 1.818 0 0 1 0 3.636H20.1a1.499 1.499 0 0 0-1.373.91Z"}));Oe.displayName="Settings01";const dt=({size:t=24,color:e="currentColor",...s})=>j.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},j.createElement("path",{d:"m9.395 19.371.585 1.315a2.212 2.212 0 0 0 4.044 0l.584-1.315a2.426 2.426 0 0 1 2.47-1.423l1.43.152a2.212 2.212 0 0 0 2.023-3.502l-.847-1.164a2.428 2.428 0 0 1-.46-1.434c0-.513.163-1.014.464-1.429l.847-1.163a2.211 2.211 0 0 0-2.022-3.502l-1.43.152a2.433 2.433 0 0 1-1.47-.312 2.426 2.426 0 0 1-1-1.117l-.589-1.315a2.212 2.212 0 0 0-4.044 0L9.395 4.63c-.207.468-.557.86-1 1.117-.445.256-.96.365-1.47.312l-1.434-.152a2.212 2.212 0 0 0-2.023 3.502l.847 1.163a2.43 2.43 0 0 1 0 2.858l-.847 1.163a2.21 2.21 0 0 0 .786 3.273c.382.195.811.274 1.237.23l1.43-.153a2.434 2.434 0 0 1 2.474 1.43Z"}),j.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));dt.displayName="Settings02";const mt=({size:t=24,color:e="currentColor",...s})=>j.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},j.createElement("path",{d:"M3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Zm-6 8h12M9 16a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}));mt.displayName="Settings04";const ft=({size:t=24,color:e="currentColor",...s})=>j.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},j.createElement("path",{d:"M5.316 19.438A4.001 4.001 0 0 1 9 17h6a4.001 4.001 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));ft.displayName="UserCircle";const ut=({size:t=24,color:e="currentColor",...s})=>j.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},j.createElement("path",{d:"M4 21.817C4.603 22 5.416 22 6.8 22h10.4c1.384 0 2.197 0 2.8-.183m-16 0a2.18 2.18 0 0 1-.362-.144 3 3 0 0 1-1.311-1.311C2 19.72 2 18.88 2 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h10.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C22 4.28 22 5.12 22 6.8v10.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311 2.18 2.18 0 0 1-.362.144m-16 0c0-.809.005-1.237.077-1.597a4 4 0 0 1 3.143-3.143C7.606 17 8.07 17 9 17h6c.93 0 1.394 0 1.78.077a4 4 0 0 1 3.143 3.143c.072.36.077.788.077 1.597M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"}));ut.displayName="UserSquare";const ht=({size:t=24,color:e="currentColor",...s})=>j.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},j.createElement("path",{d:"M13 2 4.093 12.688c-.348.418-.523.628-.525.804a.5.5 0 0 0 .185.397c.138.111.41.111.955.111H12l-1 8 8.907-10.688c.348-.418.523-.628.525-.804a.5.5 0 0 0-.185-.397c-.138-.111-.41-.111-.955-.111H12l1-8Z"}));ht.displayName="Zap";function vs(){const t=w.c(68),{org:e}=be(),[,s]=je(),{selectedVirtualMcp:a,modelsConnections:r,isChatEmpty:l,activeThreadId:i,setActiveThreadId:o,threads:c}=Jt();let d;if(t[0]!==i||t[1]!==c){let Z;t[3]!==i?(Z=X=>X.id===i,t[3]=i,t[4]=Z):Z=t[4],d=c.find(Z),t[0]=i,t[1]=c,t[2]=d}else d=t[2];const m=d,[f,u]=j.useState(!1),[x,g]=j.useTransition();let h;t[5]!==e.id?(h=Bt(e.id),t[5]=e.id,t[6]=h):h=t[6];const p=a??h;let v;t[7]!==o?(v=()=>{g(()=>{o(crypto.randomUUID())})},t[7]=o,t[8]=v):v=t[8];const N=v;if(r.length===0){let Z;t[9]!==p.title?(Z=n.jsx(ae.Header.Left,{className:"gap-2",children:n.jsx("span",{className:"text-sm font-medium",children:p.title})}),t[9]=p.title,t[10]=Z):Z=t[10];let X;t[11]!==s?(X=()=>s(!1),t[11]=s,t[12]=X):X=t[12];let de;t[13]===Symbol.for("react.memo_cache_sentinel")?(de=n.jsx(xe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[13]=de):de=t[13];let te;t[14]!==X?(te=n.jsx(ae.Header.Right,{className:"gap-1",children:n.jsx("button",{type:"button",onClick:X,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:de})}),t[14]=X,t[15]=te):te=t[15];let se;t[16]!==Z||t[17]!==te?(se=n.jsxs(ae.Header,{className:"flex-none",children:[Z,te]}),t[16]=Z,t[17]=te,t[18]=se):se=t[18];let ne;t[19]!==e?(ne=n.jsx(H.Main,{className:"flex flex-col items-center",children:n.jsx(H.EmptyState,{children:n.jsx(H.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[19]=e,t[20]=ne):ne=t[20];let me;return t[21]!==se||t[22]!==ne?(me=n.jsxs(H,{children:[se,ne]}),t[21]=se,t[22]=ne,t[23]=me):me=t[23],me}const _=f?"duration-300 opacity-0 -translate-x-4 pointer-events-none":x?"duration-200 opacity-0 pointer-events-none":"duration-300 opacity-100 translate-x-0";let S;t[24]!==_?(S=M("absolute inset-0 flex flex-col transition-all ease-in-out",_),t[24]=_,t[25]=S):S=t[25];let k;t[26]!==m||t[27]!==p||t[28]!==l?(k=n.jsx(ae.Header.Left,{className:"gap-2",children:!l&&m?.title?n.jsx(Wt,{text:m.title,className:"text-sm font-medium text-foreground"}):n.jsx("span",{className:"text-sm font-medium text-foreground",children:p.title})}),t[26]=m,t[27]=p,t[28]=l,t[29]=k):k=t[29];let y;t[30]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(Ze,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[30]=y):y=t[30];let z;t[31]!==N||t[32]!==x?(z=n.jsx("button",{type:"button",onClick:N,disabled:x,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:y}),t[31]=N,t[32]=x,t[33]=z):z=t[33];let C;t[34]===Symbol.for("react.memo_cache_sentinel")?(C=()=>u(!0),t[34]=C):C=t[34];let $;t[35]===Symbol.for("react.memo_cache_sentinel")?($=n.jsx("button",{type:"button",onClick:C,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Chat history",children:n.jsx(Ft,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[35]=$):$=t[35];let I;t[36]!==s?(I=()=>s(!1),t[36]=s,t[37]=I):I=t[37];let O;t[38]===Symbol.for("react.memo_cache_sentinel")?(O=n.jsx(xe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[38]=O):O=t[38];let T;t[39]!==I?(T=n.jsx("button",{type:"button",onClick:I,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:O}),t[39]=I,t[40]=T):T=t[40];let E;t[41]!==T||t[42]!==z?(E=n.jsxs(ae.Header.Right,{className:"gap-1",children:[z,$,T]}),t[41]=T,t[42]=z,t[43]=E):E=t[43];let L;t[44]!==E||t[45]!==k?(L=n.jsxs(ae.Header,{className:"flex-none",children:[k,E]}),t[44]=E,t[45]=k,t[46]=L):L=t[46];let A;t[47]!==p||t[48]!==l?(A=n.jsx(H.Main,{children:l?n.jsx(H.EmptyState,{children:n.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[n.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[n.jsx(Ht,{icon:p.icon,name:p.title,size:"lg",fallbackIcon:n.jsx(Ke,{size:32}),className:"size-[60px]! rounded-[18px]!"}),n.jsx("h3",{className:"text-xl font-medium text-foreground",children:p.title}),n.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:p.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),n.jsx(H.IceBreakers,{})]})}):n.jsx(H.Messages,{minHeightOffset:230})}),t[47]=p,t[48]=l,t[49]=A):A=t[49];let J;t[50]===Symbol.for("react.memo_cache_sentinel")?(J=n.jsx(H.Footer,{children:n.jsx(H.Input,{})}),t[50]=J):J=t[50];let U;t[51]!==L||t[52]!==A||t[53]!==S?(U=n.jsxs("div",{className:S,children:[L,A,J]}),t[51]=L,t[52]=A,t[53]=S,t[54]=U):U=t[54];const K=f?"opacity-100 translate-x-0":"opacity-0 translate-x-4 pointer-events-none";let F;t[55]!==K?(F=M("absolute inset-0 flex flex-col transition-all duration-300 ease-in-out",K),t[55]=K,t[56]=F):F=t[56];let B;t[57]===Symbol.for("react.memo_cache_sentinel")?(B=()=>u(!1),t[57]=B):B=t[57];let D;t[58]!==i||t[59]!==o||t[60]!==c?(D=n.jsx(Vt,{threads:c,activeThreadId:i,onThreadSelect:o,onClose:B}),t[58]=i,t[59]=o,t[60]=c,t[61]=D):D=t[61];let V;t[62]!==F||t[63]!==D?(V=n.jsx("div",{className:F,children:D}),t[62]=F,t[63]=D,t[64]=V):V=t[64];let ce;return t[65]!==U||t[66]!==V?(ce=n.jsxs(H,{className:"relative overflow-hidden",children:[U,V]}),t[65]=U,t[66]=V,t[67]=ce):ce=t[67],ce}function Ns(){const t=w.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(H.Skeleton,{}),t[0]=e):e=t[0];let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(Ge,{fallback:e,children:n.jsx(j.Suspense,{fallback:n.jsx(H.Skeleton,{}),children:n.jsx(vs,{})})}),t[1]=s):s=t[1],s}function ws(){const t=w.c(14),{locator:e,org:s}=be(),a=ie(),r=Ce(),{org:l}=Me.parse(e);let i;t[0]!==e?(i=Me.isOrgAdminProject(e),t[0]=e,t[1]=i):i=t[1];const o=i,c=_e(s.id);let d;t[2]!==c?.enabled_plugins?(d=c?.enabled_plugins??[],t[2]=c?.enabled_plugins,t[3]=d):d=t[3];const m=d;let f;t[4]!==m?(f=y=>m.includes(y.pluginId),t[4]=m,t[5]=f):f=t[5];const u=kt.filter(f),x=r.location.pathname===`/${l}`||r.location.pathname===`/${l}/`;let g;t[6]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(Qt,{}),t[6]=g):g=t[6];let h;t[7]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(st,{}),t[7]=h):h=t[7];let b;t[8]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx(Ut,{}),t[8]=b):b=t[8];let p;t[9]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(Ke,{}),t[9]=p):p=t[9];let v;t[10]===Symbol.for("react.memo_cache_sentinel")?(v=n.jsx(ht,{}),t[10]=v):v=t[10];let N;t[11]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx(et,{}),t[11]=N):N=t[11];let _;t[12]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(ut,{}),t[12]=_):_=t[12];let S;t[13]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx(Oe,{}),t[13]=S):S=t[13];const k=[{key:"home",label:"Home",icon:g,onClick:()=>{x?window.dispatchEvent(new CustomEvent("reset-home-view")):a({to:"/$org",params:{org:l}})}},{key:"store",label:"Store",icon:h,onClick:()=>a({to:"/$org/store",params:{org:l}})},...u.map(y=>({key:y.pluginId,label:y.label,icon:y.icon,onClick:()=>a({to:"/$org/$pluginId",params:{org:l,pluginId:y.pluginId}})})),{key:"mcps",label:"Connections",icon:b,onClick:()=>a({to:"/$org/mcps",params:{org:l}})},{key:"agents",label:"Agents",icon:p,onClick:()=>a({to:"/$org/agents",params:{org:l}})},{key:"workflow",label:"Workflows",icon:v,onClick:()=>a({to:"/$org/workflows",params:{org:l}})},{key:"monitoring",label:"Monitoring",icon:N,onClick:()=>a({to:"/$org/monitoring",params:{org:l}})},{key:"members",label:"Members",icon:_,onClick:()=>a({to:"/$org/members",params:{org:l}})},{key:"settings",label:"Settings",icon:S,onClick:()=>a({to:"/$org/settings",params:{org:l}})}];return o?k:[]}const Ss="sidebar_state",ys=3600*24*7,Cs="16rem",ks="18rem",_s="3rem",zs="b",pt=j.createContext(null);function ve(){const t=j.useContext(pt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function $s(t){const e=w.c(21),{defaultOpen:s,open:a,onOpenChange:r,children:l}=t,i=s===void 0?!0:s,o=oe(),[c,d]=j.useState(!1),[m,f]=j.useState(i),u=a??m;let x;e[0]!==u||e[1]!==r?(x=z=>{const C=typeof z=="function"?z(u):z;r?r(C):f(C),document.cookie=`${Ss}=${C}; path=/; max-age=${ys}`},e[0]=u,e[1]=r,e[2]=x):x=e[2];const g=x;let h;e[3]!==o||e[4]!==g?(h=()=>o?d(Os):g(Is),e[3]=o,e[4]=g,e[5]=h):h=e[5];const b=h;let p,v;e[6]!==b?(p=()=>{const z=C=>{if(C.key===zs&&(C.metaKey||C.ctrlKey)){const $=C.target;if($.tagName==="INPUT"||$.tagName==="TEXTAREA"||$.isContentEditable)return;C.preventDefault(),b()}};return globalThis.addEventListener("keydown",z),()=>globalThis.removeEventListener("keydown",z)},v=[b],e[6]=b,e[7]=p,e[8]=v):(p=e[7],v=e[8]),j.useEffect(p,v);const N=u?"expanded":"collapsed";let _;e[9]!==o||e[10]!==u||e[11]!==c||e[12]!==g||e[13]!==N||e[14]!==b?(_={state:N,open:u,setOpen:g,isMobile:o,openMobile:c,setOpenMobile:d,toggleSidebar:b},e[9]=o,e[10]=u,e[11]=c,e[12]=g,e[13]=N,e[14]=b,e[15]=_):_=e[15];const S=_;let k;e[16]!==l?(k=n.jsx(Fe,{delayDuration:0,children:l}),e[16]=l,e[17]=k):k=e[17];let y;return e[18]!==S||e[19]!==k?(y=n.jsx(pt.Provider,{value:S,children:k}),e[18]=S,e[19]=k,e[20]=y):y=e[20],y}function Is(t){return!t}function Os(t){return!t}function Ts(t){const e=w.c(14);let s,a,r,l;e[0]!==t?({className:a,style:l,children:s,...r}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=r,e[4]=l):(s=e[1],a=e[2],r=e[3],l=e[4]);let i;e[5]!==l?(i={"--sidebar-width":Cs,"--sidebar-width-icon":_s,...l},e[5]=l,e[6]=i):i=e[6];const o=i;let c;e[7]!==a?(c=M("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",a),e[7]=a,e[8]=c):c=e[8];let d;return e[9]!==s||e[10]!==r||e[11]!==o||e[12]!==c?(d=n.jsx("div",{"data-slot":"sidebar-wrapper",style:o,className:c,...r,children:s}),e[9]=s,e[10]=r,e[11]=o,e[12]=c,e[13]=d):d=e[13],d}function Ms(t){const e=w.c(46);let s,a,r,l,i,o;e[0]!==t?({side:l,variant:i,collapsible:o,className:a,children:s,...r}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=r,e[4]=l,e[5]=i,e[6]=o):(s=e[1],a=e[2],r=e[3],l=e[4],i=e[5],o=e[6]);const c=l===void 0?"left":l,d=i===void 0?"sidebar":i,m=o===void 0?"offcanvas":o,{isMobile:f,state:u,openMobile:x,setOpenMobile:g}=ve();if(m==="none"){let C;e[7]!==a?(C=M("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",a),e[7]=a,e[8]=C):C=e[8];let $;return e[9]!==s||e[10]!==r||e[11]!==C?($=n.jsx("div",{"data-slot":"sidebar",className:C,...r,children:s}),e[9]=s,e[10]=r,e[11]=C,e[12]=$):$=e[12],$}if(f){let C;e[13]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":ks},e[13]=C):C=e[13];let $;e[14]===Symbol.for("react.memo_cache_sentinel")?($=n.jsxs(Kt,{className:"sr-only",children:[n.jsx(Gt,{children:"Sidebar"}),n.jsx(Yt,{children:"Displays the mobile sidebar."})]}),e[14]=$):$=e[14];let I;e[15]!==s?(I=n.jsx("div",{className:"flex h-full w-full flex-col",children:s}),e[15]=s,e[16]=I):I=e[16];let O;e[17]!==c||e[18]!==I?(O=n.jsxs(qt,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:c,children:[$,I]}),e[17]=c,e[18]=I,e[19]=O):O=e[19];let T;return e[20]!==x||e[21]!==r||e[22]!==g||e[23]!==O?(T=n.jsx(Zt,{open:x,onOpenChange:g,...r,children:O}),e[20]=x,e[21]=r,e[22]=g,e[23]=O,e[24]=T):T=e[24],T}const h=u==="collapsed"?m:"",b=d==="floating"||d==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let p;e[25]!==b?(p=M("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",b),e[25]=b,e[26]=p):p=e[26];let v;e[27]!==p?(v=n.jsx("div",{"data-slot":"sidebar-gap",className:p}),e[27]=p,e[28]=v):v=e[28];const N=c==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",_=d==="floating"||d==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)";let S;e[29]!==a||e[30]!==N||e[31]!==_?(S=M("fixed top-12 bottom-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",N,_,a),e[29]=a,e[30]=N,e[31]=_,e[32]=S):S=e[32];let k;e[33]!==s?(k=n.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border py-2 flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:s}),e[33]=s,e[34]=k):k=e[34];let y;e[35]!==r||e[36]!==S||e[37]!==k?(y=n.jsx("div",{"data-slot":"sidebar-container",className:S,...r,children:k}),e[35]=r,e[36]=S,e[37]=k,e[38]=y):y=e[38];let z;return e[39]!==c||e[40]!==u||e[41]!==y||e[42]!==h||e[43]!==v||e[44]!==d?(z=n.jsxs("div",{className:"group peer text-foreground hidden md:block border-r","data-state":u,"data-collapsible":h,"data-variant":d,"data-side":c,"data-slot":"sidebar",children:[v,y]}),e[39]=c,e[40]=u,e[41]=y,e[42]=h,e[43]=v,e[44]=d,e[45]=z):z=e[45],z}function Es(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("main",{"data-slot":"sidebar-inset",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function xt(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("flex flex-col gap-2 p-2",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Ls(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("flex flex-col gap-2 px-2 items-start justify-start",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function As(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("h-4 m-0! w-full",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-sidebar":"separator",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Ps(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Ds(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Rs(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("w-full text-sm",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Ne(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("flex w-full min-w-0 flex-col gap-1",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function ee(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("group/menu-item relative",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}const Hs=zt("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg px-2 py-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding,colors] transition-colors duration-150 ease-out hover:transition-none focus-visible:ring-2 active:bg-sidebar-accent/75 disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent/75 [&>span:last-child]:truncate [&>svg]:size-[18px] [&>svg]:shrink-0 [&>svg]:text-muted-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent text-sidebar-foreground/80 active:text-sidebar-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-7 text-sm font-[450]",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Te(t){const e=w.c(28);let s,a,r,l,i,o,c;e[0]!==t?({asChild:r,isActive:l,variant:i,size:o,tooltip:c,className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=r,e[4]=l,e[5]=i,e[6]=o,e[7]=c):(s=e[1],a=e[2],r=e[3],l=e[4],i=e[5],o=e[6],c=e[7]);const d=r===void 0?!1:r,m=l===void 0?!1:l,f=i===void 0?"default":i,u=o===void 0?"default":o,x=d?_t:"button",{isMobile:g,state:h}=ve();let b;e[8]!==s||e[9]!==u||e[10]!==f?(b=M(Hs({variant:f,size:u}),s),e[8]=s,e[9]=u,e[10]=f,e[11]=b):b=e[11];let p;e[12]!==x||e[13]!==m||e[14]!==a||e[15]!==u||e[16]!==b?(p=n.jsx(x,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":u,"data-active":m,className:b,...a}),e[12]=x,e[13]=m,e[14]=a,e[15]=u,e[16]=b,e[17]=p):p=e[17];const v=p;if(!c)return v;if(typeof c=="string"){let y;e[18]!==c?(y={children:c},e[18]=c,e[19]=y):y=e[19],c=y}let N;e[20]!==v?(N=n.jsx(he,{asChild:!0,children:v}),e[20]=v,e[21]=N):N=e[21];const _=h!=="collapsed"||g;let S;e[22]!==_||e[23]!==c?(S=n.jsx(ue,{side:"right",align:"center",hidden:_,...c}),e[22]=_,e[23]=c,e[24]=S):S=e[24];let k;return e[25]!==N||e[26]!==S?(k=n.jsxs(pe,{children:[N,S]}),e[25]=N,e[26]=S,e[27]=k):k=e[27],k}function gt(t){const e=w.c(11),{navigationItems:s,header:a,footer:r,additionalContent:l,variant:i,collapsible:o}=t,c=i===void 0?"sidebar":i,d=o===void 0?"icon":o;let m;e[0]!==s?(m=s.map(Us),e[0]=s,e[1]=m):m=e[1];let f;e[2]!==l||e[3]!==m?(f=n.jsx(Ps,{className:"flex-1 overflow-x-hidden",children:n.jsx(Ds,{className:"font-medium",children:n.jsx(Rs,{children:n.jsxs(Ne,{className:"gap-0.5",children:[m,l]})})})}),e[2]=l,e[3]=m,e[4]=f):f=e[4];let u;return e[5]!==d||e[6]!==r||e[7]!==a||e[8]!==f||e[9]!==c?(u=n.jsxs(Ms,{variant:c,collapsible:d,children:[a,f,r]}),e[5]=d,e[6]=r,e[7]=a,e[8]=f,e[9]=c,e[10]=u):u=e[10],u}function Us(t){return n.jsx(ee,{children:n.jsxs(Te,{className:"group/nav-item cursor-pointer text-foreground/90 hover:text-foreground",onClick:t.onClick,isActive:t.isActive,tooltip:t.label,children:[n.jsx("span",{className:"text-muted-foreground group-hover/nav-item:text-foreground transition-colors [&>svg]:size-4",children:t.icon}),n.jsx("span",{className:"truncate",children:t.label})]})},t.key)}gt.Skeleton=function(){return n.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,s)=>n.jsx("div",{className:"w-full h-8",children:n.jsx(Q,{className:"h-full bg-sidebar-accent rounded-md"})},s))})};function bt(t){const e=w.c(48),{open:s,onOpenChange:a,user:r,userImage:l}=t,[i,o]=Rt(),[c,d]=j.useState(!1);let m;e[0]!==r.id?(m=()=>{navigator.clipboard.writeText(r.id),d(!0),setTimeout(()=>d(!1),2e3)},e[0]=r.id,e[1]=m):m=e[1];const f=m;let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(ss,{className:"text-base",children:"Profile Settings"}),e[2]=u):u=e[2];let x;e[3]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsxs(ns,{className:"px-6 pt-6 pb-4 border-b border-border shrink-0 relative",children:[u,n.jsxs(as,{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:[n.jsx(xe,{size:16}),n.jsx("span",{className:"sr-only",children:"Close"})]})]}),e[3]=x):x=e[3];const g=r.name||"U";let h;e[4]!==g||e[5]!==l?(h=n.jsx(q,{url:l,fallback:g,shape:"circle",size:"xl",className:"h-16 w-16"}),e[4]=g,e[5]=l,e[6]=h):h=e[6];const b=r.name||"User";let p;e[7]!==b?(p=n.jsx("span",{className:"text-base font-medium text-foreground",children:b}),e[7]=b,e[8]=p):p=e[8];let v;e[9]!==r.email?(v=n.jsx("span",{className:"text-sm text-muted-foreground",children:r.email}),e[9]=r.email,e[10]=v):v=e[10];let N;e[11]!==p||e[12]!==v?(N=n.jsxs("div",{className:"flex flex-col gap-1",children:[p,v]}),e[11]=p,e[12]=v,e[13]=N):N=e[13];let _;e[14]!==h||e[15]!==N?(_=n.jsxs("div",{className:"flex items-center gap-4",children:[h,N]}),e[14]=h,e[15]=N,e[16]=_):_=e[16];let S;e[17]!==i||e[18]!==o?(S=()=>o(!i),e[17]=i,e[18]=o,e[19]=S):S=e[19];let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=n.jsxs("div",{className:"flex flex-col gap-1 flex-1 min-w-0",children:[n.jsxs(is,{className:"text-sm font-medium text-foreground flex items-center gap-2 pointer-events-none",children:[n.jsx(cs,{size:16,className:"text-muted-foreground"}),"Developer Mode"]}),n.jsx("p",{className:"text-xs text-muted-foreground pointer-events-none",children:"Show technical details like JSON input/output for tool calls"})]}),e[20]=k):k=e[20];let y;e[21]!==i||e[22]!==o?(y=n.jsx("div",{onClick:Bs,children:n.jsx(os,{checked:i,onCheckedChange:o})}),e[21]=i,e[22]=o,e[23]=y):y=e[23];let z;e[24]!==S||e[25]!==y?(z=n.jsxs("button",{type:"button",onClick:S,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:[k,y]}),e[24]=S,e[25]=y,e[26]=z):z=e[26];let C;e[27]!==_||e[28]!==z?(C=n.jsxs("div",{className:"p-5 space-y-6 min-h-[225px]",children:[_,z]}),e[27]=_,e[28]=z,e[29]=C):C=e[29];let $;e[30]!==r.id?($=n.jsx("span",{className:"font-mono text-xs",children:r.id}),e[30]=r.id,e[31]=$):$=e[31];let I;e[32]!==c?(I=c?n.jsx(ge,{size:14,className:"text-green-600"}):n.jsx(Ye,{size:14,className:"opacity-0 group-hover:opacity-100 transition-opacity"}),e[32]=c,e[33]=I):I=e[33];let O;e[34]!==f||e[35]!==$||e[36]!==I?(O=n.jsx(he,{asChild:!0,children:n.jsxs("button",{type:"button",onClick:f,className:"group flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[$,I]})}),e[34]=f,e[35]=$,e[36]=I,e[37]=O):O=e[37];let T;e[38]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsx(ue,{side:"top",children:n.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[38]=T):T=e[38];let E;e[39]!==O?(E=n.jsx("div",{className:"border-t border-border px-5 py-4 flex items-center shrink-0",children:n.jsx(Fe,{children:n.jsxs(pe,{children:[O,T]})})}),e[39]=O,e[40]=E):E=e[40];let L;e[41]!==C||e[42]!==E?(L=n.jsxs(rs,{className:"sm:max-w-lg sm:max-h-[85vh] p-0 flex flex-col",closeButtonClassName:"hidden",children:[x,n.jsxs("div",{className:"flex flex-col",children:[C,E]})]}),e[41]=C,e[42]=E,e[43]=L):L=e[43];let A;return e[44]!==a||e[45]!==s||e[46]!==L?(A=n.jsx(ls,{open:s,onOpenChange:a,children:L}),e[44]=a,e[45]=s,e[46]=L,e[47]=A):A=e[47],A}function Bs(t){return t.stopPropagation()}const Ws="w-full h-8 justify-start gap-2 px-2 text-sm font-[450] text-sidebar-foreground hover:text-sidebar-foreground hover:bg-sidebar-accent active:bg-sidebar-accent/75 [&>svg]:size-[18px] [&>svg]:text-muted-foreground hover:[&>svg]:text-sidebar-foreground";function re(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M(Ws,s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx(P,{variant:"ghost",size:"sm",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function Fs(t){const e=w.c(38),{user:s,userImage:a,onSettingsOpenChange:r}=t,[l,i]=j.useState(!1);let o;e[0]!==s?(o=async()=>{if(!s)return;const O=`ID: ${s.id}
|
|
2
|
-
Name: ${s.name||"N/A"}
|
|
3
|
-
Email: ${s.email}`;try{await navigator.clipboard.writeText(O),G.success("User info copied to clipboard")}catch{G.error("Failed to copy user info to clipboard")}},e[0]=s,e[1]=o):o=e[1];const c=o,d=s.name||s.email||"U";let m;e[2]!==d||e[3]!==a?(m=n.jsx(q,{url:a,fallback:d,shape:"circle",size:"sm",className:"size-8 shrink-0"}),e[2]=d,e[3]=a,e[4]=m):m=e[4];const f=s.name||"User";let u;e[5]!==f?(u=n.jsx("span",{className:"text-sm text-sidebar-foreground truncate font-[450]",children:f}),e[5]=f,e[6]=u):u=e[6];let x;e[7]!==s.email?(x=n.jsx("span",{className:"text-xs text-muted-foreground truncate font-normal",children:s.email}),e[7]=s.email,e[8]=x):x=e[8];let g;e[9]!==u||e[10]!==x?(g=n.jsxs("div",{className:"flex flex-col min-w-0 text-left",children:[u,x]}),e[9]=u,e[10]=x,e[11]=g):g=e[11];let h;e[12]!==c||e[13]!==m||e[14]!==g?(h=n.jsxs(P,{variant:"ghost",onClick:c,className:"h-auto p-2 m-1 mb-0 justify-start gap-2 hover:bg-sidebar-accent hover:text-inherit active:bg-sidebar-accent/75",children:[m,g]}),e[12]=c,e[13]=m,e[14]=g,e[15]=h):h=e[15];let b;e[16]!==r?(b=()=>{r(!1),i(!0)},e[16]=r,e[17]=b):b=e[17];let p;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(ft,{size:18}),e[18]=p):p=e[18];let v;e[19]!==b?(v=n.jsxs(re,{onClick:b,children:[p,"Profile"]}),e[19]=b,e[20]=v):v=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsxs(re,{children:[n.jsx(ds,{size:18}),"Security & Access"]}),e[21]=N):N=e[21];let _;e[22]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsxs(re,{children:[n.jsx(mt,{size:18}),"Preferences"]}),e[22]=_):_=e[22];let S;e[23]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx(re,{asChild:!0,children:n.jsxs("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",children:[n.jsx(tt,{size:18}),n.jsx("span",{className:"flex-1",children:"Terms & Conditions"}),n.jsx(we,{size:14})]})}),e[23]=S):S=e[23];let k;e[24]===Symbol.for("react.memo_cache_sentinel")?(k=n.jsx(re,{asChild:!0,children:n.jsxs("a",{href:"https://github.com/decocms/mesh",target:"_blank",rel:"noopener noreferrer",children:[n.jsx(He,{className:"size-[18px]"}),n.jsx("span",{className:"flex-1",children:"decocms/mesh"}),n.jsx(we,{size:14})]})}),e[24]=k):k=e[24];let y;e[25]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsxs(re,{onClick:Vs,children:[n.jsx(ot,{size:18}),"Log out"]}),e[25]=y):y=e[25];let z;e[26]!==v?(z=n.jsxs("div",{className:"p-1 flex flex-col",children:[v,N,_,S,k,y]}),e[26]=v,e[27]=z):z=e[27];let C;e[28]!==z||e[29]!==h?(C=n.jsxs("div",{className:"flex flex-col gap-0.5 bg-sidebar min-w-[250px]",children:[h,z]}),e[28]=z,e[29]=h,e[30]=C):C=e[30];let $;e[31]!==l||e[32]!==s||e[33]!==a?($=s&&l&&s.email&&n.jsx(bt,{open:l,onOpenChange:i,user:{...s,name:s.name??void 0,email:s.email},userImage:a}),e[31]=l,e[32]=s,e[33]=a,e[34]=$):$=e[34];let I;return e[35]!==C||e[36]!==$?(I=n.jsxs(n.Fragment,{children:[C,$]}),e[35]=C,e[36]=$,e[37]=I):I=e[37],I}function Vs(){return W.signOut()}function Zs(t){const e=w.c(22),{org:s,isActive:a,onClick:r,onSettings:l}=t,[i,o]=j.useState(!1),c=a||i,d=a&&"bg-accent hover:bg-accent";let m;e[0]!==d?(m=M("flex items-center gap-2 w-full justify-start font-normal h-10 px-2 rounded-lg cursor-pointer transition-colors hover:bg-accent/50",d),e[0]=d,e[1]=m):m=e[1];let f;e[2]!==r?(f=N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),r?.())},e[2]=r,e[3]=f):f=e[3];let u,x;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=()=>o(!0),x=()=>o(!1),e[4]=u,e[5]=x):(u=e[4],x=e[5]);const g=s.logo??void 0;let h;e[6]!==s.name||e[7]!==g?(h=n.jsx(q,{url:g,fallback:s.name,size:"sm",className:"size-6 shrink-0 rounded-md",objectFit:"cover"}),e[6]=s.name,e[7]=g,e[8]=h):h=e[8];let b;e[9]!==s.name?(b=n.jsx("span",{className:"flex-1 text-sm text-foreground truncate text-left min-w-0",children:s.name}),e[9]=s.name,e[10]=b):b=e[10];let p;e[11]!==l||e[12]!==s.name||e[13]!==c?(p=l&&c?n.jsx("button",{type:"button","aria-label":`${s.name} settings`,className:"size-5 shrink-0 flex items-center justify-center rounded-md transition-colors hover:bg-foreground/10",onClick:N=>{N.stopPropagation(),l()},children:n.jsx(dt,{size:16,className:"text-muted-foreground"})}):n.jsx("span",{className:"size-5 shrink-0","aria-hidden":"true"}),e[11]=l,e[12]=s.name,e[13]=c,e[14]=p):p=e[14];let v;return e[15]!==r||e[16]!==m||e[17]!==f||e[18]!==h||e[19]!==b||e[20]!==p?(v=n.jsxs("div",{role:"button",tabIndex:0,className:m,onClick:r,onKeyDown:f,onMouseEnter:u,onMouseLeave:x,children:[h,b,p]}),e[15]=r,e[16]=m,e[17]=f,e[18]=h,e[19]=b,e[20]=p,e[21]=v):v=e[21],v}function Ks(t){const e=w.c(33),{currentOrgSlug:s,onOrgSelect:a,onOrgSettings:r,onPopoverClose:l}=t,{data:i}=W.useListOrganizations(),[o,c]=j.useState(!1);let d,m,f,u;if(e[0]!==s||e[1]!==a||e[2]!==r||e[3]!==l||e[4]!==i){let p;e[9]!==s?(p=(y,z)=>y.slug===s?-1:z.slug===s?1:y.name.localeCompare(z.name),e[9]=s,e[10]=p):p=e[10];const v=[...i??[]].sort(p);f="flex flex-col min-w-[275px] border-l border-border";let N;e[11]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx("span",{className:"text-xs text-muted-foreground truncate",children:"Your Organizations"}),e[11]=N):N=e[11];let _;e[12]!==l?(_=()=>{l(),c(!0)},e[12]=l,e[13]=_):_=e[13];let S;e[14]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx(Ze,{size:16,className:"text-muted-foreground"}),e[14]=S):S=e[14],e[15]!==_?(u=n.jsxs("div",{className:"flex items-center justify-between h-10 px-3 border-b border-border",children:[N,n.jsx(P,{variant:"ghost",size:"icon",className:"size-5",onClick:_,children:S})]}),e[15]=_,e[16]=u):u=e[16],d="flex flex-col gap-0.5 p-1 flex-1 overflow-y-auto";let k;e[17]!==s||e[18]!==a||e[19]!==r?(k=y=>n.jsx(Zs,{org:y,isActive:y.slug===s,onClick:()=>a(y.slug),onSettings:()=>r(y.slug)},y.slug),e[17]=s,e[18]=a,e[19]=r,e[20]=k):k=e[20],m=v.map(k),e[0]=s,e[1]=a,e[2]=r,e[3]=l,e[4]=i,e[5]=d,e[6]=m,e[7]=f,e[8]=u}else d=e[5],m=e[6],f=e[7],u=e[8];let x;e[21]!==d||e[22]!==m?(x=n.jsx("div",{className:d,children:m}),e[21]=d,e[22]=m,e[23]=x):x=e[23];let g;e[24]!==f||e[25]!==u||e[26]!==x?(g=n.jsxs("div",{className:f,children:[u,x]}),e[24]=f,e[25]=u,e[26]=x,e[27]=g):g=e[27];let h;e[28]!==o?(h=n.jsx(qe,{open:o,onOpenChange:c}),e[28]=o,e[29]=h):h=e[29];let b;return e[30]!==g||e[31]!==h?(b=n.jsxs(n.Fragment,{children:[g,h]}),e[30]=g,e[31]=h,e[32]=b):b=e[32],b}function jt(t){const e=w.c(36),{isCollapsed:s}=t,a=s===void 0?!1:s;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const{org:l}=ke(r),{data:i}=W.useListOrganizations(),{data:o}=W.useSession(),c=ie();let d;e[1]!==l||e[2]!==i?(d=i?.find(A=>A.slug===l),e[1]=l,e[2]=i,e[3]=d):d=e[3];const m=d,[f,u]=j.useState(!1),x=o?.user,g=x?.image;let h;e[4]!==c?(h=A=>{u(!1),c({to:"/$org/settings",params:{org:A}})},e[4]=c,e[5]=h):h=e[5];const b=h;let p;e[6]!==c?(p=A=>{u(!1),c({to:"/$org",params:{org:A}})},e[6]=c,e[7]=p):p=e[7];const v=p,N=a?"justify-center":"justify-start",_=a?"":"pl-0.5! px-1.5 gap-1.5";let S;e[8]!==N||e[9]!==_?(S=M("h-7 min-w-0 max-w-full hover:bg-sidebar-accent",N,_),e[8]=N,e[9]=_,e[10]=S):S=e[10];const k=m?.logo??"",y=m?.name??"";let z;e[11]!==y||e[12]!==k?(z=n.jsx(q,{url:k,fallback:y,size:"xs",className:"shrink-0 rounded-[5px]",objectFit:"cover"}),e[11]=y,e[12]=k,e[13]=z):z=e[13];let C;e[14]!==m?.name||e[15]!==a?(C=!a&&n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"truncate text-[14px] tracking-[-0.00625rem] font-medium text-foreground text-left",children:m?.name??"Select org"}),n.jsx(ts,{className:"size-3.5 text-muted-foreground shrink-0"})]}),e[14]=m?.name,e[15]=a,e[16]=C):C=e[16];let $;e[17]!==z||e[18]!==C||e[19]!==S?($=n.jsx(ze,{asChild:!0,children:n.jsxs(P,{variant:"ghost",size:"sm",className:S,children:[z,C]})}),e[17]=z,e[18]=C,e[19]=S,e[20]=$):$=e[20];let I;e[21]!==x||e[22]!==g?(I=x&&n.jsx(Fs,{user:x,userImage:g,onSettingsOpenChange:()=>u(!1)}),e[21]=x,e[22]=g,e[23]=I):I=e[23];let O;e[24]===Symbol.for("react.memo_cache_sentinel")?(O=()=>u(!1),e[24]=O):O=e[24];let T;e[25]!==b||e[26]!==v||e[27]!==l?(T=n.jsx(Ks,{currentOrgSlug:l,onOrgSelect:v,onOrgSettings:b,onPopoverClose:O}),e[25]=b,e[26]=v,e[27]=l,e[28]=T):T=e[28];let E;e[29]!==I||e[30]!==T?(E=n.jsxs($e,{align:"start",side:"bottom",className:"p-0 flex w-auto h-88 overflow-hidden",children:[I,T]}),e[29]=I,e[30]=T,e[31]=E):E=e[31];let L;return e[32]!==f||e[33]!==$||e[34]!==E?(L=n.jsx(n.Fragment,{children:n.jsxs(Ie,{open:f,onOpenChange:u,children:[$,E]})}),e[32]=f,e[33]=$,e[34]=E,e[35]=L):L=e[35],L}jt.Skeleton=function(){return n.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[n.jsx(Q,{className:"size-5 rounded-[5px] shrink-0"}),n.jsx(Q,{className:"h-3.5 flex-1"})]})};function Se(){const t=w.c(45),{state:e,toggleSidebar:s}=ve(),a=e==="collapsed",[r,l]=je();let i;t[0]!==l?(i=()=>{l(Gs)},t[0]=l,t[1]=i):i=t[1];const o=i,c=a&&"group-hover/account-switcher:opacity-0 group-hover/account-switcher:pointer-events-none transition-opacity";let d;t[2]!==c?(d=M("w-full min-w-0",c),t[2]=c,t[3]=d):d=t[3];let m;t[4]!==a?(m=n.jsx(jt,{isCollapsed:a}),t[4]=a,t[5]=m):m=t[5];let f;t[6]!==d||t[7]!==m?(f=n.jsx("div",{className:d,children:m}),t[6]=d,t[7]=m,t[8]=f):f=t[8];const u=a?"opacity-0 group-hover/account-switcher:opacity-100 pointer-events-none group-hover/account-switcher:pointer-events-auto":"opacity-0 pointer-events-none";let x;t[9]!==u?(x=M("absolute inset-0 m-auto size-7 hover:bg-sidebar-accent transition-opacity",u),t[9]=u,t[10]=x):x=t[10];const g=!a;let h;t[11]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx(at,{className:"size-4 text-muted-foreground shrink-0"}),t[11]=h):h=t[11];let b;t[12]!==x||t[13]!==g||t[14]!==s?(b=n.jsx(P,{variant:"ghost",size:"icon",className:x,onClick:s,"aria-label":"Expand sidebar",disabled:g,children:h}),t[12]=x,t[13]=g,t[14]=s,t[15]=b):b=t[15];let p;t[16]!==f||t[17]!==b?(p=n.jsxs("div",{className:"group/account-switcher relative flex items-center justify-center gap-1.5 min-w-0 flex-1 overflow-hidden",children:[f,b]}),t[16]=f,t[17]=b,t[18]=p):p=t[18];const v=a&&"hidden";let N;t[19]!==v?(N=M("flex items-center gap-0.5 shrink-0",v),t[19]=v,t[20]=N):N=t[20];let _;t[21]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(nt,{className:"size-4 text-muted-foreground"}),t[21]=_):_=t[21];let S;t[22]!==a||t[23]!==s?(S=n.jsx(he,{asChild:!0,children:n.jsx(P,{variant:"ghost",size:"icon",className:"size-7 hover:bg-sidebar-accent",onClick:s,"aria-label":"Collapse sidebar",disabled:a,children:_})}),t[22]=a,t[23]=s,t[24]=S):S=t[24];let k;t[25]===Symbol.for("react.memo_cache_sentinel")?(k=n.jsx(ue,{side:"bottom",children:"Collapse sidebar"}),t[25]=k):k=t[25];let y;t[26]!==S?(y=n.jsxs(pe,{children:[S,k]}),t[26]=S,t[27]=y):y=t[27];const z=r&&"bg-sidebar-accent";let C;t[28]!==z?(C=M("size-7 hover:bg-sidebar-accent",z),t[28]=z,t[29]=C):C=t[29];let $;t[30]===Symbol.for("react.memo_cache_sentinel")?($=n.jsx(Ve,{size:11,className:"text-muted-foreground"}),t[30]=$):$=t[30];let I;t[31]!==a||t[32]!==C||t[33]!==o?(I=n.jsx(he,{asChild:!0,children:n.jsx(P,{variant:"ghost",size:"icon",className:C,onClick:o,"aria-label":"Toggle Decopilot",disabled:a,children:$})}),t[31]=a,t[32]=C,t[33]=o,t[34]=I):I=t[34];let O;t[35]===Symbol.for("react.memo_cache_sentinel")?(O=n.jsx(ue,{side:"bottom",children:"Toggle Decopilot"}),t[35]=O):O=t[35];let T;t[36]!==I?(T=n.jsxs(pe,{children:[I,O]}),t[36]=I,t[37]=T):T=t[37];let E;t[38]!==N||t[39]!==y||t[40]!==T?(E=n.jsxs("div",{className:N,children:[y,T]}),t[38]=N,t[39]=y,t[40]=T,t[41]=E):E=t[41];let L;return t[42]!==p||t[43]!==E?(L=n.jsx(xt,{className:"h-12 gap-0 pt-0",children:n.jsx(Ne,{children:n.jsx(ee,{children:n.jsxs("div",{className:"flex items-center justify-between w-full h-12",children:[p,E]})})})}),t[42]=p,t[43]=E,t[44]=L):L=t[44],L}function Gs(t){return!t}Se.Skeleton=function(){return n.jsx(xt,{className:"h-12 gap-0 pt-0",children:n.jsx(Ne,{children:n.jsx(ee,{children:n.jsxs("div",{className:"flex items-center justify-between w-full h-12",children:[n.jsxs("div",{className:"flex items-center gap-1.5 min-w-0 flex-1 px-1.5",children:[n.jsx(Q,{className:"size-5 rounded-[5px] shrink-0"}),n.jsx(Q,{className:"h-3.5 w-16"})]}),n.jsxs("div",{className:"flex items-center gap-0.5",children:[n.jsx(Q,{className:"size-7 rounded-lg"}),n.jsx(Q,{className:"size-7 rounded-lg"})]})]})})})})};function Ys({invitation:t,onStatusChange:e}){const[s,a]=j.useState(!1),[r,l]=j.useState(!1),i=ie(),o=async()=>{a(!0);try{const x=await W.organization.acceptInvitation({invitationId:t.id});if(x.error)G.error(x.error.message),a(!1);else{e(t.id,"accepted");const g=await W.organization.setActive({organizationId:t.organizationId});g?.data?.slug?(G.success("Invitation accepted!"),i({to:"/$org",params:{org:g.data.slug}})):(G.success("Invitation accepted! Redirecting..."),i({to:"/"}))}}catch{G.error("Failed to accept invitation"),a(!1)}},c=async()=>{l(!0);try{const x=await W.organization.rejectInvitation({invitationId:t.id});x.error?(G.error(x.error.message),l(!1)):(G.success("Invitation rejected"),e(t.id,"rejected"),l(!1))}catch{G.error("Failed to reject invitation"),l(!1)}},d=t.organizationName||t.organizationId,m=t.status==="pending",f=t.status==="accepted",u=t.status==="rejected";return n.jsxs("div",{className:M("flex items-center gap-3 px-3 py-2 h-12 border-b border-border/50 last:border-b-0",!m&&"opacity-50"),children:[n.jsx("div",{className:"shrink-0 size-5 flex items-center justify-center",children:n.jsx(ct,{size:16,className:"text-muted-foreground"})}),n.jsxs("p",{className:"flex-1 text-sm text-foreground min-w-0 whitespace-nowrap overflow-hidden",children:["You have been invited to ",n.jsx("span",{className:"font-semibold inline-block max-w-[200px] truncate align-bottom",children:d})]}),n.jsx("div",{className:"flex items-center gap-1 shrink-0",children:m?n.jsxs(n.Fragment,{children:[n.jsx(P,{variant:"ghost",size:"icon",onClick:c,disabled:s||r,className:"h-8 w-8",children:n.jsx(Ae,{size:14})}),n.jsx(P,{variant:"outline",size:"icon",onClick:o,disabled:s||r,className:"h-8 w-8",children:n.jsx(ge,{size:14})})]}):f?n.jsxs(Le,{variant:"outline",className:"h-6 px-2 text-xs",children:[n.jsx(ge,{size:12}),"Accepted"]}):u?n.jsxs(Le,{variant:"outline",className:"h-6 px-2 text-xs",children:[n.jsx(Ae,{size:12}),"Declined"]}):null})]})}function qs(){const[t,e]=j.useState(!1),s=j.useContext($t),{data:a}=s.hooks.useListUserInvitations(),{data:r}=W.useListOrganizations(),[l,i]=j.useState({}),m=(a??[]).filter(h=>new Date(h.expiresAt)>new Date).map(h=>{const b=(r??[]).find(p=>p.id===h.organizationId);return{...h,organizationSlug:b?.slug||h.organizationSlug,organizationName:b?.name||h.organizationName}}).map(h=>({...h,status:l[h.id]||h.status})),f=[...m].sort((h,b)=>{const p={pending:0,accepted:1,rejected:2};return(p[h.status]??999)-(p[b.status]??999)}),x=m.filter(h=>h.status==="pending").length>0,g=(h,b)=>{i(p=>({...p,[h]:b}))};return n.jsx(Ls,{className:"border-t border-border pt-2",children:n.jsx(Ne,{children:n.jsx(ee,{children:n.jsxs(Ie,{open:t,onOpenChange:e,children:[n.jsx(ze,{asChild:!0,children:n.jsxs(Te,{className:"group/nav-item cursor-pointer text-foreground/90 hover:text-foreground relative",tooltip:"Inbox",children:[n.jsx("span",{className:"text-muted-foreground group-hover/nav-item:text-foreground transition-colors [&>svg]:size-4",children:n.jsx(Ee,{})}),n.jsx("span",{className:"truncate",children:"Inbox"}),x&&n.jsx("span",{className:"absolute top-1 right-1 h-2 w-2 rounded-full bg-destructive"})]})}),n.jsxs($e,{align:"end",className:"w-[480px] p-0 overflow-hidden",children:[n.jsx("div",{className:"px-4 py-3 border-b border-border",children:n.jsx("h3",{className:"text-sm font-semibold text-foreground",children:"Inbox"})}),n.jsx("div",{className:"max-h-96 overflow-auto",children:f.length>0?f.map(h=>n.jsx(Ys,{invitation:h,onStatusChange:g},h.id)):n.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[n.jsx(Ee,{size:32,className:"text-muted-foreground/40 mb-2"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"No invitations at the moment"})]})})]})]})})})})}function vt(t){const e=w.c(4),{children:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(As,{className:"my-2 -ml-1"}),e[0]=a):a=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(ee,{children:n.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:n.jsx("span",{className:"whitespace-nowrap",children:"Pinned Views"})})}),e[1]=r):r=e[1];let l;return e[2]!==s?(l=n.jsxs(n.Fragment,{children:[a,r,s]}),e[2]=s,e[3]=l):l=e[3],l}function Js(t){const e=w.c(26),{item:s}=t,a=ie(),{org:r}=be(),l=_e(r.id),i=es(r.id);let o;e[0]!==i.update||e[1]!==s.url||e[2]!==l?.sidebar_items?(o=async()=>{const _=(l?.sidebar_items||[]).filter(S=>S.url!==s.url);await i.update.mutateAsync({sidebar_items:_})},e[0]=i.update,e[1]=s.url,e[2]=l?.sidebar_items,e[3]=o):o=e[3];const c=o;let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=/^https?:\/\/.+/,e[4]=d):d=e[4];let m;e[5]!==s.icon?(m=d.test(s.icon),e[5]=s.icon,e[6]=m):m=e[6];const f=m;let u;e[7]!==s.url||e[8]!==a?(u=()=>{a({to:s.url})},e[7]=s.url,e[8]=a,e[9]=u):u=e[9];const x=s.title;let g;e[10]!==f||e[11]!==s.icon||e[12]!==s.title?(g=n.jsx("div",{className:"flex items-center justify-center shrink-0",children:f?n.jsx("img",{src:s.icon,alt:s.title,className:"h-4 w-4 rounded object-cover"}):n.jsx(ms,{size:16,className:"text-muted-foreground group-hover/item:text-foreground transition-colors"})}),e[10]=f,e[11]=s.icon,e[12]=s.title,e[13]=g):g=e[13];let h;e[14]!==s.title?(h=s.title.toLocaleLowerCase(),e[14]=s.title,e[15]=h):h=e[15];let b;e[16]!==h?(b=n.jsx("div",{className:"flex-1 min-w-0 flex flex-col items-start",children:n.jsx("span",{className:"truncate text-sm w-full capitalize",children:h})}),e[16]=h,e[17]=b):b=e[17];let p;e[18]!==c?(p=n.jsx(xe,{size:16,className:"text-muted-foreground opacity-0 group-hover/item:opacity-50 hover:opacity-100 cursor-pointer",onClick:N=>{N.preventDefault(),N.stopPropagation(),c()}}),e[18]=c,e[19]=p):p=e[19];let v;return e[20]!==s.title||e[21]!==u||e[22]!==g||e[23]!==b||e[24]!==p?(v=n.jsx(ee,{children:n.jsxs(Te,{className:"w-full pr-2 group/item relative cursor-pointer text-foreground/90 hover:text-foreground",onClick:u,tooltip:x,children:[g,b,p]})}),e[20]=s.title,e[21]=u,e[22]=g,e[23]=b,e[24]=p,e[25]=v):v=e[25],v}function Re(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(ee,{children:n.jsx("div",{className:"flex items-center gap-2 px-4 py-2",children:n.jsx(Q,{className:"h-4 flex-1"})})}),t[0]=e):e=t[0],e}function Xs(){const t=w.c(4),{org:e}=be(),a=_e(e.id)?.sidebar_items;if(!a?.length)return null;let r;t[0]!==a?(r=a.map(Qs),t[0]=a,t[1]=r):r=t[1];let l;return t[2]!==r?(l=n.jsx(vt,{children:r}),t[2]=r,t[3]=l):l=t[3],l}function Qs(t){return n.jsx(Js,{item:t},t.url)}function en(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(j.Suspense,{fallback:n.jsxs(vt,{children:[n.jsx(Re,{}),n.jsx(Re,{})]}),children:n.jsx(Xs,{})}),t[0]=e):e=t[0],e}function tn(){const t=w.c(5),e=ws();let s,a;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(j.Suspense,{fallback:n.jsx(Se.Skeleton,{}),children:n.jsx(Se,{})}),a=n.jsx(qs,{}),t[0]=s,t[1]=a):(s=t[0],a=t[1]);let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(Ge,{children:n.jsx(j.Suspense,{fallback:null,children:n.jsx(en,{})})}),t[2]=r):r=t[2];let l;return t[3]!==e?(l=n.jsx(gt,{navigationItems:e,header:s,footer:a,additionalContent:r}),t[3]=e,t[4]=l):l=t[4],l}function sn(t){const e=w.c(12);let s,a,r,l;e[0]!==t?({className:s,orientation:r,decorative:l,...a}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=r,e[4]=l):(s=e[1],a=e[2],r=e[3],l=e[4]);const i=r===void 0?"horizontal":r,o=l===void 0?!0:l;let c;e[5]!==s?(c=M("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",s),e[5]=s,e[6]=c):c=e[6];let d;return e[7]!==o||e[8]!==i||e[9]!==a||e[10]!==c?(d=n.jsx(It,{"data-slot":"separator-root",decorative:o,orientation:i,className:c,...a}),e[7]=o,e[8]=i,e[9]=a,e[10]=c,e[11]=d):d=e[11],d}const Nt=j.createContext(null);function nn(){const t=j.useContext(Nt);if(!t)throw new Error("TopbarSwitcher compound components must be used within TopbarSwitcher.Root");return t}function an(t){const e=w.c(10),{children:s,onItemHover:a}=t,[r,l]=j.useState(null);let i;e[0]!==a?(i=f=>{l(f),a?.(f)},e[0]=a,e[1]=i):i=e[1];const o=i;let c;e[2]!==r||e[3]!==o?(c={hoveredItem:r,setHoveredItem:o},e[2]=r,e[3]=o,e[4]=c):c=e[4];let d;e[5]!==s?(d=n.jsx(Ie,{children:s}),e[5]=s,e[6]=d):d=e[6];let m;return e[7]!==c||e[8]!==d?(m=n.jsx(Nt.Provider,{value:c,children:d}),e[7]=c,e[8]=d,e[9]=m):m=e[9],m}function rn(t){const e=w.c(6),{children:s,onClick:a}=t;let r;e[0]!==s||e[1]!==a?(r=n.jsx(P,{variant:"link",className:"p-0.5 h-auto",onClick:a,type:"button",children:s}),e[0]=s,e[1]=a,e[2]=r):r=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(ze,{asChild:!0,children:n.jsx(P,{size:"icon",variant:"ghost",className:"w-6 h-6 p-0",children:n.jsx(Xt,{size:16,className:"opacity-50"})})}),e[3]=l):l=e[3];let i;return e[4]!==r?(i=n.jsxs("div",{className:"flex items-center gap-1",children:[r,l]}),e[4]=r,e[5]=i):i=e[5],i}function ln(t){const e=w.c(8),{item:s,fallback:a}=t,r=a===void 0?"":a,l=s?.avatarUrl??"",i=s?.name??r;let o;e[0]!==l||e[1]!==i?(o=n.jsx(q,{url:l,fallback:i,size:"xs",objectFit:"contain"}),e[0]=l,e[1]=i,e[2]=o):o=e[2];const c=s?.name??r;let d;e[3]!==c?(d=n.jsx("span",{children:c}),e[3]=c,e[4]=d):d=e[4];let m;return e[5]!==o||e[6]!==d?(m=n.jsxs("div",{className:"flex items-center gap-2",children:[o,d]}),e[5]=o,e[6]=d,e[7]=m):m=e[7],m}function on(t){const e=w.c(6),{children:s,align:a}=t,r=a===void 0?"start":a,i=j.Children.toArray(s).filter(cn).length===1?"280px":"480px";let o;e[0]!==i?(o={width:i},e[0]=i,e[1]=o):o=e[1];let c;return e[2]!==r||e[3]!==s||e[4]!==o?(c=n.jsx($e,{align:r,className:"p-0 flex items-start",style:o,children:s}),e[2]=r,e[3]=s,e[4]=o,e[5]=c):c=e[5],c}function cn(t){return j.isValidElement(t)&&(t.type===St||t.type===wt)}function wt(t){const e=w.c(5),{children:s,className:a}=t;let r;e[0]!==a?(r=M("flex flex-col border-border w-[240px] border-r last:border-r-0 last:w-full",a),e[0]=a,e[1]=r):r=e[1];let l;return e[2]!==s||e[3]!==r?(l=n.jsx("div",{className:r,children:s}),e[2]=s,e[3]=r,e[4]=l):l=e[4],l}const St=wt;function dn(t){const e=w.c(6),{placeholder:s,value:a,onChange:r}=t,l=s===void 0?"Search...":s;let i;e[0]!==r?(i=c=>r(c.target.value),e[0]=r,e[1]=i):i=e[1];let o;return e[2]!==l||e[3]!==i||e[4]!==a?(o=n.jsx(fs,{placeholder:l,value:a,onChange:i,className:"rounded-none border-t-0 border-x-0 focus-visible:border-border focus-visible:ring-0"}),e[2]=l,e[3]=i,e[4]=a,e[5]=o):o=e[5],o}function mn(t){const e=w.c(6),{children:s,emptyMessage:a}=t,r=a===void 0?"No items found.":a,l=j.Children.count(s)>0;let i;e[0]!==r||e[1]!==l?(i=!l&&n.jsx("div",{className:"text-muted-foreground text-sm px-1 py-8 text-center",children:r}),e[0]=r,e[1]=l,e[2]=i):i=e[2];let o;return e[3]!==s||e[4]!==i?(o=n.jsxs("div",{className:"flex flex-col gap-0.5 p-1 max-h-44 overflow-y-auto",children:[i,s]}),e[3]=s,e[4]=i,e[5]=o):o=e[5],o}function fn(t){const e=w.c(15),{item:s,onClick:a,onHover:r,children:l}=t,i=nn();let o;e[0]!==i||e[1]!==s||e[2]!==r?(o=()=>{i.setHoveredItem(s.slug),r?.(s)},e[0]=i,e[1]=s,e[2]=r,e[3]=o):o=e[3];const c=o;let d;e[4]!==s||e[5]!==a?(d=()=>a(s),e[4]=s,e[5]=a,e[6]=d):d=e[6];let m;e[7]!==l||e[8]!==s.avatarUrl||e[9]!==s.name?(m=l||n.jsxs(n.Fragment,{children:[n.jsx(q,{url:s.avatarUrl??"",fallback:s.name,size:"xs",className:"w-[22px]! h-[22px]!",objectFit:"contain"}),n.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:s.name})]}),e[7]=l,e[8]=s.avatarUrl,e[9]=s.name,e[10]=m):m=e[10];let f;return e[11]!==c||e[12]!==d||e[13]!==m?(f=n.jsx(P,{onClick:d,onMouseEnter:c,variant:"ghost",size:"sm",className:"w-full justify-start font-normal",children:m}),e[11]=c,e[12]=d,e[13]=m,e[14]=f):f=e[14],f}function un(t){const e=w.c(2),{children:s}=t;let a;return e[0]!==s?(a=n.jsx("div",{className:"px-1 pb-1 pt-0.5",children:s}),e[0]=s,e[1]=a):a=e[1],a}function hn(t){const e=w.c(11),{onClick:s,icon:a,children:r,variant:l}=t,o=(l===void 0?"default":l)==="muted"&&"text-muted-foreground";let c;e[0]!==o?(c=M("w-full justify-start font-normal",o),e[0]=o,e[1]=c):c=e[1];let d;e[2]!==a?(d=a&&n.jsx("span",{className:"[&>svg]:size-4",children:a}),e[2]=a,e[3]=d):d=e[3];let m;e[4]!==r?(m=n.jsx("span",{children:r}),e[4]=r,e[5]=m):m=e[5];let f;return e[6]!==s||e[7]!==c||e[8]!==d||e[9]!==m?(f=n.jsxs(P,{variant:"ghost",size:"sm",className:c,onClick:s,children:[d,m]}),e[6]=s,e[7]=c,e[8]=d,e[9]=m,e[10]=f):f=e[10],f}function pn(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(sn,{}),t[0]=e):e=t[0],e}function xn(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"h-4 w-16 bg-accent rounded-full animate-pulse"}),t[0]=e):e=t[0],e}const R=Object.assign(an,{Trigger:rn,CurrentItem:ln,Content:on,Panel:St,Search:dn,Items:mn,Item:fn,Actions:un,Action:hn,Separator:pn,Skeleton:xn});function ye(){const t=w.c(59);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const{org:s}=ke(e),{data:a}=W.useListOrganizations(),r=ie();let l;t[1]!==s||t[2]!==a?(l=a?.find(E=>E.slug===s),t[1]=s,t[2]=a,t[3]=l):l=t[3];const i=l,[o,c]=j.useState(""),[d,m]=j.useState(!1);let f,u,x,g,h,b,p,v;if(t[4]!==i||t[5]!==r||t[6]!==s||t[7]!==o||t[8]!==a){const L=(a?(()=>{const B=a.filter(D=>D.name.toLowerCase().includes(o.toLowerCase()));if(s){const D=B.findIndex(V=>V.slug===s);if(D>0){const V=B[D];V&&(B.splice(D,1),B.unshift(V))}}return B})():[]).map(gn);let A;t[17]!==i?(A=i?{slug:i.slug,name:i.name,avatarUrl:i.logo}:void 0,t[17]=i,t[18]=A):A=t[18];const J=A;g=R;let U;t[19]!==r||t[20]!==s?(U=()=>r({to:"/$org",params:{org:s??""}}),t[19]=r,t[20]=s,t[21]=U):U=t[21];let K;t[22]!==J?(K=n.jsx(R.CurrentItem,{item:J}),t[22]=J,t[23]=K):K=t[23],t[24]!==U||t[25]!==K?(v=n.jsx(R.Trigger,{onClick:U,children:K}),t[24]=U,t[25]=K,t[26]=v):v=t[26],x=R.Content,u=R.Panel,t[27]!==o?(p=n.jsx(R.Search,{placeholder:"Search organizations...",value:o,onChange:c}),t[27]=o,t[28]=p):p=t[28],f=R.Items,h="No organizations found.";let F;t[29]!==r?(F=B=>n.jsx(R.Item,{item:B,onClick:D=>r({to:"/$org",params:{org:D.slug}})},B.slug),t[29]=r,t[30]=F):F=t[30],b=L.map(F),t[4]=i,t[5]=r,t[6]=s,t[7]=o,t[8]=a,t[9]=f,t[10]=u,t[11]=x,t[12]=g,t[13]=h,t[14]=b,t[15]=p,t[16]=v}else f=t[9],u=t[10],x=t[11],g=t[12],h=t[13],b=t[14],p=t[15],v=t[16];let N;t[31]!==f||t[32]!==h||t[33]!==b?(N=n.jsx(f,{emptyMessage:h,children:b}),t[31]=f,t[32]=h,t[33]=b,t[34]=N):N=t[34];let _,S;t[35]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(R.Actions,{children:n.jsx(R.Action,{onClick:()=>m(!0),variant:"muted",children:"+ Create organization"})}),S=n.jsx(R.Separator,{}),t[35]=_,t[36]=S):(_=t[35],S=t[36]);let k;t[37]!==r?(k=()=>r({to:"/"}),t[37]=r,t[38]=k):k=t[38];let y;t[39]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(us,{}),t[39]=y):y=t[39];let z;t[40]!==k?(z=n.jsx(R.Actions,{children:n.jsx(R.Action,{onClick:k,icon:y,children:"See all organizations"})}),t[40]=k,t[41]=z):z=t[41];let C;t[42]!==u||t[43]!==z||t[44]!==p||t[45]!==N?(C=n.jsxs(u,{children:[p,N,_,S,z]}),t[42]=u,t[43]=z,t[44]=p,t[45]=N,t[46]=C):C=t[46];let $;t[47]!==x||t[48]!==C?($=n.jsx(x,{children:C}),t[47]=x,t[48]=C,t[49]=$):$=t[49];let I;t[50]!==g||t[51]!==$||t[52]!==v?(I=n.jsxs(g,{children:[v,$]}),t[50]=g,t[51]=$,t[52]=v,t[53]=I):I=t[53];let O;t[54]!==d?(O=n.jsx(qe,{open:d,onOpenChange:m}),t[54]=d,t[55]=O):O=t[55];let T;return t[56]!==I||t[57]!==O?(T=n.jsxs(n.Fragment,{children:[I,O]}),t[56]=I,t[57]=O,t[58]=T):T=t[58],T}function gn(t){return{slug:t.slug,name:t.name,avatarUrl:t.logo}}ye.Skeleton=R.Skeleton;function bn({prop:t,defaultProp:e,onChange:s=()=>{}}){const[a,r]=jn({defaultProp:e,onChange:s}),l=t!==void 0,i=l?t:a,o=Ue(s),c=j.useCallback(d=>{if(l){const f=typeof d=="function"?d(t):d;f!==t&&o(f)}else r(d)},[l,t,r,o]);return[i,c]}function jn({defaultProp:t,onChange:e}){const s=j.useState(t),[a]=s,r=j.useRef(a),l=Ue(e);return j.useEffect(()=>{r.current!==a&&(l(a),r.current=a)},[a,r,l]),s}function vn(t){const e=w.c(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx(le.Root,{"data-slot":"drawer",...s}),e[2]=s,e[3]=a):a=e[3],a}function Nn(t){const e=w.c(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx(le.Trigger,{"data-slot":"drawer-trigger",...s}),e[2]=s,e[3]=a):a=e[3],a}function wn(t){const e=w.c(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx(le.Portal,{"data-slot":"drawer-portal",...s}),e[2]=s,e[3]=a):a=e[3],a}function Sn(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx(le.Overlay,{"data-slot":"drawer-overlay",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function yn(t){const e=w.c(12);let s,a,r;e[0]!==t?({className:a,children:s,...r}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=r):(s=e[1],a=e[2],r=e[3]);let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(Sn,{}),e[4]=l):l=e[4];let i;e[5]!==a?(i=M("group/drawer-content bg-background fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",a),e[5]=a,e[6]=i):i=e[6];let o;e[7]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),e[7]=o):o=e[7];let c;return e[8]!==s||e[9]!==r||e[10]!==i?(c=n.jsxs(wn,{"data-slot":"drawer-portal",children:[l,n.jsxs(le.Content,{"data-slot":"drawer-content",className:i,...r,children:[o,s]})]}),e[8]=s,e[9]=r,e[10]=i,e[11]=c):c=e[11],c}function Cn(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("flex flex-col gap-1.5 px-4 py-2",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx("div",{"data-slot":"drawer-header",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}function kn(t){const e=w.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let r;e[3]!==s?(r=M("text-foreground font-semibold",s),e[3]=s,e[4]=r):r=e[4];let l;return e[5]!==a||e[6]!==r?(l=n.jsx(le.Title,{"data-slot":"drawer-title",className:r,...a}),e[5]=a,e[6]=r,e[7]=l):l=e[7],l}const yt=j.createContext({setOpen:()=>{}}),_n=()=>j.useContext(yt),zn=t=>{const e=w.c(25);let s,a,r,l,i;e[0]!==t?({children:s,defaultOpen:a,open:l,onOpenChange:r,...i}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=r,e[4]=l,e[5]=i):(s=e[1],a=e[2],r=e[3],l=e[4],i=e[5]);const o=a??!1;let c;e[6]!==r||e[7]!==l||e[8]!==o?(c={prop:l,defaultProp:o,onChange:r},e[6]=r,e[7]=l,e[8]=o,e[9]=c):c=e[9];const[d,m]=bn(c);let f;e[10]!==m?(f={setOpen:m},e[10]=m,e[11]=f):f=e[11];let u;e[12]!==s||e[13]!==d||e[14]!==i||e[15]!==m?(u=n.jsx(vn,{open:d,onOpenChange:m,...i,children:s}),e[12]=s,e[13]=d,e[14]=i,e[15]=m,e[16]=u):u=e[16];let x;e[17]!==d||e[18]!==i||e[19]!==m||e[20]!==u?(x=n.jsx(xs,{open:d,onOpenChange:m,...i,children:u}),e[17]=d,e[18]=i,e[19]=m,e[20]=u,e[21]=x):x=e[21];let g;return e[22]!==f||e[23]!==x?(g=n.jsx(yt.Provider,{value:f,children:x}),e[22]=f,e[23]=x,e[24]=g):g=e[24],g},$n=t=>{const{children:e,title:s,...a}=t,r=oe(),{className:l,...i}=a;return r?n.jsxs(yn,{...i,children:[n.jsx(Cn,{className:"hidden",children:n.jsx(kn,{children:s})}),n.jsx("div",{className:M("flex flex-col gap-2 p-2 py-4",l),children:e})]}):n.jsx(ps,{...a,children:e})},In=t=>{const{children:e,...s}=t,{setOpen:a}=_n(),r=oe(),{className:l,...i}=s;return r?n.jsx("div",{...i,onClick:o=>{a(!1);const{onClick:c}=i;c?.(o)},className:M("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),children:e}):n.jsx(gs,{...s,children:e})},On=t=>{const e=w.c(7);let s,a;e[0]!==t?({children:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);const r=oe();let l;return e[3]!==s||e[4]!==r||e[5]!==a?(l=r?n.jsx(Nn,{asChild:!0,children:s}):n.jsx(hs,{...a,children:s}),e[3]=s,e[4]=r,e[5]=a,e[6]=l):l=e[6],l},Tn=t=>{const e=w.c(7);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);const r=oe();let l;return e[3]!==s||e[4]!==r||e[5]!==a?(l=r?n.jsx(Pe,{className:M(s),...a}):n.jsx(Pe,{className:M(s),...a}),e[3]=s,e[4]=r,e[5]=a,e[6]=l):l=e[6],l};function Mn(t){const e=w.c(11),{user:s,trigger:a,align:r,children:l}=t,i=r===void 0?"start":r;let o;e[0]!==a||e[1]!==s?(o=a(s),e[0]=a,e[1]=s,e[2]=o):o=e[2];let c;e[3]!==o?(c=n.jsx(On,{asChild:!0,children:n.jsx("div",{children:o})}),e[3]=o,e[4]=c):c=e[4];let d;e[5]!==i||e[6]!==l?(d=n.jsx($n,{side:"top",align:i,className:"md:w-[240px]",children:l}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let m;return e[8]!==c||e[9]!==d?(m=n.jsxs(zn,{children:[c,d]}),e[8]=c,e[9]=d,e[10]=m):m=e[10],m}function En(t){const e=w.c(8),{children:s,onClick:a,className:r,asChild:l}=t;let i;e[0]!==l||e[1]!==s||e[2]!==a?(i=l?s:n.jsx("button",{type:"button",className:"flex items-center gap-2 text-sm w-full cursor-pointer",onClick:a,children:s}),e[0]=l,e[1]=s,e[2]=a,e[3]=i):i=e[3];let o;return e[4]!==l||e[5]!==r||e[6]!==i?(o=n.jsx(In,{asChild:l,className:r,children:i}),e[4]=l,e[5]=r,e[6]=i,e[7]=o):o=e[7],o}function Ln(t){const e=w.c(2),{className:s}=t;let a;return e[0]!==s?(a=n.jsx(Tn,{className:s}),e[0]=s,e[1]=a):a=e[1],a}function An(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"w-8 h-8 bg-muted rounded-full animate-pulse"}),t[0]=e):e=t[0],e}const Y=Object.assign(Mn,{Item:En,Separator:Ln,Skeleton:An});function Pn(t){const e=w.c(47),{user:s,userImage:a}=t,[r,l]=j.useState(!1),[i,o]=j.useState(!1);let c;e[0]!==s.email||e[1]!==s.id||e[2]!==s.name?(c=()=>{const A=`ID: ${s.id}
|
|
4
|
-
Name: ${s.name||"N/A"}
|
|
5
|
-
Email: ${s.email}`;navigator.clipboard.writeText(A),o(!0),G.success("User info copied to clipboard"),setTimeout(()=>o(!1),2e3)},e[0]=s.email,e[1]=s.id,e[2]=s.name,e[3]=c):c=e[3];const d=c;let m;e[4]!==s.email||e[5]!==s.name||e[6]!==a?(m=()=>n.jsx(q,{url:a,fallback:s.name||s.email||"U",shape:"circle",size:"sm",className:"cursor-pointer hover:ring-2 ring-muted-foreground transition-all h-7 w-7"}),e[4]=s.email,e[5]=s.name,e[6]=a,e[7]=m):m=e[7];const f=s.name||s.email||"U";let u;e[8]!==f||e[9]!==a?(u=n.jsx(q,{url:a,fallback:f,shape:"circle",size:"sm"}),e[8]=f,e[9]=a,e[10]=u):u=e[10];const x=s.name||"User";let g;e[11]!==x?(g=n.jsx("div",{className:"text-sm font-medium truncate",children:x}),e[11]=x,e[12]=g):g=e[12];let h;e[13]!==s.email?(h=n.jsx("div",{className:"text-xs text-muted-foreground truncate",children:s.email}),e[13]=s.email,e[14]=h):h=e[14];let b;e[15]!==g||e[16]!==h?(b=n.jsxs("div",{className:"flex-1 min-w-0 text-left",children:[g,h]}),e[15]=g,e[16]=h,e[17]=b):b=e[17];let p;e[18]!==i?(p=n.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:i?n.jsx(ge,{size:16,className:"text-green-600"}):n.jsx(Ye,{size:16,className:"text-muted-foreground"})}),e[18]=i,e[19]=p):p=e[19];let v;e[20]!==u||e[21]!==b||e[22]!==p?(v=n.jsxs("div",{className:"group flex items-center gap-3 w-full py-1",children:[u,b,p]}),e[20]=u,e[21]=b,e[22]=p,e[23]=v):v=e[23];let N;e[24]!==d||e[25]!==v?(N=n.jsx(Y.Item,{onClick:d,children:v}),e[24]=d,e[25]=v,e[26]=N):N=e[26];let _;e[27]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(Y.Separator,{}),e[27]=_):_=e[27];let S,k;e[28]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsxs(Y.Item,{onClick:()=>l(!0),children:[n.jsx(Oe,{className:"text-muted-foreground",size:18}),"Profile Settings"]}),k=n.jsx(Y.Separator,{}),e[28]=S,e[29]=k):(S=e[28],k=e[29]);let y;e[30]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(He,{className:"w-4 h-4 text-muted-foreground"}),e[30]=y):y=e[30];let z;e[31]===Symbol.for("react.memo_cache_sentinel")?(z=n.jsx(Y.Item,{asChild:!0,children:n.jsxs("a",{href:"https://github.com/decocms/admin",target:"_blank",rel:"noopener noreferrer",className:"flex w-full items-center gap-2 text-sm cursor-pointer",children:[y,"decocms/admin",n.jsx(De,{size:18,className:"text-muted-foreground ml-auto"})]})}),e[31]=z):z=e[31];let C;e[32]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx(rt,{className:"text-muted-foreground",size:18}),e[32]=C):C=e[32];let $,I;e[33]===Symbol.for("react.memo_cache_sentinel")?($=n.jsx(Y.Item,{asChild:!0,children:n.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex w-full items-center gap-2 text-sm cursor-pointer",children:[C,"Homepage",n.jsx(De,{size:18,className:"ml-auto text-muted-foreground"})]})}),I=n.jsx(Y.Separator,{}),e[33]=$,e[34]=I):($=e[33],I=e[34]);let O;e[35]===Symbol.for("react.memo_cache_sentinel")?(O=n.jsxs(Y.Item,{onClick:Dn,children:[n.jsx(it,{size:18,className:"text-muted-foreground"}),"Log out"]}),e[35]=O):O=e[35];let T;e[36]!==N||e[37]!==m||e[38]!==s?(T=n.jsxs(Y,{user:s,trigger:m,align:"end",children:[N,_,S,k,z,$,I,O]}),e[36]=N,e[37]=m,e[38]=s,e[39]=T):T=e[39];let E;e[40]!==r||e[41]!==s||e[42]!==a?(E=r&&n.jsx(bt,{open:r,onOpenChange:l,user:s,userImage:a}),e[40]=r,e[41]=s,e[42]=a,e[43]=E):E=e[43];let L;return e[44]!==T||e[45]!==E?(L=n.jsxs(n.Fragment,{children:[T,E]}),e[44]=T,e[45]=E,e[46]=L):L=e[46],L}function Dn(){return W.signOut()}function Rn(){const t=w.c(7),{data:e}=W.useSession();if(!e?.user){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(q,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=c):c=t[0],c}const s=e.user,a=s.name??void 0;let r;t[1]!==a||t[2]!==s?(r={...s,name:a},t[1]=a,t[2]=s,t[3]=r):r=t[3];const l=r,i=s.image;let o;return t[4]!==i||t[5]!==l?(o=n.jsx(Pn,{user:l,userImage:i}),t[4]=i,t[5]=l,t[6]=o):o=t[6],o}function Hn(){const t=w.c(2),s=Ce().location.href;let a;return t[0]!==s?(a=n.jsx(Et,{to:"/login",search:{next:s},replace:!0}),t[0]=s,t[1]=a):a=t[1],a}function Un(t){const e=w.c(6),{children:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(Ot,{children:n.jsx(Be,{})}),e[0]=a):a=e[0];let r;e[1]!==s?(r=n.jsx(Tt,{children:s}),e[1]=s,e[2]=r):r=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(Mt,{children:n.jsx(Hn,{})}),e[3]=l):l=e[3];let i;return e[4]!==r?(i=n.jsxs(n.Fragment,{children:[a,r,l]}),e[4]=r,e[5]=i):i=e[5],i}function Bn(t){const e=w.c(5),{children:s,className:a}=t;let r;e[0]!==a?(r=M("fixed top-0 left-0 right-0 z-20 bg-background flex items-center w-full h-12 border-b border-border",a),e[0]=a,e[1]=r):r=e[1];let l;return e[2]!==s||e[3]!==r?(l=n.jsx("div",{className:r,children:s}),e[2]=s,e[3]=r,e[4]=l):l=e[4],l}function Wn(t){const e=w.c(5),{children:s,className:a}=t;let r;e[0]!==a?(r=M("flex items-center justify-center px-2.5 h-full border-r border-border",a),e[0]=a,e[1]=r):r=e[1];let l;return e[2]!==s||e[3]!==r?(l=n.jsx("div",{className:r,children:s}),e[2]=s,e[3]=r,e[4]=l):l=e[4],l}function Fn(t){const e=w.c(5),{children:s,className:a}=t;let r;e[0]!==a?(r=M("flex items-center gap-2 px-2 h-full",a),e[0]=a,e[1]=r):r=e[1];let l;return e[2]!==s||e[3]!==r?(l=n.jsx("div",{className:r,children:s}),e[2]=s,e[3]=r,e[4]=l):l=e[4],l}function Vn(t){const e=w.c(5),{children:s,className:a}=t;let r;e[0]!==a?(r=M("flex items-center gap-2 px-2 h-full flex-1",a),e[0]=a,e[1]=r):r=e[1];let l;return e[2]!==s||e[3]!==r?(l=n.jsx("div",{className:r,children:s}),e[2]=s,e[3]=r,e[4]=l):l=e[4],l}function Zn(t){const e=w.c(5),{children:s,className:a}=t;let r;e[0]!==a?(r=M("flex items-center gap-2 px-2 h-full ml-auto",a),e[0]=a,e[1]=r):r=e[1];let l;return e[2]!==s||e[3]!==r?(l=n.jsx("div",{className:r,children:s}),e[2]=s,e[3]=r,e[4]=l):l=e[4],l}function Kn(){const t=w.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"flex items-center justify-center px-2 h-full border-r border-border",children:n.jsx("div",{className:"w-8 h-8 bg-muted rounded-md animate-pulse"})}),t[0]=e):e=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx("div",{className:"flex items-center gap-2 px-2 h-full",children:n.jsx("div",{className:"w-32 h-6 bg-muted rounded-md animate-pulse"})}),t[1]=s):s=t[1];let a;return t[2]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsxs("div",{className:"fixed top-0 left-0 right-0 z-20 bg-background flex items-center w-full h-12 border-b border-border",children:[e,s,n.jsx("div",{className:"flex items-center gap-2 px-2 h-full ml-auto",children:n.jsx("div",{className:"w-8 h-8 bg-muted rounded-full animate-pulse"})})]}),t[2]=a):a=t[2],a}const fe=Object.assign(Bn,{Sidebar:Wn,Left:Fn,Center:Vn,Right:Zn,Skeleton:Kn});function Ct(){const t=w.c(3),{toggleSidebar:e}=ve();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(lt,{className:"text-muted-foreground/85 group-hover:text-foreground transition-colors",size:18}),t[0]=s):s=t[0];let a;return t[1]!==e?(a=n.jsx(n.Fragment,{children:n.jsx(P,{onClick:e,size:"icon",variant:"ghost",className:"w-7 h-7 rounded-md",children:s})}),t[1]=e,t[2]=a):a=t[2],a}Ct.Skeleton=function(){return n.jsx("div",{className:"w-7 h-7 bg-muted rounded-md animate-pulse"})};function Gn({showSidebarToggle:t=!1,showOrgSwitcher:e=!1,showDecoChat:s=!1,disableDecoChat:a=!1}){const[r,l]=je(),i=j.useRef(a);a&&r&&i.current!==a&&l(!1),i.current=a;const o=()=>{a||l(c=>!c)};return n.jsxs(fe,{children:[t&&n.jsx(fe.Sidebar,{children:n.jsx(Ct,{})}),n.jsx(fe.Left,{children:e&&n.jsx(j.Suspense,{fallback:n.jsx(ye.Skeleton,{}),children:n.jsx(ye,{})})}),n.jsxs(fe.Right,{className:"gap-2",children:[s&&!a&&n.jsxs(P,{size:"sm",variant:"default",onClick:o,className:"h-7 gap-2",children:[n.jsx(Ve,{size:16}),"Chat"]}),n.jsx(Rn,{})]})]})}function Yn(t){const e=w.c(10),{children:s,className:a}=t,[,r]=j.useTransition();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Xe.decoChatPanelWidth(),e[0]=l):l=e[0];const[i,o]=Je(l,30);let c;e[1]!==o?(c=u=>r(()=>o(u)),e[1]=o,e[2]=c):c=e[2];const d=c;let m;e[3]!==a?(m=M("min-w-0",a),e[3]=a,e[4]=m):m=e[4];let f;return e[5]!==i||e[6]!==s||e[7]!==d||e[8]!==m?(f=n.jsx(Qe,{defaultSize:i,minSize:20,className:m,onResize:d,children:s}),e[5]=i,e[6]=s,e[7]=d,e[8]=m,e[9]=f):f=e[9],f}function qn(t){const e=w.c(5),{children:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=Xe.sidebarOpen(),e[0]=a):a=e[0];const[r,l]=Je(a,!0);let i;return e[1]!==s||e[2]!==l||e[3]!==r?(i=n.jsx($s,{open:r,onOpenChange:l,children:s}),e[1]=s,e[2]=l,e[3]=r,e[4]=i):i=e[4],i}function Jn(t){const e=w.c(6),{disableChat:s}=t,a=s===void 0?!1:s,[r]=je();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsx(Qe,{className:"bg-background",children:n.jsx(We,{})}),e[0]=l):l=e[0];let i;e[1]!==r||e[2]!==a?(i=!a&&n.jsxs(n.Fragment,{children:[n.jsx(bs,{withHandle:r}),n.jsx(Yn,{className:M(r?"max-w-none":"max-w-0"),children:n.jsx(Ns,{})})]}),e[1]=r,e[2]=a,e[3]=i):i=e[3];let o;return e[4]!==i?(o=n.jsxs(js,{direction:"horizontal",children:[l,i]}),e[4]=i,e[5]=o):o=e[5],o}function Xn(){const t=w.c(18);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const{org:s}=ke(e),a=Ce(),r=a.location.pathname===`/${s}`||a.location.pathname===`/${s}/`;let l;t[1]!==s?(l=Pt.activeOrganization(s),t[1]=s,t[2]=l):l=t[2];let i;t[3]!==s?(i=async()=>{if(!s)return null;const{data:g}=await W.organization.setActive({organizationSlug:s});return{org:g,project:{slug:Dt}}},t[3]=s,t[4]=i):i=t[4];let o;t[5]!==l||t[6]!==i?(o={queryKey:l,queryFn:i,gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1},t[5]=l,t[6]=i,t[7]=o):o=t[7];const{data:c}=Lt(o);if(!c){let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(Gn,{}),t[8]=g):g=t[8];let h;return t[9]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsxs("div",{className:"min-h-screen bg-background",children:[g,n.jsx("div",{className:"pt-12",children:n.jsx(We,{})})]}),t[9]=h):h=t[9],h}let d;t[10]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("style",{children:`
|
|
6
|
-
[data-slot="sidebar-container"] {
|
|
7
|
-
top: 0 !important;
|
|
8
|
-
}
|
|
9
|
-
[data-slot="sidebar-inner"] {
|
|
10
|
-
padding-top: 0 !important;
|
|
11
|
-
}
|
|
12
|
-
`}),t[10]=d):d=t[10];let m;t[11]===Symbol.for("react.memo_cache_sentinel")?(m={"--sidebar-width":"13rem","--sidebar-width-mobile":"11rem"},t[11]=m):m=t[11];let f;t[12]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(tn,{}),t[12]=f):f=t[12];let u;t[13]!==r?(u=n.jsx(qn,{children:n.jsxs("div",{className:"flex flex-col h-screen",children:[d,n.jsx(H.Provider,{children:n.jsxs(Ts,{className:"flex-1 bg-sidebar",style:m,children:[f,n.jsx(Es,{children:n.jsx(Jn,{disableChat:r})})]})})]})}),t[13]=r,t[14]=u):u=t[14];let x;return t[15]!==c||t[16]!==u?(x=n.jsx(At,{...c,children:u}),t[15]=c,t[16]=u,t[17]=x):x=t[17],x}function rr(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Un,{children:n.jsx(j.Suspense,{fallback:n.jsx(Be,{}),children:n.jsx(Xn,{})})}),t[0]=e):e=t[0],e}export{rr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-qdoAkrLg.js";import{a4 as i}from"./index-DVqIQLTS.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a4 as u,a7 as s}from"./index-DVqIQLTS.js";function o(e,r){return u(e,s,r)}export{o as u};
|