PageSourceSearch

https://starplace.net/assets/invoices-BLPxgYaR.js

js starplace.net collected 2026-10-02 02:03:20 UTC 2,904 bytes, 1 lines download raw bytes

1import{a as d,p as o,j as e,_ as x,ak as a,B as n,L as m,q as u}from"./index-t0Mu2_aA.js";import{C as h}from"./card-CPRZ8kHu.js";import{B as t}from"./badge-2FpYajiv.js";import{F as c}from"./file-text-BriHu6SH.js";function p({status:s}){const l=d();return s==="issued"?e.jsx(t,{children:l.sellerInvoices.stIssued}):s==="requested"?e.jsx(t,{variant:"outline",children:l.sellerInvoices.stInProgress}):s==="pending"?e.jsx(t,{variant:"outline",children:l.sellerInvoices.stQueued}):s==="failed"?e.jsx(t,{variant:"destructive",children:l.sellerInvoices.stFailed}):s==="cancelled"?e.jsx(t,{variant:"outline",children:l.sellerInvoices.stCancelled}):e.jsx(t,{variant:"outline",children:l.status(s)})}function I(){const s=d(),{data:l=[],isLoading:i}=o({queryKey:["seller-invoices"],queryFn:()=>u("sellerInvoices")});return e.jsxs("div",{children:[e.jsx("h1",{className:"font-display text-3xl",children:s.sellerInvoices.title}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:s.sellerInvoices.subtitle}),e.jsxs("div",{className:"mt-6 space-y-3",children:[i&&e.jsx("p",{className:"text-sm text-muted-foreground",children:s.sellerInvoices.loading}),!i&&l.length===0&&e.jsx("p",{className:"text-sm text-muted-foreground",children:s.sellerInvoices.none}),l.map(r=>e.jsx(h,{className:"p-4",children:e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(c,{className:"h-4 w-4 shrink-0 text-hud"}),e.jsx("span",{className:"min-w-0 break-words font-display text-sm",children:r.listing_title??s.sellerInvoices.listingRemoved}),e.jsx(p,{status:r.status})]}),e.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-3 text-xs text-muted-foreground",children:[e.jsxs("span",{children:[s.sellerInvoices.amount," ",e.jsx("span",{className:"text-foreground",children:x(r.amount_cents,r.currency)})]}),e.jsxs("span",{children:[s.sellerInvoices.order," ",r.order_id.slice(0,8)]}),e.jsxs("span",{children:[s.sellerInvoices.created," ",a(r.created_at)]}),r.issued_at&&e.jsxs("span",{children:[s.sellerInvoices.issued," ",a(r.issued_at)]}),r.cancelled_at&&e.jsxs("span",{children:[s.sellerInvoices.cancelled," ",a(r.cancelled_at)]})]}),r.error_message&&e.jsx("p",{className:"mt-2 rounded bg-destructive/10 p-2 text-xs text-destructive",children:r.error_message})]}),e.jsxs("div",{className:"flex shrink-0 flex-wrap gap-2",children:[e.jsx(n,{asChild:!0,size:"sm",variant:"outline",children:e.jsxs("a",{href:`/api/invoices/${r.id}/pdf`,target:"_blank",rel:"noreferrer",children:[e.jsx(c,{className:"mr-1 h-3 w-3"}),s.sellerInvoices.receipt]})}),e.jsx(n,{asChild:!0,size:"sm",variant:"ghost",children:e.jsx(m,{to:"/seller/orders/$id",params:{id:r.order_id},children:s.sellerInvoices.orderBtn})})]})]})},r.id))]})]})}export{I as component};

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.