1import{_ as f}from"./vEJ-juNt.js";import{l as g,p as v,X as V,a0 as h,u as l,a2 as x,a7 as P,b as k,n as s,Q as w,q as B,j as b}from"./B4smR5oT.js";import{_ as I}from"./yOdsbMB_.js";const R={class:"flex gap-2 items-center justify-center"},j=g({__name:"BasePagination",props:{items:{},perPage:{},modelValue:{}},emits:["update:modelValue"],setup(c,{emit:i}){const a=c,m=i,r=b(null),t=s({get:()=>a.modelValue,set:e=>{m("update:modelValue",e)}}),n=s(()=>a.perPage??10),u=s(()=>Math.ceil(a.items.length/n.value));v(t,()=>{B(()=>{r.value?.scrollIntoView({behavior:"smooth",block:"start"})})});const p=s(()=>{const e=(t.value-1)*n.value,o=e+n.value;return a.items.slice(e,o)});return(e,o)=>{const d=f;return w(),V("div",{ref_key:"sectionRef",ref:r},[h(e.$slots,"default",{items:l(p)},void 0,!0),x("div",R,[P(d,{modelValue:l(t),"onUpdate:modelValue":o[0]||(o[0]=_=>k(t)?t.value=_:null),size:"sm","show-first":"","show-last":"",max:7,"page-count":1,total:l(u)},null,8,["modelValue","total"])])],512)}}}),q=I(j,[["__scopeId","data-v-35a55a27"]]);export{q as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.