PageSourceSearch

https://bookings.goldzanzibar.com/integration/tc-theme/public/js/c…tination-city-offer-9b060ed4416ca1507701.js

js goldzanzibar.com collected 2026-09-30 10:55:13 UTC 6,781 bytes, 1 lines download raw bytes

1"use strict";(self.tcthemejsonpFunction=self.tcthemejsonpFunction||[]).push([[982],{8726(t,e,o){o.r(e),o.d(e,{default:()=>p});var n=o(1425),i=o(8434),s=o(7456),a=o(3146);o(4423);const l={methods:{async fetchOfferData(){const t=window.offers;if(!t)return;const e=t.locationId||null,o=t.featuredStatus||!1,n=parseInt(t.maxItemCount)||0,i=t.dataInline||null,s=t.websiteType||null,a=t.webSiteId||null;let l=new Array;if(l=e?i.filter(t=>{if(t.hotel_location_id.includes(parseInt(e)))return t}):i,"2"===s&&(l=l.filter(t=>{if(t.brand_id?.length&&t.brand_id?.includes(a))return t}),l.sort(function(t,e){return t.position_b-e.position_b})),o&&(l=l.filter(t=>{if(1===t.is_featured)return t})),n>1&&l.length>n){let t=Array();l.map((e,o)=>{o<n&&t.push(e)}),l=t}l.length>0&&l.map(e=>{let o=e.hotel,n=e.booking_engine_urls,i=new Array,s=new Array,a=new Array;o.length>0&&(i=o.filter(e=>{if(e.location_id===parseInt(t.locationId))return s.push(e.id),e})),i.length>0&&(e.hotel=i,e.hotelIDs=s),n.length>0&&s.length>0&&(a=n.filter(t=>{if(s.includes(parseInt(t.id))&&""!==t.url)return e})),a.length>0?e.booking_engine_urls=a:e.booking_engine_urls=[]}),l.length>0&&(this.offersInfo=l),this.isLoadingData=!1}}};var d=o(2275);const r={components:{BlockWrapper:i.A,IntroductionApp:s.default,CityOfferSlider:a.A,OfferFancyModal:d.A},name:"DestinationCityOfferApp",props:{configs:{type:Object,required:!0,default:()=>({})}},mixins:[l],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.getLocales,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:{getLocales(){return window.locales?.[this.configs.blockId]||{}},getPopup(){return window.popup?.[this.configs.blockId]||{}},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",e=this.configs.gridBlock.backgroundSettings;return"color"===e.backgroundType?t=`${e.backgroundColor}`:"picture"===e.backgroundType&&(t=`url('${e.backgroundImage}')`),{"--base-content-background":t}},innerCssProps(){let t=0,e=0,o=0,n=0,i=0,s=0,a=this.configs.blockStyles.paddingSettings;return a.desktopPadding.enabled&&(t=a.desktopPadding.paddingTop,e=a.desktopPadding.paddingBottom),a.tabletPadding.enabled&&(o=a.tabletPadding.paddingTop,n=a.tabletPadding.paddingBottom),a.mobilePadding.enabled&&(i=a.mobilePadding.paddingTop,s=a.mobilePadding.paddingBottom),{"--desktop-custom-padding-top":t+"px","--desktop-custom-padding-bottom":e+"px","--tablet-custom-padding-top":o+"px","--tablet-custom-padding-bottom":n+"px","--mobile-custom-padding-top":i+"px","--mobile-custom-padding-bottom":s+"px"}}},mounted(){}},p=(0,o(6262).A)(r,[["render",function(t,e,o,i,s,a){const l=(0,n.g2)("IntroductionApp"),d=(0,n.g2)("city-offer-slider"),r=(0,n.g2)("offer-fancy-modal"),p=(0,n.g2)("block-wrapper");
1return!t.isLoadingData&&t.offersInfo&&a.getLocales?((0,n.uX)(),(0,n.Wv)(p,{key:0,classList:"stripe-default-padding city-offer-wrapper m-slider-items fix-height-slider-items",blockStyles:a.assignBlockStyles},{default:(0,n.k6)(()=>[(0,n.Lk)("div",{class:(0,n.C4)(["container",t.parentElemClass])},[o.configs.showIntro?((0,n.uX)(),(0,n.Wv)(l,{key:0,blockId:o.configs.blockId,locales:{opensInNewTab:a.getLocales.adaLabel},class:"container"},null,8,["blockId","locales"])):(0,n.Q3)("v-if",!0),(0,n.bF)(d,{configs:t.gridBlockData,offersData:t.offersInfo,locales:a.getLocales},null,8,["configs","offersData","locales"]),(0,n.bF)(r,{configs:o.configs,popuptext:a.getPopup.popupText,locales:a.getLocales,ref:"offerModal"},null,8,["configs","popuptext","locales"])],2)],void 0,!0),_:1},8,["blockStyles"])):(0,n.Q3)("v-if",!0)}]])},8434(t,e,o){o.d(e,{A:()=>d});var n=o(1425);const i=["id"];var s=o(8972);const{fireEvent:a}=s.Wp,l={name:"BlockWrapper",props:{classList:{type:String},blockStyles:{type:Object},anchorId:String},computed:{cssProps(){if(!this.blockStyles)return;const t=this.blockStyles;let e="",o="left",n="none",i="no-repeat",s="initial",a="initial",l=15,d=15,r=15,p=15,c=15,g=15;t.textColor&&(e=t.textColor),t.textAlign&&(o=t.textAlign);let b=t.backgroundSettings;b&&("color"===b.type?n=`${b.color}`:"picture"===b.type&&(n=`url('${b.image}')`,b.repeat?i="repeat":(i="no-repeat",s="center",a="cover")));let u=t.paddingSettings;return u&&(u.desktop?.enabled&&(u.desktop?.top&&(l=u.desktop.top),u.desktop?.bottom&&(d=u.desktop.bottom)),u.tablet?.enabled&&(u.tablet?.top&&(r=u.tablet.top),u.tablet?.bottom&&(p=u.tablet.bottom)),u.mobile?.enabled&&(u.mobile?.top&&(c=u.mobile.top),u.mobile?.bottom&&(g=u.mobile.bottom))),{"--base-content-color":e,"--base-content-alignment":o,"--wrapper-background":n,"--wrapper-background-repeat":i,"--wrapper-background-position":s,"--wrapper-background-size":a,"--wrapper-desktop-padding-top":l+"px","--wrapper-desktop-padding-bottom":d+"px","--wrapper-tablet-padding-top":r+"px","--wrapper-tablet-padding-bottom":p+"px","--wrapper-mobile-padding-top":c+"px","--wrapper-mobile-padding-bottom":g+"px"}},processedAnchorId(){if(this.anchorId)return this.removeSpecialCharactersAndSpaces(this.anchorId)}},methods:{removeSpecialCharactersAndSpaces:t=>t.replace(/[^a-zA-Z0-9]/g,"")},mounted(){document.body.classList.contains("header3")&&this.anchorId&&a("hc::block::mounted",{name:this.anchorId,anchorId:this.processedAnchorId})}},d=(0,o(6262).A)(l,[["render",function(t,e,o,s,a,l){return(0,n.uX)(),(0,n.CE)("div",{id:l.processedAnchorId,class:(0,n.C4)(["block-wrapper common-component",o.classList]),style:(0,n.Tr)(l.cssProps)},[(0,n.RG)(t.$slots,"default")],14,i)}]])}}]);

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.