"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["60761"],{70208:function(t,e,a){a.a(t,async function(t,o){try{a.r(e),a.d(e,{HaFormGrid:function(){return l}});a(18111),a(61701),a(3362),a(62953);var r=a(40445),i=a(52763),s=a(96196),d=a(77845),h=t([i]);i=(h.then?(await h)():h)[0];let p,c,m,u=t=>t;class l extends s.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,s.qy)(p||(p=u` ${0} `),this.schema.schema.map(t=>(0,s.qy)(c||(c=u` <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}}l.styles=(0,s.AH)(m||(m=u`: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:var(--ha-space-2);grid-row-gap:var(--ha-space-6)}:host>ha-form{display:block}`)),(0,r.Cg)([(0,d.MZ)({attribute:!1})],l.prototype,"hass",void 0),(0,r.Cg)([(0,d.MZ)({attribute:!1})],l.prototype,"data",void 0),(0,r.Cg)([(0,d.MZ)({attribute:!1})],l.prototype,"schema",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean})],l.prototype,"disabled",void 0),(0,r.Cg)([(0,d.MZ)({attribute:!1})],l.prototype,"computeLabel",void 0),(0,r.Cg)([(0,d.MZ)({attribute:!1})],l.prototype,"computeHelper",void 0),(0,r.Cg)([(0,d.MZ)({attribute:!1})],l.prototype,"localizeValue",void 0),l=(0,r.Cg)([(0,d.EM)("ha-form-grid")],l),o()}catch(p){o(p)}})}}]);
//# sourceMappingURL=60761.2225763d1fc0a926.js.map