import{d0 as p,j as e,d3 as n,d4 as c,d5 as u,d6 as x}from"./react-vendor-xYZnmIII.js";import{T as b}from"./table-filter-BQQ7Rmfc.js";import{T as g}from"./table-footer-Dfs_f5Wf.js";import{T as j}from"./table-header-CjMHr8CW.js";import{a as R,aE as f,aF as h,aG as m,aH as i}from"./ui-components-CQM92IK3.js";import{D as T}from"./layout-DC6VQ8xV.js";import w from"./request-table-columns-BbYJt2U8.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./use-lang-Dg6I_Fym.js";import"./debounce-CWHP_ANh.js";import"./route-D0xh7FtZ.js";import"./table-page-size-CzF8rJAG.js";import"./interactive-vendor-B1OgcAgP.js";import"./main-CnGu8e_N.js";import"./theme-colors-CLpwvDr4.js";import"./appearance-5ivIjthu.js";import"./language-C7bQIqs2.js";import"./notification-C3MPMjX2.js";import"./app-logo-BQGZ7CFC.js";const M=({payouts:o,translate:s})=>{var d;const{dashboard:l}=s,t=p({data:o.data,columns:w(s),getCoreRowModel:x(),getSortedRowModel:u(),getFilteredRowModel:c()});return e.jsxs(R,{children:[e.jsx(b,{data:o,title:l.payout_request,globalSearch:!0,tablePageSizes:[10,15,20,25],routeName:"payouts.request.index",className:"w-full"}),e.jsxs(f,{className:"border-border border-y",children:[e.jsx(j,{table:t}),e.jsx(h,{children:(d=t.getRowModel().rows)!=null&&d.length?t.getRowModel().rows.map(a=>e.jsx(m,{"data-state":a.getIsSelected()&&"selected",children:a.getVisibleCells().map(r=>e.jsx(i,{children:n(r.column.columnDef.cell,r.getContext())},r.id))},a.id)):e.jsx(m,{children:e.jsx(i,{className:"h-24 text-center",children:l.no_results})})})]}),e.jsx(g,{className:"mt-1 p-5 sm:p-7",routeName:"payouts.request.index",paginationInfo:o})]})};M.layout=o=>e.jsx(T,{children:o});export{M as default};
