1!function(c){"use strict";var u=!1,h=!1,g=null,m=null,f=null,v=null,b=null,C=null,k=400,_=200,w=!1,l=null,q=400;function p(){var o,a;!window.location.hash||-1!==(o=window.location.hash).indexOf("#")&&(-1!==o.indexOf("#_")?u&&console.log("-> no snippet, hook spotted"):(a=null,-1!==(o=o.replace("#","")).indexOf("?panel=")&&-1!==o.indexOf("booking")&&(a=o.substring(o.indexOf("?panel=")).replace("?panel=",""),u&&console.log("===================>",a),o="booking"),u&&console.log("-> current hash is : "+o),0<g.find("#"+o).length?u&&console.log("-> no snippet, div with this id spotted (keep anchor functionnality) "):("undefined"===o&&void 0!==DiadaoStarterManager&&(u&&console.log("-> weird slug spotted, remove hash"),DiadaoStarterManager.remove_hash_from_url()),""!==o&&"undefined"!==o&&(0<g.find('ul.ul-filters > li > a[data-slug="'+o+'"]').length?u&&console.log("-> no snippet, it's filter parameter "):"booking"===o||void 0!==window.diadao_snippet_type&&""!==window.diadao_snippet_type?(u&&console.log("-> snippet detected, start-it"),r(o,"booking"==o?"booking":window.diadao_snippet_type,!0,!1,null,null,a)):u&&console.log("-> wrong snippet data")))))}function r(e,a,o,n,d,i,t){var s,l,p,r=a;"booking"==e&&(r=e,i="booking"),g.hasClass("diadao-menuopened")&&(u&&console.log("-> close menu before opening snippet"),void 0!==window.DiadaoHeaderManager&&null!==window.DiadaoHeaderManager&&DiadaoHeaderManager.handle(!0)),0<f.length&&(s=!1,g.hasClass("diadao-snippet-open")&&(s=!0),y(n,s),u&&console.log("-> snippet params : ",e,a,o),u&&console.log("=======> OPEN SNIPPET",e,a),"booking"==e||"booking"==a?(g.addClass("diadao-snippet-open"),g.addClass("diadao-snippet-open-"+r),v.addClass("opened"),m.addClass("diadao-panel-opened"),setTimeout(function(){m.addClass("diadao-panel-loaded")},q),n=i,s=!1,null!=t&&""!==t&&(s=!0,n=n+"?panel="+t),window.location.hash=n,u&&console.log("1/ booking hash : ",n),u&&console.log("2/ booking panel : ",t),u&&console.log("3/ booking auto open / has panel",window.diadao_hdp_auto_open_enabled,s),void 0===window.diadao_hdp_auto_open_enabled||1!==parseInt(window.diadao_hdp_auto_open_enabled)||s||setTimeout(function(){var o=g.find('#diadao-snippet-booking .diadao-snippet-panel .col-booking .inner .inner-content .qs-react[data-diadao-widget="booking_hsc"] .diadao-qs .diadao-qs__input-range');0<o.length&&o.trigger("click")},600),s&&(n=c(document).find(".diadao-booking-panels"),s=c(document).find(".diadao-booking-tabs"),u&&console.log("=> Booking Panel check 1 : ",n,s),0<n.length&&0<s.length&&(t=n.find('li[data-bookingpanel="'+t+'"]'),u&&console.log("=> Booking Panel check 2 : ",t),0<t.length&&!t.hasClass("active")&&(u&&console.log("=> Booking Panel check 3 : click"),t.find("a").trigger("click")))),w=!1):((l=null)!==d&&void 0!==d.parent()&&1==d.parent().find(".diadao-qs").length&&(l=d.parent().find(".diadao-qs")).addClass("loading"),p=null,c.ajax({type:"POST",dataType:"html",url:b,data:{post_id:e,post_type:a,is_slug:o},beforeSend:function(o){null!==d&&((p=d.parent()).hasClass("inner")||(p=p.parent()).hasClass("inner")||(p=p.parent()),p.addClass("diadao-snippet-clicked")),D(),null!=p&&parseFloat(p.offset().top),w=!0},error:function(o){D(),w=!1,0},success:function(o){null!==l&&l.removeClass("loading"),void 0!==o&&null!=o&&""!==o&&"error"!==o&&"unavailable"!==o?(u&&console.log("-> snippet data is ok"),u&&console.log("-> snippet container :",f),0<g.find('a[data-snippet="'+a+'"][data-id="'+e+'"]').length?g.find('a[data-snippet="'+a+'"][data-id="'+e+'"]'):0<g.find('button[data-snippet="'+a+'"][data-id="'+e+'"]').length&&g.find('button[data-snippet="'+a+'"][data-id="'+e+'"]'),f.html(o),u&&console.log("-> snippet HTML data : ",f.html().length),setTimeout(function(){""===f.html()||null===f.html()||void 0===f.html()?(u&&console.log("-> snippet error loading data"),D(w=!1)):(u&&console.log("-> snippet data loaded"),f.addClass("opened"),g.addClass("diadao-snippet-open"),g.addClass("diadao-snippet-open-"+r),void 0!==DiadaoStarterManager&&DiadaoStarterManager.init_snippet_opening(),D(),setTimeout(function(){var o,a;null!=i&&"undefined"!==i&&(u&&console.log("-> refresh the snippet url : ",i),window.location.hash=i),null!==p&&p.removeClass("diadao-snippet-clicked"),u&&console.log("=======> SNIPPET LOADED"),null!==C&&C&&"room"==r&&void 0!==c(document).find("#diadao-snippet .snippet-inner.type-room").data("id")&&null!=(e=parseInt(c(document).find("#diadao-snippet .snippet-inner.type-room").data("id")))&&(g.hasClass("diadao-hsc-light-mode")?(o=g.find('.diadao-hsc-light-room-sticky-bar[data-roomid="'+e+'"]'),u&&console.log("=> HSC LIGHT MODE SNIPPET ROOM STICKY",o),0<o.length&&(o.addClass("opened"),g.addClass("diadao-room-sticky-opened"))):(o=g.find('.diadao-hdp-bar-room[data-roomid="'+e+'"]'),a=c(document).find("#diadao-snippet .snippet-inner #diadao-snippet-qs-room"),0<o.length&&(o.hasClass("diadao-snippet-move")&&void 0!==a&&0<a.length?(o.appendTo(a),0<a.find(".diadao-hdp-bar-room.diadao-snippet-move").length&&T(a,e)):(T(null,e),o.addClass("opened"),g.addClass("diadao-room-sticky-opened"))),h&&console.log("-> handle upgrades"),S(e))),m.addClass("diadao-panel-opened"),setTimeout(function(){m.addClass("diadao-panel-loaded")},q),w=!1},k))},_)):(D(),"unavailable"==o&&(window.location.hash=""),w=!1,0)}})))}function y(a,o){var e,n;!f.hasClass("opened")&&!v.hasClass("opened")||w||(0<g.find("#diadao-qs-availabilities-snippet-booking.o
1pened").length?g.find("#diadao-qs-availabilities-snippet-booking.opened").removeClass("opened"):0<g.find("#diadao-qs-snippet-booking.opened").length?g.find("#diadao-qs-snippet-booking.opened").removeClass("opened"):g.hasClass("diadao-hsc-light-popup-best-price-opened")?g.removeClass("diadao-hsc-light-popup-best-price-opened"):(g.hasClass("diadao-room-sticky-opened")&&g.removeClass("diadao-room-sticky-opened"),0<(e=c(document).find("#diadao-snippet .snippet-inner #diadao-snippet-qs-room .diadao-hdp-bar-room.diadao-snippet-move.opened")).length?(e.removeClass("opened"),n=c(document).find("body"),e.appendTo(n)):0<g.find(".diadao-hdp-bar-room.opened").length?g.find(".diadao-hdp-bar-room.opened").removeClass("opened"):0<g.find(".diadao-hsc-light-room-sticky-bar.opened").length&&g.find(".diadao-hsc-light-room-sticky-bar.opened").removeClass("opened"),o?(u&&console.log("-> quick closing"),d(!0),v.removeClass("opened"),f.removeClass("opened"),f.html(""),g.trigger("click"),m.removeClass("diadao-panel-opened"),m.removeClass("diadao-panel-loaded"),g.removeClass("diadao-snippet-open").removeClass("diadao-snippet-open-booking").removeClass("diadao-snippet-open-offer").removeClass("diadao-snippet-open-activity").removeClass("diadao-snippet-open-room").removeClass("diadao-snippet-open-service").removeClass("diadao-snippet-open-post"),u&&console.log("=======> SNIPPET CLOSED")):(u&&console.log("-> normal closing"),d(!0),v.removeClass("opened"),f.removeClass("opened"),m.removeClass("diadao-panel-opened"),m.removeClass("diadao-panel-loaded"),setTimeout(function(){var o;f.html(""),g.trigger("click"),g.removeClass("diadao-snippet-open").removeClass("diadao-snippet-open-booking").removeClass("diadao-snippet-open-offer").removeClass("diadao-snippet-open-activity").removeClass("diadao-snippet-open-room").removeClass("diadao-snippet-open-service").removeClass("diadao-snippet-open-post"),o=a,void 0!==DiadaoStarterManager&&o&&DiadaoStarterManager.remove_hash_from_url(),u&&console.log("=======> SNIPPET CLOSED")},k))))}function T(n,o){var d=null,i=null!==n?"#diadao-snippet-qs-room .diadao-hdp-bar-room":'.diadao-hdp-bar-room[data-roomid="'+o+'"]';setTimeout(function(){var o,a,e;0<c(document).find(i+" .current-date.diadao-qs-current-date").length&&(d=c(document).find(i+" .current-date.diadao-qs-current-date"),0<(e=c(document).find(i+" .rooms-list__compare .rooms-list__compare-qs .qs-react.qs-rooms-list .diadao-qs .diadao-qs__input-range > .diadao-qs__input-date:first-child")).length&&(o=e.find(".diadao-qs__input-date--dayNumber").text(),a=e.find(".diadao-qs__input-date--month").text(),e=e.find(".diadao-qs__input-date--year").text(),void 0!==o&&void 0!==a&&void 0!==e&&(e=o+"/"+a+"/"+e,d.text(e),d.parent().css("display","inline-block").addClass("has-date")))),null!==n&&setTimeout(function(){n.find(".diadao-hdp-bar-room.diadao-snippet-move").addClass("opened")},200)},200)}function D(){}function S(o){var a,e,n,d,i,t,s,l;null!=o&&0<c(document).find('#diadao-snippet.opened .snippet-inner.type-room[data-id="'+o+'"]').length&&(n=e=a=null,c(document).find("#diadao-snippet .diadao-snippet-qs").each(function(){var o;e=c(this),a=c(this).data("room-id"),e.html(""),null==a||0<(o=c(document).find('#main .qs-react[data-diadao-widget="best_price"][data-room-id="'+a+'"]')).length&&null!=(n=o.clone())&&e.append(n)}),0<c(document).find("#diadao-snippet .diadao-room-upgrade-automatic-list").length&&(h&&console.log("-> intelligent upgrade found"),t=i=d=null,s=0,(l=c(document).find("#diadao-snippet .diadao-room-upgrade-automatic-list")).removeClass("opened"),h&&console.log("-> container upgrades : ",l.length),l.find('.qs-react[data-diadao-widget="best_price"] .diadao-qs').each(function(){d=c(this).parent().data("room-id"),l.find('.diadao-room-upgrade-item[data-id="'+d+'"]'),h&&console.log(d),c(this).hasClass("not-available")?h&&console.log("-> no availabilities"):0<c(this).find(".hsc-price-value").length&&((s=parseInt(c(this).find(".hsc-price-value").text()))<t||null==t)&&(t=s,i=d,h&&console.log(t,i))}),null==i||0<(o=l.find('.diadao-room-upgrade-item[data-id="'+i+'"]')).length&&(h&&console.log("-> found container best price"),l.find(".diadao-room-upgrade-item").removeClass("upgrade-enabled"),o.addClass("upgrade-enabled"),l.addClass("opened"))))}function d(o){l.hasClass("opened")?l.removeClass("opened"):o||l.addClass("opened")}
1window.DiadaoSnippetsManager=new function(){this.init=function(o,a,e,n,d,i,t,s){u=s,m=a,b=e,f=n,C=t,v=(g=o).find("#diadao-snippet-booking"),l=g.find("#diadao-qs-snippet-booking"),u&&console.log("********** init snippets"),c(p),c(document).on("click",'header#diadao-header a[href="#booking"], header#diadao-header button[data-snippet="booking"], a[data-snippet="booking"]',function(o){o.preventDefault();var a="booking",e="booking",o=null;void 0!==c(this).attr("href")&&-1!==c(this).attr("href").indexOf("#")&&(o=c(this).attr("href").substring(c(this).attr("href").indexOf("#"))),r(a,e,!1,!0,c(this),o,null)}),c(document).on("click",'a[data-action="diadao-snippet"], button[data-action="diadao-snippet"]',function(o){o.preventDefault();var a=c(this).data("id"),e=c(this).data("snippet"),n=null;void 0!==c(this).data("panel")&&(n=c(this).data("panel")),void 0!==a&&void 0!==e&&(o=null,void 0!==c(this).attr("href")&&-1!==c(this).attr("href").indexOf("#")&&(o=c(this).attr("href").substring(c(this).attr("href").indexOf("#"))),r(a,e,!1,!0,c(this),o,n))}),c(document).on("click","body.device-responsive .diadao-hdp-bar-room.opened .col-quicksearch.has-button .qs-react.qs-snippet.qs-room-book .best-rate-mobile-calendar-link.available, body.device-responsive .diadao-button-hdp-snippet-mobile",function(o){o.preventDefault();var a=null,o=c(this);void 0!==c(this).data("roomid")&&(a=c(this).data("roomid"),0<(a=c(document).find('body.device-responsive .diadao-hdp-bar-room.opened[data-roomid="'+a+'"] .col-calendar')).length&&(a.hasClass("closed")?(a.removeClass("closed"),o.hasClass("available")&&o.addClass("opened")):(a.addClass("closed"),o.hasClass("available")&&o.removeClass("opened"))))}),c(document).on("keyup",function(o){"Escape"==o.key&&g.hasClass("diadao-snippet-open")&&!c(document).find("html").hasClass("with-fancybox")&&y(!0,!1)}),c(document).on("click",".diadao-button-close-snippet",function(o){o.preventDefault(),y(!0,!1)})},this.upgrade_update=function(o){var a;null!=(o=o)&&void 0!==o.data("room-id")&&(a=o.data("room-id"),setTimeout(function(){S(a)},1e3))}}}(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.