mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-12 10:10:59 +01:00
2 lines
1.0 KiB
JavaScript
Vendored
2 lines
1.0 KiB
JavaScript
Vendored
import{r as _,$ as m,J as p,d as c,e as a,f as t,i as f,j as s,k as h,_ as B,l as n,m as r,p as k}from"./app-D4Udf6Mm.js";import{S as g}from"./Spinner-DHClvaFf.js";/*! 2FAuth version 5.4.1 - Copyright (c) 2024 Bubka - https://github.com/Bubka/2FAuth */const v={class:"modal modal-otp is-active"},C=a("div",{class:"modal-background"},null,-1),V={class:"modal-content"},w={class:"has-text-centered m-5"},b=["src","alt"],F={__name:"QRcode",setup(y){k();const l=B(),e=_();m(()=>{i()});async function i(){const{data:o}=await p.getQrcode(l.params.twofaccountId);e.value=o.qrcode}return(o,R)=>{const d=n("ButtonBackCloseCancel"),u=n("VueFooter");return r(),c("div",v,[C,a("div",V,[a("p",w,[t(e)?(r(),c("img",{key:0,src:t(e),class:"has-background-light",alt:o.$t("commons.image_of_qrcode_to_scan")},null,8,b)):f("",!0),s(g,{isVisible:!t(e),type:"raw",class:"is-size-1"},null,8,["isVisible"])])]),s(u,{showButtons:!0,internalFooterType:"modal"},{default:h(()=>[s(d,{returnTo:{name:"accounts"},action:"close"})]),_:1})])}}};export{F as default};
|