export const __rspack_esm_id="50777";export const __rspack_esm_ids=["50777"];export const __webpack_modules__={34296(t,e,a){var i=a(62826),n=a(96229),s=a(26069),o=a(91735),r=a(42034),l=a(96196),c=a(44457);class p extends n.k{renderOutline(){return this.filled?l.qy`<span class="filled"></span>`:super.renderOutline()}getContainerClasses(){return{...super.getContainerClasses(),active:this.active}}renderPrimaryContent(){return l.qy` <span class="leading icon" aria-hidden="true"> ${this.renderLeadingIcon()} </span> <span class="label">${this.label}</span> <span class="touch"></span> <span class="trailing leading icon" aria-hidden="true"> ${this.renderTrailingIcon()} </span> `}renderTrailingIcon(){return l.qy`<slot name="trailing-icon"></slot>`}constructor(...t){super(...t),this.filled=!1,this.active=!1}}p.styles=[o.R,r.R,s.R,l.AH`:host{--md-sys-color-primary:var(--primary-text-color);--md-sys-color-on-surface:var(--primary-text-color);--md-assist-chip-container-shape:var(
          --ha-assist-chip-container-shape,
          16px
        );--md-assist-chip-outline-color:var(--outline-color);--md-assist-chip-label-text-weight:400}.filled{display:flex;pointer-events:none;border-radius:inherit;inset:0;position:absolute;background-color:var(--ha-assist-chip-filled-container-color)}::slotted([slot=icon]),::slotted([slot=trailing-icon]){display:flex;--mdc-icon-size:var(--md-input-chip-icon-size, 18px);font-size:var(--_label-text-size)!important}.trailing.icon ::slotted(*),.trailing.icon svg{margin-inline-end:unset;margin-inline-start:var(--_icon-label-space)}::before{background:var(--ha-assist-chip-container-color,transparent);opacity:var(--ha-assist-chip-container-opacity, 1)}:where(.active)::before{background:var(--ha-assist-chip-active-container-color);opacity:var(--ha-assist-chip-active-container-opacity)}.label{font-family:var(--ha-font-family-body)}`],(0,i.Cg)([(0,c.MZ)({type:Boolean,reflect:!0})],p.prototype,"filled",void 0),(0,i.Cg)([(0,c.MZ)({type:Boolean})],p.prototype,"active",void 0),p=(0,i.Cg)([(0,c.EM)("ha-assist-chip")],p)},5745(t,e,a){var i=a(62826),n=a(4720),s=a(44457);class o extends n.Y{}o=(0,i.Cg)([(0,s.EM)("ha-chip-set")],o)},27722(t,e,a){a.d(e,{d:()=>s});var i=a(28978);function n(t,e,a,i){if(!a||!a.action||"none"===a.action)return"";let n=i?t.localize("ui.panel.lovelace.cards.picture-elements.hold"):t.localize("ui.panel.lovelace.cards.picture-elements.tap");switch(a.action){case"navigate":n+=` ${t.localize("ui.panel.lovelace.cards.picture-elements.navigate_to",{location:a.navigation_path})}`;break;case"url":n+=` ${t.localize("ui.panel.lovelace.cards.picture-elements.url",{url_path:a.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:a.service})}`;break;case"more-info":n+=`${t.localize("ui.panel.lovelace.cards.picture-elements.more_info",{name:e})}`}return n}const s=(t,e)=>{if(null===e.title)return"";if(e.title)return e.title;let a="",s="";if(e.entity&&(a=e.entity in t.states?(0,i.u)(t.states[e.entity]):e.entity),!e.tap_action&&!e.hold_action)return a;const o=e.tap_action?n(t,a,e.tap_action,!1):"",r=e.hold_action?n(t,a,e.hold_action,!0):"";return s=o+(o&&r?"\n":"")+r,s}},96314(t,e,a){a.a(t,async function(t,e){try{a(18111),a(61701);var i=a(62826),n=a(96196),s=a(44457),o=a(28978),r=a(74281),l=a(27722),c=a(19037),p=a(37544),d=a(97176),h=(a(34296),a(5745),a(14503)),u=t([r]);r=(u.then?(await u)():u)[0];class g extends n.WF{render(){return n.qy` <ha-chip-set class="ha-scrollbar"> ${(this.configEntities||[]).map(t=>{const e=this.hass.states[t.entity],a=t.show_name&&e||t.name&&!1!==t.show_name?t.name||(0,o.u)(e):"";return n.qy` <ha-assist-chip filled @action="${this._handleAction}" .actionHandler="${(0,c.T)({hasHold:(0,d.h)(t.hold_action),hasDoubleClick:(0,d.h)(t.double_tap_action)})}" .config="${t}" tabindex="0" .label="${a}"> ${!1!==t.show_icon?n.qy` <state-badge title="${(0,l.d)(this.hass,t)}" .hass="${this.hass}" .stateObj="${e}" .overrideIcon="${t.icon}" .overrideImage="${t.image}" .stateColor="${!0}" slot="icon"></state-badge> `:""} </ha-assist-chip> `})} </ha-chip-set> `}_handleAction(t){const e=t.currentTarget.config;(0,p.$)(this,this.hass,e,t.detail.action)}static get styles(){return[h.dp,n.AH`.ha-scrollbar{padding:12px;padding-top:var(--padding-top,8px);padding-bottom:var(--padding-bottom,8px);width:100%;overflow-x:auto;overflow-y:hidden;white-space:nowrap;box-sizing:border-box;display:flex;flex-wrap:wrap}state-badge{display:inline-flex;line-height:inherit;color:var(--secondary-text-color);align-items:center;justify-content:center}@media all and (max-width:450px),all and (max-height:500px){.ha-scrollbar{flex-wrap:nowrap}}`]}}(0,i.Cg)([(0,s.wk)()],g.prototype,"hass",void 0),(0,i.Cg)([(0,s.MZ)({attribute:!1})],g.prototype,"configEntities",void 0),g=(0,i.Cg)([(0,s.EM)("hui-buttons-base")],g),e()}catch(t){e(t)}})},65728(t,e,a){a.a(t,async function(t,i){try{a.r(e),a.d(e,{HuiButtonsRow:()=>h});a(18111),a(61701);var n=a(62826),s=a(96196),o=a(44457),r=a(46190),l=a(71727),c=a(20939),p=a(96314),d=t([p]);p=(d.then?(await d)():d)[0];class h extends s.WF{static getStubConfig(){return{entities:[]}}setConfig(t){this._configEntities=(0,c.L)(t.entities).map(t=>({tap_action:{action:t.entity&&r.FD.has((0,l.m)(t.entity))?"toggle":"more-info"},hold_action:{action:"more-info"},...t}))}render(){return s.qy` <hui-buttons-base .hass="${this.hass}" .configEntities="${this._configEntities}"></hui-buttons-base> `}}(0,n.Cg)([(0,o.MZ)({attribute:!1})],h.prototype,"hass",void 0),(0,n.Cg)([(0,o.wk)()],h.prototype,"_configEntities",void 0),h=(0,n.Cg)([(0,o.EM)("hui-buttons-row")],h),i()}catch(t){i(t)}})}};
//# sourceMappingURL=50777.2e86ef46aabce531.js.map