PageSourceSearch

https://www.decathlon.sg/_next/static/chunks/6163.fa970366ceb097cc.js

js decathlon.sg collected 2026-10-02 06:17:33 UTC 3,755 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];if(null!=r)for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:apac-chopper-web-id":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0c1ce0fb-b1c5-4398-a18b-4c34fe863593",e._sentryDebugIdIdentifier="sentry-dbid-0c1ce0fb-b1c5-4398-a18b-4c34fe863593")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1401,6163],{23278:(e,t,r)=>{r.d(t,{YE:()=>a,Zm:()=>s});var n=r(14232);let a=(0,n.createContext)({productSizeIndexContext:0,setProductSizeIndexContext:()=>{}}),s=()=>(0,n.useContext)(a)},34233:(e,t,r)=>{r.d(t,{s:()=>n});let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];"function"==typeof e&&e(...r)}},66163:(e,t,r)=>{r.r(t),r.d(t,{SmartSize:()=>v,default:()=>w});var n=r(37876),a=r(14232),s=r(53478),o=r(67362),d=r(59298),l=r(12601),i=r(23278),c=r(49259),u=r(39324),f=r.n(u),g=r(48459),b=r(31753);let y=e=>{let{attributes:t,title:r,serializeMessage:s=!0,targetOrigin:o="*",postMessageData:d="",handleReceiveMessage:l,onLoad:i}=e;(0,a.useEffect)(()=>{let e=e=>{l&&l(e).catch(e=>{console.error(e)})};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}},[]),(0,a.useEffect)(()=>{c(d)},[d]);let c=e=>{var t;let r=(e=>s?"object"==typeof e?JSON.stringify(e):"string"==typeof e?e:"".concat(e):e)(e);(null==(t=f.current)?void 0:t.contentWindow)&&f.current.contentWindow.postMessage(r,o)},u=Object.assign({},{allowFullScreen:!1,frameBorder:0},t),f=(0,a.useRef)(null);return(0,n.jsx)("iframe",{ref:f,title:r,...u,onLoad:i})};var h=r(12824),p=r(11362),_=r(89099),m=r(34233);let S=(0,g.A)("https://smartsize-front.decathlon.net/"),v=e=>{let{modelId:t,items:r}=e,u=(0,_.useRouter)(),v=(0,c.JK)(),{publicRuntimeConfig:w}=f()(),E=(0,g.A)(w.NEXT_PUBLIC_SMARTSIZE_CLIENT_ID),I="".concat((0,c.CQ)(u),"/smartsize/fallback"),C={src:"".concat(S,"?modelCode=").concat(t,"&locale=").concat(v,"&clientId=").concat(E),width:"100%",height:"100%",frameBorder:0,id:"smartsize-iframe"},[M,x]=(0,a.useState)(C),[z,R]=(0,a.useState)(!1),T=(0,o.Yf)(),{t:L}=(0,b.Bd)();(0,a.useEffect)(()=>{x(C),R(!0)},[t]);let{productActionContext:O,setProductActionContext:k}=(0,d.I9)(),{setProductSizeIndexContext:A,setSelectedSizeInSmartSize:D}=(0,i.Zm)(),N=()=>{k({...O,smartSizePopupModelId:""})},Z=async e=>{if("string"==typeof e.data&&e.data.startsWith("{"))try{var t,n;let a=JSON.parse(e.data);switch(a.event){case"SIZE_SELECTED":(e=>{let t=r?r.findIndex(t=>t.itemId===e):-1;if(-1!==t){A(t),(0,m.s)(D,!0),N();return}let n="web_size_not_available";T.addToast(L(n)),(0,h.ZA)({router:u,errorType:p._8.TOAST,errorName:p.ZJ.SMART_SIZE,errorMessage:n})})(null==a||null==(t=a.data)?void 0:t.article);return;case"ERROR":case"CLOSE":n=a.event,"CLOSE"===n&&(0,l.yb)({logLevel:l.dt.INFO,message:"Smart Size closed on error page",useConsoleDebug:!0}),I&&window.open(I,"_blank","noopener,noreferrer"),N();return;default:return}}catch(r){let t=r instanceof Error?r.message:"";(0,l.yb)({logLevel:l.dt.ERROR,message:"Smart Size",useConsoleDebug:!0,additionalInfo:{error_data:e.data,error_message:t}})}};return(0,n.jsx)(n.Fragment,{children:z&&(0,n.jsx)(s.A,{onClose:N,isCenter:!0,height:"80vh",width:"90vh",isHidden:!t,zIndex:10,children:(0,n.jsx)(y,{title:"Personalised Smart Size",attributes:M,handleReceiveMessage:Z})})})},w=v}}]);

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.