PageSourceSearch

https://www.movado.com/_next/static/chunks/pages/order/success-c2d97ca7bc145ce4.js

js movado.com collected 2026-09-24 09:37:17 UTC 12,949 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7640,3048],{91339:function(e,l,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/order/success",function(){return r(1031)}])},1031:function(e,l,r){"use strict";r.r(l),r.d(l,{OrderSuccessPage:function(){return X},__N_SSP:function(){return V}});var i=r(52322),t=r(2784),o=r(5632),n=r(10330),d=r(94184),a=r.n(d),s=r(35196),u=r(11122),c=r(55351),m=r(34303),v=r(4411),p=r(28330),x=r(38599),g=r(3974),f=r(83727),h=r(77139),y=r(93118),b=r(24597),w=r(4877),j=r(82426),N=r(70600),_=r(30171),I=r(98416),k=r(49427),O=r(66590),S=r(54719),C=r(89816),D=r(95700),T=r(64269),P=r(59865),A=r(59269),E=r(88158),F=r(65093),B=r(56410),M=r(61009),q=r(71246),R=r(94548),$=r(40681),L=r(72198),U=r(90429),H=r(86769),Q=r(46133);let z=(e,l)=>{var r,i,t,o,n;let d=null!==(t=null!==(i=null!==(r=e.priceAfterOrderDiscount)&&void 0!==r?r:e.priceAfterItemDiscount)&&void 0!==i?i:e.basePrice)&&void 0!==t?t:0,a=Array.isArray(e.priceAdjustments)&&e.priceAdjustments.length?e.priceAdjustments[0]:void 0;return{index:l,item_id:e.productId,item_name:e.productName,item_brand:"Movado",item_category:null!==(o=e.c_Categories)&&void 0!==o?o:"",price:d,coupon:a?a.itemText:"",discount:(null!==(n=null==e?void 0:e.basePrice)&&void 0!==n?n:0)-d,quantity:e.quantity}};var V=!0;function X(e){var l,r,d,V,X,Z,G,W,Y,J,K,ee;let{cancellationSection:el,ssrData:er}=e,ei=(0,B.I)(),{t:et}=(0,u.$G)(["common","order","checkout"]),{formatPrice:eo}=(0,E.p)(),en=(0,t.useContext)(O.N),ed=(0,n.NL)(),[ea,es]=(0,t.useState)(""),eu=(0,L._8)(),{replace:ec,locale:em,defaultLocale:ev="en"}=(0,o.useRouter)(),[,,ep]=(0,R.B)("landingQueryParams",{}),ex=ed.getQueryData(["order","confirmation"]);ed.getQueryData(["cart"]);let eg=(0,S.o)(er,"order-staus-map-sfcc-oms","json"),ef=(0,S.o)(er,"ca-battery-fee-order-summary-label","string"),{groups:eh,hasCookieConsent:ey}=(0,b.H)(),eb=(0,t.useRef)(!1);(0,C.z)();let ew=(0,Q.y)("pinterestCapiEnabled"),[ej]=(0,R.B)("user_email",""),{setupPinterestEventData:eN}=(0,H.$)(null!=ej?ej:""),e_=null==ex?void 0:ex.id,eI=(0,A.I)(ea,eg,null!=em?em:ev),ek="Cancelled"===eI?null==el?void 0:null===(l=el.data)||void 0===l?void 0:l.cancelledStatusText:eI,eO=null!==(W=null==ex?void 0:ex.paymentMethod)&&void 0!==W?W:null==ex?void 0:null===(d=ex.paymentInstruments)||void 0===d?void 0:null===(r=d[ex.paymentInstruments.length-1])||void 0===r?void 0:r.paymentMethodId,eS=null!==(Y=null==ex?void 0:null===(V=ex.orderPriceAdjustments)||void 0===V?void 0:V.reduce((e,l)=>{var r;return e+(null!==(r=null==l?void 0:l.price)&&void 0!==r?r:0)},0))&&void 0!==Y?Y:0,eC=null!==(K=null!==(J=null==ex?void 0:ex.currency)&&void 0!==J?J:(0,s.getCookie)(F.qz))&&void 0!==K?K:"USD",eD=async()=>{var e,l,r;if(!(null==ex?void 0:ex.id)||!(null==ex?void 0:null===(e=ex.customerInfo)||void 0===e?void 0:e.email)||!(null==ex?void 0:null===(l=ex.billingAddress)||void 0===l?void 0:l.postalCode))return;let{omsStatus:i}=await eu.unified.getOMSOrderStatus({orderNumber:null==ex?void 0:ex.id,orderEmail:null==ex?void 0:null===(r=ex.customerInfo)||void 0===r?void 0:r.email,billingZipCode:null==ex?void 0:ex.billingAddress.postalCode});es(null!=i?i:"Waiting to Fulfill")},{checkoutStep:eT}=(0,q.A)();(0,t.useEffect)(()=>{if(window&&Array.isArray(window.dataLayer)&&(en===k.iI.MovadoCompanyStore||en===k.iI.OliviaBurtonUk?window.dataLayer.push({event:"page_view",ecommerce:{currency:eC,items:[]},page:{event_location:window.location.href,page_title:document.title,page_type:U.y.OSP}}):window.dataLayer.push({event:"page_view",page_location:window.location.href,page_path:window.location.pathname,page_title:document.title,page_type:U.y.OSP})),window){var e,l,r,i,t,o,n,d,a,s,u,c,m;let v,p;(null==ex?void 0:null===(e=ex.customerInfo)||void 0===e?void 0:e.customerName)?[v,p]=(null!==(i=null==ex?void 0:null===(r=ex.customerInfo)||void 0===r?void 0:r.customerName)&&void 0!==i?i:"").toString().split(" "):(v=null!==(n=null==ex?void 0:null===(t=ex.customerInfo)||void 0===t?void 0:t.customerName)&&void 0!==n?n:"",p=null!==(d=null==ex?void 0:null===(o=ex.customerInfo)||void 0===o?void 0:o.customerName)&&void 0!==d?d:""),(null===(l=window)||void 0===l?void 0:l._ltk)&&(null===(u=window)||void 0===u||null===(s=u._ltk)||void 0===s||s.Order.SetCustomer(null==ex?void 0:null===(a=ex.customerInfo)||void 0===a?void 0:a.email,v,p),window._ltk.Order.OrderNumber=null==ex?void 0:ex.id,window._ltk.Order.ShippingTotal=null==ex?void 0:ex.shippingTotal,window._ltk.Order.TaxTotal=null==ex?void 0:ex.taxTotal,window._ltk.Order.OrderTotal=null==ex?void 0:ex.orderTotal,null==ex||null===(c=ex.lineItems)||void 0===c||c.forEac
1h(e=>{var l,r;window._ltk.Order.ItemTotal=e.totalPrice.amount,null===(r=window)||void 0===r||null===(l=r._ltk)||void 0===l||l.Order.AddItem(e.sku,e.quantity,e.unitPrice.amount)}),null===(m=window)||void 0===m||m._ltk.Order.Submit())}if(!ex){ec(I.VP.index.compile());return}eD(),ep()},[ex,ec]),(0,t.useEffect)(()=>{if((0,s.setCookie)(k.HT,String(!1),{secure:!0,sameSite:"lax"}),ex){var e,l,r;let i=Array.isArray(null==ex?void 0:ex.couponItems)?null==ex?void 0:ex.couponItems[0]:null;window.dataLayer.push({event:"purchase",ecommerce:{transaction_id:null==ex?void 0:ex.id,value:null==ex?void 0:ex.orderTotal,tax:null==ex?void 0:ex.taxTotal,shipping:null==ex?void 0:ex.shippingTotal,currency:null==ex?void 0:ex.currency,coupon:null!==(l=null==i?void 0:i.code)&&void 0!==l?l:"",items:null!==(r=null==ex?void 0:null===(e=ex.productItems)||void 0===e?void 0:e.map(z))&&void 0!==r?r:[]}})}},[]);let eP=async(e,l)=>{var r,i,t,o,n,d,a,s,u;if(!ew)return;let c=await eN("checkout",{order_id:null!==(o=null==ex?void 0:ex.id)&&void 0!==o?o:"",value:String(null!==(n=null==ex?void 0:ex.orderTotal)&&void 0!==n?n:""),currency:null!==(d=null==ex?void 0:ex.currency)&&void 0!==d?d:"",content_ids:null!==(a=null==ex?void 0:null===(r=ex.productItems)||void 0===r?void 0:r.map(e=>e.productId))&&void 0!==a?a:[],contents:null!==(s=null==ex?void 0:null===(i=ex.productItems)||void 0===i?void 0:i.map(e=>{var l,r,i;return{id:e.productId,item_name:null!==(l=e.productName)&&void 0!==l?l:"",quantity:null!==(r=e.quantity)&&void 0!==r?r:1,item_price:String(null!==(i=e.basePrice)&&void 0!==i?i:"")}}))&&void 0!==s?s:[],num_items:null!==(u=null==ex?void 0:null===(t=ex.productItems)||void 0===t?void 0:t.length)&&void 0!==u?u:0},null!=e_?e_:"",l);if(c){if(e){let l=(0,D.U3)(e);l&&(c.data[0].user_data.em=[l])}await eu.unified.sendEventToPinterest(c)}};return((0,t.useEffect)(()=>{(async()=>{try{var e,l,r,i;if(!(null==ex?void 0:ex.id)||!ew||!ey([w.w.C0009]))return;let t=null!==(r=null==ex?void 0:null===(e=ex.customerInfo)||void 0===e?void 0:e.email)&&void 0!==r?r:"",o=null!==(i=null==ex?void 0:null===(l=ex.shippingAddress)||void 0===l?void 0:l.phoneNumber)&&void 0!==i?i:"";await eP(t,o)}catch(e){console.log("Error in sending Pinterest Event API",e)}})()},[null==ex?void 0:ex.id,eh,ew]),(0,t.useEffect)(()=>{!eb.current&&ey([w.w.C0003])&&(eb.current=!0,eT(M.b.orderConfirmation.name,M.b.orderConfirmation.step))},[eh]),(0,t.useEffect)(()=>{var e;(0,P.De)(null!==(e=null==ex?void 0:ex.orderTotal)&&void 0!==e?e:0,null!=en?en:k.iI.Movado)},[null==ex?void 0:ex.orderTotal]),ex)?(0,i.jsxs)($.H,{ssrData:er,children:[(0,i.jsx)(N.E,{orderId:ex.id,orderAmount:ex.orderTotal,orderCurrency:eC,hasConsent:ey([w.w.C0009])}),(0,i.jsx)(j.RakutenPixel,{}),(0,i.jsx)(c.PB,{title:"".concat(ei," | Confirmation of your order")}),(0,i.jsx)("div",{"data-testid":"order-success-page",className:"order-success-page",children:(0,i.jsxs)("div",{className:"order-confirmation",children:[(0,i.jsx)("div",{className:"order-confirmation-header bg-primary-200 pt-[3.125rem] pb-8 lg:pt-[6.25rem] lg:pb-[3.125rem]",children:(0,i.jsxs)("div",{className:"max-w-[31.25rem] w-full px-6 text-center mx-auto flex flex-col items-center gap-y-5",children:[(0,i.jsx)(_.Z,{className:"text-positive-1000 !w-[3.125rem] !h-[3.125rem]"}),(0,i.jsxs)("div",{className:"flex flex-col gap-y-3 md:gap-y-2.5",children:[(0,i.jsx)("p",{className:"text-sm md:text-base md:leading-[1.375rem] md:tracking-[0.015625rem] text-primary-900",children:et("orderSuccess.orderNo",{orderNo:ex.id})}),(0,i.jsx)("h1",{className:"text-2xl font-normal md:text-[2rem] md:leading-10 text-primary-900",children:et("orderSuccess.thankYou")}),(0,i.jsx)("p",{className:"text-sm md:text-base md:leading-[1.375rem] md:tracking-[0.015625rem] text-primary-900",children:et("orderSuccess.confirmationEmailText",{email:null==ex?void 0:null===(X=ex.customerInfo)||void 0===X?void 0:X.email})})]})]})}),(0,i.jsxs)("div",{className:"flex flex-col justify-center lg:flex-row gap-y-7 lg:gap-y-inherit lg:mx-10 border-b border-primary-300 lg:pt-[3.125rem] lg:pb-[3.125rem]",children:[(0,i.jsxs)("div",{className:"order-summary lg:w-1/2 lg:pr-12 xl:pr-[6.25rem] w-full xl:flex xl:flex-col xl:items-end",children:[(0,i.jsxs)("div",{className:"order-summary-section xl:w-[26.6875rem] pt-[1.875rem] pb-7 px-6 lg:px-0 lg:pt-0 lg:pb-[1.125rem]",children:[(0,i.jsx)("h2",{className:"text-lg md:text-2xl leading-5 md:leading-8 text-primary-900 mb-[1.875rem] lg:mb-[1.125rem]",children:et("checkOrderDeatils.totalItems",{count:ex.lineItems.length})}),ex.lineItems.map(e=>(0,i.jsx)(x.q,{lineItem:{...e,c_ImageURL:"".concat(e.image.url,"?sw=118&sh=118&w=118&q=80"),unitPrice:e.discountablePrice},itemRenderType:m.b.ORDER_SUCCESS,currency:eC,isOrderFlow:!0,orderData:ex},e.id)),(0,i.jsxs)("div",{className:"item-total-section flex flex-col gap-y-5 md:gap-y-[1.125rem] border-y border-primary-300 py-5 md:mt-[1.125rem] test",children:[(0,i.jsx)(h.$,{label:et("checkOrderDeatils.itemSubtotal"),children:(0,i.jsx)(v.F,{regular:eo({amount:null!==(ee=null===(Z=ex.subtotalPrice)||void 0===Z?void 0:Z.amount)&&void 0!==ee?ee:0,currency:eC}),className:"justify-end font-fontPrimary"})}),(0,i.jsx)(h.$,{label:et("checkOrderDeatils.orderDiscount"),children:(0,i.jsx)(v.F,{regular:eo({amount:eS,currency:eC}),className:"justify-end"})}),(0,i.jsx)(h.$,{label:et("checkOrderDeatils.shipping"),children:(0,i.jsx)(v.F,{regular:eo(ex.totalShippingPrice),className:"justify-end"})}),Number(null==ex?void 0:ex.c_grossTaxTotalExcludingBatteryFee)?(0,i.jsx)(h.$,{label:et("checkOrderDeatils.tax"),children:(0,i.jsx)(v.F,{regular:eo({amount:Number(null==ex?void 0:ex.c_grossTaxTotalExcludingBatteryFee),currency:eC}),className:"justify-end"})}):(0,i.jsx)(h.$,{label:et("checkOrderDeatils.tax"),children:(0,i.jsx)(v.F,{regular:eo(ex.totalTax),className:"justify-end"})}),!!Number(null==ex?void 0:ex.c_totalBatteryFee)&&(0,i.jsx)(y.r,{label:"".concat(ef),children:(0,i.jsx)(v.F,{regular:eo({amount:Number(null==ex?void 0:ex.c_totalBatteryFee),currency:eC}),className:"justify-end"})}),(0,i.jsx)(h.$,{label:et("checkOrderDeatils.orderTotal"),children:(0,i.jsx)(v.F,{regular:eo(ex.totalPrice),className:"justify-end"})})]})]}),ea&&(0,i.jsx)("div",{className:"xl:w-[26.6875rem]",children:(0,i.jsx)(p.r,{orderNo:ex.id,orderCreationDate:null==ex?void 0:ex.orderDate,orderStatus:eI,content:el,isRedirect:!0})})]}),(0,i.jsx)("div",{className:"order-receipt relative w-full lg:w-1/2 px-6 pt-[1.875rem] pb-2.5 lg:pr-0 lg:pt-0 lg:pl-12 xl:pl-[6.25rem] border-t border-primary-300 lg:border-t-0 lg:before:absolute lg:before:w-[0.0625rem] lg:before:h-[calc(100%-3.5rem)] lg:before:top-0 lg:before:left-0 lg:before:bg-primary-300 xl:flex xl:justify-start",children:(0,i.jsxs)("div",{className:"order-receipt-section xl:w-[33.9375rem]",children:[(0,i.jsx)("h2",{className:"text-lg md:text-2xl leading-5 md:leading-8 text-primary-900 mb-[1.875rem] lg:mb-[1.875rem]",children:et("orderSuccess.receipt")}),(0,i.jsx)(f.d,{label:et("checkOrderDeatils.orderNumber"),children:ex.id}),(0,i.jsx)(f.d,{label:et("checkOrderDeatils.orderDate"),children:(0,T.BL)(new Date(ex.orderDate),"en")}),ek&&(0,i.jsx)(f.d,{label:et("checkOrderDeatils.orderStatus"),contentClass:a()({"!text-error":!1}),children:ek}),(0,i.jsx)(f.d,{label:et("checkOrderDeatils.shippingAddress"),contentClass:"flex flex-col",children:(0,i.jsx)(g.w,{address:ex.shippingAddress,customerInfo:ex.customerInfo,isBillinginOC:(null==ex?void 0:null===(G=ex.shippingMethod)||void 0===G?void 0:G.id)!==k.U6})}),ex.shippingMethod&&(0,i.jsxs)(f.d,{label:et("checkOrderDeatils.shippingMethod"),contentClass:"ohr-price flex flex-col",children:[(0,i.jsx)("span",{className:"line1",children:ex.shippingMethod.name}),(0,i.jsx)("span",{className:"price text-sm text-primary-900",children:(0,i.jsx)(v.F,{regular:eo(ex.shippingMethod.price),classNameVariants:{regular:"font-fontSecondary"}})})]}),(0,i.jsx)(f.d,{label:et("checkOrderDeatils.billingAddress"),contentClass:"flex flex-col",className:"mb-5",children:(0,i.jsx)(g.w,{address:null==ex?void 0:ex.billingAddress,isBillinginOC:!0})}),(0,i.jsx)(f.d,{label:et("checkOrderDeatils.payment"),children:eO})]})})]})]})})]}):null}l.default=X}},function(e){e.O(0,[6577,7482,3516,8347,9929,3375,4980,2248,7060,9498,1366,2086,5136,5904,6069,4123,1982,3517,2888,2596,179],function(){return e(e.s=91339)}),_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.