"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["70610"],{13129:function(e,t,a){a.r(t),a.d(t,{HuiStateBadgeElementEditor:function(){return g}});var n,o=a(72153),i=a(44734),c=a(43080),l=a(69683),s=a(6454),r=(a(28706),a(40445)),u=a(96196),h=a(77845),d=a(63533),f=a(1087),m=(a(52763),a(91408)),_=(0,d.Ik)({type:(0,d.eu)("state-badge"),entity:(0,d.lq)((0,d.Yj)()),style:(0,d.lq)((0,d.bz)()),name:(0,d.lq)((0,d.Yj)()),title:(0,d.lq)((0,d.Yj)()),tap_action:(0,d.lq)(m.kn),hold_action:(0,d.lq)(m.kn),double_tap_action:(0,d.lq)(m.kn)}),p=[{name:"entity",required:!0,selector:{entity:{}}},{name:"name",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"}}},{name:"hold_action",selector:{ui_action:{default_action:"more-info"}}},{name:"",type:"optional_actions",flatten:!0,schema:[{name:"double_tap_action",selector:{ui_action:{default_action:"none"}}}]}]},{name:"style",selector:{object:{}}}],g=function(e){function t(){var e;(0,i.A)(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return(e=(0,l.A)(this,t,[].concat(n)))._computeLabelCallback=function(t){return e.hass.localize("ui.panel.lovelace.editor.card.generic.".concat(t.name))||e.hass.localize("ui.panel.lovelace.editor.elements.".concat(t.name))||t.name},e}return(0,s.A)(t,e),(0,c.A)(t,[{key:"setConfig",value:function(e){(0,d.vA)(e,_),this._config=e}},{key:"render",value:function(){return this.hass&&this._config?(0,u.qy)(n||(n=(0,o.A)([' <ha-form .hass="','" .data="','" .schema="','" .computeLabel="','" @value-changed="','"></ha-form> '])),this.hass,this._config,p,this._computeLabelCallback,this._valueChanged):u.s6}},{key:"_valueChanged",value:function(e){(0,f.r)(this,"config-changed",{config:e.detail.value})}}])}(u.WF);(0,r.Cg)([(0,h.MZ)({attribute:!1})],g.prototype,"hass",void 0),(0,r.Cg)([(0,h.wk)()],g.prototype,"_config",void 0),g=(0,r.Cg)([(0,h.EM)("hui-state-badge-element-editor")],g)}}]);
//# sourceMappingURL=70610.a32eba1c8cbd60cc.js.map