text: !function(e){var t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/",a(a.s=0)}([function(e,t,a){a(1),e.exports=a(2)},function(e,t){var a="/",r="alle",n="alle",o="alle",i="alle",s=100,l=null,u=[],d=0;function c(){var e,t="",a="",s="",l="";"alle"!=n&&(t="/region/"+n),"alle"!=r&&(a="/"+r),"alle"!=o&&(s="/fuer/"+o),"alle"!=i&&(l="/geschenkideen/"+i),e=(a+t+s+l).replace(/^\/|\/$/g,"").replace("//","/"),window.location.href="/"+e}window.toggleDivWithclass=function(e,t){if($(window).width()<768){$("#"+e).slideToggle("slow",function(){});var a=$("#"+t);a&&a.find("i").toggleClass("rotateBack rotate")}},window.activateDate=function(){"date"!=$('[type="date"]').prop("type")&&$('[type="date"]').datepicker()},window.toggleDivWithFilter=function(e,t){$(window).width()<992&&$("#"+e).slideToggle("none",function(){});var a=$("#"+t);a&&a.toggleClass("clickedFilt")},window.showImage=function(e,t){$("#mainImage").attr("src",a+e),$("#mainImage").fadeOut(),$("#mainImage").fadeIn(),$("#voucherType").val(t)},window.showImageVoucherMultiple=function(){$("#multiplePhoto").show(),$("#onePhoto").hide(),$("#vauchTemp").val(0)},window.showImageVoucherSingle=function(e,t){$("#multiplePhoto").hide(),$("#onePhoto").show(),$("#onePhotoSwitch").attr("src",a+e),$("#voucherType").val(t),$("#vauchTemp").val(t)},window.changeDetectorInput=function(){var e=new Date,t=e.getDate(),a=e.getMonth()+1,r=e.getFullYear();t<10&&(t="0"+t),a<10&&(a="0"+a),e=r+"-"+a+"-"+t;var n=document.getElementById("minDateChange");n&&n.setAttribute("min",e),$("#minDateChange").on("change",function(){var e=this.value;$("#vouchDate").text(e)}),$(document).on("keyup","#otherValue",function(){var e=this.value;$("input[type=radio][name=optionsRadios]:checked");"other"==s&&$("#vouchPrice").text("CHF "+e)}),$(document).on("change","input[type=radio][name=optionsRadios]",function(){s=this.value;var e=parseInt($(this).attr("data-update-h"))-1;if($("input[type=radio][name=optionsRadios]").each(function(t){var a=t+1;t==e?$("#optionsRadios"+a).attr("checked","checked"):$("#optionsRadios"+a).removeAttr("checked")}),"other"==this.value){var t=$("#otherValue").val();$("#vouchPrice").text("CHF "+t)}else $("#vouchPrice").text("CHF "+this.value)}),$(document).on("keyup","#exampleTextarea",function(){var e=$("#exampleTextarea").val().replace(/\n/g,"<br />");$("#voucherDescArea").html(e)}),$(document).on("keyup","#offerVaucherTextarea",function(e){var t=$("#offerVaucherTextarea").val().replace(/\n/g,"<br />");e.currentTarget.innerHTML=$("#offerVaucherTextarea").val(),$("#voucherDescArea").html("<p>"+t+"<p>")}),$(document).on("keyup","#vouchName",function(){var e=this.value;$("#vouchNameTag").html(e)});var o=$("#offerVaucherTextarea");o.length>0&&(""!=(l=o.val())&&$("#voucherDescArea").html("<p>"+l+"<p>"));var i=$("#vouchName");i.length>0&&(""!=(l=i.val())&&$("#vouchNameTag").text(l));var l,u=$("#exampleTextarea");u.length>0&&(""!=(l=u.val())&&$("#voucherDescArea").text(l))},window.validateCap=function(){if(grecaptcha)return""!=grecaptcha.getResponse()||($(".g-recaptcha").children().first().attr("style","width: 304px;height: 78px; border:1px solid red;"),setTimeout(function(){$(".g-recaptcha").children().first().attr("style","width: 304px;")},1e3),!1)},$(document).ready(function(){var e={};$(document).on("click",".g-recaptcha div",function(e){if(grecaptcha){grecaptcha.getResponse();$(".g-recaptcha").children().first().attr("style","width: 304px;height: 78px;border:1px solid red")}}),$(document).on("click","#confirmContact",function(t){grecaptcha.getResponse();cRules={user_name:"required",user_surname:"required",user_address:"required",user_postalCode:"required",user_postalPlace:"required",user_country:"required",user_telephone:"required",user_email:"required",user_comment:"required",andreOp:"required"},cMessages={user_name:{required:"Bitte um Ihre Angaben: Vorname"},user_surname:{required:"Bitte um Ihre Angaben: Nachname"},user_address:{required:"Bitte um Ihre Angaben: Adresse"},user_postalCode:{required:"Bitte um Ihre Angaben: PLZ"},user_postalPlace:{required:"Bitte um Ihre Angaben: Ort"},user_country:{required:"Bitte um Ihre Angaben: Land"},user_telephone:{required:"Bitte um Ihre Angaben: Telefon"},user_email:{required:"Bitte um Ihre Angaben: E-Mail"},user_comment:{required:"Bitte um Ihre Angaben: Mein Anliegen"},andreOp:{required:"Bitte um Ihre Angaben: Andrede"}},$("#contactForm").validate({errorClass:"bad-message",rules:cRules,messages:cMessages,submitHandler:function(t){var a=$("#user_surname").val(),r=$("#user_name").val(),n=$("#user_company").val(),o=$("#user_address").val(),i=$("#user_postalPlace").val(),s=$("#user_postalCode").val(),l=$("#user_telephone").val(),u=$("#user_email").val(),d=$("#user_comment").val(),c=($("#userRandomCode").val(),$("#user_offer").val()),m=$("input[name=_token]").val(),h=$("input[name='anredeOp']:checked").val();if(e={_token:m,andrede:h,name:r,vorname:a,strasse:o,ort:s,plz:i,telefon:l,email:u,company:n,message:d,offer:c},!validateCap())return!1;submitContact(e)},highlight:function(e,t){$(e).removeClass(t)}}),$("#contactForm").submit()}),$(document).on("click","#sendGroupOffer",function(t){cRules={user_postalCode:"required",user_postalPlace:"required",user_telephone:"required",user_email:"required"},cMessages={user_postalCode:{required:"Bitte um Ihre Angaben: PLZ"},user_postalPlace:{required:"Bitte um Ihre Angaben: Ort"},user_telephone:{required:"Bitte um Ihre Angaben: Telefon"},user_email:{required:"Bitte um Ihre Angaben: E-Mail"}},$("#groupOfferForm").validate({errorClass:"bad-message",rules:cRules,messages:cMessages,submitHandler:function(t){var a=$("#excursion_package").val(),r=$("#group_date").val(),n=$("#user_surname").val(),o=$("#user_name").val(),i=$("#user_company").val(),s=$("#user_address").val(),l=$("#user_postalPlace").val(),u=$("#user_postalCode").val(),d=$("#user_telephone").val(),c=$("#user_email").val(),m=$("#alternativ_Termine").val(),h=$("#desired_start_time").val(),v=$("#no_participants").val(),p=$("#remarks").val(),g=$("input[name=_token]").val();e={_token:g,offer:a,date:r,lastName:n,firstName:o,company:i,street:s,plz:l,ort:u,telefon:d,email:c,alternative:m,starttime:h,remarks:p,total_people:v},submitGroupOffer(e)},highlight:function(e,t){$(e).removeClass(t)}}),$("#groupOfferForm").submit()});var t="";$(document).on("click","#voucherStepb1,#voucherStepb2,#voucherStepb2Pay,#voucherStepb3",function(a){var r=$(a.target).attr("id");if("voucherStepb1"==r){var n=$("#vouchName").val(),o=$("#exampleTextarea").val().replace(/\n/g,"<br />"),i=$("#otherValue").val(),l=$("input[type=radio][name=optionsRadios]:checked");$("#voucherFor").text(n),$("#voucherFor1").text(n),$("#voucherText").html(o),$("#voucherText1").html(o),"other"==s?($("#voucherPrice").text(i),$("#voucherPrice1").text(i)):($("#voucherPrice").text(l.val()),$("#voucherPrice1").text(l.val())),validateVoucherOffer(2,1,"#VouchForm1",{})}else if("voucherStepb2"==r){var u=$("#user_name").val(),d=$("#user_surname").val(),c=$("#user_company").val(),m=$("#user_address").val(),h=$("#user_postalCode").val(),v=$("#user_postalPlace").val(),p=$("#user_country").val(),g=$("#user_telephone").val(),f=$("#user_email").val(),_=$("#user_message").val(),S=$("#user_payment").val(),b=$("#user_shipping").val(),w=$("#user_validFrom").val(),y=$("#voucherType").val();uStatus=$("input[name='anredeOp']:checked").val();var x=0,k=0;n=$("#vouchName").val(),o=$("#exampleTextarea").val(),i=$("#otherValue").val(),l=$("input[type=radio][name=optionsRadios]:checked");t=uStatus,console.log(s,"vaucherCustom",i,l.val()),k="other"==l.val()?i:l.val(),"Rechnung"!=S?(x=1,$("#creditCardRules").show()):$("#creditCardRules").hide();var C=$("input[name=_token]").val();e={_token:C,vaucher_type:2,payment_id:x,offer:0,valid_from:w,vaucher_for:n,vaucher_text:o,items:"",payment_type:S,send_type:b,message:_,vaucher_template:y,total_price:k,user:{username:f,name:u+" "+d,first_name:u,last_name:d,address:m,telephone:g,fax:"",email:f,title:uStatus,zip:h,city:v,country:p,www:"",company:c,gender:uStatus}},$("#userFullnameHolder").text(u+" "+d),$("#userCompanyHolder").text(c),$("#userAddressHolder").text(m),$("#userPLZOrtHolder").text(h+", "+v),$("#userCountryHolder").text(p),$("#userTelephoneHolder").text(g),$("#userEmailHolder").text(f);_=$("#user_message").val().replace(/\n/g,"<br />");$("#userMessageHolder").html(_),$("#userPaymentHolder").text(S),$("#userShippingHolder").text(b),$("#userStatusHolder").text(uStatus),$("input[name=AMOUNT]").val(k),$("input[name=CN]").val(u+" "+d),$("input[name=CURRENCY]").val("CHF"),$("input[name=EMAIL]").val(f),$("input[name=LANGUAGE]").val("de_DE");var T=new Date;$("input[name=ORDERID]").val(d+"/"+T),$("input[name=OWNERADDRESS]").val(p),$("input[name=OWNERTELNO]").val(g),$("input[name=OWNERTOWN]").val(v),$("input[name=OWNERTOWN]").val(v),$("input[name=OWNERZIP]").val(h),validateVoucherOffer(2,2,"#VouchForm2",e)}else if("voucherStepb2Pay"==r){u=$("#user_name").val(),d=$("#user_surname").val(),c=$("#user_company").val(),m=$("#user_address").val(),h=$("#user_postalCode").val(),v=$("#user_postalPlace").val(),p=$("#user_country").val(),g=$("#user_telephone").val(),f=$("#user_email").val(),_=$("#user_message").val(),S=$("#user_payment").val(),b=$("#user_shipping").val(),w=$("#user_validFrom").val(),y=$("#voucherType").val();uStatus=$("input[name='anredeOp']:checked").val();x=0,k=0,n=$("#vouchName").val(),o=$("#exampleTextarea").val(),i=$("#otherValue").val(),l=$("input[type=radio][name=optionsRadios]:checked");t=uStatus,k="other"==s?i:l.val(),"Rechnung"!=S?(x=1,$("#creditCardRules").show()):$("#creditCardRules").hide();C=$("input[name=_token]").val();e={_token:C,vaucher_type:2,payment_id:x,offer:0,valid_from:w,vaucher_for:n,vaucher_text:o,items:"",payment_type:S,send_type:b,message:_,vaucher_template:y,total_price:k,user:{username:f,name:u+" "+d,first_name:u,last_name:d,address:m,telephone:g,fax:"",email:f,title:uStatus,zip:h,city:v,country:p,www:"",company:c,gender:uStatus}},$("#userFullnameHolder").text(u+" "+d),$("#userCompanyHolder").text(c),$("#userAddressHolder").text(m),$("#userPLZOrtHolder").text(h+", "+v),$("#userCountryHolder").text(p),$("#userTelephoneHolder").text(g),$("#userEmailHolder").text(f);_=$("#user_message").val().replace(/\n/g,"<br />");$("#userMessageHolder").html(_),$("#userPaymentHolder").text(S),$("#userShippingHolder").text(b),$("#userStatusHolder").text(uStatus),$("input[name=AMOUNT]").val(k),$("input[name=CN]").val(u+" "+d),$("input[name=CURRENCY]").val("CHF"),$("input[name=EMAIL]").val(f),$("input[name=LANGUAGE]").val("de_DE");T=new Date;$("input[name=ORDERID]").val(d+"/"+T),$("input[name=OWNERADDRESS]").val(p),$("input[name=OWNERTELNO]").val(g),$("input[name=OWNERTOWN]").val(v),$("input[name=OWNERTOWN]").val(v),$("input[name=OWNERZIP]").val(h),validateVoucherOffer(2,3,"#VouchForm2",e)}else if("voucherStepb3"==r){u=$("#user_name").val(),d=$("#user_surname").val(),c=$("#user_company").val(),m=$("#user_address").val(),h=$("#user_postalCode").val(),v=$("#user_postalPlace").val(),p=$("#user_country").val(),g=$("#user_telephone").val(),f=$("#user_email").val(),_=$("#user_message").val(),S=$("#user_payment").val(),b=$("#user_shipping").val(),w=$("#user_validFrom").val(),y=$("#voucherType").val();uStatus=$("input[name='anredeOp']:checked").val();x=0,k=0,n=$("#vouchName").val(),o=$("#exampleTextarea").val(),i=$("#otherValue").val(),l=$("input[type=radio][name=optionsRadios]:checked");t=uStatus,k="other"==s?i:l.val(),"Rechnung"!=S?(x=1,$("#creditCardRules").show()):$("#creditCardRules").hide();C=$("input[name=_token]").val();e={_token:C,vaucher_type:2,payment_id:x,offer:0,valid_from:w,vaucher_for:n,vaucher_text:o,items:"",payment_type:S,send_type:b,message:_,vaucher_template:y,total_price:k,user:{username:f,name:u+" "+d,first_name:u,last_name:d,address:m,telephone:g,fax:"",email:f,title:uStatus,zip:h,city:v,country:p,www:"",company:c,gender:uStatus}},$("#userFullnameHolder").text(u+" "+d),$("#userCompanyHolder").text(c),$("#userAddressHolder").text(m),$("#userPLZOrtHolder").text(h+", "+v),$("#userCountryHolder").text(p),$("#userTelephoneHolder").text(g),$("#userEmailHolder").text(f);_=$("#user_message").val().replace(/\n/g,"<br />");$("#userMessageHolder").html(_),$("#userPaymentHolder").text(S),$("#userShippingHolder").text(b),$("#userStatusHolder").text(uStatus),$("input[name=AMOUNT]").val(k),$("input[name=CN]").val(u+" "+d),$("input[name=CURRENCY]").val("CHF"),$("input[name=EMAIL]").val(f),$("input[name=LANGUAGE]").val("de_DE");T=new Date;$("input[name=ORDERID]").val(d+"/"+T),$("input[name=OWNERADDRESS]").val(p),$("input[name=OWNERTELNO]").val(g),$("input[name=OWNERTOWN]").val(v),$("input[name=OWNERTOWN]").val(v),$("input[name=OWNERZIP]").val(h),"Postversand"!=(b=$("#user_shipping").val())?($("#clientConfirmationEmail").text($("#userEmailHolder").text()),$("#printHome").attr("style","display:block;"),$("#postVersand").attr("style","display:none;")):($("#printHome").attr("style","display:none;"),$("#postVersand").attr("style","display:block;")),"Herr"==t?$("#senderName").text("R "+$("#userStatusHolder").text()+" "+$("#user_surname").val()):$("#senderName").text(" "+$("#userStatusHolder").text()+" "+$("#user_surname").val()),submitVoucher(e)}}),$(document).on("click","#voucherStepRet1,#voucherStepRet2,#voucherStepRet3",function(e){$(e.target).attr("id");$(".voucherSteps").removeClass("stepShowVoucher")}),$(document).on("click","#bookingStepb1,#bookingStepb2,#bookingStepb3",function(t){var a=$("#bookingDate").val();console.log(a);var r=$(t.target).attr("id");if("bookingStepb1"==r)$(".bookingSteps").removeClass("stepShowBooking"),$(".bookingSteps").removeClass("stepShowBookingSpecial"),$("#bookingStep2").addClass("stepShowBooking");else if("bookingStepb2"==r)validateVoucherOffer(1,1,"#bookingValid1",{});else if("bookingStepb3"==r){var n=$("#user_name").val(),o=$("#user_surname").val(),i=$("#user_company").val(),l=$("#user_address").val(),u=$("#user_postalCode").val(),c=$("#user_postalPlace").val(),m=$("#user_country").val(),h=$("#user_telephone").val(),v=$("#user_email").val(),p=$("#user_message").val(),g=$("#user_payment").val(),f=$("#user_shipping").val(),_=($("#user_validFrom").val(),$("#reservationgarantee_check")),S=$("#reservationgarantee_cardtype").val(),b=$("#reservationgarantee_cardno").val(),w=$("#reservationgarantee_exp_month").val(),y=$("#reservationgarantee_exp_year").val(),x=$("#reservationgarantee_name").val();_=_.is(":checked")?1:0;var k=$("#vouCode").val(),C=$("#marketingCode").val(),T=$("#totalBetrag").val(),P=$("input[name=andreOp]:checked").val(),O=($("#vouchName").val(),$("#exampleTextarea").val(),$("#otherValue").val()),q=$("input[type=radio][name=optionsRadios]:checked");"other"==s?O:q.val(),"Rechnung"!=g?(1,$("#creditCardRules").show()):$("#creditCardRules").hide();var A=$("input[name=_token]").val();console.log(getPricesSelected()),e={_token:A,offer:d,prices:getPricesSelected(),additionals:getaditionalSelected(),booking_date:a,reservationgarantee_nocard:_,reservationgarantee_cardno:b,reservationgarantee_cardtype:S,reservationgarantee_exp_month:w,reservationgarantee_exp_year:y,reservationgarantee_name:x,vaucher_code:k,marketing_code:C,message:p,vaucher_amount:T,saveUserContact:$("#step2row").html(),user:{username:v,name:n+" "+o,first_name:n,last_name:o,address:l,telephone:h,fax:"",email:v,title:P,zip:u,city:c,country:m,www:"",company:i,gender:P}},$("#userName").text(n),$("#userSurname").text(o),$("#uName").text(o),$("#userCompanyHolder").text(i),$("#userAddressHolder").text(l),$("#userPLZOrtHolder").text(u+", "+c),$("#userCountryHolder").text(m),$("#userTelephoneHolder").text(h),$("#userEmailHolder").text(v),$("#userMessageHolder").text(p),$("#userPaymentHolder").text(g),$("#userShippingHolder").text(f),$("#userStatusHolder").text(P),"Herr"==P?$("#uStatus").text("R "+P):$("#uStatus").text(" "+P),$(".stepsIndic").removeClass("step1"),$("#step4I").addClass("step1"),validateVoucherOffer(1,2,"#bookingContactForm",e)}}),$(document).on("click","#bookingStepRet1,#bookingStepRet2,#bookingStepRet3",function(e){var t=$(e.target).attr("id");"bookingStepRet1"==t||("bookingStepRet2"==t?window.history.back():"bookingStepRet3"==t&&window.history.back())}),$(document).on("click","#voucherOffersRet1,#voucherOffersRet2,#voucherOffersRet3",function(e){$(e.target).attr("id")}),$(document).on("click","#voucherOffers2,#voucherOffers3,#voucherOffers3Pay,#voucherOffers4",function(a){var r=$(a.target).attr("id");if("voucherOffers1"==r)$(".bookingSteps").removeClass("stepShowBookingSpecial"),$("#bookingVouchers2").addClass("stepShowBooking");else if("voucherOffers2"==r){var n=$("#vouchName").val(),o=$("#offerVaucherTextarea").val();$("#voucherFor").text(n),$("#voucherFor1").text(n),$("#voucherText").text(o),$("#voucherText1").text(o),validateVoucherOffer(3,1,"#offerVouchForm1",{})}else if("voucherOffers3"==r){var i=$("#user_name").val(),l=$("#user_surname").val(),u=$("#user_company").val(),c=$("#user_address").val(),m=$("#user_postalCode").val(),h=$("#user_postalPlace").val(),v=$("#user_country").val(),p=$("#user_telephone").val(),g=$("#user_email").val(),f=$("#user_message").val(),_=$("#user_payment").val(),S=$("#user_shipping").val(),b=$("#user_validFrom").val(),w=$("#reservationgarantee_cardtype").val(),y=$("#reservationgarantee_cardno").val(),x=$("#reservationgarantee_exp_month").val(),k=$("#reservationgarantee_exp_year").val(),C=$("#reservationgarantee_name").val(),T=$("#vouCode").val(),P=$("#marketingCode").val(),O=$("#totalBetrag").val(),q=$("input[name=andreOp]:checked").val(),A=(n=$("#vouchName").val(),o=$("#offerVaucherTextarea").val(),$("#otherValue").val()),N=$("input[type=radio][name=optionsRadios]:checked");"other"==s?A:N.val(),"Rechnung"!=_?(1,$("#creditCardRules").show()):$("#creditCardRules").hide(),t=q;var B=$("input[name=_token]").val();e={_token:B,offer:d,prices:getPricesSelected(),additionals:getaditionalSelected(),booking_date:D,payment_type:_,send_type:S,reservationgarantee_cardno:y,reservationgarantee_cardtype:w,reservationgarantee_exp_month:x,reservationgarantee_exp_year:k,reservationgarantee_name:C,vaucher_code:T,marketing_code:P,vaucher_amount:O,valid_from:b,vaucher_for:n,message:f,vaucher_text:o,user:{username:g,name:i+" "+l,first_name:i,last_name:l,address:c,telephone:p,fax:"",email:g,title:q,zip:m,city:h,country:v,www:"",company:u,gender:q}},$("#userName").text(i),$("#userSurname").text(l),$("#uName").text(l),$("#userFullnameHolder").text(i+" "+l),$("#userCompanyHolder").text(u),$("#userAddressHolder").text(c),$("#userPLZOrtHolder").text(m+", "+h),$("#userCountryHolder").text(v),$("#userTelephoneHolder").text(p),$("#userEmailHolder").text(g);f=$("#user_message").val().replace(/\n/g,"<br />");$("#userMessageHolder").html(f),$("#userPaymentHolder").text(_),$("#userShippingHolder").text(S),$("#userStatusHolder").text(q),"Herr"==q?$("#uStatus").text("R "+q):$("#uStatus").text(" "+q),validateVoucherOffer(3,2,"#offerVouchForm2",{})}else if("voucherOffers3Pay"==r){i=$("#user_name").val(),l=$("#user_surname").val(),u=$("#user_company").val(),c=$("#user_address").val(),m=$("#user_postalCode").val(),h=$("#user_postalPlace").val(),v=$("#user_country").val(),p=$("#user_telephone").val(),g=$("#user_email").val(),f=$("#user_message").val(),_=$("#user_payment").val(),S=$("#user_shipping").val(),b=$("#user_validFrom").val(),w=$("#reservationgarantee_cardtype").val(),y=$("#reservationgarantee_cardno").val(),x=$("#reservationgarantee_exp_month").val(),k=$("#reservationgarantee_exp_year").val(),C=$("#reservationgarantee_name").val(),T=$("#vouCode").val(),P=$("#marketingCode").val(),O=$("#totalBetrag").val(),q=$("input[name=andreOp]:checked").val(),n=$("#vouchName").val(),o=$("#offerVaucherTextarea").val(),A=$("#otherValue").val(),N=$("input[type=radio][name=optionsRadios]:checked");"other"==s?A:N.val(),"Rechnung"!=_?(1,$("#creditCardRules").show()):$("#creditCardRules").hide(),t=q;B=$("input[name=_token]").val();e={_token:B,offer:d,prices:getPricesSelected(),additionals:getaditionalSelected(),booking_date:D,payment_type:_,send_type:S,reservationgarantee_cardno:y,reservationgarantee_cardtype:w,reservationgarantee_exp_month:x,reservationgarantee_exp_year:k,reservationgarantee_name:C,vaucher_code:T,marketing_code:P,vaucher_amount:O,valid_from:b,vaucher_for:n,message:f,vaucher_text:o,user:{username:g,name:i+" "+l,first_name:i,last_name:l,address:c,telephone:p,fax:"",email:g,title:q,zip:m,city:h,country:v,www:"",company:u,gender:q}},$("#userName").text(i),$("#userSurname").text(l),$("#uName").text(l),$("#userFullnameHolder").text(i+" "+l),$("#userCompanyHolder").text(u),$("#userAddressHolder").text(c),$("#userPLZOrtHolder").text(m+", "+h),$("#userCountryHolder").text(v),$("#userTelephoneHolder").text(p),$("#userEmailHolder").text(g);f=$("#user_message").val().replace(/\n/g,"<br />");$("#userMessageHolder").html(f),$("#userPaymentHolder").text(_),$("#userShippingHolder").text(S),$("#userStatusHolder").text(q),"Herr"==q?$("#uStatus").text("R "+q):$("#uStatus").text(" "+q),validateVoucherOffer(3,3,"#offerVouchForm2",e)}else if("voucherOffers4"==r){i=$("#user_name").val(),l=$("#user_surname").val(),u=$("#user_company").val(),c=$("#user_address").val(),m=$("#user_postalCode").val(),h=$("#user_postalPlace").val(),v=$("#user_country").val(),p=$("#user_telephone").val();var D=$("#user_validFrom").val(),I=(g=$("#user_email").val(),f=$("#user_message").val(),_=$("#user_payment").val(),S=$("#user_shipping").val(),b=$("#user_validFrom").val(),w=$("#reservationgarantee_cardtype").val(),y=$("#reservationgarantee_cardno").val(),x=$("#reservationgarantee_exp_month").val(),k=$("#reservationgarantee_exp_year").val(),C=$("#reservationgarantee_name").val(),T=$("#vouCode").val(),P=$("#marketingCode").val(),O=$("#totalBetrag").val(),q=$("input[name=andreOp]:checked").val(),n=$("#vouchName").val(),o=$("#offerVaucherTextarea").val(),A=$("#otherValue").val(),N=$("input[type=radio][name=optionsRadios]:checked"),$("#voucherType").val());"other"==s?A:N.val(),"Rechnung"!=_?(1,$("#creditCardRules").show()):$("#creditCardRules").hide(),t=q;B=$("input[name=_token]").val();e={_token:B,offer:d,prices:getPricesSelected(),additionals:getaditionalSelected(),booking_date:D,payment_type:_,send_type:S,reservationgarantee_cardno:y,reservationgarantee_cardtype:w,reservationgarantee_exp_month:x,reservationgarantee_exp_year:k,reservationgarantee_name:C,vaucher_code:T,marketing_code:P,vaucher_amount:O,valid_from:b,vaucher_for:n,message:f,vaucher_template:I,vaucher_text:o,user:{username:g,name:i+" "+l,first_name:i,last_name:l,address:c,telephone:p,fax:"",email:g,title:q,zip:m,city:h,country:v,www:"",company:u,gender:q}},"Postversand"!=(S=$("#user_shipping").val())?($("#clientConfirmationEmail").text($("#userEmailHolder").text()),$("#printHome").attr("style","display:block;"),$("#postVersand").attr("style","display:none;")):($("#printHome").attr("style","display:none;"),$("#postVersand").attr("style","display:block;")),"Herr"==t?$("#senderName").text("R "+$("#userStatusHolder").text()+" "+$("#user_surname").val()):$("#senderName").text(" "+$("#userStatusHolder").text()+" "+$("#user_surname").val()),$("#clientConfirmationEmail").text($("#userEmailHolder").text());var V=$("#vaucherConfirmationInfo").html();e.saveConfOffVau=V;var R=window.location.href,H=R.substr(R.indexOf("?")+1);R==window.location.href&&(H="");var F="";F=-1!==H.indexOf("step=3")?H.replace("step=3","step=4"):-1!==H.indexOf("step=4")?H:H+"?step=4",console.log("bookingVouchers4 ",F),submitOfferBooking(e,null)}}),$(window).resize(function(){$(window).width()>768&&$("#gMap1,#inLinks1,#toggle1,#toggle2,#toggle3",document).removeAttr("id")}),$(window).on("popstate",function(e){if(history.scrollRestoration="manual",end_l_of_c_s=!1,null!==e.state){var t=location.href,a=window.location.search;if(""!=(a=a.replace("?navigate=1",""))?"?"==a.charAt(0)&&(a=a.replace("?","?navigate=1&")):a="?navigate=1",t=window.location.pathname.replace("/","")+a,o_nav="",$("#pageDynamic").length){t.indexOf("?");navigateMaster(t,{urlCorrect:1,scrollBack:1,backPressed:1})}else window.location.href=window.location.host+"/"+t}}),$(document).on("click tap","#masterSearch",function(e){c()}),$(document).on("change","#offerType",function(e){var t=$(this).val();r=t}),$(document).on("change","#offerRegion",function(e){var t=$(this).val();n=t}),$(document).on("change","#offerDuration",function(e){var t=$(this).val();o=t}),$(document).on("keyup","#searchUser",function(e){var t=$(this).val();i=t})}),window.validateVoucherOffer=function(e,t,a,r){var n={},o={};if(1==e){if(1==t)n={selectedPricesInp:"required"},o={selectedPricesInp:{required:"Bitte um Ihre Angaben: Ihre Reservationen."}};else if(2==t){parseInt(creditCardR);if(1==creditCardR)null,n={user_name:{required:!0,normalizer:function(e){return $.trim(e)}},user_surname:{required:!0,normalizer:function(e){return $.trim(e)}},user_address:{required:!0,normalizer:function(e){return $.trim(e)}},user_postalCode:{required:!0,normalizer:function(e){return $.trim(e)}},user_postalPlace:{required:!0,normalizer:function(e){return $.trim(e)}},user_country:{required:!0,normalizer:function(e){return $.trim(e)}},user_telephone:{required:!0,normalizer:function(e){return $.trim(e)}},user_email:{required:!0,normalizer:function(e){return $.trim(e)}},user_payment:"required",user_shipping:"required",termsCheck:"required"},o={user_name:{required:"Bitte um Ihre Angaben: Vorname"},user_surname:{required:"Bitte um Ihre Angaben: Nachname"},user_address:{required:"Bitte um Ihre Angaben: Adresse"},user_postalCode:{required:"Bitte um Ihre Angaben: PLZ"},user_postalPlace:{required:"Bitte um Ihre Angaben: Ort"},user_country:{required:"Bitte um Ihre Angaben: Land"},user_telephone:{required:"Bitte um Ihre Angaben: Telefon"},user_email:{required:"Bitte um Ihre Angaben: E-Mail"},user_payment:{required:"Bitte um Ihre Angaben: Zahlungsart"},user_shipping:{required:"Bitte um Ihre Angaben: Versand"},termsCheck:{required:"Bitte AGB‘s akzeptieren"}},$("#reservationgarantee_check").attr("val");else n={user_name:"required",user_surname:"required",user_address:"required",user_postalCode:"required",user_postalPlace:"required",user_country:"required",user_telephone:"required",user_email:"required",user_payment:"required",user_shipping:"required",termsCheck:"required"},o={user_name:{required:"Bitte um Ihre Angaben: Vorname"},user_surname:{required:"Bitte um Ihre Angaben: Nachname"},user_address:{required:"Bitte um Ihre Angaben: Adresse"},user_postalCode:{required:"Bitte um Ihre Angaben: PLZ"},user_postalPlace:{required:"Bitte um Ihre Angaben: Ort"},user_country:{required:"Bitte um Ihre Angaben: Land"},user_telephone:{required:"Bitte um Ihre Angaben: Telefon"},user_email:{required:"Bitte um Ihre Angaben: E-Mail"},user_payment:{required:"Bitte um Ihre Angaben: Zahlungsart"},user_shipping:{required:"Bitte um Ihre Angaben: Versand"},termsCheck:{required:"Bitte AGB‘s akzeptieren"}}}if($(a).validate({errorClass:"bad-message",rules:n,messages:o,submitHandler:function(e){if(console.log(t),1==t){$(".bookingSteps").removeClass("stepShowBooking"),$(".stepsIndic").removeClass("step1"),$("#step3I").addClass("step1");var a=$("input[name=_token]").val();$("#bookingStep3").addClass("stepShowBooking");var n=window.location.href.replace("//reservation","").replace("step=2","step=3");selectPrices_and_go(a,n)}else 2==t&&submitBooking(r);return!1},highlight:function(e,t){$(e).removeClass(t)}}),1==t||2==t){if(2==t)"1"!=$("#reservationgarantee_check").attr("val")?($("#reservationgarantee_cardno").length>0&&($("body #reservationgarantee_cardno").rules("add",{required:!0,messages:{required:"Bitte um Ihre Angaben: Kreditkartennummer"}}),$(a).validate().element("#reservationgarantee_cardno")),$("#reservationgarantee_cardno").length>0&&($("body  #reservationgarantee_name").rules("add",{required:!0,messages:{required:"Name und Vorname des Karteninhabers"}}),$(a).validate().element("#reservationgarantee_name"))):($("#reservationgarantee_cardno").length>0&&($("#reservationgarantee_cardno").rules("remove"),$(a).validate().element("#reservationgarantee_cardno")),$("#reservationgarantee_name").length>0&&($("#reservationgarantee_name").rules("remove"),$(a).validate().element("#reservationgarantee_name")));$(a).submit()}}else if(2==e)1==t?(n={vouchName:{required:!0,normalizer:function(e){return $.trim(e)}},vouchText:{required:!0,normalizer:function(e){return $.trim(e)}},vouchDate:"required"},o={vouchName:{required:"Bitte um Ihre Angaben: Ausgestellt auf"},vouchText:{required:"Bitte um Ihre Angaben: Text auf Gutschein"},vouchDate:{required:"Bitte um Ihre Angaben: Date auf Gutschein"}}):2==t?(n={user_name:{required:!0,normalizer:function(e){return $.trim(e)}},user_surname:{required:!0,normalizer:function(e){return $.trim(e)}},user_address:{required:!0,normalizer:function(e){return $.trim(e)}},user_postalCode:{required:!0,normalizer:function(e){return $.trim(e)}},user_postalPlace:{required:!0,normalizer:function(e){return $.trim(e)}},user_country:{required:!0,normalizer:function(e){return $.trim(e)}},user_telephone:{required:!0,normalizer:function(e){return $.trim(e)}},user_email:{required:!0,normalizer:function(e){return $.trim(e)}},user_payment:"required",user_shipping:"required",termsCheck:"required"},o={user_name:{required:"Bitte um Ihre Angaben: Vorname"},user_surname:{required:"Bitte um Ihre Angaben: Nachname"},user_address:{required:"Bitte um Ihre Angaben: Adresse"},user_postalCode:{required:"Bitte um Ihre Angaben: PLZ"},user_postalPlace:{required:"Bitte um Ihre Angaben: Ort"},user_country:{required:"Bitte um Ihre Angaben: Land"},user_telephone:{required:"Bitte um Ihre Angaben: Telefon"},user_email:{required:"Bitte um Ihre Angaben: E-Mail"},user_payment:{required:"Bitte um Ihre Angaben: Zahlungsart"},user_shipping:{required:"Bitte um Ihre Angaben: Versand"},termsCheck:{required:"Bitte AGB‘s akzeptieren"}}):3==t&&(n={user_name:{required:!0,normalizer:function(e){return $.trim(e)}},user_surname:{required:!0,normalizer:function(e){return $.trim(e)}},user_address:{required:!0,normalizer:function(e){return $.trim(e)}},user_postalCode:{required:!0,normalizer:function(e){return $.trim(e)}},user_postalPlace:{required:!0,normalizer:function(e){return $.trim(e)}},user_country:{required:!0,normalizer:function(e){return $.trim(e)}},user_telephone:{required:!0,normalizer:function(e){return $.trim(e)}},user_email:{required:!0,normalizer:function(e){return $.trim(e)}},user_payment:"required",user_shipping:"required",termsCheck:"required"},o={user_name:{required:"Bitte um Ihre Angaben: Vorname"},user_surname:{required:"Bitte um Ihre Angaben: Nachname"},user_address:{required:"Bitte um Ihre Angaben: Adresse"},user_postalCode:{required:"Bitte um Ihre Angaben: PLZ"},user_postalPlace:{required:"Bitte um Ihre Angaben: Ort"},user_country:{required:"Bitte um Ihre Angaben: Land"},user_telephone:{required:"Bitte um Ihre Angaben: Telefon"},user_email:{required:"Bitte um Ihre Angaben: E-Mail"},user_payment:{required:"Bitte um Ihre Angaben: Zahlungsart"},user_shipping:{required:"Bitte um Ihre Angaben: Versand"},termsCheck:{required:"Bitte AGB‘s akzeptieren"}}),$(a).validate({errorClass:"bad-message",rules:n,messages:o,submitHandler:function(e){if(1==t){$("#exampleTextarea").html($("#exampleTextarea").val());var a=$("#mainVaucherFormS1").html(),n=$("#voucherMainTableTop").html(),o=$("#vaucherLastStepTop").html();submitVaucherStFirst({step:2,imgForm:a,st2Price:n,st3Price:o})}else if(2==t){a=$("#mainVauchContact").html();$(".voucherSteps").removeClass("stepShowVoucher"),$("#voucherStep3").addClass("stepShowVoucher");var i=window.location.href.replace("//geschenkgutschein","");-1!==i.indexOf("step=2")?i.replace("step=2","step=3"):-1!==i.indexOf("step=3")?i:i+"?step=3",r.step=2,r.imgForm=a;n=$("#voucherStep3Confirm").html();r.vaucherConfirmTable=n,submitVaucherStSecond(r)}else if(3==t){a=$("#mainVauchContact").html();r.step=2,r.imgForm=a;n=$("#voucherStep3Confirm").html();r.vaucherConfirmTable=n,submitVaucherStSecondPay(r)}return!1},highlight:function(e,t){$(e).removeClass(t)}});else if(3==e){if(1==t?(n={vouchName:{required:!0,normalizer:function(e){return $.trim(e)}},selectedPricesInp:"required",vouchText:{required:!0,normalizer:function(e){return $.trim(e)}},vouchDate:"required"},o={vouchName:{required:"Bitte um Ihre Angaben: Ausgestellt auf"},vouchText:{required:"Bitte um Ihre Angaben: Text auf Gutschein"},vouchDate:{required:"Bitte um Ihre Angaben: Date auf Gutschein"},selectedPricesInp:{required:"Bitte um Ihre Angaben: Ihre Reservationen."}}):2!=t&&3!=t||(n={user_name:{required:!0,normalizer:function(e){return $.trim(e)}},user_surname:{required:!0,normalizer:function(e){return $.trim(e)}},user_address:{required:!0,normalizer:function(e){return $.trim(e)}},user_postalCode:{required:!0,normalizer:function(e){return $.trim(e)}},user_postalPlace:{required:!0,normalizer:function(e){return $.trim(e)}},user_country:{required:!0,normalizer:function(e){return $.trim(e)}},user_telephone:{required:!0,normalizer:function(e){return $.trim(e)}},user_email:{required:!0,normalizer:function(e){return $.trim(e)}},user_payment:"required",user_shipping:"required",termsCheck:"required"},o={user_name:{required:"Bitte um Ihre Angaben: Vorname"},user_surname:{required:"Bitte um Ihre Angaben: Nachname"},user_address:{required:"Bitte um Ihre Angaben: Adresse"},user_postalCode:{required:"Bitte um Ihre Angaben: PLZ"},user_postalPlace:{required:"Bitte um Ihre Angaben: Ort"},user_country:{required:"Bitte um Ihre Angaben: Land"},user_telephone:{required:"Bitte um Ihre Angaben: Telefon"},user_email:{required:"Bitte um Ihre Angaben: E-Mail"},user_payment:{required:"Bitte um Ihre Angaben: Zahlungsart"},user_shipping:{required:"Bitte um Ihre Angaben: Versand"},termsCheck:{required:"Bitte AGB‘s akzeptieren"}}),$(a).validate({errorClass:"bad-message",rules:n,messages:o,submitHandler:function(e){if(1==t){var a=$("input[name=_token]").val();console.log("window.location.pathname",window.location.pathname);var n=window.location.pathname.split("/"),o=n.length-1,i=n[o];i?console.log("window.location.pathname interestingPart",i):(console.log("parts",n),i=n[o-1],console.log("window.location.pathname interestingPart else ",i)),selectPricesOfferVaucher(a,i)}else if(2==t){var s={step:3,imgForm:c=$("#offerVaucherContact").html(),saveConfOffVau:m=$("#vaucherConfirmationInfo").html()},l=window.location.href,u=l.substr(l.indexOf("?")+1);l==window.location.href&&(u="");var d="";d=-1!==u.indexOf("step=2")?u.replace("step=2","step=3"):-1!==u.indexOf("step=3")?u:u+"?step=3",submitOfferVaucherTable(s,d)}else if(3==t){var c,m;s={step:3,imgForm:c=$("#offerVaucherContact").html(),saveConfOffVau:m=$("#vaucherConfirmationInfo").html()};r.step=3,r.imgForm=c,r.saveConfOffVau=m,submitOfferVaucherTablePay(r)}return!1},highlight:function(e,t){$(e).removeClass(t)}}),2==t)"1"!=$("#reservationgarantee_check").attr("val")?($("#reservationgarantee_cardno").length>0&&($("body #reservationgarantee_cardno").rules("add",{required:!0,messages:{required:"Bitte um Ihre Angaben: Kreditkartennummer"}}),$(a).validate().element("#reservationgarantee_cardno")),$("#reservationgarantee_cardno").length>0&&($("body  #reservationgarantee_name").rules("add",{required:!0,messages:{required:"Name und Vorname des Karteninhabers"}}),$(a).validate().element("#reservationgarantee_name"))):($("#reservationgarantee_cardno").length>0&&($("#reservationgarantee_cardno").rules("remove"),$(a).validate().element("#reservationgarantee_cardno")),$("#reservationgarantee_name").length>0&&($("#reservationgarantee_name").rules("remove"),$(a).validate().element("#reservationgarantee_name")))}},window.submitGroupOffer=function(e){$.ajax({method:"POST",url:"/submitGroupApplication",data:e}).done(function(e){$("#groupOfferFirstStep").hide(),$("#groupOfferSecondStep").show()})},window.submitVaucherStFirst=function(e){var t=$('meta[name="csrf-token"]').attr("content");t||(t=$("input[name=_token]").val()),$(".loadingStepStyle").addClass("forcedFlexNone"),$.ajax({method:"POST",headers:{"X-CSRF-TOKEN":t},url:"/submitVaucherStepFirst",data:e}).done(function(e){"true"==e.trim()?($(".loadingStepStyle").removeClass("forcedFlexNone"),navigateMaster("geschenkgutschein?navigate=1&step=2",{manualPushState:"geschenkgutschein?step=2",urlCorrect:!0}),$(".voucherSteps").removeClass("stepShowVoucher"),$("#voucherStep2").addClass("stepShowVoucher")):console.log("message falseee")})},window.submitVaucherStSecond=function(e){$(".loadingStepStyle").addClass("forcedFlexNone");var t=$('meta[name="csrf-token"]').attr("content");t||(t=$("input[name=_token]").val()),$.ajax({method:"POST",headers:{"X-CSRF-TOKEN":t},url:"/submitVaucherStepSecond",data:e}).done(function(e){$(".loadingStepStyle").removeClass("forcedFlexNone"),console.log(e)})},window.submitVaucherStSecondPay=function(e){$(".loadingStepStyle").addClass("forcedFlexNone");var t=$('meta[name="csrf-token"]').attr("content");t||(t=$("input[name=_token]").val()),$.ajax({method:"POST",headers:{"X-CSRF-TOKEN":t},url:"/submitVaucherStepSecondTest",data:e}).done(function(e){$(".loadingStepStyle").removeClass("forcedFlexNone"),$("#voucherStep5").html(e),$("#creditSub").trigger("click")})},window.submitVaucherStThird=function(e){$(".loadingStepStyle").addClass("forcedFlexNone");var t=$('meta[name="csrf-token"]').attr("content");t||(t=$("input[name=_token]").val()),$.ajax({method:"POST",headers:{"X-CSRF-TOKEN":t},url:"/submitVaucherStepThird",data:e}).done(function(e){$(".loadingStepStyle").removeClass("forcedFlexNone"),console.log(e)})},window.submitOfferVaucherTable=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;$(".loadingStepStyle").addClass("forcedFlexNone"),$.ajax({method:"POST",headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")},url:"/submitOfferVaucherTable",data:e}).done(function(e){$(".bookingSteps").removeClass("stepShowBooking"),$(".bookingSteps").removeClass("stepShowBookingSpecial"),$("#bookingVouchers3").addClass("stepShowBooking"),$(".loadingStepStyle").removeClass("forcedFlexNone"),console.log(e),t&&(window.location.href=t)})},window.submitOfferVaucherTablePay=function(e){$(".loadingStepStyle").addClass("forcedFlexNone"),$.ajax({method:"POST",headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")},url:"/submitOfferVaucherTablePay",data:e}).done(function(e){$("#bookingVouchers5").html(e),$("#creditSub").trigger("click"),$(".loadingStepStyle").removeClass("forcedFlexNone"),console.log(e)})},window.submitContact=function(e){$.ajax({method:"POST",url:"/submitContact",data:e}).done(function(e){$("#contactTitleHolder").hide(),$("#contactFormHolder").hide(),$("#contactItemsHolder").hide(),$("#contactSendConfirmation").show()})},window.submitVoucher=function(e){$(".loadingStepStyle").addClass("forcedFlexNone"),$.ajax({method:"POST",url:"/submitVaucher",data:e}).done(function(e){$(".loadingStepStyle").removeClass("forcedFlexNone"),$(".voucherSteps").removeClass("stepShowVoucher"),$("#voucherStep4").addClass("stepShowVoucher")})},window.submitBooking=function(e){$(".loadingStepStyle").addClass("forcedFlexNone"),$.ajax({method:"POST",url:"/submitBooking",data:e}).done(function(e){$(".loadingStepStyle").addClass("forcedFlexNone"),console.log(e);window.location.href.replace("//reservation","").replace("step=3","step=4");$(".bookingSteps").removeClass("stepShowBooking"),$("#bookingStep4").addClass("stepShowBooking")})},window.submitOfferBooking=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;$(".loadingStepStyle").addClass("forcedFlexNone"),$.ajax({method:"POST",url:"/submitOfferVaucher",data:e}).done(function(e){$(".loadingStepStyle").addClass("forcedFlexNone"),$(".bookingSteps").removeClass("stepShowBookingSpecial"),$(".bookingSteps").removeClass("stepShowBooking"),$("#bookingVouchers4").addClass("stepShowBooking"),t&&(window.location.href=t)})},window.navigateMaster=function(e,t){var r=e,n="";n=t.urlCorrect?a+r:a+r+"?navigate=1",t&&t.gtype&&(n=a+r+"/"+t.gtype+"?navigate=1"),t.manualPushState&&(console.log("manualPushState","/"+t.manualPushState),window.location.href=a+t.manualPushState),n=n.replace(/\/?$/,"/");var o=$("html, body").scrollTop();u.push(o),$.ajax({url:n,type:"GET",headers:{allowNavigate:1},context:document.body,success:function(e,t,a){"/kontakt"!=n&&"/kontakt/"!=n||$.getScript("https://www.google.com/recaptcha/api.js",function(e,t,a){})},error:function(e,t){}}).done(function(e,a,r){if(!t.backPressed){var o=n.replace("?navigate=1&","?").replace("?navigate=1","");o.indexOf("?")<0&&(o="//"==o||"/"==o||"https://www.meinweekend.ch"==o?o.replace(/^\/|\/$/g,""):o.replace(/^\/|\/$/g,"/")),window.location.href=o}var i;e.title_tag?(i=$("#titleTag")).length>0&&i.text(e.title_tag):(i=$("#titleTag")).length>0&&i.text("Wellness Romantik Weekend Tagesausflüge Gruppenausflüge - Erlebnis Schweiz zum Buchen oder als Geschenkgutschein");(e.view?$("#pageDynamic").html(e.view):location.reload(),e.metaView)&&($("head meta").remove(),$("head title").remove(),$('head link[rel="canonical"]').length>0&&$("head link[rel='canonical']").remove(),$("head").prepend(e.metaView));$(this).addClass("done");if(-1!==n.indexOf("categoryType/weekend")?($(".wrapEr").removeClass("active"),$("#allWeekend .wrapEr").addClass("active")):-1!==n.indexOf("categoryType/Tagesausflug")?($(".wrapEr").removeClass("active"),$("#allTagesausflug .wrapEr").addClass("active")):-1!==n.indexOf("categoryType/Gruppenausflüge")&&($(".wrapEr").removeClass("active"),$("#allGruppenausfluge .wrapEr").addClass("active")),n.indexOf("geschenkgutschein"),t.scrollBack)if(t.scrollBack){var s=u.length-2;u[s]&&0!=u[s]&&$("#pageDynamic").ready(function(){$("html, body").scrollTop(u[s])}),u.splice(s,2)}else $("html, body").scrollTop(0);else $("html, body").scrollTop(0);$("#slider1_container").length>0&&setTimeout(function(){ScaleSlider()},500),gtag("config","UA-8788907-1",{page_path:location.pathname})}).fail(function(e,t,a){})},$(document).ready(function(){$("#form_navoverview").on("submit",function(e){e.preventDefault(),c()}),$(document).on("keyup",function(e){$("#homeindicator").length>0&&13==e.which&&c()})}),window.scrollToVoucher=function(){$("html, body").scrollTop(700)},window.ScaleSlider=function(){var e=$("#slider1_container").parent().width();e?l.$ScaleWidth(e):window.setTimeout(ScaleSlider,30)};window.activateSlider=function(){var e={$FillMode:2,$AutoPlay:1,$Loop:1,$SlideshowOptions:{$Class:$JssorSlideshowRunner$,$Transitions:[""]},$ThumbnailNavigatorOptions:{$Class:$JssorThumbnailNavigator$,$ChanceToShow:2,$ArrowKeyNavigation:1,$ArrowNavigatorOptions:{$Class:$JssorArrowNavigator$,$ChanceToShow:2,$Steps:1}}};l=new $JssorSlider$("slider1_container",e),ScaleSlider(),$(window).bind("load",ScaleSlider),$(window).bind("resize",ScaleSlider),$(window).bind("orientationchange",ScaleSlider)},window.br2nl=function(e){return preg_replace("/<brs?/?>/ius","\n",str_replace("\n","",str_replace("\r","",htmlspecialchars_decode(e))))},window.setOfferMain=function(e){console.log(e),totalBookingPrice=0,lastTotalBookingPrice=0,pricesSelected=[],aditionalSelected=[],d=e},window.selectPrices_and_go=function(e,t){$(".loadingStepStyle").addClass("forcedFlexNone");var a=$("#bookingTable").html(),r={_token:e,offer:d,prices:getPricesSelected(),additionals:getaditionalSelected(),firstTable:a},n=$("#vaucherOfferT1");n.length>0&&(r.offerVaucherTable=n.html()),console.log(r),$.ajax({method:"POST",url:"/selectedPrices",data:r,headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")}}).done(function(e){$(".loadingStepStyle").removeClass("forcedFlexNone"),e?(e.table?($("#selectedPricesTable").html(e.table),$("#lastStepPrices").html(e.table)):($("#selectedPricesTable").html(""),$("#lastStepPrices").html("")),e.isAdditionalNight?$("#additionalNight").html(e.isAdditionalNight):$("#additionalNight").html("")):($("#selectedPricesTable").html(""),$("#lastStepPrices").html(""),$("#additionalNight").html(""))})}},function(e,t){var a=[],r=[],n=0,o=0,i=0;window.formatDate=function(e){return e.getDate()+"."+(e.getMonth()+1)+"."+e.getFullYear()},window.formatBookingDate=function(e){return["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"][e.getDay()]+", "+e.getDate()+". "+["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"][e.getMonth()]+" "+e.getFullYear()},window.formatVaucherDate=function(e){return e.getDate()+"."+("0"+(e.getMonth()+1)).slice(-2)+"."+e.getFullYear()},window.formatEnableDate=function(e){return("0"+(e.getDate()+1)).slice(-2)+"/"+("0"+(e.getMonth()+1)).slice(-2)+"/"+e.getFullYear()},window.formatEnableDate2=function(e){var t=("0"+e.getDate()).slice(-2);return("0"+(e.getMonth()+1)).slice(-2)+"/"+t+"/"+e.getFullYear()},window.disableDays=function(e){var t=formatDate(e),n=!1;$.inArray(t.toString(),r);if(a.length>0)for(var s=0;s<a.length;s++)return-1==$.inArray(t,a)||(!0,!1);if(r.length>0)for(s=0;s<r.length;s++){$.inArray(t.toString(),r);if(-1!=$.inArray(t,r)){n=!0;formatEnableDate(e);return!0}return!1}if(!0!==n){if(!(e>o&&e<i))return!1;calendarValid}};window.activateDateCalendar=function(){console.log("activateDae"),o=new Date(1e3*$("#stTime")[0].value),i=new Date(1e3*$("#endTime")[0].value),stFromDate=new Date(1e3*$("#defDate")[0].value);var e=parseInt($("#calendarValid")[0].value);$("#datetimepicker12").datepicker("destroy");var t=new Date,s=t.getDate(),l=t.getMonth()+1,u=t.getFullYear();if(s<10&&(s="0"+s),l<10&&(l="0"+l),(t=l+"/"+s+"/"+u)==formatEnableDate2(stFromDate)){var d=new Date(1e3*$("#defDate")[0].value);d.setDate(d.getDate()+1),stFromDate=d}if(0==e){var c,m=$("#openedDates")[0].value.replace(/ /g,"").replace(/(?:\r\n|\r|\n)/g,""),h=JSON.parse(m);if(r=h,h[0]){var v=h[0].split("."),p=v[1]+"/"+v[0]+"/"+v[2];c=new Date(p)}c||(c=new Date),$("#datetimepicker12").datepicker({startDate:stFromDate,inline:!0,sideBySide:!0,format:"DD/MM/YYYY",language:"de",allowInputToggle:!0,beforeShowDay:disableDays}).on("changeDate",function(e){var t=formatBookingDate(e.date),a=formatDate(e.date),r=$("#userDatePickShow"),o=$("#userDatePickShow1"),i=$("#userDatePickShow2");r&&r.html(t),o&&o.html(t),i&&i.html(t),a;var s={selDate:a},l=$.param(s);navigateMasterData("reservation/"+n,{manualPushState:"reservation/"+n,type:"GET",data:{step:2,pushD:l}})})}else{var g,f=$("#closedDates")[0].value.replace(/ /g,"").replace(/(?:\r\n|\r|\n)/g,""),_=JSON.parse(f),S=$("#availableDays")[0].value.replace(/ /g,"").replace(/(?:\r\n|\r|\n)/g,"");a=[],r=[],g=(a=_).length>0?{inline:!0,startDate:stFromDate,endDate:i,sideBySide:!0,defaultDate:stFromDate,allowInputToggle:!0,daysOfWeekDisabled:S,format:"DD/MM/YYYY",language:"de",beforeShowDay:disableDays}:{inline:!0,startDate:stFromDate,endDate:i,sideBySide:!0,defaultDate:stFromDate,allowInputToggle:!0,daysOfWeekDisabled:S,format:"DD/MM/YYYY",language:"de"},$("#datetimepicker12").datepicker(g).on("changeDate",function(e){var t=formatBookingDate(e.date),a=formatDate(e.date),r=$("#userDatePickShow"),o=$("#userDatePickShow1"),i=$("#userDatePickShow2");r&&r.html(t),o&&o.html(t),i&&i.html(t),a;var s={selDate:a},l=$.param(s);navigateMasterData("reservation/"+n,{manualPushState:"reservation/"+n,type:"GET",data:{step:2,pushD:l}})}),$("#datepicker").datepicker("setStartDate",stFromDate)}},window.navigateMasterData=function(e,t){var a="/"+e+"?navigate=1";t&&t.gtype&&(a="/"+e+"/"+t.gtype+"?navigate=1");var r=$.param(t.data);t.manualPushState&&(window.location.href="/"+t.manualPushState+"?"+r),$.ajax({url:a,type:t.type,context:document.body,headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content"),allowNavigate:1},data:t.data}).done(function(e,t,r){r.getAllResponseHeaders();if(e.excUrl)e.excUrl.replace("/","").replace("?navigate=1","");e.view&&$("#pageDynamic").html(e.view),e.metaView&&($("head meta").remove(),$("head title").remove(),$("head").prepend(e.metaView)),$(this).addClass("done");-1!==a.indexOf("categoryType/weekend")?($(".wrapEr").removeClass("active"),$("#allWeekend .wrapEr").addClass("active")):-1!==a.indexOf("categoryType/Tagesausflug")?($(".wrapEr").removeClass("active"),$("#allTagesausflug .wrapEr").addClass("active")):-1!==a.indexOf("categoryType/Gruppenausflüge")&&($(".wrapEr").removeClass("active"),$("#allGruppenausfluge .wrapEr").addClass("active")),a.indexOf("geschenkgutschein")})};window.setOffer=function(e){0,0,s=[],l=[],n=e,setOfferMain(e)};var s=[],l=[];window.getaditionalSelected=function(){return l},window.getPricesSelected=function(){return s},window.selectPrice=function(e,t,a){var r=Number($("#s_curr").val()),n=Number($("#s_exch").val()),o=e.target;if(0!=o.value){var i={priceId:t,priceValue:o.value,totalPrice:a},u="#price_"+t;$(u+" option").filter(function(e){e==o.value?$(u+" option[value="+o.value+"]").attr("selected","selected"):$(u+" option[value="+e+"]").removeAttr("selected")}),s.length>0?(s.forEach(function(e,t){e.priceId==i.priceId&&s.splice(t,1)}),s.push(i)):s.push(i);s.forEach(function(e,t){Number(e.totalPrice)*Number(e.priceValue)}),addUpBill(l,s,r,n)}else{var d="#price_"+t;$(d+" option").filter(function(e){e==o.value?$(d+" option[value="+o.value+"]").attr("selected","selected"):$(d+" option[value="+e+"]").removeAttr("selected")});var c={priceId:t,priceValue:o.value,totalPrice:a};s.forEach(function(e,t){e.priceId==c.priceId&&s.splice(t,1)}),addUpBill(l,s,r,n)}},window.selectAditional=function(e,t,a){var r=Number($("#s_curr").val()),n=Number($("#s_exch").val()),o=e.target,i={additionalId:t,additionalValue:o.value,totalAdditional:a},u="#price_"+t;$(u+" option").filter(function(e){e==o.value?$(u+" option[value="+o.value+"]").attr("selected","selected"):$(u+" option[value="+e+"]").removeAttr("selected")}),l.length>0?(l.forEach(function(e,t){e.additionalId==i.additionalId&&l.splice(t,1)}),l.push(i)):l.push(i);l.forEach(function(e,t){Number(e.totalAdditional)*Number(e.additionalValue)}),addUpBill(l,s,r,n)},window.addUpBill=function(e,t,a,r){var n=0;if(e.length>0&&e.forEach(function(e,t){n+=Number(e.totalAdditional)*Number(e.additionalValue)}),t.length>0&&t.forEach(function(e,t){n+=Number(e.totalPrice)*Number(e.priceValue)}),0==a){$("#bookingTotal").text(n);var o=roundUp(n/r,0);$("#shiftBookingTotal").text(o)}else{$("#bookingTotal").text(n);var i=roundUp(n*r,0);$("#shiftBookingTotal").text(i)}0==e.length&&0==t.length?$("#selectedPricesInp").val(""):$("#selectedPricesInp").val("1")},window.startGroupReservation=function(e){navigateMaster("gruppenanfrage/"+n+"/"+e.target.value,{})},window.roundUp=function(e,t){return t=Math.pow(10,t),Math.ceil(e*t)/t},window.configurePrices=function(e){},window.selectPrices=function(e){$(".loadingStepStyle").addClass("forcedFlexNone");var t={_token:e,offer:n,prices:s,additionals:l,firstTable:""},a=$("#vaucherOfferT1");a.length>0&&(t.offerVaucherTable=a.html()),$.ajax({method:"POST",url:"/selectedPrices",data:t,headers:{"X-CSRF-TOKEN":$('meta[name="csrf-token"]').attr("content")}}).done(function(e){$(".loadingStepStyle").removeClass("forcedFlexNone"),e?(e.table?($("#selectedPricesTable").html(e.table),$("#lastStepPrices").html(e.table)):($("#selectedPricesTable").html(""),$("#lastStepPrices").html("")),e.isAdditionalNight?$("#additionalNight").html(e.isAdditionalNight):$("#additionalNight").html("")):($("#selectedPricesTable").html(""),$("#lastStepPrices").html(""),$("#additionalNight").html(""))})},window.selectPricesOfferVaucher=function(e,t){$(".loadingStepStyle").addClass("forcedFlexNone");var a=$("#bookingTable").html(),r={_token:e,offer:n,prices:s,additionals:l,firstTable:a},o=$("#vaucherOfferT1");o.length>0&&(r.offerVaucherTable=o.html()),$.ajax({method:"POST",url:"/selectedPrices",data:r}).done(function(e){console.log("msg",e),$(".loadingStepStyle").removeClass("forcedFlexNone"),e?(navigateMaster("offerVaucherReservation/"+t+"?navigate=1&step=2",{manualPushState:"offerVaucherReservation/"+t+"?navigate=1&step=2",urlCorrect:!0}),e.table?($("#selectedPricesTable").html(e.table),$("#lastStepPrices").html(e.table)):($("#selectedPricesTable").html(""),$("#lastStepPrices").html("")),e.isAdditionalNight?$("#additionalNight").html(e.isAdditionalNight):$("#additionalNight").html("")):($("#selectedPricesTable").html(""),$("#lastStepPrices").html(""),$("#additionalNight").html(""))})},window.getPrices=function(e){$.ajax({method:"GET",url:"/pricesForDate/"+e+"/"+n}).done(function(e){$("#bookingTable").html(e)})},$(document).ready(function(){$(document).on("change","#step2row input, #mainVaucherFormS1 input, #voucherStep2 input, #bookingVouchers1 input, #bookingVouchers2 input",function(e){var t=$(this);t.attr("value",t.val())}),$(document).on("change","#reservationgarantee_check",function(e){var t=$(this);"0"==t.attr("val")?t.attr("val","1"):t.attr("val","0")}),$(document).on("change","#step2row select, #voucherStep2 select, #bookingVouchers2 select",function(e){var t=$(this);if("user_country"==this.id)$("#"+t.context.id+" option").filter(function(e){var a=1;++e==(a="Schweiz"==t.context.value?1:"Deutschland"==t.context.value?2:3)?$("#"+t.context.id+" option[cost="+a+"]").attr("selected","selected"):$("#"+t.context.id+" option[cost="+e+"]").removeAttr("selected")});else if("user_payment"==this.id){var a=this;$("#"+this.id+" option").filter(function(e){if(this.value==a.value){if(console.log("this.value",this.value),"Kreditkarte/Postcard"==this.value){var t=$("#voucherStepb2Pay");console.log("chTypeRes.length",t.length),t.length>0&&$("#voucherStepb2").hide(),$("#voucherOffers3").hide(),$("#voucherStepb2Pay").show(),$("#voucherOffers3Pay").show()}else $("#voucherStepb2Pay").hide(),$("#voucherOffers3Pay").hide(),$("#voucherStepb2").show(),$("#voucherOffers3").show();$("#"+a.id+' option[value="'+this.value+'"]').attr("selected","selected")}else $("#"+a.id+' option[value="'+this.value+'"]').removeAttr("selected")})}else if("user_shipping"==this.id){var r=this;$("#"+this.id+" option").filter(function(e){this.value==r.value?$("#"+r.id+' option[value="'+this.value+'"]').attr("selected","selected"):$("#"+r.id+' option[value="'+this.value+'"]').removeAttr("selected")})}});document.getElementById("datetimepicker12")}),$(document).on("click","#bookingStepb1aaa,#bookingStepb2aaa,#bookingStepb3aaa",function(e){var t=$("#bookingDate").val(),a=$(e.target).attr("id");if("bookingStepb1"==a)$(".bookingSteps").removeClass("stepShowBooking"),$(".bookingSteps").removeClass("stepShowBookingSpecial"),$("#bookingStep2").addClass("stepShowBooking");else if("bookingStepb2"==a)validateVoucherOffer(1,1,"#bookingValid1",{});else if("bookingStepb3"==a){var r=$("#user_name").val(),o=$("#user_surname").val(),i=$("#user_company").val(),u=$("#user_address").val(),d=$("#user_postalCode").val(),c=$("#user_postalPlace").val(),m=$("#user_country").val(),h=$("#user_telephone").val(),v=$("#user_email").val(),p=$("#user_message").val(),g=$("#user_payment").val(),f=$("#user_shipping").val(),_=($("#user_validFrom").val(),$("#reservationgarantee_check")),S=$("#reservationgarantee_cardtype").val(),b=$("#reservationgarantee_cardno").val(),w=$("#reservationgarantee_exp_month").val(),y=$("#reservationgarantee_exp_year").val(),x=$("#reservationgarantee_name").val();_=_.is(":checked")?1:0;var k=$("#vouCode").val(),C=$("#marketingCode").val(),T=$("#totalBetrag").val(),P=$("input[name=andreOp]:checked").val();$("#vouchName").val(),$("#exampleTextarea").val(),$("#otherValue").val();$("input[type=radio][name=optionsRadios]:checked").val(),"Rechnung"!=g?(1,$("#creditCardRules").show()):$("#creditCardRules").hide();var O=$("input[name=_token]").val();sendData={_token:O,offer:n,prices:s,additionals:l,booking_date:t,reservationgarantee_nocard:_,reservationgarantee_cardno:b,reservationgarantee_cardtype:S,reservationgarantee_exp_month:w,reservationgarantee_exp_year:y,reservationgarantee_name:x,vaucher_code:k,marketing_code:C,message:p,vaucher_amount:T,saveUserContact:$("#step2row").html(),user:{username:v,name:r+" "+o,first_name:r,last_name:o,address:u,telephone:h,fax:"",email:v,title:P,zip:d,city:c,country:m,www:"",company:i,gender:P}},console.log(v),$("#userName").text(r),$("#userSurname").text(o),$("#uName").text(o),$("#userCompanyHolder").text(i),$("#userAddressHolder").text(u),$("#userPLZOrtHolder").text(d+", "+c),$("#userCountryHolder").text(m),$("#userTelephoneHolder").text(h),$("#userEmailHolder").text(v);p=$("#user_message").val().replace(/\n/g,"<br />");$("#userMessageHolder").html(p),$("#userPaymentHolder").text(g),$("#userShippingHolder").text(f),$("#userStatusHolder").text(P),"Herr"==P?$("#uStatus").text("R "+P):$("#uStatus").text(" "+P),$(".stepsIndic").removeClass("step1"),$("#step4I").addClass("step1"),validateVoucherOffer(1,2,"#bookingContactForm",sendData)}})}]);