export const __rspack_esm_id="17813";export const __rspack_esm_ids=["17813"];export const __webpack_modules__={97588(t,i,o){o.r(i),o.d(i,{HuiPictureHeaderFooter:()=>d});var e=o(62826),s=o(96196),a=o(97735),n=o(94333),r=o(32288),c=(o(76776),o(19037)),h=o(37544),_=o(97176);class d extends s.WF{static getStubConfig(){return{image:"https://www.home-assistant.io/images/lovelace/header-footer/balloons-header.png",tap_action:{action:"none"},hold_action:{action:"none"}}}getCardSize(){return 3}setConfig(t){if(!t||!t.image)throw new Error("Image required");this._config=t}shouldUpdate(t){return 1!==t.size||!t.has("hass")||!t.get("hass")}render(){if(!this._config||!this.hass)return s.s6;const t=Boolean(this._config.tap_action||this._config.hold_action);return s.qy` <img alt="${(0,r.J)(this._config?.alt_text)}" @action="${this._handleAction}" .actionHandler="${(0,c.T)({hasHold:(0,_.h)(this._config.hold_action),hasDoubleClick:(0,_.h)(this._config.double_tap_action)})}" tabindex="${(0,r.J)(t?0:void 0)}" class="${(0,n.H)({clickable:t})}" src="${this.hass.hassUrl(this._config.image)}"> `}_handleAction(t){(0,h.$)(this,this.hass,this._config,t.detail.action)}}d.styles=s.AH`img.clickable{cursor:pointer}img{display:block;width:100%}`,(0,e.Cg)([(0,a.MZ)({attribute:!1})],d.prototype,"hass",void 0),(0,e.Cg)([(0,a.MZ)()],d.prototype,"type",void 0),(0,e.Cg)([(0,a.wk)()],d.prototype,"_config",void 0),d=(0,e.Cg)([(0,a.EM)("hui-picture-header-footer")],d)}};
//# sourceMappingURL=17813.50879f5b6dd65245.js.map