import{D as e,G as t,H as n,T as r,b as i,d as a,v as o,vt as s,wt as c,x as l,xt as u}from"./CaGtQlYh.js";import{J as d,X as f,Y as p,q 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(e({__name:`ConnectionsPagination`,props:{currentPage:{},totalPages:{},visiblePages:{}},emits:[`goToPage`,`previous`,`next`],setup(e,{emit:S}){let C=S;return(S,w)=>(n(),l(`div`,h,[o(`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:e.currentPage===0,onClick:w[0]||=e=>C(`goToPage`,0)},[r(s(d),{size:14})],8,g),o(`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:e.currentPage===0,onClick:w[1]||=e=>C(`previous`)},[r(s(f),{size:14})],8,_),(n(!0),l(a,null,t(e.visiblePages,(t,r)=>(n(),l(a,{key:t},[r>0&&e.visiblePages[r-1]!==t-1?(n(),l(`span`,v,` ··· `)):i(``,!0),o(`button`,{class:u([`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!":e.currentPage===t}]),onClick:e=>C(`goToPage`,t)},c(t+1),11,y)],64))),128)),o(`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:e.currentPage>=e.totalPages-1,onClick:w[2]||=e=>C(`next`)},[r(s(p),{size:14})],8,b),o(`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:e.currentPage>=e.totalPages-1,onClick:w[3]||=t=>C(`goToPage`,e.totalPages-1)},[r(s(m),{size:14})],8,x)]))}}),{__name:`ConnectionsPagination`});export{S as t};