${this._group?t:this.hass.localize(`ui.panel.config.automation.editor.${this._params.type}s.add`)} ${this._group&&this._group!==this._params.group?a.dy``:a.dy``}
${!this._params.clipboardItem||this._filter||this._group&&!e.find((e=>e.key===this._params.clipboardItem))?"":a.dy` ${this.hass.localize(`ui.panel.config.automation.editor.${this._params.type}s.paste`)} ${this.hass.localize(`ui.panel.config.automation.editor.${this._params.type}s.type.${this._params.clipboardItem}.label`)} `} ${(0,d.r)(e,(e=>e.key),(e=>a.dy` ${e.name}
${e.description}
${e.icon?a.dy`${e.icon}`:e.iconPath?a.dy``:a.Ld} ${e.group?a.dy``:a.dy``} `))} `}},{kind:"method",key:"_back",value:function(){if(this._dialog.scrollToPos(0,0),!this._filter)return this._prev?(this._group=this._prev,void(this._prev=void 0)):void(this._group=void 0);this._filter=""}},{kind:"method",key:"_selected",value:function(e){this._dialog.scrollToPos(0,0);const t=e.currentTarget;if(t.group)return this._prev=this._group,void(this._group=t.value);this._params.add(t.value),this.closeDialog()}},{kind:"method",key:"_filterChanged",value:function(e){this._filter=e.detail.value}},{kind:"get",static:!0,key:"styles",value:function(){return[_.Qx,_.yu,a.iv`ha-dialog{--dialog-content-padding:0;--mdc-dialog-max-height:60vh}@media all and (min-width:550px){ha-dialog{--mdc-dialog-min-width:500px}}ha-icon-next{width:24px}ha-md-list{max-height:468px;max-width:100vw;--md-list-item-leading-space:24px;--md-list-item-trailing-space:24px}ha-md-list-item img{width:24px}search-input{display:block;margin:0 16px}`]}}]}}),a.oi);s()}catch(e){s(e)}}))},85019:function(e,t,i){i.d(t,{X1:function(){return s},u4:function(){return o},zC:function(){return n}});const s=e=>`https://brands.home-assistant.io/${e.brand?"brands/":""}${e.useFallback?"_/":""}${e.domain}/${e.darkOptimized?"dark_":""}${e.type}.png`,o=e=>e.split("/")[4],n=e=>e.startsWith("https://brands.home-assistant.io/")},27106:function(e,t,i){i.d(t,{z:function(){return n}});i(13334);var s=i(41298),o=i(98637);const n=(e,t)=>{const i=s.Z.config.getFn(e,t);return Array.isArray(i)?i.map((e=>(0,o._)(e??""))):(0,o._)(i??"")}}};
//# sourceMappingURL=5002.8e6097d4025e960c.js.map