import{r as e,h as t,g as r}from"./p-aee8b1df.js";const s=class{constructor(t){e(this,t)}async validate(e=!1){const t=this.el.shadowRoot.querySelectorAll("bce-input"),r=Array.from(t),s=await Promise.all(r.map(t=>t.validate(e)));return[].concat(...s)}render(){return this.template.input.map(e=>t("bce-input",{id:e.id,key:e.id,label:e.label,type:e.type,validation:e.required?"required":void 0}))}get el(){return r(this)}static get style(){return":host{position:relative;display:block}"}};export{s as bce_element_form};