import{LitElement as t,html as e,css as r}from"../../lit/index.js";class QR extends t{static get styles(){return[r`
        :host {
          display: block;
        }
        qr-code {
          display: block;
        }
        #link {
          position: absolute;
          left: -10000px;
          top: auto;
          width: 1px;
          height: 1px;
          overflow: hidden;
        }
      `]}constructor(){super(),this.modulesize=4,this.margin=2,this.format="png",import("./lib/qr-code.js")}render(){return e`
      <qr-code
        id="qr"
        data="${this.data}"
        modulesize="${this.modulesize}"
        margin="${this.margin}"
        format="${this.format}"
      ></qr-code>
      <a href="${this.data}" id="link">${this.title}</a>
    `}static get tag(){return"q-r"}static get properties(){return{data:{type:String},title:{type:String},modulesize:{type:Number},margin:{type:Number},format:{type:String}}}static get haxProperties(){return new URL("./lib/q-r.haxProperties.json",import.meta.url).href}}customElements.define(QR.tag,QR);export{QR};