PageSourceSearch

https://shopes.fr/_next/static/chunks/1hjohcb8ktcwu.js

js shopes.fr collected 2026-10-10 00:31:01 UTC 32,571 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,8965,e=>{"use strict";var t=e.i(50461),r=e.i(91398),i=e.i(19811),a=e.i(41158),s=e.i(58678),n=e.i(91788),o=e.i(13494);let l=()=>{let[e,t]=(0,n.useState)(!1),[i,a]=(0,n.useState)(!1),s=(0,o.detectInitialMarket)("uk"),[l,c]=(0,n.useState)(s),d=(0,n.useRef)(null);(0,n.useEffect)(()=>{c((0,o.detectBrowserMarket)(s))},[s]);let u=(0,n.useMemo)(()=>{let e={fr:{text:"Ce site utilise des cookies et d'autres technologies de suivi pour faciliter la navigation, analyser votre utilisation de nos produits et services, contribuer à nos efforts promotionnels et marketing, et fournir du contenu tiers.",shortText:"Nous utilisons des cookies pour le site, les statistiques et le marketing.",ok:"OK"},it:{text:"Questo sito utilizza cookie e altre tecnologie di tracciamento per facilitare la navigazione, analizzare l'uso dei nostri prodotti e servizi, supportare le attività promozionali e di marketing e fornire contenuti di terze parti.",shortText:"Usiamo cookie per funzionalita del sito, statistiche e marketing.",ok:"OK"},uk:{text:"This site uses cookies and other tracking technologies to assist with navigation, analyse your use of our products and services, support our marketing efforts, and provide third-party content.",shortText:"We use cookies for site functionality, analytics, and marketing.",ok:"OK"}};return e[l]||e.uk},[l]);(0,n.useEffect)(()=>{try{window.localStorage.getItem("cookie_consent")&&t(!0)}catch(e){console.warn("[CookieBanner] Unable to read cookie consent from localStorage",e)}},[]),(0,n.useEffect)(()=>{if(e)return;let t=()=>a(!0);return"complete"===document.readyState?void a(!0):(window.addEventListener("load",t,{once:!0}),()=>window.removeEventListener("load",t))},[e]);let m=!e&&i;return(0,n.useEffect)(()=>{let e=document.documentElement,t=d.current,r=()=>{if(!m||!t)return void e.style.setProperty("--cookie-banner-offset","0px");let r=12*(window.innerWidth<640),i=Math.ceil(t.getBoundingClientRect().height)+r;e.style.setProperty("--cookie-banner-offset",`${i}px`)};if(r(),!t||!m)return()=>{e.style.setProperty("--cookie-banner-offset","0px")};let i="u">typeof ResizeObserver?new ResizeObserver(r):null;return i?.observe(t),window.addEventListener("resize",r),()=>{i?.disconnect(),window.removeEventListener("resize",r),e.style.setProperty("--cookie-banner-offset","0px")}},[m,l]),(0,r.jsx)("div",{className:"pointer-events-none","aria-hidden":!m,children:(0,r.jsx)("div",{ref:d,className:"fixed bottom-3 left-3 right-3 z-50 pointer-events-none sm:bottom-0 sm:left-0 sm:right-0",children:(0,r.jsx)("div",{className:"pointer-events-auto rounded-2xl border border-white/10 bg-gray-900/95 px-3 py-3 text-white shadow-2xl backdrop-blur transition-transform duration-300 ease-out sm:rounded-none sm:border-x-0 sm:border-b-0 sm:px-4 sm:py-4",style:{transform:m?"translateY(0)":"translateY(110%)",opacity:+!!m},children:(0,r.jsxs)("div",{className:"mx-auto flex max-w-6xl flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsxs)("p",{className:"text-xs leading-5 text-white/85 sm:text-sm",children:[(0,r.jsx)("span",{className:"sm:hidden",children:u.shortText}),(0,r.jsx)("span",{className:"hidden sm:inline",children:u.text})]}),(0,r.jsx)("button",{onClick:()=>{try{window.localStorage.setItem("cookie_consent","true")}catch(e){console.warn("[CookieBanner] Unable to persist cookie consent",e)}t(!0)},className:"w-full rounded-lg bg-indigo-600 px-4 py-2 text-sm font-bold text-white transition-colors duration-200 hover:bg-indigo-700 sm:w-auto sm:whitespace-nowrap",children:u.ok})]})})})})};var c=e.i(94182),d=e.i(3828);e.s(["default",0,function({children:e,headerCategoryNavigation:u=[]}){let m=(0,d.useRouter)(),[g,h]=(0,n.useState)(2025),[f,p]=(0,n.useState)(()=>(0,o.detectInitialMarket)("uk")),x=(0,n.useMemo)(()=>[{market:"uk",text:"English",flag:"gb",href:"https://shopes.co.uk"},{market:"fr",text:"Français",flag:"fr",href:"https://shopes.fr"},{market:"it",text:"Italiano",flag:"it",href:"https://shopes.it"}],[]),y=e=>(0,r.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,r.jsx)("span",{"aria-label":e.market.toUpperCase(),title:e.market.toUpperCase(),className:"inline-flex items-center",children:(0,r.jsx)(()=>"fr"===e.flag?(0,r.jsxs)("svg",{width:"20",height:"15",viewBox:"0 0 20 15","aria-hidden":"true",focusable:"false",className:"inline-block rounded-sm overflow-hidden",children:[(0,r.jsx)("rect",{width:"20",height:"15",fill:"#ffffff"}),(0,r.jsx)("rect",{width:"6.6667",height:"15",x:"0",y:"0",fill:"#0055A4"}),(0,r.jsx)("rect",{width:"6.6667",height:"15",x:"13.3333",y:"0",fill:"#EF4135"})]}):"it"===e.flag?(0,r.jsxs)("svg",{width:"20",height:"15",viewBox:"0 0 20 15","aria-hidden":"true",focusable:"false",className:"inline-block rounded-sm overflow-hidden",children:[(0,r.jsx)("rect",{width:"20",height:"15",fill:"#ffffff"}),(0,r.jsx)("rect",{width:"6.6667",height:"15",x:"0",y:"0",fill:"#009246"}),(0,r.jsx)("rect",{width:"6.6667",height:"15",x:"13.3333",y:"0",fill:"#CE2B37"})]}):(0,r.jsxs)("svg",{width:"20",height:"15",viewBox:"0 0 60 30","aria-hidden":"true",focusable:"false",className:"inline-block rounded-sm overflow-hidden",children:[(0,r.jsx)("clipPath",{id:`t-${e.flag}`,children:(0,r.jsx)("path",{d:"M0,0 v30 h60 v-30 z"})}),(0,r.jsx)("clipPath",{id:`s-${e.flag}`,children:(0,r.jsx)("path",{d:"M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z"})}),(0,r.jsxs)("g",{clipPath:`url(#t-${e.flag})`,children:[(0,r.jsx)("path",{d:"M0,0 v30 h60 v-30 z",fill:"#012169"}),(0,r.jsx)("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#FFF",strokeWidth:"6"}),(0,r.jsx)("path",{d:"M0,0 L60,30 M60,0 L0,30",stroke:"#C8102E",strokeWidth:"4",clipPath:`url(#s-${e.flag})`}),(0,r.jsx)("path",{d:"M30,0 v30 M0,15 h60",stroke:"#FFF",strokeWidth:"10"}),(0,r.jsx)("path",{d:"M30,0 v30 M0,15 h60",stroke:"#C8102E",strokeWidth:"6"})]})]}),{})}),(0,r.jsx)("span",{children:e.text})]}),b=(0,n.useMemo)(()=>"fr"===f?{copyright:"Shopes France. Tous droits réservés.",sitemapLabel:"Plan du site",sitemapHref:"/sitemap.xml",termsLabel:"Conditions d'utilisation",termsHref:"/terms",privacyLabel:"Politique de confidentialité",privacyHref:"/privacy",contactLabel:"Nous contacter",contactHref:"/contact",switchLabel:"🇬🇧 English",switchHref:"https://shopes.co.uk"}:"it"===f?{copyright:"Shopes Italia. Tutti i diritti riservati.",sitemapLabel:"Mappa del sito",sitemapHref:"/sitemap.xml",termsLabel:"Termini di servizio",termsHref:"/terms",privacyLabel:"Informativa sulla privacy",privacyHref:"/privacy",contactLabel:"Contattaci",contactHref:"/contact",switchLabel:"🇬🇧 English",switchHref:"https://shopes.co.uk"}:{copyright:"Shopes. All rights reserved.",sitemapLabel:"Sitemap",sitemapHref:"/sitemap.xml",termsLabel:"Terms",termsHref:"/terms",privacyLabel:"Privacy",privacyHref:"/privacy",contactLabel:"Contact",contactHref:"/contact",switchLabel:"🇫🇷 Français",switchHref:"https://shopes.fr"},[f]);(0,n.useEffect)(()=>{let e=(0,o.detectBrowserMarket)(f);e!==f&&p(e)},[f]);let v=(0,n.useMemo)(()=>{try{let e=(m?.asPath||"").split("?")[0]||"";if("1"===t.default.env.NEXT_PUBLIC_DISABLE_BOT_TRACKER)return!1;if(e.startsWith("/category")||e.startsWith("/categories")){if("0"===t.default.env.NEXT_PUBLIC_DISABLE_BOT_TRACKER_FOR_CATEGORY)return!0;return!1}return!0}catch{return!0}},[m?.asPath]);return(0,n.useEffect)(()=>{h(new Date().getFullYear());try{{let e=String(window.location.hostname||"").toLowerCase();"shopes.fr"===e||e.endsWith(".fr")?p("fr"):"shopes.it"===e||e.endsWith(".it")?p("it"):("shopes.co.uk"===e||e.endsWith(".co.uk"))&&p("uk")}}catch{}let e=m?.events;if(!e||"function"!=typeof e.on||"function"!=typeof e.off)return;let t=window.location.pathname+window.location.search,r=e=>{try{let r="string"==typeof e?e:window.location.pathname+window.location.search;if(r===t)return;t=r;let i=window.clicky;i&&"function"==typeof i.log&&i.log(r,document.title,"pageview")}catch(e){}};return e.on("routeChangeComplete",r),()=>{e.off("routeChangeComplete",r)}},[m]),(0,r.jsxs)("div",{className:"min-h-screen flex flex-col bg-gray-50",children:[(0,r.jsx)(s.default,{children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("link",{rel:"indexnow",href:"/indexnow-168688c4fcfbdc2f58a4d94370aa4ba4.txt"}),(0,r.jsx)("meta",{name:"indexnow-key",content:"168688c4fcfbdc2f58a4d94370aa4ba4"})]})}
1),(0,r.jsx)("a",{href:"#main",className:"sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-50 focus:bg-white focus:text-indigo-700 focus:ring-2 focus:ring-indigo-600 focus:px-4 focus:py-2 rounded-md shadow",children:"fr"===f?"Aller au contenu principal":"it"===f?"Vai al contenuto principale":"Skip to main content"}),(0,r.jsx)(i.default,{categoryNavigation:u}),(0,r.jsx)("main",{id:"main",tabIndex:"-1",className:"flex-grow",children:e}),null,(0,r.jsxs)("footer",{className:"bg-gray-800 text-white py-8 mt-auto",children:[(0,r.jsx)("div",{className:"container mx-auto px-6",children:(0,r.jsxs)("div",{className:"flex flex-col md:flex-row justify-between items-center",children:[(0,r.jsx)("div",{className:"mb-4 md:mb-0",children:(0,r.jsxs)("p",{children:["© ",g," ",b.copyright]})}),(0,r.jsxs)("div",{className:"flex flex-wrap gap-x-4 gap-y-2",children:["uk"===f?(0,r.jsx)(a.default,{href:"/blog",className:"hover:text-yellow-300 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-yellow-400 rounded",children:"Blog"}):null,(0,r.jsx)(a.default,{href:b.sitemapHref,className:"hover:text-yellow-300 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-yellow-400 rounded",children:b.sitemapLabel}),(0,r.jsx)(a.default,{href:b.termsHref,className:"hover:text-yellow-300 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-yellow-400 rounded",children:b.termsLabel}),(0,r.jsx)(a.default,{href:b.privacyHref,className:"hover:text-yellow-300 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-yellow-400 rounded",children:b.privacyLabel}),(0,r.jsx)(a.default,{href:b.contactHref,className:"hover:text-yellow-300 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-yellow-400 rounded",children:b.contactLabel}),x.map(e=>e.market===f?(0,r.jsx)("span",{className:"text-yellow-300 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-yellow-400 rounded","aria-current":"page",children:y(e)},e.market):(0,r.jsx)("a",{href:e.href,className:"hover:text-yellow-300 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-yellow-400 rounded",rel:"noopener noreferrer",children:y(e)},e.market))]})]})}),v&&(0,r.jsx)(c.default,{src:"/bot-tracker.js",strategy:"afterInteractive"})]}),(0,r.jsx)(l,{})]})}],8965)},75975,e=>{"use strict";let t;e.i(50461);var r=e.i(91398),i=e.i(26019),a=e.i(41158),s=e.i(3828),n=e.i(91788),o=e.i(13494),l=e.i(74804),c=e.i(36583),d=e.i(69596),u=e.i(22696),m=e.i(2772),g=e.i(58640);let h=e=>"string"==typeof e?e.replace(/\/+$/,""):e,f=h("https://shopes.fr"),p=e=>{if(!e||"string"!=typeof e)return e;try{let t=e.trim();if(t.startsWith("/"))return t;let r=new URL(t,f||void 0),i=r.origin;if(i===f||i===h(window.location.origin)||/^(https?:\/\/)?(www\.)?shopes\.(co\.uk|fr|it)$/i.test(i))return`${r.pathname}${r.search}${r.hash}`;return t}catch(t){return e}},x="string"==typeof(t=(0,l.getMissingImagePlaceholder)())?t.split("?")[0]:null;e.s(["default",0,({item:e,onImageLoad:t,onImageError:h,priority:f=!1,isLoading:y=!1})=>{let[b,v]=(0,n.useState)(!1),[w,j]=(0,n.useState)("waiting"),[k,N]=(0,n.useState)(!1),[C,I]=(0,n.useState)(!1),[S,P]=(0,n.useState)(!1),[$,L]=(0,n.useState)(null),M=(0,o.detectInitialMarket)("uk"),[E,z]=(0,n.useState)("fr"===M);(0,s.useRouter)(),(0,n.useEffect)(()=>{let e="fr"===(0,o.detectBrowserMarket)(M);e!==E&&z(e)},[M,E]);let _=(0,n.useMemo)(()=>E?{checkPrice:"Voir le prix",loading:"Chargement...",connecting:"Connexion...",processing:"Traitement...",loadingBackup:"Image de secours...",retrying:"Nouvelle tentative...",serverProcessing:"Serveur en cours",connectingServer:"Connexion au serveur...",serverProcessingImage:"Traitement image...",loadingImage:"Chargement image...",imageUnavailable:"Image indisponible",noImage:"Pas d'image",image:"Image",watching:"suivent",off:"DE REMISE",browse:"Parcourir",condition:"État",viewOnEbay:"Voir sur eBay",searchOnAmazon:"Voir sur Amazon",productImage:"Image du produit"}:{checkPrice:"Check price",loading:"Loading...",connecting:"Connecting...",processing:"Processing...",loadingBackup:"Loading backup...",retrying:"Retrying...",serverProcessing:"Server processing",connectingServer:"Connecting to server...",serverProcessingImage:"Server processing image...",loadingImage:"Loading image...",imageUnavailable:"Image unavailable",noImage:"No image",image:"Image",watching:"watching",off:"OFF",browse:"Browse",condition:"Condition",viewOnEbay:"View on eBay",searchOnAmazon:"Search on Amazon",productImage:"Product image"},[E]),A=(0,n.useRef)(0),B=(0,n.useRef)(0),O=(0,n.useRef)(null);(0,n.useEffect)(()=>{I(!0)},[]);let T=e?.itemId||e?.id;e?.title,e?.image?.imageUrl,e?.imageUrl,e?.additionalImages?.[0]?.imageUrl,e?.thumbnailImages?.[0]?.imageUrl;let U=(0,n.useMemo)(()=>
1{if(!e)return null;try{let t=(0,l.getBestImageUrl)(e),r=(0,l.processImageUrl)(t,e.title,{width:220,height:220,format:"webp",thumbnail:!0}),i=(0,l.processImageUrl)(t,e.title,{width:Math.round(330),height:Math.round(330),format:"webp",thumbnail:!0}),a=(0,l.processImageUrl)(t,e.title,{width:220,height:220,format:"jpeg",thumbnail:!0}),s=e=>e?"string"==typeof e?e:e.proxy||null:null,n=e=>e?"string"==typeof e?e:e.static||null:null,o=p(s(r)),c=p(n(r)),d=p(s(a)),u=p(n(a)),m=p(s(i)||n(i)),g=[],h=e=>{!("string"==typeof e&&e.startsWith("/"))||g.includes(e)||g.push(e)};h(o),h(c),h(d),h(u),h(p((0,l.getMissingImagePlaceholder)())),h(x);let f=p(g[0]||x),y=p(g[1]||g[0]||x),b=(!f||f===x||f.includes("/placeholder-missing-image.svg")||t===(0,l.getMissingImagePlaceholder)())&&!f.includes("/api/img/"),v=e.title?`${e.title}${e.condition?` - ${e.condition}`:""}${e.price?` - ${"object"==typeof e.price?e.price.currency+" "+e.price.value:e.price}`:""}`:_.productImage;return{src:f,originalApiUrl:t,alt:v,title:e.title||"Product",fallbackSrc:y,fallbackCandidates:g,srcSet:!b&&m&&o?`${o} 1x, ${m} 1.5x`:void 0,sizes:"(max-width: 480px) 45vw, (max-width: 1024px) 25vw, 220px",width:220,height:220,isPlaceholder:b,seoData:{itemId:T,title:e.title,price:e.price,condition:e.condition,categoryName:e.categoryName||e.primaryCategory?.categoryName}}}catch(r){console.error("Error processing image URL in ProductCard:",r);let t=p((0,l.getMissingImagePlaceholder)());return{src:t,fallbackSrc:t,alt:e.title?`${e.title} - ${_.productImage}`:_.productImage,title:e.title||"Product",isPlaceholder:!0}}},[e]);if((0,n.useEffect)(()=>{if(!U)return;A.current=0,B.current=0;let e=U.src||U.fallbackSrc||x;O.current=e,L(e),U.isPlaceholder?(P(!0),j("placeholder")):(P(!1),j("loading")),v(!1)},[U]),y)return(0,r.jsx)("div",{className:"product-card h-full relative",children:(0,r.jsxs)("div",{className:"animate-pulse",children:[(0,r.jsx)("div",{className:"product-image-container relative bg-gray-50 border border-gray-200 rounded-lg overflow-hidden w-full aspect-square"}),(0,r.jsxs)("div",{className:"mt-3 space-y-2 p-2.5 sm:p-4",children:[(0,r.jsx)("div",{className:"h-4 bg-gray-200 rounded w-5/6"}),(0,r.jsx)("div",{className:"h-4 bg-gray-200 rounded w-2/3"}),(0,r.jsx)("div",{className:"h-3 bg-gray-200 rounded w-1/3"})]})]})});if(!e||!T)return null;let R=(0,m.createEbayAffiliateLink)(e.itemWebUrl||"",void 0,(0,m.buildEbayCustomId)("card",T)),H=E?(0,m.createAmazonSearchAffiliateLink)(e):"",W={...(0,m.getObfuscatedLinkAttributes)(R),onClick:t=>{try{let r=(0,g.trackAffiliateClick)(e,"product-card");"function"==typeof r&&r(t)}catch(e){}}},D=H?{...(0,m.getObfuscatedLinkAttributes)(H),onClick:t=>{try{let r=(0,g.trackAffiliateClick)(e,"product-card-amazon-search");"function"==typeof r&&r(t)}catch(e){}}}:null,F=e.title||"Product",V=_.checkPrice;e.price&&(V="object"==typeof e.price&&null!==e.price?`${e.price.currency||""} ${e.price.value||""}`.trim():e.price);let K=e.marketingPrice&&e.marketingPrice.originalPrice&&e.marketingPrice.discountPercentage,q=K?`${e.marketingPrice.originalPrice.currency} ${e.marketingPrice.originalPrice.value}`:null,Y=K?`${e.marketingPrice.discountPercentage}%`:null,G=(0,d.deriveCanonicalSlug)(e,e.title),X=(0,d.buildProductPath)({itemId:T,slug:G,encodeId:!0}),J=e?.categoryNameCanonical||e?.primaryCategory?.categoryNameCanonical||(e?.categories&&e.categories[0]?e.categories[0].categoryNameCanonical||e.categories[0].categoryName||e.categories[0].name||null:e?.primaryCategory?.categoryName||e?.categoryName||null),Q=e?.categories&&e.categories[0]?e.categories[0].categoryId||e.categories[0].id||null:e?.primaryCategory?.categoryId||e?.categoryId||e?.primaryCategoryId||e?.category_id||null;Q&&String(Q).endsWith("_static")&&String(Q).replace("_static","");let Z=e?.categoryFullPathSlug||e?.category_full_path_slug||(e.categories&&e.categories[0]?e.categories[0].full_path_slug:null),ee=Z?(0,u.buildCategoryHref)(Z):null,et=e.condition||null;(0,l.getImageAttributes)();let er=()=>{v(!0),j("error"),P(!1),console.warn("[ProductCard] Image failed after retries",{itemId:e?.itemId,title:e?.title,categoryName:J,hasDiscount:K,discountPercentage:Y,marketingPrice:e?.marketingPrice,proxySrc:U?.src,fallbackSrc:U?.fallbackSrc}),h&&"function"==typeof h&&h(e)},ei=()=>
1{if(U?.isPlaceholder)return!1;let t=Array.isArray(U?.fallbackCandidates)?U.fallbackCandidates:[],r=(B.current||0)+1,i=t[r];return!!i&&$!==i&&(B.current=r,A.current=0,O.current=i,L(i),j("fallback-loading"),v(!1),P(!1),console.info("[ProductCard] Falling back to backup image",{itemId:e?.itemId,title:e?.title,categoryName:J,hasDiscount:K,discountPercentage:Y,fallbackSrc:i}),!0)};return(0,r.jsxs)("div",{className:"product-card h-full relative",children:[k&&(0,r.jsx)("div",{className:"absolute inset-0 bg-white bg-opacity-75 flex items-center justify-center z-10 rounded-lg",children:(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-indigo-600 mb-1"}),(0,r.jsx)("span",{className:"text-indigo-600 text-xs font-medium",children:_.loading})]})}),(0,r.jsx)("a",{href:X,className:"block",children:(0,r.jsxs)("div",{className:"product-image-container relative bg-gray-50 border border-gray-200 rounded-lg overflow-hidden w-full aspect-square",children:[($||U?.src)&&!b?(0,r.jsxs)("div",{className:"flex items-center justify-center h-full relative",children:[(0,r.jsx)(i.default,{src:$||U?.src,alt:U.alt,title:U.title,className:`max-h-full max-w-full object-contain transition-opacity duration-300 ${S?"opacity-100":"opacity-0"}`,style:{maxHeight:"180px"},onError:t=>{try{let e=e=>{if(!e||"string"!=typeof e)return"";let t=window.location.origin;try{let r=new URL(e,t);return`${r.pathname}${r.search}`}catch(t){return e}},r=e(t?.target?.currentSrc||t?.target?.src||""),i=e(O.current||$||U?.src||"");if(r&&i&&r!==i)return}catch(e){}if(!U||U.isPlaceholder)return void er();if(!U.src){ei()||er();return}if(A.current<3){A.current+=1;let e=A.current;j("retrying"),setTimeout(()=>{let t=(Array.isArray(U?.fallbackCandidates)?U.fallbackCandidates:[])[B.current]||U.src,r=`retry=${e}-${Date.now()}`,i=`${t}${t.includes("?")?"&":"?"}${r}`;O.current=i,L(i),P(!1)},800*e)}else ei()||er(),console.warn("[ProductCard] <Image> onError triggered for:",U.src,"item:",e?.itemId,e?.title),console.warn("[ProductCard] Full product object for failed image:",e)},onLoad:t=>{try{let e=e=>{if(!e||"string"!=typeof e)return"";let t=window.location.origin;try{let r=new URL(e,t);return`${r.pathname}${r.search}`}catch(t){return e}},r=e(t?.target?.currentSrc||t?.target?.src||""),i=e(O.current||$||U?.src||"");if(r&&i&&r!==i)return}catch(e){}console.log("[ProductCard] Image loaded successfully:",U?.src,"for item:",e?.itemId),P(!0),j("loaded"),A.current=0,v(!1),t?.target?.complete&&setTimeout(()=>P(!0),50)},onLoadingComplete:()=>{console.log("[ProductCard] Image loading complete:",$),P(!0),j("loaded")},onLoadStart:()=>{console.log("[ProductCard] Image load started:",$,"for item:",e?.itemId),j("loading")},width:U.width||220,height:U.height||220,sizes:U.sizes||"(max-width: 768px) 45vw, 210px",srcSet:U.srcSet,loading:f?"eager":"lazy",priority:f,fetchpriority:f?"high":"auto",decoding:"async",referrerPolicy:"no-referrer",crossOrigin:"anonymous",unoptimized:!0},T),!S&&("waiting"===w||"processing"===w||"loading"===w||"retrying"===w||"fallback-loading"===w)&&(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-white bg-opacity-95 z-10 border border-gray-200 rounded-lg",children:(0,r.jsxs)("div",{className:"flex flex-col items-center px-3 py-2",children:[(0,r.jsx)("div",{className:"animate-spin rounded-full h-5 w-5 border-2 border-indigo-600 border-t-transparent mb-1.5"}),(0,r.jsx)("span",{className:"text-gray-600 text-xs font-medium",children:"waiting"===w?_.connecting:"processing"===w?_.processing:"fallback-loading"===w?_.loadingBackup:"retrying"===w?_.retrying:_.loading}),("processing"===w||"waiting"===w)&&(0,r.jsx)("span",{className:"text-gray-400 text-xs mt-0.5",children:_.serverProcessing})]})})]}):(0,r.jsx)("div",{className:"h-full w-full flex items-center justify-center bg-gray-50 border border-gray-200 rounded-lg",children:"waiting"===w||"processing"===w?(0,r.jsxs)("div",{className:"flex flex-col items-center px-3 py-4",children:[(0,r.jsx)("div",{className:"animate-spin rounded-full h-6 w-6 border-2 border-indigo-600 border-t-transparent mb-2"}),(0,r.jsx)("span",{className:"text-gray-600 text-xs font-medium",children:"waiting"===w?_.connectingServer:_.serverProcessingImage}),(0,r.jsxs)("div",{className:"flex items-center mt-1",children:[(0,r.jsx)("div",{className:"w-1 h-1 bg-indigo-400 rounded-full animate-pulse"}),(0,r.jsx)("div",{className:"w-1 h-1 bg-indigo-400 rounded-full animate-pulse mx-1",style:{animationDelay:"0.2s"}}),(0,r.jsx)("div",{className:"w-1 h-1 bg-indigo-400 rounded-full animate-pulse",style:{animationDelay:"0.4s"}})]})]}):"loading"===w?(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)("div",{className:"animate-spin rounded-full h-6 w-6 border-2 border-indigo-600 border-t-transparent mb-2"}),(0,r.jsx)("span",{className:"text-gray-600 text-xs",children:_.loadingImage})]}):"error"===w?(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)("svg",{className:"h-8 w-8 text-gray-400 mb-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 002 2z"})}),(0,r.jsx)("span",{className:"text-gray-400 text-sm",children:_.imageUnavailable})]}):"placeholder"===w?(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)("svg",{className:"h-8 w-8 text-gray-300 mb-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 002 2z"})}),(0,r.jsx)("span",{className:"text-gray-300 text-xs",children:_.noImage})]}):(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)("svg",{className:"h-8 w-8 text-gray-300 mb-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 002 2z"})}),(0,r.jsx)("span",{className:"text-gray-300 text-xs",children:_.image})]})}),"number"==typeof e?.watchCount&&e.watchCount>=10&&(0,r.jsx)("div",{className:"absolute top-2 left-2 bg-black/70 text-white text-[10px] font-medium px-2 py-0.5 rounded",children:e.watchCount>=99?`99+ ${_.watching}`:`${e.watchCount} ${_.watching}`}),Y&&(0,r.jsxs)("div",{className:"absolute top-2 right-2 bg-red-500 text-white text-xs font-bold px-2 py-1 rounded",children:[Y," ",_.off]})]})}),(0,r.jsxs)("div",{className:"card-content",children:[(0,r.jsx)("div",{className:"min-h-[40px] mb-2",children:(0,r.jsx)("a",{href:X,className:"block",title:F,"aria-label":F,children:(0,r.jsx)("h3",{className:"product-title",children:F})})}),(0,r.jsxs)("div",{className:"flex justify-between items-baseline mb-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:"price",children:V}),q&&(0,r.jsx)("span",{className:"text-xs text-gray-500 line-through ml-1",children:q})]}),J&&(ee?(0,r.jsx)(a.default,{href:ee,className:"text-xs text-indigo-600 hover:text-indigo-800 truncate max-w-[90px] block",title:`${_.browse} ${J}`,children:J}):(0,r.jsx)("span",{className:"text-xs text-gray-600 truncate max-w-[90px] block",title:J,children:J}))]}),(()=>{if(!C)return(0,r.jsx)("div",{className:"flex items-center mb-2 min-h-[16px]",children:(0,r.jsx)("span",{className:"text-xs opacity-0",children:"0"})});let t=(0,c.getListingDate)(e),i=(0,c.formatTimeAgo)(t),a=(0,c.isNewlyListed)(t);return i?(0,r.jsxs)("div",{className:"flex items-center mb-2 min-h-[16px]",children:[(0,r.jsx)("div",{className:`w-3 h-3 rounded-full mr-1.5 ${a?"bg-green-500 animate-pulse":"bg-gray-400"}`}),(0,r.jsx)("span",{className:`text-xs ${a?"text-green-600 font-medium":"text-gray-500"}`,children:i})]}):(0,r.jsx)("div",{className:"flex items-center mb-2 min-h-[16px]",children:(0,r.jsx)("span",{className:"text-xs opacity-0",children:"0"})})})(),et&&(0,r.jsx)("div",{className:"mt-1 mb-2",children:(0,r.jsxs)("span",{className:"text-xs text-gray-600",children:[_.condition,": ",et]})}),(0,r.jsx)("div",{className:"mt-3 mt-auto",children:E&&D?(0,r.jsxs)("div",{className:"flex flex-col gap-1.5 sm:gap-2",children:[(0,r.jsx)("a",{className:"buy-button cursor-pointer",...W,children:_.viewOnEbay}),(0,r.jsx)("a",{className:"buy-button buy-button-amazon cursor-pointer",...D,children:_.searchOnAmazon})]}):(0,r.jsx)("a",{className:"buy-button cursor-pointer",...W,children:_.viewOnEbay})})]})]})}])},13730,78836,e=>{"use strict";var t=e.i(91398),r=e.i(58678),i=e.i(3828),a=e.i(50461);let s={3e3:"uk",3002:"fr",3004:"it"};function n(){{let e=String("fr").toLowerCase().replace(/[^a-z0-9]/g,"").trim();if(e)return e}let e=parseInt(a.default.env.PORT,10);
1return e&&s[e]?s[e]:"uk"}function o(e=n()){let t=String(e||"uk").toLowerCase(),r={uk:"https://shopes.co.uk",fr:"https://shopes.fr",it:"https://shopes.it"};if(r[t])return r[t];let i="https://shopes.fr";return i&&String(i).trim()?String(i).replace(/\/$/,""):"https://shopes.co.uk"}e.s(["getMarket",0,n,"getPublicSiteUrl",0,o],78836),e.s(["default",0,function({title:e,description:a,canonical:s,image:l,schemaData:c,openGraph:d,twitter:u={},robots:m,keywords:g="",additionalMeta:h=[],alternates:f,sitemapUrl:p,robotsUrl:x}){let y=(0,i.useRouter)(),b=o(n()),v=e=>{if(!e||"string"!=typeof e)return"";let t=e.trim();if(!t)return"";if(/^https?:\/\//i.test(t))return t;if(t.startsWith("//"))try{let e=new URL(b).protocol||"https:";return`${e}${t}`}catch(e){return`https:${t}`}return t.startsWith("/")?`${b}${t}`:t},w=function(e){if(!e)return"Shop Best Deals Online | Shopes";let t=String(e).trim(),r=" | Shopes",i=/\|\s*Shopes\s*$/i.test(t),a=i?t.replace(/\s*\|\s*Shopes\s*$/i,"").trim():t;if(t.length>=35&&t.length<=65)return t;if(t.length<35){if(i)return t;if((a+r).length<=65)return a+r}if(t.length>65){let e=a.substring(0,58).trim(),t=e.lastIndexOf(" ");return(t>30?e.substring(0,t):e)+r}return t}(e||"Shop Best Deals Online | Shopes"),j=function(e){if(!e)return"Find the best deals on products across the web. Compare prices and shop smart with Shopes.";if(e.length>=70&&e.length<=320||e.length<70)return e;if(e.length>320){let t=e.substring(0,315),r=Math.max(t.lastIndexOf("."),t.lastIndexOf("!"),t.lastIndexOf("?"));if(r>150)return t.substring(0,r+1);let i=t.lastIndexOf(","),a=t.lastIndexOf(" ");return i>200?t.substring(0,i)+".":a>200?t.substring(0,a)+"...":t+"..."}return e}(a||"Find the best deals on products across the web. Compare prices and shop smart with Shopes."),k=`${b}/icons/logo.svg`,N="string"==typeof l&&l.trim()?v(l):k,C=s||`${b}${y.asPath.split("?")[0]}`,I=void 0===m?"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1":m,S=u.card||"summary_large_image",P=u.handle||"@shopesuk",$={...d||{},title:d?.title||w,description:d?.description||j,url:d?.url||C,type:d?.type||"website",image:d?.image?v(d.image):N},L="string"==typeof $.image&&$.image.trim()?$.image:k,M=L===k;L&&L.startsWith("/")&&(L=`${b}${L}`);let E="string"==typeof(u.image||N)&&(u.image||N).trim()?v(u.image||N):k,z=E===k;E&&E.startsWith("/")&&(E=`${b}${E}`);let _="string"==typeof L&&L.startsWith("https://")?L:null;return(0,t.jsxs)(r.default,{children:[(0,t.jsx)("title",{children:w}),(0,t.jsx)("meta",{name:"description",content:j}),"string"==typeof I&&I.trim()&&(0,t.jsx)("meta",{name:"robots",content:I}),(0,t.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,t.jsx)("link",{rel:"canonical",href:C}),(0,t.jsx)("link",{rel:"sitemap",type:"application/xml",href:p||`${b}/sitemap.xml`}),g&&(0,t.jsx)("meta",{name:"keywords",content:g}),(0,t.jsx)("meta",{property:"og:title",content:$.title}),(0,t.jsx)("meta",{property:"og:description",content:$.description}),(0,t.jsx)("meta",{property:"og:url",content:$.url}),(0,t.jsx)("meta",{property:"og:type",content:$.type}),(0,t.jsx)("meta",{property:"og:image",content:L}),_&&(0,t.jsx)("meta",{property:"og:image:secure_url",content:_}),(0,t.jsx)("meta",{property:"og:image:alt",content:M?"Shopes":$.title||"Shopes"}),M&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,t.jsx)("meta",{property:"og:image:height",content:"630"})]}),(0,t.jsx)("meta",{property:"og:site_name",content:d?.siteName||"Shopes"}),(0,t.jsx)("meta",{property:"og:locale",content:d?.locale||"en_GB"}),"product"===$.type&&$.price&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("meta",{property:"product:price:amount",content:$.price.amount}),(0,t.jsx)("meta",{property:"product:price:currency",content:$.price.currency})]}),(0,t.jsx)("meta",{name:"twitter:card",content:u.card||S}),(0,t.jsx)("meta",{name:"twitter:site",content:u.site||P}),(0,t.jsx)("meta",{name:"twitter:title",content:u.title||w}),(0,t.jsx)("meta",{name:"twitter:description",content:u.description||j}),(0,t.jsx)("meta",{name:"twitter:image",content:E}),(0,t.jsx)("meta",{name:"twitter:image:alt",content:z?"Shopes":u.title||$.title||w}),h.map((e,r)=>e.property?(0,t.jsx)("meta",{property:e.property,content:e.content},`meta-${r}`):e.name?(0,t.jsx)("meta",{name:e.name,content:e.content},`meta-${r}`):null),(()=>{if(d?.type==="product"||!c)return null;try{return(Array.isArray(c)?c:[c]).map((e,r)=>{if(!e)return null;let i={"@context":"https://schema.org",...e,"@context":e["@context"]||"https://schema.org"};return(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(i,null,2)}},`schema-${r}`)}
1).filter(Boolean)}catch(e){return console.error("Error rendering schema data:",e),null}})()]})}],13730)},94182,(e,t,r)=>{t.exports=e.r(61457)},36583,e=>{"use strict";e.s(["formatTimeAgo",0,function(e){if(!e)return"";try{let t=new Date(e),r=new Date,i=Math.floor((r-t)/1e3);if(i<0||isNaN(i))return"";if(i<60)return`${i}s ago`;let a=Math.floor(i/60);if(a<60)return`${a}m ago`;let s=Math.floor(a/60);if(s<24)return`${s}h ago`;let n=Math.floor(s/24);if(n<7)return`${n}d ago`;let o=Math.floor(n/7);if(o<4)return`${o}w ago`;let l=Math.floor(n/30);if(l<12)return`${l}mo ago`;let c=Math.floor(n/365);return`${c}y ago`}catch(e){return console.error("Error formatting time ago:",e),""}},"getListingDate",0,function(e){return e&&(e.itemOriginDate||e.itemCreationDate||e.itemStartDate||e.listingDate||e.startDate||e.createdDate)||null},"isNewlyListed",0,function(e){if(!e)return!1;try{let t=new Date(e),r=(new Date-t)/36e5;return r<=24&&r>=0}catch(e){return!1}}])},58640,e=>{"use strict";e.i(50461),e.s(["trackAffiliateClick",0,function(e,t="unknown"){return r=>{window.gtag&&window.gtag("event","affiliate_click",{item_id:e.itemId,item_title:e.title,price:e.price?.value,currency:e.price?.currency,seller:e.seller?.username,location:t})}}])}]);

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.