import{d as B,g as C,h as H,t as N,i as $,s as P,j as W,k as j,l as a,w as b,v as E,u as i,o as G,a as K,e as o,f as U,m as d,p as J,q as v,x as n,y as m,z as O,A as Q,T as X,B as Z,L as ee,C as oe,D as te,_ as se}from"./index.282e5ae2.js";import{f as h}from"./formatTime.214f8764.js";const _=r=>(oe("data-v-31417299"),r=r(),te(),r),ne=_(()=>o("div",{class:"layout-lock-screen-mask"},null,-1)),ce={class:"layout-lock-screen"},ie=["onTouchstart","onTouchmove","onTouchend"],le={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=_(()=>o("div",{class:"layout-lock-screen-date-top-text"},"\u4E0A\u6ED1\u89E3\u9501",-1)),_e={class:"layout-lock-screen-login"},fe={class:"layout-lock-screen-login-box"},pe=_(()=>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=_(()=>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=B({name:"layoutLockScreen"}),ye=B({...Se,setup(r){const k=C(),S=C(),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:F,time:f,lockScreenPassword:p}=N(e),A=$(),{themeConfig:c}=P(A),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,l=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:${l};`),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())}},x=()=>{e.isFlags=!1,e.transparency=1,e.moveDifference>=-400&&e.querySelectorEl.setAttribute("style","top:0px;opacity:1;transition:all 0.3s ease;")},M=()=>{Z(()=>{e.querySelectorEl=S.value})},R=()=>{L(),e.setIntervalTime=window.setInterval(()=>{L()},1e3)},L=()=>{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")},q=()=>{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(()=>{M(),R(),q()}),j(()=>{window.clearInterval(e.setIntervalTime),window.clearInterval(e.isShowLockScreenIntervalTime)}),(s,t)=>{const l=a("SvgIcon"),u=a("ele-Right"),Y=a("el-icon"),z=a("el-button"),V=a("el-input");return b((G(),K("div",null,[ne,o("div",{class:U(["layout-lock-screen-img",{"layout-lock-screen-filter":i(y)}])},null,2),o("div",ce,[o("div",{class:"layout-lock-screen-date",ref_key:"layoutLockScreenDateRef",ref:S,onMousedown:g,onMousemove:T,onMouseup:x,onTouchstart:d(g,["stop"]),onTouchmove:d(T,["stop"]),onTouchend:d(x,["stop"])},[o("div",le,[o("div",ae,[J(v(i(f).hm),1),o("span",re,v(i(f).s),1)]),o("div",ue,v(i(f).mdq),1)]),o("div",de,[n(l,{name:"ele-Top"}),me])],40,ie),n(X,{name:"el-zoom-in-center",persisted:""},{default:m(()=>[b(o("div",_e,[o("div",fe,[pe,ve,o("div",he,[n(V,{placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",ref_key:"layoutLockScreenInputRef",ref:k,modelValue:i(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(l,{name:"ele-Microphone",size:20}),n(l,{name:"ele-AlarmClock",size:20}),n(l,{name:"ele-SwitchButton",size:20})])],512),[[E,i(y)]])]),_:1})])],512)),[[E,i(F)]])}}});const Te=se(ye,[["__scopeId","data-v-31417299"],["__file","/data/jenkins/workspace/badp-bcxin-web-5.x-dispatchBusiness/src/layout/lockScreen/index.vue"]]);export{Te as default};