PageSourceSearch

https://mst.ru/_nuxt/YENrVJy3.js

js mst.ru collected 2026-10-05 03:41:29 UTC 2,560 bytes, 1 lines download raw bytes

1import{_ as S}from"./BRSGJtMK.js";import{an as T,a1 as U,g as P,U as s,k,h as g,af as n,i as r,aE as l,n as c,J as C,j as d,F as q,a2 as z,ac as h,o as V,b as A,B as I}from"./7k1903kh.js";import{_ as j}from"./BjEKJUS5.js";const E={class:"pager"},F={class:"center-wrap"},D={class:"pager__inner grid-row"},J={class:"pager__list --column-4"},L={key:1,class:"--column-4"},R={class:"pager__quantity flex --just-end --align-center --column-4"},Q={__name:"pager",props:{currentPage:Number,totalPages:Number,pageSize:{type:Number,default:8},pager:{type:Array,default:[{label:"8",value:8},{label:"12",value:12}]}},emits:["page-changed","show-more","per-page"],setup(t,{emit:$}){const{$gsap:B}=T(),p=t,f=$,i=U(p.pageSize),u=P(()=>{let e=Math.max(1,p.currentPage-Math.floor(1.5)),a=Math.min(p.totalPages,e+3-1);return a-e<3&&(e=Math.max(1,a-3+1)),Array.from({length:a-e+1},(w,v)=>e+v)}),b=P(()=>u.value[0]),m=P(()=>u.value[u.value.length-1]),_=y=>{f("page-changed",y),x()},x=()=>{B.to(window,{duration:.5,scrollTo:0})},N=()=>{f("show-more")},M=()=>{f("per-page",i),x()};return(y,e)=>{const a=S,w=A,v=j;return s(),k("div",E,[g("div",F,[g("div",D,[g("div",J,[n(b)>1?(s(),r(a,{key:0,color:"gray",onClick:e[0]||(e[0]=o=>_(1)),class:C(["pager__btn",{"is-active":t.currentPage==1}])},{default:l(()=>[...e[3]||(e[3]=[c(" 1 ",-1)])]),_:1},8,["class"])):d("",!0),n(b)>2?(s(),r(a,{key:1,color:"gray",class:"pager__btn"},{default:l(()=>[...e[4]||(e[4]=[c("...",-1)])]),_:1})):d("",!0),(s(!0),k(q,null,z(n(u),o=>(s(),r(a,{key:o,color:"gray",onClick:G=>_(o),class:C(["pager__btn",{"is-active":o==t.currentPage}])},{default:l(()=>[c(h(o),1)]),_:2},1032,["onClick","class"]))),128)),n(m)<t.totalPages-1?(s(),r(a,{key:2,color:"gray",class:"pager__btn"},{default:l(()=>[...e[5]||(e[5]=[c("...",-1)])]),_:1})):d("",!0),n(m)<t.totalPages?(s(),r(a,{key:n(m),color:"gray",onClick:e[1]||(e[1]=o=>_(t.totalPages)),class:C(["pager__btn",{"is-active":n(m)==t.currentPage}])},{default:l(()=>[c(h(t.totalPages),1)]),_:1},8,["class"])):d("",!0)]),t.totalPages>1&&t.totalPages>t.currentPage?(s(),r(a,{key:0,class:"pager__more-btn --column-4",onClick:N,color:"gray"},{prefix:l(()=>[V(w,{name:"ui/plus"})]),default:l(()=>[e[6]||(e[6]=c(" Показать еще ",-1))]),_:1})):(s(),k("div",L)),g("div",R,[e[7]||(e[7]=g("div",{class:"pager__quantity-label"},"Выводить по:",-1)),V(v,{class:"pager__select",placeholder:"Страниц",onChange:M,items:t.pager,modelValue:n(i),"onUpdate:modelValue":e[2]||(e[2]=o=>I(i)?i.value=o:null)},null,8,["items","modelValue"])])])])])}}};export{Q as _};

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.