1"use strict";(self.webpackChunklib=self.webpackChunklib||[]).push([[613],{25581:(e,t,r)=>{function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(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 i=r.call(e,t||"default");if("object"!=typeof i)return i;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}function n(e,t,r){s(e,t),t.set(e,r)}function s(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function l(e,t){return e.get(h(e,t))}function d(e,t,r){return e.set(h(e,t),r),r}function h(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")}r.d(t,{A:()=>f});var c={disabledClass:"disabled"},m=new WeakMap,u=new WeakMap,p=new WeakMap,v=new WeakMap,g=new WeakSet;class f{constructor(e){var t,r;s(t=this,r=g),r.add(t),n(this,m,void 0),n(this,u,void 0),n(this,p,void 0),n(this,v,void 0),d(m,this,o(o({},c),e))}onAdd(e){return this.map=e,this.container=document.createElement("div"),this.container.className="map-nav",d(u,this,h(g,this,k).call(this,".js-template-map-zoom-in",".js-map-zoom-in")),d(p,this,h(g,this,k).call(this,".js-template-map-zoom-out",".js-map-zoom-out")),d(v,this,h(g,this,k).call(this,".js-template-map-reset",".js-map-reset")),this.container.appendChild(l(u,this)),this.container.appendChild(l(p,this)),this.container.appendChild(l(v,this)),h(g,this,y).call(this),this.container}onRemove(){this.container.parentNode.removeChild(this.container),this.map=void 0}}function k(e,t){var r=document.querySelector(e);return document.importNode(r.content,!0).querySelector(t)}function y(){l(u,this).addEventListener("click",(()=>this.map.zoomIn())),l(p,this).addEventListener("click",(()=>this.map.zoomOut())),l(v,this).addEventListener("click",(()=>{this.map.flyTo({bearing:0,pitch:0})})),this.map.on("zoom",(()=>{l(u,this).classList.remove(l(m,this).disabledClass),l(p,this).classList.remove(l(m,this).disabledClass),this.map.getZoom()>=this.map.getMaxZoom()&&l(u,this).classList.add(l(m,this).disabledClass),this.map.getZoom()<=this.map.getMinZoom()&&l(p,this).classList.add(l(m,this).disabledClass)}))}},42616:(e,t,r)=>{r.d(t,{A:()=>h});var i=r(78857),o=()=>"ontouchstart"in window||navigator.maxTouchPoints||!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform),a=r(76362);function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function s(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 i=r.call(e,t||"default");if("object"!=typeof i)return i;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}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 d=new WeakSet;class h extends i.A{constructor(e){if(super(),l(this,d),s(this,"_removeMarker",(function(e){e.getElement().removeEventListener("mouseenter",this.listeners._markerMouseEnter),e.getElement().removeEventListener("mouseleave",this.listeners._markerMouseLeave),e.remove()})),this.config=e,!this.config.provider)throw new Error("Map option Provider is required");this.provider=e.provider,this.config=e,this.latitude=this.provider.latitude,this.longitude=this.provider.longitude,this.markers=[],this.markersSizeZoom=12,this.notAvailMarker=null,this.listeners={_markerMouseEnter:this._markerMouseEnter.bind(this),_markerMouseLeave:this._markerMouseLeave.bind(this)},this.init()}init(){this.provider.on("click",(e=>
1{this.resetActivePlaces(),this.resetLockedPlaces(),this.emit("marker-unlock");var t=e.originalEvent.target.closest(".marker");t&&t.dataset.id&&this.lockMarker(t.dataset.id)})),this.provider.on("load",(e=>this.emit("load",e))),this.provider.on("moveend",(()=>{this.emit("viewport-change",this.getBounds()),this.updateMarkersSize()})),this.provider.on("idle",(e=>this.emit("idle",e))),this.provider.on("zoom",(()=>this.emit("zoom",this.provider.getZoom()))),this.removeLogo()}onceViewportChange(e){this.provider.once("moveend",e)}_markerMouseEnter(e){var t=e.target.closest(".marker");t&&(t.classList.add("marker--active"),this.emit("marker-enter",t.dataset.id))}_markerMouseLeave(e){var t=e.target.closest(".marker");t&&(t.classList.remove("marker--active"),this.emit("marker-leave",t.dataset.id))}setBounds(e,t){return this.provider.fitBounds(e,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){s(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}({animate:!0},t))}addPoints(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m,r=arguments.length>2?arguments[2]:void 0,i={type:"FeatureCollection",features:e.filter((e=>{var t=!0;return this.markers.forEach((function(r){r.getElement().dataset.id==="hotel-"+e.HotelID&&(t=!1)})),t})).map(r)},a=this.provider.getZoom()<this.markersSizeZoom?"marker--small":"",n=this.config.provider.addMarkers(i,(e=>{var r=a;return e.properties.notAvail&&(r+="marker--not_avail"),t(r,e.properties)}));o()||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")}(d,this,c).call(this,n),this.markers=this.markers.concat(n)}removePoints(e){var t=[];this.markers.filter((function(r){if(!e)return!0;var i=!0;return e.forEach((function(e){"hotel-"+e===r.getElement().dataset.id&&(i=!1)})),i||t.push(r),i})).forEach(this._removeMarker.bind(this)),this.markers=t}updateMarkersSize(){var e=this;this.markers.forEach((function(t){var r=t.getElement();e.provider.getZoom()<e.markersSizeZoom?r.classList.add("marker--small"):r.classList.remove("marker--small")}))}resetActivePlaces(){this.markers.forEach((function(e){e.getElement().classList.remove("marker--active")}))}resetLockedPlaces(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"marker--lock";this.markers.forEach((t=>{t.getElement().classList.remove(e)}))}activateMarker(e){this.resetActivePlaces(),this.markers.forEach((t=>{var r=t.getElement();r.dataset.id===e&&r.classList.add("marker--active")}))}lockMarker(e){var t=this.markers.map((e=>e.getElement())),r=t.find((t=>t.dataset.id===e));r&&(r.classList.add("marker--lock"),this.emit("marker-lock",e))}removeLogo(){document.querySelector(".mapboxgl-ctrl-logo").remove()}createHotelMarker(){var e=u(),t=[this.longitude,this.latitude];this.provider.addMarker({anchor:"bottom",element:e},t)}createPopup(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.provider.createPopup(e)}getCenterCoords(){return[this.longitude,this.latitude]}flyTo(e){this.config.provider.flyTo(e)}resize(){return this.provider.resize()}isStyleLoaded(){return this.provider.isStyleLoaded()}getContainer(){return this.provider.getContainer()}getLayer(){return this.provider.getLayer(...arguments)}setLayoutProperty(){return this.provider.setLayoutProperty(...arguments)}addMarker(e,t){return this.config.provider.addMarker(e,t)}addSource(){return this.provider.addSource(...arguments)}addLayer(){return this.provider.addLayer(...arguments)}getZoom(){return this.provider.getZoom(...arguments)}off(){return this.provider.off(...arguments)}getMap(){return this.provider}generateBounds(e){return this.config.provider.generateBounds(e)}fitBounds(e){var{padding:t=50,animate:r=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.provider.fitBounds(e,{padding:t,animate:r})}fitBoundsByCoordinates(e,t){this.fitBounds(this.generateBounds(e),t)}
1getBounds(){var e=this.provider.getBounds(),t=e.getSouthWest(),r=e.getNorthEast();return{NELng:r.lng,NELat:r.lat,SWLng:t.lng,SWLat:t.lat}}resetView(){this.flyTo({center:[travel.options.mapParameters.hotelLongitude,travel.options.mapParameters.hotelLatitude],essential:!0,zoom:11})}addPlaces(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hotel";this.addPoints(e,t,(e=>(0,a.Q)(e,r)))}removePlaces(e){var t=e.reduce(((e,t)=>(e.push(t.HotelID),e)),[]);this.removePoints(t)}removeAllMarkers(){this.markers.forEach((e=>{this._removeMarker(e)})),this.markers=[]}replaceAllMarkers(e,t){this.removeAllMarkers(),this.addPlaces(e,t)}addControl(e,t){this.provider.addControl(e,t)}}function c(e){e.forEach((e=>{e.getElement().addEventListener("mouseenter",this.listeners._markerMouseEnter),e.getElement().addEventListener("mouseleave",this.listeners._markerMouseLeave)}))}var m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("div"),r=document.createElement("div");r.className="marker-inner",t.className="marker "+e,t.appendChild(r);return r.innerHTML='<svg class="marker__icon" xmlns="http://www.w3.org/2000/svg" width="22" height="24" viewBox="0 0 22 24"><g fill="none"><path fill="#FFF" d="M18.144 3.109C16.139 1.104 13.474 0 10.638 0c-2.835 0-5.5 1.104-7.506 3.109C1.128 5.114.023 7.779.023 10.614c0 5.002 3.497 9.32 8.355 10.373L10.638 24l2.26-3.013c4.858-1.052 8.354-5.37 8.354-10.373 0-2.835-1.104-5.5-3.108-7.505z"></path>\n\t<circle cx="10.638" cy="10.568" r="6.387" fill="currentColor"></circle><path fill="currentColor" d="M18.144 3.109C16.139 1.104 13.474 0 10.638 0c-2.835 0-5.5 1.104-7.506 3.109C1.128 5.114.023 7.779.023 10.614c0 5.002 3.497 9.32 8.355 10.373L10.638 24l2.26-3.013c4.858-1.052 8.354-5.37 8.354-10.373 0-2.835-1.104-5.5-3.108-7.505zm-7.506-.338c4.299 0 7.796 3.498 7.796 7.797 0 4.298-3.497 7.796-7.796 7.796s-7.797-3.498-7.797-7.796c0-4.3 3.498-7.797 7.797-7.797z"></path></g></svg>',t},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.createElement("div");return t.className="marker marker--hotel",t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat((null==e?void 0:e.width)||"30",'" height="').concat((null==e?void 0:e.height)||"42",'" viewBox="0 0 30 42" class=""><g fill="#242C4A" fill-rule="nonzero" stroke="#FFF"><path d="M13.791 0h0C6.186 0 0 6.313 0 14.072c0 4.689 2.188 10.426 6.504 17.05 3.169 4.865 6.29 8.345 6.421 8.49.223.247.537.388.866.388.329 0 .643-.14.865-.388.132-.145 3.253-3.625 6.421-8.49 4.316-6.624 6.505-12.361 6.505-17.05C27.582 6.312 21.395 0 13.79 0z" transform="translate(-321 -951) translate(322 952)"></path></g><path fill="#FFF" d="M19.885 22.885L16.477 22.885 16.477 16.948 11.428 16.948 11.428 22.885 8 22.885 8 8.667 11.428 8.667 11.428 14.311 16.477 14.311 16.477 8.667 19.885 8.667z" transform="translate(-321 -951) translate(322 952)"></path></svg>'),t}},32505:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(60842),o=r.n(i);class a{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mapbox",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.map=null,this.options=r,this.container=e,this.longitude=(null==t?void 0:t.long)||travel.options.mapParameters.hotelLongitude,this.latitude=(null==t?void 0:t.lat)||travel.options.mapParameters.hotelLatitude,this.init()}init(){this.map=new(o().Map)({container:this.container,zoom:this.options.zoom||17,minZoom:this.options.minZoom||5,maxZoom:this.options.maxZoom||20,center:[this.longitude,this.latitude],customAttribution:['<a href="https://www.openmaptiles.org/" target="_blank">© OpenMapTiles</a>'],style:this.options.style||"/map-styles/3/map-style.json",pitch:this.options.pitch||0,bearing:this.options.bearing||0,transformRequest:this.transformRequest,attributionControl:void 0===this.options.attributionControl||this.options.attributionControl}),this.options.attributionOptions&&this.map.addControl(new(o().AttributionControl)(this.options.attributionOptions)),this.options.control&&this.map.addControl(new(o().NavigationControl)({visualizePitch:!0}),this.options.control)}transformRequest(e,t){var r=e;return"Tile"===t&&-1!==e.indexOf("/tiles-data/map3/")?r=location.origin+e:"SpriteJSON"!==t&&"SpriteImage"!==t||-1===e.indexOf("/maps-data/mapboxgl/sprite")||(r=e.replace("https://",location.origin+"/")),{url:r}}addControl(e,t){this.map.addControl(e,t)}addMarker(e,t){return new(o().Marker)(e).setLngLat(t).addTo(this.map)}addHotelMarker(e,t){var r="function"==typeof e?e(t):e.cloneNode(!0);return r.dataset.id=t.properties.id,this.addMarker({element:r,anchor:"bottom"},t.geometry.coordinates)}addMarkers(e,t){var r=[];
1return e.features.forEach((e=>{var i=this.addHotelMarker(t,e);r.push(i)})),r}getCenterCoords(){return[this.longitude,this.latitude]}getMap(){return this.map}getContainer(){return this.container}on(){this.map.on(...arguments)}once(){this.map.once(...arguments)}off(){this.map.off(...arguments)}isStyleLoaded(){return this.map.isStyleLoaded(...arguments)}flyTo(){return this.map.flyTo(...arguments)}getZoom(){return this.map.getZoom(...arguments)}addSource(){return this.map.addSource(...arguments)}getSource(){return this.map.getSource(...arguments)}removeSource(){if(this.map.getSource(...arguments))return this.map.removeSource(...arguments)}addLayer(){return this.map.addLayer(...arguments)}getLayer(){return this.map.getLayer(...arguments)}setLayoutProperty(){return this.map.setLayoutProperty(...arguments)}removeLayer(){if(this.map.getLayer(...arguments))return this.map.removeLayer(...arguments)}createPopup(e){return new(o().Popup)(e)}generateBounds(e){var t=new(o().LngLatBounds);return e.forEach((e=>t.extend(e))),t}fitBounds(e){var{padding:t=50,animate:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.map.fitBounds(e,{padding:t,animate:r})}fitBoundsByCoordinates(e){this.fitBounds(this.generateBounds(e))}getBounds(){return this.map.getBounds()}resize(){return this.map.resize()}}},52192:(e,t,r)=>{r.d(t,{A:()=>o});var i=r(80951);const o=function(e){var{top:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,i.XF)(e),o=t||0,a=document.body.getBoundingClientRect().top,n=r.getBoundingClientRect().top-a-o;window.scrollTo({top:n,behavior:"smooth"})}},61622:(e,t,r)=>{r.d(t,{A:()=>i});const i=e=>{var t=new URLSearchParams;return Object.keys(e).forEach((r=>t.append(r,e[r]))),t.toString()}}}]);
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.