PageSourceSearch

https://idnwtf-newapi.hf.space/static/js/async/6481.19e1abdaf9.js

js idnwtf-newapi.hf.space collected 2026-10-03 16:58:10 UTC 3,911 bytes, 2 lines download raw bytes

1/*! LICENSE: 6481.19e1abdaf9.js.LICENSE.txt */
2"use strict";(self.rspackChunknewapi_web=self.rspackChunknewapi_web||[]).push([[6481],{78712(e,t,a){a.d(t,{ConsumptionDistributionChart:()=>b});var s=a(79015),r=a(59399),l=a(23027);let d=(0,a(40946).A)("chart-area",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 11.207a.5.5 0 0 1 .146-.353l2-2a.5.5 0 0 1 .708 0l3.292 3.292a.5.5 0 0 0 .708 0l4.292-4.292a.5.5 0 0 1 .854.353V16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z",key:"q0gr47"}]]);var n=a(16745),i=a(65311),o=a(89077),u=a(98847),h=a(80825),c=a(66197),p=a(35756),m=a(29427),f=a(59740),x=a(76380);let y=null,g={bar:l.A,area:d};function b(e){let{t}=(0,o.Bd)(),{resolvedTheme:l}=(0,c.D)(),{customization:d}=(0,h.A)(),b=(0,f.P)("--radius-md",`${d.preset}:${d.radius}`),[v,k]=(0,i.useState)(e.defaultChartType??"bar"),[w,j]=(0,i.useState)(!1),C=(0,i.useRef)(null),M=e.timeGranularity??"hour";(0,i.useEffect)(()=>{e.defaultChartType&&k(e.defaultChartType)},[e.defaultChartType]),(0,i.useEffect)(()=>{(async()=>{j(!1),y||(y=Promise.resolve().then(a.bind(a,89059)).then(e=>e.ThemeManager));let e=await y;C.current=e,e.setCurrentTheme("dark"===l?"dark":"light"),j(!0)})()},[l]);let N=(0,i.useMemo)(()=>(0,m.Mg)(e.loading?[]:e.data,M,t,b),[e.data,e.loading,M,t,b]),A="bar"===v?N.spec_line:N.spec_area,T="string"==typeof A?.type?A.type:v,E=[v,T,e.loading?"loading":"ready",e.data.length,l,d.preset].join("-");return(0,s.jsxs)("div",{className:"overflow-hidden rounded-lg border",children:[(0,s.jsxs)("div",{className:"flex w-full flex-col gap-1.5 border-b px-3 py-2 sm:gap-3 sm:px-5 sm:py-3 lg:flex-row lg:items-center lg:justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(u.f,{tone:"success",size:"sm",children:(0,s.jsx)(n.A,{})}),(0,s.jsx)("div",{className:"text-sm font-semibold",children:t("Quota Distribution")}),(0,s.jsxs)("span",{className:"text-muted-foreground text-xs",children:[t("Total:")," ",N.totalQuotaDisplay]})]}),(0,s.jsx)("div",{className:"bg-muted/60 inline-flex h-7 w-full overflow-x-auto rounded-lg border p-0.5 sm:h-8 sm:w-auto",children:p.Rc.map(e=>{let a=g[e.value];return(0,s.jsxs)("button",{type:"button",onClick:()=>k(e.value),className:`inline-flex shrink-0 items-center gap-1.5 rounded-md px-3 text-xs font-medium transition-colors ${v===e.value?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:[(0,s.jsx)(a,{className:"size-3.5"}),t(e.labelKey)]},e.value)})})]}),(0,s.jsx)("div",{className:"h-[300px] p-1.5 sm:h-96 sm:p-2",children:w&&A&&(0,s.jsx)(r.F,{spec:{...A,theme:"dark"===l?"dark":"light",background:"transparent"},option:x.X},E)})]})}},59740(e,t,a){var s=a(65311);function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"--radius-md",t=arguments.length>1?arguments[1]:void 0,[a,r]=(0,s.useState)();return(0,s.useEffect)(()=>{r(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"--radius-md";if("u"<typeof document)return;let t=document.createElement("div");t.style.borderRadius=`var(${e})`,t.style.pointerEvents="none",t.style.position="absolute",t.style.visibility="hidden",document.documentElement.appendChild(t);let a=getComputedStyle(t).borderTopLeftRadius;t.remove();let s=Number.parseFloat(a);return Number.isFinite(s)?s:void 0}(e))},[e,t]),a}a.d(t,{P:()=>r})},76380(e,t,a){a.d(t,{},{X:{mode:"desktop-browser"}})},23027(e,t,a){let s=(0,a(40946).A)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);a.d(t,{},{A:s})},16745(e,t,a){let s=(0,a(40946).A)("wallet-cards",[["path",{d:"M3 11h3.75a2 2 0 0 1 1.6.8l.45.6a4 4 0 0 0 6.4 0l.45-.6a2 2 0 0 1 1.6-.8H21",key:"1vwh6y"}],["path",{d:"M3 7h18",key:"1uiuf2"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]);a.d(t,{},{A:s})}}]);

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.