import{r as c,c as n,f as d,o as r,b as l,F as i,g as p,i as g,w as m,n as u}from"./app-B4kV47qU.js";const v={key:0},k={class:"paginate-container mt-3"},b=["innerHTML"],h=["innerHTML"],y={__name:"Paginate",props:{links:[Object,Array],preserveState:!1,preserveScroll:!1},setup(a){return(t,_)=>{const o=c("Link");return a.links.length>3?(r(),n("div",v,[l("div",k,[(r(!0),n(i,null,p(a.links,(e,s)=>(r(),n(i,null,[e.url===null?(r(),n("div",{key:s,class:"paginate-link paginate-link-null border border-gray-200 dark:border-gray-600",innerHTML:t.sanitizeHtml(e.label)},null,8,b)):(r(),g(o,{"preserve-state":a.preserveState,"preserve-scroll":a.preserveScroll,key:`link-${s}`,class:u(["paginate-link paginate-link-active border border-gray-300 dark:border-gray-700",{"paginate-link-active-bg":e.active}]),href:t.sanitizeHtml(e.url)},{default:m(()=>[l("span",{innerHTML:t.sanitizeHtml(e.label)},null,8,h)]),_:2},1032,["preserve-state","preserve-scroll","class","href"]))],64))),256))])])):d("",!0)}}};export{y as _};
