PageSourceSearch

https://www.gianttiger.com/cdn/shop/t/834/assets/AdBannerSection.CdVKnw5V.chunk.min.js

js gianttiger.com collected 2026-10-02 14:43:11 UTC 6,022 bytes, 1 lines download raw bytes

1import{n as s,j as i,C as o,t as c,m as l}from"./vue.B2nMKU9x.chunk.min.js";import{R as d}from"./RichContent.CC_NeP9p.chunk.min.js";const{shop:{locale:p}}=window.theme,_=window.matchMedia("(min-width: 720px)"),m={name:"PricingTag",props:{entry:{type:Object,required:!0},bannerType:{type:String,default:""}},computed:{priceTagAmount(){const n=String(this.entry.fields.price);return p==="fr"?`${n.split(".").join(",")}$`:`$${n}`},backgroundColor(){return this.entry.fields.boxColour?`${this.entry.fields.boxColour.value}`:"var(--color-primary)"},fontColour(){return this.entry.fields.fontColour},position(){switch(_.matches?this.entry.fields.position:this.entry.fields.positionMobile){case"top-right":return"top-right";case"top-left":return"top-left";case"bottom-right":return"bottom-right";case"bottom-left":return"bottom-left";default:return"top-left"}}}};var f=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pricing-tag",class:[e.bannerType?`pricing-tags--${e.bannerType}`:"",`pricing-tags--${e.position}`],style:{backgroundColor:e.backgroundColor,color:e.fontColour}},[e.entry.fields.priceFormat==="From"?t("span",{staticClass:"pricing-tag__text",domProps:{textContent:e._s(e.$t("general.accessibility.price_tag_from"))}}):e._e(),e._v(" "),t("div",{staticClass:"pricing-tag__amount",domProps:{textContent:e._s(e.priceTagAmount)}}),e._v(" "),e.entry.fields.priceFormat==="Under"?t("span",{staticClass:"pricing-tag__text",domProps:{textContent:e._s(e.$t("general.accessibility.price_tag_under"))}}):e._e()])},u=[],g=s(m,f,u,!1,null,"dbb4a1a8");const b=g.exports,h={name:"BannerCard",components:{CallToAction:o,PricingTag:b},mixins:[i],props:{entry:{type:Object,required:!0},parentComponent:{type:Object,required:!0}},computed:{image(){return this.entry.fields.images&&this.entry.fields.images[0]||null}},methods:{trackLinkClicked(n){n.fields.url=n.fields.ctaUrl||n.fields.ctaUrlLong,c(n,this.parentComponent)}}};var y=function(){var e=this,t=e._self._c;return t("div",{staticClass:"banner-card"},[t("a",{staticClass:"banner-card__link",attrs:{href:e.entry.fields.ctaBanner.fields.ctaUrl||e.entry.fields.ctaBanner.fields.ctaUrlLong},on:{click:function(r){return e.trackLinkClicked(e.entry.fields.ctaBanner)}}},[e.imageIsSvg(e.image)?t("div",[t("span",{staticClass:"banner-card__image banner-card__svg",style:{"--image-url":"url("+e.svgPath(e.image)+")"}})]):t("div",{staticClass:"banner-card__picture-wrapper"},[e.entry.fields.priceImpression?t("pricing-tag",{attrs:{entry:e.entry.fields.priceImpression}}):e._e(),e._v(" "),t("picture",{staticClass:"banner-card__picture"},[t("source",{attrs:{srcset:e.webpImagePath(e.image,{width:1300})}}),e._v(" "),t("source",{attrs:{srcset:e.jpegImagePath(e.image,{width:1300})}}),e._v(" "),t("img",{staticClass:"banner-card__image",attrs:{src:e.jpegImagePath(e.image,{width:1300}),alt:e.entry.fields.ctaBanner.fields.ctaAriaLabel}})])],1)]),e._v(" "),e.entry.fields.title?t("h3",{staticClass:"banner-card__title heading-sm",domProps:{textContent:e._s(e.entry.fields.title)}}):e._e(),e._v(" "),e.entry.fields.ctaBanner?t("call-to-action",{staticClass:"banner-card__cta",attrs:{entry:e.entry.fields.ctaBanner,"parent-component":e.entry}}):e._e(),e._v(" "),e.entry.fields.description?t("p",{staticClass:"banner-card__description",domProps:{textContent:e._s(e.entry.fields.description)}}):e._e()],1)},C=[],v=s(h,y,C,!1,null,"34f7498c");const w=v.exports,$={name:"BannerGrid",components:{BannerCard:w,Carousel:l},props:{banners:{type:Array,required:!0},id:{type:String,required:!0},itemsPerRow:{type:Object,default:()=>({mobile:1,desktop:4})},parentComponent:{type:Object,required:!0}},data(){return{sliderOptions:{slidesPerView:this.banners.length>1?1.3:1,spaceBetween:24,navigation:this.banners.length>1,breakpoints:{600:{slidesPerView:this.banners.length>2?2.3:this.banners.length},900:{slidesPerView:this.banners.length>3?3.3:this.banners.length},1200:{slidesPerView:this.banners.length}},pagination:{type:"bar",position:"below",color:"#eeeeee"}}}},computed:{cssVars(){return{"--items-per-row--mobile":this.itemsPerRow.mobile||1,"--items-per-row--desktop":this.itemsPerRow.desktop||4}}}};var P=function(){var e=this,t=e._self._c;return t("div",{staticClass:"banner-grid",style:e.cssVars},[e.banners.length>1?[t("carousel",{attrs:{"use-skip-link":!1,"slide-count":e.banners.length,"slider-id":e.id,"slider-options":e.sliderOptions}},[t("template",{slot:"carousel-slides"},e._l(e.banners,function(r,a){return t("banner-card",{key:`${r.sys.id}-${a}`,staticClass:"swiper-slide",attrs:{entry:r,"parent-component":e.parentComponent}})}),1)],2)]:e._l(e.banners,function(r,a){return t("banner-card",{key:`${r.sys.id}-${a}`,staticClass:"swiper-slide",attrs:{entry:r,"parent-component":e.parentComponent}})})],2)},k=[],x=s($,P,k,!1,null,"c582539a");const B=x.exports,j={name:"AdBannerSection",components:{BannerGrid:B,RichContent:d},props:{entry:{type:Object,required:!0},isVip:{type:Boolean,default:!1}},data(){return{banners:this.entry.fields.banners}},watch:{"entry.fields":{handler(n){this.banners=n.banners,this.isVip||(this.banners=n.banners.filter(e=>!e.metadata.tags.find(t=>t.sys.id==="accountvip")))},immediate:!0,deep:!0}}};var R=function(){var e=this,t=e._self._c;return t("div",{staticClass:"ad-banner-section section",class:{"ad-banner-section--single":e.banners&&e.banners.length===1}},[e.entry.fields.title?t("h2",{staticClass:"ad-banner-section__title heading-lg",domProps:{textContent:e._s(e.entry.fields.title)}}
1):e._e(),e._v(" "),e.entry.fields.description?t("div",{staticClass:"ad-banner-section__description"},[t("rich-content",{staticClass:"ad-banner-section__rich-text",attrs:{data:e.entry.fields.description}})],1):e._e(),e._v(" "),e.banners?t("div",{staticClass:"ad-banner__grid"},[t("banner-grid",{class:"banner-grid--"+e.banners.length,attrs:{id:e.entry.sys.id,banners:e.banners,"parent-component":e.entry,"items-per-row":{mobile:1,desktop:e.banners.length}}})],1):e._e()])},q=[],A=s(j,R,q,!1,null,"19d94f15");const V=A.exports;export{V as A,b as P};

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.