1import{d as h,r as l,D as w,o as g,k as y,l as e,K as s,x as k,n as x,m,s as C,bV as p,z as P}from"./app-rHguuL5e.js";import{C as D,A as E,p as N,b as V,P as b}from"./index-XKq9boRG.js";const j={key:0,class:"w-full flex flex-col md:flex-row"},A={class:"w-full md:w-4/12 pb-4 md:pb-0 md:pr-4"},B={class:"animate__animated animate__slideInUp animate__faster w-full h-40 bg-primary rounded-md shadow-sm p-5 flex flex-row"},I={class:"flex flex-col w-full justify-between"},U={class:"flex flex-col"},M=e("span",{class:"text-white font-semibold text-md"},"Diário mais recente",-1),O={class:"text-white/80 font-bold text-4xl mt-1"},S={class:"flex flex-col"},T={class:"text-white/80 text-xs font-medium"},z={class:"font-bold text-white"},K={class:"text-white/70 text-xs font-regular"},R={class:"w-full md:w-4/12 pb-4 md:pb-0 md:pr-4"},q={class:"animate__animated animate__slideInUp animate__faster w-full h-40 bg-white rounded-md shadow-sm p-5 flex flex-row"},F={class:"flex flex-col w-7/12 justify-between"},G={class:"flex flex-col"},H=e("span",{class:"text-black/80 font-semibold text-md"},"Publicações",-1),J={class:"text-green-400 font-bold text-4xl mt-1"},L=p('<div class="flex flex-col"><div class="flex flex-row items-center gap-2"><div class="w-3 h-3 bg-green-400 rounded-full">  </div><span class="text-black/70 text-xs font-medium">Publicações do dia</span></div><div class="flex flex-row items-center gap-2 mt-1"><div class="w-3 h-3 bg-green-600 rounded-full">  </div><span class="text-black/70 text-xs font-medium">Publicações ontem</span></div></div>',1),Q={class:"w-5/12 flex flex-col items-center justify-center"},W={class:"w-full md:w-4/12 pb-4 md:pb-0"},X={class:"animate__animated animate__slideInUp animate__faster w-full h-40 bg-white rounded-md shadow-sm p-5 flex flex-row"},Y={class:"flex flex-col w-7/12 justify-between"},Z={class:"flex flex-col"},$=e("span",{class:"text-black/80 font-semibold text-md"},"Edições",-1),ee={class:"text-orange-400 font-bold text-4xl mt-1"},te=p('<div class="flex flex-col"><div class="flex flex-row items-center gap-2"><div class="w-3 h-3 bg-orange-400 rounded-full">  </div><span class="text-black/70 text-xs font-medium">Este mês</span></div><div class="flex flex-row items-center gap-2 mt-1"><div class="w-3 h-3 bg-orange-600 rounded-full">  </div><span class="text-black/70 text-xs font-medium">Mês anterior</span></div></div>',1),se={class:"w-5/12 flex flex-col items-center justify-center"},de=h({__name:"Cards",setup(ae){D.register(E,N,V);const t=l(),d=l({labels:[],datasets:[{label:"Publicações",backgroundColor:["#4ade80","#16a34a"],borderColor:"rgba(255, 255, 255, 0.4)",data:[1,1]}]}),i=l({labels:[],datasets:[{label:"Edições",backgroundColor:["#fb923c","#ea580c"],borderColor:"rgba(255, 255, 255, 0.4)",data:[1,1]}]}),n=l({responsive:!0,maintainAspectRatio:!1}),v=async()=>{var o;try{const a=await P.get("/charts");a.status===200&&(t.value=a.data.data,t.value&&(d.value={labels:[],datasets:[{label:"Publicações",backgroundColor:["#4ade80","#16a34a"],borderColor:"rgba(255, 255, 255, 0.4)",data:[+t.value.publications_today,+((o=t.value)==null?void 0:o.publications_yesterday)]}]},i.value={labels:[],datasets:[{label:"Edições",backgroundColor:["#fb923c","#ea580c"],borderColor:"rgba(255, 255, 255, 0.4)",data:[t.value.editions_month_current,t.value.editions_month_last]}]}))}catch{}};return w(()=>{v()}),(o,a)=>{var c,r,_,f,u;return t.value?(g(),y("div",j,[e("div",A,[e("div",B,[e("div",I,[e("div",U,[M,e("span",O,"Nº "+s((c=t.value)==null?void 0:c.diary_number),1)]),e("div",S,[e("span",T,[e("span",z,s((r=t.value)==null?void 0:r.total_publications),1),k(" publicações incluÃdas")]),e("span",K,s((_=t.value)==null?void 0:_.created_at),1)])])])]),e("div",R,[e("div",q,[e("div",F,[e("div",G,[H,e("span",J,s((f=t.value)==null?void 0:f.publications_today),1)]),L]),e("div",Q,[x(m(b),{data:d.value,options:n.value},null,8,["data","options"])])])]),e("div",W,[e("div",X,[e("div",Y,[e("div",Z,[$,e("span",ee,s((u=t.value)==null?void 0:u.editions_month_current),1)]),te]),e("div",se,[x(m(b),{data:i.value,options:n.value},null,8,["data","options"])])])])])):C("",!0)}}});
1export{de 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.