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

2 lines
45 KiB
JavaScript
Raw Normal View History

2024-07-04 15:05:55 +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 $2,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 x0,N as z2,O as G2,P as _0,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 $0,X as I0,Y as B0,Z as D0,$ as N0}from"./cross-icon.AO-iTzOe.js";import{$ as R0,o as C2,a0 as j2,e as O0,N as l2,I as I2,a1 as U0,S as M2,a2 as Y0,a3 as w2,d as n2,z as P,E as G,g as o2,G as R,c as J,t as x,v as k,x as r,K as Y,H as l,y as U,A as V,a4 as V0,J as p2,L as F,Z as Q2,a5 as K2,r as _,U as h2,a6 as H0,a7 as P0,a8 as z0,F as J2,M as G0,a9 as K0,aa as e0,Q as y2,ab as t0,ac as Z0,ad as q0,ae as F0,af as X0,ag as o0,ah as s0,ai as W0,X as l0,O as X,B as s2,aj as j0,C as B2,D as D2,u as Q0,ak as J0,P as m2,T as i2,W as ee,R as te,V as oe}from"./entry.iIo6b9l7.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,I=-a+h,L=-C+y,N=S-a-E+h,O=M-C-D+y,b=$=>{const u=Math.min(Math.max(h+$.clientX-v,I),N),T=Math.min(Math.max(y+$.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||I2("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=$2({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=I2(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,"defau