1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4170,4676],{7501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var s=n(80263),i=n(53239),r=n(9396);let a="/static/img/placeholder.webp",o=e=>{let[t,n]=(0,i.useState)(void 0);return(0,i.useEffect)(()=>{(e=>{try{if(!e||e&&0===e.length)return!0;return new URL(e),!1}catch(e){return!0}})(e.src)&&n(Error())},[]),t?(0,s.jsx)(r.LazyLoadImage,{src:a,className:e.className?"place_holder ".concat(e.className):"place_holder"}):(0,s.jsx)(r.LazyLoadImage,{className:e.className||"",id:e.id||"",src:e.src||a,alt:e.alt||"",onError:n})}},7772:(e,t,n)=>{"use strict";n.d(t,{Fp:()=>c,Q4:()=>l.default,eP:()=>a.A,wG:()=>r.A,x8:()=>o.A});var s=n(23867),i=n.n(s),r=n(8826),a=n(45510),o=n(52929);n(57649);var l=n(84676);let c=i()(()=>Promise.all([n.e(1571),n.e(9070),n.e(4209),n.e(3668),n.e(1426),n.e(4349),n.e(651),n.e(8610),n.e(3763),n.e(4141)]).then(n.bind(n,93763)),{loadableGenerated:{webpack:()=>[93763]},ssr:!1})},39263:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>k,default:()=>S});var s=n(80263),i=n(23867),r=n.n(i),a=n(62503),o=n(22562),l=n.n(o),c=n(53239),p=n(88284),d=n.n(p),h=n(1148),u=n(5303),x=n(652),m=n(9052),f=n(25575),g=n(59452),w=n(10671),b=n(7772),v=n(66026),j=n(75129),y=n(49767);let A=r()(n.e(7664).then(n.bind(n,57664)),{loadableGenerated:{webpack:()=>[57664]}}),_=r()(Promise.all([n.e(3668),n.e(5361),n.e(2747)]).then(n.bind(n,52747)),{loadableGenerated:{webpack:()=>[52747]},ssr:!1});var k=!0;let S=e=>{let{data:t,agentInfo:n}=e,[i,r]=(0,c.useState)(n),{locale:o}=(0,a.useRouter)();return(0,v.A)(o),(0,c.useEffect)(()=>{(0,j.D_)(j.dE.deals),r(function(e){let{cookie:t}=document;var n=navigator.userAgent;return{hasAcceptedCookie:t&&-1!==t.indexOf("user-has-accepted-cookie=true")||e.hasAcceptedCookie,isWishuponAgent:n&&-1!==n.indexOf("Wishupon")||e.isWishuponAgent,isMobile:n&&-1!==n.indexOf("Mobile")||e.isWishuponAgent}}(n||{hasAcceptedCookie:!1,isWishuponAgent:!1,isMobile:!1}))},[]),(0,s.jsxs)("main",{children:[(0,s.jsxs)(d(),{children:[(0,s.jsx)("title",{children:"".concat(t.title," - Wishupon")}),(0,s.jsx)("link",{rel:"alternate",href:"https://wishupon.app/contents/deals",hrefLang:"x-default"}),(0,s.jsx)("link",{rel:"alternate",hrefLang:"en-gb",href:"https://wishupon.app/contents/deals"}),(0,s.jsx)("link",{rel:"alternate",hrefLang:"en-fr",href:"https://wishupon.app/fr/contents/deals"}),(0,s.jsx)("link",{rel:"alternate",hrefLang:"en-us",href:"https://wishupon.app/contents/deals"}),(0,s.jsx)("link",{rel:"alternate",hrefLang:"fr",href:"https://wishupon.app/fr/contents/deals"}),(0,s.jsx)("link",{rel:"alternate",hrefLang:"en",href:"https://wishupon.app/contents/deals"}),y.A.isDebug&&(0,s.jsx)("meta",{name:"robots",content:"noindex"})]}),!(null==i?void 0:i.isWishuponAgent)&&(0,s.jsx)(b.Fp,{}),(0,s.jsxs)(h.A,{sx:{mt:"var(--mobile-top-bar-content-offset)",overflow:"visible",mb:"2em"},maxWidth:"lg",children:[(0,s.jsx)(u.A,{sx:{width:"100%",display:"flex",flexDirection:"row",justifyContent:"flex-between",alignItems:"center",mb:"1em"},children:(0,s.jsx)(x.A,{variant:"h5",sx:{color:"#4b576f",fontWeight:600,letterSpacing:"-1px",ml:"5px"},children:t.title})}),(0,s.jsx)(u.A,{sx:{height:"2px",borderRadius:"2px",backgroundColor:"#00cbbc",mt:"1.5em",mb:"2em"}}),(0,s.jsx)(m.Ay,{container:!0,spacing:2,children:t.data.map((e,t)=>(0,s.jsx)(m.Ay,{item:!0,lg:3,md:4,sm:6,xs:6,onClick:()=>(0,j.$s)(j.B8.dealCard,{[j.dL.url]:e.url}),children:(0,s.jsx)(l(),{href:e.url,legacyBehavior:!0,children:(0,s.jsx)("a",{target:"_blank",style:{textDecoration:"none"},children:(0,s.jsxs)(u.A,{children:[(0,s.jsx)(f.A,{sx:{boxShadow:"2",m:"1px"},children:(0,s.jsx)(g.A,{component:"img",image:e.image||e.image,alt:e.title})}),(0,s.jsx)(w.A,{"data-nosnippet":!0,alt:e.host,src:e.host&&!e.host.startsWith("amazon")?"https://cdn.wishupon.app/img/favicon?dm=".concat(e.host):"",sx:{position:"relative",bottom:68,left:16,width:56,height:56,mb:-6,background:"white"},children:e.host&&e.host.charAt(0).toLocaleUpperCase()}),(0,s.jsx)(x.A,{color:"#4b576f",sx:{position:"relative",bottom:0,fontWeight:600,ml:"12px",mr:"12px",mt:"6px",mb:"12px",fontSize:"16px",lineHeight:"18px",letterSpacing:"0.38px",wordWrap:"break-word"},children:e.title})]})})},e.url)},e.url))})]}),!(null==i?void 0:i.isWishuponAgent)&&(0,s.jsx)(_,{}),!(null==i?void 0:i.isWishuponAgent)&&(0,s.jsx)(A,{})]})}},45194:(e,t,n)=>{"use strict";async function s(e,t,n){var s,i;let r=await fetch(function(){{let e="https://api.wishupon.app/graphql";if(!e)return"/graphql";if(e.startsWith("/"))return e;try{let t=new URL(e),n=window.location.hostname,s="localhost"===t.hostname||"127.0.0.1"===t.hostname;if(t.hostname===n||s&&n===t.hostname)return e}catch(e){}return"/graphql"}}(),{method:"POST",headers:{"content-type":"application/json",...n},body:JSON.stringify({query:e,variables:t})}),a=await r.json();if(!r.ok||(null==(s=a.errors)?void 0:s.length))throw Error((null==(i=a.errors)?void 0:i.map(e=>e.message).join(", "))||"GraphQL request failed with status ".concat(r.status));if(!a.data)throw Error("GraphQL response did not include data");return a.data}n.d(t,{L:()=>s}),n(23727)},47011:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var s=n(80263),i=n(53239),r=n(49417),a=n(93515);let o=r.Ay.p.withConfig({displayName:"HostChip__StyledParagraph",componentId:"sc-255cb284-0"})(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;padding:0;margin:0;&:hover{text-decoration:underline;}"]),l=function(e){let{host:t,onClick:n}=e,[r,l]=(0,i.useState)(!1);return(0,s.jsxs)("div",{style:{display:"flex",height:"22px",justifyContent:"flex-start",alignItems:"center",backgroundColor:"transparent"}
1,onClick:n,children:[(0,s.jsx)("div",{"data-nosnippet":!0,style:{display:"flex",justifyContent:"center",alignContent:"center",width:"22px",height:"22px",marginRight:"6px",backgroundColor:"#fff",color:"#96a8a8",fontSize:"12px",borderRadius:"11px"},children:(0,s.jsx)(a.A,{host:t})}),(0,s.jsx)(o,{children:t})]})}},49240:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var s=n(80263),i=n(53239),r=n(47011),a=n(7501),o=n(5303),l=n(652),c=n(22562),p=n.n(c),d=n(95673);let h=e=>{let{item:t,source:n,onClickItem:c}=e,[h,u]=(0,i.useState)(!1);return(0,s.jsx)(p(),{href:"/item/".concat(t.path),style:{textDecoration:"none"},shallow:!0,onClick:()=>{sessionStorage.setItem("ws.r.".concat(t.id),JSON.stringify(t)),null==c||c(t)},children:(0,s.jsxs)(o.A,{className:"product",children:[(0,s.jsx)("div",{className:"product-feed-image",children:(0,s.jsx)(a.A,{className:"item",src:t.image,alt:t.title})}),(0,s.jsxs)("div",{className:"container-bottom",children:[(0,s.jsx)(r.A,{host:t.host,onClick:()=>{let e=d.Ay.getRedirectionUrlString(t.url,n,null,"web_rcmd_grid_favicon");window.open(e,"_blank")}}),t.title&&(0,s.jsx)("div",{className:"title",children:t.title}),t.price&&(0,s.jsxs)("div",{className:"price_wrapper",children:[t.price.salePrice&&(0,s.jsx)("p",{className:"price_sale",children:t.price.retailPrice}),(0,s.jsx)("p",{className:"price",children:t.price.salePrice||t.price.retailPrice})]}),t.isSponsored&&(0,s.jsx)("div",{children:(0,s.jsx)(l.A,{variant:"caption",className:"sponsored",children:"Sponsored"})})]})]})})}},49767:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(23727);let i="https://us-central1-wishupon-72097.cloudfunctions.net",r={wishlistApiBaseUrl:i,apiBaseUrl:i,apiUrl:s.env.apiUrl||"https://api.wishupon.app/api/wishlists/%s",featuredApiUrl:s.env.featuredApiUrl||"https://api.wishupon.app/api/wishlists/featured/%s",baseUrl:s.env.baseUrl||"https://wishupon.app",isDebug:"true"===s.env.isDebug,apiItemsBaseUrl:s.env.api_items_base_url||"https://api.wishupon.app",stage:s.env.stage||"prod"}},57319:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/contents/deals",function(){return n(39263)}])},60536:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var s=n(95673);class i{constructor(e,t){if(!e||void 0===e.price_retail||void 0===e.currency||"None"===e.currency){this.retailPrice="";return}try{let n=new Intl.NumberFormat(t||"en-US",{style:"currency",currency:e.currency});this.retailPrice=n.format(e.price_retail),e.price_sale&&(this.salePrice=n.format(e.price_sale))}catch(e){this.retailPrice=""}}}class r{constructor(e,t){this.price=new i(e,t),this.currency=e.currency,this.image=e.image,this.featured=e.featured,this.id=e.id,this.retailPrice=e.price_retail,this.salePrice=e.price_sale,this.title=e.title,this.url=e.url,this.host=e.host||s.Ay.getHostname(e.url),this.isSponsored=e.is_sponsored,this.path=encodeURIComponent("".concat(e.title.substring(0,100).replace(/-/g,"").replace(/ /g,"-").replace(/\//g,"").toLowerCase(),"-").concat(e.id))}}let a=r},84676:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var s=n(80263),i=n(53239),r=n(9052),a=n(44862),o=n(5303),l=n(25311),c=n(62503),p=n(66026),d=n(75129),h=n(49240),u=n(60536);let x=new(n(99436)).A,m=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,f=()=>{let[e,t]=(0,i.useState)([]),[n,f]=(0,i.useState)(!1),[g,w]=(0,i.useState)(!1),{locale:b}=(0,c.useRouter)(),[v,j]=(0,i.useState)(),y=(0,p.A)(b),A=()=>{let e=(null==v?void 0:v.page)||m(0,20),t=(null==v?void 0:v.pages)||new Set([e]);if(e<20){for(;t.has(e);)e=m(0,20);t.add(e)}else e+=1;j({page:e,pages:t})};return(0,i.useEffect)(()=>{A()},[]),(0,i.useEffect)(()=>{if(v){var n;n=v.page,w(!0),x.getDiscoverItems(n,!1).then(n=>{t([...e,...n.map(e=>new u.A(e,b))]),0===n.length?f(!1):f(!0)}).catch(e=>{}).finally(()=>w(!1))}},[v]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.Ay,{container:!0,spacing:2,children:e.map(e=>(0,s.jsx)(r.Ay,{item:!0,md:3,sm:3,xs:6,onClick:()=>(0,d.$s)(d.B8.wishfeedGoToProduct,{[d.dL.title]:e.title}),children:(0,s.jsx)(h.A,{item:e,source:""})},e.id))}),g&&(0,s.jsx)("div",{className:"container-spinner",children:(0,s.jsx)(a.A,{})}),!g&&n&&(0,s.jsx)(o.A,{sx:{display:"flex",width:"100%",flexDirection:"column",justifyContent:"center",alignItems:"center",mb:"-2em"},children:(0,s.jsx)(l.A,{variant:"contained",onClick:()=>A(),sx:{backgroundColor:"#4D4D4D",color:"white",borderRadius:"16px",fontFamily:e=>e.typography.body1.fontFamily,fontSize:e=>e.typography.body1.fontSize,textTransform:"none",fontWeight:300,boxShadow:"none",px:"16px !important",py:"6px !important","&:hover":{backgroundColor:"#1A1A1A",boxShadow:"none"}},children:y.loadMore})})]})}},93515:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(80263),i=n(53239);let r=function(e){let{host:t,size:n=22}=e,[r,a]=(0,i.useState)(!1),o=t.startsWith("amazon");return(0,s.jsx)("div",{children:o?(0,s.jsx)("p",{style:{width:"".concat(n,"px"),height:"".concat(n,"px"),paddingTop:"".concat(.09*n,"px"),margin:0,borderRadius:"50%",background:"white",textAlign:"center",fontSize:"".concat(.5*n,"px"),lineHeight:"".concat(.9*n,"px")}
1,children:t.charAt(0).toLocaleUpperCase()}):(0,s.jsx)("img",{alt:"favicon",width:n,height:n,loading:"lazy",decoding:"async",style:{borderRadius:"50%",background:"#F7F7F8",display:r?"none":"block",objectFit:"cover"},src:"https://cdn.wishupon.app/img/favicon?dm=".concat(t),onError:()=>a(!0)})})}},99436:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var s=n(80594),i=n(59603),r=n(45194);class a{constructor(){this.getDiscoverItems=async function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1],((await (0,r.L)("\n query DiscoverBundleItems($locale: String, $page: Int, $size: Int) {\n discoverBundle(locale: $locale, page: $page, size: $size) {\n data {\n type\n item {\n currency\n image\n featured\n id\n price_retail\n price_sale\n title\n url\n host\n is_sponsored\n }\n }\n }\n }\n ",{locale:"en",page:e,size:12})).discoverBundle.data||[]).filter(e=>"p"===e.type&&e.item).map(e=>e.item)}}}a=(0,s.Cg)([(0,i.k)()],a)}},e=>{e.O(0,[1148,9052,2836,9640,6149,6007,9321,3490,9603,2562,5348,3868,5502,636,6593,8792],()=>e(e.s=57319)),_N_E=e.O()}]);
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.