(window.webpackJsonp=window.webpackJsonp||[]).push([[10,160,161],{1368:function(e,t,r){"use strict";r.r(t);var n=r(1052),o=r(1063),l=r(262),c=r(1062),d=(r(28),{name:"SignUpHeader",props:{prev:Function,step:Number,title1:String,title2:String,mobile:Boolean,upgrade:Boolean}}),m=(r(1435),r(0)),component=Object(m.a)(d,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"signup-header",class:e.mobile?"mb-1":"mb-10"},[e.mobile?t("div",{staticClass:"mobile-header mt-4"},[t(c.a,{staticClass:"step-btn-col"},[t(o.a,[t(n.a,{staticClass:"step-btn",style:1==e.step||e.upgrade&&2==e.step?"color: #b72044!important;":"background-color: #b72044!important; color: white!important;",attrs:{fab:"",outlined:1==e.step||e.upgrade&&2==e.step,dark:"",small:"",color:"interaction",elevation:"0",disabled:""}},[e._v("\n 1\n ")]),e._v(" "),t("span",{staticClass:"line"}),e._v(" "),t(n.a,{staticClass:"step-btn",style:2==e.step&&!e.upgrade||e.upgrade&&4==e.step?"color: #b72044!important;":"background-color: #b72044!important; color: white!important;",attrs:{fab:"",outlined:2==e.step&&!e.upgrade||e.upgrade&&4==e.step,dark:"",small:"",color:"interaction",elevation:"0",disabled:""}},[e._v("\n 2\n ")]),e._v(" "),e.upgrade?e._e():t("span",{staticClass:"line"}),e._v(" "),e.upgrade?e._e():t(n.a,{staticClass:"step-btn",style:3==e.step?"color: #b72044!important;":"background-color: #b72044!important; color: white!important;",attrs:{fab:"",outlined:3==e.step,dark:"",small:"",color:"interaction",elevation:"0",disabled:""}},[e._v("\n 3\n ")]),e._v(" "),e.upgrade?e._e():t("span",{staticClass:"line"}),e._v(" "),e.upgrade?e._e():t(n.a,{staticClass:"step-btn",style:4==e.step?"color: #b72044!important;":"background-color: #b72044!important; color: white!important;",attrs:{fab:"",outlined:4==e.step,dark:"",small:"",color:"interaction",elevation:"0",disabled:""}},[e._v("\n 4\n ")])],1)],1),e._v(" "),t(c.a,[t(o.a,[t("span",{staticClass:"float-left",on:{click:e.prev}},[t(l.a,{staticStyle:{rotate:"180deg"},attrs:{size:"16",color:"primary"}},[e._v("$backarrow")]),e._v(" "),t("span",{staticClass:"e1 my-2"},[e._v("Zurück")])],1)])],1),e._v(" "),t(c.a,[t(o.a,[t("h1",{staticClass:"signup-caption mb-5 blackToWhite--text",staticStyle:{"text-align":"center!important"}},[e.upgrade?t("span",[e._v("Upgrade")]):t("span",[e._v("Registrierung")])])])],1)],1):t("div",{staticClass:"desktop-header mt-7"},[t(c.a,{staticClass:"step-btn-col",staticStyle:{"margin-bottom":"30px"},attrs:{"no-gutters":""}},[t(o.a,[t("span",{staticClass:"e1",class:{"interaction--text":1===e.step||2===e.step}},[e._v("Dein Profil")]),e._v(" "),t("span",{staticClass:"desktop-line"}),e._v(" "),e.upgrade?e._e():t("span",{staticClass:"e1",class:{"interaction--text":3===e.step}},[e._v("Mitgliedschaft")]),e._v(" "),e.upgrade?e._e():t("span",{staticClass:"desktop-line"}),e._v(" "),t("span",{staticClass:"e1",class:{"interaction--text":4===e.step}},[e._v("Prüfen & Bezahlen")]),e._v(" "),t("span",{staticClass:"desktop-line"}),e._v(" "),t("span",{staticClass:"e1",class:{"interaction--text":5===e.step}},[e._v("Glückwunsch")])])],1),e._v(" "),t("hr",{staticClass:"mt-6 mb-8",staticStyle:{color:"rgba(221, 221, 221, 0.2)"}}),e._v(" "),t(c.a,{attrs:{"no-gutters":""}},[t(o.a,{staticClass:"text-left",attrs:{cols:"4"}},[t("span",{on:{click:e.prev}},[t(l.a,{staticStyle:{rotate:"180deg","margin-bottom":"2px"},attrs:{size:"16",color:"primary"}},[e._v("$backarrow")]),e._v(" "),t("span",{staticClass:"e1 my-2"},[e._v("Zurück")])],1)])],1),e._v(" "),t(c.a,{staticClass:"mb-10",attrs:{"no-gutters":""}},[t(o.a,[t("h1",{staticClass:"mx-auto mt-n12 font-size-44 line-height-80",staticStyle:{width:"75%","text-align":"center!important","margin-top":"-48px"}},[e.upgrade?t("span",[e._v("Upgrade")]):t("span",[e._v("Registrierung")])])])],1)],1)])}),[],!1,null,"3d16907a",null);t.default=component.exports},1373:function(e,t,r){var content=r(1436);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(6).default)("ee4197a4",content,!0,{sourceMap:!1})},1435:function(e,t,r){"use strict";r(1373)},1436:function(e,t,r){var n=r(5)((function(i){return i[1]}));n.push([e.i,'.step-btn-col[data-v-3d16907a]{font-size:0;margin-top:10pt;text-align:center}.step-btn[data-v-3d16907a]{font-family:"Lato-Bold",serif;font-size:8pt;height:26px;width:26px}.line[data-v-3d16907a]{background-color:#b72044;border-top:1px solid #b72044;margin-bottom:-1px;width:20px}.desktop-line[data-v-3d16907a],.line[data-v-3d16907a]{display:inline-block;height:1pt}.desktop-line[data-v-3d16907a]{background-color:#ddd;border-top:2px solid #ddd;margin-bottom:2px;margin-left:25px;margin-right:25px}@media screen and (min-width:600px){.desktop-line[data-v-3d16907a]{width:20pt}}@media screen and (min-width:1280px){.desktop-line[data-v-3d16907a]{width:125pt}}.back-btn[data-v-3d16907a]{color:#999;float:left}',""]),n.locals={},e.exports=n},1662:function(e,t,r){"use strict";r.r(t);var n=r(1052),o=r(1063),l=r(1064),c=r(1062),d=r(1154),m=r(1045),v=r(13),h=(r(27),r(35),r(42),r(37),r(1148)),f=r(1368),_=r(128),k={subpremise:"short_name",street_number:"short_name",route:"long_name",locality:"long_name",administrative_area_level_1:"short_name",administrative_area_level_2:"long_name",country:"long_name",postal_code:"short_name"},x={name:"SignUpStepTwoAddress",components:{SignUpHeader:f.default},props:{next:Function,prev:Function,setAddressData:Function,mobile:Boolean,upgrade:Boolean},validations:{appellation:{required:h.required},firstName:{required:h.required},lastName:{required:h.required},street:{required:h.required},number:{required:h.required},zipCode:{required:h.required,minLength:Object(h.minLength)(5),maxLength:Object(h.maxLength)(5)},location:{required:h.required}},data:function(){return{autocompleteFields:["address_components"],address:"",appellation:"",firstName:"",lastName:"",street:"",number:"",zipCode:"",location:"",phoneNumber:"",origin:"",appellations:[{value:"mr",text:"Herr"},{value:"mrs",text:"Frau"},{value:"divers",text:"Divers"}],origins:[{value:"friends",text:"über eine Empfehlung (z.B. Freunde)"},{value:"event",text:"auf einer Veranstaltung"},{value:"poster",text:"von Plakaten oder Aufklebern"},{value:"internet",text:"über eine Suchmaschine (z.B. Google)"},{value:"internet_other",text:"über andere Internetseiten"},{value:"social_media",text:"in Social Media (Facebook, Instagram oder andere)"},{value:"radio",text:"im Radio"},{value:"television",text:"im Fernsehen"},{value:"mewspaper",text:"aus einer Tageszeitung"},{value:"city_magazine",text:"aus einem Stadtmagazin"},{value:"other_journals",text:"aus anderen Zeitschriften"},{value:"organizer",text:"Veranstalter"},{value:"other",text:"über andere Werbung"}],phoneNumberErrors:[],zipCodeBackendError:"",google:null,processingStepTwo:!1}},fetch:function(){var e=this;return Object(v.a)(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.upgrade){t.next=5;break}return t.next=3,e.$axios.get("/api/users/settings/address/");case 3:(r=t.sent).data&&(e.firstName=r.data.first_name,e.lastName=r.data.last_name,e.street=r.data.street,e.number=r.data.street_number,e.zipCode=r.data.zip_code,e.location=r.data.city,e.phoneNumber=r.data.phone,r.data.profile&&(n=r.data.profile.gender,e.appellation="male"===n?"mr":"female"===n?"mrs":"divers"));case 5:case"end":return t.stop()}}),t)})))()},computed:{appellationErrors:function(){var e=[];return this.$v.appellation.$dirty?(!this.$v.appellation.required&&e.push("Bitte gib eine Anrede ein"),e):e},firstNameErrors:function(){var e=[];return this.$v.firstName.$dirty?(!this.$v.firstName.required&&e.push("Bitte gib einen Vornamen ein"),e):e},lastNameErrors:function(){var e=[];return this.$v.lastName.$dirty?(!this.$v.lastName.required&&e.push("Bitte gib einen Nachnamen ein"),e):e},streetErrors:function(){var e=[];return this.$v.street.$dirty?(!this.$v.street.required&&e.push("Bitte gib eine Straße ein"),e):e},numberErrors:function(){var e=[];return this.$v.number.$dirty?(!this.$v.number.required&&e.push("Bitte gib eine Hausnummer ein"),e):e},zipCodeErrors:function(){var e=[];return this.$v.zipCode.$dirty?(!this.$v.zipCode.required&&e.push("Bitte gib eine Postleitzahl ein"),this.zipCode.includes(" ")&&e.push("Die Postleitzahl darf keine Leerzeichen enthalten"),!this.$v.zipCode.minLength&&e.push("Die Postleitzahl muss genau 5 Zeichen lang sein"),!this.$v.zipCode.maxLength&&e.push("Die Postleitzahl muss genau 5 Zeichen lang sein"),this.zipCodeBackendError&&e.push(this.zipCodeBackendError),e):e},locationErrors:function(){var e=[];return this.$v.location.$dirty?(!this.$v.location.required&&e.push("Bitte gib einen Ort ein"),e):e}},mounted:function(){var e=this;Object(_.b)("https://maps.googleapis.com/maps/api/js?key=AIzaSyCT7Zxl9K9Q4zdXZ72m2z3XEUYjnuZlThU&libraries=places",(function(){var t={types:["address"],componentRestrictions:{country:"de"}};e.autocomplete=new google.maps.places.Autocomplete(document.getElementById("address-autocomplete"),t),e.autocomplete.setFields(e.autocompleteFields),e.autocomplete.addListener("place_changed",e.onPlaceChanged),setTimeout((function(){document.getElementById("address-autocomplete").placeholder=""}),500)}))},methods:{formatResult:function(e){for(var t={},i=0;i<e.address_components.length;i++){var r=e.address_components[i].types[0];if(k[r]){var n=e.address_components[i][k[r]];t[r]=n}}return t},onPlaceChanged:function(){var e=this.autocomplete.getPlace();if(void 0!==e.address_components){var t=this.formatResult(e);this.address=t.route,this.street=t.route,this.number=t.street_number,this.zipCode=t.postal_code,this.location=t.locality}},submit:function(){var e=this;if(this.$v.$touch(),!this.$v.$invalid){this.processingStepTwo=!0;var data={appellation:this.appellation,first_name:this.firstName,last_name:this.lastName,street:this.street,street_number:this.number,zip_code:this.zipCode,city:this.location};this.origin&&(data.origin=this.origin),this.phoneNumber&&(data.phone=this.phoneNumber);var t="/api/users/registration/second/";this.upgrade&&(delete data.origin,t="/api/users/upgrade/address/"),this.$axios.$patch(t,data).then((function(t){e.$emit("stepTwoDone"),e.setAddressData(t.address),e.next()})).catch((function(t){console.log("Error catched: ",t),e.$emit("stepTwoDone"),t.response.data.phone?e.phoneNumberErrors="Bitte gib eine gültige Telefonnummer ein":t.response.data.zip_code&&(e.zipCodeBackendError="Bitte gib eine gültige Postleitzahl ein"),console.log(t.response.data)}))}this.processingStepTwo=!1,this.$emit("stepTwoDone")}}},$=(r(2141),r(0)),component=Object($.a)(x,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"mx-4"},[e.mobile?t("SignUpHeader",{attrs:{mobile:e.mobile,upgrade:e.upgrade,prev:e.prev,step:2,title1:"Adresse",title2:""}}):e._e(),e._v(" "),e.mobile?t("h4",{staticClass:"font-size-18 mb-2"},[e._v("\n Adresse\n ")]):e._e(),e._v(" "),t(c.a,[t(o.a,[t(l.a,[t(c.a,{class:e.mobile?"my-0":"",attrs:{dense:""}},[t(o.a,{attrs:{cols:e.mobile?5:3}},[t(d.a,{staticClass:"signup-form-field",class:e.mobile?"mr-1":"mr-4",attrs:{id:"appellationSelect",items:e.appellations,"error-messages":e.appellationErrors,filled:"","append-icon":"$dropdownarrow",required:"",label:"Anrede","background-color":"inputbackground"},on:{input:function(t){return e.$v.appellation.$touch()},blur:function(t){return e.$v.appellation.$touch()}},model:{value:e.appellation,callback:function(t){e.appellation=t},expression:"appellation"}})],1),e._v(" "),t(o.a,[t(m.a,{staticClass:"signup-form-field",class:e.mobile?"ml-1":"mx-4",attrs:{id:"firstNameInput","error-messages":e.firstNameErrors,filled:"",clearable:e.$vuetify.breakpoint.smAndDown,required:"",label:"Vorname","background-color":"inputbackground"},on:{input:function(t){return e.$v.firstName.$touch()},blur:function(t){return e.$v.firstName.$touch()}},model:{value:e.firstName,callback:function(t){e.firstName=t},expression:"firstName"}})],1),e._v(" "),t(o.a,{attrs:{cols:e.mobile?12:""}},[t(m.a,{staticClass:"signup-form-field",class:e.mobile?"":"ml-4",attrs:{id:"lastNameInput","error-messages":e.lastNameErrors,filled:"",clearable:e.$vuetify.breakpoint.smAndDown,required:"",label:"Nachname","background-color":"inputbackground"},on:{input:function(t){return e.$v.lastName.$touch()},blur:function(t){return e.$v.lastName.$touch()}},model:{value:e.lastName,callback:function(t){e.lastName=t},expression:"lastName"}})],1)],1),e._v(" "),t(c.a,{class:e.mobile?"my-0":"",attrs:{dense:""}},[t(o.a,{attrs:{cols:"8"}},[t(m.a,{staticClass:"signup-form-field",class:e.mobile?"mr-1":"mr-4",attrs:{id:"address-autocomplete","error-messages":e.streetErrors,filled:"",clearable:e.$vuetify.breakpoint.smAndDown,required:"",label:"Straße",placeholder:"","background-color":"inputbackground"},on:{input:function(t){return e.$v.street.$touch()},blur:function(t){return e.$v.street.$touch()}},model:{value:e.street,callback:function(t){e.street=t},expression:"street"}})],1),e._v(" "),t(o.a,[t(m.a,{staticClass:"signup-form-field",class:e.mobile?"mr-l":"ml-4",attrs:{id:"numberInput","error-messages":e.numberErrors,filled:"",clearable:e.$vuetify.breakpoint.smAndDown,required:"",label:"Nummer","background-color":"inputbackground"},on:{input:function(t){return e.$v.number.$touch()},blur:function(t){return e.$v.number.$touch()}},model:{value:e.number,callback:function(t){e.number=t},expression:"number"}})],1)],1),e._v(" "),t(c.a,{class:e.mobile?"my-0":"",attrs:{dense:""}},[t(o.a,[t(m.a,{staticClass:"signup-form-field",class:e.mobile?"mr-1":"mr-4",attrs:{id:"zipCodeInput","error-messages":e.zipCodeErrors,filled:"",clearable:e.$vuetify.breakpoint.smAndDown,required:"",label:"PLZ","background-color":"inputbackground"},on:{input:function(t){return e.$v.zipCode.$touch()},blur:function(t){return e.$v.zipCode.$touch()},click:function(t){e.zipCodeBackendError=""}},model:{value:e.zipCode,callback:function(t){e.zipCode=t},expression:"zipCode"}})],1),e._v(" "),t(o.a,{attrs:{cols:"8"}},[t(m.a,{staticClass:"signup-form-field",class:e.mobile?"ml-1":"ml-4",attrs:{id:"locationInput","error-messages":e.locationErrors,filled:"",clearable:e.$vuetify.breakpoint.smAndDown,required:"",label:"Ort","background-color":"inputbackground"},on:{input:function(t){return e.$v.location.$touch()},blur:function(t){return e.$v.location.$touch()}},model:{value:e.location,callback:function(t){e.location=t},expression:"location"}})],1)],1),e._v(" "),t(c.a,{class:e.mobile?"my-0":"",attrs:{dense:""}},[t(o.a,[t(m.a,{staticClass:"signup-form-field",attrs:{id:"phoneNumberInput","error-messages":e.phoneNumberErrors,filled:"",clearable:e.$vuetify.breakpoint.smAndDown,label:"Mobilfunknummer (optional) **","background-color":"inputbackground",hint:"Format: 0177123456, ohne Bindestrich und Sonderzeichen"},on:{click:function(t){e.phoneNumberErrors=[]}},model:{value:e.phoneNumber,callback:function(t){e.phoneNumber=t},expression:"phoneNumber"}})],1)],1),e._v(" "),t(c.a,{directives:[{name:"show",rawName:"v-show",value:!e.upgrade,expression:"!upgrade"}],class:e.mobile?"my-0":"",attrs:{dense:""}},[t(o.a,[t(d.a,{staticClass:"signup-form-field",attrs:{id:"originInput",filled:"","append-icon":"$dropdownarrow",items:e.origins,label:"Wie hast du von twotickets erfahren?","background-color":"inputbackground"},model:{value:e.origin,callback:function(t){e.origin=t},expression:"origin"}})],1)],1)],1)],1)],1),e._v(" "),t("p",{staticClass:"signup-info e3"},[e._v("\n ** Nur so können wir dich bei sehr kurzfristigen Veranstaltungsabsagen erreichen!\n ")]),e._v(" "),e.mobile?t(c.a,{staticClass:"text-center"},[t(o.a,[t(n.a,{staticClass:"col submit-btn",attrs:{color:"interaction",dark:"",rounded:"",elevation:"0",height:"48",disabled:e.processingStepTwo,loading:e.processingStepTwo},on:{click:e.submit}},[e._v("\n Weiter zu Mitgliedschaft\n ")])],1)],1):e._e()],1)}),[],!1,null,"0a447f48",null);t.default=component.exports},1899:function(e,t,r){var content=r(2142);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(6).default)("2d8c3a3b",content,!0,{sourceMap:!1})},2141:function(e,t,r){"use strict";r(1899)},2142:function(e,t,r){var n=r(5)((function(i){return i[1]}));n.push([e.i,"div[data-v-0a447f48] .v-label{font-family:Lato-Regular,serif;font-size:14px}div[data-v-0a447f48] .v-label,div[data-v-0a447f48] .v-select__selection,div[data-v-0a447f48] input{margin-left:8px}div[data-v-0a447f48] .v-input__slot:after{color:#a9a9a9;line-height:1}div[data-v-0a447f48] .error--text{color:#b72044!important}",""]),n.locals={},e.exports=n}}]);