1!function(y){function H(t,a=0){void 0!==t&&((t.hasClass("bookingform_horizontal")||t.hasClass("bookingform_vertical"))&&t.find(".wrap").not(".general_info_wrap").not(".submit_wrap").find("input,a,select,textarea").attr("tabindex",a),t.hasClass("room_wrap")?t.find(".adults_field, .children_field").find("select").each(function(){y(this).attr("tabindex",a)}):t.hasClass("ages_wrap")&&setTimeout(function(){t.hasClass("visible")?t.find(".child_field.visible").eq(0).find("select").removeAttr("tabindex"):t.find(".child_field.visible").eq(0).find("select").attr("tabindex",a)},1e3),t.hasClass("child_field")&&t.each(function(){y(this).hasClass("visible")?y(this).find("select").removeAttr("tabindex"):y(this).find("select").attr("tabindex",a)}),t.hasClass("codes_wrap"))&&setTimeout(function(){var e=t.find("input");t.hasClass("visible")?e.each(function(){y(this).removeAttr("tabindex")}):e.each(function(){y(this).attr("tabindex",a)})},1e3)}function I(e){var t,a;e.hasClass("visible")||(e.stop(),t=e.parents(".inner_wrap"),a=e.find("> .inner_wrap").outerHeight(),e.animate({height:a}).addClass("visible"),t.each(function(){var e=y(this).parent(),t=(e.stop(),e.outerHeight()+a);e.animate({height:t})}),H(e,0))}function N(e){e.stop();var t=e.parents(".inner_wrap"),a=e.outerHeight();e.animate({height:0}).removeClass("visible"),t.each(function(){var e=y(this).parent(),t=(e.stop(),e.outerHeight()-a);e.animate({height:t})}),H(e,-1)}jQuery(window).load(function(){}),jQuery(document).ready(function(){y(".bookingform").each(function(){var e,t,a,i,n,r,s,d,o,m=y.extend(!0,{},window.accorBookingArgs),c=y(this),l=c.find(".codes_wrap"),f=c.data("args"),h=(f&&(m=y.extend(m,f)),c.find(".rooms_select")),f=(H(c,-1),h.change(function(){var e=parseInt(h.val()),t=0===h[0].selectedIndex;(t?N:I)(l);for(var a=1;a<=m.maxrooms;a++){var i=c.find(".room_"+a+"_wrap");(a<=e&&!t?I:N)(i)}}),c.find(".children_field select").change(function(){var e,t,a,i,n,r,s,d=y(this),o=d.closest(".room_wrap").find(".ages_wrap"),c=parseInt(d.val()),l=d.data("prev_val")||0;if(d.data("prev_val",c),0===c)N(o);else{o.hasClass("vertical")?(d=c,l=l,(t=o).stop(),a=t.parents(".inner_wrap"),i=t.find("> .inner_wrap"),n=i.find(".child_field").eq(0).outerHeight(),(r=0)<l&&(r=t.outerHeight()),l=i.outerHeight()-i.height(),s=i.find(".title_field").outerHeight(!0)+l+d*n,t.animate({height:s}).addClass("visible"),a.each(function(){var e=y(this).parent(),t=(e.stop(),e.outerHeight()+s-r);e.animate({height:t})}),H(t,0)):I(o);for(var f=1;f<=m.maxchildren;f++){var h=o.find(".child_"+f+"_field");f<=c?((e=h).addClass("visible"),H(e,0)):((e=h).removeClass("visible"),H(e,-1))}}}),c);function u(e){return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),e}var p,v,g,_,w,D=f.find("input[name=checkInDate]"),b=f.find("input[name=checkOutDate]"),k=f.find("input[name=checkInDateDP]"),x=f.find("input[name=checkOutDateDP]");function C(){var e=k.datepicker("option","dateFormat");v=y.datepicker.formatDate("dd/mm/yy",d),g=y.datepicker.formatDate(e,d),_=y.datepicker.formatDate("dd/mm/yy",o),w=y.datepicker.formatDate(e,o),k.val(g),x.val(w),D.val(v),b.val(_)}D.length&&k.length&&b.length&&x.length?(e=864e5,t=u(new Date),a=t,i=new Date(t.getTime()+400*e),n=new Date(t.getTime()+401*e),r="dd/mm/yy",k.data("dateformat")&&(r=k.data("dateformat")),k.data("mindate")&&(p=parseInt(k.data("mindate")),p=isNaN(p)?0:1e3*p,t<p)&&(a=u(new Date(p))),s=new Date(a.getTime()+e),k.data("maxdate")&&(p=parseInt(k.data("maxdate")),p=isNaN(p)?0:1e3*p,s<p)&&(i=u(new Date(p)),n=new Date(i.getTime()+e)),d=a,o=s,k.datepicker({dateFormat:r,dayNamesMin:y.datepicker._defaults.dayNamesShort,minDate:a,maxDate:i,onSelect:function(){d=k.datepicker("getDate"),s=new Date(d.getTime()+e),o=s,x.datepicker("option","minDate",s),x.datepicker("setDate",o),C()}}),x.datepicker({dateFormat:r,dayNamesMin:y.datepicker._defaults.dayNamesShort,minDate:s,maxDate:n,onSelect:function(){o=x.datepicker("getDate"),C()}}),C()):window.console&&console.log("Bookingform without minimum date fields",f),c[0].addEventListener("de_booking_submitted",function(){N(l);for(var e=1;e<=m.maxrooms;e++)N(c.find(".room_"+e+"_wrap"));h[0].selectedIndex=0})})})}(jQuery); 2//# sourceMappingURL=bookingform.min.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.