"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[70546],{38089:function(t,e,n){n.a(t,async function(t,a){try{n.r(e);var o,i=n(28430),c=n(57567),l=n(25979),s=n(12463),r=n(16472),u=(n(28706),n(15697)),h=n(57527),d=n(51209),_=n(49588),f=n(148),m=n(55682),p=n(87226),g=n(26041),y=n(30013),v=n(24652),C=n(13263),b=t([m,p]);[m,p]=b.then?(await b)():b;var k=(0,_.kp)(y.H,(0,_.Ik)({name:(0,_.lq)(v.q),entity:(0,_.lq)((0,_.Yj)()),theme:(0,_.lq)((0,_.Yj)()),icon:(0,_.lq)((0,_.Yj)()),tap_action:(0,_.lq)(g.kn),hold_action:(0,_.lq)(g.kn),double_tap_action:(0,_.lq)(g.kn)})),q=[{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:"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:{default_action:"toggle"}},context:p.Tq},{name:"hold_action",selector:{ui_action:{default_action:"more-info"}},context:p.Tq},{name:"",type:"optional_actions",flatten:!0,schema:[{name:"double_tap_action",selector:{ui_action:{default_action:"none"}},context:p.Tq}]}]}],A=function(t){function e(){var t;(0,c.A)(this,e);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return(t=(0,r.A)(this,e,[].concat(a)))._computeLabelCallback=function(e){switch(e.name){case"theme":case"hold_action":case"double_tap_action":return"".concat(t.hass.localize("ui.panel.lovelace.editor.card.generic.".concat(e.name))," (").concat(t.hass.localize("ui.panel.lovelace.editor.card.config.optional"),")");default:return t.hass.localize("ui.panel.lovelace.editor.card.generic.".concat(e.name))}},t}return(0,s.A)(e,t),(0,l.A)(e,[{key:"setConfig",value:function(t){(0,_.vA)(t,k),this._config=t}},{key:"render",value:function(){return this.hass&&this._config?(0,h.qy)(o||(o=(0,i.A)([" <ha-form .hass="," .data="," .schema="," .computeLabel="," @value-changed=","></ha-form> "])),this.hass,this._config,q,this._computeLabelCallback,this._valueChanged):h.s6}},{key:"_valueChanged",value:function(t){(0,f.r)(this,"config-changed",{config:t.detail.value})}}])}(h.WF);A.styles=C.U,(0,u.Cg)([(0,d.MZ)({attribute:!1})],A.prototype,"hass",void 0),(0,u.Cg)([(0,d.wk)()],A.prototype,"_config",void 0),A=(0,u.Cg)([(0,d.EM)("hui-light-card-editor")],A),n.d(e,{HuiLightCardEditor:function(){return A}}),a()}catch(L){a(L)}})},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}})}}]);
//# sourceMappingURL=70546.25530047ec4eb97a.js.map