text: !function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,t,n){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t){new Vue({el:"#register",data:{clients:{},selected:"2",children:[],errors:[],success:[],email:"",password:"",post_number:""},created:function(){this.children_by_default()},watch:{},methods:{children_by_default:function(){for(var e=this,t={},n=1;n<3;n++)t.id=n-1,t.value="",e.children[n-1]=t,t={}},select_children:function(){var e=this,t={},n=parseInt(this.selected),r=1;if(this.children.length&&(r=this.children.length+1,r>5&&(r=5)),this.children.length>n)for(var i=this.children.length-1;i>n-1;i--)e.children.splice(i,1);else for(r;r<n+1;r++)t.id=r-1,t.value="",e.children[r-1]=t,t={}},remove:function(e){this.children.splice(e,1)},add_children_data:function(){for(var e=this,t=[],n=0;n<this.children.length;n++)t[n]=e.children[n];this.children.post_number=this.post_number;var r=[];r[0]=this.post_number,r[1]=t,r[2]=this.email,r[3]=this.password,this.$http.post("/save-children-info",r).then(function(t){e.errors=[],e.success=[],"success"==t.body.status?window.location="/map":e.errors.push(t.body.message)},function(e){})}}})}]);