import{r as n,d0 as p,j as t,d3 as c,d4 as b,d5 as u,d6 as x}from"./react-vendor-xYZnmIII.js";import{T as g}from"./table-filter-BQQ7Rmfc.js";import{T as f}from"./table-footer-Dfs_f5Wf.js";import{T as h}from"./table-header-CjMHr8CW.js";import{a as j,aE as R,aF as T,aG as w,aH as C}from"./ui-components-CQM92IK3.js";import{D as M}from"./layout-DC6VQ8xV.js";import S from"./applications-table-columns-gGN2UIH7.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";import"./document-viewer-BIx4pvTR.js";import"./application-approval-CO56PHCb.js";import"./input-error-_LAmvivg.js";import"./loading-button-D7aXR3K4.js";import"./richtor-BECSBxkh.js";const N=e=>{var i;const[l,d]=n.useState([]),{translate:m}=e,{dashboard:s}=m,o=p({data:e.applications.data,columns:S(e.translate),onSortingChange:d,getCoreRowModel:x(),getSortedRowModel:u(),getFilteredRowModel:b(),state:{sorting:l}});return t.jsxs(j,{children:[t.jsx(g,{data:e.applications,title:s.instructor_list,globalSearch:!0,tablePageSizes:[10,15,20,25],routeName:"instructors.applications"}),t.jsxs(R,{className:"border-border border-y",children:[t.jsx(h,{table:o,tableHeadClass:"px-6"}),t.jsx(T,{children:o.getRowModel().rows.map(a=>t.jsx(w,{"data-state":a.getIsSelected()&&"selected",children:a.getVisibleCells().map(r=>t.jsx(C,{className:"px-6",children:c(r.column.columnDef.cell,r.getContext())},r.id))},a.id))})]}),((i=o.getRowModel().rows)==null?void 0:i.length)<=0&&t.jsx("p",{className:"border-border w-full border-b px-6 py-10 text-center",children:s.no_results_found}),t.jsx(f,{className:"p-5 sm:p-7",routeName:"instructors.applications",paginationInfo:e.applications})]})};N.layout=e=>t.jsx(M,{children:e});export{N as default};
