1function ctaInView(){var a=0;$(window).scroll(function(e){var t=$(this).scrollTop();scrollDown=a<t,a=t}),$("#ticket").bind("inview",function(e,t){1==t})}function showCorrectPaymentInputs(){"cc"==$('[name="amount"]:checked').val()?($(".cc_visible").show(),$(".paymentOptions_visible").hide(),$("#buttonNextStep").html($("#buttonNextStep").data("hotel_visible")),$("#toastButtonNextStep").html($("#buttonNextStep").data("hotel_visible")),prefillCcName()):"hotel"==$('[name="amount"]:checked').val()||"guest"==$('[name="amount"]:checked').val()||"full_invoice"==$('[name="amount"]:checked').val()||"lo_invoice"==$('[name="amount"]:checked').val()?($(".paymentOptions_visible").hide(),$(".cc_visible").hide(),$("#buttonNextStep").html($("#buttonNextStep").data("hotel_visible")),$("#toastButtonNextStep").html($("#buttonNextStep").data("hotel_visible"))):($(".paymentOptions_visible").show(),$(".cc_visible").hide(),$("#buttonNextStep").html($("#buttonNextStep").data("paymentoptions_visible")),$("#toastButtonNextStep").html($("#buttonNextStep").data("paymentoptions_visible")))}function prefillCcName(){var e;$("#cc_name").val().length<1&&0<$("#first_name").length&&(e=$("#first_name").val(),0<$("#prefix").val().length&&(e+=" "+$("#prefix").val()),e+=" "+$("#last_name").val(),$("#cc_name").val(e))}
1function invalidHandler(e,t){$(".notification--alert").css("display","block").addClass("animated animate__fadeInDown").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){$(this).removeClass("animated animate__fadeInDown")})}function validateHighlight(e,t,a){e=$(e).prop("name");$("[name="+e+"]").addClass("form__input--error").removeClass("form__input--valid"),$("[name="+e+"]").closest("label").addClass("form__label--error"),$("[name="+e+"]").closest("[class*=bit-]").find("label").addClass("form__label--error"),$("[name="+e+"]").prev("label").addClass("form__label--error"),$("[name="+e+"]").closest(".grid__row").find(".form__caption").addClass("form__label--error")}function validateUnhighlight(e,t,a){e=$(e).prop("name");$("[name="+e+"]").removeClass("form__input--error").addClass("form__input--valid"),$("[name="+e+"]").closest("label").removeClass("form__label--error"),$("[name="+e+"]").closest("[class*=bit-]").find("label").removeClass("form__label--error"),$("[name="+e+"]").prev("label").removeClass("form__label--error"),$("[name="+e+"]").closest(".grid__row").find(".form__caption").removeClass("form__label--error")}function performAddressLookup(){"NL"==$("#country").val()&&""!=$("#postal_code").val()&&""!=$("#house_number").val()&&$.post(urlAddressLookup,{postal_code:$("#postal_code").val(),house_number:$("#house_number").val()},function(e){e.street&&e.city&&($("#street").val(e.street),$("#city").val(e.city))},"json")}function updateSelectedRooms(){showLoader(),$.post(urlUpdateSelectedRooms,$("input[data-room-number]").serialize(),function(e){e.totalRate?($(".total__price .price").html(e.totalRateFletcherFriendFormattedHtml),$(".total--subtotal .price").html(e.subtotalRateFormattedHtml),$(".receipt__selection--taxhand .receipt__selection__price").html(e.totalTaxFormatted),$(".toast__price .price").html(e.totalRateFletcherFriendFormattedHtml),$(".toast__subtotal .price").html(e.subtotalRateFormattedHtml),$(".toast__total .toast__totalprice").html(e.totalRateFletcherFriendFormattedHtml),$(".original__price").text(e.totalRateFormatted),$(".toast__selection .original__price").text(e.totalRateFormatted),$(".ff__discount").text("- "+e.discountFletcherFriendFormatted)):($(".total__price .price").html(""),$(".toast__price .price").html(""),$(".toast__total .toast__totalprice").html(""),$(".original__price").text(""),$(".ff__discount").text(""));var t=$(".notEnoughRoomsSelectedError");!0===e.notEnoughRoomsSelected?(t.addClass("show"),$(".availabilityError").addClass("hide"),$("#receiptTotal").addClass("hide"),$(".toast").removeClass("toast--active")):!0===e.availabilityError?(t.addClass("hide"),$(".availabilityError").removeClass("hide"),$("#receiptTotal").addClass("hide"),$(".toast").removeClass("toast--active")):(t.removeClass("show"),$(".availabilityError").removeClass("show"),$("#receiptTotal").removeClass("hide"),$(".toast").addClass("toast--active")),dataLayer&&e.dataLayers&&$.each(e.dataLayers,function(e,t){dataLayer.push(t)}),e.selectedGtm&&$("#selectedGtm").val(e.selectedGtm),e.productGtm&&($("button#buttonNextStep").data("products",e.productGtm),$("button#buttonNextStep").attr("data-products",e.productGtm)),hideLoader()},"json")}function showFletcherFriendRates(){$("[data-rate='ff']").removeClass("hide"),$("[data-rate='public']").addClass("hide");var e=0,t=0,a=0;$("[data-rate='ff']").each(function(){0<$(this).find(".total--aftertax").length&&(a=$(this).data("value")),0<$(this).find(".total--subtotal").length&&(t=$(this).data("value")),0<$(this).hasClass(".receipt__selection__price").length&&(e=$(this).data("value"))}),0<e?updateFullStayGtm(a,t,e):updateFullStayGtm(a,t)}function hideFletcherFriendRates(){$("[data-rate='ff']").addClass("hide"),$("[data-rate='public']").removeClass("hide");var e=0,t=0,a=0;$("[data-rate='public']").each(function(){0<$(this).find(".total--aftertax").length&&(a=$(this).data("value")),0<$(this).find(".total--subtotal").length&&(t=$(this).data("value")),0<$(this).hasClass(".receipt__selection__price").length&&(e=$(this).data("value"))}),0<e?updateFullStayGtm(a,t,e):updateFullStayGtm(a,t)}function updateSelectedGtm(){var a=[];$("input[name='extras[]']").each(function(e,t){$(this).is(":checked")&&void 0!==$(this).data("gtm")&&a.push($(this).data("gtm"))}),0<a.length&&$("#selectedGtm").val(JSON.stringify(a))}function updateFullStayGtm(e,t,a){var r=$("#buttonNextStep").data("products"),r=(r="object"!=typeof r?JSON.parse(r):r)[0];void 0!==r&&(r.sub=t,r.price=e,void 0!==a&&(r.th=a),(t=Array()).push(r),$("#buttonNextStep").data("products",JSON.stringify(t)),$("#buttonNextStep").attr("data-products",JSON.stringify(t)))}function validateCreditCard(e,t){return"SP-AMEX"==t?!!e.match(/^(?:3[47][0-9]{13})$/):"SP-ECMC"==t?!!e.match(/^(?:5[1-5][0-9]{14})$/):"SP-VISA"==t&&!!e.match(/^(?:4[0-9]{12}(?:[0-9]{3})?)$/)}function validateCreditCardExpiration(e,t,a){a=new Date("20"+a,t-1),t=new Date;return a.getTime()>t.getTime()?(0<$("#cc_valid_year").length&&($("#cc_valid_year").removeClass("form__input--error"),$("#cc_valid_year-label").removeClass("form__label--error")),!0):(0<$("#cc_valid_year").length&&($("#cc_valid_year").addClass("form__input--error"),$("#cc_valid_year-label").addClass("form__label--error")),!1)}function validateCreditCardExpirationYear(){return 0<$("#cc_valid_month").length&&($("#cc_valid_month").focus(),$("#cc_valid_month").blur()
1),!0}function updateDiscountCode(e){e&&e.preventDefault(),$("#is_discount_post").val("1"),$("#discountcode").closest("form").get(0).submit()}var lang,container;$(".hotel-room__more-info").click(function(){var e=$(this).closest(".hotel-room"),t=$(this).closest(".hotel-room").find(".hotel-room__extra--hide");e.toggleClass("more"),t.toggleClass("hide")}),ctaInView(),(0<$("#account_no").length&&1==$("#account_no").is(":checked")||!(0<$("#account_yes").length&&1==$("#account_yes").is(":checked"))&&0<$("#ticket").length&&"true"==$("#ticket").attr("data-ff-disabled")?hideFletcherFriendRates:showFletcherFriendRates)(),0<$("#amount-full").length&&($('[name="amount"]').on("change",function(){showCorrectPaymentInputs()}),showCorrectPaymentInputs()),$("button[data-room-type]").on("click",function(){$(this).hasClass("button--selected")||($(this).text($(this).data("text-selected")).addClass("button--selected"),$("button[data-room-number='"+$(this).data("room-number")+"']").not(this).each(function(e,t){$(t).text($(t).data("text-default")).removeClass("button--selected")}),$.each(numRoomsAvailable,function(e,t){var a=$("button[data-room-type='"+e+"']"),e=$("button[data-room-type='"+e+"'].button--selected");e.length>=t?$(a).not(e).prop("disabled",!0).addClass("button--disabled"):$(a).not(e).prop("disabled",!1).removeClass("button--disabled")}),$("input[data-room-number='"+$(this).data("room-number")+"']").val($(this).data("room-type")),$(".receipt__selection[data-room-number='"+$(this).data("room-number")+"'] .receipt__selection__title").text($(this).data("room-name")),$(".receipt__selection[data-room-number='"+$(this).data("room-number")+"'] .receipt__selection__price").text($(this).data("room-price-formatted")),$(".toast__selection[data-room-number='"+$(this).data("room-number")+"'] .toast__selection__title").text($(this).data("room-name")),$(".toast__selection[data-room-number='"+$(this).data("room-number")+"'] .toast__selection__price").text($(this).data("room-price-formatted")),updateSelectedRooms())}),0<$("#receipt_extras").length&&"undefined"!=typeof updateReceiptExtras&&(updateReceiptExtras(),updateSelectedGtm(),$("input[name='extras[]']").on("change",updateReceiptExtras),$("input[name='extras[]']").on("change",updateSelectedGtm),$("#receipt_extras").on("click",".receipt__selection__delete",function(){$($(this).parent().data("extra")).prop("checked",!1),updateReceiptExtras()})),0<$("#toast_receipt_extras").length&&"undefined"!=typeof updateReceiptExtras&&(updateReceiptExtras(),updateSelectedGtm(),$("input[name='extras[]']").on("change",updateReceiptExtras),$("input[name='extras[]']").on("change",updateSelectedGtm),$("#toast_receipt_extras").on("click",".toast__selection__delete",function(){$($(this).parent().data("extra")).prop("checked",!1),updateReceiptExtras()})),"undefined"!=typeof urlAddressLookup&&($("#postal_code").on("change",performAddressLookup),$("#house_number").on("change",performAddressLookup)),$(document).on("change","#account_yes,#account_no",function(){(1==$("#account_yes").is(":checked")?($("#ffModal").hide(),showFletcherFriendRates):($("#ffModal").show(),hideFletcherFriendRates))()}),$("#reCheckFf").on("click",function(){$("#account_yes").trigger("click"),$("#ffModal").hide(),showFletcherFriendRates()}),$("#noFf").on("click",function(){$("#ffModal").hide(),hideFletcherFriendRates()}),$("#discountcode").keypress(function(e){13==e.keyCode&&updateDiscountCode(e)}),$("#discountcode_button").click(updateDiscountCode),$("#receipt_discount").on("click",".receipt__selection__delete",function(e){$("#discountcode").val(""),updateDiscountCode(e)}),$("input, select, textarea",$("#personal_information")).change(function(){$.post(this.form.action,$(this.form).serialize()).done(function(e){void 0!==e.hash&&(_paq.push(["setCustomData",{recoveryHash:e.hash}]),_paq.push(["trackPageView"]))})}),jQuery.validator.addMethod("dutchzip",function(e,t){return this.optional(t)||/^[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z]{2}$/i.test(e)},"Please specify the correct domain for your documents"),jQuery.validator.addMethod("phonenr",function(e,t){return this.optional(t)||/(^\+[0-9]{2}|^\+[0-9]{2}\(0\)|^\(\+[0-9]{2}\)\(0\)|^00[0-9]{2}|^0)([0-9]{9}$|[0-9\-\s]{10}$)/i.test(e)},"Not a phone number"),jQuery.validator.addMethod("ccnr",function(e,t){var a=$("#cc_type").val();return this.optional(t)||validateCreditCard(e,a)},"Not a valid creditcard number"),jQuery.validator.addMethod("ccdate",function(e,t){var a=$("#cc_valid_month").val(),r=$("#cc_valid_year").val();return 0==a.length||0==r.length||this.optional(t)||validateCreditCardExpiration(e,a,r)}),jQuery.validator.addMethod("birthday_day",function(e){return"0"!=e&&""!=e},"day required"),jQuery.validator.addMethod("birthday_month",function(e){return"0"!=e&&""!=e},"month required"),jQuery.validator.addMethod("birthday_year",function(e){return"0"!=e&&""!=e},"year required"),0<$("#personal_information").length&&(lang=$("#personal_information").data("lang"),msgs=[],$.each(error_translations,function(e,t){msgs[e]=t}),$.validator.addMethod("postal_code_nl",function(e){return"NL"===$("#country").val()?/^[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z]{2}$/i.test(e):""!==e},"Zipcode is not in correct format"),container=$(".notification.notification--alert.notification--float"),$("#personal_information").validate({errorContainer:container,errorLabelContainer:$("ul",container),wrapper:"li",ignore:".ignore, :hidden",focusInvalid:!1,onkeyup:!1,highlight:validateHighlight,unhighlight:validateUnhighlight,rules:{first_name:"required",last_name:"required",postal_code:{required:!0,postal_code_nl:!0},house_number:"required",date_birth_day:"birthday_day",date_birth_month:"birthday_month",date_birth_year:"birthday_year",ph
1one:{required:!0},email:{required:!0,email:!0},method:"required",account:"required",cc_number:"ccnr",cc_valid_month:"ccdate",cc_valid_year:"ccdate"},messages:{room0_guest_first_name:msgs.error__firstname,room0_guest_last_name:msgs.error__surname,room0_guest_email:{required:msgs.error__email__required,email:msgs.error__email__email},room1_guest_first_name:msgs.error__firstname,room1_guest_last_name:msgs.error__surname,room1_guest_email:{required:msgs.error__email__required,email:msgs.error__email__email},room2_guest_first_name:msgs.error__firstname,room2_guest_last_name:msgs.error__surname,room2_guest_email:{required:msgs.error__email__required,email:msgs.error__email__email},room3_guest_first_name:msgs.error__firstname,room3_guest_last_name:msgs.error__surname,room3_guest_email:{required:msgs.error__email__required,email:msgs.error__email__email},room4_guest_first_name:msgs.error__firstname,room4_guest_last_name:msgs.error__surname,room4_guest_email:{required:msgs.error__email__required,email:msgs.error__email__email},room5_guest_first_name:msgs.error__firstname,room5_guest_last_name:msgs.error__surname,room5_guest_email:{required:msgs.error__email__required,email:msgs.error__email__email},room6_guest_first_name:msgs.error__firstname,room6_guest_last_name:msgs.error__surname,room6_guest_email:{required:msgs.error__email__required,email:msgs.error__email__email},room7_guest_first_name:msgs.error__firstname,room7_guest_last_name:msgs.error__surname,room7_guest_email:{required:msgs.error__email__required,email:msgs.error__email__email},room8_guest_first_name:msgs.error__firstname,room8_guest_last_name:msgs.error__surname,room8_guest_email:{required:msgs.error__email__required,email:msgs.error__email__email},room9_guest_guest_first_name:msgs.error__firstname,room9_guest_last_name:msgs.error__surname,room9_guest_email:{required:msgs.error__email__required,email:msgs.error__email__email},first_name:msgs.error__firstname,last_name:msgs.error__surname,account:msgs.error__account,postal_code:{required:msgs.error__zipcode__required,postal_code_nl:msgs.error__zipcode__dutchzip},house_number:msgs.error__street_number,street:msgs.error__street,city:msgs.error__city,date_birth_day:msgs.error__birthday_day,date_birth_month:msgs.error__birthday_month,date_birth_year:msgs.error__birthday_year,phone:{required:msgs.error__phone__required},email:{required:msgs.error__email__required,email:msgs.error__email__email},email_guest:{required:msgs.error__email__required,email:msgs.error__email__email},method:msgs.error__method,cc_type:msgs.error__cc_type,cc_number:msgs.error__cc_number,cc_name:msgs.error__cc_name,cc_valid_month:{required:msgs.error__cc_valid_month,ccdate:msgs.error__cc_valid_expiration},cc_valid_year:{required:msgs.error__cc_valid_year,ccdate:msgs.error__cc_valid_expiration}},invalidHandler:function(){$(container).find("ul").html(""),invalidHandler()},submitHandler:function(e){$("#buttonNextStep").attr("disabled","disabled"),$("#toastButtonNextStep").attr("disabled","disabled"),$("#buttonNextStep").addClass("button--disabled"),$("#toastButtonNextStep").addClass("button--disabled"),formSubmit(e)}}));
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.