PC-mj/.output/public/_nuxt/top-head.1f134551.js

2 lines
26 KiB
JavaScript
Raw Normal View History

import{$ as Je,o as ae,Y as Ne,e as Ze,P as Ae,I as be,a0 as et,U as ve,a1 as tt,a2 as ue,d as X,z as K,E as Y,g as z,G as H,c as G,t as k,v as E,x as u,K as D,H as l,y as O,A as U,J as le,a3 as ot,L as j,W as Re,a4 as we,r as S,a5 as st,T as ce,a6 as lt,a7 as nt,F as Oe,Q as ie,M as at,a8 as At,a9 as Ue,aa as Ye,ab as ct,ac as it,ad as rt,ae as ut,af as He,ag as Ve,ah as dt,ai as ft,u as Pe,S as vt,B as me,N as pe,O as je,X as oe,C as Ke,D as Ge,aj as mt,R as pt,ak as gt}from"./entry.45739ca1.js";import{_ as Ce}from"./_plugin-vue_export-helper.c27b6911.js";import{C as re,c as ge,D as yt,F as Te,G as W,I as ye,J,b as xe,d as ne,i as _t,K as ht,L as bt,N as Ct,_ as Fe,O as xt,U as ze,a as kt,P as Lt,Q as St,R as Et,S as Me,V as Be,W as wt,e as Tt,X as Mt,g as Bt,s as It,Y as $t,E as Ie,j as _e,Z as Dt,$ as Nt,a0 as Rt,a1 as Ot}from"./cross-icon.32a15b4d.js";let ee;const Ut=e=>{var t;if(!re)return 0;if(ee!==void 0)return ee;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 i=document.createElement("div");i.style.width="100%",o.appendChild(i);const n=i.offsetWidth;return(t=o.parentNode)==null||t.removeChild(o),ee=s-n,ee},Yt=(...e)=>t=>{e.forEach(o=>{Je(o)?o(t):o.value=t})};var se=(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))(se||{});const Ht=(e,t,o)=>{let s={offsetX:0,offsetY:0};const i=r=>{const g=r.clientX,m=r.clientY,{offsetX:_,offsetY:h}=s,A=e.value.getBoundingClientRect(),d=A.left,y=A.top,M=A.width,B=A.height,I=document.documentElement.clientWidth,L=document.documentElement.clientHeight,$=-d+_,N=-y+h,C=I-d-M+_,x=L-y-B+h,T=R=>{const p=Math.min(Math.max(_+R.clientX-g,$),C),f=Math.min(Math.max(h+R.clientY-m,N),x);s={offsetX:p,offsetY:f},e.value&&(e.value.style.transform=`translate(${ge(p)}, ${ge(f)})`)},b=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",b)},n=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},a=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};ae(()=>{Ne(()=>{o.value?n():a()})}),Ze(()=>{a()})},Vt=(e,t={})=>{Ae(e)||yt("[useLockscreen]","You need to pass a ref param to this function");const o=t.ns||be("popup"),s=et(()=>o.bm("parent","hidden"));if(!re||Te(document.body,s.value))return;let i=0,n=!1,a="0";const r=()=>{setTimeout(()=>{J(document==null?void 0:document.body,s.value),n&&document&&(document.body.style.width=a)},200)};ve(e,g=>{if(!g){r();return}n=!Te(document.body,s.value),n&&(a=document.body.style.width),i=Ut(o.namespace.value);const m=document.documentElement.clientHeight<document.body.scrollHeight,_=W(document.body,"overflowY");i>0&&(m||_==="scroll")&&n&&(document.body.style.width=`calc(100% - ${i}px)`),ye(document.body,s.value)}),tt(()=>r())},We=e=>{if(!e)return{onClick:ue,onMousedown:ue,onMouseup:ue};let t=!1,o=!1;return{onClick:a=>{t&&o&&e(a),t=o=!1},onMousedown:a=>{t=a.target===a.currentTarget},onMouseup:a=>{o=a.target===a.currentTarget}}},Pt=xe({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:ne([String,Array,Object])},zIndex:{type:ne([String,Number])}}),jt={click:e=>e instanceof MouseEvent},Kt="overlay";var Gt=X({name:"ElOverlay",props:Pt,emits:jt,setup(e,{slots:t,emit:o}){const s=be(Kt),i=g=>{o("click",g)},{onClick:n,onMousedown:a,onMouseup:r}=We(e.customMaskEvent?void 0:i);return()=>e.mask?K("div",{class:[s.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:n,onMousedown:a,onMouseup:r},[Y(t,"default")],se.STYLE|se.CLASS|se.PROPS,["onClic