1import{b as X,r as l,bj as Y,j as x,H as b,S as K,h as M,i as U,k as $,l as _,I as C,B as I,O as ee,d as xe,C as se,p as te,v as ae,D as ne,A as le,E as ce,F as re}from"./index-CjJlg5IG.js";import{B as ie}from"./badge-CPZdGc_N.js";import{T as de,a as oe,b as T,c as d,d as ue,e as i}from"./table-BBfZrtaJ.js";import{P as he}from"./Pagination-DXQbbZ2d.js";import{S as me}from"./scroll-text-D6yptcfs.js";const o=c;(function(e,a){const t=c,r=e();for(;;)try{if(parseInt(t(432))/1+-parseInt(t(409))/2*(parseInt(t(442))/3)+-parseInt(t(479))/4*(parseInt(t(444))/5)+-parseInt(t(478))/6+-parseInt(t(375))/7*(parseInt(t(405))/8)+parseInt(t(448))/9+-parseInt(t(404))/10*(-parseInt(t(408))/11)===a)break;r.push(r.shift())}catch{r.push(r.shift())}})(y,932469);const fe=(function(){let e=!0;return function(a,t){const r=e?function(){const h=c;if(t){const g=t[h(370)](a,arguments);return t=null,g}}:function(){};return e=!1,r}})(),k=fe(void 0,function(){const e=c;return k.toString().search(e(378))[e(366)]()[e(426)](k)[e(371)]("(((.+)+)+)+$")});k();function c(e,a){const t=y();return c=function(r,h){return r=r-364,t[r]},c(e,a)}const je=[o(395),o(441),o(412),o(443),o(422),o(481),o(369),o(390),o(440)];function y(){const e=["secondary","start_date","text-xs font-medium","icon","text-xs font-mono break-all","æ»è®°å½","target","End date","space-y-6","Total","w-8 h-8 animate-spin text-accent","1650138BjzBec","3620StsyqT","text-xs font-medium text-muted-foreground","unauthorized","created_at","object","value","toLocaleString","toString","h-7 text-xs","text-xs max-w-[180px] truncate","idempotent_replay","apply","search","div"," â ","pagination","105lbnqSZ","applied","Result","(((.+)+)+)+$","Amount","All","total_items","ç»ææ¥æ","å 载失败","date","amount","entries","pre","client_request_id","Failed to load","in_progress","text-right text-xs font-mono","adjust","Start date","end_date","success","isArray","text-xs","total_pages","w-[150px]","text-sm text-muted-foreground","key","flex justify-center py-20","text-[10px]","75610GJErWD","63984sfQTXM","text-xs whitespace-nowrap","includes","3333KtSyvZ","1970JISOur","ghost","trim","account_inactive","èµ·å§æ¥æ","all","flex items-center justify-between","stringify","data","grid grid-cols-[180px_1fr] gap-2 py-1 border-b border-border/50","span","balance_after","text-right","invalid_input","text-sm text-muted-foreground -mt-3","æ¥å¿è¯¦æ
","action","constructor","Clear","user_email","caller_ip","space-y-1 text-sm","flex gap-1","567977UirkqR","å
é¨ä½é¢æ¥å¿","length","default","text-2xl font-bold","destructive","é®ç®± / user_id / request_id / IP","text-right text-xs font-mono whitespace-nowrap","internal_error","insufficient_balance","4662RBMTcK","user_not_found","3665ArRkMC","Log detail","flex flex-wrap items-end gap-3","map","5963013xoLTEe","request_id","balance_before","getInternalBalanceLogs","Dir","w-4 h-4","Before â After","result_code","Enter","User","text-xs font-mono","æ¥æºIP","p-0 overflow-x-auto","Search","font-bold text-foreground","direction","check","Time","whitespace-pre-wrap bg-muted/50 rounded p-2 text-[11px]"];return y=function(){return e},y()}function pe(e){const a=c;return e===a(395)?a(435):[a(441),a(412),a(390),a(369)][a(407)](e)?a(467):a(437)}function be(e){const a=c;return e?new Date(e)[a(365)]():"â"}function ye(){const e=c,{language:a}=X(),t=a==="zh",[r,h]=l.useState([]),[g,A]=l.useState(!0),[B,D]=l.useState(null),[m,E]=l.useState(e(414)),[f,L]=l.useState("all"),[N,P]=l.useState(""),[q,z]=l.useState(""),[j,R]=l.useState(""),[p,O]=l.useState(""),[w,u]=l.useState(1),[F,Z]=l.useState(1),[G,Q]=l.useState(0),[S,H]=l.useState(null),V=l.useCallback(async()=>{const s=c;try{A(!0);const n={page:w,page_size:50};m!=="all"&&(n[s(425)]=m),f!==s(414)&&(n.result_code=f),N&&(n.q=N),j&&(n[s(468)]=j),p&&(n[s(394)]=p);const v=await Y[s(451)](n);h(Array[s(396)](v[s(417)])?v[s(417)]:[]),Z(v[s(374)]?.[s(398)]||1),Q(v[s(374)]?.[s(381)]||0),D(null)}catch{D(s(t?383:389))}finally{A(!1)}},[w,m,f,N,j,p,t]);l.useEffect(()=>{V()},[V]);const J=()=>{P(q[c(411)]()),u(1)},W=()=>{const s=c;E(s(414)),L(s(414)),P(""),z(""),R(""),O(""),u(1)};return x.jsxs(e(372),{className:e(475),children:[x.jsxs(e(372),{className:e(415),children:[x.jsxs(e(372),{className:"flex items-center gap-3",children:[x.jsx(me,{className:"w-6 h-6 text-accent"}),x.jsx("h1",{className:e(436),children:t?e(433):"Internal Balance Logs"})]}),x.jsxs(e(372),{className:e(400),children:[e(t?472:476),": ",x.jsx(e(419),{className:e(462),children:G[e(365)]()})]})]}),x.jsx("p",{className:e(423),children:t?"æ°æ®éæå¡å¯¹ç¨æ·ä½é¢çæ¯æ¬¡æ¥è¯¢ä¸è°æ´ï¼å«å¤±è´¥ï¼é½è®°å½å¨æ¤ã":"Every check and adjust the dataset service performs on user balances (including failures) is recorded here."}),x.jsxs(e(372),{className:e(446),children:[x.jsxs(e(372),{children:[x.jsx(b,{className:e(397),children:t?"æä½":"Action"}),x.jsxs(K,{value:m,onValueChange:s=>{E(s),u(1)},children:[x.jsx(M,{className:"w-[130px]",children:x.jsx(U,{})}),x.jsxs($,{children:[x.jsx(_,{value:e(414),children:t?"å
¨é¨":e(380)}),x.jsx(_,{value:"check",children:e(464)}),x.jsx(_,{value:e(392),children:e(392)})]})]})]}),x.jsxs(e(372),{children:[x.jsx(b,{className:e(397),children:t?"ç»æ":e(377)}),x.jsxs(K,{value:f,onValueChange:s=>{L(s),u(1)},children:[x.jsx(M,{className:"w-[180px]",children:x.jsx(U,{})}),x.jsxs($,{children:[x.jsx(_,{value:e(414),children:t?"å
¨é¨":"All"}),je[e(447)](s=>x.jsx(_,{value:s,children:s},s))]})]})]}),x.jsxs("div",{children:[x.jsx(b,{className:e(397),children:t?"æç´¢":e(461)}),x.jsxs(e(372),{className:e(431),children:[x.jsx(C,{value:q,onChange:s=>
1z(s[e(473)].value),onKeyDown:s=>s[e(401)]===e(456)&&J(),placeholder:t?e(438):"email / user_id / request_id / IP",className:"w-[240px]"}),x.jsx(I,{size:e(470),variant:"outline",onClick:J,children:x.jsx(ee,{className:e(453)})})]})]}),x.jsxs("div",{children:[x.jsx(b,{className:"text-xs",children:e(t?413:393)}),x.jsx(C,{type:e(384),value:j,onChange:s=>{const n=c;R(s.target[n(364)]),u(1)},className:e(399)})]}),x.jsxs(e(372),{children:[x.jsx(b,{className:e(397),children:e(t?382:474)}),x.jsx(C,{type:e(384),value:p,onChange:s=>{const n=c;O(s[n(473)][n(364)]),u(1)},className:e(399)})]}),(m!==e(414)||f!==e(414)||N||j||p)&&x.jsx(I,{variant:"outline",size:"sm",onClick:W,children:t?"æ¸
é¤":e(427)})]}),g?x.jsx(e(372),{className:e(402),children:x.jsx(xe,{className:e(477)})}):B?x.jsxs(e(372),{className:"text-center py-20",children:[x.jsx(se,{className:"w-12 h-12 text-destructive mx-auto mb-4"}),x.jsx("p",{children:B})]}):x.jsx(te,{children:x.jsx(ae,{className:e(460),children:x.jsxs(de,{children:[x.jsx(oe,{children:x.jsxs(T,{children:[x.jsx(d,{children:t?"æ¶é´":e(465)}),x.jsx(d,{children:t?"æä½":"Action"}),x.jsx(d,{children:t?"ç»æ":e(377)}),x.jsx(d,{children:"HTTP"}),x.jsx(d,{children:t?"ç¨æ·":e(457)}),x.jsx(d,{children:t?"æ¹å":e(452)}),x.jsx(d,{className:e(421),children:t?"éé¢":e(379)}),x.jsx(d,{className:e(421),children:t?"åå":e(454)}),x.jsx(d,{children:t?e(459):"Caller IP"}),x.jsx(d,{children:e(449)}),x.jsx(d,{})]})}),x.jsxs(ue,{children:[r.map(s=>x.jsxs(T,{children:[x.jsx(i,{className:e(406),children:be(s[e(482)])}),x.jsx(i,{className:e(469),children:s.action}),x.jsxs(i,{children:[x.jsx(ie,{variant:pe(s.result_code),className:e(403),children:s[e(455)]}),s[e(376)]&&x.jsx("span",{className:"ml-1 text-[10px] text-success",children:"â"})]}),x.jsx(i,{className:e(397),children:s.http_status}),x.jsx(i,{className:e(368),title:s[e(428)]||s.user_id||"",children:s[e(428)]||s.user_id||"â"}),x.jsx(i,{className:e(397),children:s[e(463)]||"â"}),x.jsx(i,{className:e(391),children:s[e(385)]?"$"+s[e(385)]:"â"}),x.jsx(i,{className:e(439),children:s[e(450)]!=null||s[e(420)]!=null?(s[e(450)]??"â")+e(373)+(s[e(420)]??"â"):"â"}),x.jsx(i,{className:e(458),children:s[e(429)]||"â"}),x.jsx(i,{className:"text-xs max-w-[140px] truncate",title:s[e(388)]||"",children:s[e(388)]||"â"}),x.jsx(i,{children:x.jsx(I,{size:"sm",variant:e(410),className:e(367),onClick:()=>H(s),children:t?"详æ
":"Details"})})]},s.id)),r[e(434)]===0&&x.jsx(T,{children:x.jsx(i,{colSpan:11,className:"text-center py-8 text-muted-foreground",children:t?"ææ æ¥å¿":"No logs yet"})})]})]})})}),x.jsx(he,{page:w,totalPages:F,onPageChange:u}),x.jsx(ne,{open:!!S,onOpenChange:s=>!s&&H(null),children:x.jsxs(le,{className:"max-w-2xl max-h-[85vh] overflow-y-auto",children:[x.jsx(ce,{children:x.jsxs(re,{children:[e(t?424:445)," â #",S?.id]})}),S&&x.jsx(e(372),{className:e(430),children:Object[e(386)](S)[e(447)](([s,n])=>x.jsxs(e(372),{className:e(418),children:[x.jsx(e(419),{className:e(480),children:s}),x.jsx(e(419),{className:e(471),children:n===null||n===""?"â":typeof n===e(483)?x.jsx(e(387),{className:e(466),children:JSON[e(416)](n,null,2)}):String(n)})]},s))})]})})]})}export{ye 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.