import{t as e}from"./createLucideIcon-CPi6oOk3.js";import{t}from"./chevron-left-CRP1kruU.js";import{t as n}from"./chevron-right-DA62FpGk.js";import{_ as r}from"./vendor-flow-IzlrcDx6.js";import{rn as i}from"./index-HkVQGc9M.js";import{t as a}from"./Dropdown-BZh579Ix.js";var o=e(`chevrons-left`,[[`path`,{d:`m11 17-5-5 5-5`,key:`13zhaf`}],[`path`,{d:`m18 17-5-5 5-5`,key:`h8a8et`}]]),s=e(`chevrons-right`,[[`path`,{d:`m6 17 5-5-5-5`,key:`xnjwq`}],[`path`,{d:`m13 17 5-5-5-5`,key:`17xmmf`}]]),c=r();function l({currentPage:e,totalPages:r,totalItems:l,pageSize:d,onPageChange:f,onPageSizeChange:p,pageSizeOptions:m=[10,20,50,100],className:h}){let g=(e-1)*d+1,_=Math.min(e*d,l);return(0,c.jsxs)(`div`,{className:i(`flex items-center justify-between gap-4 py-3`,h),children:[(0,c.jsxs)(`div`,{className:`flex items-center gap-4 text-sm text-[var(--color-text-muted)]`,children:[(0,c.jsxs)(`span`,{children:[`Showing `,(0,c.jsx)(`span`,{className:`font-medium text-[var(--color-text-primary)]`,children:g}),` to`,` `,(0,c.jsx)(`span`,{className:`font-medium text-[var(--color-text-primary)]`,children:_}),` of`,` `,(0,c.jsx)(`span`,{className:`font-medium text-[var(--color-text-primary)]`,children:l}),` results`]}),p&&(0,c.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,c.jsx)(`span`,{children:`Rows:`}),(0,c.jsx)(a,{size:`sm`,value:String(d),onChange:e=>p(Number(e)),options:m.map(e=>({value:String(e),label:String(e)})),className:`w-20`})]})]}),(0,c.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,c.jsx)(u,{onClick:()=>f(1),disabled:e===1,"aria-label":`First page`,children:(0,c.jsx)(o,{className:`w-4 h-4`})}),(0,c.jsx)(u,{onClick:()=>f(e-1),disabled:e===1,"aria-label":`Previous page`,children:(0,c.jsx)(t,{className:`w-4 h-4`})}),(0,c.jsxs)(`span`,{className:`px-3 text-sm text-[var(--color-text-secondary)]`,children:[`Page `,(0,c.jsx)(`span`,{className:`font-medium`,children:e}),` of `,(0,c.jsx)(`span`,{className:`font-medium`,children:r})]}),(0,c.jsx)(u,{onClick:()=>f(e+1),disabled:e===r,"aria-label":`Next page`,children:(0,c.jsx)(n,{className:`w-4 h-4`})}),(0,c.jsx)(u,{onClick:()=>f(r),disabled:e===r,"aria-label":`Last page`,children:(0,c.jsx)(s,{className:`w-4 h-4`})})]})]})}function u({children:e,...t}){return(0,c.jsx)(`button`,{className:i(`inline-flex items-center justify-center w-8 h-8 rounded-md border border-[var(--color-border)]`,`bg-[var(--color-surface)] text-[var(--color-text-secondary)]`,`hover:bg-slate-50 dark:hover:bg-slate-800 hover:text-[var(--color-text-primary)]`,`disabled:opacity-40 disabled:pointer-events-none`,`transition-colors duration-[var(--transition-fast)]`),...t,children:e})}export{l as t};