var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,c){function a(t){try{u(r.next(t))}catch(t){c(t)}}function o(t){try{u(r["throw"](t))}catch(t){c(t)}}function u(t){t.done?n(t.value):i(t.value).then(a,o)}u((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},r,i,c,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,o[0]&&(n=0)),n)try{if(r=1,i&&(c=o[0]&2?i["return"]:o[0]?i["throw"]||((c=i["return"])&&c.call(i),0):i.next)&&!(c=c.call(i,o[1])).done)return c;if(i=0,c)o=[o[0]&2,c.value];switch(o[0]){case 0:case 1:c=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(c=n.trys,c=c.length>0&&c[c.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!c||o[1]>c[0]&&o[1]<c[3])){n.label=o[1];break}if(o[0]===6&&n.label<c[1]){n.label=c[1];c=o;break}if(c&&n.label<c[2]){n.label=c[2];n.ops.push(o);break}if(c[2])n.ops.pop();n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t];i=0}finally{r=c=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-CZqZRJHG.system.js","./p-CLfE_o7e.system.js"],(function(t){"use strict";var e,n,r,i,c,a,o;return{setters:[function(t){e=t.H;n=t.y;r=t.x;i=t.M;c=t.N;a=t.O},function(t){o=t.s}],execute:function(){var u=".bal-form{display:block;position:static}";var f=t("bal_form",function(){function t(t){e(this,t);this.native=false;this.novalidate=false;this.formClass=""}t.prototype.scrollToFirstInvalidField=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,n()];case 1:t.sent();return[4,r()];case 2:t.sent();o({formEl:this.el});return[2]}}))}))};t.prototype.render=function(){var t=this.native?"form":"div";var e={};if(this.native){e={novalidate:this.novalidate}}return i(c,{key:"1598e29d7763c06aeebe9ae70e4ad27695c9796d"},i(t,Object.assign({key:"140fa29ca7900623d52da99ffc5f9bd6db72cd97"},e,{class:this.formClass}),i("slot",{key:"1797bdbc8f4f70b50c5d193acea0569e977d8a81"})))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());f.style=u}}}));