1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3007],{66672:e=>{e.exports={"product-list-container":"ProductList__product-list-container___jVgVm","product-list":"ProductList__product-list___UUmJe","product-list-header":"ProductList__product-list-header___NMYfm","product-list-title":"ProductList__product-list-title___ZBypB","product-list-subtitle":"ProductList__product-list-subtitle___63eTV","product-list-items":"ProductList__product-list-items___fzX6P","product-tile":"ProductList__product-tile___lyIzR","single-tile":"ProductList__single-tile____SLr4","two-tiles":"ProductList__two-tiles___WbOvy","product-list-footer":"ProductList__product-list-footer___6042k","product-list-footer-link":"ProductList__product-list-footer-link___IT79h","product-list-count":"ProductList__product-list-count___k42oC","align-right":"ProductList__align-right___gT5WR",underline:"ProductList__underline___YORLj"}},67052:e=>{e.exports={"pick-up-where-you-left-off":"PickUpWhereYouLeftOff__pick-up-where-you-left-off___g8dAu",container:"PickUpWhereYouLeftOff__container___Q_Q_h",header:"PickUpWhereYouLeftOff__header___HZOmZ",title:"PickUpWhereYouLeftOff__title___631H4",content:"PickUpWhereYouLeftOff__content___Swh1I","skeleton-container":"PickUpWhereYouLeftOff__skeleton-container___LYS28","skeleton-items":"PickUpWhereYouLeftOff__skeleton-items___026qd"}},73007:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>R});var r=i(37876),o=i(14232),l=i(35988),s=i(95062),c=i.n(s),d=i(49995),n=i(28487),a=i.n(n),u=i(28388),_=i(38291),p=i(73369),f=i(34196),h=i(65835),g=i(75854),m=i(76661),v=i(58419),k=i(65171),L=i(54587),y=i.n(L),b=i(61823),P=i(98091),x=i(71367),I=i(86672),j=i(66672),N=i.n(j);let O=e=>{let{products:t=[],qaId:i="",enablePortraitImagesOnArray:o=!0,title:l="",subTitle:s="",linkText:c="",linkUrl:n="",showLinkInFooter:a=!1,totalItems:u=0}=e;if(!t.length)return null;let _=t.slice(0,3);return(0,r.jsx)("div",{className:N()["product-list-container"],children:(0,r.jsxs)(I.A,{className:N()["product-list"],to:n,"aria-label":c,children:[(0,r.jsxs)("div",{className:N()["product-list-header"],children:[l&&(0,r.jsx)("h2",{className:N()["product-list-title"],children:l}),s&&(0,r.jsx)("p",{className:N()["product-list-subtitle"],children:s})]}),(0,r.jsx)("ul",{className:(0,d.default)(N()["product-list-items"],{[N()["single-tile"]]:1===u,[N()["two-tiles"]]:2===u}),"data-qa":i,children:_.map((e,t)=>{var l;let{baseProductCode:s,productCode:c,colorCode:d,productId:n="",baseProduct:a="",colorlist:u=""}=e||{},_=s||c||n||a||"",p=d||(null==u?void 0:null===(l=u.split(",")[0])||void 0===l?void 0:l.split("_")[0])||"",{imageUrl:f}=(0,x.default)({toggle:!0,productCode:_,productId:n,colorCode:p,shouldIncludeOnFig:!1});return(0,r.jsx)("li",{className:N()["product-tile"],children:f&&(0,r.jsx)(b.default,{NextImage:y(),imagePresets:[P.default.THUMB.MEGA],qaId:"".concat(i,"ItemImage").concat(t),className:"product-tile__image",alt:e.description||e.displayName||_||"Product Image",imageUrl:f,fill:!0,portraitMode:o})},"".concat(e.id,"-").concat(t))})}),(0,r.jsxs)("div",{className:N()["product-list-footer"],children:[a&&(0,r.jsx)("div",{className:N()["product-list-footer-link"],children:c}),t.length>3&&(0,r.jsx)("div",{className:(0,d.default)(N()["product-list-count"],N()["align-right"]),children:"+ more"})]})]})})};O.propTypes={products:c().arrayOf(c().shape({id:c().oneOfType([c().string,c().number]),productCode:c().string,colorCode:c().string,displayName:c().string,baseProduct:c().string,productId:c().string,colorlist:c().string,fitType:c().string,description:c().string})),qaId:c().string,enablePortraitImagesOnArray:c().bool,title:c().string,subTitle:c().string,linkText:c().string,linkUrl:c().string,showLinkInFooter:c().bool,totalItems:c().number};var q=i(67052),w=i.n(q),C=i(55507);let U=e=>{let{cart:t,orderHistory:i,orderHistoryFetched:s,orderHistoryFetching:c,isLoggedIn:n,isFetchUserComplete:_,bagLink:p,countryCode:f,configuration:{enablePickUpWhereYouLeftOff:h,enablePickUpWhereYouLeftOffCart:g,enablePickUpWhereYouLeftOffFavorites:L,enablePickUpWhereYouLeftOffOrderHistory:y},isMobileOrSmall:b,title:P}=e,x=(0,l.wA)(),[I,j]=(0,o.useState)(!1),[N,q]=(0,o.useState)([]),[U,R]=(0,o.useState)("wishlist"),T=(0,o.useRef)(null),F=(0,o.useRef)(!1),S=!y||!n||s&&0===i.length,W=!L||I&&0===N.length,Y=!g||(null==t?void 0:t.length)===0,H=t.length+N.length+i.length,B=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];h&&L&&(!I||e)&&(async()=>{var e;let t=[],i="wishlist";0===(t=(null===(e=Object.values((0,u.getItemLocalStorage)({key:"WISHLIST_ITEM_LOCAL_STORE",isSerialized:!0})||{}))||void 0===e?void 0:e[0])||[]).length&&(t=(0,u.getLocalFavorites)()||[],i="favorites"),R(i);let r=(t=t.reverse()).slice(0,3),o=r.filter(e=>{var t;return(null===(t=e.productId)||void 0===t?void 0:t.length)>5});if(o.length>0){let e="(".concat(o.map(e=>e.productId).join(","),")");
1try{let i=await fetch("/browse/products/".concat(e,"?expand=availability,variations&favoritesarray=true"))||{},o=await i.json()||{},l=r.map(e=>{var t,i;let r=null==o?void 0:null===(t=o.data)||void 0===t?void 0:t.find(t=>t.id===e.productId);return r?{...e,productCode:r.c_parentProductId,colorCode:r.c_colorCode,baseProductCode:null==r?void 0:null===(i=r.master)||void 0===i?void 0:i.master_id}:e});q([...l,...t.slice(3)])}catch(e){q([]),a().error("PickUpWhereYouLeftOff",{message:"Error fetching product details:",error:e})}}else q(t);j(!0)})()};(0,o.useEffect)(()=>{let e;if(!_)return;if(!F.current){F.current=!0,T.current=n,B(!1);return}let t=!1===T.current&&n;return j(!1),t?e=setTimeout(()=>{B(!0)},1e3):B(),T.current=n,()=>clearTimeout(e)},[_,n,h,L]),(0,o.useEffect)(()=>{_&&h&&y&&n&&!s&&!c&&x((0,v.dj)(1))},[_,n,h,y]);let A=(0,o.useCallback)(e=>(0,r.jsxs)("div",{className:w()["skeleton-container"],children:[(0,r.jsx)(k.A,{width:"150px",height:"20px",className:w()["skeleton-title"]}),(0,r.jsx)("div",{className:w()["skeleton-items"],children:Array.from({length:e},(e,t)=>(0,r.jsx)("div",{className:(0,d.default)(w()["skeleton-item"]),children:(0,r.jsx)(k.A,{width:"95px",height:"118px"})},t))})]}),[]);return C.Builder.isEditing||C.Builder.isPreviewing?(0,r.jsx)("div",{className:(0,d.default)(w()["pick-up-where-you-left-off"],w().container),children:(0,r.jsx)(C.BuilderBlocks,{className:w().title,dataPath:"component.options.title",blocks:P})}):h&&b?S&&W&&Y?null:(0,r.jsxs)("div",{className:(0,d.default)(w()["pick-up-where-you-left-off"],w().container),children:[(0,r.jsx)("div",{className:w().header,children:(0,r.jsx)(C.BuilderBlocks,{className:w().title,dataPath:"component.options.title",blocks:P})}),(0,r.jsxs)("div",{className:w().content,children:[g&&(t.length>0?(0,r.jsx)(O,{products:t,qaId:"cart",title:"Your bag ".concat(t&&"(".concat(t.reduce((e,t)=>e+t.quantity,0),")")),linkText:"Go to Bag",linkUrl:p,showLinkInFooter:!0,countryCode:f,totalItems:H}):null),L&&(I?N.length>0?(0,r.jsx)(O,{products:N,qaId:"favorites",title:"favorites"===U?"Favorites":"Saved for Later",countryCode:f,linkUrl:"favorites"===U?n?"/l/account/favorites":"/favorites":"".concat(p).concat((0,m.O)(p,"showSavedForLater=true")),linkText:"favorites"===U?"Favorites":"Saved for Later",totalItems:H}):null:A(3)),y&&(S?null:c?A(3):(0,r.jsx)(O,{products:i,qaId:"orderHistory",title:"Buy it again",countryCode:f,linkUrl:"/l/account/order-history",linkText:"Order history",totalItems:H}))]})]}):null};U.propTypes={cart:c().shape([]).isRequired,configuration:c().shape({enablePickUpWhereYouLeftOff:c().bool.isRequired,enablePickUpWhereYouLeftOffCart:c().bool.isRequired,enablePickUpWhereYouLeftOffFavorites:c().bool.isRequired,enablePickUpWhereYouLeftOffOrderHistory:c().bool.isRequired}).isRequired,orderHistory:c().shape([]).isRequired,orderHistoryFetched:c().bool.isRequired,orderHistoryFetching:c().bool.isRequired,isLoggedIn:c().bool.isRequired,isFetchUserComplete:c().bool.isRequired,bagLink:c().string.isRequired,countryCode:c().string.isRequired,isMobileOrSmall:c().bool.isRequired};let R=(0,l.Ng)(e=>{var t;let{globalState:{isBreakpointLarge:i},orderHistory:r,user:{isFetchComplete:o}}=e,l=(0,_.D0)(e),{brand:s,enablePickUpWhereYouLeftOff:c,enablePickUpWhereYouLeftOffCart:d}=l;return{configuration:l,cart:c&&d&&(null===(t=(0,g.aW)(e,s))||void 0===t?void 0:t.reverse())||[],orderHistory:(null==r?void 0:r.recentlyPurchasedItems)||[],orderHistoryFetched:(null==r?void 0:r.recentlyPurchasedItemsFetched)||!1,orderHistoryFetching:(null==r?void 0:r.recentlyPurchasedItemsFetching)||!1,isLoggedIn:(0,f.eP)(e),isFetchUserComplete:o||!1,bagLink:(0,p.L2)(e),countryCode:(0,h.gI)(e),isMobileOrSmall:!i}})(U)}}]);
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.