var Pagination;export default window.Pagination=Pagination=class extends React.Component{constructor(t){var e,s;super(t),this.state={pages:null!=(e=t.pages)?e:0,now:null!=(s=t.now)?s:0,wing:3}}aSetPage(){var t;return"function"==typeof(t=this.props).onChange?t.onChange(this.state.now):void 0}setPage(t){return this.setState({now:t},this.aSetPage.bind(this))}setNow(t){return this.setState({now:t})}prev(){if(this.state.now>1)return this.setPage(this.state.now-1)}next(){if(this.state.now1){for(t.push(1),a=n=2,w=l=Math.min(s,e);2<=w?n<=w:n>=w;a=2<=w?++n:--n)t.push(a);if((l=Math.max(l+1,c-e))<=(p=Math.min(s,c+e)))for(a=i=m=l,d=p;m<=d?i<=d:i>=d;a=m<=d?++i:--i)t.push(a);if((l=Math.max(p+1,s-e))<=s)for(a=h=f=l,P=s;f<=P?h<=P:h>=P;a=f<=P?++h:--h)t.push(a)}for(g=[],u=0,r=0,o=t.length;r1&&g.push(React.createElement("span",null,"...")),g.push(React.createElement("a",{onClick:this.setPage.bind(this,a),className:a===c?"selected":""},a)),u=a;return v={},0===g.length&&(v={display:"none"}),React.createElement("div",{className:"pagination",style:v},React.createElement("a",{className:c<2?"disable":"",onClick:this.prev.bind(this)},"<"),g,React.createElement("a",{className:this.state.now===this.state.pages?"disable":"",onClick:this.next.bind(this)},">"))}}; //# sourceMappingURL=pagination.min.js.map