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