1(self.webpackChunktheevehotel=self.webpackChunktheevehotel||[]).push([[7519],{37212:function(e,t,r){!function(e,t,r){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n,s=i(r);e.Status=void 0,(n=e.Status||(e.Status={})).LOADING="LOADING",n.FAILURE="FAILURE",n.SUCCESS="SUCCESS";const o=({children:i,render:n,callback:o,...l})=>{const[a,c]=r.useState(e.Status.LOADING);return r.useEffect((()=>{const r=new t.Loader(l),i=e=>{o&&o(e,r),c(e)};i(e.Status.LOADING),r.load().then((()=>i(e.Status.SUCCESS)),(()=>i(e.Status.FAILURE)))}),[]),a===e.Status.SUCCESS&&i?s.default.createElement(s.default.Fragment,null,i):n?n(a):s.default.createElement(s.default.Fragment,null)};e.Wrapper=o,Object.defineProperty(e,"__esModule",{value:!0})}(t,r(39626),r(67294))},77519:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return h}});var i=r(67294),n="location-module--location_section--640a3",s=r(38804),o=r(58982),l=r(37212);const a=(e,t)=>{const r={red:"red",green:"green",blue:"blue",yellow:"yellow",pink:"pink",purple:"purple",orange:"orange"};return e?{url:e,scaledSize:new window.google.maps.Size(32,32)}:t&&r.hasOwnProperty(t)?{url:`https://maps.google.com/mapfiles/ms/icons/${r[t]}-dot.png`,scaledSize:new window.google.maps.Size(32,32)}:{url:"https://maps.gstatic.com/mapfiles/api-3/images/spotlight-poi3_hdpi.png",scaledSize:new window.google.maps.Size(26,37)}};function c(e){let{center:t,zoom:r,markers:n,selectedMarker:s,handleSelectMarker:o}=e;const l=(0,i.useRef)(null),c=(0,i.useRef)(null),u=(0,i.useRef)(null),h=(0,i.useRef)(null);return(0,i.useEffect)((()=>{const e=new window.google.maps.Map(l.current,{center:t,zoom:r,styles:[{featureType:"all",elementType:"geometry.fill",stylers:[{weight:2}]},{featureType:"all",elementType:"geometry.stroke",stylers:[{color:"#9c9c9c"}]},{featureType:"all",elementType:"labels.text",stylers:[{visibility:"on"}]},{featureType:"landscape",elementType:"all",stylers:[{color:"#f2f2f2"}]},{featureType:"landscape",elementType:"geometry.fill",stylers:[{color:"#ffffff"}]},{featureType:"landscape.man_made",elementType:"geometry.fill",stylers:[{color:"#ffffff"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"all",stylers:[{saturation:-100},{lightness:45}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#eeeeee"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#7b7b7b"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#ffffff"}]},{featureType:"road.highway",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road.arterial",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{color:"#46bcec"},{visibility:"on"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#c8d7d4"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#070707"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#ffffff"}]}]});return c.current=e,u.current=new window.google.maps.InfoWindow,h.current=n.map(((t,r)=>{const i=new window.google.maps.Marker({map:e,position:t.position,title:t.title,icon:a(t.iconUrl,t.iconColor)}),s=i.addListener("click",(()=>{var s,l;null===(s=u.current)||void 0===s||s.setContent(t.description),null===(l=u.current)||void 0===l||l.open(e,i),r<n.length-1&&o(r)}));return{mapMarker:i,clickListener:s}})),()=>{var e,t;null===(e=h.current)||void 0===e||e.forEach((e=>{let{mapMarker:t,clickListener:r}=e;window.google.maps.event.removeListener(r),t.setMap(null)})),null===(t=u.current)||void 0===t||t.close()}}),[]),(0,i.useEffect)((()=>{if(null!==s&&h.current){var e;const{mapMarker:t}=h.current[s];null===(e=c.current)||void 0===e||e.setCenter(t.getPosition()),window.google.maps.event.trigger(t,"click")}}),[s]),i.createElement("div",{ref:l,id:"map",className:"map-module--map--ee89b"})}var u=e=>i.createElement(l.Wrapper,{apiKey:"AIzaSyAX8aQGjs-NhxMIdUa93CwPFu4IyY9fmb8"},i.createElement(c,e));function h(e){var t;let{data:r,...l}=e;const{0:a,1:c}=(0,i.useState)(r.map),h=(0,o.Yz)(!!a.show,300);(0,i.useEffect)((()=>{(0,i.startTransition)((()=>c({...a,show:!0})))}),[]),(0,i.useEffect)((()=>{}),[a]);return i.createElement("section",{id:"map",className:`${n} ${null!==(t=l.className)&&void 0!==t?t:""}`},i.createElement("div",{key:`map-container${l.pk}`,className:`container ${(0,s.oj)(h)}`},i.createElement("div",{className:"inner"},!!r.content.text&&i.createElement(s.xv,r.content.text),i.createElement("div",{className:"map-container"},i.createElement(u,{center:a.center,zoom:a.zoom,markers:a.markers,selectedMarker:a.selectedMarker,handleSelectMarker:e=>{e!==a.selectedMarker&&(0,i.startTransition)((()=>{c({...a,selectedMarker:e})}))}})))))}},39626:function(e,t,r){"use strict";function i(e,t,r,i){return new(r||(r=Promise))((function(n,s){function o(e){try{a(i.next(e))}catch(t){s(t)}}function l(e){try{a(i.throw(e))}catch(t){s(t)}}function a(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,l)}a((i=i.apply(e,t||[])).next())}))}
1function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}r.r(t),r.d(t,{DEFAULT_ID:function(){return o},Loader:function(){return a},LoaderStatus:function(){return l}}),"function"==typeof SuppressedError&&SuppressedError;var s=n((function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var i,n,s;if(Array.isArray(t)){if((i=t.length)!=r.length)return!1;for(n=i;0!=n--;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((i=(s=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(n=i;0!=n--;)if(!Object.prototype.hasOwnProperty.call(r,s[n]))return!1;for(n=i;0!=n--;){var o=s[n];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}));const o="__googleMapsScriptId";var l;!function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"}(l||(l={}));class a{constructor({apiKey:e,authReferrerPolicy:t,channel:r,client:i,id:n=o,language:l,libraries:c=[],mapIds:u,nonce:h,region:p,retries:d=3,url:f="https://maps.googleapis.com/maps/api/js",version:g}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=r,this.client=i,this.id=n||o,this.language=l,this.libraries=c,this.mapIds=u,this.nonce=h,this.region=p,this.retries=d,this.url=f,this.version=g,a.instance){if(!s(this.options,a.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(a.instance.options)}`);return a.instance}a.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?l.FAILURE:this.done?l.SUCCESS:this.loading?l.LOADING:l.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`®ion=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((e,t)=>{this.loadCallback((r=>{r?t(r.error):e(window.google)}))}))}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;if(document.getElementById(this.id))return void this.callback();const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach((e=>!r[e]&&delete r[e])),(null===(t=null===(e=null===window||void 0===window?void 0:window.google)||void 0===e?void 0:e.maps)||void 0===t?void 0:t.importLibrary)||(e=>{let t,r,n,s="The Google Maps JavaScript API",o="google",l="importLibrary",a="__ib__",c=document,u=window;u=u[o]||(u[o]={});const h=u.maps||(u.maps={}),p=new Set,d=new URLSearchParams,f=()=>t||(t=new Promise(((l,u)=>i(this,void 0,void 0,(function*(){var i;for(n in yield r=c.createElement("script"),r.id=this.id,d.set("libraries",[...p]+""),e)d.set(n.replace(/[A-Z]/g,(e=>"_"+e[0].toLowerCase())),e[n]);d.set("callback",o+".maps."+a),r.src=this.url+"?"+d,h[a]=l,r.onerror=()=>t=u(Error(s+" could not load.")),r.nonce=this.nonce||(null===(i=c.querySelector("script[n
1once]"))||void 0===i?void 0:i.nonce)||"",c.head.append(r)})))));h[l]?console.warn(s+" only loads once. Ignoring:",e):h[l]=(e,...t)=>p.add(e)&&f().then((()=>h[l](e,...t)))})(r);const n=this.libraries.map((e=>this.importLibrary(e)));n.length||n.push(this.importLibrary("core")),Promise.all(n).then((()=>this.callback()),(e=>{const t=new ErrorEvent("error",{error:e});this.loadErrorCallback(t)}))}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const e=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),e)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((e=>{e(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),void this.callback();this.loading||(this.loading=!0,this.setScript())}}}}}]); 2//# sourceMappingURL=7519-4895f3bc4358789cab59.js.map
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.