1import{d as m,j as e,b as o,W as x,U as h,m as n,e as u}from"./index-BZQeaitG.js";import{u as p}from"./auth-store-eDfloiqv.js";import{T as g,R as b,A as j,C as y,X as f,Y as v,a as w,b as l}from"./AreaChart-BJdf7wHd.js";import{C as N}from"./clock-HweE_IzI.js";import"./middleware-D4059-9F.js";/** 2 * @license lucide-react v0.487.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const A=[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]],k=m("arrow-down-right",A),T=[{date:"Feb 5",volume:120,transactions:8},{date:"Feb 6",volume:350,transactions:15},{date:"Feb 7",volume:280,transactions:12},{date:"Feb 8",volume:520,transactions:24},{date:"Feb 9",volume:410,transactions:18},{date:"Feb 10",volume:680,transactions:32},{date:"Feb 11",volume:590,transactions:28}],C=[{id:"1",user:"user_a8f3",amount:"50.00",status:"confirmed",time:"2 min ago"},{id:"2",user:"user_b2c1",amount:"120.00",status:"confirmed",time:"15 min ago"},{id:"3",user:"user_d4e5",amount:"25.50",status:"pending",time:"32 min ago"},{id:"4",user:"user_f6g7",amount:"200.00",status:"confirmed",time:"1 hour ago"},{id:"5",user:"user_h8i9",amount:"75.00",status:"swept",time:"2 hours ago"}],F={confirmed:"text-green-400 bg-green-500/10 border-green-500/20",pending:"text-yellow-400 bg-yellow-500/10 border-yellow-500/20",swept:"text-blue-400 bg-blue-500/10 border-blue-500/20",failed:"text-red-400 bg-red-500/10 border-red-500/20"},i=({title:t,value:s,change:r,changeType:a="up",icon:d,delay:c=0})=>e.jsx(n.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.4,delay:c},className:"bg-[#0A0A0A] border border-white/10 rounded-xl p-6 hover:border-white/20 transition-all",children:e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-400",children:t}),e.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:s}),r&&e.jsxs("div",{className:`flex items-center gap-1 mt-2 text-xs ${a==="up"?"text-green-400":"text-red-400"}`,children:[a==="up"?e.jsx(u,{className:"w-3 h-3"}):e.jsx(k,{className:"w-3 h-3"}),r," vs last 24h"]})]}),e.jsx("div",{className:"w-10 h-10 bg-white/5 rounded-xl flex items-center justify-center border border-white/5",children:e.jsx(d,{className:"w-5 h-5 text-gray-400"})})]})}),R=({active:t,payload:s,label:r})=>{var a;return t&&s&&s.length?e.jsxs("div",{className:"bg-[#1A1A1A] border border-white/10 rounded-lg px-4 py-3 shadow-xl",children:[e.jsx("p",{className:"text-xs text-gray-400",children:r}),e.jsxs("p",{className:"text-sm font-semibold text-white mt-1",children:["$",s[0].value," USDT"]}),e.jsxs("p",{className:"text-xs text-gray-500",children:[(a=s[1])==null?void 0:a.value," transactions"]})]}):null},S=()=>{const{tenant:t}=p();return e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{children:[e.jsxs("h1",{className:"text-2xl font-bold text-white",children:["Welcome back, ",t==null?void 0:t.name]}),e.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"Here's what's happening with your payment service."})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[e.jsx(i,{title:"Total Volume (24h)",value:"$2,950",change:"+12.5%",changeType:"up",icon:g,delay:0}),e.jsx(i,{title:"Transactions (24h)",value:"137",change:"+8.2%",changeType:"up",icon:o,delay:.05}),e.jsx(i,{title:"Active Wallets",value:"48",change:"+3",changeType:"up",icon:x,delay:.1}),e.jsx(i,{title:"Unique Users",value:"312",change:"+24",changeType:"up",icon:h,delay:.15})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs(n.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.4,delay:.2},className:"lg:col-span-2 bg-[#0A0A0A] border border-white/10 rounded-xl p-6",children:[e.jsx("h3",{className:"text-sm font-medium text-gray-400 mb-4",children:"Volume Trend (7 days)"}),e.jsx("div",{className:"h-[280px]",children:e.jsx(b,{width:"100%",height:"100%",children:e.jsxs(j,{data:T,children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"volumeGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"0%",stopColor:"#3b82f6",stopOpacity:.3}),e.jsx("stop",{offset:"100%",stopColor:"#3b82f6",stopOpacity:0})]})}),e.jsx(y,{strokeDasharray:"3 3",stroke:"rgba(255,255,255,0.05)"}),e.jsx(f,{dataKey:"date",stroke:"rgba(255,255,255,0.2)",tick:{fill:"#717182",fontSize:12}}),e.jsx(v,{stroke:"rgba(255,255,255,0.2)",tick:{fill:"#717182",fontSize:12},tickFormatter:s=>`$${s}`}),e.jsx(w,{content:e.jsx(R,{})}),e.jsx(l,{type:"monotone",dataKey:"volume",stroke:"#3b82f6",strokeWidth:2,fill:"url(#volumeGradient)"}),e.jsx(l,{type:"monotone",dataKey:"transactions",stroke:"#8b5cf6",strokeWidth:1.5,fill:"none",strokeDasharray:"4 4"})]})})})]}),e.jsxs(n.div,{initial:{opacity:0,y:16}
vendor: 1,132 bytes, line 6
6,animate:{opacity:1,y:0},transition:{duration:.4,delay:.25},className:"bg-[#0A0A0A] border border-white/10 rounded-xl p-6",children:[e.jsx("h3",{className:"text-sm font-medium text-gray-400 mb-4",children:"Recent Transactions"}),e.jsx("div",{className:"space-y-3",children:C.map(s=>e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-white/5 last:border-0",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-8 h-8 bg-white/5 rounded-lg flex items-center justify-center",children:e.jsx(o,{className:"w-3.5 h-3.5 text-gray-500"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-white font-medium",children:s.user}),e.jsxs("div",{className:"flex items-center gap-1 text-xs text-gray-500",children:[e.jsx(N,{className:"w-3 h-3"}),s.time]})]})]}),e.jsxs("div",{className:"text-right",children:[e.jsxs("p",{className:"text-sm font-medium text-white",children:["$",s.amount]}),e.jsx("span",{className:`inline-block text-[10px] font-medium px-2 py-0.5 rounded-full border ${F[s.status]}`,children:s.status})]})]},s.id))})]})]})]})};export{S 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.