import{At as e,K as t,Nt as n,Q as r,Y as i,Z as a,dt as o,ft as s,jt as c,nt as l,rt as u}from"#entry";import{G as d,J as f,K as p,q as m}from"./DC04ikWQ.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=Object.assign(u({__name:`ConnectionsPagination`,props:{currentPage:{},totalPages:{},visiblePages:{}},emits:[`goToPage`,`previous`,`next`],setup(u,{emit:S}){let C=S;return(S,w)=>(o(),r(`div`,h,[i(`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:u.currentPage===0,onClick:w[0]||=e=>C(`goToPage`,0)},[l(e(p),{size:14})],8,g),i(`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:u.currentPage===0,onClick:w[1]||=e=>C(`previous`)},[l(e(f),{size:14})],8,_),(o(!0),r(t,null,s(u.visiblePages,(e,s)=>(o(),r(t,{key:e},[s>0&&u.visiblePages[s-1]!==e-1?(o(),r(`span`,v,` ··· `)):a(``,!0),i(`button`,{class:c([`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!":u.currentPage===e}]),onClick:t=>C(`goToPage`,e)},n(e+1),11,y)],64))),128)),i(`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:u.currentPage>=u.totalPages-1,onClick:w[2]||=e=>C(`next`)},[l(e(m),{size:14})],8,b),i(`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:u.currentPage>=u.totalPages-1,onClick:w[3]||=e=>C(`goToPage`,u.totalPages-1)},[l(e(d),{size:14})],8,x)]))}}),{__name:`ConnectionsPagination`});export{S as t};