autoglm-gui 1.2.0__tar.gz → 1.2.1__tar.gz
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-1.2.0/AutoGLM_GUI/static/assets/about-PcGX7dIG.js → autoglm_gui-1.2.1/AutoGLM_GUI/static/assets/about-BtBH1xKN.js +1 -1
- autoglm_gui-1.2.0/AutoGLM_GUI/static/assets/chat-B0FKL2ne.js → autoglm_gui-1.2.1/AutoGLM_GUI/static/assets/chat-DPzFNNGu.js +1 -1
- autoglm_gui-1.2.0/AutoGLM_GUI/static/assets/dialog-BSNX0L1i.js → autoglm_gui-1.2.1/AutoGLM_GUI/static/assets/dialog-Dwuk2Hgl.js +1 -1
- autoglm_gui-1.2.0/AutoGLM_GUI/static/assets/index-DOt5XNhh.js → autoglm_gui-1.2.1/AutoGLM_GUI/static/assets/index-B_AaKuOT.js +1 -1
- autoglm_gui-1.2.1/AutoGLM_GUI/static/assets/index-CvQkCi2d.js +11 -0
- autoglm_gui-1.2.0/AutoGLM_GUI/static/assets/workflows-B1hgBC_O.js → autoglm_gui-1.2.1/AutoGLM_GUI/static/assets/workflows-xX_QH-wI.js +1 -1
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/static/index.html +1 -1
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/PKG-INFO +4 -4
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/README.md +3 -3
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/pyproject.toml +1 -1
- autoglm_gui-1.2.0/AutoGLM_GUI/static/assets/index-CnEYDOXp.js +0 -11
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/.gitignore +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/__init__.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/__main__.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/adb_plus/__init__.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/adb_plus/device.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/adb_plus/ip.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/adb_plus/keyboard_installer.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/adb_plus/mdns.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/adb_plus/pair.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/adb_plus/qr_pair.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/adb_plus/screenshot.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/adb_plus/serial.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/adb_plus/touch.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/adb_plus/version.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/api/__init__.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/api/agents.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/api/control.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/api/devices.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/api/media.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/api/version.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/api/workflows.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/config.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/config_manager.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/device_manager.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/exceptions.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/logger.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/phone_agent_manager.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/phone_agent_patches.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/platform_utils.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/schemas.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/scrcpy_protocol.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/scrcpy_stream.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/server.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/socketio_server.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/state.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/static/assets/index-BjYIY--m.css +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/static/assets/logo-Cyfm06Ym.png +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/static/assets/worker-D6BRitjy.js +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/static/favicon.ico +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/static/logo-192.png +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/static/logo-512.png +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/version.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/AutoGLM_GUI/workflow_manager.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/LICENSE +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/__init__.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/actions/__init__.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/actions/handler.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/actions/handler_ios.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/adb/__init__.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/adb/connection.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/adb/device.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/adb/input.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/adb/screenshot.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/agent.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/agent_ios.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/config/__init__.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/config/apps.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/config/apps_harmonyos.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/config/apps_ios.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/config/i18n.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/config/prompts.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/config/prompts_en.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/config/prompts_zh.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/config/timing.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/device_factory.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/hdc/__init__.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/hdc/connection.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/hdc/device.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/hdc/input.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/hdc/screenshot.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/model/__init__.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/model/client.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/xctest/__init__.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/xctest/connection.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/xctest/device.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/xctest/input.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/phone_agent/xctest/screenshot.py +0 -0
- {autoglm_gui-1.2.0 → autoglm_gui-1.2.1}/scrcpy-server-v3.3.3 +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as o}from"./index-
|
|
1
|
+
import{j as o}from"./index-CvQkCi2d.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 He,j as c,u as Yr,r as w,B as De,e as $r,f as Vr,R as Ge,g as en,h as ko,i as qo,P as jt,k as et,m as $o,n as Pn,o as Xn,p as Yn,q as Wi,s as cx,t as ux,v as fx,w as hx,x as dx,S as Wr,y as kc,z as px,A as pu,C as mx,D as Ic,E as Lc,F as gx,G as mu,H as _x,I as gu,J as xx,K as vx,L as bx,M as yx,N as wx,O as Ex,Q as Sx,T as Cx,U as Tx,V as Rx,l as Nx,W as Ax,X as Px,Y as kx,Z as Ix,_ as Lx}from"./index-
|
|
1
|
+
import{c as He,j as c,u as Yr,r as w,B as De,e as $r,f as Vr,R as Ge,g as en,h as ko,i as qo,P as jt,k as et,m as $o,n as Pn,o as Xn,p as Yn,q as Wi,s as cx,t as ux,v as fx,w as hx,x as dx,S as Wr,y as kc,z as px,A as pu,C as mx,D as Ic,E as Lc,F as gx,G as mu,H as _x,I as gu,J as xx,K as vx,L as bx,M as yx,N as wx,O as Ex,Q as Sx,T as Cx,U as Tx,V as Rx,l as Nx,W as Ax,X as Px,Y as kx,Z as Ix,_ as Lx}from"./index-CvQkCi2d.js";import{L as kn,P as Dx,D as _u,d as xu,e as vu,f as bu,j as yu,g as sn,I as xn,i as wu,k as Mx,R as Ox,u as jx,F as Fx,C as Io,T as Bx,h as Ux}from"./dialog-Dwuk2Hgl.js";const Wx=[["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"}]],Gx=He("arrow-up-down",Wx);const Hx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Eu=He("chevron-left",Hx);const zx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Su=He("chevron-right",zx);const qx=[["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"}]],qn=He("circle-alert",qx);const $x=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Xx=He("circle-check-big",$x);const Yx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],dr=He("circle-check",Yx);const Vx=[["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"}]],Lo=He("circle-x",Vx);const Kx=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Qx=He("clock",Kx);const Jx=[["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"}]],Zx=He("external-link",Jx);const ev=[["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"}]],tv=He("eye-off",ev);const nv=[["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"}]],rv=He("eye",nv);const iv=[["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"}]],sv=He("fingerprint-pattern",iv);const ov=[["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"}]],Dc=He("history",ov);const av=[["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"}]],Mc=He("image",av);const lv=[["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"}]],cv=He("monitor-play",lv);const uv=[["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"}]],fv=He("plug",uv);const hv=[["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"}]],dv=He("rotate-ccw",hv);const pv=[["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"}]],mv=He("send",pv);const gv=[["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"}]],_v=He("server",gv);const xv=[["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"}]],Cu=He("settings",xv);const vv=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Do=He("smartphone",vv);const bv=[["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"}]],Gi=He("sparkles",bv);const yv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],wv=He("square",yv);const Ev=[["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"}]],Sv=He("video",Ev);const Cv=[["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"}]],Tv=He("wifi-off",Cv);const Rv=[["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"}]],Mo=He("wifi",Rv);function Oc({isOpen:s,title:n,content:r,onConfirm:o,onCancel:u,confirmText:a="确认",cancelText:d="取消"}){return s?c.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:c.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:v=>v.stopPropagation(),children:[c.jsxs("div",{className:"p-6",children:[c.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100 mb-2",children:n}),c.jsx("p",{className:"text-gray-500 dark:text-gray-400 text-sm leading-relaxed whitespace-pre-wrap",children:r})]}),c.jsxs("div",{className:"bg-gray-50 dark:bg-gray-700/50 px-6 py-4 flex justify-end gap-3",children:[c.jsx("button",{onClick:v=>{v.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:d}),c.jsx("button",{onClick:v=>{v.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:a})]})]})}):null}function Nv({id:s,model:n,status:r,connectionType:o,agent:u,isActive:a,onClick:d,onConnectWifi:v,onDisconnectWifi:h}){const g=Yr(),m=r==="device",x=o==="usb",y=o==="remote",[S,C]=w.useState(!1),[P,A]=w.useState(!1),[j,U]=w.useState(!1),R=H=>{H.stopPropagation(),!(S||!v)&&A(!0)},I=H=>{H.stopPropagation(),!(S||!h)&&U(!0)},X=async()=>{A(!1),C(!0);try{v&&await v()}finally{C(!1)}},$=async()=>{U(!1),C(!0);try{h&&await h()}finally{C(!1)}};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{onClick:d,role:"button",tabIndex:0,onKeyDown:H=>{(H.key==="Enter"||H.key===" ")&&d()},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
|
${a?"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,$ 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,a0 as ct}from"./index-CnEYDOXp.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 Et="Label",we=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())}}));we.displayName=Et;var Ce=we;const wt=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}));wt.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 E=x.target;s.contains(E)?f.current=E:T(f.current,{select:!0})},d=function(x){if(h.paused||!s)return;const E=x.relatedTarget;E!==null&&(s.contains(E)||T(f.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const w of x)w.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,E]=Nt(b);x&&E?!c.shiftKey&&v===E?(c.preventDefault(),r&&T(x,{select:!0})):c.shiftKey&&v===x&&(c.preventDefault(),r&&T(E,{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,E=Re(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,D=_t([r,t]),k=R(R({},E),a);return i.createElement(i.Fragment,null,m&&i.createElement(w,{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,$ 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,a0 as ct}from"./index-CvQkCi2d.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 Et="Label",we=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())}}));we.displayName=Et;var Ce=we;const wt=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}));wt.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 E=x.target;s.contains(E)?f.current=E:T(f.current,{select:!0})},d=function(x){if(h.paused||!s)return;const E=x.relatedTarget;E!==null&&(s.contains(E)||T(f.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const w of x)w.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,E]=Nt(b);x&&E?!c.shiftKey&&v===E?(c.preventDefault(),r&&T(x,{select:!0})):c.shiftKey&&v===x&&(c.preventDefault(),r&&T(E,{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,E=Re(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,D=_t([r,t]),k=R(R({},E),a);return i.createElement(i.Fragment,null,m&&i.createElement(w,{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{a1 as o,r as s,j as t}from"./index-
|
|
1
|
+
import{a1 as o,r as s,j as t}from"./index-CvQkCi2d.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};
|