import{d as p,u as v,i as x,c as l,j as c,f as b,a as t,F as f,l as y,q as m,o as i,t as r,n as g}from"./index-b7Iy0dz5.js";import{u as h}from"./data-mgWZh0lg.js";import{_ as k}from"./TopBar.vue_vue_type_script_setup_true_lang-CME3XXLt.js";import{_ as S}from"./BottomNav.vue_vue_type_script_setup_true_lang-CF62GDaf.js";const w={class:"pb-24"},j={class:"max-w-md mx-auto px-4 mt-4"},B={class:"grid grid-cols-2 gap-3"},V={class:"text-2xl"},A={class:"text-meta text-ink-subtle mt-1"},$=p({__name:"SummaryView",setup(C){const d=v(),u=h(),s=m(()=>u.summary),_=m(()=>{var o,n,a,e;return[{label:"Open orders",value:(o=s.value)==null?void 0:o.open_orders,icon:"🧾",tone:"text-brand-600"},{label:"My open jobs",value:(n=s.value)==null?void 0:n.my_open_jobs,icon:"🔧",tone:"text-status-info"},{label:"Ready for pickup",value:(a=s.value)==null?void 0:a.ready_pickup,icon:"✅",tone:"text-status-ok"},{label:"Awaiting parts",value:(e=s.value)==null?void 0:e.awaiting_parts,icon:"📦",tone:"text-status-warn"}]});return x(()=>{u.loadSummary()}),(o,n)=>{var a;return i(),l("div",w,[c(k,{title:"Summary",subtitle:((a=b(d).me)==null?void 0:a.name)??""},null,8,["subtitle"]),t("div",j,[t("div",B,[(i(!0),l(f,null,y(_.value,e=>(i(),l("div",{key:e.label,class:"card p-4"},[t("div",V,r(e.icon),1),t("div",{class:g(["text-display mt-2 leading-none",e.tone])},r(e.value??"—"),3),t("div",A,r(e.label),1)]))),128))])]),c(S)])}}});export{$ as default};
//# sourceMappingURL=SummaryView-wliiSxuc.js.map
