PageSourceSearch

https://www.golfbreaks.com/_nuxt/Ce-MYYu8.js

js golfbreaks.com collected 2026-10-02 06:49:46 UTC 11,944 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BtnXVq6h.js","./DbX5pR9p.js","./CEvsmAsy.js","./DjyzzgyO.js","./k1URe7fy.js","./CEaee5sJ.js","./entry.wLdi7Mhj.css","./ZTank2_Y.js","./B9KCcJfQ.js","./Dt1wUxUR.js","./haPlz6cz.js","./LightGallery.CzhgdobA.css","./tto5wf6b.js","./LightGalleryButton.BqSvYrye.css","./CVCHWP6m.js","./ProductTag.DMQnBCB6.css","./ImageWithOptions.Cm05YiyS.css","./PmUzM52L.js","./DUtW8g71.js","./DqMXyRo_.js","./BzmoXTna.js","./VCard.BfAN-NMn.css","./B7xIdSpd.js","./tuNemZzf.js","./VOverlay.BKDvxpvl.css","./DV9H06fB.js","./BiZOTYHk.js","./VDialog.Dk_v9Av4.css","./GBModal.Cswz4FIF.css","./FeefoInline.C4bu_fBE.css","./Br-pske2.js","./StarRating.C-nIGvCG.css","./5ss9XLOG.js","./CT6qUwmf.js","./Dn618hFP.js","./PriceBlock.Bzlzsq47.css","./ProductPrice.DlhMMp2m.css","./WVNMCGZ6.js","./DwxYiBgz.js","./BkmW0dDY.js","./DaPwb781.js","./ChAU-wFT.js","./j5vhGzgA.js","./VTextField.CYem77cG.css","./VCheckboxBtn.CdaDJBAG.css","./VCheckbox.CvH8ekHL.css","./GBCheckbox.Bmz_mvZG.css","./C3wJ3jGE.js","./DMC1ZjZ6.js","./zL-KWRSv.js","./GBTextField.D0pIDJbp.css","./useKeyboardPrimer.BqQ1V9u2.css","./C4DNbQ62.js","./GBCallout.a6F3rO4O.css","./FavouriteButton.RCdgIFKE.css","./C4ybePdx.js","./VSkeletonLoader.B-Lm5FZs.css","./ProductTileIndex.BmlocIMS.css"])))=>i.map(i=>d[i]);
2import{aa as v,k as D,al as c,u as b,b as T,ap as I,av as k,db as l,a as L,c as w,ao as P,m as S,E as C,an as U,df as x,dh as B,w as g,ax as V}from"./CEvsmAsy.js";import{b as u,p as h}from"./Bhq4b4I0.js";import{i as E}from"./ZTank2_Y.js";import{n as R}from"./Dt1wUxUR.js";import{c as n,ac as p,ab as f,m as _,ae as q}from"./DjyzzgyO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="36340077-9bec-4e43-a09a-23e379313dfe",e._sentryDebugIdIdentifier="sentry-dbid-36340077-9bec-4e43-a09a-23e379313dfe")}catch{}})();const m=e=>{if(!e)return"";try{return v(e).toISOWithoutUTC()}catch{return String(e||"")}},y=(e,t)=>`${typeof e=="string"?e.trim():""}:${m(t)}`,N=e=>{if(!Array.isArray(e))return[];const t=new Map;return e.forEach(i=>{const s=typeof i=="string"?{masterProductId:i}:i,a=typeof s?.masterProductId=="string"?s.masterProductId.trim():"",o=m(s?.date);a&&t.set(y(a,o),{masterProductId:a,date:o})}),[...t.values()]},O=B("components/tiles/product/ProductTileIndex.vue",()=>g(()=>import("./BtnXVq6h.js").then(e=>e.b),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]),import.meta.url).then(e=>e.default||e)),$=V("components/tiles/product/ProductTileIndex.vue",()=>g(()=>import("./BtnXVq6h.js").then(e=>e.b),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]),import.meta.url).then(e=>e.default||e)),A={name:"VenueProductTile",props:{data:{type:Object,required:!0},tiqViewType:{type:String,default:"impression"},personalised:{type:Boolean,default:!1},tiqProductIndex:{type:Number,default:-1},override:{type:Boolean,default:!1},showBorder:{type:Boolean,default:!1},whiteText:{type:Boolean,default:!1},listType:{type:String,default:""},customTaxColour:{type:String,default:""},hideEnquiry:{type:Boolean,default:!1},hideDivider:{type:Boolean,default:!1},hidePricingDetails:{type:Boolean,default:!1},favouriteRemove:{type:Boolean,default:!1},favouriteListId:{type:String,default:""},productDataByKey:{type:Object,default:()=>({})}},data(){return{checkValidLogo:x,noImage:this.$IMG_EXT.STATIC_IMAGE_CACHE(R),getLeadProductWithLocaleCheck:u,getVenueDataReference:c,actualUrl:"",currentOffers:U,locationData:"",mounted:!1,hydrateInstantly:!1}},setup(){const{productDescription:e,keyValueSitemap:t}=L(),{locale:i,translations:r}=w(),s=P(),a=S(),o=C();return{nightLabel:n(()=>e.value.night),nightsLabel:n(()=>e.value.nights),roundsLabel:n(()=>e.value.rounds),roundLabel:n(()=>e.value.round),inclLabel:n(()=>e.value.incl),productDescription:e,locale:i,keyValueSitemap:t,baseUrl:n(()=>r.value.urlPath),favouritesStore:s,accountId:n(()=>a.accountId),isLoggedIn:n(()=>o.isLoggedIn)}},computed:{renderTile(){return this.image&&Object.entries(this.data).length!==0&&this.mounted},props(){const e=this.getReviewData(this.specificData),t=Object.entries(this.specificData).length!==0,i=u(((this.specificData.automated_content||[])[0]||{}).lead_product,this.locale),r=((((this.data.reference_entity||[])[0]||{}).automated_content||[])[0]||{}).lead_product||{},s=(i.travel_components||"").toString(),a=this.data.master_product_id,o=this.locale==="en-us"?this.data.seasonal_date_override:"",d=y(a,o);return{imageSource:this.image,tagType:this.specificData.type,location:this.data.article_pre_header?this.data.article_pre_header:t?this.locationData:"",packageName:(this.data.article_url||{}).title||(t?this.specificData.prefer_short_name?this.specificData.short_name||this.specificData.full_name||this.specificData.title:this.specificData.full_name||this.specificData.short_name||this.specificData.title:""),feefoCount:e.reviews,feefoScore:e.rating,feefoId:e.sku,url:this.override&&(this.data.package_tile||{}).url_override?this.data.package_tile.url_override:this.data.favourite_url||(this.data.article_url||{}).href||this.actualUrl,packageText:this.override&&(this.data.package_tile||{}).nights_rounds_override?this.data.package_tile.nights_rounds_override:this.packageText,promotions:this.currentOffers((((((this.data.reference_entity||[])[0]||{}).automated_content||[])[0]||{}).promotions||{}).offers||[]),productTagV2:this.checkValidLogo(this.data.logo_selector,!0),packagePrice:this.override&&((this.data.package_tile||{}).price_override||0)>0?this.data.package_tile.price_override:(i.price||"").toString(),packageSaving:this.override?0:r.saving,packageSavingSuppressMessage:this.override?"":r.suppress_message,packageSavingsPercentage:this.override?0:r.savings_percentage,packageBadge:(i.badge||"").toString(),packageTravel:this.override&&(this.data.package_tile||{}).nights_rounds_override?(this.data.package_tile||{}).additional_travel_text||"":s?`${this.inclLabel} ${s}`:"",masterProductId:a,masterProductDate:o,preloadedProduct:this.productDataByKey[d],favouriteType:this.favouriteType,favouriteUid:this.favouriteUid,"data-tile":this.data.uid,starRating:t&&(c(this.specificData).venue_information||{}).official_star_rating||0,sticker:this.$IMG_EXT.STATIC_IMAGE_CACHE(this.checkValidLogo(this.data.logo_selector)),"tiq-view-type":"impression",showBorder:this.showBorder,whiteText:this.whiteText,tiqProductIndex:this.tiqProductIndex,personalised:this.personalised,listType:this.listType,customTaxColour:this.customTaxColour,taxOverrideText:this.specificData?.general_tax_message_override,hideEnquiry:this.hideEnquiry,hideDivider:this.hideDivider,hidePricingDetails:this.hidePricingDetails,favouriteRemove:this.favouriteRemove,favouriteListId:this.favouriteListId}},tileUrl(){return this.override&&(this.data?.package_tile||{}).url_override?this.data?.package_tile?.url_override:this.data?.favourite_url||(this.data?.article_url||{}).href||this.actualUrl||""},isEventTileUrl(){const e=(this.tileUrl||"").toLowerCase();return e?e.includes("/events/")||e.includes("amateurgolf.events"):!1}
2,normalisedFavouriteType(){if(this.isEventTileUrl)return"event";const e=(this.data?.favourite_type||this.listType||this.specificData?._content_type_uid||this.specificData?.type||"").toLowerCase().replace(/[\s_]+/g,"");return e==="resort"?"venue":e},favouriteType(){return this.normalisedFavouriteType},favouriteUid(){return this.data?.favourite_uid?this.data.favourite_uid:this.normalisedFavouriteType!=="package"?this.data?.reference_entity?.[0]?.uid||this.specificData?.uid||this.data?.uid||this.data?.master_product_id:this.data?.favourite_uid||this.data?.uid||this.specificData?.uid||this.data?.master_product_id},matchesPendingFavourite(){const e=this.favouritesStore.pendingItem;return!!(this.isLoggedIn&&this.accountId&&e&&this.favouriteUid&&e.uid===this.favouriteUid&&l(e.type)===l(this.favouriteType))},specificData(){const e=this.data,t=c(e);return(((e||{}).reference_entity||[])[0]||{})._content_type_uid==="golf_course"?((((e||{}).reference_entity||[])[0]||{}).type="golf course",((e||{}).reference_entity||[])[0]):(((e||{}).reference_entity||[])[0]||{})._content_type_uid==="venue"?(((e||{}).reference_entity||[])[0].type=c(((e||{}).reference_entity||[])[0]).venue_type,((e||{}).reference_entity||[])[0]):((e||{}).venue||[])[0]?(e.type="golf course",e):(e||{}).uid?(e.type=t.venue_type,e):{}},image(){return this.data.image&&this.data.image[0]&&this.data.image[0].file?this.data.image[0].file.url:Object.entries(this.specificData).length!==0?(((this.specificData.default_image||[])[0]||{}).file||{}).url||((this.specificData.default_image||{}).file||{}).url||(this.specificData.default_image||{}).url||(((this.specificData.images||[])[0]||{}).file||{}).url||this.noImage:this.noImage},packageText(){const e=u(((this.specificData.automated_content||[])[0]||{}).lead_product,this.locale);let t="";return e.nights&&(t=e.nights+" "+(e.nights!==1?(this.nightsLabel||"").toLowerCase():(this.nightLabel||"").toLowerCase())+" & "+(e.rounds||0)+" "+(e.rounds!==1?(this.roundsLabel||"").toLowerCase():(this.roundLabel||"").toLowerCase())),e.board_type&&(t+=`, ${(e.board_type||"").toLowerCase()}`),t||""}},watch:{matchesPendingFavourite:{immediate:!0,handler(e){e&&(this.hydrateInstantly=!0)}}},async created(){let e=h(this.specificData?.automated_content?.[0]?.sitemap_hierarchy).find(i=>i.Uid===this.specificData.uid)?.Link;if((b().public.GB_ENV||"").toLowerCase()!=="production"&&!e&&T().query.preview&&(e=(await I(this.specificData?.uid)).find(r=>r.Uid===this.specificData.uid)?.Link),this.override&&(this.specificData.package_tile||{}).url_override||(this.specificData.article_url||{}).href){this.mounted=!0;return}if(e){this.actualUrl=`${this.baseUrl}${e}`,this.locationData=k(h(this.specificData.automated_content[0].sitemap_hierarchy).reverse().filter(i=>i.Uid!==this.specificData.uid)),this.mounted=!0;return}this.actualUrl||(this.specificData.type==="golf course"?this.keyValueSitemap[this.specificData.uid]?this.actualUrl=`${this.baseUrl}${(this.keyValueSitemap[this.specificData.uid]||"").replace(/^(\/)/,"")}/`:this.actualUrl=this.baseUrl:this.keyValueSitemap[this.specificData.uid]?this.actualUrl=`${this.baseUrl}${(this.keyValueSitemap[this.specificData.uid]||"").replace(/^(\/)/,"")}/`:this.actualUrl=this.baseUrl),this.mounted=!0},mounted(){E(this.specificData.uid,this.specificData.short_name||this.specificData.full_name||"",u(((this.specificData.automated_content||[])[0]||{}).lead_product,this.locale).price||"",this.specificData.type==="golf course"?"Course":"Venue")},methods:{getReviewData(e){const t=e.information?.[0]?.venue_type?.toLowerCase()==="golf club"&&(e?.golf_course||[]).length===1?e.golf_course[0]:e,i=e.information?.[0]?.venue_type?.toLowerCase()==="golf club"&&(e?.golf_course||[]).length===1;return{rating:parseFloat(((t.automated_content||[])[0]||{}).review_score),reviews:parseInt(((t.automated_content||[])[0]||{}).review_count),sku:(t?.child_courses||[]).length>0?t.child_courses.map(r=>"G"+r.golfbreaks_id).join(","):`${(e.type||"").toLowerCase()==="golf course"||i?"G":"V"}${(e.type||"").toLowerCase()==="golf course"?e.golfbreaks_id:i?((t.automated_content||[])[0]||{}).golfbreaks_id:c(e).golfbreaks_id}`}}}};function F(e,t,i,r,s,a){const o=O,d=$;return a.renderTile&&s.hydrateInstantly?(p(),f(o,_({key:0},a.props,{"hydrate-when":s.hydrateInstantly}),null,16,["hydrate-when"])):a.renderTile?(p(),f(d,_({key:1},a.props,{"hydrate-on-visible":""}),null,16)):q("",!0)}const H=Object.assign(D(A,[["render",F]]),{__name:"TilesContainersVenueProductTile"});export{H as V,y as g,N as n};

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.