1!function(e){function t(t,a,o){var i=0,n=0,r=0,s=0,c=0,l=0;void 0!==t&&0!=t&&(i=(new Date(t).getDate()<10?"0":"")+new Date(t).getDate(),n=(new Date(t).getMonth()<9?"0":"")+(new Date(t).getMonth()+1),r=new Date(t).getFullYear()),void 0!==a&&0!=a&&(s=(new Date(a).getDate()<10?"0":"")+new Date(a).getDate(),c=(new Date(a).getMonth()<9?"0":"")+(new Date(a).getMonth()+1),l=new Date(a).getFullYear()),e("input[name=fromday]").val(i),e("input[name=frommonth]").val(n),e("input[name=fromyear]").val(r),e("input[name=today]").val(s),e("input[name=tomonth]").val(c),e("input[name=toyear]").val(l)}e.fn.serializeObject=function(){var t={},a=this.serializeArray();return e.each(a,function(){void 0!==t[this.name]?(t[this.name].push||(t[this.name]=[t[this.name]]),t[this.name].push(this.value||"")):t[this.name]=this.value||""}),t},window.init_datepickers=window.init_datepickers||function(){var a=e("#check_in"),o=e("#check_out"),i=new Date,n=new Date(i.getTime()+864e5);a.datepicker({dateFormat:"dd/mm/y",minDate:i,duration:"fast",onClose:function(e){var n,r=a.datepicker("getDate"),s=o.datepicker("getDate");null===r&&(a.datepicker("setDate",i),r=i),n=new Date(r.getTime()+864e5),o.datepicker("option","minDate",n),s<=r&&o.datepicker("setDate",n),t(r,n),o.datepicker("show")}}).datepicker("setDate",i),o.datepicker({dateFormat:"dd/mm/y",minDate:"+1d",duration:"fast",onClose:function(e){t(a.datepicker("getDate"),o.datepicker("getDate"))}}).datepicker("setDate",n),t(i,n)},window.webSdkOffers=window.webSdkOffers||function(){e("div[data-websdk]").each(function(){var t,a,o,i,n=e(this),r=n.data("include"),s=n.data("websdk"),c=n.attr("id"),l=n.data("websdk-template");if(o=e(l||"#"+c+"_template").text(),"undefined"!=typeof websdk_config&&void 0!==websdk_config[c]&&"undefined"!=typeof $fbsdk&&(t=websdk_config[c],$fbsdk.Config.baseHost=t.baseHost,"Offers"==s&&((a=new $fbsdk[s](t.params)).setAuthToken(t._authCode),a.load(function(a){var s;if(!a)if(s=this.getRawData(),isEmpty(s.rates))n.closest(".special_offers").removeClass("loading").addClass("no_offers"),"undefined"!=typeof no_offers&&n.closest(".special_offers").html(no_offers);else{if(void 0!==t.excluded_offers&&""!==t.excluded_offers){for(var c=[],l=0;l<s.rates.length;l++)void 0!==s.rates[l]&&-1==e.inArray(s.rates[l].rate.name,t.excluded_offers)&&c.push(s.rates[l]);s.rates=c}if(void 0!==t.to_preview&&t.to_preview.length>0){var d=s.rates.slice(),f=[];e.each(t.to_preview,function(e,t){var a=d.filter(function(e){return e.rate.name==t});a.length>0&&(f=f.concat(a))}),f.length>0&&(s.rates=f)}if(void 0!==r&&void 0!==r.length&&r.length>0){for(c=[],l=0;l<s.rates.length;l++)if(void 0!==s.rates[l])for(var h=s.rates[l].rate.name,m=0;m<r.length;m++){var u=r[m],p=new RegExp(u);if(h.match(p)){c.push(s.rates[l]);break}}s.rates=c}void 0!==t.offers_number&&""!==t.offers_number&&s.rates.length>parseInt(t.offers_number,10)&&(s.rates.length=parseInt(t.offers_number,10));for(l=0;l<s.rates.length;l++)if(void 0!==s.rates[l]){var _=void 0!==n.data("excerpt_chars")?n.data("excerpt_chars"):20;s.rates[l].rate.excerpt=s.rates[l].rate.plain_description.substr(0,_)+"…"}if(void 0!==t.params.currency&&"VND"===t.params.currency&&"undefined"!=typeof numeral)for(l=0;l<s.rates.length;l++)if(void 0!==s.rates[l]){var g=numeral(s.rates[l].quotation.totalPrice).format("0,0.00");s.rates[l].quotation.totalPrice=g;var v=numeral(s.rates[l].quotation.pricePerNight).format("0,0.00");s.rates[l].quotation.pricePerNight=v}i=Mustache.render(o,s),n.html(i),n.data("cloneto")&&e(n.data("cloneto")).html(i),n.closest(".special_offers").removeClass("loading"),n.closest("#preview_offers").size()>0&&carousel_offers(),n.closest("#rooms_list").size()>0&&n.closest(".preview_content").find(".book").each(function(){var t=e(this);t.click(function(){t.closest(".preview_content").find("a.price_cont").trigger("click")})});var b=0,k=n.find(".offer_wrap");k.each(function(t,a){var o=e(this).find(".preview_content h5").height();o>b&&(b=o)}),k.each(function(){e(this).find(".preview_content h5").css("height",b)}),setTimeout(function(){var e=n.closest(".section.box"),t=e.find("a.price_cont");t.length>0&&e.find(".button.book").removeAttr("onclick").click(function(e){e.preventDefault(),t.trigger("click")})},500)}})),"Accommodations"==s)){$fbsdk.Accommodations.prototype.getURLParams=function(){return{output:this.getConfig().output,template:this.getConfig().template,locale:this.getConfig().locale,property:this.getConfig().property,offset:this.getConfig().offset,limit:this.getConfig().limit,imagew:this.getConfig().imagew,imageh:this.getConfig().imageh,sortBy:this.getConfig().sortBy,stripTags:this.getConfig().stripTags,onlyBookableRooms:this.getConfig().onlyBookableRooms,orderType:this.getConfig().orderType,_authCode:t._authCode}};var d=new $fbsdk.Loader;d.add("rooms",new $fbsdk.Accommodations({property:t.params.property,locale:t.params.locale,template:"default",output:"json"})),d.add("i18n",new $fbsdk.I18n({property:t.params.property,locale:t.params.locale,template:"default",output:"json",module:"accommodations"})),d.load(function(e){if(!e.i18n.error&&!e.rooms.error){for(var a=e.rooms.origObject.getRawData(),r=e.i18n.origObject.getRawData(),s={rooms:{}},c=0;c<a.rooms.length;c++){var l=a.rooms[c],d=l.beName,f={name:d,occupancy:l.occupancy,roombathroomfeature_title:r["Bathroom features"],roomequipments_title:r.Equipments,roomfeature_title:r["Room features"],roombathroomfeature:[],roomequipments:[],roomfeature:[],childlabel:1==l.occupancy.maxChildren};for(var h in l.features)if(l.features.hasOwnProperty(h)){f["has_"+h]=!1;for(var m=0;m<l.features[h].length;m++){var u="accommodation-feature-"+l.features[h][m];f[h].push({name:r[u]}),f["has_"+h]=!0}}s.rooms[d]=f}void 0!==t.roomType&&(void 0!==t.room_surface&&(s.rooms[t.roomType].room_surface=t.room_surface),s.rooms=[s.rooms[t.roomType]]),i=Mustache.render(o,s),n.html(i)}})}})},window.childrenages=window.childrenages||function(t){var a=e(".children_ages .children_box.active .select-dropdown"),o=e("input[name=enfantresa]").val(),i=new Array;a.each(function(t){var a=e(this).find(".active").html();void 0!==a&&""!=a&&" - "!=a&&t<=o-1&&(i.push(a),e(this).closest(".children_box").removeClass("red"))}),e("input[name=childrenAges1]").val(i.toString())},window.children_ages_sel_check=window.children_ages_sel_check||function(){e(".children_box.active").each(function(){var t=e(this).find(".select-label span").html();void 0===t||"undefined"===t||" - "===t?e(this).addClass("red"):e(this).removeClass("red")})},window.open_close_calendar=window.open_close_calendar||function(){var e=jQuery(".open_dynamic_calendar , .open_booking.dynamic_calendar_open , #mobile_open_booking.dynamic_calendar_open"),t=jQuery("#dyncal_wrapper");
1jQuery("#dyncal_box");if(0!==e.length&&0!==t.length){var a=jQuery("html");e.click(function(){t.hasClass("visible")||(t.addClass("visible"),a.addClass("noscroll"))}),jQuery(".close_calendar").click(function(){t.hasClass("visible")&&(t.removeClass("visible"),a.removeClass("noscroll"))})}},e(document).ready(function(){init_datepickers(),"false"===enable_dynamic_calendar?e(document).on("click","#booking_form #bf_submit , #open_booking a , a#mobile_open_booking",function(){var t=e("input[name=enfantresa]").val();if(0!=t){var a=e("input[name=childrenAges1]").val();if(""==a||2==t&&-1==a.indexOf(","))return children_ages_sel_check(),!1}if("undefined"!=typeof idForm)hhotelDispoprice(document.idForm);else{var o=void 0!==global_data.data.hotel_connect_name&&""!=global_data.data.hotel_connect_name?global_data.data.hotel_connect_name:global_data.data.fb_cluster_name;hhotelSearch(o,"","","","","","")}}):open_close_calendar(),e(document).on("click",function(t){var a=e("#inline-datepicker-box_placeholder");!a.hasClass("visible")||e(t.target).closest("#inline-datepicker-box_placeholder").length||e(t.target).closest("#inline-datepicker_placeholder").length||e(t.target).closest("#booking_form_placeholder .dates").length||e(t.target).closest(".ui-datepicker-group").length||a.removeClass("visible")}),jQuery(".hotel_book").on("click tap",function(){var t=e(this).data("hotel_cname");hhotelDispopriceFHP(t,"","","","","","","")}),jQuery(".group_offer_book").on("click tap",function(){var t=e(this).data("hotelname"),a=e(this).data("offer_code"),o=e(this).data("offer_startdate"),i=e(this).data("offer_minstay"),n=e(this).data("offer_adults_n"),r=e(this).data("offer_children_n"),s="&FirstDate="+(void 0!==o&&""!=o?o:"")+";"+(void 0!==i&&""!=i?i:"")+";"+(void 0!==n&&""!=n?n:"")+";"+(void 0!==r&&""!=r?r:"")+";",c=void 0!==t&&""!=t?t:"all&clusternames="+global_data.data.fb_cluster_name;hhotelResaDirect(c,"",a+s,"","","")}),e(".field_box.children .children_select .select-option").on("click",function(){var t=e(".children_ages");if(0!=t.length){var a=e(".children_ages_content"),o=e(this).data("value");if(o>0){for(t.find(".children_box").each(function(t,a){e(this).addClass("hidden").removeClass("active"),e(this).find(".select-label").html(" - "),e(this).find(".select-option.active").removeClass("active")}),i=1;i<=o;i++)t.find(".children_age_"+i).removeClass("hidden").addClass("active");t.css("top",e("#booking_form_container").outerHeight()),t.stop().animate({height:a.outerHeight()},200,function(){e(this).addClass("opened")})}else t.find(".children_box").each(function(t,a){e(this).addClass("hidden").removeClass("active"),e(this).find(".select-label").html(" - "),e(this).find(".select-option.active").removeClass("active")}),t.stop().animate({height:0},200,function(){e(this).removeClass("opened")})}})})}(jQuery);
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.