import{b7 as h,d as B,z as f,u as C,t as I,aY as l,aT as c,a$ as i,b0 as n,c as d,ba as L,r as W,aX as w}from"./index-xnhGKCfe.js";const S={class:"layout-warning"},$={class:"tip"},O={class:"handle"},P=h({__name:"layoutWarning",emits:["clickSettings","close","gestLogout"],setup(T,{emit:_}){const{verifyPhone:u,loginOff:g}=f(),{clearWallet:p}=B(),t=_,{userInfo:v}=f(),{userType:r}=v.value,{t:o}=C(),y=I(),a=W(!1),m=d(()=>a.value?!1:!u.value),b=d(()=>o(r===0?"t1043":"t1044"));async function k(){if(r===2&&!u.value)return t("gestLogout");try{a.value=!0,await g(y)&&(p(),t("close"))}catch{}finally{a.value=!1}}return(s,e)=>(c(),l("div",S,[i("div",$,n(b.value),1),i("div",O,[i("button",{class:"btn",onClick:k},n(L(o)("t1050")),1),m.value?(c(),l("button",{key:0,class:"btn btn_main_style",onClick:e[0]||(e[0]=()=>t("clickSettings"))},n(s.$t("t1022")),1)):(c(),l("button",{key:1,class:"btn btn_main_style",onClick:e[1]||(e[1]=()=>t("close"))},n(s.$t("t83")),1))])]))}}),z=w(P,[["__scopeId","data-v-7e5e81d7"]]);export{z as default};
