PageSourceSearch

https://buildingminds.com/_nuxt/DhV9x_QY.js

js buildingminds.com collected 2026-09-25 14:37:53 UTC 1,385 bytes, 1 lines download raw bytes

1import{w as c}from"./CYS1HB83.js";import{k as h,c as g,f as l,o,i as u,e as v,u as d,F as p,r as $,n as b,t as k}from"./Q6C8zf6a.js";const C=["disabled"],w=["onClick"],y={key:1},M=["disabled"],B=h({__name:"GenericPagination",props:{currentPage:{default:5},limit:{default:10},total:{default:200},maxAround:{default:2}},emits:["next","prev","page"],setup(a){const m=a,r=g(()=>Math.ceil(m.total/m.limit)),P=g(()=>{const{currentPage:e,maxAround:s}=m,t=[];let n=1;for(;n<=r.value;)n===r.value||[1,e].includes(n)||n<e&&n>=e-(s+Math.max(0,e+s-r.value))||n>e&&n<=e+(s+Math.max(0,s-(e-1)))?t.push(n):t.push(null),n++;return t.reduce((i,f)=>f===null&&i[i.length-1]===null?i:[...i,f],[])});return(e,s)=>(o(),l("div",{class:b({"inline-flex":!e.$attrs?.class})},[u(e.$slots,"prev",{disabled:a.currentPage<2},()=>[v("button",{disabled:a.currentPage>=d(r),onClick:s[0]||(s[0]=c(t=>e.$emit("prev"),["prevent"]))},"<",8,C)]),(o(!0),l(p,null,$(d(P),t=>u(e.$slots,"page",{key:t,isCurrentPage:a.currentPage===t,page:t},()=>[t?(o(),l("button",{key:0,onClick:c(n=>e.$emit("page",t),["prevent"])},k(t),9,w)):(o(),l("span",y," ... "))])),128)),u(e.$slots,"truncate"),u(e.$slots,"next",{disabled:a.currentPage>=d(r)},()=>[v("button",{disabled:a.currentPage>=d(r),onClick:s[1]||(s[1]=c(t=>e.$emit("prev"),["prevent"]))},">",8,M)])],2))}}),F=Object.assign(B,{__name:"GenericPagination"});export{F 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.