import{jsxs as l,jsx as o}from"react/jsx-runtime";import{T as n}from"./table-filter-CFSMxglD.js";import{T as c}from"./table-footer-lUcSaZ5Q.js";import{T as b}from"./table-header-DXTJ1r7-.js";import{a as u,aD as g,aE as h,aF as s,aG as d}from"./ui-components-B24mpb8o.js";import{D as f}from"./layout-CZk01yM3.js";import{useReactTable as T,getFilteredRowModel as R,getSortedRowModel as w,getCoreRowModel as y,flexRender as x}from"@tanstack/react-table";import M from"./history-table-columns-D9OOquxZ.js";import"./use-lang-Cw_jKJYs.js";import"@inertiajs/react";import"./debounce-CWHP_ANh.js";import"./route-D0xh7FtZ.js";import"lucide-react";import"react";import"./table-page-size-B94DPeOD.js";import"next-themes";import"sonner";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";import"./main-Cv60h411.js";import"./theme-colors-CLpwvDr4.js";import"./appearance-zLWEcDPI.js";import"./language-79bZLpyc.js";import"./notification-BBQVVMqD.js";import"date-fns";import"./app-logo-CAnM-q9p.js";const C=({payouts:t,translate:m})=>{var p;const{dashboard:a}=m,r=T({data:t.data,columns:M(m),getCoreRowModel:y(),getSortedRowModel:w(),getFilteredRowModel:R()});return l(u,{children:[o(n,{data:t,title:a.payout_history,globalSearch:!0,tablePageSizes:[10,15,20,25],routeName:"payouts.history.index",className:"w-full"}),l(g,{className:"border-border border-y",children:[o(b,{table:r}),o(h,{children:(p=r.getRowModel().rows)!=null&&p.length?r.getRowModel().rows.map(e=>o(s,{"data-state":e.getIsSelected()&&"selected",children:e.getVisibleCells().map(i=>o(d,{children:x(i.column.columnDef.cell,i.getContext())},i.id))},e.id)):o(s,{children:o(d,{className:"h-24 text-center",children:a.no_results})})})]}),o(c,{className:"mt-1 p-5 sm:p-7",routeName:"payouts.history.index",paginationInfo:t})]})};C.layout=t=>o(f,{children:t});export{C as default};
