export const __webpack_id__="8287";export const __webpack_ids__=["8287"];export const __webpack_modules__={41730:function(e,t,a){a.r(t),a.d(t,{HaFormFloat:()=>s});var i=a(69868),o=a(84922),r=a(11991),d=a(44017);a(80287);class s extends o.WF{focus(){this._input&&this._input.focus()}render(){return o.qy` <ha-textfield type="number" inputMode="decimal" step="any" .label="${this.label}" .helper="${this.helper}" helperPersistent .value="${void 0!==this.data?this.data:""}" .disabled="${this.disabled}" .required="${this.schema.required}" .autoValidate="${this.schema.required}" .suffix="${this.schema.description?.suffix}" .validationMessage="${this.schema.required?this.localize?.("ui.common.error_required"):void 0}" @input="${this._valueChanged}"></ha-textfield> `}updated(e){e.has("schema")&&this.toggleAttribute("own-margin",!!this.schema.required)}_valueChanged(e){const t=e.target.value.replace(",",".");let a;t.endsWith(".")||"-"!==t&&(""!==t&&(a=parseFloat(t),isNaN(a)&&(a=void 0)),this.data!==a&&(0,d.r)(this,"value-changed",{value:a}))}constructor(...e){super(...e),this.disabled=!1}}s.styles=o.AH`:host([own-margin]){margin-bottom:5px}ha-textfield{display:block}`,(0,i.__decorate)([(0,r.MZ)({attribute:!1})],s.prototype,"localize",void 0),(0,i.__decorate)([(0,r.MZ)({attribute:!1})],s.prototype,"schema",void 0),(0,i.__decorate)([(0,r.MZ)({attribute:!1})],s.prototype,"data",void 0),(0,i.__decorate)([(0,r.MZ)()],s.prototype,"label",void 0),(0,i.__decorate)([(0,r.MZ)()],s.prototype,"helper",void 0),(0,i.__decorate)([(0,r.MZ)({type:Boolean})],s.prototype,"disabled",void 0),(0,i.__decorate)([(0,r.P)("ha-textfield")],s.prototype,"_input",void 0),s=(0,i.__decorate)([(0,r.EM)("ha-form-float")],s)}};
//# sourceMappingURL=8287.8f924ed42e5b97f2.js.map