import{d as l,R as n,Z as r,$ as i,_ as d,c as o}from"./index.28bb778f.js";import{l as m,b as g}from"./browser.d07825d6.js";const _="_qrcode_izshm_1",q="_qrcodeCanvas_izshm_4",u="_qrcodeLogo_izshm_8",v="_small_izshm_18";var s={qrcode:_,qrcodeCanvas:q,qrcodeLogo:u,small:v},h=l({props:{text:{type:String,default:""},size:{type:String,default:"200px"},logoSize:{type:String,default:"default"}},setup(e){const a=n(),t=()=>{g.toCanvas(a.value,e.text,{margin:1},c=>{c&&console.log(c),console.log("success")})};return r(()=>e.text,()=>{t()}),i(()=>{d(()=>{t()})}),()=>o("div",{class:s.qrcode,style:{width:e.size,height:e.size}},[o("canvas",{ref:a,class:s.qrcodeCanvas},null),o("img",{src:m,class:[s.qrcodeLogo,e.logoSize==="small"&&s.small]},null)])}});export{h as O};
