PageSourceSearch

https://ancientnutrition.com/_next/static/chunks/pages/account/orders/[...slug]-ce9ac027d0dc86ce.js

js ancientnutrition.com collected 2026-10-02 04:27:33 UTC 12,891 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[703],{80950:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/orders/[...slug]",function(){return i(65048)}])},71883:function(e,n,i){"use strict";i.d(n,{Z:function(){return v}});var l=i(85893),t=i(67294),o=i(41664),s=i.n(o),d=i(23343),c=i.n(d),a=i(11163),r=i(86010),u=i(68983);function v(e){let n=null==e?void 0:e.customer,i=(0,a.useRouter)(),o=i.pathname,d=(0,u.Z)(),[v,x]=(0,t.useState)(!0);(0,t.useEffect)(()=>{x(!d.isWidescreen&&!d.isFullHD&&!d.isDesktop)},[null==d?void 0:d.isDesktop,null==d?void 0:d.isFullHD,null==d?void 0:d.isMobile,null==d?void 0:d.isWidescreen]);let m=e=>{try{var n,l,t;let o=null==e?void 0:null===(t=e.target)||void 0===t?void 0:null===(n=t.options[null==e?void 0:null===(l=e.target)||void 0===l?void 0:l.selectedIndex])||void 0===n?void 0:n.value;null==i||i.push(o)}catch(e){console.error(e)}},h=["/account/orders","/account/subscriptions","/account"].find(e=>{var n;return null===(n=i.asPath)||void 0===n?void 0:n.includes(e)});return(0,l.jsxs)("div",{children:[!v&&(0,l.jsx)("div",{className:c().navContainer,children:(0,l.jsx)("div",{className:c().accountNavigation,children:n&&(0,l.jsxs)("div",{className:c().accountNavigationItems,children:[(0,l.jsx)("div",{className:(0,r.Z)("/account"===o?c().active:"",c().navigationItem,"cursor-pointer"),children:(0,l.jsx)(s(),{href:"/account",children:"Account"})}),(0,l.jsx)("div",{className:(0,r.Z)("/account/orders"===o?c().active:"",c().navigationItem,"cursor-pointer"),children:(0,l.jsx)(s(),{href:"/account/orders",children:"Orders"})}),(0,l.jsx)("div",{className:(0,r.Z)("/account/subscriptions"===o?c().active:"",c().navigationItem,"cursor-pointer"),children:(0,l.jsx)(s(),{href:"/account/subscriptions",children:"Subscriptions & Rewards"})}),(0,l.jsx)("div",{className:c().navigationItem,children:(0,l.jsx)("a",{target:"_self",className:"cursor-pointer",onClick:null==e?void 0:e.handleLogout,children:"Logout"})})]})})}),v&&(0,l.jsx)("div",{className:(0,r.Z)(c().mobileNav,"p-5"),children:(0,l.jsx)("div",{className:c().mobileNavContainer,children:(0,l.jsxs)("select",{className:c().navSelect,name:"mobile-nav-select",defaultValue:h,onChange:e=>{m(e)},children:[(0,l.jsx)("option",{value:"/account",children:"Account"}),(0,l.jsx)("option",{value:"/account/orders",children:"Orders"}),(0,l.jsx)("option",{value:"/account/subscriptions",children:"Subscriptions & Rewards"})]})})})]})}},99171:function(e,n,i){"use strict";var l=i(85893),t=i(9008),o=i.n(t),s=i(52891);let d=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:160,i=(0,s.q)(e);if(i.length<=n)return i;let l=i.slice(0,Math.max(0,n-3)).trimEnd(),t=l.lastIndexOf(" ");return t>40?"".concat(l.slice(0,t).trimEnd()).concat("..."):"".concat(l).concat("...")};n.Z=e=>{let{title:n,description:i,url:t="",imageUrl:s,type:c="website",price:a,titleSuffix:r=!1,noIndex:u=!1}=e,v="https://ancientnutrition.com",x=t.replace(/^\/+/,""),m=x?"".concat(v,"/").concat(x):v,h=s||null,p=a||null,f="Ancient Nutrition",j=n?n.trim():"",g=j.length>0?r?"".concat(j," - ").concat(f):j:f,N=i?d(i):null;return(0,l.jsxs)(o(),{children:[u&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("meta",{name:"robots",content:"noindex, nofollow"})}),(0,l.jsx)("title",{children:g}),(0,l.jsx)("meta",{property:"og:title",content:g},"og:title"),(0,l.jsx)("meta",{name:"twitter:title",content:g},"twitter:title"),N&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("meta",{name:"description",content:N},"description"),(0,l.jsx)("meta",{property:"og:description",content:N},"og:description"),(0,l.jsx)("meta",{name:"twitter:description",content:N},"twitter:description")]}),h&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("meta",{property:"og:image",content:h},"og:image"),(0,l.jsx)("meta",{property:"og:image:secure_url",content:h},"og:image:secure_url"),(0,l.jsx)("meta",{name:"twitter:image",content:h},"twitter:image")]}),c&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("meta",{property:"og:type",content:c},"og:type")}),!u&&m&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("meta",{property:"og:url",content:m},"og:url"),(0,l.jsx)("link",{rel:"canonical",href:m})]}),p&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("meta",{property:"product:price:amount",content:p.toString()}),(0,l.jsx)("meta",{property:"product:price:currency",content:"USD"})]}),(0,l.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,l.jsx)("meta",{property:"og:site_name",content:f}),(0,l.jsx)("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge"}),(0,l.jsx)("meta",{name:"msvalidate.01",content:"1EA442319C333FE0B752CBB3F9ECF944"}),(0,l.jsx)("meta",{name:"theme-color",content:"#000"}),(0,l.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,l.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,l.jsx)("link",{rel:"apple-touch-icon",href:"/apple-icon.png"})]})}},65048:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return f}});var l=i(85893),t=i(67294),o=i(55687),s=i(39332),d=i(41664),c=i.n(d),a=i(11163),r=i(50577),u=i(67030);function v(){var e,n,i,s,d,v,x,m,h,p,f,j,g,N,b,w,_,y;let I=(0,o.bl)(),{customerOrders:S}=I,{initCustomer:k,loggedIn:A,customer:C}=I;null===A&&k();let E=(0,a.useRouter)();(0,t.useEffect)(()=>{C||!1!==A||E.push("/account")},[C,A,E]);let{slug:F}=E.query,Z=F[0],O=null==S?void 0:S.find(e=>{var n;return(null==e?void 0:null===(n=e.node)||void 0===n?void 0:n.orderNumber)==Z}),T=(null==O?void 0:null===(e=O.node)||void 0===e?void 0:e.name)?"Order ".concat(null==O?void 0:null===(n=O.
1node)||void 0===n?void 0:n.name):"Order",D=(null==O?void 0:null===(i=O.node)||void 0===i?void 0:i.financialStatus)?null==O?void 0:O.node.financialStatus.toLowerCase().replace("paid","Shipped").replace("refunded","Refunded").replace("partially_refunded","Partially Refunded"):"",P=null==O?void 0:null===(s=O.node)||void 0===s?void 0:s.successfulFulfillments,R=null==O?void 0:null===(d=O.node)||void 0===d?void 0:d.shippingAddress,B=null==O?void 0:null===(v=O.node)||void 0===v?void 0:v.billingAddress;return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"orders-container",children:[(0,l.jsxs)("div",{className:"header flex flex-col md:flex-row justify-between w-full md:items-center gap-2 mb-6 pb-6 border border-t-0 border-l-0 border-r-0 border-b-[#ebebeb]",children:[(0,l.jsx)("h1",{className:"text-3xl",children:(0,r.Q)(T)}),(0,l.jsx)(c(),{className:"text-[#30b6d2]",href:"/account/orders",children:"Back to All Orders"})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex justify-content-center mb-5 gap-5 flex-wrap",children:[(0,l.jsx)("div",{className:"uppercase font-bold",children:"Date"}),(0,l.jsx)("div",{children:null==O?void 0:null===(x=O.node)||void 0===x?void 0:x.processedAt})]}),(0,l.jsxs)("div",{className:"flex justify-content-center mb-5 gap-5 flex-wrap",children:[(0,l.jsx)("div",{className:"uppercase font-bold",children:"Status"}),(0,l.jsx)("div",{children:D})]})]}),(0,l.jsxs)("div",{className:"flex flex-col md:flex-row mt-8 gap-6 justify-start md:gap-[200px] w-full mb-8",children:[(0,l.jsxs)("div",{className:"flex flex-col justify-content-center mb-5 gap-5 flex-wrap",children:[(0,l.jsx)("div",{className:"text-2xl",children:"Shipping Information"}),R&&(0,l.jsx)("div",{children:R.name}),R&&(0,l.jsxs)("div",{children:[R.address1," ",R.address2]}),R&&(0,l.jsxs)("div",{children:[R.city,", ",R.provinceCode,","," ",R.zip]})]}),(0,l.jsxs)("div",{className:"flex flex-col justify-content-center mb-5 gap-5 flex-wrap",children:[(0,l.jsx)("div",{className:"text-2xl",children:"Billing Information"}),B&&(0,l.jsx)("div",{children:B.name}),B&&(0,l.jsxs)("div",{children:[B.address1," ",B.address2]}),B&&(0,l.jsxs)("div",{children:[B.city,", ",B.provinceCode,","," ",B.zip]})]}),(0,l.jsxs)("div",{className:"flex flex-col justify-content-center mb-5 gap-5 flex-wrap",children:[(0,l.jsx)("div",{className:"text-2xl",children:"Order Summary"}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex gap-6 w-full justify-between",children:[(0,l.jsx)("div",{children:"Subtotal"}),(0,l.jsxs)("div",{children:["$",null==O?void 0:null===(h=O.node)||void 0===h?void 0:null===(m=h.subtotalPriceV2)||void 0===m?void 0:m.amount]})]}),(0,l.jsxs)("div",{className:"flex gap-6 w-full justify-between",children:[(0,l.jsx)("div",{children:"Taxes"}),(0,l.jsxs)("div",{children:["$",null==O?void 0:null===(f=O.node)||void 0===f?void 0:null===(p=f.totalTaxV2)||void 0===p?void 0:p.amount]})]}),(0,l.jsxs)("div",{className:"flex gap-6 w-full justify-between",children:[(0,l.jsx)("div",{children:"Shipping"}),(0,l.jsxs)("div",{children:["$",null==O?void 0:null===(g=O.node)||void 0===g?void 0:null===(j=g.totalShippingPriceV2)||void 0===j?void 0:j.amount]})]}),(0,l.jsxs)("div",{className:"flex gap-6 w-full justify-between",children:[(0,l.jsx)("div",{children:"Total"}),(0,l.jsxs)("div",{children:["$",null==O?void 0:null===(b=O.node)||void 0===b?void 0:null===(N=b.totalPriceV2)||void 0===N?void 0:N.amount]})]})]})]})]}),(0,l.jsx)("div",{className:"border border-[#dcdcdc] shadow p-6 bg-white mt-4",children:(0,l.jsx)("div",{children:null==O?void 0:null===(y=O.node)||void 0===y?void 0:null===(_=y.lineItems)||void 0===_?void 0:null===(w=_.edges)||void 0===w?void 0:w.map((e,n)=>{var i,t,o,s,d,a,r,v,x,m,h;let p="",f="";p=null==e?void 0:null===(o=e.node)||void 0===o?void 0:null===(t=o.variant)||void 0===t?void 0:null===(i=t.image)||void 0===i?void 0:i.url,f=null==e?void 0:null===(a=e.node)||void 0===a?void 0:null===(d=a.variant)||void 0===d?void 0:null===(s=d.image)||void 0===s?void 0:s.altText;let j=null==e?void 0:e.node,g=null==j?void 0:j.variant,N=null==j?void 0:null===(r=j.variant)||void 0===r?void 0:r.product,b=P.find(n=>n.fulfillmentLineItems.edges.find(n=>{var i,l;return(null===(i=n.node.lineItem.variant)||void 0===i?void 0:i.id)==(null===(l=e.node.variant)||void 0===l?void 0:l.id)}
1));return N&&b?(0,l.jsxs)("div",{className:"flex flex-col md:flex-row justify-between gap-4 md:items-center p-2",children:[(0,l.jsxs)("div",{className:"flex",children:[p&&(0,l.jsx)("img",{src:(0,u.Z)({src:p,format:"webp",width:75,height:75}),alt:f,height:75,width:75,loading:"lazy",decoding:"async"}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)("div",{children:null==N?void 0:N.title}),(0,l.jsx)("div",{children:null==g?void 0:g.title})]})]}),(0,l.jsxs)("div",{className:"flex md:flex-col gap-2",children:[(0,l.jsx)("div",{className:"uppercase font-bold",children:"Total"}),(0,l.jsxs)("div",{children:["$",null==g?void 0:null===(v=g.priceV2)||void 0===v?void 0:v.amount]})]}),(0,l.jsxs)("div",{className:"flex md:flex-col gap-2",children:[(0,l.jsx)("div",{className:"uppercase font-bold",children:"Status"}),(0,l.jsx)("div",{children:D})]}),(0,l.jsxs)("div",{className:"flex md:flex-col gap-2",children:[(0,l.jsx)("div",{className:"uppercase font-bold",children:"Tracking"}),b.trackingInfo&&(null===(x=b.trackingInfo)||void 0===x?void 0:x.length)>0?(0,l.jsx)(c(),{target:"_blank",href:null===(m=b.trackingInfo[0])||void 0===m?void 0:m.url,className:"text-[#30b6d2]",children:null===(h=b.trackingInfo[0])||void 0===h?void 0:h.number}):""]}),(0,l.jsxs)("div",{className:"flex md:flex-col gap-2",children:[(0,l.jsx)(c(),{href:"/products/".concat(null==N?void 0:N.handle),className:"flex-[45%] p-6 pt-4 pb-4 border rounded flex items-center justify-center border-[#c4c4c4]",children:"Buy Again"}),(0,l.jsx)(c(),{href:"/products/".concat(null==N?void 0:N.handle,"#reviewsHeader"),className:"flex-[45%] p-6 pt-4 pb-4 border rounded flex items-center justify-center border-[#c4c4c4]",children:"Write a Review"})]})]},n):(0,l.jsx)("div",{children:"Product no longer exists"},n)})})})]})})}var x=i(71883),m=i(99171),h=i(28612),p=i(63755),f=()=>{var e,n;let{initCustomer:i,loggedIn:d,customer:c,handleLogout:a}=(0,o.bl)();null===d&&i();let r=(0,s.useRouter)(),u=(0,h.h)();return(0,t.useEffect)(()=>{c||!1!==d||r.push("/account")},[c,d,r]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m.Z,{title:"Order Details",description:null==u?void 0:u.metaDescription,url:"account/orders",imageUrl:null===(e=(0,p.Z)(null==u?void 0:null===(n=u.metaImage)||void 0===n?void 0:n.fields))||void 0===e?void 0:e.src,titleSuffix:!0,noIndex:!0}),(0,l.jsx)(x.Z,{customer:c,handleLogout:a}),(0,l.jsx)("div",{className:"container p-5",children:(0,l.jsx)(v,{})})]})}},23343:function(e){e.exports={accountNavigation:"AccountNavigation_accountNavigation__daQWL",accountNavigationItems:"AccountNavigation_accountNavigationItems__bMHAT",navigationItem:"AccountNavigation_navigationItem__ZfJNS",active:"AccountNavigation_active__hc_k3",welcomeMessage:"AccountNavigation_welcomeMessage__xrtN4",messages:"AccountNavigation_messages__BdQqS",mobileNavContainer:"AccountNavigation_mobileNavContainer__nOcGw",navSelect:"AccountNavigation_navSelect__GjCvz"}},9008:function(e,n,i){e.exports=i(23867)}},function(e){e.O(0,[332,888,774,179],function(){return e(e.s=80950)}),_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.