export const __rspack_esm_id=26410;export const __rspack_esm_ids=[26410];export const __webpack_modules__={1307(t,e,i){var a=i(81711);function n(t,e,i,a){if(!i||!i.action||"none"===i.action)return"";let n=a?t.localize("ui.panel.lovelace.cards.picture-elements.hold"):t.localize("ui.panel.lovelace.cards.picture-elements.tap");switch(i.action){case"navigate":n+=` ${t.localize("ui.panel.lovelace.cards.picture-elements.navigate_to",{location:i.navigation_path})}`;break;case"url":n+=` ${t.localize("ui.panel.lovelace.cards.picture-elements.url",{url_path:i.url_path})}`;break;case"toggle":n+=` ${t.localize("ui.panel.lovelace.cards.picture-elements.toggle",{name:e})}`;break;case"call-service":n+=`${t.localize("ui.panel.lovelace.cards.picture-elements.perform_action",{name:i.service})}`;break;case"more-info":n+=`${t.localize("ui.panel.lovelace.cards.picture-elements.more_info",{name:e})}`}return n}i.d(e,{},{d:(t,e)=>{if(null===e.title)return"";if(e.title)return e.title;let i="";if(e.entity&&(i=e.entity in t.states?(0,a.u)(t.states[e.entity]):e.entity),!e.tap_action&&!e.hold_action)return i;const o=e.tap_action?n(t,i,e.tap_action,!1):"",s=e.hold_action?n(t,i,e.hold_action,!0):"";return o+(o&&s?"\n":"")+s}})},77561(t,e,i){i.a(t,async function(t,e){try{i(18111),i(61701);var a=i(15697),n=i(358),o=i(57527),s=i(79224),c=i(49938),r=i(67259),l=i(81711),p=i(18734),h=i(80189),d=i(1307),u=i(14936),g=i(42239),_=i(49511),f=(i(25695),i(8552),i(76730)),b=t([p]);p=(b.then?(await b)():b)[0];class m extends o.WF{render(){return o.qy` <ha-chip-set class="ha-scrollbar"> ${(this.configEntities||[]).map(t=>{const e=this._entityStates[t.entity],i=t.show_name&&e||t.name&&!1!==t.show_name?t.name||(e?(0,l.u)(e):""):"";return o.qy` <ha-assist-chip filled @action=${this._handleAction} .actionHandler=${(0,u.T)({hasHold:(0,_.h)(t.hold_action),hasDoubleClick:(0,_.h)(t.double_tap_action)})} .config=${t} tabindex="0" .label=${i}> ${!1!==t.show_icon?o.qy` <state-badge title=${(0,d.d)(this.hass,t)} .stateObj=${e} .overrideIcon=${t.icon} .overrideImage=${t.image} .stateColor=${!0} slot="icon"></state-badge> `:""} </ha-assist-chip> `})} </ha-chip-set> `}_handleAction(t){(0,g.$)(this,this.hass,t.currentTarget.config,t.detail.action)}static get styles(){return[f.dp,o.AH`.ha-scrollbar{padding:12px;padding-top:var(--padding-top,8px);padding-bottom:var(--padding-bottom,8px);white-space:nowrap;box-sizing:border-box;flex-wrap:wrap;width:100%;display:flex;overflow:auto hidden}state-badge{line-height:inherit;color:var(--secondary-text-color);justify-content:center;align-items:center;display:inline-flex}@media (width<=450px),(height<=500px){.ha-scrollbar{flex-wrap:nowrap}}`]}constructor(...t){super(...t),this._entityStates={}}}(0,a.Cg)([(0,s.MZ)({attribute:!1})],m.prototype,"hass",void 0),(0,a.Cg)([(0,s.MZ)({attribute:!1})],m.prototype,"configEntities",void 0),(0,a.Cg)([(0,s.wk)(),(0,n.Fg)({context:h.iN,subscribe:!0}),(0,r.p)({transformer:function(t){const e={};if(t)for(const i of this.configEntities||[])e[i.entity]=t[i.entity];return(0,c.gu)(this._entityStates,e)},watch:["configEntities"]})],m.prototype,"_entityStates",void 0),m=(0,a.Cg)([(0,s.EM)("hui-buttons-base")],m),e()}catch(t){e(t)}})},29105(t,e,i){i.a(t,async function(t,a){try{i.r(e);i(18111),i(61701);var n=i(15697),o=i(57527),s=i(79224),c=i(3899),r=i(45602),l=i(13010),p=i(77561),h=t([p]);p=(h.then?(await h)():h)[0];class d extends o.WF{static getStubConfig(){return{entities:[]}}setConfig(t){this._configEntities=(0,l.L)(t.entities).map(t=>({tap_action:{action:t.entity&&c.FD.has((0,r.m)(t.entity))?"toggle":"more-info"},hold_action:{action:"more-info"},...t}))}render(){return o.qy` <hui-buttons-base .hass=${this.hass} .configEntities=${this._configEntities}></hui-buttons-base> `}}(0,n.Cg)([(0,s.MZ)({attribute:!1})],d.prototype,"hass",void 0),(0,n.Cg)([(0,s.wk)()],d.prototype,"_configEntities",void 0),d=(0,n.Cg)([(0,s.EM)("hui-buttons-row")],d),i.d(e,{HuiButtonsRow:()=>d}),a()}catch(t){a(t)}})}};
//# sourceMappingURL=26410.c79f7dfc8d7a1c2e.js.map