index-legacy-2c7b85a2.js 1.3 KB

1
  1. System.register(["./index-legacy-e6be1dcb.js","./browser-legacy-cef1ca35.js"],(function(e,t){"use strict";var r,s,i,o,a,m,n;return{setters:[e=>{r=e.d,s=e.r,i=e.w,o=e.y,a=e.z,m=e.a},e=>{n=e.b}],execute:function(){var l=document.createElement("style");l.textContent="._qrcode_izshm_1{position:relative}._qrcode_izshm_1 ._qrcodeCanvas_izshm_4{width:100%!important;height:100%!important}._qrcode_izshm_1 ._qrcodeLogo_izshm_8{position:absolute;top:50%;left:50%;margin-left:-.53333rem;margin-top:-.53333rem;width:1.06667rem!important;height:1.06667rem!important;border-radius:.10667rem}._qrcode_izshm_1 ._qrcodeLogo_izshm_8._small_izshm_18{margin-left:-.26667rem;margin-top:-.26667rem;width:.53333rem!important;height:.53333rem!important}\n",document.head.appendChild(l);const _=""+new URL("smallLogo-517ff5bd.png",t.meta.url).href,c="_qrcode_izshm_1",d="_qrcodeCanvas_izshm_4",h="_qrcodeLogo_izshm_8",g="_small_izshm_18";e("M",r({props:{text:{type:String,default:""},size:{type:String,default:"200px"},logoSize:{type:String,default:"default"}},setup(e){const t=s(),r=()=>{n.toCanvas(t.value,e.text,{margin:1},(e=>{e&&console.log(e),console.log("success")}))};return i((()=>e.text),(()=>{r()})),o((()=>{a((()=>{r()}))})),()=>m("div",{class:c,style:{width:e.size,height:e.size}},[m("canvas",{ref:t,class:d},null),m("img",{src:_,class:[h,"small"===e.logoSize&&g]},null)])}}))}}}));