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