1import{n as s,_ as o}from"./app-6ea29675.js";import{z as l}from"./ziz-f3ff7d7a.js";import{t as d,a as c}from"./tripettoFormMixin-5db2ffb5.js";const u={name:"IntakeTripettoFormComponent",mixins:[d],data(){return{zizId:null}},props:{postTo:{type:String,default:"/receive/intake"},redirectTo:{type:String,default:""},text:{type:Object,default:()=>({invalidUrl:"De url is niet correct, gebruik aub de link uit de uitnodiging."})},textByLanguage:{type:Object,default:()=>({})},tripettoLicense:String},computed:{activeText(){return this.textByLanguage[this.siteLocale]||this.text}},async mounted(){this.zizId=l.getId(),this.zizId&&await this.startRunner()},methods:{async loadContentTranslations(n){if(n==="en"){const{default:t}=await o(()=>import("./en-f4f1c888.js"),[]);return t}return null},async loadDefinition(n=this.activeLanguage){const[{default:t},{default:e}]=await Promise.all([o(()=>import("./definition-d261cd5b.js"),[]),o(()=>import("./l10n-46f37463.js"),[])]);return{definition:await this.getTranslatedDefinition(t,n),l10n:e}},async startRunner(n=this.activeLanguage){const{definition:t,l10n:e}=await this.loadDefinition(n);this.$parent.$refs.loading.classList.add("d-none"),await this.initTripettoRunner({definition:t,l10n:e,onComplete:this.onComplete,onSubmit:this.onSubmit,onReady:this.onReady,onAction:(i,a,r)=>{c(i,a,r,"Intake form")}})},onReady(){this.isLoaded=!0},onComplete(){this.$parent.$refs.loading.classList.remove("d-none")},onSubmit(n){const t=this.exportSourceFields(n),e=this;setTimeout(()=>{this.$http.post(e.localizedUrl("postTo",e.postTo),{zizId:this.zizId,intake:t}).then(i=>console.log(i)).catch(i=>console.log(i)).finally(()=>{const i=this.localizedUrl("redirectTo",this.redirectTo).trim();i.length>0&&(window.location.href=i)}),this.$store.state.loading=!0},1e3)}}};var p=function(){var t=this,e=t._self._c;return e("div",[this.zizId?t._e():e("span",{staticClass:"field-group__message field-group__message-error"},[t._v(" "+t._s(t.activeText.invalidUrl)+" ")]),e("div",{ref:"tripetto"})])},_=[],f=s(u,p,_,!1,null,null,null,null);const v=f.exports;export{v as default}; 2//# sourceMappingURL=IntakeTripettoFormComponent-f8c97138.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.