PageSourceSearch

https://seedance2mini.ai/assets/credits-B2g_AQZd.js

js seedance2mini.ai collected 2026-10-05 12:36:11 UTC 5,240 bytes, 1 lines download raw bytes

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.