1import{g as a,r as g,br as u,bz as p,by as f,bD as b,j as r,a5 as d,a7 as c,c as h,aL as y}from"./main-CnR35rHU.js";import{D as m}from"./dashboard-header-BzXp9TDL.js";import{d as x}from"./dashboard_generations_balance-BA6pAgX9.js";import"./useRender-yQSWRmeU.js";import"./sidebar-CqzPW0J1.js";const j=()=>"No transactions yet",k=()=>"Aucune transaction",N=()=>"Noch keine Transaktionen",v=()=>"åå¼ã¯ã¾ã ããã¾ãã",C=()=>"Sin transacciones",B=()=>"Nessuna transazione",P=()=>"Ei tapahtumia",z=()=>"Ðоки Ð½ÐµÐ¼Ð°Ñ Ð¾Ð¿ÐµÑаÑÑй",D=()=>"ê±°ë ë´ìì´ ììµëë¤",E=((s={},t={})=>{const e=t.locale??a();return e==="en"?j():e==="fr"?k():e==="de"?N():e==="ja"?v():e==="es"?C():e==="it"?B():e==="fi"?P():e==="uk"?z():D()}),G=()=>"Credit History",S=()=>"Historique des crédits",q=()=>"Credit-Verlauf",I=()=>"ã¯ã¬ã¸ããå±¥æ´",K=()=>"Historial de créditos",L=()=>"Cronologia crediti",A=()=>"Krediittihistoria",H=()=>"ÐÑÑоÑÑÑ ÐºÑедиÑÑв",R=()=>"í¬ë ë§ ë´ì",V=((s={},t={})=>{const e=t.locale??a();return e==="en"?G():e==="fr"?S():e==="de"?q():e==="ja"?I():e==="es"?K():e==="it"?L():e==="fi"?A():e==="uk"?H():R()}),T=()=>"Video generation",w=()=>"Génération vidéo",F=()=>"Videoerstellung",M=()=>"åç»çæ",O=()=>"Generación de video",Q=()=>"Generazione video",Z=()=>"Videon luonti",J=()=>"ÐенеÑаÑÑÑ Ð²Ñдео",U=()=>"ìì ìì±",W=((s={},t={})=>{const e=t.locale??a();return e==="en"?T():e==="fr"?w():e==="de"?F():e==="ja"?M():e==="es"?O():e==="it"?Q():e==="fi"?Z():e==="uk"?J():U()}),X=()=>"Image generation",Y=()=>"Génération d'image",$=()=>"Bilderstellung",ee=()=>"ç»åçæ",re=()=>"Generación de imagen",te=()=>"Generazione immagine",se=()=>"Kuvan luonti",ne=()=>"ÐенеÑаÑÑÑ Ð·Ð¾Ð±ÑаженнÑ",ae=()=>"ì´ë¯¸ì§ ìì±",oe=((s={},t={})=>{const e=t.locale??a();return e==="en"?X():e==="fr"?Y():e==="de"?$():e==="ja"?ee():e==="es"?re():e==="it"?te():e==="fi"?se():e==="uk"?ne():ae()}),ie=()=>"Bonus",_e=()=>"Bonus",ue=()=>"Bonus",de=()=>"ãã¼ãã¹",ce=()=>"Bono",he=()=>"Bonus",ye=()=>"Bonus",le=()=>"ÐонÑÑ",ge=()=>"ë³´ëì¤",pe=((s={},t={})=>{const e=t.locale??a();return e==="en"?ie():e==="fr"?_e():e==="de"?ue():e==="ja"?de():e==="es"?ce():e==="it"?he():e==="fi"?ye():e==="uk"?le():ge()}),fe=()=>"Purchase",be=()=>"Achat",me=()=>"Kauf",xe=()=>"è³¼å
¥",je=()=>"Compra",ke=()=>"Acquisto",Ne=()=>"Osto",ve=()=>"ÐокÑпка",Ce=()=>"구매",Be=((s={},t={})=>{const e=t.locale??a();return e==="en"?fe():e==="fr"?be():e==="de"?me():e==="ja"?xe():e==="es"?je():e==="it"?ke():e==="fi"?Ne():e==="uk"?ve():Ce()}),Pe=()=>"Refund",ze=()=>"Remboursement",De=()=>"Erstattung",Ee=()=>"è¿é",Ge=()=>"Reembolso",Se=()=>"Rimborso",qe=()=>"Hyvitys",Ie=()=>"ÐовеÑненнÑ",Ke=()=>"íë¶",Le=((s={},t={})=>{const e=t.locale??a();return e==="en"?Pe():e==="fr"?ze():e==="de"?De():e==="ja"?Ee():e==="es"?Ge():e==="it"?Se():e==="fi"?qe():e==="uk"?Ie():Ke()}),Ae=()=>"Trial",He=()=>"Essai",Re=()=>"Test",Ve=()=>"ã試ã",Te=()=>"Prueba",we=()=>"Prova",Fe=()=>"Kokeilu",Me=()=>"ÐÑобнÑ",Oe=()=>"ì²´í",Qe=((s={},t={})=>{const e=t.locale??a();return e==="en"?Ae():e==="fr"?He():e==="de"?Re():e==="ja"?Ve():e==="es"?Te():e==="it"?we():e==="fi"?Fe():e==="uk"?Me():Oe()}),l=20;function Ye(){const[s,t]=g.useState(0),e={consume:W(),consumeImage:oe(),refund:Le(),purchase:Be(),grant:pe(),trial:Qe()},{data:_}=u({queryKey:["video","balance"],queryFn:()=>p()}),{data:o}=u({queryKey:["video","ledger",s],queryFn:()=>b({data:{pageIndex:s,pageSize:l}}),placeholderData:f}),i=o?Math.max(1,Math.ceil(o.total/l)):1;return r.jsxs(r.Fragment,{children:[r.jsx(m,{breadcrumbs:[{label:V(),isCurrentPage:!0}]}),r.jsxs("div",{className:"flex flex-1 flex-col gap-6 px-4 py-4 lg:px-6 lg:py-6",children:[r.jsx(d,{className:"max-w-xs",children:r.jsxs(c,{className:"pt-6",children:[r.jsx("p",{className:"text-sm text-muted-foreground",children:x()}),r.jsx("p",{className:"text-3xl font-bold tabular-nums",children:_?_.balance.toLocaleString():"â"})]})}),r.jsx(d,{children:r.jsx(c,{className:"p-0",children:!o||o.items.length===0?r.jsx("p",{className:"px-6 py-10 text-center text-sm text-muted-foreground",children:E()}):r.jsx("ul",{className:"divide-y",children:o.items.map(n=>r.jsxs("li",{className:"flex items-center justify-between px-4 py-3 text-sm",children:[r.jsxs("div",{children:[r.jsx("p",{children:n.type==="consume"&&n.category==="image"?e.consumeImage:e[n.type]??n.type}),r.jsx("p",{className:"text-xs text-muted-foreground",children:new Date(n.createdAt).toLocaleStr
1ing()})]}),r.jsxs("span",{className:n.amount>=0?"tabular-nums font-medium text-green-600 dark:text-green-400":"tabular-nums font-medium",children:[n.amount>=0?"+":"",n.amount.toLocaleString()]})]},n.id))})})}),i>1&&r.jsxs("div",{className:"flex items-center justify-end gap-2",children:[r.jsx("button",{type:"button",disabled:s===0,onClick:()=>t(n=>n-1),className:h(y({size:"sm",variant:"outline"}),"disabled:opacity-50"),children:"â"}),r.jsxs("span",{className:"text-sm tabular-nums",children:[s+1," / ",i]}),r.jsx("button",{type:"button",disabled:s+1>=i,onClick:()=>t(n=>n+1),className:h(y({size:"sm",variant:"outline"}),"disabled:opacity-50"),children:"â"})]})]})]})}export{Ye as component};
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.