PageSourceSearch

https://www.reima.com/_next/static/chunks/pages/my-account/orders/[id]-2d3be6e59f81a951.js

js reima.com collected 2026-09-24 10:44:19 UTC 13,748 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3466],{18290:(e,r,t)=>{"use strict";t.r(r),t.d(r,{__N_SSP:()=>F,default:()=>O});var l=t(80263),s=t(31680),i=t(14887),n=t(88113),a=t(51170);let d=e=>{var r,t,s,i,n,d,o;let{heading:c,billingAddressMatchesShippingAddress:u,order:x,isLoading:h}=e;return(0,l.jsxs)(a.A,{children:[(0,l.jsx)(a.A.Heading,{children:c}),(0,l.jsx)(a.A.BodyWrapper,{children:h?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-3/12",height:"h-[22px]"}),(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-4/12",height:"h-[22px]"}),(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-2/12",height:"h-[22px]"}),(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-3/12",height:"h-[22px]"}),(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-1/12",height:"h-[22px]"})]}):(null==x?void 0:x.billingAddressMatchesShippingAddress)?(0,l.jsx)(a.A.Text,{children:u}):(0,l.jsx)(l.Fragment,{children:(null==x?void 0:x.billingAddress)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.A.Text,{children:"".concat(null!=(r=x.billingAddress.firstName)?r:""," ").concat(null!=(t=x.billingAddress.lastName)?t:"")}),(0,l.jsx)(a.A.Text,{children:"".concat(null!=(s=x.billingAddress.address1)?s:""," ").concat(null!=(i=x.billingAddress.address2)?i:"")}),(0,l.jsx)(a.A.Text,{children:null!=(n=x.billingAddress.city)?n:""}),(0,l.jsx)(a.A.Text,{children:null!=(d=x.billingAddress.zip)?d:""}),(0,l.jsx)(a.A.Text,{children:null!=(o=x.billingAddress.country)?o:""})]})})})]})},o=e=>{var r,t,s,i,n,d,o,c,u,x,h,p,m,j;let{heading:g,order:A,isLoading:v}=e;return(0,l.jsxs)(a.A,{children:[(0,l.jsx)(a.A.Heading,{children:g}),(0,l.jsx)(a.A.BodyWrapper,{children:v?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-3/12",height:"h-[23px]"}),(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-4/12",height:"h-[23px]"}),(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-2/12",height:"h-[23px]"}),(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-3/12",height:"h-[23px]"}),(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-1/12",height:"h-[23px]"})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(a.A.Text,{children:[null!=(c=null==A||null==(r=A.shippingAddress)?void 0:r.firstName)?c:""," ",null!=(u=null==A||null==(t=A.shippingAddress)?void 0:t.lastName)?u:""]}),(0,l.jsxs)(a.A.Text,{children:[null!=(x=null==A||null==(s=A.shippingAddress)?void 0:s.address1)?x:""," ",null!=(h=null==A||null==(i=A.shippingAddress)?void 0:i.address2)?h:""]}),(0,l.jsx)(a.A.Text,{children:null!=(p=null==A||null==(n=A.shippingAddress)?void 0:n.city)?p:""}),(0,l.jsx)(a.A.Text,{children:null!=(m=null==A||null==(d=A.shippingAddress)?void 0:d.zip)?m:""}),(0,l.jsx)(a.A.Text,{children:null!=(j=null==A||null==(o=A.shippingAddress)?void 0:o.country)?j:""})]})})]})};var c=t(73779),u=t(24285),x=t(53239);let h=e=>{var r;let{heading:t,order:s,isLoading:i}=e;return(0,x.useMemo)(()=>{var e;return null==s||null==(e=s.transactions)?void 0:e.some(e=>(0,u.A)(e.paymentIcon))},[s])?(0,l.jsxs)(a.A,{children:[(0,l.jsx)(a.A.Heading,{children:t}),(0,l.jsx)(a.A.BodyWrapper,{children:i?(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-4",height:"h-[21px]"}):null==s||null==(r=s.transactions)?void 0:r.filter(e=>(0,u.A)(e.paymentIcon)).map((e,r)=>{var t;return(0,l.jsxs)("div",{className:"flex gap-[10px] items-center",children:[(0,l.jsx)("div",{className:"flex relative w-[32px] h-[21px]",children:(0,l.jsx)(c.A,{src:e.paymentIcon.url,alt:e.paymentIcon.altText,fill:!0,style:{objectFit:"contain",objectPosition:"center center"}})}),(0,l.jsx)("span",{children:null!=(t=null==e?void 0:e.accountNumber)?t:""})]},"transactions_".concat(r))})})]}):null},p=e=>{var r;let{heading:t,order:s,isLoading:i,locale:n}=e;return(0,l.jsxs)(a.A,{children:[(0,l.jsx)(a.A.Heading,{children:t}),(0,l.jsx)("div",{className:"space-y-2",children:i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.A.ProductItemSkeleton,{}),(0,l.jsx)(a.A.ProductItemSkeleton,{})]}):null==s||null==(r=s.lineItems)?void 0:r.map((e,r)=>(0,l.jsx)(a.A.ProductItem,{item:e,locale:n},"orderListItem_".concat(r)))})]})},m=e=>{var r,t;let{heading:s,order:i,isLoading:n}=e;return(0,l.jsxs)(a.A,{children:[(0,l.jsx)(a.A.Heading,{children:s}),(0,l.jsx)(a.A.BodyWrapper,{children:n?(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-4/12",height:"h-[22px]"}):(0,l.jsx)(a.A.Text,{children:null!=(t=null==i||null==(r=i.shippingLine)?void 0:r.title)?t:"-"})})]})};var j=t(18535),g=t(80255),A=t(48781),v=t(67254);let y=e=>{let{orderNumberHeading:r,orderTimeHeading:t,orderStatusHeading:s,order:n,isLoading:d}=e,{t:o}=(0,v.Bd)("account"),c=(0,i.W)(o),u=(0,A.useRouter)(),h=u.locale?u.locale:"",p=(0,x.useMemo)(()=>{var e,r;if(!n||!h)return null;let t=(0,g.O)({fulfillmentStatus:n.fulfillmentStatus,financialStatus:n.financialStatus,returnStatus:n.returnStatus});return{orderNumber:null!=(e=n.orderNumber)?e:"",processedAt:null!=(r=(0,j.b)(n.processedAt,h))?r:"",displayStatus:t}},[n,h]);return(0,l.jsxs)(a.A,{children:[(0,l.jsx)(a.A.LineItem,{title:r,value:d?(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-1/12",height:"h-[23px]"}):p&&"#".concat(p.orderNumber)}),(0,l.jsx)(a.A.HorizontalLine,{classes:"text-gray-lighter"}),(0,l.jsx)(a.A.LineItem,{title:t,value:d?(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-2/12",height:"h-[23px]"}):null==p?void 0:p.processedAt}),(0,l.jsx)(a.A.HorizontalLine,{classes:"text-gray-lighter"}),(0,l.jsx)(a.A.LineItem,{title:s,value:d?(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-2/12",height:"h-[23px]"}):p&&(0,l.jsx)("span",{className:"font-bold",children:c("orders.displayStatus.".concat(p.displayStatus),"")})})]})};var w=t(96031),b=t(92333),f=t(9012);let L=e=>!e||(0,b.A)(e)?0:e.reduce((e,r)=>{var t,l;return e+r.quantity*Number(null!=(l=null==(t=r.variant)?void 0:t.price.amount)?l:0)},0),N=e=>!(!e||(0,b.A)(e))&&e.some(e=>!(0,f.A)(e.variant)),T=e=>{let{order:r,isLoading:t,locale:s}=e,{t:n}=(0,v.Bd)("account"),d=(0,i.W)(n),o=(0,x.useMemo)(()=>r?{sum:{amount:L(r.lineItems).toFixed(2),currencyCode:r.totalPrice.currencyCode},discount:r.totalDiscount,shipping:r.totalShippingCost,total:r.totalPrice}:null,[r]);return(0,l.jsxs)(a.A,{children:[(0,l.jsx)(a.A.Heading,{children:d("myAccount.orders.orderDetails.orderSummary")}
1),N(null==r?void 0:r.lineItems)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.A.HorizontalLine,{classes:"text-gray-lighter"}),(0,l.jsx)(a.A.LineItem,{title:d("myAccount.orders.orderDetails.subtotal"),value:t?(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-1/12",height:"h-[23px]"}):o&&(0,l.jsx)(w.A,{price:o.sum,locale:s})})]}),(0,l.jsx)(a.A.HorizontalLine,{classes:"text-gray-lighter"}),(0,l.jsx)(a.A.LineItem,{title:d("myAccount.orders.orderDetails.discount"),value:t?(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-1/12",height:"h-[23px]"}):o&&(0,l.jsx)(w.A,{price:o.discount,locale:s,isNegative:!0})}),(0,l.jsx)(a.A.HorizontalLine,{classes:"text-gray-lighter"}),(0,l.jsx)(a.A.LineItem,{title:d("myAccount.orders.orderDetails.shipping"),value:t?(0,l.jsx)(a.A.TextLineSkeleton,{width:"w-1/12",height:"h-[23px]"}):o&&(0,l.jsx)(w.A,{price:o.shipping,locale:s})}),(0,l.jsx)(a.A.HorizontalLine,{classes:"text-charcoal-dark"}),(0,l.jsxs)("div",{className:"flex justify-between text-charcoal-dark font-bold py-[17px]",children:[(0,l.jsx)("span",{children:d("myAccount.orders.orderDetails.total")}),o&&(0,l.jsx)("span",{children:(0,l.jsx)(w.A,{price:o.total,locale:s})}),t&&(0,l.jsx)("span",{className:"w-1/12 h-[23px] bg-gray-lighter rounded animate-pulse"})]}),(0,l.jsx)("small",{className:"text-gray",children:d("myAccount.orders.orderDetails.includingTax")})]})};var S=t(48151),k=t(15756),D=function(e){return e[e.SET_ORDER=0]="SET_ORDER",e[e.SET_ERROR=1]="SET_ERROR",e[e.SET_LOADING=2]="SET_LOADING",e}(D||{});let I=(e,r)=>{switch(r.type){case 0:return{...e,order:r.payload,isLoading:!1,error:void 0};case 1:return{...e,order:void 0,isLoading:!1,error:r.payload};case 2:return{...e,isLoading:r.payload,error:void 0};default:return e}},_=(0,x.createContext)({}),H=(0,x.createContext)({}),E=e=>{let{children:r,id:t}=e,s=(0,A.useRouter)(),{accessToken:i}=(0,k.A)(),n=s.locale,[a,d]=(0,x.useReducer)(I,{isLoading:!0,order:void 0,error:void 0}),o=(0,x.useCallback)(async e=>{if(i)try{d({type:2,payload:!0});let r=await S.NH.getOrderById(n,i,e);d({type:0,payload:r})}catch(e){d({type:1,payload:e})}},[i,n]);(0,x.useEffect)(()=>{t&&o(t).catch(e=>console.error(e))},[o,t]);let c=(0,x.useMemo)(()=>({...a}),[a]),u=(0,x.useMemo)(()=>({getOrderById:o}),[o]);return(0,l.jsx)(H.Provider,{value:u,children:(0,l.jsx)(_.Provider,{value:c,children:r})})},P=()=>{let e=(0,x.useContext)(_);if(void 0===e)throw Error("useOrderDetails must be used within a OrderDetailsContextProvider");return e},B=()=>{var e;let{t:r}=(0,v.Bd)("account"),t=(0,i.W)(r),{order:s,isLoading:a,error:c}=P(),u=(0,A.useRouter)().locale;return c?(0,l.jsx)("div",{children:"Error loading order"}):(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)(y,{orderNumberHeading:t("myAccount.orders.orderDetails.orderNumber"),orderTimeHeading:t("myAccount.orders.orderDetails.orderTime"),orderStatusHeading:t("myAccount.orders.orderDetails.orderStatus"),order:s,isLoading:a}),(null==s?void 0:s.statusUrl)&&(0,l.jsx)("div",{className:"flex w-full justify-end",children:(0,l.jsx)(n.A,{variation:"solid",theme:"red",href:null==s?void 0:s.statusUrl,"aria-label":"".concat(t("myAccount.orders.orderDetails.statusButton"),", ").concat(t("myAccount.orders.orderDetails.orderNumber"),"  ").concat(null!=(e=null==s?void 0:s.orderNumber)?e:""),children:t("myAccount.orders.orderDetails.statusButton")})}),(0,l.jsx)(o,{heading:t("myAccount.orders.orderDetails.contactInformation"),order:s,isLoading:a}),(0,l.jsx)(h,{heading:t("myAccount.orders.orderDetails.paymentMethod"),order:s,isLoading:a}),(0,l.jsx)(m,{heading:t("myAccount.orders.orderDetails.shippingMethod"),order:s,isLoading:a}),(0,l.jsx)(d,{heading:t("myAccount.orders.orderDetails.billingAddress"),billingAddressMatchesShippingAddress:t("myAccount.orders.orderDetails.billingAddressMatchesDeliveryAddress"),order:s,isLoading:a}),(0,l.jsx)(p,{heading:t("myAccount.orders.orderDetails.products"),order:s,isLoading:a,locale:u}),(0,l.jsx)(T,{order:s,isLoading:a,locale:u})]})};var R=t(96247),F=!0;let O=()=>{let{t:e}=(0,v.Bd)("account"),{id:r}=(0,A.useRouter)().query;return(0,l.jsxs)(s.A,{title:e("orders.orderDetails.title"),children:[(0,l.jsx)(R.A,{title:e("orders.orderDetails.title"),backLinkText:e("orders.orderDetails.backLink"),backLinkHref:"/my-account/orders"}),(0,l.jsx)(E,{id:String(r),children:(0,l.jsx)(B,{})})]})}},51170:(e,r,t)=>{"use strict";t.d(r,{A:()=>h});
1var l=t(80263),s=t(60337),i=t(63443);let n=(0,t(2244).F)("flex justify-between py-2 first:pt-0 last:pb-0",{variants:{variant:{default:"text-gray",bottomLine:"text-charcoal-dark font-semibold"}},defaultVariants:{variant:"default"}});var a=t(67459),d=t(14887),o=t(78815),c=t(67254),u=t(53239);let x=e=>{let{children:r}=e;return(0,l.jsx)("div",{className:"border border-gray-lighter",children:(0,l.jsx)("div",{className:"p-2 flex flex-col",children:r})})};x.Heading=e=>{let{children:r}=e;return(0,l.jsx)("h3",{className:"ui-text mb-3",children:r})},x.Text=e=>{let{children:r}=e;return(0,l.jsx)("span",{className:"mb-px",children:r})},x.BodyWrapper=e=>{let{children:r}=e;return(0,l.jsx)("div",{className:"flex flex-col",children:r})},x.TextLineSkeleton=e=>{let{width:r,height:t}=e;return(0,l.jsx)("span",{className:(0,i.x)(r,t,"bg-gray-lighter rounded animate-pulse")})},x.ProductItem=e=>{let{item:r,locale:t}=e,{t:s}=(0,c.Bd)("account"),n=(0,d.W)(s),{quantity:x,title:h,variant:p}=r;if(!p)return(0,l.jsx)(o.A.Frame,{image:null,quantityBubble:x,children:(0,l.jsx)(o.A.Title,{children:h})});let{selectedOptions:m,price:j,compareAtPrice:g,image:A}=p,v=A?{src:A.url}:null,y=(0,u.useMemo)(()=>{if(null==p?void 0:p.product.handle)return"/products/".concat(p.product.handle,"?variantId=").concat((0,a.u)(p.id))},[p]);return(0,l.jsxs)(o.A.Frame,{image:v,quantityBubble:null!=x?x:0,children:[(0,l.jsx)(o.A.Title,{href:y,children:h}),(0,l.jsx)(o.A.Price,{price:j,compareAtPrice:g,locale:t,theme:"red"}),(0,l.jsxs)("span",{className:"text-gray divide-x divide-gray",children:[m.map((e,r)=>{let t="color"===e.name.toLowerCase()?e.value.split(":")[1]:e.value;return(0,l.jsx)("span",{className:(0,i.x)(0!==r&&"px-[6px]",0===r&&"pr-[6px]"),children:t},"option_".concat(r))}),(0,l.jsx)("span",{className:"pl-[6px]",children:n("myAccount.orders.orderDetails.quantity",{value:"".concat(null!=x?x:0)})})]})]})},x.ProductItemSkeleton=s.A,x.LineItem=e=>{let{title:r,value:t,variant:s,className:a}=e;return(0,l.jsxs)("div",{className:(0,i.x)(n({variant:s,className:a})),children:[(0,l.jsx)("span",{children:r}),t]})},x.HorizontalLine=e=>{let{classes:r}=e;return(0,l.jsx)("hr",{className:(0,i.x)(r)})};let h=x},60337:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var l=t(80263);let s=()=>(0,l.jsxs)("div",{className:"gap-2 flex animate-pulse",children:[(0,l.jsx)("div",{className:"bg-gray-lighter w-[86px] h-[123px] shrink-0 animate-pulse"}),(0,l.jsx)("div",{className:"grow flex items-center",children:(0,l.jsxs)("div",{className:"grow flex flex-col gap-1 relative text-charcoal-dark",children:[(0,l.jsx)("span",{className:"w-3/12 h-[21px] bg-gray-lighter rounded animate-pulse"}),(0,l.jsx)("span",{className:"w-1/12 h-[21px] bg-gray-lighter rounded animate-pulse"}),(0,l.jsxs)("div",{className:"flex gap-[2px]",children:[(0,l.jsx)("span",{className:"w-2/12 h-[21px] bg-gray-lighter rounded animate-pulse"}),(0,l.jsx)("span",{className:"w-1/12 h-[21px] bg-gray-lighter rounded animate-pulse"}),(0,l.jsx)("span",{className:"w-1/12 h-[21px] bg-gray-lighter rounded animate-pulse"})]})]})})]})},98914:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-account/orders/[id]",function(){return t(18290)}])}},e=>{var r=r=>e(e.s=r);e.O(0,[9172,4363,5473,9901,1069,5169,8815,9566,636,6593,8792],()=>r(98914)),_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.