import{bV as p,j as e,bY as n,bZ as b,b_ as c,b$ as u}from"./vendor-BKmmeuxg.js";import{T as x}from"./table-filter-D1fnjeZE.js";import{T as g}from"./table-footer-B-sB7gNG.js";import{T as f}from"./table-header-DVkEnG6Y.js";import{C as j}from"./card-D9_SJYq6.js";import{T as R,a as T,b as l,c as d}from"./table-DWOXv4Pu.js";import{D as h}from"./layout-DkwBWm5d.js";import w from"./request-table-columns-BwXCUZf8.js";import"./use-lang-YfV87_zl.js";import"./debounce-CWHP_ANh.js";import"./route-B4ZMN77y.js";import"./utils-DxSsnXxD.js";import"./button-BpNwv2aE.js";import"./index-WW_1X1qx.js";import"./dropdown-menu-DO-po5c1.js";import"./scroll-area-C8HGru-R.js";import"./table-page-size-OCfjNXER.js";import"./sidebar-BYcYxQeZ.js";import"./separator-_3LZ_wAA.js";import"./sheet-DSvHVmaW.js";import"./tooltip-BsX7Z6vz.js";import"./main-_V386djS.js";import"./index-D9-QKOod.js";import"./appearance-D2z3xcjR.js";import"./app-BytVvUs_.js";/* empty css            */import"./language-BFZ7KItL.js";import"./notification-CYMPYbAP.js";import"./popover-B4kBsMuI.js";import"./app-logo-CmnEIwal.js";import"./accordion-CNBvFN43.js";import"./avatar-j28afJTV.js";const C=({payouts:o,translate:s})=>{var i;const{dashboard:m}=s,t=p({data:o.data,columns:w(s),getCoreRowModel:u(),getSortedRowModel:c(),getFilteredRowModel:b()});return e.jsxs(j,{children:[e.jsx(x,{data:o,title:m.payout_request,globalSearch:!0,tablePageSizes:[10,15,20,25],routeName:"payouts.request.index",className:"w-full"}),e.jsxs(R,{className:"border-border border-y",children:[e.jsx(f,{table:t}),e.jsx(T,{children:(i=t.getRowModel().rows)!=null&&i.length?t.getRowModel().rows.map(r=>e.jsx(l,{"data-state":r.getIsSelected()&&"selected",children:r.getVisibleCells().map(a=>e.jsx(d,{children:n(a.column.columnDef.cell,a.getContext())},a.id))},r.id)):e.jsx(l,{children:e.jsx(d,{className:"h-24 text-center",children:m.no_results})})})]}),e.jsx(g,{className:"mt-1 p-5 sm:p-7",routeName:"payouts.request.index",paginationInfo:o})]})};C.layout=o=>e.jsx(h,{children:o});export{C as default};
