"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[67712],{46563:function(t,i,e){e.r(i);var n,o,a=e(28430),s=e(57567),r=e(25979),c=e(12463),h=e(16472),u=(e(16280),e(15697)),l=e(57527),d=e(51209),f=e(48612),g=e(77811),_=(e(75041),e(14936)),p=e(42239),k=e(49511),v=function(t){function i(){return(0,s.A)(this,i),(0,h.A)(this,i,arguments)}return(0,c.A)(i,t),(0,r.A)(i,[{key:"getCardSize",value:function(){return 3}},{key:"setConfig",value:function(t){if(!t||!t.image)throw new Error("Image required");this._config=t}},{key:"shouldUpdate",value:function(t){return 1!==t.size||!t.has("hass")||!t.get("hass")}},{key:"render",value:function(){var t;if(!this._config||!this.hass)return l.s6;var i=(0,k.A)(this._config);return(0,l.qy)(n||(n=(0,a.A)([" <img alt="," @action="," .actionHandler="," tabindex="," class="," src="," /> "])),(0,g.J)(null===(t=this._config)||void 0===t?void 0:t.alt_text),this._handleAction,(0,_.T)({hasHold:(0,k.h)(this._config.hold_action),hasDoubleClick:(0,k.h)(this._config.double_tap_action)}),(0,g.J)(i?0:void 0),(0,f.H)({clickable:i}),this.hass.hassUrl(this._config.image))}},{key:"_handleAction",value:function(t){(0,p.$)(this,this.hass,this._config,t.detail.action)}}],[{key:"getStubConfig",value:function(){return{image:"https://www.home-assistant.io/images/lovelace/header-footer/balloons-header.png",tap_action:{action:"none"},hold_action:{action:"none"}}}}])}(l.WF);v.styles=(0,l.AH)(o||(o=(0,a.A)(["img.clickable{cursor:pointer}img{-webkit-touch-callout:none;width:100%;display:block}"]))),(0,u.Cg)([(0,d.MZ)({attribute:!1})],v.prototype,"hass",void 0),(0,u.Cg)([(0,d.MZ)()],v.prototype,"type",void 0),(0,u.Cg)([(0,d.wk)()],v.prototype,"_config",void 0),v=(0,u.Cg)([(0,d.EM)("hui-picture-header-footer")],v),e.d(i,{HuiPictureHeaderFooter:function(){return v}})}}]);
//# sourceMappingURL=67712.806b8ad4bf3a04a7.js.map