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

2 lines
40 KiB
JavaScript
Raw Normal View History

2024-07-22 12:14:02 +08:00
import{y as ge,c as Se,z as f0,A as Pe,B as te,C as Ee,D as re,b as Ie,d as fe,i as v0,F as p0,G as m0,I as g0,_ as Xe,J as h0,U as We,a as y0,K as C0,L as b0,N as _0,O as ze,P as Ge,Q as x0,e as w0,R as k0,q as ve,m as L0,r as S0,S as E0,E as Ae,V as M0,W as T0,X as I0,Y as $0,Z as B0,$ as D0,a0 as N0}from"./cross-icon.SVC7EJgo.js";import{$ as R0,o as he,a0 as je,e as O0,P as le,I as $e,a1 as U0,S as Me,a2 as Y0,a3 as we,d as ne,z as P,E as G,g as oe,G as R,c as J,t as _,v as k,x as r,K as Y,H as l,y as U,A as V,a4 as V0,J as pe,L as F,Z as Qe,a5 as Ke,r as x,U as ye,a6 as H0,a7 as P0,a8 as z0,F as Je,M as G0,a9 as K0,aa as e0,Q as Ce,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,N as X,B as se,aj as j0,C as Be,D as De,u as Q0,ak as J0,O as me,T as ie,W as e2,R as t2,V as o2}from"./entry.PTp3dAnA.js";import{_ as Ne}from"./_plugin-vue_export-helper.x3n3nnut.js";let ce;const s2=e=>{var t;if(!ge)return 0;if(ce!==void 0)return ce;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),ce=s-i,ce},l2=(...e)=>t=>{e.forEach(o=>{R0(o)?o(t):o.value=t})};var ue=(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))(ue||{});const n2=(e,t,o)=>{let s={offsetX:0,offsetY:0};const n=c=>{const v=c.clientX,m=c.clientY,{offsetX:y,offsetY:C}=s,f=e.value.getBoundingClientRect(),a=f.left,h=f.top,E=f.width,D=f.height,S=document.documentElement.clientWidth,M=document.documentElement.clientHeight,$=-a+y,L=-h+C,N=S-a-E+y,O=M-h-D+C,b=I=>{const u=Math.min(Math.max(y+I.clientX-v,$),N),T=Math.min(Math.max(C+I.clientY-m,L),O);s={offsetX:u,offsetY:T},e.value&&(e.value.style.transform=`translate(${Se(u)}, ${Se(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)};he(()=>{je(()=>{o.value?i():d()})}),O0(()=>{d()})},a2=(e,t={})=>{le(e)||f0("[useLockscreen]","You need to pass a ref param to this function");const o=t.ns||$e("popup"),s=U0(()=>o.bm("parent","hidden"));if(!ge||Pe(document.body,s.value))return;let n=0,i=!1,d="0";const c=()=>{setTimeout(()=>{re(document==null?void 0:document.body,s.value),i&&document&&(document.body.style.width=d)},200)};Me(e,v=>{if(!v){c();return}i=!Pe(document.body,s.value),i&&(d=document.body.style.width),n=s2(o.namespace.value);const m=document.documentElement.clientHeight<document.body.scrollHeight,y=te(document.body,"overflowY");n>0&&(m||y==="scroll")&&i&&(document.body.style.width=`calc(100% - ${n}px)`),Ee(document.body,s.value)}),Y0(()=>c())},n0=e=>{if(!e)return{onClick:we,onMousedown:we,onMouseup:we};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}}},A2=Ie({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:fe([String,Array,Object])},zIndex:{type:fe([String,Number])}}),i2={click:e=>e instanceof MouseEvent},r2="overlay";var c2=ne({name:"ElOverlay",props:A2,emits:i2,setup(e,{slots:t,emit:o}){const s=$e(r2),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