1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AppMoney-CA1dMKkF.js","assets/index-MSa8avpS.js","assets/index-DY-sP-Wx.css","assets/useMoney-Co_2sL_v.js","assets/AppNumber-HD76xk4d.js"])))=>i.map(i=>d[i]); 2import{u as A,ae as $,h as u,o as e,g as r,H as d,$ as E,a as y,c as i,b as n,f as m,t as g,L as V,l as D,m as I,I as c,J as p}from"./index-MSa8avpS.js";const C={class:"counter__value"},L={class:"counter__text"},q={__name:"AppCounter",props:{metrics:{type:Array,required:!0},query:{type:Object,default:()=>({})},stats:Object},setup(o){const v=c(()=>p(()=>import("./AppMoney-CA1dMKkF.js"),__vite__mapDeps([0,1,2,3]))),l=c(()=>p(()=>import("./AppNumber-HD76xk4d.js"),__vite__mapDeps([4,1,2]))),b=c(()=>p(()=>import("./index-MSa8avpS.js").then(a=>a.bV),__vite__mapDeps([1,2]))),{translate:_}=A(),{getStatistics:k}=$(),{statistics:f}=k({query:o.query,dependencies:[o.metrics.length,!o.stats]}),s=I(()=>o.stats||f.value);return(a,O)=>u(a.$slots,"default",{metrics:o.metrics,statistics:s.value},()=>[o.metrics.length&&s.value?(e(),r("ul",V({key:0,class:"counter__ul"},a.$attrs),[(e(!0),r(d,null,E(o.metrics,(t,h)=>(e(),r("li",{class:"counter__li",key:`metric_${h}`},[u(a.$slots,"header",{metric:t}),y("strong",C,[u(a.$slots,t.type||"value",{metric:t,statistic:s.value[t.type]},()=>[t.type==="date"&&t.date?(e(),i(n(b),{key:0,timestamp:t.date,filter:"differenceInCalendarDays"},null,8,["timestamp"])):t.type==="amount_collected"?(e(),i(n(v),{key:1,amount:s.value[t.type]},null,8,["amount"])):t.type==="sporting_statistics"?u(a.$slots,t.sporting_statistics,{metric:t,statistics:s.value.sporting_statistics,statistic:s.value.sporting_statistics[t.sporting_statistics]},()=>[t.sporting_statistics==="total_distance"?(e(),i(n(l),{key:0,number:s.value.sporting_statistics?.to_km},null,8,["number"])):t.sporting_statistics==="total_time"?(e(),i(n(l),{key:1,number:s.value.sporting_statistics?.to_hours},null,8,["number"])):(e(),i(n(l),{key:2,number:s.value.sporting_statistics[t.sporting_statistics]},null,8,["number"]))],void 0,2):t.type==="custom"?(e(),r(d,{key:3},[m(g(n(_)(t.value)||0),1)],64)):(e(),i(n(l),{key:4,number:s.value[t.type]},null,8,["number"]))])]),y("p",L,[u(a.$slots,"text",{metric:t},()=>[m(g(n(_)(t.text)),1)])])]))),128))],16)):D("",!0)])}};export{q 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.