"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["59268"],{85423:function(t,e,n){n.a(t,async function(t,a){try{n.r(e);var o=n(63533),i=n(30345),c=n(91408),l=n(84698),r=n(44155),s=n(999),u=t([s]);s=(u.then?(await u)():u)[0];const _="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",p=["more-info","navigate","url","perform-action","assist","none"],d=(0,o.kp)(l.H,(0,o.Ik)({entity:(0,o.lq)((0,o.Yj)()),name:(0,o.lq)(r.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,s.W0)(c.kn,p)),hold_action:(0,o.lq)((0,s.W0)(c.kn,p)),double_tap_action:(0,o.lq)((0,s.W0)(c.kn,p)),footer:(0,o.lq)(i.zb)})),m={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:_,schema:[{name:"tap_action",selector:{ui_action:{actions:p,default_action:"more-info"}},context:s.Tq},{name:"",type:"optional_actions",flatten:!0,schema:["hold_action","double_tap_action"].map(t=>({name:t,selector:{ui_action:{actions:p,default_action:"none"}},context:s.Tq}))}]}],assertConfig:t=>(0,o.vA)(t,d),computeLabel:(t,e)=>{switch(t.name){case"theme":return`${e("ui.panel.lovelace.editor.card.generic.theme")} (${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`${e(`ui.panel.lovelace.editor.card.generic.${t.name}`)} (${e("ui.panel.lovelace.editor.card.config.optional")})`;default:return e(`ui.panel.lovelace.editor.card.generic.${t.name}`)}}};e.default=m,a()}catch(_){a(_)}})},84698:function(t,e,n){n.d(e,{H:function(){return o}});var a=n(63533);const 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)())})},55904:function(t,e,n){n.d(e,{J:function(){return i}});var a=n(63533),o=n(91408);const 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)})},30345:function(t,e,n){n.d(e,{oe:function(){return r},zb:function(){return s}});var a=n(63533),o=n(91408),i=n(55904);const c=(0,a.Ik)({type:(0,a.Yj)(),image:(0,a.Yj)(),tap_action:(0,a.lq)(o.kn),hold_action:(0,a.lq)(o.kn),double_tap_action:(0,a.lq)(o.kn),alt_text:(0,a.lq)((0,a.Yj)())}),l=(0,a.Ik)({type:(0,a.Yj)(),entities:(0,a.YO)(i.J)}),r=(0,a.Ik)({type:(0,a.Yj)(),entity:(0,a.Yj)(),detail:(0,a.lq)((0,a.ai)()),hours_to_show:(0,a.lq)((0,a.ai)())}),s=(0,a.OR)(t=>{if(t&&"object"==typeof t&&"type"in t)switch(t.type){case"buttons":return l;case"graph":return r;case"picture":return c}return(0,a.KC)([l,r,c])})}}]);
//# sourceMappingURL=59268.76a7248a5ce2c9ce.js.map