PageSourceSearch

https://www.jdsports.dk/_next/static/chunks/0fcd3kqtdpylc.js

js jdsports.dk collected 2026-10-04 21:52:37 UTC 26,965 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,744971,e=>{"use strict";var t=e.i(391398),r=e.i(633634),n=e.i(75907),a=e.i(191788),o=e.i(730943),i=e.i(671185),s=e.i(357006),l=e.i(352162),c=e.i(479293),u=e.i(64899),d=e.i(901876),p=e.i(993953),m=e.i(674534),f=e.i(998657),v=e.i(55037),w=e.i(776833),g=e.i(740247);let y="ToastProvider",[E,b,x]=(0,l.createCollection)("Toast"),[T,P]=(0,c.createContextScope)("Toast",[x]),[h,C]=T(y),R=e=>{let{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,c]=(0,a.useState)(null),[u,d]=(0,a.useState)(0),p=(0,a.useRef)(!1),m=(0,a.useRef)(!1);return(0,a.createElement)(E.Provider,{scope:t},(0,a.createElement)(h,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:c,onToastAdd:(0,a.useCallback)(()=>d(e=>e+1),[]),onToastRemove:(0,a.useCallback)(()=>d(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:m},s))};R.propTypes={label:e=>e.label&&"string"==typeof e.label&&!e.label.trim()?Error(`Invalid prop \`label\` supplied to \`${y}\`. Expected non-empty \`string\`.`):null};let _=["F8"],S="toast.viewportPause",A="toast.viewportResume",L=(0,a.forwardRef)((e,t)=>{let{__scopeToast:r,hotkey:o=_,label:i="Notifications ({hotkey})",...l}=e,c=C("ToastViewport",r),d=b(r),p=(0,a.useRef)(null),f=(0,a.useRef)(null),v=(0,a.useRef)(null),w=(0,a.useRef)(null),g=(0,s.useComposedRefs)(t,w,c.onViewportChange),y=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=c.toastCount>0;(0,a.useEffect)(()=>{let e=e=>{var t;o.every(t=>e[t]||e.code===t)&&(null==(t=w.current)||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),(0,a.useEffect)(()=>{let e=p.current,t=w.current;if(x&&e&&t){let r=()=>{if(!c.isClosePausedRef.current){let e=new CustomEvent(S);t.dispatchEvent(e),c.isClosePausedRef.current=!0}},n=()=>
1{if(c.isClosePausedRef.current){let e=new CustomEvent(A);t.dispatchEvent(e),c.isClosePausedRef.current=!1}},a=t=>{e.contains(t.relatedTarget)||n()},o=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",a),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",o),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",a),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",o),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}},[x,c.isClosePausedRef]);let T=(0,a.useCallback)(({tabbingDirection:e})=>{let t=d().map(t=>{let r=t.ref.current,n=[r,...function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}(r)];return"forwards"===e?n:n.reverse()});return("forwards"===e?t.reverse():t).flat()},[d]);return(0,a.useEffect)(()=>{let e=w.current;if(e){let t=t=>{let r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){var n,a,o;let r=document.activeElement,i=t.shiftKey;if(t.target===e&&i){null==(n=f.current)||n.focus();return}let s=T({tabbingDirection:i?"backwards":"forwards"}),l=s.findIndex(e=>e===r);K(s.slice(l+1))?t.preventDefault():i?null==(a=f.current)||a.focus():null==(o=v.current)||o.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[d,T]),(0,a.createElement)(u.Branch,{ref:p,role:"region","aria-label":i.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:x?void 0:"none"}},x&&(0,a.createElement)(D,{ref:f,onFocusFromOutsideViewport:()=>{K(T({tabbingDirection:"forwards"}))}}),(0,a.createElement)(E.Slot,{scope:r},(0,a.createElement)(m.Primitive.ol,(0,n.default)({tabIndex:-1},l,{ref:g}))),x&&(0,a.createElement)(D,{ref:v,onFocusFromOutsideViewport:()=>{K(T({tabbingDirection:"backwards"}))}}))}),D=(0,a.forwardRef)((e,t)=>{let{__scopeToast:r,onFocusFromOutsideViewport:o,...i}=e,s=C("ToastFocusProxy",r);return(0,a.createElement)(g.VisuallyHidden,(0,n.default)({"aria-hidden":!0,tabIndex:0},i,{ref:t,style:{position:"fixed"},onFocus:e=>{var t;let r=e.relatedTarget;null!=(t=s.viewport)&&t.contains(r)||o()}}))}),k="Toast",N=(0,a.forwardRef)((e,t)=>{let{forceMount:r,open:o,defaultOpen:s,onOpenChange:l,...c}=e,[u=!0,d]=(0,v.useControllableState)({prop:o,defaultProp:s,onChange:l});return(0,a.createElement)(p.Presence,{present:r||u},(0,a.createElement)(j,(0,n.default)({open:u},c,{ref:t,onClose:()=>d(!1),onPause:(0,f.useCallbackRef)(e.onPause),onResume:(0,f.useCallbackRef)(e.onResume),onSwipeStart:(0,i.composeEventHandlers)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,i.composeEventHandlers)(e.onSwipeMove,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${r}px`)}),onSwipeCancel:(0,i.composeEventHandlers)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,i.composeEventHandlers)(e.onSwipeEnd,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${r}px`),d(!1)})})))}),[I,O]=T(k,{onClose(){}}),j=(0,a.forwardRef)((e,t)=>{let{__scopeToast:r,type:l="foreground",duration:c,open:d,onClose:p,onEscapeKeyDown:v,onPause:w,onResume:g,onSwipeStart:y,onSwipeMove:b,onSwipeCancel:x,onSwipeEnd:T,...P}=e,h=C(k,r),[R,_]=(0,a.useState)(null),L=(0,s.useComposedRefs)(t,e=>_(e)),D=(0,a.useRef)(null),N=(0,a.useRef)(null),O=c||h.duration,j=(0,a.useRef)(0),F=(0,a.useRef)(O),M=(0,a.useRef)(0),{onToastAdd:$,onToastRemove:H}=h,U=(0,f.useCallbackRef)(()=>{var e;(null==R?void 0:R.contains(document.activeElement))&&(null==(e=h.viewport)||e.focus()),p()}),K=(0,a.useCallback)(e=>
1{e&&e!==1/0&&(window.clearTimeout(M.current),j.current=new Date().getTime(),M.current=window.setTimeout(U,e))},[U]);(0,a.useEffect)(()=>{let e=h.viewport;if(e){let t=()=>{K(F.current),null==g||g()},r=()=>{let e=new Date().getTime()-j.current;F.current=F.current-e,window.clearTimeout(M.current),null==w||w()};return e.addEventListener(S,r),e.addEventListener(A,t),()=>{e.removeEventListener(S,r),e.removeEventListener(A,t)}}},[h.viewport,O,w,g,K]),(0,a.useEffect)(()=>{d&&!h.isClosePausedRef.current&&K(O)},[d,O,h.isClosePausedRef,K]),(0,a.useEffect)(()=>($(),()=>H()),[$,H]);let G=(0,a.useMemo)(()=>R?function e(t){let r=[];return Array.from(t.childNodes).forEach(t=>{var n;if(t.nodeType===t.TEXT_NODE&&t.textContent&&r.push(t.textContent),(n=t).nodeType===n.ELEMENT_NODE){let n=t.ariaHidden||t.hidden||"none"===t.style.display,a=""===t.dataset.radixToastAnnounceExclude;if(!n)if(a){let e=t.dataset.radixToastAnnounceAlt;e&&r.push(e)}else r.push(...e(t))}}),r}(R):null,[R]);return h.viewport?(0,a.createElement)(a.Fragment,null,G&&(0,a.createElement)(V,{__scopeToast:r,role:"status","aria-live":"foreground"===l?"assertive":"polite","aria-atomic":!0},G),(0,a.createElement)(I,{scope:r,onClose:U},(0,o.createPortal)((0,a.createElement)(E.ItemSlot,{scope:r},(0,a.createElement)(u.Root,{asChild:!0,onEscapeKeyDown:(0,i.composeEventHandlers)(v,()=>{h.isFocusedToastEscapeKeyDownRef.current||U(),h.isFocusedToastEscapeKeyDownRef.current=!1})},(0,a.createElement)(m.Primitive.li,(0,n.default)({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":h.swipeDirection},P,{ref:L,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,i.composeEventHandlers)(e.onKeyDown,e=>{"Escape"===e.key&&(null==v||v(e.nativeEvent),e.nativeEvent.defaultPrevented||(h.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:(0,i.composeEventHandlers)(e.onPointerDown,e=>{0===e.button&&(D.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,i.composeEventHandlers)(e.onPointerMove,e=>{if(!D.current)return;let t=e.clientX-D.current.x,r=e.clientY-D.current.y,n=!!N.current,a=["left","right"].includes(h.swipeDirection),o=["left","up"].includes(h.swipeDirection)?Math.min:Math.max,i=a?o(0,t):0,s=a?0:o(0,r),l="touch"===e.pointerType?10:2,c={x:i,y:s},u={originalEvent:e,delta:c};n?(N.current=c,B("toast.swipeMove",b,u,{discrete:!1})):W(c,h.swipeDirection,l)?(N.current=c,B("toast.swipeStart",y,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(r)>l)&&(D.current=null)}),onPointerUp:(0,i.composeEventHandlers)(e.onPointerUp,e=>{let t=N.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),N.current=null,D.current=null,t){let r=e.currentTarget,n={originalEvent:e,delta:t};W(t,h.swipeDirection,h.swipeThreshold)?B("toast.swipeEnd",T,n,{discrete:!0}):B("toast.swipeCancel",x,n,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})))),h.viewport))):null});j.propTypes={type:e=>e.type&&!["foreground","background"].includes(e.type)?Error(`Invalid prop \`type\` supplied to \`${k}\`. Expected \`foreground | background\`.`):null};let V=e=>{let{__scopeToast:t,children:r,...n}=e,o=C(k,t),[i,s]=(0,a.useState)(!1),[l,c]=(0,a.useState)(!1);return function(e=()=>{}){let t=(0,f.useCallbackRef)(e);(0,w.useLayoutEffect)(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>s(!0)),(0,a.useEffect)(()=>{let e=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(e)},[]),l?null:(0,a.createElement)(d.Portal,{asChild:!0},(0,a.createElement)(g.VisuallyHidden,n,i&&(0,a.createElement)(a.Fragment,null,o.label," ",r)))},F=(0,a.forwardRef)((e,t)=>{let{__scopeToast:r,...o}=e;return(0,a.createElement)(m.Primitive.div,(0,n.default)({},o,{ref:t}))}),M=(0,a.forwardRef)((e,t)=>{let{__scopeToast:r,...o}=e;return(0,a.createElement)(m.Primitive.div,(0,n.default)({},o,{ref:t}))}),$=(0,a.forwardRef)((e,t)=>{let{altText:r,...o}=e;return r?(0,a.createElement)(U,{altText:r,asChild:!0},(0,a.createElement)(H,(0,n.default)({},o,{ref:t}))):null});$.propTypes={altText:e=>e.altText?null:Error("Missing prop `altText` expected on `ToastAction`")};let H=(0,a.forwardRef)((e,t)=>{let{__scopeToast:r,...o}=e,s=O("ToastClose",r);return(0,a.createElement)(U,{asChild:!0},(0,a.createElement)(m.Primitive.button,(0,n.default)({type:"button"},o,{ref:t,onClick:(0,i.composeEventHandlers)(e.onClick,s.onClose)})))}),U=(0,a.forwardRef)((e,t)=>{let{__scopeToast:r,altText:o,...i}=e;return(0,a.createElement)(m.Primitive.div,(0,n.default)({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0},i,{ref:t}))});function B(e,t,r,{discrete:n}){let a=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?(0,m.dispatchDiscreteCustomEvent)(a,o):a.dispatchEvent(o)}let W=(e,t,r=0)=>{let n=Math.abs(e.x),a=Math.abs(e.y),o=n>a;return"left"===t||"right"===t?o&&n>r:!o&&a>r};function K(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var G=e.i(648684),z=e.i(608631),q=e.i(478992);let J=(0,G.cva)("flex gap-16 rounded p-12",{variants:{variant:{info:"bg-blue-200",warning:"bg-amber-300",error:"bg-red-200",positive:"bg-green-200"}},defaultVariants:{variant:"info"}}),X=(0,a.forwardRef)(({className:e,...n},a)=>{let o=(0,q.useTranslations)();return(0,t.jsx)(L,{ref:a,className:(0,r.cn)("w-100 fixed bottom-0 right-0 z-[2147483647] m-0 flex max-w-[100vw] list-none flex-col items-end gap-[10px] p-12 outline-none",e),label:`${o("notification.notificationsLabel")} ({hotkey})`,...n})});X.displayName=L.displayName;let Y=(0,a.forwardRef)(({className:e,variant:n,...a},o)=>(0,t.jsx)(N,{ref:o,className:(0,r.cn)("md:min-w-[176px] md:max-w-[304px]",J({variant:n,className:e})),...a}
1));Y.displayName=N.displayName;let Q=(0,a.forwardRef)(({className:e,...n},a)=>{let o=(0,q.useTranslations)();return(0,t.jsx)(H,{ref:a,className:(0,r.cn)("mb-auto ml-auto",e),"aria-label":o("notification.closeButtonAriaLabel"),...n,children:(0,t.jsx)(z.default,{className:"h-16 w-16 text-grey-100","aria-hidden":!0})})});Q.displayName=H.displayName;let Z=(0,a.forwardRef)(({className:e,...n},a)=>(0,t.jsx)(F,{ref:a,className:(0,r.cn)("font-medium",e),...n}));Z.displayName=F.displayName;let ee=(0,a.forwardRef)(({className:e,children:n,...a},o)=>(0,t.jsx)($,{ref:o,className:(0,r.cn)("mb-auto ml-auto",e),asChild:!0,...a,children:n}));e.s(["Toast",0,Y,"ToastAction",0,ee,"ToastClose",0,Q,"ToastDescription",0,M,"ToastProvider",0,R,"ToastTitle",0,Z,"ToastViewport",0,X],744971)},696611,e=>{"use strict";var t=e.i(391398);e.s(["default",0,function(e){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",width:"25",height:"24",fill:"none",...e,children:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M18.274 21.633a1 1 0 0 1-1.407.141L6.813 13.548a2 2 0 0 1 0-3.096l10.054-8.226a1 1 0 1 1 1.266 1.548L8.08 12l10.054 8.226a1 1 0 0 1 .141 1.407",clipRule:"evenodd",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}])},531636,e=>{"use strict";var t=e.i(391398);e.s(["default",0,function(e){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 24",width:"25",height:"24",fill:"none",...e,children:(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.726 2.367a1 1 0 0 1 1.407-.141l10.054 8.226a2 2 0 0 1 0 3.096L7.133 21.774a1 1 0 0 1-1.266-1.548L15.92 12 5.867 3.774a1 1 0 0 1-.141-1.407",clipRule:"evenodd",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}])},35269,e=>{"use strict";var t=e.i(391398);e.s(["TaggstarElement",0,function({tag:e="div",id:r,...n}){return(0,t.jsx)(e,{"data-taggstar-element-id":r,...n})}])},719315,e=>{"use strict";var t=e.i(823172),r=e.i(114392),n=e.i(191788);e.s(["usePdpExperimentAnalytics",0,function({locale:e,source:a,variants:o}){let{pdpCompactBreadcrumbs:i,pdpCompactColourwayTiles:s,pdpFitAnalyticsRelocation:l,pdpPowerReviewsStyles:c,pdpProductNameSingleLine:u,pdpStoreAvailabilityWidget:d,pdpUspBarVisibility:p,applePayExpress:m}=o;(0,n.useEffect)(()=>{let n={pdp_product_name_single_line:u,pdp_compact_colourway_tiles:s,pdp_compact_breadcrumbs:i,pdp_usp_bar_visibility:p,pdp_power_reviews_styles:c,pdp_fit_analytics_relocation:l,apple_pay_express:m,pdp_store_availability_widget:d,experiment_source:a};(0,t.sendGTMEvent)({type:"abt:pdp_experiments_assigned",data:n}),window.newrelic?.setCustomAttribute?.("abt:pdp.productNameSingleLine",u),window.newrelic?.setCustomAttribute?.("abt:pdp.compactColourwayTiles",s),window.newrelic?.setCustomAttribute?.("abt:pdp.compactBreadcrumbs",i),window.newrelic?.setCustomAttribute?.("abt:pdp.uspBarVisibility",p),window.newrelic?.setCustomAttribute?.("abt:pdp.powerReviewsStyles",c),window.newrelic?.setCustomAttribute?.("abt:pdp.fitAnalyticsRelocation",l),window.newrelic?.setCustomAttribute?.("abt:pdp.applePayExpress",m),window.newrelic?.setCustomAttribute?.("abt:pdp.storeAvailabilityWidget",d),(0,r.sendPageAction)("PdpExperimentsAssigned","PDP experiment variants assigned","info",{...n,locale:e})},[e,i,s,l,c,u,d,p,m,a])}])},343845,e=>{"use strict";e.s(["PDP_CONTROL_VARIANTS",0,{pdpProductNameSingleLine:"control",pdpCompactColourwayTiles:"control",pdpCompactBreadcrumbs:"control",pdpUspBarVisibility:"control",pdpPowerReviewsStyles:"control",pdpFitAnalyticsRelocation:"control",applePayExpress:"control",pdpStoreAvailabilityWidget:"control"},"formatWishlistTestTitle",0,function(e,t){let r=e.replace(/\.+$/,"");return"variant"===t?`${r}.`:r}])},856616,e=>{"use strict";var t=e.i(391398),r=e.i(719315),n=e.i(343845),a=e.i(167559),o=e.i(191788);let i=(0,o.createContext)(n.PDP_CONTROL_VARIANTS);e.s(["PdpExperimentsProvider",0,function({children:e,initialVariants:n,source:o}){let s=(0,a.useLocale)();return(0,r.usePdpExperimentAnalytics)({locale:s,source:o,variants:n}),(0,t.jsx)(i.Provider,{value:n,children:e})}
1,"usePdpExperiments",0,function(){return(0,o.useContext)(i)}])},671903,e=>{"use strict";var t=e.i(465623);let r="recently-viewed";e.s(["LOCAL_STORAGE_PREFIX",0,r,"addRecentlyViewedProductToLocalStorage",0,function(e,n){let a=`${r}-${n}`,o=null;try{o=localStorage.getItem(a)}catch(e){t.logger.warn({err:e},"Failed to read recently viewed products from localStorage");return}let i=Date.now(),s=(o?JSON.parse(o):[]).filter(e=>i-e.viewedAt<2592e6);if(!s.some(t=>t.id===e)){let r=[{id:e,viewedAt:i},...s].slice(0,10);try{localStorage.setItem(a,JSON.stringify(r))}catch(e){t.logger.warn({err:e},"Failed to save recently viewed products to localStorage")}}}])},363384,141013,883508,e=>{"use strict";var t=e.i(391398),r=e.i(481878);e.i(570699);var n=e.i(924695),a=e.i(191788),o=e.i(786293),i=e.i(35269),s=e.i(633634),l=e.i(344884),c=e.i(569335),u=e.i(696999),d=e.i(131330),p=e.i(682971),m=e.i(823172),f=e.i(671903),v=e.i(167559),w=e.i(465623),g=e.i(685155);let y=(0,a.createContext)(void 0);function E(e,t){switch(t.type){case"SELECT_VARIANT":{let{sku:r,product:n}=t,a=n.variants.find(e=>e.sku===r);if(!a)return w.logger.warn({sku:r},"PDP Reducer: Variant not found for sku"),e;return w.logger.debug({sku:r,size:a.size},"PDP Reducer: SELECT_VARIANT success"),{...e,currentSku:r,currentSize:a.size,currentPrice:a.price,currentWasPrice:a.wasPrice,currentDiscount:a.discount.pct,minPrice:void 0,maxPrice:void 0,showSelectVariantError:!1,eligiblePartnerProgram:a.partnerProgram&&a.stock.deliveredByPartner?a.partnerProgram:void 0,itemCategories:T(n),productSource:n.productSource,queryId:(()=>{try{return localStorage.getItem("latestAlgoliaQuery")}catch(e){return null}})()}}case"SELECT_COLOUR":return t.state;case"ADD_TO_CART_WITH_SUPPLEMENTARY_DATA":if("customisation"===t.supplementaryData.type){let r=function(e,t){let{config:r,formValues:n}=e,a=[],o=Object.entries(n).reduce((e,t)=>{let[n,o]=t,i=r.customisations.find(e=>e.id===n);a.push(i.price.centAmount);let s=Object.entries(o).map(e=>{let[t,n]=e,a=i.inputs.find(e=>e.name===t);return{name:t,label:(0,g.getProductCustomisationInputLabel)(a,r.locale,a.labelText),value:n,inputType:a.inputType}});return[...e,{id:n,sku:i.sku,label:i.labelText,inputs:s}]},[]),{totalPrice:i}=P(r.locale,r.basePrice,...a);return{size:t,total:i,items:o}}(t.supplementaryData,e.currentSize);return{...e,showConfirmCustomisationModal:!0,customisationDetails:r,supplementaryFormDataStringified:JSON.stringify({type:u.Ashiba.lineItemSupplementaryTypeZ.Enum.customised,data:{items:r.items}})}}return e;case"TOGGLE_SELECT_VARIANT_MODAL":return w.logger.debug({show:t.show},"PDP Reducer: TOGGLE_SELECT_VARIANT_MODAL"),{...e,showSelectVariantModal:t.show};case"TOGGLE_SELECT_VARIANT_ERROR":return{...e,showSelectVariantError:t.show};case"TOGGLE_CONFIRM_CUSTOMISATION_MODAL":return{...e,showConfirmCustomisationModal:t.show};default:return e}}function b(e){let t=e.isOneSize?e.variants[0].sku:void 0,r=e.variants.find(e=>e.sku===t),n=e.variants.every(e=>!!e.partnerProgram&&!!e.stock.deliveredByPartner)?e.variants[0].partnerProgram:void 0;return{currentSku:t,currentSize:r?r.size:void 0,currentPrice:r?r.price:e.maxPrice,currentWasPrice:r?r.wasPrice:e.maxWasPrice,currentDiscount:r?r.discount.pct:e.maxDiscount.pct,minPrice:r?void 0:e.minPrice,maxPrice:r?void 0:e.maxPrice,showSelectVariantModal:!1,showSelectVariantError:!1,showConfirmCustomisationModal:!1,customisationDetails:void 0,supplementaryFormDataStringified:void 0,eligiblePartnerProgram:r?n:void 0,itemCategories:T(e),queryId:void 0,productSource:e.productSource}}function x(e,t,r){return new Intl.NumberFormat((0,p.getFormattingLocale)(e),{style:"currency",currency:t,currencyDisplay:"narrowSymbol"}).format(r/100).replace(/\s/g,"")}function T(e){let t=[];e.breadcrumbs&&e.breadcrumbs.forEach(e=>{t.push(e.name)});let r=t.join(",");return r.length>0?r:void 0}function P(e,t,...r){let n=r.reduce((e,t)=>e+t,0),a=t.centAmount+n;return{basePrice:x(e,t.currencyCode,t.centAmount),totalPrice:x(e,t.currencyCode,a),customPrices:r.reduce((r,n)=>{let a=x(e,t.currencyCode,n);return r.length?`${r} + ${a}`:a},"")}}e.s(["ProductDetailsPageContext",0,y,"ProductDetailsPageProvider",0,function({children:e,product:r}){let n=(0,v.useLocale)(),[o,i]=(0,a.useReducer)(E,r,b),s=(0,a.useRef)(""),l=(0,a.useRef)(null),[c,u]=(0,a.useState)(null),d=(0,a.useCallback)(e=>{w.logger.debug({sku:e},"PDP Context: onSelectVariant called"),i({type:"SELECT_VARIANT",sku:e,product:r})},[r]),p=(0,a.useCallback)(e=>{l.current=e},[]),g=(0,a.useCallback)(()=>
1{if(w.logger.debug({currentSku:o.currentSku,showSelectVariantError:o.showSelectVariantError},"PDP Context: onAddToCart called"),o.showSelectVariantError)return w.logger.debug("PDP Context: Returning false - showSelectVariantError is true"),!1;let{isValid:e,values:t,submitForm:a}=l?.current??{isValid:!1,values:{}};return t&&0!==Object.keys(t).length?(w.logger.debug("PDP Context: Has supplementary form data"),e?"customisation"===l.current.type&&i({type:"ADD_TO_CART_WITH_SUPPLEMENTARY_DATA",supplementaryData:{type:"customisation",config:{locale:n,basePrice:o.currentPrice,customisations:r.customisations},formValues:l.current.values}}):a(),w.logger.debug("PDP Context: Returning false - has supplementary form data"),!1):o.currentSku?(w.logger.debug("PDP Context: Returning true - can add to cart"),!0):(w.logger.debug("PDP Context: No currentSku, opening SELECT_VARIANT_MODAL"),i({type:"TOGGLE_SELECT_VARIANT_MODAL",show:!0}),!1)},[n,r.customisations,o.currentPrice,o.currentSku,o.showSelectVariantError]),x=(0,a.useCallback)((e,t)=>{i({type:`TOGGLE_${e}`,show:t})},[]),T=(0,a.useMemo)(()=>({product:r,state:o,onSelectVariant:d,onUpdateSupplementaryFormState:p,onAddToCart:g,onToggle:x,paymentMethod:c,setPaymentMethod:u}),[r,o,d,p,g,x,c,u]);return(0,a.useEffect)(()=>{let e=null;try{e=localStorage.getItem("latestAlgoliaQuery")}catch(e){}let t={...r,...{extraContent:{...r.extraContent,queryId:e}}};if(s.current!==r.id){let e=!!s.current;s.current=r.id,(0,f.addRecentlyViewedProductToLocalStorage)(r.id,n),(0,m.sendGTMEvent)({type:"view_item",data:{product:t}}),e&&i({type:"SELECT_COLOUR",state:b(r)})}},[r,n,o]),(0,t.jsx)(y.Provider,{value:T,children:e})},"formatPrice",0,x,"getCustomisationPrices",0,P,"useProductDetails",0,()=>{let e=(0,a.useContext)(y);if(!e)throw Error("ProductDetailsError: Using hook outside of its context");return e}],141013);let h=(e,t)=>"string"==typeof e&&e.length>0?e:"string"==typeof t&&t.length>0?t:t&&"object"==typeof t&&t.endpoint&&t.name?t.defaultHost?`https://${t.defaultHost}/i/${t.endpoint}/${t.name}`:`https://${t.endpoint}.a.bigcontent.io/v1/static/${t.name}`:void 0;e.s(["resolveBadgeImageUrl",0,h],883508);let C=[{media:{max:l.default.sm,width:"50vw"},maxWidth:156},{media:{max:l.default.md,width:"50vw"},maxWidth:360},{media:{max:l.default.lg,width:"33vw"},maxWidth:310},{media:{max:l.default.xl,width:"33vw"},maxWidth:467},{media:{max:l.default["2xl"],width:"25vw"},maxWidth:300},{maxWidth:300}];
1function R({badge:e,badgeIconUrl:r,badgeBackgroundImageUrl:o}){let{state:i}=(0,a.useContext)(y)??{},s=!!i,l=i?.minPrice&&i?.maxPrice&&i?.minPrice.centAmount!==i?.maxPrice.centAmount,u=(i?.currentDiscount?.value??0)>0;if(!e)return null;let d=JSON.parse(e),p=h(r??d.badgeIconUrl,d.icon)??null,m=o??h(d.backgroundImageUrl,d.backgroundImage)??null,f=d.displayOn,v="string"==typeof f?f.trim().toLowerCase():void 0;if(!(!v||"both"===v||s&&"pdp"===v||!s&&"plp"===v))return null;let w="string"==typeof d.key?d.key:"",g=m?"transparent":"string"==typeof d.Background?d.Background:void 0,E="string"==typeof d.TextColor?d.TextColor:void 0,b=i?.currentDiscount?.formattedValue?` -${i.currentDiscount.formattedValue}`:"",x="exclusive"!==d.badgeType&&"product"!==d.badgeType&&!l&&u?`${w}${b}`:w;return(0,t.jsx)(c.Badge,{"data-test-id":"campaign-badge",className:"mt-12",icon:p?(0,t.jsx)(n.Image,{src:p,alt:w||"badge icon",width:75,height:25,className:"object-contain"}):null,style:{backgroundColor:g,backgroundImage:m?`url("${m}")`:void 0,backgroundPosition:m?"center":void 0,backgroundRepeat:m?"no-repeat":void 0,backgroundSize:m?"cover":void 0,color:E},children:x})}e.s(["PRODUCT_CARD_DEFAULT_IMAGE_SIZES",0,C,"ProductCard",0,function({id:e,title:a,slug:l,price:c,images:p,wasPrice:m,discount:f,swatchMenu:v,onProductLinkClick:w,showTaggstarBadge:g,className:y,imageSizes:E=C,badge:b,badgeIconUrl:x,badgeBackgroun
1dImageUrl:T,isMultiPrice:P,priority:h,brand:_,discountOnProduct:S,isGoldenProduct:A,type:L}){let{brand:D,name:k}=(0,d.splitProductName)(a,_);return(0,t.jsxs)("div",{className:(0,s.cn)(["pb-8",y]),"data-test-id":"product-card",children:[(0,t.jsxs)("div",{className:"relative",children:[l&&(0,t.jsx)(r.Link,{href:l,onClick:w,"data-test-id":`product-card-link-${l}`,className:"absolute bottom-0 left-0 right-0 top-0 z-[1] h-full w-full no-underline radius-4 focus-visible:jd-focus","aria-label":a,children:(0,t.jsx)("span",{className:"sr-only",children:a})}),(0,t.jsx)("div",{className:(0,s.cn)("relative aspect-[300/402] bg-grey-300 radius-4",A&&"border-2 border-amber-300 shadow-[0_0_0_3px_rgba(255,224,130,0.45)]"),"data-test-id":A?"product-card-image-golden-product":"product-card-image-wrapper",children:p.length>0&&(0,t.jsx)(n.Image,{"data-test-id":"product-card-image",src:p[0].src,width:1567,height:2e3,sizes:E,alt:a,options:{imgType:u.Ashiba.ImageType.product},className:"h-full w-full object-cover radius-4",priority:h})}),g&&(0,t.jsx)(i.TaggstarElement,{id:e,className:"mt-1"}),(0,t.jsxs)("div",{className:"pt-12",children:[D&&(0,t.jsx)("div",{"data-test-id":"product-card-brand",className:"mt-4 text-body-small font-bold lg:mt-8 lg:text-body xl:text-title-5 2xl:mt-4",children:D}),a&&(0,t.jsx)("div",{"data-test-id":"product-card-title",className:`text-body-small sm:mt-0 lg:mt-0 lg:text-body xl:text-title-5 ${f.value>0?"mb-2 mt-12 2xl:mt-0":"mt-4 2xl:mt-0"}`,children:k}),(0,t.jsx)(o.Price,{price:c,wasPrice:m,discount:f,isMultiPrice:P,variant:"product-card",discountOnProduct:S,type:L})]})]}),v&&(0,t.jsx)("div",{"data-test-id":"product-card-swatch-menu",className:"mt-16",children:v}),(0,t.jsx)("div",{children:(0,t.jsx)(R,{badge:b,badgeIconUrl:x,badgeBackgroun
1dImageUrl:T})})]})},"ProductCardBadge",0,R,"getDiscountInfoFromFormattedPercentString",0,function(e){return{formattedValue:e,value:e?parseFloat(e.replace("%","")):0}}],363384)}]);

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.