import{Bn as e,Hn as t,J as n,K as r,Y as i,an as a,bn as o,dn as s,en as c,on as l,q as u,rn as d,un as f,yn as p,zn as m}from"#entry";var h={class:`flex shrink-0 items-center overflow-hidden rounded-lg border border-base-content/12`},g=[`disabled`],_=[`disabled`],v={key:0,class:`flex items-center border-r border-r-base-content/10 bg-base-200/80 px-1 text-xs text-base-content/40`},y=[`onClick`],b=[`disabled`],x=[`disabled`],S=Object.assign(s({__name:`ConnectionsPagination`,props:{currentPage:{},totalPages:{},visiblePages:{}},emits:[`goToPage`,`previous`,`next`],setup(s,{emit:S}){let C=S;return(S,w)=>(p(),l(`div`,h,[d(`button`,{class:`flex h-7 min-w-7 cursor-pointer items-center justify-center border-r border-none border-r-base-content/10 bg-base-200/80 px-1.5 text-xs text-base-content transition-all duration-150 ease-out hover:not-disabled:bg-base-content/10 disabled:cursor-not-allowed disabled:opacity-40`,disabled:s.currentPage===0,onClick:w[0]||=e=>C(`goToPage`,0)},[f(m(u),{size:14})],8,g),d(`button`,{class:`flex h-7 min-w-7 cursor-pointer items-center justify-center border-r border-none border-r-base-content/10 bg-base-200/80 px-1.5 text-xs text-base-content transition-all duration-150 ease-out hover:not-disabled:bg-base-content/10 disabled:cursor-not-allowed disabled:opacity-40`,disabled:s.currentPage===0,onClick:w[1]||=e=>C(`previous`)},[f(m(i),{size:14})],8,_),(p(!0),l(c,null,o(s.visiblePages,(n,r)=>(p(),l(c,{key:n},[r>0&&s.visiblePages[r-1]!==n-1?(p(),l(`span`,v,` ··· `)):a(``,!0),d(`button`,{class:e([`flex h-7 min-w-8 cursor-pointer items-center justify-center border-r border-none border-r-base-content/10 bg-base-200/80 px-1.5 text-xs text-base-content transition-all duration-150 ease-out last:border-r-0 hover:not-disabled:bg-base-content/10 disabled:cursor-not-allowed disabled:opacity-40`,{"bg-primary! text-primary-content! hover:bg-primary!":s.currentPage===n}]),onClick:e=>C(`goToPage`,n)},t(n+1),11,y)],64))),128)),d(`button`,{class:`flex h-7 min-w-7 cursor-pointer items-center justify-center border-r border-none border-r-base-content/10 bg-base-200/80 px-1.5 text-xs text-base-content transition-all duration-150 ease-out last:border-r-0 hover:not-disabled:bg-base-content/10 disabled:cursor-not-allowed disabled:opacity-40`,disabled:s.currentPage>=s.totalPages-1,onClick:w[2]||=e=>C(`next`)},[f(m(n),{size:14})],8,b),d(`button`,{class:`flex h-7 min-w-7 cursor-pointer items-center justify-center border-none bg-base-200/80 px-1.5 text-xs text-base-content transition-all duration-150 ease-out last:border-r-0 hover:not-disabled:bg-base-content/10 disabled:cursor-not-allowed disabled:opacity-40`,disabled:s.currentPage>=s.totalPages-1,onClick:w[3]||=e=>C(`goToPage`,s.totalPages-1)},[f(m(r),{size:14})],8,x)]))}}),{__name:`ConnectionsPagination`});export{S as t};