import{Kt as e,Q as t,Qt as n,R as r,Tn as i,X as a,Y as o,Z as s,at as c,fr as l,i as u,lr as d,or as f,st as p}from"./dist-CoD0k1Bd.js";import{t as m}from"./button-mN_poAXs.js";var h={key:0,class:`flex items-center justify-between gap-4 px-2`},g={class:`text-sm text-muted-foreground`},_={key:0},v={class:`flex items-center gap-1`},y=[`innerHTML`],b=p({__name:`Pagination`,props:{links:{},from:{},to:{},total:{}},setup(p){return(b,x)=>p.links.length>3?(e(),t(`div`,h,[o(`div`,g,[p.total===void 0?s(``,!0):(e(),t(`span`,_,`Menampilkan `+l(p.from)+`–`+l(p.to)+` dari `+l(p.total)+` data`,1))]),o(`div`,v,[(e(!0),t(r,null,n(p.links,(n,o)=>(e(),t(r,{key:o},[n.url?(e(),a(f(m),{key:0,variant:`ghost`,size:`sm`,class:d({"bg-muted font-medium":n.active}),"as-child":``},{default:i(()=>[c(f(u),{href:n.url,innerHTML:n.label},null,8,[`href`,`innerHTML`])]),_:2},1032,[`class`])):(e(),t(`span`,{key:1,class:`px-2 text-sm text-muted-foreground`,innerHTML:n.label},null,8,y))],64))),128))])])):s(``,!0)}});export{b as t};