"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["17813"],{97588:function(t,i,e){e.r(i),e.d(i,{HuiPictureHeaderFooter:function(){return k}});var o,n,a=e(72153),s=e(44734),r=e(43080),c=e(69683),h=e(6454),u=(e(16280),e(40445)),l=e(96196),d=e(77845),f=e(94333),g=e(32288),_=(e(76776),e(19037)),p=e(37544),v=e(97176),k=function(t){function i(){return(0,s.A)(this,i),(0,c.A)(this,i,arguments)}return(0,h.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=Boolean(this._config.tap_action||this._config.hold_action);return(0,l.qy)(o||(o=(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,v.h)(this._config.hold_action),hasDoubleClick:(0,v.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);k.styles=(0,l.AH)(n||(n=(0,a.A)(["img.clickable{cursor:pointer}img{display:block;width:100%}"]))),(0,u.Cg)([(0,d.MZ)({attribute:!1})],k.prototype,"hass",void 0),(0,u.Cg)([(0,d.MZ)()],k.prototype,"type",void 0),(0,u.Cg)([(0,d.wk)()],k.prototype,"_config",void 0),k=(0,u.Cg)([(0,d.EM)("hui-picture-header-footer")],k)}}]);
//# sourceMappingURL=17813.9ddfe22c51887a41.js.map