"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["88031"],{17282:function(e,t,a){a.a(e,async function(e,s){try{a.r(t),a.d(t,{HuiMediaPlayerVolumeButtonsCardFeatureEditor:function(){return m}});a(62953);var o=a(40445),i=a(96196),n=a(77845),r=a(22786),u=a(1087),c=a(52763),h=e([c]);c=(h.then?(await h)():h)[0];let l,d=e=>e;class m extends i.WF{setConfig(e){this._config=e}render(){var e;if(!this.hass||!this._config)return i.s6;const t={type:"media-player-volume-buttons",step:null!==(e=this._config.step)&&void 0!==e?e:5},a=this._schema();return(0,i.qy)(l||(l=d` <ha-form .hass="${0}" .data="${0}" .schema="${0}" .computeLabel="${0}" @value-changed="${0}"></ha-form> `),this.hass,t,a,this._computeLabelCallback,this._valueChanged)}_valueChanged(e){(0,u.r)(this,"config-changed",{config:e.detail.value})}constructor(...e){super(...e),this._schema=(0,r.A)(()=>[{name:"step",selector:{number:{mode:"slider",step:1,min:1,max:100,unit_of_measurement:"%"}}}]),this._computeLabelCallback=e=>this.hass.localize(`ui.panel.lovelace.editor.features.types.media-player-volume-buttons.${e.name}`)}}(0,o.Cg)([(0,n.MZ)({attribute:!1})],m.prototype,"hass",void 0),(0,o.Cg)([(0,n.MZ)({attribute:!1})],m.prototype,"context",void 0),(0,o.Cg)([(0,n.wk)()],m.prototype,"_config",void 0),m=(0,o.Cg)([(0,n.EM)("hui-media-player-volume-buttons-card-feature-editor")],m),s()}catch(l){s(l)}})}}]);
//# sourceMappingURL=88031.522c5f4a7a9085fd.js.map