PageSourceSearch

https://printstudios.de/static/react/chunks/PortalDashboard-BZ3ogL7K.js

js printstudios.de collected 2026-10-06 14:05:59 UTC 2,914 bytes, 1 lines download raw bytes

1import{j as e}from"./motion-4Pe-0l9l.js";import{c as g}from"./portal-CX12rgP7.js";import{e as h,f as p}from"./index-DOjRTYqR.js";import{B as o}from"./BlurReveal-DuDTfjEG.js";import{G as b}from"./GlowText-C8YoFb1g.js";import{S as u}from"./SpotlightCard-CHz4FN3Q.js";import{am as j,as as f,q as y}from"./icons-D33OLVah.js";import{L as l}from"./router-C_86t40E.js";import"./react-query-B-PjvZ3S.js";import"./tanstack-9D8FVQmw.js";import"./client-BrDz2RtE.js";import"./radix-Bm8LYzHo.js";import"./recharts-CkBxNeT6.js";function G(){const{data:r,isLoading:s}=g();if(s)return e.jsx("div",{className:"py-20 text-center text-sm text-gray-400",children:"Laden..."});const n=[{icon:j,label:"Bestellungen",value:r?.orders_count??0,to:"/portal/orders",glow:"rgba(59,130,246,0.18)",color:"text-blue-500"},{icon:f,label:"Designs",value:r?.designs_count??0,to:"/portal/designs",glow:"rgba(168,85,247,0.18)",color:"text-purple-500"},{icon:y,label:"Rechnungen",value:r?.invoices_count??0,to:"/portal/invoices",glow:"rgba(236,72,153,0.18)",color:"text-pink-500"}];return e.jsxs("div",{children:[e.jsx(o,{children:e.jsxs("h1",{className:"mb-6 text-3xl font-black text-gray-900 md:text-4xl",children:["Dash",e.jsx(b,{color:"#3b82f6",children:"board"})]})}),e.jsx("div",{className:"mb-8 grid gap-4 sm:grid-cols-3",children:n.map(({icon:t,label:a,value:i,to:c,glow:d,color:x},m)=>e.jsx(o,{delay:m*.08,children:e.jsx(l,{to:c,children:e.jsxs(u,{className:"block rounded-2xl border border-gray-100 bg-white p-5 transition hover:-translate-y-0.5 hover:shadow-md",spotlightColor:d,children:[e.jsx(t,{className:`mb-3 h-6 w-6 ${x}`}),e.jsx("p",{className:"text-3xl font-black text-gray-900",children:i}),e.jsx("p",{className:"text-xs text-gray-500",children:a})]})})},a))}),r?.recent_orders&&r.recent_orders.length>0&&e.jsxs("div",{children:[e.jsx("h2",{className:"mb-4 text-sm font-bold text-gray-900",children:"Letzte Bestellungen"}),e.jsx("div",{className:"space-y-3",children:r.recent_orders.map(t=>e.jsxs(l,{to:`/portal/order/${t.tracking_token}`,className:"flex items-center justify-between rounded-xl border border-gray-100 bg-white p-4 transition hover:shadow-sm",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-bold text-gray-900",children:t.title||t.tracking_token}),e.jsxs("p",{className:"text-xs text-gray-400",children:[h(t.created_at)," · ",t.items_count," Artikel"]})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("p",{className:"text-sm font-bold text-gray-900",children:p(t.total_brutto)}),e.jsx(v,{status:t.status})]})]},t.id))})]})]})}function v({status:r}){const s={Neu:"bg-sky-50 text-sky-700","In Produktion":"bg-amber-50 text-amber-700",Versendet:"bg-emerald-50 text-emerald-700",Abgeschlossen:"bg-gray-100 text-gray-600"};return e.jsx("span",{className:`inline-block rounded-full px-2 py-0.5 text-[10px] font-bold ${s[r]||"bg-gray-100 text-gray-600"}`,children:r})}export{G 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.