import{Cr as e,Kt as t,Nr as n,Pr as r,Tr as i,Xt as a,Yt as o,gr as s,ii as c,oi as l,pr as u,qt as d,ri as f,vr as p,yr as m}from"./KXnyWfWg.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=i({__name:`ConnectionsPagination`,props:{currentPage:{},totalPages:{},visiblePages:{}},emits:[`goToPage`,`previous`,`next`],setup(i,{emit:S}){let C=S;return(S,w)=>(n(),m(`div`,h,[s(`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:i.currentPage===0,onClick:w[0]||=e=>C(`goToPage`,0)},[e(f(d),{size:14})],8,g),s(`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:i.currentPage===0,onClick:w[1]||=e=>C(`previous`)},[e(f(a),{size:14})],8,_),(n(!0),m(u,null,r(i.visiblePages,(e,t)=>(n(),m(u,{key:e},[t>0&&i.visiblePages[t-1]!==e-1?(n(),m(`span`,v,` ··· `)):p(``,!0),s(`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!":i.currentPage===e}]),onClick:t=>C(`goToPage`,e)},l(e+1),11,y)],64))),128)),s(`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:i.currentPage>=i.totalPages-1,onClick:w[2]||=e=>C(`next`)},[e(f(o),{size:14})],8,b),s(`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:i.currentPage>=i.totalPages-1,onClick:w[3]||=e=>C(`goToPage`,i.totalPages-1)},[e(f(t),{size:14})],8,x)]))}}),C=Object.assign(S,{__name:`ConnectionsPagination`});export{C as t};