"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["279"],{37018:function(t,e,o){o.r(e),o.d(e,{HaFormGrid:function(){return h}});o(35748),o(65315),o(37089),o(5934),o(95013);var a=o(69868),r=(o(60921),o(84922)),i=o(11991);let s,d,p,c=t=>t;class h extends r.WF{async focus(){var t;await this.updateComplete,null===(t=this.renderRoot.querySelector("ha-form"))||void 0===t||t.focus()}updated(t){super.updated(t),t.has("schema")&&(this.schema.column_min_width?this.style.setProperty("--form-grid-min-width",this.schema.column_min_width):this.style.setProperty("--form-grid-min-width",""))}render(){return(0,r.qy)(s||(s=c` ${0} `),this.schema.schema.map(t=>(0,r.qy)(d||(d=c` <ha-form .hass="${0}" .data="${0}" .schema="${0}" .disabled="${0}" .computeLabel="${0}" .computeHelper="${0}" .localizeValue="${0}"></ha-form> `),this.hass,this.data,[t],this.disabled,this.computeLabel,this.computeHelper,this.localizeValue)))}constructor(...t){super(...t),this.disabled=!1}}h.styles=(0,r.AH)(p||(p=c`:host{display:grid!important;grid-template-columns:repeat(var(--form-grid-column-count,auto-fit),minmax(var(--form-grid-min-width,200px),1fr));grid-column-gap:8px;grid-row-gap:24px}:host>ha-form{display:block}`)),(0,a.__decorate)([(0,i.MZ)({attribute:!1})],h.prototype,"hass",void 0),(0,a.__decorate)([(0,i.MZ)({attribute:!1})],h.prototype,"data",void 0),(0,a.__decorate)([(0,i.MZ)({attribute:!1})],h.prototype,"schema",void 0),(0,a.__decorate)([(0,i.MZ)({type:Boolean})],h.prototype,"disabled",void 0),(0,a.__decorate)([(0,i.MZ)({attribute:!1})],h.prototype,"computeLabel",void 0),(0,a.__decorate)([(0,i.MZ)({attribute:!1})],h.prototype,"computeHelper",void 0),(0,a.__decorate)([(0,i.MZ)({attribute:!1})],h.prototype,"localizeValue",void 0),h=(0,a.__decorate)([(0,i.EM)("ha-form-grid")],h)}}]);
//# sourceMappingURL=279.b5e2fd9b81161922.js.map