!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f08a7b96-5c15-4e90-bf7e-12172018b321",e._sentryDebugIdIdentifier="sentry-dbid-f08a7b96-5c15-4e90-bf7e-12172018b321")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3043],{75759:function(e,t,a){a.d(t,{Z:function(){return F}});var s=a(57437),l=a(50850),r=a(50495),n=a(5356),o=a(90837),i=a(12738),d=a(24244),c=a(83146),u=a(93191),m=a(25524);let f=async e=>{await fetch("/api/customer/back-in-stock/",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})})},x=()=>{let e=(0,u.NL)();return(0,m.D)({mutationFn:e=>{let{id:t}=e;return f(t)},onSuccess:()=>{e.invalidateQueries({queryKey:[c.DX.watchlist]})}})};var h=a(10681),p=a(70941),b=a(67675),g=a(83220),w=a(75536),N=a(12218),v=a(30998),j=a(87138),y=a(16463),k=a(2265),C=a(9088),z=e=>{let{primary:t,secondary:a,outlet:l}=e;return(0,s.jsxs)("div",{className:"absolute left-0 flex flex-col gap-2 bottom-4 lg:bottom-12",children:[t.map((e,t)=>(0,s.jsx)("div",{className:(0,N.cx)("px-2 py-0.5 bg-white text-xs text-black uppercase  w-max ",{"!bg-[#E3BAB9] text-white":"NEW"===e.theme&&!1},{"!bg-[#B5BAD6] text-white":"NEW"===e.theme},{"!bg-[#CBB97F] text-white":"BESTSELLER"===e.theme},{"!bg-[#BBC1B2] text-white":"PREMIUM"===e.theme},{"!bg-[#A29387] text-white":"SELLINGFAST"===e.theme},{"!bg-[#AAAAA9] text-white":"FAVORITE"===e.theme},{"!bg-[#D9D0C0]":"TOPLIST"===e.theme},{"!bg-[#D30F2C] text-white":"SALE"===e.theme},{"!bg-[#D30F2C] text-white":"DISCOUNT"===e.theme},{"!bg-white !text-greyDefault italic":l}),children:l?(0,s.jsx)("span",{children:"Outlet"}):(0,s.jsx)("span",{children:"DISCOUNT"===e.theme?"SALE":e.label})},t)),a.map((e,t)=>(0,s.jsx)("div",{className:(0,N.cx)("px-2 py-0.5 bg-white text-xs text-black uppercase  w-max ",{"!bg-[#E3BAB9] text-white":"NEW"===e.theme&&!1},{"!bg-[#B5BAD6] text-white":"NEW"===e.theme},{"!bg-[#CBB97F] text-white":"BESTSELLER"===e.theme},{"!bg-[#BBC1B2] text-white":"PREMIUM"===e.theme},{"!bg-[#A29387] text-white":"SELLINGFAST"===e.theme},{"!bg-[#AAAAA9] text-white":"FAVORITE"===e.theme},{"!bg-[#D9D0C0]":"TOPLIST"===e.theme},{"!bg-[#D30F2C] text-white":"SALE"===e.theme},{"!bg-[#D30F2C] text-white":"DISCOUNT"===e.theme},{"!bg-white !text-greyDefault italic":l}),children:l?(0,s.jsx)("span",{children:"Outlet"}):(0,s.jsx)("span",{children:"DISCOUNT"===e.theme?"SALE":e.label})},t))]})},S=a(1810),I=a(96627),E=a(83717),R=a(60708),A=a(76777),P=a(70358),Z=a(56800),D=a.n(Z),O=e=>{let{products:t,setActiveProduct:a,activeProduct:l}=e,o=(0,P.Z)(1024);return(0,s.jsxs)(n.Carousel,{className:"w-full my-1 overflow-hidden",opts:{align:"start"},children:[(0,s.jsx)(n.CarouselContent,{className:"-ml-2 ",children:t.map(e=>(0,s.jsx)(n.CarouselItem,{className:"basis-[calc(26px+8px)] pl-2",children:o?(0,s.jsxs)(r.z,{variant:"link",className:D()("h-[26px] w-full rounded-full relative flex items-center justify-center overflow-hidden border p-0",l.key===e.key?"border-black":"border-gray-300"),style:{backgroundColor:e.swatch.colors[0]},onClick:()=>{a(e)},"aria-label":"Select color",children:[e.custom&&e.custom.swatch&&e.custom.swatch.length>0&&e.custom.swatch[0].id&&(0,s.jsx)(b.Z,{src:e.custom.swatch[0].id,alt:e.swatch&&e.swatch.colors&&e.swatch.colors.length>0&&e.swatch.colors[0]||"",width:32,height:32}),l.key===e.key&&(0,s.jsx)("div",{className:"absolute top-t left-l w-[24px] h-[24px] rounded-full border-2 border-white shadow-[0_0_0_1px_black]"})]}):(0,s.jsxs)(j.default,{href:e.link,onMouseEnter:()=>{a(e)},className:D()("h-[26px] w-full rounded-full relative flex items-center justify-center overflow-hidden border ",l.key===e.key?"border-black":"border-gray-300"),style:{backgroundColor:e.swatch.colors[0]},children:[(0,s.jsx)("span",{className:"hidden",children:e.swatch.colors[0]}),l.key===e.key&&(0,s.jsx)("div",{className:"absolute top-t left-l w-[24px] h-[24px] rounded-full border-2 border-white shadow-[0_0_0_1px_black]"}),e.custom&&e.custom.swatch&&e.custom.swatch.length>0&&e.custom.swatch[0].id&&(0,s.jsx)(b.Z,{src:e.custom.swatch[0].id,alt:e.swatch&&e.swatch.colors&&e.swatch.colors.length>0&&e.swatch.colors[0]||"",width:32,height:32})]})},e.key))}),(0,s.jsx)(n.CarouselPrevious,{className:"flex hover:bg-white left-0 border-none rounded-none bg-gradient-to-r bg-transparent from-50%  from-white w-7"}),(0,s.jsx)(n.CarouselNext,{className:"flex hover:bg-white right-0 border-none rounded-none bg-gradient-to-l bg-transparent from-50% from-white w-7"})]})},T=a(42491),_=a(19573),B=a(45222),L=a(11586),Y=a(23438),M=a(42421),V=a(84649),G=e=>{var t,a;let{activeProduct:l,showAtc:n,carousel:o,setMonitorSize:i,setMonitorOpen:d}=e,[c,u]=(0,k.useState)(!1),[m,f]=(0,k.useState)([]),[x,h]=(0,k.useState)(n),[p,b]=(0,k.useState)(""),[w,N]=(0,k.useState)(""),[v,j]=(0,k.useState)(""),[z,S]=(0,k.useState)(),I=(0,y.useParams)(),E=async()=>{u(!0);let e=await (0,B.Sn)({productParentId:l.key,storeGroupId:"nly_man_web",countryCode:I.lang});"productParent"in e&&f(e.productParent.productVariants)};(0,k.useEffect)(()=>{n||h(!1)},[n]),(0,k.useEffect)(()=>{c&&!z&&(0,L.Ox)((0,g.lV)(l.brand)).then(e=>{S(e)})},[l.brand,c,z]);let{t:R}=(0,g.$G)(I.lang),A=(a=l.variants,(0,k.useMemo)(()=>a.some(e=>{var t;return null===(t=e.label)||void 0===t?void 0:t.includes("X-")})?a.sort((e,t)=>{let a=parseInt(e.key.split("-").at(-1)||"0"),s=parseInt(t.key.split("-").at(-1)||"0");if(!isNaN(a)&&!isNaN(s))return a-s;{let a=e.label||"￿";return(t.label||"￿").localeCompare(a)}}):a,[a]));return(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:D()("absolute  px-2 py-5 duration-300 left-0 w-full flex flex-col items-center justify-center z-20 -bottom-10 ",{"bottom-0":n}),children:c?(0,s.jsxs)("div",{className:"p-2.5 bg-white/[0.9] w-full",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"flex justify-end mb-2 text-sm",children:(0,s.jsx)(V.default,{brandName:l.brand,content:z})}),(0,s.jsxs)(_.J2,{open:x,onOpenChange:h,children:[(0,s.jsx)(_.xo,{asChild:!0,children:(0,s.jsxs)(r.z,{variant:"outline",role:"combobox","aria-expanded":x,className:"w-full justify-between mb-2 p-3 rounded-[2px] h-11 text-base font-semibold hover:bg-white",children:[p?l&&(null===(t=l.variants.find(e=>e.size===p))||void 0===t?void 0:t.label):R("size.chooseSize"),(0,s.jsx)(M.Z,{className:"w-4 h-4"})]})}),(0,s.jsx)(_.yk,{sideOffset:-1,side:"bottom",alignOffset:0,align:"start",className:D()("p-0 rounded-none max-w-[302px] w-[calc(25vw-3rem)] border border-black z-30",{"max-w-[270px]":o}),children:(0,s.jsx)(T.mY,{className:"w-full p-0",children:(0,s.jsx)(T.fu,{className:"w-full p-0 overflow-auto lg:max-h-[400px]",children:A&&A.map((e,t)=>{let a=m.find(t=>t.id===e.key),l=a&&a.isAvailable;return(0,s.jsx)(T.di,{value:e.size||"",onSelect:t=>{l&&(b(e.size||""),N(e.ticket||""),j(e.key),h(!1))},className:"border-t border-middleGrey h-[54px] w-full text-base hover:bg-lightPurple focus:bg-lightPurple first:border-none rounded-none px-3 cursor-pointer justify-between items-center flex",children:l?a.availableQuantity<10?(0,s.jsxs)("div",{children:[e.size," -"," ",(0,s.jsx)("span",{className:"text-redColor",children:R("product.fewLeft")})]}):e.size:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"block leading-none",children:"".concat(e.size," - ").concat(R("product.soldOut"))}),(0,s.jsx)(r.z,{variant:"secondary",className:"w-full max-w-[110px] z-50 text-base bg-purple-medium h-[38px] right-3 m-auto top-0 bottom-0 m-0",onClick:()=>{i({name:e.size||"",sku:e.key}),d(!0)},children:R("product.monitor")})]})},t)})})})})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(r.z,{onClick:()=>{u(!1)},variant:"outline",className:"w-full",children:R("product.cancel")}),(0,s.jsx)(C.Z,{className:"text-sm font-medium h-10",variantId:v,variantTickets:[{variantId:v,ticket:w}],buttonText:R("product.quickAdd"),openSizes:h})]})]}):(0,s.jsxs)(r.z,{variant:"secondary",className:"font-semibold text-base hover:bg-purple-medium px-6 h-[46px]",onClick:()=>E(),children:[R("product.quickAdd"),(0,s.jsx)(Y.Z,{className:"ml-2 h-6 w-6"})]})})})},F=e=>{var t,a,c,u,m,f,P,Z;let{productGroup:D,className:T,remove:_,watchedSize:B,withAtc:L,carousel:Y,interactionId:M,wishlistKey:V,watchlistId:F,otherMarket:q,priority:U}=e,[W,K]=(0,k.useState)(M&&D.products.find(e=>e.key===V)||D.products[0]),[H,$]=(0,k.useState)(),[J,X]=(0,k.useState)(!1),[Q,ee]=(0,k.useState)(),[et,ea]=(0,k.useState)(!1),{mutateAsync:es,status:el}=(0,R.o)(),{mutateAsync:er,status:en}=x(),{data:eo}=(0,v.useSession)(),ei=(0,y.useParams)(),{brand:ed,title:ec,sellingPrice:eu,listPrice:em}=W,ef=W.imageInfo.images.sort((e,t)=>{var a,s;let l=(null===(a=e.custom)||void 0===a?void 0:a.sortOrder)||"0",r=(null===(s=t.custom)||void 0===s?void 0:s.sortOrder)||"0";return parseInt(l)-parseInt(r)}),ex=(null===(t=ef[0])||void 0===t?void 0:t.sources.map(e=>e.url))||[],eh=W.link,ep=e=>{e.preventDefault()};(0,k.useEffect)(()=>{$(D.products),W.variants[0].prices.find(e=>"member"===e.id)},[]);let eb=d.uZ[ei.lang].currency||"SEK",{t:eg}=(0,g.$G)(ei.lang),ew=W.variants.map(e=>({name:e.size,sku:e.key})),eN=!0===q?"https://nelly.com":"",ev=eN.includes("https://")?"a":j.default;return(0,s.jsxs)("div",{className:(0,N.cx)({"flex flex-col justify-between":L}),children:[(0,s.jsxs)(ev,{className:T,href:"".concat(eN).concat(eh,"/"),onMouseEnter:()=>X(!0),onMouseLeave:()=>X(!1),children:[(0,s.jsxs)("div",{className:"group relative ",onClick:e=>{"IMG"===e.target.tagName&&(0,h.wG)({product:W})},children:[(0,s.jsx)(l.AspectRatio,{ratio:1/1.33,className:"image",children:ex[0]?(0,s.jsx)(b.Z,{src:ex[0],alt:ec,width:200,height:265,priority:U}):(0,s.jsx)(i.O,{className:"bg-middleGrey absolute rounded-none top-0 left-0 w-full h-full"})}),(0,s.jsxs)("div",{className:(0,N.cx)("absolute overflow-hidden lg:block w-full h-full top-0 left-0 opacity-0 hidden ",{"opacity-100":J}),children:[(0,s.jsxs)(n.Carousel,{opts:{align:"start",loop:!0,startIndex:1},className:"w-full",children:[(0,s.jsx)(n.CarouselContent,{className:"-ml-0",children:ef.filter(e=>!e.sources[0].url.includes("_40.jpg")).map((e,t)=>(0,s.jsx)(n.CarouselItem,{className:"basis-full pl-0",children:(0,s.jsx)(l.AspectRatio,{ratio:1/1.33,className:"image",children:e?(0,s.jsx)(b.Z,{src:e.sources[0].url,alt:ec,width:200,height:265}):(0,s.jsx)(i.O,{className:"bg-middleGrey absolute rounded-none top-0 left-0 w-full h-full"})})},t))}),(0,s.jsx)("div",{onClick:ep,children:(0,s.jsx)(n.CarouselPrevious,{className:"!w-11 !h-11 hidden lg:flex left-0 border-none bg-transparent hover:bg-white/50"})}),(0,s.jsx)("div",{onClick:ep,children:(0,s.jsx)(n.CarouselNext,{className:"!w-11 !h-11  right-0 hidden lg:flex border-none bg-transparent hover:bg-white/50"})})]}),!L&&(0,s.jsx)("div",{onClick:ep,children:(0,s.jsx)(G,{carousel:Y,showAtc:J,activeProduct:W,setMonitorSize:ee,setMonitorOpen:ea})})]}),!L&&(0,s.jsx)("div",{className:"absolute top-0 left-0 ",onClick:ep,children:(0,s.jsx)(A.Z,{className:"border-none rounded-none !bg-transparent",product:W,productBrand:W.brand,productPrice:W.sellingPrice.min,productTitle:W.title,productImage:(null===(a=W.imageInfo.images[0])||void 0===a?void 0:a.sources[0].url)||"empty"})}),_&&(0,s.jsx)("div",{className:"absolute top-0 right-0 ",onClick:e=>{e.preventDefault(),F?er({id:F}):es({productId:W.key,interactionId:M,product:W})},children:(0,s.jsx)(r.z,{variant:"ghost",className:"border-none rounded-none !bg-transparent p-0 h-11 w-11",children:(0,s.jsx)(w.Z,{className:"stroke-black w-6 h-6"})})}),(0,s.jsx)(z,{primary:W.badges.primary,secondary:W.badges.secondary,outlet:(null===(c=W.custom)||void 0===c?void 0:c.inOutlet)&&(null===(m=W.custom)||void 0===m?void 0:null===(u=m.inOutlet[0])||void 0===u?void 0:u.id)==="1"}),W.inStock?null:(0,s.jsx)("div",{className:"absolute top-0 bottom-0 m-auto w-full h-9 text-sm uppercase tracking-[1px] text-white flex items-center justify-center bg-[#b2b2b2]/70 ",children:eg("product.comingSoon")})]}),(0,s.jsx)("div",{className:"flex pt-2",children:(0,s.jsxs)("div",{className:"flex flex-col ",children:[(0,s.jsx)("span",{className:"uppercase text-[#7f7f7f] text-subhead tracking-[0.5px]",children:ed}),(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"pb-0.5 text-sm font-semibold ",children:ec}),B&&(0,s.jsxs)("span",{className:"text-subhead leading-none block mb-1",children:[eg("monitor.size"),": ",B]})]}),(0,s.jsx)(S.Z,{className:"text-darkGrey",price:(null==eo?void 0:eo.user)?(0,p.hz)(W,!0):100*em.min,lang:ei.lang,discount:(null==eo?void 0:eo.user)?(0,p.hz)(W,!1):100*eu.min,currency:eb,outlet:(null===(f=W.custom)||void 0===f?void 0:f.inOutlet)&&(null===(Z=W.custom)||void 0===Z?void 0:null===(P=Z.inOutlet[0])||void 0===P?void 0:P.id)==="1"})]})})]}),!L&&!B&&H&&H.length>1&&(0,s.jsx)(O,{products:H,setActiveProduct:K,activeProduct:W}),L&&(0,s.jsxs)("div",{className:"mt-3 space-y-2",children:[(0,s.jsx)(E.Z,{sizes:ew,productParentId:W.key,fullWidthMobile:!0}),(0,s.jsx)(C.Z,{productParentId:W.key,variantTickets:W.variants.map(e=>({variantId:e.key,ticket:e.ticket}))})]}),(0,s.jsx)(o.Vq,{open:et,onOpenChange:ea,children:(0,s.jsx)(I.Z,{name:null==Q?void 0:Q.name,sku:null==Q?void 0:Q.sku})})]})}},84649:function(e,t,a){a.d(t,{default:function(){return v}});var s=a(57437),l=a(50495),r=a(95317),n=a(2265),o=a(83220);let i=n.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)("div",{className:"relative w-full overflow-auto",children:(0,s.jsx)("table",{ref:t,className:(0,o.cn)("w-full caption-bottom text-sm",a),...l})})});i.displayName="Table";let d=n.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)("thead",{ref:t,className:(0,o.cn)("[&_tr]:border-b",a),...l})});d.displayName="TableHeader";let c=n.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)("tbody",{ref:t,className:(0,o.cn)("[&_tr:last-child]:border-0",a),...l})});c.displayName="TableBody",n.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)("tfoot",{ref:t,className:(0,o.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...l})}).displayName="TableFooter";let u=n.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)("tr",{ref:t,className:(0,o.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...l})});u.displayName="TableRow";let m=n.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)("th",{ref:t,className:(0,o.cn)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",a),...l})});m.displayName="TableHead";let f=n.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)("td",{ref:t,className:(0,o.cn)("p-4 align-middle [&:has([role=checkbox])]:pr-0",a),...l})});f.displayName="TableCell",n.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)("caption",{ref:t,className:(0,o.cn)("mt-4 text-sm text-muted-foreground",a),...l})}).displayName="TableCaption";var x=a(62447);let h=x.fC,p=n.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)(x.aV,{ref:t,className:(0,o.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",a),...l})});p.displayName=x.aV.displayName;let b=n.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)(x.xz,{ref:t,className:(0,o.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",a),...l})});b.displayName=x.xz.displayName;let g=n.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)(x.VY,{ref:t,className:(0,o.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...l})});g.displayName=x.VY.displayName;var w=a(74697),N=a(16463),v=e=>{let{notice:t,content:a,brandName:n}=e,x=(0,N.useParams)(),{t:v}=(0,o.$G)(x.lang);if(a&&(null==a?void 0:a.length)!==0)return(0,s.jsxs)(r.yo,{children:[(0,s.jsxs)("div",{className:"flex items-center text-darkGrey",children:[(0,s.jsx)(r.aM,{className:"underline underline-offset-[2.5px] text-darkGrey",children:v("product.sizeGuide")}),t&&(0,s.jsx)("p",{className:"ml-2 font-semibold",children:t})]}),(0,s.jsxs)(r.ue,{className:"sm:max-w-[850px] w-full p-4",children:[(0,s.jsx)(r.sw,{asChild:!0,children:(0,s.jsx)(l.z,{className:"absolute border hover:bg-white lg:-left-[50px] left-1 top-1.5 w-11 h-11 border-none lg:border-black p-0 flex items-center bg-white justify-center rounded-full ",type:"button",variant:"ghost",children:(0,s.jsx)(w.Z,{className:""})})}),(0,s.jsx)(r.Tu,{children:(0,s.jsx)(r.bC,{children:(0,s.jsxs)("h2",{className:"text-center tracking-[1px] mb-2 text-xl",children:[n," Size guide"]})})}),(0,s.jsxs)(h,{defaultValue:a&&a.length>0?a[0].title:"Numeriz sizes",className:"w-full",children:[(0,s.jsx)(p,{className:"grid w-full grid-cols-4 bg-transparent h-10 md:h-14 p-0 gap-0.5",children:a&&a.map((e,t)=>(0,s.jsx)(b,{className:"h-full bg-[#e5e5e5] whitespace-normal rounded-none text-black data-[state=active]:bg-purple-medium data-[state=active]:font-semibold",value:e.title,children:e.title},t))}),a&&a.map((e,t)=>(0,s.jsxs)(g,{className:"pt-4",value:e.title,children:[(0,s.jsx)("h3",{className:"font-semibold mb-2",children:e.title}),(0,s.jsx)("p",{className:"text-sm md:w-3/5 ",children:e.description}),(0,s.jsxs)(i,{className:"my-8 border ",children:[(0,s.jsx)(d,{children:(0,s.jsx)(u,{children:e.tableHeading.row.map((e,t)=>(0,s.jsx)(m,{className:"border-2 h-auto p-2 border-[#e5e5e5] font-semibold text-black uppercase text-center",children:e.item},t))})}),(0,s.jsx)(c,{children:e.tableBody.map((e,t)=>(0,s.jsx)(u,{children:e.row.map((e,t)=>(0,s.jsx)(f,{className:"border-2 p-2 border-[#e5e5e5] text-center",children:e.item},t))},t))})]})]},t))]})]})]})}},83717:function(e,t,a){var s=a(57437),l=a(50495),r=a(46294),n=a(95317),o=a(70358),i=a(83220),d=a(42421),c=a(74697),u=a(16463),m=a(2265),f=a(96164),x=a(57731),h=a(22055);t.Z=e=>{var t;let{sizes:a,productParentId:p,fullWidthMobile:b}=e,{setSelectedSize:g,setActiveSizeDialog:w}=(0,x.C)(),{selectedSize:N,activeSizeDialog:v}=(0,x._X)(),j=(0,o.Z)(767),y=(0,u.useParams)();function k(){v===p?w(void 0):w(p)}let{t:C}=(0,i.$G)(y.lang);return(0,m.useEffect)(()=>{1===a.length&&g(a[0].sku)},[]),j?(0,s.jsxs)(n.yo,{open:v===p,onOpenChange:k,children:[(0,s.jsx)(n.aM,{asChild:!0,children:(0,s.jsxs)(l.z,{variant:"outline",className:(0,f.m6)("border-black text-base font-semibold justify-between p-3 h-11",b?" w-full":" w-1/2"),children:[N&&(null===(t=a.find(e=>e.sku===N))||void 0===t?void 0:t.name)||C("size.chooseSize"),(0,s.jsx)(d.Z,{className:"w-5 h-5 ml-2"})]})}),(0,s.jsxs)(n.ue,{side:"bottom",className:"p-0",children:[(0,s.jsx)(n.sw,{asChild:!0,children:(0,s.jsx)(l.z,{className:"absolute border -top-[56px] right-0 left-0 m-auto w-11 h-11 border-black p-0 flex items-center bg-white justify-center rounded-full ",type:"button",variant:"ghost",children:(0,s.jsx)(c.Z,{className:""})})}),(0,s.jsx)(h.Z,{isSelect:!1,sizes:a,productParentId:p,setActiveSizeDialog:w})]})]}):(0,s.jsxs)(r.Ph,{onValueChange:e=>g(e),open:v===p,onOpenChange:k,children:[(0,s.jsx)(r.i4,{"aria-label":"Choose size",className:"w-full max-w-[450px] relative",children:a.length>1?(0,s.jsx)(r.ki,{placeholder:C("size.chooseSize")}):(0,s.jsx)(r.ki,{placeholder:a[0].name,defaultValue:a[0].name})}),(0,s.jsx)(h.Z,{isSelect:!0,openSelect:v===p,sizes:a,productParentId:p})]})}},5356:function(e,t,a){a.r(t),a.d(t,{Carousel:function(){return m},CarouselContent:function(){return f},CarouselItem:function(){return x},CarouselNext:function(){return p},CarouselPrevious:function(){return h}});var s=a(57437),l=a(74300),r=a(70518),n=a(87592),o=a(2265),i=a(50495),d=a(83220);let c=o.createContext(null);function u(){let e=o.useContext(c);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}let m=o.forwardRef((e,t)=>{let{orientation:a="horizontal",opts:r,setApi:n,plugins:i,className:u,children:m,...f}=e,[x,h]=(0,l.Z)({...r,axis:"horizontal"===a?"x":"y"},i),[p,b]=o.useState(!1),[g,w]=o.useState(!1),N=o.useCallback(e=>{e&&(b(e.canScrollPrev()),w(e.canScrollNext()))},[]),v=o.useCallback(()=>{null==h||h.scrollPrev()},[h]),j=o.useCallback(()=>{null==h||h.scrollNext()},[h]),y=o.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),v()):"ArrowRight"===e.key&&(e.preventDefault(),j())},[v,j]);return o.useEffect(()=>{h&&n&&n(h)},[h,n]),o.useEffect(()=>{if(h)return N(h),h.on("reInit",N),h.on("select",N),()=>{null==h||h.off("select",N)}},[h,N]),(0,s.jsx)(c.Provider,{value:{carouselRef:x,api:h,opts:r,orientation:a||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:v,scrollNext:j,canScrollPrev:p,canScrollNext:g},children:(0,s.jsx)("div",{ref:t,onKeyDownCapture:y,className:(0,d.cn)("relative",u),role:"region","aria-roledescription":"carousel",...f,children:m})})});m.displayName="Carousel";let f=o.forwardRef((e,t)=>{let{className:a,...l}=e,{carouselRef:r,orientation:n}=u();return(0,s.jsx)("div",{ref:r,className:"lg:overflow-hidden",children:(0,s.jsx)("div",{ref:t,className:(0,d.cn)("flex","horizontal"===n?"-ml-4":"-mt-4 flex-col",a),...l})})});f.displayName="CarouselContent";let x=o.forwardRef((e,t)=>{let{className:a,...l}=e,{orientation:r}=u();return(0,s.jsx)("div",{ref:t,role:"group","aria-roledescription":"slide",className:(0,d.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",a),...l})});x.displayName="CarouselItem";let h=o.forwardRef((e,t)=>{let{className:a,variant:l="outline",size:n="icon",...o}=e,{orientation:c,scrollPrev:m,canScrollPrev:f}=u();return(0,s.jsxs)(i.z,{ref:t,variant:l,size:n,className:(0,d.cn)("absolute  h-8 w-8 rounded-full","horizontal"===c?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",!f&&"!opacity-0",a),disabled:!f,onClick:m,...o,children:[(0,s.jsx)(r.Z,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});h.displayName="CarouselPrevious";let p=o.forwardRef((e,t)=>{let{className:a,variant:l="outline",size:r="icon",...o}=e,{orientation:c,scrollNext:m,canScrollNext:f}=u();return(0,s.jsxs)(i.z,{ref:t,variant:l,size:r,className:(0,d.cn)("absolute h-8 w-8 rounded-full","horizontal"===c?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",!f&&"!opacity-0",a),disabled:!f,onClick:m,...o,children:[(0,s.jsx)(n.Z,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Next slide"})]})});p.displayName="CarouselNext"},42491:function(e,t,a){a.d(t,{di:function(){return f},e8:function(){return c},fu:function(){return m},mY:function(){return i},rb:function(){return u},sZ:function(){return d}});var s=a(57437),l=a(34465),r=a(2265);a(90837);var n=a(83220),o=a(59736);let i=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.mY,{ref:t,className:(0,n.cn)("flex w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",a),...r})});i.displayName=l.mY.displayName;let d=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsxs)("div",{className:"flex items-center  pl-3 pr-2","cmdk-input-wrapper":"",children:[(0,s.jsx)(l.mY.Input,{ref:t,className:(0,n.cn)("flex h-11 w-full !text-base rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",a),...r}),(0,s.jsx)(o.Z,{className:"shrink-0 lg:w-5 lg:h-5 w-6 h-6 stroke-black"})]})});d.displayName=l.mY.Input.displayName;let c=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.mY.List,{ref:t,className:(0,n.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",a),...r})});c.displayName=l.mY.List.displayName;let u=r.forwardRef((e,t)=>(0,s.jsx)(l.mY.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));u.displayName=l.mY.Empty.displayName;let m=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.mY.Group,{ref:t,className:(0,n.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",a),...r})});m.displayName=l.mY.Group.displayName,r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.mY.Separator,{ref:t,className:(0,n.cn)("-mx-1 h-px bg-border",a),...r})}).displayName=l.mY.Separator.displayName;let f=r.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.mY.Item,{ref:t,className:(0,n.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-purple-light aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...r})});f.displayName=l.mY.Item.displayName},19573:function(e,t,a){a.d(t,{J2:function(){return o},xo:function(){return i},yk:function(){return d}});var s=a(57437),l=a(2265),r=a(61485),n=a(83220);let o=r.fC,i=r.xz,d=l.forwardRef((e,t)=>{let{className:a,align:l="center",sideOffset:o=4,...i}=e;return(0,s.jsx)(r.h_,{children:(0,s.jsx)(r.VY,{ref:t,align:l,sideOffset:o,className:(0,n.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...i})})});d.displayName=r.VY.displayName},95317:function(e,t,a){a.d(t,{Tu:function(){return p},aM:function(){return c},bC:function(){return b},lu:function(){return f},m0:function(){return m},sw:function(){return u},ue:function(){return h},yo:function(){return d}});var s=a(57437),l=a(13304),r=a(12218),n=a(74697),o=a(2265),i=a(83220);let d=l.fC,c=l.xz,u=l.x8,m=l.h_,f=o.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.aV,{className:(0,i.cn)("fixed inset-0 z-50 bg-black/30  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...r,ref:t})});f.displayName=l.aV.displayName;let x=(0,r.j)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),h=o.forwardRef((e,t)=>{let{side:a="right",className:r,children:o,hideOverlay:d,...c}=e;return(0,s.jsxs)(m,{children:[(0,s.jsx)(f,{className:d?"hidden":""}),(0,s.jsxs)(l.VY,{ref:t,className:(0,i.cn)(x({side:a}),r),...c,children:[o,(0,s.jsxs)(l.x8,{className:"opacity-0  absolute border -left-[50px] top-1.5 w-11 h-11 border-black flex items-center bg-white justify-center rounded-full  ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,s.jsx)(n.Z,{className:"h-6 w-6"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});h.displayName=l.VY.displayName;let p=e=>{let{className:t,...a}=e;return(0,s.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...a})};p.displayName="SheetHeader";let b=o.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.Dx,{ref:t,className:(0,i.cn)("text-lg font-semibold text-foreground",a),...r})});b.displayName=l.Dx.displayName,o.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,s.jsx)(l.dk,{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",a),...r})}).displayName=l.dk.displayName},12738:function(e,t,a){a.d(t,{O:function(){return r}});var s=a(57437),l=a(83220);function r(e){let{className:t,...a}=e;return(0,s.jsx)("div",{className:(0,l.cn)("animate-pulse rounded-md bg-muted",t),...a})}},56829:function(e,t,a){var s=a(24244),l=a(70941),r=a(76351),n=a(16463);t.Z=(e,t)=>{let{lang:a}=(0,n.useParams)(),o=s.uZ[a],i=(null==o?void 0:o.elevateMarket)||"Nelly_Sweden";t&&(i="nelly.com"===t?i.replace("NlyMan","Nelly"):i.replace("Nelly","NlyMan"));let d=(null==o?void 0:o.locale)||"sv-SE",c=(null==e?void 0:e.productKey)||"productPage";return(0,r.a)({queryKey:[c],queryFn:()=>(0,l.WP)({params:e,market:i,locale:d}),enabled:!!e})}},67675:function(e,t,a){var s=a(57437),l=a(66648);a(2265);let r=e=>{let t,{src:a,width:s}=e;switch(!0){case s<200:t="small";break;case s<786:t="medium";break;case s<1500:t="large";break;default:t="xl"}return"".concat(a,"?format=").concat(t)};t.Z=e=>{let{src:t}=e;return"string"==typeof t&&t.includes("cdn.occtoo-media.com")?(0,s.jsx)(l.default,{...e,loader:r}):(0,s.jsx)(l.default,{...e})}},59736:function(e,t,a){a.d(t,{Z:function(){return l}});var s=a(57437);function l(e){let{className:t}=e;return(0,s.jsx)("svg",{viewBox:"0 0 24 24",className:"".concat(t),children:(0,s.jsx)("g",{transform:"translate(-2)",fill:"none",fillRule:"evenodd",strokeLinecap:"square",children:(0,s.jsxs)("g",{transform:"translate(3 1)",children:[(0,s.jsx)("circle",{cx:"11",cy:"9",r:"9"}),(0,s.jsx)("path",{d:"M.5 19.5l4.14-4.14"})]})})})}}}]);