import{d as F,r as b,a as H,t as N,u as $,s as P,o as W,b as G,c as a,w as C,v as E,e as l,f as K,g as U,h as o,n as j,i as d,j as J,k as v,l as n,m,p as O,q as Q,T as X,x as Z,L as ee,y as oe,z as te}from"./index.2c7321ca.js";import{f as h}from"./formatTime.214f8764.js";import{_ as se}from"./_plugin-vue_export-helper.cdc0426e.js";const f=r=>(oe("data-v-b4c0dfd5"),r=r(),te(),r),ne=f(()=>o("div",{class:"layout-lock-screen-mask"},null,-1)),ce={class:"layout-lock-screen"},le=["onTouchstart","onTouchmove","onTouchend"],ie={class:"layout-lock-screen-date-box"},ae={class:"layout-lock-screen-date-box-time"},re={class:"layout-lock-screen-date-box-minutes"},ue={class:"layout-lock-screen-date-box-info"},de={class:"layout-lock-screen-date-top"},me=f(()=>o("div",{class:"layout-lock-screen-date-top-text"},"\u4E0A\u6ED1\u89E3\u9501",-1)),fe={class:"layout-lock-screen-login"},_e={class:"layout-lock-screen-login-box"},pe=f(()=>o("div",{class:"layout-lock-screen-login-box-img"},[o("img",{src:"https://img2.baidu.com/it/u=1978192862,2048448374&fm=253&fmt=auto&app=138&f=JPEG?w=504&h=500"})],-1)),ve=f(()=>o("div",{class:"layout-lock-screen-login-box-name"},"Administrator",-1)),he={class:"layout-lock-screen-login-box-value"},ke={class:"layout-lock-screen-login-icon"},Se=F({name:"layoutLockScreen"}),ye=F({...Se,setup(r){const k=b(),S=b(),e=H({transparency:1,downClientY:0,moveDifference:0,isShowLoockLogin:!1,isFlags:!1,querySelectorEl:"",time:{hm:"",s:"",mdq:""},setIntervalTime:0,isShowLockScreen:!1,isShowLockScreenIntervalTime:0,lockScreenPassword:""}),{isShowLoockLogin:y,isShowLockScreen:M,time:_,lockScreenPassword:p}=N(e),R=$(),{themeConfig:c}=P(R),w=()=>{c.value.isLockScreen=!1,c.value.lockScreenTime=30,D()},g=s=>{console.log("down",s),e.isFlags=!0,e.downClientY=s.touches?s.touches[0].clientY:s.clientY},T=s=>{if(e.isFlags){const t=e.querySelectorEl,i=e.transparency-=1/200;if(s.touches?e.moveDifference=s.touches[0].clientY-e.downClientY:e.moveDifference=s.clientY-e.downClientY,e.moveDifference>=0)return!1;t.setAttribute("style",`top:${e.moveDifference}px;cursor:pointer;opacity:${i};`),e.moveDifference<-400&&(t.setAttribute("style",`top:${-t.clientHeight}px;cursor:pointer;transition:all 0.3s ease;`),e.moveDifference=-t.clientHeight,setTimeout(()=>{var u;t&&((u=t.parentNode)==null||u.removeChild(t))},300)),e.moveDifference===-t.clientHeight&&(e.isShowLoockLogin=!0,k.value.focus())}},L=()=>{e.isFlags=!1,e.transparency=1,e.moveDifference>=-400&&e.querySelectorEl.setAttribute("style","top:0px;opacity:1;transition:all 0.3s ease;")},q=()=>{Z(()=>{e.querySelectorEl=S.value})},A=()=>{x(),e.setIntervalTime=window.setInterval(()=>{x()},1e3)},x=()=>{e.time.hm=h(new Date,"HH:MM"),e.time.s=h(new Date,"SS"),e.time.mdq=h(new Date,"mm\u6708dd\u65E5\uFF0CWWW")},B=()=>{c.value.isLockScreen?e.isShowLockScreenIntervalTime=window.setInterval(()=>{if(c.value.lockScreenTime<=1)return e.isShowLockScreen=!0,D(),console.log("\u5B9A\u65F61"),!1;console.log("\u5B9A\u65F6--",c.value.lockScreenTime),c.value.lockScreenTime--},1e3):clearInterval(e.isShowLockScreenIntervalTime)},D=()=>{c.value.isDrawer=!1,ee.set("themeConfig",c.value)};return W(()=>{q(),A(),B()}),G(()=>{window.clearInterval(e.setIntervalTime),window.clearInterval(e.isShowLockScreenIntervalTime)}),(s,t)=>{const i=a("SvgIcon"),u=a("ele-Right"),Y=a("el-icon"),z=a("el-button"),V=a("el-input");return C((K(),U("div",null,[ne,o("div",{class:j(["layout-lock-screen-img",{"layout-lock-screen-filter":l(y)}])},null,2),o("div",ce,[o("div",{class:"layout-lock-screen-date",ref_key:"layoutLockScreenDateRef",ref:S,onMousedown:g,onMousemove:T,onMouseup:L,onTouchstart:d(g,["stop"]),onTouchmove:d(T,["stop"]),onTouchend:d(L,["stop"])},[o("div",ie,[o("div",ae,[J(v(l(_).hm),1),o("span",re,v(l(_).s),1)]),o("div",ue,v(l(_).mdq),1)]),o("div",de,[n(i,{name:"ele-Top"}),me])],40,le),n(X,{name:"el-zoom-in-center"},{default:m(()=>[C(o("div",fe,[o("div",_e,[pe,ve,o("div",he,[n(V,{placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",ref_key:"layoutLockScreenInputRef",ref:k,modelValue:l(p),"onUpdate:modelValue":t[0]||(t[0]=I=>O(p)?p.value=I:null),onKeyup:t[1]||(t[1]=Q(d(I=>w(),["stop"]),["enter","native"]))},{append:m(()=>[n(z,{onClick:w},{default:m(()=>[n(Y,{class:"el-input__icon"},{default:m(()=>[n(u)]),_:1})]),_:1})]),_:1},8,["modelValue"])])]),o("div",ke,[n(i,{name:"ele-Microphone",size:20}),n(i,{name:"ele-AlarmClock",size:20}),n(i,{name:"ele-SwitchButton",size:20})])],512),[[E,l(y)]])]),_:1})])],512)),[[E,l(M)]])}}});const Le=se(ye,[["__scopeId","data-v-b4c0dfd5"]]);export{Le as default};
