import{$i as e,Ai as t,At as n,Ft as r,Pt as i,Si as a,Xi as o,Zi as s,_i as c,fi as l,hi as u,ji as d,jt as f,vi as p,wi as m}from"./CzLxtfx3.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=m({__name:`ConnectionsPagination`,props:{currentPage:{},totalPages:{},visiblePages:{}},emits:[`goToPage`,`previous`,`next`],setup(m,{emit:S}){let C=S;return(S,w)=>(t(),p(`div`,h,[u(`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:m.currentPage===0,onClick:w[0]||=e=>C(`goToPage`,0)},[a(o(f),{size:14})],8,g),u(`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:m.currentPage===0,onClick:w[1]||=e=>C(`previous`)},[a(o(r),{size:14})],8,_),(t(!0),p(l,null,d(m.visiblePages,(n,r)=>(t(),p(l,{key:n},[r>0&&m.visiblePages[r-1]!==n-1?(t(),p(`span`,v,` ··· `)):c(``,!0),u(`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!":m.currentPage===n}]),onClick:e=>C(`goToPage`,n)},e(n+1),11,y)],64))),128)),u(`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:m.currentPage>=m.totalPages-1,onClick:w[2]||=e=>C(`next`)},[a(o(i),{size:14})],8,b),u(`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:m.currentPage>=m.totalPages-1,onClick:w[3]||=e=>C(`goToPage`,m.totalPages-1)},[a(o(n),{size:14})],8,x)]))}}),C=Object.assign(S,{__name:`ConnectionsPagination`});export{C as t};