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