import{Ar as e,Gt as t,Jt as n,Sr as r,Wt as i,br as a,ei as o,gr as s,hr as c,jr as l,pr as u,qt as d,ri as f,ti as p,ur as m}from"./D-ctIW6J.js";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=r({__name:`ConnectionsPagination`,props:{currentPage:{},totalPages:{},visiblePages:{}},emits:[`goToPage`,`previous`,`next`],setup(r,{emit:S}){let C=S;return(S,w)=>(e(),s(`div`,h,[u(`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:r.currentPage===0,onClick:w[0]||=e=>C(`goToPage`,0)},[a(o(t),{size:14})],8,g),u(`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:r.currentPage===0,onClick:w[1]||=e=>C(`previous`)},[a(o(n),{size:14})],8,_),(e(!0),s(m,null,l(r.visiblePages,(t,n)=>(e(),s(m,{key:t},[n>0&&r.visiblePages[n-1]!==t-1?(e(),s(`span`,v,` ··· `)):c(``,!0),u(`button`,{class:p([`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!":r.currentPage===t}]),onClick:e=>C(`goToPage`,t)},f(t+1),11,y)],64))),128)),u(`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:r.currentPage>=r.totalPages-1,onClick:w[2]||=e=>C(`next`)},[a(o(d),{size:14})],8,b),u(`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:r.currentPage>=r.totalPages-1,onClick:w[3]||=e=>C(`goToPage`,r.totalPages-1)},[a(o(i),{size:14})],8,x)]))}}),C=Object.assign(S,{__name:`ConnectionsPagination`});export{C as t};