import{n as e,t}from"./jsx-runtime-BrKkGzFB.js";import{t as n}from"./chevron-left-B9i70J8m.js";import{B as r,Dt as i,xt as a}from"./app-KzKSswgw.js";var o=e(),s=t();function c(e){let t=(0,o.c)(21),{paginator:c}=e,{current_page:l,last_page:u,prev_page_url:d,next_page_url:f,from:p,to:m,total:h}=c,g;t[0]!==p||t[1]!==m||t[2]!==h?(g=p!=null&&m!=null?(0,s.jsxs)(s.Fragment,{children:[`Mostrando`,` `,(0,s.jsxs)(`span`,{className:`font-medium text-foreground`,children:[p,`–`,m]}),` `,`de `,(0,s.jsx)(`span`,{className:`font-medium text-foreground`,children:h})]}):(0,s.jsxs)(s.Fragment,{children:[`Total: `,(0,s.jsx)(`span`,{className:`font-medium text-foreground`,children:h})]}),t[0]=p,t[1]=m,t[2]=h,t[3]=g):g=t[3];let _;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,s.jsx)(`span`,{"aria-hidden":!0,className:`mx-2 text-muted-foreground/70`,children:`·`}),t[4]=_):_=t[4];let v;t[5]!==l||t[6]!==u?(v=(0,s.jsxs)(`span`,{className:`font-medium text-foreground`,children:[l,` / `,u]}),t[5]=l,t[6]=u,t[7]=v):v=t[7];let y;t[8]!==g||t[9]!==v?(y=(0,s.jsxs)(`p`,{className:`tabular-nums text-muted-foreground`,children:[g,_,`Página`,` `,v]}),t[8]=g,t[9]=v,t[10]=y):y=t[10];let b;t[11]===d?b=t[12]:(b=d?(0,s.jsx)(r,{asChild:!0,className:`gap-1`,size:`sm`,variant:`outline`,children:(0,s.jsxs)(i,{preserveScroll:!0,href:d,children:[(0,s.jsx)(n,{"aria-hidden":!0,className:`size-4`}),`Anterior`]})}):(0,s.jsxs)(r,{className:`gap-1`,disabled:!0,size:`sm`,variant:`outline`,children:[(0,s.jsx)(n,{"aria-hidden":!0,className:`size-4`}),`Anterior`]}),t[11]=d,t[12]=b);let x;t[13]===f?x=t[14]:(x=f?(0,s.jsx)(r,{asChild:!0,className:`gap-1`,size:`sm`,variant:`outline`,children:(0,s.jsxs)(i,{preserveScroll:!0,href:f,children:[`Siguiente`,(0,s.jsx)(a,{"aria-hidden":!0,className:`size-4`})]})}):(0,s.jsxs)(r,{className:`gap-1`,disabled:!0,size:`sm`,variant:`outline`,children:[`Siguiente`,(0,s.jsx)(a,{"aria-hidden":!0,className:`size-4`})]}),t[13]=f,t[14]=x);let S;t[15]!==b||t[16]!==x?(S=(0,s.jsxs)(`div`,{className:`flex items-center gap-2`,children:[b,x]}),t[15]=b,t[16]=x,t[17]=S):S=t[17];let C;return t[18]!==y||t[19]!==S?(C=(0,s.jsxs)(`div`,{className:`flex flex-col gap-3 border-t px-4 py-3 text-sm sm:flex-row sm:items-center sm:justify-between`,children:[y,S]}),t[18]=y,t[19]=S,t[20]=C):C=t[20],C}export{c as t};