text: "use strict";function communityUser(){const t=document.querySelector(".view-community-user").getAttribute("data-type"),e=document.querySelector(".view-community-user").getAttribute("data-user"),o=document.querySelector(".view-community-user__list"),i=document.querySelectorAll(".view-community-user__page-button"),a=[0,0,0,0,0,0,0];let c;function n(){const t=document.querySelector(".partial-community-user-list"),e=Number(Bem.data(t,"total-pages"));let o,n;c=Number(Bem.data(t,"current-page")),a[0]=c>0?0:void 0,a[1]=c>0?c-1:void 0,a[2]=void 0,a[3]=void 0,a[4]=void 0,0===c?(o=0,n=e>3?3:e-1):c===e-1?(o=Math.max(e-3,0),n=e-1):(o=c-1,n=c+1);for(let t=o,e=2;t<=n;t++,e++)a[e]=t;a[5]=c<e-1?c+1:void 0,a[6]=c<e-1?e-1:void 0,i.forEach(((t,e)=>{e<=1||e>=5?t.disabled=void 0===a[e]:(Bem.setState(t,"hidden",void 0===a[e]),Bem.setState(t,"active",a[e]===c),t.innerHTML=a[e]+1)}))}i&&o&&(n(),i.forEach(((i,c)=>{i.addEventListener("click",(()=>{void 0===a[c]||Bem.hasState(i,"active")||async function(i){const a=new URLSearchParams({page:i,tab:t}).toString(),c=await fetch("/community/user/".concat(e,"/page?").concat(a));o.innerHTML=await c.text();const r=[location.protocol,"//",location.host,location.pathname].join("");window.history.pushState({},"",r+"?"+a),n()}(a[c])}))})))}communityUser();
  //# sourceMappingURL=community-user-es2015.js.map
  