import{At as e,Ji as t,Nt as n,Oi as r,Pt as i,Si as a,Yi as o,Zi as s,bi as c,gi as l,hi as u,ki as d,kt as f,pi as p,ui as m}from"./CWa6_HoJ.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=a({__name:`ConnectionsPagination`,props:{currentPage:{},totalPages:{},visiblePages:{}},emits:[`goToPage`,`previous`,`next`],setup(a,{emit:S}){let C=S;return(S,w)=>(r(),l(`div`,h,[p(`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:a.currentPage===0,onClick:w[0]||=e=>C(`goToPage`,0)},[c(t(e),{size:14})],8,g),p(`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:a.currentPage===0,onClick:w[1]||=e=>C(`previous`)},[c(t(i),{size:14})],8,_),(r(!0),l(m,null,d(a.visiblePages,(e,t)=>(r(),l(m,{key:e},[t>0&&a.visiblePages[t-1]!==e-1?(r(),l(`span`,v,` ··· `)):u(``,!0),p(`button`,{class:o([`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!":a.currentPage===e}]),onClick:t=>C(`goToPage`,e)},s(e+1),11,y)],64))),128)),p(`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:a.currentPage>=a.totalPages-1,onClick:w[2]||=e=>C(`next`)},[c(t(n),{size:14})],8,b),p(`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:a.currentPage>=a.totalPages-1,onClick:w[3]||=e=>C(`goToPage`,a.totalPages-1)},[c(t(f),{size:14})],8,x)]))}}),C=Object.assign(S,{__name:`ConnectionsPagination`});export{C as t};