1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[195,3048],{75817:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/us/en/my-account/order-history/[[...orderId]]",function(){return r(15360)}])},85932:function(e,t,r){"use strict";var n,o;r.d(t,{G:function(){return n}}),(o=n||(n={})).MyAccount="myaccount",o.GuestOrder="guest-order"},76268:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(52322),o=r(2784),i=r(11122),a=r(3581),s=r(98416),l=r(32323),c=r(27718),d=r(35637),u=r(44962),m=r(5632),x=r(94184),p=r.n(x),f=r(55351),y=r(64269),v=r(59269),h=r(88158),g=r(49427),j=r(66590),I=r(56410),b=function(e){let{id:t,orderDate:r,status:a,totalPrice:s,productItems:l,orderStatusMapping:c}=e,{t:d}=(0,i.$G)(["myAccount"]),{formatPrice:u}=(0,h.p)(),{locale:x,defaultLocale:b="en"}=(0,m.useRouter)(),w=(0,v.I)(a,c,null!=x?x:b),N="cancelled"===w.toLowerCase(),S="delivered"===w.toLowerCase(),k=(0,o.useContext)(j.N),O=(0,I.I)();return(0,n.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,n.jsx)(f.PB,{title:"".concat(O," | My Account | Order History")}),(0,n.jsxs)("div",{className:"flex gap-3 flex-row justify-between items-start",children:[(0,n.jsxs)("p",{className:p()("text-base w-3/5 leading-[22px] space-x-0 tracking-[0.25px] flex-wrap",{"!font-semibold":k===g.iI.MovadoCompanyStore||k===g.iI.OliviaBurtonUk}),children:[(0,n.jsxs)("span",{className:p()("pr-1",{"!text-[16px] !leading-[20.8px] !font-semibold":k===g.iI.MovadoCompanyStore||k===g.iI.OliviaBurtonUk}),children:[d("orderHistory.order")," #: ",t]}),(0,n.jsxs)("span",{className:p()("inline-block",{"!text-[16px] !leading-[20.8px] !font-semibold":k===g.iI.MovadoCompanyStore||k===g.iI.OliviaBurtonUk}),children:["(","".concat(l.length," ").concat(d(1===l.length?"orderHistory.item":"orderHistory.items")),")"]})]}),(0,n.jsxs)("p",{className:p()("text-xs text-right font-normal leading-[18px]",{"!text-[16px] !leading-[20.8px] !font-semibold":k===g.iI.MovadoCompanyStore||k===g.iI.OliviaBurtonUk}),children:[(0,n.jsxs)("span",{className:"inline",children:[d("orderHistory.status"),": "]}),(0,n.jsx)("p",{className:p()("order-status-label inline-block",{"text-error":N,"text-success":S}),children:w})]})]}),(0,n.jsxs)("p",{className:p()("text-xs leading-[18px]",{"!text-[14px] !leading-[18.2px] !font-normal":k===g.iI.MovadoCompanyStore||k===g.iI.OliviaBurtonUk}),children:[d("orderHistory.date"),": ",(0,y.p6)(new Date(r))]}),(0,n.jsx)("p",{className:p()("text-xs leading-[18px]",{"!text-[14px] !leading-[18.2px] !font-normal":k===g.iI.MovadoCompanyStore||k===g.iI.OliviaBurtonUk}),children:u({amount:s.amount,currency:s.currency})})]})},w=r(17702),N=function(e){let{name:t,primaryImageUrl:r}=e,i=(0,o.useContext)(j.N);return(0,n.jsxs)("div",{children:[(0,n.jsx)(w.x,{src:r,imageGroups:[],alt:"product image",width:194,height:194,priority:!0,className:"bg-product-img-bg w-full"}),(0,n.jsx)("p",{className:p()("text-sm mt-5",{"!text-[16px] !leading-[20.8px] !font-medium":i===g.iI.MovadoCompanyStore||i===g.iI.OliviaBurtonUk}),children:t})]})},S=function(e){let{items:t,maxProductLimit:r}=e;return(0,n.jsx)("div",{className:"flex lg:gap-x-10 md:gap-5 gap-x-[15px] flex-wrap gap-y-[30px]",children:t.slice(0,r).map(e=>{var t;return(0,n.jsx)("div",{className:"order-history-img-wrp md:max-w-[194px]",children:(0,n.jsx)(N,{name:g.iI.MovadoCompanyStore&&null!==(t=e.c_mcsTitle)&&void 0!==t?t:e.name,primaryImageUrl:e.primaryImageUrl})},e.productId)})})},k=function(e){let{...t}=e,{t:r}=(0,i.$G)(["myAccount"]),m=(0,a.Z)("(min-width: 480px)"),[x,f]=(0,o.useState)(m?3:2),y=t.productItems.length,v=(0,o.useContext)(j.N);return(0,n.jsxs)("div",{className:"mt-[30px] flex flex-1 flex-col gap-y-[30px]",children:[(0,n.jsx)(b,{...t}),(0,n.jsx)(c.V,{tabIndex:0,"aria-label":r("orderHistory.orderDetails"),className:"w-full max-w-[183px] text-xs !leading-[17px] px-[30px] py-[13px]",as:l.r,href:s.VP.myAccount.myOrders.details.compile({orderId:t.id}),scroll:!0,shallow:!0,children:r("orderHistory.orderDetails")}),(0,n.jsx)(S,{items:t.productItems,maxProductLimit:x}),y>x&&(0,n.jsx)(d.X,{tabIndex:0,className:p()("underline text-sm cursor-pointer leading-4 tracking-extra-btn font-fontPrimary border-0",{"!text-[14px] !leading-[18.2px] !font-medium":v===g.iI.MovadoCompanyStore||v===g.iI.OliviaBurtonUk}),onClick:()=>f(y),children:r("orderHistory.showXMoreItems",{count:y-x})}),(0,n.jsx)(u.i,{className:"border-gray-300 mt-5 md:mt-0"})]})}},14751:function(e,t,r){"use strict";r.d(t,{L:function(){return x}});var n=r(52322),o=r(11122),i=r(21509),a=r(94184),s=r.n(a),l=r(55351),c=r(32323),d=r(27718),u=r(69608),m=r(56410);let x=()=>{let{t:e}=(0,o.$G)("myAccount"),{homeSubFolder:t}=(0,u.q)(),r=(0,m.I)();return(0,n.jsxs)("div",{className:"flex flex-col gap-y-6 min-h-[18.75rem] justify-center px-6 py-[1.875rem] md:py-[3.125rem] md:max-w-[33.9375rem] md:mx-auto text-center",children:[(0,n.jsx)(l.PB,{title:"".concat(r," | My Account | Order History")}),(0,n.jsx)("h2",{children:e("orderHistory.notFound")}),(0,n.jsx)(d.V,{"aria-label":e("orderHistory.continueShopping"),variant:i.ke.secondary,className:s()("w-full"),as:c.r,href:t,children:e("orderHistory.continueShopping")})]})}},36309:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(52322),o=r(78022);function i(e){return(0,n.jsx)(o.Z,{viewBox:"0 0 24 24",...e,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.7071 6.00008L10.7071 12.0001L16.7071 18.0001L16 18.7072L9.64645 12.3536C9.45118 12.1584 9.45118 11.8418 9.64645 11.6465L16 5.29297L16.7071 6.00008Z",fill:"current"})})}},59269:function(e,t,r){"use strict";r.d(t,{I:function(){return n}});let n=function(e,t,r){var n;let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=null==t?void 0:t.find(t=>t.omsStatus===e);return(null==i?void 0:null===(n=i.sfccStatus)||void 0===n?void 0:n[r])?i.sfccStatus[r]:e||o}},64269:function(e,t,r){"use strict";r.d(t,{BL:function(){return o},iD:function(){return a},lx:function(){return s},p6:function(){return n}});let n=e=>"".concat(e.toLocaleDateString("en-US",{month:"numeric"}).padStart(2,"0"),"/").concat(e.toLocaleDateString("en-US",{day:"numeric"}).padStart(2,"0"),"/").concat(e.toLocaleDateString("en-US",{year:"numeric"})),o=(e,t)=>new Intl.DateTimeFormat(t,{month:"short",day:"2-digit",year:"numeric"}).format(e),i=(e,t)=>new Intl.NumberFormat(e,{style:"currency",currency:t});function a(e){return function(t){var r;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return"";let o=n?" - ".concat(new Intl.DisplayNames([e],{type:"currency"}).of(t)):"";return"".concat(t," (").concat(null===(r=i(e,t).formatToParts().find(e=>"currency"===e.type))||void 0===r?void 0:r.value,")").concat(o)}}function s(e){let t=new Intl.DisplayNames([e],{type:"language"});return e=>[e.toUpperCase(),t.of(e)].join(" - ")}},16715:function(e,t,r){"use strict";r.d(t,{P:function(){return a}});var n=r(56729),o=r(72198);let i=e=>["customer","orsers",{...e}];function a(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=(0,o._8)();return(0,n.a)(i(e),()=>r.unified.getOrders(e),{refetchOnMount:!0,refetchOnWindowFocus:!1,enabled:!!(null==e?void 0:e.orderEmail)&&t,keepPreviousData:!0,cacheTime:0,staleTime:0})}},15360:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return M},default:function(){return H}});var n=r(52322),o=r(2784),i=r(25237),a=r.n(i),s=r(5632),l=r(21509),c=r(94184),d=r.n(c),u=r(11122),m=r(55351),x=r(27718),p=r(32323),f=r(69448),y=r(85932),v=r(76268),h=r(14751),g=r(36309),j=r(98416),I=r(49427),b=r(66590),w=r(54719),N=r(84940),S=r(16715),k=r(16240),O=r(56410);let C=a()(()=>Promise.all([r.e(9929),r.e(5877),r.e(7060),r.e(1901),r.e(7405)]).then(r.bind(r,57405)).then(e=>e.CheckOrderDetails),{loadableGenerated:{webpack:()=>[57405]},ssr:!1});var M=!0;function H(e){var t,r,i,a,c;let{ssrData:M,cancellationSection:H}=e,A=(0,O.I)(),{t:P}=(0,u.$G)(["myAccount","order"]),{data:U}=(0,N.O)(),_=(0,s.useRouter)(),[B,L]=(0,o.useState)(2),[D,T]=(0,o.useState)(!1),{data:E,isLoading:G,isFetching:V}=(0,S.P)({orderEmail:null==U?void 0:U.email,pageSize:B,fetchAllOrders:2!==B}),Z=null===(r=_.query)||void 0===r?void 0:null===(t=r.orderId)||void 0===t?void 0:t[0],F=(0,o.useContext)(b.N),R=null!==(a=null==E?void 0:E.orders)&&void 0!==a?a:[],X=null!==(c=null==E?void 0:null===(i=E.pagination)||void 0===i?void 0:i.totalResults)&&void 0!==c?c:0,$=(0,w.o)(M,"order-staus-map-sfcc-oms","json");return((0,o.useEffect)(()=>{T(!1)},[R.length]),G||R.length)?(0,n.jsxs)(k.o,{ssrData:M,headerElement:Z?(0,n.jsxs)(x.V,{className:d()("font-fontSecondary !text-lg
1!leading-5 mb-7 md:text-[32px] md:gap-2 md:mb-9 normal-case !p-0 md:leading-[40px] flex flex-row justify-start items-center focus-visible:outline-dashed focus-visible:outline-1 focus-visible:outline-black font-normal",{"!mb-4 border-none":F===I.iI.MovadoCompanyStore||F===I.iI.OliviaBurtonUk}),"aria-label":P("orderHistory.backToAllOrders"),variant:l.ke.tertiary,as:p.r,href:j.VP.myAccount.myOrders.index.compile(),shallow:!0,scroll:!0,children:[(0,n.jsx)("span",{children:(0,n.jsx)(g.Z,{className:"!w-6 !h-6"})}),(0,n.jsx)("span",{className:"",children:P("orderHistory.backToAllOrders")})]}):(0,n.jsx)("div",{className:d()("font-fontSecondary font-normal text-2xl mb-5 md:text-[32px] md:mb-[22px] md:leading-[40px]",(F===I.iI.MovadoCompanyStore||F===I.iI.OliviaBurtonUk)&&"!text-[40px] !font-normal !leading-[53px]"),children:(0,n.jsxs)("span",{children:[P("orderHistory.orders")," ",X?"(".concat(X,")"):""]})}),isLoading:V&&!D,children:[(0,n.jsx)(m.PB,{title:"".concat(A," | My Account | Order History")}),Z?(0,n.jsx)("div",{className:"",children:(0,n.jsx)(C,{cancellationSection:H,orderStatusMapping:$,buttonMessage:P("orderHistory.backToAllOrders"),buttonHref:j.VP.myAccount.myOrders.index.compile(),navigateShallow:!0,pageType:y.G.MyAccount})}):(0,n.jsxs)(n.Fragment,{children:[R.map(e=>(0,n.jsx)(v.Z,{...e,orderStatusMapping:$},e.id)),X!==R.length&&(0,n.jsx)(x.V,{tabIndex:0,"aria-label":P("orderHistory.viewAllOrders"),className:d()("view-all-order w-full max-w-[382px] mt-[30px] my-1 text-xs leading-[17px] px-[30px] py-[13px]",{"!mt-4":F===I.iI.MovadoCompanyStore||F===I.iI.OliviaBurtonUk}),variant:l.ke.secondary,onClick:()=>{T(!0),L(X)},slotPrefix:R.length!==B&&(0,n.jsx)("div",{className:"size-xs flex justify-center items-center order-history-loader",children:(0,n.jsx)(f.T,{})}),children:P("orderHistory.viewAllOrders")})]})]}):(0,n.jsx)(k.o,{ssrData:M,children:(0,n.jsx)(h.L,{})})}}},function(e){e.O(0,[6577,7482,3516,8347,1488,4980,2248,2129,1366,2086,5136,5904,6069,4123,1982,3517,2888,2596,179],function(){return e(e.s=75817)}),_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.