import{QRCode}from"@theme/qr-code-generator";class QRCodeImage extends HTMLElement{#width=72;#height=72;#alt="";connectedCallback(){const widthAttribute=this.getAttribute("width")??"";this.#width=isNaN(parseInt(widthAttribute))?this.#width:parseInt(widthAttribute);const heightAttribute=this.getAttribute("height")??"";this.#height=isNaN(parseInt(heightAttribute))?this.#height:parseInt(heightAttribute),this.#alt=this.getAttribute("alt")??this.#alt,new QRCode(this,{text:this.getAttribute("data-identifier")||"",width:this.#width,height:this.#height,alt:this.#alt})}}customElements.get("qr-code-image")||customElements.define("qr-code-image",QRCodeImage);
//# sourceMappingURL=/s/files/1/0677/1399/0759/t/1/assets/qr-code-image.js.map?v=1783128614
