@decocms/mesh 1.4.0 → 1.4.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-D6b9Ralv.js → AlertCircle-D8Ig6VmI.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CmZRAub5.js → ArrowLeft-Dh26Pdy9.js} +1 -1
- package/dist/client/assets/{ChevronDown-xjFrqe8j.js → ChevronDown-ePEWgGNp.js} +1 -1
- package/dist/client/assets/{Clock-Bqlp1mni.js → Clock-D62M1TNS.js} +1 -1
- package/dist/client/assets/{Code01-B3S249hz.js → Code01-CEpWMfIN.js} +1 -1
- package/dist/client/assets/{Copy01-D0tR5TRJ.js → Copy01-Do_2DOpc.js} +1 -1
- package/dist/client/assets/{CpuChip02-BJZ8c2R6.js → CpuChip02-MwRKuQCg.js} +1 -1
- package/dist/client/assets/{DotsVertical-0Pg6f15X.js → DotsVertical-DEHJGPWq.js} +1 -1
- package/dist/client/assets/{File06-BzST8Ux5.js → File06-C6gmiM2R.js} +1 -1
- package/dist/client/assets/{FlipBackward-J5E6LFga.js → FlipBackward-C_yTzrjj.js} +1 -1
- package/dist/client/assets/{GitBranch01-C9tViAi-.js → GitBranch01-BytyqHyB.js} +1 -1
- package/dist/client/assets/{Grid01-DETN8WPx.js → Grid01-C9Qy-QMm.js} +1 -1
- package/dist/client/assets/{Inbox01-DxqBKn7H.js → Inbox01-D6ujw7pC.js} +1 -1
- package/dist/client/assets/{Key01-B-GFSqTW.js → Key01-DyKOY05D.js} +1 -1
- package/dist/client/assets/{LinkExternal01-D-pWR4LA.js → LinkExternal01-R8UsBwpd.js} +1 -1
- package/dist/client/assets/{Loading01-CpvGD3vr.js → Loading01-CYe6KHQ_.js} +1 -1
- package/dist/client/assets/{Lock01-DbWcWM_K.js → Lock01-V21nJrKX.js} +1 -1
- package/dist/client/assets/{Play-D0iqjftf.js → Play-BbVWnniF.js} +1 -1
- package/dist/client/assets/{Plus-Df5PHguC.js → Plus-B_341Z-m.js} +1 -1
- package/dist/client/assets/{SearchMd-BSF-Glwf.js → SearchMd-CTe41Otq.js} +1 -1
- package/dist/client/assets/{Terminal-Cw0wmZeh.js → Terminal-D1uJm4u2.js} +1 -1
- package/dist/client/assets/{Trash01-DPFHmwKr.js → Trash01-nRDGqZAh.js} +1 -1
- package/dist/client/assets/{X-D8XIiJvQ.js → X-SbhTNlq-.js} +1 -1
- package/dist/client/assets/{XClose-B_hUkeVk.js → XClose-UocnKXyW.js} +1 -1
- package/dist/client/assets/{alert-dialog-CbCWAnT3.js → alert-dialog-BU4z5vIU.js} +1 -1
- package/dist/client/assets/{auth-PKeXnxbM.js → auth-DrOI2Q5h.js} +1 -1
- package/dist/client/assets/{auth-catchall-Wppyfaii.js → auth-catchall-hi9HLq14.js} +1 -1
- package/dist/client/assets/{avatar-g2HizpCv.js → avatar-DYifUjuR.js} +1 -1
- package/dist/client/assets/{badge-DpuZDXUE.js → badge-0sGir89N.js} +1 -1
- package/dist/client/assets/{button-hWHuMvle.js → button-DekBQWZX.js} +1 -1
- package/dist/client/assets/{card-Cdw91ud0.js → card-CjPFi-mt.js} +1 -1
- package/dist/client/assets/{checkbox-C8hkq1Ob.js → checkbox-DWBjIr3c.js} +1 -1
- package/dist/client/assets/{collection-detail-BhlzVbA_.js → collection-detail-CFyCCxRq.js} +1 -1
- package/dist/client/assets/{collection-display-button-DJTB2EUg.js → collection-display-button-CcmMGuN1.js} +1 -1
- package/dist/client/assets/{collection-header-BxKOSRWd.js → collection-header-BzcsMkVk.js} +1 -1
- package/dist/client/assets/{collection-page-BDy0PpkC.js → collection-page-JhE-nlZe.js} +1 -1
- package/dist/client/assets/{collection-search-BoabZo7c.js → collection-search-D31FObj2.js} +1 -1
- package/dist/client/assets/{collection-tab-y3dKzpme.js → collection-tab-CislJm1o.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BERroKt9.js → collection-table-wrapper-DttYG93Q.js} +1 -1
- package/dist/client/assets/{connection-card-si8Xv84Q.js → connection-card-Po1O1myw.js} +1 -1
- package/dist/client/assets/{connection-detail-D8qvOGFn.js → connection-detail-CCe4qpmo.js} +1 -1
- package/dist/client/assets/{connections-D7K8Q8og.js → connections-CAn295jL.js} +1 -1
- package/dist/client/assets/constants-BP-f87DW.js +1 -0
- package/dist/client/assets/{core-BAd4uKi4.js → core-CQOpJFuu.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-D4tz0eZI.js → create-organization-dialog-BHcS-HWr.js} +1 -1
- package/dist/client/assets/{dialog-HUu8pjnY.js → dialog-B48I0mf9.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DG5cxUDL.js → dropdown-menu-DEOghZY2.js} +1 -1
- package/dist/client/assets/{empty-state-m_IydCcr.js → empty-state-DPKHlkpV.js} +1 -1
- package/dist/client/assets/{env-vars-editor-kSmLn72b.js → env-vars-editor-siosgJYU.js} +1 -1
- package/dist/client/assets/{error-boundary-B-QcFATa.js → error-boundary-BU7ytqKh.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CjCzbgf3.js → extract-connection-data-CNwfi3Bj.js} +1 -1
- package/dist/client/assets/{form-B-xqHHYa.js → form-idjG_l3J.js} +1 -1
- package/dist/client/assets/{formatDistanceToNow-B3w53gnj.js → formatDistanceToNow-BvbEbggm.js} +1 -1
- package/dist/client/assets/gateway-detail-CojPNuj0.js +1 -0
- package/dist/client/assets/{gateways-Bfk7wW4H.js → gateways-BMARnVs9.js} +1 -1
- package/dist/client/assets/{home-B2CMLWdT.js → home-C44O4JPT.js} +1 -1
- package/dist/client/assets/{index-Bs52vOb7.js → index-DRz67w4F.js} +1 -1
- package/dist/client/assets/{index-CXiBzYKD.js → index-DajdRBtQ.js} +5 -5
- package/dist/client/assets/{index-BI-brnHc.js → index-IR-O--2-.js} +1 -1
- package/dist/client/assets/{index-B9HSZhdB.js → index-Wt1f1puE.js} +3 -3
- package/dist/client/assets/{input-DcZE4UoL.js → input-BKIlqldN.js} +1 -1
- package/dist/client/assets/json-DJFsnV6J.js +1 -0
- package/dist/client/assets/{json-syntax-highlighter-Czp62O9j.js → json-syntax-highlighter-iaFBJPMB.js} +2 -2
- package/dist/client/assets/{layout-B5ADxfcB.js → layout-DZ2ngf-d.js} +1 -1
- package/dist/client/assets/{lazy-highlighter-Z2qArbl8.js → lazy-highlighter-DzPyG_7U.js} +1 -1
- package/dist/client/assets/{localstorage-keys-DZPXAcMr.js → localstorage-keys-DywUtnFx.js} +1 -1
- package/dist/client/assets/{login-BX781KlF.js → login-DV7ZXMS3.js} +1 -1
- package/dist/client/assets/{mcp-oauth-PzyAfNM8.js → mcp-oauth-CoHdTRs8.js} +1 -1
- package/dist/client/assets/{members-D9riafGS.js → members-BSXMpEiy.js} +1 -1
- package/dist/client/assets/{monitoring-Bz-yKjJ1.js → monitoring-jd56r5aO.js} +1 -1
- package/dist/client/assets/{oauth-callback-CTNcTDd4.js → oauth-callback-DWPZPLpo.js} +1 -1
- package/dist/client/assets/{page-DF6IrrZD.js → page-8jW60JQy.js} +1 -1
- package/dist/client/assets/{pin-to-sidebar-button-CJEwje2A.js → pin-to-sidebar-button-kBAZ-5ye.js} +1 -1
- package/dist/client/assets/{popover-DOwrFuly.js → popover-BOM-Ldjy.js} +1 -1
- package/dist/client/assets/prism-light-uO9D9BzO.js +1 -0
- package/dist/client/assets/{resizable-C0OMnsnz.js → resizable-CJZIf7G0.js} +1 -1
- package/dist/client/assets/{resource-tabs-BBkx9rqd.js → resource-tabs-Ce7H16gk.js} +1 -1
- package/dist/client/assets/{responsive-select-Bl1ZcUtI.js → responsive-select-BwKgIRfG.js} +1 -1
- package/dist/client/assets/{select-l2DSo1hq.js → select-BfMeJf3G.js} +1 -1
- package/dist/client/assets/{settings-CWXxNDHw.js → settings-3-JCtPNJ.js} +1 -1
- package/dist/client/assets/shell-layout-CdWK4rD-.js +19 -0
- package/dist/client/assets/{spinner-BtMKC1U7.js → spinner-DRqaN8gi.js} +1 -1
- package/dist/client/assets/{store-_81OANVP.js → store-Do1Cu7xx.js} +1 -1
- package/dist/client/assets/{store-app-detail-CuCWq6-w.js → store-app-detail-CTTgc-e9.js} +1 -1
- package/dist/client/assets/{switch-BOFMRhtg.js → switch-Dw1RG-3y.js} +1 -1
- package/dist/client/assets/{textarea-BoUne3Q6.js → textarea-Bft7ABhA.js} +1 -1
- package/dist/client/assets/thread-history-popover-Bi9mj2yY.js +98 -0
- package/dist/client/assets/{tools-list-D5n3plgQ.js → tools-list-Ce6AdOzS.js} +1 -1
- package/dist/client/assets/{tooltip-DxQ-KPX4.js → tooltip-TfGvrkSe.js} +1 -1
- package/dist/client/assets/{types-8dJFzoWN.js → types-Cnps3aja.js} +1 -1
- package/dist/client/assets/{use-binding-Ccb4SpbZ.js → use-binding-C0D0SiIL.js} +1 -1
- package/dist/client/assets/{use-connection-BfQqOvPU.js → use-connection-Bw5VjMDS.js} +1 -1
- package/dist/client/assets/{use-connection-resources-BuPCYNbb.js → use-connection-resources-G46B63hU.js} +1 -1
- package/dist/client/assets/{use-gateway-BWSXRpvE.js → use-gateway-Bcu8DfzG.js} +1 -1
- package/dist/client/assets/{use-list-state-qFWsDnqD.js → use-list-state-BFqdzcLT.js} +1 -1
- package/dist/client/assets/{use-mcp-40LwnzhO.js → use-mcp-BQdB6WDZ.js} +1 -1
- package/dist/client/assets/{use-members-BorgQnCE.js → use-members-Du1Rfr_g.js} +1 -1
- package/dist/client/assets/{use-mobile-v3aq_7jb.js → use-mobile-DxFWm-MR.js} +1 -1
- package/dist/client/assets/{use-organization-settings-QpyD7U2T.js → use-organization-settings-DNW7rc_y.js} +1 -1
- package/dist/client/assets/{use-tool-call-CLKWIhEj.js → use-tool-call-D3fXWIz8.js} +1 -1
- package/dist/client/assets/useQuery-xVxOaLKm.js +1 -0
- package/dist/client/assets/{useSuspenseInfiniteQuery-DUZsUnhN.js → useSuspenseInfiniteQuery-BUiIWXaf.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C9GLUxuG.js → view-mode-toggle-CP1Lj0do.js} +1 -1
- package/dist/client/assets/{workflow-DJAFzntg.js → workflow-IxqE_uwj.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/constants-CxHW24vL.js +0 -1
- package/dist/client/assets/gateway-detail-Dz5K97Qu.js +0 -1
- package/dist/client/assets/index-7USdUZHF.js +0 -98
- package/dist/client/assets/json-RSU7hrk4.js +0 -1
- package/dist/client/assets/prism-light-xse74Nms.js +0 -1
- package/dist/client/assets/shell-layout-CWj_6Hth.js +0 -19
- package/dist/client/assets/useQuery-DE63pAfU.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a3 as o}from"./index-B9HSZhdB.js";import{r}from"./json-BESjz4hO.js";var s=r();const e=o(s);export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,h as i}from"./core-BAd4uKi4.js";import{a3 as s}from"./index-B9HSZhdB.js";var g=o();const t=s(g);var e=i(t,{});e.registerLanguage=function(a,r){return t.register(r)};e.alias=function(a,r){return t.alias(a,r)};export{e as default};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import{r as y,c as x,e as ot,d as de,K as Ne,t as Q,j as a,f as ae,a as X,g as lt,R as it,T as rt,D as ct,C as dt,P as mt,h as ut,O as ft,i as ht,k as pt,l as xt,m as gt,G as bt,U as vt,n as jt,S as ye,o as wt,p as Nt,N as yt,q as St,s as Se}from"./index-B9HSZhdB.js";import{O as Ct,a as _t,g as kt}from"./well-known-mcp-D13f-8h2.js";import{g as It}from"./generate-id-Dyweu44Y.js";import{i as $t,E as Tt}from"./SearchMd-BSF-Glwf.js";import{u as Mt,a as Ot,I as he,n as zt}from"./use-connection-BfQqOvPU.js";import{u as oe,L as le}from"./localstorage-keys-DZPXAcMr.js";import{u as J,T as Rt,a as Dt,b as Et,c as Pt,L as pe,i as At,P as Lt,O as Bt}from"./tooltip-DxQ-KPX4.js";import{B as V,c as $}from"./button-hWHuMvle.js";import{i as re}from"./CpuChip02-BJZ8c2R6.js";import{i as Ht}from"./Loading01-CpvGD3vr.js";import{s as Ut}from"./Plus-Df5PHguC.js";import{i as ne}from"./X-D8XIiJvQ.js";import{u as Gt}from"./use-binding-Ccb4SpbZ.js";import{C as D,u as xe,a as Wt,b as Vt,c as Ft,M as Kt,U as Yt,d as Zt,I as qt}from"./index-7USdUZHF.js";import{E as me}from"./error-boundary-B-QcFATa.js";import{P as Ce,a as _e,b as ke}from"./popover-DOwrFuly.js";import{s as Qt}from"./Clock-Bqlp1mni.js";import{s as Xt}from"./Trash01-DPFHmwKr.js";import{u as Jt,G as es,R as Ie,a as ts,b as ss}from"./resizable-C0OMnsnz.js";import{i as ns}from"./File06-BzST8Ux5.js";import{u as ee}from"./use-mobile-v3aq_7jb.js";import{u as $e,a as as}from"./use-organization-settings-QpyD7U2T.js";import{C as os}from"./create-organization-dialog-D4tz0eZI.js";import{I as ls}from"./input-DcZE4UoL.js";import{A as Z}from"./avatar-g2HizpCv.js";import{c as is}from"./Grid01-DETN8WPx.js";import{D as rs,a as cs,b as ds,c as ms,u as us,d as fs}from"./responsive-select-Bl1ZcUtI.js";import{D as hs,a as ps,b as xs,c as gs,d as ge}from"./dropdown-menu-DG5cxUDL.js";import{a as bs}from"./Copy01-D0tR5TRJ.js";import{n as be}from"./LinkExternal01-D-pWR4LA.js";import{D as Te,a as Me,b as Oe,c as ze,d as Re}from"./dialog-HUu8pjnY.js";import"./useQuery-DE63pAfU.js";import"./auth-PKeXnxbM.js";import"./AlertCircle-D6b9Ralv.js";import"./textarea-BoUne3Q6.js";import"./Terminal-Cw0wmZeh.js";import"./connection-card-si8Xv84Q.js";import"./card-Cdw91ud0.js";import"./json-syntax-highlighter-Czp62O9j.js";import"./alert-dialog-CbCWAnT3.js";import"./use-gateway-BWSXRpvE.js";import"./form-B-xqHHYa.js";import"./spinner-BtMKC1U7.js";import"./select-l2DSo1hq.js";import"./ChevronDown-xjFrqe8j.js";const De=({size:t=24,color:e="currentColor",...s})=>y.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},y.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"}));De.displayName="BarChart10";const Ee=({size:t=24,color:e="currentColor",...s})=>y.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},y.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"}));Ee.displayName="Building02";const Pe=({size:t=24,color:e="currentColor",...s})=>y.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},y.createElement("path",{d:"m7 15 5 5 5-5M7 9l5-5 5 5"}));Pe.displayName="ChevronSelectorVertical";const Ae=({size:t=24,color:e="currentColor",...s})=>y.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},y.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"}));Ae.displayName="Globe01";const Le=({size:t=24,color:e="currentColor",...s})=>y.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},y.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"}));Le.displayName="Home02";const Be=({size:t=24,color:e="currentColor",...s})=>y.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},y.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"}));Be.displayName="LayoutRight";const He=({size:t=24,color:e="currentColor",...s})=>y.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},y.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"}));He.displayName="LogOut01";const Ue=({size:t=24,color:e="currentColor",...s})=>y.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},y.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"}));Ue.displayName="Mail01";const Ge=({size:t=24,color:e="currentColor",...s})=>y.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},y.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}),y.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"}));Ge.displayName="Settings01";const We=({size:t=24,color:e="currentColor",...s})=>y.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},y.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"}));We.displayName="UserCircle";const Ve=({size:t=24,color:e="currentColor",...s})=>y.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},y.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"}));Ve.displayName="Users01";const Fe=({size:t=24,color:e="currentColor",...s})=>y.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},y.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"}));Fe.displayName="Zap";function ue(){const t=x.c(4);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=le.decoChatOpen(),t[0]=e):e=t[0];const[s,o]=oe(e,vs);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 vs(t){return!!(t??!1)}function js(){const t=x.c(5),e=ot(),{org:s}=J();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},t[0]=o):o=t[0];const n=de(o);let l;return t[1]!==s||t[2]!==n||t[3]!==e?(l=i=>{const c=i.toolCall.toolName.match(/^COLLECTION_([A-Z_]+)_(CREATE|UPDATE|DELETE)$/);if(!c||!c[1])return;const d=c[1],m=n.connectionId;if(!m)return;e.invalidateQueries({queryKey:Ne.collection(s.slug,m,d)});const u=d.toLowerCase().replace(/_/g," ");Q.success(`${u} updated`)},t[1]=s,t[2]=n,t[3]=e,t[4]=l):l=t[4],l}function ws(t){const e=new Date(t),o=new Date().getTime()-e.getTime(),n=Math.floor(o/6e4),l=Math.floor(o/36e5);return n<1?"now":n<60?`${n}m`:`${l}h`}function Ns(t){const e=new Date,s=new Date(e.getFullYear(),e.getMonth(),e.getDate()),o=new Date(s.getTime()-864e5),n=new Date(s.getTime()-7*864e5),l=new Date(s.getTime()-30*864e5),i=[],r=[],c=[],d=[],m=[];for(const f of t){const h=new Date(f.updated_at);h>=s?i.push(f):h>=o?r.push(f):h>=n?c.push(f):h>=l?d.push(f):m.push(f)}const u=[];return i.length>0&&u.push({label:"Today",threads:i,showRelativeTime:!0}),r.length>0&&u.push({label:"Yesterday",threads:r,showRelativeTime:!1}),c.length>0&&u.push({label:"7 days ago",threads:c,showRelativeTime:!1}),d.length>0&&u.push({label:"30 days ago",threads:d,showRelativeTime:!1}),m.length>0&&u.push({label:"Older",threads:m,showRelativeTime:!1}),u}function ys(t){const e=x.c(36),{threads:s,activeThreadId:o,onSelectThread:n,onRemoveThread:l,onOpen:i}=t,[r,c]=y.useState("");let d,m,u,f,h,p,v,g,b;if(e[0]!==o||e[1]!==i||e[2]!==l||e[3]!==n||e[4]!==r||e[5]!==s){const C=r.trim()?s.filter(T=>(T.title||"New chat").toLowerCase().includes(r.toLowerCase())):s,w=Ns(C);let _;e[15]!==i?(_=T=>{T?i?.():c("")},e[15]=i,e[16]=_):_=e[16];const O=_;m=Ce,g=O,e[17]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(_e,{asChild:!0,children:a.jsx("button",{type:"button",className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Chat history",children:a.jsx(Qt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})}),e[17]=b):b=e[17],d=ke,h="end",p="w-80 p-0";let k;e[18]===Symbol.for("react.memo_cache_sentinel")?(k=a.jsx($t,{size:16,className:"text-muted-foreground shrink-0"}),e[18]=k):k=e[18];let I;e[19]===Symbol.for("react.memo_cache_sentinel")?(I=T=>c(T.target.value),e[19]=I):I=e[19],e[20]!==r?(v=a.jsx("div",{className:"border-b",children:a.jsxs("label",{className:"flex items-center gap-2.5 h-12 px-4 cursor-text",children:[k,a.jsx("input",{type:"text",placeholder:"Search chats...",value:r,onChange:I,className:"flex-1 border-0 shadow-none focus:outline-none px-0 h-full text-sm placeholder:text-muted-foreground/50 bg-transparent"})]})}),e[20]=r,e[21]=v):v=e[21],u="max-h-[300px] overflow-y-auto",f=C.length===0?a.jsx("div",{className:"p-4 text-center text-sm text-muted-foreground",children:r.trim()?"No chats found":"No chats yet"}):w.map((T,z)=>a.jsxs("div",{children:[z>0&&a.jsx("div",{className:"border-t mx-3"}),a.jsx("div",{className:"px-3 py-1",children:a.jsx("span",{className:"text-xs font-medium text-muted-foreground tracking-wide",children:T.label})}),T.threads.map(R=>{const L=R.id===o;return a.jsxs("div",{className:`flex items-center gap-2 px-3 py-2 hover:bg-accent cursor-pointer group ${L?"bg-accent/50":""}`,onClick:()=>n(R.id),children:[a.jsxs("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[a.jsx("span",{className:"text-sm truncate",children:R.title||"New chat"}),a.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:L?"current":T.showRelativeTime?ws(R.updated_at):null})]}),a.jsx("button",{type:"button",onClick:q=>{q.stopPropagation(),l(R.id)},className:"opacity-0 cursor-pointer group/trash group-hover:opacity-100 p-1 hover:bg-destructive/10 rounded transition-opacity",title:"Remove chat",children:a.jsx(Xt,{size:14,className:"text-muted-foreground group-hover/trash:text-destructive"})})]},R.id)})]},T.label)),e[0]=o,e[1]=i,e[2]=l,e[3]=n,e[4]=r,e[5]=s,e[6]=d,e[7]=m,e[8]=u,e[9]=f,e[10]=h,e[11]=p,e[12]=v,e[13]=g,e[14]=b}else d=e[6],m=e[7],u=e[8],f=e[9],h=e[10],p=e[11],v=e[12],g=e[13],b=e[14];let j;e[22]!==u||e[23]!==f?(j=a.jsx("div",{className:u,children:f}),e[22]=u,e[23]=f,e[24]=j):j=e[24];let S;e[25]!==d||e[26]!==h||e[27]!==p||e[28]!==v||e[29]!==j?(S=a.jsxs(d,{align:h,className:p,children:[v,j]}),e[25]=d,e[26]=h,e[27]=p,e[28]=v,e[29]=j,e[30]=S):S=e[30];let N;return e[31]!==m||e[32]!==g||e[33]!==b||e[34]!==S?(N=a.jsxs(m,{onOpenChange:g,children:[b,S]}),e[31]=m,e[32]=g,e[33]=b,e[34]=S,e[35]=N):N=e[35],N}const Ss="https://assets.decocache.com/decocms/fd07a578-6b1c-40f1-bc05-88a3b981695d/f7fc4ffa81aec04e37ae670c3cd4936643a7b269.png";function Cs(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 _s(t,e){return t.find(e)??t[0]}function ve(t,e,s,o){const n=x.c(9),l=null,[i,r]=oe(t,l);let c;n[0]!==s||n[1]!==i?(c=f=>i?s(f,i):!1,n[0]=s,n[1]=i,n[2]=c):c=n[2];let d;n[3]!==e||n[4]!==c?(d=_s(e,c),n[3]=e,n[4]=c,n[5]=d):d=n[5];const m=d;let u;return n[6]!==m||n[7]!==r?(u=[m,r],n[6]=m,n[7]=r,n[8]=u):u=n[8],u}function ks(t){const e=x.c(2),s=lt();let o;e[0]!==s.location.pathname?(o=Cs(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
|
-
|
|
3
|
-
## About MCP Mesh
|
|
4
|
-
The Model Context Protocol (MCP) Mesh allows users to connect external MCP servers and expose their capabilities through gateways. Each gateway provides access to a curated set of tools from connected MCP servers.
|
|
5
|
-
|
|
6
|
-
## Important Notes
|
|
7
|
-
- All tool calls are logged and audited for security and compliance
|
|
8
|
-
- You have access to the tools exposed through the selected gateway
|
|
9
|
-
- MCPs may expose resources that users can browse and edit
|
|
10
|
-
- You have context to the current gateway and its tools, resources, and prompts
|
|
11
|
-
|
|
12
|
-
## Current Editing Context
|
|
13
|
-
${n?`- Connection ID: ${n}`:""}
|
|
14
|
-
${l?`- Collection Name: ${l}`:""}
|
|
15
|
-
${i?`- Item ID: ${i}`:""}
|
|
16
|
-
${t?`- Gateway ID: ${t}`:""}
|
|
17
|
-
|
|
18
|
-
Help the user understand and work with this resource.
|
|
19
|
-
`}function Is(){const t=x.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx("img",{src:"/empty-state-openrouter.svg",alt:"",width:336,height:320,"aria-hidden":"true",className:"w-xs h-auto mask-radial-[100%_100%] mask-radial-from-20% mask-radial-to-50% mask-radial-at-center"}),t[0]=e):e=t[0],e}function $s(t){const e=x.c(3),{gatewayId:s,onSelect:o}=t,{data:n}=Zt(s);if(n.length===0)return null;let l;return e[0]!==o||e[1]!==n?(l=a.jsx(qt,{prompts:n,onSelect:o,className:"mt-6"}),e[0]=o,e[1]=n,e[2]=l):l=e[2],l}function Ts(){const{org:{slug:t,id:e},locator:s}=J(),[,o]=ue(),n=ae(),{data:l}=X.useSession(),i=l?.user,{createThread:r,activeThreadId:c,setActiveThreadId:d,hideThread:m}=xe(),{threads:u,refetch:f}=Wt(),h=Jt(),p=Vt(),v=Mt(),[g]=Gt({connections:v,binding:"LLMS"}),b=!!g,j=h.length>0,S=b&&j,[N,C]=ve(le.chatSelectedModel(s),p,(M,P)=>M.id===P.id&&M.connectionId===P.connectionId),[w,_]=ve(`${s}:selected-gateway`,h,(M,P)=>M.id===P.gatewayId),O=ks(w?.id),k=js(),I=Ft({threadId:c,systemPrompt:O,onToolCall:k,onCreateThread:M=>r({id:M.id,title:M.title})}),{inputValue:T,setInputValue:z,branchContext:R,clearBranch:L}=xe(),{isEmpty:q}=I,K=()=>{R&&(d(R.originalThreadId),L(),z(""))},H=async M=>{if(!N){Q.error("No model configured");return}if(!w?.id){Q.error("No gateway configured");return}z(""),L();const P={created_at:new Date().toISOString(),thread_id:c,model:{id:N.id,connectionId:N.connectionId,provider:N.provider??void 0,limits:N.limits??void 0},gateway:{id:w.id},user:{avatar:i?.image??void 0,name:i?.name??"you"}};await I.sendMessage(M,P)},U=M=>{C(M)},G=M=>{_({gatewayId:M})},[F,A]=y.useState(!1),B=Ot(),Y=async()=>{if(!e||!i?.id){Q.error("Not authenticated");return}A(!0);try{const M=v?.find(at=>at.connection_url===_t);if(M){n({to:"/$org/mcps/$connectionId",params:{org:t,connectionId:M.id}});return}const P=kt({id:It("conn")}),nt=await B.create.mutateAsync(P);n({to:"/$org/mcps/$connectionId",params:{org:t,connectionId:nt.id}})}catch(M){Q.error(`Failed to connect OpenRouter: ${M instanceof Error?M.message:String(M)}`)}finally{A(!1)}};if(!S){let M,P;return!b&&!j?(M="Connect your providers",P="Connect an LLM provider and create a gateway to unlock AI-powered features."):b?(M="No gateways configured",P="Create a gateway to expose your MCP tools to the chat."):(M="No model provider connected",P="Connect to a model provider to unlock AI-powered features."),a.jsxs(D,{children:[a.jsxs(D.Header,{children:[a.jsxs(D.Header.Left,{children:[a.jsx("img",{src:Ss,alt:"deco chat",className:"size-5 rounded"}),a.jsx("span",{className:"text-sm font-medium",children:"deco chat"})]}),a.jsx(D.Header.Right,{children:a.jsx("button",{type:"button",onClick:()=>o(!1),className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:a.jsx(ne,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})})]}),a.jsx(D.Main,{className:"flex flex-col items-center",children:a.jsx(D.EmptyState,{children:a.jsx(Tt,{image:a.jsx(Is,{}),title:M,description:P,actions:a.jsxs(a.Fragment,{children:[a.jsxs(V,{variant:"outline",onClick:Y,disabled:F,children:[a.jsx("img",{src:Ct,alt:"OpenRouter",className:"size-4"}),F?"Installing...":"Install OpenRouter"]}),a.jsx(V,{variant:"outline",onClick:()=>n({to:"/$org/mcps",params:{org:t},search:{action:"create"}}),children:"Install MCP Server"})]})})})})]})}return a.jsxs(D,{children:[a.jsxs(D.Header,{children:[a.jsxs(D.Header.Left,{children:[a.jsx(he,{icon:w?.icon,name:w?.title||"deco chat",size:"xs",fallbackIcon:a.jsx(re,{size:12})}),a.jsx("span",{className:"text-sm font-medium",children:w?.title||"deco chat"})]}),a.jsxs(D.Header.Right,{children:[a.jsx("button",{type:"button",onClick:()=>r(),className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"New chat",children:a.jsx(Ut,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),a.jsx(ys,{threads:u,activeThreadId:c,onSelectThread:d,onRemoveThread:m,onOpen:()=>f()}),a.jsx("button",{type:"button",onClick:()=>o(!1),className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:a.jsx(ne,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})]})]}),a.jsx(D.Main,{children:q?a.jsx(D.EmptyState,{children:a.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[a.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[a.jsx(he,{icon:w?.icon,name:w?.title||"deco chat",size:"lg",fallbackIcon:a.jsx(re,{size:32}),className:"size-[60px]! rounded-[18px]!"}),a.jsx("h3",{className:"text-xl font-medium text-foreground",children:w?.title||"Ask deco chat"}),a.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:w?.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),w?.id&&a.jsx(me,{fallback:null,children:a.jsx(y.Suspense,{fallback:a.jsx("div",{className:"flex justify-center",children:a.jsx(Ht,{size:20,className:"animate-spin text-muted-foreground"})}),children:a.jsx($s,{gatewayId:w.id,onSelect:M=>{H(M.description??M.name)}})})},w.id)]})}):a.jsx(D.Messages,{messages:I.messages,status:I.status,minHeightOffset:240})}),a.jsx(D.Footer,{children:a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx(D.ErrorBanner,{error:I.error,onFixInChat:()=>{I.error&&H(`I encountered this error: ${I.error.message}. Can you help me fix it?`)},onDismiss:I.clearError}),a.jsx(D.FinishReasonWarning,{finishReason:I.finishReason,onContinue:()=>{H("Please continue.")},onDismiss:I.clearFinishReason}),a.jsx(D.BranchPreview,{branchContext:R,clearBranchContext:L,onGoToOriginalMessage:K,setInputValue:z}),a.jsxs(D.Input,{value:T,onChange:z,onSubmit:async()=>{T.trim()&&await H(T.trim())},onStop:I.stop,disabled:!N||!w?.id,isStreaming:I.status==="submitted"||I.status==="streaming",placeholder:N?"Ask anything or @ for context":"Select a model to start chatting",children:[a.jsx(es,{selectedGatewayId:w?.id,onGatewayChange:G,placeholder:"Gateway",variant:"borderless"}),a.jsx(Kt,{selectedModel:N??void 0,onModelChange:U,placeholder:"Model",variant:"borderless"}),a.jsx(Yt,{messages:I.messages})]})]})})]})}function Ms(){const t=x.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(D.Provider,{children:a.jsx(Ts,{})}),t[0]=e):e=t[0],e}function Os(t){const e=x.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(it,{"data-slot":"sheet",...s}),e[2]=s,e[3]=o):o=e[3],o}function zs(t){const e=x.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(mt,{"data-slot":"sheet-portal",...s}),e[2]=s,e[3]=o):o=e[3],o}function Rs(t){const e=x.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=$("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(ft,{"data-slot":"sheet-overlay",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function Ds(t){const e=x.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 r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Rs,{}),e[5]=r):r=e[5];const c=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",u=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 f;e[6]!==o||e[7]!==c||e[8]!==d||e[9]!==m||e[10]!==u?(f=$("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",c,d,m,u,o),e[6]=o,e[7]=c,e[8]=d,e[9]=m,e[10]=u,e[11]=f):f=e[11];let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsxs(ut,{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(ne,{className:"size-4"}),a.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=h):h=e[12];let p;return e[13]!==s||e[14]!==n||e[15]!==f?(p=a.jsxs(zs,{children:[r,a.jsxs(dt,{"data-slot":"sheet-content",className:f,...n,children:[s,h]})]}),e[13]=s,e[14]=n,e[15]=f,e[16]=p):p=e[16],p}function Es(t){const e=x.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=$("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 Ps(t){const e=x.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=$("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(rt,{"data-slot":"sheet-title",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function As(t){const e=x.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=$("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(ct,{"data-slot":"sheet-description",className:n,...o}),e[5]=o,e[6]=n,e[7]=l):l=e[7],l}function Ke(t){const e=x.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=$("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 Ls="sidebar_state",Bs=3600*24*7,Hs="16rem",Us="18rem",Gs="3rem",Ws="b",Ye=y.createContext(null);function fe(){const t=y.useContext(Ye);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Vs(t){const e=x.c(21),{defaultOpen:s,open:o,onOpenChange:n,children:l}=t,i=s===void 0?!0:s,r=ee(),[c,d]=y.useState(!1),[m,u]=y.useState(i),f=o??m;let h;e[0]!==f||e[1]!==n?(h=O=>{const k=typeof O=="function"?O(f):O;n?n(k):u(k),document.cookie=`${Ls}=${k}; path=/; max-age=${Bs}`},e[0]=f,e[1]=n,e[2]=h):h=e[2];const p=h;let v;e[3]!==r||e[4]!==p?(v=()=>r?d(Ks):p(Fs),e[3]=r,e[4]=p,e[5]=v):v=e[5];const g=v;let b,j;e[6]!==g?(b=()=>{const O=k=>{if(k.key===Ws&&(k.metaKey||k.ctrlKey)){const I=k.target;if(I.tagName==="INPUT"||I.tagName==="TEXTAREA"||I.isContentEditable)return;k.preventDefault(),g()}};return globalThis.addEventListener("keydown",O),()=>globalThis.removeEventListener("keydown",O)},j=[g],e[6]=g,e[7]=b,e[8]=j):(b=e[7],j=e[8]),y.useEffect(b,j);const S=f?"expanded":"collapsed";let N;e[9]!==r||e[10]!==f||e[11]!==c||e[12]!==p||e[13]!==S||e[14]!==g?(N={state:S,open:f,setOpen:p,isMobile:r,openMobile:c,setOpenMobile:d,toggleSidebar:g},e[9]=r,e[10]=f,e[11]=c,e[12]=p,e[13]=S,e[14]=g,e[15]=N):N=e[15];const C=N;let w;e[16]!==l?(w=a.jsx(Dt,{delayDuration:0,children:l}),e[16]=l,e[17]=w):w=e[17];let _;return e[18]!==C||e[19]!==w?(_=a.jsx(Ye.Provider,{value:C,children:w}),e[18]=C,e[19]=w,e[20]=_):_=e[20],_}function Fs(t){return!t}function Ks(t){return!t}function Ys(t){const e=x.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":Hs,"--sidebar-width-icon":Gs,...l},e[5]=l,e[6]=i):i=e[6];const r=i;let c;e[7]!==o?(c=$("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",o),e[7]=o,e[8]=c):c=e[8];let d;return e[9]!==s||e[10]!==n||e[11]!==r||e[12]!==c?(d=a.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:c,...n,children:s}),e[9]=s,e[10]=n,e[11]=r,e[12]=c,e[13]=d):d=e[13],d}function Zs(t){const e=x.c(46);let s,o,n,l,i,r;e[0]!==t?({side:l,variant:i,collapsible:r,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]=r):(s=e[1],o=e[2],n=e[3],l=e[4],i=e[5],r=e[6]);const c=l===void 0?"left":l,d=i===void 0?"sidebar":i,m=r===void 0?"offcanvas":r,{isMobile:u,state:f,openMobile:h,setOpenMobile:p}=fe();if(m==="none"){let k;e[7]!==o?(k=$("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",o),e[7]=o,e[8]=k):k=e[8];let I;return e[9]!==s||e[10]!==n||e[11]!==k?(I=a.jsx("div",{"data-slot":"sidebar",className:k,...n,children:s}),e[9]=s,e[10]=n,e[11]=k,e[12]=I):I=e[12],I}if(u){let k;e[13]===Symbol.for("react.memo_cache_sentinel")?(k={"--sidebar-width":Us},e[13]=k):k=e[13];let I;e[14]===Symbol.for("react.memo_cache_sentinel")?(I=a.jsxs(Es,{className:"sr-only",children:[a.jsx(Ps,{children:"Sidebar"}),a.jsx(As,{children:"Displays the mobile sidebar."})]}),e[14]=I):I=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 z;e[17]!==c||e[18]!==T?(z=a.jsxs(Ds,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:k,side:c,children:[I,T]}),e[17]=c,e[18]=T,e[19]=z):z=e[19];let R;return e[20]!==h||e[21]!==n||e[22]!==p||e[23]!==z?(R=a.jsx(Os,{open:h,onOpenChange:p,...n,children:z}),e[20]=h,e[21]=n,e[22]=p,e[23]=z,e[24]=R):R=e[24],R}const v=f==="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=$("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 S=c==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",N=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 C;e[29]!==o||e[30]!==S||e[31]!==N?(C=$("fixed top-12 bottom-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",S,N,o),e[29]=o,e[30]=S,e[31]=N,e[32]=C):C=e[32];let w;e[33]!==s?(w=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]=w):w=e[34];let _;e[35]!==n||e[36]!==C||e[37]!==w?(_=a.jsx("div",{"data-slot":"sidebar-container",className:C,...n,children:w}),e[35]=n,e[36]=C,e[37]=w,e[38]=_):_=e[38];let O;return e[39]!==c||e[40]!==f||e[41]!==_||e[42]!==v||e[43]!==j||e[44]!==d?(O=a.jsxs("div",{className:"group peer text-foreground hidden md:block border-r","data-state":f,"data-collapsible":v,"data-variant":d,"data-side":c,"data-slot":"sidebar",children:[j,_]}),e[39]=c,e[40]=f,e[41]=_,e[42]=v,e[43]=j,e[44]=d,e[45]=O):O=e[45],O}function qs(t){const e=x.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=$("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 Qs(t){const e=x.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=$("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 Xs(t){const e=x.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=$("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 Js(t){const e=x.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=$("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 en(t){const e=x.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=$("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 tn(t){const e=x.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=$("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 ie(t){const e=x.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=$("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 sn=ht("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 Ze(t){const e=x.c(28);let s,o,n,l,i,r,c;e[0]!==t?({asChild:n,isActive:l,variant:i,size:r,tooltip:c,className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o,e[3]=n,e[4]=l,e[5]=i,e[6]=r,e[7]=c):(s=e[1],o=e[2],n=e[3],l=e[4],i=e[5],r=e[6],c=e[7]);const d=n===void 0?!1:n,m=l===void 0?!1:l,u=i===void 0?"default":i,f=r===void 0?"default":r,h=d?pt:"button",{isMobile:p,state:v}=fe();let g;e[8]!==s||e[9]!==f||e[10]!==u?(g=$(sn({variant:u,size:f}),s),e[8]=s,e[9]=f,e[10]=u,e[11]=g):g=e[11];let b;e[12]!==h||e[13]!==m||e[14]!==o||e[15]!==f||e[16]!==g?(b=a.jsx(h,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":m,className:g,...o}),e[12]=h,e[13]=m,e[14]=o,e[15]=f,e[16]=g,e[17]=b):b=e[17];const j=b;if(!c)return j;if(typeof c=="string"){let _;e[18]!==c?(_={children:c},e[18]=c,e[19]=_):_=e[19],c=_}let S;e[20]!==j?(S=a.jsx(Et,{asChild:!0,children:j}),e[20]=j,e[21]=S):S=e[21];const N=v!=="collapsed"||p;let C;e[22]!==N||e[23]!==c?(C=a.jsx(Rt,{side:"right",align:"center",hidden:N,...c}),e[22]=N,e[23]=c,e[24]=C):C=e[24];let w;return e[25]!==S||e[26]!==C?(w=a.jsxs(Pt,{children:[S,C]}),e[25]=S,e[26]=C,e[27]=w):w=e[27],w}function nn(t){const e=x.c(26),{item:s}=t,o=ae(),{org:n}=J(),l=$e(n.id),i=as(n.id);let r;e[0]!==i.update||e[1]!==s.url||e[2]!==l?.sidebar_items?(r=async()=>{const N=(l?.sidebar_items||[]).filter(C=>C.url!==s.url);await i.update.mutateAsync({sidebar_items:N})},e[0]=i.update,e[1]=s.url,e[2]=l?.sidebar_items,e[3]=r):r=e[3];const c=r;let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=/^https?:\/\/.+/,e[4]=d):d=e[4];let m;e[5]!==s.icon?(m=d.test(s.icon),e[5]=s.icon,e[6]=m):m=e[6];const u=m;let f;e[7]!==s.url||e[8]!==o?(f=()=>{o({to:s.url})},e[7]=s.url,e[8]=o,e[9]=f):f=e[9];const h=s.title;let p;e[10]!==u||e[11]!==s.icon||e[12]!==s.title?(p=a.jsx("div",{className:"flex items-center justify-center shrink-0",children:u?a.jsx("img",{src:s.icon,alt:s.title,className:"h-4 w-4 rounded object-cover"}):a.jsx(ns,{size:16,className:"text-muted-foreground group-hover/item:text-foreground transition-colors"})}),e[10]=u,e[11]=s.icon,e[12]=s.title,e[13]=p):p=e[13];let v;e[14]!==s.title?(v=s.title.toLocaleLowerCase(),e[14]=s.title,e[15]=v):v=e[15];let g;e[16]!==v?(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:v})}),e[16]=v,e[17]=g):g=e[17];let b;e[18]!==c?(b=a.jsx(ne,{size:16,className:"text-muted-foreground opacity-0 group-hover/item:opacity-50 hover:opacity-100 cursor-pointer",onClick:S=>{S.preventDefault(),S.stopPropagation(),c()}}),e[18]=c,e[19]=b):b=e[19];let j;return e[20]!==s.title||e[21]!==f||e[22]!==p||e[23]!==g||e[24]!==b?(j=a.jsx(ie,{children:a.jsxs(Ze,{className:"w-full pr-2 group/item relative cursor-pointer text-foreground/90 hover:text-foreground",onClick:f,tooltip:h,children:[p,g,b]})}),e[20]=s.title,e[21]=f,e[22]=p,e[23]=g,e[24]=b,e[25]=j):j=e[25],j}function an(){const t=x.c(4),{org:e}=J(),o=$e(e.id)?.sidebar_items;if(!o?.length)return null;let n;t[0]!==o?(n=o.map(on),t[0]=o,t[1]=n):n=t[1];let l;return t[2]!==n?(l=a.jsx(qe,{children:n}),t[2]=n,t[3]=l):l=t[3],l}function on(t){return a.jsx(nn,{item:t},t.url)}function je(){const t=x.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(ie,{children:a.jsx("div",{className:"flex items-center gap-2 px-4 py-2",children:a.jsx(Ke,{className:"h-4 flex-1"})})}),t[0]=e):e=t[0],e}function qe(t){const e=x.c(4),{children:s}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(Qs,{className:"my-2 -ml-1"}),e[0]=o):o=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(ie,{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 ln(){const t=x.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(y.Suspense,{fallback:a.jsxs(qe,{children:[a.jsx(je,{}),a.jsx(je,{})]}),children:a.jsx(an,{})}),t[0]=e):e=t[0],e}function rn(){const t=x.c(48),{locator:e}=J(),s=ae();let o;t[0]!==e?(o=pe.parse(e),t[0]=e,t[1]=o):o=t[1];const{org:n}=o;let l;t[2]!==e?(l=pe.isOrgAdminProject(e),t[2]=e,t[3]=l):l=t[3];const i=l;let r;t[4]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Le,{}),t[4]=r):r=t[4];let c;t[5]!==s||t[6]!==n?(c={key:"home",label:"Home",icon:r,onClick:()=>s({to:"/$org",params:{org:n}})},t[5]=s,t[6]=n,t[7]=c):c=t[7];let d;t[8]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(Ee,{}),t[8]=d):d=t[8];let m;t[9]!==s||t[10]!==n?(m={key:"store",label:"Store",icon:d,onClick:()=>s({to:"/$org/store",params:{org:n}})},t[9]=s,t[10]=n,t[11]=m):m=t[11];let u;t[12]===Symbol.for("react.memo_cache_sentinel")?(u=a.jsx(Fe,{}),t[12]=u):u=t[12];let f;t[13]!==s||t[14]!==n?(f={key:"workflow",label:"Workflows",icon:u,onClick:()=>s({to:"/$org/workflow",params:{org:n}})},t[13]=s,t[14]=n,t[15]=f):f=t[15];let h;t[16]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(zt,{}),t[16]=h):h=t[16];let p;t[17]!==s||t[18]!==n?(p={key:"mcps",label:"MCP Servers",icon:h,onClick:()=>s({to:"/$org/mcps",params:{org:n}})},t[17]=s,t[18]=n,t[19]=p):p=t[19];let v;t[20]===Symbol.for("react.memo_cache_sentinel")?(v=a.jsx(re,{}),t[20]=v):v=t[20];let g;t[21]!==s||t[22]!==n?(g={key:"gateways",label:"MCP Gateways",icon:v,onClick:()=>s({to:"/$org/gateways",params:{org:n}})},t[21]=s,t[22]=n,t[23]=g):g=t[23];let b;t[24]===Symbol.for("react.memo_cache_sentinel")?(b=a.jsx(De,{}),t[24]=b):b=t[24];let j;t[25]!==s||t[26]!==n?(j={key:"monitoring",label:"Monitoring",icon:b,onClick:()=>s({to:"/$org/monitoring",params:{org:n}})},t[25]=s,t[26]=n,t[27]=j):j=t[27];let S;t[28]===Symbol.for("react.memo_cache_sentinel")?(S=a.jsx(Ve,{}),t[28]=S):S=t[28];let N;t[29]!==s||t[30]!==n?(N={key:"members",label:"Members",icon:S,onClick:()=>s({to:"/$org/members",params:{org:n}})},t[29]=s,t[30]=n,t[31]=N):N=t[31];let C;t[32]===Symbol.for("react.memo_cache_sentinel")?(C=a.jsx(Ge,{}),t[32]=C):C=t[32];let w;t[33]!==s||t[34]!==n?(w={key:"settings",label:"Settings",icon:C,onClick:()=>s({to:"/$org/settings",params:{org:n}})},t[33]=s,t[34]=n,t[35]=w):w=t[35];let _;t[36]!==g||t[37]!==j||t[38]!==N||t[39]!==w||t[40]!==c||t[41]!==m||t[42]!==f||t[43]!==p?(_=[c,m,f,p,g,j,N,w],t[36]=g,t[37]=j,t[38]=N,t[39]=w,t[40]=c,t[41]=m,t[42]=f,t[43]=p,t[44]=_):_=t[44];const O=_;let k;return t[45]!==O||t[46]!==i?(k=i?O:[],t[45]=O,t[46]=i,t[47]=k):k=t[47],k}function Qe(t){const e=x.c(10),{navigationItems:s,footer:o,additionalContent:n,variant:l,collapsible:i}=t,r=l===void 0?"sidebar":l,c=i===void 0?"icon":i;let d;e[0]!==s?(d=s.map(cn),e[0]=s,e[1]=d):d=e[1];let m;e[2]!==n||e[3]!==d?(m=a.jsx(Xs,{className:"flex-1 overflow-x-hidden",children:a.jsx(Js,{className:"font-medium",children:a.jsx(en,{children:a.jsxs(tn,{className:"gap-0.5",children:[d,n]})})})}),e[2]=n,e[3]=d,e[4]=m):m=e[4];let u;return e[5]!==c||e[6]!==o||e[7]!==m||e[8]!==r?(u=a.jsxs(Zs,{variant:r,collapsible:c,children:[m,o]}),e[5]=c,e[6]=o,e[7]=m,e[8]=r,e[9]=u):u=e[9],u}function cn(t){return a.jsx(ie,{children:a.jsxs(Ze,{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)}Qe.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(Ke,{className:"h-full bg-sidebar-accent rounded-md"})},s))})};function dn(){const t=x.c(3),e=rn();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(a.Fragment,{children:a.jsx(me,{children:a.jsx(y.Suspense,{fallback:null,children:a.jsx(ln,{})})})}),t[0]=s):s=t[0];let o;return t[1]!==e?(o=a.jsx(Qe,{navigationItems:e,additionalContent:s}),t[1]=e,t[2]=o):o=t[2],o}function mn(t){const e=x.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,r=l===void 0?!0:l;let c;e[5]!==s?(c=$("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",s),e[5]=s,e[6]=c):c=e[6];let d;return e[7]!==r||e[8]!==i||e[9]!==o||e[10]!==c?(d=a.jsx(xt,{"data-slot":"separator-root",decorative:r,orientation:i,className:c,...o}),e[7]=r,e[8]=i,e[9]=o,e[10]=c,e[11]=d):d=e[11],d}const Xe=y.createContext(null);function un(){const t=y.useContext(Xe);if(!t)throw new Error("TopbarSwitcher compound components must be used within TopbarSwitcher.Root");return t}function fn(t){const e=x.c(10),{children:s,onItemHover:o}=t,[n,l]=y.useState(null);let i;e[0]!==o?(i=u=>{l(u),o?.(u)},e[0]=o,e[1]=i):i=e[1];const r=i;let c;e[2]!==n||e[3]!==r?(c={hoveredItem:n,setHoveredItem:r},e[2]=n,e[3]=r,e[4]=c):c=e[4];let d;e[5]!==s?(d=a.jsx(Ce,{children:s}),e[5]=s,e[6]=d):d=e[6];let m;return e[7]!==c||e[8]!==d?(m=a.jsx(Xe.Provider,{value:c,children:d}),e[7]=c,e[8]=d,e[9]=m):m=e[9],m}function hn(t){const e=x.c(6),{children:s,onClick:o}=t;let n;e[0]!==s||e[1]!==o?(n=a.jsx(V,{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(_e,{asChild:!0,children:a.jsx(V,{size:"icon",variant:"ghost",className:"w-6 h-6 p-0",children:a.jsx(Pe,{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 pn(t){const e=x.c(8),{item:s,fallback:o}=t,n=o===void 0?"":o,l=s?.avatarUrl??"",i=s?.name??n;let r;e[0]!==l||e[1]!==i?(r=a.jsx(Z,{url:l,fallback:i,size:"xs",objectFit:"contain"}),e[0]=l,e[1]=i,e[2]=r):r=e[2];const c=s?.name??n;let d;e[3]!==c?(d=a.jsx("span",{children:c}),e[3]=c,e[4]=d):d=e[4];let m;return e[5]!==r||e[6]!==d?(m=a.jsxs("div",{className:"flex items-center gap-2",children:[r,d]}),e[5]=r,e[6]=d,e[7]=m):m=e[7],m}function xn(t){const e=x.c(6),{children:s,align:o}=t,n=o===void 0?"start":o,i=y.Children.toArray(s).filter(gn).length===1?"280px":"480px";let r;e[0]!==i?(r={width:i},e[0]=i,e[1]=r):r=e[1];let c;return e[2]!==n||e[3]!==s||e[4]!==r?(c=a.jsx(ke,{align:n,className:"p-0 flex items-start",style:r,children:s}),e[2]=n,e[3]=s,e[4]=r,e[5]=c):c=e[5],c}function gn(t){return y.isValidElement(t)&&(t.type===et||t.type===Je)}function Je(t){const e=x.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=$("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 et=Je;function bn(t){const e=x.c(6),{placeholder:s,value:o,onChange:n}=t,l=s===void 0?"Search...":s;let i;e[0]!==n?(i=c=>n(c.target.value),e[0]=n,e[1]=i):i=e[1];let r;return e[2]!==l||e[3]!==i||e[4]!==o?(r=a.jsx(ls,{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]=r):r=e[5],r}function vn(t){const e=x.c(6),{children:s,emptyMessage:o}=t,n=o===void 0?"No items found.":o,l=y.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 r;return e[3]!==s||e[4]!==i?(r=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]=r):r=e[5],r}function jn(t){const e=x.c(15),{item:s,onClick:o,onHover:n,children:l}=t,i=un();let r;e[0]!==i||e[1]!==s||e[2]!==n?(r=()=>{i.setHoveredItem(s.slug),n?.(s)},e[0]=i,e[1]=s,e[2]=n,e[3]=r):r=e[3];const c=r;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(Z,{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 u;return e[11]!==c||e[12]!==d||e[13]!==m?(u=a.jsx(V,{onClick:d,onMouseEnter:c,variant:"ghost",size:"sm",className:"w-full justify-start font-normal",children:m}),e[11]=c,e[12]=d,e[13]=m,e[14]=u):u=e[14],u}function wn(t){const e=x.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 Nn(t){const e=x.c(11),{onClick:s,icon:o,children:n,variant:l}=t,r=(l===void 0?"default":l)==="muted"&&"text-muted-foreground";let c;e[0]!==r?(c=$("w-full justify-start font-normal",r),e[0]=r,e[1]=c):c=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 u;return e[6]!==s||e[7]!==c||e[8]!==d||e[9]!==m?(u=a.jsxs(V,{variant:"ghost",size:"sm",className:c,onClick:s,children:[d,m]}),e[6]=s,e[7]=c,e[8]=d,e[9]=m,e[10]=u):u=e[10],u}function yn(){const t=x.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(mn,{}),t[0]=e):e=t[0],e}function Sn(){const t=x.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 E=Object.assign(fn,{Trigger:hn,CurrentItem:pn,Content:xn,Panel:et,Search:bn,Items:vn,Item:jn,Actions:wn,Action:Nn,Separator:yn,Skeleton:Sn});function ce(){const t=x.c(59);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const{org:s}=de(e),{data:o}=X.useListOrganizations(),n=ae();let l;t[1]!==s||t[2]!==o?(l=o?.find(L=>L.slug===s),t[1]=s,t[2]=o,t[3]=l):l=t[3];const i=l,[r,c]=y.useState(""),[d,m]=y.useState(!1);let u,f,h,p,v,g,b,j;if(t[4]!==i||t[5]!==n||t[6]!==s||t[7]!==r||t[8]!==o){const q=(o?(()=>{const A=o.filter(B=>B.name.toLowerCase().includes(r.toLowerCase()));if(s){const B=A.findIndex(Y=>Y.slug===s);if(B>0){const Y=A[B];Y&&(A.splice(B,1),A.unshift(Y))}}return A})():[]).map(Cn);let K;t[17]!==i?(K=i?{slug:i.slug,name:i.name,avatarUrl:i.logo}:void 0,t[17]=i,t[18]=K):K=t[18];const H=K;p=E;let U;t[19]!==n||t[20]!==s?(U=()=>n({to:"/$org",params:{org:s??""}}),t[19]=n,t[20]=s,t[21]=U):U=t[21];let G;t[22]!==H?(G=a.jsx(E.CurrentItem,{item:H}),t[22]=H,t[23]=G):G=t[23],t[24]!==U||t[25]!==G?(j=a.jsx(E.Trigger,{onClick:U,children:G}),t[24]=U,t[25]=G,t[26]=j):j=t[26],h=E.Content,f=E.Panel,t[27]!==r?(b=a.jsx(E.Search,{placeholder:"Search organizations...",value:r,onChange:c}),t[27]=r,t[28]=b):b=t[28],u=E.Items,v="No organizations found.";let F;t[29]!==n?(F=A=>a.jsx(E.Item,{item:A,onClick:B=>n({to:"/$org",params:{org:B.slug}})},A.slug),t[29]=n,t[30]=F):F=t[30],g=q.map(F),t[4]=i,t[5]=n,t[6]=s,t[7]=r,t[8]=o,t[9]=u,t[10]=f,t[11]=h,t[12]=p,t[13]=v,t[14]=g,t[15]=b,t[16]=j}else u=t[9],f=t[10],h=t[11],p=t[12],v=t[13],g=t[14],b=t[15],j=t[16];let S;t[31]!==u||t[32]!==v||t[33]!==g?(S=a.jsx(u,{emptyMessage:v,children:g}),t[31]=u,t[32]=v,t[33]=g,t[34]=S):S=t[34];let N,C;t[35]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(E.Actions,{children:a.jsx(E.Action,{onClick:()=>m(!0),variant:"muted",children:"+ Create organization"})}),C=a.jsx(E.Separator,{}),t[35]=N,t[36]=C):(N=t[35],C=t[36]);let w;t[37]!==n?(w=()=>n({to:"/"}),t[37]=n,t[38]=w):w=t[38];let _;t[39]===Symbol.for("react.memo_cache_sentinel")?(_=a.jsx(is,{}),t[39]=_):_=t[39];let O;t[40]!==w?(O=a.jsx(E.Actions,{children:a.jsx(E.Action,{onClick:w,icon:_,children:"See all organizations"})}),t[40]=w,t[41]=O):O=t[41];let k;t[42]!==f||t[43]!==O||t[44]!==b||t[45]!==S?(k=a.jsxs(f,{children:[b,S,N,C,O]}),t[42]=f,t[43]=O,t[44]=b,t[45]=S,t[46]=k):k=t[46];let I;t[47]!==h||t[48]!==k?(I=a.jsx(h,{children:k}),t[47]=h,t[48]=k,t[49]=I):I=t[49];let T;t[50]!==p||t[51]!==I||t[52]!==j?(T=a.jsxs(p,{children:[j,I]}),t[50]=p,t[51]=I,t[52]=j,t[53]=T):T=t[53];let z;t[54]!==d?(z=a.jsx(os,{open:d,onOpenChange:m}),t[54]=d,t[55]=z):z=t[55];let R;return t[56]!==T||t[57]!==z?(R=a.jsxs(a.Fragment,{children:[T,z]}),t[56]=T,t[57]=z,t[58]=R):R=t[58],R}function Cn(t){return{slug:t.slug,name:t.name,avatarUrl:t.logo}}ce.Skeleton=E.Skeleton;const tt=y.createContext({setOpen:()=>{}}),_n=()=>y.useContext(tt),kn=t=>{const e=x.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 r=o??!1;let c;e[6]!==n||e[7]!==l||e[8]!==r?(c={prop:l,defaultProp:r,onChange:n},e[6]=n,e[7]=l,e[8]=r,e[9]=c):c=e[9];const[d,m]=us(c);let u;e[10]!==m?(u={setOpen:m},e[10]=m,e[11]=u):u=e[11];let f;e[12]!==s||e[13]!==d||e[14]!==i||e[15]!==m?(f=a.jsx(fs,{open:d,onOpenChange:m,...i,children:s}),e[12]=s,e[13]=d,e[14]=i,e[15]=m,e[16]=f):f=e[16];let h;e[17]!==d||e[18]!==i||e[19]!==m||e[20]!==f?(h=a.jsx(xs,{open:d,onOpenChange:m,...i,children:f}),e[17]=d,e[18]=i,e[19]=m,e[20]=f,e[21]=h):h=e[21];let p;return e[22]!==u||e[23]!==h?(p=a.jsx(tt.Provider,{value:u,children:h}),e[22]=u,e[23]=h,e[24]=p):p=e[24],p},In=t=>{const{children:e,title:s,...o}=t,n=ee(),{className:l,...i}=o;return n?a.jsxs(cs,{...i,children:[a.jsx(ds,{className:"hidden",children:a.jsx(ms,{children:s})}),a.jsx("div",{className:$("flex flex-col gap-2 p-2 py-4",l),children:e})]}):a.jsx(ps,{...o,children:e})},$n=t=>{const{children:e,...s}=t,{setOpen:o}=_n(),n=ee(),{className:l,...i}=s;return n?a.jsx("div",{...i,onClick:r=>{o(!1);const{onClick:c}=i;c?.(r)},className:$("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",l),children:e}):a.jsx(gs,{...s,children:e})},Tn=t=>{const e=x.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=ee();let l;return e[3]!==s||e[4]!==n||e[5]!==o?(l=n?a.jsx(rs,{asChild:!0,children:s}):a.jsx(hs,{...o,children:s}),e[3]=s,e[4]=n,e[5]=o,e[6]=l):l=e[6],l},Mn=t=>{const e=x.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=ee();let l;return e[3]!==s||e[4]!==n||e[5]!==o?(l=n?a.jsx(ge,{className:$(s),...o}):a.jsx(ge,{className:$(s),...o}),e[3]=s,e[4]=n,e[5]=o,e[6]=l):l=e[6],l};function On(t){const e=x.c(11),{user:s,trigger:o,align:n,children:l}=t,i=n===void 0?"start":n;let r;e[0]!==o||e[1]!==s?(r=o(s),e[0]=o,e[1]=s,e[2]=r):r=e[2];let c;e[3]!==r?(c=a.jsx(Tn,{asChild:!0,children:a.jsx("div",{children:r})}),e[3]=r,e[4]=c):c=e[4];let d;e[5]!==i||e[6]!==l?(d=a.jsx(In,{side:"top",align:i,className:"md:w-[240px]",children:l}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let m;return e[8]!==c||e[9]!==d?(m=a.jsxs(kn,{children:[c,d]}),e[8]=c,e[9]=d,e[10]=m):m=e[10],m}function zn(t){const e=x.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 r;return e[4]!==l||e[5]!==n||e[6]!==i?(r=a.jsx($n,{asChild:l,className:n,children:i}),e[4]=l,e[5]=n,e[6]=i,e[7]=r):r=e[7],r}function Rn(t){const e=x.c(2),{className:s}=t;let o;return e[0]!==s?(o=a.jsx(Mn,{className:s}),e[0]=s,e[1]=o):o=e[1],o}function Dn(){const t=x.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 W=Object.assign(On,{Item:zn,Separator:Rn,Skeleton:Dn});function En(t){const e=x.c(32),{open:s,onOpenChange:o,user:n,userImage:l}=t,[i,r]=y.useState(!1);let c;e[0]!==n.id?(c=()=>{navigator.clipboard.writeText(n.id),r(!0),setTimeout(()=>r(!1),2e3)},e[0]=n.id,e[1]=c):c=e[1];const d=c;let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsxs(Te,{children:[a.jsx(Me,{children:"Profile"}),a.jsx(Oe,{children:"Your account information"})]}),e[2]=m):m=e[2];const u=n.name||n.email||"U";let f;e[3]!==u||e[4]!==l?(f=a.jsx(Z,{url:l,fallback:u,shape:"circle",size:"2xl"}),e[3]=u,e[4]=l,e[5]=f):f=e[5];const h=n.name||n.email;let p;e[6]!==h?(p=a.jsx("div",{className:"text-lg font-semibold text-center",children:h}),e[6]=h,e[7]=p):p=e[7];let v;e[8]!==n.email?(v=a.jsx("div",{className:"text-sm text-muted-foreground text-center",children:n.email}),e[8]=n.email,e[9]=v):v=e[9];let g;e[10]!==p||e[11]!==v?(g=a.jsxs("div",{className:"flex flex-col items-center gap-2 w-full",children:[p,v]}),e[10]=p,e[11]=v,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 S;e[16]!==i?(S=i?a.jsx(At,{size:16,className:"text-green-600"}):a.jsx(bs,{size:16,className:"text-muted-foreground"}),e[16]=i,e[17]=S):S=e[17];let N;e[18]!==d||e[19]!==S?(N=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:S}),e[18]=d,e[19]=S,e[20]=N):N=e[20];let C;e[21]!==j||e[22]!==N?(C=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,N]}),e[21]=j,e[22]=N,e[23]=C):C=e[23];let w;e[24]!==C||e[25]!==f||e[26]!==g?(w=a.jsxs(ze,{className:"sm:max-w-md",children:[m,a.jsxs("div",{className:"flex flex-col items-center gap-6 py-4",children:[f,g,C]})]}),e[24]=C,e[25]=f,e[26]=g,e[27]=w):w=e[27];let _;return e[28]!==o||e[29]!==s||e[30]!==w?(_=a.jsx(Re,{open:s,onOpenChange:o,children:w}),e[28]=o,e[29]=s,e[30]=w,e[31]=_):_=e[31],_}function Pn(t){const e=x.c(5),{open:s,onOpenChange:o}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsxs(Te,{children:[a.jsx(Me,{children:"Invitations"}),a.jsx(Oe,{children:"Your pending organization invitations"})]}),e[0]=n):n=e[0];let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsxs(ze,{className:"sm:max-w-lg",children:[n,a.jsx("div",{className:"max-h-[420px] overflow-auto pr-1",children:a.jsx(vt,{})})]}),e[1]=l):l=e[1];let i;return e[2]!==o||e[3]!==s?(i=a.jsx(Re,{open:s,onOpenChange:o,children:l}),e[2]=o,e[3]=s,e[4]=i):i=e[4],i}function An(t){const e=x.c(31),{user:s,userImage:o,hasInvites:n,showInvitesItem:l}=t,[i,r]=y.useState(!1),[c,d]=y.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(Z,{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 u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=a.jsxs(W.Item,{onClick:()=>r(!0),children:[a.jsx(We,{className:"text-muted-foreground",size:18}),"Profile"]}),e[5]=u):u=e[5];let f;e[6]!==n||e[7]!==l?(f=l&&a.jsxs(W.Item,{onClick:()=>d(!0),children:[a.jsx(Ue,{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]=f):f=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsx(W.Separator,{}),e[9]=h):h=e[9];let p;e[10]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(bt,{className:"w-4 h-4 text-muted-foreground"}),e[10]=p):p=e[10];let v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=a.jsx(W.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(be,{size:18,className:"text-muted-foreground ml-auto"})]})}),e[11]=v):v=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(Ae,{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(W.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(be,{size:18,className:"ml-auto text-muted-foreground"})]})}),j=a.jsx(W.Separator,{}),e[13]=b,e[14]=j):(b=e[13],j=e[14]);let S;e[15]===Symbol.for("react.memo_cache_sentinel")?(S=a.jsxs(W.Item,{onClick:Ln,children:[a.jsx(He,{size:18,className:"text-muted-foreground"}),"Log out"]}),e[15]=S):S=e[15];let N;e[16]!==m||e[17]!==f||e[18]!==s?(N=a.jsxs(W,{user:s,trigger:m,align:"end",children:[u,f,h,v,b,j,S]}),e[16]=m,e[17]=f,e[18]=s,e[19]=N):N=e[19];let C;e[20]!==i||e[21]!==s||e[22]!==o?(C=i&&a.jsx(En,{open:i,onOpenChange:r,user:s,userImage:o}),e[20]=i,e[21]=s,e[22]=o,e[23]=C):C=e[23];let w;e[24]!==c||e[25]!==l?(w=l&&c&&a.jsx(Pn,{open:c,onOpenChange:d}),e[24]=c,e[25]=l,e[26]=w):w=e[26];let _;return e[27]!==N||e[28]!==C||e[29]!==w?(_=a.jsxs(a.Fragment,{children:[N,C,w]}),e[27]=N,e[28]=C,e[29]=w,e[30]=_):_=e[30],_}function Ln(){return X.signOut()}function Bn(){const{data:t}=X.useSession(),e=y.useContext(gt),{data:s}=e.hooks.useListUserInvitations(),n=(s??[]).length>0;if(!t?.user)return a.jsx(Z,{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},r=l.image;return a.jsx(An,{user:i,userImage:r,hasInvites:n,showInvitesItem:!0})}function Hn(t){const e=x.c(6),{children:s}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(jt,{children:a.jsx(ye,{})}),e[0]=o):o=e[0];let n;e[1]!==s?(n=a.jsx(wt,{children:s}),e[1]=s,e[2]=n):n=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(Nt,{children:a.jsx(yt,{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 Un(t){const e=x.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=$("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 Gn(t){const e=x.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=$("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 Wn(t){const e=x.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=$("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 Vn(t){const e=x.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=$("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 Fn(t){const e=x.c(5),{children:s,className:o}=t;let n;e[0]!==o?(n=$("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 Kn(){const t=x.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 te=Object.assign(Un,{Sidebar:Gn,Left:Wn,Center:Vn,Right:Fn,Skeleton:Kn});function Yn(){const t=x.c(7);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx("div",{className:"size-6 rounded-lg bg-muted animate-pulse"}),t[0]=e):e=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsxs("div",{className:"flex items-center gap-3",children:[e,a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx("div",{className:"h-3.5 w-28 rounded bg-muted animate-pulse"}),a.jsx("div",{className:"h-3 w-40 rounded bg-muted/60 animate-pulse"})]})]}),t[1]=s):s=t[1];let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx("div",{className:"flex items-center h-12 flex-none border-b border-border/80 px-4",children:a.jsxs("div",{className:"flex items-center justify-between gap-3 w-full",children:[s,a.jsxs("div",{className:"flex items-end gap-2",children:[a.jsx("div",{className:"h-6 w-6 rounded-full bg-muted animate-pulse"}),a.jsx("div",{className:"h-6 w-6 rounded-lg bg-muted animate-pulse"})]})]})}),t[2]=o):o=t[2];let n;t[3]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx("div",{className:"flex-1 overflow-hidden px-4 py-4",children:a.jsxs("div",{className:"mx-auto flex w-full max-w-2xl flex-col gap-4",children:[a.jsx(se,{align:"right",width:"w-3/4"}),a.jsx(se,{align:"left",width:"w-full",lines:3}),a.jsx(se,{align:"right",width:"w-2/3"}),a.jsx(se,{align:"left",width:"w-5/6",lines:2})]})}),t[3]=n):n=t[3];let l;t[4]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("div",{className:"relative flex flex-1 flex-col gap-2 p-2.5",children:a.jsx("div",{className:"relative flex-1",children:a.jsxs("div",{className:"space-y-2 p-2",children:[a.jsx("div",{className:"h-3 w-full rounded bg-muted/40 animate-pulse"}),a.jsx("div",{className:"h-3 w-4/5 rounded bg-muted/40 animate-pulse"})]})})}),t[4]=l):l=t[4];let i;t[5]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx("div",{className:"flex items-center gap-1",children:a.jsx("div",{className:"size-8 rounded-full bg-muted/60 animate-pulse"})}),t[5]=i):i=t[5];let r;return t[6]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsxs("div",{className:"flex h-full w-full flex-col bg-sidebar",children:[o,n,a.jsx("div",{className:"px-4 py-4",children:a.jsx("div",{className:"mx-auto w-full max-w-2xl",children:a.jsxs("div",{className:"relative flex min-h-[130px] flex-col rounded-xl border border-border bg-background shadow-sm",children:[l,a.jsxs("div",{className:"flex items-center justify-between px-2.5 pb-2.5",children:[i,a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("div",{className:"h-8 w-32 rounded-lg bg-muted/60 animate-pulse"}),a.jsx("div",{className:"size-8 rounded-full bg-muted animate-pulse"})]})]})]})})})]}),t[6]=r):r=t[6],r}function se(t){const e=x.c(22),{align:s,width:o,lines:n}=t,l=o===void 0?"w-full":o,i=n===void 0?1:n,r=s==="right"?"flex-row-reverse":"flex-row";let c;e[0]!==r?(c=$("flex w-full gap-4 px-4 py-2",r),e[0]=r,e[1]=c):c=e[1];const d=s==="right"?"ml-auto max-w-3/4 items-end":"w-full items-start";let m;e[2]!==d?(m=$("flex min-w-0 flex-col gap-2",d),e[2]=d,e[3]=m):m=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=a.jsx("div",{className:"h-3 w-16 rounded bg-muted/40 animate-pulse"}),e[4]=u):u=e[4];const f=s==="right"?"bg-muted":"bg-transparent border border-border/40";let h;e[5]!==f||e[6]!==l?(h=$("min-w-0 rounded-2xl p-4",f,l),e[5]=f,e[6]=l,e[7]=h):h=e[7];let p;e[8]!==i?(p=Array.from({length:i}),e[8]=i,e[9]=p):p=e[9];let v;e[10]!==i||e[11]!==p?(v=a.jsx("div",{className:"space-y-2",children:p.map((S,N)=>a.jsx("div",{className:$("h-3 rounded bg-muted-foreground/20 animate-pulse",N===i-1?"w-3/4":"w-full"),style:{animationDelay:`${N*.1}s`}},N))}),e[10]=i,e[11]=p,e[12]=v):v=e[12];let g;e[13]!==v||e[14]!==h?(g=a.jsx("div",{className:h,children:v}),e[13]=v,e[14]=h,e[15]=g):g=e[15];let b;e[16]!==g||e[17]!==m?(b=a.jsxs("div",{className:m,children:[u,g]}),e[16]=g,e[17]=m,e[18]=b):b=e[18];let j;return e[19]!==b||e[20]!==c?(j=a.jsx("div",{className:c,children:b}),e[19]=b,e[20]=c,e[21]=j):j=e[21],j}function st(){const t=x.c(3),{toggleSidebar:e}=fe();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(Be,{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(V,{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}st.Skeleton=function(){return a.jsx("div",{className:"w-8 h-8 bg-muted rounded-md animate-pulse"})};const Zn="https://assets.decocache.com/decocms/fd07a578-6b1c-40f1-bc05-88a3b981695d/f7fc4ffa81aec04e37ae670c3cd4936643a7b269.png";function we(t){const e=x.c(18),{showSidebarToggle:s,showOrgSwitcher:o,showDecoChat:n}=t,l=s===void 0?!1:s,i=o===void 0?!1:o,r=n===void 0?!1:n,[,c]=ue();let d;e[0]!==c?(d=()=>c(qn),e[0]=c,e[1]=d):d=e[1];const m=d;let u;e[2]!==l?(u=l&&a.jsx(te.Sidebar,{children:a.jsx(st,{})}),e[2]=l,e[3]=u):u=e[3];let f;e[4]!==i?(f=i&&a.jsx(y.Suspense,{fallback:a.jsx(ce.Skeleton,{}),children:a.jsx(ce,{})}),e[4]=i,e[5]=f):f=e[5];let h;e[6]!==f?(h=a.jsx(te.Left,{children:f}),e[6]=f,e[7]=h):h=e[7];let p;e[8]!==r||e[9]!==m?(p=r&&a.jsxs(V,{size:"sm",variant:"default",onClick:m,children:[a.jsx(Z,{url:Zn,fallback:"DC",size:"2xs",className:"rounded-sm"}),"deco chat"]}),e[8]=r,e[9]=m,e[10]=p):p=e[10];let v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=a.jsx(Bn,{}),e[11]=v):v=e[11];let g;e[12]!==p?(g=a.jsxs(te.Right,{className:"gap-2",children:[p,v]}),e[12]=p,e[13]=g):g=e[13];let b;return e[14]!==g||e[15]!==u||e[16]!==h?(b=a.jsxs(te,{children:[u,h,g]}),e[14]=g,e[15]=u,e[16]=h,e[17]=b):b=e[17],b}function qn(t){return!t}function Qn(t){const e=x.c(10),{children:s,className:o}=t,[,n]=y.useTransition();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=le.decoChatPanelWidth(),e[0]=l):l=e[0];const[i,r]=oe(l,30);let c;e[1]!==r?(c=f=>n(()=>r(f)),e[1]=r,e[2]=c):c=e[2];const d=c;let m;e[3]!==o?(m=$("min-w-0",o),e[3]=o,e[4]=m):m=e[4];let u;return e[5]!==i||e[6]!==s||e[7]!==d||e[8]!==m?(u=a.jsx(Ie,{defaultSize:i,minSize:20,className:m,onResize:d,children:s}),e[5]=i,e[6]=s,e[7]=d,e[8]=m,e[9]=u):u=e[9],u}function Xn(t){const e=x.c(5),{children:s}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=le.sidebarOpen(),e[0]=o):o=e[0];const[n,l]=oe(o,!0);let i;return e[1]!==s||e[2]!==l||e[3]!==n?(i=a.jsx(Vs,{open:n,onOpenChange:l,children:s}),e[1]=s,e[2]=l,e[3]=n,e[4]=i):i=e[4],i}function Jn(){const t=x.c(9),[e]=ue();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(Ie,{className:"bg-background",children:a.jsx(Se,{})}),t[0]=s):s=t[0];let o;t[1]!==e?(o=a.jsx(ts,{withHandle:e}),t[1]=e,t[2]=o):o=t[2];const n=e?"max-w-none":"max-w-0";let l;t[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(me,{children:a.jsx(y.Suspense,{fallback:a.jsx(Yn,{}),children:a.jsx(Ms,{})})}),t[3]=l):l=t[3];let i;t[4]!==n?(i=a.jsx(Qn,{className:n,children:l}),t[4]=n,t[5]=i):i=t[5];let r;return t[6]!==o||t[7]!==i?(r=a.jsxs(ss,{direction:"horizontal",children:[s,o,i]}),t[6]=o,t[7]=i,t[8]=r):r=t[8],r}function ea(){const t=x.c(16);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const{org:s}=de(e);let o;t[1]!==s?(o=Ne.activeOrganization(s),t[1]=s,t[2]=o):o=t[2];let n;t[3]!==s?(n=async()=>{if(!s)return null;const{data:f}=await X.organization.setActive({organizationSlug:s});return{org:f,project:{slug:Bt}}},t[3]=s,t[4]=n):n=t[4];let l;t[5]!==o||t[6]!==n?(l={queryKey:o,queryFn:n,gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1},t[5]=o,t[6]=n,t[7]=l):l=t[7];const{data:i}=St(l);if(!i){let f;t[8]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(we,{}),t[8]=f):f=t[8];let h;return t[9]===Symbol.for("react.memo_cache_sentinel")?(h=a.jsxs("div",{className:"min-h-screen bg-background",children:[f,a.jsx("div",{className:"pt-12",children:a.jsx(Se,{})})]}),t[9]=h):h=t[9],h}let r;t[10]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(we,{showSidebarToggle:!0,showOrgSwitcher:!0,showDecoChat:!0}),t[10]=r):r=t[10];let c;t[11]===Symbol.for("react.memo_cache_sentinel")?(c={"--sidebar-width":"13rem","--sidebar-width-mobile":"11rem"},t[11]=c):c=t[11];let d;t[12]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(dn,{}),t[12]=d):d=t[12];let m;t[13]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx(Xn,{children:a.jsxs("div",{className:"flex flex-col h-screen",children:[r,a.jsxs(Ys,{className:"flex-1 bg-sidebar",style:c,children:[d,a.jsx(qs,{className:"pt-12",children:a.jsx(Jn,{})})]})]})}),t[13]=m):m=t[13];let u;return t[14]!==i?(u=a.jsx(Lt,{...i,children:m}),t[14]=i,t[15]=u):u=t[15],u}function Fa(){const t=x.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(Hn,{children:a.jsx(y.Suspense,{fallback:a.jsx(ye,{}),children:a.jsx(ea,{})})}),t[0]=e):e=t[0],e}export{Fa as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aq as u,am as s}from"./index-B9HSZhdB.js";function o(e,r){return u(e,s,r)}export{o as u};
|