1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2174],{56548:function(e,n,i){i.d(n,{Gn:function(){return GAEvent_categoryBannerClick},Vs:function(){return GAEvent_bannerViewPromotion},Yb:function(){return GAEvent_categoryBannerViewPromotion},uu:function(){return GAEvent_bannerClick}});var t=i(64902),o=(0,t.ej)("dkt_channelType")?(0,t.ej)("dkt_channelType"):"WEB",GAEvent_bannerViewPromotion=function(e){try{var n={event:"view_promotion",ecommerce:{items:null==e?void 0:e.map(function(e){return{id:null==e?void 0:e.id,name:null==e?void 0:e.name,creative:null==e?void 0:e.creative}})},channelType:o};window.dataLayer.push({ecommerce:null}),window.dataLayer.push(n)}catch(e){}},GAEvent_categoryBannerViewPromotion=function(e){try{var n={event:"view_promotion",ecommerce:{items:null==e?void 0:e.map(function(e){return{item_id:null==e?void 0:e.id,item_name:null==e?void 0:e.name,quantity:1,affiliation:"Decathlon Web Store",creative_name:null==e?void 0:e.creative_name,creative_slot:null==e?void 0:e.creative_slot}})},channelType:o};window.dataLayer.push({ecommerce:null}),window.dataLayer.push(n)}catch(e){}},GAEvent_bannerClick=function(e){try{var n={event:"select_promotion",ecommerce:{items:{id:null==e?void 0:e.id,name:null==e?void 0:e.name,creative:(null==e?void 0:e.floorHeading)||(null==e?void 0:e.creative)}},channelType:o};window.dataLayer.push({ecommerce:null}),window.dataLayer.push(n)}catch(e){}},GAEvent_categoryBannerClick=function(e){try{var n={event:"select_promotion",ecommerce:{items:{promotion_id:null==e?void 0:e.id,promotion_name:null==e?void 0:e.name,creative_name:null==e?void 0:e.creative_name,creative_slot:null==e?void 0:e.creative_slot,quantity:1}},channelType:o};window.dataLayer.push({ecommerce:null}),window.dataLayer.push(n)}catch(e){}}},82174:function(e,n,i){i.r(n),i.d(n,{default:function(){return CategoryBanners_CategoryBanners}});var t=i(85893),o=i(67294),l=i(91309),a=i(25675),r=i.n(a),d=i(90455),c=i(27194),CategoryBanners_CategoryBannerCards=function(e){var n,i=e.bannerCardsData,a=e.categoryChildStyles,u=e.parentRef,v=e.padding,s=e.GAEvent_bannerClick,m=i.name,p=i.bigTitle,f=i.smallTitle,h=i.buttonText,g=i.desktopImage,y=i.mobileImage,x=i.redirectionURL,b=(0,l._)((0,o.useState)(0),2),k=b[0],w=b[1];(0,o.useEffect)(function(){w(document.getElementById("category-banner-container").clientWidth)},[]);var _=(0,o.useContext)(c.Tp).contextDevice===c.n6.desktop,B=(null==u?void 0:null===(n=u.current)||void 0===n?void 0:n.offsetHeight)||100;return(0,t.jsx)(d.Z,{href:x,onClick:function(){s(i)},children:(0,t.jsxs)("div",{className:"relative",children:[p||f||h?(0,t.jsxs)("div",{className:"absolute flex flex-col md:gap-2 gap-1 md:mx-12 mx-8 haupve md:top-[25%]",children:[(0,t.jsx)("h3",{className:"md:text-36 font-bold text-white",children:p}),(0,t.jsx)("p",{className:"md:text-24 font-normal text-white",children:f}),(0,t.jsx)("div",{className:"w-full",children:B-v>=110?(0,t.jsx)("button",{className:"kzdqUK md:text-[15px] BxZvsW md:px-6 md:py-2 px-3 py-1 font-bold rounded-[4px] bUSshO uppercase",children:h}):null})]}):null,(0,t.jsx)(r(),{src:_?g:y,alt:m,className:"swiper-lazy w-full h-full",width:k,height:_?423:105,style:a,loading:"eager",sizes:"(max-width: 320px) 320px, (max-width: 425px) 425px, (max-width: 768px) 768px, (max-width: 1024px) 1024px, (max-width: 1200px) 1024px, (max-width: 1440px) 1200px, 1440px"})]})})},u=i(2261),v=i(66832),s=i(93967),m=i.n(s),p=i(35629),f=i(11010),h=i(97582),g=i(87066),y=i(45697),x=i.n(y),b=i(5152),k=i.n(b)()(function(){return i.e(8101).then(i.bind(i,98101))},{loadableGenerated:{webpack:function(){return[98101]}}}),VideoBannerCat=function(e){var n=e.banner,i=e.GAEvent_bannerClick,a=(0,l._)((0,o.useState)(null),2),r=a[0],d=a[1],c=(0,l._)((0,o.useState)(null),2),u=c[0],v=c[1],s=(0,l._)((0,o.useState)(!0),2),m=s[0],p=s[1];(0,o.useEffect)(function(){var e;(e=(0,f._)(function(){var e,i,t,o,l;return(0,h.Jh)(this,function(a){switch(a.label){case 0:if(!(null==n?void 0:n.videoBannerUrl)||!(e=getVideoIdFromUrl(null==n?void 0:n.videoBannerUrl)))return[2];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,g.Z.get("https://edge.api.brightcove.com/playback/v1/accounts/3415345270001/videos/".concat(e),{headers:{"BCOV-Policy":"BCpkADawqM32Y1B_NO6aXNzGybLomK5OeXmXGhcROkEX814--h00Ayld41YZ8pOxJlT3-chmtQW20tzABw-D6EYau3KUqkMBqqLwPBdN_g1JFoZNuuliJFk7DKcJJxvy4YDQuA1e1eqFSOmW"}})];case 2:return t=(i=a.sent()).data.sources.find(function(e){return"MP4"===e.container}),o=i.data.poster,t?d(t.src.replace(/^http:\/\//i,"https://")):d(null),o&&v(o),p(!1),[3,4];case 3:return l=a.sent(),console.error("Error fetching video data for videoId ".concat(e,":"),l),p(!1),[3,4];case 4:return[2]}})}),function(){return e.apply(this,arguments)})()},[n.videoBannerUrl]);var getVideoIdFromUrl=function(e){try{return new URL(e).searchParams.get("videoId")}catch(e){return console.error("Invalid video URL:",e),null}};return m?(0,t.jsx)(k,{}):m&&u?(0,t.jsx)("img",{onClick:function(){i(n)},src:u,alt:"".concat(n.name," Poster"),className:"mx-auto"}):r?(0,t.jsx)("div",{onClick:function(){i(n)},className:"relative",children:(0,t.jsx)("video",{preload:"none",src:r,autoPlay:!0,loop:!0,playsInl
1ine:!0,muted:!0,className:"mx-auto"})}):(0,t.jsx)("div",{children:"No video available"})};VideoBannerCat.propTypes={banner:x().shape({videoBannerUrl:x().string.isRequired,name:x().string.isRequired}).isRequired};var w=i(56548),CategoryBanners_CategoryBanners=function(e){var n,i,l,a,r,c,s,f,h,g,y,x,b,k,_,B,C=e.bannerIndex,I=e.data,T=e.isDesktop,E=e.homePage,N=e.categoryBannersCallback,R=e.onView,j=e.onClick,L=[],U=(0,o.useRef)(null),A=(0,o.useRef)();(0,o.useLayoutEffect)(function(){if(U.current){var e,n;U.current.style.setProperty("--bullet-color",(null===(e=G[0])||void 0===e?void 0:e.carouselIndicatorActive)||"#3643BA"),U.current.style.setProperty("--bullet-color-inactive",(null===(n=G[0])||void 0===n?void 0:n.carouselIndicatorInactive)||"#a19d9d"),U.current.style.setProperty("--bullet-inactive-opacity","1")}},[]),(0,o.useEffect)(function(){if(e.categoryBannersCallback){var n=P.filter(function(e){return(null==e?void 0:e.desktopImage)&&(null==e?void 0:e.mobileImage)}).map(function(e){return{id:null==e?void 0:e.id,name:null==e?void 0:e.name,creative_name:null==e?void 0:e.creativeName,creative_slot:null==e?void 0:e.creativeSlot}});(null==n?void 0:n.length)>0&&N(n)}},[]),(0,o.useEffect)(function(){R&&R()},[]);var G=I.filter(function(e){return T?e.floorPositionWeb===C:e.floorPosition===C});(null===(n=G[0])||void 0===n?void 0:n.type)==="defaultBanners"&&(L=G[0].categoryBannerCards),(null===(i=G[0])||void 0===i?void 0:i.type)==="categoryBanners"&&(L=G[0].categoryBannerImgSection);var P=L.map(function(e,n){var i,t,o,l,a,r,d,c,u,v,s,m;return{id:null==e?void 0:null===(i=e.sys)||void 0===i?void 0:i.id,name:null==e?void 0:null===(t=e.fields)||void 0===t?void 0:t.name,bigTitle:null==e?void 0:null===(o=e.fields)||void 0===o?void 0:o.bigTitle,smallTitle:null==e?void 0:null===(l=e.fields)||void 0===l?void 0:l.smallTitle,buttonText:null==e?void 0:null===(a=e.fields)||void 0===a?void 0:a.ctaText,desktopImage:null==e?void 0:null===(r=e.fields)||void 0===r?void 0:r.catImageDesktopUrl,mobileImage:null==e?void 0:null===(d=e.fields)||void 0===d?void 0:d.catImageMobileUrl,wcmsVideoBanner:null==e?void 0:null===(c=e.fields)||void 0===c?void 0:c.catVideoBanner,videoBannerUrl:null==e?void 0:null===(u=e.fields)||void 0===u?void 0:u.catVideoBannerUrl,redirectionURL:null==e?void 0:null===(v=e.fields)||void 0===v?void 0:v.imageHyperLink,hyperlinkTracking:null==e?void 0:null===(s=e.fields)||void 0===s?void 0:s.hyperlinkTracking,creativeName:null===(m=G[0])||void 0===m?void 0:m.name,creativeSlot:n}}),V=(P=P.filter(function(e){return(null==e?void 0:e.name)&&((null==e?void 0:e.desktopImage)||(null==e?void 0:e.videoBannerUrl))})).some(function(e){return null==e?void 0:e.videoBannerUrl}),S={paddingBottom:"".concat((null===(l=G[0])||void 0===l?void 0:l.paddingBottom)||0,"px"),paddingLeft:"".concat((null===(a=G[0])||void 0===a?void 0:a.paddingLeft)||0,"px"),paddingRight:"".concat((null===(r=G[0])||void 0===r?void 0:r.paddingRight)||0,"px"),paddingTop:"".concat((null===(c=G[0])||void 0===c?void 0:c.paddingTop)||0,"px"),background:(null===(s=G[0])||void 0===s?void 0:s.catBackgroundImageDesktop)?"url(".concat(null===(f=G[0])||void 0===f?void 0:f.catBackgroundImageDesktop,")"):null===(h=G[0])||void 0===h?void 0:h.catBackgroundColour},q={borderRadius:"".concat((null===(g=G[0])||void 0===g?void 0:g.borderRadiusTopLeft)||0,"px ").concat((null===(y=G[0])||void 0===y?void 0:y.borderRadiusTopRight)||0,"px \n ").concat((null===(x=G[0])||void 0===x?void 0:x.borderRadiusBottomRight)||0,"px ").concat((null===(b=G[0])||void 0===b?void 0:b.borderRadiusBottomLeft)||0,"px")},GAEvent_bannerClick=function(e){var n={id:null==e?void 0:e.id,name:null==e?void 0:e.name,creative_name:null==e?void 0:e.creativeName,creative_slot:null==e?void 0:e.creativeSlot};(0,w.Gn)(n),j&&j(e)};return(0,t.jsx)("div",{ref:U,className:m()("w-full h-auto md:mb-10 my-1",{"md:w-[calc(100%-33px)]":!E,"w-full":E}),id:"category-banner-container",style:S,children:(0,t.jsx)(u.tq,{modules:[v.pt,v.tl],pagination:null!==(k=G[0])&&void 0!==k&&!!k.carouselIndicator&&{clickable:!0,dynamicBullets:!0},autoplay:!V&&{delay:(null===(_=G[0])||void 0===_?void 0:_.carouselInterval)?1e3*parseInt(null===(B=G[0])||void 0===B?void 0:B.carouselInterval):3500,disableOnInteraction:!0},loop:!0,children:null==P?void 0:P.map(function(e,n){var i,o;return(0,t.jsx)(u.o5,{className:"relative w-full h-full",children:(null==e?void 0:e.videoBannerUrl)?(0,t.jsxs)(d.Z,{href:null==e?void 0:e.redirectionURL,onClick:null==e?void 0:e.hyperlinkTracking,target:(null==e?void 0:e.redirectionURL)?"_blank":"",children:[(0,t.jsx)(VideoBannerCat,{GAEvent_bannerClick:GAEvent_bannerClick,banner:e}),(null==e?void 0:e.buttonText)?(0,t.jsx)("div",{className:"videoCenterBtn ",children:(0,t.jsx)(p.Z,{type:"submit",className:" px-5 py-2 md:py-3 mr-4 overflow-hidden text-white transition duration-300 bg-blue-400 bottom-6 rounded-3xl max-w-100 hover:bg-blue-300 uppercase font-condensed text-8 font-medium md:text-16 md:shadow-md btn-default btn-md btn",children:null==e?void 0:e.buttonText})}):null]}):e.desktopImage&&e.mobileImage?(0,t.jsx)(CategoryBanners_CategoryBannerCards,{swiperRef:A,parentRef:U,GAEvent_bannerClick:GAEvent_bannerClick,padding:parseInt((null===(i=G[0])||void 0===i?void 0:i.paddingBottom)||
10)+parseInt((null===(o=G[0])||void 0===o?void 0:o.paddingTop)||0),categoryChildStyles:q,bannerCardsData:e},null==e?void 0:e.name):null},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.