import{e as t,g as n,f as r}from"./config-98DzVabT.js";typeof Craft.Formie>"u"&&(Craft.Formie={});Craft.Formie.NewForm=Garnish.Base.extend({init(e){t({data(){return{name:e.name,handle:e.handle,handles:[]}},watch:{name(m){const a=e.maxFormHandleLength;this.handle=n(this.handles,r(this.name),0).substr(0,a)}},created(){this.handles=e.formHandles.concat(e.reservedHandles)},mounted(){this.$el.querySelector('[name="title"]').focus(),this.$nextTick().then(()=>{Craft.initUiElements()})}}).mount("#fui-new-form")}});$(document).ready(()=>{document.dispatchEvent(new CustomEvent("vite-script-loaded",{detail:{path:"src/js/formie-form-new.js"}}))});
//# sourceMappingURL=formie-form-new-3gpxDqgh.js.map
