"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _extends2=require("babel-runtime/helpers/extends"),_extends3=_interopRequireDefault(_extends2),_classCallCheck2=require("babel-runtime/helpers/classCallCheck"),_classCallCheck3=_interopRequireDefault(_classCallCheck2),_createClass2=require("babel-runtime/helpers/createClass"),_createClass3=_interopRequireDefault(_createClass2),_possibleConstructorReturn2=require("babel-runtime/helpers/possibleConstructorReturn"),_possibleConstructorReturn3=_interopRequireDefault(_possibleConstructorReturn2),_inherits2=require("babel-runtime/helpers/inherits"),_inherits3=_interopRequireDefault(_inherits2),_react=require("react"),React=_interopRequireWildcard(_react),_rcPagination=require("./rc-pagination"),_rcPagination2=_interopRequireDefault(_rcPagination),_default=require("../locale-provider/default"),_default2=_interopRequireDefault(_default),_classnames=require("classnames"),_classnames2=_interopRequireDefault(_classnames),_LocaleReceiver=require("../locale-provider/LocaleReceiver"),_LocaleReceiver2=_interopRequireDefault(_LocaleReceiver),_select=require("../select"),_select2=_interopRequireDefault(_select),_MiniSelect=require("./MiniSelect"),_MiniSelect2=_interopRequireDefault(_MiniSelect);function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var __rest=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&(r[a[i]]=e[a[i]])}return r},Pagination=function(e){function t(){(0,_classCallCheck3.default)(this,t);var n=(0,_possibleConstructorReturn3.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return n.renderPagination=function(e){var t=n.props,r=t.className,a=t.size,i=__rest(t,["className","size"]),l="small"===a;return React.createElement(_rcPagination2.default,(0,_extends3.default)({},i,{className:(0,_classnames2.default)(r,{mini:l}),selectComponentClass:l?_MiniSelect2.default:_select2.default,locale:e}))},n}return(0,_inherits3.default)(t,e),(0,_createClass3.default)(t,[{key:"render",value:function(){return React.createElement(_LocaleReceiver2.default,{componentName:"Pagination",defaultLocale:_default2.default.Pagination},this.renderPagination)}}]),t}(React.Component);(exports.default=Pagination).defaultProps={prefixCls:"dt-pagination",selectPrefixCls:"dt-select"},module.exports=exports.default;