"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[39],{77:(e,r,c)=>{c.d(r,{a:()=>t});const t={colorPicker:"AqUFzzQU",colorPickerActive:"xYwRsuvy",btn:"IO9ZOkPg",btnColor:"cgr3fDso",btnColorActive:"D9t8PK3q"}},228:(e,r,c)=>{var t=c(0),s=(c(1),c(2)),a=c(74);const{wrapper:o,wrapperLink:l,wrapperImage:n,wrapperContent:i,wrapperTitle:d,wrapperPrice:p,productTitle:u,productTitleName:h,productTitleVariant:m,img:b}={wrapper:"cU6Fx_4C",wrapperLink:"H42trfZh",wrapperImage:"SN7gal2H",wrapperTitle:"kh0_F6YB",wrapperPrice:"NVGcJVFi",wrapperContent:"eenkq5Qa",productTitle:"KaFzzoP7",productTitleName:"vCPSfwB7",productTitleVariant:"_6PShUccU",img:"ze4Un0cC"},x=({product:e,currency:r,isPickerHoverDisabled:c,colorText:x,colorsText:g})=>{const{currentProduct:j,currentVariant:v,formattedTitle:P,handleActiveProductChange:k,handleMouseEnter:O,handleMouseLeave:T,handlePickerState:w,isPickerOpen:N,otherColorsProducts:C}=((e,r)=>{const[c,t]=(0,s.useState)(""),[a,o]=(0,s.useState)(r),l=(0,s.useMemo)((()=>{if(""===c)return e[0];const r=e.findIndex((({handle:e})=>e===c));return-1===r?e[0]:e[r]}),[c,e.length]),n=e=>o(e),i=(e=>""===e.selectedValues.colorName?e.title.replace(e.selectedValues.brand,"").trim():e.title.replace(` - ${e.selectedValues.colorName}`,"").replace(e.selectedValues.brand,"").trim())(l),{variants:d}=l,p=d[0],u=(0,s.useCallback)((()=>{r||n(!0)}),[r]),h=(0,s.useCallback)((()=>{r||n(!1)}),[r]),m=e.map((({handle:e,selectedValues:r})=>({handle:e,color:r.color,colorName:r.colorName,status:""})));return{handleActiveProductChange:e=>t(e),handlePickerState:n,isPickerOpen:a,currentProduct:l,formattedTitle:i,currentVariant:p,otherColorsProducts:m,handleMouseEnter:u,handleMouseLeave:h}})(e,c),{handle:f,image:y,selectedValues:L}=j;return(0,t.jsxs)("div",Object.assign({className:o,onMouseEnter:O,onMouseLeave:T},{children:[(0,t.jsx)("a",Object.assign({className:l,href:`/products/${f}?variant=${v.id}`},{children:(0,t.jsx)("div",Object.assign({className:n},{children:(0,t.jsx)("img",{className:b,src:y.url,alt:y.altText})}))})),(0,t.jsxs)("div",Object.assign({className:i},{children:[(0,t.jsx)("div",Object.assign({className:d},{children:(0,t.jsxs)("p",Object.assign({className:u},{children:[(0,t.jsx)("span",Object.assign({className:h},{children:L.brand})),(0,t.jsx)("span",Object.assign({className:m},{children:`${P} | ${L.colorName}`}))]}))})),(0,t.jsxs)("div",{children:[(0,t.jsx)(a.a,{selectedProduct:f,toggleColorPicker:k,values:C,handlePickerState:w,isPickerOpen:N,handleActiveIndex:()=>{},closePickerOnChange:!1,colorsText:g,colorText:x}),(0,t.jsx)("div",Object.assign({className:p},{children:(0,t.jsxs)("span",{children:[r,v.price||j.price]})}))]})]}))]}))},{wrapper:g}={wrapper:"ZGnsg0BI"},j=({relatedProducts:e,colorsText:r,currency:c,isPickerHoverDisabled:s,colorText:a})=>(0,t.jsx)("div",Object.assign({className:g},{children:e.map(((e,o)=>(0,t.jsx)(x,{colorText:a,product:e,colorsText:r,currency:c,isPickerHoverDisabled:s},o)))}));var v=c(270);const{wrapper:P,headingTitle:k,wrapperHeading:O,wrapperHeadingDesktop:T,headingSubtitle:w}={wrapper:"P9V1ThVu",headingTitle:"Aw93x4OA",headingSubtitle:"EntekuCR"},N=({completeTheLookProducts:e,subtitle:r,title:c,colorsText:s,isPickerHoverDisabled:a,currency:o,colorText:l})=>0===e.length?null:(0,t.jsxs)("section",Object.assign({className:P},{children:[(0,t.jsxs)("div",Object.assign({className:(0,v.a)(O,T)},{children:[(0,t.jsx)("h2",Object.assign({className:k},{children:r})),(0,t.jsx)("h3",Object.assign({className:w},{children:c}))]})),(0,t.jsx)(j,{colorText:l,relatedProducts:e,colorsText:s,currency:o,isPickerHoverDisabled:a})]}));var C=c(29);(0,c(4).createEntrypoint)("desktop-complete-the-look",(function(e){var{useSharedState:r,completeTheLookProducts:c,sharedLabels:s}=e,a=function(e,r){var c={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(c[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(t=Object.getOwnPropertySymbols(e);s({completeTheLookIds:e.pdp.completeTheLook,context:e.context}))),{currency:{symbol:i}}=n,d=(0,C.c)(c,l),{colorLabel:p,colorsLabel:u}=s;return(0,t.jsx)(N,Object.assign({colorsText:u,colorText:p,completeTheLookProducts:d,currency:i},a))}))()},29:(e,r,c)=>{c.d(r,{a:()=>a,b:()=>s,c:()=>o,d:()=>l});var t=c(24);const s=e=>Number((e||"").replace(".","")),a=e=>""===e.color?e.title.replace(e.brand,"").trim():e.title.replace(` - ${e.color}`,"").replace(e.brand,"").trim(),o=(e,r)=>e.filter((e=>{const c=e[0];return r.includes(c.handle)})),l=e=>{if("undefined"==typeof window)return;const r="%252C",c=(0,t.a)("recentlyViewed");if(void 0===c||""===c)return void(0,t.c)("recentlyViewed",e);if(!c.includes(e))return void(0,t.c)("recentlyViewed",`${e}${r}${c}`);const s=c.replace(`${r}${e}`,"").replace(`${e}${r}`,"");(0,t.c)("recentlyViewed",`${e}${r}${s}`)}},74:(e,r,c)=>{c.d(r,{a:()=>u});var t=c(0),s=c(1),a=c(75),o=c(270),l=c(76);const{colors:n,colorsNumber:i,colorsNumberHidden:d,colorsActive:p}={colors:"IdLH218m",colorsNumber:"CSxn74lt",colorsNumberHidden:"obH799OF",colorsActive:"MeGTvEnj"},u=({selectedProduct:e,values:r,toggleColorPicker:c,isPickerOpen:u,handlePickerState:h,handleActiveIndex:m,closePickerOnChange:b=!0,colorText:x,colorsText:g})=>{const{handleColorChange:j,handleOpenColorPicker:v,jsLoaded:P}=(0,a.a)(r,c,h,b),k=r.length;return(0,t.jsxs)(s.Fragment,{children:[(0,t.jsx)("div",Object.assign({className:(0,o.a)(n,u&&p),onClick:v},{children:(0,t.jsx)("div",Object.assign({className:(0,o.a)(i,!P&&d)},{children:(0,t.jsx)("span",{children:`${k} ${k>1?g:x}`})}))})),(0,t.jsx)(l.a,{handleActiveIndex:m,handleColorChange:j,isPickerOpen:u,selectedProduct:e,values:r})]})}}},e=>{e.O(0,[1,2,3,14,19],(()=>(228,e(e.s=228)))),e.O()}]);