PageSourceSearch

https://xyc.ai/static/js/async/5982.728bcc7673.js

js xyc.ai collected 2026-10-05 14:39:50 UTC 3,306 bytes, 1 lines download raw bytes

1"use strict";(self.rspackChunknewapi_web=self.rspackChunknewapi_web||[]).push([[5982],{69757(e,s,a){a.d(s,{UserCharts:()=>k});var t=a(72361),l=a(68413),r=a(53540),n=a(58246),i=a(6702),u=a(61631),d=a(74400),c=a(77935),m=a(50665),o=a(4288),p=a(18434),h=a(34151),x=a(63578),j=a(96239),g=a(10400);let f=null,v=[{value:"rank",labelKey:"User Consumption Ranking",specKey:"spec_user_rank"},{value:"trend",labelKey:"User Consumption Trend",specKey:"spec_user_trend"}],b=[5,10,20,50];function k(){let{t:e}=(0,i.Bd)(),{resolvedTheme:s}=(0,o.D)(),{customization:k}=(0,m.A)(),[N,y]=(0,l.useState)(!1),w=(0,l.useRef)(null),[C,T]=(0,l.useState)(()=>(0,g.so)()),[_,S]=(0,l.useState)(()=>(0,g.JL)(C)),[U,K]=(0,l.useState)(10),[M,X]=(0,l.useState)(()=>{let e=(0,g.JL)(C),{start:s,end:a}=(0,d.fj)(e);return{start_timestamp:Math.floor(s.getTime()/1e3),end_timestamp:Math.floor(a.getTime()/1e3)}}),$=(0,l.useCallback)(e=>{S(e);let{start:s,end:a}=(0,d.fj)(e);X({start_timestamp:Math.floor(s.getTime()/1e3),end_timestamp:Math.floor(a.getTime()/1e3)})},[]),q=(0,l.useCallback)(e=>{T(e),(0,g.U5)(e);let s=(0,g.JL)(e);s!==_&&$(s)},[_,$]);(0,l.useEffect)(()=>{(async()=>{y(!1),f||(f=Promise.resolve().then(a.bind(a,59668)).then(e=>e.ThemeManager));let e=await f;w.current=e,e.setCurrentTheme("dark"===s?"dark":"light"),y(!0)})()},[s]);let{data:z,isLoading:J}=(0,r.I)({queryKey:["dashboard","user-quota",M],queryFn:()=>(0,x.x9)(M),select:e=>e.success?e.data:[],staleTime:6e4}),L=(0,l.useMemo)(()=>(0,g.$I)(J?[]:z??[],C,e,U,k.preset),[z,J,C,e,U,k.preset,k.radius]);return(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 overflow-x-auto pb-1 sm:gap-2",children:[(0,t.jsx)(h.tU,{value:String(_),onValueChange:e=>$(Number(e)),className:"shrink-0",children:(0,t.jsx)(h.j7,{children:j.jX.map(s=>(0,t.jsx)(h.Xi,{value:String(s.days),className:"px-2.5 text-xs",children:e(s.label)},s.days))})}),(0,t.jsx)(h.tU,{value:C,onValueChange:e=>q(e),className:"shrink-0",children:(0,t.jsx)(h.j7,{children:j.W1.map(s=>(0,t.jsx)(h.Xi,{value:s.value,className:"px-2.5 text-xs",children:e(s.label)},s.value))})}),(0,t.jsx)(h.tU,{value:String(U),onValueChange:e=>K(Number(e)),className:"shrink-0",children:(0,t.jsxs)(h.j7,{children:[(0,t.jsx)("span",{className:"text-muted-foreground px-2 text-xs font-medium whitespace-nowrap",children:e("Top Users")}),b.map(s=>(0,t.jsx)(h.Xi,{value:String(s),className:"px-2.5 text-xs",children:e("Top {{count}}",{count:s})},s))]})}),J&&(0,t.jsx)(u.krw,{className:"text-muted-foreground size-4 animate-spin"})]}),(0,t.jsx)("div",{className:"grid gap-3",children:v.map(a=>{let l=L[a.specKey];return(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border",children:[(0,t.jsxs)("div",{className:"flex w-full items-center gap-2 border-b px-3 py-2 sm:px-5 sm:py-3",children:[(0,t.jsx)(u.zWC,{className:"text-muted-foreground/60 size-4"}),(0,t.jsx)("div",{className:"text-sm font-semibold",children:e(a.labelKey)})]}),(0,t.jsx)("div",{className:"h-[300px] p-1.5 sm:h-96 sm:p-2",children:J?(0,t.jsx)(p.E,{className:"h-full w-full"}):N&&l&&(0,t.jsx)(n.F,{spec:{...l,theme:"dark"===s?"dark":"light",background:"transparent"},option:c.X},`user-${a.value}-${U}-${s}-${k.preset}`)})]},a.value)})})]})}},77935(e,s,a){a.d(s,{X:()=>t});let t={mode:"desktop-browser"}}}]);

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.