1"use strict";(self.tcthemejsonpFunction=self.tcthemejsonpFunction||[]).push([[826],{3106(e,t,o){o.r(t),o.d(t,{default:()=>g});var a=o(1425);const i={class:"container"};var n=o(2637),s=o(8434),l=o(8181),c=o(4208),d=o(443),r=o(8012);const p={name:"MapOnlyApp",mixins:[n.A,r.A],components:{BlockWrapper:s.A,IntroductionApp:c.default,MapWithDirections:l.A,EmbedHTML:d.A},props:{configs:{type:Object,required:!0}},setup(e){const t=(0,a.KR)(null),o=(0,a.KR)(null),i=(0,a.KR)(!0),n=(0,a.KR)(!0),s=(0,a.KR)(!0),l=(0,a.KR)({}),c=(0,a.KR)([]),d=(0,a.EW)(()=>window.mapSettings[e.configs.blockId]||{}),r=(0,a.EW)(()=>window.locales[e.configs.blockId]||{}),p=(0,a.EW)(()=>window.staticMapEmbedCode[e.configs.blockId]||"");return{hotelsInfo:t,poisInfo:o,isLoadingHotels:i,isLoadingPois:n,isLoadingMarkers:s,selectedHotel:l,markers:c,mapSettings:d,getLocales:r,getStaticMapEmbedCode:p,collectHotelMarker:()=>{t.value.map(t=>{if(t.latitude&&t.longitude){const o=parseFloat(t.latitude),a=parseFloat(t.longitude);o&&a&&(t.type="hotel",c.value.push({position:{lat:o,lng:a},optimized:!1,title:t.name,type:"hotel",categoryId:0,customIcon:t.map_direction_logo_url,infoWindowContent:t}),t.id===parseInt(e.configs.selectedHotelId)&&(l.value={lat:o,lng:a}))}})},collectPoiMarker:()=>{d.value?.showPoi&&o.value.map(e=>{if(e.latitude&&e.longitude){const t=parseFloat(e.latitude),o=parseFloat(e.longitude);t&&o&&(e.type="poi",c.value.push({position:{lat:t,lng:o},optimized:!1,title:e.name,type:"poi",categoryId:parseInt(e.category.id),customIcon:e.category.pin,infoWindowContent:e}))}})}}},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(e,t,o,n,s,l){const c=(0,a.g2)("IntroductionApp"),d=(0,a.g2)("map-with-directions"),r=(0,a.g2)("EmbedHTML"),p=(0,a.g2)("block-wrapper");return!n.isLoadingHotels&&n.getLocales?((0,a.uX)(),(0,a.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,a.k6)(()=>[(0,a.Lk)("div",i,[o.configs.showIntro?((0,a.uX)(),(0,a.Wv)(c,{key:0,blockId:o.configs.blockId,locales:{opensInNewTab:n.getLocales.opensInNewTab},class:"container"},null,8,["blockId","locales"])):(0,a.Q3)("v-if",!0)]),n.isLoadingMarkers||"Dynamic Map"!=n.mapSettings.type?((0,a.uX)(),(0,a.Wv)(r,{key:1,class:"static-map",code:n.getStaticMapEmbedCode},null,8,["code"])):((0,a.uX)(),(0,a.Wv)(d,{key:0,mapSettings:n.mapSettings,markers:n.markers,locales:n.getLocales,selectedHotel:n.selectedHotel},null,8,["mapSettings","markers","locales","selectedHotel"]))],void 0,!0),_:1},8,["blockStyles","anchorId","data-header-id"])):(0,a.Q3)("v-if",!0)}]])}}]);
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.