PageSourceSearch

https://freesnaps.co.uk/build/assets/Dashboard-Cohgz635.js

js freesnaps.co.uk collected 2026-10-09 23:49:30 UTC 3,103 bytes, 1 lines download raw bytes

1import{C as _}from"./Container-DqQC9c1_.js";import{_ as f}from"./Heading.vue_vue_type_script_setup_true_lang-lc8ndLFT.js";import{m as y,B as m,at as v,y as o,r as l,Z as i,v as k,an as B,w,D as t,aa as c,ab as u,G as n}from"./app-CPrWn9JI.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const N={"aria-labelledby":"needs-attention",class:"@container"},C={class:"mt-4 grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-4"},D={class:"truncate text-base/7 text-muted-foreground sm:text-sm/6"},O={class:"mt-1 text-3xl font-semibold tracking-tight text-foreground tabular-nums sm:text-2xl"},P={class:"mt-1 text-base/7 text-pretty text-muted-foreground sm:text-sm/6"},G={"aria-labelledby":"today",class:"@container mt-10"},S={class:"mt-4 grid grid-cols-1 @lg:grid-cols-2"},F={class:"truncate text-base/7 text-muted-foreground sm:text-sm/6"},z={class:"mt-1 text-3xl font-semibold tracking-tight text-foreground tabular-nums sm:text-2xl"},E={class:"mt-1 text-base/7 text-pretty text-muted-foreground sm:text-sm/6"},R=y({__name:"Dashboard",props:{stats:{}},setup(h){const s=h,b=[{title:"Dashboard",href:route("admin.dashboard")}],r=a=>new Intl.NumberFormat("en-GB").format(a),p=a=>new Intl.NumberFormat("en-GB",{style:"currency",currency:"GBP"}).format(a),g=m(()=>[{label:"Orders to process",value:r(s.stats.orders_processing),hint:"Paid and waiting on fulfillment"},{label:"Partially shipped",value:r(s.stats.orders_partially_shipped),hint:"Some shipments still open"},{label:"Open shipments",value:r(s.stats.open_shipments),hint:"Pending or processing groups"},{label:"On hold",value:r(s.stats.orders_on_hold),hint:"Blocked until manually released"}]),x=m(()=>[{label:"Orders today",value:r(s.stats.orders_today),hint:"Placed since midnight"},{label:"Revenue today",value:p(s.stats.revenue_today),hint:"Excludes cancelled and refunded"}]);return v(b),(a,d)=>(l(),o(c,null,[i(k(B),{title:"Dashboard"}),i(_,null,{default:w(()=>[i(f,{title:"Operations",description:"Where things stand right now."}),t("section",N,[d[0]||(d[0]=t("h2",{id:"needs-attention",class:"text-base/7 font-medium text-foreground sm:text-sm/6"},"Needs attention",-1)),t("dl",C,[(l(!0),o(c,null,u(g.value,e=>(l(),o("div",{key:e.label,class:"border-zinc-950/10 py-4 not-first:border-t @4xl:not-first:border-t-0 dark:border-white/10 @4xl:[&:not(:nth-child(4n))]:pr-6 @4xl:[&:not(:nth-child(4n+1))]:border-l @4xl:[&:not(:nth-child(4n+1))]:pl-6 @lg:[&:nth-child(-n+2)]:border-t-0 @lg:[&:nth-child(2n)]:border-l @lg:[&:nth-child(2n)]:pl-6 @lg:[&:nth-child(2n+1)]:pr-6"},[t("dt",D,n(e.label),1),t("dd",O,n(e.value),1),t("dd",P,n(e.hint),1)]))),128))])]),t("section",G,[d[1]||(d[1]=t("h2",{id:"today",class:"text-base/7 font-medium text-foreground sm:text-sm/6"},"Today",-1)),t("dl",S,[(l(!0),o(c,null,u(x.value,e=>(l(),o("div",{key:e.label,class:"border-zinc-950/10 py-4 not-first:border-t @lg:not-first:border-t-0 dark:border-white/10 @lg:[&:nth-child(2n)]:border-l @lg:[&:nth-child(2n)]:pl-6 @lg:[&:nth-child(2n+1)]:pr-6"},[t("dt",F,n(e.label),1),t("dd",z,n(e.value),1),t("dd",E,n(e.hint),1)]))),128))])])]),_:1})],64))}});export{R 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.