import{i as e,M as p,H as h,n as k}from"./app-JmgyQoR0.js";import{M as g}from"./MkKeyValue-qNXtpS4q.js";import{b as y,D as w,h as C,i as v,j as s,u as o,l as c,z as a,K as l,E as r,x as d}from"./vue-y3KLWBaS.js";const M=o("a",{href:"https://authpass.app/",rel:"noopener",target:"_blank",class:"_link"},"AuthPass",-1),q=o("a",{href:"https://support.google.com/accounts/answer/1066447",rel:"noopener",target:"_blank",class:"_link"},"Google Authenticator",-1),D=o("br",null,null,-1),b=["href"],F=["src"],x={style:{"max-width":"610px"}},B={class:"_flexList"},V=y({__name:"2fa.qrdialog",props:{twoFactorData:{}},emits:["ok","cancel","closed"],setup(E,{emit:u}){const n=u,i=()=>{n("cancel"),n("closed")},f=()=>{n("ok"),n("closed")};return(t,_)=>{const m=w("I18n");return C(),v(h,{ref:"dialogEl","prefer-type":"dialog","z-priority":"low",onClick:i,onClose:i,onClosed:_[0]||(_[0]=I=>n("closed"))},{default:s(()=>[o("div",{class:d([t.$style.root,"_gaps_m"])},[c(m,{src:a(e).ts._2fa.step1,tag:"div"},{a:s(()=>[M]),b:s(()=>[q]),_:1},8,["src"]),o("div",null,[l(r(a(e).ts._2fa.step2),1),D,l(" "+r(a(e).ts._2fa.step2Click),1)]),o("a",{href:t.twoFactorData.url},[o("img",{class:d(t.$style.qr),src:t.twoFactorData.qr},null,10,F)],8,b),o("div",x,[c(g,{copy:t.twoFactorData.url},{key:s(()=>[l(r(a(e).ts._2fa.step2Url),1)]),value:s(()=>[l(r(t.twoFactorData.url),1)]),_:1},8,["copy"])]),o("div",B,[c(p,{primary:"",onClick:f},{default:s(()=>[l(r(a(e).ts.next),1)]),_:1}),c(p,{onClick:i},{default:s(()=>[l(r(a(e).ts.cancel),1)]),_:1})])],2)]),_:1},512)}}}),$="_root_1rmlw_1",z="_qr_1rmlw_12",N={root:$,qr:z},A={$style:N},H=k(V,[["__cssModules",A]]);export{H as default};
