UNPKG

manifest

Version:

Self-hosted Manifest LLM router with embedded server, SQLite database, and dashboard

2 lines (1 loc) 1.1 kB
import{g as h,i,j as d,h as x,S as P,t as f,d as $}from"./vendor-C-Y5oNOq.js";var C=f('<nav class=pagination role=navigation aria-label=Pagination><span class=pagination__summary>Showing <!>&ndash;<!> of </span><div class=pagination__controls><button class="btn btn--outline btn--sm pagination__btn"aria-label="Go to previous page">Previous</button><button class="btn btn--outline btn--sm pagination__btn"aria-label="Go to next page">Next');const w=t=>{const u=()=>(t.currentPage()-1)*t.pageSize+1,v=()=>Math.min(t.currentPage()*t.pageSize,t.totalItems()),l=()=>t.isLoading?.()??!1;return h(P,{get when(){return t.totalItems()>t.pageSize},get children(){var s=C(),e=s.firstChild,_=e.firstChild,o=_.nextSibling,m=o.nextSibling,g=m.nextSibling;g.nextSibling;var S=e.nextSibling,a=S.firstChild,r=a.nextSibling;return i(e,u,o),i(e,v,g),i(e,()=>t.totalItems(),null),d(a,"click",t.onPrevious,!0),d(r,"click",t.onNext,!0),x(n=>{var c=t.currentPage()<=1||l(),b=!t.hasNextPage()||l();return c!==n.e&&(a.disabled=n.e=c),b!==n.t&&(r.disabled=n.t=b),n},{e:void 0,t:void 0}),s}})};$(["click"]);export{w as P};