import{r as m,bV as l,j as e,bY as p,bZ as d,b_ as n,b$ as b}from"./vendor-BKmmeuxg.js";import{T as c}from"./table-filter-D1fnjeZE.js";import{T as x}from"./table-footer-B-sB7gNG.js";import{T as u}from"./table-header-DVkEnG6Y.js";import{C as g}from"./card-D9_SJYq6.js";import{T,a as f,b as j,c as R}from"./table-DWOXv4Pu.js";import{D as C}from"./layout-DkwBWm5d.js";import h from"./table-columns-CRnGXe0j.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";import"./delete-modal-D1GJlb1P.js";import"./dialog-B2gN9MvT.js";import"./edit-form-Diy3UWy6.js";import"./input-error-LaPr_4wd.js";import"./loading-button-BnTVAMJ7.js";import"./input-DM0goJrn.js";import"./label-HmIcv5Yx.js";import"./select-CD9o3HN1.js";const S=t=>{const[s,i]=m.useState([]),a=l({data:t.users.data,columns:h(t.translate),onSortingChange:i,getCoreRowModel:b(),getSortedRowModel:n(),getFilteredRowModel:d(),state:{sorting:s}});return e.jsxs(g,{children:[e.jsx(c,{data:t.users,title:"User List",globalSearch:!0,tablePageSizes:[10,15,20,25],routeName:"users.index"}),e.jsxs(T,{className:"border-border border-y",children:[e.jsx(u,{table:a,tableHeadClass:"px-6"}),e.jsx(f,{children:a.getRowModel().rows.map(o=>e.jsx(j,{"data-state":o.getIsSelected()&&"selected",children:o.getVisibleCells().map(r=>e.jsx(R,{className:"px-6",children:p(r.column.columnDef.cell,r.getContext())},r.id))},o.id))})]}),e.jsx(x,{className:"p-5 sm:p-7",routeName:"users.index",paginationInfo:t.users})]})};S.layout=t=>e.jsx(C,{children:t});export{S as default};
