1import{j as e}from"./app-BeGqF6ux.js";import{T as c,a as m,b as l,e as t,d}from"./table-DpVf_q7d.js";import{f as h}from"./price-DBocDfrW.js";import{L as i,b as a}from"./Tooltip-DYcxt1UG.js";import{s as j}from"./helpers-CgA5RTdO.js";import"./button.styles-7lPNyjJO.js";import"./iconBase-CN8tsjra.js";import"./index-Dkf2GVy1.js";import"./dayjs-BlgjZc9C.js";import"./useTranslation-kJHeU9i8.js";const L=({orders:x,prevUrl:r,nextUrl:n})=>e.jsxs("div",{children:[e.jsx("h2",{className:"text-heading-5-bold",children:"Orders"}),e.jsxs(c,{className:"mt-6",children:[e.jsx(m,{children:e.jsxs(l,{children:[e.jsx(t,{children:"Order ID"}),e.jsx(t,{children:"Date"}),e.jsx(t,{children:"Total"}),e.jsx(t,{children:"Status"}),e.jsx(t,{children:"Has Credit Notes"})]})}),e.jsx(d,{children:x.map(s=>e.jsxs(l,{children:[e.jsxs(t,{className:"flex items-center gap-2",children:[s.isLegacy&&e.jsx("span",{title:"Legacy Order",children:"ð°ï¸"}),e.jsxs(i,{external:!0,href:s.invoiceUrl,children:["#",s.id]}),s.isLegacy&&s.stripePaymentIntentId&&e.jsx(i,{className:"text-xs",external:!0,href:`${j}/payments/${s.stripePaymentIntentId}`,children:"(Stripe Charge)"})]}),e.jsx(t,{children:s.date}),e.jsx(t,{children:h(s.totalInCents)}),e.jsx(t,{children:s.status}),e.jsx(t,{children:s.hasCreditNotes?"Yes":"No"})]},s.id))})]}),e.jsxs("div",{className:"mt-8 flex items-center justify-between",children:[r?e.jsxs(i,{href:r,children:[e.jsx(a,{name:"HiArrowLeft",size:"xs"}),"Back"]}):e.jsxs("span",{className:"inline-flex cursor-not-allowed items-center gap-x-1 text-sm text-gray-400",children:[e.jsx(a,{name:"HiArrowLeft",size:"xs"}),"Back"]}),n?e.jsxs(i,{href:n,children:["Next",e.jsx(a,{name:"HiArrowRight",size:"xs"})]}):e.jsxs("span",{className:"inline-flex cursor-not-allowed items-center gap-x-1 text-sm text-gray-400",children:["Next",e.jsx(a,{name:"HiArrowRight",size:"xs"})]})]})]});export{L 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.