From ace03924ac2c3e637aa5e8df18365224ce46c285 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 27 Feb 2020 16:01:29 +0800 Subject: [PATCH 01/17] refactor to father --- .editorconfig | 9 - .eslintignore | 1 - .eslintrc.js | 13 + .fatherrc.js | 8 + .gitignore | 8 +- .npmignore | 29 + .prettierignore | 9 + .travis.yml | 14 +- assets/index.less | 60 +- dist/rc-pagination.css | 324 ++ dist/rc-pagination.css.map | 1 + dist/rc-pagination.js | 5857 ++++++++++++++++++++++++++++++ dist/rc-pagination.js.map | 1 + dist/rc-pagination.min.css | 324 ++ dist/rc-pagination.min.css.map | 1 + dist/rc-pagination.min.js | 2476 +++++++++++++ examples/default.html | 1 - examples/default.js | 20 +- examples/itemRender.html | 1 - examples/itemRender.js | 17 +- examples/jumper.html | 1 - examples/jumper.js | 15 +- examples/jumperWithGoButton.html | 1 - examples/jumperWithGoButton.js | 25 +- examples/lessPages.html | 1 - examples/lessPages.js | 60 +- examples/locale.html | 1 - examples/locale.js | 12 +- examples/more.html | 1 - examples/more.js | 10 +- examples/showTitle.html | 1 - examples/showTitle.js | 16 +- examples/showTotal.html | 1 - examples/showTotal.js | 41 +- examples/simple.html | 1 - examples/simple.js | 10 +- examples/sizer.html | 1 - examples/sizer.js | 11 +- examples/stupid.html | 1 - examples/stupid.js | 7 +- examples/styles.html | 1 - examples/styles.js | 8 +- index.js | 2 +- jest.config.js | 3 + package.json | 110 +- tests/helper/two-pagination.jsx | 4 +- tsconfig.json | 14 + 47 files changed, 9300 insertions(+), 233 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .eslintignore create mode 100644 .eslintrc.js create mode 100644 .fatherrc.js create mode 100644 .npmignore create mode 100644 dist/rc-pagination.css create mode 100644 dist/rc-pagination.css.map create mode 100644 dist/rc-pagination.js create mode 100644 dist/rc-pagination.js.map create mode 100644 dist/rc-pagination.min.css create mode 100644 dist/rc-pagination.min.css.map create mode 100644 dist/rc-pagination.min.js delete mode 100644 examples/default.html delete mode 100644 examples/itemRender.html delete mode 100644 examples/jumper.html delete mode 100644 examples/jumperWithGoButton.html delete mode 100644 examples/lessPages.html delete mode 100644 examples/locale.html delete mode 100644 examples/more.html delete mode 100644 examples/showTitle.html delete mode 100644 examples/showTotal.html delete mode 100644 examples/simple.html delete mode 100644 examples/sizer.html delete mode 100644 examples/stupid.html delete mode 100644 examples/styles.html create mode 100644 jest.config.js create mode 100644 tsconfig.json diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 604c94ef..00000000 --- a/.editorconfig +++ /dev/null @@ -1,9 +0,0 @@ -# top-most EditorConfig file -root = true - -# Unix-style newlines with a newline ending every file -[*.{js,css}] -end_of_line = lf -insert_final_newline = true -indent_style = space -indent_size = 2 diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 3c3629e6..00000000 --- a/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..cf8ad0b5 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,13 @@ +const base = require('@umijs/fabric/dist/eslint'); + +module.exports = { + ...base, + rules: { + ...base.rules, + 'no-template-curly-in-string': 0, + 'prefer-promise-reject-errors': 0, + 'react/no-array-index-key': 0, + 'react/sort-comp': 0, + '@typescript-eslint/no-explicit-any': 0, + }, +}; diff --git a/.fatherrc.js b/.fatherrc.js new file mode 100644 index 00000000..767a2abf --- /dev/null +++ b/.fatherrc.js @@ -0,0 +1,8 @@ +export default { + cjs: 'babel', + esm: { type: 'babel', importLibToEs: true }, + preCommit: { + eslint: true, + prettier: true, + }, +}; diff --git a/.gitignore b/.gitignore index 6ba367c1..971b25d7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ +.storybook *.iml *.log -*.log.* .idea/ .ipr .iws @@ -21,11 +21,11 @@ Thumbs.db .build node_modules .cache -dist assets/**/*.css build lib es -.vscode -coverage/ yarn.lock +package-lock.json +coverage/ +.doc diff --git a/.npmignore b/.npmignore new file mode 100644 index 00000000..8db6ebd6 --- /dev/null +++ b/.npmignore @@ -0,0 +1,29 @@ +build/ +*.cfg +nohup.out +*.iml +.idea/ +.ipr +.iws +*~ +~* +*.diff +*.log +*.patch +*.bak +.DS_Store +Thumbs.db +.project +.*proj +.svn/ +*.swp +out/ +.build +node_modules +.cache +examples +tests +src +/index.js +.* +assets/**/*.less \ No newline at end of file diff --git a/.prettierignore b/.prettierignore index f71737da..e1497d59 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,12 @@ +.storybook node_modules +lib +es +.cache package.json package-lock.json +public +.site +_site +.umi +.doc diff --git a/.travis.yml b/.travis.yml index fbc62f81..b0ecf870 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,17 @@ language: node_js -sudo: false - node_js: -- 11 + - 10 script: -- | + - | if [ "$TEST_TYPE" = test ]; then - npm test + npm run coverage && \ + bash <(curl -s https://codecov.io/bash) else npm run $TEST_TYPE fi env: matrix: - - TEST_TYPE=lint - - TEST_TYPE=test - - TEST_TYPE=coverage + - TEST_TYPE=lint + - TEST_TYPE=test diff --git a/assets/index.less b/assets/index.less index 5f10c6b5..37f7272d 100644 --- a/assets/index.less +++ b/assets/index.less @@ -1,3 +1,5 @@ +@import '~rc-select/assets/index.less'; + @prefixClass: rc-pagination; .disabled-item() { @@ -31,7 +33,7 @@ } &:after { - content: " "; + content: ' '; display: block; height: 0; clear: both; @@ -84,9 +86,10 @@ } } - &-jump-prev, &-jump-next { + &-jump-prev, + &-jump-next { &:after { - content: "•••"; + content: '•••'; display: block; letter-spacing: 2px; color: #ccc; @@ -99,13 +102,12 @@ color: #2db7f5; } } - } &-jump-prev { &:hover { &:after { - content: "«"; + content: '«'; } } } @@ -113,11 +115,11 @@ &-jump-next { &:hover { &:after { - content: "»"; + content: '»'; } } } - + &-jump-prev-custom-icon, &-jump-next-custom-icon { position: relative; @@ -129,9 +131,9 @@ bottom: 0; left: 0; margin: auto; - transition: all .2s; + transition: all 0.2s; - content: "•••"; + content: '•••'; opacity: 1; display: block; letter-spacing: 2px; @@ -143,7 +145,7 @@ .custom-icon-jump-prev, .custom-icon-jump-next { opacity: 0; - transition: all .2s; + transition: all 0.2s; } &:hover { @@ -160,10 +162,15 @@ } } - &-prev, &-jump-prev, &-jump-next { + &-prev, + &-jump-prev, + &-jump-next { margin-right: 8px; } - &-prev, &-next, &-jump-prev, &-jump-next { + &-prev, + &-next, + &-jump-prev, + &-jump-next { cursor: pointer; color: #666; font-size: 10px; @@ -179,7 +186,7 @@ &-prev { a { &:after { - content: "‹"; + content: '‹'; display: block; } } @@ -188,13 +195,14 @@ &-next { a { &:after { - content: "›"; + content: '›'; display: block; } } } - &-prev, &-next { + &-prev, + &-next { border: 1px solid #d9d9d9; font-size: 18px; a { @@ -268,13 +276,15 @@ border-radius: 6px; height: 28px; user-select: none; - transition: all .3s cubic-bezier(.645,.045,.355,1); + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); position: relative; - color: rgba(0,0,0,.65); + color: rgba(0, 0, 0, 0.65); background-color: #fff; border-color: #d9d9d9; - &:hover, &:active, &:focus { + &:hover, + &:active, + &:focus { color: #2db7f5; background-color: #fff; border-color: #2db7f5; @@ -284,7 +294,8 @@ } &-simple { - .@{prefixClass}-prev, .@{prefixClass}-next { + .@{prefixClass}-prev, + .@{prefixClass}-next { border: none; height: 24px; line-height: 24px; @@ -331,19 +342,20 @@ border-radius: 6px; height: 26px; user-select: none; - transition: all .3s cubic-bezier(.645,.045,.355,1); + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); position: relative; - color: rgba(0,0,0,.65); + color: rgba(0, 0, 0, 0.65); background-color: #fff; border-color: #d9d9d9; - &:hover, &:active, &:focus { + &:hover, + &:active, + &:focus { color: #2db7f5; background-color: #fff; border-color: #2db7f5; } } - } } } @@ -355,4 +367,4 @@ display: none; } } -} \ No newline at end of file +} diff --git a/dist/rc-pagination.css b/dist/rc-pagination.css new file mode 100644 index 00000000..bdc703f5 --- /dev/null +++ b/dist/rc-pagination.css @@ -0,0 +1,324 @@ +.rc-pagination { + font-size: 12px; + font-family: 'Arial'; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + padding: 0; +} +.rc-pagination > li { + list-style: none; +} +.rc-pagination-total-text { + float: left; + height: 30px; + line-height: 30px; + list-style: none; + padding: 0; + margin: 0 8px 0 0; +} +.rc-pagination:after { + content: ' '; + display: block; + height: 0; + clear: both; + overflow: hidden; + visibility: hidden; +} +.rc-pagination-item { + cursor: pointer; + border-radius: 6px; + min-width: 28px; + height: 28px; + line-height: 28px; + text-align: center; + list-style: none; + float: left; + border: 1px solid #d9d9d9; + background-color: #fff; + margin-right: 8px; +} +.rc-pagination-item a { + text-decoration: none; + color: #666; +} +.rc-pagination-item:hover { + border-color: #2db7f5; +} +.rc-pagination-item:hover a { + color: #2db7f5; +} +.rc-pagination-item-disabled { + cursor: not-allowed; +} +.rc-pagination-item-disabled:hover { + border-color: #d9d9d9; +} +.rc-pagination-item-disabled:hover a { + color: #d9d9d9; +} +.rc-pagination-item-active { + background-color: #2db7f5; + border-color: #2db7f5; +} +.rc-pagination-item-active a { + color: #fff; +} +.rc-pagination-item-active:hover a { + color: #fff; +} +.rc-pagination-jump-prev:after, +.rc-pagination-jump-next:after { + content: '\2022\2022\2022'; + display: block; + letter-spacing: 2px; + color: #ccc; + font-size: 12px; + margin-top: 1px; +} +.rc-pagination-jump-prev:hover:after, +.rc-pagination-jump-next:hover:after { + color: #2db7f5; +} +.rc-pagination-jump-prev:hover:after { + content: '\AB'; +} +.rc-pagination-jump-next:hover:after { + content: '\BB'; +} +.rc-pagination-jump-prev-custom-icon, +.rc-pagination-jump-next-custom-icon { + position: relative; +} +.rc-pagination-jump-prev-custom-icon:after, +.rc-pagination-jump-next-custom-icon:after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + margin: auto; + transition: all 0.2s; + content: '\2022\2022\2022'; + opacity: 1; + display: block; + letter-spacing: 2px; + color: #ccc; + font-size: 12px; + margin-top: 1px; +} +.rc-pagination-jump-prev-custom-icon .custom-icon-jump-prev, +.rc-pagination-jump-next-custom-icon .custom-icon-jump-prev, +.rc-pagination-jump-prev-custom-icon .custom-icon-jump-next, +.rc-pagination-jump-next-custom-icon .custom-icon-jump-next { + opacity: 0; + transition: all 0.2s; +} +.rc-pagination-jump-prev-custom-icon:hover:after, +.rc-pagination-jump-next-custom-icon:hover:after { + opacity: 0; + color: #ccc; +} +.rc-pagination-jump-prev-custom-icon:hover .custom-icon-jump-prev, +.rc-pagination-jump-next-custom-icon:hover .custom-icon-jump-prev, +.rc-pagination-jump-prev-custom-icon:hover .custom-icon-jump-next, +.rc-pagination-jump-next-custom-icon:hover .custom-icon-jump-next { + opacity: 1; + color: #2db7f5; +} +.rc-pagination-prev, +.rc-pagination-jump-prev, +.rc-pagination-jump-next { + margin-right: 8px; +} +.rc-pagination-prev, +.rc-pagination-next, +.rc-pagination-jump-prev, +.rc-pagination-jump-next { + cursor: pointer; + color: #666; + font-size: 10px; + border-radius: 6px; + list-style: none; + min-width: 28px; + height: 28px; + line-height: 28px; + float: left; + text-align: center; +} +.rc-pagination-prev a:after { + content: '\2039'; + display: block; +} +.rc-pagination-next a:after { + content: '\203A'; + display: block; +} +.rc-pagination-prev, +.rc-pagination-next { + border: 1px solid #d9d9d9; + font-size: 18px; +} +.rc-pagination-prev a, +.rc-pagination-next a { + color: #666; +} +.rc-pagination-prev a:after, +.rc-pagination-next a:after { + margin-top: -1px; +} +.rc-pagination-disabled { + cursor: not-allowed; +} +.rc-pagination-disabled a { + color: #ccc; +} +.rc-pagination-disabled .rc-pagination-item, +.rc-pagination-disabled .rc-pagination-prev, +.rc-pagination-disabled .rc-pagination-next { + cursor: not-allowed; +} +.rc-pagination-disabled .rc-pagination-item:hover, +.rc-pagination-disabled .rc-pagination-prev:hover, +.rc-pagination-disabled .rc-pagination-next:hover { + border-color: #d9d9d9; +} +.rc-pagination-disabled .rc-pagination-item:hover a, +.rc-pagination-disabled .rc-pagination-prev:hover a, +.rc-pagination-disabled .rc-pagination-next:hover a { + color: #d9d9d9; +} +.rc-pagination-disabled .rc-pagination-jump-prev, +.rc-pagination-disabled .rc-pagination-jump-next { + pointer-events: none; +} +.rc-pagination-options { + float: left; + margin-left: 15px; +} +.rc-pagination-options-size-changer { + float: left; + width: 80px; +} +.rc-pagination-options-quick-jumper { + float: left; + margin-left: 16px; + height: 28px; + line-height: 28px; +} +.rc-pagination-options-quick-jumper input { + margin: 0 8px; + box-sizing: border-box; + background-color: #fff; + border-radius: 6px; + border: 1px solid #d9d9d9; + outline: none; + padding: 3px 12px; + width: 50px; + height: 28px; +} +.rc-pagination-options-quick-jumper input:hover { + border-color: #2db7f5; +} +.rc-pagination-options-quick-jumper button { + display: inline-block; + margin: 0 8px; + font-weight: 500; + text-align: center; + -ms-touch-action: manipulation; + touch-action: manipulation; + cursor: pointer; + background-image: none; + border: 1px solid transparent; + white-space: nowrap; + padding: 0 15px; + font-size: 12px; + border-radius: 6px; + height: 28px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + position: relative; + color: rgba(0, 0, 0, 0.65); + background-color: #fff; + border-color: #d9d9d9; +} +.rc-pagination-options-quick-jumper button:hover, +.rc-pagination-options-quick-jumper button:active, +.rc-pagination-options-quick-jumper button:focus { + color: #2db7f5; + background-color: #fff; + border-color: #2db7f5; +} +.rc-pagination-simple .rc-pagination-prev, +.rc-pagination-simple .rc-pagination-next { + border: none; + height: 24px; + line-height: 24px; + margin: 0; + font-size: 18px; +} +.rc-pagination-simple .rc-pagination-simple-pager { + float: left; + margin-right: 8px; + list-style: none; +} +.rc-pagination-simple .rc-pagination-simple-pager .rc-pagination-slash { + margin: 0 10px; +} +.rc-pagination-simple .rc-pagination-simple-pager input { + margin: 0 8px; + box-sizing: border-box; + background-color: #fff; + border-radius: 6px; + border: 1px solid #d9d9d9; + outline: none; + padding: 5px 8px; + min-height: 20px; +} +.rc-pagination-simple .rc-pagination-simple-pager input:hover { + border-color: #2db7f5; +} +.rc-pagination-simple .rc-pagination-simple-pager button { + display: inline-block; + margin: 0 8px; + font-weight: 500; + text-align: center; + -ms-touch-action: manipulation; + touch-action: manipulation; + cursor: pointer; + background-image: none; + border: 1px solid transparent; + white-space: nowrap; + padding: 0 8px; + font-size: 12px; + border-radius: 6px; + height: 26px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + position: relative; + color: rgba(0, 0, 0, 0.65); + background-color: #fff; + border-color: #d9d9d9; +} +.rc-pagination-simple .rc-pagination-simple-pager button:hover, +.rc-pagination-simple .rc-pagination-simple-pager button:active, +.rc-pagination-simple .rc-pagination-simple-pager button:focus { + color: #2db7f5; + background-color: #fff; + border-color: #2db7f5; +} +@media only screen and (max-width: 1024px) { + .rc-pagination-item-after-jump-prev, + .rc-pagination-item-before-jump-next { + display: none; + } +} + +/*# sourceMappingURL=rc-pagination.css.map*/ diff --git a/dist/rc-pagination.css.map b/dist/rc-pagination.css.map new file mode 100644 index 00000000..a549fd26 --- /dev/null +++ b/dist/rc-pagination.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./assets/index.less"],"names":[],"mappings":"AAaA;EACE;EACA;EACA;KAAA;MAAA;UAAA;EACA;CAZD;AAQD;EAOI;CAZH;AAeC;EACE;EACA;EACA;EACA;EACA;EACA;CAbH;AAgBC;EACE;EACA;EACA;EACA;EACA;EACA;CAdH;AAiBC;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CAfH;AAIC;EAcI;EACA;CAfL;AAkBG;EACE;CAhBL;AAeG;EAGI;CAfP;AAmBG;EA/DF;CA+CD;AA7CC;EACE;CA+CH;AAhDC;EAGI;CAgDL;AAcG;EACE;EACA;CAZL;AAUG;EAKI;CAZP;AAeK;EAEI;CAdT;AAqBG;;EACE;EACA;EACA;EACA;EACA;EACA;CAlBL;AAsBK;;EACE;CAnBP;AA2BK;EACE;CAzBP;AAgCK;EACE;CA9BP;AAmCC;;EAEE;CAjCH;AAmCG;;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;CAjCL;AAcC;;;;EAwBI;EACA;CAhCL;AAoCK;;EACE;EACA;CAjCP;AA8BG;;;;EAQI;EACA;CAhCP;AAqCC;;;EACE;CAjCH;AAmCC;;;;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CA9BH;AAmCK;EACE;EACA;CAjCP;AAwCK;EACE;EACA;CAtCP;AA2CC;;EACE;EACA;CAxCH;AAsCC;;EAII;CAtCL;AAuCK;;EACE;CApCP;AAyCC;EACE;CAvCH;AAsCC;EAGI;CAtCL;AAmCC;;;EA5MA;CA8KD;AA5KC;;;EACE;CAgLH;AAjLC;;;EAGI;CAmLL;AAoBC;;EAcI;CA9BL;AAkCC;EACE;EACA;CAhCH;AAiCG;EACE;EACA;CA/BL;AAkCG;EACE;EACA;EACA;EACA;CAhCL;AA4BG;EAOI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CAhCP;AAkCO;EACE;CAhCT;AAcG;EAuBI;EACA;EACA;EACA;EACA;MAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;KAAA;MAAA;UAAA;EACA;EACA;EACA;EACA;EACA;CAlCP;AAoCO;;;EACE;EACA;EACA;CAhCT;AAsCC;;EAEI;EACA;EACA;EACA;EACA;CApCL;AA8BC;EAUI;EACA;EACA;CArCL;AAyBC;EAeM;CArCP;AAsBC;EAmBM;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CAtCP;AAwCO;EACE;CAtCT;AASC;EAkCM;EACA;EACA;EACA;EACA;MAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;KAAA;MAAA;UAAA;EACA;EACA;EACA;EACA;EACA;CAxCP;AA0CO;;;EACE;EACA;EACA;CAtCT;AA8CD;EAEI;;IAEE;GA7CH;CACF","file":"rc-pagination.css","sourcesContent":["@prefixClass: rc-pagination;\n\n.disabled-item() {\n cursor: not-allowed;\n\n &:hover {\n border-color: #d9d9d9;\n a {\n color: #d9d9d9;\n }\n }\n}\n\n.@{prefixClass} {\n font-size: 12px;\n font-family: 'Arial';\n user-select: none;\n padding: 0;\n\n > li {\n list-style: none;\n }\n\n &-total-text {\n float: left;\n height: 30px;\n line-height: 30px;\n list-style: none;\n padding: 0;\n margin: 0 8px 0 0;\n }\n\n &:after {\n content: \" \";\n display: block;\n height: 0;\n clear: both;\n overflow: hidden;\n visibility: hidden;\n }\n\n &-item {\n cursor: pointer;\n border-radius: 6px;\n min-width: 28px;\n height: 28px;\n line-height: 28px;\n text-align: center;\n list-style: none;\n float: left;\n border: 1px solid #d9d9d9;\n background-color: #fff;\n margin-right: 8px;\n\n a {\n text-decoration: none;\n color: #666;\n }\n\n &:hover {\n border-color: #2db7f5;\n a {\n color: #2db7f5;\n }\n }\n\n &-disabled {\n .disabled-item();\n }\n\n &-active {\n background-color: #2db7f5;\n border-color: #2db7f5;\n\n a {\n color: #fff;\n }\n\n &:hover {\n a {\n color: #fff;\n }\n }\n }\n }\n\n &-jump-prev, &-jump-next {\n &:after {\n content: \"•••\";\n display: block;\n letter-spacing: 2px;\n color: #ccc;\n font-size: 12px;\n margin-top: 1px;\n }\n\n &:hover {\n &:after {\n color: #2db7f5;\n }\n }\n\n }\n\n &-jump-prev {\n &:hover {\n &:after {\n content: \"«\";\n }\n }\n }\n\n &-jump-next {\n &:hover {\n &:after {\n content: \"»\";\n }\n }\n }\n \n &-jump-prev-custom-icon,\n &-jump-next-custom-icon {\n position: relative;\n\n &:after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n margin: auto;\n transition: all .2s;\n\n content: \"•••\";\n opacity: 1;\n display: block;\n letter-spacing: 2px;\n color: #ccc;\n font-size: 12px;\n margin-top: 1px;\n }\n\n .custom-icon-jump-prev,\n .custom-icon-jump-next {\n opacity: 0;\n transition: all .2s;\n }\n\n &:hover {\n &:after {\n opacity: 0;\n color: #ccc;\n }\n\n .custom-icon-jump-prev,\n .custom-icon-jump-next {\n opacity: 1;\n color: #2db7f5;\n }\n }\n }\n\n &-prev, &-jump-prev, &-jump-next {\n margin-right: 8px;\n }\n &-prev, &-next, &-jump-prev, &-jump-next {\n cursor: pointer;\n color: #666;\n font-size: 10px;\n border-radius: 6px;\n list-style: none;\n min-width: 28px;\n height: 28px;\n line-height: 28px;\n float: left;\n text-align: center;\n }\n\n &-prev {\n a {\n &:after {\n content: \"‹\";\n display: block;\n }\n }\n }\n\n &-next {\n a {\n &:after {\n content: \"›\";\n display: block;\n }\n }\n }\n\n &-prev, &-next {\n border: 1px solid #d9d9d9;\n font-size: 18px;\n a {\n color: #666;\n &:after {\n margin-top: -1px;\n }\n }\n }\n\n &-disabled {\n cursor: not-allowed;\n a {\n color: #ccc;\n }\n\n .@{prefixClass}-item,\n .@{prefixClass}-prev,\n .@{prefixClass}-next {\n .disabled-item();\n }\n\n .@{prefixClass}-jump-prev,\n .@{prefixClass}-jump-next {\n pointer-events: none;\n }\n }\n\n &-options {\n float: left;\n margin-left: 15px;\n &-size-changer {\n float: left;\n width: 80px;\n }\n\n &-quick-jumper {\n float: left;\n margin-left: 16px;\n height: 28px;\n line-height: 28px;\n\n input {\n margin: 0 8px;\n box-sizing: border-box;\n background-color: #fff;\n border-radius: 6px;\n border: 1px solid #d9d9d9;\n outline: none;\n padding: 3px 12px;\n width: 50px;\n height: 28px;\n\n &:hover {\n border-color: #2db7f5;\n }\n }\n\n button {\n display: inline-block;\n margin: 0 8px;\n font-weight: 500;\n text-align: center;\n touch-action: manipulation;\n cursor: pointer;\n background-image: none;\n border: 1px solid transparent;\n white-space: nowrap;\n padding: 0 15px;\n font-size: 12px;\n border-radius: 6px;\n height: 28px;\n user-select: none;\n transition: all .3s cubic-bezier(.645,.045,.355,1);\n position: relative;\n color: rgba(0,0,0,.65);\n background-color: #fff;\n border-color: #d9d9d9;\n\n &:hover, &:active, &:focus {\n color: #2db7f5;\n background-color: #fff;\n border-color: #2db7f5;\n }\n }\n }\n }\n\n &-simple {\n .@{prefixClass}-prev, .@{prefixClass}-next {\n border: none;\n height: 24px;\n line-height: 24px;\n margin: 0;\n font-size: 18px;\n }\n\n .@{prefixClass}-simple-pager {\n float: left;\n margin-right: 8px;\n list-style: none;\n\n .@{prefixClass}-slash {\n margin: 0 10px;\n }\n\n input {\n margin: 0 8px;\n box-sizing: border-box;\n background-color: #fff;\n border-radius: 6px;\n border: 1px solid #d9d9d9;\n outline: none;\n padding: 5px 8px;\n min-height: 20px;\n\n &:hover {\n border-color: #2db7f5;\n }\n }\n\n button {\n display: inline-block;\n margin: 0 8px;\n font-weight: 500;\n text-align: center;\n touch-action: manipulation;\n cursor: pointer;\n background-image: none;\n border: 1px solid transparent;\n white-space: nowrap;\n padding: 0 8px;\n font-size: 12px;\n border-radius: 6px;\n height: 26px;\n user-select: none;\n transition: all .3s cubic-bezier(.645,.045,.355,1);\n position: relative;\n color: rgba(0,0,0,.65);\n background-color: #fff;\n border-color: #d9d9d9;\n\n &:hover, &:active, &:focus {\n color: #2db7f5;\n background-color: #fff;\n border-color: #2db7f5;\n }\n }\n\n }\n }\n}\n\n@media only screen and (max-width: 1024px) {\n .@{prefixClass}-item {\n &-after-jump-prev,\n &-before-jump-next {\n display: none;\n }\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./assets/index.less"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/rc-pagination.js b/dist/rc-pagination.js new file mode 100644 index 00000000..95368a9a --- /dev/null +++ b/dist/rc-pagination.js @@ -0,0 +1,5857 @@ +(function webpackUniversalModuleDefinition(root, factory) { + if (typeof exports === 'object' && typeof module === 'object') + module.exports = factory(require('react')); + else if (typeof define === 'function' && define.amd) + define(['react'], factory); + else if (typeof exports === 'object') + exports['rc-pagination'] = factory(require('react')); + else root['rc-pagination'] = factory(root['React']); +})(this, function(__WEBPACK_EXTERNAL_MODULE_33__) { + return /******/ (function(modules) { + // webpackBootstrap + /******/ // The module cache + /******/ var installedModules = {}; // The require function + /******/ + /******/ /******/ function __webpack_require__(moduleId) { + /******/ + /******/ // Check if module is in cache + /******/ if (installedModules[moduleId]) { + /******/ return installedModules[moduleId].exports; + /******/ + } // Create a new module (and put it into the cache) + /******/ /******/ var module = (installedModules[moduleId] = { + /******/ i: moduleId, + /******/ l: false, + /******/ exports: {}, + /******/ + }); // Execute the module function + /******/ + /******/ /******/ modules[moduleId].call( + module.exports, + module, + module.exports, + __webpack_require__, + ); // Flag the module as loaded + /******/ + /******/ /******/ module.l = true; // Return the exports of the module + /******/ + /******/ /******/ return module.exports; + /******/ + } // expose the modules object (__webpack_modules__) + /******/ + /******/ + /******/ /******/ __webpack_require__.m = modules; // expose the module cache + /******/ + /******/ /******/ __webpack_require__.c = installedModules; // identity function for calling harmony imports with the correct context + /******/ + /******/ /******/ __webpack_require__.i = function(value) { + return value; + }; // define getter function for harmony exports + /******/ + /******/ /******/ __webpack_require__.d = function(exports, name, getter) { + /******/ if (!__webpack_require__.o(exports, name)) { + /******/ Object.defineProperty(exports, name, { + /******/ configurable: false, + /******/ enumerable: true, + /******/ get: getter, + /******/ + }); + /******/ + } + /******/ + }; // getDefaultExport function for compatibility with non-harmony modules + /******/ + /******/ /******/ __webpack_require__.n = function(module) { + /******/ var getter = + module && module.__esModule + ? /******/ function getDefault() { + return module['default']; + } + : /******/ function getModuleExports() { + return module; + }; + /******/ __webpack_require__.d(getter, 'a', getter); + /******/ return getter; + /******/ + }; // Object.prototype.hasOwnProperty.call + /******/ + /******/ /******/ __webpack_require__.o = function(object, property) { + return Object.prototype.hasOwnProperty.call(object, property); + }; // __webpack_public_path__ + /******/ + /******/ /******/ __webpack_require__.p = ''; // Load entry module and return exports + /******/ + /******/ /******/ return __webpack_require__((__webpack_require__.s = 107)); + /******/ + })( + /************************************************************************/ + /******/ [ + /* 0 */ + /***/ function(module, exports) { + var core = (module.exports = { version: '2.6.11' }); + if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef + + /***/ + }, + /* 1 */ + /***/ function(module, exports, __webpack_require__) { + // Thank's IE8 for his funny defineProperty + module.exports = !__webpack_require__(11)(function() { + return ( + Object.defineProperty({}, 'a', { + get: function() { + return 7; + }, + }).a != 7 + ); + }); + + /***/ + }, + /* 2 */ + /***/ function(module, exports) { + // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 + var global = (module.exports = + typeof window != 'undefined' && window.Math == Math + ? window + : typeof self != 'undefined' && self.Math == Math + ? self + : // eslint-disable-next-line no-new-func + Function('return this')()); + if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef + + /***/ + }, + /* 3 */ + /***/ function(module, exports) { + var hasOwnProperty = {}.hasOwnProperty; + module.exports = function(it, key) { + return hasOwnProperty.call(it, key); + }; + + /***/ + }, + /* 4 */ + /***/ function(module, exports, __webpack_require__) { + var anObject = __webpack_require__(10); + var IE8_DOM_DEFINE = __webpack_require__(46); + var toPrimitive = __webpack_require__(28); + var dP = Object.defineProperty; + + exports.f = __webpack_require__(1) + ? Object.defineProperty + : function defineProperty(O, P, Attributes) { + anObject(O); + P = toPrimitive(P, true); + anObject(Attributes); + if (IE8_DOM_DEFINE) + try { + return dP(O, P, Attributes); + } catch (e) { + /* empty */ + } + if ('get' in Attributes || 'set' in Attributes) + throw TypeError('Accessors not supported!'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + /***/ + }, + /* 5 */ + /***/ function(module, exports, __webpack_require__) { + var global = __webpack_require__(2); + var core = __webpack_require__(0); + var ctx = __webpack_require__(44); + var hide = __webpack_require__(6); + var has = __webpack_require__(3); + var PROTOTYPE = 'prototype'; + + var $export = function(type, name, source) { + var IS_FORCED = type & $export.F; + var IS_GLOBAL = type & $export.G; + var IS_STATIC = type & $export.S; + var IS_PROTO = type & $export.P; + var IS_BIND = type & $export.B; + var IS_WRAP = type & $export.W; + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); + var expProto = exports[PROTOTYPE]; + var target = IS_GLOBAL + ? global + : IS_STATIC + ? global[name] + : (global[name] || {})[PROTOTYPE]; + var key, own, out; + if (IS_GLOBAL) source = name; + for (key in source) { + // contains in native + own = !IS_FORCED && target && target[key] !== undefined; + if (own && has(exports, key)) continue; + // export native or passed + out = own ? target[key] : source[key]; + // prevent global pollution for namespaces + exports[key] = + IS_GLOBAL && typeof target[key] != 'function' + ? source[key] + : // bind timers to global for call from export context + IS_BIND && own + ? ctx(out, global) + : // wrap global constructors for prevent change them in library + IS_WRAP && target[key] == out + ? (function(C) { + var F = function(a, b, c) { + if (this instanceof C) { + switch (arguments.length) { + case 0: + return new C(); + case 1: + return new C(a); + case 2: + return new C(a, b); + } + return new C(a, b, c); + } + return C.apply(this, arguments); + }; + F[PROTOTYPE] = C[PROTOTYPE]; + return F; + // make static versions for prototype methods + })(out) + : IS_PROTO && typeof out == 'function' + ? ctx(Function.call, out) + : out; + // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% + if (IS_PROTO) { + (exports.virtual || (exports.virtual = {}))[key] = out; + // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% + if (type & $export.R && expProto && !expProto[key]) + hide(expProto, key, out); + } + } + }; + // type bitmap + $export.F = 1; // forced + $export.G = 2; // global + $export.S = 4; // static + $export.P = 8; // proto + $export.B = 16; // bind + $export.W = 32; // wrap + $export.U = 64; // safe + $export.R = 128; // real proto method for `library` + module.exports = $export; + + /***/ + }, + /* 6 */ + /***/ function(module, exports, __webpack_require__) { + var dP = __webpack_require__(4); + var createDesc = __webpack_require__(16); + module.exports = __webpack_require__(1) + ? function(object, key, value) { + return dP.f(object, key, createDesc(1, value)); + } + : function(object, key, value) { + object[key] = value; + return object; + }; + + /***/ + }, + /* 7 */ + /***/ function(module, exports) { + module.exports = function(it) { + return typeof it === 'object' + ? it !== null + : typeof it === 'function'; + }; + + /***/ + }, + /* 8 */ + /***/ function(module, exports, __webpack_require__) { + // to indexed object, toObject with fallback for non-array-like ES3 strings + var IObject = __webpack_require__(47); + var defined = __webpack_require__(18); + module.exports = function(it) { + return IObject(defined(it)); + }; + + /***/ + }, + /* 9 */ + /***/ function(module, exports, __webpack_require__) { + var store = __webpack_require__(25)('wks'); + var uid = __webpack_require__(17); + var Symbol = __webpack_require__(2).Symbol; + var USE_SYMBOL = typeof Symbol == 'function'; + + var $exports = (module.exports = function(name) { + return ( + store[name] || + (store[name] = + (USE_SYMBOL && Symbol[name]) || + (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)) + ); + }); + + $exports.store = store; + + /***/ + }, + /* 10 */ + /***/ function(module, exports, __webpack_require__) { + var isObject = __webpack_require__(7); + module.exports = function(it) { + if (!isObject(it)) throw TypeError(it + ' is not an object!'); + return it; + }; + + /***/ + }, + /* 11 */ + /***/ function(module, exports) { + module.exports = function(exec) { + try { + return !!exec(); + } catch (e) { + return true; + } + }; + + /***/ + }, + /* 12 */ + /***/ function(module, exports) { + // shim for using process in browser + var process = (module.exports = {}); + + // cached from whatever global is present so that test runners that stub it + // don't break things. But we need to wrap it in a try catch in case it is + // wrapped in strict mode code which doesn't define any globals. It's inside a + // function because try/catches deoptimize in certain engines. + + var cachedSetTimeout; + var cachedClearTimeout; + + function defaultSetTimout() { + throw new Error('setTimeout has not been defined'); + } + function defaultClearTimeout() { + throw new Error('clearTimeout has not been defined'); + } + (function() { + try { + if (typeof setTimeout === 'function') { + cachedSetTimeout = setTimeout; + } else { + cachedSetTimeout = defaultSetTimout; + } + } catch (e) { + cachedSetTimeout = defaultSetTimout; + } + try { + if (typeof clearTimeout === 'function') { + cachedClearTimeout = clearTimeout; + } else { + cachedClearTimeout = defaultClearTimeout; + } + } catch (e) { + cachedClearTimeout = defaultClearTimeout; + } + })(); + function runTimeout(fun) { + if (cachedSetTimeout === setTimeout) { + //normal enviroments in sane situations + return setTimeout(fun, 0); + } + // if setTimeout wasn't available but was latter defined + if ( + (cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && + setTimeout + ) { + cachedSetTimeout = setTimeout; + return setTimeout(fun, 0); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedSetTimeout(fun, 0); + } catch (e) { + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedSetTimeout.call(null, fun, 0); + } catch (e) { + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error + return cachedSetTimeout.call(this, fun, 0); + } + } + } + function runClearTimeout(marker) { + if (cachedClearTimeout === clearTimeout) { + //normal enviroments in sane situations + return clearTimeout(marker); + } + // if clearTimeout wasn't available but was latter defined + if ( + (cachedClearTimeout === defaultClearTimeout || + !cachedClearTimeout) && + clearTimeout + ) { + cachedClearTimeout = clearTimeout; + return clearTimeout(marker); + } + try { + // when when somebody has screwed with setTimeout but no I.E. maddness + return cachedClearTimeout(marker); + } catch (e) { + try { + // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally + return cachedClearTimeout.call(null, marker); + } catch (e) { + // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. + // Some versions of I.E. have different rules for clearTimeout vs setTimeout + return cachedClearTimeout.call(this, marker); + } + } + } + var queue = []; + var draining = false; + var currentQueue; + var queueIndex = -1; + + function cleanUpNextTick() { + if (!draining || !currentQueue) { + return; + } + draining = false; + if (currentQueue.length) { + queue = currentQueue.concat(queue); + } else { + queueIndex = -1; + } + if (queue.length) { + drainQueue(); + } + } + + function drainQueue() { + if (draining) { + return; + } + var timeout = runTimeout(cleanUpNextTick); + draining = true; + + var len = queue.length; + while (len) { + currentQueue = queue; + queue = []; + while (++queueIndex < len) { + if (currentQueue) { + currentQueue[queueIndex].run(); + } + } + queueIndex = -1; + len = queue.length; + } + currentQueue = null; + draining = false; + runClearTimeout(timeout); + } + + process.nextTick = function(fun) { + var args = new Array(arguments.length - 1); + if (arguments.length > 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } + }; + + // v8 likes predictible objects + function Item(fun, array) { + this.fun = fun; + this.array = array; + } + Item.prototype.run = function() { + this.fun.apply(null, this.array); + }; + process.title = 'browser'; + process.browser = true; + process.env = {}; + process.argv = []; + process.version = ''; // empty string to avoid regexp issues + process.versions = {}; + + function noop() {} + + process.on = noop; + process.addListener = noop; + process.once = noop; + process.off = noop; + process.removeListener = noop; + process.removeAllListeners = noop; + process.emit = noop; + process.prependListener = noop; + process.prependOnceListener = noop; + + process.listeners = function(name) { + return []; + }; + + process.binding = function(name) { + throw new Error('process.binding is not supported'); + }; + + process.cwd = function() { + return '/'; + }; + process.chdir = function(dir) { + throw new Error('process.chdir is not supported'); + }; + process.umask = function() { + return 0; + }; + + /***/ + }, + /* 13 */ + /***/ function(module, exports) { + module.exports = true; + + /***/ + }, + /* 14 */ + /***/ function(module, exports, __webpack_require__) { + // 19.1.2.14 / 15.2.3.14 Object.keys(O) + var $keys = __webpack_require__(51); + var enumBugKeys = __webpack_require__(19); + + module.exports = + Object.keys || + function keys(O) { + return $keys(O, enumBugKeys); + }; + + /***/ + }, + /* 15 */ + /***/ function(module, exports) { + exports.f = {}.propertyIsEnumerable; + + /***/ + }, + /* 16 */ + /***/ function(module, exports) { + module.exports = function(bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value, + }; + }; + + /***/ + }, + /* 17 */ + /***/ function(module, exports) { + var id = 0; + var px = Math.random(); + module.exports = function(key) { + return 'Symbol('.concat( + key === undefined ? '' : key, + ')_', + (++id + px).toString(36), + ); + }; + + /***/ + }, + /* 18 */ + /***/ function(module, exports) { + // 7.2.1 RequireObjectCoercible(argument) + module.exports = function(it) { + if (it == undefined) throw TypeError("Can't call method on " + it); + return it; + }; + + /***/ + }, + /* 19 */ + /***/ function(module, exports) { + // IE 8- don't enum bug keys + module.exports = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split( + ',', + ); + + /***/ + }, + /* 20 */ + /***/ function(module, exports) { + module.exports = {}; + + /***/ + }, + /* 21 */ + /***/ function(module, exports, __webpack_require__) { + // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) + var anObject = __webpack_require__(10); + var dPs = __webpack_require__(82); + var enumBugKeys = __webpack_require__(19); + var IE_PROTO = __webpack_require__(24)('IE_PROTO'); + var Empty = function() { + /* empty */ + }; + var PROTOTYPE = 'prototype'; + + // Create object with fake `null` prototype: use iframe Object with cleared prototype + var createDict = function() { + // Thrash, waste and sodomy: IE GC bug + var iframe = __webpack_require__(45)('iframe'); + var i = enumBugKeys.length; + var lt = '<'; + var gt = '>'; + var iframeDocument; + iframe.style.display = 'none'; + __webpack_require__(76).appendChild(iframe); + iframe.src = 'javascript:'; // eslint-disable-line no-script-url + // createDict = iframe.contentWindow.Object; + // html.removeChild(iframe); + iframeDocument = iframe.contentWindow.document; + iframeDocument.open(); + iframeDocument.write( + lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt, + ); + iframeDocument.close(); + createDict = iframeDocument.F; + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; + return createDict(); + }; + + module.exports = + Object.create || + function create(O, Properties) { + var result; + if (O !== null) { + Empty[PROTOTYPE] = anObject(O); + result = new Empty(); + Empty[PROTOTYPE] = null; + // add "__proto__" for Object.getPrototypeOf polyfill + result[IE_PROTO] = O; + } else result = createDict(); + return Properties === undefined ? result : dPs(result, Properties); + }; + + /***/ + }, + /* 22 */ + /***/ function(module, exports) { + exports.f = Object.getOwnPropertySymbols; + + /***/ + }, + /* 23 */ + /***/ function(module, exports, __webpack_require__) { + var def = __webpack_require__(4).f; + var has = __webpack_require__(3); + var TAG = __webpack_require__(9)('toStringTag'); + + module.exports = function(it, tag, stat) { + if (it && !has((it = stat ? it : it.prototype), TAG)) + def(it, TAG, { configurable: true, value: tag }); + }; + + /***/ + }, + /* 24 */ + /***/ function(module, exports, __webpack_require__) { + var shared = __webpack_require__(25)('keys'); + var uid = __webpack_require__(17); + module.exports = function(key) { + return shared[key] || (shared[key] = uid(key)); + }; + + /***/ + }, + /* 25 */ + /***/ function(module, exports, __webpack_require__) { + var core = __webpack_require__(0); + var global = __webpack_require__(2); + var SHARED = '__core-js_shared__'; + var store = global[SHARED] || (global[SHARED] = {}); + + (module.exports = function(key, value) { + return store[key] || (store[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: core.version, + mode: __webpack_require__(13) ? 'pure' : 'global', + copyright: '© 2019 Denis Pushkarev (zloirock.ru)', + }); + + /***/ + }, + /* 26 */ + /***/ function(module, exports) { + // 7.1.4 ToInteger + var ceil = Math.ceil; + var floor = Math.floor; + module.exports = function(it) { + return isNaN((it = +it)) ? 0 : (it > 0 ? floor : ceil)(it); + }; + + /***/ + }, + /* 27 */ + /***/ function(module, exports, __webpack_require__) { + // 7.1.13 ToObject(argument) + var defined = __webpack_require__(18); + module.exports = function(it) { + return Object(defined(it)); + }; + + /***/ + }, + /* 28 */ + /***/ function(module, exports, __webpack_require__) { + // 7.1.1 ToPrimitive(input [, PreferredType]) + var isObject = __webpack_require__(7); + // instead of the ES6 spec version, we didn't implement @@toPrimitive case + // and the second argument - flag - preferred type is a string + module.exports = function(it, S) { + if (!isObject(it)) return it; + var fn, val; + if ( + S && + typeof (fn = it.toString) == 'function' && + !isObject((val = fn.call(it))) + ) + return val; + if ( + typeof (fn = it.valueOf) == 'function' && + !isObject((val = fn.call(it))) + ) + return val; + if ( + !S && + typeof (fn = it.toString) == 'function' && + !isObject((val = fn.call(it))) + ) + return val; + throw TypeError("Can't convert object to primitive value"); + }; + + /***/ + }, + /* 29 */ + /***/ function(module, exports, __webpack_require__) { + var global = __webpack_require__(2); + var core = __webpack_require__(0); + var LIBRARY = __webpack_require__(13); + var wksExt = __webpack_require__(30); + var defineProperty = __webpack_require__(4).f; + module.exports = function(name) { + var $Symbol = + core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); + if (name.charAt(0) != '_' && !(name in $Symbol)) + defineProperty($Symbol, name, { value: wksExt.f(name) }); + }; + + /***/ + }, + /* 30 */ + /***/ function(module, exports, __webpack_require__) { + exports.f = __webpack_require__(9); + + /***/ + }, + /* 31 */ + /***/ function(module, exports, __webpack_require__) { + /* WEBPACK VAR INJECTION */ (function(process) { + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + if (process.env.NODE_ENV !== 'production') { + var ReactIs = __webpack_require__(53); + + // By explicitly using `prop-types` you are opting into new development behavior. + // http://fb.me/prop-types-in-prod + var throwOnDirectAccess = true; + module.exports = __webpack_require__(103)( + ReactIs.isElement, + throwOnDirectAccess, + ); + } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(102)(); + } + + /* WEBPACK VAR INJECTION */ + }.call(exports, __webpack_require__(12))); + + /***/ + }, + /* 32 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + var ReactPropTypesSecret = + 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + + module.exports = ReactPropTypesSecret; + + /***/ + }, + /* 33 */ + /***/ function(module, exports) { + module.exports = __WEBPACK_EXTERNAL_MODULE_33__; + + /***/ + }, + /* 34 */ + /***/ function(module, __webpack_exports__, __webpack_require__) { + 'use strict'; + /* harmony default export */ __webpack_exports__['a'] = { + ZERO: 48, + NINE: 57, + + NUMPAD_ZERO: 96, + NUMPAD_NINE: 105, + + BACKSPACE: 8, + DELETE: 46, + ENTER: 13, + + ARROW_UP: 38, + ARROW_DOWN: 40, + }; + + /***/ + }, + /* 35 */ + /***/ function(module, exports, __webpack_require__) { + module.exports = { default: __webpack_require__(68), __esModule: true }; + + /***/ + }, + /* 36 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + + exports.__esModule = true; + + exports.default = function(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError('Cannot call a class as a function'); + } + }; + + /***/ + }, + /* 37 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + + exports.__esModule = true; + + var _defineProperty = __webpack_require__(35); + + var _defineProperty2 = _interopRequireDefault(_defineProperty); + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + + exports.default = (function() { + function defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ('value' in descriptor) descriptor.writable = true; + (0, _defineProperty2.default)(target, descriptor.key, descriptor); + } + } + + return function(Constructor, protoProps, staticProps) { + if (protoProps) defineProperties(Constructor.prototype, protoProps); + if (staticProps) defineProperties(Constructor, staticProps); + return Constructor; + }; + })(); + + /***/ + }, + /* 38 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + + exports.__esModule = true; + + var _defineProperty = __webpack_require__(35); + + var _defineProperty2 = _interopRequireDefault(_defineProperty); + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + + exports.default = function(obj, key, value) { + if (key in obj) { + (0, _defineProperty2.default)(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true, + }); + } else { + obj[key] = value; + } + + return obj; + }; + + /***/ + }, + /* 39 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + + exports.__esModule = true; + + var _setPrototypeOf = __webpack_require__(62); + + var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf); + + var _create = __webpack_require__(61); + + var _create2 = _interopRequireDefault(_create); + + var _typeof2 = __webpack_require__(41); + + var _typeof3 = _interopRequireDefault(_typeof2); + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + + exports.default = function(subClass, superClass) { + if (typeof superClass !== 'function' && superClass !== null) { + throw new TypeError( + 'Super expression must either be null or a function, not ' + + (typeof superClass === 'undefined' + ? 'undefined' + : (0, _typeof3.default)(superClass)), + ); + } + + subClass.prototype = (0, _create2.default)( + superClass && superClass.prototype, + { + constructor: { + value: subClass, + enumerable: false, + writable: true, + configurable: true, + }, + }, + ); + if (superClass) + _setPrototypeOf2.default + ? (0, _setPrototypeOf2.default)(subClass, superClass) + : (subClass.__proto__ = superClass); + }; + + /***/ + }, + /* 40 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + + exports.__esModule = true; + + var _typeof2 = __webpack_require__(41); + + var _typeof3 = _interopRequireDefault(_typeof2); + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + + exports.default = function(self, call) { + if (!self) { + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called", + ); + } + + return call && + ((typeof call === 'undefined' + ? 'undefined' + : (0, _typeof3.default)(call)) === 'object' || + typeof call === 'function') + ? call + : self; + }; + + /***/ + }, + /* 41 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + + exports.__esModule = true; + + var _iterator = __webpack_require__(64); + + var _iterator2 = _interopRequireDefault(_iterator); + + var _symbol = __webpack_require__(63); + + var _symbol2 = _interopRequireDefault(_symbol); + + var _typeof = + typeof _symbol2.default === 'function' && + typeof _iterator2.default === 'symbol' + ? function(obj) { + return typeof obj; + } + : function(obj) { + return obj && + typeof _symbol2.default === 'function' && + obj.constructor === _symbol2.default && + obj !== _symbol2.default.prototype + ? 'symbol' + : typeof obj; + }; + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + + exports.default = + typeof _symbol2.default === 'function' && + _typeof(_iterator2.default) === 'symbol' + ? function(obj) { + return typeof obj === 'undefined' ? 'undefined' : _typeof(obj); + } + : function(obj) { + return obj && + typeof _symbol2.default === 'function' && + obj.constructor === _symbol2.default && + obj !== _symbol2.default.prototype + ? 'symbol' + : typeof obj === 'undefined' + ? 'undefined' + : _typeof(obj); + }; + + /***/ + }, + /* 42 */ + /***/ function(module, exports, __webpack_require__) { + var __WEBPACK_AMD_DEFINE_ARRAY__, + __WEBPACK_AMD_DEFINE_RESULT__; /*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ + /* global define */ + + (function() { + 'use strict'; + + var hasOwn = {}.hasOwnProperty; + + function classNames() { + var classes = []; + + for (var i = 0; i < arguments.length; i++) { + var arg = arguments[i]; + if (!arg) continue; + + var argType = typeof arg; + + if (argType === 'string' || argType === 'number') { + classes.push(arg); + } else if (Array.isArray(arg) && arg.length) { + var inner = classNames.apply(null, arg); + if (inner) { + classes.push(inner); + } + } else if (argType === 'object') { + for (var key in arg) { + if (hasOwn.call(arg, key) && arg[key]) { + classes.push(key); + } + } + } + } + + return classes.join(' '); + } + + if (typeof module !== 'undefined' && module.exports) { + classNames.default = classNames; + module.exports = classNames; + } else if (true) { + // register as 'classnames', consistent with npm package name + !((__WEBPACK_AMD_DEFINE_ARRAY__ = []), + (__WEBPACK_AMD_DEFINE_RESULT__ = function() { + return classNames; + }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)), + __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && + (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); + } else { + window.classNames = classNames; + } + })(); + + /***/ + }, + /* 43 */ + /***/ function(module, exports) { + var toString = {}.toString; + + module.exports = function(it) { + return toString.call(it).slice(8, -1); + }; + + /***/ + }, + /* 44 */ + /***/ function(module, exports, __webpack_require__) { + // optional / simple context binding + var aFunction = __webpack_require__(72); + module.exports = function(fn, that, length) { + aFunction(fn); + if (that === undefined) return fn; + switch (length) { + case 1: + return function(a) { + return fn.call(that, a); + }; + case 2: + return function(a, b) { + return fn.call(that, a, b); + }; + case 3: + return function(a, b, c) { + return fn.call(that, a, b, c); + }; + } + return function(/* ...args */) { + return fn.apply(that, arguments); + }; + }; + + /***/ + }, + /* 45 */ + /***/ function(module, exports, __webpack_require__) { + var isObject = __webpack_require__(7); + var document = __webpack_require__(2).document; + // typeof document.createElement is 'object' in old IE + var is = isObject(document) && isObject(document.createElement); + module.exports = function(it) { + return is ? document.createElement(it) : {}; + }; + + /***/ + }, + /* 46 */ + /***/ function(module, exports, __webpack_require__) { + module.exports = + !__webpack_require__(1) && + !__webpack_require__(11)(function() { + return ( + Object.defineProperty(__webpack_require__(45)('div'), 'a', { + get: function() { + return 7; + }, + }).a != 7 + ); + }); + + /***/ + }, + /* 47 */ + /***/ function(module, exports, __webpack_require__) { + // fallback for non-array-like ES3 and non-enumerable old V8 strings + var cof = __webpack_require__(43); + // eslint-disable-next-line no-prototype-builtins + module.exports = Object('z').propertyIsEnumerable(0) + ? Object + : function(it) { + return cof(it) == 'String' ? it.split('') : Object(it); + }; + + /***/ + }, + /* 48 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + + var LIBRARY = __webpack_require__(13); + var $export = __webpack_require__(5); + var redefine = __webpack_require__(52); + var hide = __webpack_require__(6); + var Iterators = __webpack_require__(20); + var $iterCreate = __webpack_require__(78); + var setToStringTag = __webpack_require__(23); + var getPrototypeOf = __webpack_require__(84); + var ITERATOR = __webpack_require__(9)('iterator'); + var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` + var FF_ITERATOR = '@@iterator'; + var KEYS = 'keys'; + var VALUES = 'values'; + + var returnThis = function() { + return this; + }; + + module.exports = function( + Base, + NAME, + Constructor, + next, + DEFAULT, + IS_SET, + FORCED, + ) { + $iterCreate(Constructor, NAME, next); + var getMethod = function(kind) { + if (!BUGGY && kind in proto) return proto[kind]; + switch (kind) { + case KEYS: + return function keys() { + return new Constructor(this, kind); + }; + case VALUES: + return function values() { + return new Constructor(this, kind); + }; + } + return function entries() { + return new Constructor(this, kind); + }; + }; + var TAG = NAME + ' Iterator'; + var DEF_VALUES = DEFAULT == VALUES; + var VALUES_BUG = false; + var proto = Base.prototype; + var $native = + proto[ITERATOR] || + proto[FF_ITERATOR] || + (DEFAULT && proto[DEFAULT]); + var $default = $native || getMethod(DEFAULT); + var $entries = DEFAULT + ? !DEF_VALUES + ? $default + : getMethod('entries') + : undefined; + var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; + var methods, key, IteratorPrototype; + // Fix native + if ($anyNative) { + IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); + if ( + IteratorPrototype !== Object.prototype && + IteratorPrototype.next + ) { + // Set @@toStringTag to native iterators + setToStringTag(IteratorPrototype, TAG, true); + // fix for some old engines + if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') + hide(IteratorPrototype, ITERATOR, returnThis); + } + } + // fix Array#{values, @@iterator}.name in V8 / FF + if (DEF_VALUES && $native && $native.name !== VALUES) { + VALUES_BUG = true; + $default = function values() { + return $native.call(this); + }; + } + // Define iterator + if ( + (!LIBRARY || FORCED) && + (BUGGY || VALUES_BUG || !proto[ITERATOR]) + ) { + hide(proto, ITERATOR, $default); + } + // Plug for library + Iterators[NAME] = $default; + Iterators[TAG] = returnThis; + if (DEFAULT) { + methods = { + values: DEF_VALUES ? $default : getMethod(VALUES), + keys: IS_SET ? $default : getMethod(KEYS), + entries: $entries, + }; + if (FORCED) + for (key in methods) { + if (!(key in proto)) redefine(proto, key, methods[key]); + } + else + $export( + $export.P + $export.F * (BUGGY || VALUES_BUG), + NAME, + methods, + ); + } + return methods; + }; + + /***/ + }, + /* 49 */ + /***/ function(module, exports, __webpack_require__) { + var pIE = __webpack_require__(15); + var createDesc = __webpack_require__(16); + var toIObject = __webpack_require__(8); + var toPrimitive = __webpack_require__(28); + var has = __webpack_require__(3); + var IE8_DOM_DEFINE = __webpack_require__(46); + var gOPD = Object.getOwnPropertyDescriptor; + + exports.f = __webpack_require__(1) + ? gOPD + : function getOwnPropertyDescriptor(O, P) { + O = toIObject(O); + P = toPrimitive(P, true); + if (IE8_DOM_DEFINE) + try { + return gOPD(O, P); + } catch (e) { + /* empty */ + } + if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); + }; + + /***/ + }, + /* 50 */ + /***/ function(module, exports, __webpack_require__) { + // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) + var $keys = __webpack_require__(51); + var hiddenKeys = __webpack_require__(19).concat('length', 'prototype'); + + exports.f = + Object.getOwnPropertyNames || + function getOwnPropertyNames(O) { + return $keys(O, hiddenKeys); + }; + + /***/ + }, + /* 51 */ + /***/ function(module, exports, __webpack_require__) { + var has = __webpack_require__(3); + var toIObject = __webpack_require__(8); + var arrayIndexOf = __webpack_require__(74)(false); + var IE_PROTO = __webpack_require__(24)('IE_PROTO'); + + module.exports = function(object, names) { + var O = toIObject(object); + var i = 0; + var result = []; + var key; + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); + // Don't enum bug & hidden keys + while (names.length > i) + if (has(O, (key = names[i++]))) { + ~arrayIndexOf(result, key) || result.push(key); + } + return result; + }; + + /***/ + }, + /* 52 */ + /***/ function(module, exports, __webpack_require__) { + module.exports = __webpack_require__(6); + + /***/ + }, + /* 53 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + /* WEBPACK VAR INJECTION */ (function(process) { + if (process.env.NODE_ENV === 'production') { + module.exports = __webpack_require__(105); + } else { + module.exports = __webpack_require__(104); + } + + /* WEBPACK VAR INJECTION */ + }.call(exports, __webpack_require__(12))); + + /***/ + }, + /* 54 */ + /***/ function(module, __webpack_exports__, __webpack_require__) { + 'use strict'; + Object.defineProperty(__webpack_exports__, '__esModule', { + value: true, + }); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Pagination__ = __webpack_require__( + 58, + ); + /* harmony reexport (binding) */ __webpack_require__.d( + __webpack_exports__, + 'default', + function() { + return __WEBPACK_IMPORTED_MODULE_0__Pagination__['a']; + }, + ); + + /***/ + }, + /* 55 */ + /***/ function(module, exports) { + // removed by extract-text-webpack-plugin + /***/ + }, + /* 56 */ + /***/ function(module, __webpack_exports__, __webpack_require__) { + 'use strict'; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__ = __webpack_require__( + 36, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__ = __webpack_require__( + 37, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__( + 40, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__ = __webpack_require__( + 39, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__( + 33, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_4_react__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__( + 31, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_5_prop_types__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__KeyCode__ = __webpack_require__( + 34, + ); + + var Options = (function(_React$Component) { + __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_inherits___default()( + Options, + _React$Component, + ); + + function Options() { + var _ref; + + var _temp, _this, _ret; + + __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_classCallCheck___default()( + this, + Options, + ); + + for ( + var _len = arguments.length, args = Array(_len), _key = 0; + _key < _len; + _key++ + ) { + args[_key] = arguments[_key]; + } + + return ( + (_ret = + ((_temp = + ((_this = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()( + this, + (_ref = + Options.__proto__ || + Object.getPrototypeOf(Options)).call.apply( + _ref, + [this].concat(args), + ), + )), + _this)), + (_this.state = { + goInputText: '', + }), + (_this.buildOptionText = function(value) { + return value + ' ' + _this.props.locale.items_per_page; + }), + (_this.changeSize = function(value) { + _this.props.changeSize(Number(value)); + }), + (_this.handleChange = function(e) { + _this.setState({ + goInputText: e.target.value, + }); + }), + (_this.handleBlur = function(e) { + var _this$props = _this.props, + goButton = _this$props.goButton, + quickGo = _this$props.quickGo, + rootPrefixCls = _this$props.rootPrefixCls; + + if (goButton) { + return; + } + if ( + e.relatedTarget && + (e.relatedTarget.className.indexOf( + rootPrefixCls + '-prev', + ) >= 0 || + e.relatedTarget.className.indexOf( + rootPrefixCls + '-next', + ) >= 0) + ) { + return; + } + quickGo(_this.getValidValue()); + }), + (_this.go = function(e) { + var goInputText = _this.state.goInputText; + + if (goInputText === '') { + return; + } + if ( + e.keyCode === + __WEBPACK_IMPORTED_MODULE_6__KeyCode__['a' /* default */] + .ENTER || + e.type === 'click' + ) { + _this.setState({ + goInputText: '', + }); + _this.props.quickGo(_this.getValidValue()); + } + }), + _temp)), + __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_possibleConstructorReturn___default()( + _this, + _ret, + ) + ); + } + + __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_createClass___default()( + Options, + [ + { + key: 'getValidValue', + value: function getValidValue() { + var _state = this.state, + goInputText = _state.goInputText, + current = _state.current; + + return !goInputText || isNaN(goInputText) + ? current + : Number(goInputText); + }, + }, + { + key: 'render', + value: function render() { + var _this2 = this; + + var _props = this.props, + pageSize = _props.pageSize, + pageSizeOptions = _props.pageSizeOptions, + locale = _props.locale, + rootPrefixCls = _props.rootPrefixCls, + changeSize = _props.changeSize, + quickGo = _props.quickGo, + goButton = _props.goButton, + selectComponentClass = _props.selectComponentClass, + buildOptionText = _props.buildOptionText, + selectPrefixCls = _props.selectPrefixCls, + disabled = _props.disabled; + var goInputText = this.state.goInputText; + + var prefixCls = rootPrefixCls + '-options'; + var Select = selectComponentClass; + var changeSelect = null; + var goInput = null; + var gotoButton = null; + + if (!changeSize && !quickGo) { + return null; + } + + if (changeSize && Select) { + var options = pageSizeOptions.map(function(opt, i) { + return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( + Select.Option, + { key: i, value: opt }, + (buildOptionText || _this2.buildOptionText)(opt), + ); + }); + + changeSelect = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( + Select, + { + disabled: disabled, + prefixCls: selectPrefixCls, + showSearch: false, + className: prefixCls + '-size-changer', + optionLabelProp: 'children', + dropdownMatchSelectWidth: false, + value: (pageSize || pageSizeOptions[0]).toString(), + onChange: this.changeSize, + getPopupContainer: function getPopupContainer( + triggerNode, + ) { + return triggerNode.parentNode; + }, + }, + options, + ); + } + + if (quickGo) { + if (goButton) { + gotoButton = + typeof goButton === 'boolean' + ? __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( + 'button', + { + type: 'button', + onClick: this.go, + onKeyUp: this.go, + disabled: disabled, + }, + locale.jump_to_confirm, + ) + : __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( + 'span', + { + onClick: this.go, + onKeyUp: this.go, + }, + goButton, + ); + } + goInput = __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( + 'div', + { className: prefixCls + '-quick-jumper' }, + locale.jump_to, + __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( + 'input', + { + disabled: disabled, + type: 'text', + value: goInputText, + onChange: this.handleChange, + onKeyUp: this.go, + onBlur: this.handleBlur, + }, + ), + locale.page, + gotoButton, + ); + } + + return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement( + 'li', + { className: '' + prefixCls }, + changeSelect, + goInput, + ); + }, + }, + ], + ); + + return Options; + })(__WEBPACK_IMPORTED_MODULE_4_react___default.a.Component); + + Options.propTypes = { + disabled: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, + changeSize: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, + quickGo: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, + selectComponentClass: + __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, + current: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, + pageSizeOptions: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.arrayOf( + __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, + ), + pageSize: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.number, + buildOptionText: + __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.func, + locale: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.object, + rootPrefixCls: + __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, + selectPrefixCls: + __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.string, + goButton: __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.oneOfType( + [ + __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.bool, + __WEBPACK_IMPORTED_MODULE_5_prop_types___default.a.node, + ], + ), + }; + Options.defaultProps = { + pageSizeOptions: ['10', '20', '30', '40'], + }; + + /* harmony default export */ __webpack_exports__['a'] = Options; + + /***/ + }, + /* 57 */ + /***/ function(module, __webpack_exports__, __webpack_require__) { + 'use strict'; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__( + 38, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__( + 33, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_1_react__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__( + 31, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_2_prop_types__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_classnames__ = __webpack_require__( + 42, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_classnames___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_3_classnames__, + ); + + var Pager = function Pager(props) { + var _classNames; + + var prefixCls = props.rootPrefixCls + '-item'; + var cls = __WEBPACK_IMPORTED_MODULE_3_classnames___default()( + prefixCls, + prefixCls + '-' + props.page, + ((_classNames = {}), + __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()( + _classNames, + prefixCls + '-active', + props.active, + ), + __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()( + _classNames, + props.className, + !!props.className, + ), + __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()( + _classNames, + prefixCls + '-disabled', + !props.page, + ), + _classNames), + ); + + var handleClick = function handleClick() { + props.onClick(props.page); + }; + + var handleKeyPress = function handleKeyPress(e) { + props.onKeyPress(e, props.onClick, props.page); + }; + + return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement( + 'li', + { + title: props.showTitle ? props.page : null, + className: cls, + onClick: handleClick, + onKeyPress: handleKeyPress, + tabIndex: '0', + }, + props.itemRender( + props.page, + 'page', + __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement( + 'a', + null, + props.page, + ), + ), + ); + }; + + Pager.propTypes = { + page: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, + active: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, + last: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, + locale: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object, + className: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, + showTitle: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool, + rootPrefixCls: + __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, + onClick: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, + onKeyPress: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, + itemRender: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, + }; + + /* harmony default export */ __webpack_exports__['a'] = Pager; + + /***/ + }, + /* 58 */ + /***/ function(module, __webpack_exports__, __webpack_require__) { + 'use strict'; + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__( + 38, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__ = __webpack_require__( + 65, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__ = __webpack_require__( + 36, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__ = __webpack_require__( + 37, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__( + 40, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__ = __webpack_require__( + 39, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react__ = __webpack_require__( + 33, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_6_react__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_classnames__ = __webpack_require__( + 42, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_classnames___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_7_classnames__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types__ = __webpack_require__( + 31, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_prop_types___default = __webpack_require__.n( + __WEBPACK_IMPORTED_MODULE_8_prop_types__, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Pager__ = __webpack_require__( + 57, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Options__ = __webpack_require__( + 56, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__KeyCode__ = __webpack_require__( + 34, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__locale_zh_CN__ = __webpack_require__( + 59, + ); + /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_react_lifecycles_compat__ = __webpack_require__( + 106, + ); + + function noop() {} + + function isInteger(value) { + return ( + typeof value === 'number' && + isFinite(value) && + Math.floor(value) === value + ); + } + + function defaultItemRender(page, type, element) { + return element; + } + + function calculatePage(p, state, props) { + var pageSize = p; + if (typeof pageSize === 'undefined') { + pageSize = state.pageSize; + } + return Math.floor((props.total - 1) / pageSize) + 1; + } + + var Pagination = (function(_React$Component) { + __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_inherits___default()( + Pagination, + _React$Component, + ); + + function Pagination(props) { + __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_classCallCheck___default()( + this, + Pagination, + ); + + var _this = __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_possibleConstructorReturn___default()( + this, + (Pagination.__proto__ || Object.getPrototypeOf(Pagination)).call( + this, + props, + ), + ); + + _initialiseProps.call(_this); + + var hasOnChange = props.onChange !== noop; + var hasCurrent = 'current' in props; + if (hasCurrent && !hasOnChange) { + 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 + } + + var current = props.defaultCurrent; + if ('current' in props) { + current = props.current; + } + + var pageSize = props.defaultPageSize; + if ('pageSize' in props) { + pageSize = props.pageSize; + } + + current = Math.min( + current, + calculatePage(pageSize, undefined, props), + ); + + _this.state = { + current: current, + currentInputValue: current, + pageSize: pageSize, + }; + return _this; + } + + __WEBPACK_IMPORTED_MODULE_3_babel_runtime_helpers_createClass___default()( + Pagination, + [ + { + key: 'componentDidUpdate', + value: function componentDidUpdate(prevProps, prevState) { + // When current page change, fix focused style of prev item + // A hacky solution of https://github.com/ant-design/ant-design/issues/8948 + var prefixCls = this.props.prefixCls; + + if ( + prevState.current !== this.state.current && + this.paginationNode + ) { + var lastCurrentNode = this.paginationNode.querySelector( + '.' + prefixCls + '-item-' + prevState.current, + ); + if ( + lastCurrentNode && + document.activeElement === lastCurrentNode + ) { + lastCurrentNode.blur(); + } + } + }, + }, + { + key: 'getValidValue', + value: function getValidValue(e) { + var inputValue = e.target.value; + var allPages = calculatePage( + undefined, + this.state, + this.props, + ); + var currentInputValue = this.state.currentInputValue; + + var value = void 0; + if (inputValue === '') { + value = inputValue; + } else if (isNaN(Number(inputValue))) { + value = currentInputValue; + } else if (inputValue >= allPages) { + value = allPages; + } else { + value = Number(inputValue); + } + return value; + }, + }, + { + key: 'renderPrev', + value: function renderPrev(prevPage) { + var _props = this.props, + prevIcon = _props.prevIcon, + itemRender = _props.itemRender; + + var prevButton = itemRender( + prevPage, + 'prev', + this.getItemIcon(prevIcon), + ); + var disabled = !this.hasPrev(); + return __webpack_require__.i( + __WEBPACK_IMPORTED_MODULE_6_react__['isValidElement'], + )(prevButton) + ? __webpack_require__.i( + __WEBPACK_IMPORTED_MODULE_6_react__['cloneElement'], + )(prevButton, { disabled: disabled }) + : prevButton; + }, + }, + { + key: 'renderNext', + value: function renderNext(nextPage) { + var _props2 = this.props, + nextIcon = _props2.nextIcon, + itemRender = _props2.itemRender; + + var nextButton = itemRender( + nextPage, + 'next', + this.getItemIcon(nextIcon), + ); + var disabled = !this.hasNext(); + return __webpack_require__.i( + __WEBPACK_IMPORTED_MODULE_6_react__['isValidElement'], + )(nextButton) + ? __webpack_require__.i( + __WEBPACK_IMPORTED_MODULE_6_react__['cloneElement'], + )(nextButton, { disabled: disabled }) + : nextButton; + }, + }, + { + key: 'render', + value: function render() { + var _props3 = this.props, + prefixCls = _props3.prefixCls, + className = _props3.className, + disabled = _props3.disabled; + + // When hideOnSinglePage is true and there is only 1 page, hide the pager + + if ( + this.props.hideOnSinglePage === true && + this.props.total <= this.state.pageSize + ) { + return null; + } + + var props = this.props; + var locale = props.locale; + + var allPages = calculatePage( + undefined, + this.state, + this.props, + ); + var pagerList = []; + var jumpPrev = null; + var jumpNext = null; + var firstPager = null; + var lastPager = null; + var gotoButton = null; + + var goButton = + props.showQuickJumper && props.showQuickJumper.goButton; + var pageBufferSize = props.showLessItems ? 1 : 2; + var _state = this.state, + current = _state.current, + pageSize = _state.pageSize; + + var prevPage = current - 1 > 0 ? current - 1 : 0; + var nextPage = + current + 1 < allPages ? current + 1 : allPages; + + var dataOrAriaAttributeProps = Object.keys(props).reduce( + function(prev, key) { + if ( + key.substr(0, 5) === 'data-' || + key.substr(0, 5) === 'aria-' || + key === 'role' + ) { + prev[key] = props[key]; + } + return prev; + }, + {}, + ); + + if (props.simple) { + if (goButton) { + if (typeof goButton === 'boolean') { + gotoButton = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + 'button', + { + type: 'button', + onClick: this.handleGoTO, + onKeyUp: this.handleGoTO, + }, + locale.jump_to_confirm, + ); + } else { + gotoButton = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + 'span', + { + onClick: this.handleGoTO, + onKeyUp: this.handleGoTO, + }, + goButton, + ); + } + gotoButton = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + 'li', + { + title: props.showTitle + ? '' + + locale.jump_to + + this.state.current + + '/' + + allPages + : null, + className: prefixCls + '-simple-pager', + }, + gotoButton, + ); + } + + return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + 'ul', + __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()( + { + className: + prefixCls + + ' ' + + prefixCls + + '-simple ' + + props.className, + style: props.style, + ref: this.savePaginationNode, + }, + dataOrAriaAttributeProps, + ), + __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + 'li', + { + title: props.showTitle ? locale.prev_page : null, + onClick: this.prev, + tabIndex: this.hasPrev() ? 0 : null, + onKeyPress: this.runIfEnterPrev, + className: + (this.hasPrev() ? '' : prefixCls + '-disabled') + + ' ' + + prefixCls + + '-prev', + 'aria-disabled': !this.hasPrev(), + }, + this.renderPrev(prevPage), + ), + __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + 'li', + { + title: props.showTitle + ? this.state.current + '/' + allPages + : null, + className: prefixCls + '-simple-pager', + }, + __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + 'input', + { + type: 'text', + value: this.state.currentInputValue, + onKeyDown: this.handleKeyDown, + onKeyUp: this.handleKeyUp, + onChange: this.handleKeyUp, + size: '3', + }, + ), + __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + 'span', + { className: prefixCls + '-slash' }, + '/', + ), + allPages, + ), + __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + 'li', + { + title: props.showTitle ? locale.next_page : null, + onClick: this.next, + tabIndex: this.hasPrev() ? 0 : null, + onKeyPress: this.runIfEnterNext, + className: + (this.hasNext() ? '' : prefixCls + '-disabled') + + ' ' + + prefixCls + + '-next', + 'aria-disabled': !this.hasNext(), + }, + this.renderNext(nextPage), + ), + gotoButton, + ); + } + + if (allPages <= 5 + pageBufferSize * 2) { + var pagerProps = { + locale: locale, + rootPrefixCls: prefixCls, + onClick: this.handleChange, + onKeyPress: this.runIfEnter, + showTitle: props.showTitle, + itemRender: props.itemRender, + }; + if (!allPages) { + pagerList.push( + __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + __WEBPACK_IMPORTED_MODULE_9__Pager__[ + 'a' /* default */ + ], + __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()( + {}, + pagerProps, + { + key: 'noPager', + page: allPages, + className: prefixCls + '-disabled', + }, + ), + ), + ); + } + for (var i = 1; i <= allPages; i++) { + var active = this.state.current === i; + pagerList.push( + __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + __WEBPACK_IMPORTED_MODULE_9__Pager__[ + 'a' /* default */ + ], + __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()( + {}, + pagerProps, + { + key: i, + page: i, + active: active, + }, + ), + ), + ); + } + } else { + var prevItemTitle = props.showLessItems + ? locale.prev_3 + : locale.prev_5; + var nextItemTitle = props.showLessItems + ? locale.next_3 + : locale.next_5; + if (props.showPrevNextJumpers) { + var jumpPrevClassString = prefixCls + '-jump-prev'; + if (props.jumpPrevIcon) { + jumpPrevClassString += + ' ' + prefixCls + '-jump-prev-custom-icon'; + } + jumpPrev = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + 'li', + { + title: props.showTitle ? prevItemTitle : null, + key: 'prev', + onClick: this.jumpPrev, + tabIndex: '0', + onKeyPress: this.runIfEnterJumpPrev, + className: jumpPrevClassString, + }, + props.itemRender( + this.getJumpPrevPage(), + 'jump-prev', + this.getItemIcon(props.jumpPrevIcon), + ), + ); + var jumpNextClassString = prefixCls + '-jump-next'; + if (props.jumpNextIcon) { + jumpNextClassString += + ' ' + prefixCls + '-jump-next-custom-icon'; + } + jumpNext = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + 'li', + { + title: props.showTitle ? nextItemTitle : null, + key: 'next', + tabIndex: '0', + onClick: this.jumpNext, + onKeyPress: this.runIfEnterJumpNext, + className: jumpNextClassString, + }, + props.itemRender( + this.getJumpNextPage(), + 'jump-next', + this.getItemIcon(props.jumpNextIcon), + ), + ); + } + lastPager = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + __WEBPACK_IMPORTED_MODULE_9__Pager__['a' /* default */], + { + locale: props.locale, + last: true, + rootPrefixCls: prefixCls, + onClick: this.handleChange, + onKeyPress: this.runIfEnter, + key: allPages, + page: allPages, + active: false, + showTitle: props.showTitle, + itemRender: props.itemRender, + }, + ); + firstPager = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + __WEBPACK_IMPORTED_MODULE_9__Pager__['a' /* default */], + { + locale: props.locale, + rootPrefixCls: prefixCls, + onClick: this.handleChange, + onKeyPress: this.runIfEnter, + key: 1, + page: 1, + active: false, + showTitle: props.showTitle, + itemRender: props.itemRender, + }, + ); + + var left = Math.max(1, current - pageBufferSize); + var right = Math.min(current + pageBufferSize, allPages); + + if (current - 1 <= pageBufferSize) { + right = 1 + pageBufferSize * 2; + } + + if (allPages - current <= pageBufferSize) { + left = allPages - pageBufferSize * 2; + } + + for (var _i = left; _i <= right; _i++) { + var _active = current === _i; + pagerList.push( + __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + __WEBPACK_IMPORTED_MODULE_9__Pager__[ + 'a' /* default */ + ], + { + locale: props.locale, + rootPrefixCls: prefixCls, + onClick: this.handleChange, + onKeyPress: this.runIfEnter, + key: _i, + page: _i, + active: _active, + showTitle: props.showTitle, + itemRender: props.itemRender, + }, + ), + ); + } + + if ( + current - 1 >= pageBufferSize * 2 && + current !== 1 + 2 + ) { + pagerList[0] = __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement( + pagerList[0], + { + className: prefixCls + '-item-after-jump-prev', + }, + ); + pagerList.unshift(jumpPrev); + } + if ( + allPages - current >= pageBufferSize * 2 && + current !== allPages - 2 + ) { + pagerList[ + pagerList.length - 1 + ] = __WEBPACK_IMPORTED_MODULE_6_react___default.a.cloneElement( + pagerList[pagerList.length - 1], + { + className: prefixCls + '-item-before-jump-next', + }, + ); + pagerList.push(jumpNext); + } + + if (left !== 1) { + pagerList.unshift(firstPager); + } + if (right !== allPages) { + pagerList.push(lastPager); + } + } + + var totalText = null; + + if (props.showTotal) { + totalText = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + 'li', + { className: prefixCls + '-total-text' }, + props.showTotal(props.total, [ + props.total === 0 ? 0 : (current - 1) * pageSize + 1, + current * pageSize > props.total + ? props.total + : current * pageSize, + ]), + ); + } + var prevDisabled = !this.hasPrev() || !allPages; + var nextDisabled = !this.hasNext() || !allPages; + return __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + 'ul', + __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()( + { + className: __WEBPACK_IMPORTED_MODULE_7_classnames___default()( + prefixCls, + className, + __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()( + {}, + prefixCls + '-disabled', + disabled, + ), + ), + style: props.style, + unselectable: 'unselectable', + ref: this.savePaginationNode, + }, + dataOrAriaAttributeProps, + ), + totalText, + __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + 'li', + { + title: props.showTitle ? locale.prev_page : null, + onClick: this.prev, + tabIndex: prevDisabled ? null : 0, + onKeyPress: this.runIfEnterPrev, + className: + (!prevDisabled ? '' : prefixCls + '-disabled') + + ' ' + + prefixCls + + '-prev', + 'aria-disabled': prevDisabled, + }, + this.renderPrev(prevPage), + ), + pagerList, + __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + 'li', + { + title: props.showTitle ? locale.next_page : null, + onClick: this.next, + tabIndex: nextDisabled ? null : 0, + onKeyPress: this.runIfEnterNext, + className: + (!nextDisabled ? '' : prefixCls + '-disabled') + + ' ' + + prefixCls + + '-next', + 'aria-disabled': nextDisabled, + }, + this.renderNext(nextPage), + ), + __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + __WEBPACK_IMPORTED_MODULE_10__Options__[ + 'a' /* default */ + ], + { + disabled: disabled, + locale: props.locale, + rootPrefixCls: prefixCls, + selectComponentClass: props.selectComponentClass, + selectPrefixCls: props.selectPrefixCls, + changeSize: this.props.showSizeChanger + ? this.changePageSize + : null, + current: this.state.current, + pageSize: this.state.pageSize, + pageSizeOptions: this.props.pageSizeOptions, + quickGo: this.shouldDisplayQuickJumper() + ? this.handleChange + : null, + goButton: goButton, + }, + ), + ); + }, + }, + ], + [ + { + key: 'getDerivedStateFromProps', + value: function getDerivedStateFromProps(props, prevState) { + var newState = {}; + + if ('current' in props) { + newState.current = props.current; + + if (props.current !== prevState.current) { + newState.currentInputValue = newState.current; + } + } + + if ( + 'pageSize' in props && + props.pageSize !== prevState.pageSize + ) { + var current = prevState.current; + var newCurrent = calculatePage( + props.pageSize, + prevState, + props, + ); + current = current > newCurrent ? newCurrent : current; + + if (!('current' in props)) { + newState.current = current; + newState.currentInputValue = current; + } + newState.pageSize = props.pageSize; + } + + return newState; + }, + + /** + * computed icon node that need to be rendered. + * @param {React.ReactNode | React.ComponentType} icon received icon. + * @returns {React.ReactNode} + */ + }, + ], + ); + + return Pagination; + })(__WEBPACK_IMPORTED_MODULE_6_react___default.a.Component); + + Pagination.propTypes = { + disabled: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, + prefixCls: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string, + className: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string, + current: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number, + defaultCurrent: + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number, + total: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number, + pageSize: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number, + defaultPageSize: + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.number, + onChange: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, + hideOnSinglePage: + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, + showSizeChanger: + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, + showLessItems: + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, + onShowSizeChange: + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, + selectComponentClass: + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, + showPrevNextJumpers: + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, + showQuickJumper: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType( + [ + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.object, + ], + ), + showTitle: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.bool, + pageSizeOptions: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.arrayOf( + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.string, + ), + showTotal: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, + locale: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.object, + style: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.object, + itemRender: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, + prevIcon: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType( + [ + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.node, + ], + ), + nextIcon: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType( + [ + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.node, + ], + ), + jumpPrevIcon: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType( + [ + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.node, + ], + ), + jumpNextIcon: __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.oneOfType( + [ + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.func, + __WEBPACK_IMPORTED_MODULE_8_prop_types___default.a.node, + ], + ), + }; + Pagination.defaultProps = { + defaultCurrent: 1, + total: 0, + defaultPageSize: 10, + onChange: noop, + className: '', + selectPrefixCls: 'rc-select', + prefixCls: 'rc-pagination', + selectComponentClass: null, + hideOnSinglePage: false, + showPrevNextJumpers: true, + showQuickJumper: false, + showSizeChanger: false, + showLessItems: false, + showTitle: true, + onShowSizeChange: noop, + locale: + __WEBPACK_IMPORTED_MODULE_12__locale_zh_CN__['a' /* default */], + style: {}, + itemRender: defaultItemRender, + }; + + var _initialiseProps = function _initialiseProps() { + var _this2 = this; + + this.getJumpPrevPage = function() { + return Math.max( + 1, + _this2.state.current - (_this2.props.showLessItems ? 3 : 5), + ); + }; + + this.getJumpNextPage = function() { + return Math.min( + calculatePage(undefined, _this2.state, _this2.props), + _this2.state.current + (_this2.props.showLessItems ? 3 : 5), + ); + }; + + this.getItemIcon = function(icon) { + var prefixCls = _this2.props.prefixCls; + + var iconNode = + icon || + __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement('a', { + className: prefixCls + '-item-link', + }); + if (typeof icon === 'function') { + iconNode = __WEBPACK_IMPORTED_MODULE_6_react___default.a.createElement( + icon, + __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()( + {}, + _this2.props, + ), + ); + } + return iconNode; + }; + + this.savePaginationNode = function(node) { + _this2.paginationNode = node; + }; + + this.isValid = function(page) { + return isInteger(page) && page !== _this2.state.current; + }; + + this.shouldDisplayQuickJumper = function() { + var _props4 = _this2.props, + showQuickJumper = _props4.showQuickJumper, + pageSize = _props4.pageSize, + total = _props4.total; + + if (total <= pageSize) { + return false; + } + return showQuickJumper; + }; + + this.handleKeyDown = function(e) { + if ( + e.keyCode === + __WEBPACK_IMPORTED_MODULE_11__KeyCode__['a' /* default */] + .ARROW_UP || + e.keyCode === + __WEBPACK_IMPORTED_MODULE_11__KeyCode__['a' /* default */] + .ARROW_DOWN + ) { + e.preventDefault(); + } + }; + + this.handleKeyUp = function(e) { + var value = _this2.getValidValue(e); + var currentInputValue = _this2.state.currentInputValue; + + if (value !== currentInputValue) { + _this2.setState({ + currentInputValue: value, + }); + } + if ( + e.keyCode === + __WEBPACK_IMPORTED_MODULE_11__KeyCode__['a' /* default */].ENTER + ) { + _this2.handleChange(value); + } else if ( + e.keyCode === + __WEBPACK_IMPORTED_MODULE_11__KeyCode__['a' /* default */] + .ARROW_UP + ) { + _this2.handleChange(value - 1); + } else if ( + e.keyCode === + __WEBPACK_IMPORTED_MODULE_11__KeyCode__['a' /* default */] + .ARROW_DOWN + ) { + _this2.handleChange(value + 1); + } + }; + + this.changePageSize = function(size) { + var current = _this2.state.current; + var newCurrent = calculatePage(size, _this2.state, _this2.props); + current = current > newCurrent ? newCurrent : current; + // fix the issue: + // Once 'total' is 0, 'current' in 'onShowSizeChange' is 0, which is not correct. + if (newCurrent === 0) { + current = _this2.state.current; + } + + if (typeof size === 'number') { + if (!('pageSize' in _this2.props)) { + _this2.setState({ + pageSize: size, + }); + } + if (!('current' in _this2.props)) { + _this2.setState({ + current: current, + currentInputValue: current, + }); + } + } + _this2.props.onShowSizeChange(current, size); + }; + + this.handleChange = function(p) { + var disabled = _this2.props.disabled; + + var page = p; + if (_this2.isValid(page) && !disabled) { + var currentPage = calculatePage( + undefined, + _this2.state, + _this2.props, + ); + if (page > currentPage) { + page = currentPage; + } else if (page < 1) { + page = 1; + } + + if (!('current' in _this2.props)) { + _this2.setState({ + current: page, + currentInputValue: page, + }); + } + + var pageSize = _this2.state.pageSize; + _this2.props.onChange(page, pageSize); + + return page; + } + + return _this2.state.current; + }; + + this.prev = function() { + if (_this2.hasPrev()) { + _this2.handleChange(_this2.state.current - 1); + } + }; + + this.next = function() { + if (_this2.hasNext()) { + _this2.handleChange(_this2.state.current + 1); + } + }; + + this.jumpPrev = function() { + _this2.handleChange(_this2.getJumpPrevPage()); + }; + + this.jumpNext = function() { + _this2.handleChange(_this2.getJumpNextPage()); + }; + + this.hasPrev = function() { + return _this2.state.current > 1; + }; + + this.hasNext = function() { + return ( + _this2.state.current < + calculatePage(undefined, _this2.state, _this2.props) + ); + }; + + this.runIfEnter = function(event, callback) { + for ( + var _len = arguments.length, + restParams = Array(_len > 2 ? _len - 2 : 0), + _key = 2; + _key < _len; + _key++ + ) { + restParams[_key - 2] = arguments[_key]; + } + + if (event.key === 'Enter' || event.charCode === 13) { + callback.apply(undefined, restParams); + } + }; + + this.runIfEnterPrev = function(e) { + _this2.runIfEnter(e, _this2.prev); + }; + + this.runIfEnterNext = function(e) { + _this2.runIfEnter(e, _this2.next); + }; + + this.runIfEnterJumpPrev = function(e) { + _this2.runIfEnter(e, _this2.jumpPrev); + }; + + this.runIfEnterJumpNext = function(e) { + _this2.runIfEnter(e, _this2.jumpNext); + }; + + this.handleGoTO = function(e) { + if ( + e.keyCode === + __WEBPACK_IMPORTED_MODULE_11__KeyCode__['a' /* default */] + .ENTER || + e.type === 'click' + ) { + _this2.handleChange(_this2.state.currentInputValue); + } + }; + }; + + __webpack_require__.i( + __WEBPACK_IMPORTED_MODULE_13_react_lifecycles_compat__[ + 'a' /* polyfill */ + ], + )(Pagination); + + /* harmony default export */ __webpack_exports__['a'] = Pagination; + + /***/ + }, + /* 59 */ + /***/ function(module, __webpack_exports__, __webpack_require__) { + 'use strict'; + /* harmony default export */ __webpack_exports__['a'] = { + // Options.jsx + items_per_page: '条/页', + jump_to: '跳至', + jump_to_confirm: '确定', + page: '页', + + // Pagination.jsx + prev_page: '上一页', + next_page: '下一页', + prev_5: '向前 5 页', + next_5: '向后 5 页', + prev_3: '向前 3 页', + next_3: '向后 3 页', + }; + + /***/ + }, + /* 60 */ + /***/ function(module, exports, __webpack_require__) { + module.exports = { default: __webpack_require__(66), __esModule: true }; + + /***/ + }, + /* 61 */ + /***/ function(module, exports, __webpack_require__) { + module.exports = { default: __webpack_require__(67), __esModule: true }; + + /***/ + }, + /* 62 */ + /***/ function(module, exports, __webpack_require__) { + module.exports = { default: __webpack_require__(69), __esModule: true }; + + /***/ + }, + /* 63 */ + /***/ function(module, exports, __webpack_require__) { + module.exports = { default: __webpack_require__(70), __esModule: true }; + + /***/ + }, + /* 64 */ + /***/ function(module, exports, __webpack_require__) { + module.exports = { default: __webpack_require__(71), __esModule: true }; + + /***/ + }, + /* 65 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + + exports.__esModule = true; + + var _assign = __webpack_require__(60); + + var _assign2 = _interopRequireDefault(_assign); + + function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; + } + + exports.default = + _assign2.default || + function(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + /***/ + }, + /* 66 */ + /***/ function(module, exports, __webpack_require__) { + __webpack_require__(90); + module.exports = __webpack_require__(0).Object.assign; + + /***/ + }, + /* 67 */ + /***/ function(module, exports, __webpack_require__) { + __webpack_require__(91); + var $Object = __webpack_require__(0).Object; + module.exports = function create(P, D) { + return $Object.create(P, D); + }; + + /***/ + }, + /* 68 */ + /***/ function(module, exports, __webpack_require__) { + __webpack_require__(92); + var $Object = __webpack_require__(0).Object; + module.exports = function defineProperty(it, key, desc) { + return $Object.defineProperty(it, key, desc); + }; + + /***/ + }, + /* 69 */ + /***/ function(module, exports, __webpack_require__) { + __webpack_require__(93); + module.exports = __webpack_require__(0).Object.setPrototypeOf; + + /***/ + }, + /* 70 */ + /***/ function(module, exports, __webpack_require__) { + __webpack_require__(96); + __webpack_require__(94); + __webpack_require__(97); + __webpack_require__(98); + module.exports = __webpack_require__(0).Symbol; + + /***/ + }, + /* 71 */ + /***/ function(module, exports, __webpack_require__) { + __webpack_require__(95); + __webpack_require__(99); + module.exports = __webpack_require__(30).f('iterator'); + + /***/ + }, + /* 72 */ + /***/ function(module, exports) { + module.exports = function(it) { + if (typeof it != 'function') + throw TypeError(it + ' is not a function!'); + return it; + }; + + /***/ + }, + /* 73 */ + /***/ function(module, exports) { + module.exports = function() { + /* empty */ + }; + + /***/ + }, + /* 74 */ + /***/ function(module, exports, __webpack_require__) { + // false -> Array#indexOf + // true -> Array#includes + var toIObject = __webpack_require__(8); + var toLength = __webpack_require__(88); + var toAbsoluteIndex = __webpack_require__(87); + module.exports = function(IS_INCLUDES) { + return function($this, el, fromIndex) { + var O = toIObject($this); + var length = toLength(O.length); + var index = toAbsoluteIndex(fromIndex, length); + var value; + // Array#includes uses SameValueZero equality algorithm + // eslint-disable-next-line no-self-compare + if (IS_INCLUDES && el != el) + while (length > index) { + value = O[index++]; + // eslint-disable-next-line no-self-compare + if (value != value) return true; + // Array#indexOf ignores holes, Array#includes - not + } + else + for (; length > index; index++) + if (IS_INCLUDES || index in O) { + if (O[index] === el) return IS_INCLUDES || index || 0; + } + return !IS_INCLUDES && -1; + }; + }; + + /***/ + }, + /* 75 */ + /***/ function(module, exports, __webpack_require__) { + // all enumerable object keys, includes symbols + var getKeys = __webpack_require__(14); + var gOPS = __webpack_require__(22); + var pIE = __webpack_require__(15); + module.exports = function(it) { + var result = getKeys(it); + var getSymbols = gOPS.f; + if (getSymbols) { + var symbols = getSymbols(it); + var isEnum = pIE.f; + var i = 0; + var key; + while (symbols.length > i) + if (isEnum.call(it, (key = symbols[i++]))) result.push(key); + } + return result; + }; + + /***/ + }, + /* 76 */ + /***/ function(module, exports, __webpack_require__) { + var document = __webpack_require__(2).document; + module.exports = document && document.documentElement; + + /***/ + }, + /* 77 */ + /***/ function(module, exports, __webpack_require__) { + // 7.2.2 IsArray(argument) + var cof = __webpack_require__(43); + module.exports = + Array.isArray || + function isArray(arg) { + return cof(arg) == 'Array'; + }; + + /***/ + }, + /* 78 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + + var create = __webpack_require__(21); + var descriptor = __webpack_require__(16); + var setToStringTag = __webpack_require__(23); + var IteratorPrototype = {}; + + // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() + __webpack_require__(6)( + IteratorPrototype, + __webpack_require__(9)('iterator'), + function() { + return this; + }, + ); + + module.exports = function(Constructor, NAME, next) { + Constructor.prototype = create(IteratorPrototype, { + next: descriptor(1, next), + }); + setToStringTag(Constructor, NAME + ' Iterator'); + }; + + /***/ + }, + /* 79 */ + /***/ function(module, exports) { + module.exports = function(done, value) { + return { value: value, done: !!done }; + }; + + /***/ + }, + /* 80 */ + /***/ function(module, exports, __webpack_require__) { + var META = __webpack_require__(17)('meta'); + var isObject = __webpack_require__(7); + var has = __webpack_require__(3); + var setDesc = __webpack_require__(4).f; + var id = 0; + var isExtensible = + Object.isExtensible || + function() { + return true; + }; + var FREEZE = !__webpack_require__(11)(function() { + return isExtensible(Object.preventExtensions({})); + }); + var setMeta = function(it) { + setDesc(it, META, { + value: { + i: 'O' + ++id, // object ID + w: {}, // weak collections IDs + }, + }); + }; + var fastKey = function(it, create) { + // return primitive with prefix + if (!isObject(it)) + return typeof it == 'symbol' + ? it + : (typeof it == 'string' ? 'S' : 'P') + it; + if (!has(it, META)) { + // can't set metadata to uncaught frozen object + if (!isExtensible(it)) return 'F'; + // not necessary to add metadata + if (!create) return 'E'; + // add missing metadata + setMeta(it); + // return object ID + } + return it[META].i; + }; + var getWeak = function(it, create) { + if (!has(it, META)) { + // can't set metadata to uncaught frozen object + if (!isExtensible(it)) return true; + // not necessary to add metadata + if (!create) return false; + // add missing metadata + setMeta(it); + // return hash weak collections IDs + } + return it[META].w; + }; + // add metadata on freeze-family methods calling + var onFreeze = function(it) { + if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) + setMeta(it); + return it; + }; + var meta = (module.exports = { + KEY: META, + NEED: false, + fastKey: fastKey, + getWeak: getWeak, + onFreeze: onFreeze, + }); + + /***/ + }, + /* 81 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + + // 19.1.2.1 Object.assign(target, source, ...) + var DESCRIPTORS = __webpack_require__(1); + var getKeys = __webpack_require__(14); + var gOPS = __webpack_require__(22); + var pIE = __webpack_require__(15); + var toObject = __webpack_require__(27); + var IObject = __webpack_require__(47); + var $assign = Object.assign; + + // should work with symbols and should have deterministic property order (V8 bug) + module.exports = + !$assign || + __webpack_require__(11)(function() { + var A = {}; + var B = {}; + // eslint-disable-next-line no-undef + var S = Symbol(); + var K = 'abcdefghijklmnopqrst'; + A[S] = 7; + K.split('').forEach(function(k) { + B[k] = k; + }); + return ( + $assign({}, A)[S] != 7 || + Object.keys($assign({}, B)).join('') != K + ); + }) + ? function assign(target, source) { + // eslint-disable-line no-unused-vars + var T = toObject(target); + var aLen = arguments.length; + var index = 1; + var getSymbols = gOPS.f; + var isEnum = pIE.f; + while (aLen > index) { + var S = IObject(arguments[index++]); + var keys = getSymbols + ? getKeys(S).concat(getSymbols(S)) + : getKeys(S); + var length = keys.length; + var j = 0; + var key; + while (length > j) { + key = keys[j++]; + if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key]; + } + } + return T; + } + : $assign; + + /***/ + }, + /* 82 */ + /***/ function(module, exports, __webpack_require__) { + var dP = __webpack_require__(4); + var anObject = __webpack_require__(10); + var getKeys = __webpack_require__(14); + + module.exports = __webpack_require__(1) + ? Object.defineProperties + : function defineProperties(O, Properties) { + anObject(O); + var keys = getKeys(Properties); + var length = keys.length; + var i = 0; + var P; + while (length > i) dP.f(O, (P = keys[i++]), Properties[P]); + return O; + }; + + /***/ + }, + /* 83 */ + /***/ function(module, exports, __webpack_require__) { + // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window + var toIObject = __webpack_require__(8); + var gOPN = __webpack_require__(50).f; + var toString = {}.toString; + + var windowNames = + typeof window == 'object' && window && Object.getOwnPropertyNames + ? Object.getOwnPropertyNames(window) + : []; + + var getWindowNames = function(it) { + try { + return gOPN(it); + } catch (e) { + return windowNames.slice(); + } + }; + + module.exports.f = function getOwnPropertyNames(it) { + return windowNames && toString.call(it) == '[object Window]' + ? getWindowNames(it) + : gOPN(toIObject(it)); + }; + + /***/ + }, + /* 84 */ + /***/ function(module, exports, __webpack_require__) { + // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) + var has = __webpack_require__(3); + var toObject = __webpack_require__(27); + var IE_PROTO = __webpack_require__(24)('IE_PROTO'); + var ObjectProto = Object.prototype; + + module.exports = + Object.getPrototypeOf || + function(O) { + O = toObject(O); + if (has(O, IE_PROTO)) return O[IE_PROTO]; + if ( + typeof O.constructor == 'function' && + O instanceof O.constructor + ) { + return O.constructor.prototype; + } + return O instanceof Object ? ObjectProto : null; + }; + + /***/ + }, + /* 85 */ + /***/ function(module, exports, __webpack_require__) { + // Works with __proto__ only. Old v8 can't work with null proto objects. + /* eslint-disable no-proto */ + var isObject = __webpack_require__(7); + var anObject = __webpack_require__(10); + var check = function(O, proto) { + anObject(O); + if (!isObject(proto) && proto !== null) + throw TypeError(proto + ": can't set as prototype!"); + }; + module.exports = { + set: + Object.setPrototypeOf || + ('__proto__' in {} // eslint-disable-line + ? (function(test, buggy, set) { + try { + set = __webpack_require__(44)( + Function.call, + __webpack_require__(49).f(Object.prototype, '__proto__') + .set, + 2, + ); + set(test, []); + buggy = !(test instanceof Array); + } catch (e) { + buggy = true; + } + return function setPrototypeOf(O, proto) { + check(O, proto); + if (buggy) O.__proto__ = proto; + else set(O, proto); + return O; + }; + })({}, false) + : undefined), + check: check, + }; + + /***/ + }, + /* 86 */ + /***/ function(module, exports, __webpack_require__) { + var toInteger = __webpack_require__(26); + var defined = __webpack_require__(18); + // true -> String#at + // false -> String#codePointAt + module.exports = function(TO_STRING) { + return function(that, pos) { + var s = String(defined(that)); + var i = toInteger(pos); + var l = s.length; + var a, b; + if (i < 0 || i >= l) return TO_STRING ? '' : undefined; + a = s.charCodeAt(i); + return a < 0xd800 || + a > 0xdbff || + i + 1 === l || + (b = s.charCodeAt(i + 1)) < 0xdc00 || + b > 0xdfff + ? TO_STRING + ? s.charAt(i) + : a + : TO_STRING + ? s.slice(i, i + 2) + : ((a - 0xd800) << 10) + (b - 0xdc00) + 0x10000; + }; + }; + + /***/ + }, + /* 87 */ + /***/ function(module, exports, __webpack_require__) { + var toInteger = __webpack_require__(26); + var max = Math.max; + var min = Math.min; + module.exports = function(index, length) { + index = toInteger(index); + return index < 0 ? max(index + length, 0) : min(index, length); + }; + + /***/ + }, + /* 88 */ + /***/ function(module, exports, __webpack_require__) { + // 7.1.15 ToLength + var toInteger = __webpack_require__(26); + var min = Math.min; + module.exports = function(it) { + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 + }; + + /***/ + }, + /* 89 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + + var addToUnscopables = __webpack_require__(73); + var step = __webpack_require__(79); + var Iterators = __webpack_require__(20); + var toIObject = __webpack_require__(8); + + // 22.1.3.4 Array.prototype.entries() + // 22.1.3.13 Array.prototype.keys() + // 22.1.3.29 Array.prototype.values() + // 22.1.3.30 Array.prototype[@@iterator]() + module.exports = __webpack_require__(48)( + Array, + 'Array', + function(iterated, kind) { + this._t = toIObject(iterated); // target + this._i = 0; // next index + this._k = kind; // kind + // 22.1.5.2.1 %ArrayIteratorPrototype%.next() + }, + function() { + var O = this._t; + var kind = this._k; + var index = this._i++; + if (!O || index >= O.length) { + this._t = undefined; + return step(1); + } + if (kind == 'keys') return step(0, index); + if (kind == 'values') return step(0, O[index]); + return step(0, [index, O[index]]); + }, + 'values', + ); + + // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) + Iterators.Arguments = Iterators.Array; + + addToUnscopables('keys'); + addToUnscopables('values'); + addToUnscopables('entries'); + + /***/ + }, + /* 90 */ + /***/ function(module, exports, __webpack_require__) { + // 19.1.3.1 Object.assign(target, source) + var $export = __webpack_require__(5); + + $export($export.S + $export.F, 'Object', { + assign: __webpack_require__(81), + }); + + /***/ + }, + /* 91 */ + /***/ function(module, exports, __webpack_require__) { + var $export = __webpack_require__(5); + // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) + $export($export.S, 'Object', { create: __webpack_require__(21) }); + + /***/ + }, + /* 92 */ + /***/ function(module, exports, __webpack_require__) { + var $export = __webpack_require__(5); + // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) + $export($export.S + $export.F * !__webpack_require__(1), 'Object', { + defineProperty: __webpack_require__(4).f, + }); + + /***/ + }, + /* 93 */ + /***/ function(module, exports, __webpack_require__) { + // 19.1.3.19 Object.setPrototypeOf(O, proto) + var $export = __webpack_require__(5); + $export($export.S, 'Object', { + setPrototypeOf: __webpack_require__(85).set, + }); + + /***/ + }, + /* 94 */ + /***/ function(module, exports) { + /***/ + }, + /* 95 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + + var $at = __webpack_require__(86)(true); + + // 21.1.3.27 String.prototype[@@iterator]() + __webpack_require__(48)( + String, + 'String', + function(iterated) { + this._t = String(iterated); // target + this._i = 0; // next index + // 21.1.5.2.1 %StringIteratorPrototype%.next() + }, + function() { + var O = this._t; + var index = this._i; + var point; + if (index >= O.length) return { value: undefined, done: true }; + point = $at(O, index); + this._i += point.length; + return { value: point, done: false }; + }, + ); + + /***/ + }, + /* 96 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + + // ECMAScript 6 symbols shim + var global = __webpack_require__(2); + var has = __webpack_require__(3); + var DESCRIPTORS = __webpack_require__(1); + var $export = __webpack_require__(5); + var redefine = __webpack_require__(52); + var META = __webpack_require__(80).KEY; + var $fails = __webpack_require__(11); + var shared = __webpack_require__(25); + var setToStringTag = __webpack_require__(23); + var uid = __webpack_require__(17); + var wks = __webpack_require__(9); + var wksExt = __webpack_require__(30); + var wksDefine = __webpack_require__(29); + var enumKeys = __webpack_require__(75); + var isArray = __webpack_require__(77); + var anObject = __webpack_require__(10); + var isObject = __webpack_require__(7); + var toObject = __webpack_require__(27); + var toIObject = __webpack_require__(8); + var toPrimitive = __webpack_require__(28); + var createDesc = __webpack_require__(16); + var _create = __webpack_require__(21); + var gOPNExt = __webpack_require__(83); + var $GOPD = __webpack_require__(49); + var $GOPS = __webpack_require__(22); + var $DP = __webpack_require__(4); + var $keys = __webpack_require__(14); + var gOPD = $GOPD.f; + var dP = $DP.f; + var gOPN = gOPNExt.f; + var $Symbol = global.Symbol; + var $JSON = global.JSON; + var _stringify = $JSON && $JSON.stringify; + var PROTOTYPE = 'prototype'; + var HIDDEN = wks('_hidden'); + var TO_PRIMITIVE = wks('toPrimitive'); + var isEnum = {}.propertyIsEnumerable; + var SymbolRegistry = shared('symbol-registry'); + var AllSymbols = shared('symbols'); + var OPSymbols = shared('op-symbols'); + var ObjectProto = Object[PROTOTYPE]; + var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f; + var QObject = global.QObject; + // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 + var setter = + !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; + + // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 + var setSymbolDesc = + DESCRIPTORS && + $fails(function() { + return ( + _create( + dP({}, 'a', { + get: function() { + return dP(this, 'a', { value: 7 }).a; + }, + }), + ).a != 7 + ); + }) + ? function(it, key, D) { + var protoDesc = gOPD(ObjectProto, key); + if (protoDesc) delete ObjectProto[key]; + dP(it, key, D); + if (protoDesc && it !== ObjectProto) + dP(ObjectProto, key, protoDesc); + } + : dP; + + var wrap = function(tag) { + var sym = (AllSymbols[tag] = _create($Symbol[PROTOTYPE])); + sym._k = tag; + return sym; + }; + + var isSymbol = + USE_NATIVE && typeof $Symbol.iterator == 'symbol' + ? function(it) { + return typeof it == 'symbol'; + } + : function(it) { + return it instanceof $Symbol; + }; + + var $defineProperty = function defineProperty(it, key, D) { + if (it === ObjectProto) $defineProperty(OPSymbols, key, D); + anObject(it); + key = toPrimitive(key, true); + anObject(D); + if (has(AllSymbols, key)) { + if (!D.enumerable) { + if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); + it[HIDDEN][key] = true; + } else { + if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; + D = _create(D, { enumerable: createDesc(0, false) }); + } + return setSymbolDesc(it, key, D); + } + return dP(it, key, D); + }; + var $defineProperties = function defineProperties(it, P) { + anObject(it); + var keys = enumKeys((P = toIObject(P))); + var i = 0; + var l = keys.length; + var key; + while (l > i) $defineProperty(it, (key = keys[i++]), P[key]); + return it; + }; + var $create = function create(it, P) { + return P === undefined + ? _create(it) + : $defineProperties(_create(it), P); + }; + var $propertyIsEnumerable = function propertyIsEnumerable(key) { + var E = isEnum.call(this, (key = toPrimitive(key, true))); + if ( + this === ObjectProto && + has(AllSymbols, key) && + !has(OPSymbols, key) + ) + return false; + return E || + !has(this, key) || + !has(AllSymbols, key) || + (has(this, HIDDEN) && this[HIDDEN][key]) + ? E + : true; + }; + var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor( + it, + key, + ) { + it = toIObject(it); + key = toPrimitive(key, true); + if ( + it === ObjectProto && + has(AllSymbols, key) && + !has(OPSymbols, key) + ) + return; + var D = gOPD(it, key); + if ( + D && + has(AllSymbols, key) && + !(has(it, HIDDEN) && it[HIDDEN][key]) + ) + D.enumerable = true; + return D; + }; + var $getOwnPropertyNames = function getOwnPropertyNames(it) { + var names = gOPN(toIObject(it)); + var result = []; + var i = 0; + var key; + while (names.length > i) { + if ( + !has(AllSymbols, (key = names[i++])) && + key != HIDDEN && + key != META + ) + result.push(key); + } + return result; + }; + var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { + var IS_OP = it === ObjectProto; + var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); + var result = []; + var i = 0; + var key; + while (names.length > i) { + if ( + has(AllSymbols, (key = names[i++])) && + (IS_OP ? has(ObjectProto, key) : true) + ) + result.push(AllSymbols[key]); + } + return result; + }; + + // 19.4.1.1 Symbol([description]) + if (!USE_NATIVE) { + $Symbol = function Symbol() { + if (this instanceof $Symbol) + throw TypeError('Symbol is not a constructor!'); + var tag = uid(arguments.length > 0 ? arguments[0] : undefined); + var $set = function(value) { + if (this === ObjectProto) $set.call(OPSymbols, value); + if (has(this, HIDDEN) && has(this[HIDDEN], tag)) + this[HIDDEN][tag] = false; + setSymbolDesc(this, tag, createDesc(1, value)); + }; + if (DESCRIPTORS && setter) + setSymbolDesc(ObjectProto, tag, { + configurable: true, + set: $set, + }); + return wrap(tag); + }; + redefine($Symbol[PROTOTYPE], 'toString', function toString() { + return this._k; + }); + + $GOPD.f = $getOwnPropertyDescriptor; + $DP.f = $defineProperty; + __webpack_require__(50).f = gOPNExt.f = $getOwnPropertyNames; + __webpack_require__(15).f = $propertyIsEnumerable; + $GOPS.f = $getOwnPropertySymbols; + + if (DESCRIPTORS && !__webpack_require__(13)) { + redefine( + ObjectProto, + 'propertyIsEnumerable', + $propertyIsEnumerable, + true, + ); + } + + wksExt.f = function(name) { + return wrap(wks(name)); + }; + } + + $export($export.G + $export.W + $export.F * !USE_NATIVE, { + Symbol: $Symbol, + }); + + for ( + var es6Symbols = // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 + 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'.split( + ',', + ), + j = 0; + es6Symbols.length > j; + + ) + wks(es6Symbols[j++]); + + for ( + var wellKnownSymbols = $keys(wks.store), k = 0; + wellKnownSymbols.length > k; + + ) + wksDefine(wellKnownSymbols[k++]); + + $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { + // 19.4.2.1 Symbol.for(key) + for: function(key) { + return has(SymbolRegistry, (key += '')) + ? SymbolRegistry[key] + : (SymbolRegistry[key] = $Symbol(key)); + }, + // 19.4.2.5 Symbol.keyFor(sym) + keyFor: function keyFor(sym) { + if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); + for (var key in SymbolRegistry) + if (SymbolRegistry[key] === sym) return key; + }, + useSetter: function() { + setter = true; + }, + useSimple: function() { + setter = false; + }, + }); + + $export($export.S + $export.F * !USE_NATIVE, 'Object', { + // 19.1.2.2 Object.create(O [, Properties]) + create: $create, + // 19.1.2.4 Object.defineProperty(O, P, Attributes) + defineProperty: $defineProperty, + // 19.1.2.3 Object.defineProperties(O, Properties) + defineProperties: $defineProperties, + // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) + getOwnPropertyDescriptor: $getOwnPropertyDescriptor, + // 19.1.2.7 Object.getOwnPropertyNames(O) + getOwnPropertyNames: $getOwnPropertyNames, + // 19.1.2.8 Object.getOwnPropertySymbols(O) + getOwnPropertySymbols: $getOwnPropertySymbols, + }); + + // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives + // https://bugs.chromium.org/p/v8/issues/detail?id=3443 + var FAILS_ON_PRIMITIVES = $fails(function() { + $GOPS.f(1); + }); + + $export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', { + getOwnPropertySymbols: function getOwnPropertySymbols(it) { + return $GOPS.f(toObject(it)); + }, + }); + + // 24.3.2 JSON.stringify(value [, replacer [, space]]) + $JSON && + $export( + $export.S + + $export.F * + (!USE_NATIVE || + $fails(function() { + var S = $Symbol(); + // MS Edge converts symbol values to JSON as {} + // WebKit converts symbol values to JSON as null + // V8 throws on boxed symbols + return ( + _stringify([S]) != '[null]' || + _stringify({ a: S }) != '{}' || + _stringify(Object(S)) != '{}' + ); + })), + 'JSON', + { + stringify: function stringify(it) { + var args = [it]; + var i = 1; + var replacer, $replacer; + while (arguments.length > i) args.push(arguments[i++]); + $replacer = replacer = args[1]; + if ((!isObject(replacer) && it === undefined) || isSymbol(it)) + return; // IE8 returns string on undefined + if (!isArray(replacer)) + replacer = function(key, value) { + if (typeof $replacer == 'function') + value = $replacer.call(this, key, value); + if (!isSymbol(value)) return value; + }; + args[1] = replacer; + return _stringify.apply($JSON, args); + }, + }, + ); + + // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) + $Symbol[PROTOTYPE][TO_PRIMITIVE] || + __webpack_require__(6)( + $Symbol[PROTOTYPE], + TO_PRIMITIVE, + $Symbol[PROTOTYPE].valueOf, + ); + // 19.4.3.5 Symbol.prototype[@@toStringTag] + setToStringTag($Symbol, 'Symbol'); + // 20.2.1.9 Math[@@toStringTag] + setToStringTag(Math, 'Math', true); + // 24.3.3 JSON[@@toStringTag] + setToStringTag(global.JSON, 'JSON', true); + + /***/ + }, + /* 97 */ + /***/ function(module, exports, __webpack_require__) { + __webpack_require__(29)('asyncIterator'); + + /***/ + }, + /* 98 */ + /***/ function(module, exports, __webpack_require__) { + __webpack_require__(29)('observable'); + + /***/ + }, + /* 99 */ + /***/ function(module, exports, __webpack_require__) { + __webpack_require__(89); + var global = __webpack_require__(2); + var hide = __webpack_require__(6); + var Iterators = __webpack_require__(20); + var TO_STRING_TAG = __webpack_require__(9)('toStringTag'); + + var DOMIterables = ( + 'CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + + 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + + 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + + 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + + 'TextTrackList,TouchList' + ).split(','); + + for (var i = 0; i < DOMIterables.length; i++) { + var NAME = DOMIterables[i]; + var Collection = global[NAME]; + var proto = Collection && Collection.prototype; + if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); + Iterators[NAME] = Iterators.Array; + } + + /***/ + }, + /* 100 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + /* +object-assign +(c) Sindre Sorhus +@license MIT +*/ + + /* eslint-disable no-unused-vars */ + var getOwnPropertySymbols = Object.getOwnPropertySymbols; + var hasOwnProperty = Object.prototype.hasOwnProperty; + var propIsEnumerable = Object.prototype.propertyIsEnumerable; + + function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError( + 'Object.assign cannot be called with null or undefined', + ); + } + + return Object(val); + } + + function shouldUseNative() { + try { + if (!Object.assign) { + return false; + } + + // Detect buggy property enumeration order in older V8 versions. + + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers + test1[5] = 'de'; + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test2 = {}; + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i; + } + var order2 = Object.getOwnPropertyNames(test2).map(function(n) { + return test2[n]; + }); + if (order2.join('') !== '0123456789') { + return false; + } + + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test3 = {}; + 'abcdefghijklmnopqrst'.split('').forEach(function(letter) { + test3[letter] = letter; + }); + if ( + Object.keys(Object.assign({}, test3)).join('') !== + 'abcdefghijklmnopqrst' + ) { + return false; + } + + return true; + } catch (err) { + // We don't expect any of the above to throw, but better to be safe. + return false; + } + } + + module.exports = shouldUseNative() + ? Object.assign + : function(target, source) { + var from; + var to = toObject(target); + var symbols; + + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); + + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; + } + } + + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; + } + } + } + } + + return to; + }; + + /***/ + }, + /* 101 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + /* WEBPACK VAR INJECTION */ (function(process) { + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + var printWarning = function() {}; + + if (process.env.NODE_ENV !== 'production') { + var ReactPropTypesSecret = __webpack_require__(32); + var loggedTypeFailures = {}; + var has = Function.call.bind(Object.prototype.hasOwnProperty); + + printWarning = function(text) { + var message = 'Warning: ' + text; + if (typeof console !== 'undefined') { + console.error(message); + } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; + } + + /** + * Assert that the values match with the type specs. + * Error messages are memorized and will only be shown once. + * + * @param {object} typeSpecs Map of name to a ReactPropType + * @param {object} values Runtime values that need to be type-checked + * @param {string} location e.g. "prop", "context", "child context" + * @param {string} componentName Name of the component for error messages. + * @param {?Function} getStack Returns the component stack. + * @private + */ + function checkPropTypes( + typeSpecs, + values, + location, + componentName, + getStack, + ) { + if (process.env.NODE_ENV !== 'production') { + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error; + // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. + try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. + if (typeof typeSpecs[typeSpecName] !== 'function') { + var err = Error( + (componentName || 'React class') + + ': ' + + location + + ' type `' + + typeSpecName + + '` is invalid; ' + + 'it must be a function, usually from the `prop-types` package, but received `' + + typeof typeSpecs[typeSpecName] + + '`.', + ); + err.name = 'Invariant Violation'; + throw err; + } + error = typeSpecs[typeSpecName]( + values, + typeSpecName, + componentName, + location, + null, + ReactPropTypesSecret, + ); + } catch (ex) { + error = ex; + } + if (error && !(error instanceof Error)) { + printWarning( + (componentName || 'React class') + + ': type specification of ' + + location + + ' `' + + typeSpecName + + '` is invalid; the type checker ' + + 'function must return `null` or an `Error` but returned a ' + + typeof error + + '. ' + + 'You may have forgotten to pass an argument to the type checker ' + + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + + 'shape all require an argument).', + ); + } + if ( + error instanceof Error && + !(error.message in loggedTypeFailures) + ) { + // Only monitor this failure once because there tends to be a lot of the + // same error. + loggedTypeFailures[error.message] = true; + + var stack = getStack ? getStack() : ''; + + printWarning( + 'Failed ' + + location + + ' type: ' + + error.message + + (stack != null ? stack : ''), + ); + } + } + } + } + } + + /** + * Resets warning cache when testing. + * + * @private + */ + checkPropTypes.resetWarningCache = function() { + if (process.env.NODE_ENV !== 'production') { + loggedTypeFailures = {}; + } + }; + + module.exports = checkPropTypes; + + /* WEBPACK VAR INJECTION */ + }.call(exports, __webpack_require__(12))); + + /***/ + }, + /* 102 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + var ReactPropTypesSecret = __webpack_require__(32); + + function emptyFunction() {} + function emptyFunctionWithReset() {} + emptyFunctionWithReset.resetWarningCache = emptyFunction; + + module.exports = function() { + function shim( + props, + propName, + componentName, + location, + propFullName, + secret, + ) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; + } + var err = new Error( + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use PropTypes.checkPropTypes() to call them. ' + + 'Read more at http://fb.me/use-check-prop-types', + ); + err.name = 'Invariant Violation'; + throw err; + } + shim.isRequired = shim; + function getShim() { + return shim; + } + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + + any: shim, + arrayOf: getShim, + element: shim, + elementType: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim, + + checkPropTypes: emptyFunctionWithReset, + resetWarningCache: emptyFunction, + }; + + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; + }; + + /***/ + }, + /* 103 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + /* WEBPACK VAR INJECTION */ (function(process) { + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + var ReactIs = __webpack_require__(53); + var assign = __webpack_require__(100); + + var ReactPropTypesSecret = __webpack_require__(32); + var checkPropTypes = __webpack_require__(101); + + var has = Function.call.bind(Object.prototype.hasOwnProperty); + var printWarning = function() {}; + + if (process.env.NODE_ENV !== 'production') { + printWarning = function(text) { + var message = 'Warning: ' + text; + if (typeof console !== 'undefined') { + console.error(message); + } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; + } + + function emptyFunctionThatReturnsNull() { + return null; + } + + module.exports = function(isValidElement, throwOnDirectAccess) { + /* global Symbol */ + var ITERATOR_SYMBOL = + typeof Symbol === 'function' && Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. + + /** + * Returns the iterator method function contained on the iterable object. + * + * Be sure to invoke the function with the iterable as context: + * + * var iteratorFn = getIteratorFn(myIterable); + * if (iteratorFn) { + * var iterator = iteratorFn.call(myIterable); + * ... + * } + * + * @param {?object} maybeIterable + * @return {?function} + */ + function getIteratorFn(maybeIterable) { + var iteratorFn = + maybeIterable && + ((ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL]) || + maybeIterable[FAUX_ITERATOR_SYMBOL]); + if (typeof iteratorFn === 'function') { + return iteratorFn; + } + } + + /** + * Collection of methods that allow declaration and validation of props that are + * supplied to React components. Example usage: + * + * var Props = require('ReactPropTypes'); + * var MyArticle = React.createClass({ + * propTypes: { + * // An optional string prop named "description". + * description: Props.string, + * + * // A required enum prop named "category". + * category: Props.oneOf(['News','Photos']).isRequired, + * + * // A prop named "dialog" that requires an instance of Dialog. + * dialog: Props.instanceOf(Dialog).isRequired + * }, + * render: function() { ... } + * }); + * + * A more formal specification of how these methods are used: + * + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) + * decl := ReactPropTypes.{type}(.isRequired)? + * + * Each and every declaration produces a function with the same signature. This + * allows the creation of custom validation functions. For example: + * + * var MyLink = React.createClass({ + * propTypes: { + * // An optional string or URI prop named "href". + * href: function(props, propName, componentName) { + * var propValue = props[propName]; + * if (propValue != null && typeof propValue !== 'string' && + * !(propValue instanceof URI)) { + * return new Error( + * 'Expected a string or an URI for ' + propName + ' in ' + + * componentName + * ); + * } + * } + * }, + * render: function() {...} + * }); + * + * @internal + */ + + var ANONYMOUS = '<>'; + + // Important! + // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. + var ReactPropTypes = { + array: createPrimitiveTypeChecker('array'), + bool: createPrimitiveTypeChecker('boolean'), + func: createPrimitiveTypeChecker('function'), + number: createPrimitiveTypeChecker('number'), + object: createPrimitiveTypeChecker('object'), + string: createPrimitiveTypeChecker('string'), + symbol: createPrimitiveTypeChecker('symbol'), + + any: createAnyTypeChecker(), + arrayOf: createArrayOfTypeChecker, + element: createElementTypeChecker(), + elementType: createElementTypeTypeChecker(), + instanceOf: createInstanceTypeChecker, + node: createNodeChecker(), + objectOf: createObjectOfTypeChecker, + oneOf: createEnumTypeChecker, + oneOfType: createUnionTypeChecker, + shape: createShapeTypeChecker, + exact: createStrictShapeTypeChecker, + }; + + /** + * inlined Object.is polyfill to avoid requiring consumers ship their own + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is + */ + /*eslint-disable no-self-compare*/ + function is(x, y) { + // SameValue algorithm + if (x === y) { + // Steps 1-5, 7-10 + // Steps 6.b-6.e: +0 != -0 + return x !== 0 || 1 / x === 1 / y; + } else { + // Step 6.a: NaN == NaN + return x !== x && y !== y; + } + } + /*eslint-enable no-self-compare*/ + + /** + * We use an Error-like object for backward compatibility as people may call + * PropTypes directly and inspect their output. However, we don't use real + * Errors anymore. We don't inspect their stack anyway, and creating them + * is prohibitively expensive if they are created too often, such as what + * happens in oneOfType() for any type before the one that matched. + */ + function PropTypeError(message) { + this.message = message; + this.stack = ''; + } + // Make `instanceof Error` still work for returned errors. + PropTypeError.prototype = Error.prototype; + + function createChainableTypeChecker(validate) { + if (process.env.NODE_ENV !== 'production') { + var manualPropTypeCallCache = {}; + var manualPropTypeWarningCount = 0; + } + function checkType( + isRequired, + props, + propName, + componentName, + location, + propFullName, + secret, + ) { + componentName = componentName || ANONYMOUS; + propFullName = propFullName || propName; + + if (secret !== ReactPropTypesSecret) { + if (throwOnDirectAccess) { + // New behavior only for users of `prop-types` package + var err = new Error( + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use `PropTypes.checkPropTypes()` to call them. ' + + 'Read more at http://fb.me/use-check-prop-types', + ); + err.name = 'Invariant Violation'; + throw err; + } else if ( + process.env.NODE_ENV !== 'production' && + typeof console !== 'undefined' + ) { + // Old behavior for people using React.PropTypes + var cacheKey = componentName + ':' + propName; + if ( + !manualPropTypeCallCache[cacheKey] && + // Avoid spamming the console because they are often not actionable except for lib authors + manualPropTypeWarningCount < 3 + ) { + printWarning( + 'You are manually calling a React.PropTypes validation ' + + 'function for the `' + + propFullName + + '` prop on `' + + componentName + + '`. This is deprecated ' + + 'and will throw in the standalone `prop-types` package. ' + + 'You may be seeing this warning due to a third-party PropTypes ' + + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + + 'for details.', + ); + manualPropTypeCallCache[cacheKey] = true; + manualPropTypeWarningCount++; + } + } + } + if (props[propName] == null) { + if (isRequired) { + if (props[propName] === null) { + return new PropTypeError( + 'The ' + + location + + ' `' + + propFullName + + '` is marked as required ' + + ('in `' + + componentName + + '`, but its value is `null`.'), + ); + } + return new PropTypeError( + 'The ' + + location + + ' `' + + propFullName + + '` is marked as required in ' + + ('`' + + componentName + + '`, but its value is `undefined`.'), + ); + } + return null; + } else { + return validate( + props, + propName, + componentName, + location, + propFullName, + ); + } + } + + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); + + return chainedCheckType; + } + + function createPrimitiveTypeChecker(expectedType) { + function validate( + props, + propName, + componentName, + location, + propFullName, + secret, + ) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== expectedType) { + // `propValue` being instance of, say, date/regexp, pass the 'object' + // check, but we can offer a more precise error message here rather than + // 'of type `object`'. + var preciseType = getPreciseType(propValue); + + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of type ' + + ('`' + + preciseType + + '` supplied to `' + + componentName + + '`, expected ') + + ('`' + expectedType + '`.'), + ); + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createAnyTypeChecker() { + return createChainableTypeChecker(emptyFunctionThatReturnsNull); + } + + function createArrayOfTypeChecker(typeChecker) { + function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + if (typeof typeChecker !== 'function') { + return new PropTypeError( + 'Property `' + + propFullName + + '` of component `' + + componentName + + '` has invalid PropType notation inside arrayOf.', + ); + } + var propValue = props[propName]; + if (!Array.isArray(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of type ' + + ('`' + + propType + + '` supplied to `' + + componentName + + '`, expected an array.'), + ); + } + for (var i = 0; i < propValue.length; i++) { + var error = typeChecker( + propValue, + i, + componentName, + location, + propFullName + '[' + i + ']', + ReactPropTypesSecret, + ); + if (error instanceof Error) { + return error; + } + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createElementTypeChecker() { + function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + var propValue = props[propName]; + if (!isValidElement(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of type ' + + ('`' + + propType + + '` supplied to `' + + componentName + + '`, expected a single ReactElement.'), + ); + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createElementTypeTypeChecker() { + function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + var propValue = props[propName]; + if (!ReactIs.isValidElementType(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of type ' + + ('`' + + propType + + '` supplied to `' + + componentName + + '`, expected a single ReactElement type.'), + ); + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createInstanceTypeChecker(expectedClass) { + function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + if (!(props[propName] instanceof expectedClass)) { + var expectedClassName = expectedClass.name || ANONYMOUS; + var actualClassName = getClassName(props[propName]); + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of type ' + + ('`' + + actualClassName + + '` supplied to `' + + componentName + + '`, expected ') + + ('instance of `' + expectedClassName + '`.'), + ); + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createEnumTypeChecker(expectedValues) { + if (!Array.isArray(expectedValues)) { + if (process.env.NODE_ENV !== 'production') { + if (arguments.length > 1) { + printWarning( + 'Invalid arguments supplied to oneOf, expected an array, got ' + + arguments.length + + ' arguments. ' + + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).', + ); + } else { + printWarning( + 'Invalid argument supplied to oneOf, expected an array.', + ); + } + } + return emptyFunctionThatReturnsNull; + } + + function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + var propValue = props[propName]; + for (var i = 0; i < expectedValues.length; i++) { + if (is(propValue, expectedValues[i])) { + return null; + } + } + + var valuesString = JSON.stringify( + expectedValues, + function replacer(key, value) { + var type = getPreciseType(value); + if (type === 'symbol') { + return String(value); + } + return value; + }, + ); + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of value `' + + String(propValue) + + '` ' + + ('supplied to `' + + componentName + + '`, expected one of ' + + valuesString + + '.'), + ); + } + return createChainableTypeChecker(validate); + } + + function createObjectOfTypeChecker(typeChecker) { + function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + if (typeof typeChecker !== 'function') { + return new PropTypeError( + 'Property `' + + propFullName + + '` of component `' + + componentName + + '` has invalid PropType notation inside objectOf.', + ); + } + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of type ' + + ('`' + + propType + + '` supplied to `' + + componentName + + '`, expected an object.'), + ); + } + for (var key in propValue) { + if (has(propValue, key)) { + var error = typeChecker( + propValue, + key, + componentName, + location, + propFullName + '.' + key, + ReactPropTypesSecret, + ); + if (error instanceof Error) { + return error; + } + } + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createUnionTypeChecker(arrayOfTypeCheckers) { + if (!Array.isArray(arrayOfTypeCheckers)) { + process.env.NODE_ENV !== 'production' + ? printWarning( + 'Invalid argument supplied to oneOfType, expected an instance of array.', + ) + : void 0; + return emptyFunctionThatReturnsNull; + } + + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + if (typeof checker !== 'function') { + printWarning( + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + + 'received ' + + getPostfixForTypeWarning(checker) + + ' at index ' + + i + + '.', + ); + return emptyFunctionThatReturnsNull; + } + } + + function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + if ( + checker( + props, + propName, + componentName, + location, + propFullName, + ReactPropTypesSecret, + ) == null + ) { + return null; + } + } + + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` supplied to ' + + ('`' + componentName + '`.'), + ); + } + return createChainableTypeChecker(validate); + } + + function createNodeChecker() { + function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + if (!isNode(props[propName])) { + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` supplied to ' + + ('`' + componentName + '`, expected a ReactNode.'), + ); + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createShapeTypeChecker(shapeTypes) { + function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of type `' + + propType + + '` ' + + ('supplied to `' + + componentName + + '`, expected `object`.'), + ); + } + for (var key in shapeTypes) { + var checker = shapeTypes[key]; + if (!checker) { + continue; + } + var error = checker( + propValue, + key, + componentName, + location, + propFullName + '.' + key, + ReactPropTypesSecret, + ); + if (error) { + return error; + } + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createStrictShapeTypeChecker(shapeTypes) { + function validate( + props, + propName, + componentName, + location, + propFullName, + ) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` of type `' + + propType + + '` ' + + ('supplied to `' + + componentName + + '`, expected `object`.'), + ); + } + // We need to check all keys in case some are required but missing from + // props. + var allKeys = assign({}, props[propName], shapeTypes); + for (var key in allKeys) { + var checker = shapeTypes[key]; + if (!checker) { + return new PropTypeError( + 'Invalid ' + + location + + ' `' + + propFullName + + '` key `' + + key + + '` supplied to `' + + componentName + + '`.' + + '\nBad object: ' + + JSON.stringify(props[propName], null, ' ') + + '\nValid keys: ' + + JSON.stringify(Object.keys(shapeTypes), null, ' '), + ); + } + var error = checker( + propValue, + key, + componentName, + location, + propFullName + '.' + key, + ReactPropTypesSecret, + ); + if (error) { + return error; + } + } + return null; + } + + return createChainableTypeChecker(validate); + } + + function isNode(propValue) { + switch (typeof propValue) { + case 'number': + case 'string': + case 'undefined': + return true; + case 'boolean': + return !propValue; + case 'object': + if (Array.isArray(propValue)) { + return propValue.every(isNode); + } + if (propValue === null || isValidElement(propValue)) { + return true; + } + + var iteratorFn = getIteratorFn(propValue); + if (iteratorFn) { + var iterator = iteratorFn.call(propValue); + var step; + if (iteratorFn !== propValue.entries) { + while (!(step = iterator.next()).done) { + if (!isNode(step.value)) { + return false; + } + } + } else { + // Iterator will provide entry [k,v] tuples rather than values. + while (!(step = iterator.next()).done) { + var entry = step.value; + if (entry) { + if (!isNode(entry[1])) { + return false; + } + } + } + } + } else { + return false; + } + + return true; + default: + return false; + } + } + + function isSymbol(propType, propValue) { + // Native Symbol. + if (propType === 'symbol') { + return true; + } + + // falsy value can't be a Symbol + if (!propValue) { + return false; + } + + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' + if (propValue['@@toStringTag'] === 'Symbol') { + return true; + } + + // Fallback for non-spec compliant Symbols which are polyfilled. + if (typeof Symbol === 'function' && propValue instanceof Symbol) { + return true; + } + + return false; + } + + // Equivalent of `typeof` but with special handling for array and regexp. + function getPropType(propValue) { + var propType = typeof propValue; + if (Array.isArray(propValue)) { + return 'array'; + } + if (propValue instanceof RegExp) { + // Old webkits (at least until Android 4.0) return 'function' rather than + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ + // passes PropTypes.object. + return 'object'; + } + if (isSymbol(propType, propValue)) { + return 'symbol'; + } + return propType; + } + + // This handles more types than `getPropType`. Only used for error messages. + // See `createPrimitiveTypeChecker`. + function getPreciseType(propValue) { + if (typeof propValue === 'undefined' || propValue === null) { + return '' + propValue; + } + var propType = getPropType(propValue); + if (propType === 'object') { + if (propValue instanceof Date) { + return 'date'; + } else if (propValue instanceof RegExp) { + return 'regexp'; + } + } + return propType; + } + + // Returns a string that is postfixed to a warning about an invalid type. + // For example, "undefined" or "of type array" + function getPostfixForTypeWarning(value) { + var type = getPreciseType(value); + switch (type) { + case 'array': + case 'object': + return 'an ' + type; + case 'boolean': + case 'date': + case 'regexp': + return 'a ' + type; + default: + return type; + } + } + + // Returns class name of the object, if any. + function getClassName(propValue) { + if (!propValue.constructor || !propValue.constructor.name) { + return ANONYMOUS; + } + return propValue.constructor.name; + } + + ReactPropTypes.checkPropTypes = checkPropTypes; + ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; + }; + + /* WEBPACK VAR INJECTION */ + }.call(exports, __webpack_require__(12))); + + /***/ + }, + /* 104 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + /* WEBPACK VAR INJECTION */ (function(process) { + /** @license React v16.12.0 + * react-is.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + if (process.env.NODE_ENV !== 'production') { + (function() { + 'use strict'; + + Object.defineProperty(exports, '__esModule', { value: true }); + + // The Symbol used to tag the ReactElement-like types. If there is no native Symbol + // nor polyfill, then a plain number is used for performance. + var hasSymbol = typeof Symbol === 'function' && Symbol.for; + var REACT_ELEMENT_TYPE = hasSymbol + ? Symbol.for('react.element') + : 0xeac7; + var REACT_PORTAL_TYPE = hasSymbol + ? Symbol.for('react.portal') + : 0xeaca; + var REACT_FRAGMENT_TYPE = hasSymbol + ? Symbol.for('react.fragment') + : 0xeacb; + var REACT_STRICT_MODE_TYPE = hasSymbol + ? Symbol.for('react.strict_mode') + : 0xeacc; + var REACT_PROFILER_TYPE = hasSymbol + ? Symbol.for('react.profiler') + : 0xead2; + var REACT_PROVIDER_TYPE = hasSymbol + ? Symbol.for('react.provider') + : 0xeacd; + var REACT_CONTEXT_TYPE = hasSymbol + ? Symbol.for('react.context') + : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary + // (unstable) APIs that have been removed. Can we remove the symbols? + + var REACT_ASYNC_MODE_TYPE = hasSymbol + ? Symbol.for('react.async_mode') + : 0xeacf; + var REACT_CONCURRENT_MODE_TYPE = hasSymbol + ? Symbol.for('react.concurrent_mode') + : 0xeacf; + var REACT_FORWARD_REF_TYPE = hasSymbol + ? Symbol.for('react.forward_ref') + : 0xead0; + var REACT_SUSPENSE_TYPE = hasSymbol + ? Symbol.for('react.suspense') + : 0xead1; + var REACT_SUSPENSE_LIST_TYPE = hasSymbol + ? Symbol.for('react.suspense_list') + : 0xead8; + var REACT_MEMO_TYPE = hasSymbol + ? Symbol.for('react.memo') + : 0xead3; + var REACT_LAZY_TYPE = hasSymbol + ? Symbol.for('react.lazy') + : 0xead4; + var REACT_FUNDAMENTAL_TYPE = hasSymbol + ? Symbol.for('react.fundamental') + : 0xead5; + var REACT_RESPONDER_TYPE = hasSymbol + ? Symbol.for('react.responder') + : 0xead6; + var REACT_SCOPE_TYPE = hasSymbol + ? Symbol.for('react.scope') + : 0xead7; + + function isValidElementType(type) { + return ( + typeof type === 'string' || + typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + type === REACT_FRAGMENT_TYPE || + type === REACT_CONCURRENT_MODE_TYPE || + type === REACT_PROFILER_TYPE || + type === REACT_STRICT_MODE_TYPE || + type === REACT_SUSPENSE_TYPE || + type === REACT_SUSPENSE_LIST_TYPE || + (typeof type === 'object' && + type !== null && + (type.$$typeof === REACT_LAZY_TYPE || + type.$$typeof === REACT_MEMO_TYPE || + type.$$typeof === REACT_PROVIDER_TYPE || + type.$$typeof === REACT_CONTEXT_TYPE || + type.$$typeof === REACT_FORWARD_REF_TYPE || + type.$$typeof === REACT_FUNDAMENTAL_TYPE || + type.$$typeof === REACT_RESPONDER_TYPE || + type.$$typeof === REACT_SCOPE_TYPE)) + ); + } + + /** + * Forked from fbjs/warning: + * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js + * + * Only change is we use console.warn instead of console.error, + * and do nothing when 'console' is not supported. + * This really simplifies the code. + * --- + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ + var lowPriorityWarningWithoutStack = function() {}; + + { + var printWarning = function(format) { + for ( + var _len = arguments.length, + args = new Array(_len > 1 ? _len - 1 : 0), + _key = 1; + _key < _len; + _key++ + ) { + args[_key - 1] = arguments[_key]; + } + + var argIndex = 0; + var message = + 'Warning: ' + + format.replace(/%s/g, function() { + return args[argIndex++]; + }); + + if (typeof console !== 'undefined') { + console.warn(message); + } + + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; + + lowPriorityWarningWithoutStack = function(condition, format) { + if (format === undefined) { + throw new Error( + '`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning ' + + 'message argument', + ); + } + + if (!condition) { + for ( + var _len2 = arguments.length, + args = new Array(_len2 > 2 ? _len2 - 2 : 0), + _key2 = 2; + _key2 < _len2; + _key2++ + ) { + args[_key2 - 2] = arguments[_key2]; + } + + printWarning.apply(void 0, [format].concat(args)); + } + }; + } + + var lowPriorityWarningWithoutStack$1 = lowPriorityWarningWithoutStack; + + function typeOf(object) { + if (typeof object === 'object' && object !== null) { + var $$typeof = object.$$typeof; + + switch ($$typeof) { + case REACT_ELEMENT_TYPE: + var type = object.type; + + switch (type) { + case REACT_ASYNC_MODE_TYPE: + case REACT_CONCURRENT_MODE_TYPE: + case REACT_FRAGMENT_TYPE: + case REACT_PROFILER_TYPE: + case REACT_STRICT_MODE_TYPE: + case REACT_SUSPENSE_TYPE: + return type; + + default: + var $$typeofType = type && type.$$typeof; + + switch ($$typeofType) { + case REACT_CONTEXT_TYPE: + case REACT_FORWARD_REF_TYPE: + case REACT_LAZY_TYPE: + case REACT_MEMO_TYPE: + case REACT_PROVIDER_TYPE: + return $$typeofType; + + default: + return $$typeof; + } + } + + case REACT_PORTAL_TYPE: + return $$typeof; + } + } + + return undefined; + } // AsyncMode is deprecated along with isAsyncMode + + var AsyncMode = REACT_ASYNC_MODE_TYPE; + var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE; + var ContextConsumer = REACT_CONTEXT_TYPE; + var ContextProvider = REACT_PROVIDER_TYPE; + var Element = REACT_ELEMENT_TYPE; + var ForwardRef = REACT_FORWARD_REF_TYPE; + var Fragment = REACT_FRAGMENT_TYPE; + var Lazy = REACT_LAZY_TYPE; + var Memo = REACT_MEMO_TYPE; + var Portal = REACT_PORTAL_TYPE; + var Profiler = REACT_PROFILER_TYPE; + var StrictMode = REACT_STRICT_MODE_TYPE; + var Suspense = REACT_SUSPENSE_TYPE; + var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated + + function isAsyncMode(object) { + { + if (!hasWarnedAboutDeprecatedIsAsyncMode) { + hasWarnedAboutDeprecatedIsAsyncMode = true; + lowPriorityWarningWithoutStack$1( + false, + 'The ReactIs.isAsyncMode() alias has been deprecated, ' + + 'and will be removed in React 17+. Update your code to use ' + + 'ReactIs.isConcurrentMode() instead. It has the exact same API.', + ); + } + } + + return ( + isConcurrentMode(object) || + typeOf(object) === REACT_ASYNC_MODE_TYPE + ); + } + function isConcurrentMode(object) { + return typeOf(object) === REACT_CONCURRENT_MODE_TYPE; + } + function isContextConsumer(object) { + return typeOf(object) === REACT_CONTEXT_TYPE; + } + function isContextProvider(object) { + return typeOf(object) === REACT_PROVIDER_TYPE; + } + function isElement(object) { + return ( + typeof object === 'object' && + object !== null && + object.$$typeof === REACT_ELEMENT_TYPE + ); + } + function isForwardRef(object) { + return typeOf(object) === REACT_FORWARD_REF_TYPE; + } + function isFragment(object) { + return typeOf(object) === REACT_FRAGMENT_TYPE; + } + function isLazy(object) { + return typeOf(object) === REACT_LAZY_TYPE; + } + function isMemo(object) { + return typeOf(object) === REACT_MEMO_TYPE; + } + function isPortal(object) { + return typeOf(object) === REACT_PORTAL_TYPE; + } + function isProfiler(object) { + return typeOf(object) === REACT_PROFILER_TYPE; + } + function isStrictMode(object) { + return typeOf(object) === REACT_STRICT_MODE_TYPE; + } + function isSuspense(object) { + return typeOf(object) === REACT_SUSPENSE_TYPE; + } + + exports.typeOf = typeOf; + exports.AsyncMode = AsyncMode; + exports.ConcurrentMode = ConcurrentMode; + exports.ContextConsumer = ContextConsumer; + exports.ContextProvider = ContextProvider; + exports.Element = Element; + exports.ForwardRef = ForwardRef; + exports.Fragment = Fragment; + exports.Lazy = Lazy; + exports.Memo = Memo; + exports.Portal = Portal; + exports.Profiler = Profiler; + exports.StrictMode = StrictMode; + exports.Suspense = Suspense; + exports.isValidElementType = isValidElementType; + exports.isAsyncMode = isAsyncMode; + exports.isConcurrentMode = isConcurrentMode; + exports.isContextConsumer = isContextConsumer; + exports.isContextProvider = isContextProvider; + exports.isElement = isElement; + exports.isForwardRef = isForwardRef; + exports.isFragment = isFragment; + exports.isLazy = isLazy; + exports.isMemo = isMemo; + exports.isPortal = isPortal; + exports.isProfiler = isProfiler; + exports.isStrictMode = isStrictMode; + exports.isSuspense = isSuspense; + })(); + } + + /* WEBPACK VAR INJECTION */ + }.call(exports, __webpack_require__(12))); + + /***/ + }, + /* 105 */ + /***/ function(module, exports, __webpack_require__) { + 'use strict'; + /** @license React v16.12.0 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + Object.defineProperty(exports, '__esModule', { value: !0 }); + var b = 'function' === typeof Symbol && Symbol.for, + c = b ? Symbol.for('react.element') : 60103, + d = b ? Symbol.for('react.portal') : 60106, + e = b ? Symbol.for('react.fragment') : 60107, + f = b ? Symbol.for('react.strict_mode') : 60108, + g = b ? Symbol.for('react.profiler') : 60114, + h = b ? Symbol.for('react.provider') : 60109, + k = b ? Symbol.for('react.context') : 60110, + l = b ? Symbol.for('react.async_mode') : 60111, + m = b ? Symbol.for('react.concurrent_mode') : 60111, + n = b ? Symbol.for('react.forward_ref') : 60112, + p = b ? Symbol.for('react.suspense') : 60113, + q = b ? Symbol.for('react.suspense_list') : 60120, + r = b ? Symbol.for('react.memo') : 60115, + t = b ? Symbol.for('react.lazy') : 60116, + v = b ? Symbol.for('react.fundamental') : 60117, + w = b ? Symbol.for('react.responder') : 60118, + x = b ? Symbol.for('react.scope') : 60119; + function y(a) { + if ('object' === typeof a && null !== a) { + var u = a.$$typeof; + switch (u) { + case c: + switch (((a = a.type), a)) { + case l: + case m: + case e: + case g: + case f: + case p: + return a; + default: + switch (((a = a && a.$$typeof), a)) { + case k: + case n: + case t: + case r: + case h: + return a; + default: + return u; + } + } + case d: + return u; + } + } + } + function z(a) { + return y(a) === m; + } + exports.typeOf = y; + exports.AsyncMode = l; + exports.ConcurrentMode = m; + exports.ContextConsumer = k; + exports.ContextProvider = h; + exports.Element = c; + exports.ForwardRef = n; + exports.Fragment = e; + exports.Lazy = t; + exports.Memo = r; + exports.Portal = d; + exports.Profiler = g; + exports.StrictMode = f; + exports.Suspense = p; + exports.isValidElementType = function(a) { + return ( + 'string' === typeof a || + 'function' === typeof a || + a === e || + a === m || + a === g || + a === f || + a === p || + a === q || + ('object' === typeof a && + null !== a && + (a.$$typeof === t || + a.$$typeof === r || + a.$$typeof === h || + a.$$typeof === k || + a.$$typeof === n || + a.$$typeof === v || + a.$$typeof === w || + a.$$typeof === x)) + ); + }; + exports.isAsyncMode = function(a) { + return z(a) || y(a) === l; + }; + exports.isConcurrentMode = z; + exports.isContextConsumer = function(a) { + return y(a) === k; + }; + exports.isContextProvider = function(a) { + return y(a) === h; + }; + exports.isElement = function(a) { + return 'object' === typeof a && null !== a && a.$$typeof === c; + }; + exports.isForwardRef = function(a) { + return y(a) === n; + }; + exports.isFragment = function(a) { + return y(a) === e; + }; + exports.isLazy = function(a) { + return y(a) === t; + }; + exports.isMemo = function(a) { + return y(a) === r; + }; + exports.isPortal = function(a) { + return y(a) === d; + }; + exports.isProfiler = function(a) { + return y(a) === g; + }; + exports.isStrictMode = function(a) { + return y(a) === f; + }; + exports.isSuspense = function(a) { + return y(a) === p; + }; + + /***/ + }, + /* 106 */ + /***/ function(module, __webpack_exports__, __webpack_require__) { + 'use strict'; + /* harmony export (binding) */ __webpack_require__.d( + __webpack_exports__, + 'a', + function() { + return polyfill; + }, + ); + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + function componentWillMount() { + // Call this.constructor.gDSFP to support sub-classes. + var state = this.constructor.getDerivedStateFromProps( + this.props, + this.state, + ); + if (state !== null && state !== undefined) { + this.setState(state); + } + } + + function componentWillReceiveProps(nextProps) { + // Call this.constructor.gDSFP to support sub-classes. + // Use the setState() updater to ensure state isn't stale in certain edge cases. + function updater(prevState) { + var state = this.constructor.getDerivedStateFromProps( + nextProps, + prevState, + ); + return state !== null && state !== undefined ? state : null; + } + // Binding "this" is important for shallow renderer support. + this.setState(updater.bind(this)); + } + + function componentWillUpdate(nextProps, nextState) { + try { + var prevProps = this.props; + var prevState = this.state; + this.props = nextProps; + this.state = nextState; + this.__reactInternalSnapshotFlag = true; + this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate( + prevProps, + prevState, + ); + } finally { + this.props = prevProps; + this.state = prevState; + } + } + + // React may warn about cWM/cWRP/cWU methods being deprecated. + // Add a flag to suppress these warnings for this special case. + componentWillMount.__suppressDeprecationWarning = true; + componentWillReceiveProps.__suppressDeprecationWarning = true; + componentWillUpdate.__suppressDeprecationWarning = true; + + function polyfill(Component) { + var prototype = Component.prototype; + + if (!prototype || !prototype.isReactComponent) { + throw new Error('Can only polyfill class components'); + } + + if ( + typeof Component.getDerivedStateFromProps !== 'function' && + typeof prototype.getSnapshotBeforeUpdate !== 'function' + ) { + return Component; + } + + // If new component APIs are defined, "unsafe" lifecycles won't be called. + // Error if any of these lifecycles are present, + // Because they would work differently between older and newer (16.3+) versions of React. + var foundWillMountName = null; + var foundWillReceivePropsName = null; + var foundWillUpdateName = null; + if (typeof prototype.componentWillMount === 'function') { + foundWillMountName = 'componentWillMount'; + } else if ( + typeof prototype.UNSAFE_componentWillMount === 'function' + ) { + foundWillMountName = 'UNSAFE_componentWillMount'; + } + if (typeof prototype.componentWillReceiveProps === 'function') { + foundWillReceivePropsName = 'componentWillReceiveProps'; + } else if ( + typeof prototype.UNSAFE_componentWillReceiveProps === 'function' + ) { + foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps'; + } + if (typeof prototype.componentWillUpdate === 'function') { + foundWillUpdateName = 'componentWillUpdate'; + } else if ( + typeof prototype.UNSAFE_componentWillUpdate === 'function' + ) { + foundWillUpdateName = 'UNSAFE_componentWillUpdate'; + } + if ( + foundWillMountName !== null || + foundWillReceivePropsName !== null || + foundWillUpdateName !== null + ) { + var componentName = Component.displayName || Component.name; + var newApiName = + typeof Component.getDerivedStateFromProps === 'function' + ? 'getDerivedStateFromProps()' + : 'getSnapshotBeforeUpdate()'; + + throw Error( + 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + + componentName + + ' uses ' + + newApiName + + ' but also contains the following legacy lifecycles:' + + (foundWillMountName !== null + ? '\n ' + foundWillMountName + : '') + + (foundWillReceivePropsName !== null + ? '\n ' + foundWillReceivePropsName + : '') + + (foundWillUpdateName !== null + ? '\n ' + foundWillUpdateName + : '') + + '\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' + + 'https://fb.me/react-async-component-lifecycle-hooks', + ); + } + + // React <= 16.2 does not support static getDerivedStateFromProps. + // As a workaround, use cWM and cWRP to invoke the new static lifecycle. + // Newer versions of React will ignore these lifecycles if gDSFP exists. + if (typeof Component.getDerivedStateFromProps === 'function') { + prototype.componentWillMount = componentWillMount; + prototype.componentWillReceiveProps = componentWillReceiveProps; + } + + // React <= 16.2 does not support getSnapshotBeforeUpdate. + // As a workaround, use cWU to invoke the new lifecycle. + // Newer versions of React will ignore that lifecycle if gSBU exists. + if (typeof prototype.getSnapshotBeforeUpdate === 'function') { + if (typeof prototype.componentDidUpdate !== 'function') { + throw new Error( + 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype', + ); + } + + prototype.componentWillUpdate = componentWillUpdate; + + var componentDidUpdate = prototype.componentDidUpdate; + + prototype.componentDidUpdate = function componentDidUpdatePolyfill( + prevProps, + prevState, + maybeSnapshot, + ) { + // 16.3+ will not execute our will-update method; + // It will pass a snapshot value to did-update though. + // Older versions will require our polyfilled will-update value. + // We need to handle both cases, but can't just check for the presence of "maybeSnapshot", + // Because for <= 15.x versions this might be a "prevContext" object. + // We also can't just check "__reactInternalSnapshot", + // Because get-snapshot might return a falsy value. + // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior. + var snapshot = this.__reactInternalSnapshotFlag + ? this.__reactInternalSnapshot + : maybeSnapshot; + + componentDidUpdate.call(this, prevProps, prevState, snapshot); + }; + } + + return Component; + } + + /***/ + }, + /* 107 */ + /***/ function(module, exports, __webpack_require__) { + __webpack_require__(54); + module.exports = __webpack_require__(55); + + /***/ + }, + /******/ + ], + ); +}); +//# sourceMappingURL=rc-pagination.js.map diff --git a/dist/rc-pagination.js.map b/dist/rc-pagination.js.map new file mode 100644 index 00000000..8a803383 --- /dev/null +++ b/dist/rc-pagination.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap cf03c8c062ca5c1a738d","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_core.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_descriptors.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_global.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_has.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_object-dp.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_export.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_hide.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_is-object.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_to-iobject.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_wks.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_an-object.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_fails.js","webpack:///./~/_process@0.11.10@process/browser.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_library.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_object-keys.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_object-pie.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_property-desc.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_uid.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_defined.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_enum-bug-keys.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_iterators.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_object-create.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_object-gops.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_set-to-string-tag.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_shared-key.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_shared.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_to-integer.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_to-object.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_to-primitive.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_wks-define.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_wks-ext.js","webpack:///./~/_prop-types@15.7.2@prop-types/index.js","webpack:///./~/_prop-types@15.7.2@prop-types/lib/ReactPropTypesSecret.js","webpack:///external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}","webpack:///./src/KeyCode.js","webpack:///./~/_babel-runtime@6.26.0@babel-runtime/core-js/object/define-property.js","webpack:///./~/_babel-runtime@6.26.0@babel-runtime/helpers/classCallCheck.js","webpack:///./~/_babel-runtime@6.26.0@babel-runtime/helpers/createClass.js","webpack:///./~/_babel-runtime@6.26.0@babel-runtime/helpers/defineProperty.js","webpack:///./~/_babel-runtime@6.26.0@babel-runtime/helpers/inherits.js","webpack:///./~/_babel-runtime@6.26.0@babel-runtime/helpers/possibleConstructorReturn.js","webpack:///./~/_babel-runtime@6.26.0@babel-runtime/helpers/typeof.js","webpack:///./~/_classnames@2.2.6@classnames/index.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_cof.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_ctx.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_dom-create.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_ie8-dom-define.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_iobject.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_iter-define.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_object-gopd.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_object-gopn.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_object-keys-internal.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_redefine.js","webpack:///./~/_react-is@16.12.0@react-is/index.js","webpack:///./src/index.js","webpack:///./assets/index.less?8fdf","webpack:///./src/Options.jsx","webpack:///./src/Pager.jsx","webpack:///./src/Pagination.jsx","webpack:///./src/locale/zh_CN.js","webpack:///./~/_babel-runtime@6.26.0@babel-runtime/core-js/object/assign.js","webpack:///./~/_babel-runtime@6.26.0@babel-runtime/core-js/object/create.js","webpack:///./~/_babel-runtime@6.26.0@babel-runtime/core-js/object/set-prototype-of.js","webpack:///./~/_babel-runtime@6.26.0@babel-runtime/core-js/symbol.js","webpack:///./~/_babel-runtime@6.26.0@babel-runtime/core-js/symbol/iterator.js","webpack:///./~/_babel-runtime@6.26.0@babel-runtime/helpers/extends.js","webpack:///./~/_core-js@2.6.11@core-js/library/fn/object/assign.js","webpack:///./~/_core-js@2.6.11@core-js/library/fn/object/create.js","webpack:///./~/_core-js@2.6.11@core-js/library/fn/object/define-property.js","webpack:///./~/_core-js@2.6.11@core-js/library/fn/object/set-prototype-of.js","webpack:///./~/_core-js@2.6.11@core-js/library/fn/symbol/index.js","webpack:///./~/_core-js@2.6.11@core-js/library/fn/symbol/iterator.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_a-function.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_add-to-unscopables.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_array-includes.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_enum-keys.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_html.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_is-array.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_iter-create.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_iter-step.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_meta.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_object-assign.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_object-dps.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_object-gopn-ext.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_object-gpo.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_set-proto.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_string-at.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_to-absolute-index.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/_to-length.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/es6.array.iterator.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/es6.object.assign.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/es6.object.create.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/es6.object.define-property.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/es6.object.set-prototype-of.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/es6.string.iterator.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/es6.symbol.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/es7.symbol.async-iterator.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/es7.symbol.observable.js","webpack:///./~/_core-js@2.6.11@core-js/library/modules/web.dom.iterable.js","webpack:///./~/_object-assign@4.1.1@object-assign/index.js","webpack:///./~/_prop-types@15.7.2@prop-types/checkPropTypes.js","webpack:///./~/_prop-types@15.7.2@prop-types/factoryWithThrowingShims.js","webpack:///./~/_prop-types@15.7.2@prop-types/factoryWithTypeCheckers.js","webpack:///./~/_react-is@16.12.0@react-is/cjs/react-is.development.js","webpack:///./~/_react-is@16.12.0@react-is/cjs/react-is.production.min.js","webpack:///./~/_react-lifecycles-compat@3.0.4@react-lifecycles-compat/react-lifecycles-compat.es.js"],"names":["ZERO","NINE","NUMPAD_ZERO","NUMPAD_NINE","BACKSPACE","DELETE","ENTER","ARROW_UP","ARROW_DOWN","Options","state","goInputText","buildOptionText","value","props","locale","items_per_page","changeSize","Number","handleChange","e","setState","target","handleBlur","goButton","quickGo","rootPrefixCls","relatedTarget","className","indexOf","getValidValue","go","keyCode","KEYCODE","type","current","isNaN","pageSize","pageSizeOptions","selectComponentClass","selectPrefixCls","disabled","prefixCls","Select","changeSelect","goInput","gotoButton","options","map","opt","i","toString","triggerNode","parentNode","jump_to_confirm","jump_to","page","React","Component","propTypes","PropTypes","bool","func","number","arrayOf","string","object","oneOfType","node","defaultProps","Pager","cls","classNames","active","handleClick","onClick","handleKeyPress","onKeyPress","showTitle","itemRender","last","noop","isInteger","isFinite","Math","floor","defaultItemRender","element","calculatePage","p","total","Pagination","hasOnChange","onChange","hasCurrent","console","warn","defaultCurrent","defaultPageSize","min","undefined","currentInputValue","prevProps","prevState","paginationNode","lastCurrentNode","querySelector","document","activeElement","blur","inputValue","allPages","prevPage","prevIcon","prevButton","getItemIcon","hasPrev","isValidElement","cloneElement","nextPage","nextIcon","nextButton","hasNext","hideOnSinglePage","pagerList","jumpPrev","jumpNext","firstPager","lastPager","showQuickJumper","pageBufferSize","showLessItems","dataOrAriaAttributeProps","Object","keys","reduce","prev","key","substr","simple","handleGoTO","style","savePaginationNode","prev_page","runIfEnterPrev","renderPrev","handleKeyDown","handleKeyUp","next_page","next","runIfEnterNext","renderNext","pagerProps","runIfEnter","push","prevItemTitle","prev_3","prev_5","nextItemTitle","next_3","next_5","showPrevNextJumpers","jumpPrevClassString","jumpPrevIcon","runIfEnterJumpPrev","getJumpPrevPage","jumpNextClassString","jumpNextIcon","runIfEnterJumpNext","getJumpNextPage","left","max","right","unshift","length","totalText","showTotal","prevDisabled","nextDisabled","showSizeChanger","changePageSize","shouldDisplayQuickJumper","newState","newCurrent","onShowSizeChange","LOCALE","icon","iconNode","createElement","isValid","preventDefault","size","currentPage","event","callback","restParams","charCode","polyfill"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA,2CAA2C,cAAc;;QAEzD;QACA;QACA;QACA;QACA;QACA;QACA;QACA,KAAK;QACL;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;QAEA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AClC;AACA;AACA;;;;;;;ACLA,YAAY,mBAAO,CAAC,EAAW;AAC/B,UAAU,mBAAO,CAAC,EAAQ;AAC1B,aAAa,mBAAO,CAAC,CAAW;AAChC;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;ACVA,eAAe,mBAAO,CAAC,CAAc;AACrC;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;;;;;;ACNA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qCAAqC;;AAErC;AACA;AACA;;AAEA,2BAA2B;AAC3B;AACA;AACA;AACA,4BAA4B,UAAU;;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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,gCAAgC;AAChG;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,EAAE,mBAAO,CAAC,EAAgB;AAC1B,EAAE,mBAAO,CAAC,EAAe;AACzB;;AAEA,sBAAsB,mBAAO,CAAC,EAAY;AAC1C;AACA;;AAEA;AACA;AACA;AACA;;AAEA,0DAA0D,kBAAkB;;AAE5E;AACA;AACA;AACA,oBAAoB,uBAAuB;;AAE3C,oDAAoD,6BAA6B;;AAEjF;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH,0BAA0B,eAAe,EAAE;AAC3C,0BAA0B,gBAAgB;AAC1C,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,8CAA8C,YAAY,EAAE;;AAE5D;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,OAAO,QAAQ,iCAAiC;AACpG,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA,oCAAoC,mBAAO,CAAC,CAAS;AACrD;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrPA,mBAAO,CAAC,EAAe;;;;;;;ACAvB,mBAAO,CAAC,EAAe;;;;;;;ACAvB,mBAAO,CAAC,EAAsB;AAC9B,aAAa,mBAAO,CAAC,CAAW;AAChC,WAAW,mBAAO,CAAC,CAAS;AAC5B,gBAAgB,mBAAO,CAAC,EAAc;AACtC,oBAAoB,mBAAO,CAAC,CAAQ;;AAEpC;AACA;AACA;AACA;AACA;;AAEA,eAAe,yBAAyB;AACxC;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;;AAEa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH,kCAAkC;AAClC;AACA;AACA;;AAEA;AACA,EAAE;AACF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,gBAAgB,sBAAsB;AACtC;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,oBAAoB;AACtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;ACzFA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb;;AAEA;AACA,6BAA6B,mBAAO,CAAC,EAA4B;AACjE;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4GAA4G;AAC5G;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,2DAA2D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;ACrGA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb,2BAA2B,mBAAO,CAAC,EAA4B;;AAE/D;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;;;;;;;;AC/DA;AACA;AACA;AACA;AACA;AACA;;AAEa;;AAEb,cAAc,mBAAO,CAAC,EAAU;AAChC,aAAa,mBAAO,CAAC,GAAe;;AAEpC,2BAA2B,mBAAO,CAAC,EAA4B;AAC/D,qBAAqB,mBAAO,CAAC,GAAkB;;AAE/C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,0CAA0C;;AAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,6BAA6B;AAC7B,QAAQ;AACR;AACA;AACA;AACA;AACA,+BAA+B,KAAK;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,4BAA4B;AAC5B,OAAO;AACP;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,sBAAsB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qBAAqB,2BAA2B;AAChD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,mBAAmB,gCAAgC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,qBAAqB,gCAAgC;AACrD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;;;;;;;;AC9kBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa;;;;AAIb;AACA;AACA;;AAEA,8CAA8C,cAAc;;AAE5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0EAA0E;AAC1E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,0FAA0F,aAAa;AACvG;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA,gGAAgG,eAAe;AAC/G;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDAAgD;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;AC3OA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEa,4CAA4C,SAAS;AAClE;AACA,kMAAkM,cAAc,kCAAkC,iBAAiB,UAAU,0BAA0B,mDAAmD,kCAAkC,4CAA4C,kBAAkB,kBAAkB,cAAc;AAC1d,iBAAiB,oBAAoB,yBAAyB,0BAA0B,0BAA0B,kBAAkB,qBAAqB,mBAAmB,eAAe,eAAe,iBAAiB,mBAAmB,qBAAqB;AACnQ,uCAAuC,6PAA6P,gCAAgC,uBAAuB,2BAA2B,sCAAsC,iBAAiB,sCAAsC;AACnd,8BAA8B,qDAAqD,iCAAiC,iBAAiB,+BAA+B,iBAAiB,2BAA2B,iBAAiB,2BAA2B,iBAAiB,6BAA6B,iBAAiB,+BAA+B,iBAAiB,iCAAiC,iBAAiB,+BAA+B;;;;;;;;ACd5b;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEoB","file":"rc-pagination.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"rc-pagination\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"rc-pagination\"] = factory(root[\"React\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_33__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 107);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap cf03c8c062ca5c1a738d","var core = module.exports = { version: '2.6.11' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_core.js\n// module id = 0\n// module chunks = 0","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_descriptors.js\n// module id = 1\n// module chunks = 0","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_global.js\n// module id = 2\n// module chunks = 0","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_has.js\n// module id = 3\n// module chunks = 0","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_object-dp.js\n// module id = 4\n// module chunks = 0","var global = require('./_global');\nvar core = require('./_core');\nvar ctx = require('./_ctx');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var IS_WRAP = type & $export.W;\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE];\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];\n var key, own, out;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n if (own && has(exports, key)) continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function (C) {\n var F = function (a, b, c) {\n if (this instanceof C) {\n switch (arguments.length) {\n case 0: return new C();\n case 1: return new C(a);\n case 2: return new C(a, b);\n } return new C(a, b, c);\n } return C.apply(this, arguments);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n if (IS_PROTO) {\n (exports.virtual || (exports.virtual = {}))[key] = out;\n // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);\n }\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_export.js\n// module id = 5\n// module chunks = 0","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_hide.js\n// module id = 6\n// module chunks = 0","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_is-object.js\n// module id = 7\n// module chunks = 0","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_to-iobject.js\n// module id = 8\n// module chunks = 0","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_wks.js\n// module id = 9\n// module chunks = 0","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_an-object.js\n// module id = 10\n// module chunks = 0","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_fails.js\n// module id = 11\n// module chunks = 0","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_process@0.11.10@process/browser.js\n// module id = 12\n// module chunks = 0","module.exports = true;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_library.js\n// module id = 13\n// module chunks = 0","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_object-keys.js\n// module id = 14\n// module chunks = 0","exports.f = {}.propertyIsEnumerable;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_object-pie.js\n// module id = 15\n// module chunks = 0","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_property-desc.js\n// module id = 16\n// module chunks = 0","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_uid.js\n// module id = 17\n// module chunks = 0","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_defined.js\n// module id = 18\n// module chunks = 0","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_enum-bug-keys.js\n// module id = 19\n// module chunks = 0","module.exports = {};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_iterators.js\n// module id = 20\n// module chunks = 0","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_object-create.js\n// module id = 21\n// module chunks = 0","exports.f = Object.getOwnPropertySymbols;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_object-gops.js\n// module id = 22\n// module chunks = 0","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_set-to-string-tag.js\n// module id = 23\n// module chunks = 0","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_shared-key.js\n// module id = 24\n// module chunks = 0","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_shared.js\n// module id = 25\n// module chunks = 0","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_to-integer.js\n// module id = 26\n// module chunks = 0","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_to-object.js\n// module id = 27\n// module chunks = 0","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_to-primitive.js\n// module id = 28\n// module chunks = 0","var global = require('./_global');\nvar core = require('./_core');\nvar LIBRARY = require('./_library');\nvar wksExt = require('./_wks-ext');\nvar defineProperty = require('./_object-dp').f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_wks-define.js\n// module id = 29\n// module chunks = 0","exports.f = require('./_wks');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_wks-ext.js\n// module id = 30\n// module chunks = 0","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_prop-types@15.7.2@prop-types/index.js\n// module id = 31\n// module chunks = 0","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_prop-types@15.7.2@prop-types/lib/ReactPropTypesSecret.js\n// module id = 32\n// module chunks = 0","module.exports = __WEBPACK_EXTERNAL_MODULE_33__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"root\":\"React\",\"commonjs2\":\"react\",\"commonjs\":\"react\",\"amd\":\"react\"}\n// module id = 33\n// module chunks = 0","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};\n\n\n\n// WEBPACK FOOTER //\n// ./src/KeyCode.js","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_babel-runtime@6.26.0@babel-runtime/core-js/object/define-property.js\n// module id = 35\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_babel-runtime@6.26.0@babel-runtime/helpers/classCallCheck.js\n// module id = 36\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_babel-runtime@6.26.0@babel-runtime/helpers/createClass.js\n// module id = 37\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (obj, key, value) {\n if (key in obj) {\n (0, _defineProperty2.default)(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_babel-runtime@6.26.0@babel-runtime/helpers/defineProperty.js\n// module id = 38\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_babel-runtime@6.26.0@babel-runtime/helpers/inherits.js\n// module id = 39\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_babel-runtime@6.26.0@babel-runtime/helpers/possibleConstructorReturn.js\n// module id = 40\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nvar _typeof = typeof _symbol2.default === \"function\" && typeof _iterator2.default === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_babel-runtime@6.26.0@babel-runtime/helpers/typeof.js\n// module id = 41\n// module chunks = 0","/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_classnames@2.2.6@classnames/index.js\n// module id = 42\n// module chunks = 0","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_cof.js\n// module id = 43\n// module chunks = 0","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_ctx.js\n// module id = 44\n// module chunks = 0","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_dom-create.js\n// module id = 45\n// module chunks = 0","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_ie8-dom-define.js\n// module id = 46\n// module chunks = 0","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_iobject.js\n// module id = 47\n// module chunks = 0","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_iter-define.js\n// module id = 48\n// module chunks = 0","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_object-gopd.js\n// module id = 49\n// module chunks = 0","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_object-gopn.js\n// module id = 50\n// module chunks = 0","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_object-keys-internal.js\n// module id = 51\n// module chunks = 0","module.exports = require('./_hide');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_redefine.js\n// module id = 52\n// module chunks = 0","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_react-is@16.12.0@react-is/index.js\n// module id = 53\n// module chunks = 0","export { default } from './Pagination';\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./assets/index.less\n// module id = 55\n// module chunks = 0","import React from 'react';\nimport PropTypes from 'prop-types';\nimport KEYCODE from './KeyCode';\n\nclass Options extends React.Component {\n static 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 };\n\n static defaultProps = {\n pageSizeOptions: ['10', '20', '30', '40'],\n };\n\n state = {\n goInputText: '',\n };\n\n getValidValue() {\n const { goInputText, current } = this.state;\n return !goInputText || isNaN(goInputText) ? current : Number(goInputText);\n }\n\n buildOptionText = (value) => {\n return `${value} ${this.props.locale.items_per_page}`;\n }\n\n changeSize = (value) => {\n this.props.changeSize(Number(value));\n }\n\n handleChange = (e) => {\n this.setState({\n goInputText: e.target.value,\n });\n }\n\n handleBlur = (e) => {\n const { goButton, quickGo, rootPrefixCls } = this.props;\n if (goButton) {\n return;\n }\n if (\n e.relatedTarget &&\n (\n e.relatedTarget.className.indexOf(`${rootPrefixCls}-prev`) >= 0 ||\n e.relatedTarget.className.indexOf(`${rootPrefixCls}-next`) >= 0\n )\n ) {\n return;\n }\n quickGo(this.getValidValue());\n }\n\n go = (e) => {\n const { goInputText } = this.state;\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 }\n\n render() {\n const {\n pageSize, pageSizeOptions, locale, rootPrefixCls, changeSize,\n quickGo, goButton, selectComponentClass, buildOptionText,\n selectPrefixCls, disabled,\n } = this.props;\n const { goInputText } = this.state;\n const prefixCls = `${rootPrefixCls}-options`;\n const Select = selectComponentClass;\n let changeSelect = null;\n let goInput = null;\n let gotoButton = null;\n\n if (!changeSize && !quickGo) {\n return null;\n }\n\n if (changeSize && Select) {\n const options = pageSizeOptions.map((opt, i) => (\n \n {(buildOptionText || this.buildOptionText)(opt)}\n \n ));\n\n changeSelect = (\n triggerNode.parentNode}\n >\n {options}\n \n );\n }\n\n if (quickGo) {\n if (goButton) {\n gotoButton = typeof goButton === 'boolean' ? (\n \n {locale.jump_to_confirm}\n \n ) : (\n \n {goButton}\n \n );\n }\n goInput = (\n
\n {locale.jump_to}\n \n {locale.page}\n {gotoButton}\n
\n );\n }\n\n return (\n
  • \n {changeSelect}\n {goInput}\n
  • \n );\n }\n}\n\nexport default Options;\n\n\n\n// WEBPACK FOOTER //\n// ./src/Options.jsx","import React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\n\nconst Pager = (props) => {\n const prefixCls = `${props.rootPrefixCls}-item`;\n const cls = classNames(prefixCls, `${prefixCls}-${props.page}`, {\n [`${prefixCls}-active`]: props.active,\n [props.className]: !!props.className,\n [`${prefixCls}-disabled`]: !props.page,\n });\n\n const handleClick = () => {\n props.onClick(props.page);\n };\n\n const handleKeyPress = e => {\n props.onKeyPress(e, props.onClick, props.page);\n };\n\n return (\n \n {props.itemRender(props.page, 'page', {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;\n\n\n\n// WEBPACK FOOTER //\n// ./src/Pager.jsx","import React, { cloneElement, isValidElement } 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}\n\nfunction isInteger(value) {\n return typeof value === 'number' &&\n isFinite(value) &&\n Math.floor(value) === value;\n}\n\nfunction defaultItemRender(page, type, element) {\n return element;\n}\n\nfunction calculatePage(p, state, props) {\n let pageSize = p;\n if (typeof pageSize === 'undefined') {\n pageSize = state.pageSize;\n }\n return Math.floor((props.total - 1) / pageSize) + 1;\n}\n\nclass Pagination extends React.Component {\n static 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 };\n\n static 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\n constructor(props) {\n super(props);\n\n const hasOnChange = props.onChange !== noop;\n const 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 let current = props.defaultCurrent;\n if ('current' in props) {\n current = props.current;\n }\n\n let pageSize = props.defaultPageSize;\n if ('pageSize' in props) {\n pageSize = props.pageSize;\n }\n\n current = Math.min(current, calculatePage(pageSize, undefined, props));\n\n this.state = {\n current,\n currentInputValue: current,\n pageSize,\n };\n }\n\n 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 const { prefixCls } = this.props;\n if (prevState.current !== this.state.current && this.paginationNode) {\n const lastCurrentNode = this.paginationNode.querySelector(\n `.${prefixCls}-item-${prevState.current}`\n );\n if (lastCurrentNode && document.activeElement === lastCurrentNode) {\n lastCurrentNode.blur();\n }\n }\n }\n\n static getDerivedStateFromProps(props, prevState) {\n const 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 let current = prevState.current;\n const 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 getJumpPrevPage = () => {\n return Math.max(1, this.state.current - (this.props.showLessItems ? 3 : 5));\n }\n\n getJumpNextPage = () => {\n return Math.min(\n calculatePage(undefined, this.state, this.props),\n this.state.current + (this.props.showLessItems ? 3 : 5)\n );\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 getItemIcon = (icon) => {\n const { prefixCls } = this.props;\n let iconNode = icon\n || ;\n if (typeof icon === 'function') {\n iconNode = React.createElement(icon, { ...this.props });\n }\n return iconNode;\n }\n\n getValidValue(e) {\n const inputValue = e.target.value;\n const allPages = calculatePage(undefined, this.state, this.props);\n const { currentInputValue } = this.state;\n let value;\n if (inputValue === '') {\n value = inputValue;\n } else if (isNaN(Number(inputValue))) {\n value = currentInputValue;\n } else if (inputValue >= allPages) {\n value = allPages;\n } else {\n value = Number(inputValue);\n }\n return value;\n }\n\n savePaginationNode = (node) => {\n this.paginationNode = node;\n }\n\n isValid = (page) => {\n return isInteger(page) && page !== this.state.current;\n }\n\n shouldDisplayQuickJumper = () => {\n const { showQuickJumper, pageSize, total } = this.props;\n if (total <= pageSize) {\n return false;\n }\n return showQuickJumper;\n }\n\n handleKeyDown = (e) => {\n if (e.keyCode === KEYCODE.ARROW_UP || e.keyCode === KEYCODE.ARROW_DOWN) {\n e.preventDefault();\n }\n }\n\n handleKeyUp = (e) => {\n const value = this.getValidValue(e);\n const { currentInputValue } = this.state;\n if (value !== currentInputValue) {\n this.setState({\n currentInputValue: value,\n });\n }\n if (e.keyCode === KEYCODE.ENTER) {\n this.handleChange(value);\n } else if (e.keyCode === KEYCODE.ARROW_UP) {\n this.handleChange(value - 1);\n } else if (e.keyCode === KEYCODE.ARROW_DOWN) {\n this.handleChange(value + 1);\n }\n }\n\n changePageSize = (size) => {\n let current = this.state.current;\n const newCurrent = calculatePage(size, this.state, this.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 = this.state.current;\n }\n\n if (typeof size === 'number') {\n if (!('pageSize' in this.props)) {\n this.setState({\n pageSize: size,\n });\n }\n if (!('current' in this.props)) {\n this.setState({\n current,\n currentInputValue: current,\n });\n }\n }\n this.props.onShowSizeChange(current, size);\n }\n\n handleChange = (p) => {\n const { disabled } = this.props;\n\n let page = p;\n if (this.isValid(page) && !disabled) {\n const currentPage = calculatePage(undefined, this.state, this.props);\n if (page > currentPage) {\n page = currentPage;\n } else if (page < 1) {\n page = 1;\n }\n\n if (!('current' in this.props)) {\n this.setState({\n current: page,\n currentInputValue: page,\n });\n }\n\n const pageSize = this.state.pageSize;\n this.props.onChange(page, pageSize);\n\n return page;\n }\n\n return this.state.current;\n }\n\n prev = () => {\n if (this.hasPrev()) {\n this.handleChange(this.state.current - 1);\n }\n }\n\n next = () => {\n if (this.hasNext()) {\n this.handleChange(this.state.current + 1);\n }\n }\n\n jumpPrev = () => {\n this.handleChange(this.getJumpPrevPage());\n }\n\n jumpNext = () => {\n this.handleChange(this.getJumpNextPage());\n }\n\n hasPrev = () => {\n return this.state.current > 1;\n }\n\n hasNext = () => {\n return this.state.current < calculatePage(undefined, this.state, this.props);\n }\n\n runIfEnter = (event, callback, ...restParams) => {\n if (event.key === 'Enter' || event.charCode === 13) {\n callback(...restParams);\n }\n }\n\n runIfEnterPrev = e => {\n this.runIfEnter(e, this.prev);\n }\n\n runIfEnterNext = e => {\n this.runIfEnter(e, this.next);\n }\n\n runIfEnterJumpPrev = e => {\n this.runIfEnter(e, this.jumpPrev);\n }\n\n runIfEnterJumpNext = e => {\n this.runIfEnter(e, this.jumpNext);\n }\n\n handleGoTO = e => {\n if (e.keyCode === KEYCODE.ENTER || e.type === 'click') {\n this.handleChange(this.state.currentInputValue);\n }\n }\n\n renderPrev(prevPage) {\n const { prevIcon, itemRender } = this.props;\n const prevButton = itemRender(prevPage, 'prev', this.getItemIcon(prevIcon));\n const disabled = !this.hasPrev();\n return isValidElement(prevButton) ? cloneElement(prevButton, { disabled }) : prevButton;\n }\n\n renderNext(nextPage) {\n const { nextIcon, itemRender } = this.props;\n const nextButton = itemRender(nextPage, 'next', this.getItemIcon(nextIcon));\n const disabled = !this.hasNext();\n return isValidElement(nextButton) ? cloneElement(nextButton, { disabled }) : nextButton;\n }\n\n render() {\n const { prefixCls, className, disabled } = this.props;\n\n // When hideOnSinglePage is true and there is only 1 page, hide the pager\n if (this.props.hideOnSinglePage === true && this.props.total <= this.state.pageSize) {\n return null;\n }\n\n const props = this.props;\n const locale = props.locale;\n\n const allPages = calculatePage(undefined, this.state, this.props);\n const pagerList = [];\n let jumpPrev = null;\n let jumpNext = null;\n let firstPager = null;\n let lastPager = null;\n let gotoButton = null;\n\n const goButton = (props.showQuickJumper && props.showQuickJumper.goButton);\n const pageBufferSize = props.showLessItems ? 1 : 2;\n const { current, pageSize } = this.state;\n\n const prevPage = current - 1 > 0 ? current - 1 : 0;\n const nextPage = current + 1 < allPages ? current + 1 : allPages;\n\n const dataOrAriaAttributeProps = Object.keys(props).reduce((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 = (\n \n {locale.jump_to_confirm}\n \n );\n } else {\n gotoButton = (\n {goButton}\n );\n }\n gotoButton = (\n \n {gotoButton}\n \n );\n }\n\n return (\n \n \n {this.renderPrev(prevPage)}\n \n \n \n /\n {allPages}\n \n \n {this.renderNext(nextPage)}\n \n {gotoButton}\n \n );\n }\n\n if (allPages <= 5 + pageBufferSize * 2) {\n const pagerProps = {\n 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(\n \n );\n }\n for (let i = 1; i <= allPages; i++) {\n const active = this.state.current === i;\n pagerList.push(\n \n );\n }\n } else {\n const prevItemTitle = props.showLessItems ? locale.prev_3 : locale.prev_5;\n const nextItemTitle = props.showLessItems ? locale.next_3 : locale.next_5;\n if (props.showPrevNextJumpers) {\n let jumpPrevClassString = `${prefixCls}-jump-prev`;\n if (props.jumpPrevIcon) {\n jumpPrevClassString += ` ${prefixCls}-jump-prev-custom-icon`;\n }\n jumpPrev = (\n \n {props.itemRender(\n this.getJumpPrevPage(),\n 'jump-prev',\n this.getItemIcon(props.jumpPrevIcon)\n )}\n \n );\n let jumpNextClassString = `${prefixCls}-jump-next`;\n if (props.jumpNextIcon) {\n jumpNextClassString += ` ${prefixCls}-jump-next-custom-icon`;\n }\n jumpNext = (\n \n {props.itemRender(\n this.getJumpNextPage(),\n 'jump-next',\n this.getItemIcon(props.jumpNextIcon)\n )}\n \n );\n }\n lastPager = (\n \n );\n firstPager = (\n \n );\n\n let left = Math.max(1, current - pageBufferSize);\n let 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 (let i = left; i <= right; i++) {\n const active = current === i;\n pagerList.push(\n \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 let totalText = null;\n\n if (props.showTotal) {\n totalText = (\n
  • \n {props.showTotal(\n props.total,\n [\n props.total === 0 ? 0 : (current - 1) * pageSize + 1,\n current * pageSize > props.total ? props.total : current * pageSize,\n ]\n )}\n
  • \n );\n }\n const prevDisabled = !this.hasPrev() || !allPages;\n const nextDisabled = !this.hasNext() || !allPages;\n return (\n \n {totalText}\n \n {this.renderPrev(prevPage)}\n \n {pagerList}\n \n {this.renderNext(nextPage)}\n \n \n \n );\n }\n}\n\npolyfill(Pagination);\n\nexport default Pagination;\n\n\n\n// WEBPACK FOOTER //\n// ./src/Pagination.jsx","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};\n\n\n\n// WEBPACK FOOTER //\n// ./src/locale/zh_CN.js","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_babel-runtime@6.26.0@babel-runtime/core-js/object/assign.js\n// module id = 60\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_babel-runtime@6.26.0@babel-runtime/core-js/object/create.js\n// module id = 61\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_babel-runtime@6.26.0@babel-runtime/core-js/object/set-prototype-of.js\n// module id = 62\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_babel-runtime@6.26.0@babel-runtime/core-js/symbol.js\n// module id = 63\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_babel-runtime@6.26.0@babel-runtime/core-js/symbol/iterator.js\n// module id = 64\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _assign = require(\"../core-js/object/assign\");\n\nvar _assign2 = _interopRequireDefault(_assign);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _assign2.default || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_babel-runtime@6.26.0@babel-runtime/helpers/extends.js\n// module id = 65\n// module chunks = 0","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/_core').Object.assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/fn/object/assign.js\n// module id = 66\n// module chunks = 0","require('../../modules/es6.object.create');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function create(P, D) {\n return $Object.create(P, D);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/fn/object/create.js\n// module id = 67\n// module chunks = 0","require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/fn/object/define-property.js\n// module id = 68\n// module chunks = 0","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/_core').Object.setPrototypeOf;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/fn/object/set-prototype-of.js\n// module id = 69\n// module chunks = 0","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nrequire('../../modules/es7.symbol.async-iterator');\nrequire('../../modules/es7.symbol.observable');\nmodule.exports = require('../../modules/_core').Symbol;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/fn/symbol/index.js\n// module id = 70\n// module chunks = 0","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/_wks-ext').f('iterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/fn/symbol/iterator.js\n// module id = 71\n// module chunks = 0","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_a-function.js\n// module id = 72\n// module chunks = 0","module.exports = function () { /* empty */ };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_add-to-unscopables.js\n// module id = 73\n// module chunks = 0","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_array-includes.js\n// module id = 74\n// module chunks = 0","// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nmodule.exports = function (it) {\n var result = getKeys(it);\n var getSymbols = gOPS.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = pIE.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n } return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_enum-keys.js\n// module id = 75\n// module chunks = 0","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_html.js\n// module id = 76\n// module chunks = 0","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_is-array.js\n// module id = 77\n// module chunks = 0","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_iter-create.js\n// module id = 78\n// module chunks = 0","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_iter-step.js\n// module id = 79\n// module chunks = 0","var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_meta.js\n// module id = 80\n// module chunks = 0","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar DESCRIPTORS = require('./_descriptors');\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_object-assign.js\n// module id = 81\n// module chunks = 0","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_object-dps.js\n// module id = 82\n// module chunks = 0","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject');\nvar gOPN = require('./_object-gopn').f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_object-gopn-ext.js\n// module id = 83\n// module chunks = 0","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_object-gpo.js\n// module id = 84\n// module chunks = 0","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_set-proto.js\n// module id = 85\n// module chunks = 0","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_string-at.js\n// module id = 86\n// module chunks = 0","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_to-absolute-index.js\n// module id = 87\n// module chunks = 0","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/_to-length.js\n// module id = 88\n// module chunks = 0","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/es6.array.iterator.js\n// module id = 89\n// module chunks = 0","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/es6.object.assign.js\n// module id = 90\n// module chunks = 0","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/es6.object.create.js\n// module id = 91\n// module chunks = 0","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/es6.object.define-property.js\n// module id = 92\n// module chunks = 0","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./_export');\n$export($export.S, 'Object', { setPrototypeOf: require('./_set-proto').set });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/es6.object.set-prototype-of.js\n// module id = 93\n// module chunks = 0","'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/es6.string.iterator.js\n// module id = 95\n// module chunks = 0","'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global');\nvar has = require('./_has');\nvar DESCRIPTORS = require('./_descriptors');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar META = require('./_meta').KEY;\nvar $fails = require('./_fails');\nvar shared = require('./_shared');\nvar setToStringTag = require('./_set-to-string-tag');\nvar uid = require('./_uid');\nvar wks = require('./_wks');\nvar wksExt = require('./_wks-ext');\nvar wksDefine = require('./_wks-define');\nvar enumKeys = require('./_enum-keys');\nvar isArray = require('./_is-array');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar toObject = require('./_to-object');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar createDesc = require('./_property-desc');\nvar _create = require('./_object-create');\nvar gOPNExt = require('./_object-gopn-ext');\nvar $GOPD = require('./_object-gopd');\nvar $GOPS = require('./_object-gops');\nvar $DP = require('./_object-dp');\nvar $keys = require('./_object-keys');\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n return _create(dP({}, 'a', {\n get: function () { return dP(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD(ObjectProto, key);\n if (protoDesc) delete ObjectProto[key];\n dP(it, key, D);\n if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if (has(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _create(D, { enumerable: createDesc(0, false) });\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n anObject(it);\n var keys = enumKeys(P = toIObject(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = toIObject(it);\n key = toPrimitive(key, true);\n if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n var D = gOPD(it, key);\n if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN(toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto;\n var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto) $set.call(OPSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n require('./_object-pie').f = $propertyIsEnumerable;\n $GOPS.f = $getOwnPropertySymbols;\n\n if (DESCRIPTORS && !require('./_library')) {\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function (name) {\n return wrap(wks(name));\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () { setter = true; },\n useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\nvar FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });\n\n$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n return $GOPS.f(toObject(it));\n }\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n $replacer = replacer = args[1];\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/es6.symbol.js\n// module id = 96\n// module chunks = 0","require('./_wks-define')('asyncIterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/es7.symbol.async-iterator.js\n// module id = 97\n// module chunks = 0","require('./_wks-define')('observable');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/es7.symbol.observable.js\n// module id = 98\n// module chunks = 0","require('./es6.array.iterator');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar TO_STRING_TAG = require('./_wks')('toStringTag');\n\nvar DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +\n 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +\n 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +\n 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +\n 'TextTrackList,TouchList').split(',');\n\nfor (var i = 0; i < DOMIterables.length; i++) {\n var NAME = DOMIterables[i];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = Iterators.Array;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_core-js@2.6.11@core-js/library/modules/web.dom.iterable.js\n// module id = 99\n// module chunks = 0","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_object-assign@4.1.1@object-assign/index.js\n// module id = 100\n// module chunks = 0","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = Function.call.bind(Object.prototype.hasOwnProperty);\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_prop-types@15.7.2@prop-types/checkPropTypes.js\n// module id = 101\n// module chunks = 0","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_prop-types@15.7.2@prop-types/factoryWithThrowingShims.js\n// module id = 102\n// module chunks = 0","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar has = Function.call.bind(Object.prototype.hasOwnProperty);\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message) {\n this.message = message;\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {\n return null;\n }\n }\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (!checker) {\n continue;\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from\n // props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_prop-types@15.7.2@prop-types/factoryWithTypeCheckers.js\n// module id = 103\n// module chunks = 0","/** @license React v16.12.0\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE);\n}\n\n/**\n * Forked from fbjs/warning:\n * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js\n *\n * Only change is we use console.warn instead of console.error,\n * and do nothing when 'console' is not supported.\n * This really simplifies the code.\n * ---\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\nvar lowPriorityWarningWithoutStack = function () {};\n\n{\n var printWarning = function (format) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n\n if (typeof console !== 'undefined') {\n console.warn(message);\n }\n\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n lowPriorityWarningWithoutStack = function (condition, format) {\n if (format === undefined) {\n throw new Error('`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (!condition) {\n for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(void 0, [format].concat(args));\n }\n };\n}\n\nvar lowPriorityWarningWithoutStack$1 = lowPriorityWarningWithoutStack;\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true;\n lowPriorityWarningWithoutStack$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.typeOf = typeOf;\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isValidElementType = isValidElementType;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\n })();\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_react-is@16.12.0@react-is/cjs/react-is.development.js\n// module id = 104\n// module chunks = 0","/** @license React v16.12.0\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';Object.defineProperty(exports,\"__esModule\",{value:!0});\nvar b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?Symbol.for(\"react.suspense_list\"):\n60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.fundamental\"):60117,w=b?Symbol.for(\"react.responder\"):60118,x=b?Symbol.for(\"react.scope\"):60119;function y(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function z(a){return y(a)===m}\nexports.typeOf=y;exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===v||a.$$typeof===w||a.$$typeof===x)};exports.isAsyncMode=function(a){return z(a)||y(a)===l};exports.isConcurrentMode=z;exports.isContextConsumer=function(a){return y(a)===k};exports.isContextProvider=function(a){return y(a)===h};\nexports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return y(a)===n};exports.isFragment=function(a){return y(a)===e};exports.isLazy=function(a){return y(a)===t};exports.isMemo=function(a){return y(a)===r};exports.isPortal=function(a){return y(a)===d};exports.isProfiler=function(a){return y(a)===g};exports.isStrictMode=function(a){return y(a)===f};exports.isSuspense=function(a){return y(a)===p};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_react-is@16.12.0@react-is/cjs/react-is.production.min.js\n// module id = 105\n// module chunks = 0","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nfunction componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n if (state !== null && state !== undefined) {\n this.setState(state);\n }\n}\n\nfunction componentWillReceiveProps(nextProps) {\n // Call this.constructor.gDSFP to support sub-classes.\n // Use the setState() updater to ensure state isn't stale in certain edge cases.\n function updater(prevState) {\n var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);\n return state !== null && state !== undefined ? state : null;\n }\n // Binding \"this\" is important for shallow renderer support.\n this.setState(updater.bind(this));\n}\n\nfunction componentWillUpdate(nextProps, nextState) {\n try {\n var prevProps = this.props;\n var prevState = this.state;\n this.props = nextProps;\n this.state = nextState;\n this.__reactInternalSnapshotFlag = true;\n this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(\n prevProps,\n prevState\n );\n } finally {\n this.props = prevProps;\n this.state = prevState;\n }\n}\n\n// React may warn about cWM/cWRP/cWU methods being deprecated.\n// Add a flag to suppress these warnings for this special case.\ncomponentWillMount.__suppressDeprecationWarning = true;\ncomponentWillReceiveProps.__suppressDeprecationWarning = true;\ncomponentWillUpdate.__suppressDeprecationWarning = true;\n\nfunction polyfill(Component) {\n var prototype = Component.prototype;\n\n if (!prototype || !prototype.isReactComponent) {\n throw new Error('Can only polyfill class components');\n }\n\n if (\n typeof Component.getDerivedStateFromProps !== 'function' &&\n typeof prototype.getSnapshotBeforeUpdate !== 'function'\n ) {\n return Component;\n }\n\n // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n // Error if any of these lifecycles are present,\n // Because they would work differently between older and newer (16.3+) versions of React.\n var foundWillMountName = null;\n var foundWillReceivePropsName = null;\n var foundWillUpdateName = null;\n if (typeof prototype.componentWillMount === 'function') {\n foundWillMountName = 'componentWillMount';\n } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {\n foundWillMountName = 'UNSAFE_componentWillMount';\n }\n if (typeof prototype.componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'componentWillReceiveProps';\n } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n }\n if (typeof prototype.componentWillUpdate === 'function') {\n foundWillUpdateName = 'componentWillUpdate';\n } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {\n foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n }\n if (\n foundWillMountName !== null ||\n foundWillReceivePropsName !== null ||\n foundWillUpdateName !== null\n ) {\n var componentName = Component.displayName || Component.name;\n var newApiName =\n typeof Component.getDerivedStateFromProps === 'function'\n ? 'getDerivedStateFromProps()'\n : 'getSnapshotBeforeUpdate()';\n\n throw Error(\n 'Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' +\n componentName +\n ' uses ' +\n newApiName +\n ' but also contains the following legacy lifecycles:' +\n (foundWillMountName !== null ? '\\n ' + foundWillMountName : '') +\n (foundWillReceivePropsName !== null\n ? '\\n ' + foundWillReceivePropsName\n : '') +\n (foundWillUpdateName !== null ? '\\n ' + foundWillUpdateName : '') +\n '\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\n' +\n 'https://fb.me/react-async-component-lifecycle-hooks'\n );\n }\n\n // React <= 16.2 does not support static getDerivedStateFromProps.\n // As a workaround, use cWM and cWRP to invoke the new static lifecycle.\n // Newer versions of React will ignore these lifecycles if gDSFP exists.\n if (typeof Component.getDerivedStateFromProps === 'function') {\n prototype.componentWillMount = componentWillMount;\n prototype.componentWillReceiveProps = componentWillReceiveProps;\n }\n\n // React <= 16.2 does not support getSnapshotBeforeUpdate.\n // As a workaround, use cWU to invoke the new lifecycle.\n // Newer versions of React will ignore that lifecycle if gSBU exists.\n if (typeof prototype.getSnapshotBeforeUpdate === 'function') {\n if (typeof prototype.componentDidUpdate !== 'function') {\n throw new Error(\n 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'\n );\n }\n\n prototype.componentWillUpdate = componentWillUpdate;\n\n var componentDidUpdate = prototype.componentDidUpdate;\n\n prototype.componentDidUpdate = function componentDidUpdatePolyfill(\n prevProps,\n prevState,\n maybeSnapshot\n ) {\n // 16.3+ will not execute our will-update method;\n // It will pass a snapshot value to did-update though.\n // Older versions will require our polyfilled will-update value.\n // We need to handle both cases, but can't just check for the presence of \"maybeSnapshot\",\n // Because for <= 15.x versions this might be a \"prevContext\" object.\n // We also can't just check \"__reactInternalSnapshot\",\n // Because get-snapshot might return a falsy value.\n // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.\n var snapshot = this.__reactInternalSnapshotFlag\n ? this.__reactInternalSnapshot\n : maybeSnapshot;\n\n componentDidUpdate.call(this, prevProps, prevState, snapshot);\n };\n }\n\n return Component;\n}\n\nexport { polyfill };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/_react-lifecycles-compat@3.0.4@react-lifecycles-compat/react-lifecycles-compat.es.js\n// module id = 106\n// module chunks = 0"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/rc-pagination.min.css b/dist/rc-pagination.min.css new file mode 100644 index 00000000..0ac67ca8 --- /dev/null +++ b/dist/rc-pagination.min.css @@ -0,0 +1,324 @@ +.rc-pagination { + font-size: 12px; + font-family: 'Arial'; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + padding: 0; +} +.rc-pagination > li { + list-style: none; +} +.rc-pagination-total-text { + float: left; + height: 30px; + line-height: 30px; + list-style: none; + padding: 0; + margin: 0 8px 0 0; +} +.rc-pagination:after { + content: ' '; + display: block; + height: 0; + clear: both; + overflow: hidden; + visibility: hidden; +} +.rc-pagination-item { + cursor: pointer; + border-radius: 6px; + min-width: 28px; + height: 28px; + line-height: 28px; + text-align: center; + list-style: none; + float: left; + border: 1px solid #d9d9d9; + background-color: #fff; + margin-right: 8px; +} +.rc-pagination-item a { + text-decoration: none; + color: #666; +} +.rc-pagination-item:hover { + border-color: #2db7f5; +} +.rc-pagination-item:hover a { + color: #2db7f5; +} +.rc-pagination-item-disabled { + cursor: not-allowed; +} +.rc-pagination-item-disabled:hover { + border-color: #d9d9d9; +} +.rc-pagination-item-disabled:hover a { + color: #d9d9d9; +} +.rc-pagination-item-active { + background-color: #2db7f5; + border-color: #2db7f5; +} +.rc-pagination-item-active a { + color: #fff; +} +.rc-pagination-item-active:hover a { + color: #fff; +} +.rc-pagination-jump-prev:after, +.rc-pagination-jump-next:after { + content: '\2022\2022\2022'; + display: block; + letter-spacing: 2px; + color: #ccc; + font-size: 12px; + margin-top: 1px; +} +.rc-pagination-jump-prev:hover:after, +.rc-pagination-jump-next:hover:after { + color: #2db7f5; +} +.rc-pagination-jump-prev:hover:after { + content: '\AB'; +} +.rc-pagination-jump-next:hover:after { + content: '\BB'; +} +.rc-pagination-jump-prev-custom-icon, +.rc-pagination-jump-next-custom-icon { + position: relative; +} +.rc-pagination-jump-prev-custom-icon:after, +.rc-pagination-jump-next-custom-icon:after { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + margin: auto; + transition: all 0.2s; + content: '\2022\2022\2022'; + opacity: 1; + display: block; + letter-spacing: 2px; + color: #ccc; + font-size: 12px; + margin-top: 1px; +} +.rc-pagination-jump-prev-custom-icon .custom-icon-jump-prev, +.rc-pagination-jump-next-custom-icon .custom-icon-jump-prev, +.rc-pagination-jump-prev-custom-icon .custom-icon-jump-next, +.rc-pagination-jump-next-custom-icon .custom-icon-jump-next { + opacity: 0; + transition: all 0.2s; +} +.rc-pagination-jump-prev-custom-icon:hover:after, +.rc-pagination-jump-next-custom-icon:hover:after { + opacity: 0; + color: #ccc; +} +.rc-pagination-jump-prev-custom-icon:hover .custom-icon-jump-prev, +.rc-pagination-jump-next-custom-icon:hover .custom-icon-jump-prev, +.rc-pagination-jump-prev-custom-icon:hover .custom-icon-jump-next, +.rc-pagination-jump-next-custom-icon:hover .custom-icon-jump-next { + opacity: 1; + color: #2db7f5; +} +.rc-pagination-prev, +.rc-pagination-jump-prev, +.rc-pagination-jump-next { + margin-right: 8px; +} +.rc-pagination-prev, +.rc-pagination-next, +.rc-pagination-jump-prev, +.rc-pagination-jump-next { + cursor: pointer; + color: #666; + font-size: 10px; + border-radius: 6px; + list-style: none; + min-width: 28px; + height: 28px; + line-height: 28px; + float: left; + text-align: center; +} +.rc-pagination-prev a:after { + content: '\2039'; + display: block; +} +.rc-pagination-next a:after { + content: '\203A'; + display: block; +} +.rc-pagination-prev, +.rc-pagination-next { + border: 1px solid #d9d9d9; + font-size: 18px; +} +.rc-pagination-prev a, +.rc-pagination-next a { + color: #666; +} +.rc-pagination-prev a:after, +.rc-pagination-next a:after { + margin-top: -1px; +} +.rc-pagination-disabled { + cursor: not-allowed; +} +.rc-pagination-disabled a { + color: #ccc; +} +.rc-pagination-disabled .rc-pagination-item, +.rc-pagination-disabled .rc-pagination-prev, +.rc-pagination-disabled .rc-pagination-next { + cursor: not-allowed; +} +.rc-pagination-disabled .rc-pagination-item:hover, +.rc-pagination-disabled .rc-pagination-prev:hover, +.rc-pagination-disabled .rc-pagination-next:hover { + border-color: #d9d9d9; +} +.rc-pagination-disabled .rc-pagination-item:hover a, +.rc-pagination-disabled .rc-pagination-prev:hover a, +.rc-pagination-disabled .rc-pagination-next:hover a { + color: #d9d9d9; +} +.rc-pagination-disabled .rc-pagination-jump-prev, +.rc-pagination-disabled .rc-pagination-jump-next { + pointer-events: none; +} +.rc-pagination-options { + float: left; + margin-left: 15px; +} +.rc-pagination-options-size-changer { + float: left; + width: 80px; +} +.rc-pagination-options-quick-jumper { + float: left; + margin-left: 16px; + height: 28px; + line-height: 28px; +} +.rc-pagination-options-quick-jumper input { + margin: 0 8px; + box-sizing: border-box; + background-color: #fff; + border-radius: 6px; + border: 1px solid #d9d9d9; + outline: none; + padding: 3px 12px; + width: 50px; + height: 28px; +} +.rc-pagination-options-quick-jumper input:hover { + border-color: #2db7f5; +} +.rc-pagination-options-quick-jumper button { + display: inline-block; + margin: 0 8px; + font-weight: 500; + text-align: center; + -ms-touch-action: manipulation; + touch-action: manipulation; + cursor: pointer; + background-image: none; + border: 1px solid transparent; + white-space: nowrap; + padding: 0 15px; + font-size: 12px; + border-radius: 6px; + height: 28px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + position: relative; + color: rgba(0, 0, 0, 0.65); + background-color: #fff; + border-color: #d9d9d9; +} +.rc-pagination-options-quick-jumper button:hover, +.rc-pagination-options-quick-jumper button:active, +.rc-pagination-options-quick-jumper button:focus { + color: #2db7f5; + background-color: #fff; + border-color: #2db7f5; +} +.rc-pagination-simple .rc-pagination-prev, +.rc-pagination-simple .rc-pagination-next { + border: none; + height: 24px; + line-height: 24px; + margin: 0; + font-size: 18px; +} +.rc-pagination-simple .rc-pagination-simple-pager { + float: left; + margin-right: 8px; + list-style: none; +} +.rc-pagination-simple .rc-pagination-simple-pager .rc-pagination-slash { + margin: 0 10px; +} +.rc-pagination-simple .rc-pagination-simple-pager input { + margin: 0 8px; + box-sizing: border-box; + background-color: #fff; + border-radius: 6px; + border: 1px solid #d9d9d9; + outline: none; + padding: 5px 8px; + min-height: 20px; +} +.rc-pagination-simple .rc-pagination-simple-pager input:hover { + border-color: #2db7f5; +} +.rc-pagination-simple .rc-pagination-simple-pager button { + display: inline-block; + margin: 0 8px; + font-weight: 500; + text-align: center; + -ms-touch-action: manipulation; + touch-action: manipulation; + cursor: pointer; + background-image: none; + border: 1px solid transparent; + white-space: nowrap; + padding: 0 8px; + font-size: 12px; + border-radius: 6px; + height: 26px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); + position: relative; + color: rgba(0, 0, 0, 0.65); + background-color: #fff; + border-color: #d9d9d9; +} +.rc-pagination-simple .rc-pagination-simple-pager button:hover, +.rc-pagination-simple .rc-pagination-simple-pager button:active, +.rc-pagination-simple .rc-pagination-simple-pager button:focus { + color: #2db7f5; + background-color: #fff; + border-color: #2db7f5; +} +@media only screen and (max-width: 1024px) { + .rc-pagination-item-after-jump-prev, + .rc-pagination-item-before-jump-next { + display: none; + } +} + +/*# sourceMappingURL=rc-pagination.min.css.map*/ diff --git a/dist/rc-pagination.min.css.map b/dist/rc-pagination.min.css.map new file mode 100644 index 00000000..a83e1aa1 --- /dev/null +++ b/dist/rc-pagination.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./assets/index.less"],"names":[],"mappings":"AAaA;EACE;EACA;EACA;KAAA;MAAA;UAAA;EACA;CAZD;AAQD;EAOI;CAZH;AAeC;EACE;EACA;EACA;EACA;EACA;EACA;CAbH;AAgBC;EACE;EACA;EACA;EACA;EACA;EACA;CAdH;AAiBC;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CAfH;AAIC;EAcI;EACA;CAfL;AAkBG;EACE;CAhBL;AAeG;EAGI;CAfP;AAmBG;EA/DF;CA+CD;AA7CC;EACE;CA+CH;AAhDC;EAGI;CAgDL;AAcG;EACE;EACA;CAZL;AAUG;EAKI;CAZP;AAeK;EAEI;CAdT;AAqBG;;EACE;EACA;EACA;EACA;EACA;EACA;CAlBL;AAsBK;;EACE;CAnBP;AA2BK;EACE;CAzBP;AAgCK;EACE;CA9BP;AAmCC;;EAEE;CAjCH;AAmCG;;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;CAjCL;AAcC;;;;EAwBI;EACA;CAhCL;AAoCK;;EACE;EACA;CAjCP;AA8BG;;;;EAQI;EACA;CAhCP;AAqCC;;;EACE;CAjCH;AAmCC;;;;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CA9BH;AAmCK;EACE;EACA;CAjCP;AAwCK;EACE;EACA;CAtCP;AA2CC;;EACE;EACA;CAxCH;AAsCC;;EAII;CAtCL;AAuCK;;EACE;CApCP;AAyCC;EACE;CAvCH;AAsCC;EAGI;CAtCL;AAmCC;;;EA5MA;CA8KD;AA5KC;;;EACE;CAgLH;AAjLC;;;EAGI;CAmLL;AAoBC;;EAcI;CA9BL;AAkCC;EACE;EACA;CAhCH;AAiCG;EACE;EACA;CA/BL;AAkCG;EACE;EACA;EACA;EACA;CAhCL;AA4BG;EAOI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CAhCP;AAkCO;EACE;CAhCT;AAcG;EAuBI;EACA;EACA;EACA;EACA;MAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;KAAA;MAAA;UAAA;EACA;EACA;EACA;EACA;EACA;CAlCP;AAoCO;;;EACE;EACA;EACA;CAhCT;AAsCC;;EAEI;EACA;EACA;EACA;EACA;CApCL;AA8BC;EAUI;EACA;EACA;CArCL;AAyBC;EAeM;CArCP;AAsBC;EAmBM;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CAtCP;AAwCO;EACE;CAtCT;AASC;EAkCM;EACA;EACA;EACA;EACA;MAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;KAAA;MAAA;UAAA;EACA;EACA;EACA;EACA;EACA;CAxCP;AA0CO;;;EACE;EACA;EACA;CAtCT;AA8CD;EAEI;;IAEE;GA7CH;CACF","file":"rc-pagination.min.css","sourcesContent":["@prefixClass: rc-pagination;\n\n.disabled-item() {\n cursor: not-allowed;\n\n &:hover {\n border-color: #d9d9d9;\n a {\n color: #d9d9d9;\n }\n }\n}\n\n.@{prefixClass} {\n font-size: 12px;\n font-family: 'Arial';\n user-select: none;\n padding: 0;\n\n > li {\n list-style: none;\n }\n\n &-total-text {\n float: left;\n height: 30px;\n line-height: 30px;\n list-style: none;\n padding: 0;\n margin: 0 8px 0 0;\n }\n\n &:after {\n content: \" \";\n display: block;\n height: 0;\n clear: both;\n overflow: hidden;\n visibility: hidden;\n }\n\n &-item {\n cursor: pointer;\n border-radius: 6px;\n min-width: 28px;\n height: 28px;\n line-height: 28px;\n text-align: center;\n list-style: none;\n float: left;\n border: 1px solid #d9d9d9;\n background-color: #fff;\n margin-right: 8px;\n\n a {\n text-decoration: none;\n color: #666;\n }\n\n &:hover {\n border-color: #2db7f5;\n a {\n color: #2db7f5;\n }\n }\n\n &-disabled {\n .disabled-item();\n }\n\n &-active {\n background-color: #2db7f5;\n border-color: #2db7f5;\n\n a {\n color: #fff;\n }\n\n &:hover {\n a {\n color: #fff;\n }\n }\n }\n }\n\n &-jump-prev, &-jump-next {\n &:after {\n content: \"•••\";\n display: block;\n letter-spacing: 2px;\n color: #ccc;\n font-size: 12px;\n margin-top: 1px;\n }\n\n &:hover {\n &:after {\n color: #2db7f5;\n }\n }\n\n }\n\n &-jump-prev {\n &:hover {\n &:after {\n content: \"«\";\n }\n }\n }\n\n &-jump-next {\n &:hover {\n &:after {\n content: \"»\";\n }\n }\n }\n \n &-jump-prev-custom-icon,\n &-jump-next-custom-icon {\n position: relative;\n\n &:after {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n margin: auto;\n transition: all .2s;\n\n content: \"•••\";\n opacity: 1;\n display: block;\n letter-spacing: 2px;\n color: #ccc;\n font-size: 12px;\n margin-top: 1px;\n }\n\n .custom-icon-jump-prev,\n .custom-icon-jump-next {\n opacity: 0;\n transition: all .2s;\n }\n\n &:hover {\n &:after {\n opacity: 0;\n color: #ccc;\n }\n\n .custom-icon-jump-prev,\n .custom-icon-jump-next {\n opacity: 1;\n color: #2db7f5;\n }\n }\n }\n\n &-prev, &-jump-prev, &-jump-next {\n margin-right: 8px;\n }\n &-prev, &-next, &-jump-prev, &-jump-next {\n cursor: pointer;\n color: #666;\n font-size: 10px;\n border-radius: 6px;\n list-style: none;\n min-width: 28px;\n height: 28px;\n line-height: 28px;\n float: left;\n text-align: center;\n }\n\n &-prev {\n a {\n &:after {\n content: \"‹\";\n display: block;\n }\n }\n }\n\n &-next {\n a {\n &:after {\n content: \"›\";\n display: block;\n }\n }\n }\n\n &-prev, &-next {\n border: 1px solid #d9d9d9;\n font-size: 18px;\n a {\n color: #666;\n &:after {\n margin-top: -1px;\n }\n }\n }\n\n &-disabled {\n cursor: not-allowed;\n a {\n color: #ccc;\n }\n\n .@{prefixClass}-item,\n .@{prefixClass}-prev,\n .@{prefixClass}-next {\n .disabled-item();\n }\n\n .@{prefixClass}-jump-prev,\n .@{prefixClass}-jump-next {\n pointer-events: none;\n }\n }\n\n &-options {\n float: left;\n margin-left: 15px;\n &-size-changer {\n float: left;\n width: 80px;\n }\n\n &-quick-jumper {\n float: left;\n margin-left: 16px;\n height: 28px;\n line-height: 28px;\n\n input {\n margin: 0 8px;\n box-sizing: border-box;\n background-color: #fff;\n border-radius: 6px;\n border: 1px solid #d9d9d9;\n outline: none;\n padding: 3px 12px;\n width: 50px;\n height: 28px;\n\n &:hover {\n border-color: #2db7f5;\n }\n }\n\n button {\n display: inline-block;\n margin: 0 8px;\n font-weight: 500;\n text-align: center;\n touch-action: manipulation;\n cursor: pointer;\n background-image: none;\n border: 1px solid transparent;\n white-space: nowrap;\n padding: 0 15px;\n font-size: 12px;\n border-radius: 6px;\n height: 28px;\n user-select: none;\n transition: all .3s cubic-bezier(.645,.045,.355,1);\n position: relative;\n color: rgba(0,0,0,.65);\n background-color: #fff;\n border-color: #d9d9d9;\n\n &:hover, &:active, &:focus {\n color: #2db7f5;\n background-color: #fff;\n border-color: #2db7f5;\n }\n }\n }\n }\n\n &-simple {\n .@{prefixClass}-prev, .@{prefixClass}-next {\n border: none;\n height: 24px;\n line-height: 24px;\n margin: 0;\n font-size: 18px;\n }\n\n .@{prefixClass}-simple-pager {\n float: left;\n margin-right: 8px;\n list-style: none;\n\n .@{prefixClass}-slash {\n margin: 0 10px;\n }\n\n input {\n margin: 0 8px;\n box-sizing: border-box;\n background-color: #fff;\n border-radius: 6px;\n border: 1px solid #d9d9d9;\n outline: none;\n padding: 5px 8px;\n min-height: 20px;\n\n &:hover {\n border-color: #2db7f5;\n }\n }\n\n button {\n display: inline-block;\n margin: 0 8px;\n font-weight: 500;\n text-align: center;\n touch-action: manipulation;\n cursor: pointer;\n background-image: none;\n border: 1px solid transparent;\n white-space: nowrap;\n padding: 0 8px;\n font-size: 12px;\n border-radius: 6px;\n height: 26px;\n user-select: none;\n transition: all .3s cubic-bezier(.645,.045,.355,1);\n position: relative;\n color: rgba(0,0,0,.65);\n background-color: #fff;\n border-color: #d9d9d9;\n\n &:hover, &:active, &:focus {\n color: #2db7f5;\n background-color: #fff;\n border-color: #2db7f5;\n }\n }\n\n }\n }\n}\n\n@media only screen and (max-width: 1024px) {\n .@{prefixClass}-item {\n &-after-jump-prev,\n &-before-jump-next {\n display: none;\n }\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./assets/index.less"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/rc-pagination.min.js b/dist/rc-pagination.min.js new file mode 100644 index 00000000..be2f56f5 --- /dev/null +++ b/dist/rc-pagination.min.js @@ -0,0 +1,2476 @@ +!(function(e, t) { + 'object' == typeof exports && 'object' == typeof module + ? (module.exports = t(require('react'))) + : 'function' == typeof define && define.amd + ? define(['react'], t) + : 'object' == typeof exports + ? (exports['rc-pagination'] = t(require('react'))) + : (e['rc-pagination'] = t(e.React)); +})(this, function(e) { + return (function(e) { + function t(r) { + if (n[r]) return n[r].exports; + var o = (n[r] = { i: r, l: !1, exports: {} }); + return e[r].call(o.exports, o, o.exports, t), (o.l = !0), o.exports; + } + var n = {}; + return ( + (t.m = e), + (t.c = n), + (t.i = function(e) { + return e; + }), + (t.d = function(e, n, r) { + t.o(e, n) || + Object.defineProperty(e, n, { + configurable: !1, + enumerable: !0, + get: r, + }); + }), + (t.n = function(e) { + var n = + e && e.__esModule + ? function() { + return e.default; + } + : function() { + return e; + }; + return t.d(n, 'a', n), n; + }), + (t.o = function(e, t) { + return Object.prototype.hasOwnProperty.call(e, t); + }), + (t.p = ''), + t((t.s = 100)) + ); + })([ + function(e, t) { + var n = (e.exports = { version: '2.6.11' }); + 'number' == typeof __e && (__e = n); + }, + function(e, t, n) { + e.exports = !n(11)(function() { + return ( + 7 != + Object.defineProperty({}, 'a', { + get: function() { + return 7; + }, + }).a + ); + }); + }, + function(e, t) { + var n = (e.exports = + 'undefined' != typeof window && window.Math == Math + ? window + : 'undefined' != typeof self && self.Math == Math + ? self + : Function('return this')()); + 'number' == typeof __g && (__g = n); + }, + function(e, t) { + var n = {}.hasOwnProperty; + e.exports = function(e, t) { + return n.call(e, t); + }; + }, + function(e, t, n) { + var r = n(10), + o = n(44), + i = n(27), + a = Object.defineProperty; + t.f = n(1) + ? Object.defineProperty + : function(e, t, n) { + if ((r(e), (t = i(t, !0)), r(n), o)) + try { + return a(e, t, n); + } catch (e) {} + if ('get' in n || 'set' in n) + throw TypeError('Accessors not supported!'); + return 'value' in n && (e[t] = n.value), e; + }; + }, + function(e, t, n) { + var r = n(2), + o = n(0), + i = n(42), + a = n(6), + u = n(3), + s = function(e, t, n) { + var c, + l, + f, + p = e & s.F, + h = e & s.G, + d = e & s.S, + v = e & s.P, + m = e & s.B, + y = e & s.W, + g = h ? o : o[t] || (o[t] = {}), + b = g.prototype, + x = h ? r : d ? r[t] : (r[t] || {}).prototype; + h && (n = t); + for (c in n) + ((l = !p && x && void 0 !== x[c]) && u(g, c)) || + ((f = l ? x[c] : n[c]), + (g[c] = + h && 'function' != typeof x[c] + ? n[c] + : m && l + ? i(f, r) + : y && x[c] == f + ? (function(e) { + var t = function(t, n, r) { + if (this instanceof e) { + switch (arguments.length) { + case 0: + return new e(); + case 1: + return new e(t); + case 2: + return new e(t, n); + } + return new e(t, n, r); + } + return e.apply(this, arguments); + }; + return (t.prototype = e.prototype), t; + })(f) + : v && 'function' == typeof f + ? i(Function.call, f) + : f), + v && + (((g.virtual || (g.virtual = {}))[c] = f), + e & s.R && b && !b[c] && a(b, c, f))); + }; + (s.F = 1), + (s.G = 2), + (s.S = 4), + (s.P = 8), + (s.B = 16), + (s.W = 32), + (s.U = 64), + (s.R = 128), + (e.exports = s); + }, + function(e, t, n) { + var r = n(4), + o = n(15); + e.exports = n(1) + ? function(e, t, n) { + return r.f(e, t, o(1, n)); + } + : function(e, t, n) { + return (e[t] = n), e; + }; + }, + function(e, t) { + e.exports = function(e) { + return 'object' == typeof e ? null !== e : 'function' == typeof e; + }; + }, + function(e, t, n) { + var r = n(45), + o = n(17); + e.exports = function(e) { + return r(o(e)); + }; + }, + function(e, t, n) { + var r = n(24)('wks'), + o = n(16), + i = n(2).Symbol, + a = 'function' == typeof i; + (e.exports = function(e) { + return r[e] || (r[e] = (a && i[e]) || (a ? i : o)('Symbol.' + e)); + }).store = r; + }, + function(e, t, n) { + var r = n(7); + e.exports = function(e) { + if (!r(e)) throw TypeError(e + ' is not an object!'); + return e; + }; + }, + function(e, t) { + e.exports = function(e) { + try { + return !!e(); + } catch (e) { + return !0; + } + }; + }, + function(e, t) { + e.exports = !0; + }, + function(e, t, n) { + var r = n(49), + o = n(18); + e.exports = + Object.keys || + function(e) { + return r(e, o); + }; + }, + function(e, t) { + t.f = {}.propertyIsEnumerable; + }, + function(e, t) { + e.exports = function(e, t) { + return { + enumerable: !(1 & e), + configurable: !(2 & e), + writable: !(4 & e), + value: t, + }; + }; + }, + function(e, t) { + var n = 0, + r = Math.random(); + e.exports = function(e) { + return 'Symbol('.concat( + void 0 === e ? '' : e, + ')_', + (++n + r).toString(36), + ); + }; + }, + function(e, t) { + e.exports = function(e) { + if (void 0 == e) throw TypeError("Can't call method on " + e); + return e; + }; + }, + function(e, t) { + e.exports = 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split( + ',', + ); + }, + function(e, t) { + e.exports = {}; + }, + function(e, t, n) { + var r = n(10), + o = n(79), + i = n(18), + a = n(23)('IE_PROTO'), + u = function() {}, + s = function() { + var e, + t = n(43)('iframe'), + r = i.length; + for ( + t.style.display = 'none', + n(73).appendChild(t), + t.src = 'javascript:', + e = t.contentWindow.document, + e.open(), + e.write(''), + e.close(), + s = e.F; + r--; + + ) + delete s.prototype[i[r]]; + return s(); + }; + e.exports = + Object.create || + function(e, t) { + var n; + return ( + null !== e + ? ((u.prototype = r(e)), + (n = new u()), + (u.prototype = null), + (n[a] = e)) + : (n = s()), + void 0 === t ? n : o(n, t) + ); + }; + }, + function(e, t) { + t.f = Object.getOwnPropertySymbols; + }, + function(e, t, n) { + var r = n(4).f, + o = n(3), + i = n(9)('toStringTag'); + e.exports = function(e, t, n) { + e && + !o((e = n ? e : e.prototype), i) && + r(e, i, { configurable: !0, value: t }); + }; + }, + function(e, t, n) { + var r = n(24)('keys'), + o = n(16); + e.exports = function(e) { + return r[e] || (r[e] = o(e)); + }; + }, + function(e, t, n) { + var r = n(0), + o = n(2), + i = o['__core-js_shared__'] || (o['__core-js_shared__'] = {}); + (e.exports = function(e, t) { + return i[e] || (i[e] = void 0 !== t ? t : {}); + })('versions', []).push({ + version: r.version, + mode: n(12) ? 'pure' : 'global', + copyright: '© 2019 Denis Pushkarev (zloirock.ru)', + }); + }, + function(e, t) { + var n = Math.ceil, + r = Math.floor; + e.exports = function(e) { + return isNaN((e = +e)) ? 0 : (e > 0 ? r : n)(e); + }; + }, + function(e, t, n) { + var r = n(17); + e.exports = function(e) { + return Object(r(e)); + }; + }, + function(e, t, n) { + var r = n(7); + e.exports = function(e, t) { + if (!r(e)) return e; + var n, o; + if (t && 'function' == typeof (n = e.toString) && !r((o = n.call(e)))) + return o; + if ('function' == typeof (n = e.valueOf) && !r((o = n.call(e)))) + return o; + if (!t && 'function' == typeof (n = e.toString) && !r((o = n.call(e)))) + return o; + throw TypeError("Can't convert object to primitive value"); + }; + }, + function(e, t, n) { + var r = n(2), + o = n(0), + i = n(12), + a = n(29), + u = n(4).f; + e.exports = function(e) { + var t = o.Symbol || (o.Symbol = i ? {} : r.Symbol || {}); + '_' == e.charAt(0) || e in t || u(t, e, { value: a.f(e) }); + }; + }, + function(e, t, n) { + t.f = n(9); + }, + function(e, t, n) { + e.exports = n(97)(); + }, + function(t, n) { + t.exports = e; + }, + function(e, t, n) { + 'use strict'; + t.a = { + ZERO: 48, + NINE: 57, + NUMPAD_ZERO: 96, + NUMPAD_NINE: 105, + BACKSPACE: 8, + DELETE: 46, + ENTER: 13, + ARROW_UP: 38, + ARROW_DOWN: 40, + }; + }, + function(e, t, n) { + e.exports = { default: n(65), __esModule: !0 }; + }, + function(e, t, n) { + 'use strict'; + (t.__esModule = !0), + (t.default = function(e, t) { + if (!(e instanceof t)) + throw new TypeError('Cannot call a class as a function'); + }); + }, + function(e, t, n) { + 'use strict'; + t.__esModule = !0; + var r = n(33), + o = (function(e) { + return e && e.__esModule ? e : { default: e }; + })(r); + t.default = (function() { + function e(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + (0, o.default)(e, r.key, r); + } + } + return function(t, n, r) { + return n && e(t.prototype, n), r && e(t, r), t; + }; + })(); + }, + function(e, t, n) { + 'use strict'; + t.__esModule = !0; + var r = n(33), + o = (function(e) { + return e && e.__esModule ? e : { default: e }; + })(r); + t.default = function(e, t, n) { + return ( + t in e + ? (0, o.default)(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0, + }) + : (e[t] = n), + e + ); + }; + }, + function(e, t, n) { + 'use strict'; + function r(e) { + return e && e.__esModule ? e : { default: e }; + } + t.__esModule = !0; + var o = n(59), + i = r(o), + a = n(58), + u = r(a), + s = n(39), + c = r(s); + t.default = function(e, t) { + if ('function' != typeof t && null !== t) + throw new TypeError( + 'Super expression must either be null or a function, not ' + + (void 0 === t ? 'undefined' : (0, c.default)(t)), + ); + (e.prototype = (0, u.default)(t && t.prototype, { + constructor: { + value: e, + enumerable: !1, + writable: !0, + configurable: !0, + }, + })), + t && (i.default ? (0, i.default)(e, t) : (e.__proto__ = t)); + }; + }, + function(e, t, n) { + 'use strict'; + t.__esModule = !0; + var r = n(39), + o = (function(e) { + return e && e.__esModule ? e : { default: e }; + })(r); + t.default = function(e, t) { + if (!e) + throw new ReferenceError( + "this hasn't been initialised - super() hasn't been called", + ); + return !t || + ('object' !== (void 0 === t ? 'undefined' : (0, o.default)(t)) && + 'function' != typeof t) + ? e + : t; + }; + }, + function(e, t, n) { + 'use strict'; + function r(e) { + return e && e.__esModule ? e : { default: e }; + } + t.__esModule = !0; + var o = n(61), + i = r(o), + a = n(60), + u = r(a), + s = + 'function' == typeof u.default && 'symbol' == typeof i.default + ? function(e) { + return typeof e; + } + : function(e) { + return e && + 'function' == typeof u.default && + e.constructor === u.default && + e !== u.default.prototype + ? 'symbol' + : typeof e; + }; + t.default = + 'function' == typeof u.default && 'symbol' === s(i.default) + ? function(e) { + return void 0 === e ? 'undefined' : s(e); + } + : function(e) { + return e && + 'function' == typeof u.default && + e.constructor === u.default && + e !== u.default.prototype + ? 'symbol' + : void 0 === e + ? 'undefined' + : s(e); + }; + }, + function(e, t, n) { + var r, o; + !(function() { + 'use strict'; + function n() { + for (var e = [], t = 0; t < arguments.length; t++) { + var r = arguments[t]; + if (r) { + var o = typeof r; + if ('string' === o || 'number' === o) e.push(r); + else if (Array.isArray(r) && r.length) { + var a = n.apply(null, r); + a && e.push(a); + } else if ('object' === o) + for (var u in r) i.call(r, u) && r[u] && e.push(u); + } + } + return e.join(' '); + } + var i = {}.hasOwnProperty; + void 0 !== e && e.exports + ? ((n.default = n), (e.exports = n)) + : ((r = []), + void 0 !== + (o = function() { + return n; + }.apply(t, r)) && (e.exports = o)); + })(); + }, + function(e, t) { + var n = {}.toString; + e.exports = function(e) { + return n.call(e).slice(8, -1); + }; + }, + function(e, t, n) { + var r = n(69); + e.exports = function(e, t, n) { + if ((r(e), void 0 === t)) return e; + switch (n) { + case 1: + return function(n) { + return e.call(t, n); + }; + case 2: + return function(n, r) { + return e.call(t, n, r); + }; + case 3: + return function(n, r, o) { + return e.call(t, n, r, o); + }; + } + return function() { + return e.apply(t, arguments); + }; + }; + }, + function(e, t, n) { + var r = n(7), + o = n(2).document, + i = r(o) && r(o.createElement); + e.exports = function(e) { + return i ? o.createElement(e) : {}; + }; + }, + function(e, t, n) { + e.exports = + !n(1) && + !n(11)(function() { + return ( + 7 != + Object.defineProperty(n(43)('div'), 'a', { + get: function() { + return 7; + }, + }).a + ); + }); + }, + function(e, t, n) { + var r = n(41); + e.exports = Object('z').propertyIsEnumerable(0) + ? Object + : function(e) { + return 'String' == r(e) ? e.split('') : Object(e); + }; + }, + function(e, t, n) { + 'use strict'; + var r = n(12), + o = n(5), + i = n(50), + a = n(6), + u = n(19), + s = n(75), + c = n(22), + l = n(81), + f = n(9)('iterator'), + p = !([].keys && 'next' in [].keys()), + h = function() { + return this; + }; + e.exports = function(e, t, n, d, v, m, y) { + s(n, t, d); + var g, + b, + x, + _ = function(e) { + if (!p && e in w) return w[e]; + switch (e) { + case 'keys': + case 'values': + return function() { + return new n(this, e); + }; + } + return function() { + return new n(this, e); + }; + }, + S = t + ' Iterator', + P = 'values' == v, + O = !1, + w = e.prototype, + E = w[f] || w['@@iterator'] || (v && w[v]), + C = E || _(v), + N = v ? (P ? _('entries') : C) : void 0, + j = 'Array' == t ? w.entries || E : E; + if ( + (j && + (x = l(j.call(new e()))) !== Object.prototype && + x.next && + (c(x, S, !0), r || 'function' == typeof x[f] || a(x, f, h)), + P && + E && + 'values' !== E.name && + ((O = !0), + (C = function() { + return E.call(this); + })), + (r && !y) || (!p && !O && w[f]) || a(w, f, C), + (u[t] = C), + (u[S] = h), + v) + ) + if ( + ((g = { + values: P ? C : _('values'), + keys: m ? C : _('keys'), + entries: N, + }), + y) + ) + for (b in g) b in w || i(w, b, g[b]); + else o(o.P + o.F * (p || O), t, g); + return g; + }; + }, + function(e, t, n) { + var r = n(14), + o = n(15), + i = n(8), + a = n(27), + u = n(3), + s = n(44), + c = Object.getOwnPropertyDescriptor; + t.f = n(1) + ? c + : function(e, t) { + if (((e = i(e)), (t = a(t, !0)), s)) + try { + return c(e, t); + } catch (e) {} + if (u(e, t)) return o(!r.f.call(e, t), e[t]); + }; + }, + function(e, t, n) { + var r = n(49), + o = n(18).concat('length', 'prototype'); + t.f = + Object.getOwnPropertyNames || + function(e) { + return r(e, o); + }; + }, + function(e, t, n) { + var r = n(3), + o = n(8), + i = n(71)(!1), + a = n(23)('IE_PROTO'); + e.exports = function(e, t) { + var n, + u = o(e), + s = 0, + c = []; + for (n in u) n != a && r(u, n) && c.push(n); + for (; t.length > s; ) r(u, (n = t[s++])) && (~i(c, n) || c.push(n)); + return c; + }; + }, + function(e, t, n) { + e.exports = n(6); + }, + function(e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(55); + n.d(t, 'default', function() { + return r.a; + }); + }, + function(e, t) {}, + function(e, t, n) { + 'use strict'; + var r = n(34), + o = n.n(r), + i = n(35), + a = n.n(i), + u = n(38), + s = n.n(u), + c = n(37), + l = n.n(c), + f = n(31), + p = n.n(f), + h = n(30), + d = n.n(h), + v = n(32), + m = (function(e) { + function t() { + var e, n, r, i; + o()(this, t); + for (var a = arguments.length, u = Array(a), c = 0; c < a; c++) + u[c] = arguments[c]; + return ( + (n = r = s()( + this, + (e = t.__proto__ || Object.getPrototypeOf(t)).call.apply( + e, + [this].concat(u), + ), + )), + (r.state = { goInputText: '' }), + (r.buildOptionText = function(e) { + return e + ' ' + r.props.locale.items_per_page; + }), + (r.changeSize = function(e) { + r.props.changeSize(Number(e)); + }), + (r.handleChange = function(e) { + r.setState({ goInputText: e.target.value }); + }), + (r.handleBlur = function(e) { + var t = r.props, + n = t.goButton, + o = t.quickGo, + i = t.rootPrefixCls; + n || + (e.relatedTarget && + (e.relatedTarget.className.indexOf(i + '-prev') >= 0 || + e.relatedTarget.className.indexOf(i + '-next') >= 0)) || + o(r.getValidValue()); + }), + (r.go = function(e) { + '' !== r.state.goInputText && + ((e.keyCode !== v.a.ENTER && 'click' !== e.type) || + (r.setState({ goInputText: '' }), + r.props.quickGo(r.getValidValue()))); + }), + (i = n), + s()(r, i) + ); + } + return ( + l()(t, e), + a()(t, [ + { + key: 'getValidValue', + value: function() { + var e = this.state, + t = e.goInputText, + n = e.current; + return !t || isNaN(t) ? n : Number(t); + }, + }, + { + key: 'render', + value: function() { + var e = this, + t = this.props, + n = t.pageSize, + r = t.pageSizeOptions, + o = t.locale, + i = t.rootPrefixCls, + a = t.changeSize, + u = t.quickGo, + s = t.goButton, + c = t.selectComponentClass, + l = t.buildOptionText, + f = t.selectPrefixCls, + h = t.disabled, + d = this.state.goInputText, + v = i + '-options', + m = c, + y = null, + g = null, + b = null; + if (!a && !u) return null; + if (a && m) { + var x = r.map(function(t, n) { + return p.a.createElement( + m.Option, + { key: n, value: t }, + (l || e.buildOptionText)(t), + ); + }); + y = p.a.createElement( + m, + { + disabled: h, + prefixCls: f, + showSearch: !1, + className: v + '-size-changer', + optionLabelProp: 'children', + dropdownMatchSelectWidth: !1, + value: (n || r[0]).toString(), + onChange: this.changeSize, + getPopupContainer: function(e) { + return e.parentNode; + }, + }, + x, + ); + } + return ( + u && + (s && + (b = + 'boolean' == typeof s + ? p.a.createElement( + 'button', + { + type: 'button', + onClick: this.go, + onKeyUp: this.go, + disabled: h, + }, + o.jump_to_confirm, + ) + : p.a.createElement( + 'span', + { onClick: this.go, onKeyUp: this.go }, + s, + )), + (g = p.a.createElement( + 'div', + { className: v + '-quick-jumper' }, + o.jump_to, + p.a.createElement('input', { + disabled: h, + type: 'text', + value: d, + onChange: this.handleChange, + onKeyUp: this.go, + onBlur: this.handleBlur, + }), + o.page, + b, + ))), + p.a.createElement('li', { className: '' + v }, y, g) + ); + }, + }, + ]), + t + ); + })(p.a.Component); + (m.propTypes = { + disabled: d.a.bool, + changeSize: d.a.func, + quickGo: d.a.func, + selectComponentClass: d.a.func, + current: d.a.number, + pageSizeOptions: d.a.arrayOf(d.a.string), + pageSize: d.a.number, + buildOptionText: d.a.func, + locale: d.a.object, + rootPrefixCls: d.a.string, + selectPrefixCls: d.a.string, + goButton: d.a.oneOfType([d.a.bool, d.a.node]), + }), + (m.defaultProps = { pageSizeOptions: ['10', '20', '30', '40'] }), + (t.a = m); + }, + function(e, t, n) { + 'use strict'; + var r = n(36), + o = n.n(r), + i = n(31), + a = n.n(i), + u = n(30), + s = n.n(u), + c = n(40), + l = n.n(c), + f = function(e) { + var t, + n = e.rootPrefixCls + '-item', + r = l()( + n, + n + '-' + e.page, + ((t = {}), + o()(t, n + '-active', e.active), + o()(t, e.className, !!e.className), + o()(t, n + '-disabled', !e.page), + t), + ), + i = function() { + e.onClick(e.page); + }, + u = function(t) { + e.onKeyPress(t, e.onClick, e.page); + }; + return a.a.createElement( + 'li', + { + title: e.showTitle ? e.page : null, + className: r, + onClick: i, + onKeyPress: u, + tabIndex: '0', + }, + e.itemRender(e.page, 'page', a.a.createElement('a', null, e.page)), + ); + }; + (f.propTypes = { + page: s.a.number, + active: s.a.bool, + last: s.a.bool, + locale: s.a.object, + className: s.a.string, + showTitle: s.a.bool, + rootPrefixCls: s.a.string, + onClick: s.a.func, + onKeyPress: s.a.func, + itemRender: s.a.func, + }), + (t.a = f); + }, + function(e, t, n) { + 'use strict'; + function r() {} + function o(e) { + return 'number' == typeof e && isFinite(e) && Math.floor(e) === e; + } + function i(e, t, n) { + return n; + } + function a(e, t, n) { + var r = e; + return ( + void 0 === r && (r = t.pageSize), Math.floor((n.total - 1) / r) + 1 + ); + } + var u = n(36), + s = n.n(u), + c = n(62), + l = n.n(c), + f = n(34), + p = n.n(f), + h = n(35), + d = n.n(h), + v = n(38), + m = n.n(v), + y = n(37), + g = n.n(y), + b = n(31), + x = n.n(b), + _ = n(40), + S = n.n(_), + P = n(30), + O = n.n(P), + w = n(54), + E = n(53), + C = n(32), + N = n(56), + j = n(99), + T = (function(e) { + function t(e) { + p()(this, t); + var n = m()( + this, + (t.__proto__ || Object.getPrototypeOf(t)).call(this, e), + ); + I.call(n); + var o = e.onChange !== r; + 'current' in e && + !o && + console.warn( + 'Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.', + ); + var i = e.defaultCurrent; + 'current' in e && (i = e.current); + var u = e.defaultPageSize; + return ( + 'pageSize' in e && (u = e.pageSize), + (i = Math.min(i, a(u, void 0, e))), + (n.state = { current: i, currentInputValue: i, pageSize: u }), + n + ); + } + return ( + g()(t, e), + d()( + t, + [ + { + key: 'componentDidUpdate', + value: function(e, t) { + var n = this.props.prefixCls; + if ( + t.current !== this.state.current && + this.paginationNode + ) { + var r = this.paginationNode.querySelector( + '.' + n + '-item-' + t.current, + ); + r && document.activeElement === r && r.blur(); + } + }, + }, + { + key: 'getValidValue', + value: function(e) { + var t = e.target.value, + n = a(void 0, this.state, this.props), + r = this.state.currentInputValue; + return '' === t + ? t + : isNaN(Number(t)) + ? r + : t >= n + ? n + : Number(t); + }, + }, + { + key: 'renderPrev', + value: function(e) { + var t = this.props, + r = t.prevIcon, + o = t.itemRender, + i = o(e, 'prev', this.getItemIcon(r)), + a = !this.hasPrev(); + return n.i(b.isValidElement)(i) + ? n.i(b.cloneElement)(i, { disabled: a }) + : i; + }, + }, + { + key: 'renderNext', + value: function(e) { + var t = this.props, + r = t.nextIcon, + o = t.itemRender, + i = o(e, 'next', this.getItemIcon(r)), + a = !this.hasNext(); + return n.i(b.isValidElement)(i) + ? n.i(b.cloneElement)(i, { disabled: a }) + : i; + }, + }, + { + key: 'render', + value: function() { + var e = this.props, + t = e.prefixCls, + n = e.className, + r = e.disabled; + if ( + !0 === this.props.hideOnSinglePage && + this.props.total <= this.state.pageSize + ) + return null; + var o = this.props, + i = o.locale, + u = a(void 0, this.state, this.props), + c = [], + f = null, + p = null, + h = null, + d = null, + v = null, + m = o.showQuickJumper && o.showQuickJumper.goButton, + y = o.showLessItems ? 1 : 2, + g = this.state, + b = g.current, + _ = g.pageSize, + P = b - 1 > 0 ? b - 1 : 0, + O = b + 1 < u ? b + 1 : u, + C = Object.keys(o).reduce(function(e, t) { + return ( + ('data-' !== t.substr(0, 5) && + 'aria-' !== t.substr(0, 5) && + 'role' !== t) || + (e[t] = o[t]), + e + ); + }, {}); + if (o.simple) + return ( + m && + ((v = + 'boolean' == typeof m + ? x.a.createElement( + 'button', + { + type: 'button', + onClick: this.handleGoTO, + onKeyUp: this.handleGoTO, + }, + i.jump_to_confirm, + ) + : x.a.createElement( + 'span', + { + onClick: this.handleGoTO, + onKeyUp: this.handleGoTO, + }, + m, + )), + (v = x.a.createElement( + 'li', + { + title: o.showTitle + ? '' + i.jump_to + this.state.current + '/' + u + : null, + className: t + '-simple-pager', + }, + v, + ))), + x.a.createElement( + 'ul', + l()( + { + className: t + ' ' + t + '-simple ' + o.className, + style: o.style, + ref: this.savePaginationNode, + }, + C, + ), + x.a.createElement( + 'li', + { + title: o.showTitle ? i.prev_page : null, + onClick: this.prev, + tabIndex: this.hasPrev() ? 0 : null, + onKeyPress: this.runIfEnterPrev, + className: + (this.hasPrev() ? '' : t + '-disabled') + + ' ' + + t + + '-prev', + 'aria-disabled': !this.hasPrev(), + }, + this.renderPrev(P), + ), + x.a.createElement( + 'li', + { + title: o.showTitle + ? this.state.current + '/' + u + : null, + className: t + '-simple-pager', + }, + x.a.createElement('input', { + type: 'text', + value: this.state.currentInputValue, + onKeyDown: this.handleKeyDown, + onKeyUp: this.handleKeyUp, + onChange: this.handleKeyUp, + size: '3', + }), + x.a.createElement( + 'span', + { className: t + '-slash' }, + '/', + ), + u, + ), + x.a.createElement( + 'li', + { + title: o.showTitle ? i.next_page : null, + onClick: this.next, + tabIndex: this.hasPrev() ? 0 : null, + onKeyPress: this.runIfEnterNext, + className: + (this.hasNext() ? '' : t + '-disabled') + + ' ' + + t + + '-next', + 'aria-disabled': !this.hasNext(), + }, + this.renderNext(O), + ), + v, + ) + ); + if (u <= 5 + 2 * y) { + var N = { + locale: i, + rootPrefixCls: t, + onClick: this.handleChange, + onKeyPress: this.runIfEnter, + showTitle: o.showTitle, + itemRender: o.itemRender, + }; + u || + c.push( + x.a.createElement( + w.a, + l()({}, N, { + key: 'noPager', + page: u, + className: t + '-disabled', + }), + ), + ); + for (var j = 1; j <= u; j++) { + var T = this.state.current === j; + c.push( + x.a.createElement( + w.a, + l()({}, N, { key: j, page: j, active: T }), + ), + ); + } + } else { + var I = o.showLessItems ? i.prev_3 : i.prev_5, + k = o.showLessItems ? i.next_3 : i.next_5; + if (o.showPrevNextJumpers) { + var M = t + '-jump-prev'; + o.jumpPrevIcon && + (M += ' ' + t + '-jump-prev-custom-icon'), + (f = x.a.createElement( + 'li', + { + title: o.showTitle ? I : null, + key: 'prev', + onClick: this.jumpPrev, + tabIndex: '0', + onKeyPress: this.runIfEnterJumpPrev, + className: M, + }, + o.itemRender( + this.getJumpPrevPage(), + 'jump-prev', + this.getItemIcon(o.jumpPrevIcon), + ), + )); + var R = t + '-jump-next'; + o.jumpNextIcon && + (R += ' ' + t + '-jump-next-custom-icon'), + (p = x.a.createElement( + 'li', + { + title: o.showTitle ? k : null, + key: 'next', + tabIndex: '0', + onClick: this.jumpNext, + onKeyPress: this.runIfEnterJumpNext, + className: R, + }, + o.itemRender( + this.getJumpNextPage(), + 'jump-next', + this.getItemIcon(o.jumpNextIcon), + ), + )); + } + (d = x.a.createElement(w.a, { + locale: o.locale, + last: !0, + rootPrefixCls: t, + onClick: this.handleChange, + onKeyPress: this.runIfEnter, + key: u, + page: u, + active: !1, + showTitle: o.showTitle, + itemRender: o.itemRender, + })), + (h = x.a.createElement(w.a, { + locale: o.locale, + rootPrefixCls: t, + onClick: this.handleChange, + onKeyPress: this.runIfEnter, + key: 1, + page: 1, + active: !1, + showTitle: o.showTitle, + itemRender: o.itemRender, + })); + var z = Math.max(1, b - y), + A = Math.min(b + y, u); + b - 1 <= y && (A = 1 + 2 * y), + u - b <= y && (z = u - 2 * y); + for (var L = z; L <= A; L++) { + var D = b === L; + c.push( + x.a.createElement(w.a, { + locale: o.locale, + rootPrefixCls: t, + onClick: this.handleChange, + onKeyPress: this.runIfEnter, + key: L, + page: L, + active: D, + showTitle: o.showTitle, + itemRender: o.itemRender, + }), + ); + } + b - 1 >= 2 * y && + 3 !== b && + ((c[0] = x.a.cloneElement(c[0], { + className: t + '-item-after-jump-prev', + })), + c.unshift(f)), + u - b >= 2 * y && + b !== u - 2 && + ((c[c.length - 1] = x.a.cloneElement( + c[c.length - 1], + { className: t + '-item-before-jump-next' }, + )), + c.push(p)), + 1 !== z && c.unshift(h), + A !== u && c.push(d); + } + var U = null; + o.showTotal && + (U = x.a.createElement( + 'li', + { className: t + '-total-text' }, + o.showTotal(o.total, [ + 0 === o.total ? 0 : (b - 1) * _ + 1, + b * _ > o.total ? o.total : b * _, + ]), + )); + var W = !this.hasPrev() || !u, + F = !this.hasNext() || !u; + return x.a.createElement( + 'ul', + l()( + { + className: S()(t, n, s()({}, t + '-disabled', r)), + style: o.style, + unselectable: 'unselectable', + ref: this.savePaginationNode, + }, + C, + ), + U, + x.a.createElement( + 'li', + { + title: o.showTitle ? i.prev_page : null, + onClick: this.prev, + tabIndex: W ? null : 0, + onKeyPress: this.runIfEnterPrev, + className: + (W ? t + '-disabled' : '') + ' ' + t + '-prev', + 'aria-disabled': W, + }, + this.renderPrev(P), + ), + c, + x.a.createElement( + 'li', + { + title: o.showTitle ? i.next_page : null, + onClick: this.next, + tabIndex: F ? null : 0, + onKeyPress: this.runIfEnterNext, + className: + (F ? t + '-disabled' : '') + ' ' + t + '-next', + 'aria-disabled': F, + }, + this.renderNext(O), + ), + x.a.createElement(E.a, { + disabled: r, + locale: o.locale, + rootPrefixCls: t, + selectComponentClass: o.selectComponentClass, + selectPrefixCls: o.selectPrefixCls, + changeSize: this.props.showSizeChanger + ? this.changePageSize + : null, + current: this.state.current, + pageSize: this.state.pageSize, + pageSizeOptions: this.props.pageSizeOptions, + quickGo: this.shouldDisplayQuickJumper() + ? this.handleChange + : null, + goButton: m, + }), + ); + }, + }, + ], + [ + { + key: 'getDerivedStateFromProps', + value: function(e, t) { + var n = {}; + if ( + ('current' in e && + ((n.current = e.current), + e.current !== t.current && + (n.currentInputValue = n.current)), + 'pageSize' in e && e.pageSize !== t.pageSize) + ) { + var r = t.current, + o = a(e.pageSize, t, e); + (r = r > o ? o : r), + 'current' in e || + ((n.current = r), (n.currentInputValue = r)), + (n.pageSize = e.pageSize); + } + return n; + }, + }, + ], + ), + t + ); + })(x.a.Component); + (T.propTypes = { + disabled: O.a.bool, + prefixCls: O.a.string, + className: O.a.string, + current: O.a.number, + defaultCurrent: O.a.number, + total: O.a.number, + pageSize: O.a.number, + defaultPageSize: O.a.number, + onChange: O.a.func, + hideOnSinglePage: O.a.bool, + showSizeChanger: O.a.bool, + showLessItems: O.a.bool, + onShowSizeChange: O.a.func, + selectComponentClass: O.a.func, + showPrevNextJumpers: O.a.bool, + showQuickJumper: O.a.oneOfType([O.a.bool, O.a.object]), + showTitle: O.a.bool, + pageSizeOptions: O.a.arrayOf(O.a.string), + showTotal: O.a.func, + locale: O.a.object, + style: O.a.object, + itemRender: O.a.func, + prevIcon: O.a.oneOfType([O.a.func, O.a.node]), + nextIcon: O.a.oneOfType([O.a.func, O.a.node]), + jumpPrevIcon: O.a.oneOfType([O.a.func, O.a.node]), + jumpNextIcon: O.a.oneOfType([O.a.func, O.a.node]), + }), + (T.defaultProps = { + defaultCurrent: 1, + total: 0, + defaultPageSize: 10, + onChange: r, + className: '', + selectPrefixCls: 'rc-select', + prefixCls: 'rc-pagination', + selectComponentClass: null, + hideOnSinglePage: !1, + showPrevNextJumpers: !0, + showQuickJumper: !1, + showSizeChanger: !1, + showLessItems: !1, + showTitle: !0, + onShowSizeChange: r, + locale: N.a, + style: {}, + itemRender: i, + }); + var I = function() { + var e = this; + (this.getJumpPrevPage = function() { + return Math.max(1, e.state.current - (e.props.showLessItems ? 3 : 5)); + }), + (this.getJumpNextPage = function() { + return Math.min( + a(void 0, e.state, e.props), + e.state.current + (e.props.showLessItems ? 3 : 5), + ); + }), + (this.getItemIcon = function(t) { + var n = e.props.prefixCls, + r = t || x.a.createElement('a', { className: n + '-item-link' }); + return ( + 'function' == typeof t && + (r = x.a.createElement(t, l()({}, e.props))), + r + ); + }), + (this.savePaginationNode = function(t) { + e.paginationNode = t; + }), + (this.isValid = function(t) { + return o(t) && t !== e.state.current; + }), + (this.shouldDisplayQuickJumper = function() { + var t = e.props, + n = t.showQuickJumper, + r = t.pageSize; + return !(t.total <= r) && n; + }), + (this.handleKeyDown = function(e) { + (e.keyCode !== C.a.ARROW_UP && e.keyCode !== C.a.ARROW_DOWN) || + e.preventDefault(); + }), + (this.handleKeyUp = function(t) { + var n = e.getValidValue(t); + n !== e.state.currentInputValue && + e.setState({ currentInputValue: n }), + t.keyCode === C.a.ENTER + ? e.handleChange(n) + : t.keyCode === C.a.ARROW_UP + ? e.handleChange(n - 1) + : t.keyCode === C.a.ARROW_DOWN && e.handleChange(n + 1); + }), + (this.changePageSize = function(t) { + var n = e.state.current, + r = a(t, e.state, e.props); + (n = n > r ? r : n), + 0 === r && (n = e.state.current), + 'number' == typeof t && + ('pageSize' in e.props || e.setState({ pageSize: t }), + 'current' in e.props || + e.setState({ current: n, currentInputValue: n })), + e.props.onShowSizeChange(n, t); + }), + (this.handleChange = function(t) { + var n = e.props.disabled, + r = t; + if (e.isValid(r) && !n) { + var o = a(void 0, e.state, e.props); + r > o ? (r = o) : r < 1 && (r = 1), + 'current' in e.props || + e.setState({ current: r, currentInputValue: r }); + var i = e.state.pageSize; + return e.props.onChange(r, i), r; + } + return e.state.current; + }), + (this.prev = function() { + e.hasPrev() && e.handleChange(e.state.current - 1); + }), + (this.next = function() { + e.hasNext() && e.handleChange(e.state.current + 1); + }), + (this.jumpPrev = function() { + e.handleChange(e.getJumpPrevPage()); + }), + (this.jumpNext = function() { + e.handleChange(e.getJumpNextPage()); + }), + (this.hasPrev = function() { + return e.state.current > 1; + }), + (this.hasNext = function() { + return e.state.current < a(void 0, e.state, e.props); + }), + (this.runIfEnter = function(e, t) { + for ( + var n = arguments.length, r = Array(n > 2 ? n - 2 : 0), o = 2; + o < n; + o++ + ) + r[o - 2] = arguments[o]; + ('Enter' !== e.key && 13 !== e.charCode) || t.apply(void 0, r); + }), + (this.runIfEnterPrev = function(t) { + e.runIfEnter(t, e.prev); + }), + (this.runIfEnterNext = function(t) { + e.runIfEnter(t, e.next); + }), + (this.runIfEnterJumpPrev = function(t) { + e.runIfEnter(t, e.jumpPrev); + }), + (this.runIfEnterJumpNext = function(t) { + e.runIfEnter(t, e.jumpNext); + }), + (this.handleGoTO = function(t) { + (t.keyCode !== C.a.ENTER && 'click' !== t.type) || + e.handleChange(e.state.currentInputValue); + }); + }; + n.i(j.a)(T), (t.a = T); + }, + function(e, t, n) { + 'use strict'; + t.a = { + items_per_page: '条/页', + jump_to: '跳至', + jump_to_confirm: '确定', + page: '页', + prev_page: '上一页', + next_page: '下一页', + prev_5: '向前 5 页', + next_5: '向后 5 页', + prev_3: '向前 3 页', + next_3: '向后 3 页', + }; + }, + function(e, t, n) { + e.exports = { default: n(63), __esModule: !0 }; + }, + function(e, t, n) { + e.exports = { default: n(64), __esModule: !0 }; + }, + function(e, t, n) { + e.exports = { default: n(66), __esModule: !0 }; + }, + function(e, t, n) { + e.exports = { default: n(67), __esModule: !0 }; + }, + function(e, t, n) { + e.exports = { default: n(68), __esModule: !0 }; + }, + function(e, t, n) { + 'use strict'; + t.__esModule = !0; + var r = n(57), + o = (function(e) { + return e && e.__esModule ? e : { default: e }; + })(r); + t.default = + o.default || + function(e) { + for (var t = 1; t < arguments.length; t++) { + var n = arguments[t]; + for (var r in n) + Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); + } + return e; + }; + }, + function(e, t, n) { + n(87), (e.exports = n(0).Object.assign); + }, + function(e, t, n) { + n(88); + var r = n(0).Object; + e.exports = function(e, t) { + return r.create(e, t); + }; + }, + function(e, t, n) { + n(89); + var r = n(0).Object; + e.exports = function(e, t, n) { + return r.defineProperty(e, t, n); + }; + }, + function(e, t, n) { + n(90), (e.exports = n(0).Object.setPrototypeOf); + }, + function(e, t, n) { + n(93), n(91), n(94), n(95), (e.exports = n(0).Symbol); + }, + function(e, t, n) { + n(92), n(96), (e.exports = n(29).f('iterator')); + }, + function(e, t) { + e.exports = function(e) { + if ('function' != typeof e) throw TypeError(e + ' is not a function!'); + return e; + }; + }, + function(e, t) { + e.exports = function() {}; + }, + function(e, t, n) { + var r = n(8), + o = n(85), + i = n(84); + e.exports = function(e) { + return function(t, n, a) { + var u, + s = r(t), + c = o(s.length), + l = i(a, c); + if (e && n != n) { + for (; c > l; ) if ((u = s[l++]) != u) return !0; + } else + for (; c > l; l++) + if ((e || l in s) && s[l] === n) return e || l || 0; + return !e && -1; + }; + }; + }, + function(e, t, n) { + var r = n(13), + o = n(21), + i = n(14); + e.exports = function(e) { + var t = r(e), + n = o.f; + if (n) + for (var a, u = n(e), s = i.f, c = 0; u.length > c; ) + s.call(e, (a = u[c++])) && t.push(a); + return t; + }; + }, + function(e, t, n) { + var r = n(2).document; + e.exports = r && r.documentElement; + }, + function(e, t, n) { + var r = n(41); + e.exports = + Array.isArray || + function(e) { + return 'Array' == r(e); + }; + }, + function(e, t, n) { + 'use strict'; + var r = n(20), + o = n(15), + i = n(22), + a = {}; + n(6)(a, n(9)('iterator'), function() { + return this; + }), + (e.exports = function(e, t, n) { + (e.prototype = r(a, { next: o(1, n) })), i(e, t + ' Iterator'); + }); + }, + function(e, t) { + e.exports = function(e, t) { + return { value: t, done: !!e }; + }; + }, + function(e, t, n) { + var r = n(16)('meta'), + o = n(7), + i = n(3), + a = n(4).f, + u = 0, + s = + Object.isExtensible || + function() { + return !0; + }, + c = !n(11)(function() { + return s(Object.preventExtensions({})); + }), + l = function(e) { + a(e, r, { value: { i: 'O' + ++u, w: {} } }); + }, + f = function(e, t) { + if (!o(e)) + return 'symbol' == typeof e + ? e + : ('string' == typeof e ? 'S' : 'P') + e; + if (!i(e, r)) { + if (!s(e)) return 'F'; + if (!t) return 'E'; + l(e); + } + return e[r].i; + }, + p = function(e, t) { + if (!i(e, r)) { + if (!s(e)) return !0; + if (!t) return !1; + l(e); + } + return e[r].w; + }, + h = function(e) { + return c && d.NEED && s(e) && !i(e, r) && l(e), e; + }, + d = (e.exports = { + KEY: r, + NEED: !1, + fastKey: f, + getWeak: p, + onFreeze: h, + }); + }, + function(e, t, n) { + 'use strict'; + var r = n(1), + o = n(13), + i = n(21), + a = n(14), + u = n(26), + s = n(45), + c = Object.assign; + e.exports = + !c || + n(11)(function() { + var e = {}, + t = {}, + n = Symbol(), + r = 'abcdefghijklmnopqrst'; + return ( + (e[n] = 7), + r.split('').forEach(function(e) { + t[e] = e; + }), + 7 != c({}, e)[n] || Object.keys(c({}, t)).join('') != r + ); + }) + ? function(e, t) { + for ( + var n = u(e), c = arguments.length, l = 1, f = i.f, p = a.f; + c > l; + + ) + for ( + var h, + d = s(arguments[l++]), + v = f ? o(d).concat(f(d)) : o(d), + m = v.length, + y = 0; + m > y; + + ) + (h = v[y++]), (r && !p.call(d, h)) || (n[h] = d[h]); + return n; + } + : c; + }, + function(e, t, n) { + var r = n(4), + o = n(10), + i = n(13); + e.exports = n(1) + ? Object.defineProperties + : function(e, t) { + o(e); + for (var n, a = i(t), u = a.length, s = 0; u > s; ) + r.f(e, (n = a[s++]), t[n]); + return e; + }; + }, + function(e, t, n) { + var r = n(8), + o = n(48).f, + i = {}.toString, + a = + 'object' == typeof window && window && Object.getOwnPropertyNames + ? Object.getOwnPropertyNames(window) + : [], + u = function(e) { + try { + return o(e); + } catch (e) { + return a.slice(); + } + }; + e.exports.f = function(e) { + return a && '[object Window]' == i.call(e) ? u(e) : o(r(e)); + }; + }, + function(e, t, n) { + var r = n(3), + o = n(26), + i = n(23)('IE_PROTO'), + a = Object.prototype; + e.exports = + Object.getPrototypeOf || + function(e) { + return ( + (e = o(e)), + r(e, i) + ? e[i] + : 'function' == typeof e.constructor && e instanceof e.constructor + ? e.constructor.prototype + : e instanceof Object + ? a + : null + ); + }; + }, + function(e, t, n) { + var r = n(7), + o = n(10), + i = function(e, t) { + if ((o(e), !r(t) && null !== t)) + throw TypeError(t + ": can't set as prototype!"); + }; + e.exports = { + set: + Object.setPrototypeOf || + ('__proto__' in {} + ? (function(e, t, r) { + try { + (r = n(42)( + Function.call, + n(47).f(Object.prototype, '__proto__').set, + 2, + )), + r(e, []), + (t = !(e instanceof Array)); + } catch (e) { + t = !0; + } + return function(e, n) { + return i(e, n), t ? (e.__proto__ = n) : r(e, n), e; + }; + })({}, !1) + : void 0), + check: i, + }; + }, + function(e, t, n) { + var r = n(25), + o = n(17); + e.exports = function(e) { + return function(t, n) { + var i, + a, + u = String(o(t)), + s = r(n), + c = u.length; + return s < 0 || s >= c + ? e + ? '' + : void 0 + : ((i = u.charCodeAt(s)), + i < 55296 || + i > 56319 || + s + 1 === c || + (a = u.charCodeAt(s + 1)) < 56320 || + a > 57343 + ? e + ? u.charAt(s) + : i + : e + ? u.slice(s, s + 2) + : a - 56320 + ((i - 55296) << 10) + 65536); + }; + }; + }, + function(e, t, n) { + var r = n(25), + o = Math.max, + i = Math.min; + e.exports = function(e, t) { + return (e = r(e)), e < 0 ? o(e + t, 0) : i(e, t); + }; + }, + function(e, t, n) { + var r = n(25), + o = Math.min; + e.exports = function(e) { + return e > 0 ? o(r(e), 9007199254740991) : 0; + }; + }, + function(e, t, n) { + 'use strict'; + var r = n(70), + o = n(76), + i = n(19), + a = n(8); + (e.exports = n(46)( + Array, + 'Array', + function(e, t) { + (this._t = a(e)), (this._i = 0), (this._k = t); + }, + function() { + var e = this._t, + t = this._k, + n = this._i++; + return !e || n >= e.length + ? ((this._t = void 0), o(1)) + : 'keys' == t + ? o(0, n) + : 'values' == t + ? o(0, e[n]) + : o(0, [n, e[n]]); + }, + 'values', + )), + (i.Arguments = i.Array), + r('keys'), + r('values'), + r('entries'); + }, + function(e, t, n) { + var r = n(5); + r(r.S + r.F, 'Object', { assign: n(78) }); + }, + function(e, t, n) { + var r = n(5); + r(r.S, 'Object', { create: n(20) }); + }, + function(e, t, n) { + var r = n(5); + r(r.S + r.F * !n(1), 'Object', { defineProperty: n(4).f }); + }, + function(e, t, n) { + var r = n(5); + r(r.S, 'Object', { setPrototypeOf: n(82).set }); + }, + function(e, t) {}, + function(e, t, n) { + 'use strict'; + var r = n(83)(!0); + n(46)( + String, + 'String', + function(e) { + (this._t = String(e)), (this._i = 0); + }, + function() { + var e, + t = this._t, + n = this._i; + return n >= t.length + ? { value: void 0, done: !0 } + : ((e = r(t, n)), (this._i += e.length), { value: e, done: !1 }); + }, + ); + }, + function(e, t, n) { + 'use strict'; + var r = n(2), + o = n(3), + i = n(1), + a = n(5), + u = n(50), + s = n(77).KEY, + c = n(11), + l = n(24), + f = n(22), + p = n(16), + h = n(9), + d = n(29), + v = n(28), + m = n(72), + y = n(74), + g = n(10), + b = n(7), + x = n(26), + _ = n(8), + S = n(27), + P = n(15), + O = n(20), + w = n(80), + E = n(47), + C = n(21), + N = n(4), + j = n(13), + T = E.f, + I = N.f, + k = w.f, + M = r.Symbol, + R = r.JSON, + z = R && R.stringify, + A = h('_hidden'), + L = h('toPrimitive'), + D = {}.propertyIsEnumerable, + U = l('symbol-registry'), + W = l('symbols'), + F = l('op-symbols'), + V = Object.prototype, + K = 'function' == typeof M && !!C.f, + J = r.QObject, + G = !J || !J.prototype || !J.prototype.findChild, + B = + i && + c(function() { + return ( + 7 != + O( + I({}, 'a', { + get: function() { + return I(this, 'a', { value: 7 }).a; + }, + }), + ).a + ); + }) + ? function(e, t, n) { + var r = T(V, t); + r && delete V[t], I(e, t, n), r && e !== V && I(V, t, r); + } + : I, + q = function(e) { + var t = (W[e] = O(M.prototype)); + return (t._k = e), t; + }, + Q = + K && 'symbol' == typeof M.iterator + ? function(e) { + return 'symbol' == typeof e; + } + : function(e) { + return e instanceof M; + }, + H = function(e, t, n) { + return ( + e === V && H(F, t, n), + g(e), + (t = S(t, !0)), + g(n), + o(W, t) + ? (n.enumerable + ? (o(e, A) && e[A][t] && (e[A][t] = !1), + (n = O(n, { enumerable: P(0, !1) }))) + : (o(e, A) || I(e, A, P(1, {})), (e[A][t] = !0)), + B(e, t, n)) + : I(e, t, n) + ); + }, + Y = function(e, t) { + g(e); + for (var n, r = m((t = _(t))), o = 0, i = r.length; i > o; ) + H(e, (n = r[o++]), t[n]); + return e; + }, + Z = function(e, t) { + return void 0 === t ? O(e) : Y(O(e), t); + }, + X = function(e) { + var t = D.call(this, (e = S(e, !0))); + return ( + !(this === V && o(W, e) && !o(F, e)) && + (!(t || !o(this, e) || !o(W, e) || (o(this, A) && this[A][e])) || t) + ); + }, + $ = function(e, t) { + if (((e = _(e)), (t = S(t, !0)), e !== V || !o(W, t) || o(F, t))) { + var n = T(e, t); + return ( + !n || !o(W, t) || (o(e, A) && e[A][t]) || (n.enumerable = !0), n + ); + } + }, + ee = function(e) { + for (var t, n = k(_(e)), r = [], i = 0; n.length > i; ) + o(W, (t = n[i++])) || t == A || t == s || r.push(t); + return r; + }, + te = function(e) { + for ( + var t, n = e === V, r = k(n ? F : _(e)), i = [], a = 0; + r.length > a; + + ) + !o(W, (t = r[a++])) || (n && !o(V, t)) || i.push(W[t]); + return i; + }; + K || + ((M = function() { + if (this instanceof M) + throw TypeError('Symbol is not a constructor!'); + var e = p(arguments.length > 0 ? arguments[0] : void 0), + t = function(n) { + this === V && t.call(F, n), + o(this, A) && o(this[A], e) && (this[A][e] = !1), + B(this, e, P(1, n)); + }; + return i && G && B(V, e, { configurable: !0, set: t }), q(e); + }), + u(M.prototype, 'toString', function() { + return this._k; + }), + (E.f = $), + (N.f = H), + (n(48).f = w.f = ee), + (n(14).f = X), + (C.f = te), + i && !n(12) && u(V, 'propertyIsEnumerable', X, !0), + (d.f = function(e) { + return q(h(e)); + })), + a(a.G + a.W + a.F * !K, { Symbol: M }); + for ( + var ne = 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'.split( + ',', + ), + re = 0; + ne.length > re; + + ) + h(ne[re++]); + for (var oe = j(h.store), ie = 0; oe.length > ie; ) v(oe[ie++]); + a(a.S + a.F * !K, 'Symbol', { + for: function(e) { + return o(U, (e += '')) ? U[e] : (U[e] = M(e)); + }, + keyFor: function(e) { + if (!Q(e)) throw TypeError(e + ' is not a symbol!'); + for (var t in U) if (U[t] === e) return t; + }, + useSetter: function() { + G = !0; + }, + useSimple: function() { + G = !1; + }, + }), + a(a.S + a.F * !K, 'Object', { + create: Z, + defineProperty: H, + defineProperties: Y, + getOwnPropertyDescriptor: $, + getOwnPropertyNames: ee, + getOwnPropertySymbols: te, + }); + var ae = c(function() { + C.f(1); + }); + a(a.S + a.F * ae, 'Object', { + getOwnPropertySymbols: function(e) { + return C.f(x(e)); + }, + }), + R && + a( + a.S + + a.F * + (!K || + c(function() { + var e = M(); + return ( + '[null]' != z([e]) || + '{}' != z({ a: e }) || + '{}' != z(Object(e)) + ); + })), + 'JSON', + { + stringify: function(e) { + for (var t, n, r = [e], o = 1; arguments.length > o; ) + r.push(arguments[o++]); + if (((n = t = r[1]), (b(t) || void 0 !== e) && !Q(e))) + return ( + y(t) || + (t = function(e, t) { + if ( + ('function' == typeof n && (t = n.call(this, e, t)), + !Q(t)) + ) + return t; + }), + (r[1] = t), + z.apply(R, r) + ); + }, + }, + ), + M.prototype[L] || n(6)(M.prototype, L, M.prototype.valueOf), + f(M, 'Symbol'), + f(Math, 'Math', !0), + f(r.JSON, 'JSON', !0); + }, + function(e, t, n) { + n(28)('asyncIterator'); + }, + function(e, t, n) { + n(28)('observable'); + }, + function(e, t, n) { + n(86); + for ( + var r = n(2), + o = n(6), + i = n(19), + a = n(9)('toStringTag'), + u = 'CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList'.split( + ',', + ), + s = 0; + s < u.length; + s++ + ) { + var c = u[s], + l = r[c], + f = l && l.prototype; + f && !f[a] && o(f, a, c), (i[c] = i.Array); + } + }, + function(e, t, n) { + 'use strict'; + function r() {} + function o() {} + var i = n(98); + (o.resetWarningCache = r), + (e.exports = function() { + function e(e, t, n, r, o, a) { + if (a !== i) { + var u = new Error( + 'Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types', + ); + throw ((u.name = 'Invariant Violation'), u); + } + } + function t() { + return e; + } + e.isRequired = e; + var n = { + array: e, + bool: e, + func: e, + number: e, + object: e, + string: e, + symbol: e, + any: e, + arrayOf: t, + element: e, + elementType: e, + instanceOf: t, + node: e, + objectOf: t, + oneOf: t, + oneOfType: t, + shape: t, + exact: t, + checkPropTypes: o, + resetWarningCache: r, + }; + return (n.PropTypes = n), n; + }); + }, + function(e, t, n) { + 'use strict'; + e.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + }, + function(e, t, n) { + 'use strict'; + function r() { + var e = this.constructor.getDerivedStateFromProps( + this.props, + this.state, + ); + null !== e && void 0 !== e && this.setState(e); + } + function o(e) { + function t(t) { + var n = this.constructor.getDerivedStateFromProps(e, t); + return null !== n && void 0 !== n ? n : null; + } + this.setState(t.bind(this)); + } + function i(e, t) { + try { + var n = this.props, + r = this.state; + (this.props = e), + (this.state = t), + (this.__reactInternalSnapshotFlag = !0), + (this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(n, r)); + } finally { + (this.props = n), (this.state = r); + } + } + function a(e) { + var t = e.prototype; + if (!t || !t.isReactComponent) + throw new Error('Can only polyfill class components'); + if ( + 'function' != typeof e.getDerivedStateFromProps && + 'function' != typeof t.getSnapshotBeforeUpdate + ) + return e; + var n = null, + a = null, + u = null; + if ( + ('function' == typeof t.componentWillMount + ? (n = 'componentWillMount') + : 'function' == typeof t.UNSAFE_componentWillMount && + (n = 'UNSAFE_componentWillMount'), + 'function' == typeof t.componentWillReceiveProps + ? (a = 'componentWillReceiveProps') + : 'function' == typeof t.UNSAFE_componentWillReceiveProps && + (a = 'UNSAFE_componentWillReceiveProps'), + 'function' == typeof t.componentWillUpdate + ? (u = 'componentWillUpdate') + : 'function' == typeof t.UNSAFE_componentWillUpdate && + (u = 'UNSAFE_componentWillUpdate'), + null !== n || null !== a || null !== u) + ) { + var s = e.displayName || e.name, + c = + 'function' == typeof e.getDerivedStateFromProps + ? 'getDerivedStateFromProps()' + : 'getSnapshotBeforeUpdate()'; + throw Error( + 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + + s + + ' uses ' + + c + + ' but also contains the following legacy lifecycles:' + + (null !== n ? '\n ' + n : '') + + (null !== a ? '\n ' + a : '') + + (null !== u ? '\n ' + u : '') + + '\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks', + ); + } + if ( + ('function' == typeof e.getDerivedStateFromProps && + ((t.componentWillMount = r), (t.componentWillReceiveProps = o)), + 'function' == typeof t.getSnapshotBeforeUpdate) + ) { + if ('function' != typeof t.componentDidUpdate) + throw new Error( + 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype', + ); + t.componentWillUpdate = i; + var l = t.componentDidUpdate; + t.componentDidUpdate = function(e, t, n) { + var r = this.__reactInternalSnapshotFlag + ? this.__reactInternalSnapshot + : n; + l.call(this, e, t, r); + }; + } + return e; + } + n.d(t, 'a', function() { + return a; + }), + (r.__suppressDeprecationWarning = !0), + (o.__suppressDeprecationWarning = !0), + (i.__suppressDeprecationWarning = !0); + }, + function(e, t, n) { + n(51), (e.exports = n(52)); + }, + ]); +}); diff --git a/examples/default.html b/examples/default.html deleted file mode 100644 index 48cdce85..00000000 --- a/examples/default.html +++ /dev/null @@ -1 +0,0 @@ -placeholder diff --git a/examples/default.js b/examples/default.js index 88e42be4..353e9423 100644 --- a/examples/default.js +++ b/examples/default.js @@ -1,22 +1,26 @@ /* eslint func-names: 0, no-console: 0 */ import React from 'react'; -import ReactDOM from 'react-dom'; import Pagination from 'rc-pagination'; -import 'rc-pagination/assets/index.less'; +import '../assets/index.less'; +import 'rc-select/assets/index.less'; -class App extends React.Component { +export default class App extends React.Component { state = { current: 3, }; - onChange = (page) => { + onChange = page => { console.log(page); this.setState({ current: page, }); - } + }; render() { - return ; + return ( + + ); } } - -ReactDOM.render(, document.getElementById('__react-content')); diff --git a/examples/itemRender.html b/examples/itemRender.html deleted file mode 100644 index 48cdce85..00000000 --- a/examples/itemRender.html +++ /dev/null @@ -1 +0,0 @@ -placeholder diff --git a/examples/itemRender.js b/examples/itemRender.js index 66a5ac66..344eef00 100644 --- a/examples/itemRender.js +++ b/examples/itemRender.js @@ -1,7 +1,6 @@ -import 'rc-pagination/assets/index.less'; +import '../assets/index.less'; import Pagination from 'rc-pagination'; import React from 'react'; -import ReactDOM from 'react-dom'; const itemRender = (current, type, element) => { if (type === 'page') { @@ -22,10 +21,10 @@ const textItemRender = (current, type, element) => { const buttonItemRender = (current, type, element) => { if (type === 'prev') { - return ; + return ; } if (type === 'next') { - return ; + return ; } return element; }; @@ -40,11 +39,13 @@ const divItemRender = (current, type, element) => { return element; }; -ReactDOM.render( -
    +const App = () => ( + <> -
    -, document.getElementById('__react-content')); + +); + +export default App; diff --git a/examples/jumper.html b/examples/jumper.html deleted file mode 100644 index 48cdce85..00000000 --- a/examples/jumper.html +++ /dev/null @@ -1 +0,0 @@ -placeholder diff --git a/examples/jumper.js b/examples/jumper.js index b8eeafad..ffbc4953 100644 --- a/examples/jumper.js +++ b/examples/jumper.js @@ -1,10 +1,9 @@ /* eslint func-names: 0, no-console: 0 */ import React from 'react'; -import ReactDOM from 'react-dom'; import Select from 'rc-select'; import Pagination from 'rc-pagination'; -import 'rc-pagination/assets/index.less'; -import 'rc-select/assets/index.css'; +import '../assets/index.less'; +import 'rc-select/assets/index.less'; function onShowSizeChange(current, pageSize) { console.log(current); @@ -16,8 +15,8 @@ function onChange(current, pageSize) { console.log('onChange:pageSize=', pageSize); } -ReactDOM.render( -
    +const App = () => ( + <> -
    -, document.getElementById('__react-content')); + +); + +export default App; diff --git a/examples/jumperWithGoButton.html b/examples/jumperWithGoButton.html deleted file mode 100644 index 48cdce85..00000000 --- a/examples/jumperWithGoButton.html +++ /dev/null @@ -1 +0,0 @@ -placeholder diff --git a/examples/jumperWithGoButton.js b/examples/jumperWithGoButton.js index 6ba5d685..0c581925 100644 --- a/examples/jumperWithGoButton.js +++ b/examples/jumperWithGoButton.js @@ -1,31 +1,29 @@ /* eslint func-names: 0, no-console: 0 */ import React from 'react'; -import ReactDOM from 'react-dom'; import Select from 'rc-select'; import Pagination from 'rc-pagination'; -import 'rc-pagination/assets/index.less'; -import 'rc-select/assets/index.css'; +import '../assets/index.less'; +import 'rc-select/assets/index.less'; class App extends React.Component { - onShowSizeChange = (current, pageSize) => { console.log(current); console.log(pageSize); - } + }; onChange = (current, pageSize) => { console.log('onChange:current=', current); console.log('onChange:pageSize=', pageSize); - } + }; render() { return ( -
    + <>

    customize node

    确定 }} + showQuickJumper={{ goButton: }} defaultPageSize={20} defaultCurrent={5} onShowSizeChange={this.onShowSizeChange} @@ -33,10 +31,15 @@ class App extends React.Component { total={450} />

    default node

    - -
    + + ); } } -ReactDOM.render(, document.getElementById('__react-content')); +export default App; diff --git a/examples/lessPages.html b/examples/lessPages.html deleted file mode 100644 index b3a42524..00000000 --- a/examples/lessPages.html +++ /dev/null @@ -1 +0,0 @@ -placeholder \ No newline at end of file diff --git a/examples/lessPages.js b/examples/lessPages.js index d69d3816..c20f9309 100644 --- a/examples/lessPages.js +++ b/examples/lessPages.js @@ -1,36 +1,36 @@ /* eslint func-names: 0, no-console: 0 */ import React from 'react'; -import ReactDOM from 'react-dom'; import Pagination from 'rc-pagination'; -import 'rc-pagination/assets/index.less'; +import '../assets/index.less'; -const arrowPath = 'M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h' + +const arrowPath = + 'M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h' + '-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v' + '60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91' + '.5c1.9 0 3.8-0.7 5.2-2L869 536.2c14.7-12.8 14.7-35.6 0-48.4z'; const doublePath = [ 'M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6' + - '.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1c-4.1 5.2-0' + - '.4 12.9 6.3 12.9h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.' + - '1c9.1-11.7 9.1-27.9 0-39.5z', + '.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1c-4.1 5.2-0' + + '.4 12.9 6.3 12.9h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.' + + '1c9.1-11.7 9.1-27.9 0-39.5z', 'M837.2 492.3L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6' + - '.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1c-4.1 5.2-0' + - '.4 12.9 6.3 12.9h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.' + - '1c9.1-11.7 9.1-27.9 0-39.5z', + '.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1c-4.1 5.2-0' + + '.4 12.9 6.3 12.9h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.' + + '1c9.1-11.7 9.1-27.9 0-39.5z', ]; const getSvgIcon = (path, reverse, type) => { const paths = Array.isArray(path) ? path : [path]; const renderPaths = paths.map((p, i) => { - return ( - - ); + return ; }); return ( - { fill="currentColor" style={{ verticalAlign: '-.125em', - transform: `rotate(${reverse && 180 || 0}deg)`, + transform: `rotate(${(reverse && 180) || 0}deg)`, }} > {renderPaths} @@ -58,24 +58,26 @@ class App extends React.Component { current: 3, useIcon: true, }; - onChange = (page) => { + onChange = page => { console.log(page); this.setState({ current: page, }); - } + }; toggleCustomIcon = () => { this.setState({ useIcon: !this.state.useIcon, }); - } + }; render() { - const iconsProps = this.state.useIcon && { - prevIcon, - nextIcon, - jumpPrevIcon, - jumpNextIcon, - } || {}; + const iconsProps = + (this.state.useIcon && { + prevIcon, + nextIcon, + jumpPrevIcon, + jumpNextIcon, + }) || + {}; return (
    - + - Is using icon: {this.state.useIcon && 'true' || 'false'} + Is using icon: {(this.state.useIcon && 'true') || 'false'}
    @@ -105,4 +105,4 @@ class App extends React.Component { } } -ReactDOM.render(, document.getElementById('__react-content')); +export default App; diff --git a/examples/locale.html b/examples/locale.html deleted file mode 100644 index b3a42524..00000000 --- a/examples/locale.html +++ /dev/null @@ -1 +0,0 @@ -placeholder \ No newline at end of file diff --git a/examples/locale.js b/examples/locale.js index 1c5e3776..287a5a01 100644 --- a/examples/locale.js +++ b/examples/locale.js @@ -3,9 +3,9 @@ import React from 'react'; import ReactDOM from 'react-dom'; import Select from 'rc-select'; import Pagination from 'rc-pagination'; -import localeInfo from 'rc-pagination/lib/locale/en_US'; -import 'rc-pagination/assets/index.less'; -import 'rc-select/assets/index.css'; +import localeInfo from '../src/locale/en_US'; +import '../assets/index.less'; +import 'rc-select/assets/index.less'; function onShowSizeChange(current, pageSize) { console.log(current); @@ -17,7 +17,7 @@ function onChange(current, pageSize) { console.log('onChange:pageSize=', pageSize); } -ReactDOM.render( +const App = () => ( -, document.getElementById('__react-content')); +); + +export default App; diff --git a/examples/more.html b/examples/more.html deleted file mode 100644 index 48cdce85..00000000 --- a/examples/more.html +++ /dev/null @@ -1 +0,0 @@ -placeholder diff --git a/examples/more.js b/examples/more.js index 6ce13877..65ad1789 100644 --- a/examples/more.js +++ b/examples/more.js @@ -1,9 +1,9 @@ -import 'rc-pagination/assets/index.less'; +import '../assets/index.less'; import Pagination from 'rc-pagination'; import React from 'react'; -import ReactDOM from 'react-dom'; -ReactDOM.render( - , - document.getElementById('__react-content') +const App = () => ( + ); + +export default App; diff --git a/examples/showTitle.html b/examples/showTitle.html deleted file mode 100644 index 48cdce85..00000000 --- a/examples/showTitle.html +++ /dev/null @@ -1 +0,0 @@ -placeholder diff --git a/examples/showTitle.js b/examples/showTitle.js index 8265d97a..444b5c81 100644 --- a/examples/showTitle.js +++ b/examples/showTitle.js @@ -1,19 +1,18 @@ /* eslint func-names: 0, no-console: 0 */ import React from 'react'; -import ReactDOM from 'react-dom'; import Pagination from 'rc-pagination'; -import 'rc-pagination/assets/index.less'; +import '../assets/index.less'; class App extends React.Component { state = { current: 3, }; - onChange = (page) => { + onChange = page => { console.log(page); this.setState({ current: page, }); - } + }; render() { return (
    @@ -24,10 +23,15 @@ class App extends React.Component { showLessItems showTitle={false} /> - +
    ); } } -ReactDOM.render(, document.getElementById('__react-content')); +export default App; diff --git a/examples/showTotal.html b/examples/showTotal.html deleted file mode 100644 index 48cdce85..00000000 --- a/examples/showTotal.html +++ /dev/null @@ -1 +0,0 @@ -placeholder diff --git a/examples/showTotal.js b/examples/showTotal.js index 24cb017d..e406b0b2 100644 --- a/examples/showTotal.js +++ b/examples/showTotal.js @@ -2,23 +2,26 @@ import React from 'react'; import ReactDOM from 'react-dom'; import Pagination from 'rc-pagination'; -import 'rc-pagination/assets/index.less'; +import '../assets/index.less'; -ReactDOM.render( -
    - `Total ${total} items`} - total={455} - /> -
    - `${range[0]} - ${range[1]} of ${total} items`} - total={455} - /> -
    - `${range[0]} - ${range[1]} of ${total} items`} - total={0} - /> -
    -, document.getElementById('__react-content')); +const App = () => ( + <> + `Total ${total} items`} total={455} /> +
    + + `${range[0]} - ${range[1]} of ${total} items` + } + total={455} + /> +
    + + `${range[0]} - ${range[1]} of ${total} items` + } + total={0} + /> + +); + +export default App; diff --git a/examples/simple.html b/examples/simple.html deleted file mode 100644 index b3a42524..00000000 --- a/examples/simple.html +++ /dev/null @@ -1 +0,0 @@ -placeholder \ No newline at end of file diff --git a/examples/simple.js b/examples/simple.js index fb52c558..b550ba40 100644 --- a/examples/simple.js +++ b/examples/simple.js @@ -1,11 +1,9 @@ // use jsx to render html, do not modify simple.html -import 'rc-pagination/assets/index.less'; +import '../assets/index.less'; import Pagination from 'rc-pagination'; import React from 'react'; -import ReactDOM from 'react-dom'; -ReactDOM.render( - , - document.getElementById('__react-content') -); +const App = () => ; + +export default App; diff --git a/examples/sizer.html b/examples/sizer.html deleted file mode 100644 index b3a42524..00000000 --- a/examples/sizer.html +++ /dev/null @@ -1 +0,0 @@ -placeholder \ No newline at end of file diff --git a/examples/sizer.js b/examples/sizer.js index f20f7e10..bf9bcbf7 100644 --- a/examples/sizer.js +++ b/examples/sizer.js @@ -1,19 +1,18 @@ /* eslint func-names: 0, no-console: 0 */ import React from 'react'; -import ReactDOM from 'react-dom'; import Select from 'rc-select'; import Pagination from 'rc-pagination'; -import 'rc-pagination/assets/index.less'; -import 'rc-select/assets/index.css'; +import '../assets/index.less'; +import 'rc-select/assets/index.less'; -class Hello extends React.Component { +class App extends React.Component { state = { pageSize: 20, }; onShowSizeChange = (current, pageSize) => { console.log(current); this.setState({ pageSize }); - } + }; render() { return (
    @@ -38,4 +37,4 @@ class Hello extends React.Component { } } -ReactDOM.render(, document.getElementById('__react-content')); +export default App; diff --git a/examples/stupid.html b/examples/stupid.html deleted file mode 100644 index 48cdce85..00000000 --- a/examples/stupid.html +++ /dev/null @@ -1 +0,0 @@ -placeholder diff --git a/examples/stupid.js b/examples/stupid.js index cbec4a9b..b5f66021 100644 --- a/examples/stupid.js +++ b/examples/stupid.js @@ -3,9 +3,6 @@ import Pagination from 'rc-pagination'; import React from 'react'; import ReactDOM from 'react-dom'; -import 'rc-pagination/assets/index.less'; +import '../assets/index.less'; -ReactDOM.render( - , - document.getElementById('__react-content') -); +export default () => ; diff --git a/examples/styles.html b/examples/styles.html deleted file mode 100644 index b3a42524..00000000 --- a/examples/styles.html +++ /dev/null @@ -1 +0,0 @@ -placeholder \ No newline at end of file diff --git a/examples/styles.js b/examples/styles.js index 5f264430..bed7ca74 100644 --- a/examples/styles.js +++ b/examples/styles.js @@ -1,9 +1,7 @@ -import 'rc-pagination/assets/index.less'; +import '../assets/index.less'; import Pagination from 'rc-pagination'; import React from 'react'; -import ReactDOM from 'react-dom'; -ReactDOM.render( - , - document.getElementById('__react-content') +export default () => ( + ); diff --git a/index.js b/index.js index 9f594e65..fd4d7e5c 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -export { default } from './src/'; +module.exports = require('./src/'); diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 00000000..66a2c875 --- /dev/null +++ b/jest.config.js @@ -0,0 +1,3 @@ +module.exports = { + snapshotSerializers: [require.resolve('enzyme-to-json/serializer')], +}; diff --git a/package.json b/package.json index 34f65f83..d70c8bfe 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,20 @@ "react", "react-component", "react-pagination", - "pagination" + "pagination", + "antd", + "pager" ], - "homepage": "http://github.com/react-component/pagination", - "author": "i@xiaoba.me", + "main": "./lib/index", + "module": "./es/index", + "files": [ + "assets/*.css", + "assets/*.less", + "es", + "lib", + "dist" + ], + "homepage": "https://react-component.github.io/pagination", "repository": { "type": "git", "url": "git@github.com:react-component/pagination.git" @@ -18,56 +28,56 @@ "url": "http://github.com/react-component/pagination/issues" }, "license": "MIT", - "files": [ - "dist", - "lib", - "es", - "assets/*.css", - "rc-pagination.d.ts" - ], - "main": "lib/index", - "module": "es/index", - "types": "rc-pagination.d.ts", - "config": { - "port": 3000, - "entry": { - "rc-pagination": [ - "./src/index.js", - "./assets/index.less" - ] - } - }, "scripts": { - "dist": "rc-tools run dist", - "build": "rc-tools run build", - "compile": "rc-tools run compile --babel-runtime", - "gh-pages": "rc-tools run gh-pages", - "start": "rc-tools run server", - "pub": "rc-tools run pub --babel-runtime", - "lint": "rc-tools run lint", - "lint:fix": "rc-tools run lint --fix", - "karma": "rc-test run karma", - "saucelabs": "rc-test run saucelabs", - "test": "rc-test run test", - "chrome-test": "rc-test run chrome-test", - "coverage": "rc-test run coverage", - "now-build": "npm run build" + "start": "cross-env NODE_ENV=development father doc dev --storybook", + "build": "father doc build --storybook", + "compile": "father build && lessc assets/index.less assets/index.css", + "gh-pages": "npm run build && father doc deploy", + "prepublishOnly": "npm run compile && np --yolo --no-publish && npm run gh-pages", + "lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md", + "prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"", + "pretty-quick": "pretty-quick", + "test": "father test", + "coverage": "father test --coverage" + }, + "dependencies": { + "classnames": "^2.2.1" }, "devDependencies": { - "core-js": "^3.1.4", - "expect.js": "0.3.x", - "pre-commit": "1.x", - "rc-select": "9.x", - "rc-test": "^6.0.1", - "rc-tools": "6.x", - "react": "^16.5.2", - "react-dom": "^16.5.2" + "@types/classnames": "^2.2.9", + "@types/react": "^16.9.2", + "@types/react-dom": "^16.9.0", + "@umijs/fabric": "^1.1.10", + "coveralls": "^3.0.6", + "cross-env": "^6.0.0", + "enzyme": "^3.0.0", + "enzyme-adapter-react-16": "^1.0.1", + "enzyme-to-json": "^3.4.0", + "eslint": "^6.6.0", + "father": "^2.13.4", + "husky": "^3.0.9", + "less": "^3.10.3", + "np": "^5.1.0", + "prettier": "^1.18.2", + "pretty-quick": "^2.0.1", + "react": "^16.0.0", + "react-dom": "^16.0.0", + "react-test-renderer": "^16.0.0", + "rc-select": "^10.0.1" }, - "pre-commit": [ - "lint" - ], - "dependencies": { - "babel-runtime": "6.x", - "classnames": "^2.2.6" + "peerDependencies": { + "react": "^16.0.0", + "react-dom": "^16.0.0" + }, + "husky": { + "hooks": { + "pre-commit": "pretty-quick --staged" + } + }, + "cnpm": { + "mode": "npm" + }, + "tnpm": { + "mode": "npm" } } diff --git a/tests/helper/two-pagination.jsx b/tests/helper/two-pagination.jsx index a95140aa..0f8d4695 100644 --- a/tests/helper/two-pagination.jsx +++ b/tests/helper/two-pagination.jsx @@ -1,4 +1,4 @@ -import 'rc-select/assets/index.css'; +import 'rc-select/assets/index.less'; import Pagination from '../../src'; import React from 'react'; import Select from 'rc-select'; @@ -11,7 +11,7 @@ class Hello extends React.Component { this.setState({ pageSize: 50, }); - } + }; render() { return (
    diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..2f0b5855 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "esnext", + "module": "commonjs", + "lib": ["dom", "es2017"], + "jsx": "react", + "strict": true, + "esModuleInterop": true, + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "skipLibCheck": true, + "declaration": true + } +} From a18df2a6ebb6656f155f0c6efc8dd1c6d030414f Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 27 Feb 2020 16:02:22 +0800 Subject: [PATCH 02/17] prettier code and auto fix eslint --- HISTORY.md | 133 ++++++------- README.md | 58 +++--- dist/rc-pagination.js | 4 +- now.json | 2 +- rc-pagination.d.ts | 8 +- src/Options.jsx | 74 ++++---- src/Pager.jsx | 2 +- src/Pagination.jsx | 191 ++++++++++--------- src/locale/nl_BE.js | 8 +- src/locale/nl_NL.js | 8 +- tests/Pagination.spec.js | 392 ++++++++++++++++++++++----------------- 11 files changed, 459 insertions(+), 421 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 39e4ba44..d69314b2 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,128 +1,103 @@ -2.0.0 -================== +# 2.0.0 -* Remove prop-types and react-lifecycles-compat +- Remove prop-types and react-lifecycles-compat -1.20.0 -================== + # 1.20.0 -* Add locale `ms_MY` +- Add locale `ms_MY` -1.19.0 -================== + # 1.19.0 -* Support Latvian localization +- Support Latvian localization -1.18.0 -================== + # 1.18.0 -* Support `disabled` +- Support `disabled` -1.17.0 -================== + # 1.17.0 -* Add `prevIcon`, `nextIcon`, `jumpPrevIcon`, `jumpNextIcon`. +- Add `prevIcon`, `nextIcon`, `jumpPrevIcon`, `jumpNextIcon`. -1.16.1 -================== + # 1.16.1 -* Add locale `sl_SI`. #130 +- Add locale `sl_SI`. #130 -1.16.0 -================== + # 1.16.0 -* Add locale `id_ID` -* Add prop `showPrevNextJumpers` +- Add locale `id_ID` +- Add prop `showPrevNextJumpers` -1.15.2 -================== + # 1.15.2 -* Add locale `tr_TR`. +- Add locale `tr_TR`. -1.12.0 -================== + # 1.12.0 -* `itemRender(current, type)` => `itemRender(current, type, element): element`. +- `itemRender(current, type)` => `itemRender(current, type, element): element`. -1.11.0 -================== + # 1.11.0 -* Add `goButton`. +- Add `goButton`. -1.10.0 -================== + # 1.10.0 -* Add `itemRender`. +- Add `itemRender`. -1.9.0 -================== + # 1.9.0 -* Add keyboard support -* Add es folder. +- Add keyboard support +- Add es folder. -1.8.0 -================== + # 1.8.0 -* Add locale `zh_TW`. -* Add `showTitle`. +- Add locale `zh_TW`. +- Add `showTitle`. -1.7.5 -================== + # 1.7.5 -* Add locale `sk_SK(Slovak)`. +- Add locale `sk_SK(Slovak)`. -1.7.4 -================== + # 1.7.4 -* Add locale `et_EE(Estonian)`. +- Add locale `et_EE(Estonian)`. -1.7.3 -================== + # 1.7.3 -* Add locale `Czech`. +- Add locale `Czech`. -1.7.2 -================== + # 1.7.2 -* Add locale `ko_KR(Korean)`. +- Add locale `ko_KR(Korean)`. -1.7.1 -================== + # 1.7.1 -* Add locale `ca_ES (Catalan)`. +- Add locale `ca_ES (Catalan)`. -1.7.0 -================== + # 1.7.0 -* support `showLessItems`. #55 -* Add `pageSize` as onChange's second argument. +- support `showLessItems`. #55 +- Add `pageSize` as onChange's second argument. -1.6.0 -================== + # 1.6.0 -* Add `range` as showTotal's second argument. +- Add `range` as showTotal's second argument. -1.5.5 / 2016-09-01 -================== + # 1.5.5 / 2016-09-01 -* Fix #34 +- Fix #34 -1.5.4 / 2016-07-31 -================== + # 1.5.4 / 2016-07-31 -* Add space before per page #33 +- Add space before per page #33 -1.5.0 / 2016-03-02 -================== + # 1.5.0 / 2016-03-02 -* Add `defaultPageSize` and fix `pageSize` to a controlled prop +- Add `defaultPageSize` and fix `pageSize` to a controlled prop -1.3.0 / 2015-11-25 -================== + # 1.3.0 / 2015-11-25 -* Add `defaultCurrent` prop +- Add `defaultCurrent` prop -1.2.0 -================== + # 1.2.0 -* Allow specifying the page size for **sizeChanger** +- Allow specifying the page size for **sizeChanger** diff --git a/README.md b/README.md index 33765858..8baff20f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # rc-pagination + --- React Pagination Component. @@ -34,7 +35,7 @@ online example: http://react-component.github.io/pagination/examples/ ## Feature -* support ie9,ie9+,chrome,firefox,safari +- support ie9,ie9+,chrome,firefox,safari ## Install @@ -50,34 +51,33 @@ React.render(, container); ## API -| Parameter | Description | Type | Default | -|------------------|------------------------------------|---------------|--------------------------| -| disabled | disable pagination | Bool | - | -| defaultCurrent | uncontrolled current page | Number | 1 | -| current | current page | Number | undefined | -| total | items total count | Number | 0 | -| defaultPageSize | default items per page | Number | 10 | -| pageSize | items per page | Number | 10 | -| onChange | page change callback | Function(current, pageSize) | - | -| showSizeChanger | show pageSize changer | Bool | false | -| pageSizeOptions | specify the sizeChanger selections | Array | ['10', '20', '30', '40'] | -| onShowSizeChange | pageSize change callback | Function(current, size) | - | -| hideOnSinglePage | hide on single page | Bool | false | -| showPrevNextJumpers | show jump-prev, jump-next | Bool | true | -| showQuickJumper | show quick goto jumper | Bool / Object | false / {goButton: true} | -| showTotal | show total records and range | Function(total, [from, to]) | - | -| className | className of pagination | String | - | -| simple | when set, show simple pager | Object | null | -| locale | to set l10n config | Object | [zh_CN](https://github.com/react-component/pagination/blob/master/src/locale/zh_CN.js) | -| style | the style of pagination | Object | {} | -| showLessItems | show less page items | Bool | false | -| showTitle | show page items title | Bool | true | -| itemRender | custom page item renderer | Function(current, type: 'page' | 'prev' | 'next' | 'jump-prev' | 'jump-next', element): React.ReactNode| `(current, type, element) => element` | -| prevIcon | specifict the default previous icon | ReactNode \| (props: PaginationProps) => ReactNode | | -| nextIcon | specifict the default previous icon | ReactNode \| (props: PaginationProps) => ReactNode | | -| jumpPrevIcon | specifict the default previous icon | ReactNode \| (props: PaginationProps) => ReactNode | | -| jumpNextIcon | specifict the default previous icon | ReactNode \| (props: PaginationProps) => ReactNode | | - +| Parameter | Description | Type | Default | +| ------------------- | ----------------------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------- | +| disabled | disable pagination | Bool | - | +| defaultCurrent | uncontrolled current page | Number | 1 | +| current | current page | Number | undefined | +| total | items total count | Number | 0 | +| defaultPageSize | default items per page | Number | 10 | +| pageSize | items per page | Number | 10 | +| onChange | page change callback | Function(current, pageSize) | - | +| showSizeChanger | show pageSize changer | Bool | false | +| pageSizeOptions | specify the sizeChanger selections | Array | ['10', '20', '30', '40'] | +| onShowSizeChange | pageSize change callback | Function(current, size) | - | +| hideOnSinglePage | hide on single page | Bool | false | +| showPrevNextJumpers | show jump-prev, jump-next | Bool | true | +| showQuickJumper | show quick goto jumper | Bool / Object | false / {goButton: true} | +| showTotal | show total records and range | Function(total, [from, to]) | - | +| className | className of pagination | String | - | +| simple | when set, show simple pager | Object | null | +| locale | to set l10n config | Object | [zh_CN](https://github.com/react-component/pagination/blob/master/src/locale/zh_CN.js) | +| style | the style of pagination | Object | {} | +| showLessItems | show less page items | Bool | false | +| showTitle | show page items title | Bool | true | +| itemRender | custom page item renderer | Function(current, type: 'page' | 'prev' | 'next' | 'jump-prev' | 'jump-next', element): React.ReactNode | `(current, type, element) => element` | +| prevIcon | specifict the default previous icon | ReactNode \| (props: PaginationProps) => ReactNode | | +| nextIcon | specifict the default previous icon | ReactNode \| (props: PaginationProps) => ReactNode | | +| jumpPrevIcon | specifict the default previous icon | ReactNode \| (props: PaginationProps) => ReactNode | | +| jumpNextIcon | specifict the default previous icon | ReactNode \| (props: PaginationProps) => ReactNode | | ## License diff --git a/dist/rc-pagination.js b/dist/rc-pagination.js index 95368a9a..5e86d0b6 100644 --- a/dist/rc-pagination.js +++ b/dist/rc-pagination.js @@ -3818,8 +3818,8 @@ }); for ( - var es6Symbols = // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 - 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'.split( + var es6Symbols = 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'.split( + // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 ',', ), j = 0; diff --git a/now.json b/now.json index 68715170..2eb01e64 100644 --- a/now.json +++ b/now.json @@ -8,4 +8,4 @@ "config": { "distDir": "build" } } ] -} \ No newline at end of file +} diff --git a/rc-pagination.d.ts b/rc-pagination.d.ts index f57ba79e..7a1da96c 100644 --- a/rc-pagination.d.ts +++ b/rc-pagination.d.ts @@ -32,9 +32,13 @@ declare module 'rc-pagination' { export interface PaginationProps extends Partial { onChange?: (page: number, pageSize: number) => void; onShowSizeChange?: (current: number, size: number) => void; - itemRender?: (page: number, type: string, element: React.ReactNode) => React.ReactNode; + itemRender?: ( + page: number, + type: string, + element: React.ReactNode, + ) => React.ReactNode; showTotal?: (total: number, range: [number, number]) => React.ReactNode; } - export default class Pagination extends React.Component { } + export default class Pagination extends React.Component {} } diff --git a/src/Options.jsx b/src/Options.jsx index 8f9ad83a..d5f8194a 100644 --- a/src/Options.jsx +++ b/src/Options.jsx @@ -16,38 +16,34 @@ class Options extends React.Component { return !goInputText || isNaN(goInputText) ? current : Number(goInputText); } - buildOptionText = (value) => { - return `${value} ${this.props.locale.items_per_page}`; - } + buildOptionText = value => `${value} ${this.props.locale.items_per_page}`; - changeSize = (value) => { + changeSize = value => { this.props.changeSize(Number(value)); - } + }; - handleChange = (e) => { + handleChange = e => { this.setState({ goInputText: e.target.value, }); - } + }; - handleBlur = (e) => { + handleBlur = e => { const { goButton, quickGo, rootPrefixCls } = this.props; if (goButton) { return; } if ( e.relatedTarget && - ( - e.relatedTarget.className.indexOf(`${rootPrefixCls}-prev`) >= 0 || - e.relatedTarget.className.indexOf(`${rootPrefixCls}-next`) >= 0 - ) + (e.relatedTarget.className.indexOf(`${rootPrefixCls}-prev`) >= 0 || + e.relatedTarget.className.indexOf(`${rootPrefixCls}-next`) >= 0) ) { return; } quickGo(this.getValidValue()); - } + }; - go = (e) => { + go = e => { const { goInputText } = this.state; if (goInputText === '') { return; @@ -58,13 +54,21 @@ class Options extends React.Component { }); this.props.quickGo(this.getValidValue()); } - } + }; render() { const { - pageSize, pageSizeOptions, locale, rootPrefixCls, changeSize, - quickGo, goButton, selectComponentClass, buildOptionText, - selectPrefixCls, disabled, + pageSize, + pageSizeOptions, + locale, + rootPrefixCls, + changeSize, + quickGo, + goButton, + selectComponentClass, + buildOptionText, + selectPrefixCls, + disabled, } = this.props; const { goInputText } = this.state; const prefixCls = `${rootPrefixCls}-options`; @@ -97,29 +101,27 @@ class Options extends React.Component { getPopupContainer={triggerNode => triggerNode.parentNode} > {options} - + ); } if (quickGo) { if (goButton) { - gotoButton = typeof goButton === 'boolean' ? ( - - ) : ( - - {goButton} - - ); + gotoButton = + typeof goButton === 'boolean' ? ( + + ) : ( + + {goButton} + + ); } goInput = (
    diff --git a/src/Pager.jsx b/src/Pager.jsx index a4958518..49ec7130 100644 --- a/src/Pager.jsx +++ b/src/Pager.jsx @@ -2,7 +2,7 @@ import React from 'react'; import classNames from 'classnames'; -const Pager = (props) => { +const Pager = props => { const prefixCls = `${props.rootPrefixCls}-item`; const cls = classNames(prefixCls, `${prefixCls}-${props.page}`, { [`${prefixCls}-active`]: props.active, diff --git a/src/Pagination.jsx b/src/Pagination.jsx index f63c55e0..1784ee52 100644 --- a/src/Pagination.jsx +++ b/src/Pagination.jsx @@ -6,13 +6,12 @@ import Options from './Options'; import KEYCODE from './KeyCode'; import LOCALE from './locale/zh_CN'; -function noop() { -} +function noop() {} function isInteger(value) { - return typeof value === 'number' && - isFinite(value) && - Math.floor(value) === value; + return ( + typeof value === 'number' && isFinite(value) && Math.floor(value) === value + ); } function defaultItemRender(page, type, element) { @@ -53,9 +52,11 @@ class Pagination extends React.Component { super(props); const hasOnChange = props.onChange !== noop; - const hasCurrent = ('current' in props); + const hasCurrent = 'current' in props; if (hasCurrent && !hasOnChange) { - 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 + 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 } let current = props.defaultCurrent; @@ -83,7 +84,7 @@ class Pagination extends React.Component { const { prefixCls } = this.props; if (prevState.current !== this.state.current && this.paginationNode) { const lastCurrentNode = this.paginationNode.querySelector( - `.${prefixCls}-item-${prevState.current}` + `.${prefixCls}-item-${prevState.current}`, ); if (lastCurrentNode && document.activeElement === lastCurrentNode) { lastCurrentNode.blur(); @@ -103,7 +104,7 @@ class Pagination extends React.Component { } if ('pageSize' in props && props.pageSize !== prevState.pageSize) { - let current = prevState.current; + let { current } = prevState; const newCurrent = calculatePage(props.pageSize, prevState, props); current = current > newCurrent ? newCurrent : current; @@ -117,31 +118,28 @@ class Pagination extends React.Component { return newState; } - getJumpPrevPage = () => { - return Math.max(1, this.state.current - (this.props.showLessItems ? 3 : 5)); - } + getJumpPrevPage = () => + Math.max(1, this.state.current - (this.props.showLessItems ? 3 : 5)); - getJumpNextPage = () => { - return Math.min( + getJumpNextPage = () => + Math.min( calculatePage(undefined, this.state, this.props), - this.state.current + (this.props.showLessItems ? 3 : 5) + this.state.current + (this.props.showLessItems ? 3 : 5), ); - } /** * computed icon node that need to be rendered. * @param {React.ReactNode | React.ComponentType} icon received icon. * @returns {React.ReactNode} */ - getItemIcon = (icon) => { + getItemIcon = icon => { const { prefixCls } = this.props; - let iconNode = icon - || ; + let iconNode = icon || ; if (typeof icon === 'function') { iconNode = React.createElement(icon, { ...this.props }); } return iconNode; - } + }; getValidValue(e) { const inputValue = e.target.value; @@ -160,13 +158,11 @@ class Pagination extends React.Component { return value; } - savePaginationNode = (node) => { + savePaginationNode = node => { this.paginationNode = node; - } + }; - isValid = (page) => { - return isInteger(page) && page !== this.state.current; - } + isValid = page => isInteger(page) && page !== this.state.current; shouldDisplayQuickJumper = () => { const { showQuickJumper, pageSize, total } = this.props; @@ -174,15 +170,15 @@ class Pagination extends React.Component { return false; } return showQuickJumper; - } + }; - handleKeyDown = (e) => { + handleKeyDown = e => { if (e.keyCode === KEYCODE.ARROW_UP || e.keyCode === KEYCODE.ARROW_DOWN) { e.preventDefault(); } - } + }; - handleKeyUp = (e) => { + handleKeyUp = e => { const value = this.getValidValue(e); const { currentInputValue } = this.state; if (value !== currentInputValue) { @@ -197,10 +193,10 @@ class Pagination extends React.Component { } else if (e.keyCode === KEYCODE.ARROW_DOWN) { this.handleChange(value + 1); } - } + }; - changePageSize = (size) => { - let current = this.state.current; + changePageSize = size => { + let { current } = this.state; const newCurrent = calculatePage(size, this.state, this.props); current = current > newCurrent ? newCurrent : current; // fix the issue: @@ -223,9 +219,9 @@ class Pagination extends React.Component { } } this.props.onShowSizeChange(current, size); - } + }; - handleChange = (p) => { + handleChange = p => { const { disabled } = this.props; let page = p; @@ -244,95 +240,99 @@ class Pagination extends React.Component { }); } - const pageSize = this.state.pageSize; + const { pageSize } = this.state; this.props.onChange(page, pageSize); return page; } return this.state.current; - } + }; prev = () => { if (this.hasPrev()) { this.handleChange(this.state.current - 1); } - } + }; next = () => { if (this.hasNext()) { this.handleChange(this.state.current + 1); } - } + }; jumpPrev = () => { this.handleChange(this.getJumpPrevPage()); - } + }; jumpNext = () => { this.handleChange(this.getJumpNextPage()); - } + }; - hasPrev = () => { - return this.state.current > 1; - } + hasPrev = () => this.state.current > 1; - hasNext = () => { - return this.state.current < calculatePage(undefined, this.state, this.props); - } + hasNext = () => + this.state.current < calculatePage(undefined, this.state, this.props); runIfEnter = (event, callback, ...restParams) => { if (event.key === 'Enter' || event.charCode === 13) { callback(...restParams); } - } + }; runIfEnterPrev = e => { this.runIfEnter(e, this.prev); - } + }; runIfEnterNext = e => { this.runIfEnter(e, this.next); - } + }; runIfEnterJumpPrev = e => { this.runIfEnter(e, this.jumpPrev); - } + }; runIfEnterJumpNext = e => { this.runIfEnter(e, this.jumpNext); - } + }; handleGoTO = e => { if (e.keyCode === KEYCODE.ENTER || e.type === 'click') { this.handleChange(this.state.currentInputValue); } - } + }; renderPrev(prevPage) { const { prevIcon, itemRender } = this.props; const prevButton = itemRender(prevPage, 'prev', this.getItemIcon(prevIcon)); const disabled = !this.hasPrev(); - return isValidElement(prevButton) ? cloneElement(prevButton, { disabled }) : prevButton; + return isValidElement(prevButton) + ? cloneElement(prevButton, { disabled }) + : prevButton; } renderNext(nextPage) { const { nextIcon, itemRender } = this.props; const nextButton = itemRender(nextPage, 'next', this.getItemIcon(nextIcon)); const disabled = !this.hasNext(); - return isValidElement(nextButton) ? cloneElement(nextButton, { disabled }) : nextButton; + return isValidElement(nextButton) + ? cloneElement(nextButton, { disabled }) + : nextButton; } render() { const { prefixCls, className, disabled } = this.props; // When hideOnSinglePage is true and there is only 1 page, hide the pager - if (this.props.hideOnSinglePage === true && this.props.total <= this.state.pageSize) { + if ( + this.props.hideOnSinglePage === true && + this.props.total <= this.state.pageSize + ) { return null; } - const props = this.props; - const locale = props.locale; + const { props } = this; + const { locale } = props; const allPages = calculatePage(undefined, this.state, this.props); const pagerList = []; @@ -342,7 +342,7 @@ class Pagination extends React.Component { let lastPager = null; let gotoButton = null; - const goButton = (props.showQuickJumper && props.showQuickJumper.goButton); + const goButton = props.showQuickJumper && props.showQuickJumper.goButton; const pageBufferSize = props.showLessItems ? 1 : 2; const { current, pageSize } = this.state; @@ -350,7 +350,11 @@ class Pagination extends React.Component { const nextPage = current + 1 < allPages ? current + 1 : allPages; const dataOrAriaAttributeProps = Object.keys(props).reduce((prev, key) => { - if ((key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role')) { + if ( + key.substr(0, 5) === 'data-' || + key.substr(0, 5) === 'aria-' || + key === 'role' + ) { prev[key] = props[key]; } return prev; @@ -370,15 +374,18 @@ class Pagination extends React.Component { ); } else { gotoButton = ( - {goButton} + + {goButton} + ); } gotoButton = (
  • {gotoButton} @@ -398,7 +405,9 @@ class Pagination extends React.Component { onClick={this.prev} tabIndex={this.hasPrev() ? 0 : null} onKeyPress={this.runIfEnterPrev} - className={`${this.hasPrev() ? '' : `${prefixCls}-disabled`} ${prefixCls}-prev`} + className={`${ + this.hasPrev() ? '' : `${prefixCls}-disabled` + } ${prefixCls}-prev`} aria-disabled={!this.hasPrev()} > {this.renderPrev(prevPage)} @@ -423,7 +432,9 @@ class Pagination extends React.Component { onClick={this.next} tabIndex={this.hasPrev() ? 0 : null} onKeyPress={this.runIfEnterNext} - className={`${this.hasNext() ? '' : `${prefixCls}-disabled`} ${prefixCls}-next`} + className={`${ + this.hasNext() ? '' : `${prefixCls}-disabled` + } ${prefixCls}-next`} aria-disabled={!this.hasNext()} > {this.renderNext(nextPage)} @@ -449,18 +460,13 @@ class Pagination extends React.Component { key="noPager" page={allPages} className={`${prefixCls}-disabled`} - /> + />, ); } for (let i = 1; i <= allPages; i++) { const active = this.state.current === i; pagerList.push( - + , ); } } else { @@ -483,7 +489,7 @@ class Pagination extends React.Component { {props.itemRender( this.getJumpPrevPage(), 'jump-prev', - this.getItemIcon(props.jumpPrevIcon) + this.getItemIcon(props.jumpPrevIcon), )}
  • ); @@ -503,7 +509,7 @@ class Pagination extends React.Component { {props.itemRender( this.getJumpNextPage(), 'jump-next', - this.getItemIcon(props.jumpNextIcon) + this.getItemIcon(props.jumpNextIcon), )} ); @@ -560,7 +566,7 @@ class Pagination extends React.Component { active={active} showTitle={props.showTitle} itemRender={props.itemRender} - /> + />, ); } @@ -570,10 +576,16 @@ class Pagination extends React.Component { }); pagerList.unshift(jumpPrev); } - if (allPages - current >= pageBufferSize * 2 && current !== allPages - 2) { - pagerList[pagerList.length - 1] = React.cloneElement(pagerList[pagerList.length - 1], { - className: `${prefixCls}-item-before-jump-next`, - }); + if ( + allPages - current >= pageBufferSize * 2 && + current !== allPages - 2 + ) { + pagerList[pagerList.length - 1] = React.cloneElement( + pagerList[pagerList.length - 1], + { + className: `${prefixCls}-item-before-jump-next`, + }, + ); pagerList.push(jumpNext); } @@ -590,13 +602,10 @@ class Pagination extends React.Component { if (props.showTotal) { totalText = (
  • - {props.showTotal( - props.total, - [ - props.total === 0 ? 0 : (current - 1) * pageSize + 1, - current * pageSize > props.total ? props.total : current * pageSize, - ] - )} + {props.showTotal(props.total, [ + props.total === 0 ? 0 : (current - 1) * pageSize + 1, + current * pageSize > props.total ? props.total : current * pageSize, + ])}
  • ); } @@ -618,7 +627,9 @@ class Pagination extends React.Component { onClick={this.prev} tabIndex={prevDisabled ? null : 0} onKeyPress={this.runIfEnterPrev} - className={`${!prevDisabled ? '' : `${prefixCls}-disabled`} ${prefixCls}-prev`} + className={`${ + !prevDisabled ? '' : `${prefixCls}-disabled` + } ${prefixCls}-prev`} aria-disabled={prevDisabled} > {this.renderPrev(prevPage)} @@ -629,7 +640,9 @@ class Pagination extends React.Component { onClick={this.next} tabIndex={nextDisabled ? null : 0} onKeyPress={this.runIfEnterNext} - className={`${!nextDisabled ? '' : `${prefixCls}-disabled`} ${prefixCls}-next`} + className={`${ + !nextDisabled ? '' : `${prefixCls}-disabled` + } ${prefixCls}-next`} aria-disabled={nextDisabled} > {this.renderNext(nextPage)} diff --git a/src/locale/nl_BE.js b/src/locale/nl_BE.js index 26a327b3..c588e1e2 100644 --- a/src/locale/nl_BE.js +++ b/src/locale/nl_BE.js @@ -8,8 +8,8 @@ export default { // Pagination.jsx prev_page: 'Vorige pagina', next_page: 'Volgende pagina', - prev_5: 'Vorige 5 pagina\'s', - next_5: 'Volgende 5 pagina\'s', - prev_3: 'Vorige 3 pagina\'s', - next_3: 'Volgende 3 pagina\'s', + prev_5: "Vorige 5 pagina's", + next_5: "Volgende 5 pagina's", + prev_3: "Vorige 3 pagina's", + next_3: "Volgende 3 pagina's", }; diff --git a/src/locale/nl_NL.js b/src/locale/nl_NL.js index 26a327b3..c588e1e2 100644 --- a/src/locale/nl_NL.js +++ b/src/locale/nl_NL.js @@ -8,8 +8,8 @@ export default { // Pagination.jsx prev_page: 'Vorige pagina', next_page: 'Volgende pagina', - prev_5: 'Vorige 5 pagina\'s', - next_5: 'Volgende 5 pagina\'s', - prev_3: 'Vorige 3 pagina\'s', - next_3: 'Volgende 3 pagina\'s', + prev_5: "Vorige 5 pagina's", + next_5: "Volgende 5 pagina's", + prev_3: "Vorige 3 pagina's", + next_3: "Volgende 3 pagina's", }; diff --git a/tests/Pagination.spec.js b/tests/Pagination.spec.js index 44108624..f5200df0 100644 --- a/tests/Pagination.spec.js +++ b/tests/Pagination.spec.js @@ -22,8 +22,12 @@ describe('Uncontrolled Pagination', () => { } function shouldHighlightRight() { - const pagers = TestUtils.scryRenderedDOMComponentsWithTag(pagination, 'li') - .filter(pager => pager.className.indexOf('rc-pagination-total-text') === -1); + const pagers = TestUtils.scryRenderedDOMComponentsWithTag( + pagination, + 'li', + ).filter( + pager => pager.className.indexOf('rc-pagination-total-text') === -1, + ); const current2 = pagination.state.current; pagers.forEach((pager, index) => { // page starts from 1 @@ -35,17 +39,19 @@ describe('Uncontrolled Pagination', () => { }); } - beforeEach((done) => { + beforeEach(done => { ReactDOM.render( `${range[0]} - ${range[1]} of ${total} items`} + showTotal={(total, range) => + `${range[0]} - ${range[1]} of ${total} items` + } />, container, - function () { + function() { pagination = this; done(); }, @@ -65,18 +71,23 @@ describe('Uncontrolled Pagination', () => { it('prev-button should be disabled', () => { const prevButton = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-prev' + 'rc-pagination-prev', ); expect(TestUtils.isDOMComponent(prevButton)).to.be(true); expect(prevButton.className).to.contain('rc-pagination-disabled'); expect(prevButton.getAttribute('aria-disabled')).to.equal('true'); }); - it('should hightlight current page and not highlight other page', shouldHighlightRight); + it( + 'should hightlight current page and not highlight other page', + shouldHighlightRight, + ); it('should calc page right', () => { const pagers = TestUtils.scryRenderedDOMComponentsWithTag(pagination, 'li') - .filter(pager => pager.className.indexOf('rc-pagination-total-text') === -1) + .filter( + pager => pager.className.indexOf('rc-pagination-total-text') === -1, + ) .filter(pager => pager.className.indexOf('rc-pagination-options') === -1); const knownPageCount = 3; const buttonLength = 2; @@ -86,7 +97,7 @@ describe('Uncontrolled Pagination', () => { it('next button should not be disabled', () => { const nextButton = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-next' + 'rc-pagination-next', ); expect(TestUtils.isDOMComponent(nextButton)).to.be(true); @@ -94,8 +105,11 @@ describe('Uncontrolled Pagination', () => { expect(nextButton.getAttribute('aria-disabled')).to.equal('false'); }); - it('should response mouse click right', (done) => { - const pagers = TestUtils.scryRenderedDOMComponentsWithClass(pagination, 'rc-pagination-item'); + it('should response mouse click right', done => { + const pagers = TestUtils.scryRenderedDOMComponentsWithClass( + pagination, + 'rc-pagination-item', + ); expect(pagers.length).to.be(3); const page2 = pagers[1]; expect(TestUtils.isDOMComponent(page2)).to.be(true); @@ -111,10 +125,10 @@ describe('Uncontrolled Pagination', () => { }, 10); }); - it('should response next page', (done) => { + it('should response next page', done => { const nextButton = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-next' + 'rc-pagination-next', ); expect(TestUtils.isDOMComponent(nextButton)).to.be(true); Simulate.click(nextButton); @@ -126,10 +140,10 @@ describe('Uncontrolled Pagination', () => { }, 10); }); - it('should quick jump to expect page', (done) => { + it('should quick jump to expect page', done => { const quickJumper = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-options-quick-jumper' + 'rc-pagination-options-quick-jumper', ); const input = quickJumper.querySelector('input'); const goButton = quickJumper.querySelector('button'); @@ -149,10 +163,10 @@ describe('Uncontrolled Pagination', () => { }); // https://github.com/ant-design/ant-design/issues/17763 - it('should not jump when blur input when there is goButton', (done) => { + it('should not jump when blur input when there is goButton', done => { const quickJumper = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-options-quick-jumper' + 'rc-pagination-options-quick-jumper', ); const input = quickJumper.querySelector('input'); Simulate.change(input, { target: { value: '2' } }); @@ -167,13 +181,14 @@ describe('Uncontrolled Pagination', () => { }); // https://github.com/ant-design/ant-design/issues/17763 - it('should not jump when blur input when there is not goButton', (done) => { + it('should not jump when blur input when there is not goButton', done => { ReactDOM.render( , container, - function () { + function() { const quickJumper = TestUtils.findRenderedDOMComponentWithClass( - this, 'rc-pagination-options-quick-jumper', + this, + 'rc-pagination-options-quick-jumper', ); const input = quickJumper.querySelector('input'); Simulate.change(input, { target: { value: '2' } }); @@ -189,29 +204,32 @@ describe('Uncontrolled Pagination', () => { }); // https://github.com/ant-design/ant-design/issues/15539 - it('should hide quick jumper when only one page', (done) => { + it('should hide quick jumper when only one page', done => { ReactDOM.render( , container, - function () { + function() { expect(() => { - TestUtils.findRenderedDOMComponentWithClass(this, 'rc-pagination-options-quick-jumper'); + TestUtils.findRenderedDOMComponentWithClass( + this, + 'rc-pagination-options-quick-jumper', + ); }).to.throwException(/Did not find exactly one match/); done(); }, ); }); - it('should display total items', (done) => { + it('should display total items', done => { const totalText = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-total-text' + 'rc-pagination-total-text', ); expect(TestUtils.isDOMComponent(totalText)).to.be(true); expect(totalText.innerHTML).to.be('1 - 10 of 25 items'); const nextButton = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-next' + 'rc-pagination-next', ); Simulate.click(nextButton); setTimeout(() => { @@ -237,14 +255,14 @@ describe('Controlled Pagination', () => { pageSize = pSize; } - beforeEach((done) => { + beforeEach(done => { ReactDOM.render( , container, - function () { + function() { pagination = this; done(); - } + }, ); }); @@ -252,7 +270,7 @@ describe('Controlled Pagination', () => { ReactDOM.unmountComponentAtNode(container); }); - it('not replace currentInputValue if current not change', (done) => { + it('not replace currentInputValue if current not change', done => { pagination.state.current = 1; pagination.state.currentInputValue = 1; pagination.forceUpdate(); @@ -273,10 +291,10 @@ describe('Controlled Pagination', () => { expect(pagination.state.current).to.be(2); }); - it('should not response mouse click', (done) => { + it('should not response mouse click', done => { const nextButton = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-next' + 'rc-pagination-next', ); expect(TestUtils.isDOMComponent(nextButton)).to.be(true); Simulate.click(nextButton); @@ -294,8 +312,8 @@ describe('Two Pagination', () => { const container = document.createElement('div'); document.body.appendChild(container); - beforeEach((done) => { - ReactDOM.render(, container, function () { + beforeEach(done => { + ReactDOM.render(, container, function() { entry = this; done(); }); @@ -312,7 +330,7 @@ describe('Two Pagination', () => { expect(p2.state.pageSize).to.be(20); }); - it('should sync pageSize via state', (done) => { + it('should sync pageSize via state', done => { const p1 = TestUtils.scryRenderedComponentsWithType(entry, Pagination)[0]; const p2 = TestUtils.scryRenderedComponentsWithType(entry, Pagination)[1]; const hook = TestUtils.scryRenderedDOMComponentsWithClass(entry, 'hook')[0]; @@ -331,22 +349,18 @@ describe('itemRender', () => { const currentPage = 12; document.body.appendChild(container); - const itemRender = (current) => { + const itemRender = current => { return
    {current}; }; - beforeEach((done) => { + beforeEach(done => { ReactDOM.render( - , + , container, - function () { + function() { pagination = this; done(); - } + }, ); }); @@ -357,53 +371,59 @@ describe('itemRender', () => { it('should support custom itemRender', () => { const prev = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-prev' + 'rc-pagination-prev', ); const next = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-next' + 'rc-pagination-next', ); const jumpPrev = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-jump-prev' + 'rc-pagination-jump-prev', ); const jumpNext = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-jump-next' + 'rc-pagination-jump-next', ); const active = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-item-active' + 'rc-pagination-item-active', + ); + expect(prev.innerHTML).to.be( + `${currentPage - 1}`, + ); + expect(next.innerHTML).to.be( + `${currentPage + 1}`, + ); + expect(jumpPrev.innerHTML).to.be( + `${currentPage - 5}`, + ); + expect(jumpNext.innerHTML).to.be( + `${currentPage + 5}`, + ); + expect(active.innerHTML).to.be( + `${currentPage}`, ); - expect(prev.innerHTML).to.be(`${currentPage - 1}`); - expect(next.innerHTML).to.be(`${currentPage + 1}`); - expect(jumpPrev.innerHTML).to.be(`${currentPage - 5}`); - expect(jumpNext.innerHTML).to.be(`${currentPage + 5}`); - expect(active.innerHTML).to.be(`${currentPage}`); }); - it('should support pass disabled to prev and next buttons', (done) => { + it('should support pass disabled to prev and next buttons', done => { ReactDOM.unmountComponentAtNode(container); ReactDOM.render( - , + , container, - function () { + function() { const prev = TestUtils.findRenderedDOMComponentWithClass( this, - 'rc-pagination-prev' + 'rc-pagination-prev', ); const next = TestUtils.findRenderedDOMComponentWithClass( this, - 'rc-pagination-next' + 'rc-pagination-next', ); expect(prev.innerHTML).to.be(`0`); expect(next.innerHTML).to.be(`2`); done(); - } + }, ); }); }); @@ -423,18 +443,14 @@ describe('Other props', () => { jumpPrevIcon, jumpNextIcon, }; - beforeEach((done) => { + beforeEach(done => { ReactDOM.render( - , + , container, - function () { + function() { pagination = this; done(); - } + }, ); }); @@ -445,19 +461,19 @@ describe('Other props', () => { it('should support custom default icon', () => { const nextIconElement = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-next' + 'rc-pagination-next', ); const prevIconElement = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-prev' + 'rc-pagination-prev', ); const jumpNextIconElement = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-jump-next' + 'rc-pagination-jump-next', ); const jumpPrevIconElement = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-jump-prev' + 'rc-pagination-jump-prev', ); expect(nextIconElement.innerText).to.be('nextIcon'); expect(prevIconElement.innerText).to.be('prevIcon'); @@ -470,7 +486,7 @@ describe('hideOnSinglePage props', () => { const container = document.createElement('div'); document.body.appendChild(container); - const itemRender = (current) => { + const itemRender = current => { return {current}; }; @@ -478,42 +494,51 @@ describe('hideOnSinglePage props', () => { ReactDOM.unmountComponentAtNode(container); }); - it('should hide pager if hideOnSinglePage equals true', (done) => { + it('should hide pager if hideOnSinglePage equals true', done => { ReactDOM.render( , container, - function () { + function() { expect(() => { TestUtils.findRenderedDOMComponentWithClass(this, 'rc-pagination'); }).to.throwException(/Did not find exactly one match/); done(); - } + }, ); }); - it('should show pager if hideOnSinglePage equals false', (done) => { + it('should show pager if hideOnSinglePage equals false', done => { ReactDOM.render( - , + , container, - function () { + function() { expect(() => { TestUtils.findRenderedDOMComponentWithClass(this, 'rc-pagination'); }).to.not.throwException(); done(); - } + }, ); }); - it('should show pager if hideOnSinglePage equals true but more than 1 page', (done) => { + it('should show pager if hideOnSinglePage equals true but more than 1 page', done => { ReactDOM.render( - , + , container, - function () { + function() { expect(() => { TestUtils.findRenderedDOMComponentWithClass(this, 'rc-pagination'); }).to.not.throwException(); done(); - } + }, ); }); }); @@ -527,39 +552,49 @@ describe('showPrevNextJumpers props', () => { ReactDOM.unmountComponentAtNode(container); }); - it('should hide jump-prev, jump-next if showPrevNextJumpers equals false', (done) => { + it('should hide jump-prev, jump-next if showPrevNextJumpers equals false', done => { ReactDOM.render( - , + , container, - function () { + function() { expect(() => { - TestUtils.findRenderedDOMComponentWithClass(this, 'rc-pagination-jump-prev'); + TestUtils.findRenderedDOMComponentWithClass( + this, + 'rc-pagination-jump-prev', + ); }).to.throwException(/Did not find exactly one match/); expect(() => { - TestUtils.findRenderedDOMComponentWithClass(this, 'rc-pagination-jump-next'); + TestUtils.findRenderedDOMComponentWithClass( + this, + 'rc-pagination-jump-next', + ); }).to.throwException(/Did not find exactly one match/); done(); - } + }, ); }); - it('should show jump-prev, jump-next if showPrevNextJumpers equals true', (done) => { + it('should show jump-prev, jump-next if showPrevNextJumpers equals true', done => { ReactDOM.render( , container, - function () { + function() { const jumpPrev = TestUtils.findRenderedDOMComponentWithClass( this, - 'rc-pagination-jump-prev' + 'rc-pagination-jump-prev', ); const jumpNext = TestUtils.findRenderedDOMComponentWithClass( this, - 'rc-pagination-jump-next' + 'rc-pagination-jump-next', ); expect(TestUtils.isDOMComponent(jumpPrev)).to.be(true); expect(TestUtils.isDOMComponent(jumpNext)).to.be(true); done(); - } + }, ); }); }); @@ -576,17 +611,19 @@ describe('custom showQuickJumper button Pagination', () => { pageSize = pSize; } - beforeEach((done) => { + beforeEach(done => { ReactDOM.render( go }} - showTotal={(total, range) => `${range[0]} - ${range[1]} of ${total} items`} + showTotal={(total, range) => + `${range[0]} - ${range[1]} of ${total} items` + } />, container, - function () { + function() { pagination = this; done(); }, @@ -597,10 +634,10 @@ describe('custom showQuickJumper button Pagination', () => { ReactDOM.unmountComponentAtNode(container); }); - it('should quick jump to expect page', (done) => { + it('should quick jump to expect page', done => { const quickJumper = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-options-quick-jumper' + 'rc-pagination-options-quick-jumper', ); const input = quickJumper.querySelector('input'); const goButton = quickJumper.querySelector('button'); @@ -621,14 +658,14 @@ describe('custom showQuickJumper button Pagination', () => { }); // https://github.com/ant-design/ant-design/issues/10080 - it('should not quick jump to previous page when input invalid char', (done) => { + it('should not quick jump to previous page when input invalid char', done => { const pager = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination' + 'rc-pagination', ); const nextButton = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-next' + 'rc-pagination-next', ); Simulate.click(nextButton); const input = pager.querySelector('input'); @@ -644,22 +681,23 @@ describe('custom showQuickJumper button Pagination', () => { }); }); - describe('simple Pagination', () => { let pagination = null; const container = document.createElement('div'); document.body.appendChild(container); - beforeEach((done) => { + beforeEach(done => { ReactDOM.render( `${range[0]} - ${range[1]} of ${total} items`} + showTotal={(total, range) => + `${range[0]} - ${range[1]} of ${total} items` + } />, container, - function () { + function() { pagination = this; done(); }, @@ -678,7 +716,7 @@ describe('simple Pagination', () => { it('prev-button should be disabled', () => { const prevButton = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-prev' + 'rc-pagination-prev', ); expect(TestUtils.isDOMComponent(prevButton)).to.be(true); expect(prevButton.className).to.contain('rc-pagination-disabled'); @@ -688,7 +726,7 @@ describe('simple Pagination', () => { it('no quick jump', () => { const simplePagers = TestUtils.scryRenderedDOMComponentsWithClass( pagination, - 'rc-pagination-simple-pager' + 'rc-pagination-simple-pager', ); expect(simplePagers.length).to.be(1); }); @@ -699,15 +737,11 @@ describe('simple Pagination when current is greater pages', () => { const container = document.createElement('div'); document.body.appendChild(container); - beforeEach((done) => { + beforeEach(done => { ReactDOM.render( - , + , container, - function () { + function() { pagination = this; done(); }, @@ -723,10 +757,10 @@ describe('simple Pagination when current is greater pages', () => { expect(current3).to.be(3); }); - it('input number is greater pages', (done) => { + it('input number is greater pages', done => { const greaterCurrent = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-simple' + 'rc-pagination-simple', ); const input = greaterCurrent.querySelector('input'); input.value = '313423434343343452121'; @@ -739,7 +773,6 @@ describe('simple Pagination when current is greater pages', () => { }); }); - describe('simple Pagination with quick jump', () => { let pagination = null; const container = document.createElement('div'); @@ -752,7 +785,7 @@ describe('simple Pagination with quick jump', () => { pageSize = pSize; } - beforeEach((done) => { + beforeEach(done => { ReactDOM.render( { defaultCurrent={1} total={25} showQuickJumper={{ goButton: }} - showTotal={(total, range) => `${range[0]} - ${range[1]} of ${total} items`} + showTotal={(total, range) => + `${range[0]} - ${range[1]} of ${total} items` + } />, container, - function () { + function() { pagination = this; done(); }, @@ -774,10 +809,10 @@ describe('simple Pagination with quick jump', () => { ReactDOM.unmountComponentAtNode(container); }); - it('should quick jump to expect page', (done) => { + it('should quick jump to expect page', done => { const quickJumper = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-simple' + 'rc-pagination-simple', ); const input = quickJumper.querySelector('input'); const goButton = quickJumper.querySelector('button'); @@ -805,11 +840,11 @@ describe('current value on onShowSizeChange when total is 0', () => { const container = document.createElement('div'); document.body.appendChild(container); - const onShowSizeChange = (current) => { + const onShowSizeChange = current => { changeCurrent = current; }; - beforeEach((done) => { + beforeEach(done => { ReactDOM.render( { onShowSizeChange={onShowSizeChange} current={1} total={0} - showTotal={(total, range) => `${range[0]} - ${range[1]} of ${total} items`} + showTotal={(total, range) => + `${range[0]} - ${range[1]} of ${total} items` + } />, container, - function () { + function() { pagination = this; done(); }, @@ -831,10 +868,10 @@ describe('current value on onShowSizeChange when total is 0', () => { ReactDOM.unmountComponentAtNode(container); }); - it('current should equal to the current in onShowSizeChange', (done) => { + it('current should equal to the current in onShowSizeChange', done => { const sizeChanger = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-options-size-changer' + 'rc-pagination-options-size-changer', ); Simulate.click(sizeChanger); setTimeout(() => { @@ -852,7 +889,7 @@ describe('current value on onShowSizeChange when total is 0', () => { it('when total is 0, pager should show and disabled', () => { const itemButton = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-item' + 'rc-pagination-item', ); expect(TestUtils.isDOMComponent(itemButton)).to.be(true); expect(itemButton.className).to.contain('rc-pagination-item-disabled'); @@ -861,7 +898,7 @@ describe('current value on onShowSizeChange when total is 0', () => { it('when total is 0, `from` and `to` should be 0', () => { const totalText = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-total-text' + 'rc-pagination-total-text', ); expect(TestUtils.isDOMComponent(totalText)).to.be(true); expect(totalText.innerHTML).to.be('0 - 0 of 0 items'); @@ -874,7 +911,7 @@ describe('data and aria props', () => { document.body.appendChild(container); describe('with simple prop', () => { - beforeEach((done) => { + beforeEach(done => { ReactDOM.render( { role="navigation" />, container, - function () { + function() { pagination = this; done(); }, @@ -897,22 +934,30 @@ describe('data and aria props', () => { }); it('renders data attributes', () => { - expect(pagination.paginationNode.getAttribute('data-test')).to.be('test-id'); + expect(pagination.paginationNode.getAttribute('data-test')).to.be( + 'test-id', + ); expect(pagination.paginationNode.getAttribute('data-id')).to.be('12345'); }); it('renders aria attributes', () => { - expect(pagination.paginationNode.getAttribute('aria-labelledby')).to.be('labelledby-id'); - expect(pagination.paginationNode.getAttribute('aria-label')).to.be('label-id'); + expect(pagination.paginationNode.getAttribute('aria-labelledby')).to.be( + 'labelledby-id', + ); + expect(pagination.paginationNode.getAttribute('aria-label')).to.be( + 'label-id', + ); }); it('renders role attribute', () => { - expect(pagination.paginationNode.getAttribute('role')).to.be('navigation'); + expect(pagination.paginationNode.getAttribute('role')).to.be( + 'navigation', + ); }); }); describe('without simple prop', () => { - beforeEach((done) => { + beforeEach(done => { ReactDOM.render( { role="navigation" />, container, - function () { + function() { pagination = this; done(); }, @@ -934,17 +979,25 @@ describe('data and aria props', () => { }); it('renders data attributes', () => { - expect(pagination.paginationNode.getAttribute('data-test')).to.be('test-id'); + expect(pagination.paginationNode.getAttribute('data-test')).to.be( + 'test-id', + ); expect(pagination.paginationNode.getAttribute('data-id')).to.be('12345'); }); it('renders aria attributes', () => { - expect(pagination.paginationNode.getAttribute('aria-labelledby')).to.be('labelledby-id'); - expect(pagination.paginationNode.getAttribute('aria-label')).to.be('label-id'); + expect(pagination.paginationNode.getAttribute('aria-labelledby')).to.be( + 'labelledby-id', + ); + expect(pagination.paginationNode.getAttribute('aria-label')).to.be( + 'label-id', + ); }); it('renders role attribute', () => { - expect(pagination.paginationNode.getAttribute('role')).to.be('navigation'); + expect(pagination.paginationNode.getAttribute('role')).to.be( + 'navigation', + ); }); }); }); @@ -957,7 +1010,7 @@ describe('disabled', () => { ReactDOM.unmountComponentAtNode(container); }); - it('full pagination', (done) => { + it('full pagination', done => { ReactDOM.render( { disabled />, container, - function () { + function() { const pagination = this; // Root expect( TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-disabled' - ) + 'rc-pagination-disabled', + ), ).to.be.ok(); expect( - TestUtils.findRenderedDOMComponentWithTag( - pagination, - 'input' - ) + TestUtils.findRenderedDOMComponentWithTag(pagination, 'input'), ).to.be.ok(); expect( - TestUtils.findRenderedComponentWithType( - pagination, - Select, - ).props.disabled + TestUtils.findRenderedComponentWithType(pagination, Select).props + .disabled, ).to.be.ok(); expect( - TestUtils.findRenderedDOMComponentWithTag( - pagination, - 'input' - ).disabled + TestUtils.findRenderedDOMComponentWithTag(pagination, 'input') + .disabled, ).to.be.ok(); expect( - TestUtils.findRenderedDOMComponentWithTag( - pagination, - 'button' - ).disabled + TestUtils.findRenderedDOMComponentWithTag(pagination, 'button') + .disabled, ).to.be.ok(); done(); @@ -1024,7 +1068,7 @@ describe('Pagination with jumper', () => { current = page; } - beforeEach((done) => { + beforeEach(done => { ReactDOM.render( { showQuickJumper />, container, - function () { + function() { pagination = this; done(); }, @@ -1045,10 +1089,10 @@ describe('Pagination with jumper', () => { current = 10; }); - it('when input less than 1', (done) => { + it('when input less than 1', done => { const quickJumper = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-options-quick-jumper' + 'rc-pagination-options-quick-jumper', ); const input = quickJumper.querySelector('input'); expect(TestUtils.isDOMComponent(input)).to.be(true); @@ -1064,10 +1108,10 @@ describe('Pagination with jumper', () => { }, 10); }); - it('when input onBlur', (done) => { + it('when input onBlur', done => { const quickJumper = TestUtils.findRenderedDOMComponentWithClass( pagination, - 'rc-pagination-options-quick-jumper' + 'rc-pagination-options-quick-jumper', ); const input = quickJumper.querySelector('input'); expect(TestUtils.isDOMComponent(input)).to.be(true); From b1ac0b02f7270fb5e13c27a5a1fb2cb6e17ace8d Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 27 Feb 2020 16:14:51 +0800 Subject: [PATCH 03/17] fix eslint errors --- .eslintrc.js | 1 + src/Options.jsx | 1 + src/Pagination.jsx | 19 ++++++++++++------- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index cf8ad0b5..fc4eec67 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -9,5 +9,6 @@ module.exports = { 'react/no-array-index-key': 0, 'react/sort-comp': 0, '@typescript-eslint/no-explicit-any': 0, + 'jsx-a11y/no-noninteractive-tabindex': 0, }, }; diff --git a/src/Options.jsx b/src/Options.jsx index d5f8194a..e120b581 100644 --- a/src/Options.jsx +++ b/src/Options.jsx @@ -13,6 +13,7 @@ class Options extends React.Component { getValidValue() { const { goInputText, current } = this.state; + // eslint-disable-next-line no-restricted-globals return !goInputText || isNaN(goInputText) ? current : Number(goInputText); } diff --git a/src/Pagination.jsx b/src/Pagination.jsx index 1784ee52..e2cd7f70 100644 --- a/src/Pagination.jsx +++ b/src/Pagination.jsx @@ -10,6 +10,7 @@ function noop() {} function isInteger(value) { return ( + // eslint-disable-next-line no-restricted-globals typeof value === 'number' && isFinite(value) && Math.floor(value) === value ); } @@ -19,10 +20,7 @@ function defaultItemRender(page, type, element) { } function calculatePage(p, state, props) { - let pageSize = p; - if (typeof pageSize === 'undefined') { - pageSize = state.pageSize; - } + const pageSize = typeof p === 'undefined' ? state.pageSize : p; return Math.floor((props.total - 1) / pageSize) + 1; } @@ -54,18 +52,21 @@ class Pagination extends React.Component { const hasOnChange = props.onChange !== noop; const hasCurrent = 'current' in props; if (hasCurrent && !hasOnChange) { + // eslint-disable-next-line no-console 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 + ); } let current = props.defaultCurrent; if ('current' in props) { + // eslint-disable-next-line prefer-destructuring current = props.current; } let pageSize = props.defaultPageSize; if ('pageSize' in props) { + // eslint-disable-next-line prefer-destructuring pageSize = props.pageSize; } @@ -134,6 +135,7 @@ class Pagination extends React.Component { */ getItemIcon = icon => { const { prefixCls } = this.props; + // eslint-disable-next-line jsx-a11y/anchor-has-content let iconNode = icon || ; if (typeof icon === 'function') { iconNode = React.createElement(icon, { ...this.props }); @@ -148,6 +150,7 @@ class Pagination extends React.Component { let value; if (inputValue === '') { value = inputValue; + // eslint-disable-next-line no-restricted-globals } else if (isNaN(Number(inputValue))) { value = currentInputValue; } else if (inputValue >= allPages) { @@ -202,6 +205,7 @@ class Pagination extends React.Component { // fix the issue: // Once 'total' is 0, 'current' in 'onShowSizeChange' is 0, which is not correct. if (newCurrent === 0) { + // eslint-disable-next-line prefer-destructuring current = this.state.current; } @@ -355,6 +359,7 @@ class Pagination extends React.Component { key.substr(0, 5) === 'aria-' || key === 'role' ) { + // eslint-disable-next-line no-param-reassign prev[key] = props[key]; } return prev; @@ -463,7 +468,7 @@ class Pagination extends React.Component { />, ); } - for (let i = 1; i <= allPages; i++) { + for (let i = 1; i <= allPages; i += 1) { const active = this.state.current === i; pagerList.push( , @@ -553,7 +558,7 @@ class Pagination extends React.Component { left = allPages - pageBufferSize * 2; } - for (let i = left; i <= right; i++) { + for (let i = left; i <= right; i += 1) { const active = current === i; pagerList.push( Date: Thu, 27 Feb 2020 16:43:18 +0800 Subject: [PATCH 04/17] mirgrate test case --- .../{Pagination.spec.js => Pagination.xx.js} | 0 tests/index.test.js | 80 +++++++++++++++++++ 2 files changed, 80 insertions(+) rename tests/{Pagination.spec.js => Pagination.xx.js} (100%) create mode 100644 tests/index.test.js diff --git a/tests/Pagination.spec.js b/tests/Pagination.xx.js similarity index 100% rename from tests/Pagination.spec.js rename to tests/Pagination.xx.js diff --git a/tests/index.test.js b/tests/index.test.js new file mode 100644 index 00000000..86599655 --- /dev/null +++ b/tests/index.test.js @@ -0,0 +1,80 @@ +import React from 'react'; +import { mount } from 'enzyme'; +import Pagination from '../src'; + +describe('Uncontrolled Pagination', () => { + let wrapper; + const onChange = jest.fn(); + + function shouldHighlightRight() { + const pagers = wrapper.find('li:not(.rc-pagination-total-text)'); + pagers.forEach((pager, index) => { + // page starts from 1 + if (index === wrapper.state().current) { + expect(pager.hasClass('rc-pagination-item-active')).toBe(true); + } else { + expect(pager.hasClass('rc-pagination-item-active')).toBe(false); + } + }); + } + + beforeEach(() => { + wrapper = mount( + + `${range[0]} - ${range[1]} of ${total} items` + } + />, + ); + }); + + afterEach(() => { + wrapper.unmount(); + onChange.mockReset(); + }); + + it('default current page is 1', () => { + expect(wrapper.state().current).toBe(1); + }); + + it('prev-button should be disabled', () => { + const prevButton = wrapper.find('.rc-pagination-prev'); + expect(prevButton.hasClass('rc-pagination-disabled')).toBe(true); + expect(prevButton.getDOMNode().getAttribute('aria-disabled')).toBe('true'); + }); + + it( + 'should hightlight current page and not highlight other page', + shouldHighlightRight, + ); + + it('should calc page right', () => { + const pagers = wrapper.find( + 'li:not(.rc-pagination-total-text):not(.rc-pagination-options)', + ); + const knownPageCount = 3; + const buttonLength = 2; + expect(pagers.length).toBe(knownPageCount + buttonLength); + }); + + it('next button should not be disabled', () => { + const nextButton = wrapper.find('.rc-pagination-next'); + expect(nextButton.hasClass('rc-pagination-disabled')).toBe(false); + expect(nextButton.getDOMNode().getAttribute('aria-disabled')).toBe('false'); + }); + + it('should response mouse click right', () => { + const pagers = wrapper.find('.rc-pagination-item'); + expect(pagers.length).toBe(3); + const page2 = pagers.at(1); + expect(page2.hasClass('rc-pagination-item-2')).toBe(true); + page2.simulate('click'); + expect(wrapper.state().current).toBe(2); + expect(onChange).toHaveBeenLastCalledWith(2, 10); + shouldHighlightRight(); + }); +}); From e9d190b0cacbd72c62bc599753dbe0fff9498697 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 27 Feb 2020 16:50:16 +0800 Subject: [PATCH 05/17] :white_check_mark: add codecov badge --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8baff20f..962bcce3 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ React Pagination Component. [![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] +[![codecov](https://codecov.io/gh/react-component/pagination/branch/master/graph/badge.svg)](https://codecov.io/gh/react-component/pagination) [![Dependencies](https://img.shields.io/david/react-component/pagination.svg?style=flat-square)](https://david-dm.org/react-component/pagination) [![DevDependencies](https://img.shields.io/david/dev/react-component/pagination.svg?style=flat-square)](https://david-dm.org/react-component/pagination?type=dev) [![npm download][download-image]][download-url] From 542995d2c9e55b4744dd40343d792abbfa10da97 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 27 Feb 2020 17:08:49 +0800 Subject: [PATCH 06/17] test: Migrated Uncontrolled Pagination test cases --- tests/index.test.js | 63 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/tests/index.test.js b/tests/index.test.js index 86599655..3e59580c 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -2,6 +2,9 @@ import React from 'react'; import { mount } from 'enzyme'; import Pagination from '../src'; +const sleep = (timeout = 0) => + new Promise(resolve => setTimeout(resolve, timeout)); + describe('Uncontrolled Pagination', () => { let wrapper; const onChange = jest.fn(); @@ -77,4 +80,64 @@ describe('Uncontrolled Pagination', () => { expect(onChange).toHaveBeenLastCalledWith(2, 10); shouldHighlightRight(); }); + + it('should response next page', () => { + const nextButton = wrapper.find('.rc-pagination-next'); + nextButton.simulate('click'); + expect(wrapper.state().current).toBe(2); + expect(onChange).toHaveBeenLastCalledWith(2, 10); + shouldHighlightRight(); + }); + + it('should quick jump to expect page', () => { + const quickJumper = wrapper.find('.rc-pagination-options-quick-jumper'); + const input = quickJumper.find('input'); + const goButton = quickJumper.find('button'); + input.simulate('change', { target: { value: '2' } }); + goButton.simulate('click'); + expect(wrapper.state().current).toBe(2); + expect(onChange).toHaveBeenLastCalledWith(2, 10); + }); + + // https://github.com/ant-design/ant-design/issues/17763 + it('should not jump when blur input when there is goButton', () => { + const quickJumper = wrapper.find('.rc-pagination-options-quick-jumper'); + const input = quickJumper.find('input'); + input.simulate('focus'); + input.simulate('change', { target: { value: '2' } }); + input.simulate('blur'); + expect(wrapper.state().current).toBe(1); + expect(onChange).not.toBeCalled(); + }); + + // https://github.com/ant-design/ant-design/issues/17763 + it('should not jump when blur input when there is not goButton', () => { + const component = mount( + , + ); + const quickJumper = component.find('.rc-pagination-options-quick-jumper'); + const input = quickJumper.find('input'); + input.simulate('change', { target: { value: '2' } }); + input.simulate('blur'); + expect(component.state().current).toBe(2); + }); + + // https://github.com/ant-design/ant-design/issues/15539 + it('should hide quick jumper when only one page', () => { + const component = mount( + , + ); + const quickJumper = component.find('.rc-pagination-options-quick-jumper'); + expect(quickJumper.length).toBe(0); + }); + + it('should display total items', () => { + const totalText = wrapper.find('.rc-pagination-total-text'); + expect(totalText.text()).toBe('1 - 10 of 25 items'); + const nextButton = wrapper.find('.rc-pagination-next'); + nextButton.simulate('click'); + expect(totalText.text()).toBe('11 - 20 of 25 items'); + nextButton.simulate('click'); + expect(totalText.text()).toBe('21 - 25 of 25 items'); + }); }); From f1a514a7357b8dfa854c86e2d4a789aecf2294c6 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 27 Feb 2020 17:17:02 +0800 Subject: [PATCH 07/17] fix eslint errors --- examples/default.js | 4 +++- examples/itemRender.js | 2 +- examples/jumper.js | 2 +- examples/jumperWithGoButton.js | 2 +- examples/lessPages.js | 2 +- examples/locale.js | 2 +- examples/more.js | 2 +- examples/showTitle.js | 4 +++- examples/showTotal.js | 4 +--- examples/simple.js | 4 +--- examples/sizer.js | 4 +++- examples/stupid.js | 5 +---- examples/styles.js | 2 +- 13 files changed, 19 insertions(+), 20 deletions(-) diff --git a/examples/default.js b/examples/default.js index 353e9423..5ec50146 100644 --- a/examples/default.js +++ b/examples/default.js @@ -1,6 +1,6 @@ /* eslint func-names: 0, no-console: 0 */ import React from 'react'; -import Pagination from 'rc-pagination'; +import Pagination from '..'; import '../assets/index.less'; import 'rc-select/assets/index.less'; @@ -8,12 +8,14 @@ export default class App extends React.Component { state = { current: 3, }; + onChange = page => { console.log(page); this.setState({ current: page, }); }; + render() { return ( { if (type === 'page') { diff --git a/examples/jumper.js b/examples/jumper.js index ffbc4953..c838434f 100644 --- a/examples/jumper.js +++ b/examples/jumper.js @@ -1,7 +1,7 @@ /* eslint func-names: 0, no-console: 0 */ import React from 'react'; import Select from 'rc-select'; -import Pagination from 'rc-pagination'; +import Pagination from '..'; import '../assets/index.less'; import 'rc-select/assets/index.less'; diff --git a/examples/jumperWithGoButton.js b/examples/jumperWithGoButton.js index 0c581925..f92c9432 100644 --- a/examples/jumperWithGoButton.js +++ b/examples/jumperWithGoButton.js @@ -1,7 +1,7 @@ /* eslint func-names: 0, no-console: 0 */ import React from 'react'; import Select from 'rc-select'; -import Pagination from 'rc-pagination'; +import Pagination from '..'; import '../assets/index.less'; import 'rc-select/assets/index.less'; diff --git a/examples/lessPages.js b/examples/lessPages.js index c20f9309..6796cfc7 100644 --- a/examples/lessPages.js +++ b/examples/lessPages.js @@ -1,6 +1,6 @@ /* eslint func-names: 0, no-console: 0 */ import React from 'react'; -import Pagination from 'rc-pagination'; +import Pagination from '..'; import '../assets/index.less'; const arrowPath = diff --git a/examples/locale.js b/examples/locale.js index 287a5a01..94f626dc 100644 --- a/examples/locale.js +++ b/examples/locale.js @@ -2,7 +2,7 @@ import React from 'react'; import ReactDOM from 'react-dom'; import Select from 'rc-select'; -import Pagination from 'rc-pagination'; +import Pagination from '..'; import localeInfo from '../src/locale/en_US'; import '../assets/index.less'; import 'rc-select/assets/index.less'; diff --git a/examples/more.js b/examples/more.js index 65ad1789..5cf92376 100644 --- a/examples/more.js +++ b/examples/more.js @@ -1,6 +1,6 @@ import '../assets/index.less'; -import Pagination from 'rc-pagination'; import React from 'react'; +import Pagination from '..'; const App = () => ( diff --git a/examples/showTitle.js b/examples/showTitle.js index 444b5c81..e22a81b6 100644 --- a/examples/showTitle.js +++ b/examples/showTitle.js @@ -1,18 +1,20 @@ /* eslint func-names: 0, no-console: 0 */ import React from 'react'; -import Pagination from 'rc-pagination'; +import Pagination from '..'; import '../assets/index.less'; class App extends React.Component { state = { current: 3, }; + onChange = page => { console.log(page); this.setState({ current: page, }); }; + render() { return (
    diff --git a/examples/showTotal.js b/examples/showTotal.js index e406b0b2..c0425caa 100644 --- a/examples/showTotal.js +++ b/examples/showTotal.js @@ -1,7 +1,5 @@ -/* eslint func-names: 0, no-console: 0 */ import React from 'react'; -import ReactDOM from 'react-dom'; -import Pagination from 'rc-pagination'; +import Pagination from '..'; import '../assets/index.less'; const App = () => ( diff --git a/examples/simple.js b/examples/simple.js index b550ba40..09759077 100644 --- a/examples/simple.js +++ b/examples/simple.js @@ -1,8 +1,6 @@ -// use jsx to render html, do not modify simple.html - import '../assets/index.less'; -import Pagination from 'rc-pagination'; import React from 'react'; +import Pagination from '..'; const App = () => ; diff --git a/examples/sizer.js b/examples/sizer.js index bf9bcbf7..080b1a54 100644 --- a/examples/sizer.js +++ b/examples/sizer.js @@ -1,7 +1,7 @@ /* eslint func-names: 0, no-console: 0 */ import React from 'react'; import Select from 'rc-select'; -import Pagination from 'rc-pagination'; +import Pagination from '..'; import '../assets/index.less'; import 'rc-select/assets/index.less'; @@ -9,10 +9,12 @@ class App extends React.Component { state = { pageSize: 20, }; + onShowSizeChange = (current, pageSize) => { console.log(current); this.setState({ pageSize }); }; + render() { return (
    diff --git a/examples/stupid.js b/examples/stupid.js index b5f66021..d4456b36 100644 --- a/examples/stupid.js +++ b/examples/stupid.js @@ -1,8 +1,5 @@ -// use jsx to render html, do not modify simple.html - -import Pagination from 'rc-pagination'; import React from 'react'; -import ReactDOM from 'react-dom'; +import Pagination from '..'; import '../assets/index.less'; export default () => ; diff --git a/examples/styles.js b/examples/styles.js index bed7ca74..6931b939 100644 --- a/examples/styles.js +++ b/examples/styles.js @@ -1,6 +1,6 @@ import '../assets/index.less'; -import Pagination from 'rc-pagination'; import React from 'react'; +import Pagination from '..'; export default () => ( From 6d054116d1880c2329f085a4a1f909d361f808e0 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 27 Feb 2020 17:47:38 +0800 Subject: [PATCH 08/17] :white_check_mark: add two pagination and itemRender test cases --- tests/index.test.js | 28 ++++++++++++-- tests/itemRender.test.js | 53 +++++++++++++++++++++++++++ tests/{helper => }/two-pagination.jsx | 10 +++-- tests/two-pagination.test.js | 31 ++++++++++++++++ 4 files changed, 115 insertions(+), 7 deletions(-) create mode 100644 tests/itemRender.test.js rename tests/{helper => }/two-pagination.jsx (85%) create mode 100644 tests/two-pagination.test.js diff --git a/tests/index.test.js b/tests/index.test.js index 3e59580c..d1e50020 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -2,9 +2,6 @@ import React from 'react'; import { mount } from 'enzyme'; import Pagination from '../src'; -const sleep = (timeout = 0) => - new Promise(resolve => setTimeout(resolve, timeout)); - describe('Uncontrolled Pagination', () => { let wrapper; const onChange = jest.fn(); @@ -141,3 +138,28 @@ describe('Uncontrolled Pagination', () => { expect(totalText.text()).toBe('21 - 25 of 25 items'); }); }); + +describe('Controlled Pagination', () => { + let wrapper; + const onChange = jest.fn(); + + beforeEach(() => { + wrapper = mount(); + }); + + afterEach(() => { + wrapper.unmount(); + onChange.mockReset(); + }); + + it('current should equal defaultCurrent', () => { + expect(wrapper.state().current).toBe(2); + }); + + it('should not response mouse click', () => { + const nextButton = wrapper.find('.rc-pagination-next'); + nextButton.simulate('click'); + expect(wrapper.state().current).toBe(2); + expect(onChange).toHaveBeenLastCalledWith(3, 10); + }); +}); diff --git a/tests/itemRender.test.js b/tests/itemRender.test.js new file mode 100644 index 00000000..4bedbd2d --- /dev/null +++ b/tests/itemRender.test.js @@ -0,0 +1,53 @@ +import React from 'react'; +import { mount } from 'enzyme'; +import Pagination from '../src'; + +describe('itemRender', () => { + let wrapper; + const currentPage = 12; + const itemRender = current => {current}; + + beforeEach(() => { + wrapper = mount( + , + ); + }); + + afterEach(() => { + wrapper.unmount(); + }); + + it('should support custom itemRender', () => { + const prev = wrapper.find('.rc-pagination-prev'); + const next = wrapper.find('.rc-pagination-next'); + const jumpPrev = wrapper.find('.rc-pagination-jump-prev'); + const jumpNext = wrapper.find('.rc-pagination-jump-next'); + const active = wrapper.find('.rc-pagination-item-active'); + + expect(prev.getDOMNode().innerHTML).toBe( + `${currentPage - 1}`, + ); + expect(next.getDOMNode().innerHTML).toBe( + `${currentPage + 1}`, + ); + expect(jumpPrev.getDOMNode().innerHTML).toBe( + `${currentPage - 5}`, + ); + expect(jumpNext.getDOMNode().innerHTML).toBe( + `${currentPage + 5}`, + ); + expect(active.getDOMNode().innerHTML).toBe( + `${currentPage}`, + ); + }); + + it('should support pass disabled to prev and next buttons', () => { + const component = mount( + , + ); + const prev = component.find('.rc-pagination-prev'); + const next = component.find('.rc-pagination-next'); + expect(prev.getDOMNode().innerHTML).toBe('0'); + expect(next.getDOMNode().innerHTML).toBe('2'); + }); +}); diff --git a/tests/helper/two-pagination.jsx b/tests/two-pagination.jsx similarity index 85% rename from tests/helper/two-pagination.jsx rename to tests/two-pagination.jsx index 0f8d4695..14dca6bd 100644 --- a/tests/helper/two-pagination.jsx +++ b/tests/two-pagination.jsx @@ -1,21 +1,23 @@ import 'rc-select/assets/index.less'; -import Pagination from '../../src'; import React from 'react'; import Select from 'rc-select'; +import Pagination from '../src'; class Hello extends React.Component { state = { pageSize: 20, }; + changeSize = () => { this.setState({ pageSize: 50, }); }; + render() { return ( -
    - -
    + ); } } diff --git a/tests/two-pagination.test.js b/tests/two-pagination.test.js new file mode 100644 index 00000000..75650b8d --- /dev/null +++ b/tests/two-pagination.test.js @@ -0,0 +1,31 @@ +import React from 'react'; +import { mount } from 'enzyme'; +import Pagination from '../src'; +import TwoPagination from './two-pagination'; + +describe('Two Pagination', () => { + let wrapper; + + beforeEach(() => { + wrapper = mount(); + }); + + afterEach(() => { + wrapper.unmount(); + }); + + it('should has initial pageSize 20', () => { + const p1 = wrapper.find(Pagination).at(0); + const p2 = wrapper.find(Pagination).at(1); + expect(p1.state().pageSize).toBe(20); + expect(p2.state().pageSize).toBe(20); + }); + + it('should sync pageSize via state', () => { + const p1 = wrapper.find(Pagination).at(0); + const p2 = wrapper.find(Pagination).at(1); + wrapper.find('.hook').simulate('click'); + expect(p1.state().pageSize).toBe(50); + expect(p2.state().pageSize).toBe(50); + }); +}); From fec4d628f073ece6b76ec6e8bcd07c391dce1158 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 27 Feb 2020 18:05:19 +0800 Subject: [PATCH 09/17] :white_check_mark: migrate more tests --- tests/Pagination.xx.js | 124 +---------------------------------------- tests/index.js | 7 --- tests/index.test.js | 82 +++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 130 deletions(-) delete mode 100644 tests/index.js diff --git a/tests/Pagination.xx.js b/tests/Pagination.xx.js index f5200df0..3a2bc4e8 100644 --- a/tests/Pagination.xx.js +++ b/tests/Pagination.xx.js @@ -5,7 +5,7 @@ import Select from 'rc-select'; import React from 'react'; import TestUtils from 'react-dom/test-utils'; import ReactDOM from 'react-dom'; -import TwoPagination from './helper/two-pagination'; +import TwoPagination from './two-pagination'; const Simulate = TestUtils.Simulate; @@ -543,62 +543,6 @@ describe('hideOnSinglePage props', () => { }); }); -describe('showPrevNextJumpers props', () => { - const container = document.createElement('div'); - const currentPage = 12; - document.body.appendChild(container); - - afterEach(() => { - ReactDOM.unmountComponentAtNode(container); - }); - - it('should hide jump-prev, jump-next if showPrevNextJumpers equals false', done => { - ReactDOM.render( - , - container, - function() { - expect(() => { - TestUtils.findRenderedDOMComponentWithClass( - this, - 'rc-pagination-jump-prev', - ); - }).to.throwException(/Did not find exactly one match/); - expect(() => { - TestUtils.findRenderedDOMComponentWithClass( - this, - 'rc-pagination-jump-next', - ); - }).to.throwException(/Did not find exactly one match/); - done(); - }, - ); - }); - - it('should show jump-prev, jump-next if showPrevNextJumpers equals true', done => { - ReactDOM.render( - , - container, - function() { - const jumpPrev = TestUtils.findRenderedDOMComponentWithClass( - this, - 'rc-pagination-jump-prev', - ); - const jumpNext = TestUtils.findRenderedDOMComponentWithClass( - this, - 'rc-pagination-jump-next', - ); - expect(TestUtils.isDOMComponent(jumpPrev)).to.be(true); - expect(TestUtils.isDOMComponent(jumpNext)).to.be(true); - done(); - }, - ); - }); -}); - describe('custom showQuickJumper button Pagination', () => { let pagination = null; const container = document.createElement('div'); @@ -1057,69 +1001,3 @@ describe('disabled', () => { ); }); }); - -describe('Pagination with jumper', () => { - let pagination = null; - const container = document.createElement('div'); - document.body.appendChild(container); - - let current = 10; - function onChange(page) { - current = page; - } - - beforeEach(done => { - ReactDOM.render( - , - container, - function() { - pagination = this; - done(); - }, - ); - }); - - afterEach(() => { - ReactDOM.unmountComponentAtNode(container); - current = 10; - }); - - it('when input less than 1', done => { - const quickJumper = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-options-quick-jumper', - ); - const input = quickJumper.querySelector('input'); - expect(TestUtils.isDOMComponent(input)).to.be(true); - input.value = '-1'; - Simulate.change(input); - setTimeout(() => { - Simulate.keyUp(input, { key: 'Enter', keyCode: 13, which: 13 }); - setTimeout(() => { - expect(pagination.state.current).to.be(1); - expect(current).to.be(1); - done(); - }, 10); - }, 10); - }); - - it('when input onBlur', done => { - const quickJumper = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-options-quick-jumper', - ); - const input = quickJumper.querySelector('input'); - expect(TestUtils.isDOMComponent(input)).to.be(true); - Simulate.blur(input); - setTimeout(() => { - expect(pagination.state.current).to.be(10); - expect(current).to.be(10); - done(); - }, 10); - }); -}); diff --git a/tests/index.js b/tests/index.js deleted file mode 100644 index bc8b22b9..00000000 --- a/tests/index.js +++ /dev/null @@ -1,7 +0,0 @@ -/** - * only require other specs here - */ - -import 'core-js/es/map'; -import 'core-js/es/set'; -import './Pagination.spec'; diff --git a/tests/index.test.js b/tests/index.test.js index d1e50020..ea7c63a1 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -163,3 +163,85 @@ describe('Controlled Pagination', () => { expect(onChange).toHaveBeenLastCalledWith(3, 10); }); }); + +describe('Other props', () => { + it('should support custom default icon', () => { + const nextIcon = () => nextIcon; + const prevIcon = () => prevIcon; + const jumpNextIcon = () => jumpNextIcon; + const jumpPrevIcon = () => jumpPrevIcon; + const iconsProps = { + prevIcon, + nextIcon, + jumpPrevIcon, + jumpNextIcon, + }; + const wrapper = mount( + , + ); + const prev = wrapper.find('.rc-pagination-prev'); + const next = wrapper.find('.rc-pagination-next'); + const jumpPrev = wrapper.find('.rc-pagination-jump-prev'); + const jumpNext = wrapper.find('.rc-pagination-jump-next'); + expect(prev.text()).toBe('prevIcon'); + expect(next.text()).toBe('nextIcon'); + expect(jumpPrev.text()).toBe('jumpPrevIcon'); + expect(jumpNext.text()).toBe('jumpNextIcon'); + }); + + describe('showPrevNextJumpers props', () => { + it('should hide jump-prev, jump-next if showPrevNextJumpers equals false', () => { + const wrapper = mount( + , + ); + const prev = wrapper.find('.rc-pagination-jump-prev'); + const next = wrapper.find('.rc-pagination-jump-next'); + expect(prev.exists()).toBe(false); + expect(next.exists()).toBe(false); + }); + + it('should show jump-prev, jump-next if showPrevNextJumpers equals true', () => { + const wrapper = mount( + , + ); + const prev = wrapper.find('.rc-pagination-jump-prev'); + const next = wrapper.find('.rc-pagination-jump-next'); + expect(prev.exists()).toBe(true); + expect(next.exists()).toBe(true); + }); + }); + + describe('hideOnSinglePage props', () => { + const itemRender = current => {current}; + + it('should hide pager if hideOnSinglePage equals true', () => { + const wrapper = mount( + , + ); + expect(wrapper.find('.rc-pagination').exists()).toBe(false); + }); + + it('should show pager if hideOnSinglePage equals false', () => { + const wrapper = mount( + , + ); + expect(wrapper.find('.rc-pagination').exists()).toBe(true); + }); + + it('should show pager if hideOnSinglePage equals true but more than 1 page', () => { + const wrapper = mount( + , + ); + expect(wrapper.find('.rc-pagination').exists()).toBe(true); + }); + }); +}); From 531bac6389913d2b418ec209858d43e92a3112a9 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 27 Feb 2020 18:07:35 +0800 Subject: [PATCH 10/17] refactor render code --- src/Pagination.jsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/Pagination.jsx b/src/Pagination.jsx index e2cd7f70..d4e23940 100644 --- a/src/Pagination.jsx +++ b/src/Pagination.jsx @@ -325,18 +325,21 @@ class Pagination extends React.Component { } render() { - const { prefixCls, className, disabled } = this.props; + const { + prefixCls, + className, + disabled, + hideOnSinglePage, + total, + locale, + } = this.props; // When hideOnSinglePage is true and there is only 1 page, hide the pager - if ( - this.props.hideOnSinglePage === true && - this.props.total <= this.state.pageSize - ) { + if (hideOnSinglePage === true && total <= this.state.pageSize) { return null; } const { props } = this; - const { locale } = props; const allPages = calculatePage(undefined, this.state, this.props); const pagerList = []; From b9fcc33c6bef63dd46c39fbfd5c0aad7371cf246 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 27 Feb 2020 18:10:53 +0800 Subject: [PATCH 11/17] refactor render code --- src/Pagination.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Pagination.jsx b/src/Pagination.jsx index d4e23940..deec7448 100644 --- a/src/Pagination.jsx +++ b/src/Pagination.jsx @@ -328,6 +328,7 @@ class Pagination extends React.Component { const { prefixCls, className, + style, disabled, hideOnSinglePage, total, @@ -403,8 +404,8 @@ class Pagination extends React.Component { return (
      From 4864f169cfc606d306372ddfb5eff62349702001 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 27 Feb 2020 18:12:28 +0800 Subject: [PATCH 12/17] refactor render code --- src/Pagination.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Pagination.jsx b/src/Pagination.jsx index deec7448..5d8ace8c 100644 --- a/src/Pagination.jsx +++ b/src/Pagination.jsx @@ -414,9 +414,9 @@ class Pagination extends React.Component { onClick={this.prev} tabIndex={this.hasPrev() ? 0 : null} onKeyPress={this.runIfEnterPrev} - className={`${ - this.hasPrev() ? '' : `${prefixCls}-disabled` - } ${prefixCls}-prev`} + className={classNames(`${prefixCls}-prev`, { + [`${prefixCls}-disabled`]: !this.hasPrev(), + })} aria-disabled={!this.hasPrev()} > {this.renderPrev(prevPage)} @@ -441,9 +441,9 @@ class Pagination extends React.Component { onClick={this.next} tabIndex={this.hasPrev() ? 0 : null} onKeyPress={this.runIfEnterNext} - className={`${ - this.hasNext() ? '' : `${prefixCls}-disabled` - } ${prefixCls}-next`} + className={classNames(`${prefixCls}-next`, { + [`${prefixCls}-disabled`]: !this.hasNext(), + })} aria-disabled={!this.hasNext()} > {this.renderNext(nextPage)} From cc285da9386aec12b49982e435fabb8e9007f316 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 27 Feb 2020 20:33:13 +0800 Subject: [PATCH 13/17] migrated all test cases --- tests/Pagination.xx.js | 1003 --------------------------------------- tests/data-aria.test.js | 76 +++ tests/index.test.js | 92 ++++ tests/jumper.test.js | 113 +++++ tests/simple.test.js | 51 ++ 5 files changed, 332 insertions(+), 1003 deletions(-) delete mode 100644 tests/Pagination.xx.js create mode 100644 tests/data-aria.test.js create mode 100644 tests/jumper.test.js create mode 100644 tests/simple.test.js diff --git a/tests/Pagination.xx.js b/tests/Pagination.xx.js deleted file mode 100644 index 3a2bc4e8..00000000 --- a/tests/Pagination.xx.js +++ /dev/null @@ -1,1003 +0,0 @@ -/* eslint func-names: 0, no-console: 0 */ -import expect from 'expect.js'; -import Pagination from '../src'; -import Select from 'rc-select'; -import React from 'react'; -import TestUtils from 'react-dom/test-utils'; -import ReactDOM from 'react-dom'; -import TwoPagination from './two-pagination'; - -const Simulate = TestUtils.Simulate; - -describe('Uncontrolled Pagination', () => { - let pagination = null; - const container = document.createElement('div'); - document.body.appendChild(container); - - let current = 1; - let pageSize; - function onChange(page, pSize) { - current = page; - pageSize = pSize; - } - - function shouldHighlightRight() { - const pagers = TestUtils.scryRenderedDOMComponentsWithTag( - pagination, - 'li', - ).filter( - pager => pager.className.indexOf('rc-pagination-total-text') === -1, - ); - const current2 = pagination.state.current; - pagers.forEach((pager, index) => { - // page starts from 1 - if (index === current2) { - expect(pager.className).to.contain('rc-pagination-item-active'); - } else { - expect(pager.className).to.not.contain('rc-pagination-item-active'); - } - }); - } - - beforeEach(done => { - ReactDOM.render( - - `${range[0]} - ${range[1]} of ${total} items` - } - />, - container, - function() { - pagination = this; - done(); - }, - ); - }); - - afterEach(() => { - ReactDOM.unmountComponentAtNode(container); - current = 1; - }); - - it('default current page is 1', () => { - const current2 = pagination.state.current; - expect(current2).to.be(1); - }); - - it('prev-button should be disabled', () => { - const prevButton = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-prev', - ); - expect(TestUtils.isDOMComponent(prevButton)).to.be(true); - expect(prevButton.className).to.contain('rc-pagination-disabled'); - expect(prevButton.getAttribute('aria-disabled')).to.equal('true'); - }); - - it( - 'should hightlight current page and not highlight other page', - shouldHighlightRight, - ); - - it('should calc page right', () => { - const pagers = TestUtils.scryRenderedDOMComponentsWithTag(pagination, 'li') - .filter( - pager => pager.className.indexOf('rc-pagination-total-text') === -1, - ) - .filter(pager => pager.className.indexOf('rc-pagination-options') === -1); - const knownPageCount = 3; - const buttonLength = 2; - expect(pagers.length).to.be(knownPageCount + buttonLength); - }); - - it('next button should not be disabled', () => { - const nextButton = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-next', - ); - - expect(TestUtils.isDOMComponent(nextButton)).to.be(true); - expect(nextButton.className).to.not.contain('rc-pagination-disabled'); - expect(nextButton.getAttribute('aria-disabled')).to.equal('false'); - }); - - it('should response mouse click right', done => { - const pagers = TestUtils.scryRenderedDOMComponentsWithClass( - pagination, - 'rc-pagination-item', - ); - expect(pagers.length).to.be(3); - const page2 = pagers[1]; - expect(TestUtils.isDOMComponent(page2)).to.be(true); - expect(page2.className).to.contain('rc-pagination-item-2'); - - Simulate.click(page2); - setTimeout(() => { - expect(pagination.state.current).to.be(2); - expect(current).to.be(2); - expect(pageSize).to.be(10); - shouldHighlightRight(); - done(); - }, 10); - }); - - it('should response next page', done => { - const nextButton = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-next', - ); - expect(TestUtils.isDOMComponent(nextButton)).to.be(true); - Simulate.click(nextButton); - setTimeout(() => { - expect(pagination.state.current).to.be(2); - expect(current).to.be(2); - expect(pageSize).to.be(10); - done(); - }, 10); - }); - - it('should quick jump to expect page', done => { - const quickJumper = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-options-quick-jumper', - ); - const input = quickJumper.querySelector('input'); - const goButton = quickJumper.querySelector('button'); - expect(TestUtils.isDOMComponent(quickJumper)).to.be(true); - expect(TestUtils.isDOMComponent(input)).to.be(true); - expect(TestUtils.isDOMComponent(goButton)).to.be(true); - Simulate.change(input, { target: { value: '2' } }); - setTimeout(() => { - Simulate.click(goButton); - setTimeout(() => { - expect(pagination.state.current).to.be(2); - expect(current).to.be(2); - expect(pageSize).to.be(10); - done(); - }, 10); - }, 10); - }); - - // https://github.com/ant-design/ant-design/issues/17763 - it('should not jump when blur input when there is goButton', done => { - const quickJumper = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-options-quick-jumper', - ); - const input = quickJumper.querySelector('input'); - Simulate.change(input, { target: { value: '2' } }); - setTimeout(() => { - Simulate.blur(input); - setTimeout(() => { - expect(pagination.state.current).to.be(1); - expect(current).to.be(1); - done(); - }, 10); - }, 10); - }); - - // https://github.com/ant-design/ant-design/issues/17763 - it('should not jump when blur input when there is not goButton', done => { - ReactDOM.render( - , - container, - function() { - const quickJumper = TestUtils.findRenderedDOMComponentWithClass( - this, - 'rc-pagination-options-quick-jumper', - ); - const input = quickJumper.querySelector('input'); - Simulate.change(input, { target: { value: '2' } }); - setTimeout(() => { - Simulate.blur(input); - setTimeout(() => { - expect(this.state.current).to.be(2); - done(); - }, 10); - }, 10); - }, - ); - }); - - // https://github.com/ant-design/ant-design/issues/15539 - it('should hide quick jumper when only one page', done => { - ReactDOM.render( - , - container, - function() { - expect(() => { - TestUtils.findRenderedDOMComponentWithClass( - this, - 'rc-pagination-options-quick-jumper', - ); - }).to.throwException(/Did not find exactly one match/); - done(); - }, - ); - }); - - it('should display total items', done => { - const totalText = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-total-text', - ); - expect(TestUtils.isDOMComponent(totalText)).to.be(true); - expect(totalText.innerHTML).to.be('1 - 10 of 25 items'); - const nextButton = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-next', - ); - Simulate.click(nextButton); - setTimeout(() => { - expect(totalText.innerHTML).to.be('11 - 20 of 25 items'); - Simulate.click(nextButton); - setTimeout(() => { - expect(totalText.innerHTML).to.be('21 - 25 of 25 items'); - done(); - }, 10); - }, 10); - }); -}); - -describe('Controlled Pagination', () => { - let pagination = null; - const container = document.createElement('div'); - document.body.appendChild(container); - - let current = 2; - let pageSize; - function onChange(page, pSize) { - current = page; - pageSize = pSize; - } - - beforeEach(done => { - ReactDOM.render( - , - container, - function() { - pagination = this; - done(); - }, - ); - }); - - afterEach(() => { - ReactDOM.unmountComponentAtNode(container); - }); - - it('not replace currentInputValue if current not change', done => { - pagination.state.current = 1; - pagination.state.currentInputValue = 1; - pagination.forceUpdate(); - expect(pagination.state.current).to.be(1); - expect(pagination.state.currentInputValue).to.be(1); - - setTimeout(() => { - pagination.state.currentInputValue = 1; - pagination.forceUpdate(); - expect(pagination.state.current).to.be(2); - expect(pagination.state.currentInputValue).to.be(1); - - done(); - }, 10); - }); - - it('current should equal defaultCurrent', () => { - expect(pagination.state.current).to.be(2); - }); - - it('should not response mouse click', done => { - const nextButton = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-next', - ); - expect(TestUtils.isDOMComponent(nextButton)).to.be(true); - Simulate.click(nextButton); - setTimeout(() => { - expect(pagination.state.current).to.be(2); - expect(current).to.be(3); - expect(pageSize).to.be(10); - done(); - }, 10); - }); -}); - -describe('Two Pagination', () => { - let entry = null; - const container = document.createElement('div'); - document.body.appendChild(container); - - beforeEach(done => { - ReactDOM.render(, container, function() { - entry = this; - done(); - }); - }); - - afterEach(() => { - ReactDOM.unmountComponentAtNode(container); - }); - - it('should has initial pageSize 20', () => { - const p1 = TestUtils.scryRenderedComponentsWithType(entry, Pagination)[0]; - const p2 = TestUtils.scryRenderedComponentsWithType(entry, Pagination)[1]; - expect(p1.state.pageSize).to.be(20); - expect(p2.state.pageSize).to.be(20); - }); - - it('should sync pageSize via state', done => { - const p1 = TestUtils.scryRenderedComponentsWithType(entry, Pagination)[0]; - const p2 = TestUtils.scryRenderedComponentsWithType(entry, Pagination)[1]; - const hook = TestUtils.scryRenderedDOMComponentsWithClass(entry, 'hook')[0]; - Simulate.click(hook); - setTimeout(() => { - expect(p1.state.pageSize).to.be(50); - expect(p2.state.pageSize).to.be(50); - done(); - }, 100); - }); -}); - -describe('itemRender', () => { - let pagination; - const container = document.createElement('div'); - const currentPage = 12; - document.body.appendChild(container); - - const itemRender = current => { - return {current}; - }; - - beforeEach(done => { - ReactDOM.render( - , - container, - function() { - pagination = this; - done(); - }, - ); - }); - - afterEach(() => { - ReactDOM.unmountComponentAtNode(container); - }); - - it('should support custom itemRender', () => { - const prev = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-prev', - ); - const next = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-next', - ); - const jumpPrev = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-jump-prev', - ); - const jumpNext = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-jump-next', - ); - const active = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-item-active', - ); - expect(prev.innerHTML).to.be( - `${currentPage - 1}`, - ); - expect(next.innerHTML).to.be( - `${currentPage + 1}`, - ); - expect(jumpPrev.innerHTML).to.be( - `${currentPage - 5}`, - ); - expect(jumpNext.innerHTML).to.be( - `${currentPage + 5}`, - ); - expect(active.innerHTML).to.be( - `${currentPage}`, - ); - }); - - it('should support pass disabled to prev and next buttons', done => { - ReactDOM.unmountComponentAtNode(container); - ReactDOM.render( - , - container, - function() { - const prev = TestUtils.findRenderedDOMComponentWithClass( - this, - 'rc-pagination-prev', - ); - const next = TestUtils.findRenderedDOMComponentWithClass( - this, - 'rc-pagination-next', - ); - expect(prev.innerHTML).to.be(`0`); - expect(next.innerHTML).to.be(`2`); - done(); - }, - ); - }); -}); - -describe('Other props', () => { - let pagination; - const currentPage = 12; - const container = document.createElement('div'); - document.body.appendChild(container); - const nextIcon = () => nextIcon; - const prevIcon = () => prevIcon; - const jumpNextIcon = () => jumpNextIcon; - const jumpPrevIcon = () => jumpPrevIcon; - const iconsProps = { - prevIcon, - nextIcon, - jumpPrevIcon, - jumpNextIcon, - }; - beforeEach(done => { - ReactDOM.render( - , - container, - function() { - pagination = this; - done(); - }, - ); - }); - - afterEach(() => { - ReactDOM.unmountComponentAtNode(container); - }); - - it('should support custom default icon', () => { - const nextIconElement = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-next', - ); - const prevIconElement = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-prev', - ); - const jumpNextIconElement = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-jump-next', - ); - const jumpPrevIconElement = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-jump-prev', - ); - expect(nextIconElement.innerText).to.be('nextIcon'); - expect(prevIconElement.innerText).to.be('prevIcon'); - expect(jumpNextIconElement.innerText).to.be('jumpNextIcon'); - expect(jumpPrevIconElement.innerText).to.be('jumpPrevIcon'); - }); -}); - -describe('hideOnSinglePage props', () => { - const container = document.createElement('div'); - document.body.appendChild(container); - - const itemRender = current => { - return {current}; - }; - - afterEach(() => { - ReactDOM.unmountComponentAtNode(container); - }); - - it('should hide pager if hideOnSinglePage equals true', done => { - ReactDOM.render( - , - container, - function() { - expect(() => { - TestUtils.findRenderedDOMComponentWithClass(this, 'rc-pagination'); - }).to.throwException(/Did not find exactly one match/); - done(); - }, - ); - }); - - it('should show pager if hideOnSinglePage equals false', done => { - ReactDOM.render( - , - container, - function() { - expect(() => { - TestUtils.findRenderedDOMComponentWithClass(this, 'rc-pagination'); - }).to.not.throwException(); - done(); - }, - ); - }); - - it('should show pager if hideOnSinglePage equals true but more than 1 page', done => { - ReactDOM.render( - , - container, - function() { - expect(() => { - TestUtils.findRenderedDOMComponentWithClass(this, 'rc-pagination'); - }).to.not.throwException(); - done(); - }, - ); - }); -}); - -describe('custom showQuickJumper button Pagination', () => { - let pagination = null; - const container = document.createElement('div'); - document.body.appendChild(container); - - let current = 1; - let pageSize; - function onChange(page, pSize) { - current = page; - pageSize = pSize; - } - - beforeEach(done => { - ReactDOM.render( - go }} - showTotal={(total, range) => - `${range[0]} - ${range[1]} of ${total} items` - } - />, - container, - function() { - pagination = this; - done(); - }, - ); - }); - - afterEach(() => { - ReactDOM.unmountComponentAtNode(container); - }); - - it('should quick jump to expect page', done => { - const quickJumper = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-options-quick-jumper', - ); - const input = quickJumper.querySelector('input'); - const goButton = quickJumper.querySelector('button'); - expect(TestUtils.isDOMComponent(quickJumper)).to.be(true); - expect(TestUtils.isDOMComponent(input)).to.be(true); - expect(TestUtils.isDOMComponent(goButton)).to.be(true); - input.value = '2'; - Simulate.change(input); - setTimeout(() => { - Simulate.click(goButton); - setTimeout(() => { - expect(pagination.state.current).to.be(2); - expect(current).to.be(2); - expect(pageSize).to.be(10); - done(); - }, 10); - }, 10); - }); - - // https://github.com/ant-design/ant-design/issues/10080 - it('should not quick jump to previous page when input invalid char', done => { - const pager = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination', - ); - const nextButton = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-next', - ); - Simulate.click(nextButton); - const input = pager.querySelector('input'); - input.value = '&'; - Simulate.change(input); - setTimeout(() => { - Simulate.keyUp(input, { key: 'Enter', keyCode: 13, which: 13 }); - setTimeout(() => { - expect(pagination.state.current).to.be(2); - done(); - }, 10); - }, 10); - }); -}); - -describe('simple Pagination', () => { - let pagination = null; - const container = document.createElement('div'); - document.body.appendChild(container); - - beforeEach(done => { - ReactDOM.render( - - `${range[0]} - ${range[1]} of ${total} items` - } - />, - container, - function() { - pagination = this; - done(); - }, - ); - }); - - afterEach(() => { - ReactDOM.unmountComponentAtNode(container); - }); - - it('default current page is 1', () => { - const current3 = pagination.state.current; - expect(current3).to.be(1); - }); - - it('prev-button should be disabled', () => { - const prevButton = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-prev', - ); - expect(TestUtils.isDOMComponent(prevButton)).to.be(true); - expect(prevButton.className).to.contain('rc-pagination-disabled'); - expect(prevButton.getAttribute('aria-disabled')).to.equal('true'); - }); - - it('no quick jump', () => { - const simplePagers = TestUtils.scryRenderedDOMComponentsWithClass( - pagination, - 'rc-pagination-simple-pager', - ); - expect(simplePagers.length).to.be(1); - }); -}); - -describe('simple Pagination when current is greater pages', () => { - let pagination = null; - const container = document.createElement('div'); - document.body.appendChild(container); - - beforeEach(done => { - ReactDOM.render( - , - container, - function() { - pagination = this; - done(); - }, - ); - }); - - afterEach(() => { - ReactDOM.unmountComponentAtNode(container); - }); - - it('default current page is 3', () => { - const current3 = pagination.state.current; - expect(current3).to.be(3); - }); - - it('input number is greater pages', done => { - const greaterCurrent = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-simple', - ); - const input = greaterCurrent.querySelector('input'); - input.value = '313423434343343452121'; - Simulate.change(input); - setTimeout(() => { - expect(input.value).to.be('3'); - expect(pagination.state.current).to.be(3); - done(); - }, 10); - }); -}); - -describe('simple Pagination with quick jump', () => { - let pagination = null; - const container = document.createElement('div'); - document.body.appendChild(container); - - let current = 1; - let pageSize; - function onChange(page, pSize) { - current = page; - pageSize = pSize; - } - - beforeEach(done => { - ReactDOM.render( - go }} - showTotal={(total, range) => - `${range[0]} - ${range[1]} of ${total} items` - } - />, - container, - function() { - pagination = this; - done(); - }, - ); - }); - - afterEach(() => { - ReactDOM.unmountComponentAtNode(container); - }); - - it('should quick jump to expect page', done => { - const quickJumper = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-simple', - ); - const input = quickJumper.querySelector('input'); - const goButton = quickJumper.querySelector('button'); - expect(TestUtils.isDOMComponent(quickJumper)).to.be(true); - expect(TestUtils.isDOMComponent(input)).to.be(true); - expect(TestUtils.isDOMComponent(goButton)).to.be(true); - input.value = '2'; - Simulate.change(input); - setTimeout(() => { - Simulate.click(goButton); - setTimeout(() => { - expect(pagination.state.current).to.be(2); - expect(current).to.be(2); - expect(pageSize).to.be(10); - done(); - }, 10); - }, 10); - }); -}); - -// https://github.com/ant-design/ant-design/issues/10524 -describe('current value on onShowSizeChange when total is 0', () => { - let pagination = null; - let changeCurrent = 0; - const container = document.createElement('div'); - document.body.appendChild(container); - - const onShowSizeChange = current => { - changeCurrent = current; - }; - - beforeEach(done => { - ReactDOM.render( - - `${range[0]} - ${range[1]} of ${total} items` - } - />, - container, - function() { - pagination = this; - done(); - }, - ); - }); - - afterEach(() => { - ReactDOM.unmountComponentAtNode(container); - }); - - it('current should equal to the current in onShowSizeChange', done => { - const sizeChanger = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-options-size-changer', - ); - Simulate.click(sizeChanger); - setTimeout(() => { - const menu = sizeChanger.querySelector('.rc-select-selection'); - // Simulate to choose item of the drop down menu - Simulate.keyDown(menu, { key: 'Down', keyCode: 40, which: 40 }); - setTimeout(() => { - Simulate.keyDown(menu, { key: 'Enter', keyCode: 13, which: 13 }); - expect(pagination.state.current).to.be(changeCurrent); - done(); - }, 10); - }, 10); - }); - - it('when total is 0, pager should show and disabled', () => { - const itemButton = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-item', - ); - expect(TestUtils.isDOMComponent(itemButton)).to.be(true); - expect(itemButton.className).to.contain('rc-pagination-item-disabled'); - }); - - it('when total is 0, `from` and `to` should be 0', () => { - const totalText = TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-total-text', - ); - expect(TestUtils.isDOMComponent(totalText)).to.be(true); - expect(totalText.innerHTML).to.be('0 - 0 of 0 items'); - }); -}); - -describe('data and aria props', () => { - let pagination = null; - const container = document.createElement('div'); - document.body.appendChild(container); - - describe('with simple prop', () => { - beforeEach(done => { - ReactDOM.render( - , - container, - function() { - pagination = this; - done(); - }, - ); - }); - - afterEach(() => { - ReactDOM.unmountComponentAtNode(container); - }); - - it('renders data attributes', () => { - expect(pagination.paginationNode.getAttribute('data-test')).to.be( - 'test-id', - ); - expect(pagination.paginationNode.getAttribute('data-id')).to.be('12345'); - }); - - it('renders aria attributes', () => { - expect(pagination.paginationNode.getAttribute('aria-labelledby')).to.be( - 'labelledby-id', - ); - expect(pagination.paginationNode.getAttribute('aria-label')).to.be( - 'label-id', - ); - }); - - it('renders role attribute', () => { - expect(pagination.paginationNode.getAttribute('role')).to.be( - 'navigation', - ); - }); - }); - - describe('without simple prop', () => { - beforeEach(done => { - ReactDOM.render( - , - container, - function() { - pagination = this; - done(); - }, - ); - }); - - afterEach(() => { - ReactDOM.unmountComponentAtNode(container); - }); - - it('renders data attributes', () => { - expect(pagination.paginationNode.getAttribute('data-test')).to.be( - 'test-id', - ); - expect(pagination.paginationNode.getAttribute('data-id')).to.be('12345'); - }); - - it('renders aria attributes', () => { - expect(pagination.paginationNode.getAttribute('aria-labelledby')).to.be( - 'labelledby-id', - ); - expect(pagination.paginationNode.getAttribute('aria-label')).to.be( - 'label-id', - ); - }); - - it('renders role attribute', () => { - expect(pagination.paginationNode.getAttribute('role')).to.be( - 'navigation', - ); - }); - }); -}); - -describe('disabled', () => { - const container = document.createElement('div'); - document.body.appendChild(container); - - afterEach(() => { - ReactDOM.unmountComponentAtNode(container); - }); - - it('full pagination', done => { - ReactDOM.render( - , - container, - function() { - const pagination = this; - - // Root - expect( - TestUtils.findRenderedDOMComponentWithClass( - pagination, - 'rc-pagination-disabled', - ), - ).to.be.ok(); - - expect( - TestUtils.findRenderedDOMComponentWithTag(pagination, 'input'), - ).to.be.ok(); - - expect( - TestUtils.findRenderedComponentWithType(pagination, Select).props - .disabled, - ).to.be.ok(); - - expect( - TestUtils.findRenderedDOMComponentWithTag(pagination, 'input') - .disabled, - ).to.be.ok(); - - expect( - TestUtils.findRenderedDOMComponentWithTag(pagination, 'button') - .disabled, - ).to.be.ok(); - - done(); - }, - ); - }); -}); diff --git a/tests/data-aria.test.js b/tests/data-aria.test.js new file mode 100644 index 00000000..c6e4b084 --- /dev/null +++ b/tests/data-aria.test.js @@ -0,0 +1,76 @@ +import React from 'react'; +import { mount } from 'enzyme'; +import Pagination from '../src'; + +describe('data and aria props', () => { + let wrapper; + + describe('with simple prop', () => { + beforeEach(() => { + wrapper = mount( + , + ); + }); + + afterEach(() => { + wrapper.unmount(); + }); + + it('renders data attributes', () => { + expect(wrapper.getDOMNode().getAttribute('data-test')).toBe('test-id'); + expect(wrapper.getDOMNode().getAttribute('data-id')).toBe('12345'); + }); + + it('renders aria attributes', () => { + expect(wrapper.getDOMNode().getAttribute('aria-labelledby')).toBe( + 'labelledby-id', + ); + expect(wrapper.getDOMNode().getAttribute('aria-label')).toBe('label-id'); + }); + + it('renders role attribute', () => { + expect(wrapper.getDOMNode().getAttribute('role')).toBe('navigation'); + }); + }); + + describe('without simple prop', () => { + beforeEach(() => { + wrapper = mount( + , + ); + }); + + afterEach(() => { + wrapper.unmount(); + }); + + it('renders data attributes', () => { + expect(wrapper.getDOMNode().getAttribute('data-test')).toBe('test-id'); + expect(wrapper.getDOMNode().getAttribute('data-id')).toBe('12345'); + }); + + it('renders aria attributes', () => { + expect(wrapper.getDOMNode().getAttribute('aria-labelledby')).toBe( + 'labelledby-id', + ); + expect(wrapper.getDOMNode().getAttribute('aria-label')).toBe('label-id'); + }); + + it('renders role attribute', () => { + expect(wrapper.getDOMNode().getAttribute('role')).toBe('navigation'); + }); + }); +}); diff --git a/tests/index.test.js b/tests/index.test.js index ea7c63a1..1999ec26 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -1,5 +1,6 @@ import React from 'react'; import { mount } from 'enzyme'; +import Select from 'rc-select'; import Pagination from '../src'; describe('Uncontrolled Pagination', () => { @@ -244,4 +245,95 @@ describe('Other props', () => { expect(wrapper.find('.rc-pagination').exists()).toBe(true); }); }); + + it('disabled', () => { + const wrapper = mount( + , + ); + expect(wrapper.find('.rc-pagination-disabled').exists()).toBe(true); + expect(wrapper.find('input').exists()).toBe(true); + expect(wrapper.find(Select).props().disabled).toBe(true); + expect( + wrapper + .find('input') + .at(0) + .getDOMNode().disabled, + ).toBe(true); + expect( + wrapper + .find('button') + .at(0) + .getDOMNode().disabled, + ).toBe(true); + }); +}); + +// https://github.com/ant-design/ant-design/issues/10524 +describe('current value on onShowSizeChange when total is 0', () => { + let wrapper; + const onShowSizeChange = jest.fn(); + + beforeEach(() => { + wrapper = mount( + + `${range[0]} - ${range[1]} of ${total} items` + } + />, + ); + }); + + afterEach(() => { + wrapper.unmount(); + onShowSizeChange.mockReset(); + }); + + it('should call onShowSizeChange when no change', () => { + const sizeChanger = wrapper + .find('.rc-pagination-options-size-changer') + .at(0); + sizeChanger.simulate('click'); + const input = sizeChanger.find('input'); + input.simulate('keyDown', { key: 'Down', keyCode: 40, which: 40 }); + input.simulate('keyDown', { key: 'Enter', keyCode: 13, which: 13 }); + expect(onShowSizeChange).not.toBeCalled(); + }); + + it('current should equal to the current in onShowSizeChange', () => { + const sizeChanger = wrapper + .find('.rc-pagination-options-size-changer') + .at(0); + sizeChanger.simulate('click'); + const input = sizeChanger.find('input'); + input.simulate('keyDown', { key: 'Down', keyCode: 40, which: 40 }); + input.simulate('keyDown', { key: 'Down', keyCode: 40, which: 40 }); + input.simulate('keyDown', { key: 'Enter', keyCode: 13, which: 13 }); + expect(onShowSizeChange).toHaveBeenLastCalledWith( + wrapper.state().current, + 20, + ); + }); + + it('when total is 0, pager should show and disabled', () => { + const itemButton = wrapper.find('.rc-pagination-item'); + expect(itemButton.hasClass('rc-pagination-item-disabled')).toBe(true); + }); + + it('when total is 0, `from` and `to` should be 0', () => { + const totalText = wrapper.find('.rc-pagination-total-text'); + expect(totalText.text()).toBe('0 - 0 of 0 items'); + }); }); diff --git a/tests/jumper.test.js b/tests/jumper.test.js new file mode 100644 index 00000000..3e7ca4cc --- /dev/null +++ b/tests/jumper.test.js @@ -0,0 +1,113 @@ +import React from 'react'; +import { mount } from 'enzyme'; +import Pagination from '../src'; + +describe('Pagination with jumper', () => { + let wrapper; + const onChange = jest.fn(); + + beforeEach(() => { + wrapper = mount( + , + ); + }); + + afterEach(() => { + wrapper.unmount(); + onChange.mockReset(); + }); + + it('when input less than 1', () => { + const quickJumper = wrapper.find('.rc-pagination-options-quick-jumper'); + const input = quickJumper.find('input'); + input.simulate('change', { target: { value: '-1' } }); + input.simulate('keyUp', { key: 'Enter', keyCode: 13, which: 13 }); + expect(wrapper.state().current).toBe(1); + expect(onChange).toHaveBeenLastCalledWith(1, 10); + }); + + it('should not call onChange when blur input', () => { + const quickJumper = wrapper.find('.rc-pagination-options-quick-jumper'); + const input = quickJumper.find('input'); + input.simulate('blur'); + expect(wrapper.state().current).toBe(10); + expect(onChange).not.toBeCalled(); + }); +}); + +describe('simple quick jumper', () => { + let wrapper; + const onChange = jest.fn(); + + beforeEach(() => { + wrapper = mount( + go }} + showTotal={(total, range) => + `${range[0]} - ${range[1]} of ${total} items` + } + />, + ); + }); + + afterEach(() => { + wrapper.unmount(); + onChange.mockReset(); + }); + + it('should quick jump to expect page', () => { + const quickJumper = wrapper.find('.rc-pagination-simple'); + const input = quickJumper.find('input'); + const goButton = quickJumper.find('button'); + input.simulate('change', { target: { value: '2' } }); + goButton.simulate('click'); + expect(wrapper.state().current).toBe(2); + expect(onChange).toHaveBeenLastCalledWith(2, 10); + }); + + describe('custom showQuickJumper button Pagination', () => { + beforeEach(() => { + wrapper = mount( + go }} + showTotal={(total, range) => + `${range[0]} - ${range[1]} of ${total} items` + } + />, + ); + }); + + it('should quick jump to expect page', () => { + const quickJumper = wrapper.find('.rc-pagination-options-quick-jumper'); + const input = quickJumper.find('input'); + const goButton = quickJumper.find('button'); + input.simulate('change', { target: { value: '2' } }); + goButton.simulate('click'); + expect(wrapper.state().current).toBe(2); + expect(onChange).toHaveBeenLastCalledWith(2, 10); + }); + + // https://github.com/ant-design/ant-design/issues/10080 + it('should not quick jump to previous page when input invalid char', () => { + const nextButton = wrapper.find('.rc-pagination-next'); + nextButton.simulate('click'); + const input = wrapper.find('input'); + input.simulate('change', { target: { value: '&' } }); + input.simulate('keyUp', { key: 'Enter', keyCode: 13, which: 13 }); + expect(wrapper.state().current).toBe(2); + expect(onChange).toHaveBeenLastCalledWith(2, 10); + }); + }); +}); diff --git a/tests/simple.test.js b/tests/simple.test.js new file mode 100644 index 00000000..db2fb34b --- /dev/null +++ b/tests/simple.test.js @@ -0,0 +1,51 @@ +import React from 'react'; +import { mount } from 'enzyme'; +import Pagination from '../src'; + +describe('simple Pagination', () => { + let wrapper; + + beforeEach(() => { + wrapper = mount( + + `${range[0]} - ${range[1]} of ${total} items` + } + />, + ); + }); + + afterEach(() => { + wrapper.unmount(); + }); + + it('default current page is 1', () => { + expect(wrapper.state().current).toBe(1); + }); + + it('prev-button should be disabled', () => { + const prevButton = wrapper.find('.rc-pagination-prev'); + expect(prevButton.hasClass('rc-pagination-disabled')).toBe(true); + expect(prevButton.getDOMNode().getAttribute('aria-disabled')).toBe('true'); + }); + + it('no quick jump', () => { + const simplePagers = wrapper.find('.rc-pagination-simple-pager'); + expect(simplePagers.length).toBe(1); + }); + + it('simple Pagination when current is greater than page count', () => { + const component = mount( + , + ); + expect(component.state().current).toBe(3); + const greaterCurrent = component.find('.rc-pagination-simple'); + const input = greaterCurrent.find('input'); + input.simulate('change', { target: { value: '313423434343343452121' } }); + expect(input.getDOMNode().value).toBe('3'); + expect(component.state().current).toBe(3); + }); +}); From e211eaf5c26dbc7f077ae98378c9fe99f662d3f5 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 27 Feb 2020 20:44:22 +0800 Subject: [PATCH 14/17] :hammer: refactor render --- src/Pagination.jsx | 167 +++++++++++++++++++++++---------------------- 1 file changed, 87 insertions(+), 80 deletions(-) diff --git a/src/Pagination.jsx b/src/Pagination.jsx index 5d8ace8c..a1a39acb 100644 --- a/src/Pagination.jsx +++ b/src/Pagination.jsx @@ -333,15 +333,28 @@ class Pagination extends React.Component { hideOnSinglePage, total, locale, + showQuickJumper, + showLessItems, + showTitle, + showTotal, + showSizeChanger, + simple, + itemRender, + showPrevNextJumpers, + jumpPrevIcon, + jumpNextIcon, + selectComponentClass, + selectPrefixCls, + pageSizeOptions, } = this.props; + const { current, pageSize, currentInputValue } = this.state; + // When hideOnSinglePage is true and there is only 1 page, hide the pager - if (hideOnSinglePage === true && total <= this.state.pageSize) { + if (hideOnSinglePage === true && total <= pageSize) { return null; } - const { props } = this; - const allPages = calculatePage(undefined, this.state, this.props); const pagerList = []; let jumpPrev = null; @@ -350,26 +363,28 @@ class Pagination extends React.Component { let lastPager = null; let gotoButton = null; - const goButton = props.showQuickJumper && props.showQuickJumper.goButton; - const pageBufferSize = props.showLessItems ? 1 : 2; - const { current, pageSize } = this.state; + const goButton = showQuickJumper && showQuickJumper.goButton; + const pageBufferSize = showLessItems ? 1 : 2; const prevPage = current - 1 > 0 ? current - 1 : 0; const nextPage = current + 1 < allPages ? current + 1 : allPages; - const dataOrAriaAttributeProps = Object.keys(props).reduce((prev, key) => { - if ( - key.substr(0, 5) === 'data-' || - key.substr(0, 5) === 'aria-' || - key === 'role' - ) { - // eslint-disable-next-line no-param-reassign - prev[key] = props[key]; - } - return prev; - }, {}); + const dataOrAriaAttributeProps = Object.keys(this.props).reduce( + (prev, key) => { + if ( + key.substr(0, 5) === 'data-' || + key.substr(0, 5) === 'aria-' || + key === 'role' + ) { + // eslint-disable-next-line no-param-reassign + prev[key] = this.props[key]; + } + return prev; + }, + {}, + ); - if (props.simple) { + if (simple) { if (goButton) { if (typeof goButton === 'boolean') { gotoButton = ( @@ -390,11 +405,7 @@ class Pagination extends React.Component { } gotoButton = (
    • {gotoButton} @@ -410,7 +421,7 @@ class Pagination extends React.Component { {...dataOrAriaAttributeProps} >
    • , ); } } else { - const prevItemTitle = props.showLessItems ? locale.prev_3 : locale.prev_5; - const nextItemTitle = props.showLessItems ? locale.next_3 : locale.next_5; - if (props.showPrevNextJumpers) { - let jumpPrevClassString = `${prefixCls}-jump-prev`; - if (props.jumpPrevIcon) { - jumpPrevClassString += ` ${prefixCls}-jump-prev-custom-icon`; - } + const prevItemTitle = showLessItems ? locale.prev_3 : locale.prev_5; + const nextItemTitle = showLessItems ? locale.next_3 : locale.next_5; + if (showPrevNextJumpers) { jumpPrev = (
    • - {props.itemRender( + {itemRender( this.getJumpPrevPage(), 'jump-prev', - this.getItemIcon(props.jumpPrevIcon), + this.getItemIcon(jumpPrevIcon), )}
    • ); - let jumpNextClassString = `${prefixCls}-jump-next`; - if (props.jumpNextIcon) { - jumpNextClassString += ` ${prefixCls}-jump-next-custom-icon`; - } jumpNext = (
    • - {props.itemRender( + {itemRender( this.getJumpNextPage(), 'jump-next', - this.getItemIcon(props.jumpNextIcon), + this.getItemIcon(jumpNextIcon), )}
    • ); } lastPager = ( ); firstPager = ( ); @@ -566,21 +573,21 @@ class Pagination extends React.Component { const active = current === i; pagerList.push( , ); } if (current - 1 >= pageBufferSize * 2 && current !== 1 + 2) { - pagerList[0] = React.cloneElement(pagerList[0], { + pagerList[0] = cloneElement(pagerList[0], { className: `${prefixCls}-item-after-jump-prev`, }); pagerList.unshift(jumpPrev); @@ -589,7 +596,7 @@ class Pagination extends React.Component { allPages - current >= pageBufferSize * 2 && current !== allPages - 2 ) { - pagerList[pagerList.length - 1] = React.cloneElement( + pagerList[pagerList.length - 1] = cloneElement( pagerList[pagerList.length - 1], { className: `${prefixCls}-item-before-jump-next`, @@ -608,12 +615,12 @@ class Pagination extends React.Component { let totalText = null; - if (props.showTotal) { + if (showTotal) { totalText = (
    • - {props.showTotal(props.total, [ - props.total === 0 ? 0 : (current - 1) * pageSize + 1, - current * pageSize > props.total ? props.total : current * pageSize, + {showTotal(total, [ + total === 0 ? 0 : (current - 1) * pageSize + 1, + current * pageSize > total ? total : current * pageSize, ])}
    • ); @@ -625,47 +632,47 @@ class Pagination extends React.Component { className={classNames(prefixCls, className, { [`${prefixCls}-disabled`]: disabled, })} - style={props.style} + style={style} unselectable="unselectable" ref={this.savePaginationNode} {...dataOrAriaAttributeProps} > {totalText}
    • {this.renderPrev(prevPage)}
    • {pagerList}
    • {this.renderNext(nextPage)}
    • From bdb3a83c6bb9e5059ed207285844ddb33dd6fc41 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 27 Feb 2020 20:47:07 +0800 Subject: [PATCH 15/17] :up: upgrade devDeps --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index d70c8bfe..32d98f31 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rc-pagination", - "version": "2.0.0", + "version": "1.21.0", "description": "pagination ui component for react", "keywords": [ "react", @@ -47,17 +47,17 @@ "@types/classnames": "^2.2.9", "@types/react": "^16.9.2", "@types/react-dom": "^16.9.0", - "@umijs/fabric": "^1.1.10", + "@umijs/fabric": "^2.0.3", "coveralls": "^3.0.6", - "cross-env": "^6.0.0", + "cross-env": "^7.0.0", "enzyme": "^3.0.0", "enzyme-adapter-react-16": "^1.0.1", "enzyme-to-json": "^3.4.0", "eslint": "^6.6.0", "father": "^2.13.4", - "husky": "^3.0.9", + "husky": "^4.2.3", "less": "^3.10.3", - "np": "^5.1.0", + "np": "^6.2.0", "prettier": "^1.18.2", "pretty-quick": "^2.0.1", "react": "^16.0.0", From d3aac606d1c7bfb5fdc416c01469c26b96218ab7 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 27 Feb 2020 21:01:45 +0800 Subject: [PATCH 16/17] add test case --- tests/jumper.test.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/tests/jumper.test.js b/tests/jumper.test.js index 3e7ca4cc..f389d59b 100644 --- a/tests/jumper.test.js +++ b/tests/jumper.test.js @@ -110,4 +110,40 @@ describe('simple quick jumper', () => { expect(onChange).toHaveBeenLastCalledWith(2, 10); }); }); + + it('goButton could be true', () => { + wrapper = mount( + , + ); + expect(wrapper.find('button').exists()).toBe(true); + }); + + it('goButton defaultly hidden', () => { + wrapper = mount( + , + ); + expect(wrapper.find('button').exists()).toBe(false); + }); + + it('goButton could be false', () => { + wrapper = mount( + , + ); + expect(wrapper.find('button').exists()).toBe(false); + }); }); From 73906bbe119d4fb05f73c92fa839888ee9d9eaa4 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 27 Feb 2020 21:06:19 +0800 Subject: [PATCH 17/17] remove unused code --- examples/locale.js | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/locale.js b/examples/locale.js index 94f626dc..94bfaa25 100644 --- a/examples/locale.js +++ b/examples/locale.js @@ -1,6 +1,5 @@ /* eslint func-names: 0, no-console: 0 */ import React from 'react'; -import ReactDOM from 'react-dom'; import Select from 'rc-select'; import Pagination from '..'; import localeInfo from '../src/locale/en_US';