1"use strict";(self.tcthemejsonpFunction=self.tcthemejsonpFunction||[]).push([[7568,8599],{443(e,t,o){o.d(t,{A:()=>n});var i=o(1425);const a=["innerHTML"],s={name:"EmbedHTML",props:{code:String},computed:{getEmbedCode(){return this.code.replaceAll(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"")}}},n=(0,o(6262).A)(s,[["render",function(e,t,o,s,n,r){return(0,i.uX)(),(0,i.CE)("div",{innerHTML:r.getEmbedCode},null,8,a)}]])},8045(e,t,o){o.d(t,{A:()=>U});var i=o(1425);const a={key:0,class:"map__image fullsize-image"},s=["srcset"],n=["srcset"],r=["srcset"],l=["src","alt"],c=["src","alt"],d=["src","alt"],g={class:"google-map",ref:"googleMap"};var m=o(8972),p=o(7884);const h=function(e,t,o,i,a){const s=e.infoWindowContent,n=document.createElement("div"),r=`map-poi-${s.id}-${Date.now()}`,l="1"==(0,p.o)("--member-rate-enabled");return window.memberRateData||(window.memberRateData=[]),window.memberRateData[r]={iHotelierConfig:s.iHotelierConfig||"",leadRate:s.lead_rate||"",targetForMRM:s.booking_engine_url||""},n.innerHTML=`\n <div class="js-map-infowindow map__infowindow">\n ${!0===t.showCategories&&s.category?.name&&!1===t.showLinktoCategoriesPoiGrid?`\n <div class="map__infowindow__category link-text">${s.category.name}</div>\n `:""}\n ${!0===t.showCategories&&s.category?.name&&!0===t.showLinktoCategoriesPoiGrid&&t.categoriesPoiGridLink.length?`\n <a href="${t.categoriesPoiGridLink}" target="${t.categoriesPoiGridLinkTarget?"_blank":"_self"}" class="map__infowindow__category link-text">${s.category.name}</a>\n `:""}\n <div class="h3 map__infowindow__title">${s.name}</div>\n <div class="map__infowindow__content">\n ${1===s.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="${s.first_photo.url_standard}" alt="${s.first_photo.alt}">\n </picture>\n </div>\n </div>\n </div>\n `:""}\n <div \n class="map__infowindow__content__col map__infowindow__content__col--text" \n ${1===s.has_photo?'style="width:44%;"':'style="width:100%;"'}\n >\n <div class="cms-html-var" data-max-height="120">${s.short_description}</div>\n ${""!==s.url?`\n <a\n href="${s.url}"\n class="more-link"\n aria-label="${o.readMoreAbout} ${s.name}"\n ${""!==s.url&&s.external_link===s.url?'target="_blank"':""}\n >\n ${o.readMore}\n ${""!==s.url&&s.external_link===s.url?`<span class="sr-only"> ${o.opensInNewTab} </span>`:""}\n </a>\n `:""}\n </div>\n </div>\n <div class="info-price map__infowindow__price-line">\n ${!0===t.hotelCardRates&&(s.iHotelierConfig||s.lead_rate||s.rate?.length)?l?`\n <div class="js-member-rate-zone" id="member-rate-zone-${r}" style="display: block;"></div>\n `:`\n <div>\n <div class="lead-rates">${o.ratesFrom}\n <glx-tc-lead-rate config='${s.iHotelierConfig}'>\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">${s.lead_rate}</glx-tc-lead-rate-value>\n </glx-tc-lead-rate>\n </div>\n </div>\n `:""}\n\n ${""===s.booking_engine_url||void 0===s.booking_engine_url||l?"":`\n <div>\n <a \n href="${s.booking_engine_url}"\n class="btn ${"Primary"===t.button.style?"btn-primary":"Secondary"===t.button.style?"btn-secondary":"Action Custom"===t.button.style?"btn-custom":"Action"===t.button.style?"btn-action":"btn-ghost"}"\n rel="noopener" \n aria-label="${o.bookNow}"\n target=${0==s.is_be_open_in_same_tab?"_blank":"_self"}\n >\n ${t.button.text?t.button.text:o.bookNow}\n </a>\n </div>\n `}\n </div>\n </div>`,l&&a&&i&&setTimeout(()=>{const e=n.querySelector(`#member-rate-zone-${r}`);e&&a(i,{configs:{blockId:r,iHotelierConfig:s.iHotelierConfig||"",targetForMRM:s.booking_engine_url||"",localesObjProp:{rewardProgramName:o.memberRateLocales.rewardProgramName,ratesFrom:o.memberRateLocales.ratesFrom,memberRateEmpty:o.memberRateLocales.memberRateEmpty,lowestPriceLabel:o.memberRateLocales.lowestPriceLabel,memberPriceLabel:o.memberRateLocales.memberPriceLabel}}}).mount(e)},0),n},u={class:"js-map-infowindow map__infowindow"},b={class:"sr-only"},w={key:0,class:"map__infowindow__category"},f=["href","target"],v={class:"h3 map__infowindow__title"},_={key:2,class:"map__infowindow__content"},k={class:"map__infowindow__content__col map__infowindow__content__col--image"},y={class:"ratio-4-3"},S={class:"ratio-content"},M=["src","alt"],R={class:"map__infowindow__content__col map__infowindow__content__col--text"},C=["innerHTML"],L=["href","aria-label","target"],$={key:0,class:"sr-only"},x={class:"info-price map__infowindow__price-line"},P={key:0,class:"lead-rates member-rate-zone-container"},I={key:1,class:"lead-rates"},O={class:"lead-rates-price js-dynamic-rate"}
1,F={key:2};var W=o(3445),E=o(8012),T=o(2664),B=o(303),A=o(1016);const D={name:"InfoWindowSlideOut",components:{ButtonLink:W.A,CloseIcon:T.A,MemberRateZoneApp:A.default},mixins:[E.A],props:{locales:{type:Object},mapSettings:{type:Object},item:{type:Object},parentRefs:{type:Object}},data:()=>({infoSlideOutState:"close",showMemberRateBoolean:"1"==(0,p.o)("--member-rate-enabled")}),watch:{"$store.state.selectedInfoWindow":async function(){this.infoSlideOutState="close",setTimeout(()=>{this.infoSlideOutState="open"},300)}},computed:{showCategoryWithOutLink(){return!0===this.mapSettings.showCategories&&this.item.category?.name&&!1===this.mapSettings.showLinktoCategoriesPoiGrid},showCategoryWithLink(){return!0===this.mapSettings.showCategories&&this.item.category?.name&&!0===this.mapSettings.showLinktoCategoriesPoiGrid&&this.mapSettings.categoriesPoiGridLink.length},getSideOutState(){return this.infoSlideOutState},getCategoryTarget(){return this.mapSettings.categoriesPoiGridLinkTarget?"_blank":"_self"},hasPhoto(){return 1===this.item.has_photo},hasUrl(){return""!==this.item.url},urlTarget(){return""!==this.item.url&&this.item.external_link===this.item.url?"_blank":"_self"},hasRates(){return!0===this.mapSettings.hotelCardRates&&this.item.rate?.length},hasBookingUrl(){return!!("poi"!==this.item.type&&(this.mapSettings.button.enabled&&""!==this.item.booking_engine_url&&void 0!==this.item.booking_engine_url||this.mapSettings.button.enabled&&""!==this.mapSettings.button.url))},getButtonUrl(){return this.mapSettings.button.url.length?this.mapSettings.button.url:this.item.booking_engine_url},bookingUrlTarget(){return this.mapSettings.button.urlTarget||0==this.item.is_be_open_in_same_tab?"_blank":"_self"},bookingButtonText(){return this.mapSettings.button.text.length>0?this.mapSettings.button.text:this.locales.bookNow},readMoreAriaLabel(){return`${this.locales.readMoreAbout} ${this.item.name}`},readMoreSROnly(){return""!==this.item.url&&this.item.external_link===this.item.url}},methods:{closeInfo(){this.infoSlideOutState="close","mobile"===this.deviceByBreakPoints()&&(this.parentRefs.googleMap.style.height="520px",this.$store.getters.getGoogle.maps.event.trigger(this.$store.getters.getMap,"resize"))},getTitleName(){return(0,B.A)(this.item.name,38,{html:!0,maxLines:2})},getDescription(){return"mobile"===this.deviceByBreakPoints()?(0,B.A)(this.item.short_description,100,{html:!0,maxLines:2}):this.item.short_description}},mounted(){this.$nextTick(function(){setTimeout(()=>{this.infoSlideOutState="open"},300)})}};var H=o(6262);const G=(0,H.A)(D,[["render",function(e,t,o,a,s,n){const r=(0,i.g2)("close-icon"),l=(0,i.g2)("member-rate-zone-app"),c=(0,i.g2)("button-link");return(0,i.uX)(),(0,i.CE)("div",{class:(0,i.C4)(["info-window-slide-out",n.getSideOutState])},[(0,i.Lk)("div",u,[(0,i.Lk)("button",{class:"btn-link link-transparent close-info",onClick:t[0]||(t[0]=(...e)=>n.closeInfo&&n.closeInfo(...e))},[(0,i.bF)(r,{class:"icon"}),(0,i.Lk)("span",b,(0,i.v_)(o.locales.closeBtn),1)]),n.showCategoryWithOutLink?((0,i.uX)(),(0,i.CE)("div",w,(0,i.v_)(o.item.category.name),1)):(0,i.Q3)("v-if",!0),n.showCategoryWithLink?((0,i.uX)(),(0,i.CE)("a",{key:1,href:o.mapSettings.categoriesPoiGridLink,target:n.getCategoryTarget,class:"map__infowindow__category link-text"},(0,i.v_)(o.item.category.name),9,f)):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",v,(0,i.v_)(n.getTitleName()),1),n.hasPhoto?((0,i.uX)(),(0,i.CE)("div",_,[(0,i.Lk)("div",k,[(0,i.Lk)("div",y,[(0,i.Lk)("div",S,[(0,i.Lk)("picture",null,[(0,i.Lk)("img",{src:o.item.first_photo.url_standard,alt:o.item.first_photo.alt},null,8,M)])])])]),(0,i.Lk)("div",R,[(0,i.Lk)("div",{class:"cms-html-var",innerHTML:n.getDescription()},null,8,C),n.hasUrl?((0,i.uX)(),(0,i.CE)("a",{key:0,href:o.item.url,class:"more-link","aria-label":n.readMoreAriaLabel,target:n.urlTarget},[(0,i.eW)((0,i.v_)(o.locales.readMore)+" ",1),n.readMoreSROnly?((0,i.uX)(),(0,i.CE)("span",$,(0,i.v_)(o.locales.opensInNewTab),1)):(0,i.Q3)("v-if",!0)],8,L)):(0,i.Q3)("v-if",!0)])])):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",x,[e.showMemberRateBoolean&&n.hasRates?((0,i.uX)(),(0,i.CE)("div",P,[(0,i.bF)(l,{configs:{iHotelierConfig:o.item.iHotelierConfig,localesObjProp:o.locales.memberRateLocales,targetForMRM:o.item.booking_engine_url||o.mapSettings.button.url}},null,8,["configs"])])):(0,i.Q3)("v-if",!0),n.hasRates&&!e.showMemberRateBoolean?((0,i.uX)(),(0,i.CE)("div",I,[(0,i.eW)((0,i.v_)(o.locales.ratesFrom),1),(0,i.Lk)("span",O,(0,i.v_)(o.item.rate),
11)])):(0,i.Q3)("v-if",!0),n.hasBookingUrl&&!e.showMemberRateBoolean?((0,i.uX)(),(0,i.CE)("div",F,[(0,i.bF)(c,{type:"link-only",linkData:{title:n.bookingButtonText,style:o.mapSettings.button.style,href:n.getButtonUrl,ariaLabel:o.locales.bookNow,target:n.bookingUrlTarget},rel:"noopener"},null,8,["linkData"])])):(0,i.Q3)("v-if",!0)])])],2)}]]);var X=o(5589),j=o(9650),z=o(4692);const{isNullOrUndefined:Q}=m._0,{fireEvent:N}=m.Wp,Z={name:"MapWithDirections",components:{InfoWindowSlideOut:G,MemberRateZone:A.default},mixins:[E.A],props:{markers:Array,mapSettings:Object,locales:Object,selectedHotel:Object},data:()=>({selectedInfoWindow:null,selectedInfoWindowLoaded:!1,showPlaceHolder:!0}),watch:{"$store.state.destinationMarker":async function(){"mobile"===this.deviceByBreakPoints()&&(this.$refs.googleMap.style.height="270px",await this.$store.getters.getGoogle.maps.event.trigger(this.$store.getters.getMap,"resize")),this.setRoute()},"$store.state.google":function(){if(this.$store.state.google){const e=new this.$store.getters.getGoogle.maps.LatLngBounds;this.$store.dispatch("setBounds",e),this.initializeMap()}},"$store.state.map":async function(){await this.setMarkers(),this.bindMapEvents()},"$store.state.selectedInfoWindow":async function(){const e=this.$store.getters.getMap,t=this.$store.getters.getSelectedInfoWindow;this.mapSettings.showDirections||this.mapSettings.showFixedPopup?(this.selectedInfoWindow=t.infowindow.infoWindowContent,this.selectedInfoWindowLoaded=!0):(this.selectedInfoWindow=t.infowindow,this.selectedInfoWindow.open(e,t.marker)),this.mapSettings.showDirections||(e.setCenter(t.marker.getPosition()),e.setZoom(16))}},methods:{bindMapEvents(){const{event:e}=this.$store.getters.getGoogle.maps,t=this.$store.getters.getMap;e.addListenerOnce(t,"bounds_changed",()=>{(this.hasCustomZoom()||t.getZoom()>20)&&t.setZoom(this.getZoom())})},loadMaps(){this.showPlaceHolder=!1,this.initGoogleMaps()},hasCustomZoom(){return"fit map bounds to markers"!==this.mapSettings.zoom},getZoom(){return 0===this.mapSettings.zoom.length?16:"fit map bounds to markers"!==this.mapSettings.zoom?parseInt(this.mapSettings.zoom):void 0},hasCenter(){return!("center map on main item"!==this.mapSettings.center||!this.mapSettings.websiteLatitude.length||!this.mapSettings.websiteLongitude.length)||!("center map on main item"!==this.mapSettings.center||!this.selectedHotel?.lat?.length||!this.selectedHotel?.lng?.length)},getCenter(){return this.selectedHotel?.lat&&this.selectedHotel?.lng?{lat:parseFloat(this.selectedHotel.lat),lng:parseFloat(this.selectedHotel.lng)}:{lat:parseFloat(this.mapSettings.websiteLatitude),lng:parseFloat(this.mapSettings.websiteLongitude)}},mapConfig(){let e={zoom:this.getZoom(),minZoom:1.5,styles:window.googleMapStyle,repeat:0,disableDefaultUI:!0,panControl:!1,zoomControl:!0,mapTypeControl:!1,scaleControl:!1,streetViewControl:!1,overviewMapControl:!1,rotateControl:!1};return this.hasCenter()&&(e.center=this.getCenter()),e},initializeMap(){const{DirectionsRenderer:e,DirectionsService:t,Map:o}=this.$store.getters.getGoogle.maps;this.map=new o(this.$refs.googleMap,this.mapConfig()),this.mapSettings.showDirections&&(this.directionsService=new t,this.directionsDisplay=new e({map:this.map,suppressMarkers:!0}),this.mapSettings.routeColor.length&&this.directionsDisplay.setOptions({polylineOptions:{strokeColor:this.mapSettings.routeColor,strokeWeight:6}})),this.$store.dispatch("setMap",this.map)},setRoute(){const{DirectionsStatus:e,TravelMode:t,LatLng:o}=this.$store.state.google.maps,i=this.$store.getters.getOriginMarker,a=this.$store.getters.getDestinationMarker;if(Q(i)&&Q(a))return;let s=new o(parseFloat(i.lat),parseFloat(i.lng)),n=new o(parseFloat(a.lat),parseFloat(a.lng));this.directionsService.route({origin:s,destination:n,avoidTolls:!0,avoidHighways:!1,travelMode:t.WALKING},function(t,o){o==e.OK?this.directionsDisplay.setDirections(t):window.alert("Directions request failed due to "+o)}.bind(this))},setMarkers(){this.$store.getters.getMap&&(this.markers.map(e=>{this.buildMarker(e)}),this.setMapBounds())},buildMarker(e){const{Marker:t}=this.$store.getters.getGoogle.maps,o=this.$store.getters.getMap;let i=new t({position:e.position,map:o,title:e.title,icon:this.getIcon(e.type,e.customIcon),categoryId:e.category_id});"hotel"===e.type&&(this.$store.dispatch("setOriginMarker",e.position),!e.iHotelierConfig&&window.memberRateData&&window.memberRateData[this.mapSettings.blockId]&&(e.iHotelierConfig=window.memberRateData[this.mapSettings.blockId].iHotelierConfig));let a=null;a=this.mapSettings.showDirections||this.mapSettings.showFixedPopup?e:this.buildInfoWindow(e),this.markerEvents(i,e,a),this.addMarkerToMapBounds(e)},markerEvents(e,t,o){const{event:i}=this.$store.getters.getGoogle.maps;i.addListener(e,"click",function(){"poi"===t.type&&this.mapSettings.showDirections&&this.$store.dispatch("setDestinationMarker",t.position);const i=this.$store.getters.getSelectedInfoWindow;this.mapSettings.showDirections||this.mapSettings.showFixedPopup||!i||i.infowindow.close(),this.$store.dispatch("setSelectedInfoWindow",{infowindow:o,marker:e})}.bind(this)),i.addListener(o,"domready",function(){let e=o.content_;z(document).trigger("openMapInfowindow",o.content_),(0,j.A)(e),z(e).on("click","a",function(){this.href=(0,m.D8)(this.href),N("event.clickToBE.bookOnMaps",z(this))})})},addMarkerToMapBounds(e){const{LatLng:t}=this.$store.getters.getGoogle.maps;this.$store.getters.getBounds.extend(new t(parseFloat(e.position.lat),parseFloat(e.position.lng)))},buildInfoWindow(e){const t=this.$store.getters.getGoogle.maps,{Size:o}=t;let a=window.innerWidth<1200?300:450,s=new o(-a/2,-60);return new X.A({content:h(e,this.mapSettings,this.locales,A.default,i.Ef),alignBottom:!0,gMap:t,pixelOffset:s,closeBoxURL:"/integration/tc-theme/public/img/close.svg",maxWidth:a,boxStyle:{overflow:"inherit",width:window.innerWidth<1200?"300px":"450px"}})},getIcon(e,t){const{Point:o,Size:i}=this.$store.getters.getGoogle.maps;return"hotel"===e?{url:t?.length?t:"/integration/tc-theme/public/img/marker_full.svg",size:new i(30,40),origin:new o(0,0),anchor:new o(15,40),scaledSize:new i(30,40)}:{url:t?.length?t:"/integration/tc-theme/public/img/poi-default.svg",size:new i(24,32),origin:new o(0,0),anchor:new o(12,32),scaledSize:new i(24,32)}},setMapBounds(){if(!this.hasCenter()||"fit map bounds to markers"===this.mapSettings.zoom){const e=this.$store.getters.getMap,{event:t}=this.$store.getters.getGoogle.maps;t.addListenerOnce(e,"idle",()=>{e.fitBounds(this.$store.getters.getBounds)})}},initGoogleMaps(){window&&!window.GoogleAPIs&&m.TY.init(),window&&window.GoogleAPIs&&window.GoogleAPIs.addMapsScriptToPage(function(){this.google=window.google,this.$store.dispatch("setGoogle",this.google)}.bind(this))}},computed:{showInfoSlideOut(){return(this.mapSettings.showDirections||this.mapSettings.showFixedPopup)&&this.selectedInfoWindowLoaded},contentWidth(){return this.mapSettings.isFullWidth?"":"container"},cssProps(){let e="";return this.mapSettings.height.length&&(e=`${this.mapSettings.height}px`),{"--map-block-height":e}}},async mounted(){this.mapSettings.placeholder.enabled||(this.showPlaceHolder=!1,this.initGoogleMaps())}},U=(0,H.A)(Z,[["render",function(e,t,o,m,p,h){const u=(0,i.g2)("info-window-slide-out");return(0,i.uX)(),(0,i.CE)("div",{class:(0,i.C4)(["map-block-wrapper",h.contentWidth]),ref:"googleMapWrapper",style:(0,i.Tr)(h.cssProps)},[e.showPlaceHolder?((0,i.uX)(),(0,i.CE)("button",{key:0,class:"map-placeholder",onClick:t[0]||(t[0]=(...e)=>h.loadMaps&&h.loadMaps(...e))},[o.mapSettings.placeholder.enabled?((0,i.uX)(),(0,i.CE)("picture",a,[o.mapSettings.placeholder.mobileImage.length?((0,i.uX)(),(0,i.CE)("source",{key:0,media:"(max-width: 767px)",srcset:o.mapSettings.placeholder.mobileImage},null,8,s)):(0,i.Q3)("v-if",!0),o.mapSettings.placeholder.tabletImage.length?((0,i.uX)(),(0,i.CE)("source",{key:1,media:"(max-width: 1199px)",srcset:o.mapSettings.placeholder.tabletImage},null,8,n)):(0,i.Q3)("v-if",!0),o.mapSettings.placeholder.desktopImage.length?((0,i.uX)(),(0,i.CE)("source",{key:2,media:"(min-width: 1200px)",srcset:o.mapSettings.placeholder.desktopImage},null,8,r)):(0,i.Q3)("v-if",!0),""!==o.mapSettings.placeholder.desktopImage?((0,i.uX)(),(0,i.CE)("img",{key:3,loading:"lazy",src:o.mapSettings.placeholder.desktopImage,alt:o.mapSettings.placeholder.desktopAlt},null,8,l)):""!==o.mapSettings.placeholder.tabletImage?((0,i.uX)(),(0,i.CE)("img",{key:4,loading:"lazy",src:o.mapSettings.placeholder.tabletImage,alt:o.mapSettings.placeholder.tabletAlt},null,8,c)):((0,i.uX)(),(0,i.CE)("img",{key:5,loading:"lazy",src:o.mapSettings.placeholder.mobileImage,alt:o.mapSettings.placeholder.mobileAlt},null,8,d))])):(0,i.Q3)("v-if",!0)])):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",g,null,512),h.showInfoSlideOut?((0,i.uX)(),(0,i.Wv)(u,{key:1,mapSettings:o.mapSettings,parentRefs:e.$refs,locales:o.locales,item:e.selectedInfoWindow},null,8,["mapSettings","parentRefs","locales","item"])):(0,i.Q3)("v-if",!0)],6)}]])},1016(e,t,o){o.r(t),o.d(t,{default:()=>R});var i=o(1425);const a=["data-empty"],s={class:"container-member-rate",ref:"memberRateRoot"},n={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"},g={key:0,class:"member-rate-icon",focusable:"false"},m={key:1,class:"member-rate-icon"},p=["src"],h={class:"strikethrough-label"},u=["href"],b={class:"container-lead-rate-info"},w={key:0,class:"strikethrough-pricing"},f={class:"lead-rate-price"},v={class:"arrow-icon"},_={name:"DefaultMemberRate",components:{TailedArrowRightIcon:o(6305).A},props:{localesObjProp:{type:Object,default:()=>({})},showMemberRateBoolProp:{type:Boolean,default:!1},targetForMRM:{type:String,default:"#"},leadRate:String}};var k=o(6262);const y=(0,k.A)(_,[["render",function(e,t,o,a,s,n){const r=(0,i.g2)("glx-tc-lead-rate-value"),l=(0,i.g2)("glx-tc-lead-rate-member-value"),c=(0,i.g2)("tailed-arrow-right-icon");return(0,i.uX)(),(0,i.CE)("div",{class:(0,i.C4)(["container-default-member-rate btn",o.showMemberRateBoolProp?"btn-member-rate":"btn-regular-rate"])},[(0,i.Lk)("a",{href:o.targetForMRM},[(0,i.Lk)("div",b,[o.showMemberRateBoolProp?((0,i.uX)(),(0,i.CE)("div",w,[o.showMemberRateBoolProp?((0,i.uX)(),(0,i.Wv)(r,{key:0,class:"lead-rates-price lead-rates--bigger"})):(0,i.Q3)("v-if",!0)])):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",f,[o.showMemberRateBoolProp?((0,i.uX)(),(0,i.Wv)(l,{key:1,class:"lead-rates-price lead-rates--bigger"})):((0,i.uX)(),(0,i.Wv)(r,{key:0,class:"lead-rates-price lead-rates--bigger"},{default:(0,i.k6)(()=>[(0,i.eW)((0,i.v_)(o.leadRate),1)],void 0,!0),_:1}))])]),(0,i.Lk)("div",v,[(0,i.bF)(c,{class:"arrow-right"})])],8,u)],2)}]]);var S=o(7884);const M={name:"MemberRateZoneApp",components:{DefaultMemberRate:y},props:{configs:{type:Object,required:!0}},setup(e){const t=""!==(0,S.o)("--member-rate-custom-logo")?(0,S.o)("--member-rate-custom-logo"):null,o=(0,i.KR)(null),a=(0,i.KR)("loading"),s=(0,i.KR)(!0);let n=null,r=null;const l=(0,i.EW)(()=>e.configs.targetForMRM?e.configs.targetForMRM:window.memberRateData?.[e.configs.blockId]?.targetForMRM||""),c=(0,i.EW)(()=>e.configs.iHotelierConfig?e.configs.iHotelierConfig:window.memberRateData?.[e.configs.blockId]?.iHotelierConfig||""),d=(0,i.EW)(()=>{const t=e.configs.leadRate||window.memberRateData?.[e.configs.blockId]?.leadRate||"";return String(t).trim()}),g=(0,i.EW)(()=>Boolean(c.value||d.value)),m=()=>{if(!g.value)return s.value=!1,a.value="empty",void(r&&(window.clearTimeout(r),r=null));const e=(t=o.value,t?.querySelector("glx-tc-lead-rate-value")?.textContent?.trim()||"");var t;const i=o.value?.querySelector("glx-tc-lead-rate-value"),n="true"===i?.getAttribute("data-has-member-rate");return s.value=n,e||d.value?(a.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"))})(o.value)?(a.value="empty",void(r&&(window.clearTimeout(r),r=null))):(a.value="loading",void(r||(r=window.setTimeout(()=>{"loading"===a.value&&(s.value=!1,a.value="empty"),r=null},7e3))))};return(0,i.sV)(()=>{m(),o.value&&(n=new MutationObserver(m),n.observe(o.value,{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["data-has-member-rate","data-empty"]}))}),(0,i.xo)(()=>{n?.disconnect(),r&&(window.clearTimeout(r),r=null)}),{showMemberRateBoolean:t,memberRateRoot:o,leadRateStatus:a,showMemberRateContainer:s,targetForMRM:l,iHotelierConfig:c,hasRateSource:g,fallbackLeadRateText:d}}},R=(0,k.A)(M,[["render",function(e,t,o,u,b,w){const f=(0,i.g2)("default-member-rate"),v=(0,i.g2)("glx-tc-lead-rate");return(0,i.uX)(),(0,i.CE)("div",{class:(0,i.C4)(["member-rate-shell",`is-${u.leadRateStatus}`]),"data-empty":"empty"===u.leadRateStatus?"true":null},[(0,i.Lk)("div",s,[u.hasRateSource&&"empty"!==u.leadRateStatus?((0,i.uX)(),(0,i.CE)("div",n,(0,i.v_)(o.configs.localesObjProp?.ratesFrom),1)):(0,i.Q3)("v-if",!0),"empty"===u.leadRateStatus?((0,i.uX)(),(0,i.CE)("div",r,(0,i.v_)(o.configs.localesObjProp?.memberRateEmpty),1)):(0,i.Q3)("v-if",!0),(0,i.bo)((0,i.Lk)("div",{class:(0,i.C4)(["container-lead-rate",{"single-rate":!u.showMemberRateContainer}])},[(0,i.Lk)("div",l,[(0,i.bF)(v,{class:"m-content-object--footer-price lead-rates",config:u.iHotelierConfig},{default:(0,i.k6)(()=>[(0,i.bF)(f,{targetForMRM:u.targetForMRM,localesObjProp:o.configs.localesObjProp,leadRate:u.fallbackLeadRateText},null,8,["targetForMRM","localesObjProp","leadRate"])],void 0,!0),_:1},8,["config"])]),(0,i.bo)((0,i.Lk)("div",c,[(0,i.Lk)("div",d,[u.showMemberRateBoolean?((0,i.uX)(),(0,i.CE)("div",m,[(0,i.Lk)("img",{src:u.showMemberRateBoolean,alt:"Custom Member Rate Logo"},null,8,p)])):((0,i.uX)(),(0,i.CE)("svg",g,[...t[0]||(t[0]=[(0,i.Lk)("use",{href:"#reward-member-icon"},null,-1)])])),(0,i.Lk)("div",h,(0,i.v_)(o.configs.localesObjProp?.rewardProgramName),1)]),(0,i.bF)(v,{class:"m-content-object--footer-price lead-rates",config:u.iHotelierConfig},{default:(0,i.k6)(()=>[(0,i.bF)(f,{targetForMRM:u.targetForMRM,localesObjProp:o.configs.localesObjProp,showMemberRateBoolProp:!0,leadRate:u.fallbackLeadRateText},null,8,["targetForMRM","localesObjProp","leadRate"])],void 0,!0),_:1},8,["config"])],512),[[i.aG,u.showMemberRateContainer]])],2),[[i.aG,u.hasRateSource&&"empty"!==u.leadRateStatus]])],512)],10,a)}]])}}]);
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.