var i=(t,e,s)=>new Promise((k,f)=>{var l=o=>{try{c(s.next(o))}catch(n){f(n)}},I=o=>{try{c(s.throw(o))}catch(n){f(n)}},c=o=>o.done?k(o.value):Promise.resolve(o.value).then(l,I);c((s=s.apply(t,e)).next())});import{a_ as L,a$ as r,b0 as a}from"./index-CYriLmQo.js";const p=L({id:"app-lock",state:()=>({lockInfo:r.getLocal(a)}),getters:{getLockInfo(){return this.lockInfo}},actions:{setLockInfo(t){this.lockInfo=Object.assign({},this.lockInfo,t),r.setLocal(a,this.lockInfo,!0)},resetLockInfo(){r.removeLocal(a,!0),this.lockInfo=null},unLock(t){return i(this,null,function*(){var e;if(((e=this.lockInfo)==null?void 0:e.pwd)===t)return this.resetLockInfo(),!0})}}});export{p as u};
