1"use strict";(self.webpackChunklib=self.webpackChunklib||[]).push([[3710,6364,9375,9528],{66364:(e,t,r)=>{r.d(t,{A:()=>s,L:()=>u});var n=r(95223),i=r(35494),o=r(80951),a=r(75761);function l(e,t,r,n,i,o,a){try{var l=e[o](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,i)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){l(o,n,i,a,c,"next",e)}function c(e){l(o,n,i,a,c,"throw",e)}a(void 0)}))}}var s=function(){var e=c((function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".js-main-form .js-avail-form",t=(0,o.XF)(".js-fixed-header");if(t){var n=(e=>{var t=(0,o.XF)(e);if(t)return t.offsetTop+t.offsetHeight})(e),{default:i}=yield r.e(2701).then(r.bind(r,42701));new i(t,{top:n})}}));return function(){return e.apply(this,arguments)}}(),d={},u=function(){var e=c((function*(e){var t=(0,o.XF)(e);if(t){d.dateFromElement||(d.dateFromElement=(0,o.XF)(".js-new-calendar-from-text",t)),d.dateToElement||(d.dateToElement=(0,o.XF)(".js-new-calendar-to-text",t)),d.guestCountElement||(d.guestCountElement=(0,o.XF)(".js-guests-count",t)),d.adultsCountElement||(d.adultsCountElement=(0,o.XF)(".js-adults-count",t)),d.childrenCountElement||(d.childrenCountElement=(0,o.XF)(".js-children-count",t)),d.childrenSelectAgeElements||(d.childrenSelectAgeElements=(0,o.mp)("select.js-child-age-select",t));var{dateFromElement:r,dateToElement:l,guestCountElement:c,adultsCountElement:s,childrenCountElement:u,childrenSelectAgeElements:h}=d,v=yield n.A.localFormater(i.A.dateFrom);r.textContent=v;var g=yield n.A.localFormater(i.A.dateTo);l.textContent=g,c.textContent=i.A.adultsCount+i.A.childrenCount,s.textContent=i.A.adultsCount,u.textContent=i.A.childrenCount,null==h||h.forEach(((e,t)=>{if(i.A.children[t]){e.value=i.A.children[t].age;var r=(0,a.nq)(e.value),n=e.nextElementSibling;(0,o.XF)("span.current",n).textContent=r}})),new MutationObserver((()=>{d.childrenSelectAgeElements=(0,o.mp)("select.js-child-age-select",t)})).observe(t,{childList:!0,subtree:!0})}}));return function(t){return e.apply(this,arguments)}}()},91168:(e,t,r)=>{r.r(t);var n=r(88211);r(93495);function i(e,t,r,n,i,o,a){try{var l=e[o](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,i)}var o=function(){var e,t=(e=function*(){var{callByUserAction:e}=yield r.e(8852).then(r.bind(r,78852));e((()=>Promise.all([r.e(5910),r.e(2298)]).then(r.bind(r,22298))))},function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function l(e){i(a,n,o,l,c,"next",e)}function c(e){i(a,n,o,l,c,"throw",e)}l(void 0)}))});return function(){return t.apply(this,arguments)}}();window.addEventListener("load",(()=>{window.requestIdleCallback((()=>{o(),r.e(4074).then(r.bind(r,18836)),r.e(9794).then(r.bind(r,67413)),r.e(4350).then(r.bind(r,41969))}),{timeout:2e3})})),(0,n.A)(".js-open-contact-us-modal",(()=>r.e(1545).then(r.bind(r,96307))))},75761:(e,t,r)=>{r.d(t,{Ay:()=>g,nq:()=>v,vL:()=>h});var n=r(78857),i=r(35494),o=r(80951);function a(e,t,r,n,i,o,a){try{var l=e[o](a),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,i)}function l(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}var c=e=>new Intl.DateTimeFormat(travel.options.language,{year:"numeric",month:"short",day:"numeric",weekday:"short"}).format(e),s=new WeakSet;class d extends n.A{constructor(e){super(),l(this,s),this.container=(0,o.XF)(e),this.container&&(this.childsAgeWrap=this.container.querySelector(".js-age-container"),function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(s,this,u).call(this))}formUpdate(){var e,t=this;return(e=function*(){t.container.adults.value=i.A.adultsCount,t.container.children.value=i.A.childrenCount,t.container.cityID&&(t.container.cityID.value=i.A.cityId),t.container.querySelector(".js-new-calendar-from-text").textContent=c(i.A.dateFrom),t.container.querySelector(".js-new-calendar-to-text").textContent=c(i.A.dateTo);var e=e=>e.toISOString().split("T")[0];t.container.from.value=yield e(i.A.dateFrom),t.container.to.value=yield e(i.A.dateTo);var r=!i.A.children.length;t.childsAgeWrap.hidden=r;var n=[...t.childsAgeWrap.querySelectorAll(".js-child-age")];
1n.splice(i.A.children.length).forEach((e=>{e.querySelector(".js-child-age-select").removeEventListener("change",t.inputChangeChildAge),e.remove()}));for(var o=n.length;o<i.A.children.length;o++){var a=h("childAge".concat(o+1),i.A.children[o].age),l=a.querySelector(".js-child-age-select");l.addEventListener("change",t.inputChangeChildAge),l.dataset.index=o,t.childsAgeWrap.appendChild(a)}t.validTouch&&t.emit("revalidate")},function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function l(e){a(o,n,i,l,c,"next",e)}function c(e){a(o,n,i,l,c,"throw",e)}l(void 0)}))})()}updateErrors(e){this.validTouch=!0;var t=[...this.childsAgeWrap.querySelectorAll(".js-child-age")];t.forEach((e=>e.classList.remove("error-age"))),e.children.forEach(((e,r)=>!e&&t[r].classList.add("error-age")));var r=this.container.querySelector(".js-ch-error-one"),n=this.container.querySelector(".js-ch-error-plural");r.classList.add("hidden"),n.classList.add("hidden");var i=e.children.filter((e=>!e)).length;i&&(1===i?r:n).classList.remove("hidden")}inputChangeChildAge(e){var{index:t}=e.target.dataset;i.A.children[t].age=e.target.value,i.A._emiter.emit("update")}getForm(){return this.container}}function u(){var e=this.container.adults,t=this.container.children,r=this.container.cityID;null!=r&&r.value?i.A.cityId=parseInt(r.value):null==r||r.addEventListener("change",(e=>{i.A.cityId=parseInt(e.target.value),this.emit("update:city",{cityID:i.A.cityId})})),e.addEventListener("change",(e=>i.A.adultsCount=parseInt(e.target.value))),t.addEventListener("change",(e=>{i.A.childrenCount=parseInt(e.target.value);for(var t=i.A.children.slice(0,i.A.childrenCount),r=i.A.children.length;r<i.A.childrenCount;r++)t.push({age:""});i.A.children=t})),this.container.addEventListener("submit",(e=>{e.preventDefault(),this.emit("submit")}))}var h=(e,t)=>{var r=document.querySelector("#child-age-template").content.cloneNode(!0),n=r.querySelector(".js-child-age-select");return n.setAttribute("name",e),n.value=t,r},v=e=>{switch(e){case"":return"-";case"0":return"<1";default:return e}};const g=d},1060:(e,t,r)=>{r.d(t,{x:()=>n});var n=e=>{var t=travel.options.bcomAID;return e||t||1549630}},93122:(e,t,r)=>{r.d(t,{F:()=>l});var n,i,o=r(27429),a=r(36306);null!==(n=travel.events)&&void 0!==n&&n.clirder||(i=new o.A({category:"clickunder",linear:!1,events:[{name:"open",once:!1}],providers:["stats","postHog"]}),travel.events.clirder=i);var l=e=>{try{var t;if(null===(t=travel.events)||void 0===t||!t.clirder)return void(0,a.l)("Error level: URGENT. Clirder eventsSender is not set.");travel.events.clirder.send("open",e)}catch(e){(0,a.l)("Error level: URGENT. Failed to send clirder open event. Error: ".concat(e))}}},23710:(e,t,r)=>{r.r(t),r.d(t,{ToggleWithScroll:()=>l,ToggleWithSmooth:()=>c,default:()=>s});var n=r(78857),i=r(80951),o=r(20041);class a extends n.A{constructor(e){var t,r,n,{target:o,toggleClass:a="active"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),this.toggleClass=a,e&&(this.trigger=(0,i.XF)(e));var l=(0,i.XF)(o);if(this.target=l||document.querySelector(null===(t=this.trigger)||void 0===t?void 0:t.dataset.target),!this.target)throw new Error("Error in Toggle. Cannot find target with selector ".concat(o," or data-attribute ").
1concat(null===(r=this.trigger)||void 0===r?void 0:r.dataset.target));this._clickListener=e=>{e.currentTarget.blur(),this.toggle()},null===(n=this.trigger)||void 0===n||n.addEventListener("click",this._clickListener)}get active(){return this.target.classList.contains(this.toggleClass)}toggle(){this.target.classList.contains(this.toggleClass)?this.hide():this.show()}hide(){var e;this.target.classList.remove(this.toggleClass),null===(e=this.trigger)||void 0===e||e.classList.remove("active"),this.emit("hide")}show(){var e;this.target.classList.add(this.toggleClass),null===(e=this.trigger)||void 0===e||e.classList.add("active"),this.emit("show")}destroy(){var e;null===(e=this.trigger)||void 0===e||e.removeEventListener("click",this._clickListener)}}class l extends a{constructor(e){super(e)}toggle(){super.toggle(),this._scrollToViewport()}_scrollToViewport(){var e=document.body.getBoundingClientRect().top,t=this.target.getBoundingClientRect().top-e-150;window.scrollTo({top:t,behavior:"smooth"})}}class c extends a{constructor(e,t){var{target:r,toggleClass:n,defaultHeight:i=0,transitionTime:a="0.5s"}=t;super(e,{target:r,toggleClass:n}),this.defaultHeight=i,this.transitionTime=a,(0,o.Dk)(this.target,{maxHeight:this.target.scrollHeight+"px",overflow:"hidden",transition:"max-height "+this.transitionTime})}show(){super.show(),this.target.style.maxHeight=this.target.scrollHeight+"px"}hide(){super.hide(),this.target.style.maxHeight=this.defaultHeight+"px"}}const s=a},70528:(e,t,r)=>{function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{Ri:()=>o,TV:()=>a,Yj:()=>l});var o=e=>{var t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0},a=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({path:"/"},r),r.expires instanceof Date&&(r.expires=r.expires.toUTCString());var o=encodeURIComponent(e)+"="+encodeURIComponent(t);for(var a in r){o+="; "+a;var l=r[a];!0!==l&&(o+="="+l)}document.cookie=o},l=e=>{a(e,"",{"max-age":-1})}},29528:(e,t,r)=>{r.d(t,{default:()=>g,generateArrayOfChildrenAges:()=>v});var n=r(69136),i=r(1060),o=r(36306),a=r(23639),l=function(){var e,t,{labelType:r="",subAccount:n=(null===(e=travel.options)||void 0===e||null===(e=e.clickTrip)||void 0===e?void 0:e.subAccount),gdid:i=(null===(t=travel.options)||void 0===t?void 0:t.gdid),eventId:o=(0,a.zG)(),isMobile:l=travel.isMobile(),additionalLabelData:c=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!n)return"";var s="".concat(r?"".concat(r,"-"):"").concat(n,"-gdid").concat(i);return o&&(s+="-eid".concat(o)),l&&(s+="-mob"),c.length&&(s+="-".concat(c.join("-"))),s};function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEac
1h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u="www",h=[u,"sp"],v=e=>Object.keys(e).filter((e=>e.startsWith("childAge"))).map((t=>e[t]));const g=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{var r,a,c,d,v,g,p,m;e={subdomain:u,dest_type:(null===(r=travel.options)||void 0===r||null===(r=r.clickTrip)||void 0===r?void 0:r.hotelBookingDestinationType)||(null===(a=travel.options)||void 0===a||null===(a=a.clickTrip)||void 0===a?void 0:a.destinationType),city_id:null===(c=travel.options)||void 0===c||null===(c=c.clickTrip)||void 0===c?void 0:c.hotelBookingCityId,hotel_id:(null===(d=travel.options)||void 0===d||null===(d=d.clickTrip)||void 0===d?void 0:d.hotelBookingId)||"",gdid:(null===(v=travel.options)||void 0===v?void 0:v.gdid)||null,date_from:null===(g=travel.options)||void 0===g||null===(g=g.availableParams)||void 0===g?void 0:g.dataFrom,date_to:null===(p=travel.options)||void 0===p||null===(p=p.availableParams)||void 0===p?void 0:p.dataTo,adults:2,children:[],isMobile:travel.isMobile(),subacc:null===(m=travel.options)||void 0===m||null===(m=m.clickTrip)||void 0===m?void 0:m.subAccount,label_type:"",additional_label_data:[],aid:(0,i.x)(),event_id:null}}catch(e){throw new Error("Fail to create defaultOptions: wrong global object params",e)}var f=s(s({},e),t);h.includes(f.subdomain)||((0,o.l)('Critical: invalid bcom subdomain â "'.concat(f.subdomain,'"')),f.subdomain=u);var b=(0,n.i)(f);if(!b.success)throw new Error("Critical: Fail to validate object. Invalid keys: ".concat(b.inValidKeys.join(", ")));var y="";return"countryEmptyBcomID"==f.dest_type?y="https://".concat(f.subdomain,".booking.com/country/").concat(f.city_id,".html?"):(y="https://".concat(f.subdomain,".booking.com/searchresults.html?"),y+="&dest_type=".concat(f.dest_type),y+="&dest_id=".concat(f.city_id)),y+="&aid=".concat(f.aid),y+="&checkin=".concat(f.date_from,"&checkout=").concat(f.date_to),y+="&group_adults="+f.adults,y+="&group_children="+f.children.length,f.children.forEach((e=>y+="&age=".concat(e))),f.no_rooms&&(y+="&no_rooms=".concat(f.no_rooms)),f.hotel_id&&(y+="&highlighted_hotels=".concat(f.hotel_id)),f.subacc&&(y+="&label=".concat(l({labelType:f.label_type,subAccount:f.subacc,gdid:f.gdid,eventId:f.event_id,isMobile:f.isMobile,additionalLabelData:f.additional_label_data}))),y}},20041:(e,t,r)=>{r.d(t,{Dk:()=>i,ME:()=>o});var n=r(80951),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,n.XF)(e);if(!r)throw new Error("Error in addCss: Such element doesn't exist.");Object.assign(r.style,t)},o=e=>{var t=document.documentElement;return getComputedStyle(t).getPropertyValue(e).trim()}}}]);
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.