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,a){function c(t){try{u(r.next(t))}catch(t){a(t)}}function o(t){try{u(r["throw"](t))}catch(t){a(t)}}function u(t){t.done?n(t.value):i(t.value).then(c,o)}u((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,c;return c={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function o(t){return function(e){return u([t,e])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(c&&(c=0,o[0]&&(n=0)),n)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=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(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-CBMgyOmf.system.js","./p-CLfE_o7e.system.js"],(function(t){"use strict";var e,n,r,i,a,c,o;return{setters:[function(t){e=t.H;n=t.y;r=t.x;i=t.M;a=t.N;c=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(a,{key:"ed6e199a51186247ccad8e06989ba9819e43bed2"},i(t,Object.assign({key:"de4a61e1690819e10096cd1c35eecc0371d73aae"},e,{class:this.formClass}),i("slot",{key:"f35cce725fc54ad822aada77aabaf6f0babd4141"})))};Object.defineProperty(t.prototype,"el",{get:function(){return c(this)},enumerable:false,configurable:true});return t}());f.style=u}}}));