import{c as y,j as s,L as g}from"./app-7TQoRINg.js";import{B as v}from"./button-B14hYptM.js";import{C as w}from"./chevron-left-By3o5Zhs.js";import{w as N}from"./badge-D3x2GPbI.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};i.SENTRY_RELEASE={id:"b85bb7b5dc83f935fd7d75fdf93418434f2e0da2"}}catch{}})();try{(function(){var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new i.Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="ded00a2d-3b3b-4764-ad5e-5a7bc6913486",i._sentryDebugIdIdentifier="sentry-dbid-ded00a2d-3b3b-4764-ad5e-5a7bc6913486")})()}catch{}function T(i){const e=y.c(29),{links:t,meta:l}=i;if(!l||!t||l.last_page<=1)return null;let r;e[0]!==t[0]?(r=t[0]?.url?s.jsx(g,{href:t[0].url,children:s.jsx(v,{variant:"outline",size:"sm",children:"Previous"})}):s.jsx(v,{variant:"outline",size:"sm",disabled:!0,children:"Previous"}),e[0]=t[0],e[1]=r):r=e[1];let a;e[2]!==t?(a=t[t.length-1]?.url?s.jsx(g,{href:t[t.length-1].url,children:s.jsx(v,{variant:"outline",size:"sm",children:"Next"})}):s.jsx(v,{variant:"outline",size:"sm",disabled:!0,children:"Next"}),e[2]=t,e[3]=a):a=e[3];let o;e[4]!==r||e[5]!==a?(o=s.jsxs("div",{className:"flex flex-1 justify-between sm:hidden",children:[r,a]}),e[4]=r,e[5]=a,e[6]=o):o=e[6];let d;e[7]!==l.from?(d=s.jsx("span",{className:"font-medium",children:l.from}),e[7]=l.from,e[8]=d):d=e[8];let f;e[9]!==l.to?(f=s.jsx("span",{className:"font-medium",children:l.to}),e[9]=l.to,e[10]=f):f=e[10];let u;e[11]!==l.total?(u=s.jsx("span",{className:"font-medium",children:l.total}),e[11]=l.total,e[12]=u):u=e[12];let c;e[13]!==d||e[14]!==f||e[15]!==u?(c=s.jsx("div",{children:s.jsxs("p",{className:"text-sm text-slate-700",children:["Showing"," ",d," to"," ",f," of"," ",u," results"]})}),e[13]=d,e[14]=f,e[15]=u,e[16]=c):c=e[16];let m;if(e[17]!==t){let j;e[19]!==t.length?(j=(n,b)=>b===0?s.jsxs(g,{href:n.url||"#",className:`relative inline-flex items-center rounded-l-md px-2 py-2 text-slate-400 ring-1 ring-inset ring-slate-300 ${n.url?"hover:bg-slate-50":"cursor-not-allowed opacity-50"}`,children:[s.jsx("span",{className:"sr-only",children:"Previous"}),s.jsx(w,{className:"h-5 w-5","aria-hidden":"true"})]},b):b===t.length-1?s.jsxs(g,{href:n.url||"#",className:`relative inline-flex items-center rounded-r-md px-2 py-2 text-slate-400 ring-1 ring-inset ring-slate-300 ${n.url?"hover:bg-slate-50":"cursor-not-allowed opacity-50"}`,children:[s.jsx("span",{className:"sr-only",children:"Next"}),s.jsx(N,{className:"h-5 w-5","aria-hidden":"true"})]},b):s.jsx(g,{href:n.url||"#",className:`relative inline-flex items-center px-4 py-2 text-sm font-semibold ${n.active?"z-10 bg-blue-600 text-white focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600":"text-slate-900 ring-1 ring-inset ring-slate-300 hover:bg-slate-50"}`,dangerouslySetInnerHTML:{__html:n.label}},b),e[19]=t.length,e[20]=j):j=e[20],m=t.map(j),e[17]=t,e[18]=m}else m=e[18];let h;e[21]!==m?(h=s.jsx("div",{children:s.jsx("nav",{className:"isolate inline-flex -space-x-px rounded-md shadow-sm","aria-label":"Pagination",children:m})}),e[21]=m,e[22]=h):h=e[22];let x;e[23]!==c||e[24]!==h?(x=s.jsxs("div",{className:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between",children:[c,h]}),e[23]=c,e[24]=h,e[25]=x):x=e[25];let p;return e[26]!==x||e[27]!==o?(p=s.jsxs("div",{className:"flex items-center justify-between border-t border-slate-200 bg-white px-4 py-3 sm:px-6",children:[o,x]}),e[26]=x,e[27]=o,e[28]=p):p=e[28],p}export{T as P};
//# sourceMappingURL=pagination-7X6CkrVz.js.map
