"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[96421],{30436:function(t,e,n){n.a(t,async function(t,a){try{n.r(e);n(28706),n(62062),n(26099);var o=n(49588),i=n(68930),c=n(26041),r=n(30013),l=n(24652),u=n(87226),s=t([u]);u=(s.then?(await s)():s)[0];var _=["more-info","navigate","url","perform-action","assist","none"],p=(0,o.kp)(r.H,(0,o.Ik)({entity:(0,o.lq)((0,o.Yj)()),name:(0,o.lq)(l.q),icon:(0,o.lq)((0,o.Yj)()),attribute:(0,o.lq)((0,o.Yj)()),unit:(0,o.lq)((0,o.Yj)()),theme:(0,o.lq)((0,o.Yj)()),state_color:(0,o.lq)((0,o.zM)()),tap_action:(0,o.lq)((0,u.W0)(c.kn,_)),hold_action:(0,o.lq)((0,u.W0)(c.kn,_)),double_tap_action:(0,o.lq)((0,u.W0)(c.kn,_)),footer:(0,o.lq)(i.zb)})),d={schema:[{name:"entity",required:!0,selector:{entity:{}}},{name:"name",selector:{entity_name:{}},context:{entity:"entity"}},{type:"grid",name:"",schema:[{name:"icon",selector:{icon:{}},context:{icon_entity:"entity"}},{name:"attribute",selector:{attribute:{}},context:{filter_entity:"entity"}},{name:"unit",selector:{text:{}}},{name:"theme",selector:{theme:{}}},{name:"state_color",selector:{boolean:{}}}]},{name:"interactions",type:"expandable",flatten:!0,iconPath:"M10,9A1,1 0 0,1 11,8A1,1 0 0,1 12,9V13.47L13.21,13.6L18.15,15.79C18.68,16.03 19,16.56 19,17.14V21.5C18.97,22.32 18.32,22.97 17.5,23H11C10.62,23 10.26,22.85 10,22.57L5.1,18.37L5.84,17.6C6.03,17.39 6.3,17.28 6.58,17.28H6.8L10,19V9M11,5A4,4 0 0,1 15,9C15,10.5 14.2,11.77 13,12.46V11.24C13.61,10.69 14,9.89 14,9A3,3 0 0,0 11,6A3,3 0 0,0 8,9C8,9.89 8.39,10.69 9,11.24V12.46C7.8,11.77 7,10.5 7,9A4,4 0 0,1 11,5Z",schema:[{name:"tap_action",selector:{ui_action:{actions:_,default_action:"more-info"}},context:u.Tq},{name:"",type:"optional_actions",flatten:!0,schema:["hold_action","double_tap_action"].map(function(t){return{name:t,selector:{ui_action:{actions:_,default_action:"none"}},context:u.Tq}})}]}],assertConfig:function(t){return(0,o.vA)(t,p)},computeLabel:function(t,e){switch(t.name){case"theme":return"".concat(e("ui.panel.lovelace.editor.card.generic.theme")," (").concat(e("ui.panel.lovelace.editor.card.config.optional"),")");case"interactions":return e("ui.panel.lovelace.editor.card.generic.interactions");case"tap_action":case"hold_action":case"double_tap_action":return"".concat(e("ui.panel.lovelace.editor.card.generic.".concat(t.name))," (").concat(e("ui.panel.lovelace.editor.card.config.optional"),")");default:return e("ui.panel.lovelace.editor.card.generic.".concat(t.name))}}};e.default=d,a()}catch(m){a(m)}})},30013:function(t,e,n){var a=n(49588),o=(0,a.Ik)({type:(0,a.Yj)(),view_layout:(0,a.bz)(),layout_options:(0,a.bz)(),grid_options:(0,a.bz)(),visibility:(0,a.bz)(),disabled:(0,a.lq)((0,a.zM)())});n.d(e,{H:function(){return o}})},75715:function(t,e,n){var a=n(49588),o=n(26041),i=(0,a.Ik)({entity:(0,a.Yj)(),name:(0,a.lq)((0,a.Yj)()),icon:(0,a.lq)((0,a.Yj)()),image:(0,a.lq)((0,a.Yj)()),show_name:(0,a.lq)((0,a.zM)()),show_icon:(0,a.lq)((0,a.zM)()),tap_action:(0,a.lq)(o.kn),hold_action:(0,a.lq)(o.kn),double_tap_action:(0,a.lq)(o.kn)});n.d(e,{J:function(){return i}})},68930:function(t,e,n){var a=n(73010),o=n(49588),i=n(26041),c=n(75715),r=(0,o.Ik)({type:(0,o.Yj)(),image:(0,o.Yj)(),tap_action:(0,o.lq)(i.kn),hold_action:(0,o.lq)(i.kn),double_tap_action:(0,o.lq)(i.kn),alt_text:(0,o.lq)((0,o.Yj)())}),l=(0,o.Ik)({type:(0,o.Yj)(),entities:(0,o.YO)(c.J)}),u=(0,o.Ik)({type:(0,o.Yj)(),entity:(0,o.Yj)(),detail:(0,o.lq)((0,o.ai)()),hours_to_show:(0,o.lq)((0,o.ai)())}),s=(0,o.OR)(function(t){if(t&&"object"===(0,a.A)(t)&&"type"in t)switch(t.type){case"buttons":return l;case"graph":return u;case"picture":return r}return(0,o.KC)([l,u,r])});n.d(e,{oe:function(){return u},zb:function(){return s}})}}]);
//# sourceMappingURL=96421.444e58b3a529411f.js.map