"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[61492],{98641:function(t,o,a){a.a(t,async function(t,i){try{a.r(o);var e,r,n,l=a(97058),s=a(28430),d=a(57567),h=a(25979),u=a(12463),p=a(16472),c=(a(69476),a(52675),a(89463),a(28706),a(74423),a(27495),a(99449),a(21699),a(25440),a(15697)),v=a(57527),y=a(51209),f=a(148),w=a(57406),g=t([w]);w=(g.then?(await g)():g)[0];var m=function(t){function o(){var t;(0,d.A)(this,o);for(var a=arguments.length,i=new Array(a),e=0;e<a;e++)i[e]=arguments[e];return(t=(0,p.A)(this,o,[].concat(i))).disabled=!1,t}return(0,u.A)(o,t),(0,h.A)(o,[{key:"reportValidity",value:function(){var t,o;return null===(t=null===(o=this._input)||void 0===o?void 0:o.reportValidity())||void 0===t||t}},{key:"render",value:function(){var t,o,a;return(0,v.qy)(e||(e=(0,s.A)([' <ha-input type="number" inputMode="decimal" step="any" .label='," .hint="," .value="," .disabled="," .required="," .autoValidate="," .validationMessage="," @input=","> "," </ha-input> "])),this.label,this.helper,void 0!==this.data?this.data:"",this.disabled,this.schema.required,this.schema.required,this.schema.required?null===(t=this.localize)||void 0===t?void 0:t.call(this,"ui.common.error_required"):void 0,this._handleInput,null!==(o=this.schema.description)&&void 0!==o&&o.suffix?(0,v.qy)(r||(r=(0,s.A)(['<span slot="end">',"</span>"])),null===(a=this.schema.description)||void 0===a?void 0:a.suffix):v.s6)}},{key:"updated",value:function(t){t.has("schema")&&this.toggleAttribute("own-margin",!!this.schema.required)}},{key:"_handleInput",value:function(t){var o,a,i=(null!==(o=t.target.value)&&void 0!==o?o:"").replace(",",".");i.endsWith(".")||i.includes(".")&&i.endsWith("0")||"-"!==i&&"-0"!==i&&(""!==i&&(a=parseFloat(i),isNaN(a)&&(a=void 0)),this.data!==a&&(0,f.r)(this,"value-changed",{value:a}))}}])}(v.WF);m.shadowRootOptions=(0,l.A)((0,l.A)({},v.WF.shadowRootOptions),{},{delegatesFocus:!0}),m.styles=(0,v.AH)(n||(n=(0,s.A)([":host([own-margin]){margin-bottom:5px}"]))),(0,c.Cg)([(0,y.MZ)({attribute:!1})],m.prototype,"localize",void 0),(0,c.Cg)([(0,y.MZ)({attribute:!1})],m.prototype,"schema",void 0),(0,c.Cg)([(0,y.MZ)({attribute:!1})],m.prototype,"data",void 0),(0,c.Cg)([(0,y.MZ)()],m.prototype,"label",void 0),(0,c.Cg)([(0,y.MZ)()],m.prototype,"helper",void 0),(0,c.Cg)([(0,y.MZ)({type:Boolean})],m.prototype,"disabled",void 0),(0,c.Cg)([(0,y.P)("ha-input",!0)],m.prototype,"_input",void 0),m=(0,c.Cg)([(0,y.EM)("ha-form-float")],m),a.d(o,{HaFormFloat:function(){return m}}),i()}catch(b){i(b)}})},70392:function(t,o,a){a.a(t,async function(t,o){try{var i,e=a(28430),r=a(57567),n=a(25979),l=a(12463),s=a(16472),d=(a(28706),a(2892),a(15697)),h=a(25541),u=a(57527),p=a(51209),c=t([h]),v=function(t){function o(){var t;(0,r.A)(this,o);for(var a=arguments.length,i=new Array(a),e=0;e<a;e++)i[e]=arguments[e];return(t=(0,s.A)(this,o,[].concat(i))).showDelay=350,t.hideDelay=150,t}return(0,l.A)(o,t),(0,n.A)(o,null,[{key:"styles",get:function(){return[h.A.styles,(0,u.AH)(i||(i=(0,e.A)([":host{--wa-tooltip-background-color:var(--ha-tooltip-background-color,var(--ha-color-surface-default));--wa-tooltip-content-color:var(--ha-tooltip-text-color,var(--primary-text-color));--wa-tooltip-font-family:var(--ha-tooltip-font-family,var(--ha-font-family-body));--wa-tooltip-font-size:var(--ha-tooltip-font-size,var(--ha-font-size-m));--wa-tooltip-font-weight:var(--ha-tooltip-font-weight,var(--ha-font-weight-medium));--wa-tooltip-line-height:var(--ha-tooltip-line-height,var(--ha-line-height-condensed));--wa-tooltip-padding:var(--ha-tooltip-padding,var(--ha-space-2));--wa-tooltip-border-radius:var(--ha-tooltip-border-radius,var(--ha-border-radius-md));--wa-tooltip-arrow-size:var(--ha-tooltip-arrow-size,0px);--wa-tooltip-border-width:0px;--wa-z-index-tooltip:1000}.tooltip::part(popup){animation-duration:var(--ha-tooltip-animation-duration,0)}.body{box-shadow:var(--ha-tooltip-box-shadow,var(--ha-box-shadow-m))}"])))]}}])}((h=(c.then?(await c)():c)[0]).A);(0,d.Cg)([(0,p.MZ)({attribute:"show-delay",type:Number})],v.prototype,"showDelay",void 0),(0,d.Cg)([(0,p.MZ)({attribute:"hide-delay",type:Number})],v.prototype,"hideDelay",void 0),v=(0,d.Cg)([(0,p.EM)("ha-tooltip")],v),o()}catch(y){o(y)}})},68300:function(t,o,a){a.a(t,async function(t,o){try{"function"!=typeof window.ResizeObserver&&(window.ResizeObserver=(await a.e(23964).then(a.bind(a,25047))).default),o()}catch(i){o(i)}},1)}}]);
//# sourceMappingURL=61492.438e343edbe51703.js.map