@decocms/mesh 2.1.0 → 2.1.1
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-CnILn3jx.js → AlertCircle-Zcaeo0Ph.js} +1 -1
- package/dist/client/assets/{ArrowLeft-B6wScdzP.js → ArrowLeft-CvbtXveq.js} +1 -1
- package/dist/client/assets/{ChevronDown-DTD8t00o.js → ChevronDown-BNNXIQh8.js} +1 -1
- package/dist/client/assets/{ChevronRight-1OHI0CBI.js → ChevronRight-VxwRrYTx.js} +1 -1
- package/dist/client/assets/{Copy01-Uwb56ntU.js → Copy01-9fowVOg1.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-B5ryaglt.js → DotsHorizontal-BLSY-UE4.js} +1 -1
- package/dist/client/assets/{DotsVertical-B-5TnXsG.js → DotsVertical-CNMrOcPp.js} +1 -1
- package/dist/client/assets/{File06-DExBhm42.js → File06-CuNx1VwU.js} +1 -1
- package/dist/client/assets/{FilterLines-aAu13BQ5.js → FilterLines-2EXIyDEE.js} +1 -1
- package/dist/client/assets/{FlipBackward-DWy5EIwt.js → FlipBackward-JwQkZjg2.js} +1 -1
- package/dist/client/assets/{GitBranch01-Dq29bc0o.js → GitBranch01-NybsoqtZ.js} +1 -1
- package/dist/client/assets/{Grid01-Bdi_lD58.js → Grid01-BZBEA_C4.js} +1 -1
- package/dist/client/assets/{Inbox01-DMQr1yW_.js → Inbox01-Cb8GJSHl.js} +1 -1
- package/dist/client/assets/{InfoCircle-BTGq_g6o.js → InfoCircle-ML5pVcTa.js} +1 -1
- package/dist/client/assets/{Key01-BM7IeiIC.js → Key01-COJyRDna.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BbRknnAT.js → LinkExternal01-Dkycwe2R.js} +1 -1
- package/dist/client/assets/{Loading01-BhwGtEie.js → Loading01-FEharlZ3.js} +1 -1
- package/dist/client/assets/{Lock01-BjwJTO1K.js → Lock01-ic-GN8d2.js} +1 -1
- package/dist/client/assets/{Play-B_M1eygK.js → Play-DgdieYyY.js} +1 -1
- package/dist/client/assets/{Plus-CUt-llJ2.js → Plus-WiwD_J2H.js} +1 -1
- package/dist/client/assets/{Terminal-OwfTXSIc.js → Terminal-Dh9is2K6.js} +1 -1
- package/dist/client/assets/{Trash01-DvwxBHIe.js → Trash01-_uGmDh1B.js} +1 -1
- package/dist/client/assets/{X-DmB-XP-B.js → X-Duz5Cat7.js} +1 -1
- package/dist/client/assets/{XClose-BfRKR4QX.js → XClose-Dgc9TlUt.js} +1 -1
- package/dist/client/assets/{alert-dialog-CPgX_DbI.js → alert-dialog-DIvkZeS8.js} +1 -1
- package/dist/client/assets/{auth-C_7jwlCE.js → auth-Bs90bxg0.js} +1 -1
- package/dist/client/assets/{auth-catchall-BsWBBbjQ.js → auth-catchall-C9s-NKYi.js} +1 -1
- package/dist/client/assets/{avatar-BfkYZ3Uk.js → avatar-B-VIja6j.js} +1 -1
- package/dist/client/assets/{badge-pmm0Bb0n.js → badge-Bq595clU.js} +1 -1
- package/dist/client/assets/{card-DX0N7QQe.js → card-DR5we5EA.js} +1 -1
- package/dist/client/assets/{checkbox-CT0tct0O.js → checkbox-TKNE3h-h.js} +1 -1
- package/dist/client/assets/{collection-detail-BB6Q1vQA.js → collection-detail-BzSV0PjX.js} +1 -1
- package/dist/client/assets/{collection-display-button-C6mkNMSZ.js → collection-display-button-DNy_7kSz.js} +1 -1
- package/dist/client/assets/{collection-header-B-OH92G_.js → collection-header-D0i6GZ3F.js} +1 -1
- package/dist/client/assets/{collection-page-BMM6TZo-.js → collection-page-9DhN6_JB.js} +1 -1
- package/dist/client/assets/{collection-search-Dspxl3Yz.js → collection-search-mQlL4U3W.js} +1 -1
- package/dist/client/assets/{collection-tab-CZVDVMRh.js → collection-tab-rmLj5s6A.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-QnkBhjXh.js → collection-table-wrapper-Zk7FDqrs.js} +1 -1
- package/dist/client/assets/{connection-card-D80SBKTI.js → connection-card-DebysJy8.js} +1 -1
- package/dist/client/assets/{connection-detail-CQgpZSSc.js → connection-detail-9KVtgeiT.js} +1 -1
- package/dist/client/assets/{connections-D1odZRUO.js → connections-9aNTlc_h.js} +1 -1
- package/dist/client/assets/constants-BTSmYMt9.js +1 -0
- package/dist/client/assets/{create-organization-dialog-Cz1rNGDv.js → create-organization-dialog-CJ98sB0C.js} +1 -1
- package/dist/client/assets/{dialog-CC31EL0X.js → dialog-DDYqAQBF.js} +1 -1
- package/dist/client/assets/{dropdown-menu-zbRnijT0.js → dropdown-menu-D6Qp2zGD.js} +1 -1
- package/dist/client/assets/{empty-state-B5WHq2Wp.js → empty-state-DBSXVfk0.js} +1 -1
- package/dist/client/assets/{env-vars-editor-BZ0EKsNv.js → env-vars-editor-DzhvBSgj.js} +1 -1
- package/dist/client/assets/{error-boundary-iei4NFmK.js → error-boundary-Eygnq8Hk.js} +1 -1
- package/dist/client/assets/extract-connection-data-5iVWxj7E.js +1 -0
- package/dist/client/assets/{form-B4rbGxTC.js → form-Bff3cjR5.js} +1 -1
- package/dist/client/assets/{formatDistanceToNow-B3eT5t4e.js → formatDistanceToNow-BRBGOkjl.js} +1 -1
- package/dist/client/assets/{gateway-detail-Cel29Jq6.js → gateway-detail-1i8IrIM9.js} +1 -1
- package/dist/client/assets/{gateway-selector-DrcyKhYX.js → gateway-selector-CCKBvHsl.js} +1 -1
- package/dist/client/assets/{gateways-BCUxb6V6.js → gateways-CYzUHwXz.js} +1 -1
- package/dist/client/assets/{home-DjjIziN3.js → home-B1-MfTjq.js} +1 -1
- package/dist/client/assets/{index-DhProoia.js → index-BbxwAA9k.js} +1 -1
- package/dist/client/assets/{index-Be5s3BTd.js → index-Cxif_WiW.js} +21 -21
- package/dist/client/assets/{index-CJUkmkVw.js → index-Cy9l89I6.js} +5 -5
- package/dist/client/assets/{input-D5VmXtXA.js → input-Dq5R1hsb.js} +1 -1
- package/dist/client/assets/{layout-BtPLf8h9.js → layout-COs-F_yU.js} +1 -1
- package/dist/client/assets/{lazy-highlighter-CKguQGTj.js → lazy-highlighter-CFowraVx.js} +1 -1
- package/dist/client/assets/{localstorage-keys-Cgns4y6c.js → localstorage-keys-TO4Iz1ZL.js} +1 -1
- package/dist/client/assets/{login-BY9zzeLF.js → login-D2jzWiIU.js} +1 -1
- package/dist/client/assets/{mcp-oauth-JrBnP9ka.js → mcp-oauth-o2ZvtP-e.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-D1UUYOFR.js → mcp-server-detail-WcX1lQms.js} +1 -1
- package/dist/client/assets/{members-BLsbQRx4.js → members-xKTj4uec.js} +1 -1
- package/dist/client/assets/{monaco-editor-BbkOCnUd.js → monaco-editor-BLJ-5Rq_.js} +1 -1
- package/dist/client/assets/{monitoring-DQGgnd4W.js → monitoring-KQw3N0Bq.js} +1 -1
- package/dist/client/assets/{oauth-callback-CEdwKynD.js → oauth-callback-DghEZBt_.js} +1 -1
- package/dist/client/assets/{page-CjfeHs2p.js → page-9r0ghDqC.js} +1 -1
- package/dist/client/assets/{page-BXDOiUca.js → page-CO0kUkkz.js} +1 -1
- package/dist/client/assets/{pin-to-sidebar-button-Dw4GdfbU.js → pin-to-sidebar-button-DGCbmg2o.js} +1 -1
- package/dist/client/assets/{popover-t9-OkADH.js → popover-CsFIibUb.js} +1 -1
- package/dist/client/assets/{project-context-provider-BS8o541A.js → project-context-provider-C4m-SDFS.js} +1 -1
- package/dist/client/assets/{resizable-QJ-R9KRQ.js → resizable-CP3lQk6C.js} +1 -1
- package/dist/client/assets/{resource-tabs-B-4VA98W.js → resource-tabs-C_l6VEbU.js} +1 -1
- package/dist/client/assets/{select-e4C4SmKq.js → select-BEsgTDeZ.js} +1 -1
- package/dist/client/assets/{settings-Dnv8fDox.js → settings-DoNMBUhT.js} +1 -1
- package/dist/client/assets/{shell-layout-BlrxsMrN.js → shell-layout-BcqwLSW9.js} +1 -1
- package/dist/client/assets/{spinner-BFS4gVsU.js → spinner-Cm9P6I1C.js} +1 -1
- package/dist/client/assets/{switch-CLvPCUaJ.js → switch-BCWj5zC6.js} +1 -1
- package/dist/client/assets/{textarea-4b5OG-tc.js → textarea-BUrXlyuG.js} +1 -1
- package/dist/client/assets/{thread-history-popover-CdgY8TVV.js → thread-history-popover-Cm6dNBcQ.js} +3 -3
- package/dist/client/assets/{tools-list-DYFK0YJ7.js → tools-list-D53iqXZd.js} +1 -1
- package/dist/client/assets/{use-binding-4jFDqim2.js → use-binding-Db1yl1TL.js} +1 -1
- package/dist/client/assets/{use-connection-BV17GXlx.js → use-connection-CGMQx4M9.js} +1 -1
- package/dist/client/assets/{use-connection-resources-CaFhYy-Y.js → use-connection-resources-Bt4HyA5c.js} +1 -1
- package/dist/client/assets/{use-gateway-B7sk5BUf.js → use-gateway-_mFxXQBe.js} +1 -1
- package/dist/client/assets/{use-list-state-ClKTIM8C.js → use-list-state-BqAl0_R1.js} +1 -1
- package/dist/client/assets/{use-mcp-BnUTTtgf.js → use-mcp-o9InczvY.js} +1 -1
- package/dist/client/assets/{use-members-Duard-8M.js → use-members-B-_jPiHI.js} +1 -1
- package/dist/client/assets/{use-mobile-D6agNekL.js → use-mobile-C5d37E9R.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BBRsFqJO.js → use-organization-settings-BQ3Z2_RY.js} +1 -1
- package/dist/client/assets/{use-tool-call-CM2oq0rB.js → use-tool-call-BkhAERrv.js} +1 -1
- package/dist/client/assets/useQuery-CNppnPNo.js +1 -0
- package/dist/client/assets/{value-8MKGBmon.js → value-CHn8uszM.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BTD72CUu.js → view-mode-toggle-D8JnY0Wg.js} +1 -1
- package/dist/client/assets/{workflow-6yVvsMos.js → workflow-J4y20R0G.js} +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/constants-BvQJIhjO.js +0 -1
- package/dist/client/assets/extract-connection-data-RbshSMFT.js +0 -1
- package/dist/client/assets/useQuery-DdiguCvR.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as v,c as h,j as a,R as Ft,T as Kt,D as Zt,C as Yt,P as qt,e as Xt,O as Jt,f as Qt,g as es,h as Le,i as tt,k as ts,d as ht,a as Ne,l as ss,G as ns,U as os,m as as,S as pt,n as ls,o as is,N as rs,t as at,p as cs,K as ds,q as xt}from"./index-Be5s3BTd.js";import{E as st}from"./error-boundary-iei4NFmK.js";import{i as ms}from"./File06-DExBhm42.js";import{i as Pe}from"./X-DmB-XP-B.js";import{u as ye}from"./use-mobile-D6agNekL.js";import{c as z,B as Y,I as fs}from"./input-D5VmXtXA.js";import{T as us,a as hs,b as ps,c as xs,u as De,L as lt,i as gs,P as bs,O as js}from"./project-context-provider-BS8o541A.js";import{u as gt,a as vs}from"./use-organization-settings-BBRsFqJO.js";import{n as Ss,u as Cs,E as ws,I as it}from"./use-connection-BV17GXlx.js";import{i as Qe}from"./use-gateway-B7sk5BUf.js";import{C as Ns}from"./create-organization-dialog-Cz1rNGDv.js";import{P as ys,a as _s,b as ks}from"./popover-t9-OkADH.js";import{A as we}from"./avatar-BfkYZ3Uk.js";import{c as Is}from"./Grid01-Bdi_lD58.js";import{D as $s,a as Ms,b as zs,c as Ts,u as Os,d as Es,e as As,G as Rs}from"./gateway-selector-DrcyKhYX.js";import{D as Ps,a as Ls,b as Ds,c as Hs,d as rt}from"./dropdown-menu-zbRnijT0.js";import{a as Bs}from"./Copy01-Uwb56ntU.js";import{n as ct}from"./LinkExternal01-BbRknnAT.js";import{D as bt,a as jt,b as vt,c as St,d as Ct}from"./dialog-CC31EL0X.js";import{u as He,L as Be}from"./localstorage-keys-Cgns4y6c.js";import{C as A,u as dt,a as Us,b as Gs,c as Ws,d as Vs,N as Fs,G as Ks,U as Zs,T as Ys,M as qs,D as Xs}from"./thread-history-popover-CdgY8TVV.js";import{R as wt,a as Js,b as Qs}from"./resizable-QJ-R9KRQ.js";import{i as en}from"./Loading01-BhwGtEie.js";import{s as tn}from"./Plus-CUt-llJ2.js";import{u as sn}from"./use-binding-4jFDqim2.js";import"./alert-dialog-CPgX_DbI.js";import"./form-B4rbGxTC.js";import"./spinner-BFS4gVsU.js";import"./select-e4C4SmKq.js";import"./ChevronDown-DTD8t00o.js";import"./ChevronRight-1OHI0CBI.js";import"./useQuery-DdiguCvR.js";import"./AlertCircle-CnILn3jx.js";import"./textarea-4b5OG-tc.js";import"./Terminal-OwfTXSIc.js";import"./monaco-editor-BbkOCnUd.js";import"./InfoCircle-BTGq_g6o.js";import"./well-known-mcp-D13f-8h2.js";import"./generate-id-Dyweu44Y.js";import"./Trash01-DvwxBHIe.js";import"./auth-C_7jwlCE.js";const Nt=({size:t=24,color:e="currentColor",...s})=>v.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},v.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"}));Nt.displayName="BarChart10";const yt=({size:t=24,color:e="currentColor",...s})=>v.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},v.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"}));yt.displayName="Building02";const _t=({size:t=24,color:e="currentColor",...s})=>v.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},v.createElement("path",{d:"m7 15 5 5 5-5M7 9l5-5 5 5"}));_t.displayName="ChevronSelectorVertical";const kt=({size:t=24,color:e="currentColor",...s})=>v.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},v.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"}));kt.displayName="Globe01";const It=({size:t=24,color:e="currentColor",...s})=>v.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},v.createElement("path",{d:"M9 21v-7.4c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 12 10.04 12 10.6 12h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 12.76 15 13.04 15 13.6V21M11.018 2.764 4.235 8.039c-.453.353-.68.53-.843.75a2 2 0 0 0-.318.65C3 9.704 3 9.991 3 10.565V17.8c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8v-7.235c0-.574 0-.861-.074-1.126a2.002 2.002 0 0 0-.318-.65c-.163-.22-.39-.397-.843-.75l-6.783-5.275c-.351-.273-.527-.41-.72-.462a1 1 0 0 0-.523 0c-.194.052-.37.189-.721.462Z"}));It.displayName="Home02";const $t=({size:t=24,color:e="currentColor",...s})=>v.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},v.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"}));$t.displayName="LayoutRight";const Mt=({size:t=24,color:e="currentColor",...s})=>v.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},v.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"}));Mt.displayName="LogOut01";const zt=({size:t=24,color:e="currentColor",...s})=>v.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},v.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"}));zt.displayName="Mail01";const Tt=({size:t=24,color:e="currentColor",...s})=>v.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},v.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}),v.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"}));Tt.displayName="Settings01";const Ot=({size:t=24,color:e="currentColor",...s})=>v.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},v.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"}));Ot.displayName="UserCircle";const Et=({size:t=24,color:e="currentColor",...s})=>v.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},v.createElement("path",{d:"M22 21v-2a4.002 4.002 0 0 0-3-3.874M15.5 3.291a4.001 4.001 0 0 1 0 7.418M17 21c0-1.864 0-2.796-.305-3.53a4 4 0 0 0-2.164-2.165C13.796 15 12.864 15 11 15H8c-1.864 0-2.796 0-3.53.305a4 4 0 0 0-2.166 2.164C2 18.204 2 19.136 2 21M13.5 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"}));Et.displayName="Users01";const At=({size:t=24,color:e="currentColor",...s})=>v.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},v.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"}));At.displayName="Zap";function nn(t){const e=h.c(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let o;return e[2]!==s?(o=a.jsx(Ft,{"data-slot":"sheet",...s}),e[2]=s,e[3]=o):o=e[3],o}function on(t){const e=h.c(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let o;return e[2]!==s?(o=a.jsx(qt,{"data-slot":"sheet-portal",...s}),e[2]=s,e[3]=o):o=e[3],o}function an(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("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]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx(Jt,{"data-slot":"sheet-overlay",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function ln(t){const e=h.c(17);let s,o,n,l;e[0]!==t?({className:o,children:s,side:l,...n}=t,e[0]=t,e[1]=s,e[2]=o,e[3]=n,e[4]=l):(s=e[1],o=e[2],n=e[3],l=e[4]);const i=l===void 0?"right":l;let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(an,{}),e[5]=c):c=e[5];const r=i==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",d=i==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",m=i==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",f=i==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let u;e[6]!==o||e[7]!==r||e[8]!==d||e[9]!==m||e[10]!==f?(u=z("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",r,d,m,f,o),e[6]=o,e[7]=r,e[8]=d,e[9]=m,e[10]=f,e[11]=u):u=e[11];let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsxs(Xt,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[a.jsx(Pe,{className:"size-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=x):x=e[12];let p;return e[13]!==s||e[14]!==n||e[15]!==u?(p=a.jsxs(on,{children:[c,a.jsxs(Yt,{"data-slot":"sheet-content",className:u,...n,children:[s,x]})]}),e[13]=s,e[14]=n,e[15]=u,e[16]=p):p=e[16],p}function rn(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("flex flex-col gap-1.5 p-4",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("div",{"data-slot":"sheet-header",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function cn(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("text-foreground font-semibold",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx(Kt,{"data-slot":"sheet-title",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function dn(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("text-muted-foreground text-sm",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx(Zt,{"data-slot":"sheet-description",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function Rt(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("div",{"data-slot":"skeleton",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}const mn="sidebar_state",fn=3600*24*7,un="16rem",hn="18rem",pn="3rem",xn="b",Pt=v.createContext(null);function nt(){const t=v.useContext(Pt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function gn(t){const e=h.c(21),{defaultOpen:s,open:o,onOpenChange:n,children:l}=t,i=s===void 0?!0:s,c=ye(),[r,d]=v.useState(!1),[m,f]=v.useState(i),u=o??m;let x;e[0]!==u||e[1]!==n?(x=M=>{const $=typeof M=="function"?M(u):M;n?n($):f($),document.cookie=`${mn}=${$}; path=/; max-age=${fn}`},e[0]=u,e[1]=n,e[2]=x):x=e[2];const p=x;let S;e[3]!==c||e[4]!==p?(S=()=>c?d(jn):p(bn),e[3]=c,e[4]=p,e[5]=S):S=e[5];const g=S;let b,j;e[6]!==g?(b=()=>{const M=$=>{if($.key===xn&&($.metaKey||$.ctrlKey)){const N=$.target;if(N.tagName==="INPUT"||N.tagName==="TEXTAREA"||N.isContentEditable)return;$.preventDefault(),g()}};return globalThis.addEventListener("keydown",M),()=>globalThis.removeEventListener("keydown",M)},j=[g],e[6]=g,e[7]=b,e[8]=j):(b=e[7],j=e[8]),v.useEffect(b,j);const _=u?"expanded":"collapsed";let w;e[9]!==c||e[10]!==u||e[11]!==r||e[12]!==p||e[13]!==_||e[14]!==g?(w={state:_,open:u,setOpen:p,isMobile:c,openMobile:r,setOpenMobile:d,toggleSidebar:g},e[9]=c,e[10]=u,e[11]=r,e[12]=p,e[13]=_,e[14]=g,e[15]=w):w=e[15];const y=w;let C;e[16]!==l?(C=a.jsx(hs,{delayDuration:0,children:l}),e[16]=l,e[17]=C):C=e[17];let k;return e[18]!==y||e[19]!==C?(k=a.jsx(Pt.Provider,{value:y,children:C}),e[18]=y,e[19]=C,e[20]=k):k=e[20],k}function bn(t){return!t}function jn(t){return!t}function vn(t){const e=h.c(14);let s,o,n,l;e[0]!==t?({className:o,style:l,children:s,...n}=t,e[0]=t,e[1]=s,e[2]=o,e[3]=n,e[4]=l):(s=e[1],o=e[2],n=e[3],l=e[4]);let i;e[5]!==l?(i={"--sidebar-width":un,"--sidebar-width-icon":pn,...l},e[5]=l,e[6]=i):i=e[6];const c=i;let r;e[7]!==o?(r=z("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",o),e[7]=o,e[8]=r):r=e[8];let d;return e[9]!==s||e[10]!==n||e[11]!==c||e[12]!==r?(d=a.jsx("div",{"data-slot":"sidebar-wrapper",style:c,className:r,...n,children:s}),e[9]=s,e[10]=n,e[11]=c,e[12]=r,e[13]=d):d=e[13],d}function Sn(t){const e=h.c(46);let s,o,n,l,i,c;e[0]!==t?({side:l,variant:i,collapsible:c,className:o,children:s,...n}=t,e[0]=t,e[1]=s,e[2]=o,e[3]=n,e[4]=l,e[5]=i,e[6]=c):(s=e[1],o=e[2],n=e[3],l=e[4],i=e[5],c=e[6]);const r=l===void 0?"left":l,d=i===void 0?"sidebar":i,m=c===void 0?"offcanvas":c,{isMobile:f,state:u,openMobile:x,setOpenMobile:p}=nt();if(m==="none"){let $;e[7]!==o?($=z("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",o),e[7]=o,e[8]=$):$=e[8];let N;return e[9]!==s||e[10]!==n||e[11]!==$?(N=a.jsx("div",{"data-slot":"sidebar",className:$,...n,children:s}),e[9]=s,e[10]=n,e[11]=$,e[12]=N):N=e[12],N}if(f){let $;e[13]===Symbol.for("react.memo_cache_sentinel")?($={"--sidebar-width":hn},e[13]=$):$=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsxs(rn,{className:"sr-only",children:[a.jsx(cn,{children:"Sidebar"}),a.jsx(dn,{children:"Displays the mobile sidebar."})]}),e[14]=N):N=e[14];let T;e[15]!==s?(T=a.jsx("div",{className:"flex h-full w-full flex-col",children:s}),e[15]=s,e[16]=T):T=e[16];let R;e[17]!==r||e[18]!==T?(R=a.jsxs(ln,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:$,side:r,children:[N,T]}),e[17]=r,e[18]=T,e[19]=R):R=e[19];let H;return e[20]!==x||e[21]!==n||e[22]!==p||e[23]!==R?(H=a.jsx(nn,{open:x,onOpenChange:p,...n,children:R}),e[20]=x,e[21]=n,e[22]=p,e[23]=R,e[24]=H):H=e[24],H}const S=u==="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 b;e[25]!==g?(b=z("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]=b):b=e[26];let j;e[27]!==b?(j=a.jsx("div",{"data-slot":"sidebar-gap",className:b}),e[27]=b,e[28]=j):j=e[28];const _=r==="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)]",w=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 y;e[29]!==o||e[30]!==_||e[31]!==w?(y=z("fixed top-12 bottom-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",_,w,o),e[29]=o,e[30]=_,e[31]=w,e[32]=y):y=e[32];let C;e[33]!==s?(C=a.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]=C):C=e[34];let k;e[35]!==n||e[36]!==y||e[37]!==C?(k=a.jsx("div",{"data-slot":"sidebar-container",className:y,...n,children:C}),e[35]=n,e[36]=y,e[37]=C,e[38]=k):k=e[38];let M;return e[39]!==r||e[40]!==u||e[41]!==k||e[42]!==S||e[43]!==j||e[44]!==d?(M=a.jsxs("div",{className:"group peer text-foreground hidden md:block border-r","data-state":u,"data-collapsible":S,"data-variant":d,"data-side":r,"data-slot":"sidebar",children:[j,k]}),e[39]=r,e[40]=u,e[41]=k,e[42]=S,e[43]=j,e[44]=d,e[45]=M):M=e[45],M}function Cn(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("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]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("main",{"data-slot":"sidebar-inset",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function wn(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("h-4 m-0! w-full",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("div",{"data-sidebar":"separator",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function Nn(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function yn(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function _n(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("w-full text-sm",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function kn(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("flex w-full min-w-0 flex-col gap-1",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function Ue(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("group/menu-item relative",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}const In=Qt("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 Lt(t){const e=h.c(28);let s,o,n,l,i,c,r;e[0]!==t?({asChild:n,isActive:l,variant:i,size:c,tooltip:r,className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o,e[3]=n,e[4]=l,e[5]=i,e[6]=c,e[7]=r):(s=e[1],o=e[2],n=e[3],l=e[4],i=e[5],c=e[6],r=e[7]);const d=n===void 0?!1:n,m=l===void 0?!1:l,f=i===void 0?"default":i,u=c===void 0?"default":c,x=d?es:"button",{isMobile:p,state:S}=nt();let g;e[8]!==s||e[9]!==u||e[10]!==f?(g=z(In({variant:f,size:u}),s),e[8]=s,e[9]=u,e[10]=f,e[11]=g):g=e[11];let b;e[12]!==x||e[13]!==m||e[14]!==o||e[15]!==u||e[16]!==g?(b=a.jsx(x,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":u,"data-active":m,className:g,...o}),e[12]=x,e[13]=m,e[14]=o,e[15]=u,e[16]=g,e[17]=b):b=e[17];const j=b;if(!r)return j;if(typeof r=="string"){let k;e[18]!==r?(k={children:r},e[18]=r,e[19]=k):k=e[19],r=k}let _;e[20]!==j?(_=a.jsx(ps,{asChild:!0,children:j}),e[20]=j,e[21]=_):_=e[21];const w=S!=="collapsed"||p;let y;e[22]!==w||e[23]!==r?(y=a.jsx(us,{side:"right",align:"center",hidden:w,...r}),e[22]=w,e[23]=r,e[24]=y):y=e[24];let C;return e[25]!==_||e[26]!==y?(C=a.jsxs(xs,{children:[_,y]}),e[25]=_,e[26]=y,e[27]=C):C=e[27],C}function $n(t){const e=h.c(26),{item:s}=t,o=Le(),{org:n}=De(),l=gt(n.id),i=vs(n.id);let c;e[0]!==i.update||e[1]!==s.url||e[2]!==l?.sidebar_items?(c=async()=>{const w=(l?.sidebar_items||[]).filter(y=>y.url!==s.url);await i.update.mutateAsync({sidebar_items:w})},e[0]=i.update,e[1]=s.url,e[2]=l?.sidebar_items,e[3]=c):c=e[3];const r=c;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]!==o?(u=()=>{o({to:s.url})},e[7]=s.url,e[8]=o,e[9]=u):u=e[9];const x=s.title;let p;e[10]!==f||e[11]!==s.icon||e[12]!==s.title?(p=a.jsx("div",{className:"flex items-center justify-center shrink-0",children:f?a.jsx("img",{src:s.icon,alt:s.title,className:"h-4 w-4 rounded object-cover"}):a.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]=p):p=e[13];let S;e[14]!==s.title?(S=s.title.toLocaleLowerCase(),e[14]=s.title,e[15]=S):S=e[15];let g;e[16]!==S?(g=a.jsx("div",{className:"flex-1 min-w-0 flex flex-col items-start",children:a.jsx("span",{className:"truncate text-sm w-full capitalize",children:S})}),e[16]=S,e[17]=g):g=e[17];let b;e[18]!==r?(b=a.jsx(Pe,{size:16,className:"text-muted-foreground opacity-0 group-hover/item:opacity-50 hover:opacity-100 cursor-pointer",onClick:_=>{_.preventDefault(),_.stopPropagation(),r()}}),e[18]=r,e[19]=b):b=e[19];let j;return e[20]!==s.title||e[21]!==u||e[22]!==p||e[23]!==g||e[24]!==b?(j=a.jsx(Ue,{children:a.jsxs(Lt,{className:"w-full pr-2 group/item relative cursor-pointer text-foreground/90 hover:text-foreground",onClick:u,tooltip:x,children:[p,g,b]})}),e[20]=s.title,e[21]=u,e[22]=p,e[23]=g,e[24]=b,e[25]=j):j=e[25],j}function Mn(){const t=h.c(4),{org:e}=De(),o=gt(e.id)?.sidebar_items;if(!o?.length)return null;let n;t[0]!==o?(n=o.map(zn),t[0]=o,t[1]=n):n=t[1];let l;return t[2]!==n?(l=a.jsx(Dt,{children:n}),t[2]=n,t[3]=l):l=t[3],l}function zn(t){return a.jsx($n,{item:t},t.url)}function mt(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(Ue,{children:a.jsx("div",{className:"flex items-center gap-2 px-4 py-2",children:a.jsx(Rt,{className:"h-4 flex-1"})})}),t[0]=e):e=t[0],e}function Dt(t){const e=h.c(4),{children:s}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(wn,{className:"my-2 -ml-1"}),e[0]=o):o=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Ue,{children:a.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:a.jsx("span",{className:"whitespace-nowrap",children:"Pinned Views"})})}),e[1]=n):n=e[1];let l;return e[2]!==s?(l=a.jsxs(a.Fragment,{children:[o,n,s]}),e[2]=s,e[3]=l):l=e[3],l}function Tn(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(v.Suspense,{fallback:a.jsxs(Dt,{children:[a.jsx(mt,{}),a.jsx(mt,{})]}),children:a.jsx(Mn,{})}),t[0]=e):e=t[0],e}function On(){const t=h.c(49),{locator:e}=De(),s=Le(),o=tt();let n;t[0]!==e?(n=lt.parse(e),t[0]=e,t[1]=n):n=t[1];const{org:l}=n;let i;t[2]!==e?(i=lt.isOrgAdminProject(e),t[2]=e,t[3]=i):i=t[3];const c=i,r=o.location.pathname===`/${l}`||o.location.pathname===`/${l}/`;let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(It,{}),t[4]=d):d=t[4];let m;t[5]!==r||t[6]!==s||t[7]!==l?(m={key:"home",label:"Home",icon:d,onClick:()=>{r?window.dispatchEvent(new CustomEvent("reset-home-view")):s({to:"/$org",params:{org:l}})}},t[5]=r,t[6]=s,t[7]=l,t[8]=m):m=t[8];let f;t[9]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(yt,{}),t[9]=f):f=t[9];let u;t[10]!==s||t[11]!==l?(u={key:"store",label:"Store",icon:f,onClick:()=>s({to:"/$org/store",params:{org:l}})},t[10]=s,t[11]=l,t[12]=u):u=t[12];let x;t[13]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Ss,{}),t[13]=x):x=t[13];let p;t[14]!==s||t[15]!==l?(p={key:"mcps",label:"Connections",icon:x,onClick:()=>s({to:"/$org/mcps",params:{org:l}})},t[14]=s,t[15]=l,t[16]=p):p=t[16];let S;t[17]===Symbol.for("react.memo_cache_sentinel")?(S=a.jsx(Qe,{}),t[17]=S):S=t[17];let g;t[18]!==s||t[19]!==l?(g={key:"gateways",label:"Hubs",icon:S,onClick:()=>s({to:"/$org/gateways",params:{org:l}})},t[18]=s,t[19]=l,t[20]=g):g=t[20];let b;t[21]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(At,{}),t[21]=b):b=t[21];let j;t[22]!==s||t[23]!==l?(j={key:"workflow",label:"Workflows",icon:b,onClick:()=>s({to:"/$org/workflows",params:{org:l}})},t[22]=s,t[23]=l,t[24]=j):j=t[24];let _;t[25]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(Nt,{}),t[25]=_):_=t[25];let w;t[26]!==s||t[27]!==l?(w={key:"monitoring",label:"Monitoring",icon:_,onClick:()=>s({to:"/$org/monitoring",params:{org:l}})},t[26]=s,t[27]=l,t[28]=w):w=t[28];let y;t[29]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(Et,{}),t[29]=y):y=t[29];let C;t[30]!==s||t[31]!==l?(C={key:"members",label:"Members",icon:y,onClick:()=>s({to:"/$org/members",params:{org:l}})},t[30]=s,t[31]=l,t[32]=C):C=t[32];let k;t[33]===Symbol.for("react.memo_cache_sentinel")?(k=a.jsx(Tt,{}),t[33]=k):k=t[33];let M;t[34]!==s||t[35]!==l?(M={key:"settings",label:"Settings",icon:k,onClick:()=>s({to:"/$org/settings",params:{org:l}})},t[34]=s,t[35]=l,t[36]=M):M=t[36];let $;t[37]!==j||t[38]!==w||t[39]!==C||t[40]!==M||t[41]!==m||t[42]!==u||t[43]!==p||t[44]!==g?($=[m,u,p,g,j,w,C,M],t[37]=j,t[38]=w,t[39]=C,t[40]=M,t[41]=m,t[42]=u,t[43]=p,t[44]=g,t[45]=$):$=t[45];const N=$;let T;return t[46]!==N||t[47]!==c?(T=c?N:[],t[46]=N,t[47]=c,t[48]=T):T=t[48],T}function Ht(t){const e=h.c(10),{navigationItems:s,footer:o,additionalContent:n,variant:l,collapsible:i}=t,c=l===void 0?"sidebar":l,r=i===void 0?"icon":i;let d;e[0]!==s?(d=s.map(En),e[0]=s,e[1]=d):d=e[1];let m;e[2]!==n||e[3]!==d?(m=a.jsx(Nn,{className:"flex-1 overflow-x-hidden",children:a.jsx(yn,{className:"font-medium",children:a.jsx(_n,{children:a.jsxs(kn,{className:"gap-0.5",children:[d,n]})})})}),e[2]=n,e[3]=d,e[4]=m):m=e[4];let f;return e[5]!==r||e[6]!==o||e[7]!==m||e[8]!==c?(f=a.jsxs(Sn,{variant:c,collapsible:r,children:[m,o]}),e[5]=r,e[6]=o,e[7]=m,e[8]=c,e[9]=f):f=e[9],f}function En(t){return a.jsx(Ue,{children:a.jsxs(Lt,{className:"group/nav-item cursor-pointer text-foreground/90 hover:text-foreground",onClick:t.onClick,isActive:t.isActive,tooltip:t.label,children:[a.jsx("span",{className:"text-muted-foreground group-hover/nav-item:text-foreground transition-colors [&>svg]:size-4",children:t.icon}),a.jsx("span",{className:"truncate",children:t.label})]})},t.key)}Ht.Skeleton=function(){return a.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,s)=>a.jsx("div",{className:"w-full h-8",children:a.jsx(Rt,{className:"h-full bg-sidebar-accent rounded-md"})},s))})};function An(){const t=h.c(3),e=On();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(a.Fragment,{children:a.jsx(st,{children:a.jsx(v.Suspense,{fallback:null,children:a.jsx(Tn,{})})})}),t[0]=s):s=t[0];let o;return t[1]!==e?(o=a.jsx(Ht,{navigationItems:e,additionalContent:s}),t[1]=e,t[2]=o):o=t[2],o}function Rn(t){const e=h.c(12);let s,o,n,l;e[0]!==t?({className:s,orientation:n,decorative:l,...o}=t,e[0]=t,e[1]=s,e[2]=o,e[3]=n,e[4]=l):(s=e[1],o=e[2],n=e[3],l=e[4]);const i=n===void 0?"horizontal":n,c=l===void 0?!0:l;let r;e[5]!==s?(r=z("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]=r):r=e[6];let d;return e[7]!==c||e[8]!==i||e[9]!==o||e[10]!==r?(d=a.jsx(ts,{"data-slot":"separator-root",decorative:c,orientation:i,className:r,...o}),e[7]=c,e[8]=i,e[9]=o,e[10]=r,e[11]=d):d=e[11],d}const Bt=v.createContext(null);function Pn(){const t=v.useContext(Bt);if(!t)throw new Error("TopbarSwitcher compound components must be used within TopbarSwitcher.Root");return t}function Ln(t){const e=h.c(10),{children:s,onItemHover:o}=t,[n,l]=v.useState(null);let i;e[0]!==o?(i=f=>{l(f),o?.(f)},e[0]=o,e[1]=i):i=e[1];const c=i;let r;e[2]!==n||e[3]!==c?(r={hoveredItem:n,setHoveredItem:c},e[2]=n,e[3]=c,e[4]=r):r=e[4];let d;e[5]!==s?(d=a.jsx(ys,{children:s}),e[5]=s,e[6]=d):d=e[6];let m;return e[7]!==r||e[8]!==d?(m=a.jsx(Bt.Provider,{value:r,children:d}),e[7]=r,e[8]=d,e[9]=m):m=e[9],m}function Dn(t){const e=h.c(6),{children:s,onClick:o}=t;let n;e[0]!==s||e[1]!==o?(n=a.jsx(Y,{variant:"link",className:"p-0.5 h-auto",onClick:o,type:"button",children:s}),e[0]=s,e[1]=o,e[2]=n):n=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(_s,{asChild:!0,children:a.jsx(Y,{size:"icon",variant:"ghost",className:"w-6 h-6 p-0",children:a.jsx(_t,{size:16,className:"opacity-50"})})}),e[3]=l):l=e[3];let i;return e[4]!==n?(i=a.jsxs("div",{className:"flex items-center gap-1",children:[n,l]}),e[4]=n,e[5]=i):i=e[5],i}function Hn(t){const e=h.c(8),{item:s,fallback:o}=t,n=o===void 0?"":o,l=s?.avatarUrl??"",i=s?.name??n;let c;e[0]!==l||e[1]!==i?(c=a.jsx(we,{url:l,fallback:i,size:"xs",objectFit:"contain"}),e[0]=l,e[1]=i,e[2]=c):c=e[2];const r=s?.name??n;let d;e[3]!==r?(d=a.jsx("span",{children:r}),e[3]=r,e[4]=d):d=e[4];let m;return e[5]!==c||e[6]!==d?(m=a.jsxs("div",{className:"flex items-center gap-2",children:[c,d]}),e[5]=c,e[6]=d,e[7]=m):m=e[7],m}function Bn(t){const e=h.c(6),{children:s,align:o}=t,n=o===void 0?"start":o,i=v.Children.toArray(s).filter(Un).length===1?"280px":"480px";let c;e[0]!==i?(c={width:i},e[0]=i,e[1]=c):c=e[1];let r;return e[2]!==n||e[3]!==s||e[4]!==c?(r=a.jsx(ks,{align:n,className:"p-0 flex items-start",style:c,children:s}),e[2]=n,e[3]=s,e[4]=c,e[5]=r):r=e[5],r}function Un(t){return v.isValidElement(t)&&(t.type===Gt||t.type===Ut)}function Ut(t){const e=h.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=z("flex flex-col border-border w-[240px] border-r last:border-r-0 last:w-full",o),e[0]=o,e[1]=n):n=e[1];let l;return e[2]!==s||e[3]!==n?(l=a.jsx("div",{className:n,children:s}),e[2]=s,e[3]=n,e[4]=l):l=e[4],l}const Gt=Ut;function Gn(t){const e=h.c(6),{placeholder:s,value:o,onChange:n}=t,l=s===void 0?"Search...":s;let i;e[0]!==n?(i=r=>n(r.target.value),e[0]=n,e[1]=i):i=e[1];let c;return e[2]!==l||e[3]!==i||e[4]!==o?(c=a.jsx(fs,{placeholder:l,value:o,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]=o,e[5]=c):c=e[5],c}function Wn(t){const e=h.c(6),{children:s,emptyMessage:o}=t,n=o===void 0?"No items found.":o,l=v.Children.count(s)>0;let i;e[0]!==n||e[1]!==l?(i=!l&&a.jsx("div",{className:"text-muted-foreground text-sm px-1 py-8 text-center",children:n}),e[0]=n,e[1]=l,e[2]=i):i=e[2];let c;return e[3]!==s||e[4]!==i?(c=a.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]=c):c=e[5],c}function Vn(t){const e=h.c(15),{item:s,onClick:o,onHover:n,children:l}=t,i=Pn();let c;e[0]!==i||e[1]!==s||e[2]!==n?(c=()=>{i.setHoveredItem(s.slug),n?.(s)},e[0]=i,e[1]=s,e[2]=n,e[3]=c):c=e[3];const r=c;let d;e[4]!==s||e[5]!==o?(d=()=>o(s),e[4]=s,e[5]=o,e[6]=d):d=e[6];let m;e[7]!==l||e[8]!==s.avatarUrl||e[9]!==s.name?(m=l||a.jsxs(a.Fragment,{children:[a.jsx(we,{url:s.avatarUrl??"",fallback:s.name,size:"xs",className:"w-[22px]! h-[22px]!",objectFit:"contain"}),a.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]!==r||e[12]!==d||e[13]!==m?(f=a.jsx(Y,{onClick:d,onMouseEnter:r,variant:"ghost",size:"sm",className:"w-full justify-start font-normal",children:m}),e[11]=r,e[12]=d,e[13]=m,e[14]=f):f=e[14],f}function Fn(t){const e=h.c(2),{children:s}=t;let o;return e[0]!==s?(o=a.jsx("div",{className:"px-1 pb-1 pt-0.5",children:s}),e[0]=s,e[1]=o):o=e[1],o}function Kn(t){const e=h.c(11),{onClick:s,icon:o,children:n,variant:l}=t,c=(l===void 0?"default":l)==="muted"&&"text-muted-foreground";let r;e[0]!==c?(r=z("w-full justify-start font-normal",c),e[0]=c,e[1]=r):r=e[1];let d;e[2]!==o?(d=o&&a.jsx("span",{className:"[&>svg]:size-4",children:o}),e[2]=o,e[3]=d):d=e[3];let m;e[4]!==n?(m=a.jsx("span",{children:n}),e[4]=n,e[5]=m):m=e[5];let f;return e[6]!==s||e[7]!==r||e[8]!==d||e[9]!==m?(f=a.jsxs(Y,{variant:"ghost",size:"sm",className:r,onClick:s,children:[d,m]}),e[6]=s,e[7]=r,e[8]=d,e[9]=m,e[10]=f):f=e[10],f}function Zn(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(Rn,{}),t[0]=e):e=t[0],e}function Yn(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx("div",{className:"h-4 w-16 bg-accent rounded-full animate-pulse"}),t[0]=e):e=t[0],e}const D=Object.assign(Ln,{Trigger:Dn,CurrentItem:Hn,Content:Bn,Panel:Gt,Search:Gn,Items:Wn,Item:Vn,Actions:Fn,Action:Kn,Separator:Zn,Skeleton:Yn});function et(){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}=ht(e),{data:o}=Ne.useListOrganizations(),n=Le();let l;t[1]!==s||t[2]!==o?(l=o?.find(V=>V.slug===s),t[1]=s,t[2]=o,t[3]=l):l=t[3];const i=l,[c,r]=v.useState(""),[d,m]=v.useState(!1);let f,u,x,p,S,g,b,j;if(t[4]!==i||t[5]!==n||t[6]!==s||t[7]!==c||t[8]!==o){const q=(o?(()=>{const B=o.filter(U=>U.name.toLowerCase().includes(c.toLowerCase()));if(s){const U=B.findIndex(K=>K.slug===s);if(U>0){const K=B[U];K&&(B.splice(U,1),B.unshift(K))}}return B})():[]).map(qn);let I;t[17]!==i?(I=i?{slug:i.slug,name:i.name,avatarUrl:i.logo}:void 0,t[17]=i,t[18]=I):I=t[18];const W=I;p=D;let O;t[19]!==n||t[20]!==s?(O=()=>n({to:"/$org",params:{org:s??""}}),t[19]=n,t[20]=s,t[21]=O):O=t[21];let P;t[22]!==W?(P=a.jsx(D.CurrentItem,{item:W}),t[22]=W,t[23]=P):P=t[23],t[24]!==O||t[25]!==P?(j=a.jsx(D.Trigger,{onClick:O,children:P}),t[24]=O,t[25]=P,t[26]=j):j=t[26],x=D.Content,u=D.Panel,t[27]!==c?(b=a.jsx(D.Search,{placeholder:"Search organizations...",value:c,onChange:r}),t[27]=c,t[28]=b):b=t[28],f=D.Items,S="No organizations found.";let L;t[29]!==n?(L=B=>a.jsx(D.Item,{item:B,onClick:U=>n({to:"/$org",params:{org:U.slug}})},B.slug),t[29]=n,t[30]=L):L=t[30],g=q.map(L),t[4]=i,t[5]=n,t[6]=s,t[7]=c,t[8]=o,t[9]=f,t[10]=u,t[11]=x,t[12]=p,t[13]=S,t[14]=g,t[15]=b,t[16]=j}else f=t[9],u=t[10],x=t[11],p=t[12],S=t[13],g=t[14],b=t[15],j=t[16];let _;t[31]!==f||t[32]!==S||t[33]!==g?(_=a.jsx(f,{emptyMessage:S,children:g}),t[31]=f,t[32]=S,t[33]=g,t[34]=_):_=t[34];let w,y;t[35]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(D.Actions,{children:a.jsx(D.Action,{onClick:()=>m(!0),variant:"muted",children:"+ Create organization"})}),y=a.jsx(D.Separator,{}),t[35]=w,t[36]=y):(w=t[35],y=t[36]);let C;t[37]!==n?(C=()=>n({to:"/"}),t[37]=n,t[38]=C):C=t[38];let k;t[39]===Symbol.for("react.memo_cache_sentinel")?(k=a.jsx(Is,{}),t[39]=k):k=t[39];let M;t[40]!==C?(M=a.jsx(D.Actions,{children:a.jsx(D.Action,{onClick:C,icon:k,children:"See all organizations"})}),t[40]=C,t[41]=M):M=t[41];let $;t[42]!==u||t[43]!==M||t[44]!==b||t[45]!==_?($=a.jsxs(u,{children:[b,_,w,y,M]}),t[42]=u,t[43]=M,t[44]=b,t[45]=_,t[46]=$):$=t[46];let N;t[47]!==x||t[48]!==$?(N=a.jsx(x,{children:$}),t[47]=x,t[48]=$,t[49]=N):N=t[49];let T;t[50]!==p||t[51]!==N||t[52]!==j?(T=a.jsxs(p,{children:[j,N]}),t[50]=p,t[51]=N,t[52]=j,t[53]=T):T=t[53];let R;t[54]!==d?(R=a.jsx(Ns,{open:d,onOpenChange:m}),t[54]=d,t[55]=R):R=t[55];let H;return t[56]!==T||t[57]!==R?(H=a.jsxs(a.Fragment,{children:[T,R]}),t[56]=T,t[57]=R,t[58]=H):H=t[58],H}function qn(t){return{slug:t.slug,name:t.name,avatarUrl:t.logo}}et.Skeleton=D.Skeleton;const Wt=v.createContext({setOpen:()=>{}}),Xn=()=>v.useContext(Wt),Jn=t=>{const e=h.c(25);let s,o,n,l,i;e[0]!==t?({children:s,defaultOpen:o,open:l,onOpenChange:n,...i}=t,e[0]=t,e[1]=s,e[2]=o,e[3]=n,e[4]=l,e[5]=i):(s=e[1],o=e[2],n=e[3],l=e[4],i=e[5]);const c=o??!1;let r;e[6]!==n||e[7]!==l||e[8]!==c?(r={prop:l,defaultProp:c,onChange:n},e[6]=n,e[7]=l,e[8]=c,e[9]=r):r=e[9];const[d,m]=Os(r);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=a.jsx(Es,{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=a.jsx(Ds,{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 p;return e[22]!==f||e[23]!==x?(p=a.jsx(Wt.Provider,{value:f,children:x}),e[22]=f,e[23]=x,e[24]=p):p=e[24],p},Qn=t=>{const{children:e,title:s,...o}=t,n=ye(),{className:l,...i}=o;return n?a.jsxs(Ms,{...i,children:[a.jsx(zs,{className:"hidden",children:a.jsx(Ts,{children:s})}),a.jsx("div",{className:z("flex flex-col gap-2 p-2 py-4",l),children:e})]}):a.jsx(Ls,{...o,children:e})},eo=t=>{const{children:e,...s}=t,{setOpen:o}=Xn(),n=ye(),{className:l,...i}=s;return n?a.jsx("div",{...i,onClick:c=>{o(!1);const{onClick:r}=i;r?.(c)},className:z("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}):a.jsx(Hs,{...s,children:e})},to=t=>{const e=h.c(7);let s,o;e[0]!==t?({children:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const n=ye();let l;return e[3]!==s||e[4]!==n||e[5]!==o?(l=n?a.jsx($s,{asChild:!0,children:s}):a.jsx(Ps,{...o,children:s}),e[3]=s,e[4]=n,e[5]=o,e[6]=l):l=e[6],l},so=t=>{const e=h.c(7);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const n=ye();let l;return e[3]!==s||e[4]!==n||e[5]!==o?(l=n?a.jsx(rt,{className:z(s),...o}):a.jsx(rt,{className:z(s),...o}),e[3]=s,e[4]=n,e[5]=o,e[6]=l):l=e[6],l};function no(t){const e=h.c(11),{user:s,trigger:o,align:n,children:l}=t,i=n===void 0?"start":n;let c;e[0]!==o||e[1]!==s?(c=o(s),e[0]=o,e[1]=s,e[2]=c):c=e[2];let r;e[3]!==c?(r=a.jsx(to,{asChild:!0,children:a.jsx("div",{children:c})}),e[3]=c,e[4]=r):r=e[4];let d;e[5]!==i||e[6]!==l?(d=a.jsx(Qn,{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]!==r||e[9]!==d?(m=a.jsxs(Jn,{children:[r,d]}),e[8]=r,e[9]=d,e[10]=m):m=e[10],m}function oo(t){const e=h.c(8),{children:s,onClick:o,className:n,asChild:l}=t;let i;e[0]!==l||e[1]!==s||e[2]!==o?(i=l?s:a.jsx("button",{type:"button",className:"flex items-center gap-2 text-sm w-full cursor-pointer",onClick:o,children:s}),e[0]=l,e[1]=s,e[2]=o,e[3]=i):i=e[3];let c;return e[4]!==l||e[5]!==n||e[6]!==i?(c=a.jsx(eo,{asChild:l,className:n,children:i}),e[4]=l,e[5]=n,e[6]=i,e[7]=c):c=e[7],c}function ao(t){const e=h.c(2),{className:s}=t;let o;return e[0]!==s?(o=a.jsx(so,{className:s}),e[0]=s,e[1]=o):o=e[1],o}function lo(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx("div",{className:"w-8 h-8 bg-muted rounded-full animate-pulse"}),t[0]=e):e=t[0],e}const Z=Object.assign(no,{Item:oo,Separator:ao,Skeleton:lo});function io(t){const e=h.c(32),{open:s,onOpenChange:o,user:n,userImage:l}=t,[i,c]=v.useState(!1);let r;e[0]!==n.id?(r=()=>{navigator.clipboard.writeText(n.id),c(!0),setTimeout(()=>c(!1),2e3)},e[0]=n.id,e[1]=r):r=e[1];const d=r;let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsxs(bt,{children:[a.jsx(jt,{children:"Profile"}),a.jsx(vt,{children:"Your account information"})]}),e[2]=m):m=e[2];const f=n.name||n.email||"U";let u;e[3]!==f||e[4]!==l?(u=a.jsx(we,{url:l,fallback:f,shape:"circle",size:"2xl"}),e[3]=f,e[4]=l,e[5]=u):u=e[5];const x=n.name||n.email;let p;e[6]!==x?(p=a.jsx("div",{className:"text-lg font-semibold text-center",children:x}),e[6]=x,e[7]=p):p=e[7];let S;e[8]!==n.email?(S=a.jsx("div",{className:"text-sm text-muted-foreground text-center",children:n.email}),e[8]=n.email,e[9]=S):S=e[9];let g;e[10]!==p||e[11]!==S?(g=a.jsxs("div",{className:"flex flex-col items-center gap-2 w-full",children:[p,S]}),e[10]=p,e[11]=S,e[12]=g):g=e[12];let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:"User ID"}),e[13]=b):b=e[13];let j;e[14]!==n.id?(j=a.jsxs("div",{className:"flex flex-col gap-1 min-w-0 flex-1",children:[b,a.jsx("span",{className:"text-sm font-mono truncate",children:n.id})]}),e[14]=n.id,e[15]=j):j=e[15];let _;e[16]!==i?(_=i?a.jsx(gs,{size:16,className:"text-green-600"}):a.jsx(Bs,{size:16,className:"text-muted-foreground"}),e[16]=i,e[17]=_):_=e[17];let w;e[18]!==d||e[19]!==_?(w=a.jsx("button",{type:"button",onClick:d,className:"flex-shrink-0 p-2 hover:bg-background rounded-md transition-colors","aria-label":"Copy user ID",children:_}),e[18]=d,e[19]=_,e[20]=w):w=e[20];let y;e[21]!==j||e[22]!==w?(y=a.jsxs("div",{className:"flex items-center justify-between gap-3 w-full px-4 py-3 rounded-lg bg-muted/50 border border-border",children:[j,w]}),e[21]=j,e[22]=w,e[23]=y):y=e[23];let C;e[24]!==y||e[25]!==u||e[26]!==g?(C=a.jsxs(St,{className:"sm:max-w-md",children:[m,a.jsxs("div",{className:"flex flex-col items-center gap-6 py-4",children:[u,g,y]})]}),e[24]=y,e[25]=u,e[26]=g,e[27]=C):C=e[27];let k;return e[28]!==o||e[29]!==s||e[30]!==C?(k=a.jsx(Ct,{open:s,onOpenChange:o,children:C}),e[28]=o,e[29]=s,e[30]=C,e[31]=k):k=e[31],k}function ro(t){const e=h.c(5),{open:s,onOpenChange:o}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsxs(bt,{children:[a.jsx(jt,{children:"Invitations"}),a.jsx(vt,{children:"Your pending organization invitations"})]}),e[0]=n):n=e[0];let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsxs(St,{className:"sm:max-w-lg",children:[n,a.jsx("div",{className:"max-h-[420px] overflow-auto pr-1",children:a.jsx(os,{})})]}),e[1]=l):l=e[1];let i;return e[2]!==o||e[3]!==s?(i=a.jsx(Ct,{open:s,onOpenChange:o,children:l}),e[2]=o,e[3]=s,e[4]=i):i=e[4],i}function co(t){const e=h.c(31),{user:s,userImage:o,hasInvites:n,showInvitesItem:l}=t,[i,c]=v.useState(!1),[r,d]=v.useState(!1);let m;e[0]!==n||e[1]!==s.email||e[2]!==s.name||e[3]!==o?(m=()=>a.jsxs("div",{className:"relative",children:[a.jsx(we,{url:o,fallback:s.name||s.email||"U",shape:"circle",size:"sm",className:"cursor-pointer hover:ring-2 ring-muted-foreground transition-all"}),n&&a.jsx("span",{className:"absolute -top-0.5 -right-0.5 h-2.5 w-2.5 rounded-full bg-destructive ring-2 ring-background"})]}),e[0]=n,e[1]=s.email,e[2]=s.name,e[3]=o,e[4]=m):m=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsxs(Z.Item,{onClick:()=>c(!0),children:[a.jsx(Ot,{className:"text-muted-foreground",size:18}),"Profile"]}),e[5]=f):f=e[5];let u;e[6]!==n||e[7]!==l?(u=l&&a.jsxs(Z.Item,{onClick:()=>d(!0),children:[a.jsx(zt,{className:"text-muted-foreground",size:18}),"Invitations",n&&a.jsx("span",{className:"ml-auto h-2 w-2 rounded-full bg-destructive"})]}),e[6]=n,e[7]=l,e[8]=u):u=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Z.Separator,{}),e[9]=x):x=e[9];let p;e[10]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(ns,{className:"w-4 h-4 text-muted-foreground"}),e[10]=p):p=e[10];let S;e[11]===Symbol.for("react.memo_cache_sentinel")?(S=a.jsx(Z.Item,{asChild:!0,children:a.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:[p,"decocms/admin",a.jsx(ct,{size:18,className:"text-muted-foreground ml-auto"})]})}),e[11]=S):S=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(kt,{className:"text-muted-foreground",size:18}),e[12]=g):g=e[12];let b,j;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(Z.Item,{asChild:!0,children:a.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex w-full items-center gap-2 text-sm cursor-pointer",children:[g,"Homepage",a.jsx(ct,{size:18,className:"ml-auto text-muted-foreground"})]})}),j=a.jsx(Z.Separator,{}),e[13]=b,e[14]=j):(b=e[13],j=e[14]);let _;e[15]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsxs(Z.Item,{onClick:mo,children:[a.jsx(Mt,{size:18,className:"text-muted-foreground"}),"Log out"]}),e[15]=_):_=e[15];let w;e[16]!==m||e[17]!==u||e[18]!==s?(w=a.jsxs(Z,{user:s,trigger:m,align:"end",children:[f,u,x,S,b,j,_]}),e[16]=m,e[17]=u,e[18]=s,e[19]=w):w=e[19];let y;e[20]!==i||e[21]!==s||e[22]!==o?(y=i&&a.jsx(io,{open:i,onOpenChange:c,user:s,userImage:o}),e[20]=i,e[21]=s,e[22]=o,e[23]=y):y=e[23];let C;e[24]!==r||e[25]!==l?(C=l&&r&&a.jsx(ro,{open:r,onOpenChange:d}),e[24]=r,e[25]=l,e[26]=C):C=e[26];let k;return e[27]!==w||e[28]!==y||e[29]!==C?(k=a.jsxs(a.Fragment,{children:[w,y,C]}),e[27]=w,e[28]=y,e[29]=C,e[30]=k):k=e[30],k}function mo(){return Ne.signOut()}function fo(){const{data:t}=Ne.useSession(),e=v.useContext(ss),{data:s}=e.hooks.useListUserInvitations(),n=(s??[]).length>0;if(!t?.user)return a.jsx(we,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer",muted:!0});const l=t.user,i={...l,name:l.name??void 0},c=l.image;return a.jsx(co,{user:i,userImage:c,hasInvites:n,showInvitesItem:!0})}function ot(){const t=h.c(4);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=Be.decoChatOpen(),t[0]=e):e=t[0];const[s,o]=He(e,uo);let n;return t[1]!==s||t[2]!==o?(n=[s,o],t[1]=s,t[2]=o,t[3]=n):n=t[3],n}function uo(t){return!!(t??!1)}function ho(t){const e=h.c(6),{children:s}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(as,{children:a.jsx(pt,{})}),e[0]=o):o=e[0];let n;e[1]!==s?(n=a.jsx(ls,{children:s}),e[1]=s,e[2]=n):n=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(is,{children:a.jsx(rs,{to:"/login",replace:!0})}),e[3]=l):l=e[3];let i;return e[4]!==n?(i=a.jsxs(a.Fragment,{children:[o,n,l]}),e[4]=n,e[5]=i):i=e[5],i}function po(t){const e=h.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=z("fixed top-0 left-0 right-0 z-20 bg-sidebar flex items-center w-full h-12 border-b border-border",o),e[0]=o,e[1]=n):n=e[1];let l;return e[2]!==s||e[3]!==n?(l=a.jsx("div",{className:n,children:s}),e[2]=s,e[3]=n,e[4]=l):l=e[4],l}function xo(t){const e=h.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=z("flex items-center justify-center px-2 h-full border-r border-border",o),e[0]=o,e[1]=n):n=e[1];let l;return e[2]!==s||e[3]!==n?(l=a.jsx("div",{className:n,children:s}),e[2]=s,e[3]=n,e[4]=l):l=e[4],l}function go(t){const e=h.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=z("flex items-center gap-2 px-2 h-full",o),e[0]=o,e[1]=n):n=e[1];let l;return e[2]!==s||e[3]!==n?(l=a.jsx("div",{className:n,children:s}),e[2]=s,e[3]=n,e[4]=l):l=e[4],l}function bo(t){const e=h.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=z("flex items-center gap-2 px-2 h-full flex-1",o),e[0]=o,e[1]=n):n=e[1];let l;return e[2]!==s||e[3]!==n?(l=a.jsx("div",{className:n,children:s}),e[2]=s,e[3]=n,e[4]=l):l=e[4],l}function jo(t){const e=h.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=z("flex items-center gap-2 px-2 h-full ml-auto",o),e[0]=o,e[1]=n):n=e[1];let l;return e[2]!==s||e[3]!==n?(l=a.jsx("div",{className:n,children:s}),e[2]=s,e[3]=n,e[4]=l):l=e[4],l}function vo(){const t=h.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx("div",{className:"flex items-center justify-center px-2 h-full border-r border-border",children:a.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=a.jsx("div",{className:"flex items-center gap-2 px-2 h-full",children:a.jsx("div",{className:"w-32 h-6 bg-muted rounded-md animate-pulse"})}),t[1]=s):s=t[1];let o;return t[2]===Symbol.for("react.memo_cache_sentinel")?(o=a.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,a.jsx("div",{className:"flex items-center gap-2 px-2 h-full ml-auto",children:a.jsx("div",{className:"w-8 h-8 bg-muted rounded-full animate-pulse"})})]}),t[2]=o):o=t[2],o}const Re=Object.assign(po,{Sidebar:xo,Left:go,Center:bo,Right:jo,Skeleton:vo});function Vt(){const t=h.c(3),{toggleSidebar:e}=nt();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx($t,{className:"text-muted-foreground/85 group-hover:text-foreground transition-colors",size:20}),t[0]=s):s=t[0];let o;return t[1]!==e?(o=a.jsx(a.Fragment,{children:a.jsx(Y,{onClick:e,size:"icon",variant:"ghost",className:"w-8 h-8 rounded-md",children:s})}),t[1]=e,t[2]=o):o=t[2],o}Vt.Skeleton=function(){return a.jsx("div",{className:"w-8 h-8 bg-muted rounded-md animate-pulse"})};function So(t,e){return t.find(e)??t[0]}function ft(t,e,s,o){const n=h.c(9),l=null,[i,c]=He(t,l);let r;n[0]!==s||n[1]!==i?(r=u=>i!==null?s(u,i):!1,n[0]=s,n[1]=i,n[2]=r):r=n[2];let d;n[3]!==e||n[4]!==r?(d=So(e,r),n[3]=e,n[4]=r,n[5]=d):d=n[5];const m=d;let f;return n[6]!==m||n[7]!==c?(f=[m,c],n[6]=m,n[7]=c,n[8]=f):f=n[8],f}const Co="https://assets.decocache.com/decocms/fd07a578-6b1c-40f1-bc05-88a3b981695d/f7fc4ffa81aec04e37ae670c3cd4936643a7b269.png";function wo(t){const e=/\/[^/]+\/mcps\/([^/]+)\/([^/]+)\/([^/]+)/,s=t.match(e);return s&&s[1]&&s[2]&&s[3]?{connectionId:decodeURIComponent(s[1]),collectionName:decodeURIComponent(s[2]),itemId:decodeURIComponent(s[3])}:{connectionId:null,collectionName:null,itemId:null}}function No(t){const e=h.c(2),s=tt();let o;e[0]!==s.location.pathname?(o=wo(s.location.pathname),e[0]=s.location.pathname,e[1]=o):o=e[1];const{connectionId:n,collectionName:l,itemId:i}=o;return`You are an AI assistant running in an MCP Mesh environment.
|
|
1
|
+
import{r as v,c as h,j as a,R as Ft,T as Kt,D as Zt,C as Yt,P as qt,e as Xt,O as Jt,f as Qt,g as es,h as Le,i as tt,k as ts,d as ht,a as Ne,l as ss,G as ns,U as os,m as as,S as pt,n as ls,o as is,N as rs,t as at,p as cs,K as ds,q as xt}from"./index-Cxif_WiW.js";import{E as st}from"./error-boundary-Eygnq8Hk.js";import{i as ms}from"./File06-CuNx1VwU.js";import{i as Pe}from"./X-Duz5Cat7.js";import{u as ye}from"./use-mobile-C5d37E9R.js";import{c as z,B as Y,I as fs}from"./input-Dq5R1hsb.js";import{T as us,a as hs,b as ps,c as xs,u as De,L as lt,i as gs,P as bs,O as js}from"./project-context-provider-C4m-SDFS.js";import{u as gt,a as vs}from"./use-organization-settings-BQ3Z2_RY.js";import{n as Ss,u as Cs,E as ws,I as it}from"./use-connection-CGMQx4M9.js";import{i as Qe}from"./use-gateway-_mFxXQBe.js";import{C as Ns}from"./create-organization-dialog-CJ98sB0C.js";import{P as ys,a as _s,b as ks}from"./popover-CsFIibUb.js";import{A as we}from"./avatar-B-VIja6j.js";import{c as Is}from"./Grid01-BZBEA_C4.js";import{D as $s,a as Ms,b as zs,c as Ts,u as Os,d as Es,e as As,G as Rs}from"./gateway-selector-CCKBvHsl.js";import{D as Ps,a as Ls,b as Ds,c as Hs,d as rt}from"./dropdown-menu-D6Qp2zGD.js";import{a as Bs}from"./Copy01-9fowVOg1.js";import{n as ct}from"./LinkExternal01-Dkycwe2R.js";import{D as bt,a as jt,b as vt,c as St,d as Ct}from"./dialog-DDYqAQBF.js";import{u as He,L as Be}from"./localstorage-keys-TO4Iz1ZL.js";import{C as A,u as dt,a as Us,b as Gs,c as Ws,d as Vs,N as Fs,G as Ks,U as Zs,T as Ys,M as qs,D as Xs}from"./thread-history-popover-Cm6dNBcQ.js";import{R as wt,a as Js,b as Qs}from"./resizable-CP3lQk6C.js";import{i as en}from"./Loading01-FEharlZ3.js";import{s as tn}from"./Plus-WiwD_J2H.js";import{u as sn}from"./use-binding-Db1yl1TL.js";import"./alert-dialog-DIvkZeS8.js";import"./form-Bff3cjR5.js";import"./spinner-Cm9P6I1C.js";import"./select-BEsgTDeZ.js";import"./ChevronDown-BNNXIQh8.js";import"./ChevronRight-VxwRrYTx.js";import"./useQuery-CNppnPNo.js";import"./AlertCircle-Zcaeo0Ph.js";import"./textarea-BUrXlyuG.js";import"./Terminal-Dh9is2K6.js";import"./monaco-editor-BLJ-5Rq_.js";import"./InfoCircle-ML5pVcTa.js";import"./well-known-mcp-D13f-8h2.js";import"./generate-id-Dyweu44Y.js";import"./Trash01-_uGmDh1B.js";import"./auth-Bs90bxg0.js";const Nt=({size:t=24,color:e="currentColor",...s})=>v.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},v.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"}));Nt.displayName="BarChart10";const yt=({size:t=24,color:e="currentColor",...s})=>v.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},v.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"}));yt.displayName="Building02";const _t=({size:t=24,color:e="currentColor",...s})=>v.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},v.createElement("path",{d:"m7 15 5 5 5-5M7 9l5-5 5 5"}));_t.displayName="ChevronSelectorVertical";const kt=({size:t=24,color:e="currentColor",...s})=>v.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},v.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"}));kt.displayName="Globe01";const It=({size:t=24,color:e="currentColor",...s})=>v.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},v.createElement("path",{d:"M9 21v-7.4c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 12 10.04 12 10.6 12h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 12.76 15 13.04 15 13.6V21M11.018 2.764 4.235 8.039c-.453.353-.68.53-.843.75a2 2 0 0 0-.318.65C3 9.704 3 9.991 3 10.565V17.8c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8v-7.235c0-.574 0-.861-.074-1.126a2.002 2.002 0 0 0-.318-.65c-.163-.22-.39-.397-.843-.75l-6.783-5.275c-.351-.273-.527-.41-.72-.462a1 1 0 0 0-.523 0c-.194.052-.37.189-.721.462Z"}));It.displayName="Home02";const $t=({size:t=24,color:e="currentColor",...s})=>v.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},v.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"}));$t.displayName="LayoutRight";const Mt=({size:t=24,color:e="currentColor",...s})=>v.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},v.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"}));Mt.displayName="LogOut01";const zt=({size:t=24,color:e="currentColor",...s})=>v.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},v.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"}));zt.displayName="Mail01";const Tt=({size:t=24,color:e="currentColor",...s})=>v.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},v.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}),v.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"}));Tt.displayName="Settings01";const Ot=({size:t=24,color:e="currentColor",...s})=>v.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},v.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"}));Ot.displayName="UserCircle";const Et=({size:t=24,color:e="currentColor",...s})=>v.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},v.createElement("path",{d:"M22 21v-2a4.002 4.002 0 0 0-3-3.874M15.5 3.291a4.001 4.001 0 0 1 0 7.418M17 21c0-1.864 0-2.796-.305-3.53a4 4 0 0 0-2.164-2.165C13.796 15 12.864 15 11 15H8c-1.864 0-2.796 0-3.53.305a4 4 0 0 0-2.166 2.164C2 18.204 2 19.136 2 21M13.5 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"}));Et.displayName="Users01";const At=({size:t=24,color:e="currentColor",...s})=>v.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},v.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"}));At.displayName="Zap";function nn(t){const e=h.c(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let o;return e[2]!==s?(o=a.jsx(Ft,{"data-slot":"sheet",...s}),e[2]=s,e[3]=o):o=e[3],o}function on(t){const e=h.c(4);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let o;return e[2]!==s?(o=a.jsx(qt,{"data-slot":"sheet-portal",...s}),e[2]=s,e[3]=o):o=e[3],o}function an(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("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]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx(Jt,{"data-slot":"sheet-overlay",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function ln(t){const e=h.c(17);let s,o,n,l;e[0]!==t?({className:o,children:s,side:l,...n}=t,e[0]=t,e[1]=s,e[2]=o,e[3]=n,e[4]=l):(s=e[1],o=e[2],n=e[3],l=e[4]);const i=l===void 0?"right":l;let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(an,{}),e[5]=c):c=e[5];const r=i==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",d=i==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",m=i==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",f=i==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let u;e[6]!==o||e[7]!==r||e[8]!==d||e[9]!==m||e[10]!==f?(u=z("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",r,d,m,f,o),e[6]=o,e[7]=r,e[8]=d,e[9]=m,e[10]=f,e[11]=u):u=e[11];let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsxs(Xt,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[a.jsx(Pe,{className:"size-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=x):x=e[12];let p;return e[13]!==s||e[14]!==n||e[15]!==u?(p=a.jsxs(on,{children:[c,a.jsxs(Yt,{"data-slot":"sheet-content",className:u,...n,children:[s,x]})]}),e[13]=s,e[14]=n,e[15]=u,e[16]=p):p=e[16],p}function rn(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("flex flex-col gap-1.5 p-4",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("div",{"data-slot":"sheet-header",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function cn(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("text-foreground font-semibold",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx(Kt,{"data-slot":"sheet-title",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function dn(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("text-muted-foreground text-sm",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx(Zt,{"data-slot":"sheet-description",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function Rt(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("div",{"data-slot":"skeleton",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}const mn="sidebar_state",fn=3600*24*7,un="16rem",hn="18rem",pn="3rem",xn="b",Pt=v.createContext(null);function nt(){const t=v.useContext(Pt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function gn(t){const e=h.c(21),{defaultOpen:s,open:o,onOpenChange:n,children:l}=t,i=s===void 0?!0:s,c=ye(),[r,d]=v.useState(!1),[m,f]=v.useState(i),u=o??m;let x;e[0]!==u||e[1]!==n?(x=M=>{const $=typeof M=="function"?M(u):M;n?n($):f($),document.cookie=`${mn}=${$}; path=/; max-age=${fn}`},e[0]=u,e[1]=n,e[2]=x):x=e[2];const p=x;let S;e[3]!==c||e[4]!==p?(S=()=>c?d(jn):p(bn),e[3]=c,e[4]=p,e[5]=S):S=e[5];const g=S;let b,j;e[6]!==g?(b=()=>{const M=$=>{if($.key===xn&&($.metaKey||$.ctrlKey)){const N=$.target;if(N.tagName==="INPUT"||N.tagName==="TEXTAREA"||N.isContentEditable)return;$.preventDefault(),g()}};return globalThis.addEventListener("keydown",M),()=>globalThis.removeEventListener("keydown",M)},j=[g],e[6]=g,e[7]=b,e[8]=j):(b=e[7],j=e[8]),v.useEffect(b,j);const _=u?"expanded":"collapsed";let w;e[9]!==c||e[10]!==u||e[11]!==r||e[12]!==p||e[13]!==_||e[14]!==g?(w={state:_,open:u,setOpen:p,isMobile:c,openMobile:r,setOpenMobile:d,toggleSidebar:g},e[9]=c,e[10]=u,e[11]=r,e[12]=p,e[13]=_,e[14]=g,e[15]=w):w=e[15];const y=w;let C;e[16]!==l?(C=a.jsx(hs,{delayDuration:0,children:l}),e[16]=l,e[17]=C):C=e[17];let k;return e[18]!==y||e[19]!==C?(k=a.jsx(Pt.Provider,{value:y,children:C}),e[18]=y,e[19]=C,e[20]=k):k=e[20],k}function bn(t){return!t}function jn(t){return!t}function vn(t){const e=h.c(14);let s,o,n,l;e[0]!==t?({className:o,style:l,children:s,...n}=t,e[0]=t,e[1]=s,e[2]=o,e[3]=n,e[4]=l):(s=e[1],o=e[2],n=e[3],l=e[4]);let i;e[5]!==l?(i={"--sidebar-width":un,"--sidebar-width-icon":pn,...l},e[5]=l,e[6]=i):i=e[6];const c=i;let r;e[7]!==o?(r=z("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",o),e[7]=o,e[8]=r):r=e[8];let d;return e[9]!==s||e[10]!==n||e[11]!==c||e[12]!==r?(d=a.jsx("div",{"data-slot":"sidebar-wrapper",style:c,className:r,...n,children:s}),e[9]=s,e[10]=n,e[11]=c,e[12]=r,e[13]=d):d=e[13],d}function Sn(t){const e=h.c(46);let s,o,n,l,i,c;e[0]!==t?({side:l,variant:i,collapsible:c,className:o,children:s,...n}=t,e[0]=t,e[1]=s,e[2]=o,e[3]=n,e[4]=l,e[5]=i,e[6]=c):(s=e[1],o=e[2],n=e[3],l=e[4],i=e[5],c=e[6]);const r=l===void 0?"left":l,d=i===void 0?"sidebar":i,m=c===void 0?"offcanvas":c,{isMobile:f,state:u,openMobile:x,setOpenMobile:p}=nt();if(m==="none"){let $;e[7]!==o?($=z("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",o),e[7]=o,e[8]=$):$=e[8];let N;return e[9]!==s||e[10]!==n||e[11]!==$?(N=a.jsx("div",{"data-slot":"sidebar",className:$,...n,children:s}),e[9]=s,e[10]=n,e[11]=$,e[12]=N):N=e[12],N}if(f){let $;e[13]===Symbol.for("react.memo_cache_sentinel")?($={"--sidebar-width":hn},e[13]=$):$=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsxs(rn,{className:"sr-only",children:[a.jsx(cn,{children:"Sidebar"}),a.jsx(dn,{children:"Displays the mobile sidebar."})]}),e[14]=N):N=e[14];let T;e[15]!==s?(T=a.jsx("div",{className:"flex h-full w-full flex-col",children:s}),e[15]=s,e[16]=T):T=e[16];let R;e[17]!==r||e[18]!==T?(R=a.jsxs(ln,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:$,side:r,children:[N,T]}),e[17]=r,e[18]=T,e[19]=R):R=e[19];let H;return e[20]!==x||e[21]!==n||e[22]!==p||e[23]!==R?(H=a.jsx(nn,{open:x,onOpenChange:p,...n,children:R}),e[20]=x,e[21]=n,e[22]=p,e[23]=R,e[24]=H):H=e[24],H}const S=u==="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 b;e[25]!==g?(b=z("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]=b):b=e[26];let j;e[27]!==b?(j=a.jsx("div",{"data-slot":"sidebar-gap",className:b}),e[27]=b,e[28]=j):j=e[28];const _=r==="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)]",w=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 y;e[29]!==o||e[30]!==_||e[31]!==w?(y=z("fixed top-12 bottom-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",_,w,o),e[29]=o,e[30]=_,e[31]=w,e[32]=y):y=e[32];let C;e[33]!==s?(C=a.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]=C):C=e[34];let k;e[35]!==n||e[36]!==y||e[37]!==C?(k=a.jsx("div",{"data-slot":"sidebar-container",className:y,...n,children:C}),e[35]=n,e[36]=y,e[37]=C,e[38]=k):k=e[38];let M;return e[39]!==r||e[40]!==u||e[41]!==k||e[42]!==S||e[43]!==j||e[44]!==d?(M=a.jsxs("div",{className:"group peer text-foreground hidden md:block border-r","data-state":u,"data-collapsible":S,"data-variant":d,"data-side":r,"data-slot":"sidebar",children:[j,k]}),e[39]=r,e[40]=u,e[41]=k,e[42]=S,e[43]=j,e[44]=d,e[45]=M):M=e[45],M}function Cn(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("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]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("main",{"data-slot":"sidebar-inset",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function wn(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("h-4 m-0! w-full",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("div",{"data-sidebar":"separator",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function Nn(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function yn(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function _n(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("w-full text-sm",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function kn(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("flex w-full min-w-0 flex-col gap-1",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function Ue(t){const e=h.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=z("group/menu-item relative",s),e[3]=s,e[4]=n):n=e[4];let l;return e[5]!==o||e[6]!==n?(l=a.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}const In=Qt("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 Lt(t){const e=h.c(28);let s,o,n,l,i,c,r;e[0]!==t?({asChild:n,isActive:l,variant:i,size:c,tooltip:r,className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o,e[3]=n,e[4]=l,e[5]=i,e[6]=c,e[7]=r):(s=e[1],o=e[2],n=e[3],l=e[4],i=e[5],c=e[6],r=e[7]);const d=n===void 0?!1:n,m=l===void 0?!1:l,f=i===void 0?"default":i,u=c===void 0?"default":c,x=d?es:"button",{isMobile:p,state:S}=nt();let g;e[8]!==s||e[9]!==u||e[10]!==f?(g=z(In({variant:f,size:u}),s),e[8]=s,e[9]=u,e[10]=f,e[11]=g):g=e[11];let b;e[12]!==x||e[13]!==m||e[14]!==o||e[15]!==u||e[16]!==g?(b=a.jsx(x,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":u,"data-active":m,className:g,...o}),e[12]=x,e[13]=m,e[14]=o,e[15]=u,e[16]=g,e[17]=b):b=e[17];const j=b;if(!r)return j;if(typeof r=="string"){let k;e[18]!==r?(k={children:r},e[18]=r,e[19]=k):k=e[19],r=k}let _;e[20]!==j?(_=a.jsx(ps,{asChild:!0,children:j}),e[20]=j,e[21]=_):_=e[21];const w=S!=="collapsed"||p;let y;e[22]!==w||e[23]!==r?(y=a.jsx(us,{side:"right",align:"center",hidden:w,...r}),e[22]=w,e[23]=r,e[24]=y):y=e[24];let C;return e[25]!==_||e[26]!==y?(C=a.jsxs(xs,{children:[_,y]}),e[25]=_,e[26]=y,e[27]=C):C=e[27],C}function $n(t){const e=h.c(26),{item:s}=t,o=Le(),{org:n}=De(),l=gt(n.id),i=vs(n.id);let c;e[0]!==i.update||e[1]!==s.url||e[2]!==l?.sidebar_items?(c=async()=>{const w=(l?.sidebar_items||[]).filter(y=>y.url!==s.url);await i.update.mutateAsync({sidebar_items:w})},e[0]=i.update,e[1]=s.url,e[2]=l?.sidebar_items,e[3]=c):c=e[3];const r=c;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]!==o?(u=()=>{o({to:s.url})},e[7]=s.url,e[8]=o,e[9]=u):u=e[9];const x=s.title;let p;e[10]!==f||e[11]!==s.icon||e[12]!==s.title?(p=a.jsx("div",{className:"flex items-center justify-center shrink-0",children:f?a.jsx("img",{src:s.icon,alt:s.title,className:"h-4 w-4 rounded object-cover"}):a.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]=p):p=e[13];let S;e[14]!==s.title?(S=s.title.toLocaleLowerCase(),e[14]=s.title,e[15]=S):S=e[15];let g;e[16]!==S?(g=a.jsx("div",{className:"flex-1 min-w-0 flex flex-col items-start",children:a.jsx("span",{className:"truncate text-sm w-full capitalize",children:S})}),e[16]=S,e[17]=g):g=e[17];let b;e[18]!==r?(b=a.jsx(Pe,{size:16,className:"text-muted-foreground opacity-0 group-hover/item:opacity-50 hover:opacity-100 cursor-pointer",onClick:_=>{_.preventDefault(),_.stopPropagation(),r()}}),e[18]=r,e[19]=b):b=e[19];let j;return e[20]!==s.title||e[21]!==u||e[22]!==p||e[23]!==g||e[24]!==b?(j=a.jsx(Ue,{children:a.jsxs(Lt,{className:"w-full pr-2 group/item relative cursor-pointer text-foreground/90 hover:text-foreground",onClick:u,tooltip:x,children:[p,g,b]})}),e[20]=s.title,e[21]=u,e[22]=p,e[23]=g,e[24]=b,e[25]=j):j=e[25],j}function Mn(){const t=h.c(4),{org:e}=De(),o=gt(e.id)?.sidebar_items;if(!o?.length)return null;let n;t[0]!==o?(n=o.map(zn),t[0]=o,t[1]=n):n=t[1];let l;return t[2]!==n?(l=a.jsx(Dt,{children:n}),t[2]=n,t[3]=l):l=t[3],l}function zn(t){return a.jsx($n,{item:t},t.url)}function mt(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(Ue,{children:a.jsx("div",{className:"flex items-center gap-2 px-4 py-2",children:a.jsx(Rt,{className:"h-4 flex-1"})})}),t[0]=e):e=t[0],e}function Dt(t){const e=h.c(4),{children:s}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(wn,{className:"my-2 -ml-1"}),e[0]=o):o=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Ue,{children:a.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:a.jsx("span",{className:"whitespace-nowrap",children:"Pinned Views"})})}),e[1]=n):n=e[1];let l;return e[2]!==s?(l=a.jsxs(a.Fragment,{children:[o,n,s]}),e[2]=s,e[3]=l):l=e[3],l}function Tn(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(v.Suspense,{fallback:a.jsxs(Dt,{children:[a.jsx(mt,{}),a.jsx(mt,{})]}),children:a.jsx(Mn,{})}),t[0]=e):e=t[0],e}function On(){const t=h.c(49),{locator:e}=De(),s=Le(),o=tt();let n;t[0]!==e?(n=lt.parse(e),t[0]=e,t[1]=n):n=t[1];const{org:l}=n;let i;t[2]!==e?(i=lt.isOrgAdminProject(e),t[2]=e,t[3]=i):i=t[3];const c=i,r=o.location.pathname===`/${l}`||o.location.pathname===`/${l}/`;let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(It,{}),t[4]=d):d=t[4];let m;t[5]!==r||t[6]!==s||t[7]!==l?(m={key:"home",label:"Home",icon:d,onClick:()=>{r?window.dispatchEvent(new CustomEvent("reset-home-view")):s({to:"/$org",params:{org:l}})}},t[5]=r,t[6]=s,t[7]=l,t[8]=m):m=t[8];let f;t[9]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(yt,{}),t[9]=f):f=t[9];let u;t[10]!==s||t[11]!==l?(u={key:"store",label:"Store",icon:f,onClick:()=>s({to:"/$org/store",params:{org:l}})},t[10]=s,t[11]=l,t[12]=u):u=t[12];let x;t[13]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Ss,{}),t[13]=x):x=t[13];let p;t[14]!==s||t[15]!==l?(p={key:"mcps",label:"Connections",icon:x,onClick:()=>s({to:"/$org/mcps",params:{org:l}})},t[14]=s,t[15]=l,t[16]=p):p=t[16];let S;t[17]===Symbol.for("react.memo_cache_sentinel")?(S=a.jsx(Qe,{}),t[17]=S):S=t[17];let g;t[18]!==s||t[19]!==l?(g={key:"gateways",label:"Hubs",icon:S,onClick:()=>s({to:"/$org/gateways",params:{org:l}})},t[18]=s,t[19]=l,t[20]=g):g=t[20];let b;t[21]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(At,{}),t[21]=b):b=t[21];let j;t[22]!==s||t[23]!==l?(j={key:"workflow",label:"Workflows",icon:b,onClick:()=>s({to:"/$org/workflows",params:{org:l}})},t[22]=s,t[23]=l,t[24]=j):j=t[24];let _;t[25]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(Nt,{}),t[25]=_):_=t[25];let w;t[26]!==s||t[27]!==l?(w={key:"monitoring",label:"Monitoring",icon:_,onClick:()=>s({to:"/$org/monitoring",params:{org:l}})},t[26]=s,t[27]=l,t[28]=w):w=t[28];let y;t[29]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(Et,{}),t[29]=y):y=t[29];let C;t[30]!==s||t[31]!==l?(C={key:"members",label:"Members",icon:y,onClick:()=>s({to:"/$org/members",params:{org:l}})},t[30]=s,t[31]=l,t[32]=C):C=t[32];let k;t[33]===Symbol.for("react.memo_cache_sentinel")?(k=a.jsx(Tt,{}),t[33]=k):k=t[33];let M;t[34]!==s||t[35]!==l?(M={key:"settings",label:"Settings",icon:k,onClick:()=>s({to:"/$org/settings",params:{org:l}})},t[34]=s,t[35]=l,t[36]=M):M=t[36];let $;t[37]!==j||t[38]!==w||t[39]!==C||t[40]!==M||t[41]!==m||t[42]!==u||t[43]!==p||t[44]!==g?($=[m,u,p,g,j,w,C,M],t[37]=j,t[38]=w,t[39]=C,t[40]=M,t[41]=m,t[42]=u,t[43]=p,t[44]=g,t[45]=$):$=t[45];const N=$;let T;return t[46]!==N||t[47]!==c?(T=c?N:[],t[46]=N,t[47]=c,t[48]=T):T=t[48],T}function Ht(t){const e=h.c(10),{navigationItems:s,footer:o,additionalContent:n,variant:l,collapsible:i}=t,c=l===void 0?"sidebar":l,r=i===void 0?"icon":i;let d;e[0]!==s?(d=s.map(En),e[0]=s,e[1]=d):d=e[1];let m;e[2]!==n||e[3]!==d?(m=a.jsx(Nn,{className:"flex-1 overflow-x-hidden",children:a.jsx(yn,{className:"font-medium",children:a.jsx(_n,{children:a.jsxs(kn,{className:"gap-0.5",children:[d,n]})})})}),e[2]=n,e[3]=d,e[4]=m):m=e[4];let f;return e[5]!==r||e[6]!==o||e[7]!==m||e[8]!==c?(f=a.jsxs(Sn,{variant:c,collapsible:r,children:[m,o]}),e[5]=r,e[6]=o,e[7]=m,e[8]=c,e[9]=f):f=e[9],f}function En(t){return a.jsx(Ue,{children:a.jsxs(Lt,{className:"group/nav-item cursor-pointer text-foreground/90 hover:text-foreground",onClick:t.onClick,isActive:t.isActive,tooltip:t.label,children:[a.jsx("span",{className:"text-muted-foreground group-hover/nav-item:text-foreground transition-colors [&>svg]:size-4",children:t.icon}),a.jsx("span",{className:"truncate",children:t.label})]})},t.key)}Ht.Skeleton=function(){return a.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,s)=>a.jsx("div",{className:"w-full h-8",children:a.jsx(Rt,{className:"h-full bg-sidebar-accent rounded-md"})},s))})};function An(){const t=h.c(3),e=On();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(a.Fragment,{children:a.jsx(st,{children:a.jsx(v.Suspense,{fallback:null,children:a.jsx(Tn,{})})})}),t[0]=s):s=t[0];let o;return t[1]!==e?(o=a.jsx(Ht,{navigationItems:e,additionalContent:s}),t[1]=e,t[2]=o):o=t[2],o}function Rn(t){const e=h.c(12);let s,o,n,l;e[0]!==t?({className:s,orientation:n,decorative:l,...o}=t,e[0]=t,e[1]=s,e[2]=o,e[3]=n,e[4]=l):(s=e[1],o=e[2],n=e[3],l=e[4]);const i=n===void 0?"horizontal":n,c=l===void 0?!0:l;let r;e[5]!==s?(r=z("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]=r):r=e[6];let d;return e[7]!==c||e[8]!==i||e[9]!==o||e[10]!==r?(d=a.jsx(ts,{"data-slot":"separator-root",decorative:c,orientation:i,className:r,...o}),e[7]=c,e[8]=i,e[9]=o,e[10]=r,e[11]=d):d=e[11],d}const Bt=v.createContext(null);function Pn(){const t=v.useContext(Bt);if(!t)throw new Error("TopbarSwitcher compound components must be used within TopbarSwitcher.Root");return t}function Ln(t){const e=h.c(10),{children:s,onItemHover:o}=t,[n,l]=v.useState(null);let i;e[0]!==o?(i=f=>{l(f),o?.(f)},e[0]=o,e[1]=i):i=e[1];const c=i;let r;e[2]!==n||e[3]!==c?(r={hoveredItem:n,setHoveredItem:c},e[2]=n,e[3]=c,e[4]=r):r=e[4];let d;e[5]!==s?(d=a.jsx(ys,{children:s}),e[5]=s,e[6]=d):d=e[6];let m;return e[7]!==r||e[8]!==d?(m=a.jsx(Bt.Provider,{value:r,children:d}),e[7]=r,e[8]=d,e[9]=m):m=e[9],m}function Dn(t){const e=h.c(6),{children:s,onClick:o}=t;let n;e[0]!==s||e[1]!==o?(n=a.jsx(Y,{variant:"link",className:"p-0.5 h-auto",onClick:o,type:"button",children:s}),e[0]=s,e[1]=o,e[2]=n):n=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(_s,{asChild:!0,children:a.jsx(Y,{size:"icon",variant:"ghost",className:"w-6 h-6 p-0",children:a.jsx(_t,{size:16,className:"opacity-50"})})}),e[3]=l):l=e[3];let i;return e[4]!==n?(i=a.jsxs("div",{className:"flex items-center gap-1",children:[n,l]}),e[4]=n,e[5]=i):i=e[5],i}function Hn(t){const e=h.c(8),{item:s,fallback:o}=t,n=o===void 0?"":o,l=s?.avatarUrl??"",i=s?.name??n;let c;e[0]!==l||e[1]!==i?(c=a.jsx(we,{url:l,fallback:i,size:"xs",objectFit:"contain"}),e[0]=l,e[1]=i,e[2]=c):c=e[2];const r=s?.name??n;let d;e[3]!==r?(d=a.jsx("span",{children:r}),e[3]=r,e[4]=d):d=e[4];let m;return e[5]!==c||e[6]!==d?(m=a.jsxs("div",{className:"flex items-center gap-2",children:[c,d]}),e[5]=c,e[6]=d,e[7]=m):m=e[7],m}function Bn(t){const e=h.c(6),{children:s,align:o}=t,n=o===void 0?"start":o,i=v.Children.toArray(s).filter(Un).length===1?"280px":"480px";let c;e[0]!==i?(c={width:i},e[0]=i,e[1]=c):c=e[1];let r;return e[2]!==n||e[3]!==s||e[4]!==c?(r=a.jsx(ks,{align:n,className:"p-0 flex items-start",style:c,children:s}),e[2]=n,e[3]=s,e[4]=c,e[5]=r):r=e[5],r}function Un(t){return v.isValidElement(t)&&(t.type===Gt||t.type===Ut)}function Ut(t){const e=h.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=z("flex flex-col border-border w-[240px] border-r last:border-r-0 last:w-full",o),e[0]=o,e[1]=n):n=e[1];let l;return e[2]!==s||e[3]!==n?(l=a.jsx("div",{className:n,children:s}),e[2]=s,e[3]=n,e[4]=l):l=e[4],l}const Gt=Ut;function Gn(t){const e=h.c(6),{placeholder:s,value:o,onChange:n}=t,l=s===void 0?"Search...":s;let i;e[0]!==n?(i=r=>n(r.target.value),e[0]=n,e[1]=i):i=e[1];let c;return e[2]!==l||e[3]!==i||e[4]!==o?(c=a.jsx(fs,{placeholder:l,value:o,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]=o,e[5]=c):c=e[5],c}function Wn(t){const e=h.c(6),{children:s,emptyMessage:o}=t,n=o===void 0?"No items found.":o,l=v.Children.count(s)>0;let i;e[0]!==n||e[1]!==l?(i=!l&&a.jsx("div",{className:"text-muted-foreground text-sm px-1 py-8 text-center",children:n}),e[0]=n,e[1]=l,e[2]=i):i=e[2];let c;return e[3]!==s||e[4]!==i?(c=a.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]=c):c=e[5],c}function Vn(t){const e=h.c(15),{item:s,onClick:o,onHover:n,children:l}=t,i=Pn();let c;e[0]!==i||e[1]!==s||e[2]!==n?(c=()=>{i.setHoveredItem(s.slug),n?.(s)},e[0]=i,e[1]=s,e[2]=n,e[3]=c):c=e[3];const r=c;let d;e[4]!==s||e[5]!==o?(d=()=>o(s),e[4]=s,e[5]=o,e[6]=d):d=e[6];let m;e[7]!==l||e[8]!==s.avatarUrl||e[9]!==s.name?(m=l||a.jsxs(a.Fragment,{children:[a.jsx(we,{url:s.avatarUrl??"",fallback:s.name,size:"xs",className:"w-[22px]! h-[22px]!",objectFit:"contain"}),a.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]!==r||e[12]!==d||e[13]!==m?(f=a.jsx(Y,{onClick:d,onMouseEnter:r,variant:"ghost",size:"sm",className:"w-full justify-start font-normal",children:m}),e[11]=r,e[12]=d,e[13]=m,e[14]=f):f=e[14],f}function Fn(t){const e=h.c(2),{children:s}=t;let o;return e[0]!==s?(o=a.jsx("div",{className:"px-1 pb-1 pt-0.5",children:s}),e[0]=s,e[1]=o):o=e[1],o}function Kn(t){const e=h.c(11),{onClick:s,icon:o,children:n,variant:l}=t,c=(l===void 0?"default":l)==="muted"&&"text-muted-foreground";let r;e[0]!==c?(r=z("w-full justify-start font-normal",c),e[0]=c,e[1]=r):r=e[1];let d;e[2]!==o?(d=o&&a.jsx("span",{className:"[&>svg]:size-4",children:o}),e[2]=o,e[3]=d):d=e[3];let m;e[4]!==n?(m=a.jsx("span",{children:n}),e[4]=n,e[5]=m):m=e[5];let f;return e[6]!==s||e[7]!==r||e[8]!==d||e[9]!==m?(f=a.jsxs(Y,{variant:"ghost",size:"sm",className:r,onClick:s,children:[d,m]}),e[6]=s,e[7]=r,e[8]=d,e[9]=m,e[10]=f):f=e[10],f}function Zn(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(Rn,{}),t[0]=e):e=t[0],e}function Yn(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx("div",{className:"h-4 w-16 bg-accent rounded-full animate-pulse"}),t[0]=e):e=t[0],e}const D=Object.assign(Ln,{Trigger:Dn,CurrentItem:Hn,Content:Bn,Panel:Gt,Search:Gn,Items:Wn,Item:Vn,Actions:Fn,Action:Kn,Separator:Zn,Skeleton:Yn});function et(){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}=ht(e),{data:o}=Ne.useListOrganizations(),n=Le();let l;t[1]!==s||t[2]!==o?(l=o?.find(V=>V.slug===s),t[1]=s,t[2]=o,t[3]=l):l=t[3];const i=l,[c,r]=v.useState(""),[d,m]=v.useState(!1);let f,u,x,p,S,g,b,j;if(t[4]!==i||t[5]!==n||t[6]!==s||t[7]!==c||t[8]!==o){const q=(o?(()=>{const B=o.filter(U=>U.name.toLowerCase().includes(c.toLowerCase()));if(s){const U=B.findIndex(K=>K.slug===s);if(U>0){const K=B[U];K&&(B.splice(U,1),B.unshift(K))}}return B})():[]).map(qn);let I;t[17]!==i?(I=i?{slug:i.slug,name:i.name,avatarUrl:i.logo}:void 0,t[17]=i,t[18]=I):I=t[18];const W=I;p=D;let O;t[19]!==n||t[20]!==s?(O=()=>n({to:"/$org",params:{org:s??""}}),t[19]=n,t[20]=s,t[21]=O):O=t[21];let P;t[22]!==W?(P=a.jsx(D.CurrentItem,{item:W}),t[22]=W,t[23]=P):P=t[23],t[24]!==O||t[25]!==P?(j=a.jsx(D.Trigger,{onClick:O,children:P}),t[24]=O,t[25]=P,t[26]=j):j=t[26],x=D.Content,u=D.Panel,t[27]!==c?(b=a.jsx(D.Search,{placeholder:"Search organizations...",value:c,onChange:r}),t[27]=c,t[28]=b):b=t[28],f=D.Items,S="No organizations found.";let L;t[29]!==n?(L=B=>a.jsx(D.Item,{item:B,onClick:U=>n({to:"/$org",params:{org:U.slug}})},B.slug),t[29]=n,t[30]=L):L=t[30],g=q.map(L),t[4]=i,t[5]=n,t[6]=s,t[7]=c,t[8]=o,t[9]=f,t[10]=u,t[11]=x,t[12]=p,t[13]=S,t[14]=g,t[15]=b,t[16]=j}else f=t[9],u=t[10],x=t[11],p=t[12],S=t[13],g=t[14],b=t[15],j=t[16];let _;t[31]!==f||t[32]!==S||t[33]!==g?(_=a.jsx(f,{emptyMessage:S,children:g}),t[31]=f,t[32]=S,t[33]=g,t[34]=_):_=t[34];let w,y;t[35]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(D.Actions,{children:a.jsx(D.Action,{onClick:()=>m(!0),variant:"muted",children:"+ Create organization"})}),y=a.jsx(D.Separator,{}),t[35]=w,t[36]=y):(w=t[35],y=t[36]);let C;t[37]!==n?(C=()=>n({to:"/"}),t[37]=n,t[38]=C):C=t[38];let k;t[39]===Symbol.for("react.memo_cache_sentinel")?(k=a.jsx(Is,{}),t[39]=k):k=t[39];let M;t[40]!==C?(M=a.jsx(D.Actions,{children:a.jsx(D.Action,{onClick:C,icon:k,children:"See all organizations"})}),t[40]=C,t[41]=M):M=t[41];let $;t[42]!==u||t[43]!==M||t[44]!==b||t[45]!==_?($=a.jsxs(u,{children:[b,_,w,y,M]}),t[42]=u,t[43]=M,t[44]=b,t[45]=_,t[46]=$):$=t[46];let N;t[47]!==x||t[48]!==$?(N=a.jsx(x,{children:$}),t[47]=x,t[48]=$,t[49]=N):N=t[49];let T;t[50]!==p||t[51]!==N||t[52]!==j?(T=a.jsxs(p,{children:[j,N]}),t[50]=p,t[51]=N,t[52]=j,t[53]=T):T=t[53];let R;t[54]!==d?(R=a.jsx(Ns,{open:d,onOpenChange:m}),t[54]=d,t[55]=R):R=t[55];let H;return t[56]!==T||t[57]!==R?(H=a.jsxs(a.Fragment,{children:[T,R]}),t[56]=T,t[57]=R,t[58]=H):H=t[58],H}function qn(t){return{slug:t.slug,name:t.name,avatarUrl:t.logo}}et.Skeleton=D.Skeleton;const Wt=v.createContext({setOpen:()=>{}}),Xn=()=>v.useContext(Wt),Jn=t=>{const e=h.c(25);let s,o,n,l,i;e[0]!==t?({children:s,defaultOpen:o,open:l,onOpenChange:n,...i}=t,e[0]=t,e[1]=s,e[2]=o,e[3]=n,e[4]=l,e[5]=i):(s=e[1],o=e[2],n=e[3],l=e[4],i=e[5]);const c=o??!1;let r;e[6]!==n||e[7]!==l||e[8]!==c?(r={prop:l,defaultProp:c,onChange:n},e[6]=n,e[7]=l,e[8]=c,e[9]=r):r=e[9];const[d,m]=Os(r);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=a.jsx(Es,{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=a.jsx(Ds,{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 p;return e[22]!==f||e[23]!==x?(p=a.jsx(Wt.Provider,{value:f,children:x}),e[22]=f,e[23]=x,e[24]=p):p=e[24],p},Qn=t=>{const{children:e,title:s,...o}=t,n=ye(),{className:l,...i}=o;return n?a.jsxs(Ms,{...i,children:[a.jsx(zs,{className:"hidden",children:a.jsx(Ts,{children:s})}),a.jsx("div",{className:z("flex flex-col gap-2 p-2 py-4",l),children:e})]}):a.jsx(Ls,{...o,children:e})},eo=t=>{const{children:e,...s}=t,{setOpen:o}=Xn(),n=ye(),{className:l,...i}=s;return n?a.jsx("div",{...i,onClick:c=>{o(!1);const{onClick:r}=i;r?.(c)},className:z("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}):a.jsx(Hs,{...s,children:e})},to=t=>{const e=h.c(7);let s,o;e[0]!==t?({children:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const n=ye();let l;return e[3]!==s||e[4]!==n||e[5]!==o?(l=n?a.jsx($s,{asChild:!0,children:s}):a.jsx(Ps,{...o,children:s}),e[3]=s,e[4]=n,e[5]=o,e[6]=l):l=e[6],l},so=t=>{const e=h.c(7);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const n=ye();let l;return e[3]!==s||e[4]!==n||e[5]!==o?(l=n?a.jsx(rt,{className:z(s),...o}):a.jsx(rt,{className:z(s),...o}),e[3]=s,e[4]=n,e[5]=o,e[6]=l):l=e[6],l};function no(t){const e=h.c(11),{user:s,trigger:o,align:n,children:l}=t,i=n===void 0?"start":n;let c;e[0]!==o||e[1]!==s?(c=o(s),e[0]=o,e[1]=s,e[2]=c):c=e[2];let r;e[3]!==c?(r=a.jsx(to,{asChild:!0,children:a.jsx("div",{children:c})}),e[3]=c,e[4]=r):r=e[4];let d;e[5]!==i||e[6]!==l?(d=a.jsx(Qn,{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]!==r||e[9]!==d?(m=a.jsxs(Jn,{children:[r,d]}),e[8]=r,e[9]=d,e[10]=m):m=e[10],m}function oo(t){const e=h.c(8),{children:s,onClick:o,className:n,asChild:l}=t;let i;e[0]!==l||e[1]!==s||e[2]!==o?(i=l?s:a.jsx("button",{type:"button",className:"flex items-center gap-2 text-sm w-full cursor-pointer",onClick:o,children:s}),e[0]=l,e[1]=s,e[2]=o,e[3]=i):i=e[3];let c;return e[4]!==l||e[5]!==n||e[6]!==i?(c=a.jsx(eo,{asChild:l,className:n,children:i}),e[4]=l,e[5]=n,e[6]=i,e[7]=c):c=e[7],c}function ao(t){const e=h.c(2),{className:s}=t;let o;return e[0]!==s?(o=a.jsx(so,{className:s}),e[0]=s,e[1]=o):o=e[1],o}function lo(){const t=h.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx("div",{className:"w-8 h-8 bg-muted rounded-full animate-pulse"}),t[0]=e):e=t[0],e}const Z=Object.assign(no,{Item:oo,Separator:ao,Skeleton:lo});function io(t){const e=h.c(32),{open:s,onOpenChange:o,user:n,userImage:l}=t,[i,c]=v.useState(!1);let r;e[0]!==n.id?(r=()=>{navigator.clipboard.writeText(n.id),c(!0),setTimeout(()=>c(!1),2e3)},e[0]=n.id,e[1]=r):r=e[1];const d=r;let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsxs(bt,{children:[a.jsx(jt,{children:"Profile"}),a.jsx(vt,{children:"Your account information"})]}),e[2]=m):m=e[2];const f=n.name||n.email||"U";let u;e[3]!==f||e[4]!==l?(u=a.jsx(we,{url:l,fallback:f,shape:"circle",size:"2xl"}),e[3]=f,e[4]=l,e[5]=u):u=e[5];const x=n.name||n.email;let p;e[6]!==x?(p=a.jsx("div",{className:"text-lg font-semibold text-center",children:x}),e[6]=x,e[7]=p):p=e[7];let S;e[8]!==n.email?(S=a.jsx("div",{className:"text-sm text-muted-foreground text-center",children:n.email}),e[8]=n.email,e[9]=S):S=e[9];let g;e[10]!==p||e[11]!==S?(g=a.jsxs("div",{className:"flex flex-col items-center gap-2 w-full",children:[p,S]}),e[10]=p,e[11]=S,e[12]=g):g=e[12];let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:"User ID"}),e[13]=b):b=e[13];let j;e[14]!==n.id?(j=a.jsxs("div",{className:"flex flex-col gap-1 min-w-0 flex-1",children:[b,a.jsx("span",{className:"text-sm font-mono truncate",children:n.id})]}),e[14]=n.id,e[15]=j):j=e[15];let _;e[16]!==i?(_=i?a.jsx(gs,{size:16,className:"text-green-600"}):a.jsx(Bs,{size:16,className:"text-muted-foreground"}),e[16]=i,e[17]=_):_=e[17];let w;e[18]!==d||e[19]!==_?(w=a.jsx("button",{type:"button",onClick:d,className:"flex-shrink-0 p-2 hover:bg-background rounded-md transition-colors","aria-label":"Copy user ID",children:_}),e[18]=d,e[19]=_,e[20]=w):w=e[20];let y;e[21]!==j||e[22]!==w?(y=a.jsxs("div",{className:"flex items-center justify-between gap-3 w-full px-4 py-3 rounded-lg bg-muted/50 border border-border",children:[j,w]}),e[21]=j,e[22]=w,e[23]=y):y=e[23];let C;e[24]!==y||e[25]!==u||e[26]!==g?(C=a.jsxs(St,{className:"sm:max-w-md",children:[m,a.jsxs("div",{className:"flex flex-col items-center gap-6 py-4",children:[u,g,y]})]}),e[24]=y,e[25]=u,e[26]=g,e[27]=C):C=e[27];let k;return e[28]!==o||e[29]!==s||e[30]!==C?(k=a.jsx(Ct,{open:s,onOpenChange:o,children:C}),e[28]=o,e[29]=s,e[30]=C,e[31]=k):k=e[31],k}function ro(t){const e=h.c(5),{open:s,onOpenChange:o}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsxs(bt,{children:[a.jsx(jt,{children:"Invitations"}),a.jsx(vt,{children:"Your pending organization invitations"})]}),e[0]=n):n=e[0];let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsxs(St,{className:"sm:max-w-lg",children:[n,a.jsx("div",{className:"max-h-[420px] overflow-auto pr-1",children:a.jsx(os,{})})]}),e[1]=l):l=e[1];let i;return e[2]!==o||e[3]!==s?(i=a.jsx(Ct,{open:s,onOpenChange:o,children:l}),e[2]=o,e[3]=s,e[4]=i):i=e[4],i}function co(t){const e=h.c(31),{user:s,userImage:o,hasInvites:n,showInvitesItem:l}=t,[i,c]=v.useState(!1),[r,d]=v.useState(!1);let m;e[0]!==n||e[1]!==s.email||e[2]!==s.name||e[3]!==o?(m=()=>a.jsxs("div",{className:"relative",children:[a.jsx(we,{url:o,fallback:s.name||s.email||"U",shape:"circle",size:"sm",className:"cursor-pointer hover:ring-2 ring-muted-foreground transition-all"}),n&&a.jsx("span",{className:"absolute -top-0.5 -right-0.5 h-2.5 w-2.5 rounded-full bg-destructive ring-2 ring-background"})]}),e[0]=n,e[1]=s.email,e[2]=s.name,e[3]=o,e[4]=m):m=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsxs(Z.Item,{onClick:()=>c(!0),children:[a.jsx(Ot,{className:"text-muted-foreground",size:18}),"Profile"]}),e[5]=f):f=e[5];let u;e[6]!==n||e[7]!==l?(u=l&&a.jsxs(Z.Item,{onClick:()=>d(!0),children:[a.jsx(zt,{className:"text-muted-foreground",size:18}),"Invitations",n&&a.jsx("span",{className:"ml-auto h-2 w-2 rounded-full bg-destructive"})]}),e[6]=n,e[7]=l,e[8]=u):u=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(Z.Separator,{}),e[9]=x):x=e[9];let p;e[10]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(ns,{className:"w-4 h-4 text-muted-foreground"}),e[10]=p):p=e[10];let S;e[11]===Symbol.for("react.memo_cache_sentinel")?(S=a.jsx(Z.Item,{asChild:!0,children:a.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:[p,"decocms/admin",a.jsx(ct,{size:18,className:"text-muted-foreground ml-auto"})]})}),e[11]=S):S=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(kt,{className:"text-muted-foreground",size:18}),e[12]=g):g=e[12];let b,j;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(Z.Item,{asChild:!0,children:a.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex w-full items-center gap-2 text-sm cursor-pointer",children:[g,"Homepage",a.jsx(ct,{size:18,className:"ml-auto text-muted-foreground"})]})}),j=a.jsx(Z.Separator,{}),e[13]=b,e[14]=j):(b=e[13],j=e[14]);let _;e[15]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsxs(Z.Item,{onClick:mo,children:[a.jsx(Mt,{size:18,className:"text-muted-foreground"}),"Log out"]}),e[15]=_):_=e[15];let w;e[16]!==m||e[17]!==u||e[18]!==s?(w=a.jsxs(Z,{user:s,trigger:m,align:"end",children:[f,u,x,S,b,j,_]}),e[16]=m,e[17]=u,e[18]=s,e[19]=w):w=e[19];let y;e[20]!==i||e[21]!==s||e[22]!==o?(y=i&&a.jsx(io,{open:i,onOpenChange:c,user:s,userImage:o}),e[20]=i,e[21]=s,e[22]=o,e[23]=y):y=e[23];let C;e[24]!==r||e[25]!==l?(C=l&&r&&a.jsx(ro,{open:r,onOpenChange:d}),e[24]=r,e[25]=l,e[26]=C):C=e[26];let k;return e[27]!==w||e[28]!==y||e[29]!==C?(k=a.jsxs(a.Fragment,{children:[w,y,C]}),e[27]=w,e[28]=y,e[29]=C,e[30]=k):k=e[30],k}function mo(){return Ne.signOut()}function fo(){const{data:t}=Ne.useSession(),e=v.useContext(ss),{data:s}=e.hooks.useListUserInvitations(),n=(s??[]).length>0;if(!t?.user)return a.jsx(we,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer",muted:!0});const l=t.user,i={...l,name:l.name??void 0},c=l.image;return a.jsx(co,{user:i,userImage:c,hasInvites:n,showInvitesItem:!0})}function ot(){const t=h.c(4);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=Be.decoChatOpen(),t[0]=e):e=t[0];const[s,o]=He(e,uo);let n;return t[1]!==s||t[2]!==o?(n=[s,o],t[1]=s,t[2]=o,t[3]=n):n=t[3],n}function uo(t){return!!(t??!1)}function ho(t){const e=h.c(6),{children:s}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(as,{children:a.jsx(pt,{})}),e[0]=o):o=e[0];let n;e[1]!==s?(n=a.jsx(ls,{children:s}),e[1]=s,e[2]=n):n=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(is,{children:a.jsx(rs,{to:"/login",replace:!0})}),e[3]=l):l=e[3];let i;return e[4]!==n?(i=a.jsxs(a.Fragment,{children:[o,n,l]}),e[4]=n,e[5]=i):i=e[5],i}function po(t){const e=h.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=z("fixed top-0 left-0 right-0 z-20 bg-sidebar flex items-center w-full h-12 border-b border-border",o),e[0]=o,e[1]=n):n=e[1];let l;return e[2]!==s||e[3]!==n?(l=a.jsx("div",{className:n,children:s}),e[2]=s,e[3]=n,e[4]=l):l=e[4],l}function xo(t){const e=h.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=z("flex items-center justify-center px-2 h-full border-r border-border",o),e[0]=o,e[1]=n):n=e[1];let l;return e[2]!==s||e[3]!==n?(l=a.jsx("div",{className:n,children:s}),e[2]=s,e[3]=n,e[4]=l):l=e[4],l}function go(t){const e=h.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=z("flex items-center gap-2 px-2 h-full",o),e[0]=o,e[1]=n):n=e[1];let l;return e[2]!==s||e[3]!==n?(l=a.jsx("div",{className:n,children:s}),e[2]=s,e[3]=n,e[4]=l):l=e[4],l}function bo(t){const e=h.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=z("flex items-center gap-2 px-2 h-full flex-1",o),e[0]=o,e[1]=n):n=e[1];let l;return e[2]!==s||e[3]!==n?(l=a.jsx("div",{className:n,children:s}),e[2]=s,e[3]=n,e[4]=l):l=e[4],l}function jo(t){const e=h.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=z("flex items-center gap-2 px-2 h-full ml-auto",o),e[0]=o,e[1]=n):n=e[1];let l;return e[2]!==s||e[3]!==n?(l=a.jsx("div",{className:n,children:s}),e[2]=s,e[3]=n,e[4]=l):l=e[4],l}function vo(){const t=h.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx("div",{className:"flex items-center justify-center px-2 h-full border-r border-border",children:a.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=a.jsx("div",{className:"flex items-center gap-2 px-2 h-full",children:a.jsx("div",{className:"w-32 h-6 bg-muted rounded-md animate-pulse"})}),t[1]=s):s=t[1];let o;return t[2]===Symbol.for("react.memo_cache_sentinel")?(o=a.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,a.jsx("div",{className:"flex items-center gap-2 px-2 h-full ml-auto",children:a.jsx("div",{className:"w-8 h-8 bg-muted rounded-full animate-pulse"})})]}),t[2]=o):o=t[2],o}const Re=Object.assign(po,{Sidebar:xo,Left:go,Center:bo,Right:jo,Skeleton:vo});function Vt(){const t=h.c(3),{toggleSidebar:e}=nt();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx($t,{className:"text-muted-foreground/85 group-hover:text-foreground transition-colors",size:20}),t[0]=s):s=t[0];let o;return t[1]!==e?(o=a.jsx(a.Fragment,{children:a.jsx(Y,{onClick:e,size:"icon",variant:"ghost",className:"w-8 h-8 rounded-md",children:s})}),t[1]=e,t[2]=o):o=t[2],o}Vt.Skeleton=function(){return a.jsx("div",{className:"w-8 h-8 bg-muted rounded-md animate-pulse"})};function So(t,e){return t.find(e)??t[0]}function ft(t,e,s,o){const n=h.c(9),l=null,[i,c]=He(t,l);let r;n[0]!==s||n[1]!==i?(r=u=>i!==null?s(u,i):!1,n[0]=s,n[1]=i,n[2]=r):r=n[2];let d;n[3]!==e||n[4]!==r?(d=So(e,r),n[3]=e,n[4]=r,n[5]=d):d=n[5];const m=d;let f;return n[6]!==m||n[7]!==c?(f=[m,c],n[6]=m,n[7]=c,n[8]=f):f=n[8],f}const Co="https://assets.decocache.com/decocms/fd07a578-6b1c-40f1-bc05-88a3b981695d/f7fc4ffa81aec04e37ae670c3cd4936643a7b269.png";function wo(t){const e=/\/[^/]+\/mcps\/([^/]+)\/([^/]+)\/([^/]+)/,s=t.match(e);return s&&s[1]&&s[2]&&s[3]?{connectionId:decodeURIComponent(s[1]),collectionName:decodeURIComponent(s[2]),itemId:decodeURIComponent(s[3])}:{connectionId:null,collectionName:null,itemId:null}}function No(t){const e=h.c(2),s=tt();let o;e[0]!==s.location.pathname?(o=wo(s.location.pathname),e[0]=s.location.pathname,e[1]=o):o=e[1];const{connectionId:n,collectionName:l,itemId:i}=o;return`You are an AI assistant running in an MCP Mesh environment.
|
|
2
2
|
|
|
3
3
|
## About MCP Mesh
|
|
4
4
|
The Model Context Protocol (MCP) Mesh allows users to connect external Connections and expose their capabilities through Hubs. Each Hub provides access to a curated set of tools from connected Connections.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,f as d,j as a}from"./index-
|
|
1
|
+
import{c as C,f as d,j as a}from"./index-Cxif_WiW.js";import{c as m}from"./input-Dq5R1hsb.js";const u=d("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",special:"fill-special text-backround"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=m(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let l,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=l,e[4]=i):(l=e[3],i=e[4]);let s;e[5]!==t?(s=a.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=a.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as j,c as B,j as t,ae as V,af as I,ac as $,ak as _,ah as G,aW as J,aX as K}from"./index-
|
|
1
|
+
import{r as j,c as B,j as t,ae as V,af as I,ac as $,ak as _,ah as G,aW as J,aX as K}from"./index-Cxif_WiW.js";import{I as z,u as Y}from"./use-connection-CGMQx4M9.js";import{C as F}from"./checkbox-TKNE3h-h.js";import{c as S,B as Z}from"./input-Dq5R1hsb.js";import{i as ee}from"./ArrowLeft-CvbtXveq.js";import{C as te}from"./collection-search-mQlL4U3W.js";const se=j.memo(function(o){const e=B.c(21),{connection:n,isSelected:r,hasToolsEnabled:c,activeToolsCount:i,totalToolsCount:x,onSelect:b,onToggle:g}=o,d=r?"bg-accent/50":"hover:bg-muted/50";let u;e[0]!==d?(u=S("flex items-center gap-3 p-2 rounded-lg transition-colors will-change-auto",d),e[0]=d,e[1]=u):u=e[1];let m;e[2]!==n.icon||e[3]!==n.title?(m=t.jsx(z,{icon:n.icon,name:n.title,size:"xs"}),e[2]=n.icon,e[3]=n.title,e[4]=m):m=e[4];let p;e[5]!==n.title?(p=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:n.title})}),e[5]=n.title,e[6]=p):p=e[6];let a;e[7]!==b||e[8]!==m||e[9]!==p?(a=t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:b,children:[m,p]}),e[7]=b,e[8]=m,e[9]=p,e[10]=a):a=e[10];let f;e[11]!==i||e[12]!==n.tools||e[13]!==c||e[14]!==g||e[15]!==x?(f=n.tools&&n.tools.length>0&&t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[i,"/",x]}),t.jsx(F,{checked:c,onCheckedChange:g,onClick:ne})]}),e[11]=i,e[12]=n.tools,e[13]=c,e[14]=g,e[15]=x,e[16]=f):f=e[16];let C;return e[17]!==u||e[18]!==a||e[19]!==f?(C=t.jsxs("div",{className:u,children:[a,f]}),e[17]=u,e[18]=a,e[19]=f,e[20]=C):C=e[20],C}),oe=j.memo(function(o){const e=B.c(18),{connectionId:n,tool:r,isSelected:c,onToggle:i}=o,x=`tool-${n}-${r.name}`,b=c?"text-foreground":"text-muted-foreground";let g;e[0]!==b?(g=S("text-sm font-medium",b),e[0]=b,e[1]=g):g=e[1];let d;e[2]!==g||e[3]!==r.name?(d=t.jsx("div",{className:"flex items-center gap-2 mb-1",children:t.jsx("span",{className:g,children:r.name})}),e[2]=g,e[3]=r.name,e[4]=d):d=e[4];let u;e[5]!==r.description?(u=r.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:r.description}),e[5]=r.description,e[6]=u):u=e[6];let m;e[7]!==d||e[8]!==u?(m=t.jsxs("div",{className:"flex-1 min-w-0",children:[d,u]}),e[7]=d,e[8]=u,e[9]=m):m=e[9];const p=`tool-${n}-${r.name}`;let a;e[10]!==c||e[11]!==i||e[12]!==p?(a=t.jsx("div",{className:"flex items-center shrink-0",children:t.jsx(F,{id:p,checked:c,onCheckedChange:i,onClick:re})}),e[10]=c,e[11]=i,e[12]=p,e[13]=a):a=e[13];let f;return e[14]!==x||e[15]!==m||e[16]!==a?(f=t.jsxs("label",{className:"flex items-center gap-3 p-3 rounded-lg hover:bg-muted/50 cursor-pointer group will-change-auto",htmlFor:x,children:[m,a]}),e[14]=x,e[15]=m,e[16]=a,e[17]=f):f=e[17],f});function ge({toolSet:l,onToolSetChange:o}){const[e,n]=j.useState(""),r=j.useDeferredValue(e),[c,i]=j.useState("all"),[x,b]=j.useState(!1),g=j.useRef(new Set(Object.keys(l))),d=Y({searchTerm:r.trim()||void 0}),u=g.current,m=[...u.values()].map(s=>d.find(h=>h.id===s)).filter(s=>s!==void 0),p=d.filter(s=>!u.has(s.id)),a=[...m,...p],f=s=>{const h=l[s];return h!==void 0&&h.length>0},C=a.filter(s=>{if(c==="all")return!0;const h=f(s.id);return c==="selected"?h:c==="unselected"?!h:!0}),[k,P]=j.useState(a[0]?.id??null),v=k?a.find(s=>s.id===k)??null:null,E=v?.tools??[],Q=(s,h)=>l[s]?.includes(h)??!1,q=(s,h)=>{const w=l[s]??[],R=w.includes(h),T={...l};if(R){const y=w.filter(N=>N!==h);y.length===0?delete T[s]:T[s]=y}else T[s]=[...w,h];o(T)},L=s=>{const h=a.find(N=>N.id===s);if(!h?.tools)return;const w=l[s]??[],R=h.tools.map(N=>N.name),T=w.length>0&&R.every(N=>w.includes(N)),y={...l};T?delete y[s]:(y[s]=R,P(s)),o(y)},W=s=>{P(s),b(!0)},X=()=>{b(!1)};return t.jsxs("div",{className:"flex h-full",children:[t.jsxs("div",{className:S("w-full md:w-80 border-r border-border flex flex-col",x&&"hidden md:flex"),children:[t.jsx(te,{value:e,onChange:n,placeholder:"Search MCP Servers..."}),t.jsxs("div",{className:"flex gap-1 p-2 border-b border-border",children:[t.jsx("button",{onClick:()=>i("all"),className:S("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",c==="all"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"All"}),t.jsx("button",{onClick:()=>i("selected"),className:S("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",c==="selected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Selected"}),t.jsx("button",{onClick:()=>i("unselected"),className:S("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",c==="unselected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Unselected"})]}),t.jsx("div",{className:"flex-1 overflow-auto",children:C.length===0?t.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:e?"No connections found":c==="selected"?"No servers selected":c==="unselected"?"No unselected servers":"No connections available"}):t.jsx("div",{className:"p-2 space-y-1",children:C.map(s=>{const h=s.tools?.length??0,w=l[s.id]?.length??0;return t.jsx(se,{connection:s,isSelected:k===s.id,hasToolsEnabled:f(s.id),activeToolsCount:w,totalToolsCount:h,onSelect:()=>W(s.id),onToggle:()=>L(s.id)},s.id)})})})]}),t.jsx("div",{className:S("flex-1 flex-col",x?"flex":"hidden md:flex"),children:v?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"md:hidden border-b border-border p-4 flex items-center gap-3",children:[t.jsx(Z,{variant:"ghost",size:"sm",onClick:X,className:"h-8 w-8 p-0 shrink-0",children:t.jsx(ee,{size:20})}),t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[t.jsx(z,{icon:v.icon,name:v.title,size:"sm"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:v.title}),v.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:v.description})]})]})]}),t.jsx("div",{className:"flex-1 overflow-auto p-4",children:E.length===0?t.jsx("div",{className:"text-sm text-muted-foreground text-center py-8",children:"This connection has no tools available"}):t.jsx("div",{className:"space-y-2",children:E.map(s=>t.jsx(oe,{connectionId:v.id,tool:s,isSelected:Q(v.id,s.name),onToggle:()=>q(v.id,s.name)},s.name))})})]}):t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx("div",{className:"text-sm text-muted-foreground text-center",children:"Select a connection to view its tools"})})})]})}function ne(l){return l.stopPropagation()}function re(l){return l.stopPropagation()}var M="Switch",[le]=V(M),[ce,ie]=le(M),O=j.forwardRef((l,o)=>{const{__scopeSwitch:e,name:n,checked:r,defaultChecked:c,required:i,disabled:x,value:b="on",onCheckedChange:g,form:d,...u}=l,[m,p]=j.useState(null),a=$(o,v=>p(v)),f=j.useRef(!1),C=m?d||!!m.closest("form"):!0,[k,P]=_({prop:r,defaultProp:c??!1,onChange:g,caller:M});return t.jsxs(ce,{scope:e,checked:k,disabled:x,children:[t.jsx(I.button,{type:"button",role:"switch","aria-checked":k,"aria-required":i,"data-state":U(k),"data-disabled":x?"":void 0,disabled:x,value:b,...u,ref:a,onClick:G(l.onClick,v=>{P(E=>!E),C&&(f.current=v.isPropagationStopped(),f.current||v.stopPropagation())})}),C&&t.jsx(H,{control:m,bubbles:!f.current,name:n,value:b,checked:k,required:i,disabled:x,form:d,style:{transform:"translateX(-100%)"}})]})});O.displayName=M;var A="SwitchThumb",D=j.forwardRef((l,o)=>{const{__scopeSwitch:e,...n}=l,r=ie(A,e);return t.jsx(I.span,{"data-state":U(r.checked),"data-disabled":r.disabled?"":void 0,...n,ref:o})});D.displayName=A;var ae="SwitchBubbleInput",H=j.forwardRef(({__scopeSwitch:l,control:o,checked:e,bubbles:n=!0,...r},c)=>{const i=j.useRef(null),x=$(i,c),b=J(e),g=K(o);return j.useEffect(()=>{const d=i.current;if(!d)return;const u=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(u,"checked").set;if(b!==e&&p){const a=new Event("click",{bubbles:n});p.call(d,e),d.dispatchEvent(a)}},[b,e,n]),t.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:e,...r,tabIndex:-1,ref:x,style:{...r.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});H.displayName=ae;function U(l){return l?"checked":"unchecked"}var de=O,ue=D;function ve(l){const o=B.c(9);let e,n;o[0]!==l?({className:e,...n}=l,o[0]=l,o[1]=e,o[2]=n):(e=o[1],n=o[2]);let r;o[3]!==e?(r=S("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),o[3]=e,o[4]=r):r=o[4];let c;o[5]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(ue,{"data-slot":"switch-thumb",className:S("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),o[5]=c):c=o[5];let i;return o[6]!==n||o[7]!==r?(i=t.jsx(de,{"data-slot":"switch",className:r,...n,children:c}),o[6]=n,o[7]=r,o[8]=i):i=o[8],i}export{ve as S,ge as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o,j as n}from"./index-
|
|
1
|
+
import{c as o,j as n}from"./index-Cxif_WiW.js";import{c as l}from"./input-Dq5R1hsb.js";function u(s){const e=o.c(8);let r,i;e[0]!==s?({className:r,...i}=s,e[0]=s,e[1]=r,e[2]=i):(r=e[1],i=e[2]);let t;e[3]!==r?(t=l("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-xl border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),e[3]=r,e[4]=t):t=e[4];let a;return e[5]!==i||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...i}),e[5]=i,e[6]=t,e[7]=a):a=e[7],a}export{u as T};
|