"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["60761"],{70208:function(t,e,o){o.a(t,async function(t,a){try{o.r(e),o.d(e,{HaFormGrid:function(){return c}});o(18111),o(61701),o(62953);var r=o(40445),i=o(96196),s=o(77845),d=o(52763),p=t([d]);d=(p.then?(await p)():p)[0];let h,l,m,n=t=>t;class c extends i.WF{reportValidity(){var t;const e=null!==(t=this._forms)&&void 0!==t?t:[];let o=!0;for(const a of e)a.reportValidity()||(o=!1);return o}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,i.qy)(h||(h=n` ${0} `),this.schema.schema.map(t=>(0,i.qy)(l||(l=n` <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}}c.shadowRootOptions={...i.WF.shadowRootOptions,delegatesFocus:!0},c.styles=(0,i.AH)(m||(m=n`: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,s.MZ)({attribute:!1})],c.prototype,"hass",void 0),(0,r.Cg)([(0,s.MZ)({attribute:!1})],c.prototype,"data",void 0),(0,r.Cg)([(0,s.MZ)({attribute:!1})],c.prototype,"schema",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean})],c.prototype,"disabled",void 0),(0,r.Cg)([(0,s.MZ)({attribute:!1})],c.prototype,"computeLabel",void 0),(0,r.Cg)([(0,s.MZ)({attribute:!1})],c.prototype,"computeHelper",void 0),(0,r.Cg)([(0,s.MZ)({attribute:!1})],c.prototype,"localizeValue",void 0),(0,r.Cg)([(0,s.YG)("ha-form",!0)],c.prototype,"_forms",void 0),c=(0,r.Cg)([(0,s.EM)("ha-form-grid")],c),a()}catch(h){a(h)}})}}]);
//# sourceMappingURL=60761.491746683be2a23f.js.map