PageSourceSearch

https://reservations.avantiresort.com/integration/tc-theme/public/…/destination-hotels-9fced78608e63e9e78d6.js

js avantiresort.com collected 2026-09-29 09:31:11 UTC 38,483 bytes, 1 lines download raw bytes

1(self.tcthemejsonpFunction=self.tcthemejsonpFunction||[]).push([[3323,8599],{4824(e,t,a){"use strict";a.d(t,{A:()=>o}),a(4423);const o={methods:{fetchStaticData(){const e=window.destination;if(!e)return;const t=e.dataInline,a=e.id,o=t.filter(e=>e.id==a)[0];this.destinationInfo=o,this.isLoading=!1},fetchPoiData(){const e=window.destination?.pois;if(!e)return;let t=e;window.destination?.id&&(t=e.filter(e=>e.location_id.includes(parseInt(window.destination.id)))),t.length>0&&(this.poisInfo=t),window.destination?.poiCategories?.length>0&&(this.poiCategories=window.destination.poiCategories)}}}},3870(e,t,a){(t=a(6314)(!1)).push([e.id,":root{--safe-area-inset-top: 0px;--safe-area-inset-right: 0px;--safe-area-inset-bottom: 0px;--safe-area-inset-left: 0px;--theme-rem-multiply: 1.6}@supports(top: constant(safe-area-inset-top)){:root{--safe-area-inset-top: constant(safe-area-inset-top);--safe-area-inset-right: constant(safe-area-inset-right);--safe-area-inset-bottom: constant(safe-area-inset-bottom);--safe-area-inset-left: constant(safe-area-inset-left)}}@supports(top: env(safe-area-inset-top)){:root{--safe-area-inset-top: env(safe-area-inset-top);--safe-area-inset-right: env(safe-area-inset-right);--safe-area-inset-bottom: env(safe-area-inset-bottom);--safe-area-inset-left: env(safe-area-inset-left)}}.hotels-wrapper .map-cluster{height:var(--base-map-height);margin-top:20px}.hotels-wrapper .map-cluster .infoBox img[align=right]{display:none}
1.hotels-wrapper .map-cluster .infor-window-cus-close{width:10px;position:absolute;top:10px;right:12px;background-color:rgba(0,0,0,0);padding:0px;border:0}.hotels-wrapper .map-cluster .infor-window-cus-close img{max-width:100%}.hotels-wrapper .destination-header{border-bottom:3px solid var(--primary-text-color);display:flex;justify-content:space-between;align-items:flex-start}.hotels-wrapper .destination-header h2{margin-bottom:0}@media(max-width: 767px){.hotels-wrapper .destination-header h2{width:250px;align-self:flex-start}}.hotels-wrapper .destination-header .hotel-num{color:var(--link-color)}.hotels-wrapper .destination-header .layout-change-container{display:flex;margin-bottom:15px}.hotels-wrapper .destination-header .layout-change-container .ds-nav__action{width:46px;height:46px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0);fill:var(--primary-text-color);border:none}.hotels-wrapper .destination-header .layout-change-container .ds-nav__action .ds-icon{width:1.75em;height:50px}.hotels-wrapper .destination-header .layout-change-container .ds-nav__action.selected{background-color:var(--primary-text-color);fill:var(--primary-color)}@media(max-width: 767px){.hotels-wrapper .destination-header .layout-change-container{width:100%;justify-content:flex-end}}.hotels-wrapper .destination-header.container:before,.hotels-wrapper .destination-header.container:after{content:none}.hotels-wrapper .destination-header.container{padding:0}@media(max-width: 767px){.hotels-wrapper .destination-header{flex-direction:column}}.hotels-wrapper .destination-list--item{width:100%;box-shadow:0px 0px 10px 0px rgba(0,0,0,.15);margin-top:20px;background-color:var(--card-bg-color);border:var(--custom-border-radius) solid var(--custom-border-color)}@media(max-width: 1024px){.hotels-wrapper .destination-list--item{padding-bottom:20px}}.hotels-wrapper .destination-list--item .item-content{width:100%;display:flex}.hotels-wrapper .destination-list--item .item-content--left-side{position:relative;display:flex;flex:2}.hotels-wrapper .destination-list--item .item-content--left-side .text-content{display:flex;flex-direction:column;justify-content:center;margin-left:20px;padding-right:5px}.hotels-wrapper .destination-list--item .item-content--left-side .text-content h3{margin-bottom:0}.hotels-wrapper .destination-list--item .item-content--left-side .text-content .view-on-map button{background-color:rgba(0,0,0,0);border:none;color:var(--link-color);padding:0}.hotels-wrapper .destination-list--item .item-content--left-side .text-content .view-on-map button .ds-icon-xl{width:1.1em;height:1.1em;margin:6px 0 0 0;fill:var(--link-color)}.hotels-wrapper .destination-list--item .item-content--left-side .text-content .view-on-map button .ds-icon-xl svg{fill:var(--link-color)}.hotels-wrapper .destination-list--item .item-content--left-side .text-content .view-on-map button .view-map{margin-left:5px}.hotels-wrapper .destination-list--item .item-content--left-side .text-content .view-on-map button .view-map:hover{text-decoration:underline}[dir=rtl] .hotels-wrapper .destination-list--item .item-content--left-side .text-content{margin-right:20px;padding-left:5px}@media(max-width: 1024px){.hotels-wrapper .destination-list--item .item-content--left-side .text-content{margin-left:0;padding:0 10px;margin-top:10px}}@media(max-width: 1044px){.hotels-wrapper .destination-list--item .item-content--left-side{flex-direction:column}}.hotels-wrapper .destination-list--item .item-content .with-member-rate{padding:20px}.hotels-wrapper .destination-list--item .item-content--right-side{flex:0;padding:0 20px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-left:1px solid var(--custom-border-color)}[dir=rtl] .hotels-wrapper .destination-list--item .item-content--right-side{border-right:1px solid var(--custom-border-color)}@media(max-width: 1024px){.hotels-wrapper .destination-list--item .item-content--right-side{border:none;margin-top:10px}}.hotels-wrapper .destination-list--item .item-content--right-side .member-rate-zone-container{min-width:240px}
1.hotels-wrapper .destination-list--item .item-content--right-side .book-container{display:flex;flex-direction:column;justify-content:space-evenly;height:40%;text-align:center}.hotels-wrapper .destination-list--item .item-content--right-side .book-container span{font-weight:bold}.hotels-wrapper .destination-list--item .item-content .img-container{min-width:358px;height:100%}@media(max-width: 1024px){.hotels-wrapper .destination-list--item .item-content .img-container{max-width:100%;min-width:0}}.hotels-wrapper .destination-list--item .item-content .img-container img{border-radius:var(--base-content-border-radius)}.hotels-wrapper .destination-list--item .item-content--short-description{margin-top:25px}@media(max-width: 1024px){.hotels-wrapper .destination-list--item .item-content{flex-direction:column}}.hotels-wrapper .destination-list .load-more{width:100%;margin:30px 0 10px 0;display:flex;justify-content:center}.hotels-wrapper .lead-rates{font-weight:bold}",""]),e.exports=t},5072(e){"use strict";var t=[];function a(e){for(var a=-1,o=0;o<t.length;o++)if(t[o].identifier===e){a=o;break}return a}function o(e,o){for(var i={},s=[],r=0;r<e.length;r++){var l=e[r],c=o.base?l[0]+o.base:l[0],d=i[c]||0,p="".concat(c," ").concat(d);i[c]=d+1;var u=a(p),m={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==u)t[u].references++,t[u].updater(m);else{var h=n(m,o);o.byIndex=r,t.splice(r,0,{identifier:p,updater:h,references:1})}s.push(p)}return s}function n(e,t){var a=t.domAPI(t);return a.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;a.update(e=t)}else a.remove()}}e.exports=function(e,n){var i=o(e=e||[],n=n||{});return function(e){e=e||[];for(var s=0;s<i.length;s++){var r=a(i[s]);t[r].references--}for(var l=o(e,n),c=0;c<i.length;c++){var d=a(i[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}i=l}}},7659(e){"use strict";var t={};e.exports=function(e,a){var o=function(e){if(void 0===t[e]){var a=document.querySelector(e);if(window.HTMLIFrameElement&&a instanceof window.HTMLIFrameElement)try{a=a.contentDocument.head}catch(e){a=null}t[e]=a}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(a)}},540(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056(e,t,a){"use strict";e.exports=function(e){var t=a.nc;t&&e.setAttribute("nonce",t)}},7825(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(a){!function(e,t,a){var o="";a.supports&&(o+="@supports (".concat(a.supports,") {")),a.media&&(o+="@media ".concat(a.media," {"));var n=void 0!==a.layer;n&&(o+="@layer".concat(a.layer.length>0?" ".concat(a.layer):""," {")),o+=a.css,n&&(o+="}"),a.media&&(o+="}"),a.supports&&(o+="}");var i=a.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,a)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},6370(e,t,a){"use strict";a.r(t),a.d(t,{default:()=>be});var o=a(1425);const n={class:"destination-container container"},i={class:"destination-header"},s={key:0},r={key:0,class:"hotel-num"},l={key:1,class:"layout-change-container"},c={class:"component-container"};var d=a(8434),p=a(4705),u=a(7275),m=a(5589),h=a(5445),g=a(7884),f=a(1016),b=a(4692);function w(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,o)}return a}const{fireEvent:v}=h.Wp,y={name:"DestinationHotelMap",props:{configs:{type:Object,required:!0,default:()=>({})},destinationInfo:{type:Array,required:!0,default:()=>({})}},data:()=>({isLoading:!0,googleMapsReady:!1,gMap:null,mapContainer:null,bounds:null,markers:null,hasMarkers:null,mapOptions:null,map:null,latitude:null,longitude:null,marker:null,selectedInfoWindow:null}),methods:{buildMap(){this.googleMapsReady&&this.destinationInfo.length&&(this.initMap(),this.map&&this.buildClusters())},buildClusters(){this.destinationInfo.map(e=>{if(e.latitude=parseFloat(e.latitude),e.longitude=parseFloat(e.longitude),e.latitude&&e.longitude){let t=this.buildMarker(e),a=this.buildInfoWindow(e);this.markerEvents(t,a),this.markers.push(t),this.bounds.extend(new this.gMap.LatLng(e.latitude,e.longitude))}}),this.markers.length&&(this.hasMarkers=!0),this.markerClustererContainer=new u.A(this.map,this.markers,{imagePath:this.configs.defaultClusterPin,zoomOnClick:!0,maxZoom:20}),this.map.fitBounds(this.bounds)},buildMarker(e){let{defaultMarkerPin:t,markerPinWidth:a,markerPinHeight:o}=this.configs,n={map:this.map,optimized:!1,position:new this.gMap.LatLng(e.latitude,e.longitude),title:e.name,id:e.id};return t.length>0&&(n=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?w(Object(a),!0).forEach(function(t){(0,p.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):w(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}({icon:{url:t,scaledSize:a&&o?new this.gMap.Size(a,o):null}},n)),new this.gMap.Marker(n)},buildInfoWindow(e){let t=window.innerWidth<1200?300:450,a=new this.gMap.Size(-t/2,-60);return new m.A({content:k(e,this.configs,o.Ef,f.default),alignBottom:!0,gMap:this.gMap,pixelOffset:a,closeBoxURL:"/integration/tc-theme/public/img/close.svg",maxWidth:t,boxStyle:{overflow:"inherit",width:window.innerWidth<1200?"300px":"450px"}})},markerEvents(e,t){const a=this.gMap;a.event.addListener(e,"click",a=>{null!=this.selectedInfoWindow&&this.selectedInfoWindow.close(),this.selectedInfoWindow=t,this.selectedInfoWindow.open(this.map,e),this.map.setCenter(e.getPosition()),this.map.setZoom(15)}),a.event.addListener(t,"domready",function(){let e=t.content_;b(document).trigger("openMapInfowindow",t.content_),b(e).on("click","a",function(){this.href=(0,h.D8)(this.href),v("event.clickToBE.bookOnMaps",b(this))});
1let o=b(".infor-window-cus-close").get();a.event.addDomListener(o[0],"click",function(){t.close()})})},getZoom(){return 0===this.configs.mapCustomZoom.length?16:"fit map bounds to markers"!==this.configs.mapCustomZoom?parseInt(this.configs.mapCustomZoom):"Fit map bounds to markers"===this.configs.mapCustomZoom?5:void 0},initMap(){this.gMap=window.google.maps,this.mapContainer=document.querySelector(".destination-map"),this.bounds=new this.gMap.LatLngBounds,this.markers=[],this.hasMarkers=!1;let e=window.innerWidth<1200?google.maps.ControlPosition.RIGHT_BOTTOM:google.maps.ControlPosition.RIGHT_TOP;this.mapOptions={zoom:this.getZoom(),minZoom:1.5,maxZoom:20,repeat:0,disableDefaultUI:!0,panControl:!1,zoomControl:!0,zoomControlOptions:{position:e},mapTypeControl:!1,scaleControl:!1,streetViewControl:!1,overviewMapControl:!1,rotateControl:!1},this.mapContainer&&(this.map=new this.gMap.Map(this.mapContainer,this.mapOptions));let t=this.configs.defaultView,a=this.configs.mapCustomZoom;this.gMap.event.addListenerOnce(this.map,"bounds_changed",()=>{"List View"!==t&&"Fit map bounds to markers"===a||this.map.setZoom(this.getZoom())})}},created(){window&&!window.GoogleAPIs&&h.TY.init(),window&&window.GoogleAPIs&&window.GoogleAPIs.addMapsScriptToPage(function(){this.googleMapsReady=!0}.bind(this))},computed:{cssProps(){let e=350;return this.configs.mapHeight&&(e=`${this.configs.mapHeight}`),{"--base-map-height":e+"px"}}},watch:{destinationInfo:function(){this.buildMap()},googleMapsReady:function(){this.buildMap()},"$store.state.selectedMarker":function(){const{hotelId:e}=this.$store.state.selectedMarker,t=this.markers.find(function(t){return parseInt(t.id)===parseInt(e)});t&&this.gMap.event.trigger(t,"click")},"$store.state.layout":function(){"Map View"===this.$store.state.layout&&this.map&&"Fit map bounds to markers"===this.configs.mapCustomZoom&&("Fit map bounds to markers"===this.configs.mapCustomZoom?this.bounds&&this.map.fitBounds(this.bounds):this.getZoom()&&this.map.setZoom(this.getZoom()))}}},k=function(e,t,a,o){const n=document.createElement("div"),i=`map-poi-${e.id}-${Date.now()}`,s="1"==(0,g.o)("--member-rate-enabled"),r=Boolean(e.iHotelierConfig||e.lead_rate||e.rate),l=e.lead_rate||e.rate||"",c=(e.iHotelierConfig||"").replace(/"/g,"&quot;"),d=t.locales.memberRateLocales?.memberRateEmpty;return s&&!window.memberRateData&&(window.memberRateData=[]),s&&(window.memberRateData[i]={iHotelierConfig:e.iHotelierConfig||"",leadRate:l,targetForMRM:e.booking_engine_url||""},document.documentElement.classList.add("member-rate-enabled")),n.innerHTML=`\n    <div class="js-map-infowindow map__infowindow">\n      <div class="h3 map__infowindow__title">${e.name}</div>\n        <div class="map__infowindow__content">\n          ${1===e.has_photo?`\n          <div class="map__infowindow__content__col map__infowindow__content__col--image">\n            <div class="ratio-4-3">\n              <div class="ratio-content">\n                <picture>\n                  <img src="${e.first_photo.url_standard}" alt="${e.first_photo.alt}">\n                </picture>\n              </div>\n            </div>\n          </div>`:""}\n          <div class="map__infowindow__content__col map__infowindow__content__col--text" ${1===e.has_photo?'style="width:44%;"':'style="width:100%;"'}>\n            <div class="cms-html-var" data-max-height="130">${e.short_description}</div>\n          </div>\n        </div>\n        <div class="info-price map__infowindow__price-line">\n          ${!0===t.hotelCardRates?`\n            ${s?`\n              <div class="js-member-rate-zone" id="member-rate-zone-${i}"></div>\n            `:`\n              ${r?`\n                <glx-tc-lead-rate class="m-content-object--footer-price lead-rates js-default-lead-rate" config="${c}">\n                  <div class="lead-rate-after-load">\n                    ${t.locales.ratesFrom||""}\n                    <glx-tc-lead-rate-strike-value class="strike-through"></glx-tc-lead-rate-strike-value>\n                    <glx-tc-lead-rate-value class="lead-rates-price">${l}</glx-tc-lead-rate-value>\n                  </div>\n                </glx-tc-lead-rate>\n              `:`\n                <div class="m-content-object--footer-price lead-rates js-default-lead-rate">${d}</div>\n              `}\n            `}\n          `:""}\n          ${""==e.booking_engine_url||s?"":`\n          <div>\n            <a \n              href="${e.booking_engine_url}"\n              class="btn js-dynamic-book-url ${"Primary"===t.mapPopupBtnStyle?"btn-primary":"Secondary"===t.mapPopupBtnStyle?"btn-secondary":"Action Custom"===t.mapPopupBtnStyle?"btn-custom":"Action"===t.mapPopupBtnStyle?"btn-action":"btn-ghost"}"\n              rel="noopener" \n              aria-label="${t.locales.bookNow}"\n              target=${0==e.is_be_open_in_same_tab?"_blank":"_self"}\n            >\n              ${t.hotelCardBtnTxt?t.hotelCardBtnTxt:t.locales.bookNow}\n            </a>\n          </div>`}\n        </div>\n      </div>
1\n      <button class="infor-window-cus-close" aria-label="${t.locales.closeBtn}">\n        <img src="/integration/tc-theme/public/img/close.svg" alt="${t.locales.closeBtn}">\n      </button>\n    </div>`,s&&a&&o&&setTimeout(()=>{const s=n.querySelector(`#member-rate-zone-${i}`);s&&a(o,{configs:{blockId:i,iHotelierConfig:e.iHotelierConfig||"",targetForMRM:e.booking_engine_url||"",localesObjProp:{rewardProgramName:t.locales.memberRateLocales?.rewardProgramName||"",ratesFrom:t.locales.memberRateLocales?.ratesFrom||t.locales.ratesFrom||"",memberRateEmpty:d,lowestPriceLabel:t.locales.memberRateLocales?.lowestPriceLabel||"",memberPriceLabel:t.locales.memberRateLocales?.memberPriceLabel||""}}}).mount(s)},0),n};var x=a(6262);const L=(0,x.A)(y,[["render",function(e,t,a,n,i,s){return(0,o.uX)(),(0,o.CE)("div",{class:(0,o.C4)("Full-width"!==a.configs.mapWidth?"container":null)},[(0,o.Lk)("div",{class:"map-cluster destination-map",style:(0,o.Tr)(s.cssProps)},null,4)],2)}]]),_={class:"destination-list container"},C={key:0,class:"load-more"},M={class:"item-content"},A={class:"item-content--left-side"},R={class:"img-container"},I={class:"text-content"},S={class:"view-map"},P=["innerHTML"],E=["href"],O={key:0,class:"lead_rate lead-rates is-loaded member-rate-zone-container"},T={key:1,class:"book-container"},j={key:0},B={class:"ratio-content"},H=["href","target","aria-label"],F=["srcset"],$=["srcset"],W=["srcset"],D=["srcset"],X=["data-lazy","alt"],z={key:1},V=["srcset"],Z=["srcset"],q=["srcset"],N=["srcset"],Q=["data-lazy","alt"],G={name:"ItemImage",components:{},props:{configs:{type:Object,required:!0,default:()=>({})},data:{type:Object,required:!0,default:()=>({})}},data:()=>({showWithLink:!1,readMoreTarget:"_self",readMoreAriaLabel:"",srcSet450:"",srcSet767:"",srcSet1199:"",srcSet1200:""}),methods:{analyzeSettings(){this.showWithLink=""!==this.data.url,this.readMoreTarget=this.configs.openReadMoreNewTab?"_blank":"_self";let e=this.data.first_photo.url_standard;""!==e&&(this.srcSet450=GalaxyHelpers.resizeImg(e,400),this.srcSet767=GalaxyHelpers.resizeImg(e,780),this.srcSet1199=GalaxyHelpers.resizeImg(e,1e3),this.srcSet1200=GalaxyHelpers.resizeImg(e,600))}},created(){this.analyzeSettings()},computed:{blockCssProps(){let e=0,t=this.configs.blockStyles.base;return t.imageRadius&&(e=t.imageRadius),{"--base-content-border-radius":e+"px"}}},mounted(){}},K={name:"HotelsItem",components:{ItemImage:(0,x.A)(G,[["render",function(e,t,a,n,i,s){return(0,o.uX)(),(0,o.CE)("div",{class:"m-content-object___img ratio-4-3",style:(0,o.Tr)(s.blockCssProps)},[(0,o.Lk)("div",B,[e.showWithLink?((0,o.uX)(),(0,o.CE)("a",{key:0,class:"link-block",href:a.data.url,target:e.readMoreTarget,"aria-label":e.readMoreAriaLabel},[(0,o.Lk)("picture",null,[(0,o.Lk)("source",{media:"(max-width: 450px)",srcset:e.srcSet450},null,8,F),(0,o.Lk)("source",{media:"(max-width: 767px)",srcset:e.srcSet767},null,8,$),(0,o.Lk)("source",{media:"(max-width: 1199px)",srcset:e.srcSet1199},null,8,W),(0,o.Lk)("source",{media:"(min-width: 1200px)",srcset:e.srcSet1200},null,8,D),(0,o.Lk)("img",{"data-lazy":a.data.first_photo.url_standard,src:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",alt:a.data.first_photo.alt},null,8,X)])],8,H)):((0,o.uX)(),(0,o.CE)("picture",z,[(0,o.Lk)("source",{media:"(max-width: 450px)",srcset:e.srcSet450},null,8,V),(0,o.Lk)("source",{media:"(max-width: 767px)",srcset:e.srcSet767},null,8,Z),(0,o.Lk)("source",{media:"(max-width: 1199px)",srcset:e.srcSet1199},null,8,q),(0,o.Lk)("source",{media:"(min-width: 1200px)",srcset:e.srcSet1200},null,8,N),(0,o.Lk)("img",{"data-lazy":a.data.first_photo.url_standard,src:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",alt:a.data.first_photo.alt},null,8,Q)]))])],4)}]]),ButtonLink:a(3445).A,MemberRateZoneApp:f.default},props:{configs:{type:Object,required:!0,default:()=>({})},hotelInfo:{type:Object,required:!0,default:()=>({})}},data:()=>({showMemberRateBoolean:"1"==(0,g.o)("--member-rate-enabled")}),methods:{goToMap(){this.$store.dispatch("setLayout","Map View"),this.$store.dispatch("setSelectedMarker",{hotelId:this.hotelInfo.id})}
1,changeLayout(e){this.$store.dispatch("setLayout",e)}},computed:{customCssProps(){let e=0,t="#ccc",a=this.configs.blockStyles.base;return a.borderStyles.enabled&&(e=a.borderStyles.borderWidth,t=a.borderStyles.borderColor),{"--custom-border-radius":e+"px","--custom-border-color":t}},hrefTarget(){return 0==this.hotelInfo.is_be_open_in_same_tab?"_blank":"_self"}}},U={components:{HotelsItem:(0,x.A)(K,[["render",function(e,t,a,n,i,s){const r=(0,o.g2)("item-image"),l=(0,o.g2)("member-rate-zone-app"),c=(0,o.g2)("glx-tc-lead-rate-strike-value"),d=(0,o.g2)("glx-tc-lead-rate-value"),p=(0,o.g2)("glx-tc-lead-rate"),u=(0,o.g2)("button-link");return(0,o.uX)(),(0,o.CE)("div",{class:"destination-list--item",style:(0,o.Tr)(s.customCssProps)},[(0,o.Lk)("div",M,[(0,o.Lk)("div",A,[(0,o.Lk)("div",R,[(0,o.bF)(r,{data:a.hotelInfo,configs:a.configs},null,8,["data","configs"])]),(0,o.Lk)("div",I,[(0,o.Lk)("h3",null,(0,o.v_)(a.hotelInfo.name),1),"Both Combined"===a.configs.layout&&a.configs.hotelCard?((0,o.uX)(),(0,o.CE)("div",{key:0,class:"view-on-map",onClick:t[1]||(t[1]=e=>s.changeLayout("Map View"))},[(0,o.Lk)("button",{class:"go-to-map",onClick:t[0]||(t[0]=(...e)=>s.goToMap&&s.goToMap(...e))},[t[2]||(t[2]=(0,o.Lk)("svg",{class:"ds-icon-xl"},[(0,o.Lk)("use",{href:"#icon-marker"})],-1)),(0,o.Lk)("span",S,(0,o.v_)(a.configs.locales.viewOnMap),1)])])):(0,o.Q3)("v-if",!0),a.hotelInfo.short_description?((0,o.uX)(),(0,o.CE)("div",{key:1,innerHTML:a.hotelInfo.short_description,class:"item-content--short-description"},null,8,P)):(0,o.Q3)("v-if",!0),a.hotelInfo.url?((0,o.uX)(),(0,o.CE)("a",{key:2,class:"link-block",href:a.hotelInfo.url},(0,o.v_)(a.configs.locales.goToWebsite)+" →",9,E)):(0,o.Q3)("v-if",!0)])]),(0,o.Lk)("div",{class:(0,o.C4)(["item-content--right-side",{"with-member-rate":i.showMemberRateBoolean}])},[i.showMemberRateBoolean?((0,o.uX)(),(0,o.CE)("div",O,[(0,o.bF)(l,{configs:{iHotelierConfig:a.hotelInfo.iHotelierConfig,localesObjProp:a.configs.locales.memberRateLocales,targetForMRM:a.hotelInfo.booking_engine_url}},null,8,["configs"])])):(0,o.Q3)("v-if",!0),i.showMemberRateBoolean?(0,o.Q3)("v-if",!0):((0,o.uX)(),(0,o.CE)("div",T,[a.configs.hotelCardRates&&a.hotelInfo.rate?((0,o.uX)(),(0,o.CE)("span",j,[(0,o.eW)((0,o.v_)(a.configs.locales.ratesFrom)+" ",1),(0,o.bF)(p,{config:a.hotelInfo.iHotelierConfig,class:"lead-rates lead_rate"},{default:(0,o.k6)(()=>[(0,o.bF)(c,{class:"strike-through"}),(0,o.bF)(d,{class:"lead-rates-price"},{default:(0,o.k6)(()=>[(0,o.eW)((0,o.v_)(a.hotelInfo.lead_rate),1)],void 0,!0),_:1})],void 0,!0),_:1},8,["config"])])):(0,o.Q3)("v-if",!0),(0,o.bF)(u,{type:"link-only",linkData:{title:a.configs.hotelCardBtnTxt,href:a.hotelInfo.booking_engine_url,target:s.hrefTarget,targetLabel:a.configs.hotelCardBtnTxt,style:a.configs.hotelCardBtnStyle},rel:"noopener"},null,8,["linkData"])]))],2)])],4)}]])},name:"DestinationHotelList",props:{configs:{type:Object,required:!0,default:()=>({})},destinationInfo:{type:Array,required:!0,default:()=>({})}},data:()=>({currentPage:1}),computed:{pageCount(){return Math.ceil(this.resultsLength/this.configs.maxItems)},pageOffset(){return this.configs.maxItems*this.currentPage},paginatedList(){return this.destinationInfo.slice(0,this.currentPage*this.configs.maxItems)}},methods:{loadMore(){this.currentPage+=1}}},J=(0,x.A)(U,[["render",function(e,t,a,n,i,s){const r=(0,o.g2)("hotels-item");return(0,o.uX)(),(0,o.CE)("div",_,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(s.paginatedList,e=>((0,o.uX)(),(0,o.Wv)(r,{key:e.id,hotelInfo:e,configs:a.configs},null,8,["hotelInfo","configs"]))),128)),e.currentPage*a.configs.maxItems<a.destinationInfo.length?((0,o.uX)(),(0,o.CE)("div",C,[(0,o.Lk)("button",{onClick:t[0]||(t[0]=(...e)=>s.loadMore&&s.loadMore(...e)),class:"btn btn-ghost"},(0,o.v_)(a.configs.locales.loadMore),1)])):(0,o.Q3)("v-if",!0)])}]]);var Y=a(4824);const ee={methods:{async filterHotelData(e){if(0===e.length)return this.filteredHotels=[],void(this.resultsLength=0);const t=e.hotels,a=window.hotels.dataInline.filter(e=>t.some(t=>e.id===t.id));this.filteredHotels=a,this.resultsLength=this.filteredHotels.length}}},te={components:{BlockWrapper:d.A,DestinationHotelMap:L,DestinationHotelList:J},name:"DestinationHotelsApp",props:{configs:{type:Object,required:!0,default:()=>({})}},mixins:[Y.A,ee],data:()=>({isLoading:!0,displayMobile:0,destinationInfo:null,resultsLength:null,filteredHotels:[],layout:null}),mounted(){let e=this.configs;
1e.defaultView&&this.$store.dispatch("setLayout",e.defaultView),e.defaultView||this.$store.dispatch("setLayout",e.layout)},watch:{"$store.state.layout":function(){this.layout=this.$store.state.layout}},methods:{changeLayout(e){this.$store.dispatch("setLayout",e)}},async mounted(){"Both Combined"==this.configs.layout?"List View"==this.configs.defaultView?this.layout="List View":this.layout="Map View":"List View"==this.configs.layout?this.layout="List View":this.layout="Map View",this.fetchStaticData(),await this.filterHotelData(this.destinationInfo)}};var ae=a(5072),oe=a.n(ae),ne=a(7825),ie=a.n(ne),se=a(7659),re=a.n(se),le=a(5056),ce=a.n(le),de=a(540),pe=a.n(de),ue=a(1113),me=a.n(ue),he=a(9649),ge=a.n(he),fe={};fe.styleTagTransform=me(),fe.setAttributes=ce(),fe.insert=re().bind(null,"head"),fe.domAPI=ie(),fe.insertStyleElement=pe(),oe()(ge(),fe),ge()&&ge().locals&&ge().locals;const be=(0,x.A)(te,[["render",function(e,t,a,d,p,u){const m=(0,o.g2)("destination-hotel-map"),h=(0,o.g2)("destination-hotel-list"),g=(0,o.g2)("block-wrapper");return(0,o.uX)(),(0,o.Wv)(g,{id:"destination-hotels__container",classList:"hotels-wrapper",blockStyles:{backgroundSettings:a.configs.blockStyles.base.backgroundSettings,paddingSettings:a.configs.blockStyles.base.paddingSettings}},{default:(0,o.k6)(()=>[(0,o.Lk)("div",n,[(0,o.Lk)("div",i,[a.configs.locales.explore&&a.configs.locales.hotelsInCity?((0,o.uX)(),(0,o.CE)("h2",s,[(0,o.eW)((0,o.v_)(a.configs.locales.explore)+" ",1),a.configs.hideHotelPropertyCount&&this.resultsLength?((0,o.uX)(),(0,o.CE)("span",r,(0,o.v_)(this.resultsLength),1)):(0,o.Q3)("v-if",!0),(0,o.eW)(" "+(0,o.v_)(a.configs.locales.hotelsInCity),1)])):(0,o.Q3)("v-if",!0),"Both Combined"===a.configs.layout?((0,o.uX)(),(0,o.CE)("div",l,[(0,o.Lk)("button",{class:(0,o.C4)(["ds-nav__map-view ds-nav__action","Map View"===e.layout?"selected":null]),onClick:t[0]||(t[0]=e=>u.changeLayout("Map View"))},[...t[2]||(t[2]=[(0,o.Lk)("svg",{class:"ds-icon",focusable:"false"},[(0,o.Lk)("use",{href:"#asm-icon-mapView"})],-1)])],2),(0,o.Lk)("button",{class:(0,o.C4)(["ds-nav__list-view ds-nav__action","List View"===e.layout?"selected":null]),onClick:t[1]||(t[1]=e=>u.changeLayout("List View"))},[...t[3]||(t[3]=[(0,o.Lk)("svg",{class:"ds-icon",focusable:"false"},[(0,o.Lk)("use",{href:"#icon-listView"})],-1)])],2)])):(0,o.Q3)("v-if",!0)])]),(0,o.Lk)("div",c,[(0,o.bo)((0,o.bF)(m,{destinationInfo:e.filteredHotels,configs:a.configs,resultsLength:e.resultsLength},null,8,["destinationInfo","configs","resultsLength"]),[[o.aG,"Map View"===e.layout]]),(0,o.bo)((0,o.bF)(h,{configs:a.configs,destinationInfo:e.filteredHotels,resultsLength:e.resultsLength},null,8,["configs","destinationInfo","resultsLength"]),[[o.aG,"List View"===e.layout]])])],void 0,!0),_:1},8,["blockStyles"])}]])},4672(e,t,a){"use strict";a.d(t,{A:()=>s});var o=a(1425);const n=["innerHTML"],i={name:"adaNewTab",props:{content:{type:String,required:!0,default:""}}},s=(0,a(6262).A)(i,[["render",function(e,t,a,i,s,r){return(0,o.uX)(),(0,o.CE)("span",{class:"sr-only",innerHTML:a.content},null,8,n)}]])},8434(e,t,a){"use strict";a.d(t,{A:()=>l});var o=a(1425);const n=["id"];var i=a(5445);const{fireEvent:s}=i.Wp,r={name:"BlockWrapper",props:{classList:{type:String},blockStyles:{type:Object},anchorId:String},computed:{cssProps(){if(!this.blockStyles)return;const e=this.blockStyles;let t="",a="left",o="none",n="no-repeat",i="initial",s="initial",r=15,l=15,c=15,d=15,p=15,u=15;e.textColor&&(t=e.textColor),e.textAlign&&(a=e.textAlign);let m=e.backgroundSettings;m&&("color"===m.type?o=`${m.color}`:"picture"===m.type&&(o=`url('${m.image}')`,m.repeat?n="repeat":(n="no-repeat",i="center",s="cover")));let h=e.paddingSettings;return h&&(h.desktop?.enabled&&(h.desktop?.top&&(r=h.desktop.top),h.desktop?.bottom&&(l=h.desktop.bottom)),h.tablet?.enabled&&(h.tablet?.top&&(c=h.tablet.top),h.tablet?.bottom&&(d=h.tablet.bottom)),h.mobile?.enabled&&(h.mobile?.top&&(p=h.mobile.top),h.mobile?.bottom&&(u=h.mobile.bottom))),{"--base-content-color":t,"--base-content-alignment":a,"--wrapper-background":o,"--wrapper-background-repeat":n,"--wrapper-background-position":i,"--wrapper-background-size":s,"--wrapper-desktop-padding-top":r+"px","--wrapper-desktop-padding-bottom":l+"px","--wrapper-tablet-pad
1ding-top":c+"px","--wrapper-tablet-padding-bottom":d+"px","--wrapper-mobile-padding-top":p+"px","--wrapper-mobile-padding-bottom":u+"px"}},processedAnchorId(){if(this.anchorId)return this.removeSpecialCharactersAndSpaces(this.anchorId)}},methods:{removeSpecialCharactersAndSpaces:e=>e.replace(/[^a-zA-Z0-9]/g,"")},mounted(){document.body.classList.contains("header3")&&this.anchorId&&s("hc::block::mounted",{name:this.anchorId,anchorId:this.processedAnchorId})}},l=(0,a(6262).A)(r,[["render",function(e,t,a,i,s,r){return(0,o.uX)(),(0,o.CE)("div",{id:r.processedAnchorId,class:(0,o.C4)(["block-wrapper common-component",a.classList]),style:(0,o.Tr)(r.cssProps)},[(0,o.RG)(e.$slots,"default")],14,n)}]])},3445(e,t,a){"use strict";a.d(t,{A:()=>r});var o=a(1425);const n=["href","target","aria-label"];var i=a(4672);const s=(0,o.pM)({name:"ButtonLink",components:{adaNewTab:i.A},props:{type:{type:String,required:!0},classList:{type:String},linkData:{type:Object,required:!0},clickEvent:{type:Function}},setup(e){const t=(0,o.KR)(""),a=(0,o.KR)(!1),n=(0,o.KR)(!1),i=(0,o.KR)(""),s=(0,o.KR)(!1),r=(0,o.KR)("_self"),l=(0,o.KR)(""),c=(0,o.KR)(!1),d=(0,o.KR)(""),p=(e,t)=>e?`${e} ${t}`:t,u=()=>{const o=e.linkData;if(o){if(o.href&&(i.value=o.href),o.target&&(s.value=o.target,r.value=s.value?"_blank":"_self"),o.targetLabel&&(c.value=!0,d.value=o.targetLabel),e.classList&&(t.value=e.classList),o.ariaLabel&&(l.value=o.ariaLabel),"style"in o){switch(o.style.toLowerCase()){case"primary":t.value=p(t.value,"btn btn-primary");break;case"secondary":t.value=p(t.value,"btn btn-secondary");break;case"ghost":t.value=p(t.value,"btn btn-ghost");break;case"action custom":t.value=p(t.value,"btn btn-custom");break;case"link":t.value=p(t.value,"btn-text-only");break;default:t.value=p(t.value,"btn btn-action")}if("state"in o)switch(o.state.toLowerCase()){case"loading":t.value=p(t.value,"loading");break;case"disabled":t.value=p(t.value,"disabled")}}else t.value=p(t.value,"more-link");"link-only"===e.type&&o.href&&o.title?a.value=!0:"text-only"===e.type&&o.title&&(n.value=!0)}};return(0,o.sV)(()=>{u()}),{classNames:t,isAnchor:a,isButton:n,href:i,openNewTab:s,target:r,ariaLabel:l,hasNewTabContent:c,newTabContent:d,analyzeSettings:u}}}),r=(0,a(6262).A)(s,[["render",function(e,t,a,i,s,r){const l=(0,o.g2)("ada-new-tab");return e.isAnchor?((0,o.uX)(),(0,o.CE)("a",{key:0,class:(0,o.C4)(e.classNames),href:e.href,target:e.target,"aria-label":e.ariaLabel},[(0,o.eW)((0,o.v_)(e.linkData.title.trim())+" ",1),e.openNewTab&&e.newTabContent?((0,o.uX)(),(0,o.Wv)(l,{key:0,content:e.newTabContent},null,8,["content"])):(0,o.Q3)("v-if",!0)],10,n)):e.isButton?((0,o.uX)(),(0,o.CE)("button",{key:1,type:"button",class:(0,o.C4)(e.classNames),onClick:t[0]||(t[0]=(...t)=>e.clickEvent&&e.clickEvent(...t))},(0,o.v_)(e.linkData.title.trim()),3)):(0,o.Q3)("v-if",!0)}]])},1016(e,t,a){"use strict";a.r(t),a.d(t,{default:()=>C});var o=a(1425);const n=["data-empty"],i={class:"container-member-rate",ref:"memberRateRoot"},s={key:0,class:"rates-text"},r={key:1,class:"rates-text member-rate-empty","aria-live":"polite"},l={class:"regular-rate-container"},c={class:"member-rate-container"},d={class:"member-rate-badge"},p={key:0,class:"member-rate-icon",focusable:"false"},u={key:1,class:"member-rate-icon"},m=["src"],h={class:"strikethrough-label"},g=["href"],f={class:"container-lead-rate-info"},b={key:0,class:"strikethrough-pricing"},w={class:"lead-rate-price"},v={class:"arrow-icon"},y={name:"DefaultMemberRate",components:{TailedArrowRightIcon:a(7163).A},props:{localesObjProp:{type:Object,default:()=>({})},showMemberRateBoolProp:{type:Boolean,default:!1},targetForMRM:{type:String,default:"#"},leadRate:String}};var k=a(6262);const x=(0,k.A)(y,[["render",function(e,t,a,n,i,s){const r=(0,o.g2)("glx-tc-lead-rate-value"),l=(0,o.g2)("glx-tc-lead-rate-member-value"),c=(0,o.g2)("tailed-arrow-right-icon");return(0,o.uX)(),(0,o.CE)("div",{class:(0,o.C4)(["container-default-member-rate btn",a.showMemberRateBoolProp?"btn-member-rate":"btn-regular-rate"])},[(0,o.Lk)("a",{href:a.targetForMRM},[(0,o.Lk)("div",f,[a.showMemberRateBoolProp?((0,o.uX)(),(0,o.CE)("div",b,[a.showMemberRateBoolProp?((0,o.uX)(),(0,o.Wv)(r,{key:0,class:"lead-rates-price lead-rates--bigger"})):(0,o.Q3)("v-if",!0)])):(0,o.Q3)("v-if",!0),(0,o.Lk)("div",w,[a.showMemberRateBoolProp?((0,o.uX)(),(0,o.Wv)(l,{key:1,class:"lead-rates-price lead-rates--bigger"})):((0,o.uX)(),(0,o.Wv)(r,{key:0,class:"lead-rates-price lead-rates--bigger"},{default:(0,o.k6)(()=>[(0,o.eW)((0,o.v_)(a.leadRate),1)],void 0,!0),_:1}))])]),(0,o.Lk)("div",v,[(0,o.bF)(c,{class:"arrow-right"})])],8,g)],2)}]]);var L=a(7884);const _={name:"MemberRateZoneApp",components:{DefaultMemberRate:x},props:{configs:{type:Object,required:!0}},setup(e){const t=""!==(0,L.o)("--member-rate-custom-logo")?(0,L.o)("--member-rate-custom-logo"):null,a=(0,o.KR)(null),n=(0,o.KR)("loading"),i=(0,o.KR)(!0);let s=null,r=null;const l=(0,o.EW)(()=>e.configs.targetForMRM?e.configs.targetForMRM:window.memberRateData?.[e.configs.blockId]?.targetForMRM||""),c=(0,o.EW)(()=>e.configs.iHotelierConfig?e.configs.iHotelierConfig:window.memberRateData?.[e.configs.blockId]?.iHotelierConfig||""),d=(0,o.EW)(()=>{const t=e.configs.leadRate||window.memberRateData?.[e.configs.blockId]?.leadRate||"";return String(t).trim()}),p=(0,o.EW)(()=>Boolean(c.value||d.value)),u=()=>{if(!p.value)return i.value=!1,n.value="empty",void(r&&(window.clearTimeout(r),r=null));const e=(t=a.value,t?.querySelector("glx-tc-lead-rate-value")?.textContent?.trim()||"");var t;const o=a.value?.querySelector("glx-tc-lead-rate-value"),s="true"===o?.getAttribute("data-has-member-rate");return i.value=s,e||d.value?(n.value="ready",void(r&&(window.clearTimeout(r),r=null))):(e=>{const t=Array.from(e?.querySelectorAll("glx-tc-lead-rate")||[]);return!!t.length&&t.some(e=>e.hasAttribute("data-empty"))})(a.value)?(n.value="empty",void(r&&(window.clearTimeout(r),r=null))):(n.value="loading",void(r||(r=window.setTimeout(()=>{"loading"===n.value&&(i.value=!1,n.value="empty"),r=null},7e3))))};return(0,o.sV)(()=>{u(),a.value&&(s=new MutationObserver(u),s.observe(a.value,{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["data-has-member-rate","data-empty"]}))}),(0,o.xo)(()=>{s?.disconnect(),r&&(window.clearTimeout(r),r=null)}),{showMemberRateBoolean:t,memberRateRoot:a,leadRateStatus:n,showMemberRateContainer:i,targetForMRM:l,iHotelierConfig:c,hasRateSource:p,fallbackLeadRateText:d}}},C=(0,k.A)(_,[["render",function(e,t,a,g,f,b){const w=(0,o.g2)("default-member-rate"),v=(0,o.g2)("glx-tc-lead-rate");return(0,o.uX)(),(0,o.CE)("div",{class:(0,o.C4)(["member-rate-shell",`is-${g.leadRateStatus}`]),"data-empty":"empty"===g.leadRateStatus?"true":null},[(0,o.Lk)("div",i,[g.hasRateSource&&"empty"!==g.leadRateStatus?((0,o.uX)(),(0,o.CE)("div",s,(0,o.v_)(a.c
1onfigs.localesObjProp?.ratesFrom),1)):(0,o.Q3)("v-if",!0),"empty"===g.leadRateStatus?((0,o.uX)(),(0,o.CE)("div",r,(0,o.v_)(a.configs.localesObjProp?.memberRateEmpty),1)):(0,o.Q3)("v-if",!0),(0,o.bo)((0,o.Lk)("div",{class:(0,o.C4)(["container-lead-rate",{"single-rate":!g.showMemberRateContainer}])},[(0,o.Lk)("div",l,[(0,o.bF)(v,{class:"m-content-object--footer-price lead-rates",config:g.iHotelierConfig},{default:(0,o.k6)(()=>[(0,o.bF)(w,{targetForMRM:g.targetForMRM,localesObjProp:a.configs.localesObjProp,leadRate:g.fallbackLeadRateText},null,8,["targetForMRM","localesObjProp","leadRate"])],void 0,!0),_:1},8,["config"])]),(0,o.bo)((0,o.Lk)("div",c,[(0,o.Lk)("div",d,[g.showMemberRateBoolean?((0,o.uX)(),(0,o.CE)("div",u,[(0,o.Lk)("img",{src:g.showMemberRateBoolean,alt:"Custom Member Rate Logo"},null,8,m)])):((0,o.uX)(),(0,o.CE)("svg",p,[...t[0]||(t[0]=[(0,o.Lk)("use",{href:"#reward-member-icon"},null,-1)])])),(0,o.Lk)("div",h,(0,o.v_)(a.configs.localesObjProp?.rewardProgramName),1)]),(0,o.bF)(v,{class:"m-content-object--footer-price lead-rates",config:g.iHotelierConfig},{default:(0,o.k6)(()=>[(0,o.bF)(w,{targetForMRM:g.targetForMRM,localesObjProp:a.configs.localesObjProp,showMemberRateBoolProp:!0,leadRate:g.fallbackLeadRateText},null,8,["targetForMRM","localesObjProp","leadRate"])],void 0,!0),_:1},8,["config"])],512),[[o.aG,g.showMemberRateContainer]])],2),[[o.aG,g.hasRateSource&&"empty"!==g.leadRateStatus]])],512)],10,n)}]])},9649(e,t,a){var o=a(3870);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals),(0,a(534).A)("27bd670e",o,!1,{})}}]);

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.