PageSourceSearch

https://www.blairhotels.com/integration/tc-theme/public/js/chunk/one-pager-hero-205e8f60fc804da2bc3b.js

js blairhotels.com collected 2026-09-30 15:59:45 UTC 23,039 bytes, 1 lines download raw bytes

1"use strict";(self.tcthemejsonpFunction=self.tcthemejsonpFunction||[]).push([[5216],{2766(e,t,o){o.r(t),o.d(t,{default:()=>K});var i=o(1425);const n={key:0,class:"m-hero--top__overlay"},s=["data-text-alignment"],l=["data-autoplay"],a={key:0,id:"bm-horizontal-below-hero"},r={class:"m-hero--slide"},c={class:"ratio-content unit-media","aria-hidden":"true"},d=["innerHTML"],h={key:1,class:"video-background"},g=["innerHTML"],u={name:"HeroVideo",props:{item:{type:Object}},data:()=>({classList:""}),methods:{setClasses(){if(""!==this.item.video&&""!==this.item.videoTablet&&""!==this.item.videoMobile)return"has-all-videos";{let e="";return""!==this.item.video&&(e+=" has-desktop"),""!==this.item.videoTablet&&(e+=" has-tablet"),""!==this.item.videoMobile&&(e+=" has-mobile"),e}}}};var m=o(6262);const p=(0,m.A)(u,[["render",function(e,t,o,n,s,l){return(0,i.uX)(),(0,i.CE)("div",{class:(0,i.C4)(["m-hero__media",l.setClasses()])},[(0,i.Lk)("div",c,["1"===o.item.is_tvs?((0,i.uX)(),(0,i.CE)("div",{key:0,innerHTML:o.item.video},null,8,d)):((0,i.uX)(),(0,i.CE)("div",h,[(0,i.Lk)("div",{class:"video-foreground not-tvs",innerHTML:o.item.video},null,8,g)]))])],2)}]]),f={class:"m-hero__media"},b=["srcset"],k=["srcset"],v=["srcset"],y=["data-lazy","alt"],C={name:"HeroImage",props:{item:{type:Object}}},L=(0,m.A)(C,[["render",function(e,t,o,n,s,l){return(0,i.uX)(),(0,i.CE)("div",f,[(0,i.Lk)("picture",null,[""!==o.item.photoMobile?((0,i.uX)(),(0,i.CE)("source",{key:0,media:"(max-width: 767px)",srcset:o.item.photoMobile},null,8,b)):(0,i.Q3)("v-if",!0),""!==o.item.photoTablet?((0,i.uX)(),(0,i.CE)("source",{key:1,media:"(max-width: 1199px)",srcset:o.item.photoTablet},null,8,k)):(0,i.Q3)("v-if",!0),""!==o.item.photo?((0,i.uX)(),(0,i.CE)("source",{key:2,media:"(max-width: 767px)",srcset:o.item.photo},null,8,v)):(0,i.Q3)("v-if",!0),""!==o.item.photo?((0,i.uX)(),(0,i.CE)("img",{key:3,"data-lazy":o.item.photo,alt:o.item.photoTitle,src:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},null,8,y)):(0,i.Q3)("v-if",!0)])])}]]),M={class:"m-hero--content banner-content"},S={class:"container"},x=["src","alt"],A={name:"HeroContentBannerImage",props:{configs:{type:Object},image:{type:Object}},computed:{getClassPosition(){return this.image.imagePosition}}},w={components:{HeroContentBannerImage:(0,m.A)(A,[["render",function(e,t,o,n,s,l){return(0,i.uX)(),(0,i.CE)("div",{class:(0,i.C4)(["banner",l.getClassPosition])},[(0,i.Lk)("img",{src:o.image.url,alt:o.image.url},null,8,x)],2)}]])},name:"HeroContentBanner",props:{configs:{type:Object},content:{type:Object}},methods:{getWrapperClasses(){let e="";return this.content.banner.enabled&&(e+=" banner-wrapper"),(this.content.title||this.content.subtitle)&&(e+=" image-only"),e}},computed:{isImageLeft(){return this.content.banner.image.enabled&&"left"===this.content.banner.image.imagePosition},isImageRight(){return this.content.banner.image.enabled&&"right"===this.content.banner.image.imagePosition}}},T=(0,m.A)(w,[["render",function(e,t,o,n,s,l){const a=(0,i.g2)("hero-content-banner-image");return(0,i.uX)(),(0,i.CE)("div",{class:(0,i.C4)(["m-hero--content__wrapper",l.getWrapperClasses()])},[l.isImageLeft?((0,i.uX)(),(0,i.Wv)(a,{key:0,configs:o.configs,image:o.content.banner.image},null,8,["configs","image"])):(0,i.Q3)("v-if",!0),(0,i.RG)(e.$slots,"default"),l.isImageRight?((0,i.uX)(),(0,i.Wv)(a,{key:1,configs:o.configs,image:o.content.banner.image},null,8,["configs","image"])):(0,i.Q3)("v-if",!0)],2)}]]),_={class:"hero-title m-hero--content-title",role:"heading","aria-level":"1"},H={class:"m-hero--content-subtitle hero-subtitle",role:"heading","aria-level":"1"},I={class:"m-hero--content-text hero-text",role:"heading","aria-level":"1"},E={components:{ButtonLink:o(3445).A},name:"HeroContentSimple",props:{configs:{type:Object},content:{type:Object}}},X={components:{HeroContentBanner:T,HeroContentSimple:(0,m.A)(E,[["render",function(e,t,o,n,s,l){const a=(0,i.g2)("button-link");return(0,i.uX)(),(0,i.CE)("div",null,[(0,i.Lk)("div",_,(0,i.v_)(o.content.title),1),(0,i.Lk)("div",H,(0,i.v_)(o.content.subtitle),
11),(0,i.Lk)("div",I,(0,i.v_)(o.content.text),1),o.content.enableButton?((0,i.uX)(),(0,i.Wv)(a,{key:0,class:"m-hero--content-btn",type:"link-only",linkData:{title:o.content.linkLabel,href:o.content.link,style:o.content.buttonStyle}},null,8,["linkData"])):(0,i.Q3)("v-if",!0)])}]])},name:"HeroContent",props:{configs:{type:Object},item:{type:Object}},methods:{getWrapperClasses(){let e="";return this.item.content.banner.enabled&&(e+=" banner-wrapper"),(this.item.content.title||this.item.content.subtitle)&&(e+=" image-only"),e}},computed:{hasBanner(){return this.item.content.banner.enabled}}},P={components:{HeroVideo:p,HeroImage:L,HeroContent:(0,m.A)(X,[["render",function(e,t,o,n,s,l){const a=(0,i.g2)("hero-content-simple"),r=(0,i.g2)("hero-content-banner");return(0,i.uX)(),(0,i.CE)("div",M,[(0,i.Lk)("div",S,[l.hasBanner?((0,i.uX)(),(0,i.Wv)(r,{key:0,configs:o.configs,content:o.item.content},{default:(0,i.k6)(()=>[(0,i.bF)(a,{configs:o.configs,content:o.item.content},null,8,["configs","content"])],void 0,!0),_:1},8,["configs","content"])):((0,i.uX)(),(0,i.CE)("div",{key:1,class:(0,i.C4)(["m-hero--content__wrapper",l.getWrapperClasses()])},[(0,i.bF)(a,{configs:o.configs,content:o.item.content},null,8,["configs","content"])],2))])])}]])},name:"HeroSlide",props:{configs:{type:Object},item:{type:Object}},computed:{hasVideo(){return this.item.has_video},hasSlideContent(){return this.item.content.enabled},overlayStyles(){if(!this.configs.sliderOverlay?.custom&&this.configs.sliderOverlay?.customColor&&this.configs.sliderOverlay?.customHeight)return;const{customColor:e,customHeight:t}=this.configs.sliderOverlay;let o="",i="";return e&&(o=`linear-gradient(to bottom, rgba(0, 0, 0, 0), ${e})`),t&&(i=`${t}px`),{"background-image":o,height:i}}}},W=(0,m.A)(P,[["render",function(e,t,o,n,s,l){const a=(0,i.g2)("hero-video"),c=(0,i.g2)("hero-image"),d=(0,i.g2)("hero-content");return(0,i.uX)(),(0,i.CE)("div",r,[l.hasVideo?((0,i.uX)(),(0,i.Wv)(a,{key:0,item:o.item},null,8,["item"])):((0,i.uX)(),(0,i.Wv)(c,{key:1,item:o.item},null,8,["item"])),l.hasSlideContent?((0,i.uX)(),(0,i.Wv)(d,{key:2,configs:o.configs,item:o.item},null,8,["configs","item"])):(0,i.Q3)("v-if",!0),o.configs?.sliderOverlay?.enabled?((0,i.uX)(),(0,i.CE)("div",{key:3,class:"m-hero--slide__overlay",style:(0,i.Tr)(l.overlayStyles)},null,4)):(0,i.Q3)("v-if",!0)])}]]),Q={class:"scroll-container"},O=["role","tabindex"],B=["role","tabindex"],F=["role","tabindex"],j={name:"HeroScrollFunction",props:{configs:{type:Object}},data:()=>({classList:""}),computed:{showSingleArrow(){return"Arrow"===this.configs.animation},showMouse(){return"Mouse"===this.configs.animation},showMultipleArrows(){return"Arrows"===this.configs.animation},hasClickToScroll(){return this.configs.clickFunction?"click-to-scroll":""},hasScrollText(){return""!==this.configs.text},arrowStyle(){return""!==this.configs.color?`color: ${this.configs.color};`:""},arrowsStyle(){return""!==this.configs.color?`border-right: 2px solid ${this.configs.color}; border-bottom: 2px solid ${this.configs.color};`:""},textStyle(){return""!==this.configs.textColor?`color: ${this.configs.textColor};`:""},hasRole(){return this.configs.clickFunction?"button":"none"},hasTabIndex(){return this.configs.clickFunction?"0":"-1"}}},D=(0,m.A)(j,[["render",function(e,t,o,n,s,l){return(0,i.uX)(),(0,i.CE)("div",Q,[l.showSingleArrow?((0,i.uX)(),(0,i.CE)("div",{key:0,class:(0,i.C4)(["scroll-arrow-type",l.hasClickToScroll]),role:l.hasRole,tabindex:l.hasTabIndex},[((0,i.uX)(),(0,i.CE)("svg",{class:"icon icon-arrow-bottom",style:(0,i.Tr)(l.arrowStyle)},[...t[0]||(t[0]=[(0,i.Lk)("use",{href:"#icon-arrow-bottom"},null,-1)])],4)),l.hasScrollText?((0,i.uX)(),(0,i.CE)("span",{key:0,class:"scroll-text",style:(0,i.Tr)(l.textStyle)},(0,i.v_)(o.configs.text),5)):(0,i.Q3)("v-if",!0)],10,O)):l.showMouse?((0,i.uX)(),(0,i.CE)("div",{key:1,class:(0,i.C4)(["scroll-mouse-type",l.hasClickToScroll]),role:l.hasRole,tabindex:l.hasTabIndex},[t[1]||(t[1]=(0,i.Lk)("span",{class:"scroll-oval"},null,-1)),l.hasScrollText?((0,i.uX)(),(0,i.CE)("span",{key:0,class:"scroll-text",style:(0,i.Tr)(l.textStyle)},(0,i.v_)(o.configs.text),5)):(0,i.Q3)("v-if",!0)],10,B)):l.showMultipleArrows?((0,i.uX)(),(0,i.CE)("div",{key:2,class:(0,i.C4)(["scroll-arrows-type",l.hasClickToScroll]),role:l.hasRole,tabindex:l.hasTabIndex},[l.hasScrollText?((0,i.uX)(),(0,i.CE)("span",{key:0,class:"scroll-text",style:(0,i.Tr)(l.textStyle)},(0,i.v_)(o.configs.text),5)):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",null,[(0,i.Lk)("span",{class:"scroll-arrows one",style:(0,i.Tr)(l.arrowsStyle)},null,4),(0,i.Lk)("span",{class:"scroll-arrows two",style:(0,i.Tr)(l.arrowsStyle)},null,4),(0,i.Lk)("span",{class:"scroll-arrows three",style:(0,i.Tr)(l.arrowsStyle)},null,4)])],10,F)):(0,i.Q3)("v-if",!0)])}]]);var N=o(8972),z=o(7945);const{fireEvent:$}=N.Wp,R={components:{HeroSlide:W,HeroScrollFunction:D},name:"HeroSlider",props:{configs:{type:Object,required:!0},dataModel:{type:Array}},data:()=>({heroClassList:""}),methods:{setClasses(){"Short hero"===this.configs.heroSize?this.heroClassList=this.heroClassList+" m-hero_short":"Fullsize"===this.configs.heroSize&&(this.heroClassList=this.heroClassList+" m-hero--fullscreen","no cropping"===this.configs.blockSettings.verticalAlignment&&(this.heroClassList=this.heroClassList+" valign-no-cropping")),"no cropping"===this.configs.blockSettings.verticalAlignmentMobile&&(this.heroClassList=this.heroClassList+" mobile-valign-no-cropping"),""!==this.configs.blockSettings.verticalAlignment&&"no cropping"!==this.configs.blockSettings.verticalAlignment&&(this.heroClassList=this.heroClassList+` valign-${this.configs.blockSettings.verticalAlignment}`),""!==this.configs.blockSettings.verticalAlignmentMobile&&"no cropping"!==this.configs.blockSettings.verticalAlignmentMobile&&(this.heroClassList=this.heroClassList+` mobile-valign-${this.configs.blockSettings.verticalAlignmentMobile}`)}},computed:{hasHeaderOverlay(){return this.configs.blockSettings.headerOverlay.enabled},hasScrollFunction(){return"Fullsize"===this.configs.heroSize&&this.configs.scrollDownAnimation.enabled},getTextAlignment(){return this.configs.blockSettings.textAlignment},getAutoPlay(){return this.configs.sliderAutoplay},cssProps(){if(!this.configs.blockSettings)return;const{verticalAlignment:e,noCroppingBG:t,noCroppingBGImg:o,noCroppingBGColor:i,headerOverlay:n,marginBottom:s}=this.configs.blockSettings,{enabled:l,color:a}=this.configs.scrollDownAnimation,{enabled:r,overlayColor:c,gradientHeight:d}=n;let h=("Short hero"===this.configs.heroSize||"Fullsize"===this.configs.heroSize)&&"no cropping"===e,g="rgba(0, 0, 0, 0.5)",u="200px",m="",p="",f="",b="30px";return c&&r&&(g=c),d&&r&&(u=d+"px"),"picture"===t&&h&&(m=o),"picture"!==t&&h&&(p=i),""!==a&&l&&(f=a),s&&(b=`${s}px`),{"--hero-overlay-color":g,"--hero-overlay-height":u,"--hero-no-cropping-bg-img":m,"--hero-no-cropping-bg-color":p,"--hero-scroll-color":f,"--hero-margin-bottom":b}},hasNoHero(){return"No hero"==this.configs.heroType}},created(){this.setClasses()},mounted(){this.$nextTick(()=>{$("hero-component::mounted"),z.A.getBMBelow()})}},G=(0,m.A)(R,[["render",function(e,t,o,r,c,d){const h=(0,i.g2)("hero-scroll-function"),g=(0,i.g2)("hero-slide");return(0,i.uX)(),(0,i.CE)(i.FK,null,[(0,i.Lk)("div",{class:(0,i.C4)(["m-hero",e.heroClassList]),style:(0,i.Tr)(d.cssProps)},[d.hasHeaderOverlay?((0,i.uX)(),(0,i.CE)("div",n)):(0,i.Q3)("v-if",!0),t[1]||(t[1]=(0,i.Lk)("div",{class:"container"},[(0,i.Lk)("div",{id:"bm-hero-container"})],-1)),(0,i.Lk)("div",{class:"js-slider__wrapper","data-text-alignment":d.getTextAlignment},[d.hasScrollFunction?((0,i.uX)(),(0,i.Wv)(h,{key:0,configs:o.configs.scrollDownAnimation},null,8,["configs"])):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",{class:"m-hero--slider js-slider-hero","data-
1pagination":"true","data-autoplay":d.getAutoPlay},[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(o.dataModel,(e,t)=>((0,i.uX)(),(0,i.Wv)(g,{configs:o.configs,key:e.id,item:e,index:t},null,8,["configs","item","index"]))),128))],8,l),t[0]||(t[0]=(0,i.Lk)("div",{class:"container"},[(0,i.Lk)("div",{class:"m-hero-play-wrapper"},[(0,i.Lk)("div",{class:"m-hero--play clearfix"},[(0,i.Lk)("div",{class:"js-slider__insert-grouped-actions"})])])],-1))],8,s),t[2]||(t[2]=(0,i.Lk)("div",{id:"bm-horizontal-hero",class:"hidden"},null,-1))],6),d.hasNoHero?(0,i.Q3)("v-if",!0):((0,i.uX)(),(0,i.CE)("div",a))],64)}]]);var V=o(2637);const q={components:{HeroSlider:G},name:"OnePagerHeroApp",props:{configs:{type:Object,required:!0}},mixins:[V.A],data:()=>({hotelInfo:null,calloutInfo:null,isLoadingHotel:!0,isLoadingCallout:!0,isLoadingSliderModel:!0,sliderModel:[],animationSettings:{type:"",start:"",pages:""}}),computed:{hasHero(){return"No hero"!==this.configs.heroSize},animationsClass(){if(!this.animationSettings.type)return;const e="1"===window.isHome;if("All Pages"===this.animationSettings.pages||"Homepage"===this.animationSettings.pages&&e)switch(this.animationSettings.start){case"Bounce":return"hero-bounce";case"Slow Zoom":return"hero-slowzoom"}}},mounted(){this.getAnimationSettings()},methods:{async buildSliderModel(){for(let e=0;e<=this.calloutInfo.length-1;e++){let t=this.calloutInfo[e],o="",i=!1;t.videos.length&&(o=t.videos[0].video,i=t.videos[0].is_tvs);let n={hotel_id:t.hotel_id,has_video:t.has_video,is_tvs:i,video:o,videoTablet:"",videoMobile:"",photo:t.url,photoTablet:t.url_tablet,photoMobile:t.url_mobile,photoTitle:t.title,content:{enabled:!0,title:t.title,subtitle:t.sub_title,text:t.text,enableButton:this.configs.enableButton,buttonStyle:this.configs.buttonStyle,linkLabel:t.link_label,link:t.link,banner:{enabled:!1,image:{enabled:!1,url:"",imagePosition:"left",alt:""}}}};this.sliderModel.push(n)}},async filterSliderModel(){this.hotelInfo&&this.sliderModel&&(this.sliderModel=this.sliderModel.filter(e=>e.hotel_id===this.hotelInfo.id)),this.setSliderModelAsLoaded()},setSliderModelAsLoaded(){this.sliderModel.length>0&&(this.isLoadingSliderModel=!1)},getAnimationSettings(){const e=getComputedStyle(document.body),t=t=>e.getPropertyValue(t).replace(/^"(.*)"$/,"$1");this.animationSettings={type:"1"===t("--hero-animation-type"),start:t("--hero-animation-start"),pages:t("--hero-animation-pages")}}},async created(){this.fetchDynamicHotelData(),this.fetchDynamicCallOutData()},watch:{isLoadingCallout(){!this.isLoadingCallout&&this.calloutInfo&&(this.buildSliderModel(),this.filterSliderModel())},isLoadingHotel(){!this.isLoadingHotel&&this.hotelInfo&&this.filterSliderModel()}}},K=(0,m.A)(q,[["render",function(e,t,o,n,s,l){const a=(0,i.g2)("hero-slider");return!e.isLoadingSliderModel&&l.hasHero?((0,i.uX)(),(0,i.Wv)(a,{key:0,class:(0,i.C4)(l.animationsClass),configs:o.configs,dataModel:e.sliderModel},null,8,["class","configs","dataModel"])):(0,i.Q3)("v-if",!0)}]])},2227(e,t,o){o.r(t),o.d(t,{default:()=>Q});var i=o(1425);const n={class:"container"};var s=o(2637),l=o(8434),a=o(8045);const r={class:"text-block"},c=["innerHTML"],d=["innerHTML"],h={class:"stripe__text cms-html-var"},g=["innerHTML"],u={key:0,class:"stripe__actions text-right"},m=["href","target"],p=["innerHTML"],f={class:"contact-details-container"},b={key:0,class:"m-event--filterPart-wrap"},k=["innerHTML"],v={key:1,class:"m-event--filterPart-wrap"},y=["innerHTML"],C={key:1,class:"m-event--filterPart-wrapInfo small-text"},L={key:0},M=["href"],S={key:1},x={key:2,class:"m-event--filterPart-wrap"},A={class:"m-event--filterPart-wrapInfo small-text email-wrapper"},w=["href"],T=["href"],_={name:"TextBlock",props:{dataModel:Object,locales:Object}};var H=o(6262);const I=(0,H.A)(_,[["render",function(e,t,o,n,s,l){return(0,i.uX)(),(0,i.CE)("div",r,[o.dataModel.hasTitle?((0,i.uX)(),(0,i.CE)("h3",{key:0,class:"h3 box__title-before",innerHTML:o.dataModel.title},null,8,c)):(0,i.Q3)("v-if",!0),o.dataModel.hasSubtitle?((0,i.uX)(),(0,i.CE)("h4",{key:1,class:"h3 stripe__subtitle",innerHTML:o.dataModel.subtitle},null,8,d)):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",h,[(0,i.Lk)("span",{innerHTML:o.dataModel.contentText},null,8,g),o.dataModel.hasContentLink?((0,i.uX)(),(0,i.CE)("div",u,[(0,i.Lk)("div",null,[(0,i.Lk)("a",{href:o.dataModel.contentLink,target:o.dataModel.contentLinkTarget,class:"more-link custom-link-color"},(0,i.v_)(o.dataModel.contentLinkTitle),9,m)])])):(0,i.Q3)("v-if",!0)]),o.dataModel.hasContactTitle?((0,i.uX)(),(0,i.CE)("div",{key:2,class:"h4",innerHTML:o.dataModel.contactTitle},null,8,p)):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",f,[o.dataModel.hasAddress?((0,i.uX)(),(0,i.CE)("div",b,[t[0]||(t[0]=(0,i.Lk)("svg",{class:"icon icon-marker","aria-hidden":"true"},[(0,i.Lk)("use",{href:"#icon-marker"})],-1)),(0,i.Lk)("div",{class:"m-event--filterPart-wrapInfo small-text",innerHTML:o.dataModel.address},null,8,k)])):(0,i.Q3)("v-if",!0),o.dataModel.hasPhoneNumber?((0,i.uX)(),(0,i.CE)("div",v,[t[1]||(t[1]=(0,i.Lk)("svg",{class:"icon icon-phone",role:"presentation","aria-hidden":"true"},[(0,i.Lk)("use",{href:"#icon-phone"})],-1)),o.dataModel.isPhoneWYSIWIG?((0,i.uX)(),(0,i.CE)("div",{key:0,class:"m-event--filterPart-wrapInfo small-text",innerHTML:o.dataModel.phoneNumber},null,8,y)):((0,i.uX)(),(0,i.CE)("div",C,[o.dataModel.hasPhoneNumber?((0,i.uX)(),(0,i.CE)("span",L,[(0,i.eW)((0,i.v_)(o.locales.phoneNumber)+" ",1),(0,i.Lk)("a",{href:`tel:${o.dataModel.phoneNumber}`},(0,i.v_)(o.dataModel.phoneNumber),9,M)])):(0,i.Q3)("v-if",!0),o.dataModel.hasFaxNumber?((0,i.uX)(),(0,i.CE)("span",S,(0,i.v_)(o.locales.faxNumber)+" "+(0,i.v_)(o.dataModel.faxNumber),1)):(0,i.Q3)("v-if",!0)]))])):(0,i.Q3)("v-if",!0),o.dataModel.hasEmail?((0,i.uX)(),(0,i.CE)("div",x,[t[2]||(t[2]=(0,i.Lk)("svg",{class:"icon icon-mail","aria-hidden":"true"},[(0,i.Lk)("use",{href:"#icon-mail"})],-1)),(0,i.Lk)("div",A,[(0,i.Lk)("a",{href:`mailto:${o.dataModel.email}`,class:"custom-link-color"}
1,(0,i.v_)(o.dataModel.email),9,w),o.dataModel.hasSecondEmail?((0,i.uX)(),(0,i.CE)("a",{key:0,href:`mailto:${o.dataModel.secondEmail}`,class:"custom-link-color"},(0,i.v_)(o.dataModel.secondEmail),9,T)):(0,i.Q3)("v-if",!0)])])):(0,i.Q3)("v-if",!0)])])}]]);var E=o(7456),X=o(443),P=o(8012);const W={name:"TextMapApp",mixins:[s.A,P.A],components:{BlockWrapper:l.A,IntroductionApp:E.default,MapWithDirections:a.A,TextBlock:I,EmbedHTML:X.A},props:{configs:Object},data:()=>({hotelsInfo:null,poisInfo:null,isLoadingHotels:!0,isLoadingPois:!0,isLoadingMarkers:!0,selectedHotel:{},markers:[]}),computed:{getLocales(){return window.locales?.[this.configs.blockId]||{}},textblock(){return window.textblock?.[this.configs.blockId]||{}},mapSettings(){return window.mapSettings[this.configs.blockId]||{}},contentWidth(){return this.configs.blockStyles.isFullWidth?"full-width":"container"},textMapClass(){return"left"===this.textblock.mapPosition?"map-left":"map-right"},cssProps(){const e=this.textblock.style;let t="",o="",i="";return e.hasTextColor&&(t=e.textColor),e.hasTextLinkColor&&(o=e.textLinkColor),e.hasContactIconColor&&(i=e.contactIconColor),{"--text-map-color":t,"--text-map-link-color":o,"--text-map-icon-color":i}},showMapRight(){return"right"===this.textblock.mapPosition},showMapLeft(){return"left"===this.textblock.mapPosition},getStaticMapEmbedCode(){return window.staticMapEmbedCode[this.configs.blockId]||""}},methods:{collectHotelMarker(){this.hotelsInfo.map(e=>{if(e.latitude&&e.longitude){const t=parseFloat(e.latitude),o=parseFloat(e.longitude);t&&o&&(e.type="hotel",this.markers.push({position:{lat:t,lng:o},optimized:!1,title:e.name,type:"hotel",categoryId:0,customIcon:e.map_direction_logo_url,infoWindowContent:e}),e.id===parseInt(this.configs.selectedHotelId)&&(this.selectedHotel={lat:t,lng:o}))}})},collectPoiMarker(){this.mapSettings?.showPoi&&this.poisInfo.map(e=>{if(e.latitude&&e.longitude){const t=parseFloat(e.latitude),o=parseFloat(e.longitude);t&&o&&(e.type="poi",this.markers.push({position:{lat:t,lng:o},optimized:!1,title:e.name,type:"poi",categoryId:parseInt(e.category.id),customIcon:e.category.pin,infoWindowContent:e}))}})},getTextBlockDataModel(){if(null!==this.hotelsInfo&&this.textblock.useModuleContent&&this.configs.selectedHotelId.length){const e=this.hotelsInfo[0];return{hasTitle:e.transportation_short_description.length,title:e.transportation_short_description,hasSubtitle:!1,contentText:e.transportation_long_description,hasContentLink:this.textblock.hasContentLink,contentLink:this.textblock.contentLink,contentLinkTarget:this.textblock.contentLinkTarget,contentLinkTitle:this.textblock.contentLinkTitle,hasContactTitle:!0,contactTitle:e.name,hasAddress:e.full_address.length,address:e.full_address,isPhoneWYSIWIG:!1,hasPhoneNumber:!(!e.telephone.length&&!e.telephone.toString().length),phoneNumber:e.telephone,hasFaxNumber:!(!e.fax_number.length&&!e.fax_number.toString().length),faxNumber:e.fax_number,hasEmail:e.email.length,email:e.email,hasSecondEmail:e.email_2.length,secondEmail:e.email_2}}return this.textblock}},async created(){await this.fetchDynamicHotelsData(),await this.fetchDynamicPoisData(),await this.collectHotelMarker(),await this.collectPoiMarker(),this.isLoadingMarkers=!1}},Q=(0,H.A)(W,[["render",function(e,t,o,s,l,a){const r=(0,i.g2)("IntroductionApp"),c=(0,i.g2)("map-with-directions"),d=(0,i.g2)("EmbedHTML"),h=(0,i.g2)("text-block"),g=(0,i.g2)("block-wrapper");return!e.isLoadingHotels&&a.getLocales?((0,i.uX)(),(0,i.Wv)(g,{key:0,classList:"stripe-default-padding",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",n,[o.configs.showIntro?((0,i.uX)(),(0,i.Wv)(r,{key:0,blockId:o.configs.blockId,locales:{opensInNewTab:a.getLocales.opensInNewTab},class:"container"},null,8,["blockId","locales"])):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",{class:(0,i.C4)(a.contentWidth)},[(0,i.Lk)("div",{class:(0,i.C4)(["text-map",a.textMapClass])},[!e.isLoadingMarkers&&a.showMapLeft&&"Dynamic Map"==a.mapSettings.type?((0,i.uX)(),(0,i.Wv)(c,{key:0,mapSettings:a.mapSettings,markers:e.markers,locales:a.getLocales,selectedHotel:e.selectedHotel},null,8,["mapSettings","markers","locales","selectedHotel"])):a.showMapLeft?((0,i.uX)(),(0,i.Wv)(d,{key:1,class:"static-map",code:a.getStaticMapEmbedCode},null,8,["code"])):(0,i.Q3)("v-if",!0),(0,i.bF)(h,{dataModel:a.getTextBlockDataModel(),locales:a.getLocales,style:(0,i.Tr)(a.cssProps)},null,8,["dataModel","locales","style"]),!e.isLoadingMarkers&&a.showMapRight&&"Dynamic Map"==a.mapSettings.type?((0,i.uX)(),(0,i.Wv)(c,{key:2,mapSettings:a.mapSettings,markers:e.markers,locales:a.getLocales,selectedHotel:e.selectedHotel},null,8,["mapSettings","markers","locales","selectedHotel"])):a.showMapRight?((0,i.uX)(),(0,i.Wv)(d,{key:3,class:"static-map",code:a.getStaticMapEmbedCode}
1,null,8,["code"])):(0,i.Q3)("v-if",!0)],2)],2)])],void 0,!0),_:1},8,["blockStyles","anchorId","data-header-id"])):(0,i.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.