import{cP as d,j as o,cS as c,cT as n,cU as b,cV as x}from"./vendor-rThclpOQ.js";import{T as u}from"./table-filter-YjsfaEUk.js";import{T as g}from"./table-footer-CXgex4hi.js";import{T as h}from"./table-header-Cuecslh2.js";import{C as T}from"./card-HXna_7vU.js";import{T as f,a as j,b as l,c as p}from"./table-DoQbaWlF.js";import{D as R}from"./layout-Dtu8Rjtg.js";import w from"./history-table-columns-B4mVlE9v.js";import"./use-lang-BK6P2WMc.js";import"./debounce-CWHP_ANh.js";import"./route-B4ZMN77y.js";import"./utils-8KAaAB9H.js";import"./button-ZcsoqUQn.js";import"./index-DquVdLUg.js";import"./dropdown-menu-Cm0H42C1.js";import"./scroll-area-BCwyUKIK.js";import"./table-page-size-FBmivxVb.js";import"./sidebar-Buyv7mEV.js";import"./separator-Cir9hccx.js";import"./sheet-BfC102Vr.js";import"./tooltip-WOIaUmuC.js";import"./main-CC75Iw88.js";import"./sonner-CgbrDmPW.js";import"./index-CWNIUFqh.js";import"./appearance-Bwg83W1G.js";import"./app-BsPpMpSR.js";/* empty css            */import"./language-BmlkXzFK.js";import"./notification-Bti7isEF.js";import"./popover-otAaS-4X.js";import"./app-logo-Bj2M2lhk.js";import"./accordion-by19KtHq.js";import"./avatar-BsP_s7dr.js";const y=({payouts:e,translate:s})=>{var m;const{dashboard:i}=s,t=d({data:e.data,columns:w(s),getCoreRowModel:x(),getSortedRowModel:b(),getFilteredRowModel:n()});return o.jsxs(T,{children:[o.jsx(u,{data:e,title:i.payout_history,globalSearch:!0,tablePageSizes:[10,15,20,25],routeName:"payouts.history.index",className:"w-full"}),o.jsxs(f,{className:"border-border border-y",children:[o.jsx(h,{table:t}),o.jsx(j,{children:(m=t.getRowModel().rows)!=null&&m.length?t.getRowModel().rows.map(r=>o.jsx(l,{"data-state":r.getIsSelected()&&"selected",children:r.getVisibleCells().map(a=>o.jsx(p,{children:c(a.column.columnDef.cell,a.getContext())},a.id))},r.id)):o.jsx(l,{children:o.jsx(p,{className:"h-24 text-center",children:i.no_results})})})]}),o.jsx(g,{className:"mt-1 p-5 sm:p-7",routeName:"payouts.history.index",paginationInfo:e})]})};y.layout=e=>o.jsx(R,{children:e});export{y as default};
