import{r as o}from"./p-23450e8b.js";import{m as r}from"./p-4084433f.js";import"./p-1e77b5bd.js";import"./p-387cea7f.js";import"./p-8538de1a.js";import"./p-94c84e79.js";import"./p-b4215fed.js";const t=class{constructor(r){o(this,r)}async create(o,t){let e=document.createElement("gl-form");e.feature=o;for(let o in t)e[o]=t[o];const m=await r.create({component:e});await m.present();return await new Promise((r=>{e.addEventListener("glFormCancel",(()=>{m.dismiss();r(undefined)}));e.addEventListener("glFormSubmit",(()=>{m.dismiss();r(o)}))}))}};export{t as gl_form_controller};
//# sourceMappingURL=p-bab54511.entry.js.map