@decocms/mesh 1.3.1 → 1.3.2
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-DoPcYOmu.js → AlertCircle-BMr3-fpA.js} +1 -1
- package/dist/client/assets/{ArrowLeft-Cho91gJm.js → ArrowLeft-BwQg_SOY.js} +1 -1
- package/dist/client/assets/{ChevronDown--_znWqhO.js → ChevronDown-BjyTHawB.js} +1 -1
- package/dist/client/assets/{Clock-OrKCoBnu.js → Clock-BqL_Iy4b.js} +1 -1
- package/dist/client/assets/{Code01-COExI_48.js → Code01-DkmFiQmz.js} +1 -1
- package/dist/client/assets/{Copy01-CdCXGmeI.js → Copy01-D2K_Muqy.js} +1 -1
- package/dist/client/assets/{CpuChip02-D26L6TWX.js → CpuChip02-C_MNm5X3.js} +1 -1
- package/dist/client/assets/{DotsVertical-kYh71Jmo.js → DotsVertical-D0NEibaO.js} +1 -1
- package/dist/client/assets/{File06-D4-QxuCL.js → File06-CXgKQ6DN.js} +1 -1
- package/dist/client/assets/{GitBranch01-irv8ZOt4.js → GitBranch01-BUSTYQYz.js} +1 -1
- package/dist/client/assets/{Inbox01-CEpI9Sk9.js → Inbox01-CBPg2mpL.js} +1 -1
- package/dist/client/assets/{InfoCircle-BH6ukjrt.js → InfoCircle-COZlVleH.js} +1 -1
- package/dist/client/assets/{Key01-BvGYoGe8.js → Key01-BperTm8i.js} +1 -1
- package/dist/client/assets/{LinkExternal01-C8zs3bR9.js → LinkExternal01-CYB_l3HF.js} +1 -1
- package/dist/client/assets/{Loading01-DcFBMaXj.js → Loading01-C4j07Rkx.js} +1 -1
- package/dist/client/assets/{Lock01-IqrEd301.js → Lock01-CFQ55MXh.js} +1 -1
- package/dist/client/assets/{Play-0EPVk_yg.js → Play-BZ988K1v.js} +1 -1
- package/dist/client/assets/{Plus-C--SWih9.js → Plus-mxlUVGel.js} +1 -1
- package/dist/client/assets/{SearchMd-DiJjEUCs.js → SearchMd-COBfbXbx.js} +1 -1
- package/dist/client/assets/{Terminal-Fx0j4vYu.js → Terminal-RcHlyPBU.js} +1 -1
- package/dist/client/assets/{Trash01-ClQp3SU7.js → Trash01-CyKI-_BM.js} +1 -1
- package/dist/client/assets/{Upload01-qHdORxg4.js → Upload01-Ck1Svxew.js} +1 -1
- package/dist/client/assets/{X-tggfklJn.js → X-BXO-lbAK.js} +1 -1
- package/dist/client/assets/{XClose-8ptd0_kG.js → XClose-C64sfNMR.js} +1 -1
- package/dist/client/assets/{alert-dialog-BTnJ6w_s.js → alert-dialog-P1n_1JT7.js} +1 -1
- package/dist/client/assets/assistant-DpkEh-Jl.js +1 -0
- package/dist/client/assets/{auth-DaJav-_Q.js → auth-DP47SEOm.js} +1 -1
- package/dist/client/assets/{auth-catchall-Bi1SQUCA.js → auth-catchall-CfVXVPNH.js} +1 -1
- package/dist/client/assets/{avatar-CuTiSc9V.js → avatar-_GsuhjwG.js} +1 -1
- package/dist/client/assets/{badge-pWud7F0k.js → badge-DC5bHjau.js} +1 -1
- package/dist/client/assets/binding-collection-view-MAfjU-3d.js +1 -0
- package/dist/client/assets/{button-DoEGRp1U.js → button-dzqjSoP9.js} +1 -1
- package/dist/client/assets/{card-CJ-1atZv.js → card-C7renjvY.js} +1 -1
- package/dist/client/assets/{checkbox-Bh9rcCG9.js → checkbox-DAye6Bhs.js} +1 -1
- package/dist/client/assets/{collection-detail-7RgcpBz4.js → collection-detail-CCxtFEtB.js} +40 -40
- package/dist/client/assets/{collection-display-button-B5AAU4Bw.js → collection-display-button-DuYSBdla.js} +1 -1
- package/dist/client/assets/{collection-header-Buxr9MZE.js → collection-header-BmMDhAGN.js} +1 -1
- package/dist/client/assets/{collection-page-BUbDWask.js → collection-page-Cn_-fCfu.js} +1 -1
- package/dist/client/assets/{collection-search-DivVKI30.js → collection-search-B8kQUh1o.js} +1 -1
- package/dist/client/assets/collection-tab-CuS_mYhN.js +1 -0
- package/dist/client/assets/{collection-table-wrapper-lGkt7E0b.js → collection-table-wrapper-BxibriYd.js} +1 -1
- package/dist/client/assets/{connection-card-BQhG2Xa_.js → connection-card-DJnmbeP6.js} +1 -1
- package/dist/client/assets/connection-detail-BEAx4Rx8.js +1 -0
- package/dist/client/assets/{connections-BASUKxPo.js → connections-DhcecQtM.js} +1 -1
- package/dist/client/assets/constants-BVChjGeA.js +1 -0
- package/dist/client/assets/{core-DL7Okp2L.js → core-BmgwoN2D.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Dds34l1N.js → create-organization-dialog-C1_fICTk.js} +1 -1
- package/dist/client/assets/{dialog-DzOmePFm.js → dialog-CjFuRpNq.js} +1 -1
- package/dist/client/assets/{dropdown-menu-B9LS1Ke-.js → dropdown-menu-6B5tpY1h.js} +1 -1
- package/dist/client/assets/empty-state-D7F--R-i.js +1 -0
- package/dist/client/assets/{env-vars-editor-D8jKdEG-.js → env-vars-editor-CA1M7xF4.js} +1 -1
- package/dist/client/assets/{error-boundary-BAtxRJ1Q.js → error-boundary-Kj4QesDI.js} +1 -1
- package/dist/client/assets/extract-connection-data-DoCNquGq.js +1 -0
- package/dist/client/assets/{form-9MqLiR_v.js → form-DNs0FRpn.js} +1 -1
- package/dist/client/assets/formatDistanceToNow-ctvTO9qt.js +1 -0
- package/dist/client/assets/gateway-detail-e5GW9_16.js +1 -0
- package/dist/client/assets/{gateways-Z3eqRHG3.js → gateways-potF35CW.js} +1 -1
- package/dist/client/assets/{home-CKPwY7YW.js → home-CZCW3yxr.js} +1 -1
- package/dist/client/assets/{index-IkrlX4J3.js → index--kROx8O6.js} +15 -15
- package/dist/client/assets/{index-v-MZw8Iv.js → index-C5Ye_Yv8.js} +1 -1
- package/dist/client/assets/index-DNNzqGj5.js +25 -0
- package/dist/client/assets/{index-Cu-lUDuQ.js → index-DYEBIV-t.js} +1 -1
- package/dist/client/assets/{input-BiKrjh13.js → input-Dos1YqM9.js} +1 -1
- package/dist/client/assets/json-BSW9cMnN.js +1 -0
- package/dist/client/assets/{json-syntax-highlighter-DKWpZiaG.js → json-syntax-highlighter-DOX4DGR6.js} +2 -2
- package/dist/client/assets/{layout-DnHkkkij.js → layout-C2pQBqt8.js} +1 -1
- package/dist/client/assets/{lazy-highlighter-B7M4_4X7.js → lazy-highlighter-BeoVpvw-.js} +1 -1
- package/dist/client/assets/{localstorage-keys-C9gCmhF_.js → localstorage-keys-Cl6fG_mC.js} +1 -1
- package/dist/client/assets/{login-CAWaGgdX.js → login-BkePM8bd.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BeIYwRKY.js → mcp-oauth-BAFvA0-x.js} +1 -1
- package/dist/client/assets/{members-DuEm4VkF.js → members-DOlpKNSi.js} +1 -1
- package/dist/client/assets/{monitoring-m_4t86_p.js → monitoring-C60hZcZG.js} +1 -1
- package/dist/client/assets/{oauth-callback-CDIYayLa.js → oauth-callback-Mr11rTZP.js} +1 -1
- package/dist/client/assets/{page-C3RAYK9Q.js → page-BxWTpniF.js} +1 -1
- package/dist/client/assets/pin-to-sidebar-button-DFstuxz9.js +1 -0
- package/dist/client/assets/{popover-DtVun_-z.js → popover-Bflc8KYR.js} +1 -1
- package/dist/client/assets/prism-light-CKgeoQoL.js +1 -0
- package/dist/client/assets/{resizable-ADGi5uO6.js → resizable-CZ3q7UHO.js} +5 -5
- package/dist/client/assets/{resource-tabs-B0Wxp2Cw.js → resource-tabs-C7YApwd6.js} +1 -1
- package/dist/client/assets/{select-C6oJSPpc.js → select-Bd0A4qyi.js} +1 -1
- package/dist/client/assets/{settings-DpVdsR8r.js → settings-Bzv9x0Xx.js} +1 -1
- package/dist/client/assets/shell-layout-JAlTNvh1.js +19 -0
- package/dist/client/assets/{spinner-BI2cvb0U.js → spinner-DssEQupg.js} +1 -1
- package/dist/client/assets/{store-RumD0h8V.js → store-DDomUn8i.js} +1 -1
- package/dist/client/assets/store-app-detail-Cvn5_uEK.js +1 -0
- package/dist/client/assets/{switch-CICUEk-x.js → switch-jY_WtmSF.js} +1 -1
- package/dist/client/assets/{textarea-DYZxZLq1.js → textarea-CRl6hqQJ.js} +1 -1
- package/dist/client/assets/{tools-list-B1pdeGzm.js → tools-list-cySZCndz.js} +1 -1
- package/dist/client/assets/{tooltip-DsFBYF2A.js → tooltip-wl_T0hkj.js} +1 -1
- package/dist/client/assets/{types-BwKekgcj.js → types-C2--1o8t.js} +1 -1
- package/dist/client/assets/{use-binding-CQxg2gSi.js → use-binding-DHbkm4TE.js} +1 -1
- package/dist/client/assets/{use-connection-B7SaX83w.js → use-connection-DwuFVoxD.js} +1 -1
- package/dist/client/assets/{use-connection-resources-B6GNOl9A.js → use-connection-resources-6iOIsQA9.js} +1 -1
- package/dist/client/assets/{use-gateway-BlseD0Sx.js → use-gateway-C48kcbNv.js} +1 -1
- package/dist/client/assets/{use-list-state-BU6IyL55.js → use-list-state-DC-EnrYi.js} +1 -1
- package/dist/client/assets/{use-mcp-C2f_uqzY.js → use-mcp-LjTWLNoY.js} +1 -1
- package/dist/client/assets/{use-members-CWSu_Z-H.js → use-members-k3Q2xXPW.js} +1 -1
- package/dist/client/assets/{use-mobile-CdiMQ9En.js → use-mobile-Bmxp2FgH.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Cnjs0OiP.js → use-organization-settings-0ztRQ3i7.js} +1 -1
- package/dist/client/assets/{use-tool-call-BpBoE-Mi.js → use-tool-call-D1etRfCY.js} +1 -1
- package/dist/client/assets/useQuery-5Z2U7Q-f.js +1 -0
- package/dist/client/assets/{useSuspenseInfiniteQuery-0wQdaodf.js → useSuspenseInfiniteQuery-Br-4aSkX.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Dq1mWwHt.js → view-mode-toggle-D13jhPxd.js} +1 -1
- package/dist/client/assets/{well-known-mcp-DX3tGGx0.js → well-known-mcp-D13f-8h2.js} +1 -1
- package/dist/client/assets/workflow-COhnt_Eq.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +124 -124
- package/dist/server/server.js +4 -4
- package/package.json +1 -1
- package/dist/client/assets/connection-detail-DWS__uKs.js +0 -1
- package/dist/client/assets/extract-connection-data-lX5EQrvR.js +0 -1
- package/dist/client/assets/formatDistanceToNow-D7en5Npb.js +0 -1
- package/dist/client/assets/gateway-detail-CxcoEeja.js +0 -1
- package/dist/client/assets/index-Bp5sMtgd.js +0 -25
- package/dist/client/assets/json-C3gxFz3i.js +0 -1
- package/dist/client/assets/prism-light-BDjQ_TVh.js +0 -1
- package/dist/client/assets/shell-layout-UFhBDwon.js +0 -19
- package/dist/client/assets/store-app-detail-C0Bjj1dL.js +0 -1
- package/dist/client/assets/useQuery-9D_KMlJN.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as T,c as U,j as t,f as ke,d as Me,b as Oe,v as Ue,_ as Se,w as Ne,g as Be,as as Le,x as Je,y as qe,t as Ie}from"./index--kROx8O6.js";import{E as Qe}from"./SearchMd-COBfbXbx.js";import{E as $e}from"./error-boundary-Kj4QesDI.js";import{I as _e,u as Pe}from"./use-connection-DwuFVoxD.js";import{T as Ke,S as We}from"./switch-jY_WtmSF.js";import{C as Re}from"./checkbox-DAye6Bhs.js";import{c as K,B as J}from"./button-dzqjSoP9.js";import{i as He}from"./ArrowLeft-BwQg_SOY.js";import{C as Xe}from"./collection-search-B8kQUh1o.js";import{I as we}from"./input-Dos1YqM9.js";import{s as Ye}from"./Plus-mxlUVGel.js";import{i as Ze}from"./X-BXO-lbAK.js";import{b as et,a as tt}from"./use-gateway-C48kcbNv.js";import{u as st,a as nt}from"./use-connection-resources-6iOIsQA9.js";import{a as ce,c as ae,b as de,T as me,i as Te}from"./tooltip-wl_T0hkj.js";import{a as ot}from"./Copy01-D2K_Muqy.js";import{i as lt}from"./CpuChip02-C_MNm5X3.js";import{i as ze}from"./InfoCircle-COZlVleH.js";import{i as Ce}from"./Loading01-C4j07Rkx.js";import{F as ie,a as rt,b as fe,d as xe,f as he,c as Ae}from"./form-DNs0FRpn.js";import{S as Ee,a as De,b as Fe,c as Ve,d as ue}from"./select-Bd0A4qyi.js";import{R as it}from"./resource-tabs-C7YApwd6.js";import{s as ct}from"./slugify-CEUa2lfQ.js";import{P as at}from"./pin-to-sidebar-button-DFstuxz9.js";import{a as dt,V as mt,b as ut}from"./layout-C2pQBqt8.js";import{f as ft}from"./formatDistanceToNow-ctvTO9qt.js";import"./ChevronDown-BjyTHawB.js";import"./badge-DC5bHjau.js";import"./use-organization-settings-0ztRQ3i7.js";const xt=T.memo(function(e){const s=U.c(20),{connection:o,isSelected:d,hasItemsEnabled:l,activeItemsCount:f,totalItemsCount:x,onSelect:a,onToggle:r}=e,i=d?"bg-accent/50":"hover:bg-muted/50";let m;s[0]!==i?(m=K("flex items-center gap-3 p-2 rounded-lg transition-colors will-change-auto",i),s[0]=i,s[1]=m):m=s[1];let c;s[2]!==o.icon||s[3]!==o.title?(c=t.jsx(_e,{icon:o.icon,name:o.title,size:"xs"}),s[2]=o.icon,s[3]=o.title,s[4]=c):c=s[4];let j;s[5]!==o.title?(j=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:o.title})}),s[5]=o.title,s[6]=j):j=s[6];let h;s[7]!==a||s[8]!==c||s[9]!==j?(h=t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:a,children:[c,j]}),s[7]=a,s[8]=c,s[9]=j,s[10]=h):h=s[10];let p;s[11]!==f||s[12]!==l||s[13]!==r||s[14]!==x?(p=x>0&&t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[f,"/",x]}),t.jsx(Re,{checked:l,onCheckedChange:r,onClick:pt})]}),s[11]=f,s[12]=l,s[13]=r,s[14]=x,s[15]=p):p=s[15];let b;return s[16]!==m||s[17]!==h||s[18]!==p?(b=t.jsxs("div",{className:m,children:[h,p]}),s[16]=m,s[17]=h,s[18]=p,s[19]=b):b=s[19],b}),ht=T.memo(function(e){const s=U.c(18),{connectionId:o,item:d,isSelected:l,onToggle:f}=e,x=`item-${o}-${d.id}`,a=l?"text-foreground":"text-muted-foreground";let r;s[0]!==a?(r=K("text-sm font-medium",a),s[0]=a,s[1]=r):r=s[1];let i;s[2]!==d.name||s[3]!==r?(i=t.jsx("div",{className:"flex items-center gap-2 mb-1",children:t.jsx("span",{className:r,children:d.name})}),s[2]=d.name,s[3]=r,s[4]=i):i=s[4];let m;s[5]!==d.description?(m=d.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:d.description}),s[5]=d.description,s[6]=m):m=s[6];let c;s[7]!==i||s[8]!==m?(c=t.jsxs("div",{className:"flex-1 min-w-0",children:[i,m]}),s[7]=i,s[8]=m,s[9]=c):c=s[9];const j=`item-${o}-${d.id}`;let h;s[10]!==l||s[11]!==f||s[12]!==j?(h=t.jsx("div",{className:"flex items-center shrink-0",children:t.jsx(Re,{id:j,checked:l,onCheckedChange:f,onClick:gt})}),s[10]=l,s[11]=f,s[12]=j,s[13]=h):h=s[13];let p;return s[14]!==x||s[15]!==c||s[16]!==h?(p=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:[c,h]}),s[14]=x,s[15]=c,s[16]=h,s[17]=p):p=s[17],p});function Ge({itemSet:n,onItemSetChange:e,getItems:s,itemLabel:o,emptyItemsMessage:d,extraContent:l}){const[f,x]=T.useState(""),a=T.useDeferredValue(f),[r,i]=T.useState("all"),[m,c]=T.useState(!1),j=T.useRef(new Set(Object.keys(n))),h=Pe({searchTerm:a.trim()||void 0}),p=j.current,b=[...p.values()].map(u=>h.find(C=>C.id===u)).filter(u=>u!==void 0),S=h.filter(u=>!p.has(u.id)),w=[...b,...S],g=u=>{const C=n[u];return C!==void 0&&C.length>0},y=w.filter(u=>{if(r==="all")return!0;const C=g(u.id);return r==="selected"?C:r==="unselected"?!C:!0}),[v,_]=T.useState(w[0]?.id??null),N=v?w.find(u=>u.id===v)??null:null,D=N?s(N):[],A=(u,C)=>n[u]?.includes(C)??!1,B=(u,C)=>{const k=n[u]??[],P=k.includes(C),F={...n};if(P){const R=k.filter(z=>z!==C);R.length===0?delete F[u]:F[u]=R}else F[u]=[...k,C];e(F)},q=u=>{const C=w.find(V=>V.id===u);if(!C)return;const k=s(C);if(k.length===0)return;const P=n[u]??[],F=k.map(V=>V.id),R=P.length>0&&F.every(V=>P.includes(V)),z={...n};R?delete z[u]:(z[u]=F,_(u)),e(z)},M=u=>{_(u),c(!0)},G=()=>{c(!1)};return t.jsxs("div",{className:"flex h-full",children:[t.jsxs("div",{className:K("w-full md:w-80 border-r border-border flex flex-col",m&&"hidden md:flex"),children:[t.jsx(Xe,{value:f,onChange:x,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:K("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",r==="all"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"All"}),t.jsx("button",{onClick:()=>i("selected"),className:K("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",r==="selected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Selected"}),t.jsx("button",{onClick:()=>i("unselected"),className:K("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",r==="unselected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Unselected"})]}),t.jsx("div",{className:"flex-1 overflow-auto",children:y.length===0?t.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:f?"No connections found":r==="selected"?"No servers selected":r==="unselected"?"No unselected servers":"No connections available"}):t.jsx("div",{className:"p-2 space-y-1",children:y.map(u=>{const k=s(u).length,P=n[u.id]?.length??0;return t.jsx(xt,{connection:u,isSelected:v===u.id,hasItemsEnabled:g(u.id),activeItemsCount:P,totalItemsCount:k,onSelect:()=>M(u.id),onToggle:()=>q(u.id)},u.id)})})})]}),t.jsx("div",{className:K("flex-1 flex-col",m?"flex":"hidden md:flex"),children:N?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(J,{variant:"ghost",size:"sm",onClick:G,className:"h-8 w-8 p-0 shrink-0",children:t.jsx(He,{size:20})}),t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[t.jsx(_e,{icon:N.icon,name:N.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:N.title}),N.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:N.description})]})]})]}),l,t.jsx("div",{className:"flex-1 overflow-auto p-4",children:D.length===0?t.jsx("div",{className:"text-sm text-muted-foreground text-center py-8",children:d||`This connection has no ${o} available`}):t.jsx("div",{className:"space-y-2",children:D.map(u=>t.jsx(ht,{connectionId:N.id,item:u,isSelected:A(N.id,u.id),onToggle:()=>B(N.id,u.id)},u.id))})})]}):t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:["Select a connection to view its ",o]})})})]})}function pt(n){return n.stopPropagation()}function gt(n){return n.stopPropagation()}function jt(n){const e=U.c(6),{promptSet:s,onPromptSetChange:o,connectionPrompts:d}=n;let l;e[0]!==d?(l=a=>(d.get(a.id)??[]).map(bt),e[0]=d,e[1]=l):l=e[1];const f=l;let x;return e[2]!==f||e[3]!==o||e[4]!==s?(x=t.jsx(Ge,{itemSet:s,onItemSetChange:o,getItems:f,itemLabel:"prompts",emptyItemsMessage:"This connection has no prompts available"}),e[2]=f,e[3]=o,e[4]=s,e[5]=x):x=e[5],x}function bt(n){return{id:n.name,name:n.name,description:n.description}}function yt(n){return n.includes("*")}function vt(n){const e=U.c(27),{patterns:s,onAddPattern:o,onRemovePattern:d}=n,[l,f]=T.useState("");let x;e[0]!==l||e[1]!==o||e[2]!==s?(x=()=>{const c=l.trim();c&&!s.includes(c)&&(o(c),f(""))},e[0]=l,e[1]=o,e[2]=s,e[3]=x):x=e[3];const a=x;let r;e[4]!==a?(r=c=>{c.key==="Enter"&&(c.preventDefault(),a())},e[4]=a,e[5]=r):r=e[5];const i=r;let m;if(e[6]!==a||e[7]!==i||e[8]!==l||e[9]!==d||e[10]!==s){const c=s.filter(yt);let j;e[12]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("code",{children:"*"}),e[12]=j):j=e[12];let h;e[13]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsxs("div",{className:"text-xs text-muted-foreground",children:["Add URI patterns to match multiple resources. Use ",j," for single segment and ",t.jsx("code",{children:"**"})," for multiple segments."]}),e[13]=h):h=e[13];let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=_=>f(_.target.value),e[14]=p):p=e[14];let b;e[15]!==i||e[16]!==l?(b=t.jsx(we,{value:l,onChange:p,onKeyDown:i,placeholder:"e.g., file:///**/*.ts or db://users/*",className:"flex-1 text-sm"}),e[15]=i,e[16]=l,e[17]=b):b=e[17];let S;e[18]!==l?(S=l.trim(),e[18]=l,e[19]=S):S=e[19];const w=!S;let g;e[20]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(Ye,{size:16}),e[20]=g):g=e[20];let y;e[21]!==a||e[22]!==w?(y=t.jsx(J,{type:"button",variant:"outline",size:"sm",onClick:a,disabled:w,children:g}),e[21]=a,e[22]=w,e[23]=y):y=e[23];let v;e[24]!==y||e[25]!==b?(v=t.jsxs("div",{className:"flex gap-2",children:[b,y]}),e[24]=y,e[25]=b,e[26]=v):v=e[26],m=t.jsxs("div",{className:"border-b border-border p-4 space-y-3",children:[h,v,c.length>0&&t.jsx("div",{className:"flex flex-wrap gap-2",children:c.map(_=>t.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-muted rounded-md text-xs",children:[t.jsx("code",{className:"text-foreground",children:_}),t.jsx("button",{type:"button",onClick:()=>d(_),className:"text-muted-foreground hover:text-foreground",children:t.jsx(Ze,{size:12})})]},_))})]}),e[6]=a,e[7]=i,e[8]=l,e[9]=d,e[10]=s,e[11]=m}else m=e[11];return m}function St(n){const e=U.c(23),{resourceSet:s,onResourceSetChange:o,connectionResources:d}=n,[l]=T.useState(null);let f;e[0]!==d?(f=g=>(d.get(g.id)??[]).map(Ct),e[0]=d,e[1]=f):f=e[1];const x=f;let a;e[2]!==o||e[3]!==s?(a=(g,y)=>{const v=s[g]??[];v.includes(y)||o({...s,[g]:[...v,y]})},e[2]=o,e[3]=s,e[4]=a):a=e[4];const r=a;let i;e[5]!==o||e[6]!==s?(i=(g,y)=>{const _=(s[g]??[]).filter(N=>N!==y);if(_.length===0){const N={...s};delete N[g],o(N)}else o({...s,[g]:_})},e[5]=o,e[6]=s,e[7]=i):i=e[7];const m=i;let c;e[8]!==o?(c=g=>{o(g)},e[8]=o,e[9]=c):c=e[9];const j=c;let h;e[10]!==s||e[11]!==l?(h=l?s[l]??[]:[],e[10]=s,e[11]=l,e[12]=h):h=e[12];const p=h;let b;e[13]!==r||e[14]!==m||e[15]!==l||e[16]!==p?(b=l?t.jsx(vt,{patterns:p,onAddPattern:g=>r(l,g),onRemovePattern:g=>m(l,g)}):null,e[13]=r,e[14]=m,e[15]=l,e[16]=p,e[17]=b):b=e[17];const S=b;let w;return e[18]!==S||e[19]!==x||e[20]!==j||e[21]!==s?(w=t.jsx("div",{className:"h-full",children:t.jsx(Ge,{itemSet:s,onItemSetChange:j,getItems:x,itemLabel:"resources",emptyItemsMessage:"This connection has no resources available",extraContent:S})}),e[18]=S,e[19]=x,e[20]=j,e[21]=s,e[22]=w):w=e[22],w}function Ct(n){return{id:n.uri,name:n.name||n.uri,description:n.description||n.uri}}function _t(n){const s=new TextEncoder().encode(n),o=Array.from(s,d=>String.fromCharCode(d)).join("");return btoa(o)}function wt(n){const e=U.c(52),{serverName:s,gatewayUrl:o}=n,[d,l]=T.useState(!1),[f,x]=T.useState(null),a=ct(s);let r,i,m,c;if(e[0]!==o||e[1]!==a){const Q={type:"http",url:o},L={[a]:Q};r=JSON.stringify(L,null,2);const W=X=>JSON.stringify({...Q,headers:{"x-mesh-client":X}},null,2),H=_t(W("Cursor"));i=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(a)}&config=${encodeURIComponent(H)}`;const pe=W("Claude Code");m=a;let $;e[6]===Symbol.for("react.memo_cache_sentinel")?($=/'/g,e[6]=$):$=e[6],c=pe.replace($,"'\\''"),e[0]=o,e[1]=a,e[2]=r,e[3]=i,e[4]=m,e[5]=c}else r=e[2],i=e[3],m=e[4],c=e[5];const j=`claude mcp add "${m}" --config '${c}'`;let h;e[7]!==r?(h=async()=>{await navigator.clipboard.writeText(r),l(!0),Ie.success("Configuration copied to clipboard"),setTimeout(()=>l(!1),2e3)},e[7]=r,e[8]=h):h=e[8];const p=h;let b;e[9]===Symbol.for("react.memo_cache_sentinel")?(b=async(Q,L)=>{await navigator.clipboard.writeText(Q),x(L),Ie.success(`${L} command copied`),setTimeout(()=>x(null),2e3)},e[9]=b):b=e[9];const S=b,w=Nt;let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mb-1",children:"Install in your IDE"})}),e[10]=g):g=e[10];let y;e[11]!==d?(y=d?t.jsx(Te,{size:14}):t.jsx(ot,{size:14}),e[11]=d,e[12]=y):y=e[12];let v;e[13]!==p||e[14]!==y?(v=t.jsx(de,{asChild:!0,children:t.jsx(J,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0 shrink-0",onClick:p,children:y})}),e[13]=p,e[14]=y,e[15]=v):v=e[15];let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(me,{children:"Copy configuration"}),e[16]=_):_=e[16];let N;e[17]!==v?(N=t.jsx("div",{className:"absolute top-2 right-2",children:t.jsx(ce,{children:t.jsxs(ae,{children:[v,_]})})}),e[17]=v,e[18]=N):N=e[18];let D;e[19]!==r||e[20]!==p?(D=t.jsx("pre",{className:"text-xs font-mono text-foreground overflow-auto max-h-40 whitespace-pre-wrap wrap-break-word cursor-pointer",onClick:p,children:r}),e[19]=r,e[20]=p,e[21]=D):D=e[21];let A;e[22]!==D||e[23]!==N?(A=t.jsxs("div",{className:"relative flex flex-col gap-2 p-3 bg-muted/50 rounded-lg",children:[N,D]}),e[22]=D,e[23]=N,e[24]=A):A=e[24];let B;e[25]!==i?(B=()=>w(i),e[25]=i,e[26]=B):B=e[26];let q,M;e[27]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx("img",{src:"/logos/cursor.svg",alt:"Cursor",className:"h-6 w-6",style:{filter:"brightness(0) saturate(100%) invert(11%) sepia(8%) saturate(785%) hue-rotate(1deg) brightness(95%) contrast(89%)"}}),M=t.jsx("span",{className:"text-sm font-medium",children:"Cursor"}),e[27]=q,e[28]=M):(q=e[27],M=e[28]);let G;e[29]!==B?(G=t.jsx(de,{asChild:!0,children:t.jsxs(J,{variant:"outline",className:"h-auto py-3 px-4 justify-center gap-2 flex-1 min-w-fit",onClick:B,children:[q,M]})}),e[29]=B,e[30]=G):G=e[30];let u;e[31]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(me,{children:"Add to Cursor"}),e[31]=u):u=e[31];let C;e[32]!==G?(C=t.jsx(ce,{children:t.jsxs(ae,{children:[G,u]})}),e[32]=G,e[33]=C):C=e[33];let k;e[34]!==j?(k=()=>S(j,"Claude"),e[34]=j,e[35]=k):k=e[35];let P,F;e[36]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx("img",{src:"/logos/Claude Code.svg",alt:"Claude Code",className:"h-6 w-6",style:{filter:"brightness(0) saturate(100%) invert(55%) sepia(31%) saturate(1264%) hue-rotate(331deg) brightness(92%) contrast(86%)"}}),F=t.jsx("span",{className:"text-sm font-medium",children:"Claude Code"}),e[36]=P,e[37]=F):(P=e[36],F=e[37]);let R;e[38]!==f?(R=f==="Claude"&&t.jsx(Te,{size:14,className:"ml-2 text-green-500"}),e[38]=f,e[39]=R):R=e[39];let z;e[40]!==k||e[41]!==R?(z=t.jsx(de,{asChild:!0,children:t.jsxs(J,{variant:"outline",className:"h-auto py-3 px-4 justify-center gap-2 flex-1 min-w-fit",onClick:k,children:[P,F,R]})}),e[40]=k,e[41]=R,e[42]=z):z=e[42];let V;e[43]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(me,{children:"Add to Claude Code"}),e[43]=V):V=e[43];let O;e[44]!==z?(O=t.jsx(ce,{children:t.jsxs(ae,{children:[z,V]})}),e[44]=z,e[45]=O):O=e[45];let E;e[46]!==C||e[47]!==O?(E=t.jsxs("div",{className:"flex flex-wrap gap-2",children:[C,O]}),e[46]=C,e[47]=O,e[48]=E):E=e[48];let re;return e[49]!==A||e[50]!==E?(re=t.jsxs("div",{className:"flex flex-col gap-4",children:[g,A,E]}),e[49]=A,e[50]=E,e[51]=re):re=e[51],re}function Nt(n){window.open(n,"_blank")}const It=Ue({title:Ne().min(1,"Name is required").max(255),description:Ne().nullable(),status:Se(["active","inactive"]),tool_selection_mode:Se(["inclusion","exclusion"]),tool_selection_strategy:Se(["passthrough","smart_tool_selection","code_execution"])});function Tt(n,e){const s={};for(const o of n.connections)if(o.selected_tools===null){const d=e.get(o.connection_id)??[];d.length>0&&(s[o.connection_id]=d)}else o.selected_tools.length>0&&(s[o.connection_id]=o.selected_tools);return s}function kt(n){const e={};for(const s of n.connections)s.selected_resources!==null&&s.selected_resources!==void 0&&s.selected_resources.length>0&&(e[s.connection_id]=s.selected_resources);return e}function $t(n){const e={};for(const s of n.connections)s.selected_prompts!==null&&s.selected_prompts!==void 0&&s.selected_prompts.length>0&&(e[s.connection_id]=s.selected_prompts);return e}function Pt(n,e,s,o){const d=new Set([...Object.keys(n),...Object.keys(e),...Object.keys(s)]);return Array.from(d).map(l=>{const f=n[l]??[],x=o.get(l)??[],a=x.length>0&&x.every(r=>f.includes(r));return{connection_id:l,selected_tools:f.length===0||a?null:f,selected_resources:e[l]??null,selected_prompts:s[l]??null}})}function Rt(n){const e=U.c(41),{form:s,gateway:o,icon:d}=n;let l;e[0]!==s?(l=s.watch("title")||"Gateway",e[0]=s,e[1]=l):l=e[1];let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(lt,{}),e[2]=f):f=e[2];let x;e[3]!==d||e[4]!==l?(x=t.jsx(_e,{icon:d,name:l,size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:f}),e[3]=d,e[4]=l,e[5]=x):x=e[5];let a;e[6]!==s.control?(a=t.jsx(ie,{control:s.control,name:"status",render:Ft}),e[6]=s.control,e[7]=a):a=e[7];let r;e[8]!==x||e[9]!==a?(r=t.jsxs("div",{className:"flex items-start justify-between",children:[x,a]}),e[8]=x,e[9]=a,e[10]=r):r=e[10];let i;e[11]!==s.control?(i=t.jsxs("div",{className:"flex flex-col",children:[t.jsx(ie,{control:s.control,name:"title",render:Dt}),t.jsx(ie,{control:s.control,name:"description",render:Et})]}),e[11]=s.control,e[12]=i):i=e[12];let m;e[13]!==r||e[14]!==i?(m=t.jsxs("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:[r,i]}),e[13]=r,e[14]=i,e[15]=m):m=e[15];let c;e[16]!==s.control?(c=t.jsxs("div",{className:"flex flex-col gap-4 p-5",children:[t.jsx(ie,{control:s.control,name:"tool_selection_mode",render:At}),t.jsx(ie,{control:s.control,name:"tool_selection_strategy",render:zt})]}),e[16]=s.control,e[17]=c):c=e[17];let j;e[18]!==m||e[19]!==c?(j=t.jsxs("div",{className:"flex flex-col",children:[m,c]}),e[18]=m,e[19]=c,e[20]=j):j=e[20];let h;e[21]!==s||e[22]!==j?(h=t.jsx("div",{className:"lg:border-r border-b lg:border-b-0 border-border overflow-auto",children:t.jsx(rt,{...s,children:j})}),e[21]=s,e[22]=j,e[23]=h):h=e[23];let p;e[24]!==o.id||e[25]!==o.title?(p=o.title||`gateway-${o.id.slice(0,8)}`,e[24]=o.id,e[25]=o.title,e[26]=p):p=e[26];const b=`${window.location.origin}/mcp/gateway/${o.id}`;let S;e[27]!==p||e[28]!==b?(S=t.jsx("div",{className:"p-5",children:t.jsx(wt,{serverName:p,gatewayUrl:b})}),e[27]=p,e[28]=b,e[29]=S):S=e[29];let w;e[30]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("span",{className:"flex-1 text-sm text-foreground",children:"Last Updated"}),e[30]=w):w=e[30];let g;e[31]!==o.updated_at?(g=o.updated_at?ft(new Date(o.updated_at),{addSuffix:!1}):"Unknown",e[31]=o.updated_at,e[32]=g):g=e[32];let y;e[33]!==g?(y=t.jsxs("div",{className:"flex items-center gap-4 p-5 border-t border-border",children:[w,t.jsx("span",{className:"text-muted-foreground uppercase text-xs",children:g})]}),e[33]=g,e[34]=y):y=e[34];let v;e[35]!==S||e[36]!==y?(v=t.jsxs("div",{className:"flex flex-col overflow-auto",children:[S,y]}),e[35]=S,e[36]=y,e[37]=v):v=e[37];let _;return e[38]!==h||e[39]!==v?(_=t.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[2fr_1fr] h-full",children:[h,v]}),e[38]=h,e[39]=v,e[40]=_):_=e[40],_}function zt(n){const{field:e}=n;return t.jsxs(fe,{children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsx(Ae,{className:"mb-0",children:"Gateway Strategy"}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ce,{children:t.jsxs(ae,{children:[t.jsx(de,{asChild:!0,children:t.jsx(J,{type:"button",variant:"ghost",size:"icon",className:"size-7","aria-label":"Gateway strategy help",children:t.jsx(ze,{size:14,className:"text-muted-foreground"})})}),t.jsx(me,{side:"left",className:"max-w-sm",children:t.jsxs("div",{className:"text-xs space-y-1",children:[t.jsxs("div",{children:[t.jsx("strong",{children:"Passthrough:"})," Pass tools through as-is (default)."]}),t.jsxs("div",{children:[t.jsx("strong",{children:"Smart Tool Selection:"})," ","Intelligent tool selection behavior."]}),t.jsxs("div",{children:[t.jsx("strong",{children:"Code Execution:"})," Code execution behavior."]})]})})]})}),t.jsxs(Ee,{value:e.value,onValueChange:e.onChange,children:[t.jsx(xe,{children:t.jsx(De,{className:"w-[180px]",children:t.jsx(Fe,{})})}),t.jsxs(Ve,{children:[t.jsx(ue,{value:"passthrough",children:"Passthrough"}),t.jsx(ue,{value:"smart_tool_selection",children:"Smart Tool Selection"}),t.jsx(ue,{value:"code_execution",children:"Code Execution"})]})]})]})]}),t.jsx(he,{})]})}function At(n){const{field:e}=n;return t.jsxs(fe,{children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsx(Ae,{className:"mb-0",children:"Selection Mode"}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ce,{children:t.jsxs(ae,{children:[t.jsx(de,{asChild:!0,children:t.jsx(J,{type:"button",variant:"ghost",size:"icon",className:"size-7","aria-label":"Selection mode help",children:t.jsx(ze,{size:14,className:"text-muted-foreground"})})}),t.jsx(me,{side:"left",className:"max-w-sm",children:t.jsxs("div",{className:"text-xs space-y-1",children:[t.jsxs("div",{children:[t.jsx("strong",{children:"Include:"})," Only selected items are exposed."]}),t.jsxs("div",{children:[t.jsx("strong",{children:"Exclude:"})," All items except selected ones are exposed."]})]})})]})}),t.jsxs(Ee,{value:e.value,onValueChange:e.onChange,children:[t.jsx(xe,{children:t.jsx(De,{className:"w-[180px]",children:t.jsx(Fe,{})})}),t.jsxs(Ve,{children:[t.jsx(ue,{value:"inclusion",children:"Include Selected"}),t.jsx(ue,{value:"exclusion",children:"Exclude Selected"})]})]})]})]}),t.jsx(he,{})]})}function Et(n){const{field:e}=n;return t.jsxs(fe,{className:"w-full space-y-0",children:[t.jsx(xe,{children:t.jsx(we,{...e,value:e.value||"",className:"h-auto text-base text-muted-foreground leading-6 px-0 border-transparent hover:border-input focus:border-input bg-transparent transition-all",placeholder:"Add a description..."})}),t.jsx(he,{})]})}function Dt(n){const{field:e}=n;return t.jsxs(fe,{className:"w-full space-y-0",children:[t.jsx(xe,{children:t.jsx(we,{...e,className:"h-auto text-lg! font-medium leading-7 px-0 border-transparent hover:border-input focus:border-input bg-transparent transition-all",placeholder:"Gateway Name"})}),t.jsx(he,{})]})}function Ft(n){const{field:e}=n;return t.jsxs(fe,{children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("span",{className:"text-sm text-muted-foreground",children:e.value==="active"?"Active":"Inactive"}),t.jsx(xe,{children:t.jsx(We,{checked:e.value==="active",onCheckedChange:s=>e.onChange(s?"active":"inactive")})})]}),t.jsx(he,{})]})}function Vt(n){const e=U.c(70),{gateway:s,gatewayId:o,requestedTabId:d}=n,f=Be().location.href,x=Le();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={from:"/$org/gateways/$gatewayId"},e[0]=a):a=e[0];const r=ke(a),i=tt();let m;e[1]===Symbol.for("react.memo_cache_sentinel")?(m={},e[1]=m):m=e[1];const c=Pe(m);let j;e[2]!==c?(j=c.map(Mt),e[2]=c,e[3]=j):j=e[3];const h=j,{promptsMap:p}=st(h),{resourcesMap:b}=nt(h);let S;if(e[4]!==c){S=new Map;for(const I of c)I.tools&&I.tools.length>0&&S.set(I.id,I.tools.map(Gt));e[4]=c,e[5]=S}else S=e[5];let w;e[6]!==S||e[7]!==s?(w=()=>Tt(s,S),e[6]=S,e[7]=s,e[8]=w):w=e[8];const[g,y]=T.useState(w);let v;e[9]!==s?(v=()=>kt(s),e[9]=s,e[10]=v):v=e[10];const[_,N]=T.useState(v);let D;e[11]!==s?(D=()=>$t(s),e[11]=s,e[12]=D):D=e[12];const[A,B]=T.useState(D),[q,M]=T.useState(!1);let G;e[13]===Symbol.for("react.memo_cache_sentinel")?(G=I=>{y(I),M(!0)},e[13]=G):G=e[13];const u=G;let C;e[14]===Symbol.for("react.memo_cache_sentinel")?(C=I=>{N(I),M(!0)},e[14]=C):C=e[14];const k=C;let P;e[15]===Symbol.for("react.memo_cache_sentinel")?(P=I=>{B(I),M(!0)},e[15]=P):P=e[15];const F=P;let R;e[16]===Symbol.for("react.memo_cache_sentinel")?(R=Je(It),e[16]=R):R=e[16];const z=s.tool_selection_mode??"inclusion",V=s.tool_selection_strategy??"passthrough";let O;e[17]!==s.description||e[18]!==s.status||e[19]!==s.title||e[20]!==z||e[21]!==V?(O={resolver:R,defaultValues:{title:s.title,description:s.description,status:s.status,tool_selection_mode:z,tool_selection_strategy:V}},e[17]=s.description,e[18]=s.status,e[19]=s.title,e[20]=z,e[21]=V,e[22]=O):O=e[22];const E=qe(O),Q=E.formState.isDirty||q;let L;e[23]!==i.update||e[24]!==S||e[25]!==E||e[26]!==o||e[27]!==A||e[28]!==_||e[29]!==g?(L=async()=>{const I=E.getValues(),ve=Pt(g,_,A,S);await i.update.mutateAsync({id:o,data:{title:I.title,description:I.description,status:I.status,tool_selection_mode:I.tool_selection_mode,tool_selection_strategy:I.tool_selection_strategy,connections:ve}}),E.reset(I),M(!1)},e[23]=i.update,e[24]=S,e[25]=E,e[26]=o,e[27]=A,e[28]=_,e[29]=g,e[30]=L):L=e[30];const W=L;let H;e[31]===Symbol.for("react.memo_cache_sentinel")?(H=[{id:"settings",label:"Settings"},{id:"tools",label:"Tools"},{id:"resources",label:"Resources"},{id:"prompts",label:"Prompts"}],e[31]=H):H=e[31];const pe=H,$=pe.some(I=>I.id===d)?d:"settings";let X;e[32]!==r?(X=I=>{r({search:ve=>({...ve,tab:I}),replace:!0})},e[32]=r,e[33]=X):X=e[33];const be=X;let Y;e[34]!==x.history?(Y=()=>x.history.back(),e[34]=x.history,e[35]=Y):Y=e[35];let Z;e[36]!==$||e[37]!==be?(Z=t.jsx(dt,{children:t.jsx(it,{tabs:pe,activeTab:$,onTabChange:be})}),e[36]=$,e[37]=be,e[38]=Z):Z=e[38];const ye=s.icon??"cpu_chip";let ee;e[39]!==s.title||e[40]!==ye||e[41]!==f?(ee=t.jsx(at,{title:s.title,url:f,icon:ye}),e[39]=s.title,e[40]=ye,e[41]=f,e[42]=ee):ee=e[42];let te;e[43]!==i.update.isPending||e[44]!==W||e[45]!==Q?(te=Q&&t.jsxs(J,{onClick:W,disabled:i.update.isPending,size:"sm",className:"h-7",children:[i.update.isPending&&t.jsx(Ce,{size:16,className:"mr-2 animate-spin"}),"Save Changes"]}),e[43]=i.update.isPending,e[44]=W,e[45]=Q,e[46]=te):te=e[46];let se;e[47]!==ee||e[48]!==te?(se=t.jsxs(mt,{children:[ee,te]}),e[47]=ee,e[48]=te,e[49]=se):se=e[49];let ge;e[50]===Symbol.for("react.memo_cache_sentinel")?(ge=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Ce,{size:32,className:"animate-spin text-muted-foreground"})}),e[50]=ge):ge=e[50];let ne;e[51]!==$||e[52]!==p||e[53]!==b||e[54]!==E||e[55]!==s||e[56]!==A||e[57]!==_||e[58]!==g?(ne=$==="settings"?t.jsx(Rt,{form:E,gateway:s,icon:s.icon}):$==="tools"?t.jsx(Ke,{toolSet:g,onToolSetChange:u}):$==="resources"?t.jsx(St,{resourceSet:_,onResourceSetChange:k,connectionResources:b}):$==="prompts"?t.jsx(jt,{promptSet:A,onPromptSetChange:F,connectionPrompts:p}):null,e[51]=$,e[52]=p,e[53]=b,e[54]=E,e[55]=s,e[56]=A,e[57]=_,e[58]=g,e[59]=ne):ne=e[59];let oe;e[60]!==ne?(oe=t.jsx(T.Suspense,{fallback:ge,children:ne}),e[60]=ne,e[61]=oe):oe=e[61];let le;e[62]!==$||e[63]!==oe?(le=t.jsx("div",{className:"flex h-full w-full bg-background overflow-hidden",children:t.jsx("div",{className:"flex-1 flex flex-col min-w-0 bg-background overflow-auto",children:t.jsx($e,{children:oe},$)})}),e[62]=$,e[63]=oe,e[64]=le):le=e[64];let je;return e[65]!==Y||e[66]!==Z||e[67]!==se||e[68]!==le?(je=t.jsxs(ut,{onBack:Y,children:[Z,se,le]}),e[65]=Y,e[66]=Z,e[67]=se,e[68]=le,e[69]=je):je=e[69],je}function Gt(n){return n.name}function Mt(n){return n.id}function Ot(){const n=U.c(10);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/$org/gateways/$gatewayId"},n[0]=e):e=n[0];const s=ke(e);let o;n[1]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org/gateways/$gatewayId"},n[1]=o):o=n[1];const{gatewayId:d,org:l}=Me(o);let f;n[2]===Symbol.for("react.memo_cache_sentinel")?(f={from:"/shell/$org/gateways/$gatewayId"},n[2]=f):f=n[2];const a=Oe(f).tab||"settings",r=et(d);if(!r){let m;return n[3]!==s||n[4]!==l?(m=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Qe,{title:"Gateway not found",description:"This gateway may have been deleted or you may not have access.",actions:t.jsx(J,{variant:"outline",onClick:()=>s({to:"/$org/gateways",params:{org:l}}),children:"Back to gateways"})})}),n[3]=s,n[4]=l,n[5]=m):m=n[5],m}let i;return n[6]!==r||n[7]!==d||n[8]!==a?(i=t.jsx(Vt,{gateway:r,gatewayId:d,requestedTabId:a}),n[6]=r,n[7]=d,n[8]=a,n[9]=i):i=n[9],i}function Ut(){const n=U.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx($e,{children:t.jsx(T.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(Ce,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Ot,{})})}),n[0]=e):e=n[0],e}function js(){const n=U.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ut,{}),n[0]=e):e=n[0],e}export{js as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as te,j as t,r as se,f as ae,t as re}from"./index
|
|
1
|
+
import{c as te,j as t,r as se,f as ae,t as re}from"./index--kROx8O6.js";import{C as ie}from"./collection-header-BmMDhAGN.js";import{C as ne}from"./collection-page-Cn_-fCfu.js";import{C as le}from"./collection-search-B8kQUh1o.js";import{C as ce}from"./collection-table-wrapper-BxibriYd.js";import{C as de}from"./connection-card-DJnmbeP6.js";import{E as q}from"./SearchMd-COBfbXbx.js";import{E as me}from"./error-boundary-Kj4QesDI.js";import{u as ue,I as ge}from"./use-connection-DwuFVoxD.js";import{a as pe,u as he}from"./use-gateway-C48kcbNv.js";import{u as fe,s as Q}from"./use-list-state-DC-EnrYi.js";import{u as xe}from"./tooltip-wl_T0hkj.js";import{c as ye,b as we,d as je,A as Ce,e as Ne,g as De,a as Se,f as ve}from"./alert-dialog-P1n_1JT7.js";import{B as oe}from"./badge-DC5bHjau.js";import{B as J}from"./button-dzqjSoP9.js";import{b as U,D as X,a as Y,d as B}from"./dropdown-menu-6B5tpY1h.js";import{i as y}from"./CpuChip02-C_MNm5X3.js";import{i as Z}from"./DotsVertical-D0NEibaO.js";import{i as be}from"./Loading01-C4j07Rkx.js";import{s as ee}from"./Trash01-CyKI-_BM.js";import"./collection-display-button-DuYSBdla.js";import"./view-mode-toggle-D13jhPxd.js";import"./input-Dos1YqM9.js";import"./card-C7renjvY.js";import"./use-mobile-Bmxp2FgH.js";function ke(e,a){switch(a.type){case"delete":return{mode:"deleting",gateway:a.gateway};case"close":return{mode:"idle"}}}function _e(){const e=te.c(68),{org:a}=xe(),r=ae();let w;e[0]!==a.slug?(w={namespace:a.slug,resource:"gateways"},e[0]=a.slug,e[1]=w):w=e[1];const s=fe(w),i=pe(),x=he(s);let j;e[2]===Symbol.for("react.memo_cache_sentinel")?(j={},e[2]=j):j=e[2];const R=ue(j);let C;e[3]===Symbol.for("react.memo_cache_sentinel")?(C={mode:"idle"},e[3]=C):C=e[3];const[n,N]=se.useReducer(ke,C);let D;e[4]!==i.create||e[5]!==R.length||e[6]!==r||e[7]!==a.slug?(D=async()=>{if(R.length===0){re.error("Create at least one MCP connection first");return}const o=await i.create.mutateAsync({title:"New Gateway",description:"Gateways let you securely expose integrated tools to the outside world.",status:"active",tool_selection_strategy:"passthrough",tool_selection_mode:"inclusion",connections:[]});r({to:"/$org/gateways/$gatewayId",params:{org:a.slug,gatewayId:o.id}})},e[4]=i.create,e[5]=R.length,e[6]=r,e[7]=a.slug,e[8]=D):D=e[8];const T=D;let S;e[9]!==i.delete||e[10]!==n.gateway||e[11]!==n.mode?(S=async()=>{if(n.mode!=="deleting")return;const o=n.gateway.id;N({type:"close"});try{await i.delete.mutateAsync(o)}catch{}},e[9]=i.delete,e[10]=n.gateway,e[11]=n.mode,e[12]=S):S=e[12];const O=S;let v,b,k,_,M,I;e[13]===Symbol.for("react.memo_cache_sentinel")?(b={id:"icon",header:"",render:Be,cellClassName:"w-16 shrink-0",wrap:!0},k={id:"title",header:"Name",render:Ke,cellClassName:"w-48 min-w-0 shrink-0",sortable:!0},_={id:"description",header:"Description",render:Ge,cellClassName:"flex-1 min-w-0",wrap:!0,sortable:!0},M={id:"mode",header:"Mode",accessor:Ee,cellClassName:"w-[100px]"},I={id:"connections",header:"Connections",render:Ae,cellClassName:"w-24 shrink-0"},v={id:"status",header:"Status",render:ze,cellClassName:"w-24 shrink-0",sortable:!0},e[13]=v,e[14]=b,e[15]=k,e[16]=_,e[17]=M,e[18]=I):(v=e[13],b=e[14],k=e[15],_=e[16],M=e[17],I=e[18]);let P;e[19]!==r||e[20]!==a.slug?(P=[b,k,_,M,I,v,{id:"actions",header:"",render:o=>t.jsxs(U,{children:[t.jsx(X,{asChild:!0,children:t.jsx(J,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:$e,children:t.jsx(Z,{size:20})})}),t.jsxs(Y,{align:"end",onClick:Pe,children:[t.jsxs(B,{onClick:l=>{l.stopPropagation(),r({to:"/$org/gateways/$gatewayId",params:{org:a.slug,gatewayId:o.id}})},children:[t.jsx(Q,{size:16}),"Inspect"]}),t.jsxs(B,{variant:"destructive",onClick:l=>{l.stopPropagation(),N({type:"delete",gateway:o})},children:[t.jsx(ee,{size:16}),"Delete"]})]})]}),cellClassName:"w-12 shrink-0"}],e[19]=r,e[20]=a.slug,e[21]=P):P=e[21];const V=P,H=i.create.isPending?"Creating...":"Create MCP Gateway";let $;e[22]!==i.create.isPending||e[23]!==T||e[24]!==H?($=t.jsx(J,{onClick:T,size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",disabled:i.create.isPending,children:H}),e[22]=i.create.isPending,e[23]=T,e[24]=H,e[25]=$):$=e[25];const L=$,F=n.mode==="deleting";let z;e[26]===Symbol.for("react.memo_cache_sentinel")?(z=o=>!o&&N({type:"close"}),e[26]=z):z=e[26];let A;e[27]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(ye,{children:"Delete Gateway?"}),e[27]=A):A=e[27];const W=n.mode==="deleting"&&n.gateway.title;let c;e[28]!==W?(c=t.jsxs(we,{children:[A,t.jsxs(je,{children:["This action cannot be undone. This will permanently delete"," ",t.jsx("span",{className:"font-medium text-foreground",children:W}),"."]})]}),e[28]=W,e[29]=c):c=e[29];let E;e[30]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(Ce,{children:"Cancel"}),e[30]=E):E=e[30];let d;e[31]!==O?(d=t.jsxs(Ne,{children:[E,t.jsx(De,{onClick:O,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[31]=O,e[32]=d):d=e[32];let m;e[33]!==c||e[34]!==d?(m=t.jsxs(Se,{children:[c,d]}),e[33]=c,e[34]=d,e[35]=m):m=e[35];let u;e[36]!==F||e[37]!==m?(u=t.jsx(ve,{open:F,onOpenChange:z,children:m}),e[36]=F,e[37]=m,e[38]=u):u=e[38];let G;e[39]===Symbol.for("react.memo_cache_sentinel")?(G=[{id:"title",label:"Name"},{id:"description",label:"Description"},{id:"status",label:"Status"}],e[39]=G):G=e[39];let g;e[40]!==L||e[41]!==s.handleSort||e[42]!==s.setViewMode||e[43]!==s.sortDirection||e[44]!==s.sortKey||e[45]!==s.viewMode?(g=t.jsx(ie,{title:"MCP Gateways",viewMode:s.viewMode,onViewModeChange:s.setViewMode,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,sortOptions:G,ctaButton:L}),e[40]=L,e[41]=s.handleSort,e[42]=s.setViewMode,e[43]=s.sortDirection,e[44]=s.sortKey,e[45]=s.viewMode,e[46]=g):g=e[46];let p;e[47]!==s?(p=o=>{o.key==="Escape"&&(s.setSearch(""),o.target.blur())},e[47]=s,e[48]=p):p=e[48];let h;e[49]!==s.search||e[50]!==s.setSearch||e[51]!==p?(h=t.jsx(le,{value:s.search,onChange:s.setSearch,placeholder:"Search for a gateway...",onKeyDown:p}),e[49]=s.search,e[50]=s.setSearch,e[51]=p,e[52]=h):h=e[52];let f;e[53]!==V||e[54]!==x||e[55]!==s.handleSort||e[56]!==s.search||e[57]!==s.sortDirection||e[58]!==s.sortKey||e[59]!==s.viewMode||e[60]!==r||e[61]!==a.slug?(f=s.viewMode==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:x.length===0?t.jsx(q,{image:t.jsx(y,{size:36,className:"text-muted-foreground"}),title:s.search?"No gateways found":"No gateways yet",description:s.search?`No gateways match "${s.search}"`:"Create a gateway to aggregate tools from multiple MCP connections."}):t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:x.map(o=>t.jsx(de,{connection:{id:o.id,title:o.title,description:o.description,icon:o.icon,status:o.status},fallbackIcon:t.jsx(y,{}),onClick:()=>r({to:"/$org/gateways/$gatewayId",params:{org:a.slug,gatewayId:o.id}}),footer:t.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[t.jsxs("span",{children:[o.connections.length," connection",o.connections.length!==1?"s":""]}),t.jsx("span",{children:"•"}),t.jsx("span",{children:o.tool_selection_mode==="exclusion"?"Exclude":"Include"})]}),headerActions:t.jsxs(U,{children:[t.jsx(X,{asChild:!0,children:t.jsx(J,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Ie,children:t.jsx(Z,{size:20})})}),t.jsxs(Y,{align:"end",onClick:Me,children:[t.jsxs(B,{onClick:l=>{l.stopPropagation(),r({to:"/$org/gateways/$gatewayId",params:{org:a.slug,gatewayId:o.id}})},children:[t.jsx(Q,{size:16}),"Inspect"]}),t.jsxs(B,{variant:"destructive",onClick:l=>{l.stopPropagation(),N({type:"delete",gateway:o})},children:[t.jsx(ee,{size:16}),"Delete"]})]})]})},o.id))})}):t.jsx(ce,{columns:V,data:x,isLoading:!1,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,onRowClick:o=>r({to:"/$org/gateways/$gatewayId",params:{org:a.slug,gatewayId:o.id}}),emptyState:s.search?t.jsx(q,{image:t.jsx(y,{size:36,className:"text-muted-foreground"}),title:"No gateways found",description:`No gateways match "${s.search}"`}):t.jsx(q,{image:t.jsx(y,{size:36,className:"text-muted-foreground"}),title:"No gateways yet",description:"Create a gateway to aggregate tools from multiple MCP connections."})}),e[53]=V,e[54]=x,e[55]=s.handleSort,e[56]=s.search,e[57]=s.sortDirection,e[58]=s.sortKey,e[59]=s.viewMode,e[60]=r,e[61]=a.slug,e[62]=f):f=e[62];let K;return e[63]!==u||e[64]!==g||e[65]!==h||e[66]!==f?(K=t.jsxs(ne,{children:[u,g,h,f]}),e[63]=u,e[64]=g,e[65]=h,e[66]=f,e[67]=K):K=e[67],K}function Me(e){return e.stopPropagation()}function Ie(e){return e.stopPropagation()}function Pe(e){return e.stopPropagation()}function $e(e){return e.stopPropagation()}function ze(e){return t.jsx(oe,{variant:e.status==="active"?"default":"outline",children:e.status})}function Ae(e){return t.jsx("span",{className:"text-sm text-muted-foreground",children:e.connections.length})}function Ee(e){return t.jsx(oe,{variant:"outline",className:"text-xs",children:e.tool_selection_mode==="exclusion"?"Exclude":"Include"})}function Ge(e){return t.jsx("span",{className:"text-sm text-foreground line-clamp-2",children:e.description||"—"})}function Ke(e){return t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.title})}function Be(e){return t.jsx(ge,{icon:e.icon,name:e.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(y,{size:16})})}function dt(){const e=te.c(1);let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(me,{children:t.jsx(se.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(be,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(_e,{})})}),e[0]=a):a=e[0],a}export{dt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,j as i,a as w,r as C,f as E}from"./index-IkrlX4J3.js";import{C as _}from"./card-CJ-1atZv.js";import{c as v,B as $}from"./button-DoEGRp1U.js";import{A as k}from"./avatar-CuTiSc9V.js";import{i as A}from"./AlertCircle-DoPcYOmu.js";import{s as O}from"./Plus-C--SWih9.js";import{I as L}from"./input-BiKrjh13.js";import{C as D}from"./create-organization-dialog-Dds34l1N.js";import"./alert-dialog-BTnJ6w_s.js";import"./form-9MqLiR_v.js";import"./spinner-BI2cvb0U.js";function F(t){const e=u.c(10),{children:n,className:l,onNavigate:s,showHoverRing:r}=t,x=r===void 0?!1:r;let a;e[0]!==s?(a=p=>{s&&s(p)},e[0]=s,e[1]=a):a=e[1];const m=a,d=s&&"cursor-pointer",c=x&&"hover:ring-2 hover:ring-primary";let o;e[2]!==l||e[3]!==d||e[4]!==c?(o=v("group transition-all flex flex-col gap-0",d,c,l),e[2]=l,e[3]=d,e[4]=c,e[5]=o):o=e[5];let g;return e[6]!==n||e[7]!==m||e[8]!==o?(g=i.jsx(_,{className:o,onClick:m,children:n}),e[6]=n,e[7]=m,e[8]=o,e[9]=g):g=e[9],g}function H(t){const e=u.c(7),{url:n,fallback:l,shape:s,size:r,objectFit:x,className:a}=t,m=s===void 0?"square":s,d=r===void 0?"lg":r,c=x===void 0?"contain":x;let o;return e[0]!==a||e[1]!==l||e[2]!==c||e[3]!==m||e[4]!==d||e[5]!==n?(o=i.jsx(k,{url:n,fallback:l,shape:m,size:d,objectFit:c,className:a}),e[0]=a,e[1]=l,e[2]=c,e[3]=m,e[4]=d,e[5]=n,e[6]=o):o=e[6],o}function R(t){const e=u.c(5),{children:n,className:l}=t;let s;e[0]!==l?(s=v("p-4 flex flex-col gap-4",l),e[0]=l,e[1]=s):s=e[1];let r;return e[2]!==n||e[3]!==s?(r=i.jsx("div",{className:s,children:n}),e[2]=n,e[3]=s,e[4]=r):r=e[4],r}function B(t){const e=u.c(5),{children:n,className:l}=t;let s;e[0]!==l?(s=v("font-medium truncate",l),e[0]=l,e[1]=s):s=e[1];let r;return e[2]!==n||e[3]!==s?(r=i.jsx("p",{className:s,children:n}),e[2]=n,e[3]=s,e[4]=r):r=e[4],r}function G(t){const e=u.c(5),{children:n,className:l}=t;let s;e[0]!==l?(s=v("text-sm text-muted-foreground truncate",l),e[0]=l,e[1]=s):s=e[1];let r;return e[2]!==n||e[3]!==s?(r=i.jsx("h3",{className:s,children:n}),e[2]=n,e[3]=s,e[4]=r):r=e[4],r}function q(t){const e=u.c(5),{children:n,className:l}=t;let s;e[0]!==l?(s=v("flex flex-col gap-[2px]",l),e[0]=l,e[1]=s):s=e[1];let r;return e[2]!==n||e[3]!==s?(r=i.jsx("div",{className:s,children:n}),e[2]=n,e[3]=s,e[4]=r):r=e[4],r}function I(t){const e=u.c(5),{children:n,className:l}=t;let s;e[0]!==l?(s=v("flex justify-between items-start",l),e[0]=l,e[1]=s):s=e[1];let r;return e[2]!==n||e[3]!==s?(r=i.jsx("div",{className:s,children:n}),e[2]=n,e[3]=s,e[4]=r):r=e[4],r}function M(t){const e=u.c(5),{children:n,className:l}=t;let s;e[0]!==l?(s=v("p-4 border-t border-border flex justify-between items-center",l),e[0]=l,e[1]=s):s=e[1];let r;return e[2]!==n||e[3]!==s?(r=i.jsx("div",{className:s,children:n}),e[2]=n,e[3]=s,e[4]=r):r=e[4],r}function Q(t){const e=u.c(5),{children:n,className:l}=t;let s;e[0]!==l?(s=v("flex items-center text-xs text-muted-foreground",l),e[0]=l,e[1]=s):s=e[1];let r;return e[2]!==n||e[3]!==s?(r=i.jsx("div",{className:s,children:n}),e[2]=n,e[3]=s,e[4]=r):r=e[4],r}function T(){const t=u.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx("div",{className:"flex justify-between items-start",children:i.jsx("div",{className:"h-12 w-12 bg-muted rounded-lg animate-pulse"})}),t[0]=e):e=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsxs("div",{className:"p-4 flex flex-col gap-4",children:[e,i.jsxs("div",{className:"flex flex-col gap-[2px]",children:[i.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg animate-pulse"}),i.jsx("div",{className:"h-4 w-40 bg-muted rounded-lg animate-pulse"})]})]}),t[1]=n):n=t[1];let l;return t[2]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsxs(_,{className:"group transition-colors flex flex-col",children:[n,i.jsxs("div",{className:"p-4 border-t border-border flex justify-between items-center",children:[i.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse"}),i.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"})]})]}),t[2]=l):l=t[2],l}const b=Object.assign(F,{Avatar:H,AvatarSection:I,Header:R,Title:B,Subtitle:G,Content:q,Footer:M,Badge:Q,Skeleton:T}),P={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8"},V={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8"},X={1:"@min-3xl:grid-cols-1",2:"@min-3xl:grid-cols-2",3:"@min-3xl:grid-cols-3",4:"@min-3xl:grid-cols-4",5:"@min-3xl:grid-cols-5",6:"@min-3xl:grid-cols-6",7:"@min-3xl:grid-cols-7",8:"@min-3xl:grid-cols-8"},J={1:"@min-6xl:grid-cols-1",2:"@min-6xl:grid-cols-2",3:"@min-6xl:grid-cols-3",4:"@min-6xl:grid-cols-4",5:"@min-6xl:grid-cols-5",6:"@min-6xl:grid-cols-6",7:"@min-6xl:grid-cols-7",8:"@min-6xl:grid-cols-8"},K={1:"@min-7xl:grid-cols-1",2:"@min-7xl:grid-cols-2",3:"@min-7xl:grid-cols-3",4:"@min-7xl:grid-cols-4",5:"@min-7xl:grid-cols-5",6:"@min-7xl:grid-cols-6",7:"@min-7xl:grid-cols-7",8:"@min-7xl:grid-cols-8"},U={1:"@min-8xl:grid-cols-1",2:"@min-8xl:grid-cols-2",3:"@min-8xl:grid-cols-3",4:"@min-8xl:grid-cols-4",5:"@min-8xl:grid-cols-5",6:"@min-8xl:grid-cols-6",7:"@min-8xl:grid-cols-7",8:"@min-8xl:grid-cols-8"};function z(t){const e=u.c(13),{children:n,columns:l,gap:s,className:r}=t;let x;e[0]!==l?(x=l===void 0?{sm:2,md:3,lg:4}:l,e[0]=l,e[1]=x):x=e[1];const a=x,d=P[s===void 0?4:s],c=a.sm&&V[a.sm],o=a.md&&X[a.md],g=a.lg&&J[a.lg],p=a.xl&&K[a.xl],j=a["2xl"]&&U[a["2xl"]];let h;e[2]!==r||e[3]!==d||e[4]!==c||e[5]!==o||e[6]!==g||e[7]!==p||e[8]!==j?(h=v("w-full grid",d,c,o,g,p,j,r),e[2]=r,e[3]=d,e[4]=c,e[5]=o,e[6]=g,e[7]=p,e[8]=j,e[9]=h):h=e[9];const N=h;let f;return e[10]!==n||e[11]!==N?(f=i.jsx("div",{className:N,children:n}),e[10]=n,e[11]=N,e[12]=f):f=e[12],f}function W(t){const e=u.c(9),{count:n,columns:l,gap:s,className:r}=t,x=n===void 0?8:n;let a;e[0]!==l?(a=l===void 0?{sm:2,md:3,lg:4}:l,e[0]=l,e[1]=a):a=e[1];const m=a,d=s===void 0?4:s;let c;e[2]!==x?(c=Array.from({length:x}).map(Y),e[2]=x,e[3]=c):c=e[3];let o;return e[4]!==r||e[5]!==m||e[6]!==d||e[7]!==c?(o=i.jsx(z,{columns:m,gap:d,className:r,children:c}),e[4]=r,e[5]=m,e[6]=d,e[7]=c,e[8]=o):o=e[8],o}function Y(t,e){return i.jsxs("div",{className:"bg-card hover:bg-accent transition-colors flex flex-col rounded-lg animate-pulse",children:[i.jsxs("div",{className:"p-4 flex flex-col gap-4",children:[i.jsx("div",{className:"h-12 w-12 bg-muted rounded-lg"}),i.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg"}),i.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg"})]}),i.jsxs("div",{className:"p-4 border-t border-border flex items-center",children:[i.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse"}),i.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"}),i.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"})]})]},e)}const S=Object.assign(z,{Skeleton:W});function Z(t){const e=u.c(14),{query:n}=t,{data:l}=w.useListOrganizations(),s=E();let r;e[0]!==l||e[1]!==n?(r=l?n?(()=>{const c=n.toLowerCase();return l.filter(o=>o.name.toLowerCase().includes(c)||o.slug.toLowerCase().includes(c))})():l:[],e[0]=l,e[1]=n,e[2]=r):r=e[2];const x=r;if(!l||l.length===0){let c;return e[3]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4 p-8",children:i.jsx("div",{className:"text-sm text-muted-foreground text-center",children:"No organizations yet. Create your first organization to get started."})}),e[3]=c):c=e[3],c}if(x.length===0){let c;return e[4]!==n?(c=i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4 p-8",children:i.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:['No organizations found matching "',n,'".']})}),e[4]=n,e[5]=c):c=e[5],c}let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a={sm:2,md:3,lg:4},e[6]=a):a=e[6];let m;if(e[7]!==x||e[8]!==s){let c;e[10]!==s?(c=o=>i.jsxs(b,{onNavigate:()=>s({to:"/$org",params:{org:o.slug}}),children:[i.jsxs(b.Header,{children:[i.jsx(b.AvatarSection,{children:i.jsx(b.Avatar,{url:o.logo||"",fallback:o.name,size:"lg",objectFit:"contain"})}),i.jsxs(b.Content,{children:[i.jsxs(b.Subtitle,{children:["@",o.slug]}),i.jsx(b.Title,{children:o.name})]})]}),i.jsx(b.Footer,{children:i.jsxs("div",{className:"text-xs text-muted-foreground",children:["Created:"," ",new Date(o.createdAt).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})]})})]},o.id),e[10]=s,e[11]=c):c=e[11],m=x.map(c),e[7]=x,e[8]=s,e[9]=m}else m=e[9];let d;return e[12]!==m?(d=i.jsx(S,{columns:a,children:m}),e[12]=m,e[13]=d):d=e[13],d}function ee(t){const e=u.c(3),{error:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx(A,{size:24,className:"text-destructive"}),e[0]=l):l=e[0];let s;return e[1]!==n.message?(s=i.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4 p-8",children:[l,i.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:["Error loading organizations: ",n.message]})]}),e[1]=n.message,e[2]=s):s=e[2],s}function te(){const t=u.c(20),{error:e,isPending:n}=w.useListOrganizations(),[l,s]=C.useState(""),[r,x]=C.useState(!1),a=C.useDeferredValue(l);if(n){let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=i.jsx("div",{className:"flex items-center justify-between mb-8",children:i.jsx("h2",{className:"text-xl font-medium",children:"My organizations"})}),t[0]=f):f=t[0];let y;return t[1]===Symbol.for("react.memo_cache_sentinel")?(y=i.jsxs("div",{className:"max-w-6xl mx-auto p-8",children:[f,i.jsx("div",{className:"@container",children:i.jsx(S.Skeleton,{count:8,columns:{sm:2,md:3,lg:4}})})]}),t[1]=y):y=t[1],y}if(e){let f;return t[2]!==e?(f=i.jsx(ee,{error:e}),t[2]=e,t[3]=f):f=t[3],f}let m;t[4]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx("h2",{className:"text-xl font-medium",children:"My organizations"}),t[4]=m):m=t[4];let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=f=>s(f.target.value),t[5]=d):d=t[5];let c;t[6]!==l?(c=i.jsx(L,{className:"max-w-xs",placeholder:"Search",value:l,onChange:d}),t[6]=l,t[7]=c):c=t[7];let o;t[8]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsxs($,{variant:"default",onClick:()=>x(!0),children:[i.jsx(O,{size:16}),i.jsx("span",{children:"New organization"})]}),t[8]=o):o=t[8];let g;t[9]!==c?(g=i.jsxs("div",{className:"flex items-center justify-between mb-8",children:[m,i.jsxs("div",{className:"flex items-center gap-2",children:[c,o]})]}),t[9]=c,t[10]=g):g=t[10];let p;t[11]===Symbol.for("react.memo_cache_sentinel")?(p=i.jsx(S.Skeleton,{count:8,columns:{sm:2,md:3,lg:4}}),t[11]=p):p=t[11];let j;t[12]!==a?(j=i.jsx("div",{className:"@container",children:i.jsx(C.Suspense,{fallback:p,children:i.jsx(Z,{query:a})})}),t[12]=a,t[13]=j):j=t[13];let h;t[14]!==r?(h=i.jsx(D,{open:r,onOpenChange:x}),t[14]=r,t[15]=h):h=t[15];let N;return t[16]!==g||t[17]!==j||t[18]!==h?(N=i.jsxs("div",{className:"max-w-6xl mx-auto p-8",children:[g,j,h]}),t[16]=g,t[17]=j,t[18]=h,t[19]=N):N=t[19],N}function fe(){const t=u.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx("div",{className:"min-h-full",children:i.jsx(te,{})}),t[0]=e):e=t[0],e}export{fe as default};
|
|
1
|
+
import{c as u,j as i,a as w,r as C,f as E}from"./index--kROx8O6.js";import{C as _}from"./card-C7renjvY.js";import{c as v,B as $}from"./button-dzqjSoP9.js";import{A as k}from"./avatar-_GsuhjwG.js";import{i as A}from"./AlertCircle-BMr3-fpA.js";import{s as O}from"./Plus-mxlUVGel.js";import{I as L}from"./input-Dos1YqM9.js";import{C as D}from"./create-organization-dialog-C1_fICTk.js";import"./alert-dialog-P1n_1JT7.js";import"./form-DNs0FRpn.js";import"./spinner-DssEQupg.js";function F(t){const e=u.c(10),{children:n,className:l,onNavigate:s,showHoverRing:r}=t,x=r===void 0?!1:r;let a;e[0]!==s?(a=p=>{s&&s(p)},e[0]=s,e[1]=a):a=e[1];const m=a,d=s&&"cursor-pointer",c=x&&"hover:ring-2 hover:ring-primary";let o;e[2]!==l||e[3]!==d||e[4]!==c?(o=v("group transition-all flex flex-col gap-0",d,c,l),e[2]=l,e[3]=d,e[4]=c,e[5]=o):o=e[5];let g;return e[6]!==n||e[7]!==m||e[8]!==o?(g=i.jsx(_,{className:o,onClick:m,children:n}),e[6]=n,e[7]=m,e[8]=o,e[9]=g):g=e[9],g}function H(t){const e=u.c(7),{url:n,fallback:l,shape:s,size:r,objectFit:x,className:a}=t,m=s===void 0?"square":s,d=r===void 0?"lg":r,c=x===void 0?"contain":x;let o;return e[0]!==a||e[1]!==l||e[2]!==c||e[3]!==m||e[4]!==d||e[5]!==n?(o=i.jsx(k,{url:n,fallback:l,shape:m,size:d,objectFit:c,className:a}),e[0]=a,e[1]=l,e[2]=c,e[3]=m,e[4]=d,e[5]=n,e[6]=o):o=e[6],o}function R(t){const e=u.c(5),{children:n,className:l}=t;let s;e[0]!==l?(s=v("p-4 flex flex-col gap-4",l),e[0]=l,e[1]=s):s=e[1];let r;return e[2]!==n||e[3]!==s?(r=i.jsx("div",{className:s,children:n}),e[2]=n,e[3]=s,e[4]=r):r=e[4],r}function B(t){const e=u.c(5),{children:n,className:l}=t;let s;e[0]!==l?(s=v("font-medium truncate",l),e[0]=l,e[1]=s):s=e[1];let r;return e[2]!==n||e[3]!==s?(r=i.jsx("p",{className:s,children:n}),e[2]=n,e[3]=s,e[4]=r):r=e[4],r}function G(t){const e=u.c(5),{children:n,className:l}=t;let s;e[0]!==l?(s=v("text-sm text-muted-foreground truncate",l),e[0]=l,e[1]=s):s=e[1];let r;return e[2]!==n||e[3]!==s?(r=i.jsx("h3",{className:s,children:n}),e[2]=n,e[3]=s,e[4]=r):r=e[4],r}function q(t){const e=u.c(5),{children:n,className:l}=t;let s;e[0]!==l?(s=v("flex flex-col gap-[2px]",l),e[0]=l,e[1]=s):s=e[1];let r;return e[2]!==n||e[3]!==s?(r=i.jsx("div",{className:s,children:n}),e[2]=n,e[3]=s,e[4]=r):r=e[4],r}function I(t){const e=u.c(5),{children:n,className:l}=t;let s;e[0]!==l?(s=v("flex justify-between items-start",l),e[0]=l,e[1]=s):s=e[1];let r;return e[2]!==n||e[3]!==s?(r=i.jsx("div",{className:s,children:n}),e[2]=n,e[3]=s,e[4]=r):r=e[4],r}function M(t){const e=u.c(5),{children:n,className:l}=t;let s;e[0]!==l?(s=v("p-4 border-t border-border flex justify-between items-center",l),e[0]=l,e[1]=s):s=e[1];let r;return e[2]!==n||e[3]!==s?(r=i.jsx("div",{className:s,children:n}),e[2]=n,e[3]=s,e[4]=r):r=e[4],r}function Q(t){const e=u.c(5),{children:n,className:l}=t;let s;e[0]!==l?(s=v("flex items-center text-xs text-muted-foreground",l),e[0]=l,e[1]=s):s=e[1];let r;return e[2]!==n||e[3]!==s?(r=i.jsx("div",{className:s,children:n}),e[2]=n,e[3]=s,e[4]=r):r=e[4],r}function T(){const t=u.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx("div",{className:"flex justify-between items-start",children:i.jsx("div",{className:"h-12 w-12 bg-muted rounded-lg animate-pulse"})}),t[0]=e):e=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsxs("div",{className:"p-4 flex flex-col gap-4",children:[e,i.jsxs("div",{className:"flex flex-col gap-[2px]",children:[i.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg animate-pulse"}),i.jsx("div",{className:"h-4 w-40 bg-muted rounded-lg animate-pulse"})]})]}),t[1]=n):n=t[1];let l;return t[2]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsxs(_,{className:"group transition-colors flex flex-col",children:[n,i.jsxs("div",{className:"p-4 border-t border-border flex justify-between items-center",children:[i.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse"}),i.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"})]})]}),t[2]=l):l=t[2],l}const b=Object.assign(F,{Avatar:H,AvatarSection:I,Header:R,Title:B,Subtitle:G,Content:q,Footer:M,Badge:Q,Skeleton:T}),P={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8"},V={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8"},X={1:"@min-3xl:grid-cols-1",2:"@min-3xl:grid-cols-2",3:"@min-3xl:grid-cols-3",4:"@min-3xl:grid-cols-4",5:"@min-3xl:grid-cols-5",6:"@min-3xl:grid-cols-6",7:"@min-3xl:grid-cols-7",8:"@min-3xl:grid-cols-8"},J={1:"@min-6xl:grid-cols-1",2:"@min-6xl:grid-cols-2",3:"@min-6xl:grid-cols-3",4:"@min-6xl:grid-cols-4",5:"@min-6xl:grid-cols-5",6:"@min-6xl:grid-cols-6",7:"@min-6xl:grid-cols-7",8:"@min-6xl:grid-cols-8"},K={1:"@min-7xl:grid-cols-1",2:"@min-7xl:grid-cols-2",3:"@min-7xl:grid-cols-3",4:"@min-7xl:grid-cols-4",5:"@min-7xl:grid-cols-5",6:"@min-7xl:grid-cols-6",7:"@min-7xl:grid-cols-7",8:"@min-7xl:grid-cols-8"},U={1:"@min-8xl:grid-cols-1",2:"@min-8xl:grid-cols-2",3:"@min-8xl:grid-cols-3",4:"@min-8xl:grid-cols-4",5:"@min-8xl:grid-cols-5",6:"@min-8xl:grid-cols-6",7:"@min-8xl:grid-cols-7",8:"@min-8xl:grid-cols-8"};function z(t){const e=u.c(13),{children:n,columns:l,gap:s,className:r}=t;let x;e[0]!==l?(x=l===void 0?{sm:2,md:3,lg:4}:l,e[0]=l,e[1]=x):x=e[1];const a=x,d=P[s===void 0?4:s],c=a.sm&&V[a.sm],o=a.md&&X[a.md],g=a.lg&&J[a.lg],p=a.xl&&K[a.xl],j=a["2xl"]&&U[a["2xl"]];let h;e[2]!==r||e[3]!==d||e[4]!==c||e[5]!==o||e[6]!==g||e[7]!==p||e[8]!==j?(h=v("w-full grid",d,c,o,g,p,j,r),e[2]=r,e[3]=d,e[4]=c,e[5]=o,e[6]=g,e[7]=p,e[8]=j,e[9]=h):h=e[9];const N=h;let f;return e[10]!==n||e[11]!==N?(f=i.jsx("div",{className:N,children:n}),e[10]=n,e[11]=N,e[12]=f):f=e[12],f}function W(t){const e=u.c(9),{count:n,columns:l,gap:s,className:r}=t,x=n===void 0?8:n;let a;e[0]!==l?(a=l===void 0?{sm:2,md:3,lg:4}:l,e[0]=l,e[1]=a):a=e[1];const m=a,d=s===void 0?4:s;let c;e[2]!==x?(c=Array.from({length:x}).map(Y),e[2]=x,e[3]=c):c=e[3];let o;return e[4]!==r||e[5]!==m||e[6]!==d||e[7]!==c?(o=i.jsx(z,{columns:m,gap:d,className:r,children:c}),e[4]=r,e[5]=m,e[6]=d,e[7]=c,e[8]=o):o=e[8],o}function Y(t,e){return i.jsxs("div",{className:"bg-card hover:bg-accent transition-colors flex flex-col rounded-lg animate-pulse",children:[i.jsxs("div",{className:"p-4 flex flex-col gap-4",children:[i.jsx("div",{className:"h-12 w-12 bg-muted rounded-lg"}),i.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg"}),i.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg"})]}),i.jsxs("div",{className:"p-4 border-t border-border flex items-center",children:[i.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse"}),i.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"}),i.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"})]})]},e)}const S=Object.assign(z,{Skeleton:W});function Z(t){const e=u.c(14),{query:n}=t,{data:l}=w.useListOrganizations(),s=E();let r;e[0]!==l||e[1]!==n?(r=l?n?(()=>{const c=n.toLowerCase();return l.filter(o=>o.name.toLowerCase().includes(c)||o.slug.toLowerCase().includes(c))})():l:[],e[0]=l,e[1]=n,e[2]=r):r=e[2];const x=r;if(!l||l.length===0){let c;return e[3]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4 p-8",children:i.jsx("div",{className:"text-sm text-muted-foreground text-center",children:"No organizations yet. Create your first organization to get started."})}),e[3]=c):c=e[3],c}if(x.length===0){let c;return e[4]!==n?(c=i.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4 p-8",children:i.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:['No organizations found matching "',n,'".']})}),e[4]=n,e[5]=c):c=e[5],c}let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a={sm:2,md:3,lg:4},e[6]=a):a=e[6];let m;if(e[7]!==x||e[8]!==s){let c;e[10]!==s?(c=o=>i.jsxs(b,{onNavigate:()=>s({to:"/$org",params:{org:o.slug}}),children:[i.jsxs(b.Header,{children:[i.jsx(b.AvatarSection,{children:i.jsx(b.Avatar,{url:o.logo||"",fallback:o.name,size:"lg",objectFit:"contain"})}),i.jsxs(b.Content,{children:[i.jsxs(b.Subtitle,{children:["@",o.slug]}),i.jsx(b.Title,{children:o.name})]})]}),i.jsx(b.Footer,{children:i.jsxs("div",{className:"text-xs text-muted-foreground",children:["Created:"," ",new Date(o.createdAt).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})]})})]},o.id),e[10]=s,e[11]=c):c=e[11],m=x.map(c),e[7]=x,e[8]=s,e[9]=m}else m=e[9];let d;return e[12]!==m?(d=i.jsx(S,{columns:a,children:m}),e[12]=m,e[13]=d):d=e[13],d}function ee(t){const e=u.c(3),{error:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx(A,{size:24,className:"text-destructive"}),e[0]=l):l=e[0];let s;return e[1]!==n.message?(s=i.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4 p-8",children:[l,i.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:["Error loading organizations: ",n.message]})]}),e[1]=n.message,e[2]=s):s=e[2],s}function te(){const t=u.c(20),{error:e,isPending:n}=w.useListOrganizations(),[l,s]=C.useState(""),[r,x]=C.useState(!1),a=C.useDeferredValue(l);if(n){let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=i.jsx("div",{className:"flex items-center justify-between mb-8",children:i.jsx("h2",{className:"text-xl font-medium",children:"My organizations"})}),t[0]=f):f=t[0];let y;return t[1]===Symbol.for("react.memo_cache_sentinel")?(y=i.jsxs("div",{className:"max-w-6xl mx-auto p-8",children:[f,i.jsx("div",{className:"@container",children:i.jsx(S.Skeleton,{count:8,columns:{sm:2,md:3,lg:4}})})]}),t[1]=y):y=t[1],y}if(e){let f;return t[2]!==e?(f=i.jsx(ee,{error:e}),t[2]=e,t[3]=f):f=t[3],f}let m;t[4]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx("h2",{className:"text-xl font-medium",children:"My organizations"}),t[4]=m):m=t[4];let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=f=>s(f.target.value),t[5]=d):d=t[5];let c;t[6]!==l?(c=i.jsx(L,{className:"max-w-xs",placeholder:"Search",value:l,onChange:d}),t[6]=l,t[7]=c):c=t[7];let o;t[8]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsxs($,{variant:"default",onClick:()=>x(!0),children:[i.jsx(O,{size:16}),i.jsx("span",{children:"New organization"})]}),t[8]=o):o=t[8];let g;t[9]!==c?(g=i.jsxs("div",{className:"flex items-center justify-between mb-8",children:[m,i.jsxs("div",{className:"flex items-center gap-2",children:[c,o]})]}),t[9]=c,t[10]=g):g=t[10];let p;t[11]===Symbol.for("react.memo_cache_sentinel")?(p=i.jsx(S.Skeleton,{count:8,columns:{sm:2,md:3,lg:4}}),t[11]=p):p=t[11];let j;t[12]!==a?(j=i.jsx("div",{className:"@container",children:i.jsx(C.Suspense,{fallback:p,children:i.jsx(Z,{query:a})})}),t[12]=a,t[13]=j):j=t[13];let h;t[14]!==r?(h=i.jsx(D,{open:r,onOpenChange:x}),t[14]=r,t[15]=h):h=t[15];let N;return t[16]!==g||t[17]!==j||t[18]!==h?(N=i.jsxs("div",{className:"max-w-6xl mx-auto p-8",children:[g,j,h]}),t[16]=g,t[17]=j,t[18]=h,t[19]=N):N=t[19],N}function fe(){const t=u.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx("div",{className:"min-h-full",children:i.jsx(te,{})}),t[0]=e):e=t[0],e}export{fe as default};
|