autoglm-gui 1.3.0__py3-none-any.whl → 1.3.1__py3-none-any.whl
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.
- AutoGLM_GUI/api/__init__.py +8 -4
- AutoGLM_GUI/static/assets/{about-CrBXGOgB.js → about-Cj6QXqMf.js} +1 -1
- AutoGLM_GUI/static/assets/{chat-Di2fwu8V.js → chat-BJeomZgh.js} +1 -1
- AutoGLM_GUI/static/assets/{dialog-CHJSPLHJ.js → dialog-CxJlnjzH.js} +1 -1
- AutoGLM_GUI/static/assets/{index-9IaIXvyy.js → index-C_B-Arvf.js} +1 -1
- AutoGLM_GUI/static/assets/{index-Dt7cVkfR.js → index-CxJQuE4y.js} +2 -2
- AutoGLM_GUI/static/assets/{workflows-DHadKApI.js → workflows-BTiGCNI0.js} +1 -1
- AutoGLM_GUI/static/index.html +1 -1
- {autoglm_gui-1.3.0.dist-info → autoglm_gui-1.3.1.dist-info}/METADATA +86 -8
- {autoglm_gui-1.3.0.dist-info → autoglm_gui-1.3.1.dist-info}/RECORD +13 -13
- {autoglm_gui-1.3.0.dist-info → autoglm_gui-1.3.1.dist-info}/WHEEL +0 -0
- {autoglm_gui-1.3.0.dist-info → autoglm_gui-1.3.1.dist-info}/entry_points.txt +0 -0
- {autoglm_gui-1.3.0.dist-info → autoglm_gui-1.3.1.dist-info}/licenses/LICENSE +0 -0
AutoGLM_GUI/api/__init__.py
CHANGED
|
@@ -97,9 +97,9 @@ def create_app() -> FastAPI:
|
|
|
97
97
|
app.include_router(workflows.router)
|
|
98
98
|
app.include_router(dual_model.router)
|
|
99
99
|
|
|
100
|
-
# Mount
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
# Mount static files BEFORE MCP to ensure they have priority
|
|
101
|
+
# This is critical: FastAPI processes mounts in order, so static files
|
|
102
|
+
# must be mounted before the catch-all MCP mount
|
|
103
103
|
static_dir = _get_static_dir()
|
|
104
104
|
if static_dir is not None and static_dir.exists():
|
|
105
105
|
assets_dir = static_dir / "assets"
|
|
@@ -113,11 +113,15 @@ def create_app() -> FastAPI:
|
|
|
113
113
|
return FileResponse(file_path)
|
|
114
114
|
return FileResponse(static_dir / "index.html")
|
|
115
115
|
|
|
116
|
-
# Add catch-all route
|
|
116
|
+
# Add catch-all route for SPA (handles all non-API routes)
|
|
117
117
|
app.add_api_route(
|
|
118
118
|
"/{full_path:path}", serve_spa, methods=["GET"], include_in_schema=False
|
|
119
119
|
)
|
|
120
120
|
|
|
121
|
+
# Mount MCP server at root (mcp_app already has /mcp path prefix)
|
|
122
|
+
# This must be AFTER static files to avoid intercepting them
|
|
123
|
+
app.mount("/", mcp_app)
|
|
124
|
+
|
|
121
125
|
return app
|
|
122
126
|
|
|
123
127
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as o}from"./index-
|
|
1
|
+
import{j as o}from"./index-CxJQuE4y.js";function t(){return o.jsx("div",{className:"p-2",children:o.jsx("h3",{children:"About"})})}export{t as component};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Ie,j as a,u as Jr,r as w,e as Qt,B as Ae,f as Zr,R as Oe,g as cn,h as Qo,i as ua,P as Wt,k as rt,m as fa,n as Un,o as rr,p as Hn,q as Xs,s as yx,t as wx,v as Ex,w as Sx,x as Cx,S as $r,y as Qc,z as Nx,A as Ou,C as Tx,D as Jc,E as Zc,F as Rx,M as kx,G as Fu,H as Ax,I as Bu,J as Px,K as jx,L as Ix,N as Lx,O as Mx,Q as Dx,T as Ox,U as Fx,V as Bx,W as Ux,X as Wx,Y as Gx,Z as Hx,_ as Ys,$ as Vs,a0 as Ks,a1 as zx,l as qx,a2 as $x,a3 as Xx,a4 as Yx,a5 as Vx,a6 as Kx}from"./index-
|
|
1
|
+
import{c as Ie,j as a,u as Jr,r as w,e as Qt,B as Ae,f as Zr,R as Oe,g as cn,h as Qo,i as ua,P as Wt,k as rt,m as fa,n as Un,o as rr,p as Hn,q as Xs,s as yx,t as wx,v as Ex,w as Sx,x as Cx,S as $r,y as Qc,z as Nx,A as Ou,C as Tx,D as Jc,E as Zc,F as Rx,M as kx,G as Fu,H as Ax,I as Bu,J as Px,K as jx,L as Ix,N as Lx,O as Mx,Q as Dx,T as Ox,U as Fx,V as Bx,W as Ux,X as Wx,Y as Gx,Z as Hx,_ as Ys,$ as Vs,a0 as Ks,a1 as zx,l as qx,a2 as $x,a3 as Xx,a4 as Yx,a5 as Vx,a6 as Kx}from"./index-CxJQuE4y.js";import{L as pn,P as Qx,D as Uu,d as Wu,e as Gu,f as Hu,j as zu,g as It,I as Jt,i as qu,C as wr,k as Jx,R as Zx,u as ev,F as tv,T as nv,h as rv}from"./dialog-CxJlnjzH.js";const sv=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],iv=Ie("arrow-up-down",sv);const ov=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],da=Ie("brain",ov);const av=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Jo=Ie("chevron-down",av);const lv=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],$u=Ie("chevron-left",lv);const cv=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ha=Ie("chevron-right",cv);const uv=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],eu=Ie("chevron-up",uv);const fv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],tr=Ie("circle-alert",fv);const dv=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],hv=Ie("circle-check-big",dv);const pv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Wn=Ie("circle-check",pv);const mv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ii=Ie("circle-x",mv);const gv=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],_v=Ie("clock",gv);const xv=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],vv=Ie("external-link",xv);const bv=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],tu=Ie("eye-off",bv);const yv=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],oi=Ie("eye",yv);const wv=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]],Ev=Ie("fingerprint-pattern",wv);const Sv=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],nu=Ie("history",Sv);const Cv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],ru=Ie("image",Cv);const Nv=[["path",{d:"M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z",key:"vbtd3f"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]],Tv=Ie("monitor-play",Nv);const Rv=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],kv=Ie("plug",Rv);const Av=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Pv=Ie("rotate-ccw",Av);const jv=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Iv=Ie("send",jv);const Lv=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Mv=Ie("server",Lv);const Dv=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Xu=Ie("settings",Dv);const Ov=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Zo=Ie("smartphone",Ov);const Fv=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Qs=Ie("sparkles",Fv);const Bv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Uv=Ie("square",Bv);const Wv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Yu=Ie("target",Wv);const Gv=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],Hv=Ie("video",Gv);const zv=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],su=Ie("wifi-off",zv);const qv=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],ea=Ie("wifi",qv);const $v=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],ai=Ie("zap",$v);function iu({isOpen:i,title:n,content:r,onConfirm:o,onCancel:u,confirmText:l="确认",cancelText:p="取消"}){return i?a.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50 backdrop-blur-sm animate-in fade-in duration-200",children:a.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-xl max-w-md w-full overflow-hidden transform transition-all animate-in zoom-in-95 duration-200",onClick:x=>x.stopPropagation(),children:[a.jsxs("div",{className:"p-6",children:[a.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-2",children:n}),a.jsx("p",{className:"text-gray-500 dark:text-gray-400 text-sm leading-relaxed whitespace-pre-wrap",children:r})]}),a.jsxs("div",{className:"bg-gray-50 dark:bg-gray-700/50 px-6 py-4 flex justify-end gap-3",children:[a.jsx("button",{onClick:x=>{x.stopPropagation(),u()},className:"px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500 transition-colors",children:p}),a.jsx("button",{onClick:x=>{x.stopPropagation(),o()},className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded-lg hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors",children:l})]})]})}):null}function Xv({id:i,serial:n,model:r,status:o,connectionType:u,agent:l,isActive:p,onClick:x,onConnectWifi:d,onDisconnectWifi:m}){const h=Jr(),v=o==="device",b=u==="usb",S=u==="remote",[T,L]=w.useState(!1),[R,D]=w.useState(!1),[G,I]=w.useState(!1),k=r||h.deviceCard.unknownDevice,q=F=>{F.stopPropagation(),!(T||!d)&&D(!0)},$=F=>{F.stopPropagation(),!(T||!m)&&I(!0)},X=async()=>{D(!1),L(!0);try{d&&await d()}finally{L(!1)}},Y=async()=>{I(!1),L(!0);try{m&&await m()}finally{L(!1)}};return a.jsxs(a.Fragment,{children:[a.jsxs("div",{onClick:x,role:"button",tabIndex:0,onKeyDown:F=>{(F.key==="Enter"||F.key===" ")&&x()},className:`
|
|
2
2
|
group relative w-full text-left p-4 rounded-xl transition-all duration-200 cursor-pointer
|
|
3
3
|
border-2
|
|
4
4
|
${p?"bg-slate-50 border-[#1d9bf0] dark:bg-slate-800/50 dark:border-[#1d9bf0]":"bg-white border-transparent hover:border-slate-200 dark:bg-slate-900 dark:hover:border-slate-700"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as K,j as l,p as C,r as i,a7 as rt,n as de,g as G,P as j,m as nt,f as at,i as Z,o as oe,J as ot,k as _,h as it,K as st,a8 as ct}from"./index-Dt7cVkfR.js";const lt=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Fr=K("loader-circle",lt);const ut=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Lr=K("plus",ut);const dt=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Wr=K("trash-2",dt);const ft=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vt=K("x",ft);function Br({className:e,type:t,...r}){return l.jsx("input",{type:t,"data-slot":"input",className:C("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}const mt=i.forwardRef(({className:e,...t},r)=>l.jsx("textarea",{className:C("flex min-h-[40px] w-full rounded-full border border-slate-200 bg-white px-3 py-2 text-sm ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-slate-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#1d9bf0] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-800 dark:bg-slate-950 dark:text-slate-100 dark:ring-offset-slate-950 dark:placeholder:text-slate-400 dark:focus-visible:ring-[#1d9bf0] resize-none",e),ref:r,...t}));mt.displayName="Textarea";const pt=i.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:C("rounded-2xl border border-slate-200 bg-white text-slate-950 shadow-sm dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50",e),...t}));pt.displayName="Card";const gt=i.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:C("flex flex-col space-y-1.5 p-6",e),...t}));gt.displayName="CardHeader";const ht=i.forwardRef(({className:e,...t},r)=>l.jsx("h3",{ref:r,className:C("text-xl font-semibold leading-none tracking-tight",e),...t}));ht.displayName="CardTitle";const yt=i.forwardRef(({className:e,...t},r)=>l.jsx("p",{ref:r,className:C("text-sm text-slate-500 dark:text-slate-400",e),...t}));yt.displayName="CardDescription";const bt=i.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:C("p-6 pt-0",e),...t}));bt.displayName="CardContent";const xt=i.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:C("flex items-center p-6 pt-0",e),...t}));xt.displayName="CardFooter";var wt="Label",Ee=i.forwardRef((e,t)=>l.jsx(rt.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Ee.displayName=wt;var Ce=Ee;const Et=i.forwardRef(({className:e,...t},r)=>l.jsx(Ce,{ref:r,className:C("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-slate-900 dark:text-slate-100",e),...t}));Et.displayName=Ce.displayName;var q="focusScope.autoFocusOnMount",Q="focusScope.autoFocusOnUnmount",fe={bubbles:!1,cancelable:!0},Ct="FocusScope",Se=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...u}=e,[s,y]=i.useState(null),g=de(a),m=de(o),f=i.useRef(null),p=G(t,c=>y(c)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let c=function(x){if(h.paused||!s)return;const w=x.target;s.contains(w)?f.current=w:T(f.current,{select:!0})},d=function(x){if(h.paused||!s)return;const w=x.relatedTarget;w!==null&&(s.contains(w)||T(f.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&T(s)};document.addEventListener("focusin",c),document.addEventListener("focusout",d);const b=new MutationObserver(v);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",d),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){me.add(h);const c=document.activeElement;if(!s.contains(c)){const v=new CustomEvent(q,fe);s.addEventListener(q,g),s.dispatchEvent(v),v.defaultPrevented||(St(Tt(Ne(s)),{select:!0}),document.activeElement===c&&T(s))}return()=>{s.removeEventListener(q,g),setTimeout(()=>{const v=new CustomEvent(Q,fe);s.addEventListener(Q,m),s.dispatchEvent(v),v.defaultPrevented||T(c??document.body,{select:!0}),s.removeEventListener(Q,m),me.remove(h)},0)}}},[s,g,m,h]);const S=i.useCallback(c=>{if(!r&&!n||h.paused)return;const d=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,v=document.activeElement;if(d&&v){const b=c.currentTarget,[x,w]=Nt(b);x&&w?!c.shiftKey&&v===w?(c.preventDefault(),r&&T(x,{select:!0})):c.shiftKey&&v===x&&(c.preventDefault(),r&&T(w,{select:!0})):v===b&&c.preventDefault()}},[r,n,h.paused]);return l.jsx(j.div,{tabIndex:-1,...u,ref:p,onKeyDown:S})});Se.displayName=Ct;function St(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(T(n,{select:t}),document.activeElement!==r)return}function Nt(e){const t=Ne(e),r=ve(t,e),n=ve(t.reverse(),e);return[r,n]}function Ne(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ve(e,t){for(const r of e)if(!Rt(r,{upTo:t}))return r}function Rt(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Dt(e){return e instanceof HTMLInputElement&&"select"in e}function T(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Dt(e)&&t&&e.select()}}var me=kt();function kt(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=pe(e,t),e.unshift(t)},remove(t){e=pe(e,t),e[0]?.resume()}}}function pe(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Tt(e){return e.filter(t=>t.tagName!=="A")}var J=0;function Pt(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ge()),document.body.insertAdjacentElement("beforeend",e[1]??ge()),J++,()=>{J===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),J--}},[])}function ge(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var R=function(){return R=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},R.apply(this,arguments)};function Re(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function Mt(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var H="right-scroll-bar-position",U="width-before-scroll-bar",At="with-scroll-bars-hidden",Ot="--removed-body-scroll-bar-size";function ee(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function It(e,t){var r=i.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var jt=typeof window<"u"?i.useLayoutEffect:i.useEffect,he=new WeakMap;function _t(e,t){var r=It(null,function(n){return e.forEach(function(a){return ee(a,n)})});return jt(function(){var n=he.get(r);if(n){var a=new Set(n),o=new Set(e),u=r.current;a.forEach(function(s){o.has(s)||ee(s,null)}),o.forEach(function(s){a.has(s)||ee(s,u)})}he.set(r,e)},[e]),r}function Ft(e){return e}function Lt(e,t){t===void 0&&(t=Ft);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var u=t(o,n);return r.push(u),function(){r=r.filter(function(s){return s!==u})}},assignSyncMedium:function(o){for(n=!0;r.length;){var u=r;r=[],u.forEach(o)}r={push:function(s){return o(s)},filter:function(){return r}}},assignMedium:function(o){n=!0;var u=[];if(r.length){var s=r;r=[],s.forEach(o),u=r}var y=function(){var m=u;u=[],m.forEach(o)},g=function(){return Promise.resolve().then(y)};g(),r={push:function(m){u.push(m),g()},filter:function(m){return u=u.filter(m),r}}}};return a}function Wt(e){e===void 0&&(e={});var t=Lt(null);return t.options=R({async:!0,ssr:!1},e),t}var De=function(e){var t=e.sideCar,r=Re(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,R({},r))};De.isSideCarExport=!0;function Bt(e,t){return e.useMedium(t),De}var ke=Wt(),te=function(){},z=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:te,onWheelCapture:te,onTouchMoveCapture:te}),a=n[0],o=n[1],u=e.forwardProps,s=e.children,y=e.className,g=e.removeScrollBar,m=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,S=e.noIsolation,c=e.inert,d=e.allowPinchZoom,v=e.as,b=v===void 0?"div":v,x=e.gapMode,w=Re(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,D=_t([r,t]),k=R(R({},w),a);return i.createElement(i.Fragment,null,m&&i.createElement(E,{sideCar:ke,removeScrollBar:g,shards:f,noRelative:h,noIsolation:S,inert:c,setCallbacks:o,allowPinchZoom:!!d,lockRef:r,gapMode:x}),u?i.cloneElement(i.Children.only(s),R(R({},k),{ref:D})):i.createElement(b,R({},k,{className:y,ref:D}),s))});z.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};z.classNames={fullWidth:U,zeroRight:H};var $t=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ht(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$t();return t&&e.setAttribute("nonce",t),e}function Ut(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Vt(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Kt=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Ht())&&(Ut(t,r),Vt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Gt=function(){var e=Kt();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Te=function(){var e=Gt(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},zt={left:0,top:0,right:0,gap:0},re=function(e){return parseInt(e||"",10)||0},Xt=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[re(r),re(n),re(a)]},Yt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zt;var t=Xt(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Zt=Te(),I="data-scroll-locked",qt=function(e,t,r,n){var a=e.left,o=e.top,u=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
1
|
+
import{c as K,j as l,p as C,r as i,a7 as rt,n as de,g as G,P as j,m as nt,f as at,i as Z,o as oe,J as ot,k as _,h as it,K as st,a8 as ct}from"./index-CxJQuE4y.js";const lt=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Fr=K("loader-circle",lt);const ut=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Lr=K("plus",ut);const dt=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Wr=K("trash-2",dt);const ft=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vt=K("x",ft);function Br({className:e,type:t,...r}){return l.jsx("input",{type:t,"data-slot":"input",className:C("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}const mt=i.forwardRef(({className:e,...t},r)=>l.jsx("textarea",{className:C("flex min-h-[40px] w-full rounded-full border border-slate-200 bg-white px-3 py-2 text-sm ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-slate-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#1d9bf0] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-slate-800 dark:bg-slate-950 dark:text-slate-100 dark:ring-offset-slate-950 dark:placeholder:text-slate-400 dark:focus-visible:ring-[#1d9bf0] resize-none",e),ref:r,...t}));mt.displayName="Textarea";const pt=i.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:C("rounded-2xl border border-slate-200 bg-white text-slate-950 shadow-sm dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50",e),...t}));pt.displayName="Card";const gt=i.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:C("flex flex-col space-y-1.5 p-6",e),...t}));gt.displayName="CardHeader";const ht=i.forwardRef(({className:e,...t},r)=>l.jsx("h3",{ref:r,className:C("text-xl font-semibold leading-none tracking-tight",e),...t}));ht.displayName="CardTitle";const yt=i.forwardRef(({className:e,...t},r)=>l.jsx("p",{ref:r,className:C("text-sm text-slate-500 dark:text-slate-400",e),...t}));yt.displayName="CardDescription";const bt=i.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:C("p-6 pt-0",e),...t}));bt.displayName="CardContent";const xt=i.forwardRef(({className:e,...t},r)=>l.jsx("div",{ref:r,className:C("flex items-center p-6 pt-0",e),...t}));xt.displayName="CardFooter";var wt="Label",Ee=i.forwardRef((e,t)=>l.jsx(rt.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));Ee.displayName=wt;var Ce=Ee;const Et=i.forwardRef(({className:e,...t},r)=>l.jsx(Ce,{ref:r,className:C("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-slate-900 dark:text-slate-100",e),...t}));Et.displayName=Ce.displayName;var q="focusScope.autoFocusOnMount",Q="focusScope.autoFocusOnUnmount",fe={bubbles:!1,cancelable:!0},Ct="FocusScope",Se=i.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...u}=e,[s,y]=i.useState(null),g=de(a),m=de(o),f=i.useRef(null),p=G(t,c=>y(c)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(n){let c=function(x){if(h.paused||!s)return;const w=x.target;s.contains(w)?f.current=w:T(f.current,{select:!0})},d=function(x){if(h.paused||!s)return;const w=x.relatedTarget;w!==null&&(s.contains(w)||T(f.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&T(s)};document.addEventListener("focusin",c),document.addEventListener("focusout",d);const b=new MutationObserver(v);return s&&b.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",d),b.disconnect()}}},[n,s,h.paused]),i.useEffect(()=>{if(s){me.add(h);const c=document.activeElement;if(!s.contains(c)){const v=new CustomEvent(q,fe);s.addEventListener(q,g),s.dispatchEvent(v),v.defaultPrevented||(St(Tt(Ne(s)),{select:!0}),document.activeElement===c&&T(s))}return()=>{s.removeEventListener(q,g),setTimeout(()=>{const v=new CustomEvent(Q,fe);s.addEventListener(Q,m),s.dispatchEvent(v),v.defaultPrevented||T(c??document.body,{select:!0}),s.removeEventListener(Q,m),me.remove(h)},0)}}},[s,g,m,h]);const S=i.useCallback(c=>{if(!r&&!n||h.paused)return;const d=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,v=document.activeElement;if(d&&v){const b=c.currentTarget,[x,w]=Nt(b);x&&w?!c.shiftKey&&v===w?(c.preventDefault(),r&&T(x,{select:!0})):c.shiftKey&&v===x&&(c.preventDefault(),r&&T(w,{select:!0})):v===b&&c.preventDefault()}},[r,n,h.paused]);return l.jsx(j.div,{tabIndex:-1,...u,ref:p,onKeyDown:S})});Se.displayName=Ct;function St(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(T(n,{select:t}),document.activeElement!==r)return}function Nt(e){const t=Ne(e),r=ve(t,e),n=ve(t.reverse(),e);return[r,n]}function Ne(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ve(e,t){for(const r of e)if(!Rt(r,{upTo:t}))return r}function Rt(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Dt(e){return e instanceof HTMLInputElement&&"select"in e}function T(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Dt(e)&&t&&e.select()}}var me=kt();function kt(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=pe(e,t),e.unshift(t)},remove(t){e=pe(e,t),e[0]?.resume()}}}function pe(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Tt(e){return e.filter(t=>t.tagName!=="A")}var J=0;function Pt(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ge()),document.body.insertAdjacentElement("beforeend",e[1]??ge()),J++,()=>{J===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),J--}},[])}function ge(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var R=function(){return R=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},R.apply(this,arguments)};function Re(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function Mt(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var H="right-scroll-bar-position",U="width-before-scroll-bar",At="with-scroll-bars-hidden",Ot="--removed-body-scroll-bar-size";function ee(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function It(e,t){var r=i.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var jt=typeof window<"u"?i.useLayoutEffect:i.useEffect,he=new WeakMap;function _t(e,t){var r=It(null,function(n){return e.forEach(function(a){return ee(a,n)})});return jt(function(){var n=he.get(r);if(n){var a=new Set(n),o=new Set(e),u=r.current;a.forEach(function(s){o.has(s)||ee(s,null)}),o.forEach(function(s){a.has(s)||ee(s,u)})}he.set(r,e)},[e]),r}function Ft(e){return e}function Lt(e,t){t===void 0&&(t=Ft);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var u=t(o,n);return r.push(u),function(){r=r.filter(function(s){return s!==u})}},assignSyncMedium:function(o){for(n=!0;r.length;){var u=r;r=[],u.forEach(o)}r={push:function(s){return o(s)},filter:function(){return r}}},assignMedium:function(o){n=!0;var u=[];if(r.length){var s=r;r=[],s.forEach(o),u=r}var y=function(){var m=u;u=[],m.forEach(o)},g=function(){return Promise.resolve().then(y)};g(),r={push:function(m){u.push(m),g()},filter:function(m){return u=u.filter(m),r}}}};return a}function Wt(e){e===void 0&&(e={});var t=Lt(null);return t.options=R({async:!0,ssr:!1},e),t}var De=function(e){var t=e.sideCar,r=Re(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return i.createElement(n,R({},r))};De.isSideCarExport=!0;function Bt(e,t){return e.useMedium(t),De}var ke=Wt(),te=function(){},z=i.forwardRef(function(e,t){var r=i.useRef(null),n=i.useState({onScrollCapture:te,onWheelCapture:te,onTouchMoveCapture:te}),a=n[0],o=n[1],u=e.forwardProps,s=e.children,y=e.className,g=e.removeScrollBar,m=e.enabled,f=e.shards,p=e.sideCar,h=e.noRelative,S=e.noIsolation,c=e.inert,d=e.allowPinchZoom,v=e.as,b=v===void 0?"div":v,x=e.gapMode,w=Re(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,D=_t([r,t]),k=R(R({},w),a);return i.createElement(i.Fragment,null,m&&i.createElement(E,{sideCar:ke,removeScrollBar:g,shards:f,noRelative:h,noIsolation:S,inert:c,setCallbacks:o,allowPinchZoom:!!d,lockRef:r,gapMode:x}),u?i.cloneElement(i.Children.only(s),R(R({},k),{ref:D})):i.createElement(b,R({},k,{className:y,ref:D}),s))});z.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};z.classNames={fullWidth:U,zeroRight:H};var $t=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ht(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$t();return t&&e.setAttribute("nonce",t),e}function Ut(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Vt(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Kt=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Ht())&&(Ut(t,r),Vt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Gt=function(){var e=Kt();return function(t,r){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Te=function(){var e=Gt(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},zt={left:0,top:0,right:0,gap:0},re=function(e){return parseInt(e||"",10)||0},Xt=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[re(r),re(n),re(a)]},Yt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zt;var t=Xt(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Zt=Te(),I="data-scroll-locked",qt=function(e,t,r,n){var a=e.left,o=e.top,u=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
2
2
|
.`.concat(At,` {
|
|
3
3
|
overflow: hidden `).concat(n,`;
|
|
4
4
|
padding-right: `).concat(s,"px ").concat(n,`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a9 as o,r as s,j as t}from"./index-
|
|
1
|
+
import{a9 as o,r as s,j as t}from"./index-CxJQuE4y.js";function n(){const e=o();return s.useEffect(()=>{e({to:"/chat"})},[e]),t.jsx("div",{className:"p-2",children:t.jsx("h3",{children:"Welcome Home!"})})}export{n as component};
|