import{d as l,r as n,w as r,y as i,z as d,a as s}from"./index-869d77fb.js";import{b as m}from"./browser-e949d08f.js";const g=""+new URL("smallLogo-517ff5bd.png",import.meta.url).href,f="_qrcode_izshm_1",q="_qrcodeCanvas_izshm_4",u="_qrcodeLogo_izshm_8",_="_small_izshm_18",e={qrcode:f,qrcodeCanvas:q,qrcodeLogo:u,small:_},v=l({props:{text:{type:String,default:""},size:{type:String,default:"200px"},logoSize:{type:String,default:"default"}},setup(o){const t=n(),a=()=>{m.toCanvas(t.value,o.text,{margin:1},c=>{c&&console.log(c),console.log("success")})};return r(()=>o.text,()=>{a()}),i(()=>{d(()=>{a()})}),()=>s("div",{class:e.qrcode,style:{width:o.size,height:o.size}},[s("canvas",{ref:t,class:e.qrcodeCanvas},null),s("img",{src:g,class:[e.qrcodeLogo,o.logoSize==="small"&&e.small]},null)])}});export{v as M};