1"use strict";(self.tcthemejsonpFunction=self.tcthemejsonpFunction||[]).push([[982],{2039:(t,n,e)=>{e.r(n),e.d(n,{default:()=>c});var o=e(1425),i=e(8434),s=e(447),l=e(6926);const a={methods:{async fetchOfferData(){const t=window.offers;if(!t)return;const n=t.locationId||null,e=t.featuredStatus||!1,o=parseInt(t.maxItemCount)||0,i=t.dataInline||null,s=t.websiteType||null,l=t.webSiteId||null;let a=new Array;if(a=n?i.filter(t=>{if(t.hotel_location_id.includes(parseInt(n)))return t}):i,"2"===s&&(a=a.filter(t=>{if(t.brand_id?.length&&t.brand_id?.includes(l))return t}),a.sort(function(t,n){return t.position_b-n.position_b})),e&&(a=a.filter(t=>{if(1===t.is_featured)return t})),o>1&&a.length>o){let t=Array();a.map((n,e)=>{e<o&&t.push(n)}),a=t}a.length>0&&a.map(n=>{let e=n.hotel,o=n.booking_engine_urls,i=new Array,s=new Array,l=new Array;e.length>0&&(i=e.filter(n=>{if(n.location_id===parseInt(t.locationId))return s.push(n.id),n})),i.length>0&&(n.hotel=i,n.hotelIDs=s),o.length>0&&s.length>0&&(l=o.filter(t=>{if(s.includes(parseInt(t.id))&&""!==t.url)return n})),l.length>0?n.booking_engine_urls=l:n.booking_engine_urls=[]}),a.length>0&&(this.offersInfo=a),this.isLoadingData=!1}}};var d=e(5256);const g={components:{BlockWrapper:i.A,IntroductionApp:s.default,CityOfferSlider:l.A,OfferFancyModal:d.A},name:"DestinationCityOfferApp",props:{configs:{type:Object,required:!0,default:()=>({})}},mixins:[a],data:()=>({parentElemClass:"",parentElemStyles:null,showIntro:!1,introData:null,gridBlockData:null,locales:null,offersInfo:null,isLoadingData:!0}),methods:{analyzeSettings(){this.gridBlockData=this.configs.gridBlock,this.locales=this.configs.locales,this.configs.blockId&&(this.parentElemClass=this.configs.blockId),2===this.gridBlockData.noOfColumns?this.parentElemClass+=" column2":1===this.gridBlockData.noOfColumns&&(this.parentElemClass+=" module-grid-column1")}},async created(){this.fetchOfferData(),this.analyzeSettings()},computed:{assignBlockStyles(){return{textAlign:this.configs.blockStyles.textAlignment,backgroundSettings:{type:this.configs.gridBlock.backgroundSettings.backgroundType,image:this.configs.gridBlock.backgroundSettings.backgroundImage,color:this.configs.gridBlock.backgroundSettings.backgroundColor},paddingSettings:{desktop:{enabled:this.configs.blockStyles.paddingSettings.desktopPadding.enabled,top:this.configs.blockStyles.paddingSettings.desktopPadding.paddingTop,bottom:this.configs.blockStyles.paddingSettings.desktopPadding.paddingBottom},tablet:{enabled:this.configs.blockStyles.paddingSettings.tabletPadding.enabled,top:this.configs.blockStyles.paddingSettings.tabletPadding.paddingTop,bottom:this.configs.blockStyles.paddingSettings.tabletPadding.paddingBottom},mobile:{enabled:this.configs.blockStyles.paddingSettings.mobilePadding.enabled,top:this.configs.blockStyles.paddingSettings.mobilePadding.paddingTop,bottom:this.configs.blockStyles.paddingSettings.mobilePadding.paddingBottom}}}},outerCssProps(){let t="none",n=this.configs.gridBlock.backgroundSettings;return"color"===n.backgroundType?t=`${n.backgroundColor}`:"picture"===n.backgroundType&&(t=`url('${n.backgroundImage}')`),{"--base-content-background":t}},innerCssProps(){let t=0,n=0,e=0,o=0,i=0,s=0,l=this.configs.blockStyles.paddingSettings;return l.desktopPadding.enabled&&(t=l.desktopPadding.paddingTop,n=l.desktopPadding.paddingBottom),l.tabletPadding.enabled&&(e=l.tabletPadding.paddingTop,o=l.tabletPadding.paddingBottom),l.mobilePadding.enabled&&(i=l.mobilePadding.paddingTop,s=l.mobilePadding.paddingBottom),{"--desktop-custom-padding-top":t+"px","--desktop-custom-padding-bottom":n+"px","--tablet-custom-padding-top":e+"px","--tablet-custom-padding-bottom":o+"px","--mobile-custom-padding-top":i+"px","--mobile-custom-padding-bottom":s+"px"}}},mounted(){}},c=(0,e(6262).A)(g,[["render",function(t,n,e,i,s,l){const a=(0,o.g2)("IntroductionApp"),d=(0,o.g2)("city-offer-slider"),g=(0,o.g2)("offer-fancy-modal"),c=(0,o.g2)("block-wrapper");return!t.isLoadingData&&t.offersInfo?((0,o.uX)(),(0,o.Wv)(c,{key:0,classList:"stripe-default-padding city-offer-wrapper m-slider-items fix-height-slider-items",blockStyles:l.assignBlockStyles},{default:(0,o.k6)(()=>[(0,o.Lk)("div",{class:(0,o.C4)(["container",t.parentElemClass])},[e.configs.showIntro?((0,o.uX)(),(0,o.Wv)(a,{key:0,blockId:e.configs.blockId,locales:{opensInNewTab:e.configs.locales.adaLabel},class:"container"},null,8,["blockId","locales"])):(0,o.Q3)("v-if",!0),(0,o.bF)(d,{configs:t.gridBlockData,offersData:t.offersInfo,locales:t.locales},null,8,["configs","offersData","locales"]),(0,o.bF)(g,{configs:e.configs,locales:e.configs.locales,ref:"offerModal"},null,8,["configs","locales"])],2)],void 0,!0),_:1},8,["blockStyles"])):(0,o.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.