{"version":3,"sources":["webpack:///./node_modules/rc-pagination/lib/locale/en_US.js","webpack:///./node_modules/rc-pagination/lib/locale/nl_NL.js","webpack:///./node_modules/rc-pagination/es/Pager.js","webpack:///./node_modules/rc-pagination/es/KeyCode.js","webpack:///./node_modules/rc-pagination/es/Options.js","webpack:///./node_modules/rc-pagination/es/Pagination.js","webpack:///./node_modules/rc-pagination/es/locale/zh_CN.js","webpack:///./node_modules/rc-pagination/es/index.js"],"names":["Object","defineProperty","exports","value","items_per_page","jump_to","jump_to_confirm","page","prev_page","next_page","prev_5","next_5","prev_3","next_3","module","props","_classNames","prefixCls","rootPrefixCls","cls","active","className","createElement","title","showTitle","onClick","onKeyPress","e","tabIndex","itemRender","propTypes","number","bool","last","locale","object","string","func","_React$Component","Options","_ref","_temp","_this","_ret","this","_len","arguments","length","args","Array","_key","__proto__","getPrototypeOf","call","apply","concat","state","goInputText","buildOptionText","changeSize","Number","handleChange","setState","target","handleBlur","_this$props","goButton","quickGo","relatedTarget","indexOf","getValidValue","go","keyCode","type","key","_state","current","isNaN","_this2","_props","pageSize","pageSizeOptions","selectComponentClass","selectPrefixCls","disabled","Select","changeSelect","goInput","gotoButton","options","map","opt","i","Option","showSearch","optionLabelProp","dropdownMatchSelectWidth","toString","onChange","getPopupContainer","triggerNode","parentNode","onKeyUp","onBlur","Component","arrayOf","oneOfType","node","defaultProps","noop","calculatePage","p","Math","floor","total","Pagination","hasOnChange","console","warn","defaultCurrent","defaultPageSize","currentInputValue","prevProps","prevState","paginationNode","lastCurrentNode","querySelector","document","activeElement","blur","inputValue","hideOnSinglePage","allPages","undefined","pagerList","jumpPrev","jumpNext","firstPager","lastPager","showQuickJumper","pageBufferSize","showLessItems","prevPage","nextPage","dataOrAriaAttributeProps","keys","reduce","prev","substr","simple","handleGoTO","style","ref","savePaginationNode","hasPrev","runIfEnterPrev","getItemIcon","prevIcon","onKeyDown","handleKeyDown","handleKeyUp","size","next","runIfEnterNext","hasNext","nextIcon","pagerProps","runIfEnter","push","prevItemTitle","nextItemTitle","showPrevNextJumpers","jumpPrevClassString","jumpPrevIcon","runIfEnterJumpPrev","getJumpPrevPage","jumpNextClassString","jumpNextIcon","runIfEnterJumpNext","getJumpNextPage","left","max","right","min","_i","_active","cloneElement","unshift","totalText","showTotal","prevDisabled","nextDisabled","unselectable","showSizeChanger","changePageSize","shouldDisplayQuickJumper","newState","newCurrent","onShowSizeChange","element","icon","iconNode","isValid","isFinite","_props2","preventDefault","currentPage","event","callback","restParams","charCode"],"mappings":"2FAEAA,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAiB,QAAI,CAEnBE,eAAgB,SAChBC,QAAS,QACTC,gBAAiB,UACjBC,KAAM,GAGNC,UAAW,gBACXC,UAAW,YACXC,OAAQ,mBACRC,OAAQ,eACRC,OAAQ,mBACRC,OAAQ,gBAEVC,EAAOZ,QAAUA,EAAiB,S,iCClBlCF,OAAOC,eAAeC,EAAS,aAAc,CAC3CC,OAAO,IAETD,EAAiB,QAAI,CAEnBE,eAAgB,WAChBC,QAAS,UACTC,gBAAiB,aACjBC,KAAM,GAGNC,UAAW,gBACXC,UAAW,kBACXC,OAAQ,oBACRC,OAAQ,sBACRC,OAAQ,oBACRC,OAAQ,uBAEVC,EAAOZ,QAAUA,EAAiB,S,6LCf9B,EAAQ,SAAea,GACzB,IAAIC,EAEAC,EAAYF,EAAMG,cAAgB,QAClCC,EAAM,IAAWF,EAAWA,EAAY,IAAMF,EAAMR,MAAOS,EAAc,GAAI,IAAgBA,EAAaC,EAAY,UAAWF,EAAMK,QAAS,IAAgBJ,EAAaD,EAAMM,YAAaN,EAAMM,WAAY,IAAgBL,EAAaC,EAAY,aAAcF,EAAMR,MAAOS,IAU1R,OAAO,IAAMM,cACX,KACA,CACEC,MAAOR,EAAMS,UAAYT,EAAMR,KAAO,KACtCc,UAAWF,EACXM,QAbc,WAChBV,EAAMU,QAAQV,EAAMR,OAalBmB,WAViB,SAAwBC,GAC3CZ,EAAMW,W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O,EAAIA,EAAO,EAAI,GAAIK,EAAO,EAAGA,EAAOL,EAAMK,IACpG+J,EAAW/J,EAAO,GAAKJ,UAAUI,GAGjB,UAAd6J,EAAMrI,KAAsC,KAAnBqI,EAAMG,UACjCF,EAAS1J,WAAM+E,EAAW4E,IAI9BrK,KAAK+G,eAAiB,SAAUhI,GAC9BmD,EAAOyF,WAAW5I,EAAGmD,EAAOqE,OAG9BvG,KAAKuH,eAAiB,SAAUxI,GAC9BmD,EAAOyF,WAAW5I,EAAGmD,EAAOoF,OAG9BtH,KAAKkI,mBAAqB,SAAUnJ,GAClCmD,EAAOyF,WAAW5I,EAAGmD,EAAOyD,WAG9B3F,KAAKsI,mBAAqB,SAAUvJ,GAClCmD,EAAOyF,WAAW5I,EAAGmD,EAAO0D,WAG9B5F,KAAK0G,WAAa,SAAU3H,GACtBA,EAAE6C,UAAY,GAA4B,UAAX7C,EAAE8C,MACnCK,EAAOjB,aAAaiB,EAAOtB,MAAMiE,qBAKvC,mBAAS,GAEM,QElrBf","file":"npm.rc-pagination.c920b4ddeb9b68365139.js","sourcesContent":["'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n // Options.jsx\n items_per_page: '/ page',\n jump_to: 'Go to',\n jump_to_confirm: 'confirm',\n page: '',\n\n // Pagination.jsx\n prev_page: 'Previous Page',\n next_page: 'Next Page',\n prev_5: 'Previous 5 Pages',\n next_5: 'Next 5 Pages',\n prev_3: 'Previous 3 Pages',\n next_3: 'Next 3 Pages'\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n // Options.jsx\n items_per_page: '/ pagina',\n jump_to: 'Ga naar',\n jump_to_confirm: 'bevestigen',\n page: '',\n\n // Pagination.jsx\n prev_page: 'Vorige pagina',\n next_page: 'Volgende pagina',\n prev_5: 'Vorige 5 pagina\\'s',\n next_5: 'Volgende 5 pagina\\'s',\n prev_3: 'Vorige 3 pagina\\'s',\n next_3: 'Volgende 3 pagina\\'s'\n};\nmodule.exports = exports['default'];","import _defineProperty from 'babel-runtime/helpers/defineProperty';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\n\nvar Pager = function Pager(props) {\n var _classNames;\n\n var prefixCls = props.rootPrefixCls + '-item';\n var cls = classNames(prefixCls, prefixCls + '-' + props.page, (_classNames = {}, _defineProperty(_classNames, prefixCls + '-active', props.active), _defineProperty(_classNames, props.className, !!props.className), _defineProperty(_classNames, prefixCls + '-disabled', !props.page), _classNames));\n\n var handleClick = function handleClick() {\n props.onClick(props.page);\n };\n\n var handleKeyPress = function handleKeyPress(e) {\n props.onKeyPress(e, props.onClick, props.page);\n };\n\n return React.createElement(\n 'li',\n {\n title: props.showTitle ? props.page : null,\n className: cls,\n onClick: handleClick,\n onKeyPress: handleKeyPress,\n tabIndex: '0'\n },\n props.itemRender(props.page, 'page', React.createElement(\n 'a',\n null,\n props.page\n ))\n );\n};\n\nPager.propTypes = {\n page: PropTypes.number,\n active: PropTypes.bool,\n last: PropTypes.bool,\n locale: PropTypes.object,\n className: PropTypes.string,\n showTitle: PropTypes.bool,\n rootPrefixCls: PropTypes.string,\n onClick: PropTypes.func,\n onKeyPress: PropTypes.func,\n itemRender: PropTypes.func\n};\n\nexport default Pager;","export default {\n ZERO: 48,\n NINE: 57,\n\n NUMPAD_ZERO: 96,\n NUMPAD_NINE: 105,\n\n BACKSPACE: 8,\n DELETE: 46,\n ENTER: 13,\n\n ARROW_UP: 38,\n ARROW_DOWN: 40\n};","import _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _createClass from 'babel-runtime/helpers/createClass';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport KEYCODE from './KeyCode';\n\nvar Options = function (_React$Component) {\n _inherits(Options, _React$Component);\n\n function Options() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, Options);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Options.__proto__ || Object.getPrototypeOf(Options)).call.apply(_ref, [this].concat(args))), _this), _this.state = {\n goInputText: ''\n }, _this.buildOptionText = function (value) {\n return value + ' ' + _this.props.locale.items_per_page;\n }, _this.changeSize = function (value) {\n _this.props.changeSize(Number(value));\n }, _this.handleChange = function (e) {\n _this.setState({\n goInputText: e.target.value\n });\n }, _this.handleBlur = function (e) {\n var _this$props = _this.props,\n goButton = _this$props.goButton,\n quickGo = _this$props.quickGo,\n rootPrefixCls = _this$props.rootPrefixCls;\n\n if (goButton) {\n return;\n }\n if (e.relatedTarget && (e.relatedTarget.className.indexOf(rootPrefixCls + '-prev') >= 0 || e.relatedTarget.className.indexOf(rootPrefixCls + '-next') >= 0)) {\n return;\n }\n quickGo(_this.getValidValue());\n }, _this.go = function (e) {\n var goInputText = _this.state.goInputText;\n\n if (goInputText === '') {\n return;\n }\n if (e.keyCode === KEYCODE.ENTER || e.type === 'click') {\n _this.setState({\n goInputText: ''\n });\n _this.props.quickGo(_this.getValidValue());\n }\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(Options, [{\n key: 'getValidValue',\n value: function getValidValue() {\n var _state = this.state,\n goInputText = _state.goInputText,\n current = _state.current;\n\n return !goInputText || isNaN(goInputText) ? current : Number(goInputText);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _props = this.props,\n pageSize = _props.pageSize,\n pageSizeOptions = _props.pageSizeOptions,\n locale = _props.locale,\n rootPrefixCls = _props.rootPrefixCls,\n changeSize = _props.changeSize,\n quickGo = _props.quickGo,\n goButton = _props.goButton,\n selectComponentClass = _props.selectComponentClass,\n buildOptionText = _props.buildOptionText,\n selectPrefixCls = _props.selectPrefixCls,\n disabled = _props.disabled;\n var goInputText = this.state.goInputText;\n\n var prefixCls = rootPrefixCls + '-options';\n var Select = selectComponentClass;\n var changeSelect = null;\n var goInput = null;\n var gotoButton = null;\n\n if (!changeSize && !quickGo) {\n return null;\n }\n\n if (changeSize && Select) {\n var options = pageSizeOptions.map(function (opt, i) {\n return React.createElement(\n Select.Option,\n { key: i, value: opt },\n (buildOptionText || _this2.buildOptionText)(opt)\n );\n });\n\n changeSelect = React.createElement(\n Select,\n {\n disabled: disabled,\n prefixCls: selectPrefixCls,\n showSearch: false,\n className: prefixCls + '-size-changer',\n optionLabelProp: 'children',\n dropdownMatchSelectWidth: false,\n value: (pageSize || pageSizeOptions[0]).toString(),\n onChange: this.changeSize,\n getPopupContainer: function getPopupContainer(triggerNode) {\n return triggerNode.parentNode;\n }\n },\n options\n );\n }\n\n if (quickGo) {\n if (goButton) {\n gotoButton = typeof goButton === 'boolean' ? React.createElement(\n 'button',\n {\n type: 'button',\n onClick: this.go,\n onKeyUp: this.go,\n disabled: disabled\n },\n locale.jump_to_confirm\n ) : React.createElement(\n 'span',\n {\n onClick: this.go,\n onKeyUp: this.go\n },\n goButton\n );\n }\n goInput = React.createElement(\n 'div',\n { className: prefixCls + '-quick-jumper' },\n locale.jump_to,\n React.createElement('input', {\n disabled: disabled,\n type: 'text',\n value: goInputText,\n onChange: this.handleChange,\n onKeyUp: this.go,\n onBlur: this.handleBlur\n }),\n locale.page,\n gotoButton\n );\n }\n\n return React.createElement(\n 'li',\n { className: '' + prefixCls },\n changeSelect,\n goInput\n );\n }\n }]);\n\n return Options;\n}(React.Component);\n\nOptions.propTypes = {\n disabled: PropTypes.bool,\n changeSize: PropTypes.func,\n quickGo: PropTypes.func,\n selectComponentClass: PropTypes.func,\n current: PropTypes.number,\n pageSizeOptions: PropTypes.arrayOf(PropTypes.string),\n pageSize: PropTypes.number,\n buildOptionText: PropTypes.func,\n locale: PropTypes.object,\n rootPrefixCls: PropTypes.string,\n selectPrefixCls: PropTypes.string,\n goButton: PropTypes.oneOfType([PropTypes.bool, PropTypes.node])\n};\nOptions.defaultProps = {\n pageSizeOptions: ['10', '20', '30', '40']\n};\n\n\nexport default Options;","import _defineProperty from 'babel-runtime/helpers/defineProperty';\nimport _extends from 'babel-runtime/helpers/extends';\nimport _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _createClass from 'babel-runtime/helpers/createClass';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React from 'react';\nimport classNames from 'classnames';\nimport PropTypes from 'prop-types';\nimport Pager from './Pager';\nimport Options from './Options';\nimport KEYCODE from './KeyCode';\nimport LOCALE from './locale/zh_CN';\nimport { polyfill } from 'react-lifecycles-compat';\n\nfunction noop() {}\n\nfunction isInteger(value) {\n return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;\n}\n\nfunction defaultItemRender(page, type, element) {\n return element;\n}\n\nfunction calculatePage(p, state, props) {\n var pageSize = p;\n if (typeof pageSize === 'undefined') {\n pageSize = state.pageSize;\n }\n return Math.floor((props.total - 1) / pageSize) + 1;\n}\n\nvar Pagination = function (_React$Component) {\n _inherits(Pagination, _React$Component);\n\n function Pagination(props) {\n _classCallCheck(this, Pagination);\n\n var _this = _possibleConstructorReturn(this, (Pagination.__proto__ || Object.getPrototypeOf(Pagination)).call(this, props));\n\n _initialiseProps.call(_this);\n\n var hasOnChange = props.onChange !== noop;\n var hasCurrent = 'current' in props;\n if (hasCurrent && !hasOnChange) {\n console.warn('Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.'); // eslint-disable-line\n }\n\n var current = props.defaultCurrent;\n if ('current' in props) {\n current = props.current;\n }\n\n var pageSize = props.defaultPageSize;\n if ('pageSize' in props) {\n pageSize = props.pageSize;\n }\n\n _this.state = {\n current: current,\n currentInputValue: current,\n pageSize: pageSize\n };\n return _this;\n }\n\n _createClass(Pagination, [{\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps, prevState) {\n // When current page change, fix focused style of prev item\n // A hacky solution of https://github.com/ant-design/ant-design/issues/8948\n var prefixCls = this.props.prefixCls;\n\n if (prevState.current !== this.state.current && this.paginationNode) {\n var lastCurrentNode = this.paginationNode.querySelector('.' + prefixCls + '-item-' + prevState.current);\n if (lastCurrentNode && document.activeElement === lastCurrentNode) {\n lastCurrentNode.blur();\n }\n }\n }\n }, {\n key: 'getValidValue',\n value: function getValidValue(e) {\n var inputValue = e.target.value;\n var currentInputValue = this.state.currentInputValue;\n\n var value = void 0;\n if (inputValue === '') {\n value = inputValue;\n } else if (isNaN(Number(inputValue))) {\n value = currentInputValue;\n } else {\n value = Number(inputValue);\n }\n return value;\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n prefixCls = _props.prefixCls,\n className = _props.className,\n disabled = _props.disabled;\n\n // When hideOnSinglePage is true and there is only 1 page, hide the pager\n\n if (this.props.hideOnSinglePage === true && this.props.total <= this.state.pageSize) {\n return null;\n }\n\n var props = this.props;\n var locale = props.locale;\n\n var allPages = calculatePage(undefined, this.state, this.props);\n var pagerList = [];\n var jumpPrev = null;\n var jumpNext = null;\n var firstPager = null;\n var lastPager = null;\n var gotoButton = null;\n\n var goButton = props.showQuickJumper && props.showQuickJumper.goButton;\n var pageBufferSize = props.showLessItems ? 1 : 2;\n var _state = this.state,\n current = _state.current,\n pageSize = _state.pageSize;\n\n\n var prevPage = current - 1 > 0 ? current - 1 : 0;\n var nextPage = current + 1 < allPages ? current + 1 : allPages;\n\n var dataOrAriaAttributeProps = Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role') {\n prev[key] = props[key];\n }\n return prev;\n }, {});\n\n if (props.simple) {\n if (goButton) {\n if (typeof goButton === 'boolean') {\n gotoButton = React.createElement(\n 'button',\n {\n type: 'button',\n onClick: this.handleGoTO,\n onKeyUp: this.handleGoTO\n },\n locale.jump_to_confirm\n );\n } else {\n gotoButton = React.createElement(\n 'span',\n {\n onClick: this.handleGoTO,\n onKeyUp: this.handleGoTO\n },\n goButton\n );\n }\n gotoButton = React.createElement(\n 'li',\n {\n title: props.showTitle ? '' + locale.jump_to + this.state.current + '/' + allPages : null,\n className: prefixCls + '-simple-pager'\n },\n gotoButton\n );\n }\n\n return React.createElement(\n 'ul',\n _extends({\n className: prefixCls + ' ' + prefixCls + '-simple ' + props.className,\n style: props.style,\n ref: this.savePaginationNode\n }, dataOrAriaAttributeProps),\n React.createElement(\n 'li',\n {\n title: props.showTitle ? locale.prev_page : null,\n onClick: this.prev,\n tabIndex: this.hasPrev() ? 0 : null,\n onKeyPress: this.runIfEnterPrev,\n className: (this.hasPrev() ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-prev',\n 'aria-disabled': !this.hasPrev()\n },\n props.itemRender(prevPage, 'prev', this.getItemIcon(props.prevIcon))\n ),\n React.createElement(\n 'li',\n {\n title: props.showTitle ? this.state.current + '/' + allPages : null,\n className: prefixCls + '-simple-pager'\n },\n React.createElement('input', {\n type: 'text',\n value: this.state.currentInputValue,\n onKeyDown: this.handleKeyDown,\n onKeyUp: this.handleKeyUp,\n onChange: this.handleKeyUp,\n size: '3'\n }),\n React.createElement(\n 'span',\n { className: prefixCls + '-slash' },\n '/'\n ),\n allPages\n ),\n React.createElement(\n 'li',\n {\n title: props.showTitle ? locale.next_page : null,\n onClick: this.next,\n tabIndex: this.hasPrev() ? 0 : null,\n onKeyPress: this.runIfEnterNext,\n className: (this.hasNext() ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-next',\n 'aria-disabled': !this.hasNext()\n },\n props.itemRender(nextPage, 'next', this.getItemIcon(props.nextIcon))\n ),\n gotoButton\n );\n }\n\n if (allPages <= 5 + pageBufferSize * 2) {\n var pagerProps = {\n locale: locale,\n rootPrefixCls: prefixCls,\n onClick: this.handleChange,\n onKeyPress: this.runIfEnter,\n showTitle: props.showTitle,\n itemRender: props.itemRender\n };\n if (!allPages) {\n pagerList.push(React.createElement(Pager, _extends({}, pagerProps, {\n key: 'noPager',\n page: allPages,\n className: prefixCls + '-disabled'\n })));\n }\n for (var i = 1; i <= allPages; i++) {\n var active = this.state.current === i;\n pagerList.push(React.createElement(Pager, _extends({}, pagerProps, {\n key: i,\n page: i,\n active: active\n })));\n }\n } else {\n var prevItemTitle = props.showLessItems ? locale.prev_3 : locale.prev_5;\n var nextItemTitle = props.showLessItems ? locale.next_3 : locale.next_5;\n if (props.showPrevNextJumpers) {\n var jumpPrevClassString = prefixCls + '-jump-prev';\n if (props.jumpPrevIcon) {\n jumpPrevClassString += ' ' + prefixCls + '-jump-prev-custom-icon';\n }\n jumpPrev = React.createElement(\n 'li',\n {\n title: props.showTitle ? prevItemTitle : null,\n key: 'prev',\n onClick: this.jumpPrev,\n tabIndex: '0',\n onKeyPress: this.runIfEnterJumpPrev,\n className: jumpPrevClassString\n },\n props.itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(props.jumpPrevIcon))\n );\n var jumpNextClassString = prefixCls + '-jump-next';\n if (props.jumpNextIcon) {\n jumpNextClassString += ' ' + prefixCls + '-jump-next-custom-icon';\n }\n jumpNext = React.createElement(\n 'li',\n {\n title: props.showTitle ? nextItemTitle : null,\n key: 'next',\n tabIndex: '0',\n onClick: this.jumpNext,\n onKeyPress: this.runIfEnterJumpNext,\n className: jumpNextClassString\n },\n props.itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(props.jumpNextIcon))\n );\n }\n lastPager = React.createElement(Pager, {\n locale: props.locale,\n last: true,\n rootPrefixCls: prefixCls,\n onClick: this.handleChange,\n onKeyPress: this.runIfEnter,\n key: allPages,\n page: allPages,\n active: false,\n showTitle: props.showTitle,\n itemRender: props.itemRender\n });\n firstPager = React.createElement(Pager, {\n locale: props.locale,\n rootPrefixCls: prefixCls,\n onClick: this.handleChange,\n onKeyPress: this.runIfEnter,\n key: 1,\n page: 1,\n active: false,\n showTitle: props.showTitle,\n itemRender: props.itemRender\n });\n\n var left = Math.max(1, current - pageBufferSize);\n var right = Math.min(current + pageBufferSize, allPages);\n\n if (current - 1 <= pageBufferSize) {\n right = 1 + pageBufferSize * 2;\n }\n\n if (allPages - current <= pageBufferSize) {\n left = allPages - pageBufferSize * 2;\n }\n\n for (var _i = left; _i <= right; _i++) {\n var _active = current === _i;\n pagerList.push(React.createElement(Pager, {\n locale: props.locale,\n rootPrefixCls: prefixCls,\n onClick: this.handleChange,\n onKeyPress: this.runIfEnter,\n key: _i,\n page: _i,\n active: _active,\n showTitle: props.showTitle,\n itemRender: props.itemRender\n }));\n }\n\n if (current - 1 >= pageBufferSize * 2 && current !== 1 + 2) {\n pagerList[0] = React.cloneElement(pagerList[0], {\n className: prefixCls + '-item-after-jump-prev'\n });\n pagerList.unshift(jumpPrev);\n }\n if (allPages - current >= pageBufferSize * 2 && current !== allPages - 2) {\n pagerList[pagerList.length - 1] = React.cloneElement(pagerList[pagerList.length - 1], {\n className: prefixCls + '-item-before-jump-next'\n });\n pagerList.push(jumpNext);\n }\n\n if (left !== 1) {\n pagerList.unshift(firstPager);\n }\n if (right !== allPages) {\n pagerList.push(lastPager);\n }\n }\n\n var totalText = null;\n\n if (props.showTotal) {\n totalText = React.createElement(\n 'li',\n { className: prefixCls + '-total-text' },\n props.showTotal(props.total, [props.total === 0 ? 0 : (current - 1) * pageSize + 1, current * pageSize > props.total ? props.total : current * pageSize])\n );\n }\n var prevDisabled = !this.hasPrev() || !allPages;\n var nextDisabled = !this.hasNext() || !allPages;\n return React.createElement(\n 'ul',\n _extends({\n className: classNames(prefixCls, className, _defineProperty({}, prefixCls + '-disabled', disabled)),\n style: props.style,\n unselectable: 'unselectable',\n ref: this.savePaginationNode\n }, dataOrAriaAttributeProps),\n totalText,\n React.createElement(\n 'li',\n {\n title: props.showTitle ? locale.prev_page : null,\n onClick: this.prev,\n tabIndex: prevDisabled ? null : 0,\n onKeyPress: this.runIfEnterPrev,\n className: (!prevDisabled ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-prev',\n 'aria-disabled': prevDisabled\n },\n props.itemRender(prevPage, 'prev', this.getItemIcon(props.prevIcon))\n ),\n pagerList,\n React.createElement(\n 'li',\n {\n title: props.showTitle ? locale.next_page : null,\n onClick: this.next,\n tabIndex: nextDisabled ? null : 0,\n onKeyPress: this.runIfEnterNext,\n className: (!nextDisabled ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-next',\n 'aria-disabled': nextDisabled\n },\n props.itemRender(nextPage, 'next', this.getItemIcon(props.nextIcon))\n ),\n React.createElement(Options, {\n disabled: disabled,\n locale: props.locale,\n rootPrefixCls: prefixCls,\n selectComponentClass: props.selectComponentClass,\n selectPrefixCls: props.selectPrefixCls,\n changeSize: this.props.showSizeChanger ? this.changePageSize : null,\n current: this.state.current,\n pageSize: this.state.pageSize,\n pageSizeOptions: this.props.pageSizeOptions,\n quickGo: this.shouldDisplayQuickJumper() ? this.handleChange : null,\n goButton: goButton\n })\n );\n }\n }], [{\n key: 'getDerivedStateFromProps',\n value: function getDerivedStateFromProps(props, prevState) {\n var newState = {};\n\n if ('current' in props) {\n newState.current = props.current;\n\n if (props.current !== prevState.current) {\n newState.currentInputValue = newState.current;\n }\n }\n\n if ('pageSize' in props && props.pageSize !== prevState.pageSize) {\n var current = prevState.current;\n var newCurrent = calculatePage(props.pageSize, prevState, props);\n current = current > newCurrent ? newCurrent : current;\n\n if (!('current' in props)) {\n newState.current = current;\n newState.currentInputValue = current;\n }\n newState.pageSize = props.pageSize;\n }\n\n return newState;\n }\n\n /**\n * computed icon node that need to be rendered.\n * @param {React.ReactNode | React.ComponentType} icon received icon.\n * @returns {React.ReactNode}\n */\n\n }]);\n\n return Pagination;\n}(React.Component);\n\nPagination.propTypes = {\n disabled: PropTypes.bool,\n prefixCls: PropTypes.string,\n className: PropTypes.string,\n current: PropTypes.number,\n defaultCurrent: PropTypes.number,\n total: PropTypes.number,\n pageSize: PropTypes.number,\n defaultPageSize: PropTypes.number,\n onChange: PropTypes.func,\n hideOnSinglePage: PropTypes.bool,\n showSizeChanger: PropTypes.bool,\n showLessItems: PropTypes.bool,\n onShowSizeChange: PropTypes.func,\n selectComponentClass: PropTypes.func,\n showPrevNextJumpers: PropTypes.bool,\n showQuickJumper: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]),\n showTitle: PropTypes.bool,\n pageSizeOptions: PropTypes.arrayOf(PropTypes.string),\n showTotal: PropTypes.func,\n locale: PropTypes.object,\n style: PropTypes.object,\n itemRender: PropTypes.func,\n prevIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),\n nextIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),\n jumpPrevIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),\n jumpNextIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.node])\n};\nPagination.defaultProps = {\n defaultCurrent: 1,\n total: 0,\n defaultPageSize: 10,\n onChange: noop,\n className: '',\n selectPrefixCls: 'rc-select',\n prefixCls: 'rc-pagination',\n selectComponentClass: null,\n hideOnSinglePage: false,\n showPrevNextJumpers: true,\n showQuickJumper: false,\n showSizeChanger: false,\n showLessItems: false,\n showTitle: true,\n onShowSizeChange: noop,\n locale: LOCALE,\n style: {},\n itemRender: defaultItemRender\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.getJumpPrevPage = function () {\n return Math.max(1, _this2.state.current - (_this2.props.showLessItems ? 3 : 5));\n };\n\n this.getJumpNextPage = function () {\n return Math.min(calculatePage(undefined, _this2.state, _this2.props), _this2.state.current + (_this2.props.showLessItems ? 3 : 5));\n };\n\n this.getItemIcon = function (icon) {\n var prefixCls = _this2.props.prefixCls;\n\n var iconNode = icon || React.createElement('a', { className: prefixCls + '-item-link' });\n if (typeof icon === 'function') {\n iconNode = React.createElement(icon, _extends({}, _this2.props));\n }\n return iconNode;\n };\n\n this.savePaginationNode = function (node) {\n _this2.paginationNode = node;\n };\n\n this.isValid = function (page) {\n return isInteger(page) && page !== _this2.state.current;\n };\n\n this.shouldDisplayQuickJumper = function () {\n var _props2 = _this2.props,\n showQuickJumper = _props2.showQuickJumper,\n pageSize = _props2.pageSize,\n total = _props2.total;\n\n if (total <= pageSize) {\n return false;\n }\n return showQuickJumper;\n };\n\n this.handleKeyDown = function (e) {\n if (e.keyCode === KEYCODE.ARROW_UP || e.keyCode === KEYCODE.ARROW_DOWN) {\n e.preventDefault();\n }\n };\n\n this.handleKeyUp = function (e) {\n var value = _this2.getValidValue(e);\n var currentInputValue = _this2.state.currentInputValue;\n\n if (value !== currentInputValue) {\n _this2.setState({\n currentInputValue: value\n });\n }\n if (e.keyCode === KEYCODE.ENTER) {\n _this2.handleChange(value);\n } else if (e.keyCode === KEYCODE.ARROW_UP) {\n _this2.handleChange(value - 1);\n } else if (e.keyCode === KEYCODE.ARROW_DOWN) {\n _this2.handleChange(value + 1);\n }\n };\n\n this.changePageSize = function (size) {\n var current = _this2.state.current;\n var newCurrent = calculatePage(size, _this2.state, _this2.props);\n current = current > newCurrent ? newCurrent : current;\n // fix the issue:\n // Once 'total' is 0, 'current' in 'onShowSizeChange' is 0, which is not correct.\n if (newCurrent === 0) {\n current = _this2.state.current;\n }\n\n if (typeof size === 'number') {\n if (!('pageSize' in _this2.props)) {\n _this2.setState({\n pageSize: size\n });\n }\n if (!('current' in _this2.props)) {\n _this2.setState({\n current: current,\n currentInputValue: current\n });\n }\n }\n _this2.props.onShowSizeChange(current, size);\n };\n\n this.handleChange = function (p) {\n var disabled = _this2.props.disabled;\n\n\n var page = p;\n if (_this2.isValid(page) && !disabled) {\n var currentPage = calculatePage(undefined, _this2.state, _this2.props);\n if (page > currentPage) {\n page = currentPage;\n } else if (page < 1) {\n page = 1;\n }\n\n if (!('current' in _this2.props)) {\n _this2.setState({\n current: page,\n currentInputValue: page\n });\n }\n\n var pageSize = _this2.state.pageSize;\n _this2.props.onChange(page, pageSize);\n\n return page;\n }\n\n return _this2.state.current;\n };\n\n this.prev = function () {\n if (_this2.hasPrev()) {\n _this2.handleChange(_this2.state.current - 1);\n }\n };\n\n this.next = function () {\n if (_this2.hasNext()) {\n _this2.handleChange(_this2.state.current + 1);\n }\n };\n\n this.jumpPrev = function () {\n _this2.handleChange(_this2.getJumpPrevPage());\n };\n\n this.jumpNext = function () {\n _this2.handleChange(_this2.getJumpNextPage());\n };\n\n this.hasPrev = function () {\n return _this2.state.current > 1;\n };\n\n this.hasNext = function () {\n return _this2.state.current < calculatePage(undefined, _this2.state, _this2.props);\n };\n\n this.runIfEnter = function (event, callback) {\n for (var _len = arguments.length, restParams = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n restParams[_key - 2] = arguments[_key];\n }\n\n if (event.key === 'Enter' || event.charCode === 13) {\n callback.apply(undefined, restParams);\n }\n };\n\n this.runIfEnterPrev = function (e) {\n _this2.runIfEnter(e, _this2.prev);\n };\n\n this.runIfEnterNext = function (e) {\n _this2.runIfEnter(e, _this2.next);\n };\n\n this.runIfEnterJumpPrev = function (e) {\n _this2.runIfEnter(e, _this2.jumpPrev);\n };\n\n this.runIfEnterJumpNext = function (e) {\n _this2.runIfEnter(e, _this2.jumpNext);\n };\n\n this.handleGoTO = function (e) {\n if (e.keyCode === KEYCODE.ENTER || e.type === 'click') {\n _this2.handleChange(_this2.state.currentInputValue);\n }\n };\n};\n\npolyfill(Pagination);\n\nexport default Pagination;","export default {\n // Options.jsx\n items_per_page: '条/页',\n jump_to: '跳至',\n jump_to_confirm: '确定',\n page: '页',\n\n // Pagination.jsx\n prev_page: '上一页',\n next_page: '下一页',\n prev_5: '向前 5 页',\n next_5: '向后 5 页',\n prev_3: '向前 3 页',\n next_3: '向后 3 页'\n};","export { default } from './Pagination';"],"sourceRoot":""}