PageSourceSearch

https://beatbandit.ai/assets/CostTrends-CcltCdsX.js

js beatbandit.ai collected 2026-10-05 11:52:45 UTC 2,641 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CostTrendCharts-C352Hw3-.js","assets/index-CzOd9Km7.js","assets/index-DXCtSQxg.css","assets/Grid-NNIo4zT1.js","assets/requirePropFactory-CXHKSpYe.js","assets/Card-BXrAfFWw.js","assets/Paper-2iw6XA5a.js","assets/CardContent-YIZ_mORG.js","assets/with-selector-Da0nMLud.js","assets/index-Cj_jwP9h.js","assets/format-CBtVrLKl.js","assets/parseISO-B-Z5rAbP.js"])))=>i.map(i=>d[i]);
2import{r as i,j as e,B as a,T as h,R as u,z as x,_ as y}from"./index-CzOd9Km7.js";import{u as f}from"./useQuery-BcbK_yvX.js";import{a as j}from"./axiosConfig-BS0LIV0L.js";import"./projectSchemas-h1QnwtOV.js";import"./screenplaySchemas-D4JI8Qiv.js";import"./supabaseAuthClient-D4COccm1.js";import{p as C}from"./chunkPrefetch-Db-BfmQX.js";import{F as v,I as _,S as g}from"./TextField-BLDfXARA.js";import{M as r}from"./MenuItem-CKC7Jjka.js";import{A as o}from"./Alert-BXc9IPcV.js";import{C as d}from"./CircularProgress-CFKeHsf1.js";import"./useControlled-C1WEhlQX.js";import"./Menu-BAMQbaXI.js";import"./ownerWindow-D5LHhVun.js";import"./Paper-2iw6XA5a.js";import"./dividerClasses-CE6pxdyz.js";import"./IconButton-DX7NfjoN.js";const l=()=>y(()=>import("./CostTrendCharts-C352Hw3-.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])).then(s=>({default:s.CostTrendCharts})),T=x(l,"AdminCostTrendCharts");function K(){const[s,c]=i.useState(30);i.useEffect(()=>{C(l)},[]);const{data:t,isLoading:p,error:m}=f({queryKey:["cost-trends",s],queryFn:async()=>(await j.get("/admin/analytics/cost-trends",{params:{days:s}})).data,enabled:!0});return e.jsxs(a,{children:[e.jsxs(a,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3,children:[e.jsx(h,{variant:"h5",children:"Cost & Usage Trends"}),e.jsxs(v,{sx:{minWidth:120},children:[e.jsx(_,{children:"Period"}),e.jsxs(g,{value:s,onChange:n=>c(n.target.value),label:"Period",size:"small",children:[e.jsx(r,{value:7,children:"Last 7 days"}),e.jsx(r,{value:14,children:"Last 14 days"}),e.jsx(r,{value:30,children:"Last 30 days"}),e.jsx(r,{value:60,children:"Last 60 days"}),e.jsx(r,{value:90,children:"Last 90 days"})]})]})]}),m&&e.jsx(o,{severity:"error",sx:{mb:3},children:"Failed to load cost trends"}),p&&e.jsx(a,{display:"flex",justifyContent:"center",p:4,children:e.jsx(d,{})}),t&&t.daily_trends.length>0&&e.jsx(u.Suspense,{fallback:e.jsx(a,{display:"flex",justifyContent:"center",p:4,children:e.jsx(d,{})}),children:e.jsx(T,{dailyTrends:t.daily_trends})}),t&&t.daily_trends.length===0&&e.jsx(o,{severity:"info",children:"No data available for the selected period."})]})}export{K as default};
3//# sourceMappingURL=CostTrends-CcltCdsX.js.map

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.