PageSourceSearch

https://www.pegasushotelguyana.com/integration/tc-theme/public/js/chunk/one-pager-hero-de2a6c4dedaad407a937.js

js pegasushotelguyana.com collected 2026-10-06 20:41:52 UTC 22,855 bytes, 1 lines download raw bytes

1"use strict";(self.tcthemejsonpFunction=self.tcthemejsonpFunction||[]).push([[5216],{2826:(t,e,o)=>{o.r(e),o.d(e,{default:()=>W});var i=o(1425);const n={class:"container"};var s=o(2637),l=o(8434),a=o(6887);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"},k={key:0,class:"m-event--filterPart-wrap"},b=["innerHTML"],v={key:1,class:"m-event--filterPart-wrap"},y=["innerHTML"],C={key:1,class:"m-event--filterPart-wrapInfo small-text"},L={key:0},x=["href"],M={key:1},S={key:2,class:"m-event--filterPart-wrap"},T={class:"m-event--filterPart-wrapInfo small-text email-wrapper"},A=["href"],w=["href"],_={name:"TextBlock",props:{dataModel:Object,locales:Object}};var H=o(6262);const I=(0,H.A)(_,[["render",function(t,e,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",k,[e[0]||(e[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,b)])):(0,i.Q3)("v-if",!0),o.dataModel.hasPhoneNumber?((0,i.uX)(),(0,i.CE)("div",v,[e[1]||(e[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,x)])):(0,i.Q3)("v-if",!0),o.dataModel.hasFaxNumber?((0,i.uX)(),(0,i.CE)("span",M,(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",S,[e[2]||(e[2]=(0,i.Lk)("svg",{class:"icon icon-mail","aria-hidden":"true"},[(0,i.Lk)("use",{href:"#icon-mail"})],-1)),(0,i.Lk)("div",T,[(0,i.Lk)("a",{href:`mailto:${o.dataModel.email}`,class:"custom-link-color"},(0,i.v_)(o.dataModel.email),9,A),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,w)):(0,i.Q3)("v-if",!0)])])):(0,i.Q3)("v-if",!0)])])}]]);var E=o(9441),X=o(2709),B=o(8012);const P={name:"TextMapApp",mixins:[s.A,B.A],components:{BlockWrapper:l.A,PlainTextIntroduction:E.A,MapWithDirections:a.A,TextBlock:I,EmbedHTML:X.A},props:{configs:Object,locales:Object,textblock:Object},data:()=>({hotelsInfo:null,poisInfo:null,isLoadingHotels:!0,isLoadingPois:!0,isLoadingMarkers:!0,selectedHotel:{},markers:[]}),computed:{getIntroBlockData(){return this.configs.introBlock.introContent=window.introBlockContent[this.configs.blockId]||"",{title:this.configs.introBlock.introTitle,subTitle:this.configs.introBlock.introSubTitle,description:this.configs.introBlock.introContent,link:{enabled:this.configs.introBlock.introLink.showIntroLink,title:this.configs.introBlock.introLink.introLinkTitle,url:this.configs.introBlock.introLink.introLinkURL,urlTarget:this.configs.introBlock.introLink.introLinkURLTarget},btn:{enabled:this.configs.introBlock.introBtn.showIntroBtn,title:this.configs.introBlock.introBtn.introBtnTitle,url:this.configs.introBlock.introBtn.introBtnURL,urlTarget:this.configs.introBlock.introBtn.introBtnURLTarget,style:this.configs.introBlock.introBtn.introBtnStyle}}},contentWidth(){return this.configs.blockStyles.isFullWidth?"full-width":"container"},textMapClass(){return"left"===this.textblock.mapPosition?"map-left":"map-right"},cssProps(){const t=this.textblock.style;let e="",o="",i="";return t.hasTextColor&&(e=t.textColor),t.hasTextLinkColor&&(o=t.textLinkColor),t.hasContactIconColor&&(i=t.contactIconColor),{"--text-map-color":e,"--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((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}))}}))},getTextBlockDataModel(){if(null!==this.hotelsInfo&&this.textblock.useModuleContent&&this.configs.selectedHotelId.length){const t=this.hotelsInfo[0];return{hasTitle:t.transportation_short_description.length,title:t.transportation_short_description,hasSubtitle:!1,contentText:t.transportation_long_description,hasContentLink:this.textblock.hasContentLink,contentLink:this.textblock.contentLink,contentLinkTarget:this.textblock.contentLinkTarget,contentLinkTitle:this.textblock.contentLinkTitle,hasContactTitle:!0,contactTitle:t.name,hasAddress:t.full_address.length,address:t.full_address,isPhoneWYSIWIG:!1,hasPhoneNumber:!(!t.telephone.length&&!t.telephone.toString().length),phoneNumber:t.telephone,hasFaxNumber:!(!t.fax_number.length&&!t.fax_number.toString().length),faxNumber:t.fax_number,hasEmail:t.email.length,email:t.email,hasSecondEmail:t.email_2.length,secondEmail:t.email_2}}return this.textblock}},async created(){await this.fetchDynamicHotelsData(),await this.fetchDynamicPoisData(),await this.collectHotelMarker(),await this.collectPoiMarker(),this.isLoadingMarkers=!1}},W=(0,H.A)(P,[["render",function(t,e,o,s,l,a){const r=(0,i.g2)("plain-text-introduction"),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 t.isLoadingHotels?(0,i.Q3)("v-if",!0):((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.introBlock.showIntro?((0,i.uX)(),(0,i.Wv)(r,{key:0,blockContent:a.getIntroBlockData,blockStyles:{width:o.configs.introBlock.introBlockWidth,textColor:o.configs.introBlock.introTextColor,textAlign:o.configs.introBlock.introTextAlign},locales:o.locales},null,8,["blockContent","blockStyles","locales"])):(0,i.Q3)("v-if",!0),(0,i.Lk)("div",{class:(0,i.C4)(a.c
1ontentWidth)},[(0,i.Lk)("div",{class:(0,i.C4)(["text-map",a.textMapClass])},[!t.isLoadingMarkers&&a.showMapLeft&&"Dynamic Map"==o.configs.mapSettings.type?((0,i.uX)(),(0,i.Wv)(c,{key:0,mapSettings:o.configs.mapSettings,markers:t.markers,locales:o.locales,selectedHotel:t.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:o.locales,style:(0,i.Tr)(a.cssProps)},null,8,["dataModel","locales","style"]),!t.isLoadingMarkers&&a.showMapRight&&"Dynamic Map"==o.configs.mapSettings.type?((0,i.uX)(),(0,i.Wv)(c,{key:2,mapSettings:o.configs.mapSettings,markers:t.markers,locales:o.locales,selectedHotel:t.selectedHotel},null,8,["mapSettings","markers","locales","selectedHotel"])):a.showMapRight?((0,i.uX)(),(0,i.Wv)(d,{key:3,class:"static-map",code:a.getStaticMapEmbedCode},null,8,["code"])):(0,i.Q3)("v-if",!0)],2)],2)])]),void 0,!0),_:1},8,["blockStyles","anchorId","data-header-id"]))}]])},4601:(t,e,o)=>{o.r(e),o.d(e,{default:()=>U});var i=o(1425);const n={key:0,class:"m-hero--top__overlay"},s=["data-text-alignment"],l=["data-autoplay"],a={class:"m-hero--slide"},r={class:"ratio-content unit-media","aria-hidden":"true"},c=["innerHTML"],d={key:1,class:"video-background"},h=["innerHTML"],g={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 t="";return""!==this.item.video&&(t+=" has-desktop"),""!==this.item.videoTablet&&(t+=" has-tablet"),""!==this.item.videoMobile&&(t+=" has-mobile"),t}}}};var u=o(6262);const m=(0,u.A)(g,[["render",function(t,e,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",r,["1"===o.item.is_tvs?((0,i.uX)(),(0,i.CE)("div",{key:0,innerHTML:o.item.video},null,8,c)):((0,i.uX)(),(0,i.CE)("div",d,[(0,i.Lk)("div",{class:"video-foreground not-tvs",innerHTML:o.item.video},null,8,h)]))])],2)}]]),p={class:"m-hero__media"},f=["srcset"],k=["srcset"],b=["srcset"],v=["data-lazy","alt"],y={name:"HeroImage",props:{item:{type:Object}}},C=(0,u.A)(y,[["render",function(t,e,o,n,s,l){return(0,i.uX)(),(0,i.CE)("div",p,[(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,f)):(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,b)):(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,v)):(0,i.Q3)("v-if",!0)])])}]]),L={class:"m-hero--content banner-content"},x={class:"container"},M=["src","alt"],S={name:"HeroContentBannerImage",props:{configs:{type:Object},image:{type:Object}},computed:{getClassPosition(){return this.image.imagePosition}}},T={components:{HeroContentBannerImage:(0,u.A)(S,[["render",function(t,e,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,M)],2)}]])},name:"HeroContentBanner",props:{configs:{type:Object},content:{type:Object}},methods:{getWrapperClasses(){let t="";return this.content.banner.enabled&&(t+=" banner-wrapper"),(this.content.title||this.content.subtitle)&&(t+=" image-only"),t}},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}}},A=(0,u.A)(T,[["render",function(t,e,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)(t.$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)}]]),w={class:"hero-title m-hero--content-title",role:"heading","aria-level":"1"},_={class:"m-hero--content-subtitle hero-subtitle",role:"heading","aria-level":"1"},H={class:"m-hero--content-text hero-text",role:"heading","aria-level":"1"},I={components:{ButtonLink:o(4985).A},name:"HeroContentSimple",props:{configs:{type:Object},content:{type:Object}}},E={components:{HeroContentBanner:A,HeroContentSimple:(0,u.A)(I,[["render",function(t,e,o,n,s,l){const a=(0,i.g2)("button-link");return(0,i.uX)(),(0,i.CE)("div",null,[(0,i.Lk)("div",w,(0,i.v_)(o.content.title),
11),(0,i.Lk)("div",_,(0,i.v_)(o.content.subtitle),1),(0,i.Lk)("div",H,(0,i.v_)(o.content.text),1),o.content.enableButton?((0,i.uX)(),(0,i.Wv)(a,{key:0,type:"link-only",classList:"btn m-hero--content-btn",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 t="";return this.item.content.banner.enabled&&(t+=" banner-wrapper"),(this.item.content.title||this.item.content.subtitle)&&(t+=" image-only"),t}},computed:{hasBanner(){return this.item.content.banner.enabled}}},X={components:{HeroVideo:m,HeroImage:C,HeroContent:(0,u.A)(E,[["render",function(t,e,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",L,[(0,i.Lk)("div",x,[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:t,customHeight:e}=this.configs.sliderOverlay;let o="",i="";return t&&(o=`linear-gradient(to bottom, rgba(0, 0, 0, 0), ${t})`),e&&(i=`${e}px`),{"background-image":o,height:i}}}},B=(0,u.A)(X,[["render",function(t,e,o,n,s,l){const r=(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",a,[l.hasVideo?((0,i.uX)(),(0,i.Wv)(r,{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)])}]]),P={class:"scroll-container"},W=["role","tabindex"],O=["role","tabindex"],Q=["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"}}},F=(0,u.A)(j,[["render",function(t,e,o,n,s,l){return(0,i.uX)(),(0,i.CE)("div",P,[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)},e[0]||(e[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,W)):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},[e[1]||(e[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,O)):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,Q)):(0,i.Q3)("v-if",!0)])}]]);var D=o(5445);const{fireEvent:R}=D.Wp,z={components:{HeroSlide:B,HeroScrollFunction:F},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:t,noCroppingBG:e,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"===t,g
1="rgba(0, 0, 0, 0.5)",u="200px",m="",p="",f="",k="30px";return c&&r&&(g=c),d&&r&&(u=d+"px"),"picture"===e&&h&&(m=o),"picture"!==e&&h&&(p=i),""!==a&&l&&(f=a),s&&(k=`${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":k}}},created(){this.setClasses()},mounted(){this.$nextTick((()=>{R("hero-component::mounted")}))}},N=(0,u.A)(z,[["render",function(t,e,o,a,r,c){const d=(0,i.g2)("hero-scroll-function"),h=(0,i.g2)("hero-slide");return(0,i.uX)(),(0,i.CE)("div",{class:(0,i.C4)(["m-hero",t.heroClassList]),style:(0,i.Tr)(c.cssProps)},[c.hasHeaderOverlay?((0,i.uX)(),(0,i.CE)("div",n)):(0,i.Q3)("v-if",!0),e[1]||(e[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":c.getTextAlignment},[c.hasScrollFunction?((0,i.uX)(),(0,i.Wv)(d,{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-pagination":"true","data-autoplay":c.getAutoPlay},[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(o.dataModel,((t,e)=>((0,i.uX)(),(0,i.Wv)(h,{configs:o.configs,key:t.id,item:t,index:e},null,8,["configs","item","index"])))),128))],8,l),e[0]||(e[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),e[2]||(e[2]=(0,i.Lk)("div",{id:"bm-horizontal-hero"},null,-1))],6)}]]);var $=o(2637);const G={components:{HeroSlider:N},name:"OnePagerHeroApp",props:{configs:{type:Object,required:!0}},mixins:[$.A],data:()=>({hotelInfo:null,calloutInfo:null,isLoadingHotel:!0,isLoadingCallout:!0,isLoadingSliderModel:!0,sliderModel:[]}),computed:{hasHero(){return"No hero"!==this.configs.heroSize}},methods:{async buildSliderModel(){for(let t=0;t<=this.calloutInfo.length-1;t++){let e=this.calloutInfo[t],o="",i=!1;e.videos.length&&(o=e.videos[0].video,i=e.videos[0].is_tvs);let n={hotel_id:e.hotel_id,has_video:e.has_video,is_tvs:i,video:o,videoTablet:"",videoMobile:"",photo:e.url,photoTablet:e.url_tablet,photoMobile:e.url_mobile,photoTitle:e.title,content:{enabled:!0,title:e.title,subtitle:e.sub_title,text:e.text,enableButton:this.configs.enableButton,buttonStyle:this.configs.buttonStyle,linkLabel:e.link_label,link:e.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((t=>t.hotel_id===this.hotelInfo.id))),this.sliderModel.length>0&&(this.isLoadingSliderModel=!1)}},async created(){this.fetchDynamicHotelData(),this.fetchDynamicCallOutData()},watch:{isLoadingCallout(){!this.isLoadingCallout&&this.calloutInfo&&this.buildSliderModel()},isLoadingHotel(){!this.isLoadingHotel&&this.hotelInfo&&this.filterSliderModel()}}},U=(0,u.A)(G,[["render",function(t,e,o,n,s,l){const a=(0,i.g2)("hero-slider");return!t.isLoadingSliderModel&&l.hasHero?((0,i.uX)(),(0,i.Wv)(a,{key:0,configs:o.configs,dataModel:t.sliderModel},null,8,["configs","dataModel"])):(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.