1function getParameterByName(e, t) { 2 t || (t = window.location.href), (e = e.replace(/[\[\]]/g, "\\$&")); 3 var a = new RegExp("[?&]" + e + "(=([^&#]*)|&|#|$)"), 4 n = a.exec(t); 5 return n ? (n[2] ? decodeURIComponent(n[2].replace(/\+/g, " ")) : "") : null; 6} 7var ua = window.navigator.userAgent, 8 isIE = /MSIE|Trident/.test(ua); 9if (isIE) { 10 document.documentElement.classList.add("ie"), SVGElement.prototype.contains || (SVGElement.prototype.contains = HTMLDivElement.prototype.contains); 11 var htm5shiv_script = document.createElement("script"); 12 (htm5shiv_script.src = "https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"), document.getElementsByTagName("head")[0].appendChild(htm5shiv_script); 13} 14!(function (e) { 15 var t = 0; 16 e.fn.scrolled = function (a, n) { 17 "function" == typeof a && ((n = a), (a = 30)); 18 var i = "scrollTimer" + t++; 19 this.scroll(function () { 20 var t = e(this), 21 o = t.data(i); 22 o && clearTimeout(o), 23 (o = setTimeout(function () { 24 t.removeData(i), n.call(t[0]); 25 }, a)), 26 t.data(i, o); 27 }); 28 }; 29})(jQuery), 30 window.addEventListener("load", function () { 31 setTimeout(function () { 32 if (-1 !== navigator.userAgent.indexOf("MSIE") || navigator.appVersion.indexOf("Trident/") > 0) { 33 var e = document.createEvent("UIEvents"); 34 e.initUIEvent("resize", !0, !1, window, 0), window.dispatchEvent(e); 35 } else window.dispatchEvent(new Event("resize")); 36 }, 400); 37 }), 38 jQuery(document).ready(function (e) { 39 function t() { 40 if ("loading" in HTMLImageElement.prototype) 41 e("img.lazyload").each(function () { 42 e(this).data("src") && e(this).attr("src", e(this).data("src")); 43 }); 44 else if ((console.log("does not have HTMLImageElement.loading"), !w)) { 45 console.log("loading lazysizes.js lib"); 46 var t = document.createElement("script"); 47 (t.async = !0), (t.src = "https://cdnjs.cloudflare.com/ajax/libs/lazysizes/4.1.8/lazysizes.min.js"), document.body.appendChild(t), (w = !0); 48 } 49 } 50 function a(t) { 51 var a = e('<span><img src="' + e(t.element).data("flag") + '" class="img-flag" /> ' + t.text + "</span>"); 52 return a; 53 } 54 function n() { 55 e(".imgReplace").each(function (t) { 56 var a = e(this).data("imgreplace"); 57 e(this).attr("src", a), e(this).attr("src") !== a && e(this).attr("src", a); 58 }); 59 } 60 function o() { 61 e("[data-trim-h]").each(function () { 62 var t = e(this), 63 a = t.height(); 64 console.log("originalHeight", a); 65 var n = t.data("trim-h"); 66 a > n && 67 (t.css("height", n + "px"), 68 t.append("<button aria-hidden='true' class='expand t-bs _l remove-button-defaults'>[…]</button>"), 69 t.data("origH", a), 70 t.find("button.expand").on("click", function () { 71 t.css("height", a + 30).addClass("expanded"); 72 })); 73 }); 74 } 75 function s() { 76 e(".pagination-container[data-paginatingelid]").each(function () { 77 var t = e(this).attr("data-paginatingelid"); 78 e(this) 79 .find("ul a") 80 .on("click", function (e) { 81 c("#" + t), window.setTimeout(s, 300); 82 }); 83 }); 84 } 85 function l(e) {} 86 function r(t) { 87 for (var a = 0; (entry = t[a]); a++) entry.isIntersecting ? e(entry.target).addClass("intersect") : e(entry.target).removeClass("intersect"); 88 } 89 function c(t) { 90 console.log("scrolling"), e("html, body").animate({ scrollTop: e(t).offset().top - 64 }, 200); 91 } 92 function d() { 93 window.setTimeout(function () { 94 var t = !0; 95 if (!e(".reservation-form").hasClass("isManual")) { 96 var a = e('.reservation-form input[name="hotel"]').val(); 97 (!a || "" == a || isNaN(a)) && (t = !1); 98 var n = e('.reservation-form input[name="arrive"]').val(); 99 (n && "" != n) || (t = !1); 100 var i = e('.reservation-form input[name="depart"]').val(); 101 (i && "" != i) || (t = !1); 102 } 103 if (!e(".reservation-form ._js-promo").is(":disabled")) { 104 var o = e(".reservation-form ._js-promo").val(); 105 (o && "" != o) || (t = !1); 106 } 107 t ? e('.reservation-form input[type="submit"]').prop("disabled", !1) : e('.reservation-form input[type="submit"]').prop("disabled", !0); 108 }, 250); 109 } 110 function p() { 111 e("button.selfContainedGallery").length && 112 e("button.selfContainedGallery").on("click", function (t) { 113 var a = e(this).data("gallery"); 114 console.log("gallery", a), e(this).lightGallery({ dynamic: !0, dynamicEl: a, thumbnail: !0, showThumbByDefault: !0, download: !1 }); 115 }); 116 } 117 function h() { 118 if (e(".accordians").length > 0) { 119 var t = window.location.hash, 120 a = e(".accordians a[href=" + t + "]").eq(0); 121 a && (e(".accordian.open").removeClass("open"), a.click()); 122 } 123 } 124 function u(t) { 125 t.matches ? e(".reservation-form").length && (T.destroy(), (_.numberOfMonths = 1), (T = new Lightpick(_))) : e(".reservation-form").length && (T.destroy(), (_.numberOfMonths = 2), (T = new Lightpick(_))); 126 } 127 function f(e) { 128 e.matches; 129 } 130 function m(t) { 131 t.matches 132 ? (e("._toggleNav").on("click", function (t) { 133 t.preventDefault(), e("body").toggleClass("nav-open"); 134 }), 135 e(".open-membership-peek").length && 136 e(".open-membership-peek").on("click", function (t) { 137 t.preventDefault(), e(".membership-peek").toggle(); 138 })) 139 : (e("._toggleNav").off("click"), e("body").removeClass("nav-open"), e(".open-membership-peek").length && e(".open-membership-peek").off("
139click")); 140 } 141 function g(e) { 142 e.matches; 143 } 144 function v(e) { 145 e.matches; 146 } 147 var y = (window.location, 6500), 148 w = !1; 149 t(), 150 e("select.s2").select2({ minimumResultsForSearch: 5 }), 151 // e(".popup").length && 152 // e(".popup[data-pid]").each(function () { 153 // var t = e(this), 154 // a = e(this).data("pid"), 155 // n = e(this).data("nonce"); 156 // e.ajax({ 157 // method: "POST", 158 // url: myAjax.ajaxurl, 159 // data: { action: "do_check_popup", nonce: n, popup_id: a }, 160 // cache: !1, 161 // error: function (e) { 162 // console.log(e); 163 // }, 164 // success: function (a) { 165 // "SHOW" == a && e(t).show(); 166 // }, 167 // }); 168 // }), 169 e(".footer-language-switcher").select2({ templateResult: a, minimumResultsForSearch: 10 }), 170 // e("[data-tippy-content]").length > 0 && tippy("[data-tippy-content]", { allowHTML: !0 }), 171 // e("[data-tippy-template]").length > 0 && 172 // e("[data-tippy-template]").each(function () { 173 // var t = e(this).attr("data-tippy-template"), 174 // a = e("#" + t).html(); 175 // tippy('[data-tippy-template="' + t + '"]', { content: a, allowHTML: !0 }); 176 // }); 177 new Rellax(".rellax"); 178 if ( 179 (n(), 180 o(), 181 e(".popup-bottom").length && 182 window.setTimeout(function () { 183 //e(".popup-bottom").addClass("active"); 184 }, 2e3), 185 e("button.close-popup").on("click", function (t) { 186 var a = e(this).parents(".popup"), 187 n = a.data("pid"), 188 i = a.data("sid"), 189 o = a.data("nonce"); 190 a.addClass("dismissed"), 191 a.hasClass("popup-top") && e(".has_top_banner").removeClass("has_top_banner"), 192 e.ajax({ 193 method: "POST", 194 url: myAjax.ajaxurl, 195 data: { action: "do_dismiss_popup", nonce: o, site_id: i, popup_id: n }, 196 cache: !1, 197 error: function (e) { 198 console.log(e); 199 }, 200 success: function (e) { 201 console.log(e); 202 }, 203 }); 204 }), 205 e("a.open_in_window").on("click", function (t) { 206 t.preventDefault(); 207 var a = e(this).attr("href"), 208 n = e(this).data("ww"), 209 i = e(this).data("wh"), 210 o = n && i ? "width=" + n + ",height=" + i : "width=,height="; 211 window.open(a, "_blank", o); 212 }), 213 e(".toggle-header-languages").on("click", function (t) { 214 t.preventDefault(), e("#language-popup-switcher").toggleClass("visible"); 215 }), 216 e("._jsContactForm").length && 217 e("._jsContactForm").each(function () { 218 var t = e(this); 219 t.find(".s-department").length > 0 && 220 t.find(".s-department").on("change update keyup paste input _change", function () { 221 var t = e(this).find("option:selected").text(); 222 console.log("department select changed", t), e("input#department").val(t); 223 }), 224 t.find(".s-sub-department").length > 0 && 225 t.find(".s-sub-department").on("change updatekeyup paste input _change", function () { 226 var t = e(this).find("option:selected").text(); 227 e("input#sub-department").val(t); 228 }), 229 t.on("submit", function (a) { 230 a.preventDefault(), 231 t.find("input[type=submit]").prop("disabled", !0), 232 t.find(".status").addClass("loading"), 233 console.log("serialized form data", t.serialize()), 234 e.ajax({ 235 method: "POST", 236 dataType: "text", 237 url: myAjax.ajaxurl, 238 data: t.serialize(), 239 cache: !1, 240 error: function (e) { 241 console.log(e); 242 }, 243 success: function (e) { 244 t.find(".status").removeClass("loading").addClass("done").find(".msg").text(e); 245 }, 246 }); 247 }); 248 }), 249 e("[data-match-max]").on("keyup paste input _change", function () { 250 var t = e(e(this).data("match-max")), 251 a = parseInt(e(this).val()), 252 n = parseInt(t.val()); 253 a > n && t.val(a), t.attr("min", a); 254 }), 255 e('input[type="number"]').on("keyup paste change", function (t) { 256 var a = e(this), 257 n = a.val(); 258 a.attr("min") && (isNaN(n) && (n = a.attr("min")), (n = n > a.attr("min") ? n : a.attr("min"))), a.attr("max") && (n = n < a.attr("max") ? n : a.attr("max")), a.val(n); 259 }), 260 e(".pagination-container").length) 261 ) { 262 new List("posts-container", { valueNames: ["stub-title"], page: 6, pagination: [{ outerWindow: 8 }] });
263 e(".pagination-container[data-paginatingelid]").length && s(); 264 } 265 e(".hotel-location-report").length && 266 e(".hotel-location-report[data-latlon]").each(function (t) { 267 console.log("getting weather"); 268 var a = "ffd8546d38ca720ed7e232ed465780fa", 269 n = e(this).data("latlon"), 270 i = e(this).data("nonce"), 271 o = e(this).find("._js-local-weather .stat-detail em"); 272 if (n && "" !== n && null !== n) { 273 latlon_ar = n.split(","); 274 var s = "https://api.openweathermap.org/data/2.5/weather?lat=" + latlon_ar[0] + "&lon=" + latlon_ar[1] + "&appid=" + a; 275 e.get(s, function (t) { 276 var a = t.weather[0].description, 277 n = t.main.temp, 278 s = Math.round(n - 273.15) + "°C", 279 l = Math.round(1.8 * (n - 273.15) + 32) + "°F"; 280 o.html(s + "/" + l + ", " + a), 281 //console.log("saving weather"), 282 e.ajax({ 283 method: "POST", 284 url: myAjax.ajaxurl, 285 data: { action: "do_save_weather", nonce: i, weather: s + "/" + l + ", " + a }, 286 error: function (e) { 287 console.log(e); 288 }, 289 }); 290 }); 291 } 292 }), 293 e(".form-input--stepper").length && 294 e(".form-input--stepper button").on("click", function (t) { 295 t.preventDefault(); 296 var a = parseInt(e(this).data("step")), 297 n = e(this).parent().find('input[type="number"]'), 298 i = 1 * +n.val() + a; 299 if (n.attr("min")) { 300 var o = parseInt(n.attr("min")); 301 i = i >= o ? i : o; 302 } 303 if (n.attr("max")) { 304 parseInt(n.attr("max")); 305 i = i <= n.attr("max") ? i : n.attr("max"); 306 } 307 n.val(i).trigger("_change"); 308 }), 309 e("select.url-jump").on("change", function (t) { 310 var a = e(this).val(); 311 "" != a && (window.location = a); 312 }), 313 e("select.hotel_selector").on("change", function (t) { 314 var a = e(this).val(); 315 "" != a && (t.preventDefault(), e(this).form().attr("action", a).submit()); 316 }), 317 e(document).on("click", ".offer-footer button", function (t) { 318 var a = e(this).parent().parent().find("select").val(); 319 "" != a && (t.preventDefault(), window.open(a, "_blank")); 320 }), 321 e("form._js-form-save-load").length && 322 e("form._js-form-save-load").each(function (t) { 323 //console.log("Watching form"); 324 var a = e(this); 325 a.find("button").on("click", function () { 326 l(a); 327 }), 328 a.find("input, select, textarea").on("update input change keyup paste", function () { 329 l(a); 330 }); 331 }); 332 var b = !1, 333 x = 0; 334 e(window).scrolled(function () { 335 return ( 336 (currentScrollTop = e(this).scrollTop()), 337 (currentScrollBottom = currentScrollTop + e(window).height()), 338 currentScrollTop < 50 339 ? (e("body").removeClass("scrollUp isScrolled"), void (b = !1)) 340 : (currentScrollTop > x && !e("body").hasClass("scrollDown") 341 ? e("body").removeClass("scrollUp").addClass("scrollDown") 342 : currentScrollTop < x && e("body").hasClass("scrollDown") && e("body").removeClass("scrollDown").addClass("scrollUp"), 343 (x = currentScrollTop), 344 void (currentScrollTop < 60 ? b && ((b = !1), e("body").removeClass("isScrolled")) : b || ((b = !0), e("body").addClass("isScrolled")))) 345 ); 346 }); 347 var k = e("._intersection"), 348 D = new IntersectionObserver(r); 349 k.each(function (t) { 350 D.observe(e(this)[0]); 351 }), 352 e("a.scrollTo").on("click", function (t) { 353 t.preventDefault(), c(e(this).attr("href")); 354 }); 355 var _ = { 356 field: document.getElementById("datePickerFrom"), 357 secondField: document.getElementById("datePickerTo"), 358 singleDate: !1, 359 firstDay: 7, 360 numberOfMonths: 2, 361 minDays: 1, 362 maxDays: 35, 363 minDate: new Date(), 364 inline: !0, 365 tooltipNights: !0, 366 hoveringTooltip: !1, 367 format: "YYYY-MM-DD", 368 dropdowns: { years: { min: 2019, max: 2022 }, months: !0 }, 369 startDate: moment(), 370 endDate: moment().add(1, "days"), 371 onSelect: function (e, t) {}, 372 }; 373 if (e(".reservation-form").length) { 374 var T = new Lightpick(_); 375 e("#datePickerFrom, #datePickerTo").attr("type", "text").hide(), 376 e("select._js-affectsProperties").on("update input change keyup", function (t) { 377 window.setTimeout(function () { 378 console.log("checking hotel id"); 379 var t = e("select._js-select-hotel"), 380 a = e("select._js-select-hotel option:selected"), 381 n = t.val(); 382 a.hasClass("site") && 383 (e("form.reservation-form").hasClass("isManual") && e("form.reservation-form").removeClass("isManual").attr("action", e("form.reservation-form").data("orig")), 384 isNaN(n) 385 ? (console.log("is NOT a number"), e('.reservation-form input[name="hotel"]').val("")) 386 : (console.log("is a number"), 387 e('.reservation-form input[name="hotel"]').val(n), 388 e('.reservation-form input[name="shell"]').val(a.attr("data-shell")), 389 e('.reservation-form input[name="template"]').val(a.attr("data-template")), 390 e('.reservation-form input[name="chain"]').val(a.attr("data-chain")))), 391 a.hasClass("manual") && 392 (e("form.reservation-form").attr("action", n).addClass("isManual"), 393 e('.reservation-form input[name="hotel"]').val(getParameterByName("hotel", n)), 394 e('.reservation-form input[name="shell"]').val(getParameterByName("shell", n)), 395 e('.reservation-form input[name="template"]').val(getParameterByName("template", n)), 396 e('.reservation-form input[name="chain"]').val(getParameterByName("chain", n))); 397 }, 200); 398 }), 399 e('.reservation-form input[type="submit"]').prop("disabled", !0), 400 d(), 401 e(".reservation-form").find("input, hidden, textarea, select").on("change", d), 402 e(document).on("change", "select.slave", function () { 403 var t = e("select.slave option:selected"); 404 console.log("slave changed"); 405 var a, n, i; 406 "" != t.data("start") 407 ? (T.destroy(), 408 (a = t.data("start")), 409 (n = new Date(a)), 410 n.setDate(n.getDate() + 1), 411 (i = t.data("end")), 412 (T = new Lightpick({ 413 field: document.getElementById("datePickerFrom"), 414 secondField: document.getElementById("datePickerTo"), 415 singleDate: !1, 416 firstDay: 7, 417 numberOfMonths: 2, 418 minDays: 1, 419 maxDays: 35, 420 minDate: a, 421 maxDate: i, 422 inline: !0, 423 tooltipNights: !0, 424 hoveringTooltip: !1, 425 format: "YYYY-MM-DD", 426 })), 427 T.setDateRange(a, n)) 428 : (T.destroy(), 429 (a = new Date()), 430 (n = new Date(a)), 431 n.setDate(n.getDate() + 1), 432 (i = null),
433 (T = new Lightpick({ 434 field: document.getElementById("datePickerFrom"), 435 secondField: document.getElementById("datePickerTo"), 436 singleDate: !1, 437 firstDay: 7, 438 numberOfMonths: 2, 439 minDays: 1, 440 maxDays: 35, 441 minDate: a, 442 maxDate: i, 443 inline: !0, 444 tooltipNights: !0, 445 hoveringTooltip: !1, 446 format: "YYYY-MM-DD", 447 })), 448 T.setDateRange(a, n)); 449 }); 450 } 451 e("select#promo-type").length && 452 e("select#promo-type").on("change", function () { 453 if (e(this).find("option:selected[data-invalid]").length) e("._js-promo").removeAttr("name"); 454 else { 455 var t = e(this).val(); 456 e("._js-promo").prop("name", t); 457 } 458 }), 459 e(".conditional-select-group").length && 460 e(".conditional-select-group").each(function (t) { 461 e("select.master").on("change", function (t) { 462 if ( 463 (e(this).find("option:selected[data-invalid]").length 464 ? e(this).parents(".conditional-select-group").find("select.slave").attr("disabled", !0).find("option:eq(0)").prop("selected", !0) 465 : e(this).parents(".conditional-select-group").find("select.slave").attr("disabled", !1).focus(), 466 e(this).find("optgroup").hide(), 467 e(this).find("option:selected[data-filteropts]").length) 468 ) { 469 var a = e(this).find("option:selected").data("filteropts"); 470 console.log("fid", a), 471 e(this).parents(".conditional-select-group").find("select.slave optgroup").hide(), 472 e(this) 473 .parents(".conditional-select-group") 474 .find('select.slave optgroup[data-fid="' + a + '"]') 475 .show(), 476 e(this).parents(".conditional-select-group").find("select.slave option:eq(0)").prop("selected", !0); 477 } 478 }); 479 }), 480 e(".conditional-select-group-s2").length && 481 e(".conditional-select-group-s2").each(function (t) { 482 e(this) 483 .find("select.master") 484 .on("select2:select", function (t) { 485 var a = e(this).parents(".conditional-select-group-s2"); 486 if ( 487 (console.log("parentGroup", a), 488 e(this).find("option:selected[data-invalid]").length 489 ? (a.find("select.slave, input.slave").attr("disabled", !0).find("option:eq(0)").prop("selected", !0), 490 a.find("input.slave").val(""), 491 a.data("originalSlaveHTML") && a.find("select.slave").html(a.data("originalSlaveHTML"))) 492 : a.find("select.slave, input.slave").attr("disabled", !1).focus(), 493 e(this).find(":selected[data-filteropts]").length) 494 ) { 495 a.data("originalSlaveHTML") ? a.find("select.slave").html(a.data("originalSlaveHTML")) : a.data("originalSlaveHTML", a.find("select.slave").html()); 496 var n = e(this).find("option:selected").data("filteropts"), 497 i = a.find('[data-fid="' + n + '"]').html(); 498 a.find("select.slave").html(i); 499 } 500 }); 501 }), 502 e("._toggle-reservations-form").on("click", function (t) { 503 t.preventDefault(), e("body").toggleClass("pullout-open"); 504 }); 505 var C = []; 506 if (e(".hero-slides").length) { 507 var M; 508 e(".hero-slides").each(function () { 509 (M = e(".hero-slides").flickity({ wrapAround: !0, prevNextButtons: !1, pageDots: !0, autoPlay: y, cellSelector: ".hero-slide", pauseAutoPlayOnHover: !1, draggable: !0 })), C.push(M); 510 }); 511 } 512 if (e(".full-size-features").length) { 513 var j = new Flickity(".full-size-features", { wrapAround: !0, prevNextButtons: !1, pageDots: !1, autoPlay: y, cellSelector: ".slide", pauseAutoPlayOnHover: !1, draggable: !0 }); 514 j.on("change", function (t) { 515 var a = e(this.element), 516 n = a.find(".slide-navigation"); 517 n.find("a.currentSlidePlaying").removeClass("currentSlidePlaying"), n.find("a").eq(t).addClass("currentSlidePlaying"); 518 }), 519 e(".full-size-features .slide-navigation a").on("click", function (t) { 520 t.preventDefault(); 521 var a = e(this).parents(".slider"), 522 n = e(this).attr("href"), 523 i = a.find(n), 524 o = a.find(".slide").index(i); 525 j.select(o); 526 }), 527 j.select(0), 528 C.push(j); 529 } 530 if (e(".links-slider").length) { 531 e(".links-slider").each(function () { 532 e(this).find(".image-text-stub .stub").matchHeight(); 533 }); 534 var S; 535 e(".links-slider").each(function () { 536 (S = e(".links-slider").flickity({ wrapAround: !0, prevNextButtons: !1, pageDots: !0, autoPlay: y, cellSelector: ".slide", pauseAutoPlayOnHover: !1, draggable: !0 })), C.push(S); 537 }); 538 } 539 if (e(".stubs-slider").length) { 540 var E = new Flickity(".stubs-slider", { wrapAround: !0, prevNextButtons: !1, pageDots: !0, autoPlay: y, cellSelector: ".slide", pauseAutoPlayOnHover: !1, draggable: !0 }); 541 C.push(E); 542 } 543 if (e(".fs-slider").length) { 544 var L = new Flickity(".fs-slider", { wrapAround: !0, prevNextButtons: !1, pageDots: !1, autoPlay: y, cellSelector: ".slide", pauseAutoPlayOnHover: !1, draggable: !0 }); 545 L.on("change", function (t) { 546 var a = e(this.element), 547 n = a.find(".slide-navigation"); 548 n.find("a.currentSlidePlaying").removeClass("currentSlidePlaying"), 549 n.find("a").eq(t).addClass("currentSlidePlaying"), 550 a.find(".slide.prev").removeClass("prev"), 551 a 552 .find(".slide") 553 .eq(t - 1) 554 .addClass("prev"); 555 }), 556 e(".fs-slider .slide-navigation a").on("click", function (t) { 557 t.preventDefault(); 558 var a = e(this).parents(".slider"), 559 n = e(this).attr("href"), 560 i = a.find(n), 561 o = a.find(".slide").index(i); 562 L.select(o); 563 }), 564 L.select(0), 565 C.push(L); 566 } 567 if (e(".irregular-slider").length) { 568 var P = e(".irregular-slider").flickity({ wrapAround: !0, prevNextButtons: !1, pageDots: !0, autoPlay: y, cellSelector: ".slide", pauseAutoPlayOnHover: !1, draggable: !0, imagesLoaded: !0, lazyLoad: !0 }); 569 P.on("mouseleave touchstart", function (e) { 570 P.flickity("playPlayer"); 571 }), 572 C.push(P); 573 } 574 if ( 575 (e("picture.fullsize-crop") && 576 e("picture.fullsize-crop").each(function (t) { 577 var a = e(this).find("img").attr("src"); 578 e(this) 579 .css("background-image", "url(" + a + ")") 580 .addClass("bg-added"); 581 }), 582 C.length && 583 setTimeout(function () { 584 for (var t = 0; t < C.length; t++) { 585 var a = C[t]; 586 a.resize(); 587 } 588 if ( 589 (e(".irregular-slider").length && 590 e(".irregular-slider").each(function () { 591 console.log(e(this)), e(this).flickity("resize"); 592 }), 593 -1 !== navigator.userAgent.indexOf("MSIE") || navigator.appVersion.indexOf("Trident/") > 0) 594 ) { 595 var n = document.createEvent("UIEvents"); 596 n.initUIEvent("resize", !0, !1, window, 0), window.dispatchEvent(n); 597 } else window.dispatchEvent(new Event("resize")); 598 }, 400), 599 e("._loadMap").length && 600 ((mapboxgl.accessToken = void 0 === mbk ? "pk.eyJ1Ijoic2ltb25zZWRkb24iLCJhIjoiY2sybzRlMzh0MHQ4djNibno3eGlpc2tiYSJ9.L_cxIq7jQaOQlOO_ZqeoCA" : mbk), 601 e("._loadMap").each(function (t) { 602 if (e(this).data("center")) { 603 var a = e(this).data("style") ? e(this).data("style") : "light-v9"; 604 a = "mapbox://styles/mapbox/" + a; 605 var n = e(this).data("center").split(","), 606 i = e(this).data("zoom") ? e(this).data("zoom") : 10, 607 o = new mapboxgl.Map({ container: e(this).attr("id"), style: a, center: Array(n[1], n[0]), zoom: i }); 608 if ((o.scrollZoom.disable(), e(this).parents(".map-detail").length)) { 609 var s = e(this).parents(".map-detail"); 610 if (s.find(".map-pois ul.poi-list").length) { 611 var l = document.createElement("div"); 612 (l.className = "hotel_marker"), new mapboxgl.Marker(l).setLngLat(Array(n[1], n[0])).addTo(o); 613 var r, 614 c = s.find(".map-pois"), 615 d = { type: "FeatureCollection" }, 616 p = Array(); 617 c.find("li").each(function (t) { 618 var a = e(this).find("a").data("location").split(","); 619 (r = { type: "Feature", geometry: { type: "Point" } }), (r.geometry.coordinates = Array(a[1], a[0])), p.push(r); 620 }), 621 (d.features = p), 622 (o.isStylesLoaded = !1); 623 var h = new mapboxgl.LngLatBounds(), 624 u = 0;
625 d.features.forEach(function (e) { 626 u++; 627 var t = document.createElement("div"); 628 (t.className = "poi_marker"), (t.innerHTML = '<span class="label_numeric">' + u + "</span>"), new mapboxgl.Marker(t).setLngLat(e.geometry.coordinates).addTo(o), h.extend(e.geometry.coordinates); 629 }), 630 o.fitBounds(h, { padding: 40 }), 631 o.on("styledata", function () { 632 o.isStylesLoaded || 633 ((o.isStylesLoaded = !0), o.addLayer({ id: "_locations", type: "symbol", source: { type: "geojson", data: d }, layout: { "icon-image": "restaurant-15", "icon-allow-overlap": !0 } })); 634 }); 635 } 636 } 637 } else console.log("Map didn't have center attr"); 638 })), 639 e(".map-pois").length) 640 ) { 641 var N = ["â¿", "â¶", "â·", "â¸", "â¹", "âº", "â»", "â¼", "â½", "â¾", "â¿", "â«", "â¬", "â", "â®", "â¯", "â°", "â±", "â²", "â³", "â´"]; 642 e(".map-pois").each(function (t) { 643 i = 0; 644 var a = e(this).find("li").length; 645 do 646 e(this) 647 .find("li:eq(" + i + ")") 648 .attr("data-before", N[i + 1]) 649 .addClass("unicoded"), 650 i++; 651 while (i < a); 652 }); 653 } 654 if ( 655 (p(), 656 e(".accordian-header a").on("click", function (t) { 657 t.preventDefault(); 658 var a = e(this).closest(".accordian"); 659 a.toggleClass("open"); 660 }), 661 e(".accordian .preopen").each(function () { 662 e(this).addClass("open"), 663 e(this) 664 .find(".accordian-header a") 665 .off("click") 666 .on("click", function (e) { 667 e.preventDefault(); 668 }), 669 e(this).find(".accordian-toggle").hide(); 670 }), 671 e(".accordians[data-focus]").each(function () { 672 var t = e(this).attr("data-focus"), 673 a = e(this).find('.accordian-title a[href="#' + t + '"]'); 674 a.trigger("click"), c(a); 675 }), 676 e(".accordians.large").length && 677 e(".accordians.large").each(function () { 678 var t = e(this); 679 1 == t.find(">.accordian").length && t.find(">.accordian").addClass("open"); 680 }), 681 e(".collapsible .open-details").on("click", function (t) { 682 t.preventDefault(), e(this).parents(".collapsible").find(".article-detail").slideToggle(); 683 }), 684 e(".toggleEl").on("click", function (t) { 685 t.preventDefault(), e(".toggleEl").removeClass("active"), e(".stub-details").hide(), console.log(e(this).attr("href")), e(this).addClass("active"), e(e(this).attr("href")).slideToggle(); 686 }), 687 e(".toggleEl.autoHide").each(function () { 688 var t = e(this).attr("href"); 689 e(t).hide(); 690 }), 691 e(".tabs").each(function (t) { 692 var a = e(this); 693 a.find(".tab-content").hide(), 694 a.find(".tabNav a").on("click", function (t) { 695 t.preventDefault(), a.find("li.active").removeClass("active"), e(this).parent().addClass("active"), a.find(".tab-content").hide(); 696 var n = e(this).attr("href"); 697 e(n).fadeIn(); 698 }), 699 a.find(".tabNav li:eq(0) a").click(); 700 }), 701 e("._js-split-2").each(function (t) { 702 var a = e(this).attr("class"), 703 n = e(this).find(">li").length, 704 i = Math.ceil(n / 2), 705 o = e('<div class="fg fg-2"></div>'), 706 s = e('<ul class="' + a + '"></ul>'), 707 l = e('<ul class="' + a + '"></ul>'); 708 e(this).find(">li").slice(0, i).appendTo(s), e(this).find(">li").slice(0).appendTo(l), o.append(e('<div class="gfi"></div>').html(s), e('<div class="gfi"></div>').html(l)), e(this).before(o).remove(); 709 }), 710 e(".paragraph-group-js").each(function (t) { 711 var a = e(this).find(">*").length, 712 n = Math.ceil(a / 2), 713 i = e('<div class="_js-paragraph-group fg fg-2"></div>'), 714 o = e('<div class="gfi _js-pGroupEl"></div>'), 715 s = e('<div class="gfi _js-pGroupEl"></div>'); 716 console.log("els", a), a > 1 ? (e(this).find(">*").slice(0, n).appendTo(o), e(this).find(">*").slice(0).appendTo(s), i.append(o, s), e(this).before(i).remove()) : e(this).addClass("text-centered limited_w_s"); 717 }),
718 e("body").data("synxis_id") && e("body").data("country")) 719 ) { 720 var I = e("body").data("synxis_id"), 721 z = e("body").data("country"); 722 e('select[name="hotel-country"]').val(z).trigger("select2:select").trigger("change"), 723 setTimeout(function () { 724 e('select[name="hotel"]').val(I).trigger("change"); 725 }, 200); 726 } 727 if ( 728 (window.location.hash && h(), 729 e(window).on("hashchange", function (e) { 730 h(); 731 }), 732 matchMedia) 733 ) { 734 var A = { phone: { min: 0, max: 680 }, tablet: { min: 681, max: 1020 }, laptop: { min: 1021, max: 1400 }, desktop: { min: 1401, max: 999999 } }, 735 O = window.matchMedia("(max-width: " + A.phone.max + "px)"); 736 O.addListener(u); 737 var H = window.matchMedia("(min-width: " + A.tablet.min + "px) AND (max-width: " + A.tablet.max + "px)"); 738 H.addListener(f); 739 var B = window.matchMedia("(max-width: " + A.tablet.max + "px)"); 740 B.addListener(m); 741 var F = window.matchMedia("(min-width: " + A.laptop.min + "px) AND (max-width: " + A.laptop.max + "px)"); 742 F.addListener(g); 743 var Y = window.matchMedia("(min-width: " + A.desktop.min + "px)"); 744 Y.addListener(v), u(O), m(B); 745 } 746 }), 747 isIE && 748 jQuery(document).ready(function (e) { 749 if (e(".hero-container picture img").length) { 750 var t = e(".hero-container img").attr("src"); 751 e(".hero-container picture").hide(), e(".hero-container").css("background-image", "url(" + t + ")"); 752 } 753 });
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.