PageSourceSearch

https://cdncontent.decathlon.in/_next/static/chunks/2225.763cf1016e06c684.js

js decathlon.in collected 2026-09-24 20:13:24 UTC 5,374 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2225],{56548:function(n,e,t){t.d(e,{Gn:function(){return GAEvent_categoryBannerClick},Vs:function(){return GAEvent_bannerViewPromotion},Yb:function(){return GAEvent_categoryBannerViewPromotion},uu:function(){return GAEvent_bannerClick}});var o=t(64902),i=(0,o.ej)("dkt_channelType")?(0,o.ej)("dkt_channelType"):"WEB",GAEvent_bannerViewPromotion=function(n){try{var e={event:"view_promotion",ecommerce:{items:null==n?void 0:n.map(function(n){return{id:null==n?void 0:n.id,name:null==n?void 0:n.name,creative:null==n?void 0:n.creative}})},channelType:i};window.dataLayer.push({ecommerce:null}),window.dataLayer.push(e)}catch(n){}},GAEvent_categoryBannerViewPromotion=function(n){try{var e={event:"view_promotion",ecommerce:{items:null==n?void 0:n.map(function(n){return{item_id:null==n?void 0:n.id,item_name:null==n?void 0:n.name,quantity:1,affiliation:"Decathlon Web Store",creative_name:null==n?void 0:n.creative_name,creative_slot:null==n?void 0:n.creative_slot}})},channelType:i};window.dataLayer.push({ecommerce:null}),window.dataLayer.push(e)}catch(n){}},GAEvent_bannerClick=function(n){try{var e={event:"select_promotion",ecommerce:{items:{id:null==n?void 0:n.id,name:null==n?void 0:n.name,creative:(null==n?void 0:n.floorHeading)||(null==n?void 0:n.creative)}},channelType:i};window.dataLayer.push({ecommerce:null}),window.dataLayer.push(e)}catch(n){}},GAEvent_categoryBannerClick=function(n){try{var e={event:"select_promotion",ecommerce:{items:{promotion_id:null==n?void 0:n.id,promotion_name:null==n?void 0:n.name,creative_name:null==n?void 0:n.creative_name,creative_slot:null==n?void 0:n.creative_slot,quantity:1}},channelType:i};window.dataLayer.push({ecommerce:null}),window.dataLayer.push(e)}catch(n){}}},32225:function(n,e,t){t.r(e);var o=t(75766),i=t(91309),a=t(4586),r=t(85893),l=t(62814),u=t(27275),c=t(67294),d=t(66832),v=t(2261),s=t(18667),m=t(31810),p=t(56548),_=t(23715),f=t(45140);e.default=function(n){var e,t,h=n.data.banners;n.pincode;var w=h.filter(function(n){return"top_three"!==n.floorType}),y=(0,i._)((0,c.useState)(w),2),C=y[0],k=y[1],b=(0,c.useRef)(null),B=(0,u.Z)().isDesktop;(0,c.useEffect)(function(){var n,e;b.current&&b.current.swiper&&(null===(n=h[0])||void 0===n?void 0:n.floorType)==="top_three"&&(0,f.u)().then(function(n){var t;if((null==n?void 0:n.status)&&(null==n?void 0:null===(t=n.recommended_products)||void 0===t?void 0:t.length)>0){var i,a,r,u,c=[];(null==(e=null==n?void 0:null===(i=n.recommended_products)||void 0===i?void 0:i[0])?void 0:null===(a=e.sport_one)||void 0===a?void 0:a.length)>0&&c.push(e.sport_one[0]),(null==e?void 0:null===(r=e.sport_two)||void 0===r?void 0:r.length)>0&&c.push(e.sport_two[0]),(null==e?void 0:null===(u=e.sport_three)||void 0===u?void 0:u.length)>0&&c.push(e.sport_three[0]);var d=c.join();return(0,s.or)((0,o._)({content_type:l.bannerCardContent.type},l.bannerCardContent.key,d))}return null}).then(function(n){var t;if(n&&(null===(t=n.items)||void 0===t?void 0:t.length)>0){var o=(0,f.p)(n,e);o=(0,m.Kw)(o.items),k((0,a._)(o).concat((0,a._)(C)))}})},[b]),(0,c.useEffect)(function(){var e;(0,s.fZ)(),e=null==C?void 0:C.map(function(n){return{id:null==n?void 0:n.id,name:null==n?void 0:n.name,creative:"Main Banner"}}),(null==n?void 0:n.mainBannerCallback)&&(null==n||n.mainBannerCallback(e)),(null==n?void 0:n.onView)&&n.onView()},[C,null==n?void 0:n.mainBannerCallback,null==n?void 0:n.onView]);var GAEvent_mainBannerClick=function(e){(0,p.uu)(e),(null==n?void 0:n.onClick)&&n.onClick(e)};return(0,r.jsx)(r.Fragment,{children:(null==C?void 0:C.length)>0?(0,r.jsx)("div",{className:"py-2",children:C.length>1?(0,r.jsx)(v.tq,{modules:[d.pt,d.W_,d.tl],pagination:{clickable:!0,dynamicBullets:!0},loop:!0,autoplay:{delay:3500},navigation:B,children:null==C?void 0:C.map(function(n,e){var t={id:null==n?void 0:n.id,name:null==n?void 0:n.name,creative:"Main Banner"};return(0,r.jsx)(v.o5,{children:(0,r.jsx)(_.Z,{banner:n,i:e,GAEvent_mainBannerClick:GAEvent_mainBannerClick,maindata:t})})})}):(0,r.jsx)(_.Z,{banner:C[0],i:0,GAEvent_mainBannerClick:GAEvent_mainBannerClick,maindata:{id:null===(e=C[0])||void 0===e?void 0:e.id,name:null===(t=C[0])||void 0===t?void 0:t.name,creative:"Main Banner"}})}):null})}},45140:function(n,e,t){t.d(e,{p:function(){return rearrangeBanner},u:function(){return u}});var o,i=t(11010),a=t(97582),r=t(92057),l=t(83454),u=(o=(0,i._)(function(){return(0,a.Jh)(this,function(n){switch(n.label){case 0:return[4,(0,r.Z)(null,"/api/perso-reco",{data:{floorType:"top_three"},timeout:l.env.NEXT_PUBLIC_GLOBAL_API_TIMEOUT})];case 1:return[2,n.sent()||null]}})}),function(){return o.apply(this,arguments)}),rearrangeBanner=function(n,e){for(var _loop=function(o){n.items.forEac
1h(function(n){(0===o&&e.sport_one[0].toLowerCase()===n.fields.slug.toLowerCase()||1===o&&e.sport_two[0].toLowerCase()===n.fields.slug.toLowerCase()||2===o&&e.sport_three[0].toLowerCase()===n.fields.slug.toLowerCase())&&t.items.push(n)})},t={items:[]},o=0;o<3;o+=1)_loop(o);return t}},27275:function(n,e,t){t.d(e,{Z:function(){return useDeviceContext}});var o=t(27194),i=t(67294);function useDeviceContext(){var n=(0,i.useContext)(o.ZP).contextDevice,e=n===o.n6.desktop,t=n===o.n6.tablet,a=n===o.n6.mobile,r=n!==o.n6.desktop;return{deviceContext:n,deviceTypes:o.n6,isDesktop:e,isTablet:t,isMobile:a,isTabletAndMobile:r}}}}]);

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.