"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["96917"],{14580:function(t,e,a){a.a(t,async function(t,n){try{a.r(e),a.d(e,{HuiLightCardEditor:function(){return q}});a(62953);var i=a(40445),o=a(96196),c=a(77845),s=a(63533),l=a(1087),r=a(52763),h=a(999),u=a(91408),d=a(84698),_=a(44155),m=a(7382),p=t([r,h]);[r,h]=p.then?(await p)():p;let f,g=t=>t;const y="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",C=(0,s.kp)(d.H,(0,s.Ik)({name:(0,s.lq)(_.q),entity:(0,s.lq)((0,s.Yj)()),theme:(0,s.lq)((0,s.Yj)()),icon:(0,s.lq)((0,s.Yj)()),tap_action:(0,s.lq)(u.kn),hold_action:(0,s.lq)(u.kn),double_tap_action:(0,s.lq)(u.kn)})),b=[{name:"entity",required:!0,selector:{entity:{domain:"light"}}},{name:"name",selector:{entity_name:{}},context:{entity:"entity"}},{type:"grid",name:"",schema:[{name:"icon",selector:{icon:{}},context:{icon_entity:"entity"}}]},{name:"theme",selector:{theme:{}}},{name:"interactions",type:"expandable",flatten:!0,iconPath:y,schema:[{name:"tap_action",selector:{ui_action:{default_action:"toggle"}},context:h.Tq},{name:"hold_action",selector:{ui_action:{default_action:"more-info"}},context:h.Tq},{name:"",type:"optional_actions",flatten:!0,schema:[{name:"double_tap_action",selector:{ui_action:{default_action:"none"}},context:h.Tq}]}]}];class q extends o.WF{setConfig(t){(0,s.vA)(t,C),this._config=t}render(){return this.hass&&this._config?(0,o.qy)(f||(f=g` <ha-form .hass="${0}" .data="${0}" .schema="${0}" .computeLabel="${0}" @value-changed="${0}"></ha-form> `),this.hass,this._config,b,this._computeLabelCallback,this._valueChanged):o.s6}_valueChanged(t){(0,l.r)(this,"config-changed",{config:t.detail.value})}constructor(...t){super(...t),this._computeLabelCallback=t=>{switch(t.name){case"theme":case"hold_action":case"double_tap_action":return`${this.hass.localize(`ui.panel.lovelace.editor.card.generic.${t.name}`)} (${this.hass.localize("ui.panel.lovelace.editor.card.config.optional")})`;default:return this.hass.localize(`ui.panel.lovelace.editor.card.generic.${t.name}`)}}}}q.styles=m.U,(0,i.Cg)([(0,c.MZ)({attribute:!1})],q.prototype,"hass",void 0),(0,i.Cg)([(0,c.wk)()],q.prototype,"_config",void 0),q=(0,i.Cg)([(0,c.EM)("hui-light-card-editor")],q),n()}catch(f){n(f)}})},84698:function(t,e,a){a.d(e,{H:function(){return i}});var n=a(63533);const i=(0,n.Ik)({type:(0,n.Yj)(),view_layout:(0,n.bz)(),layout_options:(0,n.bz)(),grid_options:(0,n.bz)(),visibility:(0,n.bz)(),disabled:(0,n.lq)((0,n.zM)())})}}]);
//# sourceMappingURL=96917.e41a88aab2aa27b8.js.map