1import{t as g,ac as y,a9 as b,M,n as o,k as s,a3 as n,a7 as r,F as h,Z as _,Y as k,j as D,R as l,m as $,f as w}from"./BmN7H_9O.js";const x={class:"stats-cards"},B={class:"s-card"},L={class:"s-card-val"},N={class:"s-card"},R={class:"s-card-val"},S={class:"s-card"},V={class:"s-card-val"},C={class:"s-card"},E={class:"s-card-val"},F={key:0,class:"stats-table-wrap"},I={class:"stats-table"},U={class:"st-date"},j={class:"st-title"},A={class:"st-file"},H={class:"st-dur"},O={class:"st-lang"},Y={class:"st-opts"},Z={key:0,class:"st-opt-none"},q={key:1,class:"stats-empty"},z=g({__name:"stats",setup(G){y({title:"СÑаÑиÑÑика â VidDoc"});const d=b(),i=k([]),m=D(()=>{const a=i.value.reduce((t,e)=>t+(e.duration_minutes||0),0);return a<60?`${Math.round(a)} мин`:`${Math.floor(a/60)} Ñ ${Math.round(a%60)} мин`});function p(a){return new Date(a).toLocaleDateString("ru-RU",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})}function f(a){return a?a<1?`${Math.round(a*60)} Ñек`:`${Math.round(a)} мин`:"â"}function v(a){return{ru:"RU",en:"EN",auto:"ÐвÑо"}[a]||a}function u(a){const t=[];return a.has_speakers&&t.push("СпикеÑÑ"),a.has_formatted&&t.push("ФоÑмаÑ."),a.has_moments&&t.push("ÐоменÑÑ"),a.summary_preview&&t.push("ÐонÑпекÑ"),t}return M(async()=>{try{i.value=await $fetch("/api/transcriptions",{params:{limit:1e3}})}catch{}}),(a,t)=>(l(),o("div",null,[t[6]||(t[6]=s("div",{class:"cab-page-header"},[s("h1",null,"СÑаÑиÑÑика")],-1)),s("div",x,[s("div",B,[s("div",L,n(Math.round(r(d).usage.month)),1),t[0]||(t[0]=s("div",{class:"s-card-label"},"ÐинÑÑ Ð¸ÑполÑзовано",-1))]),s("div",N,[s("div",R,n(r(d).limits.monthlyMinutes===1/0?"â":r(d).limits.monthlyMinutes),1),t[1]||(t[1]=s("div",{class:"s-card-label"},"ÐÐ¸Ð¼Ð¸Ñ Ð² меÑÑÑ",-1))]),s("div",S,[s("div",V,n(r(i).length),1),t[2]||(t[2]=s("div",{class:"s-card-label"},"ТÑанÑкÑибаÑий",-1))]),s("div",C,[s("div",E,n(r(m)),1),t[3]||(t[3]=s("div",{class:"s-card-label"},"ÐбÑÐ°Ñ Ð´Ð»Ð¸ÑелÑноÑÑÑ",-1))])]),r(i).length?(l(),o("div",F,[s("table",I,[t[4]||(t[4]=s("thead",null,[s("tr",null,[s("th",null,"ÐаÑа"),s("th",null,"Ðазвание"),s("th",null,"Файл"),s("th",null,"ÐлиÑелÑноÑÑÑ"),s("th",null,"ЯзÑк"),s("th",null,"ÐпÑии")])],-1)),s("tbody",null,[(l(!0),o(h,null,_(r(i),e=>(l(),o("tr",{key:e.id},[s("td",U,n(p(e.created_at)),1),s("td",j,n(e.title),1),s("td",A,n(e.filename||"â"),1),s("td",H,n(f(e.duration_minutes)),1),s("td",O,n(v(e.language)),1),s("td",Y,[(l(!0),o(h,null,_(u(e),c=>(l(),o("span",{key:c,class:"st-opt-tag"},n(c),1))),128)),u(e).length?$("",!0):(l(),o("span",Z,"â"))])]))),128))])])])):(l(),o("div",q,[...t[5]||(t[5]=[s("i",{class:"fi fi-rr-chart-histogram"},null,-1),s("p",null,"ÐодÑÐ¾Ð±Ð½Ð°Ñ ÑÑаÑиÑÑика поÑвиÑÑÑ Ð¿Ð¾Ñле пеÑвÑÑ
ÑÑанÑкÑибаÑий",-1)])]))]))}}),K=w(z,[["__scopeId","data-v-b3c74193"]]);export{K 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.