(self["webpackJsonp@lyrio/ui"]=self["webpackJsonp@lyrio/ui"]||[]).push([[25],{1794:function(e,t,a){"use strict";var n=function(e){return{active:!1,type:"ellipsisItem",value:e}},i=function(e){return{active:!1,type:"prevItem",value:Math.max(1,e-1)}},r=function(e,t){return{active:!1,type:"nextItem",value:Math.min(e+1,t)}},o=function(e){return{active:!1,type:"lastItem",value:e}},l=Math.ceil,c=Math.max;var s=function(e,t,a,n){for(var i=-1,r=c(l((t-e)/(a||1)),0),o=Array(r);r--;)o[n?r:++i]=e,e+=a;return o},u=a(132),p=a(113);var v=function(e){return function(t,a,n){return n&&"number"!=typeof n&&Object(u.a)(t,a,n)&&(a=n=void 0),t=Object(p.a)(t),void 0===a?(a=t,t=0):a=Object(p.a)(a),n=void 0===n?t<a?1:-1:Object(p.a)(n),s(t,a,n,e)}}(),d=a(38),g=function(e,t,a){var i=t-1;return(i!==e+1?n:a)(i)},b=function(e,t,a){var i=e+1;return(i!==t-1?n:a)(i)},f=function(e,t,a){return Object(d.a)(v(e,t+1),a)};t.a=function(e){var t,a={activePage:+(t=e).activePage,boundaryRange:+t.boundaryRange,hideEllipsis:!!t.hideEllipsis,siblingRange:+t.siblingRange,totalPages:+t.totalPages},n=a.activePage,l=a.totalPages,c=function(e){return function(t){return{active:e===t,type:"pageItem",value:t}}}(n),s=function(e){var t=e.boundaryRange;return 1+(e.hideEllipsis?0:2)+2*e.siblingRange+2*t>=e.totalPages}(a)?f(1,l,c):function(e,t){var a=e.activePage,n=e.boundaryRange,i=e.hideEllipsis,r=e.siblingRange,o=e.totalPages,l=i?0:1,c=n,s=f(1,c,t),u=o+1-n,p=f(u,o,t),v=Math.min(Math.max(a-r,c+l+1),u-l-2*r-1),d=v+2*r,h=f(v,d,t);return[].concat(s,[!i&&g(c,v,t)],h,[!i&&b(d,u,t)],p).filter(Boolean)}(a,c);return[{active:!1,type:"firstItem",value:1},i(n)].concat(s,[r(n,l),o(l)])}},1806:function(e,t,a){"use strict";a.d(t,"a",(function(){return P}));var n=a(2),i=a(11),r=a(38),o=a(12),l=a(8),c=(a(7),a(0)),s=a.n(c),u=a(1794),p=a(117),v=a(228),d=a(601),g=a(24),b=a.n(g),f=a(174),h=a(173),y=function(e){function t(){for(var t,a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];return(t=e.call.apply(e,[this].concat(n))||this).handleClick=function(e){Object(l.a)(t.props,"onClick",e,t.props)},t.handleKeyDown=function(e){Object(l.a)(t.props,"onKeyDown",e,t.props),b.a.getCode(e)===b.a.Enter&&Object(l.a)(t.props,"onClick",e,t.props)},t.handleOverrides=function(){return{onClick:t.handleClick,onKeyDown:t.handleKeyDown}},t}return Object(i.a)(t,e),t.prototype.render=function(){var e=this.props,t=e.active,a=e.type,n=this.props.disabled||"ellipsisItem"===a;return h.a.create(this.props,{defaultProps:{active:t,"aria-current":t,"aria-disabled":n,disabled:n,onClick:this.handleClick,onKeyDown:this.handleKeyDown,tabIndex:n?-1:0},overrideProps:this.handleOverrides})},t}(c.Component);y.handledProps=["active","disabled","onClick","onKeyDown","type"],y.propTypes={},y.create=Object(f.g)(y,(function(e){return{content:e}}));var m=y,P=function(e){function t(){for(var t,a=arguments.length,i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).handleItemClick=function(e,a){var i=a.value;+t.state.activePage!==+i&&(t.setState({activePage:i}),Object(l.a)(t.props,"onPageChange",e,Object(n.a)({},t.props,{activePage:i})))},t.handleItemOverrides=function(e,a,n){return function(i){return{active:e,type:a,key:a+"-"+n,onClick:function(e,a){Object(l.a)(i,"onClick",e,a),"ellipsisItem"!==a.type&&t.handleItemClick(e,a)}}}},t}Object(i.a)(t,e);var a=t.prototype;return a.getInitialAutoControlledState=function(){return{activePage:1}},a.render=function(){var e=this,a=this.props,i=a["aria-label"],l=a.boundaryRange,c=a.disabled,v=a.ellipsisItem,g=a.siblingRange,b=a.totalPages,f=this.state.activePage,h=Object(u.a)({activePage:f,boundaryRange:l,hideEllipsis:Object(o.a)(v),siblingRange:g,totalPages:b}),y=Object(p.a)(t,this.props);return s.a.createElement(d.a,Object(n.a)({},y,{"aria-label":i,pagination:!0,role:"navigation"}),Object(r.a)(h,(function(t){var a=t.active,n=t.type,i=t.value;return m.create(e.props[n],{defaultProps:{content:i,disabled:c,value:i},overrideProps:e.handleItemOverrides(a,n,i)})})))},t}(v.a);P.handledProps=["activePage","aria-label","boundaryRange","defaultActivePage","disabled","ellipsisItem","firstItem","lastItem","nextItem","onPageChange","pageItem","prevItem","siblingRange","totalPages"],P.propTypes={},P.autoControlledProps=["activePage"],P.defaultProps={"aria-label":"Pagination Navigation",boundaryRange:1,ellipsisItem:"...",firstItem:{"aria-label":"First item",content:"«"},lastItem:{"aria-label":"Last item",content:"»"},nextItem:{"aria-label":"Next item",content:"⟩"},pageItem:{},prevItem:{"aria-label":"Previous item",content:"⟨"},siblingRange:1},P.Item=m}}]);
//# sourceMappingURL=25.0a646b45.chunk.js.map