1import{_ as c,o as t,c as a,f as r,p as n,K as u,F as m,r as P,t as g}from"./Cs0VJFok.js";const h={name:"PostsPaginator",props:{currentPage:{type:Number,default:1},pageNumber:{type:Number,default:1}},computed:{pages(){const e=this.currentPage>3?this.currentPage-2:2,s=this.currentPage<this.pageNumber-2?parseInt(this.currentPage)+2:this.pageNumber-1,i=[];for(let o=e;o<=s;o++)i.push(o);return i},nextPage(){return this.currentPage<this.pageNumber?parseInt(this.currentPage)+1:this.currentPage},prevPage(){return this.currentPage>1?parseInt(this.currentPage)-1:this.currentPage}}},d={class:"paginator w-100 text-center"},f={key:0,class:"list-inline d-inline-block"},$={key:0,class:"list-inline-item"},b=["href"],_={key:1,class:"list-inline-item"},N=["href"],k={key:2,class:"list-inline-item"},y=["href"],v={key:3,class:"list-inline-item"},I=["href"];function B(e,s,i,o,C,l){return t(),a("div",d,[i.pageNumber>1?(t(),a("ul",f,[e.$props.currentPage>1?(t(),a("li",$,[r("a",{href:"?page=".concat(l.prevPage)},"Ðазад",8,b)])):n("",!0),r("li",{class:u(["list-inline-item",{active:parseInt(e.$props.currentPage)===1}])},[...s[0]||(s[0]=[r("a",{href:"?page=1"},"1",-1)])],2),e.$props.currentPage>3?(t(),a("li",_,[...s[1]||(s[1]=[r("a",{class:"#"},"...",-1)])])):n("",!0),(t(!0),a(m,null,P(l.pages,p=>(t(),a("li",{key:p,class:u(["list-inline-item",{active:p===parseInt(e.$props.currentPage)}])},[r("a",{href:"?page=".concat(p)},g(p),9,N)],2))),128)),e.$props.currentPage<e.$props.pageNumber-3?(t(),a("li",k,[...s[2]||(s[2]=[r("a",{class:"#"},"...",-1)])])):n("",!0),r("li",{class:u(["list-inline-item",{active:parseInt(e.$props.currentPage)===e.$props.pageNumber}])},[r("a",{href:"?page=".concat(e.$props.pageNumber)},g(e.$props.pageNumber),9,y)],2),e.$props.currentPage<e.$props.pageNumber?(t(),a("li",v,[r("a",{href:"?page=".concat(l.nextPage)},"ÐпеÑед",8,I)])):n("",!0)])):n("",!0)])}const V=Object.assign(c(h,[["render",B],["__scopeId","data-v-5cd54dbd"]]),{__name:"BlogPostsPaginator"});export{V as P};
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.