PC-vote/.output/public/_nuxt/tick-black.IKr3_Jzh.js

2 lines
45 KiB
JavaScript
Raw Normal View History

2024-07-04 14:48:36 +08:00
import{x as g2,c as S2,y as f0,z as P2,A as t2,B as E2,C as r2,b as I2,d as f2,i as v0,D as p0,F as m0,G as g0,_ as X2,I as C0,U as W2,a as h0,J as y0,K as b0,L as _0,N as z2,O as G2,P as x0,e as w0,Q as k0,q as v2,m as L0,r as S0,R as E0,E as A2,S as M0,V as T0,W as I0,X as $0,Y as B0,Z as D0,$ as N0}from"./cross-icon.ge_NPYfE.js";import{a0 as R0,o as C2,a1 as j2,e as O0,O as l2,J as $2,a2 as U0,T as M2,a3 as Y0,a4 as w2,d as n2,A as P,F as G,g as o2,H as R,c as J,v as _,x as k,y as r,L as Y,I as l,z as U,B as V,a5 as V0,K as p2,M as F,_ as Q2,a6 as K2,r as x,V as h2,a7 as H0,a8 as P0,a9 as z0,G as J2,N as G0,aa as K0,ab as e0,R as y2,ac as t0,ad as Z0,ae as q0,af as F0,ag as X0,ah as o0,ai as s0,aj as W0,Y as l0,P as X,C as s2,ak as j0,D as B2,E as D2,u as Q0,al as J0,Q as m2,U as i2,X as ee,S as te,W as oe}from"./entry.8JiMHhAc.js";import{_ as N2}from"./_plugin-vue_export-helper.x3n3nnut.js";let c2;const se=e=>{var t;if(!g2)return 0;if(c2!==void 0)return c2;const o=document.createElement("div");o.className=`${e}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const s=o.offsetWidth;o.style.overflow="scroll";const n=document.createElement("div");n.style.width="100%",o.appendChild(n);const i=n.offsetWidth;return(t=o.parentNode)==null||t.removeChild(o),c2=s-i,c2},le=(...e)=>t=>{e.forEach(o=>{R0(o)?o(t):o.value=t})};var u2=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(u2||{});const ne=(e,t,o)=>{let s={offsetX:0,offsetY:0};const n=c=>{const v=c.clientX,m=c.clientY,{offsetX:h,offsetY:y}=s,f=e.value.getBoundingClientRect(),a=f.left,C=f.top,E=f.width,D=f.height,S=document.documentElement.clientWidth,M=document.documentElement.clientHeight,$=-a+h,L=-C+y,N=S-a-E+h,O=M-C-D+y,b=I=>{const u=Math.min(Math.max(h+I.clientX-v,$),N),T=Math.min(Math.max(y+I.clientY-m,L),O);s={offsetX:u,offsetY:T},e.value&&(e.value.style.transform=`translate(${S2(u)}, ${S2(T)})`)},w=()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",w)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",w)},i=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",n)},d=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",n)};C2(()=>{j2(()=>{o.value?i():d()})}),O0(()=>{d()})},ae=(e,t={})=>{l2(e)||f0("[useLockscreen]","You need to pass a ref param to this function");const o=t.ns||$2("popup"),s=U0(()=>o.bm("parent","hidden"));if(!g2||P2(document.body,s.value))return;let n=0,i=!1,d="0";const c=()=>{setTimeout(()=>{r2(document==null?void 0:document.body,s.value),i&&document&&(document.body.style.width=d)},200)};M2(e,v=>{if(!v){c();return}i=!P2(document.body,s.value),i&&(d=document.body.style.width),n=se(o.namespace.value);const m=document.documentElement.clientHeight<document.body.scrollHeight,h=t2(document.body,"overflowY");n>0&&(m||h==="scroll")&&i&&(document.body.style.width=`calc(100% - ${n}px)`),E2(document.body,s.value)}),Y0(()=>c())},n0=e=>{if(!e)return{onClick:w2,onMousedown:w2,onMouseup:w2};let t=!1,o=!1;return{onClick:d=>{t&&o&&e(d),t=o=!1},onMousedown:d=>{t=d.target===d.currentTarget},onMouseup:d=>{o=d.target===d.currentTarget}}},Ae=I2({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:f2([String,Array,Object])},zIndex:{type:f2([String,Number])}}),ie={click:e=>e instanceof MouseEvent},re="overlay";var ce=n2({name:"ElOverlay",props:Ae,emits:ie,setup(e,{slots:t,emit:o}){const s=$2(re),n=v=>{o("click",v)},{onClick:i,onMousedown:d,onMouseup:c}=n0(e.customMaskEvent?void 0:n);return()=>e.mask?P("div",{class:[s.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:d,onMouseup:c},[G(t,"defa