"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["60761"],{70208:function(t,e,a){a.r(e),a.d(e,{HaFormGrid:function(){return v}});var r,o,i,s=a(72153),n=a(61397),u=a(50264),c=a(44734),d=a(43080),p=a(69683),h=a(6454),l=a(25460),m=(a(28706),a(62062),a(18111),a(61701),a(26099),a(40445)),f=(a(52763),a(96196)),y=a(77845),v=function(t){function e(){var t;(0,c.A)(this,e);for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return(t=(0,p.A)(this,e,[].concat(r))).disabled=!1,t}return(0,h.A)(e,t),(0,d.A)(e,[{key:"focus",value:(a=(0,u.A)((0,n.A)().m(function t(){var e;return(0,n.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,this.updateComplete;case 1:null===(e=this.renderRoot.querySelector("ha-form"))||void 0===e||e.focus();case 2:return t.a(2)}},t,this)})),function(){return a.apply(this,arguments)})},{key:"updated",value:function(t){(0,l.A)(e,"updated",this,3)([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",""))}},{key:"render",value:function(){var t=this;return(0,f.qy)(r||(r=(0,s.A)([" "," "])),this.schema.schema.map(function(e){return(0,f.qy)(o||(o=(0,s.A)([' <ha-form .hass="','" .data="','" .schema="','" .disabled="','" .computeLabel="','" .computeHelper="','" .localizeValue="','"></ha-form> '])),t.hass,t.data,[e],t.disabled,t.computeLabel,t.computeHelper,t.localizeValue)}))}}]);var a}(f.WF);v.styles=(0,f.AH)(i||(i=(0,s.A)([":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,m.Cg)([(0,y.MZ)({attribute:!1})],v.prototype,"hass",void 0),(0,m.Cg)([(0,y.MZ)({attribute:!1})],v.prototype,"data",void 0),(0,m.Cg)([(0,y.MZ)({attribute:!1})],v.prototype,"schema",void 0),(0,m.Cg)([(0,y.MZ)({type:Boolean})],v.prototype,"disabled",void 0),(0,m.Cg)([(0,y.MZ)({attribute:!1})],v.prototype,"computeLabel",void 0),(0,m.Cg)([(0,y.MZ)({attribute:!1})],v.prototype,"computeHelper",void 0),(0,m.Cg)([(0,y.MZ)({attribute:!1})],v.prototype,"localizeValue",void 0),v=(0,m.Cg)([(0,y.EM)("ha-form-grid")],v)}}]);
//# sourceMappingURL=60761.3340b68066d1d31a.js.map