PageSourceSearch

https://justcoffee.se/assets/account.orders.index-Ck_1N9bh.js

js justcoffee.se collected 2026-10-04 18:49:41 UTC 1,619 bytes, 1 lines download raw bytes

1import{E as d,c as l,j as e,C as r,t as c,cB as i,K as n,bL as o,w as m,ci as x,ad as u}from"./index-CaijLYwW.js";import{A as h}from"./AccountLayout-lPeUETxk.js";import{a as p}from"./customer-account-queries-BjlSzYnn.js";function g(){const{data:a}=d(p),{t}=l();return e.jsx(h,{children:a.length===0?e.jsx(r,{className:"border-dashed",children:e.jsxs(c,{className:"flex flex-col items-center gap-3 py-16 text-center",children:[e.jsx(i,{className:"h-10 w-10 text-muted-foreground"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t("account.orders.empty")}),e.jsx(n,{to:"/shop",className:"text-sm text-primary hover:underline",children:t("account.orders.browse")})]})}):e.jsx("div",{className:"flex flex-col gap-3",children:a.map(s=>e.jsx(n,{to:"/account/orders/$id",params:{id:s.id},className:"block",children:e.jsx(r,{className:"transition-colors hover:bg-muted/40",children:e.jsxs(c,{className:"flex flex-wrap items-center justify-between gap-4 py-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"font-mono text-xs",children:["#",o(s)]}),e.jsx(m,{className:x(s.status),children:t(`account.status.${s.status}`)})]}),e.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:new Date(s.created_at).toLocaleDateString()}),s.status==="payment_failed"&&e.jsx("div",{className:"mt-1 text-xs text-destructive",children:t("account.orders.paymentFailed")})]}),e.jsx("div",{className:"text-right",children:e.jsx("div",{className:"font-medium tabular-nums",children:u(s.total_sek??0)})})]})})},s.id))})})}export{g 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.