"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[40],{20:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});const o={textSizeNormal:"S5z6Ifzl",textSizeBigger:"TUzwqcP7",textSizeLarge:"Lv6noosS",shineOnHover:"NXlydyCY",shine:"BjP9vLEq"}},11:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});const o={pageWidth:"sFlrLoHc",pageWidthFull:"LdWu3t2l"}},29:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});const o={colorLink:"funts8li"}},35:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});const o={imgSpaceReserver:"qpYiSzaZ"}},57:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});const o={productsContainer:"Dp2ClyQ7"}},443:(e,t,n)=>{const o=n(220);(0,n(4).createEntrypoint)("recently-viewed-section",o.RecentlyViewedContainer)()},220:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RecentlyViewedContainer=void 0;const d=n(0),i=n(3),r=o(n(6)),l=o(n(152)),s=n(152),a=n(16);t.RecentlyViewedContainer=({content:e,recentlyViewedProducts:t,useSharedState:n,featureNewPDPoptimization:o})=>{var c,u;const f=null!==(u=null===(c=null==e?void 0:e.images)||void 0===c?void 0:c[0])&&void 0!==u?u:a.NO_IMAGE;return(0,i.useEffect)((()=>{(0,s.trackRecentlyViewed)(e.handle,`/products/${e.handle}`,null==f?void 0:f.src)}),[null==e?void 0:e.handle,f]),(0,d.jsx)(r.default,{children:(0,d.jsx)("div",Object.assign({className:`font-roboto antialiased overflow-hidden main-content py-2 md:pb-20 md:pt-5 ${o?"border-0":"border-t border-gray-200"} sm:pt-10`},{children:(0,d.jsx)(l.default,{handle:e.handle,products:t,useSharedState:n})}))})}},152:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.trackRecentlyViewed=t.hasRecentlyViewedItems=void 0;const d=n(0),i=(n(3),o(n(43))),r="theme-recent";let l;if("undefined"!=typeof window){let e=document.cookie.split("; ").find((e=>e.startsWith(`${r}=`)));e=null==e?void 0:e.substring(e.indexOf("=")+1),l=e?JSON.parse(e):{}}t.hasRecentlyViewedItems=function(){return void 0!==l&&Object.keys(l).length>0},t.trackRecentlyViewed=function(e,t,n){Object.prototype.hasOwnProperty.call(l,e)&&delete l[e];const o=n.match(/(?\.\w{3,4})($|\?)/).groups.ext,d=n.replace(o,`_{width}x${o}`);l[e]={url:t,aspectRatio:"100.0",featuredImage:d},document.cookie=`${r}=${JSON.stringify(l)}`},t.default=function({handle:e,heading:t="Recently viewed",rows:n=1,columns:o=5,showProductColors:r=!1,products:l=[],useSharedState:s}){return l.length<=0?null:(0,d.jsx)(i.default,{heading:t,products:l,rows:n,columns:o,showProductColors:r,useSharedState:s})}}},e=>{e.O(0,[1,2,3,4,6,10,11,15,14,19],(()=>(443,e(e.s=443)))),e.O()}]);