import{__awaiter,__generator}from"tslib";import{r as registerInstance,h,H as Host,g as getElement}from"./index-e04a7bc5.js";import{s as scrollToFirstInvalidField}from"./form-fb8dd9f5.js";var Form=function(){function t(t){registerInstance(this,t);this.native=false;this.novalidate=false}t.prototype.scrollToFirstInvalidField=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){scrollToFirstInvalidField({formEl:this.el});return[2]}))}))};t.prototype.render=function(){var t=this.native?"form":"div";var r={};if(this.native){r={novalidate:this.novalidate}}return h(Host,null,h(t,Object.assign({},r),h("slot",null)))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();export{Form as bal_form};