System.register(["./index-legacy-1cbe5d00.js","./browser-legacy-cef1ca35.js"],(function(e,t){"use strict";var r,o,n,a,i,s,l;return{setters:[e=>{r=e.d,o=e.r,n=e.w,a=e.y,i=e.z,s=e.a},e=>{l=e.b}],execute:function(){var d=document.createElement("style");d.textContent="._qrcode_1bxz6_1{position:relative}._qrcode_1bxz6_1 ._qrcodeCanvas_1bxz6_4{width:100%!important;height:100%!important}._qrcode_1bxz6_1 ._qrcodeLogo_1bxz6_8{position:absolute;top:50%;left:50%;margin-left:-.61333rem;margin-top:-.61333rem;width:1.06667rem!important;height:1.06667rem!important;border-radius:.10667rem;padding:.08rem;border-radius:.13333rem;background-color:#fff;box-sizing:content-box}._qrcode_1bxz6_1 ._qrcodeLogo_1bxz6_8._small_1bxz6_22{margin-left:-.34667rem;margin-top:-.34667rem;width:.53333rem!important;height:.53333rem!important}\n",document.head.appendChild(d);const _=""+new URL("smallLogo-517ff5bd.png",t.meta.url).href,c="_qrcode_1bxz6_1",m="_qrcodeCanvas_1bxz6_4",g="_qrcodeLogo_1bxz6_8",p="_small_1bxz6_22";e("M",r({props:{text:{type:String,default:""},size:{type:String,default:"200px"},logoSrc:{type:String,default:void 0},logoSize:{type:String,default:"default"}},setup(e){const t=o(),r=()=>{l.toCanvas(t.value,e.text,{margin:1},(e=>{e&&console.log(e),console.log("success")}))};return n((()=>e.text),(()=>{r()})),a((()=>{i((()=>{r()}))})),()=>s("div",{class:c,style:{width:e.size,height:e.size}},[s("canvas",{ref:t,class:m},null),s("img",{src:e.logoSrc||_,class:[g,"small"===e.logoSize&&p]},null)])}}))}}}));
