1const __vite__fileDeps=["assets/OrderList-CJwVeNgq.js","assets/index-d_wRIAYy.js","assets/index-C1qIcA3u.css","assets/OrderInfo-CluGfYJm.js","assets/Button-BajbHsJR.js","assets/Button-Bw10MtrF.css","assets/Alert-Cw-F3dta.js","assets/format-BzRktsyD.js","assets/ProductDetails-u9tQbfwp.js","assets/index-BfQOR9yq.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); 2import{j as e,z as i,S as s,r as o,_ as g,b as u,ap as b,C as N}from"./index-d_wRIAYy.js";import{P as h}from"./PageHeading-DYMypnAW.js";import{p as v}from"./privateRoute-B9w8rgAn.js";import{A as y}from"./AccountBreadcrumbs-C9J18PR-.js";import"./BreadCrumbsSchema-5LQZCI8d.js";const w=({currentTab:r})=>e.jsxs("div",{className:"flex flex-row text-sm md:text-base lg:text-lg",children:[e.jsx(i,{to:"?activeTab=orders",className:`border-b py-2 ${r==="orders"?"text-theme-color border-b border-b-theme-color":"text-regular border-gray-100"}`,children:"Orders"}),e.jsx("div",{className:"p-4 border-b border-gray-100"}),e.jsx(i,{to:"?activeTab=cancelled",className:`border-b py-2 ${r==="cancelled"?"text-theme-color border-theme-color":"text-regular border-gray-100"}`,children:"Cancelled Orders"})]});function O(){return e.jsxs("div",{className:"px-4 md:px-10 py-4 md:py-[22px] bg-gray-50 rounded-tl-xl rounded-tr-xl border border-cardBorder gap-3 min-[380px]:gap-4 md:gap-6 justify-between inline-flex flex-col-reverse lg:flex-row text-xs min-[380px]:text-sm md:text-base",children:[e.jsxs("div",{className:"gap-8 sm:gap-12 flex justify-between lg:justify-start",children:[e.jsxs("div",{className:"flex-col gap-2 sm:gap-3 inline-flex min-w-24",children:[e.jsx(s,{}),e.jsx(s,{})]}),e.jsxs("div",{className:"flex-col gap-2 sm:gap-3 inline-flex min-w-24",children:[e.jsx(s,{}),e.jsx(s,{})]}),e.jsxs("div",{className:"flex-col gap-2 sm:gap-3 inline-flex min-w-24",children:[e.jsx(s,{}),e.jsx(s,{})]})]}),e.jsxs("div",{className:"gap-2 sm:gap-3 flex flex-col sm:flex-row sm:items-center lg:flex-col",children:[e.jsxs("div",{className:"gap-2 sm:gap-3 flex flex-col sm:flex-row sm:items-center ",children:[e.jsx(s,{className:"min-w-24"}),e.jsx(s,{className:"min-w-32"})]}),e.jsx("div",{className:"inline-flex sm:ml-auto",children:e.jsx(s,{className:"px-2 py-1 text-xs min-[380px]:text-sm md:text-base min-w-24"})})]})]})}function S(){return e.jsxs("div",{className:"px-6 md:px-10 py-4 md:py-5 border border-cardBorder flex-col gap-5 inline-flex",children:[e.jsx(s,{className:"text-regular text-base min-[380px]:text-lg md:text-xl"}),e.jsxs("div",{className:"justify-between inline-flex flex-col md:flex-row gap-4 md:gap-6",children:[e.jsxs("div",{className:"gap-3 sm:gap-[18px] flex flex-col sm:flex-row items-center",children:[e.jsx("div",{className:"w-32 sm:w-40 aspect-square",children:e.jsx(s,{className:"h-full w-full"})}),e.jsx("div",{className:"flex-col items-center gap-3 inline-flex",children:e.jsxs("div",{className:"flex-col gap-2 flex min-w-32",children:[e.jsx(s,{className:"text-sm min-[380px]:text-base md:text-lg text-center sm:text-start"}),e.jsx(s,{className:"text-sm"}),e.jsx(s,{className:"text-sm"})]})})]}),e.jsxs("div",{className:"flex-col sm:flex-row md:flex-col gap-[18px] inline-flex",children:[e.jsx(s,{className:"rounded px-5 py-2.5 text-xs min-w-36"}),e.jsx(s,{className:"rounded px-5 py-2.5 text-xs min-w-36"})]})]})]})}function _(){return e.jsxs("div",{className:"flex flex-col",children:[e.jsx(O,{}),Array(2).fill().map((r,a)=>e.jsx(S,{},a))]})}function m(){return Array(2).fill().map((r,a)=>e.jsx(_,{},a))}const A=o.lazy(()=>g(()=>import("./OrderList-CJwVeNgq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),E=()=>{var d,n;const r=["orders","buy-again","cancelled"],[a]=u(),x=a.get("activeTab"),c=r.includes(x)?x:"orders",l=b(),p=(d=l.data)==null?void 0:d.filter(t=>t.orderStatus==="CANCELLED"),f=(n=l.data)==null?void 0:n.filter(t=>t.orderStatus!=="CANCELLED"),j=c==="orders"?f:p;return e.jsxs("main",{className:"main-margin-top flex flex-col gap-5 bg-primaryBg p-4 container mx-auto",children:[e.jsx(N,{type:"orders"}),e.jsx(y,{breadcrumbsList:[{path:"/account",label:"Your Account"},{path:"/account/orders",label:"Your Orders"}]}),e.jsx("div",{className:"flex flex-row justify-between items-center",children:e.jsx(h,{heading:"Your Orders"})}),e.jsx(w,{currentTab:c}),l.isPending?e.jsx(m,{}):l.data&&l.data.length>0?e.jsx(o.Suspense,{fallback:e.jsx(m,{}),children:e.jsx(A,{orders:j})}):e.jsx("div",{className:"text-center text-base md:text-xl my-4",children:"No Orders to show."})]})},B=v(E);export{B as default};
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.