"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[47160],{35787:function(t,e,a){a.a(t,async function(t,n){try{a.r(e);var i,o=a(28430),c=a(57567),l=a(25979),s=a(12463),r=a(16472),u=(a(28706),a(15697)),f=a(57527),h=a(51209),m=a(49588),_=a(148),d=a(55682),p=a(87226),y=a(26041),C=t([d,p]);[d,p]=C.then?(await C)():C;var b=(0,m.Ik)({type:(0,m.eu)("state-label"),entity:(0,m.lq)((0,m.Yj)()),attribute:(0,m.lq)((0,m.Yj)()),prefix:(0,m.lq)((0,m.Yj)()),suffix:(0,m.lq)((0,m.Yj)()),style:(0,m.lq)((0,m.bz)()),title:(0,m.lq)((0,m.Yj)()),tap_action:(0,m.lq)(y.kn),hold_action:(0,m.lq)(y.kn),double_tap_action:(0,m.lq)(y.kn)}),g=[{name:"entity",required:!0,selector:{entity:{}}},{name:"attribute",selector:{attribute:{}},context:{filter_entity:"entity"}},{name:"prefix",selector:{text:{}}},{name:"suffix",selector:{text:{}}},{name:"title",selector:{text:{}}},{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:"more-info"}},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}]}]},{name:"style",selector:{object:{}}}],v=function(t){function e(){var t;(0,c.A)(this,e);for(var a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];return(t=(0,r.A)(this,e,[].concat(n)))._computeLabelCallback=function(e){return t.hass.localize("ui.panel.lovelace.editor.card.generic.".concat(e.name))||t.hass.localize("ui.panel.lovelace.editor.elements.".concat(e.name))||e.name},t}return(0,s.A)(e,t),(0,l.A)(e,[{key:"setConfig",value:function(t){(0,m.vA)(t,b),this._config=t}},{key:"render",value:function(){return this.hass&&this._config?(0,f.qy)(i||(i=(0,o.A)([" <ha-form .hass="," .data="," .schema="," .computeLabel="," @value-changed=","></ha-form> "])),this.hass,this._config,g,this._computeLabelCallback,this._valueChanged):f.s6}},{key:"_valueChanged",value:function(t){(0,_.r)(this,"config-changed",{config:t.detail.value})}}])}(f.WF);(0,u.Cg)([(0,h.MZ)({attribute:!1})],v.prototype,"hass",void 0),(0,u.Cg)([(0,h.wk)()],v.prototype,"_config",void 0),v=(0,u.Cg)([(0,h.EM)("hui-state-label-element-editor")],v),a.d(e,{HuiStateLabelElementEditor:function(){return v}}),n()}catch(k){n(k)}})}}]);
//# sourceMappingURL=47160.4fa5f56edb02ba78.js.map