1export const __rspack_esm_id=8781;export const __rspack_esm_ids=[8781];export const __webpack_modules__={17824(e,t,r){r.a(e,async function(e,a){try{r.r(t);r(18111),r(81148),r(61701);var o=r(28861),s=r(11467),i=r(82476),c=r(4661),h=r(52937),n=r(61717),d=r(72411),l=e([h]);h=(l.then?(await l)():l)[0];const p=3,g=e=>{const t=e.split(",").map(e=>parseInt(e,10));return 3===t.length&&t.every(e=>!Number.isNaN(e))?t:void 0};class m extends s.WF{willUpdate(e){super.willUpdate(e),(e.has("data")||e.has("scale")||e.has("width")||e.has("margin")||e.has("maskPattern")||e.has("errorCorrectionLevel"))&&this._error&&(this._error=void 0)}updated(e){const t=this._canvas;if(t&&this.data&&(e.has("data")||e.has("scale")||e.has("width")||e.has("margin")||e.has("maskPattern")||e.has("errorCorrectionLevel")||e.has("centerImage"))){const e=getComputedStyle(this),r=g(e.getPropertyValue("--rgb-primary-text-color")),a=g(e.getPropertyValue("--rgb-card-background-color")),o=a?(0,n.v2)(a):"#ffffff";let s=r?(0,n.v2)(r):"#000000";if((!r||!a||(0,d.$W)(r,a)<p)&&(s=(0,d.gJ)(o)),c.toCanvas(t,this.data,{errorCorrectionLevel:this.errorCorrectionLevel||(this.centerImage?"Q":"M"),width:this.width,scale:this.scale,margin:this.margin,maskPattern:this.maskPattern,color:{light:o,dark:s}}).catch(e=>{this._error=e.message}),this.centerImage){const e=this._canvas.getContext("2d"),r=new Image;r.src=this.centerImage,r.onload=()=>{e?.drawImage(r,.375*t.width,.375*t.height,t.width/4,t.height/4)}}}}render(){return this.data?this._error?s.qy`<ha-alert alert-type="error">${this._error}</ha-alert>`:s.qy`<canvas></canvas>`:s.s6}constructor(...e){super(...e),this.errorCorrectionLevel="medium",this.width=4,this.scale=4,this.margin=4}}m.styles=s.AH`:host{display:block}`,(0,o.Cg)([(0,i.MZ)()],m.prototype,"data",void 0),(0,o.Cg)([(0,i.MZ)({attribute:"error-correction-level"})],m.prototype,"errorCorrectionLevel",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],m.prototype,"width",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],m.prototype,"scale",void 0),(0,o.Cg)([(0,i.MZ)({type:Number})],m.prototype,"margin",void 0),(0,o.Cg)([(0,i.MZ)({attribute:!1})],m.prototype,"maskPattern",void 0),(0,o.Cg)([(0,i.MZ)({attribute:"center-image"})],m.prototype,"centerImage",void 0),(0,o.Cg)([(0,i.wk)()],m.prototype,"_error",void 0),(0,o.Cg)([(0,i.P)("canvas")],m.prototype,"_canvas",void 0),m=(0,o.Cg)([(0,i.EM)("ha-qr-code")],m),r.d(t,{HaQrCode:()=>m}),a()}catch(e){a(e)}})},47964(e,t,r){r.a(e,async function(e,a){try{r.r(t);var o=r(28861),s=r(11467),i=r(82476),c=r(17824),h=e([c]);c=(h.then?(await h)():h)[0];class n extends s.WF{render(){return s.qy`<ha-qr-code .data=${this.selector.qr_code?.data} .scale=${this.selector.qr_code?.scale} .errorCorrectionLevel=${this.selector.qr_code?.error_correction_level} .centerImage=${this.selector.qr_code?.center_image}></ha-qr-code>`}}n.styles=s.AH`ha-qr-code{text-align:center}`,(0,o.Cg)([(0,i.MZ)({attribute:!1})],n.prototype,"selector",void 0),n=(0,o.Cg)([(0,i.EM)("ha-selector-qr_code")],n),r.d(t,{HaSelectorQRCode:()=>n}),a()}catch(e){a(e)}})}}; 2//# sourceMappingURL=8781.13ecd7f7a4a05b8e.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.