@@ -269,9 +269,9 @@ function ce(e,t){return(({finisher:e,descriptor:t})=>(a,i)=>{var s;if(void 0===i
${this.getValue()}
- `}getValue(){const e=Qi(this.value*this.scaleFactor,this._step);return!e&&this.zeroValue?this.zeroValue:`${e} ${this.getUnit()}`}getUnit(){switch(this.unit){case Zi.Seconds:return vi("components.time_slider.seconds",this.hass.language);case Zi.Minutes:return vi("components.time_slider.minutes",this.hass.language);default:return""}}getSlider(){const e=Qi(this.value*this.scaleFactor,this._step);return q`
+ `}getValue(){const e=tn(this.value*this.scaleFactor,this._step);return!e&&this.zeroValue?this.zeroValue:`${e} ${this.getUnit()}`}getUnit(){switch(this.unit){case en.Seconds:return wi("components.time_slider.seconds",this.hass.language);case en.Minutes:return wi("components.time_slider.minutes",this.hass.language);default:return""}}getSlider(){const e=tn(this.value*this.scaleFactor,this._step);return q`
(a,i)=>{var s;if(void 0===i
?disabled=${this.disabled}
@change=${this.updateValue}
>
- `}updateValue(e){const t=Number(e.target.value);this.value=Qi(t,this._step)/this.scaleFactor}toggleUnit(){this.setUnit(this.unit==Zi.Minutes?Zi.Seconds:Zi.Minutes)}};Yi.styles=o`
+ `}updateValue(e){const t=Number(e.target.value);this.value=tn(t,this._step)/this.scaleFactor,Ci(this,"value-changed",{value:this.value})}toggleUnit(){this.setUnit(this.unit==en.Minutes?en.Seconds:en.Minutes)}};an.styles=o`
:host {
display: flex;
flex-direction: column;
@@ -322,13 +322,13 @@ function ce(e,t){return(({finisher:e,descriptor:t})=>(a,i)=>{var s;if(void 0===i
.disabled {
color: var(--disabled-text-color);
}
- `,t([de({type:Number})],Yi.prototype,"min",void 0),t([de({type:Number})],Yi.prototype,"max",void 0),t([de({type:Number})],Yi.prototype,"value",void 0),t([de({type:Number})],Yi.prototype,"step",void 0),t([de()],Yi.prototype,"scaleFactor",void 0),t([de({type:Zi})],Yi.prototype,"unit",void 0),t([de({type:Boolean})],Yi.prototype,"disabled",void 0),t([de({type:String})],Yi.prototype,"zeroValue",void 0),Yi=t([re("time-slider")],Yi);var Wi="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",Xi="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z";
+ `,t([de({type:Number})],an.prototype,"min",void 0),t([de({type:Number})],an.prototype,"max",void 0),t([de({type:Number})],an.prototype,"value",void 0),t([de({type:Number})],an.prototype,"step",void 0),t([de()],an.prototype,"scaleFactor",void 0),t([de({type:en})],an.prototype,"unit",void 0),t([de({type:Boolean})],an.prototype,"disabled",void 0),t([de({type:String})],an.prototype,"zeroValue",void 0),an=t([re("time-slider")],an);var nn="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",sn="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z";
/**
* @license
* Copyright 2017 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
-const Ji=2,es=6,ts=e=>(...t)=>({_$litDirective$:e,values:t});class as{constructor(e){}T(e,t,a){this.Σdt=e,this.M=t,this.Σct=a}S(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}let is=class extends ne{constructor(){super(...arguments),this.label="",this.items=[],this.clearable=!1,this.icons=!1,this.disabled=!1,this.invalid=!1,this.rowRenderer=e=>{const t=Mi(e.description);return this.icons?q`
+const rn=2,on=6,dn=e=>(...t)=>({_$litDirective$:e,values:t});class ln{constructor(e){}T(e,t,a){this.Σdt=e,this.M=t,this.Σct=a}S(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}let cn=class extends se{constructor(){super(...arguments),this.label="",this.items=[],this.clearable=!1,this.icons=!1,this.disabled=!1,this.invalid=!1,this.rowRenderer=e=>{const t=Ri(e.description);return this.icons?q`