@decocms/mesh 2.59.7 → 2.60.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-BFXBDrUr.js → AlertCircle-CiqOV3gN.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CDtoEGeL.js → ArrowLeft-DESkG8WH.js} +1 -1
- package/dist/client/assets/{ArrowUp-BDaeP-ZF.js → ArrowUp-DSzSuIWM.js} +1 -1
- package/dist/client/assets/{Calendar-Do1_EcNl.js → Calendar-Bgzpcx-P.js} +1 -1
- package/dist/client/assets/{Check-C7bGyGOC.js → Check-BwWwVwDq.js} +1 -1
- package/dist/client/assets/{ChevronDown-DY2hRH3P.js → ChevronDown-FrVOX9vD.js} +1 -1
- package/dist/client/assets/{Code01-Bti_O9RL.js → Code01-Bus4rjLa.js} +1 -1
- package/dist/client/assets/{Copy01-Cql6iNiT.js → Copy01-CU0ImpYo.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-Bn70vF_C.js → DotsHorizontal-BXRQO4eG.js} +1 -1
- package/dist/client/assets/{DotsVertical-55vBqpF9.js → DotsVertical-DWjt2LuM.js} +1 -1
- package/dist/client/assets/{Download01-CY_txTIU.js → Download01-B96RO3w0.js} +1 -1
- package/dist/client/assets/{Edit01-BcXXA0Bn.js → Edit01-1SiMuTuh.js} +1 -1
- package/dist/client/assets/{File02-CZ_CP680.js → File02-IAt_f4v7.js} +1 -1
- package/dist/client/assets/{File06-OiAbO58I.js → File06-C2LBZfWa.js} +1 -1
- package/dist/client/assets/{FilterLines-8ygYuAAi.js → FilterLines-CKQEFPmy.js} +1 -1
- package/dist/client/assets/{Grid01-Bdrpv4xX.js → Grid01-IjiH2KUT.js} +1 -1
- package/dist/client/assets/{Home02-BeNorB_C.js → Home02-B4t-Ls4v.js} +1 -1
- package/dist/client/assets/{Image01-DvLyxsOA.js → Image01-Bc9GrKYJ.js} +1 -1
- package/dist/client/assets/{Inbox01-BPkfViyI.js → Inbox01-Nf9S_z_u.js} +1 -1
- package/dist/client/assets/{InfoCircle-BJ2AMXf3.js → InfoCircle-f6Q2730q.js} +1 -1
- package/dist/client/assets/{Key01-D8HCSb8P.js → Key01-CwRA3KGV.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BrLuchvz.js → LinkExternal01-B00_hrMY.js} +1 -1
- package/dist/client/assets/{List-bC7xiZ2s.js → List-CeDrqSzo.js} +1 -1
- package/dist/client/assets/{Loading01-BiNUjLDw.js → Loading01-k9J_51Wt.js} +1 -1
- package/dist/client/assets/{Lock01-Bg5yU8Wj.js → Lock01-BlcSKNwc.js} +1 -1
- package/dist/client/assets/{Pin01-iTXtWrRE.js → Pin01-CCrFQOyT.js} +1 -1
- package/dist/client/assets/{Play-C3Hph8xY.js → Play-DDry1DwY.js} +1 -1
- package/dist/client/assets/{Plus-BuZ2XoBN.js → Plus-B4bZuJyH.js} +1 -1
- package/dist/client/assets/{SearchMd-BeBVRrdw.js → SearchMd-CvLjdKIL.js} +1 -1
- package/dist/client/assets/{Share07-DldJlk64.js → Share07-pQXxyFdr.js} +1 -1
- package/dist/client/assets/{Terminal-EcSYzT5u.js → Terminal-CUhRn_Km.js} +1 -1
- package/dist/client/assets/{Tool01-CH0MYN-2.js → Tool01-BuQwOuwj.js} +1 -1
- package/dist/client/assets/{Trash01-DSwoFZY0.js → Trash01-CrkjtnA0.js} +1 -1
- package/dist/client/assets/{Upload01-CpcqtTNa.js → Upload01-Oco4mhUo.js} +1 -1
- package/dist/client/assets/{Users03-B6orUjW9.js → Users03-ChMrWUg7.js} +1 -1
- package/dist/client/assets/{X-DLZk4kqC.js → X-BYmeb6sr.js} +1 -1
- package/dist/client/assets/{XClose-C2SJXRFh.js → XClose-BrPaj-T9.js} +1 -1
- package/dist/client/assets/{agent-detail-1edzdNo4.js → agent-detail-BnemG27J.js} +1 -1
- package/dist/client/assets/{agents-CA-rSchF.js → agents-BcQ83pya.js} +1 -1
- package/dist/client/assets/{alert-dialog-Dllib4My.js → alert-dialog-DQH47fXT.js} +1 -1
- package/dist/client/assets/{auth-catchall-BOn2OyMJ.js → auth-catchall-BUSK9aWX.js} +1 -1
- package/dist/client/assets/{avatar-BfuaGHdb.js → avatar-DveL_Zo1.js} +1 -1
- package/dist/client/assets/{badge-DF_3zhMz.js → badge-DeCRZtfI.js} +1 -1
- package/dist/client/assets/{binder-CC8WnynZ.js → binder-ChJO9Gsr.js} +1 -1
- package/dist/client/assets/{button-0ydgHweE.js → button-D373Gh7m.js} +1 -1
- package/dist/client/assets/{card-DFhzHX-B.js → card-IZISqBEf.js} +1 -1
- package/dist/client/assets/{checkbox-JnNCVINs.js → checkbox-CuEgSK5M.js} +1 -1
- package/dist/client/assets/{circle-alert-C96B7toE.js → circle-alert-PbmGURsw.js} +1 -1
- package/dist/client/assets/{collapsible-CDAezpyL.js → collapsible-D5bXYEu5.js} +1 -1
- package/dist/client/assets/{collection-detail-ClXHe-PG.js → collection-detail-CKkNR8Za.js} +1 -1
- package/dist/client/assets/{collection-display-button-C0Qj_mDn.js → collection-display-button-DRWiQVZp.js} +1 -1
- package/dist/client/assets/{collection-header-CHcRbSVg.js → collection-header-BHLaNdMe.js} +1 -1
- package/dist/client/assets/{collection-page-pQhPuVgo.js → collection-page-BqHjcMvL.js} +1 -1
- package/dist/client/assets/{collection-search-rOPXHeEr.js → collection-search-B0S_3vCk.js} +1 -1
- package/dist/client/assets/{collection-tab-e3o0S9Wa.js → collection-tab-DpgA_w33.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-C4t2ZZhF.js → collection-table-wrapper-BP07sMyA.js} +1 -1
- package/dist/client/assets/{connect-DP_OT-gv.js → connect-FSagTGoo.js} +1 -1
- package/dist/client/assets/{connection-card-BLTFMSZS.js → connection-card-CaA_gyt_.js} +1 -1
- package/dist/client/assets/{connection-detail-C5TmRjj1.js → connection-detail-BjIkUIa9.js} +1 -1
- package/dist/client/assets/{connections-I2Vy-typ.js → connections-C53icvxv.js} +1 -1
- package/dist/client/assets/constants-BRQkgPgR.js +1 -0
- package/dist/client/assets/{constants-Mpett05j.js → constants-BsVN3aVM.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-WqiCWTM4.js → create-organization-dialog-ByLHFsGC.js} +1 -1
- package/dist/client/assets/{dialog-6FUpHXs_.js → dialog-sp1iNNV1.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CvHFB3Gz.js → dropdown-menu-B8A0M-FV.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-Mnd5muQb.js → dynamic-plugin-layout-D2ubHwXL.js} +1 -1
- package/dist/client/assets/{empty-state-7hq4AubF.js → empty-state-D4bELgmw.js} +1 -1
- package/dist/client/assets/{empty-state-BJnVPwS4.js → empty-state-DPLaHs22.js} +1 -1
- package/dist/client/assets/{env-vars-editor--TqeS791.js → env-vars-editor-DdPVHMBR.js} +1 -1
- package/dist/client/assets/{error-boundary-B6RXO2oI.js → error-boundary-DGGozsia.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Cl2cHkSz.js → extract-connection-data-CgtoPpeo.js} +1 -1
- package/dist/client/assets/{file-browser-EXbuz5vW.js → file-browser-s-7cB8WF.js} +2 -2
- package/dist/client/assets/{form-Bu0daHLu.js → form-D_p7nR82.js} +1 -1
- package/dist/client/assets/{grid-view-C6S8iSjv.js → grid-view-CR-ahT4K.js} +1 -1
- package/dist/client/assets/{home-2CTqvtNy.js → home-BW1R0sGc.js} +1 -1
- package/dist/client/assets/{index-DZqSbjFw.js → index-504A5fzu.js} +2 -2
- package/dist/client/assets/{index-CXUcNyKS.js → index-BatxUpyp.js} +1 -1
- package/dist/client/assets/{index-BDvGMi--.js → index-C6RvA3pM.js} +1 -1
- package/dist/client/assets/index-CrlzOoQD.css +1 -0
- package/dist/client/assets/{index-CymrbMj5.js → index-CsaK2Zyj.js} +1 -1
- package/dist/client/assets/{index-Ez2DTosS.js → index-Cu1Yc5G-.js} +1 -1
- package/dist/client/assets/index-DsQNI0Ev.js +1 -0
- package/dist/client/assets/{infiniteQueryObserver-DmKtj9SR.js → infiniteQueryObserver-BZSSiryQ.js} +1 -1
- package/dist/client/assets/{input-u1hHzCA4.js → input-L4CnUGon.js} +1 -1
- package/dist/client/assets/{layout-DspSCzsh.js → layout-Cd5mhjJp.js} +1 -1
- package/dist/client/assets/{localstorage-keys-DpM3uKv7.js → localstorage-keys-ELyXVtKs.js} +1 -1
- package/dist/client/assets/{login-DoMEd-lv.js → login-DXDi7eVk.js} +1 -1
- package/dist/client/assets/{mcp-oauth-C7tn4XA4.js → mcp-oauth-B493s6Am.js} +1 -1
- package/dist/client/assets/{mcp-server-card-HpdQ81Kj.js → mcp-server-card-DAhW5oLh.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-DhHV0S77.js → mcp-server-detail-B8SoA6bl.js} +2 -2
- package/dist/client/assets/{members-NoyLiC53.js → members-81fV-UkW.js} +1 -1
- package/dist/client/assets/{monaco-editor-CZ0mtshA.js → monaco-editor-NeTwO1He.js} +1 -1
- package/dist/client/assets/{monitoring-rg9mX2h3.js → monitoring-H5l7qvJR.js} +1 -1
- package/dist/client/assets/{oauth-callback-BskSq0jW.js → oauth-callback-areeupDS.js} +1 -1
- package/dist/client/assets/{page-BpnXhWf3.js → page-CA1T9606.js} +1 -1
- package/dist/client/assets/{page-KXdqzJaF.js → page-blk1xcgv.js} +1 -1
- package/dist/client/assets/{pin-to-sidebar-button-Bsv2_7kr.js → pin-to-sidebar-button-CzNm9Z63.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-rg6DAYSw.js → plugin-empty-state-Dyr-7-tg.js} +1 -1
- package/dist/client/assets/{plugin-header-Cnc4tGD7.js → plugin-header-ei5KGTL7.js} +1 -1
- package/dist/client/assets/{plugins-CW7mTNa6.js → plugins-QxavFgPC.js} +1 -1
- package/dist/client/assets/{popover-DEmRxXmY.js → popover-BW-chC87.js} +1 -1
- package/dist/client/assets/{registry-utils-BFBDFgyu.js → registry-utils-DsqnXOg4.js} +1 -1
- package/dist/client/assets/{resizable-akHzriSj.js → resizable-BKhOe-uT.js} +1 -1
- package/dist/client/assets/{resource-tabs-1el8gNET.js → resource-tabs-BcGtnPlu.js} +1 -1
- package/dist/client/assets/{select-BKwPUbTK.js → select-BXQ9vi5I.js} +1 -1
- package/dist/client/assets/{settings-ZWpf163v.js → settings-BYYaB1XF.js} +1 -1
- package/dist/client/assets/shell-layout-B3owq9Ia.js +12 -0
- package/dist/client/assets/{spinner-Bwqz03rl.js → spinner-DGXi0Fqy.js} +1 -1
- package/dist/client/assets/{store-invite-DJTXOg3a.js → store-invite-B71tyOTJ.js} +1 -1
- package/dist/client/assets/{switch-DNIxf6Z3.js → switch-Cy8A6BDO.js} +1 -1
- package/dist/client/assets/{textarea-CLIBzUIu.js → textarea-D6uAjk7M.js} +1 -1
- package/dist/client/assets/{tools-list-DopNeyHc.js → tools-list-B4q7Xm3-.js} +1 -1
- package/dist/client/assets/{tooltip-9zLX7HP0.js → tooltip-BXVSpXAI.js} +1 -1
- package/dist/client/assets/{typewriter-title-BJariIWR.js → typewriter-title-CO1Atowa.js} +1 -1
- package/dist/client/assets/{use-binding-B1LqCJr8.js → use-binding-C0SFeppw.js} +1 -1
- package/dist/client/assets/{use-collections-DtjYeVzj.js → use-collections-DgQLvk8y.js} +1 -1
- package/dist/client/assets/{use-connection-BzhGWFyL.js → use-connection-CXgi6BLT.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-D-7Y6G3j.js → use-create-virtual-mcp-C56z94et.js} +1 -1
- package/dist/client/assets/use-deco-chat-open-CnAfKKCI.js +1 -0
- package/dist/client/assets/{use-list-state-BfmIALu7.js → use-list-state-DKFwP-fh.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-C2Az2O1z.js → use-mcp-prompts-Cauox13I.js} +1 -1
- package/dist/client/assets/{use-members-KzHxearI.js → use-members-hSITWRgA.js} +1 -1
- package/dist/client/assets/{use-mobile-VtwOaDa5.js → use-mobile-BvueHiH_.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DMGaX8N0.js → use-organization-settings-wk-RrGpZ.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-D3UgDP8i.js → use-virtual-mcp-PjR1OFlb.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DcmndbVK.js +1 -0
- package/dist/client/assets/{useMutation-BReaxe_W.js → useMutation-DjmEVTlE.js} +1 -1
- package/dist/client/assets/useQuery-2fM2t_EQ.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-BQW4uJSq.js +1 -0
- package/dist/client/assets/{view-mode-toggle-DR9UFNqr.js → view-mode-toggle-CCTPeHCH.js} +1 -1
- package/dist/client/assets/{workflow-B1lnmdqO.js → workflow-DcdxDnBB.js} +1 -1
- package/dist/client/index.html +2 -2
- package/package.json +1 -1
- package/dist/client/assets/constants-OFVhPv4G.js +0 -1
- package/dist/client/assets/index-6m1DUVC_.js +0 -1
- package/dist/client/assets/index-CqeIU8-o.css +0 -1
- package/dist/client/assets/shell-layout-D0SSCuI2.js +0 -3
- package/dist/client/assets/use-deco-chat-open-CrQFHW7J.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CaX6JmUq.js +0 -1
- package/dist/client/assets/useQuery-KlPPWaKy.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-jy6MmqiZ.js +0 -1
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{r as w,c as h,j as n,u as me,b0 as dt,g as J,l as fe,ao as Y,$ as mt,t as ft,b6 as xe,L as we,a_ as ut,bB as pt,a as ze,b3 as $e,bC as ae,bD as ht,b as xt,S as Te,d as gt,e as bt,N as jt,q as vt,P as wt,aP as Oe,K as St,O as Nt}from"./index-DZqSbjFw.js";import{C as D,u as yt}from"./index-CymrbMj5.js";import{I as pe,n as Ct}from"./empty-state-BJnVPwS4.js";import{u as ge}from"./use-deco-chat-open-CrQFHW7J.js";import{c as $,B as Z}from"./button-0ydgHweE.js";import{d as _t}from"./constants-Mpett05j.js";import{T as kt,i as It,b as zt,S as $t,c as Tt,d as Ot,e as Mt,f as At,t as Et}from"./typewriter-title-BJariIWR.js";import{s as Dt}from"./Plus-BuZ2XoBN.js";import{t as Me}from"./Users03-B6orUjW9.js";import{i as ce}from"./X-DLZk4kqC.js";import{E as Ae}from"./error-boundary-B6RXO2oI.js";import{u as Pt,S as Ee,i as Rt}from"./collapsible-CDAezpyL.js";import{b as De,P as Pe,a as Re}from"./popover-DEmRxXmY.js";import{B as Se}from"./badge-DF_3zhMz.js";import{i as de}from"./Check-C7bGyGOC.js";import{n as Ne}from"./Inbox01-BPkfViyI.js";import{s as ye}from"./XClose-C2SJXRFh.js";import{i as Lt}from"./File06-OiAbO58I.js";import{u as ie}from"./use-mobile-VtwOaDa5.js";import{a as Le,b as He,T as Ue,c as Be}from"./tooltip-9zLX7HP0.js";import{u as be,a as Ht}from"./use-organization-settings-DMGaX8N0.js";import{a as Ut}from"./Home02-BeNorB_C.js";import{C as Bt}from"./create-organization-dialog-WqiCWTM4.js";import{I as Wt}from"./input-u1hHzCA4.js";import{A as ne}from"./avatar-BfuaGHdb.js";import{c as Vt}from"./Grid01-Bdrpv4xX.js";import{a as Ft,b as Kt,D as Gt,c as Zt,g as Ce}from"./dropdown-menu-CvHFB3Gz.js";import{a as We}from"./Copy01-Cql6iNiT.js";import{n as _e}from"./LinkExternal01-BrLuchvz.js";import{c as qt,b as Yt,g as Jt,a as Xt,D as Qt}from"./dialog-6FUpHXs_.js";import{L as es}from"./form-Bu0daHLu.js";import{S as ts}from"./switch-DNIxf6Z3.js";import{i as ss}from"./Code01-Bti_O9RL.js";import{u as Ve,L as Fe}from"./localstorage-keys-DpM3uKv7.js";import{R as ns,a as Ke,b as as}from"./resizable-akHzriSj.js";import"./spinner-Bwqz03rl.js";import"./use-mcp-prompts-C2Az2O1z.js";import"./useQuery-KlPPWaKy.js";import"./AlertCircle-BFXBDrUr.js";import"./ArrowUp-BDaeP-ZF.js";import"./ChevronDown-DY2hRH3P.js";import"./Edit01-BcXXA0Bn.js";import"./Terminal-EcSYzT5u.js";import"./monaco-editor-CZ0mtshA.js";import"./use-connection-BzhGWFyL.js";import"./use-collections-DtjYeVzj.js";import"./useMutation-BReaxe_W.js";import"./generate-id-Dyweu44Y.js";import"./SearchMd-BeBVRrdw.js";import"./Trash01-DSwoFZY0.js";import"./use-virtual-mcp-D3UgDP8i.js";import"./use-create-virtual-mcp-D-7Y6G3j.js";import"./use-binding-B1LqCJr8.js";import"./binder-CC8WnynZ.js";import"./useSuspenseInfiniteQuery-jy6MmqiZ.js";import"./infiniteQueryObserver-DmKtj9SR.js";import"./select-BKwPUbTK.js";import"./Image01-DvLyxsOA.js";import"./alert-dialog-Dllib4My.js";const Ge=({size:t=24,color:e="currentColor",...s})=>w.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},w.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"}));Ge.displayName="BarChart10";const Ze=({size:t=24,color:e="currentColor",...s})=>w.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},w.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"}));Ze.displayName="Building02";const qe=({size:t=24,color:e="currentColor",...s})=>w.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},w.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"}));qe.displayName="Globe01";const Ye=({size:t=24,color:e="currentColor",...s})=>w.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},w.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"}));Ye.displayName="LayoutRight";const Je=({size:t=24,color:e="currentColor",...s})=>w.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},w.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"}));Je.displayName="LogOut01";const Xe=({size:t=24,color:e="currentColor",...s})=>w.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},w.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"}));Xe.displayName="Mail01";const je=({size:t=24,color:e="currentColor",...s})=>w.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},w.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}),w.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"}));je.displayName="Settings01";const Qe=({size:t=24,color:e="currentColor",...s})=>w.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},w.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"}));Qe.displayName="UserSquare";const et=({size:t=24,color:e="currentColor",...s})=>w.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},w.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"}));et.displayName="Zap";function is(){const t=h.c(81),{org:e}=me(),[,s]=ge(),{selectedVirtualMcp:a,modelsConnections:i,isChatEmpty:r,activeThreadId:o,setActiveThreadId:l,threads:c}=Pt();let d;if(t[0]!==o||t[1]!==c){let B;t[3]!==o?(B=q=>q.id===o,t[3]=o,t[4]=B):B=t[4],d=c.find(B),t[0]=o,t[1]=c,t[2]=d}else d=t[2];const m=d,[u,p]=w.useState(!1);let b;t[5]!==e.id?(b=_t(e.id),t[5]=e.id,t[6]=b):b=t[6];const f=a??b;if(i.length===0){let B;t[7]!==f.icon||t[8]!==f.title?(B=n.jsx(pe,{icon:f.icon,name:f.title,size:"xs",className:"size-5 rounded-md aspect-square shrink-0"}),t[7]=f.icon,t[8]=f.title,t[9]=B):B=t[9];let q;t[10]!==f.title?(q=n.jsx("span",{className:"text-sm font-medium",children:f.title}),t[10]=f.title,t[11]=q):q=t[11];let X;t[12]!==B||t[13]!==q?(X=n.jsxs(D.Header.Left,{children:[B,q]}),t[12]=B,t[13]=q,t[14]=X):X=t[14];let Q;t[15]!==s?(Q=()=>s(!1),t[15]=s,t[16]=Q):Q=t[16];let re;t[17]===Symbol.for("react.memo_cache_sentinel")?(re=n.jsx(ce,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[17]=re):re=t[17];let ee;t[18]!==Q?(ee=n.jsx(D.Header.Right,{children:n.jsx("button",{type:"button",onClick:Q,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:re})}),t[18]=Q,t[19]=ee):ee=t[19];let te;t[20]!==X||t[21]!==ee?(te=n.jsxs(D.Header,{children:[X,ee]}),t[20]=X,t[21]=ee,t[22]=te):te=t[22];let se;t[23]!==e?(se=n.jsx(D.Main,{className:"flex flex-col items-center",children:n.jsx(D.EmptyState,{children:n.jsx(D.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[23]=e,t[24]=se):se=t[24];let oe;return t[25]!==te||t[26]!==se?(oe=n.jsxs(D,{children:[te,se]}),t[25]=te,t[26]=se,t[27]=oe):oe=t[27],oe}const g=u?"opacity-0 -translate-x-4 pointer-events-none":"opacity-100 translate-x-0";let x;t[28]!==g?(x=$("absolute inset-0 flex flex-col transition-all duration-300 ease-in-out",g),t[28]=g,t[29]=x):x=t[29];let v;t[30]!==f.icon||t[31]!==f.title?(v=n.jsx(pe,{icon:f.icon,name:f.title,size:"xs",className:"size-5 rounded-md aspect-square shrink-0"}),t[30]=f.icon,t[31]=f.title,t[32]=v):v=t[32];let S;t[33]!==m||t[34]!==f.title||t[35]!==r?(S=!r&&m?.title?n.jsx(kt,{text:m.title,className:"text-sm font-medium text-foreground"}):n.jsx("span",{className:"text-sm font-medium text-foreground",children:f.title}),t[33]=m,t[34]=f.title,t[35]=r,t[36]=S):S=t[36];let _;t[37]!==v||t[38]!==S?(_=n.jsxs(D.Header.Left,{children:[v,S]}),t[37]=v,t[38]=S,t[39]=_):_=t[39];let N;t[40]!==l?(N=()=>l(crypto.randomUUID()),t[40]=l,t[41]=N):N=t[41];let k;t[42]===Symbol.for("react.memo_cache_sentinel")?(k=n.jsx(Dt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[42]=k):k=t[42];let y;t[43]!==N?(y=n.jsx("button",{type:"button",onClick:N,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"New chat",children:k}),t[43]=N,t[44]=y):y=t[44];let z;t[45]===Symbol.for("react.memo_cache_sentinel")?(z=()=>p(!0),t[45]=z):z=t[45];let C;t[46]===Symbol.for("react.memo_cache_sentinel")?(C=n.jsx("button",{type:"button",onClick:z,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Chat history",children:n.jsx(It,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[46]=C):C=t[46];let I;t[47]!==s?(I=()=>s(!1),t[47]=s,t[48]=I):I=t[48];let O;t[49]===Symbol.for("react.memo_cache_sentinel")?(O=n.jsx(ce,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[49]=O):O=t[49];let T;t[50]!==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[50]=I,t[51]=T):T=t[51];let M;t[52]!==T||t[53]!==y?(M=n.jsxs(D.Header.Right,{children:[y,C,T]}),t[52]=T,t[53]=y,t[54]=M):M=t[54];let A;t[55]!==M||t[56]!==_?(A=n.jsxs(D.Header,{children:[_,M]}),t[55]=M,t[56]=_,t[57]=A):A=t[57];let E;t[58]!==f.description||t[59]!==f.icon||t[60]!==f.title||t[61]!==r?(E=n.jsx(D.Main,{children:r?n.jsx(D.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(pe,{icon:f.icon,name:f.title,size:"lg",fallbackIcon:n.jsx(Me,{size:32}),className:"size-[60px]! rounded-[18px]!"}),n.jsx("h3",{className:"text-xl font-medium text-foreground",children:f.title}),n.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:f.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),n.jsx(D.IceBreakers,{})]})}):n.jsx(D.Messages,{minHeightOffset:280})}),t[58]=f.description,t[59]=f.icon,t[60]=f.title,t[61]=r,t[62]=E):E=t[62];let P;t[63]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx(D.Footer,{children:n.jsx(D.Input,{})}),t[63]=P):P=t[63];let W;t[64]!==A||t[65]!==E||t[66]!==x?(W=n.jsxs("div",{className:x,children:[A,E,P]}),t[64]=A,t[65]=E,t[66]=x,t[67]=W):W=t[67];const V=u?"opacity-100 translate-x-0":"opacity-0 translate-x-4 pointer-events-none";let U;t[68]!==V?(U=$("absolute inset-0 flex flex-col transition-all duration-300 ease-in-out",V),t[68]=V,t[69]=U):U=t[69];let F;t[70]===Symbol.for("react.memo_cache_sentinel")?(F=()=>p(!1),t[70]=F):F=t[70];let R;t[71]!==o||t[72]!==l||t[73]!==c?(R=n.jsx(zt,{threads:c,activeThreadId:o,onThreadSelect:l,onClose:F}),t[71]=o,t[72]=l,t[73]=c,t[74]=R):R=t[74];let L;t[75]!==U||t[76]!==R?(L=n.jsx("div",{className:U,children:R}),t[75]=U,t[76]=R,t[77]=L):L=t[77];let K;return t[78]!==W||t[79]!==L?(K=n.jsxs(D,{className:"relative overflow-hidden",children:[W,L]}),t[78]=W,t[79]=L,t[80]=K):K=t[80],K}function rs(){const t=h.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(D.Skeleton,{}),t[0]=e):e=t[0];let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(Ae,{fallback:e,children:n.jsx(w.Suspense,{fallback:n.jsx(D.Skeleton,{}),children:n.jsx(is,{})})}),t[1]=s):s=t[1],s}function os({invitation:t,onStatusChange:e}){const[s,a]=w.useState(!1),[i,r]=w.useState(!1),o=fe(),l=async()=>{a(!0);try{const b=await J.organization.acceptInvitation({invitationId:t.id});if(b.error)Y.error(b.error.message),a(!1);else{e(t.id,"accepted");const j=await J.organization.setActive({organizationId:t.organizationId});j?.data?.slug?(Y.success("Invitation accepted!"),o({to:"/$org",params:{org:j.data.slug}})):(Y.success("Invitation accepted! Redirecting..."),o({to:"/"}))}}catch{Y.error("Failed to accept invitation"),a(!1)}},c=async()=>{r(!0);try{const b=await J.organization.rejectInvitation({invitationId:t.id});b.error?(Y.error(b.error.message),r(!1)):(Y.success("Invitation rejected"),e(t.id,"rejected"),r(!1))}catch{Y.error("Failed to reject invitation"),r(!1)}},d=t.organizationName||t.organizationId,m=t.status==="pending",u=t.status==="accepted",p=t.status==="rejected";return n.jsxs("div",{className:$("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(Xe,{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(Z,{variant:"ghost",size:"icon",onClick:c,disabled:s||i,className:"h-8 w-8",children:n.jsx(ye,{size:14})}),n.jsx(Z,{variant:"outline",size:"icon",onClick:l,disabled:s||i,className:"h-8 w-8",children:n.jsx(de,{size:14})})]}):u?n.jsxs(Se,{variant:"outline",className:"h-6 px-2 text-xs",children:[n.jsx(de,{size:12}),"Accepted"]}):p?n.jsxs(Se,{variant:"outline",className:"h-6 px-2 text-xs",children:[n.jsx(ye,{size:12}),"Declined"]}):null})]})}function ls(){const[t,e]=w.useState(!1),s=w.useContext(dt),{data:a}=s.hooks.useListUserInvitations(),{data:i}=J.useListOrganizations(),[r,o]=w.useState({}),m=(a??[]).filter(f=>new Date(f.expiresAt)>new Date).map(f=>{const g=(i??[]).find(x=>x.id===f.organizationId);return{...f,organizationSlug:g?.slug||f.organizationSlug,organizationName:g?.name||f.organizationName}}).map(f=>({...f,status:r[f.id]||f.status})),u=[...m].sort((f,g)=>{const x={pending:0,accepted:1,rejected:2};return(x[f.status]??999)-(x[g.status]??999)}),b=m.filter(f=>f.status==="pending").length>0,j=(f,g)=>{o(x=>({...x,[f]:g}))};return n.jsxs(De,{open:t,onOpenChange:e,children:[n.jsx(Pe,{asChild:!0,children:n.jsxs(Z,{variant:"ghost",size:"sm",className:"relative h-7 w-7 p-0","aria-label":"Inbox",children:[n.jsx(Ne,{size:18,className:"text-muted-foreground"}),b&&n.jsx("span",{className:"absolute bottom-1 right-0.5 h-2 w-2 rounded-full bg-destructive ring-2 ring-background"})]})}),n.jsxs(Re,{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:u.length>0?u.map(f=>n.jsx(os,{invitation:f,onStatusChange:j},f.id)):n.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[n.jsx(Ne,{size:32,className:"text-muted-foreground/40 mb-2"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"No invitations at the moment"})]})})]})]})}const cs="sidebar_state",ds=3600*24*7,ms="16rem",fs="18rem",us="3rem",ps="b",tt=w.createContext(null);function ve(){const t=w.useContext(tt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function hs(t){const e=h.c(21),{defaultOpen:s,open:a,onOpenChange:i,children:r}=t,o=s===void 0?!0:s,l=ie(),[c,d]=w.useState(!1),[m,u]=w.useState(o),p=a??m;let b;e[0]!==p||e[1]!==i?(b=z=>{const C=typeof z=="function"?z(p):z;i?i(C):u(C),document.cookie=`${cs}=${C}; path=/; max-age=${ds}`},e[0]=p,e[1]=i,e[2]=b):b=e[2];const j=b;let f;e[3]!==l||e[4]!==j?(f=()=>l?d(gs):j(xs),e[3]=l,e[4]=j,e[5]=f):f=e[5];const g=f;let x,v;e[6]!==g?(x=()=>{const z=C=>{if(C.key===ps&&(C.metaKey||C.ctrlKey)){const I=C.target;if(I.tagName==="INPUT"||I.tagName==="TEXTAREA"||I.isContentEditable)return;C.preventDefault(),g()}};return globalThis.addEventListener("keydown",z),()=>globalThis.removeEventListener("keydown",z)},v=[g],e[6]=g,e[7]=x,e[8]=v):(x=e[7],v=e[8]),w.useEffect(x,v);const S=p?"expanded":"collapsed";let _;e[9]!==l||e[10]!==p||e[11]!==c||e[12]!==j||e[13]!==S||e[14]!==g?(_={state:S,open:p,setOpen:j,isMobile:l,openMobile:c,setOpenMobile:d,toggleSidebar:g},e[9]=l,e[10]=p,e[11]=c,e[12]=j,e[13]=S,e[14]=g,e[15]=_):_=e[15];const N=_;let k;e[16]!==r?(k=n.jsx(He,{delayDuration:0,children:r}),e[16]=r,e[17]=k):k=e[17];let y;return e[18]!==N||e[19]!==k?(y=n.jsx(tt.Provider,{value:N,children:k}),e[18]=N,e[19]=k,e[20]=y):y=e[20],y}function xs(t){return!t}function gs(t){return!t}function bs(t){const e=h.c(14);let s,a,i,r;e[0]!==t?({className:a,style:r,children:s,...i}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i,e[4]=r):(s=e[1],a=e[2],i=e[3],r=e[4]);let o;e[5]!==r?(o={"--sidebar-width":ms,"--sidebar-width-icon":us,...r},e[5]=r,e[6]=o):o=e[6];const l=o;let c;e[7]!==a?(c=$("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]!==i||e[11]!==l||e[12]!==c?(d=n.jsx("div",{"data-slot":"sidebar-wrapper",style:l,className:c,...i,children:s}),e[9]=s,e[10]=i,e[11]=l,e[12]=c,e[13]=d):d=e[13],d}function js(t){const e=h.c(46);let s,a,i,r,o,l;e[0]!==t?({side:r,variant:o,collapsible:l,className:a,children:s,...i}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i,e[4]=r,e[5]=o,e[6]=l):(s=e[1],a=e[2],i=e[3],r=e[4],o=e[5],l=e[6]);const c=r===void 0?"left":r,d=o===void 0?"sidebar":o,m=l===void 0?"offcanvas":l,{isMobile:u,state:p,openMobile:b,setOpenMobile:j}=ve();if(m==="none"){let C;e[7]!==a?(C=$("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",a),e[7]=a,e[8]=C):C=e[8];let I;return e[9]!==s||e[10]!==i||e[11]!==C?(I=n.jsx("div",{"data-slot":"sidebar",className:C,...i,children:s}),e[9]=s,e[10]=i,e[11]=C,e[12]=I):I=e[12],I}if(u){let C;e[13]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":fs},e[13]=C):C=e[13];let I;e[14]===Symbol.for("react.memo_cache_sentinel")?(I=n.jsxs(Tt,{className:"sr-only",children:[n.jsx(Ot,{children:"Sidebar"}),n.jsx(Mt,{children:"Displays the mobile sidebar."})]}),e[14]=I):I=e[14];let O;e[15]!==s?(O=n.jsx("div",{className:"flex h-full w-full flex-col",children:s}),e[15]=s,e[16]=O):O=e[16];let T;e[17]!==c||e[18]!==O?(T=n.jsxs(At,{"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,O]}),e[17]=c,e[18]=O,e[19]=T):T=e[19];let M;return e[20]!==b||e[21]!==i||e[22]!==j||e[23]!==T?(M=n.jsx($t,{open:b,onOpenChange:j,...i,children:T}),e[20]=b,e[21]=i,e[22]=j,e[23]=T,e[24]=M):M=e[24],M}const f=p==="collapsed"?m:"",g=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 x;e[25]!==g?(x=$("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",g),e[25]=g,e[26]=x):x=e[26];let v;e[27]!==x?(v=n.jsx("div",{"data-slot":"sidebar-gap",className:x}),e[27]=x,e[28]=v):v=e[28];const S=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 N;e[29]!==a||e[30]!==S||e[31]!==_?(N=$("fixed top-12 bottom-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",S,_,a),e[29]=a,e[30]=S,e[31]=_,e[32]=N):N=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]!==i||e[36]!==N||e[37]!==k?(y=n.jsx("div",{"data-slot":"sidebar-container",className:N,...i,children:k}),e[35]=i,e[36]=N,e[37]=k,e[38]=y):y=e[38];let z;return e[39]!==c||e[40]!==p||e[41]!==y||e[42]!==f||e[43]!==v||e[44]!==d?(z=n.jsxs("div",{className:"group peer text-foreground hidden md:block border-r","data-state":p,"data-collapsible":f,"data-variant":d,"data-side":c,"data-slot":"sidebar",children:[v,y]}),e[39]=c,e[40]=p,e[41]=y,e[42]=f,e[43]=v,e[44]=d,e[45]=z):z=e[45],z}function vs(t){const e=h.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 i;e[3]!==s?(i=$("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]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx("main",{"data-slot":"sidebar-inset",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function ws(t){const e=h.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 i;e[3]!==s?(i=$("h-4 m-0! w-full",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx("div",{"data-sidebar":"separator",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function Ss(t){const e=h.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 i;e[3]!==s?(i=$("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function Ns(t){const e=h.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 i;e[3]!==s?(i=$("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function ys(t){const e=h.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 i;e[3]!==s?(i=$("w-full text-sm",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function Cs(t){const e=h.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 i;e[3]!==s?(i=$("flex w-full min-w-0 flex-col gap-1",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function ue(t){const e=h.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 i;e[3]!==s?(i=$("group/menu-item relative",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}const _s=ft("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 st(t){const e=h.c(28);let s,a,i,r,o,l,c;e[0]!==t?({asChild:i,isActive:r,variant:o,size:l,tooltip:c,className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i,e[4]=r,e[5]=o,e[6]=l,e[7]=c):(s=e[1],a=e[2],i=e[3],r=e[4],o=e[5],l=e[6],c=e[7]);const d=i===void 0?!1:i,m=r===void 0?!1:r,u=o===void 0?"default":o,p=l===void 0?"default":l,b=d?mt:"button",{isMobile:j,state:f}=ve();let g;e[8]!==s||e[9]!==p||e[10]!==u?(g=$(_s({variant:u,size:p}),s),e[8]=s,e[9]=p,e[10]=u,e[11]=g):g=e[11];let x;e[12]!==b||e[13]!==m||e[14]!==a||e[15]!==p||e[16]!==g?(x=n.jsx(b,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":p,"data-active":m,className:g,...a}),e[12]=b,e[13]=m,e[14]=a,e[15]=p,e[16]=g,e[17]=x):x=e[17];const v=x;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 S;e[20]!==v?(S=n.jsx(Ue,{asChild:!0,children:v}),e[20]=v,e[21]=S):S=e[21];const _=f!=="collapsed"||j;let N;e[22]!==_||e[23]!==c?(N=n.jsx(Le,{side:"right",align:"center",hidden:_,...c}),e[22]=_,e[23]=c,e[24]=N):N=e[24];let k;return e[25]!==S||e[26]!==N?(k=n.jsxs(Be,{children:[S,N]}),e[25]=S,e[26]=N,e[27]=k):k=e[27],k}function ks(t){const e=h.c(26),{item:s}=t,a=fe(),{org:i}=me(),r=be(i.id),o=Ht(i.id);let l;e[0]!==o.update||e[1]!==s.url||e[2]!==r?.sidebar_items?(l=async()=>{const _=(r?.sidebar_items||[]).filter(N=>N.url!==s.url);await o.update.mutateAsync({sidebar_items:_})},e[0]=o.update,e[1]=s.url,e[2]=r?.sidebar_items,e[3]=l):l=e[3];const c=l;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 u=m;let p;e[7]!==s.url||e[8]!==a?(p=()=>{a({to:s.url})},e[7]=s.url,e[8]=a,e[9]=p):p=e[9];const b=s.title;let j;e[10]!==u||e[11]!==s.icon||e[12]!==s.title?(j=n.jsx("div",{className:"flex items-center justify-center shrink-0",children:u?n.jsx("img",{src:s.icon,alt:s.title,className:"h-4 w-4 rounded object-cover"}):n.jsx(Lt,{size:16,className:"text-muted-foreground group-hover/item:text-foreground transition-colors"})}),e[10]=u,e[11]=s.icon,e[12]=s.title,e[13]=j):j=e[13];let f;e[14]!==s.title?(f=s.title.toLocaleLowerCase(),e[14]=s.title,e[15]=f):f=e[15];let g;e[16]!==f?(g=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:f})}),e[16]=f,e[17]=g):g=e[17];let x;e[18]!==c?(x=n.jsx(ce,{size:16,className:"text-muted-foreground opacity-0 group-hover/item:opacity-50 hover:opacity-100 cursor-pointer",onClick:S=>{S.preventDefault(),S.stopPropagation(),c()}}),e[18]=c,e[19]=x):x=e[19];let v;return e[20]!==s.title||e[21]!==p||e[22]!==j||e[23]!==g||e[24]!==x?(v=n.jsx(ue,{children:n.jsxs(st,{className:"w-full pr-2 group/item relative cursor-pointer text-foreground/90 hover:text-foreground",onClick:p,tooltip:b,children:[j,g,x]})}),e[20]=s.title,e[21]=p,e[22]=j,e[23]=g,e[24]=x,e[25]=v):v=e[25],v}function Is(){const t=h.c(4),{org:e}=me(),a=be(e.id)?.sidebar_items;if(!a?.length)return null;let i;t[0]!==a?(i=a.map(zs),t[0]=a,t[1]=i):i=t[1];let r;return t[2]!==i?(r=n.jsx(nt,{children:i}),t[2]=i,t[3]=r):r=t[3],r}function zs(t){return n.jsx(ks,{item:t},t.url)}function ke(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(ue,{children:n.jsx("div",{className:"flex items-center gap-2 px-4 py-2",children:n.jsx(Ee,{className:"h-4 flex-1"})})}),t[0]=e):e=t[0],e}function nt(t){const e=h.c(4),{children:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(ws,{className:"my-2 -ml-1"}),e[0]=a):a=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(ue,{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]=i):i=e[1];let r;return e[2]!==s?(r=n.jsxs(n.Fragment,{children:[a,i,s]}),e[2]=s,e[3]=r):r=e[3],r}function $s(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(w.Suspense,{fallback:n.jsxs(nt,{children:[n.jsx(ke,{}),n.jsx(ke,{})]}),children:n.jsx(Is,{})}),t[0]=e):e=t[0],e}function Ts(){const t=h.c(14),{locator:e,org:s}=me(),a=fe(),i=xe(),{org:r}=we.parse(e);let o;t[0]!==e?(o=we.isOrgAdminProject(e),t[0]=e,t[1]=o):o=t[1];const l=o,c=be(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 u;t[4]!==m?(u=y=>m.includes(y.pluginId),t[4]=m,t[5]=u):u=t[5];const p=ut.filter(u),b=i.location.pathname===`/${r}`||i.location.pathname===`/${r}/`;let j;t[6]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(Ut,{}),t[6]=j):j=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(Ze,{}),t[7]=f):f=t[7];let g;t[8]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(Ct,{}),t[8]=g):g=t[8];let x;t[9]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(Me,{}),t[9]=x):x=t[9];let v;t[10]===Symbol.for("react.memo_cache_sentinel")?(v=n.jsx(et,{}),t[10]=v):v=t[10];let S;t[11]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx(Ge,{}),t[11]=S):S=t[11];let _;t[12]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(Qe,{}),t[12]=_):_=t[12];let N;t[13]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx(je,{}),t[13]=N):N=t[13];const k=[{key:"home",label:"Home",icon:j,onClick:()=>{b?window.dispatchEvent(new CustomEvent("reset-home-view")):a({to:"/$org",params:{org:r}})}},{key:"store",label:"Store",icon:f,onClick:()=>a({to:"/$org/store",params:{org:r}})},...p.map(y=>({key:y.pluginId,label:y.label,icon:y.icon,onClick:()=>a({to:"/$org/$pluginId",params:{org:r,pluginId:y.pluginId}})})),{key:"mcps",label:"Connections",icon:g,onClick:()=>a({to:"/$org/mcps",params:{org:r}})},{key:"agents",label:"Agents",icon:x,onClick:()=>a({to:"/$org/agents",params:{org:r}})},{key:"workflow",label:"Workflows",icon:v,onClick:()=>a({to:"/$org/workflows",params:{org:r}})},{key:"monitoring",label:"Monitoring",icon:S,onClick:()=>a({to:"/$org/monitoring",params:{org:r}})},{key:"members",label:"Members",icon:_,onClick:()=>a({to:"/$org/members",params:{org:r}})},{key:"settings",label:"Settings",icon:N,onClick:()=>a({to:"/$org/settings",params:{org:r}})}];return l?k:[]}function at(t){const e=h.c(10),{navigationItems:s,footer:a,additionalContent:i,variant:r,collapsible:o}=t,l=r===void 0?"sidebar":r,c=o===void 0?"icon":o;let d;e[0]!==s?(d=s.map(Os),e[0]=s,e[1]=d):d=e[1];let m;e[2]!==i||e[3]!==d?(m=n.jsx(Ss,{className:"flex-1 overflow-x-hidden",children:n.jsx(Ns,{className:"font-medium",children:n.jsx(ys,{children:n.jsxs(Cs,{className:"gap-0.5",children:[d,i]})})})}),e[2]=i,e[3]=d,e[4]=m):m=e[4];let u;return e[5]!==c||e[6]!==a||e[7]!==m||e[8]!==l?(u=n.jsxs(js,{variant:l,collapsible:c,children:[m,a]}),e[5]=c,e[6]=a,e[7]=m,e[8]=l,e[9]=u):u=e[9],u}function Os(t){return n.jsx(ue,{children:n.jsxs(st,{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)}at.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(Ee,{className:"h-full bg-sidebar-accent rounded-md"})},s))})};function Ms(){const t=h.c(3),e=Ts();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(Ae,{children:n.jsx(w.Suspense,{fallback:null,children:n.jsx($s,{})})}),t[0]=s):s=t[0];let a;return t[1]!==e?(a=n.jsx(at,{navigationItems:e,additionalContent:s}),t[1]=e,t[2]=a):a=t[2],a}function As(t){const e=h.c(12);let s,a,i,r;e[0]!==t?({className:s,orientation:i,decorative:r,...a}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i,e[4]=r):(s=e[1],a=e[2],i=e[3],r=e[4]);const o=i===void 0?"horizontal":i,l=r===void 0?!0:r;let c;e[5]!==s?(c=$("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]!==l||e[8]!==o||e[9]!==a||e[10]!==c?(d=n.jsx(pt,{"data-slot":"separator-root",decorative:l,orientation:o,className:c,...a}),e[7]=l,e[8]=o,e[9]=a,e[10]=c,e[11]=d):d=e[11],d}const it=w.createContext(null);function Es(){const t=w.useContext(it);if(!t)throw new Error("TopbarSwitcher compound components must be used within TopbarSwitcher.Root");return t}function Ds(t){const e=h.c(10),{children:s,onItemHover:a}=t,[i,r]=w.useState(null);let o;e[0]!==a?(o=u=>{r(u),a?.(u)},e[0]=a,e[1]=o):o=e[1];const l=o;let c;e[2]!==i||e[3]!==l?(c={hoveredItem:i,setHoveredItem:l},e[2]=i,e[3]=l,e[4]=c):c=e[4];let d;e[5]!==s?(d=n.jsx(De,{children:s}),e[5]=s,e[6]=d):d=e[6];let m;return e[7]!==c||e[8]!==d?(m=n.jsx(it.Provider,{value:c,children:d}),e[7]=c,e[8]=d,e[9]=m):m=e[9],m}function Ps(t){const e=h.c(6),{children:s,onClick:a}=t;let i;e[0]!==s||e[1]!==a?(i=n.jsx(Z,{variant:"link",className:"p-0.5 h-auto",onClick:a,type:"button",children:s}),e[0]=s,e[1]=a,e[2]=i):i=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(Pe,{asChild:!0,children:n.jsx(Z,{size:"icon",variant:"ghost",className:"w-6 h-6 p-0",children:n.jsx(Rt,{size:16,className:"opacity-50"})})}),e[3]=r):r=e[3];let o;return e[4]!==i?(o=n.jsxs("div",{className:"flex items-center gap-1",children:[i,r]}),e[4]=i,e[5]=o):o=e[5],o}function Rs(t){const e=h.c(8),{item:s,fallback:a}=t,i=a===void 0?"":a,r=s?.avatarUrl??"",o=s?.name??i;let l;e[0]!==r||e[1]!==o?(l=n.jsx(ne,{url:r,fallback:o,size:"xs",objectFit:"contain"}),e[0]=r,e[1]=o,e[2]=l):l=e[2];const c=s?.name??i;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]!==l||e[6]!==d?(m=n.jsxs("div",{className:"flex items-center gap-2",children:[l,d]}),e[5]=l,e[6]=d,e[7]=m):m=e[7],m}function Ls(t){const e=h.c(6),{children:s,align:a}=t,i=a===void 0?"start":a,o=w.Children.toArray(s).filter(Hs).length===1?"280px":"480px";let l;e[0]!==o?(l={width:o},e[0]=o,e[1]=l):l=e[1];let c;return e[2]!==i||e[3]!==s||e[4]!==l?(c=n.jsx(Re,{align:i,className:"p-0 flex items-start",style:l,children:s}),e[2]=i,e[3]=s,e[4]=l,e[5]=c):c=e[5],c}function Hs(t){return w.isValidElement(t)&&(t.type===ot||t.type===rt)}function rt(t){const e=h.c(5),{children:s,className:a}=t;let i;e[0]!==a?(i=$("flex flex-col border-border w-[240px] border-r last:border-r-0 last:w-full",a),e[0]=a,e[1]=i):i=e[1];let r;return e[2]!==s||e[3]!==i?(r=n.jsx("div",{className:i,children:s}),e[2]=s,e[3]=i,e[4]=r):r=e[4],r}const ot=rt;function Us(t){const e=h.c(6),{placeholder:s,value:a,onChange:i}=t,r=s===void 0?"Search...":s;let o;e[0]!==i?(o=c=>i(c.target.value),e[0]=i,e[1]=o):o=e[1];let l;return e[2]!==r||e[3]!==o||e[4]!==a?(l=n.jsx(Wt,{placeholder:r,value:a,onChange:o,className:"rounded-none border-t-0 border-x-0 focus-visible:border-border focus-visible:ring-0"}),e[2]=r,e[3]=o,e[4]=a,e[5]=l):l=e[5],l}function Bs(t){const e=h.c(6),{children:s,emptyMessage:a}=t,i=a===void 0?"No items found.":a,r=w.Children.count(s)>0;let o;e[0]!==i||e[1]!==r?(o=!r&&n.jsx("div",{className:"text-muted-foreground text-sm px-1 py-8 text-center",children:i}),e[0]=i,e[1]=r,e[2]=o):o=e[2];let l;return e[3]!==s||e[4]!==o?(l=n.jsxs("div",{className:"flex flex-col gap-0.5 p-1 max-h-44 overflow-y-auto",children:[o,s]}),e[3]=s,e[4]=o,e[5]=l):l=e[5],l}function Ws(t){const e=h.c(15),{item:s,onClick:a,onHover:i,children:r}=t,o=Es();let l;e[0]!==o||e[1]!==s||e[2]!==i?(l=()=>{o.setHoveredItem(s.slug),i?.(s)},e[0]=o,e[1]=s,e[2]=i,e[3]=l):l=e[3];const c=l;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]!==r||e[8]!==s.avatarUrl||e[9]!==s.name?(m=r||n.jsxs(n.Fragment,{children:[n.jsx(ne,{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]=r,e[8]=s.avatarUrl,e[9]=s.name,e[10]=m):m=e[10];let u;return e[11]!==c||e[12]!==d||e[13]!==m?(u=n.jsx(Z,{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]=u):u=e[14],u}function Vs(t){const e=h.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 Fs(t){const e=h.c(11),{onClick:s,icon:a,children:i,variant:r}=t,l=(r===void 0?"default":r)==="muted"&&"text-muted-foreground";let c;e[0]!==l?(c=$("w-full justify-start font-normal",l),e[0]=l,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]!==i?(m=n.jsx("span",{children:i}),e[4]=i,e[5]=m):m=e[5];let u;return e[6]!==s||e[7]!==c||e[8]!==d||e[9]!==m?(u=n.jsxs(Z,{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]=u):u=e[10],u}function Ks(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(As,{}),t[0]=e):e=t[0],e}function Gs(){const t=h.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 H=Object.assign(Ds,{Trigger:Ps,CurrentItem:Rs,Content:Ls,Panel:ot,Search:Us,Items:Bs,Item:Ws,Actions:Vs,Action:Fs,Separator:Ks,Skeleton:Gs});function he(){const t=h.c(59);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const{org:s}=ze(e),{data:a}=J.useListOrganizations(),i=fe();let r;t[1]!==s||t[2]!==a?(r=a?.find(A=>A.slug===s),t[1]=s,t[2]=a,t[3]=r):r=t[3];const o=r,[l,c]=w.useState(""),[d,m]=w.useState(!1);let u,p,b,j,f,g,x,v;if(t[4]!==o||t[5]!==i||t[6]!==s||t[7]!==l||t[8]!==a){const E=(a?(()=>{const R=a.filter(L=>L.name.toLowerCase().includes(l.toLowerCase()));if(s){const L=R.findIndex(K=>K.slug===s);if(L>0){const K=R[L];K&&(R.splice(L,1),R.unshift(K))}}return R})():[]).map(Zs);let P;t[17]!==o?(P=o?{slug:o.slug,name:o.name,avatarUrl:o.logo}:void 0,t[17]=o,t[18]=P):P=t[18];const W=P;j=H;let V;t[19]!==i||t[20]!==s?(V=()=>i({to:"/$org",params:{org:s??""}}),t[19]=i,t[20]=s,t[21]=V):V=t[21];let U;t[22]!==W?(U=n.jsx(H.CurrentItem,{item:W}),t[22]=W,t[23]=U):U=t[23],t[24]!==V||t[25]!==U?(v=n.jsx(H.Trigger,{onClick:V,children:U}),t[24]=V,t[25]=U,t[26]=v):v=t[26],b=H.Content,p=H.Panel,t[27]!==l?(x=n.jsx(H.Search,{placeholder:"Search organizations...",value:l,onChange:c}),t[27]=l,t[28]=x):x=t[28],u=H.Items,f="No organizations found.";let F;t[29]!==i?(F=R=>n.jsx(H.Item,{item:R,onClick:L=>i({to:"/$org",params:{org:L.slug}})},R.slug),t[29]=i,t[30]=F):F=t[30],g=E.map(F),t[4]=o,t[5]=i,t[6]=s,t[7]=l,t[8]=a,t[9]=u,t[10]=p,t[11]=b,t[12]=j,t[13]=f,t[14]=g,t[15]=x,t[16]=v}else u=t[9],p=t[10],b=t[11],j=t[12],f=t[13],g=t[14],x=t[15],v=t[16];let S;t[31]!==u||t[32]!==f||t[33]!==g?(S=n.jsx(u,{emptyMessage:f,children:g}),t[31]=u,t[32]=f,t[33]=g,t[34]=S):S=t[34];let _,N;t[35]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(H.Actions,{children:n.jsx(H.Action,{onClick:()=>m(!0),variant:"muted",children:"+ Create organization"})}),N=n.jsx(H.Separator,{}),t[35]=_,t[36]=N):(_=t[35],N=t[36]);let k;t[37]!==i?(k=()=>i({to:"/"}),t[37]=i,t[38]=k):k=t[38];let y;t[39]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(Vt,{}),t[39]=y):y=t[39];let z;t[40]!==k?(z=n.jsx(H.Actions,{children:n.jsx(H.Action,{onClick:k,icon:y,children:"See all organizations"})}),t[40]=k,t[41]=z):z=t[41];let C;t[42]!==p||t[43]!==z||t[44]!==x||t[45]!==S?(C=n.jsxs(p,{children:[x,S,_,N,z]}),t[42]=p,t[43]=z,t[44]=x,t[45]=S,t[46]=C):C=t[46];let I;t[47]!==b||t[48]!==C?(I=n.jsx(b,{children:C}),t[47]=b,t[48]=C,t[49]=I):I=t[49];let O;t[50]!==j||t[51]!==I||t[52]!==v?(O=n.jsxs(j,{children:[v,I]}),t[50]=j,t[51]=I,t[52]=v,t[53]=O):O=t[53];let T;t[54]!==d?(T=n.jsx(Bt,{open:d,onOpenChange:m}),t[54]=d,t[55]=T):T=t[55];let M;return t[56]!==O||t[57]!==T?(M=n.jsxs(n.Fragment,{children:[O,T]}),t[56]=O,t[57]=T,t[58]=M):M=t[58],M}function Zs(t){return{slug:t.slug,name:t.name,avatarUrl:t.logo}}he.Skeleton=H.Skeleton;function qs({prop:t,defaultProp:e,onChange:s=()=>{}}){const[a,i]=Ys({defaultProp:e,onChange:s}),r=t!==void 0,o=r?t:a,l=$e(s),c=w.useCallback(d=>{if(r){const u=typeof d=="function"?d(t):d;u!==t&&l(u)}else i(d)},[r,t,i,l]);return[o,c]}function Ys({defaultProp:t,onChange:e}){const s=w.useState(t),[a]=s,i=w.useRef(a),r=$e(e);return w.useEffect(()=>{i.current!==a&&(r(a),i.current=a)},[a,i,r]),s}function Js(t){const e=h.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(ae.Root,{"data-slot":"drawer",...s}),e[2]=s,e[3]=a):a=e[3],a}function Xs(t){const e=h.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(ae.Trigger,{"data-slot":"drawer-trigger",...s}),e[2]=s,e[3]=a):a=e[3],a}function Qs(t){const e=h.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(ae.Portal,{"data-slot":"drawer-portal",...s}),e[2]=s,e[3]=a):a=e[3],a}function en(t){const e=h.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 i;e[3]!==s?(i=$("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]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx(ae.Overlay,{"data-slot":"drawer-overlay",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function tn(t){const e=h.c(12);let s,a,i;e[0]!==t?({className:a,children:s,...i}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i):(s=e[1],a=e[2],i=e[3]);let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(en,{}),e[4]=r):r=e[4];let o;e[5]!==a?(o=$("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]=o):o=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=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]=l):l=e[7];let c;return e[8]!==s||e[9]!==i||e[10]!==o?(c=n.jsxs(Qs,{"data-slot":"drawer-portal",children:[r,n.jsxs(ae.Content,{"data-slot":"drawer-content",className:o,...i,children:[l,s]})]}),e[8]=s,e[9]=i,e[10]=o,e[11]=c):c=e[11],c}function sn(t){const e=h.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 i;e[3]!==s?(i=$("flex flex-col gap-1.5 px-4 py-2",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx("div",{"data-slot":"drawer-header",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function nn(t){const e=h.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 i;e[3]!==s?(i=$("text-foreground font-semibold",s),e[3]=s,e[4]=i):i=e[4];let r;return e[5]!==a||e[6]!==i?(r=n.jsx(ae.Title,{"data-slot":"drawer-title",className:i,...a}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}const lt=w.createContext({setOpen:()=>{}}),an=()=>w.useContext(lt),rn=t=>{const e=h.c(25);let s,a,i,r,o;e[0]!==t?({children:s,defaultOpen:a,open:r,onOpenChange:i,...o}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=i,e[4]=r,e[5]=o):(s=e[1],a=e[2],i=e[3],r=e[4],o=e[5]);const l=a??!1;let c;e[6]!==i||e[7]!==r||e[8]!==l?(c={prop:r,defaultProp:l,onChange:i},e[6]=i,e[7]=r,e[8]=l,e[9]=c):c=e[9];const[d,m]=qs(c);let u;e[10]!==m?(u={setOpen:m},e[10]=m,e[11]=u):u=e[11];let p;e[12]!==s||e[13]!==d||e[14]!==o||e[15]!==m?(p=n.jsx(Js,{open:d,onOpenChange:m,...o,children:s}),e[12]=s,e[13]=d,e[14]=o,e[15]=m,e[16]=p):p=e[16];let b;e[17]!==d||e[18]!==o||e[19]!==m||e[20]!==p?(b=n.jsx(Gt,{open:d,onOpenChange:m,...o,children:p}),e[17]=d,e[18]=o,e[19]=m,e[20]=p,e[21]=b):b=e[21];let j;return e[22]!==u||e[23]!==b?(j=n.jsx(lt.Provider,{value:u,children:b}),e[22]=u,e[23]=b,e[24]=j):j=e[24],j},on=t=>{const{children:e,title:s,...a}=t,i=ie(),{className:r,...o}=a;return i?n.jsxs(tn,{...o,children:[n.jsx(sn,{className:"hidden",children:n.jsx(nn,{children:s})}),n.jsx("div",{className:$("flex flex-col gap-2 p-2 py-4",r),children:e})]}):n.jsx(Kt,{...a,children:e})},ln=t=>{const{children:e,...s}=t,{setOpen:a}=an(),i=ie(),{className:r,...o}=s;return i?n.jsx("div",{...o,onClick:l=>{a(!1);const{onClick:c}=o;c?.(l)},className:$("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",r),children:e}):n.jsx(Zt,{...s,children:e})},cn=t=>{const e=h.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 i=ie();let r;return e[3]!==s||e[4]!==i||e[5]!==a?(r=i?n.jsx(Xs,{asChild:!0,children:s}):n.jsx(Ft,{...a,children:s}),e[3]=s,e[4]=i,e[5]=a,e[6]=r):r=e[6],r},dn=t=>{const e=h.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 i=ie();let r;return e[3]!==s||e[4]!==i||e[5]!==a?(r=i?n.jsx(Ce,{className:$(s),...a}):n.jsx(Ce,{className:$(s),...a}),e[3]=s,e[4]=i,e[5]=a,e[6]=r):r=e[6],r};function mn(t){const e=h.c(11),{user:s,trigger:a,align:i,children:r}=t,o=i===void 0?"start":i;let l;e[0]!==a||e[1]!==s?(l=a(s),e[0]=a,e[1]=s,e[2]=l):l=e[2];let c;e[3]!==l?(c=n.jsx(cn,{asChild:!0,children:n.jsx("div",{children:l})}),e[3]=l,e[4]=c):c=e[4];let d;e[5]!==o||e[6]!==r?(d=n.jsx(on,{side:"top",align:o,className:"md:w-[240px]",children:r}),e[5]=o,e[6]=r,e[7]=d):d=e[7];let m;return e[8]!==c||e[9]!==d?(m=n.jsxs(rn,{children:[c,d]}),e[8]=c,e[9]=d,e[10]=m):m=e[10],m}function fn(t){const e=h.c(8),{children:s,onClick:a,className:i,asChild:r}=t;let o;e[0]!==r||e[1]!==s||e[2]!==a?(o=r?s:n.jsx("button",{type:"button",className:"flex items-center gap-2 text-sm w-full cursor-pointer",onClick:a,children:s}),e[0]=r,e[1]=s,e[2]=a,e[3]=o):o=e[3];let l;return e[4]!==r||e[5]!==i||e[6]!==o?(l=n.jsx(ln,{asChild:r,className:i,children:o}),e[4]=r,e[5]=i,e[6]=o,e[7]=l):l=e[7],l}function un(t){const e=h.c(2),{className:s}=t;let a;return e[0]!==s?(a=n.jsx(dn,{className:s}),e[0]=s,e[1]=a):a=e[1],a}function pn(){const t=h.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 G=Object.assign(mn,{Item:fn,Separator:un,Skeleton:pn});function hn(t){const e=h.c(48),{open:s,onOpenChange:a,user:i,userImage:r}=t,[o,l]=yt(),[c,d]=w.useState(!1);let m;e[0]!==i.id?(m=()=>{navigator.clipboard.writeText(i.id),d(!0),setTimeout(()=>d(!1),2e3)},e[0]=i.id,e[1]=m):m=e[1];const u=m;let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=n.jsx(qt,{className:"text-base",children:"Profile Settings"}),e[2]=p):p=e[2];let b;e[3]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsxs(Yt,{className:"px-6 pt-6 pb-4 border-b border-border shrink-0 relative",children:[p,n.jsxs(Jt,{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(ce,{size:16}),n.jsx("span",{className:"sr-only",children:"Close"})]})]}),e[3]=b):b=e[3];const j=i.name||"U";let f;e[4]!==j||e[5]!==r?(f=n.jsx(ne,{url:r,fallback:j,shape:"circle",size:"xl",className:"h-16 w-16"}),e[4]=j,e[5]=r,e[6]=f):f=e[6];const g=i.name||"User";let x;e[7]!==g?(x=n.jsx("span",{className:"text-base font-medium text-foreground",children:g}),e[7]=g,e[8]=x):x=e[8];let v;e[9]!==i.email?(v=n.jsx("span",{className:"text-sm text-muted-foreground",children:i.email}),e[9]=i.email,e[10]=v):v=e[10];let S;e[11]!==x||e[12]!==v?(S=n.jsxs("div",{className:"flex flex-col gap-1",children:[x,v]}),e[11]=x,e[12]=v,e[13]=S):S=e[13];let _;e[14]!==f||e[15]!==S?(_=n.jsxs("div",{className:"flex items-center gap-4",children:[f,S]}),e[14]=f,e[15]=S,e[16]=_):_=e[16];let N;e[17]!==o||e[18]!==l?(N=()=>l(!o),e[17]=o,e[18]=l,e[19]=N):N=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(es,{className:"text-sm font-medium text-foreground flex items-center gap-2 pointer-events-none",children:[n.jsx(ss,{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]!==o||e[22]!==l?(y=n.jsx("div",{onClick:xn,children:n.jsx(ts,{checked:o,onCheckedChange:l})}),e[21]=o,e[22]=l,e[23]=y):y=e[23];let z;e[24]!==N||e[25]!==y?(z=n.jsxs("button",{type:"button",onClick:N,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]=N,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 I;e[30]!==i.id?(I=n.jsx("span",{className:"font-mono text-xs",children:i.id}),e[30]=i.id,e[31]=I):I=e[31];let O;e[32]!==c?(O=c?n.jsx(de,{size:14,className:"text-green-600"}):n.jsx(We,{size:14,className:"opacity-0 group-hover:opacity-100 transition-opacity"}),e[32]=c,e[33]=O):O=e[33];let T;e[34]!==u||e[35]!==I||e[36]!==O?(T=n.jsx(Ue,{asChild:!0,children:n.jsxs("button",{type:"button",onClick:u,className:"group flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[I,O]})}),e[34]=u,e[35]=I,e[36]=O,e[37]=T):T=e[37];let M;e[38]===Symbol.for("react.memo_cache_sentinel")?(M=n.jsx(Le,{side:"top",children:n.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[38]=M):M=e[38];let A;e[39]!==T?(A=n.jsx("div",{className:"border-t border-border px-5 py-4 flex items-center shrink-0",children:n.jsx(He,{children:n.jsxs(Be,{children:[T,M]})})}),e[39]=T,e[40]=A):A=e[40];let E;e[41]!==C||e[42]!==A?(E=n.jsxs(Xt,{className:"sm:max-w-lg sm:max-h-[85vh] p-0 flex flex-col",closeButtonClassName:"hidden",children:[b,n.jsxs("div",{className:"flex flex-col",children:[C,A]})]}),e[41]=C,e[42]=A,e[43]=E):E=e[43];let P;return e[44]!==a||e[45]!==s||e[46]!==E?(P=n.jsx(Qt,{open:s,onOpenChange:a,children:E}),e[44]=a,e[45]=s,e[46]=E,e[47]=P):P=e[47],P}function xn(t){return t.stopPropagation()}function gn(t){const e=h.c(47),{user:s,userImage:a}=t,[i,r]=w.useState(!1),[o,l]=w.useState(!1);let c;e[0]!==s.email||e[1]!==s.id||e[2]!==s.name?(c=()=>{const P=`ID: ${s.id}
|
|
2
|
-
Name: ${s.name||"N/A"}
|
|
3
|
-
Email: ${s.email}`;navigator.clipboard.writeText(P),l(!0),Y.success("User info copied to clipboard"),setTimeout(()=>l(!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(ne,{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 u=s.name||s.email||"U";let p;e[8]!==u||e[9]!==a?(p=n.jsx(ne,{url:a,fallback:u,shape:"circle",size:"sm"}),e[8]=u,e[9]=a,e[10]=p):p=e[10];const b=s.name||"User";let j;e[11]!==b?(j=n.jsx("div",{className:"text-sm font-medium truncate",children:b}),e[11]=b,e[12]=j):j=e[12];let f;e[13]!==s.email?(f=n.jsx("div",{className:"text-xs text-muted-foreground truncate",children:s.email}),e[13]=s.email,e[14]=f):f=e[14];let g;e[15]!==j||e[16]!==f?(g=n.jsxs("div",{className:"flex-1 min-w-0 text-left",children:[j,f]}),e[15]=j,e[16]=f,e[17]=g):g=e[17];let x;e[18]!==o?(x=n.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:o?n.jsx(de,{size:16,className:"text-green-600"}):n.jsx(We,{size:16,className:"text-muted-foreground"})}),e[18]=o,e[19]=x):x=e[19];let v;e[20]!==p||e[21]!==g||e[22]!==x?(v=n.jsxs("div",{className:"group flex items-center gap-3 w-full py-1",children:[p,g,x]}),e[20]=p,e[21]=g,e[22]=x,e[23]=v):v=e[23];let S;e[24]!==d||e[25]!==v?(S=n.jsx(G.Item,{onClick:d,children:v}),e[24]=d,e[25]=v,e[26]=S):S=e[26];let _;e[27]===Symbol.for("react.memo_cache_sentinel")?(_=n.jsx(G.Separator,{}),e[27]=_):_=e[27];let N,k;e[28]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsxs(G.Item,{onClick:()=>r(!0),children:[n.jsx(je,{className:"text-muted-foreground",size:18}),"Profile Settings"]}),k=n.jsx(G.Separator,{}),e[28]=N,e[29]=k):(N=e[28],k=e[29]);let y;e[30]===Symbol.for("react.memo_cache_sentinel")?(y=n.jsx(ht,{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(G.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(_e,{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(qe,{className:"text-muted-foreground",size:18}),e[32]=C):C=e[32];let I,O;e[33]===Symbol.for("react.memo_cache_sentinel")?(I=n.jsx(G.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(_e,{size:18,className:"ml-auto text-muted-foreground"})]})}),O=n.jsx(G.Separator,{}),e[33]=I,e[34]=O):(I=e[33],O=e[34]);let T;e[35]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsxs(G.Item,{onClick:bn,children:[n.jsx(Je,{size:18,className:"text-muted-foreground"}),"Log out"]}),e[35]=T):T=e[35];let M;e[36]!==S||e[37]!==m||e[38]!==s?(M=n.jsxs(G,{user:s,trigger:m,align:"end",children:[S,_,N,k,z,I,O,T]}),e[36]=S,e[37]=m,e[38]=s,e[39]=M):M=e[39];let A;e[40]!==i||e[41]!==s||e[42]!==a?(A=i&&n.jsx(hn,{open:i,onOpenChange:r,user:s,userImage:a}),e[40]=i,e[41]=s,e[42]=a,e[43]=A):A=e[43];let E;return e[44]!==M||e[45]!==A?(E=n.jsxs(n.Fragment,{children:[M,A]}),e[44]=M,e[45]=A,e[46]=E):E=e[46],E}function bn(){return J.signOut()}function jn(){const t=h.c(7),{data:e}=J.useSession();if(!e?.user){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(ne,{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 i;t[1]!==a||t[2]!==s?(i={...s,name:a},t[1]=a,t[2]=s,t[3]=i):i=t[3];const r=i,o=s.image;let l;return t[4]!==o||t[5]!==r?(l=n.jsx(gn,{user:r,userImage:o}),t[4]=o,t[5]=r,t[6]=l):l=t[6],l}function vn(){const t=h.c(2),s=xe().location.href;let a;return t[0]!==s?(a=n.jsx(jt,{to:"/login",search:{next:s},replace:!0}),t[0]=s,t[1]=a):a=t[1],a}function wn(t){const e=h.c(6),{children:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(xt,{children:n.jsx(Te,{})}),e[0]=a):a=e[0];let i;e[1]!==s?(i=n.jsx(gt,{children:s}),e[1]=s,e[2]=i):i=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(bt,{children:n.jsx(vn,{})}),e[3]=r):r=e[3];let o;return e[4]!==i?(o=n.jsxs(n.Fragment,{children:[a,i,r]}),e[4]=i,e[5]=o):o=e[5],o}function Sn(t){const e=h.c(5),{children:s,className:a}=t;let i;e[0]!==a?(i=$("fixed top-0 left-0 right-0 z-20 bg-sidebar flex items-center w-full h-12 border-b border-border",a),e[0]=a,e[1]=i):i=e[1];let r;return e[2]!==s||e[3]!==i?(r=n.jsx("div",{className:i,children:s}),e[2]=s,e[3]=i,e[4]=r):r=e[4],r}function Nn(t){const e=h.c(5),{children:s,className:a}=t;let i;e[0]!==a?(i=$("flex items-center justify-center px-2.5 h-full border-r border-border",a),e[0]=a,e[1]=i):i=e[1];let r;return e[2]!==s||e[3]!==i?(r=n.jsx("div",{className:i,children:s}),e[2]=s,e[3]=i,e[4]=r):r=e[4],r}function yn(t){const e=h.c(5),{children:s,className:a}=t;let i;e[0]!==a?(i=$("flex items-center gap-2 px-2 h-full",a),e[0]=a,e[1]=i):i=e[1];let r;return e[2]!==s||e[3]!==i?(r=n.jsx("div",{className:i,children:s}),e[2]=s,e[3]=i,e[4]=r):r=e[4],r}function Cn(t){const e=h.c(5),{children:s,className:a}=t;let i;e[0]!==a?(i=$("flex items-center gap-2 px-2 h-full flex-1",a),e[0]=a,e[1]=i):i=e[1];let r;return e[2]!==s||e[3]!==i?(r=n.jsx("div",{className:i,children:s}),e[2]=s,e[3]=i,e[4]=r):r=e[4],r}function _n(t){const e=h.c(5),{children:s,className:a}=t;let i;e[0]!==a?(i=$("flex items-center gap-2 px-2 h-full ml-auto",a),e[0]=a,e[1]=i):i=e[1];let r;return e[2]!==s||e[3]!==i?(r=n.jsx("div",{className:i,children:s}),e[2]=s,e[3]=i,e[4]=r):r=e[4],r}function kn(){const t=h.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-sidebar 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 le=Object.assign(Sn,{Sidebar:Nn,Left:yn,Center:Cn,Right:_n,Skeleton:kn});function ct(){const t=h.c(3),{toggleSidebar:e}=ve();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(Ye,{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(Z,{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 Ie({showSidebarToggle:t=!1,showOrgSwitcher:e=!1,showDecoChat:s=!1,disableDecoChat:a=!1}){const[i,r]=ge(),o=w.useRef(a);a&&i&&o.current!==a&&r(!1),o.current=a;const l=()=>{a||r(c=>!c)};return n.jsxs(le,{children:[t&&n.jsx(le.Sidebar,{children:n.jsx(ct,{})}),n.jsx(le.Left,{children:e&&n.jsx(w.Suspense,{fallback:n.jsx(he.Skeleton,{}),children:n.jsx(he,{})})}),n.jsxs(le.Right,{className:"gap-2",children:[n.jsx(ls,{}),s&&!a&&n.jsxs(Z,{size:"sm",variant:"default",onClick:l,className:"h-7 gap-2",children:[n.jsx(Et,{size:16}),"Chat"]}),n.jsx(jn,{})]})]})}function In(t){const e=h.c(10),{children:s,className:a}=t,[,i]=w.useTransition();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=Fe.decoChatPanelWidth(),e[0]=r):r=e[0];const[o,l]=Ve(r,30);let c;e[1]!==l?(c=p=>i(()=>l(p)),e[1]=l,e[2]=c):c=e[2];const d=c;let m;e[3]!==a?(m=$("min-w-0",a),e[3]=a,e[4]=m):m=e[4];let u;return e[5]!==o||e[6]!==s||e[7]!==d||e[8]!==m?(u=n.jsx(Ke,{defaultSize:o,minSize:20,className:m,onResize:d,children:s}),e[5]=o,e[6]=s,e[7]=d,e[8]=m,e[9]=u):u=e[9],u}function zn(t){const e=h.c(5),{children:s}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=Fe.sidebarOpen(),e[0]=a):a=e[0];const[i,r]=Ve(a,!0);let o;return e[1]!==s||e[2]!==r||e[3]!==i?(o=n.jsx(hs,{open:i,onOpenChange:r,children:s}),e[1]=s,e[2]=r,e[3]=i,e[4]=o):o=e[4],o}function $n(t){const e=h.c(6),{disableChat:s}=t,a=s===void 0?!1:s,[i]=ge();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(Ke,{className:"bg-background",children:n.jsx(Oe,{})}),e[0]=r):r=e[0];let o;e[1]!==i||e[2]!==a?(o=!a&&n.jsxs(n.Fragment,{children:[n.jsx(ns,{withHandle:i}),n.jsx(In,{className:$(i?"max-w-none":"max-w-0"),children:n.jsx(rs,{})})]}),e[1]=i,e[2]=a,e[3]=o):o=e[3];let l;return e[4]!==o?(l=n.jsxs(as,{direction:"horizontal",children:[r,o]}),e[4]=o,e[5]=l):l=e[5],l}function Tn(){const t=h.c(22);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const{org:s}=ze(e),a=xe(),i=a.location.pathname===`/${s}`||a.location.pathname===`/${s}/`;let r;t[1]!==s?(r=St.activeOrganization(s),t[1]=s,t[2]=r):r=t[2];let o;t[3]!==s?(o=async()=>{if(!s)return null;const{data:f}=await J.organization.setActive({organizationSlug:s});return{org:f,project:{slug:Nt}}},t[3]=s,t[4]=o):o=t[4];let l;t[5]!==r||t[6]!==o?(l={queryKey:r,queryFn:o,gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1},t[5]=r,t[6]=o,t[7]=l):l=t[7];const{data:c}=vt(l);if(!c){let f;t[8]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx(Ie,{}),t[8]=f):f=t[8];let g;return t[9]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsxs("div",{className:"min-h-screen bg-background",children:[f,n.jsx("div",{className:"pt-12",children:n.jsx(Oe,{})})]}),t[9]=g):g=t[9],g}let d;t[10]!==i?(d=n.jsx(Ie,{showSidebarToggle:!0,showOrgSwitcher:!0,showDecoChat:!0,disableDecoChat:i}),t[10]=i,t[11]=d):d=t[11];let m;t[12]===Symbol.for("react.memo_cache_sentinel")?(m={"--sidebar-width":"13rem","--sidebar-width-mobile":"11rem"},t[12]=m):m=t[12];let u;t[13]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(Ms,{}),t[13]=u):u=t[13];let p;t[14]!==i?(p=n.jsx(D.Provider,{children:n.jsxs(bs,{className:"flex-1 bg-sidebar",style:m,children:[u,n.jsx(vs,{className:"pt-12",children:n.jsx($n,{disableChat:i})})]})}),t[14]=i,t[15]=p):p=t[15];let b;t[16]!==d||t[17]!==p?(b=n.jsx(zn,{children:n.jsxs("div",{className:"flex flex-col h-screen",children:[d,p]})}),t[16]=d,t[17]=p,t[18]=b):b=t[18];let j;return t[19]!==c||t[20]!==b?(j=n.jsx(wt,{...c,children:b}),t[19]=c,t[20]=b,t[21]=j):j=t[21],j}function Pa(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(wn,{children:n.jsx(w.Suspense,{fallback:n.jsx(Te,{}),children:n.jsx(Tn,{})})}),t[0]=e):e=t[0],e}export{Pa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as s}from"./index-DZqSbjFw.js";import{u as a,L as c}from"./localstorage-keys-DpM3uKv7.js";function i(){const e=s.c(4);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=c.decoChatOpen(),e[0]=t):t=e[0];const[n,r]=a(t,l);let o;return e[1]!==n||e[2]!==r?(o=[n,r],e[1]=n,e[2]=r,e[3]=o):o=e[3],o}function l(e){return!!(e??!1)}export{i as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-DmKtj9SR.js";import{Y as i}from"./index-DZqSbjFw.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Y as u,ag as s}from"./index-DZqSbjFw.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-DmKtj9SR.js";import{Y as u,Z as n}from"./index-DZqSbjFw.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|