PageSourceSearch

https://apemind.ai/_next/static/chunks/8764.0d32d6db69833888.js

js apemind.ai collected 2026-10-05 14:03:52 UTC 5,259 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8764],{11647:(e,t,r)=>{r.d(t,{E:()=>s});var n=r(95155),a=r(32467),c=r(83101);r(12115);var o=r(64269);let i=(0,c.F)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function s(e){let{className:t,variant:r,asChild:c=!1,...s}=e,l=c?a.DX:"span";return(0,n.jsx)(l,{"data-slot":"badge",className:(0,o.cn)(i({variant:r}),t),...s})}},18764:(e,t,r)=>{r.r(t),r.d(t,{QuotaRadialChart:()=>j});var n=r(95155),a=r(96877),c=r(19869),o=r(97334),i=r(88230),s=r(63296),l=r(11647),d=r(86948),u=r(12115),x=r(26991),h=r(23508),f=r(7620),m=r(64269);let p={light:"",dark:".dark"},g=u.createContext(null);function _(e){let{id:t,className:r,children:a,config:c,...o}=e,i=u.useId(),s="chart-".concat(t||i.replace(/:/g,""));return(0,n.jsx)(g.Provider,{value:{config:c},children:(0,n.jsxs)("div",{"data-slot":"chart","data-chart":s,className:(0,m.cn)("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",r),...o,children:[(0,n.jsx)(v,{id:s,config:c}),(0,n.jsx)(x.u,{children:a})]})})}let v=e=>{let{id:t,config:r}=e,a=Object.entries(r).filter(e=>{let[,t]=e;return t.theme||t.color});return a.length?(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(p).map(e=>{let[r,n]=e;return"\n".concat(n," [data-chart=").concat(t,"] {\n").concat(a.map(e=>{var t;let[n,a]=e,c=(null==(t=a.theme)?void 0:t[r])||a.color;return c?"  --color-".concat(n,": ").concat(c,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null};h.m,f.s;var b=r(18955);let j=e=>{let{data:t}=e,r=[{usage:t.current_usage,fill:"var(--color-quota)"}],x=0===t.quota_limit?0:100*t.current_usage/t.quota_limit,h=360*x/100,f=(0,b.c)("page_quota"),m=(0,u.useMemo)(()=>{switch(t.quota_type){case"max_bot_count":return{title:f("bot_count.title"),description:f("bot_count.description")};case"max_collection_count":return{title:f("collection_count.title"),description:f("collection_count.description")};case"max_document_count":return{title:f("document_count.title"),description:f("document_count.description")};case"max_document_count_per_collection":return{title:f("documents_per_collection.title"),description:f("documents_per_collection.description")};default:return{title:t.quota_type}}},[t.quota_type,f]);return(0,n.jsxs)(d.Zp,{className:"border-border/70 flex flex-col gap-0 overflow-hidden rounded-xl py-0",children:[(0,n.jsxs)(d.aR,{children:[(0,n.jsx)(d.ZB,{className:"font-serif text-xl font-normal",children:m.title}),(0,n.jsx)(d.BT,{className:"mb-2 h-10 overflow-hidden",children:m.description})]}),(0,n.jsx)(d.Wu,{className:"flex-1 pb-0",children:(0,n.jsx)(_,{config:{quota:{label:"Bot Count",color:"var(--primary)"}},className:"mx-auto aspect-square max-h-[250px]",children:(0,n.jsxs)(a.D,{data:r,startAngle:0,endAngle:h,innerRadius:80,outerRadius:110,children:[(0,n.jsx)(c.z,{gridType:"circle",radialLines:!1,stroke:"none",className:"first:fill-muted last:fill-background",polarRadius:[86,74]}),(0,n.jsx)(o.Z,{dataKey:"usage",background:!0,cornerRadius:10}
1),(0,n.jsx)(i.E,{tick:!1,tickLine:!1,axisLine:!1,children:(0,n.jsx)(s.J,{content:e=>{let{viewBox:t}=e;if(t&&"cx"in t&&"cy"in t)return(0,n.jsxs)("text",{x:t.cx,y:t.cy,textAnchor:"middle",dominantBaseline:"middle",children:[(0,n.jsx)("tspan",{x:t.cx,y:t.cy,className:"fill-foreground font-mono text-4xl",children:"".concat(x.toFixed(2),"%")}),(0,n.jsx)("tspan",{x:t.cx,y:(t.cy||0)+24,className:"fill-muted-foreground",children:f("usage")})]})}})})]})})}),(0,n.jsxs)(d.wL,{className:"border-border/70 flex flex-row items-center justify-center gap-2 border-t px-4 py-4 text-sm",children:[(0,n.jsxs)(l.E,{variant:"secondary",className:"font-mono",children:[f("limit"),": ",t.quota_limit]}),(0,n.jsxs)(l.E,{variant:"outline",className:"bg-muted font-mono",children:[f("usage"),": ",t.current_usage]})]})]})}}}]);

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.