PageSourceSearch

https://aissista.com/build/assets/index-BLVMXq6d.js

js aissista.com collected 2026-10-02 00:46:38 UTC 21,037 bytes, 6 lines download raw bytes

1import{j as e,r as d}from"./react-vendor-BzdE_8IM.js";import{H as ee,r as p}from"./app-DP4FQjf0.js";import{P as se,D as te,B as re,e as ae,C as le,a as ne,L as ie,f as de,g as oe,b as ce,p as me,c as xe,d as ue,A as he,i as pe}from"./chart-vendor-Dx7zYdEA.js";import{B as M}from"./badge-mWqGc5Tn.js";import{B as o}from"./button-D5IaR8Ma.js";import{C as j,c as g,a as je,b as ge}from"./card-DRaKzo6z.js";import{I as P}from"./input-BZz0wnzE.js";import{S as v,a as b,b as N,c as y,d as r}from"./select-DJUrrphy.js";import{A as fe,h as ve,i as be,S as Ne,j as ye,k as we,l as Ce}from"./app-layout-DLK_Th9G.js";import{S as T}from"./switch-BVb3pjwG.js";import{S as R}from"./search-CrmZ_---.js";import{c as Se}from"./createLucideIcon-EVqK5FMf.js";import{D as _e}from"./dollar-sign-Dfdyr1cq.js";import{C as De}from"./circle-check-big-DlJ0FcwM.js";import{C as ke}from"./clock-Cd_PDaVW.js";import{C as Ae}from"./circle-x-B6Enx42a.js";import{T as $e}from"./trending-up-ljyPRGSf.js";import{D as I}from"./download-BLKwUIMB.js";import{E as Be}from"./eye-BF72hctR.js";/* empty css            */import"./ui-vendor-DxgDxQ1H.js";import"./index-CdJFUDDL.js";import"./utils-CBfrqCZ4.js";import"./chevron-down-VCER46nT.js";import"./check-De7Nm9hS.js";import"./x-LqwSSToJ.js";import"./tooltip-D1sUMSP8.js";import"./create-hugeicon-component-CTzdnSI-.js";import"./label-LcSwMu-C.js";import"./avatar-DZFw-9a_.js";import"./use-initials-mHPNUr_c.js";import"./loader-circle-C2gynC-8.js";/**
2 * @license lucide-react v0.475.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 Fe=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Me=Se("Bell",Fe);le.register(ne,ie,de,oe,ce,me,xe,ue,he,pe);function Pe({data:n,height:_=300,className:w=""}){const a={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"top",labels:{usePointStyle:!0,padding:20}},tooltip:{backgroundColor:"rgba(0, 0, 0, 0.8)",titleColor:"#fff",bodyColor:"#fff",borderColor:"rgba(255, 255, 255, 0.1)",borderWidth:1,cornerRadius:8,padding:12}},scales:n.type==="line"||n.type==="bar"?{x:{grid:{color:"rgba(0, 0, 0, 0.05)"},ticks:{color:"#6b7280"}},y:{grid:{color:"rgba(0, 0, 0, 0.05)"},ticks:{color:"#6b7280"},beginAtZero:!0}}:void 0,...n.options},l={labels:n.labels,datasets:n.datasets},m=()=>{switch(n.type){case"line":return e.jsx(ae,{data:l,options:a});case"bar":return e.jsx(re,{data:l,options:a});case"doughnut":return e.jsx(te,{data:l,options:a});case"pie":return e.jsx(se,{data:l,options:a});default:return e.jsx("div",{children:"Unsupported chart type"})}};return e.jsx("div",{className:`w-full ${w}`,style:{height:`${_}px`},children:m()})}const Te=[{title:"Admin",href:"/admin/dashboard"},{title:"Payments & Transactions",href:"/admin/transactions"}];function gs({transactionChartData:n,transactionsData:_,gatewaysData:w,summaryStats:a,pagination:l,filters:m}){const[c,k]=d.useState(m.search||""),[x,L]=d.useState(m.status||"all"),[u,z]=d.useState(m.gateway||"all"),[Re,Ie]=d.useState(""),[f,H]=d.useState("All"),[A,E]=d.useState(new Date().getFullYear().toString()),[C,U]=d.useState(m.per_page||10),[G,V]=d.useState(!1),W=Array.from({length:new Date().getFullYear()-2019+1},(s,t)=>{const i=2020+t;return{value:i.toString(),label:i.toString()}}).reverse(),h=n.filter(s=>!(s.year&&parseInt(A)!==s.year||f!=="All"&&!(s.month===f.substring(0,3)||s.monthName===f||s.month===f))),$=_,O=()=>{p.get("/admin/transactions",{search:c,status:x,gateway:u,per_page:C,page:1},{preserveState:!0,replace:!0,preserveScroll:!0})},B=(s,t)=>{p.get("/admin/transactions",{search:c,status:s==="status"?t:x,gateway:s==="gateway"?t:u,per_page:C,page:1},{preserveState:!0,replace:!0,preserveScroll:!0})},J=s=>{p.get("/admin/transactions",{search:c,status:x,gateway:u,per_page:C,page:s},{preserveState:!0,replace:!0,preserveScroll:!0})},Y=()=>{const s=new URLSearchParams({search:c,status:x,gateway:u}),t=document.createElement("a");t.href=`/admin/transactions/export?${s.toString()}`,t.download="",document.body.appendChild(t),t.click(),document.body.removeChild(t)},K=s=>{if(!s)return;const t=document.createElement("a");t.href=`/admin/invoices/${s}/download`,t.download="",document.body.appendChild(t),t.click(),document.body.removeChild(t)},X=h.map(s=>s.year?`${s.month} ${s.year}`:s.month),F=Math.max(...h.map(s=>s.amount),0),S=F>0?Math.ceil(F*1.1):1e3,Z=S<=1e3?100:S<=5e3?500:S<=1e4?1e3:5e3,q={type:"line",labels:X,datasets:[{label:"Revenue",data:h.map(s=>s.amount),backgroundColor:"rgba(59, 130, 246, 0.1)",borderColor:"rgba(59, 130, 246, 1)",borderWidth:3,fill:!0,tension:.4,pointBackgroun
6dColor:"rgba(59, 130, 246, 1)",pointBorderColor:"#fff",pointBorderWidth:2,pointRadius:4,pointHoverRadius:8,pointHoverBackgroundColor:"rgba(59, 130, 246, 1)",pointHoverBorderColor:"#fff",pointHoverBorderWidth:3},{label:"Transactions",data:h.map(s=>s.transactions),backgroundColor:"rgba(16, 185, 129, 0.1)",borderColor:"rgba(16, 185, 129, 1)",borderWidth:2,fill:!1,tension:.4,pointBackgroundColor:"rgba(16, 185, 129, 1)",pointBorderColor:"#fff",pointBorderWidth:2,pointRadius:3,pointHoverRadius:7,pointHoverBackgroundColor:"rgba(16, 185, 129, 1)",pointHoverBorderColor:"#fff",pointHoverBorderWidth:3,yAxisID:"y1"}],options:{responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{display:!0,position:"top",labels:{usePointStyle:!0,padding:15,font:{size:12,weight:"500"},color:"#374151"}},tooltip:{backgroundColor:"rgba(0, 0, 0, 0.85)",titleColor:"#fff",bodyColor:"#fff",borderColor:"rgba(255, 255, 255, 0.1)",borderWidth:1,cornerRadius:8,padding:12,displayColors:!0,callbacks:{title:function(s){return s[0].label},label:function(s){const t=s.dataset.label||"",i=s.parsed.y;return t==="Revenue"?`${t}: $${i.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:t==="Transactions"?`${t}: ${i}`:`${t}: ${i}`},labelColor:function(s){return{borderColor:s.dataset.borderColor,backgroundColor:s.dataset.backgroundColor,borderWidth:2,borderRadius:2}}}}},scales:{x:{grid:{color:"rgba(0, 0, 0, 0.05)",drawBorder:!1},ticks:{color:"#6b7280",font:{size:11,weight:"500"},maxRotation:45,minRotation:0}},y:{type:"linear",display:!0,position:"left",min:0,max:S,ticks:{stepSize:Z,color:"#6b7280",font:{size:11,weight:"500"},callback:function(s){return s>=1e6?`$${(s/1e6).toFixed(1)}M`:s>=1e3?`$${(s/1e3).toFixed(1)}k`:`$${s}`}},grid:{color:"rgba(0, 0, 0, 0.05)",drawBorder:!1}},y1:{type:"linear",display:!0,position:"right",min:0,ticks:{color:"#6b7280",font:{size:11,weight:"500"}},grid:{drawOnChartArea:!1}}}}},D=s=>({stripe:"S",paypal:"P",bkash:"B",sslcommerz:"S"})[s.toLowerCase()]||s.charAt(0).toUpperCase();return e.jsxs(fe,{breadcrumbs:Te,children:[e.jsx(ee,{title:"Payments & Transactions"}),e.jsxs("div",{className:"container mx-auto space-y-6 p-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:"Payments & Transactions"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("div",{className:"relative",children:[e.jsx(R,{className:"absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(P,{placeholder:"Search...",value:c,onChange:s=>k(s.target.value),className:"w-64 pl-9"})]}),e.jsxs(ve,{open:G,onOpenChange:V,children:[e.jsx(be,{asChild:!0,children:e.jsxs(o,{variant:"outline",children:[e.jsx(Ne,{className:"mr-2 h-4 w-4"}),"Gateway Settings"]})}),e.jsxs(ye,{children:[e.jsx(we,{children:e.jsx(Ce,{children:"Payment Gateway Management"})}),e.jsx("div",{className:"p-6",children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h4",{className:"mb-3 text-sm font-medium text-muted-foreground",children:"Live Mode"}),e.jsx("div",{className:"space-y-3",children:w.filter(s=>s.mode==="live").map(s=>e.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded bg-blue-100 text-sm font-medium",children:D(s.name)}),e.jsxs("div",{children:[e.jsx("div",{className:"font-medium capitalize",children:s.name}),e.jsxs("div",{className:"text-sm text-muted-foreground",children:["Transactions ",s.transactions]})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(T,{checked:s.isActive}),e.jsx(o,{variant:"outline",size:"sm",children:"Manage"})]})]},s.id))})]}),e.jsxs("div",{children:[e.jsx("h4",{className:"mb-3 text-sm font-medium text-muted-foreground",children:"Test Mode"}),e.jsx("div",{className:"space-y-3",children:w.filter(s=>s.mode==="test").map(s=>e.jsxs("div",{className:"flex items-center justify-between rounded-lg border p-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded bg-gray-100 text-sm font-medium",children:D(s.name)}),e.jsxs("div",{children:[e.jsx("div",{className:"font-medium capitalize",children:s.name}),e.jsxs("div",{className:"text-sm text-muted-foreground",children:["Transactions ",s.transactions]})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(T,{checked:s.isActive}),e.jsx(o,{variant:"outline",size:"sm",children:"Manage"})]})]},s.id))})]})]})})]})]}),e.jsxs(o,{variant:"outline",size:"icon",className:"relative",children:[e.jsx(Me,{className:"h-4 w-4"}),e.jsx(M,{className:"absolute -top-1 -right-1 h-5 w-5 rounded-full p-0 text-xs",children:"F"})]})]})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:[e.jsx(j,{children:e.jsx(g,{className:"p-6",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Total Revenue"}),e.jsxs("p",{className:"text-2xl font-bold",children:["$",a.total_revenue.toLocaleStr
6ing("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]}),e.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:["This month: $",a.this_month_revenue.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]})]}),e.jsx("div",{className:"rounded-full bg-green-100 p-3",children:e.jsx(_e,{className:"h-6 w-6 text-green-600"})})]})})}),e.jsx(j,{children:e.jsx(g,{className:"p-6",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Completed"}),e.jsx("p",{className:"text-2xl font-bold",children:a.completed}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:a.total_transactions>0?`${Math.round(a.completed/a.total_transactions*100)}% of total`:"0% of total"})]}),e.jsx("div",{className:"rounded-full bg-blue-100 p-3",children:e.jsx(De,{className:"h-6 w-6 text-blue-600"})})]})})}),e.jsx(j,{children:e.jsx(g,{className:"p-6",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Pending"}),e.jsx("p",{className:"text-2xl font-bold",children:a.pending}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"Awaiting processing"})]}),e.jsx("div",{className:"rounded-full bg-yellow-100 p-3",children:e.jsx(ke,{className:"h-6 w-6 text-yellow-600"})})]})})}),e.jsx(j,{children:e.jsx(g,{className:"p-6",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Failed"}),e.jsx("p",{className:"text-2xl font-bold",children:a.failed}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:a.refunded>0&&`${a.refunded} refunded`})]}),e.jsx("div",{className:"rounded-full bg-red-100 p-3",children:e.jsx(Ae,{className:"h-6 w-6 text-red-600"})})]})})})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs(j,{children:[e.jsx(je,{children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(ge,{children:"Earning"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(v,{value:A,onValueChange:E,children:[e.jsx(b,{className:"w-32",children:e.jsx(N,{placeholder:"Year"})}),e.jsx(y,{children:W.map(s=>e.jsx(r,{value:s.value,children:s.label},s.value))})]}),e.jsxs(v,{value:f,onValueChange:H,children:[e.jsx(b,{className:"w-32",children:e.jsx(N,{placeholder:"Month"})}),e.jsxs(y,{children:[e.jsx(r,{value:"All",children:"All Months"}),e.jsx(r,{value:"January",children:"January"}),e.jsx(r,{value:"February",children:"February"}),e.jsx(r,{value:"March",children:"March"}),e.jsx(r,{value:"April",children:"April"}),e.jsx(r,{value:"May",children:"May"}),e.jsx(r,{value:"June",children:"June"}),e.jsx(r,{value:"July",children:"July"}),e.jsx(r,{value:"August",children:"August"}),e.jsx(r,{value:"September",children:"September"}),e.jsx(r,{value:"October",children:"October"}),e.jsx(r,{value:"November",children:"November"}),e.jsx(r,{value:"December",children:"December"})]})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx($e,{className:"h-4 w-4"}),e.jsxs("span",{children:["Revenue: $",h.reduce((s,t)=>s+t.amount,0).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-xs",children:"•"}),e.jsxs("span",{children:["Transactions: ",h.reduce((s,t)=>s+t.transactions,0)]})]})]})]})]})}),e.jsx(g,{children:e.jsx(Pe,{data:q,height:300})})]}),e.jsx(j,{children:e.jsxs(g,{className:"p-6",children:[e.jsxs("div",{className:"mb-6 flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[e.jsx("div",{className:"flex items-center gap-2",children:e.jsx("h3",{className:"text-lg font-medium",children:"All Transactions"})}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs("div",{className:"relative",children:[e.jsx(R,{className:"absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx(P,{placeholder:"Search transactions...",value:c,onChange:s=>k(s.target.value),onKeyDown:s=>s.key==="Enter"&&O(),className:"w-full pl-9 md:w-64"})]}),e.jsxs(v,{value:x,onValueChange:s=>{L(s),B("status",s)},children:[e.jsx(b,{className:"w-32",children:e.jsx(N,{placeholder:"Status"})}),e.jsxs(y,{children:[e.jsx(r,{value:"all",children:"All Status"}),e.jsx(r,{value:"completed",children:"Completed"}),e.jsx(r,{value:"pending",children:"Pending"}),e.jsx(r,{value:"failed",children:"Failed"})]})]}),e.jsxs(v,{value:u,onValueChange:s=>{z(s),B("gateway",s)},children:[e.jsx(b,{className:"w-32",children:e.jsx(N,{placeholder:"Gateway"})}),e.jsxs(y,{children:[e.jsx(r,{value:"all",children:"All Gateways"}),e.jsx(r,{value:"stripe",children:"Stripe"}),e.jsx(r,{value:"paypal",children:"PayPal"}),e.jsx(r,{value:"bkash",children:"bKash"}),e.jsx(r,{value:"sslcommerz",children:"SSLCommerz"})]})]}),e.jsx(o,{variant:"outline",children:"Select Dates"}),e.jsxs(o,{variant:"outline",onClick:Y,children:[e.jsx(I,{className:"mr-2 h-4 w-4"}),"Export CSV"]})]})]}),e.jsx("div",{className:"overflow-x-auto rounded-lg border",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"border-b bg-muted",children:e.jsxs("tr",{className:"text-left",children:[e.jsx("th",{className:"p-3 font-medium text-muted-foreground",children:"Transaction ID"}),e.jsx("th",{className:"p-3 font-medium text-muted-foreground",children:"User"}),e.jsx("th",{className:"p-3 font-medium text-muted-foreground",children:"Gateway"}),e.jsx("th",{className:"p-3 font-medium text-muted-foreground",children:"Amount"}),e.jsx("th",{className:"p-3 font-medium text-muted-foreground",children:"Payment Method"}),e.jsx("th",{className:"p-3 font-medium text-muted-foreground",children:"Status"}),e.jsx("th",{className:"p-3 font-medium text-muted-foreground",children:"Date & Time"}),e.jsx("th",{className:"p-3 font-medium text-muted-foreground",children:"Invoice"}),e.jsx("th",{className:"p-3 font-medium text-muted-foreground",children:"Actions"})]})}),e.jsx("tbody",{children:$.length===0?e.jsx("tr",{children:e.jsx("td",{colSpan:9,className:"p-8 text-center text-muted-foreground",children:"No transactions foun
6d"})}):$.map(s=>e.jsxs("tr",{className:"border-b hover:bg-muted/50",children:[e.jsx("td",{className:"p-3",children:e.jsxs("div",{children:[e.jsx("div",{className:"font-medium font-mono text-xs",children:s.transactionId}),e.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:s.plan}),s.reference_number&&e.jsxs("div",{className:"mt-1 text-xs text-muted-foreground",children:["Ref: ",s.reference_number]})]})}),e.jsx("td",{className:"p-3",children:e.jsxs("div",{children:[e.jsx("div",{className:"font-medium",children:s.user.name}),s.user.email&&e.jsx("div",{className:"text-xs text-muted-foreground",children:s.user.email})]})}),e.jsx("td",{className:"p-3",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"flex h-6 w-6 items-center justify-center rounded bg-blue-100 text-xs font-medium",children:D(s.gateway)}),e.jsx("span",{className:"capitalize",children:s.gateway})]})}),e.jsx("td",{className:"p-3",children:e.jsx("div",{children:e.jsxs("span",{className:"font-medium",children:[s.currency," ",s.amount.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})]})})}),e.jsx("td",{className:"p-3",children:e.jsx("span",{className:"text-xs capitalize",children:s.payment_method.replace("_"," ")})}),e.jsxs("td",{className:"p-3",children:[e.jsx(M,{variant:s.status==="failed"?"destructive":s.status==="pending"?"secondary":s.status==="refunded"?"outline":"default",className:s.status==="completed"?"bg-green-100 text-green-800 hover:bg-green-100":s.status==="refunded"?"bg-gray-100 text-gray-800 hover:bg-gray-100":"",children:s.status==="completed"?"Completed":s.status==="failed"?"Failed":s.status==="pending"?"Pending":s.status==="refunded"?"Refunded":s.status?s.status.charAt(0).toUpperCase()+s.status.slice(1):"Unknown"}),s.processed_at&&e.jsxs("div",{className:"mt-1 text-xs text-muted-foreground",children:["Processed: ",s.processed_at]}),s.refunded_at&&e.jsxs("div",{className:"mt-1 text-xs text-red-600",children:["Refunded: ",s.refunded_at]})]}),e.jsx("td",{className:"p-3",children:e.jsx("div",{className:"text-xs",children:e.jsx("div",{children:s.datetime})})}),e.jsx("td",{className:"p-3",children:s.invoice_number?e.jsxs("div",{children:[e.jsx("div",{className:"font-medium text-xs",children:s.invoice_number}),s.invoice_id&&e.jsx("button",{onClick:()=>p.visit(`/admin/invoices/${s.invoice_id}`),className:"mt-1 text-xs text-blue-600 hover:underline",children:"View Invoice"})]}):e.jsx("span",{className:"text-xs text-muted-foreground",children:"N/A"})}),e.jsx("td",{className:"p-3",children:e.jsxs("div",{className:"flex items-center gap-2",children:[s.invoice_id&&e.jsx(o,{variant:"ghost",size:"icon",className:"h-8 w-8 border",onClick:()=>p.visit(`/admin/invoices/${s.invoice_id}`),title:"View Invoice",children:e.jsx(Be,{className:"h-4 w-4"})}),s.invoice_id&&e.jsx(o,{variant:"ghost",size:"icon",className:"h-8 w-8 border",title:"Download Invoice PDF",onClick:()=>K(s.invoice_id),children:e.jsx(I,{className:"h-4 w-4"})})]})})]},s.id))})]})}),e.jsxs("div",{className:"flex items-center justify-between border-t border-gray-200 px-4 py-3",children:[e.jsxs("div",{className:"text-sm text-muted-foreground",children:["Showing ",l.from||0," to ",l.to||0," from ",l.total," results"]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"flex gap-1",children:l.links.map((s,t)=>e.jsx("div",{children:s.url?e.jsx("a",{href:s.url,className:`rounded-md px-3 py-2 text-sm transition-colors ${s.active?"bg-blue-500 text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"}`,onClick:i=>{i.preventDefault();const Q=new URL(s.url).searchParams.get("page")||"1";J(parseInt(Q))},dangerouslySetInnerHTML:{__html:s.label}}):e.jsx("span",{className:"cursor-not-allowed px-3 py-2 text-sm text-gray-400",dangerouslySetInnerHTML:{__html:s.label}})},t))}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"Show"}),e.jsxs(v,{value:C.toString(),onValueChange:s=>{U(parseInt(s)),p.get("/admin/transactions",{search:c,status:x,gateway:u,per_page:parseInt(s),page:1},{preserveState:!0,replace:!0,preserveScroll:!0})},children:[e.jsx(b,{className:"w-[80px]",children:e.jsx(N,{})}),e.jsxs(y,{children:[e.jsx(r,{value:"10",children:"10"}),e.jsx(r,{value:"25",children:"25"}),e.jsx(r,{value:"50",children:"50"}),e.jsx(r,{value:"100",children:"100"})]})]})]})]})]})]})})]})]})]})]})}export{gs 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.