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