1"use strict";(self.tcthemejsonpFunction=self.tcthemejsonpFunction||[]).push([[826],{3681(t,e,o){o.r(e),o.d(e,{default:()=>g});var i=o(1425);const s={class:"container"};var a=o(2637),n=o(8434),l=o(890),c=o(447),d=o(2709),r=o(8012);const p={name:"MapOnlyApp",mixins:[a.A,r.A],components:{BlockWrapper:n.A,IntroductionApp:c.default,MapWithDirections:l.A,EmbedHTML:d.A},props:{configs:Object,locales:Object},data:()=>({hotelsInfo:null,poisInfo:null,isLoadingHotels:!0,isLoadingPois:!0,isLoadingMarkers:!0,selectedHotel:{},markers:[]}),computed:{getStaticMapEmbedCode(){return window.staticMapEmbedCode[this.configs.blockId]||""}},methods:{collectHotelMarker(){this.hotelsInfo.map(t=>{if(t.latitude&&t.longitude){const e=parseFloat(t.latitude),o=parseFloat(t.longitude);e&&o&&(t.type="hotel",this.markers.push({position:{lat:e,lng:o},optimized:!1,title:t.name,type:"hotel",categoryId:0,customIcon:t.map_direction_logo_url,infoWindowContent:t}),t.id===parseInt(this.configs.selectedHotelId)&&(this.selectedHotel={lat:e,lng:o}))}})},collectPoiMarker(){this.configs.mapSettings.showPoi&&this.poisInfo.map(t=>{if(t.latitude&&t.longitude){const e=parseFloat(t.latitude),o=parseFloat(t.longitude);e&&o&&(t.type="poi",this.markers.push({position:{lat:e,lng:o},optimized:!1,title:t.name,type:"poi",categoryId:parseInt(t.category.id),customIcon:t.category.pin,infoWindowContent:t}))}})}},async created(){await this.fetchDynamicHotelsData(),await this.fetchDynamicPoisData(),await this.collectHotelMarker(),await this.collectPoiMarker(),this.isLoadingMarkers=!1}},g=(0,o(6262).A)(p,[["render",function(t,e,o,a,n,l){const c=(0,i.g2)("IntroductionApp"),d=(0,i.g2)("map-with-directions"),r=(0,i.g2)("EmbedHTML"),p=(0,i.g2)("block-wrapper");return t.isLoadingHotels?(0,i.Q3)("v-if",!0):((0,i.uX)(),(0,i.Wv)(p,{key:0,classList:"stripe-default-padding one-pager-single-slider-item",blockStyles:{textColor:o.configs.blockStyles.textColor,textAlign:o.configs.blockStyles.textAlignment,backgroundSettings:o.configs.blockStyles.backgroundSettings,paddingSettings:o.configs.blockStyles.paddingSettings},anchorId:o.configs.anchorId,"data-header-id":o.configs.anchorId},{default:(0,i.k6)(()=>[(0,i.Lk)("div",s,[o.configs.showIntro?((0,i.uX)(),(0,i.Wv)(c,{key:0,blockId:o.configs.blockId,locales:{opensInNewTab:o.locales.opensInNewTab},class:"container"},null,8,["blockId","locales"])):(0,i.Q3)("v-if",!0)]),t.isLoadingMarkers||"Dynamic Map"!=o.configs.mapSettings.type?((0,i.uX)(),(0,i.Wv)(r,{key:1,class:"static-map",code:l.getStaticMapEmbedCode},null,8,["code"])):((0,i.uX)(),(0,i.Wv)(d,{key:0,mapSettings:o.configs.mapSettings,markers:t.markers,locales:o.locales,selectedHotel:t.selectedHotel},null,8,["mapSettings","markers","locales","selectedHotel"]))],void 0,!0),_:1},8,["blockStyles","anchorId","data-header-id"]))}]])}}]);
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.