import{Cr as e,Gt as t,Jt as n,Kt as r,Mr as i,Yt as a,_r as o,dr as s,gr as c,ii as l,jr as u,mr as d,ni as f,ti as p,xr as m}from"./ChQ2IioC.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=e({__name:`ConnectionsPagination`,props:{currentPage:{},totalPages:{},visiblePages:{}},emits:[`goToPage`,`previous`,`next`],setup(e,{emit:S}){let C=S;return(S,w)=>(u(),o(`div`,h,[d(`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)},[m(p(r),{size:14})],8,g),d(`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`)},[m(p(a),{size:14})],8,_),(u(!0),o(s,null,i(e.visiblePages,(t,n)=>(u(),o(s,{key:t},[n>0&&e.visiblePages[n-1]!==t-1?(u(),o(`span`,v,` ··· `)):c(``,!0),d(`button`,{class:f([`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)},l(t+1),11,y)],64))),128)),d(`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`)},[m(p(n),{size:14})],8,b),d(`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)},[m(p(t),{size:14})],8,x)]))}}),C=Object.assign(S,{__name:`ConnectionsPagination`});export{C as t};